@kl1/contracts 1.1.99-uat → 1.2.1-uat

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.mjs CHANGED
@@ -1098,7 +1098,7 @@ var TelephonyDropdownListSchema = z25.object({
1098
1098
  trunkName: z25.string()
1099
1099
  })
1100
1100
  ),
1101
- status: z25.array(z25.enum(["ANSWERED", "NO ANSWER", "FAILED"])),
1101
+ status: z25.array(z25.enum(["ANSWERED", "NO ANSWER", "BUSY", "FAILED"])),
1102
1102
  type: z25.array(z25.enum(["Inbound", "Outbound", "Internal"]))
1103
1103
  });
1104
1104
  var TelephonyRedirectSettingSchema = z25.object({
@@ -2585,6 +2585,15 @@ var mainChatContract = initContract7().router(
2585
2585
  500: DefaultErrorResponseSchema
2586
2586
  }
2587
2587
  },
2588
+ getUnreadCounts: {
2589
+ method: "GET",
2590
+ path: "/rooms/unread-count",
2591
+ responses: {
2592
+ 200: DefaultSuccessResponseSchema.extend({
2593
+ unreadCountsByAssignee: z37.array(UnreadCountsByAssigneeSchema)
2594
+ })
2595
+ }
2596
+ },
2588
2597
  getRoomsByPlatformContactId: {
2589
2598
  method: "GET",
2590
2599
  path: "/rooms/:platformContactId",
@@ -7744,7 +7753,8 @@ var chatContract = initContract38().router(
7744
7753
  body: z106.object({
7745
7754
  assigneeId: z106.string().uuid(),
7746
7755
  roomId: z106.string().uuid(),
7747
- workflowId: z106.string().uuid()
7756
+ workflowId: z106.string().uuid(),
7757
+ queueId: z106.string().uuid().optional()
7748
7758
  }),
7749
7759
  responses: {
7750
7760
  200: DefaultSuccessResponseSchema.extend({
@@ -7772,6 +7782,19 @@ var chatContract = initContract38().router(
7772
7782
  409: DefaultErrorResponseSchema
7773
7783
  },
7774
7784
  summary: "Solve room"
7785
+ },
7786
+ emitMessage: {
7787
+ method: "POST",
7788
+ path: "/message/emit",
7789
+ body: z106.object({
7790
+ messageId: z106.string().uuid()
7791
+ }),
7792
+ responses: {
7793
+ 200: DefaultSuccessResponseSchema,
7794
+ 403: DefaultErrorResponseSchema,
7795
+ 404: DefaultErrorResponseSchema
7796
+ },
7797
+ summary: "Get message by ID"
7775
7798
  }
7776
7799
  },
7777
7800
  {
@@ -8268,7 +8291,7 @@ var automationQueueContract = initContract43().router(
8268
8291
  getAutomationQueues: {
8269
8292
  method: "GET",
8270
8293
  path: "",
8271
- pathParams: z114.object({
8294
+ query: z114.object({
8272
8295
  userId: z114.string().uuid().optional()
8273
8296
  }).optional(),
8274
8297
  responses: {