@sunsteel/contracts 0.57.0 → 0.59.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 +38 -1
- package/dist/index.d.cts +182 -90
- package/dist/index.d.ts +182 -90
- package/dist/index.js +31 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -105,6 +105,11 @@ __export(index_exports, {
|
|
|
105
105
|
ROUTINE_DURATION_BAND_MAX_MINUTES: () => ROUTINE_DURATION_BAND_MAX_MINUTES,
|
|
106
106
|
ROUTINE_SCHEDULE_MODES: () => ROUTINE_SCHEDULE_MODES,
|
|
107
107
|
ROUTINE_SHARE_MAX_ACTIVE_LINKS: () => ROUTINE_SHARE_MAX_ACTIVE_LINKS,
|
|
108
|
+
ROUTINE_TRAINING_BLOCKS_MAX: () => ROUTINE_TRAINING_BLOCKS_MAX,
|
|
109
|
+
ROUTINE_TRAINING_BLOCK_NAME_MAX: () => ROUTINE_TRAINING_BLOCK_NAME_MAX,
|
|
110
|
+
ROUTINE_TRAINING_BLOCK_REVISIONS_MAX: () => ROUTINE_TRAINING_BLOCK_REVISIONS_MAX,
|
|
111
|
+
ROUTINE_TRAINING_BLOCK_SOURCE_KINDS: () => ROUTINE_TRAINING_BLOCK_SOURCE_KINDS,
|
|
112
|
+
ROUTINE_TRAINING_BLOCK_STATES: () => ROUTINE_TRAINING_BLOCK_STATES,
|
|
108
113
|
ROUTINE_VERSIONS_MAX: () => ROUTINE_VERSIONS_MAX,
|
|
109
114
|
ROUTINE_VERSION_KINDS: () => ROUTINE_VERSION_KINDS,
|
|
110
115
|
ROUTINE_VERSION_NAME_MAX: () => ROUTINE_VERSION_NAME_MAX,
|
|
@@ -126,6 +131,8 @@ __export(index_exports, {
|
|
|
126
131
|
TRAINING_GOAL_VALUES: () => TRAINING_GOAL_VALUES,
|
|
127
132
|
TRAINING_PARTNERSHIP_STATUSES: () => TRAINING_PARTNERSHIP_STATUSES,
|
|
128
133
|
TRAINING_PARTNERS_MAX: () => TRAINING_PARTNERS_MAX,
|
|
134
|
+
TRAINING_PARTNER_ENCOURAGEMENTS_PER_24_HOURS_MAX: () => TRAINING_PARTNER_ENCOURAGEMENTS_PER_24_HOURS_MAX,
|
|
135
|
+
TRAINING_PARTNER_ENCOURAGEMENT_KINDS: () => TRAINING_PARTNER_ENCOURAGEMENT_KINDS,
|
|
129
136
|
TRAINING_PARTNER_PERMISSION_KEYS: () => TRAINING_PARTNER_PERMISSION_KEYS,
|
|
130
137
|
TRAINING_PARTNER_REQUESTS_PER_DAY_MAX: () => TRAINING_PARTNER_REQUESTS_PER_DAY_MAX,
|
|
131
138
|
USERNAME_MAX_LENGTH: () => USERNAME_MAX_LENGTH,
|
|
@@ -490,6 +497,20 @@ var ROUTINE_VERSIONS_MAX = 20;
|
|
|
490
497
|
var ROUTINE_VERSION_NAME_MAX = 60;
|
|
491
498
|
var ROUTINE_VERSION_KINDS = ["SAVED", "BEFORE_RESTORE"];
|
|
492
499
|
|
|
500
|
+
// src/training-blocks.ts
|
|
501
|
+
var ROUTINE_TRAINING_BLOCKS_MAX = 24;
|
|
502
|
+
var ROUTINE_TRAINING_BLOCK_REVISIONS_MAX = 20;
|
|
503
|
+
var ROUTINE_TRAINING_BLOCK_NAME_MAX = 60;
|
|
504
|
+
var ROUTINE_TRAINING_BLOCK_STATES = [
|
|
505
|
+
"FUTURE",
|
|
506
|
+
"ACTIVE",
|
|
507
|
+
"COMPLETE"
|
|
508
|
+
];
|
|
509
|
+
var ROUTINE_TRAINING_BLOCK_SOURCE_KINDS = [
|
|
510
|
+
"CURRENT_ROUTINE",
|
|
511
|
+
"SAVED_VERSION"
|
|
512
|
+
];
|
|
513
|
+
|
|
493
514
|
// src/routine-sharing.ts
|
|
494
515
|
var ROUTINE_VISIBILITY_VALUES = [
|
|
495
516
|
"PRIVATE",
|
|
@@ -598,7 +619,9 @@ var NOTIFICATION_KINDS = [
|
|
|
598
619
|
// SOC-06. The first kind another member causes on purpose. The three above
|
|
599
620
|
// are the account's own training, or a follow; a comment is somebody
|
|
600
621
|
// addressing you, which is why it is worth a notification at all.
|
|
601
|
-
"ACTIVITY_COMMENT"
|
|
622
|
+
"ACTIVITY_COMMENT",
|
|
623
|
+
// SOC-09: one of four fixed, permissioned prompts from an active partner.
|
|
624
|
+
"TRAINING_PARTNER_ENCOURAGEMENT"
|
|
602
625
|
];
|
|
603
626
|
var NOTIFICATIONS_LOOKBACK_DAYS = 30;
|
|
604
627
|
var NOTIFICATIONS_RETENTION_DAYS = 90;
|
|
@@ -651,6 +674,13 @@ var TRAINING_PARTNER_PERMISSION_KEYS = [
|
|
|
651
674
|
];
|
|
652
675
|
var TRAINING_PARTNERS_MAX = 20;
|
|
653
676
|
var TRAINING_PARTNER_REQUESTS_PER_DAY_MAX = 10;
|
|
677
|
+
var TRAINING_PARTNER_ENCOURAGEMENT_KINDS = [
|
|
678
|
+
"READY_TO_TRAIN",
|
|
679
|
+
"STRONG_SESSION",
|
|
680
|
+
"GOOD_WORK",
|
|
681
|
+
"KEEP_GOING"
|
|
682
|
+
];
|
|
683
|
+
var TRAINING_PARTNER_ENCOURAGEMENTS_PER_24_HOURS_MAX = 4;
|
|
654
684
|
var TRAINING_PARTNERSHIP_STATUSES = ["PENDING", "ACTIVE"];
|
|
655
685
|
// Annotate the CommonJS export names for ESM import in node:
|
|
656
686
|
0 && (module.exports = {
|
|
@@ -739,6 +769,11 @@ var TRAINING_PARTNERSHIP_STATUSES = ["PENDING", "ACTIVE"];
|
|
|
739
769
|
ROUTINE_DURATION_BAND_MAX_MINUTES,
|
|
740
770
|
ROUTINE_SCHEDULE_MODES,
|
|
741
771
|
ROUTINE_SHARE_MAX_ACTIVE_LINKS,
|
|
772
|
+
ROUTINE_TRAINING_BLOCKS_MAX,
|
|
773
|
+
ROUTINE_TRAINING_BLOCK_NAME_MAX,
|
|
774
|
+
ROUTINE_TRAINING_BLOCK_REVISIONS_MAX,
|
|
775
|
+
ROUTINE_TRAINING_BLOCK_SOURCE_KINDS,
|
|
776
|
+
ROUTINE_TRAINING_BLOCK_STATES,
|
|
742
777
|
ROUTINE_VERSIONS_MAX,
|
|
743
778
|
ROUTINE_VERSION_KINDS,
|
|
744
779
|
ROUTINE_VERSION_NAME_MAX,
|
|
@@ -760,6 +795,8 @@ var TRAINING_PARTNERSHIP_STATUSES = ["PENDING", "ACTIVE"];
|
|
|
760
795
|
TRAINING_GOAL_VALUES,
|
|
761
796
|
TRAINING_PARTNERSHIP_STATUSES,
|
|
762
797
|
TRAINING_PARTNERS_MAX,
|
|
798
|
+
TRAINING_PARTNER_ENCOURAGEMENTS_PER_24_HOURS_MAX,
|
|
799
|
+
TRAINING_PARTNER_ENCOURAGEMENT_KINDS,
|
|
763
800
|
TRAINING_PARTNER_PERMISSION_KEYS,
|
|
764
801
|
TRAINING_PARTNER_REQUESTS_PER_DAY_MAX,
|
|
765
802
|
USERNAME_MAX_LENGTH,
|
package/dist/index.d.cts
CHANGED
|
@@ -1698,6 +1698,128 @@ interface PersonalGoalsResponse {
|
|
|
1698
1698
|
goals: PersonalGoalProgress[];
|
|
1699
1699
|
}
|
|
1700
1700
|
|
|
1701
|
+
/** A local calendar date, YYYY-MM-DD. */
|
|
1702
|
+
type CalendarDate = string;
|
|
1703
|
+
/**
|
|
1704
|
+
* The schedule-instance model: per-date overrides of a routine's plan. MOVE
|
|
1705
|
+
* puts one weekly occurrence on another date (SCHED-04); SKIP marks it
|
|
1706
|
+
* skipped on purpose (SCHED-05). Overrides are kept by calendar date, not by
|
|
1707
|
+
* routine day, because routine edits replace the days.
|
|
1708
|
+
*/
|
|
1709
|
+
declare const SCHEDULE_OVERRIDE_KINDS: readonly ["MOVE", "SKIP"];
|
|
1710
|
+
type ScheduleOverrideKind = (typeof SCHEDULE_OVERRIDE_KINDS)[number];
|
|
1711
|
+
/** A move goes at most this many days before or after the planned date. */
|
|
1712
|
+
declare const SCHEDULE_MOVE_MAX_DAYS = 6;
|
|
1713
|
+
/**
|
|
1714
|
+
* SCHED-05: a skip can explain a planned day up to this many days back;
|
|
1715
|
+
* ahead, any planned day can be skipped.
|
|
1716
|
+
*/
|
|
1717
|
+
declare const SCHEDULE_SKIP_PAST_DAYS = 6;
|
|
1718
|
+
/** Overrides are read for at most this many days at once. */
|
|
1719
|
+
declare const SCHEDULE_OVERRIDES_MAX_RANGE_DAYS = 62;
|
|
1720
|
+
interface ScheduleOverride {
|
|
1721
|
+
id: string;
|
|
1722
|
+
routineId: string;
|
|
1723
|
+
/** The planned date this override changes. */
|
|
1724
|
+
date: CalendarDate;
|
|
1725
|
+
kind: ScheduleOverrideKind;
|
|
1726
|
+
/** MOVE: the date the occurrence now falls on; null for SKIP. */
|
|
1727
|
+
toDate: CalendarDate | null;
|
|
1728
|
+
createdAt: IsoDateString;
|
|
1729
|
+
}
|
|
1730
|
+
/**
|
|
1731
|
+
* `GET /schedule/overrides?from&to`: the owner's overrides whose date or
|
|
1732
|
+
* target falls in the range, both ends included.
|
|
1733
|
+
*/
|
|
1734
|
+
interface ScheduleOverridesQuery {
|
|
1735
|
+
from: CalendarDate;
|
|
1736
|
+
to: CalendarDate;
|
|
1737
|
+
}
|
|
1738
|
+
interface ScheduleOverridesResponse {
|
|
1739
|
+
overrides: ScheduleOverride[];
|
|
1740
|
+
}
|
|
1741
|
+
/** `PUT /schedule/overrides/move`: moves one occurrence, or moves it again. */
|
|
1742
|
+
interface MoveOccurrenceRequest {
|
|
1743
|
+
routineId: string;
|
|
1744
|
+
date: CalendarDate;
|
|
1745
|
+
toDate: CalendarDate;
|
|
1746
|
+
}
|
|
1747
|
+
/**
|
|
1748
|
+
* `PUT /schedule/overrides/skip`: marks one occurrence skipped. A moved
|
|
1749
|
+
* occurrence is skipped as a whole; undoing is `DELETE` like a move.
|
|
1750
|
+
*/
|
|
1751
|
+
interface SkipOccurrenceRequest {
|
|
1752
|
+
routineId: string;
|
|
1753
|
+
date: CalendarDate;
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1756
|
+
/** One routine may have this many current, non-overlapping planned blocks. */
|
|
1757
|
+
declare const ROUTINE_TRAINING_BLOCKS_MAX = 24;
|
|
1758
|
+
/** A started block keeps at most this many immutable revisions. */
|
|
1759
|
+
declare const ROUTINE_TRAINING_BLOCK_REVISIONS_MAX = 20;
|
|
1760
|
+
declare const ROUTINE_TRAINING_BLOCK_NAME_MAX = 60;
|
|
1761
|
+
declare const ROUTINE_TRAINING_BLOCK_STATES: readonly ["FUTURE", "ACTIVE", "COMPLETE"];
|
|
1762
|
+
type RoutineTrainingBlockState = (typeof ROUTINE_TRAINING_BLOCK_STATES)[number];
|
|
1763
|
+
declare const ROUTINE_TRAINING_BLOCK_SOURCE_KINDS: readonly ["CURRENT_ROUTINE", "SAVED_VERSION"];
|
|
1764
|
+
type RoutineTrainingBlockSourceKind = (typeof ROUTINE_TRAINING_BLOCK_SOURCE_KINDS)[number];
|
|
1765
|
+
/**
|
|
1766
|
+
* The origin is snapshotted so a later routine edit or ROUT-08 version
|
|
1767
|
+
* deletion cannot change what this block says it was authored from.
|
|
1768
|
+
*/
|
|
1769
|
+
interface RoutineTrainingBlockSource {
|
|
1770
|
+
kind: RoutineTrainingBlockSourceKind;
|
|
1771
|
+
versionId: string | null;
|
|
1772
|
+
versionNumber: number | null;
|
|
1773
|
+
versionName: string | null;
|
|
1774
|
+
}
|
|
1775
|
+
/** One immutable revision of a named, dated setup. */
|
|
1776
|
+
interface RoutineTrainingBlockRevision {
|
|
1777
|
+
id: string;
|
|
1778
|
+
routineId: string;
|
|
1779
|
+
/** Stable across every replacement of the same logical block. */
|
|
1780
|
+
seriesId: string;
|
|
1781
|
+
/** 1, 2, 3… inside the series. */
|
|
1782
|
+
revision: number;
|
|
1783
|
+
name: string;
|
|
1784
|
+
startDate: CalendarDate;
|
|
1785
|
+
endDate: CalendarDate;
|
|
1786
|
+
setup: RoutineVersionSetup;
|
|
1787
|
+
source: RoutineTrainingBlockSource;
|
|
1788
|
+
createdAt: IsoDateString;
|
|
1789
|
+
/** Null only on the current revision. */
|
|
1790
|
+
supersededAt: IsoDateString | null;
|
|
1791
|
+
}
|
|
1792
|
+
/** A current block in the routine timeline. State is relative to `today`. */
|
|
1793
|
+
interface RoutineTrainingBlock extends Omit<RoutineTrainingBlockRevision, 'supersededAt'> {
|
|
1794
|
+
state: RoutineTrainingBlockState;
|
|
1795
|
+
revisionCount: number;
|
|
1796
|
+
}
|
|
1797
|
+
/** `GET /routines/:id/training-blocks`, ordered by start date. */
|
|
1798
|
+
interface RoutineTrainingBlocksResponse {
|
|
1799
|
+
blocks: RoutineTrainingBlock[];
|
|
1800
|
+
max: number;
|
|
1801
|
+
revisionMax: number;
|
|
1802
|
+
/** The owner's local date used to derive every state in this response. */
|
|
1803
|
+
today: CalendarDate;
|
|
1804
|
+
}
|
|
1805
|
+
/** `GET /routines/:id/training-blocks/:blockId/revisions`, newest first. */
|
|
1806
|
+
interface RoutineTrainingBlockRevisionsResponse {
|
|
1807
|
+
seriesId: string;
|
|
1808
|
+
revisions: RoutineTrainingBlockRevision[];
|
|
1809
|
+
max: number;
|
|
1810
|
+
}
|
|
1811
|
+
/**
|
|
1812
|
+
* `POST /routines/:id/training-blocks` and
|
|
1813
|
+
* `PUT /routines/:id/training-blocks/:blockId`.
|
|
1814
|
+
* Null or omission captures the routine as it exists at request time.
|
|
1815
|
+
*/
|
|
1816
|
+
interface UpsertRoutineTrainingBlockRequest {
|
|
1817
|
+
name: string;
|
|
1818
|
+
startDate: CalendarDate;
|
|
1819
|
+
endDate: CalendarDate;
|
|
1820
|
+
sourceVersionId?: string | null;
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1701
1823
|
/** Owner-declared, both optional. Undeclared is not a default, it is unknown. */
|
|
1702
1824
|
interface RoutineClassification {
|
|
1703
1825
|
goal?: TrainingGoal | null;
|
|
@@ -2104,59 +2226,58 @@ interface DeleteActivityCommentResponse {
|
|
|
2104
2226
|
summary: ActivityCommentSummary;
|
|
2105
2227
|
}
|
|
2106
2228
|
|
|
2107
|
-
/**
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
declare const
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
declare const
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
interface
|
|
2229
|
+
/** SOC-08: one explicit grant from a member to their active training partner. */
|
|
2230
|
+
interface TrainingPartnerPermissions {
|
|
2231
|
+
schedule: boolean;
|
|
2232
|
+
progress: boolean;
|
|
2233
|
+
activity: boolean;
|
|
2234
|
+
routines: boolean;
|
|
2235
|
+
encouragement: boolean;
|
|
2236
|
+
}
|
|
2237
|
+
declare const TRAINING_PARTNER_PERMISSION_KEYS: readonly ["schedule", "progress", "activity", "routines", "encouragement"];
|
|
2238
|
+
declare const TRAINING_PARTNERS_MAX = 20;
|
|
2239
|
+
declare const TRAINING_PARTNER_REQUESTS_PER_DAY_MAX = 10;
|
|
2240
|
+
/** SOC-09: the complete, non-free-text encouragement vocabulary. */
|
|
2241
|
+
declare const TRAINING_PARTNER_ENCOURAGEMENT_KINDS: readonly ["READY_TO_TRAIN", "STRONG_SESSION", "GOOD_WORK", "KEEP_GOING"];
|
|
2242
|
+
type TrainingPartnerEncouragementKind = (typeof TRAINING_PARTNER_ENCOURAGEMENT_KINDS)[number];
|
|
2243
|
+
/** Per sender/recipient pair over a rolling window, not a calendar boundary. */
|
|
2244
|
+
declare const TRAINING_PARTNER_ENCOURAGEMENTS_PER_24_HOURS_MAX = 4;
|
|
2245
|
+
declare const TRAINING_PARTNERSHIP_STATUSES: readonly ["PENDING", "ACTIVE"];
|
|
2246
|
+
type TrainingPartnershipStatus = (typeof TRAINING_PARTNERSHIP_STATUSES)[number];
|
|
2247
|
+
/** One relationship as seen by either of its two members. */
|
|
2248
|
+
interface TrainingPartnership {
|
|
2127
2249
|
id: string;
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
toDate: CalendarDate | null;
|
|
2250
|
+
status: TrainingPartnershipStatus;
|
|
2251
|
+
member: UserSearchResponse;
|
|
2252
|
+
requestedByMe: boolean;
|
|
2253
|
+
permissionsGrantedByMe: TrainingPartnerPermissions;
|
|
2254
|
+
permissionsGrantedToMe: TrainingPartnerPermissions;
|
|
2134
2255
|
createdAt: IsoDateString;
|
|
2256
|
+
acceptedAt?: IsoDateString;
|
|
2257
|
+
}
|
|
2258
|
+
interface TrainingPartnershipsResponse {
|
|
2259
|
+
items: TrainingPartnership[];
|
|
2135
2260
|
}
|
|
2261
|
+
type UpdateTrainingPartnerPermissionsRequest = TrainingPartnerPermissions;
|
|
2136
2262
|
/**
|
|
2137
|
-
*
|
|
2138
|
-
*
|
|
2263
|
+
* Schedule access deliberately exposes dates and state, not routine names or
|
|
2264
|
+
* prescriptions. Those are governed independently by the routines grant.
|
|
2139
2265
|
*/
|
|
2140
|
-
interface
|
|
2141
|
-
|
|
2142
|
-
|
|
2266
|
+
interface TrainingPartnerScheduleDay {
|
|
2267
|
+
date: string;
|
|
2268
|
+
plannedWorkoutCount: number;
|
|
2269
|
+
trained: boolean;
|
|
2143
2270
|
}
|
|
2144
|
-
interface
|
|
2145
|
-
|
|
2271
|
+
interface TrainingPartnerScheduleResponse {
|
|
2272
|
+
timeZone: string;
|
|
2273
|
+
days: TrainingPartnerScheduleDay[];
|
|
2146
2274
|
}
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
routineId: string;
|
|
2150
|
-
date: CalendarDate;
|
|
2151
|
-
toDate: CalendarDate;
|
|
2275
|
+
interface SendTrainingPartnerEncouragementRequest {
|
|
2276
|
+
kind: TrainingPartnerEncouragementKind;
|
|
2152
2277
|
}
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
*/
|
|
2157
|
-
interface SkipOccurrenceRequest {
|
|
2158
|
-
routineId: string;
|
|
2159
|
-
date: CalendarDate;
|
|
2278
|
+
interface SendTrainingPartnerEncouragementResponse {
|
|
2279
|
+
notificationId: string;
|
|
2280
|
+
sentAt: IsoDateString;
|
|
2160
2281
|
}
|
|
2161
2282
|
|
|
2162
2283
|
/**
|
|
@@ -2165,7 +2286,7 @@ interface SkipOccurrenceRequest {
|
|
|
2165
2286
|
* history), a finished session that set records or changed loads, and a new
|
|
2166
2287
|
* follower.
|
|
2167
2288
|
*/
|
|
2168
|
-
declare const NOTIFICATION_KINDS: readonly ["ACHIEVEMENT", "SESSION_PROGRESS", "NEW_FOLLOWER", "ACTIVITY_COMMENT"];
|
|
2289
|
+
declare const NOTIFICATION_KINDS: readonly ["ACHIEVEMENT", "SESSION_PROGRESS", "NEW_FOLLOWER", "ACTIVITY_COMMENT", "TRAINING_PARTNER_ENCOURAGEMENT"];
|
|
2169
2290
|
type NotificationKind = (typeof NOTIFICATION_KINDS)[number];
|
|
2170
2291
|
/** Sources older than this many days are never gathered. */
|
|
2171
2292
|
declare const NOTIFICATIONS_LOOKBACK_DAYS = 30;
|
|
@@ -2232,8 +2353,21 @@ interface ActivityCommentNotification extends NotificationBase {
|
|
|
2232
2353
|
/** The activity entry commented on, for the link back to it. */
|
|
2233
2354
|
entryId: string;
|
|
2234
2355
|
}
|
|
2356
|
+
interface TrainingPartnerEncouragementNotification extends NotificationBase {
|
|
2357
|
+
kind: 'TRAINING_PARTNER_ENCOURAGEMENT';
|
|
2358
|
+
actor: {
|
|
2359
|
+
id: string;
|
|
2360
|
+
username: string;
|
|
2361
|
+
name: string;
|
|
2362
|
+
lastName: string | null;
|
|
2363
|
+
avatarUrl: string | null;
|
|
2364
|
+
};
|
|
2365
|
+
encouragement: {
|
|
2366
|
+
kind: TrainingPartnerEncouragementKind;
|
|
2367
|
+
};
|
|
2368
|
+
}
|
|
2235
2369
|
/** Named to stay clear of the DOM's `Notification`. */
|
|
2236
|
-
type AppNotification = AchievementNotification | SessionProgressNotification | NewFollowerNotification | ActivityCommentNotification;
|
|
2370
|
+
type AppNotification = AchievementNotification | SessionProgressNotification | NewFollowerNotification | ActivityCommentNotification | TrainingPartnerEncouragementNotification;
|
|
2237
2371
|
/** GET /notifications */
|
|
2238
2372
|
interface NotificationsResponse {
|
|
2239
2373
|
notifications: AppNotification[];
|
|
@@ -2449,46 +2583,4 @@ interface PlannedReminder {
|
|
|
2449
2583
|
routineNames: string[];
|
|
2450
2584
|
}
|
|
2451
2585
|
|
|
2452
|
-
/** SOC-08: one explicit grant from a member to their active training partner. */
|
|
2453
|
-
interface TrainingPartnerPermissions {
|
|
2454
|
-
schedule: boolean;
|
|
2455
|
-
progress: boolean;
|
|
2456
|
-
activity: boolean;
|
|
2457
|
-
routines: boolean;
|
|
2458
|
-
encouragement: boolean;
|
|
2459
|
-
}
|
|
2460
|
-
declare const TRAINING_PARTNER_PERMISSION_KEYS: readonly ["schedule", "progress", "activity", "routines", "encouragement"];
|
|
2461
|
-
declare const TRAINING_PARTNERS_MAX = 20;
|
|
2462
|
-
declare const TRAINING_PARTNER_REQUESTS_PER_DAY_MAX = 10;
|
|
2463
|
-
declare const TRAINING_PARTNERSHIP_STATUSES: readonly ["PENDING", "ACTIVE"];
|
|
2464
|
-
type TrainingPartnershipStatus = (typeof TRAINING_PARTNERSHIP_STATUSES)[number];
|
|
2465
|
-
/** One relationship as seen by either of its two members. */
|
|
2466
|
-
interface TrainingPartnership {
|
|
2467
|
-
id: string;
|
|
2468
|
-
status: TrainingPartnershipStatus;
|
|
2469
|
-
member: UserSearchResponse;
|
|
2470
|
-
requestedByMe: boolean;
|
|
2471
|
-
permissionsGrantedByMe: TrainingPartnerPermissions;
|
|
2472
|
-
permissionsGrantedToMe: TrainingPartnerPermissions;
|
|
2473
|
-
createdAt: IsoDateString;
|
|
2474
|
-
acceptedAt?: IsoDateString;
|
|
2475
|
-
}
|
|
2476
|
-
interface TrainingPartnershipsResponse {
|
|
2477
|
-
items: TrainingPartnership[];
|
|
2478
|
-
}
|
|
2479
|
-
type UpdateTrainingPartnerPermissionsRequest = TrainingPartnerPermissions;
|
|
2480
|
-
/**
|
|
2481
|
-
* Schedule access deliberately exposes dates and state, not routine names or
|
|
2482
|
-
* prescriptions. Those are governed independently by the routines grant.
|
|
2483
|
-
*/
|
|
2484
|
-
interface TrainingPartnerScheduleDay {
|
|
2485
|
-
date: string;
|
|
2486
|
-
plannedWorkoutCount: number;
|
|
2487
|
-
trained: boolean;
|
|
2488
|
-
}
|
|
2489
|
-
interface TrainingPartnerScheduleResponse {
|
|
2490
|
-
timeZone: string;
|
|
2491
|
-
days: TrainingPartnerScheduleDay[];
|
|
2492
|
-
}
|
|
2493
|
-
|
|
2494
|
-
export { 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, 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 AppNotification, BLOCKED_MEMBERS_MAX, type BlockedMember, type BlockedMembersResponse, type Brand, CLONE_ROUTINE_REFUSALS, COMEBACK_MIN_INACTIVE_DAYS, COMEBACK_RECOGNITION_LIMIT, COMEBACK_REQUIRED_ACTIVE_DAYS, COMEBACK_SESSION_LOOKBACK, COMEBACK_WINDOW_DAYS, type CalendarDate, type CloneRoutineRefusal, type CloneRoutineRequest, type ComebackActivity, type ComebackRecognition, type ComebackRecognitionSummary, type CreateActivityCommentRequest, type CreateActivityCommentResponse, type CreateReportRequest, type CreateReportResponse, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type CreateRoutineVersionRequest, type CreateSessionShareRequest, type DeleteActivityCommentResponse, type DeletePushSubscriptionRequest, type DiscoverableRoutine, EXERCISE_EQUIPMENT, EXERCISE_MECHANICS, type EarnedAchievement, type EarnedPersonalRecord, type Exercise, type ExerciseEquipment, 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, type IsoDateString, type ListSessionsParams, MEASURABLE_GOALS_MAX, MEASURABLE_GOAL_DIRECTIONS, MEASURABLE_GOAL_TYPES, MINUTES_IN_DAY, MODERATION_ACTION_KINDS, MODERATION_HISTORY_PAGE_SIZE, MODERATION_NOTE_MAX_LENGTH, MODERATION_QUEUE_PAGE_SIZE, MOVEMENT_PATTERNS, MUSCLE_GROUPS, type MarkNotificationsReadRequest, type MarkNotificationsReadResponse, type MeasurableGoal, type MeasurableGoalDirection, type MeasurableGoalExercise, type MeasurableGoalInput, type MeasurableGoalType, type MemberActivityResponse, type MemberModerationState, type MemberRoutinesResponse, 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, NOTIFICATIONS_LIST_LIMIT, NOTIFICATIONS_LOOKBACK_DAYS, NOTIFICATIONS_RETENTION_DAYS, NOTIFICATION_CATEGORIES, NOTIFICATION_KINDS, type NewFollowerNotification, type NotificationCategory, type NotificationKind, type NotificationPreferences, type NotificationPreferencesResponse, type NotificationsResponse, 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, 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 PlatePairInventory, 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, 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_VERSIONS_MAX, ROUTINE_VERSION_KINDS, ROUTINE_VERSION_NAME_MAX, ROUTINE_VISIBILITY_VALUES, type RecentActivityEntry, type RegisterPushSubscriptionRequest, type RelationshipListKind, type RelationshipListQuery, type RelationshipListResponse, type RelationshipMember, type RenaissanceRankDefinition, type RenaissanceRankProgress, type RepType, type ReplaceFeaturedProfileItemsRequest, type ReplaceMeasurableGoalsRequest, type ReplaceTrainingLocationsRequest, type ReportReason, type ReportStatus, type ReportSubjectKind, type ReportSubjectPreview, 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 RoutineScheduleMode, type RoutineSet, type RoutineShare, type RoutineShareListResponse, type RoutineSharedActivity, 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, SESSION_SHARE_DEFAULT_FIELDS, SESSION_SHARE_FIELDS, SESSION_SHARE_MAX_ACTIVE_LINKS, SEXES, SHARED_ROUTINE_SOURCES, STARRED_EXERCISES_MAX, STREAK_MAX_GAP_DAYS, type ScheduleOverride, type ScheduleOverrideKind, type ScheduleOverridesQuery, type ScheduleOverridesResponse, type ScheduleRestAlertRequest, type ScheduleRestAlertResponse, type SessionComparisonExercise, type SessionComparisonQuery, type SessionComparisonResponse, type SessionComparisonRoutineDay, type SessionComparisonSession, type SessionComparisonSet, type SessionCompletedActivity, type SessionExerciseSubstitution, type SessionProgressNotification, type SessionRecapRecord, type SessionShare, type SessionShareField, type SessionShareListResponse, type SetAccountTimeZoneRequest, type SetActivityEntryAudienceRequest, type SetActivityEntryAudienceResponse, type SetActivityReactionRequest, type SetActivityReactionResponse, type SetLog, type Sex, type SharedRoutine, type SharedRoutineOwner, type SharedRoutineSource, type SharedRoutineSummary, type SharedSessionOwner, type SharedSessionRecap, type SkipOccurrenceRequest, type StarredExercise, type StarredExercisesResponse, type StartWorkoutRequest, type StartWorkoutResponse, type StreakAtRiskPushPayload, type StreakMilestoneActivity, type StreakMilestoneEventPayload, type SubstituteSessionExerciseRequest, type SubstituteSessionExerciseResponse, type SupabaseAuthResponse, type SupabaseAuthUser, type SupabaseMigrationResponse, TRAINING_DISCIPLINE_VALUES, TRAINING_EVENT_TYPES, TRAINING_EXPERIENCE_LEVEL_VALUES, TRAINING_GOAL_VALUES, TRAINING_PARTNERSHIP_STATUSES, TRAINING_PARTNERS_MAX, TRAINING_PARTNER_PERMISSION_KEYS, TRAINING_PARTNER_REQUESTS_PER_DAY_MAX, type TrainingDiscipline, type TrainingEventType, type TrainingExperienceLevel, type TrainingGoal, type TrainingIdentity, type TrainingLocationPreference, type TrainingLocationPreferenceInput, type TrainingPartnerPermissions, type TrainingPartnerScheduleDay, type TrainingPartnerScheduleResponse, type TrainingPartnership, type TrainingPartnershipStatus, type TrainingPartnershipsResponse, type TrainingReminderPreference, type TrainingReminderPushPayload, USERNAME_MAX_LENGTH, USERNAME_MIN_LENGTH, USERNAME_PATTERN_SOURCE, type UpdateActivitySharingRequest, type UpdateNotificationPreferencesRequest, type UpdateProfileDiscoveryRequest, type UpdateProfilePrivacyRequest, type UpdateProfileRequest, type UpdateRoutineRequest, type UpdateRoutineVisibilityRequest, type UpdateTrainingPartnerPermissionsRequest, type UpsertSetLogRequest, type UpsertSetLogResponse, type UserId, type UserProfile, type UserSearchResponse, type VolumeTrendPoint, type VolumeTrendQuery, type VolumeTrendResponse, type VolumeTrendSeries, WEIGHT_UNITS, WORKOUT_SESSION_STATUSES, type WeightUnit, type WorkoutAnalyticsStatus, type WorkoutProgressQuery, type WorkoutProgressResponse, type WorkoutSession, type WorkoutSessionId, type WorkoutSessionListResponse, type WorkoutSessionRecap, type WorkoutSessionSnapshotV1, type WorkoutSessionStatus, type WorkoutSessionSummary, type WorkoutStatsQuery, type WorkoutStatsResponse, isWithinQuietHours, routineDayLabel };
|
|
2586
|
+
export { 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, 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 AppNotification, BLOCKED_MEMBERS_MAX, type BlockedMember, type BlockedMembersResponse, type Brand, CLONE_ROUTINE_REFUSALS, COMEBACK_MIN_INACTIVE_DAYS, COMEBACK_RECOGNITION_LIMIT, COMEBACK_REQUIRED_ACTIVE_DAYS, COMEBACK_SESSION_LOOKBACK, COMEBACK_WINDOW_DAYS, type CalendarDate, type CloneRoutineRefusal, type CloneRoutineRequest, type ComebackActivity, type ComebackRecognition, type ComebackRecognitionSummary, type CreateActivityCommentRequest, type CreateActivityCommentResponse, type CreateReportRequest, type CreateReportResponse, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type CreateRoutineVersionRequest, type CreateSessionShareRequest, type DeleteActivityCommentResponse, type DeletePushSubscriptionRequest, type DiscoverableRoutine, EXERCISE_EQUIPMENT, EXERCISE_MECHANICS, type EarnedAchievement, type EarnedPersonalRecord, type Exercise, type ExerciseEquipment, 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, type IsoDateString, type ListSessionsParams, MEASURABLE_GOALS_MAX, MEASURABLE_GOAL_DIRECTIONS, MEASURABLE_GOAL_TYPES, MINUTES_IN_DAY, MODERATION_ACTION_KINDS, MODERATION_HISTORY_PAGE_SIZE, MODERATION_NOTE_MAX_LENGTH, MODERATION_QUEUE_PAGE_SIZE, MOVEMENT_PATTERNS, MUSCLE_GROUPS, type MarkNotificationsReadRequest, type MarkNotificationsReadResponse, type MeasurableGoal, type MeasurableGoalDirection, type MeasurableGoalExercise, type MeasurableGoalInput, type MeasurableGoalType, type MemberActivityResponse, type MemberModerationState, type MemberRoutinesResponse, 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, NOTIFICATIONS_LIST_LIMIT, NOTIFICATIONS_LOOKBACK_DAYS, NOTIFICATIONS_RETENTION_DAYS, NOTIFICATION_CATEGORIES, NOTIFICATION_KINDS, type NewFollowerNotification, type NotificationCategory, type NotificationKind, type NotificationPreferences, type NotificationPreferencesResponse, type NotificationsResponse, 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, 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 PlatePairInventory, 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, 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 RecentActivityEntry, type RegisterPushSubscriptionRequest, type RelationshipListKind, type RelationshipListQuery, type RelationshipListResponse, type RelationshipMember, type RenaissanceRankDefinition, type RenaissanceRankProgress, type RepType, type ReplaceFeaturedProfileItemsRequest, type ReplaceMeasurableGoalsRequest, type ReplaceTrainingLocationsRequest, type ReportReason, type ReportStatus, type ReportSubjectKind, type ReportSubjectPreview, 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 RoutineScheduleMode, type RoutineSet, type RoutineShare, type RoutineShareListResponse, type RoutineSharedActivity, type RoutineTrainingBlock, 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, SESSION_SHARE_DEFAULT_FIELDS, SESSION_SHARE_FIELDS, SESSION_SHARE_MAX_ACTIVE_LINKS, SEXES, SHARED_ROUTINE_SOURCES, STARRED_EXERCISES_MAX, STREAK_MAX_GAP_DAYS, type ScheduleOverride, type ScheduleOverrideKind, type ScheduleOverridesQuery, type ScheduleOverridesResponse, type ScheduleRestAlertRequest, type ScheduleRestAlertResponse, type SendTrainingPartnerEncouragementRequest, type SendTrainingPartnerEncouragementResponse, type SessionComparisonExercise, type SessionComparisonQuery, type SessionComparisonResponse, type SessionComparisonRoutineDay, type SessionComparisonSession, type SessionComparisonSet, type SessionCompletedActivity, type SessionExerciseSubstitution, type SessionProgressNotification, type SessionRecapRecord, type SessionShare, type SessionShareField, type SessionShareListResponse, type SetAccountTimeZoneRequest, type SetActivityEntryAudienceRequest, type SetActivityEntryAudienceResponse, type SetActivityReactionRequest, type SetActivityReactionResponse, type SetLog, type Sex, type SharedRoutine, type SharedRoutineOwner, type SharedRoutineSource, type SharedRoutineSummary, type SharedSessionOwner, type SharedSessionRecap, type SkipOccurrenceRequest, type StarredExercise, type StarredExercisesResponse, type StartWorkoutRequest, type StartWorkoutResponse, type StreakAtRiskPushPayload, type StreakMilestoneActivity, type StreakMilestoneEventPayload, type SubstituteSessionExerciseRequest, type SubstituteSessionExerciseResponse, type SupabaseAuthResponse, type SupabaseAuthUser, type SupabaseMigrationResponse, 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, type TrainingDiscipline, type TrainingEventType, type TrainingExperienceLevel, type TrainingGoal, type TrainingIdentity, type TrainingLocationPreference, type TrainingLocationPreferenceInput, type TrainingPartnerEncouragementKind, type TrainingPartnerEncouragementNotification, type TrainingPartnerPermissions, type TrainingPartnerScheduleDay, type TrainingPartnerScheduleResponse, type TrainingPartnership, type TrainingPartnershipStatus, type TrainingPartnershipsResponse, type TrainingReminderPreference, type TrainingReminderPushPayload, USERNAME_MAX_LENGTH, USERNAME_MIN_LENGTH, USERNAME_PATTERN_SOURCE, type UpdateActivitySharingRequest, type UpdateNotificationPreferencesRequest, type UpdateProfileDiscoveryRequest, type UpdateProfilePrivacyRequest, type UpdateProfileRequest, type UpdateRoutineRequest, type UpdateRoutineVisibilityRequest, type UpdateTrainingPartnerPermissionsRequest, type UpsertRoutineTrainingBlockRequest, type UpsertSetLogRequest, type UpsertSetLogResponse, type UserId, type UserProfile, type UserSearchResponse, type VolumeTrendPoint, type VolumeTrendQuery, type VolumeTrendResponse, type VolumeTrendSeries, WEIGHT_UNITS, WORKOUT_SESSION_STATUSES, type WeightUnit, type WorkoutAnalyticsStatus, type WorkoutProgressQuery, type WorkoutProgressResponse, type WorkoutSession, type WorkoutSessionId, type WorkoutSessionListResponse, type WorkoutSessionRecap, type WorkoutSessionSnapshotV1, type WorkoutSessionStatus, type WorkoutSessionSummary, type WorkoutStatsQuery, type WorkoutStatsResponse, isWithinQuietHours, routineDayLabel };
|
package/dist/index.d.ts
CHANGED
|
@@ -1698,6 +1698,128 @@ interface PersonalGoalsResponse {
|
|
|
1698
1698
|
goals: PersonalGoalProgress[];
|
|
1699
1699
|
}
|
|
1700
1700
|
|
|
1701
|
+
/** A local calendar date, YYYY-MM-DD. */
|
|
1702
|
+
type CalendarDate = string;
|
|
1703
|
+
/**
|
|
1704
|
+
* The schedule-instance model: per-date overrides of a routine's plan. MOVE
|
|
1705
|
+
* puts one weekly occurrence on another date (SCHED-04); SKIP marks it
|
|
1706
|
+
* skipped on purpose (SCHED-05). Overrides are kept by calendar date, not by
|
|
1707
|
+
* routine day, because routine edits replace the days.
|
|
1708
|
+
*/
|
|
1709
|
+
declare const SCHEDULE_OVERRIDE_KINDS: readonly ["MOVE", "SKIP"];
|
|
1710
|
+
type ScheduleOverrideKind = (typeof SCHEDULE_OVERRIDE_KINDS)[number];
|
|
1711
|
+
/** A move goes at most this many days before or after the planned date. */
|
|
1712
|
+
declare const SCHEDULE_MOVE_MAX_DAYS = 6;
|
|
1713
|
+
/**
|
|
1714
|
+
* SCHED-05: a skip can explain a planned day up to this many days back;
|
|
1715
|
+
* ahead, any planned day can be skipped.
|
|
1716
|
+
*/
|
|
1717
|
+
declare const SCHEDULE_SKIP_PAST_DAYS = 6;
|
|
1718
|
+
/** Overrides are read for at most this many days at once. */
|
|
1719
|
+
declare const SCHEDULE_OVERRIDES_MAX_RANGE_DAYS = 62;
|
|
1720
|
+
interface ScheduleOverride {
|
|
1721
|
+
id: string;
|
|
1722
|
+
routineId: string;
|
|
1723
|
+
/** The planned date this override changes. */
|
|
1724
|
+
date: CalendarDate;
|
|
1725
|
+
kind: ScheduleOverrideKind;
|
|
1726
|
+
/** MOVE: the date the occurrence now falls on; null for SKIP. */
|
|
1727
|
+
toDate: CalendarDate | null;
|
|
1728
|
+
createdAt: IsoDateString;
|
|
1729
|
+
}
|
|
1730
|
+
/**
|
|
1731
|
+
* `GET /schedule/overrides?from&to`: the owner's overrides whose date or
|
|
1732
|
+
* target falls in the range, both ends included.
|
|
1733
|
+
*/
|
|
1734
|
+
interface ScheduleOverridesQuery {
|
|
1735
|
+
from: CalendarDate;
|
|
1736
|
+
to: CalendarDate;
|
|
1737
|
+
}
|
|
1738
|
+
interface ScheduleOverridesResponse {
|
|
1739
|
+
overrides: ScheduleOverride[];
|
|
1740
|
+
}
|
|
1741
|
+
/** `PUT /schedule/overrides/move`: moves one occurrence, or moves it again. */
|
|
1742
|
+
interface MoveOccurrenceRequest {
|
|
1743
|
+
routineId: string;
|
|
1744
|
+
date: CalendarDate;
|
|
1745
|
+
toDate: CalendarDate;
|
|
1746
|
+
}
|
|
1747
|
+
/**
|
|
1748
|
+
* `PUT /schedule/overrides/skip`: marks one occurrence skipped. A moved
|
|
1749
|
+
* occurrence is skipped as a whole; undoing is `DELETE` like a move.
|
|
1750
|
+
*/
|
|
1751
|
+
interface SkipOccurrenceRequest {
|
|
1752
|
+
routineId: string;
|
|
1753
|
+
date: CalendarDate;
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1756
|
+
/** One routine may have this many current, non-overlapping planned blocks. */
|
|
1757
|
+
declare const ROUTINE_TRAINING_BLOCKS_MAX = 24;
|
|
1758
|
+
/** A started block keeps at most this many immutable revisions. */
|
|
1759
|
+
declare const ROUTINE_TRAINING_BLOCK_REVISIONS_MAX = 20;
|
|
1760
|
+
declare const ROUTINE_TRAINING_BLOCK_NAME_MAX = 60;
|
|
1761
|
+
declare const ROUTINE_TRAINING_BLOCK_STATES: readonly ["FUTURE", "ACTIVE", "COMPLETE"];
|
|
1762
|
+
type RoutineTrainingBlockState = (typeof ROUTINE_TRAINING_BLOCK_STATES)[number];
|
|
1763
|
+
declare const ROUTINE_TRAINING_BLOCK_SOURCE_KINDS: readonly ["CURRENT_ROUTINE", "SAVED_VERSION"];
|
|
1764
|
+
type RoutineTrainingBlockSourceKind = (typeof ROUTINE_TRAINING_BLOCK_SOURCE_KINDS)[number];
|
|
1765
|
+
/**
|
|
1766
|
+
* The origin is snapshotted so a later routine edit or ROUT-08 version
|
|
1767
|
+
* deletion cannot change what this block says it was authored from.
|
|
1768
|
+
*/
|
|
1769
|
+
interface RoutineTrainingBlockSource {
|
|
1770
|
+
kind: RoutineTrainingBlockSourceKind;
|
|
1771
|
+
versionId: string | null;
|
|
1772
|
+
versionNumber: number | null;
|
|
1773
|
+
versionName: string | null;
|
|
1774
|
+
}
|
|
1775
|
+
/** One immutable revision of a named, dated setup. */
|
|
1776
|
+
interface RoutineTrainingBlockRevision {
|
|
1777
|
+
id: string;
|
|
1778
|
+
routineId: string;
|
|
1779
|
+
/** Stable across every replacement of the same logical block. */
|
|
1780
|
+
seriesId: string;
|
|
1781
|
+
/** 1, 2, 3… inside the series. */
|
|
1782
|
+
revision: number;
|
|
1783
|
+
name: string;
|
|
1784
|
+
startDate: CalendarDate;
|
|
1785
|
+
endDate: CalendarDate;
|
|
1786
|
+
setup: RoutineVersionSetup;
|
|
1787
|
+
source: RoutineTrainingBlockSource;
|
|
1788
|
+
createdAt: IsoDateString;
|
|
1789
|
+
/** Null only on the current revision. */
|
|
1790
|
+
supersededAt: IsoDateString | null;
|
|
1791
|
+
}
|
|
1792
|
+
/** A current block in the routine timeline. State is relative to `today`. */
|
|
1793
|
+
interface RoutineTrainingBlock extends Omit<RoutineTrainingBlockRevision, 'supersededAt'> {
|
|
1794
|
+
state: RoutineTrainingBlockState;
|
|
1795
|
+
revisionCount: number;
|
|
1796
|
+
}
|
|
1797
|
+
/** `GET /routines/:id/training-blocks`, ordered by start date. */
|
|
1798
|
+
interface RoutineTrainingBlocksResponse {
|
|
1799
|
+
blocks: RoutineTrainingBlock[];
|
|
1800
|
+
max: number;
|
|
1801
|
+
revisionMax: number;
|
|
1802
|
+
/** The owner's local date used to derive every state in this response. */
|
|
1803
|
+
today: CalendarDate;
|
|
1804
|
+
}
|
|
1805
|
+
/** `GET /routines/:id/training-blocks/:blockId/revisions`, newest first. */
|
|
1806
|
+
interface RoutineTrainingBlockRevisionsResponse {
|
|
1807
|
+
seriesId: string;
|
|
1808
|
+
revisions: RoutineTrainingBlockRevision[];
|
|
1809
|
+
max: number;
|
|
1810
|
+
}
|
|
1811
|
+
/**
|
|
1812
|
+
* `POST /routines/:id/training-blocks` and
|
|
1813
|
+
* `PUT /routines/:id/training-blocks/:blockId`.
|
|
1814
|
+
* Null or omission captures the routine as it exists at request time.
|
|
1815
|
+
*/
|
|
1816
|
+
interface UpsertRoutineTrainingBlockRequest {
|
|
1817
|
+
name: string;
|
|
1818
|
+
startDate: CalendarDate;
|
|
1819
|
+
endDate: CalendarDate;
|
|
1820
|
+
sourceVersionId?: string | null;
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1701
1823
|
/** Owner-declared, both optional. Undeclared is not a default, it is unknown. */
|
|
1702
1824
|
interface RoutineClassification {
|
|
1703
1825
|
goal?: TrainingGoal | null;
|
|
@@ -2104,59 +2226,58 @@ interface DeleteActivityCommentResponse {
|
|
|
2104
2226
|
summary: ActivityCommentSummary;
|
|
2105
2227
|
}
|
|
2106
2228
|
|
|
2107
|
-
/**
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
declare const
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
declare const
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
interface
|
|
2229
|
+
/** SOC-08: one explicit grant from a member to their active training partner. */
|
|
2230
|
+
interface TrainingPartnerPermissions {
|
|
2231
|
+
schedule: boolean;
|
|
2232
|
+
progress: boolean;
|
|
2233
|
+
activity: boolean;
|
|
2234
|
+
routines: boolean;
|
|
2235
|
+
encouragement: boolean;
|
|
2236
|
+
}
|
|
2237
|
+
declare const TRAINING_PARTNER_PERMISSION_KEYS: readonly ["schedule", "progress", "activity", "routines", "encouragement"];
|
|
2238
|
+
declare const TRAINING_PARTNERS_MAX = 20;
|
|
2239
|
+
declare const TRAINING_PARTNER_REQUESTS_PER_DAY_MAX = 10;
|
|
2240
|
+
/** SOC-09: the complete, non-free-text encouragement vocabulary. */
|
|
2241
|
+
declare const TRAINING_PARTNER_ENCOURAGEMENT_KINDS: readonly ["READY_TO_TRAIN", "STRONG_SESSION", "GOOD_WORK", "KEEP_GOING"];
|
|
2242
|
+
type TrainingPartnerEncouragementKind = (typeof TRAINING_PARTNER_ENCOURAGEMENT_KINDS)[number];
|
|
2243
|
+
/** Per sender/recipient pair over a rolling window, not a calendar boundary. */
|
|
2244
|
+
declare const TRAINING_PARTNER_ENCOURAGEMENTS_PER_24_HOURS_MAX = 4;
|
|
2245
|
+
declare const TRAINING_PARTNERSHIP_STATUSES: readonly ["PENDING", "ACTIVE"];
|
|
2246
|
+
type TrainingPartnershipStatus = (typeof TRAINING_PARTNERSHIP_STATUSES)[number];
|
|
2247
|
+
/** One relationship as seen by either of its two members. */
|
|
2248
|
+
interface TrainingPartnership {
|
|
2127
2249
|
id: string;
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
toDate: CalendarDate | null;
|
|
2250
|
+
status: TrainingPartnershipStatus;
|
|
2251
|
+
member: UserSearchResponse;
|
|
2252
|
+
requestedByMe: boolean;
|
|
2253
|
+
permissionsGrantedByMe: TrainingPartnerPermissions;
|
|
2254
|
+
permissionsGrantedToMe: TrainingPartnerPermissions;
|
|
2134
2255
|
createdAt: IsoDateString;
|
|
2256
|
+
acceptedAt?: IsoDateString;
|
|
2257
|
+
}
|
|
2258
|
+
interface TrainingPartnershipsResponse {
|
|
2259
|
+
items: TrainingPartnership[];
|
|
2135
2260
|
}
|
|
2261
|
+
type UpdateTrainingPartnerPermissionsRequest = TrainingPartnerPermissions;
|
|
2136
2262
|
/**
|
|
2137
|
-
*
|
|
2138
|
-
*
|
|
2263
|
+
* Schedule access deliberately exposes dates and state, not routine names or
|
|
2264
|
+
* prescriptions. Those are governed independently by the routines grant.
|
|
2139
2265
|
*/
|
|
2140
|
-
interface
|
|
2141
|
-
|
|
2142
|
-
|
|
2266
|
+
interface TrainingPartnerScheduleDay {
|
|
2267
|
+
date: string;
|
|
2268
|
+
plannedWorkoutCount: number;
|
|
2269
|
+
trained: boolean;
|
|
2143
2270
|
}
|
|
2144
|
-
interface
|
|
2145
|
-
|
|
2271
|
+
interface TrainingPartnerScheduleResponse {
|
|
2272
|
+
timeZone: string;
|
|
2273
|
+
days: TrainingPartnerScheduleDay[];
|
|
2146
2274
|
}
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
routineId: string;
|
|
2150
|
-
date: CalendarDate;
|
|
2151
|
-
toDate: CalendarDate;
|
|
2275
|
+
interface SendTrainingPartnerEncouragementRequest {
|
|
2276
|
+
kind: TrainingPartnerEncouragementKind;
|
|
2152
2277
|
}
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
*/
|
|
2157
|
-
interface SkipOccurrenceRequest {
|
|
2158
|
-
routineId: string;
|
|
2159
|
-
date: CalendarDate;
|
|
2278
|
+
interface SendTrainingPartnerEncouragementResponse {
|
|
2279
|
+
notificationId: string;
|
|
2280
|
+
sentAt: IsoDateString;
|
|
2160
2281
|
}
|
|
2161
2282
|
|
|
2162
2283
|
/**
|
|
@@ -2165,7 +2286,7 @@ interface SkipOccurrenceRequest {
|
|
|
2165
2286
|
* history), a finished session that set records or changed loads, and a new
|
|
2166
2287
|
* follower.
|
|
2167
2288
|
*/
|
|
2168
|
-
declare const NOTIFICATION_KINDS: readonly ["ACHIEVEMENT", "SESSION_PROGRESS", "NEW_FOLLOWER", "ACTIVITY_COMMENT"];
|
|
2289
|
+
declare const NOTIFICATION_KINDS: readonly ["ACHIEVEMENT", "SESSION_PROGRESS", "NEW_FOLLOWER", "ACTIVITY_COMMENT", "TRAINING_PARTNER_ENCOURAGEMENT"];
|
|
2169
2290
|
type NotificationKind = (typeof NOTIFICATION_KINDS)[number];
|
|
2170
2291
|
/** Sources older than this many days are never gathered. */
|
|
2171
2292
|
declare const NOTIFICATIONS_LOOKBACK_DAYS = 30;
|
|
@@ -2232,8 +2353,21 @@ interface ActivityCommentNotification extends NotificationBase {
|
|
|
2232
2353
|
/** The activity entry commented on, for the link back to it. */
|
|
2233
2354
|
entryId: string;
|
|
2234
2355
|
}
|
|
2356
|
+
interface TrainingPartnerEncouragementNotification extends NotificationBase {
|
|
2357
|
+
kind: 'TRAINING_PARTNER_ENCOURAGEMENT';
|
|
2358
|
+
actor: {
|
|
2359
|
+
id: string;
|
|
2360
|
+
username: string;
|
|
2361
|
+
name: string;
|
|
2362
|
+
lastName: string | null;
|
|
2363
|
+
avatarUrl: string | null;
|
|
2364
|
+
};
|
|
2365
|
+
encouragement: {
|
|
2366
|
+
kind: TrainingPartnerEncouragementKind;
|
|
2367
|
+
};
|
|
2368
|
+
}
|
|
2235
2369
|
/** Named to stay clear of the DOM's `Notification`. */
|
|
2236
|
-
type AppNotification = AchievementNotification | SessionProgressNotification | NewFollowerNotification | ActivityCommentNotification;
|
|
2370
|
+
type AppNotification = AchievementNotification | SessionProgressNotification | NewFollowerNotification | ActivityCommentNotification | TrainingPartnerEncouragementNotification;
|
|
2237
2371
|
/** GET /notifications */
|
|
2238
2372
|
interface NotificationsResponse {
|
|
2239
2373
|
notifications: AppNotification[];
|
|
@@ -2449,46 +2583,4 @@ interface PlannedReminder {
|
|
|
2449
2583
|
routineNames: string[];
|
|
2450
2584
|
}
|
|
2451
2585
|
|
|
2452
|
-
/** SOC-08: one explicit grant from a member to their active training partner. */
|
|
2453
|
-
interface TrainingPartnerPermissions {
|
|
2454
|
-
schedule: boolean;
|
|
2455
|
-
progress: boolean;
|
|
2456
|
-
activity: boolean;
|
|
2457
|
-
routines: boolean;
|
|
2458
|
-
encouragement: boolean;
|
|
2459
|
-
}
|
|
2460
|
-
declare const TRAINING_PARTNER_PERMISSION_KEYS: readonly ["schedule", "progress", "activity", "routines", "encouragement"];
|
|
2461
|
-
declare const TRAINING_PARTNERS_MAX = 20;
|
|
2462
|
-
declare const TRAINING_PARTNER_REQUESTS_PER_DAY_MAX = 10;
|
|
2463
|
-
declare const TRAINING_PARTNERSHIP_STATUSES: readonly ["PENDING", "ACTIVE"];
|
|
2464
|
-
type TrainingPartnershipStatus = (typeof TRAINING_PARTNERSHIP_STATUSES)[number];
|
|
2465
|
-
/** One relationship as seen by either of its two members. */
|
|
2466
|
-
interface TrainingPartnership {
|
|
2467
|
-
id: string;
|
|
2468
|
-
status: TrainingPartnershipStatus;
|
|
2469
|
-
member: UserSearchResponse;
|
|
2470
|
-
requestedByMe: boolean;
|
|
2471
|
-
permissionsGrantedByMe: TrainingPartnerPermissions;
|
|
2472
|
-
permissionsGrantedToMe: TrainingPartnerPermissions;
|
|
2473
|
-
createdAt: IsoDateString;
|
|
2474
|
-
acceptedAt?: IsoDateString;
|
|
2475
|
-
}
|
|
2476
|
-
interface TrainingPartnershipsResponse {
|
|
2477
|
-
items: TrainingPartnership[];
|
|
2478
|
-
}
|
|
2479
|
-
type UpdateTrainingPartnerPermissionsRequest = TrainingPartnerPermissions;
|
|
2480
|
-
/**
|
|
2481
|
-
* Schedule access deliberately exposes dates and state, not routine names or
|
|
2482
|
-
* prescriptions. Those are governed independently by the routines grant.
|
|
2483
|
-
*/
|
|
2484
|
-
interface TrainingPartnerScheduleDay {
|
|
2485
|
-
date: string;
|
|
2486
|
-
plannedWorkoutCount: number;
|
|
2487
|
-
trained: boolean;
|
|
2488
|
-
}
|
|
2489
|
-
interface TrainingPartnerScheduleResponse {
|
|
2490
|
-
timeZone: string;
|
|
2491
|
-
days: TrainingPartnerScheduleDay[];
|
|
2492
|
-
}
|
|
2493
|
-
|
|
2494
|
-
export { 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, 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 AppNotification, BLOCKED_MEMBERS_MAX, type BlockedMember, type BlockedMembersResponse, type Brand, CLONE_ROUTINE_REFUSALS, COMEBACK_MIN_INACTIVE_DAYS, COMEBACK_RECOGNITION_LIMIT, COMEBACK_REQUIRED_ACTIVE_DAYS, COMEBACK_SESSION_LOOKBACK, COMEBACK_WINDOW_DAYS, type CalendarDate, type CloneRoutineRefusal, type CloneRoutineRequest, type ComebackActivity, type ComebackRecognition, type ComebackRecognitionSummary, type CreateActivityCommentRequest, type CreateActivityCommentResponse, type CreateReportRequest, type CreateReportResponse, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type CreateRoutineVersionRequest, type CreateSessionShareRequest, type DeleteActivityCommentResponse, type DeletePushSubscriptionRequest, type DiscoverableRoutine, EXERCISE_EQUIPMENT, EXERCISE_MECHANICS, type EarnedAchievement, type EarnedPersonalRecord, type Exercise, type ExerciseEquipment, 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, type IsoDateString, type ListSessionsParams, MEASURABLE_GOALS_MAX, MEASURABLE_GOAL_DIRECTIONS, MEASURABLE_GOAL_TYPES, MINUTES_IN_DAY, MODERATION_ACTION_KINDS, MODERATION_HISTORY_PAGE_SIZE, MODERATION_NOTE_MAX_LENGTH, MODERATION_QUEUE_PAGE_SIZE, MOVEMENT_PATTERNS, MUSCLE_GROUPS, type MarkNotificationsReadRequest, type MarkNotificationsReadResponse, type MeasurableGoal, type MeasurableGoalDirection, type MeasurableGoalExercise, type MeasurableGoalInput, type MeasurableGoalType, type MemberActivityResponse, type MemberModerationState, type MemberRoutinesResponse, 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, NOTIFICATIONS_LIST_LIMIT, NOTIFICATIONS_LOOKBACK_DAYS, NOTIFICATIONS_RETENTION_DAYS, NOTIFICATION_CATEGORIES, NOTIFICATION_KINDS, type NewFollowerNotification, type NotificationCategory, type NotificationKind, type NotificationPreferences, type NotificationPreferencesResponse, type NotificationsResponse, 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, 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 PlatePairInventory, 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, 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_VERSIONS_MAX, ROUTINE_VERSION_KINDS, ROUTINE_VERSION_NAME_MAX, ROUTINE_VISIBILITY_VALUES, type RecentActivityEntry, type RegisterPushSubscriptionRequest, type RelationshipListKind, type RelationshipListQuery, type RelationshipListResponse, type RelationshipMember, type RenaissanceRankDefinition, type RenaissanceRankProgress, type RepType, type ReplaceFeaturedProfileItemsRequest, type ReplaceMeasurableGoalsRequest, type ReplaceTrainingLocationsRequest, type ReportReason, type ReportStatus, type ReportSubjectKind, type ReportSubjectPreview, 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 RoutineScheduleMode, type RoutineSet, type RoutineShare, type RoutineShareListResponse, type RoutineSharedActivity, 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, SESSION_SHARE_DEFAULT_FIELDS, SESSION_SHARE_FIELDS, SESSION_SHARE_MAX_ACTIVE_LINKS, SEXES, SHARED_ROUTINE_SOURCES, STARRED_EXERCISES_MAX, STREAK_MAX_GAP_DAYS, type ScheduleOverride, type ScheduleOverrideKind, type ScheduleOverridesQuery, type ScheduleOverridesResponse, type ScheduleRestAlertRequest, type ScheduleRestAlertResponse, type SessionComparisonExercise, type SessionComparisonQuery, type SessionComparisonResponse, type SessionComparisonRoutineDay, type SessionComparisonSession, type SessionComparisonSet, type SessionCompletedActivity, type SessionExerciseSubstitution, type SessionProgressNotification, type SessionRecapRecord, type SessionShare, type SessionShareField, type SessionShareListResponse, type SetAccountTimeZoneRequest, type SetActivityEntryAudienceRequest, type SetActivityEntryAudienceResponse, type SetActivityReactionRequest, type SetActivityReactionResponse, type SetLog, type Sex, type SharedRoutine, type SharedRoutineOwner, type SharedRoutineSource, type SharedRoutineSummary, type SharedSessionOwner, type SharedSessionRecap, type SkipOccurrenceRequest, type StarredExercise, type StarredExercisesResponse, type StartWorkoutRequest, type StartWorkoutResponse, type StreakAtRiskPushPayload, type StreakMilestoneActivity, type StreakMilestoneEventPayload, type SubstituteSessionExerciseRequest, type SubstituteSessionExerciseResponse, type SupabaseAuthResponse, type SupabaseAuthUser, type SupabaseMigrationResponse, TRAINING_DISCIPLINE_VALUES, TRAINING_EVENT_TYPES, TRAINING_EXPERIENCE_LEVEL_VALUES, TRAINING_GOAL_VALUES, TRAINING_PARTNERSHIP_STATUSES, TRAINING_PARTNERS_MAX, TRAINING_PARTNER_PERMISSION_KEYS, TRAINING_PARTNER_REQUESTS_PER_DAY_MAX, type TrainingDiscipline, type TrainingEventType, type TrainingExperienceLevel, type TrainingGoal, type TrainingIdentity, type TrainingLocationPreference, type TrainingLocationPreferenceInput, type TrainingPartnerPermissions, type TrainingPartnerScheduleDay, type TrainingPartnerScheduleResponse, type TrainingPartnership, type TrainingPartnershipStatus, type TrainingPartnershipsResponse, type TrainingReminderPreference, type TrainingReminderPushPayload, USERNAME_MAX_LENGTH, USERNAME_MIN_LENGTH, USERNAME_PATTERN_SOURCE, type UpdateActivitySharingRequest, type UpdateNotificationPreferencesRequest, type UpdateProfileDiscoveryRequest, type UpdateProfilePrivacyRequest, type UpdateProfileRequest, type UpdateRoutineRequest, type UpdateRoutineVisibilityRequest, type UpdateTrainingPartnerPermissionsRequest, type UpsertSetLogRequest, type UpsertSetLogResponse, type UserId, type UserProfile, type UserSearchResponse, type VolumeTrendPoint, type VolumeTrendQuery, type VolumeTrendResponse, type VolumeTrendSeries, WEIGHT_UNITS, WORKOUT_SESSION_STATUSES, type WeightUnit, type WorkoutAnalyticsStatus, type WorkoutProgressQuery, type WorkoutProgressResponse, type WorkoutSession, type WorkoutSessionId, type WorkoutSessionListResponse, type WorkoutSessionRecap, type WorkoutSessionSnapshotV1, type WorkoutSessionStatus, type WorkoutSessionSummary, type WorkoutStatsQuery, type WorkoutStatsResponse, isWithinQuietHours, routineDayLabel };
|
|
2586
|
+
export { 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, 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 AppNotification, BLOCKED_MEMBERS_MAX, type BlockedMember, type BlockedMembersResponse, type Brand, CLONE_ROUTINE_REFUSALS, COMEBACK_MIN_INACTIVE_DAYS, COMEBACK_RECOGNITION_LIMIT, COMEBACK_REQUIRED_ACTIVE_DAYS, COMEBACK_SESSION_LOOKBACK, COMEBACK_WINDOW_DAYS, type CalendarDate, type CloneRoutineRefusal, type CloneRoutineRequest, type ComebackActivity, type ComebackRecognition, type ComebackRecognitionSummary, type CreateActivityCommentRequest, type CreateActivityCommentResponse, type CreateReportRequest, type CreateReportResponse, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type CreateRoutineVersionRequest, type CreateSessionShareRequest, type DeleteActivityCommentResponse, type DeletePushSubscriptionRequest, type DiscoverableRoutine, EXERCISE_EQUIPMENT, EXERCISE_MECHANICS, type EarnedAchievement, type EarnedPersonalRecord, type Exercise, type ExerciseEquipment, 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, type IsoDateString, type ListSessionsParams, MEASURABLE_GOALS_MAX, MEASURABLE_GOAL_DIRECTIONS, MEASURABLE_GOAL_TYPES, MINUTES_IN_DAY, MODERATION_ACTION_KINDS, MODERATION_HISTORY_PAGE_SIZE, MODERATION_NOTE_MAX_LENGTH, MODERATION_QUEUE_PAGE_SIZE, MOVEMENT_PATTERNS, MUSCLE_GROUPS, type MarkNotificationsReadRequest, type MarkNotificationsReadResponse, type MeasurableGoal, type MeasurableGoalDirection, type MeasurableGoalExercise, type MeasurableGoalInput, type MeasurableGoalType, type MemberActivityResponse, type MemberModerationState, type MemberRoutinesResponse, 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, NOTIFICATIONS_LIST_LIMIT, NOTIFICATIONS_LOOKBACK_DAYS, NOTIFICATIONS_RETENTION_DAYS, NOTIFICATION_CATEGORIES, NOTIFICATION_KINDS, type NewFollowerNotification, type NotificationCategory, type NotificationKind, type NotificationPreferences, type NotificationPreferencesResponse, type NotificationsResponse, 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, 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 PlatePairInventory, 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, 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 RecentActivityEntry, type RegisterPushSubscriptionRequest, type RelationshipListKind, type RelationshipListQuery, type RelationshipListResponse, type RelationshipMember, type RenaissanceRankDefinition, type RenaissanceRankProgress, type RepType, type ReplaceFeaturedProfileItemsRequest, type ReplaceMeasurableGoalsRequest, type ReplaceTrainingLocationsRequest, type ReportReason, type ReportStatus, type ReportSubjectKind, type ReportSubjectPreview, 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 RoutineScheduleMode, type RoutineSet, type RoutineShare, type RoutineShareListResponse, type RoutineSharedActivity, type RoutineTrainingBlock, 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, SESSION_SHARE_DEFAULT_FIELDS, SESSION_SHARE_FIELDS, SESSION_SHARE_MAX_ACTIVE_LINKS, SEXES, SHARED_ROUTINE_SOURCES, STARRED_EXERCISES_MAX, STREAK_MAX_GAP_DAYS, type ScheduleOverride, type ScheduleOverrideKind, type ScheduleOverridesQuery, type ScheduleOverridesResponse, type ScheduleRestAlertRequest, type ScheduleRestAlertResponse, type SendTrainingPartnerEncouragementRequest, type SendTrainingPartnerEncouragementResponse, type SessionComparisonExercise, type SessionComparisonQuery, type SessionComparisonResponse, type SessionComparisonRoutineDay, type SessionComparisonSession, type SessionComparisonSet, type SessionCompletedActivity, type SessionExerciseSubstitution, type SessionProgressNotification, type SessionRecapRecord, type SessionShare, type SessionShareField, type SessionShareListResponse, type SetAccountTimeZoneRequest, type SetActivityEntryAudienceRequest, type SetActivityEntryAudienceResponse, type SetActivityReactionRequest, type SetActivityReactionResponse, type SetLog, type Sex, type SharedRoutine, type SharedRoutineOwner, type SharedRoutineSource, type SharedRoutineSummary, type SharedSessionOwner, type SharedSessionRecap, type SkipOccurrenceRequest, type StarredExercise, type StarredExercisesResponse, type StartWorkoutRequest, type StartWorkoutResponse, type StreakAtRiskPushPayload, type StreakMilestoneActivity, type StreakMilestoneEventPayload, type SubstituteSessionExerciseRequest, type SubstituteSessionExerciseResponse, type SupabaseAuthResponse, type SupabaseAuthUser, type SupabaseMigrationResponse, 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, type TrainingDiscipline, type TrainingEventType, type TrainingExperienceLevel, type TrainingGoal, type TrainingIdentity, type TrainingLocationPreference, type TrainingLocationPreferenceInput, type TrainingPartnerEncouragementKind, type TrainingPartnerEncouragementNotification, type TrainingPartnerPermissions, type TrainingPartnerScheduleDay, type TrainingPartnerScheduleResponse, type TrainingPartnership, type TrainingPartnershipStatus, type TrainingPartnershipsResponse, type TrainingReminderPreference, type TrainingReminderPushPayload, USERNAME_MAX_LENGTH, USERNAME_MIN_LENGTH, USERNAME_PATTERN_SOURCE, type UpdateActivitySharingRequest, type UpdateNotificationPreferencesRequest, type UpdateProfileDiscoveryRequest, type UpdateProfilePrivacyRequest, type UpdateProfileRequest, type UpdateRoutineRequest, type UpdateRoutineVisibilityRequest, type UpdateTrainingPartnerPermissionsRequest, type UpsertRoutineTrainingBlockRequest, type UpsertSetLogRequest, type UpsertSetLogResponse, type UserId, type UserProfile, type UserSearchResponse, type VolumeTrendPoint, type VolumeTrendQuery, type VolumeTrendResponse, type VolumeTrendSeries, WEIGHT_UNITS, WORKOUT_SESSION_STATUSES, type WeightUnit, type WorkoutAnalyticsStatus, type WorkoutProgressQuery, type WorkoutProgressResponse, type WorkoutSession, type WorkoutSessionId, type WorkoutSessionListResponse, type WorkoutSessionRecap, type WorkoutSessionSnapshotV1, type WorkoutSessionStatus, type WorkoutSessionSummary, type WorkoutStatsQuery, type WorkoutStatsResponse, isWithinQuietHours, routineDayLabel };
|
package/dist/index.js
CHANGED
|
@@ -350,6 +350,20 @@ var ROUTINE_VERSIONS_MAX = 20;
|
|
|
350
350
|
var ROUTINE_VERSION_NAME_MAX = 60;
|
|
351
351
|
var ROUTINE_VERSION_KINDS = ["SAVED", "BEFORE_RESTORE"];
|
|
352
352
|
|
|
353
|
+
// src/training-blocks.ts
|
|
354
|
+
var ROUTINE_TRAINING_BLOCKS_MAX = 24;
|
|
355
|
+
var ROUTINE_TRAINING_BLOCK_REVISIONS_MAX = 20;
|
|
356
|
+
var ROUTINE_TRAINING_BLOCK_NAME_MAX = 60;
|
|
357
|
+
var ROUTINE_TRAINING_BLOCK_STATES = [
|
|
358
|
+
"FUTURE",
|
|
359
|
+
"ACTIVE",
|
|
360
|
+
"COMPLETE"
|
|
361
|
+
];
|
|
362
|
+
var ROUTINE_TRAINING_BLOCK_SOURCE_KINDS = [
|
|
363
|
+
"CURRENT_ROUTINE",
|
|
364
|
+
"SAVED_VERSION"
|
|
365
|
+
];
|
|
366
|
+
|
|
353
367
|
// src/routine-sharing.ts
|
|
354
368
|
var ROUTINE_VISIBILITY_VALUES = [
|
|
355
369
|
"PRIVATE",
|
|
@@ -458,7 +472,9 @@ var NOTIFICATION_KINDS = [
|
|
|
458
472
|
// SOC-06. The first kind another member causes on purpose. The three above
|
|
459
473
|
// are the account's own training, or a follow; a comment is somebody
|
|
460
474
|
// addressing you, which is why it is worth a notification at all.
|
|
461
|
-
"ACTIVITY_COMMENT"
|
|
475
|
+
"ACTIVITY_COMMENT",
|
|
476
|
+
// SOC-09: one of four fixed, permissioned prompts from an active partner.
|
|
477
|
+
"TRAINING_PARTNER_ENCOURAGEMENT"
|
|
462
478
|
];
|
|
463
479
|
var NOTIFICATIONS_LOOKBACK_DAYS = 30;
|
|
464
480
|
var NOTIFICATIONS_RETENTION_DAYS = 90;
|
|
@@ -511,6 +527,13 @@ var TRAINING_PARTNER_PERMISSION_KEYS = [
|
|
|
511
527
|
];
|
|
512
528
|
var TRAINING_PARTNERS_MAX = 20;
|
|
513
529
|
var TRAINING_PARTNER_REQUESTS_PER_DAY_MAX = 10;
|
|
530
|
+
var TRAINING_PARTNER_ENCOURAGEMENT_KINDS = [
|
|
531
|
+
"READY_TO_TRAIN",
|
|
532
|
+
"STRONG_SESSION",
|
|
533
|
+
"GOOD_WORK",
|
|
534
|
+
"KEEP_GOING"
|
|
535
|
+
];
|
|
536
|
+
var TRAINING_PARTNER_ENCOURAGEMENTS_PER_24_HOURS_MAX = 4;
|
|
514
537
|
var TRAINING_PARTNERSHIP_STATUSES = ["PENDING", "ACTIVE"];
|
|
515
538
|
export {
|
|
516
539
|
ACHIEVEMENT_CATEGORIES,
|
|
@@ -598,6 +621,11 @@ export {
|
|
|
598
621
|
ROUTINE_DURATION_BAND_MAX_MINUTES,
|
|
599
622
|
ROUTINE_SCHEDULE_MODES,
|
|
600
623
|
ROUTINE_SHARE_MAX_ACTIVE_LINKS,
|
|
624
|
+
ROUTINE_TRAINING_BLOCKS_MAX,
|
|
625
|
+
ROUTINE_TRAINING_BLOCK_NAME_MAX,
|
|
626
|
+
ROUTINE_TRAINING_BLOCK_REVISIONS_MAX,
|
|
627
|
+
ROUTINE_TRAINING_BLOCK_SOURCE_KINDS,
|
|
628
|
+
ROUTINE_TRAINING_BLOCK_STATES,
|
|
601
629
|
ROUTINE_VERSIONS_MAX,
|
|
602
630
|
ROUTINE_VERSION_KINDS,
|
|
603
631
|
ROUTINE_VERSION_NAME_MAX,
|
|
@@ -619,6 +647,8 @@ export {
|
|
|
619
647
|
TRAINING_GOAL_VALUES,
|
|
620
648
|
TRAINING_PARTNERSHIP_STATUSES,
|
|
621
649
|
TRAINING_PARTNERS_MAX,
|
|
650
|
+
TRAINING_PARTNER_ENCOURAGEMENTS_PER_24_HOURS_MAX,
|
|
651
|
+
TRAINING_PARTNER_ENCOURAGEMENT_KINDS,
|
|
622
652
|
TRAINING_PARTNER_PERMISSION_KEYS,
|
|
623
653
|
TRAINING_PARTNER_REQUESTS_PER_DAY_MAX,
|
|
624
654
|
USERNAME_MAX_LENGTH,
|