shred-api-client 2.11.1 → 2.11.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 +61 -2
- package/dist/index.js +19 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3639,6 +3639,7 @@ declare const ShredUSessionSchema: z.ZodObject<{
|
|
|
3639
3639
|
}>, "many">>;
|
|
3640
3640
|
tenantIds: z.ZodArray<z.ZodString, "many">;
|
|
3641
3641
|
timezone: z.ZodString;
|
|
3642
|
+
reminderLeadMs: z.ZodOptional<z.ZodNumber>;
|
|
3642
3643
|
}, "strip", z.ZodTypeAny, {
|
|
3643
3644
|
id: string;
|
|
3644
3645
|
status: "scheduled" | "cancelled";
|
|
@@ -3672,6 +3673,7 @@ declare const ShredUSessionSchema: z.ZodObject<{
|
|
|
3672
3673
|
recordingUrl?: string | undefined;
|
|
3673
3674
|
recordingThumbnailUrl?: string | undefined;
|
|
3674
3675
|
recordingDurationSeconds?: number | undefined;
|
|
3676
|
+
reminderLeadMs?: number | undefined;
|
|
3675
3677
|
}, {
|
|
3676
3678
|
id: string;
|
|
3677
3679
|
status: "scheduled" | "cancelled";
|
|
@@ -3705,6 +3707,7 @@ declare const ShredUSessionSchema: z.ZodObject<{
|
|
|
3705
3707
|
recordingUrl?: string | undefined;
|
|
3706
3708
|
recordingThumbnailUrl?: string | undefined;
|
|
3707
3709
|
recordingDurationSeconds?: number | undefined;
|
|
3710
|
+
reminderLeadMs?: number | undefined;
|
|
3708
3711
|
}>;
|
|
3709
3712
|
/** Subscriber-facing endpoints answer without the Zoom link, who else it is for, or the hub's authoring zone. */
|
|
3710
3713
|
declare const ShredUSessionCustomerSchema: z.ZodObject<Omit<{
|
|
@@ -3777,7 +3780,8 @@ declare const ShredUSessionCustomerSchema: z.ZodObject<Omit<{
|
|
|
3777
3780
|
}>, "many">>;
|
|
3778
3781
|
tenantIds: z.ZodArray<z.ZodString, "many">;
|
|
3779
3782
|
timezone: z.ZodString;
|
|
3780
|
-
|
|
3783
|
+
reminderLeadMs: z.ZodOptional<z.ZodNumber>;
|
|
3784
|
+
}, "timezone" | "tenantIds" | "zoomUrl" | "reminderLeadMs">, "strip", z.ZodTypeAny, {
|
|
3781
3785
|
id: string;
|
|
3782
3786
|
status: "scheduled" | "cancelled";
|
|
3783
3787
|
description: string;
|
|
@@ -3919,6 +3923,7 @@ declare const CreateShredUSessionSchema: z.ZodObject<{
|
|
|
3919
3923
|
}>, "many">>;
|
|
3920
3924
|
tenantIds: z.ZodArray<z.ZodString, "many">;
|
|
3921
3925
|
timezone: z.ZodString;
|
|
3926
|
+
reminderLeadMs: z.ZodOptional<z.ZodNumber>;
|
|
3922
3927
|
}, "strip", z.ZodTypeAny, {
|
|
3923
3928
|
timezone: string;
|
|
3924
3929
|
description: string;
|
|
@@ -3947,6 +3952,7 @@ declare const CreateShredUSessionSchema: z.ZodObject<{
|
|
|
3947
3952
|
topics: string[];
|
|
3948
3953
|
signoff?: string | undefined;
|
|
3949
3954
|
} | undefined;
|
|
3955
|
+
reminderLeadMs?: number | undefined;
|
|
3950
3956
|
}, {
|
|
3951
3957
|
timezone: string;
|
|
3952
3958
|
description: string;
|
|
@@ -3975,6 +3981,7 @@ declare const CreateShredUSessionSchema: z.ZodObject<{
|
|
|
3975
3981
|
topics: string[];
|
|
3976
3982
|
signoff?: string | undefined;
|
|
3977
3983
|
} | undefined;
|
|
3984
|
+
reminderLeadMs?: number | undefined;
|
|
3978
3985
|
}>;
|
|
3979
3986
|
declare const UpdateShredUSessionSchema: z.ZodObject<{
|
|
3980
3987
|
topic: z.ZodOptional<z.ZodString>;
|
|
@@ -4041,6 +4048,7 @@ declare const UpdateShredUSessionSchema: z.ZodObject<{
|
|
|
4041
4048
|
}>, "many">>;
|
|
4042
4049
|
tenantIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4043
4050
|
timezone: z.ZodOptional<z.ZodString>;
|
|
4051
|
+
reminderLeadMs: z.ZodOptional<z.ZodNumber>;
|
|
4044
4052
|
}, "strip", z.ZodTypeAny, {
|
|
4045
4053
|
timezone?: string | undefined;
|
|
4046
4054
|
description?: string | undefined;
|
|
@@ -4069,6 +4077,7 @@ declare const UpdateShredUSessionSchema: z.ZodObject<{
|
|
|
4069
4077
|
startsAt?: number | undefined;
|
|
4070
4078
|
durationMin?: number | undefined;
|
|
4071
4079
|
zoomUrl?: string | undefined;
|
|
4080
|
+
reminderLeadMs?: number | undefined;
|
|
4072
4081
|
}, {
|
|
4073
4082
|
timezone?: string | undefined;
|
|
4074
4083
|
description?: string | undefined;
|
|
@@ -4097,6 +4106,7 @@ declare const UpdateShredUSessionSchema: z.ZodObject<{
|
|
|
4097
4106
|
startsAt?: number | undefined;
|
|
4098
4107
|
durationMin?: number | undefined;
|
|
4099
4108
|
zoomUrl?: string | undefined;
|
|
4109
|
+
reminderLeadMs?: number | undefined;
|
|
4100
4110
|
}>;
|
|
4101
4111
|
declare const PreviewShredUEmailSchema: z.ZodObject<{
|
|
4102
4112
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
@@ -4182,6 +4192,23 @@ declare const ShredUStageRuleSchema: z.ZodObject<{
|
|
|
4182
4192
|
leadMs: number;
|
|
4183
4193
|
transport: TransportType;
|
|
4184
4194
|
}>;
|
|
4195
|
+
declare const ShredUReminderBoundsSchema: z.ZodObject<{
|
|
4196
|
+
/** Which stage in `stages` a session's own lead replaces. */
|
|
4197
|
+
stageId: z.ZodString;
|
|
4198
|
+
defaultLeadMs: z.ZodNumber;
|
|
4199
|
+
minLeadMs: z.ZodNumber;
|
|
4200
|
+
maxLeadMs: z.ZodNumber;
|
|
4201
|
+
}, "strip", z.ZodTypeAny, {
|
|
4202
|
+
stageId: string;
|
|
4203
|
+
defaultLeadMs: number;
|
|
4204
|
+
minLeadMs: number;
|
|
4205
|
+
maxLeadMs: number;
|
|
4206
|
+
}, {
|
|
4207
|
+
stageId: string;
|
|
4208
|
+
defaultLeadMs: number;
|
|
4209
|
+
minLeadMs: number;
|
|
4210
|
+
maxLeadMs: number;
|
|
4211
|
+
}>;
|
|
4185
4212
|
declare const ShredUDispatchRulesSchema: z.ZodObject<{
|
|
4186
4213
|
/** Furthest ahead first, the order they fire in. */
|
|
4187
4214
|
stages: z.ZodArray<z.ZodObject<{
|
|
@@ -4201,6 +4228,23 @@ declare const ShredUDispatchRulesSchema: z.ZodObject<{
|
|
|
4201
4228
|
leadMs: number;
|
|
4202
4229
|
transport: TransportType;
|
|
4203
4230
|
}>, "many">;
|
|
4231
|
+
reminder: z.ZodObject<{
|
|
4232
|
+
/** Which stage in `stages` a session's own lead replaces. */
|
|
4233
|
+
stageId: z.ZodString;
|
|
4234
|
+
defaultLeadMs: z.ZodNumber;
|
|
4235
|
+
minLeadMs: z.ZodNumber;
|
|
4236
|
+
maxLeadMs: z.ZodNumber;
|
|
4237
|
+
}, "strip", z.ZodTypeAny, {
|
|
4238
|
+
stageId: string;
|
|
4239
|
+
defaultLeadMs: number;
|
|
4240
|
+
minLeadMs: number;
|
|
4241
|
+
maxLeadMs: number;
|
|
4242
|
+
}, {
|
|
4243
|
+
stageId: string;
|
|
4244
|
+
defaultLeadMs: number;
|
|
4245
|
+
minLeadMs: number;
|
|
4246
|
+
maxLeadMs: number;
|
|
4247
|
+
}>;
|
|
4204
4248
|
}, "strip", z.ZodTypeAny, {
|
|
4205
4249
|
stages: {
|
|
4206
4250
|
id: string;
|
|
@@ -4208,6 +4252,12 @@ declare const ShredUDispatchRulesSchema: z.ZodObject<{
|
|
|
4208
4252
|
leadMs: number;
|
|
4209
4253
|
transport: TransportType;
|
|
4210
4254
|
}[];
|
|
4255
|
+
reminder: {
|
|
4256
|
+
stageId: string;
|
|
4257
|
+
defaultLeadMs: number;
|
|
4258
|
+
minLeadMs: number;
|
|
4259
|
+
maxLeadMs: number;
|
|
4260
|
+
};
|
|
4211
4261
|
}, {
|
|
4212
4262
|
stages: {
|
|
4213
4263
|
id: string;
|
|
@@ -4215,9 +4265,16 @@ declare const ShredUDispatchRulesSchema: z.ZodObject<{
|
|
|
4215
4265
|
leadMs: number;
|
|
4216
4266
|
transport: TransportType;
|
|
4217
4267
|
}[];
|
|
4268
|
+
reminder: {
|
|
4269
|
+
stageId: string;
|
|
4270
|
+
defaultLeadMs: number;
|
|
4271
|
+
minLeadMs: number;
|
|
4272
|
+
maxLeadMs: number;
|
|
4273
|
+
};
|
|
4218
4274
|
}>;
|
|
4219
4275
|
type SessionAsset = z.infer<typeof SessionAssetSchema>;
|
|
4220
4276
|
type ShredUStageRule = z.infer<typeof ShredUStageRuleSchema>;
|
|
4277
|
+
type ShredUReminderBounds = z.infer<typeof ShredUReminderBoundsSchema>;
|
|
4221
4278
|
type ShredUDispatchRules = z.infer<typeof ShredUDispatchRulesSchema>;
|
|
4222
4279
|
type Brief = z.infer<typeof ShredUBriefSchema>;
|
|
4223
4280
|
type ShredUSessionStatus = z.infer<typeof ShredUSessionStatusSchema>;
|
|
@@ -4305,6 +4362,8 @@ declare const index$4_ShredUBriefSchema: typeof ShredUBriefSchema;
|
|
|
4305
4362
|
type index$4_ShredUDispatchRules = ShredUDispatchRules;
|
|
4306
4363
|
declare const index$4_ShredUDispatchRulesSchema: typeof ShredUDispatchRulesSchema;
|
|
4307
4364
|
declare const index$4_ShredUJoinSchema: typeof ShredUJoinSchema;
|
|
4365
|
+
type index$4_ShredUReminderBounds = ShredUReminderBounds;
|
|
4366
|
+
declare const index$4_ShredUReminderBoundsSchema: typeof ShredUReminderBoundsSchema;
|
|
4308
4367
|
type index$4_ShredUSessionCustomer = ShredUSessionCustomer;
|
|
4309
4368
|
declare const index$4_ShredUSessionCustomerSchema: typeof ShredUSessionCustomerSchema;
|
|
4310
4369
|
declare const index$4_ShredUSessionSchema: typeof ShredUSessionSchema;
|
|
@@ -4315,7 +4374,7 @@ declare const index$4_ShredUStageRuleSchema: typeof ShredUStageRuleSchema;
|
|
|
4315
4374
|
type index$4_Update = Update;
|
|
4316
4375
|
declare const index$4_UpdateShredUSessionSchema: typeof UpdateShredUSessionSchema;
|
|
4317
4376
|
declare namespace index$4 {
|
|
4318
|
-
export { type index$4_Brief as Brief, type index$4_Create as Create, index$4_CreateShredUBriefSchema as CreateShredUBriefSchema, index$4_CreateShredUSessionSchema as CreateShredUSessionSchema, Endpoints$2 as Endpoints, type ShredUSession as Entity, type IAPI$2 as IAPI, type index$4_Join as Join, type index$4_PreviewEmail as PreviewEmail, index$4_PreviewShredUEmailSchema as PreviewShredUEmailSchema, type index$4_SessionAsset as SessionAsset, index$4_SessionAssetSchema as SessionAssetSchema, type index$4_SetRecording as SetRecording, index$4_SetShredUSessionRecordingSchema as SetShredUSessionRecordingSchema, index$4_ShredUBriefSchema as ShredUBriefSchema, type index$4_ShredUDispatchRules as ShredUDispatchRules, index$4_ShredUDispatchRulesSchema as ShredUDispatchRulesSchema, index$4_ShredUJoinSchema as ShredUJoinSchema, type index$4_ShredUSessionCustomer as ShredUSessionCustomer, index$4_ShredUSessionCustomerSchema as ShredUSessionCustomerSchema, index$4_ShredUSessionSchema as ShredUSessionSchema, type index$4_ShredUSessionStatus as ShredUSessionStatus, index$4_ShredUSessionStatusSchema as ShredUSessionStatusSchema, type index$4_ShredUStageRule as ShredUStageRule, index$4_ShredUStageRuleSchema as ShredUStageRuleSchema, type index$4_Update as Update, index$4_UpdateShredUSessionSchema as UpdateShredUSessionSchema };
|
|
4377
|
+
export { type index$4_Brief as Brief, type index$4_Create as Create, index$4_CreateShredUBriefSchema as CreateShredUBriefSchema, index$4_CreateShredUSessionSchema as CreateShredUSessionSchema, Endpoints$2 as Endpoints, type ShredUSession as Entity, type IAPI$2 as IAPI, type index$4_Join as Join, type index$4_PreviewEmail as PreviewEmail, index$4_PreviewShredUEmailSchema as PreviewShredUEmailSchema, type index$4_SessionAsset as SessionAsset, index$4_SessionAssetSchema as SessionAssetSchema, type index$4_SetRecording as SetRecording, index$4_SetShredUSessionRecordingSchema as SetShredUSessionRecordingSchema, index$4_ShredUBriefSchema as ShredUBriefSchema, type index$4_ShredUDispatchRules as ShredUDispatchRules, index$4_ShredUDispatchRulesSchema as ShredUDispatchRulesSchema, index$4_ShredUJoinSchema as ShredUJoinSchema, type index$4_ShredUReminderBounds as ShredUReminderBounds, index$4_ShredUReminderBoundsSchema as ShredUReminderBoundsSchema, type index$4_ShredUSessionCustomer as ShredUSessionCustomer, index$4_ShredUSessionCustomerSchema as ShredUSessionCustomerSchema, index$4_ShredUSessionSchema as ShredUSessionSchema, type index$4_ShredUSessionStatus as ShredUSessionStatus, index$4_ShredUSessionStatusSchema as ShredUSessionStatusSchema, type index$4_ShredUStageRule as ShredUStageRule, index$4_ShredUStageRuleSchema as ShredUStageRuleSchema, type index$4_Update as Update, index$4_UpdateShredUSessionSchema as UpdateShredUSessionSchema };
|
|
4319
4378
|
}
|
|
4320
4379
|
|
|
4321
4380
|
/** The metrics served today. The list grows, so it never gates parsing — see ScoreMetricSchema. */
|
package/dist/index.js
CHANGED
|
@@ -6150,13 +6150,16 @@ var ShredUSessionSchema = external_exports.object({
|
|
|
6150
6150
|
recordingDurationSeconds: external_exports.number().optional(),
|
|
6151
6151
|
assets: external_exports.array(SessionAssetSchema).optional(),
|
|
6152
6152
|
tenantIds: external_exports.array(external_exports.string()),
|
|
6153
|
-
timezone: external_exports.string()
|
|
6153
|
+
timezone: external_exports.string(),
|
|
6154
|
+
reminderLeadMs: external_exports.number().optional()
|
|
6154
6155
|
});
|
|
6155
6156
|
var ShredUSessionCustomerSchema = ShredUSessionSchema.omit({
|
|
6156
6157
|
zoomUrl: true,
|
|
6157
6158
|
tenantIds: true,
|
|
6158
|
-
timezone: true
|
|
6159
|
+
timezone: true,
|
|
6160
|
+
reminderLeadMs: true
|
|
6159
6161
|
});
|
|
6162
|
+
var ReminderLeadSchema = external_exports.number().int().nonnegative();
|
|
6160
6163
|
var CreateShredUBriefSchema = external_exports.object({
|
|
6161
6164
|
hook: external_exports.string().min(1),
|
|
6162
6165
|
intro: external_exports.array(external_exports.string().min(1)),
|
|
@@ -6172,7 +6175,8 @@ var CreateShredUSessionSchema = external_exports.object({
|
|
|
6172
6175
|
zoomUrl: external_exports.string().url(),
|
|
6173
6176
|
assets: external_exports.array(SessionAssetSchema).optional(),
|
|
6174
6177
|
tenantIds: external_exports.array(external_exports.string().min(1)),
|
|
6175
|
-
timezone: external_exports.string().min(1)
|
|
6178
|
+
timezone: external_exports.string().min(1),
|
|
6179
|
+
reminderLeadMs: ReminderLeadSchema.optional()
|
|
6176
6180
|
});
|
|
6177
6181
|
var UpdateShredUSessionSchema = external_exports.object({
|
|
6178
6182
|
topic: external_exports.string().min(1).optional(),
|
|
@@ -6183,7 +6187,8 @@ var UpdateShredUSessionSchema = external_exports.object({
|
|
|
6183
6187
|
zoomUrl: external_exports.string().url().optional(),
|
|
6184
6188
|
assets: external_exports.array(SessionAssetSchema).optional(),
|
|
6185
6189
|
tenantIds: external_exports.array(external_exports.string().min(1)).optional(),
|
|
6186
|
-
timezone: external_exports.string().min(1).optional()
|
|
6190
|
+
timezone: external_exports.string().min(1).optional(),
|
|
6191
|
+
reminderLeadMs: ReminderLeadSchema.optional()
|
|
6187
6192
|
});
|
|
6188
6193
|
var PreviewShredUEmailSchema = external_exports.object({
|
|
6189
6194
|
sessionId: external_exports.string().min(1).optional(),
|
|
@@ -6208,9 +6213,17 @@ var ShredUStageRuleSchema = external_exports.object({
|
|
|
6208
6213
|
leadMs: external_exports.number(),
|
|
6209
6214
|
transport: external_exports.nativeEnum(TransportType)
|
|
6210
6215
|
});
|
|
6216
|
+
var ShredUReminderBoundsSchema = external_exports.object({
|
|
6217
|
+
/** Which stage in `stages` a session's own lead replaces. */
|
|
6218
|
+
stageId: external_exports.string(),
|
|
6219
|
+
defaultLeadMs: external_exports.number(),
|
|
6220
|
+
minLeadMs: external_exports.number(),
|
|
6221
|
+
maxLeadMs: external_exports.number()
|
|
6222
|
+
});
|
|
6211
6223
|
var ShredUDispatchRulesSchema = external_exports.object({
|
|
6212
6224
|
/** Furthest ahead first, the order they fire in. */
|
|
6213
|
-
stages: external_exports.array(ShredUStageRuleSchema)
|
|
6225
|
+
stages: external_exports.array(ShredUStageRuleSchema),
|
|
6226
|
+
reminder: ShredUReminderBoundsSchema
|
|
6214
6227
|
});
|
|
6215
6228
|
|
|
6216
6229
|
// src/api/ShredU.api.ts
|
|
@@ -7134,6 +7147,7 @@ __export(shredu_exports, {
|
|
|
7134
7147
|
ShredUBriefSchema: () => ShredUBriefSchema,
|
|
7135
7148
|
ShredUDispatchRulesSchema: () => ShredUDispatchRulesSchema,
|
|
7136
7149
|
ShredUJoinSchema: () => ShredUJoinSchema,
|
|
7150
|
+
ShredUReminderBoundsSchema: () => ShredUReminderBoundsSchema,
|
|
7137
7151
|
ShredUSessionCustomerSchema: () => ShredUSessionCustomerSchema,
|
|
7138
7152
|
ShredUSessionSchema: () => ShredUSessionSchema,
|
|
7139
7153
|
ShredUSessionStatusSchema: () => ShredUSessionStatusSchema,
|