shred-api-client 2.10.3 → 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 CHANGED
@@ -4082,6 +4082,53 @@ declare const UpdateShredUSessionSchema: z.ZodObject<{
4082
4082
  durationMin?: number | undefined;
4083
4083
  zoomUrl?: string | undefined;
4084
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
+ }>;
4085
4132
  declare const SetShredUSessionRecordingSchema: z.ZodObject<{
4086
4133
  recordingUrl: z.ZodString;
4087
4134
  recordingThumbnailUrl: z.ZodOptional<z.ZodString>;
@@ -4103,6 +4150,7 @@ type ShredUSessionCustomer = z.infer<typeof ShredUSessionCustomerSchema>;
4103
4150
  type Create = z.infer<typeof CreateShredUSessionSchema>;
4104
4151
  type Update = z.infer<typeof UpdateShredUSessionSchema>;
4105
4152
  type SetRecording = z.infer<typeof SetShredUSessionRecordingSchema>;
4153
+ type PreviewEmail = z.infer<typeof PreviewShredUEmailSchema>;
4106
4154
 
4107
4155
  interface IAPI$1 {
4108
4156
  list: (ctx: Context) => Promise<ShredUSession[]>;
@@ -4113,6 +4161,7 @@ interface IAPI$1 {
4113
4161
  update: (ctx: Context, id: string, data: Update) => Promise<void>;
4114
4162
  cancel: (ctx: Context, id: string) => Promise<void>;
4115
4163
  setRecording: (ctx: Context, id: string, data: SetRecording) => Promise<void>;
4164
+ previewEmail: (ctx: Context, data: PreviewEmail) => Promise<void>;
4116
4165
  }
4117
4166
  declare const Endpoints$1: {
4118
4167
  List: {
@@ -4147,12 +4196,18 @@ declare const Endpoints$1: {
4147
4196
  uri: string;
4148
4197
  method: string;
4149
4198
  };
4199
+ PreviewEmail: {
4200
+ uri: string;
4201
+ method: string;
4202
+ };
4150
4203
  };
4151
4204
 
4152
4205
  type index$3_Brief = Brief;
4153
4206
  type index$3_Create = Create;
4154
4207
  declare const index$3_CreateShredUBriefSchema: typeof CreateShredUBriefSchema;
4155
4208
  declare const index$3_CreateShredUSessionSchema: typeof CreateShredUSessionSchema;
4209
+ type index$3_PreviewEmail = PreviewEmail;
4210
+ declare const index$3_PreviewShredUEmailSchema: typeof PreviewShredUEmailSchema;
4156
4211
  type index$3_SessionAsset = SessionAsset;
4157
4212
  declare const index$3_SessionAssetSchema: typeof SessionAssetSchema;
4158
4213
  type index$3_SetRecording = SetRecording;
@@ -4166,7 +4221,7 @@ declare const index$3_ShredUSessionStatusSchema: typeof ShredUSessionStatusSchem
4166
4221
  type index$3_Update = Update;
4167
4222
  declare const index$3_UpdateShredUSessionSchema: typeof UpdateShredUSessionSchema;
4168
4223
  declare namespace index$3 {
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 };
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 };
4170
4225
  }
4171
4226
 
4172
4227
  /**
@@ -4236,6 +4291,7 @@ declare const Actions: {
4236
4291
  readonly SHREDU_SESSION_UPDATE: "shredu.session.update";
4237
4292
  readonly SHREDU_SESSION_CANCEL: "shredu.session.cancel";
4238
4293
  readonly SHREDU_SESSION_SET_RECORDING: "shredu.session.set_recording";
4294
+ readonly SHREDU_SESSION_PREVIEW_EMAIL: "shredu.session.preview_email";
4239
4295
  readonly SUBSCRIPTION_VIEW_USER: "subscription.view_user";
4240
4296
  readonly SUBSCRIPTION_VIEW_SUMMARY: "subscription.view_summary";
4241
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
 
@@ -6157,6 +6161,14 @@ var UpdateShredUSessionSchema = external_exports.object({
6157
6161
  tenantIds: external_exports.array(external_exports.string().min(1)).optional(),
6158
6162
  timezone: external_exports.string().min(1).optional()
6159
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
+ });
6160
6172
  var SetShredUSessionRecordingSchema = external_exports.object({
6161
6173
  recordingUrl: external_exports.string().url(),
6162
6174
  recordingThumbnailUrl: external_exports.string().url().optional(),
@@ -6201,6 +6213,10 @@ var ShredUAPI = class {
6201
6213
  const { uri, method } = Endpoints9.SetRecording;
6202
6214
  await this.clientHTTP.makeRequest(this.env, uri.replace(":id", id), method, data, ctx);
6203
6215
  }
6216
+ async previewEmail(ctx, data) {
6217
+ const { uri, method } = Endpoints9.PreviewEmail;
6218
+ await this.clientHTTP.makeRequest(this.env, uri, method, data, ctx);
6219
+ }
6204
6220
  };
6205
6221
  var ShredU_api_default = ShredUAPI;
6206
6222
 
@@ -6286,6 +6302,7 @@ var Actions = {
6286
6302
  SHREDU_SESSION_UPDATE: "shredu.session.update",
6287
6303
  SHREDU_SESSION_CANCEL: "shredu.session.cancel",
6288
6304
  SHREDU_SESSION_SET_RECORDING: "shredu.session.set_recording",
6305
+ SHREDU_SESSION_PREVIEW_EMAIL: "shredu.session.preview_email",
6289
6306
  // — Subscriptions —
6290
6307
  SUBSCRIPTION_VIEW_USER: "subscription.view_user",
6291
6308
  SUBSCRIPTION_VIEW_SUMMARY: "subscription.view_summary",
@@ -6381,6 +6398,7 @@ var ActionCatalog = {
6381
6398
  [Actions.SHREDU_SESSION_UPDATE]: { label: "Update a ShredU session", group: "ShredU" },
6382
6399
  [Actions.SHREDU_SESSION_CANCEL]: { label: "Cancel a ShredU session", group: "ShredU" },
6383
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" },
6384
6402
  // Subscriptions
6385
6403
  [Actions.SUBSCRIPTION_VIEW_USER]: { label: "View a user's subscription", group: "Subscriptions" },
6386
6404
  [Actions.SUBSCRIPTION_VIEW_SUMMARY]: { label: "View a user's subscription summary", group: "Subscriptions" },
@@ -6986,6 +7004,7 @@ __export(shredu_exports, {
6986
7004
  CreateShredUBriefSchema: () => CreateShredUBriefSchema,
6987
7005
  CreateShredUSessionSchema: () => CreateShredUSessionSchema,
6988
7006
  Endpoints: () => Endpoints9,
7007
+ PreviewShredUEmailSchema: () => PreviewShredUEmailSchema,
6989
7008
  SessionAssetSchema: () => SessionAssetSchema,
6990
7009
  SetShredUSessionRecordingSchema: () => SetShredUSessionRecordingSchema,
6991
7010
  ShredUBriefSchema: () => ShredUBriefSchema,