@sunsteel/contracts 0.91.0 → 0.93.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/dist/index.d.cts CHANGED
@@ -75,256 +75,6 @@ interface UpdateLocaleRequest {
75
75
  locale: AppLocale | null;
76
76
  }
77
77
 
78
- /**
79
- * Who may start a conversation with a member. `FOLLOWED`: members they follow.
80
- * `EVERYONE` (MSG-02): members they follow reach the inbox, anyone else lands
81
- * in Requests. `NOBODY`: no one may start a new one.
82
- */
83
- declare const MESSAGE_PERMISSIONS: readonly ["FOLLOWED", "EVERYONE", "NOBODY"];
84
- type MessagePermission = (typeof MESSAGE_PERMISSIONS)[number];
85
- declare const DEFAULT_MESSAGE_PERMISSION: MessagePermission;
86
- /** Characters in one message, counted as code points. */
87
- declare const MESSAGE_BODY_MAX = 2000;
88
- /** Messages one member may send in a rolling minute. */
89
- declare const MESSAGES_PER_MINUTE_MAX = 30;
90
- /** Conversations one member may start in a rolling day. */
91
- declare const NEW_CONVERSATIONS_PER_DAY_MAX = 20;
92
- declare const CONVERSATIONS_PAGE_SIZE = 20;
93
- declare const MESSAGES_PAGE_SIZE = 30;
94
- /** Length as a reader counts it: an emoji is one character, not two. */
95
- declare function messageBodyLength(body: string): number;
96
- /**
97
- * The stored form of a typed message: line endings made `\n` and the ends
98
- * trimmed, the lines in between kept as written. Null when it is empty or too
99
- * long -- it is refused rather than cut, because a message clipped mid-sentence
100
- * would misrepresent its author.
101
- */
102
- declare function normalizeMessageBody(body: string): string | null;
103
- /** The other participant, or null once their account was deleted. */
104
- interface ConversationMember {
105
- id: string;
106
- username: string;
107
- name: string;
108
- avatarUrl: string | null;
109
- }
110
- interface ConversationMessage {
111
- id: string;
112
- sentByMe: boolean;
113
- /**
114
- * Null once its author deleted it; the place stays as "Message deleted".
115
- * Also null for the other participant while moderation hides it (MSG-09).
116
- */
117
- body: string | null;
118
- deleted: boolean;
119
- /**
120
- * MSG-09: a moderator hid this message from the other participant. They read
121
- * "Removed by moderation" in its place; its author still reads the text and
122
- * is told it is hidden.
123
- */
124
- hiddenByModeration: boolean;
125
- createdAt: IsoDateString;
126
- }
127
- /**
128
- * MSG-02: a conversation that is still a request. `INCOMING`: the viewer may
129
- * accept, decline or block. `OUTGOING`: the viewer sent it and waits -- told
130
- * neither whether it was seen nor whether it was declined.
131
- */
132
- interface ConversationRequest {
133
- direction: "INCOMING" | "OUTGOING";
134
- }
135
- interface ConversationSummary {
136
- id: string;
137
- /** Null when the other member deleted their account ("Deleted member"). */
138
- counterpart: ConversationMember | null;
139
- /** The newest message the viewer can see, or null when there is none. */
140
- lastMessage: ConversationMessage | null;
141
- lastMessageAt: IsoDateString | null;
142
- /**
143
- * Whether the viewer may write in it now. False when the other member's
144
- * account is gone, or the viewer's own messaging is unavailable or
145
- * restricted.
146
- */
147
- canSend: boolean;
148
- /**
149
- * MSG-09: a moderator restricted the viewer's messaging, which is why they
150
- * cannot write. Only ever about the viewer: nobody else is told.
151
- */
152
- messagingRestricted: boolean;
153
- /**
154
- * MSG-03: the other member wrote something the viewer has not seen -- a
155
- * message after the viewer's read position that is neither deleted nor
156
- * removed for them. The viewer's own messages never count.
157
- */
158
- unread: boolean;
159
- /**
160
- * MSG-03: the viewer's read position, where "new since you last looked"
161
- * starts. Null when they have never read the conversation. It is the
162
- * viewer's alone: no read receipts, so a sender never learns it.
163
- */
164
- lastReadAt: IsoDateString | null;
165
- /** MSG-02: null once accepted, or for a conversation that never was a request. */
166
- request: ConversationRequest | null;
167
- }
168
- /**
169
- * MSG-02: GET /conversations?box=. The inbox holds accepted conversations
170
- * and the viewer's own requests; Requests holds the ones waiting for them.
171
- */
172
- declare const CONVERSATION_BOXES: readonly ["INBOX", "REQUESTS"];
173
- type ConversationBox = (typeof CONVERSATION_BOXES)[number];
174
- /**
175
- * MSG-02: after a decline, the same member's new request is refused for this
176
- * many days, unless the recipient follows them or writes first.
177
- */
178
- declare const MESSAGE_REQUEST_DECLINE_COOLDOWN_DAYS = 30;
179
- /**
180
- * MSG-08: a message push waits this long and is dropped if the conversation
181
- * was read meanwhile, so two members talking live do not buzz each other.
182
- */
183
- declare const MESSAGE_PUSH_DELAY_SECONDS = 30;
184
- /** GET /conversations, newest activity first. */
185
- interface ConversationsResponse {
186
- conversations: ConversationSummary[];
187
- nextCursor: string | null;
188
- /** MSG-09: the viewer's own messaging is restricted by moderation. */
189
- messagingRestricted: boolean;
190
- }
191
- /**
192
- * MSG-09: a report of a message captures it and at most this many messages
193
- * before it in its conversation, as the reporter could see them then.
194
- */
195
- declare const MESSAGE_REPORT_CONTEXT_BEFORE = 5;
196
- /**
197
- * MSG-03: POST /conversations/:id/read. Moves the viewer's read position to
198
- * the message they have seen (`through`, the newest one on their screen),
199
- * never backwards, so a message that arrived after it stays unread.
200
- */
201
- interface MarkConversationReadRequest {
202
- through: string;
203
- }
204
- /** MSG-03: GET /conversations/unread, for the navigation's count. */
205
- interface UnreadConversationsResponse {
206
- /** Conversations with something new, not messages (owner, 2026-10-06). */
207
- unreadConversations: number;
208
- /**
209
- * MSG-02: requests waiting for the viewer. For the Requests tab only: they
210
- * never count in the navigation (owner, 2026-10-06).
211
- */
212
- requests: number;
213
- }
214
- /** GET /conversations/:id/messages, newest first; `cursor` pages older. */
215
- interface ConversationMessagesResponse {
216
- conversation: ConversationSummary;
217
- messages: ConversationMessage[];
218
- nextCursor: string | null;
219
- }
220
- /**
221
- * POST /conversations. Starts a conversation with its first message, so an
222
- * empty conversation never exists; when one with this member already exists
223
- * the message is sent there instead. `recipient` is a username or an id.
224
- */
225
- interface StartConversationRequest {
226
- recipient: string;
227
- body: string;
228
- }
229
- /** POST /conversations/:id/messages. */
230
- interface SendMessageRequest {
231
- body: string;
232
- }
233
- interface SendMessageResponse {
234
- conversation: ConversationSummary;
235
- message: ConversationMessage;
236
- }
237
- /** PUT /users/preferences/messages. */
238
- interface UpdateMessagePermissionRequest {
239
- messagePermission: MessagePermission;
240
- }
241
- /**
242
- * On the authenticated member profile only: whether the viewer may start a
243
- * conversation, and the one they already have. The server decides; a viewer
244
- * who may not is told nothing more.
245
- */
246
- interface MemberMessagingState {
247
- canStart: boolean;
248
- conversationId: string | null;
249
- /** MSG-02: a first message would land in their Requests. */
250
- asRequest: boolean;
251
- }
252
- declare function isMessagePermission(value: unknown): value is MessagePermission;
253
-
254
- /** A step id as the registry names it: lowercase words joined by hyphens. */
255
- declare const ONBOARDING_STEP_ID_PATTERN_SOURCE = "^[a-z][a-z0-9-]{0,39}$";
256
- declare const ONBOARDING_STEPS_MAX = 30;
257
- declare const ONBOARDING_VERSION_MAX = 1000;
258
- interface OnboardingState {
259
- /**
260
- * The registry version the account completed. A new account starts at 0;
261
- * accounts that existed when onboarding shipped start at 1, so they are
262
- * offered only steps added later.
263
- */
264
- completedVersion: number;
265
- /** Steps answered or skipped since that version, so the flow resumes. */
266
- stepsDone: string[];
267
- /** When the flow first opened by itself; it never does again. */
268
- offeredAt: IsoDateString | null;
269
- }
270
- /**
271
- * PUT /users/preferences/onboarding. Partial: `stepsDone` is added to what is
272
- * stored (two devices never undo each other), `completedVersion` only ever
273
- * rises and clears the steps, and `offered` records the first opening once.
274
- */
275
- interface UpdateOnboardingRequest {
276
- stepsDone?: string[];
277
- completedVersion?: number;
278
- offered?: true;
279
- }
280
- declare function isOnboardingStepId(value: unknown): value is string;
281
-
282
- /**
283
- * The weekday a week starts on, as `Date.getDay()` numbers it: 1 Monday, 0
284
- * Sunday. Monday is everyone's default, so nothing changes until a member
285
- * chooses. **The rank never follows it**: its active weeks are Monday weeks
286
- * for every member, because a rank is public and must mean the same on every
287
- * profile.
288
- */
289
- declare const WEEK_STARTS: readonly [1, 0];
290
- type WeekStartsOn = (typeof WEEK_STARTS)[number];
291
- declare const DEFAULT_WEEK_STARTS_ON: WeekStartsOn;
292
- declare function isWeekStartsOn(value: unknown): value is WeekStartsOn;
293
- /**
294
- * The first day of the week a `YYYY-MM-DD` calendar date belongs to, as a
295
- * `YYYY-MM-DD` date, for a week starting on `weekStartsOn`. Calendar
296
- * arithmetic only: no time zone, so a daylight-saving change cannot move it.
297
- */
298
- declare function weekStartOf(dateKey: string, weekStartsOn?: WeekStartsOn): string;
299
- /** PUT /users/preferences/week-start */
300
- interface UpdateWeekStartRequest {
301
- weekStartsOn: WeekStartsOn;
302
- }
303
- /**
304
- * How lengths are shown and typed: centimetres, or inches (a height in feet
305
- * and inches). Every length is **stored in centimetres**, as weights are
306
- * stored in kilograms; the unit is only the display and entry boundary.
307
- */
308
- declare const LENGTH_UNITS: readonly ["CM", "IN"];
309
- type LengthUnit = (typeof LENGTH_UNITS)[number];
310
- declare const CM_PER_INCH = 2.54;
311
- declare const INCHES_PER_FOOT = 12;
312
- /** Centimetres as inches, to two decimals. */
313
- declare function cmToInches(cm: number): number;
314
- /** Inches as centimetres, to two decimals. */
315
- declare function inchesToCm(inches: number): number;
316
- /**
317
- * A height in centimetres as whole feet and inches to one decimal. The total
318
- * is rounded before it is split, so 71.98 in reads as 6 ft 0 in, never as
319
- * 5 ft 12 in.
320
- */
321
- declare function cmToFeetInches(cm: number): {
322
- feet: number;
323
- inches: number;
324
- };
325
- /** Feet and inches as centimetres, to two decimals. */
326
- declare function feetInchesToCm(feet: number, inches: number): number;
327
-
328
78
  declare const SET_KINDS: readonly ["WORKING", "WARMUP", "DROP", "OPTIONAL"];
329
79
  type SetKind = (typeof SET_KINDS)[number];
330
80
  declare const SET_KIND_LABELS: Record<SetKind, string>;
@@ -611,13 +361,98 @@ interface SkipOccurrenceRequest {
611
361
  date: CalendarDate;
612
362
  }
613
363
 
614
- /** One routine may have this many current, non-overlapping planned blocks. */
615
- declare const ROUTINE_TRAINING_BLOCKS_MAX = 24;
616
- /** A started block keeps at most this many immutable revisions. */
617
- declare const ROUTINE_TRAINING_BLOCK_REVISIONS_MAX = 20;
618
- declare const ROUTINE_TRAINING_BLOCK_NAME_MAX = 60;
619
- declare const ROUTINE_TRAINING_BLOCK_STATES: readonly ["FUTURE", "ACTIVE", "COMPLETE"];
620
- type RoutineTrainingBlockState = (typeof ROUTINE_TRAINING_BLOCK_STATES)[number];
364
+ /** The longest deload, inclusive of both ends. */
365
+ declare const DELOAD_MAX_DAYS = 14;
366
+ /** The length a new deload is offered with. */
367
+ declare const DELOAD_DEFAULT_DAYS = 7;
368
+ /** How much lighter each set's load is, in percent. */
369
+ declare const DELOAD_LOAD_REDUCTIONS: readonly [0, 10, 20, 30, 40];
370
+ type DeloadLoadReduction = (typeof DELOAD_LOAD_REDUCTIONS)[number];
371
+ declare const DELOAD_DEFAULT_LOAD_REDUCTION: DeloadLoadReduction;
372
+ /** `HALF` keeps the first half of each exercise's sets, rounded up. */
373
+ declare const DELOAD_SET_MODES: readonly ["ALL", "HALF"];
374
+ type DeloadSetMode = (typeof DELOAD_SET_MODES)[number];
375
+ declare const DELOAD_DEFAULT_SET_MODE: DeloadSetMode;
376
+ declare const TEMPORARY_OVERRIDE_KINDS: readonly ["DELOAD"];
377
+ type TemporaryOverrideKind = (typeof TEMPORARY_OVERRIDE_KINDS)[number];
378
+ declare const TEMPORARY_OVERRIDE_SOURCE_KINDS: readonly ["BASELINE", "TRAINING_BLOCK"];
379
+ type TemporaryOverrideSourceKind = (typeof TEMPORARY_OVERRIDE_SOURCE_KINDS)[number];
380
+ interface DeloadOptions {
381
+ loadReductionPercent: DeloadLoadReduction;
382
+ setMode: DeloadSetMode;
383
+ }
384
+ /** Why a deload cannot be made from a prescription with these options. */
385
+ declare const DELOAD_NOT_LIGHTER = "Those options leave every set as it is: choose a lighter load or fewer sets";
386
+ declare function applyDeload(setup: RoutineVersionSetup, options: DeloadOptions): RoutineVersionSetup | null;
387
+ /** Days from `start` to `end`, both included. */
388
+ declare function deloadLengthDays(startDate: CalendarDate, endDate: CalendarDate): number;
389
+ /** Where a deload's prescription was copied from. */
390
+ interface TemporaryOverrideSource {
391
+ kind: TemporaryOverrideSourceKind;
392
+ trainingBlockId: string | null;
393
+ trainingBlockName: string | null;
394
+ }
395
+ /** One deload of a routine. State is relative to `today`. */
396
+ interface RoutineTemporaryOverride {
397
+ id: string;
398
+ routineId: string;
399
+ kind: TemporaryOverrideKind;
400
+ startDate: CalendarDate;
401
+ /** Moves to the day before it was ended when it is ended early. */
402
+ endDate: CalendarDate;
403
+ loadReductionPercent: DeloadLoadReduction;
404
+ setMode: DeloadSetMode;
405
+ source: TemporaryOverrideSource;
406
+ /** The prescription in force when the deload was created. */
407
+ originalSetup: RoutineVersionSetup;
408
+ /** The lighter prescription the deload trains. */
409
+ setup: RoutineVersionSetup;
410
+ endedEarlyAt: IsoDateString | null;
411
+ createdAt: IsoDateString;
412
+ state: 'FUTURE' | 'ACTIVE' | 'COMPLETE';
413
+ }
414
+ /** `GET /routines/:id/deloads`, newest start first. */
415
+ interface RoutineTemporaryOverridesResponse {
416
+ overrides: RoutineTemporaryOverride[];
417
+ maxDays: number;
418
+ /** The owner's local date every state is relative to. */
419
+ today: CalendarDate;
420
+ }
421
+ /** `POST /routines/:id/deloads` */
422
+ interface CreateDeloadRequest extends DeloadOptions {
423
+ startDate: CalendarDate;
424
+ endDate: CalendarDate;
425
+ }
426
+ /**
427
+ * A deload as a plan the resolver can place: its working-copy days (real ids,
428
+ * apart from the baseline and from any block) and the schedule of the plan it
429
+ * lightened. Owner-only, on `Routine.temporaryOverrides`.
430
+ */
431
+ interface RoutineTemporaryOverridePlan {
432
+ id: string;
433
+ kind: TemporaryOverrideKind;
434
+ startDate: CalendarDate;
435
+ endDate: CalendarDate;
436
+ scheduleMode: RoutineScheduleMode;
437
+ restDays: number[];
438
+ rotationWeekdays: number[];
439
+ /** ROTATION only: the underlying plan's next day, in this copy. */
440
+ nextRotationDayId: string | null;
441
+ days: RoutineDay[];
442
+ }
443
+ /** ROUT-16: the temporary override a session trained, copied onto it. */
444
+ interface SessionTemporaryOverride {
445
+ id: string;
446
+ kind: TemporaryOverrideKind;
447
+ }
448
+
449
+ /** One routine may have this many current, non-overlapping planned blocks. */
450
+ declare const ROUTINE_TRAINING_BLOCKS_MAX = 24;
451
+ /** A started block keeps at most this many immutable revisions. */
452
+ declare const ROUTINE_TRAINING_BLOCK_REVISIONS_MAX = 20;
453
+ declare const ROUTINE_TRAINING_BLOCK_NAME_MAX = 60;
454
+ declare const ROUTINE_TRAINING_BLOCK_STATES: readonly ["FUTURE", "ACTIVE", "COMPLETE"];
455
+ type RoutineTrainingBlockState = (typeof ROUTINE_TRAINING_BLOCK_STATES)[number];
621
456
  declare const ROUTINE_TRAINING_BLOCK_SOURCE_KINDS: readonly ["CURRENT_ROUTINE", "SAVED_VERSION"];
