@sunsteel/contracts 0.93.0 → 0.95.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
@@ -174,8 +174,20 @@ interface LinearPeriodizationState {
174
174
  /** RECOVERY: the reference the next block starts from. */
175
175
  nextReferenceMaxKg?: number | null;
176
176
  }
177
- /** A new block from step 1. */
178
- declare function startLinearPeriodization(referenceMaxKg: number, cycle?: number): LinearPeriodizationState;
177
+ /**
178
+ * A new block, from step 1 unless the member is already part of the way
179
+ * through it (ROUT-20): the earlier steps are never treated as done.
180
+ */
181
+ declare function startLinearPeriodization(referenceMaxKg: number, cycle?: number, step?: number): LinearPeriodizationState;
182
+ /**
183
+ * The same block at another step (ROUT-20): what a member sets when they
184
+ * already trained part of it outside the app, or got the week wrong. The
185
+ * reference max and block number stay; samples from that step on are
186
+ * dropped, so the estimate only ever reads sets done at steps 7-8 before
187
+ * the slot gets there again. A finished block or its recovery step becomes
188
+ * a running block at that step.
189
+ */
190
+ declare function lpAtStep(state: LinearPeriodizationState, step: number): LinearPeriodizationState;
179
191
  /** Why a state cannot be stored, or null. */
180
192
  declare function linearPeriodizationProblem(state: LinearPeriodizationState): string | null;
181
193
  /** What one set of an LP exercise prescribes this workout. */
@@ -1384,434 +1396,99 @@ interface WorkoutStatsResponse {
1384
1396
  activeDaysThisWeek: number;
1385
1397
  }
