{"schemaVersion":2,"revision":"2026-11-03","permissions":{"calendar.create":["actions:read","planning:read","calendars:create"],"training.performance.create":["actions:read","training:read","training:write"],"training.performance.update":["actions:read","training:read","training:write"],"training.result.upsert":["actions:read","training:read","training:write","workouts:read"],"preferences.update":["actions:read","preferences:read","preferences:write"],"settings.update":["actions:read","settings:read","settings:write"],"workout.create":["actions:read","catalog:read","workouts:read","workouts:create"],"workout.update":["actions:read","workouts:read","workouts:update"],"workout.duplicate":["actions:read","workouts:read","workouts:create"],"workout.move":["actions:read","workouts:read","workouts:update","folders:read"],"workout.trash":["actions:read","workouts:read","workouts:delete"],"workout.restore":["actions:read","workouts:read","workouts:restore"],"folder.create":["actions:read","folders:read","folders:write"],"folder.update":["actions:read","folders:read","folders:write"],"folder.reorder":["actions:read","folders:read","folders:write"],"folder.trash":["actions:read","folders:read","folders:delete"],"folder.restore":["actions:read","folders:read","folders:write"],"planning.add":["actions:read","planning:read","planning:create","workouts:read"],"planning.update":["actions:read","planning:read","planning:update","workouts:read"],"planning.move":["actions:read","planning:read","planning:update"],"planning.reorder":["actions:read","planning:read","planning:update"],"planning.swap":["actions:read","planning:read","planning:update"],"planning.copy":["actions:read","planning:read","planning:create","workouts:read"],"planning.shift":["actions:read","planning:read","planning:update"],"planning.remove":["actions:read","planning:read","planning:delete"],"planning.note":["actions:read","planning:read","planning:create"],"planning.edit_note":["actions:read","planning:read","planning:update"],"planning.remove_note":["actions:read","planning:read","planning:delete"],"planning.rest":["actions:read","planning:read","planning:create"],"planning.remove_rest":["actions:read","planning:read","planning:delete"],"cycle.create":["actions:read","planning:read","cycles:read","cycles:write"],"cycle.update":["actions:read","planning:read","cycles:read","cycles:write"],"cycle.delete":["actions:read","planning:read","cycles:read","cycles:delete"],"template.create":["actions:read","templates:read","templates:write"],"template.update":["actions:read","templates:read","templates:write"],"template.add_workout":["actions:read","templates:read","templates:write","workouts:read"],"template.move_workout":["actions:read","templates:read","templates:write"],"template.remove_workout":["actions:read","templates:read","templates:delete"],"template.delete":["actions:read","templates:read","templates:delete"],"planning.apply_template":["actions:read","planning:read","planning:create","templates:read","workouts:read"]},"limits":{"actions":10,"objects":50,"workouts":10,"blocks":100,"occurrences":28,"days":28,"executionsPerDay":20,"executionsPilotPerDay":200,"simulationsPerDay":50,"simulationsPilotPerDay":500,"payloadBytes":524288,"userStorageBytes":67108864,"pilotStorageBytes":268435456,"undoDays":7,"receiptDays":30,"newRequestMaxAgeMs":86400000,"clockSkewMs":300000},"exitCodes":{"success":0,"invalid_request":2,"authentication":3,"permission":4,"conflict":5,"limit":6,"unavailable":7,"outcome_unknown":8,"interrupted":130},"errorSchema":{"type":"object","required":["code","message","retryable"],"additionalProperties":false,"properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"},"requiredScopes":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer","minimum":0},"recovery":{"const":"same_request_id"},"fields":{"type":"array","maxItems":10,"items":{"type":"object","additionalProperties":false,"required":["path","code"],"properties":{"path":{"type":"string"},"code":{"type":"string"}}}},"recommendedAction":{"enum":["recover_receipt","inspect_connection","reconnect","read_current","wait","free_capacity","review_permissions","fix_input","retry"]},"budget":{"type":"object","additionalProperties":false,"required":["scope","kind","limit","windowSeconds","resetsAt"],"properties":{"scope":{"enum":["account","connection","pilot","network"]},"kind":{"type":"string"},"limit":{"type":"integer","minimum":1},"windowSeconds":{"type":"integer","minimum":1},"resetsAt":{"type":"string","format":"date-time"}}}}},"tools":{"hardi_get_action":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"operationId":{"$ref":"#/$defs/0"},"requestId":{"$ref":"#/$defs/1"}},"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}},"canUndo":{"type":"boolean"},"undoBlockedReason":{"type":"string"},"requiredUndoScopes":{"$ref":"#/$defs/9"},"missingUndoScopes":{"$ref":"#/$defs/9"}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy","canUndo","requiredUndoScopes","missingUndoScopes"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"9":{"type":"array","items":{"type":"string"}}}},"minimumScopes":["actions:read"],"permissionChecksAtExecution":true},"hardi_get_context":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"includeUsage":{"default":true,"type":"boolean"}},"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"controls":{"type":"object","properties":{"autonomous":{"type":"boolean"},"cli":{"type":"boolean"}},"required":["autonomous","cli"],"additionalProperties":{}},"extensions":{"type":"object","properties":{"account":{"type":"boolean"},"trainingRead":{"type":"boolean"},"trainingWrite":{"type":"boolean"}},"required":["account","trainingRead","trainingWrite"],"additionalProperties":{}},"readCapabilities":{"type":"object","properties":{"activityPages":{"type":"boolean"},"programActivity":{"type":"boolean"},"folderVersions":{"type":"string"}},"required":["activityPages","programActivity","folderVersions"],"additionalProperties":{}},"featureRevision":{"$ref":"#/$defs/0"},"scopes":{"type":"array","items":{"type":"string"}},"plan":{"type":"object","properties":{"code":{"type":"string"},"limits":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["number","null"]}}},"required":["code","limits"],"additionalProperties":{}},"limits":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"}},"connectionId":{"type":"string"},"accountBinding":{"type":"string"},"timezone":{"type":"string"},"localDate":{"$ref":"#/$defs/0"},"now":{"$ref":"#/$defs/1"},"resourcePolicy":{"type":"object","properties":{"libraryFolderIds":{"default":null,"anyOf":[{"maxItems":51,"type":"array","items":{"$ref":"#/$defs/2"}},{"type":"null"}]},"futureOnly":{"default":false,"type":"boolean"},"maxExecutionsPerDay":{"anyOf":[{"type":"integer","minimum":1,"maximum":20},{"type":"null"}]},"expiresAt":{"anyOf":[{"$ref":"#/$defs/1"},{"type":"null"}]},"calendarMode":{"type":"string","enum":["selected","all_personal"]}},"required":["libraryFolderIds","futureOnly"],"additionalProperties":false},"usage":{"type":"object","properties":{"observedAt":{"$ref":"#/$defs/1"},"advisory":{"type":"boolean","const":true},"reservesCapacity":{"type":"boolean","const":false},"native":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"used":{"$ref":"#/$defs/3"},"limit":{"$ref":"#/$defs/4"},"remaining":{"$ref":"#/$defs/4"}},"required":["used","limit","remaining"],"additionalProperties":{"$ref":"#/$defs/6"}}},"technical":{"$ref":"#/$defs/7"},"connection":{"type":"object","properties":{"executions":{"$ref":"#/$defs/8"},"readAdmission":{"$ref":"#/$defs/8"},"transportAdmission":{"$ref":"#/$defs/8"},"expiresAt":{"anyOf":[{"$ref":"#/$defs/1"},{"type":"null"}]}},"required":["executions","readAdmission","transportAdmission","expiresAt"],"additionalProperties":{}},"sharedPilot":{"$ref":"#/$defs/7"}},"required":["observedAt","advisory","reservesCapacity","native","technical","connection","sharedPilot"],"additionalProperties":{}}},"required":["schemaVersion","controls","extensions","readCapabilities","featureRevision","scopes","plan","limits","connectionId","accountBinding","timezone","localDate","now"],"additionalProperties":{},"$defs":{"0":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"1":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"2":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"3":{"type":"integer","minimum":0,"maximum":9007199254740991},"4":{"$ref":"#/$defs/5"},"5":{"anyOf":[{"$ref":"#/$defs/3"},{"type":"null"}]},"6":{},"7":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/8"}},"8":{"type":"object","properties":{"used":{"$ref":"#/$defs/3"},"limit":{"$ref":"#/$defs/4"},"remaining":{"$ref":"#/$defs/4"},"scope":{"type":"string","enum":["account","pilot","connection"]},"windowSeconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"resetsAt":{"$ref":"#/$defs/1"}},"required":["used","limit","remaining","scope","windowSeconds","resetsAt"],"additionalProperties":{"$ref":"#/$defs/6"}}}},"minimumScopes":[],"permissionChecksAtExecution":true},"hardi_get_exercise":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"exerciseId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["exerciseId"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"category":{"type":"string"},"measurementKind":{"type":["string","null"]},"revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"localizations":{"type":"array","items":{"type":"object","properties":{"locale":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]}},"required":["locale","name","description"],"additionalProperties":{}}},"contentIsUntrusted":{"type":"boolean","const":true}},"required":["id","category","measurementKind","revision","localizations","contentIsUntrusted"],"additionalProperties":{}},"minimumScopes":["catalog:read"],"permissionChecksAtExecution":true},"hardi_get_performance_tests":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"exerciseId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"limit":{"default":10,"type":"integer","minimum":1,"maximum":20},"cursor":{"type":"string","maxLength":2048}},"required":["exerciseId"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"exerciseId":{"type":"string"},"testVersionId":{"type":"string"},"labelFr":{"type":"string"},"labelEn":{"type":"string"},"metric":{"type":"string"},"unit":{"type":"string"},"minimum":{"type":["string","number","null"]},"maximum":{"type":["string","number","null"]},"precisionScale":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"configuration":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"protocolFr":{"type":"string"},"protocolEn":{"type":"string"},"better":{"type":"string"}},"required":["id","exerciseId","testVersionId","labelFr","labelEn","metric","unit","minimum","maximum","precisionScale","configuration","protocolFr","protocolEn","better"],"additionalProperties":{}}},"nextCursor":{"type":["string","null"]},"complete":{"type":"boolean"},"version":{"type":"string"},"contentIsUntrusted":{"type":"boolean","const":true},"recordingAvailable":{"type":"boolean"}},"required":["items","recordingAvailable"],"additionalProperties":{}},"minimumScopes":["training:read","catalog:read"],"permissionChecksAtExecution":true},"hardi_get_performances":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"from":{"$ref":"#/$defs/0"},"to":{"$ref":"#/$defs/0"},"limit":{"default":20,"type":"integer","minimum":1,"maximum":50},"cursor":{"type":"string","maxLength":2048},"exerciseId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["exerciseId"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"exerciseId":{"type":"string"},"performedOn":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"testId":{"type":"string"},"testVersionId":{"type":"string"},"value":{"type":"string"},"metric":{"type":"string"},"unit":{"type":"string"},"repetitions":{"type":["number","null"]},"configuration":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"nativeVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"version":{"$ref":"#/$defs/0"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","exerciseId","performedOn","testId","testVersionId","value","metric","unit","repetitions","configuration","nativeVersion","version","updatedAt"],"additionalProperties":{}}},"nextCursor":{"type":["string","null"]},"complete":{"type":"boolean"},"version":{"$ref":"#/$defs/0"},"contentIsUntrusted":{"type":"boolean","const":true}},"required":["items"],"additionalProperties":{},"$defs":{"0":{"type":"string"}}},"minimumScopes":["training:read"],"permissionChecksAtExecution":true},"hardi_get_preferences":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"contentIsUntrusted":{"type":"boolean","const":true},"advisory":{"type":"boolean","const":true},"version":{"type":"string"},"values":{"$ref":"#/$defs/0"},"persistentContext":{"$ref":"#/$defs/0"},"disciplineRules":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"instruction":{"type":"string"}},"required":["instruction"],"additionalProperties":{}}}},"required":["contentIsUntrusted","advisory","version","values","persistentContext","disciplineRules"],"additionalProperties":{},"$defs":{"0":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"minimumScopes":["preferences:read"],"permissionChecksAtExecution":true},"hardi_get_schedule":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"calendarId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"from":{"$ref":"#/$defs/0"},"to":{"$ref":"#/$defs/0"},"limit":{"default":25,"type":"integer","minimum":1,"maximum":50},"cursor":{"type":"string","maxLength":2048}},"required":["calendarId","from","to"],"additionalProperties":false,"$defs":{"0":{"anyOf":[{"$ref":"#/$defs/1"},{"$ref":"#/$defs/2"}]},"1":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"2":{"type":"integer","minimum":1,"maximum":9007199254740991}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["workout","note","rest"]},"id":{"type":"string"},"position":{"anyOf":[{"$ref":"#/$defs/0"},{"$ref":"#/$defs/1"}],"description":"ISO date / 1-based day."},"sortOrder":{"type":"number"},"title":{"type":["string","null"]},"body":{"type":["string","null"]},"contentRevision":{"type":["number","null"]}},"required":["kind","id","position","sortOrder","title","body","contentRevision"],"additionalProperties":{}}},"nextCursor":{"type":["string","null"]},"complete":{"type":"boolean"},"version":{"$ref":"#/$defs/2"},"contentIsUntrusted":{"type":"boolean","const":true},"calendar":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"timelineType":{"type":"string","enum":["fixed","dated"]},"durationDays":{"type":["number","null"]},"resourceVersion":{"$ref":"#/$defs/2"}},"required":["id","name","timelineType","durationDays"],"additionalProperties":{}},"resourceVersion":{"$ref":"#/$defs/2"}},"required":["items","calendar","resourceVersion"],"additionalProperties":{},"$defs":{"0":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"1":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"2":{"type":"string"}}},"minimumScopes":["planning:read"],"permissionChecksAtExecution":true},"hardi_get_settings":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"contentIsUntrusted":{"type":"boolean","const":true},"version":{"type":"string"},"display":{"type":"object","properties":{"interfaceLanguage":{"type":["string","null"]},"unitPreferences":{"type":"object","properties":{"measurementSystem":{"type":"string"},"weightUnit":{"type":"string"},"terminologyStyle":{"type":"string"},"dateFormat":{"type":"string"}},"required":["measurementSystem","weightUnit","terminologyStyle","dateFormat"],"additionalProperties":{}}},"required":["interfaceLanguage","unitPreferences"],"additionalProperties":{}},"notifications":{"type":"object","properties":{"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"energy":{"type":"boolean"},"follows":{"type":"boolean"},"product":{"type":"boolean"},"messages":{"type":"boolean"},"messageRequests":{"type":"boolean"}},"required":["version","energy","follows","product","messages","messageRequests"],"additionalProperties":{}}},"required":["contentIsUntrusted","version","display","notifications"],"additionalProperties":{}},"minimumScopes":["settings:read"],"permissionChecksAtExecution":true},"hardi_get_template_workout":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"templateId":{"$ref":"#/$defs/0"},"itemId":{"$ref":"#/$defs/0"},"limit":{"default":3,"type":"integer","minimum":1,"maximum":12},"cursor":{"type":"string","maxLength":2048}},"required":["templateId","itemId"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"source":{"type":"string","const":"template"},"templateId":{"type":"string"},"templateItemId":{"type":"string"},"resourceVersion":{"$ref":"#/$defs/0"},"sourceRevision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"workout":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"revision":{"$ref":"#/$defs/1"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"discipline":{"type":["string","null"]},"totalDurationMinutes":{"type":["number","null"]},"requiredEquipment":{"$ref":"#/$defs/2"},"tags":{"$ref":"#/$defs/2"},"folderId":{"type":["string","null"]},"blocks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"orderIndex":{"type":"integer","minimum":0,"maximum":9007199254740991},"blockType":{"type":"string"},"title":{"type":["string","null"]},"durationMinutes":{"type":["number","null"]},"contentText":{"type":"string"},"nodes":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"lineBreak"}},"required":["type"],"additionalProperties":{}},{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string"}},"required":["type","text"],"additionalProperties":{}},{"type":"object","properties":{"type":{"type":"string","const":"exercise"},"target":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"label":{"type":"string"},"locale":{"type":"string"}},"required":["type","target","label","locale"],"additionalProperties":{}}]}},"resultConfig":{"type":"object","properties":{"enabled":{"type":"boolean"},"scoringType":{"type":"string"},"levelSelection":{"type":"string"}},"required":["enabled","scoringType","levelSelection"],"additionalProperties":{}}},"required":["id","orderIndex","blockType","title","durationMinutes","contentText","resultConfig"],"additionalProperties":{}}},"complete":{"type":"boolean"},"nextCursor":{"type":["string","null"]},"version":{"$ref":"#/$defs/0"},"pageSize":{"$ref":"#/$defs/1"},"contentIsUntrusted":{"type":"boolean","const":true}},"required":["id","title","revision","updatedAt","discipline","totalDurationMinutes","requiredEquipment","tags","blocks","complete","nextCursor","version","contentIsUntrusted"],"additionalProperties":{}}},"required":["source","templateId","templateItemId","resourceVersion","sourceRevision","workout"],"additionalProperties":{},"$defs":{"0":{"type":"string"},"1":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"2":{"type":"array","items":{"type":"string"}}}},"minimumScopes":["templates:read"],"permissionChecksAtExecution":true},"hardi_get_templates":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"metadataOnly":{"default":false,"description":"Metadata/version only; no workouts/annotations.","$ref":"#/$defs/0"},"limit":{"default":5,"type":"integer","minimum":1,"maximum":10},"cursor":{"type":"string","maxLength":2048}},"additionalProperties":false,"$defs":{"0":{"type":"boolean"}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"color":{"type":["string","null"]},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","description","color","updatedAt"],"additionalProperties":{}},{"type":"object","properties":{"id":{"type":"string"},"day":{"$ref":"#/$defs/0"},"sortOrder":{"type":"number"},"title":{"type":"string"},"sourceRevision":{"type":["number","null"]}},"required":["id","day","sortOrder","title","sourceRevision"],"additionalProperties":{}}]}},"nextCursor":{"type":["string","null"]},"complete":{"type":"boolean"},"version":{"$ref":"#/$defs/1"},"contentIsUntrusted":{"type":"boolean","const":true},"resourceVersion":{"$ref":"#/$defs/1"},"template":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"color":{"type":["string","null"]},"contentIncluded":{"type":"boolean"},"dayEntries":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"day":{"$ref":"#/$defs/0"},"kind":{"type":"string","enum":["note","rest"]},"body":{"type":"string"},"isPublic":{"type":"boolean"}},"required":["id","day","kind","body","isPublic"],"additionalProperties":{}}}},"required":["id","name","description","color","contentIncluded","dayEntries"],"additionalProperties":{}}},"required":["items"],"additionalProperties":{},"$defs":{"0":{"type":"integer","minimum":1,"maximum":7},"1":{"type":"string"}}},"minimumScopes":["templates:read"],"permissionChecksAtExecution":true},"hardi_get_training_history":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"from":{"$ref":"#/$defs/0"},"to":{"$ref":"#/$defs/0"},"limit":{"default":20,"type":"integer","minimum":1,"maximum":50},"cursor":{"type":"string","maxLength":2048}},"additionalProperties":false,"$defs":{"0":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"submittedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"subjectKind":{"type":"string","enum":["workout","scheduled_workout"]},"subjectId":{"type":"string"},"blockId":{"type":"string"},"score":{"oneOf":[{"$ref":"#/$defs/0"},{"$ref":"#/$defs/1"},{"$ref":"#/$defs/2"},{"$ref":"#/$defs/5"},{"$ref":"#/$defs/6"},{"$ref":"#/$defs/8"},{"$ref":"#/$defs/9"},{"$ref":"#/$defs/a"},{"$ref":"#/$defs/b"}]},"division":{"type":["string","null"]},"title":{"type":["string","null"]},"blockTitle":{"type":["string","null"]}},"required":["id","submittedAt","subjectKind","subjectId","blockId","score","division","title","blockTitle"],"additionalProperties":{}}},"nextCursor":{"type":["string","null"]},"complete":{"type":"boolean"},"version":{"type":"string"},"contentIsUntrusted":{"type":"boolean","const":true}},"required":["items"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string","const":"free_text"},"text":{"type":"string","minLength":1,"maxLength":240}},"required":["kind","text"],"additionalProperties":false},"1":{"type":"object","properties":{"kind":{"type":"string","const":"time"},"seconds":{"type":"integer","exclusiveMinimum":0,"maximum":86400}},"required":["kind","seconds"],"additionalProperties":false},"2":{"type":"object","properties":{"kind":{"type":"string","const":"time_cap"},"rounds":{"$ref":"#/$defs/3"},"reps":{"$ref":"#/$defs/4"}},"required":["kind","rounds","reps"],"additionalProperties":false},"3":{"type":"integer","minimum":0,"maximum":10000},"4":{"type":"integer","minimum":0,"maximum":100000},"5":{"type":"object","properties":{"kind":{"type":"string","const":"rounds_reps"},"rounds":{"$ref":"#/$defs/3"},"reps":{"$ref":"#/$defs/4"}},"required":["kind","rounds","reps"],"additionalProperties":false},"6":{"type":"object","properties":{"kind":{"type":"string","const":"reps"},"reps":{"$ref":"#/$defs/7"}},"required":["kind","reps"],"additionalProperties":false},"7":{"type":"integer","exclusiveMinimum":0,"maximum":1000000},"8":{"type":"object","properties":{"kind":{"type":"string","const":"weight"},"kilograms":{"type":"number","exclusiveMinimum":0,"maximum":100000}},"required":["kind","kilograms"],"additionalProperties":false},"9":{"type":"object","properties":{"kind":{"type":"string","const":"calories"},"calories":{"$ref":"#/$defs/7"}},"required":["kind","calories"],"additionalProperties":false},"a":{"type":"object","properties":{"kind":{"type":"string","const":"distance"},"meters":{"type":"number","exclusiveMinimum":0,"maximum":1000000}},"required":["kind","meters"],"additionalProperties":false},"b":{"type":"object","properties":{"kind":{"type":"string","const":"watts"},"watts":{"$ref":"#/$defs/7"}},"required":["kind","watts"],"additionalProperties":false}}},"minimumScopes":["training:read"],"permissionChecksAtExecution":true},"hardi_get_training_result":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"subjectKind":{"type":"string","enum":["workout","scheduled_workout"]},"subjectId":{"$ref":"#/$defs/0"},"blockId":{"$ref":"#/$defs/0"}},"required":["subjectKind","subjectId","blockId"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"contentIsUntrusted":{"type":"boolean","const":true},"version":{"type":"string"},"subjectKind":{"type":"string","enum":["workout","scheduled_workout"]},"subjectId":{"type":"string"},"blockId":{"type":"string"},"resultConfig":{"type":"object","properties":{"enabled":{"type":"boolean"},"scoringType":{"type":"string"},"levelSelection":{"type":"string"}},"required":["enabled","scoringType","levelSelection"],"additionalProperties":{}},"result":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"score":{"oneOf":[{"$ref":"#/$defs/0"},{"$ref":"#/$defs/1"},{"$ref":"#/$defs/2"},{"$ref":"#/$defs/5"},{"$ref":"#/$defs/6"},{"$ref":"#/$defs/8"},{"$ref":"#/$defs/9"},{"$ref":"#/$defs/a"},{"$ref":"#/$defs/b"}]},"division":{"type":["string","null"]},"status":{"type":"string"}},"required":["id","score","division","status"],"additionalProperties":{}},{"type":"null"}]},"effects":{"type":"string"}},"required":["contentIsUntrusted","version","subjectKind","subjectId","blockId","resultConfig","result","effects"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string","const":"free_text"},"text":{"type":"string","minLength":1,"maxLength":240}},"required":["kind","text"],"additionalProperties":false},"1":{"type":"object","properties":{"kind":{"type":"string","const":"time"},"seconds":{"type":"integer","exclusiveMinimum":0,"maximum":86400}},"required":["kind","seconds"],"additionalProperties":false},"2":{"type":"object","properties":{"kind":{"type":"string","const":"time_cap"},"rounds":{"$ref":"#/$defs/3"},"reps":{"$ref":"#/$defs/4"}},"required":["kind","rounds","reps"],"additionalProperties":false},"3":{"type":"integer","minimum":0,"maximum":10000},"4":{"type":"integer","minimum":0,"maximum":100000},"5":{"type":"object","properties":{"kind":{"type":"string","const":"rounds_reps"},"rounds":{"$ref":"#/$defs/3"},"reps":{"$ref":"#/$defs/4"}},"required":["kind","rounds","reps"],"additionalProperties":false},"6":{"type":"object","properties":{"kind":{"type":"string","const":"reps"},"reps":{"$ref":"#/$defs/7"}},"required":["kind","reps"],"additionalProperties":false},"7":{"type":"integer","exclusiveMinimum":0,"maximum":1000000},"8":{"type":"object","properties":{"kind":{"type":"string","const":"weight"},"kilograms":{"type":"number","exclusiveMinimum":0,"maximum":100000}},"required":["kind","kilograms"],"additionalProperties":false},"9":{"type":"object","properties":{"kind":{"type":"string","const":"calories"},"calories":{"$ref":"#/$defs/7"}},"required":["kind","calories"],"additionalProperties":false},"a":{"type":"object","properties":{"kind":{"type":"string","const":"distance"},"meters":{"type":"number","exclusiveMinimum":0,"maximum":1000000}},"required":["kind","meters"],"additionalProperties":false},"b":{"type":"object","properties":{"kind":{"type":"string","const":"watts"},"watts":{"$ref":"#/$defs/7"}},"required":["kind","watts"],"additionalProperties":false}}},"minimumScopes":["training:read","workouts:read"],"permissionChecksAtExecution":true},"hardi_get_workout":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"source":{"type":"string","enum":["library","schedule"]},"workoutId":{"$ref":"#/$defs/0"},"scheduledWorkoutId":{"$ref":"#/$defs/0"},"limit":{"default":4,"type":"integer","minimum":1,"maximum":12},"cursor":{"type":"string","maxLength":2048}},"required":["source"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"source":{"type":"string","enum":["library","schedule"]},"resourceVersion":{"$ref":"#/$defs/0"},"workout":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"revision":{"$ref":"#/$defs/1"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"discipline":{"type":["string","null"]},"totalDurationMinutes":{"type":["number","null"]},"requiredEquipment":{"$ref":"#/$defs/2"},"tags":{"$ref":"#/$defs/2"},"folderId":{"type":["string","null"]},"blocks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"orderIndex":{"type":"integer","minimum":0,"maximum":9007199254740991},"blockType":{"type":"string"},"title":{"type":["string","null"]},"durationMinutes":{"type":["number","null"]},"contentText":{"type":"string"},"nodes":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"lineBreak"}},"required":["type"],"additionalProperties":{}},{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string"}},"required":["type","text"],"additionalProperties":{}},{"type":"object","properties":{"type":{"type":"string","const":"exercise"},"target":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"label":{"type":"string"},"locale":{"type":"string"}},"required":["type","target","label","locale"],"additionalProperties":{}}]}},"resultConfig":{"type":"object","properties":{"enabled":{"type":"boolean"},"scoringType":{"type":"string"},"levelSelection":{"type":"string"}},"required":["enabled","scoringType","levelSelection"],"additionalProperties":{}}},"required":["id","orderIndex","blockType","title","durationMinutes","contentText","resultConfig"],"additionalProperties":{}}},"complete":{"type":"boolean"},"nextCursor":{"type":["string","null"]},"version":{"$ref":"#/$defs/0"},"pageSize":{"$ref":"#/$defs/1"},"contentIsUntrusted":{"type":"boolean","const":true}},"required":["id","title","revision","updatedAt","discipline","totalDurationMinutes","requiredEquipment","tags","blocks","complete","nextCursor","version","contentIsUntrusted"],"additionalProperties":{}},"scheduledWorkoutId":{"type":"string"},"calendarId":{"type":"string"},"position":{"anyOf":[{"$ref":"#/$defs/3"},{"$ref":"#/$defs/1"}],"description":"ISO date / 1-based day."},"contentRevision":{"$ref":"#/$defs/1"}},"required":["source","resourceVersion","workout"],"additionalProperties":{},"$defs":{"0":{"type":"string"},"1":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"2":{"type":"array","items":{"type":"string"}},"3":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}}},"minimumScopes":["workouts:read"],"permissionChecksAtExecution":true},"hardi_get_workout_results":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"source":{"$ref":"#/$defs/0"},"workoutId":{"$ref":"#/$defs/1"},"scheduledWorkoutId":{"$ref":"#/$defs/1"},"blockId":{"$ref":"#/$defs/1"},"category":{"$ref":"#/$defs/2"},"division":{"$ref":"#/$defs/3"},"limit":{"$ref":"#/$defs/4"},"cursor":{"$ref":"#/$defs/5"}},"required":["blockId"],"additionalProperties":false,"$defs":{"0":{"default":"library","type":"string","enum":["library","schedule"]},"1":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"2":{"type":"string","enum":["men","women"]},"3":{"type":"string","enum":["rx","scaled","none"]},"4":{"default":10,"type":"integer","minimum":1,"maximum":20},"5":{"type":"string","maxLength":2048}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"blockId":{"type":"string"},"participant":{"type":"object","properties":{"name":{"type":"string"},"anonymized":{"type":"boolean"},"kind":{"type":"string"}},"required":["name","anonymized","kind"],"additionalProperties":{}},"status":{"type":"string"},"score":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number"]}},{"type":"null"}]},"scoreKind":{"type":["string","null"]},"division":{"type":["string","null"]},"category":{"type":["string","null"]},"submittedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"rank":{"type":["number","null"]},"rpe":{"type":["number","null"]},"notes":{"type":["string","null"]}},"required":["id","blockId","participant","status","score","scoreKind","division","category","submittedAt","rank","rpe","notes"],"additionalProperties":{}}},"nextCursor":{"type":["string","null"]},"complete":{"type":"boolean"},"version":{"$ref":"#/$defs/0"},"contentIsUntrusted":{"type":"boolean","const":true},"source":{"type":"string","enum":["library","schedule"]},"subjectId":{"type":"string"},"blockId":{"type":"string"},"resourceVersion":{"$ref":"#/$defs/0"}},"required":["items","source","subjectId","blockId","resourceVersion"],"additionalProperties":{},"$defs":{"0":{"type":"string"}}},"minimumScopes":["workout-results:read","workouts:read"],"permissionChecksAtExecution":true},"hardi_get_workouts":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"workoutIds":{"minItems":1,"maxItems":3,"type":"array","items":{"$ref":"#/$defs/0"}},"blockLimit":{"default":1,"type":"integer","minimum":1,"maximum":4}},"required":["workoutIds"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string","enum":["library","schedule"]},"resourceVersion":{"$ref":"#/$defs/0"},"workout":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"revision":{"$ref":"#/$defs/1"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"discipline":{"type":["string","null"]},"totalDurationMinutes":{"type":["number","null"]},"requiredEquipment":{"$ref":"#/$defs/2"},"tags":{"$ref":"#/$defs/2"},"folderId":{"type":["string","null"]},"blocks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"orderIndex":{"type":"integer","minimum":0,"maximum":9007199254740991},"blockType":{"type":"string"},"title":{"type":["string","null"]},"durationMinutes":{"type":["number","null"]},"contentText":{"type":"string"},"nodes":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"lineBreak"}},"required":["type"],"additionalProperties":{}},{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string"}},"required":["type","text"],"additionalProperties":{}},{"type":"object","properties":{"type":{"type":"string","const":"exercise"},"target":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"label":{"type":"string"},"locale":{"type":"string"}},"required":["type","target","label","locale"],"additionalProperties":{}}]}},"resultConfig":{"type":"object","properties":{"enabled":{"type":"boolean"},"scoringType":{"type":"string"},"levelSelection":{"type":"string"}},"required":["enabled","scoringType","levelSelection"],"additionalProperties":{}}},"required":["id","orderIndex","blockType","title","durationMinutes","contentText","resultConfig"],"additionalProperties":{}}},"complete":{"type":"boolean"},"nextCursor":{"type":["string","null"]},"version":{"$ref":"#/$defs/0"},"pageSize":{"$ref":"#/$defs/1"},"contentIsUntrusted":{"type":"boolean","const":true}},"required":["id","title","revision","updatedAt","discipline","totalDurationMinutes","requiredEquipment","tags","blocks","complete","nextCursor","version","contentIsUntrusted"],"additionalProperties":{}},"scheduledWorkoutId":{"type":"string"},"calendarId":{"type":"string"},"position":{"anyOf":[{"$ref":"#/$defs/3"},{"$ref":"#/$defs/1"}],"description":"ISO date / 1-based day."},"contentRevision":{"$ref":"#/$defs/1"}},"required":["source","resourceVersion","workout"],"additionalProperties":{}}},"nextCursor":{"type":["string","null"]},"complete":{"type":"boolean"},"version":{"$ref":"#/$defs/0"},"contentIsUntrusted":{"type":"boolean","const":true}},"required":["items"],"additionalProperties":{},"$defs":{"0":{"type":"string"},"1":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"2":{"type":"array","items":{"type":"string"}},"3":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}}},"minimumScopes":["workouts:read"],"permissionChecksAtExecution":true},"hardi_list_actions":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"limit":{"default":10,"type":"integer","minimum":1,"maximum":20},"before":{"type":"string","minLength":1,"maxLength":2048}},"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{}}},"nextBefore":{"type":["string","null"]}},"required":["items","nextBefore"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read"],"permissionChecksAtExecution":true},"hardi_list_calendars":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"limit":{"default":100,"type":"integer","minimum":1,"maximum":100},"cursor":{"type":"string","maxLength":2048}},"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"timelineType":{"type":"string","enum":["fixed","dated"]},"durationDays":{"type":["number","null"]},"resourceVersion":{"$ref":"#/$defs/0"}},"required":["id","name","timelineType","durationDays"],"additionalProperties":{}}},"nextCursor":{"type":["string","null"]},"complete":{"type":"boolean"},"version":{"$ref":"#/$defs/0"},"contentIsUntrusted":{"type":"boolean","const":true}},"required":["items"],"additionalProperties":{},"$defs":{"0":{"type":"string"}}},"minimumScopes":["planning:read"],"permissionChecksAtExecution":true},"hardi_list_cycles":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"calendarId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"from":{"$ref":"#/$defs/0"},"to":{"$ref":"#/$defs/0"},"limit":{"default":10,"type":"integer","minimum":1,"maximum":20},"cursor":{"type":"string","maxLength":2048}},"required":["calendarId","from","to"],"additionalProperties":false,"$defs":{"0":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"integer","minimum":1,"maximum":9007199254740991}]}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"color":{"type":"string"},"brief":{"type":["string","null"]},"disciplineMode":{"type":"string","enum":["all","selected"]},"disciplines":{"type":"array","items":{"type":"string"}},"from":{"$ref":"#/$defs/0"},"to":{"$ref":"#/$defs/0"}},"required":["id","name","color","brief","disciplineMode","disciplines","from","to"],"additionalProperties":{}}},"nextCursor":{"type":["string","null"]},"complete":{"type":"boolean"},"version":{"$ref":"#/$defs/3"},"contentIsUntrusted":{"type":"boolean","const":true},"calendarId":{"type":"string"},"resourceVersion":{"$ref":"#/$defs/3"}},"required":["items","calendarId","resourceVersion"],"additionalProperties":{},"$defs":{"0":{"anyOf":[{"$ref":"#/$defs/1"},{"$ref":"#/$defs/2"}],"description":"ISO date / 1-based day."},"1":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"2":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"3":{"type":"string"}}},"minimumScopes":["cycles:read","planning:read"],"permissionChecksAtExecution":true},"hardi_list_folders":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"folders":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"parentId":{"type":["string","null"]},"depth":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"color":{"type":["string","null"]},"sortOrder":{"type":"number"},"version":{"$ref":"#/$defs/0"}},"required":["id","name","parentId","depth","color","sortOrder","version"],"additionalProperties":{}}},"version":{"$ref":"#/$defs/0"}},"required":["folders","version"],"additionalProperties":{},"$defs":{"0":{"type":"string"}}},"minimumScopes":["folders:read"],"permissionChecksAtExecution":true},"hardi_list_trash":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"limit":{"default":10,"type":"integer","minimum":1,"maximum":20},"cursor":{"type":"string","maxLength":2048}},"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["workout","trash"]},"id":{"type":"string"},"title":{"type":"string"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"version":{"$ref":"#/$defs/0"}},"required":["kind","id","title","expiresAt","version"],"additionalProperties":{}}},"nextCursor":{"type":["string","null"]},"complete":{"type":"boolean"},"version":{"$ref":"#/$defs/0"},"contentIsUntrusted":{"type":"boolean","const":true}},"required":["items"],"additionalProperties":{},"$defs":{"0":{"type":"string"}}},"minimumScopes":[],"permissionChecksAtExecution":true},"hardi_search_exercises":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"query":{"default":"","type":"string","maxLength":100},"limit":{"default":10,"type":"integer","minimum":1,"maximum":20},"cursor":{"type":"string","maxLength":2048}},"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"category":{"type":"string"},"revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","category","revision"],"additionalProperties":{}}},"nextCursor":{"type":["string","null"]},"complete":{"type":"boolean"},"version":{"type":"string"},"contentIsUntrusted":{"type":"boolean","const":true}},"required":["items"],"additionalProperties":{}},"minimumScopes":["catalog:read"],"permissionChecksAtExecution":true},"hardi_search_workouts":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"query":{"default":"","type":"string","maxLength":100},"limit":{"default":10,"type":"integer","minimum":1,"maximum":20},"cursor":{"type":"string","maxLength":2048},"folderId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"discipline":{"$ref":"#/$defs/0"},"equipment":{"maxItems":10,"type":"array","items":{"$ref":"#/$defs/0"}},"tags":{"maxItems":5,"type":"array","items":{"$ref":"#/$defs/0"}},"minDurationMinutes":{"$ref":"#/$defs/1"},"maxDurationMinutes":{"$ref":"#/$defs/1"}},"additionalProperties":false,"$defs":{"0":{"type":"string","minLength":1,"maxLength":20},"1":{"type":"integer","minimum":0,"maximum":10080}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"discipline":{"type":["string","null"]},"revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"folderId":{"type":["string","null"]}},"required":["id","title","discipline","revision","updatedAt","folderId"],"additionalProperties":{}}},"nextCursor":{"type":["string","null"]},"complete":{"type":"boolean"},"version":{"type":"string"},"contentIsUntrusted":{"type":"boolean","const":true}},"required":["items"],"additionalProperties":{}},"minimumScopes":["workouts:read"],"permissionChecksAtExecution":true},"hardi_undo_action":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"operationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"}},"required":["operationId","requestId"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","actions:undo"],"permissionChecksAtExecution":true},"hardi_calendar_create":{"title":"Create a personal calendar","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"ref":{"$ref":"#/$defs/2"},"name":{"type":"string","minLength":1,"maxLength":30},"timelineType":{"default":"dated","type":"string","enum":["dated","fixed"]},"durationWeeks":{"anyOf":[{"type":"integer","minimum":1,"maximum":52},{"type":"null"}]},"description":{"$ref":"#/$defs/4"}},"required":["requestId","ref","name"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28},"4":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","planning:read","calendars:create"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false}},"hardi_training_performance_create":{"title":"Record a personal performance","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"exerciseId":{"$ref":"#/$defs/0"},"input":{"type":"object","properties":{"testId":{"$ref":"#/$defs/0"},"testVersionId":{"$ref":"#/$defs/0"},"performedOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"timeZone":{"type":"string","minLength":1,"maxLength":100},"value":{"type":["string","number"]},"repetitions":{"default":null,"anyOf":[{"type":"integer","minimum":1,"maximum":10},{"type":"null"}]},"configuration":{"default":null,"anyOf":[{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"machine"},"machineModel":{"$ref":"#/$defs/4"},"machineSettings":{"$ref":"#/$defs/4"},"assistanceKg":{"type":"number","minimum":0,"maximum":999}},"required":["kind","machineModel","machineSettings","assistanceKg"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"band"},"bandIdentification":{"$ref":"#/$defs/4"},"anchorAndLimbSetup":{"$ref":"#/$defs/5"}},"required":["kind","bandIdentification","anchorAndLimbSetup"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"declared_setup"},"setupId":{"$ref":"#/$defs/0"},"setupName":{"type":"string","minLength":1,"maxLength":60},"values":{"type":"object","propertyNames":{"$ref":"#/$defs/6"},"additionalProperties":{"$ref":"#/$defs/7"}}},"required":["kind","values"],"additionalProperties":false}]},{"type":"null"}]}},"required":["testId","testVersionId","performedOn","timeZone","value"],"additionalProperties":false},"ref":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_-]{0,39}$"}},"required":["requestId","exerciseId","input"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28},"4":{"type":"string","minLength":1,"maxLength":160},"5":{"type":"string","minLength":1,"maxLength":240},"6":{"type":"string","pattern":"^[a-z][A-Za-z0-9]{0,47}$"},"7":{"anyOf":[{"type":"number","minimum":-999999,"maximum":999999},{"$ref":"#/$defs/5"}]}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","training:read","training:write"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_training_performance_update":{"title":"Correct a personal performance","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"exerciseId":{"$ref":"#/$defs/0"},"performanceId":{"$ref":"#/$defs/0"},"expectedVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"},"input":{"type":"object","properties":{"testId":{"$ref":"#/$defs/0"},"testVersionId":{"$ref":"#/$defs/0"},"performedOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"timeZone":{"type":"string","minLength":1,"maxLength":100},"value":{"type":["string","number"]},"repetitions":{"default":null,"anyOf":[{"type":"integer","minimum":1,"maximum":10},{"type":"null"}]},"configuration":{"default":null,"anyOf":[{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"machine"},"machineModel":{"$ref":"#/$defs/4"},"machineSettings":{"$ref":"#/$defs/4"},"assistanceKg":{"type":"number","minimum":0,"maximum":999}},"required":["kind","machineModel","machineSettings","assistanceKg"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"band"},"bandIdentification":{"$ref":"#/$defs/4"},"anchorAndLimbSetup":{"$ref":"#/$defs/5"}},"required":["kind","bandIdentification","anchorAndLimbSetup"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"declared_setup"},"setupId":{"$ref":"#/$defs/0"},"setupName":{"type":"string","minLength":1,"maxLength":60},"values":{"type":"object","propertyNames":{"$ref":"#/$defs/6"},"additionalProperties":{"$ref":"#/$defs/7"}}},"required":["kind","values"],"additionalProperties":false}]},{"type":"null"}]}},"required":["testId","testVersionId","performedOn","timeZone","value"],"additionalProperties":false}},"required":["requestId","exerciseId","performanceId","expectedVersion","input"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28},"4":{"type":"string","minLength":1,"maxLength":160},"5":{"type":"string","minLength":1,"maxLength":240},"6":{"type":"string","pattern":"^[a-z][A-Za-z0-9]{0,47}$"},"7":{"anyOf":[{"type":"number","minimum":-999999,"maximum":999999},{"$ref":"#/$defs/5"}]}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","training:read","training:write"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_training_result_upsert":{"title":"Record or correct my workout result","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"subjectKind":{"type":"string","enum":["workout","scheduled_workout"]},"subjectId":{"$ref":"#/$defs/0"},"blockId":{"$ref":"#/$defs/0"},"expectedVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"},"score":{"oneOf":[{"$ref":"#/$defs/4"},{"$ref":"#/$defs/5"},{"$ref":"#/$defs/6"},{"$ref":"#/$defs/9"},{"$ref":"#/$defs/a"},{"$ref":"#/$defs/c"},{"$ref":"#/$defs/d"},{"$ref":"#/$defs/e"},{"$ref":"#/$defs/f"}]},"division":{"type":"string","enum":["rx","scaled","none"]}},"required":["requestId","subjectKind","subjectId","blockId","expectedVersion","score"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28},"4":{"type":"object","properties":{"kind":{"type":"string","const":"free_text"},"text":{"type":"string","minLength":1,"maxLength":240}},"required":["kind","text"]},"5":{"type":"object","properties":{"kind":{"type":"string","const":"time"},"seconds":{"type":"integer","exclusiveMinimum":0,"maximum":7200}},"required":["kind","seconds"]},"6":{"type":"object","properties":{"kind":{"type":"string","const":"time_cap"},"rounds":{"$ref":"#/$defs/7"},"reps":{"$ref":"#/$defs/8"}},"required":["kind","rounds","reps"]},"7":{"type":"integer","minimum":0,"maximum":200},"8":{"type":"integer","minimum":0,"maximum":10000},"9":{"type":"object","properties":{"kind":{"type":"string","const":"rounds_reps"},"rounds":{"$ref":"#/$defs/7"},"reps":{"$ref":"#/$defs/8"}},"required":["kind","rounds","reps"]},"a":{"type":"object","properties":{"kind":{"type":"string","const":"reps"},"reps":{"$ref":"#/$defs/b"}},"required":["kind","reps"]},"b":{"type":"integer","exclusiveMinimum":0,"maximum":10000},"c":{"type":"object","properties":{"kind":{"type":"string","const":"weight"},"kilograms":{"type":"number","exclusiveMinimum":0,"maximum":1000}},"required":["kind","kilograms"]},"d":{"type":"object","properties":{"kind":{"type":"string","const":"calories"},"calories":{"$ref":"#/$defs/b"}},"required":["kind","calories"]},"e":{"type":"object","properties":{"kind":{"type":"string","const":"distance"},"meters":{"type":"number","exclusiveMinimum":0,"maximum":100000}},"required":["kind","meters"]},"f":{"type":"object","properties":{"kind":{"type":"string","const":"watts"},"watts":{"type":"integer","exclusiveMinimum":0,"maximum":3000}},"required":["kind","watts"]}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","training:read","training:write","workouts:read"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_update_preferences":{"title":"Update programming preferences","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"expectedVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"},"changes":{"minItems":1,"maxItems":20,"type":"array","items":{"$ref":"#/$defs/4"}}},"required":["requestId","expectedVersion","changes"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28},"4":{"type":"object","properties":{"path":{"minItems":1,"maxItems":8,"type":"array","items":{"$ref":"#/$defs/1"}},"before":{"$ref":"#/$defs/5"},"value":{"$ref":"#/$defs/6"}},"required":["path","before","value"],"additionalProperties":false},"5":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/5"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/5"}}]},"6":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/6"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/6"}}]}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","preferences:read","preferences:write"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_update_settings":{"title":"Update account display and notifications","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"expectedVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"},"patch":{"type":"object","properties":{"display":{"$ref":"#/$defs/4"},"notifications":{"$ref":"#/$defs/5"}},"additionalProperties":false}},"required":["requestId","expectedVersion","patch"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28},"4":{"type":"object","properties":{"interfaceLanguage":{"type":"string","enum":["en","fr"]},"unitPreferences":{"type":"object","properties":{"measurementSystem":{"type":"string","enum":["metric","imperial"]},"weightUnit":{"type":"string","enum":["kg","lb"]},"terminologyStyle":{"type":"string","enum":["full","short"]},"dateFormat":{"type":"string","enum":["day/month/year","month/day/year"]},"resultLevelSelection":{"type":"string","enum":["rx_scaled","none"]}},"additionalProperties":false}},"additionalProperties":false},"5":{"type":"object","properties":{"energy":{"type":"boolean"},"follows":{"type":"boolean"},"product":{"type":"boolean"},"messages":{"type":"boolean"},"messageRequests":{"type":"boolean"}},"additionalProperties":false}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","settings:read","settings:write"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_workout_create":{"title":"Create a workout","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"ref":{"$ref":"#/$defs/2"},"content":{"type":"object","properties":{"title":{"$ref":"#/$defs/4"},"discipline":{"default":null,"anyOf":[{"$ref":"#/$defs/5"},{"type":"null"}]},"requiredEquipment":{"default":[],"maxItems":10,"type":"array","items":{"$ref":"#/$defs/5"}},"blocks":{"minItems":1,"maxItems":12,"type":"array","items":{"$ref":"#/$defs/6"}},"totalDurationMinutes":{"anyOf":[{"type":"integer","minimum":0,"maximum":10080},{"type":"null"}]},"tags":{"maxItems":5,"type":"array","items":{"$ref":"#/$defs/5"}}},"required":["title","blocks"],"additionalProperties":false},"folderId":{"anyOf":[{"$ref":"#/$defs/0"},{"type":"null"}]}},"required":["requestId","ref","content"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28},"4":{"type":"string","minLength":1,"maxLength":50},"5":{"type":"string","minLength":1,"maxLength":20},"6":{"type":"object","properties":{"title":{"default":null,"anyOf":[{"$ref":"#/$defs/4"},{"type":"null"}]},"blockType":{"$ref":"#/$defs/4"},"durationMinutes":{"default":null,"anyOf":[{"type":"integer","minimum":0,"maximum":1440},{"type":"null"}]},"contentText":{"default":"","type":"string","maxLength":4000},"nodes":{"maxItems":128,"type":"array","items":{"$ref":"#/$defs/7"}},"levelSelection":{"type":"string","enum":["rx_scaled","none"]},"scoringType":{"default":"free_text","type":"string","enum":["free_text","time","rounds_reps","reps","weight","calories","distance","watts"]}},"required":["blockType"],"additionalProperties":false},"7":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string","minLength":1,"maxLength":4000}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"lineBreak"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"exercise"},"exerciseId":{"$ref":"#/$defs/0"},"label":{"type":"string","minLength":1,"maxLength":160},"locale":{"type":"string","enum":["fr","en"]}},"required":["type","exerciseId","label","locale"],"additionalProperties":false}]}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","catalog:read","workouts:read","workouts:create"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_workout_update":{"title":"Edit a workout","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$","description":"Generate once per write. If the result is missing or interrupted, look up this exact requestId with hardi_get_action before retrying the identical payload."},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"workoutId":{"description":"The library workout ID. Use it directly with hardi_get_workout, source=library, without listing folders.","$ref":"#/$defs/0"},"expectedVersion":{"type":"string","pattern":"^[a-f0-9]{64}$","description":"Copy the top-level resourceVersion from the latest hardi_get_workout result for this exact workout verbatim. Do not use the nested workout.version."},"expectedRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"Copy workout.revision from the same hardi_get_workout result as expectedVersion."},"patch":{"type":"object","properties":{"title":{"$ref":"#/$defs/4"},"discipline":{"$ref":"#/$defs/5"},"totalDurationMinutes":{"$ref":"#/$defs/7"},"requiredEquipment":{"$ref":"#/$defs/8"},"tags":{"$ref":"#/$defs/9"},"blocks":{"$ref":"#/$defs/a"}},"additionalProperties":false}},"required":["requestId","workoutId","expectedVersion","expectedRevision","patch"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28},"4":{"type":"string","minLength":1,"maxLength":50},"5":{"anyOf":[{"$ref":"#/$defs/6"},{"type":"null"}]},"6":{"type":"string","minLength":1,"maxLength":20},"7":{"anyOf":[{"type":"integer","minimum":0,"maximum":10080},{"type":"null"}]},"8":{"maxItems":10,"type":"array","items":{"$ref":"#/$defs/6"}},"9":{"maxItems":5,"type":"array","items":{"$ref":"#/$defs/6"}},"a":{"maxItems":30,"type":"array","items":{"$ref":"#/$defs/b"}},"b":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"insert"},"index":{"$ref":"#/$defs/c"},"block":{"type":"object","properties":{"title":{"default":null,"anyOf":[{"$ref":"#/$defs/4"},{"type":"null"}]},"blockType":{"$ref":"#/$defs/4"},"durationMinutes":{"default":null,"anyOf":[{"$ref":"#/$defs/d"},{"type":"null"}]},"contentText":{"default":"","type":"string","maxLength":4000},"nodes":{"$ref":"#/$defs/e"},"levelSelection":{"type":"string","enum":["rx_scaled","none"]},"scoringType":{"default":"free_text","type":"string","enum":["free_text","time","rounds_reps","reps","weight","calories","distance","watts"]}},"required":["blockType"],"additionalProperties":false}},"required":["type","index","block"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"update"},"blockId":{"$ref":"#/$defs/0"},"patch":{"type":"object","properties":{"title":{"anyOf":[{"$ref":"#/$defs/4"},{"type":"null"}]},"blockType":{"$ref":"#/$defs/4"},"durationMinutes":{"anyOf":[{"$ref":"#/$defs/d"},{"type":"null"}]},"contentText":{"type":"string","maxLength":4000},"nodes":{"$ref":"#/$defs/e"},"scoringType":{"type":"string","enum":["free_text","time","rounds_reps","reps","weight","calories","distance","watts"]}},"additionalProperties":false}},"required":["type","blockId","patch"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"remove"},"blockId":{"$ref":"#/$defs/0"}},"required":["type","blockId"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"move"},"blockId":{"$ref":"#/$defs/0"},"index":{"$ref":"#/$defs/c"}},"required":["type","blockId","index"],"additionalProperties":false}]},"c":{"type":"integer","minimum":0,"maximum":11},"d":{"type":"integer","minimum":0,"maximum":1440},"e":{"maxItems":128,"type":"array","items":{"$ref":"#/$defs/f"}},"f":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string","minLength":1,"maxLength":4000}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"lineBreak"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"exercise"},"exerciseId":{"$ref":"#/$defs/0"},"label":{"type":"string","minLength":1,"maxLength":160},"locale":{"type":"string","enum":["fr","en"]}},"required":["type","exerciseId","label","locale"],"additionalProperties":false}]}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","workouts:read","workouts:update"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_workout_duplicate":{"title":"Duplicate a workout","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"workoutId":{"$ref":"#/$defs/0"},"expectedVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"},"ref":{"$ref":"#/$defs/2"},"title":{"type":"string","minLength":1,"maxLength":50},"folderId":{"anyOf":[{"$ref":"#/$defs/0"},{"type":"null"}]}},"required":["requestId","workoutId","expectedVersion","ref"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","workouts:read","workouts:create"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_workout_move":{"title":"Move a workout to a folder","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"workoutId":{"$ref":"#/$defs/0"},"expectedVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"},"folderId":{"anyOf":[{"$ref":"#/$defs/0"},{"type":"null"}]}},"required":["requestId","workoutId","expectedVersion"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","workouts:read","workouts:update","folders:read"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_workout_trash":{"title":"Move a workout to Trash","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"workoutId":{"$ref":"#/$defs/0"},"expectedVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["requestId","workoutId","expectedVersion"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","workouts:read","workouts:delete"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_workout_restore":{"title":"Restore a workout","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"workoutId":{"$ref":"#/$defs/0"},"expectedVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["requestId","workoutId","expectedVersion"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","workouts:read","workouts:restore"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_folder_create":{"title":"Create a workout folder","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"ref":{"$ref":"#/$defs/2"},"name":{"$ref":"#/$defs/1"},"parentId":{"anyOf":[{"$ref":"#/$defs/0"},{"type":"null"}]},"color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"null"}]}},"required":["requestId","ref","name"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","folders:read","folders:write"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false}},"hardi_folder_update":{"title":"Edit a workout folder","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"folderId":{"$ref":"#/$defs/0"},"expectedVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"},"name":{"$ref":"#/$defs/1"},"parentId":{"anyOf":[{"$ref":"#/$defs/0"},{"type":"null"}]},"color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"null"}]}},"required":["requestId","folderId","expectedVersion"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","folders:read","folders:write"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_folder_reorder":{"title":"Reorder workout folders","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"expectedVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"},"items":{"minItems":1,"maxItems":50,"type":"array","items":{"$ref":"#/$defs/4"}}},"required":["requestId","expectedVersion","items"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28},"4":{"type":"object","properties":{"folderId":{"$ref":"#/$defs/0"},"parentId":{"anyOf":[{"$ref":"#/$defs/0"},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["folderId","parentId","sortOrder"],"additionalProperties":false}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","folders:read","folders:write"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_folder_trash":{"title":"Move a folder to Trash","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"folderId":{"$ref":"#/$defs/0"},"expectedVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"},"contentPolicy":{"default":"error_if_not_empty","type":"string","enum":["error_if_not_empty","trash_contents","move_contents"]},"destinationFolderId":{"anyOf":[{"$ref":"#/$defs/0"},{"type":"null"}]}},"required":["requestId","folderId","expectedVersion"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","folders:read","folders:delete"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_folder_restore":{"title":"Restore a folder from Trash","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"batchId":{"$ref":"#/$defs/0"},"expectedVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["requestId","batchId","expectedVersion"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","folders:read","folders:write"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_planning_add":{"title":"Schedule a workout","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"calendarId":{"$ref":"#/$defs/0"},"expectedVersion":{"$ref":"#/$defs/4"},"timezone":{"$ref":"#/$defs/1"},"ref":{"$ref":"#/$defs/2"},"workoutId":{"$ref":"#/$defs/0"},"sourceVersion":{"$ref":"#/$defs/4"},"position":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"integer","minimum":1,"maximum":9007199254740991}]},"beforeItemId":{"anyOf":[{"$ref":"#/$defs/0"},{"type":"null"}]},"collision":{"default":"error","type":"string","enum":["error","append"]}},"required":["requestId","calendarId","expectedVersion","timezone","workoutId","sourceVersion","position"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28},"4":{"type":"string","pattern":"^[a-f0-9]{64}$"}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","planning:read","planning:create","workouts:read"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_planning_update":{"title":"Edit a scheduled workout","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"calendarId":{"$ref":"#/$defs/0"},"expectedVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"},"timezone":{"$ref":"#/$defs/1"},"occurrenceId":{"$ref":"#/$defs/0"},"expectedRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"patch":{"type":"object","properties":{"title":{"$ref":"#/$defs/4"},"discipline":{"$ref":"#/$defs/5"},"totalDurationMinutes":{"$ref":"#/$defs/7"},"requiredEquipment":{"$ref":"#/$defs/8"},"tags":{"$ref":"#/$defs/9"},"blocks":{"$ref":"#/$defs/a"}},"additionalProperties":false}},"required":["requestId","calendarId","expectedVersion","timezone","occurrenceId","expectedRevision","patch"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28},"4":{"type":"string","minLength":1,"maxLength":50},"5":{"anyOf":[{"$ref":"#/$defs/6"},{"type":"null"}]},"6":{"type":"string","minLength":1,"maxLength":20},"7":{"anyOf":[{"type":"integer","minimum":0,"maximum":10080},{"type":"null"}]},"8":{"maxItems":10,"type":"array","items":{"$ref":"#/$defs/6"}},"9":{"maxItems":5,"type":"array","items":{"$ref":"#/$defs/6"}},"a":{"maxItems":30,"type":"array","items":{"$ref":"#/$defs/b"}},"b":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"insert"},"index":{"$ref":"#/$defs/c"},"block":{"type":"object","properties":{"title":{"default":null,"anyOf":[{"$ref":"#/$defs/4"},{"type":"null"}]},"blockType":{"$ref":"#/$defs/4"},"durationMinutes":{"default":null,"anyOf":[{"$ref":"#/$defs/d"},{"type":"null"}]},"contentText":{"default":"","type":"string","maxLength":4000},"nodes":{"$ref":"#/$defs/e"},"levelSelection":{"type":"string","enum":["rx_scaled","none"]},"scoringType":{"default":"free_text","type":"string","enum":["free_text","time","rounds_reps","reps","weight","calories","distance","watts"]}},"required":["blockType"],"additionalProperties":false}},"required":["type","index","block"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"update"},"blockId":{"$ref":"#/$defs/0"},"patch":{"type":"object","properties":{"title":{"anyOf":[{"$ref":"#/$defs/4"},{"type":"null"}]},"blockType":{"$ref":"#/$defs/4"},"durationMinutes":{"anyOf":[{"$ref":"#/$defs/d"},{"type":"null"}]},"contentText":{"type":"string","maxLength":4000},"nodes":{"$ref":"#/$defs/e"},"scoringType":{"type":"string","enum":["free_text","time","rounds_reps","reps","weight","calories","distance","watts"]}},"additionalProperties":false}},"required":["type","blockId","patch"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"remove"},"blockId":{"$ref":"#/$defs/0"}},"required":["type","blockId"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"move"},"blockId":{"$ref":"#/$defs/0"},"index":{"$ref":"#/$defs/c"}},"required":["type","blockId","index"],"additionalProperties":false}]},"c":{"type":"integer","minimum":0,"maximum":11},"d":{"type":"integer","minimum":0,"maximum":1440},"e":{"maxItems":128,"type":"array","items":{"$ref":"#/$defs/f"}},"f":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string","minLength":1,"maxLength":4000}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"lineBreak"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"exercise"},"exerciseId":{"$ref":"#/$defs/0"},"label":{"type":"string","minLength":1,"maxLength":160},"locale":{"type":"string","enum":["fr","en"]}},"required":["type","exerciseId","label","locale"],"additionalProperties":false}]}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","planning:read","planning:update","workouts:read"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_planning_move":{"title":"Move a scheduled workout","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"calendarId":{"$ref":"#/$defs/0"},"expectedVersion":{"$ref":"#/$defs/4"},"timezone":{"$ref":"#/$defs/1"},"occurrenceId":{"$ref":"#/$defs/0"},"targetCalendarId":{"$ref":"#/$defs/0"},"targetVersion":{"$ref":"#/$defs/4"},"collision":{"default":"error","type":"string","enum":["error","append"]},"position":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"integer","minimum":1,"maximum":9007199254740991}]},"beforeItemId":{"anyOf":[{"$ref":"#/$defs/0"},{"type":"null"}]}},"required":["requestId","calendarId","expectedVersion","timezone","occurrenceId","position"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28},"4":{"type":"string","pattern":"^[a-f0-9]{64}$"}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","planning:read","planning:update"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_planning_reorder":{"title":"Reorder a scheduled workout","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"calendarId":{"$ref":"#/$defs/0"},"expectedVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"},"timezone":{"$ref":"#/$defs/1"},"occurrenceId":{"$ref":"#/$defs/0"},"beforeItemId":{"anyOf":[{"$ref":"#/$defs/0"},{"type":"null"}]}},"required":["requestId","calendarId","expectedVersion","timezone","occurrenceId","beforeItemId"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","planning:read","planning:update"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_planning_swap":{"title":"Swap scheduled workouts","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"calendarId":{"$ref":"#/$defs/0"},"expectedVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"},"timezone":{"$ref":"#/$defs/1"},"occurrenceId":{"$ref":"#/$defs/0"},"otherOccurrenceId":{"$ref":"#/$defs/0"}},"required":["requestId","calendarId","expectedVersion","timezone","occurrenceId","otherOccurrenceId"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","planning:read","planning:update"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_planning_copy":{"title":"Copy a planning period","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"calendarId":{"$ref":"#/$defs/0"},"expectedVersion":{"$ref":"#/$defs/4"},"timezone":{"$ref":"#/$defs/1"},"from":{"$ref":"#/$defs/5"},"to":{"$ref":"#/$defs/5"},"contentKinds":{"minItems":1,"maxItems":3,"type":"array","items":{"$ref":"#/$defs/6"}},"targetCalendarId":{"$ref":"#/$defs/0"},"targetVersion":{"$ref":"#/$defs/4"},"collision":{"default":"error","type":"string","enum":["error","append"]},"target":{"$ref":"#/$defs/5"}},"required":["requestId","calendarId","expectedVersion","timezone","from","to","contentKinds","target"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28},"4":{"type":"string","pattern":"^[a-f0-9]{64}$"},"5":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"integer","minimum":1,"maximum":9007199254740991}]},"6":{"type":"string","enum":["workouts","notes","rest"]}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","planning:read","planning:create","workouts:read"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_planning_shift":{"title":"Shift a planning period","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"calendarId":{"$ref":"#/$defs/0"},"expectedVersion":{"$ref":"#/$defs/4"},"timezone":{"$ref":"#/$defs/1"},"from":{"$ref":"#/$defs/5"},"to":{"$ref":"#/$defs/5"},"contentKinds":{"minItems":1,"maxItems":3,"type":"array","items":{"$ref":"#/$defs/6"}},"targetCalendarId":{"$ref":"#/$defs/0"},"targetVersion":{"$ref":"#/$defs/4"},"collision":{"default":"error","type":"string","enum":["error","append"]},"days":{"type":"integer","minimum":-366,"maximum":366}},"required":["requestId","calendarId","expectedVersion","timezone","from","to","contentKinds","days"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28},"4":{"type":"string","pattern":"^[a-f0-9]{64}$"},"5":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"integer","minimum":1,"maximum":9007199254740991}]},"6":{"type":"string","enum":["workouts","notes","rest"]}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","planning:read","planning:update"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_planning_remove":{"title":"Remove a scheduled workout","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"calendarId":{"$ref":"#/$defs/0"},"expectedVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"},"timezone":{"$ref":"#/$defs/1"},"occurrenceId":{"$ref":"#/$defs/0"}},"required":["requestId","calendarId","expectedVersion","timezone","occurrenceId"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","planning:read","planning:delete"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_planning_note":{"title":"Add a planning note","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"calendarId":{"$ref":"#/$defs/0"},"expectedVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"},"timezone":{"$ref":"#/$defs/1"},"position":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"integer","minimum":1,"maximum":9007199254740991}]},"ref":{"$ref":"#/$defs/2"},"body":{"type":"string","minLength":1,"maxLength":2000},"color":{"anyOf":[{"type":"string","enum":["#64748b","#C7151F","#ef4444","#f97316","#eab308","#22c55e","#14b8a6","#3b82f6","#8b5cf6","#ec4899"]},{"type":"null"}]},"isPublic":{"type":"boolean"}},"required":["requestId","calendarId","expectedVersion","timezone","position","body","isPublic"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","planning:read","planning:create"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_planning_edit_note":{"title":"Edit a planning note","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"calendarId":{"$ref":"#/$defs/0"},"expectedVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"},"timezone":{"$ref":"#/$defs/1"},"entryId":{"$ref":"#/$defs/0"},"body":{"type":"string","minLength":1,"maxLength":2000},"color":{"anyOf":[{"type":"string","enum":["#64748b","#C7151F","#ef4444","#f97316","#eab308","#22c55e","#14b8a6","#3b82f6","#8b5cf6","#ec4899"]},{"type":"null"}]},"isPublic":{"type":"boolean"}},"required":["requestId","calendarId","expectedVersion","timezone","entryId","body","isPublic"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","planning:read","planning:update"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_planning_remove_note":{"title":"Remove a planning note","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"calendarId":{"$ref":"#/$defs/0"},"expectedVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"},"timezone":{"$ref":"#/$defs/1"},"entryId":{"$ref":"#/$defs/0"}},"required":["requestId","calendarId","expectedVersion","timezone","entryId"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","planning:read","planning:delete"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_planning_rest":{"title":"Add planning rest days","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"calendarId":{"$ref":"#/$defs/0"},"expectedVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"},"timezone":{"$ref":"#/$defs/1"},"positions":{"minItems":1,"maxItems":28,"type":"array","items":{"$ref":"#/$defs/4"}}},"required":["requestId","calendarId","expectedVersion","timezone","positions"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28},"4":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"integer","minimum":1,"maximum":9007199254740991}]}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","planning:read","planning:create"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_planning_remove_rest":{"title":"Remove planning rest days","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"calendarId":{"$ref":"#/$defs/0"},"expectedVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"},"timezone":{"$ref":"#/$defs/1"},"positions":{"minItems":1,"maxItems":28,"type":"array","items":{"$ref":"#/$defs/4"}}},"required":["requestId","calendarId","expectedVersion","timezone","positions"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28},"4":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"integer","minimum":1,"maximum":9007199254740991}]}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","planning:read","planning:delete"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_cycle_create":{"title":"Create a programming cycle","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"calendarId":{"$ref":"#/$defs/0"},"expectedVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"},"timezone":{"$ref":"#/$defs/1"},"name":{"$ref":"#/$defs/1"},"color":{"type":"string","enum":["#64748b","#C7151F","#ef4444","#f97316","#eab308","#22c55e","#14b8a6","#3b82f6","#8b5cf6","#ec4899","#E53935","#F97316","#F59E0B","#65A30D","#0D9488","#0284C7","#3367D6","#7C3AED","#DB2777","#6B7280"]},"from":{"$ref":"#/$defs/4"},"to":{"$ref":"#/$defs/4"},"brief":{"anyOf":[{"type":"string","minLength":1,"maxLength":1000},{"type":"null"}]},"disciplineMode":{"default":"all","type":"string","enum":["all","selected"]},"disciplines":{"default":[],"maxItems":100,"type":"array","items":{"$ref":"#/$defs/5"}},"ref":{"$ref":"#/$defs/2"}},"required":["requestId","calendarId","expectedVersion","timezone","name","color","from","to"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28},"4":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"integer","minimum":1,"maximum":9007199254740991}]},"5":{"type":"string","minLength":1,"maxLength":20}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","planning:read","cycles:read","cycles:write"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_cycle_update":{"title":"Edit a programming cycle","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"calendarId":{"$ref":"#/$defs/0"},"expectedVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"},"timezone":{"$ref":"#/$defs/1"},"name":{"$ref":"#/$defs/1"},"color":{"type":"string","enum":["#64748b","#C7151F","#ef4444","#f97316","#eab308","#22c55e","#14b8a6","#3b82f6","#8b5cf6","#ec4899","#E53935","#F97316","#F59E0B","#65A30D","#0D9488","#0284C7","#3367D6","#7C3AED","#DB2777","#6B7280"]},"from":{"$ref":"#/$defs/4"},"to":{"$ref":"#/$defs/4"},"brief":{"anyOf":[{"type":"string","minLength":1,"maxLength":1000},{"type":"null"}]},"disciplineMode":{"default":"all","type":"string","enum":["all","selected"]},"disciplines":{"default":[],"maxItems":100,"type":"array","items":{"$ref":"#/$defs/5"}},"cycleId":{"$ref":"#/$defs/0"}},"required":["requestId","calendarId","expectedVersion","timezone","name","color","from","to","cycleId"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28},"4":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"integer","minimum":1,"maximum":9007199254740991}]},"5":{"type":"string","minLength":1,"maxLength":20}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","planning:read","cycles:read","cycles:write"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_cycle_delete":{"title":"Delete a programming cycle","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"calendarId":{"$ref":"#/$defs/0"},"expectedVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"},"timezone":{"$ref":"#/$defs/1"},"cycleId":{"$ref":"#/$defs/0"}},"required":["requestId","calendarId","expectedVersion","timezone","cycleId"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","planning:read","cycles:read","cycles:delete"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_template_create":{"title":"Create a week template","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"ref":{"$ref":"#/$defs/2"},"name":{"type":"string","minLength":1,"maxLength":30},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"color":{"anyOf":[{"type":"string","enum":["#64748b","#C7151F","#ef4444","#f97316","#eab308","#22c55e","#14b8a6","#3b82f6","#8b5cf6","#ec4899"]},{"type":"null"}]}},"required":["requestId","ref","name"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","templates:read","templates:write"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false}},"hardi_template_update":{"title":"Edit a week template","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"templateId":{"$ref":"#/$defs/0"},"expectedVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"},"patch":{"type":"object","properties":{"name":{"$ref":"#/$defs/4"},"description":{"$ref":"#/$defs/5"},"color":{"$ref":"#/$defs/6"},"entryChange":{"$ref":"#/$defs/8"}},"additionalProperties":false}},"required":["requestId","templateId","expectedVersion","patch"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28},"4":{"type":"string","minLength":1,"maxLength":30},"5":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"6":{"$ref":"#/$defs/7"},"7":{"anyOf":[{"type":"string","enum":["#64748b","#C7151F","#ef4444","#f97316","#eab308","#22c55e","#14b8a6","#3b82f6","#8b5cf6","#ec4899"]},{"type":"null"}]},"8":{"oneOf":[{"type":"object","properties":{"action":{"type":"string","const":"save"},"entry":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"day":{"$ref":"#/$defs/9"},"kind":{"type":"string","enum":["note","rest"]},"body":{"type":"string","maxLength":2000},"color":{"default":null,"$ref":"#/$defs/7"},"isPublic":{"type":"boolean"},"sortOrder":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["id","day","kind","body","isPublic"],"additionalProperties":false}},"required":["action","entry"],"additionalProperties":false},{"type":"object","properties":{"action":{"type":"string","const":"delete"},"id":{"$ref":"#/$defs/0"}},"required":["action","id"],"additionalProperties":false},{"type":"object","properties":{"action":{"type":"string","const":"rest"},"id":{"$ref":"#/$defs/0"},"day":{"$ref":"#/$defs/9"},"enabled":{"type":"boolean"}},"required":["action","id","day","enabled"],"additionalProperties":false}]},"9":{"type":"integer","minimum":1,"maximum":7}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","templates:read","templates:write"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_template_add_workout":{"title":"Add a workout to a week template","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"templateId":{"$ref":"#/$defs/0"},"expectedVersion":{"$ref":"#/$defs/4"},"workoutId":{"$ref":"#/$defs/0"},"sourceVersion":{"$ref":"#/$defs/4"},"day":{"type":"integer","minimum":1,"maximum":7}},"required":["requestId","templateId","expectedVersion","workoutId","sourceVersion","day"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28},"4":{"type":"string","pattern":"^[a-f0-9]{64}$"}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","templates:read","templates:write","workouts:read"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false}},"hardi_template_move_workout":{"title":"Move a workout in a week template","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"templateId":{"$ref":"#/$defs/0"},"expectedVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"},"itemId":{"$ref":"#/$defs/0"},"day":{"type":"integer","minimum":1,"maximum":7},"sortOrder":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["requestId","templateId","expectedVersion","itemId","day"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","templates:read","templates:write"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_template_remove_workout":{"title":"Remove a workout from a week template","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"templateId":{"$ref":"#/$defs/0"},"expectedVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"},"itemId":{"$ref":"#/$defs/0"}},"required":["requestId","templateId","expectedVersion","itemId"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","templates:read","templates:delete"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_template_delete":{"title":"Delete a week template","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"templateId":{"$ref":"#/$defs/0"},"expectedVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["requestId","templateId","expectedVersion"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","templates:read","templates:delete"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}},"hardi_planning_apply_template":{"title":"Apply a week template to a calendar","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"default":2,"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/0"},"name":{"$ref":"#/$defs/1"},"step":{"$ref":"#/$defs/2"},"index":{"$ref":"#/$defs/3"},"total":{"$ref":"#/$defs/3"}},"required":["id","name","step","index","total"],"additionalProperties":false},"calendarId":{"$ref":"#/$defs/0"},"expectedVersion":{"$ref":"#/$defs/4"},"timezone":{"$ref":"#/$defs/1"},"templateId":{"$ref":"#/$defs/0"},"templateVersion":{"$ref":"#/$defs/4"},"position":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"integer","minimum":1,"maximum":9007199254740991}]},"collision":{"default":"error","type":"string","enum":["error","append"]}},"required":["requestId","calendarId","expectedVersion","timezone","templateId","templateVersion","position"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"3":{"type":"integer","minimum":1,"maximum":28},"4":{"type":"string","pattern":"^[a-f0-9]{64}$"}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","planning:read","planning:create","templates:read","workouts:read"],"permissionChecksAtExecution":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false}}},"cliTools":{"hardi_execute_actions":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"$ref":"#/$defs/0"},"requestId":{"$ref":"#/$defs/1"},"actions":{"$ref":"#/$defs/2"},"program":{"$ref":"#/$defs/24"}},"required":["schemaVersion","requestId","actions"],"additionalProperties":false,"$defs":{"0":{"type":"number","const":2},"1":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"2":{"minItems":1,"maxItems":10,"type":"array","items":{"$ref":"#/$defs/3"}},"3":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"calendar.create"},"ref":{"$ref":"#/$defs/4"},"name":{"$ref":"#/$defs/5"},"timelineType":{"default":"dated","type":"string","enum":["dated","fixed"]},"durationWeeks":{"anyOf":[{"type":"integer","minimum":1,"maximum":52},{"type":"null"}]},"description":{"$ref":"#/$defs/6"}},"required":["type","ref","name"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"training.performance.create"},"exerciseId":{"$ref":"#/$defs/7"},"input":{"$ref":"#/$defs/8"},"ref":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_-]{0,39}$"}},"required":["type","exerciseId","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"training.performance.update"},"exerciseId":{"$ref":"#/$defs/7"},"performanceId":{"$ref":"#/$defs/7"},"expectedVersion":{"$ref":"#/$defs/d"},"input":{"$ref":"#/$defs/8"}},"required":["type","exerciseId","performanceId","expectedVersion","input"],"additionalProperties":false},{"type":"object","properties":{"subjectKind":{"type":"string","enum":["workout","scheduled_workout"]},"subjectId":{"$ref":"#/$defs/7"},"blockId":{"$ref":"#/$defs/7"},"type":{"type":"string","const":"training.result.upsert"},"expectedVersion":{"$ref":"#/$defs/d"},"score":{"oneOf":[{"$ref":"#/$defs/e"},{"$ref":"#/$defs/f"},{"$ref":"#/$defs/g"},{"$ref":"#/$defs/j"},{"$ref":"#/$defs/k"},{"$ref":"#/$defs/m"},{"$ref":"#/$defs/n"},{"$ref":"#/$defs/o"},{"$ref":"#/$defs/p"}]},"division":{"type":"string","enum":["rx","scaled","none"]}},"required":["subjectKind","subjectId","blockId","type","expectedVersion","score"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"preferences.update"},"expectedVersion":{"$ref":"#/$defs/d"},"changes":{"minItems":1,"maxItems":20,"type":"array","items":{"$ref":"#/$defs/q"}}},"required":["type","expectedVersion","changes"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"settings.update"},"expectedVersion":{"$ref":"#/$defs/d"},"patch":{"type":"object","properties":{"display":{"$ref":"#/$defs/u"},"notifications":{"$ref":"#/$defs/w"}},"additionalProperties":false}},"required":["type","expectedVersion","patch"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"workout.create"},"ref":{"$ref":"#/$defs/4"},"content":{"type":"object","properties":{"title":{"$ref":"#/$defs/x"},"discipline":{"default":null,"anyOf":[{"$ref":"#/$defs/y"},{"type":"null"}]},"requiredEquipment":{"default":[],"maxItems":10,"type":"array","items":{"$ref":"#/$defs/y"}},"blocks":{"minItems":1,"maxItems":12,"type":"array","items":{"$ref":"#/$defs/z"}},"totalDurationMinutes":{"$ref":"#/$defs/13"},"tags":{"maxItems":5,"type":"array","items":{"$ref":"#/$defs/y"}}},"required":["title","blocks"],"additionalProperties":false},"folderId":{"$ref":"#/$defs/15"},"folderRef":{"$ref":"#/$defs/4"}},"required":["type","ref","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"workout.update"},"workoutId":{"$ref":"#/$defs/7"},"expectedVersion":{"$ref":"#/$defs/d"},"expectedRevision":{"$ref":"#/$defs/17"},"patch":{"$ref":"#/$defs/18"}},"required":["type","workoutId","expectedVersion","expectedRevision","patch"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"workout.duplicate"},"workoutId":{"$ref":"#/$defs/7"},"expectedVersion":{"$ref":"#/$defs/d"},"ref":{"$ref":"#/$defs/4"},"title":{"$ref":"#/$defs/x"},"folderId":{"$ref":"#/$defs/15"},"folderRef":{"$ref":"#/$defs/4"}},"required":["type","workoutId","expectedVersion","ref"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"workout.move"},"workoutId":{"$ref":"#/$defs/7"},"expectedVersion":{"$ref":"#/$defs/d"},"folderId":{"$ref":"#/$defs/15"},"folderRef":{"$ref":"#/$defs/4"}},"required":["type","workoutId","expectedVersion"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"workout.trash"},"workoutId":{"$ref":"#/$defs/7"},"expectedVersion":{"$ref":"#/$defs/d"}},"required":["type","workoutId","expectedVersion"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"workout.restore"},"workoutId":{"$ref":"#/$defs/7"},"expectedVersion":{"$ref":"#/$defs/d"}},"required":["type","workoutId","expectedVersion"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"folder.create"},"ref":{"$ref":"#/$defs/4"},"name":{"$ref":"#/$defs/r"},"parentId":{"$ref":"#/$defs/16"},"parentRef":{"$ref":"#/$defs/4"},"color":{"$ref":"#/$defs/1g"}},"required":["type","ref","name"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"folder.update"},"folderId":{"$ref":"#/$defs/7"},"expectedVersion":{"$ref":"#/$defs/d"},"name":{"$ref":"#/$defs/r"},"parentId":{"$ref":"#/$defs/16"},"color":{"$ref":"#/$defs/1g"}},"required":["type","folderId","expectedVersion"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"folder.reorder"},"expectedVersion":{"$ref":"#/$defs/d"},"items":{"minItems":1,"maxItems":50,"type":"array","items":{"$ref":"#/$defs/1i"}}},"required":["type","expectedVersion","items"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"folder.trash"},"folderId":{"$ref":"#/$defs/7"},"expectedVersion":{"$ref":"#/$defs/d"},"contentPolicy":{"default":"error_if_not_empty","type":"string","enum":["error_if_not_empty","trash_contents","move_contents"]},"destinationFolderId":{"$ref":"#/$defs/16"}},"required":["type","folderId","expectedVersion"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"folder.restore"},"batchId":{"$ref":"#/$defs/7"},"expectedVersion":{"$ref":"#/$defs/d"}},"required":["type","batchId","expectedVersion"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.add"},"calendarId":{"$ref":"#/$defs/1k"},"calendarRef":{"$ref":"#/$defs/1l"},"expectedVersion":{"$ref":"#/$defs/1m"},"timezone":{"$ref":"#/$defs/r"},"ref":{"$ref":"#/$defs/4"},"workoutId":{"$ref":"#/$defs/7"},"sourceVersion":{"$ref":"#/$defs/d"},"workoutRef":{"$ref":"#/$defs/4"},"position":{"$ref":"#/$defs/1n"},"beforeItemId":{"$ref":"#/$defs/16"},"collision":{"$ref":"#/$defs/1o"}},"required":["type","timezone","position"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.update"},"calendarId":{"$ref":"#/$defs/1k"},"calendarRef":{"$ref":"#/$defs/1l"},"expectedVersion":{"$ref":"#/$defs/1m"},"timezone":{"$ref":"#/$defs/r"},"occurrenceId":{"$ref":"#/$defs/7"},"expectedRevision":{"$ref":"#/$defs/17"},"patch":{"$ref":"#/$defs/18"}},"required":["type","timezone","occurrenceId","expectedRevision","patch"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.move"},"calendarId":{"$ref":"#/$defs/1k"},"calendarRef":{"$ref":"#/$defs/1l"},"expectedVersion":{"$ref":"#/$defs/1m"},"timezone":{"$ref":"#/$defs/r"},"occurrenceId":{"$ref":"#/$defs/7"},"targetCalendarId":{"$ref":"#/$defs/7"},"targetVersion":{"$ref":"#/$defs/d"},"collision":{"$ref":"#/$defs/1o"},"position":{"$ref":"#/$defs/1n"},"beforeItemId":{"$ref":"#/$defs/16"}},"required":["type","timezone","occurrenceId","position"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.reorder"},"calendarId":{"$ref":"#/$defs/1k"},"calendarRef":{"$ref":"#/$defs/1l"},"expectedVersion":{"$ref":"#/$defs/1m"},"timezone":{"$ref":"#/$defs/r"},"occurrenceId":{"$ref":"#/$defs/7"},"beforeItemId":{"$ref":"#/$defs/16"}},"required":["type","timezone","occurrenceId","beforeItemId"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.swap"},"calendarId":{"$ref":"#/$defs/1k"},"calendarRef":{"$ref":"#/$defs/1l"},"expectedVersion":{"$ref":"#/$defs/1m"},"timezone":{"$ref":"#/$defs/r"},"occurrenceId":{"$ref":"#/$defs/7"},"otherOccurrenceId":{"$ref":"#/$defs/7"}},"required":["type","timezone","occurrenceId","otherOccurrenceId"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.copy"},"calendarId":{"$ref":"#/$defs/1k"},"calendarRef":{"$ref":"#/$defs/1l"},"expectedVersion":{"$ref":"#/$defs/1m"},"timezone":{"$ref":"#/$defs/r"},"from":{"$ref":"#/$defs/1n"},"to":{"$ref":"#/$defs/1n"},"contentKinds":{"$ref":"#/$defs/1p"},"targetCalendarId":{"$ref":"#/$defs/7"},"targetVersion":{"$ref":"#/$defs/d"},"collision":{"$ref":"#/$defs/1o"},"target":{"$ref":"#/$defs/1n"}},"required":["type","timezone","from","to","contentKinds","target"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.shift"},"calendarId":{"$ref":"#/$defs/1k"},"calendarRef":{"$ref":"#/$defs/1l"},"expectedVersion":{"$ref":"#/$defs/1m"},"timezone":{"$ref":"#/$defs/r"},"from":{"$ref":"#/$defs/1n"},"to":{"$ref":"#/$defs/1n"},"contentKinds":{"$ref":"#/$defs/1p"},"targetCalendarId":{"$ref":"#/$defs/7"},"targetVersion":{"$ref":"#/$defs/d"},"collision":{"$ref":"#/$defs/1o"},"days":{"type":"integer","minimum":-366,"maximum":366}},"required":["type","timezone","from","to","contentKinds","days"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.remove"},"calendarId":{"$ref":"#/$defs/1k"},"calendarRef":{"$ref":"#/$defs/1l"},"expectedVersion":{"$ref":"#/$defs/1m"},"timezone":{"$ref":"#/$defs/r"},"occurrenceId":{"$ref":"#/$defs/7"}},"required":["type","timezone","occurrenceId"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.note"},"calendarId":{"$ref":"#/$defs/1k"},"calendarRef":{"$ref":"#/$defs/1l"},"expectedVersion":{"$ref":"#/$defs/1m"},"timezone":{"$ref":"#/$defs/r"},"position":{"$ref":"#/$defs/1n"},"ref":{"$ref":"#/$defs/4"},"body":{"$ref":"#/$defs/1r"},"color":{"$ref":"#/$defs/1s"},"isPublic":{"type":"boolean"}},"required":["type","timezone","position","body","isPublic"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.edit_note"},"calendarId":{"$ref":"#/$defs/1k"},"calendarRef":{"$ref":"#/$defs/1l"},"expectedVersion":{"$ref":"#/$defs/1m"},"timezone":{"$ref":"#/$defs/r"},"entryId":{"$ref":"#/$defs/7"},"body":{"$ref":"#/$defs/1r"},"color":{"$ref":"#/$defs/1s"},"isPublic":{"type":"boolean"}},"required":["type","timezone","entryId","body","isPublic"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.remove_note"},"calendarId":{"$ref":"#/$defs/1k"},"calendarRef":{"$ref":"#/$defs/1l"},"expectedVersion":{"$ref":"#/$defs/1m"},"timezone":{"$ref":"#/$defs/r"},"entryId":{"$ref":"#/$defs/7"}},"required":["type","timezone","entryId"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.rest"},"calendarId":{"$ref":"#/$defs/1k"},"calendarRef":{"$ref":"#/$defs/1l"},"expectedVersion":{"$ref":"#/$defs/1m"},"timezone":{"$ref":"#/$defs/r"},"positions":{"$ref":"#/$defs/1t"}},"required":["type","timezone","positions"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.remove_rest"},"calendarId":{"$ref":"#/$defs/1k"},"calendarRef":{"$ref":"#/$defs/1l"},"expectedVersion":{"$ref":"#/$defs/1m"},"timezone":{"$ref":"#/$defs/r"},"positions":{"$ref":"#/$defs/1t"}},"required":["type","timezone","positions"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"cycle.create"},"calendarId":{"$ref":"#/$defs/1k"},"calendarRef":{"$ref":"#/$defs/1l"},"expectedVersion":{"$ref":"#/$defs/1m"},"timezone":{"$ref":"#/$defs/r"},"name":{"$ref":"#/$defs/r"},"color":{"$ref":"#/$defs/1u"},"from":{"$ref":"#/$defs/1n"},"to":{"$ref":"#/$defs/1n"},"brief":{"$ref":"#/$defs/1v"},"disciplineMode":{"$ref":"#/$defs/1w"},"disciplines":{"$ref":"#/$defs/1x"},"ref":{"$ref":"#/$defs/4"}},"required":["type","timezone","name","color","from","to"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"cycle.update"},"calendarId":{"$ref":"#/$defs/1k"},"calendarRef":{"$ref":"#/$defs/1l"},"expectedVersion":{"$ref":"#/$defs/1m"},"timezone":{"$ref":"#/$defs/r"},"name":{"$ref":"#/$defs/r"},"color":{"$ref":"#/$defs/1u"},"from":{"$ref":"#/$defs/1n"},"to":{"$ref":"#/$defs/1n"},"brief":{"$ref":"#/$defs/1v"},"disciplineMode":{"$ref":"#/$defs/1w"},"disciplines":{"$ref":"#/$defs/1x"},"cycleId":{"$ref":"#/$defs/7"}},"required":["type","timezone","name","color","from","to","cycleId"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"cycle.delete"},"calendarId":{"$ref":"#/$defs/1k"},"calendarRef":{"$ref":"#/$defs/1l"},"expectedVersion":{"$ref":"#/$defs/1m"},"timezone":{"$ref":"#/$defs/r"},"cycleId":{"$ref":"#/$defs/7"}},"required":["type","timezone","cycleId"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"template.create"},"ref":{"$ref":"#/$defs/4"},"name":{"$ref":"#/$defs/5"},"description":{"$ref":"#/$defs/1y"},"color":{"$ref":"#/$defs/1s"}},"required":["type","ref","name"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"template.update"},"templateId":{"$ref":"#/$defs/7"},"templateRef":{"$ref":"#/$defs/4"},"expectedVersion":{"$ref":"#/$defs/d"},"patch":{"type":"object","properties":{"name":{"$ref":"#/$defs/5"},"description":{"$ref":"#/$defs/20"},"color":{"$ref":"#/$defs/21"},"entryChange":{"$ref":"#/$defs/22"}},"additionalProperties":false}},"required":["type","patch"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"template.add_workout"},"templateId":{"$ref":"#/$defs/7"},"templateRef":{"$ref":"#/$defs/4"},"expectedVersion":{"$ref":"#/$defs/d"},"workoutId":{"$ref":"#/$defs/7"},"workoutRef":{"$ref":"#/$defs/4"},"sourceVersion":{"$ref":"#/$defs/d"},"day":{"$ref":"#/$defs/23"}},"required":["type","day"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"template.move_workout"},"templateId":{"$ref":"#/$defs/7"},"templateRef":{"$ref":"#/$defs/4"},"expectedVersion":{"$ref":"#/$defs/d"},"itemId":{"$ref":"#/$defs/7"},"day":{"$ref":"#/$defs/23"},"sortOrder":{"$ref":"#/$defs/1j"}},"required":["type","itemId","day"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"template.remove_workout"},"templateId":{"$ref":"#/$defs/7"},"templateRef":{"$ref":"#/$defs/4"},"expectedVersion":{"$ref":"#/$defs/d"},"itemId":{"$ref":"#/$defs/7"}},"required":["type","itemId"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"template.delete"},"templateId":{"$ref":"#/$defs/7"},"templateRef":{"$ref":"#/$defs/4"},"expectedVersion":{"$ref":"#/$defs/d"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.apply_template"},"calendarId":{"$ref":"#/$defs/1k"},"calendarRef":{"$ref":"#/$defs/1l"},"expectedVersion":{"$ref":"#/$defs/1m"},"timezone":{"$ref":"#/$defs/r"},"templateId":{"$ref":"#/$defs/7"},"templateVersion":{"$ref":"#/$defs/d"},"position":{"$ref":"#/$defs/1n"},"collision":{"$ref":"#/$defs/1o"}},"required":["type","timezone","templateId","templateVersion","position"],"additionalProperties":false}]},"4":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"5":{"type":"string","minLength":1,"maxLength":30},"6":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"7":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"8":{"type":"object","properties":{"testId":{"$ref":"#/$defs/7"},"testVersionId":{"$ref":"#/$defs/7"},"performedOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"timeZone":{"type":"string","minLength":1,"maxLength":100},"value":{"type":["string","number"]},"repetitions":{"default":null,"anyOf":[{"type":"integer","minimum":1,"maximum":10},{"type":"null"}]},"configuration":{"default":null,"anyOf":[{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"machine"},"machineModel":{"$ref":"#/$defs/9"},"machineSettings":{"$ref":"#/$defs/9"},"assistanceKg":{"type":"number","minimum":0,"maximum":999}},"required":["kind","machineModel","machineSettings","assistanceKg"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"band"},"bandIdentification":{"$ref":"#/$defs/9"},"anchorAndLimbSetup":{"$ref":"#/$defs/a"}},"required":["kind","bandIdentification","anchorAndLimbSetup"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"declared_setup"},"setupId":{"$ref":"#/$defs/7"},"setupName":{"type":"string","minLength":1,"maxLength":60},"values":{"type":"object","propertyNames":{"$ref":"#/$defs/b"},"additionalProperties":{"$ref":"#/$defs/c"}}},"required":["kind","values"],"additionalProperties":false}]},{"type":"null"}]}},"required":["testId","testVersionId","performedOn","timeZone","value"],"additionalProperties":false},"9":{"type":"string","minLength":1,"maxLength":160},"10":{"type":"integer","minimum":0,"maximum":1440},"11":{"maxItems":128,"type":"array","items":{"$ref":"#/$defs/12"}},"12":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string","minLength":1,"maxLength":4000}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"lineBreak"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"exercise"},"exerciseId":{"$ref":"#/$defs/7"},"label":{"$ref":"#/$defs/9"},"locale":{"type":"string","enum":["fr","en"]}},"required":["type","exerciseId","label","locale"],"additionalProperties":false}]},"13":{"anyOf":[{"$ref":"#/$defs/14"},{"type":"null"}]},"14":{"type":"integer","minimum":0,"maximum":10080},"15":{"$ref":"#/$defs/16"},"16":{"anyOf":[{"$ref":"#/$defs/7"},{"type":"null"}]},"17":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"18":{"type":"object","properties":{"title":{"$ref":"#/$defs/x"},"discipline":{"$ref":"#/$defs/19"},"totalDurationMinutes":{"$ref":"#/$defs/1a"},"requiredEquipment":{"$ref":"#/$defs/1b"},"tags":{"$ref":"#/$defs/1c"},"blocks":{"$ref":"#/$defs/1d"}},"additionalProperties":false},"19":{"anyOf":[{"$ref":"#/$defs/y"},{"type":"null"}]},"20":{"$ref":"#/$defs/1y"},"21":{"$ref":"#/$defs/1s"},"22":{"oneOf":[{"type":"object","properties":{"action":{"type":"string","const":"save"},"entry":{"type":"object","properties":{"id":{"$ref":"#/$defs/7"},"day":{"$ref":"#/$defs/23"},"kind":{"type":"string","enum":["note","rest"]},"body":{"type":"string","maxLength":2000},"color":{"default":null,"$ref":"#/$defs/1s"},"isPublic":{"type":"boolean"},"sortOrder":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["id","day","kind","body","isPublic"],"additionalProperties":false}},"required":["action","entry"],"additionalProperties":false},{"type":"object","properties":{"action":{"type":"string","const":"delete"},"id":{"$ref":"#/$defs/7"}},"required":["action","id"],"additionalProperties":false},{"type":"object","properties":{"action":{"type":"string","const":"rest"},"id":{"$ref":"#/$defs/7"},"day":{"$ref":"#/$defs/23"},"enabled":{"type":"boolean"}},"required":["action","id","day","enabled"],"additionalProperties":false}]},"23":{"type":"integer","minimum":1,"maximum":7},"24":{"type":"object","properties":{"id":{"$ref":"#/$defs/7"},"name":{"$ref":"#/$defs/r"},"step":{"$ref":"#/$defs/4"},"index":{"$ref":"#/$defs/25"},"total":{"$ref":"#/$defs/25"}},"required":["id","name","step","index","total"],"additionalProperties":false},"25":{"type":"integer","minimum":1,"maximum":28},"a":{"type":"string","minLength":1,"maxLength":240},"b":{"type":"string","pattern":"^[a-z][A-Za-z0-9]{0,47}$"},"c":{"anyOf":[{"type":"number","minimum":-999999,"maximum":999999},{"$ref":"#/$defs/a"}]},"d":{"type":"string","pattern":"^[a-f0-9]{64}$"},"e":{"type":"object","properties":{"kind":{"type":"string","const":"free_text"},"text":{"$ref":"#/$defs/a"}},"required":["kind","text"]},"f":{"type":"object","properties":{"kind":{"type":"string","const":"time"},"seconds":{"type":"integer","exclusiveMinimum":0,"maximum":7200}},"required":["kind","seconds"]},"g":{"type":"object","properties":{"kind":{"type":"string","const":"time_cap"},"rounds":{"$ref":"#/$defs/h"},"reps":{"$ref":"#/$defs/i"}},"required":["kind","rounds","reps"]},"h":{"type":"integer","minimum":0,"maximum":200},"i":{"type":"integer","minimum":0,"maximum":10000},"j":{"type":"object","properties":{"kind":{"type":"string","const":"rounds_reps"},"rounds":{"$ref":"#/$defs/h"},"reps":{"$ref":"#/$defs/i"}},"required":["kind","rounds","reps"]},"k":{"type":"object","properties":{"kind":{"type":"string","const":"reps"},"reps":{"$ref":"#/$defs/l"}},"required":["kind","reps"]},"l":{"type":"integer","exclusiveMinimum":0,"maximum":10000},"m":{"type":"object","properties":{"kind":{"type":"string","const":"weight"},"kilograms":{"type":"number","exclusiveMinimum":0,"maximum":1000}},"required":["kind","kilograms"]},"n":{"type":"object","properties":{"kind":{"type":"string","const":"calories"},"calories":{"$ref":"#/$defs/l"}},"required":["kind","calories"]},"o":{"type":"object","properties":{"kind":{"type":"string","const":"distance"},"meters":{"type":"number","exclusiveMinimum":0,"maximum":100000}},"required":["kind","meters"]},"p":{"type":"object","properties":{"kind":{"type":"string","const":"watts"},"watts":{"type":"integer","exclusiveMinimum":0,"maximum":3000}},"required":["kind","watts"]},"q":{"type":"object","properties":{"path":{"minItems":1,"maxItems":8,"type":"array","items":{"$ref":"#/$defs/r"}},"before":{"$ref":"#/$defs/s"},"value":{"$ref":"#/$defs/t"}},"required":["path","before","value"],"additionalProperties":false},"r":{"type":"string","minLength":1,"maxLength":80},"s":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/s"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/s"}}]},"t":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/t"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/t"}}]},"u":{"type":"object","properties":{"interfaceLanguage":{"type":"string","enum":["en","fr"]},"unitPreferences":{"type":"object","properties":{"measurementSystem":{"type":"string","enum":["metric","imperial"]},"weightUnit":{"type":"string","enum":["kg","lb"]},"terminologyStyle":{"type":"string","enum":["full","short"]},"dateFormat":{"type":"string","enum":["day/month/year","month/day/year"]},"resultLevelSelection":{"$ref":"#/$defs/v"}},"additionalProperties":false}},"additionalProperties":false},"v":{"type":"string","enum":["rx_scaled","none"]},"w":{"type":"object","properties":{"energy":{"type":"boolean"},"follows":{"type":"boolean"},"product":{"type":"boolean"},"messages":{"type":"boolean"},"messageRequests":{"type":"boolean"}},"additionalProperties":false},"x":{"type":"string","minLength":1,"maxLength":50},"y":{"type":"string","minLength":1,"maxLength":20},"z":{"type":"object","properties":{"title":{"default":null,"anyOf":[{"$ref":"#/$defs/x"},{"type":"null"}]},"blockType":{"$ref":"#/$defs/x"},"durationMinutes":{"default":null,"anyOf":[{"$ref":"#/$defs/10"},{"type":"null"}]},"contentText":{"default":"","type":"string","maxLength":4000},"nodes":{"$ref":"#/$defs/11"},"levelSelection":{"$ref":"#/$defs/v"},"scoringType":{"default":"free_text","type":"string","enum":["free_text","time","rounds_reps","reps","weight","calories","distance","watts"]}},"required":["blockType"],"additionalProperties":false},"1a":{"$ref":"#/$defs/13"},"1b":{"maxItems":10,"type":"array","items":{"$ref":"#/$defs/y"}},"1c":{"maxItems":5,"type":"array","items":{"$ref":"#/$defs/y"}},"1d":{"maxItems":30,"type":"array","items":{"$ref":"#/$defs/1e"}},"1e":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"insert"},"index":{"$ref":"#/$defs/1f"},"block":{"$ref":"#/$defs/z"}},"required":["type","index","block"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"update"},"blockId":{"$ref":"#/$defs/7"},"patch":{"type":"object","properties":{"title":{"anyOf":[{"$ref":"#/$defs/x"},{"type":"null"}]},"blockType":{"$ref":"#/$defs/x"},"durationMinutes":{"anyOf":[{"$ref":"#/$defs/10"},{"type":"null"}]},"contentText":{"type":"string","maxLength":4000},"nodes":{"$ref":"#/$defs/11"},"scoringType":{"type":"string","enum":["free_text","time","rounds_reps","reps","weight","calories","distance","watts"]}},"additionalProperties":false}},"required":["type","blockId","patch"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"remove"},"blockId":{"$ref":"#/$defs/7"}},"required":["type","blockId"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"move"},"blockId":{"$ref":"#/$defs/7"},"index":{"$ref":"#/$defs/1f"}},"required":["type","blockId","index"],"additionalProperties":false}]},"1f":{"type":"integer","minimum":0,"maximum":11},"1g":{"anyOf":[{"$ref":"#/$defs/1h"},{"type":"null"}]},"1h":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"1i":{"type":"object","properties":{"folderId":{"$ref":"#/$defs/7"},"parentId":{"$ref":"#/$defs/16"},"sortOrder":{"$ref":"#/$defs/1j"}},"required":["folderId","parentId","sortOrder"],"additionalProperties":false},"1j":{"type":"integer","minimum":0,"maximum":9007199254740991},"1k":{"default":"00000000-0000-4000-8000-000000000000","$ref":"#/$defs/7"},"1l":{"description":"Earlier batch calendar; omit calendarId/expectedVersion.","$ref":"#/$defs/4"},"1m":{"default":"0000000000000000000000000000000000000000000000000000000000000000","$ref":"#/$defs/d"},"1n":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"integer","minimum":1,"maximum":9007199254740991}]},"1o":{"default":"error","type":"string","enum":["error","append"]},"1p":{"minItems":1,"maxItems":3,"type":"array","items":{"$ref":"#/$defs/1q"}},"1q":{"type":"string","enum":["workouts","notes","rest"]},"1r":{"type":"string","minLength":1,"maxLength":2000},"1s":{"anyOf":[{"type":"string","enum":["#64748b","#C7151F","#ef4444","#f97316","#eab308","#22c55e","#14b8a6","#3b82f6","#8b5cf6","#ec4899"]},{"type":"null"}]},"1t":{"minItems":1,"maxItems":28,"type":"array","items":{"$ref":"#/$defs/1n"}},"1u":{"type":"string","enum":["#64748b","#C7151F","#ef4444","#f97316","#eab308","#22c55e","#14b8a6","#3b82f6","#8b5cf6","#ec4899","#E53935","#F97316","#F59E0B","#65A30D","#0D9488","#0284C7","#3367D6","#7C3AED","#DB2777","#6B7280"]},"1v":{"anyOf":[{"type":"string","minLength":1,"maxLength":1000},{"type":"null"}]},"1w":{"default":"all","type":"string","enum":["all","selected"]},"1x":{"default":[],"maxItems":100,"type":"array","items":{"$ref":"#/$defs/y"}},"1y":{"anyOf":[{"$ref":"#/$defs/1z"},{"type":"null"}]},"1z":{"type":"string","maxLength":500}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":[],"permissionChecksAtExecution":true},"hardi_get_action":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"operationId":{"$ref":"#/$defs/0"},"requestId":{"$ref":"#/$defs/1"}},"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}},"canUndo":{"type":"boolean"},"undoBlockedReason":{"type":"string"},"requiredUndoScopes":{"$ref":"#/$defs/9"},"missingUndoScopes":{"$ref":"#/$defs/9"}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy","canUndo","requiredUndoScopes","missingUndoScopes"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"9":{"type":"array","items":{"type":"string"}}}},"minimumScopes":["actions:read"],"permissionChecksAtExecution":true},"hardi_get_context":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"includeUsage":{"default":true,"type":"boolean"}},"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"controls":{"type":"object","properties":{"autonomous":{"type":"boolean"},"cli":{"type":"boolean"}},"required":["autonomous","cli"],"additionalProperties":{}},"extensions":{"type":"object","properties":{"account":{"type":"boolean"},"trainingRead":{"type":"boolean"},"trainingWrite":{"type":"boolean"}},"required":["account","trainingRead","trainingWrite"],"additionalProperties":{}},"readCapabilities":{"type":"object","properties":{"activityPages":{"type":"boolean"},"programActivity":{"type":"boolean"},"folderVersions":{"type":"string"}},"required":["activityPages","programActivity","folderVersions"],"additionalProperties":{}},"featureRevision":{"$ref":"#/$defs/0"},"scopes":{"type":"array","items":{"type":"string"}},"plan":{"type":"object","properties":{"code":{"type":"string"},"limits":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["number","null"]}}},"required":["code","limits"],"additionalProperties":{}},"limits":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"}},"connectionId":{"type":"string"},"accountBinding":{"type":"string"},"timezone":{"type":"string"},"localDate":{"$ref":"#/$defs/0"},"now":{"$ref":"#/$defs/1"},"resourcePolicy":{"type":"object","properties":{"libraryFolderIds":{"default":null,"anyOf":[{"maxItems":51,"type":"array","items":{"$ref":"#/$defs/2"}},{"type":"null"}]},"futureOnly":{"default":false,"type":"boolean"},"maxExecutionsPerDay":{"anyOf":[{"type":"integer","minimum":1,"maximum":20},{"type":"null"}]},"expiresAt":{"anyOf":[{"$ref":"#/$defs/1"},{"type":"null"}]},"calendarMode":{"type":"string","enum":["selected","all_personal"]}},"required":["libraryFolderIds","futureOnly"],"additionalProperties":false},"usage":{"type":"object","properties":{"observedAt":{"$ref":"#/$defs/1"},"advisory":{"type":"boolean","const":true},"reservesCapacity":{"type":"boolean","const":false},"native":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"used":{"$ref":"#/$defs/3"},"limit":{"$ref":"#/$defs/4"},"remaining":{"$ref":"#/$defs/4"}},"required":["used","limit","remaining"],"additionalProperties":{"$ref":"#/$defs/6"}}},"technical":{"$ref":"#/$defs/7"},"connection":{"type":"object","properties":{"executions":{"$ref":"#/$defs/8"},"readAdmission":{"$ref":"#/$defs/8"},"transportAdmission":{"$ref":"#/$defs/8"},"expiresAt":{"anyOf":[{"$ref":"#/$defs/1"},{"type":"null"}]}},"required":["executions","readAdmission","transportAdmission","expiresAt"],"additionalProperties":{}},"sharedPilot":{"$ref":"#/$defs/7"}},"required":["observedAt","advisory","reservesCapacity","native","technical","connection","sharedPilot"],"additionalProperties":{}}},"required":["schemaVersion","controls","extensions","readCapabilities","featureRevision","scopes","plan","limits","connectionId","accountBinding","timezone","localDate","now"],"additionalProperties":{},"$defs":{"0":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"1":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"2":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"3":{"type":"integer","minimum":0,"maximum":9007199254740991},"4":{"$ref":"#/$defs/5"},"5":{"anyOf":[{"$ref":"#/$defs/3"},{"type":"null"}]},"6":{},"7":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/8"}},"8":{"type":"object","properties":{"used":{"$ref":"#/$defs/3"},"limit":{"$ref":"#/$defs/4"},"remaining":{"$ref":"#/$defs/4"},"scope":{"type":"string","enum":["account","pilot","connection"]},"windowSeconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"resetsAt":{"$ref":"#/$defs/1"}},"required":["used","limit","remaining","scope","windowSeconds","resetsAt"],"additionalProperties":{"$ref":"#/$defs/6"}}}},"minimumScopes":[],"permissionChecksAtExecution":true},"hardi_get_exercise":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"exerciseId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["exerciseId"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"category":{"type":"string"},"measurementKind":{"type":["string","null"]},"revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"localizations":{"type":"array","items":{"type":"object","properties":{"locale":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]}},"required":["locale","name","description"],"additionalProperties":{}}},"contentIsUntrusted":{"type":"boolean","const":true}},"required":["id","category","measurementKind","revision","localizations","contentIsUntrusted"],"additionalProperties":{}},"minimumScopes":["catalog:read"],"permissionChecksAtExecution":true},"hardi_get_performance_tests":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"exerciseId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"limit":{"default":10,"type":"integer","minimum":1,"maximum":20},"cursor":{"type":"string","maxLength":2048}},"required":["exerciseId"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"exerciseId":{"type":"string"},"testVersionId":{"type":"string"},"labelFr":{"type":"string"},"labelEn":{"type":"string"},"metric":{"type":"string"},"unit":{"type":"string"},"minimum":{"type":["string","number","null"]},"maximum":{"type":["string","number","null"]},"precisionScale":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"configuration":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"protocolFr":{"type":"string"},"protocolEn":{"type":"string"},"better":{"type":"string"}},"required":["id","exerciseId","testVersionId","labelFr","labelEn","metric","unit","minimum","maximum","precisionScale","configuration","protocolFr","protocolEn","better"],"additionalProperties":{}}},"nextCursor":{"type":["string","null"]},"complete":{"type":"boolean"},"version":{"type":"string"},"contentIsUntrusted":{"type":"boolean","const":true},"recordingAvailable":{"type":"boolean"}},"required":["items","recordingAvailable"],"additionalProperties":{}},"minimumScopes":["training:read","catalog:read"],"permissionChecksAtExecution":true},"hardi_get_performances":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"from":{"$ref":"#/$defs/0"},"to":{"$ref":"#/$defs/0"},"limit":{"default":20,"type":"integer","minimum":1,"maximum":50},"cursor":{"type":"string","maxLength":2048},"exerciseId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["exerciseId"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"exerciseId":{"type":"string"},"performedOn":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"testId":{"type":"string"},"testVersionId":{"type":"string"},"value":{"type":"string"},"metric":{"type":"string"},"unit":{"type":"string"},"repetitions":{"type":["number","null"]},"configuration":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"nativeVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"version":{"$ref":"#/$defs/0"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","exerciseId","performedOn","testId","testVersionId","value","metric","unit","repetitions","configuration","nativeVersion","version","updatedAt"],"additionalProperties":{}}},"nextCursor":{"type":["string","null"]},"complete":{"type":"boolean"},"version":{"$ref":"#/$defs/0"},"contentIsUntrusted":{"type":"boolean","const":true}},"required":["items"],"additionalProperties":{},"$defs":{"0":{"type":"string"}}},"minimumScopes":["training:read"],"permissionChecksAtExecution":true},"hardi_get_preferences":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"contentIsUntrusted":{"type":"boolean","const":true},"advisory":{"type":"boolean","const":true},"version":{"type":"string"},"values":{"$ref":"#/$defs/0"},"persistentContext":{"$ref":"#/$defs/0"},"disciplineRules":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"instruction":{"type":"string"}},"required":["instruction"],"additionalProperties":{}}}},"required":["contentIsUntrusted","advisory","version","values","persistentContext","disciplineRules"],"additionalProperties":{},"$defs":{"0":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"minimumScopes":["preferences:read"],"permissionChecksAtExecution":true},"hardi_get_schedule":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"calendarId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"from":{"$ref":"#/$defs/0"},"to":{"$ref":"#/$defs/0"},"limit":{"default":25,"type":"integer","minimum":1,"maximum":50},"cursor":{"type":"string","maxLength":2048}},"required":["calendarId","from","to"],"additionalProperties":false,"$defs":{"0":{"anyOf":[{"$ref":"#/$defs/1"},{"$ref":"#/$defs/2"}]},"1":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"2":{"type":"integer","minimum":1,"maximum":9007199254740991}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["workout","note","rest"]},"id":{"type":"string"},"position":{"anyOf":[{"$ref":"#/$defs/0"},{"$ref":"#/$defs/1"}],"description":"ISO date / 1-based day."},"sortOrder":{"type":"number"},"title":{"type":["string","null"]},"body":{"type":["string","null"]},"contentRevision":{"type":["number","null"]}},"required":["kind","id","position","sortOrder","title","body","contentRevision"],"additionalProperties":{}}},"nextCursor":{"type":["string","null"]},"complete":{"type":"boolean"},"version":{"$ref":"#/$defs/2"},"contentIsUntrusted":{"type":"boolean","const":true},"calendar":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"timelineType":{"type":"string","enum":["fixed","dated"]},"durationDays":{"type":["number","null"]},"resourceVersion":{"$ref":"#/$defs/2"}},"required":["id","name","timelineType","durationDays"],"additionalProperties":{}},"resourceVersion":{"$ref":"#/$defs/2"}},"required":["items","calendar","resourceVersion"],"additionalProperties":{},"$defs":{"0":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"1":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"2":{"type":"string"}}},"minimumScopes":["planning:read"],"permissionChecksAtExecution":true},"hardi_get_settings":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"contentIsUntrusted":{"type":"boolean","const":true},"version":{"type":"string"},"display":{"type":"object","properties":{"interfaceLanguage":{"type":["string","null"]},"unitPreferences":{"type":"object","properties":{"measurementSystem":{"type":"string"},"weightUnit":{"type":"string"},"terminologyStyle":{"type":"string"},"dateFormat":{"type":"string"}},"required":["measurementSystem","weightUnit","terminologyStyle","dateFormat"],"additionalProperties":{}}},"required":["interfaceLanguage","unitPreferences"],"additionalProperties":{}},"notifications":{"type":"object","properties":{"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"energy":{"type":"boolean"},"follows":{"type":"boolean"},"product":{"type":"boolean"},"messages":{"type":"boolean"},"messageRequests":{"type":"boolean"}},"required":["version","energy","follows","product","messages","messageRequests"],"additionalProperties":{}}},"required":["contentIsUntrusted","version","display","notifications"],"additionalProperties":{}},"minimumScopes":["settings:read"],"permissionChecksAtExecution":true},"hardi_get_template_workout":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"templateId":{"$ref":"#/$defs/0"},"itemId":{"$ref":"#/$defs/0"},"limit":{"default":3,"type":"integer","minimum":1,"maximum":12},"cursor":{"type":"string","maxLength":2048}},"required":["templateId","itemId"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"source":{"type":"string","const":"template"},"templateId":{"type":"string"},"templateItemId":{"type":"string"},"resourceVersion":{"$ref":"#/$defs/0"},"sourceRevision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"workout":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"revision":{"$ref":"#/$defs/1"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"discipline":{"type":["string","null"]},"totalDurationMinutes":{"type":["number","null"]},"requiredEquipment":{"$ref":"#/$defs/2"},"tags":{"$ref":"#/$defs/2"},"folderId":{"type":["string","null"]},"blocks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"orderIndex":{"type":"integer","minimum":0,"maximum":9007199254740991},"blockType":{"type":"string"},"title":{"type":["string","null"]},"durationMinutes":{"type":["number","null"]},"contentText":{"type":"string"},"nodes":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"lineBreak"}},"required":["type"],"additionalProperties":{}},{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string"}},"required":["type","text"],"additionalProperties":{}},{"type":"object","properties":{"type":{"type":"string","const":"exercise"},"target":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"label":{"type":"string"},"locale":{"type":"string"}},"required":["type","target","label","locale"],"additionalProperties":{}}]}},"resultConfig":{"type":"object","properties":{"enabled":{"type":"boolean"},"scoringType":{"type":"string"},"levelSelection":{"type":"string"}},"required":["enabled","scoringType","levelSelection"],"additionalProperties":{}}},"required":["id","orderIndex","blockType","title","durationMinutes","contentText","resultConfig"],"additionalProperties":{}}},"complete":{"type":"boolean"},"nextCursor":{"type":["string","null"]},"version":{"$ref":"#/$defs/0"},"pageSize":{"$ref":"#/$defs/1"},"contentIsUntrusted":{"type":"boolean","const":true}},"required":["id","title","revision","updatedAt","discipline","totalDurationMinutes","requiredEquipment","tags","blocks","complete","nextCursor","version","contentIsUntrusted"],"additionalProperties":{}}},"required":["source","templateId","templateItemId","resourceVersion","sourceRevision","workout"],"additionalProperties":{},"$defs":{"0":{"type":"string"},"1":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"2":{"type":"array","items":{"type":"string"}}}},"minimumScopes":["templates:read"],"permissionChecksAtExecution":true},"hardi_get_templates":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"metadataOnly":{"default":false,"description":"Metadata/version only; no workouts/annotations.","$ref":"#/$defs/0"},"limit":{"default":5,"type":"integer","minimum":1,"maximum":10},"cursor":{"type":"string","maxLength":2048}},"additionalProperties":false,"$defs":{"0":{"type":"boolean"}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"color":{"type":["string","null"]},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","description","color","updatedAt"],"additionalProperties":{}},{"type":"object","properties":{"id":{"type":"string"},"day":{"$ref":"#/$defs/0"},"sortOrder":{"type":"number"},"title":{"type":"string"},"sourceRevision":{"type":["number","null"]}},"required":["id","day","sortOrder","title","sourceRevision"],"additionalProperties":{}}]}},"nextCursor":{"type":["string","null"]},"complete":{"type":"boolean"},"version":{"$ref":"#/$defs/1"},"contentIsUntrusted":{"type":"boolean","const":true},"resourceVersion":{"$ref":"#/$defs/1"},"template":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"color":{"type":["string","null"]},"contentIncluded":{"type":"boolean"},"dayEntries":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"day":{"$ref":"#/$defs/0"},"kind":{"type":"string","enum":["note","rest"]},"body":{"type":"string"},"isPublic":{"type":"boolean"}},"required":["id","day","kind","body","isPublic"],"additionalProperties":{}}}},"required":["id","name","description","color","contentIncluded","dayEntries"],"additionalProperties":{}}},"required":["items"],"additionalProperties":{},"$defs":{"0":{"type":"integer","minimum":1,"maximum":7},"1":{"type":"string"}}},"minimumScopes":["templates:read"],"permissionChecksAtExecution":true},"hardi_get_training_history":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"from":{"$ref":"#/$defs/0"},"to":{"$ref":"#/$defs/0"},"limit":{"default":20,"type":"integer","minimum":1,"maximum":50},"cursor":{"type":"string","maxLength":2048}},"additionalProperties":false,"$defs":{"0":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"submittedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"subjectKind":{"type":"string","enum":["workout","scheduled_workout"]},"subjectId":{"type":"string"},"blockId":{"type":"string"},"score":{"oneOf":[{"$ref":"#/$defs/0"},{"$ref":"#/$defs/1"},{"$ref":"#/$defs/2"},{"$ref":"#/$defs/5"},{"$ref":"#/$defs/6"},{"$ref":"#/$defs/8"},{"$ref":"#/$defs/9"},{"$ref":"#/$defs/a"},{"$ref":"#/$defs/b"}]},"division":{"type":["string","null"]},"title":{"type":["string","null"]},"blockTitle":{"type":["string","null"]}},"required":["id","submittedAt","subjectKind","subjectId","blockId","score","division","title","blockTitle"],"additionalProperties":{}}},"nextCursor":{"type":["string","null"]},"complete":{"type":"boolean"},"version":{"type":"string"},"contentIsUntrusted":{"type":"boolean","const":true}},"required":["items"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string","const":"free_text"},"text":{"type":"string","minLength":1,"maxLength":240}},"required":["kind","text"],"additionalProperties":false},"1":{"type":"object","properties":{"kind":{"type":"string","const":"time"},"seconds":{"type":"integer","exclusiveMinimum":0,"maximum":86400}},"required":["kind","seconds"],"additionalProperties":false},"2":{"type":"object","properties":{"kind":{"type":"string","const":"time_cap"},"rounds":{"$ref":"#/$defs/3"},"reps":{"$ref":"#/$defs/4"}},"required":["kind","rounds","reps"],"additionalProperties":false},"3":{"type":"integer","minimum":0,"maximum":10000},"4":{"type":"integer","minimum":0,"maximum":100000},"5":{"type":"object","properties":{"kind":{"type":"string","const":"rounds_reps"},"rounds":{"$ref":"#/$defs/3"},"reps":{"$ref":"#/$defs/4"}},"required":["kind","rounds","reps"],"additionalProperties":false},"6":{"type":"object","properties":{"kind":{"type":"string","const":"reps"},"reps":{"$ref":"#/$defs/7"}},"required":["kind","reps"],"additionalProperties":false},"7":{"type":"integer","exclusiveMinimum":0,"maximum":1000000},"8":{"type":"object","properties":{"kind":{"type":"string","const":"weight"},"kilograms":{"type":"number","exclusiveMinimum":0,"maximum":100000}},"required":["kind","kilograms"],"additionalProperties":false},"9":{"type":"object","properties":{"kind":{"type":"string","const":"calories"},"calories":{"$ref":"#/$defs/7"}},"required":["kind","calories"],"additionalProperties":false},"a":{"type":"object","properties":{"kind":{"type":"string","const":"distance"},"meters":{"type":"number","exclusiveMinimum":0,"maximum":1000000}},"required":["kind","meters"],"additionalProperties":false},"b":{"type":"object","properties":{"kind":{"type":"string","const":"watts"},"watts":{"$ref":"#/$defs/7"}},"required":["kind","watts"],"additionalProperties":false}}},"minimumScopes":["training:read"],"permissionChecksAtExecution":true},"hardi_get_training_result":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"subjectKind":{"type":"string","enum":["workout","scheduled_workout"]},"subjectId":{"$ref":"#/$defs/0"},"blockId":{"$ref":"#/$defs/0"}},"required":["subjectKind","subjectId","blockId"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"contentIsUntrusted":{"type":"boolean","const":true},"version":{"type":"string"},"subjectKind":{"type":"string","enum":["workout","scheduled_workout"]},"subjectId":{"type":"string"},"blockId":{"type":"string"},"resultConfig":{"type":"object","properties":{"enabled":{"type":"boolean"},"scoringType":{"type":"string"},"levelSelection":{"type":"string"}},"required":["enabled","scoringType","levelSelection"],"additionalProperties":{}},"result":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"score":{"oneOf":[{"$ref":"#/$defs/0"},{"$ref":"#/$defs/1"},{"$ref":"#/$defs/2"},{"$ref":"#/$defs/5"},{"$ref":"#/$defs/6"},{"$ref":"#/$defs/8"},{"$ref":"#/$defs/9"},{"$ref":"#/$defs/a"},{"$ref":"#/$defs/b"}]},"division":{"type":["string","null"]},"status":{"type":"string"}},"required":["id","score","division","status"],"additionalProperties":{}},{"type":"null"}]},"effects":{"type":"string"}},"required":["contentIsUntrusted","version","subjectKind","subjectId","blockId","resultConfig","result","effects"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string","const":"free_text"},"text":{"type":"string","minLength":1,"maxLength":240}},"required":["kind","text"],"additionalProperties":false},"1":{"type":"object","properties":{"kind":{"type":"string","const":"time"},"seconds":{"type":"integer","exclusiveMinimum":0,"maximum":86400}},"required":["kind","seconds"],"additionalProperties":false},"2":{"type":"object","properties":{"kind":{"type":"string","const":"time_cap"},"rounds":{"$ref":"#/$defs/3"},"reps":{"$ref":"#/$defs/4"}},"required":["kind","rounds","reps"],"additionalProperties":false},"3":{"type":"integer","minimum":0,"maximum":10000},"4":{"type":"integer","minimum":0,"maximum":100000},"5":{"type":"object","properties":{"kind":{"type":"string","const":"rounds_reps"},"rounds":{"$ref":"#/$defs/3"},"reps":{"$ref":"#/$defs/4"}},"required":["kind","rounds","reps"],"additionalProperties":false},"6":{"type":"object","properties":{"kind":{"type":"string","const":"reps"},"reps":{"$ref":"#/$defs/7"}},"required":["kind","reps"],"additionalProperties":false},"7":{"type":"integer","exclusiveMinimum":0,"maximum":1000000},"8":{"type":"object","properties":{"kind":{"type":"string","const":"weight"},"kilograms":{"type":"number","exclusiveMinimum":0,"maximum":100000}},"required":["kind","kilograms"],"additionalProperties":false},"9":{"type":"object","properties":{"kind":{"type":"string","const":"calories"},"calories":{"$ref":"#/$defs/7"}},"required":["kind","calories"],"additionalProperties":false},"a":{"type":"object","properties":{"kind":{"type":"string","const":"distance"},"meters":{"type":"number","exclusiveMinimum":0,"maximum":1000000}},"required":["kind","meters"],"additionalProperties":false},"b":{"type":"object","properties":{"kind":{"type":"string","const":"watts"},"watts":{"$ref":"#/$defs/7"}},"required":["kind","watts"],"additionalProperties":false}}},"minimumScopes":["training:read","workouts:read"],"permissionChecksAtExecution":true},"hardi_get_workout":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"source":{"type":"string","enum":["library","schedule"]},"workoutId":{"$ref":"#/$defs/0"},"scheduledWorkoutId":{"$ref":"#/$defs/0"},"limit":{"default":4,"type":"integer","minimum":1,"maximum":12},"cursor":{"type":"string","maxLength":2048}},"required":["source"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"source":{"type":"string","enum":["library","schedule"]},"resourceVersion":{"$ref":"#/$defs/0"},"workout":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"revision":{"$ref":"#/$defs/1"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"discipline":{"type":["string","null"]},"totalDurationMinutes":{"type":["number","null"]},"requiredEquipment":{"$ref":"#/$defs/2"},"tags":{"$ref":"#/$defs/2"},"folderId":{"type":["string","null"]},"blocks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"orderIndex":{"type":"integer","minimum":0,"maximum":9007199254740991},"blockType":{"type":"string"},"title":{"type":["string","null"]},"durationMinutes":{"type":["number","null"]},"contentText":{"type":"string"},"nodes":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"lineBreak"}},"required":["type"],"additionalProperties":{}},{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string"}},"required":["type","text"],"additionalProperties":{}},{"type":"object","properties":{"type":{"type":"string","const":"exercise"},"target":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"label":{"type":"string"},"locale":{"type":"string"}},"required":["type","target","label","locale"],"additionalProperties":{}}]}},"resultConfig":{"type":"object","properties":{"enabled":{"type":"boolean"},"scoringType":{"type":"string"},"levelSelection":{"type":"string"}},"required":["enabled","scoringType","levelSelection"],"additionalProperties":{}}},"required":["id","orderIndex","blockType","title","durationMinutes","contentText","resultConfig"],"additionalProperties":{}}},"complete":{"type":"boolean"},"nextCursor":{"type":["string","null"]},"version":{"$ref":"#/$defs/0"},"pageSize":{"$ref":"#/$defs/1"},"contentIsUntrusted":{"type":"boolean","const":true}},"required":["id","title","revision","updatedAt","discipline","totalDurationMinutes","requiredEquipment","tags","blocks","complete","nextCursor","version","contentIsUntrusted"],"additionalProperties":{}},"scheduledWorkoutId":{"type":"string"},"calendarId":{"type":"string"},"position":{"anyOf":[{"$ref":"#/$defs/3"},{"$ref":"#/$defs/1"}],"description":"ISO date / 1-based day."},"contentRevision":{"$ref":"#/$defs/1"}},"required":["source","resourceVersion","workout"],"additionalProperties":{},"$defs":{"0":{"type":"string"},"1":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"2":{"type":"array","items":{"type":"string"}},"3":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}}},"minimumScopes":["workouts:read"],"permissionChecksAtExecution":true},"hardi_get_workout_results":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"source":{"$ref":"#/$defs/0"},"workoutId":{"$ref":"#/$defs/1"},"scheduledWorkoutId":{"$ref":"#/$defs/1"},"blockId":{"$ref":"#/$defs/1"},"category":{"$ref":"#/$defs/2"},"division":{"$ref":"#/$defs/3"},"limit":{"$ref":"#/$defs/4"},"cursor":{"$ref":"#/$defs/5"}},"required":["blockId"],"additionalProperties":false,"$defs":{"0":{"default":"library","type":"string","enum":["library","schedule"]},"1":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"2":{"type":"string","enum":["men","women"]},"3":{"type":"string","enum":["rx","scaled","none"]},"4":{"default":10,"type":"integer","minimum":1,"maximum":20},"5":{"type":"string","maxLength":2048}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"blockId":{"type":"string"},"participant":{"type":"object","properties":{"name":{"type":"string"},"anonymized":{"type":"boolean"},"kind":{"type":"string"}},"required":["name","anonymized","kind"],"additionalProperties":{}},"status":{"type":"string"},"score":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number"]}},{"type":"null"}]},"scoreKind":{"type":["string","null"]},"division":{"type":["string","null"]},"category":{"type":["string","null"]},"submittedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"rank":{"type":["number","null"]},"rpe":{"type":["number","null"]},"notes":{"type":["string","null"]}},"required":["id","blockId","participant","status","score","scoreKind","division","category","submittedAt","rank","rpe","notes"],"additionalProperties":{}}},"nextCursor":{"type":["string","null"]},"complete":{"type":"boolean"},"version":{"$ref":"#/$defs/0"},"contentIsUntrusted":{"type":"boolean","const":true},"source":{"type":"string","enum":["library","schedule"]},"subjectId":{"type":"string"},"blockId":{"type":"string"},"resourceVersion":{"$ref":"#/$defs/0"}},"required":["items","source","subjectId","blockId","resourceVersion"],"additionalProperties":{},"$defs":{"0":{"type":"string"}}},"minimumScopes":["workout-results:read","workouts:read"],"permissionChecksAtExecution":true},"hardi_get_workouts":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"workoutIds":{"minItems":1,"maxItems":3,"type":"array","items":{"$ref":"#/$defs/0"}},"blockLimit":{"default":1,"type":"integer","minimum":1,"maximum":4}},"required":["workoutIds"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string","enum":["library","schedule"]},"resourceVersion":{"$ref":"#/$defs/0"},"workout":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"revision":{"$ref":"#/$defs/1"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"discipline":{"type":["string","null"]},"totalDurationMinutes":{"type":["number","null"]},"requiredEquipment":{"$ref":"#/$defs/2"},"tags":{"$ref":"#/$defs/2"},"folderId":{"type":["string","null"]},"blocks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"orderIndex":{"type":"integer","minimum":0,"maximum":9007199254740991},"blockType":{"type":"string"},"title":{"type":["string","null"]},"durationMinutes":{"type":["number","null"]},"contentText":{"type":"string"},"nodes":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"lineBreak"}},"required":["type"],"additionalProperties":{}},{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string"}},"required":["type","text"],"additionalProperties":{}},{"type":"object","properties":{"type":{"type":"string","const":"exercise"},"target":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"label":{"type":"string"},"locale":{"type":"string"}},"required":["type","target","label","locale"],"additionalProperties":{}}]}},"resultConfig":{"type":"object","properties":{"enabled":{"type":"boolean"},"scoringType":{"type":"string"},"levelSelection":{"type":"string"}},"required":["enabled","scoringType","levelSelection"],"additionalProperties":{}}},"required":["id","orderIndex","blockType","title","durationMinutes","contentText","resultConfig"],"additionalProperties":{}}},"complete":{"type":"boolean"},"nextCursor":{"type":["string","null"]},"version":{"$ref":"#/$defs/0"},"pageSize":{"$ref":"#/$defs/1"},"contentIsUntrusted":{"type":"boolean","const":true}},"required":["id","title","revision","updatedAt","discipline","totalDurationMinutes","requiredEquipment","tags","blocks","complete","nextCursor","version","contentIsUntrusted"],"additionalProperties":{}},"scheduledWorkoutId":{"type":"string"},"calendarId":{"type":"string"},"position":{"anyOf":[{"$ref":"#/$defs/3"},{"$ref":"#/$defs/1"}],"description":"ISO date / 1-based day."},"contentRevision":{"$ref":"#/$defs/1"}},"required":["source","resourceVersion","workout"],"additionalProperties":{}}},"nextCursor":{"type":["string","null"]},"complete":{"type":"boolean"},"version":{"$ref":"#/$defs/0"},"contentIsUntrusted":{"type":"boolean","const":true}},"required":["items"],"additionalProperties":{},"$defs":{"0":{"type":"string"},"1":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"2":{"type":"array","items":{"type":"string"}},"3":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}}},"minimumScopes":["workouts:read"],"permissionChecksAtExecution":true},"hardi_list_actions":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"limit":{"default":10,"type":"integer","minimum":1,"maximum":20},"before":{"type":"string","minLength":1,"maxLength":2048}},"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{}}},"nextBefore":{"type":["string","null"]}},"required":["items","nextBefore"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read"],"permissionChecksAtExecution":true},"hardi_list_calendars":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"limit":{"default":100,"type":"integer","minimum":1,"maximum":100},"cursor":{"type":"string","maxLength":2048}},"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"timelineType":{"type":"string","enum":["fixed","dated"]},"durationDays":{"type":["number","null"]},"resourceVersion":{"$ref":"#/$defs/0"}},"required":["id","name","timelineType","durationDays"],"additionalProperties":{}}},"nextCursor":{"type":["string","null"]},"complete":{"type":"boolean"},"version":{"$ref":"#/$defs/0"},"contentIsUntrusted":{"type":"boolean","const":true}},"required":["items"],"additionalProperties":{},"$defs":{"0":{"type":"string"}}},"minimumScopes":["planning:read"],"permissionChecksAtExecution":true},"hardi_list_cycles":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"calendarId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"from":{"$ref":"#/$defs/0"},"to":{"$ref":"#/$defs/0"},"limit":{"default":10,"type":"integer","minimum":1,"maximum":20},"cursor":{"type":"string","maxLength":2048}},"required":["calendarId","from","to"],"additionalProperties":false,"$defs":{"0":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"integer","minimum":1,"maximum":9007199254740991}]}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"color":{"type":"string"},"brief":{"type":["string","null"]},"disciplineMode":{"type":"string","enum":["all","selected"]},"disciplines":{"type":"array","items":{"type":"string"}},"from":{"$ref":"#/$defs/0"},"to":{"$ref":"#/$defs/0"}},"required":["id","name","color","brief","disciplineMode","disciplines","from","to"],"additionalProperties":{}}},"nextCursor":{"type":["string","null"]},"complete":{"type":"boolean"},"version":{"$ref":"#/$defs/3"},"contentIsUntrusted":{"type":"boolean","const":true},"calendarId":{"type":"string"},"resourceVersion":{"$ref":"#/$defs/3"}},"required":["items","calendarId","resourceVersion"],"additionalProperties":{},"$defs":{"0":{"anyOf":[{"$ref":"#/$defs/1"},{"$ref":"#/$defs/2"}],"description":"ISO date / 1-based day."},"1":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"2":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"3":{"type":"string"}}},"minimumScopes":["cycles:read","planning:read"],"permissionChecksAtExecution":true},"hardi_list_folders":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"folders":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"parentId":{"type":["string","null"]},"depth":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"color":{"type":["string","null"]},"sortOrder":{"type":"number"},"version":{"$ref":"#/$defs/0"}},"required":["id","name","parentId","depth","color","sortOrder","version"],"additionalProperties":{}}},"version":{"$ref":"#/$defs/0"}},"required":["folders","version"],"additionalProperties":{},"$defs":{"0":{"type":"string"}}},"minimumScopes":["folders:read"],"permissionChecksAtExecution":true},"hardi_list_trash":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"limit":{"default":10,"type":"integer","minimum":1,"maximum":20},"cursor":{"type":"string","maxLength":2048}},"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["workout","trash"]},"id":{"type":"string"},"title":{"type":"string"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"version":{"$ref":"#/$defs/0"}},"required":["kind","id","title","expiresAt","version"],"additionalProperties":{}}},"nextCursor":{"type":["string","null"]},"complete":{"type":"boolean"},"version":{"$ref":"#/$defs/0"},"contentIsUntrusted":{"type":"boolean","const":true}},"required":["items"],"additionalProperties":{},"$defs":{"0":{"type":"string"}}},"minimumScopes":[],"permissionChecksAtExecution":true},"hardi_search_exercises":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"query":{"default":"","type":"string","maxLength":100},"limit":{"default":10,"type":"integer","minimum":1,"maximum":20},"cursor":{"type":"string","maxLength":2048}},"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"category":{"type":"string"},"revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","category","revision"],"additionalProperties":{}}},"nextCursor":{"type":["string","null"]},"complete":{"type":"boolean"},"version":{"type":"string"},"contentIsUntrusted":{"type":"boolean","const":true}},"required":["items"],"additionalProperties":{}},"minimumScopes":["catalog:read"],"permissionChecksAtExecution":true},"hardi_search_workouts":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"query":{"default":"","type":"string","maxLength":100},"limit":{"default":10,"type":"integer","minimum":1,"maximum":20},"cursor":{"type":"string","maxLength":2048},"folderId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"discipline":{"$ref":"#/$defs/0"},"equipment":{"maxItems":10,"type":"array","items":{"$ref":"#/$defs/0"}},"tags":{"maxItems":5,"type":"array","items":{"$ref":"#/$defs/0"}},"minDurationMinutes":{"$ref":"#/$defs/1"},"maxDurationMinutes":{"$ref":"#/$defs/1"}},"additionalProperties":false,"$defs":{"0":{"type":"string","minLength":1,"maxLength":20},"1":{"type":"integer","minimum":0,"maximum":10080}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"discipline":{"type":["string","null"]},"revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"folderId":{"type":["string","null"]}},"required":["id","title","discipline","revision","updatedAt","folderId"],"additionalProperties":{}}},"nextCursor":{"type":["string","null"]},"complete":{"type":"boolean"},"version":{"type":"string"},"contentIsUntrusted":{"type":"boolean","const":true}},"required":["items"],"additionalProperties":{}},"minimumScopes":["workouts:read"],"permissionChecksAtExecution":true},"hardi_simulate_actions":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"$ref":"#/$defs/0"},"requestId":{"$ref":"#/$defs/1"},"actions":{"$ref":"#/$defs/2"},"program":{"$ref":"#/$defs/24"}},"required":["schemaVersion","requestId","actions"],"additionalProperties":false,"$defs":{"0":{"type":"number","const":2},"1":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"2":{"minItems":1,"maxItems":10,"type":"array","items":{"$ref":"#/$defs/3"}},"3":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"calendar.create"},"ref":{"$ref":"#/$defs/4"},"name":{"$ref":"#/$defs/5"},"timelineType":{"default":"dated","type":"string","enum":["dated","fixed"]},"durationWeeks":{"anyOf":[{"type":"integer","minimum":1,"maximum":52},{"type":"null"}]},"description":{"$ref":"#/$defs/6"}},"required":["type","ref","name"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"training.performance.create"},"exerciseId":{"$ref":"#/$defs/7"},"input":{"$ref":"#/$defs/8"},"ref":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_-]{0,39}$"}},"required":["type","exerciseId","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"training.performance.update"},"exerciseId":{"$ref":"#/$defs/7"},"performanceId":{"$ref":"#/$defs/7"},"expectedVersion":{"$ref":"#/$defs/d"},"input":{"$ref":"#/$defs/8"}},"required":["type","exerciseId","performanceId","expectedVersion","input"],"additionalProperties":false},{"type":"object","properties":{"subjectKind":{"type":"string","enum":["workout","scheduled_workout"]},"subjectId":{"$ref":"#/$defs/7"},"blockId":{"$ref":"#/$defs/7"},"type":{"type":"string","const":"training.result.upsert"},"expectedVersion":{"$ref":"#/$defs/d"},"score":{"oneOf":[{"$ref":"#/$defs/e"},{"$ref":"#/$defs/f"},{"$ref":"#/$defs/g"},{"$ref":"#/$defs/j"},{"$ref":"#/$defs/k"},{"$ref":"#/$defs/m"},{"$ref":"#/$defs/n"},{"$ref":"#/$defs/o"},{"$ref":"#/$defs/p"}]},"division":{"type":"string","enum":["rx","scaled","none"]}},"required":["subjectKind","subjectId","blockId","type","expectedVersion","score"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"preferences.update"},"expectedVersion":{"$ref":"#/$defs/d"},"changes":{"minItems":1,"maxItems":20,"type":"array","items":{"$ref":"#/$defs/q"}}},"required":["type","expectedVersion","changes"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"settings.update"},"expectedVersion":{"$ref":"#/$defs/d"},"patch":{"type":"object","properties":{"display":{"$ref":"#/$defs/u"},"notifications":{"$ref":"#/$defs/w"}},"additionalProperties":false}},"required":["type","expectedVersion","patch"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"workout.create"},"ref":{"$ref":"#/$defs/4"},"content":{"type":"object","properties":{"title":{"$ref":"#/$defs/x"},"discipline":{"default":null,"anyOf":[{"$ref":"#/$defs/y"},{"type":"null"}]},"requiredEquipment":{"default":[],"maxItems":10,"type":"array","items":{"$ref":"#/$defs/y"}},"blocks":{"minItems":1,"maxItems":12,"type":"array","items":{"$ref":"#/$defs/z"}},"totalDurationMinutes":{"$ref":"#/$defs/13"},"tags":{"maxItems":5,"type":"array","items":{"$ref":"#/$defs/y"}}},"required":["title","blocks"],"additionalProperties":false},"folderId":{"$ref":"#/$defs/15"},"folderRef":{"$ref":"#/$defs/4"}},"required":["type","ref","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"workout.update"},"workoutId":{"$ref":"#/$defs/7"},"expectedVersion":{"$ref":"#/$defs/d"},"expectedRevision":{"$ref":"#/$defs/17"},"patch":{"$ref":"#/$defs/18"}},"required":["type","workoutId","expectedVersion","expectedRevision","patch"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"workout.duplicate"},"workoutId":{"$ref":"#/$defs/7"},"expectedVersion":{"$ref":"#/$defs/d"},"ref":{"$ref":"#/$defs/4"},"title":{"$ref":"#/$defs/x"},"folderId":{"$ref":"#/$defs/15"},"folderRef":{"$ref":"#/$defs/4"}},"required":["type","workoutId","expectedVersion","ref"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"workout.move"},"workoutId":{"$ref":"#/$defs/7"},"expectedVersion":{"$ref":"#/$defs/d"},"folderId":{"$ref":"#/$defs/15"},"folderRef":{"$ref":"#/$defs/4"}},"required":["type","workoutId","expectedVersion"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"workout.trash"},"workoutId":{"$ref":"#/$defs/7"},"expectedVersion":{"$ref":"#/$defs/d"}},"required":["type","workoutId","expectedVersion"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"workout.restore"},"workoutId":{"$ref":"#/$defs/7"},"expectedVersion":{"$ref":"#/$defs/d"}},"required":["type","workoutId","expectedVersion"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"folder.create"},"ref":{"$ref":"#/$defs/4"},"name":{"$ref":"#/$defs/r"},"parentId":{"$ref":"#/$defs/16"},"parentRef":{"$ref":"#/$defs/4"},"color":{"$ref":"#/$defs/1g"}},"required":["type","ref","name"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"folder.update"},"folderId":{"$ref":"#/$defs/7"},"expectedVersion":{"$ref":"#/$defs/d"},"name":{"$ref":"#/$defs/r"},"parentId":{"$ref":"#/$defs/16"},"color":{"$ref":"#/$defs/1g"}},"required":["type","folderId","expectedVersion"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"folder.reorder"},"expectedVersion":{"$ref":"#/$defs/d"},"items":{"minItems":1,"maxItems":50,"type":"array","items":{"$ref":"#/$defs/1i"}}},"required":["type","expectedVersion","items"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"folder.trash"},"folderId":{"$ref":"#/$defs/7"},"expectedVersion":{"$ref":"#/$defs/d"},"contentPolicy":{"default":"error_if_not_empty","type":"string","enum":["error_if_not_empty","trash_contents","move_contents"]},"destinationFolderId":{"$ref":"#/$defs/16"}},"required":["type","folderId","expectedVersion"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"folder.restore"},"batchId":{"$ref":"#/$defs/7"},"expectedVersion":{"$ref":"#/$defs/d"}},"required":["type","batchId","expectedVersion"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.add"},"calendarId":{"$ref":"#/$defs/1k"},"calendarRef":{"$ref":"#/$defs/1l"},"expectedVersion":{"$ref":"#/$defs/1m"},"timezone":{"$ref":"#/$defs/r"},"ref":{"$ref":"#/$defs/4"},"workoutId":{"$ref":"#/$defs/7"},"sourceVersion":{"$ref":"#/$defs/d"},"workoutRef":{"$ref":"#/$defs/4"},"position":{"$ref":"#/$defs/1n"},"beforeItemId":{"$ref":"#/$defs/16"},"collision":{"$ref":"#/$defs/1o"}},"required":["type","timezone","position"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.update"},"calendarId":{"$ref":"#/$defs/1k"},"calendarRef":{"$ref":"#/$defs/1l"},"expectedVersion":{"$ref":"#/$defs/1m"},"timezone":{"$ref":"#/$defs/r"},"occurrenceId":{"$ref":"#/$defs/7"},"expectedRevision":{"$ref":"#/$defs/17"},"patch":{"$ref":"#/$defs/18"}},"required":["type","timezone","occurrenceId","expectedRevision","patch"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.move"},"calendarId":{"$ref":"#/$defs/1k"},"calendarRef":{"$ref":"#/$defs/1l"},"expectedVersion":{"$ref":"#/$defs/1m"},"timezone":{"$ref":"#/$defs/r"},"occurrenceId":{"$ref":"#/$defs/7"},"targetCalendarId":{"$ref":"#/$defs/7"},"targetVersion":{"$ref":"#/$defs/d"},"collision":{"$ref":"#/$defs/1o"},"position":{"$ref":"#/$defs/1n"},"beforeItemId":{"$ref":"#/$defs/16"}},"required":["type","timezone","occurrenceId","position"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.reorder"},"calendarId":{"$ref":"#/$defs/1k"},"calendarRef":{"$ref":"#/$defs/1l"},"expectedVersion":{"$ref":"#/$defs/1m"},"timezone":{"$ref":"#/$defs/r"},"occurrenceId":{"$ref":"#/$defs/7"},"beforeItemId":{"$ref":"#/$defs/16"}},"required":["type","timezone","occurrenceId","beforeItemId"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.swap"},"calendarId":{"$ref":"#/$defs/1k"},"calendarRef":{"$ref":"#/$defs/1l"},"expectedVersion":{"$ref":"#/$defs/1m"},"timezone":{"$ref":"#/$defs/r"},"occurrenceId":{"$ref":"#/$defs/7"},"otherOccurrenceId":{"$ref":"#/$defs/7"}},"required":["type","timezone","occurrenceId","otherOccurrenceId"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.copy"},"calendarId":{"$ref":"#/$defs/1k"},"calendarRef":{"$ref":"#/$defs/1l"},"expectedVersion":{"$ref":"#/$defs/1m"},"timezone":{"$ref":"#/$defs/r"},"from":{"$ref":"#/$defs/1n"},"to":{"$ref":"#/$defs/1n"},"contentKinds":{"$ref":"#/$defs/1p"},"targetCalendarId":{"$ref":"#/$defs/7"},"targetVersion":{"$ref":"#/$defs/d"},"collision":{"$ref":"#/$defs/1o"},"target":{"$ref":"#/$defs/1n"}},"required":["type","timezone","from","to","contentKinds","target"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.shift"},"calendarId":{"$ref":"#/$defs/1k"},"calendarRef":{"$ref":"#/$defs/1l"},"expectedVersion":{"$ref":"#/$defs/1m"},"timezone":{"$ref":"#/$defs/r"},"from":{"$ref":"#/$defs/1n"},"to":{"$ref":"#/$defs/1n"},"contentKinds":{"$ref":"#/$defs/1p"},"targetCalendarId":{"$ref":"#/$defs/7"},"targetVersion":{"$ref":"#/$defs/d"},"collision":{"$ref":"#/$defs/1o"},"days":{"type":"integer","minimum":-366,"maximum":366}},"required":["type","timezone","from","to","contentKinds","days"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.remove"},"calendarId":{"$ref":"#/$defs/1k"},"calendarRef":{"$ref":"#/$defs/1l"},"expectedVersion":{"$ref":"#/$defs/1m"},"timezone":{"$ref":"#/$defs/r"},"occurrenceId":{"$ref":"#/$defs/7"}},"required":["type","timezone","occurrenceId"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.note"},"calendarId":{"$ref":"#/$defs/1k"},"calendarRef":{"$ref":"#/$defs/1l"},"expectedVersion":{"$ref":"#/$defs/1m"},"timezone":{"$ref":"#/$defs/r"},"position":{"$ref":"#/$defs/1n"},"ref":{"$ref":"#/$defs/4"},"body":{"$ref":"#/$defs/1r"},"color":{"$ref":"#/$defs/1s"},"isPublic":{"type":"boolean"}},"required":["type","timezone","position","body","isPublic"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.edit_note"},"calendarId":{"$ref":"#/$defs/1k"},"calendarRef":{"$ref":"#/$defs/1l"},"expectedVersion":{"$ref":"#/$defs/1m"},"timezone":{"$ref":"#/$defs/r"},"entryId":{"$ref":"#/$defs/7"},"body":{"$ref":"#/$defs/1r"},"color":{"$ref":"#/$defs/1s"},"isPublic":{"type":"boolean"}},"required":["type","timezone","entryId","body","isPublic"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.remove_note"},"calendarId":{"$ref":"#/$defs/1k"},"calendarRef":{"$ref":"#/$defs/1l"},"expectedVersion":{"$ref":"#/$defs/1m"},"timezone":{"$ref":"#/$defs/r"},"entryId":{"$ref":"#/$defs/7"}},"required":["type","timezone","entryId"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.rest"},"calendarId":{"$ref":"#/$defs/1k"},"calendarRef":{"$ref":"#/$defs/1l"},"expectedVersion":{"$ref":"#/$defs/1m"},"timezone":{"$ref":"#/$defs/r"},"positions":{"$ref":"#/$defs/1t"}},"required":["type","timezone","positions"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.remove_rest"},"calendarId":{"$ref":"#/$defs/1k"},"calendarRef":{"$ref":"#/$defs/1l"},"expectedVersion":{"$ref":"#/$defs/1m"},"timezone":{"$ref":"#/$defs/r"},"positions":{"$ref":"#/$defs/1t"}},"required":["type","timezone","positions"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"cycle.create"},"calendarId":{"$ref":"#/$defs/1k"},"calendarRef":{"$ref":"#/$defs/1l"},"expectedVersion":{"$ref":"#/$defs/1m"},"timezone":{"$ref":"#/$defs/r"},"name":{"$ref":"#/$defs/r"},"color":{"$ref":"#/$defs/1u"},"from":{"$ref":"#/$defs/1n"},"to":{"$ref":"#/$defs/1n"},"brief":{"$ref":"#/$defs/1v"},"disciplineMode":{"$ref":"#/$defs/1w"},"disciplines":{"$ref":"#/$defs/1x"},"ref":{"$ref":"#/$defs/4"}},"required":["type","timezone","name","color","from","to"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"cycle.update"},"calendarId":{"$ref":"#/$defs/1k"},"calendarRef":{"$ref":"#/$defs/1l"},"expectedVersion":{"$ref":"#/$defs/1m"},"timezone":{"$ref":"#/$defs/r"},"name":{"$ref":"#/$defs/r"},"color":{"$ref":"#/$defs/1u"},"from":{"$ref":"#/$defs/1n"},"to":{"$ref":"#/$defs/1n"},"brief":{"$ref":"#/$defs/1v"},"disciplineMode":{"$ref":"#/$defs/1w"},"disciplines":{"$ref":"#/$defs/1x"},"cycleId":{"$ref":"#/$defs/7"}},"required":["type","timezone","name","color","from","to","cycleId"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"cycle.delete"},"calendarId":{"$ref":"#/$defs/1k"},"calendarRef":{"$ref":"#/$defs/1l"},"expectedVersion":{"$ref":"#/$defs/1m"},"timezone":{"$ref":"#/$defs/r"},"cycleId":{"$ref":"#/$defs/7"}},"required":["type","timezone","cycleId"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"template.create"},"ref":{"$ref":"#/$defs/4"},"name":{"$ref":"#/$defs/5"},"description":{"$ref":"#/$defs/1y"},"color":{"$ref":"#/$defs/1s"}},"required":["type","ref","name"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"template.update"},"templateId":{"$ref":"#/$defs/7"},"templateRef":{"$ref":"#/$defs/4"},"expectedVersion":{"$ref":"#/$defs/d"},"patch":{"type":"object","properties":{"name":{"$ref":"#/$defs/5"},"description":{"$ref":"#/$defs/20"},"color":{"$ref":"#/$defs/21"},"entryChange":{"$ref":"#/$defs/22"}},"additionalProperties":false}},"required":["type","patch"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"template.add_workout"},"templateId":{"$ref":"#/$defs/7"},"templateRef":{"$ref":"#/$defs/4"},"expectedVersion":{"$ref":"#/$defs/d"},"workoutId":{"$ref":"#/$defs/7"},"workoutRef":{"$ref":"#/$defs/4"},"sourceVersion":{"$ref":"#/$defs/d"},"day":{"$ref":"#/$defs/23"}},"required":["type","day"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"template.move_workout"},"templateId":{"$ref":"#/$defs/7"},"templateRef":{"$ref":"#/$defs/4"},"expectedVersion":{"$ref":"#/$defs/d"},"itemId":{"$ref":"#/$defs/7"},"day":{"$ref":"#/$defs/23"},"sortOrder":{"$ref":"#/$defs/1j"}},"required":["type","itemId","day"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"template.remove_workout"},"templateId":{"$ref":"#/$defs/7"},"templateRef":{"$ref":"#/$defs/4"},"expectedVersion":{"$ref":"#/$defs/d"},"itemId":{"$ref":"#/$defs/7"}},"required":["type","itemId"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"template.delete"},"templateId":{"$ref":"#/$defs/7"},"templateRef":{"$ref":"#/$defs/4"},"expectedVersion":{"$ref":"#/$defs/d"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.apply_template"},"calendarId":{"$ref":"#/$defs/1k"},"calendarRef":{"$ref":"#/$defs/1l"},"expectedVersion":{"$ref":"#/$defs/1m"},"timezone":{"$ref":"#/$defs/r"},"templateId":{"$ref":"#/$defs/7"},"templateVersion":{"$ref":"#/$defs/d"},"position":{"$ref":"#/$defs/1n"},"collision":{"$ref":"#/$defs/1o"}},"required":["type","timezone","templateId","templateVersion","position"],"additionalProperties":false}]},"4":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"5":{"type":"string","minLength":1,"maxLength":30},"6":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"7":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"8":{"type":"object","properties":{"testId":{"$ref":"#/$defs/7"},"testVersionId":{"$ref":"#/$defs/7"},"performedOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"timeZone":{"type":"string","minLength":1,"maxLength":100},"value":{"type":["string","number"]},"repetitions":{"default":null,"anyOf":[{"type":"integer","minimum":1,"maximum":10},{"type":"null"}]},"configuration":{"default":null,"anyOf":[{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"machine"},"machineModel":{"$ref":"#/$defs/9"},"machineSettings":{"$ref":"#/$defs/9"},"assistanceKg":{"type":"number","minimum":0,"maximum":999}},"required":["kind","machineModel","machineSettings","assistanceKg"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"band"},"bandIdentification":{"$ref":"#/$defs/9"},"anchorAndLimbSetup":{"$ref":"#/$defs/a"}},"required":["kind","bandIdentification","anchorAndLimbSetup"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"declared_setup"},"setupId":{"$ref":"#/$defs/7"},"setupName":{"type":"string","minLength":1,"maxLength":60},"values":{"type":"object","propertyNames":{"$ref":"#/$defs/b"},"additionalProperties":{"$ref":"#/$defs/c"}}},"required":["kind","values"],"additionalProperties":false}]},{"type":"null"}]}},"required":["testId","testVersionId","performedOn","timeZone","value"],"additionalProperties":false},"9":{"type":"string","minLength":1,"maxLength":160},"10":{"type":"integer","minimum":0,"maximum":1440},"11":{"maxItems":128,"type":"array","items":{"$ref":"#/$defs/12"}},"12":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string","minLength":1,"maxLength":4000}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"lineBreak"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"exercise"},"exerciseId":{"$ref":"#/$defs/7"},"label":{"$ref":"#/$defs/9"},"locale":{"type":"string","enum":["fr","en"]}},"required":["type","exerciseId","label","locale"],"additionalProperties":false}]},"13":{"anyOf":[{"$ref":"#/$defs/14"},{"type":"null"}]},"14":{"type":"integer","minimum":0,"maximum":10080},"15":{"$ref":"#/$defs/16"},"16":{"anyOf":[{"$ref":"#/$defs/7"},{"type":"null"}]},"17":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"18":{"type":"object","properties":{"title":{"$ref":"#/$defs/x"},"discipline":{"$ref":"#/$defs/19"},"totalDurationMinutes":{"$ref":"#/$defs/1a"},"requiredEquipment":{"$ref":"#/$defs/1b"},"tags":{"$ref":"#/$defs/1c"},"blocks":{"$ref":"#/$defs/1d"}},"additionalProperties":false},"19":{"anyOf":[{"$ref":"#/$defs/y"},{"type":"null"}]},"20":{"$ref":"#/$defs/1y"},"21":{"$ref":"#/$defs/1s"},"22":{"oneOf":[{"type":"object","properties":{"action":{"type":"string","const":"save"},"entry":{"type":"object","properties":{"id":{"$ref":"#/$defs/7"},"day":{"$ref":"#/$defs/23"},"kind":{"type":"string","enum":["note","rest"]},"body":{"type":"string","maxLength":2000},"color":{"default":null,"$ref":"#/$defs/1s"},"isPublic":{"type":"boolean"},"sortOrder":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["id","day","kind","body","isPublic"],"additionalProperties":false}},"required":["action","entry"],"additionalProperties":false},{"type":"object","properties":{"action":{"type":"string","const":"delete"},"id":{"$ref":"#/$defs/7"}},"required":["action","id"],"additionalProperties":false},{"type":"object","properties":{"action":{"type":"string","const":"rest"},"id":{"$ref":"#/$defs/7"},"day":{"$ref":"#/$defs/23"},"enabled":{"type":"boolean"}},"required":["action","id","day","enabled"],"additionalProperties":false}]},"23":{"type":"integer","minimum":1,"maximum":7},"24":{"type":"object","properties":{"id":{"$ref":"#/$defs/7"},"name":{"$ref":"#/$defs/r"},"step":{"$ref":"#/$defs/4"},"index":{"$ref":"#/$defs/25"},"total":{"$ref":"#/$defs/25"}},"required":["id","name","step","index","total"],"additionalProperties":false},"25":{"type":"integer","minimum":1,"maximum":28},"a":{"type":"string","minLength":1,"maxLength":240},"b":{"type":"string","pattern":"^[a-z][A-Za-z0-9]{0,47}$"},"c":{"anyOf":[{"type":"number","minimum":-999999,"maximum":999999},{"$ref":"#/$defs/a"}]},"d":{"type":"string","pattern":"^[a-f0-9]{64}$"},"e":{"type":"object","properties":{"kind":{"type":"string","const":"free_text"},"text":{"$ref":"#/$defs/a"}},"required":["kind","text"]},"f":{"type":"object","properties":{"kind":{"type":"string","const":"time"},"seconds":{"type":"integer","exclusiveMinimum":0,"maximum":7200}},"required":["kind","seconds"]},"g":{"type":"object","properties":{"kind":{"type":"string","const":"time_cap"},"rounds":{"$ref":"#/$defs/h"},"reps":{"$ref":"#/$defs/i"}},"required":["kind","rounds","reps"]},"h":{"type":"integer","minimum":0,"maximum":200},"i":{"type":"integer","minimum":0,"maximum":10000},"j":{"type":"object","properties":{"kind":{"type":"string","const":"rounds_reps"},"rounds":{"$ref":"#/$defs/h"},"reps":{"$ref":"#/$defs/i"}},"required":["kind","rounds","reps"]},"k":{"type":"object","properties":{"kind":{"type":"string","const":"reps"},"reps":{"$ref":"#/$defs/l"}},"required":["kind","reps"]},"l":{"type":"integer","exclusiveMinimum":0,"maximum":10000},"m":{"type":"object","properties":{"kind":{"type":"string","const":"weight"},"kilograms":{"type":"number","exclusiveMinimum":0,"maximum":1000}},"required":["kind","kilograms"]},"n":{"type":"object","properties":{"kind":{"type":"string","const":"calories"},"calories":{"$ref":"#/$defs/l"}},"required":["kind","calories"]},"o":{"type":"object","properties":{"kind":{"type":"string","const":"distance"},"meters":{"type":"number","exclusiveMinimum":0,"maximum":100000}},"required":["kind","meters"]},"p":{"type":"object","properties":{"kind":{"type":"string","const":"watts"},"watts":{"type":"integer","exclusiveMinimum":0,"maximum":3000}},"required":["kind","watts"]},"q":{"type":"object","properties":{"path":{"minItems":1,"maxItems":8,"type":"array","items":{"$ref":"#/$defs/r"}},"before":{"$ref":"#/$defs/s"},"value":{"$ref":"#/$defs/t"}},"required":["path","before","value"],"additionalProperties":false},"r":{"type":"string","minLength":1,"maxLength":80},"s":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/s"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/s"}}]},"t":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/t"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/t"}}]},"u":{"type":"object","properties":{"interfaceLanguage":{"type":"string","enum":["en","fr"]},"unitPreferences":{"type":"object","properties":{"measurementSystem":{"type":"string","enum":["metric","imperial"]},"weightUnit":{"type":"string","enum":["kg","lb"]},"terminologyStyle":{"type":"string","enum":["full","short"]},"dateFormat":{"type":"string","enum":["day/month/year","month/day/year"]},"resultLevelSelection":{"$ref":"#/$defs/v"}},"additionalProperties":false}},"additionalProperties":false},"v":{"type":"string","enum":["rx_scaled","none"]},"w":{"type":"object","properties":{"energy":{"type":"boolean"},"follows":{"type":"boolean"},"product":{"type":"boolean"},"messages":{"type":"boolean"},"messageRequests":{"type":"boolean"}},"additionalProperties":false},"x":{"type":"string","minLength":1,"maxLength":50},"y":{"type":"string","minLength":1,"maxLength":20},"z":{"type":"object","properties":{"title":{"default":null,"anyOf":[{"$ref":"#/$defs/x"},{"type":"null"}]},"blockType":{"$ref":"#/$defs/x"},"durationMinutes":{"default":null,"anyOf":[{"$ref":"#/$defs/10"},{"type":"null"}]},"contentText":{"default":"","type":"string","maxLength":4000},"nodes":{"$ref":"#/$defs/11"},"levelSelection":{"$ref":"#/$defs/v"},"scoringType":{"default":"free_text","type":"string","enum":["free_text","time","rounds_reps","reps","weight","calories","distance","watts"]}},"required":["blockType"],"additionalProperties":false},"1a":{"$ref":"#/$defs/13"},"1b":{"maxItems":10,"type":"array","items":{"$ref":"#/$defs/y"}},"1c":{"maxItems":5,"type":"array","items":{"$ref":"#/$defs/y"}},"1d":{"maxItems":30,"type":"array","items":{"$ref":"#/$defs/1e"}},"1e":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"insert"},"index":{"$ref":"#/$defs/1f"},"block":{"$ref":"#/$defs/z"}},"required":["type","index","block"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"update"},"blockId":{"$ref":"#/$defs/7"},"patch":{"type":"object","properties":{"title":{"anyOf":[{"$ref":"#/$defs/x"},{"type":"null"}]},"blockType":{"$ref":"#/$defs/x"},"durationMinutes":{"anyOf":[{"$ref":"#/$defs/10"},{"type":"null"}]},"contentText":{"type":"string","maxLength":4000},"nodes":{"$ref":"#/$defs/11"},"scoringType":{"type":"string","enum":["free_text","time","rounds_reps","reps","weight","calories","distance","watts"]}},"additionalProperties":false}},"required":["type","blockId","patch"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"remove"},"blockId":{"$ref":"#/$defs/7"}},"required":["type","blockId"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"move"},"blockId":{"$ref":"#/$defs/7"},"index":{"$ref":"#/$defs/1f"}},"required":["type","blockId","index"],"additionalProperties":false}]},"1f":{"type":"integer","minimum":0,"maximum":11},"1g":{"anyOf":[{"$ref":"#/$defs/1h"},{"type":"null"}]},"1h":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"1i":{"type":"object","properties":{"folderId":{"$ref":"#/$defs/7"},"parentId":{"$ref":"#/$defs/16"},"sortOrder":{"$ref":"#/$defs/1j"}},"required":["folderId","parentId","sortOrder"],"additionalProperties":false},"1j":{"type":"integer","minimum":0,"maximum":9007199254740991},"1k":{"default":"00000000-0000-4000-8000-000000000000","$ref":"#/$defs/7"},"1l":{"description":"Earlier batch calendar; omit calendarId/expectedVersion.","$ref":"#/$defs/4"},"1m":{"default":"0000000000000000000000000000000000000000000000000000000000000000","$ref":"#/$defs/d"},"1n":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"integer","minimum":1,"maximum":9007199254740991}]},"1o":{"default":"error","type":"string","enum":["error","append"]},"1p":{"minItems":1,"maxItems":3,"type":"array","items":{"$ref":"#/$defs/1q"}},"1q":{"type":"string","enum":["workouts","notes","rest"]},"1r":{"type":"string","minLength":1,"maxLength":2000},"1s":{"anyOf":[{"type":"string","enum":["#64748b","#C7151F","#ef4444","#f97316","#eab308","#22c55e","#14b8a6","#3b82f6","#8b5cf6","#ec4899"]},{"type":"null"}]},"1t":{"minItems":1,"maxItems":28,"type":"array","items":{"$ref":"#/$defs/1n"}},"1u":{"type":"string","enum":["#64748b","#C7151F","#ef4444","#f97316","#eab308","#22c55e","#14b8a6","#3b82f6","#8b5cf6","#ec4899","#E53935","#F97316","#F59E0B","#65A30D","#0D9488","#0284C7","#3367D6","#7C3AED","#DB2777","#6B7280"]},"1v":{"anyOf":[{"type":"string","minLength":1,"maxLength":1000},{"type":"null"}]},"1w":{"default":"all","type":"string","enum":["all","selected"]},"1x":{"default":[],"maxItems":100,"type":"array","items":{"$ref":"#/$defs/y"}},"1y":{"anyOf":[{"$ref":"#/$defs/1z"},{"type":"null"}]},"1z":{"type":"string","maxLength":500}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":[],"permissionChecksAtExecution":true},"hardi_undo_action":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"operationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"}},"required":["operationId","requestId"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","actions:undo"],"permissionChecksAtExecution":true},"hardi_update_preferences":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"expectedVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"},"changes":{"minItems":1,"maxItems":20,"type":"array","items":{"$ref":"#/$defs/0"}}},"required":["schemaVersion","requestId","expectedVersion","changes"],"additionalProperties":false,"$defs":{"0":{"type":"object","properties":{"path":{"minItems":1,"maxItems":8,"type":"array","items":{"$ref":"#/$defs/1"}},"before":{"$ref":"#/$defs/2"},"value":{"$ref":"#/$defs/3"}},"required":["path","before","value"],"additionalProperties":false},"1":{"type":"string","minLength":1,"maxLength":80},"2":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/2"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/2"}}]},"3":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/3"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/3"}}]}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","preferences:read","preferences:write"],"permissionChecksAtExecution":true},"hardi_update_settings":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"expectedVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"},"patch":{"type":"object","properties":{"display":{"$ref":"#/$defs/0"},"notifications":{"$ref":"#/$defs/1"}},"additionalProperties":false}},"required":["schemaVersion","requestId","expectedVersion","patch"],"additionalProperties":false,"$defs":{"0":{"type":"object","properties":{"interfaceLanguage":{"type":"string","enum":["en","fr"]},"unitPreferences":{"type":"object","properties":{"measurementSystem":{"type":"string","enum":["metric","imperial"]},"weightUnit":{"type":"string","enum":["kg","lb"]},"terminologyStyle":{"type":"string","enum":["full","short"]},"dateFormat":{"type":"string","enum":["day/month/year","month/day/year"]},"resultLevelSelection":{"type":"string","enum":["rx_scaled","none"]}},"additionalProperties":false}},"additionalProperties":false},"1":{"type":"object","properties":{"energy":{"type":"boolean"},"follows":{"type":"boolean"},"product":{"type":"boolean"},"messages":{"type":"boolean"},"messageRequests":{"type":"boolean"}},"additionalProperties":false}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","settings:read","settings:write"],"permissionChecksAtExecution":true},"hardi_write_training":{"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"type":"number","const":2},"requestId":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"dryRun":{"default":false,"type":"boolean"},"action":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"training.performance.create"},"exerciseId":{"$ref":"#/$defs/0"},"input":{"$ref":"#/$defs/1"},"ref":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_-]{0,39}$"}},"required":["type","exerciseId","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"training.performance.update"},"exerciseId":{"$ref":"#/$defs/0"},"performanceId":{"$ref":"#/$defs/0"},"expectedVersion":{"$ref":"#/$defs/6"},"input":{"$ref":"#/$defs/1"}},"required":["type","exerciseId","performanceId","expectedVersion","input"],"additionalProperties":false},{"type":"object","properties":{"subjectKind":{"type":"string","enum":["workout","scheduled_workout"]},"subjectId":{"$ref":"#/$defs/0"},"blockId":{"$ref":"#/$defs/0"},"type":{"type":"string","const":"training.result.upsert"},"expectedVersion":{"$ref":"#/$defs/6"},"score":{"oneOf":[{"$ref":"#/$defs/7"},{"$ref":"#/$defs/8"},{"$ref":"#/$defs/9"},{"$ref":"#/$defs/c"},{"$ref":"#/$defs/d"},{"$ref":"#/$defs/f"},{"$ref":"#/$defs/g"},{"$ref":"#/$defs/h"},{"$ref":"#/$defs/i"}]},"division":{"type":"string","enum":["rx","scaled","none"]}},"required":["subjectKind","subjectId","blockId","type","expectedVersion","score"],"additionalProperties":false}]}},"required":["schemaVersion","requestId","action"],"additionalProperties":false,"$defs":{"0":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"1":{"type":"object","properties":{"testId":{"$ref":"#/$defs/0"},"testVersionId":{"$ref":"#/$defs/0"},"performedOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"timeZone":{"type":"string","minLength":1,"maxLength":100},"value":{"type":["string","number"]},"repetitions":{"default":null,"anyOf":[{"type":"integer","minimum":1,"maximum":10},{"type":"null"}]},"configuration":{"default":null,"anyOf":[{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"machine"},"machineModel":{"$ref":"#/$defs/2"},"machineSettings":{"$ref":"#/$defs/2"},"assistanceKg":{"type":"number","minimum":0,"maximum":999}},"required":["kind","machineModel","machineSettings","assistanceKg"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"band"},"bandIdentification":{"$ref":"#/$defs/2"},"anchorAndLimbSetup":{"$ref":"#/$defs/3"}},"required":["kind","bandIdentification","anchorAndLimbSetup"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"declared_setup"},"setupId":{"$ref":"#/$defs/0"},"setupName":{"type":"string","minLength":1,"maxLength":60},"values":{"type":"object","propertyNames":{"$ref":"#/$defs/4"},"additionalProperties":{"$ref":"#/$defs/5"}}},"required":["kind","values"],"additionalProperties":false}]},{"type":"null"}]}},"required":["testId","testVersionId","performedOn","timeZone","value"],"additionalProperties":false},"2":{"type":"string","minLength":1,"maxLength":160},"3":{"type":"string","minLength":1,"maxLength":240},"4":{"type":"string","pattern":"^[a-z][A-Za-z0-9]{0,47}$"},"5":{"anyOf":[{"type":"number","minimum":-999999,"maximum":999999},{"$ref":"#/$defs/3"}]},"6":{"type":"string","pattern":"^[a-f0-9]{64}$"},"7":{"type":"object","properties":{"kind":{"type":"string","const":"free_text"},"text":{"$ref":"#/$defs/3"}},"required":["kind","text"]},"8":{"type":"object","properties":{"kind":{"type":"string","const":"time"},"seconds":{"type":"integer","exclusiveMinimum":0,"maximum":7200}},"required":["kind","seconds"]},"9":{"type":"object","properties":{"kind":{"type":"string","const":"time_cap"},"rounds":{"$ref":"#/$defs/a"},"reps":{"$ref":"#/$defs/b"}},"required":["kind","rounds","reps"]},"a":{"type":"integer","minimum":0,"maximum":200},"b":{"type":"integer","minimum":0,"maximum":10000},"c":{"type":"object","properties":{"kind":{"type":"string","const":"rounds_reps"},"rounds":{"$ref":"#/$defs/a"},"reps":{"$ref":"#/$defs/b"}},"required":["kind","rounds","reps"]},"d":{"type":"object","properties":{"kind":{"type":"string","const":"reps"},"reps":{"$ref":"#/$defs/e"}},"required":["kind","reps"]},"e":{"type":"integer","exclusiveMinimum":0,"maximum":10000},"f":{"type":"object","properties":{"kind":{"type":"string","const":"weight"},"kilograms":{"type":"number","exclusiveMinimum":0,"maximum":1000}},"required":["kind","kilograms"]},"g":{"type":"object","properties":{"kind":{"type":"string","const":"calories"},"calories":{"$ref":"#/$defs/e"}},"required":["kind","calories"]},"h":{"type":"object","properties":{"kind":{"type":"string","const":"distance"},"meters":{"type":"number","exclusiveMinimum":0,"maximum":100000}},"required":["kind","meters"]},"i":{"type":"object","properties":{"kind":{"type":"string","const":"watts"},"watts":{"type":"integer","exclusiveMinimum":0,"maximum":3000}},"required":["kind","watts"]}}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["applied","simulated","unchanged","idempotent_replay"]},"refs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/0"}},"resources":{"type":"array","items":{"$ref":"#/$defs/0"}},"summary":{"$ref":"#/$defs/1"},"nativeUrl":{"type":"string"},"energy":{"type":"number","const":0},"program":{"type":"object","properties":{"id":{"$ref":"#/$defs/3"},"name":{"$ref":"#/$defs/4"},"step":{"$ref":"#/$defs/5"},"index":{"$ref":"#/$defs/6"},"total":{"$ref":"#/$defs/6"}},"required":["id","name","step","index","total"],"additionalProperties":false},"versions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"appliedAt":{"$ref":"#/$defs/7"},"undoUntil":{"$ref":"#/$defs/7"},"undoneAt":{"$ref":"#/$defs/7"},"undoOf":{"type":"string"},"undoUnavailableReason":{"type":"string"},"preview":{"$ref":"#/$defs/1"},"changes":{"$ref":"#/$defs/1"},"previewOmitted":{"type":"boolean"},"impact":{"type":"object","properties":{"objectsAffected":{"type":"number"},"workoutsDelta":{"type":"number"},"scheduledWorkoutsDelta":{"type":"number"},"reservesCapacity":{"type":"boolean","const":false}},"required":["objectsAffected","workoutsDelta","scheduledWorkoutsDelta","reservesCapacity"],"additionalProperties":{}}},"required":["id","requestId","status","refs","resources","summary","nativeUrl","energy"],"additionalProperties":{},"$defs":{"0":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"nativeUrl":{"type":"string"}},"required":["kind","id"],"additionalProperties":{}},"1":{"type":"array","items":{"$ref":"#/$defs/2"}},"2":{"type":"object","properties":{"action":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"before":{},"after":{}},"required":["action","count"],"additionalProperties":{}},"3":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"4":{"type":"string","minLength":1,"maxLength":80},"5":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"6":{"type":"integer","minimum":1,"maximum":28},"7":{"anyOf":[{"$ref":"#/$defs/8"},{"type":"null"}]},"8":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"minimumScopes":["actions:read","training:read","training:write"],"permissionChecksAtExecution":true}},"examples":{"calendar.create":{"type":"calendar.create","ref":"calendar","name":"Training programme","timelineType":"dated"},"workout.create":{"type":"workout.create","ref":"mobility","content":{"title":"Mobilité","blocks":[{"blockType":"warmup","contentText":"5 minutes de mobilité douce"}]}},"workout.update":{"type":"workout.update","workoutId":"11111111-1111-4111-8111-111111111111","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","expectedRevision":1,"patch":{"title":"Séance adaptée"}},"workout.duplicate":{"type":"workout.duplicate","workoutId":"11111111-1111-4111-8111-111111111111","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","ref":"copy","title":"Variante"},"workout.move":{"type":"workout.move","workoutId":"11111111-1111-4111-8111-111111111111","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","folderId":"11111111-1111-4111-8111-111111111111"},"workout.trash":{"type":"workout.trash","workoutId":"11111111-1111-4111-8111-111111111111","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"},"workout.restore":{"type":"workout.restore","workoutId":"11111111-1111-4111-8111-111111111111","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"},"folder.create":{"type":"folder.create","ref":"block","name":"Bloc mobilité"},"folder.update":{"type":"folder.update","folderId":"11111111-1111-4111-8111-111111111111","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","name":"Nouveau nom"},"folder.reorder":{"type":"folder.reorder","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","items":[{"folderId":"11111111-1111-4111-8111-111111111111","parentId":null,"sortOrder":0}]},"folder.trash":{"type":"folder.trash","folderId":"11111111-1111-4111-8111-111111111111","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","contentPolicy":"error_if_not_empty"},"folder.restore":{"type":"folder.restore","batchId":"11111111-1111-4111-8111-111111111111","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"},"planning.add":{"type":"planning.add","calendarId":"11111111-1111-4111-8111-111111111111","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","timezone":"Europe/Paris","position":1,"workoutId":"11111111-1111-4111-8111-111111111111","sourceVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","collision":"append"},"planning.update":{"type":"planning.update","calendarId":"11111111-1111-4111-8111-111111111111","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","timezone":"Europe/Paris","occurrenceId":"11111111-1111-4111-8111-111111111111","expectedRevision":1,"patch":{"title":"Séance adaptée"}},"planning.move":{"type":"planning.move","calendarId":"11111111-1111-4111-8111-111111111111","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","timezone":"Europe/Paris","occurrenceId":"11111111-1111-4111-8111-111111111111","position":2},"planning.reorder":{"type":"planning.reorder","calendarId":"11111111-1111-4111-8111-111111111111","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","timezone":"Europe/Paris","occurrenceId":"11111111-1111-4111-8111-111111111111","beforeItemId":null},"planning.swap":{"type":"planning.swap","calendarId":"11111111-1111-4111-8111-111111111111","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","timezone":"Europe/Paris","occurrenceId":"11111111-1111-4111-8111-111111111111","otherOccurrenceId":"22222222-2222-4222-8222-222222222222"},"planning.copy":{"type":"planning.copy","calendarId":"11111111-1111-4111-8111-111111111111","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","timezone":"Europe/Paris","from":1,"to":7,"contentKinds":["workouts"],"target":8},"planning.shift":{"type":"planning.shift","calendarId":"11111111-1111-4111-8111-111111111111","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","timezone":"Europe/Paris","from":1,"to":7,"contentKinds":["workouts"],"days":7},"planning.remove":{"type":"planning.remove","calendarId":"11111111-1111-4111-8111-111111111111","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","timezone":"Europe/Paris","occurrenceId":"11111111-1111-4111-8111-111111111111"},"planning.note":{"type":"planning.note","calendarId":"11111111-1111-4111-8111-111111111111","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","timezone":"Europe/Paris","position":1,"body":"Récupération active","isPublic":false},"planning.edit_note":{"type":"planning.edit_note","calendarId":"11111111-1111-4111-8111-111111111111","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","timezone":"Europe/Paris","entryId":"11111111-1111-4111-8111-111111111111","body":"Mobilité légère","isPublic":false},"planning.remove_note":{"type":"planning.remove_note","calendarId":"11111111-1111-4111-8111-111111111111","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","timezone":"Europe/Paris","entryId":"11111111-1111-4111-8111-111111111111"},"planning.rest":{"type":"planning.rest","calendarId":"11111111-1111-4111-8111-111111111111","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","timezone":"Europe/Paris","positions":[7]},"planning.remove_rest":{"type":"planning.remove_rest","calendarId":"11111111-1111-4111-8111-111111111111","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","timezone":"Europe/Paris","positions":[7]},"cycle.create":{"type":"cycle.create","calendarId":"11111111-1111-4111-8111-111111111111","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","timezone":"Europe/Paris","name":"Cycle","color":"#C7151F","from":1,"to":28,"ref":"cycle"},"cycle.update":{"type":"cycle.update","calendarId":"11111111-1111-4111-8111-111111111111","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","timezone":"Europe/Paris","name":"Cycle","color":"#C7151F","from":1,"to":28,"cycleId":"11111111-1111-4111-8111-111111111111"},"cycle.delete":{"type":"cycle.delete","calendarId":"11111111-1111-4111-8111-111111111111","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","timezone":"Europe/Paris","cycleId":"11111111-1111-4111-8111-111111111111"},"template.create":{"type":"template.create","ref":"week","name":"Ma semaine"},"template.update":{"type":"template.update","templateId":"11111111-1111-4111-8111-111111111111","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","patch":{"name":"Semaine adaptée"}},"template.add_workout":{"type":"template.add_workout","templateId":"11111111-1111-4111-8111-111111111111","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","workoutId":"11111111-1111-4111-8111-111111111111","sourceVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","day":1},"template.move_workout":{"type":"template.move_workout","templateId":"11111111-1111-4111-8111-111111111111","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","itemId":"11111111-1111-4111-8111-111111111111","day":2},"template.remove_workout":{"type":"template.remove_workout","templateId":"11111111-1111-4111-8111-111111111111","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","itemId":"11111111-1111-4111-8111-111111111111"},"template.delete":{"type":"template.delete","templateId":"11111111-1111-4111-8111-111111111111","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"},"planning.apply_template":{"type":"planning.apply_template","calendarId":"11111111-1111-4111-8111-111111111111","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","timezone":"Europe/Paris","templateId":"11111111-1111-4111-8111-111111111111","templateVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","position":1},"preferences.update":{"type":"preferences.update","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","changes":[{"path":["simpleGoal"],"before":null,"value":"Améliorer mon endurance"}]},"settings.update":{"type":"settings.update","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","patch":{"notifications":{"product":false}}},"training.performance.create":{"type":"training.performance.create","exerciseId":"11111111-1111-4111-8111-111111111111","input":{"testId":"11111111-1111-4111-8111-111111111111","testVersionId":"11111111-1111-4111-8111-111111111111","performedOn":"2026-10-01","timeZone":"Europe/Paris","value":60,"repetitions":3}},"training.performance.update":{"type":"training.performance.update","exerciseId":"11111111-1111-4111-8111-111111111111","performanceId":"11111111-1111-4111-8111-111111111111","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","input":{"testId":"11111111-1111-4111-8111-111111111111","testVersionId":"11111111-1111-4111-8111-111111111111","performedOn":"2026-10-01","timeZone":"Europe/Paris","value":60,"repetitions":3}},"training.result.upsert":{"type":"training.result.upsert","subjectKind":"workout","subjectId":"11111111-1111-4111-8111-111111111111","blockId":"11111111-1111-4111-8111-111111111111","expectedVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","score":{"kind":"reps","reps":40}}},"supportedProtocolVersions":["2026-07-28","2025-11-25","2025-06-18","2025-03-26"],"permissionChecksAtExecution":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"$ref":"#/$defs/__schema0"},"requestId":{"$ref":"#/$defs/__schema1"},"actions":{"$ref":"#/$defs/__schema2"},"program":{"$ref":"#/$defs/__schema70"}},"required":["schemaVersion","requestId","actions"],"additionalProperties":false,"$defs":{"__schema0":{"type":"number","const":2},"__schema1":{"type":"string","pattern":"^v2\\.[0-9]{13}\\.[A-Za-z0-9_-]{16,64}$"},"__schema2":{"minItems":1,"maxItems":10,"type":"array","items":{"$ref":"#/$defs/__schema3"}},"__schema3":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"calendar.create"},"ref":{"$ref":"#/$defs/__schema4"},"name":{"type":"string","minLength":1,"maxLength":30},"timelineType":{"default":"dated","type":"string","enum":["dated","fixed"]},"durationWeeks":{"anyOf":[{"type":"integer","minimum":1,"maximum":52},{"type":"null"}]},"description":{"$ref":"#/$defs/__schema5"}},"required":["type","ref","name"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"training.performance.create"},"exerciseId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"input":{"$ref":"#/$defs/__schema6"},"ref":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_-]{0,39}$"}},"required":["type","exerciseId","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"training.performance.update"},"exerciseId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"performanceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"expectedVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"},"input":{"$ref":"#/$defs/__schema6"}},"required":["type","exerciseId","performanceId","expectedVersion","input"],"additionalProperties":false},{"type":"object","properties":{"subjectKind":{"type":"string","enum":["workout","scheduled_workout"]},"subjectId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"blockId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"type":{"type":"string","const":"training.result.upsert"},"expectedVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"},"score":{"oneOf":[{"$ref":"#/$defs/__schema10"},{"$ref":"#/$defs/__schema11"},{"$ref":"#/$defs/__schema12"},{"$ref":"#/$defs/__schema13"},{"$ref":"#/$defs/__schema14"},{"$ref":"#/$defs/__schema15"},{"$ref":"#/$defs/__schema16"},{"$ref":"#/$defs/__schema17"},{"$ref":"#/$defs/__schema18"}]},"division":{"type":"string","enum":["rx","scaled","none"]}},"required":["subjectKind","subjectId","blockId","type","expectedVersion","score"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"preferences.update"},"expectedVersion":{"$ref":"#/$defs/__schema19"},"changes":{"minItems":1,"maxItems":20,"type":"array","items":{"$ref":"#/$defs/__schema20"}}},"required":["type","expectedVersion","changes"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"settings.update"},"expectedVersion":{"$ref":"#/$defs/__schema19"},"patch":{"type":"object","properties":{"display":{"$ref":"#/$defs/__schema24"},"notifications":{"$ref":"#/$defs/__schema26"}},"additionalProperties":false}},"required":["type","expectedVersion","patch"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"workout.create"},"ref":{"$ref":"#/$defs/__schema4"},"content":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":50},"discipline":{"default":null,"anyOf":[{"type":"string","minLength":1,"maxLength":20},{"type":"null"}]},"requiredEquipment":{"default":[],"maxItems":10,"type":"array","items":{"$ref":"#/$defs/__schema27"}},"blocks":{"minItems":1,"maxItems":12,"type":"array","items":{"$ref":"#/$defs/__schema28"}},"totalDurationMinutes":{"anyOf":[{"type":"integer","minimum":0,"maximum":10080},{"type":"null"}]},"tags":{"maxItems":5,"type":"array","items":{"$ref":"#/$defs/__schema31"}}},"required":["title","blocks"],"additionalProperties":false},"folderId":{"$ref":"#/$defs/__schema32"},"folderRef":{"$ref":"#/$defs/__schema34"}},"required":["type","ref","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"workout.update"},"workoutId":{"$ref":"#/$defs/__schema33"},"expectedVersion":{"$ref":"#/$defs/__schema19"},"expectedRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"patch":{"$ref":"#/$defs/__schema35"}},"required":["type","workoutId","expectedVersion","expectedRevision","patch"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"workout.duplicate"},"workoutId":{"$ref":"#/$defs/__schema33"},"expectedVersion":{"$ref":"#/$defs/__schema19"},"ref":{"$ref":"#/$defs/__schema4"},"title":{"type":"string","minLength":1,"maxLength":50},"folderId":{"$ref":"#/$defs/__schema32"},"folderRef":{"$ref":"#/$defs/__schema34"}},"required":["type","workoutId","expectedVersion","ref"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"workout.move"},"workoutId":{"$ref":"#/$defs/__schema33"},"expectedVersion":{"$ref":"#/$defs/__schema19"},"folderId":{"$ref":"#/$defs/__schema32"},"folderRef":{"$ref":"#/$defs/__schema34"}},"required":["type","workoutId","expectedVersion"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"workout.trash"},"workoutId":{"$ref":"#/$defs/__schema33"},"expectedVersion":{"$ref":"#/$defs/__schema19"}},"required":["type","workoutId","expectedVersion"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"workout.restore"},"workoutId":{"$ref":"#/$defs/__schema33"},"expectedVersion":{"$ref":"#/$defs/__schema19"}},"required":["type","workoutId","expectedVersion"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"folder.create"},"ref":{"$ref":"#/$defs/__schema4"},"name":{"type":"string","minLength":1,"maxLength":80},"parentId":{"anyOf":[{"$ref":"#/$defs/__schema33"},{"type":"null"}]},"parentRef":{"$ref":"#/$defs/__schema4"},"color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"null"}]}},"required":["type","ref","name"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"folder.update"},"folderId":{"$ref":"#/$defs/__schema33"},"expectedVersion":{"$ref":"#/$defs/__schema19"},"name":{"type":"string","minLength":1,"maxLength":80},"parentId":{"anyOf":[{"$ref":"#/$defs/__schema33"},{"type":"null"}]},"color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"null"}]}},"required":["type","folderId","expectedVersion"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"folder.reorder"},"expectedVersion":{"$ref":"#/$defs/__schema19"},"items":{"minItems":1,"maxItems":50,"type":"array","items":{"$ref":"#/$defs/__schema45"}}},"required":["type","expectedVersion","items"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"folder.trash"},"folderId":{"$ref":"#/$defs/__schema33"},"expectedVersion":{"$ref":"#/$defs/__schema19"},"contentPolicy":{"default":"error_if_not_empty","type":"string","enum":["error_if_not_empty","trash_contents","move_contents"]},"destinationFolderId":{"anyOf":[{"$ref":"#/$defs/__schema33"},{"type":"null"}]}},"required":["type","folderId","expectedVersion"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"folder.restore"},"batchId":{"$ref":"#/$defs/__schema33"},"expectedVersion":{"$ref":"#/$defs/__schema19"}},"required":["type","batchId","expectedVersion"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.add"},"calendarId":{"$ref":"#/$defs/__schema46"},"calendarRef":{"$ref":"#/$defs/__schema47"},"expectedVersion":{"$ref":"#/$defs/__schema48"},"timezone":{"$ref":"#/$defs/__schema49"},"ref":{"$ref":"#/$defs/__schema4"},"workoutId":{"$ref":"#/$defs/__schema33"},"sourceVersion":{"$ref":"#/$defs/__schema19"},"workoutRef":{"$ref":"#/$defs/__schema4"},"position":{"$ref":"#/$defs/__schema50"},"beforeItemId":{"anyOf":[{"$ref":"#/$defs/__schema33"},{"type":"null"}]},"collision":{"default":"error","type":"string","enum":["error","append"]}},"required":["type","timezone","position"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.update"},"calendarId":{"$ref":"#/$defs/__schema46"},"calendarRef":{"$ref":"#/$defs/__schema47"},"expectedVersion":{"$ref":"#/$defs/__schema48"},"timezone":{"$ref":"#/$defs/__schema49"},"occurrenceId":{"$ref":"#/$defs/__schema33"},"expectedRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"patch":{"$ref":"#/$defs/__schema35"}},"required":["type","timezone","occurrenceId","expectedRevision","patch"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.move"},"calendarId":{"$ref":"#/$defs/__schema46"},"calendarRef":{"$ref":"#/$defs/__schema47"},"expectedVersion":{"$ref":"#/$defs/__schema48"},"timezone":{"$ref":"#/$defs/__schema49"},"occurrenceId":{"$ref":"#/$defs/__schema33"},"targetCalendarId":{"$ref":"#/$defs/__schema51"},"targetVersion":{"$ref":"#/$defs/__schema52"},"collision":{"$ref":"#/$defs/__schema53"},"position":{"$ref":"#/$defs/__schema50"},"beforeItemId":{"anyOf":[{"$ref":"#/$defs/__schema33"},{"type":"null"}]}},"required":["type","timezone","occurrenceId","position"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.reorder"},"calendarId":{"$ref":"#/$defs/__schema46"},"calendarRef":{"$ref":"#/$defs/__schema47"},"expectedVersion":{"$ref":"#/$defs/__schema48"},"timezone":{"$ref":"#/$defs/__schema49"},"occurrenceId":{"$ref":"#/$defs/__schema33"},"beforeItemId":{"anyOf":[{"$ref":"#/$defs/__schema33"},{"type":"null"}]}},"required":["type","timezone","occurrenceId","beforeItemId"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.swap"},"calendarId":{"$ref":"#/$defs/__schema46"},"calendarRef":{"$ref":"#/$defs/__schema47"},"expectedVersion":{"$ref":"#/$defs/__schema48"},"timezone":{"$ref":"#/$defs/__schema49"},"occurrenceId":{"$ref":"#/$defs/__schema33"},"otherOccurrenceId":{"$ref":"#/$defs/__schema33"}},"required":["type","timezone","occurrenceId","otherOccurrenceId"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.copy"},"calendarId":{"$ref":"#/$defs/__schema46"},"calendarRef":{"$ref":"#/$defs/__schema47"},"expectedVersion":{"$ref":"#/$defs/__schema48"},"timezone":{"$ref":"#/$defs/__schema49"},"from":{"$ref":"#/$defs/__schema50"},"to":{"$ref":"#/$defs/__schema50"},"contentKinds":{"$ref":"#/$defs/__schema54"},"targetCalendarId":{"$ref":"#/$defs/__schema51"},"targetVersion":{"$ref":"#/$defs/__schema52"},"collision":{"$ref":"#/$defs/__schema53"},"target":{"$ref":"#/$defs/__schema50"}},"required":["type","timezone","from","to","contentKinds","target"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.shift"},"calendarId":{"$ref":"#/$defs/__schema46"},"calendarRef":{"$ref":"#/$defs/__schema47"},"expectedVersion":{"$ref":"#/$defs/__schema48"},"timezone":{"$ref":"#/$defs/__schema49"},"from":{"$ref":"#/$defs/__schema50"},"to":{"$ref":"#/$defs/__schema50"},"contentKinds":{"$ref":"#/$defs/__schema54"},"targetCalendarId":{"$ref":"#/$defs/__schema51"},"targetVersion":{"$ref":"#/$defs/__schema52"},"collision":{"$ref":"#/$defs/__schema53"},"days":{"type":"integer","minimum":-366,"maximum":366}},"required":["type","timezone","from","to","contentKinds","days"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.remove"},"calendarId":{"$ref":"#/$defs/__schema46"},"calendarRef":{"$ref":"#/$defs/__schema47"},"expectedVersion":{"$ref":"#/$defs/__schema48"},"timezone":{"$ref":"#/$defs/__schema49"},"occurrenceId":{"$ref":"#/$defs/__schema33"}},"required":["type","timezone","occurrenceId"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.note"},"calendarId":{"$ref":"#/$defs/__schema46"},"calendarRef":{"$ref":"#/$defs/__schema47"},"expectedVersion":{"$ref":"#/$defs/__schema48"},"timezone":{"$ref":"#/$defs/__schema49"},"position":{"$ref":"#/$defs/__schema50"},"ref":{"$ref":"#/$defs/__schema4"},"body":{"type":"string","minLength":1,"maxLength":2000},"color":{"$ref":"#/$defs/__schema56"},"isPublic":{"type":"boolean"}},"required":["type","timezone","position","body","isPublic"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.edit_note"},"calendarId":{"$ref":"#/$defs/__schema46"},"calendarRef":{"$ref":"#/$defs/__schema47"},"expectedVersion":{"$ref":"#/$defs/__schema48"},"timezone":{"$ref":"#/$defs/__schema49"},"entryId":{"$ref":"#/$defs/__schema33"},"body":{"type":"string","minLength":1,"maxLength":2000},"color":{"$ref":"#/$defs/__schema56"},"isPublic":{"type":"boolean"}},"required":["type","timezone","entryId","body","isPublic"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.remove_note"},"calendarId":{"$ref":"#/$defs/__schema46"},"calendarRef":{"$ref":"#/$defs/__schema47"},"expectedVersion":{"$ref":"#/$defs/__schema48"},"timezone":{"$ref":"#/$defs/__schema49"},"entryId":{"$ref":"#/$defs/__schema33"}},"required":["type","timezone","entryId"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.rest"},"calendarId":{"$ref":"#/$defs/__schema46"},"calendarRef":{"$ref":"#/$defs/__schema47"},"expectedVersion":{"$ref":"#/$defs/__schema48"},"timezone":{"$ref":"#/$defs/__schema49"},"positions":{"minItems":1,"maxItems":28,"type":"array","items":{"$ref":"#/$defs/__schema50"}}},"required":["type","timezone","positions"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.remove_rest"},"calendarId":{"$ref":"#/$defs/__schema46"},"calendarRef":{"$ref":"#/$defs/__schema47"},"expectedVersion":{"$ref":"#/$defs/__schema48"},"timezone":{"$ref":"#/$defs/__schema49"},"positions":{"minItems":1,"maxItems":28,"type":"array","items":{"$ref":"#/$defs/__schema50"}}},"required":["type","timezone","positions"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"cycle.create"},"calendarId":{"$ref":"#/$defs/__schema46"},"calendarRef":{"$ref":"#/$defs/__schema47"},"expectedVersion":{"$ref":"#/$defs/__schema48"},"timezone":{"$ref":"#/$defs/__schema49"},"name":{"$ref":"#/$defs/__schema57"},"color":{"$ref":"#/$defs/__schema58"},"from":{"$ref":"#/$defs/__schema50"},"to":{"$ref":"#/$defs/__schema50"},"brief":{"$ref":"#/$defs/__schema59"},"disciplineMode":{"$ref":"#/$defs/__schema60"},"disciplines":{"$ref":"#/$defs/__schema61"},"ref":{"$ref":"#/$defs/__schema4"}},"required":["type","timezone","name","color","from","to"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"cycle.update"},"calendarId":{"$ref":"#/$defs/__schema46"},"calendarRef":{"$ref":"#/$defs/__schema47"},"expectedVersion":{"$ref":"#/$defs/__schema48"},"timezone":{"$ref":"#/$defs/__schema49"},"name":{"$ref":"#/$defs/__schema57"},"color":{"$ref":"#/$defs/__schema58"},"from":{"$ref":"#/$defs/__schema50"},"to":{"$ref":"#/$defs/__schema50"},"brief":{"$ref":"#/$defs/__schema59"},"disciplineMode":{"$ref":"#/$defs/__schema60"},"disciplines":{"$ref":"#/$defs/__schema61"},"cycleId":{"$ref":"#/$defs/__schema33"}},"required":["type","timezone","name","color","from","to","cycleId"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"cycle.delete"},"calendarId":{"$ref":"#/$defs/__schema46"},"calendarRef":{"$ref":"#/$defs/__schema47"},"expectedVersion":{"$ref":"#/$defs/__schema48"},"timezone":{"$ref":"#/$defs/__schema49"},"cycleId":{"$ref":"#/$defs/__schema33"}},"required":["type","timezone","cycleId"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"template.create"},"ref":{"$ref":"#/$defs/__schema4"},"name":{"type":"string","minLength":1,"maxLength":30},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"color":{"$ref":"#/$defs/__schema56"}},"required":["type","ref","name"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"template.update"},"templateId":{"$ref":"#/$defs/__schema63"},"templateRef":{"$ref":"#/$defs/__schema64"},"expectedVersion":{"$ref":"#/$defs/__schema65"},"patch":{"type":"object","properties":{"name":{"$ref":"#/$defs/__schema66"},"description":{"$ref":"#/$defs/__schema67"},"color":{"$ref":"#/$defs/__schema68"},"entryChange":{"$ref":"#/$defs/__schema69"}},"additionalProperties":false}},"required":["type","patch"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"template.add_workout"},"templateId":{"$ref":"#/$defs/__schema63"},"templateRef":{"$ref":"#/$defs/__schema64"},"expectedVersion":{"$ref":"#/$defs/__schema65"},"workoutId":{"$ref":"#/$defs/__schema33"},"workoutRef":{"$ref":"#/$defs/__schema4"},"sourceVersion":{"$ref":"#/$defs/__schema19"},"day":{"type":"integer","minimum":1,"maximum":7}},"required":["type","day"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"template.move_workout"},"templateId":{"$ref":"#/$defs/__schema63"},"templateRef":{"$ref":"#/$defs/__schema64"},"expectedVersion":{"$ref":"#/$defs/__schema65"},"itemId":{"$ref":"#/$defs/__schema33"},"day":{"type":"integer","minimum":1,"maximum":7},"sortOrder":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["type","itemId","day"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"template.remove_workout"},"templateId":{"$ref":"#/$defs/__schema63"},"templateRef":{"$ref":"#/$defs/__schema64"},"expectedVersion":{"$ref":"#/$defs/__schema65"},"itemId":{"$ref":"#/$defs/__schema33"}},"required":["type","itemId"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"template.delete"},"templateId":{"$ref":"#/$defs/__schema63"},"templateRef":{"$ref":"#/$defs/__schema64"},"expectedVersion":{"$ref":"#/$defs/__schema65"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"planning.apply_template"},"calendarId":{"$ref":"#/$defs/__schema46"},"calendarRef":{"$ref":"#/$defs/__schema47"},"expectedVersion":{"$ref":"#/$defs/__schema48"},"timezone":{"$ref":"#/$defs/__schema49"},"templateId":{"$ref":"#/$defs/__schema33"},"templateVersion":{"$ref":"#/$defs/__schema19"},"position":{"$ref":"#/$defs/__schema50"},"collision":{"default":"error","type":"string","enum":["error","append"]}},"required":["type","timezone","templateId","templateVersion","position"],"additionalProperties":false}]},"__schema4":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$"},"__schema5":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"__schema6":{"type":"object","properties":{"testId":{"$ref":"#/$defs/__schema7"},"testVersionId":{"$ref":"#/$defs/__schema7"},"performedOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"timeZone":{"type":"string","minLength":1,"maxLength":100},"value":{"type":["string","number"]},"repetitions":{"default":null,"anyOf":[{"type":"integer","minimum":1,"maximum":10},{"type":"null"}]},"configuration":{"default":null,"anyOf":[{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"machine"},"machineModel":{"type":"string","minLength":1,"maxLength":160},"machineSettings":{"type":"string","minLength":1,"maxLength":160},"assistanceKg":{"type":"number","minimum":0,"maximum":999}},"required":["kind","machineModel","machineSettings","assistanceKg"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"band"},"bandIdentification":{"type":"string","minLength":1,"maxLength":160},"anchorAndLimbSetup":{"type":"string","minLength":1,"maxLength":240}},"required":["kind","bandIdentification","anchorAndLimbSetup"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"declared_setup"},"setupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"setupName":{"type":"string","minLength":1,"maxLength":60},"values":{"type":"object","propertyNames":{"$ref":"#/$defs/__schema8"},"additionalProperties":{"$ref":"#/$defs/__schema9"}}},"required":["kind","values"],"additionalProperties":false}]},{"type":"null"}]}},"required":["testId","testVersionId","performedOn","timeZone","value"],"additionalProperties":false},"__schema7":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"__schema8":{"type":"string","pattern":"^[a-z][A-Za-z0-9]{0,47}$"},"__schema9":{"anyOf":[{"type":"number","minimum":-999999,"maximum":999999},{"type":"string","minLength":1,"maxLength":240}]},"__schema10":{"type":"object","properties":{"kind":{"type":"string","const":"free_text"},"text":{"type":"string","minLength":1,"maxLength":240}},"required":["kind","text"]},"__schema11":{"type":"object","properties":{"kind":{"type":"string","const":"time"},"seconds":{"type":"integer","exclusiveMinimum":0,"maximum":7200}},"required":["kind","seconds"]},"__schema12":{"type":"object","properties":{"kind":{"type":"string","const":"time_cap"},"rounds":{"type":"integer","minimum":0,"maximum":200},"reps":{"type":"integer","minimum":0,"maximum":10000}},"required":["kind","rounds","reps"]},"__schema13":{"type":"object","properties":{"kind":{"type":"string","const":"rounds_reps"},"rounds":{"type":"integer","minimum":0,"maximum":200},"reps":{"type":"integer","minimum":0,"maximum":10000}},"required":["kind","rounds","reps"]},"__schema14":{"type":"object","properties":{"kind":{"type":"string","const":"reps"},"reps":{"type":"integer","exclusiveMinimum":0,"maximum":10000}},"required":["kind","reps"]},"__schema15":{"type":"object","properties":{"kind":{"type":"string","const":"weight"},"kilograms":{"type":"number","exclusiveMinimum":0,"maximum":1000}},"required":["kind","kilograms"]},"__schema16":{"type":"object","properties":{"kind":{"type":"string","const":"calories"},"calories":{"type":"integer","exclusiveMinimum":0,"maximum":10000}},"required":["kind","calories"]},"__schema17":{"type":"object","properties":{"kind":{"type":"string","const":"distance"},"meters":{"type":"number","exclusiveMinimum":0,"maximum":100000}},"required":["kind","meters"]},"__schema18":{"type":"object","properties":{"kind":{"type":"string","const":"watts"},"watts":{"type":"integer","exclusiveMinimum":0,"maximum":3000}},"required":["kind","watts"]},"__schema19":{"type":"string","pattern":"^[a-f0-9]{64}$"},"__schema20":{"type":"object","properties":{"path":{"minItems":1,"maxItems":8,"type":"array","items":{"$ref":"#/$defs/__schema21"}},"before":{"$ref":"#/$defs/__schema22"},"value":{"$ref":"#/$defs/__schema23"}},"required":["path","before","value"],"additionalProperties":false},"__schema21":{"type":"string","minLength":1,"maxLength":80},"__schema22":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema22"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema22"}}]},"__schema23":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema23"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema23"}}]},"__schema24":{"type":"object","properties":{"interfaceLanguage":{"type":"string","enum":["en","fr"]},"unitPreferences":{"type":"object","properties":{"measurementSystem":{"type":"string","enum":["metric","imperial"]},"weightUnit":{"type":"string","enum":["kg","lb"]},"terminologyStyle":{"type":"string","enum":["full","short"]},"dateFormat":{"type":"string","enum":["day/month/year","month/day/year"]},"resultLevelSelection":{"$ref":"#/$defs/__schema25"}},"additionalProperties":false}},"additionalProperties":false},"__schema25":{"type":"string","enum":["rx_scaled","none"]},"__schema26":{"type":"object","properties":{"energy":{"type":"boolean"},"follows":{"type":"boolean"},"product":{"type":"boolean"},"messages":{"type":"boolean"},"messageRequests":{"type":"boolean"}},"additionalProperties":false},"__schema27":{"type":"string","minLength":1,"maxLength":20},"__schema28":{"type":"object","properties":{"title":{"default":null,"anyOf":[{"type":"string","minLength":1,"maxLength":50},{"type":"null"}]},"blockType":{"type":"string","minLength":1,"maxLength":50},"durationMinutes":{"default":null,"anyOf":[{"type":"integer","minimum":0,"maximum":1440},{"type":"null"}]},"contentText":{"default":"","type":"string","maxLength":4000},"nodes":{"$ref":"#/$defs/__schema29"},"levelSelection":{"$ref":"#/$defs/__schema25"},"scoringType":{"default":"free_text","type":"string","enum":["free_text","time","rounds_reps","reps","weight","calories","distance","watts"]}},"required":["blockType"],"additionalProperties":false},"__schema29":{"maxItems":128,"type":"array","items":{"$ref":"#/$defs/__schema30"}},"__schema30":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string","minLength":1,"maxLength":4000}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"lineBreak"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"exercise"},"exerciseId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"label":{"type":"string","minLength":1,"maxLength":160},"locale":{"type":"string","enum":["fr","en"]}},"required":["type","exerciseId","label","locale"],"additionalProperties":false}]},"__schema31":{"type":"string","minLength":1,"maxLength":20},"__schema32":{"anyOf":[{"$ref":"#/$defs/__schema33"},{"type":"null"}]},"__schema33":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"__schema34":{"$ref":"#/$defs/__schema4"},"__schema35":{"type":"object","properties":{"title":{"$ref":"#/$defs/__schema36"},"discipline":{"$ref":"#/$defs/__schema37"},"totalDurationMinutes":{"$ref":"#/$defs/__schema38"},"requiredEquipment":{"$ref":"#/$defs/__schema39"},"tags":{"$ref":"#/$defs/__schema41"},"blocks":{"$ref":"#/$defs/__schema43"}},"additionalProperties":false},"__schema36":{"type":"string","minLength":1,"maxLength":50},"__schema37":{"anyOf":[{"type":"string","minLength":1,"maxLength":20},{"type":"null"}]},"__schema38":{"anyOf":[{"type":"integer","minimum":0,"maximum":10080},{"type":"null"}]},"__schema39":{"maxItems":10,"type":"array","items":{"$ref":"#/$defs/__schema40"}},"__schema40":{"type":"string","minLength":1,"maxLength":20},"__schema41":{"maxItems":5,"type":"array","items":{"$ref":"#/$defs/__schema42"}},"__schema42":{"type":"string","minLength":1,"maxLength":20},"__schema43":{"maxItems":30,"type":"array","items":{"$ref":"#/$defs/__schema44"}},"__schema44":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"insert"},"index":{"type":"integer","minimum":0,"maximum":11},"block":{"$ref":"#/$defs/__schema28"}},"required":["type","index","block"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"update"},"blockId":{"$ref":"#/$defs/__schema33"},"patch":{"type":"object","properties":{"title":{"anyOf":[{"type":"string","minLength":1,"maxLength":50},{"type":"null"}]},"blockType":{"type":"string","minLength":1,"maxLength":50},"durationMinutes":{"anyOf":[{"type":"integer","minimum":0,"maximum":1440},{"type":"null"}]},"contentText":{"type":"string","maxLength":4000},"nodes":{"$ref":"#/$defs/__schema29"},"scoringType":{"type":"string","enum":["free_text","time","rounds_reps","reps","weight","calories","distance","watts"]}},"additionalProperties":false}},"required":["type","blockId","patch"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"remove"},"blockId":{"$ref":"#/$defs/__schema33"}},"required":["type","blockId"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"move"},"blockId":{"$ref":"#/$defs/__schema33"},"index":{"type":"integer","minimum":0,"maximum":11}},"required":["type","blockId","index"],"additionalProperties":false}]},"__schema45":{"type":"object","properties":{"folderId":{"$ref":"#/$defs/__schema33"},"parentId":{"anyOf":[{"$ref":"#/$defs/__schema33"},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["folderId","parentId","sortOrder"],"additionalProperties":false},"__schema46":{"default":"00000000-0000-4000-8000-000000000000","$ref":"#/$defs/__schema33"},"__schema47":{"description":"Earlier batch calendar; omit calendarId/expectedVersion.","$ref":"#/$defs/__schema4"},"__schema48":{"default":"0000000000000000000000000000000000000000000000000000000000000000","$ref":"#/$defs/__schema19"},"__schema49":{"type":"string","minLength":1,"maxLength":80},"__schema50":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"integer","minimum":1,"maximum":9007199254740991}]},"__schema51":{"$ref":"#/$defs/__schema33"},"__schema52":{"$ref":"#/$defs/__schema19"},"__schema53":{"default":"error","type":"string","enum":["error","append"]},"__schema54":{"minItems":1,"maxItems":3,"type":"array","items":{"$ref":"#/$defs/__schema55"}},"__schema55":{"type":"string","enum":["workouts","notes","rest"]},"__schema56":{"anyOf":[{"type":"string","enum":["#64748b","#C7151F","#ef4444","#f97316","#eab308","#22c55e","#14b8a6","#3b82f6","#8b5cf6","#ec4899"]},{"type":"null"}]},"__schema57":{"type":"string","minLength":1,"maxLength":80},"__schema58":{"type":"string","enum":["#64748b","#C7151F","#ef4444","#f97316","#eab308","#22c55e","#14b8a6","#3b82f6","#8b5cf6","#ec4899","#E53935","#F97316","#F59E0B","#65A30D","#0D9488","#0284C7","#3367D6","#7C3AED","#DB2777","#6B7280"]},"__schema59":{"anyOf":[{"type":"string","minLength":1,"maxLength":1000},{"type":"null"}]},"__schema60":{"default":"all","type":"string","enum":["all","selected"]},"__schema61":{"default":[],"maxItems":100,"type":"array","items":{"$ref":"#/$defs/__schema62"}},"__schema62":{"type":"string","minLength":1,"maxLength":20},"__schema63":{"$ref":"#/$defs/__schema33"},"__schema64":{"$ref":"#/$defs/__schema4"},"__schema65":{"$ref":"#/$defs/__schema19"},"__schema66":{"type":"string","minLength":1,"maxLength":30},"__schema67":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"__schema68":{"$ref":"#/$defs/__schema56"},"__schema69":{"oneOf":[{"type":"object","properties":{"action":{"type":"string","const":"save"},"entry":{"type":"object","properties":{"id":{"$ref":"#/$defs/__schema33"},"day":{"type":"integer","minimum":1,"maximum":7},"kind":{"type":"string","enum":["note","rest"]},"body":{"type":"string","maxLength":2000},"color":{"default":null,"$ref":"#/$defs/__schema56"},"isPublic":{"type":"boolean"},"sortOrder":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["id","day","kind","body","isPublic"],"additionalProperties":false}},"required":["action","entry"],"additionalProperties":false},{"type":"object","properties":{"action":{"type":"string","const":"delete"},"id":{"$ref":"#/$defs/__schema33"}},"required":["action","id"],"additionalProperties":false},{"type":"object","properties":{"action":{"type":"string","const":"rest"},"id":{"$ref":"#/$defs/__schema33"},"day":{"type":"integer","minimum":1,"maximum":7},"enabled":{"type":"boolean"}},"required":["action","id","day","enabled"],"additionalProperties":false}]},"__schema70":{"type":"object","properties":{"id":{"$ref":"#/$defs/__schema33"},"name":{"$ref":"#/$defs/__schema71"},"step":{"$ref":"#/$defs/__schema4"},"index":{"$ref":"#/$defs/__schema72"},"total":{"$ref":"#/$defs/__schema73"}},"required":["id","name","step","index","total"],"additionalProperties":false},"__schema71":{"type":"string","minLength":1,"maxLength":80},"__schema72":{"type":"integer","minimum":1,"maximum":28},"__schema73":{"type":"integer","minimum":1,"maximum":28}}}}