@sunsteel/contracts 0.104.0 → 0.106.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.cjs CHANGED
@@ -45,6 +45,8 @@ __export(index_exports, {
45
45
  BODY_MEASUREMENT_FIELDS: () => BODY_MEASUREMENT_FIELDS,
46
46
  BODY_MEASUREMENT_FIELD_KEYS: () => BODY_MEASUREMENT_FIELD_KEYS,
47
47
  BODY_PROGRESS_RANGES: () => BODY_PROGRESS_RANGES,
48
+ CHECKOUT_ATTEMPT_STATUSES: () => CHECKOUT_ATTEMPT_STATUSES,
49
+ CHECKOUT_ATTEMPT_TTL_MINUTES: () => CHECKOUT_ATTEMPT_TTL_MINUTES,
48
50
  CLONE_ROUTINE_REFUSALS: () => CLONE_ROUTINE_REFUSALS,
49
51
  CM_PER_INCH: () => CM_PER_INCH,
50
52
  COMEBACK_MIN_INACTIVE_DAYS: () => COMEBACK_MIN_INACTIVE_DAYS,
@@ -171,6 +173,7 @@ __export(index_exports, {
171
173
  PROFILE_VISIBILITY_VALUES: () => PROFILE_VISIBILITY_VALUES,
172
174
  PROGRESSION_SCHEMES: () => PROGRESSION_SCHEMES,
173
175
  PROGRESS_TIMELINE_EVENT_TYPES: () => PROGRESS_TIMELINE_EVENT_TYPES,
176
+ PRO_PRICE: () => PRO_PRICE,
174
177
  PUSH_PAYLOAD_KINDS: () => PUSH_PAYLOAD_KINDS,
175
178
  PUSH_SUBSCRIPTIONS_MAX: () => PUSH_SUBSCRIPTIONS_MAX,
176
179
  REALTIME_HEARTBEAT_MS: () => REALTIME_HEARTBEAT_MS,
@@ -200,6 +203,19 @@ __export(index_exports, {
200
203
  ROUTINE_DISCOVERY_DEFAULT_LIMIT: () => ROUTINE_DISCOVERY_DEFAULT_LIMIT,
201
204
  ROUTINE_DISCOVERY_MAX_LIMIT: () => ROUTINE_DISCOVERY_MAX_LIMIT,
202
205
  ROUTINE_DISCOVERY_SCAN_LIMIT: () => ROUTINE_DISCOVERY_SCAN_LIMIT,
206
+ ROUTINE_DRAFT_DESCRIPTION_MAX: () => ROUTINE_DRAFT_DESCRIPTION_MAX,
207
+ ROUTINE_DRAFT_EXERCISES_PER_DAY_MAX: () => ROUTINE_DRAFT_EXERCISES_PER_DAY_MAX,
208
+ ROUTINE_DRAFT_NAME_MAX: () => ROUTINE_DRAFT_NAME_MAX,
209
+ ROUTINE_DRAFT_REPS_MAX: () => ROUTINE_DRAFT_REPS_MAX,
210
+ ROUTINE_DRAFT_REPS_MIN: () => ROUTINE_DRAFT_REPS_MIN,
211
+ ROUTINE_DRAFT_REQUEST_MAX: () => ROUTINE_DRAFT_REQUEST_MAX,
212
+ ROUTINE_DRAFT_REQUEST_MIN: () => ROUTINE_DRAFT_REQUEST_MIN,
213
+ ROUTINE_DRAFT_REST_SECONDS_MAX: () => ROUTINE_DRAFT_REST_SECONDS_MAX,
214
+ ROUTINE_DRAFT_REST_SECONDS_MIN: () => ROUTINE_DRAFT_REST_SECONDS_MIN,
215
+ ROUTINE_DRAFT_SETS_PER_DAY_MAX: () => ROUTINE_DRAFT_SETS_PER_DAY_MAX,
216
+ ROUTINE_DRAFT_SETS_PER_EXERCISE_MAX: () => ROUTINE_DRAFT_SETS_PER_EXERCISE_MAX,
217
+ ROUTINE_DRAFT_STATES: () => ROUTINE_DRAFT_STATES,
218
+ ROUTINE_DRAFT_WEEKLY_MUSCLE_SETS_MAX: () => ROUTINE_DRAFT_WEEKLY_MUSCLE_SETS_MAX,
203
219
  ROUTINE_DURATION_BANDS: () => ROUTINE_DURATION_BANDS,
204
220
  ROUTINE_DURATION_BAND_MAX_MINUTES: () => ROUTINE_DURATION_BAND_MAX_MINUTES,
205
221
  ROUTINE_SCHEDULE_MODES: () => ROUTINE_SCHEDULE_MODES,
@@ -237,6 +253,7 @@ __export(index_exports, {
237
253
  SHARED_ROUTINE_SOURCES: () => SHARED_ROUTINE_SOURCES,
238
254
  STARRED_EXERCISES_MAX: () => STARRED_EXERCISES_MAX,
239
255
  STREAK_MAX_GAP_DAYS: () => STREAK_MAX_GAP_DAYS,
256
+ SUBSCRIPTION_STATUSES: () => SUBSCRIPTION_STATUSES,
240
257
  SUPPORTED_LOCALES: () => SUPPORTED_LOCALES,
241
258
  TEMPORARY_OVERRIDE_KINDS: () => TEMPORARY_OVERRIDE_KINDS,
242
259
  TEMPORARY_OVERRIDE_SOURCE_KINDS: () => TEMPORARY_OVERRIDE_SOURCE_KINDS,
@@ -550,7 +567,9 @@ var PLAN_LIMIT_KEYS = [
550
567
  /** PREF-01: training locations. */
551
568
  "TRAINING_LOCATIONS",
552
569
  /** PROG-03, PROG-04: weeks of muscle history. */
553
- "MUSCLE_HISTORY_WEEKS"
570
+ "MUSCLE_HISTORY_WEEKS",
571
+ /** INTEL-03: routine drafts delivered per calendar month (UTC). */
572
+ "ROUTINE_DRAFTS_PER_MONTH"
554
573
  ];
555
574
  var PLANS = {
556
575
  FREE: {
@@ -560,7 +579,8 @@ var PLANS = {
560
579
  ROUTINE_VERSIONS: 3,
561
580
  GOALS: 3,
562
581
  TRAINING_LOCATIONS: 1,
563
- MUSCLE_HISTORY_WEEKS: 4
582
+ MUSCLE_HISTORY_WEEKS: 4,
583
+ ROUTINE_DRAFTS_PER_MONTH: 0
564
584
  }
565
585
  },
566
586
  PRO: {
@@ -570,7 +590,8 @@ var PLANS = {
570
590
  ROUTINE_VERSIONS: 20,
571
591
  GOALS: 8,
572
592
  TRAINING_LOCATIONS: null,
573
- MUSCLE_HISTORY_WEEKS: 12
593
+ MUSCLE_HISTORY_WEEKS: 12,
594
+ ROUTINE_DRAFTS_PER_MONTH: 10
574
595
  }
575
596
  }
576
597
  };
@@ -592,6 +613,21 @@ function isGrantActive(grant, now = /* @__PURE__ */ new Date()) {
592
613
  function planFromGrants(grants, now = /* @__PURE__ */ new Date()) {
593
614
  return grants.filter((grant) => isGrantActive(grant, now)).reduce((plan, grant) => higherPlan(plan, grant.planId), DEFAULT_PLAN);
594
615
  }
616
+ var PRO_PRICE = {
617
+ planId: "PRO",
618
+ amount: 4999,
619
+ currency: "ARS",
620
+ interval: "MONTH"
621
+ };
622
+ var CHECKOUT_ATTEMPT_STATUSES = [
623
+ "PENDING",
624
+ "COMPLETED",
625
+ "FAILED",
626
+ "CANCELED",
627
+ "EXPIRED"
628
+ ];
629
+ var CHECKOUT_ATTEMPT_TTL_MINUTES = 60;
630
+ var SUBSCRIPTION_STATUSES = ["TRIALING", "ACTIVE", "PAST_DUE", "CANCELED"];
595
631
  var FREE_STRENGTH_RANGE_DAYS = 90;
596
632
  var STRENGTH_RANGE_SLACK_DAYS = 2;
597
633
  function strengthRangeNeedsPro(range) {
@@ -1821,6 +1857,26 @@ var DELOAD_SUGGESTION_SIGNALS = [
1821
1857
  "DECLINES"
1822
1858
  ];
1823
1859
 
1860
+ // src/routine-drafts.ts
1861
+ var ROUTINE_DRAFT_REQUEST_MIN = 10;
1862
+ var ROUTINE_DRAFT_REQUEST_MAX = 1e3;
1863
+ var ROUTINE_DRAFT_NAME_MAX = 60;
1864
+ var ROUTINE_DRAFT_DESCRIPTION_MAX = 280;
1865
+ var ROUTINE_DRAFT_EXERCISES_PER_DAY_MAX = 10;
1866
+ var ROUTINE_DRAFT_SETS_PER_EXERCISE_MAX = 6;
1867
+ var ROUTINE_DRAFT_SETS_PER_DAY_MAX = 30;
1868
+ var ROUTINE_DRAFT_WEEKLY_MUSCLE_SETS_MAX = 30;
1869
+ var ROUTINE_DRAFT_REPS_MIN = 1;
1870
+ var ROUTINE_DRAFT_REPS_MAX = 30;
1871
+ var ROUTINE_DRAFT_REST_SECONDS_MIN = 30;
1872
+ var ROUTINE_DRAFT_REST_SECONDS_MAX = 300;
1873
+ var ROUTINE_DRAFT_STATES = [
1874
+ "READY",
1875
+ "QUOTA_REACHED",
1876
+ "PAUSED",
1877
+ "UNAVAILABLE"
1878
+ ];
1879
+
1824
1880
  // src/routine-sharing.ts
1825
1881
  var ROUTINE_VISIBILITY_VALUES = [
1826
1882
  "PRIVATE",
@@ -2287,6 +2343,16 @@ var API_ERROR_MESSAGES = {
2287
2343
  // ── Plans (BILL-01) ────────────────────────────────────────────────────
2288
2344
  ENTITLEMENT_REQUIRED: "This is available in Pro",
2289
2345
  PLAN_LIMIT_REACHED: "Your plan allows {max} here",
2346
+ // ── Checkout (BILL-03) ─────────────────────────────────────────────────
2347
+ CHECKOUT_UNAVAILABLE: "Checkout isn't available right now",
2348
+ CHECKOUT_PROVIDER_ERROR: "Mercado Pago couldn't be reached. Nothing was charged; try again.",
2349
+ PLAN_ALREADY_PRO: "You already have Pro",
2350
+ // ── Routine drafts (INTEL-03) ──────────────────────────────────────────
2351
+ ROUTINE_DRAFT_QUOTA_REACHED: "You have used your {max} drafts this month",
2352
+ ROUTINE_DRAFTS_PAUSED: "Drafting is paused until next month",
2353
+ ROUTINE_DRAFTS_UNAVAILABLE: "Drafting isn't available right now",
2354
+ ROUTINE_DRAFT_NOT_TRAINING: "That doesn't read like a training request. Nothing was counted.",
2355
+ ROUTINE_DRAFT_FAILED: "We couldn't write a draft from that. Nothing was counted; try again.",
2290
2356
  // ── Account and settings ───────────────────────────────────────────────
2291
2357
  ACCOUNT_CONFLICT: "Account conflict for this email",
2292
2358
  ACCOUNT_DELETE_CONFIRMATION: "Type your username exactly as it appears to confirm.",
@@ -2435,6 +2501,8 @@ function isMessagePermission(value) {
2435
2501
  BODY_MEASUREMENT_FIELDS,
2436
2502
  BODY_MEASUREMENT_FIELD_KEYS,
2437
2503
  BODY_PROGRESS_RANGES,
2504
+ CHECKOUT_ATTEMPT_STATUSES,
2505
+ CHECKOUT_ATTEMPT_TTL_MINUTES,
2438
2506
  CLONE_ROUTINE_REFUSALS,
2439
2507
  CM_PER_INCH,
2440
2508
  COMEBACK_MIN_INACTIVE_DAYS,
@@ -2561,6 +2629,7 @@ function isMessagePermission(value) {
2561
2629
  PROFILE_VISIBILITY_VALUES,
2562
2630
  PROGRESSION_SCHEMES,
2563
2631
  PROGRESS_TIMELINE_EVENT_TYPES,
2632
+ PRO_PRICE,
2564
2633
  PUSH_PAYLOAD_KINDS,
2565
2634
  PUSH_SUBSCRIPTIONS_MAX,
2566
2635
  REALTIME_HEARTBEAT_MS,
@@ -2590,6 +2659,19 @@ function isMessagePermission(value) {
2590
2659
  ROUTINE_DISCOVERY_DEFAULT_LIMIT,
2591
2660
  ROUTINE_DISCOVERY_MAX_LIMIT,
2592
2661
  ROUTINE_DISCOVERY_SCAN_LIMIT,
2662
+ ROUTINE_DRAFT_DESCRIPTION_MAX,
2663
+ ROUTINE_DRAFT_EXERCISES_PER_DAY_MAX,
2664
+ ROUTINE_DRAFT_NAME_MAX,
2665
+ ROUTINE_DRAFT_REPS_MAX,
2666
+ ROUTINE_DRAFT_REPS_MIN,
2667
+ ROUTINE_DRAFT_REQUEST_MAX,
2668
+ ROUTINE_DRAFT_REQUEST_MIN,
2669
+ ROUTINE_DRAFT_REST_SECONDS_MAX,
2670
+ ROUTINE_DRAFT_REST_SECONDS_MIN,
2671
+ ROUTINE_DRAFT_SETS_PER_DAY_MAX,
2672
+ ROUTINE_DRAFT_SETS_PER_EXERCISE_MAX,
2673
+ ROUTINE_DRAFT_STATES,
2674
+ ROUTINE_DRAFT_WEEKLY_MUSCLE_SETS_MAX,
2593
2675
  ROUTINE_DURATION_BANDS,
2594
2676
  ROUTINE_DURATION_BAND_MAX_MINUTES,
2595
2677
  ROUTINE_SCHEDULE_MODES,
@@ -2627,6 +2709,7 @@ function isMessagePermission(value) {
2627
2709
  SHARED_ROUTINE_SOURCES,
2628
2710
  STARRED_EXERCISES_MAX,
2629
2711
  STREAK_MAX_GAP_DAYS,
2712
+ SUBSCRIPTION_STATUSES,
2630
2713
  SUPPORTED_LOCALES,
2631
2714
  TEMPORARY_OVERRIDE_KINDS,
2632
2715
  TEMPORARY_OVERRIDE_SOURCE_KINDS,
package/dist/index.d.cts CHANGED
@@ -2355,7 +2355,7 @@ declare function isOnboardingStepId(value: unknown): value is string;
2355
2355
  * BILL-01: plans and entitlements. The server decides every entitlement; a
2356
2356
  * client reads the answer (`GET /billing/me`, `UserProfile.plan`) and never
2357
2357
  * works access out for itself. Nothing is gated by these yet: `BILL-02`
2358
- * applies the Pro split, and no payment exists until `BILL-03`.
2358
+ * applies the Pro split, and `BILL-03` sells Pro through a payment provider.
2359
2359
  */
2360
2360
  /** Every plan, lowest first. An account with no active grant is on FREE. */
2361
2361
  declare const PLAN_IDS: readonly ["FREE", "PRO"];
@@ -2379,7 +2379,7 @@ declare const FEATURE_KEYS: readonly ["STRENGTH_TRENDS_LONG_RANGES", "TRAINING_C
2379
2379
  type FeatureKey = (typeof FEATURE_KEYS)[number];
2380
2380
  declare function isFeatureKey(value: unknown): value is FeatureKey;
2381
2381
  /** The counted capabilities of the Pro split. */
2382
- declare const PLAN_LIMIT_KEYS: readonly ["ROUTINE_VERSIONS", "GOALS", "TRAINING_LOCATIONS", "MUSCLE_HISTORY_WEEKS"];
2382
+ declare const PLAN_LIMIT_KEYS: readonly ["ROUTINE_VERSIONS", "GOALS", "TRAINING_LOCATIONS", "MUSCLE_HISTORY_WEEKS", "ROUTINE_DRAFTS_PER_MONTH"];
2383
2383
  type PlanLimitKey = (typeof PLAN_LIMIT_KEYS)[number];
2384
2384
  /** A limit's number, or null where the plan adds none of its own. */
2385
2385
  type PlanLimits = Record<PlanLimitKey, number | null>;
@@ -2435,6 +2435,71 @@ interface BillingStatus {
2435
2435
  limits: PlanLimits;
2436
2436
  /** The grants in force now, the one that lasts longest first. */
2437
2437
  grants: EntitlementGrantSummary[];
2438
+ /** BILL-03: whether Pro can be bought now, at what price, and a waiting attempt. */
2439
+ checkout: CheckoutOffer;
2440
+ /** BILL-03: the member's latest subscription, or null without one. */
2441
+ subscription: SubscriptionSummary | null;
2442
+ }
2443
+ /**
2444
+ * BILL-03: what Pro costs, as the owner decided at claim (2026-10-22): one
2445
+ * monthly plan, charged by Mercado Pago in Argentine pesos. While payments run
2446
+ * in the provider's sandbox no money is charged, and every billing surface
2447
+ * says so (`CheckoutOffer.testMode`).
2448
+ */
2449
+ interface PlanPrice {
2450
+ planId: PlanId;
2451
+ amount: number;
2452
+ currency: string;
2453
+ interval: "MONTH";
2454
+ }
2455
+ declare const PRO_PRICE: PlanPrice;
2456
+ /**
2457
+ * A checkout attempt's states. PENDING waits for the member on the
2458
+ * provider's page or for the provider to confirm; COMPLETED means a confirmed
2459
+ * read of the provider granted Pro; FAILED means the provider refused to open
2460
+ * it; CANCELED means the provider reported it cancelled or paused; EXPIRED
2461
+ * means it waited too long and a new attempt may start.
2462
+ */
2463
+ declare const CHECKOUT_ATTEMPT_STATUSES: readonly ["PENDING", "COMPLETED", "FAILED", "CANCELED", "EXPIRED"];
2464
+ type CheckoutAttemptStatus = (typeof CHECKOUT_ATTEMPT_STATUSES)[number];
2465
+ /** How long an unconfirmed attempt is offered again before a new one starts. */
2466
+ declare const CHECKOUT_ATTEMPT_TTL_MINUTES = 60;
2467
+ interface CheckoutAttemptSummary {
2468
+ id: string;
2469
+ planId: PlanId;
2470
+ status: CheckoutAttemptStatus;
2471
+ /** The provider's page; null once the attempt is no longer waiting. */
2472
+ checkoutUrl: string | null;
2473
+ createdAt: string;
2474
+ expiresAt: string;
2475
+ }
2476
+ interface CheckoutOffer {
2477
+ /** False until a provider is configured; never the fake provider in production. */
2478
+ available: boolean;
2479
+ /** True while payments run in the provider's sandbox: no money is charged. */
2480
+ testMode: boolean;
2481
+ price: PlanPrice;
2482
+ /** An attempt still waiting, so a second press returns to it instead of opening another. */
2483
+ pending: CheckoutAttemptSummary | null;
2484
+ }
2485
+ declare const SUBSCRIPTION_STATUSES: readonly ["TRIALING", "ACTIVE", "PAST_DUE", "CANCELED"];
2486
+ type SubscriptionStatus = (typeof SUBSCRIPTION_STATUSES)[number];
2487
+ interface SubscriptionSummary {
2488
+ planId: PlanId;
2489
+ status: SubscriptionStatus;
2490
+ /** When the paid period ends, as the provider last reported it. */
2491
+ currentPeriodEnd: string | null;
2492
+ createdAt: string;
2493
+ }
2494
+ /**
2495
+ * `POST /billing/checkout/:id/confirm`: what a confirmed read of the provider
2496
+ * found. **Returning from checkout grants nothing by itself**: Pro starts only
2497
+ * when the provider reports the subscription authorized (`COMPLETED`); a
2498
+ * `PENDING` attempt is read again later.
2499
+ */
2500
+ interface CheckoutConfirmation {
2501
+ attempt: CheckoutAttemptSummary;
2502
+ billing: BillingStatus;
2438
2503
  }
2439
2504
  /**
2440
2505
  * BILL-02: the longest strength-trend range Free reads, in days. Progress
@@ -3625,6 +3690,76 @@ interface DeloadSuggestionResponse {
3625
3690
  unavailable: DeloadSuggestionUnavailableReason | null;
3626
3691
  }
3627
3692
 
3693
+ /**
3694
+ * INTEL-03: a Pro member describes what they want and receives a routine
3695
+ * draft for the wizard. The server asks the model, checks the answer against
3696
+ * the catalog and these bounds, and hands back a draft; **nothing is stored
3697
+ * until the member presses Create**, through the ordinary routine write.
3698
+ */
3699
+ /** What the member may type. */
3700
+ declare const ROUTINE_DRAFT_REQUEST_MIN = 10;
3701
+ declare const ROUTINE_DRAFT_REQUEST_MAX = 1000;
3702
+ /** The bounds a draft must keep, so a sane request cannot open an insane plan. */
3703
+ declare const ROUTINE_DRAFT_NAME_MAX = 60;
3704
+ declare const ROUTINE_DRAFT_DESCRIPTION_MAX = 280;
3705
+ declare const ROUTINE_DRAFT_EXERCISES_PER_DAY_MAX = 10;
3706
+ declare const ROUTINE_DRAFT_SETS_PER_EXERCISE_MAX = 6;
3707
+ declare const ROUTINE_DRAFT_SETS_PER_DAY_MAX = 30;
3708
+ /** Direct sets a week for one muscle, counting primary muscles only. */
3709
+ declare const ROUTINE_DRAFT_WEEKLY_MUSCLE_SETS_MAX = 30;
3710
+ declare const ROUTINE_DRAFT_REPS_MIN = 1;
3711
+ declare const ROUTINE_DRAFT_REPS_MAX = 30;
3712
+ declare const ROUTINE_DRAFT_REST_SECONDS_MIN = 30;
3713
+ declare const ROUTINE_DRAFT_REST_SECONDS_MAX = 300;
3714
+ /** `POST /routine-drafts`. */
3715
+ interface CreateRoutineDraftRequest {
3716
+ /** The member's own words. Never stored. */
3717
+ request: string;
3718
+ /** The language the draft's name and day names are written in. */
3719
+ locale: AppLocale;
3720
+ }
3721
+ /** One exercise of a draft: a catalog id and working sets, never a load. */
3722
+ interface RoutineDraftExercise {
3723
+ exerciseId: string;
3724
+ sets: number;
3725
+ minReps: number;
3726
+ maxReps: number;
3727
+ restSeconds: number;
3728
+ minWeightIncrement: number;
3729
+ }
3730
+ interface RoutineDraftDay {
3731
+ /** The weekday (0=Sun..6=Sat) on a weekly routine; the position on a rotation. */
3732
+ slot: number;
3733
+ name: string;
3734
+ exercises: RoutineDraftExercise[];
3735
+ }
3736
+ interface RoutineDraft {
3737
+ name: string;
3738
+ description: string;
3739
+ scheduleMode: RoutineScheduleMode;
3740
+ days: RoutineDraftDay[];
3741
+ }
3742
+ /**
3743
+ * Whether a draft can be asked for now. QUOTA_REACHED is this member's month;
3744
+ * PAUSED is the month's cost ceiling across all members; UNAVAILABLE means no
3745
+ * model is configured.
3746
+ */
3747
+ declare const ROUTINE_DRAFT_STATES: readonly ["READY", "QUOTA_REACHED", "PAUSED", "UNAVAILABLE"];
3748
+ type RoutineDraftState = (typeof ROUTINE_DRAFT_STATES)[number];
3749
+ /** `GET /routine-drafts/usage`. Only a delivered draft counts. */
3750
+ interface RoutineDraftUsage {
3751
+ state: RoutineDraftState;
3752
+ used: number;
3753
+ /** The plan's monthly drafts. */
3754
+ limit: number;
3755
+ /** When the month ends: the first of the next month, UTC. */
3756
+ resetsAt: string;
3757
+ }
3758
+ interface RoutineDraftResult {
3759
+ draft: RoutineDraft;
3760
+ usage: RoutineDraftUsage;
3761
+ }
3762
+
3628
3763
  /** Owner-declared, both optional. Undeclared is not a default, it is unknown. */
3629
3764
  interface RoutineClassification {
3630
3765
  goal?: TrainingGoal | null;
@@ -5046,6 +5181,26 @@ interface AccountExportV1 {
5046
5181
  currentPeriodEnd: IsoDateString | null;
5047
5182
  createdAt: IsoDateString;
5048
5183
  }>;
5184
+ /** BILL-03: every checkout attempt, oldest first. */
5185
+ checkoutAttempts?: Array<{
5186
+ planId: string;
5187
+ status: string;
5188
+ provider: string;
5189
+ createdAt: IsoDateString;
5190
+ completedAt: IsoDateString | null;
5191
+ }>;
5192
+ /**
5193
+ * INTEL-03: each model call made for the account, oldest first. What the
5194
+ * member typed is never stored, so there is none of it here.
5195
+ */
5196
+ aiUsageRecords?: Array<{
5197
+ feature: string;
5198
+ status: string;
5199
+ model: string;
5200
+ inputTokens: number;
5201
+ outputTokens: number;
5202
+ createdAt: IsoDateString;
5203
+ }>;
5049
5204
  /** PROG-12: every dated body weight and measurement entry. */
5050
5205
  bodyMeasurements?: AccountExportBodyMeasurement[];
5051
5206
  trainingLocations: AccountExportTrainingLocation[];
@@ -5336,6 +5491,14 @@ declare const API_ERROR_MESSAGES: {
5336
5491
  readonly REQUEST_PENDING: "You can send more once they accept your request.";
5337
5492
  readonly ENTITLEMENT_REQUIRED: "This is available in Pro";
5338
5493
  readonly PLAN_LIMIT_REACHED: "Your plan allows {max} here";
5494
+ readonly CHECKOUT_UNAVAILABLE: "Checkout isn't available right now";
5495
+ readonly CHECKOUT_PROVIDER_ERROR: "Mercado Pago couldn't be reached. Nothing was charged; try again.";
5496
+ readonly PLAN_ALREADY_PRO: "You already have Pro";
5497
+ readonly ROUTINE_DRAFT_QUOTA_REACHED: "You have used your {max} drafts this month";
5498
+ readonly ROUTINE_DRAFTS_PAUSED: "Drafting is paused until next month";
5499
+ readonly ROUTINE_DRAFTS_UNAVAILABLE: "Drafting isn't available right now";
5500
+ readonly ROUTINE_DRAFT_NOT_TRAINING: "That doesn't read like a training request. Nothing was counted.";
5501
+ readonly ROUTINE_DRAFT_FAILED: "We couldn't write a draft from that. Nothing was counted; try again.";
5339
5502
  readonly ACCOUNT_CONFLICT: "Account conflict for this email";
5340
5503
  readonly ACCOUNT_DELETE_CONFIRMATION: "Type your username exactly as it appears to confirm.";
5341
5504
  readonly ACCOUNT_DELETE_MODERATOR: "A moderator account cannot be deleted while it holds moderator access.";
@@ -5517,4 +5680,4 @@ declare function isRealtimeTopic(value: unknown): value is RealtimeTopic;
5517
5680
  /** The event in one `data:` payload, or null for anything else. */
5518
5681
  declare function parseRealtimeEvent(data: string): RealtimeEvent | null;
5519
5682
 
5520
- 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 BillingStatus, 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_PLAN, 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, ENTITLEMENT_SOURCES, EXERCISE_EQUIPMENT, EXERCISE_GROUP_KIND_LABELS, EXERCISE_GROUP_MAX, EXERCISE_MECHANICS, type EarnedAchievement, type EarnedPersonalRecord, type EffortPeriod, type EffortSignal, type EntitlementGrantSummary, type EntitlementSource, 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, FEATURE_KEYS, FINISH_PAUSE_MINUTES, FOLLOW_SUGGESTIONS_DEFAULT_LIMIT, FOLLOW_SUGGESTIONS_MAX_LIMIT, FOLLOW_SUGGESTION_REASONS, FREE_STRENGTH_RANGE_DAYS, type FeatureKey, 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, type GrantWindow, INCHES_PER_FOOT, type IsoDateString, LENGTH_UNITS, LIMITED_SHORTFALL_KG, LOGGED_WORKOUTS_PER_ROUTINE_MAX, LOGGED_WORKOUT_DEFAULT_START_MINUTE, LOGGED_WORKOUT_LOOKBACK_DAYS, LOGGED_WORKOUT_MAX_DURATION_SEC, LOGGED_WORKOUT_MIN_DURATION_SEC, 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 LogPastWorkoutRequest, type LogPastWorkoutResponse, type LoggedBlockStep, type LoggedSetInput, 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_PROGRESS_ID, 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 MessageAchievementAttachment, type MessageAchievementSummary, type MessageAttachment, type MessageAttachmentKind, type MessageComebackAttachment, type MessageComebackSummary, type MessagePermission, type MessageProgressAttachment, type MessageProgressSummary, 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, PLANS, PLAN_IDS, PLAN_LIMIT_KEYS, 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 PlanDefinition, type PlanId, type PlanLimitKey, type PlanLimits, 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 RemoveLoggedWorkoutResponse, 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 SessionEndTimeCorrection, 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_END_CLOCK_SLACK_SECONDS, WORKOUT_SESSION_ORIGINS, 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 WorkoutSessionOrigin, type WorkoutSessionRecap, type WorkoutSessionSnapshotV1, type WorkoutSessionStatus, type WorkoutSessionSummary, type WorkoutSignal, type WorkoutStatsQuery, type WorkoutStatsResponse, accountExportFileName, addCalendarDays, advanceLinearPeriodization, apiError, apiErrorMessage, applyDeload, bodyMeasurementProblems, bodyProgressRangeStart, buildWarmUpRamp, calculatePlateLoading, canLinkToNext, canLogWorkoutOn, cmToFeetInches, cmToInches, continueLinearPeriodization, correctedEndTime, countsAsWork, countsForProgression, customExerciseProblem, defaultWarmUpEquipment, deloadLengthDays, earliestWorkoutEnd, exerciseGroupLabel, exerciseGroupPosition, exerciseGroups, exerciseNameKey, feetInchesToCm, finishEndTime, finishNeedsEndTime, followWorkingLoad, goalSuggestionKey, hasOversizedGroup, higherPlan, inchesToCm, isApiErrorCode, isAppLocale, isBarLoaded, isBodyMeasurementDate, isDashboardSectionId, isDefaultDashboardLayout, isEntitlementSource, isFeatureKey, isGoalSuggestionKey, isGrantActive, isMessagePermission, isOnboardingStepId, isPlanId, isRealtimeTopic, isSetKind, isWeekStartsOn, isWithinQuietHours, latestBodyWeight, leadWorkingWeight, linearPeriodizationProblem, listWithinLimit, loggedWorkoutDateRange, lpAtStep, lpEstimate, lpLoadKg, lpPrescription, lpRecommendation, lpRirMidpoint, lpSampleRir, lpSetEstimateKg, lpStep, lpStoredSets, lpWorkingSets, matchesDeletionConfirmation, messageBodyLength, messageNote, messageProgressId, normalizeDashboardLayout, normalizeExerciseLinks, normalizeExerciseName, normalizeMessageBody, normalizeSearchQuery, parseRealtimeEvent, planFromGrants, planIncludes, primaryEquipment, requiredToFinish, resolveActiveTrainingBlock, resolveRoutinePlan, roundDownToIncrement, roundToIncrement, routineDayLabel, sameLpPosition, sessionCorrectionWindow, setKindOf, setLogValuesDiffer, startLinearPeriodization, strengthRangeNeedsPro, summarizeBodyProgress, trainingBlockCovers, warmUpLoad, weekStartOf };
5683
+ 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 BillingStatus, 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, CHECKOUT_ATTEMPT_STATUSES, CHECKOUT_ATTEMPT_TTL_MINUTES, 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 CheckoutAttemptStatus, type CheckoutAttemptSummary, type CheckoutConfirmation, type CheckoutOffer, 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 CreateRoutineDraftRequest, 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_PLAN, 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, ENTITLEMENT_SOURCES, EXERCISE_EQUIPMENT, EXERCISE_GROUP_KIND_LABELS, EXERCISE_GROUP_MAX, EXERCISE_MECHANICS, type EarnedAchievement, type EarnedPersonalRecord, type EffortPeriod, type EffortSignal, type EntitlementGrantSummary, type EntitlementSource, 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, FEATURE_KEYS, FINISH_PAUSE_MINUTES, FOLLOW_SUGGESTIONS_DEFAULT_LIMIT, FOLLOW_SUGGESTIONS_MAX_LIMIT, FOLLOW_SUGGESTION_REASONS, FREE_STRENGTH_RANGE_DAYS, type FeatureKey, 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, type GrantWindow, INCHES_PER_FOOT, type IsoDateString, LENGTH_UNITS, LIMITED_SHORTFALL_KG, LOGGED_WORKOUTS_PER_ROUTINE_MAX, LOGGED_WORKOUT_DEFAULT_START_MINUTE, LOGGED_WORKOUT_LOOKBACK_DAYS, LOGGED_WORKOUT_MAX_DURATION_SEC, LOGGED_WORKOUT_MIN_DURATION_SEC, 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 LogPastWorkoutRequest, type LogPastWorkoutResponse, type LoggedBlockStep, type LoggedSetInput, 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_PROGRESS_ID, 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 MessageAchievementAttachment, type MessageAchievementSummary, type MessageAttachment, type MessageAttachmentKind, type MessageComebackAttachment, type MessageComebackSummary, type MessagePermission, type MessageProgressAttachment, type MessageProgressSummary, 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, PLANS, PLAN_IDS, PLAN_LIMIT_KEYS, 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, PRO_PRICE, PUSH_PAYLOAD_KINDS, PUSH_SUBSCRIPTIONS_MAX, type PaginatedResponse, type PersonalGoalProgress, type PersonalGoalsResponse, type PersonalRecordActivity, type PersonalRecordEntry, type PersonalRecordKind, type PlanDefinition, type PlanId, type PlanLimitKey, type PlanLimits, type PlanPrice, 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_DRAFT_DESCRIPTION_MAX, ROUTINE_DRAFT_EXERCISES_PER_DAY_MAX, ROUTINE_DRAFT_NAME_MAX, ROUTINE_DRAFT_REPS_MAX, ROUTINE_DRAFT_REPS_MIN, ROUTINE_DRAFT_REQUEST_MAX, ROUTINE_DRAFT_REQUEST_MIN, ROUTINE_DRAFT_REST_SECONDS_MAX, ROUTINE_DRAFT_REST_SECONDS_MIN, ROUTINE_DRAFT_SETS_PER_DAY_MAX, ROUTINE_DRAFT_SETS_PER_EXERCISE_MAX, ROUTINE_DRAFT_STATES, ROUTINE_DRAFT_WEEKLY_MUSCLE_SETS_MAX, 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 RemoveLoggedWorkoutResponse, 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 RoutineDraft, type RoutineDraftDay, type RoutineDraftExercise, type RoutineDraftResult, type RoutineDraftState, type RoutineDraftUsage, 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, SUBSCRIPTION_STATUSES, 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 SessionEndTimeCorrection, 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 SubscriptionStatus, type SubscriptionSummary, 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_END_CLOCK_SLACK_SECONDS, WORKOUT_SESSION_ORIGINS, 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 WorkoutSessionOrigin, type WorkoutSessionRecap, type WorkoutSessionSnapshotV1, type WorkoutSessionStatus, type WorkoutSessionSummary, type WorkoutSignal, type WorkoutStatsQuery, type WorkoutStatsResponse, accountExportFileName, addCalendarDays, advanceLinearPeriodization, apiError, apiErrorMessage, applyDeload, bodyMeasurementProblems, bodyProgressRangeStart, buildWarmUpRamp, calculatePlateLoading, canLinkToNext, canLogWorkoutOn, cmToFeetInches, cmToInches, continueLinearPeriodization, correctedEndTime, countsAsWork, countsForProgression, customExerciseProblem, defaultWarmUpEquipment, deloadLengthDays, earliestWorkoutEnd, exerciseGroupLabel, exerciseGroupPosition, exerciseGroups, exerciseNameKey, feetInchesToCm, finishEndTime, finishNeedsEndTime, followWorkingLoad, goalSuggestionKey, hasOversizedGroup, higherPlan, inchesToCm, isApiErrorCode, isAppLocale, isBarLoaded, isBodyMeasurementDate, isDashboardSectionId, isDefaultDashboardLayout, isEntitlementSource, isFeatureKey, isGoalSuggestionKey, isGrantActive, isMessagePermission, isOnboardingStepId, isPlanId, isRealtimeTopic, isSetKind, isWeekStartsOn, isWithinQuietHours, latestBodyWeight, leadWorkingWeight, linearPeriodizationProblem, listWithinLimit, loggedWorkoutDateRange, lpAtStep, lpEstimate, lpLoadKg, lpPrescription, lpRecommendation, lpRirMidpoint, lpSampleRir, lpSetEstimateKg, lpStep, lpStoredSets, lpWorkingSets, matchesDeletionConfirmation, messageBodyLength, messageNote, messageProgressId, normalizeDashboardLayout, normalizeExerciseLinks, normalizeExerciseName, normalizeMessageBody, normalizeSearchQuery, parseRealtimeEvent, planFromGrants, planIncludes, primaryEquipment, requiredToFinish, resolveActiveTrainingBlock, resolveRoutinePlan, roundDownToIncrement, roundToIncrement, routineDayLabel, sameLpPosition, sessionCorrectionWindow, setKindOf, setLogValuesDiffer, startLinearPeriodization, strengthRangeNeedsPro, summarizeBodyProgress, trainingBlockCovers, warmUpLoad, weekStartOf };
package/dist/index.d.ts CHANGED
@@ -2355,7 +2355,7 @@ declare function isOnboardingStepId(value: unknown): value is string;
2355
2355
  * BILL-01: plans and entitlements. The server decides every entitlement; a
2356
2356
  * client reads the answer (`GET /billing/me`, `UserProfile.plan`) and never
2357
2357
  * works access out for itself. Nothing is gated by these yet: `BILL-02`
2358
- * applies the Pro split, and no payment exists until `BILL-03`.
2358
+ * applies the Pro split, and `BILL-03` sells Pro through a payment provider.
2359
2359
  */
2360
2360
  /** Every plan, lowest first. An account with no active grant is on FREE. */
2361
2361
  declare const PLAN_IDS: readonly ["FREE", "PRO"];
@@ -2379,7 +2379,7 @@ declare const FEATURE_KEYS: readonly ["STRENGTH_TRENDS_LONG_RANGES", "TRAINING_C
2379
2379
  type FeatureKey = (typeof FEATURE_KEYS)[number];
2380
2380
  declare function isFeatureKey(value: unknown): value is FeatureKey;
2381
2381
  /** The counted capabilities of the Pro split. */
2382
- declare const PLAN_LIMIT_KEYS: readonly ["ROUTINE_VERSIONS", "GOALS", "TRAINING_LOCATIONS", "MUSCLE_HISTORY_WEEKS"];
2382
+ declare const PLAN_LIMIT_KEYS: readonly ["ROUTINE_VERSIONS", "GOALS", "TRAINING_LOCATIONS", "MUSCLE_HISTORY_WEEKS", "ROUTINE_DRAFTS_PER_MONTH"];
2383
2383
  type PlanLimitKey = (typeof PLAN_LIMIT_KEYS)[number];
2384
2384
  /** A limit's number, or null where the plan adds none of its own. */
2385
2385
  type PlanLimits = Record<PlanLimitKey, number | null>;
@@ -2435,6 +2435,71 @@ interface BillingStatus {
2435
2435
  limits: PlanLimits;
2436
2436
  /** The grants in force now, the one that lasts longest first. */
2437
2437
  grants: EntitlementGrantSummary[];
2438
+ /** BILL-03: whether Pro can be bought now, at what price, and a waiting attempt. */
2439
+ checkout: CheckoutOffer;
2440
+ /** BILL-03: the member's latest subscription, or null without one. */
2441
+ subscription: SubscriptionSummary | null;
2442
+ }
2443
+ /**
2444
+ * BILL-03: what Pro costs, as the owner decided at claim (2026-10-22): one
2445
+ * monthly plan, charged by Mercado Pago in Argentine pesos. While payments run
2446
+ * in the provider's sandbox no money is charged, and every billing surface
2447
+ * says so (`CheckoutOffer.testMode`).
2448
+ */
2449
+ interface PlanPrice {
2450
+ planId: PlanId;
2451
+ amount: number;
2452
+ currency: string;
2453
+ interval: "MONTH";
2454
+ }
2455
+ declare const PRO_PRICE: PlanPrice;
2456
+ /**
2457
+ * A checkout attempt's states. PENDING waits for the member on the
2458
+ * provider's page or for the provider to confirm; COMPLETED means a confirmed
2459
+ * read of the provider granted Pro; FAILED means the provider refused to open
2460
+ * it; CANCELED means the provider reported it cancelled or paused; EXPIRED
2461
+ * means it waited too long and a new attempt may start.
2462
+ */
2463
+ declare const CHECKOUT_ATTEMPT_STATUSES: readonly ["PENDING", "COMPLETED", "FAILED", "CANCELED", "EXPIRED"];
2464
+ type CheckoutAttemptStatus = (typeof CHECKOUT_ATTEMPT_STATUSES)[number];
2465
+ /** How long an unconfirmed attempt is offered again before a new one starts. */
2466
+ declare const CHECKOUT_ATTEMPT_TTL_MINUTES = 60;
2467
+ interface CheckoutAttemptSummary {
2468
+ id: string;
2469
+ planId: PlanId;
2470
+ status: CheckoutAttemptStatus;
2471
+ /** The provider's page; null once the attempt is no longer waiting. */
2472
+ checkoutUrl: string | null;
2473
+ createdAt: string;
2474
+ expiresAt: string;
2475
+ }
2476
+ interface CheckoutOffer {
2477
+ /** False until a provider is configured; never the fake provider in production. */
2478
+ available: boolean;
2479
+ /** True while payments run in the provider's sandbox: no money is charged. */
2480
+ testMode: boolean;
2481
+ price: PlanPrice;
2482
+ /** An attempt still waiting, so a second press returns to it instead of opening another. */
2483
+ pending: CheckoutAttemptSummary | null;
2484
+ }
2485
+ declare const SUBSCRIPTION_STATUSES: readonly ["TRIALING", "ACTIVE", "PAST_DUE", "CANCELED"];
2486
+ type SubscriptionStatus = (typeof SUBSCRIPTION_STATUSES)[number];
2487
+ interface SubscriptionSummary {
2488
+ planId: PlanId;
2489
+ status: SubscriptionStatus;
2490
+ /** When the paid period ends, as the provider last reported it. */
2491
+ currentPeriodEnd: string | null;
2492
+ createdAt: string;
2493
+ }
2494
+ /**
2495
+ * `POST /billing/checkout/:id/confirm`: what a confirmed read of the provider
2496
+ * found. **Returning from checkout grants nothing by itself**: Pro starts only
2497
+ * when the provider reports the subscription authorized (`COMPLETED`); a
2498
+ * `PENDING` attempt is read again later.
2499
+ */
2500
+ interface CheckoutConfirmation {
2501
+ attempt: CheckoutAttemptSummary;
2502
+ billing: BillingStatus;
2438
2503
  }
2439
2504
  /**
2440
2505
  * BILL-02: the longest strength-trend range Free reads, in days. Progress
@@ -3625,6 +3690,76 @@ interface DeloadSuggestionResponse {
3625
3690
  unavailable: DeloadSuggestionUnavailableReason | null;
3626
3691
  }
3627
3692
 
3693
+ /**
3694
+ * INTEL-03: a Pro member describes what they want and receives a routine
3695
+ * draft for the wizard. The server asks the model, checks the answer against
3696
+ * the catalog and these bounds, and hands back a draft; **nothing is stored
3697
+ * until the member presses Create**, through the ordinary routine write.
3698
+ */
3699
+ /** What the member may type. */
3700
+ declare const ROUTINE_DRAFT_REQUEST_MIN = 10;
3701
+ declare const ROUTINE_DRAFT_REQUEST_MAX = 1000;
3702
+ /** The bounds a draft must keep, so a sane request cannot open an insane plan. */
3703
+ declare const ROUTINE_DRAFT_NAME_MAX = 60;
3704
+ declare const ROUTINE_DRAFT_DESCRIPTION_MAX = 280;
3705
+ declare const ROUTINE_DRAFT_EXERCISES_PER_DAY_MAX = 10;
3706
+ declare const ROUTINE_DRAFT_SETS_PER_EXERCISE_MAX = 6;
3707
+ declare const ROUTINE_DRAFT_SETS_PER_DAY_MAX = 30;
3708
+ /** Direct sets a week for one muscle, counting primary muscles only. */
3709
+ declare const ROUTINE_DRAFT_WEEKLY_MUSCLE_SETS_MAX = 30;
3710
+ declare const ROUTINE_DRAFT_REPS_MIN = 1;
3711
+ declare const ROUTINE_DRAFT_REPS_MAX = 30;
3712
+ declare const ROUTINE_DRAFT_REST_SECONDS_MIN = 30;
3713
+ declare const ROUTINE_DRAFT_REST_SECONDS_MAX = 300;
3714
+ /** `POST /routine-drafts`. */
3715
+ interface CreateRoutineDraftRequest {
3716
+ /** The member's own words. Never stored. */
3717
+ request: string;
3718
+ /** The language the draft's name and day names are written in. */
3719
+ locale: AppLocale;
3720
+ }
3721
+ /** One exercise of a draft: a catalog id and working sets, never a load. */
3722
+ interface RoutineDraftExercise {
3723
+ exerciseId: string;
3724
+ sets: number;
3725
+ minReps: number;
3726
+ maxReps: number;
3727
+ restSeconds: number;
3728
+ minWeightIncrement: number;
3729
+ }
3730
+ interface RoutineDraftDay {
3731
+ /** The weekday (0=Sun..6=Sat) on a weekly routine; the position on a rotation. */
3732
+ slot: number;
3733
+ name: string;
3734
+ exercises: RoutineDraftExercise[];
3735
+ }
3736
+ interface RoutineDraft {
3737
+ name: string;
3738
+ description: string;
3739
+ scheduleMode: RoutineScheduleMode;
3740
+ days: RoutineDraftDay[];
3741
+ }
3742
+ /**
3743
+ * Whether a draft can be asked for now. QUOTA_REACHED is this member's month;
3744
+ * PAUSED is the month's cost ceiling across all members; UNAVAILABLE means no
3745
+ * model is configured.
3746
+ */
3747
+ declare const ROUTINE_DRAFT_STATES: readonly ["READY", "QUOTA_REACHED", "PAUSED", "UNAVAILABLE"];
3748
+ type RoutineDraftState = (typeof ROUTINE_DRAFT_STATES)[number];
3749
+ /** `GET /routine-drafts/usage`. Only a delivered draft counts. */
3750
+ interface RoutineDraftUsage {
3751
+ state: RoutineDraftState;
3752
+ used: number;
3753
+ /** The plan's monthly drafts. */
3754
+ limit: number;
3755
+ /** When the month ends: the first of the next month, UTC. */
3756
+ resetsAt: string;
3757
+ }
3758
+ interface RoutineDraftResult {
3759
+ draft: RoutineDraft;
3760
+ usage: RoutineDraftUsage;
3761
+ }
3762
+
3628
3763
  /** Owner-declared, both optional. Undeclared is not a default, it is unknown. */
3629
3764
  interface RoutineClassification {
3630
3765
  goal?: TrainingGoal | null;
@@ -5046,6 +5181,26 @@ interface AccountExportV1 {
5046
5181
  currentPeriodEnd: IsoDateString | null;
5047
5182
  createdAt: IsoDateString;
5048
5183
  }>;
5184
+ /** BILL-03: every checkout attempt, oldest first. */
5185
+ checkoutAttempts?: Array<{
5186
+ planId: string;
5187
+ status: string;
5188
+ provider: string;
5189
+ createdAt: IsoDateString;
5190
+ completedAt: IsoDateString | null;
5191
+ }>;
5192
+ /**
5193
+ * INTEL-03: each model call made for the account, oldest first. What the
5194
+ * member typed is never stored, so there is none of it here.
5195
+ */
5196
+ aiUsageRecords?: Array<{
5197
+ feature: string;
5198
+ status: string;
5199
+ model: string;
5200
+ inputTokens: number;
5201
+ outputTokens: number;
5202
+ createdAt: IsoDateString;
5203
+ }>;
5049
5204
  /** PROG-12: every dated body weight and measurement entry. */
5050
5205
  bodyMeasurements?: AccountExportBodyMeasurement[];
5051
5206
  trainingLocations: AccountExportTrainingLocation[];
@@ -5336,6 +5491,14 @@ declare const API_ERROR_MESSAGES: {
5336
5491
  readonly REQUEST_PENDING: "You can send more once they accept your request.";
5337
5492
  readonly ENTITLEMENT_REQUIRED: "This is available in Pro";
5338
5493
  readonly PLAN_LIMIT_REACHED: "Your plan allows {max} here";
5494
+ readonly CHECKOUT_UNAVAILABLE: "Checkout isn't available right now";
5495
+ readonly CHECKOUT_PROVIDER_ERROR: "Mercado Pago couldn't be reached. Nothing was charged; try again.";
5496
+ readonly PLAN_ALREADY_PRO: "You already have Pro";
5497
+ readonly ROUTINE_DRAFT_QUOTA_REACHED: "You have used your {max} drafts this month";
5498
+ readonly ROUTINE_DRAFTS_PAUSED: "Drafting is paused until next month";
5499
+ readonly ROUTINE_DRAFTS_UNAVAILABLE: "Drafting isn't available right now";
5500
+ readonly ROUTINE_DRAFT_NOT_TRAINING: "That doesn't read like a training request. Nothing was counted.";
5501
+ readonly ROUTINE_DRAFT_FAILED: "We couldn't write a draft from that. Nothing was counted; try again.";
5339
5502
  readonly ACCOUNT_CONFLICT: "Account conflict for this email";
5340
5503
  readonly ACCOUNT_DELETE_CONFIRMATION: "Type your username exactly as it appears to confirm.";
5341
5504
  readonly ACCOUNT_DELETE_MODERATOR: "A moderator account cannot be deleted while it holds moderator access.";
@@ -5517,4 +5680,4 @@ declare function isRealtimeTopic(value: unknown): value is RealtimeTopic;
5517
5680
  /** The event in one `data:` payload, or null for anything else. */
5518
5681
  declare function parseRealtimeEvent(data: string): RealtimeEvent | null;
5519
5682
 
5520
- 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 BillingStatus, 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_PLAN, 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, ENTITLEMENT_SOURCES, EXERCISE_EQUIPMENT, EXERCISE_GROUP_KIND_LABELS, EXERCISE_GROUP_MAX, EXERCISE_MECHANICS, type EarnedAchievement, type EarnedPersonalRecord, type EffortPeriod, type EffortSignal, type EntitlementGrantSummary, type EntitlementSource, 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, FEATURE_KEYS, FINISH_PAUSE_MINUTES, FOLLOW_SUGGESTIONS_DEFAULT_LIMIT, FOLLOW_SUGGESTIONS_MAX_LIMIT, FOLLOW_SUGGESTION_REASONS, FREE_STRENGTH_RANGE_DAYS, type FeatureKey, 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, type GrantWindow, INCHES_PER_FOOT, type IsoDateString, LENGTH_UNITS, LIMITED_SHORTFALL_KG, LOGGED_WORKOUTS_PER_ROUTINE_MAX, LOGGED_WORKOUT_DEFAULT_START_MINUTE, LOGGED_WORKOUT_LOOKBACK_DAYS, LOGGED_WORKOUT_MAX_DURATION_SEC, LOGGED_WORKOUT_MIN_DURATION_SEC, 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 LogPastWorkoutRequest, type LogPastWorkoutResponse, type LoggedBlockStep, type LoggedSetInput, 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_PROGRESS_ID, 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 MessageAchievementAttachment, type MessageAchievementSummary, type MessageAttachment, type MessageAttachmentKind, type MessageComebackAttachment, type MessageComebackSummary, type MessagePermission, type MessageProgressAttachment, type MessageProgressSummary, 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, PLANS, PLAN_IDS, PLAN_LIMIT_KEYS, 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 PlanDefinition, type PlanId, type PlanLimitKey, type PlanLimits, 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 RemoveLoggedWorkoutResponse, 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 SessionEndTimeCorrection, 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_END_CLOCK_SLACK_SECONDS, WORKOUT_SESSION_ORIGINS, 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 WorkoutSessionOrigin, type WorkoutSessionRecap, type WorkoutSessionSnapshotV1, type WorkoutSessionStatus, type WorkoutSessionSummary, type WorkoutSignal, type WorkoutStatsQuery, type WorkoutStatsResponse, accountExportFileName, addCalendarDays, advanceLinearPeriodization, apiError, apiErrorMessage, applyDeload, bodyMeasurementProblems, bodyProgressRangeStart, buildWarmUpRamp, calculatePlateLoading, canLinkToNext, canLogWorkoutOn, cmToFeetInches, cmToInches, continueLinearPeriodization, correctedEndTime, countsAsWork, countsForProgression, customExerciseProblem, defaultWarmUpEquipment, deloadLengthDays, earliestWorkoutEnd, exerciseGroupLabel, exerciseGroupPosition, exerciseGroups, exerciseNameKey, feetInchesToCm, finishEndTime, finishNeedsEndTime, followWorkingLoad, goalSuggestionKey, hasOversizedGroup, higherPlan, inchesToCm, isApiErrorCode, isAppLocale, isBarLoaded, isBodyMeasurementDate, isDashboardSectionId, isDefaultDashboardLayout, isEntitlementSource, isFeatureKey, isGoalSuggestionKey, isGrantActive, isMessagePermission, isOnboardingStepId, isPlanId, isRealtimeTopic, isSetKind, isWeekStartsOn, isWithinQuietHours, latestBodyWeight, leadWorkingWeight, linearPeriodizationProblem, listWithinLimit, loggedWorkoutDateRange, lpAtStep, lpEstimate, lpLoadKg, lpPrescription, lpRecommendation, lpRirMidpoint, lpSampleRir, lpSetEstimateKg, lpStep, lpStoredSets, lpWorkingSets, matchesDeletionConfirmation, messageBodyLength, messageNote, messageProgressId, normalizeDashboardLayout, normalizeExerciseLinks, normalizeExerciseName, normalizeMessageBody, normalizeSearchQuery, parseRealtimeEvent, planFromGrants, planIncludes, primaryEquipment, requiredToFinish, resolveActiveTrainingBlock, resolveRoutinePlan, roundDownToIncrement, roundToIncrement, routineDayLabel, sameLpPosition, sessionCorrectionWindow, setKindOf, setLogValuesDiffer, startLinearPeriodization, strengthRangeNeedsPro, summarizeBodyProgress, trainingBlockCovers, warmUpLoad, weekStartOf };
5683
+ 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 BillingStatus, 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, CHECKOUT_ATTEMPT_STATUSES, CHECKOUT_ATTEMPT_TTL_MINUTES, 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 CheckoutAttemptStatus, type CheckoutAttemptSummary, type CheckoutConfirmation, type CheckoutOffer, 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 CreateRoutineDraftRequest, 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_PLAN, 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, ENTITLEMENT_SOURCES, EXERCISE_EQUIPMENT, EXERCISE_GROUP_KIND_LABELS, EXERCISE_GROUP_MAX, EXERCISE_MECHANICS, type EarnedAchievement, type EarnedPersonalRecord, type EffortPeriod, type EffortSignal, type EntitlementGrantSummary, type EntitlementSource, 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, FEATURE_KEYS, FINISH_PAUSE_MINUTES, FOLLOW_SUGGESTIONS_DEFAULT_LIMIT, FOLLOW_SUGGESTIONS_MAX_LIMIT, FOLLOW_SUGGESTION_REASONS, FREE_STRENGTH_RANGE_DAYS, type FeatureKey, 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, type GrantWindow, INCHES_PER_FOOT, type IsoDateString, LENGTH_UNITS, LIMITED_SHORTFALL_KG, LOGGED_WORKOUTS_PER_ROUTINE_MAX, LOGGED_WORKOUT_DEFAULT_START_MINUTE, LOGGED_WORKOUT_LOOKBACK_DAYS, LOGGED_WORKOUT_MAX_DURATION_SEC, LOGGED_WORKOUT_MIN_DURATION_SEC, 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 LogPastWorkoutRequest, type LogPastWorkoutResponse, type LoggedBlockStep, type LoggedSetInput, 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_PROGRESS_ID, 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 MessageAchievementAttachment, type MessageAchievementSummary, type MessageAttachment, type MessageAttachmentKind, type MessageComebackAttachment, type MessageComebackSummary, type MessagePermission, type MessageProgressAttachment, type MessageProgressSummary, 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, PLANS, PLAN_IDS, PLAN_LIMIT_KEYS, 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, PRO_PRICE, PUSH_PAYLOAD_KINDS, PUSH_SUBSCRIPTIONS_MAX, type PaginatedResponse, type PersonalGoalProgress, type PersonalGoalsResponse, type PersonalRecordActivity, type PersonalRecordEntry, type PersonalRecordKind, type PlanDefinition, type PlanId, type PlanLimitKey, type PlanLimits, type PlanPrice, 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_DRAFT_DESCRIPTION_MAX, ROUTINE_DRAFT_EXERCISES_PER_DAY_MAX, ROUTINE_DRAFT_NAME_MAX, ROUTINE_DRAFT_REPS_MAX, ROUTINE_DRAFT_REPS_MIN, ROUTINE_DRAFT_REQUEST_MAX, ROUTINE_DRAFT_REQUEST_MIN, ROUTINE_DRAFT_REST_SECONDS_MAX, ROUTINE_DRAFT_REST_SECONDS_MIN, ROUTINE_DRAFT_SETS_PER_DAY_MAX, ROUTINE_DRAFT_SETS_PER_EXERCISE_MAX, ROUTINE_DRAFT_STATES, ROUTINE_DRAFT_WEEKLY_MUSCLE_SETS_MAX, 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 RemoveLoggedWorkoutResponse, 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 RoutineDraft, type RoutineDraftDay, type RoutineDraftExercise, type RoutineDraftResult, type RoutineDraftState, type RoutineDraftUsage, 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, SUBSCRIPTION_STATUSES, 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 SessionEndTimeCorrection, 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 SubscriptionStatus, type SubscriptionSummary, 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_END_CLOCK_SLACK_SECONDS, WORKOUT_SESSION_ORIGINS, 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 WorkoutSessionOrigin, type WorkoutSessionRecap, type WorkoutSessionSnapshotV1, type WorkoutSessionStatus, type WorkoutSessionSummary, type WorkoutSignal, type WorkoutStatsQuery, type WorkoutStatsResponse, accountExportFileName, addCalendarDays, advanceLinearPeriodization, apiError, apiErrorMessage, applyDeload, bodyMeasurementProblems, bodyProgressRangeStart, buildWarmUpRamp, calculatePlateLoading, canLinkToNext, canLogWorkoutOn, cmToFeetInches, cmToInches, continueLinearPeriodization, correctedEndTime, countsAsWork, countsForProgression, customExerciseProblem, defaultWarmUpEquipment, deloadLengthDays, earliestWorkoutEnd, exerciseGroupLabel, exerciseGroupPosition, exerciseGroups, exerciseNameKey, feetInchesToCm, finishEndTime, finishNeedsEndTime, followWorkingLoad, goalSuggestionKey, hasOversizedGroup, higherPlan, inchesToCm, isApiErrorCode, isAppLocale, isBarLoaded, isBodyMeasurementDate, isDashboardSectionId, isDefaultDashboardLayout, isEntitlementSource, isFeatureKey, isGoalSuggestionKey, isGrantActive, isMessagePermission, isOnboardingStepId, isPlanId, isRealtimeTopic, isSetKind, isWeekStartsOn, isWithinQuietHours, latestBodyWeight, leadWorkingWeight, linearPeriodizationProblem, listWithinLimit, loggedWorkoutDateRange, lpAtStep, lpEstimate, lpLoadKg, lpPrescription, lpRecommendation, lpRirMidpoint, lpSampleRir, lpSetEstimateKg, lpStep, lpStoredSets, lpWorkingSets, matchesDeletionConfirmation, messageBodyLength, messageNote, messageProgressId, normalizeDashboardLayout, normalizeExerciseLinks, normalizeExerciseName, normalizeMessageBody, normalizeSearchQuery, parseRealtimeEvent, planFromGrants, planIncludes, primaryEquipment, requiredToFinish, resolveActiveTrainingBlock, resolveRoutinePlan, roundDownToIncrement, roundToIncrement, routineDayLabel, sameLpPosition, sessionCorrectionWindow, setKindOf, setLogValuesDiffer, startLinearPeriodization, strengthRangeNeedsPro, summarizeBodyProgress, trainingBlockCovers, warmUpLoad, weekStartOf };
package/dist/index.js CHANGED
@@ -179,7 +179,9 @@ var PLAN_LIMIT_KEYS = [
179
179
  /** PREF-01: training locations. */
180
180
  "TRAINING_LOCATIONS",
181
181
  /** PROG-03, PROG-04: weeks of muscle history. */
182
- "MUSCLE_HISTORY_WEEKS"
182
+ "MUSCLE_HISTORY_WEEKS",
183
+ /** INTEL-03: routine drafts delivered per calendar month (UTC). */
184
+ "ROUTINE_DRAFTS_PER_MONTH"
183
185
  ];
184
186
  var PLANS = {
185
187
  FREE: {
@@ -189,7 +191,8 @@ var PLANS = {
189
191
  ROUTINE_VERSIONS: 3,
190
192
  GOALS: 3,
191
193
  TRAINING_LOCATIONS: 1,
192
- MUSCLE_HISTORY_WEEKS: 4
194
+ MUSCLE_HISTORY_WEEKS: 4,
195
+ ROUTINE_DRAFTS_PER_MONTH: 0
193
196
  }
194
197
  },
195
198
  PRO: {
@@ -199,7 +202,8 @@ var PLANS = {
199
202
  ROUTINE_VERSIONS: 20,
200
203
  GOALS: 8,
201
204
  TRAINING_LOCATIONS: null,
202
- MUSCLE_HISTORY_WEEKS: 12
205
+ MUSCLE_HISTORY_WEEKS: 12,
206
+ ROUTINE_DRAFTS_PER_MONTH: 10
203
207
  }
204
208
  }
205
209
  };
@@ -221,6 +225,21 @@ function isGrantActive(grant, now = /* @__PURE__ */ new Date()) {
221
225
  function planFromGrants(grants, now = /* @__PURE__ */ new Date()) {
222
226
  return grants.filter((grant) => isGrantActive(grant, now)).reduce((plan, grant) => higherPlan(plan, grant.planId), DEFAULT_PLAN);
223
227
  }
228
+ var PRO_PRICE = {
229
+ planId: "PRO",
230
+ amount: 4999,
231
+ currency: "ARS",
232
+ interval: "MONTH"
233
+ };
234
+ var CHECKOUT_ATTEMPT_STATUSES = [
235
+ "PENDING",
236
+ "COMPLETED",
237
+ "FAILED",
238
+ "CANCELED",
239
+ "EXPIRED"
240
+ ];
241
+ var CHECKOUT_ATTEMPT_TTL_MINUTES = 60;
242
+ var SUBSCRIPTION_STATUSES = ["TRIALING", "ACTIVE", "PAST_DUE", "CANCELED"];
224
243
  var FREE_STRENGTH_RANGE_DAYS = 90;
225
244
  var STRENGTH_RANGE_SLACK_DAYS = 2;
226
245
  function strengthRangeNeedsPro(range) {
@@ -1450,6 +1469,26 @@ var DELOAD_SUGGESTION_SIGNALS = [
1450
1469
  "DECLINES"
1451
1470
  ];
1452
1471
 
1472
+ // src/routine-drafts.ts
1473
+ var ROUTINE_DRAFT_REQUEST_MIN = 10;
1474
+ var ROUTINE_DRAFT_REQUEST_MAX = 1e3;
1475
+ var ROUTINE_DRAFT_NAME_MAX = 60;
1476
+ var ROUTINE_DRAFT_DESCRIPTION_MAX = 280;
1477
+ var ROUTINE_DRAFT_EXERCISES_PER_DAY_MAX = 10;
1478
+ var ROUTINE_DRAFT_SETS_PER_EXERCISE_MAX = 6;
1479
+ var ROUTINE_DRAFT_SETS_PER_DAY_MAX = 30;
1480
+ var ROUTINE_DRAFT_WEEKLY_MUSCLE_SETS_MAX = 30;
1481
+ var ROUTINE_DRAFT_REPS_MIN = 1;
1482
+ var ROUTINE_DRAFT_REPS_MAX = 30;
1483
+ var ROUTINE_DRAFT_REST_SECONDS_MIN = 30;
1484
+ var ROUTINE_DRAFT_REST_SECONDS_MAX = 300;
1485
+ var ROUTINE_DRAFT_STATES = [
1486
+ "READY",
1487
+ "QUOTA_REACHED",
1488
+ "PAUSED",
1489
+ "UNAVAILABLE"
1490
+ ];
1491
+
1453
1492
  // src/routine-sharing.ts
1454
1493
  var ROUTINE_VISIBILITY_VALUES = [
1455
1494
  "PRIVATE",
@@ -1916,6 +1955,16 @@ var API_ERROR_MESSAGES = {
1916
1955
  // ── Plans (BILL-01) ────────────────────────────────────────────────────
1917
1956
  ENTITLEMENT_REQUIRED: "This is available in Pro",
1918
1957
  PLAN_LIMIT_REACHED: "Your plan allows {max} here",
1958
+ // ── Checkout (BILL-03) ─────────────────────────────────────────────────
1959
+ CHECKOUT_UNAVAILABLE: "Checkout isn't available right now",
1960
+ CHECKOUT_PROVIDER_ERROR: "Mercado Pago couldn't be reached. Nothing was charged; try again.",
1961
+ PLAN_ALREADY_PRO: "You already have Pro",
1962
+ // ── Routine drafts (INTEL-03) ──────────────────────────────────────────
1963
+ ROUTINE_DRAFT_QUOTA_REACHED: "You have used your {max} drafts this month",
1964
+ ROUTINE_DRAFTS_PAUSED: "Drafting is paused until next month",
1965
+ ROUTINE_DRAFTS_UNAVAILABLE: "Drafting isn't available right now",
1966
+ ROUTINE_DRAFT_NOT_TRAINING: "That doesn't read like a training request. Nothing was counted.",
1967
+ ROUTINE_DRAFT_FAILED: "We couldn't write a draft from that. Nothing was counted; try again.",
1919
1968
  // ── Account and settings ───────────────────────────────────────────────
1920
1969
  ACCOUNT_CONFLICT: "Account conflict for this email",
1921
1970
  ACCOUNT_DELETE_CONFIRMATION: "Type your username exactly as it appears to confirm.",
@@ -2063,6 +2112,8 @@ export {
2063
2112
  BODY_MEASUREMENT_FIELDS,
2064
2113
  BODY_MEASUREMENT_FIELD_KEYS,
2065
2114
  BODY_PROGRESS_RANGES,
2115
+ CHECKOUT_ATTEMPT_STATUSES,
2116
+ CHECKOUT_ATTEMPT_TTL_MINUTES,
2066
2117
  CLONE_ROUTINE_REFUSALS,
2067
2118
  CM_PER_INCH,
2068
2119
  COMEBACK_MIN_INACTIVE_DAYS,
@@ -2189,6 +2240,7 @@ export {
2189
2240
  PROFILE_VISIBILITY_VALUES,
2190
2241
  PROGRESSION_SCHEMES,
2191
2242
  PROGRESS_TIMELINE_EVENT_TYPES,
2243
+ PRO_PRICE,
2192
2244
  PUSH_PAYLOAD_KINDS,
2193
2245
  PUSH_SUBSCRIPTIONS_MAX,
2194
2246
  REALTIME_HEARTBEAT_MS,
@@ -2218,6 +2270,19 @@ export {
2218
2270
  ROUTINE_DISCOVERY_DEFAULT_LIMIT,
2219
2271
  ROUTINE_DISCOVERY_MAX_LIMIT,
2220
2272
  ROUTINE_DISCOVERY_SCAN_LIMIT,
2273
+ ROUTINE_DRAFT_DESCRIPTION_MAX,
2274
+ ROUTINE_DRAFT_EXERCISES_PER_DAY_MAX,
2275
+ ROUTINE_DRAFT_NAME_MAX,
2276
+ ROUTINE_DRAFT_REPS_MAX,
2277
+ ROUTINE_DRAFT_REPS_MIN,
2278
+ ROUTINE_DRAFT_REQUEST_MAX,
2279
+ ROUTINE_DRAFT_REQUEST_MIN,
2280
+ ROUTINE_DRAFT_REST_SECONDS_MAX,
2281
+ ROUTINE_DRAFT_REST_SECONDS_MIN,
2282
+ ROUTINE_DRAFT_SETS_PER_DAY_MAX,
2283
+ ROUTINE_DRAFT_SETS_PER_EXERCISE_MAX,
2284
+ ROUTINE_DRAFT_STATES,
2285
+ ROUTINE_DRAFT_WEEKLY_MUSCLE_SETS_MAX,
2221
2286
  ROUTINE_DURATION_BANDS,
2222
2287
  ROUTINE_DURATION_BAND_MAX_MINUTES,
2223
2288
  ROUTINE_SCHEDULE_MODES,
@@ -2255,6 +2320,7 @@ export {
2255
2320
  SHARED_ROUTINE_SOURCES,
2256
2321
  STARRED_EXERCISES_MAX,
2257
2322
  STREAK_MAX_GAP_DAYS,
2323
+ SUBSCRIPTION_STATUSES,
2258
2324
  SUPPORTED_LOCALES,
2259
2325
  TEMPORARY_OVERRIDE_KINDS,
2260
2326
  TEMPORARY_OVERRIDE_SOURCE_KINDS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunsteel/contracts",
3
- "version": "0.104.0",
3
+ "version": "0.106.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ezee969/sunsteel-contracts.git"