@webitel/api-services 26.8.91 → 26.10.1

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.
Files changed (131) hide show
  1. package/package.json +1 -1
  2. package/src/api/clients/cases/cases.ts +1 -0
  3. package/src/gen/_models/contactsIMClient.ts +6 -0
  4. package/src/gen/_models/contactsInputIMClient.ts +5 -0
  5. package/src/gen/_models/contactsSearchParams.ts +4 -0
  6. package/src/gen/_models/delContactLanguagesParams.ts +1 -0
  7. package/src/gen/_models/deleteContactGroupsParams.ts +1 -0
  8. package/src/gen/_models/deleteEmailsParams.ts +1 -0
  9. package/src/gen/_models/deleteLabelsParams.ts +1 -0
  10. package/src/gen/_models/deleteManagersParams.ts +1 -0
  11. package/src/gen/_models/deletePhonesParams.ts +1 -0
  12. package/src/gen/_models/deletePhotosParams.ts +1 -0
  13. package/src/gen/_models/deleteTimezonesParams.ts +1 -0
  14. package/src/gen/_models/deleteVariablesParams.ts +1 -0
  15. package/src/gen/_models/iMClientsLinkIMContactBody.ts +17 -0
  16. package/src/gen/_models/index.ts +5 -0
  17. package/src/gen/_models/protobufNullValue.ts +8 -3
  18. package/src/gen/_models/threadManagementSearchParams.ts +10 -0
  19. package/src/gen/_models/webitelImApiGatewayV1Contact.ts +2 -0
  20. package/src/gen/_models/webitelImApiGatewayV1DeletedMessage.ts +18 -0
  21. package/src/gen/_models/webitelImApiGatewayV1SetCrmContactResponse.ts +10 -0
  22. package/src/gen/_models/webitelImApiGatewayV1Thread.ts +8 -0
  23. package/src/gen/_models/webitelImApiGatewayV1ThreadManagementSetCrmContactBody.ts +11 -0
  24. package/src/gen/_models/webitelImApiGatewayV1ThreadTags.ts +13 -0
  25. package/src/gen/_models/webitelImApiGatewayV1ThreadUpdates.ts +12 -1
  26. package/src/gen-wire/_models/contactsIMClient.ts +6 -0
  27. package/src/gen-wire/_models/contactsInputIMClient.ts +5 -0
  28. package/src/gen-wire/_models/contactsSearchParams.ts +4 -0
  29. package/src/gen-wire/_models/delContactLanguagesParams.ts +1 -0
  30. package/src/gen-wire/_models/deleteContactGroupsParams.ts +1 -0
  31. package/src/gen-wire/_models/deleteEmailsParams.ts +1 -0
  32. package/src/gen-wire/_models/deleteLabelsParams.ts +1 -0
  33. package/src/gen-wire/_models/deleteManagersParams.ts +1 -0
  34. package/src/gen-wire/_models/deletePhonesParams.ts +1 -0
  35. package/src/gen-wire/_models/deletePhotosParams.ts +1 -0
  36. package/src/gen-wire/_models/deleteTimezonesParams.ts +1 -0
  37. package/src/gen-wire/_models/deleteVariablesParams.ts +1 -0
  38. package/src/gen-wire/_models/iMClientsLinkIMContactBody.ts +17 -0
  39. package/src/gen-wire/_models/index.ts +5 -0
  40. package/src/gen-wire/_models/protobufNullValue.ts +8 -3
  41. package/src/gen-wire/_models/threadManagementSearchParams.ts +10 -0
  42. package/src/gen-wire/_models/webitelImApiGatewayV1Contact.ts +2 -0
  43. package/src/gen-wire/_models/webitelImApiGatewayV1DeletedMessage.ts +18 -0
  44. package/src/gen-wire/_models/webitelImApiGatewayV1SetCrmContactResponse.ts +10 -0
  45. package/src/gen-wire/_models/webitelImApiGatewayV1Thread.ts +8 -0
  46. package/src/gen-wire/_models/webitelImApiGatewayV1ThreadManagementSetCrmContactBody.ts +11 -0
  47. package/src/gen-wire/_models/webitelImApiGatewayV1ThreadTags.ts +13 -0
  48. package/src/gen-wire/_models/webitelImApiGatewayV1ThreadUpdates.ts +12 -1
  49. package/src/gen-wire/contact-groups/contact-groups.zod.ts +4 -1
  50. package/src/gen-wire/contacts/contacts.zod.ts +60 -0
  51. package/src/gen-wire/emails/emails.zod.ts +1 -0
  52. package/src/gen-wire/groups/groups.zod.ts +12 -0
  53. package/src/gen-wire/imclients/imclients.ts +20 -0
  54. package/src/gen-wire/imclients/imclients.zod.ts +146 -0
  55. package/src/gen-wire/index.ts +6 -0
  56. package/src/gen-wire/labels/labels.zod.ts +1 -0
  57. package/src/gen-wire/languages/languages.zod.ts +1 -0
  58. package/src/gen-wire/managers/managers.zod.ts +4 -1
  59. package/src/gen-wire/phones/phones.zod.ts +4 -1
  60. package/src/gen-wire/photos/photos.zod.ts +4 -1
  61. package/src/gen-wire/presence/presence.zod.ts +2 -2
  62. package/src/gen-wire/timezones/timezones.zod.ts +4 -1
  63. package/src/gen-wire/variables/variables.zod.ts +1 -0
  64. package/src/gen-wire/webitel-im-api-gateway-v1-contacts/webitel-im-api-gateway-v1-contacts.zod.ts +2 -0
  65. package/src/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.ts +64 -0
  66. package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.ts +20 -0
  67. package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.ts +253 -0
  68. package/src/gen-wire/webitel-im-api-gateway-v1-threadpreviewservice/webitel-im-api-gateway-v1-threadpreviewservice.zod.ts +3 -0
  69. package/src/gen-wire/webitel-im-api-gateway-v1-threadtagmanagement/webitel-im-api-gateway-v1-threadtagmanagement.ts +49 -0
  70. package/src/gen-wire/webitel-im-api-gateway-v1-threadtagmanagement/webitel-im-api-gateway-v1-threadtagmanagement.zod.ts +34 -0
  71. package/src/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.ts +236 -2
  72. package/types/.tsbuildinfo +1 -1
  73. package/types/gen/_models/contactsIMClient.d.ts +6 -0
  74. package/types/gen/_models/contactsInputIMClient.d.ts +5 -0
  75. package/types/gen/_models/contactsSearchParams.d.ts +4 -0
  76. package/types/gen/_models/delContactLanguagesParams.d.ts +1 -0
  77. package/types/gen/_models/deleteContactGroupsParams.d.ts +1 -0
  78. package/types/gen/_models/deleteEmailsParams.d.ts +1 -0
  79. package/types/gen/_models/deleteLabelsParams.d.ts +1 -0
  80. package/types/gen/_models/deleteManagersParams.d.ts +1 -0
  81. package/types/gen/_models/deletePhonesParams.d.ts +1 -0
  82. package/types/gen/_models/deletePhotosParams.d.ts +1 -0
  83. package/types/gen/_models/deleteTimezonesParams.d.ts +1 -0
  84. package/types/gen/_models/deleteVariablesParams.d.ts +1 -0
  85. package/types/gen/_models/iMClientsLinkIMContactBody.d.ts +16 -0
  86. package/types/gen/_models/index.d.ts +5 -0
  87. package/types/gen/_models/protobufNullValue.d.ts +8 -3
  88. package/types/gen/_models/threadManagementSearchParams.d.ts +10 -0
  89. package/types/gen/_models/webitelImApiGatewayV1Contact.d.ts +2 -0
  90. package/types/gen/_models/webitelImApiGatewayV1DeletedMessage.d.ts +17 -0
  91. package/types/gen/_models/webitelImApiGatewayV1SetCrmContactResponse.d.ts +9 -0
  92. package/types/gen/_models/webitelImApiGatewayV1Thread.d.ts +8 -0
  93. package/types/gen/_models/webitelImApiGatewayV1ThreadManagementSetCrmContactBody.d.ts +10 -0
  94. package/types/gen/_models/webitelImApiGatewayV1ThreadTags.d.ts +12 -0
  95. package/types/gen/_models/webitelImApiGatewayV1ThreadUpdates.d.ts +12 -1
  96. package/types/gen-wire/_models/contactsIMClient.d.ts +6 -0
  97. package/types/gen-wire/_models/contactsInputIMClient.d.ts +5 -0
  98. package/types/gen-wire/_models/contactsSearchParams.d.ts +4 -0
  99. package/types/gen-wire/_models/delContactLanguagesParams.d.ts +1 -0
  100. package/types/gen-wire/_models/deleteContactGroupsParams.d.ts +1 -0
  101. package/types/gen-wire/_models/deleteEmailsParams.d.ts +1 -0
  102. package/types/gen-wire/_models/deleteLabelsParams.d.ts +1 -0
  103. package/types/gen-wire/_models/deleteManagersParams.d.ts +1 -0
  104. package/types/gen-wire/_models/deletePhonesParams.d.ts +1 -0
  105. package/types/gen-wire/_models/deletePhotosParams.d.ts +1 -0
  106. package/types/gen-wire/_models/deleteTimezonesParams.d.ts +1 -0
  107. package/types/gen-wire/_models/deleteVariablesParams.d.ts +1 -0
  108. package/types/gen-wire/_models/iMClientsLinkIMContactBody.d.ts +16 -0
  109. package/types/gen-wire/_models/index.d.ts +5 -0
  110. package/types/gen-wire/_models/protobufNullValue.d.ts +8 -3
  111. package/types/gen-wire/_models/threadManagementSearchParams.d.ts +10 -0
  112. package/types/gen-wire/_models/webitelImApiGatewayV1Contact.d.ts +2 -0
  113. package/types/gen-wire/_models/webitelImApiGatewayV1DeletedMessage.d.ts +17 -0
  114. package/types/gen-wire/_models/webitelImApiGatewayV1SetCrmContactResponse.d.ts +9 -0
  115. package/types/gen-wire/_models/webitelImApiGatewayV1Thread.d.ts +8 -0
  116. package/types/gen-wire/_models/webitelImApiGatewayV1ThreadManagementSetCrmContactBody.d.ts +10 -0
  117. package/types/gen-wire/_models/webitelImApiGatewayV1ThreadTags.d.ts +12 -0
  118. package/types/gen-wire/_models/webitelImApiGatewayV1ThreadUpdates.d.ts +12 -1
  119. package/types/gen-wire/contacts/contacts.zod.d.ts +11 -0
  120. package/types/gen-wire/groups/groups.zod.d.ts +2 -0
  121. package/types/gen-wire/imclients/imclients.d.ts +3 -1
  122. package/types/gen-wire/imclients/imclients.zod.d.ts +46 -0
  123. package/types/gen-wire/index.d.ts +2 -2
  124. package/types/gen-wire/webitel-im-api-gateway-v1-contacts/webitel-im-api-gateway-v1-contacts.zod.d.ts +2 -0
  125. package/types/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.d.ts +16 -0
  126. package/types/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.d.ts +3 -1
  127. package/types/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.d.ts +81 -0
  128. package/types/gen-wire/webitel-im-api-gateway-v1-threadpreviewservice/webitel-im-api-gateway-v1-threadpreviewservice.zod.d.ts +3 -0
  129. package/types/gen-wire/webitel-im-api-gateway-v1-threadtagmanagement/webitel-im-api-gateway-v1-threadtagmanagement.d.ts +6 -0
  130. package/types/gen-wire/webitel-im-api-gateway-v1-threadtagmanagement/webitel-im-api-gateway-v1-threadtagmanagement.zod.d.ts +28 -0
  131. package/types/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.d.ts +76 -0
