@sunsteel/contracts 0.49.0 → 0.50.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 +10 -1
- package/dist/index.d.cts +379 -345
- package/dist/index.d.ts +379 -345
- package/dist/index.js +9 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -812,6 +812,282 @@ interface AchievementsResponse {
|
|
|
812
812
|
comeback: ComebackRecognitionSummary | null;
|
|
813
813
|
}
|
|
814
814
|
|
|
815
|
+
/**
|
|
816
|
+
* ROUT-11: a WEEKLY routine ties each day to a weekday; a ROTATION routine
|
|
817
|
+
* runs its days in `order`, each after the last completed one, whatever the
|
|
818
|
+
* weekday.
|
|
819
|
+
*/
|
|
820
|
+
declare const ROUTINE_SCHEDULE_MODES: readonly ["WEEKLY", "ROTATION"];
|
|
821
|
+
type RoutineScheduleMode = (typeof ROUTINE_SCHEDULE_MODES)[number];
|
|
822
|
+
/** At most seven days in either mode. */
|
|
823
|
+
declare const ROUTINE_DAYS_MAX = 7;
|
|
824
|
+
declare const ROUTINE_DAY_NAME_MAX = 40;
|
|
825
|
+
/**
|
|
826
|
+
* How a routine day is named everywhere, including history snapshots taken
|
|
827
|
+
* before ROUT-11: its own name, else its weekday, else its rotation letter
|
|
828
|
+
* ("Day A" for order 0).
|
|
829
|
+
*/
|
|
830
|
+
declare function routineDayLabel(day: {
|
|
831
|
+
name?: string | null;
|
|
832
|
+
dayOfWeek?: number | null;
|
|
833
|
+
order?: number | null;
|
|
834
|
+
}): string;
|
|
835
|
+
interface RoutineSet {
|
|
836
|
+
setNumber: number;
|
|
837
|
+
repType: RepType;
|
|
838
|
+
reps?: number | null;
|
|
839
|
+
minReps?: number | null;
|
|
840
|
+
maxReps?: number | null;
|
|
841
|
+
weight?: number | null;
|
|
842
|
+
rir?: number | null;
|
|
843
|
+
}
|
|
844
|
+
interface RoutineExercise {
|
|
845
|
+
id: string;
|
|
846
|
+
order: number;
|
|
847
|
+
restSeconds: number;
|
|
848
|
+
note?: string | null;
|
|
849
|
+
progressionScheme: ProgressionScheme;
|
|
850
|
+
minWeightIncrement: number;
|
|
851
|
+
exercise: {
|
|
852
|
+
id: string;
|
|
853
|
+
name: string;
|
|
854
|
+
primaryMuscles?: MuscleGroup[];
|
|
855
|
+
secondaryMuscles?: MuscleGroup[];
|
|
856
|
+
};
|
|
857
|
+
sets: RoutineSet[];
|
|
858
|
+
}
|
|
859
|
+
interface CreateRoutineExerciseInput {
|
|
860
|
+
exerciseId: string;
|
|
861
|
+
order?: number;
|
|
862
|
+
restSeconds: number;
|
|
863
|
+
note?: string;
|
|
864
|
+
progressionScheme: ProgressionScheme;
|
|
865
|
+
minWeightIncrement: number;
|
|
866
|
+
sets: RoutineSet[];
|
|
867
|
+
}
|
|
868
|
+
interface RoutineDay {
|
|
869
|
+
id: string;
|
|
870
|
+
/** 0=Sun..6=Sat on a WEEKLY routine; null on a ROTATION routine. */
|
|
871
|
+
dayOfWeek: number | null;
|
|
872
|
+
/** Optional label such as "Push" or "Upper A" (see `routineDayLabel`). */
|
|
873
|
+
name: string | null;
|
|
874
|
+
/** Rotation sequence, 0-based; also the display order. */
|
|
875
|
+
order: number;
|
|
876
|
+
exercises: RoutineExercise[];
|
|
877
|
+
}
|
|
878
|
+
interface CreateRoutineDayInput {
|
|
879
|
+
/** Required and unique on a WEEKLY routine; omitted or null on a ROTATION. */
|
|
880
|
+
dayOfWeek?: number | null;
|
|
881
|
+
name?: string | null;
|
|
882
|
+
order?: number;
|
|
883
|
+
exercises: CreateRoutineExerciseInput[];
|
|
884
|
+
}
|
|
885
|
+
interface Routine {
|
|
886
|
+
id: string;
|
|
887
|
+
userId: string;
|
|
888
|
+
name: string;
|
|
889
|
+
description?: string | null;
|
|
890
|
+
isPeriodized: boolean;
|
|
891
|
+
isFavorite: boolean;
|
|
892
|
+
isCompleted: boolean;
|
|
893
|
+
scheduleMode: RoutineScheduleMode;
|
|
894
|
+
/**
|
|
895
|
+
* ROTATION only: the day after the one of the last completed session (an
|
|
896
|
+
* aborted session does not advance it), or the first day before any.
|
|
897
|
+
*/
|
|
898
|
+
nextRotationDayId: string | null;
|
|
899
|
+
/**
|
|
900
|
+
* SCHED-07: weekdays (0=Sun..6=Sat) this weekly routine rests on by plan,
|
|
901
|
+
* never one of its training weekdays; always empty on a ROTATION routine.
|
|
902
|
+
*/
|
|
903
|
+
restDays: number[];
|
|
904
|
+
/**
|
|
905
|
+
* SCHED-06: weekdays (0=Sun..6=Sat) a ROTATION routine trains on, sorted; the
|
|
906
|
+
* schedule places its days on them in order. Empty means any day, without
|
|
907
|
+
* dates; always empty on a WEEKLY routine.
|
|
908
|
+
*/
|
|
909
|
+
rotationWeekdays: number[];
|
|
910
|
+
/**
|
|
911
|
+
* ROUT-04: who may read this routine, bounded by the account-level
|
|
912
|
+
* `PROF-06` routines rule. Owner-only field; it never appears in a shared
|
|
913
|
+
* read, where visibility is the reason the reader is there.
|
|
914
|
+
*/
|
|
915
|
+
visibility: RoutineVisibility;
|
|
916
|
+
days: RoutineDay[];
|
|
917
|
+
createdAt: IsoDateString;
|
|
918
|
+
updatedAt: IsoDateString;
|
|
919
|
+
}
|
|
920
|
+
interface CreateRoutineRequest {
|
|
921
|
+
name: string;
|
|
922
|
+
description?: string;
|
|
923
|
+
isPeriodized: boolean;
|
|
924
|
+
/** Defaults to WEEKLY. Changing it on update requires `days`. */
|
|
925
|
+
scheduleMode?: RoutineScheduleMode;
|
|
926
|
+
/**
|
|
927
|
+
* Weekly routines only. Omitted on update keeps the stored rest days, minus
|
|
928
|
+
* any that became training weekdays.
|
|
929
|
+
*/
|
|
930
|
+
restDays?: number[];
|
|
931
|
+
/**
|
|
932
|
+
* Rotation routines only. Omitted on update keeps the stored weekdays;
|
|
933
|
+
* switching to WEEKLY clears them.
|
|
934
|
+
*/
|
|
935
|
+
rotationWeekdays?: number[];
|
|
936
|
+
days: CreateRoutineDayInput[];
|
|
937
|
+
}
|
|
938
|
+
type UpdateRoutineRequest = Partial<CreateRoutineRequest>;
|
|
939
|
+
/** A routine keeps at most this many versions; saving past it is refused. */
|
|
940
|
+
declare const ROUTINE_VERSIONS_MAX = 20;
|
|
941
|
+
declare const ROUTINE_VERSION_NAME_MAX = 60;
|
|
942
|
+
/**
|
|
943
|
+
* SAVED is an intentional save; BEFORE_RESTORE is the setup a restore
|
|
944
|
+
* replaced, saved automatically so the restore can be undone.
|
|
945
|
+
*/
|
|
946
|
+
declare const ROUTINE_VERSION_KINDS: readonly ["SAVED", "BEFORE_RESTORE"];
|
|
947
|
+
type RoutineVersionKind = (typeof ROUTINE_VERSION_KINDS)[number];
|
|
948
|
+
interface RoutineVersionExercise {
|
|
949
|
+
/** The catalog exercise and its name when the version was saved. */
|
|
950
|
+
exercise: {
|
|
951
|
+
id: string;
|
|
952
|
+
name: string;
|
|
953
|
+
};
|
|
954
|
+
order: number;
|
|
955
|
+
restSeconds: number;
|
|
956
|
+
note: string | null;
|
|
957
|
+
progressionScheme: ProgressionScheme;
|
|
958
|
+
minWeightIncrement: number;
|
|
959
|
+
sets: RoutineSet[];
|
|
960
|
+
}
|
|
961
|
+
interface RoutineVersionDay {
|
|
962
|
+
dayOfWeek: number | null;
|
|
963
|
+
name: string | null;
|
|
964
|
+
order: number;
|
|
965
|
+
exercises: RoutineVersionExercise[];
|
|
966
|
+
}
|
|
967
|
+
/** Everything a routine edit can change, as it was when the version was saved. */
|
|
968
|
+
interface RoutineVersionSetup {
|
|
969
|
+
name: string;
|
|
970
|
+
description: string | null;
|
|
971
|
+
scheduleMode: RoutineScheduleMode;
|
|
972
|
+
restDays: number[];
|
|
973
|
+
/** SCHED-06; absent in versions saved before it, which means none. */
|
|
974
|
+
rotationWeekdays?: number[];
|
|
975
|
+
days: RoutineVersionDay[];
|
|
976
|
+
}
|
|
977
|
+
interface RoutineVersion {
|
|
978
|
+
id: string;
|
|
979
|
+
routineId: string;
|
|
980
|
+
/** 1, 2, 3… per routine, never reused after a deletion. */
|
|
981
|
+
number: number;
|
|
982
|
+
name: string | null;
|
|
983
|
+
kind: RoutineVersionKind;
|
|
984
|
+
/** BEFORE_RESTORE only: the number of the version that was restored. */
|
|
985
|
+
restoredVersionNumber: number | null;
|
|
986
|
+
createdAt: IsoDateString;
|
|
987
|
+
setup: RoutineVersionSetup;
|
|
988
|
+
}
|
|
989
|
+
/** `GET /routines/:id/versions`, newest first. */
|
|
990
|
+
interface RoutineVersionsResponse {
|
|
991
|
+
versions: RoutineVersion[];
|
|
992
|
+
max: number;
|
|
993
|
+
}
|
|
994
|
+
/** `POST /routines/:id/versions` */
|
|
995
|
+
interface CreateRoutineVersionRequest {
|
|
996
|
+
name?: string | null;
|
|
997
|
+
}
|
|
998
|
+
/** `POST /routines/:id/versions/:versionId/restore` */
|
|
999
|
+
interface RestoreRoutineVersionResponse {
|
|
1000
|
+
routine: Routine;
|
|
1001
|
+
/** The replaced setup, saved as a BEFORE_RESTORE version. */
|
|
1002
|
+
savedVersion: RoutineVersion;
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
/**
|
|
1006
|
+
* Per-routine visibility. The account-level `PROF-06` routines rule is the
|
|
1007
|
+
* upper bound: a routine marked `PUBLIC` inside an account whose routines are
|
|
1008
|
+
* `FOLLOWERS` is visible to followers only, the same way `SOC-04` bounds
|
|
1009
|
+
* activity by the profile section it comes from.
|
|
1010
|
+
*/
|
|
1011
|
+
declare const ROUTINE_VISIBILITY_VALUES: readonly ["PRIVATE", "FOLLOWERS", "PUBLIC"];
|
|
1012
|
+
type RoutineVisibility = (typeof ROUTINE_VISIBILITY_VALUES)[number];
|
|
1013
|
+
/** One routine keeps at most this many active links. */
|
|
1014
|
+
declare const ROUTINE_SHARE_MAX_ACTIVE_LINKS = 10;
|
|
1015
|
+
/** PUT /routines/:id/visibility */
|
|
1016
|
+
interface UpdateRoutineVisibilityRequest {
|
|
1017
|
+
visibility: RoutineVisibility;
|
|
1018
|
+
}
|
|
1019
|
+
/** An active share link, visible only to the routine's owner. */
|
|
1020
|
+
interface RoutineShare {
|
|
1021
|
+
id: string;
|
|
1022
|
+
routineId: string;
|
|
1023
|
+
/** Unguessable identifier used in the public `/shared/routines/:token` URL. */
|
|
1024
|
+
token: string;
|
|
1025
|
+
createdAt: IsoDateString;
|
|
1026
|
+
}
|
|
1027
|
+
/** Stable successful response of GET /routines/:id/shares. */
|
|
1028
|
+
interface RoutineShareListResponse {
|
|
1029
|
+
items: RoutineShare[];
|
|
1030
|
+
}
|
|
1031
|
+
interface SharedRoutineOwner {
|
|
1032
|
+
username: string;
|
|
1033
|
+
name: string;
|
|
1034
|
+
lastName?: string | null;
|
|
1035
|
+
avatarUrl?: string | null;
|
|
1036
|
+
}
|
|
1037
|
+
/**
|
|
1038
|
+
* How a reader reached a routine. A link is the owner's explicit consent for
|
|
1039
|
+
* that one routine and ignores visibility; a visibility read is governed by
|
|
1040
|
+
* both the routine's own rule and the account's.
|
|
1041
|
+
*/
|
|
1042
|
+
declare const SHARED_ROUTINE_SOURCES: readonly ["LINK", "VISIBILITY"];
|
|
1043
|
+
type SharedRoutineSource = (typeof SHARED_ROUTINE_SOURCES)[number];
|
|
1044
|
+
/**
|
|
1045
|
+
* Stable successful response of the unauthenticated
|
|
1046
|
+
* GET /shared/routines/:token, and of the authenticated member read.
|
|
1047
|
+
*/
|
|
1048
|
+
interface SharedRoutine {
|
|
1049
|
+
/** Kept so a future clone (`ROUT-05`) can record what it came from. */
|
|
1050
|
+
routineId: string;
|
|
1051
|
+
setup: RoutineVersionSetup;
|
|
1052
|
+
owner: SharedRoutineOwner;
|
|
1053
|
+
source: SharedRoutineSource;
|
|
1054
|
+
/** When the routine was last changed, not when it was shared. */
|
|
1055
|
+
updatedAt: IsoDateString;
|
|
1056
|
+
}
|
|
1057
|
+
/** A routine in a member's visible list, without loading its whole setup. */
|
|
1058
|
+
interface SharedRoutineSummary {
|
|
1059
|
+
routineId: string;
|
|
1060
|
+
name: string;
|
|
1061
|
+
description: string | null;
|
|
1062
|
+
scheduleMode: RoutineScheduleMode;
|
|
1063
|
+
dayCount: number;
|
|
1064
|
+
exerciseCount: number;
|
|
1065
|
+
updatedAt: IsoDateString;
|
|
1066
|
+
}
|
|
1067
|
+
/** Stable successful response of GET /users/:identifier/routines. */
|
|
1068
|
+
interface MemberRoutinesResponse {
|
|
1069
|
+
routines: SharedRoutineSummary[];
|
|
1070
|
+
}
|
|
1071
|
+
/**
|
|
1072
|
+
* POST /routines/clones. Exactly one source, matching the two ways a routine
|
|
1073
|
+
* can be read: `token` for a private link, `routineId` for one the viewer may
|
|
1074
|
+
* already see. Sending both, or neither, is refused.
|
|
1075
|
+
*/
|
|
1076
|
+
interface CloneRoutineRequest {
|
|
1077
|
+
/** The `/shared/routines/:token` link the reader followed. */
|
|
1078
|
+
token?: string;
|
|
1079
|
+
/** A routine the viewer may read under `ROUT-04` visibility. */
|
|
1080
|
+
routineId?: string;
|
|
1081
|
+
}
|
|
1082
|
+
/** The refusals a clone states by name rather than as a bare 4xx. */
|
|
1083
|
+
declare const CLONE_ROUTINE_REFUSALS: {
|
|
1084
|
+
/** Neither `token` nor `routineId`, or both at once. */
|
|
1085
|
+
readonly SOURCE_REQUIRED: "SOURCE_REQUIRED";
|
|
1086
|
+
/** An exercise the routine programs is no longer in the catalog. */
|
|
1087
|
+
readonly UNKNOWN_EXERCISE: "UNKNOWN_EXERCISE";
|
|
1088
|
+
};
|
|
1089
|
+
type CloneRoutineRefusal = (typeof CLONE_ROUTINE_REFUSALS)[keyof typeof CLONE_ROUTINE_REFUSALS];
|
|
1090
|
+
|
|
815
1091
|
declare const USERNAME_MIN_LENGTH = 3;
|
|
816
1092
|
declare const USERNAME_MAX_LENGTH = 30;
|
|
817
1093
|
declare const USERNAME_PATTERN_SOURCE = "^[a-z0-9][a-z0-9_-]{1,28}[a-z0-9]$";
|
|
@@ -879,7 +1155,12 @@ interface PublicBodyMetrics {
|
|
|
879
1155
|
weightKg?: number | null;
|
|
880
1156
|
heightCm?: number | null;
|
|
881
1157
|
}
|
|
882
|
-
|
|
1158
|
+
/**
|
|
1159
|
+
* `ROUTINE` is `PROF-08`: a shared routine is a fourth kind of featured item,
|
|
1160
|
+
* not a second showcase. It carries a `SharedRoutineSummary`, so a slot on a
|
|
1161
|
+
* profile still cannot express the owner's training.
|
|
1162
|
+
*/
|
|
1163
|
+
declare const FEATURED_PROFILE_ITEM_KINDS: readonly ["RECORD", "ACHIEVEMENT", "RANK", "ROUTINE"];
|
|
883
1164
|
type FeaturedProfileItemKind = (typeof FEATURED_PROFILE_ITEM_KINDS)[number];
|
|
884
1165
|
declare const FEATURED_PROFILE_ITEMS_MAX = 6;
|
|
885
1166
|
declare const FEATURED_PROFILE_REFERENCE_MAX_LENGTH = 100;
|
|
@@ -911,8 +1192,18 @@ interface FeaturedProfileRankItem extends FeaturedProfileItemBase {
|
|
|
911
1192
|
kind: 'RANK';
|
|
912
1193
|
rank: RenaissanceRankDefinition;
|
|
913
1194
|
}
|
|
1195
|
+
/**
|
|
1196
|
+
* PROF-08. `referenceId` is the routine's id. It is resolved through the same
|
|
1197
|
+
* `ROUT-04` rule as every other read of somebody else's routine, so the
|
|
1198
|
+
* account-level `PROF-06` routines rule caps the routine's own visibility and
|
|
1199
|
+
* a slot the viewer may not see is omitted rather than emptied.
|
|
1200
|
+
*/
|
|
1201
|
+
interface FeaturedProfileRoutineItem extends FeaturedProfileItemBase {
|
|
1202
|
+
kind: 'ROUTINE';
|
|
1203
|
+
routine: SharedRoutineSummary;
|
|
1204
|
+
}
|
|
914
1205
|
/** Privacy-filtered, currently valid selections in owner-defined order. */
|
|
915
|
-
type FeaturedProfileItem = FeaturedProfileRecordItem | FeaturedProfileAchievementItem | FeaturedProfileRankItem;
|
|
1206
|
+
type FeaturedProfileItem = FeaturedProfileRecordItem | FeaturedProfileAchievementItem | FeaturedProfileRankItem | FeaturedProfileRoutineItem;
|
|
916
1207
|
/** Complete earned ledger allowed by the profile achievements privacy rule. */
|
|
917
1208
|
interface PublicProfileAchievements {
|
|
918
1209
|
rank: RenaissanceRankDefinition | null;
|
|
@@ -1069,371 +1360,114 @@ interface SupabaseAuthUser {
|
|
|
1069
1360
|
}
|
|
1070
1361
|
interface SupabaseAuthResponse {
|
|
1071
1362
|
user: SupabaseAuthUser;
|
|
1072
|
-
message?: string;
|
|
1073
|
-
requiresEmailVerification?: boolean;
|
|
1074
|
-
}
|
|
1075
|
-
interface SupabaseMigrationResponse {
|
|
1076
|
-
message: string;
|
|
1077
|
-
userId: string;
|
|
1078
|
-
email: string;
|
|
1079
|
-
}
|
|
1080
|
-
|
|
1081
|
-
/**
|
|
1082
|
-
* How an exercise moves (EXER-09). Compound patterns first, then the
|
|
1083
|
-
* single-joint actions the catalog uses. Alternatives start from this plus
|
|
1084
|
-
* primary muscles; `substitutionGroup` is the narrower, near-identical set.
|
|
1085
|
-
*/
|
|
1086
|
-
declare const MOVEMENT_PATTERNS: readonly ["HORIZONTAL_PUSH", "VERTICAL_PUSH", "HORIZONTAL_PULL", "VERTICAL_PULL", "SQUAT", "HINGE", "LUNGE", "CHEST_FLY", "SHOULDER_ABDUCTION", "SHOULDER_FLEXION", "SHOULDER_HORIZONTAL_ABDUCTION", "SHOULDER_EXTENSION", "SCAPULAR_ELEVATION", "ELBOW_FLEXION", "ELBOW_EXTENSION", "KNEE_EXTENSION", "KNEE_FLEXION", "HIP_EXTENSION", "PLANTAR_FLEXION", "CORE_FLEXION", "CORE_ROTATION", "CORE_STABILITY"];
|
|
1087
|
-
type MovementPattern = (typeof MOVEMENT_PATTERNS)[number];
|
|
1088
|
-
declare const EXERCISE_MECHANICS: readonly ["COMPOUND", "ISOLATION"];
|
|
1089
|
-
type ExerciseMechanic = (typeof EXERCISE_MECHANICS)[number];
|
|
1090
|
-
/**
|
|
1091
|
-
* Closed, lowercase vocabulary for what an exercise needs. Lowercase so it can
|
|
1092
|
-
* be compared with the free-text equipment users list on a training location
|
|
1093
|
-
* (PREF-01), which is normalized to lowercase.
|
|
1094
|
-
*/
|
|
1095
|
-
declare const EXERCISE_EQUIPMENT: readonly ["barbell", "ez-bar", "dumbbell", "cable", "machine", "smith-machine", "bench", "incline-bench", "preacher-bench", "rack", "pull-up-bar", "dip-station", "bodyweight"];
|
|
1096
|
-
type ExerciseEquipment = (typeof EXERCISE_EQUIPMENT)[number];
|
|
1097
|
-
interface Exercise {
|
|
1098
|
-
id: string;
|
|
1099
|
-
name: string;
|
|
1100
|
-
primaryMuscles: MuscleGroup[];
|
|
1101
|
-
secondaryMuscles: MuscleGroup[];
|
|
1102
|
-
/** The primary implement, kept for existing displays. */
|
|
1103
|
-
equipment: string;
|
|
1104
|
-
/** Null only for entries without catalog metadata (e.g. future custom exercises). */
|
|
1105
|
-
movementPattern: MovementPattern | null;
|
|
1106
|
-
mechanic: ExerciseMechanic | null;
|
|
1107
|
-
/** Everything needed to perform the exercise, from `EXERCISE_EQUIPMENT`. */
|
|
1108
|
-
equipmentRequired: ExerciseEquipment[];
|
|
1109
|
-
/** Near-identical exercises share a group and can replace each other. */
|
|
1110
|
-
substitutionGroup: string | null;
|
|
1111
|
-
/** Ordered cues; empty until the content work in EXER-03 lands. */
|
|
1112
|
-
instructions: string[];
|
|
1113
|
-
/** Demonstration asset; null until EXER-04 supplies licensed media. */
|
|
1114
|
-
mediaUrl: string | null;
|
|
1115
|
-
createdAt: IsoDateString;
|
|
1116
|
-
updatedAt: IsoDateString;
|
|
1117
|
-
}
|
|
1118
|
-
/**
|
|
1119
|
-
* The most catalog exercises one account can star. Starring is a private
|
|
1120
|
-
* working preference that orders pickers; it is separate from the public
|
|
1121
|
-
* favorite exercises on the training identity.
|
|
1122
|
-
*/
|
|
1123
|
-
declare const STARRED_EXERCISES_MAX = 100;
|
|
1124
|
-
interface StarredExercise {
|
|
1125
|
-
exerciseId: string;
|
|
1126
|
-
starredAt: IsoDateString;
|
|
1127
|
-
}
|
|
1128
|
-
/**
|
|
1129
|
-
* Response of GET /exercises/starred and of PUT/DELETE
|
|
1130
|
-
* /exercises/:id/star. Newest first.
|
|
1131
|
-
*/
|
|
1132
|
-
interface StarredExercisesResponse {
|
|
1133
|
-
items: StarredExercise[];
|
|
1134
|
-
}
|
|
1135
|
-
|
|
1136
|
-
declare const MEASURABLE_GOAL_TYPES: readonly ["WEEKLY_SESSIONS", "WEEKLY_VOLUME", "STREAK_DAYS", "EXERCISE_ESTIMATED_1RM", "BODY_WEIGHT"];
|
|
1137
|
-
type MeasurableGoalType = (typeof MEASURABLE_GOAL_TYPES)[number];
|
|
1138
|
-
declare const MEASURABLE_GOAL_DIRECTIONS: readonly ["AT_LEAST", "AT_MOST"];
|
|
1139
|
-
type MeasurableGoalDirection = (typeof MEASURABLE_GOAL_DIRECTIONS)[number];
|
|
1140
|
-
declare const MEASURABLE_GOALS_MAX = 8;
|
|
1141
|
-
interface MeasurableGoalExercise {
|
|
1142
|
-
id: string;
|
|
1143
|
-
name: string;
|
|
1144
|
-
}
|
|
1145
|
-
/** A private target stored in canonical units (kg where applicable). */
|
|
1146
|
-
interface MeasurableGoal {
|
|
1147
|
-
id: string;
|
|
1148
|
-
type: MeasurableGoalType;
|
|
1149
|
-
targetValue: number;
|
|
1150
|
-
direction: MeasurableGoalDirection;
|
|
1151
|
-
exercise?: MeasurableGoalExercise | null;
|
|
1152
|
-
createdAt: IsoDateString;
|
|
1153
|
-
updatedAt: IsoDateString;
|
|
1154
|
-
}
|
|
1155
|
-
interface MeasurableGoalInput {
|
|
1156
|
-
id?: string;
|
|
1157
|
-
type: MeasurableGoalType;
|
|
1158
|
-
targetValue: number;
|
|
1159
|
-
/** Only BODY_WEIGHT may use AT_MOST; every other goal is AT_LEAST. */
|
|
1160
|
-
direction?: MeasurableGoalDirection;
|
|
1161
|
-
/** Required only for EXERCISE_ESTIMATED_1RM. */
|
|
1162
|
-
exerciseId?: string;
|
|
1163
|
-
}
|
|
1164
|
-
interface ReplaceMeasurableGoalsRequest {
|
|
1165
|
-
goals: MeasurableGoalInput[];
|
|
1166
|
-
}
|
|
1167
|
-
interface PersonalGoalProgress extends MeasurableGoal {
|
|
1168
|
-
currentValue: number | null;
|
|
1169
|
-
remainingValue: number | null;
|
|
1170
|
-
progressPercent: number | null;
|
|
1171
|
-
achieved: boolean | null;
|
|
1172
|
-
/** Monday-based local week for WEEKLY_SESSIONS and WEEKLY_VOLUME. */
|
|
1173
|
-
periodStart?: string;
|
|
1174
|
-
}
|
|
1175
|
-
/** Stable successful response of GET /workouts/progress/goals. */
|
|
1176
|
-
interface PersonalGoalsResponse {
|
|
1177
|
-
timeZone: string;
|
|
1178
|
-
asOf: IsoDateString;
|
|
1179
|
-
goals: PersonalGoalProgress[];
|
|
1180
|
-
}
|
|
1181
|
-
|
|
1182
|
-
/**
|
|
1183
|
-
* Per-routine visibility. The account-level `PROF-06` routines rule is the
|
|
1184
|
-
* upper bound: a routine marked `PUBLIC` inside an account whose routines are
|
|
1185
|
-
* `FOLLOWERS` is visible to followers only, the same way `SOC-04` bounds
|
|
1186
|
-
* activity by the profile section it comes from.
|
|
1187
|
-
*/
|
|
1188
|
-
declare const ROUTINE_VISIBILITY_VALUES: readonly ["PRIVATE", "FOLLOWERS", "PUBLIC"];
|
|
1189
|
-
type RoutineVisibility = (typeof ROUTINE_VISIBILITY_VALUES)[number];
|
|
1190
|
-
/** One routine keeps at most this many active links. */
|
|
1191
|
-
declare const ROUTINE_SHARE_MAX_ACTIVE_LINKS = 10;
|
|
1192
|
-
/** PUT /routines/:id/visibility */
|
|
1193
|
-
interface UpdateRoutineVisibilityRequest {
|
|
1194
|
-
visibility: RoutineVisibility;
|
|
1195
|
-
}
|
|
1196
|
-
/** An active share link, visible only to the routine's owner. */
|
|
1197
|
-
interface RoutineShare {
|
|
1198
|
-
id: string;
|
|
1199
|
-
routineId: string;
|
|
1200
|
-
/** Unguessable identifier used in the public `/shared/routines/:token` URL. */
|
|
1201
|
-
token: string;
|
|
1202
|
-
createdAt: IsoDateString;
|
|
1203
|
-
}
|
|
1204
|
-
/** Stable successful response of GET /routines/:id/shares. */
|
|
1205
|
-
interface RoutineShareListResponse {
|
|
1206
|
-
items: RoutineShare[];
|
|
1207
|
-
}
|
|
1208
|
-
interface SharedRoutineOwner {
|
|
1209
|
-
username: string;
|
|
1210
|
-
name: string;
|
|
1211
|
-
lastName?: string | null;
|
|
1212
|
-
avatarUrl?: string | null;
|
|
1213
|
-
}
|
|
1214
|
-
/**
|
|
1215
|
-
* How a reader reached a routine. A link is the owner's explicit consent for
|
|
1216
|
-
* that one routine and ignores visibility; a visibility read is governed by
|
|
1217
|
-
* both the routine's own rule and the account's.
|
|
1218
|
-
*/
|
|
1219
|
-
declare const SHARED_ROUTINE_SOURCES: readonly ["LINK", "VISIBILITY"];
|
|
1220
|
-
type SharedRoutineSource = (typeof SHARED_ROUTINE_SOURCES)[number];
|
|
1221
|
-
/**
|
|
1222
|
-
* Stable successful response of the unauthenticated
|
|
1223
|
-
* GET /shared/routines/:token, and of the authenticated member read.
|
|
1224
|
-
*/
|
|
1225
|
-
interface SharedRoutine {
|
|
1226
|
-
/** Kept so a future clone (`ROUT-05`) can record what it came from. */
|
|
1227
|
-
routineId: string;
|
|
1228
|
-
setup: RoutineVersionSetup;
|
|
1229
|
-
owner: SharedRoutineOwner;
|
|
1230
|
-
source: SharedRoutineSource;
|
|
1231
|
-
/** When the routine was last changed, not when it was shared. */
|
|
1232
|
-
updatedAt: IsoDateString;
|
|
1233
|
-
}
|
|
1234
|
-
/** A routine in a member's visible list, without loading its whole setup. */
|
|
1235
|
-
interface SharedRoutineSummary {
|
|
1236
|
-
routineId: string;
|
|
1237
|
-
name: string;
|
|
1238
|
-
description: string | null;
|
|
1239
|
-
scheduleMode: RoutineScheduleMode;
|
|
1240
|
-
dayCount: number;
|
|
1241
|
-
exerciseCount: number;
|
|
1242
|
-
updatedAt: IsoDateString;
|
|
1363
|
+
message?: string;
|
|
1364
|
+
requiresEmailVerification?: boolean;
|
|
1243
1365
|
}
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1366
|
+
interface SupabaseMigrationResponse {
|
|
1367
|
+
message: string;
|
|
1368
|
+
userId: string;
|
|
1369
|
+
email: string;
|
|
1247
1370
|
}
|
|
1248
1371
|
|
|
1249
1372
|
/**
|
|
1250
|
-
*
|
|
1251
|
-
*
|
|
1252
|
-
*
|
|
1373
|
+
* How an exercise moves (EXER-09). Compound patterns first, then the
|
|
1374
|
+
* single-joint actions the catalog uses. Alternatives start from this plus
|
|
1375
|
+
* primary muscles; `substitutionGroup` is the narrower, near-identical set.
|
|
1253
1376
|
*/
|
|
1254
|
-
declare const
|
|
1255
|
-
type
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
declare const ROUTINE_DAY_NAME_MAX = 40;
|
|
1377
|
+
declare const MOVEMENT_PATTERNS: readonly ["HORIZONTAL_PUSH", "VERTICAL_PUSH", "HORIZONTAL_PULL", "VERTICAL_PULL", "SQUAT", "HINGE", "LUNGE", "CHEST_FLY", "SHOULDER_ABDUCTION", "SHOULDER_FLEXION", "SHOULDER_HORIZONTAL_ABDUCTION", "SHOULDER_EXTENSION", "SCAPULAR_ELEVATION", "ELBOW_FLEXION", "ELBOW_EXTENSION", "KNEE_EXTENSION", "KNEE_FLEXION", "HIP_EXTENSION", "PLANTAR_FLEXION", "CORE_FLEXION", "CORE_ROTATION", "CORE_STABILITY"];
|
|
1378
|
+
type MovementPattern = (typeof MOVEMENT_PATTERNS)[number];
|
|
1379
|
+
declare const EXERCISE_MECHANICS: readonly ["COMPOUND", "ISOLATION"];
|
|
1380
|
+
type ExerciseMechanic = (typeof EXERCISE_MECHANICS)[number];
|
|
1259
1381
|
/**
|
|
1260
|
-
*
|
|
1261
|
-
*
|
|
1262
|
-
* (
|
|
1382
|
+
* Closed, lowercase vocabulary for what an exercise needs. Lowercase so it can
|
|
1383
|
+
* be compared with the free-text equipment users list on a training location
|
|
1384
|
+
* (PREF-01), which is normalized to lowercase.
|
|
1263
1385
|
*/
|
|
1264
|
-
declare
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
order?: number | null;
|
|
1268
|
-
}): string;
|
|
1269
|
-
interface RoutineSet {
|
|
1270
|
-
setNumber: number;
|
|
1271
|
-
repType: RepType;
|
|
1272
|
-
reps?: number | null;
|
|
1273
|
-
minReps?: number | null;
|
|
1274
|
-
maxReps?: number | null;
|
|
1275
|
-
weight?: number | null;
|
|
1276
|
-
rir?: number | null;
|
|
1277
|
-
}
|
|
1278
|
-
interface RoutineExercise {
|
|
1279
|
-
id: string;
|
|
1280
|
-
order: number;
|
|
1281
|
-
restSeconds: number;
|
|
1282
|
-
note?: string | null;
|
|
1283
|
-
progressionScheme: ProgressionScheme;
|
|
1284
|
-
minWeightIncrement: number;
|
|
1285
|
-
exercise: {
|
|
1286
|
-
id: string;
|
|
1287
|
-
name: string;
|
|
1288
|
-
primaryMuscles?: MuscleGroup[];
|
|
1289
|
-
secondaryMuscles?: MuscleGroup[];
|
|
1290
|
-
};
|
|
1291
|
-
sets: RoutineSet[];
|
|
1292
|
-
}
|
|
1293
|
-
interface CreateRoutineExerciseInput {
|
|
1294
|
-
exerciseId: string;
|
|
1295
|
-
order?: number;
|
|
1296
|
-
restSeconds: number;
|
|
1297
|
-
note?: string;
|
|
1298
|
-
progressionScheme: ProgressionScheme;
|
|
1299
|
-
minWeightIncrement: number;
|
|
1300
|
-
sets: RoutineSet[];
|
|
1301
|
-
}
|
|
1302
|
-
interface RoutineDay {
|
|
1303
|
-
id: string;
|
|
1304
|
-
/** 0=Sun..6=Sat on a WEEKLY routine; null on a ROTATION routine. */
|
|
1305
|
-
dayOfWeek: number | null;
|
|
1306
|
-
/** Optional label such as "Push" or "Upper A" (see `routineDayLabel`). */
|
|
1307
|
-
name: string | null;
|
|
1308
|
-
/** Rotation sequence, 0-based; also the display order. */
|
|
1309
|
-
order: number;
|
|
1310
|
-
exercises: RoutineExercise[];
|
|
1311
|
-
}
|
|
1312
|
-
interface CreateRoutineDayInput {
|
|
1313
|
-
/** Required and unique on a WEEKLY routine; omitted or null on a ROTATION. */
|
|
1314
|
-
dayOfWeek?: number | null;
|
|
1315
|
-
name?: string | null;
|
|
1316
|
-
order?: number;
|
|
1317
|
-
exercises: CreateRoutineExerciseInput[];
|
|
1318
|
-
}
|
|
1319
|
-
interface Routine {
|
|
1386
|
+
declare const EXERCISE_EQUIPMENT: readonly ["barbell", "ez-bar", "dumbbell", "cable", "machine", "smith-machine", "bench", "incline-bench", "preacher-bench", "rack", "pull-up-bar", "dip-station", "bodyweight"];
|
|
1387
|
+
type ExerciseEquipment = (typeof EXERCISE_EQUIPMENT)[number];
|
|
1388
|
+
interface Exercise {
|
|
1320
1389
|
id: string;
|
|
1321
|
-
userId: string;
|
|
1322
1390
|
name: string;
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
/**
|
|
1339
|
-
* SCHED-06: weekdays (0=Sun..6=Sat) a ROTATION routine trains on, sorted; the
|
|
1340
|
-
* schedule places its days on them in order. Empty means any day, without
|
|
1341
|
-
* dates; always empty on a WEEKLY routine.
|
|
1342
|
-
*/
|
|
1343
|
-
rotationWeekdays: number[];
|
|
1344
|
-
/**
|
|
1345
|
-
* ROUT-04: who may read this routine, bounded by the account-level
|
|
1346
|
-
* `PROF-06` routines rule. Owner-only field; it never appears in a shared
|
|
1347
|
-
* read, where visibility is the reason the reader is there.
|
|
1348
|
-
*/
|
|
1349
|
-
visibility: RoutineVisibility;
|
|
1350
|
-
days: RoutineDay[];
|
|
1391
|
+
primaryMuscles: MuscleGroup[];
|
|
1392
|
+
secondaryMuscles: MuscleGroup[];
|
|
1393
|
+
/** The primary implement, kept for existing displays. */
|
|
1394
|
+
equipment: string;
|
|
1395
|
+
/** Null only for entries without catalog metadata (e.g. future custom exercises). */
|
|
1396
|
+
movementPattern: MovementPattern | null;
|
|
1397
|
+
mechanic: ExerciseMechanic | null;
|
|
1398
|
+
/** Everything needed to perform the exercise, from `EXERCISE_EQUIPMENT`. */
|
|
1399
|
+
equipmentRequired: ExerciseEquipment[];
|
|
1400
|
+
/** Near-identical exercises share a group and can replace each other. */
|
|
1401
|
+
substitutionGroup: string | null;
|
|
1402
|
+
/** Ordered cues; empty until the content work in EXER-03 lands. */
|
|
1403
|
+
instructions: string[];
|
|
1404
|
+
/** Demonstration asset; null until EXER-04 supplies licensed media. */
|
|
1405
|
+
mediaUrl: string | null;
|
|
1351
1406
|
createdAt: IsoDateString;
|
|
1352
1407
|
updatedAt: IsoDateString;
|
|
1353
1408
|
}
|
|
1354
|
-
interface CreateRoutineRequest {
|
|
1355
|
-
name: string;
|
|
1356
|
-
description?: string;
|
|
1357
|
-
isPeriodized: boolean;
|
|
1358
|
-
/** Defaults to WEEKLY. Changing it on update requires `days`. */
|
|
1359
|
-
scheduleMode?: RoutineScheduleMode;
|
|
1360
|
-
/**
|
|
1361
|
-
* Weekly routines only. Omitted on update keeps the stored rest days, minus
|
|
1362
|
-
* any that became training weekdays.
|
|
1363
|
-
*/
|
|
1364
|
-
restDays?: number[];
|
|
1365
|
-
/**
|
|
1366
|
-
* Rotation routines only. Omitted on update keeps the stored weekdays;
|
|
1367
|
-
* switching to WEEKLY clears them.
|
|
1368
|
-
*/
|
|
1369
|
-
rotationWeekdays?: number[];
|
|
1370
|
-
days: CreateRoutineDayInput[];
|
|
1371
|
-
}
|
|
1372
|
-
type UpdateRoutineRequest = Partial<CreateRoutineRequest>;
|
|
1373
|
-
/** A routine keeps at most this many versions; saving past it is refused. */
|
|
1374
|
-
declare const ROUTINE_VERSIONS_MAX = 20;
|
|
1375
|
-
declare const ROUTINE_VERSION_NAME_MAX = 60;
|
|
1376
1409
|
/**
|
|
1377
|
-
*
|
|
1378
|
-
*
|
|
1410
|
+
* The most catalog exercises one account can star. Starring is a private
|
|
1411
|
+
* working preference that orders pickers; it is separate from the public
|
|
1412
|
+
* favorite exercises on the training identity.
|
|
1379
1413
|
*/
|
|
1380
|
-
declare const
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
exercise: {
|
|
1385
|
-
id: string;
|
|
1386
|
-
name: string;
|
|
1387
|
-
};
|
|
1388
|
-
order: number;
|
|
1389
|
-
restSeconds: number;
|
|
1390
|
-
note: string | null;
|
|
1391
|
-
progressionScheme: ProgressionScheme;
|
|
1392
|
-
minWeightIncrement: number;
|
|
1393
|
-
sets: RoutineSet[];
|
|
1414
|
+
declare const STARRED_EXERCISES_MAX = 100;
|
|
1415
|
+
interface StarredExercise {
|
|
1416
|
+
exerciseId: string;
|
|
1417
|
+
starredAt: IsoDateString;
|
|
1394
1418
|
}
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1419
|
+
/**
|
|
1420
|
+
* Response of GET /exercises/starred and of PUT/DELETE
|
|
1421
|
+
* /exercises/:id/star. Newest first.
|
|
1422
|
+
*/
|
|
1423
|
+
interface StarredExercisesResponse {
|
|
1424
|
+
items: StarredExercise[];
|
|
1400
1425
|
}
|
|
1401
|
-
|
|
1402
|
-
|
|
1426
|
+
|
|
1427
|
+
declare const MEASURABLE_GOAL_TYPES: readonly ["WEEKLY_SESSIONS", "WEEKLY_VOLUME", "STREAK_DAYS", "EXERCISE_ESTIMATED_1RM", "BODY_WEIGHT"];
|
|
1428
|
+
type MeasurableGoalType = (typeof MEASURABLE_GOAL_TYPES)[number];
|
|
1429
|
+
declare const MEASURABLE_GOAL_DIRECTIONS: readonly ["AT_LEAST", "AT_MOST"];
|
|
1430
|
+
type MeasurableGoalDirection = (typeof MEASURABLE_GOAL_DIRECTIONS)[number];
|
|
1431
|
+
declare const MEASURABLE_GOALS_MAX = 8;
|
|
1432
|
+
interface MeasurableGoalExercise {
|
|
1433
|
+
id: string;
|
|
1403
1434
|
name: string;
|
|
1404
|
-
description: string | null;
|
|
1405
|
-
scheduleMode: RoutineScheduleMode;
|
|
1406
|
-
restDays: number[];
|
|
1407
|
-
/** SCHED-06; absent in versions saved before it, which means none. */
|
|
1408
|
-
rotationWeekdays?: number[];
|
|
1409
|
-
days: RoutineVersionDay[];
|
|
1410
1435
|
}
|
|
1411
|
-
|
|
1436
|
+
/** A private target stored in canonical units (kg where applicable). */
|
|
1437
|
+
interface MeasurableGoal {
|
|
1412
1438
|
id: string;
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
kind: RoutineVersionKind;
|
|
1418
|
-
/** BEFORE_RESTORE only: the number of the version that was restored. */
|
|
1419
|
-
restoredVersionNumber: number | null;
|
|
1439
|
+
type: MeasurableGoalType;
|
|
1440
|
+
targetValue: number;
|
|
1441
|
+
direction: MeasurableGoalDirection;
|
|
1442
|
+
exercise?: MeasurableGoalExercise | null;
|
|
1420
1443
|
createdAt: IsoDateString;
|
|
1421
|
-
|
|
1444
|
+
updatedAt: IsoDateString;
|
|
1422
1445
|
}
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1446
|
+
interface MeasurableGoalInput {
|
|
1447
|
+
id?: string;
|
|
1448
|
+
type: MeasurableGoalType;
|
|
1449
|
+
targetValue: number;
|
|
1450
|
+
/** Only BODY_WEIGHT may use AT_MOST; every other goal is AT_LEAST. */
|
|
1451
|
+
direction?: MeasurableGoalDirection;
|
|
1452
|
+
/** Required only for EXERCISE_ESTIMATED_1RM. */
|
|
1453
|
+
exerciseId?: string;
|
|
1427
1454
|
}
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
name?: string | null;
|
|
1455
|
+
interface ReplaceMeasurableGoalsRequest {
|
|
1456
|
+
goals: MeasurableGoalInput[];
|
|
1431
1457
|
}
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1458
|
+
interface PersonalGoalProgress extends MeasurableGoal {
|
|
1459
|
+
currentValue: number | null;
|
|
1460
|
+
remainingValue: number | null;
|
|
1461
|
+
progressPercent: number | null;
|
|
1462
|
+
achieved: boolean | null;
|
|
1463
|
+
/** Monday-based local week for WEEKLY_SESSIONS and WEEKLY_VOLUME. */
|
|
1464
|
+
periodStart?: string;
|
|
1465
|
+
}
|
|
1466
|
+
/** Stable successful response of GET /workouts/progress/goals. */
|
|
1467
|
+
interface PersonalGoalsResponse {
|
|
1468
|
+
timeZone: string;
|
|
1469
|
+
asOf: IsoDateString;
|
|
1470
|
+
goals: PersonalGoalProgress[];
|
|
1437
1471
|
}
|
|
1438
1472
|
|
|
1439
1473
|
/** A local calendar date, YYYY-MM-DD. */
|
|
@@ -1760,4 +1794,4 @@ interface PlannedReminder {
|
|
|
1760
1794
|
routineNames: string[];
|
|
1761
1795
|
}
|
|
1762
1796
|
|
|
1763
|
-
export { ACHIEVEMENT_CATEGORIES, ACHIEVEMENT_DEFINITIONS, type AchievementCategory, type AchievementCategoryProgress, type AchievementDefinition, type AchievementNotification, type AchievementUnlockedEventPayload, type AchievementsResponse, type AppNotification, type Brand, COMEBACK_MIN_INACTIVE_DAYS, COMEBACK_RECOGNITION_LIMIT, COMEBACK_REQUIRED_ACTIVE_DAYS, COMEBACK_SESSION_LOOKBACK, COMEBACK_WINDOW_DAYS, type CalendarDate, type ComebackRecognition, type ComebackRecognitionSummary, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type CreateRoutineVersionRequest, type CreateSessionShareRequest, type DeletePushSubscriptionRequest, 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 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, MOVEMENT_PATTERNS, MUSCLE_GROUPS, type MarkNotificationsReadRequest, type MarkNotificationsReadResponse, type MeasurableGoal, type MeasurableGoalDirection, type MeasurableGoalExercise, type MeasurableGoalInput, type MeasurableGoalType, type MemberRoutinesResponse, 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, 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 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 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, 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_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 RestAlertPushPayload, type RestAlertRefusal, type RestoreRoutineVersionResponse, type Routine, type RoutineDay, type RoutineDayId, type RoutineExercise, type RoutineId, type RoutineScheduleMode, type RoutineSet, type RoutineShare, type RoutineShareListResponse, 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 SessionExerciseSubstitution, type SessionProgressNotification, type SessionRecapRecord, type SessionShare, type SessionShareField, type SessionShareListResponse, type SetAccountTimeZoneRequest, 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 StreakMilestoneEventPayload, type SubstituteSessionExerciseRequest, type SubstituteSessionExerciseResponse, type SupabaseAuthResponse, type SupabaseAuthUser, type SupabaseMigrationResponse, TRAINING_DISCIPLINE_VALUES, TRAINING_EVENT_TYPES, TRAINING_EXPERIENCE_LEVEL_VALUES, TRAINING_GOAL_VALUES, type TrainingDiscipline, type TrainingEventType, type TrainingExperienceLevel, type TrainingGoal, type TrainingIdentity, type TrainingLocationPreference, type TrainingLocationPreferenceInput, type TrainingReminderPreference, type TrainingReminderPushPayload, USERNAME_MAX_LENGTH, USERNAME_MIN_LENGTH, USERNAME_PATTERN_SOURCE, type UpdateNotificationPreferencesRequest, type UpdateProfileDiscoveryRequest, type UpdateProfilePrivacyRequest, type UpdateProfileRequest, type UpdateRoutineRequest, type UpdateRoutineVisibilityRequest, 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 };
|
|
1797
|
+
export { ACHIEVEMENT_CATEGORIES, ACHIEVEMENT_DEFINITIONS, type AchievementCategory, type AchievementCategoryProgress, type AchievementDefinition, type AchievementNotification, type AchievementUnlockedEventPayload, type AchievementsResponse, type AppNotification, 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 ComebackRecognition, type ComebackRecognitionSummary, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type CreateRoutineVersionRequest, type CreateSessionShareRequest, type DeletePushSubscriptionRequest, 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, MOVEMENT_PATTERNS, MUSCLE_GROUPS, type MarkNotificationsReadRequest, type MarkNotificationsReadResponse, type MeasurableGoal, type MeasurableGoalDirection, type MeasurableGoalExercise, type MeasurableGoalInput, type MeasurableGoalType, type MemberRoutinesResponse, 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, 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 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 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, 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_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 RestAlertPushPayload, type RestAlertRefusal, type RestoreRoutineVersionResponse, type Routine, type RoutineDay, type RoutineDayId, type RoutineExercise, type RoutineId, type RoutineScheduleMode, type RoutineSet, type RoutineShare, type RoutineShareListResponse, 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 SessionExerciseSubstitution, type SessionProgressNotification, type SessionRecapRecord, type SessionShare, type SessionShareField, type SessionShareListResponse, type SetAccountTimeZoneRequest, 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 StreakMilestoneEventPayload, type SubstituteSessionExerciseRequest, type SubstituteSessionExerciseResponse, type SupabaseAuthResponse, type SupabaseAuthUser, type SupabaseMigrationResponse, TRAINING_DISCIPLINE_VALUES, TRAINING_EVENT_TYPES, TRAINING_EXPERIENCE_LEVEL_VALUES, TRAINING_GOAL_VALUES, type TrainingDiscipline, type TrainingEventType, type TrainingExperienceLevel, type TrainingGoal, type TrainingIdentity, type TrainingLocationPreference, type TrainingLocationPreferenceInput, type TrainingReminderPreference, type TrainingReminderPushPayload, USERNAME_MAX_LENGTH, USERNAME_MIN_LENGTH, USERNAME_PATTERN_SOURCE, type UpdateNotificationPreferencesRequest, type UpdateProfileDiscoveryRequest, type UpdateProfilePrivacyRequest, type UpdateProfileRequest, type UpdateRoutineRequest, type UpdateRoutineVisibilityRequest, 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 };
|