shred-api-client 2.9.13 → 2.9.14

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$d {
200
+ interface IAPI$e {
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$d {
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$c: {
208
+ declare const Endpoints$d: {
209
209
  GetPrompt: {
210
210
  uri: string;
211
211
  method: string;
@@ -232,15 +232,15 @@ declare const Endpoints$c: {
232
232
  };
233
233
  };
234
234
 
235
- type index$f_Category = Category;
236
- declare const index$f_CategorySchema: typeof CategorySchema;
237
- declare const index$f_PromptSchema: typeof PromptSchema;
238
- type index$f_Script = Script;
239
- type index$f_ScriptIARequest = ScriptIARequest;
240
- declare const index$f_ScriptIARequestSchema: typeof ScriptIARequestSchema;
241
- declare const index$f_ScriptSchema: typeof ScriptSchema;
242
- declare namespace index$f {
243
- export { type index$f_Category as Category, index$f_CategorySchema as CategorySchema, Endpoints$c as Endpoints, type Prompt as Entity, type IAPI$d as IAPI, index$f_PromptSchema as PromptSchema, type index$f_Script as Script, type index$f_ScriptIARequest as ScriptIARequest, index$f_ScriptIARequestSchema as ScriptIARequestSchema, index$f_ScriptSchema as ScriptSchema };
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 };
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$c {
598
+ interface IAPI$d {
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$c {
609
609
  getSubscriptionsSummary: (ctx: Context) => Promise<SubscriptionSummary[]>;
610
610
  listPromoCodes: (ctx: Context) => Promise<PromoCode[]>;
611
611
  }
612
- declare const Endpoints$b: {
612
+ declare const Endpoints$c: {
613
613
  GetPortal: {
614
614
  uri: string;
615
615
  method: string;
@@ -668,19 +668,19 @@ declare const Endpoints$b: {
668
668
  };
669
669
  };
670
670
 
671
- type index$e_Charge = Charge;
672
- declare const index$e_ChargeSchema: typeof ChargeSchema;
673
- type index$e_Plan = Plan;
674
- declare const index$e_PlanSchema: typeof PlanSchema;
675
- type index$e_Product = Product;
676
- declare const index$e_ProductSchema: typeof ProductSchema;
677
- type index$e_PromoCode = PromoCode;
678
- declare const index$e_SubscriptionSchema: typeof SubscriptionSchema;
679
- declare const index$e_SubscriptionTypeSchema: typeof SubscriptionTypeSchema;
680
- type index$e_Type = Type;
681
- declare const index$e_Type: typeof Type;
682
- declare namespace index$e {
683
- export { type index$e_Charge as Charge, index$e_ChargeSchema as ChargeSchema, Endpoints$b as Endpoints, type Subscription as Entity, type IAPI$c as IAPI, type index$e_Plan as Plan, index$e_PlanSchema as PlanSchema, type index$e_Product as Product, index$e_ProductSchema as ProductSchema, type index$e_PromoCode as PromoCode, index$e_SubscriptionSchema as SubscriptionSchema, index$e_SubscriptionTypeSchema as SubscriptionTypeSchema, type SubscriptionSummary as Summary, index$e_Type as Type };
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 };
684
684
  }
685
685
 
686
686
  declare enum Role$1 {
@@ -837,8 +837,8 @@ declare const UserSchema: z.ZodObject<{
837
837
  }>;
838
838
  type User = z.infer<typeof UserSchema>;
839
839
  type Preferences$1 = z.infer<typeof PreferencesSchema$1>;
840
- type Update$1 = Pick<User, "name" | "profession" | "preferences" | "photoUrl" | "fcmToken" | "timezone" | "experienceId">;
841
- type Create$1 = Pick<User, "name" | "email"> & {
840
+ type Update$2 = Pick<User, "name" | "profession" | "preferences" | "photoUrl" | "fcmToken" | "timezone" | "experienceId">;
841
+ type Create$2 = Pick<User, "name" | "email"> & {
842
842
  password?: string;
843
843
  passwordConfirmation?: string;
844
844
  invitationCode?: string;
@@ -873,16 +873,16 @@ type APIResponse<T> = {
873
873
  perPage?: number;
874
874
  };
875
875
 
876
- type index$d_APIResponse<T> = APIResponse<T>;
877
- type index$d_QueryFilterOp = QueryFilterOp;
878
- type index$d_QueryOptions<T> = QueryOptions<T>;
879
- type index$d_QueryOrderBy<T> = QueryOrderBy<T>;
880
- type index$d_QueryWhere<T> = QueryWhere<T>;
881
- declare namespace index$d {
882
- export type { index$d_APIResponse as APIResponse, index$d_QueryFilterOp as QueryFilterOp, index$d_QueryOptions as QueryOptions, index$d_QueryOrderBy as QueryOrderBy, index$d_QueryWhere as QueryWhere };
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 };
883
883
  }
884
884
 
885
- interface IAPI$b {
885
+ interface IAPI$c {
886
886
  getUserInfo: (context: Context) => Promise<User>;
887
887
  isEmailAvaliable: (email: string) => Promise<boolean>;
888
888
  sendValidationCode: (email: string) => Promise<boolean>;
@@ -890,16 +890,16 @@ interface IAPI$b {
890
890
  changePassword: (email: string, pass: string, passConfirm: string, code: number) => Promise<boolean>;
891
891
  changeEmail: (ctx: Context, email: string, code: number) => Promise<boolean>;
892
892
  authenticate: (email: string, password: string, system: System | System[]) => Promise<string>;
893
- update: (context: Context, update: Partial<Update$1>) => Promise<boolean>;
893
+ update: (context: Context, update: Partial<Update$2>) => Promise<boolean>;
894
894
  setup: (context: Context) => Promise<boolean>;
895
895
  getBindedUsers: (ctx: Context) => Promise<User[]>;
896
896
  deleteAccount: (ctx: Context) => Promise<boolean>;
897
897
  getIntegrationToken: (ctx: Context) => Promise<string | null>;
898
898
  createIntegrationToken: (ctx: Context) => Promise<string>;
899
899
  search: (ctx: Context, query: QueryOptions<User>) => Promise<APIResponse<User>>;
900
- createUser: (data: Create$1) => Promise<User>;
900
+ createUser: (data: Create$2) => Promise<User>;
901
901
  }
902
- declare const Endpoints$a: {
902
+ declare const Endpoints$b: {
903
903
  ChangeEmail: {
904
904
  uri: string;
905
905
  method: string;
@@ -966,11 +966,11 @@ declare const Endpoints$a: {
966
966
  };
967
967
  };
968
968
 
969
- type index$c_System = System;
970
- declare const index$c_System: typeof System;
971
- declare const index$c_UserSchema: typeof UserSchema;
972
- declare namespace index$c {
973
- export { type Create$1 as Create, Endpoints$a as Endpoints, type User as Entity, type IAPI$b as IAPI, type Preferences$1 as Preferences, PreferencesSchema$1 as PreferencesSchema, Role$1 as Role, index$c_System as System, type Update$1 as Update, index$c_UserSchema as UserSchema };
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 };
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$a {
1713
+ interface IAPI$b {
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$a {
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$9: {
1722
+ declare const Endpoints$a: {
1723
1723
  GetByInviteCode: {
1724
1724
  uri: string;
1725
1725
  method: string;
@@ -1754,17 +1754,17 @@ declare const Endpoints$9: {
1754
1754
  };
1755
1755
  };
1756
1756
 
1757
- type index$b_Member = Member;
1758
- declare const index$b_MemberSchema: typeof MemberSchema;
1759
- type index$b_MemberUpdate = MemberUpdate;
1760
- declare const index$b_MemberUpdateSchema: typeof MemberUpdateSchema;
1761
- type index$b_Preferences = Preferences;
1762
- declare const index$b_PreferencesSchema: typeof PreferencesSchema;
1763
- declare const index$b_TenantSchema: typeof TenantSchema;
1764
- type index$b_TenantUpdate = TenantUpdate;
1765
- declare const index$b_TenantUpdateSchema: typeof TenantUpdateSchema;
1766
- declare namespace index$b {
1767
- export { Action$1 as Action, Endpoints$9 as Endpoints, type Tenant as Entity, type IAPI$a as IAPI, type index$b_Member as Member, index$b_MemberSchema as MemberSchema, type index$b_MemberUpdate as MemberUpdate, index$b_MemberUpdateSchema as MemberUpdateSchema, type index$b_Preferences as Preferences, index$b_PreferencesSchema as PreferencesSchema, index$b_TenantSchema as TenantSchema, type index$b_TenantUpdate as TenantUpdate, index$b_TenantUpdateSchema as TenantUpdateSchema };
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 };
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$9 {
1814
+ interface IAPI$a {
1815
1815
  send: (t: Track) => Promise<boolean>;
1816
1816
  }
1817
- declare const Endpoints$8: {
1817
+ declare const Endpoints$9: {
1818
1818
  Track: {
1819
1819
  uri: string;
1820
1820
  method: string;
1821
1821
  };
1822
1822
  };
1823
1823
 
1824
- type index$a_TrackParam = TrackParam;
1825
- declare const index$a_TrackParamSchema: typeof TrackParamSchema;
1826
- declare const index$a_TrackSchema: typeof TrackSchema;
1827
- declare namespace index$a {
1828
- export { Endpoints$8 as Endpoints, type Track as Entity, type IAPI$9 as IAPI, type index$a_TrackParam as TrackParam, index$a_TrackParamSchema as TrackParamSchema, index$a_TrackSchema as TrackSchema };
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 };
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$8 {
1846
+ interface IAPI$9 {
1847
1847
  send: (email: Email, ctx?: Context) => Promise<boolean>;
1848
1848
  }
1849
- declare const Endpoints$7: {
1849
+ declare const Endpoints$8: {
1850
1850
  SendEmail: {
1851
1851
  uri: string;
1852
1852
  method: string;
1853
1853
  };
1854
1854
  };
1855
1855
 
1856
- declare const index$9_EmailSchema: typeof EmailSchema;
1857
- declare namespace index$9 {
1858
- export { index$9_EmailSchema as EmailSchema, Endpoints$7 as Endpoints, type Email as Entity, type IAPI$8 as IAPI };
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 };
1859
1859
  }
1860
1860
 
1861
1861
  declare enum Status$1 {
@@ -2253,7 +2253,7 @@ type Feedback = z.infer<typeof FeedbackSchema>;
2253
2253
  type Rating = z.infer<typeof RatingSchema>;
2254
2254
  type RatingInput = Pick<Rating, "score" | "tags" | "comment">;
2255
2255
 
2256
- interface IAPI$7 {
2256
+ interface IAPI$8 {
2257
2257
  reorder: (context: Context, projectId: string, position: number) => Promise<boolean>;
2258
2258
  find: (context: Context, projectId: string) => Promise<Project>;
2259
2259
  create: (context: Context, data: ProjectCreation) => Promise<Project>;
@@ -2279,7 +2279,7 @@ interface IAPI$7 {
2279
2279
  isEligibleForFreeProject(context: Context): Promise<boolean>;
2280
2280
  };
2281
2281
  }
2282
- declare const Endpoints$6: {
2282
+ declare const Endpoints$7: {
2283
2283
  Reorder: {
2284
2284
  uri: string;
2285
2285
  method: string;
@@ -2406,31 +2406,31 @@ type StatusConfigType = {
2406
2406
  };
2407
2407
  declare const StatusConfig: Record<Status$1, StatusConfigType>;
2408
2408
 
2409
- type index$8_Approve = Approve;
2410
- type index$8_CaptionStyle = CaptionStyle;
2411
- declare const index$8_CaptionStyle: typeof CaptionStyle;
2412
- type index$8_Feedback = Feedback;
2413
- declare const index$8_FeedbackSchema: typeof FeedbackSchema;
2414
- type index$8_Interaction = Interaction;
2415
- declare const index$8_InteractionSchema: typeof InteractionSchema;
2416
- type index$8_InteractionType = InteractionType;
2417
- declare const index$8_InteractionType: typeof InteractionType;
2418
- type index$8_ProjectCreation = ProjectCreation;
2419
- declare const index$8_ProjectSchema: typeof ProjectSchema;
2420
- type index$8_Rating = Rating;
2421
- type index$8_RatingInput = RatingInput;
2422
- declare const index$8_RatingSchema: typeof RatingSchema;
2423
- type index$8_RatingTag = RatingTag;
2424
- declare const index$8_RatingTag: typeof RatingTag;
2425
- type index$8_SendToApproval = SendToApproval;
2426
- declare const index$8_StatusConfig: typeof StatusConfig;
2427
- type index$8_StatusConfigType = StatusConfigType;
2428
- type index$8_Style = Style;
2429
- declare const index$8_Styles: typeof Styles;
2430
- type index$8_TimelineItem = TimelineItem;
2431
- declare const index$8_TimelineItemSchema: typeof TimelineItemSchema;
2432
- declare namespace index$8 {
2433
- export { type index$8_Approve as Approve, index$8_CaptionStyle as CaptionStyle, Endpoints$6 as Endpoints, type Project as Entity, type index$8_Feedback as Feedback, index$8_FeedbackSchema as FeedbackSchema, type IAPI$7 as IAPI, type index$8_Interaction as Interaction, index$8_InteractionSchema as InteractionSchema, index$8_InteractionType as InteractionType, type index$8_ProjectCreation as ProjectCreation, index$8_ProjectSchema as ProjectSchema, type index$8_Rating as Rating, type index$8_RatingInput as RatingInput, index$8_RatingSchema as RatingSchema, index$8_RatingTag as RatingTag, type index$8_SendToApproval as SendToApproval, Status$1 as Status, index$8_StatusConfig as StatusConfig, type index$8_StatusConfigType as StatusConfigType, type index$8_Style as Style, index$8_Styles as Styles, type index$8_TimelineItem as TimelineItem, index$8_TimelineItemSchema as TimelineItemSchema };
2409
+ type index$9_Approve = Approve;
2410
+ type index$9_CaptionStyle = CaptionStyle;
2411
+ declare const index$9_CaptionStyle: typeof CaptionStyle;
2412
+ type index$9_Feedback = Feedback;
2413
+ declare const index$9_FeedbackSchema: typeof FeedbackSchema;
2414
+ type index$9_Interaction = Interaction;
2415
+ declare const index$9_InteractionSchema: typeof InteractionSchema;
2416
+ type index$9_InteractionType = InteractionType;
2417
+ declare const index$9_InteractionType: typeof InteractionType;
2418
+ type index$9_ProjectCreation = ProjectCreation;
2419
+ declare const index$9_ProjectSchema: typeof ProjectSchema;
2420
+ type index$9_Rating = Rating;
2421
+ type index$9_RatingInput = RatingInput;
2422
+ declare const index$9_RatingSchema: typeof RatingSchema;
2423
+ type index$9_RatingTag = RatingTag;
2424
+ declare const index$9_RatingTag: typeof RatingTag;
2425
+ type index$9_SendToApproval = SendToApproval;
2426
+ declare const index$9_StatusConfig: typeof StatusConfig;
2427
+ type index$9_StatusConfigType = StatusConfigType;
2428
+ type index$9_Style = Style;
2429
+ declare const index$9_Styles: typeof Styles;
2430
+ type index$9_TimelineItem = TimelineItem;
2431
+ declare const index$9_TimelineItemSchema: typeof TimelineItemSchema;
2432
+ declare namespace index$9 {
2433
+ 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_Style as Style, index$9_Styles as Styles, type index$9_TimelineItem as TimelineItem, index$9_TimelineItemSchema as TimelineItemSchema };
2434
2434
  }
2435
2435
 
2436
2436
  declare const DailyMilestoneSchema: z.ZodObject<{
@@ -2502,11 +2502,11 @@ declare const GoalSchema: z.ZodObject<{
2502
2502
  type DailyMilestone = z.infer<typeof DailyMilestoneSchema>;
2503
2503
  type Goal = z.infer<typeof GoalSchema>;
2504
2504
 
2505
- interface IAPI$6 {
2505
+ interface IAPI$7 {
2506
2506
  getGoals: (context: Context) => Promise<Goal[]>;
2507
2507
  getEditorGoals: (context: Context, editorId: string) => Promise<Goal[]>;
2508
2508
  }
2509
- declare const Endpoints$5: {
2509
+ declare const Endpoints$6: {
2510
2510
  GetGoals: {
2511
2511
  uri: string;
2512
2512
  method: string;
@@ -2517,11 +2517,11 @@ declare const Endpoints$5: {
2517
2517
  };
2518
2518
  };
2519
2519
 
2520
- type index$7_DailyMilestone = DailyMilestone;
2521
- declare const index$7_DailyMilestoneSchema: typeof DailyMilestoneSchema;
2522
- declare const index$7_GoalSchema: typeof GoalSchema;
2523
- declare namespace index$7 {
2524
- export { type index$7_DailyMilestone as DailyMilestone, index$7_DailyMilestoneSchema as DailyMilestoneSchema, Endpoints$5 as Endpoints, type Goal as Entity, index$7_GoalSchema as GoalSchema, type IAPI$6 as IAPI };
2520
+ type index$8_DailyMilestone = DailyMilestone;
2521
+ declare const index$8_DailyMilestoneSchema: typeof DailyMilestoneSchema;
2522
+ declare const index$8_GoalSchema: typeof GoalSchema;
2523
+ declare namespace index$8 {
2524
+ 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 };
2525
2525
  }
2526
2526
 
2527
2527
  declare const EditorSchema: z.ZodObject<{
@@ -2554,11 +2554,11 @@ declare const EditorSchema: z.ZodObject<{
2554
2554
  }>;
2555
2555
  type Editor = z.infer<typeof EditorSchema>;
2556
2556
 
2557
- interface IAPI$5 {
2557
+ interface IAPI$6 {
2558
2558
  getAll(context: Context): Promise<Editor[]>;
2559
2559
  getById(context: Context, editorId: string): Promise<Editor>;
2560
2560
  }
2561
- declare const Endpoints$4: {
2561
+ declare const Endpoints$5: {
2562
2562
  GetAll: {
2563
2563
  uri: string;
2564
2564
  method: string;
@@ -2569,9 +2569,9 @@ declare const Endpoints$4: {
2569
2569
  };
2570
2570
  };
2571
2571
 
2572
- declare const index$6_EditorSchema: typeof EditorSchema;
2573
- declare namespace index$6 {
2574
- export { index$6_EditorSchema as EditorSchema, Endpoints$4 as Endpoints, type Editor as Entity, type IAPI$5 as IAPI };
2572
+ declare const index$7_EditorSchema: typeof EditorSchema;
2573
+ declare namespace index$7 {
2574
+ export { index$7_EditorSchema as EditorSchema, Endpoints$5 as Endpoints, type Editor as Entity, type IAPI$6 as IAPI };
2575
2575
  }
2576
2576
 
2577
2577
  declare enum Frequency {
@@ -3072,7 +3072,7 @@ type RecurrenceRule = z.infer<typeof RecurrenceRuleSchema>;
3072
3072
  type History = z.infer<typeof HistorySchema>;
3073
3073
  type Criteria = z.infer<typeof CriteriaSchema>;
3074
3074
 
3075
- interface IAPI$4 {
3075
+ interface IAPI$5 {
3076
3076
  getTriggers: (ctx: Context) => Promise<APIResponse<Trigger>>;
3077
3077
  createTrigger: (ctx: Context, t: Trigger) => Promise<Trigger>;
3078
3078
  deleteTrigger: (ctx: Context, triggerId: string) => Promise<boolean>;
@@ -3082,7 +3082,7 @@ interface IAPI$4 {
3082
3082
  markAsRead: (ctx: Context, id: string) => Promise<boolean>;
3083
3083
  clearNotifications: (ctx: Context) => Promise<boolean>;
3084
3084
  }
3085
- declare const Endpoints$3: {
3085
+ declare const Endpoints$4: {
3086
3086
  Create: {
3087
3087
  uri: string;
3088
3088
  method: string;
@@ -3117,35 +3117,35 @@ declare const Endpoints$3: {
3117
3117
  };
3118
3118
  };
3119
3119
 
3120
- type index$5_Criteria = Criteria;
3121
- declare const index$5_CriteriaSchema: typeof CriteriaSchema;
3122
- type index$5_CriteriaType = CriteriaType;
3123
- declare const index$5_CriteriaType: typeof CriteriaType;
3124
- type index$5_Frequency = Frequency;
3125
- declare const index$5_Frequency: typeof Frequency;
3126
- type index$5_History = History;
3127
- declare const index$5_HistorySchema: typeof HistorySchema;
3128
- type index$5_NotificationDetail = NotificationDetail;
3129
- declare const index$5_NotificationDetailSchema: typeof NotificationDetailSchema;
3130
- type index$5_NotificationItem = NotificationItem;
3131
- declare const index$5_NotificationItemSchema: typeof NotificationItemSchema;
3132
- type index$5_NotificationType = NotificationType;
3133
- declare const index$5_NotificationType: typeof NotificationType;
3134
- type index$5_RecurrenceRule = RecurrenceRule;
3135
- declare const index$5_RecurrenceRuleSchema: typeof RecurrenceRuleSchema;
3136
- type index$5_Status = Status;
3137
- declare const index$5_Status: typeof Status;
3138
- type index$5_TransportType = TransportType;
3139
- declare const index$5_TransportType: typeof TransportType;
3140
- type index$5_Trigger = Trigger;
3141
- declare const index$5_TriggerSchema: typeof TriggerSchema;
3142
- type index$5_WeekDay = WeekDay;
3143
- declare const index$5_WeekDay: typeof WeekDay;
3144
- declare namespace index$5 {
3145
- export { type index$5_Criteria as Criteria, index$5_CriteriaSchema as CriteriaSchema, index$5_CriteriaType as CriteriaType, Endpoints$3 as Endpoints, index$5_Frequency as Frequency, type index$5_History as History, index$5_HistorySchema as HistorySchema, type IAPI$4 as IAPI, type index$5_NotificationDetail as NotificationDetail, index$5_NotificationDetailSchema as NotificationDetailSchema, type index$5_NotificationItem as NotificationItem, index$5_NotificationItemSchema as NotificationItemSchema, index$5_NotificationType as NotificationType, type index$5_RecurrenceRule as RecurrenceRule, index$5_RecurrenceRuleSchema as RecurrenceRuleSchema, index$5_Status as Status, index$5_TransportType as TransportType, type index$5_Trigger as Trigger, index$5_TriggerSchema as TriggerSchema, index$5_WeekDay as WeekDay };
3120
+ type index$6_Criteria = Criteria;
3121
+ declare const index$6_CriteriaSchema: typeof CriteriaSchema;
3122
+ type index$6_CriteriaType = CriteriaType;
3123
+ declare const index$6_CriteriaType: typeof CriteriaType;
3124
+ type index$6_Frequency = Frequency;
3125
+ declare const index$6_Frequency: typeof Frequency;
3126
+ type index$6_History = History;
3127
+ declare const index$6_HistorySchema: typeof HistorySchema;
3128
+ type index$6_NotificationDetail = NotificationDetail;
3129
+ declare const index$6_NotificationDetailSchema: typeof NotificationDetailSchema;
3130
+ type index$6_NotificationItem = NotificationItem;
3131
+ declare const index$6_NotificationItemSchema: typeof NotificationItemSchema;
3132
+ type index$6_NotificationType = NotificationType;
3133
+ declare const index$6_NotificationType: typeof NotificationType;
3134
+ type index$6_RecurrenceRule = RecurrenceRule;
3135
+ declare const index$6_RecurrenceRuleSchema: typeof RecurrenceRuleSchema;
3136
+ type index$6_Status = Status;
3137
+ declare const index$6_Status: typeof Status;
3138
+ type index$6_TransportType = TransportType;
3139
+ declare const index$6_TransportType: typeof TransportType;
3140
+ type index$6_Trigger = Trigger;
3141
+ declare const index$6_TriggerSchema: typeof TriggerSchema;
3142
+ type index$6_WeekDay = WeekDay;
3143
+ declare const index$6_WeekDay: typeof WeekDay;
3144
+ declare namespace index$6 {
3145
+ 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 };
3146
3146
  }
3147
3147
 
3148
- interface IAPI$3 {
3148
+ interface IAPI$4 {
3149
3149
  version: () => Promise<string>;
3150
3150
  }
3151
3151
 
@@ -3289,13 +3289,13 @@ declare const NoteSchema: z.ZodObject<{
3289
3289
  type Note = z.infer<typeof NoteSchema>;
3290
3290
  type NoteHistory = z.infer<typeof NoteHistorySchema>;
3291
3291
 
3292
- interface IAPI$2 {
3292
+ interface IAPI$3 {
3293
3293
  list: (c: Context, userId: string) => Promise<Note[]>;
3294
3294
  add: (c: Context, note: Partial<Note>) => Promise<Note>;
3295
3295
  update: (c: Context, id: string, script: Partial<Note>) => Promise<Note>;
3296
3296
  delete: (c: Context, id: string) => Promise<boolean>;
3297
3297
  }
3298
- declare const Endpoints$2: {
3298
+ declare const Endpoints$3: {
3299
3299
  GetNotes: {
3300
3300
  uri: string;
3301
3301
  method: string;
@@ -3314,11 +3314,11 @@ declare const Endpoints$2: {
3314
3314
  };
3315
3315
  };
3316
3316
 
3317
- type index$4_NoteHistory = NoteHistory;
3318
- declare const index$4_NoteHistorySchema: typeof NoteHistorySchema;
3319
- declare const index$4_NoteSchema: typeof NoteSchema;
3320
- declare namespace index$4 {
3321
- export { Endpoints$2 as Endpoints, type Note as Entity, type IAPI$2 as IAPI, type index$4_NoteHistory as NoteHistory, index$4_NoteHistorySchema as NoteHistorySchema, index$4_NoteSchema as NoteSchema };
3317
+ type index$5_NoteHistory = NoteHistory;
3318
+ declare const index$5_NoteHistorySchema: typeof NoteHistorySchema;
3319
+ declare const index$5_NoteSchema: typeof NoteSchema;
3320
+ declare namespace index$5 {
3321
+ 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 };
3322
3322
  }
3323
3323
 
3324
3324
  declare const SpecialOfferSchema: z.ZodObject<{
@@ -3432,20 +3432,20 @@ declare const UpdateSpecialOfferSchema: z.ZodObject<{
3432
3432
  }>;
3433
3433
  type SpecialOffer = z.infer<typeof SpecialOfferSchema>;
3434
3434
  type UserOfferDetails = z.infer<typeof UserOfferDetailsSchema>;
3435
- type Create = z.infer<typeof CreateSpecialOfferSchema>;
3436
- type Update = z.infer<typeof UpdateSpecialOfferSchema>;
3435
+ type Create$1 = z.infer<typeof CreateSpecialOfferSchema>;
3436
+ type Update$1 = z.infer<typeof UpdateSpecialOfferSchema>;
3437
3437
 
3438
- interface IAPI$1 {
3438
+ interface IAPI$2 {
3439
3439
  list: (ctx: Context) => Promise<SpecialOffer[]>;
3440
3440
  getActive: (ctx: Context) => Promise<SpecialOffer[]>;
3441
- create: (ctx: Context, data: Create) => Promise<SpecialOffer>;
3442
- update: (ctx: Context, id: string, data: Update) => Promise<void>;
3441
+ create: (ctx: Context, data: Create$1) => Promise<SpecialOffer>;
3442
+ update: (ctx: Context, id: string, data: Update$1) => Promise<void>;
3443
3443
  enable: (ctx: Context, id: string) => Promise<void>;
3444
3444
  disable: (ctx: Context, id: string) => Promise<void>;
3445
3445
  getMyOffer: (ctx: Context) => Promise<UserOfferDetails | null>;
3446
3446
  claim: (ctx: Context, callbackUrl?: string) => Promise<string>;
3447
3447
  }
3448
- declare const Endpoints$1: {
3448
+ declare const Endpoints$2: {
3449
3449
  List: {
3450
3450
  uri: string;
3451
3451
  method: string;
@@ -3480,15 +3480,516 @@ declare const Endpoints$1: {
3480
3480
  };
3481
3481
  };
3482
3482
 
3483
+ declare const index$4_CreateSpecialOfferSchema: typeof CreateSpecialOfferSchema;
3484
+ declare const index$4_SpecialOfferSchema: typeof SpecialOfferSchema;
3485
+ declare const index$4_UpdateSpecialOfferSchema: typeof UpdateSpecialOfferSchema;
3486
+ type index$4_UserOfferDetails = UserOfferDetails;
3487
+ declare const index$4_UserOfferDetailsSchema: typeof UserOfferDetailsSchema;
3488
+ declare namespace index$4 {
3489
+ 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 };
3490
+ }
3491
+
3492
+ /**
3493
+ * The API stores session assets under a looser contract than the shared AssetSchema:
3494
+ * type, authorId and uploadedAt are optional there, and a slide deck carries an empty
3495
+ * thumbnailUrl, which is not a URL. Parsing those with the strict schema would throw
3496
+ * on every read, so the differences are spelled out here.
3497
+ */
3498
+ declare const SessionAssetSchema: z.ZodObject<{
3499
+ assetId: z.ZodString;
3500
+ fileName: z.ZodString;
3501
+ extension: z.ZodString;
3502
+ fileSize: z.ZodNumber;
3503
+ duration: z.ZodOptional<z.ZodNumber>;
3504
+ progress: z.ZodOptional<z.ZodNumber>;
3505
+ error: z.ZodOptional<z.ZodString>;
3506
+ } & {
3507
+ assetUrl: z.ZodString;
3508
+ thumbnailUrl: z.ZodString;
3509
+ type: z.ZodOptional<z.ZodString>;
3510
+ authorId: z.ZodOptional<z.ZodString>;
3511
+ uploadedAt: z.ZodOptional<z.ZodNumber>;
3512
+ }, "strip", z.ZodTypeAny, {
3513
+ assetId: string;
3514
+ fileName: string;
3515
+ extension: string;
3516
+ fileSize: number;
3517
+ assetUrl: string;
3518
+ thumbnailUrl: string;
3519
+ type?: string | undefined;
3520
+ error?: string | undefined;
3521
+ duration?: number | undefined;
3522
+ progress?: number | undefined;
3523
+ authorId?: string | undefined;
3524
+ uploadedAt?: number | undefined;
3525
+ }, {
3526
+ assetId: string;
3527
+ fileName: string;
3528
+ extension: string;
3529
+ fileSize: number;
3530
+ assetUrl: string;
3531
+ thumbnailUrl: string;
3532
+ type?: string | undefined;
3533
+ error?: string | undefined;
3534
+ duration?: number | undefined;
3535
+ progress?: number | undefined;
3536
+ authorId?: string | undefined;
3537
+ uploadedAt?: number | undefined;
3538
+ }>;
3539
+ declare const ShredUSessionStatusSchema: z.ZodEnum<["scheduled", "cancelled"]>;
3540
+ declare const ShredUSessionSchema: z.ZodObject<{
3541
+ id: z.ZodString;
3542
+ topic: z.ZodString;
3543
+ description: z.ZodString;
3544
+ startsAt: z.ZodNumber;
3545
+ durationMin: z.ZodNumber;
3546
+ zoomUrl: z.ZodString;
3547
+ status: z.ZodEnum<["scheduled", "cancelled"]>;
3548
+ recordingId: z.ZodOptional<z.ZodString>;
3549
+ recordingDurationSeconds: z.ZodOptional<z.ZodNumber>;
3550
+ assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
3551
+ assetId: z.ZodString;
3552
+ fileName: z.ZodString;
3553
+ extension: z.ZodString;
3554
+ fileSize: z.ZodNumber;
3555
+ duration: z.ZodOptional<z.ZodNumber>;
3556
+ progress: z.ZodOptional<z.ZodNumber>;
3557
+ error: z.ZodOptional<z.ZodString>;
3558
+ } & {
3559
+ assetUrl: z.ZodString;
3560
+ thumbnailUrl: z.ZodString;
3561
+ type: z.ZodOptional<z.ZodString>;
3562
+ authorId: z.ZodOptional<z.ZodString>;
3563
+ uploadedAt: z.ZodOptional<z.ZodNumber>;
3564
+ }, "strip", z.ZodTypeAny, {
3565
+ assetId: string;
3566
+ fileName: string;
3567
+ extension: string;
3568
+ fileSize: number;
3569
+ assetUrl: string;
3570
+ thumbnailUrl: string;
3571
+ type?: string | undefined;
3572
+ error?: string | undefined;
3573
+ duration?: number | undefined;
3574
+ progress?: number | undefined;
3575
+ authorId?: string | undefined;
3576
+ uploadedAt?: number | undefined;
3577
+ }, {
3578
+ assetId: string;
3579
+ fileName: string;
3580
+ extension: string;
3581
+ fileSize: number;
3582
+ assetUrl: string;
3583
+ thumbnailUrl: string;
3584
+ type?: string | undefined;
3585
+ error?: string | undefined;
3586
+ duration?: number | undefined;
3587
+ progress?: number | undefined;
3588
+ authorId?: string | undefined;
3589
+ uploadedAt?: number | undefined;
3590
+ }>, "many">>;
3591
+ }, "strip", z.ZodTypeAny, {
3592
+ id: string;
3593
+ status: "scheduled" | "cancelled";
3594
+ description: string;
3595
+ topic: string;
3596
+ startsAt: number;
3597
+ durationMin: number;
3598
+ zoomUrl: string;
3599
+ assets?: {
3600
+ assetId: string;
3601
+ fileName: string;
3602
+ extension: string;
3603
+ fileSize: number;
3604
+ assetUrl: string;
3605
+ thumbnailUrl: string;
3606
+ type?: string | undefined;
3607
+ error?: string | undefined;
3608
+ duration?: number | undefined;
3609
+ progress?: number | undefined;
3610
+ authorId?: string | undefined;
3611
+ uploadedAt?: number | undefined;
3612
+ }[] | undefined;
3613
+ recordingId?: string | undefined;
3614
+ recordingDurationSeconds?: number | undefined;
3615
+ }, {
3616
+ id: string;
3617
+ status: "scheduled" | "cancelled";
3618
+ description: string;
3619
+ topic: string;
3620
+ startsAt: number;
3621
+ durationMin: number;
3622
+ zoomUrl: string;
3623
+ assets?: {
3624
+ assetId: string;
3625
+ fileName: string;
3626
+ extension: string;
3627
+ fileSize: number;
3628
+ assetUrl: string;
3629
+ thumbnailUrl: string;
3630
+ type?: string | undefined;
3631
+ error?: string | undefined;
3632
+ duration?: number | undefined;
3633
+ progress?: number | undefined;
3634
+ authorId?: string | undefined;
3635
+ uploadedAt?: number | undefined;
3636
+ }[] | undefined;
3637
+ recordingId?: string | undefined;
3638
+ recordingDurationSeconds?: number | undefined;
3639
+ }>;
3640
+ /** Subscriber-facing endpoints answer without the Zoom link. */
3641
+ declare const ShredUSessionCustomerSchema: z.ZodObject<Omit<{
3642
+ id: z.ZodString;
3643
+ topic: z.ZodString;
3644
+ description: z.ZodString;
3645
+ startsAt: z.ZodNumber;
3646
+ durationMin: z.ZodNumber;
3647
+ zoomUrl: z.ZodString;
3648
+ status: z.ZodEnum<["scheduled", "cancelled"]>;
3649
+ recordingId: z.ZodOptional<z.ZodString>;
3650
+ recordingDurationSeconds: z.ZodOptional<z.ZodNumber>;
3651
+ assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
3652
+ assetId: z.ZodString;
3653
+ fileName: z.ZodString;
3654
+ extension: z.ZodString;
3655
+ fileSize: z.ZodNumber;
3656
+ duration: z.ZodOptional<z.ZodNumber>;
3657
+ progress: z.ZodOptional<z.ZodNumber>;
3658
+ error: z.ZodOptional<z.ZodString>;
3659
+ } & {
3660
+ assetUrl: z.ZodString;
3661
+ thumbnailUrl: z.ZodString;
3662
+ type: z.ZodOptional<z.ZodString>;
3663
+ authorId: z.ZodOptional<z.ZodString>;
3664
+ uploadedAt: z.ZodOptional<z.ZodNumber>;
3665
+ }, "strip", z.ZodTypeAny, {
3666
+ assetId: string;
3667
+ fileName: string;
3668
+ extension: string;
3669
+ fileSize: number;
3670
+ assetUrl: string;
3671
+ thumbnailUrl: string;
3672
+ type?: string | undefined;
3673
+ error?: string | undefined;
3674
+ duration?: number | undefined;
3675
+ progress?: number | undefined;
3676
+ authorId?: string | undefined;
3677
+ uploadedAt?: number | undefined;
3678
+ }, {
3679
+ assetId: string;
3680
+ fileName: string;
3681
+ extension: string;
3682
+ fileSize: number;
3683
+ assetUrl: string;
3684
+ thumbnailUrl: string;
3685
+ type?: string | undefined;
3686
+ error?: string | undefined;
3687
+ duration?: number | undefined;
3688
+ progress?: number | undefined;
3689
+ authorId?: string | undefined;
3690
+ uploadedAt?: number | undefined;
3691
+ }>, "many">>;
3692
+ }, "zoomUrl">, "strip", z.ZodTypeAny, {
3693
+ id: string;
3694
+ status: "scheduled" | "cancelled";
3695
+ description: string;
3696
+ topic: string;
3697
+ startsAt: number;
3698
+ durationMin: number;
3699
+ assets?: {
3700
+ assetId: string;
3701
+ fileName: string;
3702
+ extension: string;
3703
+ fileSize: number;
3704
+ assetUrl: string;
3705
+ thumbnailUrl: string;
3706
+ type?: string | undefined;
3707
+ error?: string | undefined;
3708
+ duration?: number | undefined;
3709
+ progress?: number | undefined;
3710
+ authorId?: string | undefined;
3711
+ uploadedAt?: number | undefined;
3712
+ }[] | undefined;
3713
+ recordingId?: string | undefined;
3714
+ recordingDurationSeconds?: number | undefined;
3715
+ }, {
3716
+ id: string;
3717
+ status: "scheduled" | "cancelled";
3718
+ description: string;
3719
+ topic: string;
3720
+ startsAt: number;
3721
+ durationMin: number;
3722
+ assets?: {
3723
+ assetId: string;
3724
+ fileName: string;
3725
+ extension: string;
3726
+ fileSize: number;
3727
+ assetUrl: string;
3728
+ thumbnailUrl: string;
3729
+ type?: string | undefined;
3730
+ error?: string | undefined;
3731
+ duration?: number | undefined;
3732
+ progress?: number | undefined;
3733
+ authorId?: string | undefined;
3734
+ uploadedAt?: number | undefined;
3735
+ }[] | undefined;
3736
+ recordingId?: string | undefined;
3737
+ recordingDurationSeconds?: number | undefined;
3738
+ }>;
3739
+ declare const CreateShredUSessionSchema: z.ZodObject<{
3740
+ topic: z.ZodString;
3741
+ description: z.ZodString;
3742
+ startsAt: z.ZodNumber;
3743
+ durationMin: z.ZodNumber;
3744
+ zoomUrl: z.ZodString;
3745
+ assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
3746
+ assetId: z.ZodString;
3747
+ fileName: z.ZodString;
3748
+ extension: z.ZodString;
3749
+ fileSize: z.ZodNumber;
3750
+ duration: z.ZodOptional<z.ZodNumber>;
3751
+ progress: z.ZodOptional<z.ZodNumber>;
3752
+ error: z.ZodOptional<z.ZodString>;
3753
+ } & {
3754
+ assetUrl: z.ZodString;
3755
+ thumbnailUrl: z.ZodString;
3756
+ type: z.ZodOptional<z.ZodString>;
3757
+ authorId: z.ZodOptional<z.ZodString>;
3758
+ uploadedAt: z.ZodOptional<z.ZodNumber>;
3759
+ }, "strip", z.ZodTypeAny, {
3760
+ assetId: string;
3761
+ fileName: string;
3762
+ extension: string;
3763
+ fileSize: number;
3764
+ assetUrl: string;
3765
+ thumbnailUrl: string;
3766
+ type?: string | undefined;
3767
+ error?: string | undefined;
3768
+ duration?: number | undefined;
3769
+ progress?: number | undefined;
3770
+ authorId?: string | undefined;
3771
+ uploadedAt?: number | undefined;
3772
+ }, {
3773
+ assetId: string;
3774
+ fileName: string;
3775
+ extension: string;
3776
+ fileSize: number;
3777
+ assetUrl: string;
3778
+ thumbnailUrl: string;
3779
+ type?: string | undefined;
3780
+ error?: string | undefined;
3781
+ duration?: number | undefined;
3782
+ progress?: number | undefined;
3783
+ authorId?: string | undefined;
3784
+ uploadedAt?: number | undefined;
3785
+ }>, "many">>;
3786
+ }, "strip", z.ZodTypeAny, {
3787
+ description: string;
3788
+ topic: string;
3789
+ startsAt: number;
3790
+ durationMin: number;
3791
+ zoomUrl: string;
3792
+ assets?: {
3793
+ assetId: string;
3794
+ fileName: string;
3795
+ extension: string;
3796
+ fileSize: number;
3797
+ assetUrl: string;
3798
+ thumbnailUrl: string;
3799
+ type?: string | undefined;
3800
+ error?: string | undefined;
3801
+ duration?: number | undefined;
3802
+ progress?: number | undefined;
3803
+ authorId?: string | undefined;
3804
+ uploadedAt?: number | undefined;
3805
+ }[] | undefined;
3806
+ }, {
3807
+ description: string;
3808
+ topic: string;
3809
+ startsAt: number;
3810
+ durationMin: number;
3811
+ zoomUrl: string;
3812
+ assets?: {
3813
+ assetId: string;
3814
+ fileName: string;
3815
+ extension: string;
3816
+ fileSize: number;
3817
+ assetUrl: string;
3818
+ thumbnailUrl: string;
3819
+ type?: string | undefined;
3820
+ error?: string | undefined;
3821
+ duration?: number | undefined;
3822
+ progress?: number | undefined;
3823
+ authorId?: string | undefined;
3824
+ uploadedAt?: number | undefined;
3825
+ }[] | undefined;
3826
+ }>;
3827
+ declare const UpdateShredUSessionSchema: z.ZodObject<{
3828
+ topic: z.ZodOptional<z.ZodString>;
3829
+ description: z.ZodOptional<z.ZodString>;
3830
+ startsAt: z.ZodOptional<z.ZodNumber>;
3831
+ durationMin: z.ZodOptional<z.ZodNumber>;
3832
+ zoomUrl: z.ZodOptional<z.ZodString>;
3833
+ assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
3834
+ assetId: z.ZodString;
3835
+ fileName: z.ZodString;
3836
+ extension: z.ZodString;
3837
+ fileSize: z.ZodNumber;
3838
+ duration: z.ZodOptional<z.ZodNumber>;
3839
+ progress: z.ZodOptional<z.ZodNumber>;
3840
+ error: z.ZodOptional<z.ZodString>;
3841
+ } & {
3842
+ assetUrl: z.ZodString;
3843
+ thumbnailUrl: z.ZodString;
3844
+ type: z.ZodOptional<z.ZodString>;
3845
+ authorId: z.ZodOptional<z.ZodString>;
3846
+ uploadedAt: z.ZodOptional<z.ZodNumber>;
3847
+ }, "strip", z.ZodTypeAny, {
3848
+ assetId: string;
3849
+ fileName: string;
3850
+ extension: string;
3851
+ fileSize: number;
3852
+ assetUrl: string;
3853
+ thumbnailUrl: string;
3854
+ type?: string | undefined;
3855
+ error?: string | undefined;
3856
+ duration?: number | undefined;
3857
+ progress?: number | undefined;
3858
+ authorId?: string | undefined;
3859
+ uploadedAt?: number | undefined;
3860
+ }, {
3861
+ assetId: string;
3862
+ fileName: string;
3863
+ extension: string;
3864
+ fileSize: number;
3865
+ assetUrl: string;
3866
+ thumbnailUrl: string;
3867
+ type?: string | undefined;
3868
+ error?: string | undefined;
3869
+ duration?: number | undefined;
3870
+ progress?: number | undefined;
3871
+ authorId?: string | undefined;
3872
+ uploadedAt?: number | undefined;
3873
+ }>, "many">>;
3874
+ }, "strip", z.ZodTypeAny, {
3875
+ description?: string | undefined;
3876
+ assets?: {
3877
+ assetId: string;
3878
+ fileName: string;
3879
+ extension: string;
3880
+ fileSize: number;
3881
+ assetUrl: string;
3882
+ thumbnailUrl: string;
3883
+ type?: string | undefined;
3884
+ error?: string | undefined;
3885
+ duration?: number | undefined;
3886
+ progress?: number | undefined;
3887
+ authorId?: string | undefined;
3888
+ uploadedAt?: number | undefined;
3889
+ }[] | undefined;
3890
+ topic?: string | undefined;
3891
+ startsAt?: number | undefined;
3892
+ durationMin?: number | undefined;
3893
+ zoomUrl?: string | undefined;
3894
+ }, {
3895
+ description?: string | undefined;
3896
+ assets?: {
3897
+ assetId: string;
3898
+ fileName: string;
3899
+ extension: string;
3900
+ fileSize: number;
3901
+ assetUrl: string;
3902
+ thumbnailUrl: string;
3903
+ type?: string | undefined;
3904
+ error?: string | undefined;
3905
+ duration?: number | undefined;
3906
+ progress?: number | undefined;
3907
+ authorId?: string | undefined;
3908
+ uploadedAt?: number | undefined;
3909
+ }[] | undefined;
3910
+ topic?: string | undefined;
3911
+ startsAt?: number | undefined;
3912
+ durationMin?: number | undefined;
3913
+ zoomUrl?: string | undefined;
3914
+ }>;
3915
+ declare const SetShredUSessionRecordingSchema: z.ZodObject<{
3916
+ recordingId: z.ZodString;
3917
+ recordingDurationSeconds: z.ZodNumber;
3918
+ }, "strip", z.ZodTypeAny, {
3919
+ recordingId: string;
3920
+ recordingDurationSeconds: number;
3921
+ }, {
3922
+ recordingId: string;
3923
+ recordingDurationSeconds: number;
3924
+ }>;
3925
+ type SessionAsset = z.infer<typeof SessionAssetSchema>;
3926
+ type ShredUSessionStatus = z.infer<typeof ShredUSessionStatusSchema>;
3927
+ type ShredUSession = z.infer<typeof ShredUSessionSchema>;
3928
+ type ShredUSessionCustomer = z.infer<typeof ShredUSessionCustomerSchema>;
3929
+ type Create = z.infer<typeof CreateShredUSessionSchema>;
3930
+ type Update = z.infer<typeof UpdateShredUSessionSchema>;
3931
+ type SetRecording = z.infer<typeof SetShredUSessionRecordingSchema>;
3932
+
3933
+ interface IAPI$1 {
3934
+ list: (ctx: Context) => Promise<ShredUSession[]>;
3935
+ getUpcoming: (ctx: Context) => Promise<ShredUSessionCustomer[]>;
3936
+ getLibrary: (ctx: Context) => Promise<ShredUSessionCustomer[]>;
3937
+ get: (ctx: Context, id: string) => Promise<ShredUSessionCustomer>;
3938
+ create: (ctx: Context, data: Create) => Promise<ShredUSession>;
3939
+ update: (ctx: Context, id: string, data: Update) => Promise<void>;
3940
+ cancel: (ctx: Context, id: string) => Promise<void>;
3941
+ setRecording: (ctx: Context, id: string, data: SetRecording) => Promise<void>;
3942
+ }
3943
+ declare const Endpoints$1: {
3944
+ List: {
3945
+ uri: string;
3946
+ method: string;
3947
+ };
3948
+ GetUpcoming: {
3949
+ uri: string;
3950
+ method: string;
3951
+ };
3952
+ GetLibrary: {
3953
+ uri: string;
3954
+ method: string;
3955
+ };
3956
+ Get: {
3957
+ uri: string;
3958
+ method: string;
3959
+ };
3960
+ Create: {
3961
+ uri: string;
3962
+ method: string;
3963
+ };
3964
+ Update: {
3965
+ uri: string;
3966
+ method: string;
3967
+ };
3968
+ Cancel: {
3969
+ uri: string;
3970
+ method: string;
3971
+ };
3972
+ SetRecording: {
3973
+ uri: string;
3974
+ method: string;
3975
+ };
3976
+ };
3977
+
3483
3978
  type index$3_Create = Create;
3484
- declare const index$3_CreateSpecialOfferSchema: typeof CreateSpecialOfferSchema;
3485
- declare const index$3_SpecialOfferSchema: typeof SpecialOfferSchema;
3979
+ declare const index$3_CreateShredUSessionSchema: typeof CreateShredUSessionSchema;
3980
+ type index$3_SessionAsset = SessionAsset;
3981
+ declare const index$3_SessionAssetSchema: typeof SessionAssetSchema;
3982
+ type index$3_SetRecording = SetRecording;
3983
+ declare const index$3_SetShredUSessionRecordingSchema: typeof SetShredUSessionRecordingSchema;
3984
+ type index$3_ShredUSessionCustomer = ShredUSessionCustomer;
3985
+ declare const index$3_ShredUSessionCustomerSchema: typeof ShredUSessionCustomerSchema;
3986
+ declare const index$3_ShredUSessionSchema: typeof ShredUSessionSchema;
3987
+ type index$3_ShredUSessionStatus = ShredUSessionStatus;
3988
+ declare const index$3_ShredUSessionStatusSchema: typeof ShredUSessionStatusSchema;
3486
3989
  type index$3_Update = Update;
3487
- declare const index$3_UpdateSpecialOfferSchema: typeof UpdateSpecialOfferSchema;
3488
- type index$3_UserOfferDetails = UserOfferDetails;
3489
- declare const index$3_UserOfferDetailsSchema: typeof UserOfferDetailsSchema;
3990
+ declare const index$3_UpdateShredUSessionSchema: typeof UpdateShredUSessionSchema;
3490
3991
  declare namespace index$3 {
3491
- export { type index$3_Create as Create, index$3_CreateSpecialOfferSchema as CreateSpecialOfferSchema, Endpoints$1 as Endpoints, type SpecialOffer as Entity, type IAPI$1 as IAPI, index$3_SpecialOfferSchema as SpecialOfferSchema, type index$3_Update as Update, index$3_UpdateSpecialOfferSchema as UpdateSpecialOfferSchema, type index$3_UserOfferDetails as UserOfferDetails, index$3_UserOfferDetailsSchema as UserOfferDetailsSchema };
3992
+ export { type index$3_Create as Create, index$3_CreateShredUSessionSchema as CreateShredUSessionSchema, Endpoints$1 as Endpoints, type ShredUSession as Entity, type IAPI$1 as IAPI, type index$3_SessionAsset as SessionAsset, index$3_SessionAssetSchema as SessionAssetSchema, type index$3_SetRecording as SetRecording, index$3_SetShredUSessionRecordingSchema as SetShredUSessionRecordingSchema, 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 };
3492
3993
  }
3493
3994
 
3494
3995
  /**
@@ -3852,19 +4353,20 @@ declare namespace index$2 {
3852
4353
  }
3853
4354
 
3854
4355
  declare class ShredAPI {
3855
- user: IAPI$b;
3856
- goal: IAPI$6;
3857
- editor: IAPI$5;
3858
- subscription: IAPI$c;
3859
- prompt: IAPI$d;
3860
- pushNotification: IAPI$4;
3861
- email: IAPI$8;
3862
- tenant: IAPI$a;
3863
- app: IAPI$3;
3864
- project: IAPI$7;
3865
- track: IAPI$9;
3866
- note: IAPI$2;
3867
- specialOffer: IAPI$1;
4356
+ user: IAPI$c;
4357
+ goal: IAPI$7;
4358
+ editor: IAPI$6;
4359
+ subscription: IAPI$d;
4360
+ prompt: IAPI$e;
4361
+ pushNotification: IAPI$5;
4362
+ email: IAPI$9;
4363
+ tenant: IAPI$b;
4364
+ app: IAPI$4;
4365
+ project: IAPI$8;
4366
+ track: IAPI$a;
4367
+ note: IAPI$3;
4368
+ specialOffer: IAPI$2;
4369
+ shredu: IAPI$1;
3868
4370
  rbac: IAPI;
3869
4371
  constructor(env: Environment);
3870
4372
  }
@@ -3957,4 +4459,4 @@ declare namespace index {
3957
4459
  export { index_AssetSchema as AssetSchema, type Asset as Entity };
3958
4460
  }
3959
4461
 
3960
- export { index as Asset, index$d as Core, index$6 as Editor, index$9 as Email, index$1 as Exceptions, index$7 as Goal, index$4 as Note, index$5 as Notification, index$8 as Project, index$f as Prompt, index$2 as RBAC, ShredAPI, index$3 as SpecialOffer, index$e as Subscription, index$b as Tenant, index$a as Track, index$c as User, ShredAPI as default };
4462
+ 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 };