shred-api-client 2.10.1 → 2.10.3

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
@@ -3537,15 +3537,48 @@ 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;
3547
3579
  status: z.ZodEnum<["scheduled", "cancelled"]>;
3548
- recordingId: z.ZodOptional<z.ZodString>;
3580
+ recordingUrl: z.ZodOptional<z.ZodString>;
3581
+ recordingThumbnailUrl: z.ZodOptional<z.ZodString>;
3549
3582
  recordingDurationSeconds: z.ZodOptional<z.ZodNumber>;
3550
3583
  assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
3551
3584
  assetId: z.ZodString;
@@ -3614,7 +3647,14 @@ declare const ShredUSessionSchema: z.ZodObject<{
3614
3647
  authorId?: string | undefined;
3615
3648
  uploadedAt?: number | undefined;
3616
3649
  }[] | undefined;
3617
- recordingId?: string | undefined;
3650
+ brief?: {
3651
+ hook: string;
3652
+ intro: string[];
3653
+ topics: string[];
3654
+ signoff?: string | undefined;
3655
+ } | undefined;
3656
+ recordingUrl?: string | undefined;
3657
+ recordingThumbnailUrl?: string | undefined;
3618
3658
  recordingDurationSeconds?: number | undefined;
3619
3659
  }, {
3620
3660
  id: string;
@@ -3640,7 +3680,14 @@ declare const ShredUSessionSchema: z.ZodObject<{
3640
3680
  authorId?: string | undefined;
3641
3681
  uploadedAt?: number | undefined;
3642
3682
  }[] | undefined;
3643
- recordingId?: string | undefined;
3683
+ brief?: {
3684
+ hook: string;
3685
+ intro: string[];
3686
+ topics: string[];
3687
+ signoff?: string | undefined;
3688
+ } | undefined;
3689
+ recordingUrl?: string | undefined;
3690
+ recordingThumbnailUrl?: string | undefined;
3644
3691
  recordingDurationSeconds?: number | undefined;
3645
3692
  }>;
3646
3693
  /** Subscriber-facing endpoints answer without the Zoom link, who else it is for, or the hub's authoring zone. */
@@ -3648,11 +3695,28 @@ declare const ShredUSessionCustomerSchema: z.ZodObject<Omit<{
3648
3695
  id: z.ZodString;
3649
3696
  topic: z.ZodString;
3650
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
+ }>>;
3651
3714
  startsAt: z.ZodNumber;
3652
3715
  durationMin: z.ZodNumber;
3653
3716
  zoomUrl: z.ZodString;
3654
3717
  status: z.ZodEnum<["scheduled", "cancelled"]>;
3655
- recordingId: z.ZodOptional<z.ZodString>;
3718
+ recordingUrl: z.ZodOptional<z.ZodString>;
3719
+ recordingThumbnailUrl: z.ZodOptional<z.ZodString>;
3656
3720
  recordingDurationSeconds: z.ZodOptional<z.ZodNumber>;
3657
3721
  assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
3658
3722
  assetId: z.ZodString;
@@ -3718,7 +3782,14 @@ declare const ShredUSessionCustomerSchema: z.ZodObject<Omit<{
3718
3782
  authorId?: string | undefined;
3719
3783
  uploadedAt?: number | undefined;
3720
3784
  }[] | undefined;
3721
- recordingId?: string | undefined;
3785
+ brief?: {
3786
+ hook: string;
3787
+ intro: string[];
3788
+ topics: string[];
3789
+ signoff?: string | undefined;
3790
+ } | undefined;
3791
+ recordingUrl?: string | undefined;
3792
+ recordingThumbnailUrl?: string | undefined;
3722
3793
  recordingDurationSeconds?: number | undefined;
3723
3794
  }, {
3724
3795
  id: string;
@@ -3741,12 +3812,51 @@ declare const ShredUSessionCustomerSchema: z.ZodObject<Omit<{
3741
3812
  authorId?: string | undefined;
3742
3813
  uploadedAt?: number | undefined;
3743
3814
  }[] | undefined;
3744
- recordingId?: string | undefined;
3815
+ brief?: {
3816
+ hook: string;
3817
+ intro: string[];
3818
+ topics: string[];
3819
+ signoff?: string | undefined;
3820
+ } | undefined;
3821
+ recordingUrl?: string | undefined;
3822
+ recordingThumbnailUrl?: string | undefined;
3745
3823
  recordingDurationSeconds?: number | undefined;
3746
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
+ }>;
3747
3841
  declare const CreateShredUSessionSchema: z.ZodObject<{
3748
3842
  topic: z.ZodString;
3749
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
+ }>>;
3750
3860
  startsAt: z.ZodNumber;
3751
3861
  durationMin: z.ZodNumber;
3752
3862
  zoomUrl: z.ZodString;
@@ -3815,6 +3925,12 @@ declare const CreateShredUSessionSchema: z.ZodObject<{
3815
3925
  authorId?: string | undefined;
3816
3926
  uploadedAt?: number | undefined;
3817
3927
  }[] | undefined;
