@kl1/contracts 1.1.52-uat → 1.1.54-uat

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
@@ -1197,6 +1197,11 @@ var MessageTypeSchema = z30.enum([
1197
1197
  "card",
1198
1198
  "choice",
1199
1199
  "dropdown",
1200
+ // botpress specific
1201
+ "carousel",
1202
+ "card",
1203
+ "choice",
1204
+ "dropdown",
1200
1205
  // system
1201
1206
  "assign",
1202
1207
  "solve",
@@ -1584,6 +1589,11 @@ var SolveRoomSchema = z33.object({
1584
1589
  disposition: z33.string()
1585
1590
  });
1586
1591
  var UpdateAssigneeSchema = z33.object({
1592
+ assigneeId: z33.string().uuid(),
1593
+ roomId: z33.string(),
1594
+ actionType: z33.enum(["assign_to_me", "hangover_to_me", "assign_other_agent"]).default("assign_to_me")
1595
+ });
1596
+ var UpdateAssigneeByWorkflowSchema = z33.object({
1587
1597
  assigneeId: z33.string().uuid(),
1588
1598
  roomId: z33.string()
1589
1599
  });
@@ -3446,10 +3456,23 @@ var cxLogContract = initContract11().router({
3446
3456
  query: GetAllCxLogQueryParamsSchema,
3447
3457
  summary: "Export cx-logs"
3448
3458
  },
3459
+ syncSla: {
3460
+ method: "POST",
3461
+ path: "/cx-logs/sync-sla",
3462
+ headers: DefaultHeaderSchema,
3463
+ responses: {
3464
+ 200: null,
3465
+ 401: DefaultUnauthorizedSchema,
3466
+ 500: DefaultErrorResponseSchema
3467
+ },
3468
+ body: null,
3469
+ summary: "Export cx-logs"
3470
+ },
3449
3471
  updateSla: {
3450
3472
  method: "POST",
3451
3473
  path: "/cx-logs",
3452
3474
  headers: z47.object({
3475
+ // biome-ignore lint/style/useNamingConvention: <explanation>
3453
3476
  "x-tenant": z47.string({ required_error: "Tenant id is required" }),
3454
3477
  "x-code": z47.string().uuid().optional()
3455
3478
  }),
@@ -5459,6 +5482,21 @@ var roleContract = initContract25().router(
5459
5482
  500: DefaultErrorResponseSchema
5460
5483
  },
5461
5484
  summary: "Delete a role."
5485
+ },
5486
+ getRoleById: {
5487
+ method: "GET",
5488
+ path: "/:id",
5489
+ pathParams: z74.object({ id: z74.string() }),
5490
+ headers: DefaultHeaderSchema,
5491
+ responses: {
5492
+ 200: RoleSchema,
5493
+ 400: z74.object({
5494
+ message: z74.string()
5495
+ }),
5496
+ 401: DefaultUnauthorizedSchema,
5497
+ 500: DefaultErrorResponseSchema
5498
+ },
5499
+ summary: "Get role by Id"
5462
5500
  }
5463
5501
  },
5464
5502
  { pathPrefix: "role" }