622
457
  type RoutineTrainingBlockSourceKind = (typeof ROUTINE_TRAINING_BLOCK_SOURCE_KINDS)[number];
623
458
  /**
@@ -767,110 +602,6 @@ interface RoutinePlanSource<D> {
767
602
  */
768
603
  declare function resolveRoutinePlan<D>(routine: RoutinePlanSource<D>, date: CalendarDate): ResolvedRoutinePlan<D>;
769
604
 
770
- /**
771
- * Per-routine visibility. The account-level `PROF-06` routines rule is the
772
- * upper bound: a routine marked `PUBLIC` inside an account whose routines are
773
- * `FOLLOWERS` is visible to followers only, the same way `SOC-04` bounds
774
- * activity by the profile section it comes from.
775
- */
776
- declare const ROUTINE_VISIBILITY_VALUES: readonly ["PRIVATE", "FOLLOWERS", "PUBLIC"];
777
- type RoutineVisibility = (typeof ROUTINE_VISIBILITY_VALUES)[number];
778
- /** One routine keeps at most this many active links. */
779
- declare const ROUTINE_SHARE_MAX_ACTIVE_LINKS = 10;
780
- /** PUT /routines/:id/visibility */
781
- interface UpdateRoutineVisibilityRequest {
782
- visibility: RoutineVisibility;
783
- }
784
- /** An active share link, visible only to the routine's owner. */
785
- interface RoutineShare {
786
- id: string;
787
- routineId: string;
788
- /** Unguessable identifier used in the public `/shared/routines/:token` URL. */
789
- token: string;
790
- createdAt: IsoDateString;
791
- }
792
- /** Stable successful response of GET /routines/:id/shares. */
793
- interface RoutineShareListResponse {
794
- items: RoutineShare[];
795
- }
796
- interface SharedRoutineOwner {
797
- username: string;
798
- name: string;
799
- lastName?: string | null;
800
- avatarUrl?: string | null;
801
- }
802
- /**
803
- * How a reader reached a routine. A link is the owner's explicit consent for
804
- * that one routine and ignores visibility; a visibility read is governed by
805
- * both the routine's own rule and the account's.
806
- */
807
- declare const SHARED_ROUTINE_SOURCES: readonly ["LINK", "VISIBILITY"];
808
- type SharedRoutineSource = (typeof SHARED_ROUTINE_SOURCES)[number];
809
- /**
810
- * Stable successful response of the unauthenticated
811
- * GET /shared/routines/:token, and of the authenticated member read.
812
- */
813
- interface SharedRoutine {
814
- /** Kept so a future clone (`ROUT-05`) can record what it came from. */
815
- routineId: string;
816
- setup: RoutineVersionSetup;
817
- owner: SharedRoutineOwner;
818
- source: SharedRoutineSource;
819
- /** When the routine was last changed, not when it was shared. */
820
- updatedAt: IsoDateString;
821
- }
822
- /**
823
- * ROUT-06. Where a cloned routine came from. It is recorded on the clone and
824
- * never on the source, so a routine cannot learn who copied it. It is served
825
- * only to a viewer who could read the source anyway: lineage must not become
826
- * a way to discover that a private routine exists.
827
- */
828
- interface RoutineLineage {
829
- /** The routine this one was cloned from, when the viewer may read it. */
830
- sourceRoutineId: string | null;
831
- /** The original author's public identity, when they still have one. */
832
- author: SharedRoutineOwner | null;
833
- /**
834
- * True when the source exists but this viewer may not read it, or its author
835
- * is gone. The clone still says it was cloned; it just cannot say from what.
836
- */
837
- isSourceHidden: boolean;
838
- clonedAt: IsoDateString;
839
- }
840
- /** A routine in a member's visible list, without loading its whole setup. */
841
- interface SharedRoutineSummary {
842
- routineId: string;
843
- name: string;
844
- description: string | null;
845
- scheduleMode: RoutineScheduleMode;
846
- dayCount: number;
847
- exerciseCount: number;
848
- updatedAt: IsoDateString;
849
- }
850
- /** Stable successful response of GET /users/:identifier/routines. */
851
- interface MemberRoutinesResponse {
852
- routines: SharedRoutineSummary[];
853
- }
854
- /**
855
- * POST /routines/clones. Exactly one source, matching the two ways a routine
856
- * can be read: `token` for a private link, `routineId` for one the viewer may
857
- * already see. Sending both, or neither, is refused.
858
- */
859
- interface CloneRoutineRequest {
860
- /** The `/shared/routines/:token` link the reader followed. */
861
- token?: string;
862
- /** A routine the viewer may read under `ROUT-04` visibility. */
863
- routineId?: string;
864
- }
865
- /** The refusals a clone states by name rather than as a bare 4xx. */
866
- declare const CLONE_ROUTINE_REFUSALS: {
867
- /** Neither `token` nor `routineId`, or both at once. */
868
- readonly SOURCE_REQUIRED: "SOURCE_REQUIRED";
869
- /** An exercise the routine programs is no longer in the catalog. */
870
- readonly UNKNOWN_EXERCISE: "UNKNOWN_EXERCISE";
871
- };
872
- type CloneRoutineRefusal = (typeof CLONE_ROUTINE_REFUSALS)[keyof typeof CLONE_ROUTINE_REFUSALS];
873
-
874
605
  /**
875
606
  * ROUT-11: a WEEKLY routine ties each day to a weekday; a ROTATION routine
876
607
  * runs its days in `order`, each after the last completed one, whatever the
@@ -1143,90 +874,112 @@ interface RestoreRoutineVersionResponse {
1143
874
  savedVersion: RoutineVersion;
1144
875
  }
1145
876
 
1146
- /** The longest deload, inclusive of both ends. */
1147
- declare const DELOAD_MAX_DAYS = 14;
1148
- /** The length a new deload is offered with. */
1149
- declare const DELOAD_DEFAULT_DAYS = 7;
1150
- /** How much lighter each set's load is, in percent. */
1151
- declare const DELOAD_LOAD_REDUCTIONS: readonly [0, 10, 20, 30, 40];
1152
- type DeloadLoadReduction = (typeof DELOAD_LOAD_REDUCTIONS)[number];
1153
- declare const DELOAD_DEFAULT_LOAD_REDUCTION: DeloadLoadReduction;
1154
- /** `HALF` keeps the first half of each exercise's sets, rounded up. */
1155
- declare const DELOAD_SET_MODES: readonly ["ALL", "HALF"];
1156
- type DeloadSetMode = (typeof DELOAD_SET_MODES)[number];
1157
- declare const DELOAD_DEFAULT_SET_MODE: DeloadSetMode;
1158
- declare const TEMPORARY_OVERRIDE_KINDS: readonly ["DELOAD"];
1159
- type TemporaryOverrideKind = (typeof TEMPORARY_OVERRIDE_KINDS)[number];
1160
- declare const TEMPORARY_OVERRIDE_SOURCE_KINDS: readonly ["BASELINE", "TRAINING_BLOCK"];
1161
- type TemporaryOverrideSourceKind = (typeof TEMPORARY_OVERRIDE_SOURCE_KINDS)[number];
1162
- interface DeloadOptions {
1163
- loadReductionPercent: DeloadLoadReduction;
1164
- setMode: DeloadSetMode;
1165
- }
1166
- /** Why a deload cannot be made from a prescription with these options. */
1167
- declare const DELOAD_NOT_LIGHTER = "Those options leave every set as it is: choose a lighter load or fewer sets";
1168
- declare function applyDeload(setup: RoutineVersionSetup, options: DeloadOptions): RoutineVersionSetup | null;
1169
- /** Days from `start` to `end`, both included. */
1170
- declare function deloadLengthDays(startDate: CalendarDate, endDate: CalendarDate): number;
1171
- /** Where a deload's prescription was copied from. */
1172
- interface TemporaryOverrideSource {
1173
- kind: TemporaryOverrideSourceKind;
1174
- trainingBlockId: string | null;
1175
- trainingBlockName: string | null;
877
+ /**
878
+ * Per-routine visibility. The account-level `PROF-06` routines rule is the
879
+ * upper bound: a routine marked `PUBLIC` inside an account whose routines are
880
+ * `FOLLOWERS` is visible to followers only, the same way `SOC-04` bounds
881
+ * activity by the profile section it comes from.
882
+ */
883
+ declare const ROUTINE_VISIBILITY_VALUES: readonly ["PRIVATE", "FOLLOWERS", "PUBLIC"];
884
+ type RoutineVisibility = (typeof ROUTINE_VISIBILITY_VALUES)[number];
885
+ /** One routine keeps at most this many active links. */
886
+ declare const ROUTINE_SHARE_MAX_ACTIVE_LINKS = 10;
887
+ /** PUT /routines/:id/visibility */
888
+ interface UpdateRoutineVisibilityRequest {
889
+ visibility: RoutineVisibility;
1176
890
  }
1177
- /** One deload of a routine. State is relative to `today`. */
1178
- interface RoutineTemporaryOverride {
891
+ /** An active share link, visible only to the routine's owner. */
892
+ interface RoutineShare {
1179
893
  id: string;
1180
894
  routineId: string;
1181
- kind: TemporaryOverrideKind;
1182
- startDate: CalendarDate;
1183
- /** Moves to the day before it was ended when it is ended early. */
1184
- endDate: CalendarDate;
1185
- loadReductionPercent: DeloadLoadReduction;
1186
- setMode: DeloadSetMode;
1187
- source: TemporaryOverrideSource;
1188
- /** The prescription in force when the deload was created. */
1189
- originalSetup: RoutineVersionSetup;
1190
- /** The lighter prescription the deload trains. */
1191
- setup: RoutineVersionSetup;
1192
- endedEarlyAt: IsoDateString | null;
895
+ /** Unguessable identifier used in the public `/shared/routines/:token` URL. */
896
+ token: string;
1193
897
  createdAt: IsoDateString;
1194
- state: 'FUTURE' | 'ACTIVE' | 'COMPLETE';
1195
898
  }
1196
- /** `GET /routines/:id/deloads`, newest start first. */
1197
- interface RoutineTemporaryOverridesResponse {
1198
- overrides: RoutineTemporaryOverride[];
1199
- maxDays: number;
1200
- /** The owner's local date every state is relative to. */
1201
- today: CalendarDate;
899
+ /** Stable successful response of GET /routines/:id/shares. */
900
+ interface RoutineShareListResponse {
901
+ items: RoutineShare[];
1202
902
  }
1203
- /** `POST /routines/:id/deloads` */
1204
- interface CreateDeloadRequest extends DeloadOptions {
1205
- startDate: CalendarDate;
1206
- endDate: CalendarDate;
903
+ interface SharedRoutineOwner {
904
+ username: string;
905
+ name: string;
906
+ lastName?: string | null;
907
+ avatarUrl?: string | null;
1207
908
  }
1208
909
  /**
1209
- * A deload as a plan the resolver can place: its working-copy days (real ids,
1210
- * apart from the baseline and from any block) and the schedule of the plan it
1211
- * lightened. Owner-only, on `Routine.temporaryOverrides`.
910
+ * How a reader reached a routine. A link is the owner's explicit consent for
911
+ * that one routine and ignores visibility; a visibility read is governed by
912
+ * both the routine's own rule and the account's. A message (MSG-07) is the
913
+ * sender's consent to its other participant, until it is deleted.
1212
914
  */
1213
- interface RoutineTemporaryOverridePlan {
1214
- id: string;
1215
- kind: TemporaryOverrideKind;
1216
- startDate: CalendarDate;
1217
- endDate: CalendarDate;
915
+ declare const SHARED_ROUTINE_SOURCES: readonly ["LINK", "VISIBILITY", "MESSAGE"];
916
+ type SharedRoutineSource = (typeof SHARED_ROUTINE_SOURCES)[number];
917
+ /**
918
+ * Stable successful response of the unauthenticated
919
+ * GET /shared/routines/:token, and of the authenticated member read.
920
+ */
921
+ interface SharedRoutine {
922
+ /** Kept so a future clone (`ROUT-05`) can record what it came from. */
923
+ routineId: string;
924
+ setup: RoutineVersionSetup;
925
+ owner: SharedRoutineOwner;
926
+ source: SharedRoutineSource;
927
+ /** When the routine was last changed, not when it was shared. */
928
+ updatedAt: IsoDateString;
929
+ }
930
+ /**
931
+ * ROUT-06. Where a cloned routine came from. It is recorded on the clone and
932
+ * never on the source, so a routine cannot learn who copied it. It is served
933
+ * only to a viewer who could read the source anyway: lineage must not become
934
+ * a way to discover that a private routine exists.
935
+ */
936
+ interface RoutineLineage {
937
+ /** The routine this one was cloned from, when the viewer may read it. */
938
+ sourceRoutineId: string | null;
939
+ /** The original author's public identity, when they still have one. */
940
+ author: SharedRoutineOwner | null;
941
+ /**
942
+ * True when the source exists but this viewer may not read it, or its author
943
+ * is gone. The clone still says it was cloned; it just cannot say from what.
944
+ */
945
+ isSourceHidden: boolean;
946
+ clonedAt: IsoDateString;
947
+ }
948
+ /** A routine in a member's visible list, without loading its whole setup. */
949
+ interface SharedRoutineSummary {
950
+ routineId: string;
951
+ name: string;
952
+ description: string | null;
1218
953
  scheduleMode: RoutineScheduleMode;
1219
- restDays: number[];
1220
- rotationWeekdays: number[];
1221
- /** ROTATION only: the underlying plan's next day, in this copy. */
1222
- nextRotationDayId: string | null;
1223
- days: RoutineDay[];
954
+ dayCount: number;
955
+ exerciseCount: number;
956
+ updatedAt: IsoDateString;
1224
957
  }
1225
- /** ROUT-16: the temporary override a session trained, copied onto it. */
1226
- interface SessionTemporaryOverride {
1227
- id: string;
1228
- kind: TemporaryOverrideKind;
958
+ /** Stable successful response of GET /users/:identifier/routines. */
959
+ interface MemberRoutinesResponse {
960
+ routines: SharedRoutineSummary[];
961
+ }
962
+ /**
963
+ * POST /routines/clones. Exactly one source, matching the two ways a routine
964
+ * can be read: `token` for a private link, `routineId` for one the viewer may
965
+ * already see. Sending both, or neither, is refused.
966
+ */
967
+ interface CloneRoutineRequest {
968
+ /** The `/shared/routines/:token` link the reader followed. */
969
+ token?: string;
970
+ /** A routine the viewer may read under `ROUT-04` visibility. */
971
+ routineId?: string;
972
+ /** MSG-07: a message that shared the routine with the viewer. */
973
+ messageId?: string;
1229
974
  }
975
+ /** The refusals a clone states by name rather than as a bare 4xx. */
976
+ declare const CLONE_ROUTINE_REFUSALS: {
977
+ /** Neither `token` nor `routineId`, or both at once. */
978
+ readonly SOURCE_REQUIRED: "SOURCE_REQUIRED";
979
+ /** An exercise the routine programs is no longer in the catalog. */
980
+ readonly UNKNOWN_EXERCISE: "UNKNOWN_EXERCISE";
981
+ };
982
+ type CloneRoutineRefusal = (typeof CLONE_ROUTINE_REFUSALS)[keyof typeof CLONE_ROUTINE_REFUSALS];
1230
983
 
1231
984
  interface SetLog {
1232
985
  id: string;
@@ -1473,163 +1226,498 @@ interface SubstituteSessionExerciseResponse {
1473
1226
  /** True only when `applyToRoutine` was asked for and the routine still has the slot. */
1474
1227
  routineUpdated: boolean;
1475
1228
  }
1476
- type PersonalRecordKind = 'WEIGHT' | 'REPS' | 'VOLUME' | 'ESTIMATED_1RM';
1477
- /** A record frontier crossed by the set mutation that produced this response. */
1478
- interface EarnedPersonalRecord {
1479
- kind: PersonalRecordKind;
1480
- exerciseId: string;
1481
- exerciseName: string;
1482
- /** Canonical kg for every kind except REPS, where this is a repetition count. */
1483
- value: number;
1484
- /** Missing when this is the first completed result for that record kind. */
1485
- previousBest?: number | null;
1229
+ type PersonalRecordKind = 'WEIGHT' | 'REPS' | 'VOLUME' | 'ESTIMATED_1RM';
1230
+ /** A record frontier crossed by the set mutation that produced this response. */
1231
+ interface EarnedPersonalRecord {
1232
+ kind: PersonalRecordKind;
1233
+ exerciseId: string;
1234
+ exerciseName: string;
1235
+ /** Canonical kg for every kind except REPS, where this is a repetition count. */
1236
+ value: number;
1237
+ /** Missing when this is the first completed result for that record kind. */
1238
+ previousBest?: number | null;
1239
+ }
1240
+ /** Stable successful response of PUT /workouts/sessions/:id/set-logs. */
1241
+ interface UpsertSetLogResponse {
1242
+ setLog: SetLog;
1243
+ earnedRecords: EarnedPersonalRecord[];
1244
+ }
1245
+ /** Final record frontier earned by one completed session. */
1246
+ interface SessionRecapRecord extends EarnedPersonalRecord {
1247
+ setNumber: number;
1248
+ achievedAt: IsoDateString;
1249
+ }
1250
+ /** Metrics from the latest earlier execution of the same routine day. */
1251
+ interface PreviousSessionRecap {
1252
+ sessionId: string;
1253
+ endedAt: IsoDateString;
1254
+ durationSec: number;
1255
+ totalVolumeKg: number;
1256
+ completedSets: number;
1257
+ durationDeltaSec: number;
1258
+ volumeDeltaKg: number;
1259
+ completedSetsDelta: number;
1260
+ }
1261
+ /** Stable successful response of GET /workouts/sessions/:id/recap. */
1262
+ interface WorkoutSessionRecap {
1263
+ sessionId: string;
1264
+ routineName: string;
1265
+ dayName?: string | null;
1266
+ startedAt: IsoDateString;
1267
+ endedAt: IsoDateString;
1268
+ durationSec: number;
1269
+ totalVolumeKg: number;
1270
+ completedSets: number;
1271
+ notes?: string | null;
1272
+ /** LIVE-16: exercise notes of this workout, named, in the day's order. */
1273
+ exerciseNotes?: SessionRecapExerciseNote[];
1274
+ records: SessionRecapRecord[];
1275
+ progressionChanges: ProgressionChange[];
1276
+ /** ROUT-17/ROUT-18: LP blocks this workout moved; absent before them. */
1277
+ linearBlockChanges?: LinearBlockChange[];
1278
+ /** The routine trained, null once it was deleted; absent before ROUT-18. */
1279
+ routineId?: string | null;
1280
+ previousSession: PreviousSessionRecap | null;
1281
+ }
1282
+ interface SessionRecapExerciseNote {
1283
+ routineExerciseId: string;
1284
+ exerciseName: string;
1285
+ note: string;
1286
+ }
1287
+ /** Parts of a completed session's recap the owner may choose to share. */
1288
+ declare const SESSION_SHARE_FIELDS: readonly ["duration", "volume", "completedSets", "records", "progression", "notes"];
1289
+ type SessionShareField = (typeof SESSION_SHARE_FIELDS)[number];
1290
+ /** Pre-selected when creating a link; notes and prescriptions are opt-in. */
1291
+ declare const SESSION_SHARE_DEFAULT_FIELDS: SessionShareField[];
1292
+ declare const SESSION_SHARE_MAX_ACTIVE_LINKS = 10;
1293
+ interface CreateSessionShareRequest {
1294
+ fields: SessionShareField[];
1295
+ }
1296
+ /** An active share link, visible only to the session owner. */
1297
+ interface SessionShare {
1298
+ id: string;
1299
+ sessionId: string;
1300
+ /** Unguessable identifier used in the public `/shared/sessions/:token` URL. */
1301
+ token: string;
1302
+ fields: SessionShareField[];
1303
+ createdAt: IsoDateString;
1304
+ /**
1305
+ * TRUST-04: a moderator has hidden the shared workout, so the link stops
1306
+ * resolving for everyone but its owner. The link is not revoked and the
1307
+ * session is untouched; the owner is told because a live-looking link that
1308
+ * opens for nobody is worse than one that says why.
1309
+ */
1310
+ isHiddenByModeration?: boolean;
1311
+ }
1312
+ /** Stable successful response of GET /workouts/sessions/:id/shares. */
1313
+ interface SessionShareListResponse {
1314
+ items: SessionShare[];
1315
+ }
1316
+ interface SharedSessionOwner {
1317
+ username: string;
1318
+ name: string;
1319
+ lastName?: string | null;
1320
+ avatarUrl?: string | null;
1321
+ }
1322
+ /**
1323
+ * Stable successful response of the unauthenticated
1324
+ * GET /shared/sessions/:token. Only the fields named in `fields` are present;
1325
+ * everything else is omitted rather than nulled. Weights are canonical kg and
1326
+ * `weightUnit` is the owner's display preference.
1327
+ */
1328
+ interface SharedSessionRecap {
1329
+ fields: SessionShareField[];
1330
+ owner: SharedSessionOwner;
1331
+ weightUnit: WeightUnit;
1332
+ routineName: string;
1333
+ dayName?: string | null;
1334
+ endedAt: IsoDateString;
1335
+ durationSec?: number;
1336
+ totalVolumeKg?: number;
1337
+ completedSets?: number;
1338
+ records?: SessionRecapRecord[];
1339
+ progressionChanges?: ProgressionChange[];
1340
+ notes?: string | null;
1341
+ /** LIVE-16: shared with the `notes` field. */
1342
+ exerciseNotes?: SessionRecapExerciseNote[];
1343
+ }
1344
+ interface WorkoutSessionSummary {
1345
+ id: string;
1346
+ status: WorkoutSessionStatus;
1347
+ startedAt: IsoDateString;
1348
+ endedAt?: IsoDateString | null;
1349
+ durationSec?: number | null;
1350
+ totalVolume?: number | null;
1351
+ totalSets?: number | null;
1352
+ totalExercises?: number | null;
1353
+ notes?: string | null;
1354
+ routine: {
1355
+ id: string;
1356
+ name: string;
1357
+ dayName?: string | null;
1358
+ /** ROUT-15: the block trained, when it was one. */
1359
+ trainingBlockName?: string | null;
1360
+ /** ROUT-16: set when the session trained a deload. */
1361
+ temporaryOverrideKind?: 'DELOAD' | null;
1362
+ };
1363
+ }
1364
+ interface ListSessionsParams {
1365
+ status?: WorkoutSessionStatus;
1366
+ routineId?: string;
1367
+ from?: IsoDateString;
1368
+ to?: IsoDateString;
1369
+ q?: string;
1370
+ cursor?: string;
1371
+ limit?: number;
1372
+ sort?: 'finishedAt:desc' | 'finishedAt:asc' | 'startedAt:desc' | 'startedAt:asc';
1373
+ }
1374
+ type WorkoutSessionListResponse = PaginatedResponse<WorkoutSessionSummary>;
1375
+ interface WorkoutStatsQuery {
1376
+ weekStart: IsoDateString;
1377
+ weekEnd: IsoDateString;
1378
+ timeZone: string;
1379
+ }
1380
+ interface WorkoutStatsResponse {
1381
+ totalCompleted: number;
1382
+ completionRate: number;
1383
+ weeklyWorkoutsCount: number;
1384
+ activeDaysThisWeek: number;
1385
+ }
1386
+
1387
+ /**
1388
+ * Who may start a conversation with a member. `FOLLOWED`: members they follow.
1389
+ * `EVERYONE` (MSG-02): members they follow reach the inbox, anyone else lands
1390
+ * in Requests. `NOBODY`: no one may start a new one.
1391
+ */
1392
+ declare const MESSAGE_PERMISSIONS: readonly ["FOLLOWED", "EVERYONE", "NOBODY"];
1393
+ type MessagePermission = (typeof MESSAGE_PERMISSIONS)[number];
1394
+ declare const DEFAULT_MESSAGE_PERMISSION: MessagePermission;
1395
+ /** Characters in one message, counted as code points. */
1396
+ declare const MESSAGE_BODY_MAX = 2000;
1397
+ /** Messages one member may send in a rolling minute. */
1398
+ declare const MESSAGES_PER_MINUTE_MAX = 30;
1399
+ /** Conversations one member may start in a rolling day. */
1400
+ declare const NEW_CONVERSATIONS_PER_DAY_MAX = 20;
1401
+ declare const CONVERSATIONS_PAGE_SIZE = 20;
1402
+ declare const MESSAGES_PAGE_SIZE = 30;
1403
+ /** Length as a reader counts it: an emoji is one character, not two. */
1404
+ declare function messageBodyLength(body: string): number;
1405
+ /**
1406
+ * The stored form of a typed message: line endings made `\n` and the ends
1407
+ * trimmed, the lines in between kept as written. Null when it is empty or too
1408
+ * long -- it is refused rather than cut, because a message clipped mid-sentence
1409
+ * would misrepresent its author.
1410
+ */
1411
+ declare function normalizeMessageBody(body: string): string | null;
1412
+ /**
1413
+ * MSG-07: what a message, its text left empty or not, may carry -- one of
1414
+ * them, with an optional note. MSG-10 adds a finished workout.
1415
+ */
1416
+ declare const MESSAGE_ATTACHMENT_KINDS: readonly ["ROUTINE", "WORKOUT"];
1417
+ type MessageAttachmentKind = (typeof MESSAGE_ATTACHMENT_KINDS)[number];
1418
+ /**
1419
+ * MSG-07: a routine in a message, as it is now. `routine` is null once it is
1420
+ * no longer available -- deleted, or hidden by moderation -- and the card
1421
+ * says so rather than showing what it once was.
1422
+ */
1423
+ interface MessageRoutineAttachment {
1424
+ kind: "ROUTINE";
1425
+ routine: SharedRoutineSummary | null;
1426
+ }
1427
+ /**
1428
+ * MSG-10: a finished workout in a card -- what was trained and its totals,
1429
+ * as the workout is now (a correction shows). Never its notes, RPE or the
1430
+ * comparison with the session before.
1431
+ */
1432
+ interface MessageWorkoutSummary {
1433
+ sessionId: string;
1434
+ routineName: string;
1435
+ dayName: string | null;
1436
+ endedAt: IsoDateString;
1437
+ durationSec: number;
1438
+ totalVolumeKg: number;
1439
+ completedSets: number;
1440
+ }
1441
+ /** MSG-10: `workout` is null once it is no longer available (deleted). */
1442
+ interface MessageWorkoutAttachment {
1443
+ kind: "WORKOUT";
1444
+ workout: MessageWorkoutSummary | null;
1445
+ }
1446
+ type MessageAttachment = MessageRoutineAttachment | MessageWorkoutAttachment;
1447
+ /** MSG-10: one completed set of a shared workout. Never its RPE. */
1448
+ interface SharedWorkoutSet {
1449
+ setNumber: number;
1450
+ kind: SetKind;
1451
+ /** Canonical kilograms; null for a set logged without a load. */
1452
+ weightKg: number | null;
1453
+ reps: number | null;
1454
+ }
1455
+ interface SharedWorkoutExercise {
1456
+ exerciseId: string;
1457
+ /** The exercise as it was performed (a swapped slot by its substitute). */
1458
+ name: string;
1459
+ sets: SharedWorkoutSet[];
1460
+ }
1461
+ /**
1462
+ * MSG-10: GET /conversations/:id/messages/:messageId/workout. The workout a
1463
+ * message shared, opened: the summary, the records it set and each
1464
+ * exercise's completed sets, in the order they were trained. Nothing else of
1465
+ * the session -- no notes, no RPE, no previous-session comparison.
1466
+ */
1467
+ interface SharedWorkout extends MessageWorkoutSummary {
1468
+ owner: SharedSessionOwner;
1469
+ /** The owner's unit; a reader shows weights in their own. */
1470
+ weightUnit: WeightUnit;
1471
+ records: SessionRecapRecord[];
1472
+ exercises: SharedWorkoutExercise[];
1473
+ }
1474
+ /**
1475
+ * MSG-07: the stored text of a message. A message with a routine may leave it
1476
+ * empty (null); one without must say something. Undefined when the text is
1477
+ * refused: empty with nothing attached, or too long.
1478
+ */
1479
+ declare function messageNote(body: string | undefined | null, hasAttachment: boolean): string | null | undefined;
1480
+ /** The other participant, or null once their account was deleted. */
1481
+ interface ConversationMember {
1482
+ id: string;
1483
+ username: string;
1484
+ name: string;
1485
+ avatarUrl: string | null;
1486
+ }
1487
+ interface ConversationMessage {
1488
+ id: string;
1489
+ sentByMe: boolean;
1490
+ /**
1491
+ * Null once its author deleted it; the place stays as "Message deleted".
1492
+ * Also null for the other participant while moderation hides it (MSG-09),
1493
+ * and for a routine sent without a note (MSG-07).
1494
+ */
1495
+ body: string | null;
1496
+ deleted: boolean;
1497
+ /**
1498
+ * MSG-09: a moderator hid this message from the other participant. They read
1499
+ * "Removed by moderation" in its place; its author still reads the text and
1500
+ * is told it is hidden.
1501
+ */
1502
+ hiddenByModeration: boolean;
1503
+ /**
1504
+ * MSG-07: a routine it carries, resolved as it is now. Null when it carries
1505
+ * none, and whenever the text is withheld (deleted, or hidden from the
1506
+ * viewer by moderation).
1507
+ */
1508
+ attachment: MessageAttachment | null;
1509
+ createdAt: IsoDateString;
1510
+ }
1511
+ /**
1512
+ * MSG-02: a conversation that is still a request. `INCOMING`: the viewer may
1513
+ * accept, decline or block. `OUTGOING`: the viewer sent it and waits -- told
1514
+ * neither whether it was seen nor whether it was declined.
1515
+ */
1516
+ interface ConversationRequest {
1517
+ direction: "INCOMING" | "OUTGOING";
1518
+ }
1519
+ interface ConversationSummary {
1520
+ id: string;
1521
+ /** Null when the other member deleted their account ("Deleted member"). */
1522
+ counterpart: ConversationMember | null;
1523
+ /** The newest message the viewer can see, or null when there is none. */
1524
+ lastMessage: ConversationMessage | null;
1525
+ lastMessageAt: IsoDateString | null;
1526
+ /**
1527
+ * Whether the viewer may write in it now. False when the other member's
1528
+ * account is gone, or the viewer's own messaging is unavailable or
1529
+ * restricted.
1530
+ */
1531
+ canSend: boolean;
1532
+ /**
1533
+ * MSG-09: a moderator restricted the viewer's messaging, which is why they
1534
+ * cannot write. Only ever about the viewer: nobody else is told.
1535
+ */
1536
+ messagingRestricted: boolean;
1537
+ /**
1538
+ * MSG-03: the other member wrote something the viewer has not seen -- a
1539
+ * message after the viewer's read position that is neither deleted nor
1540
+ * removed for them. The viewer's own messages never count.
1541
+ */
1542
+ unread: boolean;
1543
+ /**
1544
+ * MSG-03: the viewer's read position, where "new since you last looked"
1545
+ * starts. Null when they have never read the conversation. It is the
1546
+ * viewer's alone: no read receipts, so a sender never learns it.
1547
+ */
1548
+ lastReadAt: IsoDateString | null;
1549
+ /** MSG-02: null once accepted, or for a conversation that never was a request. */
1550
+ request: ConversationRequest | null;
1551
+ }
1552
+ /**
1553
+ * MSG-02: GET /conversations?box=. The inbox holds accepted conversations
1554
+ * and the viewer's own requests; Requests holds the ones waiting for them.
1555
+ */
1556
+ declare const CONVERSATION_BOXES: readonly ["INBOX", "REQUESTS"];
1557
+ type ConversationBox = (typeof CONVERSATION_BOXES)[number];
1558
+ /**
1559
+ * MSG-02: after a decline, the same member's new request is refused for this
1560
+ * many days, unless the recipient follows them or writes first.
1561
+ */
1562
+ declare const MESSAGE_REQUEST_DECLINE_COOLDOWN_DAYS = 30;
1563
+ /**
1564
+ * MSG-08: a message push waits this long and is dropped if the conversation
1565
+ * was read meanwhile, so two members talking live do not buzz each other.
1566
+ */
1567
+ declare const MESSAGE_PUSH_DELAY_SECONDS = 30;
1568
+ /** GET /conversations, newest activity first. */
1569
+ interface ConversationsResponse {
1570
+ conversations: ConversationSummary[];
1571
+ nextCursor: string | null;
1572
+ /** MSG-09: the viewer's own messaging is restricted by moderation. */
1573
+ messagingRestricted: boolean;
1574
+ }
1575
+ /**
1576
+ * MSG-09: a report of a message captures it and at most this many messages
1577
+ * before it in its conversation, as the reporter could see them then.
1578
+ */
1579
+ declare const MESSAGE_REPORT_CONTEXT_BEFORE = 5;
1580
+ /**
1581
+ * MSG-03: POST /conversations/:id/read. Moves the viewer's read position to
1582
+ * the message they have seen (`through`, the newest one on their screen),
1583
+ * never backwards, so a message that arrived after it stays unread.
1584
+ */
1585
+ interface MarkConversationReadRequest {
1586
+ through: string;
1587
+ }
1588
+ /** MSG-03: GET /conversations/unread, for the navigation's count. */
1589
+ interface UnreadConversationsResponse {
1590
+ /** Conversations with something new, not messages (owner, 2026-10-06). */
1591
+ unreadConversations: number;
1592
+ /**
1593
+ * MSG-02: requests waiting for the viewer. For the Requests tab only: they
1594
+ * never count in the navigation (owner, 2026-10-06).
1595
+ */
1596
+ requests: number;
1486
1597
  }
1487
- /** Stable successful response of PUT /workouts/sessions/:id/set-logs. */
1488
- interface UpsertSetLogResponse {
1489
- setLog: SetLog;
1490
- earnedRecords: EarnedPersonalRecord[];
1598
+ /** GET /conversations/:id/messages, newest first; `cursor` pages older. */
1599
+ interface ConversationMessagesResponse {
1600
+ conversation: ConversationSummary;
1601
+ messages: ConversationMessage[];
1602
+ nextCursor: string | null;
1491
1603
  }
1492
- /** Final record frontier earned by one completed session. */
1493
- interface SessionRecapRecord extends EarnedPersonalRecord {
1494
- setNumber: number;
1495
- achievedAt: IsoDateString;
1604
+ /**
1605
+ * POST /conversations. Starts a conversation with its first message, so an
1606
+ * empty conversation never exists; when one with this member already exists
1607
+ * the message is sent there instead. `recipient` is a username or an id.
1608
+ */
1609
+ interface StartConversationRequest {
1610
+ recipient: string;
1611
+ /** Optional when the message carries a routine or a workout. */
1612
+ body?: string;
1613
+ /** MSG-07: one of the sender's own routines. */
1614
+ routineId?: string;
1615
+ /** MSG-10: one of the sender's own finished workouts. Not with a routine. */
1616
+ sessionId?: string;
1496
1617
  }
1497
- /** Metrics from the latest earlier execution of the same routine day. */
1498
- interface PreviousSessionRecap {
1499
- sessionId: string;
1500
- endedAt: IsoDateString;
1501
- durationSec: number;
1502
- totalVolumeKg: number;
1503
- completedSets: number;
1504
- durationDeltaSec: number;
1505
- volumeDeltaKg: number;
1506
- completedSetsDelta: number;
1618
+ /** POST /conversations/:id/messages. */
1619
+ interface SendMessageRequest {
1620
+ /** Optional when the message carries a routine or a workout. */
1621
+ body?: string;
1622
+ /** MSG-07: one of the sender's own routines. */
1623
+ routineId?: string;
1624
+ /** MSG-10: one of the sender's own finished workouts. Not with a routine. */
1625
+ sessionId?: string;
1507
1626
  }
1508
- /** Stable successful response of GET /workouts/sessions/:id/recap. */
1509
- interface WorkoutSessionRecap {
1510
- sessionId: string;
1511
- routineName: string;
1512
- dayName?: string | null;
1513
- startedAt: IsoDateString;
1514
- endedAt: IsoDateString;
1515
- durationSec: number;
1516
- totalVolumeKg: number;
1517
- completedSets: number;
1518
- notes?: string | null;
1519
- /** LIVE-16: exercise notes of this workout, named, in the day's order. */
1520
- exerciseNotes?: SessionRecapExerciseNote[];
1521
- records: SessionRecapRecord[];
1522
- progressionChanges: ProgressionChange[];
1523
- /** ROUT-17/ROUT-18: LP blocks this workout moved; absent before them. */
1524
- linearBlockChanges?: LinearBlockChange[];
1525
- /** The routine trained, null once it was deleted; absent before ROUT-18. */
1526
- routineId?: string | null;
1527
- previousSession: PreviousSessionRecap | null;
1627
+ interface SendMessageResponse {
1628
+ conversation: ConversationSummary;
1629
+ message: ConversationMessage;
1528
1630
  }
1529
- interface SessionRecapExerciseNote {
1530
- routineExerciseId: string;
1531
- exerciseName: string;
1532
- note: string;
1631
+ /** PUT /users/preferences/messages. */
1632
+ interface UpdateMessagePermissionRequest {
1633
+ messagePermission: MessagePermission;
1533
1634
  }
1534
- /** Parts of a completed session's recap the owner may choose to share. */
1535
- declare const SESSION_SHARE_FIELDS: readonly ["duration", "volume", "completedSets", "records", "progression", "notes"];
1536
- type SessionShareField = (typeof SESSION_SHARE_FIELDS)[number];
1537
- /** Pre-selected when creating a link; notes and prescriptions are opt-in. */
1538
- declare const SESSION_SHARE_DEFAULT_FIELDS: SessionShareField[];
1539
- declare const SESSION_SHARE_MAX_ACTIVE_LINKS = 10;
1540
- interface CreateSessionShareRequest {
1541
- fields: SessionShareField[];
1635
+ /**
1636
+ * On the authenticated member profile only: whether the viewer may start a
1637
+ * conversation, and the one they already have. The server decides; a viewer
1638
+ * who may not is told nothing more.
1639
+ */
1640
+ interface MemberMessagingState {
1641
+ canStart: boolean;
1642
+ conversationId: string | null;
1643
+ /** MSG-02: a first message would land in their Requests. */
1644
+ asRequest: boolean;
1542
1645
  }
1543
- /** An active share link, visible only to the session owner. */
1544
- interface SessionShare {
1545
- id: string;
1546
- sessionId: string;
1547
- /** Unguessable identifier used in the public `/shared/sessions/:token` URL. */
1548
- token: string;
1549
- fields: SessionShareField[];
1550
- createdAt: IsoDateString;
1646
+ declare function isMessagePermission(value: unknown): value is MessagePermission;
1647
+
1648
+ /** A step id as the registry names it: lowercase words joined by hyphens. */
1649
+ declare const ONBOARDING_STEP_ID_PATTERN_SOURCE = "^[a-z][a-z0-9-]{0,39}$";
1650
+ declare const ONBOARDING_STEPS_MAX = 30;
1651
+ declare const ONBOARDING_VERSION_MAX = 1000;
1652
+ interface OnboardingState {
1551
1653
  /**
1552
- * TRUST-04: a moderator has hidden the shared workout, so the link stops
1553
- * resolving for everyone but its owner. The link is not revoked and the
1554
- * session is untouched; the owner is told because a live-looking link that
1555
- * opens for nobody is worse than one that says why.
1654
+ * The registry version the account completed. A new account starts at 0;
1655
+ * accounts that existed when onboarding shipped start at 1, so they are
1656
+ * offered only steps added later.
1556
1657
  */
1557
- isHiddenByModeration?: boolean;
1558
- }
1559
- /** Stable successful response of GET /workouts/sessions/:id/shares. */
1560
- interface SessionShareListResponse {
1561
- items: SessionShare[];
1562
- }
1563
- interface SharedSessionOwner {
1564
- username: string;
1565
- name: string;
1566
- lastName?: string | null;
1567
- avatarUrl?: string | null;
1658
+ completedVersion: number;
1659
+ /** Steps answered or skipped since that version, so the flow resumes. */
1660
+ stepsDone: string[];
1661
+ /** When the flow first opened by itself; it never does again. */
1662
+ offeredAt: IsoDateString | null;
1568
1663
  }
1569
1664
  /**
1570
- * Stable successful response of the unauthenticated
1571
- * GET /shared/sessions/:token. Only the fields named in `fields` are present;
1572
- * everything else is omitted rather than nulled. Weights are canonical kg and
1573
- * `weightUnit` is the owner's display preference.
1665
+ * PUT /users/preferences/onboarding. Partial: `stepsDone` is added to what is
1666
+ * stored (two devices never undo each other), `completedVersion` only ever
1667
+ * rises and clears the steps, and `offered` records the first opening once.
1574
1668
  */
1575
- interface SharedSessionRecap {
1576
- fields: SessionShareField[];
1577
- owner: SharedSessionOwner;
1578
- weightUnit: WeightUnit;
1579
- routineName: string;
1580
- dayName?: string | null;
1581
- endedAt: IsoDateString;
1582
- durationSec?: number;
1583
- totalVolumeKg?: number;
1584
- completedSets?: number;
1585
- records?: SessionRecapRecord[];
1586
- progressionChanges?: ProgressionChange[];
1587
- notes?: string | null;
1588
- /** LIVE-16: shared with the `notes` field. */
1589
- exerciseNotes?: SessionRecapExerciseNote[];
1590
- }
1591
- interface WorkoutSessionSummary {
1592
- id: string;
1593
- status: WorkoutSessionStatus;
1594
- startedAt: IsoDateString;
1595
- endedAt?: IsoDateString | null;
1596
- durationSec?: number | null;
1597
- totalVolume?: number | null;
1598
- totalSets?: number | null;
1599
- totalExercises?: number | null;
1600
- notes?: string | null;
1601
- routine: {
1602
- id: string;
1603
- name: string;
1604
- dayName?: string | null;
1605
- /** ROUT-15: the block trained, when it was one. */
1606
- trainingBlockName?: string | null;
1607
- /** ROUT-16: set when the session trained a deload. */
1608
- temporaryOverrideKind?: 'DELOAD' | null;
1609
- };
1610
- }
1611
- interface ListSessionsParams {
1612
- status?: WorkoutSessionStatus;
1613
- routineId?: string;
1614
- from?: IsoDateString;
1615
- to?: IsoDateString;
1616
- q?: string;
1617
- cursor?: string;
1618
- limit?: number;
1619
- sort?: 'finishedAt:desc' | 'finishedAt:asc' | 'startedAt:desc' | 'startedAt:asc';
1620
- }
1621
- type WorkoutSessionListResponse = PaginatedResponse<WorkoutSessionSummary>;
1622
- interface WorkoutStatsQuery {
1623
- weekStart: IsoDateString;
1624
- weekEnd: IsoDateString;
1625
- timeZone: string;
1669
+ interface UpdateOnboardingRequest {
1670
+ stepsDone?: string[];
1671
+ completedVersion?: number;
1672
+ offered?: true;
1626
1673
  }
1627
- interface WorkoutStatsResponse {
1628
- totalCompleted: number;
1629
- completionRate: number;
1630
- weeklyWorkoutsCount: number;
1631
- activeDaysThisWeek: number;
1674
+ declare function isOnboardingStepId(value: unknown): value is string;
1675
+
1676
+ /**
1677
+ * The weekday a week starts on, as `Date.getDay()` numbers it: 1 Monday, 0
1678
+ * Sunday. Monday is everyone's default, so nothing changes until a member
1679
+ * chooses. **The rank never follows it**: its active weeks are Monday weeks
1680
+ * for every member, because a rank is public and must mean the same on every
1681
+ * profile.
1682
+ */
1683
+ declare const WEEK_STARTS: readonly [1, 0];
1684
+ type WeekStartsOn = (typeof WEEK_STARTS)[number];
1685
+ declare const DEFAULT_WEEK_STARTS_ON: WeekStartsOn;
1686
+ declare function isWeekStartsOn(value: unknown): value is WeekStartsOn;
1687
+ /**
1688
+ * The first day of the week a `YYYY-MM-DD` calendar date belongs to, as a
1689
+ * `YYYY-MM-DD` date, for a week starting on `weekStartsOn`. Calendar
1690
+ * arithmetic only: no time zone, so a daylight-saving change cannot move it.
1691
+ */
1692
+ declare function weekStartOf(dateKey: string, weekStartsOn?: WeekStartsOn): string;
1693
+ /** PUT /users/preferences/week-start */
1694
+ interface UpdateWeekStartRequest {
1695
+ weekStartsOn: WeekStartsOn;
1632
1696
  }
1697
+ /**
1698
+ * How lengths are shown and typed: centimetres, or inches (a height in feet
1699
+ * and inches). Every length is **stored in centimetres**, as weights are
1700
+ * stored in kilograms; the unit is only the display and entry boundary.
1701
+ */
1702
+ declare const LENGTH_UNITS: readonly ["CM", "IN"];
1703
+ type LengthUnit = (typeof LENGTH_UNITS)[number];
1704
+ declare const CM_PER_INCH = 2.54;
1705
+ declare const INCHES_PER_FOOT = 12;
1706
+ /** Centimetres as inches, to two decimals. */
1707
+ declare function cmToInches(cm: number): number;
1708
+ /** Inches as centimetres, to two decimals. */
1709
+ declare function inchesToCm(inches: number): number;
1710
+ /**
1711
+ * A height in centimetres as whole feet and inches to one decimal. The total
1712
+ * is rounded before it is split, so 71.98 in reads as 6 ft 0 in, never as
1713
+ * 5 ft 12 in.
1714
+ */
1715
+ declare function cmToFeetInches(cm: number): {
1716
+ feet: number;
1717
+ inches: number;
1718
+ };
1719
+ /** Feet and inches as centimetres, to two decimals. */
1720
+ declare function feetInchesToCm(feet: number, inches: number): number;
1633
1721
 
1634
1722
  declare const TRAINING_EVENT_TYPES: readonly ["SESSION_COMPLETED", "PERSONAL_RECORD", "PROGRESSION_CHANGED", "STREAK_MILESTONE", "ACHIEVEMENT_UNLOCKED"];
1635
1723
  type TrainingEventType = (typeof TRAINING_EVENT_TYPES)[number];
@@ -2248,6 +2336,16 @@ interface CapturedMessage {
2248
2336
  deleted: boolean;
2249
2337
  /** The message the report is about; always the last one. */
2250
2338
  isReported: boolean;
2339
+ /**
2340
+ * MSG-07: the routine it carried, by the name the reporter saw, or null when
2341
+ * it carried none. Its name and nothing of the routine itself.
2342
+ */
2343
+ routineName?: string | null;
2344
+ /**
2345
+ * MSG-10: the workout it carried, by the routine and day the reporter saw,
2346
+ * empty when it was no longer available, or null when it carried none.
2347
+ */
2348
+ workoutName?: string | null;
2251
2349
  createdAt: IsoDateString;
2252
2350
  }
2253
2351
  /**
@@ -4614,7 +4712,12 @@ interface AccountExportV1 {
4614
4712
  messagesSent?: Array<{
4615
4713
  to: AccountExportMember | null;
4616
4714
  conversationId: string;
4715
+ /** Empty when a routine was sent without a note (MSG-07). */
4617
4716
  body: string;
4717
+ /** MSG-07: the member's own routine the message shared, by id. */
4718
+ routineId?: string;
4719
+ /** MSG-10: the member's own workout the message shared, by id. */
4720
+ sessionId?: string;
4618
4721
  createdAt: IsoDateString;
4619
4722
  }>;
4620
4723
  reportsFiled: Array<{
@@ -4692,7 +4795,7 @@ declare const API_ERROR_MESSAGES: {
4692
4795
  readonly EXERCISE_GROUP_TOO_LARGE: "A superset or circuit has at most {max} exercises";
4693
4796
  readonly ROUTINE_ACTIVE_SESSION: "Finish the active session before changing the routine structure";
4694
4797
  readonly ROUTINE_SHARE_LINKS_MAX: "A routine keeps at most {max} active links.";
4695
- readonly CLONE_SOURCE_REQUIRED: "SOURCE_REQUIRED: send either a share token or a routine id";
4798
+ readonly CLONE_SOURCE_REQUIRED: "SOURCE_REQUIRED: send one of a share token, a routine id or a message id";
4696
4799
  readonly CLONE_UNKNOWN_EXERCISE: "UNKNOWN_EXERCISE: an exercise in this routine is no longer in the catalog";
4697
4800
  readonly ROUTINE_VERSIONS_MAX: "A routine keeps at most {max} versions; delete one first";
4698
4801
  readonly ROUTINE_VERSION_EXERCISE_GONE: "An exercise in this version is no longer in the catalog";
@@ -4792,6 +4895,7 @@ declare const API_ERROR_MESSAGES: {
4792
4895
  readonly ENCOURAGEMENT_RETRY: "Please retry the encouragement.";
4793
4896
  readonly MESSAGE_SELF: "You cannot message yourself";
4794
4897
  readonly MESSAGE_LENGTH: "A message must not be empty and may be at most {max} characters.";
4898
+ readonly MESSAGE_ONE_ATTACHMENT: "A message can carry one routine or one workout.";
4795
4899
  readonly MESSAGES_PER_MINUTE: "You can send at most {max} messages a minute.";
4796
4900
  readonly CONVERSATIONS_PER_DAY: "You can start at most {max} new conversations a day.";
4797
4901
  readonly MESSAGE_NOT_ADMITTED: "This member is not taking messages from you.";
@@ -4983,4 +5087,4 @@ declare function isRealtimeTopic(value: unknown): value is RealtimeTopic;
4983
5087
  /** The event in one `data:` payload, or null for anything else. */
4984
5088
  declare function parseRealtimeEvent(data: string): RealtimeEvent | null;
4985
5089
 
4986
- export { ACCOUNT_EXPORT_FORMAT, ACCOUNT_EXPORT_VERSION, ACHIEVEMENT_CATEGORIES, ACHIEVEMENT_DEFINITIONS, ACTIVITY_CAPS, ACTIVITY_COMMENTS_PAGE_SIZE, ACTIVITY_COMMENTS_PER_DAY_MAX, ACTIVITY_COMMENT_MAX_LENGTH, ACTIVITY_DEFAULT_AUDIENCE, ACTIVITY_ENTRY_ID_MAX_LENGTH, ACTIVITY_FEED_FOLLOWED_MAX, ACTIVITY_PAGE_DEFAULT_LIMIT, ACTIVITY_PAGE_MAX_LIMIT, ACTIVITY_PREVIEW_AUDIENCES, ACTIVITY_REACTIONS, ACTIVITY_TYPES, ACTIVITY_TYPE_SECTIONS, API_ERROR_CODES, API_ERROR_MESSAGES, type AccountExportBodyMeasurement, type AccountExportGoal, type AccountExportMember, type AccountExportPersonalRecord, type AccountExportRoutine, type AccountExportScheduleOverride, type AccountExportTrainingEvent, type AccountExportTrainingLocation, type AccountExportV1, type AchievementActivity, type AchievementCategory, type AchievementCategoryProgress, type AchievementDefinition, type AchievementNotification, type AchievementUnlockedEventPayload, type AchievementsResponse, type ActivityAudience, type ActivityCap, type ActivityComment, type ActivityCommentNotification, type ActivityCommentSummary, type ActivityCommentsQuery, type ActivityCommentsResponse, type ActivityEntry, type ActivityEntrySharing, type ActivityFeedResponse, type ActivityLink, type ActivityPage, type ActivityPageQuery, type ActivityPreviewAudience, type ActivityPreviewQuery, type ActivityReaction, type ActivityReactionSummary, type ActivitySection, type ActivitySharingSettings, type ActivityType, type ApiErrorBody, type ApiErrorCode, type ApiErrorParams, type AppLocale, type AppNotification, BAR_CHOICES_KG, BAR_WARM_UP_STEPS, BLOCKED_MEMBERS_MAX, BODY_MEASUREMENT_FIELDS, BODY_MEASUREMENT_FIELD_KEYS, BODY_PROGRESS_RANGES, type BlockComparisonLift, type BlockComparisonLiftBest, type BlockComparisonPeriod, type BlockComparisonPeriodKind, type BlockedMember, type BlockedMembersResponse, type BodyFieldSummary, type BodyMeasurement, type BodyMeasurementField, type BodyMeasurementProblem, type BodyMeasurementValues, type BodyProgressRange, type BodyProgressResponse, type Brand, CLONE_ROUTINE_REFUSALS, CM_PER_INCH, COMEBACK_MIN_INACTIVE_DAYS, COMEBACK_RECOGNITION_LIMIT, COMEBACK_REQUIRED_ACTIVE_DAYS, COMEBACK_SESSION_LOOKBACK, COMEBACK_WINDOW_DAYS, CONVERSATIONS_PAGE_SIZE, CONVERSATION_BOXES, CUSTOM_EXERCISES_MAX, CUSTOM_EXERCISE_NAME_MAX, CUSTOM_EXERCISE_NOTE_MAX, CUSTOM_EXERCISE_PROBLEM_MESSAGES, CUSTOM_EXERCISE_REFUSALS, type CalendarDate, type CapturedMessage, type CloneRoutineRefusal, type CloneRoutineRequest, type ComebackActivity, type ComebackRecognition, type ComebackRecognitionSummary, type ContinueLinearBlockRequest, type ConversationBox, type ConversationMember, type ConversationMessage, type ConversationMessagesResponse, type ConversationRequest, type ConversationSummary, type ConversationsResponse, type CorrectSessionRequest, type CorrectSessionResponse, type CorrectSessionSetRequest, type CreateActivityCommentRequest, type CreateActivityCommentResponse, type CreateDeloadRequest, type CreateReportRequest, type CreateReportResponse, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type CreateRoutineVersionRequest, type CreateSessionShareRequest, type CustomExerciseInput, type CustomExerciseProblem, type CustomExerciseRefusal, DASHBOARD_SECTION_IDS, DEFAULT_DASHBOARD_LAYOUT, DEFAULT_LOCALE, DEFAULT_MESSAGE_PERMISSION, DEFAULT_WEEK_STARTS_ON, DELOAD_DEFAULT_DAYS, DELOAD_DEFAULT_LOAD_REDUCTION, DELOAD_DEFAULT_SET_MODE, DELOAD_LOAD_REDUCTIONS, DELOAD_MAX_DAYS, DELOAD_NOT_LIGHTER, DELOAD_SET_MODES, DELOAD_SUGGESTION_COOLDOWN_DAYS, DELOAD_SUGGESTION_EARLIER_DAYS, DELOAD_SUGGESTION_MIN_MARKED_TODAY, DELOAD_SUGGESTION_ROUTINE_DAYS, DELOAD_SUGGESTION_SIGNALS, type DashboardLayout, type DashboardLayoutEntry, type DashboardSectionId, type DeclineSignal, type DecliningLift, type DecliningLiftSession, type DeleteAccountRequest, type DeleteAccountResponse, type DeleteActivityCommentResponse, type DeletePushSubscriptionRequest, type DeloadLoadReduction, type DeloadOptions, type DeloadSetMode, type DeloadSuggestion, type DeloadSuggestionEvidence, type DeloadSuggestionResponse, type DeloadSuggestionSignal, type DeloadSuggestionUnavailableReason, type DiscoverableRoutine, type DismissGoalSuggestionRequest, EXERCISE_EQUIPMENT, EXERCISE_GROUP_KIND_LABELS, EXERCISE_GROUP_MAX, EXERCISE_MECHANICS, type EarnedAchievement, type EarnedPersonalRecord, type EffortPeriod, type EffortSignal, type Exercise, type ExerciseEquipment, type ExerciseGroup, type ExerciseGroupKind, type ExerciseGroupPosition, type ExerciseId, type ExerciseMechanic, type ExercisePerformanceHistoryQuery, type ExercisePerformanceHistoryResponse, type ExercisePerformancePrescription, type ExercisePerformancePrescriptionSet, type ExercisePerformanceSession, type ExercisePerformanceSet, type ExercisePerformanceSummary, type ExercisePlateau, type ExerciseStrengthSummary, type ExerciseStrengthTrendPoint, type ExerciseStrengthTrendQuery, type ExerciseStrengthTrendResponse, FEATURED_PROFILE_ITEMS_MAX, FEATURED_PROFILE_ITEM_KINDS, FEATURED_PROFILE_REFERENCE_MAX_LENGTH, FOLLOW_SUGGESTIONS_DEFAULT_LIMIT, FOLLOW_SUGGESTIONS_MAX_LIMIT, FOLLOW_SUGGESTION_REASONS, type FeaturedProfileAchievementItem, type FeaturedProfileItem, type FeaturedProfileItemKind, type FeaturedProfileRankItem, type FeaturedProfileRecordItem, type FeaturedProfileRoutineItem, type FeaturedProfileSelection, type FeaturedProfileSelectionInput, type FeaturedProfileSelectionsResponse, type FinishStatus, type FinishWorkoutRequest, type FinishWorkoutResponse, type FollowSuggestion, type FollowSuggestionReason, type FollowSuggestionsResponse, GOAL_SUGGESTIONS_MAX, GOAL_SUGGESTION_DISMISSALS_MAX, GOAL_SUGGESTION_LIFT_MIN_SESSIONS, GOAL_SUGGESTION_LIFT_WINDOW_DAYS, GOAL_SUGGESTION_MIN_ACTIVE_WEEKS, GOAL_SUGGESTION_STRENGTH_STEP, GOAL_SUGGESTION_TYPES, GOAL_SUGGESTION_VOLUME_WEEKS, type GoalSuggestion, type GoalSuggestionBasis, type GoalSuggestionType, type GoalSuggestionsResponse, INCHES_PER_FOOT, type IsoDateString, LENGTH_UNITS, LIMITED_SHORTFALL_KG, LP_BLOCK_STEPS, LP_ESTIMATE_MAX_REPS_TO_FAILURE, LP_ESTIMATE_MIN_SETS, LP_ESTIMATE_STEPS, LP_NEXT_BLOCK_KINDS, LP_PHASES, LP_PROGRESS_CAP, LP_PROGRESS_THRESHOLD, LP_RECOVERY, LP_REFERENCE_MAX_KG, LP_REST_SECONDS, LP_STEPS, LP_WORKING_SETS, type LengthUnit, type LinearBlockChange, type LinearBlockFinishedNotification, type LinearPeriodizationState, type ListSessionsParams, type LpEstimate, type LpLoggedSet, type LpNextBlockKind, type LpPhase, type LpRecommendation, type LpSample, type LpSetPrescription, type LpSetTarget, type LpStep, type LpStoredSet, MAX_SETS_PER_EXERCISE, MEASURABLE_GOALS_MAX, MEASURABLE_GOAL_DIRECTIONS, MEASURABLE_GOAL_TYPES, MESSAGES_PAGE_SIZE, MESSAGES_PER_MINUTE_MAX, MESSAGE_BODY_MAX, MESSAGE_PERMISSIONS, MESSAGE_PUSH_DELAY_SECONDS, MESSAGE_REPORT_CONTEXT_BEFORE, MESSAGE_REQUEST_DECLINE_COOLDOWN_DAYS, MINUTES_IN_DAY, MODERATION_ACTION_KINDS, MODERATION_HISTORY_PAGE_SIZE, MODERATION_NOTE_MAX_LENGTH, MODERATION_QUEUE_PAGE_SIZE, MOVEMENT_PATTERNS, MUSCLE_GROUPS, type MarkConversationReadRequest, type MarkNotificationsReadRequest, type MarkNotificationsReadResponse, type MeasurableGoal, type MeasurableGoalDirection, type MeasurableGoalExercise, type MeasurableGoalInput, type MeasurableGoalType, type MemberActivityResponse, type MemberMessagingState, type MemberModerationState, type MemberRoutinesResponse, type MemberSearchPage, type MessagePermission, type MessagePushPayload, type ModerationActionKind, type ModerationActionRecord, type ModerationHistoryQuery, type ModerationHistoryResponse, type ModerationQueueQuery, type ModerationQueueResponse, type ModerationReport, type ModeratorState, type MoveOccurrenceRequest, type MovementPattern, type MuscleGroup, type MuscleGroupHeatmapQuery, type MuscleGroupHeatmapResponse, type MuscleGroupHeatmapValue, type MuscleGroupHeatmapWeek, type MuscleVolumeTrendSeries, NEW_CONVERSATIONS_PER_DAY_MAX, NOTIFICATIONS_LIST_LIMIT, NOTIFICATIONS_LOOKBACK_DAYS, NOTIFICATIONS_PAGE_SIZE, NOTIFICATIONS_PAGE_SIZE_MAX, NOTIFICATIONS_RETENTION_DAYS, NOTIFICATION_CATEGORIES, NOTIFICATION_KINDS, type NewFollowerNotification, type NotificationCategory, type NotificationKind, type NotificationPreferences, type NotificationPreferencesResponse, type NotificationsQuery, type NotificationsResponse, ONBOARDING_STEPS_MAX, ONBOARDING_STEP_ID_PATTERN_SOURCE, ONBOARDING_VERSION_MAX, OTHER_WARM_UP_STEPS, type OnboardingState, type OwnActivityEntry, type OwnActivityResponse, PLATEAU_MIN_DAYS_SINCE_BEST, PLATEAU_MIN_SESSIONS, PLATEAU_MIN_SESSIONS_MAX, PLATEAU_MIN_SESSIONS_MIN, PLATEAU_RECENT_DAYS, PLATEAU_WINDOW_DAYS, PLATE_SETS, PREFERRED_TRAINING_STYLE_VALUES, PROFILE_BIO_MAX_LENGTH, PROFILE_FAVORITE_EXERCISES_MAX, PROFILE_LOCATION_MAX_LENGTH, PROFILE_TRAINING_DISCIPLINES_MAX, PROFILE_TRAINING_GOALS_MAX, PROFILE_VISIBILITY_VALUES, PROGRESSION_SCHEMES, PROGRESS_TIMELINE_EVENT_TYPES, PUSH_PAYLOAD_KINDS, PUSH_SUBSCRIPTIONS_MAX, type PaginatedResponse, type PersonalGoalProgress, type PersonalGoalsResponse, type PersonalRecordActivity, type PersonalRecordEntry, type PersonalRecordKind, type PlannedReminder, type PlateLoadingItem, type PlateLoadingResult, type PlatePairInventory, type PlateSetChoice, type PlateauPreferences, type PlateauSet, type PlateausResponse, type PreferredTrainingStyle, type PreviousPerformanceResponse, type PreviousSessionRecap, type PreviousSetPerformance, type ProfileDiscoverySettings, type ProfileFavoriteExercise, type ProfilePrivacySettings, type ProfileViewerAccess, type ProfileVisibility, type ProgressTimelineEventType, type ProgressTimelineItem, type ProgressTimelinePersonalRecordItem, type ProgressTimelineProgressionItem, type ProgressTimelineQuery, type ProgressTimelineRecordPerformance, type ProgressTimelineRecordReason, type ProgressTimelineResponse, type ProgressTimelineSessionContext, type ProgressionActivity, type ProgressionChange, type ProgressionRule, type ProgressionScheme, type ProgressionSetChange, type PublicBodyMetrics, type PublicProfileAchievements, type PublicTrainingSummary, type PublicUserProfile, type PushPayload, type PushPayloadKind, type PushSubscriptionKeys, type PushSubscriptionSummary, type PushSubscriptionsResponse, type QuietHours, REALTIME_HEARTBEAT_MS, REALTIME_MAX_STREAMS_PER_MEMBER, REALTIME_MAX_STREAM_MS, REALTIME_STREAM_PATH, REALTIME_TOPICS, REALTIME_UNAVAILABLE_RETRY_SECONDS, RECENT_SEARCHES_MAX, RECENT_SEARCH_KINDS, RELATIONSHIP_LIST_DEFAULT_LIMIT, RELATIONSHIP_LIST_KINDS, RELATIONSHIP_LIST_MAX_LIMIT, RENAISSANCE_RANK_DEFINITIONS, REPORTS_PER_DAY_MAX, REPORT_DETAILS_MAX_LENGTH, REPORT_REASONS, REPORT_STATUSES, REPORT_SUBJECT_KINDS, REP_TYPES, RESERVED_USERNAMES, REST_ALERT_MAX_LEAD_SECONDS, REST_ALERT_MIN_LEAD_SECONDS, REST_ALERT_REFUSALS, ROUTINE_DAYS_MAX, ROUTINE_DAY_NAME_MAX, ROUTINE_DISCOVERY_DEFAULT_LIMIT, ROUTINE_DISCOVERY_MAX_LIMIT, ROUTINE_DISCOVERY_SCAN_LIMIT, ROUTINE_DURATION_BANDS, ROUTINE_DURATION_BAND_MAX_MINUTES, ROUTINE_SCHEDULE_MODES, ROUTINE_SHARE_MAX_ACTIVE_LINKS, ROUTINE_TRAINING_BLOCKS_MAX, ROUTINE_TRAINING_BLOCK_NAME_MAX, ROUTINE_TRAINING_BLOCK_REVISIONS_MAX, ROUTINE_TRAINING_BLOCK_SOURCE_KINDS, ROUTINE_TRAINING_BLOCK_STATES, ROUTINE_VERSIONS_MAX, ROUTINE_VERSION_KINDS, ROUTINE_VERSION_NAME_MAX, ROUTINE_VISIBILITY_VALUES, type RealtimeEvent, type RealtimeTopic, type RecentActivityEntry, type RecentExercise, type RecentRoutine, type RecentSearchItem, type RecentSearchKind, type RecentSearchesResponse, type RecordRecentSearchRequest, type RegisterPushSubscriptionRequest, type RelationshipListKind, type RelationshipListQuery, type RelationshipListResponse, type RelationshipMember, type RenaissanceRankDefinition, type RenaissanceRankProgress, type RepTargetPeriod, type RepTargetSignal, type RepType, type ReplaceFeaturedProfileItemsRequest, type ReplaceMeasurableGoalsRequest, type ReplaceTrainingLocationsRequest, type ReportReason, type ReportStatus, type ReportSubjectKind, type ReportSubjectPreview, type ReportedMessageContext, type ResolvedRoutinePlan, type RestAlertPushPayload, type RestAlertRefusal, type RestoreRoutineVersionResponse, type ReviewReportRequest, type ReviewReportResponse, type Routine, type RoutineClassification, type RoutineDay, type RoutineDayId, type RoutineDiscoveryQuery, type RoutineDiscoveryResponse, type RoutineDurationBand, type RoutineExercise, type RoutineFacets, type RoutineId, type RoutineLineage, type RoutinePlanSource, type RoutineScheduleMode, type RoutineSearchPage, type RoutineSet, type RoutineShare, type RoutineShareListResponse, type RoutineSharedActivity, type RoutineTemporaryOverride, type RoutineTemporaryOverridePlan, type RoutineTemporaryOverridesResponse, type RoutineTrainingBlock, type RoutineTrainingBlockPlan, type RoutineTrainingBlockRevision, type RoutineTrainingBlockRevisionsResponse, type RoutineTrainingBlockSource, type RoutineTrainingBlockSourceKind, type RoutineTrainingBlockState, type RoutineTrainingBlocksResponse, type RoutineVersion, type RoutineVersionDay, type RoutineVersionExercise, type RoutineVersionKind, type RoutineVersionSetup, type RoutineVersionsResponse, type RoutineVisibility, SCHEDULE_MOVE_MAX_DAYS, SCHEDULE_OVERRIDES_MAX_RANGE_DAYS, SCHEDULE_OVERRIDE_KINDS, SCHEDULE_SKIP_PAST_DAYS, SEARCH_PAGE_SIZE, SEARCH_PAGE_SIZE_MAX, SEARCH_PREVIEW_LIMIT, SEARCH_QUERY_MAX_LENGTH, SEARCH_QUERY_MIN_LENGTH, SEARCH_SERVER_CATEGORIES, SESSION_CORRECTIONS_MAX, SESSION_CORRECTION_LIMITS, SESSION_CORRECTION_WINDOW_HOURS, SESSION_EXERCISE_NOTE_MAX_LENGTH, SESSION_NOTE_MAX_LENGTH, SESSION_SHARE_DEFAULT_FIELDS, SESSION_SHARE_FIELDS, SESSION_SHARE_MAX_ACTIVE_LINKS, SET_KINDS, SET_KIND_LABELS, SEXES, SHARED_ROUTINE_SOURCES, STARRED_EXERCISES_MAX, STREAK_MAX_GAP_DAYS, SUPPORTED_LOCALES, type ScheduleOverride, type ScheduleOverrideKind, type ScheduleOverridesQuery, type ScheduleOverridesResponse, type ScheduleRestAlertRequest, type ScheduleRestAlertResponse, type SearchPage, type SearchPageQuery, type SearchPreviewQuery, type SearchPreviewResponse, type SearchServerCategory, type SendMessageRequest, type SendMessageResponse, type SendTrainingPartnerEncouragementRequest, type SendTrainingPartnerEncouragementResponse, type SessionComparisonExercise, type SessionComparisonQuery, type SessionComparisonResponse, type SessionComparisonRoutineDay, type SessionComparisonSession, type SessionComparisonSet, type SessionCompletedActivity, type SessionCorrection, type SessionCorrectionClosedReason, type SessionCorrectionWindow, type SessionCorrectionsResponse, type SessionExerciseNote, type SessionExerciseSubstitution, type SessionProgressNotification, type SessionRecapExerciseNote, type SessionRecapRecord, type SessionSetCorrection, type SessionShare, type SessionShareField, type SessionShareListResponse, type SessionTemporaryOverride, type SessionTrainingBlock, type SetAccountTimeZoneRequest, type SetActivityEntryAudienceRequest, type SetActivityEntryAudienceResponse, type SetActivityReactionRequest, type SetActivityReactionResponse, type SetKind, type SetLog, type SetLogValues, type Sex, type SharedRoutine, type SharedRoutineOwner, type SharedRoutineSearchResult, type SharedRoutineSource, type SharedRoutineSummary, type SharedSessionOwner, type SharedSessionRecap, type SkipOccurrenceRequest, type StarredExercise, type StarredExercisesResponse, type StartConversationRequest, type StartWorkoutRequest, type StartWorkoutResponse, type StreakAtRiskPushPayload, type StreakMilestoneActivity, type StreakMilestoneEventPayload, type SubstituteSessionExerciseRequest, type SubstituteSessionExerciseResponse, type SupabaseAuthResponse, type SupabaseAuthUser, type SupabaseMigrationResponse, TEMPORARY_OVERRIDE_KINDS, TEMPORARY_OVERRIDE_SOURCE_KINDS, TRAINING_BLOCK_COMPARISON_MAX_DAYS, TRAINING_DISCIPLINE_VALUES, TRAINING_EVENT_TYPES, TRAINING_EXPERIENCE_LEVEL_VALUES, TRAINING_GOAL_VALUES, TRAINING_PARTNERSHIP_STATUSES, TRAINING_PARTNERS_MAX, TRAINING_PARTNER_ENCOURAGEMENTS_PER_24_HOURS_MAX, TRAINING_PARTNER_ENCOURAGEMENT_KINDS, TRAINING_PARTNER_PERMISSION_KEYS, TRAINING_PARTNER_REQUESTS_PER_DAY_MAX, TRAINING_SIGNAL_DECLINES_MAX, TRAINING_SIGNAL_DECLINE_SESSIONS, TRAINING_SIGNAL_MIN_DECLINE, TRAINING_SIGNAL_MIN_RPE_SETS, TRAINING_SIGNAL_MIN_SHORT_SETS, TRAINING_SIGNAL_MIN_TARGET_SETS, TRAINING_SIGNAL_PERIOD_DAYS, TRAINING_SIGNAL_RPE_RISE, TRAINING_SIGNAL_SHORT_LIFTS_MAX, TRAINING_SIGNAL_SHORT_POINTS_RISE, TRAINING_SIGNAL_WORKOUT_DROP, type TemporaryOverrideKind, type TemporaryOverrideSource, type TemporaryOverrideSourceKind, type TrainingBlockComparisonResponse, type TrainingDiscipline, type TrainingEventType, type TrainingExperienceLevel, type TrainingGoal, type TrainingIdentity, type TrainingLocationPreference, type TrainingLocationPreferenceInput, type TrainingPartnerAchievementNotification, type TrainingPartnerAchievementPushPayload, type TrainingPartnerEncouragementKind, type TrainingPartnerEncouragementNotification, type TrainingPartnerPermissions, type TrainingPartnerScheduleDay, type TrainingPartnerScheduleResponse, type TrainingPartnerSessionNotification, type TrainingPartnerSessionPushPayload, type TrainingPartnership, type TrainingPartnershipStatus, type TrainingPartnershipsResponse, type TrainingReminderPreference, type TrainingReminderPushPayload, type TrainingSignalPeriod, type TrainingSignalsResponse, USERNAME_MAX_LENGTH, USERNAME_MIN_LENGTH, USERNAME_PATTERN_SOURCE, type UnreadConversationsResponse, type UpdateActivitySharingRequest, type UpdateCustomExerciseRequest, type UpdateDashboardLayoutRequest, type UpdateLocaleRequest, type UpdateMessagePermissionRequest, type UpdateNotificationPreferencesRequest, type UpdateOnboardingRequest, type UpdateProfileDiscoveryRequest, type UpdateProfilePrivacyRequest, type UpdateProfileRequest, type UpdateRoutineRequest, type UpdateRoutineVisibilityRequest, type UpdateSessionNotesRequest, type UpdateSessionNotesResponse, type UpdateTrainingPartnerPermissionsRequest, type UpdateWeekStartRequest, type UpsertBodyMeasurementRequest, type UpsertRoutineTrainingBlockRequest, type UpsertSetLogRequest, type UpsertSetLogResponse, type UserId, type UserProfile, type UserSearchResponse, type VolumeTrendPoint, type VolumeTrendQuery, type VolumeTrendResponse, type VolumeTrendSeries, WEEK_STARTS, WEIGHT_UNITS, WORKOUT_SESSION_STATUSES, type WarmUpEquipment, type WarmUpLoad, type WarmUpRamp, type WarmUpSet, type WarmUpStep, type WeekStartsOn, type WeightUnit, type WorkoutAnalyticsStatus, type WorkoutPeriod, type WorkoutProgressQuery, type WorkoutProgressResponse, type WorkoutSearchPage, type WorkoutSession, type WorkoutSessionId, type WorkoutSessionListResponse, type WorkoutSessionRecap, type WorkoutSessionSnapshotV1, type WorkoutSessionStatus, type WorkoutSessionSummary, type WorkoutSignal, type WorkoutStatsQuery, type WorkoutStatsResponse, accountExportFileName, advanceLinearPeriodization, apiError, apiErrorMessage, applyDeload, bodyMeasurementProblems, bodyProgressRangeStart, buildWarmUpRamp, calculatePlateLoading, canLinkToNext, cmToFeetInches, cmToInches, continueLinearPeriodization, countsAsWork, countsForProgression, customExerciseProblem, defaultWarmUpEquipment, deloadLengthDays, exerciseGroupLabel, exerciseGroupPosition, exerciseGroups, exerciseNameKey, feetInchesToCm, followWorkingLoad, goalSuggestionKey, hasOversizedGroup, inchesToCm, isApiErrorCode, isAppLocale, isBarLoaded, isBodyMeasurementDate, isDashboardSectionId, isDefaultDashboardLayout, isGoalSuggestionKey, isMessagePermission, isOnboardingStepId, isRealtimeTopic, isSetKind, isWeekStartsOn, isWithinQuietHours, latestBodyWeight, leadWorkingWeight, linearPeriodizationProblem, lpEstimate, lpLoadKg, lpPrescription, lpRecommendation, lpRirMidpoint, lpSampleRir, lpSetEstimateKg, lpStep, lpStoredSets, lpWorkingSets, matchesDeletionConfirmation, messageBodyLength, normalizeDashboardLayout, normalizeExerciseLinks, normalizeExerciseName, normalizeMessageBody, normalizeSearchQuery, parseRealtimeEvent, primaryEquipment, requiredToFinish, resolveActiveTrainingBlock, resolveRoutinePlan, roundDownToIncrement, roundToIncrement, routineDayLabel, sameLpPosition, sessionCorrectionWindow, setKindOf, setLogValuesDiffer, startLinearPeriodization, summarizeBodyProgress, trainingBlockCovers, warmUpLoad, weekStartOf };
5090
+ export { ACCOUNT_EXPORT_FORMAT, ACCOUNT_EXPORT_VERSION, ACHIEVEMENT_CATEGORIES, ACHIEVEMENT_DEFINITIONS, ACTIVITY_CAPS, ACTIVITY_COMMENTS_PAGE_SIZE, ACTIVITY_COMMENTS_PER_DAY_MAX, ACTIVITY_COMMENT_MAX_LENGTH, ACTIVITY_DEFAULT_AUDIENCE, ACTIVITY_ENTRY_ID_MAX_LENGTH, ACTIVITY_FEED_FOLLOWED_MAX, ACTIVITY_PAGE_DEFAULT_LIMIT, ACTIVITY_PAGE_MAX_LIMIT, ACTIVITY_PREVIEW_AUDIENCES, ACTIVITY_REACTIONS, ACTIVITY_TYPES, ACTIVITY_TYPE_SECTIONS, API_ERROR_CODES, API_ERROR_MESSAGES, type AccountExportBodyMeasurement, type AccountExportGoal, type AccountExportMember, type AccountExportPersonalRecord, type AccountExportRoutine, type AccountExportScheduleOverride, type AccountExportTrainingEvent, type AccountExportTrainingLocation, type AccountExportV1, type AchievementActivity, type AchievementCategory, type AchievementCategoryProgress, type AchievementDefinition, type AchievementNotification, type AchievementUnlockedEventPayload, type AchievementsResponse, type ActivityAudience, type ActivityCap, type ActivityComment, type ActivityCommentNotification, type ActivityCommentSummary, type ActivityCommentsQuery, type ActivityCommentsResponse, type ActivityEntry, type ActivityEntrySharing, type ActivityFeedResponse, type ActivityLink, type ActivityPage, type ActivityPageQuery, type ActivityPreviewAudience, type ActivityPreviewQuery, type ActivityReaction, type ActivityReactionSummary, type ActivitySection, type ActivitySharingSettings, type ActivityType, type ApiErrorBody, type ApiErrorCode, type ApiErrorParams, type AppLocale, type AppNotification, BAR_CHOICES_KG, BAR_WARM_UP_STEPS, BLOCKED_MEMBERS_MAX, BODY_MEASUREMENT_FIELDS, BODY_MEASUREMENT_FIELD_KEYS, BODY_PROGRESS_RANGES, type BlockComparisonLift, type BlockComparisonLiftBest, type BlockComparisonPeriod, type BlockComparisonPeriodKind, type BlockedMember, type BlockedMembersResponse, type BodyFieldSummary, type BodyMeasurement, type BodyMeasurementField, type BodyMeasurementProblem, type BodyMeasurementValues, type BodyProgressRange, type BodyProgressResponse, type Brand, CLONE_ROUTINE_REFUSALS, CM_PER_INCH, COMEBACK_MIN_INACTIVE_DAYS, COMEBACK_RECOGNITION_LIMIT, COMEBACK_REQUIRED_ACTIVE_DAYS, COMEBACK_SESSION_LOOKBACK, COMEBACK_WINDOW_DAYS, CONVERSATIONS_PAGE_SIZE, CONVERSATION_BOXES, CUSTOM_EXERCISES_MAX, CUSTOM_EXERCISE_NAME_MAX, CUSTOM_EXERCISE_NOTE_MAX, CUSTOM_EXERCISE_PROBLEM_MESSAGES, CUSTOM_EXERCISE_REFUSALS, type CalendarDate, type CapturedMessage, type CloneRoutineRefusal, type CloneRoutineRequest, type ComebackActivity, type ComebackRecognition, type ComebackRecognitionSummary, type ContinueLinearBlockRequest, type ConversationBox, type ConversationMember, type ConversationMessage, type ConversationMessagesResponse, type ConversationRequest, type ConversationSummary, type ConversationsResponse, type CorrectSessionRequest, type CorrectSessionResponse, type CorrectSessionSetRequest, type CreateActivityCommentRequest, type CreateActivityCommentResponse, type CreateDeloadRequest, type CreateReportRequest, type CreateReportResponse, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type CreateRoutineVersionRequest, type CreateSessionShareRequest, type CustomExerciseInput, type CustomExerciseProblem, type CustomExerciseRefusal, DASHBOARD_SECTION_IDS, DEFAULT_DASHBOARD_LAYOUT, DEFAULT_LOCALE, DEFAULT_MESSAGE_PERMISSION, DEFAULT_WEEK_STARTS_ON, DELOAD_DEFAULT_DAYS, DELOAD_DEFAULT_LOAD_REDUCTION, DELOAD_DEFAULT_SET_MODE, DELOAD_LOAD_REDUCTIONS, DELOAD_MAX_DAYS, DELOAD_NOT_LIGHTER, DELOAD_SET_MODES, DELOAD_SUGGESTION_COOLDOWN_DAYS, DELOAD_SUGGESTION_EARLIER_DAYS, DELOAD_SUGGESTION_MIN_MARKED_TODAY, DELOAD_SUGGESTION_ROUTINE_DAYS, DELOAD_SUGGESTION_SIGNALS, type DashboardLayout, type DashboardLayoutEntry, type DashboardSectionId, type DeclineSignal, type DecliningLift, type DecliningLiftSession, type DeleteAccountRequest, type DeleteAccountResponse, type DeleteActivityCommentResponse, type DeletePushSubscriptionRequest, type DeloadLoadReduction, type DeloadOptions, type DeloadSetMode, type DeloadSuggestion, type DeloadSuggestionEvidence, type DeloadSuggestionResponse, type DeloadSuggestionSignal, type DeloadSuggestionUnavailableReason, type DiscoverableRoutine, type DismissGoalSuggestionRequest, EXERCISE_EQUIPMENT, EXERCISE_GROUP_KIND_LABELS, EXERCISE_GROUP_MAX, EXERCISE_MECHANICS, type EarnedAchievement, type EarnedPersonalRecord, type EffortPeriod, type EffortSignal, type Exercise, type ExerciseEquipment, type ExerciseGroup, type ExerciseGroupKind, type ExerciseGroupPosition, type ExerciseId, type ExerciseMechanic, type ExercisePerformanceHistoryQuery, type ExercisePerformanceHistoryResponse, type ExercisePerformancePrescription, type ExercisePerformancePrescriptionSet, type ExercisePerformanceSession, type ExercisePerformanceSet, type ExercisePerformanceSummary, type ExercisePlateau, type ExerciseStrengthSummary, type ExerciseStrengthTrendPoint, type ExerciseStrengthTrendQuery, type ExerciseStrengthTrendResponse, FEATURED_PROFILE_ITEMS_MAX, FEATURED_PROFILE_ITEM_KINDS, FEATURED_PROFILE_REFERENCE_MAX_LENGTH, FOLLOW_SUGGESTIONS_DEFAULT_LIMIT, FOLLOW_SUGGESTIONS_MAX_LIMIT, FOLLOW_SUGGESTION_REASONS, type FeaturedProfileAchievementItem, type FeaturedProfileItem, type FeaturedProfileItemKind, type FeaturedProfileRankItem, type FeaturedProfileRecordItem, type FeaturedProfileRoutineItem, type FeaturedProfileSelection, type FeaturedProfileSelectionInput, type FeaturedProfileSelectionsResponse, type FinishStatus, type FinishWorkoutRequest, type FinishWorkoutResponse, type FollowSuggestion, type FollowSuggestionReason, type FollowSuggestionsResponse, GOAL_SUGGESTIONS_MAX, GOAL_SUGGESTION_DISMISSALS_MAX, GOAL_SUGGESTION_LIFT_MIN_SESSIONS, GOAL_SUGGESTION_LIFT_WINDOW_DAYS, GOAL_SUGGESTION_MIN_ACTIVE_WEEKS, GOAL_SUGGESTION_STRENGTH_STEP, GOAL_SUGGESTION_TYPES, GOAL_SUGGESTION_VOLUME_WEEKS, type GoalSuggestion, type GoalSuggestionBasis, type GoalSuggestionType, type GoalSuggestionsResponse, INCHES_PER_FOOT, type IsoDateString, LENGTH_UNITS, LIMITED_SHORTFALL_KG, LP_BLOCK_STEPS, LP_ESTIMATE_MAX_REPS_TO_FAILURE, LP_ESTIMATE_MIN_SETS, LP_ESTIMATE_STEPS, LP_NEXT_BLOCK_KINDS, LP_PHASES, LP_PROGRESS_CAP, LP_PROGRESS_THRESHOLD, LP_RECOVERY, LP_REFERENCE_MAX_KG, LP_REST_SECONDS, LP_STEPS, LP_WORKING_SETS, type LengthUnit, type LinearBlockChange, type LinearBlockFinishedNotification, type LinearPeriodizationState, type ListSessionsParams, type LpEstimate, type LpLoggedSet, type LpNextBlockKind, type LpPhase, type LpRecommendation, type LpSample, type LpSetPrescription, type LpSetTarget, type LpStep, type LpStoredSet, MAX_SETS_PER_EXERCISE, MEASURABLE_GOALS_MAX, MEASURABLE_GOAL_DIRECTIONS, MEASURABLE_GOAL_TYPES, MESSAGES_PAGE_SIZE, MESSAGES_PER_MINUTE_MAX, MESSAGE_ATTACHMENT_KINDS, MESSAGE_BODY_MAX, MESSAGE_PERMISSIONS, MESSAGE_PUSH_DELAY_SECONDS, MESSAGE_REPORT_CONTEXT_BEFORE, MESSAGE_REQUEST_DECLINE_COOLDOWN_DAYS, MINUTES_IN_DAY, MODERATION_ACTION_KINDS, MODERATION_HISTORY_PAGE_SIZE, MODERATION_NOTE_MAX_LENGTH, MODERATION_QUEUE_PAGE_SIZE, MOVEMENT_PATTERNS, MUSCLE_GROUPS, type MarkConversationReadRequest, type MarkNotificationsReadRequest, type MarkNotificationsReadResponse, type MeasurableGoal, type MeasurableGoalDirection, type MeasurableGoalExercise, type MeasurableGoalInput, type MeasurableGoalType, type MemberActivityResponse, type MemberMessagingState, type MemberModerationState, type MemberRoutinesResponse, type MemberSearchPage, type MessageAttachment, type MessageAttachmentKind, type MessagePermission, type MessagePushPayload, type MessageRoutineAttachment, type MessageWorkoutAttachment, type MessageWorkoutSummary, type ModerationActionKind, type ModerationActionRecord, type ModerationHistoryQuery, type ModerationHistoryResponse, type ModerationQueueQuery, type ModerationQueueResponse, type ModerationReport, type ModeratorState, type MoveOccurrenceRequest, type MovementPattern, type MuscleGroup, type MuscleGroupHeatmapQuery, type MuscleGroupHeatmapResponse, type MuscleGroupHeatmapValue, type MuscleGroupHeatmapWeek, type MuscleVolumeTrendSeries, NEW_CONVERSATIONS_PER_DAY_MAX, NOTIFICATIONS_LIST_LIMIT, NOTIFICATIONS_LOOKBACK_DAYS, NOTIFICATIONS_PAGE_SIZE, NOTIFICATIONS_PAGE_SIZE_MAX, NOTIFICATIONS_RETENTION_DAYS, NOTIFICATION_CATEGORIES, NOTIFICATION_KINDS, type NewFollowerNotification, type NotificationCategory, type NotificationKind, type NotificationPreferences, type NotificationPreferencesResponse, type NotificationsQuery, type NotificationsResponse, ONBOARDING_STEPS_MAX, ONBOARDING_STEP_ID_PATTERN_SOURCE, ONBOARDING_VERSION_MAX, OTHER_WARM_UP_STEPS, type OnboardingState, type OwnActivityEntry, type OwnActivityResponse, PLATEAU_MIN_DAYS_SINCE_BEST, PLATEAU_MIN_SESSIONS, PLATEAU_MIN_SESSIONS_MAX, PLATEAU_MIN_SESSIONS_MIN, PLATEAU_RECENT_DAYS, PLATEAU_WINDOW_DAYS, PLATE_SETS, PREFERRED_TRAINING_STYLE_VALUES, PROFILE_BIO_MAX_LENGTH, PROFILE_FAVORITE_EXERCISES_MAX, PROFILE_LOCATION_MAX_LENGTH, PROFILE_TRAINING_DISCIPLINES_MAX, PROFILE_TRAINING_GOALS_MAX, PROFILE_VISIBILITY_VALUES, PROGRESSION_SCHEMES, PROGRESS_TIMELINE_EVENT_TYPES, PUSH_PAYLOAD_KINDS, PUSH_SUBSCRIPTIONS_MAX, type PaginatedResponse, type PersonalGoalProgress, type PersonalGoalsResponse, type PersonalRecordActivity, type PersonalRecordEntry, type PersonalRecordKind, type PlannedReminder, type PlateLoadingItem, type PlateLoadingResult, type PlatePairInventory, type PlateSetChoice, type PlateauPreferences, type PlateauSet, type PlateausResponse, type PreferredTrainingStyle, type PreviousPerformanceResponse, type PreviousSessionRecap, type PreviousSetPerformance, type ProfileDiscoverySettings, type ProfileFavoriteExercise, type ProfilePrivacySettings, type ProfileViewerAccess, type ProfileVisibility, type ProgressTimelineEventType, type ProgressTimelineItem, type ProgressTimelinePersonalRecordItem, type ProgressTimelineProgressionItem, type ProgressTimelineQuery, type ProgressTimelineRecordPerformance, type ProgressTimelineRecordReason, type ProgressTimelineResponse, type ProgressTimelineSessionContext, type ProgressionActivity, type ProgressionChange, type ProgressionRule, type ProgressionScheme, type ProgressionSetChange, type PublicBodyMetrics, type PublicProfileAchievements, type PublicTrainingSummary, type PublicUserProfile, type PushPayload, type PushPayloadKind, type PushSubscriptionKeys, type PushSubscriptionSummary, type PushSubscriptionsResponse, type QuietHours, REALTIME_HEARTBEAT_MS, REALTIME_MAX_STREAMS_PER_MEMBER, REALTIME_MAX_STREAM_MS, REALTIME_STREAM_PATH, REALTIME_TOPICS, REALTIME_UNAVAILABLE_RETRY_SECONDS, RECENT_SEARCHES_MAX, RECENT_SEARCH_KINDS, RELATIONSHIP_LIST_DEFAULT_LIMIT, RELATIONSHIP_LIST_KINDS, RELATIONSHIP_LIST_MAX_LIMIT, RENAISSANCE_RANK_DEFINITIONS, REPORTS_PER_DAY_MAX, REPORT_DETAILS_MAX_LENGTH, REPORT_REASONS, REPORT_STATUSES, REPORT_SUBJECT_KINDS, REP_TYPES, RESERVED_USERNAMES, REST_ALERT_MAX_LEAD_SECONDS, REST_ALERT_MIN_LEAD_SECONDS, REST_ALERT_REFUSALS, ROUTINE_DAYS_MAX, ROUTINE_DAY_NAME_MAX, ROUTINE_DISCOVERY_DEFAULT_LIMIT, ROUTINE_DISCOVERY_MAX_LIMIT, ROUTINE_DISCOVERY_SCAN_LIMIT, ROUTINE_DURATION_BANDS, ROUTINE_DURATION_BAND_MAX_MINUTES, ROUTINE_SCHEDULE_MODES, ROUTINE_SHARE_MAX_ACTIVE_LINKS, ROUTINE_TRAINING_BLOCKS_MAX, ROUTINE_TRAINING_BLOCK_NAME_MAX, ROUTINE_TRAINING_BLOCK_REVISIONS_MAX, ROUTINE_TRAINING_BLOCK_SOURCE_KINDS, ROUTINE_TRAINING_BLOCK_STATES, ROUTINE_VERSIONS_MAX, ROUTINE_VERSION_KINDS, ROUTINE_VERSION_NAME_MAX, ROUTINE_VISIBILITY_VALUES, type RealtimeEvent, type RealtimeTopic, type RecentActivityEntry, type RecentExercise, type RecentRoutine, type RecentSearchItem, type RecentSearchKind, type RecentSearchesResponse, type RecordRecentSearchRequest, type RegisterPushSubscriptionRequest, type RelationshipListKind, type RelationshipListQuery, type RelationshipListResponse, type RelationshipMember, type RenaissanceRankDefinition, type RenaissanceRankProgress, type RepTargetPeriod, type RepTargetSignal, type RepType, type ReplaceFeaturedProfileItemsRequest, type ReplaceMeasurableGoalsRequest, type ReplaceTrainingLocationsRequest, type ReportReason, type ReportStatus, type ReportSubjectKind, type ReportSubjectPreview, type ReportedMessageContext, type ResolvedRoutinePlan, type RestAlertPushPayload, type RestAlertRefusal, type RestoreRoutineVersionResponse, type ReviewReportRequest, type ReviewReportResponse, type Routine, type RoutineClassification, type RoutineDay, type RoutineDayId, type RoutineDiscoveryQuery, type RoutineDiscoveryResponse, type RoutineDurationBand, type RoutineExercise, type RoutineFacets, type RoutineId, type RoutineLineage, type RoutinePlanSource, type RoutineScheduleMode, type RoutineSearchPage, type RoutineSet, type RoutineShare, type RoutineShareListResponse, type RoutineSharedActivity, type RoutineTemporaryOverride, type RoutineTemporaryOverridePlan, type RoutineTemporaryOverridesResponse, type RoutineTrainingBlock, type RoutineTrainingBlockPlan, type RoutineTrainingBlockRevision, type RoutineTrainingBlockRevisionsResponse, type RoutineTrainingBlockSource, type RoutineTrainingBlockSourceKind, type RoutineTrainingBlockState, type RoutineTrainingBlocksResponse, type RoutineVersion, type RoutineVersionDay, type RoutineVersionExercise, type RoutineVersionKind, type RoutineVersionSetup, type RoutineVersionsResponse, type RoutineVisibility, SCHEDULE_MOVE_MAX_DAYS, SCHEDULE_OVERRIDES_MAX_RANGE_DAYS, SCHEDULE_OVERRIDE_KINDS, SCHEDULE_SKIP_PAST_DAYS, SEARCH_PAGE_SIZE, SEARCH_PAGE_SIZE_MAX, SEARCH_PREVIEW_LIMIT, SEARCH_QUERY_MAX_LENGTH, SEARCH_QUERY_MIN_LENGTH, SEARCH_SERVER_CATEGORIES, SESSION_CORRECTIONS_MAX, SESSION_CORRECTION_LIMITS, SESSION_CORRECTION_WINDOW_HOURS, SESSION_EXERCISE_NOTE_MAX_LENGTH, SESSION_NOTE_MAX_LENGTH, SESSION_SHARE_DEFAULT_FIELDS, SESSION_SHARE_FIELDS, SESSION_SHARE_MAX_ACTIVE_LINKS, SET_KINDS, SET_KIND_LABELS, SEXES, SHARED_ROUTINE_SOURCES, STARRED_EXERCISES_MAX, STREAK_MAX_GAP_DAYS, SUPPORTED_LOCALES, type ScheduleOverride, type ScheduleOverrideKind, type ScheduleOverridesQuery, type ScheduleOverridesResponse, type ScheduleRestAlertRequest, type ScheduleRestAlertResponse, type SearchPage, type SearchPageQuery, type SearchPreviewQuery, type SearchPreviewResponse, type SearchServerCategory, type SendMessageRequest, type SendMessageResponse, type SendTrainingPartnerEncouragementRequest, type SendTrainingPartnerEncouragementResponse, type SessionComparisonExercise, type SessionComparisonQuery, type SessionComparisonResponse, type SessionComparisonRoutineDay, type SessionComparisonSession, type SessionComparisonSet, type SessionCompletedActivity, type SessionCorrection, type SessionCorrectionClosedReason, type SessionCorrectionWindow, type SessionCorrectionsResponse, type SessionExerciseNote, type SessionExerciseSubstitution, type SessionProgressNotification, type SessionRecapExerciseNote, type SessionRecapRecord, type SessionSetCorrection, type SessionShare, type SessionShareField, type SessionShareListResponse, type SessionTemporaryOverride, type SessionTrainingBlock, type SetAccountTimeZoneRequest, type SetActivityEntryAudienceRequest, type SetActivityEntryAudienceResponse, type SetActivityReactionRequest, type SetActivityReactionResponse, type SetKind, type SetLog, type SetLogValues, type Sex, type SharedRoutine, type SharedRoutineOwner, type SharedRoutineSearchResult, type SharedRoutineSource, type SharedRoutineSummary, type SharedSessionOwner, type SharedSessionRecap, type SharedWorkout, type SharedWorkoutExercise, type SharedWorkoutSet, type SkipOccurrenceRequest, type StarredExercise, type StarredExercisesResponse, type StartConversationRequest, type StartWorkoutRequest, type StartWorkoutResponse, type StreakAtRiskPushPayload, type StreakMilestoneActivity, type StreakMilestoneEventPayload, type SubstituteSessionExerciseRequest, type SubstituteSessionExerciseResponse, type SupabaseAuthResponse, type SupabaseAuthUser, type SupabaseMigrationResponse, TEMPORARY_OVERRIDE_KINDS, TEMPORARY_OVERRIDE_SOURCE_KINDS, TRAINING_BLOCK_COMPARISON_MAX_DAYS, TRAINING_DISCIPLINE_VALUES, TRAINING_EVENT_TYPES, TRAINING_EXPERIENCE_LEVEL_VALUES, TRAINING_GOAL_VALUES, TRAINING_PARTNERSHIP_STATUSES, TRAINING_PARTNERS_MAX, TRAINING_PARTNER_ENCOURAGEMENTS_PER_24_HOURS_MAX, TRAINING_PARTNER_ENCOURAGEMENT_KINDS, TRAINING_PARTNER_PERMISSION_KEYS, TRAINING_PARTNER_REQUESTS_PER_DAY_MAX, TRAINING_SIGNAL_DECLINES_MAX, TRAINING_SIGNAL_DECLINE_SESSIONS, TRAINING_SIGNAL_MIN_DECLINE, TRAINING_SIGNAL_MIN_RPE_SETS, TRAINING_SIGNAL_MIN_SHORT_SETS, TRAINING_SIGNAL_MIN_TARGET_SETS, TRAINING_SIGNAL_PERIOD_DAYS, TRAINING_SIGNAL_RPE_RISE, TRAINING_SIGNAL_SHORT_LIFTS_MAX, TRAINING_SIGNAL_SHORT_POINTS_RISE, TRAINING_SIGNAL_WORKOUT_DROP, type TemporaryOverrideKind, type TemporaryOverrideSource, type TemporaryOverrideSourceKind, type TrainingBlockComparisonResponse, type TrainingDiscipline, type TrainingEventType, type TrainingExperienceLevel, type TrainingGoal, type TrainingIdentity, type TrainingLocationPreference, type TrainingLocationPreferenceInput, type TrainingPartnerAchievementNotification, type TrainingPartnerAchievementPushPayload, type TrainingPartnerEncouragementKind, type TrainingPartnerEncouragementNotification, type TrainingPartnerPermissions, type TrainingPartnerScheduleDay, type TrainingPartnerScheduleResponse, type TrainingPartnerSessionNotification, type TrainingPartnerSessionPushPayload, type TrainingPartnership, type TrainingPartnershipStatus, type TrainingPartnershipsResponse, type TrainingReminderPreference, type TrainingReminderPushPayload, type TrainingSignalPeriod, type TrainingSignalsResponse, USERNAME_MAX_LENGTH, USERNAME_MIN_LENGTH, USERNAME_PATTERN_SOURCE, type UnreadConversationsResponse, type UpdateActivitySharingRequest, type UpdateCustomExerciseRequest, type UpdateDashboardLayoutRequest, type UpdateLocaleRequest, type UpdateMessagePermissionRequest, type UpdateNotificationPreferencesRequest, type UpdateOnboardingRequest, type UpdateProfileDiscoveryRequest, type UpdateProfilePrivacyRequest, type UpdateProfileRequest, type UpdateRoutineRequest, type UpdateRoutineVisibilityRequest, type UpdateSessionNotesRequest, type UpdateSessionNotesResponse, type UpdateTrainingPartnerPermissionsRequest, type UpdateWeekStartRequest, type UpsertBodyMeasurementRequest, type UpsertRoutineTrainingBlockRequest, type UpsertSetLogRequest, type UpsertSetLogResponse, type UserId, type UserProfile, type UserSearchResponse, type VolumeTrendPoint, type VolumeTrendQuery, type VolumeTrendResponse, type VolumeTrendSeries, WEEK_STARTS, WEIGHT_UNITS, WORKOUT_SESSION_STATUSES, type WarmUpEquipment, type WarmUpLoad, type WarmUpRamp, type WarmUpSet, type WarmUpStep, type WeekStartsOn, type WeightUnit, type WorkoutAnalyticsStatus, type WorkoutPeriod, type WorkoutProgressQuery, type WorkoutProgressResponse, type WorkoutSearchPage, type WorkoutSession, type WorkoutSessionId, type WorkoutSessionListResponse, type WorkoutSessionRecap, type WorkoutSessionSnapshotV1, type WorkoutSessionStatus, type WorkoutSessionSummary, type WorkoutSignal, type WorkoutStatsQuery, type WorkoutStatsResponse, accountExportFileName, advanceLinearPeriodization, apiError, apiErrorMessage, applyDeload, bodyMeasurementProblems, bodyProgressRangeStart, buildWarmUpRamp, calculatePlateLoading, canLinkToNext, cmToFeetInches, cmToInches, continueLinearPeriodization, countsAsWork, countsForProgression, customExerciseProblem, defaultWarmUpEquipment, deloadLengthDays, exerciseGroupLabel, exerciseGroupPosition, exerciseGroups, exerciseNameKey, feetInchesToCm, followWorkingLoad, goalSuggestionKey, hasOversizedGroup, inchesToCm, isApiErrorCode, isAppLocale, isBarLoaded, isBodyMeasurementDate, isDashboardSectionId, isDefaultDashboardLayout, isGoalSuggestionKey, isMessagePermission, isOnboardingStepId, isRealtimeTopic, isSetKind, isWeekStartsOn, isWithinQuietHours, latestBodyWeight, leadWorkingWeight, linearPeriodizationProblem, lpEstimate, lpLoadKg, lpPrescription, lpRecommendation, lpRirMidpoint, lpSampleRir, lpSetEstimateKg, lpStep, lpStoredSets, lpWorkingSets, matchesDeletionConfirmation, messageBodyLength, messageNote, normalizeDashboardLayout, normalizeExerciseLinks, normalizeExerciseName, normalizeMessageBody, normalizeSearchQuery, parseRealtimeEvent, primaryEquipment, requiredToFinish, resolveActiveTrainingBlock, resolveRoutinePlan, roundDownToIncrement, roundToIncrement, routineDayLabel, sameLpPosition, sessionCorrectionWindow, setKindOf, setLogValuesDiffer, startLinearPeriodization, summarizeBodyProgress, trainingBlockCovers, warmUpLoad, weekStartOf };