@sunsteel/contracts 0.99.0 → 0.101.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 +58 -4
- package/dist/index.d.cts +112 -4
- package/dist/index.d.ts +112 -4
- package/dist/index.js +50 -4
- package/package.json +40 -40
package/dist/index.cjs
CHANGED
|
@@ -83,6 +83,7 @@ __export(index_exports, {
|
|
|
83
83
|
FEATURED_PROFILE_ITEMS_MAX: () => FEATURED_PROFILE_ITEMS_MAX,
|
|
84
84
|
FEATURED_PROFILE_ITEM_KINDS: () => FEATURED_PROFILE_ITEM_KINDS,
|
|
85
85
|
FEATURED_PROFILE_REFERENCE_MAX_LENGTH: () => FEATURED_PROFILE_REFERENCE_MAX_LENGTH,
|
|
86
|
+
FINISH_PAUSE_MINUTES: () => FINISH_PAUSE_MINUTES,
|
|
86
87
|
FOLLOW_SUGGESTIONS_DEFAULT_LIMIT: () => FOLLOW_SUGGESTIONS_DEFAULT_LIMIT,
|
|
87
88
|
FOLLOW_SUGGESTIONS_MAX_LIMIT: () => FOLLOW_SUGGESTIONS_MAX_LIMIT,
|
|
88
89
|
FOLLOW_SUGGESTION_REASONS: () => FOLLOW_SUGGESTION_REASONS,
|
|
@@ -124,6 +125,7 @@ __export(index_exports, {
|
|
|
124
125
|
MESSAGE_ATTACHMENT_KINDS: () => MESSAGE_ATTACHMENT_KINDS,
|
|
125
126
|
MESSAGE_BODY_MAX: () => MESSAGE_BODY_MAX,
|
|
126
127
|
MESSAGE_PERMISSIONS: () => MESSAGE_PERMISSIONS,
|
|
128
|
+
MESSAGE_PROGRESS_ID: () => MESSAGE_PROGRESS_ID,
|
|
127
129
|
MESSAGE_PUSH_DELAY_SECONDS: () => MESSAGE_PUSH_DELAY_SECONDS,
|
|
128
130
|
MESSAGE_REPORT_CONTEXT_BEFORE: () => MESSAGE_REPORT_CONTEXT_BEFORE,
|
|
129
131
|
MESSAGE_REQUEST_DECLINE_COOLDOWN_DAYS: () => MESSAGE_REQUEST_DECLINE_COOLDOWN_DAYS,
|
|
@@ -258,6 +260,7 @@ __export(index_exports, {
|
|
|
258
260
|
USERNAME_PATTERN_SOURCE: () => USERNAME_PATTERN_SOURCE,
|
|
259
261
|
WEEK_STARTS: () => WEEK_STARTS,
|
|
260
262
|
WEIGHT_UNITS: () => WEIGHT_UNITS,
|
|
263
|
+
WORKOUT_END_CLOCK_SLACK_SECONDS: () => WORKOUT_END_CLOCK_SLACK_SECONDS,
|
|
261
264
|
WORKOUT_SESSION_ORIGINS: () => WORKOUT_SESSION_ORIGINS,
|
|
262
265
|
WORKOUT_SESSION_STATUSES: () => WORKOUT_SESSION_STATUSES,
|
|
263
266
|
accountExportFileName: () => accountExportFileName,
|
|
@@ -275,16 +278,20 @@ __export(index_exports, {
|
|
|
275
278
|
cmToFeetInches: () => cmToFeetInches,
|
|
276
279
|
cmToInches: () => cmToInches,
|
|
277
280
|
continueLinearPeriodization: () => continueLinearPeriodization,
|
|
281
|
+
correctedEndTime: () => correctedEndTime,
|
|
278
282
|
countsAsWork: () => countsAsWork,
|
|
279
283
|
countsForProgression: () => countsForProgression,
|
|
280
284
|
customExerciseProblem: () => customExerciseProblem,
|
|
281
285
|
defaultWarmUpEquipment: () => defaultWarmUpEquipment,
|
|
282
286
|
deloadLengthDays: () => deloadLengthDays,
|
|
287
|
+
earliestWorkoutEnd: () => earliestWorkoutEnd,
|
|
283
288
|
exerciseGroupLabel: () => exerciseGroupLabel,
|
|
284
289
|
exerciseGroupPosition: () => exerciseGroupPosition,
|
|
285
290
|
exerciseGroups: () => exerciseGroups,
|
|
286
291
|
exerciseNameKey: () => exerciseNameKey,
|
|
287
292
|
feetInchesToCm: () => feetInchesToCm,
|
|
293
|
+
finishEndTime: () => finishEndTime,
|
|
294
|
+
finishNeedsEndTime: () => finishNeedsEndTime,
|
|
288
295
|
followWorkingLoad: () => followWorkingLoad,
|
|
289
296
|
goalSuggestionKey: () => goalSuggestionKey,
|
|
290
297
|
hasOversizedGroup: () => hasOversizedGroup,
|
|
@@ -320,6 +327,7 @@ __export(index_exports, {
|
|
|
320
327
|
matchesDeletionConfirmation: () => matchesDeletionConfirmation,
|
|
321
328
|
messageBodyLength: () => messageBodyLength,
|
|
322
329
|
messageNote: () => messageNote,
|
|
330
|
+
messageProgressId: () => messageProgressId,
|
|
323
331
|
normalizeDashboardLayout: () => normalizeDashboardLayout,
|
|
324
332
|
normalizeExerciseLinks: () => normalizeExerciseLinks,
|
|
325
333
|
normalizeExerciseName: () => normalizeExerciseName,
|
|
@@ -1679,8 +1687,8 @@ function applyDeload(setup, options) {
|
|
|
1679
1687
|
return lighter ? { ...setup, days } : null;
|
|
1680
1688
|
}
|
|
1681
1689
|
function deloadLengthDays(startDate, endDate) {
|
|
1682
|
-
const
|
|
1683
|
-
return Math.round((
|
|
1690
|
+
const ms2 = (date) => Date.parse(`${date}T00:00:00Z`);
|
|
1691
|
+
return Math.round((ms2(endDate) - ms2(startDate)) / 864e5) + 1;
|
|
1684
1692
|
}
|
|
1685
1693
|
|
|
1686
1694
|
// src/deload-suggestions.ts
|
|
@@ -1777,6 +1785,37 @@ var SESSION_SHARE_DEFAULT_FIELDS = [
|
|
|
1777
1785
|
];
|
|
1778
1786
|
var SESSION_SHARE_MAX_ACTIVE_LINKS = 10;
|
|
1779
1787
|
|
|
1788
|
+
// src/workout-end-time.ts
|
|
1789
|
+
var FINISH_PAUSE_MINUTES = 30;
|
|
1790
|
+
var WORKOUT_END_CLOCK_SLACK_SECONDS = 120;
|
|
1791
|
+
var ms = (value) => new Date(value).getTime();
|
|
1792
|
+
function earliestWorkoutEnd(input) {
|
|
1793
|
+
const skip = input.movesWithEnd ? ms(input.movesWithEnd) : null;
|
|
1794
|
+
let earliest = ms(input.startedAt);
|
|
1795
|
+
for (const value of input.completedAts) {
|
|
1796
|
+
if (!value) continue;
|
|
1797
|
+
const at = ms(value);
|
|
1798
|
+
if (Number.isFinite(at) && at !== skip && at > earliest) earliest = at;
|
|
1799
|
+
}
|
|
1800
|
+
return new Date(earliest);
|
|
1801
|
+
}
|
|
1802
|
+
function finishEndTime(requested, earliest, now = /* @__PURE__ */ new Date()) {
|
|
1803
|
+
if (requested == null) return now;
|
|
1804
|
+
const at = ms(requested);
|
|
1805
|
+
if (!Number.isFinite(at) || at < earliest.getTime()) return null;
|
|
1806
|
+
if (at > now.getTime() + WORKOUT_END_CLOCK_SLACK_SECONDS * 1e3) return null;
|
|
1807
|
+
return new Date(Math.min(at, now.getTime()));
|
|
1808
|
+
}
|
|
1809
|
+
function correctedEndTime(requested, earliest, endedAt) {
|
|
1810
|
+
const at = ms(requested);
|
|
1811
|
+
if (!Number.isFinite(at)) return null;
|
|
1812
|
+
if (at < earliest.getTime() || at > ms(endedAt)) return null;
|
|
1813
|
+
return new Date(at);
|
|
1814
|
+
}
|
|
1815
|
+
function finishNeedsEndTime(lastActivityAt, now = /* @__PURE__ */ new Date()) {
|
|
1816
|
+
return now.getTime() - ms(lastActivityAt) >= FINISH_PAUSE_MINUTES * 60 * 1e3;
|
|
1817
|
+
}
|
|
1818
|
+
|
|
1780
1819
|
// src/session-corrections.ts
|
|
1781
1820
|
var SESSION_CORRECTION_WINDOW_HOURS = 48;
|
|
1782
1821
|
var SESSION_CORRECTIONS_MAX = 10;
|
|
@@ -2038,6 +2077,7 @@ var API_ERROR_MESSAGES = {
|
|
|
2038
2077
|
SESSION_BLOCK_NOT_IN_FORCE: "That training block is not in force today; start a day of the routine",
|
|
2039
2078
|
SESSION_FINISHED: "Cannot modify set logs for a finished session",
|
|
2040
2079
|
SESSION_ALREADY_FINISHED: "Session already finished with a different status",
|
|
2080
|
+
WORKOUT_END_TIME_RANGE: "A workout ends after it started and after its last set, and not in the future",
|
|
2041
2081
|
EXTRA_SETS_MAX: "An exercise can take at most {max} extra sets",
|
|
2042
2082
|
EXTRA_SET_NOT_NEXT: "Extra sets are added after the last set",
|
|
2043
2083
|
PRESCRIBED_SET_NOT_REMOVABLE: "A prescribed set cannot be removed",
|
|
@@ -2075,6 +2115,7 @@ var API_ERROR_MESSAGES = {
|
|
|
2075
2115
|
CORRECTION_COMPLETED_NEEDS_REP: "A completed set needs at least one rep",
|
|
2076
2116
|
CORRECTION_NOTHING_TO_CORRECT: "Nothing to correct: every set already reads that way",
|
|
2077
2117
|
CORRECTION_KEEPS_ONE_SET: "A finished workout keeps at least one completed set",
|
|
2118
|
+
CORRECTION_END_TIME_RANGE: "A workout's end can only move earlier, and not before it started or before its last set",
|
|
2078
2119
|
// ── Sharing a workout ──────────────────────────────────────────────────
|
|
2079
2120
|
SESSION_SHARE_NOTHING_CHOSEN: "Choose at least one part of the recap to share",
|
|
2080
2121
|
SESSION_SHARE_NOT_COMPLETED: "Only completed sessions can be shared",
|
|
@@ -2111,7 +2152,7 @@ var API_ERROR_MESSAGES = {
|
|
|
2111
2152
|
// ── Direct messages (MSG-01) ───────────────────────────────────────────
|
|
2112
2153
|
MESSAGE_SELF: "You cannot message yourself",
|
|
2113
2154
|
MESSAGE_LENGTH: "A message must not be empty and may be at most {max} characters.",
|
|
2114
|
-
MESSAGE_ONE_ATTACHMENT: "A message can carry one routine, one workout, one record, one milestone or one
|
|
2155
|
+
MESSAGE_ONE_ATTACHMENT: "A message can carry one routine, one workout, one record, one milestone, one comeback or one month of progress.",
|
|
2115
2156
|
MESSAGES_PER_MINUTE: "You can send at most {max} messages a minute.",
|
|
2116
2157
|
CONVERSATIONS_PER_DAY: "You can start at most {max} new conversations a day.",
|
|
2117
2158
|
MESSAGE_NOT_ADMITTED: "This member is not taking messages from you.",
|
|
@@ -2225,8 +2266,13 @@ var MESSAGE_ATTACHMENT_KINDS = [
|
|
|
2225
2266
|
"WORKOUT",
|
|
2226
2267
|
"RECORD",
|
|
2227
2268
|
"ACHIEVEMENT",
|
|
2228
|
-
"COMEBACK"
|
|
2269
|
+
"COMEBACK",
|
|
2270
|
+
"PROGRESS"
|
|
2229
2271
|
];
|
|
2272
|
+
var MESSAGE_PROGRESS_ID = /^progress:(\d{4})-(0[1-9]|1[0-2])$/;
|
|
2273
|
+
function messageProgressId(month) {
|
|
2274
|
+
return `progress:${month}`;
|
|
2275
|
+
}
|
|
2230
2276
|
function messageNote(body, hasAttachment) {
|
|
2231
2277
|
if ((body ?? "").trim().length === 0) {
|
|
2232
2278
|
return hasAttachment ? null : void 0;
|
|
@@ -2305,6 +2351,7 @@ function isMessagePermission(value) {
|
|
|
2305
2351
|
FEATURED_PROFILE_ITEMS_MAX,
|
|
2306
2352
|
FEATURED_PROFILE_ITEM_KINDS,
|
|
2307
2353
|
FEATURED_PROFILE_REFERENCE_MAX_LENGTH,
|
|
2354
|
+
FINISH_PAUSE_MINUTES,
|
|
2308
2355
|
FOLLOW_SUGGESTIONS_DEFAULT_LIMIT,
|
|
2309
2356
|
FOLLOW_SUGGESTIONS_MAX_LIMIT,
|
|
2310
2357
|
FOLLOW_SUGGESTION_REASONS,
|
|
@@ -2346,6 +2393,7 @@ function isMessagePermission(value) {
|
|
|
2346
2393
|
MESSAGE_ATTACHMENT_KINDS,
|
|
2347
2394
|
MESSAGE_BODY_MAX,
|
|
2348
2395
|
MESSAGE_PERMISSIONS,
|
|
2396
|
+
MESSAGE_PROGRESS_ID,
|
|
2349
2397
|
MESSAGE_PUSH_DELAY_SECONDS,
|
|
2350
2398
|
MESSAGE_REPORT_CONTEXT_BEFORE,
|
|
2351
2399
|
MESSAGE_REQUEST_DECLINE_COOLDOWN_DAYS,
|
|
@@ -2480,6 +2528,7 @@ function isMessagePermission(value) {
|
|
|
2480
2528
|
USERNAME_PATTERN_SOURCE,
|
|
2481
2529
|
WEEK_STARTS,
|
|
2482
2530
|
WEIGHT_UNITS,
|
|
2531
|
+
WORKOUT_END_CLOCK_SLACK_SECONDS,
|
|
2483
2532
|
WORKOUT_SESSION_ORIGINS,
|
|
2484
2533
|
WORKOUT_SESSION_STATUSES,
|
|
2485
2534
|
accountExportFileName,
|
|
@@ -2497,16 +2546,20 @@ function isMessagePermission(value) {
|
|
|
2497
2546
|
cmToFeetInches,
|
|
2498
2547
|
cmToInches,
|
|
2499
2548
|
continueLinearPeriodization,
|
|
2549
|
+
correctedEndTime,
|
|
2500
2550
|
countsAsWork,
|
|
2501
2551
|
countsForProgression,
|
|
2502
2552
|
customExerciseProblem,
|
|
2503
2553
|
defaultWarmUpEquipment,
|
|
2504
2554
|
deloadLengthDays,
|
|
2555
|
+
earliestWorkoutEnd,
|
|
2505
2556
|
exerciseGroupLabel,
|
|
2506
2557
|
exerciseGroupPosition,
|
|
2507
2558
|
exerciseGroups,
|
|
2508
2559
|
exerciseNameKey,
|
|
2509
2560
|
feetInchesToCm,
|
|
2561
|
+
finishEndTime,
|
|
2562
|
+
finishNeedsEndTime,
|
|
2510
2563
|
followWorkingLoad,
|
|
2511
2564
|
goalSuggestionKey,
|
|
2512
2565
|
hasOversizedGroup,
|
|
@@ -2542,6 +2595,7 @@ function isMessagePermission(value) {
|
|
|
2542
2595
|
matchesDeletionConfirmation,
|
|
2543
2596
|
messageBodyLength,
|
|
2544
2597
|
messageNote,
|
|
2598
|
+
messageProgressId,
|
|
2545
2599
|
normalizeDashboardLayout,
|
|
2546
2600
|
normalizeExerciseLinks,
|
|
2547
2601
|
normalizeExerciseName,
|
package/dist/index.d.cts
CHANGED
|
@@ -1339,6 +1339,11 @@ type FinishStatus = Extract<WorkoutSessionStatus, 'COMPLETED' | 'ABORTED'>;
|
|
|
1339
1339
|
interface FinishWorkoutRequest {
|
|
1340
1340
|
status: FinishStatus;
|
|
1341
1341
|
notes?: string;
|
|
1342
|
+
/**
|
|
1343
|
+
* LIVE-24: when the workout ended; now when absent. Bounded by
|
|
1344
|
+
* `earliestWorkoutEnd` and `finishEndTime`.
|
|
1345
|
+
*/
|
|
1346
|
+
endedAt?: IsoDateString;
|
|
1342
1347
|
}
|
|
1343
1348
|
type ProgressionRule = 'ALL_SETS_REACHED_TARGET' | 'SET_REACHED_TARGET';
|
|
1344
1349
|
interface ProgressionSetChange {
|
|
@@ -1998,7 +2003,7 @@ declare function normalizeMessageBody(body: string): string | null;
|
|
|
1998
2003
|
* MSG-07: what a message, its text left empty or not, may carry -- one of
|
|
1999
2004
|
* them, with an optional note. MSG-10 adds a finished workout.
|
|
2000
2005
|
*/
|
|
2001
|
-
declare const MESSAGE_ATTACHMENT_KINDS: readonly ["ROUTINE", "WORKOUT", "RECORD", "ACHIEVEMENT", "COMEBACK"];
|
|
2006
|
+
declare const MESSAGE_ATTACHMENT_KINDS: readonly ["ROUTINE", "WORKOUT", "RECORD", "ACHIEVEMENT", "COMEBACK", "PROGRESS"];
|
|
2002
2007
|
type MessageAttachmentKind = (typeof MESSAGE_ATTACHMENT_KINDS)[number];
|
|
2003
2008
|
/**
|
|
2004
2009
|
* MSG-07: a routine in a message, as it is now. `routine` is null once it is
|
|
@@ -2070,7 +2075,37 @@ interface MessageComebackAttachment {
|
|
|
2070
2075
|
kind: "COMEBACK";
|
|
2071
2076
|
comeback: MessageComebackSummary | null;
|
|
2072
2077
|
}
|
|
2073
|
-
|
|
2078
|
+
/**
|
|
2079
|
+
* MSG-14: a month's progress is named `progress:YYYY-MM` -- one calendar
|
|
2080
|
+
* month in the sender's time zone.
|
|
2081
|
+
*/
|
|
2082
|
+
declare const MESSAGE_PROGRESS_ID: RegExp;
|
|
2083
|
+
declare function messageProgressId(month: string): string;
|
|
2084
|
+
/**
|
|
2085
|
+
* MSG-14: a month of training in a card -- as the sender's stored training
|
|
2086
|
+
* reads now: how many workouts, on how many days, the completed sets, the
|
|
2087
|
+
* volume and the personal records. Nothing of any single workout, routine or
|
|
2088
|
+
* exercise, and no comparison.
|
|
2089
|
+
*/
|
|
2090
|
+
interface MessageProgressSummary {
|
|
2091
|
+
/** `progress:YYYY-MM`. */
|
|
2092
|
+
id: string;
|
|
2093
|
+
/** `YYYY-MM`. */
|
|
2094
|
+
month: string;
|
|
2095
|
+
/** False while the month is not over in the sender's time zone. */
|
|
2096
|
+
complete: boolean;
|
|
2097
|
+
workouts: number;
|
|
2098
|
+
trainingDays: number;
|
|
2099
|
+
completedSets: number;
|
|
2100
|
+
volumeKg: number;
|
|
2101
|
+
personalRecords: number;
|
|
2102
|
+
}
|
|
2103
|
+
/** MSG-14: `progress` is null while the sender's analytics are not ready. */
|
|
2104
|
+
interface MessageProgressAttachment {
|
|
2105
|
+
kind: "PROGRESS";
|
|
2106
|
+
progress: MessageProgressSummary | null;
|
|
2107
|
+
}
|
|
2108
|
+
type MessageAttachment = MessageRoutineAttachment | MessageWorkoutAttachment | MessageRecordAttachment | MessageAchievementAttachment | MessageComebackAttachment | MessageProgressAttachment;
|
|
2074
2109
|
/** MSG-10: one completed set of a shared workout. Never its RPE. */
|
|
2075
2110
|
interface SharedWorkoutSet {
|
|
2076
2111
|
setNumber: number;
|
|
@@ -2247,6 +2282,8 @@ interface StartConversationRequest {
|
|
|
2247
2282
|
achievementId?: string;
|
|
2248
2283
|
/** MSG-13: one of the sender's own comebacks, by its recognition id. */
|
|
2249
2284
|
comebackId?: string;
|
|
2285
|
+
/** MSG-14: one month of the sender's own training, `progress:YYYY-MM`. */
|
|
2286
|
+
progressId?: string;
|
|
2250
2287
|
}
|
|
2251
2288
|
/** POST /conversations/:id/messages. */
|
|
2252
2289
|
interface SendMessageRequest {
|
|
@@ -2262,6 +2299,8 @@ interface SendMessageRequest {
|
|
|
2262
2299
|
achievementId?: string;
|
|
2263
2300
|
/** MSG-13: one of the sender's own comebacks, by its recognition id. */
|
|
2264
2301
|
comebackId?: string;
|
|
2302
|
+
/** MSG-14: one month of the sender's own training, `progress:YYYY-MM`. */
|
|
2303
|
+
progressId?: string;
|
|
2265
2304
|
}
|
|
2266
2305
|
interface SendMessageResponse {
|
|
2267
2306
|
conversation: ConversationSummary;
|
|
@@ -2510,6 +2549,11 @@ interface CapturedMessage {
|
|
|
2510
2549
|
* no longer available, or null when it carried none.
|
|
2511
2550
|
*/
|
|
2512
2551
|
comebackId?: string | null;
|
|
2552
|
+
/**
|
|
2553
|
+
* MSG-14: the month of training it carried (`progress:YYYY-MM`), empty when
|
|
2554
|
+
* it was no longer available, or null when it carried none.
|
|
2555
|
+
*/
|
|
2556
|
+
progressId?: string | null;
|
|
2513
2557
|
createdAt: IsoDateString;
|
|
2514
2558
|
}
|
|
2515
2559
|
/**
|
|
@@ -3872,6 +3916,52 @@ interface DeleteActivityCommentResponse {
|
|
|
3872
3916
|
summary: ActivityCommentSummary;
|
|
3873
3917
|
}
|
|
3874
3918
|
|
|
3919
|
+
/**
|
|
3920
|
+
* LIVE-24. When a workout ended. Finishing used to stamp the moment Finish was
|
|
3921
|
+
* pressed, so a workout finished hours after its last set read as hours long.
|
|
3922
|
+
* Finish now takes the end time, and a finished workout's end time can be
|
|
3923
|
+
* moved earlier as a LIVE-17 correction. One rule bounds both, so the page
|
|
3924
|
+
* offers exactly what the server accepts.
|
|
3925
|
+
*/
|
|
3926
|
+
/**
|
|
3927
|
+
* Finish asks when the workout ended once its last set was saved this long
|
|
3928
|
+
* ago; sooner than that it finishes at once, as it always has.
|
|
3929
|
+
*/
|
|
3930
|
+
declare const FINISH_PAUSE_MINUTES = 30;
|
|
3931
|
+
/**
|
|
3932
|
+
* An end time this far ahead of the server's clock is taken as now: a phone's
|
|
3933
|
+
* clock running slightly fast must not refuse a finish.
|
|
3934
|
+
*/
|
|
3935
|
+
declare const WORKOUT_END_CLOCK_SLACK_SECONDS = 120;
|
|
3936
|
+
type Instant = IsoDateString | Date;
|
|
3937
|
+
/**
|
|
3938
|
+
* The earliest a workout can end: its start, or its last completed set when
|
|
3939
|
+
* that is later. A set ticked by a correction was stamped with the end itself
|
|
3940
|
+
* (`movesWithEnd`), so it moves with the end rather than holding it back.
|
|
3941
|
+
*/
|
|
3942
|
+
declare function earliestWorkoutEnd(input: {
|
|
3943
|
+
startedAt: Instant;
|
|
3944
|
+
completedAts: Array<Instant | null | undefined>;
|
|
3945
|
+
movesWithEnd?: Instant | null;
|
|
3946
|
+
}): Date;
|
|
3947
|
+
/**
|
|
3948
|
+
* The end a finish records: now when none is given, the given time when it
|
|
3949
|
+
* falls between the earliest end and now (a little past now reads as now),
|
|
3950
|
+
* and null when it falls outside them.
|
|
3951
|
+
*/
|
|
3952
|
+
declare function finishEndTime(requested: Instant | null | undefined, earliest: Date, now?: Date): Date | null;
|
|
3953
|
+
/**
|
|
3954
|
+
* A corrected end only moves earlier: between the earliest end and the end
|
|
3955
|
+
* recorded. Null when it falls outside them.
|
|
3956
|
+
*/
|
|
3957
|
+
declare function correctedEndTime(requested: Instant, earliest: Date, endedAt: Instant): Date | null;
|
|
3958
|
+
/**
|
|
3959
|
+
* Whether Finish should ask when the workout ended: the last saved activity
|
|
3960
|
+
* (the last set ticked, else the start) is at least `FINISH_PAUSE_MINUTES`
|
|
3961
|
+
* old.
|
|
3962
|
+
*/
|
|
3963
|
+
declare function finishNeedsEndTime(lastActivityAt: Instant, now?: Date): boolean;
|
|
3964
|
+
|
|
3875
3965
|
/**
|
|
3876
3966
|
* LIVE-17. Correcting a finished workout: the owner fixes a mistyped weight,
|
|
3877
3967
|
* reps or RPE, or a set left unticked, and everything the workout fed --
|
|
@@ -3915,11 +4005,19 @@ interface SessionSetCorrection {
|
|
|
3915
4005
|
before: SetLogValues;
|
|
3916
4006
|
after: SetLogValues;
|
|
3917
4007
|
}
|
|
4008
|
+
/** LIVE-24: the workout's end time, as it was and as it became. */
|
|
4009
|
+
interface SessionEndTimeCorrection {
|
|
4010
|
+
before: IsoDateString;
|
|
4011
|
+
after: IsoDateString;
|
|
4012
|
+
}
|
|
3918
4013
|
/** One saved correction. Never edited or deleted once written. */
|
|
3919
4014
|
interface SessionCorrection {
|
|
3920
4015
|
id: string;
|
|
3921
4016
|
createdAt: IsoDateString;
|
|
4017
|
+
/** Empty when only the end time was corrected. */
|
|
3922
4018
|
changes: SessionSetCorrection[];
|
|
4019
|
+
/** LIVE-24: set when the correction moved the end time; absent before it. */
|
|
4020
|
+
endedAt?: SessionEndTimeCorrection | null;
|
|
3923
4021
|
}
|
|
3924
4022
|
type SessionCorrectionClosedReason = "NOT_COMPLETED" | "NOT_LATEST" | "LATER_SESSION" | "WINDOW_PASSED" | "LIMIT_REACHED"
|
|
3925
4023
|
/** LIVE-23: a workout logged later is removed and logged again instead. */
|
|
@@ -3948,6 +4046,12 @@ interface CorrectSessionSetRequest extends SetLogValues {
|
|
|
3948
4046
|
*/
|
|
3949
4047
|
interface CorrectSessionRequest {
|
|
3950
4048
|
sets: CorrectSessionSetRequest[];
|
|
4049
|
+
/**
|
|
4050
|
+
* LIVE-24: when the workout ended, only ever earlier than recorded and never
|
|
4051
|
+
* before its start or last set (`correctedEndTime`). Omitted, or equal to
|
|
4052
|
+
* the recorded end, it is left as it is.
|
|
4053
|
+
*/
|
|
4054
|
+
endedAt?: IsoDateString;
|
|
3951
4055
|
}
|
|
3952
4056
|
interface CorrectSessionResponse {
|
|
3953
4057
|
correction: SessionCorrection;
|
|
@@ -4892,6 +4996,8 @@ interface AccountExportV1 {
|
|
|
4892
4996
|
achievementId?: string;
|
|
4893
4997
|
/** MSG-13: the member's own comeback the message shared, by its id. */
|
|
4894
4998
|
comebackId?: string;
|
|
4999
|
+
/** MSG-14: the month of the member's training the message shared. */
|
|
5000
|
+
progressId?: string;
|
|
4895
5001
|
createdAt: IsoDateString;
|
|
4896
5002
|
}>;
|
|
4897
5003
|
reportsFiled: Array<{
|
|
@@ -5013,6 +5119,7 @@ declare const API_ERROR_MESSAGES: {
|
|
|
5013
5119
|
readonly SESSION_BLOCK_NOT_IN_FORCE: "That training block is not in force today; start a day of the routine";
|
|
5014
5120
|
readonly SESSION_FINISHED: "Cannot modify set logs for a finished session";
|
|
5015
5121
|
readonly SESSION_ALREADY_FINISHED: "Session already finished with a different status";
|
|
5122
|
+
readonly WORKOUT_END_TIME_RANGE: "A workout ends after it started and after its last set, and not in the future";
|
|
5016
5123
|
readonly EXTRA_SETS_MAX: "An exercise can take at most {max} extra sets";
|
|
5017
5124
|
readonly EXTRA_SET_NOT_NEXT: "Extra sets are added after the last set";
|
|
5018
5125
|
readonly PRESCRIBED_SET_NOT_REMOVABLE: "A prescribed set cannot be removed";
|
|
@@ -5047,6 +5154,7 @@ declare const API_ERROR_MESSAGES: {
|
|
|
5047
5154
|
readonly CORRECTION_COMPLETED_NEEDS_REP: "A completed set needs at least one rep";
|
|
5048
5155
|
readonly CORRECTION_NOTHING_TO_CORRECT: "Nothing to correct: every set already reads that way";
|
|
5049
5156
|
readonly CORRECTION_KEEPS_ONE_SET: "A finished workout keeps at least one completed set";
|
|
5157
|
+
readonly CORRECTION_END_TIME_RANGE: "A workout's end can only move earlier, and not before it started or before its last set";
|
|
5050
5158
|
readonly SESSION_SHARE_NOTHING_CHOSEN: "Choose at least one part of the recap to share";
|
|
5051
5159
|
readonly SESSION_SHARE_NOT_COMPLETED: "Only completed sessions can be shared";
|
|
5052
5160
|
readonly SESSION_SHARE_LINKS_MAX: "A session can have at most {max} active share links";
|
|
@@ -5078,7 +5186,7 @@ declare const API_ERROR_MESSAGES: {
|
|
|
5078
5186
|
readonly ENCOURAGEMENT_RETRY: "Please retry the encouragement.";
|
|
5079
5187
|
readonly MESSAGE_SELF: "You cannot message yourself";
|
|
5080
5188
|
readonly MESSAGE_LENGTH: "A message must not be empty and may be at most {max} characters.";
|
|
5081
|
-
readonly MESSAGE_ONE_ATTACHMENT: "A message can carry one routine, one workout, one record, one milestone or one
|
|
5189
|
+
readonly MESSAGE_ONE_ATTACHMENT: "A message can carry one routine, one workout, one record, one milestone, one comeback or one month of progress.";
|
|
5082
5190
|
readonly MESSAGES_PER_MINUTE: "You can send at most {max} messages a minute.";
|
|
5083
5191
|
readonly CONVERSATIONS_PER_DAY: "You can start at most {max} new conversations a day.";
|
|
5084
5192
|
readonly MESSAGE_NOT_ADMITTED: "This member is not taking messages from you.";
|
|
@@ -5270,4 +5378,4 @@ declare function isRealtimeTopic(value: unknown): value is RealtimeTopic;
|
|
|
5270
5378
|
/** The event in one `data:` payload, or null for anything else. */
|
|
5271
5379
|
declare function parseRealtimeEvent(data: string): RealtimeEvent | null;
|
|
5272
5380
|
|
|
5273
|
-
export { ACCOUNT_EXPORT_FORMAT, ACCOUNT_EXPORT_VERSION, ACHIEVEMENT_CATEGORIES, ACHIEVEMENT_DEFINITIONS, ACTIVITY_CAPS, ACTIVITY_COMMENTS_PAGE_SIZE, ACTIVITY_COMMENTS_PER_DAY_MAX, ACTIVITY_COMMENT_MAX_LENGTH, ACTIVITY_DEFAULT_AUDIENCE, ACTIVITY_ENTRY_ID_MAX_LENGTH, ACTIVITY_FEED_FOLLOWED_MAX, ACTIVITY_PAGE_DEFAULT_LIMIT, ACTIVITY_PAGE_MAX_LIMIT, ACTIVITY_PREVIEW_AUDIENCES, ACTIVITY_REACTIONS, ACTIVITY_TYPES, ACTIVITY_TYPE_SECTIONS, API_ERROR_CODES, API_ERROR_MESSAGES, type AccountExportBodyMeasurement, type AccountExportGoal, type AccountExportMember, type AccountExportPersonalRecord, type AccountExportRoutine, type AccountExportScheduleOverride, type AccountExportTrainingEvent, type AccountExportTrainingLocation, type AccountExportV1, type AchievementActivity, type AchievementCategory, type AchievementCategoryProgress, type AchievementDefinition, type AchievementNotification, type AchievementUnlockedEventPayload, type AchievementsResponse, type ActivityAudience, type ActivityCap, type ActivityComment, type ActivityCommentNotification, type ActivityCommentSummary, type ActivityCommentsQuery, type ActivityCommentsResponse, type ActivityEntry, type ActivityEntrySharing, type ActivityFeedResponse, type ActivityLink, type ActivityPage, type ActivityPageQuery, type ActivityPreviewAudience, type ActivityPreviewQuery, type ActivityReaction, type ActivityReactionSummary, type ActivitySection, type ActivitySharingSettings, type ActivityType, type ApiErrorBody, type ApiErrorCode, type ApiErrorParams, type AppLocale, type AppNotification, BAR_CHOICES_KG, BAR_WARM_UP_STEPS, BLOCKED_MEMBERS_MAX, BODY_MEASUREMENT_FIELDS, BODY_MEASUREMENT_FIELD_KEYS, BODY_PROGRESS_RANGES, type BlockComparisonLift, type BlockComparisonLiftBest, type BlockComparisonPeriod, type BlockComparisonPeriodKind, type BlockedMember, type BlockedMembersResponse, type BodyFieldSummary, type BodyMeasurement, type BodyMeasurementField, type BodyMeasurementProblem, type BodyMeasurementValues, type BodyProgressRange, type BodyProgressResponse, type Brand, CLONE_ROUTINE_REFUSALS, CM_PER_INCH, COMEBACK_MIN_INACTIVE_DAYS, COMEBACK_RECOGNITION_LIMIT, COMEBACK_REQUIRED_ACTIVE_DAYS, COMEBACK_SESSION_LOOKBACK, COMEBACK_WINDOW_DAYS, CONVERSATIONS_PAGE_SIZE, CONVERSATION_BOXES, CUSTOM_EXERCISES_MAX, CUSTOM_EXERCISE_NAME_MAX, CUSTOM_EXERCISE_NOTE_MAX, CUSTOM_EXERCISE_PROBLEM_MESSAGES, CUSTOM_EXERCISE_REFUSALS, type CalendarDate, type CapturedMessage, type CloneRoutineRefusal, type CloneRoutineRequest, type ComebackActivity, type ComebackRecognition, type ComebackRecognitionSummary, type ContinueLinearBlockRequest, type ConversationBox, type ConversationMember, type ConversationMessage, type ConversationMessagesResponse, type ConversationRequest, type ConversationSummary, type ConversationsResponse, type CorrectSessionRequest, type CorrectSessionResponse, type CorrectSessionSetRequest, type CreateActivityCommentRequest, type CreateActivityCommentResponse, type CreateDeloadRequest, type CreateReportRequest, type CreateReportResponse, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type CreateRoutineVersionRequest, type CreateSessionShareRequest, type CustomExerciseInput, type CustomExerciseProblem, type CustomExerciseRefusal, DASHBOARD_SECTION_IDS, DEFAULT_DASHBOARD_LAYOUT, DEFAULT_LOCALE, DEFAULT_MESSAGE_PERMISSION, DEFAULT_WEEK_STARTS_ON, DELOAD_DEFAULT_DAYS, DELOAD_DEFAULT_LOAD_REDUCTION, DELOAD_DEFAULT_SET_MODE, DELOAD_LOAD_REDUCTIONS, DELOAD_MAX_DAYS, DELOAD_NOT_LIGHTER, DELOAD_SET_MODES, DELOAD_SUGGESTION_COOLDOWN_DAYS, DELOAD_SUGGESTION_EARLIER_DAYS, DELOAD_SUGGESTION_MIN_MARKED_TODAY, DELOAD_SUGGESTION_ROUTINE_DAYS, DELOAD_SUGGESTION_SIGNALS, type DashboardLayout, type DashboardLayoutEntry, type DashboardSectionId, type DeclineSignal, type DecliningLift, type DecliningLiftSession, type DeleteAccountRequest, type DeleteAccountResponse, type DeleteActivityCommentResponse, type DeletePushSubscriptionRequest, type DeloadLoadReduction, type DeloadOptions, type DeloadSetMode, type DeloadSuggestion, type DeloadSuggestionEvidence, type DeloadSuggestionResponse, type DeloadSuggestionSignal, type DeloadSuggestionUnavailableReason, type DiscoverableRoutine, type DismissGoalSuggestionRequest, EXERCISE_EQUIPMENT, EXERCISE_GROUP_KIND_LABELS, EXERCISE_GROUP_MAX, EXERCISE_MECHANICS, type EarnedAchievement, type EarnedPersonalRecord, type EffortPeriod, type EffortSignal, type Exercise, type ExerciseEquipment, type ExerciseGroup, type ExerciseGroupKind, type ExerciseGroupPosition, type ExerciseId, type ExerciseMechanic, type ExercisePerformanceHistoryQuery, type ExercisePerformanceHistoryResponse, type ExercisePerformancePrescription, type ExercisePerformancePrescriptionSet, type ExercisePerformanceSession, type ExercisePerformanceSet, type ExercisePerformanceSummary, type ExercisePlateau, type ExerciseStrengthSummary, type ExerciseStrengthTrendPoint, type ExerciseStrengthTrendQuery, type ExerciseStrengthTrendResponse, FEATURED_PROFILE_ITEMS_MAX, FEATURED_PROFILE_ITEM_KINDS, FEATURED_PROFILE_REFERENCE_MAX_LENGTH, FOLLOW_SUGGESTIONS_DEFAULT_LIMIT, FOLLOW_SUGGESTIONS_MAX_LIMIT, FOLLOW_SUGGESTION_REASONS, type FeaturedProfileAchievementItem, type FeaturedProfileItem, type FeaturedProfileItemKind, type FeaturedProfileRankItem, type FeaturedProfileRecordItem, type FeaturedProfileRoutineItem, type FeaturedProfileSelection, type FeaturedProfileSelectionInput, type FeaturedProfileSelectionsResponse, type FinishStatus, type FinishWorkoutRequest, type FinishWorkoutResponse, type FollowSuggestion, type FollowSuggestionReason, type FollowSuggestionsResponse, GOAL_SUGGESTIONS_MAX, GOAL_SUGGESTION_DISMISSALS_MAX, GOAL_SUGGESTION_LIFT_MIN_SESSIONS, GOAL_SUGGESTION_LIFT_WINDOW_DAYS, GOAL_SUGGESTION_MIN_ACTIVE_WEEKS, GOAL_SUGGESTION_STRENGTH_STEP, GOAL_SUGGESTION_TYPES, GOAL_SUGGESTION_VOLUME_WEEKS, type GoalSuggestion, type GoalSuggestionBasis, type GoalSuggestionType, type GoalSuggestionsResponse, INCHES_PER_FOOT, type IsoDateString, LENGTH_UNITS, LIMITED_SHORTFALL_KG, 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_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 MessagePushPayload, type MessageRecordAttachment, type MessageRecordSummary, type MessageRoutineAttachment, type MessageWorkoutAttachment, type MessageWorkoutSummary, type ModerationActionKind, type ModerationActionRecord, type ModerationHistoryQuery, type ModerationHistoryResponse, type ModerationQueueQuery, type ModerationQueueResponse, type ModerationReport, type ModeratorState, type MoveOccurrenceRequest, type MovementPattern, type MuscleGroup, type MuscleGroupHeatmapQuery, type MuscleGroupHeatmapResponse, type MuscleGroupHeatmapValue, type MuscleGroupHeatmapWeek, type MuscleVolumeTrendSeries, NEW_CONVERSATIONS_PER_DAY_MAX, NOTIFICATIONS_LIST_LIMIT, NOTIFICATIONS_LOOKBACK_DAYS, NOTIFICATIONS_PAGE_SIZE, NOTIFICATIONS_PAGE_SIZE_MAX, NOTIFICATIONS_RETENTION_DAYS, NOTIFICATION_CATEGORIES, NOTIFICATION_KINDS, type NewFollowerNotification, type NotificationCategory, type NotificationKind, type NotificationPreferences, type NotificationPreferencesResponse, type NotificationsQuery, type NotificationsResponse, ONBOARDING_STEPS_MAX, ONBOARDING_STEP_ID_PATTERN_SOURCE, ONBOARDING_VERSION_MAX, OTHER_WARM_UP_STEPS, type OnboardingState, type OwnActivityEntry, type OwnActivityResponse, PLATEAU_MIN_DAYS_SINCE_BEST, PLATEAU_MIN_SESSIONS, PLATEAU_MIN_SESSIONS_MAX, PLATEAU_MIN_SESSIONS_MIN, PLATEAU_RECENT_DAYS, PLATEAU_WINDOW_DAYS, PLATE_SETS, PREFERRED_TRAINING_STYLE_VALUES, PROFILE_BIO_MAX_LENGTH, PROFILE_FAVORITE_EXERCISES_MAX, PROFILE_LOCATION_MAX_LENGTH, PROFILE_TRAINING_DISCIPLINES_MAX, PROFILE_TRAINING_GOALS_MAX, PROFILE_VISIBILITY_VALUES, PROGRESSION_SCHEMES, PROGRESS_TIMELINE_EVENT_TYPES, PUSH_PAYLOAD_KINDS, PUSH_SUBSCRIPTIONS_MAX, type PaginatedResponse, type PersonalGoalProgress, type PersonalGoalsResponse, type PersonalRecordActivity, type PersonalRecordEntry, type PersonalRecordKind, type PlannedReminder, type PlateLoadingItem, type PlateLoadingResult, type PlatePairInventory, type PlateSetChoice, type PlateauPreferences, type PlateauSet, type PlateausResponse, type PreferredTrainingStyle, type PreviousPerformanceResponse, type PreviousSessionRecap, type PreviousSetPerformance, type ProfileDiscoverySettings, type ProfileFavoriteExercise, type ProfilePrivacySettings, type ProfileViewerAccess, type ProfileVisibility, type ProgressTimelineEventType, type ProgressTimelineItem, type ProgressTimelinePersonalRecordItem, type ProgressTimelineProgressionItem, type ProgressTimelineQuery, type ProgressTimelineRecordPerformance, type ProgressTimelineRecordReason, type ProgressTimelineResponse, type ProgressTimelineSessionContext, type ProgressionActivity, type ProgressionChange, type ProgressionRule, type ProgressionScheme, type ProgressionSetChange, type PublicBodyMetrics, type PublicProfileAchievements, type PublicTrainingSummary, type PublicUserProfile, type PushPayload, type PushPayloadKind, type PushSubscriptionKeys, type PushSubscriptionSummary, type PushSubscriptionsResponse, type QuietHours, REALTIME_HEARTBEAT_MS, REALTIME_MAX_STREAMS_PER_MEMBER, REALTIME_MAX_STREAM_MS, REALTIME_STREAM_PATH, REALTIME_TOPICS, REALTIME_UNAVAILABLE_RETRY_SECONDS, RECENT_SEARCHES_MAX, RECENT_SEARCH_KINDS, RELATIONSHIP_LIST_DEFAULT_LIMIT, RELATIONSHIP_LIST_KINDS, RELATIONSHIP_LIST_MAX_LIMIT, RENAISSANCE_RANK_DEFINITIONS, REPORTS_PER_DAY_MAX, REPORT_DETAILS_MAX_LENGTH, REPORT_REASONS, REPORT_STATUSES, REPORT_SUBJECT_KINDS, REP_TYPES, RESERVED_USERNAMES, REST_ALERT_MAX_LEAD_SECONDS, REST_ALERT_MIN_LEAD_SECONDS, REST_ALERT_REFUSALS, ROUTINE_DAYS_MAX, ROUTINE_DAY_NAME_MAX, ROUTINE_DISCOVERY_DEFAULT_LIMIT, ROUTINE_DISCOVERY_MAX_LIMIT, ROUTINE_DISCOVERY_SCAN_LIMIT, ROUTINE_DURATION_BANDS, ROUTINE_DURATION_BAND_MAX_MINUTES, ROUTINE_SCHEDULE_MODES, ROUTINE_SHARE_MAX_ACTIVE_LINKS, ROUTINE_TRAINING_BLOCKS_MAX, ROUTINE_TRAINING_BLOCK_NAME_MAX, ROUTINE_TRAINING_BLOCK_REVISIONS_MAX, ROUTINE_TRAINING_BLOCK_SOURCE_KINDS, ROUTINE_TRAINING_BLOCK_STATES, ROUTINE_VERSIONS_MAX, ROUTINE_VERSION_KINDS, ROUTINE_VERSION_NAME_MAX, ROUTINE_VISIBILITY_VALUES, type RealtimeEvent, type RealtimeTopic, type RecentActivityEntry, type RecentExercise, type RecentRoutine, type RecentSearchItem, type RecentSearchKind, type RecentSearchesResponse, type RecordRecentSearchRequest, type RegisterPushSubscriptionRequest, type RelationshipListKind, type RelationshipListQuery, type RelationshipListResponse, type RelationshipMember, type 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 SessionExerciseNote, type SessionExerciseSubstitution, type SessionProgressNotification, type SessionRecapExerciseNote, type SessionRecapRecord, type SessionSetCorrection, type SessionShare, type SessionShareField, type SessionShareListResponse, type SessionTemporaryOverride, type SessionTrainingBlock, type SetAccountTimeZoneRequest, type SetActivityEntryAudienceRequest, type SetActivityEntryAudienceResponse, type SetActivityReactionRequest, type SetActivityReactionResponse, type SetKind, type SetLog, type SetLogValues, type Sex, type SharedRoutine, type SharedRoutineOwner, type SharedRoutineSearchResult, type SharedRoutineSource, type SharedRoutineSummary, type SharedSessionOwner, type SharedSessionRecap, type SharedWorkout, type SharedWorkoutExercise, type SharedWorkoutSet, type SkipOccurrenceRequest, type StarredExercise, type StarredExercisesResponse, type StartConversationRequest, type StartWorkoutRequest, type StartWorkoutResponse, type StreakAtRiskPushPayload, type StreakMilestoneActivity, type StreakMilestoneEventPayload, type SubstituteSessionExerciseRequest, type SubstituteSessionExerciseResponse, type SupabaseAuthResponse, type SupabaseAuthUser, type SupabaseMigrationResponse, TEMPORARY_OVERRIDE_KINDS, TEMPORARY_OVERRIDE_SOURCE_KINDS, TRAINING_BLOCK_COMPARISON_MAX_DAYS, TRAINING_DISCIPLINE_VALUES, TRAINING_EVENT_TYPES, TRAINING_EXPERIENCE_LEVEL_VALUES, TRAINING_GOAL_VALUES, TRAINING_PARTNERSHIP_STATUSES, TRAINING_PARTNERS_MAX, TRAINING_PARTNER_ENCOURAGEMENTS_PER_24_HOURS_MAX, TRAINING_PARTNER_ENCOURAGEMENT_KINDS, TRAINING_PARTNER_PERMISSION_KEYS, TRAINING_PARTNER_REQUESTS_PER_DAY_MAX, TRAINING_SIGNAL_DECLINES_MAX, TRAINING_SIGNAL_DECLINE_SESSIONS, TRAINING_SIGNAL_MIN_DECLINE, TRAINING_SIGNAL_MIN_RPE_SETS, TRAINING_SIGNAL_MIN_SHORT_SETS, TRAINING_SIGNAL_MIN_TARGET_SETS, TRAINING_SIGNAL_PERIOD_DAYS, TRAINING_SIGNAL_RPE_RISE, TRAINING_SIGNAL_SHORT_LIFTS_MAX, TRAINING_SIGNAL_SHORT_POINTS_RISE, TRAINING_SIGNAL_WORKOUT_DROP, type TemporaryOverrideKind, type TemporaryOverrideSource, type TemporaryOverrideSourceKind, type TrainingBlockComparisonResponse, type TrainingDiscipline, type TrainingEventType, type TrainingExperienceLevel, type TrainingGoal, type TrainingIdentity, type TrainingLocationPreference, type TrainingLocationPreferenceInput, type TrainingPartnerAchievementNotification, type TrainingPartnerAchievementPushPayload, type TrainingPartnerEncouragementKind, type TrainingPartnerEncouragementNotification, type TrainingPartnerPermissions, type TrainingPartnerScheduleDay, type TrainingPartnerScheduleResponse, type TrainingPartnerSessionNotification, type TrainingPartnerSessionPushPayload, type TrainingPartnership, type TrainingPartnershipStatus, type TrainingPartnershipsResponse, type TrainingReminderPreference, type TrainingReminderPushPayload, type TrainingSignalPeriod, type TrainingSignalsResponse, USERNAME_MAX_LENGTH, USERNAME_MIN_LENGTH, USERNAME_PATTERN_SOURCE, type UnreadConversationsResponse, type UpdateActivitySharingRequest, type UpdateCustomExerciseRequest, type UpdateDashboardLayoutRequest, type UpdateLocaleRequest, type UpdateMessagePermissionRequest, type UpdateNotificationPreferencesRequest, type UpdateOnboardingRequest, type UpdateProfileDiscoveryRequest, type UpdateProfilePrivacyRequest, type UpdateProfileRequest, type UpdateRoutineRequest, type UpdateRoutineVisibilityRequest, type UpdateSessionNotesRequest, type UpdateSessionNotesResponse, type UpdateTrainingPartnerPermissionsRequest, type UpdateWeekStartRequest, type UpsertBodyMeasurementRequest, type UpsertRoutineTrainingBlockRequest, type UpsertSetLogRequest, type UpsertSetLogResponse, type UserId, type UserProfile, type UserSearchResponse, type VolumeTrendPoint, type VolumeTrendQuery, type VolumeTrendResponse, type VolumeTrendSeries, WEEK_STARTS, WEIGHT_UNITS, WORKOUT_SESSION_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, countsAsWork, countsForProgression, customExerciseProblem, defaultWarmUpEquipment, deloadLengthDays, exerciseGroupLabel, exerciseGroupPosition, exerciseGroups, exerciseNameKey, feetInchesToCm, followWorkingLoad, goalSuggestionKey, hasOversizedGroup, inchesToCm, isApiErrorCode, isAppLocale, isBarLoaded, isBodyMeasurementDate, isDashboardSectionId, isDefaultDashboardLayout, isGoalSuggestionKey, isMessagePermission, isOnboardingStepId, isRealtimeTopic, isSetKind, isWeekStartsOn, isWithinQuietHours, latestBodyWeight, leadWorkingWeight, linearPeriodizationProblem, loggedWorkoutDateRange, lpAtStep, lpEstimate, lpLoadKg, lpPrescription, lpRecommendation, lpRirMidpoint, lpSampleRir, lpSetEstimateKg, lpStep, lpStoredSets, lpWorkingSets, matchesDeletionConfirmation, messageBodyLength, messageNote, normalizeDashboardLayout, normalizeExerciseLinks, normalizeExerciseName, normalizeMessageBody, normalizeSearchQuery, parseRealtimeEvent, primaryEquipment, requiredToFinish, resolveActiveTrainingBlock, resolveRoutinePlan, roundDownToIncrement, roundToIncrement, routineDayLabel, sameLpPosition, sessionCorrectionWindow, setKindOf, setLogValuesDiffer, startLinearPeriodization, summarizeBodyProgress, trainingBlockCovers, warmUpLoad, weekStartOf };
|
|
5381
|
+
export { ACCOUNT_EXPORT_FORMAT, ACCOUNT_EXPORT_VERSION, ACHIEVEMENT_CATEGORIES, ACHIEVEMENT_DEFINITIONS, ACTIVITY_CAPS, ACTIVITY_COMMENTS_PAGE_SIZE, ACTIVITY_COMMENTS_PER_DAY_MAX, ACTIVITY_COMMENT_MAX_LENGTH, ACTIVITY_DEFAULT_AUDIENCE, ACTIVITY_ENTRY_ID_MAX_LENGTH, ACTIVITY_FEED_FOLLOWED_MAX, ACTIVITY_PAGE_DEFAULT_LIMIT, ACTIVITY_PAGE_MAX_LIMIT, ACTIVITY_PREVIEW_AUDIENCES, ACTIVITY_REACTIONS, ACTIVITY_TYPES, ACTIVITY_TYPE_SECTIONS, API_ERROR_CODES, API_ERROR_MESSAGES, type AccountExportBodyMeasurement, type AccountExportGoal, type AccountExportMember, type AccountExportPersonalRecord, type AccountExportRoutine, type AccountExportScheduleOverride, type AccountExportTrainingEvent, type AccountExportTrainingLocation, type AccountExportV1, type AchievementActivity, type AchievementCategory, type AchievementCategoryProgress, type AchievementDefinition, type AchievementNotification, type AchievementUnlockedEventPayload, type AchievementsResponse, type ActivityAudience, type ActivityCap, type ActivityComment, type ActivityCommentNotification, type ActivityCommentSummary, type ActivityCommentsQuery, type ActivityCommentsResponse, type ActivityEntry, type ActivityEntrySharing, type ActivityFeedResponse, type ActivityLink, type ActivityPage, type ActivityPageQuery, type ActivityPreviewAudience, type ActivityPreviewQuery, type ActivityReaction, type ActivityReactionSummary, type ActivitySection, type ActivitySharingSettings, type ActivityType, type ApiErrorBody, type ApiErrorCode, type ApiErrorParams, type AppLocale, type AppNotification, BAR_CHOICES_KG, BAR_WARM_UP_STEPS, BLOCKED_MEMBERS_MAX, BODY_MEASUREMENT_FIELDS, BODY_MEASUREMENT_FIELD_KEYS, BODY_PROGRESS_RANGES, type BlockComparisonLift, type BlockComparisonLiftBest, type BlockComparisonPeriod, type BlockComparisonPeriodKind, type BlockedMember, type BlockedMembersResponse, type BodyFieldSummary, type BodyMeasurement, type BodyMeasurementField, type BodyMeasurementProblem, type BodyMeasurementValues, type BodyProgressRange, type BodyProgressResponse, type Brand, CLONE_ROUTINE_REFUSALS, CM_PER_INCH, COMEBACK_MIN_INACTIVE_DAYS, COMEBACK_RECOGNITION_LIMIT, COMEBACK_REQUIRED_ACTIVE_DAYS, COMEBACK_SESSION_LOOKBACK, COMEBACK_WINDOW_DAYS, CONVERSATIONS_PAGE_SIZE, CONVERSATION_BOXES, CUSTOM_EXERCISES_MAX, CUSTOM_EXERCISE_NAME_MAX, CUSTOM_EXERCISE_NOTE_MAX, CUSTOM_EXERCISE_PROBLEM_MESSAGES, CUSTOM_EXERCISE_REFUSALS, type CalendarDate, type CapturedMessage, type CloneRoutineRefusal, type CloneRoutineRequest, type ComebackActivity, type ComebackRecognition, type ComebackRecognitionSummary, type ContinueLinearBlockRequest, type ConversationBox, type ConversationMember, type ConversationMessage, type ConversationMessagesResponse, type ConversationRequest, type ConversationSummary, type ConversationsResponse, type CorrectSessionRequest, type CorrectSessionResponse, type CorrectSessionSetRequest, type CreateActivityCommentRequest, type CreateActivityCommentResponse, type CreateDeloadRequest, type CreateReportRequest, type CreateReportResponse, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type CreateRoutineVersionRequest, type CreateSessionShareRequest, type CustomExerciseInput, type CustomExerciseProblem, type CustomExerciseRefusal, DASHBOARD_SECTION_IDS, DEFAULT_DASHBOARD_LAYOUT, DEFAULT_LOCALE, DEFAULT_MESSAGE_PERMISSION, DEFAULT_WEEK_STARTS_ON, DELOAD_DEFAULT_DAYS, DELOAD_DEFAULT_LOAD_REDUCTION, DELOAD_DEFAULT_SET_MODE, DELOAD_LOAD_REDUCTIONS, DELOAD_MAX_DAYS, DELOAD_NOT_LIGHTER, DELOAD_SET_MODES, DELOAD_SUGGESTION_COOLDOWN_DAYS, DELOAD_SUGGESTION_EARLIER_DAYS, DELOAD_SUGGESTION_MIN_MARKED_TODAY, DELOAD_SUGGESTION_ROUTINE_DAYS, DELOAD_SUGGESTION_SIGNALS, type DashboardLayout, type DashboardLayoutEntry, type DashboardSectionId, type DeclineSignal, type DecliningLift, type DecliningLiftSession, type DeleteAccountRequest, type DeleteAccountResponse, type DeleteActivityCommentResponse, type DeletePushSubscriptionRequest, type DeloadLoadReduction, type DeloadOptions, type DeloadSetMode, type DeloadSuggestion, type DeloadSuggestionEvidence, type DeloadSuggestionResponse, type DeloadSuggestionSignal, type DeloadSuggestionUnavailableReason, type DiscoverableRoutine, type DismissGoalSuggestionRequest, EXERCISE_EQUIPMENT, EXERCISE_GROUP_KIND_LABELS, EXERCISE_GROUP_MAX, EXERCISE_MECHANICS, type EarnedAchievement, type EarnedPersonalRecord, type EffortPeriod, type EffortSignal, type Exercise, type ExerciseEquipment, type ExerciseGroup, type ExerciseGroupKind, type ExerciseGroupPosition, type ExerciseId, type ExerciseMechanic, type ExercisePerformanceHistoryQuery, type ExercisePerformanceHistoryResponse, type ExercisePerformancePrescription, type ExercisePerformancePrescriptionSet, type ExercisePerformanceSession, type ExercisePerformanceSet, type ExercisePerformanceSummary, type ExercisePlateau, type ExerciseStrengthSummary, type ExerciseStrengthTrendPoint, type ExerciseStrengthTrendQuery, type ExerciseStrengthTrendResponse, FEATURED_PROFILE_ITEMS_MAX, FEATURED_PROFILE_ITEM_KINDS, FEATURED_PROFILE_REFERENCE_MAX_LENGTH, FINISH_PAUSE_MINUTES, FOLLOW_SUGGESTIONS_DEFAULT_LIMIT, FOLLOW_SUGGESTIONS_MAX_LIMIT, FOLLOW_SUGGESTION_REASONS, type FeaturedProfileAchievementItem, type FeaturedProfileItem, type FeaturedProfileItemKind, type FeaturedProfileRankItem, type FeaturedProfileRecordItem, type FeaturedProfileRoutineItem, type FeaturedProfileSelection, type FeaturedProfileSelectionInput, type FeaturedProfileSelectionsResponse, type FinishStatus, type FinishWorkoutRequest, type FinishWorkoutResponse, type FollowSuggestion, type FollowSuggestionReason, type FollowSuggestionsResponse, GOAL_SUGGESTIONS_MAX, GOAL_SUGGESTION_DISMISSALS_MAX, GOAL_SUGGESTION_LIFT_MIN_SESSIONS, GOAL_SUGGESTION_LIFT_WINDOW_DAYS, GOAL_SUGGESTION_MIN_ACTIVE_WEEKS, GOAL_SUGGESTION_STRENGTH_STEP, GOAL_SUGGESTION_TYPES, GOAL_SUGGESTION_VOLUME_WEEKS, type GoalSuggestion, type GoalSuggestionBasis, type GoalSuggestionType, type GoalSuggestionsResponse, INCHES_PER_FOOT, type IsoDateString, LENGTH_UNITS, LIMITED_SHORTFALL_KG, 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, PLATEAU_MIN_DAYS_SINCE_BEST, PLATEAU_MIN_SESSIONS, PLATEAU_MIN_SESSIONS_MAX, PLATEAU_MIN_SESSIONS_MIN, PLATEAU_RECENT_DAYS, PLATEAU_WINDOW_DAYS, PLATE_SETS, PREFERRED_TRAINING_STYLE_VALUES, PROFILE_BIO_MAX_LENGTH, PROFILE_FAVORITE_EXERCISES_MAX, PROFILE_LOCATION_MAX_LENGTH, PROFILE_TRAINING_DISCIPLINES_MAX, PROFILE_TRAINING_GOALS_MAX, PROFILE_VISIBILITY_VALUES, PROGRESSION_SCHEMES, PROGRESS_TIMELINE_EVENT_TYPES, PUSH_PAYLOAD_KINDS, PUSH_SUBSCRIPTIONS_MAX, type PaginatedResponse, type PersonalGoalProgress, type PersonalGoalsResponse, type PersonalRecordActivity, type PersonalRecordEntry, type PersonalRecordKind, type PlannedReminder, type PlateLoadingItem, type PlateLoadingResult, type PlatePairInventory, type PlateSetChoice, type PlateauPreferences, type PlateauSet, type PlateausResponse, type PreferredTrainingStyle, type PreviousPerformanceResponse, type PreviousSessionRecap, type PreviousSetPerformance, type ProfileDiscoverySettings, type ProfileFavoriteExercise, type ProfilePrivacySettings, type ProfileViewerAccess, type ProfileVisibility, type ProgressTimelineEventType, type ProgressTimelineItem, type ProgressTimelinePersonalRecordItem, type ProgressTimelineProgressionItem, type ProgressTimelineQuery, type ProgressTimelineRecordPerformance, type ProgressTimelineRecordReason, type ProgressTimelineResponse, type ProgressTimelineSessionContext, type ProgressionActivity, type ProgressionChange, type ProgressionRule, type ProgressionScheme, type ProgressionSetChange, type PublicBodyMetrics, type PublicProfileAchievements, type PublicTrainingSummary, type PublicUserProfile, type PushPayload, type PushPayloadKind, type PushSubscriptionKeys, type PushSubscriptionSummary, type PushSubscriptionsResponse, type QuietHours, REALTIME_HEARTBEAT_MS, REALTIME_MAX_STREAMS_PER_MEMBER, REALTIME_MAX_STREAM_MS, REALTIME_STREAM_PATH, REALTIME_TOPICS, REALTIME_UNAVAILABLE_RETRY_SECONDS, RECENT_SEARCHES_MAX, RECENT_SEARCH_KINDS, RELATIONSHIP_LIST_DEFAULT_LIMIT, RELATIONSHIP_LIST_KINDS, RELATIONSHIP_LIST_MAX_LIMIT, RENAISSANCE_RANK_DEFINITIONS, REPORTS_PER_DAY_MAX, REPORT_DETAILS_MAX_LENGTH, REPORT_REASONS, REPORT_STATUSES, REPORT_SUBJECT_KINDS, REP_TYPES, RESERVED_USERNAMES, REST_ALERT_MAX_LEAD_SECONDS, REST_ALERT_MIN_LEAD_SECONDS, REST_ALERT_REFUSALS, ROUTINE_DAYS_MAX, ROUTINE_DAY_NAME_MAX, ROUTINE_DISCOVERY_DEFAULT_LIMIT, ROUTINE_DISCOVERY_MAX_LIMIT, ROUTINE_DISCOVERY_SCAN_LIMIT, ROUTINE_DURATION_BANDS, ROUTINE_DURATION_BAND_MAX_MINUTES, ROUTINE_SCHEDULE_MODES, ROUTINE_SHARE_MAX_ACTIVE_LINKS, ROUTINE_TRAINING_BLOCKS_MAX, ROUTINE_TRAINING_BLOCK_NAME_MAX, ROUTINE_TRAINING_BLOCK_REVISIONS_MAX, ROUTINE_TRAINING_BLOCK_SOURCE_KINDS, ROUTINE_TRAINING_BLOCK_STATES, ROUTINE_VERSIONS_MAX, ROUTINE_VERSION_KINDS, ROUTINE_VERSION_NAME_MAX, ROUTINE_VISIBILITY_VALUES, type RealtimeEvent, type RealtimeTopic, type RecentActivityEntry, type RecentExercise, type RecentRoutine, type RecentSearchItem, type RecentSearchKind, type RecentSearchesResponse, type RecordRecentSearchRequest, type RegisterPushSubscriptionRequest, type RelationshipListKind, type RelationshipListQuery, type RelationshipListResponse, type RelationshipMember, type 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, inchesToCm, isApiErrorCode, isAppLocale, isBarLoaded, isBodyMeasurementDate, isDashboardSectionId, isDefaultDashboardLayout, isGoalSuggestionKey, isMessagePermission, isOnboardingStepId, isRealtimeTopic, isSetKind, isWeekStartsOn, isWithinQuietHours, latestBodyWeight, leadWorkingWeight, linearPeriodizationProblem, loggedWorkoutDateRange, lpAtStep, lpEstimate, lpLoadKg, lpPrescription, lpRecommendation, lpRirMidpoint, lpSampleRir, lpSetEstimateKg, lpStep, lpStoredSets, lpWorkingSets, matchesDeletionConfirmation, messageBodyLength, messageNote, messageProgressId, normalizeDashboardLayout, normalizeExerciseLinks, normalizeExerciseName, normalizeMessageBody, normalizeSearchQuery, parseRealtimeEvent, primaryEquipment, requiredToFinish, resolveActiveTrainingBlock, resolveRoutinePlan, roundDownToIncrement, roundToIncrement, routineDayLabel, sameLpPosition, sessionCorrectionWindow, setKindOf, setLogValuesDiffer, startLinearPeriodization, summarizeBodyProgress, trainingBlockCovers, warmUpLoad, weekStartOf };
|
package/dist/index.d.ts
CHANGED
|
@@ -1339,6 +1339,11 @@ type FinishStatus = Extract<WorkoutSessionStatus, 'COMPLETED' | 'ABORTED'>;
|
|
|
1339
1339
|
interface FinishWorkoutRequest {
|
|
1340
1340
|
status: FinishStatus;
|
|
1341
1341
|
notes?: string;
|
|
1342
|
+
/**
|
|
1343
|
+
* LIVE-24: when the workout ended; now when absent. Bounded by
|
|
1344
|
+
* `earliestWorkoutEnd` and `finishEndTime`.
|
|
1345
|
+
*/
|
|
1346
|
+
endedAt?: IsoDateString;
|
|
1342
1347
|
}
|
|
1343
1348
|
type ProgressionRule = 'ALL_SETS_REACHED_TARGET' | 'SET_REACHED_TARGET';
|
|
1344
1349
|
interface ProgressionSetChange {
|
|
@@ -1998,7 +2003,7 @@ declare function normalizeMessageBody(body: string): string | null;
|
|
|
1998
2003
|
* MSG-07: what a message, its text left empty or not, may carry -- one of
|
|
1999
2004
|
* them, with an optional note. MSG-10 adds a finished workout.
|
|
2000
2005
|
*/
|
|
2001
|
-
declare const MESSAGE_ATTACHMENT_KINDS: readonly ["ROUTINE", "WORKOUT", "RECORD", "ACHIEVEMENT", "COMEBACK"];
|
|
2006
|
+
declare const MESSAGE_ATTACHMENT_KINDS: readonly ["ROUTINE", "WORKOUT", "RECORD", "ACHIEVEMENT", "COMEBACK", "PROGRESS"];
|
|
2002
2007
|
type MessageAttachmentKind = (typeof MESSAGE_ATTACHMENT_KINDS)[number];
|
|
2003
2008
|
/**
|
|
2004
2009
|
* MSG-07: a routine in a message, as it is now. `routine` is null once it is
|
|
@@ -2070,7 +2075,37 @@ interface MessageComebackAttachment {
|
|
|
2070
2075
|
kind: "COMEBACK";
|
|
2071
2076
|
comeback: MessageComebackSummary | null;
|
|
2072
2077
|
}
|
|
2073
|
-
|
|
2078
|
+
/**
|
|
2079
|
+
* MSG-14: a month's progress is named `progress:YYYY-MM` -- one calendar
|
|
2080
|
+
* month in the sender's time zone.
|
|
2081
|
+
*/
|
|
2082
|
+
declare const MESSAGE_PROGRESS_ID: RegExp;
|
|
2083
|
+
declare function messageProgressId(month: string): string;
|
|
2084
|
+
/**
|
|
2085
|
+
* MSG-14: a month of training in a card -- as the sender's stored training
|
|
2086
|
+
* reads now: how many workouts, on how many days, the completed sets, the
|
|
2087
|
+
* volume and the personal records. Nothing of any single workout, routine or
|
|
2088
|
+
* exercise, and no comparison.
|
|
2089
|
+
*/
|
|
2090
|
+
interface MessageProgressSummary {
|
|
2091
|
+
/** `progress:YYYY-MM`. */
|
|
2092
|
+
id: string;
|
|
2093
|
+
/** `YYYY-MM`. */
|
|
2094
|
+
month: string;
|
|
2095
|
+
/** False while the month is not over in the sender's time zone. */
|
|
2096
|
+
complete: boolean;
|
|
2097
|
+
workouts: number;
|
|
2098
|
+
trainingDays: number;
|
|
2099
|
+
completedSets: number;
|
|
2100
|
+
volumeKg: number;
|
|
2101
|
+
personalRecords: number;
|
|
2102
|
+
}
|
|
2103
|
+
/** MSG-14: `progress` is null while the sender's analytics are not ready. */
|
|
2104
|
+
interface MessageProgressAttachment {
|
|
2105
|
+
kind: "PROGRESS";
|
|
2106
|
+
progress: MessageProgressSummary | null;
|
|
2107
|
+
}
|
|
2108
|
+
type MessageAttachment = MessageRoutineAttachment | MessageWorkoutAttachment | MessageRecordAttachment | MessageAchievementAttachment | MessageComebackAttachment | MessageProgressAttachment;
|
|
2074
2109
|
/** MSG-10: one completed set of a shared workout. Never its RPE. */
|
|
2075
2110
|
interface SharedWorkoutSet {
|
|
2076
2111
|
setNumber: number;
|
|
@@ -2247,6 +2282,8 @@ interface StartConversationRequest {
|
|
|
2247
2282
|
achievementId?: string;
|
|
2248
2283
|
/** MSG-13: one of the sender's own comebacks, by its recognition id. */
|
|
2249
2284
|
comebackId?: string;
|
|
2285
|
+
/** MSG-14: one month of the sender's own training, `progress:YYYY-MM`. */
|
|
2286
|
+
progressId?: string;
|
|
2250
2287
|
}
|
|
2251
2288
|
/** POST /conversations/:id/messages. */
|
|
2252
2289
|
interface SendMessageRequest {
|
|
@@ -2262,6 +2299,8 @@ interface SendMessageRequest {
|
|
|
2262
2299
|
achievementId?: string;
|
|
2263
2300
|
/** MSG-13: one of the sender's own comebacks, by its recognition id. */
|
|
2264
2301
|
comebackId?: string;
|
|
2302
|
+
/** MSG-14: one month of the sender's own training, `progress:YYYY-MM`. */
|
|
2303
|
+
progressId?: string;
|
|
2265
2304
|
}
|
|
2266
2305
|
interface SendMessageResponse {
|
|
2267
2306
|
conversation: ConversationSummary;
|
|
@@ -2510,6 +2549,11 @@ interface CapturedMessage {
|
|
|
2510
2549
|
* no longer available, or null when it carried none.
|
|
2511
2550
|
*/
|
|
2512
2551
|
comebackId?: string | null;
|
|
2552
|
+
/**
|
|
2553
|
+
* MSG-14: the month of training it carried (`progress:YYYY-MM`), empty when
|
|
2554
|
+
* it was no longer available, or null when it carried none.
|
|
2555
|
+
*/
|
|
2556
|
+
progressId?: string | null;
|
|
2513
2557
|
createdAt: IsoDateString;
|
|
2514
2558
|
}
|
|
2515
2559
|
/**
|
|
@@ -3872,6 +3916,52 @@ interface DeleteActivityCommentResponse {
|
|
|
3872
3916
|
summary: ActivityCommentSummary;
|
|
3873
3917
|
}
|
|
3874
3918
|
|
|
3919
|
+
/**
|
|
3920
|
+
* LIVE-24. When a workout ended. Finishing used to stamp the moment Finish was
|
|
3921
|
+
* pressed, so a workout finished hours after its last set read as hours long.
|
|
3922
|
+
* Finish now takes the end time, and a finished workout's end time can be
|
|
3923
|
+
* moved earlier as a LIVE-17 correction. One rule bounds both, so the page
|
|
3924
|
+
* offers exactly what the server accepts.
|
|
3925
|
+
*/
|
|
3926
|
+
/**
|
|
3927
|
+
* Finish asks when the workout ended once its last set was saved this long
|
|
3928
|
+
* ago; sooner than that it finishes at once, as it always has.
|
|
3929
|
+
*/
|
|
3930
|
+
declare const FINISH_PAUSE_MINUTES = 30;
|
|
3931
|
+
/**
|
|
3932
|
+
* An end time this far ahead of the server's clock is taken as now: a phone's
|
|
3933
|
+
* clock running slightly fast must not refuse a finish.
|
|
3934
|
+
*/
|
|
3935
|
+
declare const WORKOUT_END_CLOCK_SLACK_SECONDS = 120;
|
|
3936
|
+
type Instant = IsoDateString | Date;
|
|
3937
|
+
/**
|
|
3938
|
+
* The earliest a workout can end: its start, or its last completed set when
|
|
3939
|
+
* that is later. A set ticked by a correction was stamped with the end itself
|
|
3940
|
+
* (`movesWithEnd`), so it moves with the end rather than holding it back.
|
|
3941
|
+
*/
|
|
3942
|
+
declare function earliestWorkoutEnd(input: {
|
|
3943
|
+
startedAt: Instant;
|
|
3944
|
+
completedAts: Array<Instant | null | undefined>;
|
|
3945
|
+
movesWithEnd?: Instant | null;
|
|
3946
|
+
}): Date;
|
|
3947
|
+
/**
|
|
3948
|
+
* The end a finish records: now when none is given, the given time when it
|
|
3949
|
+
* falls between the earliest end and now (a little past now reads as now),
|
|
3950
|
+
* and null when it falls outside them.
|
|
3951
|
+
*/
|
|
3952
|
+
declare function finishEndTime(requested: Instant | null | undefined, earliest: Date, now?: Date): Date | null;
|
|
3953
|
+
/**
|
|
3954
|
+
* A corrected end only moves earlier: between the earliest end and the end
|
|
3955
|
+
* recorded. Null when it falls outside them.
|
|
3956
|
+
*/
|
|
3957
|
+
declare function correctedEndTime(requested: Instant, earliest: Date, endedAt: Instant): Date | null;
|
|
3958
|
+
/**
|
|
3959
|
+
* Whether Finish should ask when the workout ended: the last saved activity
|
|
3960
|
+
* (the last set ticked, else the start) is at least `FINISH_PAUSE_MINUTES`
|
|
3961
|
+
* old.
|
|
3962
|
+
*/
|
|
3963
|
+
declare function finishNeedsEndTime(lastActivityAt: Instant, now?: Date): boolean;
|
|
3964
|
+
|
|
3875
3965
|
/**
|
|
3876
3966
|
* LIVE-17. Correcting a finished workout: the owner fixes a mistyped weight,
|
|
3877
3967
|
* reps or RPE, or a set left unticked, and everything the workout fed --
|
|
@@ -3915,11 +4005,19 @@ interface SessionSetCorrection {
|
|
|
3915
4005
|
before: SetLogValues;
|
|
3916
4006
|
after: SetLogValues;
|
|
3917
4007
|
}
|
|
4008
|
+
/** LIVE-24: the workout's end time, as it was and as it became. */
|
|
4009
|
+
interface SessionEndTimeCorrection {
|
|
4010
|
+
before: IsoDateString;
|
|
4011
|
+
after: IsoDateString;
|
|
4012
|
+
}
|
|
3918
4013
|
/** One saved correction. Never edited or deleted once written. */
|
|
3919
4014
|
interface SessionCorrection {
|
|
3920
4015
|
id: string;
|
|
3921
4016
|
createdAt: IsoDateString;
|
|
4017
|
+
/** Empty when only the end time was corrected. */
|
|
3922
4018
|
changes: SessionSetCorrection[];
|
|
4019
|
+
/** LIVE-24: set when the correction moved the end time; absent before it. */
|
|
4020
|
+
endedAt?: SessionEndTimeCorrection | null;
|
|
3923
4021
|
}
|
|
3924
4022
|
type SessionCorrectionClosedReason = "NOT_COMPLETED" | "NOT_LATEST" | "LATER_SESSION" | "WINDOW_PASSED" | "LIMIT_REACHED"
|
|
3925
4023
|
/** LIVE-23: a workout logged later is removed and logged again instead. */
|
|
@@ -3948,6 +4046,12 @@ interface CorrectSessionSetRequest extends SetLogValues {
|
|
|
3948
4046
|
*/
|
|
3949
4047
|
interface CorrectSessionRequest {
|
|
3950
4048
|
sets: CorrectSessionSetRequest[];
|
|
4049
|
+
/**
|
|
4050
|
+
* LIVE-24: when the workout ended, only ever earlier than recorded and never
|
|
4051
|
+
* before its start or last set (`correctedEndTime`). Omitted, or equal to
|
|
4052
|
+
* the recorded end, it is left as it is.
|
|
4053
|
+
*/
|
|
4054
|
+
endedAt?: IsoDateString;
|
|
3951
4055
|
}
|
|
3952
4056
|
interface CorrectSessionResponse {
|
|
3953
4057
|
correction: SessionCorrection;
|
|
@@ -4892,6 +4996,8 @@ interface AccountExportV1 {
|
|
|
4892
4996
|
achievementId?: string;
|
|
4893
4997
|
/** MSG-13: the member's own comeback the message shared, by its id. */
|
|
4894
4998
|
comebackId?: string;
|
|
4999
|
+
/** MSG-14: the month of the member's training the message shared. */
|
|
5000
|
+
progressId?: string;
|
|
4895
5001
|
createdAt: IsoDateString;
|
|
4896
5002
|
}>;
|
|
4897
5003
|
reportsFiled: Array<{
|
|
@@ -5013,6 +5119,7 @@ declare const API_ERROR_MESSAGES: {
|
|
|
5013
5119
|
readonly SESSION_BLOCK_NOT_IN_FORCE: "That training block is not in force today; start a day of the routine";
|
|
5014
5120
|
readonly SESSION_FINISHED: "Cannot modify set logs for a finished session";
|
|
5015
5121
|
readonly SESSION_ALREADY_FINISHED: "Session already finished with a different status";
|
|
5122
|
+
readonly WORKOUT_END_TIME_RANGE: "A workout ends after it started and after its last set, and not in the future";
|
|
5016
5123
|
readonly EXTRA_SETS_MAX: "An exercise can take at most {max} extra sets";
|
|
5017
5124
|
readonly EXTRA_SET_NOT_NEXT: "Extra sets are added after the last set";
|
|
5018
5125
|
readonly PRESCRIBED_SET_NOT_REMOVABLE: "A prescribed set cannot be removed";
|
|
@@ -5047,6 +5154,7 @@ declare const API_ERROR_MESSAGES: {
|
|
|
5047
5154
|
readonly CORRECTION_COMPLETED_NEEDS_REP: "A completed set needs at least one rep";
|
|
5048
5155
|
readonly CORRECTION_NOTHING_TO_CORRECT: "Nothing to correct: every set already reads that way";
|
|
5049
5156
|
readonly CORRECTION_KEEPS_ONE_SET: "A finished workout keeps at least one completed set";
|
|
5157
|
+
readonly CORRECTION_END_TIME_RANGE: "A workout's end can only move earlier, and not before it started or before its last set";
|
|
5050
5158
|
readonly SESSION_SHARE_NOTHING_CHOSEN: "Choose at least one part of the recap to share";
|
|
5051
5159
|
readonly SESSION_SHARE_NOT_COMPLETED: "Only completed sessions can be shared";
|
|
5052
5160
|
readonly SESSION_SHARE_LINKS_MAX: "A session can have at most {max} active share links";
|
|
@@ -5078,7 +5186,7 @@ declare const API_ERROR_MESSAGES: {
|
|
|
5078
5186
|
readonly ENCOURAGEMENT_RETRY: "Please retry the encouragement.";
|
|
5079
5187
|
readonly MESSAGE_SELF: "You cannot message yourself";
|
|
5080
5188
|
readonly MESSAGE_LENGTH: "A message must not be empty and may be at most {max} characters.";
|
|
5081
|
-
readonly MESSAGE_ONE_ATTACHMENT: "A message can carry one routine, one workout, one record, one milestone or one
|
|
5189
|
+
readonly MESSAGE_ONE_ATTACHMENT: "A message can carry one routine, one workout, one record, one milestone, one comeback or one month of progress.";
|
|
5082
5190
|
readonly MESSAGES_PER_MINUTE: "You can send at most {max} messages a minute.";
|
|
5083
5191
|
readonly CONVERSATIONS_PER_DAY: "You can start at most {max} new conversations a day.";
|
|
5084
5192
|
readonly MESSAGE_NOT_ADMITTED: "This member is not taking messages from you.";
|
|
@@ -5270,4 +5378,4 @@ declare function isRealtimeTopic(value: unknown): value is RealtimeTopic;
|
|
|
5270
5378
|
/** The event in one `data:` payload, or null for anything else. */
|
|
5271
5379
|
declare function parseRealtimeEvent(data: string): RealtimeEvent | null;
|
|
5272
5380
|
|
|
5273
|
-
export { ACCOUNT_EXPORT_FORMAT, ACCOUNT_EXPORT_VERSION, ACHIEVEMENT_CATEGORIES, ACHIEVEMENT_DEFINITIONS, ACTIVITY_CAPS, ACTIVITY_COMMENTS_PAGE_SIZE, ACTIVITY_COMMENTS_PER_DAY_MAX, ACTIVITY_COMMENT_MAX_LENGTH, ACTIVITY_DEFAULT_AUDIENCE, ACTIVITY_ENTRY_ID_MAX_LENGTH, ACTIVITY_FEED_FOLLOWED_MAX, ACTIVITY_PAGE_DEFAULT_LIMIT, ACTIVITY_PAGE_MAX_LIMIT, ACTIVITY_PREVIEW_AUDIENCES, ACTIVITY_REACTIONS, ACTIVITY_TYPES, ACTIVITY_TYPE_SECTIONS, API_ERROR_CODES, API_ERROR_MESSAGES, type AccountExportBodyMeasurement, type AccountExportGoal, type AccountExportMember, type AccountExportPersonalRecord, type AccountExportRoutine, type AccountExportScheduleOverride, type AccountExportTrainingEvent, type AccountExportTrainingLocation, type AccountExportV1, type AchievementActivity, type AchievementCategory, type AchievementCategoryProgress, type AchievementDefinition, type AchievementNotification, type AchievementUnlockedEventPayload, type AchievementsResponse, type ActivityAudience, type ActivityCap, type ActivityComment, type ActivityCommentNotification, type ActivityCommentSummary, type ActivityCommentsQuery, type ActivityCommentsResponse, type ActivityEntry, type ActivityEntrySharing, type ActivityFeedResponse, type ActivityLink, type ActivityPage, type ActivityPageQuery, type ActivityPreviewAudience, type ActivityPreviewQuery, type ActivityReaction, type ActivityReactionSummary, type ActivitySection, type ActivitySharingSettings, type ActivityType, type ApiErrorBody, type ApiErrorCode, type ApiErrorParams, type AppLocale, type AppNotification, BAR_CHOICES_KG, BAR_WARM_UP_STEPS, BLOCKED_MEMBERS_MAX, BODY_MEASUREMENT_FIELDS, BODY_MEASUREMENT_FIELD_KEYS, BODY_PROGRESS_RANGES, type BlockComparisonLift, type BlockComparisonLiftBest, type BlockComparisonPeriod, type BlockComparisonPeriodKind, type BlockedMember, type BlockedMembersResponse, type BodyFieldSummary, type BodyMeasurement, type BodyMeasurementField, type BodyMeasurementProblem, type BodyMeasurementValues, type BodyProgressRange, type BodyProgressResponse, type Brand, CLONE_ROUTINE_REFUSALS, CM_PER_INCH, COMEBACK_MIN_INACTIVE_DAYS, COMEBACK_RECOGNITION_LIMIT, COMEBACK_REQUIRED_ACTIVE_DAYS, COMEBACK_SESSION_LOOKBACK, COMEBACK_WINDOW_DAYS, CONVERSATIONS_PAGE_SIZE, CONVERSATION_BOXES, CUSTOM_EXERCISES_MAX, CUSTOM_EXERCISE_NAME_MAX, CUSTOM_EXERCISE_NOTE_MAX, CUSTOM_EXERCISE_PROBLEM_MESSAGES, CUSTOM_EXERCISE_REFUSALS, type CalendarDate, type CapturedMessage, type CloneRoutineRefusal, type CloneRoutineRequest, type ComebackActivity, type ComebackRecognition, type ComebackRecognitionSummary, type ContinueLinearBlockRequest, type ConversationBox, type ConversationMember, type ConversationMessage, type ConversationMessagesResponse, type ConversationRequest, type ConversationSummary, type ConversationsResponse, type CorrectSessionRequest, type CorrectSessionResponse, type CorrectSessionSetRequest, type CreateActivityCommentRequest, type CreateActivityCommentResponse, type CreateDeloadRequest, type CreateReportRequest, type CreateReportResponse, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type CreateRoutineVersionRequest, type CreateSessionShareRequest, type CustomExerciseInput, type CustomExerciseProblem, type CustomExerciseRefusal, DASHBOARD_SECTION_IDS, DEFAULT_DASHBOARD_LAYOUT, DEFAULT_LOCALE, DEFAULT_MESSAGE_PERMISSION, DEFAULT_WEEK_STARTS_ON, DELOAD_DEFAULT_DAYS, DELOAD_DEFAULT_LOAD_REDUCTION, DELOAD_DEFAULT_SET_MODE, DELOAD_LOAD_REDUCTIONS, DELOAD_MAX_DAYS, DELOAD_NOT_LIGHTER, DELOAD_SET_MODES, DELOAD_SUGGESTION_COOLDOWN_DAYS, DELOAD_SUGGESTION_EARLIER_DAYS, DELOAD_SUGGESTION_MIN_MARKED_TODAY, DELOAD_SUGGESTION_ROUTINE_DAYS, DELOAD_SUGGESTION_SIGNALS, type DashboardLayout, type DashboardLayoutEntry, type DashboardSectionId, type DeclineSignal, type DecliningLift, type DecliningLiftSession, type DeleteAccountRequest, type DeleteAccountResponse, type DeleteActivityCommentResponse, type DeletePushSubscriptionRequest, type DeloadLoadReduction, type DeloadOptions, type DeloadSetMode, type DeloadSuggestion, type DeloadSuggestionEvidence, type DeloadSuggestionResponse, type DeloadSuggestionSignal, type DeloadSuggestionUnavailableReason, type DiscoverableRoutine, type DismissGoalSuggestionRequest, EXERCISE_EQUIPMENT, EXERCISE_GROUP_KIND_LABELS, EXERCISE_GROUP_MAX, EXERCISE_MECHANICS, type EarnedAchievement, type EarnedPersonalRecord, type EffortPeriod, type EffortSignal, type Exercise, type ExerciseEquipment, type ExerciseGroup, type ExerciseGroupKind, type ExerciseGroupPosition, type ExerciseId, type ExerciseMechanic, type ExercisePerformanceHistoryQuery, type ExercisePerformanceHistoryResponse, type ExercisePerformancePrescription, type ExercisePerformancePrescriptionSet, type ExercisePerformanceSession, type ExercisePerformanceSet, type ExercisePerformanceSummary, type ExercisePlateau, type ExerciseStrengthSummary, type ExerciseStrengthTrendPoint, type ExerciseStrengthTrendQuery, type ExerciseStrengthTrendResponse, FEATURED_PROFILE_ITEMS_MAX, FEATURED_PROFILE_ITEM_KINDS, FEATURED_PROFILE_REFERENCE_MAX_LENGTH, FOLLOW_SUGGESTIONS_DEFAULT_LIMIT, FOLLOW_SUGGESTIONS_MAX_LIMIT, FOLLOW_SUGGESTION_REASONS, type FeaturedProfileAchievementItem, type FeaturedProfileItem, type FeaturedProfileItemKind, type FeaturedProfileRankItem, type FeaturedProfileRecordItem, type FeaturedProfileRoutineItem, type FeaturedProfileSelection, type FeaturedProfileSelectionInput, type FeaturedProfileSelectionsResponse, type FinishStatus, type FinishWorkoutRequest, type FinishWorkoutResponse, type FollowSuggestion, type FollowSuggestionReason, type FollowSuggestionsResponse, GOAL_SUGGESTIONS_MAX, GOAL_SUGGESTION_DISMISSALS_MAX, GOAL_SUGGESTION_LIFT_MIN_SESSIONS, GOAL_SUGGESTION_LIFT_WINDOW_DAYS, GOAL_SUGGESTION_MIN_ACTIVE_WEEKS, GOAL_SUGGESTION_STRENGTH_STEP, GOAL_SUGGESTION_TYPES, GOAL_SUGGESTION_VOLUME_WEEKS, type GoalSuggestion, type GoalSuggestionBasis, type GoalSuggestionType, type GoalSuggestionsResponse, INCHES_PER_FOOT, type IsoDateString, LENGTH_UNITS, LIMITED_SHORTFALL_KG, 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_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 MessagePushPayload, type MessageRecordAttachment, type MessageRecordSummary, type MessageRoutineAttachment, type MessageWorkoutAttachment, type MessageWorkoutSummary, type ModerationActionKind, type ModerationActionRecord, type ModerationHistoryQuery, type ModerationHistoryResponse, type ModerationQueueQuery, type ModerationQueueResponse, type ModerationReport, type ModeratorState, type MoveOccurrenceRequest, type MovementPattern, type MuscleGroup, type MuscleGroupHeatmapQuery, type MuscleGroupHeatmapResponse, type MuscleGroupHeatmapValue, type MuscleGroupHeatmapWeek, type MuscleVolumeTrendSeries, NEW_CONVERSATIONS_PER_DAY_MAX, NOTIFICATIONS_LIST_LIMIT, NOTIFICATIONS_LOOKBACK_DAYS, NOTIFICATIONS_PAGE_SIZE, NOTIFICATIONS_PAGE_SIZE_MAX, NOTIFICATIONS_RETENTION_DAYS, NOTIFICATION_CATEGORIES, NOTIFICATION_KINDS, type NewFollowerNotification, type NotificationCategory, type NotificationKind, type NotificationPreferences, type NotificationPreferencesResponse, type NotificationsQuery, type NotificationsResponse, ONBOARDING_STEPS_MAX, ONBOARDING_STEP_ID_PATTERN_SOURCE, ONBOARDING_VERSION_MAX, OTHER_WARM_UP_STEPS, type OnboardingState, type OwnActivityEntry, type OwnActivityResponse, PLATEAU_MIN_DAYS_SINCE_BEST, PLATEAU_MIN_SESSIONS, PLATEAU_MIN_SESSIONS_MAX, PLATEAU_MIN_SESSIONS_MIN, PLATEAU_RECENT_DAYS, PLATEAU_WINDOW_DAYS, PLATE_SETS, PREFERRED_TRAINING_STYLE_VALUES, PROFILE_BIO_MAX_LENGTH, PROFILE_FAVORITE_EXERCISES_MAX, PROFILE_LOCATION_MAX_LENGTH, PROFILE_TRAINING_DISCIPLINES_MAX, PROFILE_TRAINING_GOALS_MAX, PROFILE_VISIBILITY_VALUES, PROGRESSION_SCHEMES, PROGRESS_TIMELINE_EVENT_TYPES, PUSH_PAYLOAD_KINDS, PUSH_SUBSCRIPTIONS_MAX, type PaginatedResponse, type PersonalGoalProgress, type PersonalGoalsResponse, type PersonalRecordActivity, type PersonalRecordEntry, type PersonalRecordKind, type PlannedReminder, type PlateLoadingItem, type PlateLoadingResult, type PlatePairInventory, type PlateSetChoice, type PlateauPreferences, type PlateauSet, type PlateausResponse, type PreferredTrainingStyle, type PreviousPerformanceResponse, type PreviousSessionRecap, type PreviousSetPerformance, type ProfileDiscoverySettings, type ProfileFavoriteExercise, type ProfilePrivacySettings, type ProfileViewerAccess, type ProfileVisibility, type ProgressTimelineEventType, type ProgressTimelineItem, type ProgressTimelinePersonalRecordItem, type ProgressTimelineProgressionItem, type ProgressTimelineQuery, type ProgressTimelineRecordPerformance, type ProgressTimelineRecordReason, type ProgressTimelineResponse, type ProgressTimelineSessionContext, type ProgressionActivity, type ProgressionChange, type ProgressionRule, type ProgressionScheme, type ProgressionSetChange, type PublicBodyMetrics, type PublicProfileAchievements, type PublicTrainingSummary, type PublicUserProfile, type PushPayload, type PushPayloadKind, type PushSubscriptionKeys, type PushSubscriptionSummary, type PushSubscriptionsResponse, type QuietHours, REALTIME_HEARTBEAT_MS, REALTIME_MAX_STREAMS_PER_MEMBER, REALTIME_MAX_STREAM_MS, REALTIME_STREAM_PATH, REALTIME_TOPICS, REALTIME_UNAVAILABLE_RETRY_SECONDS, RECENT_SEARCHES_MAX, RECENT_SEARCH_KINDS, RELATIONSHIP_LIST_DEFAULT_LIMIT, RELATIONSHIP_LIST_KINDS, RELATIONSHIP_LIST_MAX_LIMIT, RENAISSANCE_RANK_DEFINITIONS, REPORTS_PER_DAY_MAX, REPORT_DETAILS_MAX_LENGTH, REPORT_REASONS, REPORT_STATUSES, REPORT_SUBJECT_KINDS, REP_TYPES, RESERVED_USERNAMES, REST_ALERT_MAX_LEAD_SECONDS, REST_ALERT_MIN_LEAD_SECONDS, REST_ALERT_REFUSALS, ROUTINE_DAYS_MAX, ROUTINE_DAY_NAME_MAX, ROUTINE_DISCOVERY_DEFAULT_LIMIT, ROUTINE_DISCOVERY_MAX_LIMIT, ROUTINE_DISCOVERY_SCAN_LIMIT, ROUTINE_DURATION_BANDS, ROUTINE_DURATION_BAND_MAX_MINUTES, ROUTINE_SCHEDULE_MODES, ROUTINE_SHARE_MAX_ACTIVE_LINKS, ROUTINE_TRAINING_BLOCKS_MAX, ROUTINE_TRAINING_BLOCK_NAME_MAX, ROUTINE_TRAINING_BLOCK_REVISIONS_MAX, ROUTINE_TRAINING_BLOCK_SOURCE_KINDS, ROUTINE_TRAINING_BLOCK_STATES, ROUTINE_VERSIONS_MAX, ROUTINE_VERSION_KINDS, ROUTINE_VERSION_NAME_MAX, ROUTINE_VISIBILITY_VALUES, type RealtimeEvent, type RealtimeTopic, type RecentActivityEntry, type RecentExercise, type RecentRoutine, type RecentSearchItem, type RecentSearchKind, type RecentSearchesResponse, type RecordRecentSearchRequest, type RegisterPushSubscriptionRequest, type RelationshipListKind, type RelationshipListQuery, type RelationshipListResponse, type RelationshipMember, type 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 SessionExerciseNote, type SessionExerciseSubstitution, type SessionProgressNotification, type SessionRecapExerciseNote, type SessionRecapRecord, type SessionSetCorrection, type SessionShare, type SessionShareField, type SessionShareListResponse, type SessionTemporaryOverride, type SessionTrainingBlock, type SetAccountTimeZoneRequest, type SetActivityEntryAudienceRequest, type SetActivityEntryAudienceResponse, type SetActivityReactionRequest, type SetActivityReactionResponse, type SetKind, type SetLog, type SetLogValues, type Sex, type SharedRoutine, type SharedRoutineOwner, type SharedRoutineSearchResult, type SharedRoutineSource, type SharedRoutineSummary, type SharedSessionOwner, type SharedSessionRecap, type SharedWorkout, type SharedWorkoutExercise, type SharedWorkoutSet, type SkipOccurrenceRequest, type StarredExercise, type StarredExercisesResponse, type StartConversationRequest, type StartWorkoutRequest, type StartWorkoutResponse, type StreakAtRiskPushPayload, type StreakMilestoneActivity, type StreakMilestoneEventPayload, type SubstituteSessionExerciseRequest, type SubstituteSessionExerciseResponse, type SupabaseAuthResponse, type SupabaseAuthUser, type SupabaseMigrationResponse, TEMPORARY_OVERRIDE_KINDS, TEMPORARY_OVERRIDE_SOURCE_KINDS, TRAINING_BLOCK_COMPARISON_MAX_DAYS, TRAINING_DISCIPLINE_VALUES, TRAINING_EVENT_TYPES, TRAINING_EXPERIENCE_LEVEL_VALUES, TRAINING_GOAL_VALUES, TRAINING_PARTNERSHIP_STATUSES, TRAINING_PARTNERS_MAX, TRAINING_PARTNER_ENCOURAGEMENTS_PER_24_HOURS_MAX, TRAINING_PARTNER_ENCOURAGEMENT_KINDS, TRAINING_PARTNER_PERMISSION_KEYS, TRAINING_PARTNER_REQUESTS_PER_DAY_MAX, TRAINING_SIGNAL_DECLINES_MAX, TRAINING_SIGNAL_DECLINE_SESSIONS, TRAINING_SIGNAL_MIN_DECLINE, TRAINING_SIGNAL_MIN_RPE_SETS, TRAINING_SIGNAL_MIN_SHORT_SETS, TRAINING_SIGNAL_MIN_TARGET_SETS, TRAINING_SIGNAL_PERIOD_DAYS, TRAINING_SIGNAL_RPE_RISE, TRAINING_SIGNAL_SHORT_LIFTS_MAX, TRAINING_SIGNAL_SHORT_POINTS_RISE, TRAINING_SIGNAL_WORKOUT_DROP, type TemporaryOverrideKind, type TemporaryOverrideSource, type TemporaryOverrideSourceKind, type TrainingBlockComparisonResponse, type TrainingDiscipline, type TrainingEventType, type TrainingExperienceLevel, type TrainingGoal, type TrainingIdentity, type TrainingLocationPreference, type TrainingLocationPreferenceInput, type TrainingPartnerAchievementNotification, type TrainingPartnerAchievementPushPayload, type TrainingPartnerEncouragementKind, type TrainingPartnerEncouragementNotification, type TrainingPartnerPermissions, type TrainingPartnerScheduleDay, type TrainingPartnerScheduleResponse, type TrainingPartnerSessionNotification, type TrainingPartnerSessionPushPayload, type TrainingPartnership, type TrainingPartnershipStatus, type TrainingPartnershipsResponse, type TrainingReminderPreference, type TrainingReminderPushPayload, type TrainingSignalPeriod, type TrainingSignalsResponse, USERNAME_MAX_LENGTH, USERNAME_MIN_LENGTH, USERNAME_PATTERN_SOURCE, type UnreadConversationsResponse, type UpdateActivitySharingRequest, type UpdateCustomExerciseRequest, type UpdateDashboardLayoutRequest, type UpdateLocaleRequest, type UpdateMessagePermissionRequest, type UpdateNotificationPreferencesRequest, type UpdateOnboardingRequest, type UpdateProfileDiscoveryRequest, type UpdateProfilePrivacyRequest, type UpdateProfileRequest, type UpdateRoutineRequest, type UpdateRoutineVisibilityRequest, type UpdateSessionNotesRequest, type UpdateSessionNotesResponse, type UpdateTrainingPartnerPermissionsRequest, type UpdateWeekStartRequest, type UpsertBodyMeasurementRequest, type UpsertRoutineTrainingBlockRequest, type UpsertSetLogRequest, type UpsertSetLogResponse, type UserId, type UserProfile, type UserSearchResponse, type VolumeTrendPoint, type VolumeTrendQuery, type VolumeTrendResponse, type VolumeTrendSeries, WEEK_STARTS, WEIGHT_UNITS, WORKOUT_SESSION_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, countsAsWork, countsForProgression, customExerciseProblem, defaultWarmUpEquipment, deloadLengthDays, exerciseGroupLabel, exerciseGroupPosition, exerciseGroups, exerciseNameKey, feetInchesToCm, followWorkingLoad, goalSuggestionKey, hasOversizedGroup, inchesToCm, isApiErrorCode, isAppLocale, isBarLoaded, isBodyMeasurementDate, isDashboardSectionId, isDefaultDashboardLayout, isGoalSuggestionKey, isMessagePermission, isOnboardingStepId, isRealtimeTopic, isSetKind, isWeekStartsOn, isWithinQuietHours, latestBodyWeight, leadWorkingWeight, linearPeriodizationProblem, loggedWorkoutDateRange, lpAtStep, lpEstimate, lpLoadKg, lpPrescription, lpRecommendation, lpRirMidpoint, lpSampleRir, lpSetEstimateKg, lpStep, lpStoredSets, lpWorkingSets, matchesDeletionConfirmation, messageBodyLength, messageNote, normalizeDashboardLayout, normalizeExerciseLinks, normalizeExerciseName, normalizeMessageBody, normalizeSearchQuery, parseRealtimeEvent, primaryEquipment, requiredToFinish, resolveActiveTrainingBlock, resolveRoutinePlan, roundDownToIncrement, roundToIncrement, routineDayLabel, sameLpPosition, sessionCorrectionWindow, setKindOf, setLogValuesDiffer, startLinearPeriodization, summarizeBodyProgress, trainingBlockCovers, warmUpLoad, weekStartOf };
|
|
5381
|
+
export { ACCOUNT_EXPORT_FORMAT, ACCOUNT_EXPORT_VERSION, ACHIEVEMENT_CATEGORIES, ACHIEVEMENT_DEFINITIONS, ACTIVITY_CAPS, ACTIVITY_COMMENTS_PAGE_SIZE, ACTIVITY_COMMENTS_PER_DAY_MAX, ACTIVITY_COMMENT_MAX_LENGTH, ACTIVITY_DEFAULT_AUDIENCE, ACTIVITY_ENTRY_ID_MAX_LENGTH, ACTIVITY_FEED_FOLLOWED_MAX, ACTIVITY_PAGE_DEFAULT_LIMIT, ACTIVITY_PAGE_MAX_LIMIT, ACTIVITY_PREVIEW_AUDIENCES, ACTIVITY_REACTIONS, ACTIVITY_TYPES, ACTIVITY_TYPE_SECTIONS, API_ERROR_CODES, API_ERROR_MESSAGES, type AccountExportBodyMeasurement, type AccountExportGoal, type AccountExportMember, type AccountExportPersonalRecord, type AccountExportRoutine, type AccountExportScheduleOverride, type AccountExportTrainingEvent, type AccountExportTrainingLocation, type AccountExportV1, type AchievementActivity, type AchievementCategory, type AchievementCategoryProgress, type AchievementDefinition, type AchievementNotification, type AchievementUnlockedEventPayload, type AchievementsResponse, type ActivityAudience, type ActivityCap, type ActivityComment, type ActivityCommentNotification, type ActivityCommentSummary, type ActivityCommentsQuery, type ActivityCommentsResponse, type ActivityEntry, type ActivityEntrySharing, type ActivityFeedResponse, type ActivityLink, type ActivityPage, type ActivityPageQuery, type ActivityPreviewAudience, type ActivityPreviewQuery, type ActivityReaction, type ActivityReactionSummary, type ActivitySection, type ActivitySharingSettings, type ActivityType, type ApiErrorBody, type ApiErrorCode, type ApiErrorParams, type AppLocale, type AppNotification, BAR_CHOICES_KG, BAR_WARM_UP_STEPS, BLOCKED_MEMBERS_MAX, BODY_MEASUREMENT_FIELDS, BODY_MEASUREMENT_FIELD_KEYS, BODY_PROGRESS_RANGES, type BlockComparisonLift, type BlockComparisonLiftBest, type BlockComparisonPeriod, type BlockComparisonPeriodKind, type BlockedMember, type BlockedMembersResponse, type BodyFieldSummary, type BodyMeasurement, type BodyMeasurementField, type BodyMeasurementProblem, type BodyMeasurementValues, type BodyProgressRange, type BodyProgressResponse, type Brand, CLONE_ROUTINE_REFUSALS, CM_PER_INCH, COMEBACK_MIN_INACTIVE_DAYS, COMEBACK_RECOGNITION_LIMIT, COMEBACK_REQUIRED_ACTIVE_DAYS, COMEBACK_SESSION_LOOKBACK, COMEBACK_WINDOW_DAYS, CONVERSATIONS_PAGE_SIZE, CONVERSATION_BOXES, CUSTOM_EXERCISES_MAX, CUSTOM_EXERCISE_NAME_MAX, CUSTOM_EXERCISE_NOTE_MAX, CUSTOM_EXERCISE_PROBLEM_MESSAGES, CUSTOM_EXERCISE_REFUSALS, type CalendarDate, type CapturedMessage, type CloneRoutineRefusal, type CloneRoutineRequest, type ComebackActivity, type ComebackRecognition, type ComebackRecognitionSummary, type ContinueLinearBlockRequest, type ConversationBox, type ConversationMember, type ConversationMessage, type ConversationMessagesResponse, type ConversationRequest, type ConversationSummary, type ConversationsResponse, type CorrectSessionRequest, type CorrectSessionResponse, type CorrectSessionSetRequest, type CreateActivityCommentRequest, type CreateActivityCommentResponse, type CreateDeloadRequest, type CreateReportRequest, type CreateReportResponse, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type CreateRoutineVersionRequest, type CreateSessionShareRequest, type CustomExerciseInput, type CustomExerciseProblem, type CustomExerciseRefusal, DASHBOARD_SECTION_IDS, DEFAULT_DASHBOARD_LAYOUT, DEFAULT_LOCALE, DEFAULT_MESSAGE_PERMISSION, DEFAULT_WEEK_STARTS_ON, DELOAD_DEFAULT_DAYS, DELOAD_DEFAULT_LOAD_REDUCTION, DELOAD_DEFAULT_SET_MODE, DELOAD_LOAD_REDUCTIONS, DELOAD_MAX_DAYS, DELOAD_NOT_LIGHTER, DELOAD_SET_MODES, DELOAD_SUGGESTION_COOLDOWN_DAYS, DELOAD_SUGGESTION_EARLIER_DAYS, DELOAD_SUGGESTION_MIN_MARKED_TODAY, DELOAD_SUGGESTION_ROUTINE_DAYS, DELOAD_SUGGESTION_SIGNALS, type DashboardLayout, type DashboardLayoutEntry, type DashboardSectionId, type DeclineSignal, type DecliningLift, type DecliningLiftSession, type DeleteAccountRequest, type DeleteAccountResponse, type DeleteActivityCommentResponse, type DeletePushSubscriptionRequest, type DeloadLoadReduction, type DeloadOptions, type DeloadSetMode, type DeloadSuggestion, type DeloadSuggestionEvidence, type DeloadSuggestionResponse, type DeloadSuggestionSignal, type DeloadSuggestionUnavailableReason, type DiscoverableRoutine, type DismissGoalSuggestionRequest, EXERCISE_EQUIPMENT, EXERCISE_GROUP_KIND_LABELS, EXERCISE_GROUP_MAX, EXERCISE_MECHANICS, type EarnedAchievement, type EarnedPersonalRecord, type EffortPeriod, type EffortSignal, type Exercise, type ExerciseEquipment, type ExerciseGroup, type ExerciseGroupKind, type ExerciseGroupPosition, type ExerciseId, type ExerciseMechanic, type ExercisePerformanceHistoryQuery, type ExercisePerformanceHistoryResponse, type ExercisePerformancePrescription, type ExercisePerformancePrescriptionSet, type ExercisePerformanceSession, type ExercisePerformanceSet, type ExercisePerformanceSummary, type ExercisePlateau, type ExerciseStrengthSummary, type ExerciseStrengthTrendPoint, type ExerciseStrengthTrendQuery, type ExerciseStrengthTrendResponse, FEATURED_PROFILE_ITEMS_MAX, FEATURED_PROFILE_ITEM_KINDS, FEATURED_PROFILE_REFERENCE_MAX_LENGTH, FINISH_PAUSE_MINUTES, FOLLOW_SUGGESTIONS_DEFAULT_LIMIT, FOLLOW_SUGGESTIONS_MAX_LIMIT, FOLLOW_SUGGESTION_REASONS, type FeaturedProfileAchievementItem, type FeaturedProfileItem, type FeaturedProfileItemKind, type FeaturedProfileRankItem, type FeaturedProfileRecordItem, type FeaturedProfileRoutineItem, type FeaturedProfileSelection, type FeaturedProfileSelectionInput, type FeaturedProfileSelectionsResponse, type FinishStatus, type FinishWorkoutRequest, type FinishWorkoutResponse, type FollowSuggestion, type FollowSuggestionReason, type FollowSuggestionsResponse, GOAL_SUGGESTIONS_MAX, GOAL_SUGGESTION_DISMISSALS_MAX, GOAL_SUGGESTION_LIFT_MIN_SESSIONS, GOAL_SUGGESTION_LIFT_WINDOW_DAYS, GOAL_SUGGESTION_MIN_ACTIVE_WEEKS, GOAL_SUGGESTION_STRENGTH_STEP, GOAL_SUGGESTION_TYPES, GOAL_SUGGESTION_VOLUME_WEEKS, type GoalSuggestion, type GoalSuggestionBasis, type GoalSuggestionType, type GoalSuggestionsResponse, INCHES_PER_FOOT, type IsoDateString, LENGTH_UNITS, LIMITED_SHORTFALL_KG, 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, PLATEAU_MIN_DAYS_SINCE_BEST, PLATEAU_MIN_SESSIONS, PLATEAU_MIN_SESSIONS_MAX, PLATEAU_MIN_SESSIONS_MIN, PLATEAU_RECENT_DAYS, PLATEAU_WINDOW_DAYS, PLATE_SETS, PREFERRED_TRAINING_STYLE_VALUES, PROFILE_BIO_MAX_LENGTH, PROFILE_FAVORITE_EXERCISES_MAX, PROFILE_LOCATION_MAX_LENGTH, PROFILE_TRAINING_DISCIPLINES_MAX, PROFILE_TRAINING_GOALS_MAX, PROFILE_VISIBILITY_VALUES, PROGRESSION_SCHEMES, PROGRESS_TIMELINE_EVENT_TYPES, PUSH_PAYLOAD_KINDS, PUSH_SUBSCRIPTIONS_MAX, type PaginatedResponse, type PersonalGoalProgress, type PersonalGoalsResponse, type PersonalRecordActivity, type PersonalRecordEntry, type PersonalRecordKind, type PlannedReminder, type PlateLoadingItem, type PlateLoadingResult, type PlatePairInventory, type PlateSetChoice, type PlateauPreferences, type PlateauSet, type PlateausResponse, type PreferredTrainingStyle, type PreviousPerformanceResponse, type PreviousSessionRecap, type PreviousSetPerformance, type ProfileDiscoverySettings, type ProfileFavoriteExercise, type ProfilePrivacySettings, type ProfileViewerAccess, type ProfileVisibility, type ProgressTimelineEventType, type ProgressTimelineItem, type ProgressTimelinePersonalRecordItem, type ProgressTimelineProgressionItem, type ProgressTimelineQuery, type ProgressTimelineRecordPerformance, type ProgressTimelineRecordReason, type ProgressTimelineResponse, type ProgressTimelineSessionContext, type ProgressionActivity, type ProgressionChange, type ProgressionRule, type ProgressionScheme, type ProgressionSetChange, type PublicBodyMetrics, type PublicProfileAchievements, type PublicTrainingSummary, type PublicUserProfile, type PushPayload, type PushPayloadKind, type PushSubscriptionKeys, type PushSubscriptionSummary, type PushSubscriptionsResponse, type QuietHours, REALTIME_HEARTBEAT_MS, REALTIME_MAX_STREAMS_PER_MEMBER, REALTIME_MAX_STREAM_MS, REALTIME_STREAM_PATH, REALTIME_TOPICS, REALTIME_UNAVAILABLE_RETRY_SECONDS, RECENT_SEARCHES_MAX, RECENT_SEARCH_KINDS, RELATIONSHIP_LIST_DEFAULT_LIMIT, RELATIONSHIP_LIST_KINDS, RELATIONSHIP_LIST_MAX_LIMIT, RENAISSANCE_RANK_DEFINITIONS, REPORTS_PER_DAY_MAX, REPORT_DETAILS_MAX_LENGTH, REPORT_REASONS, REPORT_STATUSES, REPORT_SUBJECT_KINDS, REP_TYPES, RESERVED_USERNAMES, REST_ALERT_MAX_LEAD_SECONDS, REST_ALERT_MIN_LEAD_SECONDS, REST_ALERT_REFUSALS, ROUTINE_DAYS_MAX, ROUTINE_DAY_NAME_MAX, ROUTINE_DISCOVERY_DEFAULT_LIMIT, ROUTINE_DISCOVERY_MAX_LIMIT, ROUTINE_DISCOVERY_SCAN_LIMIT, ROUTINE_DURATION_BANDS, ROUTINE_DURATION_BAND_MAX_MINUTES, ROUTINE_SCHEDULE_MODES, ROUTINE_SHARE_MAX_ACTIVE_LINKS, ROUTINE_TRAINING_BLOCKS_MAX, ROUTINE_TRAINING_BLOCK_NAME_MAX, ROUTINE_TRAINING_BLOCK_REVISIONS_MAX, ROUTINE_TRAINING_BLOCK_SOURCE_KINDS, ROUTINE_TRAINING_BLOCK_STATES, ROUTINE_VERSIONS_MAX, ROUTINE_VERSION_KINDS, ROUTINE_VERSION_NAME_MAX, ROUTINE_VISIBILITY_VALUES, type RealtimeEvent, type RealtimeTopic, type RecentActivityEntry, type RecentExercise, type RecentRoutine, type RecentSearchItem, type RecentSearchKind, type RecentSearchesResponse, type RecordRecentSearchRequest, type RegisterPushSubscriptionRequest, type RelationshipListKind, type RelationshipListQuery, type RelationshipListResponse, type RelationshipMember, type 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, inchesToCm, isApiErrorCode, isAppLocale, isBarLoaded, isBodyMeasurementDate, isDashboardSectionId, isDefaultDashboardLayout, isGoalSuggestionKey, isMessagePermission, isOnboardingStepId, isRealtimeTopic, isSetKind, isWeekStartsOn, isWithinQuietHours, latestBodyWeight, leadWorkingWeight, linearPeriodizationProblem, loggedWorkoutDateRange, lpAtStep, lpEstimate, lpLoadKg, lpPrescription, lpRecommendation, lpRirMidpoint, lpSampleRir, lpSetEstimateKg, lpStep, lpStoredSets, lpWorkingSets, matchesDeletionConfirmation, messageBodyLength, messageNote, messageProgressId, normalizeDashboardLayout, normalizeExerciseLinks, normalizeExerciseName, normalizeMessageBody, normalizeSearchQuery, parseRealtimeEvent, primaryEquipment, requiredToFinish, resolveActiveTrainingBlock, resolveRoutinePlan, roundDownToIncrement, roundToIncrement, routineDayLabel, sameLpPosition, sessionCorrectionWindow, setKindOf, setLogValuesDiffer, startLinearPeriodization, summarizeBodyProgress, trainingBlockCovers, warmUpLoad, weekStartOf };
|
package/dist/index.js
CHANGED
|
@@ -1332,8 +1332,8 @@ function applyDeload(setup, options) {
|
|
|
1332
1332
|
return lighter ? { ...setup, days } : null;
|
|
1333
1333
|
}
|
|
1334
1334
|
function deloadLengthDays(startDate, endDate) {
|
|
1335
|
-
const
|
|
1336
|
-
return Math.round((
|
|
1335
|
+
const ms2 = (date) => Date.parse(`${date}T00:00:00Z`);
|
|
1336
|
+
return Math.round((ms2(endDate) - ms2(startDate)) / 864e5) + 1;
|
|
1337
1337
|
}
|
|
1338
1338
|
|
|
1339
1339
|
// src/deload-suggestions.ts
|
|
@@ -1430,6 +1430,37 @@ var SESSION_SHARE_DEFAULT_FIELDS = [
|
|
|
1430
1430
|
];
|
|
1431
1431
|
var SESSION_SHARE_MAX_ACTIVE_LINKS = 10;
|
|
1432
1432
|
|
|
1433
|
+
// src/workout-end-time.ts
|
|
1434
|
+
var FINISH_PAUSE_MINUTES = 30;
|
|
1435
|
+
var WORKOUT_END_CLOCK_SLACK_SECONDS = 120;
|
|
1436
|
+
var ms = (value) => new Date(value).getTime();
|
|
1437
|
+
function earliestWorkoutEnd(input) {
|
|
1438
|
+
const skip = input.movesWithEnd ? ms(input.movesWithEnd) : null;
|
|
1439
|
+
let earliest = ms(input.startedAt);
|
|
1440
|
+
for (const value of input.completedAts) {
|
|
1441
|
+
if (!value) continue;
|
|
1442
|
+
const at = ms(value);
|
|
1443
|
+
if (Number.isFinite(at) && at !== skip && at > earliest) earliest = at;
|
|
1444
|
+
}
|
|
1445
|
+
return new Date(earliest);
|
|
1446
|
+
}
|
|
1447
|
+
function finishEndTime(requested, earliest, now = /* @__PURE__ */ new Date()) {
|
|
1448
|
+
if (requested == null) return now;
|
|
1449
|
+
const at = ms(requested);
|
|
1450
|
+
if (!Number.isFinite(at) || at < earliest.getTime()) return null;
|
|
1451
|
+
if (at > now.getTime() + WORKOUT_END_CLOCK_SLACK_SECONDS * 1e3) return null;
|
|
1452
|
+
return new Date(Math.min(at, now.getTime()));
|
|
1453
|
+
}
|
|
1454
|
+
function correctedEndTime(requested, earliest, endedAt) {
|
|
1455
|
+
const at = ms(requested);
|
|
1456
|
+
if (!Number.isFinite(at)) return null;
|
|
1457
|
+
if (at < earliest.getTime() || at > ms(endedAt)) return null;
|
|
1458
|
+
return new Date(at);
|
|
1459
|
+
}
|
|
1460
|
+
function finishNeedsEndTime(lastActivityAt, now = /* @__PURE__ */ new Date()) {
|
|
1461
|
+
return now.getTime() - ms(lastActivityAt) >= FINISH_PAUSE_MINUTES * 60 * 1e3;
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1433
1464
|
// src/session-corrections.ts
|
|
1434
1465
|
var SESSION_CORRECTION_WINDOW_HOURS = 48;
|
|
1435
1466
|
var SESSION_CORRECTIONS_MAX = 10;
|
|
@@ -1691,6 +1722,7 @@ var API_ERROR_MESSAGES = {
|
|
|
1691
1722
|
SESSION_BLOCK_NOT_IN_FORCE: "That training block is not in force today; start a day of the routine",
|
|
1692
1723
|
SESSION_FINISHED: "Cannot modify set logs for a finished session",
|
|
1693
1724
|
SESSION_ALREADY_FINISHED: "Session already finished with a different status",
|
|
1725
|
+
WORKOUT_END_TIME_RANGE: "A workout ends after it started and after its last set, and not in the future",
|
|
1694
1726
|
EXTRA_SETS_MAX: "An exercise can take at most {max} extra sets",
|
|
1695
1727
|
EXTRA_SET_NOT_NEXT: "Extra sets are added after the last set",
|
|
1696
1728
|
PRESCRIBED_SET_NOT_REMOVABLE: "A prescribed set cannot be removed",
|
|
@@ -1728,6 +1760,7 @@ var API_ERROR_MESSAGES = {
|
|
|
1728
1760
|
CORRECTION_COMPLETED_NEEDS_REP: "A completed set needs at least one rep",
|
|
1729
1761
|
CORRECTION_NOTHING_TO_CORRECT: "Nothing to correct: every set already reads that way",
|
|
1730
1762
|
CORRECTION_KEEPS_ONE_SET: "A finished workout keeps at least one completed set",
|
|
1763
|
+
CORRECTION_END_TIME_RANGE: "A workout's end can only move earlier, and not before it started or before its last set",
|
|
1731
1764
|
// ── Sharing a workout ──────────────────────────────────────────────────
|
|
1732
1765
|
SESSION_SHARE_NOTHING_CHOSEN: "Choose at least one part of the recap to share",
|
|
1733
1766
|
SESSION_SHARE_NOT_COMPLETED: "Only completed sessions can be shared",
|
|
@@ -1764,7 +1797,7 @@ var API_ERROR_MESSAGES = {
|
|
|
1764
1797
|
// ── Direct messages (MSG-01) ───────────────────────────────────────────
|
|
1765
1798
|
MESSAGE_SELF: "You cannot message yourself",
|
|
1766
1799
|
MESSAGE_LENGTH: "A message must not be empty and may be at most {max} characters.",
|
|
1767
|
-
MESSAGE_ONE_ATTACHMENT: "A message can carry one routine, one workout, one record, one milestone or one
|
|
1800
|
+
MESSAGE_ONE_ATTACHMENT: "A message can carry one routine, one workout, one record, one milestone, one comeback or one month of progress.",
|
|
1768
1801
|
MESSAGES_PER_MINUTE: "You can send at most {max} messages a minute.",
|
|
1769
1802
|
CONVERSATIONS_PER_DAY: "You can start at most {max} new conversations a day.",
|
|
1770
1803
|
MESSAGE_NOT_ADMITTED: "This member is not taking messages from you.",
|
|
@@ -1878,8 +1911,13 @@ var MESSAGE_ATTACHMENT_KINDS = [
|
|
|
1878
1911
|
"WORKOUT",
|
|
1879
1912
|
"RECORD",
|
|
1880
1913
|
"ACHIEVEMENT",
|
|
1881
|
-
"COMEBACK"
|
|
1914
|
+
"COMEBACK",
|
|
1915
|
+
"PROGRESS"
|
|
1882
1916
|
];
|
|
1917
|
+
var MESSAGE_PROGRESS_ID = /^progress:(\d{4})-(0[1-9]|1[0-2])$/;
|
|
1918
|
+
function messageProgressId(month) {
|
|
1919
|
+
return `progress:${month}`;
|
|
1920
|
+
}
|
|
1883
1921
|
function messageNote(body, hasAttachment) {
|
|
1884
1922
|
if ((body ?? "").trim().length === 0) {
|
|
1885
1923
|
return hasAttachment ? null : void 0;
|
|
@@ -1957,6 +1995,7 @@ export {
|
|
|
1957
1995
|
FEATURED_PROFILE_ITEMS_MAX,
|
|
1958
1996
|
FEATURED_PROFILE_ITEM_KINDS,
|
|
1959
1997
|
FEATURED_PROFILE_REFERENCE_MAX_LENGTH,
|
|
1998
|
+
FINISH_PAUSE_MINUTES,
|
|
1960
1999
|
FOLLOW_SUGGESTIONS_DEFAULT_LIMIT,
|
|
1961
2000
|
FOLLOW_SUGGESTIONS_MAX_LIMIT,
|
|
1962
2001
|
FOLLOW_SUGGESTION_REASONS,
|
|
@@ -1998,6 +2037,7 @@ export {
|
|
|
1998
2037
|
MESSAGE_ATTACHMENT_KINDS,
|
|
1999
2038
|
MESSAGE_BODY_MAX,
|
|
2000
2039
|
MESSAGE_PERMISSIONS,
|
|
2040
|
+
MESSAGE_PROGRESS_ID,
|
|
2001
2041
|
MESSAGE_PUSH_DELAY_SECONDS,
|
|
2002
2042
|
MESSAGE_REPORT_CONTEXT_BEFORE,
|
|
2003
2043
|
MESSAGE_REQUEST_DECLINE_COOLDOWN_DAYS,
|
|
@@ -2132,6 +2172,7 @@ export {
|
|
|
2132
2172
|
USERNAME_PATTERN_SOURCE,
|
|
2133
2173
|
WEEK_STARTS,
|
|
2134
2174
|
WEIGHT_UNITS,
|
|
2175
|
+
WORKOUT_END_CLOCK_SLACK_SECONDS,
|
|
2135
2176
|
WORKOUT_SESSION_ORIGINS,
|
|
2136
2177
|
WORKOUT_SESSION_STATUSES,
|
|
2137
2178
|
accountExportFileName,
|
|
@@ -2149,16 +2190,20 @@ export {
|
|
|
2149
2190
|
cmToFeetInches,
|
|
2150
2191
|
cmToInches,
|
|
2151
2192
|
continueLinearPeriodization,
|
|
2193
|
+
correctedEndTime,
|
|
2152
2194
|
countsAsWork,
|
|
2153
2195
|
countsForProgression,
|
|
2154
2196
|
customExerciseProblem,
|
|
2155
2197
|
defaultWarmUpEquipment,
|
|
2156
2198
|
deloadLengthDays,
|
|
2199
|
+
earliestWorkoutEnd,
|
|
2157
2200
|
exerciseGroupLabel,
|
|
2158
2201
|
exerciseGroupPosition,
|
|
2159
2202
|
exerciseGroups,
|
|
2160
2203
|
exerciseNameKey,
|
|
2161
2204
|
feetInchesToCm,
|
|
2205
|
+
finishEndTime,
|
|
2206
|
+
finishNeedsEndTime,
|
|
2162
2207
|
followWorkingLoad,
|
|
2163
2208
|
goalSuggestionKey,
|
|
2164
2209
|
hasOversizedGroup,
|
|
@@ -2194,6 +2239,7 @@ export {
|
|
|
2194
2239
|
matchesDeletionConfirmation,
|
|
2195
2240
|
messageBodyLength,
|
|
2196
2241
|
messageNote,
|
|
2242
|
+
messageProgressId,
|
|
2197
2243
|
normalizeDashboardLayout,
|
|
2198
2244
|
normalizeExerciseLinks,
|
|
2199
2245
|
normalizeExerciseName,
|
package/package.json
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@sunsteel/contracts",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"repository": {
|
|
5
|
-
"type": "git",
|
|
6
|
-
"url": "git+https://github.com/ezee969/sunsteel-contracts.git"
|
|
7
|
-
},
|
|
8
|
-
"private": false,
|
|
9
|
-
"engines": {
|
|
10
|
-
"node": ">=20.11"
|
|
11
|
-
},
|
|
12
|
-
"type": "module",
|
|
13
|
-
"sideEffects": false,
|
|
14
|
-
"main": "./dist/index.cjs",
|
|
15
|
-
"module": "./dist/index.js",
|
|
16
|
-
"types": "./dist/index.d.ts",
|
|
17
|
-
"exports": {
|
|
18
|
-
".": {
|
|
19
|
-
"types": "./dist/index.d.ts",
|
|
20
|
-
"import": "./dist/index.js",
|
|
21
|
-
"require": "./dist/index.cjs"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"files": [
|
|
25
|
-
"dist"
|
|
26
|
-
],
|
|
27
|
-
"scripts": {
|
|
28
|
-
"build": "tsup src/index.ts --format esm,cjs --dts --clean",
|
|
29
|
-
"dev": "tsup src/index.ts --format esm,cjs --dts --watch",
|
|
30
|
-
"typecheck": "tsc --noEmit",
|
|
31
|
-
"lint": "npm run typecheck",
|
|
32
|
-
"verify": "npm run typecheck && npm run build",
|
|
33
|
-
"verify:security": "npm audit",
|
|
34
|
-
"prepublishOnly": "npm run build"
|
|
35
|
-
},
|
|
36
|
-
"devDependencies": {
|
|
37
|
-
"tsup": "^8.3.5",
|
|
38
|
-
"typescript": "^5.7.3"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@sunsteel/contracts",
|
|
3
|
+
"version": "0.101.0",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "git+https://github.com/ezee969/sunsteel-contracts.git"
|
|
7
|
+
},
|
|
8
|
+
"private": false,
|
|
9
|
+
"engines": {
|
|
10
|
+
"node": ">=20.11"
|
|
11
|
+
},
|
|
12
|
+
"type": "module",
|
|
13
|
+
"sideEffects": false,
|
|
14
|
+
"main": "./dist/index.cjs",
|
|
15
|
+
"module": "./dist/index.js",
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"import": "./dist/index.js",
|
|
21
|
+
"require": "./dist/index.cjs"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"dist"
|
|
26
|
+
],
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "tsup src/index.ts --format esm,cjs --dts --clean",
|
|
29
|
+
"dev": "tsup src/index.ts --format esm,cjs --dts --watch",
|
|
30
|
+
"typecheck": "tsc --noEmit",
|
|
31
|
+
"lint": "npm run typecheck",
|
|
32
|
+
"verify": "npm run typecheck && npm run build",
|
|
33
|
+
"verify:security": "npm audit",
|
|
34
|
+
"prepublishOnly": "npm run build"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"tsup": "^8.3.5",
|
|
38
|
+
"typescript": "^5.7.3"
|
|
39
|
+
}
|
|
40
|
+
}
|