shred-api-client 2.10.6 → 2.11.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.d.ts CHANGED
@@ -197,7 +197,7 @@ type Context = {
197
197
  requestId?: string;
198
198
  };
199
199
 
200
- interface IAPI$e {
200
+ interface IAPI$f {
201
201
  getPrompt: (c: Context) => Promise<Prompt>;
202
202
  addScript: (c: Context, script: Partial<Script>) => Promise<Script>;
203
203
  deleteScript: (c: Context, id: string) => Promise<boolean>;
@@ -205,7 +205,7 @@ interface IAPI$e {
205
205
  generateScript: (c: Context, data: ScriptIARequest) => Promise<string>;
206
206
  updateScript: (c: Context, id: string, script: Partial<Script>) => Promise<boolean>;
207
207
  }
208
- declare const Endpoints$d: {
208
+ declare const Endpoints$e: {
209
209
  GetPrompt: {
210
210
  uri: string;
211
211
  method: string;
@@ -232,15 +232,15 @@ declare const Endpoints$d: {
232
232
  };
233
233
  };
234
234
 
235
- type index$g_Category = Category;
236
- declare const index$g_CategorySchema: typeof CategorySchema;
237
- declare const index$g_PromptSchema: typeof PromptSchema;
238
- type index$g_Script = Script;
239
- type index$g_ScriptIARequest = ScriptIARequest;
240
- declare const index$g_ScriptIARequestSchema: typeof ScriptIARequestSchema;
241
- declare const index$g_ScriptSchema: typeof ScriptSchema;
242
- declare namespace index$g {
243
- export { type index$g_Category as Category, index$g_CategorySchema as CategorySchema, Endpoints$d as Endpoints, type Prompt as Entity, type IAPI$e as IAPI, index$g_PromptSchema as PromptSchema, type index$g_Script as Script, type index$g_ScriptIARequest as ScriptIARequest, index$g_ScriptIARequestSchema as ScriptIARequestSchema, index$g_ScriptSchema as ScriptSchema };
235
+ type index$h_Category = Category;
236
+ declare const index$h_CategorySchema: typeof CategorySchema;
237
+ declare const index$h_PromptSchema: typeof PromptSchema;
238
+ type index$h_Script = Script;
239
+ type index$h_ScriptIARequest = ScriptIARequest;
240
+ declare const index$h_ScriptIARequestSchema: typeof ScriptIARequestSchema;
241
+ declare const index$h_ScriptSchema: typeof ScriptSchema;
242
+ declare namespace index$h {
243
+ export { type index$h_Category as Category, index$h_CategorySchema as CategorySchema, Endpoints$e as Endpoints, type Prompt as Entity, type IAPI$f as IAPI, index$h_PromptSchema as PromptSchema, type index$h_Script as Script, type index$h_ScriptIARequest as ScriptIARequest, index$h_ScriptIARequestSchema as ScriptIARequestSchema, index$h_ScriptSchema as ScriptSchema };
244
244
  }
245
245
 
246
246
  declare enum Type {
@@ -595,7 +595,7 @@ type Plan = z.infer<typeof PlanSchema>;
595
595
  type Product = z.infer<typeof ProductSchema>;
596
596
  type PromoCode = z.infer<typeof PromoCodeSchema>;
597
597
 
598
- interface IAPI$d {
598
+ interface IAPI$e {
599
599
  getCharges: (ctx: Context) => Promise<Charge[]>;
600
600
  getPortalUrl: (ctx: Context) => Promise<string>;
601
601
  getSubscription: (context: Context, userId?: string) => Promise<Subscription | null>;
@@ -609,7 +609,7 @@ interface IAPI$d {
609
609
  getSubscriptionsSummary: (ctx: Context) => Promise<SubscriptionSummary[]>;
610
610
  listPromoCodes: (ctx: Context) => Promise<PromoCode[]>;
611
611
  }
612
- declare const Endpoints$c: {
612
+ declare const Endpoints$d: {
613
613
  GetPortal: {
614
614
  uri: string;
615
615
  method: string;
@@ -668,19 +668,19 @@ declare const Endpoints$c: {
668
668
  };
669
669
  };
670
670
 
671
- type index$f_Charge = Charge;
672
- declare const index$f_ChargeSchema: typeof ChargeSchema;
673
- type index$f_Plan = Plan;
674
- declare const index$f_PlanSchema: typeof PlanSchema;
675
- type index$f_Product = Product;
676
- declare const index$f_ProductSchema: typeof ProductSchema;
677
- type index$f_PromoCode = PromoCode;
678
- declare const index$f_SubscriptionSchema: typeof SubscriptionSchema;
679
- declare const index$f_SubscriptionTypeSchema: typeof SubscriptionTypeSchema;
680
- type index$f_Type = Type;
681
- declare const index$f_Type: typeof Type;
682
- declare namespace index$f {
683
- export { type index$f_Charge as Charge, index$f_ChargeSchema as ChargeSchema, Endpoints$c as Endpoints, type Subscription as Entity, type IAPI$d as IAPI, type index$f_Plan as Plan, index$f_PlanSchema as PlanSchema, type index$f_Product as Product, index$f_ProductSchema as ProductSchema, type index$f_PromoCode as PromoCode, index$f_SubscriptionSchema as SubscriptionSchema, index$f_SubscriptionTypeSchema as SubscriptionTypeSchema, type SubscriptionSummary as Summary, index$f_Type as Type };
671
+ type index$g_Charge = Charge;
672
+ declare const index$g_ChargeSchema: typeof ChargeSchema;
673
+ type index$g_Plan = Plan;
674
+ declare const index$g_PlanSchema: typeof PlanSchema;
675
+ type index$g_Product = Product;
676
+ declare const index$g_ProductSchema: typeof ProductSchema;
677
+ type index$g_PromoCode = PromoCode;
678
+ declare const index$g_SubscriptionSchema: typeof SubscriptionSchema;
679
+ declare const index$g_SubscriptionTypeSchema: typeof SubscriptionTypeSchema;
680
+ type index$g_Type = Type;
681
+ declare const index$g_Type: typeof Type;
682
+ declare namespace index$g {
683
+ export { type index$g_Charge as Charge, index$g_ChargeSchema as ChargeSchema, Endpoints$d as Endpoints, type Subscription as Entity, type IAPI$e as IAPI, type index$g_Plan as Plan, index$g_PlanSchema as PlanSchema, type index$g_Product as Product, index$g_ProductSchema as ProductSchema, type index$g_PromoCode as PromoCode, index$g_SubscriptionSchema as SubscriptionSchema, index$g_SubscriptionTypeSchema as SubscriptionTypeSchema, type SubscriptionSummary as Summary, index$g_Type as Type };
684
684
  }
685
685
 
686
686
  declare enum Role$1 {
@@ -873,16 +873,16 @@ type APIResponse<T> = {
873
873
  perPage?: number;
874
874
  };
875
875
 
876
- type index$e_APIResponse<T> = APIResponse<T>;
877
- type index$e_QueryFilterOp = QueryFilterOp;
878
- type index$e_QueryOptions<T> = QueryOptions<T>;
879
- type index$e_QueryOrderBy<T> = QueryOrderBy<T>;
880
- type index$e_QueryWhere<T> = QueryWhere<T>;
881
- declare namespace index$e {
882
- export type { index$e_APIResponse as APIResponse, index$e_QueryFilterOp as QueryFilterOp, index$e_QueryOptions as QueryOptions, index$e_QueryOrderBy as QueryOrderBy, index$e_QueryWhere as QueryWhere };
876
+ type index$f_APIResponse<T> = APIResponse<T>;
877
+ type index$f_QueryFilterOp = QueryFilterOp;
878
+ type index$f_QueryOptions<T> = QueryOptions<T>;
879
+ type index$f_QueryOrderBy<T> = QueryOrderBy<T>;
880
+ type index$f_QueryWhere<T> = QueryWhere<T>;
881
+ declare namespace index$f {
882
+ export type { index$f_APIResponse as APIResponse, index$f_QueryFilterOp as QueryFilterOp, index$f_QueryOptions as QueryOptions, index$f_QueryOrderBy as QueryOrderBy, index$f_QueryWhere as QueryWhere };
883
883
  }
884
884
 
885
- interface IAPI$c {
885
+ interface IAPI$d {
886
886
  getUserInfo: (context: Context) => Promise<User>;
887
887
  isEmailAvaliable: (email: string) => Promise<boolean>;
888
888
  sendValidationCode: (email: string) => Promise<boolean>;
@@ -899,7 +899,7 @@ interface IAPI$c {
899
899
  search: (ctx: Context, query: QueryOptions<User>) => Promise<APIResponse<User>>;
900
900
  createUser: (data: Create$2) => Promise<User>;
901
901
  }
902
- declare const Endpoints$b: {
902
+ declare const Endpoints$c: {
903
903
  ChangeEmail: {
904
904
  uri: string;
905
905
  method: string;
@@ -966,11 +966,11 @@ declare const Endpoints$b: {
966
966
  };
967
967
  };
968
968
 
969
- type index$d_System = System;
970
- declare const index$d_System: typeof System;
971
- declare const index$d_UserSchema: typeof UserSchema;
972
- declare namespace index$d {
973
- export { type Create$2 as Create, Endpoints$b as Endpoints, type User as Entity, type IAPI$c as IAPI, type Preferences$1 as Preferences, PreferencesSchema$1 as PreferencesSchema, Role$1 as Role, index$d_System as System, type Update$2 as Update, index$d_UserSchema as UserSchema };
969
+ type index$e_System = System;
970
+ declare const index$e_System: typeof System;
971
+ declare const index$e_UserSchema: typeof UserSchema;
972
+ declare namespace index$e {
973
+ export { type Create$2 as Create, Endpoints$c as Endpoints, type User as Entity, type IAPI$d as IAPI, type Preferences$1 as Preferences, PreferencesSchema$1 as PreferencesSchema, Role$1 as Role, index$e_System as System, type Update$2 as Update, index$e_UserSchema as UserSchema };
974
974
  }
975
975
 
976
976
  declare const PreferencesSchema: z.ZodObject<{
@@ -1710,7 +1710,7 @@ type Tenant = z.infer<typeof TenantSchema>;
1710
1710
  type Member = z.infer<typeof MemberSchema>;
1711
1711
  type Preferences = z.infer<typeof PreferencesSchema>;
1712
1712
 
1713
- interface IAPI$b {
1713
+ interface IAPI$c {
1714
1714
  getByInviteCode: (code: string, context?: Context) => Promise<Tenant | null>;
1715
1715
  create: (tenant: Tenant, context: Context) => Promise<boolean>;
1716
1716
  list: (context: Context) => Promise<Tenant[]>;
@@ -1719,7 +1719,7 @@ interface IAPI$b {
1719
1719
  update: (tenantId: string, data: TenantUpdate, context: Context) => Promise<boolean>;
1720
1720
  updateMembers: (tenantId: string, memberUpdate: MemberUpdate, context: Context) => Promise<boolean>;
1721
1721
  }
1722
- declare const Endpoints$a: {
1722
+ declare const Endpoints$b: {
1723
1723
  GetByInviteCode: {
1724
1724
  uri: string;
1725
1725
  method: string;
@@ -1754,17 +1754,17 @@ declare const Endpoints$a: {
1754
1754
  };
1755
1755
  };
1756
1756
 
1757
- type index$c_Member = Member;
1758
- declare const index$c_MemberSchema: typeof MemberSchema;
1759
- type index$c_MemberUpdate = MemberUpdate;
1760
- declare const index$c_MemberUpdateSchema: typeof MemberUpdateSchema;
1761
- type index$c_Preferences = Preferences;
1762
- declare const index$c_PreferencesSchema: typeof PreferencesSchema;
1763
- declare const index$c_TenantSchema: typeof TenantSchema;
1764
- type index$c_TenantUpdate = TenantUpdate;
1765
- declare const index$c_TenantUpdateSchema: typeof TenantUpdateSchema;
1766
- declare namespace index$c {
1767
- export { Action$1 as Action, Endpoints$a as Endpoints, type Tenant as Entity, type IAPI$b as IAPI, type index$c_Member as Member, index$c_MemberSchema as MemberSchema, type index$c_MemberUpdate as MemberUpdate, index$c_MemberUpdateSchema as MemberUpdateSchema, type index$c_Preferences as Preferences, index$c_PreferencesSchema as PreferencesSchema, index$c_TenantSchema as TenantSchema, type index$c_TenantUpdate as TenantUpdate, index$c_TenantUpdateSchema as TenantUpdateSchema };
1757
+ type index$d_Member = Member;
1758
+ declare const index$d_MemberSchema: typeof MemberSchema;
1759
+ type index$d_MemberUpdate = MemberUpdate;
1760
+ declare const index$d_MemberUpdateSchema: typeof MemberUpdateSchema;
1761
+ type index$d_Preferences = Preferences;
1762
+ declare const index$d_PreferencesSchema: typeof PreferencesSchema;
1763
+ declare const index$d_TenantSchema: typeof TenantSchema;
1764
+ type index$d_TenantUpdate = TenantUpdate;
1765
+ declare const index$d_TenantUpdateSchema: typeof TenantUpdateSchema;
1766
+ declare namespace index$d {
1767
+ export { Action$1 as Action, Endpoints$b as Endpoints, type Tenant as Entity, type IAPI$c as IAPI, type index$d_Member as Member, index$d_MemberSchema as MemberSchema, type index$d_MemberUpdate as MemberUpdate, index$d_MemberUpdateSchema as MemberUpdateSchema, type index$d_Preferences as Preferences, index$d_PreferencesSchema as PreferencesSchema, index$d_TenantSchema as TenantSchema, type index$d_TenantUpdate as TenantUpdate, index$d_TenantUpdateSchema as TenantUpdateSchema };
1768
1768
  }
1769
1769
 
1770
1770
  declare const TrackParamSchema: z.ZodObject<{
@@ -1811,21 +1811,21 @@ declare const TrackSchema: z.ZodObject<{
1811
1811
  type Track = z.infer<typeof TrackSchema>;
1812
1812
  type TrackParam = z.infer<typeof TrackParamSchema>;
1813
1813
 
1814
- interface IAPI$a {
1814
+ interface IAPI$b {
1815
1815
  send: (t: Track) => Promise<boolean>;
1816
1816
  }
1817
- declare const Endpoints$9: {
1817
+ declare const Endpoints$a: {
1818
1818
  Track: {
1819
1819
  uri: string;
1820
1820
  method: string;
1821
1821
  };
1822
1822
  };
1823
1823
 
1824
- type index$b_TrackParam = TrackParam;
1825
- declare const index$b_TrackParamSchema: typeof TrackParamSchema;
1826
- declare const index$b_TrackSchema: typeof TrackSchema;
1827
- declare namespace index$b {
1828
- export { Endpoints$9 as Endpoints, type Track as Entity, type IAPI$a as IAPI, type index$b_TrackParam as TrackParam, index$b_TrackParamSchema as TrackParamSchema, index$b_TrackSchema as TrackSchema };
1824
+ type index$c_TrackParam = TrackParam;
1825
+ declare const index$c_TrackParamSchema: typeof TrackParamSchema;
1826
+ declare const index$c_TrackSchema: typeof TrackSchema;
1827
+ declare namespace index$c {
1828
+ export { Endpoints$a as Endpoints, type Track as Entity, type IAPI$b as IAPI, type index$c_TrackParam as TrackParam, index$c_TrackParamSchema as TrackParamSchema, index$c_TrackSchema as TrackSchema };
1829
1829
  }
1830
1830
 
1831
1831
  declare const EmailSchema: z.ZodObject<{
@@ -1843,19 +1843,19 @@ declare const EmailSchema: z.ZodObject<{
1843
1843
  }>;
1844
1844
  type Email = z.infer<typeof EmailSchema>;
1845
1845
 
1846
- interface IAPI$9 {
1846
+ interface IAPI$a {
1847
1847
  send: (email: Email, ctx?: Context) => Promise<boolean>;
1848
1848
  }
1849
- declare const Endpoints$8: {
1849
+ declare const Endpoints$9: {
1850
1850
  SendEmail: {
1851
1851
  uri: string;
1852
1852
  method: string;
1853
1853
  };
1854
1854
  };
1855
1855
 
1856
- declare const index$a_EmailSchema: typeof EmailSchema;
1857
- declare namespace index$a {
1858
- export { index$a_EmailSchema as EmailSchema, Endpoints$8 as Endpoints, type Email as Entity, type IAPI$9 as IAPI };
1856
+ declare const index$b_EmailSchema: typeof EmailSchema;
1857
+ declare namespace index$b {
1858
+ export { index$b_EmailSchema as EmailSchema, Endpoints$9 as Endpoints, type Email as Entity, type IAPI$a as IAPI };
1859
1859
  }
1860
1860
 
1861
1861
  declare enum Status$1 {
@@ -2261,7 +2261,7 @@ type Feedback = z.infer<typeof FeedbackSchema>;
2261
2261
  type Rating = z.infer<typeof RatingSchema>;
2262
2262
  type RatingInput = Pick<Rating, "score" | "tags" | "comment">;
2263
2263
 
2264
- interface IAPI$8 {
2264
+ interface IAPI$9 {
2265
2265
  /** Single-use credential for the SSE stream, which cannot carry a header. */
2266
2266
  streamTicket: (context: Context) => Promise<string>;
2267
2267
  reorder: (context: Context, projectId: string, position: number) => Promise<boolean>;
@@ -2289,7 +2289,7 @@ interface IAPI$8 {
2289
2289
  isEligibleForFreeProject(context: Context): Promise<boolean>;
2290
2290
  };
2291
2291
  }
2292
- declare const Endpoints$7: {
2292
+ declare const Endpoints$8: {
2293
2293
  Reorder: {
2294
2294
  uri: string;
2295
2295
  method: string;
@@ -2420,33 +2420,33 @@ type StatusConfigType = {
2420
2420
  };
2421
2421
  declare const StatusConfig: Record<Status$1, StatusConfigType>;
2422
2422
 
2423
- type index$9_Approve = Approve;
2424
- type index$9_CaptionStyle = CaptionStyle;
2425
- declare const index$9_CaptionStyle: typeof CaptionStyle;
2426
- type index$9_Feedback = Feedback;
2427
- declare const index$9_FeedbackSchema: typeof FeedbackSchema;
2428
- type index$9_Interaction = Interaction;
2429
- declare const index$9_InteractionSchema: typeof InteractionSchema;
2430
- type index$9_InteractionType = InteractionType;
2431
- declare const index$9_InteractionType: typeof InteractionType;
2432
- type index$9_ProjectCreation = ProjectCreation;
2433
- declare const index$9_ProjectSchema: typeof ProjectSchema;
2434
- type index$9_Rating = Rating;
2435
- type index$9_RatingInput = RatingInput;
2436
- declare const index$9_RatingSchema: typeof RatingSchema;
2437
- type index$9_RatingTag = RatingTag;
2438
- declare const index$9_RatingTag: typeof RatingTag;
2439
- type index$9_SendToApproval = SendToApproval;
2440
- declare const index$9_StatusConfig: typeof StatusConfig;
2441
- type index$9_StatusConfigType = StatusConfigType;
2442
- type index$9_StreamTicket = StreamTicket;
2443
- declare const index$9_StreamTicketSchema: typeof StreamTicketSchema;
2444
- type index$9_Style = Style;
2445
- declare const index$9_Styles: typeof Styles;
2446
- type index$9_TimelineItem = TimelineItem;
2447
- declare const index$9_TimelineItemSchema: typeof TimelineItemSchema;
2448
- declare namespace index$9 {
2449
- export { type index$9_Approve as Approve, index$9_CaptionStyle as CaptionStyle, Endpoints$7 as Endpoints, type Project as Entity, type index$9_Feedback as Feedback, index$9_FeedbackSchema as FeedbackSchema, type IAPI$8 as IAPI, type index$9_Interaction as Interaction, index$9_InteractionSchema as InteractionSchema, index$9_InteractionType as InteractionType, type index$9_ProjectCreation as ProjectCreation, index$9_ProjectSchema as ProjectSchema, type index$9_Rating as Rating, type index$9_RatingInput as RatingInput, index$9_RatingSchema as RatingSchema, index$9_RatingTag as RatingTag, type index$9_SendToApproval as SendToApproval, Status$1 as Status, index$9_StatusConfig as StatusConfig, type index$9_StatusConfigType as StatusConfigType, type index$9_StreamTicket as StreamTicket, index$9_StreamTicketSchema as StreamTicketSchema, type index$9_Style as Style, index$9_Styles as Styles, type index$9_TimelineItem as TimelineItem, index$9_TimelineItemSchema as TimelineItemSchema };
2423
+ type index$a_Approve = Approve;
2424
+ type index$a_CaptionStyle = CaptionStyle;
2425
+ declare const index$a_CaptionStyle: typeof CaptionStyle;
2426
+ type index$a_Feedback = Feedback;
2427
+ declare const index$a_FeedbackSchema: typeof FeedbackSchema;
2428
+ type index$a_Interaction = Interaction;
2429
+ declare const index$a_InteractionSchema: typeof InteractionSchema;
2430
+ type index$a_InteractionType = InteractionType;
2431
+ declare const index$a_InteractionType: typeof InteractionType;
2432
+ type index$a_ProjectCreation = ProjectCreation;
2433
+ declare const index$a_ProjectSchema: typeof ProjectSchema;
2434
+ type index$a_Rating = Rating;
2435
+ type index$a_RatingInput = RatingInput;
2436
+ declare const index$a_RatingSchema: typeof RatingSchema;
2437
+ type index$a_RatingTag = RatingTag;
2438
+ declare const index$a_RatingTag: typeof RatingTag;
2439
+ type index$a_SendToApproval = SendToApproval;
2440
+ declare const index$a_StatusConfig: typeof StatusConfig;
2441
+ type index$a_StatusConfigType = StatusConfigType;
2442
+ type index$a_StreamTicket = StreamTicket;
2443
+ declare const index$a_StreamTicketSchema: typeof StreamTicketSchema;
2444
+ type index$a_Style = Style;
2445
+ declare const index$a_Styles: typeof Styles;
2446
+ type index$a_TimelineItem = TimelineItem;
2447
+ declare const index$a_TimelineItemSchema: typeof TimelineItemSchema;
2448
+ declare namespace index$a {
2449
+ export { type index$a_Approve as Approve, index$a_CaptionStyle as CaptionStyle, Endpoints$8 as Endpoints, type Project as Entity, type index$a_Feedback as Feedback, index$a_FeedbackSchema as FeedbackSchema, type IAPI$9 as IAPI, type index$a_Interaction as Interaction, index$a_InteractionSchema as InteractionSchema, index$a_InteractionType as InteractionType, type index$a_ProjectCreation as ProjectCreation, index$a_ProjectSchema as ProjectSchema, type index$a_Rating as Rating, type index$a_RatingInput as RatingInput, index$a_RatingSchema as RatingSchema, index$a_RatingTag as RatingTag, type index$a_SendToApproval as SendToApproval, Status$1 as Status, index$a_StatusConfig as StatusConfig, type index$a_StatusConfigType as StatusConfigType, type index$a_StreamTicket as StreamTicket, index$a_StreamTicketSchema as StreamTicketSchema, type index$a_Style as Style, index$a_Styles as Styles, type index$a_TimelineItem as TimelineItem, index$a_TimelineItemSchema as TimelineItemSchema };
2450
2450
  }
2451
2451
 
2452
2452
  declare const DailyMilestoneSchema: z.ZodObject<{
@@ -2518,11 +2518,11 @@ declare const GoalSchema: z.ZodObject<{
2518
2518
  type DailyMilestone = z.infer<typeof DailyMilestoneSchema>;
2519
2519
  type Goal = z.infer<typeof GoalSchema>;
2520
2520
 
2521
- interface IAPI$7 {
2521
+ interface IAPI$8 {
2522
2522
  getGoals: (context: Context) => Promise<Goal[]>;
2523
2523
  getEditorGoals: (context: Context, editorId: string) => Promise<Goal[]>;
2524
2524
  }
2525
- declare const Endpoints$6: {
2525
+ declare const Endpoints$7: {
2526
2526
  GetGoals: {
2527
2527
  uri: string;
2528
2528
  method: string;
@@ -2533,11 +2533,11 @@ declare const Endpoints$6: {
2533
2533
  };
2534
2534
  };
2535
2535
 
2536
- type index$8_DailyMilestone = DailyMilestone;
2537
- declare const index$8_DailyMilestoneSchema: typeof DailyMilestoneSchema;
2538
- declare const index$8_GoalSchema: typeof GoalSchema;
2539
- declare namespace index$8 {
2540
- export { type index$8_DailyMilestone as DailyMilestone, index$8_DailyMilestoneSchema as DailyMilestoneSchema, Endpoints$6 as Endpoints, type Goal as Entity, index$8_GoalSchema as GoalSchema, type IAPI$7 as IAPI };
2536
+ type index$9_DailyMilestone = DailyMilestone;
2537
+ declare const index$9_DailyMilestoneSchema: typeof DailyMilestoneSchema;
2538
+ declare const index$9_GoalSchema: typeof GoalSchema;
2539
+ declare namespace index$9 {
2540
+ export { type index$9_DailyMilestone as DailyMilestone, index$9_DailyMilestoneSchema as DailyMilestoneSchema, Endpoints$7 as Endpoints, type Goal as Entity, index$9_GoalSchema as GoalSchema, type IAPI$8 as IAPI };
2541
2541
  }
2542
2542
 
2543
2543
  declare const EditorSchema: z.ZodObject<{
@@ -2570,11 +2570,11 @@ declare const EditorSchema: z.ZodObject<{
2570
2570
  }>;
2571
2571
  type Editor = z.infer<typeof EditorSchema>;
2572
2572
 
2573
- interface IAPI$6 {
2573
+ interface IAPI$7 {
2574
2574
  getAll(context: Context): Promise<Editor[]>;
2575
2575
  getById(context: Context, editorId: string): Promise<Editor>;
2576
2576
  }
2577
- declare const Endpoints$5: {
2577
+ declare const Endpoints$6: {
2578
2578
  GetAll: {
2579
2579
  uri: string;
2580
2580
  method: string;
@@ -2585,9 +2585,9 @@ declare const Endpoints$5: {
2585
2585
  };
2586
2586
  };
2587
2587
 
2588
- declare const index$7_EditorSchema: typeof EditorSchema;
2589
- declare namespace index$7 {
2590
- export { index$7_EditorSchema as EditorSchema, Endpoints$5 as Endpoints, type Editor as Entity, type IAPI$6 as IAPI };
2588
+ declare const index$8_EditorSchema: typeof EditorSchema;
2589
+ declare namespace index$8 {
2590
+ export { index$8_EditorSchema as EditorSchema, Endpoints$6 as Endpoints, type Editor as Entity, type IAPI$7 as IAPI };
2591
2591
  }
2592
2592
 
2593
2593
  declare enum Frequency {
@@ -3088,7 +3088,7 @@ type RecurrenceRule = z.infer<typeof RecurrenceRuleSchema>;
3088
3088
  type History = z.infer<typeof HistorySchema>;
3089
3089
  type Criteria = z.infer<typeof CriteriaSchema>;
3090
3090
 
3091
- interface IAPI$5 {
3091
+ interface IAPI$6 {
3092
3092
  getTriggers: (ctx: Context) => Promise<APIResponse<Trigger>>;
3093
3093
  createTrigger: (ctx: Context, t: Trigger) => Promise<Trigger>;
3094
3094
  deleteTrigger: (ctx: Context, triggerId: string) => Promise<boolean>;
@@ -3098,7 +3098,7 @@ interface IAPI$5 {
3098
3098
  markAsRead: (ctx: Context, id: string) => Promise<boolean>;
3099
3099
  clearNotifications: (ctx: Context) => Promise<boolean>;
3100
3100
  }
3101
- declare const Endpoints$4: {
3101
+ declare const Endpoints$5: {
3102
3102
  Create: {
3103
3103
  uri: string;
3104
3104
  method: string;
@@ -3133,35 +3133,35 @@ declare const Endpoints$4: {
3133
3133
  };
3134
3134
  };
3135
3135
 
3136
- type index$6_Criteria = Criteria;
3137
- declare const index$6_CriteriaSchema: typeof CriteriaSchema;
3138
- type index$6_CriteriaType = CriteriaType;
3139
- declare const index$6_CriteriaType: typeof CriteriaType;
3140
- type index$6_Frequency = Frequency;
3141
- declare const index$6_Frequency: typeof Frequency;
3142
- type index$6_History = History;
3143
- declare const index$6_HistorySchema: typeof HistorySchema;
3144
- type index$6_NotificationDetail = NotificationDetail;
3145
- declare const index$6_NotificationDetailSchema: typeof NotificationDetailSchema;
3146
- type index$6_NotificationItem = NotificationItem;
3147
- declare const index$6_NotificationItemSchema: typeof NotificationItemSchema;
3148
- type index$6_NotificationType = NotificationType;
3149
- declare const index$6_NotificationType: typeof NotificationType;
3150
- type index$6_RecurrenceRule = RecurrenceRule;
3151
- declare const index$6_RecurrenceRuleSchema: typeof RecurrenceRuleSchema;
3152
- type index$6_Status = Status;
3153
- declare const index$6_Status: typeof Status;
3154
- type index$6_TransportType = TransportType;
3155
- declare const index$6_TransportType: typeof TransportType;
3156
- type index$6_Trigger = Trigger;
3157
- declare const index$6_TriggerSchema: typeof TriggerSchema;
3158
- type index$6_WeekDay = WeekDay;
3159
- declare const index$6_WeekDay: typeof WeekDay;
3160
- declare namespace index$6 {
3161
- export { type index$6_Criteria as Criteria, index$6_CriteriaSchema as CriteriaSchema, index$6_CriteriaType as CriteriaType, Endpoints$4 as Endpoints, index$6_Frequency as Frequency, type index$6_History as History, index$6_HistorySchema as HistorySchema, type IAPI$5 as IAPI, type index$6_NotificationDetail as NotificationDetail, index$6_NotificationDetailSchema as NotificationDetailSchema, type index$6_NotificationItem as NotificationItem, index$6_NotificationItemSchema as NotificationItemSchema, index$6_NotificationType as NotificationType, type index$6_RecurrenceRule as RecurrenceRule, index$6_RecurrenceRuleSchema as RecurrenceRuleSchema, index$6_Status as Status, index$6_TransportType as TransportType, type index$6_Trigger as Trigger, index$6_TriggerSchema as TriggerSchema, index$6_WeekDay as WeekDay };
3136
+ type index$7_Criteria = Criteria;
3137
+ declare const index$7_CriteriaSchema: typeof CriteriaSchema;
3138
+ type index$7_CriteriaType = CriteriaType;
3139
+ declare const index$7_CriteriaType: typeof CriteriaType;
3140
+ type index$7_Frequency = Frequency;
3141
+ declare const index$7_Frequency: typeof Frequency;
3142
+ type index$7_History = History;
3143
+ declare const index$7_HistorySchema: typeof HistorySchema;
3144
+ type index$7_NotificationDetail = NotificationDetail;
3145
+ declare const index$7_NotificationDetailSchema: typeof NotificationDetailSchema;
3146
+ type index$7_NotificationItem = NotificationItem;
3147
+ declare const index$7_NotificationItemSchema: typeof NotificationItemSchema;
3148
+ type index$7_NotificationType = NotificationType;
3149
+ declare const index$7_NotificationType: typeof NotificationType;
3150
+ type index$7_RecurrenceRule = RecurrenceRule;
3151
+ declare const index$7_RecurrenceRuleSchema: typeof RecurrenceRuleSchema;
3152
+ type index$7_Status = Status;
3153
+ declare const index$7_Status: typeof Status;
3154
+ type index$7_TransportType = TransportType;
3155
+ declare const index$7_TransportType: typeof TransportType;
3156
+ type index$7_Trigger = Trigger;
3157
+ declare const index$7_TriggerSchema: typeof TriggerSchema;
3158
+ type index$7_WeekDay = WeekDay;
3159
+ declare const index$7_WeekDay: typeof WeekDay;
3160
+ declare namespace index$7 {
3161
+ export { type index$7_Criteria as Criteria, index$7_CriteriaSchema as CriteriaSchema, index$7_CriteriaType as CriteriaType, Endpoints$5 as Endpoints, index$7_Frequency as Frequency, type index$7_History as History, index$7_HistorySchema as HistorySchema, type IAPI$6 as IAPI, type index$7_NotificationDetail as NotificationDetail, index$7_NotificationDetailSchema as NotificationDetailSchema, type index$7_NotificationItem as NotificationItem, index$7_NotificationItemSchema as NotificationItemSchema, index$7_NotificationType as NotificationType, type index$7_RecurrenceRule as RecurrenceRule, index$7_RecurrenceRuleSchema as RecurrenceRuleSchema, index$7_Status as Status, index$7_TransportType as TransportType, type index$7_Trigger as Trigger, index$7_TriggerSchema as TriggerSchema, index$7_WeekDay as WeekDay };
3162
3162
  }
3163
3163
 
3164
- interface IAPI$4 {
3164
+ interface IAPI$5 {
3165
3165
  version: () => Promise<string>;
3166
3166
  }
3167
3167
 
@@ -3305,13 +3305,13 @@ declare const NoteSchema: z.ZodObject<{
3305
3305
  type Note = z.infer<typeof NoteSchema>;
3306
3306
  type NoteHistory = z.infer<typeof NoteHistorySchema>;
3307
3307
 
3308
- interface IAPI$3 {
3308
+ interface IAPI$4 {
3309
3309
  list: (c: Context, userId: string) => Promise<Note[]>;
3310
3310
  add: (c: Context, note: Partial<Note>) => Promise<Note>;
3311
3311
  update: (c: Context, id: string, script: Partial<Note>) => Promise<Note>;
3312
3312
  delete: (c: Context, id: string) => Promise<boolean>;
3313
3313
  }
3314
- declare const Endpoints$3: {
3314
+ declare const Endpoints$4: {
3315
3315
  GetNotes: {
3316
3316
  uri: string;
3317
3317
  method: string;
@@ -3330,11 +3330,11 @@ declare const Endpoints$3: {
3330
3330
  };
3331
3331
  };
3332
3332
 
3333
- type index$5_NoteHistory = NoteHistory;
3334
- declare const index$5_NoteHistorySchema: typeof NoteHistorySchema;
3335
- declare const index$5_NoteSchema: typeof NoteSchema;
3336
- declare namespace index$5 {
3337
- export { Endpoints$3 as Endpoints, type Note as Entity, type IAPI$3 as IAPI, type index$5_NoteHistory as NoteHistory, index$5_NoteHistorySchema as NoteHistorySchema, index$5_NoteSchema as NoteSchema };
3333
+ type index$6_NoteHistory = NoteHistory;
3334
+ declare const index$6_NoteHistorySchema: typeof NoteHistorySchema;
3335
+ declare const index$6_NoteSchema: typeof NoteSchema;
3336
+ declare namespace index$6 {
3337
+ export { Endpoints$4 as Endpoints, type Note as Entity, type IAPI$4 as IAPI, type index$6_NoteHistory as NoteHistory, index$6_NoteHistorySchema as NoteHistorySchema, index$6_NoteSchema as NoteSchema };
3338
3338
  }
3339
3339
 
3340
3340
  declare const SpecialOfferSchema: z.ZodObject<{
@@ -3451,7 +3451,7 @@ type UserOfferDetails = z.infer<typeof UserOfferDetailsSchema>;
3451
3451
  type Create$1 = z.infer<typeof CreateSpecialOfferSchema>;
3452
3452
  type Update$1 = z.infer<typeof UpdateSpecialOfferSchema>;
3453
3453
 
3454
- interface IAPI$2 {
3454
+ interface IAPI$3 {
3455
3455
  list: (ctx: Context) => Promise<SpecialOffer[]>;
3456
3456
  getActive: (ctx: Context) => Promise<SpecialOffer[]>;
3457
3457
  create: (ctx: Context, data: Create$1) => Promise<SpecialOffer>;
@@ -3461,7 +3461,7 @@ interface IAPI$2 {
3461
3461
  getMyOffer: (ctx: Context) => Promise<UserOfferDetails | null>;
3462
3462
  claim: (ctx: Context, callbackUrl?: string) => Promise<string>;
3463
3463
  }
3464
- declare const Endpoints$2: {
3464
+ declare const Endpoints$3: {
3465
3465
  List: {
3466
3466
  uri: string;
3467
3467
  method: string;
@@ -3496,13 +3496,13 @@ declare const Endpoints$2: {
3496
3496
  };
3497
3497
  };
3498
3498
 
3499
- declare const index$4_CreateSpecialOfferSchema: typeof CreateSpecialOfferSchema;
3500
- declare const index$4_SpecialOfferSchema: typeof SpecialOfferSchema;
3501
- declare const index$4_UpdateSpecialOfferSchema: typeof UpdateSpecialOfferSchema;
3502
- type index$4_UserOfferDetails = UserOfferDetails;
3503
- declare const index$4_UserOfferDetailsSchema: typeof UserOfferDetailsSchema;
3504
- declare namespace index$4 {
3505
- export { type Create$1 as Create, index$4_CreateSpecialOfferSchema as CreateSpecialOfferSchema, Endpoints$2 as Endpoints, type SpecialOffer as Entity, type IAPI$2 as IAPI, index$4_SpecialOfferSchema as SpecialOfferSchema, type Update$1 as Update, index$4_UpdateSpecialOfferSchema as UpdateSpecialOfferSchema, type index$4_UserOfferDetails as UserOfferDetails, index$4_UserOfferDetailsSchema as UserOfferDetailsSchema };
3499
+ declare const index$5_CreateSpecialOfferSchema: typeof CreateSpecialOfferSchema;
3500
+ declare const index$5_SpecialOfferSchema: typeof SpecialOfferSchema;
3501
+ declare const index$5_UpdateSpecialOfferSchema: typeof UpdateSpecialOfferSchema;
3502
+ type index$5_UserOfferDetails = UserOfferDetails;
3503
+ declare const index$5_UserOfferDetailsSchema: typeof UserOfferDetailsSchema;
3504
+ declare namespace index$5 {
3505
+ export { type Create$1 as Create, index$5_CreateSpecialOfferSchema as CreateSpecialOfferSchema, Endpoints$3 as Endpoints, type SpecialOffer as Entity, type IAPI$3 as IAPI, index$5_SpecialOfferSchema as SpecialOfferSchema, type Update$1 as Update, index$5_UpdateSpecialOfferSchema as UpdateSpecialOfferSchema, type index$5_UserOfferDetails as UserOfferDetails, index$5_UserOfferDetailsSchema as UserOfferDetailsSchema };
3506
3506
  }
3507
3507
 
3508
3508
  /**
@@ -4176,7 +4176,7 @@ type Update = z.infer<typeof UpdateShredUSessionSchema>;
4176
4176
  type SetRecording = z.infer<typeof SetShredUSessionRecordingSchema>;
4177
4177
  type PreviewEmail = z.infer<typeof PreviewShredUEmailSchema>;
4178
4178
 
4179
- interface IAPI$1 {
4179
+ interface IAPI$2 {
4180
4180
  list: (ctx: Context) => Promise<ShredUSession[]>;
4181
4181
  getUpcoming: (ctx: Context) => Promise<ShredUSessionCustomer[]>;
4182
4182
  getLibrary: (ctx: Context) => Promise<ShredUSessionCustomer[]>;
@@ -4188,7 +4188,7 @@ interface IAPI$1 {
4188
4188
  setRecording: (ctx: Context, id: string, data: SetRecording) => Promise<void>;
4189
4189
  previewEmail: (ctx: Context, data: PreviewEmail) => Promise<void>;
4190
4190
  }
4191
- declare const Endpoints$1: {
4191
+ declare const Endpoints$2: {
4192
4192
  List: {
4193
4193
  uri: string;
4194
4194
  method: string;
@@ -4231,28 +4231,649 @@ declare const Endpoints$1: {
4231
4231
  };
4232
4232
  };
4233
4233
 
4234
- type index$3_Brief = Brief;
4235
- type index$3_Create = Create;
4236
- declare const index$3_CreateShredUBriefSchema: typeof CreateShredUBriefSchema;
4237
- declare const index$3_CreateShredUSessionSchema: typeof CreateShredUSessionSchema;
4238
- type index$3_Join = Join;
4239
- type index$3_PreviewEmail = PreviewEmail;
4240
- declare const index$3_PreviewShredUEmailSchema: typeof PreviewShredUEmailSchema;
4241
- type index$3_SessionAsset = SessionAsset;
4242
- declare const index$3_SessionAssetSchema: typeof SessionAssetSchema;
4243
- type index$3_SetRecording = SetRecording;
4244
- declare const index$3_SetShredUSessionRecordingSchema: typeof SetShredUSessionRecordingSchema;
4245
- declare const index$3_ShredUBriefSchema: typeof ShredUBriefSchema;
4246
- declare const index$3_ShredUJoinSchema: typeof ShredUJoinSchema;
4247
- type index$3_ShredUSessionCustomer = ShredUSessionCustomer;
4248
- declare const index$3_ShredUSessionCustomerSchema: typeof ShredUSessionCustomerSchema;
4249
- declare const index$3_ShredUSessionSchema: typeof ShredUSessionSchema;
4250
- type index$3_ShredUSessionStatus = ShredUSessionStatus;
4251
- declare const index$3_ShredUSessionStatusSchema: typeof ShredUSessionStatusSchema;
4252
- type index$3_Update = Update;
4253
- declare const index$3_UpdateShredUSessionSchema: typeof UpdateShredUSessionSchema;
4234
+ type index$4_Brief = Brief;
4235
+ type index$4_Create = Create;
4236
+ declare const index$4_CreateShredUBriefSchema: typeof CreateShredUBriefSchema;
4237
+ declare const index$4_CreateShredUSessionSchema: typeof CreateShredUSessionSchema;
4238
+ type index$4_Join = Join;
4239
+ type index$4_PreviewEmail = PreviewEmail;
4240
+ declare const index$4_PreviewShredUEmailSchema: typeof PreviewShredUEmailSchema;
4241
+ type index$4_SessionAsset = SessionAsset;
4242
+ declare const index$4_SessionAssetSchema: typeof SessionAssetSchema;
4243
+ type index$4_SetRecording = SetRecording;
4244
+ declare const index$4_SetShredUSessionRecordingSchema: typeof SetShredUSessionRecordingSchema;
4245
+ declare const index$4_ShredUBriefSchema: typeof ShredUBriefSchema;
4246
+ declare const index$4_ShredUJoinSchema: typeof ShredUJoinSchema;
4247
+ type index$4_ShredUSessionCustomer = ShredUSessionCustomer;
4248
+ declare const index$4_ShredUSessionCustomerSchema: typeof ShredUSessionCustomerSchema;
4249
+ declare const index$4_ShredUSessionSchema: typeof ShredUSessionSchema;
4250
+ type index$4_ShredUSessionStatus = ShredUSessionStatus;
4251
+ declare const index$4_ShredUSessionStatusSchema: typeof ShredUSessionStatusSchema;
4252
+ type index$4_Update = Update;
4253
+ declare const index$4_UpdateShredUSessionSchema: typeof UpdateShredUSessionSchema;
4254
+ declare namespace index$4 {
4255
+ export { type index$4_Brief as Brief, type index$4_Create as Create, index$4_CreateShredUBriefSchema as CreateShredUBriefSchema, index$4_CreateShredUSessionSchema as CreateShredUSessionSchema, Endpoints$2 as Endpoints, type ShredUSession as Entity, type IAPI$2 as IAPI, type index$4_Join as Join, type index$4_PreviewEmail as PreviewEmail, index$4_PreviewShredUEmailSchema as PreviewShredUEmailSchema, type index$4_SessionAsset as SessionAsset, index$4_SessionAssetSchema as SessionAssetSchema, type index$4_SetRecording as SetRecording, index$4_SetShredUSessionRecordingSchema as SetShredUSessionRecordingSchema, index$4_ShredUBriefSchema as ShredUBriefSchema, index$4_ShredUJoinSchema as ShredUJoinSchema, type index$4_ShredUSessionCustomer as ShredUSessionCustomer, index$4_ShredUSessionCustomerSchema as ShredUSessionCustomerSchema, index$4_ShredUSessionSchema as ShredUSessionSchema, type index$4_ShredUSessionStatus as ShredUSessionStatus, index$4_ShredUSessionStatusSchema as ShredUSessionStatusSchema, type index$4_Update as Update, index$4_UpdateShredUSessionSchema as UpdateShredUSessionSchema };
4256
+ }
4257
+
4258
+ /** The metrics served today. The list grows, so it never gates parsing — see ScoreMetricSchema. */
4259
+ declare const ScoreMetricKeySchema: z.ZodEnum<["submissions", "interactions", "attendance"]>;
4260
+ /** A labelled range over 0-100. Serves both the overall bands and the per-metric ratings. */
4261
+ declare const ScoreBandSchema: z.ZodObject<{
4262
+ key: z.ZodString;
4263
+ label: z.ZodString;
4264
+ min: z.ZodNumber;
4265
+ max: z.ZodNumber;
4266
+ }, "strip", z.ZodTypeAny, {
4267
+ label: string;
4268
+ min: number;
4269
+ max: number;
4270
+ key: string;
4271
+ }, {
4272
+ label: string;
4273
+ min: number;
4274
+ max: number;
4275
+ key: string;
4276
+ }>;
4277
+ declare const ScoreMetricSchema: z.ZodObject<{
4278
+ /**
4279
+ * Deliberately not the enum: a metric added API-side must not break a client that
4280
+ * predates it. Render the array generically and switch on ScoreMetricKey only where
4281
+ * a known metric needs special treatment.
4282
+ */
4283
+ key: z.ZodString;
4284
+ /** The share this metric actually carried, after unavailable ones were left out. */
4285
+ weight: z.ZodNumber;
4286
+ value: z.ZodNumber;
4287
+ target: z.ZodNumber;
4288
+ ratio: z.ZodNumber;
4289
+ available: z.ZodBoolean;
4290
+ rating: z.ZodOptional<z.ZodObject<{
4291
+ key: z.ZodString;
4292
+ label: z.ZodString;
4293
+ min: z.ZodNumber;
4294
+ max: z.ZodNumber;
4295
+ }, "strip", z.ZodTypeAny, {
4296
+ label: string;
4297
+ min: number;
4298
+ max: number;
4299
+ key: string;
4300
+ }, {
4301
+ label: string;
4302
+ min: number;
4303
+ max: number;
4304
+ key: string;
4305
+ }>>;
4306
+ }, "strip", z.ZodTypeAny, {
4307
+ value: number;
4308
+ key: string;
4309
+ target: number;
4310
+ weight: number;
4311
+ ratio: number;
4312
+ available: boolean;
4313
+ rating?: {
4314
+ label: string;
4315
+ min: number;
4316
+ max: number;
4317
+ key: string;
4318
+ } | undefined;
4319
+ }, {
4320
+ value: number;
4321
+ key: string;
4322
+ target: number;
4323
+ weight: number;
4324
+ ratio: number;
4325
+ available: boolean;
4326
+ rating?: {
4327
+ label: string;
4328
+ min: number;
4329
+ max: number;
4330
+ key: string;
4331
+ } | undefined;
4332
+ }>;
4333
+ declare const ScoreSchema: z.ZodObject<{
4334
+ value: z.ZodNumber;
4335
+ hasData: z.ZodBoolean;
4336
+ period: z.ZodString;
4337
+ periodLabel: z.ZodString;
4338
+ band: z.ZodOptional<z.ZodObject<{
4339
+ key: z.ZodString;
4340
+ label: z.ZodString;
4341
+ min: z.ZodNumber;
4342
+ max: z.ZodNumber;
4343
+ }, "strip", z.ZodTypeAny, {
4344
+ label: string;
4345
+ min: number;
4346
+ max: number;
4347
+ key: string;
4348
+ }, {
4349
+ label: string;
4350
+ min: number;
4351
+ max: number;
4352
+ key: string;
4353
+ }>>;
4354
+ nextBand: z.ZodOptional<z.ZodObject<{
4355
+ key: z.ZodString;
4356
+ label: z.ZodString;
4357
+ min: z.ZodNumber;
4358
+ max: z.ZodNumber;
4359
+ }, "strip", z.ZodTypeAny, {
4360
+ label: string;
4361
+ min: number;
4362
+ max: number;
4363
+ key: string;
4364
+ }, {
4365
+ label: string;
4366
+ min: number;
4367
+ max: number;
4368
+ key: string;
4369
+ }>>;
4370
+ pointsToNextBand: z.ZodOptional<z.ZodNumber>;
4371
+ trend: z.ZodOptional<z.ZodNumber>;
4372
+ computedAt: z.ZodNumber;
4373
+ metrics: z.ZodArray<z.ZodObject<{
4374
+ /**
4375
+ * Deliberately not the enum: a metric added API-side must not break a client that
4376
+ * predates it. Render the array generically and switch on ScoreMetricKey only where
4377
+ * a known metric needs special treatment.
4378
+ */
4379
+ key: z.ZodString;
4380
+ /** The share this metric actually carried, after unavailable ones were left out. */
4381
+ weight: z.ZodNumber;
4382
+ value: z.ZodNumber;
4383
+ target: z.ZodNumber;
4384
+ ratio: z.ZodNumber;
4385
+ available: z.ZodBoolean;
4386
+ rating: z.ZodOptional<z.ZodObject<{
4387
+ key: z.ZodString;
4388
+ label: z.ZodString;
4389
+ min: z.ZodNumber;
4390
+ max: z.ZodNumber;
4391
+ }, "strip", z.ZodTypeAny, {
4392
+ label: string;
4393
+ min: number;
4394
+ max: number;
4395
+ key: string;
4396
+ }, {
4397
+ label: string;
4398
+ min: number;
4399
+ max: number;
4400
+ key: string;
4401
+ }>>;
4402
+ }, "strip", z.ZodTypeAny, {
4403
+ value: number;
4404
+ key: string;
4405
+ target: number;
4406
+ weight: number;
4407
+ ratio: number;
4408
+ available: boolean;
4409
+ rating?: {
4410
+ label: string;
4411
+ min: number;
4412
+ max: number;
4413
+ key: string;
4414
+ } | undefined;
4415
+ }, {
4416
+ value: number;
4417
+ key: string;
4418
+ target: number;
4419
+ weight: number;
4420
+ ratio: number;
4421
+ available: boolean;
4422
+ rating?: {
4423
+ label: string;
4424
+ min: number;
4425
+ max: number;
4426
+ key: string;
4427
+ } | undefined;
4428
+ }>, "many">;
4429
+ }, "strip", z.ZodTypeAny, {
4430
+ value: number;
4431
+ hasData: boolean;
4432
+ period: string;
4433
+ periodLabel: string;
4434
+ computedAt: number;
4435
+ metrics: {
4436
+ value: number;
4437
+ key: string;
4438
+ target: number;
4439
+ weight: number;
4440
+ ratio: number;
4441
+ available: boolean;
4442
+ rating?: {
4443
+ label: string;
4444
+ min: number;
4445
+ max: number;
4446
+ key: string;
4447
+ } | undefined;
4448
+ }[];
4449
+ band?: {
4450
+ label: string;
4451
+ min: number;
4452
+ max: number;
4453
+ key: string;
4454
+ } | undefined;
4455
+ nextBand?: {
4456
+ label: string;
4457
+ min: number;
4458
+ max: number;
4459
+ key: string;
4460
+ } | undefined;
4461
+ pointsToNextBand?: number | undefined;
4462
+ trend?: number | undefined;
4463
+ }, {
4464
+ value: number;
4465
+ hasData: boolean;
4466
+ period: string;
4467
+ periodLabel: string;
4468
+ computedAt: number;
4469
+ metrics: {
4470
+ value: number;
4471
+ key: string;
4472
+ target: number;
4473
+ weight: number;
4474
+ ratio: number;
4475
+ available: boolean;
4476
+ rating?: {
4477
+ label: string;
4478
+ min: number;
4479
+ max: number;
4480
+ key: string;
4481
+ } | undefined;
4482
+ }[];
4483
+ band?: {
4484
+ label: string;
4485
+ min: number;
4486
+ max: number;
4487
+ key: string;
4488
+ } | undefined;
4489
+ nextBand?: {
4490
+ label: string;
4491
+ min: number;
4492
+ max: number;
4493
+ key: string;
4494
+ } | undefined;
4495
+ pointsToNextBand?: number | undefined;
4496
+ trend?: number | undefined;
4497
+ }>;
4498
+ declare const ScoreHistoryEntrySchema: z.ZodObject<{
4499
+ period: z.ZodString;
4500
+ label: z.ZodString;
4501
+ value: z.ZodNumber;
4502
+ band: z.ZodOptional<z.ZodObject<{
4503
+ key: z.ZodString;
4504
+ label: z.ZodString;
4505
+ min: z.ZodNumber;
4506
+ max: z.ZodNumber;
4507
+ }, "strip", z.ZodTypeAny, {
4508
+ label: string;
4509
+ min: number;
4510
+ max: number;
4511
+ key: string;
4512
+ }, {
4513
+ label: string;
4514
+ min: number;
4515
+ max: number;
4516
+ key: string;
4517
+ }>>;
4518
+ }, "strip", z.ZodTypeAny, {
4519
+ value: number;
4520
+ label: string;
4521
+ period: string;
4522
+ band?: {
4523
+ label: string;
4524
+ min: number;
4525
+ max: number;
4526
+ key: string;
4527
+ } | undefined;
4528
+ }, {
4529
+ value: number;
4530
+ label: string;
4531
+ period: string;
4532
+ band?: {
4533
+ label: string;
4534
+ min: number;
4535
+ max: number;
4536
+ key: string;
4537
+ } | undefined;
4538
+ }>;
4539
+ declare const ScoreRecapSchema: z.ZodObject<{
4540
+ current: z.ZodObject<{
4541
+ value: z.ZodNumber;
4542
+ hasData: z.ZodBoolean;
4543
+ period: z.ZodString;
4544
+ periodLabel: z.ZodString;
4545
+ band: z.ZodOptional<z.ZodObject<{
4546
+ key: z.ZodString;
4547
+ label: z.ZodString;
4548
+ min: z.ZodNumber;
4549
+ max: z.ZodNumber;
4550
+ }, "strip", z.ZodTypeAny, {
4551
+ label: string;
4552
+ min: number;
4553
+ max: number;
4554
+ key: string;
4555
+ }, {
4556
+ label: string;
4557
+ min: number;
4558
+ max: number;
4559
+ key: string;
4560
+ }>>;
4561
+ nextBand: z.ZodOptional<z.ZodObject<{
4562
+ key: z.ZodString;
4563
+ label: z.ZodString;
4564
+ min: z.ZodNumber;
4565
+ max: z.ZodNumber;
4566
+ }, "strip", z.ZodTypeAny, {
4567
+ label: string;
4568
+ min: number;
4569
+ max: number;
4570
+ key: string;
4571
+ }, {
4572
+ label: string;
4573
+ min: number;
4574
+ max: number;
4575
+ key: string;
4576
+ }>>;
4577
+ pointsToNextBand: z.ZodOptional<z.ZodNumber>;
4578
+ trend: z.ZodOptional<z.ZodNumber>;
4579
+ computedAt: z.ZodNumber;
4580
+ metrics: z.ZodArray<z.ZodObject<{
4581
+ /**
4582
+ * Deliberately not the enum: a metric added API-side must not break a client that
4583
+ * predates it. Render the array generically and switch on ScoreMetricKey only where
4584
+ * a known metric needs special treatment.
4585
+ */
4586
+ key: z.ZodString;
4587
+ /** The share this metric actually carried, after unavailable ones were left out. */
4588
+ weight: z.ZodNumber;
4589
+ value: z.ZodNumber;
4590
+ target: z.ZodNumber;
4591
+ ratio: z.ZodNumber;
4592
+ available: z.ZodBoolean;
4593
+ rating: z.ZodOptional<z.ZodObject<{
4594
+ key: z.ZodString;
4595
+ label: z.ZodString;
4596
+ min: z.ZodNumber;
4597
+ max: z.ZodNumber;
4598
+ }, "strip", z.ZodTypeAny, {
4599
+ label: string;
4600
+ min: number;
4601
+ max: number;
4602
+ key: string;
4603
+ }, {
4604
+ label: string;
4605
+ min: number;
4606
+ max: number;
4607
+ key: string;
4608
+ }>>;
4609
+ }, "strip", z.ZodTypeAny, {
4610
+ value: number;
4611
+ key: string;
4612
+ target: number;
4613
+ weight: number;
4614
+ ratio: number;
4615
+ available: boolean;
4616
+ rating?: {
4617
+ label: string;
4618
+ min: number;
4619
+ max: number;
4620
+ key: string;
4621
+ } | undefined;
4622
+ }, {
4623
+ value: number;
4624
+ key: string;
4625
+ target: number;
4626
+ weight: number;
4627
+ ratio: number;
4628
+ available: boolean;
4629
+ rating?: {
4630
+ label: string;
4631
+ min: number;
4632
+ max: number;
4633
+ key: string;
4634
+ } | undefined;
4635
+ }>, "many">;
4636
+ }, "strip", z.ZodTypeAny, {
4637
+ value: number;
4638
+ hasData: boolean;
4639
+ period: string;
4640
+ periodLabel: string;
4641
+ computedAt: number;
4642
+ metrics: {
4643
+ value: number;
4644
+ key: string;
4645
+ target: number;
4646
+ weight: number;
4647
+ ratio: number;
4648
+ available: boolean;
4649
+ rating?: {
4650
+ label: string;
4651
+ min: number;
4652
+ max: number;
4653
+ key: string;
4654
+ } | undefined;
4655
+ }[];
4656
+ band?: {
4657
+ label: string;
4658
+ min: number;
4659
+ max: number;
4660
+ key: string;
4661
+ } | undefined;
4662
+ nextBand?: {
4663
+ label: string;
4664
+ min: number;
4665
+ max: number;
4666
+ key: string;
4667
+ } | undefined;
4668
+ pointsToNextBand?: number | undefined;
4669
+ trend?: number | undefined;
4670
+ }, {
4671
+ value: number;
4672
+ hasData: boolean;
4673
+ period: string;
4674
+ periodLabel: string;
4675
+ computedAt: number;
4676
+ metrics: {
4677
+ value: number;
4678
+ key: string;
4679
+ target: number;
4680
+ weight: number;
4681
+ ratio: number;
4682
+ available: boolean;
4683
+ rating?: {
4684
+ label: string;
4685
+ min: number;
4686
+ max: number;
4687
+ key: string;
4688
+ } | undefined;
4689
+ }[];
4690
+ band?: {
4691
+ label: string;
4692
+ min: number;
4693
+ max: number;
4694
+ key: string;
4695
+ } | undefined;
4696
+ nextBand?: {
4697
+ label: string;
4698
+ min: number;
4699
+ max: number;
4700
+ key: string;
4701
+ } | undefined;
4702
+ pointsToNextBand?: number | undefined;
4703
+ trend?: number | undefined;
4704
+ }>;
4705
+ /** Oldest first. Months before the customer's first project are absent, not zero. */
4706
+ history: z.ZodArray<z.ZodObject<{
4707
+ period: z.ZodString;
4708
+ label: z.ZodString;
4709
+ value: z.ZodNumber;
4710
+ band: z.ZodOptional<z.ZodObject<{
4711
+ key: z.ZodString;
4712
+ label: z.ZodString;
4713
+ min: z.ZodNumber;
4714
+ max: z.ZodNumber;
4715
+ }, "strip", z.ZodTypeAny, {
4716
+ label: string;
4717
+ min: number;
4718
+ max: number;
4719
+ key: string;
4720
+ }, {
4721
+ label: string;
4722
+ min: number;
4723
+ max: number;
4724
+ key: string;
4725
+ }>>;
4726
+ }, "strip", z.ZodTypeAny, {
4727
+ value: number;
4728
+ label: string;
4729
+ period: string;
4730
+ band?: {
4731
+ label: string;
4732
+ min: number;
4733
+ max: number;
4734
+ key: string;
4735
+ } | undefined;
4736
+ }, {
4737
+ value: number;
4738
+ label: string;
4739
+ period: string;
4740
+ band?: {
4741
+ label: string;
4742
+ min: number;
4743
+ max: number;
4744
+ key: string;
4745
+ } | undefined;
4746
+ }>, "many">;
4747
+ }, "strip", z.ZodTypeAny, {
4748
+ history: {
4749
+ value: number;
4750
+ label: string;
4751
+ period: string;
4752
+ band?: {
4753
+ label: string;
4754
+ min: number;
4755
+ max: number;
4756
+ key: string;
4757
+ } | undefined;
4758
+ }[];
4759
+ current: {
4760
+ value: number;
4761
+ hasData: boolean;
4762
+ period: string;
4763
+ periodLabel: string;
4764
+ computedAt: number;
4765
+ metrics: {
4766
+ value: number;
4767
+ key: string;
4768
+ target: number;
4769
+ weight: number;
4770
+ ratio: number;
4771
+ available: boolean;
4772
+ rating?: {
4773
+ label: string;
4774
+ min: number;
4775
+ max: number;
4776
+ key: string;
4777
+ } | undefined;
4778
+ }[];
4779
+ band?: {
4780
+ label: string;
4781
+ min: number;
4782
+ max: number;
4783
+ key: string;
4784
+ } | undefined;
4785
+ nextBand?: {
4786
+ label: string;
4787
+ min: number;
4788
+ max: number;
4789
+ key: string;
4790
+ } | undefined;
4791
+ pointsToNextBand?: number | undefined;
4792
+ trend?: number | undefined;
4793
+ };
4794
+ }, {
4795
+ history: {
4796
+ value: number;
4797
+ label: string;
4798
+ period: string;
4799
+ band?: {
4800
+ label: string;
4801
+ min: number;
4802
+ max: number;
4803
+ key: string;
4804
+ } | undefined;
4805
+ }[];
4806
+ current: {
4807
+ value: number;
4808
+ hasData: boolean;
4809
+ period: string;
4810
+ periodLabel: string;
4811
+ computedAt: number;
4812
+ metrics: {
4813
+ value: number;
4814
+ key: string;
4815
+ target: number;
4816
+ weight: number;
4817
+ ratio: number;
4818
+ available: boolean;
4819
+ rating?: {
4820
+ label: string;
4821
+ min: number;
4822
+ max: number;
4823
+ key: string;
4824
+ } | undefined;
4825
+ }[];
4826
+ band?: {
4827
+ label: string;
4828
+ min: number;
4829
+ max: number;
4830
+ key: string;
4831
+ } | undefined;
4832
+ nextBand?: {
4833
+ label: string;
4834
+ min: number;
4835
+ max: number;
4836
+ key: string;
4837
+ } | undefined;
4838
+ pointsToNextBand?: number | undefined;
4839
+ trend?: number | undefined;
4840
+ };
4841
+ }>;
4842
+ type ScoreMetricKey = z.infer<typeof ScoreMetricKeySchema>;
4843
+ type ScoreBand = z.infer<typeof ScoreBandSchema>;
4844
+ type ScoreMetric = z.infer<typeof ScoreMetricSchema>;
4845
+ type Score = z.infer<typeof ScoreSchema>;
4846
+ type ScoreHistoryEntry = z.infer<typeof ScoreHistoryEntrySchema>;
4847
+ type ScoreRecap = z.infer<typeof ScoreRecapSchema>;
4848
+
4849
+ interface IAPI$1 {
4850
+ /**
4851
+ * The recap of a closed month, with the last months for the chart.
4852
+ * Omit `period` for the month that just closed; it is formatted `YYYY-MM`
4853
+ * and a month still being lived is rejected.
4854
+ */
4855
+ getRecap: (context: Context, period?: string) => Promise<ScoreRecap>;
4856
+ }
4857
+ declare const Endpoints$1: {
4858
+ GetRecap: {
4859
+ uri: string;
4860
+ method: string;
4861
+ };
4862
+ };
4863
+
4864
+ type index$3_Score = Score;
4865
+ type index$3_ScoreBand = ScoreBand;
4866
+ declare const index$3_ScoreBandSchema: typeof ScoreBandSchema;
4867
+ type index$3_ScoreHistoryEntry = ScoreHistoryEntry;
4868
+ declare const index$3_ScoreHistoryEntrySchema: typeof ScoreHistoryEntrySchema;
4869
+ type index$3_ScoreMetric = ScoreMetric;
4870
+ type index$3_ScoreMetricKey = ScoreMetricKey;
4871
+ declare const index$3_ScoreMetricKeySchema: typeof ScoreMetricKeySchema;
4872
+ declare const index$3_ScoreMetricSchema: typeof ScoreMetricSchema;
4873
+ declare const index$3_ScoreRecapSchema: typeof ScoreRecapSchema;
4874
+ declare const index$3_ScoreSchema: typeof ScoreSchema;
4254
4875
  declare namespace index$3 {
4255
- export { type index$3_Brief as Brief, type index$3_Create as Create, index$3_CreateShredUBriefSchema as CreateShredUBriefSchema, index$3_CreateShredUSessionSchema as CreateShredUSessionSchema, Endpoints$1 as Endpoints, type ShredUSession as Entity, type IAPI$1 as IAPI, type index$3_Join as Join, type index$3_PreviewEmail as PreviewEmail, index$3_PreviewShredUEmailSchema as PreviewShredUEmailSchema, type index$3_SessionAsset as SessionAsset, index$3_SessionAssetSchema as SessionAssetSchema, type index$3_SetRecording as SetRecording, index$3_SetShredUSessionRecordingSchema as SetShredUSessionRecordingSchema, index$3_ShredUBriefSchema as ShredUBriefSchema, index$3_ShredUJoinSchema as ShredUJoinSchema, type index$3_ShredUSessionCustomer as ShredUSessionCustomer, index$3_ShredUSessionCustomerSchema as ShredUSessionCustomerSchema, index$3_ShredUSessionSchema as ShredUSessionSchema, type index$3_ShredUSessionStatus as ShredUSessionStatus, index$3_ShredUSessionStatusSchema as ShredUSessionStatusSchema, type index$3_Update as Update, index$3_UpdateShredUSessionSchema as UpdateShredUSessionSchema };
4876
+ export { Endpoints$1 as Endpoints, type ScoreRecap as Entity, type IAPI$1 as IAPI, type index$3_Score as Score, type index$3_ScoreBand as ScoreBand, index$3_ScoreBandSchema as ScoreBandSchema, type index$3_ScoreHistoryEntry as ScoreHistoryEntry, index$3_ScoreHistoryEntrySchema as ScoreHistoryEntrySchema, type index$3_ScoreMetric as ScoreMetric, type index$3_ScoreMetricKey as ScoreMetricKey, index$3_ScoreMetricKeySchema as ScoreMetricKeySchema, index$3_ScoreMetricSchema as ScoreMetricSchema, index$3_ScoreRecapSchema as ScoreRecapSchema, index$3_ScoreSchema as ScoreSchema };
4256
4877
  }
4257
4878
 
4258
4879
  /**
@@ -4617,20 +5238,21 @@ declare namespace index$2 {
4617
5238
  }
4618
5239
 
4619
5240
  declare class ShredAPI {
4620
- user: IAPI$c;
4621
- goal: IAPI$7;
4622
- editor: IAPI$6;
4623
- subscription: IAPI$d;
4624
- prompt: IAPI$e;
4625
- pushNotification: IAPI$5;
4626
- email: IAPI$9;
4627
- tenant: IAPI$b;
4628
- app: IAPI$4;
4629
- project: IAPI$8;
4630
- track: IAPI$a;
4631
- note: IAPI$3;
4632
- specialOffer: IAPI$2;
4633
- shredu: IAPI$1;
5241
+ user: IAPI$d;
5242
+ goal: IAPI$8;
5243
+ editor: IAPI$7;
5244
+ subscription: IAPI$e;
5245
+ prompt: IAPI$f;
5246
+ pushNotification: IAPI$6;
5247
+ email: IAPI$a;
5248
+ tenant: IAPI$c;
5249
+ app: IAPI$5;
5250
+ project: IAPI$9;
5251
+ track: IAPI$b;
5252
+ note: IAPI$4;
5253
+ specialOffer: IAPI$3;
5254
+ shredu: IAPI$2;
5255
+ score: IAPI$1;
4634
5256
  rbac: IAPI;
4635
5257
  constructor(env: Environment);
4636
5258
  }
@@ -4723,4 +5345,4 @@ declare namespace index {
4723
5345
  export { index_AssetSchema as AssetSchema, type Asset as Entity };
4724
5346
  }
4725
5347
 
4726
- export { index as Asset, index$e as Core, index$7 as Editor, index$a as Email, index$1 as Exceptions, index$8 as Goal, index$5 as Note, index$6 as Notification, index$9 as Project, index$g as Prompt, index$2 as RBAC, ShredAPI, index$3 as ShredU, index$4 as SpecialOffer, index$f as Subscription, index$c as Tenant, index$b as Track, index$d as User, ShredAPI as default };
5348
+ export { index as Asset, index$f as Core, index$8 as Editor, index$b as Email, index$1 as Exceptions, index$9 as Goal, index$6 as Note, index$7 as Notification, index$a as Project, index$h as Prompt, index$2 as RBAC, index$3 as Score, ShredAPI, index$4 as ShredU, index$5 as SpecialOffer, index$g as Subscription, index$d as Tenant, index$c as Track, index$e as User, ShredAPI as default };