3928
+ brief?: {
3929
+ hook: string;
3930
+ intro: string[];
3931
+ topics: string[];
3932
+ signoff?: string | undefined;
3933
+ } | undefined;
3818
3934
  }, {
3819
3935
  timezone: string;
3820
3936
  description: string;
@@ -3837,10 +3953,32 @@ declare const CreateShredUSessionSchema: z.ZodObject<{
3837
3953
  authorId?: string | undefined;
3838
3954
  uploadedAt?: number | undefined;
3839
3955
  }[] | undefined;
3956
+ brief?: {
3957
+ hook: string;
3958
+ intro: string[];
3959
+ topics: string[];
3960
+ signoff?: string | undefined;
3961
+ } | undefined;
3840
3962
  }>;
3841
3963
  declare const UpdateShredUSessionSchema: z.ZodObject<{
3842
3964
  topic: z.ZodOptional<z.ZodString>;
3843
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
+ }>>;
3844
3982
  startsAt: z.ZodOptional<z.ZodNumber>;
3845
3983
  durationMin: z.ZodOptional<z.ZodNumber>;
3846
3984
  zoomUrl: z.ZodOptional<z.ZodString>;
@@ -3906,6 +4044,12 @@ declare const UpdateShredUSessionSchema: z.ZodObject<{
3906
4044
  uploadedAt?: number | undefined;
3907
4045
  }[] | undefined;
3908
4046
  topic?: string | undefined;
4047
+ brief?: {
4048
+ hook: string;
4049
+ intro: string[];
4050
+ topics: string[];
4051
+ signoff?: string | undefined;
4052
+ } | undefined;
3909
4053
  startsAt?: number | undefined;
3910
4054
  durationMin?: number | undefined;
3911
4055
  zoomUrl?: string | undefined;
@@ -3928,21 +4072,31 @@ declare const UpdateShredUSessionSchema: z.ZodObject<{
3928
4072
  uploadedAt?: number | undefined;
3929
4073
  }[] | undefined;
3930
4074
  topic?: string | undefined;
4075
+ brief?: {
4076
+ hook: string;
4077
+ intro: string[];
4078
+ topics: string[];
4079
+ signoff?: string | undefined;
4080
+ } | undefined;
3931
4081
  startsAt?: number | undefined;
3932
4082
  durationMin?: number | undefined;
3933
4083
  zoomUrl?: string | undefined;
3934
4084
  }>;
3935
4085
  declare const SetShredUSessionRecordingSchema: z.ZodObject<{
3936
- recordingId: z.ZodString;
4086
+ recordingUrl: z.ZodString;
4087
+ recordingThumbnailUrl: z.ZodOptional<z.ZodString>;
3937
4088
  recordingDurationSeconds: z.ZodNumber;
3938
4089
  }, "strip", z.ZodTypeAny, {
3939
- recordingId: string;
4090
+ recordingUrl: string;
3940
4091
  recordingDurationSeconds: number;
4092
+ recordingThumbnailUrl?: string | undefined;
3941
4093
  }, {
3942
- recordingId: string;
4094
+ recordingUrl: string;
3943
4095
  recordingDurationSeconds: number;
4096
+ recordingThumbnailUrl?: string | undefined;
3944
4097
  }>;
3945
4098
  type SessionAsset = z.infer<typeof SessionAssetSchema>;
4099
+ type Brief = z.infer<typeof ShredUBriefSchema>;
3946
4100
  type ShredUSessionStatus = z.infer<typeof ShredUSessionStatusSchema>;
3947
4101
  type ShredUSession = z.infer<typeof ShredUSessionSchema>;
3948
4102
  type ShredUSessionCustomer = z.infer<typeof ShredUSessionCustomerSchema>;
@@ -3995,12 +4149,15 @@ declare const Endpoints$1: {
3995
4149
  };
3996
4150
  };
3997
4151
 
4152
+ type index$3_Brief = Brief;
3998
4153
  type index$3_Create = Create;
4154
+ declare const index$3_CreateShredUBriefSchema: typeof CreateShredUBriefSchema;
3999
4155
  declare const index$3_CreateShredUSessionSchema: typeof CreateShredUSessionSchema;
4000
4156
  type index$3_SessionAsset = SessionAsset;
4001
4157
  declare const index$3_SessionAssetSchema: typeof SessionAssetSchema;
4002
4158
  type index$3_SetRecording = SetRecording;
4003
4159
  declare const index$3_SetShredUSessionRecordingSchema: typeof SetShredUSessionRecordingSchema;
4160
+ declare const index$3_ShredUBriefSchema: typeof ShredUBriefSchema;
4004
4161
  type index$3_ShredUSessionCustomer = ShredUSessionCustomer;
4005
4162
  declare const index$3_ShredUSessionCustomerSchema: typeof ShredUSessionCustomerSchema;
4006
4163
  declare const index$3_ShredUSessionSchema: typeof ShredUSessionSchema;
@@ -4009,7 +4166,7 @@ declare const index$3_ShredUSessionStatusSchema: typeof ShredUSessionStatusSchem
4009
4166
  type index$3_Update = Update;
