shred-api-client 2.10.5 → 2.10.6

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
@@ -4145,6 +4145,13 @@ declare const PreviewShredUEmailSchema: z.ZodObject<{
4145
4145
  } | undefined;
4146
4146
  sessionId?: string | undefined;
4147
4147
  }>;
4148
+ declare const ShredUJoinSchema: z.ZodObject<{
4149
+ url: z.ZodString;
4150
+ }, "strip", z.ZodTypeAny, {
4151
+ url: string;
4152
+ }, {
4153
+ url: string;
4154
+ }>;
4148
4155
  declare const SetShredUSessionRecordingSchema: z.ZodObject<{
4149
4156
  recordingUrl: z.ZodString;
4150
4157
  recordingThumbnailUrl: z.ZodOptional<z.ZodString>;
@@ -4163,6 +4170,7 @@ type Brief = z.infer<typeof ShredUBriefSchema>;
4163
4170
  type ShredUSessionStatus = z.infer<typeof ShredUSessionStatusSchema>;
4164
4171
  type ShredUSession = z.infer<typeof ShredUSessionSchema>;
4165
4172
  type ShredUSessionCustomer = z.infer<typeof ShredUSessionCustomerSchema>;
4173
+ type Join = z.infer<typeof ShredUJoinSchema>;
4166
4174
  type Create = z.infer<typeof CreateShredUSessionSchema>;
4167
4175
  type Update = z.infer<typeof UpdateShredUSessionSchema>;
4168
4176
  type SetRecording = z.infer<typeof SetShredUSessionRecordingSchema>;
@@ -4173,6 +4181,7 @@ interface IAPI$1 {
4173
4181
  getUpcoming: (ctx: Context) => Promise<ShredUSessionCustomer[]>;
4174
4182
  getLibrary: (ctx: Context) => Promise<ShredUSessionCustomer[]>;
4175
4183
  get: (ctx: Context, id: string) => Promise<ShredUSessionCustomer>;
4184
+ join: (ctx: Context, id: string) => Promise<Join>;
4176
4185
  create: (ctx: Context, data: Create) => Promise<ShredUSession>;
4177
4186
  update: (ctx: Context, id: string, data: Update) => Promise<void>;
4178
4187
  cancel: (ctx: Context, id: string) => Promise<void>;
@@ -4196,6 +4205,10 @@ declare const Endpoints$1: {
4196
4205
  uri: string;
4197
4206
  method: string;
4198
4207
  };
4208
+ Join: {
4209
+ uri: string;
4210
+ method: string;
4211
+ };
4199
4212
  Create: {
4200
4213
  uri: string;
4201
4214
  method: string;
@@ -4222,6 +4235,7 @@ type index$3_Brief = Brief;
4222
4235
  type index$3_Create = Create;
4223
4236
  declare const index$3_CreateShredUBriefSchema: typeof CreateShredUBriefSchema;
4224
4237
  declare const index$3_CreateShredUSessionSchema: typeof CreateShredUSessionSchema;
4238
+ type index$3_Join = Join;
4225
4239
  type index$3_PreviewEmail = PreviewEmail;
4226
4240
  declare const index$3_PreviewShredUEmailSchema: typeof PreviewShredUEmailSchema;
4227
4241
  type index$3_SessionAsset = SessionAsset;
@@ -4229,6 +4243,7 @@ declare const index$3_SessionAssetSchema: typeof SessionAssetSchema;
4229
4243
  type index$3_SetRecording = SetRecording;
4230
4244
  declare const index$3_SetShredUSessionRecordingSchema: typeof SetShredUSessionRecordingSchema;
4231
4245
  declare const index$3_ShredUBriefSchema: typeof ShredUBriefSchema;
4246
+ declare const index$3_ShredUJoinSchema: typeof ShredUJoinSchema;
4232
4247
  type index$3_ShredUSessionCustomer = ShredUSessionCustomer;
4233
4248
  declare const index$3_ShredUSessionCustomerSchema: typeof ShredUSessionCustomerSchema;
4234
4249
  declare const index$3_ShredUSessionSchema: typeof ShredUSessionSchema;
@@ -4237,7 +4252,7 @@ declare const index$3_ShredUSessionStatusSchema: typeof ShredUSessionStatusSchem
4237
4252
  type index$3_Update = Update;
4238
4253
  declare const index$3_UpdateShredUSessionSchema: typeof UpdateShredUSessionSchema;
4239
4254
  declare namespace index$3 {
4240
- 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 };
4255
+ 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_Join as Join, 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, index$3_ShredUJoinSchema as ShredUJoinSchema, 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 };
4241
4256
  }
4242
4257
 
4243
4258
  /**
package/dist/index.js CHANGED
@@ -6090,6 +6090,10 @@ var Endpoints9 = {
6090
6090
  uri: "/shredu/sessions/:id",
6091
6091
  method: "GET"
6092
6092
  },
6093
+ Join: {
6094
+ uri: "/shredu/sessions/:id/join",
6095
+ method: "POST"
6096
+ },
6093
6097
  Create: {
6094
6098
  uri: "/shredu/sessions",
6095
6099
  method: "POST"
@@ -6184,6 +6188,9 @@ var PreviewShredUEmailSchema = external_exports.object({
6184
6188
  timezone: external_exports.string().min(1),
6185
6189
  brief: CreateShredUBriefSchema.optional()
6186
6190
  });
6191
+ var ShredUJoinSchema = external_exports.object({
6192
+ url: external_exports.string()
6193
+ });
6187
6194
  var SetShredUSessionRecordingSchema = external_exports.object({
6188
6195
  recordingUrl: external_exports.string().url(),
6189
6196
  recordingThumbnailUrl: external_exports.string().url().optional(),
@@ -6212,6 +6219,10 @@ var ShredUAPI = class {
6212
6219
  const { uri, method } = Endpoints9.Get;
6213
6220
  return this.clientHTTP.makeRequest(this.env, uri.replace(":id", id), method, null, ctx, ShredUSessionCustomerSchema);
6214
6221
  }
6222
+ async join(ctx, id) {
6223
+ const { uri, method } = Endpoints9.Join;
6224
+ return this.clientHTTP.makeRequest(this.env, uri.replace(":id", id), method, null, ctx, ShredUJoinSchema);
6225
+ }
6215
6226
  async create(ctx, data) {
6216
6227
  const { uri, method } = Endpoints9.Create;
6217
6228
  return this.clientHTTP.makeRequest(this.env, uri, method, data, ctx, ShredUSessionSchema);
@@ -7023,6 +7034,7 @@ __export(shredu_exports, {
7023
7034
  SessionAssetSchema: () => SessionAssetSchema,
7024
7035
  SetShredUSessionRecordingSchema: () => SetShredUSessionRecordingSchema,
7025
7036
  ShredUBriefSchema: () => ShredUBriefSchema,
7037
+ ShredUJoinSchema: () => ShredUJoinSchema,
7026
7038
  ShredUSessionCustomerSchema: () => ShredUSessionCustomerSchema,
7027
7039
  ShredUSessionSchema: () => ShredUSessionSchema,
7028
7040
  ShredUSessionStatusSchema: () => ShredUSessionStatusSchema,