technicallyfit 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2893 @@
1
+ # Generated by scripts/generate-sdks.mjs from packages/contracts/openapi.public.json.
2
+ # Do not edit by hand: run `npm run sdk:generate` at the repository root.
3
+
4
+ """Typed shapes of every request, response and webhook payload in the public spec."""
5
+
6
+ from __future__ import annotations
7
+
8
+ from typing import Any, Literal, NotRequired, TypedDict, Union
9
+
10
+ AcceptProposalRequest = TypedDict(
11
+ "AcceptProposalRequest",
12
+ {
13
+ "coach_id": "str",
14
+ },
15
+ )
16
+
17
+ AdaptationPresetsResponse = TypedDict(
18
+ "AdaptationPresetsResponse",
19
+ {
20
+ "presets": "list[dict[str, Any]]",
21
+ },
22
+ )
23
+
24
+ AdaptationProfileResponse = TypedDict(
25
+ "AdaptationProfileResponse",
26
+ {
27
+ "enabled": "bool",
28
+ "policy": "str",
29
+ "preset": "str",
30
+ "presets": "list[dict[str, Any]]",
31
+ "triggers": "list[dict[str, Any]]",
32
+ "updated_at": "str | None",
33
+ "updated_by": "dict[str, Any]",
34
+ },
35
+ )
36
+
37
+ AppConfigFeatures = TypedDict(
38
+ "AppConfigFeatures",
39
+ {
40
+ "coaches": "bool",
41
+ "programs": "bool",
42
+ "visit_check_ins": "bool",
43
+ },
44
+ )
45
+
46
+ AppConfig = TypedDict(
47
+ "AppConfig",
48
+ {
49
+ "accent_color": "str",
50
+ "display_name": "str",
51
+ "features": "AppConfigFeatures",
52
+ "gym_handle": "str | None",
53
+ "logo_url": "str | None",
54
+ "primary_color": "str",
55
+ "support_email": "str",
56
+ "updated_at": "str",
57
+ },
58
+ )
59
+
60
+ Archetype = TypedDict(
61
+ "Archetype",
62
+ {
63
+ "description": "str",
64
+ "example_goals": "list[str]",
65
+ "id": "str",
66
+ "ideal_training_age": "str",
67
+ "key_patterns": "list[str]",
68
+ "name": "str",
69
+ "primary_modalities": "list[str]",
70
+ "progression_style": "str",
71
+ "rest_seconds": "str",
72
+ "session_frequency": "str",
73
+ "typical_rep_range": "str",
74
+ "typical_rpe": "str",
75
+ "typical_sets": "str",
76
+ },
77
+ )
78
+
79
+ ArchetypeList = TypedDict(
80
+ "ArchetypeList",
81
+ {
82
+ "archetypes": "list[Archetype]",
83
+ "total": "int",
84
+ },
85
+ )
86
+
87
+ AtRiskListResponseDataItem = TypedDict(
88
+ "AtRiskListResponseDataItem",
89
+ {
90
+ "opened_at": "str",
91
+ "reasons": "list[Literal[\"visits_dropped\", \"sessions_missed\", \"progress_stalled\"]]",
92
+ "status": "Literal[\"open\", \"nudged\"]",
93
+ "teammate": "str",
94
+ },
95
+ )
96
+
97
+ AtRiskListResponse = TypedDict(
98
+ "AtRiskListResponse",
99
+ {
100
+ "data": "list[AtRiskListResponseDataItem]",
101
+ "next_cursor": "str | None",
102
+ },
103
+ )
104
+
105
+ AttestationEnvelopeResponseStatementAttestor = TypedDict(
106
+ "AttestationEnvelopeResponseStatementAttestor",
107
+ {
108
+ "id": "str",
109
+ "kind": "Literal[\"coach\", \"organization\"]",
110
+ "name": "str",
111
+ },
112
+ )
113
+
114
+ AttestationEnvelopeResponseStatementMeasurement = TypedDict(
115
+ "AttestationEnvelopeResponseStatementMeasurement",
116
+ {
117
+ "instrument_kind": "str | None",
118
+ "measure": "str | None",
119
+ "observed_at": "str",
120
+ "protocol_key": "str | None",
121
+ "protocol_kind": "Literal[\"none\", \"registered\", \"owner_test\"]",
122
+ "quantity": "str",
123
+ "unit": "str",
124
+ "value": "float",
125
+ },
126
+ )
127
+
128
+ AttestationEnvelopeResponseStatement = TypedDict(
129
+ "AttestationEnvelopeResponseStatement",
130
+ {
131
+ "attestation_id": "str",
132
+ "attestor": "AttestationEnvelopeResponseStatementAttestor",
133
+ "issued_at": "str",
134
+ "key_id": "str",
135
+ "measurement": "AttestationEnvelopeResponseStatementMeasurement",
136
+ "measurement_id": "str",
137
+ "mode": "Literal[\"test\", \"live\"]",
138
+ "version": "Literal[\"attestation/1\"]",
139
+ "vouching_level": "Literal[3, 4]",
140
+ },
141
+ )
142
+
143
+ AttestationEnvelopeResponse = TypedDict(
144
+ "AttestationEnvelopeResponse",
145
+ {
146
+ "algorithm": "Literal[\"Ed25519\"]",
147
+ "key_id": "str",
148
+ "signature": "str",
149
+ "statement": NotRequired["AttestationEnvelopeResponseStatement"],
150
+ },
151
+ )
152
+
153
+ AttestationKeysResponseKeysItemJwk = TypedDict(
154
+ "AttestationKeysResponseKeysItemJwk",
155
+ {
156
+ "alg": "Literal[\"EdDSA\"]",
157
+ "crv": "Literal[\"Ed25519\"]",
158
+ "kid": "str",
159
+ "kty": "Literal[\"OKP\"]",
160
+ "use": "Literal[\"sig\"]",
161
+ "x": "str",
162
+ },
163
+ )
164
+
165
+ AttestationKeysResponseKeysItem = TypedDict(
166
+ "AttestationKeysResponseKeysItem",
167
+ {
168
+ "algorithm": "Literal[\"Ed25519\"]",
169
+ "created_at": "str",
170
+ "jwk": "AttestationKeysResponseKeysItemJwk",
171
+ "key_id": "str",
172
+ "mode": "Literal[\"test\", \"live\"]",
173
+ "public_key": "str",
174
+ "retired_at": "str | None",
175
+ "status": "Literal[\"active\", \"retired\"]",
176
+ },
177
+ )
178
+
179
+ AttestationKeysResponse = TypedDict(
180
+ "AttestationKeysResponse",
181
+ {
182
+ "keys": "list[AttestationKeysResponseKeysItem]",
183
+ },
184
+ )
185
+
186
+ AttestationStatusResponse = TypedDict(
187
+ "AttestationStatusResponse",
188
+ {
189
+ "attestation_id": "str",
190
+ "revoked_at": "str | None",
191
+ "status": "Literal[\"valid\", \"revoked\", \"withdrawn\", \"unknown\"]",
192
+ "withdrawn_at": "str | None",
193
+ },
194
+ )
195
+
196
+ BaselineResponseItemsItem = TypedDict(
197
+ "BaselineResponseItemsItem",
198
+ {
199
+ "attributes": "dict[str, Any]",
200
+ "count": "int | None",
201
+ "family": "str",
202
+ "name": "str",
203
+ "token": "str",
204
+ },
205
+ )
206
+
207
+ BaselineResponse = TypedDict(
208
+ "BaselineResponse",
209
+ {
210
+ "items": "list[BaselineResponseItemsItem]",
211
+ "revision": "float",
212
+ "updated_at": "str | None",
213
+ },
214
+ )
215
+
216
+ BaselineUpdateRequestItemsItem = TypedDict(
217
+ "BaselineUpdateRequestItemsItem",
218
+ {
219
+ "attributes": NotRequired["dict[str, Any]"],
220
+ "count": NotRequired["int | None"],
221
+ "token": "str",
222
+ },
223
+ )
224
+
225
+ BaselineUpdateRequest = TypedDict(
226
+ "BaselineUpdateRequest",
227
+ {
228
+ "items": "list[BaselineUpdateRequestItemsItem]",
229
+ },
230
+ )
231
+
232
+ BodyStateChangesResponseDataItemCause0 = TypedDict(
233
+ "BodyStateChangesResponseDataItemCause0",
234
+ {
235
+ "event_ids": "list[str]",
236
+ "kind": "Literal[\"readings\", \"rebuilt\", \"other\"]",
237
+ },
238
+ )
239
+
240
+ BodyStateChangesResponseDataItemJointsItem = TypedDict(
241
+ "BodyStateChangesResponseDataItemJointsItem",
242
+ {
243
+ "caution": "float",
244
+ "joint": "str",
245
+ "recovery": "float",
246
+ "side": "Literal[\"left\", \"right\", \"midline\"]",
247
+ "uncertainty": "float",
248
+ },
249
+ )
250
+
251
+ BodyStateChangesResponseDataItem = TypedDict(
252
+ "BodyStateChangesResponseDataItem",
253
+ {
254
+ "cause": "BodyStateChangesResponseDataItemCause0 | None",
255
+ "computed_at": "str",
256
+ "engine_version": "str",
257
+ "id": "str",
258
+ "joints": "list[BodyStateChangesResponseDataItemJointsItem]",
259
+ },
260
+ )
261
+
262
+ BodyStateChangesResponse = TypedDict(
263
+ "BodyStateChangesResponse",
264
+ {
265
+ "data": "list[BodyStateChangesResponseDataItem]",
266
+ "next_cursor": "str | None",
267
+ },
268
+ )
269
+
270
+ BodyStateResponseJointsItem = TypedDict(
271
+ "BodyStateResponseJointsItem",
272
+ {
273
+ "caution": "float",
274
+ "joint": "str",
275
+ "recovery": "float",
276
+ "side": "Literal[\"left\", \"right\", \"midline\"]",
277
+ "uncertainty": "float",
278
+ },
279
+ )
280
+
281
+ BodyStateResponse = TypedDict(
282
+ "BodyStateResponse",
283
+ {
284
+ "computed_at": "str",
285
+ "engine_version": "str",
286
+ "joints": "list[BodyStateResponseJointsItem]",
287
+ "teammate": "str",
288
+ },
289
+ )
290
+
291
+ BulkEventsRequestEventsItem = TypedDict(
292
+ "BulkEventsRequestEventsItem",
293
+ {
294
+ "at": NotRequired["str"],
295
+ "data": "dict[str, Any]",
296
+ "idempotency_key": NotRequired["str"],
297
+ "teammate": "str",
298
+ "type": "Literal[\"observation\", \"constraint\", \"equipment_change\", \"schedule_change\", \"logged_set\", \"visit_check_in\"]",
299
+ },
300
+ )
301
+
302
+ BulkEventsRequest = TypedDict(
303
+ "BulkEventsRequest",
304
+ {
305
+ "events": "list[BulkEventsRequestEventsItem]",
306
+ },
307
+ )
308
+
309
+ CreateAttestationBody = TypedDict(
310
+ "CreateAttestationBody",
311
+ {
312
+ "instrument_id": "str",
313
+ "measurement_id": "str",
314
+ },
315
+ )
316
+
317
+ CreateOrgAssessmentTestBody = TypedDict(
318
+ "CreateOrgAssessmentTestBody",
319
+ {
320
+ "better": NotRequired["Literal[\"higher\", \"lower\"]"],
321
+ "measure": "Literal[\"number\", \"time_s\", \"reps\", \"load_reps\", \"distance_m\", \"length_cm\", \"score_0_3\", \"side_pair\"]",
322
+ "name": "str",
323
+ "protocol": NotRequired["str"],
324
+ "unit": NotRequired["str | None"],
325
+ },
326
+ )
327
+
328
+ CreateProgramRequestGoalTarget0 = TypedDict(
329
+ "CreateProgramRequestGoalTarget0",
330
+ {
331
+ "quantity": "Literal[\"arm_circumference\", \"bodyweight_loss\", \"squat_e1rm\", \"bench_e1rm\", \"deadlift_e1rm\", \"run_5k_time\"]",
332
+ "unit": NotRequired["str"],
333
+ "value": "float | str",
334
+ },
335
+ )
336
+
337
+ CreateProgramRequestGoal = TypedDict(
338
+ "CreateProgramRequestGoal",
339
+ {
340
+ "due_date": NotRequired["str | None"],
341
+ "target": NotRequired["CreateProgramRequestGoalTarget0 | None"],
342
+ "title": NotRequired["str"],
343
+ "type": "Literal[\"strength\", \"hypertrophy\", \"power\", \"endurance\", \"fat_loss\", \"general_fitness\", \"vertical_jump\", \"sprint_speed\", \"mobility\"]",
344
+ },
345
+ )
346
+
347
+ CreateProgramRequest = TypedDict(
348
+ "CreateProgramRequest",
349
+ {
350
+ "end_date": NotRequired["str"],
351
+ "goal": NotRequired["CreateProgramRequestGoal"],
352
+ "idempotency_key": "str",
353
+ "session_minutes": NotRequired["float"],
354
+ "sessions_per_week": NotRequired["float"],
355
+ "start": NotRequired["Literal[\"when_free\", \"replace\"]"],
356
+ "start_date": NotRequired["str"],
357
+ "training_experience_years": NotRequired["float"],
358
+ "training_weekdays": NotRequired["list[int]"],
359
+ "weeks": NotRequired["float"],
360
+ },
361
+ )
362
+
363
+ CreateSandboxTeammateRequest = TypedDict(
364
+ "CreateSandboxTeammateRequest",
365
+ {
366
+ "external_id": "str",
367
+ "preset": "Literal[\"new_to_training\", \"returning_from_knee_injury\", \"endurance_runner\"]",
368
+ "seed": NotRequired["float"],
369
+ },
370
+ )
371
+
372
+ DeclineProposalRequest = TypedDict(
373
+ "DeclineProposalRequest",
374
+ {
375
+ "coach_id": "str",
376
+ "reason": NotRequired["str"],
377
+ },
378
+ )
379
+
380
+ EquipmentTaxonomyResponseEquipmentItem = TypedDict(
381
+ "EquipmentTaxonomyResponseEquipmentItem",
382
+ {
383
+ "aliases": "list[str]",
384
+ "attributes": "list[str]",
385
+ "family": "str",
386
+ "generic": "bool",
387
+ "name": "str",
388
+ "token": "str",
389
+ },
390
+ )
391
+
392
+ EquipmentTaxonomyResponseFamiliesItem = TypedDict(
393
+ "EquipmentTaxonomyResponseFamiliesItem",
394
+ {
395
+ "id": "str",
396
+ "name": "str",
397
+ },
398
+ )
399
+
400
+ EquipmentTaxonomyResponse = TypedDict(
401
+ "EquipmentTaxonomyResponse",
402
+ {
403
+ "equipment": "list[EquipmentTaxonomyResponseEquipmentItem]",
404
+ "families": "list[EquipmentTaxonomyResponseFamiliesItem]",
405
+ "revision": "float",
406
+ },
407
+ )
408
+
409
+ ErrorError = TypedDict(
410
+ "ErrorError",
411
+ {
412
+ "code": "str",
413
+ "details": "dict[str, Any]",
414
+ "message": "str",
415
+ "request_id": "str",
416
+ },
417
+ )
418
+
419
+ Error = TypedDict(
420
+ "Error",
421
+ {
422
+ "error": "ErrorError",
423
+ },
424
+ )
425
+
426
+ EventLogResponseDataItemReason0 = TypedDict(
427
+ "EventLogResponseDataItemReason0",
428
+ {
429
+ "code": "Literal[\"invalid_event\", \"unknown_event_type\", \"schema_version_unsupported\", \"unit_not_convertible\", \"invalid_body_location\", \"teammate_not_found\", \"teammate_mismatch\", \"consent_required\", \"missing_idempotency_key\", \"unknown_movement\", \"session_not_found\", \"invalid_set\", \"value_out_of_range\", \"route_quantity_not_allowed\", \"route_storage_not_allowed\", \"route_disconnected\", \"unknown_location\", \"at_in_future\", \"event_type_not_allowed\"]",
430
+ "field": "str | None",
431
+ "message": "str",
432
+ },
433
+ )
434
+
435
+ EventLogResponseDataItemRevisions0Item = TypedDict(
436
+ "EventLogResponseDataItemRevisions0Item",
437
+ {
438
+ "approval_status": "Literal[\"applied\", \"pending\", \"accepted\", \"declined\", \"superseded\"]",
439
+ "program_id": "str",
440
+ "revision": "int",
441
+ },
442
+ )
443
+
444
+ EventLogResponseDataItem = TypedDict(
445
+ "EventLogResponseDataItem",
446
+ {
447
+ "accepted_at": "str | None",
448
+ "attempts": "int",
449
+ "id": "str",
450
+ "key": "str",
451
+ "occurred_at": "str | None",
452
+ "reason": "EventLogResponseDataItemReason0 | None",
453
+ "received_at": "str",
454
+ "revisions": "list[EventLogResponseDataItemRevisions0Item] | None",
455
+ "status": "Literal[\"accepted\", \"rejected\", \"taken_back\"]",
456
+ "taken_back_at": "str | None",
457
+ "teammate": "str | None",
458
+ "type": "str",
459
+ },
460
+ )
461
+
462
+ EventLogResponse = TypedDict(
463
+ "EventLogResponse",
464
+ {
465
+ "data": "list[EventLogResponseDataItem]",
466
+ "next_cursor": "str | None",
467
+ },
468
+ )
469
+
470
+ EventsResponseResultsItemObservation = TypedDict(
471
+ "EventsResponseResultsItemObservation",
472
+ {
473
+ "kind": "Literal[\"work_done\", \"joint_level\", \"whole_body\", \"unknown\"]",
474
+ "status": "Literal[\"not_interpreted\"]",
475
+ },
476
+ )
477
+ """Only on an accepted observation."""
478
+
479
+ EventsResponseResultsItemReason = TypedDict(
480
+ "EventsResponseResultsItemReason",
481
+ {
482
+ "code": "Literal[\"invalid_event\", \"unknown_event_type\", \"schema_version_unsupported\", \"unit_not_convertible\", \"invalid_body_location\", \"teammate_not_found\", \"teammate_mismatch\", \"consent_required\", \"missing_idempotency_key\", \"unknown_movement\", \"session_not_found\", \"invalid_set\", \"value_out_of_range\", \"route_quantity_not_allowed\", \"route_storage_not_allowed\", \"route_disconnected\", \"unknown_location\", \"at_in_future\", \"event_type_not_allowed\"]",
483
+ "field": "str | None",
484
+ "message": "str",
485
+ },
486
+ )
487
+ """Only on a rejected event."""
488
+
489
+ EventsResponseResultsItem = TypedDict(
490
+ "EventsResponseResultsItem",
491
+ {
492
+ "event_id": "str | None",
493
+ "index": "int",
494
+ "observation": NotRequired["EventsResponseResultsItemObservation"],
495
+ "reason": NotRequired["EventsResponseResultsItemReason"],
496
+ "status": "Literal[\"accepted\", \"duplicate\", \"rejected\"]",
497
+ "type": "str | None",
498
+ },
499
+ )
500
+
501
+ EventsResponseSummary = TypedDict(
502
+ "EventsResponseSummary",
503
+ {
504
+ "accepted": "int",
505
+ "duplicate": "int",
506
+ "rejected": "int",
507
+ },
508
+ )
509
+
510
+ EventsResponse = TypedDict(
511
+ "EventsResponse",
512
+ {
513
+ "results": "list[EventsResponseResultsItem]",
514
+ "summary": NotRequired["EventsResponseSummary"],
515
+ },
516
+ )
517
+
518
+ Exercise = TypedDict(
519
+ "Exercise",
520
+ {
521
+ "contraindications": "list[str]",
522
+ "cues": "list[str]",
523
+ "description": NotRequired["str | None"],
524
+ "equipment": "list[str]",
525
+ "equipment_any_of": "list[list[str]]",
526
+ "has_demo": "bool",
527
+ "id": "str",
528
+ "joints_loaded": "list[str]",
529
+ "limb": NotRequired["str | None"],
530
+ "load_type": NotRequired["str | None"],
531
+ "media": NotRequired["dict[str, Any]"],
532
+ "modality": "str",
533
+ "muscle_activation": NotRequired["dict[str, Any] | list[dict[str, Any]] | None"],
534
+ "muscles_primary": "list[str]",
535
+ "muscles_secondary": "list[str]",
536
+ "name": "str",
537
+ "pattern": "str",
538
+ "performance_goals": "list[str]",
539
+ "prerequisites": "list[str]",
540
+ "prescription_type": "str",
541
+ "progressions": "list[str]",
542
+ "side_label": "str | None",
543
+ "skill_level": "str",
544
+ "slug": "str",
545
+ "tags": "list[str]",
546
+ },
547
+ )
548
+
549
+ ExerciseList = TypedDict(
550
+ "ExerciseList",
551
+ {
552
+ "exercises": "list[Exercise]",
553
+ "has_more": "bool",
554
+ "limit": "int",
555
+ "offset": "int",
556
+ "total": "int",
557
+ },
558
+ )
559
+
560
+ GoalResponseTarget0 = TypedDict(
561
+ "GoalResponseTarget0",
562
+ {
563
+ "quantity": "str",
564
+ "unit": "str",
565
+ "value": "float",
566
+ },
567
+ )
568
+
569
+ GoalResponse = TypedDict(
570
+ "GoalResponse",
571
+ {
572
+ "due_date": "str | None",
573
+ "id": "str",
574
+ "status": "Literal[\"active\"]",
575
+ "target": "GoalResponseTarget0 | None",
576
+ "teammate": "str",
577
+ "title": "str",
578
+ "type": "str",
579
+ "updated_at": "str",
580
+ },
581
+ )
582
+
583
+ GroupTeammatesResponseCount = TypedDict(
584
+ "GroupTeammatesResponseCount",
585
+ {
586
+ "value": "int | None",
587
+ "withheld": "bool",
588
+ },
589
+ )
590
+
591
+ GroupTeammatesResponseDataItem = TypedDict(
592
+ "GroupTeammatesResponseDataItem",
593
+ {
594
+ "context_date": "str | None",
595
+ "home_location": "str | None",
596
+ "teammate": "str",
597
+ },
598
+ )
599
+
600
+ GroupTeammatesResponse = TypedDict(
601
+ "GroupTeammatesResponse",
602
+ {
603
+ "as_of": "str | None",
604
+ "count": "GroupTeammatesResponseCount",
605
+ "data": "list[GroupTeammatesResponseDataItem]",
606
+ "key": "Literal[\"new_this_month\", \"regulars\", \"once_and_gone\", \"slipping\", \"came_back\", \"ready_for_a_coach\"]",
607
+ "next_cursor": "str | None",
608
+ "unlisted": "float | None",
609
+ },
610
+ )
611
+
612
+ GroupsResponseDataItemCount = TypedDict(
613
+ "GroupsResponseDataItemCount",
614
+ {
615
+ "value": "int | None",
616
+ "withheld": "bool",
617
+ },
618
+ )
619
+
620
+ GroupsResponseDataItem = TypedDict(
621
+ "GroupsResponseDataItem",
622
+ {
623
+ "count": "GroupsResponseDataItemCount",
624
+ "definition": "str",
625
+ "key": "Literal[\"new_this_month\", \"regulars\", \"once_and_gone\", \"slipping\", \"came_back\", \"ready_for_a_coach\"]",
626
+ },
627
+ )
628
+
629
+ GroupsResponse = TypedDict(
630
+ "GroupsResponse",
631
+ {
632
+ "as_of": "str | None",
633
+ "data": "list[GroupsResponseDataItem]",
634
+ "location": "str | None",
635
+ "min_group_size": "float",
636
+ },
637
+ )
638
+
639
+ InventoryResponseItemsItem = TypedDict(
640
+ "InventoryResponseItemsItem",
641
+ {
642
+ "attributes": "dict[str, Any]",
643
+ "count": "int | None",
644
+ "family": "str",
645
+ "name": "str",
646
+ "source": "Literal[\"baseline\", \"added\"]",
647
+ "token": "str",
648
+ },
649
+ )
650
+
651
+ InventoryResponseUnavailableItem = TypedDict(
652
+ "InventoryResponseUnavailableItem",
653
+ {
654
+ "back_in_service_on": "str | None",
655
+ "name": "str",
656
+ "note": "str | None",
657
+ "reason": "Literal[\"missing\", \"out_of_service\"]",
658
+ "token": "str",
659
+ },
660
+ )
661
+
662
+ InventoryResponse = TypedDict(
663
+ "InventoryResponse",
664
+ {
665
+ "as_of": "str",
666
+ "baseline_revision": "int",
667
+ "inventory_revision": "int",
668
+ "items": "list[InventoryResponseItemsItem]",
669
+ "location": "str",
670
+ "set_up": "bool",
671
+ "unavailable": "list[InventoryResponseUnavailableItem]",
672
+ },
673
+ )
674
+
675
+ Joint = TypedDict(
676
+ "Joint",
677
+ {
678
+ "body_region": "str",
679
+ "id": "str",
680
+ "is_bilateral": "bool",
681
+ "joint_type": "str",
682
+ "name": "str",
683
+ "primary_movements": "list[str]",
684
+ },
685
+ )
686
+
687
+ JourneyResponseDataItemCount0 = TypedDict(
688
+ "JourneyResponseDataItemCount0",
689
+ {
690
+ "value": "int | None",
691
+ "withheld": "bool",
692
+ },
693
+ )
694
+
695
+ JourneyResponseDataItemStopped0 = TypedDict(
696
+ "JourneyResponseDataItemStopped0",
697
+ {
698
+ "value": "int | None",
699
+ "withheld": "bool",
700
+ },
701
+ )
702
+
703
+ JourneyResponseDataItem = TypedDict(
704
+ "JourneyResponseDataItem",
705
+ {
706
+ "available": "bool",
707
+ "count": "JourneyResponseDataItemCount0 | None",
708
+ "definition": "str",
709
+ "key": "Literal[\"joined\", \"visited_week_one\", \"first_session\", \"three_weeks_in_a_row\", \"booked_coach_session\", \"bought_package\"]",
710
+ "stopped": "JourneyResponseDataItemStopped0 | None",
711
+ },
712
+ )
713
+
714
+ JourneyResponse = TypedDict(
715
+ "JourneyResponse",
716
+ {
717
+ "data": "list[JourneyResponseDataItem]",
718
+ "from": "str",
719
+ "location": "str | None",
720
+ "min_group_size": "float",
721
+ "to": "str",
722
+ },
723
+ )
724
+
725
+ KnowledgeConcept = TypedDict(
726
+ "KnowledgeConcept",
727
+ {
728
+ "academy_url": NotRequired["str | None"],
729
+ "citation_ref": NotRequired["str | None"],
730
+ "description": NotRequired["str | None"],
731
+ "detail": "dict[str, Any]",
732
+ "evidence_grade": NotRequired["str | None"],
733
+ "id": "str",
734
+ "name": "str",
735
+ "source_citation": NotRequired["str | None"],
736
+ "type": "str",
737
+ "version": "str",
738
+ },
739
+ )
740
+
741
+ KnowledgeConceptList = TypedDict(
742
+ "KnowledgeConceptList",
743
+ {
744
+ "concepts": "list[KnowledgeConcept]",
745
+ "total": "int",
746
+ },
747
+ )
748
+
749
+ LocationListResponseDataItemAddress0 = TypedDict(
750
+ "LocationListResponseDataItemAddress0",
751
+ {
752
+ "city": NotRequired["str"],
753
+ "country": NotRequired["str"],
754
+ "line1": NotRequired["str"],
755
+ "line2": NotRequired["str"],
756
+ "postal_code": NotRequired["str"],
757
+ "region": NotRequired["str"],
758
+ },
759
+ )
760
+
761
+ LocationListResponseDataItem = TypedDict(
762
+ "LocationListResponseDataItem",
763
+ {
764
+ "address": "LocationListResponseDataItemAddress0 | None",
765
+ "created_at": "str",
766
+ "external_id": "str",
767
+ "inventory_revision": "int",
768
+ "name": "str",
769
+ "overrides_count": "int",
770
+ "region": "str | None",
771
+ "status": "Literal[\"active\", \"archived\"]",
772
+ "time_zone": "str",
773
+ "updated_at": "str",
774
+ },
775
+ )
776
+
777
+ LocationListResponse = TypedDict(
778
+ "LocationListResponse",
779
+ {
780
+ "data": "list[LocationListResponseDataItem]",
781
+ "next_cursor": "str | None",
782
+ },
783
+ )
784
+
785
+ LocationResponseAddress0 = TypedDict(
786
+ "LocationResponseAddress0",
787
+ {
788
+ "city": NotRequired["str"],
789
+ "country": NotRequired["str"],
790
+ "line1": NotRequired["str"],
791
+ "line2": NotRequired["str"],
792
+ "postal_code": NotRequired["str"],
793
+ "region": NotRequired["str"],
794
+ },
795
+ )
796
+
797
+ LocationResponse = TypedDict(
798
+ "LocationResponse",
799
+ {
800
+ "address": "LocationResponseAddress0 | None",
801
+ "created_at": "str",
802
+ "external_id": "str",
803
+ "inventory_revision": "float",
804
+ "name": "str",
805
+ "overrides_count": "float",
806
+ "region": "str | None",
807
+ "status": "Literal[\"active\", \"archived\"]",
808
+ "time_zone": "str",
809
+ "updated_at": "str",
810
+ },
811
+ )
812
+
813
+ LocationUpsertRequestAddress0 = TypedDict(
814
+ "LocationUpsertRequestAddress0",
815
+ {
816
+ "city": NotRequired["str"],
817
+ "country": NotRequired["str"],
818
+ "line1": NotRequired["str"],
819
+ "line2": NotRequired["str"],
820
+ "postal_code": NotRequired["str"],
821
+ "region": NotRequired["str"],
822
+ },
823
+ )
824
+
825
+ LocationUpsertRequest = TypedDict(
826
+ "LocationUpsertRequest",
827
+ {
828
+ "address": NotRequired["LocationUpsertRequestAddress0 | None"],
829
+ "name": "str",
830
+ "region": NotRequired["str | None"],
831
+ "time_zone": "str",
832
+ },
833
+ )
834
+
835
+ LocationsSyncRequestBaselineItemsItem = TypedDict(
836
+ "LocationsSyncRequestBaselineItemsItem",
837
+ {
838
+ "attributes": NotRequired["dict[str, Any]"],
839
+ "count": NotRequired["int | None"],
840
+ "token": "str",
841
+ },
842
+ )
843
+
844
+ LocationsSyncRequestBaseline = TypedDict(
845
+ "LocationsSyncRequestBaseline",
846
+ {
847
+ "items": "list[LocationsSyncRequestBaselineItemsItem]",
848
+ },
849
+ )
850
+ """Replaces the baseline. Left out, the baseline is not touched."""
851
+
852
+ LocationsSyncRequestLocationsItemAddress0 = TypedDict(
853
+ "LocationsSyncRequestLocationsItemAddress0",
854
+ {
855
+ "city": NotRequired["str"],
856
+ "country": NotRequired["str"],
857
+ "line1": NotRequired["str"],
858
+ "line2": NotRequired["str"],
859
+ "postal_code": NotRequired["str"],
860
+ "region": NotRequired["str"],
861
+ },
862
+ )
863
+
864
+ LocationsSyncRequestLocationsItemOverridesItem = TypedDict(
865
+ "LocationsSyncRequestLocationsItemOverridesItem",
866
+ {
867
+ "attributes": NotRequired["dict[str, Any]"],
868
+ "back_in_service_on": NotRequired["str | None"],
869
+ "count": NotRequired["int | None"],
870
+ "kind": "Literal[\"added\", \"missing\", \"out_of_service\"]",
871
+ "note": NotRequired["str | None"],
872
+ "token": "str",
873
+ },
874
+ )
875
+
876
+ LocationsSyncRequestLocationsItem = TypedDict(
877
+ "LocationsSyncRequestLocationsItem",
878
+ {
879
+ "address": NotRequired["LocationsSyncRequestLocationsItemAddress0 | None"],
880
+ "external_id": "str",
881
+ "name": "str",
882
+ "overrides": NotRequired["list[LocationsSyncRequestLocationsItemOverridesItem]"],
883
+ "region": NotRequired["str | None"],
884
+ "time_zone": "str",
885
+ },
886
+ )
887
+
888
+ LocationsSyncRequest = TypedDict(
889
+ "LocationsSyncRequest",
890
+ {
891
+ "archive_missing": NotRequired["bool"],
892
+ "baseline": NotRequired["LocationsSyncRequestBaseline"],
893
+ "dry_run": NotRequired["bool"],
894
+ "locations": "list[LocationsSyncRequestLocationsItem]",
895
+ },
896
+ )
897
+
898
+ LocationsSyncResponseBaseline = TypedDict(
899
+ "LocationsSyncResponseBaseline",
900
+ {
901
+ "added": "list[str]",
902
+ "changed": "bool",
903
+ "removed": "list[str]",
904
+ },
905
+ )
906
+
907
+ LocationsSyncResponseChangesItemEffectiveInventory = TypedDict(
908
+ "LocationsSyncResponseChangesItemEffectiveInventory",
909
+ {
910
+ "added": "list[str]",
911
+ "removed": "list[str]",
912
+ },
913
+ )
914
+
915
+ LocationsSyncResponseChangesItem = TypedDict(
916
+ "LocationsSyncResponseChangesItem",
917
+ {
918
+ "action": "Literal[\"created\", \"updated\", \"archived\", \"unchanged\"]",
919
+ "effective_inventory": "LocationsSyncResponseChangesItemEffectiveInventory",
920
+ "external_id": "str",
921
+ "teammates_to_replan": "int",
922
+ },
923
+ )
924
+
925
+ LocationsSyncResponseLocations = TypedDict(
926
+ "LocationsSyncResponseLocations",
927
+ {
928
+ "archived": "int",
929
+ "created": "int",
930
+ "unchanged": "int",
931
+ "updated": "int",
932
+ },
933
+ )
934
+ """What happened to the locations in the request, and to those archived because the request left them out."""
935
+
936
+ LocationsSyncResponseTotals = TypedDict(
937
+ "LocationsSyncResponseTotals",
938
+ {
939
+ "locations_with_inventory_change": "int",
940
+ "teammates_to_replan": "int",
941
+ },
942
+ )
943
+
944
+ LocationsSyncResponse = TypedDict(
945
+ "LocationsSyncResponse",
946
+ {
947
+ "applied": "bool",
948
+ "baseline": "LocationsSyncResponseBaseline",
949
+ "changes": "list[LocationsSyncResponseChangesItem]",
950
+ "locations": "LocationsSyncResponseLocations",
951
+ "totals": "LocationsSyncResponseTotals",
952
+ },
953
+ )
954
+
955
+ LoggedSetsResponseDataItemMovement = TypedDict(
956
+ "LoggedSetsResponseDataItemMovement",
957
+ {
958
+ "id": "str | None",
959
+ "name": "str | None",
960
+ },
961
+ )
962
+
963
+ LoggedSetsResponseDataItemSession = TypedDict(
964
+ "LoggedSetsResponseDataItemSession",
965
+ {
966
+ "id": "str | None",
967
+ "index": "int | None",
968
+ "weekly_plan_id": "str | None",
969
+ },
970
+ )
971
+
972
+ LoggedSetsResponseDataItemSetLoad0 = TypedDict(
973
+ "LoggedSetsResponseDataItemSetLoad0",
974
+ {
975
+ "unit": "str",
976
+ "value": "float",
977
+ },
978
+ )
979
+
980
+ LoggedSetsResponseDataItemSet = TypedDict(
981
+ "LoggedSetsResponseDataItemSet",
982
+ {
983
+ "distance_meters": "float | None",
984
+ "duration_seconds": "float | None",
985
+ "effort": "float | None",
986
+ "load": "LoggedSetsResponseDataItemSetLoad0 | None",
987
+ "number": "int",
988
+ "reps": "float | None",
989
+ "type": "str",
990
+ },
991
+ )
992
+
993
+ LoggedSetsResponseDataItemSource = TypedDict(
994
+ "LoggedSetsResponseDataItemSource",
995
+ {
996
+ "device": "str | None",
997
+ "record_id": "str | None",
998
+ "route": "str | None",
999
+ },
1000
+ )
1001
+
1002
+ LoggedSetsResponseDataItem = TypedDict(
1003
+ "LoggedSetsResponseDataItem",
1004
+ {
1005
+ "at": "str",
1006
+ "event_id": "str | None",
1007
+ "id": "str",
1008
+ "movement": "LoggedSetsResponseDataItemMovement",
1009
+ "session": "LoggedSetsResponseDataItemSession",
1010
+ "set": "LoggedSetsResponseDataItemSet",
1011
+ "source": "LoggedSetsResponseDataItemSource",
1012
+ },
1013
+ )
1014
+
1015
+ LoggedSetsResponse = TypedDict(
1016
+ "LoggedSetsResponse",
1017
+ {
1018
+ "data": "list[LoggedSetsResponseDataItem]",
1019
+ "next_cursor": "str | None",
1020
+ },
1021
+ )
1022
+
1023
+ MeTeammateResponseConsent = TypedDict(
1024
+ "MeTeammateResponseConsent",
1025
+ {
1026
+ "at_risk": "bool",
1027
+ "body_state": "bool",
1028
+ "events": "bool",
1029
+ "program_setup": "bool",
1030
+ "programs": "bool",
1031
+ "record": "bool",
1032
+ "usage_insights": "bool",
1033
+ },
1034
+ )
1035
+
1036
+ MeTeammateResponse = TypedDict(
1037
+ "MeTeammateResponse",
1038
+ {
1039
+ "account_url": "str",
1040
+ "consent": "MeTeammateResponseConsent",
1041
+ "display_name": "str | None",
1042
+ "external_id": "str | None",
1043
+ "home_location_external_id": "str | None",
1044
+ "id": "str",
1045
+ "mode": "Literal[\"test\", \"live\"]",
1046
+ "status": "Literal[\"unclaimed\", \"invited\", \"claimed\", \"left\"]",
1047
+ "timezone": "str | None",
1048
+ },
1049
+ )
1050
+
1051
+ MeTeammateUpdateRequest = TypedDict(
1052
+ "MeTeammateUpdateRequest",
1053
+ {
1054
+ "home_location_external_id": NotRequired["str | None"],
1055
+ "timezone": NotRequired["str | None"],
1056
+ },
1057
+ )
1058
+
1059
+ MeasurementDetailResponseBody0 = TypedDict(
1060
+ "MeasurementDetailResponseBody0",
1061
+ {
1062
+ "joint": "str",
1063
+ "side": "Literal[\"left\", \"right\", \"bilateral\", \"midline\"]",
1064
+ },
1065
+ )
1066
+
1067
+ MeasurementDetailResponseHistoryItemBody0 = TypedDict(
1068
+ "MeasurementDetailResponseHistoryItemBody0",
1069
+ {
1070
+ "joint": "str",
1071
+ "side": "Literal[\"left\", \"right\", \"bilateral\", \"midline\"]",
1072
+ },
1073
+ )
1074
+
1075
+ MeasurementDetailResponseHistoryItem = TypedDict(
1076
+ "MeasurementDetailResponseHistoryItem",
1077
+ {
1078
+ "assessment_test_id": "str | None",
1079
+ "assessment_test_version": "int | None",
1080
+ "body": "MeasurementDetailResponseHistoryItemBody0 | None",
1081
+ "confidence": "float",
1082
+ "created_at": "str",
1083
+ "id": "str",
1084
+ "instrument_kind": "str | None",
1085
+ "measure": "str | None",
1086
+ "observed_at": "str",
1087
+ "observed_until": "str | None",
1088
+ "protocol_key": "str | None",
1089
+ "protocol_kind": "Literal[\"none\", \"registered\", \"owner_test\"]",
1090
+ "quantity": "str",
1091
+ "source_device": "str | None",
1092
+ "source_kind": "Literal[\"organization\", \"device\", \"coach\", \"teammate\", \"vera\"]",
1093
+ "status": "Literal[\"active\", \"superseded\", \"withdrawn\"]",
1094
+ "superseded_by_id": "str | None",
1095
+ "supersedes_id": "str | None",
1096
+ "time_precision": "Literal[\"instant\", \"day\"]",
1097
+ "unit": "str",
1098
+ "unit_canonical": "str | None",
1099
+ "value": "float",
1100
+ "value_canonical": "float | None",
1101
+ "vouching_level": "int",
1102
+ "withdrawn_at": "str | None",
1103
+ },
1104
+ )
1105
+
1106
+ MeasurementDetailResponse = TypedDict(
1107
+ "MeasurementDetailResponse",
1108
+ {
1109
+ "assessment_test_id": "str | None",
1110
+ "assessment_test_version": "int | None",
1111
+ "body": "MeasurementDetailResponseBody0 | None",
1112
+ "confidence": "float",
1113
+ "created_at": "str",
1114
+ "history": "list[MeasurementDetailResponseHistoryItem]",
1115
+ "id": "str",
1116
+ "instrument_kind": "str | None",
1117
+ "measure": "str | None",
1118
+ "observed_at": "str",
1119
+ "observed_until": "str | None",
1120
+ "protocol_key": "str | None",
1121
+ "protocol_kind": "Literal[\"none\", \"registered\", \"owner_test\"]",
1122
+ "quantity": "str",
1123
+ "source_device": "str | None",
1124
+ "source_kind": "Literal[\"organization\", \"device\", \"coach\", \"teammate\", \"vera\"]",
1125
+ "status": "Literal[\"active\", \"superseded\", \"withdrawn\"]",
1126
+ "superseded_by_id": "str | None",
1127
+ "supersedes_id": "str | None",
1128
+ "time_precision": "Literal[\"instant\", \"day\"]",
1129
+ "unit": "str",
1130
+ "unit_canonical": "str | None",
1131
+ "value": "float",
1132
+ "value_canonical": "float | None",
1133
+ "vouching_level": "int",
1134
+ "withdrawn_at": "str | None",
1135
+ },
1136
+ )
1137
+
1138
+ MeasurementListResponseDataItemBody0 = TypedDict(
1139
+ "MeasurementListResponseDataItemBody0",
1140
+ {
1141
+ "joint": "str",
1142
+ "side": "Literal[\"left\", \"right\", \"bilateral\", \"midline\"]",
1143
+ },
1144
+ )
1145
+
1146
+ MeasurementListResponseDataItem = TypedDict(
1147
+ "MeasurementListResponseDataItem",
1148
+ {
1149
+ "assessment_test_id": "str | None",
1150
+ "assessment_test_version": "int | None",
1151
+ "body": "MeasurementListResponseDataItemBody0 | None",
1152
+ "confidence": "float",
1153
+ "created_at": "str",
1154
+ "id": "str",
1155
+ "instrument_kind": "str | None",
1156
+ "measure": "str | None",
1157
+ "observed_at": "str",
1158
+ "observed_until": "str | None",
1159
+ "protocol_key": "str | None",
1160
+ "protocol_kind": "Literal[\"none\", \"registered\", \"owner_test\"]",
1161
+ "quantity": "str",
1162
+ "source_device": "str | None",
1163
+ "source_kind": "Literal[\"organization\", \"device\", \"coach\", \"teammate\", \"vera\"]",
1164
+ "status": "Literal[\"active\", \"superseded\", \"withdrawn\"]",
1165
+ "superseded_by_id": "str | None",
1166
+ "supersedes_id": "str | None",
1167
+ "time_precision": "Literal[\"instant\", \"day\"]",
1168
+ "unit": "str",
1169
+ "unit_canonical": "str | None",
1170
+ "value": "float",
1171
+ "value_canonical": "float | None",
1172
+ "vouching_level": "int",
1173
+ "withdrawn_at": "str | None",
1174
+ },
1175
+ )
1176
+
1177
+ MeasurementListResponse = TypedDict(
1178
+ "MeasurementListResponse",
1179
+ {
1180
+ "data": "list[MeasurementListResponseDataItem]",
1181
+ "next_cursor": "str | None",
1182
+ },
1183
+ )
1184
+
1185
+ Muscle = TypedDict(
1186
+ "Muscle",
1187
+ {
1188
+ "body_region": "str",
1189
+ "display_name": "str",
1190
+ "id": "str",
1191
+ "muscle_group": "str",
1192
+ },
1193
+ )
1194
+
1195
+ OrgAssessmentTestListResponseDataItem = TypedDict(
1196
+ "OrgAssessmentTestListResponseDataItem",
1197
+ {
1198
+ "archived_at": "str | None",
1199
+ "better": "Literal[\"higher\", \"lower\"]",
1200
+ "created_at": "str",
1201
+ "id": "str",
1202
+ "measure": "Literal[\"number\", \"time_s\", \"reps\", \"load_reps\", \"distance_m\", \"length_cm\", \"score_0_3\", \"side_pair\"]",
1203
+ "method_version": "int",
1204
+ "name": "str",
1205
+ "owner_method": "bool",
1206
+ "protocol": "str",
1207
+ "protocol_key": "str",
1208
+ "unit": "str | None",
1209
+ "updated_at": "str",
1210
+ },
1211
+ )
1212
+
1213
+ OrgAssessmentTestListResponse = TypedDict(
1214
+ "OrgAssessmentTestListResponse",
1215
+ {
1216
+ "data": "list[OrgAssessmentTestListResponseDataItem]",
1217
+ "next_cursor": "str | None",
1218
+ },
1219
+ )
1220
+
1221
+ OrgAssessmentTestResponse = TypedDict(
1222
+ "OrgAssessmentTestResponse",
1223
+ {
1224
+ "archived_at": "str | None",
1225
+ "better": "Literal[\"higher\", \"lower\"]",
1226
+ "created_at": "str",
1227
+ "id": "str",
1228
+ "measure": "Literal[\"number\", \"time_s\", \"reps\", \"load_reps\", \"distance_m\", \"length_cm\", \"score_0_3\", \"side_pair\"]",
1229
+ "method_version": "int",
1230
+ "name": "str",
1231
+ "owner_method": "bool",
1232
+ "protocol": "str",
1233
+ "protocol_key": "str",
1234
+ "unit": "str | None",
1235
+ "updated_at": "str",
1236
+ },
1237
+ )
1238
+
1239
+ OrganizationKey = TypedDict(
1240
+ "OrganizationKey",
1241
+ {
1242
+ "id": "str",
1243
+ "prefix": "str",
1244
+ "scopes": "list[str]",
1245
+ },
1246
+ )
1247
+
1248
+ Organization = TypedDict(
1249
+ "Organization",
1250
+ {
1251
+ "id": "str",
1252
+ "key": "OrganizationKey",
1253
+ "kind": "Literal[\"personal\", \"organization\"]",
1254
+ "mode": "Literal[\"test\", \"live\"]",
1255
+ "name": "str",
1256
+ "plan": "Literal[\"free\", \"organization\"]",
1257
+ },
1258
+ )
1259
+
1260
+ OrganizationSettingsResponse = TypedDict(
1261
+ "OrganizationSettingsResponse",
1262
+ {
1263
+ "body_state_planner": "bool",
1264
+ },
1265
+ )
1266
+
1267
+ OrganizationSettingsUpdateRequest = TypedDict(
1268
+ "OrganizationSettingsUpdateRequest",
1269
+ {
1270
+ "body_state_planner": "bool",
1271
+ },
1272
+ )
1273
+
1274
+ OverrideSetRequest = TypedDict(
1275
+ "OverrideSetRequest",
1276
+ {
1277
+ "attributes": NotRequired["dict[str, Any]"],
1278
+ "back_in_service_on": NotRequired["str | None"],
1279
+ "count": NotRequired["int | None"],
1280
+ "kind": "Literal[\"added\", \"missing\", \"out_of_service\"]",
1281
+ "note": NotRequired["str | None"],
1282
+ },
1283
+ )
1284
+
1285
+ OverridesReplaceRequestOverridesItem = TypedDict(
1286
+ "OverridesReplaceRequestOverridesItem",
1287
+ {
1288
+ "attributes": NotRequired["dict[str, Any]"],
1289
+ "back_in_service_on": NotRequired["str | None"],
1290
+ "count": NotRequired["int | None"],
1291
+ "kind": "Literal[\"added\", \"missing\", \"out_of_service\"]",
1292
+ "note": NotRequired["str | None"],
1293
+ "token": "str",
1294
+ },
1295
+ )
1296
+
1297
+ OverridesReplaceRequest = TypedDict(
1298
+ "OverridesReplaceRequest",
1299
+ {
1300
+ "overrides": "list[OverridesReplaceRequestOverridesItem]",
1301
+ },
1302
+ )
1303
+
1304
+ OverridesResponseOverridesItem = TypedDict(
1305
+ "OverridesResponseOverridesItem",
1306
+ {
1307
+ "attributes": "dict[str, Any]",
1308
+ "back_in_service_on": "str | None",
1309
+ "count": "int | None",
1310
+ "kind": "Literal[\"added\", \"missing\", \"out_of_service\"]",
1311
+ "name": "str",
1312
+ "note": "str | None",
1313
+ "token": "str",
1314
+ },
1315
+ )
1316
+
1317
+ OverridesResponse = TypedDict(
1318
+ "OverridesResponse",
1319
+ {
1320
+ "inventory_revision": "int",
1321
+ "location": "str",
1322
+ "overrides": "list[OverridesResponseOverridesItem]",
1323
+ },
1324
+ )
1325
+
1326
+ ProgramJobResponseError0 = TypedDict(
1327
+ "ProgramJobResponseError0",
1328
+ {
1329
+ "code": "Literal[\"plan_refused\", \"teammate_left\", \"consent_withdrawn\", \"generation_failed\"]",
1330
+ "message": "str",
1331
+ },
1332
+ )
1333
+
1334
+ ProgramJobResponseResult0 = TypedDict(
1335
+ "ProgramJobResponseResult0",
1336
+ {
1337
+ "engine_version": "str | None",
1338
+ "inputs_ignored": "list[str]",
1339
+ "outcome": "Literal[\"started\", \"saved\", \"waiting_for_coach\"]",
1340
+ "program_id": "str",
1341
+ "proposal_id": "str | None",
1342
+ },
1343
+ )
1344
+
1345
+ ProgramJobResponse = TypedDict(
1346
+ "ProgramJobResponse",
1347
+ {
1348
+ "created_at": "str",
1349
+ "error": "ProgramJobResponseError0 | None",
1350
+ "finished_at": "str | None",
1351
+ "id": "str",
1352
+ "result": "ProgramJobResponseResult0 | None",
1353
+ "status": "Literal[\"queued\", \"running\", \"succeeded\", \"failed\"]",
1354
+ "teammate": "str",
1355
+ },
1356
+ )
1357
+
1358
+ ProgramRevisionsResponseDataItemApproval = TypedDict(
1359
+ "ProgramRevisionsResponseDataItemApproval",
1360
+ {
1361
+ "decided_at": "str | None",
1362
+ "mode": "Literal[\"automatic\", \"coach\"]",
1363
+ "status": "Literal[\"applied\", \"pending\", \"accepted\", \"declined\", \"superseded\"]",
1364
+ },
1365
+ )
1366
+
1367
+ ProgramRevisionsResponseDataItemCause = TypedDict(
1368
+ "ProgramRevisionsResponseDataItemCause",
1369
+ {
1370
+ "day_index": "int | None",
1371
+ "event_ids": "list[str]",
1372
+ "kind": "Literal[\"created\", \"week_feedback\", \"day_outcome\", \"constraint\", \"equipment_change\", \"schedule_change\", \"body_state\", \"observation_replay\", \"event_taken_back\"]",
1373
+ "session_id": "str | None",
1374
+ "summary": "str",
1375
+ "week_number": "int | None",
1376
+ },
1377
+ )
1378
+
1379
+ ProgramRevisionsResponseDataItemDiff0ChangesItemAfter0 = TypedDict(
1380
+ "ProgramRevisionsResponseDataItemDiff0ChangesItemAfter0",
1381
+ {
1382
+ "id": "str | None",
1383
+ "name": "str",
1384
+ },
1385
+ )
1386
+
1387
+ ProgramRevisionsResponseDataItemDiff0ChangesItemBefore0 = TypedDict(
1388
+ "ProgramRevisionsResponseDataItemDiff0ChangesItemBefore0",
1389
+ {
1390
+ "id": "str | None",
1391
+ "name": "str",
1392
+ },
1393
+ )
1394
+
1395
+ ProgramRevisionsResponseDataItemDiff0ChangesItem = TypedDict(
1396
+ "ProgramRevisionsResponseDataItemDiff0ChangesItem",
1397
+ {
1398
+ "after": "ProgramRevisionsResponseDataItemDiff0ChangesItemAfter0 | None",
1399
+ "before": "ProgramRevisionsResponseDataItemDiff0ChangesItemBefore0 | None",
1400
+ "day_index": "int",
1401
+ "pattern": "str",
1402
+ "session_id": "str | None",
1403
+ "week_number": "int",
1404
+ },
1405
+ )
1406
+
1407
+ ProgramRevisionsResponseDataItemDiff0 = TypedDict(
1408
+ "ProgramRevisionsResponseDataItemDiff0",
1409
+ {
1410
+ "changes": "list[ProgramRevisionsResponseDataItemDiff0ChangesItem]",
1411
+ "from_day": "int",
1412
+ "from_week": "int",
1413
+ "sessions_added": "int",
1414
+ "sessions_removed": "int",
1415
+ "summary": "str",
1416
+ "weeks_changed": "list[int]",
1417
+ },
1418
+ )
1419
+
1420
+ ProgramRevisionsResponseDataItemFeasibilityItem = TypedDict(
1421
+ "ProgramRevisionsResponseDataItemFeasibilityItem",
1422
+ {
1423
+ "feasible": "bool | None",
1424
+ "projected_final": "float | None",
1425
+ "quantity": "str",
1426
+ "shortfall": "float | None",
1427
+ "target": "float | None",
1428
+ "unit": "str",
1429
+ "warning": "str | None",
1430
+ },
1431
+ )
1432
+
1433
+ ProgramRevisionsResponseDataItem = TypedDict(
1434
+ "ProgramRevisionsResponseDataItem",
1435
+ {
1436
+ "applied_at": "str | None",
1437
+ "approval": "ProgramRevisionsResponseDataItemApproval",
1438
+ "cause": "ProgramRevisionsResponseDataItemCause",
1439
+ "created_at": "str",
1440
+ "diff": "ProgramRevisionsResponseDataItemDiff0 | None",
1441
+ "engine_version": "str",
1442
+ "feasibility": "list[ProgramRevisionsResponseDataItemFeasibilityItem]",
1443
+ "parent_revision": "int | None",
1444
+ "revision": "int",
1445
+ "warnings": "list[str]",
1446
+ },
1447
+ )
1448
+
1449
+ ProgramRevisionsResponse = TypedDict(
1450
+ "ProgramRevisionsResponse",
1451
+ {
1452
+ "data": "list[ProgramRevisionsResponseDataItem]",
1453
+ "next_cursor": "str | None",
1454
+ },
1455
+ )
1456
+
1457
+ ProposalResponseCause = TypedDict(
1458
+ "ProposalResponseCause",
1459
+ {
1460
+ "event_ids": "list[str]",
1461
+ "kind": "Literal[\"created\", \"week_feedback\", \"day_outcome\", \"constraint\", \"equipment_change\", \"schedule_change\", \"body_state\", \"observation_replay\", \"event_taken_back\"]",
1462
+ "summary": "str",
1463
+ },
1464
+ )
1465
+
1466
+ ProposalResponseDiff0ChangesItemAfter0 = TypedDict(
1467
+ "ProposalResponseDiff0ChangesItemAfter0",
1468
+ {
1469
+ "id": "str | None",
1470
+ "name": "str",
1471
+ },
1472
+ )
1473
+
1474
+ ProposalResponseDiff0ChangesItemBefore0 = TypedDict(
1475
+ "ProposalResponseDiff0ChangesItemBefore0",
1476
+ {
1477
+ "id": "str | None",
1478
+ "name": "str",
1479
+ },
1480
+ )
1481
+
1482
+ ProposalResponseDiff0ChangesItem = TypedDict(
1483
+ "ProposalResponseDiff0ChangesItem",
1484
+ {
1485
+ "after": "ProposalResponseDiff0ChangesItemAfter0 | None",
1486
+ "before": "ProposalResponseDiff0ChangesItemBefore0 | None",
1487
+ "day_index": "int",
1488
+ "pattern": "str",
1489
+ "session_id": "str | None",
1490
+ "week_number": "int",
1491
+ },
1492
+ )
1493
+
1494
+ ProposalResponseDiff0 = TypedDict(
1495
+ "ProposalResponseDiff0",
1496
+ {
1497
+ "changes": "list[ProposalResponseDiff0ChangesItem]",
1498
+ "from_day": "int",
1499
+ "from_week": "int",
1500
+ "sessions_added": "int",
1501
+ "sessions_removed": "int",
1502
+ "summary": "str",
1503
+ "weeks_changed": "list[int]",
1504
+ },
1505
+ )
1506
+
1507
+ ProposalResponse = TypedDict(
1508
+ "ProposalResponse",
1509
+ {
1510
+ "base_revision": "float",
1511
+ "cause": "ProposalResponseCause",
1512
+ "created_at": "str",
1513
+ "decided_at": "str | None",
1514
+ "decided_by": "str | None",
1515
+ "decline_reason": "str | None",
1516
+ "diff": "ProposalResponseDiff0 | None",
1517
+ "engine_version": "str",
1518
+ "id": "str",
1519
+ "program_id": "str",
1520
+ "status": "Literal[\"pending\", \"accepted\", \"declined\", \"superseded\"]",
1521
+ "teammate": "str",
1522
+ "warnings": "list[str]",
1523
+ },
1524
+ )
1525
+
1526
+ ProposalsResponseDataItemCause = TypedDict(
1527
+ "ProposalsResponseDataItemCause",
1528
+ {
1529
+ "event_ids": "list[str]",
1530
+ "kind": "Literal[\"created\", \"week_feedback\", \"day_outcome\", \"constraint\", \"equipment_change\", \"schedule_change\", \"body_state\", \"observation_replay\", \"event_taken_back\"]",
1531
+ "summary": "str",
1532
+ },
1533
+ )
1534
+
1535
+ ProposalsResponseDataItemDiff0ChangesItemAfter0 = TypedDict(
1536
+ "ProposalsResponseDataItemDiff0ChangesItemAfter0",
1537
+ {
1538
+ "id": "str | None",
1539
+ "name": "str",
1540
+ },
1541
+ )
1542
+
1543
+ ProposalsResponseDataItemDiff0ChangesItemBefore0 = TypedDict(
1544
+ "ProposalsResponseDataItemDiff0ChangesItemBefore0",
1545
+ {
1546
+ "id": "str | None",
1547
+ "name": "str",
1548
+ },
1549
+ )
1550
+
1551
+ ProposalsResponseDataItemDiff0ChangesItem = TypedDict(
1552
+ "ProposalsResponseDataItemDiff0ChangesItem",
1553
+ {
1554
+ "after": "ProposalsResponseDataItemDiff0ChangesItemAfter0 | None",
1555
+ "before": "ProposalsResponseDataItemDiff0ChangesItemBefore0 | None",
1556
+ "day_index": "int",
1557
+ "pattern": "str",
1558
+ "session_id": "str | None",
1559
+ "week_number": "int",
1560
+ },
1561
+ )
1562
+
1563
+ ProposalsResponseDataItemDiff0 = TypedDict(
1564
+ "ProposalsResponseDataItemDiff0",
1565
+ {
1566
+ "changes": "list[ProposalsResponseDataItemDiff0ChangesItem]",
1567
+ "from_day": "int",
1568
+ "from_week": "int",
1569
+ "sessions_added": "int",
1570
+ "sessions_removed": "int",
1571
+ "summary": "str",
1572
+ "weeks_changed": "list[int]",
1573
+ },
1574
+ )
1575
+
1576
+ ProposalsResponseDataItem = TypedDict(
1577
+ "ProposalsResponseDataItem",
1578
+ {
1579
+ "base_revision": "int",
1580
+ "cause": "ProposalsResponseDataItemCause",
1581
+ "created_at": "str",
1582
+ "decided_at": "str | None",
1583
+ "decided_by": "str | None",
1584
+ "decline_reason": "str | None",
1585
+ "diff": "ProposalsResponseDataItemDiff0 | None",
1586
+ "engine_version": "str",
1587
+ "id": "str",
1588
+ "program_id": "str",
1589
+ "status": "Literal[\"pending\", \"accepted\", \"declined\", \"superseded\"]",
1590
+ "teammate": "str",
1591
+ "warnings": "list[str]",
1592
+ },
1593
+ )
1594
+
1595
+ ProposalsResponse = TypedDict(
1596
+ "ProposalsResponse",
1597
+ {
1598
+ "data": "list[ProposalsResponseDataItem]",
1599
+ "next_cursor": "str | None",
1600
+ },
1601
+ )
1602
+
1603
+ PublicAdaptationVetoResponse = TypedDict(
1604
+ "PublicAdaptationVetoResponse",
1605
+ {
1606
+ "adaptation_id": "str",
1607
+ "adapted_remaining_prescription": "dict[str, Any]",
1608
+ "status": "Literal[\"vetoed\"]",
1609
+ "trigger": "str",
1610
+ "vetoed_at": NotRequired["str | None"],
1611
+ "vetoed_by_role": "Literal[\"teammate\", \"coach\"]",
1612
+ },
1613
+ )
1614
+
1615
+ RecordTeammateMeasurementBody = TypedDict(
1616
+ "RecordTeammateMeasurementBody",
1617
+ {
1618
+ "confidence": NotRequired["float | None"],
1619
+ "idempotency_key": "str",
1620
+ "instrument": NotRequired["str | None"],
1621
+ "measure": NotRequired["str | None"],
1622
+ "observed_at": "str",
1623
+ "protocol": "str",
1624
+ "quantity": "str",
1625
+ "source_device": NotRequired["str | None"],
1626
+ "unit": "str",
1627
+ "value": "float",
1628
+ },
1629
+ )
1630
+
1631
+ RecordedMeasurementResponse = TypedDict(
1632
+ "RecordedMeasurementResponse",
1633
+ {
1634
+ "assessment_test_id": "str | None",
1635
+ "assessment_test_version": "int | None",
1636
+ "confidence": "float",
1637
+ "created": "bool",
1638
+ "id": "str",
1639
+ "instrument_kind": "str | None",
1640
+ "measure": "str | None",
1641
+ "observed_at": "str",
1642
+ "protocol_key": "str | None",
1643
+ "protocol_kind": "Literal[\"none\", \"registered\", \"owner_test\"]",
1644
+ "quantity": "str",
1645
+ "status": "Literal[\"active\", \"superseded\", \"withdrawn\"]",
1646
+ "unit": "str",
1647
+ "unit_canonical": "str | None",
1648
+ "value": "float",
1649
+ "value_canonical": "float | None",
1650
+ "vouching_level": "int",
1651
+ },
1652
+ )
1653
+
1654
+ RetentionResponseDataItemPrevious = TypedDict(
1655
+ "RetentionResponseDataItemPrevious",
1656
+ {
1657
+ "count": "int | None",
1658
+ "share": "int | None",
1659
+ "total": "int | None",
1660
+ "withheld": "bool",
1661
+ },
1662
+ )
1663
+
1664
+ RetentionResponseDataItemValue = TypedDict(
1665
+ "RetentionResponseDataItemValue",
1666
+ {
1667
+ "count": "int | None",
1668
+ "share": "int | None",
1669
+ "total": "int | None",
1670
+ "withheld": "bool",
1671
+ },
1672
+ )
1673
+
1674
+ RetentionResponseDataItem = TypedDict(
1675
+ "RetentionResponseDataItem",
1676
+ {
1677
+ "available_on": "str | None",
1678
+ "definition": "str",
1679
+ "denominator": "str",
1680
+ "key": "Literal[\"still_training_at_90_days\", \"came_back_in_week_one\", \"trains_twice_a_week\", \"came_back_after_a_nudge\", \"visited_within_3_days\", \"first_session_in_week_one\", \"has_a_program\", \"trains_with_a_coach\", \"reached_out_within_7_days\", \"came_back_after_a_coach_message\"]",
1681
+ "parent_key": "Literal[\"still_training_at_90_days\", \"came_back_in_week_one\", \"trains_twice_a_week\", \"came_back_after_a_nudge\", \"visited_within_3_days\", \"first_session_in_week_one\", \"has_a_program\", \"trains_with_a_coach\", \"reached_out_within_7_days\", \"came_back_after_a_coach_message\"] | None",
1682
+ "previous": "RetentionResponseDataItemPrevious",
1683
+ "value": "RetentionResponseDataItemValue",
1684
+ },
1685
+ )
1686
+
1687
+ RetentionResponse = TypedDict(
1688
+ "RetentionResponse",
1689
+ {
1690
+ "data": "list[RetentionResponseDataItem]",
1691
+ "from": "str",
1692
+ "location": "str | None",
1693
+ "min_group_size": "float",
1694
+ "period": "Literal[30, 90]",
1695
+ "previous_from": "str",
1696
+ "previous_to": "str",
1697
+ "to": "str",
1698
+ },
1699
+ )
1700
+
1701
+ RevokeAttestationResponse = TypedDict(
1702
+ "RevokeAttestationResponse",
1703
+ {
1704
+ "attestation_id": "str",
1705
+ "revoked_at": "str",
1706
+ "status": "Literal[\"revoked\"]",
1707
+ },
1708
+ )
1709
+
1710
+ SandboxCatalogResponseBehaviorsItem = TypedDict(
1711
+ "SandboxCatalogResponseBehaviorsItem",
1712
+ {
1713
+ "description": "str",
1714
+ "name": "Literal[\"on_plan\", \"misses_sessions\", \"finds_it_hard\", \"reports_pain\"]",
1715
+ },
1716
+ )
1717
+
1718
+ SandboxCatalogResponsePresetsItem = TypedDict(
1719
+ "SandboxCatalogResponsePresetsItem",
1720
+ {
1721
+ "description": "str",
1722
+ "goal": "str",
1723
+ "history_weeks": "int",
1724
+ "name": "Literal[\"new_to_training\", \"returning_from_knee_injury\", \"endurance_runner\"]",
1725
+ "training_days_per_week": "int",
1726
+ },
1727
+ )
1728
+
1729
+ SandboxCatalogResponse = TypedDict(
1730
+ "SandboxCatalogResponse",
1731
+ {
1732
+ "behaviors": "list[SandboxCatalogResponseBehaviorsItem]",
1733
+ "presets": "list[SandboxCatalogResponsePresetsItem]",
1734
+ },
1735
+ )
1736
+
1737
+ SandboxResetResponse = TypedDict(
1738
+ "SandboxResetResponse",
1739
+ {
1740
+ "teammates_removed": "int",
1741
+ },
1742
+ )
1743
+
1744
+ SandboxTeammateResponseHistoryResults = TypedDict(
1745
+ "SandboxTeammateResponseHistoryResults",
1746
+ {
1747
+ "accepted": "int",
1748
+ "duplicate": "int",
1749
+ "rejected": "int",
1750
+ },
1751
+ )
1752
+
1753
+ SandboxTeammateResponseHistory = TypedDict(
1754
+ "SandboxTeammateResponseHistory",
1755
+ {
1756
+ "events": "int",
1757
+ "results": "SandboxTeammateResponseHistoryResults",
1758
+ "weeks": "int",
1759
+ },
1760
+ )
1761
+
1762
+ SandboxTeammateResponseTeammate = TypedDict(
1763
+ "SandboxTeammateResponseTeammate",
1764
+ {
1765
+ "external_id": "str",
1766
+ "preset": "Literal[\"new_to_training\", \"returning_from_knee_injury\", \"endurance_runner\"]",
1767
+ "seed": "int",
1768
+ "simulated": "bool",
1769
+ "weeks_simulated": "int",
1770
+ },
1771
+ )
1772
+
1773
+ SandboxTeammateResponse = TypedDict(
1774
+ "SandboxTeammateResponse",
1775
+ {
1776
+ "history": "SandboxTeammateResponseHistory",
1777
+ "program_job_id": "str | None",
1778
+ "simulated_now": "str",
1779
+ "teammate": "SandboxTeammateResponseTeammate",
1780
+ },
1781
+ )
1782
+
1783
+ SetGoalRequestTarget0 = TypedDict(
1784
+ "SetGoalRequestTarget0",
1785
+ {
1786
+ "quantity": "Literal[\"arm_circumference\", \"bodyweight_loss\", \"squat_e1rm\", \"bench_e1rm\", \"deadlift_e1rm\", \"run_5k_time\"]",
1787
+ "unit": NotRequired["str"],
1788
+ "value": "float | str",
1789
+ },
1790
+ )
1791
+
1792
+ SetGoalRequest = TypedDict(
1793
+ "SetGoalRequest",
1794
+ {
1795
+ "due_date": NotRequired["str | None"],
1796
+ "target": NotRequired["SetGoalRequestTarget0 | None"],
1797
+ "title": NotRequired["str"],
1798
+ "type": "Literal[\"strength\", \"hypertrophy\", \"power\", \"endurance\", \"fat_loss\", \"general_fitness\", \"vertical_jump\", \"sprint_speed\", \"mobility\"]",
1799
+ },
1800
+ )
1801
+
1802
+ SimulateWeekRequest = TypedDict(
1803
+ "SimulateWeekRequest",
1804
+ {
1805
+ "behavior": "Literal[\"on_plan\", \"misses_sessions\", \"finds_it_hard\", \"reports_pain\"]",
1806
+ "include_device_readings": NotRequired["bool"],
1807
+ "include_results": NotRequired["bool"],
1808
+ "seed": NotRequired["float"],
1809
+ },
1810
+ )
1811
+
1812
+ SimulateWeekResponseEvents = TypedDict(
1813
+ "SimulateWeekResponseEvents",
1814
+ {
1815
+ "accepted": "int",
1816
+ "duplicate": "int",
1817
+ "rejected": "int",
1818
+ },
1819
+ )
1820
+
1821
+ SimulateWeekResponseResults = TypedDict(
1822
+ "SimulateWeekResponseResults",
1823
+ {
1824
+ "attestation_ids": "list[str]",
1825
+ "measurement_ids": "list[str]",
1826
+ },
1827
+ )
1828
+
1829
+ SimulateWeekResponseWeek = TypedDict(
1830
+ "SimulateWeekResponseWeek",
1831
+ {
1832
+ "from": "str",
1833
+ "number": "int",
1834
+ "to": "str",
1835
+ },
1836
+ )
1837
+
1838
+ SimulateWeekResponse = TypedDict(
1839
+ "SimulateWeekResponse",
1840
+ {
1841
+ "events": "SimulateWeekResponseEvents",
1842
+ "program_id": "str | None",
1843
+ "replan_requested": "bool",
1844
+ "results": NotRequired["SimulateWeekResponseResults"],
1845
+ "simulated_now": "str",
1846
+ "week": "SimulateWeekResponseWeek",
1847
+ },
1848
+ )
1849
+
1850
+ SourceConnectedResponse = TypedDict(
1851
+ "SourceConnectedResponse",
1852
+ {
1853
+ "route": "str",
1854
+ "state": "Literal[\"connected\"]",
1855
+ },
1856
+ )
1857
+
1858
+ SourceDisconnectedResponseDeleted = TypedDict(
1859
+ "SourceDisconnectedResponseDeleted",
1860
+ {
1861
+ "events": "int",
1862
+ "logged_sets": "int",
1863
+ "observations": "int",
1864
+ },
1865
+ )
1866
+ """What this call deleted. A second call deletes nothing and answers zeros."""
1867
+
1868
+ SourceDisconnectedResponse = TypedDict(
1869
+ "SourceDisconnectedResponse",
1870
+ {
1871
+ "deleted": "SourceDisconnectedResponseDeleted",
1872
+ "route": "str",
1873
+ "state": "Literal[\"disconnected\"]",
1874
+ },
1875
+ )
1876
+
1877
+ SourcesResponseDataItem = TypedDict(
1878
+ "SourcesResponseDataItem",
1879
+ {
1880
+ "may_store": "bool",
1881
+ "route": "str",
1882
+ "state": "Literal[\"connected\", \"disconnected\"]",
1883
+ "vera_may_read": "bool",
1884
+ },
1885
+ )
1886
+
1887
+ SourcesResponse = TypedDict(
1888
+ "SourcesResponse",
1889
+ {
1890
+ "data": "list[SourcesResponseDataItem]",
1891
+ },
1892
+ )
1893
+
1894
+ Sport = TypedDict(
1895
+ "Sport",
1896
+ {
1897
+ "category": "str",
1898
+ "emphases": "SportEmphases",
1899
+ "energy_systems": "SportEnergySystem",
1900
+ "id": "str",
1901
+ "injury_risk_areas": "list[str]",
1902
+ "key_patterns": "list[str]",
1903
+ "name": "str",
1904
+ "positions": "list[str]",
1905
+ "season_weeks": "int",
1906
+ },
1907
+ )
1908
+
1909
+ SportEmphases = TypedDict(
1910
+ "SportEmphases",
1911
+ {
1912
+ "agility": "float",
1913
+ "endurance": "float",
1914
+ "mobility": "float",
1915
+ "power": "float",
1916
+ "speed": "float",
1917
+ "strength": "float",
1918
+ },
1919
+ )
1920
+
1921
+ SportEnergySystem = TypedDict(
1922
+ "SportEnergySystem",
1923
+ {
1924
+ "atp_pc": "float",
1925
+ "glycolytic": "float",
1926
+ "oxidative": "float",
1927
+ },
1928
+ )
1929
+
1930
+ SportList = TypedDict(
1931
+ "SportList",
1932
+ {
1933
+ "sports": "list[Sport]",
1934
+ "total": "int",
1935
+ },
1936
+ )
1937
+
1938
+ StartTodaySessionRequest = TypedDict(
1939
+ "StartTodaySessionRequest",
1940
+ {
1941
+ "effort": NotRequired["Literal[\"as_planned\", \"easier\", \"harder\"]"],
1942
+ },
1943
+ )
1944
+
1945
+ StartTodaySessionResponseSessionBlocksItemLoad0 = TypedDict(
1946
+ "StartTodaySessionResponseSessionBlocksItemLoad0",
1947
+ {
1948
+ "unit": "Literal[\"kg\", \"lb\"]",
1949
+ "value": "float",
1950
+ },
1951
+ )
1952
+
1953
+ StartTodaySessionResponseSessionBlocksItemMovement = TypedDict(
1954
+ "StartTodaySessionResponseSessionBlocksItemMovement",
1955
+ {
1956
+ "id": "str | None",
1957
+ "name": "str",
1958
+ },
1959
+ )
1960
+
1961
+ StartTodaySessionResponseSessionBlocksItem = TypedDict(
1962
+ "StartTodaySessionResponseSessionBlocksItem",
1963
+ {
1964
+ "distance_meters": "float | None",
1965
+ "duration_seconds": "float | None",
1966
+ "effort_target": "float | None",
1967
+ "load": "StartTodaySessionResponseSessionBlocksItemLoad0 | None",
1968
+ "movement": "StartTodaySessionResponseSessionBlocksItemMovement",
1969
+ "notes": "str | None",
1970
+ "reps": "str | None",
1971
+ "rest_seconds": "float | None",
1972
+ "sets": "int | None",
1973
+ },
1974
+ )
1975
+
1976
+ StartTodaySessionResponseSession = TypedDict(
1977
+ "StartTodaySessionResponseSession",
1978
+ {
1979
+ "blocks": "list[StartTodaySessionResponseSessionBlocksItem]",
1980
+ "day_index": "int | None",
1981
+ "id": "str",
1982
+ "title": "str | None",
1983
+ "week_number": "int",
1984
+ },
1985
+ )
1986
+
1987
+ StartTodaySessionResponse = TypedDict(
1988
+ "StartTodaySessionResponse",
1989
+ {
1990
+ "date": "str",
1991
+ "effort": "Literal[\"as_planned\", \"easier\", \"harder\"]",
1992
+ "engine_version": "str | None",
1993
+ "program_id": "str",
1994
+ "revision": "int | None",
1995
+ "session": "StartTodaySessionResponseSession",
1996
+ "started_at": "str",
1997
+ "time_zone": "str",
1998
+ },
1999
+ )
2000
+
2001
+ TeammateEventsRequestEventsItem = TypedDict(
2002
+ "TeammateEventsRequestEventsItem",
2003
+ {
2004
+ "at": NotRequired["str"],
2005
+ "data": "dict[str, Any]",
2006
+ "idempotency_key": NotRequired["str"],
2007
+ "type": "Literal[\"observation\", \"constraint\", \"equipment_change\", \"schedule_change\", \"logged_set\", \"visit_check_in\"]",
2008
+ },
2009
+ )
2010
+
2011
+ TeammateEventsRequest = TypedDict(
2012
+ "TeammateEventsRequest",
2013
+ {
2014
+ "events": "list[TeammateEventsRequestEventsItem]",
2015
+ },
2016
+ )
2017
+
2018
+ TeammateInviteRequest = TypedDict(
2019
+ "TeammateInviteRequest",
2020
+ {
2021
+ "delivery": "Literal[\"email\", \"link\"]",
2022
+ "request_consent": NotRequired["list[Literal[\"events\", \"programs\", \"body_state\", \"usage_insights\", \"at_risk\", \"program_setup\", \"record\"]]"],
2023
+ },
2024
+ )
2025
+
2026
+ TeammateInviteResponse = TypedDict(
2027
+ "TeammateInviteResponse",
2028
+ {
2029
+ "claim_url": NotRequired["str"],
2030
+ "expires_at": "str",
2031
+ "status": "Literal[\"invited\"]",
2032
+ },
2033
+ )
2034
+
2035
+ TeammateListResponseDataItemConsent0 = TypedDict(
2036
+ "TeammateListResponseDataItemConsent0",
2037
+ {
2038
+ "at_risk": "bool",
2039
+ "body_state": "bool",
2040
+ "events": "bool",
2041
+ "program_setup": "bool",
2042
+ "programs": "bool",
2043
+ "record": "bool",
2044
+ "usage_insights": "bool",
2045
+ },
2046
+ )
2047
+
2048
+ TeammateListResponseDataItem = TypedDict(
2049
+ "TeammateListResponseDataItem",
2050
+ {
2051
+ "claimed_at": "str | None",
2052
+ "consent": "TeammateListResponseDataItemConsent0 | None",
2053
+ "created_at": "str",
2054
+ "display_name": "str | None",
2055
+ "email": "str | None",
2056
+ "external_id": "str | None",
2057
+ "home_location_external_id": "str | None",
2058
+ "id": "str",
2059
+ "invited_at": "str | None",
2060
+ "metadata": "dict[str, Any]",
2061
+ "mode": "Literal[\"test\", \"live\"]",
2062
+ "status": "Literal[\"unclaimed\", \"invited\", \"claimed\", \"left\"]",
2063
+ "timezone": "str | None",
2064
+ "updated_at": "str",
2065
+ },
2066
+ )
2067
+
2068
+ TeammateListResponse = TypedDict(
2069
+ "TeammateListResponse",
2070
+ {
2071
+ "data": "list[TeammateListResponseDataItem]",
2072
+ "next_cursor": "str | None",
2073
+ },
2074
+ )
2075
+
2076
+ TeammateProgramsResponseDataItem = TypedDict(
2077
+ "TeammateProgramsResponseDataItem",
2078
+ {
2079
+ "created_by": "Literal[\"organization\", \"teammate\", \"coach\"]",
2080
+ "end_date": "str | None",
2081
+ "engine_version": "str | None",
2082
+ "id": "str",
2083
+ "name": "str",
2084
+ "revision": "int | None",
2085
+ "start_date": "str | None",
2086
+ "status": "Literal[\"active\", \"saved\", \"waiting_for_coach\", \"completed\"]",
2087
+ "weekly_sessions": "int | None",
2088
+ "weeks": "int | None",
2089
+ },
2090
+ )
2091
+
2092
+ TeammateProgramsResponse = TypedDict(
2093
+ "TeammateProgramsResponse",
2094
+ {
2095
+ "data": "list[TeammateProgramsResponseDataItem]",
2096
+ },
2097
+ )
2098
+
2099
+ TeammateResponseConsent0 = TypedDict(
2100
+ "TeammateResponseConsent0",
2101
+ {
2102
+ "at_risk": "bool",
2103
+ "body_state": "bool",
2104
+ "events": "bool",
2105
+ "program_setup": "bool",
2106
+ "programs": "bool",
2107
+ "record": "bool",
2108
+ "usage_insights": "bool",
2109
+ },
2110
+ )
2111
+
2112
+ TeammateResponse = TypedDict(
2113
+ "TeammateResponse",
2114
+ {
2115
+ "claimed_at": "str | None",
2116
+ "consent": "TeammateResponseConsent0 | None",
2117
+ "created_at": "str",
2118
+ "display_name": "str | None",
2119
+ "email": "str | None",
2120
+ "external_id": "str | None",
2121
+ "home_location_external_id": "str | None",
2122
+ "id": "str",
2123
+ "invited_at": "str | None",
2124
+ "metadata": "dict[str, Any]",
2125
+ "mode": "Literal[\"test\", \"live\"]",
2126
+ "status": "Literal[\"unclaimed\", \"invited\", \"claimed\", \"left\"]",
2127
+ "timezone": "str | None",
2128
+ "updated_at": "str",
2129
+ },
2130
+ )
2131
+
2132
+ TeammateSettingsResponseBodyStatePlanner = TypedDict(
2133
+ "TeammateSettingsResponseBodyStatePlanner",
2134
+ {
2135
+ "effective": "bool",
2136
+ "source": "Literal[\"default\", \"organization\", \"teammate\"]",
2137
+ "value": "bool | None",
2138
+ },
2139
+ )
2140
+ """Whether the planner may change programs from body state. Off unless you turn it on. The teammate's own value wins over the organization's."""
2141
+
2142
+ TeammateSettingsResponse = TypedDict(
2143
+ "TeammateSettingsResponse",
2144
+ {
2145
+ "body_state_planner": NotRequired["TeammateSettingsResponseBodyStatePlanner"],
2146
+ },
2147
+ )
2148
+
2149
+ TeammateSettingsUpdateRequest = TypedDict(
2150
+ "TeammateSettingsUpdateRequest",
2151
+ {
2152
+ "body_state_planner": "bool | None",
2153
+ },
2154
+ )
2155
+
2156
+ TeammateUpsertRequest = TypedDict(
2157
+ "TeammateUpsertRequest",
2158
+ {
2159
+ "display_name": NotRequired["str | None"],
2160
+ "email": NotRequired["str | None"],
2161
+ "home_location_external_id": NotRequired["str | None"],
2162
+ "metadata": NotRequired["dict[str, Any] | None"],
2163
+ "timezone": NotRequired["str | None"],
2164
+ },
2165
+ )
2166
+
2167
+ TodaySessionResponseSession0BlocksItemLoad0 = TypedDict(
2168
+ "TodaySessionResponseSession0BlocksItemLoad0",
2169
+ {
2170
+ "unit": "Literal[\"kg\", \"lb\"]",
2171
+ "value": "float",
2172
+ },
2173
+ )
2174
+
2175
+ TodaySessionResponseSession0BlocksItemMovement = TypedDict(
2176
+ "TodaySessionResponseSession0BlocksItemMovement",
2177
+ {
2178
+ "id": "str | None",
2179
+ "name": "str",
2180
+ },
2181
+ )
2182
+
2183
+ TodaySessionResponseSession0BlocksItem = TypedDict(
2184
+ "TodaySessionResponseSession0BlocksItem",
2185
+ {
2186
+ "distance_meters": "float | None",
2187
+ "duration_seconds": "float | None",
2188
+ "effort_target": "float | None",
2189
+ "load": "TodaySessionResponseSession0BlocksItemLoad0 | None",
2190
+ "movement": "TodaySessionResponseSession0BlocksItemMovement",
2191
+ "notes": "str | None",
2192
+ "reps": "str | None",
2193
+ "rest_seconds": "float | None",
2194
+ "sets": "int | None",
2195
+ },
2196
+ )
2197
+
2198
+ TodaySessionResponseSession0 = TypedDict(
2199
+ "TodaySessionResponseSession0",
2200
+ {
2201
+ "blocks": "list[TodaySessionResponseSession0BlocksItem]",
2202
+ "day_index": "int | None",
2203
+ "id": "str",
2204
+ "title": "str | None",
2205
+ "week_number": "int",
2206
+ },
2207
+ )
2208
+
2209
+ TodaySessionResponse = TypedDict(
2210
+ "TodaySessionResponse",
2211
+ {
2212
+ "date": "str",
2213
+ "effort": "Literal[\"as_planned\", \"easier\", \"harder\"]",
2214
+ "engine_version": "str | None",
2215
+ "next_session_date": "str | None",
2216
+ "program_id": "str | None",
2217
+ "revision": "int | None",
2218
+ "session": "TodaySessionResponseSession0 | None",
2219
+ "time_zone": "str",
2220
+ },
2221
+ )
2222
+
2223
+ TrafficResponseWeeksItemActiveTeammates = TypedDict(
2224
+ "TrafficResponseWeeksItemActiveTeammates",
2225
+ {
2226
+ "value": "int | None",
2227
+ "withheld": "bool",
2228
+ },
2229
+ )
2230
+
2231
+ TrafficResponseWeeksItemBucketsItem = TypedDict(
2232
+ "TrafficResponseWeeksItemBucketsItem",
2233
+ {
2234
+ "check_ins": "int | None",
2235
+ "date": "str",
2236
+ "hour": "int | None",
2237
+ "withheld": "bool",
2238
+ },
2239
+ )
2240
+
2241
+ TrafficResponseWeeksItem = TypedDict(
2242
+ "TrafficResponseWeeksItem",
2243
+ {
2244
+ "active_teammates": "TrafficResponseWeeksItemActiveTeammates",
2245
+ "buckets": "list[TrafficResponseWeeksItemBucketsItem]",
2246
+ "from": "str",
2247
+ "to": "str",
2248
+ },
2249
+ )
2250
+
2251
+ TrafficResponse = TypedDict(
2252
+ "TrafficResponse",
2253
+ {
2254
+ "bucket": "Literal[\"day\", \"hour\"]",
2255
+ "from": "str",
2256
+ "location": "str | None",
2257
+ "min_group_size": "float",
2258
+ "time_zone": "str | None",
2259
+ "to": "str",
2260
+ "weeks": "list[TrafficResponseWeeksItem]",
2261
+ },
2262
+ )
2263
+
2264
+ UndoEventResponse = TypedDict(
2265
+ "UndoEventResponse",
2266
+ {
2267
+ "accepted_at": "str | None",
2268
+ "id": "str",
2269
+ "key": "str",
2270
+ "occurred_at": "str | None",
2271
+ "status": "Literal[\"taken_back\"]",
2272
+ "taken_back_at": "str",
2273
+ "type": "Literal[\"observation\", \"constraint\", \"equipment_change\", \"schedule_change\", \"logged_set\", \"visit_check_in\"]",
2274
+ },
2275
+ )
2276
+
2277
+ UpdateAdaptationProfileRequest = TypedDict(
2278
+ "UpdateAdaptationProfileRequest",
2279
+ {
2280
+ "custom_triggers": NotRequired["list[dict[str, Any]]"],
2281
+ "enabled": NotRequired["bool"],
2282
+ "policy": NotRequired["str"],
2283
+ "preset": NotRequired["str"],
2284
+ },
2285
+ )
2286
+
2287
+ UpdateOrgAssessmentTestBody = TypedDict(
2288
+ "UpdateOrgAssessmentTestBody",
2289
+ {
2290
+ "better": NotRequired["Literal[\"higher\", \"lower\"]"],
2291
+ "measure": NotRequired["Literal[\"number\", \"time_s\", \"reps\", \"load_reps\", \"distance_m\", \"length_cm\", \"score_0_3\", \"side_pair\"]"],
2292
+ "name": NotRequired["str"],
2293
+ "protocol": NotRequired["str"],
2294
+ "unit": NotRequired["str | None"],
2295
+ },
2296
+ )
2297
+
2298
+ WebhookDeliveryListResponseDataItemAttemptLogItem = TypedDict(
2299
+ "WebhookDeliveryListResponseDataItemAttemptLogItem",
2300
+ {
2301
+ "attempt": "int",
2302
+ "attempted_at": "str",
2303
+ "error": "str | None",
2304
+ "response_ms": "int",
2305
+ "status_code": "int | None",
2306
+ },
2307
+ )
2308
+
2309
+ WebhookDeliveryListResponseDataItem = TypedDict(
2310
+ "WebhookDeliveryListResponseDataItem",
2311
+ {
2312
+ "attempt_log": "list[WebhookDeliveryListResponseDataItemAttemptLogItem]",
2313
+ "attempts": "int",
2314
+ "created_at": "str",
2315
+ "delivered_at": "str | None",
2316
+ "drop_reason": "str | None",
2317
+ "event_id": "str",
2318
+ "id": "str",
2319
+ "last_error": "str | None",
2320
+ "last_response_ms": "int | None",
2321
+ "last_status_code": "int | None",
2322
+ "next_attempt_at": "str | None",
2323
+ "status": "Literal[\"pending\", \"delivered\", \"failed\", \"dropped\"]",
2324
+ "type": "str",
2325
+ },
2326
+ )
2327
+
2328
+ WebhookDeliveryListResponse = TypedDict(
2329
+ "WebhookDeliveryListResponse",
2330
+ {
2331
+ "data": "list[WebhookDeliveryListResponseDataItem]",
2332
+ "next_cursor": "str | None",
2333
+ },
2334
+ )
2335
+
2336
+ WebhookEndpointCreateRequest = TypedDict(
2337
+ "WebhookEndpointCreateRequest",
2338
+ {
2339
+ "description": NotRequired["str | None"],
2340
+ "events": "list[Literal[\"program.revised\", \"session.changed\", \"proposal.created\", \"feasibility.warning\", \"event.rejected\", \"teammate.claimed\", \"teammate.disconnected\", \"location.inventory_changed\", \"teammate.at_risk\", \"workout.logged\", \"body_state.changed\", \"session.adapted\", \"adaptation.vetoed\", \"measurement.recorded\", \"measurement.corrected\", \"measurement.withdrawn\", \"attestation.created\", \"attestation.revoked\"]]",
2341
+ "url": "str",
2342
+ },
2343
+ )
2344
+
2345
+ WebhookEndpointCreatedResponse = TypedDict(
2346
+ "WebhookEndpointCreatedResponse",
2347
+ {
2348
+ "created_at": "str",
2349
+ "description": "str | None",
2350
+ "disabled_reason": "str | None",
2351
+ "events": "list[str]",
2352
+ "id": "str",
2353
+ "mode": "Literal[\"test\", \"live\"]",
2354
+ "previous_secret_expires_at": "str | None",
2355
+ "secret": "str",
2356
+ "status": "Literal[\"active\", \"paused\", \"disabled\"]",
2357
+ "updated_at": "str",
2358
+ "url": "str",
2359
+ },
2360
+ )
2361
+
2362
+ WebhookEndpointListResponseDataItem = TypedDict(
2363
+ "WebhookEndpointListResponseDataItem",
2364
+ {
2365
+ "created_at": "str",
2366
+ "description": "str | None",
2367
+ "disabled_reason": "str | None",
2368
+ "events": "list[str]",
2369
+ "id": "str",
2370
+ "mode": "Literal[\"test\", \"live\"]",
2371
+ "previous_secret_expires_at": "str | None",
2372
+ "status": "Literal[\"active\", \"paused\", \"disabled\"]",
2373
+ "updated_at": "str",
2374
+ "url": "str",
2375
+ },
2376
+ )
2377
+
2378
+ WebhookEndpointListResponse = TypedDict(
2379
+ "WebhookEndpointListResponse",
2380
+ {
2381
+ "data": "list[WebhookEndpointListResponseDataItem]",
2382
+ "next_cursor": "str | None",
2383
+ },
2384
+ )
2385
+
2386
+ WebhookEndpointResponse = TypedDict(
2387
+ "WebhookEndpointResponse",
2388
+ {
2389
+ "created_at": "str",
2390
+ "description": "str | None",
2391
+ "disabled_reason": "str | None",
2392
+ "events": "list[str]",
2393
+ "id": "str",
2394
+ "mode": "Literal[\"test\", \"live\"]",
2395
+ "previous_secret_expires_at": "str | None",
2396
+ "status": "Literal[\"active\", \"paused\", \"disabled\"]",
2397
+ "updated_at": "str",
2398
+ "url": "str",
2399
+ },
2400
+ )
2401
+
2402
+ WebhookEndpointUpdateRequest = TypedDict(
2403
+ "WebhookEndpointUpdateRequest",
2404
+ {
2405
+ "description": NotRequired["str | None"],
2406
+ "events": NotRequired["list[Literal[\"program.revised\", \"session.changed\", \"proposal.created\", \"feasibility.warning\", \"event.rejected\", \"teammate.claimed\", \"teammate.disconnected\", \"location.inventory_changed\", \"teammate.at_risk\", \"workout.logged\", \"body_state.changed\", \"session.adapted\", \"adaptation.vetoed\", \"measurement.recorded\", \"measurement.corrected\", \"measurement.withdrawn\", \"attestation.created\", \"attestation.revoked\"]]"],
2407
+ "status": NotRequired["Literal[\"active\", \"paused\"]"],
2408
+ "url": NotRequired["str"],
2409
+ },
2410
+ )
2411
+
2412
+ WebhookSecretRotatedResponse = TypedDict(
2413
+ "WebhookSecretRotatedResponse",
2414
+ {
2415
+ "previous_secret_expires_at": "str",
2416
+ "secret": "str",
2417
+ },
2418
+ )
2419
+
2420
+ WebhookAdaptationVetoedData = TypedDict(
2421
+ "WebhookAdaptationVetoedData",
2422
+ {
2423
+ "adaptation_id": "str",
2424
+ "program_id": "str",
2425
+ "teammate": "str",
2426
+ "trigger": "str",
2427
+ "vetoed_at": "str",
2428
+ "vetoed_by_role": "Literal[\"teammate\", \"coach\"]",
2429
+ },
2430
+ )
2431
+
2432
+ WebhookAdaptationVetoed = TypedDict(
2433
+ "WebhookAdaptationVetoed",
2434
+ {
2435
+ "created_at": "str",
2436
+ "data": "WebhookAdaptationVetoedData",
2437
+ "id": "str",
2438
+ "mode": "Literal[\"test\", \"live\"]",
2439
+ "type": "Literal[\"adaptation.vetoed\"]",
2440
+ },
2441
+ )
2442
+
2443
+ WebhookAttestationCreatedData = TypedDict(
2444
+ "WebhookAttestationCreatedData",
2445
+ {
2446
+ "attestation_id": "str",
2447
+ "issued_at": "str",
2448
+ "measurement_id": "str",
2449
+ "protocol_key": "str",
2450
+ "protocol_kind": "Literal[\"none\", \"registered\", \"owner_test\"]",
2451
+ "quantity": "str",
2452
+ "teammate": "str",
2453
+ "vouching_level": "float",
2454
+ },
2455
+ )
2456
+
2457
+ WebhookAttestationCreated = TypedDict(
2458
+ "WebhookAttestationCreated",
2459
+ {
2460
+ "created_at": "str",
2461
+ "data": "WebhookAttestationCreatedData",
2462
+ "id": "str",
2463
+ "mode": "Literal[\"test\", \"live\"]",
2464
+ "type": "Literal[\"attestation.created\"]",
2465
+ },
2466
+ )
2467
+
2468
+ WebhookAttestationRevokedData = TypedDict(
2469
+ "WebhookAttestationRevokedData",
2470
+ {
2471
+ "attestation_id": "str",
2472
+ "measurement_id": "str",
2473
+ "protocol_key": "str",
2474
+ "protocol_kind": "Literal[\"none\", \"registered\", \"owner_test\"]",
2475
+ "quantity": "str",
2476
+ "revoked_at": "str",
2477
+ "teammate": "str",
2478
+ "vouching_level": "float",
2479
+ },
2480
+ )
2481
+
2482
+ WebhookAttestationRevoked = TypedDict(
2483
+ "WebhookAttestationRevoked",
2484
+ {
2485
+ "created_at": "str",
2486
+ "data": "WebhookAttestationRevokedData",
2487
+ "id": "str",
2488
+ "mode": "Literal[\"test\", \"live\"]",
2489
+ "type": "Literal[\"attestation.revoked\"]",
2490
+ },
2491
+ )
2492
+
2493
+ WebhookBodyStateChangedData = TypedDict(
2494
+ "WebhookBodyStateChangedData",
2495
+ {
2496
+ "computed_at": "str",
2497
+ "teammate": "str",
2498
+ },
2499
+ )
2500
+
2501
+ WebhookBodyStateChanged = TypedDict(
2502
+ "WebhookBodyStateChanged",
2503
+ {
2504
+ "created_at": "str",
2505
+ "data": "WebhookBodyStateChangedData",
2506
+ "id": "str",
2507
+ "mode": "Literal[\"test\", \"live\"]",
2508
+ "type": "Literal[\"body_state.changed\"]",
2509
+ },
2510
+ )
2511
+
2512
+ WebhookEventRejectedDataReason = TypedDict(
2513
+ "WebhookEventRejectedDataReason",
2514
+ {
2515
+ "code": "str",
2516
+ "message": "str",
2517
+ },
2518
+ )
2519
+
2520
+ WebhookEventRejectedData = TypedDict(
2521
+ "WebhookEventRejectedData",
2522
+ {
2523
+ "event_id": "str",
2524
+ "reason": "WebhookEventRejectedDataReason",
2525
+ "teammate": "str",
2526
+ "type": "str",
2527
+ },
2528
+ )
2529
+
2530
+ WebhookEventRejected = TypedDict(
2531
+ "WebhookEventRejected",
2532
+ {
2533
+ "created_at": "str",
2534
+ "data": "WebhookEventRejectedData",
2535
+ "id": "str",
2536
+ "mode": "Literal[\"test\", \"live\"]",
2537
+ "type": "Literal[\"event.rejected\"]",
2538
+ },
2539
+ )
2540
+
2541
+ WebhookFeasibilityWarningDataTarget = TypedDict(
2542
+ "WebhookFeasibilityWarningDataTarget",
2543
+ {
2544
+ "quantity": "str",
2545
+ "unit": "str",
2546
+ },
2547
+ )
2548
+
2549
+ WebhookFeasibilityWarningData = TypedDict(
2550
+ "WebhookFeasibilityWarningData",
2551
+ {
2552
+ "program_id": "str",
2553
+ "revision": "int",
2554
+ "target": "WebhookFeasibilityWarningDataTarget",
2555
+ "teammate": "str",
2556
+ "warning": "str",
2557
+ },
2558
+ )
2559
+
2560
+ WebhookFeasibilityWarning = TypedDict(
2561
+ "WebhookFeasibilityWarning",
2562
+ {
2563
+ "created_at": "str",
2564
+ "data": "WebhookFeasibilityWarningData",
2565
+ "id": "str",
2566
+ "mode": "Literal[\"test\", \"live\"]",
2567
+ "type": "Literal[\"feasibility.warning\"]",
2568
+ },
2569
+ )
2570
+
2571
+ WebhookLocationInventoryChangedDataLocation = TypedDict(
2572
+ "WebhookLocationInventoryChangedDataLocation",
2573
+ {
2574
+ "external_id": "str",
2575
+ },
2576
+ )
2577
+
2578
+ WebhookLocationInventoryChangedData = TypedDict(
2579
+ "WebhookLocationInventoryChangedData",
2580
+ {
2581
+ "added": "list[str]",
2582
+ "cause": "Literal[\"baseline_changed\", \"override_changed\", \"out_of_service\", \"back_in_service\", \"location_changed\", \"location_archived\", \"sync\"]",
2583
+ "changed_at": "str",
2584
+ "inventory_revision": "int",
2585
+ "location": "WebhookLocationInventoryChangedDataLocation",
2586
+ "removed": "list[str]",
2587
+ "teammates_affected": "int",
2588
+ },
2589
+ )
2590
+
2591
+ WebhookLocationInventoryChanged = TypedDict(
2592
+ "WebhookLocationInventoryChanged",
2593
+ {
2594
+ "created_at": "str",
2595
+ "data": "WebhookLocationInventoryChangedData",
2596
+ "id": "str",
2597
+ "mode": "Literal[\"test\", \"live\"]",
2598
+ "type": "Literal[\"location.inventory_changed\"]",
2599
+ },
2600
+ )
2601
+
2602
+ WebhookMeasurementCorrectedData = TypedDict(
2603
+ "WebhookMeasurementCorrectedData",
2604
+ {
2605
+ "corrected_at": "str",
2606
+ "measurement_id": "str",
2607
+ "protocol_key": "str",
2608
+ "protocol_kind": "Literal[\"none\", \"registered\", \"owner_test\"]",
2609
+ "quantity": "str",
2610
+ "supersedes_id": "str",
2611
+ "teammate": "str",
2612
+ "vouching_level": "float",
2613
+ },
2614
+ )
2615
+
2616
+ WebhookMeasurementCorrected = TypedDict(
2617
+ "WebhookMeasurementCorrected",
2618
+ {
2619
+ "created_at": "str",
2620
+ "data": "WebhookMeasurementCorrectedData",
2621
+ "id": "str",
2622
+ "mode": "Literal[\"test\", \"live\"]",
2623
+ "type": "Literal[\"measurement.corrected\"]",
2624
+ },
2625
+ )
2626
+
2627
+ WebhookMeasurementRecordedData = TypedDict(
2628
+ "WebhookMeasurementRecordedData",
2629
+ {
2630
+ "measurement_id": "str",
2631
+ "protocol_key": "str",
2632
+ "protocol_kind": "Literal[\"none\", \"registered\", \"owner_test\"]",
2633
+ "quantity": "str",
2634
+ "recorded_at": "str",
2635
+ "teammate": "str",
2636
+ "vouching_level": "float",
2637
+ },
2638
+ )
2639
+
2640
+ WebhookMeasurementRecorded = TypedDict(
2641
+ "WebhookMeasurementRecorded",
2642
+ {
2643
+ "created_at": "str",
2644
+ "data": "WebhookMeasurementRecordedData",
2645
+ "id": "str",
2646
+ "mode": "Literal[\"test\", \"live\"]",
2647
+ "type": "Literal[\"measurement.recorded\"]",
2648
+ },
2649
+ )
2650
+
2651
+ WebhookMeasurementWithdrawnData = TypedDict(
2652
+ "WebhookMeasurementWithdrawnData",
2653
+ {
2654
+ "measurement_id": "str",
2655
+ "protocol_key": "str",
2656
+ "protocol_kind": "Literal[\"none\", \"registered\", \"owner_test\"]",
2657
+ "quantity": "str",
2658
+ "teammate": "str",
2659
+ "vouching_level": "float",
2660
+ "withdrawn_at": "str",
2661
+ },
2662
+ )
2663
+
2664
+ WebhookMeasurementWithdrawn = TypedDict(
2665
+ "WebhookMeasurementWithdrawn",
2666
+ {
2667
+ "created_at": "str",
2668
+ "data": "WebhookMeasurementWithdrawnData",
2669
+ "id": "str",
2670
+ "mode": "Literal[\"test\", \"live\"]",
2671
+ "type": "Literal[\"measurement.withdrawn\"]",
2672
+ },
2673
+ )
2674
+
2675
+ WebhookProgramRevisedDataApproval = TypedDict(
2676
+ "WebhookProgramRevisedDataApproval",
2677
+ {
2678
+ "mode": "Literal[\"automatic\", \"coach\"]",
2679
+ },
2680
+ )
2681
+
2682
+ WebhookProgramRevisedDataCause = TypedDict(
2683
+ "WebhookProgramRevisedDataCause",
2684
+ {
2685
+ "kind": "str",
2686
+ "summary": "str",
2687
+ },
2688
+ )
2689
+
2690
+ WebhookProgramRevisedData = TypedDict(
2691
+ "WebhookProgramRevisedData",
2692
+ {
2693
+ "applied_at": "str",
2694
+ "approval": "WebhookProgramRevisedDataApproval",
2695
+ "cause": "WebhookProgramRevisedDataCause",
2696
+ "engine_version": "str",
2697
+ "parent_revision": "int",
2698
+ "program_id": "str",
2699
+ "revision": "int",
2700
+ "teammate": "str",
2701
+ },
2702
+ )
2703
+
2704
+ WebhookProgramRevised = TypedDict(
2705
+ "WebhookProgramRevised",
2706
+ {
2707
+ "created_at": "str",
2708
+ "data": "WebhookProgramRevisedData",
2709
+ "id": "str",
2710
+ "mode": "Literal[\"test\", \"live\"]",
2711
+ "type": "Literal[\"program.revised\"]",
2712
+ },
2713
+ )
2714
+
2715
+ WebhookProposalCreatedDataCause = TypedDict(
2716
+ "WebhookProposalCreatedDataCause",
2717
+ {
2718
+ "kind": "str",
2719
+ "summary": "str",
2720
+ },
2721
+ )
2722
+
2723
+ WebhookProposalCreatedData = TypedDict(
2724
+ "WebhookProposalCreatedData",
2725
+ {
2726
+ "cause": "WebhookProposalCreatedDataCause",
2727
+ "created_at": "str",
2728
+ "program_id": "str",
2729
+ "proposal_id": "str",
2730
+ "summary": "str",
2731
+ "teammate": "str",
2732
+ },
2733
+ )
2734
+
2735
+ WebhookProposalCreated = TypedDict(
2736
+ "WebhookProposalCreated",
2737
+ {
2738
+ "created_at": "str",
2739
+ "data": "WebhookProposalCreatedData",
2740
+ "id": "str",
2741
+ "mode": "Literal[\"test\", \"live\"]",
2742
+ "type": "Literal[\"proposal.created\"]",
2743
+ },
2744
+ )
2745
+
2746
+ WebhookSessionAdaptedData = TypedDict(
2747
+ "WebhookSessionAdaptedData",
2748
+ {
2749
+ "adaptation_id": "str",
2750
+ "adapted_at": "str",
2751
+ "program_id": "str",
2752
+ "summary": "str",
2753
+ "teammate": "str",
2754
+ "trigger": "str",
2755
+ },
2756
+ )
2757
+
2758
+ WebhookSessionAdapted = TypedDict(
2759
+ "WebhookSessionAdapted",
2760
+ {
2761
+ "created_at": "str",
2762
+ "data": "WebhookSessionAdaptedData",
2763
+ "id": "str",
2764
+ "mode": "Literal[\"test\", \"live\"]",
2765
+ "type": "Literal[\"session.adapted\"]",
2766
+ },
2767
+ )
2768
+
2769
+ WebhookSessionChangedData = TypedDict(
2770
+ "WebhookSessionChangedData",
2771
+ {
2772
+ "change": "Literal[\"updated\", \"added\", \"removed\"]",
2773
+ "date": "str",
2774
+ "day_index": "int",
2775
+ "program_id": "str",
2776
+ "revision": "int",
2777
+ "summary": "str",
2778
+ "teammate": "str",
2779
+ "week_number": "int",
2780
+ },
2781
+ )
2782
+
2783
+ WebhookSessionChanged = TypedDict(
2784
+ "WebhookSessionChanged",
2785
+ {
2786
+ "created_at": "str",
2787
+ "data": "WebhookSessionChangedData",
2788
+ "id": "str",
2789
+ "mode": "Literal[\"test\", \"live\"]",
2790
+ "type": "Literal[\"session.changed\"]",
2791
+ },
2792
+ )
2793
+
2794
+ WebhookTeammateAtRiskData = TypedDict(
2795
+ "WebhookTeammateAtRiskData",
2796
+ {
2797
+ "opened_at": "str",
2798
+ "reasons": "list[Literal[\"visits_dropped\", \"sessions_missed\", \"progress_stalled\"]]",
2799
+ "teammate": "str",
2800
+ },
2801
+ )
2802
+
2803
+ WebhookTeammateAtRisk = TypedDict(
2804
+ "WebhookTeammateAtRisk",
2805
+ {
2806
+ "created_at": "str",
2807
+ "data": "WebhookTeammateAtRiskData",
2808
+ "id": "str",
2809
+ "mode": "Literal[\"test\", \"live\"]",
2810
+ "type": "Literal[\"teammate.at_risk\"]",
2811
+ },
2812
+ )
2813
+
2814
+ WebhookTeammateClaimedData = TypedDict(
2815
+ "WebhookTeammateClaimedData",
2816
+ {
2817
+ "claimed_at": "str",
2818
+ "teammate": "str",
2819
+ },
2820
+ )
2821
+
2822
+ WebhookTeammateClaimed = TypedDict(
2823
+ "WebhookTeammateClaimed",
2824
+ {
2825
+ "created_at": "str",
2826
+ "data": "WebhookTeammateClaimedData",
2827
+ "id": "str",
2828
+ "mode": "Literal[\"test\", \"live\"]",
2829
+ "type": "Literal[\"teammate.claimed\"]",
2830
+ },
2831
+ )
2832
+
2833
+ WebhookTeammateDisconnectedData = TypedDict(
2834
+ "WebhookTeammateDisconnectedData",
2835
+ {
2836
+ "disconnected_at": "str",
2837
+ "teammate": "str",
2838
+ },
2839
+ )
2840
+
2841
+ WebhookTeammateDisconnected = TypedDict(
2842
+ "WebhookTeammateDisconnected",
2843
+ {
2844
+ "created_at": "str",
2845
+ "data": "WebhookTeammateDisconnectedData",
2846
+ "id": "str",
2847
+ "mode": "Literal[\"test\", \"live\"]",
2848
+ "type": "Literal[\"teammate.disconnected\"]",
2849
+ },
2850
+ )
2851
+
2852
+ WebhookWebhookTestData = TypedDict(
2853
+ "WebhookWebhookTestData",
2854
+ {
2855
+ "endpoint_id": "str",
2856
+ "sent_at": "str",
2857
+ },
2858
+ )
2859
+
2860
+ WebhookWebhookTest = TypedDict(
2861
+ "WebhookWebhookTest",
2862
+ {
2863
+ "created_at": "str",
2864
+ "data": "WebhookWebhookTestData",
2865
+ "id": "str",
2866
+ "mode": "Literal[\"test\", \"live\"]",
2867
+ "type": "Literal[\"webhook.test\"]",
2868
+ },
2869
+ )
2870
+
2871
+ WebhookWorkoutLoggedData = TypedDict(
2872
+ "WebhookWorkoutLoggedData",
2873
+ {
2874
+ "finished_at": "str",
2875
+ "program_id": "str",
2876
+ "teammate": "str",
2877
+ "workout_id": "str",
2878
+ },
2879
+ )
2880
+
2881
+ WebhookWorkoutLogged = TypedDict(
2882
+ "WebhookWorkoutLogged",
2883
+ {
2884
+ "created_at": "str",
2885
+ "data": "WebhookWorkoutLoggedData",
2886
+ "id": "str",
2887
+ "mode": "Literal[\"test\", \"live\"]",
2888
+ "type": "Literal[\"workout.logged\"]",
2889
+ },
2890
+ )
2891
+
2892
+ WebhookEvent = Union["WebhookAdaptationVetoed", "WebhookAttestationCreated", "WebhookAttestationRevoked", "WebhookBodyStateChanged", "WebhookEventRejected", "WebhookFeasibilityWarning", "WebhookLocationInventoryChanged", "WebhookMeasurementCorrected", "WebhookMeasurementRecorded", "WebhookMeasurementWithdrawn", "WebhookProgramRevised", "WebhookProposalCreated", "WebhookSessionAdapted", "WebhookSessionChanged", "WebhookTeammateAtRisk", "WebhookTeammateClaimed", "WebhookTeammateDisconnected", "WebhookWebhookTest", "WebhookWorkoutLogged"]
2893
+ """Any webhook payload the API delivers."""