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.
- technicallyfit/__init__.py +179 -0
- technicallyfit/_generated/__init__.py +3 -0
- technicallyfit/_generated/live_rules.py +592 -0
- technicallyfit/_generated/models.py +2893 -0
- technicallyfit/_generated/observation.py +161 -0
- technicallyfit/_generated/operations.py +1124 -0
- technicallyfit/_generated/protocols.py +136 -0
- technicallyfit/_generated/registry.py +1077 -0
- technicallyfit/_generated/spec.py +678 -0
- technicallyfit/_generated/version.py +4 -0
- technicallyfit/_transport.py +49 -0
- technicallyfit/attestations.py +269 -0
- technicallyfit/client.py +260 -0
- technicallyfit/errors.py +175 -0
- technicallyfit/events.py +283 -0
- technicallyfit/live.py +272 -0
- technicallyfit/live_rules.py +478 -0
- technicallyfit/observations.py +515 -0
- technicallyfit/offline_queue.py +100 -0
- technicallyfit/py.typed +0 -0
- technicallyfit/retry.py +92 -0
- technicallyfit/sign_in.py +226 -0
- technicallyfit/webhooks.py +104 -0
- technicallyfit-0.1.0.dist-info/METADATA +72 -0
- technicallyfit-0.1.0.dist-info/RECORD +27 -0
- technicallyfit-0.1.0.dist-info/WHEEL +4 -0
- technicallyfit-0.1.0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,678 @@
|
|
|
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
|
+
"""Facts from the public spec that the hand-written layer reads."""
|
|
5
|
+
|
|
6
|
+
SPEC_TITLE = "TechnicallyFit Engine API"
|
|
7
|
+
SPEC_VERSION = "1.0.0"
|
|
8
|
+
SERVERS = [
|
|
9
|
+
{
|
|
10
|
+
"url": "https://api.technicallyfit.com",
|
|
11
|
+
"description": "Production",
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"url": "https://api-staging.technicallyfit.com",
|
|
15
|
+
"description": "Staging",
|
|
16
|
+
},
|
|
17
|
+
]
|
|
18
|
+
DEFAULT_BASE_URL = "https://api.technicallyfit.com"
|
|
19
|
+
ERROR_CODES = [
|
|
20
|
+
"invalid_request",
|
|
21
|
+
"unauthorized",
|
|
22
|
+
"forbidden",
|
|
23
|
+
"consent_required",
|
|
24
|
+
"plan_required",
|
|
25
|
+
"attestor_not_approved",
|
|
26
|
+
"not_found",
|
|
27
|
+
"conflict",
|
|
28
|
+
"payload_too_large",
|
|
29
|
+
"validation_failed",
|
|
30
|
+
"rate_limit_exceeded",
|
|
31
|
+
"internal_error",
|
|
32
|
+
"engine_unavailable",
|
|
33
|
+
]
|
|
34
|
+
EVENT_TYPES = [
|
|
35
|
+
"observation",
|
|
36
|
+
"constraint",
|
|
37
|
+
"equipment_change",
|
|
38
|
+
"schedule_change",
|
|
39
|
+
"logged_set",
|
|
40
|
+
"visit_check_in",
|
|
41
|
+
]
|
|
42
|
+
EVENT_RESULT_STATUSES = ["accepted", "duplicate", "rejected"]
|
|
43
|
+
EVENT_REJECTION_CODES = [
|
|
44
|
+
"invalid_event",
|
|
45
|
+
"unknown_event_type",
|
|
46
|
+
"schema_version_unsupported",
|
|
47
|
+
"unit_not_convertible",
|
|
48
|
+
"invalid_body_location",
|
|
49
|
+
"teammate_not_found",
|
|
50
|
+
"teammate_mismatch",
|
|
51
|
+
"consent_required",
|
|
52
|
+
"missing_idempotency_key",
|
|
53
|
+
"unknown_movement",
|
|
54
|
+
"session_not_found",
|
|
55
|
+
"invalid_set",
|
|
56
|
+
"value_out_of_range",
|
|
57
|
+
"route_quantity_not_allowed",
|
|
58
|
+
"route_storage_not_allowed",
|
|
59
|
+
"route_disconnected",
|
|
60
|
+
"unknown_location",
|
|
61
|
+
"at_in_future",
|
|
62
|
+
"event_type_not_allowed",
|
|
63
|
+
]
|
|
64
|
+
MAX_EVENTS_PER_TEAMMATE_REQUEST = 500
|
|
65
|
+
MAX_EVENTS_PER_BULK_REQUEST = 1000
|
|
66
|
+
IDEMPOTENCY_KEY_MAX_LENGTH = 128
|
|
67
|
+
TEAMMATE_TOKEN_SCOPES = [
|
|
68
|
+
"body_state:read",
|
|
69
|
+
"events:write",
|
|
70
|
+
"locations:read",
|
|
71
|
+
"measurements:write",
|
|
72
|
+
"programs:read",
|
|
73
|
+
"programs:write",
|
|
74
|
+
"reference:read",
|
|
75
|
+
"teammates:read",
|
|
76
|
+
]
|
|
77
|
+
TEAMMATE_TOKEN_OPERATIONS = [
|
|
78
|
+
{
|
|
79
|
+
"method": "get",
|
|
80
|
+
"path": "/v1/adaptation-presets",
|
|
81
|
+
"operationId": "listAdaptationPresets",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"method": "get",
|
|
85
|
+
"path": "/v1/teammates/@me",
|
|
86
|
+
"operationId": "getMe",
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"method": "patch",
|
|
90
|
+
"path": "/v1/teammates/@me",
|
|
91
|
+
"operationId": "updateMe",
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"method": "get",
|
|
95
|
+
"path": "/v1/teammates/{external_id}/adaptation-profile",
|
|
96
|
+
"operationId": "getTeammateAdaptationProfile",
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"method": "post",
|
|
100
|
+
"path": "/v1/teammates/{external_id}/adaptations/{adaptation_id}:veto",
|
|
101
|
+
"operationId": "vetoSessionAdaptation",
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"method": "post",
|
|
105
|
+
"path": "/v1/teammates/{external_id}/events",
|
|
106
|
+
"operationId": "sendTeammateEvents",
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"method": "get",
|
|
110
|
+
"path": "/v1/teammates/{external_id}/programs",
|
|
111
|
+
"operationId": "listTeammatePrograms",
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"method": "get",
|
|
115
|
+
"path": "/v1/teammates/{external_id}/programs/{program_id}/revisions",
|
|
116
|
+
"operationId": "listProgramRevisions",
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"method": "get",
|
|
120
|
+
"path": "/v1/teammates/{external_id}/sessions/today",
|
|
121
|
+
"operationId": "getTodaySession",
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"method": "post",
|
|
125
|
+
"path": "/v1/teammates/{external_id}/sessions/today:start",
|
|
126
|
+
"operationId": "startTodaySession",
|
|
127
|
+
},
|
|
128
|
+
]
|
|
129
|
+
ANONYMOUS_OPERATIONS = [
|
|
130
|
+
{
|
|
131
|
+
"method": "get",
|
|
132
|
+
"path": "/v1/app-config",
|
|
133
|
+
"operationId": "getAppConfig",
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"method": "get",
|
|
137
|
+
"path": "/v1/attestations/keys",
|
|
138
|
+
"operationId": "listAttestationKeys",
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"method": "get",
|
|
142
|
+
"path": "/v1/attestations/{attestation_id}/status",
|
|
143
|
+
"operationId": "getAttestationStatus",
|
|
144
|
+
},
|
|
145
|
+
]
|
|
146
|
+
PAGINATED_PATHS = [
|
|
147
|
+
"/v1/events",
|
|
148
|
+
"/v1/insights/at-risk",
|
|
149
|
+
"/v1/insights/groups/{key}/teammates",
|
|
150
|
+
"/v1/locations",
|
|
151
|
+
"/v1/me/record",
|
|
152
|
+
"/v1/teammates",
|
|
153
|
+
"/v1/teammates/{external_id}/body-state/changes",
|
|
154
|
+
"/v1/teammates/{external_id}/events",
|
|
155
|
+
"/v1/teammates/{external_id}/logged-sets",
|
|
156
|
+
"/v1/teammates/{external_id}/measurements",
|
|
157
|
+
"/v1/teammates/{external_id}/programs/{program_id}/revisions",
|
|
158
|
+
"/v1/teammates/{external_id}/proposals",
|
|
159
|
+
"/v1/webhook-endpoints/{id}/deliveries",
|
|
160
|
+
]
|
|
161
|
+
WEBHOOK_EVENT_TYPES = [
|
|
162
|
+
"adaptation.vetoed",
|
|
163
|
+
"attestation.created",
|
|
164
|
+
"attestation.revoked",
|
|
165
|
+
"body_state.changed",
|
|
166
|
+
"event.rejected",
|
|
167
|
+
"feasibility.warning",
|
|
168
|
+
"location.inventory_changed",
|
|
169
|
+
"measurement.corrected",
|
|
170
|
+
"measurement.recorded",
|
|
171
|
+
"measurement.withdrawn",
|
|
172
|
+
"program.revised",
|
|
173
|
+
"proposal.created",
|
|
174
|
+
"session.adapted",
|
|
175
|
+
"session.changed",
|
|
176
|
+
"teammate.at_risk",
|
|
177
|
+
"teammate.claimed",
|
|
178
|
+
"teammate.disconnected",
|
|
179
|
+
"webhook.test",
|
|
180
|
+
"workout.logged",
|
|
181
|
+
]
|
|
182
|
+
OPERATIONS = [
|
|
183
|
+
{
|
|
184
|
+
"operationId": "listAdaptationPresets",
|
|
185
|
+
"method": "get",
|
|
186
|
+
"path": "/v1/adaptation-presets",
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"operationId": "listJoints",
|
|
190
|
+
"method": "get",
|
|
191
|
+
"path": "/v1/anatomy/joints",
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"operationId": "listMuscles",
|
|
195
|
+
"method": "get",
|
|
196
|
+
"path": "/v1/anatomy/muscles",
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"operationId": "getAppConfig",
|
|
200
|
+
"method": "get",
|
|
201
|
+
"path": "/v1/app-config",
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"operationId": "listArchetypes",
|
|
205
|
+
"method": "get",
|
|
206
|
+
"path": "/v1/archetypes",
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"operationId": "getArchetype",
|
|
210
|
+
"method": "get",
|
|
211
|
+
"path": "/v1/archetypes/{archetype_id}",
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"operationId": "listAssessmentTests",
|
|
215
|
+
"method": "get",
|
|
216
|
+
"path": "/v1/assessment-tests",
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"operationId": "createAssessmentTest",
|
|
220
|
+
"method": "post",
|
|
221
|
+
"path": "/v1/assessment-tests",
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"operationId": "getAssessmentTest",
|
|
225
|
+
"method": "get",
|
|
226
|
+
"path": "/v1/assessment-tests/{test_id}",
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"operationId": "updateAssessmentTest",
|
|
230
|
+
"method": "patch",
|
|
231
|
+
"path": "/v1/assessment-tests/{test_id}",
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"operationId": "createAttestation",
|
|
235
|
+
"method": "post",
|
|
236
|
+
"path": "/v1/attestations",
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"operationId": "listAttestationKeys",
|
|
240
|
+
"method": "get",
|
|
241
|
+
"path": "/v1/attestations/keys",
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"operationId": "revokeAttestation",
|
|
245
|
+
"method": "post",
|
|
246
|
+
"path": "/v1/attestations/{attestation_id}/revoke",
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"operationId": "getAttestationStatus",
|
|
250
|
+
"method": "get",
|
|
251
|
+
"path": "/v1/attestations/{attestation_id}/status",
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"operationId": "listEquipment",
|
|
255
|
+
"method": "get",
|
|
256
|
+
"path": "/v1/equipment",
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"operationId": "listEvents",
|
|
260
|
+
"method": "get",
|
|
261
|
+
"path": "/v1/events",
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"operationId": "sendEvents",
|
|
265
|
+
"method": "post",
|
|
266
|
+
"path": "/v1/events:bulk",
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"operationId": "listExercises",
|
|
270
|
+
"method": "get",
|
|
271
|
+
"path": "/v1/exercises",
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"operationId": "listExercisesByPattern",
|
|
275
|
+
"method": "get",
|
|
276
|
+
"path": "/v1/exercises/pattern/{pattern}",
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"operationId": "getExercise",
|
|
280
|
+
"method": "get",
|
|
281
|
+
"path": "/v1/exercises/{exercise_id}",
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"operationId": "listExerciseAlternatives",
|
|
285
|
+
"method": "get",
|
|
286
|
+
"path": "/v1/exercises/{exercise_id}/alternatives",
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"operationId": "listAtRisk",
|
|
290
|
+
"method": "get",
|
|
291
|
+
"path": "/v1/insights/at-risk",
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"operationId": "listGroups",
|
|
295
|
+
"method": "get",
|
|
296
|
+
"path": "/v1/insights/groups",
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"operationId": "listGroupTeammates",
|
|
300
|
+
"method": "get",
|
|
301
|
+
"path": "/v1/insights/groups/{key}/teammates",
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"operationId": "getJourney",
|
|
305
|
+
"method": "get",
|
|
306
|
+
"path": "/v1/insights/journey",
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"operationId": "getRetention",
|
|
310
|
+
"method": "get",
|
|
311
|
+
"path": "/v1/insights/retention",
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"operationId": "getTraffic",
|
|
315
|
+
"method": "get",
|
|
316
|
+
"path": "/v1/insights/traffic",
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"operationId": "getInventoryBaseline",
|
|
320
|
+
"method": "get",
|
|
321
|
+
"path": "/v1/inventory/baseline",
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"operationId": "replaceInventoryBaseline",
|
|
325
|
+
"method": "put",
|
|
326
|
+
"path": "/v1/inventory/baseline",
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"operationId": "getKnowledgeConcept",
|
|
330
|
+
"method": "get",
|
|
331
|
+
"path": "/v1/knowledge/concepts/{concept_id}",
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"operationId": "searchKnowledge",
|
|
335
|
+
"method": "get",
|
|
336
|
+
"path": "/v1/knowledge/search",
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"operationId": "listKnowledgeTypes",
|
|
340
|
+
"method": "get",
|
|
341
|
+
"path": "/v1/knowledge/types",
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"operationId": "listKnowledgeByType",
|
|
345
|
+
"method": "get",
|
|
346
|
+
"path": "/v1/knowledge/types/{concept_type}",
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"operationId": "listLocations",
|
|
350
|
+
"method": "get",
|
|
351
|
+
"path": "/v1/locations",
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"operationId": "getLocation",
|
|
355
|
+
"method": "get",
|
|
356
|
+
"path": "/v1/locations/{location_external_id}",
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"operationId": "upsertLocation",
|
|
360
|
+
"method": "put",
|
|
361
|
+
"path": "/v1/locations/{location_external_id}",
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"operationId": "archiveLocation",
|
|
365
|
+
"method": "delete",
|
|
366
|
+
"path": "/v1/locations/{location_external_id}",
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"operationId": "getLocationInventory",
|
|
370
|
+
"method": "get",
|
|
371
|
+
"path": "/v1/locations/{location_external_id}/inventory",
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"operationId": "listLocationOverrides",
|
|
375
|
+
"method": "get",
|
|
376
|
+
"path": "/v1/locations/{location_external_id}/overrides",
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"operationId": "replaceLocationOverrides",
|
|
380
|
+
"method": "put",
|
|
381
|
+
"path": "/v1/locations/{location_external_id}/overrides",
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"operationId": "setLocationOverride",
|
|
385
|
+
"method": "put",
|
|
386
|
+
"path": "/v1/locations/{location_external_id}/overrides/{token}",
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"operationId": "removeLocationOverride",
|
|
390
|
+
"method": "delete",
|
|
391
|
+
"path": "/v1/locations/{location_external_id}/overrides/{token}",
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"operationId": "syncLocations",
|
|
395
|
+
"method": "post",
|
|
396
|
+
"path": "/v1/locations:sync",
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"operationId": "getMyBodyState",
|
|
400
|
+
"method": "get",
|
|
401
|
+
"path": "/v1/me/body-state",
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"operationId": "listMyRecord",
|
|
405
|
+
"method": "get",
|
|
406
|
+
"path": "/v1/me/record",
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
"operationId": "getOrganization",
|
|
410
|
+
"method": "get",
|
|
411
|
+
"path": "/v1/organization",
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"operationId": "getOrganizationSettings",
|
|
415
|
+
"method": "get",
|
|
416
|
+
"path": "/v1/organization/settings",
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"operationId": "updateOrganizationSettings",
|
|
420
|
+
"method": "patch",
|
|
421
|
+
"path": "/v1/organization/settings",
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"operationId": "getProgramJob",
|
|
425
|
+
"method": "get",
|
|
426
|
+
"path": "/v1/program-jobs/{job_id}",
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"operationId": "getProposal",
|
|
430
|
+
"method": "get",
|
|
431
|
+
"path": "/v1/proposals/{proposal_id}",
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"operationId": "acceptProposal",
|
|
435
|
+
"method": "post",
|
|
436
|
+
"path": "/v1/proposals/{proposal_id}/accept",
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"operationId": "declineProposal",
|
|
440
|
+
"method": "post",
|
|
441
|
+
"path": "/v1/proposals/{proposal_id}/decline",
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"operationId": "listSandboxPresets",
|
|
445
|
+
"method": "get",
|
|
446
|
+
"path": "/v1/sandbox/presets",
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"operationId": "resetSandbox",
|
|
450
|
+
"method": "post",
|
|
451
|
+
"path": "/v1/sandbox/reset",
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"operationId": "createSandboxTeammate",
|
|
455
|
+
"method": "post",
|
|
456
|
+
"path": "/v1/sandbox/teammates",
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"operationId": "resetSandboxTeammate",
|
|
460
|
+
"method": "post",
|
|
461
|
+
"path": "/v1/sandbox/teammates/{simulated_id}/reset",
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
"operationId": "simulateSandboxWeek",
|
|
465
|
+
"method": "post",
|
|
466
|
+
"path": "/v1/sandbox/teammates/{simulated_id}/simulate",
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"operationId": "listSports",
|
|
470
|
+
"method": "get",
|
|
471
|
+
"path": "/v1/sports",
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"operationId": "listSportCategories",
|
|
475
|
+
"method": "get",
|
|
476
|
+
"path": "/v1/sports/categories",
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"operationId": "getSport",
|
|
480
|
+
"method": "get",
|
|
481
|
+
"path": "/v1/sports/{sport_id}",
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"operationId": "listTeammates",
|
|
485
|
+
"method": "get",
|
|
486
|
+
"path": "/v1/teammates",
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"operationId": "getMe",
|
|
490
|
+
"method": "get",
|
|
491
|
+
"path": "/v1/teammates/@me",
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
"operationId": "updateMe",
|
|
495
|
+
"method": "patch",
|
|
496
|
+
"path": "/v1/teammates/@me",
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
"operationId": "getTeammate",
|
|
500
|
+
"method": "get",
|
|
501
|
+
"path": "/v1/teammates/{external_id}",
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
"operationId": "upsertTeammate",
|
|
505
|
+
"method": "put",
|
|
506
|
+
"path": "/v1/teammates/{external_id}",
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"operationId": "deleteTeammate",
|
|
510
|
+
"method": "delete",
|
|
511
|
+
"path": "/v1/teammates/{external_id}",
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"operationId": "getTeammateAdaptationProfile",
|
|
515
|
+
"method": "get",
|
|
516
|
+
"path": "/v1/teammates/{external_id}/adaptation-profile",
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"operationId": "updateTeammateAdaptationProfile",
|
|
520
|
+
"method": "put",
|
|
521
|
+
"path": "/v1/teammates/{external_id}/adaptation-profile",
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
"operationId": "vetoSessionAdaptation",
|
|
525
|
+
"method": "post",
|
|
526
|
+
"path": "/v1/teammates/{external_id}/adaptations/{adaptation_id}:veto",
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"operationId": "getTeammateBodyState",
|
|
530
|
+
"method": "get",
|
|
531
|
+
"path": "/v1/teammates/{external_id}/body-state",
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"operationId": "listTeammateBodyStateChanges",
|
|
535
|
+
"method": "get",
|
|
536
|
+
"path": "/v1/teammates/{external_id}/body-state/changes",
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
"operationId": "listTeammateEvents",
|
|
540
|
+
"method": "get",
|
|
541
|
+
"path": "/v1/teammates/{external_id}/events",
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
"operationId": "sendTeammateEvents",
|
|
545
|
+
"method": "post",
|
|
546
|
+
"path": "/v1/teammates/{external_id}/events",
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
"operationId": "undoTeammateEvent",
|
|
550
|
+
"method": "post",
|
|
551
|
+
"path": "/v1/teammates/{external_id}/events/{event_id}:undo",
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
"operationId": "getTeammateGoal",
|
|
555
|
+
"method": "get",
|
|
556
|
+
"path": "/v1/teammates/{external_id}/goal",
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
"operationId": "setTeammateGoal",
|
|
560
|
+
"method": "put",
|
|
561
|
+
"path": "/v1/teammates/{external_id}/goal",
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
"operationId": "inviteTeammate",
|
|
565
|
+
"method": "post",
|
|
566
|
+
"path": "/v1/teammates/{external_id}/invite",
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
"operationId": "listTeammateLoggedSets",
|
|
570
|
+
"method": "get",
|
|
571
|
+
"path": "/v1/teammates/{external_id}/logged-sets",
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
"operationId": "listTeammateMeasurements",
|
|
575
|
+
"method": "get",
|
|
576
|
+
"path": "/v1/teammates/{external_id}/measurements",
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
"operationId": "recordTeammateMeasurement",
|
|
580
|
+
"method": "post",
|
|
581
|
+
"path": "/v1/teammates/{external_id}/measurements",
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
"operationId": "getTeammateMeasurement",
|
|
585
|
+
"method": "get",
|
|
586
|
+
"path": "/v1/teammates/{external_id}/measurements/{measurement_id}",
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
"operationId": "listTeammatePrograms",
|
|
590
|
+
"method": "get",
|
|
591
|
+
"path": "/v1/teammates/{external_id}/programs",
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
"operationId": "createProgram",
|
|
595
|
+
"method": "post",
|
|
596
|
+
"path": "/v1/teammates/{external_id}/programs",
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
"operationId": "listProgramRevisions",
|
|
600
|
+
"method": "get",
|
|
601
|
+
"path": "/v1/teammates/{external_id}/programs/{program_id}/revisions",
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
"operationId": "listTeammateProposals",
|
|
605
|
+
"method": "get",
|
|
606
|
+
"path": "/v1/teammates/{external_id}/proposals",
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
"operationId": "getTodaySession",
|
|
610
|
+
"method": "get",
|
|
611
|
+
"path": "/v1/teammates/{external_id}/sessions/today",
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
"operationId": "startTodaySession",
|
|
615
|
+
"method": "post",
|
|
616
|
+
"path": "/v1/teammates/{external_id}/sessions/today:start",
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
"operationId": "getTeammateSettings",
|
|
620
|
+
"method": "get",
|
|
621
|
+
"path": "/v1/teammates/{external_id}/settings",
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
"operationId": "updateTeammateSettings",
|
|
625
|
+
"method": "patch",
|
|
626
|
+
"path": "/v1/teammates/{external_id}/settings",
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
"operationId": "listTeammateSources",
|
|
630
|
+
"method": "get",
|
|
631
|
+
"path": "/v1/teammates/{external_id}/sources",
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
"operationId": "reconnectTeammateSource",
|
|
635
|
+
"method": "put",
|
|
636
|
+
"path": "/v1/teammates/{external_id}/sources/{route}",
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
"operationId": "disconnectTeammateSource",
|
|
640
|
+
"method": "delete",
|
|
641
|
+
"path": "/v1/teammates/{external_id}/sources/{route}",
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
"operationId": "listWebhookEndpoints",
|
|
645
|
+
"method": "get",
|
|
646
|
+
"path": "/v1/webhook-endpoints",
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
"operationId": "createWebhookEndpoint",
|
|
650
|
+
"method": "post",
|
|
651
|
+
"path": "/v1/webhook-endpoints",
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"operationId": "getWebhookEndpoint",
|
|
655
|
+
"method": "get",
|
|
656
|
+
"path": "/v1/webhook-endpoints/{id}",
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
"operationId": "deleteWebhookEndpoint",
|
|
660
|
+
"method": "delete",
|
|
661
|
+
"path": "/v1/webhook-endpoints/{id}",
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
"operationId": "updateWebhookEndpoint",
|
|
665
|
+
"method": "patch",
|
|
666
|
+
"path": "/v1/webhook-endpoints/{id}",
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
"operationId": "listWebhookDeliveries",
|
|
670
|
+
"method": "get",
|
|
671
|
+
"path": "/v1/webhook-endpoints/{id}/deliveries",
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
"operationId": "rotateWebhookEndpointSecret",
|
|
675
|
+
"method": "post",
|
|
676
|
+
"path": "/v1/webhook-endpoints/{id}/rotate-secret",
|
|
677
|
+
},
|
|
678
|
+
]
|