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,179 @@
1
+ """The TechnicallyFit API client for Python.
2
+
3
+ Typed calls generated from the public OpenAPI spec, plus observation builders, retries that
4
+ honor Retry-After, offline batching, typed errors, teammate sign-in and webhook
5
+ verification. Organization keys belong on your servers only.
6
+ """
7
+
8
+ from ._generated.spec import (
9
+ DEFAULT_BASE_URL,
10
+ ERROR_CODES,
11
+ EVENT_REJECTION_CODES,
12
+ EVENT_TYPES,
13
+ MAX_EVENTS_PER_BULK_REQUEST,
14
+ MAX_EVENTS_PER_TEAMMATE_REQUEST,
15
+ SERVERS,
16
+ TEAMMATE_TOKEN_SCOPES,
17
+ )
18
+ from ._generated.version import SDK_VERSION
19
+ from ._transport import HttpResponse, Transport, urllib_transport
20
+ from .client import Client, Credential, TokenCredential
21
+ from .errors import (
22
+ ERROR_CLASSES,
23
+ AttestorNotApprovedError,
24
+ ConfigurationError,
25
+ ConflictError,
26
+ ConnectionError,
27
+ ConsentRequiredError,
28
+ EngineUnavailableError,
29
+ ForbiddenError,
30
+ InternalError,
31
+ InvalidRequestError,
32
+ NotFoundError,
33
+ ObservationIssue,
34
+ ObservationValidationError,
35
+ PayloadTooLargeError,
36
+ PlanRequiredError,
37
+ RateLimitError,
38
+ RateLimitInfo,
39
+ RedirectRefusedError,
40
+ TeammateSignedOutError,
41
+ TeammateSignInError,
42
+ TechnicallyFitError,
43
+ UnauthorizedError,
44
+ ValidationFailedError,
45
+ error_for,
46
+ )
47
+ from .events import MAX_REQUEST_BYTES, check_event, chunk_events, event, with_idempotency_key
48
+ from .live import (
49
+ LiveBatchAck,
50
+ LiveCloseResult,
51
+ LiveCueEvent,
52
+ LiveSession,
53
+ LiveSessionError,
54
+ open_live_session,
55
+ )
56
+ from .live_rules import (
57
+ LIVE_CUE_RULE_JSON_SCHEMA,
58
+ LIVE_CUE_RULES,
59
+ LIVE_RULE_PRESETS,
60
+ LIVE_RULES_VERSION,
61
+ SESSION_ADAPTATION_CAP,
62
+ STREAM_REDUCER_JSON_SCHEMA,
63
+ STREAM_REDUCERS,
64
+ TRIGGER_RULE_JSON_SCHEMA,
65
+ CueEvaluationResult,
66
+ EvaluationResult,
67
+ EvaluatorState,
68
+ MovementDerivedState,
69
+ ReducedSummary,
70
+ evaluate_cue_rule,
71
+ evaluate_rule,
72
+ reduce_stream,
73
+ )
74
+ from .observations import ObservationCheck, measurement, observation_instant, read_quantity, resolve_quantity, self_report, validate_observation
75
+ from .offline_queue import FlushResult, MemoryStorage, OfflineQueue, OfflineStorage
76
+ from .retry import RetryOptions
77
+ from .sign_in import (
78
+ PendingSignIn,
79
+ RefreshingTeammateCredential,
80
+ TeammateSignInConfig,
81
+ TeammateTokens,
82
+ begin_teammate_sign_in,
83
+ complete_teammate_sign_in,
84
+ create_pkce,
85
+ )
86
+ from .webhooks import WebhookVerificationError, verify_webhook, verify_webhook_signature
87
+
88
+ __version__ = SDK_VERSION
89
+
90
+ __all__ = [
91
+ "DEFAULT_BASE_URL",
92
+ "ERROR_CLASSES",
93
+ "ERROR_CODES",
94
+ "EVENT_REJECTION_CODES",
95
+ "EVENT_TYPES",
96
+ "LIVE_CUE_RULES",
97
+ "LIVE_CUE_RULE_JSON_SCHEMA",
98
+ "LIVE_RULES_VERSION",
99
+ "LIVE_RULE_PRESETS",
100
+ "MAX_EVENTS_PER_BULK_REQUEST",
101
+ "MAX_EVENTS_PER_TEAMMATE_REQUEST",
102
+ "MAX_REQUEST_BYTES",
103
+ "SDK_VERSION",
104
+ "SERVERS",
105
+ "SESSION_ADAPTATION_CAP",
106
+ "STREAM_REDUCERS",
107
+ "STREAM_REDUCER_JSON_SCHEMA",
108
+ "TEAMMATE_TOKEN_SCOPES",
109
+ "TRIGGER_RULE_JSON_SCHEMA",
110
+ "AttestorNotApprovedError",
111
+ "Client",
112
+ "ConfigurationError",
113
+ "ConflictError",
114
+ "ConnectionError",
115
+ "ConsentRequiredError",
116
+ "Credential",
117
+ "CueEvaluationResult",
118
+ "EngineUnavailableError",
119
+ "EvaluationResult",
120
+ "EvaluatorState",
121
+ "FlushResult",
122
+ "ForbiddenError",
123
+ "HttpResponse",
124
+ "InternalError",
125
+ "InvalidRequestError",
126
+ "LiveBatchAck",
127
+ "LiveCloseResult",
128
+ "LiveCueEvent",
129
+ "LiveSession",
130
+ "LiveSessionError",
131
+ "MemoryStorage",
132
+ "MovementDerivedState",
133
+ "NotFoundError",
134
+ "ObservationCheck",
135
+ "ObservationIssue",
136
+ "ObservationValidationError",
137
+ "OfflineQueue",
138
+ "OfflineStorage",
139
+ "PayloadTooLargeError",
140
+ "PlanRequiredError",
141
+ "PendingSignIn",
142
+ "RateLimitError",
143
+ "RateLimitInfo",
144
+ "RedirectRefusedError",
145
+ "ReducedSummary",
146
+ "RefreshingTeammateCredential",
147
+ "RetryOptions",
148
+ "TeammateSignInConfig",
149
+ "TeammateSignInError",
150
+ "TeammateSignedOutError",
151
+ "TeammateTokens",
152
+ "TechnicallyFitError",
153
+ "TokenCredential",
154
+ "Transport",
155
+ "UnauthorizedError",
156
+ "ValidationFailedError",
157
+ "WebhookVerificationError",
158
+ "begin_teammate_sign_in",
159
+ "check_event",
160
+ "chunk_events",
161
+ "complete_teammate_sign_in",
162
+ "create_pkce",
163
+ "error_for",
164
+ "evaluate_cue_rule",
165
+ "evaluate_rule",
166
+ "reduce_stream",
167
+ "event",
168
+ "measurement",
169
+ "observation_instant",
170
+ "open_live_session",
171
+ "read_quantity",
172
+ "resolve_quantity",
173
+ "self_report",
174
+ "urllib_transport",
175
+ "validate_observation",
176
+ "verify_webhook",
177
+ "verify_webhook_signature",
178
+ "with_idempotency_key",
179
+ ]
@@ -0,0 +1,3 @@
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
+ """Generated code. Import from `technicallyfit` instead."""