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,161 @@
|
|
|
1
|
+
# Generated by scripts/generate-sdks.mjs from apps/api-node/src/platform/engine/observation.reference.ts.
|
|
2
|
+
# Do not edit by hand: run `npm run sdk:generate` at the repository root.
|
|
3
|
+
|
|
4
|
+
"""observation/1: the lists, patterns and limits of the wire format."""
|
|
5
|
+
|
|
6
|
+
OBSERVATION_SCHEMA = "observation/1"
|
|
7
|
+
OBSERVATION_FIELDS = [
|
|
8
|
+
"schema",
|
|
9
|
+
"teammate",
|
|
10
|
+
"quantity",
|
|
11
|
+
"measure",
|
|
12
|
+
"value",
|
|
13
|
+
"unit",
|
|
14
|
+
"at",
|
|
15
|
+
"until",
|
|
16
|
+
"body",
|
|
17
|
+
"source",
|
|
18
|
+
"confidence",
|
|
19
|
+
"protocol",
|
|
20
|
+
"instrument",
|
|
21
|
+
"vouching",
|
|
22
|
+
"session",
|
|
23
|
+
"scope",
|
|
24
|
+
"context",
|
|
25
|
+
]
|
|
26
|
+
OBSERVATION_REQUIRED_FIELDS = ["schema", "quantity", "value", "unit", "at", "source", "confidence"]
|
|
27
|
+
OBSERVATION_BODY_FIELDS = ["joint", "side"]
|
|
28
|
+
OBSERVATION_SOURCE_FIELDS = ["route", "device", "record_id"]
|
|
29
|
+
OBSERVATION_JOINT_IDS = [
|
|
30
|
+
"cervical_spine",
|
|
31
|
+
"thoracic_spine",
|
|
32
|
+
"lumbar_spine",
|
|
33
|
+
"ribcage",
|
|
34
|
+
"pelvis",
|
|
35
|
+
"scapula",
|
|
36
|
+
"shoulder",
|
|
37
|
+
"elbow",
|
|
38
|
+
"wrist",
|
|
39
|
+
"hip",
|
|
40
|
+
"knee",
|
|
41
|
+
"ankle",
|
|
42
|
+
"foot",
|
|
43
|
+
"hand",
|
|
44
|
+
]
|
|
45
|
+
OBSERVATION_MIDLINE_JOINT_IDS = ["cervical_spine", "thoracic_spine", "lumbar_spine", "ribcage", "pelvis"]
|
|
46
|
+
OBSERVATION_SIDES = ["left", "right", "bilateral", "midline"]
|
|
47
|
+
OBSERVATION_MIDLINE_SIDES = ["midline"]
|
|
48
|
+
OBSERVATION_LIMB_SIDES = ["left", "right", "bilateral"]
|
|
49
|
+
OBSERVATION_TOKEN_PATTERN = "^[a-z][a-z0-9_]{0,63}$"
|
|
50
|
+
OBSERVATION_ROUTE_PATTERN = "^[a-z0-9][a-z0-9_.-]{0,63}$"
|
|
51
|
+
OBSERVATION_TIME_PATTERN = "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(Z|[+-]\\d{2}:\\d{2})$"
|
|
52
|
+
OBSERVATION_LIMITS = {
|
|
53
|
+
"teammate": {
|
|
54
|
+
"min": 1,
|
|
55
|
+
"max": 200,
|
|
56
|
+
},
|
|
57
|
+
"unit": {
|
|
58
|
+
"min": 1,
|
|
59
|
+
"max": 32,
|
|
60
|
+
},
|
|
61
|
+
"device": {
|
|
62
|
+
"max": 100,
|
|
63
|
+
},
|
|
64
|
+
"recordId": {
|
|
65
|
+
"min": 1,
|
|
66
|
+
"max": 200,
|
|
67
|
+
},
|
|
68
|
+
"confidence": {
|
|
69
|
+
"min": 0,
|
|
70
|
+
"max": 1,
|
|
71
|
+
},
|
|
72
|
+
"protocol": {
|
|
73
|
+
"min": 1,
|
|
74
|
+
"max": 128,
|
|
75
|
+
},
|
|
76
|
+
"vouching": {
|
|
77
|
+
"min": 1,
|
|
78
|
+
"max": 4,
|
|
79
|
+
},
|
|
80
|
+
"session": {
|
|
81
|
+
"min": 1,
|
|
82
|
+
"max": 200,
|
|
83
|
+
},
|
|
84
|
+
"contextKeys": 20,
|
|
85
|
+
"contextString": 200,
|
|
86
|
+
}
|
|
87
|
+
OBSERVATION_OWNER_PROTOCOL_PATTERN = "^owner:[a-zA-Z0-9_-]{1,80}:v[1-9][0-9]{0,8}$"
|
|
88
|
+
OBSERVATION_PROTOCOLS = [
|
|
89
|
+
{
|
|
90
|
+
"name": "sprint_40yd",
|
|
91
|
+
"quantities": ["sprint_40yd_seconds"],
|
|
92
|
+
"measure": None,
|
|
93
|
+
"unit": "s",
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "sprint_60yd",
|
|
97
|
+
"quantities": ["sprint_60yd_seconds"],
|
|
98
|
+
"measure": None,
|
|
99
|
+
"unit": "s",
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "vertical_jump",
|
|
103
|
+
"quantities": ["jump_height"],
|
|
104
|
+
"measure": "countermovement",
|
|
105
|
+
"unit": "cm",
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"name": "lift_max",
|
|
109
|
+
"quantities": [
|
|
110
|
+
"squat_e1rm",
|
|
111
|
+
"hinge_e1rm",
|
|
112
|
+
"push_horizontal_e1rm",
|
|
113
|
+
"push_vertical_e1rm",
|
|
114
|
+
"pull_horizontal_e1rm",
|
|
115
|
+
"pull_vertical_e1rm",
|
|
116
|
+
"single_leg_e1rm",
|
|
117
|
+
],
|
|
118
|
+
"measure": None,
|
|
119
|
+
"unit": "kg",
|
|
120
|
+
},
|
|
121
|
+
]
|
|
122
|
+
OBSERVATION_INSTRUMENTS = [
|
|
123
|
+
{
|
|
124
|
+
"name": "timing_gates",
|
|
125
|
+
"quantities": ["sprint_40yd_seconds", "sprint_60yd_seconds"],
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": "video_timing",
|
|
129
|
+
"quantities": ["sprint_40yd_seconds", "sprint_60yd_seconds", "jump_height"],
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "stopwatch",
|
|
133
|
+
"quantities": ["sprint_40yd_seconds", "sprint_60yd_seconds"],
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"name": "force_plate",
|
|
137
|
+
"quantities": ["jump_height", "force"],
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"name": "contact_mat",
|
|
141
|
+
"quantities": ["jump_height"],
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"name": "tape_measure",
|
|
145
|
+
"quantities": ["jump_height"],
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"name": "linear_encoder",
|
|
149
|
+
"quantities": [
|
|
150
|
+
"jump_height",
|
|
151
|
+
"bar_velocity",
|
|
152
|
+
"squat_e1rm",
|
|
153
|
+
"hinge_e1rm",
|
|
154
|
+
"push_horizontal_e1rm",
|
|
155
|
+
"push_vertical_e1rm",
|
|
156
|
+
"pull_horizontal_e1rm",
|
|
157
|
+
"pull_vertical_e1rm",
|
|
158
|
+
"single_leg_e1rm",
|
|
159
|
+
],
|
|
160
|
+
},
|
|
161
|
+
]
|