@@ -117,6 +117,10 @@ export const MessageHistorySearchMessagesResponse = zod
117
117
  .describe(
118
118
  'Record creation timestamp (Unix Epoch in milliseconds).',
119
119
  ),
120
+ id: zod
121
+ .string()
122
+ .optional()
123
+ .describe('Unique contact identifier.'),
120
124
  is_bot: zod
121
125
  .boolean()
122
126
  .optional()
@@ -292,6 +296,10 @@ export const MessageHistorySearchMessagesResponse = zod
292
296
  .describe(
293
297
  'Record creation timestamp (Unix Epoch in milliseconds).',
294
298
  ),
299
+ id: zod
300
+ .string()
301
+ .optional()
302
+ .describe('Unique contact identifier.'),
295
303
  is_bot: zod
296
304
  .boolean()
297
305
  .optional()
@@ -803,6 +811,10 @@ export const MessageHistorySearchMessagesResponse = zod
803
811
  .describe(
804
812
  'Record creation timestamp (Unix Epoch in milliseconds).',
805
813
  ),
814
+ id: zod
815
+ .string()
816
+ .optional()
817
+ .describe('Unique contact identifier.'),
806
818
  is_bot: zod
807
819
  .boolean()
808
820
  .optional()
@@ -968,6 +980,10 @@ export const MessageHistorySearchMessagesResponse = zod
968
980
  .describe(
969
981
  'Record creation timestamp (Unix Epoch in milliseconds).',
970
982
  ),
