shred-api-client 2.10.2 → 2.10.4
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 +205 -1
- package/dist/index.js +36 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3537,10 +3537,42 @@ declare const SessionAssetSchema: z.ZodObject<{
|
|
|
3537
3537
|
uploadedAt?: number | undefined;
|
|
3538
3538
|
}>;
|
|
3539
3539
|
declare const ShredUSessionStatusSchema: z.ZodEnum<["scheduled", "cancelled"]>;
|
|
3540
|
+
declare const ShredUBriefSchema: z.ZodObject<{
|
|
3541
|
+
hook: z.ZodString;
|
|
3542
|
+
intro: z.ZodArray<z.ZodString, "many">;
|
|
3543
|
+
topics: z.ZodArray<z.ZodString, "many">;
|
|
3544
|
+
signoff: z.ZodOptional<z.ZodString>;
|
|
3545
|
+
}, "strip", z.ZodTypeAny, {
|
|
3546
|
+
hook: string;
|
|
3547
|
+
intro: string[];
|
|
3548
|
+
topics: string[];
|
|
3549
|
+
signoff?: string | undefined;
|
|
3550
|
+
}, {
|
|
3551
|
+
hook: string;
|
|
3552
|
+
intro: string[];
|
|
3553
|
+
topics: string[];
|
|
3554
|
+
signoff?: string | undefined;
|
|
3555
|
+
}>;
|
|
3540
3556
|
declare const ShredUSessionSchema: z.ZodObject<{
|
|
3541
3557
|
id: z.ZodString;
|
|
3542
3558
|
topic: z.ZodString;
|
|
3543
3559
|
description: z.ZodString;
|
|
3560
|
+
brief: z.ZodOptional<z.ZodObject<{
|
|
3561
|
+
hook: z.ZodString;
|
|
3562
|
+
intro: z.ZodArray<z.ZodString, "many">;
|
|
3563
|
+
topics: z.ZodArray<z.ZodString, "many">;
|
|
3564
|
+
signoff: z.ZodOptional<z.ZodString>;
|
|
3565
|
+
}, "strip", z.ZodTypeAny, {
|
|
3566
|
+
hook: string;
|
|
3567
|
+
intro: string[];
|
|
3568
|
+
topics: string[];
|
|
3569
|
+
signoff?: string | undefined;
|
|
3570
|
+
}, {
|
|
3571
|
+
hook: string;
|
|
3572
|
+
intro: string[];
|
|
3573
|
+
topics: string[];
|
|
3574
|
+
signoff?: string | undefined;
|
|
3575
|
+
}>>;
|
|
3544
3576
|
startsAt: z.ZodNumber;
|
|
3545
3577
|
durationMin: z.ZodNumber;
|
|
3546
3578
|
zoomUrl: z.ZodString;
|
|
@@ -3615,6 +3647,12 @@ declare const ShredUSessionSchema: z.ZodObject<{
|
|
|
3615
3647
|
authorId?: string | undefined;
|
|
3616
3648
|
uploadedAt?: number | undefined;
|
|
3617
3649
|
}[] | undefined;
|
|
3650
|
+
brief?: {
|
|
3651
|
+
hook: string;
|
|
3652
|
+
intro: string[];
|
|
3653
|
+
topics: string[];
|
|
3654
|
+
signoff?: string | undefined;
|
|
3655
|
+
} | undefined;
|
|
3618
3656
|
recordingUrl?: string | undefined;
|
|
3619
3657
|
recordingThumbnailUrl?: string | undefined;
|
|
3620
3658
|
recordingDurationSeconds?: number | undefined;
|
|
@@ -3642,6 +3680,12 @@ declare const ShredUSessionSchema: z.ZodObject<{
|
|
|
3642
3680
|
authorId?: string | undefined;
|
|
3643
3681
|
uploadedAt?: number | undefined;
|
|
3644
3682
|
}[] | undefined;
|
|
3683
|
+
brief?: {
|
|
3684
|
+
hook: string;
|
|
3685
|
+
intro: string[];
|
|
3686
|
+
topics: string[];
|
|
3687
|
+
signoff?: string | undefined;
|
|
3688
|
+
} | undefined;
|
|
3645
3689
|
recordingUrl?: string | undefined;
|
|
3646
3690
|
recordingThumbnailUrl?: string | undefined;
|
|
3647
3691
|
recordingDurationSeconds?: number | undefined;
|
|
@@ -3651,6 +3695,22 @@ declare const ShredUSessionCustomerSchema: z.ZodObject<Omit<{
|
|
|
3651
3695
|
id: z.ZodString;
|
|
3652
3696
|
topic: z.ZodString;
|
|
3653
3697
|
description: z.ZodString;
|
|
3698
|
+
brief: z.ZodOptional<z.ZodObject<{
|
|
3699
|
+
hook: z.ZodString;
|
|
3700
|
+
intro: z.ZodArray<z.ZodString, "many">;
|
|
3701
|
+
topics: z.ZodArray<z.ZodString, "many">;
|
|
3702
|
+
signoff: z.ZodOptional<z.ZodString>;
|
|
3703
|
+
}, "strip", z.ZodTypeAny, {
|
|
3704
|
+
hook: string;
|
|
3705
|
+
intro: string[];
|
|
3706
|
+
topics: string[];
|
|
3707
|
+
signoff?: string | undefined;
|
|
3708
|
+
}, {
|
|
3709
|
+
hook: string;
|
|
3710
|
+
intro: string[];
|
|
3711
|
+
topics: string[];
|
|
3712
|
+
signoff?: string | undefined;
|
|
3713
|
+
}>>;
|
|
3654
3714
|
startsAt: z.ZodNumber;
|
|
3655
3715
|
durationMin: z.ZodNumber;
|
|
3656
3716
|
zoomUrl: z.ZodString;
|
|
@@ -3722,6 +3782,12 @@ declare const ShredUSessionCustomerSchema: z.ZodObject<Omit<{
|
|
|
3722
3782
|
authorId?: string | undefined;
|
|
3723
3783
|
uploadedAt?: number | undefined;
|
|
3724
3784
|
}[] | undefined;
|
|
3785
|
+
brief?: {
|
|
3786
|
+
hook: string;
|
|
3787
|
+
intro: string[];
|
|
3788
|
+
topics: string[];
|
|
3789
|
+
signoff?: string | undefined;
|
|
3790
|
+
} | undefined;
|
|
3725
3791
|
recordingUrl?: string | undefined;
|
|
3726
3792
|
recordingThumbnailUrl?: string | undefined;
|
|
3727
3793
|
recordingDurationSeconds?: number | undefined;
|
|
@@ -3746,13 +3812,51 @@ declare const ShredUSessionCustomerSchema: z.ZodObject<Omit<{
|
|
|
3746
3812
|
authorId?: string | undefined;
|
|
3747
3813
|
uploadedAt?: number | undefined;
|
|
3748
3814
|
}[] | undefined;
|
|
3815
|
+
brief?: {
|
|
3816
|
+
hook: string;
|
|
3817
|
+
intro: string[];
|
|
3818
|
+
topics: string[];
|
|
3819
|
+
signoff?: string | undefined;
|
|
3820
|
+
} | undefined;
|
|
3749
3821
|
recordingUrl?: string | undefined;
|
|
3750
3822
|
recordingThumbnailUrl?: string | undefined;
|
|
3751
3823
|
recordingDurationSeconds?: number | undefined;
|
|
3752
3824
|
}>;
|
|
3825
|
+
declare const CreateShredUBriefSchema: z.ZodObject<{
|
|
3826
|
+
hook: z.ZodString;
|
|
3827
|
+
intro: z.ZodArray<z.ZodString, "many">;
|
|
3828
|
+
topics: z.ZodArray<z.ZodString, "many">;
|
|
3829
|
+
signoff: z.ZodOptional<z.ZodString>;
|
|
3830
|
+
}, "strip", z.ZodTypeAny, {
|
|
3831
|
+
hook: string;
|
|
3832
|
+
intro: string[];
|
|
3833
|
+
topics: string[];
|
|
3834
|
+
signoff?: string | undefined;
|
|
3835
|
+
}, {
|
|
3836
|
+
hook: string;
|
|
3837
|
+
intro: string[];
|
|
3838
|
+
topics: string[];
|
|
3839
|
+
signoff?: string | undefined;
|
|
3840
|
+
}>;
|
|
3753
3841
|
declare const CreateShredUSessionSchema: z.ZodObject<{
|
|
3754
3842
|
topic: z.ZodString;
|
|
3755
3843
|
description: z.ZodString;
|
|
3844
|
+
brief: z.ZodOptional<z.ZodObject<{
|
|
3845
|
+
hook: z.ZodString;
|
|
3846
|
+
intro: z.ZodArray<z.ZodString, "many">;
|
|
3847
|
+
topics: z.ZodArray<z.ZodString, "many">;
|
|
3848
|
+
signoff: z.ZodOptional<z.ZodString>;
|
|
3849
|
+
}, "strip", z.ZodTypeAny, {
|
|
3850
|
+
hook: string;
|
|
3851
|
+
intro: string[];
|
|
3852
|
+
topics: string[];
|
|
3853
|
+
signoff?: string | undefined;
|
|
3854
|
+
}, {
|
|
3855
|
+
hook: string;
|
|
3856
|
+
intro: string[];
|
|
3857
|
+
topics: string[];
|
|
3858
|
+
signoff?: string | undefined;
|
|
3859
|
+
}>>;
|
|
3756
3860
|
startsAt: z.ZodNumber;
|
|
3757
3861
|
durationMin: z.ZodNumber;
|
|
3758
3862
|
zoomUrl: z.ZodString;
|
|
@@ -3821,6 +3925,12 @@ declare const CreateShredUSessionSchema: z.ZodObject<{
|
|
|
3821
3925
|
authorId?: string | undefined;
|
|
3822
3926
|
uploadedAt?: number | undefined;
|
|
3823
3927
|
}[] | undefined;
|
|
3928
|
+
brief?: {
|
|
3929
|
+
hook: string;
|
|
3930
|
+
intro: string[];
|
|
3931
|
+
topics: string[];
|
|
3932
|
+
signoff?: string | undefined;
|
|
3933
|
+
} | undefined;
|
|
3824
3934
|
}, {
|
|
3825
3935
|
timezone: string;
|
|
3826
3936
|
description: string;
|
|
@@ -3843,10 +3953,32 @@ declare const CreateShredUSessionSchema: z.ZodObject<{
|
|
|
3843
3953
|
authorId?: string | undefined;
|
|
3844
3954
|
uploadedAt?: number | undefined;
|
|
3845
3955
|
}[] | undefined;
|
|
3956
|
+
brief?: {
|
|
3957
|
+
hook: string;
|
|
3958
|
+
intro: string[];
|
|
3959
|
+
topics: string[];
|
|
3960
|
+
signoff?: string | undefined;
|
|
3961
|
+
} | undefined;
|
|
3846
3962
|
}>;
|
|
3847
3963
|
declare const UpdateShredUSessionSchema: z.ZodObject<{
|
|
3848
3964
|
topic: z.ZodOptional<z.ZodString>;
|
|
3849
3965
|
description: z.ZodOptional<z.ZodString>;
|
|
3966
|
+
brief: z.ZodOptional<z.ZodObject<{
|
|
3967
|
+
hook: z.ZodString;
|
|
3968
|
+
intro: z.ZodArray<z.ZodString, "many">;
|
|
3969
|
+
topics: z.ZodArray<z.ZodString, "many">;
|
|
3970
|
+
signoff: z.ZodOptional<z.ZodString>;
|
|
3971
|
+
}, "strip", z.ZodTypeAny, {
|
|
3972
|
+
hook: string;
|
|
3973
|
+
intro: string[];
|
|
3974
|
+
topics: string[];
|
|
3975
|
+
signoff?: string | undefined;
|
|
3976
|
+
}, {
|
|
3977
|
+
hook: string;
|
|
3978
|
+
intro: string[];
|
|
3979
|
+
topics: string[];
|
|
3980
|
+
signoff?: string | undefined;
|
|
3981
|
+
}>>;
|
|
3850
3982
|
startsAt: z.ZodOptional<z.ZodNumber>;
|
|
3851
3983
|
durationMin: z.ZodOptional<z.ZodNumber>;
|
|
3852
3984
|
zoomUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -3912,6 +4044,12 @@ declare const UpdateShredUSessionSchema: z.ZodObject<{
|
|
|
3912
4044
|
uploadedAt?: number | undefined;
|
|
3913
4045
|
}[] | undefined;
|
|
3914
4046
|
topic?: string | undefined;
|
|
4047
|
+
brief?: {
|
|
4048
|
+
hook: string;
|
|
4049
|
+
intro: string[];
|
|
4050
|
+
topics: string[];
|
|
4051
|
+
signoff?: string | undefined;
|
|
4052
|
+
} | undefined;
|
|
3915
4053
|
startsAt?: number | undefined;
|
|
3916
4054
|
durationMin?: number | undefined;
|
|
3917
4055
|
zoomUrl?: string | undefined;
|
|
@@ -3934,10 +4072,63 @@ declare const UpdateShredUSessionSchema: z.ZodObject<{
|
|
|
3934
4072
|
uploadedAt?: number | undefined;
|
|
3935
4073
|
}[] | undefined;
|
|
3936
4074
|
topic?: string | undefined;
|
|
4075
|
+
brief?: {
|
|
4076
|
+
hook: string;
|
|
4077
|
+
intro: string[];
|
|
4078
|
+
topics: string[];
|
|
4079
|
+
signoff?: string | undefined;
|
|
4080
|
+
} | undefined;
|
|
3937
4081
|
startsAt?: number | undefined;
|
|
3938
4082
|
durationMin?: number | undefined;
|
|
3939
4083
|
zoomUrl?: string | undefined;
|
|
3940
4084
|
}>;
|
|
4085
|
+
declare const PreviewShredUEmailSchema: z.ZodObject<{
|
|
4086
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
4087
|
+
topic: z.ZodString;
|
|
4088
|
+
startsAt: z.ZodNumber;
|
|
4089
|
+
durationMin: z.ZodNumber;
|
|
4090
|
+
timezone: z.ZodString;
|
|
4091
|
+
brief: z.ZodOptional<z.ZodObject<{
|
|
4092
|
+
hook: z.ZodString;
|
|
4093
|
+
intro: z.ZodArray<z.ZodString, "many">;
|
|
4094
|
+
topics: z.ZodArray<z.ZodString, "many">;
|
|
4095
|
+
signoff: z.ZodOptional<z.ZodString>;
|
|
4096
|
+
}, "strip", z.ZodTypeAny, {
|
|
4097
|
+
hook: string;
|
|
4098
|
+
intro: string[];
|
|
4099
|
+
topics: string[];
|
|
4100
|
+
signoff?: string | undefined;
|
|
4101
|
+
}, {
|
|
4102
|
+
hook: string;
|
|
4103
|
+
intro: string[];
|
|
4104
|
+
topics: string[];
|
|
4105
|
+
signoff?: string | undefined;
|
|
4106
|
+
}>>;
|
|
4107
|
+
}, "strip", z.ZodTypeAny, {
|
|
4108
|
+
timezone: string;
|
|
4109
|
+
topic: string;
|
|
4110
|
+
startsAt: number;
|
|
4111
|
+
durationMin: number;
|
|
4112
|
+
brief?: {
|
|
4113
|
+
hook: string;
|
|
4114
|
+
intro: string[];
|
|
4115
|
+
topics: string[];
|
|
4116
|
+
signoff?: string | undefined;
|
|
4117
|
+
} | undefined;
|
|
4118
|
+
sessionId?: string | undefined;
|
|
4119
|
+
}, {
|
|
4120
|
+
timezone: string;
|
|
4121
|
+
topic: string;
|
|
4122
|
+
startsAt: number;
|
|
4123
|
+
durationMin: number;
|
|
4124
|
+
brief?: {
|
|
4125
|
+
hook: string;
|
|
4126
|
+
intro: string[];
|
|
4127
|
+
topics: string[];
|
|
4128
|
+
signoff?: string | undefined;
|
|
4129
|
+
} | undefined;
|
|
4130
|
+
sessionId?: string | undefined;
|
|
4131
|
+
}>;
|
|
3941
4132
|
declare const SetShredUSessionRecordingSchema: z.ZodObject<{
|
|
3942
4133
|
recordingUrl: z.ZodString;
|
|
3943
4134
|
recordingThumbnailUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -3952,12 +4143,14 @@ declare const SetShredUSessionRecordingSchema: z.ZodObject<{
|
|
|
3952
4143
|
recordingThumbnailUrl?: string | undefined;
|
|
3953
4144
|
}>;
|
|
3954
4145
|
type SessionAsset = z.infer<typeof SessionAssetSchema>;
|
|
4146
|
+
type Brief = z.infer<typeof ShredUBriefSchema>;
|
|
3955
4147
|
type ShredUSessionStatus = z.infer<typeof ShredUSessionStatusSchema>;
|
|
3956
4148
|
type ShredUSession = z.infer<typeof ShredUSessionSchema>;
|
|
3957
4149
|
type ShredUSessionCustomer = z.infer<typeof ShredUSessionCustomerSchema>;
|
|
3958
4150
|
type Create = z.infer<typeof CreateShredUSessionSchema>;
|
|
3959
4151
|
type Update = z.infer<typeof UpdateShredUSessionSchema>;
|
|
3960
4152
|
type SetRecording = z.infer<typeof SetShredUSessionRecordingSchema>;
|
|
4153
|
+
type PreviewEmail = z.infer<typeof PreviewShredUEmailSchema>;
|
|
3961
4154
|
|
|
3962
4155
|
interface IAPI$1 {
|
|
3963
4156
|
list: (ctx: Context) => Promise<ShredUSession[]>;
|
|
@@ -3968,6 +4161,7 @@ interface IAPI$1 {
|
|
|
3968
4161
|
update: (ctx: Context, id: string, data: Update) => Promise<void>;
|
|
3969
4162
|
cancel: (ctx: Context, id: string) => Promise<void>;
|
|
3970
4163
|
setRecording: (ctx: Context, id: string, data: SetRecording) => Promise<void>;
|
|
4164
|
+
previewEmail: (ctx: Context, data: PreviewEmail) => Promise<void>;
|
|
3971
4165
|
}
|
|
3972
4166
|
declare const Endpoints$1: {
|
|
3973
4167
|
List: {
|
|
@@ -4002,14 +4196,23 @@ declare const Endpoints$1: {
|
|
|
4002
4196
|
uri: string;
|
|
4003
4197
|
method: string;
|
|
4004
4198
|
};
|
|
4199
|
+
PreviewEmail: {
|
|
4200
|
+
uri: string;
|
|
4201
|
+
method: string;
|
|
4202
|
+
};
|
|
4005
4203
|
};
|
|
4006
4204
|
|
|
4205
|
+
type index$3_Brief = Brief;
|
|
4007
4206
|
type index$3_Create = Create;
|
|
4207
|
+
declare const index$3_CreateShredUBriefSchema: typeof CreateShredUBriefSchema;
|
|
4008
4208
|
declare const index$3_CreateShredUSessionSchema: typeof CreateShredUSessionSchema;
|
|
4209
|
+
type index$3_PreviewEmail = PreviewEmail;
|
|
4210
|
+
declare const index$3_PreviewShredUEmailSchema: typeof PreviewShredUEmailSchema;
|
|
4009
4211
|
type index$3_SessionAsset = SessionAsset;
|
|
4010
4212
|
declare const index$3_SessionAssetSchema: typeof SessionAssetSchema;
|
|
4011
4213
|
type index$3_SetRecording = SetRecording;
|
|
4012
4214
|
declare const index$3_SetShredUSessionRecordingSchema: typeof SetShredUSessionRecordingSchema;
|
|
4215
|
+
declare const index$3_ShredUBriefSchema: typeof ShredUBriefSchema;
|
|
4013
4216
|
type index$3_ShredUSessionCustomer = ShredUSessionCustomer;
|
|
4014
4217
|
declare const index$3_ShredUSessionCustomerSchema: typeof ShredUSessionCustomerSchema;
|
|
4015
4218
|
declare const index$3_ShredUSessionSchema: typeof ShredUSessionSchema;
|
|
@@ -4018,7 +4221,7 @@ declare const index$3_ShredUSessionStatusSchema: typeof ShredUSessionStatusSchem
|
|
|
4018
4221
|
type index$3_Update = Update;
|
|
4019
4222
|
declare const index$3_UpdateShredUSessionSchema: typeof UpdateShredUSessionSchema;
|
|
4020
4223
|
declare namespace index$3 {
|
|
4021
|
-
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 };
|
|
4224
|
+
export { type index$3_Brief as Brief, type index$3_Create as Create, index$3_CreateShredUBriefSchema as CreateShredUBriefSchema, index$3_CreateShredUSessionSchema as CreateShredUSessionSchema, Endpoints$1 as Endpoints, type ShredUSession as Entity, type IAPI$1 as IAPI, type index$3_PreviewEmail as PreviewEmail, index$3_PreviewShredUEmailSchema as PreviewShredUEmailSchema, type index$3_SessionAsset as SessionAsset, index$3_SessionAssetSchema as SessionAssetSchema, type index$3_SetRecording as SetRecording, index$3_SetShredUSessionRecordingSchema as SetShredUSessionRecordingSchema, index$3_ShredUBriefSchema as ShredUBriefSchema, 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 };
|
|
4022
4225
|
}
|
|
4023
4226
|
|
|
4024
4227
|
/**
|
|
@@ -4088,6 +4291,7 @@ declare const Actions: {
|
|
|
4088
4291
|
readonly SHREDU_SESSION_UPDATE: "shredu.session.update";
|
|
4089
4292
|
readonly SHREDU_SESSION_CANCEL: "shredu.session.cancel";
|
|
4090
4293
|
readonly SHREDU_SESSION_SET_RECORDING: "shredu.session.set_recording";
|
|
4294
|
+
readonly SHREDU_SESSION_PREVIEW_EMAIL: "shredu.session.preview_email";
|
|
4091
4295
|
readonly SUBSCRIPTION_VIEW_USER: "subscription.view_user";
|
|
4092
4296
|
readonly SUBSCRIPTION_VIEW_SUMMARY: "subscription.view_summary";
|
|
4093
4297
|
readonly SUBSCRIPTION_LIST_PROMO_CODES: "subscription.list_promo_codes";
|
package/dist/index.js
CHANGED
|
@@ -6090,6 +6090,10 @@ var Endpoints9 = {
|
|
|
6090
6090
|
SetRecording: {
|
|
6091
6091
|
uri: "/shredu/sessions/:id/recording",
|
|
6092
6092
|
method: "PUT"
|
|
6093
|
+
},
|
|
6094
|
+
PreviewEmail: {
|
|
6095
|
+
uri: "/shredu/sessions/preview-email",
|
|
6096
|
+
method: "POST"
|
|
6093
6097
|
}
|
|
6094
6098
|
};
|
|
6095
6099
|
|
|
@@ -6102,10 +6106,17 @@ var SessionAssetSchema = AssetSchema.extend({
|
|
|
6102
6106
|
uploadedAt: external_exports.number().optional()
|
|
6103
6107
|
});
|
|
6104
6108
|
var ShredUSessionStatusSchema = external_exports.enum(["scheduled", "cancelled"]);
|
|
6109
|
+
var ShredUBriefSchema = external_exports.object({
|
|
6110
|
+
hook: external_exports.string(),
|
|
6111
|
+
intro: external_exports.array(external_exports.string()),
|
|
6112
|
+
topics: external_exports.array(external_exports.string()),
|
|
6113
|
+
signoff: external_exports.string().optional()
|
|
6114
|
+
});
|
|
6105
6115
|
var ShredUSessionSchema = external_exports.object({
|
|
6106
6116
|
id: external_exports.string(),
|
|
6107
6117
|
topic: external_exports.string(),
|
|
6108
6118
|
description: external_exports.string(),
|
|
6119
|
+
brief: ShredUBriefSchema.optional(),
|
|
6109
6120
|
startsAt: external_exports.number(),
|
|
6110
6121
|
durationMin: external_exports.number(),
|
|
6111
6122
|
zoomUrl: external_exports.string(),
|
|
@@ -6122,9 +6133,16 @@ var ShredUSessionCustomerSchema = ShredUSessionSchema.omit({
|
|
|
6122
6133
|
tenantIds: true,
|
|
6123
6134
|
timezone: true
|
|
6124
6135
|
});
|
|
6136
|
+
var CreateShredUBriefSchema = external_exports.object({
|
|
6137
|
+
hook: external_exports.string().min(1),
|
|
6138
|
+
intro: external_exports.array(external_exports.string().min(1)),
|
|
6139
|
+
topics: external_exports.array(external_exports.string().min(1)),
|
|
6140
|
+
signoff: external_exports.string().min(1).optional()
|
|
6141
|
+
});
|
|
6125
6142
|
var CreateShredUSessionSchema = external_exports.object({
|
|
6126
6143
|
topic: external_exports.string().min(1),
|
|
6127
6144
|
description: external_exports.string().min(1),
|
|
6145
|
+
brief: CreateShredUBriefSchema.optional(),
|
|
6128
6146
|
startsAt: external_exports.number().int().positive(),
|
|
6129
6147
|
durationMin: external_exports.number().int().positive(),
|
|
6130
6148
|
zoomUrl: external_exports.string().url(),
|
|
@@ -6135,6 +6153,7 @@ var CreateShredUSessionSchema = external_exports.object({
|
|
|
6135
6153
|
var UpdateShredUSessionSchema = external_exports.object({
|
|
6136
6154
|
topic: external_exports.string().min(1).optional(),
|
|
6137
6155
|
description: external_exports.string().min(1).optional(),
|
|
6156
|
+
brief: CreateShredUBriefSchema.optional(),
|
|
6138
6157
|
startsAt: external_exports.number().int().positive().optional(),
|
|
6139
6158
|
durationMin: external_exports.number().int().positive().optional(),
|
|
6140
6159
|
zoomUrl: external_exports.string().url().optional(),
|
|
@@ -6142,6 +6161,14 @@ var UpdateShredUSessionSchema = external_exports.object({
|
|
|
6142
6161
|
tenantIds: external_exports.array(external_exports.string().min(1)).optional(),
|
|
6143
6162
|
timezone: external_exports.string().min(1).optional()
|
|
6144
6163
|
});
|
|
6164
|
+
var PreviewShredUEmailSchema = external_exports.object({
|
|
6165
|
+
sessionId: external_exports.string().min(1).optional(),
|
|
6166
|
+
topic: external_exports.string().min(1),
|
|
6167
|
+
startsAt: external_exports.number().int().positive(),
|
|
6168
|
+
durationMin: external_exports.number().int().positive(),
|
|
6169
|
+
timezone: external_exports.string().min(1),
|
|
6170
|
+
brief: CreateShredUBriefSchema.optional()
|
|
6171
|
+
});
|
|
6145
6172
|
var SetShredUSessionRecordingSchema = external_exports.object({
|
|
6146
6173
|
recordingUrl: external_exports.string().url(),
|
|
6147
6174
|
recordingThumbnailUrl: external_exports.string().url().optional(),
|
|
@@ -6186,6 +6213,10 @@ var ShredUAPI = class {
|
|
|
6186
6213
|
const { uri, method } = Endpoints9.SetRecording;
|
|
6187
6214
|
await this.clientHTTP.makeRequest(this.env, uri.replace(":id", id), method, data, ctx);
|
|
6188
6215
|
}
|
|
6216
|
+
async previewEmail(ctx, data) {
|
|
6217
|
+
const { uri, method } = Endpoints9.PreviewEmail;
|
|
6218
|
+
await this.clientHTTP.makeRequest(this.env, uri, method, data, ctx);
|
|
6219
|
+
}
|
|
6189
6220
|
};
|
|
6190
6221
|
var ShredU_api_default = ShredUAPI;
|
|
6191
6222
|
|
|
@@ -6271,6 +6302,7 @@ var Actions = {
|
|
|
6271
6302
|
SHREDU_SESSION_UPDATE: "shredu.session.update",
|
|
6272
6303
|
SHREDU_SESSION_CANCEL: "shredu.session.cancel",
|
|
6273
6304
|
SHREDU_SESSION_SET_RECORDING: "shredu.session.set_recording",
|
|
6305
|
+
SHREDU_SESSION_PREVIEW_EMAIL: "shredu.session.preview_email",
|
|
6274
6306
|
// — Subscriptions —
|
|
6275
6307
|
SUBSCRIPTION_VIEW_USER: "subscription.view_user",
|
|
6276
6308
|
SUBSCRIPTION_VIEW_SUMMARY: "subscription.view_summary",
|
|
@@ -6366,6 +6398,7 @@ var ActionCatalog = {
|
|
|
6366
6398
|
[Actions.SHREDU_SESSION_UPDATE]: { label: "Update a ShredU session", group: "ShredU" },
|
|
6367
6399
|
[Actions.SHREDU_SESSION_CANCEL]: { label: "Cancel a ShredU session", group: "ShredU" },
|
|
6368
6400
|
[Actions.SHREDU_SESSION_SET_RECORDING]: { label: "Attach a recording to a ShredU session", group: "ShredU" },
|
|
6401
|
+
[Actions.SHREDU_SESSION_PREVIEW_EMAIL]: { label: "Send themselves a preview of the ShredU reminder email", group: "ShredU" },
|
|
6369
6402
|
// Subscriptions
|
|
6370
6403
|
[Actions.SUBSCRIPTION_VIEW_USER]: { label: "View a user's subscription", group: "Subscriptions" },
|
|
6371
6404
|
[Actions.SUBSCRIPTION_VIEW_SUMMARY]: { label: "View a user's subscription summary", group: "Subscriptions" },
|
|
@@ -6968,10 +7001,13 @@ __export(special_offer_exports, {
|
|
|
6968
7001
|
// src/model/shredu/index.ts
|
|
6969
7002
|
var shredu_exports = {};
|
|
6970
7003
|
__export(shredu_exports, {
|
|
7004
|
+
CreateShredUBriefSchema: () => CreateShredUBriefSchema,
|
|
6971
7005
|
CreateShredUSessionSchema: () => CreateShredUSessionSchema,
|
|
6972
7006
|
Endpoints: () => Endpoints9,
|
|
7007
|
+
PreviewShredUEmailSchema: () => PreviewShredUEmailSchema,
|
|
6973
7008
|
SessionAssetSchema: () => SessionAssetSchema,
|
|
6974
7009
|
SetShredUSessionRecordingSchema: () => SetShredUSessionRecordingSchema,
|
|
7010
|
+
ShredUBriefSchema: () => ShredUBriefSchema,
|
|
6975
7011
|
ShredUSessionCustomerSchema: () => ShredUSessionCustomerSchema,
|
|
6976
7012
|
ShredUSessionSchema: () => ShredUSessionSchema,
|
|
6977
7013
|
ShredUSessionStatusSchema: () => ShredUSessionStatusSchema,
|