@kl1/contracts 1.4.55 → 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(),
@@ -8919,6 +8942,8 @@ var chatContract = initContract39().router(
8919
8942
  method: "POST",
8920
8943
  path: "/contact/tag",
8921
8944
  body: z110.object({
8945
+ workflowId: z110.string().uuid(),
8946
+ roomId: z110.string().uuid(),
8922
8947
  contactId: z110.string().uuid(),
8923
8948
  tagId: z110.string().uuid()
8924
8949
  }),
@@ -9325,33 +9350,33 @@ var KlinkChatContract = initContract44().router({
9325
9350
  500: DefaultErrorResponseSchema
9326
9351
  }
9327
9352
  },
9328
- // disconnect: {
9329
- // method: 'POST',
9330
- // path: '/disconnect',
9331
- // responses: {
9332
- // 200: ChannelServiceResponseSchema,
9333
- // 500: DefaultErrorResponseSchema,
9334
- // 400: DefaultErrorResponseSchema,
9335
- // },
9336
- // body: z.object({
9337
- // id: z.string().uuid(),
9338
- // }),
9339
- // summary: 'Disconnect telegram channel',
9340
- // },
9341
- // reconnect: {
9342
- // method: 'POST',
9343
- // path: '/reconnect/:channelId',
9344
- // pathParams: z.object({
9345
- // channelId: z.string().uuid(),
9346
- // }),
9347
- // body: null,
9348
- // responses: {
9349
- // 200: ChannelServiceResponseSchema,
9350
- // 500: DefaultErrorResponseSchema,
9351
- // 400: DefaultErrorResponseSchema,
9352
- // },
9353
- // summary: 'Reconnect telegram channel',
9354
- // },
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
+ },
9355
9380
  delete: {
9356
9381
  method: "DELETE",
9357
9382
  path: "/delete/:channelId",
@@ -9364,7 +9389,7 @@ var KlinkChatContract = initContract44().router({
9364
9389
  500: DefaultErrorResponseSchema,
9365
9390
  400: DefaultErrorResponseSchema
9366
9391
  },
9367
- summary: "Delete telegram channel"
9392
+ summary: "Delete klink chat channel"
9368
9393
  }
9369
9394
  });
9370
9395
 
@@ -9987,7 +10012,7 @@ var RoomContractsValidationSchema = {
9987
10012
  category: z126.union([z126.literal("contact"), z126.literal("message")])
9988
10013
  }).optional(),
9989
10014
  contactLabels: z126.array(z126.string()).optional(),
9990
- channels: z126.array(z126.string().email()).optional(),
10015
+ channels: z126.array(z126.string()).optional(),
9991
10016
  date: z126.string().optional(),
9992
10017
  contacts: z126.array(z126.string()).optional(),
9993
10018
  assignees: z126.array(z126.string()).optional(),