shred-api-client 2.9.13 → 2.10.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 +682 -170
- package/dist/index.js +162 -21
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -197,7 +197,7 @@ type Context = {
|
|
|
197
197
|
requestId?: string;
|
|
198
198
|
};
|
|
199
199
|
|
|
200
|
-
interface IAPI$
|
|
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$
|
|
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$
|
|
236
|
-
declare const index$
|
|
237
|
-
declare const index$
|
|
238
|
-
type index$
|
|
239
|
-
type index$
|
|
240
|
-
declare const index$
|
|
241
|
-
declare const index$
|
|
242
|
-
declare namespace index$
|
|
243
|
-
export { type index$
|
|
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$
|
|
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$
|
|
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$
|
|
672
|
-
declare const index$
|
|
673
|
-
type index$
|
|
674
|
-
declare const index$
|
|
675
|
-
type index$
|
|
676
|
-
declare const index$
|
|
677
|
-
type index$
|
|
678
|
-
declare const index$
|
|
679
|
-
declare const index$
|
|
680
|
-
type index$
|
|
681
|
-
declare const index$
|
|
682
|
-
declare namespace index$
|
|
683
|
-
export { type index$
|
|
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$
|
|
841
|
-
type Create$
|
|
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$
|
|
877
|
-
type index$
|
|
878
|
-
type index$
|
|
879
|
-
type index$
|
|
880
|
-
type index$
|
|
881
|
-
declare namespace index$
|
|
882
|
-
export type { index$
|
|
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$
|
|
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$
|
|
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$
|
|
900
|
+
createUser: (data: Create$2) => Promise<User>;
|
|
901
901
|
}
|
|
902
|
-
declare const Endpoints$
|
|
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$
|
|
970
|
-
declare const index$
|
|
971
|
-
declare const index$
|
|
972
|
-
declare namespace index$
|
|
973
|
-
export { type Create$
|
|
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$
|
|
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$
|
|
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$
|
|
1758
|
-
declare const index$
|
|
1759
|
-
type index$
|
|
1760
|
-
declare const index$
|
|
1761
|
-
type index$
|
|
1762
|
-
declare const index$
|
|
1763
|
-
declare const index$
|
|
1764
|
-
type index$
|
|
1765
|
-
declare const index$
|
|
1766
|
-
declare namespace index$
|
|
1767
|
-
export { Action$1 as Action, Endpoints$
|
|
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$
|
|
1814
|
+
interface IAPI$a {
|
|
1815
1815
|
send: (t: Track) => Promise<boolean>;
|
|
1816
1816
|
}
|
|
1817
|
-
declare const Endpoints$
|
|
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$
|
|
1825
|
-
declare const index$
|
|
1826
|
-
declare const index$
|
|
1827
|
-
declare namespace index$
|
|
1828
|
-
export { Endpoints$
|
|
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$
|
|
1846
|
+
interface IAPI$9 {
|
|
1847
1847
|
send: (email: Email, ctx?: Context) => Promise<boolean>;
|
|
1848
1848
|
}
|
|
1849
|
-
declare const Endpoints$
|
|
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$
|
|
1857
|
-
declare namespace index$
|
|
1858
|
-
export { index$
|
|
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$
|
|
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$
|
|
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$
|
|
2410
|
-
type index$
|
|
2411
|
-
declare const index$
|
|
2412
|
-
type index$
|
|
2413
|
-
declare const index$
|
|
2414
|
-
type index$
|
|
2415
|
-
declare const index$
|
|
2416
|
-
type index$
|
|
2417
|
-
declare const index$
|
|
2418
|
-
type index$
|
|
2419
|
-
declare const index$
|
|
2420
|
-
type index$
|
|
2421
|
-
type index$
|
|
2422
|
-
declare const index$
|
|
2423
|
-
type index$
|
|
2424
|
-
declare const index$
|
|
2425
|
-
type index$
|
|
2426
|
-
declare const index$
|
|
2427
|
-
type index$
|
|
2428
|
-
type index$
|
|
2429
|
-
declare const index$
|
|
2430
|
-
type index$
|
|
2431
|
-
declare const index$
|
|
2432
|
-
declare namespace index$
|
|
2433
|
-
export { type index$
|
|
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$
|
|
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$
|
|
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$
|
|
2521
|
-
declare const index$
|
|
2522
|
-
declare const index$
|
|
2523
|
-
declare namespace index$
|
|
2524
|
-
export { type index$
|
|
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$
|
|
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$
|
|
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$
|
|
2573
|
-
declare namespace index$
|
|
2574
|
-
export { index$
|
|
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$
|
|
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$
|
|
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$
|
|
3121
|
-
declare const index$
|
|
3122
|
-
type index$
|
|
3123
|
-
declare const index$
|
|
3124
|
-
type index$
|
|
3125
|
-
declare const index$
|
|
3126
|
-
type index$
|
|
3127
|
-
declare const index$
|
|
3128
|
-
type index$
|
|
3129
|
-
declare const index$
|
|
3130
|
-
type index$
|
|
3131
|
-
declare const index$
|
|
3132
|
-
type index$
|
|
3133
|
-
declare const index$
|
|
3134
|
-
type index$
|
|
3135
|
-
declare const index$
|
|
3136
|
-
type index$
|
|
3137
|
-
declare const index$
|
|
3138
|
-
type index$
|
|
3139
|
-
declare const index$
|
|
3140
|
-
type index$
|
|
3141
|
-
declare const index$
|
|
3142
|
-
type index$
|
|
3143
|
-
declare const index$
|
|
3144
|
-
declare namespace index$
|
|
3145
|
-
export { type index$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
3318
|
-
declare const index$
|
|
3319
|
-
declare const index$
|
|
3320
|
-
declare namespace index$
|
|
3321
|
-
export { Endpoints$
|
|
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$
|
|
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$
|
|
3448
|
+
declare const Endpoints$2: {
|
|
3449
3449
|
List: {
|
|
3450
3450
|
uri: string;
|
|
3451
3451
|
method: string;
|
|
@@ -3480,15 +3480,526 @@ 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
|
+
tenantIds: z.ZodArray<z.ZodString, "many">;
|
|
3592
|
+
}, "strip", z.ZodTypeAny, {
|
|
3593
|
+
id: string;
|
|
3594
|
+
status: "scheduled" | "cancelled";
|
|
3595
|
+
description: string;
|
|
3596
|
+
tenantIds: string[];
|
|
3597
|
+
topic: string;
|
|
3598
|
+
startsAt: number;
|
|
3599
|
+
durationMin: number;
|
|
3600
|
+
zoomUrl: string;
|
|
3601
|
+
assets?: {
|
|
3602
|
+
assetId: string;
|
|
3603
|
+
fileName: string;
|
|
3604
|
+
extension: string;
|
|
3605
|
+
fileSize: number;
|
|
3606
|
+
assetUrl: string;
|
|
3607
|
+
thumbnailUrl: string;
|
|
3608
|
+
type?: string | undefined;
|
|
3609
|
+
error?: string | undefined;
|
|
3610
|
+
duration?: number | undefined;
|
|
3611
|
+
progress?: number | undefined;
|
|
3612
|
+
authorId?: string | undefined;
|
|
3613
|
+
uploadedAt?: number | undefined;
|
|
3614
|
+
}[] | undefined;
|
|
3615
|
+
recordingId?: string | undefined;
|
|
3616
|
+
recordingDurationSeconds?: number | undefined;
|
|
3617
|
+
}, {
|
|
3618
|
+
id: string;
|
|
3619
|
+
status: "scheduled" | "cancelled";
|
|
3620
|
+
description: string;
|
|
3621
|
+
tenantIds: string[];
|
|
3622
|
+
topic: string;
|
|
3623
|
+
startsAt: number;
|
|
3624
|
+
durationMin: number;
|
|
3625
|
+
zoomUrl: string;
|
|
3626
|
+
assets?: {
|
|
3627
|
+
assetId: string;
|
|
3628
|
+
fileName: string;
|
|
3629
|
+
extension: string;
|
|
3630
|
+
fileSize: number;
|
|
3631
|
+
assetUrl: string;
|
|
3632
|
+
thumbnailUrl: string;
|
|
3633
|
+
type?: string | undefined;
|
|
3634
|
+
error?: string | undefined;
|
|
3635
|
+
duration?: number | undefined;
|
|
3636
|
+
progress?: number | undefined;
|
|
3637
|
+
authorId?: string | undefined;
|
|
3638
|
+
uploadedAt?: number | undefined;
|
|
3639
|
+
}[] | undefined;
|
|
3640
|
+
recordingId?: string | undefined;
|
|
3641
|
+
recordingDurationSeconds?: number | undefined;
|
|
3642
|
+
}>;
|
|
3643
|
+
/** Subscriber-facing endpoints answer without the Zoom link, nor who else it is for. */
|
|
3644
|
+
declare const ShredUSessionCustomerSchema: z.ZodObject<Omit<{
|
|
3645
|
+
id: z.ZodString;
|
|
3646
|
+
topic: z.ZodString;
|
|
3647
|
+
description: z.ZodString;
|
|
3648
|
+
startsAt: z.ZodNumber;
|
|
3649
|
+
durationMin: z.ZodNumber;
|
|
3650
|
+
zoomUrl: z.ZodString;
|
|
3651
|
+
status: z.ZodEnum<["scheduled", "cancelled"]>;
|
|
3652
|
+
recordingId: z.ZodOptional<z.ZodString>;
|
|
3653
|
+
recordingDurationSeconds: z.ZodOptional<z.ZodNumber>;
|
|
3654
|
+
assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3655
|
+
assetId: z.ZodString;
|
|
3656
|
+
fileName: z.ZodString;
|
|
3657
|
+
extension: z.ZodString;
|
|
3658
|
+
fileSize: z.ZodNumber;
|
|
3659
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
3660
|
+
progress: z.ZodOptional<z.ZodNumber>;
|
|
3661
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3662
|
+
} & {
|
|
3663
|
+
assetUrl: z.ZodString;
|
|
3664
|
+
thumbnailUrl: z.ZodString;
|
|
3665
|
+
type: z.ZodOptional<z.ZodString>;
|
|
3666
|
+
authorId: z.ZodOptional<z.ZodString>;
|
|
3667
|
+
uploadedAt: z.ZodOptional<z.ZodNumber>;
|
|
3668
|
+
}, "strip", z.ZodTypeAny, {
|
|
3669
|
+
assetId: string;
|
|
3670
|
+
fileName: string;
|
|
3671
|
+
extension: string;
|
|
3672
|
+
fileSize: number;
|
|
3673
|
+
assetUrl: string;
|
|
3674
|
+
thumbnailUrl: string;
|
|
3675
|
+
type?: string | undefined;
|
|
3676
|
+
error?: string | undefined;
|
|
3677
|
+
duration?: number | undefined;
|
|
3678
|
+
progress?: number | undefined;
|
|
3679
|
+
authorId?: string | undefined;
|
|
3680
|
+
uploadedAt?: number | undefined;
|
|
3681
|
+
}, {
|
|
3682
|
+
assetId: string;
|
|
3683
|
+
fileName: string;
|
|
3684
|
+
extension: string;
|
|
3685
|
+
fileSize: number;
|
|
3686
|
+
assetUrl: string;
|
|
3687
|
+
thumbnailUrl: string;
|
|
3688
|
+
type?: string | undefined;
|
|
3689
|
+
error?: string | undefined;
|
|
3690
|
+
duration?: number | undefined;
|
|
3691
|
+
progress?: number | undefined;
|
|
3692
|
+
authorId?: string | undefined;
|
|
3693
|
+
uploadedAt?: number | undefined;
|
|
3694
|
+
}>, "many">>;
|
|
3695
|
+
tenantIds: z.ZodArray<z.ZodString, "many">;
|
|
3696
|
+
}, "tenantIds" | "zoomUrl">, "strip", z.ZodTypeAny, {
|
|
3697
|
+
id: string;
|
|
3698
|
+
status: "scheduled" | "cancelled";
|
|
3699
|
+
description: string;
|
|
3700
|
+
topic: string;
|
|
3701
|
+
startsAt: number;
|
|
3702
|
+
durationMin: number;
|
|
3703
|
+
assets?: {
|
|
3704
|
+
assetId: string;
|
|
3705
|
+
fileName: string;
|
|
3706
|
+
extension: string;
|
|
3707
|
+
fileSize: number;
|
|
3708
|
+
assetUrl: string;
|
|
3709
|
+
thumbnailUrl: string;
|
|
3710
|
+
type?: string | undefined;
|
|
3711
|
+
error?: string | undefined;
|
|
3712
|
+
duration?: number | undefined;
|
|
3713
|
+
progress?: number | undefined;
|
|
3714
|
+
authorId?: string | undefined;
|
|
3715
|
+
uploadedAt?: number | undefined;
|
|
3716
|
+
}[] | undefined;
|
|
3717
|
+
recordingId?: string | undefined;
|
|
3718
|
+
recordingDurationSeconds?: number | undefined;
|
|
3719
|
+
}, {
|
|
3720
|
+
id: string;
|
|
3721
|
+
status: "scheduled" | "cancelled";
|
|
3722
|
+
description: string;
|
|
3723
|
+
topic: string;
|
|
3724
|
+
startsAt: number;
|
|
3725
|
+
durationMin: number;
|
|
3726
|
+
assets?: {
|
|
3727
|
+
assetId: string;
|
|
3728
|
+
fileName: string;
|
|
3729
|
+
extension: string;
|
|
3730
|
+
fileSize: number;
|
|
3731
|
+
assetUrl: string;
|
|
3732
|
+
thumbnailUrl: string;
|
|
3733
|
+
type?: string | undefined;
|
|
3734
|
+
error?: string | undefined;
|
|
3735
|
+
duration?: number | undefined;
|
|
3736
|
+
progress?: number | undefined;
|
|
3737
|
+
authorId?: string | undefined;
|
|
3738
|
+
uploadedAt?: number | undefined;
|
|
3739
|
+
}[] | undefined;
|
|
3740
|
+
recordingId?: string | undefined;
|
|
3741
|
+
recordingDurationSeconds?: number | undefined;
|
|
3742
|
+
}>;
|
|
3743
|
+
declare const CreateShredUSessionSchema: z.ZodObject<{
|
|
3744
|
+
topic: z.ZodString;
|
|
3745
|
+
description: z.ZodString;
|
|
3746
|
+
startsAt: z.ZodNumber;
|
|
3747
|
+
durationMin: z.ZodNumber;
|
|
3748
|
+
zoomUrl: z.ZodString;
|
|
3749
|
+
assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3750
|
+
assetId: z.ZodString;
|
|
3751
|
+
fileName: z.ZodString;
|
|
3752
|
+
extension: z.ZodString;
|
|
3753
|
+
fileSize: z.ZodNumber;
|
|
3754
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
3755
|
+
progress: z.ZodOptional<z.ZodNumber>;
|
|
3756
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3757
|
+
} & {
|
|
3758
|
+
assetUrl: z.ZodString;
|
|
3759
|
+
thumbnailUrl: z.ZodString;
|
|
3760
|
+
type: z.ZodOptional<z.ZodString>;
|
|
3761
|
+
authorId: z.ZodOptional<z.ZodString>;
|
|
3762
|
+
uploadedAt: z.ZodOptional<z.ZodNumber>;
|
|
3763
|
+
}, "strip", z.ZodTypeAny, {
|
|
3764
|
+
assetId: string;
|
|
3765
|
+
fileName: string;
|
|
3766
|
+
extension: string;
|
|
3767
|
+
fileSize: number;
|
|
3768
|
+
assetUrl: string;
|
|
3769
|
+
thumbnailUrl: string;
|
|
3770
|
+
type?: string | undefined;
|
|
3771
|
+
error?: string | undefined;
|
|
3772
|
+
duration?: number | undefined;
|
|
3773
|
+
progress?: number | undefined;
|
|
3774
|
+
authorId?: string | undefined;
|
|
3775
|
+
uploadedAt?: number | undefined;
|
|
3776
|
+
}, {
|
|
3777
|
+
assetId: string;
|
|
3778
|
+
fileName: string;
|
|
3779
|
+
extension: string;
|
|
3780
|
+
fileSize: number;
|
|
3781
|
+
assetUrl: string;
|
|
3782
|
+
thumbnailUrl: string;
|
|
3783
|
+
type?: string | undefined;
|
|
3784
|
+
error?: string | undefined;
|
|
3785
|
+
duration?: number | undefined;
|
|
3786
|
+
progress?: number | undefined;
|
|
3787
|
+
authorId?: string | undefined;
|
|
3788
|
+
uploadedAt?: number | undefined;
|
|
3789
|
+
}>, "many">>;
|
|
3790
|
+
tenantIds: z.ZodArray<z.ZodString, "many">;
|
|
3791
|
+
}, "strip", z.ZodTypeAny, {
|
|
3792
|
+
description: string;
|
|
3793
|
+
tenantIds: string[];
|
|
3794
|
+
topic: string;
|
|
3795
|
+
startsAt: number;
|
|
3796
|
+
durationMin: number;
|
|
3797
|
+
zoomUrl: string;
|
|
3798
|
+
assets?: {
|
|
3799
|
+
assetId: string;
|
|
3800
|
+
fileName: string;
|
|
3801
|
+
extension: string;
|
|
3802
|
+
fileSize: number;
|
|
3803
|
+
assetUrl: string;
|
|
3804
|
+
thumbnailUrl: string;
|
|
3805
|
+
type?: string | undefined;
|
|
3806
|
+
error?: string | undefined;
|
|
3807
|
+
duration?: number | undefined;
|
|
3808
|
+
progress?: number | undefined;
|
|
3809
|
+
authorId?: string | undefined;
|
|
3810
|
+
uploadedAt?: number | undefined;
|
|
3811
|
+
}[] | undefined;
|
|
3812
|
+
}, {
|
|
3813
|
+
description: string;
|
|
3814
|
+
tenantIds: string[];
|
|
3815
|
+
topic: string;
|
|
3816
|
+
startsAt: number;
|
|
3817
|
+
durationMin: number;
|
|
3818
|
+
zoomUrl: string;
|
|
3819
|
+
assets?: {
|
|
3820
|
+
assetId: string;
|
|
3821
|
+
fileName: string;
|
|
3822
|
+
extension: string;
|
|
3823
|
+
fileSize: number;
|
|
3824
|
+
assetUrl: string;
|
|
3825
|
+
thumbnailUrl: string;
|
|
3826
|
+
type?: string | undefined;
|
|
3827
|
+
error?: string | undefined;
|
|
3828
|
+
duration?: number | undefined;
|
|
3829
|
+
progress?: number | undefined;
|
|
3830
|
+
authorId?: string | undefined;
|
|
3831
|
+
uploadedAt?: number | undefined;
|
|
3832
|
+
}[] | undefined;
|
|
3833
|
+
}>;
|
|
3834
|
+
declare const UpdateShredUSessionSchema: z.ZodObject<{
|
|
3835
|
+
topic: z.ZodOptional<z.ZodString>;
|
|
3836
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3837
|
+
startsAt: z.ZodOptional<z.ZodNumber>;
|
|
3838
|
+
durationMin: z.ZodOptional<z.ZodNumber>;
|
|
3839
|
+
zoomUrl: z.ZodOptional<z.ZodString>;
|
|
3840
|
+
assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3841
|
+
assetId: z.ZodString;
|
|
3842
|
+
fileName: z.ZodString;
|
|
3843
|
+
extension: z.ZodString;
|
|
3844
|
+
fileSize: z.ZodNumber;
|
|
3845
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
3846
|
+
progress: z.ZodOptional<z.ZodNumber>;
|
|
3847
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3848
|
+
} & {
|
|
3849
|
+
assetUrl: z.ZodString;
|
|
3850
|
+
thumbnailUrl: z.ZodString;
|
|
3851
|
+
type: z.ZodOptional<z.ZodString>;
|
|
3852
|
+
authorId: z.ZodOptional<z.ZodString>;
|
|
3853
|
+
uploadedAt: z.ZodOptional<z.ZodNumber>;
|
|
3854
|
+
}, "strip", z.ZodTypeAny, {
|
|
3855
|
+
assetId: string;
|
|
3856
|
+
fileName: string;
|
|
3857
|
+
extension: string;
|
|
3858
|
+
fileSize: number;
|
|
3859
|
+
assetUrl: string;
|
|
3860
|
+
thumbnailUrl: string;
|
|
3861
|
+
type?: string | undefined;
|
|
3862
|
+
error?: string | undefined;
|
|
3863
|
+
duration?: number | undefined;
|
|
3864
|
+
progress?: number | undefined;
|
|
3865
|
+
authorId?: string | undefined;
|
|
3866
|
+
uploadedAt?: number | undefined;
|
|
3867
|
+
}, {
|
|
3868
|
+
assetId: string;
|
|
3869
|
+
fileName: string;
|
|
3870
|
+
extension: string;
|
|
3871
|
+
fileSize: number;
|
|
3872
|
+
assetUrl: string;
|
|
3873
|
+
thumbnailUrl: string;
|
|
3874
|
+
type?: string | undefined;
|
|
3875
|
+
error?: string | undefined;
|
|
3876
|
+
duration?: number | undefined;
|
|
3877
|
+
progress?: number | undefined;
|
|
3878
|
+
authorId?: string | undefined;
|
|
3879
|
+
uploadedAt?: number | undefined;
|
|
3880
|
+
}>, "many">>;
|
|
3881
|
+
tenantIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3882
|
+
}, "strip", z.ZodTypeAny, {
|
|
3883
|
+
description?: string | undefined;
|
|
3884
|
+
tenantIds?: string[] | undefined;
|
|
3885
|
+
assets?: {
|
|
3886
|
+
assetId: string;
|
|
3887
|
+
fileName: string;
|
|
3888
|
+
extension: string;
|
|
3889
|
+
fileSize: number;
|
|
3890
|
+
assetUrl: string;
|
|
3891
|
+
thumbnailUrl: string;
|
|
3892
|
+
type?: string | undefined;
|
|
3893
|
+
error?: string | undefined;
|
|
3894
|
+
duration?: number | undefined;
|
|
3895
|
+
progress?: number | undefined;
|
|
3896
|
+
authorId?: string | undefined;
|
|
3897
|
+
uploadedAt?: number | undefined;
|
|
3898
|
+
}[] | undefined;
|
|
3899
|
+
topic?: string | undefined;
|
|
3900
|
+
startsAt?: number | undefined;
|
|
3901
|
+
durationMin?: number | undefined;
|
|
3902
|
+
zoomUrl?: string | undefined;
|
|
3903
|
+
}, {
|
|
3904
|
+
description?: string | undefined;
|
|
3905
|
+
tenantIds?: string[] | undefined;
|
|
3906
|
+
assets?: {
|
|
3907
|
+
assetId: string;
|
|
3908
|
+
fileName: string;
|
|
3909
|
+
extension: string;
|
|
3910
|
+
fileSize: number;
|
|
3911
|
+
assetUrl: string;
|
|
3912
|
+
thumbnailUrl: string;
|
|
3913
|
+
type?: string | undefined;
|
|
3914
|
+
error?: string | undefined;
|
|
3915
|
+
duration?: number | undefined;
|
|
3916
|
+
progress?: number | undefined;
|
|
3917
|
+
authorId?: string | undefined;
|
|
3918
|
+
uploadedAt?: number | undefined;
|
|
3919
|
+
}[] | undefined;
|
|
3920
|
+
topic?: string | undefined;
|
|
3921
|
+
startsAt?: number | undefined;
|
|
3922
|
+
durationMin?: number | undefined;
|
|
3923
|
+
zoomUrl?: string | undefined;
|
|
3924
|
+
}>;
|
|
3925
|
+
declare const SetShredUSessionRecordingSchema: z.ZodObject<{
|
|
3926
|
+
recordingId: z.ZodString;
|
|
3927
|
+
recordingDurationSeconds: z.ZodNumber;
|
|
3928
|
+
}, "strip", z.ZodTypeAny, {
|
|
3929
|
+
recordingId: string;
|
|
3930
|
+
recordingDurationSeconds: number;
|
|
3931
|
+
}, {
|
|
3932
|
+
recordingId: string;
|
|
3933
|
+
recordingDurationSeconds: number;
|
|
3934
|
+
}>;
|
|
3935
|
+
type SessionAsset = z.infer<typeof SessionAssetSchema>;
|
|
3936
|
+
type ShredUSessionStatus = z.infer<typeof ShredUSessionStatusSchema>;
|
|
3937
|
+
type ShredUSession = z.infer<typeof ShredUSessionSchema>;
|
|
3938
|
+
type ShredUSessionCustomer = z.infer<typeof ShredUSessionCustomerSchema>;
|
|
3939
|
+
type Create = z.infer<typeof CreateShredUSessionSchema>;
|
|
3940
|
+
type Update = z.infer<typeof UpdateShredUSessionSchema>;
|
|
3941
|
+
type SetRecording = z.infer<typeof SetShredUSessionRecordingSchema>;
|
|
3942
|
+
|
|
3943
|
+
interface IAPI$1 {
|
|
3944
|
+
list: (ctx: Context) => Promise<ShredUSession[]>;
|
|
3945
|
+
getUpcoming: (ctx: Context) => Promise<ShredUSessionCustomer[]>;
|
|
3946
|
+
getLibrary: (ctx: Context) => Promise<ShredUSessionCustomer[]>;
|
|
3947
|
+
get: (ctx: Context, id: string) => Promise<ShredUSessionCustomer>;
|
|
3948
|
+
create: (ctx: Context, data: Create) => Promise<ShredUSession>;
|
|
3949
|
+
update: (ctx: Context, id: string, data: Update) => Promise<void>;
|
|
3950
|
+
cancel: (ctx: Context, id: string) => Promise<void>;
|
|
3951
|
+
setRecording: (ctx: Context, id: string, data: SetRecording) => Promise<void>;
|
|
3952
|
+
}
|
|
3953
|
+
declare const Endpoints$1: {
|
|
3954
|
+
List: {
|
|
3955
|
+
uri: string;
|
|
3956
|
+
method: string;
|
|
3957
|
+
};
|
|
3958
|
+
GetUpcoming: {
|
|
3959
|
+
uri: string;
|
|
3960
|
+
method: string;
|
|
3961
|
+
};
|
|
3962
|
+
GetLibrary: {
|
|
3963
|
+
uri: string;
|
|
3964
|
+
method: string;
|
|
3965
|
+
};
|
|
3966
|
+
Get: {
|
|
3967
|
+
uri: string;
|
|
3968
|
+
method: string;
|
|
3969
|
+
};
|
|
3970
|
+
Create: {
|
|
3971
|
+
uri: string;
|
|
3972
|
+
method: string;
|
|
3973
|
+
};
|
|
3974
|
+
Update: {
|
|
3975
|
+
uri: string;
|
|
3976
|
+
method: string;
|
|
3977
|
+
};
|
|
3978
|
+
Cancel: {
|
|
3979
|
+
uri: string;
|
|
3980
|
+
method: string;
|
|
3981
|
+
};
|
|
3982
|
+
SetRecording: {
|
|
3983
|
+
uri: string;
|
|
3984
|
+
method: string;
|
|
3985
|
+
};
|
|
3986
|
+
};
|
|
3987
|
+
|
|
3483
3988
|
type index$3_Create = Create;
|
|
3484
|
-
declare const index$
|
|
3485
|
-
|
|
3989
|
+
declare const index$3_CreateShredUSessionSchema: typeof CreateShredUSessionSchema;
|
|
3990
|
+
type index$3_SessionAsset = SessionAsset;
|
|
3991
|
+
declare const index$3_SessionAssetSchema: typeof SessionAssetSchema;
|
|
3992
|
+
type index$3_SetRecording = SetRecording;
|
|
3993
|
+
declare const index$3_SetShredUSessionRecordingSchema: typeof SetShredUSessionRecordingSchema;
|
|
3994
|
+
type index$3_ShredUSessionCustomer = ShredUSessionCustomer;
|
|
3995
|
+
declare const index$3_ShredUSessionCustomerSchema: typeof ShredUSessionCustomerSchema;
|
|
3996
|
+
declare const index$3_ShredUSessionSchema: typeof ShredUSessionSchema;
|
|
3997
|
+
type index$3_ShredUSessionStatus = ShredUSessionStatus;
|
|
3998
|
+
declare const index$3_ShredUSessionStatusSchema: typeof ShredUSessionStatusSchema;
|
|
3486
3999
|
type index$3_Update = Update;
|
|
3487
|
-
declare const index$
|
|
3488
|
-
type index$3_UserOfferDetails = UserOfferDetails;
|
|
3489
|
-
declare const index$3_UserOfferDetailsSchema: typeof UserOfferDetailsSchema;
|
|
4000
|
+
declare const index$3_UpdateShredUSessionSchema: typeof UpdateShredUSessionSchema;
|
|
3490
4001
|
declare namespace index$3 {
|
|
3491
|
-
export { type index$3_Create as Create, index$
|
|
4002
|
+
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
4003
|
}
|
|
3493
4004
|
|
|
3494
4005
|
/**
|
|
@@ -3852,19 +4363,20 @@ declare namespace index$2 {
|
|
|
3852
4363
|
}
|
|
3853
4364
|
|
|
3854
4365
|
declare class ShredAPI {
|
|
3855
|
-
user: IAPI$
|
|
3856
|
-
goal: IAPI$
|
|
3857
|
-
editor: IAPI$
|
|
3858
|
-
subscription: IAPI$
|
|
3859
|
-
prompt: IAPI$
|
|
3860
|
-
pushNotification: IAPI$
|
|
3861
|
-
email: IAPI$
|
|
3862
|
-
tenant: IAPI$
|
|
3863
|
-
app: IAPI$
|
|
3864
|
-
project: IAPI$
|
|
3865
|
-
track: IAPI$
|
|
3866
|
-
note: IAPI$
|
|
3867
|
-
specialOffer: IAPI$
|
|
4366
|
+
user: IAPI$c;
|
|
4367
|
+
goal: IAPI$7;
|
|
4368
|
+
editor: IAPI$6;
|
|
4369
|
+
subscription: IAPI$d;
|
|
4370
|
+
prompt: IAPI$e;
|
|
4371
|
+
pushNotification: IAPI$5;
|
|
4372
|
+
email: IAPI$9;
|
|
4373
|
+
tenant: IAPI$b;
|
|
4374
|
+
app: IAPI$4;
|
|
4375
|
+
project: IAPI$8;
|
|
4376
|
+
track: IAPI$a;
|
|
4377
|
+
note: IAPI$3;
|
|
4378
|
+
specialOffer: IAPI$2;
|
|
4379
|
+
shredu: IAPI$1;
|
|
3868
4380
|
rbac: IAPI;
|
|
3869
4381
|
constructor(env: Environment);
|
|
3870
4382
|
}
|
|
@@ -3957,4 +4469,4 @@ declare namespace index {
|
|
|
3957
4469
|
export { index_AssetSchema as AssetSchema, type Asset as Entity };
|
|
3958
4470
|
}
|
|
3959
4471
|
|
|
3960
|
-
export { index as Asset, index$
|
|
4472
|
+
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 };
|