983
+ id: zod
984
+ .string()
985
+ .optional()
986
+ .describe('Unique contact identifier.'),
971
987
  is_bot: zod
972
988
  .boolean()
973
989
  .optional()
@@ -1094,6 +1110,10 @@ export const MessageHistorySearchMessagesResponse = zod
1094
1110
  .describe(
1095
1111
  'Record creation timestamp (Unix Epoch in milliseconds).',
1096
1112
  ),
1113
+ id: zod
1114
+ .string()
1115
+ .optional()
1116
+ .describe('Unique contact identifier.'),
1097
1117
  is_bot: zod
1098
1118
  .boolean()
1099
1119
  .optional()
@@ -1310,6 +1330,10 @@ export const MessageHistoryGetMessageRevisionsResponse = zod.object({
1310
1330
  .describe(
1311
1331
  'Record creation timestamp (Unix Epoch in milliseconds).',
1312
1332
  ),
1333
+ id: zod
1334
+ .string()
1335
+ .optional()
1336
+ .describe('Unique contact identifier.'),
1313
1337
  is_bot: zod
1314
1338
  .boolean()
1315
1339
  .optional()
@@ -1532,6 +1556,10 @@ export const MessageHistorySearchLeftThreadsMessagesHistoryResponse = zod
1532
1556
  .describe(
1533
1557
  'Record creation timestamp (Unix Epoch in milliseconds).',
1534
1558
  ),
1559
+ id: zod
1560
+ .string()
1561
+ .optional()
1562
+ .describe('Unique contact identifier.'),
1535
1563
  is_bot: zod
1536
1564
  .boolean()
1537
1565
  .optional()
@@ -1707,6 +1735,10 @@ export const MessageHistorySearchLeftThreadsMessagesHistoryResponse = zod
1707
1735
  .describe(
1708
1736
  'Record creation timestamp (Unix Epoch in milliseconds).',
1709
1737
  ),
1738
+ id: zod
1739
+ .string()
1740
+ .optional()
1741
+ .describe('Unique contact identifier.'),
1710
1742
  is_bot: zod
1711
1743
  .boolean()
1712
1744
  .optional()
@@ -2218,6 +2250,10 @@ export const MessageHistorySearchLeftThreadsMessagesHistoryResponse = zod
2218
2250
  .describe(
2219
2251
  'Record creation timestamp (Unix Epoch in milliseconds).',
2220
2252
  ),
2253
+ id: zod
2254
+ .string()
2255
+ .optional()
2256
+ .describe('Unique contact identifier.'),
2221
2257
  is_bot: zod
2222
2258
  .boolean()
2223
2259
  .optional()
@@ -2383,6 +2419,10 @@ export const MessageHistorySearchLeftThreadsMessagesHistoryResponse = zod
2383
2419
  .describe(
2384
2420
  'Record creation timestamp (Unix Epoch in milliseconds).',
2385
2421
  ),
2422
+ id: zod
2423
+ .string()
2424
+ .optional()
2425
+ .describe('Unique contact identifier.'),
2386
2426
  is_bot: zod
2387
2427
  .boolean()
2388
2428
  .optional()
@@ -2509,6 +2549,10 @@ export const MessageHistorySearchLeftThreadsMessagesHistoryResponse = zod
2509
2549
  .describe(
2510
2550
  'Record creation timestamp (Unix Epoch in milliseconds).',
2511
2551
  ),
2552
+ id: zod
2553
+ .string()
2554
+ .optional()
2555
+ .describe('Unique contact identifier.'),
2512
2556
  is_bot: zod
2513
2557
  .boolean()
2514
2558
  .optional()
@@ -2775,6 +2819,10 @@ export const MessageHistorySearchThreadMessagesHistoryResponse = zod
2775
2819
  .describe(
2776
2820
  'Record creation timestamp (Unix Epoch in milliseconds).',
2777
2821
  ),
2822
+ id: zod
2823
+ .string()
2824
+ .optional()
2825
+ .describe('Unique contact identifier.'),
2778
2826
  is_bot: zod
2779
2827
  .boolean()
2780
2828
  .optional()
@@ -2950,6 +2998,10 @@ export const MessageHistorySearchThreadMessagesHistoryResponse = zod
2950
2998
  .describe(
2951
2999
  'Record creation timestamp (Unix Epoch in milliseconds).',
2952
3000
  ),
3001
+ id: zod
3002
+ .string()
3003
+ .optional()
3004
+ .describe('Unique contact identifier.'),
2953
3005
  is_bot: zod
2954
3006
  .boolean()
2955
3007
  .optional()
@@ -3461,6 +3513,10 @@ export const MessageHistorySearchThreadMessagesHistoryResponse = zod
3461
3513
  .describe(
3462
3514
  'Record creation timestamp (Unix Epoch in milliseconds).',
3463
3515
  ),
3516
+ id: zod
3517
+ .string()
3518
+ .optional()
3519
+ .describe('Unique contact identifier.'),
3464
3520
  is_bot: zod
3465
3521
  .boolean()
3466
3522
  .optional()
@@ -3626,6 +3682,10 @@ export const MessageHistorySearchThreadMessagesHistoryResponse = zod
3626
3682
  .describe(
3627
3683
  'Record creation timestamp (Unix Epoch in milliseconds).',
3628
3684
  ),
3685
+ id: zod
3686
+ .string()
3687
+ .optional()
3688
+ .describe('Unique contact identifier.'),
3629
3689
  is_bot: zod
3630
3690
  .boolean()
3631
3691
  .optional()
@@ -3752,6 +3812,10 @@ export const MessageHistorySearchThreadMessagesHistoryResponse = zod
3752
3812
  .describe(
3753
3813
  'Record creation timestamp (Unix Epoch in milliseconds).',
3754
3814
  ),
3815
+ id: zod
3816
+ .string()
3817
+ .optional()
3818
+ .describe('Unique contact identifier.'),
3755
3819
  is_bot: zod
3756
3820
  .boolean()
3757
3821
  .optional()
@@ -21,6 +21,7 @@ import type {
21
21
  WebitelImApiGatewayV1SearchLeftResponse,
22
22
  WebitelImApiGatewayV1SearchThreadResponse,
23
23
  WebitelImApiGatewayV1SearchVariablesResponse,
24
+ WebitelImApiGatewayV1SetCrmContactResponse,
24
25
  WebitelImApiGatewayV1TakeOverFromBotResponse,
25
26
  WebitelImApiGatewayV1Thread,
26
27
  WebitelImApiGatewayV1ThreadManagementAddMemberBody,
@@ -28,6 +29,7 @@ import type {
28
29
  WebitelImApiGatewayV1ThreadManagementCreateResponse,
29
30
  WebitelImApiGatewayV1ThreadManagementFlushVariablesBody,
30
31
  WebitelImApiGatewayV1ThreadManagementHandBackToBotBody,
32
+ WebitelImApiGatewayV1ThreadManagementSetCrmContactBody,
31
33
  WebitelImApiGatewayV1ThreadManagementSetVariablesBody,
32
34
  WebitelImApiGatewayV1ThreadManagementTakeOverFromBotBody,
33
35
  WebitelImApiGatewayV1ThreadManagementTransferBody,
@@ -143,6 +145,21 @@ chats with unread messages and the total number of unread messages.
143
145
  );
144
146
  };
145
147
  /**
148
+ * @summary Sets (or clears) the CRM contact selected by the operator for the thread.
149
+ Linking the IM contact to the CRM contact itself is done via the CRM API.
150
+ */
151
+ const threadManagementSetCrmContact = (
152
+ threadId: string,
153
+ webitelImApiGatewayV1ThreadManagementSetCrmContactBody: WebitelImApiGatewayV1ThreadManagementSetCrmContactBody,
154
+ options?: AxiosRequestConfig,
155
+ ): Promise<AxiosResponse<WebitelImApiGatewayV1SetCrmContactResponse>> => {
156
+ return axiosInstance.put(
157
+ `/v1/threads/${threadId}/crm_contact`,
158
+ webitelImApiGatewayV1ThreadManagementSetCrmContactBody,
159
+ options,
160
+ );
161
+ };
162
+ /**
146
163
  * @summary Add member to the thread.
147
164
  */
148
165
  const threadManagementAddMember = (
@@ -259,6 +276,7 @@ Supports pagination and field projection.
259
276
  threadManagementGet,
260
277
  threadManagementHandBackToBot,
261
278
  threadManagementTakeOverFromBot,
279
+ threadManagementSetCrmContact,
262
280
  threadManagementAddMember,
263
281
  threadManagementRemoveMember,
264
282
  threadManagementTransfer,
@@ -282,6 +300,8 @@ export type ThreadManagementHandBackToBotResult =
282
300
  AxiosResponse<WebitelImApiGatewayV1HandBackToBotResponse>;
283
301
  export type ThreadManagementTakeOverFromBotResult =
284
302
  AxiosResponse<WebitelImApiGatewayV1TakeOverFromBotResponse>;
303
+ export type ThreadManagementSetCrmContactResult =
304
+ AxiosResponse<WebitelImApiGatewayV1SetCrmContactResponse>;
285
305
  export type ThreadManagementAddMemberResult =
286
306
  AxiosResponse<WebitelImApiGatewayV1AddMemberResponse>;
287
307
  export type ThreadManagementRemoveMemberResult =