@sunsteel/contracts 0.50.0 → 0.51.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 +24 -0
- package/dist/index.d.cts +86 -1
- package/dist/index.d.ts +86 -1
- package/dist/index.js +19 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -22,6 +22,7 @@ var index_exports = {};
|
|
|
22
22
|
__export(index_exports, {
|
|
23
23
|
ACHIEVEMENT_CATEGORIES: () => ACHIEVEMENT_CATEGORIES,
|
|
24
24
|
ACHIEVEMENT_DEFINITIONS: () => ACHIEVEMENT_DEFINITIONS,
|
|
25
|
+
BLOCKED_MEMBERS_MAX: () => BLOCKED_MEMBERS_MAX,
|
|
25
26
|
CLONE_ROUTINE_REFUSALS: () => CLONE_ROUTINE_REFUSALS,
|
|
26
27
|
COMEBACK_MIN_INACTIVE_DAYS: () => COMEBACK_MIN_INACTIVE_DAYS,
|
|
27
28
|
COMEBACK_RECOGNITION_LIMIT: () => COMEBACK_RECOGNITION_LIMIT,
|
|
@@ -68,6 +69,10 @@ __export(index_exports, {
|
|
|
68
69
|
RELATIONSHIP_LIST_KINDS: () => RELATIONSHIP_LIST_KINDS,
|
|
69
70
|
RELATIONSHIP_LIST_MAX_LIMIT: () => RELATIONSHIP_LIST_MAX_LIMIT,
|
|
70
71
|
RENAISSANCE_RANK_DEFINITIONS: () => RENAISSANCE_RANK_DEFINITIONS,
|
|
72
|
+
REPORTS_PER_DAY_MAX: () => REPORTS_PER_DAY_MAX,
|
|
73
|
+
REPORT_DETAILS_MAX_LENGTH: () => REPORT_DETAILS_MAX_LENGTH,
|
|
74
|
+
REPORT_REASONS: () => REPORT_REASONS,
|
|
75
|
+
REPORT_SUBJECT_KINDS: () => REPORT_SUBJECT_KINDS,
|
|
71
76
|
REP_TYPES: () => REP_TYPES,
|
|
72
77
|
RESERVED_USERNAMES: () => RESERVED_USERNAMES,
|
|
73
78
|
REST_ALERT_MAX_LEAD_SECONDS: () => REST_ALERT_MAX_LEAD_SECONDS,
|
|
@@ -238,6 +243,20 @@ var FOLLOW_SUGGESTION_REASONS = [
|
|
|
238
243
|
"FOLLOWED_BY_PEOPLE_YOU_FOLLOW"
|
|
239
244
|
];
|
|
240
245
|
|
|
246
|
+
// src/moderation.ts
|
|
247
|
+
var BLOCKED_MEMBERS_MAX = 500;
|
|
248
|
+
var REPORT_SUBJECT_KINDS = ["MEMBER", "ROUTINE", "SESSION"];
|
|
249
|
+
var REPORT_REASONS = [
|
|
250
|
+
"SPAM",
|
|
251
|
+
"HARASSMENT",
|
|
252
|
+
"IMPERSONATION",
|
|
253
|
+
"UNSAFE_ADVICE",
|
|
254
|
+
"SEXUAL_CONTENT",
|
|
255
|
+
"OTHER"
|
|
256
|
+
];
|
|
257
|
+
var REPORT_DETAILS_MAX_LENGTH = 500;
|
|
258
|
+
var REPORTS_PER_DAY_MAX = 20;
|
|
259
|
+
|
|
241
260
|
// src/exercise.ts
|
|
242
261
|
var MOVEMENT_PATTERNS = [
|
|
243
262
|
"HORIZONTAL_PUSH",
|
|
@@ -532,6 +551,7 @@ var STREAK_MAX_GAP_DAYS = 3;
|
|
|
532
551
|
0 && (module.exports = {
|
|
533
552
|
ACHIEVEMENT_CATEGORIES,
|
|
534
553
|
ACHIEVEMENT_DEFINITIONS,
|
|
554
|
+
BLOCKED_MEMBERS_MAX,
|
|
535
555
|
CLONE_ROUTINE_REFUSALS,
|
|
536
556
|
COMEBACK_MIN_INACTIVE_DAYS,
|
|
537
557
|
COMEBACK_RECOGNITION_LIMIT,
|
|
@@ -578,6 +598,10 @@ var STREAK_MAX_GAP_DAYS = 3;
|
|
|
578
598
|
RELATIONSHIP_LIST_KINDS,
|
|
579
599
|
RELATIONSHIP_LIST_MAX_LIMIT,
|
|
580
600
|
RENAISSANCE_RANK_DEFINITIONS,
|
|
601
|
+
REPORTS_PER_DAY_MAX,
|
|
602
|
+
REPORT_DETAILS_MAX_LENGTH,
|
|
603
|
+
REPORT_REASONS,
|
|
604
|
+
REPORT_SUBJECT_KINDS,
|
|
581
605
|
REP_TYPES,
|
|
582
606
|
RESERVED_USERNAMES,
|
|
583
607
|
REST_ALERT_MAX_LEAD_SECONDS,
|
package/dist/index.d.cts
CHANGED
|
@@ -812,6 +812,62 @@ interface AchievementsResponse {
|
|
|
812
812
|
comeback: ComebackRecognitionSummary | null;
|
|
813
813
|
}
|
|
814
814
|
|
|
815
|
+
/**
|
|
816
|
+
* A block is **symmetric**. It removes any follow in both directions and
|
|
817
|
+
* prevents a new one either way; neither account appears in the other's
|
|
818
|
+
* search, suggestions, relationship lists or profile reads. Hiding only the
|
|
819
|
+
* blocked account from the blocker would leave the blocker visible to them,
|
|
820
|
+
* which is the half nobody asks for.
|
|
821
|
+
*
|
|
822
|
+
* It is **not retroactive over what was already handed out**: a `SOC-07`
|
|
823
|
+
* session link and a `ROUT-04` routine link carry no viewer identity, so a
|
|
824
|
+
* block cannot withdraw one. Revoking the link is that control.
|
|
825
|
+
*/
|
|
826
|
+
interface BlockedMember {
|
|
827
|
+
/** The blocked account's identity, as a search result carries it. */
|
|
828
|
+
member: UserSearchResponse;
|
|
829
|
+
blockedAt: IsoDateString;
|
|
830
|
+
}
|
|
831
|
+
/** Stable successful response of GET /users/me/blocks. */
|
|
832
|
+
interface BlockedMembersResponse {
|
|
833
|
+
blocks: BlockedMember[];
|
|
834
|
+
}
|
|
835
|
+
/** One account blocks at most this many others. */
|
|
836
|
+
declare const BLOCKED_MEMBERS_MAX = 500;
|
|
837
|
+
/** What a viewer may do about one profile, so the UI never offers a no-op. */
|
|
838
|
+
interface MemberModerationState {
|
|
839
|
+
/** The viewer has blocked this member. */
|
|
840
|
+
isBlocked: boolean;
|
|
841
|
+
}
|
|
842
|
+
declare const REPORT_SUBJECT_KINDS: readonly ["MEMBER", "ROUTINE", "SESSION"];
|
|
843
|
+
type ReportSubjectKind = (typeof REPORT_SUBJECT_KINDS)[number];
|
|
844
|
+
/**
|
|
845
|
+
* Why something was reported. The list is short and fixed on purpose: a free
|
|
846
|
+
* text field would collect personal data `TRUST-04` has nowhere to put yet.
|
|
847
|
+
*/
|
|
848
|
+
declare const REPORT_REASONS: readonly ["SPAM", "HARASSMENT", "IMPERSONATION", "UNSAFE_ADVICE", "SEXUAL_CONTENT", "OTHER"];
|
|
849
|
+
type ReportReason = (typeof REPORT_REASONS)[number];
|
|
850
|
+
declare const REPORT_DETAILS_MAX_LENGTH = 500;
|
|
851
|
+
/** One account files at most this many reports a day. */
|
|
852
|
+
declare const REPORTS_PER_DAY_MAX = 20;
|
|
853
|
+
/** POST /reports */
|
|
854
|
+
interface CreateReportRequest {
|
|
855
|
+
subjectKind: ReportSubjectKind;
|
|
856
|
+
/** A member id or username, a routine id, or a session share token. */
|
|
857
|
+
subjectId: string;
|
|
858
|
+
reason: ReportReason;
|
|
859
|
+
/** Optional context from the reporter, never required. */
|
|
860
|
+
details?: string | null;
|
|
861
|
+
}
|
|
862
|
+
/**
|
|
863
|
+
* Stable successful response of POST /reports. It confirms the report was
|
|
864
|
+
* recorded and says nothing about review, because nothing reviews it yet.
|
|
865
|
+
*/
|
|
866
|
+
interface CreateReportResponse {
|
|
867
|
+
id: string;
|
|
868
|
+
createdAt: IsoDateString;
|
|
869
|
+
}
|
|
870
|
+
|
|
815
871
|
/**
|
|
816
872
|
* ROUT-11: a WEEKLY routine ties each day to a weekday; a ROTATION routine
|
|
817
873
|
* runs its days in `order`, each after the last completed one, whatever the
|
|
@@ -913,6 +969,11 @@ interface Routine {
|
|
|
913
969
|
* read, where visibility is the reason the reader is there.
|
|
914
970
|
*/
|
|
915
971
|
visibility: RoutineVisibility;
|
|
972
|
+
/**
|
|
973
|
+
* ROUT-06: present only on a routine that was cloned, and only with what
|
|
974
|
+
* this viewer is allowed to know about its source.
|
|
975
|
+
*/
|
|
976
|
+
lineage?: RoutineLineage | null;
|
|
916
977
|
days: RoutineDay[];
|
|
917
978
|
createdAt: IsoDateString;
|
|
918
979
|
updatedAt: IsoDateString;
|
|
@@ -1054,6 +1115,24 @@ interface SharedRoutine {
|
|
|
1054
1115
|
/** When the routine was last changed, not when it was shared. */
|
|
1055
1116
|
updatedAt: IsoDateString;
|
|
1056
1117
|
}
|
|
1118
|
+
/**
|
|
1119
|
+
* ROUT-06. Where a cloned routine came from. It is recorded on the clone and
|
|
1120
|
+
* never on the source, so a routine cannot learn who copied it. It is served
|
|
1121
|
+
* only to a viewer who could read the source anyway: lineage must not become
|
|
1122
|
+
* a way to discover that a private routine exists.
|
|
1123
|
+
*/
|
|
1124
|
+
interface RoutineLineage {
|
|
1125
|
+
/** The routine this one was cloned from, when the viewer may read it. */
|
|
1126
|
+
sourceRoutineId: string | null;
|
|
1127
|
+
/** The original author's public identity, when they still have one. */
|
|
1128
|
+
author: SharedRoutineOwner | null;
|
|
1129
|
+
/**
|
|
1130
|
+
* True when the source exists but this viewer may not read it, or its author
|
|
1131
|
+
* is gone. The clone still says it was cloned; it just cannot say from what.
|
|
1132
|
+
*/
|
|
1133
|
+
isSourceHidden: boolean;
|
|
1134
|
+
clonedAt: IsoDateString;
|
|
1135
|
+
}
|
|
1057
1136
|
/** A routine in a member's visible list, without loading its whole setup. */
|
|
1058
1137
|
interface SharedRoutineSummary {
|
|
1059
1138
|
routineId: string;
|
|
@@ -1247,6 +1326,12 @@ interface PublicUserProfile {
|
|
|
1247
1326
|
followerCount: number;
|
|
1248
1327
|
followingCount: number;
|
|
1249
1328
|
isFollowedByMe: boolean;
|
|
1329
|
+
/**
|
|
1330
|
+
* PROF-10: only on the authenticated read, and only about the viewer's own
|
|
1331
|
+
* action. A profile never says it has blocked the viewer — a blocked viewer
|
|
1332
|
+
* gets a 404, as a denied routine does.
|
|
1333
|
+
*/
|
|
1334
|
+
moderation?: MemberModerationState;
|
|
1250
1335
|
viewerAccess: ProfileViewerAccess;
|
|
1251
1336
|
trainingSummary?: PublicTrainingSummary;
|
|
1252
1337
|
personalRecords?: PersonalRecordEntry[];
|
|
@@ -1794,4 +1879,4 @@ interface PlannedReminder {
|
|
|
1794
1879
|
routineNames: string[];
|
|
1795
1880
|
}
|
|
1796
1881
|
|
|
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 };
|
|
1882
|
+
export { ACHIEVEMENT_CATEGORIES, ACHIEVEMENT_DEFINITIONS, type AchievementCategory, type AchievementCategoryProgress, type AchievementDefinition, type AchievementNotification, type AchievementUnlockedEventPayload, type AchievementsResponse, 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 ComebackRecognition, type ComebackRecognitionSummary, type CreateReportRequest, type CreateReportResponse, 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 MemberModerationState, 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, REPORTS_PER_DAY_MAX, REPORT_DETAILS_MAX_LENGTH, REPORT_REASONS, 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_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 ReportSubjectKind, type RestAlertPushPayload, type RestAlertRefusal, type RestoreRoutineVersionResponse, type Routine, type RoutineDay, type RoutineDayId, type RoutineExercise, type RoutineId, type RoutineLineage, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -812,6 +812,62 @@ interface AchievementsResponse {
|
|
|
812
812
|
comeback: ComebackRecognitionSummary | null;
|
|
813
813
|
}
|
|
814
814
|
|
|
815
|
+
/**
|
|
816
|
+
* A block is **symmetric**. It removes any follow in both directions and
|
|
817
|
+
* prevents a new one either way; neither account appears in the other's
|
|
818
|
+
* search, suggestions, relationship lists or profile reads. Hiding only the
|
|
819
|
+
* blocked account from the blocker would leave the blocker visible to them,
|
|
820
|
+
* which is the half nobody asks for.
|
|
821
|
+
*
|
|
822
|
+
* It is **not retroactive over what was already handed out**: a `SOC-07`
|
|
823
|
+
* session link and a `ROUT-04` routine link carry no viewer identity, so a
|
|
824
|
+
* block cannot withdraw one. Revoking the link is that control.
|
|
825
|
+
*/
|
|
826
|
+
interface BlockedMember {
|
|
827
|
+
/** The blocked account's identity, as a search result carries it. */
|
|
828
|
+
member: UserSearchResponse;
|
|
829
|
+
blockedAt: IsoDateString;
|
|
830
|
+
}
|
|
831
|
+
/** Stable successful response of GET /users/me/blocks. */
|
|
832
|
+
interface BlockedMembersResponse {
|
|
833
|
+
blocks: BlockedMember[];
|
|
834
|
+
}
|
|
835
|
+
/** One account blocks at most this many others. */
|
|
836
|
+
declare const BLOCKED_MEMBERS_MAX = 500;
|
|
837
|
+
/** What a viewer may do about one profile, so the UI never offers a no-op. */
|
|
838
|
+
interface MemberModerationState {
|
|
839
|
+
/** The viewer has blocked this member. */
|
|
840
|
+
isBlocked: boolean;
|
|
841
|
+
}
|
|
842
|
+
declare const REPORT_SUBJECT_KINDS: readonly ["MEMBER", "ROUTINE", "SESSION"];
|
|
843
|
+
type ReportSubjectKind = (typeof REPORT_SUBJECT_KINDS)[number];
|
|
844
|
+
/**
|
|
845
|
+
* Why something was reported. The list is short and fixed on purpose: a free
|
|
846
|
+
* text field would collect personal data `TRUST-04` has nowhere to put yet.
|
|
847
|
+
*/
|
|
848
|
+
declare const REPORT_REASONS: readonly ["SPAM", "HARASSMENT", "IMPERSONATION", "UNSAFE_ADVICE", "SEXUAL_CONTENT", "OTHER"];
|
|
849
|
+
type ReportReason = (typeof REPORT_REASONS)[number];
|
|
850
|
+
declare const REPORT_DETAILS_MAX_LENGTH = 500;
|
|
851
|
+
/** One account files at most this many reports a day. */
|
|
852
|
+
declare const REPORTS_PER_DAY_MAX = 20;
|
|
853
|
+
/** POST /reports */
|
|
854
|
+
interface CreateReportRequest {
|
|
855
|
+
subjectKind: ReportSubjectKind;
|
|
856
|
+
/** A member id or username, a routine id, or a session share token. */
|
|
857
|
+
subjectId: string;
|
|
858
|
+
reason: ReportReason;
|
|
859
|
+
/** Optional context from the reporter, never required. */
|
|
860
|
+
details?: string | null;
|
|
861
|
+
}
|
|
862
|
+
/**
|
|
863
|
+
* Stable successful response of POST /reports. It confirms the report was
|
|
864
|
+
* recorded and says nothing about review, because nothing reviews it yet.
|
|
865
|
+
*/
|
|
866
|
+
interface CreateReportResponse {
|
|
867
|
+
id: string;
|
|
868
|
+
createdAt: IsoDateString;
|
|
869
|
+
}
|
|
870
|
+
|
|
815
871
|
/**
|
|
816
872
|
* ROUT-11: a WEEKLY routine ties each day to a weekday; a ROTATION routine
|
|
817
873
|
* runs its days in `order`, each after the last completed one, whatever the
|
|
@@ -913,6 +969,11 @@ interface Routine {
|
|
|
913
969
|
* read, where visibility is the reason the reader is there.
|
|
914
970
|
*/
|
|
915
971
|
visibility: RoutineVisibility;
|
|
972
|
+
/**
|
|
973
|
+
* ROUT-06: present only on a routine that was cloned, and only with what
|
|
974
|
+
* this viewer is allowed to know about its source.
|
|
975
|
+
*/
|
|
976
|
+
lineage?: RoutineLineage | null;
|
|
916
977
|
days: RoutineDay[];
|
|
917
978
|
createdAt: IsoDateString;
|
|
918
979
|
updatedAt: IsoDateString;
|
|
@@ -1054,6 +1115,24 @@ interface SharedRoutine {
|
|
|
1054
1115
|
/** When the routine was last changed, not when it was shared. */
|
|
1055
1116
|
updatedAt: IsoDateString;
|
|
1056
1117
|
}
|
|
1118
|
+
/**
|
|
1119
|
+
* ROUT-06. Where a cloned routine came from. It is recorded on the clone and
|
|
1120
|
+
* never on the source, so a routine cannot learn who copied it. It is served
|
|
1121
|
+
* only to a viewer who could read the source anyway: lineage must not become
|
|
1122
|
+
* a way to discover that a private routine exists.
|
|
1123
|
+
*/
|
|
1124
|
+
interface RoutineLineage {
|
|
1125
|
+
/** The routine this one was cloned from, when the viewer may read it. */
|
|
1126
|
+
sourceRoutineId: string | null;
|
|
1127
|
+
/** The original author's public identity, when they still have one. */
|
|
1128
|
+
author: SharedRoutineOwner | null;
|
|
1129
|
+
/**
|
|
1130
|
+
* True when the source exists but this viewer may not read it, or its author
|
|
1131
|
+
* is gone. The clone still says it was cloned; it just cannot say from what.
|
|
1132
|
+
*/
|
|
1133
|
+
isSourceHidden: boolean;
|
|
1134
|
+
clonedAt: IsoDateString;
|
|
1135
|
+
}
|
|
1057
1136
|
/** A routine in a member's visible list, without loading its whole setup. */
|
|
1058
1137
|
interface SharedRoutineSummary {
|
|
1059
1138
|
routineId: string;
|
|
@@ -1247,6 +1326,12 @@ interface PublicUserProfile {
|
|
|
1247
1326
|
followerCount: number;
|
|
1248
1327
|
followingCount: number;
|
|
1249
1328
|
isFollowedByMe: boolean;
|
|
1329
|
+
/**
|
|
1330
|
+
* PROF-10: only on the authenticated read, and only about the viewer's own
|
|
1331
|
+
* action. A profile never says it has blocked the viewer — a blocked viewer
|
|
1332
|
+
* gets a 404, as a denied routine does.
|
|
1333
|
+
*/
|
|
1334
|
+
moderation?: MemberModerationState;
|
|
1250
1335
|
viewerAccess: ProfileViewerAccess;
|
|
1251
1336
|
trainingSummary?: PublicTrainingSummary;
|
|
1252
1337
|
personalRecords?: PersonalRecordEntry[];
|
|
@@ -1794,4 +1879,4 @@ interface PlannedReminder {
|
|
|
1794
1879
|
routineNames: string[];
|
|
1795
1880
|
}
|
|
1796
1881
|
|
|
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 };
|
|
1882
|
+
export { ACHIEVEMENT_CATEGORIES, ACHIEVEMENT_DEFINITIONS, type AchievementCategory, type AchievementCategoryProgress, type AchievementDefinition, type AchievementNotification, type AchievementUnlockedEventPayload, type AchievementsResponse, 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 ComebackRecognition, type ComebackRecognitionSummary, type CreateReportRequest, type CreateReportResponse, 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 MemberModerationState, 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, REPORTS_PER_DAY_MAX, REPORT_DETAILS_MAX_LENGTH, REPORT_REASONS, 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_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 ReportSubjectKind, type RestAlertPushPayload, type RestAlertRefusal, type RestoreRoutineVersionResponse, type Routine, type RoutineDay, type RoutineDayId, type RoutineExercise, type RoutineId, type RoutineLineage, 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 };
|
package/dist/index.js
CHANGED
|
@@ -130,6 +130,20 @@ var FOLLOW_SUGGESTION_REASONS = [
|
|
|
130
130
|
"FOLLOWED_BY_PEOPLE_YOU_FOLLOW"
|
|
131
131
|
];
|
|
132
132
|
|
|
133
|
+
// src/moderation.ts
|
|
134
|
+
var BLOCKED_MEMBERS_MAX = 500;
|
|
135
|
+
var REPORT_SUBJECT_KINDS = ["MEMBER", "ROUTINE", "SESSION"];
|
|
136
|
+
var REPORT_REASONS = [
|
|
137
|
+
"SPAM",
|
|
138
|
+
"HARASSMENT",
|
|
139
|
+
"IMPERSONATION",
|
|
140
|
+
"UNSAFE_ADVICE",
|
|
141
|
+
"SEXUAL_CONTENT",
|
|
142
|
+
"OTHER"
|
|
143
|
+
];
|
|
144
|
+
var REPORT_DETAILS_MAX_LENGTH = 500;
|
|
145
|
+
var REPORTS_PER_DAY_MAX = 20;
|
|
146
|
+
|
|
133
147
|
// src/exercise.ts
|
|
134
148
|
var MOVEMENT_PATTERNS = [
|
|
135
149
|
"HORIZONTAL_PUSH",
|
|
@@ -423,6 +437,7 @@ var STREAK_MAX_GAP_DAYS = 3;
|
|
|
423
437
|
export {
|
|
424
438
|
ACHIEVEMENT_CATEGORIES,
|
|
425
439
|
ACHIEVEMENT_DEFINITIONS,
|
|
440
|
+
BLOCKED_MEMBERS_MAX,
|
|
426
441
|
CLONE_ROUTINE_REFUSALS,
|
|
427
442
|
COMEBACK_MIN_INACTIVE_DAYS,
|
|
428
443
|
COMEBACK_RECOGNITION_LIMIT,
|
|
@@ -469,6 +484,10 @@ export {
|
|
|
469
484
|
RELATIONSHIP_LIST_KINDS,
|
|
470
485
|
RELATIONSHIP_LIST_MAX_LIMIT,
|
|
471
486
|
RENAISSANCE_RANK_DEFINITIONS,
|
|
487
|
+
REPORTS_PER_DAY_MAX,
|
|
488
|
+
REPORT_DETAILS_MAX_LENGTH,
|
|
489
|
+
REPORT_REASONS,
|
|
490
|
+
REPORT_SUBJECT_KINDS,
|
|
472
491
|
REP_TYPES,
|
|
473
492
|
RESERVED_USERNAMES,
|
|
474
493
|
REST_ALERT_MAX_LEAD_SECONDS,
|