@kl1/contracts 1.4.54 → 1.4.56

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.mjs CHANGED
@@ -1293,7 +1293,30 @@ var SendMessageSchema = z26.object({
1293
1293
  params: z26.object({
1294
1294
  actionType: FeedActionTypeSchema.optional(),
1295
1295
  mentions: z26.array(z26.string().uuid()).optional()
1296
- }).optional()
1296
+ }).optional(),
1297
+ messageOptions: z26.array(
1298
+ z26.object({
1299
+ label: z26.string(),
1300
+ value: z26.string(),
1301
+ button: z26.string().optional(),
1302
+ imageUrl: z26.string().optional(),
1303
+ postback: z26.string().optional()
1304
+ })
1305
+ ).optional(),
1306
+ messageTemplate: z26.array(
1307
+ z26.object({
1308
+ title: z26.string(),
1309
+ subtitle: z26.string(),
1310
+ imageUrl: z26.string(),
1311
+ actions: z26.array(
1312
+ z26.object({
1313
+ label: z26.string(),
1314
+ value: z26.string(),
1315
+ action: z26.string()
1316
+ })
1317
+ )
1318
+ })
1319
+ ).optional()
1297
1320
  });
1298
1321
  var InitiateMessageSchema = z26.object({
1299
1322
  platformContactId: z26.string().uuid().optional().nullable(),
@@ -2314,6 +2337,7 @@ var FacebookBusinessSchema = z39.object({
2314
2337
  // src/whatsapp/validation.ts
2315
2338
  import z40 from "zod";
2316
2339
  var TemplatesSchema = z40.object({
2340
+ id: z40.string(),
2317
2341
  category: z40.union([
2318
2342
  z40.literal("UTILITY"),
2319
2343
  z40.literal("MARKETING"),
@@ -8918,6 +8942,8 @@ var chatContract = initContract39().router(
8918
8942
  method: "POST",
8919
8943
  path: "/contact/tag",
8920
8944
  body: z110.object({
8945
+ workflowId: z110.string().uuid(),
8946
+ roomId: z110.string().uuid(),
8921
8947
  contactId: z110.string().uuid(),
8922
8948
  tagId: z110.string().uuid()
8923
8949
  }),
@@ -9324,33 +9350,33 @@ var KlinkChatContract = initContract44().router({
9324
9350
  500: DefaultErrorResponseSchema
9325
9351
  }
9326
9352
  },
9327
- // disconnect: {
9328
- // method: 'POST',
9329
- // path: '/disconnect',
9330
- // responses: {
9331
- // 200: ChannelServiceResponseSchema,
9332
- // 500: DefaultErrorResponseSchema,
9333
- // 400: DefaultErrorResponseSchema,
9334
- // },
9335
- // body: z.object({
9336
- // id: z.string().uuid(),
9337
- // }),
9338
- // summary: 'Disconnect telegram channel',
9339
- // },
9340
- // reconnect: {
9341
- // method: 'POST',
9342
- // path: '/reconnect/:channelId',
9343
- // pathParams: z.object({
9344
- // channelId: z.string().uuid(),
9345
- // }),
9346
- // body: null,
9347
- // responses: {
9348
- // 200: ChannelServiceResponseSchema,
9349
- // 500: DefaultErrorResponseSchema,
9350
- // 400: DefaultErrorResponseSchema,
9351
- // },
9352
- // summary: 'Reconnect telegram channel',
9353
- // },
9353
+ disconnect: {
9354
+ method: "POST",
9355
+ path: "/disconnect",
9356
+ responses: {
9357
+ 200: ChannelServiceResponseSchema,
9358
+ 500: DefaultErrorResponseSchema,
9359
+ 400: DefaultErrorResponseSchema
9360
+ },
9361
+ body: z118.object({
9362
+ id: z118.string().uuid()
9363
+ }),
9364
+ summary: "Disconnect klink chat channel"
9365
+ },
9366
+ reconnect: {
9367
+ method: "POST",
9368
+ path: "/reconnect/:channelId",
9369
+ pathParams: z118.object({
9370
+ channelId: z118.string().uuid()
9371
+ }),
9372
+ body: null,
9373
+ responses: {
9374
+ 200: ChannelServiceResponseSchema,
9375
+ 500: DefaultErrorResponseSchema,
9376
+ 400: DefaultErrorResponseSchema
9377
+ },
9378
+ summary: "Reconnect klink chat channel"
9379
+ },
9354
9380
  delete: {
9355
9381
  method: "DELETE",
9356
9382
  path: "/delete/:channelId",
@@ -9363,7 +9389,7 @@ var KlinkChatContract = initContract44().router({
9363
9389
  500: DefaultErrorResponseSchema,
9364
9390
  400: DefaultErrorResponseSchema
9365
9391
  },
9366
- summary: "Delete telegram channel"
9392
+ summary: "Delete klink chat channel"
9367
9393
  }
9368
9394
  });
9369
9395
 
@@ -9986,7 +10012,7 @@ var RoomContractsValidationSchema = {
9986
10012
  category: z126.union([z126.literal("contact"), z126.literal("message")])
9987
10013
  }).optional(),
9988
10014
  contactLabels: z126.array(z126.string()).optional(),
9989
- channels: z126.array(z126.string().email()).optional(),
10015
+ channels: z126.array(z126.string()).optional(),
9990
10016
  date: z126.string().optional(),
9991
10017
  contacts: z126.array(z126.string()).optional(),
9992
10018
  assignees: z126.array(z126.string()).optional(),