@fytkit/sdk 3.5.0 → 4.0.0
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.
- package/CHANGELOG.md +23 -0
- package/README.md +46 -5
- package/dist/index.d.ts +2515 -944
- package/dist/index.js +122 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { $strict } from 'zod/v4/core';
|
|
1
2
|
import { $strip } from 'zod/v4/core';
|
|
2
3
|
import { DecoratedProcedure } from '@orpc/server';
|
|
3
4
|
import { MergedCurrentContext } from '@orpc/server';
|
|
@@ -16,12 +17,14 @@ import { ZodGUID } from 'zod';
|
|
|
16
17
|
import { ZodISODate } from 'zod';
|
|
17
18
|
import { ZodISODateTime } from 'zod';
|
|
18
19
|
import { ZodLiteral } from 'zod';
|
|
20
|
+
import { ZodNull } from 'zod';
|
|
19
21
|
import { ZodNullable } from 'zod';
|
|
20
22
|
import { ZodNumber } from 'zod';
|
|
21
23
|
import { ZodObject } from 'zod';
|
|
22
24
|
import { ZodOptional } from 'zod';
|
|
23
25
|
import { ZodPipe } from 'zod';
|
|
24
26
|
import { ZodReadonly } from 'zod';
|
|
27
|
+
import { ZodRecord } from 'zod';
|
|
25
28
|
import { ZodString } from 'zod';
|
|
26
29
|
import { ZodTransform } from 'zod';
|
|
27
30
|
import { ZodUnion } from 'zod';
|
|
@@ -38,10 +41,71 @@ declare interface ApiKeyContext {
|
|
|
38
41
|
readonly hasActiveSubscription: boolean;
|
|
39
42
|
readonly clientEntitlements: ClientEntitlements;
|
|
40
43
|
readonly authMode: "session" | "api-key" | "dev-app";
|
|
41
|
-
readonly
|
|
44
|
+
readonly developerApp?: CallingDeveloperApp;
|
|
42
45
|
readonly impersonatedBy: string | null;
|
|
43
46
|
}
|
|
44
47
|
|
|
48
|
+
/**
|
|
49
|
+
* Everything the app reads at launch for the studio (`app.bootstrap`'s
|
|
50
|
+
* `data`): `studio` (display name and logo URL), `theme` (the effective
|
|
51
|
+
* template and theme with its palette, derived variants and the oldest app
|
|
52
|
+
* release that can paint it), `themeMinAppVersions`, `home.layout`,
|
|
53
|
+
* `featureOverrides`, `minAppVersion`, `links` (terms, privacy, help),
|
|
54
|
+
* `realtime` (the public Supabase Realtime settings) and `paymentPolicy` (the
|
|
55
|
+
* storefronts where the app may link out to subscribe; read it with
|
|
56
|
+
* `resolvePaymentMode`).
|
|
57
|
+
*/
|
|
58
|
+
export declare type AppBootstrapData = Awaited<ReturnType<PublicApi["app"]["bootstrap"]>>["data"];
|
|
59
|
+
|
|
60
|
+
/** Options for `app.bootstrap`. */
|
|
61
|
+
export declare interface AppBootstrapOptions {
|
|
62
|
+
/**
|
|
63
|
+
* The `etag` of the last bootstrap the app kept. When the studio's
|
|
64
|
+
* settings are unchanged the server answers 304 and the call resolves to
|
|
65
|
+
* `{ status: "unchanged" }`, so keep using the data stored with it. Omit it
|
|
66
|
+
* (or pass `null`) on a first launch, or when no data is stored.
|
|
67
|
+
*/
|
|
68
|
+
readonly etag?: string | null;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* What `app.bootstrap` resolves to:
|
|
73
|
+
* - `ok`: the current settings, and the `etag` to store beside them and send
|
|
74
|
+
* next time;
|
|
75
|
+
* - `unchanged`: the `etag` you sent is still current (a 304 with no body):
|
|
76
|
+
* the data you stored with it is up to date.
|
|
77
|
+
*/
|
|
78
|
+
export declare type AppBootstrapResult = {
|
|
79
|
+
readonly status: "ok";
|
|
80
|
+
readonly data: AppBootstrapData;
|
|
81
|
+
readonly etag: string;
|
|
82
|
+
} | {
|
|
83
|
+
readonly status: "unchanged";
|
|
84
|
+
readonly etag: string;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
/** `client.app`: the app's launch read. */
|
|
88
|
+
export declare interface AppNamespace {
|
|
89
|
+
/**
|
|
90
|
+
* Reads the studio's app launch settings. Needs the client id alone; a
|
|
91
|
+
* signed-in member's session changes nothing in the payload. Pass the
|
|
92
|
+
* `etag` of the data you stored last time to revalidate it: an unchanged
|
|
93
|
+
* studio answers `{ status: "unchanged" }` without a body.
|
|
94
|
+
*
|
|
95
|
+
* Rejects with a `FytkitError`, as every SDK method does (e.g.
|
|
96
|
+
* `{ kind: "not_found" }` for a studio that no longer exists,
|
|
97
|
+
* `{ kind: "network" }` offline): keep painting the stored data then.
|
|
98
|
+
*
|
|
99
|
+
* ```ts
|
|
100
|
+
* const stored = await loadBootstrap(); // { data, etag } | null
|
|
101
|
+
* const result = await fytkit.app.bootstrap({ etag: stored?.etag });
|
|
102
|
+
* const data = result.status === "ok" ? result.data : stored.data;
|
|
103
|
+
* if (result.status === "ok") await saveBootstrap(result);
|
|
104
|
+
* ```
|
|
105
|
+
*/
|
|
106
|
+
readonly bootstrap: (options?: AppBootstrapOptions) => Promise<AppBootstrapResult>;
|
|
107
|
+
}
|
|
108
|
+
|
|
45
109
|
/** Auth-state events emitted on `onAuthStateChange`. */
|
|
46
110
|
export declare type AuthState = {
|
|
47
111
|
readonly type: "signed_in";
|
|
@@ -63,6 +127,13 @@ export declare type AuthState = {
|
|
|
63
127
|
readonly type: "signed_out_due_to_token_reuse";
|
|
64
128
|
};
|
|
65
129
|
|
|
130
|
+
declare type CallingDeveloperApp = {
|
|
131
|
+
readonly kind: "fytkit_app";
|
|
132
|
+
} | {
|
|
133
|
+
readonly kind: "custom";
|
|
134
|
+
readonly allowedOrigins: readonly string[];
|
|
135
|
+
};
|
|
136
|
+
|
|
66
137
|
/**
|
|
67
138
|
* Member-facing plan features. A trainer toggles these per pricing tier; a
|
|
68
139
|
* member's active subscription grants the codes attached to the tier they
|
|
@@ -74,12 +145,14 @@ export declare type AuthState = {
|
|
|
74
145
|
* `coaching_checkins` gates weekly check-ins (#463), and
|
|
75
146
|
* `coaching_messages` gates member-initiated messaging (#465). Staff can
|
|
76
147
|
* always message a member, and a member without `coaching_messages` may
|
|
77
|
-
* still answer a conversation staff started (D2).
|
|
148
|
+
* still answer a conversation staff started (D2). `coaching_habits` gates
|
|
149
|
+
* the member's habits (#470); staff can assign and log them either way
|
|
150
|
+
* (M3-1 A).
|
|
78
151
|
*
|
|
79
152
|
* Distinct from `catalogue.ts`, which is the *trainer*-side entitlement
|
|
80
153
|
* catalogue driven by the trainer's fytkit subscription.
|
|
81
154
|
*/
|
|
82
|
-
declare type ClientEntitlementCode = "premium_workouts" | "premium_programs" | "premium_nutrition" | "premium_recipes" | "premium_articles" | "coaching_checkins" | "coaching_messages";
|
|
155
|
+
declare type ClientEntitlementCode = "premium_workouts" | "premium_programs" | "premium_nutrition" | "premium_recipes" | "premium_articles" | "coaching_checkins" | "coaching_messages" | "coaching_habits";
|
|
83
156
|
|
|
84
157
|
declare type ClientEntitlements = readonly ClientEntitlementCode[] | "all";
|
|
85
158
|
|
|
@@ -94,8 +167,20 @@ export declare function createLocalStorageAdapter(clientId: string): TokenStorag
|
|
|
94
167
|
/** In-memory storage. Useful for tests and SSR. */
|
|
95
168
|
export declare function createMemoryStorageAdapter(): TokenStorage;
|
|
96
169
|
|
|
170
|
+
declare interface DeveloperAppRequestContext {
|
|
171
|
+
readonly headers: Headers;
|
|
172
|
+
readonly surface?: RequestSurface;
|
|
173
|
+
}
|
|
174
|
+
|
|
97
175
|
/** The full SDK client surface. `auth.*` plus the public-router slices, minus auth (those live on `client.auth`). */
|
|
98
176
|
export declare interface FytkitClient {
|
|
177
|
+
/**
|
|
178
|
+
* The client id this client was created with: the studio's app. Key
|
|
179
|
+
* anything you cache per studio by it (a stored `app.bootstrap`, a
|
|
180
|
+
* persisted query cache), since an app that joins another studio makes a
|
|
181
|
+
* new client.
|
|
182
|
+
*/
|
|
183
|
+
readonly clientId: string;
|
|
99
184
|
readonly auth: {
|
|
100
185
|
signUp: (input: {
|
|
101
186
|
email: string;
|
|
@@ -121,6 +206,12 @@ export declare interface FytkitClient {
|
|
|
121
206
|
confirmEmail: (input: {
|
|
122
207
|
token: string;
|
|
123
208
|
}) => Promise<void>;
|
|
209
|
+
/** Mails a new verification link to the signed-in member's own address
|
|
210
|
+
* (requires a signed-in session; there is no email input). Resolves to
|
|
211
|
+
* `{ status: "already_verified" }`, sending nothing, when the address is
|
|
212
|
+
* verified already. Throttled per account (one send a minute, five an
|
|
213
|
+
* hour): over the limit it rejects with `{ kind: "rate_limited" }`. */
|
|
214
|
+
resendVerification: () => Promise<ResendVerificationResult>;
|
|
124
215
|
verifyTotp: (input: {
|
|
125
216
|
challenge: TwoFactorChallenge;
|
|
126
217
|
code: string;
|
|
@@ -166,6 +257,16 @@ export declare interface FytkitClient {
|
|
|
166
257
|
changeEmail: (input: {
|
|
167
258
|
newEmail: string;
|
|
168
259
|
}) => Promise<void>;
|
|
260
|
+
/** Applies the email change with the token from the confirmation link,
|
|
261
|
+
* for an app that opens that link itself (Fytkit Coach's app link). Needs
|
|
262
|
+
* no session: the emailed token is the proof. Idempotent: a link already
|
|
263
|
+
* applied (e.g. by a mail scanner) resolves while the address still holds.
|
|
264
|
+
* An invalid or expired token, or one for another studio's member,
|
|
265
|
+
* rejects with a 400; an address taken since the request with
|
|
266
|
+
* `{ kind: "conflict" }`. */
|
|
267
|
+
confirmEmailChange: (input: {
|
|
268
|
+
token: string;
|
|
269
|
+
}) => Promise<void>;
|
|
169
270
|
/** The trainee's unexpired sessions issued through this app, plus the
|
|
170
271
|
* calling one. Sessions in fytkit's own apps, in other developer apps, and
|
|
171
272
|
* from before sessions were bound to apps are never listed. */
|
|
@@ -204,6 +305,21 @@ export declare interface FytkitClient {
|
|
|
204
305
|
readonly sessionLogs: PublicApi["sessionLog"];
|
|
205
306
|
readonly progression: PublicApi["progression"];
|
|
206
307
|
readonly bodyMetrics: PublicApi["bodyMetric"];
|
|
308
|
+
/**
|
|
309
|
+
* The trainee's girth measurements (waist, hips, chest, neck, shoulders,
|
|
310
|
+
* arms, thighs, calves) in centimetres: listing, recording any subset
|
|
311
|
+
* taken together, and deleting one. Writes are refused while a fytkit
|
|
312
|
+
* admin is signed in as the trainee.
|
|
313
|
+
*/
|
|
314
|
+
readonly bodyMeasurements: PublicApi["bodyMeasurement"];
|
|
315
|
+
/**
|
|
316
|
+
* The trainee's progress photos and their opt-in: the timeline (signed
|
|
317
|
+
* reads that last 15 minutes, 48 at a time), comparing two photos of one
|
|
318
|
+
* pose, adding photos (reserve an upload, PUT the file, then add), deleting
|
|
319
|
+
* one, and turning progress photos on or off (off deletes them). Writes are
|
|
320
|
+
* refused while a fytkit admin is signed in as the trainee.
|
|
321
|
+
*/
|
|
322
|
+
readonly progressPhotos: PublicApi["progressPhoto"];
|
|
207
323
|
/** Weekly or fortnightly check-ins; needs a plan with `coaching_checkins`. */
|
|
208
324
|
readonly checkIns: PublicApi["checkin"];
|
|
209
325
|
/**
|
|
@@ -215,9 +331,36 @@ export declare interface FytkitClient {
|
|
|
215
331
|
* to poll instead.
|
|
216
332
|
*/
|
|
217
333
|
readonly messages: PublicApi["message"];
|
|
334
|
+
/**
|
|
335
|
+
* The trainee's own activity, newest first: only what they may see (no
|
|
336
|
+
* notes, messages or health records), coaches by display name, no text.
|
|
337
|
+
*/
|
|
338
|
+
readonly timeline: PublicApi["timeline"];
|
|
339
|
+
/**
|
|
340
|
+
* The trainee's health and equipment: what their trainer recorded about
|
|
341
|
+
* injuries and limitations, reporting a new injury for a coach to
|
|
342
|
+
* complete, their equipment per location, the health questionnaire with
|
|
343
|
+
* its consent, and deleting their health data.
|
|
344
|
+
* Every write is refused while a fytkit admin is signed in as the trainee.
|
|
345
|
+
*/
|
|
346
|
+
readonly health: PublicApi["health"];
|
|
347
|
+
/**
|
|
348
|
+
* The trainee's habits, the daily and weekly targets their trainer set:
|
|
349
|
+
* today's habits with streaks, every habit with its logs over up to 62
|
|
350
|
+
* days, and logging or clearing one of the last 7 days (the trainee's own
|
|
351
|
+
* calendar days). Needs `coaching_habits` on the trainee's plan. Every
|
|
352
|
+
* write is refused while a fytkit admin is signed in as the trainee.
|
|
353
|
+
*/
|
|
354
|
+
readonly habits: PublicApi["habit"];
|
|
218
355
|
readonly progress: PublicApi["progress"];
|
|
219
356
|
readonly media: PublicApi["media"];
|
|
220
|
-
|
|
357
|
+
/**
|
|
358
|
+
* The app's launch read: `app.bootstrap({ etag })` returns the studio's
|
|
359
|
+
* name, logo, app theme, feature overrides, minimum app version, links
|
|
360
|
+
* and Realtime settings, or `{ status: "unchanged" }` when
|
|
361
|
+
* the `etag` you stored is still current. Replaces `appConfig.get` (4.0.0).
|
|
362
|
+
*/
|
|
363
|
+
readonly app: AppNamespace;
|
|
221
364
|
readonly subscription: PublicApi["subscription"];
|
|
222
365
|
readonly profile: PublicApi["profile"];
|
|
223
366
|
readonly nutritionLog: PublicApi["nutritionLog"];
|
|
@@ -294,8 +437,16 @@ export declare type FytkitError = {
|
|
|
294
437
|
* - `"invalid_code"` (`server`, 400) — a TOTP, backup or email one-time code
|
|
295
438
|
* was wrong (`verifyTotp`, `verifyBackupCode`, `verifyEmailOtp`,
|
|
296
439
|
* `verifyTotpSetup`).
|
|
440
|
+
* - `"first_party_account"` (`forbidden`, 403) — the account also runs or
|
|
441
|
+
* works at a trainer on Fytkit, so an app may not sign it in, sign it up,
|
|
442
|
+
* reset its password or handle its two-factor steps (`signIn`, `signUp`,
|
|
443
|
+
* the `verify*` and TOTP methods), and an existing session can't change
|
|
444
|
+
* its password or email or close it (`changePassword`, `changeEmail`,
|
|
445
|
+
* `closeAccount`). The credentials were right; tell the
|
|
446
|
+
* person to sign in with Fytkit itself. `requestPasswordReset` never sends
|
|
447
|
+
* this: it answers `ok` and sends no email.
|
|
297
448
|
*/
|
|
298
|
-
export declare type FytkitErrorCode = "reauth_required" | "invalid_password" | "invalid_code" | (string & {});
|
|
449
|
+
export declare type FytkitErrorCode = "reauth_required" | "invalid_password" | "invalid_code" | "first_party_account" | (string & {});
|
|
299
450
|
|
|
300
451
|
/**
|
|
301
452
|
* The server's structured refusal on a `FytkitError`: why it said no and
|
|
@@ -326,6 +477,12 @@ export declare interface FytkitRefusalDataByReason {
|
|
|
326
477
|
} | {
|
|
327
478
|
readonly entitlement: "coaching_messages";
|
|
328
479
|
readonly eligibility: "upgrade_required" | "wait_for_coach";
|
|
480
|
+
} | {
|
|
481
|
+
readonly entitlement: "coaching_habits";
|
|
482
|
+
/** On `habits.today` only: whether their coach gave them a habit that hasn't ended. */
|
|
483
|
+
readonly member?: {
|
|
484
|
+
readonly assigned: boolean;
|
|
485
|
+
};
|
|
329
486
|
};
|
|
330
487
|
/** The check-in already sent for this period. */
|
|
331
488
|
readonly already_submitted: {
|
|
@@ -381,6 +538,37 @@ export declare interface FytkitRefusalDataByReason {
|
|
|
381
538
|
readonly no_connected_account: Readonly<Record<string, never>>;
|
|
382
539
|
/** The studio hasn't set up its billing portal. */
|
|
383
540
|
readonly portal_unavailable: Readonly<Record<string, never>>;
|
|
541
|
+
/** Their coach entered this weigh-in or measurement. */
|
|
542
|
+
readonly staff_entered: Readonly<Record<string, never>>;
|
|
543
|
+
/** A check-in recorded this weigh-in; edit the check-in instead. */
|
|
544
|
+
readonly checkin_sourced: Readonly<Record<string, never>>;
|
|
545
|
+
/**
|
|
546
|
+
* Health: no consent on file at `currentVersion` (`health.reportInjury`).
|
|
547
|
+
* Progress photos: they are off, and nothing else is sent.
|
|
548
|
+
*/
|
|
549
|
+
readonly consent_required: {
|
|
550
|
+
readonly currentVersion?: string;
|
|
551
|
+
};
|
|
552
|
+
/** The health-data consent wording changed; `currentVersion` is the current one. */
|
|
553
|
+
readonly consent_outdated: {
|
|
554
|
+
readonly currentVersion: string;
|
|
555
|
+
};
|
|
556
|
+
/** `limit` injury reports already wait for the coach. */
|
|
557
|
+
readonly too_many_pending: {
|
|
558
|
+
readonly limit: number;
|
|
559
|
+
};
|
|
560
|
+
/** The progress-photo timeline holds `limit` photos. */
|
|
561
|
+
readonly photo_limit_reached: {
|
|
562
|
+
readonly limit: number;
|
|
563
|
+
};
|
|
564
|
+
/** Photo uploads that can't be added; upload them again. */
|
|
565
|
+
readonly invalid_uploads: {
|
|
566
|
+
readonly uploadIds: readonly string[];
|
|
567
|
+
};
|
|
568
|
+
/** Two photos of different poses can't be compared. */
|
|
569
|
+
readonly poses_differ: Readonly<Record<string, never>>;
|
|
570
|
+
/** No studio has the join code, or the studio replaced it. */
|
|
571
|
+
readonly join_code_inactive: Readonly<Record<string, never>>;
|
|
384
572
|
}
|
|
385
573
|
|
|
386
574
|
/**
|
|
@@ -428,8 +616,42 @@ export declare interface FytkitRefusalDataByReason {
|
|
|
428
616
|
* paid plan here; hide "Manage billing".
|
|
429
617
|
* - `"no_connected_account"`, `"portal_unavailable"` (`server`, 400): the
|
|
430
618
|
* studio's billing isn't set up; send the member to their coach.
|
|
619
|
+
*
|
|
620
|
+
* Habits (`habits.*`):
|
|
621
|
+
* - `"entitlement_required"` (`forbidden`, 403): the member's plan lacks
|
|
622
|
+
* `coaching_habits`. On `habits.today` the data also says whether their
|
|
623
|
+
* coach gave them a habit that hasn't ended (`member.assigned`): show an
|
|
624
|
+
* upgrade prompt when it is true.
|
|
625
|
+
*
|
|
626
|
+
* Weigh-ins and measurements (`bodyMetrics.update`, `bodyMetrics.delete`,
|
|
627
|
+
* `bodyMeasurements.delete`):
|
|
628
|
+
* - `"staff_entered"` (`conflict`, 409): their coach entered it; it is the
|
|
629
|
+
* coach's to change or remove.
|
|
630
|
+
* - `"checkin_sourced"` (`conflict`, 409, `bodyMetrics.update`): a check-in
|
|
631
|
+
* recorded it; change it by editing the check-in.
|
|
632
|
+
*
|
|
633
|
+
* Progress photos (`progressPhotos.*`):
|
|
634
|
+
* - `"consent_required"` (`conflict`, 409): progress photos are off.
|
|
635
|
+
* - `"photo_limit_reached"` (`conflict`, 409): the timeline holds `limit`
|
|
636
|
+
* photos.
|
|
637
|
+
* - `"invalid_uploads"` (`server`, 400): `uploadIds` that can't be added.
|
|
638
|
+
* - `"poses_differ"` (`server`, 400): compare two photos of the same pose.
|
|
639
|
+
*
|
|
640
|
+
* Health (`health.submitIntake`, `health.reportInjury`):
|
|
641
|
+
* - `"consent_required"` (`conflict`, 409, `reportInjury`): no consent on
|
|
642
|
+
* file at `currentVersion`; send the report again with consent.
|
|
643
|
+
* - `"consent_outdated"` (`conflict`, 409): the consent wording changed to
|
|
644
|
+
* `currentVersion`; show it again.
|
|
645
|
+
* - `"too_many_pending"` (`conflict`, 409, `reportInjury`): `limit` reports
|
|
646
|
+
* already wait for the coach.
|
|
647
|
+
* - `"questions_changed"` (`conflict`, 409), `"invalid_answers"`
|
|
648
|
+
* (`validation`, 400) on `submitIntake`, as on check-ins.
|
|
649
|
+
*
|
|
650
|
+
* Join codes (`resolveJoinCode`):
|
|
651
|
+
* - `"join_code_inactive"` (`not_found`, 404): no studio has the code, or
|
|
652
|
+
* the studio replaced it; ask the member to get a new one from their coach.
|
|
431
653
|
*/
|
|
432
|
-
export declare type FytkitRefusalReason = "entitlement_required" | "already_submitted" | "reviewed" | "questions_changed" | "not_scheduled" | "not_open" | "not_current_period" | "invalid_answers" | "invalid_photos" | "invalid_attachments" | "per_minute_limit" | "daily_limit" | "too_many_pending_uploads" | "already_subscribed" | "payment_issue" | "max_clients" | "no_billing_account" | "no_connected_account" | "portal_unavailable" | (string & {});
|
|
654
|
+
export declare type FytkitRefusalReason = "entitlement_required" | "already_submitted" | "reviewed" | "questions_changed" | "not_scheduled" | "not_open" | "not_current_period" | "invalid_answers" | "invalid_photos" | "invalid_attachments" | "per_minute_limit" | "daily_limit" | "too_many_pending_uploads" | "already_subscribed" | "payment_issue" | "max_clients" | "no_billing_account" | "no_connected_account" | "portal_unavailable" | "staff_entered" | "checkin_sourced" | "consent_required" | "consent_outdated" | "too_many_pending" | "photo_limit_reached" | "invalid_uploads" | "poses_differ" | "join_code_inactive" | (string & {});
|
|
433
655
|
|
|
434
656
|
/** When a limited action is allowed again, as the 429 refusals send it. */
|
|
435
657
|
export declare interface FytkitRefusalRetryAt {
|
|
@@ -441,6 +663,80 @@ export declare interface FytkitRefusalRetryAt {
|
|
|
441
663
|
readonly retryAfterMs?: number;
|
|
442
664
|
}
|
|
443
665
|
|
|
666
|
+
/** A coach a join code's studio names publicly. */
|
|
667
|
+
export declare interface JoinCodeCoach {
|
|
668
|
+
/** The coach's public name. */
|
|
669
|
+
readonly name: string;
|
|
670
|
+
/** The coach's public profile image, a stable URL; null when there is none. */
|
|
671
|
+
readonly avatarUrl: string | null;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
/** What a join code resolves to. */
|
|
675
|
+
export declare interface JoinCodeResolution {
|
|
676
|
+
/** The code in canonical form: upper case, no spaces or hyphens. */
|
|
677
|
+
readonly code: string;
|
|
678
|
+
/** The studio's Fytkit Coach client id: pass it to `createFytkitClient`. */
|
|
679
|
+
readonly clientId: string;
|
|
680
|
+
/** What the welcome screen names and shows. */
|
|
681
|
+
readonly studio: {
|
|
682
|
+
/** The name members know the studio by. */
|
|
683
|
+
readonly name: string;
|
|
684
|
+
/** The studio's logo, a stable public URL; null when it has none. */
|
|
685
|
+
readonly logoUrl: string | null;
|
|
686
|
+
/**
|
|
687
|
+
* Who coaches there, as the studio's public site shows them: today one
|
|
688
|
+
* entry, the studio's own coach profile (never staff). At most 3.
|
|
689
|
+
*/
|
|
690
|
+
readonly coaches: readonly JoinCodeCoach[];
|
|
691
|
+
/** Published programmes, any access level; drafts and archived ones never count. */
|
|
692
|
+
readonly programCount: number;
|
|
693
|
+
};
|
|
694
|
+
/** The design the app paints for the studio. */
|
|
695
|
+
readonly theme: JoinCodeTheme;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* The design the app paints for the studio: its Fytkit Coach theme (an
|
|
700
|
+
* app-only one if the studio picked one, otherwise its published site design),
|
|
701
|
+
* the theme's palette and the shades derived from it. Every colour is a
|
|
702
|
+
* `#rrggbb` hex string.
|
|
703
|
+
*/
|
|
704
|
+
export declare interface JoinCodeTheme {
|
|
705
|
+
/** The site template the design comes from (the app calls it the theme). */
|
|
706
|
+
readonly templateId: string;
|
|
707
|
+
/** The template's colour theme (the app calls it the palette). */
|
|
708
|
+
readonly themeId: string;
|
|
709
|
+
/** The theme's curated colours. */
|
|
710
|
+
readonly palette: {
|
|
711
|
+
readonly primary: string;
|
|
712
|
+
readonly secondary: string;
|
|
713
|
+
readonly accent: string;
|
|
714
|
+
readonly background: string;
|
|
715
|
+
readonly text: string;
|
|
716
|
+
};
|
|
717
|
+
/** Shades derived from the palette, for states and text on fills. */
|
|
718
|
+
readonly variants: {
|
|
719
|
+
/** Hover/press shade of `primary`. */
|
|
720
|
+
readonly primaryDeep: string;
|
|
721
|
+
/** Tinted background of `primary`. */
|
|
722
|
+
readonly primarySoft: string;
|
|
723
|
+
/** Text that reads on `primary`. */
|
|
724
|
+
readonly onPrimary: string;
|
|
725
|
+
/** Hover/press shade of `accent`. */
|
|
726
|
+
readonly accentDeep: string;
|
|
727
|
+
/** Tinted background of `accent`. */
|
|
728
|
+
readonly accentSoft: string;
|
|
729
|
+
/** Text that reads on `accent`. */
|
|
730
|
+
readonly onAccent: string;
|
|
731
|
+
/** The highlight fill, legible under dark ink text. */
|
|
732
|
+
readonly highlight: string;
|
|
733
|
+
/** Hover/press shade of `highlight`. */
|
|
734
|
+
readonly highlightDeep: string;
|
|
735
|
+
/** Tinted background of `highlight`. */
|
|
736
|
+
readonly highlightSoft: string;
|
|
737
|
+
};
|
|
738
|
+
}
|
|
739
|
+
|
|
444
740
|
/**
|
|
445
741
|
* How often to poll while the status is `connecting` or `fallback`: the open
|
|
446
742
|
* conversation every 10 seconds, the unread count every 60. Polling spends
|
|
@@ -469,12 +765,18 @@ export declare interface MessagesRealtimeGrant {
|
|
|
469
765
|
|
|
470
766
|
/** The calls the subscription needs. A `FytkitClient` is one. */
|
|
471
767
|
export declare interface MessagesRealtimeSource {
|
|
472
|
-
/**
|
|
473
|
-
|
|
474
|
-
|
|
768
|
+
/**
|
|
769
|
+
* `app.bootstrap`, for the Realtime connection settings. Called without an
|
|
770
|
+
* ETag, so it always answers `ok` with the data.
|
|
771
|
+
*/
|
|
772
|
+
readonly app: {
|
|
773
|
+
bootstrap(): PromiseLike<{
|
|
774
|
+
readonly status: "ok";
|
|
475
775
|
readonly data: {
|
|
476
776
|
readonly realtime: RealtimeConnection;
|
|
477
777
|
};
|
|
778
|
+
} | {
|
|
779
|
+
readonly status: "unchanged";
|
|
478
780
|
}>;
|
|
479
781
|
};
|
|
480
782
|
/** `messages.realtimeToken`, for the token and its topic. */
|
|
@@ -508,7 +810,7 @@ export declare interface MessagesRealtimeSource {
|
|
|
508
810
|
* channel after 5 seconds, then 15, then every minute, with a new token
|
|
509
811
|
* first if the one it holds has expired). For good, and polling carries
|
|
510
812
|
* on, when the server has no live updates to offer (a token without
|
|
511
|
-
* `topic`, no connection settings, or `
|
|
813
|
+
* `topic`, no connection settings, or `app.bootstrap` refused) or the
|
|
512
814
|
* factory threw.
|
|
513
815
|
* - `refused`: the token request was refused (`auth_required`,
|
|
514
816
|
* `forbidden`, `not_found` or `validation`), asking again won't change
|
|
@@ -520,28 +822,40 @@ export declare interface MessagesRealtimeSource {
|
|
|
520
822
|
*/
|
|
521
823
|
export declare type MessagesRealtimeStatus = "connecting" | "live" | "fallback" | "refused";
|
|
522
824
|
|
|
825
|
+
/**
|
|
826
|
+
* What to show:
|
|
827
|
+
* - `link_out`: "Subscribe", opening the studio's checkout outside the app,
|
|
828
|
+
* in the way each of `conditions` requires (none: a plain link to the
|
|
829
|
+
* system browser);
|
|
830
|
+
* - `plan_info`: "What your plan includes", with no purchase and no link to one.
|
|
831
|
+
*/
|
|
832
|
+
export declare type PaymentMode = {
|
|
833
|
+
readonly mode: "link_out";
|
|
834
|
+
readonly conditions: readonly string[];
|
|
835
|
+
} | {
|
|
836
|
+
readonly mode: "plan_info";
|
|
837
|
+
};
|
|
838
|
+
|
|
839
|
+
/** The store the running app was installed from. */
|
|
840
|
+
export declare type PaymentPlatform = PaymentPolicy["linkOut"][number]["platform"];
|
|
841
|
+
|
|
842
|
+
/** `app.bootstrap`'s `data.paymentPolicy`. */
|
|
843
|
+
export declare type PaymentPolicy = AppBootstrapData["paymentPolicy"];
|
|
844
|
+
|
|
523
845
|
export declare type PublicApi = RouterClient<PublicRouter>;
|
|
524
846
|
|
|
525
847
|
declare type PublicRouter = typeof publicRouter;
|
|
526
848
|
|
|
527
849
|
declare const publicRouter: {
|
|
528
850
|
auth: {
|
|
529
|
-
signUp: DecoratedProcedure<MergedInitialContext<
|
|
530
|
-
headers: Headers;
|
|
531
|
-
} & Record<never, never>, {
|
|
532
|
-
headers: Headers;
|
|
533
|
-
} & Record<never, never>, {
|
|
534
|
-
headers: Headers;
|
|
535
|
-
}>, MergedCurrentContext< {
|
|
536
|
-
headers: Headers;
|
|
537
|
-
}, {
|
|
851
|
+
signUp: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, {
|
|
538
852
|
trainerId: string;
|
|
539
853
|
appId: ActiveDeveloperAppId;
|
|
540
854
|
clientId: string | undefined;
|
|
541
855
|
hasActiveSubscription: boolean;
|
|
542
856
|
clientEntitlements: ClientEntitlements;
|
|
543
857
|
authMode: "dev-app";
|
|
544
|
-
|
|
858
|
+
developerApp: CallingDeveloperApp;
|
|
545
859
|
impersonatedBy: string | null;
|
|
546
860
|
}>, ZodObject< {
|
|
547
861
|
email: ZodString;
|
|
@@ -559,22 +873,14 @@ declare const publicRouter: {
|
|
|
559
873
|
}, $strip>;
|
|
560
874
|
}, $strip>;
|
|
561
875
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
562
|
-
signIn: DecoratedProcedure<MergedInitialContext<
|
|
563
|
-
headers: Headers;
|
|
564
|
-
} & Record<never, never>, {
|
|
565
|
-
headers: Headers;
|
|
566
|
-
} & Record<never, never>, {
|
|
567
|
-
headers: Headers;
|
|
568
|
-
}>, MergedCurrentContext< {
|
|
569
|
-
headers: Headers;
|
|
570
|
-
}, {
|
|
876
|
+
signIn: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, {
|
|
571
877
|
trainerId: string;
|
|
572
878
|
appId: ActiveDeveloperAppId;
|
|
573
879
|
clientId: string | undefined;
|
|
574
880
|
hasActiveSubscription: boolean;
|
|
575
881
|
clientEntitlements: ClientEntitlements;
|
|
576
882
|
authMode: "dev-app";
|
|
577
|
-
|
|
883
|
+
developerApp: CallingDeveloperApp;
|
|
578
884
|
impersonatedBy: string | null;
|
|
579
885
|
}>, ZodObject< {
|
|
580
886
|
email: ZodString;
|
|
@@ -600,22 +906,14 @@ declare const publicRouter: {
|
|
|
600
906
|
}>>;
|
|
601
907
|
}, $strip>], "kind">;
|
|
602
908
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
603
|
-
signOut: DecoratedProcedure<MergedInitialContext<
|
|
604
|
-
headers: Headers;
|
|
605
|
-
} & Record<never, never>, {
|
|
606
|
-
headers: Headers;
|
|
607
|
-
} & Record<never, never>, {
|
|
608
|
-
headers: Headers;
|
|
609
|
-
}>, MergedCurrentContext< {
|
|
610
|
-
headers: Headers;
|
|
611
|
-
}, {
|
|
909
|
+
signOut: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, {
|
|
612
910
|
trainerId: string;
|
|
613
911
|
appId: ActiveDeveloperAppId;
|
|
614
912
|
clientId: string | undefined;
|
|
615
913
|
hasActiveSubscription: boolean;
|
|
616
914
|
clientEntitlements: ClientEntitlements;
|
|
617
915
|
authMode: "dev-app";
|
|
618
|
-
|
|
916
|
+
developerApp: CallingDeveloperApp;
|
|
619
917
|
impersonatedBy: string | null;
|
|
620
918
|
}>, ZodObject< {
|
|
621
919
|
token: ZodString;
|
|
@@ -624,22 +922,14 @@ declare const publicRouter: {
|
|
|
624
922
|
ok: ZodLiteral<true>;
|
|
625
923
|
}, $strip>;
|
|
626
924
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
627
|
-
refresh: DecoratedProcedure<MergedInitialContext<
|
|
628
|
-
headers: Headers;
|
|
629
|
-
} & Record<never, never>, {
|
|
630
|
-
headers: Headers;
|
|
631
|
-
} & Record<never, never>, {
|
|
632
|
-
headers: Headers;
|
|
633
|
-
}>, MergedCurrentContext< {
|
|
634
|
-
headers: Headers;
|
|
635
|
-
}, {
|
|
925
|
+
refresh: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, {
|
|
636
926
|
trainerId: string;
|
|
637
927
|
appId: ActiveDeveloperAppId;
|
|
638
928
|
clientId: string | undefined;
|
|
639
929
|
hasActiveSubscription: boolean;
|
|
640
930
|
clientEntitlements: ClientEntitlements;
|
|
641
931
|
authMode: "dev-app";
|
|
642
|
-
|
|
932
|
+
developerApp: CallingDeveloperApp;
|
|
643
933
|
impersonatedBy: string | null;
|
|
644
934
|
}>, ZodObject< {
|
|
645
935
|
token: ZodString;
|
|
@@ -655,22 +945,14 @@ declare const publicRouter: {
|
|
|
655
945
|
}, $strip>;
|
|
656
946
|
}, $strip>;
|
|
657
947
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
658
|
-
requestPasswordReset: DecoratedProcedure<MergedInitialContext<
|
|
659
|
-
headers: Headers;
|
|
660
|
-
} & Record<never, never>, {
|
|
661
|
-
headers: Headers;
|
|
662
|
-
} & Record<never, never>, {
|
|
663
|
-
headers: Headers;
|
|
664
|
-
}>, MergedCurrentContext< {
|
|
665
|
-
headers: Headers;
|
|
666
|
-
}, {
|
|
948
|
+
requestPasswordReset: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, {
|
|
667
949
|
trainerId: string;
|
|
668
950
|
appId: ActiveDeveloperAppId;
|
|
669
951
|
clientId: string | undefined;
|
|
670
952
|
hasActiveSubscription: boolean;
|
|
671
953
|
clientEntitlements: ClientEntitlements;
|
|
672
954
|
authMode: "dev-app";
|
|
673
|
-
|
|
955
|
+
developerApp: CallingDeveloperApp;
|
|
674
956
|
impersonatedBy: string | null;
|
|
675
957
|
}>, ZodObject< {
|
|
676
958
|
email: ZodString;
|
|
@@ -679,22 +961,14 @@ declare const publicRouter: {
|
|
|
679
961
|
ok: ZodLiteral<true>;
|
|
680
962
|
}, $strip>;
|
|
681
963
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
682
|
-
confirmPasswordReset: DecoratedProcedure<MergedInitialContext<
|
|
683
|
-
headers: Headers;
|
|
684
|
-
} & Record<never, never>, {
|
|
685
|
-
headers: Headers;
|
|
686
|
-
} & Record<never, never>, {
|
|
687
|
-
headers: Headers;
|
|
688
|
-
}>, MergedCurrentContext< {
|
|
689
|
-
headers: Headers;
|
|
690
|
-
}, {
|
|
964
|
+
confirmPasswordReset: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, {
|
|
691
965
|
trainerId: string;
|
|
692
966
|
appId: ActiveDeveloperAppId;
|
|
693
967
|
clientId: string | undefined;
|
|
694
968
|
hasActiveSubscription: boolean;
|
|
695
969
|
clientEntitlements: ClientEntitlements;
|
|
696
970
|
authMode: "dev-app";
|
|
697
|
-
|
|
971
|
+
developerApp: CallingDeveloperApp;
|
|
698
972
|
impersonatedBy: string | null;
|
|
699
973
|
}>, ZodObject< {
|
|
700
974
|
token: ZodString;
|
|
@@ -704,22 +978,14 @@ declare const publicRouter: {
|
|
|
704
978
|
ok: ZodLiteral<true>;
|
|
705
979
|
}, $strip>;
|
|
706
980
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
707
|
-
confirmEmail: DecoratedProcedure<MergedInitialContext<
|
|
708
|
-
headers: Headers;
|
|
709
|
-
} & Record<never, never>, {
|
|
710
|
-
headers: Headers;
|
|
711
|
-
} & Record<never, never>, {
|
|
712
|
-
headers: Headers;
|
|
713
|
-
}>, MergedCurrentContext< {
|
|
714
|
-
headers: Headers;
|
|
715
|
-
}, {
|
|
981
|
+
confirmEmail: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, {
|
|
716
982
|
trainerId: string;
|
|
717
983
|
appId: ActiveDeveloperAppId;
|
|
718
984
|
clientId: string | undefined;
|
|
719
985
|
hasActiveSubscription: boolean;
|
|
720
986
|
clientEntitlements: ClientEntitlements;
|
|
721
987
|
authMode: "dev-app";
|
|
722
|
-
|
|
988
|
+
developerApp: CallingDeveloperApp;
|
|
723
989
|
impersonatedBy: string | null;
|
|
724
990
|
}>, ZodObject< {
|
|
725
991
|
token: ZodString;
|
|
@@ -728,22 +994,31 @@ declare const publicRouter: {
|
|
|
728
994
|
ok: ZodLiteral<true>;
|
|
729
995
|
}, $strip>;
|
|
730
996
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
997
|
+
resendVerification: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, {
|
|
998
|
+
trainerId: string;
|
|
999
|
+
appId: ActiveDeveloperAppId;
|
|
1000
|
+
clientId: string | undefined;
|
|
1001
|
+
hasActiveSubscription: boolean;
|
|
1002
|
+
clientEntitlements: ClientEntitlements;
|
|
1003
|
+
authMode: "dev-app";
|
|
1004
|
+
developerApp: CallingDeveloperApp;
|
|
1005
|
+
impersonatedBy: string | null;
|
|
1006
|
+
}>, ZodObject< {}, $strict>, ZodObject< {
|
|
1007
|
+
data: ZodObject< {
|
|
1008
|
+
status: ZodEnum< {
|
|
1009
|
+
sent: "sent";
|
|
1010
|
+
already_verified: "already_verified";
|
|
1011
|
+
}>;
|
|
1012
|
+
}, $strip>;
|
|
1013
|
+
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
1014
|
+
enableTotp: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, {
|
|
740
1015
|
trainerId: string;
|
|
741
1016
|
appId: ActiveDeveloperAppId;
|
|
742
1017
|
clientId: string | undefined;
|
|
743
1018
|
hasActiveSubscription: boolean;
|
|
744
1019
|
clientEntitlements: ClientEntitlements;
|
|
745
1020
|
authMode: "dev-app";
|
|
746
|
-
|
|
1021
|
+
developerApp: CallingDeveloperApp;
|
|
747
1022
|
impersonatedBy: string | null;
|
|
748
1023
|
}>, ZodObject< {
|
|
749
1024
|
password: ZodString;
|
|
@@ -753,22 +1028,14 @@ declare const publicRouter: {
|
|
|
753
1028
|
backupCodes: ZodReadonly<ZodArray<ZodString>>;
|
|
754
1029
|
}, $strip>;
|
|
755
1030
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
756
|
-
verifyTotpSetup: DecoratedProcedure<MergedInitialContext<
|
|
757
|
-
headers: Headers;
|
|
758
|
-
} & Record<never, never>, {
|
|
759
|
-
headers: Headers;
|
|
760
|
-
} & Record<never, never>, {
|
|
761
|
-
headers: Headers;
|
|
762
|
-
}>, MergedCurrentContext< {
|
|
763
|
-
headers: Headers;
|
|
764
|
-
}, {
|
|
1031
|
+
verifyTotpSetup: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, {
|
|
765
1032
|
trainerId: string;
|
|
766
1033
|
appId: ActiveDeveloperAppId;
|
|
767
1034
|
clientId: string | undefined;
|
|
768
1035
|
hasActiveSubscription: boolean;
|
|
769
1036
|
clientEntitlements: ClientEntitlements;
|
|
770
1037
|
authMode: "dev-app";
|
|
771
|
-
|
|
1038
|
+
developerApp: CallingDeveloperApp;
|
|
772
1039
|
impersonatedBy: string | null;
|
|
773
1040
|
}>, ZodObject< {
|
|
774
1041
|
code: ZodString;
|
|
@@ -778,22 +1045,14 @@ declare const publicRouter: {
|
|
|
778
1045
|
accessToken: ZodString;
|
|
779
1046
|
}, $strip>;
|
|
780
1047
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
781
|
-
disableTwoFactor: DecoratedProcedure<MergedInitialContext<
|
|
782
|
-
headers: Headers;
|
|
783
|
-
} & Record<never, never>, {
|
|
784
|
-
headers: Headers;
|
|
785
|
-
} & Record<never, never>, {
|
|
786
|
-
headers: Headers;
|
|
787
|
-
}>, MergedCurrentContext< {
|
|
788
|
-
headers: Headers;
|
|
789
|
-
}, {
|
|
1048
|
+
disableTwoFactor: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, {
|
|
790
1049
|
trainerId: string;
|
|
791
1050
|
appId: ActiveDeveloperAppId;
|
|
792
1051
|
clientId: string | undefined;
|
|
793
1052
|
hasActiveSubscription: boolean;
|
|
794
1053
|
clientEntitlements: ClientEntitlements;
|
|
795
1054
|
authMode: "dev-app";
|
|
796
|
-
|
|
1055
|
+
developerApp: CallingDeveloperApp;
|
|
797
1056
|
impersonatedBy: string | null;
|
|
798
1057
|
}>, ZodObject< {
|
|
799
1058
|
password: ZodString;
|
|
@@ -802,22 +1061,14 @@ declare const publicRouter: {
|
|
|
802
1061
|
success: ZodLiteral<true>;
|
|
803
1062
|
}, $strip>;
|
|
804
1063
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
805
|
-
regenerateBackupCodes: DecoratedProcedure<MergedInitialContext<
|
|
806
|
-
headers: Headers;
|
|
807
|
-
} & Record<never, never>, {
|
|
808
|
-
headers: Headers;
|
|
809
|
-
} & Record<never, never>, {
|
|
810
|
-
headers: Headers;
|
|
811
|
-
}>, MergedCurrentContext< {
|
|
812
|
-
headers: Headers;
|
|
813
|
-
}, {
|
|
1064
|
+
regenerateBackupCodes: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, {
|
|
814
1065
|
trainerId: string;
|
|
815
1066
|
appId: ActiveDeveloperAppId;
|
|
816
1067
|
clientId: string | undefined;
|
|
817
1068
|
hasActiveSubscription: boolean;
|
|
818
1069
|
clientEntitlements: ClientEntitlements;
|
|
819
1070
|
authMode: "dev-app";
|
|
820
|
-
|
|
1071
|
+
developerApp: CallingDeveloperApp;
|
|
821
1072
|
impersonatedBy: string | null;
|
|
822
1073
|
}>, ZodObject< {
|
|
823
1074
|
password: ZodString;
|
|
@@ -826,22 +1077,14 @@ declare const publicRouter: {
|
|
|
826
1077
|
backupCodes: ZodReadonly<ZodArray<ZodString>>;
|
|
827
1078
|
}, $strip>;
|
|
828
1079
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
829
|
-
verifyTotp: DecoratedProcedure<MergedInitialContext<
|
|
830
|
-
headers: Headers;
|
|
831
|
-
} & Record<never, never>, {
|
|
832
|
-
headers: Headers;
|
|
833
|
-
} & Record<never, never>, {
|
|
834
|
-
headers: Headers;
|
|
835
|
-
}>, MergedCurrentContext< {
|
|
836
|
-
headers: Headers;
|
|
837
|
-
}, {
|
|
1080
|
+
verifyTotp: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, {
|
|
838
1081
|
trainerId: string;
|
|
839
1082
|
appId: ActiveDeveloperAppId;
|
|
840
1083
|
clientId: string | undefined;
|
|
841
1084
|
hasActiveSubscription: boolean;
|
|
842
1085
|
clientEntitlements: ClientEntitlements;
|
|
843
1086
|
authMode: "dev-app";
|
|
844
|
-
|
|
1087
|
+
developerApp: CallingDeveloperApp;
|
|
845
1088
|
impersonatedBy: string | null;
|
|
846
1089
|
}>, ZodObject< {
|
|
847
1090
|
token: ZodString;
|
|
@@ -858,22 +1101,14 @@ declare const publicRouter: {
|
|
|
858
1101
|
}, $strip>;
|
|
859
1102
|
}, $strip>;
|
|
860
1103
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
861
|
-
verifyBackupCode: DecoratedProcedure<MergedInitialContext<
|
|
862
|
-
headers: Headers;
|
|
863
|
-
} & Record<never, never>, {
|
|
864
|
-
headers: Headers;
|
|
865
|
-
} & Record<never, never>, {
|
|
866
|
-
headers: Headers;
|
|
867
|
-
}>, MergedCurrentContext< {
|
|
868
|
-
headers: Headers;
|
|
869
|
-
}, {
|
|
1104
|
+
verifyBackupCode: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, {
|
|
870
1105
|
trainerId: string;
|
|
871
1106
|
appId: ActiveDeveloperAppId;
|
|
872
1107
|
clientId: string | undefined;
|
|
873
1108
|
hasActiveSubscription: boolean;
|
|
874
1109
|
clientEntitlements: ClientEntitlements;
|
|
875
1110
|
authMode: "dev-app";
|
|
876
|
-
|
|
1111
|
+
developerApp: CallingDeveloperApp;
|
|
877
1112
|
impersonatedBy: string | null;
|
|
878
1113
|
}>, ZodObject< {
|
|
879
1114
|
token: ZodString;
|
|
@@ -890,22 +1125,14 @@ declare const publicRouter: {
|
|
|
890
1125
|
}, $strip>;
|
|
891
1126
|
}, $strip>;
|
|
892
1127
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
893
|
-
requestEmailOtp: DecoratedProcedure<MergedInitialContext<
|
|
894
|
-
headers: Headers;
|
|
895
|
-
} & Record<never, never>, {
|
|
896
|
-
headers: Headers;
|
|
897
|
-
} & Record<never, never>, {
|
|
898
|
-
headers: Headers;
|
|
899
|
-
}>, MergedCurrentContext< {
|
|
900
|
-
headers: Headers;
|
|
901
|
-
}, {
|
|
1128
|
+
requestEmailOtp: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, {
|
|
902
1129
|
trainerId: string;
|
|
903
1130
|
appId: ActiveDeveloperAppId;
|
|
904
1131
|
clientId: string | undefined;
|
|
905
1132
|
hasActiveSubscription: boolean;
|
|
906
1133
|
clientEntitlements: ClientEntitlements;
|
|
907
1134
|
authMode: "dev-app";
|
|
908
|
-
|
|
1135
|
+
developerApp: CallingDeveloperApp;
|
|
909
1136
|
impersonatedBy: string | null;
|
|
910
1137
|
}>, ZodObject< {
|
|
911
1138
|
token: ZodString;
|
|
@@ -914,22 +1141,14 @@ declare const publicRouter: {
|
|
|
914
1141
|
ok: ZodLiteral<true>;
|
|
915
1142
|
}, $strip>;
|
|
916
1143
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
917
|
-
verifyEmailOtp: DecoratedProcedure<MergedInitialContext<
|
|
918
|
-
headers: Headers;
|
|
919
|
-
} & Record<never, never>, {
|
|
920
|
-
headers: Headers;
|
|
921
|
-
} & Record<never, never>, {
|
|
922
|
-
headers: Headers;
|
|
923
|
-
}>, MergedCurrentContext< {
|
|
924
|
-
headers: Headers;
|
|
925
|
-
}, {
|
|
1144
|
+
verifyEmailOtp: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, {
|
|
926
1145
|
trainerId: string;
|
|
927
1146
|
appId: ActiveDeveloperAppId;
|
|
928
1147
|
clientId: string | undefined;
|
|
929
1148
|
hasActiveSubscription: boolean;
|
|
930
1149
|
clientEntitlements: ClientEntitlements;
|
|
931
1150
|
authMode: "dev-app";
|
|
932
|
-
|
|
1151
|
+
developerApp: CallingDeveloperApp;
|
|
933
1152
|
impersonatedBy: string | null;
|
|
934
1153
|
}>, ZodObject< {
|
|
935
1154
|
token: ZodString;
|
|
@@ -946,22 +1165,14 @@ declare const publicRouter: {
|
|
|
946
1165
|
}, $strip>;
|
|
947
1166
|
}, $strip>;
|
|
948
1167
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
949
|
-
getSecurityStatus: DecoratedProcedure<MergedInitialContext<
|
|
950
|
-
headers: Headers;
|
|
951
|
-
} & Record<never, never>, {
|
|
952
|
-
headers: Headers;
|
|
953
|
-
} & Record<never, never>, {
|
|
954
|
-
headers: Headers;
|
|
955
|
-
}>, MergedCurrentContext< {
|
|
956
|
-
headers: Headers;
|
|
957
|
-
}, {
|
|
1168
|
+
getSecurityStatus: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, {
|
|
958
1169
|
trainerId: string;
|
|
959
1170
|
appId: ActiveDeveloperAppId;
|
|
960
1171
|
clientId: string | undefined;
|
|
961
1172
|
hasActiveSubscription: boolean;
|
|
962
1173
|
clientEntitlements: ClientEntitlements;
|
|
963
1174
|
authMode: "dev-app";
|
|
964
|
-
|
|
1175
|
+
developerApp: CallingDeveloperApp;
|
|
965
1176
|
impersonatedBy: string | null;
|
|
966
1177
|
}>, ZodOptional<ZodObject< {}, $strip>>, ZodObject< {
|
|
967
1178
|
data: ZodObject< {
|
|
@@ -970,22 +1181,14 @@ declare const publicRouter: {
|
|
|
970
1181
|
hasBackupCodes: ZodBoolean;
|
|
971
1182
|
}, $strip>;
|
|
972
1183
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
973
|
-
changePassword: DecoratedProcedure<MergedInitialContext<
|
|
974
|
-
headers: Headers;
|
|
975
|
-
} & Record<never, never>, {
|
|
976
|
-
headers: Headers;
|
|
977
|
-
} & Record<never, never>, {
|
|
978
|
-
headers: Headers;
|
|
979
|
-
}>, MergedCurrentContext< {
|
|
980
|
-
headers: Headers;
|
|
981
|
-
}, {
|
|
1184
|
+
changePassword: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, {
|
|
982
1185
|
trainerId: string;
|
|
983
1186
|
appId: ActiveDeveloperAppId;
|
|
984
1187
|
clientId: string | undefined;
|
|
985
1188
|
hasActiveSubscription: boolean;
|
|
986
1189
|
clientEntitlements: ClientEntitlements;
|
|
987
1190
|
authMode: "dev-app";
|
|
988
|
-
|
|
1191
|
+
developerApp: CallingDeveloperApp;
|
|
989
1192
|
impersonatedBy: string | null;
|
|
990
1193
|
}>, ZodObject< {
|
|
991
1194
|
currentPassword: ZodString;
|
|
@@ -997,22 +1200,14 @@ declare const publicRouter: {
|
|
|
997
1200
|
accessToken: ZodString;
|
|
998
1201
|
}, $strip>;
|
|
999
1202
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
1000
|
-
changeEmail: DecoratedProcedure<MergedInitialContext<
|
|
1001
|
-
headers: Headers;
|
|
1002
|
-
} & Record<never, never>, {
|
|
1003
|
-
headers: Headers;
|
|
1004
|
-
} & Record<never, never>, {
|
|
1005
|
-
headers: Headers;
|
|
1006
|
-
}>, MergedCurrentContext< {
|
|
1007
|
-
headers: Headers;
|
|
1008
|
-
}, {
|
|
1203
|
+
changeEmail: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, {
|
|
1009
1204
|
trainerId: string;
|
|
1010
1205
|
appId: ActiveDeveloperAppId;
|
|
1011
1206
|
clientId: string | undefined;
|
|
1012
1207
|
hasActiveSubscription: boolean;
|
|
1013
1208
|
clientEntitlements: ClientEntitlements;
|
|
1014
1209
|
authMode: "dev-app";
|
|
1015
|
-
|
|
1210
|
+
developerApp: CallingDeveloperApp;
|
|
1016
1211
|
impersonatedBy: string | null;
|
|
1017
1212
|
}>, ZodObject< {
|
|
1018
1213
|
newEmail: ZodString;
|
|
@@ -1021,51 +1216,51 @@ declare const publicRouter: {
|
|
|
1021
1216
|
ok: ZodLiteral<true>;
|
|
1022
1217
|
}, $strip>;
|
|
1023
1218
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
1024
|
-
|
|
1025
|
-
headers: Headers;
|
|
1026
|
-
} & Record<never, never>, {
|
|
1027
|
-
headers: Headers;
|
|
1028
|
-
} & Record<never, never>, {
|
|
1029
|
-
headers: Headers;
|
|
1030
|
-
}>, MergedCurrentContext< {
|
|
1031
|
-
headers: Headers;
|
|
1032
|
-
}, {
|
|
1219
|
+
confirmEmailChange: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, {
|
|
1033
1220
|
trainerId: string;
|
|
1034
1221
|
appId: ActiveDeveloperAppId;
|
|
1035
1222
|
clientId: string | undefined;
|
|
1036
1223
|
hasActiveSubscription: boolean;
|
|
1037
1224
|
clientEntitlements: ClientEntitlements;
|
|
1038
1225
|
authMode: "dev-app";
|
|
1039
|
-
|
|
1226
|
+
developerApp: CallingDeveloperApp;
|
|
1040
1227
|
impersonatedBy: string | null;
|
|
1041
1228
|
}>, ZodObject< {
|
|
1042
|
-
|
|
1043
|
-
password: ZodString;
|
|
1229
|
+
token: ZodString;
|
|
1044
1230
|
}, $strip>, ZodObject< {
|
|
1045
1231
|
data: ZodObject< {
|
|
1046
|
-
|
|
1232
|
+
ok: ZodLiteral<true>;
|
|
1047
1233
|
}, $strip>;
|
|
1048
1234
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
1049
|
-
|
|
1050
|
-
headers: Headers;
|
|
1051
|
-
} & Record<never, never>, {
|
|
1052
|
-
headers: Headers;
|
|
1053
|
-
} & Record<never, never>, {
|
|
1054
|
-
headers: Headers;
|
|
1055
|
-
}>, MergedCurrentContext< {
|
|
1056
|
-
headers: Headers;
|
|
1057
|
-
}, {
|
|
1235
|
+
closeAccount: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, {
|
|
1058
1236
|
trainerId: string;
|
|
1059
1237
|
appId: ActiveDeveloperAppId;
|
|
1060
1238
|
clientId: string | undefined;
|
|
1061
1239
|
hasActiveSubscription: boolean;
|
|
1062
1240
|
clientEntitlements: ClientEntitlements;
|
|
1063
1241
|
authMode: "dev-app";
|
|
1064
|
-
|
|
1242
|
+
developerApp: CallingDeveloperApp;
|
|
1065
1243
|
impersonatedBy: string | null;
|
|
1066
|
-
}>,
|
|
1067
|
-
|
|
1068
|
-
|
|
1244
|
+
}>, ZodObject< {
|
|
1245
|
+
confirmEmail: ZodString;
|
|
1246
|
+
password: ZodString;
|
|
1247
|
+
}, $strip>, ZodObject< {
|
|
1248
|
+
data: ZodObject< {
|
|
1249
|
+
success: ZodLiteral<true>;
|
|
1250
|
+
}, $strip>;
|
|
1251
|
+
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
1252
|
+
listSessions: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, {
|
|
1253
|
+
trainerId: string;
|
|
1254
|
+
appId: ActiveDeveloperAppId;
|
|
1255
|
+
clientId: string | undefined;
|
|
1256
|
+
hasActiveSubscription: boolean;
|
|
1257
|
+
clientEntitlements: ClientEntitlements;
|
|
1258
|
+
authMode: "dev-app";
|
|
1259
|
+
developerApp: CallingDeveloperApp;
|
|
1260
|
+
impersonatedBy: string | null;
|
|
1261
|
+
}>, ZodOptional<ZodObject< {}, $strip>>, ZodObject< {
|
|
1262
|
+
data: ZodArray<ZodObject< {
|
|
1263
|
+
revokeId: ZodString;
|
|
1069
1264
|
createdAt: ZodDate;
|
|
1070
1265
|
expiresAt: ZodDate;
|
|
1071
1266
|
ipAddress: ZodNullable<ZodString>;
|
|
@@ -1073,22 +1268,14 @@ declare const publicRouter: {
|
|
|
1073
1268
|
isCurrent: ZodBoolean;
|
|
1074
1269
|
}, $strip>>;
|
|
1075
1270
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
1076
|
-
revokeSession: DecoratedProcedure<MergedInitialContext<
|
|
1077
|
-
headers: Headers;
|
|
1078
|
-
} & Record<never, never>, {
|
|
1079
|
-
headers: Headers;
|
|
1080
|
-
} & Record<never, never>, {
|
|
1081
|
-
headers: Headers;
|
|
1082
|
-
}>, MergedCurrentContext< {
|
|
1083
|
-
headers: Headers;
|
|
1084
|
-
}, {
|
|
1271
|
+
revokeSession: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, {
|
|
1085
1272
|
trainerId: string;
|
|
1086
1273
|
appId: ActiveDeveloperAppId;
|
|
1087
1274
|
clientId: string | undefined;
|
|
1088
1275
|
hasActiveSubscription: boolean;
|
|
1089
1276
|
clientEntitlements: ClientEntitlements;
|
|
1090
1277
|
authMode: "dev-app";
|
|
1091
|
-
|
|
1278
|
+
developerApp: CallingDeveloperApp;
|
|
1092
1279
|
impersonatedBy: string | null;
|
|
1093
1280
|
}>, ZodObject< {
|
|
1094
1281
|
revokeId: ZodString;
|
|
@@ -1097,22 +1284,14 @@ declare const publicRouter: {
|
|
|
1097
1284
|
success: ZodLiteral<true>;
|
|
1098
1285
|
}, $strip>;
|
|
1099
1286
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
1100
|
-
revokeOtherSessions: DecoratedProcedure<MergedInitialContext<
|
|
1101
|
-
headers: Headers;
|
|
1102
|
-
} & Record<never, never>, {
|
|
1103
|
-
headers: Headers;
|
|
1104
|
-
} & Record<never, never>, {
|
|
1105
|
-
headers: Headers;
|
|
1106
|
-
}>, MergedCurrentContext< {
|
|
1107
|
-
headers: Headers;
|
|
1108
|
-
}, {
|
|
1287
|
+
revokeOtherSessions: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, {
|
|
1109
1288
|
trainerId: string;
|
|
1110
1289
|
appId: ActiveDeveloperAppId;
|
|
1111
1290
|
clientId: string | undefined;
|
|
1112
1291
|
hasActiveSubscription: boolean;
|
|
1113
1292
|
clientEntitlements: ClientEntitlements;
|
|
1114
1293
|
authMode: "dev-app";
|
|
1115
|
-
|
|
1294
|
+
developerApp: CallingDeveloperApp;
|
|
1116
1295
|
impersonatedBy: string | null;
|
|
1117
1296
|
}>, ZodOptional<ZodObject< {}, $strip>>, ZodObject< {
|
|
1118
1297
|
data: ZodObject< {
|
|
@@ -1121,15 +1300,7 @@ declare const publicRouter: {
|
|
|
1121
1300
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
1122
1301
|
};
|
|
1123
1302
|
workout: {
|
|
1124
|
-
list: DecoratedProcedure<MergedInitialContext< {
|
|
1125
|
-
headers: Headers;
|
|
1126
|
-
} & Record<never, never>, {
|
|
1127
|
-
headers: Headers;
|
|
1128
|
-
} & Record<never, never>, {
|
|
1129
|
-
headers: Headers;
|
|
1130
|
-
}>, MergedCurrentContext< {
|
|
1131
|
-
headers: Headers;
|
|
1132
|
-
}, ApiKeyContext>, ZodObject< {
|
|
1303
|
+
list: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
1133
1304
|
cursor: ZodOptional<ZodString>;
|
|
1134
1305
|
limit: ZodDefault<ZodCoercedNumber<unknown>>;
|
|
1135
1306
|
categoryId: ZodOptional<ZodString>;
|
|
@@ -1159,8 +1330,8 @@ declare const publicRouter: {
|
|
|
1159
1330
|
}>;
|
|
1160
1331
|
canAccess: ZodBoolean;
|
|
1161
1332
|
status: ZodEnum< {
|
|
1162
|
-
published: "published";
|
|
1163
1333
|
draft: "draft";
|
|
1334
|
+
published: "published";
|
|
1164
1335
|
archived: "archived";
|
|
1165
1336
|
}>;
|
|
1166
1337
|
durationMinutes: ZodNullable<ZodNumber>;
|
|
@@ -1191,15 +1362,7 @@ declare const publicRouter: {
|
|
|
1191
1362
|
limit: ZodNumber;
|
|
1192
1363
|
}, $strip>;
|
|
1193
1364
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
1194
|
-
get: DecoratedProcedure<MergedInitialContext< {
|
|
1195
|
-
headers: Headers;
|
|
1196
|
-
} & Record<never, never>, {
|
|
1197
|
-
headers: Headers;
|
|
1198
|
-
} & Record<never, never>, {
|
|
1199
|
-
headers: Headers;
|
|
1200
|
-
}>, MergedCurrentContext< {
|
|
1201
|
-
headers: Headers;
|
|
1202
|
-
}, ApiKeyContext>, ZodObject< {
|
|
1365
|
+
get: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
1203
1366
|
id: ZodString;
|
|
1204
1367
|
}, $strip>, ZodObject< {
|
|
1205
1368
|
data: ZodObject< {
|
|
@@ -1213,8 +1376,8 @@ declare const publicRouter: {
|
|
|
1213
1376
|
}>;
|
|
1214
1377
|
canAccess: ZodBoolean;
|
|
1215
1378
|
status: ZodEnum< {
|
|
1216
|
-
published: "published";
|
|
1217
1379
|
draft: "draft";
|
|
1380
|
+
published: "published";
|
|
1218
1381
|
archived: "archived";
|
|
1219
1382
|
}>;
|
|
1220
1383
|
durationMinutes: ZodNullable<ZodNumber>;
|
|
@@ -1280,15 +1443,7 @@ declare const publicRouter: {
|
|
|
1280
1443
|
}, $strip>>;
|
|
1281
1444
|
}, $strip>;
|
|
1282
1445
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
1283
|
-
getPlayback: DecoratedProcedure<MergedInitialContext< {
|
|
1284
|
-
headers: Headers;
|
|
1285
|
-
} & Record<never, never>, {
|
|
1286
|
-
headers: Headers;
|
|
1287
|
-
} & Record<never, never>, {
|
|
1288
|
-
headers: Headers;
|
|
1289
|
-
}>, MergedCurrentContext< {
|
|
1290
|
-
headers: Headers;
|
|
1291
|
-
}, ApiKeyContext>, ZodObject< {
|
|
1446
|
+
getPlayback: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
1292
1447
|
id: ZodString;
|
|
1293
1448
|
}, $strip>, ZodObject< {
|
|
1294
1449
|
data: ZodObject< {
|
|
@@ -1301,15 +1456,7 @@ declare const publicRouter: {
|
|
|
1301
1456
|
aspectRatio: ZodNullable<ZodString>;
|
|
1302
1457
|
}, $strip>;
|
|
1303
1458
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
1304
|
-
browse: DecoratedProcedure<MergedInitialContext< {
|
|
1305
|
-
headers: Headers;
|
|
1306
|
-
} & Record<never, never>, {
|
|
1307
|
-
headers: Headers;
|
|
1308
|
-
} & Record<never, never>, {
|
|
1309
|
-
headers: Headers;
|
|
1310
|
-
}>, MergedCurrentContext< {
|
|
1311
|
-
headers: Headers;
|
|
1312
|
-
}, ApiKeyContext>, ZodObject< {
|
|
1459
|
+
browse: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
1313
1460
|
previewLimit: ZodDefault<ZodCoercedNumber<unknown>>;
|
|
1314
1461
|
}, $strip>, ZodObject< {
|
|
1315
1462
|
data: ZodObject< {
|
|
@@ -1324,8 +1471,8 @@ declare const publicRouter: {
|
|
|
1324
1471
|
}>;
|
|
1325
1472
|
canAccess: ZodBoolean;
|
|
1326
1473
|
status: ZodEnum< {
|
|
1327
|
-
published: "published";
|
|
1328
1474
|
draft: "draft";
|
|
1475
|
+
published: "published";
|
|
1329
1476
|
archived: "archived";
|
|
1330
1477
|
}>;
|
|
1331
1478
|
durationMinutes: ZodNullable<ZodNumber>;
|
|
@@ -1370,8 +1517,8 @@ declare const publicRouter: {
|
|
|
1370
1517
|
}>;
|
|
1371
1518
|
canAccess: ZodBoolean;
|
|
1372
1519
|
status: ZodEnum< {
|
|
1373
|
-
published: "published";
|
|
1374
1520
|
draft: "draft";
|
|
1521
|
+
published: "published";
|
|
1375
1522
|
archived: "archived";
|
|
1376
1523
|
}>;
|
|
1377
1524
|
durationMinutes: ZodNullable<ZodNumber>;
|
|
@@ -1404,15 +1551,7 @@ declare const publicRouter: {
|
|
|
1404
1551
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
1405
1552
|
};
|
|
1406
1553
|
goal: {
|
|
1407
|
-
list: DecoratedProcedure<MergedInitialContext< {
|
|
1408
|
-
headers: Headers;
|
|
1409
|
-
} & Record<never, never>, {
|
|
1410
|
-
headers: Headers;
|
|
1411
|
-
} & Record<never, never>, {
|
|
1412
|
-
headers: Headers;
|
|
1413
|
-
}>, MergedCurrentContext< {
|
|
1414
|
-
headers: Headers;
|
|
1415
|
-
}, ApiKeyContext>, Schema<unknown, unknown>, ZodObject< {
|
|
1554
|
+
list: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, Schema<unknown, unknown>, ZodObject< {
|
|
1416
1555
|
data: ZodArray<ZodObject< {
|
|
1417
1556
|
id: ZodString;
|
|
1418
1557
|
name: ZodString;
|
|
@@ -1422,15 +1561,7 @@ declare const publicRouter: {
|
|
|
1422
1561
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
1423
1562
|
};
|
|
1424
1563
|
equipment: {
|
|
1425
|
-
list: DecoratedProcedure<MergedInitialContext< {
|
|
1426
|
-
headers: Headers;
|
|
1427
|
-
} & Record<never, never>, {
|
|
1428
|
-
headers: Headers;
|
|
1429
|
-
} & Record<never, never>, {
|
|
1430
|
-
headers: Headers;
|
|
1431
|
-
}>, MergedCurrentContext< {
|
|
1432
|
-
headers: Headers;
|
|
1433
|
-
}, ApiKeyContext>, Schema<unknown, unknown>, ZodObject< {
|
|
1564
|
+
list: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, Schema<unknown, unknown>, ZodObject< {
|
|
1434
1565
|
data: ZodArray<ZodObject< {
|
|
1435
1566
|
name: ZodString;
|
|
1436
1567
|
workoutCount: ZodNumber;
|
|
@@ -1439,15 +1570,7 @@ declare const publicRouter: {
|
|
|
1439
1570
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
1440
1571
|
};
|
|
1441
1572
|
nutrition: {
|
|
1442
|
-
list: DecoratedProcedure<MergedInitialContext< {
|
|
1443
|
-
headers: Headers;
|
|
1444
|
-
} & Record<never, never>, {
|
|
1445
|
-
headers: Headers;
|
|
1446
|
-
} & Record<never, never>, {
|
|
1447
|
-
headers: Headers;
|
|
1448
|
-
}>, MergedCurrentContext< {
|
|
1449
|
-
headers: Headers;
|
|
1450
|
-
}, ApiKeyContext>, ZodObject< {
|
|
1573
|
+
list: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
1451
1574
|
cursor: ZodOptional<ZodString>;
|
|
1452
1575
|
limit: ZodDefault<ZodCoercedNumber<unknown>>;
|
|
1453
1576
|
favouritesOnly: ZodOptional<ZodUnion<readonly [ZodBoolean, ZodCodec<ZodString, ZodBoolean>]>>;
|
|
@@ -1463,8 +1586,8 @@ declare const publicRouter: {
|
|
|
1463
1586
|
}>;
|
|
1464
1587
|
canAccess: ZodBoolean;
|
|
1465
1588
|
status: ZodEnum< {
|
|
1466
|
-
published: "published";
|
|
1467
1589
|
draft: "draft";
|
|
1590
|
+
published: "published";
|
|
1468
1591
|
archived: "archived";
|
|
1469
1592
|
}>;
|
|
1470
1593
|
publishedAt: ZodNullable<ZodDate>;
|
|
@@ -1484,15 +1607,7 @@ declare const publicRouter: {
|
|
|
1484
1607
|
limit: ZodNumber;
|
|
1485
1608
|
}, $strip>;
|
|
1486
1609
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
1487
|
-
get: DecoratedProcedure<MergedInitialContext< {
|
|
1488
|
-
headers: Headers;
|
|
1489
|
-
} & Record<never, never>, {
|
|
1490
|
-
headers: Headers;
|
|
1491
|
-
} & Record<never, never>, {
|
|
1492
|
-
headers: Headers;
|
|
1493
|
-
}>, MergedCurrentContext< {
|
|
1494
|
-
headers: Headers;
|
|
1495
|
-
}, ApiKeyContext>, ZodObject< {
|
|
1610
|
+
get: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
1496
1611
|
id: ZodString;
|
|
1497
1612
|
}, $strip>, ZodObject< {
|
|
1498
1613
|
data: ZodObject< {
|
|
@@ -1506,8 +1621,8 @@ declare const publicRouter: {
|
|
|
1506
1621
|
}>;
|
|
1507
1622
|
canAccess: ZodBoolean;
|
|
1508
1623
|
status: ZodEnum< {
|
|
1509
|
-
published: "published";
|
|
1510
1624
|
draft: "draft";
|
|
1625
|
+
published: "published";
|
|
1511
1626
|
archived: "archived";
|
|
1512
1627
|
}>;
|
|
1513
1628
|
publishedAt: ZodNullable<ZodDate>;
|
|
@@ -1565,8 +1680,8 @@ declare const publicRouter: {
|
|
|
1565
1680
|
}>;
|
|
1566
1681
|
canAccess: ZodBoolean;
|
|
1567
1682
|
status: ZodEnum< {
|
|
1568
|
-
published: "published";
|
|
1569
1683
|
draft: "draft";
|
|
1684
|
+
published: "published";
|
|
1570
1685
|
archived: "archived";
|
|
1571
1686
|
}>;
|
|
1572
1687
|
publishedAt: ZodNullable<ZodDate>;
|
|
@@ -1580,15 +1695,7 @@ declare const publicRouter: {
|
|
|
1580
1695
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
1581
1696
|
};
|
|
1582
1697
|
nutritionLog: {
|
|
1583
|
-
getDay: DecoratedProcedure<MergedInitialContext< {
|
|
1584
|
-
headers: Headers;
|
|
1585
|
-
} & Record<never, never>, {
|
|
1586
|
-
headers: Headers;
|
|
1587
|
-
} & Record<never, never>, {
|
|
1588
|
-
headers: Headers;
|
|
1589
|
-
}>, MergedCurrentContext< {
|
|
1590
|
-
headers: Headers;
|
|
1591
|
-
}, ApiKeyContext>, ZodObject< {
|
|
1698
|
+
getDay: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
1592
1699
|
date: ZodString;
|
|
1593
1700
|
}, $strip>, ZodObject< {
|
|
1594
1701
|
data: ZodObject< {
|
|
@@ -1624,15 +1731,7 @@ declare const publicRouter: {
|
|
|
1624
1731
|
}, $strip>>;
|
|
1625
1732
|
}, $strip>;
|
|
1626
1733
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
1627
|
-
logFood: DecoratedProcedure<MergedInitialContext< {
|
|
1628
|
-
headers: Headers;
|
|
1629
|
-
} & Record<never, never>, {
|
|
1630
|
-
headers: Headers;
|
|
1631
|
-
} & Record<never, never>, {
|
|
1632
|
-
headers: Headers;
|
|
1633
|
-
}>, MergedCurrentContext< {
|
|
1634
|
-
headers: Headers;
|
|
1635
|
-
}, ApiKeyContext>, ZodObject< {
|
|
1734
|
+
logFood: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
1636
1735
|
loggedFor: ZodString;
|
|
1637
1736
|
name: ZodString;
|
|
1638
1737
|
mealCategory: ZodOptional<ZodEnum< {
|
|
@@ -1646,6 +1745,7 @@ declare const publicRouter: {
|
|
|
1646
1745
|
protein: ZodOptional<ZodNullable<ZodNumber>>;
|
|
1647
1746
|
carbs: ZodOptional<ZodNullable<ZodNumber>>;
|
|
1648
1747
|
fat: ZodOptional<ZodNullable<ZodNumber>>;
|
|
1748
|
+
clientRequestId: ZodOptional<ZodString>;
|
|
1649
1749
|
}, $strip>, ZodObject< {
|
|
1650
1750
|
data: ZodObject< {
|
|
1651
1751
|
id: ZodString;
|
|
@@ -1665,15 +1765,7 @@ declare const publicRouter: {
|
|
|
1665
1765
|
createdAt: ZodDate;
|
|
1666
1766
|
}, $strip>;
|
|
1667
1767
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
1668
|
-
updateFood: DecoratedProcedure<MergedInitialContext< {
|
|
1669
|
-
headers: Headers;
|
|
1670
|
-
} & Record<never, never>, {
|
|
1671
|
-
headers: Headers;
|
|
1672
|
-
} & Record<never, never>, {
|
|
1673
|
-
headers: Headers;
|
|
1674
|
-
}>, MergedCurrentContext< {
|
|
1675
|
-
headers: Headers;
|
|
1676
|
-
}, ApiKeyContext>, ZodObject< {
|
|
1768
|
+
updateFood: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
1677
1769
|
name: ZodOptional<ZodString>;
|
|
1678
1770
|
mealCategory: ZodOptional<ZodNullable<ZodEnum< {
|
|
1679
1771
|
breakfast: "breakfast";
|
|
@@ -1705,15 +1797,7 @@ declare const publicRouter: {
|
|
|
1705
1797
|
createdAt: ZodDate;
|
|
1706
1798
|
}, $strip>;
|
|
1707
1799
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
1708
|
-
deleteFood: DecoratedProcedure<MergedInitialContext< {
|
|
1709
|
-
headers: Headers;
|
|
1710
|
-
} & Record<never, never>, {
|
|
1711
|
-
headers: Headers;
|
|
1712
|
-
} & Record<never, never>, {
|
|
1713
|
-
headers: Headers;
|
|
1714
|
-
}>, MergedCurrentContext< {
|
|
1715
|
-
headers: Headers;
|
|
1716
|
-
}, ApiKeyContext>, ZodObject< {
|
|
1800
|
+
deleteFood: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
1717
1801
|
id: ZodString;
|
|
1718
1802
|
}, $strip>, ZodObject< {
|
|
1719
1803
|
data: ZodObject< {
|
|
@@ -1721,15 +1805,7 @@ declare const publicRouter: {
|
|
|
1721
1805
|
deleted: ZodLiteral<true>;
|
|
1722
1806
|
}, $strip>;
|
|
1723
1807
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
1724
|
-
setTargets: DecoratedProcedure<MergedInitialContext< {
|
|
1725
|
-
headers: Headers;
|
|
1726
|
-
} & Record<never, never>, {
|
|
1727
|
-
headers: Headers;
|
|
1728
|
-
} & Record<never, never>, {
|
|
1729
|
-
headers: Headers;
|
|
1730
|
-
}>, MergedCurrentContext< {
|
|
1731
|
-
headers: Headers;
|
|
1732
|
-
}, ApiKeyContext>, ZodObject< {
|
|
1808
|
+
setTargets: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
1733
1809
|
calories: ZodOptional<ZodNullable<ZodNumber>>;
|
|
1734
1810
|
protein: ZodOptional<ZodNullable<ZodNumber>>;
|
|
1735
1811
|
carbs: ZodOptional<ZodNullable<ZodNumber>>;
|
|
@@ -1744,15 +1820,7 @@ declare const publicRouter: {
|
|
|
1744
1820
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
1745
1821
|
};
|
|
1746
1822
|
profile: {
|
|
1747
|
-
get: DecoratedProcedure<MergedInitialContext< {
|
|
1748
|
-
headers: Headers;
|
|
1749
|
-
} & Record<never, never>, {
|
|
1750
|
-
headers: Headers;
|
|
1751
|
-
} & Record<never, never>, {
|
|
1752
|
-
headers: Headers;
|
|
1753
|
-
}>, MergedCurrentContext< {
|
|
1754
|
-
headers: Headers;
|
|
1755
|
-
}, ApiKeyContext>, Schema<unknown, unknown>, ZodObject< {
|
|
1823
|
+
get: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, Schema<unknown, unknown>, ZodObject< {
|
|
1756
1824
|
data: ZodObject< {
|
|
1757
1825
|
id: ZodString;
|
|
1758
1826
|
name: ZodString;
|
|
@@ -1781,15 +1849,7 @@ declare const publicRouter: {
|
|
|
1781
1849
|
}, $strip>>;
|
|
1782
1850
|
}, $strip>;
|
|
1783
1851
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
1784
|
-
update: DecoratedProcedure<MergedInitialContext< {
|
|
1785
|
-
headers: Headers;
|
|
1786
|
-
} & Record<never, never>, {
|
|
1787
|
-
headers: Headers;
|
|
1788
|
-
} & Record<never, never>, {
|
|
1789
|
-
headers: Headers;
|
|
1790
|
-
}>, MergedCurrentContext< {
|
|
1791
|
-
headers: Headers;
|
|
1792
|
-
}, ApiKeyContext>, ZodObject< {
|
|
1852
|
+
update: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
1793
1853
|
name: ZodOptional<ZodString>;
|
|
1794
1854
|
avatarUrl: ZodOptional<ZodNullable<ZodString>>;
|
|
1795
1855
|
timezone: ZodOptional<ZodNullable<ZodString>>;
|
|
@@ -1837,15 +1897,7 @@ declare const publicRouter: {
|
|
|
1837
1897
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
1838
1898
|
};
|
|
1839
1899
|
preferences: {
|
|
1840
|
-
getNotifications: DecoratedProcedure<MergedInitialContext< {
|
|
1841
|
-
headers: Headers;
|
|
1842
|
-
} & Record<never, never>, {
|
|
1843
|
-
headers: Headers;
|
|
1844
|
-
} & Record<never, never>, {
|
|
1845
|
-
headers: Headers;
|
|
1846
|
-
}>, MergedCurrentContext< {
|
|
1847
|
-
headers: Headers;
|
|
1848
|
-
}, ApiKeyContext>, Schema<unknown, unknown>, ZodObject< {
|
|
1900
|
+
getNotifications: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, Schema<unknown, unknown>, ZodObject< {
|
|
1849
1901
|
data: ZodObject< {
|
|
1850
1902
|
workoutReminders: ZodBoolean;
|
|
1851
1903
|
streakAlerts: ZodBoolean;
|
|
@@ -1854,15 +1906,7 @@ declare const publicRouter: {
|
|
|
1854
1906
|
emailProductNews: ZodBoolean;
|
|
1855
1907
|
}, $strip>;
|
|
1856
1908
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
1857
|
-
updateNotifications: DecoratedProcedure<MergedInitialContext< {
|
|
1858
|
-
headers: Headers;
|
|
1859
|
-
} & Record<never, never>, {
|
|
1860
|
-
headers: Headers;
|
|
1861
|
-
} & Record<never, never>, {
|
|
1862
|
-
headers: Headers;
|
|
1863
|
-
}>, MergedCurrentContext< {
|
|
1864
|
-
headers: Headers;
|
|
1865
|
-
}, ApiKeyContext>, ZodObject< {
|
|
1909
|
+
updateNotifications: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
1866
1910
|
workoutReminders: ZodOptional<ZodBoolean>;
|
|
1867
1911
|
streakAlerts: ZodOptional<ZodBoolean>;
|
|
1868
1912
|
newPrograms: ZodOptional<ZodBoolean>;
|
|
@@ -1879,15 +1923,7 @@ declare const publicRouter: {
|
|
|
1879
1923
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
1880
1924
|
};
|
|
1881
1925
|
article: {
|
|
1882
|
-
list: DecoratedProcedure<MergedInitialContext< {
|
|
1883
|
-
headers: Headers;
|
|
1884
|
-
} & Record<never, never>, {
|
|
1885
|
-
headers: Headers;
|
|
1886
|
-
} & Record<never, never>, {
|
|
1887
|
-
headers: Headers;
|
|
1888
|
-
}>, MergedCurrentContext< {
|
|
1889
|
-
headers: Headers;
|
|
1890
|
-
}, ApiKeyContext>, ZodObject< {
|
|
1926
|
+
list: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
1891
1927
|
cursor: ZodOptional<ZodString>;
|
|
1892
1928
|
limit: ZodDefault<ZodCoercedNumber<unknown>>;
|
|
1893
1929
|
}, $strip>, ZodObject< {
|
|
@@ -1903,8 +1939,8 @@ declare const publicRouter: {
|
|
|
1903
1939
|
}>;
|
|
1904
1940
|
canAccess: ZodBoolean;
|
|
1905
1941
|
status: ZodEnum< {
|
|
1906
|
-
published: "published";
|
|
1907
1942
|
draft: "draft";
|
|
1943
|
+
published: "published";
|
|
1908
1944
|
archived: "archived";
|
|
1909
1945
|
}>;
|
|
1910
1946
|
publishedAt: ZodNullable<ZodDate>;
|
|
@@ -1915,15 +1951,7 @@ declare const publicRouter: {
|
|
|
1915
1951
|
limit: ZodNumber;
|
|
1916
1952
|
}, $strip>;
|
|
1917
1953
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
1918
|
-
get: DecoratedProcedure<MergedInitialContext< {
|
|
1919
|
-
headers: Headers;
|
|
1920
|
-
} & Record<never, never>, {
|
|
1921
|
-
headers: Headers;
|
|
1922
|
-
} & Record<never, never>, {
|
|
1923
|
-
headers: Headers;
|
|
1924
|
-
}>, MergedCurrentContext< {
|
|
1925
|
-
headers: Headers;
|
|
1926
|
-
}, ApiKeyContext>, ZodObject< {
|
|
1954
|
+
get: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
1927
1955
|
slug: ZodString;
|
|
1928
1956
|
}, $strip>, ZodObject< {
|
|
1929
1957
|
data: ZodObject< {
|
|
@@ -1938,8 +1966,8 @@ declare const publicRouter: {
|
|
|
1938
1966
|
}>;
|
|
1939
1967
|
canAccess: ZodBoolean;
|
|
1940
1968
|
status: ZodEnum< {
|
|
1941
|
-
published: "published";
|
|
1942
1969
|
draft: "draft";
|
|
1970
|
+
published: "published";
|
|
1943
1971
|
archived: "archived";
|
|
1944
1972
|
}>;
|
|
1945
1973
|
publishedAt: ZodNullable<ZodDate>;
|
|
@@ -1948,15 +1976,7 @@ declare const publicRouter: {
|
|
|
1948
1976
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
1949
1977
|
};
|
|
1950
1978
|
recipe: {
|
|
1951
|
-
list: DecoratedProcedure<MergedInitialContext< {
|
|
1952
|
-
headers: Headers;
|
|
1953
|
-
} & Record<never, never>, {
|
|
1954
|
-
headers: Headers;
|
|
1955
|
-
} & Record<never, never>, {
|
|
1956
|
-
headers: Headers;
|
|
1957
|
-
}>, MergedCurrentContext< {
|
|
1958
|
-
headers: Headers;
|
|
1959
|
-
}, ApiKeyContext>, ZodObject< {
|
|
1979
|
+
list: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
1960
1980
|
cursor: ZodOptional<ZodString>;
|
|
1961
1981
|
limit: ZodDefault<ZodCoercedNumber<unknown>>;
|
|
1962
1982
|
category: ZodOptional<ZodEnum< {
|
|
@@ -1990,8 +2010,8 @@ declare const publicRouter: {
|
|
|
1990
2010
|
}>;
|
|
1991
2011
|
canAccess: ZodBoolean;
|
|
1992
2012
|
status: ZodEnum< {
|
|
1993
|
-
published: "published";
|
|
1994
2013
|
draft: "draft";
|
|
2014
|
+
published: "published";
|
|
1995
2015
|
archived: "archived";
|
|
1996
2016
|
}>;
|
|
1997
2017
|
publishedAt: ZodNullable<ZodDate>;
|
|
@@ -2004,15 +2024,7 @@ declare const publicRouter: {
|
|
|
2004
2024
|
limit: ZodNumber;
|
|
2005
2025
|
}, $strip>;
|
|
2006
2026
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
2007
|
-
get: DecoratedProcedure<MergedInitialContext< {
|
|
2008
|
-
headers: Headers;
|
|
2009
|
-
} & Record<never, never>, {
|
|
2010
|
-
headers: Headers;
|
|
2011
|
-
} & Record<never, never>, {
|
|
2012
|
-
headers: Headers;
|
|
2013
|
-
}>, MergedCurrentContext< {
|
|
2014
|
-
headers: Headers;
|
|
2015
|
-
}, ApiKeyContext>, ZodObject< {
|
|
2027
|
+
get: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
2016
2028
|
id: ZodString;
|
|
2017
2029
|
}, $strip>, ZodObject< {
|
|
2018
2030
|
data: ZodObject< {
|
|
@@ -2037,8 +2049,8 @@ declare const publicRouter: {
|
|
|
2037
2049
|
}>;
|
|
2038
2050
|
canAccess: ZodBoolean;
|
|
2039
2051
|
status: ZodEnum< {
|
|
2040
|
-
published: "published";
|
|
2041
2052
|
draft: "draft";
|
|
2053
|
+
published: "published";
|
|
2042
2054
|
archived: "archived";
|
|
2043
2055
|
}>;
|
|
2044
2056
|
publishedAt: ZodNullable<ZodDate>;
|
|
@@ -2067,15 +2079,7 @@ declare const publicRouter: {
|
|
|
2067
2079
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
2068
2080
|
};
|
|
2069
2081
|
exercise: {
|
|
2070
|
-
list: DecoratedProcedure<MergedInitialContext< {
|
|
2071
|
-
headers: Headers;
|
|
2072
|
-
} & Record<never, never>, {
|
|
2073
|
-
headers: Headers;
|
|
2074
|
-
} & Record<never, never>, {
|
|
2075
|
-
headers: Headers;
|
|
2076
|
-
}>, MergedCurrentContext< {
|
|
2077
|
-
headers: Headers;
|
|
2078
|
-
}, ApiKeyContext>, ZodObject< {
|
|
2082
|
+
list: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
2079
2083
|
cursor: ZodOptional<ZodString>;
|
|
2080
2084
|
limit: ZodDefault<ZodCoercedNumber<unknown>>;
|
|
2081
2085
|
q: ZodOptional<ZodString>;
|
|
@@ -2122,6 +2126,22 @@ declare const publicRouter: {
|
|
|
2122
2126
|
}>;
|
|
2123
2127
|
muscleGroups: ZodArray<ZodString>;
|
|
2124
2128
|
equipment: ZodArray<ZodString>;
|
|
2129
|
+
movementPatterns: ZodArray<ZodEnum< {
|
|
2130
|
+
running: "running";
|
|
2131
|
+
squat: "squat";
|
|
2132
|
+
hinge: "hinge";
|
|
2133
|
+
lunge: "lunge";
|
|
2134
|
+
horizontal_push: "horizontal_push";
|
|
2135
|
+
vertical_push: "vertical_push";
|
|
2136
|
+
horizontal_pull: "horizontal_pull";
|
|
2137
|
+
vertical_pull: "vertical_pull";
|
|
2138
|
+
overhead: "overhead";
|
|
2139
|
+
carry: "carry";
|
|
2140
|
+
rotation: "rotation";
|
|
2141
|
+
anti_rotation: "anti_rotation";
|
|
2142
|
+
spinal_flexion: "spinal_flexion";
|
|
2143
|
+
jump_landing: "jump_landing";
|
|
2144
|
+
}>>;
|
|
2125
2145
|
headerImageId: ZodNullable<ZodString>;
|
|
2126
2146
|
headerImageUrl: ZodNullable<ZodString>;
|
|
2127
2147
|
videoAssetId: ZodNullable<ZodString>;
|
|
@@ -2133,15 +2153,7 @@ declare const publicRouter: {
|
|
|
2133
2153
|
limit: ZodNumber;
|
|
2134
2154
|
}, $strip>;
|
|
2135
2155
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
2136
|
-
get: DecoratedProcedure<MergedInitialContext< {
|
|
2137
|
-
headers: Headers;
|
|
2138
|
-
} & Record<never, never>, {
|
|
2139
|
-
headers: Headers;
|
|
2140
|
-
} & Record<never, never>, {
|
|
2141
|
-
headers: Headers;
|
|
2142
|
-
}>, MergedCurrentContext< {
|
|
2143
|
-
headers: Headers;
|
|
2144
|
-
}, ApiKeyContext>, ZodObject< {
|
|
2156
|
+
get: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
2145
2157
|
id: ZodString;
|
|
2146
2158
|
}, $strip>, ZodObject< {
|
|
2147
2159
|
data: ZodObject< {
|
|
@@ -2168,6 +2180,22 @@ declare const publicRouter: {
|
|
|
2168
2180
|
}>;
|
|
2169
2181
|
muscleGroups: ZodArray<ZodString>;
|
|
2170
2182
|
equipment: ZodArray<ZodString>;
|
|
2183
|
+
movementPatterns: ZodArray<ZodEnum< {
|
|
2184
|
+
running: "running";
|
|
2185
|
+
squat: "squat";
|
|
2186
|
+
hinge: "hinge";
|
|
2187
|
+
lunge: "lunge";
|
|
2188
|
+
horizontal_push: "horizontal_push";
|
|
2189
|
+
vertical_push: "vertical_push";
|
|
2190
|
+
horizontal_pull: "horizontal_pull";
|
|
2191
|
+
vertical_pull: "vertical_pull";
|
|
2192
|
+
overhead: "overhead";
|
|
2193
|
+
carry: "carry";
|
|
2194
|
+
rotation: "rotation";
|
|
2195
|
+
anti_rotation: "anti_rotation";
|
|
2196
|
+
spinal_flexion: "spinal_flexion";
|
|
2197
|
+
jump_landing: "jump_landing";
|
|
2198
|
+
}>>;
|
|
2171
2199
|
headerImageId: ZodNullable<ZodString>;
|
|
2172
2200
|
headerImageUrl: ZodNullable<ZodString>;
|
|
2173
2201
|
videoAssetId: ZodNullable<ZodString>;
|
|
@@ -2185,15 +2213,7 @@ declare const publicRouter: {
|
|
|
2185
2213
|
mistakes: ZodArray<ZodString>;
|
|
2186
2214
|
}, $strip>;
|
|
2187
2215
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
2188
|
-
getPlayback: DecoratedProcedure<MergedInitialContext< {
|
|
2189
|
-
headers: Headers;
|
|
2190
|
-
} & Record<never, never>, {
|
|
2191
|
-
headers: Headers;
|
|
2192
|
-
} & Record<never, never>, {
|
|
2193
|
-
headers: Headers;
|
|
2194
|
-
}>, MergedCurrentContext< {
|
|
2195
|
-
headers: Headers;
|
|
2196
|
-
}, ApiKeyContext>, ZodObject< {
|
|
2216
|
+
getPlayback: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
2197
2217
|
id: ZodString;
|
|
2198
2218
|
}, $strip>, ZodObject< {
|
|
2199
2219
|
data: ZodObject< {
|
|
@@ -2209,15 +2229,7 @@ declare const publicRouter: {
|
|
|
2209
2229
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
2210
2230
|
};
|
|
2211
2231
|
program: {
|
|
2212
|
-
list: DecoratedProcedure<MergedInitialContext< {
|
|
2213
|
-
headers: Headers;
|
|
2214
|
-
} & Record<never, never>, {
|
|
2215
|
-
headers: Headers;
|
|
2216
|
-
} & Record<never, never>, {
|
|
2217
|
-
headers: Headers;
|
|
2218
|
-
}>, MergedCurrentContext< {
|
|
2219
|
-
headers: Headers;
|
|
2220
|
-
}, ApiKeyContext>, ZodObject< {
|
|
2232
|
+
list: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
2221
2233
|
cursor: ZodOptional<ZodString>;
|
|
2222
2234
|
limit: ZodDefault<ZodCoercedNumber<unknown>>;
|
|
2223
2235
|
difficulty: ZodOptional<ZodEnum< {
|
|
@@ -2245,8 +2257,8 @@ declare const publicRouter: {
|
|
|
2245
2257
|
}>;
|
|
2246
2258
|
canAccess: ZodBoolean;
|
|
2247
2259
|
status: ZodEnum< {
|
|
2248
|
-
published: "published";
|
|
2249
2260
|
draft: "draft";
|
|
2261
|
+
published: "published";
|
|
2250
2262
|
archived: "archived";
|
|
2251
2263
|
}>;
|
|
2252
2264
|
difficulty: ZodNullable<ZodEnum< {
|
|
@@ -2272,15 +2284,7 @@ declare const publicRouter: {
|
|
|
2272
2284
|
limit: ZodNumber;
|
|
2273
2285
|
}, $strip>;
|
|
2274
2286
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
2275
|
-
get: DecoratedProcedure<MergedInitialContext< {
|
|
2276
|
-
headers: Headers;
|
|
2277
|
-
} & Record<never, never>, {
|
|
2278
|
-
headers: Headers;
|
|
2279
|
-
} & Record<never, never>, {
|
|
2280
|
-
headers: Headers;
|
|
2281
|
-
}>, MergedCurrentContext< {
|
|
2282
|
-
headers: Headers;
|
|
2283
|
-
}, ApiKeyContext>, ZodObject< {
|
|
2287
|
+
get: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
2284
2288
|
id: ZodString;
|
|
2285
2289
|
}, $strip>, ZodObject< {
|
|
2286
2290
|
data: ZodObject< {
|
|
@@ -2294,8 +2298,8 @@ declare const publicRouter: {
|
|
|
2294
2298
|
}>;
|
|
2295
2299
|
canAccess: ZodBoolean;
|
|
2296
2300
|
status: ZodEnum< {
|
|
2297
|
-
published: "published";
|
|
2298
2301
|
draft: "draft";
|
|
2302
|
+
published: "published";
|
|
2299
2303
|
archived: "archived";
|
|
2300
2304
|
}>;
|
|
2301
2305
|
difficulty: ZodNullable<ZodEnum< {
|
|
@@ -2388,9 +2392,21 @@ declare const publicRouter: {
|
|
|
2388
2392
|
videoTimestampSeconds: ZodNullable<ZodNumber>;
|
|
2389
2393
|
catalogueVideoAssetId: ZodOptional<ZodNullable<ZodString>>;
|
|
2390
2394
|
catalogueVideoAutoLoop: ZodOptional<ZodBoolean>;
|
|
2395
|
+
targetRpe: ZodOptional<ZodNullable<ZodNumber>>;
|
|
2396
|
+
adjustment: ZodOptional<ZodNullable<ZodDiscriminatedUnion<[ZodObject< {
|
|
2397
|
+
kind: ZodLiteral<"modified">;
|
|
2398
|
+
replacesExerciseId: ZodNull;
|
|
2399
|
+
}, $strip>, ZodObject< {
|
|
2400
|
+
kind: ZodLiteral<"swapped">;
|
|
2401
|
+
replacesExerciseId: ZodString;
|
|
2402
|
+
}, $strip>, ZodObject< {
|
|
2403
|
+
kind: ZodLiteral<"added">;
|
|
2404
|
+
replacesExerciseId: ZodNull;
|
|
2405
|
+
}, $strip>], "kind">>>;
|
|
2391
2406
|
}, $strip>>;
|
|
2392
2407
|
}, $strip>>;
|
|
2393
2408
|
}, $strip>;
|
|
2409
|
+
adjustedByName: ZodOptional<ZodNullable<ZodString>>;
|
|
2394
2410
|
}, $strip>>;
|
|
2395
2411
|
}, $strip>>;
|
|
2396
2412
|
extras: ZodArray<ZodObject< {
|
|
@@ -2454,15 +2470,7 @@ declare const publicRouter: {
|
|
|
2454
2470
|
}, $strip>>;
|
|
2455
2471
|
}, $strip>;
|
|
2456
2472
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
2457
|
-
getSession: DecoratedProcedure<MergedInitialContext< {
|
|
2458
|
-
headers: Headers;
|
|
2459
|
-
} & Record<never, never>, {
|
|
2460
|
-
headers: Headers;
|
|
2461
|
-
} & Record<never, never>, {
|
|
2462
|
-
headers: Headers;
|
|
2463
|
-
}>, MergedCurrentContext< {
|
|
2464
|
-
headers: Headers;
|
|
2465
|
-
}, ApiKeyContext>, ZodObject< {
|
|
2473
|
+
getSession: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
2466
2474
|
id: ZodString;
|
|
2467
2475
|
sessionId: ZodString;
|
|
2468
2476
|
}, $strip>, ZodObject< {
|
|
@@ -2521,10 +2529,22 @@ declare const publicRouter: {
|
|
|
2521
2529
|
videoTimestampSeconds: ZodNullable<ZodNumber>;
|
|
2522
2530
|
catalogueVideoAssetId: ZodOptional<ZodNullable<ZodString>>;
|
|
2523
2531
|
catalogueVideoAutoLoop: ZodOptional<ZodBoolean>;
|
|
2532
|
+
targetRpe: ZodOptional<ZodNullable<ZodNumber>>;
|
|
2533
|
+
adjustment: ZodOptional<ZodNullable<ZodDiscriminatedUnion<[ZodObject< {
|
|
2534
|
+
kind: ZodLiteral<"modified">;
|
|
2535
|
+
replacesExerciseId: ZodNull;
|
|
2536
|
+
}, $strip>, ZodObject< {
|
|
2537
|
+
kind: ZodLiteral<"swapped">;
|
|
2538
|
+
replacesExerciseId: ZodString;
|
|
2539
|
+
}, $strip>, ZodObject< {
|
|
2540
|
+
kind: ZodLiteral<"added">;
|
|
2541
|
+
replacesExerciseId: ZodNull;
|
|
2542
|
+
}, $strip>], "kind">>>;
|
|
2524
2543
|
}, $strip>>;
|
|
2525
2544
|
}, $strip>>;
|
|
2526
2545
|
}, $strip>;
|
|
2527
2546
|
}, $strip>;
|
|
2547
|
+
adjustedByName: ZodNullable<ZodString>;
|
|
2528
2548
|
program: ZodObject< {
|
|
2529
2549
|
id: ZodString;
|
|
2530
2550
|
title: ZodString;
|
|
@@ -2551,15 +2571,7 @@ declare const publicRouter: {
|
|
|
2551
2571
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
2552
2572
|
};
|
|
2553
2573
|
enrollment: {
|
|
2554
|
-
list: DecoratedProcedure<MergedInitialContext< {
|
|
2555
|
-
headers: Headers;
|
|
2556
|
-
} & Record<never, never>, {
|
|
2557
|
-
headers: Headers;
|
|
2558
|
-
} & Record<never, never>, {
|
|
2559
|
-
headers: Headers;
|
|
2560
|
-
}>, MergedCurrentContext< {
|
|
2561
|
-
headers: Headers;
|
|
2562
|
-
}, ApiKeyContext>, Schema<unknown, unknown>, ZodObject< {
|
|
2574
|
+
list: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, Schema<unknown, unknown>, ZodObject< {
|
|
2563
2575
|
data: ZodArray<ZodObject< {
|
|
2564
2576
|
id: ZodString;
|
|
2565
2577
|
programId: ZodString;
|
|
@@ -2586,8 +2598,8 @@ declare const publicRouter: {
|
|
|
2586
2598
|
}>;
|
|
2587
2599
|
canAccess: ZodBoolean;
|
|
2588
2600
|
status: ZodEnum< {
|
|
2589
|
-
published: "published";
|
|
2590
2601
|
draft: "draft";
|
|
2602
|
+
published: "published";
|
|
2591
2603
|
archived: "archived";
|
|
2592
2604
|
}>;
|
|
2593
2605
|
difficulty: ZodNullable<ZodEnum< {
|
|
@@ -2618,15 +2630,7 @@ declare const publicRouter: {
|
|
|
2618
2630
|
totalSessionCount: ZodNumber;
|
|
2619
2631
|
}, $strip>>;
|
|
2620
2632
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
2621
|
-
create: DecoratedProcedure<MergedInitialContext< {
|
|
2622
|
-
headers: Headers;
|
|
2623
|
-
} & Record<never, never>, {
|
|
2624
|
-
headers: Headers;
|
|
2625
|
-
} & Record<never, never>, {
|
|
2626
|
-
headers: Headers;
|
|
2627
|
-
}>, MergedCurrentContext< {
|
|
2628
|
-
headers: Headers;
|
|
2629
|
-
}, ApiKeyContext>, ZodObject< {
|
|
2633
|
+
create: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
2630
2634
|
programId: ZodString;
|
|
2631
2635
|
}, $strip>, Schema< {
|
|
2632
2636
|
data: {
|
|
@@ -2645,15 +2649,7 @@ declare const publicRouter: {
|
|
|
2645
2649
|
enrolledAt: string;
|
|
2646
2650
|
};
|
|
2647
2651
|
}>, Record<never, never>, Record<never, never>>;
|
|
2648
|
-
remove: DecoratedProcedure<MergedInitialContext< {
|
|
2649
|
-
headers: Headers;
|
|
2650
|
-
} & Record<never, never>, {
|
|
2651
|
-
headers: Headers;
|
|
2652
|
-
} & Record<never, never>, {
|
|
2653
|
-
headers: Headers;
|
|
2654
|
-
}>, MergedCurrentContext< {
|
|
2655
|
-
headers: Headers;
|
|
2656
|
-
}, ApiKeyContext>, ZodObject< {
|
|
2652
|
+
remove: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
2657
2653
|
id: ZodString;
|
|
2658
2654
|
}, $strip>, Schema< {
|
|
2659
2655
|
data: {
|
|
@@ -2668,15 +2664,7 @@ declare const publicRouter: {
|
|
|
2668
2664
|
}>, Record<never, never>, Record<never, never>>;
|
|
2669
2665
|
};
|
|
2670
2666
|
favourite: {
|
|
2671
|
-
list: DecoratedProcedure<MergedInitialContext< {
|
|
2672
|
-
headers: Headers;
|
|
2673
|
-
} & Record<never, never>, {
|
|
2674
|
-
headers: Headers;
|
|
2675
|
-
} & Record<never, never>, {
|
|
2676
|
-
headers: Headers;
|
|
2677
|
-
}>, MergedCurrentContext< {
|
|
2678
|
-
headers: Headers;
|
|
2679
|
-
}, ApiKeyContext>, ZodObject< {
|
|
2667
|
+
list: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
2680
2668
|
cursor: ZodOptional<ZodString>;
|
|
2681
2669
|
limit: ZodDefault<ZodCoercedNumber<unknown>>;
|
|
2682
2670
|
entityType: ZodOptional<ZodEnum< {
|
|
@@ -2701,15 +2689,7 @@ declare const publicRouter: {
|
|
|
2701
2689
|
limit: ZodNumber;
|
|
2702
2690
|
}, $strip>;
|
|
2703
2691
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
2704
|
-
add: DecoratedProcedure<MergedInitialContext< {
|
|
2705
|
-
headers: Headers;
|
|
2706
|
-
} & Record<never, never>, {
|
|
2707
|
-
headers: Headers;
|
|
2708
|
-
} & Record<never, never>, {
|
|
2709
|
-
headers: Headers;
|
|
2710
|
-
}>, MergedCurrentContext< {
|
|
2711
|
-
headers: Headers;
|
|
2712
|
-
}, ApiKeyContext>, ZodObject< {
|
|
2692
|
+
add: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
2713
2693
|
entityType: ZodEnum< {
|
|
2714
2694
|
workout: "workout";
|
|
2715
2695
|
program: "program";
|
|
@@ -2729,15 +2709,7 @@ declare const publicRouter: {
|
|
|
2729
2709
|
favouritedAt: ZodString;
|
|
2730
2710
|
}, $strip>;
|
|
2731
2711
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
2732
|
-
remove: DecoratedProcedure<MergedInitialContext< {
|
|
2733
|
-
headers: Headers;
|
|
2734
|
-
} & Record<never, never>, {
|
|
2735
|
-
headers: Headers;
|
|
2736
|
-
} & Record<never, never>, {
|
|
2737
|
-
headers: Headers;
|
|
2738
|
-
}>, MergedCurrentContext< {
|
|
2739
|
-
headers: Headers;
|
|
2740
|
-
}, ApiKeyContext>, ZodObject< {
|
|
2712
|
+
remove: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
2741
2713
|
entityType: ZodEnum< {
|
|
2742
2714
|
workout: "workout";
|
|
2743
2715
|
program: "program";
|
|
@@ -2759,15 +2731,7 @@ declare const publicRouter: {
|
|
|
2759
2731
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
2760
2732
|
};
|
|
2761
2733
|
sessionLog: {
|
|
2762
|
-
list: DecoratedProcedure<MergedInitialContext< {
|
|
2763
|
-
headers: Headers;
|
|
2764
|
-
} & Record<never, never>, {
|
|
2765
|
-
headers: Headers;
|
|
2766
|
-
} & Record<never, never>, {
|
|
2767
|
-
headers: Headers;
|
|
2768
|
-
}>, MergedCurrentContext< {
|
|
2769
|
-
headers: Headers;
|
|
2770
|
-
}, ApiKeyContext>, ZodObject< {
|
|
2734
|
+
list: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
2771
2735
|
programId: ZodOptional<ZodString>;
|
|
2772
2736
|
sessionId: ZodOptional<ZodString>;
|
|
2773
2737
|
workoutId: ZodOptional<ZodString>;
|
|
@@ -2798,18 +2762,11 @@ declare const publicRouter: {
|
|
|
2798
2762
|
}, $strip>>;
|
|
2799
2763
|
}, $strip>>;
|
|
2800
2764
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
2801
|
-
create: DecoratedProcedure<MergedInitialContext< {
|
|
2802
|
-
headers: Headers;
|
|
2803
|
-
} & Record<never, never>, {
|
|
2804
|
-
headers: Headers;
|
|
2805
|
-
} & Record<never, never>, {
|
|
2806
|
-
headers: Headers;
|
|
2807
|
-
}>, MergedCurrentContext< {
|
|
2808
|
-
headers: Headers;
|
|
2809
|
-
}, ApiKeyContext>, ZodObject< {
|
|
2765
|
+
create: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
2810
2766
|
sessionId: ZodOptional<ZodString>;
|
|
2811
2767
|
enrollmentId: ZodOptional<ZodString>;
|
|
2812
2768
|
workoutId: ZodOptional<ZodString>;
|
|
2769
|
+
clientRequestId: ZodOptional<ZodString>;
|
|
2813
2770
|
}, $strip>, Schema< {
|
|
2814
2771
|
data: {
|
|
2815
2772
|
id: string;
|
|
@@ -2820,7 +2777,15 @@ declare const publicRouter: {
|
|
|
2820
2777
|
completedAt: string | null;
|
|
2821
2778
|
overallRpe: number | null;
|
|
2822
2779
|
notes: string | null;
|
|
2823
|
-
sets:
|
|
2780
|
+
sets: {
|
|
2781
|
+
id: string;
|
|
2782
|
+
exerciseId: string;
|
|
2783
|
+
setNumber: number;
|
|
2784
|
+
reps: number | null;
|
|
2785
|
+
weightKg: string | null;
|
|
2786
|
+
rpe: number | null;
|
|
2787
|
+
notes: string | null;
|
|
2788
|
+
}[];
|
|
2824
2789
|
};
|
|
2825
2790
|
}, {
|
|
2826
2791
|
data: {
|
|
@@ -2832,18 +2797,18 @@ declare const publicRouter: {
|
|
|
2832
2797
|
completedAt: string | null;
|
|
2833
2798
|
overallRpe: number | null;
|
|
2834
2799
|
notes: string | null;
|
|
2835
|
-
sets:
|
|
2800
|
+
sets: {
|
|
2801
|
+
id: string;
|
|
2802
|
+
exerciseId: string;
|
|
2803
|
+
setNumber: number;
|
|
2804
|
+
reps: number | null;
|
|
2805
|
+
weightKg: string | null;
|
|
2806
|
+
rpe: number | null;
|
|
2807
|
+
notes: string | null;
|
|
2808
|
+
}[];
|
|
2836
2809
|
};
|
|
2837
2810
|
}>, Record<never, never>, Record<never, never>>;
|
|
2838
|
-
update: DecoratedProcedure<MergedInitialContext< {
|
|
2839
|
-
headers: Headers;
|
|
2840
|
-
} & Record<never, never>, {
|
|
2841
|
-
headers: Headers;
|
|
2842
|
-
} & Record<never, never>, {
|
|
2843
|
-
headers: Headers;
|
|
2844
|
-
}>, MergedCurrentContext< {
|
|
2845
|
-
headers: Headers;
|
|
2846
|
-
}, ApiKeyContext>, ZodObject< {
|
|
2811
|
+
update: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
2847
2812
|
id: ZodString;
|
|
2848
2813
|
overallRpe: ZodOptional<ZodNullable<ZodNumber>>;
|
|
2849
2814
|
notes: ZodOptional<ZodNullable<ZodString>>;
|
|
@@ -2889,15 +2854,7 @@ declare const publicRouter: {
|
|
|
2889
2854
|
}[];
|
|
2890
2855
|
};
|
|
2891
2856
|
}>, Record<never, never>, Record<never, never>>;
|
|
2892
|
-
addSet: DecoratedProcedure<MergedInitialContext< {
|
|
2893
|
-
headers: Headers;
|
|
2894
|
-
} & Record<never, never>, {
|
|
2895
|
-
headers: Headers;
|
|
2896
|
-
} & Record<never, never>, {
|
|
2897
|
-
headers: Headers;
|
|
2898
|
-
}>, MergedCurrentContext< {
|
|
2899
|
-
headers: Headers;
|
|
2900
|
-
}, ApiKeyContext>, ZodObject< {
|
|
2857
|
+
addSet: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
2901
2858
|
id: ZodString;
|
|
2902
2859
|
exerciseId: ZodString;
|
|
2903
2860
|
setNumber: ZodNumber;
|
|
@@ -2905,6 +2862,7 @@ declare const publicRouter: {
|
|
|
2905
2862
|
weightKg: ZodOptional<ZodNullable<ZodString>>;
|
|
2906
2863
|
rpe: ZodOptional<ZodNullable<ZodNumber>>;
|
|
2907
2864
|
notes: ZodOptional<ZodNullable<ZodString>>;
|
|
2865
|
+
clientRequestId: ZodOptional<ZodString>;
|
|
2908
2866
|
}, $strip>, Schema< {
|
|
2909
2867
|
data: {
|
|
2910
2868
|
id: string;
|
|
@@ -2926,15 +2884,7 @@ declare const publicRouter: {
|
|
|
2926
2884
|
notes: string | null;
|
|
2927
2885
|
};
|
|
2928
2886
|
}>, Record<never, never>, Record<never, never>>;
|
|
2929
|
-
editSet: DecoratedProcedure<MergedInitialContext< {
|
|
2930
|
-
headers: Headers;
|
|
2931
|
-
} & Record<never, never>, {
|
|
2932
|
-
headers: Headers;
|
|
2933
|
-
} & Record<never, never>, {
|
|
2934
|
-
headers: Headers;
|
|
2935
|
-
}>, MergedCurrentContext< {
|
|
2936
|
-
headers: Headers;
|
|
2937
|
-
}, ApiKeyContext>, ZodObject< {
|
|
2887
|
+
editSet: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
2938
2888
|
id: ZodString;
|
|
2939
2889
|
setId: ZodString;
|
|
2940
2890
|
setNumber: ZodOptional<ZodNumber>;
|
|
@@ -2963,15 +2913,7 @@ declare const publicRouter: {
|
|
|
2963
2913
|
notes: string | null;
|
|
2964
2914
|
};
|
|
2965
2915
|
}>, Record<never, never>, Record<never, never>>;
|
|
2966
|
-
deleteSet: DecoratedProcedure<MergedInitialContext< {
|
|
2967
|
-
headers: Headers;
|
|
2968
|
-
} & Record<never, never>, {
|
|
2969
|
-
headers: Headers;
|
|
2970
|
-
} & Record<never, never>, {
|
|
2971
|
-
headers: Headers;
|
|
2972
|
-
}>, MergedCurrentContext< {
|
|
2973
|
-
headers: Headers;
|
|
2974
|
-
}, ApiKeyContext>, ZodObject< {
|
|
2916
|
+
deleteSet: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
2975
2917
|
id: ZodString;
|
|
2976
2918
|
setId: ZodString;
|
|
2977
2919
|
}, $strip>, Schema< {
|
|
@@ -2985,15 +2927,15 @@ declare const publicRouter: {
|
|
|
2985
2927
|
deleted: boolean;
|
|
2986
2928
|
};
|
|
2987
2929
|
}>, Record<never, never>, Record<never, never>>;
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
}
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2930
|
+
delete: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
2931
|
+
id: ZodString;
|
|
2932
|
+
}, $strip>, ZodObject< {
|
|
2933
|
+
data: ZodObject< {
|
|
2934
|
+
id: ZodString;
|
|
2935
|
+
deleted: ZodLiteral<true>;
|
|
2936
|
+
}, $strip>;
|
|
2937
|
+
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
2938
|
+
getFeedback: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
2997
2939
|
id: ZodString;
|
|
2998
2940
|
}, $strip>, ZodObject< {
|
|
2999
2941
|
data: ZodObject< {
|
|
@@ -3020,15 +2962,7 @@ declare const publicRouter: {
|
|
|
3020
2962
|
}, $strip>>;
|
|
3021
2963
|
}, $strip>;
|
|
3022
2964
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
3023
|
-
markFeedbackSeen: DecoratedProcedure<MergedInitialContext< {
|
|
3024
|
-
headers: Headers;
|
|
3025
|
-
} & Record<never, never>, {
|
|
3026
|
-
headers: Headers;
|
|
3027
|
-
} & Record<never, never>, {
|
|
3028
|
-
headers: Headers;
|
|
3029
|
-
}>, MergedCurrentContext< {
|
|
3030
|
-
headers: Headers;
|
|
3031
|
-
}, ApiKeyContext>, ZodObject< {
|
|
2965
|
+
markFeedbackSeen: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
3032
2966
|
id: ZodString;
|
|
3033
2967
|
}, $strip>, ZodObject< {
|
|
3034
2968
|
data: ZodObject< {
|
|
@@ -3036,30 +2970,14 @@ declare const publicRouter: {
|
|
|
3036
2970
|
seenAt: ZodNullable<ZodString>;
|
|
3037
2971
|
}, $strip>;
|
|
3038
2972
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
3039
|
-
unseenFeedbackCount: DecoratedProcedure<MergedInitialContext< {
|
|
3040
|
-
headers: Headers;
|
|
3041
|
-
} & Record<never, never>, {
|
|
3042
|
-
headers: Headers;
|
|
3043
|
-
} & Record<never, never>, {
|
|
3044
|
-
headers: Headers;
|
|
3045
|
-
}>, MergedCurrentContext< {
|
|
3046
|
-
headers: Headers;
|
|
3047
|
-
}, ApiKeyContext>, ZodObject< {}, $strip>, ZodObject< {
|
|
2973
|
+
unseenFeedbackCount: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {}, $strip>, ZodObject< {
|
|
3048
2974
|
data: ZodObject< {
|
|
3049
2975
|
count: ZodNumber;
|
|
3050
2976
|
}, $strip>;
|
|
3051
2977
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
3052
2978
|
};
|
|
3053
2979
|
progression: {
|
|
3054
|
-
getHistory: DecoratedProcedure<MergedInitialContext< {
|
|
3055
|
-
headers: Headers;
|
|
3056
|
-
} & Record<never, never>, {
|
|
3057
|
-
headers: Headers;
|
|
3058
|
-
} & Record<never, never>, {
|
|
3059
|
-
headers: Headers;
|
|
3060
|
-
}>, MergedCurrentContext< {
|
|
3061
|
-
headers: Headers;
|
|
3062
|
-
}, ApiKeyContext>, ZodObject< {
|
|
2980
|
+
getHistory: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
3063
2981
|
id: ZodString;
|
|
3064
2982
|
}, $strip>, ZodObject< {
|
|
3065
2983
|
data: ZodArray<ZodObject< {
|
|
@@ -3081,15 +2999,7 @@ declare const publicRouter: {
|
|
|
3081
2999
|
truncated: ZodBoolean;
|
|
3082
3000
|
}, $strip>;
|
|
3083
3001
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
3084
|
-
getPrSummary: DecoratedProcedure<MergedInitialContext< {
|
|
3085
|
-
headers: Headers;
|
|
3086
|
-
} & Record<never, never>, {
|
|
3087
|
-
headers: Headers;
|
|
3088
|
-
} & Record<never, never>, {
|
|
3089
|
-
headers: Headers;
|
|
3090
|
-
}>, MergedCurrentContext< {
|
|
3091
|
-
headers: Headers;
|
|
3092
|
-
}, ApiKeyContext>, ZodObject< {
|
|
3002
|
+
getPrSummary: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
3093
3003
|
limit: ZodDefault<ZodCoercedNumber<unknown>>;
|
|
3094
3004
|
}, $strip>, ZodObject< {
|
|
3095
3005
|
data: ZodArray<ZodObject< {
|
|
@@ -3112,15 +3022,44 @@ declare const publicRouter: {
|
|
|
3112
3022
|
computedAt: ZodString;
|
|
3113
3023
|
}, $strip>;
|
|
3114
3024
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3025
|
+
getE1rmTrend: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
3026
|
+
range: ZodDefault<ZodEnum< {
|
|
3027
|
+
"12w": "12w";
|
|
3028
|
+
"1y": "1y";
|
|
3029
|
+
"26w": "26w";
|
|
3030
|
+
}>>;
|
|
3031
|
+
groupKey: ZodOptional<ZodString>;
|
|
3032
|
+
}, $strip>, ZodObject< {
|
|
3033
|
+
data: ZodArray<ZodObject< {
|
|
3034
|
+
groupKey: ZodString;
|
|
3035
|
+
catalogueExerciseId: ZodNullable<ZodString>;
|
|
3036
|
+
name: ZodString;
|
|
3037
|
+
exerciseType: ZodNullable<ZodEnum< {
|
|
3038
|
+
compound: "compound";
|
|
3039
|
+
isolation: "isolation";
|
|
3040
|
+
cardio: "cardio";
|
|
3041
|
+
mobility: "mobility";
|
|
3042
|
+
}>>;
|
|
3043
|
+
sessionCount: ZodNumber;
|
|
3044
|
+
points: ZodArray<ZodObject< {
|
|
3045
|
+
sessionLogId: ZodString;
|
|
3046
|
+
completedAt: ZodString;
|
|
3047
|
+
date: ZodISODate;
|
|
3048
|
+
e1rmKg: ZodNumber;
|
|
3049
|
+
weightKg: ZodNumber;
|
|
3050
|
+
reps: ZodNumber;
|
|
3051
|
+
isPr: ZodBoolean;
|
|
3052
|
+
lowConfidence: ZodBoolean;
|
|
3053
|
+
}, $strip>>;
|
|
3054
|
+
changePct: ZodNullable<ZodNumber>;
|
|
3055
|
+
}, $strip>>;
|
|
3056
|
+
meta: ZodObject< {
|
|
3057
|
+
from: ZodString;
|
|
3058
|
+
to: ZodString;
|
|
3059
|
+
timeZone: ZodString;
|
|
3060
|
+
}, $strip>;
|
|
3061
|
+
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
3062
|
+
listPrHistory: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
3124
3063
|
exerciseId: ZodOptional<ZodString>;
|
|
3125
3064
|
limit: ZodDefault<ZodCoercedNumber<unknown>>;
|
|
3126
3065
|
}, $strip>, ZodObject< {
|
|
@@ -3137,15 +3076,7 @@ declare const publicRouter: {
|
|
|
3137
3076
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
3138
3077
|
};
|
|
3139
3078
|
bodyMetric: {
|
|
3140
|
-
list: DecoratedProcedure<MergedInitialContext< {
|
|
3141
|
-
headers: Headers;
|
|
3142
|
-
} & Record<never, never>, {
|
|
3143
|
-
headers: Headers;
|
|
3144
|
-
} & Record<never, never>, {
|
|
3145
|
-
headers: Headers;
|
|
3146
|
-
}>, MergedCurrentContext< {
|
|
3147
|
-
headers: Headers;
|
|
3148
|
-
}, ApiKeyContext>, ZodObject< {
|
|
3079
|
+
list: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
3149
3080
|
from: ZodOptional<ZodString>;
|
|
3150
3081
|
to: ZodOptional<ZodString>;
|
|
3151
3082
|
}, $strip>, ZodObject< {
|
|
@@ -3155,21 +3086,58 @@ declare const publicRouter: {
|
|
|
3155
3086
|
weightKg: ZodString;
|
|
3156
3087
|
bodyFatPct: ZodNullable<ZodString>;
|
|
3157
3088
|
notes: ZodNullable<ZodString>;
|
|
3089
|
+
source: ZodEnum< {
|
|
3090
|
+
member: "member";
|
|
3091
|
+
staff: "staff";
|
|
3092
|
+
checkin: "checkin";
|
|
3093
|
+
}>;
|
|
3094
|
+
recordedBy: ZodNullable<ZodObject< {
|
|
3095
|
+
name: ZodString;
|
|
3096
|
+
}, $strip>>;
|
|
3158
3097
|
}, $strip>>;
|
|
3159
3098
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
3160
|
-
record: DecoratedProcedure<MergedInitialContext< {
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3099
|
+
record: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
3100
|
+
recordedAt: ZodString;
|
|
3101
|
+
weightKg: ZodString;
|
|
3102
|
+
bodyFatPct: ZodOptional<ZodNullable<ZodString>>;
|
|
3103
|
+
notes: ZodOptional<ZodNullable<ZodString>>;
|
|
3104
|
+
unit: ZodOptional<ZodEnum< {
|
|
3105
|
+
lb: "lb";
|
|
3106
|
+
kg: "kg";
|
|
3107
|
+
}>>;
|
|
3108
|
+
clientRequestId: ZodOptional<ZodString>;
|
|
3109
|
+
}, $strip>, ZodObject< {
|
|
3110
|
+
data: ZodObject< {
|
|
3111
|
+
id: ZodString;
|
|
3112
|
+
recordedAt: ZodString;
|
|
3113
|
+
weightKg: ZodString;
|
|
3114
|
+
bodyFatPct: ZodNullable<ZodString>;
|
|
3115
|
+
notes: ZodNullable<ZodString>;
|
|
3116
|
+
source: ZodEnum< {
|
|
3117
|
+
member: "member";
|
|
3118
|
+
staff: "staff";
|
|
3119
|
+
checkin: "checkin";
|
|
3120
|
+
}>;
|
|
3121
|
+
recordedBy: ZodNullable<ZodObject< {
|
|
3122
|
+
name: ZodString;
|
|
3123
|
+
}, $strip>>;
|
|
3124
|
+
}, $strip>;
|
|
3125
|
+
warning: ZodNullable<ZodDiscriminatedUnion<[ZodObject< {
|
|
3126
|
+
kind: ZodLiteral<"large_change">;
|
|
3127
|
+
previousWeightKg: ZodString;
|
|
3128
|
+
changeKg: ZodNumber;
|
|
3129
|
+
}, $strip>], "kind">>;
|
|
3130
|
+
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
3131
|
+
update: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
3169
3132
|
recordedAt: ZodString;
|
|
3170
3133
|
weightKg: ZodString;
|
|
3171
3134
|
bodyFatPct: ZodOptional<ZodNullable<ZodString>>;
|
|
3172
3135
|
notes: ZodOptional<ZodNullable<ZodString>>;
|
|
3136
|
+
unit: ZodOptional<ZodEnum< {
|
|
3137
|
+
lb: "lb";
|
|
3138
|
+
kg: "kg";
|
|
3139
|
+
}>>;
|
|
3140
|
+
id: ZodString;
|
|
3173
3141
|
}, $strip>, ZodObject< {
|
|
3174
3142
|
data: ZodObject< {
|
|
3175
3143
|
id: ZodString;
|
|
@@ -3177,17 +3145,22 @@ declare const publicRouter: {
|
|
|
3177
3145
|
weightKg: ZodString;
|
|
3178
3146
|
bodyFatPct: ZodNullable<ZodString>;
|
|
3179
3147
|
notes: ZodNullable<ZodString>;
|
|
3148
|
+
source: ZodEnum< {
|
|
3149
|
+
member: "member";
|
|
3150
|
+
staff: "staff";
|
|
3151
|
+
checkin: "checkin";
|
|
3152
|
+
}>;
|
|
3153
|
+
recordedBy: ZodNullable<ZodObject< {
|
|
3154
|
+
name: ZodString;
|
|
3155
|
+
}, $strip>>;
|
|
3180
3156
|
}, $strip>;
|
|
3157
|
+
warning: ZodNullable<ZodDiscriminatedUnion<[ZodObject< {
|
|
3158
|
+
kind: ZodLiteral<"large_change">;
|
|
3159
|
+
previousWeightKg: ZodString;
|
|
3160
|
+
changeKg: ZodNumber;
|
|
3161
|
+
}, $strip>], "kind">>;
|
|
3181
3162
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
3182
|
-
delete: DecoratedProcedure<MergedInitialContext< {
|
|
3183
|
-
headers: Headers;
|
|
3184
|
-
} & Record<never, never>, {
|
|
3185
|
-
headers: Headers;
|
|
3186
|
-
} & Record<never, never>, {
|
|
3187
|
-
headers: Headers;
|
|
3188
|
-
}>, MergedCurrentContext< {
|
|
3189
|
-
headers: Headers;
|
|
3190
|
-
}, ApiKeyContext>, ZodObject< {
|
|
3163
|
+
delete: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
3191
3164
|
id: ZodString;
|
|
3192
3165
|
}, $strip>, ZodObject< {
|
|
3193
3166
|
data: ZodObject< {
|
|
@@ -3196,36 +3169,357 @@ declare const publicRouter: {
|
|
|
3196
3169
|
}, $strip>;
|
|
3197
3170
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
3198
3171
|
};
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3172
|
+
bodyMeasurement: {
|
|
3173
|
+
list: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
3174
|
+
from: ZodOptional<ZodString>;
|
|
3175
|
+
to: ZodOptional<ZodString>;
|
|
3176
|
+
}, $strip>, ZodObject< {
|
|
3177
|
+
data: ZodArray<ZodObject< {
|
|
3178
|
+
id: ZodString;
|
|
3179
|
+
recordedAt: ZodString;
|
|
3180
|
+
kind: ZodEnum< {
|
|
3181
|
+
waist: "waist";
|
|
3182
|
+
hips: "hips";
|
|
3183
|
+
chest: "chest";
|
|
3184
|
+
neck: "neck";
|
|
3185
|
+
shoulders: "shoulders";
|
|
3186
|
+
arm_left: "arm_left";
|
|
3187
|
+
arm_right: "arm_right";
|
|
3188
|
+
thigh_left: "thigh_left";
|
|
3189
|
+
thigh_right: "thigh_right";
|
|
3190
|
+
calf_left: "calf_left";
|
|
3191
|
+
calf_right: "calf_right";
|
|
3192
|
+
}>;
|
|
3193
|
+
valueCm: ZodString;
|
|
3194
|
+
source: ZodEnum< {
|
|
3195
|
+
member: "member";
|
|
3196
|
+
staff: "staff";
|
|
3197
|
+
checkin: "checkin";
|
|
3198
|
+
}>;
|
|
3199
|
+
recordedBy: ZodNullable<ZodObject< {
|
|
3219
3200
|
name: ZodString;
|
|
3220
3201
|
}, $strip>>;
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3202
|
+
}, $strip>>;
|
|
3203
|
+
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
3204
|
+
record: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
3205
|
+
recordedAt: ZodString;
|
|
3206
|
+
values: ZodArray<ZodObject< {
|
|
3207
|
+
kind: ZodEnum< {
|
|
3208
|
+
waist: "waist";
|
|
3209
|
+
hips: "hips";
|
|
3210
|
+
chest: "chest";
|
|
3211
|
+
neck: "neck";
|
|
3212
|
+
shoulders: "shoulders";
|
|
3213
|
+
arm_left: "arm_left";
|
|
3214
|
+
arm_right: "arm_right";
|
|
3215
|
+
thigh_left: "thigh_left";
|
|
3216
|
+
thigh_right: "thigh_right";
|
|
3217
|
+
calf_left: "calf_left";
|
|
3218
|
+
calf_right: "calf_right";
|
|
3219
|
+
}>;
|
|
3220
|
+
valueCm: ZodString;
|
|
3221
|
+
}, $strip>>;
|
|
3222
|
+
}, $strip>, ZodObject< {
|
|
3223
|
+
data: ZodArray<ZodObject< {
|
|
3224
|
+
id: ZodString;
|
|
3225
|
+
recordedAt: ZodString;
|
|
3226
|
+
kind: ZodEnum< {
|
|
3227
|
+
waist: "waist";
|
|
3228
|
+
hips: "hips";
|
|
3229
|
+
chest: "chest";
|
|
3230
|
+
neck: "neck";
|
|
3231
|
+
shoulders: "shoulders";
|
|
3232
|
+
arm_left: "arm_left";
|
|
3233
|
+
arm_right: "arm_right";
|
|
3234
|
+
thigh_left: "thigh_left";
|
|
3235
|
+
thigh_right: "thigh_right";
|
|
3236
|
+
calf_left: "calf_left";
|
|
3237
|
+
calf_right: "calf_right";
|
|
3238
|
+
}>;
|
|
3239
|
+
valueCm: ZodString;
|
|
3240
|
+
source: ZodEnum< {
|
|
3241
|
+
member: "member";
|
|
3242
|
+
staff: "staff";
|
|
3243
|
+
checkin: "checkin";
|
|
3244
|
+
}>;
|
|
3245
|
+
recordedBy: ZodNullable<ZodObject< {
|
|
3246
|
+
name: ZodString;
|
|
3247
|
+
}, $strip>>;
|
|
3248
|
+
}, $strip>>;
|
|
3249
|
+
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
3250
|
+
delete: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
3251
|
+
id: ZodString;
|
|
3252
|
+
}, $strip>, ZodObject< {
|
|
3253
|
+
data: ZodObject< {
|
|
3254
|
+
id: ZodString;
|
|
3255
|
+
deleted: ZodLiteral<true>;
|
|
3256
|
+
}, $strip>;
|
|
3257
|
+
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
3258
|
+
};
|
|
3259
|
+
progressPhoto: {
|
|
3260
|
+
list: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
3261
|
+
pose: ZodOptional<ZodEnum< {
|
|
3262
|
+
other: "other";
|
|
3263
|
+
side: "side";
|
|
3264
|
+
front: "front";
|
|
3265
|
+
back: "back";
|
|
3266
|
+
}>>;
|
|
3267
|
+
cursor: ZodOptional<ZodString>;
|
|
3268
|
+
limit: ZodOptional<ZodCoercedNumber<unknown>>;
|
|
3269
|
+
}, $strip>, ZodObject< {
|
|
3270
|
+
data: ZodArray<ZodObject< {
|
|
3271
|
+
id: ZodString;
|
|
3272
|
+
takenAt: ZodString;
|
|
3273
|
+
day: ZodString;
|
|
3274
|
+
pose: ZodEnum< {
|
|
3275
|
+
other: "other";
|
|
3276
|
+
side: "side";
|
|
3277
|
+
front: "front";
|
|
3278
|
+
back: "back";
|
|
3279
|
+
}>;
|
|
3280
|
+
source: ZodEnum< {
|
|
3281
|
+
member: "member";
|
|
3282
|
+
staff: "staff";
|
|
3283
|
+
checkin: "checkin";
|
|
3284
|
+
}>;
|
|
3285
|
+
addedBy: ZodNullable<ZodObject< {
|
|
3286
|
+
name: ZodString;
|
|
3287
|
+
}, $strip>>;
|
|
3288
|
+
checkinId: ZodNullable<ZodString>;
|
|
3289
|
+
width: ZodNumber;
|
|
3290
|
+
height: ZodNumber;
|
|
3291
|
+
bodyweightKg: ZodNullable<ZodString>;
|
|
3292
|
+
url: ZodNullable<ZodString>;
|
|
3293
|
+
}, $strip>>;
|
|
3294
|
+
meta: ZodObject< {
|
|
3295
|
+
nextCursor: ZodNullable<ZodString>;
|
|
3296
|
+
limit: ZodNumber;
|
|
3297
|
+
counts: ZodObject< {
|
|
3298
|
+
all: ZodNumber;
|
|
3299
|
+
front: ZodNumber;
|
|
3300
|
+
side: ZodNumber;
|
|
3301
|
+
back: ZodNumber;
|
|
3302
|
+
other: ZodNumber;
|
|
3303
|
+
}, $strip>;
|
|
3304
|
+
consent: ZodDiscriminatedUnion<[ZodObject< {
|
|
3305
|
+
state: ZodLiteral<"none">;
|
|
3306
|
+
}, $strip>, ZodObject< {
|
|
3307
|
+
state: ZodLiteral<"granted">;
|
|
3308
|
+
version: ZodString;
|
|
3309
|
+
grantedAt: ZodString;
|
|
3310
|
+
}, $strip>, ZodObject< {
|
|
3311
|
+
state: ZodLiteral<"withdrawn">;
|
|
3312
|
+
version: ZodString;
|
|
3313
|
+
grantedAt: ZodString;
|
|
3314
|
+
withdrawnAt: ZodString;
|
|
3315
|
+
}, $strip>], "state">;
|
|
3316
|
+
}, $strip>;
|
|
3317
|
+
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
3318
|
+
compare: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
3319
|
+
a: ZodString;
|
|
3320
|
+
b: ZodString;
|
|
3321
|
+
}, $strip>, ZodObject< {
|
|
3322
|
+
data: ZodObject< {
|
|
3323
|
+
earlier: ZodObject< {
|
|
3324
|
+
photo: ZodObject< {
|
|
3325
|
+
id: ZodString;
|
|
3326
|
+
takenAt: ZodString;
|
|
3327
|
+
day: ZodString;
|
|
3328
|
+
pose: ZodEnum< {
|
|
3329
|
+
other: "other";
|
|
3330
|
+
side: "side";
|
|
3331
|
+
front: "front";
|
|
3332
|
+
back: "back";
|
|
3333
|
+
}>;
|
|
3334
|
+
source: ZodEnum< {
|
|
3335
|
+
member: "member";
|
|
3336
|
+
staff: "staff";
|
|
3337
|
+
checkin: "checkin";
|
|
3338
|
+
}>;
|
|
3339
|
+
addedBy: ZodNullable<ZodObject< {
|
|
3340
|
+
name: ZodString;
|
|
3341
|
+
}, $strip>>;
|
|
3342
|
+
checkinId: ZodNullable<ZodString>;
|
|
3343
|
+
width: ZodNumber;
|
|
3344
|
+
height: ZodNumber;
|
|
3345
|
+
bodyweightKg: ZodNullable<ZodString>;
|
|
3346
|
+
url: ZodNullable<ZodString>;
|
|
3347
|
+
}, $strip>;
|
|
3348
|
+
nearestWeighIn: ZodNullable<ZodObject< {
|
|
3349
|
+
recordedAt: ZodString;
|
|
3350
|
+
weightKg: ZodString;
|
|
3351
|
+
}, $strip>>;
|
|
3352
|
+
nearestWaist: ZodNullable<ZodObject< {
|
|
3353
|
+
recordedAt: ZodString;
|
|
3354
|
+
valueCm: ZodString;
|
|
3355
|
+
}, $strip>>;
|
|
3356
|
+
}, $strip>;
|
|
3357
|
+
later: ZodObject< {
|
|
3358
|
+
photo: ZodObject< {
|
|
3359
|
+
id: ZodString;
|
|
3360
|
+
takenAt: ZodString;
|
|
3361
|
+
day: ZodString;
|
|
3362
|
+
pose: ZodEnum< {
|
|
3363
|
+
other: "other";
|
|
3364
|
+
side: "side";
|
|
3365
|
+
front: "front";
|
|
3366
|
+
back: "back";
|
|
3367
|
+
}>;
|
|
3368
|
+
source: ZodEnum< {
|
|
3369
|
+
member: "member";
|
|
3370
|
+
staff: "staff";
|
|
3371
|
+
checkin: "checkin";
|
|
3372
|
+
}>;
|
|
3373
|
+
addedBy: ZodNullable<ZodObject< {
|
|
3374
|
+
name: ZodString;
|
|
3375
|
+
}, $strip>>;
|
|
3376
|
+
checkinId: ZodNullable<ZodString>;
|
|
3377
|
+
width: ZodNumber;
|
|
3378
|
+
height: ZodNumber;
|
|
3379
|
+
bodyweightKg: ZodNullable<ZodString>;
|
|
3380
|
+
url: ZodNullable<ZodString>;
|
|
3381
|
+
}, $strip>;
|
|
3382
|
+
nearestWeighIn: ZodNullable<ZodObject< {
|
|
3383
|
+
recordedAt: ZodString;
|
|
3384
|
+
weightKg: ZodString;
|
|
3385
|
+
}, $strip>>;
|
|
3386
|
+
nearestWaist: ZodNullable<ZodObject< {
|
|
3387
|
+
recordedAt: ZodString;
|
|
3388
|
+
valueCm: ZodString;
|
|
3389
|
+
}, $strip>>;
|
|
3390
|
+
}, $strip>;
|
|
3391
|
+
}, $strip>;
|
|
3392
|
+
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
3393
|
+
requestUpload: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
3394
|
+
contentType: ZodEnum< {
|
|
3395
|
+
"image/webp": "image/webp";
|
|
3396
|
+
"image/jpeg": "image/jpeg";
|
|
3397
|
+
"image/png": "image/png";
|
|
3398
|
+
}>;
|
|
3399
|
+
fileSize: ZodNumber;
|
|
3400
|
+
width: ZodNumber;
|
|
3401
|
+
height: ZodNumber;
|
|
3402
|
+
}, $strip>, ZodObject< {
|
|
3403
|
+
data: ZodObject< {
|
|
3404
|
+
uploadId: ZodString;
|
|
3405
|
+
uploadUrl: ZodString;
|
|
3406
|
+
}, $strip>;
|
|
3407
|
+
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
3408
|
+
add: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
3409
|
+
takenAt: ZodString;
|
|
3410
|
+
photos: ZodArray<ZodObject< {
|
|
3411
|
+
uploadId: ZodString;
|
|
3412
|
+
pose: ZodEnum< {
|
|
3413
|
+
other: "other";
|
|
3414
|
+
side: "side";
|
|
3415
|
+
front: "front";
|
|
3416
|
+
back: "back";
|
|
3417
|
+
}>;
|
|
3418
|
+
}, $strip>>;
|
|
3419
|
+
}, $strip>, ZodObject< {
|
|
3420
|
+
data: ZodArray<ZodObject< {
|
|
3421
|
+
id: ZodString;
|
|
3422
|
+
takenAt: ZodString;
|
|
3423
|
+
day: ZodString;
|
|
3424
|
+
pose: ZodEnum< {
|
|
3425
|
+
other: "other";
|
|
3426
|
+
side: "side";
|
|
3427
|
+
front: "front";
|
|
3428
|
+
back: "back";
|
|
3429
|
+
}>;
|
|
3430
|
+
source: ZodEnum< {
|
|
3431
|
+
member: "member";
|
|
3432
|
+
staff: "staff";
|
|
3433
|
+
checkin: "checkin";
|
|
3434
|
+
}>;
|
|
3435
|
+
addedBy: ZodNullable<ZodObject< {
|
|
3436
|
+
name: ZodString;
|
|
3437
|
+
}, $strip>>;
|
|
3438
|
+
checkinId: ZodNullable<ZodString>;
|
|
3439
|
+
width: ZodNumber;
|
|
3440
|
+
height: ZodNumber;
|
|
3441
|
+
bodyweightKg: ZodNullable<ZodString>;
|
|
3442
|
+
url: ZodNullable<ZodString>;
|
|
3443
|
+
}, $strip>>;
|
|
3444
|
+
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
3445
|
+
delete: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
3446
|
+
id: ZodString;
|
|
3447
|
+
}, $strip>, ZodObject< {
|
|
3448
|
+
data: ZodObject< {
|
|
3449
|
+
id: ZodString;
|
|
3450
|
+
deleted: ZodLiteral<true>;
|
|
3451
|
+
}, $strip>;
|
|
3452
|
+
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
3453
|
+
consent: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {}, $strip>, ZodObject< {
|
|
3454
|
+
data: ZodDiscriminatedUnion<[ZodObject< {
|
|
3455
|
+
state: ZodLiteral<"none">;
|
|
3456
|
+
}, $strip>, ZodObject< {
|
|
3457
|
+
state: ZodLiteral<"granted">;
|
|
3458
|
+
version: ZodString;
|
|
3459
|
+
grantedAt: ZodString;
|
|
3460
|
+
}, $strip>, ZodObject< {
|
|
3461
|
+
state: ZodLiteral<"withdrawn">;
|
|
3462
|
+
version: ZodString;
|
|
3463
|
+
grantedAt: ZodString;
|
|
3464
|
+
withdrawnAt: ZodString;
|
|
3465
|
+
}, $strip>], "state">;
|
|
3466
|
+
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
3467
|
+
grantConsent: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
3468
|
+
version: ZodLiteral<"2026-10">;
|
|
3469
|
+
}, $strip>, ZodObject< {
|
|
3470
|
+
data: ZodDiscriminatedUnion<[ZodObject< {
|
|
3471
|
+
state: ZodLiteral<"none">;
|
|
3472
|
+
}, $strip>, ZodObject< {
|
|
3473
|
+
state: ZodLiteral<"granted">;
|
|
3474
|
+
version: ZodString;
|
|
3475
|
+
grantedAt: ZodString;
|
|
3476
|
+
}, $strip>, ZodObject< {
|
|
3477
|
+
state: ZodLiteral<"withdrawn">;
|
|
3478
|
+
version: ZodString;
|
|
3479
|
+
grantedAt: ZodString;
|
|
3480
|
+
withdrawnAt: ZodString;
|
|
3481
|
+
}, $strip>], "state">;
|
|
3482
|
+
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
3483
|
+
withdrawConsent: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {}, $strip>, ZodObject< {
|
|
3484
|
+
data: ZodObject< {
|
|
3485
|
+
consent: ZodDiscriminatedUnion<[ZodObject< {
|
|
3486
|
+
state: ZodLiteral<"none">;
|
|
3487
|
+
}, $strip>, ZodObject< {
|
|
3488
|
+
state: ZodLiteral<"granted">;
|
|
3489
|
+
version: ZodString;
|
|
3490
|
+
grantedAt: ZodString;
|
|
3491
|
+
}, $strip>, ZodObject< {
|
|
3492
|
+
state: ZodLiteral<"withdrawn">;
|
|
3493
|
+
version: ZodString;
|
|
3494
|
+
grantedAt: ZodString;
|
|
3495
|
+
withdrawnAt: ZodString;
|
|
3496
|
+
}, $strip>], "state">;
|
|
3497
|
+
removedPhotos: ZodNumber;
|
|
3498
|
+
}, $strip>;
|
|
3499
|
+
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
3500
|
+
};
|
|
3501
|
+
checkin: {
|
|
3502
|
+
current: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {}, $strip>, ZodObject< {
|
|
3503
|
+
data: ZodDiscriminatedUnion<[ZodObject< {
|
|
3504
|
+
kind: ZodLiteral<"unscheduled">;
|
|
3505
|
+
history: ZodObject< {
|
|
3506
|
+
hasCheckins: ZodBoolean;
|
|
3507
|
+
unseenReplies: ZodNumber;
|
|
3508
|
+
}, $strip>;
|
|
3509
|
+
}, $strip>, ZodObject< {
|
|
3510
|
+
kind: ZodLiteral<"preview">;
|
|
3511
|
+
template: ZodNullable<ZodObject< {
|
|
3512
|
+
id: ZodGUID;
|
|
3513
|
+
name: ZodString;
|
|
3514
|
+
}, $strip>>;
|
|
3515
|
+
questions: ZodArray<ZodObject< {
|
|
3516
|
+
id: ZodGUID;
|
|
3517
|
+
order: ZodNumber;
|
|
3518
|
+
prompt: ZodString;
|
|
3519
|
+
helpText: ZodNullable<ZodString>;
|
|
3520
|
+
required: ZodBoolean;
|
|
3521
|
+
config: ZodDiscriminatedUnion<[ZodObject< {
|
|
3522
|
+
type: ZodLiteral<"scale">;
|
|
3229
3523
|
min: ZodLiteral<1>;
|
|
3230
3524
|
max: ZodUnion<readonly [ZodLiteral<5>, ZodLiteral<10>]>;
|
|
3231
3525
|
lowLabel: ZodOptional<ZodString>;
|
|
@@ -3235,10 +3529,17 @@ declare const publicRouter: {
|
|
|
3235
3529
|
unit: ZodOptional<ZodString>;
|
|
3236
3530
|
min: ZodOptional<ZodNumber>;
|
|
3237
3531
|
max: ZodOptional<ZodNumber>;
|
|
3532
|
+
flag: ZodOptional<ZodObject< {
|
|
3533
|
+
above: ZodOptional<ZodNumber>;
|
|
3534
|
+
below: ZodOptional<ZodNumber>;
|
|
3535
|
+
}, $strip>>;
|
|
3238
3536
|
}, $strip>, ZodObject< {
|
|
3239
3537
|
type: ZodLiteral<"text">;
|
|
3240
3538
|
multiline: ZodBoolean;
|
|
3241
3539
|
maxLength: ZodNumber;
|
|
3540
|
+
flag: ZodOptional<ZodObject< {
|
|
3541
|
+
when: ZodLiteral<"any_answer">;
|
|
3542
|
+
}, $strip>>;
|
|
3242
3543
|
}, $strip>, ZodObject< {
|
|
3243
3544
|
type: ZodLiteral<"bodyweight">;
|
|
3244
3545
|
}, $strip>, ZodObject< {
|
|
@@ -3246,6 +3547,12 @@ declare const publicRouter: {
|
|
|
3246
3547
|
maxPhotos: ZodNumber;
|
|
3247
3548
|
}, $strip>, ZodObject< {
|
|
3248
3549
|
type: ZodLiteral<"yes_no">;
|
|
3550
|
+
flag: ZodOptional<ZodObject< {
|
|
3551
|
+
when: ZodEnum< {
|
|
3552
|
+
yes: "yes";
|
|
3553
|
+
no: "no";
|
|
3554
|
+
}>;
|
|
3555
|
+
}, $strip>>;
|
|
3249
3556
|
}, $strip>], "type">;
|
|
3250
3557
|
}, $strip>>;
|
|
3251
3558
|
}, $strip>, ZodObject< {
|
|
@@ -3342,10 +3649,17 @@ declare const publicRouter: {
|
|
|
3342
3649
|
unit: ZodOptional<ZodString>;
|
|
3343
3650
|
min: ZodOptional<ZodNumber>;
|
|
3344
3651
|
max: ZodOptional<ZodNumber>;
|
|
3652
|
+
flag: ZodOptional<ZodObject< {
|
|
3653
|
+
above: ZodOptional<ZodNumber>;
|
|
3654
|
+
below: ZodOptional<ZodNumber>;
|
|
3655
|
+
}, $strip>>;
|
|
3345
3656
|
}, $strip>, ZodObject< {
|
|
3346
3657
|
type: ZodLiteral<"text">;
|
|
3347
3658
|
multiline: ZodBoolean;
|
|
3348
3659
|
maxLength: ZodNumber;
|
|
3660
|
+
flag: ZodOptional<ZodObject< {
|
|
3661
|
+
when: ZodLiteral<"any_answer">;
|
|
3662
|
+
}, $strip>>;
|
|
3349
3663
|
}, $strip>, ZodObject< {
|
|
3350
3664
|
type: ZodLiteral<"bodyweight">;
|
|
3351
3665
|
}, $strip>, ZodObject< {
|
|
@@ -3353,6 +3667,12 @@ declare const publicRouter: {
|
|
|
3353
3667
|
maxPhotos: ZodNumber;
|
|
3354
3668
|
}, $strip>, ZodObject< {
|
|
3355
3669
|
type: ZodLiteral<"yes_no">;
|
|
3670
|
+
flag: ZodOptional<ZodObject< {
|
|
3671
|
+
when: ZodEnum< {
|
|
3672
|
+
yes: "yes";
|
|
3673
|
+
no: "no";
|
|
3674
|
+
}>;
|
|
3675
|
+
}, $strip>>;
|
|
3356
3676
|
}, $strip>], "type">;
|
|
3357
3677
|
}, $strip>>;
|
|
3358
3678
|
submission: ZodNullable<ZodObject< {
|
|
@@ -3410,6 +3730,10 @@ declare const publicRouter: {
|
|
|
3410
3730
|
unit: ZodOptional<ZodString>;
|
|
3411
3731
|
min: ZodOptional<ZodNumber>;
|
|
3412
3732
|
max: ZodOptional<ZodNumber>;
|
|
3733
|
+
flag: ZodOptional<ZodObject< {
|
|
3734
|
+
above: ZodOptional<ZodNumber>;
|
|
3735
|
+
below: ZodOptional<ZodNumber>;
|
|
3736
|
+
}, $strip>>;
|
|
3413
3737
|
}, $strip>;
|
|
3414
3738
|
value: ZodNumber;
|
|
3415
3739
|
questionId: ZodGUID;
|
|
@@ -3421,6 +3745,9 @@ declare const publicRouter: {
|
|
|
3421
3745
|
type: ZodLiteral<"text">;
|
|
3422
3746
|
multiline: ZodBoolean;
|
|
3423
3747
|
maxLength: ZodNumber;
|
|
3748
|
+
flag: ZodOptional<ZodObject< {
|
|
3749
|
+
when: ZodLiteral<"any_answer">;
|
|
3750
|
+
}, $strip>>;
|
|
3424
3751
|
}, $strip>;
|
|
3425
3752
|
value: ZodString;
|
|
3426
3753
|
questionId: ZodGUID;
|
|
@@ -3447,6 +3774,7 @@ declare const publicRouter: {
|
|
|
3447
3774
|
width: ZodNumber;
|
|
3448
3775
|
height: ZodNumber;
|
|
3449
3776
|
}, $strip>>;
|
|
3777
|
+
deletedCount: ZodOptional<ZodNumber>;
|
|
3450
3778
|
questionId: ZodGUID;
|
|
3451
3779
|
order: ZodNumber;
|
|
3452
3780
|
prompt: ZodString;
|
|
@@ -3454,6 +3782,12 @@ declare const publicRouter: {
|
|
|
3454
3782
|
type: ZodLiteral<"yes_no">;
|
|
3455
3783
|
config: ZodObject< {
|
|
3456
3784
|
type: ZodLiteral<"yes_no">;
|
|
3785
|
+
flag: ZodOptional<ZodObject< {
|
|
3786
|
+
when: ZodEnum< {
|
|
3787
|
+
yes: "yes";
|
|
3788
|
+
no: "no";
|
|
3789
|
+
}>;
|
|
3790
|
+
}, $strip>>;
|
|
3457
3791
|
}, $strip>;
|
|
3458
3792
|
value: ZodBoolean;
|
|
3459
3793
|
questionId: ZodGUID;
|
|
@@ -3469,15 +3803,7 @@ declare const publicRouter: {
|
|
|
3469
3803
|
closesAt: ZodISODateTime;
|
|
3470
3804
|
}, $strip>], "kind">;
|
|
3471
3805
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
3472
|
-
list: DecoratedProcedure<MergedInitialContext< {
|
|
3473
|
-
headers: Headers;
|
|
3474
|
-
} & Record<never, never>, {
|
|
3475
|
-
headers: Headers;
|
|
3476
|
-
} & Record<never, never>, {
|
|
3477
|
-
headers: Headers;
|
|
3478
|
-
}>, MergedCurrentContext< {
|
|
3479
|
-
headers: Headers;
|
|
3480
|
-
}, ApiKeyContext>, ZodObject< {
|
|
3806
|
+
list: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
3481
3807
|
cursor: ZodOptional<ZodISODate>;
|
|
3482
3808
|
limit: ZodDefault<ZodNumber>;
|
|
3483
3809
|
}, $strip>, ZodObject< {
|
|
@@ -3532,15 +3858,7 @@ declare const publicRouter: {
|
|
|
3532
3858
|
limit: ZodNumber;
|
|
3533
3859
|
}, $strip>;
|
|
3534
3860
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
3535
|
-
get: DecoratedProcedure<MergedInitialContext< {
|
|
3536
|
-
headers: Headers;
|
|
3537
|
-
} & Record<never, never>, {
|
|
3538
|
-
headers: Headers;
|
|
3539
|
-
} & Record<never, never>, {
|
|
3540
|
-
headers: Headers;
|
|
3541
|
-
}>, MergedCurrentContext< {
|
|
3542
|
-
headers: Headers;
|
|
3543
|
-
}, ApiKeyContext>, ZodObject< {
|
|
3861
|
+
get: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
3544
3862
|
id: ZodString;
|
|
3545
3863
|
}, $strip>, ZodObject< {
|
|
3546
3864
|
data: ZodObject< {
|
|
@@ -3598,6 +3916,10 @@ declare const publicRouter: {
|
|
|
3598
3916
|
unit: ZodOptional<ZodString>;
|
|
3599
3917
|
min: ZodOptional<ZodNumber>;
|
|
3600
3918
|
max: ZodOptional<ZodNumber>;
|
|
3919
|
+
flag: ZodOptional<ZodObject< {
|
|
3920
|
+
above: ZodOptional<ZodNumber>;
|
|
3921
|
+
below: ZodOptional<ZodNumber>;
|
|
3922
|
+
}, $strip>>;
|
|
3601
3923
|
}, $strip>;
|
|
3602
3924
|
value: ZodNumber;
|
|
3603
3925
|
questionId: ZodGUID;
|
|
@@ -3609,6 +3931,9 @@ declare const publicRouter: {
|
|
|
3609
3931
|
type: ZodLiteral<"text">;
|
|
3610
3932
|
multiline: ZodBoolean;
|
|
3611
3933
|
maxLength: ZodNumber;
|
|
3934
|
+
flag: ZodOptional<ZodObject< {
|
|
3935
|
+
when: ZodLiteral<"any_answer">;
|
|
3936
|
+
}, $strip>>;
|
|
3612
3937
|
}, $strip>;
|
|
3613
3938
|
value: ZodString;
|
|
3614
3939
|
questionId: ZodGUID;
|
|
@@ -3635,6 +3960,7 @@ declare const publicRouter: {
|
|
|
3635
3960
|
width: ZodNumber;
|
|
3636
3961
|
height: ZodNumber;
|
|
3637
3962
|
}, $strip>>;
|
|
3963
|
+
deletedCount: ZodOptional<ZodNumber>;
|
|
3638
3964
|
questionId: ZodGUID;
|
|
3639
3965
|
order: ZodNumber;
|
|
3640
3966
|
prompt: ZodString;
|
|
@@ -3642,6 +3968,12 @@ declare const publicRouter: {
|
|
|
3642
3968
|
type: ZodLiteral<"yes_no">;
|
|
3643
3969
|
config: ZodObject< {
|
|
3644
3970
|
type: ZodLiteral<"yes_no">;
|
|
3971
|
+
flag: ZodOptional<ZodObject< {
|
|
3972
|
+
when: ZodEnum< {
|
|
3973
|
+
yes: "yes";
|
|
3974
|
+
no: "no";
|
|
3975
|
+
}>;
|
|
3976
|
+
}, $strip>>;
|
|
3645
3977
|
}, $strip>;
|
|
3646
3978
|
value: ZodBoolean;
|
|
3647
3979
|
questionId: ZodGUID;
|
|
@@ -3665,10 +3997,17 @@ declare const publicRouter: {
|
|
|
3665
3997
|
unit: ZodOptional<ZodString>;
|
|
3666
3998
|
min: ZodOptional<ZodNumber>;
|
|
3667
3999
|
max: ZodOptional<ZodNumber>;
|
|
4000
|
+
flag: ZodOptional<ZodObject< {
|
|
4001
|
+
above: ZodOptional<ZodNumber>;
|
|
4002
|
+
below: ZodOptional<ZodNumber>;
|
|
4003
|
+
}, $strip>>;
|
|
3668
4004
|
}, $strip>, ZodObject< {
|
|
3669
4005
|
type: ZodLiteral<"text">;
|
|
3670
4006
|
multiline: ZodBoolean;
|
|
3671
4007
|
maxLength: ZodNumber;
|
|
4008
|
+
flag: ZodOptional<ZodObject< {
|
|
4009
|
+
when: ZodLiteral<"any_answer">;
|
|
4010
|
+
}, $strip>>;
|
|
3672
4011
|
}, $strip>, ZodObject< {
|
|
3673
4012
|
type: ZodLiteral<"bodyweight">;
|
|
3674
4013
|
}, $strip>, ZodObject< {
|
|
@@ -3676,19 +4015,17 @@ declare const publicRouter: {
|
|
|
3676
4015
|
maxPhotos: ZodNumber;
|
|
3677
4016
|
}, $strip>, ZodObject< {
|
|
3678
4017
|
type: ZodLiteral<"yes_no">;
|
|
4018
|
+
flag: ZodOptional<ZodObject< {
|
|
4019
|
+
when: ZodEnum< {
|
|
4020
|
+
yes: "yes";
|
|
4021
|
+
no: "no";
|
|
4022
|
+
}>;
|
|
4023
|
+
}, $strip>>;
|
|
3679
4024
|
}, $strip>], "type">;
|
|
3680
4025
|
}, $strip>>>;
|
|
3681
4026
|
}, $strip>;
|
|
3682
4027
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
3683
|
-
submit: DecoratedProcedure<MergedInitialContext< {
|
|
3684
|
-
headers: Headers;
|
|
3685
|
-
} & Record<never, never>, {
|
|
3686
|
-
headers: Headers;
|
|
3687
|
-
} & Record<never, never>, {
|
|
3688
|
-
headers: Headers;
|
|
3689
|
-
}>, MergedCurrentContext< {
|
|
3690
|
-
headers: Headers;
|
|
3691
|
-
}, ApiKeyContext>, ZodObject< {
|
|
4028
|
+
submit: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
3692
4029
|
periodStart: ZodISODate;
|
|
3693
4030
|
answers: ZodArray<ZodDiscriminatedUnion<[ZodObject< {
|
|
3694
4031
|
type: ZodLiteral<"scale">;
|
|
@@ -3775,6 +4112,10 @@ declare const publicRouter: {
|
|
|
3775
4112
|
unit: ZodOptional<ZodString>;
|
|
3776
4113
|
min: ZodOptional<ZodNumber>;
|
|
3777
4114
|
max: ZodOptional<ZodNumber>;
|
|
4115
|
+
flag: ZodOptional<ZodObject< {
|
|
4116
|
+
above: ZodOptional<ZodNumber>;
|
|
4117
|
+
below: ZodOptional<ZodNumber>;
|
|
4118
|
+
}, $strip>>;
|
|
3778
4119
|
}, $strip>;
|
|
3779
4120
|
value: ZodNumber;
|
|
3780
4121
|
questionId: ZodGUID;
|
|
@@ -3786,6 +4127,9 @@ declare const publicRouter: {
|
|
|
3786
4127
|
type: ZodLiteral<"text">;
|
|
3787
4128
|
multiline: ZodBoolean;
|
|
3788
4129
|
maxLength: ZodNumber;
|
|
4130
|
+
flag: ZodOptional<ZodObject< {
|
|
4131
|
+
when: ZodLiteral<"any_answer">;
|
|
4132
|
+
}, $strip>>;
|
|
3789
4133
|
}, $strip>;
|
|
3790
4134
|
value: ZodString;
|
|
3791
4135
|
questionId: ZodGUID;
|
|
@@ -3812,6 +4156,7 @@ declare const publicRouter: {
|
|
|
3812
4156
|
width: ZodNumber;
|
|
3813
4157
|
height: ZodNumber;
|
|
3814
4158
|
}, $strip>>;
|
|
4159
|
+
deletedCount: ZodOptional<ZodNumber>;
|
|
3815
4160
|
questionId: ZodGUID;
|
|
3816
4161
|
order: ZodNumber;
|
|
3817
4162
|
prompt: ZodString;
|
|
@@ -3819,6 +4164,12 @@ declare const publicRouter: {
|
|
|
3819
4164
|
type: ZodLiteral<"yes_no">;
|
|
3820
4165
|
config: ZodObject< {
|
|
3821
4166
|
type: ZodLiteral<"yes_no">;
|
|
4167
|
+
flag: ZodOptional<ZodObject< {
|
|
4168
|
+
when: ZodEnum< {
|
|
4169
|
+
yes: "yes";
|
|
4170
|
+
no: "no";
|
|
4171
|
+
}>;
|
|
4172
|
+
}, $strip>>;
|
|
3822
4173
|
}, $strip>;
|
|
3823
4174
|
value: ZodBoolean;
|
|
3824
4175
|
questionId: ZodGUID;
|
|
@@ -3842,10 +4193,17 @@ declare const publicRouter: {
|
|
|
3842
4193
|
unit: ZodOptional<ZodString>;
|
|
3843
4194
|
min: ZodOptional<ZodNumber>;
|
|
3844
4195
|
max: ZodOptional<ZodNumber>;
|
|
4196
|
+
flag: ZodOptional<ZodObject< {
|
|
4197
|
+
above: ZodOptional<ZodNumber>;
|
|
4198
|
+
below: ZodOptional<ZodNumber>;
|
|
4199
|
+
}, $strip>>;
|
|
3845
4200
|
}, $strip>, ZodObject< {
|
|
3846
4201
|
type: ZodLiteral<"text">;
|
|
3847
4202
|
multiline: ZodBoolean;
|
|
3848
4203
|
maxLength: ZodNumber;
|
|
4204
|
+
flag: ZodOptional<ZodObject< {
|
|
4205
|
+
when: ZodLiteral<"any_answer">;
|
|
4206
|
+
}, $strip>>;
|
|
3849
4207
|
}, $strip>, ZodObject< {
|
|
3850
4208
|
type: ZodLiteral<"bodyweight">;
|
|
3851
4209
|
}, $strip>, ZodObject< {
|
|
@@ -3853,19 +4211,17 @@ declare const publicRouter: {
|
|
|
3853
4211
|
maxPhotos: ZodNumber;
|
|
3854
4212
|
}, $strip>, ZodObject< {
|
|
3855
4213
|
type: ZodLiteral<"yes_no">;
|
|
4214
|
+
flag: ZodOptional<ZodObject< {
|
|
4215
|
+
when: ZodEnum< {
|
|
4216
|
+
yes: "yes";
|
|
4217
|
+
no: "no";
|
|
4218
|
+
}>;
|
|
4219
|
+
}, $strip>>;
|
|
3856
4220
|
}, $strip>], "type">;
|
|
3857
4221
|
}, $strip>>>;
|
|
3858
4222
|
}, $strip>;
|
|
3859
4223
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
3860
|
-
update: DecoratedProcedure<MergedInitialContext< {
|
|
3861
|
-
headers: Headers;
|
|
3862
|
-
} & Record<never, never>, {
|
|
3863
|
-
headers: Headers;
|
|
3864
|
-
} & Record<never, never>, {
|
|
3865
|
-
headers: Headers;
|
|
3866
|
-
}>, MergedCurrentContext< {
|
|
3867
|
-
headers: Headers;
|
|
3868
|
-
}, ApiKeyContext>, ZodObject< {
|
|
4224
|
+
update: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
3869
4225
|
id: ZodString;
|
|
3870
4226
|
answers: ZodArray<ZodDiscriminatedUnion<[ZodObject< {
|
|
3871
4227
|
type: ZodLiteral<"scale">;
|
|
@@ -3952,6 +4308,10 @@ declare const publicRouter: {
|
|
|
3952
4308
|
unit: ZodOptional<ZodString>;
|
|
3953
4309
|
min: ZodOptional<ZodNumber>;
|
|
3954
4310
|
max: ZodOptional<ZodNumber>;
|
|
4311
|
+
flag: ZodOptional<ZodObject< {
|
|
4312
|
+
above: ZodOptional<ZodNumber>;
|
|
4313
|
+
below: ZodOptional<ZodNumber>;
|
|
4314
|
+
}, $strip>>;
|
|
3955
4315
|
}, $strip>;
|
|
3956
4316
|
value: ZodNumber;
|
|
3957
4317
|
questionId: ZodGUID;
|
|
@@ -3963,6 +4323,9 @@ declare const publicRouter: {
|
|
|
3963
4323
|
type: ZodLiteral<"text">;
|
|
3964
4324
|
multiline: ZodBoolean;
|
|
3965
4325
|
maxLength: ZodNumber;
|
|
4326
|
+
flag: ZodOptional<ZodObject< {
|
|
4327
|
+
when: ZodLiteral<"any_answer">;
|
|
4328
|
+
}, $strip>>;
|
|
3966
4329
|
}, $strip>;
|
|
3967
4330
|
value: ZodString;
|
|
3968
4331
|
questionId: ZodGUID;
|
|
@@ -3989,6 +4352,7 @@ declare const publicRouter: {
|
|
|
3989
4352
|
width: ZodNumber;
|
|
3990
4353
|
height: ZodNumber;
|
|
3991
4354
|
}, $strip>>;
|
|
4355
|
+
deletedCount: ZodOptional<ZodNumber>;
|
|
3992
4356
|
questionId: ZodGUID;
|
|
3993
4357
|
order: ZodNumber;
|
|
3994
4358
|
prompt: ZodString;
|
|
@@ -3996,6 +4360,12 @@ declare const publicRouter: {
|
|
|
3996
4360
|
type: ZodLiteral<"yes_no">;
|
|
3997
4361
|
config: ZodObject< {
|
|
3998
4362
|
type: ZodLiteral<"yes_no">;
|
|
4363
|
+
flag: ZodOptional<ZodObject< {
|
|
4364
|
+
when: ZodEnum< {
|
|
4365
|
+
yes: "yes";
|
|
4366
|
+
no: "no";
|
|
4367
|
+
}>;
|
|
4368
|
+
}, $strip>>;
|
|
3999
4369
|
}, $strip>;
|
|
4000
4370
|
value: ZodBoolean;
|
|
4001
4371
|
questionId: ZodGUID;
|
|
@@ -4019,10 +4389,17 @@ declare const publicRouter: {
|
|
|
4019
4389
|
unit: ZodOptional<ZodString>;
|
|
4020
4390
|
min: ZodOptional<ZodNumber>;
|
|
4021
4391
|
max: ZodOptional<ZodNumber>;
|
|
4392
|
+
flag: ZodOptional<ZodObject< {
|
|
4393
|
+
above: ZodOptional<ZodNumber>;
|
|
4394
|
+
below: ZodOptional<ZodNumber>;
|
|
4395
|
+
}, $strip>>;
|
|
4022
4396
|
}, $strip>, ZodObject< {
|
|
4023
4397
|
type: ZodLiteral<"text">;
|
|
4024
4398
|
multiline: ZodBoolean;
|
|
4025
4399
|
maxLength: ZodNumber;
|
|
4400
|
+
flag: ZodOptional<ZodObject< {
|
|
4401
|
+
when: ZodLiteral<"any_answer">;
|
|
4402
|
+
}, $strip>>;
|
|
4026
4403
|
}, $strip>, ZodObject< {
|
|
4027
4404
|
type: ZodLiteral<"bodyweight">;
|
|
4028
4405
|
}, $strip>, ZodObject< {
|
|
@@ -4030,19 +4407,17 @@ declare const publicRouter: {
|
|
|
4030
4407
|
maxPhotos: ZodNumber;
|
|
4031
4408
|
}, $strip>, ZodObject< {
|
|
4032
4409
|
type: ZodLiteral<"yes_no">;
|
|
4410
|
+
flag: ZodOptional<ZodObject< {
|
|
4411
|
+
when: ZodEnum< {
|
|
4412
|
+
yes: "yes";
|
|
4413
|
+
no: "no";
|
|
4414
|
+
}>;
|
|
4415
|
+
}, $strip>>;
|
|
4033
4416
|
}, $strip>], "type">;
|
|
4034
4417
|
}, $strip>>>;
|
|
4035
4418
|
}, $strip>;
|
|
4036
4419
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
4037
|
-
markReplySeen: DecoratedProcedure<MergedInitialContext< {
|
|
4038
|
-
headers: Headers;
|
|
4039
|
-
} & Record<never, never>, {
|
|
4040
|
-
headers: Headers;
|
|
4041
|
-
} & Record<never, never>, {
|
|
4042
|
-
headers: Headers;
|
|
4043
|
-
}>, MergedCurrentContext< {
|
|
4044
|
-
headers: Headers;
|
|
4045
|
-
}, ApiKeyContext>, ZodObject< {
|
|
4420
|
+
markReplySeen: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
4046
4421
|
id: ZodString;
|
|
4047
4422
|
}, $strip>, ZodObject< {
|
|
4048
4423
|
data: ZodObject< {
|
|
@@ -4050,15 +4425,7 @@ declare const publicRouter: {
|
|
|
4050
4425
|
seenAt: ZodNullable<ZodString>;
|
|
4051
4426
|
}, $strip>;
|
|
4052
4427
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
4053
|
-
requestPhotoUpload: DecoratedProcedure<MergedInitialContext< {
|
|
4054
|
-
headers: Headers;
|
|
4055
|
-
} & Record<never, never>, {
|
|
4056
|
-
headers: Headers;
|
|
4057
|
-
} & Record<never, never>, {
|
|
4058
|
-
headers: Headers;
|
|
4059
|
-
}>, MergedCurrentContext< {
|
|
4060
|
-
headers: Headers;
|
|
4061
|
-
}, ApiKeyContext>, ZodObject< {
|
|
4428
|
+
requestPhotoUpload: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
4062
4429
|
contentType: ZodEnum< {
|
|
4063
4430
|
"image/webp": "image/webp";
|
|
4064
4431
|
"image/jpeg": "image/jpeg";
|
|
@@ -4075,15 +4442,7 @@ declare const publicRouter: {
|
|
|
4075
4442
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
4076
4443
|
};
|
|
4077
4444
|
message: {
|
|
4078
|
-
list: DecoratedProcedure<MergedInitialContext< {
|
|
4079
|
-
headers: Headers;
|
|
4080
|
-
} & Record<never, never>, {
|
|
4081
|
-
headers: Headers;
|
|
4082
|
-
} & Record<never, never>, {
|
|
4083
|
-
headers: Headers;
|
|
4084
|
-
}>, MergedCurrentContext< {
|
|
4085
|
-
headers: Headers;
|
|
4086
|
-
}, ApiKeyContext>, ZodObject< {
|
|
4445
|
+
list: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
4087
4446
|
before: ZodOptional<ZodString>;
|
|
4088
4447
|
limit: ZodDefault<ZodNumber>;
|
|
4089
4448
|
}, $strip>, ZodObject< {
|
|
@@ -4161,15 +4520,7 @@ declare const publicRouter: {
|
|
|
4161
4520
|
kind: ZodLiteral<"upgrade_required">;
|
|
4162
4521
|
}, $strip>], "kind">;
|
|
4163
4522
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
4164
|
-
send: DecoratedProcedure<MergedInitialContext< {
|
|
4165
|
-
headers: Headers;
|
|
4166
|
-
} & Record<never, never>, {
|
|
4167
|
-
headers: Headers;
|
|
4168
|
-
} & Record<never, never>, {
|
|
4169
|
-
headers: Headers;
|
|
4170
|
-
}>, MergedCurrentContext< {
|
|
4171
|
-
headers: Headers;
|
|
4172
|
-
}, ApiKeyContext>, ZodObject< {
|
|
4523
|
+
send: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
4173
4524
|
body: ZodString;
|
|
4174
4525
|
clientRequestId: ZodString;
|
|
4175
4526
|
attachmentUploadIds: ZodDefault<ZodArray<ZodString>>;
|
|
@@ -4241,15 +4592,7 @@ declare const publicRouter: {
|
|
|
4241
4592
|
deletedAt: ZodString;
|
|
4242
4593
|
}, $strip>], "status">;
|
|
4243
4594
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
4244
|
-
requestAttachmentUpload: DecoratedProcedure<MergedInitialContext< {
|
|
4245
|
-
headers: Headers;
|
|
4246
|
-
} & Record<never, never>, {
|
|
4247
|
-
headers: Headers;
|
|
4248
|
-
} & Record<never, never>, {
|
|
4249
|
-
headers: Headers;
|
|
4250
|
-
}>, MergedCurrentContext< {
|
|
4251
|
-
headers: Headers;
|
|
4252
|
-
}, ApiKeyContext>, ZodObject< {
|
|
4595
|
+
requestAttachmentUpload: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
4253
4596
|
contentType: ZodEnum< {
|
|
4254
4597
|
"image/webp": "image/webp";
|
|
4255
4598
|
"image/jpeg": "image/jpeg";
|
|
@@ -4264,30 +4607,14 @@ declare const publicRouter: {
|
|
|
4264
4607
|
uploadUrl: ZodString;
|
|
4265
4608
|
}, $strip>;
|
|
4266
4609
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
4267
|
-
markRead: DecoratedProcedure<MergedInitialContext< {
|
|
4268
|
-
headers: Headers;
|
|
4269
|
-
} & Record<never, never>, {
|
|
4270
|
-
headers: Headers;
|
|
4271
|
-
} & Record<never, never>, {
|
|
4272
|
-
headers: Headers;
|
|
4273
|
-
}>, MergedCurrentContext< {
|
|
4274
|
-
headers: Headers;
|
|
4275
|
-
}, ApiKeyContext>, ZodObject< {
|
|
4610
|
+
markRead: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
4276
4611
|
upTo: ZodOptional<ZodString>;
|
|
4277
4612
|
}, $strip>, ZodObject< {
|
|
4278
4613
|
data: ZodObject< {
|
|
4279
4614
|
lastReadAt: ZodNullable<ZodISODateTime>;
|
|
4280
4615
|
}, $strip>;
|
|
4281
4616
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
4282
|
-
delete: DecoratedProcedure<MergedInitialContext< {
|
|
4283
|
-
headers: Headers;
|
|
4284
|
-
} & Record<never, never>, {
|
|
4285
|
-
headers: Headers;
|
|
4286
|
-
} & Record<never, never>, {
|
|
4287
|
-
headers: Headers;
|
|
4288
|
-
}>, MergedCurrentContext< {
|
|
4289
|
-
headers: Headers;
|
|
4290
|
-
}, ApiKeyContext>, ZodObject< {
|
|
4617
|
+
delete: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
4291
4618
|
id: ZodString;
|
|
4292
4619
|
}, $strip>, ZodObject< {
|
|
4293
4620
|
data: ZodDiscriminatedUnion<[ZodObject< {
|
|
@@ -4350,28 +4677,12 @@ declare const publicRouter: {
|
|
|
4350
4677
|
deletedAt: ZodString;
|
|
4351
4678
|
}, $strip>], "status">;
|
|
4352
4679
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
4353
|
-
unreadCount: DecoratedProcedure<MergedInitialContext< {
|
|
4354
|
-
headers: Headers;
|
|
4355
|
-
} & Record<never, never>, {
|
|
4356
|
-
headers: Headers;
|
|
4357
|
-
} & Record<never, never>, {
|
|
4358
|
-
headers: Headers;
|
|
4359
|
-
}>, MergedCurrentContext< {
|
|
4360
|
-
headers: Headers;
|
|
4361
|
-
}, ApiKeyContext>, ZodObject< {}, $strip>, ZodObject< {
|
|
4680
|
+
unreadCount: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {}, $strip>, ZodObject< {
|
|
4362
4681
|
data: ZodObject< {
|
|
4363
4682
|
unread: ZodNumber;
|
|
4364
4683
|
}, $strip>;
|
|
4365
4684
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
4366
|
-
realtimeToken: DecoratedProcedure<MergedInitialContext< {
|
|
4367
|
-
headers: Headers;
|
|
4368
|
-
} & Record<never, never>, {
|
|
4369
|
-
headers: Headers;
|
|
4370
|
-
} & Record<never, never>, {
|
|
4371
|
-
headers: Headers;
|
|
4372
|
-
}>, MergedCurrentContext< {
|
|
4373
|
-
headers: Headers;
|
|
4374
|
-
}, ApiKeyContext>, ZodObject< {}, $strip>, ZodObject< {
|
|
4685
|
+
realtimeToken: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {}, $strip>, ZodObject< {
|
|
4375
4686
|
data: ZodObject< {
|
|
4376
4687
|
token: ZodString;
|
|
4377
4688
|
expiresAt: ZodISODateTime;
|
|
@@ -4379,16 +4690,1076 @@ declare const publicRouter: {
|
|
|
4379
4690
|
}, $strip>;
|
|
4380
4691
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
4381
4692
|
};
|
|
4693
|
+
timeline: {
|
|
4694
|
+
list: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
4695
|
+
cursor: ZodOptional<ZodString>;
|
|
4696
|
+
limit: ZodDefault<ZodCoercedNumber<unknown>>;
|
|
4697
|
+
groups: ZodOptional<ZodPipe<ZodPipe<ZodUnion<readonly [ZodArray<ZodString>, ZodString]>, ZodTransform<string[], string | string[]>>, ZodArray<ZodEnum< {
|
|
4698
|
+
billing: "billing";
|
|
4699
|
+
programs: "programs";
|
|
4700
|
+
body: "body";
|
|
4701
|
+
checkins: "checkins";
|
|
4702
|
+
sessions: "sessions";
|
|
4703
|
+
goals_notes: "goals_notes";
|
|
4704
|
+
}>>>>;
|
|
4705
|
+
}, $strip>, ZodObject< {
|
|
4706
|
+
data: ZodArray<ZodObject< {
|
|
4707
|
+
id: ZodGUID;
|
|
4708
|
+
occurredAt: ZodString;
|
|
4709
|
+
group: ZodEnum< {
|
|
4710
|
+
billing: "billing";
|
|
4711
|
+
programs: "programs";
|
|
4712
|
+
body: "body";
|
|
4713
|
+
checkins: "checkins";
|
|
4714
|
+
sessions: "sessions";
|
|
4715
|
+
goals_notes: "goals_notes";
|
|
4716
|
+
}>;
|
|
4717
|
+
actor: ZodDiscriminatedUnion<[ZodObject< {
|
|
4718
|
+
kind: ZodLiteral<"staff">;
|
|
4719
|
+
name: ZodString;
|
|
4720
|
+
}, $strip>, ZodObject< {
|
|
4721
|
+
kind: ZodLiteral<"member">;
|
|
4722
|
+
}, $strip>, ZodObject< {
|
|
4723
|
+
kind: ZodLiteral<"system">;
|
|
4724
|
+
}, $strip>, ZodObject< {
|
|
4725
|
+
kind: ZodLiteral<"rule">;
|
|
4726
|
+
}, $strip>, ZodObject< {
|
|
4727
|
+
kind: ZodLiteral<"assistant">;
|
|
4728
|
+
}, $strip>], "kind">;
|
|
4729
|
+
payload: ZodDiscriminatedUnion<[ZodObject< {
|
|
4730
|
+
kind: ZodLiteral<"session_completed">;
|
|
4731
|
+
backfilled: ZodOptional<ZodLiteral<true>>;
|
|
4732
|
+
} & {
|
|
4733
|
+
sessionLogId: ZodGUID;
|
|
4734
|
+
title: ZodPipe<ZodString, ZodTransform<string, string>>;
|
|
4735
|
+
programTitle: ZodNullable<ZodPipe<ZodString, ZodTransform<string, string>>>;
|
|
4736
|
+
overallRpe: ZodNullable<ZodNumber>;
|
|
4737
|
+
setCount: ZodNumber;
|
|
4738
|
+
durationMinutes: ZodNullable<ZodNumber>;
|
|
4739
|
+
}, $strict>, ZodObject< {
|
|
4740
|
+
kind: ZodLiteral<"enrollment_started">;
|
|
4741
|
+
backfilled: ZodOptional<ZodLiteral<true>>;
|
|
4742
|
+
} & {
|
|
4743
|
+
source: ZodEnum< {
|
|
4744
|
+
trainer: "trainer";
|
|
4745
|
+
self: "self";
|
|
4746
|
+
}>;
|
|
4747
|
+
enrollmentId: ZodGUID;
|
|
4748
|
+
programId: ZodGUID;
|
|
4749
|
+
programTitle: ZodPipe<ZodString, ZodTransform<string, string>>;
|
|
4750
|
+
}, $strict>, ZodObject< {
|
|
4751
|
+
kind: ZodLiteral<"enrollment_completed">;
|
|
4752
|
+
backfilled: ZodOptional<ZodLiteral<true>>;
|
|
4753
|
+
} & {
|
|
4754
|
+
enrollmentId: ZodGUID;
|
|
4755
|
+
programId: ZodGUID;
|
|
4756
|
+
programTitle: ZodPipe<ZodString, ZodTransform<string, string>>;
|
|
4757
|
+
}, $strict>, ZodObject< {
|
|
4758
|
+
kind: ZodLiteral<"enrollment_removed">;
|
|
4759
|
+
backfilled: ZodOptional<ZodLiteral<true>>;
|
|
4760
|
+
} & {
|
|
4761
|
+
by: ZodEnum< {
|
|
4762
|
+
member: "member";
|
|
4763
|
+
staff: "staff";
|
|
4764
|
+
}>;
|
|
4765
|
+
enrollmentId: ZodGUID;
|
|
4766
|
+
programId: ZodGUID;
|
|
4767
|
+
programTitle: ZodPipe<ZodString, ZodTransform<string, string>>;
|
|
4768
|
+
}, $strict>, ZodObject< {
|
|
4769
|
+
kind: ZodLiteral<"body_metric_recorded">;
|
|
4770
|
+
backfilled: ZodOptional<ZodLiteral<true>>;
|
|
4771
|
+
} & {
|
|
4772
|
+
bodyMetricId: ZodGUID;
|
|
4773
|
+
weightKg: ZodNumber;
|
|
4774
|
+
bodyFatPct: ZodNullable<ZodNumber>;
|
|
4775
|
+
}, $strict>, ZodObject< {
|
|
4776
|
+
kind: ZodLiteral<"goal_created">;
|
|
4777
|
+
backfilled: ZodOptional<ZodLiteral<true>>;
|
|
4778
|
+
} & {
|
|
4779
|
+
goalId: ZodGUID;
|
|
4780
|
+
targetDate: ZodNullable<ZodISODate>;
|
|
4781
|
+
}, $strict>, ZodObject< {
|
|
4782
|
+
kind: ZodLiteral<"goal_completed">;
|
|
4783
|
+
backfilled: ZodOptional<ZodLiteral<true>>;
|
|
4784
|
+
} & {
|
|
4785
|
+
goalId: ZodGUID;
|
|
4786
|
+
}, $strict>, ZodObject< {
|
|
4787
|
+
kind: ZodLiteral<"goal_reopened">;
|
|
4788
|
+
backfilled: ZodOptional<ZodLiteral<true>>;
|
|
4789
|
+
} & {
|
|
4790
|
+
goalId: ZodGUID;
|
|
4791
|
+
}, $strict>, ZodObject< {
|
|
4792
|
+
kind: ZodLiteral<"goal_removed">;
|
|
4793
|
+
backfilled: ZodOptional<ZodLiteral<true>>;
|
|
4794
|
+
} & {
|
|
4795
|
+
goalId: ZodGUID;
|
|
4796
|
+
}, $strict>, ZodObject< {
|
|
4797
|
+
kind: ZodLiteral<"subscription_started">;
|
|
4798
|
+
backfilled: ZodOptional<ZodLiteral<true>>;
|
|
4799
|
+
} & {
|
|
4800
|
+
subscriptionId: ZodGUID;
|
|
4801
|
+
planId: ZodNullable<ZodGUID>;
|
|
4802
|
+
planName: ZodNullable<ZodPipe<ZodString, ZodTransform<string, string>>>;
|
|
4803
|
+
billingInterval: ZodNullable<ZodEnum< {
|
|
4804
|
+
monthly: "monthly";
|
|
4805
|
+
annual: "annual";
|
|
4806
|
+
}>>;
|
|
4807
|
+
}, $strict>, ZodObject< {
|
|
4808
|
+
kind: ZodLiteral<"subscription_status_changed">;
|
|
4809
|
+
backfilled: ZodOptional<ZodLiteral<true>>;
|
|
4810
|
+
} & {
|
|
4811
|
+
subscriptionId: ZodGUID;
|
|
4812
|
+
from: ZodEnum< {
|
|
4813
|
+
cancelled: "cancelled";
|
|
4814
|
+
active: "active";
|
|
4815
|
+
past_due: "past_due";
|
|
4816
|
+
}>;
|
|
4817
|
+
to: ZodEnum< {
|
|
4818
|
+
cancelled: "cancelled";
|
|
4819
|
+
active: "active";
|
|
4820
|
+
past_due: "past_due";
|
|
4821
|
+
}>;
|
|
4822
|
+
planName: ZodNullable<ZodPipe<ZodString, ZodTransform<string, string>>>;
|
|
4823
|
+
}, $strict>, ZodObject< {
|
|
4824
|
+
kind: ZodLiteral<"subscription_plan_changed">;
|
|
4825
|
+
backfilled: ZodOptional<ZodLiteral<true>>;
|
|
4826
|
+
} & {
|
|
4827
|
+
subscriptionId: ZodGUID;
|
|
4828
|
+
fromTierId: ZodNullable<ZodGUID>;
|
|
4829
|
+
toTierId: ZodGUID;
|
|
4830
|
+
fromTierName: ZodNullable<ZodPipe<ZodString, ZodTransform<string, string>>>;
|
|
4831
|
+
toTierName: ZodNullable<ZodPipe<ZodString, ZodTransform<string, string>>>;
|
|
4832
|
+
}, $strict>, ZodObject< {
|
|
4833
|
+
kind: ZodLiteral<"session_reviewed">;
|
|
4834
|
+
backfilled: ZodOptional<ZodLiteral<true>>;
|
|
4835
|
+
} & {
|
|
4836
|
+
sessionLogId: ZodGUID;
|
|
4837
|
+
}, $strict>, ZodObject< {
|
|
4838
|
+
kind: ZodLiteral<"session_commented">;
|
|
4839
|
+
backfilled: ZodOptional<ZodLiteral<true>>;
|
|
4840
|
+
} & {
|
|
4841
|
+
sessionLogId: ZodGUID;
|
|
4842
|
+
commentId: ZodGUID;
|
|
4843
|
+
}, $strict>, ZodObject< {
|
|
4844
|
+
kind: ZodLiteral<"checkin_submitted">;
|
|
4845
|
+
backfilled: ZodOptional<ZodLiteral<true>>;
|
|
4846
|
+
} & {
|
|
4847
|
+
checkinId: ZodGUID;
|
|
4848
|
+
periodStart: ZodISODate;
|
|
4849
|
+
}, $strict>, ZodObject< {
|
|
4850
|
+
kind: ZodLiteral<"checkin_reviewed">;
|
|
4851
|
+
backfilled: ZodOptional<ZodLiteral<true>>;
|
|
4852
|
+
} & {
|
|
4853
|
+
checkinId: ZodGUID;
|
|
4854
|
+
periodStart: ZodISODate;
|
|
4855
|
+
}, $strict>, ZodObject< {
|
|
4856
|
+
kind: ZodLiteral<"habit_assigned">;
|
|
4857
|
+
backfilled: ZodOptional<ZodLiteral<true>>;
|
|
4858
|
+
} & {
|
|
4859
|
+
from: ZodEnum< {
|
|
4860
|
+
custom: "custom";
|
|
4861
|
+
library: "library";
|
|
4862
|
+
}>;
|
|
4863
|
+
endDate: ZodNullable<ZodISODate>;
|
|
4864
|
+
memberHabitId: ZodGUID;
|
|
4865
|
+
name: ZodPipe<ZodString, ZodTransform<string, string>>;
|
|
4866
|
+
target: ZodDiscriminatedUnion<[ZodObject< {
|
|
4867
|
+
targetKind: ZodLiteral<"boolean">;
|
|
4868
|
+
}, $strict>, ZodObject< {
|
|
4869
|
+
targetKind: ZodLiteral<"numeric">;
|
|
4870
|
+
targetValue: ZodNumber;
|
|
4871
|
+
unit: ZodPipe<ZodString, ZodTransform<string, string>>;
|
|
4872
|
+
}, $strict>], "targetKind">;
|
|
4873
|
+
frequency: ZodDiscriminatedUnion<[ZodObject< {
|
|
4874
|
+
frequency: ZodLiteral<"daily">;
|
|
4875
|
+
}, $strict>, ZodObject< {
|
|
4876
|
+
frequency: ZodLiteral<"weekly">;
|
|
4877
|
+
timesPerWeek: ZodNumber;
|
|
4878
|
+
}, $strict>], "frequency">;
|
|
4879
|
+
startDate: ZodISODate;
|
|
4880
|
+
}, $strict>, ZodObject< {
|
|
4881
|
+
kind: ZodLiteral<"habit_ended">;
|
|
4882
|
+
backfilled: ZodOptional<ZodLiteral<true>>;
|
|
4883
|
+
} & {
|
|
4884
|
+
endDate: ZodISODate;
|
|
4885
|
+
memberHabitId: ZodGUID;
|
|
4886
|
+
name: ZodPipe<ZodString, ZodTransform<string, string>>;
|
|
4887
|
+
target: ZodDiscriminatedUnion<[ZodObject< {
|
|
4888
|
+
targetKind: ZodLiteral<"boolean">;
|
|
4889
|
+
}, $strict>, ZodObject< {
|
|
4890
|
+
targetKind: ZodLiteral<"numeric">;
|
|
4891
|
+
targetValue: ZodNumber;
|
|
4892
|
+
unit: ZodPipe<ZodString, ZodTransform<string, string>>;
|
|
4893
|
+
}, $strict>], "targetKind">;
|
|
4894
|
+
frequency: ZodDiscriminatedUnion<[ZodObject< {
|
|
4895
|
+
frequency: ZodLiteral<"daily">;
|
|
4896
|
+
}, $strict>, ZodObject< {
|
|
4897
|
+
frequency: ZodLiteral<"weekly">;
|
|
4898
|
+
timesPerWeek: ZodNumber;
|
|
4899
|
+
}, $strict>], "frequency">;
|
|
4900
|
+
startDate: ZodISODate;
|
|
4901
|
+
}, $strict>, ZodObject< {
|
|
4902
|
+
kind: ZodLiteral<"program_adjusted">;
|
|
4903
|
+
backfilled: ZodOptional<ZodLiteral<true>>;
|
|
4904
|
+
} & {
|
|
4905
|
+
change: ZodEnum< {
|
|
4906
|
+
removed: "removed";
|
|
4907
|
+
saved: "saved";
|
|
4908
|
+
}>;
|
|
4909
|
+
action: ZodEnum< {
|
|
4910
|
+
modify: "modify";
|
|
4911
|
+
swap: "swap";
|
|
4912
|
+
skip: "skip";
|
|
4913
|
+
add: "add";
|
|
4914
|
+
}>;
|
|
4915
|
+
scope: ZodEnum< {
|
|
4916
|
+
occurrence: "occurrence";
|
|
4917
|
+
onward: "onward";
|
|
4918
|
+
}>;
|
|
4919
|
+
weekOrder: ZodNullable<ZodNumber>;
|
|
4920
|
+
dayOfWeek: ZodEnum< {
|
|
4921
|
+
mon: "mon";
|
|
4922
|
+
sun: "sun";
|
|
4923
|
+
tue: "tue";
|
|
4924
|
+
wed: "wed";
|
|
4925
|
+
thu: "thu";
|
|
4926
|
+
fri: "fri";
|
|
4927
|
+
sat: "sat";
|
|
4928
|
+
}>;
|
|
4929
|
+
exerciseName: ZodNullable<ZodPipe<ZodString, ZodTransform<string, string>>>;
|
|
4930
|
+
replacementName: ZodNullable<ZodPipe<ZodString, ZodTransform<string, string>>>;
|
|
4931
|
+
enrollmentId: ZodGUID;
|
|
4932
|
+
programId: ZodGUID;
|
|
4933
|
+
programTitle: ZodPipe<ZodString, ZodTransform<string, string>>;
|
|
4934
|
+
overrideId: ZodGUID;
|
|
4935
|
+
}, $strict>, ZodObject< {
|
|
4936
|
+
kind: ZodLiteral<"measurement_recorded">;
|
|
4937
|
+
backfilled: ZodOptional<ZodLiteral<true>>;
|
|
4938
|
+
} & {
|
|
4939
|
+
count: ZodNumber;
|
|
4940
|
+
kinds: ZodReadonly<ZodArray<ZodEnum< {
|
|
4941
|
+
waist: "waist";
|
|
4942
|
+
hips: "hips";
|
|
4943
|
+
chest: "chest";
|
|
4944
|
+
neck: "neck";
|
|
4945
|
+
shoulders: "shoulders";
|
|
4946
|
+
arm_left: "arm_left";
|
|
4947
|
+
arm_right: "arm_right";
|
|
4948
|
+
thigh_left: "thigh_left";
|
|
4949
|
+
thigh_right: "thigh_right";
|
|
4950
|
+
calf_left: "calf_left";
|
|
4951
|
+
calf_right: "calf_right";
|
|
4952
|
+
}>>>;
|
|
4953
|
+
}, $strict>, ZodObject< {
|
|
4954
|
+
kind: ZodLiteral<"progress_photo_added">;
|
|
4955
|
+
backfilled: ZodOptional<ZodLiteral<true>>;
|
|
4956
|
+
} & {
|
|
4957
|
+
count: ZodNumber;
|
|
4958
|
+
}, $strict>], "kind">;
|
|
4959
|
+
hydrated: ZodDiscriminatedUnion<[ZodObject< {
|
|
4960
|
+
state: ZodLiteral<"available">;
|
|
4961
|
+
prs: ZodArray<ZodObject< {
|
|
4962
|
+
exerciseGroupKey: ZodGUID;
|
|
4963
|
+
exerciseName: ZodString;
|
|
4964
|
+
weightKg: ZodNumber;
|
|
4965
|
+
reps: ZodNumber;
|
|
4966
|
+
}, $strip>>;
|
|
4967
|
+
detail: ZodNullable<ZodDiscriminatedUnion<[ZodObject< {
|
|
4968
|
+
source: ZodLiteral<"session">;
|
|
4969
|
+
sessionTitle: ZodString;
|
|
4970
|
+
}, $strip>, ZodObject< {
|
|
4971
|
+
source: ZodLiteral<"checkin">;
|
|
4972
|
+
periodEnd: ZodISODate;
|
|
4973
|
+
}, $strip>], "source">>;
|
|
4974
|
+
}, $strip>, ZodObject< {
|
|
4975
|
+
state: ZodLiteral<"unavailable">;
|
|
4976
|
+
}, $strip>], "state">;
|
|
4977
|
+
}, $strip>>;
|
|
4978
|
+
meta: ZodObject< {
|
|
4979
|
+
nextCursor: ZodNullable<ZodString>;
|
|
4980
|
+
limit: ZodNumber;
|
|
4981
|
+
groups: ZodArray<ZodObject< {
|
|
4982
|
+
group: ZodEnum< {
|
|
4983
|
+
billing: "billing";
|
|
4984
|
+
programs: "programs";
|
|
4985
|
+
body: "body";
|
|
4986
|
+
checkins: "checkins";
|
|
4987
|
+
sessions: "sessions";
|
|
4988
|
+
goals_notes: "goals_notes";
|
|
4989
|
+
}>;
|
|
4990
|
+
count: ZodNumber;
|
|
4991
|
+
}, $strip>>;
|
|
4992
|
+
}, $strip>;
|
|
4993
|
+
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
4994
|
+
};
|
|
4995
|
+
health: {
|
|
4996
|
+
get: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {}, $strip>, ZodObject< {
|
|
4997
|
+
data: ZodObject< {
|
|
4998
|
+
constraints: ZodArray<ZodObject< {
|
|
4999
|
+
id: ZodGUID;
|
|
5000
|
+
kind: ZodEnum< {
|
|
5001
|
+
injury: "injury";
|
|
5002
|
+
medical_condition: "medical_condition";
|
|
5003
|
+
limitation: "limitation";
|
|
5004
|
+
}>;
|
|
5005
|
+
bodyArea: ZodEnum< {
|
|
5006
|
+
chest: "chest";
|
|
5007
|
+
neck: "neck";
|
|
5008
|
+
shoulder: "shoulder";
|
|
5009
|
+
upper_back: "upper_back";
|
|
5010
|
+
lower_back: "lower_back";
|
|
5011
|
+
elbow: "elbow";
|
|
5012
|
+
wrist_hand: "wrist_hand";
|
|
5013
|
+
hip: "hip";
|
|
5014
|
+
groin: "groin";
|
|
5015
|
+
knee: "knee";
|
|
5016
|
+
ankle_foot: "ankle_foot";
|
|
5017
|
+
core: "core";
|
|
5018
|
+
other: "other";
|
|
5019
|
+
}>;
|
|
5020
|
+
side: ZodEnum< {
|
|
5021
|
+
left: "left";
|
|
5022
|
+
right: "right";
|
|
5023
|
+
both: "both";
|
|
5024
|
+
not_applicable: "not_applicable";
|
|
5025
|
+
}>;
|
|
5026
|
+
severity: ZodEnum< {
|
|
5027
|
+
mild: "mild";
|
|
5028
|
+
moderate: "moderate";
|
|
5029
|
+
severe: "severe";
|
|
5030
|
+
}>;
|
|
5031
|
+
status: ZodEnum< {
|
|
5032
|
+
active: "active";
|
|
5033
|
+
managing: "managing";
|
|
5034
|
+
}>;
|
|
5035
|
+
level: ZodNullable<ZodEnum< {
|
|
5036
|
+
avoid: "avoid";
|
|
5037
|
+
caution: "caution";
|
|
5038
|
+
}>>;
|
|
5039
|
+
title: ZodString;
|
|
5040
|
+
description: ZodNullable<ZodString>;
|
|
5041
|
+
onsetOn: ZodNullable<ZodISODate>;
|
|
5042
|
+
reviewOn: ZodNullable<ZodISODate>;
|
|
5043
|
+
avoid: ZodObject< {
|
|
5044
|
+
exercises: ZodArray<ZodObject< {
|
|
5045
|
+
catalogueExerciseId: ZodNullable<ZodGUID>;
|
|
5046
|
+
name: ZodString;
|
|
5047
|
+
includeVariations: ZodBoolean;
|
|
5048
|
+
}, $strip>>;
|
|
5049
|
+
movementPatterns: ZodArray<ZodEnum< {
|
|
5050
|
+
running: "running";
|
|
5051
|
+
squat: "squat";
|
|
5052
|
+
hinge: "hinge";
|
|
5053
|
+
lunge: "lunge";
|
|
5054
|
+
horizontal_push: "horizontal_push";
|
|
5055
|
+
vertical_push: "vertical_push";
|
|
5056
|
+
horizontal_pull: "horizontal_pull";
|
|
5057
|
+
vertical_pull: "vertical_pull";
|
|
5058
|
+
overhead: "overhead";
|
|
5059
|
+
carry: "carry";
|
|
5060
|
+
rotation: "rotation";
|
|
5061
|
+
anti_rotation: "anti_rotation";
|
|
5062
|
+
spinal_flexion: "spinal_flexion";
|
|
5063
|
+
jump_landing: "jump_landing";
|
|
5064
|
+
}>>;
|
|
5065
|
+
muscleGroups: ZodArray<ZodString>;
|
|
5066
|
+
}, $strip>;
|
|
5067
|
+
reportedBy: ZodEnum< {
|
|
5068
|
+
member: "member";
|
|
5069
|
+
staff: "staff";
|
|
5070
|
+
}>;
|
|
5071
|
+
awaitingReview: ZodBoolean;
|
|
5072
|
+
createdAt: ZodString;
|
|
5073
|
+
updatedAt: ZodString;
|
|
5074
|
+
}, $strip>>;
|
|
5075
|
+
equipment: ZodArray<ZodObject< {
|
|
5076
|
+
location: ZodEnum< {
|
|
5077
|
+
home: "home";
|
|
5078
|
+
gym: "gym";
|
|
5079
|
+
outdoors: "outdoors";
|
|
5080
|
+
}>;
|
|
5081
|
+
equipment: ZodArray<ZodString>;
|
|
5082
|
+
isPrimary: ZodBoolean;
|
|
5083
|
+
updatedBy: ZodEnum< {
|
|
5084
|
+
member: "member";
|
|
5085
|
+
staff: "staff";
|
|
5086
|
+
}>;
|
|
5087
|
+
updatedAt: ZodString;
|
|
5088
|
+
}, $strip>>;
|
|
5089
|
+
consent: ZodDiscriminatedUnion<[ZodObject< {
|
|
5090
|
+
state: ZodLiteral<"none">;
|
|
5091
|
+
}, $strip>, ZodObject< {
|
|
5092
|
+
state: ZodLiteral<"given">;
|
|
5093
|
+
consentVersion: ZodString;
|
|
5094
|
+
consentedAt: ZodString;
|
|
5095
|
+
}, $strip>, ZodObject< {
|
|
5096
|
+
state: ZodLiteral<"withdrawn">;
|
|
5097
|
+
withdrawnAt: ZodString;
|
|
5098
|
+
}, $strip>], "state">;
|
|
5099
|
+
intake: ZodDiscriminatedUnion<[ZodObject< {
|
|
5100
|
+
state: ZodLiteral<"unavailable">;
|
|
5101
|
+
}, $strip>, ZodObject< {
|
|
5102
|
+
state: ZodLiteral<"not_sent">;
|
|
5103
|
+
}, $strip>, ZodObject< {
|
|
5104
|
+
state: ZodLiteral<"sent">;
|
|
5105
|
+
latest: ZodObject< {
|
|
5106
|
+
id: ZodGUID;
|
|
5107
|
+
submittedAt: ZodString;
|
|
5108
|
+
yesCount: ZodNumber;
|
|
5109
|
+
}, $strip>;
|
|
5110
|
+
earlierCount: ZodNumber;
|
|
5111
|
+
}, $strip>], "state">;
|
|
5112
|
+
storedHealthData: ZodBoolean;
|
|
5113
|
+
}, $strip>;
|
|
5114
|
+
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
5115
|
+
setEquipment: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
5116
|
+
location: ZodEnum< {
|
|
5117
|
+
home: "home";
|
|
5118
|
+
gym: "gym";
|
|
5119
|
+
outdoors: "outdoors";
|
|
5120
|
+
}>;
|
|
5121
|
+
equipment: ZodPipe<ZodArray<ZodString>, ZodTransform<string[], string[]>>;
|
|
5122
|
+
isPrimary: ZodBoolean;
|
|
5123
|
+
}, $strip>, ZodObject< {
|
|
5124
|
+
data: ZodObject< {
|
|
5125
|
+
equipment: ZodArray<ZodObject< {
|
|
5126
|
+
location: ZodEnum< {
|
|
5127
|
+
home: "home";
|
|
5128
|
+
gym: "gym";
|
|
5129
|
+
outdoors: "outdoors";
|
|
5130
|
+
}>;
|
|
5131
|
+
equipment: ZodArray<ZodString>;
|
|
5132
|
+
isPrimary: ZodBoolean;
|
|
5133
|
+
updatedBy: ZodEnum< {
|
|
5134
|
+
member: "member";
|
|
5135
|
+
staff: "staff";
|
|
5136
|
+
}>;
|
|
5137
|
+
updatedAt: ZodString;
|
|
5138
|
+
}, $strip>>;
|
|
5139
|
+
}, $strip>;
|
|
5140
|
+
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
5141
|
+
deleteEquipment: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
5142
|
+
location: ZodEnum< {
|
|
5143
|
+
home: "home";
|
|
5144
|
+
gym: "gym";
|
|
5145
|
+
outdoors: "outdoors";
|
|
5146
|
+
}>;
|
|
5147
|
+
}, $strip>, ZodObject< {
|
|
5148
|
+
data: ZodObject< {
|
|
5149
|
+
equipment: ZodArray<ZodObject< {
|
|
5150
|
+
location: ZodEnum< {
|
|
5151
|
+
home: "home";
|
|
5152
|
+
gym: "gym";
|
|
5153
|
+
outdoors: "outdoors";
|
|
5154
|
+
}>;
|
|
5155
|
+
equipment: ZodArray<ZodString>;
|
|
5156
|
+
isPrimary: ZodBoolean;
|
|
5157
|
+
updatedBy: ZodEnum< {
|
|
5158
|
+
member: "member";
|
|
5159
|
+
staff: "staff";
|
|
5160
|
+
}>;
|
|
5161
|
+
updatedAt: ZodString;
|
|
5162
|
+
}, $strip>>;
|
|
5163
|
+
}, $strip>;
|
|
5164
|
+
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
5165
|
+
getIntake: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {}, $strip>, ZodObject< {
|
|
5166
|
+
data: ZodDiscriminatedUnion<[ZodObject< {
|
|
5167
|
+
consent: ZodObject< {
|
|
5168
|
+
version: ZodString;
|
|
5169
|
+
text: ZodString;
|
|
5170
|
+
}, $strip>;
|
|
5171
|
+
guidance: ZodString;
|
|
5172
|
+
kind: ZodLiteral<"unavailable">;
|
|
5173
|
+
}, $strip>, ZodObject< {
|
|
5174
|
+
leadIn: ZodString;
|
|
5175
|
+
questions: ZodArray<ZodObject< {
|
|
5176
|
+
id: ZodGUID;
|
|
5177
|
+
order: ZodNumber;
|
|
5178
|
+
prompt: ZodString;
|
|
5179
|
+
helpText: ZodNullable<ZodString>;
|
|
5180
|
+
required: ZodBoolean;
|
|
5181
|
+
config: ZodDiscriminatedUnion<[ZodObject< {
|
|
5182
|
+
type: ZodLiteral<"yes_no">;
|
|
5183
|
+
}, $strip>, ZodObject< {
|
|
5184
|
+
type: ZodLiteral<"text">;
|
|
5185
|
+
multiline: ZodBoolean;
|
|
5186
|
+
maxLength: ZodNumber;
|
|
5187
|
+
}, $strip>, ZodObject< {
|
|
5188
|
+
type: ZodLiteral<"number">;
|
|
5189
|
+
unit: ZodOptional<ZodString>;
|
|
5190
|
+
min: ZodOptional<ZodNumber>;
|
|
5191
|
+
max: ZodOptional<ZodNumber>;
|
|
5192
|
+
}, $strip>, ZodObject< {
|
|
5193
|
+
type: ZodLiteral<"scale">;
|
|
5194
|
+
min: ZodLiteral<1>;
|
|
5195
|
+
max: ZodUnion<readonly [ZodLiteral<5>, ZodLiteral<10>]>;
|
|
5196
|
+
lowLabel: ZodOptional<ZodString>;
|
|
5197
|
+
highLabel: ZodOptional<ZodString>;
|
|
5198
|
+
}, $strip>], "type">;
|
|
5199
|
+
}, $strip>>;
|
|
5200
|
+
latest: ZodNullable<ZodObject< {
|
|
5201
|
+
id: ZodGUID;
|
|
5202
|
+
submittedAt: ZodString;
|
|
5203
|
+
yesCount: ZodNumber;
|
|
5204
|
+
answers: ZodArray<ZodObject< {
|
|
5205
|
+
questionId: ZodGUID;
|
|
5206
|
+
prompt: ZodString;
|
|
5207
|
+
helpText: ZodNullable<ZodString>;
|
|
5208
|
+
config: ZodDiscriminatedUnion<[ZodObject< {
|
|
5209
|
+
type: ZodLiteral<"yes_no">;
|
|
5210
|
+
}, $strip>, ZodObject< {
|
|
5211
|
+
type: ZodLiteral<"text">;
|
|
5212
|
+
multiline: ZodBoolean;
|
|
5213
|
+
maxLength: ZodNumber;
|
|
5214
|
+
}, $strip>, ZodObject< {
|
|
5215
|
+
type: ZodLiteral<"number">;
|
|
5216
|
+
unit: ZodOptional<ZodString>;
|
|
5217
|
+
min: ZodOptional<ZodNumber>;
|
|
5218
|
+
max: ZodOptional<ZodNumber>;
|
|
5219
|
+
}, $strip>, ZodObject< {
|
|
5220
|
+
type: ZodLiteral<"scale">;
|
|
5221
|
+
min: ZodLiteral<1>;
|
|
5222
|
+
max: ZodUnion<readonly [ZodLiteral<5>, ZodLiteral<10>]>;
|
|
5223
|
+
lowLabel: ZodOptional<ZodString>;
|
|
5224
|
+
highLabel: ZodOptional<ZodString>;
|
|
5225
|
+
}, $strip>], "type">;
|
|
5226
|
+
answer: ZodNullable<ZodDiscriminatedUnion<[ZodObject< {
|
|
5227
|
+
type: ZodLiteral<"yes_no">;
|
|
5228
|
+
value: ZodBoolean;
|
|
5229
|
+
}, $strip>, ZodObject< {
|
|
5230
|
+
type: ZodLiteral<"text">;
|
|
5231
|
+
value: ZodString;
|
|
5232
|
+
}, $strip>, ZodObject< {
|
|
5233
|
+
type: ZodLiteral<"number">;
|
|
5234
|
+
value: ZodNumber;
|
|
5235
|
+
}, $strip>, ZodObject< {
|
|
5236
|
+
type: ZodLiteral<"scale">;
|
|
5237
|
+
value: ZodNumber;
|
|
5238
|
+
}, $strip>], "type">>;
|
|
5239
|
+
}, $strip>>;
|
|
5240
|
+
}, $strip>>;
|
|
5241
|
+
consent: ZodObject< {
|
|
5242
|
+
version: ZodString;
|
|
5243
|
+
text: ZodString;
|
|
5244
|
+
}, $strip>;
|
|
5245
|
+
guidance: ZodString;
|
|
5246
|
+
kind: ZodLiteral<"available">;
|
|
5247
|
+
}, $strip>], "kind">;
|
|
5248
|
+
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
5249
|
+
submitIntake: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
5250
|
+
consent: ZodLiteral<true>;
|
|
5251
|
+
consentVersion: ZodString;
|
|
5252
|
+
answers: ZodArray<ZodDiscriminatedUnion<[ZodObject< {
|
|
5253
|
+
type: ZodLiteral<"scale">;
|
|
5254
|
+
value: ZodNumber;
|
|
5255
|
+
questionId: ZodString;
|
|
5256
|
+
}, $strip>, ZodObject< {
|
|
5257
|
+
type: ZodLiteral<"number">;
|
|
5258
|
+
value: ZodNumber;
|
|
5259
|
+
questionId: ZodString;
|
|
5260
|
+
}, $strip>, ZodObject< {
|
|
5261
|
+
type: ZodLiteral<"text">;
|
|
5262
|
+
value: ZodString;
|
|
5263
|
+
questionId: ZodString;
|
|
5264
|
+
}, $strip>, ZodObject< {
|
|
5265
|
+
type: ZodLiteral<"bodyweight">;
|
|
5266
|
+
weight: ZodNumber;
|
|
5267
|
+
unit: ZodEnum< {
|
|
5268
|
+
lb: "lb";
|
|
5269
|
+
kg: "kg";
|
|
5270
|
+
}>;
|
|
5271
|
+
questionId: ZodString;
|
|
5272
|
+
}, $strip>, ZodObject< {
|
|
5273
|
+
type: ZodLiteral<"photos">;
|
|
5274
|
+
uploadIds: ZodArray<ZodString>;
|
|
5275
|
+
questionId: ZodString;
|
|
5276
|
+
}, $strip>, ZodObject< {
|
|
5277
|
+
type: ZodLiteral<"yes_no">;
|
|
5278
|
+
value: ZodBoolean;
|
|
5279
|
+
questionId: ZodString;
|
|
5280
|
+
}, $strip>], "type">>;
|
|
5281
|
+
}, $strip>, ZodObject< {
|
|
5282
|
+
data: ZodObject< {
|
|
5283
|
+
response: ZodObject< {
|
|
5284
|
+
id: ZodGUID;
|
|
5285
|
+
submittedAt: ZodString;
|
|
5286
|
+
yesCount: ZodNumber;
|
|
5287
|
+
}, $strip>;
|
|
5288
|
+
}, $strip>;
|
|
5289
|
+
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
5290
|
+
deleteMyData: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
5291
|
+
confirm: ZodLiteral<"DELETE">;
|
|
5292
|
+
}, $strip>, ZodObject< {
|
|
5293
|
+
data: ZodObject< {
|
|
5294
|
+
withdrawnAt: ZodString;
|
|
5295
|
+
}, $strip>;
|
|
5296
|
+
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
5297
|
+
reportInjury: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
5298
|
+
title: ZodString;
|
|
5299
|
+
bodyArea: ZodEnum< {
|
|
5300
|
+
chest: "chest";
|
|
5301
|
+
neck: "neck";
|
|
5302
|
+
shoulder: "shoulder";
|
|
5303
|
+
upper_back: "upper_back";
|
|
5304
|
+
lower_back: "lower_back";
|
|
5305
|
+
elbow: "elbow";
|
|
5306
|
+
wrist_hand: "wrist_hand";
|
|
5307
|
+
hip: "hip";
|
|
5308
|
+
groin: "groin";
|
|
5309
|
+
knee: "knee";
|
|
5310
|
+
ankle_foot: "ankle_foot";
|
|
5311
|
+
core: "core";
|
|
5312
|
+
other: "other";
|
|
5313
|
+
}>;
|
|
5314
|
+
side: ZodEnum< {
|
|
5315
|
+
left: "left";
|
|
5316
|
+
right: "right";
|
|
5317
|
+
both: "both";
|
|
5318
|
+
not_applicable: "not_applicable";
|
|
5319
|
+
}>;
|
|
5320
|
+
severity: ZodEnum< {
|
|
5321
|
+
mild: "mild";
|
|
5322
|
+
moderate: "moderate";
|
|
5323
|
+
severe: "severe";
|
|
5324
|
+
}>;
|
|
5325
|
+
onsetOn: ZodDefault<ZodNullable<ZodISODate>>;
|
|
5326
|
+
description: ZodPipe<ZodDefault<ZodNullable<ZodString>>, ZodTransform<string | null, string | null>>;
|
|
5327
|
+
consent: ZodOptional<ZodObject< {
|
|
5328
|
+
accepted: ZodLiteral<true>;
|
|
5329
|
+
version: ZodString;
|
|
5330
|
+
}, $strip>>;
|
|
5331
|
+
}, $strip>, ZodObject< {
|
|
5332
|
+
data: ZodObject< {
|
|
5333
|
+
constraint: ZodObject< {
|
|
5334
|
+
id: ZodGUID;
|
|
5335
|
+
kind: ZodEnum< {
|
|
5336
|
+
injury: "injury";
|
|
5337
|
+
medical_condition: "medical_condition";
|
|
5338
|
+
limitation: "limitation";
|
|
5339
|
+
}>;
|
|
5340
|
+
bodyArea: ZodEnum< {
|
|
5341
|
+
chest: "chest";
|
|
5342
|
+
neck: "neck";
|
|
5343
|
+
shoulder: "shoulder";
|
|
5344
|
+
upper_back: "upper_back";
|
|
5345
|
+
lower_back: "lower_back";
|
|
5346
|
+
elbow: "elbow";
|
|
5347
|
+
wrist_hand: "wrist_hand";
|
|
5348
|
+
hip: "hip";
|
|
5349
|
+
groin: "groin";
|
|
5350
|
+
knee: "knee";
|
|
5351
|
+
ankle_foot: "ankle_foot";
|
|
5352
|
+
core: "core";
|
|
5353
|
+
other: "other";
|
|
5354
|
+
}>;
|
|
5355
|
+
side: ZodEnum< {
|
|
5356
|
+
left: "left";
|
|
5357
|
+
right: "right";
|
|
5358
|
+
both: "both";
|
|
5359
|
+
not_applicable: "not_applicable";
|
|
5360
|
+
}>;
|
|
5361
|
+
severity: ZodEnum< {
|
|
5362
|
+
mild: "mild";
|
|
5363
|
+
moderate: "moderate";
|
|
5364
|
+
severe: "severe";
|
|
5365
|
+
}>;
|
|
5366
|
+
status: ZodEnum< {
|
|
5367
|
+
active: "active";
|
|
5368
|
+
managing: "managing";
|
|
5369
|
+
}>;
|
|
5370
|
+
level: ZodNullable<ZodEnum< {
|
|
5371
|
+
avoid: "avoid";
|
|
5372
|
+
caution: "caution";
|
|
5373
|
+
}>>;
|
|
5374
|
+
title: ZodString;
|
|
5375
|
+
description: ZodNullable<ZodString>;
|
|
5376
|
+
onsetOn: ZodNullable<ZodISODate>;
|
|
5377
|
+
reviewOn: ZodNullable<ZodISODate>;
|
|
5378
|
+
avoid: ZodObject< {
|
|
5379
|
+
exercises: ZodArray<ZodObject< {
|
|
5380
|
+
catalogueExerciseId: ZodNullable<ZodGUID>;
|
|
5381
|
+
name: ZodString;
|
|
5382
|
+
includeVariations: ZodBoolean;
|
|
5383
|
+
}, $strip>>;
|
|
5384
|
+
movementPatterns: ZodArray<ZodEnum< {
|
|
5385
|
+
running: "running";
|
|
5386
|
+
squat: "squat";
|
|
5387
|
+
hinge: "hinge";
|
|
5388
|
+
lunge: "lunge";
|
|
5389
|
+
horizontal_push: "horizontal_push";
|
|
5390
|
+
vertical_push: "vertical_push";
|
|
5391
|
+
horizontal_pull: "horizontal_pull";
|
|
5392
|
+
vertical_pull: "vertical_pull";
|
|
5393
|
+
overhead: "overhead";
|
|
5394
|
+
carry: "carry";
|
|
5395
|
+
rotation: "rotation";
|
|
5396
|
+
anti_rotation: "anti_rotation";
|
|
5397
|
+
spinal_flexion: "spinal_flexion";
|
|
5398
|
+
jump_landing: "jump_landing";
|
|
5399
|
+
}>>;
|
|
5400
|
+
muscleGroups: ZodArray<ZodString>;
|
|
5401
|
+
}, $strip>;
|
|
5402
|
+
reportedBy: ZodEnum< {
|
|
5403
|
+
member: "member";
|
|
5404
|
+
staff: "staff";
|
|
5405
|
+
}>;
|
|
5406
|
+
awaitingReview: ZodBoolean;
|
|
5407
|
+
createdAt: ZodString;
|
|
5408
|
+
updatedAt: ZodString;
|
|
5409
|
+
}, $strip>;
|
|
5410
|
+
consent: ZodDiscriminatedUnion<[ZodObject< {
|
|
5411
|
+
state: ZodLiteral<"none">;
|
|
5412
|
+
}, $strip>, ZodObject< {
|
|
5413
|
+
state: ZodLiteral<"given">;
|
|
5414
|
+
consentVersion: ZodString;
|
|
5415
|
+
consentedAt: ZodString;
|
|
5416
|
+
}, $strip>, ZodObject< {
|
|
5417
|
+
state: ZodLiteral<"withdrawn">;
|
|
5418
|
+
withdrawnAt: ZodString;
|
|
5419
|
+
}, $strip>], "state">;
|
|
5420
|
+
}, $strip>;
|
|
5421
|
+
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
5422
|
+
};
|
|
5423
|
+
habit: {
|
|
5424
|
+
today: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {}, $strip>, ZodObject< {
|
|
5425
|
+
data: ZodObject< {
|
|
5426
|
+
today: ZodISODate;
|
|
5427
|
+
timeZone: ZodString;
|
|
5428
|
+
hasHistory: ZodBoolean;
|
|
5429
|
+
habits: ZodArray<ZodObject< {
|
|
5430
|
+
id: ZodGUID;
|
|
5431
|
+
name: ZodString;
|
|
5432
|
+
description: ZodString;
|
|
5433
|
+
icon: ZodNullable<ZodEnum< {
|
|
5434
|
+
Footprints: "Footprints";
|
|
5435
|
+
Moon: "Moon";
|
|
5436
|
+
GlassWater: "GlassWater";
|
|
5437
|
+
Beef: "Beef";
|
|
5438
|
+
StretchHorizontal: "StretchHorizontal";
|
|
5439
|
+
Apple: "Apple";
|
|
5440
|
+
Brain: "Brain";
|
|
5441
|
+
Sun: "Sun";
|
|
5442
|
+
}>>;
|
|
5443
|
+
target: ZodDiscriminatedUnion<[ZodObject< {
|
|
5444
|
+
targetKind: ZodLiteral<"boolean">;
|
|
5445
|
+
}, $strip>, ZodObject< {
|
|
5446
|
+
targetKind: ZodLiteral<"numeric">;
|
|
5447
|
+
targetValue: ZodNumber;
|
|
5448
|
+
unit: ZodString;
|
|
5449
|
+
}, $strip>], "targetKind">;
|
|
5450
|
+
frequency: ZodDiscriminatedUnion<[ZodObject< {
|
|
5451
|
+
frequency: ZodLiteral<"daily">;
|
|
5452
|
+
}, $strip>, ZodObject< {
|
|
5453
|
+
frequency: ZodLiteral<"weekly">;
|
|
5454
|
+
timesPerWeek: ZodNumber;
|
|
5455
|
+
}, $strip>], "frequency">;
|
|
5456
|
+
startDate: ZodISODate;
|
|
5457
|
+
endDate: ZodNullable<ZodISODate>;
|
|
5458
|
+
status: ZodEnum< {
|
|
5459
|
+
active: "active";
|
|
5460
|
+
upcoming: "upcoming";
|
|
5461
|
+
ended: "ended";
|
|
5462
|
+
}>;
|
|
5463
|
+
stats: ZodDiscriminatedUnion<[ZodObject< {
|
|
5464
|
+
windowDays: ZodNumber;
|
|
5465
|
+
adherencePct: ZodNullable<ZodNumber>;
|
|
5466
|
+
scheduled: ZodNumber;
|
|
5467
|
+
met: ZodNumber;
|
|
5468
|
+
currentStreak: ZodNumber;
|
|
5469
|
+
longestStreak: ZodNumber;
|
|
5470
|
+
today: ZodEnum< {
|
|
5471
|
+
pending: "pending";
|
|
5472
|
+
met: "met";
|
|
5473
|
+
partial: "partial";
|
|
5474
|
+
not_scheduled: "not_scheduled";
|
|
5475
|
+
}>;
|
|
5476
|
+
days: ZodArray<ZodObject< {
|
|
5477
|
+
day: ZodISODate;
|
|
5478
|
+
state: ZodEnum< {
|
|
5479
|
+
pending: "pending";
|
|
5480
|
+
met: "met";
|
|
5481
|
+
missed: "missed";
|
|
5482
|
+
not_scheduled: "not_scheduled";
|
|
5483
|
+
under_target: "under_target";
|
|
5484
|
+
not_done: "not_done";
|
|
5485
|
+
pending_under_target: "pending_under_target";
|
|
5486
|
+
}>;
|
|
5487
|
+
value: ZodNullable<ZodNumber>;
|
|
5488
|
+
source: ZodNullable<ZodEnum< {
|
|
5489
|
+
member: "member";
|
|
5490
|
+
staff: "staff";
|
|
5491
|
+
}>>;
|
|
5492
|
+
loggedByName: ZodNullable<ZodString>;
|
|
5493
|
+
loggedAt: ZodNullable<ZodDate>;
|
|
5494
|
+
}, $strip>>;
|
|
5495
|
+
frequency: ZodLiteral<"daily">;
|
|
5496
|
+
}, $strip>, ZodObject< {
|
|
5497
|
+
windowDays: ZodNumber;
|
|
5498
|
+
adherencePct: ZodNullable<ZodNumber>;
|
|
5499
|
+
scheduled: ZodNumber;
|
|
5500
|
+
met: ZodNumber;
|
|
5501
|
+
currentStreak: ZodNumber;
|
|
5502
|
+
longestStreak: ZodNumber;
|
|
5503
|
+
today: ZodEnum< {
|
|
5504
|
+
pending: "pending";
|
|
5505
|
+
met: "met";
|
|
5506
|
+
partial: "partial";
|
|
5507
|
+
not_scheduled: "not_scheduled";
|
|
5508
|
+
}>;
|
|
5509
|
+
days: ZodArray<ZodObject< {
|
|
5510
|
+
day: ZodISODate;
|
|
5511
|
+
state: ZodEnum< {
|
|
5512
|
+
pending: "pending";
|
|
5513
|
+
met: "met";
|
|
5514
|
+
missed: "missed";
|
|
5515
|
+
not_scheduled: "not_scheduled";
|
|
5516
|
+
under_target: "under_target";
|
|
5517
|
+
not_done: "not_done";
|
|
5518
|
+
pending_under_target: "pending_under_target";
|
|
5519
|
+
}>;
|
|
5520
|
+
value: ZodNullable<ZodNumber>;
|
|
5521
|
+
source: ZodNullable<ZodEnum< {
|
|
5522
|
+
member: "member";
|
|
5523
|
+
staff: "staff";
|
|
5524
|
+
}>>;
|
|
5525
|
+
loggedByName: ZodNullable<ZodString>;
|
|
5526
|
+
loggedAt: ZodNullable<ZodDate>;
|
|
5527
|
+
}, $strip>>;
|
|
5528
|
+
frequency: ZodLiteral<"weekly">;
|
|
5529
|
+
timesPerWeek: ZodNumber;
|
|
5530
|
+
weeks: ZodArray<ZodObject< {
|
|
5531
|
+
weekStart: ZodISODate;
|
|
5532
|
+
firstDay: ZodISODate;
|
|
5533
|
+
lastDay: ZodISODate;
|
|
5534
|
+
metDays: ZodNumber;
|
|
5535
|
+
status: ZodEnum< {
|
|
5536
|
+
failed: "failed";
|
|
5537
|
+
succeeded: "succeeded";
|
|
5538
|
+
in_progress: "in_progress";
|
|
5539
|
+
not_counted: "not_counted";
|
|
5540
|
+
}>;
|
|
5541
|
+
}, $strip>>;
|
|
5542
|
+
currentWeek: ZodNullable<ZodObject< {
|
|
5543
|
+
weekStart: ZodISODate;
|
|
5544
|
+
firstDay: ZodISODate;
|
|
5545
|
+
lastDay: ZodISODate;
|
|
5546
|
+
metDays: ZodNumber;
|
|
5547
|
+
status: ZodEnum< {
|
|
5548
|
+
failed: "failed";
|
|
5549
|
+
succeeded: "succeeded";
|
|
5550
|
+
in_progress: "in_progress";
|
|
5551
|
+
not_counted: "not_counted";
|
|
5552
|
+
}>;
|
|
5553
|
+
}, $strip>>;
|
|
5554
|
+
}, $strip>], "frequency">;
|
|
5555
|
+
logWindow: ZodDiscriminatedUnion<[ZodObject< {
|
|
5556
|
+
kind: ZodLiteral<"open">;
|
|
5557
|
+
from: ZodISODate;
|
|
5558
|
+
to: ZodISODate;
|
|
5559
|
+
}, $strip>, ZodObject< {
|
|
5560
|
+
kind: ZodLiteral<"closed">;
|
|
5561
|
+
}, $strip>], "kind">;
|
|
5562
|
+
todayLog: ZodNullable<ZodObject< {
|
|
5563
|
+
memberHabitId: ZodString;
|
|
5564
|
+
day: ZodISODate;
|
|
5565
|
+
value: ZodNullable<ZodNumber>;
|
|
5566
|
+
met: ZodBoolean;
|
|
5567
|
+
source: ZodEnum< {
|
|
5568
|
+
member: "member";
|
|
5569
|
+
staff: "staff";
|
|
5570
|
+
}>;
|
|
5571
|
+
loggedByName: ZodNullable<ZodString>;
|
|
5572
|
+
loggedAt: ZodDate;
|
|
5573
|
+
}, $strip>>;
|
|
5574
|
+
}, $strip>>;
|
|
5575
|
+
}, $strip>;
|
|
5576
|
+
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
5577
|
+
list: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
5578
|
+
from: ZodISODate;
|
|
5579
|
+
to: ZodISODate;
|
|
5580
|
+
}, $strip>, ZodObject< {
|
|
5581
|
+
data: ZodObject< {
|
|
5582
|
+
today: ZodISODate;
|
|
5583
|
+
timeZone: ZodString;
|
|
5584
|
+
from: ZodISODate;
|
|
5585
|
+
to: ZodISODate;
|
|
5586
|
+
habits: ZodArray<ZodObject< {
|
|
5587
|
+
id: ZodGUID;
|
|
5588
|
+
name: ZodString;
|
|
5589
|
+
description: ZodString;
|
|
5590
|
+
icon: ZodNullable<ZodEnum< {
|
|
5591
|
+
Footprints: "Footprints";
|
|
5592
|
+
Moon: "Moon";
|
|
5593
|
+
GlassWater: "GlassWater";
|
|
5594
|
+
Beef: "Beef";
|
|
5595
|
+
StretchHorizontal: "StretchHorizontal";
|
|
5596
|
+
Apple: "Apple";
|
|
5597
|
+
Brain: "Brain";
|
|
5598
|
+
Sun: "Sun";
|
|
5599
|
+
}>>;
|
|
5600
|
+
target: ZodDiscriminatedUnion<[ZodObject< {
|
|
5601
|
+
targetKind: ZodLiteral<"boolean">;
|
|
5602
|
+
}, $strip>, ZodObject< {
|
|
5603
|
+
targetKind: ZodLiteral<"numeric">;
|
|
5604
|
+
targetValue: ZodNumber;
|
|
5605
|
+
unit: ZodString;
|
|
5606
|
+
}, $strip>], "targetKind">;
|
|
5607
|
+
frequency: ZodDiscriminatedUnion<[ZodObject< {
|
|
5608
|
+
frequency: ZodLiteral<"daily">;
|
|
5609
|
+
}, $strip>, ZodObject< {
|
|
5610
|
+
frequency: ZodLiteral<"weekly">;
|
|
5611
|
+
timesPerWeek: ZodNumber;
|
|
5612
|
+
}, $strip>], "frequency">;
|
|
5613
|
+
startDate: ZodISODate;
|
|
5614
|
+
endDate: ZodNullable<ZodISODate>;
|
|
5615
|
+
status: ZodEnum< {
|
|
5616
|
+
active: "active";
|
|
5617
|
+
upcoming: "upcoming";
|
|
5618
|
+
ended: "ended";
|
|
5619
|
+
}>;
|
|
5620
|
+
stats: ZodDiscriminatedUnion<[ZodObject< {
|
|
5621
|
+
windowDays: ZodNumber;
|
|
5622
|
+
adherencePct: ZodNullable<ZodNumber>;
|
|
5623
|
+
scheduled: ZodNumber;
|
|
5624
|
+
met: ZodNumber;
|
|
5625
|
+
currentStreak: ZodNumber;
|
|
5626
|
+
longestStreak: ZodNumber;
|
|
5627
|
+
today: ZodEnum< {
|
|
5628
|
+
pending: "pending";
|
|
5629
|
+
met: "met";
|
|
5630
|
+
partial: "partial";
|
|
5631
|
+
not_scheduled: "not_scheduled";
|
|
5632
|
+
}>;
|
|
5633
|
+
days: ZodArray<ZodObject< {
|
|
5634
|
+
day: ZodISODate;
|
|
5635
|
+
state: ZodEnum< {
|
|
5636
|
+
pending: "pending";
|
|
5637
|
+
met: "met";
|
|
5638
|
+
missed: "missed";
|
|
5639
|
+
not_scheduled: "not_scheduled";
|
|
5640
|
+
under_target: "under_target";
|
|
5641
|
+
not_done: "not_done";
|
|
5642
|
+
pending_under_target: "pending_under_target";
|
|
5643
|
+
}>;
|
|
5644
|
+
value: ZodNullable<ZodNumber>;
|
|
5645
|
+
source: ZodNullable<ZodEnum< {
|
|
5646
|
+
member: "member";
|
|
5647
|
+
staff: "staff";
|
|
5648
|
+
}>>;
|
|
5649
|
+
loggedByName: ZodNullable<ZodString>;
|
|
5650
|
+
loggedAt: ZodNullable<ZodDate>;
|
|
5651
|
+
}, $strip>>;
|
|
5652
|
+
frequency: ZodLiteral<"daily">;
|
|
5653
|
+
}, $strip>, ZodObject< {
|
|
5654
|
+
windowDays: ZodNumber;
|
|
5655
|
+
adherencePct: ZodNullable<ZodNumber>;
|
|
5656
|
+
scheduled: ZodNumber;
|
|
5657
|
+
met: ZodNumber;
|
|
5658
|
+
currentStreak: ZodNumber;
|
|
5659
|
+
longestStreak: ZodNumber;
|
|
5660
|
+
today: ZodEnum< {
|
|
5661
|
+
pending: "pending";
|
|
5662
|
+
met: "met";
|
|
5663
|
+
partial: "partial";
|
|
5664
|
+
not_scheduled: "not_scheduled";
|
|
5665
|
+
}>;
|
|
5666
|
+
days: ZodArray<ZodObject< {
|
|
5667
|
+
day: ZodISODate;
|
|
5668
|
+
state: ZodEnum< {
|
|
5669
|
+
pending: "pending";
|
|
5670
|
+
met: "met";
|
|
5671
|
+
missed: "missed";
|
|
5672
|
+
not_scheduled: "not_scheduled";
|
|
5673
|
+
under_target: "under_target";
|
|
5674
|
+
not_done: "not_done";
|
|
5675
|
+
pending_under_target: "pending_under_target";
|
|
5676
|
+
}>;
|
|
5677
|
+
value: ZodNullable<ZodNumber>;
|
|
5678
|
+
source: ZodNullable<ZodEnum< {
|
|
5679
|
+
member: "member";
|
|
5680
|
+
staff: "staff";
|
|
5681
|
+
}>>;
|
|
5682
|
+
loggedByName: ZodNullable<ZodString>;
|
|
5683
|
+
loggedAt: ZodNullable<ZodDate>;
|
|
5684
|
+
}, $strip>>;
|
|
5685
|
+
frequency: ZodLiteral<"weekly">;
|
|
5686
|
+
timesPerWeek: ZodNumber;
|
|
5687
|
+
weeks: ZodArray<ZodObject< {
|
|
5688
|
+
weekStart: ZodISODate;
|
|
5689
|
+
firstDay: ZodISODate;
|
|
5690
|
+
lastDay: ZodISODate;
|
|
5691
|
+
metDays: ZodNumber;
|
|
5692
|
+
status: ZodEnum< {
|
|
5693
|
+
failed: "failed";
|
|
5694
|
+
succeeded: "succeeded";
|
|
5695
|
+
in_progress: "in_progress";
|
|
5696
|
+
not_counted: "not_counted";
|
|
5697
|
+
}>;
|
|
5698
|
+
}, $strip>>;
|
|
5699
|
+
currentWeek: ZodNullable<ZodObject< {
|
|
5700
|
+
weekStart: ZodISODate;
|
|
5701
|
+
firstDay: ZodISODate;
|
|
5702
|
+
lastDay: ZodISODate;
|
|
5703
|
+
metDays: ZodNumber;
|
|
5704
|
+
status: ZodEnum< {
|
|
5705
|
+
failed: "failed";
|
|
5706
|
+
succeeded: "succeeded";
|
|
5707
|
+
in_progress: "in_progress";
|
|
5708
|
+
not_counted: "not_counted";
|
|
5709
|
+
}>;
|
|
5710
|
+
}, $strip>>;
|
|
5711
|
+
}, $strip>], "frequency">;
|
|
5712
|
+
logWindow: ZodDiscriminatedUnion<[ZodObject< {
|
|
5713
|
+
kind: ZodLiteral<"open">;
|
|
5714
|
+
from: ZodISODate;
|
|
5715
|
+
to: ZodISODate;
|
|
5716
|
+
}, $strip>, ZodObject< {
|
|
5717
|
+
kind: ZodLiteral<"closed">;
|
|
5718
|
+
}, $strip>], "kind">;
|
|
5719
|
+
logs: ZodArray<ZodObject< {
|
|
5720
|
+
memberHabitId: ZodString;
|
|
5721
|
+
day: ZodISODate;
|
|
5722
|
+
value: ZodNullable<ZodNumber>;
|
|
5723
|
+
met: ZodBoolean;
|
|
5724
|
+
source: ZodEnum< {
|
|
5725
|
+
member: "member";
|
|
5726
|
+
staff: "staff";
|
|
5727
|
+
}>;
|
|
5728
|
+
loggedByName: ZodNullable<ZodString>;
|
|
5729
|
+
loggedAt: ZodDate;
|
|
5730
|
+
}, $strip>>;
|
|
5731
|
+
}, $strip>>;
|
|
5732
|
+
}, $strip>;
|
|
5733
|
+
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
5734
|
+
log: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
5735
|
+
memberHabitId: ZodString;
|
|
5736
|
+
day: ZodISODate;
|
|
5737
|
+
value: ZodOptional<ZodNumber>;
|
|
5738
|
+
}, $strip>, ZodObject< {
|
|
5739
|
+
data: ZodObject< {
|
|
5740
|
+
memberHabitId: ZodString;
|
|
5741
|
+
day: ZodISODate;
|
|
5742
|
+
value: ZodNullable<ZodNumber>;
|
|
5743
|
+
met: ZodBoolean;
|
|
5744
|
+
source: ZodEnum< {
|
|
5745
|
+
member: "member";
|
|
5746
|
+
staff: "staff";
|
|
5747
|
+
}>;
|
|
5748
|
+
loggedByName: ZodNullable<ZodString>;
|
|
5749
|
+
loggedAt: ZodDate;
|
|
5750
|
+
}, $strip>;
|
|
5751
|
+
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
5752
|
+
unlog: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
5753
|
+
memberHabitId: ZodString;
|
|
5754
|
+
day: ZodISODate;
|
|
5755
|
+
}, $strip>, ZodObject< {
|
|
5756
|
+
data: ZodObject< {
|
|
5757
|
+
deleted: ZodBoolean;
|
|
5758
|
+
}, $strip>;
|
|
5759
|
+
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
5760
|
+
};
|
|
4382
5761
|
progress: {
|
|
4383
|
-
getAdherence: DecoratedProcedure<MergedInitialContext< {
|
|
4384
|
-
headers: Headers;
|
|
4385
|
-
} & Record<never, never>, {
|
|
4386
|
-
headers: Headers;
|
|
4387
|
-
} & Record<never, never>, {
|
|
4388
|
-
headers: Headers;
|
|
4389
|
-
}>, MergedCurrentContext< {
|
|
4390
|
-
headers: Headers;
|
|
4391
|
-
}, ApiKeyContext>, ZodObject< {
|
|
5762
|
+
getAdherence: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
4392
5763
|
from: ZodString;
|
|
4393
5764
|
to: ZodString;
|
|
4394
5765
|
}, $strip>, ZodObject< {
|
|
@@ -4406,15 +5777,7 @@ declare const publicRouter: {
|
|
|
4406
5777
|
adherencePct: ZodNumber;
|
|
4407
5778
|
}, $strip>;
|
|
4408
5779
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
4409
|
-
getSummary: DecoratedProcedure<MergedInitialContext< {
|
|
4410
|
-
headers: Headers;
|
|
4411
|
-
} & Record<never, never>, {
|
|
4412
|
-
headers: Headers;
|
|
4413
|
-
} & Record<never, never>, {
|
|
4414
|
-
headers: Headers;
|
|
4415
|
-
}>, MergedCurrentContext< {
|
|
4416
|
-
headers: Headers;
|
|
4417
|
-
}, ApiKeyContext>, ZodObject< {
|
|
5780
|
+
getSummary: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
4418
5781
|
period: ZodDefault<ZodEnum< {
|
|
4419
5782
|
"4w": "4w";
|
|
4420
5783
|
"12w": "12w";
|
|
@@ -4445,32 +5808,48 @@ declare const publicRouter: {
|
|
|
4445
5808
|
}, $strip>>;
|
|
4446
5809
|
}, $strip>;
|
|
4447
5810
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
4448
|
-
getStreak: DecoratedProcedure<MergedInitialContext< {
|
|
4449
|
-
headers: Headers;
|
|
4450
|
-
} & Record<never, never>, {
|
|
4451
|
-
headers: Headers;
|
|
4452
|
-
} & Record<never, never>, {
|
|
4453
|
-
headers: Headers;
|
|
4454
|
-
}>, MergedCurrentContext< {
|
|
4455
|
-
headers: Headers;
|
|
4456
|
-
}, ApiKeyContext>, ZodObject< {}, $strip>, ZodObject< {
|
|
5811
|
+
getStreak: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {}, $strip>, ZodObject< {
|
|
4457
5812
|
data: ZodObject< {
|
|
4458
5813
|
currentStreakDays: ZodNumber;
|
|
4459
5814
|
longestStreakDays: ZodNumber;
|
|
4460
5815
|
lastWorkoutAt: ZodNullable<ZodString>;
|
|
4461
5816
|
}, $strip>;
|
|
4462
5817
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
5818
|
+
getVolume: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {}, $strip>, ZodObject< {
|
|
5819
|
+
data: ZodObject< {
|
|
5820
|
+
weekStart: ZodISODate;
|
|
5821
|
+
groups: ZodArray<ZodObject< {
|
|
5822
|
+
group: ZodEnum< {
|
|
5823
|
+
chest: "chest";
|
|
5824
|
+
shoulders: "shoulders";
|
|
5825
|
+
core: "core";
|
|
5826
|
+
other: "other";
|
|
5827
|
+
back: "back";
|
|
5828
|
+
biceps: "biceps";
|
|
5829
|
+
triceps: "triceps";
|
|
5830
|
+
forearms: "forearms";
|
|
5831
|
+
quads: "quads";
|
|
5832
|
+
hamstrings: "hamstrings";
|
|
5833
|
+
glutes: "glutes";
|
|
5834
|
+
calves: "calves";
|
|
5835
|
+
abs: "abs";
|
|
5836
|
+
obliques: "obliques";
|
|
5837
|
+
traps: "traps";
|
|
5838
|
+
lats: "lats";
|
|
5839
|
+
"hip flexors": "hip flexors";
|
|
5840
|
+
}>;
|
|
5841
|
+
sets: ZodNumber;
|
|
5842
|
+
}, $strip>>;
|
|
5843
|
+
unattributedSets: ZodNumber;
|
|
5844
|
+
totalSets: ZodNumber;
|
|
5845
|
+
}, $strip>;
|
|
5846
|
+
meta: ZodObject< {
|
|
5847
|
+
timeZone: ZodString;
|
|
5848
|
+
}, $strip>;
|
|
5849
|
+
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
4463
5850
|
};
|
|
4464
5851
|
media: {
|
|
4465
|
-
get: DecoratedProcedure<MergedInitialContext< {
|
|
4466
|
-
headers: Headers;
|
|
4467
|
-
} & Record<never, never>, {
|
|
4468
|
-
headers: Headers;
|
|
4469
|
-
} & Record<never, never>, {
|
|
4470
|
-
headers: Headers;
|
|
4471
|
-
}>, MergedCurrentContext< {
|
|
4472
|
-
headers: Headers;
|
|
4473
|
-
}, ApiKeyContext>, ZodObject< {
|
|
5852
|
+
get: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
4474
5853
|
id: ZodString;
|
|
4475
5854
|
}, $strip>, ZodObject< {
|
|
4476
5855
|
data: ZodObject< {
|
|
@@ -4487,57 +5866,110 @@ declare const publicRouter: {
|
|
|
4487
5866
|
}, $strip>;
|
|
4488
5867
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
4489
5868
|
};
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
headers: Headers;
|
|
4493
|
-
} & Record<never, never>, {
|
|
4494
|
-
headers: Headers;
|
|
4495
|
-
} & Record<never, never>, {
|
|
4496
|
-
headers: Headers;
|
|
4497
|
-
}>, MergedCurrentContext< {
|
|
4498
|
-
headers: Headers;
|
|
4499
|
-
}, ApiKeyContext>, Schema<unknown, unknown>, ZodObject< {
|
|
5869
|
+
app: {
|
|
5870
|
+
bootstrap: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, Schema<unknown, unknown>, ZodObject< {
|
|
4500
5871
|
data: ZodObject< {
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
buildStatus: ZodEnum< {
|
|
4513
|
-
idle: "idle";
|
|
4514
|
-
failed: "failed";
|
|
4515
|
-
building: "building";
|
|
4516
|
-
published: "published";
|
|
4517
|
-
}>;
|
|
4518
|
-
buildVersion: ZodNullable<ZodString>;
|
|
4519
|
-
helpUrl: ZodNullable<ZodString>;
|
|
4520
|
-
termsUrl: ZodNullable<ZodString>;
|
|
4521
|
-
privacyUrl: ZodNullable<ZodString>;
|
|
4522
|
-
auth: ZodObject< {
|
|
4523
|
-
googleClientId: ZodObject< {
|
|
4524
|
-
ios: ZodNullable<ZodString>;
|
|
4525
|
-
android: ZodNullable<ZodString>;
|
|
4526
|
-
web: ZodNullable<ZodString>;
|
|
5872
|
+
studio: ZodObject< {
|
|
5873
|
+
name: ZodString;
|
|
5874
|
+
logoUrl: ZodNullable<ZodString>;
|
|
5875
|
+
}, $strip>;
|
|
5876
|
+
theme: ZodObject< {
|
|
5877
|
+
palette: ZodObject< {
|
|
5878
|
+
primary: ZodString;
|
|
5879
|
+
secondary: ZodString;
|
|
5880
|
+
accent: ZodString;
|
|
5881
|
+
background: ZodString;
|
|
5882
|
+
text: ZodString;
|
|
4527
5883
|
}, $strip>;
|
|
4528
|
-
|
|
4529
|
-
|
|
5884
|
+
variants: ZodObject< {
|
|
5885
|
+
primaryDeep: ZodString;
|
|
5886
|
+
primarySoft: ZodString;
|
|
5887
|
+
onPrimary: ZodString;
|
|
5888
|
+
accentDeep: ZodString;
|
|
5889
|
+
accentSoft: ZodString;
|
|
5890
|
+
onAccent: ZodString;
|
|
5891
|
+
highlight: ZodString;
|
|
5892
|
+
highlightDeep: ZodString;
|
|
5893
|
+
highlightSoft: ZodString;
|
|
4530
5894
|
}, $strip>;
|
|
5895
|
+
templateId: ZodEnum< {
|
|
5896
|
+
studio: "studio";
|
|
5897
|
+
atelier: "atelier";
|
|
5898
|
+
forge: "forge";
|
|
5899
|
+
sanctum: "sanctum";
|
|
5900
|
+
stride: "stride";
|
|
5901
|
+
maison: "maison";
|
|
5902
|
+
estate: "estate";
|
|
5903
|
+
pulse: "pulse";
|
|
5904
|
+
grit: "grit";
|
|
5905
|
+
}>;
|
|
5906
|
+
themeId: ZodEnum< {
|
|
5907
|
+
paper: "paper";
|
|
5908
|
+
terracotta: "terracotta";
|
|
5909
|
+
cobalt: "cobalt";
|
|
5910
|
+
forest: "forest";
|
|
5911
|
+
lagoon: "lagoon";
|
|
5912
|
+
plum: "plum";
|
|
5913
|
+
rose: "rose";
|
|
5914
|
+
ochre: "ochre";
|
|
5915
|
+
ivory: "ivory";
|
|
5916
|
+
noir: "noir";
|
|
5917
|
+
sage: "sage";
|
|
5918
|
+
carbon: "carbon";
|
|
5919
|
+
ember: "ember";
|
|
5920
|
+
concrete: "concrete";
|
|
5921
|
+
linen: "linen";
|
|
5922
|
+
dune: "dune";
|
|
5923
|
+
dusk: "dusk";
|
|
5924
|
+
daybreak: "daybreak";
|
|
5925
|
+
tidal: "tidal";
|
|
5926
|
+
nightrun: "nightrun";
|
|
5927
|
+
blush: "blush";
|
|
5928
|
+
champagne: "champagne";
|
|
5929
|
+
velvet: "velvet";
|
|
5930
|
+
greige: "greige";
|
|
5931
|
+
clay: "clay";
|
|
5932
|
+
basalt: "basalt";
|
|
5933
|
+
coral: "coral";
|
|
5934
|
+
mint: "mint";
|
|
5935
|
+
night: "night";
|
|
5936
|
+
blaze: "blaze";
|
|
5937
|
+
midnight: "midnight";
|
|
5938
|
+
chalk: "chalk";
|
|
5939
|
+
}>;
|
|
5940
|
+
minAppVersion: ZodString;
|
|
5941
|
+
}, $strip>;
|
|
5942
|
+
themeMinAppVersions: ZodRecord<ZodString, ZodString>;
|
|
5943
|
+
featureOverrides: ZodRecord<ZodString, ZodBoolean>;
|
|
5944
|
+
minAppVersion: ZodNullable<ZodString>;
|
|
5945
|
+
links: ZodObject< {
|
|
5946
|
+
termsUrl: ZodNullable<ZodString>;
|
|
5947
|
+
privacyUrl: ZodNullable<ZodString>;
|
|
5948
|
+
helpUrl: ZodNullable<ZodString>;
|
|
4531
5949
|
}, $strip>;
|
|
4532
5950
|
realtime: ZodObject< {
|
|
4533
5951
|
url: ZodString;
|
|
4534
5952
|
anonKey: ZodString;
|
|
4535
5953
|
}, $strip>;
|
|
5954
|
+
paymentPolicy: ZodObject< {
|
|
5955
|
+
defaultMode: ZodLiteral<"plan_info">;
|
|
5956
|
+
linkOut: ZodArray<ZodObject< {
|
|
5957
|
+
platform: ZodEnum< {
|
|
5958
|
+
ios: "ios";
|
|
5959
|
+
android: "android";
|
|
5960
|
+
}>;
|
|
5961
|
+
storefront: ZodString;
|
|
5962
|
+
conditions: ZodArray<ZodString>;
|
|
5963
|
+
}, $strip>>;
|
|
5964
|
+
}, $strip>;
|
|
5965
|
+
}, $strip>;
|
|
5966
|
+
meta: ZodObject< {
|
|
5967
|
+
etag: ZodString;
|
|
4536
5968
|
}, $strip>;
|
|
4537
5969
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
4538
5970
|
};
|
|
4539
|
-
|
|
4540
|
-
|
|
5971
|
+
join: {
|
|
5972
|
+
resolve: DecoratedProcedure<MergedInitialContext< {
|
|
4541
5973
|
headers: Headers;
|
|
4542
5974
|
} & Record<never, never>, {
|
|
4543
5975
|
headers: Headers;
|
|
@@ -4545,7 +5977,91 @@ declare const publicRouter: {
|
|
|
4545
5977
|
headers: Headers;
|
|
4546
5978
|
}>, MergedCurrentContext< {
|
|
4547
5979
|
headers: Headers;
|
|
4548
|
-
},
|
|
5980
|
+
}, Record<never, never>>, ZodObject< {
|
|
5981
|
+
code: ZodString;
|
|
5982
|
+
}, $strip>, ZodObject< {
|
|
5983
|
+
data: ZodObject< {
|
|
5984
|
+
code: ZodString;
|
|
5985
|
+
clientId: ZodString;
|
|
5986
|
+
studio: ZodObject< {
|
|
5987
|
+
name: ZodString;
|
|
5988
|
+
logoUrl: ZodNullable<ZodString>;
|
|
5989
|
+
coaches: ZodArray<ZodObject< {
|
|
5990
|
+
name: ZodString;
|
|
5991
|
+
avatarUrl: ZodNullable<ZodString>;
|
|
5992
|
+
}, $strip>>;
|
|
5993
|
+
programCount: ZodNumber;
|
|
5994
|
+
}, $strip>;
|
|
5995
|
+
theme: ZodObject< {
|
|
5996
|
+
palette: ZodObject< {
|
|
5997
|
+
primary: ZodString;
|
|
5998
|
+
secondary: ZodString;
|
|
5999
|
+
accent: ZodString;
|
|
6000
|
+
background: ZodString;
|
|
6001
|
+
text: ZodString;
|
|
6002
|
+
}, $strip>;
|
|
6003
|
+
variants: ZodObject< {
|
|
6004
|
+
primaryDeep: ZodString;
|
|
6005
|
+
primarySoft: ZodString;
|
|
6006
|
+
onPrimary: ZodString;
|
|
6007
|
+
accentDeep: ZodString;
|
|
6008
|
+
accentSoft: ZodString;
|
|
6009
|
+
onAccent: ZodString;
|
|
6010
|
+
highlight: ZodString;
|
|
6011
|
+
highlightDeep: ZodString;
|
|
6012
|
+
highlightSoft: ZodString;
|
|
6013
|
+
}, $strip>;
|
|
6014
|
+
templateId: ZodEnum< {
|
|
6015
|
+
studio: "studio";
|
|
6016
|
+
atelier: "atelier";
|
|
6017
|
+
forge: "forge";
|
|
6018
|
+
sanctum: "sanctum";
|
|
6019
|
+
stride: "stride";
|
|
6020
|
+
maison: "maison";
|
|
6021
|
+
estate: "estate";
|
|
6022
|
+
pulse: "pulse";
|
|
6023
|
+
grit: "grit";
|
|
6024
|
+
}>;
|
|
6025
|
+
themeId: ZodEnum< {
|
|
6026
|
+
paper: "paper";
|
|
6027
|
+
terracotta: "terracotta";
|
|
6028
|
+
cobalt: "cobalt";
|
|
6029
|
+
forest: "forest";
|
|
6030
|
+
lagoon: "lagoon";
|
|
6031
|
+
plum: "plum";
|
|
6032
|
+
rose: "rose";
|
|
6033
|
+
ochre: "ochre";
|
|
6034
|
+
ivory: "ivory";
|
|
6035
|
+
noir: "noir";
|
|
6036
|
+
sage: "sage";
|
|
6037
|
+
carbon: "carbon";
|
|
6038
|
+
ember: "ember";
|
|
6039
|
+
concrete: "concrete";
|
|
6040
|
+
linen: "linen";
|
|
6041
|
+
dune: "dune";
|
|
6042
|
+
dusk: "dusk";
|
|
6043
|
+
daybreak: "daybreak";
|
|
6044
|
+
tidal: "tidal";
|
|
6045
|
+
nightrun: "nightrun";
|
|
6046
|
+
blush: "blush";
|
|
6047
|
+
champagne: "champagne";
|
|
6048
|
+
velvet: "velvet";
|
|
6049
|
+
greige: "greige";
|
|
6050
|
+
clay: "clay";
|
|
6051
|
+
basalt: "basalt";
|
|
6052
|
+
coral: "coral";
|
|
6053
|
+
mint: "mint";
|
|
6054
|
+
night: "night";
|
|
6055
|
+
blaze: "blaze";
|
|
6056
|
+
midnight: "midnight";
|
|
6057
|
+
chalk: "chalk";
|
|
6058
|
+
}>;
|
|
6059
|
+
}, $strip>;
|
|
6060
|
+
}, $strip>;
|
|
6061
|
+
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
6062
|
+
};
|
|
6063
|
+
subscription: {
|
|
6064
|
+
listPlans: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, Schema<unknown, unknown>, ZodObject< {
|
|
4549
6065
|
data: ZodObject< {
|
|
4550
6066
|
currency: ZodString;
|
|
4551
6067
|
plans: ZodArray<ZodObject< {
|
|
@@ -4567,21 +6083,14 @@ declare const publicRouter: {
|
|
|
4567
6083
|
premium_articles: "premium_articles";
|
|
4568
6084
|
coaching_checkins: "coaching_checkins";
|
|
4569
6085
|
coaching_messages: "coaching_messages";
|
|
6086
|
+
coaching_habits: "coaching_habits";
|
|
4570
6087
|
}>;
|
|
4571
6088
|
label: ZodString;
|
|
4572
6089
|
}, $strip>>;
|
|
4573
6090
|
}, $strip>>;
|
|
4574
6091
|
}, $strip>;
|
|
4575
6092
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
4576
|
-
getStatus: DecoratedProcedure<MergedInitialContext< {
|
|
4577
|
-
headers: Headers;
|
|
4578
|
-
} & Record<never, never>, {
|
|
4579
|
-
headers: Headers;
|
|
4580
|
-
} & Record<never, never>, {
|
|
4581
|
-
headers: Headers;
|
|
4582
|
-
}>, MergedCurrentContext< {
|
|
4583
|
-
headers: Headers;
|
|
4584
|
-
}, ApiKeyContext>, Schema<unknown, unknown>, ZodObject< {
|
|
6093
|
+
getStatus: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, Schema<unknown, unknown>, ZodObject< {
|
|
4585
6094
|
data: ZodObject< {
|
|
4586
6095
|
hasActiveSubscription: ZodBoolean;
|
|
4587
6096
|
subscription: ZodNullable<ZodObject< {
|
|
@@ -4614,18 +6123,11 @@ declare const publicRouter: {
|
|
|
4614
6123
|
premium_articles: "premium_articles";
|
|
4615
6124
|
coaching_checkins: "coaching_checkins";
|
|
4616
6125
|
coaching_messages: "coaching_messages";
|
|
6126
|
+
coaching_habits: "coaching_habits";
|
|
4617
6127
|
}>>]>;
|
|
4618
6128
|
}, $strip>;
|
|
4619
6129
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
4620
|
-
createCheckout: DecoratedProcedure<MergedInitialContext< {
|
|
4621
|
-
headers: Headers;
|
|
4622
|
-
} & Record<never, never>, {
|
|
4623
|
-
headers: Headers;
|
|
4624
|
-
} & Record<never, never>, {
|
|
4625
|
-
headers: Headers;
|
|
4626
|
-
}>, MergedCurrentContext< {
|
|
4627
|
-
headers: Headers;
|
|
4628
|
-
}, ApiKeyContext>, ZodObject< {
|
|
6130
|
+
createCheckout: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
4629
6131
|
planId: ZodString;
|
|
4630
6132
|
interval: ZodDefault<ZodEnum< {
|
|
4631
6133
|
monthly: "monthly";
|
|
@@ -4637,15 +6139,7 @@ declare const publicRouter: {
|
|
|
4637
6139
|
url: ZodString;
|
|
4638
6140
|
}, $strip>;
|
|
4639
6141
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
4640
|
-
confirmCheckout: DecoratedProcedure<MergedInitialContext< {
|
|
4641
|
-
headers: Headers;
|
|
4642
|
-
} & Record<never, never>, {
|
|
4643
|
-
headers: Headers;
|
|
4644
|
-
} & Record<never, never>, {
|
|
4645
|
-
headers: Headers;
|
|
4646
|
-
}>, MergedCurrentContext< {
|
|
4647
|
-
headers: Headers;
|
|
4648
|
-
}, ApiKeyContext>, ZodObject< {
|
|
6142
|
+
confirmCheckout: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
4649
6143
|
sessionId: ZodString;
|
|
4650
6144
|
}, $strip>, ZodObject< {
|
|
4651
6145
|
data: ZodObject< {
|
|
@@ -4680,19 +6174,12 @@ declare const publicRouter: {
|
|
|
4680
6174
|
premium_articles: "premium_articles";
|
|
4681
6175
|
coaching_checkins: "coaching_checkins";
|
|
4682
6176
|
coaching_messages: "coaching_messages";
|
|
6177
|
+
coaching_habits: "coaching_habits";
|
|
4683
6178
|
}>>]>;
|
|
4684
6179
|
confirmed: ZodBoolean;
|
|
4685
6180
|
}, $strip>;
|
|
4686
6181
|
}, $strip>, Record<never, never>, Record<never, never>>;
|
|
4687
|
-
createPortal: DecoratedProcedure<MergedInitialContext< {
|
|
4688
|
-
headers: Headers;
|
|
4689
|
-
} & Record<never, never>, {
|
|
4690
|
-
headers: Headers;
|
|
4691
|
-
} & Record<never, never>, {
|
|
4692
|
-
headers: Headers;
|
|
4693
|
-
}>, MergedCurrentContext< {
|
|
4694
|
-
headers: Headers;
|
|
4695
|
-
}, ApiKeyContext>, ZodObject< {
|
|
6182
|
+
createPortal: DecoratedProcedure<MergedInitialContext<DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext & Record<never, never>, DeveloperAppRequestContext>, MergedCurrentContext<DeveloperAppRequestContext, ApiKeyContext>, ZodObject< {
|
|
4696
6183
|
returnUrl: ZodOptional<ZodString>;
|
|
4697
6184
|
}, $strip>, ZodObject< {
|
|
4698
6185
|
data: ZodObject< {
|
|
@@ -4758,7 +6245,7 @@ export declare interface RealtimeClientLike {
|
|
|
4758
6245
|
};
|
|
4759
6246
|
}
|
|
4760
6247
|
|
|
4761
|
-
/** fytkit's public Supabase Realtime settings, from `
|
|
6248
|
+
/** fytkit's public Supabase Realtime settings, from `app.bootstrap` (`data.realtime`). */
|
|
4762
6249
|
export declare interface RealtimeConnection {
|
|
4763
6250
|
/** The Supabase project URL. */
|
|
4764
6251
|
readonly url: string;
|
|
@@ -4780,6 +6267,90 @@ export declare interface RealtimeConnection {
|
|
|
4780
6267
|
*/
|
|
4781
6268
|
export declare function refusalData<R extends keyof FytkitRefusalDataByReason>(error: unknown, reason: R): FytkitRefusalDataByReason[R] | null;
|
|
4782
6269
|
|
|
6270
|
+
declare type RequestSurface = "rpc" | "rest";
|
|
6271
|
+
|
|
6272
|
+
/**
|
|
6273
|
+
* Returned by `auth.resendVerification`. `already_verified`: the member's
|
|
6274
|
+
* address is verified (say, the link was opened on another device), so
|
|
6275
|
+
* nothing was sent.
|
|
6276
|
+
*/
|
|
6277
|
+
export declare interface ResendVerificationResult {
|
|
6278
|
+
readonly status: "sent" | "already_verified";
|
|
6279
|
+
}
|
|
6280
|
+
|
|
6281
|
+
/**
|
|
6282
|
+
* Resolves a studio's join code, as its QR code or join link carries it or a
|
|
6283
|
+
* member types it, to the studio's Fytkit Coach client id, name, logo, app
|
|
6284
|
+
* theme, public coach profile and published programme count. Needs no client
|
|
6285
|
+
* id or session. Codes are case-insensitive and spaces and hyphens are
|
|
6286
|
+
* ignored, so pass what the member typed as it is.
|
|
6287
|
+
*
|
|
6288
|
+
* Rejects with a `FytkitError`, as every SDK method does:
|
|
6289
|
+
* - `{ kind: "not_found", refusal: { reason: "join_code_inactive" } }`: no
|
|
6290
|
+
* studio has that code, the studio replaced it with a new one, or the
|
|
6291
|
+
* input has something other than letters, digits, spaces and hyphens, or
|
|
6292
|
+
* more than 64 letters and digits (separators are stripped first; then
|
|
6293
|
+
* without a request). Show
|
|
6294
|
+
* "This code is no longer active. Ask your coach for a new one." The
|
|
6295
|
+
* cases are deliberately indistinguishable.
|
|
6296
|
+
* - `{ kind: "rate_limited", retryAfter }`: 60 lookups a minute per IP
|
|
6297
|
+
* address; wait `retryAfter` milliseconds.
|
|
6298
|
+
* - `{ kind: "network" }` when the request never reached the server.
|
|
6299
|
+
* - `{ kind: "server", status }` for anything else, e.g. a 404 that isn't
|
|
6300
|
+
* the API's own answer (a wrong `baseUrl`, or a proxy in front of it).
|
|
6301
|
+
*
|
|
6302
|
+
* ```ts
|
|
6303
|
+
* const studio = await resolveJoinCode(scannedCode);
|
|
6304
|
+
* const fytkit = createFytkitClient({ clientId: studio.clientId });
|
|
6305
|
+
* ```
|
|
6306
|
+
*/
|
|
6307
|
+
export declare function resolveJoinCode(code: string, options?: ResolveJoinCodeOptions): Promise<JoinCodeResolution>;
|
|
6308
|
+
|
|
6309
|
+
/** Options for {@link resolveJoinCode}. */
|
|
6310
|
+
export declare interface ResolveJoinCodeOptions {
|
|
6311
|
+
/** The API's origin, as for `createFytkitClient`. Defaults to `https://api.fytkit.com`. */
|
|
6312
|
+
readonly baseUrl?: string;
|
|
6313
|
+
/** A `fetch` to use instead of the global one. */
|
|
6314
|
+
readonly fetch?: typeof fetch;
|
|
6315
|
+
}
|
|
6316
|
+
|
|
6317
|
+
/**
|
|
6318
|
+
* Decides, for the storefront the device's store reports, whether the app
|
|
6319
|
+
* shows "Subscribe" (a link out) or "What your plan includes". Pure: it reads
|
|
6320
|
+
* the policy from a stored `app.bootstrap`, so it works offline. A missing or
|
|
6321
|
+
* malformed policy (e.g. a snapshot stored before it existed) is plan info.
|
|
6322
|
+
*
|
|
6323
|
+
* ```ts
|
|
6324
|
+
* const { mode } = resolvePaymentMode(data.paymentPolicy, {
|
|
6325
|
+
* platform: "ios",
|
|
6326
|
+
* storefront: storefrontCountryCode, // from StoreKit, e.g. "USA"
|
|
6327
|
+
* });
|
|
6328
|
+
* if (mode === "link_out") showSubscribe();
|
|
6329
|
+
* else showWhatYourPlanIncludes();
|
|
6330
|
+
* ```
|
|
6331
|
+
*/
|
|
6332
|
+
export declare function resolvePaymentMode(policy: PaymentPolicy | null | undefined, options: ResolvePaymentModeOptions): PaymentMode;
|
|
6333
|
+
|
|
6334
|
+
/** Options for {@link resolvePaymentMode}. */
|
|
6335
|
+
export declare interface ResolvePaymentModeOptions {
|
|
6336
|
+
/** The store the running app was installed from: `"ios"` or `"android"`. */
|
|
6337
|
+
readonly platform: PaymentPlatform;
|
|
6338
|
+
/**
|
|
6339
|
+
* The storefront the store reports, case-insensitive: on iOS StoreKit's
|
|
6340
|
+
* `Storefront.current?.countryCode` (ISO 3166-1 alpha-3, e.g. "USA"); on
|
|
6341
|
+
* Android Play Billing's `BillingConfig.getCountryCode()` (alpha-2, e.g.
|
|
6342
|
+
* "US"). Pass `null` when the store reports none: that is plan info.
|
|
6343
|
+
*/
|
|
6344
|
+
readonly storefront: string | null | undefined;
|
|
6345
|
+
/**
|
|
6346
|
+
* The conditions the app meets in this storefront (see `conditions` in
|
|
6347
|
+
* `paymentPolicy.linkOut`), e.g. `"apple_external_purchase_link_entitlement"`
|
|
6348
|
+
* once `ExternalPurchaseLink.canOpen` is true. A storefront whose
|
|
6349
|
+
* conditions aren't all met, or names one the app doesn't know, is plan info.
|
|
6350
|
+
*/
|
|
6351
|
+
readonly conditionsMet?: readonly string[];
|
|
6352
|
+
}
|
|
6353
|
+
|
|
4783
6354
|
/** Which second factors the signed-in user has configured. */
|
|
4784
6355
|
export declare interface SecurityStatus {
|
|
4785
6356
|
readonly twoFactorEnabled: boolean;
|
|
@@ -4834,7 +6405,7 @@ export declare type SignInResult = {
|
|
|
4834
6405
|
* Supabase Realtime, and returns a function that ends the subscription.
|
|
4835
6406
|
*
|
|
4836
6407
|
* It fetches a token (`messages.realtimeToken`) and the connection settings
|
|
4837
|
-
* (`
|
|
6408
|
+
* (`app.bootstrap`), creates a client with `options.realtime`, hands the
|
|
4838
6409
|
* socket the token, and joins the private topic the token names. The token
|
|
4839
6410
|
* is renewed a minute before it expires, on the open channel; a renewed
|
|
4840
6411
|
* token for another topic (another trainee signed in on the same client)
|