1386
1398
 
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;
1399
+ declare const TRAINING_EVENT_TYPES: readonly ["SESSION_COMPLETED", "PERSONAL_RECORD", "PROGRESSION_CHANGED", "STREAK_MILESTONE", "ACHIEVEMENT_UNLOCKED"];
1400
+ type TrainingEventType = (typeof TRAINING_EVENT_TYPES)[number];
1401
+ /** Stable successful response of GET /workouts/progress. */
1402
+ interface WorkoutProgressQuery {
1403
+ timeZone: string;
1426
1404
  }
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 {
1405
+ interface PersonalRecordEntry {
1406
+ exerciseId: string;
1407
+ exerciseName: string;
1408
+ weight: number;
1409
+ reps: number;
1410
+ estimated1rm: number;
1411
+ achievedAt: string;
1412
+ }
1413
+ interface RecentActivityEntry {
1433
1414
  sessionId: string;
1415
+ routineId: string;
1434
1416
  routineName: string;
1435
- dayName: string | null;
1436
- endedAt: IsoDateString;
1437
- durationSec: number;
1417
+ dayName: string;
1418
+ startedAt: string;
1419
+ endedAt: string | null;
1420
+ durationSec: number | null;
1438
1421
  totalVolumeKg: number;
1439
1422
  completedSets: number;
1440
1423
  }
1441
- /** MSG-10: `workout` is null once it is no longer available (deleted). */
1442
- interface MessageWorkoutAttachment {
1443
- kind: "WORKOUT";
1444
- workout: MessageWorkoutSummary | null;
1424
+ interface WorkoutProgressResponse {
1425
+ totalVolumeKg: number;
1426
+ currentStreakDays: number;
1427
+ bestStreakDays: number;
1428
+ personalRecords: PersonalRecordEntry[];
1429
+ recentActivity: RecentActivityEntry[];
1445
1430
  }
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;
1431
+ interface ExerciseStrengthTrendQuery {
1432
+ exerciseId?: string;
1433
+ from?: string;
1434
+ to?: string;
1454
1435
  }
1455
- interface SharedWorkoutExercise {
1436
+ interface ExerciseStrengthSummary {
1456
1437
  exerciseId: string;
1457
- /** The exercise as it was performed (a swapped slot by its substitute). */
1458
- name: string;
1459
- sets: SharedWorkoutSet[];
1438
+ exerciseName: string;
1439
+ weightKg: number;
1440
+ reps: number;
1441
+ estimated1rmKg: number;
1442
+ achievedAt: string;
1460
1443
  }
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[];
1444
+ interface ExerciseStrengthTrendPoint {
1445
+ sessionId: string;
1446
+ achievedAt: string;
1447
+ weightKg: number;
1448
+ reps: number;
1449
+ estimated1rmKg: number;
1473
1450
  }
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;
1451
+ /** Stable successful response of GET /workouts/progress/strength. */
1452
+ interface ExerciseStrengthTrendResponse {
1453
+ exercises: ExerciseStrengthSummary[];
1454
+ selectedExercise: ExerciseStrengthSummary | null;
1455
+ range: {
1456
+ from: string | null;
1457
+ to: string;
1458
+ };
1459
+ baseline: ExerciseStrengthTrendPoint | null;
1460
+ points: ExerciseStrengthTrendPoint[];
1461
+ truncated: boolean;
1486
1462
  }
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;
1463
+ interface ExercisePerformanceHistoryQuery {
1464
+ exerciseId?: string;
1465
+ from?: string;
1466
+ to?: string;
1467
+ cursor?: string;
1468
+ limit?: number;
1510
1469
  }
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";
1470
+ interface ExercisePerformanceSummary {
1471
+ exerciseId: string;
1472
+ exerciseName: string;
1473
+ lastPerformedAt: string;
1474
+ hasStrengthTrend: boolean;
1518
1475
  }
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;
1476
+ interface ExercisePerformanceSet {
1477
+ routineExerciseId: string;
1478
+ setNumber: number;
1479
+ reps: number;
1480
+ weightKg?: number | null;
1481
+ rpe?: number | null;
1551
1482
  }
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;
1597
- }
1598
- /** GET /conversations/:id/messages, newest first; `cursor` pages older. */
1599
- interface ConversationMessagesResponse {
1600
- conversation: ConversationSummary;
1601
- messages: ConversationMessage[];
1602
- nextCursor: string | null;
1603
- }
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;
1617
- }
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;
1626
- }
1627
- interface SendMessageResponse {
1628
- conversation: ConversationSummary;
1629
- message: ConversationMessage;
1630
- }
1631
- /** PUT /users/preferences/messages. */
1632
- interface UpdateMessagePermissionRequest {
1633
- messagePermission: MessagePermission;
1634
- }
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;
1645
- }
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 {
1653
- /**
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.
1657
- */
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;
1663
- }
1664
- /**
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.
1668
- */
1669
- interface UpdateOnboardingRequest {
1670
- stepsDone?: string[];
1671
- completedVersion?: number;
1672
- offered?: true;
1673
- }
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;
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;
1721
-
1722
- declare const TRAINING_EVENT_TYPES: readonly ["SESSION_COMPLETED", "PERSONAL_RECORD", "PROGRESSION_CHANGED", "STREAK_MILESTONE", "ACHIEVEMENT_UNLOCKED"];
1723
- type TrainingEventType = (typeof TRAINING_EVENT_TYPES)[number];
1724
- /** Stable successful response of GET /workouts/progress. */
1725
- interface WorkoutProgressQuery {
1726
- timeZone: string;
1727
- }
1728
- interface PersonalRecordEntry {
1729
- exerciseId: string;
1730
- exerciseName: string;
1731
- weight: number;
1732
- reps: number;
1733
- estimated1rm: number;
1734
- achievedAt: string;
1735
- }
1736
- interface RecentActivityEntry {
1737
- sessionId: string;
1738
- routineId: string;
1739
- routineName: string;
1740
- dayName: string;
1741
- startedAt: string;
1742
- endedAt: string | null;
1743
- durationSec: number | null;
1744
- totalVolumeKg: number;
1745
- completedSets: number;
1746
- }
1747
- interface WorkoutProgressResponse {
1748
- totalVolumeKg: number;
1749
- currentStreakDays: number;
1750
- bestStreakDays: number;
1751
- personalRecords: PersonalRecordEntry[];
1752
- recentActivity: RecentActivityEntry[];
1753
- }
1754
- interface ExerciseStrengthTrendQuery {
1755
- exerciseId?: string;
1756
- from?: string;
1757
- to?: string;
1758
- }
1759
- interface ExerciseStrengthSummary {
1760
- exerciseId: string;
1761
- exerciseName: string;
1762
- weightKg: number;
1763
- reps: number;
1764
- estimated1rmKg: number;
1765
- achievedAt: string;
1766
- }
1767
- interface ExerciseStrengthTrendPoint {
1768
- sessionId: string;
1769
- achievedAt: string;
1770
- weightKg: number;
1771
- reps: number;
1772
- estimated1rmKg: number;
1773
- }
1774
- /** Stable successful response of GET /workouts/progress/strength. */
1775
- interface ExerciseStrengthTrendResponse {
1776
- exercises: ExerciseStrengthSummary[];
1777
- selectedExercise: ExerciseStrengthSummary | null;
1778
- range: {
1779
- from: string | null;
1780
- to: string;
1781
- };
1782
- baseline: ExerciseStrengthTrendPoint | null;
1783
- points: ExerciseStrengthTrendPoint[];
1784
- truncated: boolean;
1785
- }
1786
- interface ExercisePerformanceHistoryQuery {
1787
- exerciseId?: string;
1788
- from?: string;
1789
- to?: string;
1790
- cursor?: string;
1791
- limit?: number;
1792
- }
1793
- interface ExercisePerformanceSummary {
1794
- exerciseId: string;
1795
- exerciseName: string;
1796
- lastPerformedAt: string;
1797
- hasStrengthTrend: boolean;
1798
- }
1799
- interface ExercisePerformanceSet {
1800
- routineExerciseId: string;
1801
- setNumber: number;
1802
- reps: number;
1803
- weightKg?: number | null;
1804
- rpe?: number | null;
1805
- }
1806
- interface ExercisePerformancePrescriptionSet {
1807
- setNumber: number;
1808
- repType: RepType;
1809
- reps?: number | null;
1810
- minReps?: number | null;
1811
- maxReps?: number | null;
1812
- weightKg?: number | null;
1813
- rir?: number | null;
1814
- kind?: SetKind;
1483
+ interface ExercisePerformancePrescriptionSet {
1484
+ setNumber: number;
1485
+ repType: RepType;
1486
+ reps?: number | null;
1487
+ minReps?: number | null;
1488
+ maxReps?: number | null;
1489
+ weightKg?: number | null;
1490
+ rir?: number | null;
1491
+ kind?: SetKind;
1815
1492
  }
1816
1493
  interface ExercisePerformancePrescription {
1817
1494
  routineExerciseId: string;
@@ -1939,140 +1616,499 @@ interface SessionComparisonResponse {
1939
1616
  latestSession: SessionComparisonSession | null;
1940
1617
  previousSession: SessionComparisonSession | null;
1941
1618
  }
1942
- declare const PROGRESS_TIMELINE_EVENT_TYPES: readonly ["PERSONAL_RECORD", "PROGRESSION_CHANGED"];
1943
- type ProgressTimelineEventType = (typeof PROGRESS_TIMELINE_EVENT_TYPES)[number];
1944
- interface ProgressTimelineQuery {
1945
- type?: ProgressTimelineEventType;
1946
- /** Only events for one catalog exercise (EXER-01). */
1947
- exerciseId?: string;
1948
- cursor?: string;
1949
- limit?: number;
1619
+ declare const PROGRESS_TIMELINE_EVENT_TYPES: readonly ["PERSONAL_RECORD", "PROGRESSION_CHANGED"];
1620
+ type ProgressTimelineEventType = (typeof PROGRESS_TIMELINE_EVENT_TYPES)[number];
1621
+ interface ProgressTimelineQuery {
1622
+ type?: ProgressTimelineEventType;
1623
+ /** Only events for one catalog exercise (EXER-01). */
1624
+ exerciseId?: string;
1625
+ cursor?: string;
1626
+ limit?: number;
1627
+ }
1628
+ interface ProgressTimelineSessionContext {
1629
+ sessionId: string;
1630
+ routineName: string;
1631
+ dayName?: string | null;
1632
+ }
1633
+ interface ProgressTimelineRecordPerformance {
1634
+ weightKg: number;
1635
+ reps: number;
1636
+ estimated1rmKg: number;
1637
+ }
1638
+ type ProgressTimelineRecordReason = 'FIRST_RECORDED_BEST' | 'HEAVIER_LOAD' | 'MORE_REPS_AT_SAME_LOAD';
1639
+ interface ProgressTimelinePersonalRecordItem {
1640
+ eventId: string;
1641
+ type: 'PERSONAL_RECORD';
1642
+ occurredAt: IsoDateString;
1643
+ session: ProgressTimelineSessionContext;
1644
+ exerciseId: string;
1645
+ exerciseName: string;
1646
+ current: ProgressTimelineRecordPerformance;
1647
+ previous: ProgressTimelineRecordPerformance | null;
1648
+ reason: ProgressTimelineRecordReason;
1649
+ }
1650
+ interface ProgressTimelineProgressionItem {
1651
+ eventId: string;
1652
+ type: 'PROGRESSION_CHANGED';
1653
+ occurredAt: IsoDateString;
1654
+ session: ProgressTimelineSessionContext;
1655
+ exerciseId: string;
1656
+ exerciseName: string;
1657
+ change: ProgressionChange;
1658
+ }
1659
+ type ProgressTimelineItem = ProgressTimelinePersonalRecordItem | ProgressTimelineProgressionItem;
1660
+ /** Stable successful response of GET /workouts/progress/timeline. */
1661
+ interface ProgressTimelineResponse {
1662
+ items: ProgressTimelineItem[];
1663
+ nextCursor?: string;
1664
+ }
1665
+ /** Immutable prescription captured before any sets or progression. */
1666
+ interface WorkoutSessionSnapshotV1 {
1667
+ schemaVersion: 1;
1668
+ sessionId: string;
1669
+ sourceRoutineId: string;
1670
+ sourceRoutineDayId: string;
1671
+ capturedAt: string;
1672
+ provenance: 'CAPTURED' | 'APPROXIMATED';
1673
+ notes: string | null;
1674
+ routine: NonNullable<WorkoutSession['routine']>;
1675
+ routineDay: NonNullable<WorkoutSession['routineDay']>;
1676
+ /** ROUT-15; absent on snapshots captured before blocks executed. */
1677
+ trainingBlock?: WorkoutSession['trainingBlock'];
1678
+ /** ROUT-16; absent on snapshots captured before deloads existed. */
1679
+ temporaryOverride?: WorkoutSession['temporaryOverride'];
1680
+ }
1681
+ interface SetAccountTimeZoneRequest {
1682
+ timeZone: string;
1683
+ /** Bootstrap must not replace a zone registered by another device. */
1684
+ onlyIfUnset?: boolean;
1685
+ }
1686
+ interface WorkoutAnalyticsStatus {
1687
+ timeZone: string | null;
1688
+ requestedTimeZone: string | null;
1689
+ state: 'UNINITIALIZED' | 'BUILDING' | 'READY' | 'FAILED';
1690
+ generationId: string | null;
1691
+ }
1692
+ /**
1693
+ * Thresholds behind every plateau. A lift is flagged only when all hold: at
1694
+ * least the account's minimum sessions (`PLATEAU_MIN_SESSIONS` by default)
1695
+ * of terminal sessions with completed loaded sets of it since its current
1696
+ * best (the session that set the best excluded, and counting only inside the
1697
+ * look-back window), the best is at least
1698
+ * `PLATEAU_MIN_DAYS_SINCE_BEST` days old, and the lift was trained within the
1699
+ * last `PLATEAU_RECENT_DAYS` days. They describe numbers, never a cause.
1700
+ */
1701
+ declare const PLATEAU_WINDOW_DAYS = 56;
1702
+ declare const PLATEAU_MIN_SESSIONS = 4;
1703
+ declare const PLATEAU_MIN_DAYS_SINCE_BEST = 21;
1704
+ declare const PLATEAU_RECENT_DAYS = 21;
1705
+ /**
1706
+ * PREF-05: each account chooses its minimum sessions within these bounds;
1707
+ * `PLATEAU_MIN_SESSIONS` is the default. The other thresholds stay fixed.
1708
+ */
1709
+ declare const PLATEAU_MIN_SESSIONS_MIN = 3;
1710
+ declare const PLATEAU_MIN_SESSIONS_MAX = 8;
1711
+ /** Body and response of PUT /users/preferences/plateaus. */
1712
+ interface PlateauPreferences {
1713
+ minSessions: number;
1714
+ }
1715
+ interface PlateauSet {
1716
+ weightKg: number;
1717
+ reps: number;
1718
+ estimated1rmKg: number;
1719
+ }
1720
+ interface ExercisePlateau {
1721
+ exerciseId: string;
1722
+ exerciseName: string;
1723
+ /** The persisted best-set frontier. */
1724
+ best: PlateauSet & {
1725
+ achievedAt: IsoDateString;
1726
+ };
1727
+ /** Sessions were counted from the later of the best and the window start. */
1728
+ countedSince: IsoDateString;
1729
+ sessionsWithoutNewBest: number;
1730
+ /** The set since then with the highest estimated 1RM (latest on ties). */
1731
+ closest: PlateauSet & {
1732
+ performedAt: IsoDateString;
1733
+ };
1734
+ /** closest.estimated1rmKg / best.estimated1rmKg. */
1735
+ closestRatio: number;
1736
+ lastPerformedAt: IsoDateString;
1737
+ }
1738
+ /** Stable successful response of GET /workouts/progress/plateaus. */
1739
+ interface PlateausResponse {
1740
+ asOf: IsoDateString;
1741
+ thresholds: {
1742
+ windowDays: number;
1743
+ /** The account's PREF-05 choice, within the bounds above. */
1744
+ minSessions: number;
1745
+ minDaysSinceBest: number;
1746
+ recentDays: number;
1747
+ };
1748
+ /** Lifts with a best set that were trained within the recent days. */
1749
+ checkedExercises: number;
1750
+ /** Longest-running first: most sessions without a new best. */
1751
+ plateaus: ExercisePlateau[];
1752
+ }
1753
+
1754
+ /**
1755
+ * Who may start a conversation with a member. `FOLLOWED`: members they follow.
1756
+ * `EVERYONE` (MSG-02): members they follow reach the inbox, anyone else lands
1757
+ * in Requests. `NOBODY`: no one may start a new one.
1758
+ */
1759
+ declare const MESSAGE_PERMISSIONS: readonly ["FOLLOWED", "EVERYONE", "NOBODY"];
1760
+ type MessagePermission = (typeof MESSAGE_PERMISSIONS)[number];
1761
+ declare const DEFAULT_MESSAGE_PERMISSION: MessagePermission;
1762
+ /** Characters in one message, counted as code points. */
1763
+ declare const MESSAGE_BODY_MAX = 2000;
1764
+ /** Messages one member may send in a rolling minute. */
1765
+ declare const MESSAGES_PER_MINUTE_MAX = 30;
1766
+ /** Conversations one member may start in a rolling day. */
1767
+ declare const NEW_CONVERSATIONS_PER_DAY_MAX = 20;
1768
+ declare const CONVERSATIONS_PAGE_SIZE = 20;
1769
+ declare const MESSAGES_PAGE_SIZE = 30;
1770
+ /** Length as a reader counts it: an emoji is one character, not two. */
1771
+ declare function messageBodyLength(body: string): number;
1772
+ /**
1773
+ * The stored form of a typed message: line endings made `\n` and the ends
1774
+ * trimmed, the lines in between kept as written. Null when it is empty or too
1775
+ * long -- it is refused rather than cut, because a message clipped mid-sentence
1776
+ * would misrepresent its author.
1777
+ */
1778
+ declare function normalizeMessageBody(body: string): string | null;
1779
+ /**
1780
+ * MSG-07: what a message, its text left empty or not, may carry -- one of
1781
+ * them, with an optional note. MSG-10 adds a finished workout.
1782
+ */
1783
+ declare const MESSAGE_ATTACHMENT_KINDS: readonly ["ROUTINE", "WORKOUT", "RECORD"];
1784
+ type MessageAttachmentKind = (typeof MESSAGE_ATTACHMENT_KINDS)[number];
1785
+ /**
1786
+ * MSG-07: a routine in a message, as it is now. `routine` is null once it is
1787
+ * no longer available -- deleted, or hidden by moderation -- and the card
1788
+ * says so rather than showing what it once was.
1789
+ */
1790
+ interface MessageRoutineAttachment {
1791
+ kind: "ROUTINE";
1792
+ routine: SharedRoutineSummary | null;
1793
+ }
1794
+ /**
1795
+ * MSG-10: a finished workout in a card -- what was trained and its totals,
1796
+ * as the workout is now (a correction shows). Never its notes, RPE or the
1797
+ * comparison with the session before.
1798
+ */
1799
+ interface MessageWorkoutSummary {
1800
+ sessionId: string;
1801
+ routineName: string;
1802
+ dayName: string | null;
1803
+ endedAt: IsoDateString;
1804
+ durationSec: number;
1805
+ totalVolumeKg: number;
1806
+ completedSets: number;
1807
+ }
1808
+ /** MSG-10: `workout` is null once it is no longer available (deleted). */
1809
+ interface MessageWorkoutAttachment {
1810
+ kind: "WORKOUT";
1811
+ workout: MessageWorkoutSummary | null;
1812
+ }
1813
+ /**
1814
+ * MSG-11: a personal record in a card -- that record as set, even once
1815
+ * beaten: its lift, the performance, when, and the best it beat, as the
1816
+ * progress timeline words it. Nothing of the workout around it.
1817
+ */
1818
+ interface MessageRecordSummary {
1819
+ /** The `PERSONAL_RECORD` training event. */
1820
+ eventId: string;
1821
+ exerciseId: string;
1822
+ exerciseName: string;
1823
+ occurredAt: IsoDateString;
1824
+ current: ProgressTimelineRecordPerformance;
1825
+ previous: ProgressTimelineRecordPerformance | null;
1826
+ reason: ProgressTimelineRecordReason;
1827
+ }
1828
+ /** MSG-11: `record` is null once a correction removed it. */
1829
+ interface MessageRecordAttachment {
1830
+ kind: "RECORD";
1831
+ record: MessageRecordSummary | null;
1832
+ }
1833
+ type MessageAttachment = MessageRoutineAttachment | MessageWorkoutAttachment | MessageRecordAttachment;
1834
+ /** MSG-10: one completed set of a shared workout. Never its RPE. */
1835
+ interface SharedWorkoutSet {
1836
+ setNumber: number;
1837
+ kind: SetKind;
1838
+ /** Canonical kilograms; null for a set logged without a load. */
1839
+ weightKg: number | null;
1840
+ reps: number | null;
1841
+ }
1842
+ interface SharedWorkoutExercise {
1843
+ exerciseId: string;
1844
+ /** The exercise as it was performed (a swapped slot by its substitute). */
1845
+ name: string;
1846
+ sets: SharedWorkoutSet[];
1847
+ }
1848
+ /**
1849
+ * MSG-10: GET /conversations/:id/messages/:messageId/workout. The workout a
1850
+ * message shared, opened: the summary, the records it set and each
1851
+ * exercise's completed sets, in the order they were trained. Nothing else of
1852
+ * the session -- no notes, no RPE, no previous-session comparison.
1853
+ */
1854
+ interface SharedWorkout extends MessageWorkoutSummary {
1855
+ owner: SharedSessionOwner;
1856
+ /** The owner's unit; a reader shows weights in their own. */
1857
+ weightUnit: WeightUnit;
1858
+ records: SessionRecapRecord[];
1859
+ exercises: SharedWorkoutExercise[];
1860
+ }
1861
+ /**
1862
+ * MSG-07: the stored text of a message. A message with a routine may leave it
1863
+ * empty (null); one without must say something. Undefined when the text is
1864
+ * refused: empty with nothing attached, or too long.
1865
+ */
1866
+ declare function messageNote(body: string | undefined | null, hasAttachment: boolean): string | null | undefined;
1867
+ /** The other participant, or null once their account was deleted. */
1868
+ interface ConversationMember {
1869
+ id: string;
1870
+ username: string;
1871
+ name: string;
1872
+ avatarUrl: string | null;
1873
+ }
1874
+ interface ConversationMessage {
1875
+ id: string;
1876
+ sentByMe: boolean;
1877
+ /**
1878
+ * Null once its author deleted it; the place stays as "Message deleted".
1879
+ * Also null for the other participant while moderation hides it (MSG-09),
1880
+ * and for a routine sent without a note (MSG-07).
1881
+ */
1882
+ body: string | null;
1883
+ deleted: boolean;
1884
+ /**
1885
+ * MSG-09: a moderator hid this message from the other participant. They read
1886
+ * "Removed by moderation" in its place; its author still reads the text and
1887
+ * is told it is hidden.
1888
+ */
1889
+ hiddenByModeration: boolean;
1890
+ /**
1891
+ * MSG-07: a routine it carries, resolved as it is now. Null when it carries
1892
+ * none, and whenever the text is withheld (deleted, or hidden from the
1893
+ * viewer by moderation).
1894
+ */
1895
+ attachment: MessageAttachment | null;
1896
+ createdAt: IsoDateString;
1897
+ }
1898
+ /**
1899
+ * MSG-02: a conversation that is still a request. `INCOMING`: the viewer may
1900
+ * accept, decline or block. `OUTGOING`: the viewer sent it and waits -- told
1901
+ * neither whether it was seen nor whether it was declined.
1902
+ */
1903
+ interface ConversationRequest {
1904
+ direction: "INCOMING" | "OUTGOING";
1905
+ }
1906
+ interface ConversationSummary {
1907
+ id: string;
1908
+ /** Null when the other member deleted their account ("Deleted member"). */
1909
+ counterpart: ConversationMember | null;
1910
+ /** The newest message the viewer can see, or null when there is none. */
1911
+ lastMessage: ConversationMessage | null;
1912
+ lastMessageAt: IsoDateString | null;
1913
+ /**
1914
+ * Whether the viewer may write in it now. False when the other member's
1915
+ * account is gone, or the viewer's own messaging is unavailable or
1916
+ * restricted.
1917
+ */
1918
+ canSend: boolean;
1919
+ /**
1920
+ * MSG-09: a moderator restricted the viewer's messaging, which is why they
1921
+ * cannot write. Only ever about the viewer: nobody else is told.
1922
+ */
1923
+ messagingRestricted: boolean;
1924
+ /**
1925
+ * MSG-03: the other member wrote something the viewer has not seen -- a
1926
+ * message after the viewer's read position that is neither deleted nor
1927
+ * removed for them. The viewer's own messages never count.
1928
+ */
1929
+ unread: boolean;
1930
+ /**
1931
+ * MSG-03: the viewer's read position, where "new since you last looked"
1932
+ * starts. Null when they have never read the conversation. It is the
1933
+ * viewer's alone: no read receipts, so a sender never learns it.
1934
+ */
1935
+ lastReadAt: IsoDateString | null;
1936
+ /** MSG-02: null once accepted, or for a conversation that never was a request. */
1937
+ request: ConversationRequest | null;
1938
+ }
1939
+ /**
1940
+ * MSG-02: GET /conversations?box=. The inbox holds accepted conversations
1941
+ * and the viewer's own requests; Requests holds the ones waiting for them.
1942
+ */
1943
+ declare const CONVERSATION_BOXES: readonly ["INBOX", "REQUESTS"];
1944
+ type ConversationBox = (typeof CONVERSATION_BOXES)[number];
1945
+ /**
1946
+ * MSG-02: after a decline, the same member's new request is refused for this
1947
+ * many days, unless the recipient follows them or writes first.
1948
+ */
1949
+ declare const MESSAGE_REQUEST_DECLINE_COOLDOWN_DAYS = 30;
1950
+ /**
1951
+ * MSG-08: a message push waits this long and is dropped if the conversation
1952
+ * was read meanwhile, so two members talking live do not buzz each other.
1953
+ */
1954
+ declare const MESSAGE_PUSH_DELAY_SECONDS = 30;
1955
+ /** GET /conversations, newest activity first. */
1956
+ interface ConversationsResponse {
1957
+ conversations: ConversationSummary[];
1958
+ nextCursor: string | null;
1959
+ /** MSG-09: the viewer's own messaging is restricted by moderation. */
1960
+ messagingRestricted: boolean;
1961
+ }
1962
+ /**
1963
+ * MSG-09: a report of a message captures it and at most this many messages
1964
+ * before it in its conversation, as the reporter could see them then.
1965
+ */
1966
+ declare const MESSAGE_REPORT_CONTEXT_BEFORE = 5;
1967
+ /**
1968
+ * MSG-03: POST /conversations/:id/read. Moves the viewer's read position to
1969
+ * the message they have seen (`through`, the newest one on their screen),
1970
+ * never backwards, so a message that arrived after it stays unread.
1971
+ */
1972
+ interface MarkConversationReadRequest {
1973
+ through: string;
1950
1974
  }
1951
- interface ProgressTimelineSessionContext {
1952
- sessionId: string;
1953
- routineName: string;
1954
- dayName?: string | null;
1975
+ /** MSG-03: GET /conversations/unread, for the navigation's count. */
1976
+ interface UnreadConversationsResponse {
1977
+ /** Conversations with something new, not messages (owner, 2026-10-06). */
1978
+ unreadConversations: number;
1979
+ /**
1980
+ * MSG-02: requests waiting for the viewer. For the Requests tab only: they
1981
+ * never count in the navigation (owner, 2026-10-06).
1982
+ */
1983
+ requests: number;
1955
1984
  }
1956
- interface ProgressTimelineRecordPerformance {
1957
- weightKg: number;
1958
- reps: number;
1959
- estimated1rmKg: number;
1985
+ /** GET /conversations/:id/messages, newest first; `cursor` pages older. */
1986
+ interface ConversationMessagesResponse {
1987
+ conversation: ConversationSummary;
1988
+ messages: ConversationMessage[];
1989
+ nextCursor: string | null;
1960
1990
  }
1961
- type ProgressTimelineRecordReason = 'FIRST_RECORDED_BEST' | 'HEAVIER_LOAD' | 'MORE_REPS_AT_SAME_LOAD';
1962
- interface ProgressTimelinePersonalRecordItem {
1963
- eventId: string;
1964
- type: 'PERSONAL_RECORD';
1965
- occurredAt: IsoDateString;
1966
- session: ProgressTimelineSessionContext;
1967
- exerciseId: string;
1968
- exerciseName: string;
1969
- current: ProgressTimelineRecordPerformance;
1970
- previous: ProgressTimelineRecordPerformance | null;
1971
- reason: ProgressTimelineRecordReason;
1991
+ /**
1992
+ * POST /conversations. Starts a conversation with its first message, so an
1993
+ * empty conversation never exists; when one with this member already exists
1994
+ * the message is sent there instead. `recipient` is a username or an id.
1995
+ */
1996
+ interface StartConversationRequest {
1997
+ recipient: string;
1998
+ /** Optional when the message carries a routine or a workout. */
1999
+ body?: string;
2000
+ /** MSG-07: one of the sender's own routines. */
2001
+ routineId?: string;
2002
+ /** MSG-10: one of the sender's own finished workouts. Not with a routine. */
2003
+ sessionId?: string;
2004
+ /** MSG-11: one of the sender's own personal records, by its event. */
2005
+ recordEventId?: string;
1972
2006
  }
1973
- interface ProgressTimelineProgressionItem {
1974
- eventId: string;
1975
- type: 'PROGRESSION_CHANGED';
1976
- occurredAt: IsoDateString;
1977
- session: ProgressTimelineSessionContext;
1978
- exerciseId: string;
1979
- exerciseName: string;
1980
- change: ProgressionChange;
2007
+ /** POST /conversations/:id/messages. */
2008
+ interface SendMessageRequest {
2009
+ /** Optional when the message carries a routine or a workout. */
2010
+ body?: string;
2011
+ /** MSG-07: one of the sender's own routines. */
2012
+ routineId?: string;
2013
+ /** MSG-10: one of the sender's own finished workouts. Not with a routine. */
2014
+ sessionId?: string;
2015
+ /** MSG-11: one of the sender's own personal records, by its event. */
2016
+ recordEventId?: string;
1981
2017
  }
1982
- type ProgressTimelineItem = ProgressTimelinePersonalRecordItem | ProgressTimelineProgressionItem;
1983
- /** Stable successful response of GET /workouts/progress/timeline. */
1984
- interface ProgressTimelineResponse {
1985
- items: ProgressTimelineItem[];
1986
- nextCursor?: string;
2018
+ interface SendMessageResponse {
2019
+ conversation: ConversationSummary;
2020
+ message: ConversationMessage;
1987
2021
  }
1988
- /** Immutable prescription captured before any sets or progression. */
1989
- interface WorkoutSessionSnapshotV1 {
1990
- schemaVersion: 1;
1991
- sessionId: string;
1992
- sourceRoutineId: string;
1993
- sourceRoutineDayId: string;
1994
- capturedAt: string;
1995
- provenance: 'CAPTURED' | 'APPROXIMATED';
1996
- notes: string | null;
1997
- routine: NonNullable<WorkoutSession['routine']>;
1998
- routineDay: NonNullable<WorkoutSession['routineDay']>;
1999
- /** ROUT-15; absent on snapshots captured before blocks executed. */
2000
- trainingBlock?: WorkoutSession['trainingBlock'];
2001
- /** ROUT-16; absent on snapshots captured before deloads existed. */
2002
- temporaryOverride?: WorkoutSession['temporaryOverride'];
2022
+ /** PUT /users/preferences/messages. */
2023
+ interface UpdateMessagePermissionRequest {
2024
+ messagePermission: MessagePermission;
2003
2025
  }
2004
- interface SetAccountTimeZoneRequest {
2005
- timeZone: string;
2006
- /** Bootstrap must not replace a zone registered by another device. */
2007
- onlyIfUnset?: boolean;
2026
+ /**
2027
+ * On the authenticated member profile only: whether the viewer may start a
2028
+ * conversation, and the one they already have. The server decides; a viewer
2029
+ * who may not is told nothing more.
2030
+ */
2031
+ interface MemberMessagingState {
2032
+ canStart: boolean;
2033
+ conversationId: string | null;
2034
+ /** MSG-02: a first message would land in their Requests. */
2035
+ asRequest: boolean;
2008
2036
  }
2009
- interface WorkoutAnalyticsStatus {
2010
- timeZone: string | null;
2011
- requestedTimeZone: string | null;
2012
- state: 'UNINITIALIZED' | 'BUILDING' | 'READY' | 'FAILED';
2013
- generationId: string | null;
2037
+ declare function isMessagePermission(value: unknown): value is MessagePermission;
2038
+
2039
+ /** A step id as the registry names it: lowercase words joined by hyphens. */
2040
+ declare const ONBOARDING_STEP_ID_PATTERN_SOURCE = "^[a-z][a-z0-9-]{0,39}$";
2041
+ declare const ONBOARDING_STEPS_MAX = 30;
2042
+ declare const ONBOARDING_VERSION_MAX = 1000;
2043
+ interface OnboardingState {
2044
+ /**
2045
+ * The registry version the account completed. A new account starts at 0;
2046
+ * accounts that existed when onboarding shipped start at 1, so they are
2047
+ * offered only steps added later.
2048
+ */
2049
+ completedVersion: number;
2050
+ /** Steps answered or skipped since that version, so the flow resumes. */
2051
+ stepsDone: string[];
2052
+ /** When the flow first opened by itself; it never does again. */
2053
+ offeredAt: IsoDateString | null;
2014
2054
  }
2015
2055
  /**
2016
- * Thresholds behind every plateau. A lift is flagged only when all hold: at
2017
- * least the account's minimum sessions (`PLATEAU_MIN_SESSIONS` by default)
2018
- * of terminal sessions with completed loaded sets of it since its current
2019
- * best (the session that set the best excluded, and counting only inside the
2020
- * look-back window), the best is at least
2021
- * `PLATEAU_MIN_DAYS_SINCE_BEST` days old, and the lift was trained within the
2022
- * last `PLATEAU_RECENT_DAYS` days. They describe numbers, never a cause.
2056
+ * PUT /users/preferences/onboarding. Partial: `stepsDone` is added to what is
2057
+ * stored (two devices never undo each other), `completedVersion` only ever
2058
+ * rises and clears the steps, and `offered` records the first opening once.
2023
2059
  */
2024
- declare const PLATEAU_WINDOW_DAYS = 56;
2025
- declare const PLATEAU_MIN_SESSIONS = 4;
2026
- declare const PLATEAU_MIN_DAYS_SINCE_BEST = 21;
2027
- declare const PLATEAU_RECENT_DAYS = 21;
2060
+ interface UpdateOnboardingRequest {
2061
+ stepsDone?: string[];
2062
+ completedVersion?: number;
2063
+ offered?: true;
2064
+ }
2065
+ declare function isOnboardingStepId(value: unknown): value is string;
2066
+
2028
2067
  /**
2029
- * PREF-05: each account chooses its minimum sessions within these bounds;
2030
- * `PLATEAU_MIN_SESSIONS` is the default. The other thresholds stay fixed.
2068
+ * The weekday a week starts on, as `Date.getDay()` numbers it: 1 Monday, 0
2069
+ * Sunday. Monday is everyone's default, so nothing changes until a member
2070
+ * chooses. **The rank never follows it**: its active weeks are Monday weeks
2071
+ * for every member, because a rank is public and must mean the same on every
2072
+ * profile.
2031
2073
  */
2032
- declare const PLATEAU_MIN_SESSIONS_MIN = 3;
2033
- declare const PLATEAU_MIN_SESSIONS_MAX = 8;
2034
- /** Body and response of PUT /users/preferences/plateaus. */
2035
- interface PlateauPreferences {
2036
- minSessions: number;
2037
- }
2038
- interface PlateauSet {
2039
- weightKg: number;
2040
- reps: number;
2041
- estimated1rmKg: number;
2042
- }
2043
- interface ExercisePlateau {
2044
- exerciseId: string;
2045
- exerciseName: string;
2046
- /** The persisted best-set frontier. */
2047
- best: PlateauSet & {
2048
- achievedAt: IsoDateString;
2049
- };
2050
- /** Sessions were counted from the later of the best and the window start. */
2051
- countedSince: IsoDateString;
2052
- sessionsWithoutNewBest: number;
2053
- /** The set since then with the highest estimated 1RM (latest on ties). */
2054
- closest: PlateauSet & {
2055
- performedAt: IsoDateString;
2056
- };
2057
- /** closest.estimated1rmKg / best.estimated1rmKg. */
2058
- closestRatio: number;
2059
- lastPerformedAt: IsoDateString;
2060
- }
2061
- /** Stable successful response of GET /workouts/progress/plateaus. */
2062
- interface PlateausResponse {
2063
- asOf: IsoDateString;
2064
- thresholds: {
2065
- windowDays: number;
2066
- /** The account's PREF-05 choice, within the bounds above. */
2067
- minSessions: number;
2068
- minDaysSinceBest: number;
2069
- recentDays: number;
2070
- };
2071
- /** Lifts with a best set that were trained within the recent days. */
2072
- checkedExercises: number;
2073
- /** Longest-running first: most sessions without a new best. */
2074
- plateaus: ExercisePlateau[];
2074
+ declare const WEEK_STARTS: readonly [1, 0];
2075
+ type WeekStartsOn = (typeof WEEK_STARTS)[number];
2076
+ declare const DEFAULT_WEEK_STARTS_ON: WeekStartsOn;
2077
+ declare function isWeekStartsOn(value: unknown): value is WeekStartsOn;
2078
+ /**
2079
+ * The first day of the week a `YYYY-MM-DD` calendar date belongs to, as a
2080
+ * `YYYY-MM-DD` date, for a week starting on `weekStartsOn`. Calendar
2081
+ * arithmetic only: no time zone, so a daylight-saving change cannot move it.
2082
+ */
2083
+ declare function weekStartOf(dateKey: string, weekStartsOn?: WeekStartsOn): string;
2084
+ /** PUT /users/preferences/week-start */
2085
+ interface UpdateWeekStartRequest {
2086
+ weekStartsOn: WeekStartsOn;
2075
2087
  }
2088
+ /**
2089
+ * How lengths are shown and typed: centimetres, or inches (a height in feet
2090
+ * and inches). Every length is **stored in centimetres**, as weights are
2091
+ * stored in kilograms; the unit is only the display and entry boundary.
2092
+ */
2093
+ declare const LENGTH_UNITS: readonly ["CM", "IN"];
2094
+ type LengthUnit = (typeof LENGTH_UNITS)[number];
2095
+ declare const CM_PER_INCH = 2.54;
2096
+ declare const INCHES_PER_FOOT = 12;
2097
+ /** Centimetres as inches, to two decimals. */
2098
+ declare function cmToInches(cm: number): number;
2099
+ /** Inches as centimetres, to two decimals. */
2100
+ declare function inchesToCm(inches: number): number;
2101
+ /**
2102
+ * A height in centimetres as whole feet and inches to one decimal. The total
2103
+ * is rounded before it is split, so 71.98 in reads as 6 ft 0 in, never as
2104
+ * 5 ft 12 in.
2105
+ */
2106
+ declare function cmToFeetInches(cm: number): {
2107
+ feet: number;
2108
+ inches: number;
2109
+ };
2110
+ /** Feet and inches as centimetres, to two decimals. */
2111
+ declare function feetInchesToCm(feet: number, inches: number): number;
2076
2112
 
2077
2113
  declare const ACHIEVEMENT_CATEGORIES: readonly ["SESSIONS", "SETS", "VOLUME_KG", "RECORDS", "STREAK_DAYS"];
2078
2114
  type AchievementCategory = (typeof ACHIEVEMENT_CATEGORIES)[number];
@@ -2346,6 +2382,11 @@ interface CapturedMessage {
2346
2382
  * empty when it was no longer available, or null when it carried none.
2347
2383
  */
2348
2384
  workoutName?: string | null;
2385
+ /**
2386
+ * MSG-11: the record it carried, by its lift, empty when it was no longer
2387
+ * available, or null when it carried none.
2388
+ */
2389
+ recordName?: string | null;
2349
2390
  createdAt: IsoDateString;
2350
2391
  }
2351
2392
  /**
@@ -4718,6 +4759,8 @@ interface AccountExportV1 {
4718
4759
  routineId?: string;
4719
4760
  /** MSG-10: the member's own workout the message shared, by id. */
4720
4761
  sessionId?: string;
4762
+ /** MSG-11: the member's own record the message shared, by its event. */
4763
+ recordEventId?: string;
4721
4764
  createdAt: IsoDateString;
4722
4765
  }>;
4723
4766
  reportsFiled: Array<{
@@ -4895,7 +4938,7 @@ declare const API_ERROR_MESSAGES: {
4895
4938
  readonly ENCOURAGEMENT_RETRY: "Please retry the encouragement.";
4896
4939
  readonly MESSAGE_SELF: "You cannot message yourself";
4897
4940
  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.";
4941
+ readonly MESSAGE_ONE_ATTACHMENT: "A message can carry one routine, one workout or one record.";
4899
4942
  readonly MESSAGES_PER_MINUTE: "You can send at most {max} messages a minute.";
4900
4943
  readonly CONVERSATIONS_PER_DAY: "You can start at most {max} new conversations a day.";
4901
4944
  readonly MESSAGE_NOT_ADMITTED: "This member is not taking messages from you.";
@@ -5087,4 +5130,4 @@ declare function isRealtimeTopic(value: unknown): value is RealtimeTopic;
5087
5130
  /** The event in one `data:` payload, or null for anything else. */
5088
5131
  declare function parseRealtimeEvent(data: string): RealtimeEvent | null;
5089
5132
 
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 };
5133
+ 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 MessageRecordAttachment, type MessageRecordSummary, 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, lpAtStep, 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 };