4010
4167
  declare const index$3_UpdateShredUSessionSchema: typeof UpdateShredUSessionSchema;
4011
4168
  declare namespace index$3 {
4012
- 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 };
4169
+ 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_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 };
4013
4170
  }
4014
4171
 
4015
4172
  /**
package/dist/index.js CHANGED
@@ -6102,15 +6102,23 @@ var SessionAssetSchema = AssetSchema.extend({
6102
6102
  uploadedAt: external_exports.number().optional()
6103
6103
  });
6104
6104
  var ShredUSessionStatusSchema = external_exports.enum(["scheduled", "cancelled"]);
6105
+ var ShredUBriefSchema = external_exports.object({
6106
+ hook: external_exports.string(),
6107
+ intro: external_exports.array(external_exports.string()),
6108
+ topics: external_exports.array(external_exports.string()),
6109
+ signoff: external_exports.string().optional()
6110
+ });
6105
6111
  var ShredUSessionSchema = external_exports.object({
6106
6112
  id: external_exports.string(),
6107
6113
  topic: external_exports.string(),
6108
6114
  description: external_exports.string(),
6115
+ brief: ShredUBriefSchema.optional(),
6109
6116
  startsAt: external_exports.number(),
6110
6117
  durationMin: external_exports.number(),
6111
6118
  zoomUrl: external_exports.string(),
6112
6119
  status: ShredUSessionStatusSchema,
6113
- recordingId: external_exports.string().optional(),
6120
+ recordingUrl: external_exports.string().optional(),
6121
+ recordingThumbnailUrl: external_exports.string().optional(),
6114
6122
  recordingDurationSeconds: external_exports.number().optional(),
6115
6123
  assets: external_exports.array(SessionAssetSchema).optional(),
6116
6124
  tenantIds: external_exports.array(external_exports.string()),
@@ -6121,9 +6129,16 @@ var ShredUSessionCustomerSchema = ShredUSessionSchema.omit({
6121
6129
  tenantIds: true,
6122
6130
  timezone: true
6123
6131
  });
6132
+ var CreateShredUBriefSchema = external_exports.object({
6133
+ hook: external_exports.string().min(1),
6134
+ intro: external_exports.array(external_exports.string().min(1)),
6135
+ topics: external_exports.array(external_exports.string().min(1)),
6136
+ signoff: external_exports.string().min(1).optional()
6137
+ });
6124
6138
  var CreateShredUSessionSchema = external_exports.object({
6125
6139
  topic: external_exports.string().min(1),
6126
6140
  description: external_exports.string().min(1),
6141
+ brief: CreateShredUBriefSchema.optional(),
6127
6142
  startsAt: external_exports.number().int().positive(),
6128
6143
  durationMin: external_exports.number().int().positive(),
6129
6144
  zoomUrl: external_exports.string().url(),
@@ -6134,6 +6149,7 @@ var CreateShredUSessionSchema = external_exports.object({
6134
6149
  var UpdateShredUSessionSchema = external_exports.object({
6135
6150
  topic: external_exports.string().min(1).optional(),
6136
6151
  description: external_exports.string().min(1).optional(),
6152
+ brief: CreateShredUBriefSchema.optional(),
6137
6153
  startsAt: external_exports.number().int().positive().optional(),
6138
6154
  durationMin: external_exports.number().int().positive().optional(),
6139
6155
  zoomUrl: external_exports.string().url().optional(),
@@ -6142,7 +6158,8 @@ var UpdateShredUSessionSchema = external_exports.object({
6142
6158
  timezone: external_exports.string().min(1).optional()
6143
6159
  });
6144
6160
  var SetShredUSessionRecordingSchema = external_exports.object({
6145
- recordingId: external_exports.string().min(1),
6161
+ recordingUrl: external_exports.string().url(),
6162
+ recordingThumbnailUrl: external_exports.string().url().optional(),
6146
6163
  recordingDurationSeconds: external_exports.number().int().positive()
6147
6164
  });
6148
6165
 
@@ -6966,10 +6983,12 @@ __export(special_offer_exports, {
6966
6983
  // src/model/shredu/index.ts
6967
6984
  var shredu_exports = {};
6968
6985
  __export(shredu_exports, {
6986
+ CreateShredUBriefSchema: () => CreateShredUBriefSchema,
6969
6987
  CreateShredUSessionSchema: () => CreateShredUSessionSchema,
6970
6988
  Endpoints: () => Endpoints9,
6971
6989
  SessionAssetSchema: () => SessionAssetSchema,
6972
6990
  SetShredUSessionRecordingSchema: () => SetShredUSessionRecordingSchema,
6991
+ ShredUBriefSchema: () => ShredUBriefSchema,
6973
6992
  ShredUSessionCustomerSchema: () => ShredUSessionCustomerSchema,
6974
6993
  ShredUSessionSchema: () => ShredUSessionSchema,
6975
6994
  ShredUSessionStatusSchema: () => ShredUSessionStatusSchema,