@webitel/api-services 0.1.48 → 0.1.50

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 (473) hide show
  1. package/package.json +3 -2
  2. package/src/api/axios/generateInstance.ts +17 -2
  3. package/src/api/clients/agents/agentAbsence.ts +2 -2
  4. package/src/api/clients/agents/agents.ts +21 -9
  5. package/src/api/clients/emails/emails.ts +7 -6
  6. package/src/api/clients/fileServices/fileServices.ts +51 -27
  7. package/src/api/clients/oauthApps/oauthApps.ts +3 -2
  8. package/src/api/clients/pdfServices/pdfServices.ts +2 -2
  9. package/src/api/clients/quickReplies/quickReplies.ts +1 -1
  10. package/src/api/clients/wtTypes/_shared/utils/sortDynamicFields.ts +15 -4
  11. package/src/api/clients//321/201ontacts/contactChatMessagesHistory.ts +1 -1
  12. package/src/api/clients//321/201ontacts/contacts.ts +15 -4
  13. package/src/api/interceptors/request/updateToken.interceptor.ts +8 -1
  14. package/src/api/interceptors/response/handleUnauthorized.interceptor.ts +5 -1
  15. package/src/api/transformers/notify/notify.transformer.ts +10 -3
  16. package/src/api/transformers/translateError/translateError.transformer.ts +6 -2
  17. package/src/gen/_models/{oAuth2FederationUpdateOAuthServiceBody.ts → apiOAuthServiceBody.ts} +4 -5
  18. package/src/gen/_models/{oAuth2FederationUpdateOAuthServiceBody.zod.ts → apiOAuthServiceBody.zod.ts} +4 -5
  19. package/src/gen/_models/contactsInputContact.ts +0 -3
  20. package/src/gen/_models/contactsInputContact.zod.ts +0 -3
  21. package/src/gen/_models/{deleteSpaceParams.ts → createArticleArticlesParams.ts} +1 -1
  22. package/src/gen/_models/{deleteSpaceParams.zod.ts → createArticleArticlesParams.zod.ts} +1 -1
  23. package/src/gen/_models/{locateSpaceParams.ts → createSpaceSpacesParams.ts} +1 -1
  24. package/src/gen/_models/{locateSpaceParams.zod.ts → createSpaceSpacesParams.zod.ts} +1 -1
  25. package/src/gen/_models/dataBatchCreateDatasetResponse.ts +18 -0
  26. package/src/gen/_models/dataBatchCreateDatasetResponse.zod.ts +18 -0
  27. package/src/gen/_models/dataBatchCreateError.ts +16 -0
  28. package/src/gen/_models/dataBatchCreateError.zod.ts +16 -0
  29. package/src/gen/_models/{deleteArticleParams.ts → deleteArticleArticlesParams.ts} +1 -1
  30. package/src/gen/_models/{deleteArticleParams.zod.ts → deleteArticleArticlesParams.zod.ts} +1 -1
  31. package/src/gen/_models/{createArticleParams.ts → deleteSpaceSpacesParams.ts} +1 -1
  32. package/src/gen/_models/{createArticleParams.zod.ts → deleteSpaceSpacesParams.zod.ts} +1 -1
  33. package/src/gen/_models/dictionariesBatchCreateDataBody.ts +17 -0
  34. package/src/gen/_models/dictionariesBatchCreateDataBody.zod.ts +17 -0
  35. package/src/gen/_models/{webitelImApiGatewayV1VariableEntryRequestValue.ts → dictionariesBatchCreateDataBodyRowsItem.ts} +1 -4
  36. package/src/gen/_models/{webitelImApiGatewayV1VariableEntryRequestValue.zod.ts → dictionariesBatchCreateDataBodyRowsItem.zod.ts} +1 -4
  37. package/src/gen/_models/engineAssignAttemptResponse.ts +10 -0
  38. package/src/gen/_models/engineAssignAttemptResponse.zod.ts +10 -0
  39. package/src/gen/_models/engineMemberServiceAssignAttemptBody.ts +11 -0
  40. package/src/gen/_models/engineMemberServiceAssignAttemptBody.zod.ts +11 -0
  41. package/src/gen/_models/engineSystemSettingName.ts +1 -0
  42. package/src/gen/_models/engineSystemSettingName.zod.ts +1 -0
  43. package/src/gen/_models/engineTaskProcessing.ts +1 -0
  44. package/src/gen/_models/engineTaskProcessing.zod.ts +1 -0
  45. package/src/gen/_models/index.ts +21 -16
  46. package/src/gen/_models/{listArticlesParams.ts → listArticlesArticlesParams.ts} +1 -1
  47. package/src/gen/_models/{listArticlesParams.zod.ts → listArticlesArticlesParams.zod.ts} +1 -1
  48. package/src/gen/_models/{listSpacesParams.ts → listSpacesSpacesParams.ts} +1 -1
  49. package/src/gen/_models/{listSpacesParams.zod.ts → listSpacesSpacesParams.zod.ts} +1 -1
  50. package/src/gen/_models/{locateArticleParams.ts → locateArticleArticlesParams.ts} +1 -1
  51. package/src/gen/_models/{locateArticleParams.zod.ts → locateArticleArticlesParams.zod.ts} +1 -1
  52. package/src/gen/_models/{createSpaceParams.ts → locateSpaceSpacesParams.ts} +1 -1
  53. package/src/gen/_models/{createSpaceParams.zod.ts → locateSpaceSpacesParams.zod.ts} +1 -1
  54. package/src/gen/_models/searchSystemSettingNameItem.ts +1 -0
  55. package/src/gen/_models/searchSystemSettingNameItem.zod.ts +1 -0
  56. package/src/gen/_models/{updateArticleBody.ts → updateArticleArticlesBody.ts} +1 -1
  57. package/src/gen/_models/{updateArticleBody.zod.ts → updateArticleArticlesBody.zod.ts} +1 -1
  58. package/src/gen/_models/updateArticleArticlesParams.ts +13 -0
  59. package/src/gen/_models/updateArticleArticlesParams.zod.ts +13 -0
  60. package/src/gen/_models/updateContactBody.ts +0 -3
  61. package/src/gen/_models/updateContactBody.zod.ts +0 -3
  62. package/src/gen/_models/updateOAuthService2Params.ts +13 -0
  63. package/src/gen/_models/updateOAuthService2Params.zod.ts +13 -0
  64. package/src/gen/_models/updateOAuthServiceParams.ts +13 -0
  65. package/src/gen/_models/updateOAuthServiceParams.zod.ts +13 -0
  66. package/src/gen/_models/{updateSpaceBody.ts → updateSpaceSpacesBody.ts} +1 -1
  67. package/src/gen/_models/{updateSpaceBody.zod.ts → updateSpaceSpacesBody.zod.ts} +1 -1
  68. package/src/gen/_models/updateSpaceSpacesParams.ts +13 -0
  69. package/src/gen/_models/updateSpaceSpacesParams.zod.ts +13 -0
  70. package/src/gen/_models/webitelContactsContact.ts +0 -3
  71. package/src/gen/_models/webitelContactsContact.zod.ts +0 -3
  72. package/src/gen/_models/webitelImApiGatewayV1VariableEntry.ts +1 -2
  73. package/src/gen/_models/webitelImApiGatewayV1VariableEntry.zod.ts +1 -2
  74. package/src/gen/_models/webitelImApiGatewayV1VariableEntryRequest.ts +1 -2
  75. package/src/gen/_models/webitelImApiGatewayV1VariableEntryRequest.zod.ts +1 -2
  76. package/src/gen/access-store/access-store.ts +1 -1
  77. package/src/gen/agent-absence-service/agent-absence-service.ts +1 -1
  78. package/src/gen/agent-chat-service/agent-chat-service.ts +1 -1
  79. package/src/gen/agent-pause-cause-service/agent-pause-cause-service.ts +1 -1
  80. package/src/gen/agent-service/agent-service.ts +1 -1
  81. package/src/gen/agent-skill-service/agent-skill-service.ts +1 -1
  82. package/src/gen/agent-team-service/agent-team-service.ts +1 -1
  83. package/src/gen/agent-working-conditions-service/agent-working-conditions-service.ts +1 -1
  84. package/src/gen/agent-working-schedule-service/agent-working-schedule-service.ts +1 -1
  85. package/src/gen/articles/articles.faker.ts +5 -5
  86. package/src/gen/articles/articles.msw.ts +20 -20
  87. package/src/gen/articles/articles.ts +32 -29
  88. package/src/gen/articles/articles.zod.ts +17 -17
  89. package/src/gen/audit-form-service/audit-form-service.ts +1 -1
  90. package/src/gen/auth/auth.ts +1 -1
  91. package/src/gen/backend-profile-service/backend-profile-service.ts +1 -1
  92. package/src/gen/bucket-service/bucket-service.ts +1 -1
  93. package/src/gen/calendar-service/calendar-service.ts +1 -1
  94. package/src/gen/call-service/call-service.ts +1 -1
  95. package/src/gen/case-comments/case-comments.ts +1 -1
  96. package/src/gen/case-communications/case-communications.ts +1 -1
  97. package/src/gen/case-files/case-files.ts +1 -1
  98. package/src/gen/case-links/case-links.ts +1 -1
  99. package/src/gen/case-timeline/case-timeline.ts +1 -1
  100. package/src/gen/cases/cases.ts +1 -1
  101. package/src/gen/cases-chat-catalog/cases-chat-catalog.ts +1 -1
  102. package/src/gen/catalogs/catalogs.ts +1 -1
  103. package/src/gen/classes/classes.ts +1 -1
  104. package/src/gen/close-reason-groups/close-reason-groups.ts +1 -1
  105. package/src/gen/close-reasons/close-reasons.ts +1 -1
  106. package/src/gen/cognitive-profile-service/cognitive-profile-service.ts +1 -1
  107. package/src/gen/comments/comments.ts +1 -1
  108. package/src/gen/communication-type-service/communication-type-service.ts +1 -1
  109. package/src/gen/config-service/config-service.ts +1 -1
  110. package/src/gen/contact-groups/contact-groups.ts +1 -1
  111. package/src/gen/contact-linking-service/contact-linking-service.ts +1 -1
  112. package/src/gen/contacts/contacts.faker.ts +117 -1277
  113. package/src/gen/contacts/contacts.msw.ts +117 -1277
  114. package/src/gen/contacts/contacts.ts +1 -2
  115. package/src/gen/contacts/contacts.zod.ts +7 -638
  116. package/src/gen/contacts-chat-catalog/contacts-chat-catalog.ts +1 -1
  117. package/src/gen/customers/customers.ts +1 -1
  118. package/src/gen/devices/devices.ts +1 -1
  119. package/src/gen/dictionaries/dictionaries.faker.ts +65 -0
  120. package/src/gen/dictionaries/dictionaries.msw.ts +94 -0
  121. package/src/gen/dictionaries/dictionaries.ts +21 -1
  122. package/src/gen/dictionaries/dictionaries.zod.ts +46 -0
  123. package/src/gen/domains/domains.ts +1 -1
  124. package/src/gen/dynamic-conditions/dynamic-conditions.ts +1 -1
  125. package/src/gen/dynamic-groups/dynamic-groups.ts +1 -1
  126. package/src/gen/email-profile-service/email-profile-service.ts +1 -1
  127. package/src/gen/emails/emails.ts +1 -1
  128. package/src/gen/extensions/extensions.ts +1 -1
  129. package/src/gen/feedback-service/feedback-service.ts +1 -1
  130. package/src/gen/file-policies-service/file-policies-service.ts +1 -1
  131. package/src/gen/file-service/file-service.ts +1 -1
  132. package/src/gen/file-transcript-service/file-transcript-service.ts +1 -1
  133. package/src/gen/forecast-calculation-service/forecast-calculation-service.ts +1 -1
  134. package/src/gen/ftsservice/ftsservice.ts +1 -1
  135. package/src/gen/groups/groups.faker.ts +0 -376
  136. package/src/gen/groups/groups.msw.ts +0 -376
  137. package/src/gen/groups/groups.ts +1 -1
  138. package/src/gen/groups/groups.zod.ts +0 -190
  139. package/src/gen/imclients/imclients.ts +1 -1
  140. package/src/gen/import-template-service/import-template-service.ts +1 -1
  141. package/src/gen/index.ts +2362 -97
  142. package/src/gen/knowledgebase-search/knowledgebase-search.ts +1 -1
  143. package/src/gen/labels/labels.ts +1 -1
  144. package/src/gen/languages/languages.ts +1 -1
  145. package/src/gen/ldap/ldap.ts +1 -1
  146. package/src/gen/list-service/list-service.ts +1 -1
  147. package/src/gen/logger-service/logger-service.ts +1 -1
  148. package/src/gen/managers/managers.ts +1 -1
  149. package/src/gen/media-file-service/media-file-service.ts +1 -1
  150. package/src/gen/meeting-service/meeting-service.ts +1 -1
  151. package/src/gen/member-service/member-service.faker.ts +4 -0
  152. package/src/gen/member-service/member-service.msw.ts +31 -0
  153. package/src/gen/member-service/member-service.ts +16 -1
  154. package/src/gen/member-service/member-service.zod.ts +15 -0
  155. package/src/gen/messages/messages.ts +1 -1
  156. package/src/gen/oauth2-federation/oauth2-federation.ts +21 -14
  157. package/src/gen/oauth2-federation/oauth2-federation.zod.ts +90 -88
  158. package/src/gen/outbound-resource-group-service/outbound-resource-group-service.ts +1 -1
  159. package/src/gen/outbound-resource-service/outbound-resource-service.ts +1 -1
  160. package/src/gen/pause-template-service/pause-template-service.ts +1 -1
  161. package/src/gen/pdf-service/pdf-service.ts +1 -1
  162. package/src/gen/permissions/permissions.ts +1 -1
  163. package/src/gen/phones/phones.ts +1 -1
  164. package/src/gen/photos/photos.ts +1 -1
  165. package/src/gen/presence/presence.ts +1 -1
  166. package/src/gen/preset-query-service/preset-query-service.ts +1 -1
  167. package/src/gen/priorities/priorities.ts +1 -1
  168. package/src/gen/queue-bucket-service/queue-bucket-service.ts +1 -1
  169. package/src/gen/queue-hook-service/queue-hook-service.ts +1 -1
  170. package/src/gen/queue-resources-service/queue-resources-service.ts +1 -1
  171. package/src/gen/queue-service/queue-service.faker.ts +24 -0
  172. package/src/gen/queue-service/queue-service.msw.ts +24 -0
  173. package/src/gen/queue-service/queue-service.ts +1 -1
  174. package/src/gen/queue-service/queue-service.zod.ts +9 -0
  175. package/src/gen/queue-skill-service/queue-skill-service.ts +1 -1
  176. package/src/gen/quick-replies-service/quick-replies-service.ts +1 -1
  177. package/src/gen/records/records.ts +1 -1
  178. package/src/gen/region-service/region-service.ts +1 -1
  179. package/src/gen/related-cases/related-cases.ts +1 -1
  180. package/src/gen/routing-chat-plan-service/routing-chat-plan-service.ts +1 -1
  181. package/src/gen/routing-outbound-call-service/routing-outbound-call-service.ts +1 -1
  182. package/src/gen/routing-schema-service/routing-schema-service.ts +1 -1
  183. package/src/gen/routing-variable-service/routing-variable-service.ts +1 -1
  184. package/src/gen/schema-variables-service/schema-variables-service.ts +1 -1
  185. package/src/gen/schema-version-service/schema-version-service.ts +1 -1
  186. package/src/gen/services/services.ts +1 -1
  187. package/src/gen/shift-template-service/shift-template-service.ts +1 -1
  188. package/src/gen/skill-service/skill-service.ts +1 -1
  189. package/src/gen/slaconditions/slaconditions.ts +1 -1
  190. package/src/gen/slas/slas.ts +1 -1
  191. package/src/gen/sources/sources.ts +1 -1
  192. package/src/gen/sources/sources.zod.ts +2 -0
  193. package/src/gen/spaces/spaces.faker.ts +5 -5
  194. package/src/gen/spaces/spaces.msw.ts +20 -20
  195. package/src/gen/spaces/spaces.ts +29 -29
  196. package/src/gen/spaces/spaces.zod.ts +22 -22
  197. package/src/gen/status-conditions/status-conditions.ts +1 -1
  198. package/src/gen/statuses/statuses.ts +1 -1
  199. package/src/gen/system-setting-service/system-setting-service.ts +1 -1
  200. package/src/gen/system-setting-service/system-setting-service.zod.ts +8 -0
  201. package/src/gen/tags/tags.ts +1 -1
  202. package/src/gen/team-hook-service/team-hook-service.ts +1 -1
  203. package/src/gen/team-trigger-service/team-trigger-service.ts +1 -1
  204. package/src/gen/timeline/timeline.ts +1 -1
  205. package/src/gen/timezones/timezones.ts +1 -1
  206. package/src/gen/trigger-service/trigger-service.ts +1 -1
  207. package/src/gen/two-factor-authentication/two-factor-authentication.ts +1 -1
  208. package/src/gen/types/types.ts +1 -1
  209. package/src/gen/user-access-tokens/user-access-tokens.ts +1 -1
  210. package/src/gen/user-helper-service/user-helper-service.ts +1 -1
  211. package/src/gen/users/users.ts +1 -1
  212. package/src/gen/variables/variables.ts +1 -1
  213. package/src/gen/web-hook-service/web-hook-service.ts +1 -1
  214. package/src/gen/webitel-im-api-gateway-v1-account/webitel-im-api-gateway-v1-account.ts +1 -1
  215. package/src/gen/webitel-im-api-gateway-v1-bots/webitel-im-api-gateway-v1-bots.ts +1 -1
  216. package/src/gen/webitel-im-api-gateway-v1-contacts/webitel-im-api-gateway-v1-contacts.ts +1 -1
  217. package/src/gen/webitel-im-api-gateway-v1-contactsettingsmanagement/webitel-im-api-gateway-v1-contactsettingsmanagement.ts +1 -1
  218. package/src/gen/webitel-im-api-gateway-v1-message/webitel-im-api-gateway-v1-message.ts +1 -1
  219. package/src/gen/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.ts +1 -1
  220. package/src/gen/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.ts +1 -1
  221. package/src/gen/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.ts +9 -9
  222. package/src/gen/webitel-im-api-gateway-v1-threadpermission/webitel-im-api-gateway-v1-threadpermission.ts +1 -1
  223. package/src/gen/webitel-im-api-provider-v1-facebookservice/webitel-im-api-provider-v1-facebookservice.ts +1 -1
  224. package/src/gen/webitel-im-api-provider-v1-metaappservice/webitel-im-api-provider-v1-metaappservice.ts +1 -1
  225. package/src/gen/webitel-im-api-provider-v1-metaoauthservice/webitel-im-api-provider-v1-metaoauthservice.ts +1 -1
  226. package/src/gen/webitel-im-api-provider-v1-whatsappservice/webitel-im-api-provider-v1-whatsappservice.ts +1 -1
  227. package/src/gen/webitel-im-provider-v1-facebookservice/webitel-im-provider-v1-facebookservice.ts +1 -1
  228. package/src/gen/webitel-im-provider-v1-gateservice/webitel-im-provider-v1-gateservice.ts +1 -1
  229. package/src/gen/webitel-im-provider-v1-gatetemplateservice/webitel-im-provider-v1-gatetemplateservice.ts +1 -1
  230. package/src/gen/webitel-im-provider-v1-metaappservice/webitel-im-provider-v1-metaappservice.ts +1 -1
  231. package/src/gen/webitel-im-provider-v1-metaoauthservice/webitel-im-provider-v1-metaoauthservice.ts +1 -1
  232. package/src/gen/webitel-im-provider-v1-providermessageservice/webitel-im-provider-v1-providermessageservice.ts +1 -1
  233. package/src/gen/webitel-im-provider-v1-whatsappservice/webitel-im-provider-v1-whatsappservice.ts +1 -1
  234. package/src/gen/working-condition-service/working-condition-service.ts +1 -1
  235. package/src/gen/working-schedule-service/working-schedule-service.ts +1 -1
  236. package/src/utils/gen/index.ts +2 -2
  237. package/src/validations/OAuth/OAuth.validations.ts +1 -0
  238. package/types/api/axios/generateInstance.d.ts +9 -1
  239. package/types/api/clients/agents/agentAbsence.d.ts +1 -1
  240. package/types/api/clients/emails/emails.d.ts +1 -2
  241. package/types/api/clients/fileServices/fileServices.d.ts +11 -3
  242. package/types/api/clients/index.d.ts +1 -1
  243. package/types/api/clients/pdfServices/pdfServices.d.ts +6 -2
  244. package/types/api/defaults/getDefaultInstance/getDefaultInstance.d.ts +1 -1
  245. package/types/api/interceptors/request/updateToken.interceptor.d.ts +2 -1
  246. package/types/api/interceptors/response/handleUnauthorized.interceptor.d.ts +2 -1
  247. package/types/gen/_models/{oAuth2FederationUpdateOAuthServiceBody.d.ts → apiOAuthServiceBody.d.ts} +4 -5
  248. package/types/gen/_models/{oAuth2FederationUpdateOAuthServiceBody.zod.d.ts → apiOAuthServiceBody.zod.d.ts} +4 -5
  249. package/types/gen/_models/contactsInputContact.d.ts +0 -3
  250. package/types/gen/_models/contactsInputContact.zod.d.ts +0 -3
  251. package/types/gen/_models/{deleteSpaceParams.d.ts → createArticleArticlesParams.d.ts} +1 -1
  252. package/types/gen/_models/{deleteSpaceParams.zod.d.ts → createArticleArticlesParams.zod.d.ts} +1 -1
  253. package/types/gen/_models/{locateSpaceParams.d.ts → createSpaceSpacesParams.d.ts} +1 -1
  254. package/types/gen/_models/{locateSpaceParams.zod.d.ts → createSpaceSpacesParams.zod.d.ts} +1 -1
  255. package/types/gen/_models/dataBatchCreateDatasetResponse.d.ts +17 -0
  256. package/types/gen/_models/dataBatchCreateDatasetResponse.zod.d.ts +17 -0
  257. package/types/gen/_models/dataBatchCreateError.d.ts +15 -0
  258. package/types/gen/_models/dataBatchCreateError.zod.d.ts +15 -0
  259. package/types/gen/_models/{deleteArticleParams.d.ts → deleteArticleArticlesParams.d.ts} +1 -1
  260. package/types/gen/_models/{deleteArticleParams.zod.d.ts → deleteArticleArticlesParams.zod.d.ts} +1 -1
  261. package/types/gen/_models/{createArticleParams.d.ts → deleteSpaceSpacesParams.d.ts} +1 -1
  262. package/types/gen/_models/{createArticleParams.zod.d.ts → deleteSpaceSpacesParams.zod.d.ts} +1 -1
  263. package/types/gen/_models/dictionariesBatchCreateDataBody.d.ts +16 -0
  264. package/types/gen/_models/dictionariesBatchCreateDataBody.zod.d.ts +16 -0
  265. package/types/gen/_models/{webitelImApiGatewayV1VariableEntryRequestValue.d.ts → dictionariesBatchCreateDataBodyRowsItem.d.ts} +1 -4
  266. package/types/gen/_models/{webitelImApiGatewayV1VariableEntryRequestValue.zod.d.ts → dictionariesBatchCreateDataBodyRowsItem.zod.d.ts} +1 -4
  267. package/types/gen/_models/engineAssignAttemptResponse.d.ts +9 -0
  268. package/types/gen/_models/engineAssignAttemptResponse.zod.d.ts +9 -0
  269. package/types/gen/_models/engineMemberServiceAssignAttemptBody.d.ts +10 -0
  270. package/types/gen/_models/engineMemberServiceAssignAttemptBody.zod.d.ts +10 -0
  271. package/types/gen/_models/engineSystemSettingName.d.ts +1 -0
  272. package/types/gen/_models/engineSystemSettingName.zod.d.ts +1 -0
  273. package/types/gen/_models/engineTaskProcessing.d.ts +1 -0
  274. package/types/gen/_models/engineTaskProcessing.zod.d.ts +1 -0
  275. package/types/gen/_models/{listArticlesParams.d.ts → listArticlesArticlesParams.d.ts} +1 -1
  276. package/types/gen/_models/{listArticlesParams.zod.d.ts → listArticlesArticlesParams.zod.d.ts} +1 -1
  277. package/types/gen/_models/{listSpacesParams.d.ts → listSpacesSpacesParams.d.ts} +1 -1
  278. package/types/gen/_models/{listSpacesParams.zod.d.ts → listSpacesSpacesParams.zod.d.ts} +1 -1
  279. package/types/gen/_models/{locateArticleParams.d.ts → locateArticleArticlesParams.d.ts} +1 -1
  280. package/types/gen/_models/{locateArticleParams.zod.d.ts → locateArticleArticlesParams.zod.d.ts} +1 -1
  281. package/types/gen/_models/{createSpaceParams.d.ts → locateSpaceSpacesParams.d.ts} +1 -1
  282. package/types/gen/_models/{createSpaceParams.zod.d.ts → locateSpaceSpacesParams.zod.d.ts} +1 -1
  283. package/types/gen/_models/searchSystemSettingNameItem.d.ts +1 -0
  284. package/types/gen/_models/searchSystemSettingNameItem.zod.d.ts +1 -0
  285. package/types/gen/_models/{updateArticleBody.d.ts → updateArticleArticlesBody.d.ts} +1 -1
  286. package/types/gen/_models/{updateArticleBody.zod.d.ts → updateArticleArticlesBody.zod.d.ts} +1 -1
  287. package/types/gen/_models/updateArticleArticlesParams.d.ts +12 -0
  288. package/types/gen/_models/updateArticleArticlesParams.zod.d.ts +12 -0
  289. package/types/gen/_models/updateContactBody.d.ts +0 -3
  290. package/types/gen/_models/updateContactBody.zod.d.ts +0 -3
  291. package/types/gen/_models/updateOAuthService2Params.d.ts +12 -0
  292. package/types/gen/_models/updateOAuthService2Params.zod.d.ts +12 -0
  293. package/types/gen/_models/updateOAuthServiceParams.d.ts +12 -0
  294. package/types/gen/_models/updateOAuthServiceParams.zod.d.ts +12 -0
  295. package/types/gen/_models/{updateSpaceBody.d.ts → updateSpaceSpacesBody.d.ts} +1 -1
  296. package/types/gen/_models/{updateSpaceBody.zod.d.ts → updateSpaceSpacesBody.zod.d.ts} +1 -1
  297. package/types/gen/_models/updateSpaceSpacesParams.d.ts +12 -0
  298. package/types/gen/_models/updateSpaceSpacesParams.zod.d.ts +12 -0
  299. package/types/gen/_models/webitelContactsContact.d.ts +0 -3
  300. package/types/gen/_models/webitelContactsContact.zod.d.ts +0 -3
  301. package/types/gen/_models/webitelImApiGatewayV1VariableEntry.d.ts +1 -2
  302. package/types/gen/_models/webitelImApiGatewayV1VariableEntry.zod.d.ts +1 -2
  303. package/types/gen/_models/webitelImApiGatewayV1VariableEntryRequest.d.ts +1 -2
  304. package/types/gen/_models/webitelImApiGatewayV1VariableEntryRequest.zod.d.ts +1 -2
  305. package/types/gen/access-store/access-store.d.ts +1 -1
  306. package/types/gen/agent-absence-service/agent-absence-service.d.ts +1 -1
  307. package/types/gen/agent-chat-service/agent-chat-service.d.ts +1 -1
  308. package/types/gen/agent-pause-cause-service/agent-pause-cause-service.d.ts +1 -1
  309. package/types/gen/agent-service/agent-service.d.ts +1 -1
  310. package/types/gen/agent-skill-service/agent-skill-service.d.ts +1 -1
  311. package/types/gen/agent-team-service/agent-team-service.d.ts +1 -1
  312. package/types/gen/agent-working-conditions-service/agent-working-conditions-service.d.ts +1 -1
  313. package/types/gen/agent-working-schedule-service/agent-working-schedule-service.d.ts +1 -1
  314. package/types/gen/articles/articles.d.ts +12 -12
  315. package/types/gen/articles/articles.faker.d.ts +5 -5
  316. package/types/gen/articles/articles.msw.d.ts +10 -10
  317. package/types/gen/articles/articles.zod.d.ts +17 -17
  318. package/types/gen/audit-form-service/audit-form-service.d.ts +1 -1
  319. package/types/gen/auth/auth.d.ts +1 -1
  320. package/types/gen/backend-profile-service/backend-profile-service.d.ts +1 -1
  321. package/types/gen/bucket-service/bucket-service.d.ts +1 -1
  322. package/types/gen/calendar-service/calendar-service.d.ts +1 -1
  323. package/types/gen/call-service/call-service.d.ts +1 -1
  324. package/types/gen/case-comments/case-comments.d.ts +1 -1
  325. package/types/gen/case-communications/case-communications.d.ts +1 -1
  326. package/types/gen/case-files/case-files.d.ts +1 -1
  327. package/types/gen/case-links/case-links.d.ts +1 -1
  328. package/types/gen/case-timeline/case-timeline.d.ts +1 -1
  329. package/types/gen/cases/cases.d.ts +1 -1
  330. package/types/gen/cases-chat-catalog/cases-chat-catalog.d.ts +1 -1
  331. package/types/gen/catalogs/catalogs.d.ts +1 -1
  332. package/types/gen/classes/classes.d.ts +1 -1
  333. package/types/gen/close-reason-groups/close-reason-groups.d.ts +1 -1
  334. package/types/gen/close-reasons/close-reasons.d.ts +1 -1
  335. package/types/gen/cognitive-profile-service/cognitive-profile-service.d.ts +1 -1
  336. package/types/gen/comments/comments.d.ts +1 -1
  337. package/types/gen/communication-type-service/communication-type-service.d.ts +1 -1
  338. package/types/gen/config-service/config-service.d.ts +1 -1
  339. package/types/gen/contact-groups/contact-groups.d.ts +1 -1
  340. package/types/gen/contact-linking-service/contact-linking-service.d.ts +1 -1
  341. package/types/gen/contacts/contacts.d.ts +1 -1
  342. package/types/gen/contacts/contacts.zod.d.ts +0 -194
  343. package/types/gen/contacts-chat-catalog/contacts-chat-catalog.d.ts +1 -1
  344. package/types/gen/customers/customers.d.ts +1 -1
  345. package/types/gen/devices/devices.d.ts +1 -1
  346. package/types/gen/dictionaries/dictionaries.d.ts +4 -2
  347. package/types/gen/dictionaries/dictionaries.faker.d.ts +2 -1
  348. package/types/gen/dictionaries/dictionaries.msw.d.ts +3 -1
  349. package/types/gen/dictionaries/dictionaries.zod.d.ts +21 -0
  350. package/types/gen/domains/domains.d.ts +1 -1
  351. package/types/gen/dynamic-conditions/dynamic-conditions.d.ts +1 -1
  352. package/types/gen/dynamic-groups/dynamic-groups.d.ts +1 -1
  353. package/types/gen/email-profile-service/email-profile-service.d.ts +1 -1
  354. package/types/gen/emails/emails.d.ts +1 -1
  355. package/types/gen/extensions/extensions.d.ts +1 -1
  356. package/types/gen/feedback-service/feedback-service.d.ts +1 -1
  357. package/types/gen/file-policies-service/file-policies-service.d.ts +1 -1
  358. package/types/gen/file-service/file-service.d.ts +1 -1
  359. package/types/gen/file-transcript-service/file-transcript-service.d.ts +1 -1
  360. package/types/gen/forecast-calculation-service/forecast-calculation-service.d.ts +1 -1
  361. package/types/gen/ftsservice/ftsservice.d.ts +1 -1
  362. package/types/gen/groups/groups.d.ts +1 -1
  363. package/types/gen/groups/groups.zod.d.ts +0 -56
  364. package/types/gen/imclients/imclients.d.ts +1 -1
  365. package/types/gen/import-template-service/import-template-service.d.ts +1 -1
  366. package/types/gen/knowledgebase-search/knowledgebase-search.d.ts +1 -1
  367. package/types/gen/labels/labels.d.ts +1 -1
  368. package/types/gen/languages/languages.d.ts +1 -1
  369. package/types/gen/ldap/ldap.d.ts +1 -1
  370. package/types/gen/list-service/list-service.d.ts +1 -1
  371. package/types/gen/logger-service/logger-service.d.ts +1 -1
  372. package/types/gen/managers/managers.d.ts +1 -1
  373. package/types/gen/media-file-service/media-file-service.d.ts +1 -1
  374. package/types/gen/meeting-service/meeting-service.d.ts +1 -1
  375. package/types/gen/member-service/member-service.d.ts +4 -2
  376. package/types/gen/member-service/member-service.faker.d.ts +2 -1
  377. package/types/gen/member-service/member-service.msw.d.ts +3 -1
  378. package/types/gen/member-service/member-service.zod.d.ts +7 -0
  379. package/types/gen/messages/messages.d.ts +1 -1
  380. package/types/gen/oauth2-federation/oauth2-federation.d.ts +4 -4
  381. package/types/gen/oauth2-federation/oauth2-federation.zod.d.ts +62 -62
  382. package/types/gen/outbound-resource-group-service/outbound-resource-group-service.d.ts +1 -1
  383. package/types/gen/outbound-resource-service/outbound-resource-service.d.ts +1 -1
  384. package/types/gen/pause-template-service/pause-template-service.d.ts +1 -1
  385. package/types/gen/pdf-service/pdf-service.d.ts +1 -1
  386. package/types/gen/permissions/permissions.d.ts +1 -1
  387. package/types/gen/phones/phones.d.ts +1 -1
  388. package/types/gen/photos/photos.d.ts +1 -1
  389. package/types/gen/presence/presence.d.ts +1 -1
  390. package/types/gen/preset-query-service/preset-query-service.d.ts +1 -1
  391. package/types/gen/priorities/priorities.d.ts +1 -1
  392. package/types/gen/queue-bucket-service/queue-bucket-service.d.ts +1 -1
  393. package/types/gen/queue-hook-service/queue-hook-service.d.ts +1 -1
  394. package/types/gen/queue-resources-service/queue-resources-service.d.ts +1 -1
  395. package/types/gen/queue-service/queue-service.d.ts +1 -1
  396. package/types/gen/queue-service/queue-service.zod.d.ts +9 -0
  397. package/types/gen/queue-skill-service/queue-skill-service.d.ts +1 -1
  398. package/types/gen/quick-replies-service/quick-replies-service.d.ts +1 -1
  399. package/types/gen/records/records.d.ts +1 -1
  400. package/types/gen/region-service/region-service.d.ts +1 -1
  401. package/types/gen/related-cases/related-cases.d.ts +1 -1
  402. package/types/gen/routing-chat-plan-service/routing-chat-plan-service.d.ts +1 -1
  403. package/types/gen/routing-outbound-call-service/routing-outbound-call-service.d.ts +1 -1
  404. package/types/gen/routing-schema-service/routing-schema-service.d.ts +1 -1
  405. package/types/gen/routing-variable-service/routing-variable-service.d.ts +1 -1
  406. package/types/gen/schema-variables-service/schema-variables-service.d.ts +1 -1
  407. package/types/gen/schema-version-service/schema-version-service.d.ts +1 -1
  408. package/types/gen/services/services.d.ts +1 -1
  409. package/types/gen/shift-template-service/shift-template-service.d.ts +1 -1
  410. package/types/gen/skill-service/skill-service.d.ts +1 -1
  411. package/types/gen/slaconditions/slaconditions.d.ts +1 -1
  412. package/types/gen/slas/slas.d.ts +1 -1
  413. package/types/gen/sources/sources.d.ts +1 -1
  414. package/types/gen/spaces/spaces.d.ts +12 -12
  415. package/types/gen/spaces/spaces.faker.d.ts +5 -5
  416. package/types/gen/spaces/spaces.msw.d.ts +10 -10
  417. package/types/gen/spaces/spaces.zod.d.ts +19 -19
  418. package/types/gen/status-conditions/status-conditions.d.ts +1 -1
  419. package/types/gen/statuses/statuses.d.ts +1 -1
  420. package/types/gen/system-setting-service/system-setting-service.d.ts +1 -1
  421. package/types/gen/system-setting-service/system-setting-service.zod.d.ts +8 -0
  422. package/types/gen/tags/tags.d.ts +1 -1
  423. package/types/gen/team-hook-service/team-hook-service.d.ts +1 -1
  424. package/types/gen/team-trigger-service/team-trigger-service.d.ts +1 -1
  425. package/types/gen/timeline/timeline.d.ts +1 -1
  426. package/types/gen/timezones/timezones.d.ts +1 -1
  427. package/types/gen/trigger-service/trigger-service.d.ts +1 -1
  428. package/types/gen/two-factor-authentication/two-factor-authentication.d.ts +1 -1
  429. package/types/gen/types/types.d.ts +1 -1
  430. package/types/gen/user-access-tokens/user-access-tokens.d.ts +1 -1
  431. package/types/gen/user-helper-service/user-helper-service.d.ts +1 -1
  432. package/types/gen/users/users.d.ts +1 -1
  433. package/types/gen/variables/variables.d.ts +1 -1
  434. package/types/gen/web-hook-service/web-hook-service.d.ts +1 -1
  435. package/types/gen/webitel-im-api-gateway-v1-account/webitel-im-api-gateway-v1-account.d.ts +1 -1
  436. package/types/gen/webitel-im-api-gateway-v1-bots/webitel-im-api-gateway-v1-bots.d.ts +1 -1
  437. package/types/gen/webitel-im-api-gateway-v1-contacts/webitel-im-api-gateway-v1-contacts.d.ts +1 -1
  438. package/types/gen/webitel-im-api-gateway-v1-contactsettingsmanagement/webitel-im-api-gateway-v1-contactsettingsmanagement.d.ts +1 -1
  439. package/types/gen/webitel-im-api-gateway-v1-message/webitel-im-api-gateway-v1-message.d.ts +1 -1
  440. package/types/gen/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.d.ts +1 -1
  441. package/types/gen/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.d.ts +1 -1
  442. package/types/gen/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.d.ts +9 -9
  443. package/types/gen/webitel-im-api-gateway-v1-threadpermission/webitel-im-api-gateway-v1-threadpermission.d.ts +1 -1
  444. package/types/gen/webitel-im-api-provider-v1-facebookservice/webitel-im-api-provider-v1-facebookservice.d.ts +1 -1
  445. package/types/gen/webitel-im-api-provider-v1-metaappservice/webitel-im-api-provider-v1-metaappservice.d.ts +1 -1
  446. package/types/gen/webitel-im-api-provider-v1-metaoauthservice/webitel-im-api-provider-v1-metaoauthservice.d.ts +1 -1
  447. package/types/gen/webitel-im-api-provider-v1-whatsappservice/webitel-im-api-provider-v1-whatsappservice.d.ts +1 -1
  448. package/types/gen/webitel-im-provider-v1-facebookservice/webitel-im-provider-v1-facebookservice.d.ts +1 -1
  449. package/types/gen/webitel-im-provider-v1-gateservice/webitel-im-provider-v1-gateservice.d.ts +1 -1
  450. package/types/gen/webitel-im-provider-v1-gatetemplateservice/webitel-im-provider-v1-gatetemplateservice.d.ts +1 -1
  451. package/types/gen/webitel-im-provider-v1-metaappservice/webitel-im-provider-v1-metaappservice.d.ts +1 -1
  452. package/types/gen/webitel-im-provider-v1-metaoauthservice/webitel-im-provider-v1-metaoauthservice.d.ts +1 -1
  453. package/types/gen/webitel-im-provider-v1-providermessageservice/webitel-im-provider-v1-providermessageservice.d.ts +1 -1
  454. package/types/gen/webitel-im-provider-v1-whatsappservice/webitel-im-provider-v1-whatsappservice.d.ts +1 -1
  455. package/types/gen/working-condition-service/working-condition-service.d.ts +1 -1
  456. package/types/gen/working-schedule-service/working-schedule-service.d.ts +1 -1
  457. package/types/utils/gen/index.d.ts +1 -1
  458. package/src/gen/_models/oAuth2FederationUpdateOAuthServiceBodyBody.ts +0 -10
  459. package/src/gen/_models/oAuth2FederationUpdateOAuthServiceBodyBody.zod.ts +0 -10
  460. package/src/gen/_models/updateArticleParams.ts +0 -13
  461. package/src/gen/_models/updateArticleParams.zod.ts +0 -13
  462. package/src/gen/_models/updateSpaceParams.ts +0 -13
  463. package/src/gen/_models/updateSpaceParams.zod.ts +0 -13
  464. package/src/gen/_models/webitelImApiGatewayV1VariableEntryValue.ts +0 -14
  465. package/src/gen/_models/webitelImApiGatewayV1VariableEntryValue.zod.ts +0 -14
  466. package/types/gen/_models/oAuth2FederationUpdateOAuthServiceBodyBody.d.ts +0 -8
  467. package/types/gen/_models/oAuth2FederationUpdateOAuthServiceBodyBody.zod.d.ts +0 -8
  468. package/types/gen/_models/updateArticleParams.d.ts +0 -12
  469. package/types/gen/_models/updateArticleParams.zod.d.ts +0 -12
  470. package/types/gen/_models/updateSpaceParams.d.ts +0 -12
  471. package/types/gen/_models/updateSpaceParams.zod.d.ts +0 -12
  472. package/types/gen/_models/webitelImApiGatewayV1VariableEntryValue.d.ts +0 -13
  473. package/types/gen/_models/webitelImApiGatewayV1VariableEntryValue.zod.d.ts +0 -13
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import axios from '@aliasedDeps/api-services/axios';
8
8
 
9
- import type { AxiosRequestConfig, AxiosResponse } from 'axios';
9
+ import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
10
10
 
11
11
  import type {
12
12
  KnowledgebaseCombinedList,
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import axios from '@aliasedDeps/api-services/axios';
8
8
 
9
- import type { AxiosRequestConfig, AxiosResponse } from 'axios';
9
+ import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
10
10
 
11
11
  import type {
12
12
  ContactsInputLabel,
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import axios from '@aliasedDeps/api-services/axios';
8
8
 
9
- import type { AxiosRequestConfig, AxiosResponse } from 'axios';
9
+ import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
10
10
 
11
11
  import type {
12
12
  AddContactLanguagesParams,
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import axios from '@aliasedDeps/api-services/axios';
8
8
 
9
- import type { AxiosRequestConfig, AxiosResponse } from 'axios';
9
+ import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
10
10
 
11
11
  import type {
12
12
  ApiDeleteLDAPRequest,
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import axios from '@aliasedDeps/api-services/axios';
8
8
 
9
- import type { AxiosRequestConfig, AxiosResponse } from 'axios';
9
+ import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
10
10
 
11
11
  import type {
12
12
  DeleteListCommunicationParams,
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import axios from '@aliasedDeps/api-services/axios';
8
8
 
9
- import type { AxiosRequestConfig, AxiosResponse } from 'axios';
9
+ import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
10
10
 
11
11
  import type {
12
12
  LoggerLogs,
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import axios from '@aliasedDeps/api-services/axios';
8
8
 
9
- import type { AxiosRequestConfig, AxiosResponse } from 'axios';
9
+ import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
10
10
 
11
11
  import type {
12
12
  ContactsInputManager,
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import axios from '@aliasedDeps/api-services/axios';
8
8
 
9
- import type { AxiosRequestConfig, AxiosResponse } from 'axios';
9
+ import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
10
10
 
11
11
  import type {
12
12
  DeleteMediaFileParams,
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import axios from '@aliasedDeps/api-services/axios';
8
8
 
9
- import type { AxiosRequestConfig, AxiosResponse } from 'axios';
9
+ import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
10
10
 
11
11
  import type {
12
12
  WebMeetingBackendCreateMeetingRequest,
@@ -7,6 +7,7 @@
7
7
  import { faker } from '@faker-js/faker';
8
8
 
9
9
  import type {
10
+ EngineAssignAttemptResponse,
10
11
  EngineAttemptRenewalResultResponse,
11
12
  EngineAttemptResultResponse,
12
13
  EngineCreateAttemptResponse,
@@ -1650,6 +1651,9 @@ export const getSearchAttemptsHistoryResponseMock = (
1650
1651
  ...overrideResponse,
1651
1652
  });
1652
1653
 
1654
+ export const getAssignAttemptResponseMock =
1655
+ (): EngineAssignAttemptResponse => ({});
1656
+
1653
1657
  export const getAttemptsRenewalResultResponseMock =
1654
1658
  (): EngineAttemptRenewalResultResponse => ({});
1655
1659
 
@@ -9,6 +9,7 @@ import type { RequestHandlerOptions } from 'msw';
9
9
  import { HttpResponse, http } from 'msw';
10
10
 
11
11
  import type {
12
+ EngineAssignAttemptResponse,
12
13
  EngineAttemptRenewalResultResponse,
13
14
  EngineAttemptResultResponse,
14
15
  EngineCreateAttemptResponse,
@@ -1652,6 +1653,9 @@ export const getSearchAttemptsHistoryResponseMock = (
1652
1653
  ...overrideResponse,
1653
1654
  });
1654
1655
 
1656
+ export const getAssignAttemptResponseMock =
1657
+ (): EngineAssignAttemptResponse => ({});
1658
+
1655
1659
  export const getAttemptsRenewalResultResponseMock =
1656
1660
  (): EngineAttemptRenewalResultResponse => ({});
1657
1661
 
@@ -4960,6 +4964,32 @@ export const getSearchAttemptsHistoryMockHandler = (
4960
4964
  );
4961
4965
  };
4962
4966
 
4967
+ export const getAssignAttemptMockHandler = (
4968
+ overrideResponse?:
4969
+ | EngineAssignAttemptResponse
4970
+ | ((
4971
+ info: Parameters<Parameters<typeof http.patch>[1]>[0],
4972
+ ) => Promise<EngineAssignAttemptResponse> | EngineAssignAttemptResponse),
4973
+ options?: RequestHandlerOptions,
4974
+ ) => {
4975
+ return http.patch(
4976
+ '*/call_center/queues/attempts/:attemptId/assign',
4977
+ async (info: Parameters<Parameters<typeof http.patch>[1]>[0]) => {
4978
+ return HttpResponse.json(
4979
+ overrideResponse !== undefined
4980
+ ? typeof overrideResponse === 'function'
4981
+ ? await overrideResponse(info)
4982
+ : overrideResponse
4983
+ : getAssignAttemptResponseMock(),
4984
+ {
4985
+ status: 200,
4986
+ },
4987
+ );
4988
+ },
4989
+ options,
4990
+ );
4991
+ };
4992
+
4963
4993
  export const getAttemptsRenewalResultMockHandler = (
4964
4994
  overrideResponse?:
4965
4995
  | EngineAttemptRenewalResultResponse
@@ -5332,6 +5362,7 @@ export const getMemberServiceMock = () => [
5332
5362
  getSearchAttemptsMockHandler(),
5333
5363
  getResetActiveAttemptsMockHandler(),
5334
5364
  getSearchAttemptsHistoryMockHandler(),
5365
+ getAssignAttemptMockHandler(),
5335
5366
  getAttemptsRenewalResultMockHandler(),
5336
5367
  getDeleteAllMembersMockHandler(),
5337
5368
  getDeleteMembersMockHandler(),
@@ -6,10 +6,11 @@
6
6
  */
7
7
  import axios from '@aliasedDeps/api-services/axios';
8
8
 
9
- import type { AxiosRequestConfig, AxiosResponse } from 'axios';
9
+ import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
10
10
 
11
11
  import type {
12
12
  DeleteMemberParams,
13
+ EngineAssignAttemptResponse,
13
14
  EngineAttemptRenewalResultResponse,
14
15
  EngineAttemptResultResponse,
15
16
  EngineCreateAttemptResponse,
@@ -20,6 +21,7 @@ import type {
20
21
  EngineListMemberAttempt,
21
22
  EngineMemberBulkResponse,
22
23
  EngineMemberInQueue,
24
+ EngineMemberServiceAssignAttemptBody,
23
25
  EngineMemberServiceAttemptCallbackBody,
24
26
  EngineMemberServiceAttemptResultBody,
25
27
  EngineMemberServiceAttemptsRenewalResultBody,
@@ -127,6 +129,17 @@ export const // --- title start
127
129
  },
128
130
  });
129
131
  };
132
+ const assignAttempt = (
133
+ attemptId: string,
134
+ engineMemberServiceAssignAttemptBody: EngineMemberServiceAssignAttemptBody,
135
+ options?: AxiosRequestConfig,
136
+ ): Promise<AxiosResponse<EngineAssignAttemptResponse>> => {
137
+ return axiosInstance.patch(
138
+ `/call_center/queues/attempts/${attemptId}/assign`,
139
+ engineMemberServiceAssignAttemptBody,
140
+ options,
141
+ );
142
+ };
130
143
  const attemptsRenewalResult = (
131
144
  attemptId: string,
132
145
  engineMemberServiceAttemptsRenewalResultBody: EngineMemberServiceAttemptsRenewalResultBody,
@@ -348,6 +361,7 @@ export const // --- title start
348
361
  searchAttempts,
349
362
  resetActiveAttempts,
350
363
  searchAttemptsHistory,
364
+ assignAttempt,
351
365
  attemptsRenewalResult,
352
366
  deleteAllMembers,
353
367
  deleteMembers,
@@ -372,6 +386,7 @@ export type ResetActiveAttemptsResult =
372
386
  AxiosResponse<EngineResetActiveAttemptsResponse>;
373
387
  export type SearchAttemptsHistoryResult =
374
388
  AxiosResponse<EngineListHistoryAttempt>;
389
+ export type AssignAttemptResult = AxiosResponse<EngineAssignAttemptResponse>;
375
390
  export type AttemptsRenewalResultResult =
376
391
  AxiosResponse<EngineAttemptRenewalResultResponse>;
377
392
  export type DeleteAllMembersResult = AxiosResponse<EngineListMember>;
@@ -516,6 +516,21 @@ export const SearchAttemptsHistoryResponse = zod.object({
516
516
  next: zod.boolean().optional(),
517
517
  });
518
518
 
519
+ export const AssignAttemptParams = zod.object({
520
+ attempt_id: zod.string(),
521
+ });
522
+
523
+ export const AssignAttemptBody = zod.object({
524
+ agentId: zod
525
+ .string()
526
+ .optional()
527
+ .describe(
528
+ "Optional. If omitted (0), the attempt is assigned to the calling user's own agent.",
529
+ ),
530
+ });
531
+
532
+ export const AssignAttemptResponse = zod.looseObject({});
533
+
519
534
  export const AttemptsRenewalResultParams = zod.object({
520
535
  attempt_id: zod.string(),
521
536
  });
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import axios from '@aliasedDeps/api-services/axios';
8
8
 
9
- import type { AxiosRequestConfig, AxiosResponse } from 'axios';
9
+ import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
10
10
 
11
11
  import type {
12
12
  CatalogGetCustomersParams,
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import axios from '@aliasedDeps/api-services/axios';
8
8
 
9
- import type { AxiosRequestConfig, AxiosResponse } from 'axios';
9
+ import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
10
10
 
11
11
  import type {
12
12
  ApiDeleteOAuthServiceRequest,
@@ -15,8 +15,9 @@ import type {
15
15
  ApiSearchOAuthServiceResponse,
16
16
  LocateOAuthServiceParams,
17
17
  OAuth2FederationDeleteOAuthServiceBody,
18
- OAuth2FederationUpdateOAuthServiceBody,
19
18
  SearchOAuthServiceParams,
19
+ UpdateOAuthService2Params,
20
+ UpdateOAuthServiceParams,
20
21
  } from '../_models';
21
22
 
22
23
  // --- header start
@@ -79,25 +80,31 @@ export const // --- title start
79
80
  };
80
81
  const updateOAuthService2 = (
81
82
  id: string,
82
- oAuth2FederationUpdateOAuthServiceBody: OAuth2FederationUpdateOAuthServiceBody,
83
+ apiOAuthService: ApiOAuthService,
84
+ params?: UpdateOAuthService2Params,
83
85
  options?: AxiosRequestConfig,
84
86
  ): Promise<AxiosResponse<ApiOAuthService>> => {
85
- return axiosInstance.patch(
86
- `/oauth/apps/${id}`,
87
- oAuth2FederationUpdateOAuthServiceBody,
88
- options,
89
- );
87
+ return axiosInstance.patch(`/oauth/apps/${id}`, apiOAuthService, {
88
+ ...options,
89
+ params: {
90
+ ...params,
91
+ ...options?.params,
92
+ },
93
+ });
90
94
  };
91
95
  const updateOAuthService = (
92
96
  id: string,
93
- oAuth2FederationUpdateOAuthServiceBody: OAuth2FederationUpdateOAuthServiceBody,
97
+ apiOAuthService: ApiOAuthService,
98
+ params?: UpdateOAuthServiceParams,
94
99
  options?: AxiosRequestConfig,
95
100
  ): Promise<AxiosResponse<ApiOAuthService>> => {
96
- return axiosInstance.put(
97
- `/oauth/apps/${id}`,
98
- oAuth2FederationUpdateOAuthServiceBody,
99
- options,
100
- );
101
+ return axiosInstance.put(`/oauth/apps/${id}`, apiOAuthService, {
102
+ ...options,
103
+ params: {
104
+ ...params,
105
+ ...options?.params,
106
+ },
107
+ });
101
108
  };
102
109
 
103
110
  // --- footer start
@@ -286,55 +286,56 @@ export const UpdateOAuthService2Params = zod.object({
286
286
  id: zod.string().describe('Unique identifier of the OAuthService to update.'),
287
287
  });
288
288
 
289
+ export const UpdateOAuthService2QueryParams = zod.object({
290
+ fields: zod
291
+ .array(zod.string())
292
+ .optional()
293
+ .describe('Fields for partial update. PATCH'),
294
+ });
295
+
289
296
  export const UpdateOAuthService2Body = zod.object({
290
- changes: zod
297
+ authUrl: zod.string().optional(),
298
+ claims: zod
299
+ .array(
300
+ zod.object({
301
+ type: zod.string().optional(),
302
+ value: zod.string().optional(),
303
+ }),
304
+ )
305
+ .optional()
306
+ .describe('google.protobuf.Struct claims = 7;'),
307
+ clientId: zod.string().optional(),
308
+ clientSecret: zod.string().optional(),
309
+ createdAt: zod.string().optional(),
310
+ createdBy: zod
291
311
  .object({
292
- authUrl: zod.string().optional(),
293
- claims: zod
294
- .array(
295
- zod.object({
296
- type: zod.string().optional(),
297
- value: zod.string().optional(),
298
- }),
299
- )
300
- .optional()
301
- .describe('google.protobuf.Struct claims = 7;'),
302
- clientId: zod.string().optional(),
303
- clientSecret: zod.string().optional(),
304
- createdAt: zod.string().optional(),
305
- createdBy: zod
306
- .object({
307
- id: zod.string().optional(),
308
- name: zod.string().optional(),
309
- })
310
- .optional(),
311
- discoveryUrl: zod.string().optional(),
312
- domain: zod
313
- .object({
314
- id: zod.string().optional(),
315
- name: zod.string().optional(),
316
- })
317
- .optional(),
318
- enabled: zod.boolean().optional(),
319
312
  id: zod.string().optional(),
320
- logo: zod.string().optional(),
321
- metadata: zod.looseObject({}).optional(),
322
313
  name: zod.string().optional(),
323
- scopes: zod.array(zod.string()).optional(),
324
- tokenUrl: zod.string().optional(),
325
- type: zod.string().optional(),
326
- updatedAt: zod.string().optional(),
327
- updatedBy: zod
328
- .object({
329
- id: zod.string().optional(),
330
- name: zod.string().optional(),
331
- })
332
- .optional(),
333
- userinfoUrl: zod.string().optional(),
334
314
  })
335
- .optional()
336
- .describe('Configuration changes.'),
337
- fields: zod.array(zod.string()).optional(),
315
+ .optional(),
316
+ discoveryUrl: zod.string().optional(),
317
+ domain: zod
318
+ .object({
319
+ id: zod.string().optional(),
320
+ name: zod.string().optional(),
321
+ })
322
+ .optional(),
323
+ enabled: zod.boolean().optional(),
324
+ id: zod.string().optional(),
325
+ logo: zod.string().optional(),
326
+ metadata: zod.looseObject({}).optional(),
327
+ name: zod.string().optional(),
328
+ scopes: zod.array(zod.string()).optional(),
329
+ tokenUrl: zod.string().optional(),
330
+ type: zod.string().optional(),
331
+ updatedAt: zod.string().optional(),
332
+ updatedBy: zod
333
+ .object({
334
+ id: zod.string().optional(),
335
+ name: zod.string().optional(),
336
+ })
337
+ .optional(),
338
+ userinfoUrl: zod.string().optional(),
338
339
  });
339
340
 
340
341
  export const UpdateOAuthService2Response = zod.object({
@@ -386,55 +387,56 @@ export const UpdateOAuthServiceParams = zod.object({
386
387
  id: zod.string().describe('Unique identifier of the OAuthService to update.'),
387
388
  });
388
389
 
390
+ export const UpdateOAuthServiceQueryParams = zod.object({
391
+ fields: zod
392
+ .array(zod.string())
393
+ .optional()
394
+ .describe('Fields for partial update. PATCH'),
395
+ });
396
+
389
397
  export const UpdateOAuthServiceBody = zod.object({
390
- changes: zod
398
+ authUrl: zod.string().optional(),
399
+ claims: zod
400
+ .array(
401
+ zod.object({
402
+ type: zod.string().optional(),
403
+ value: zod.string().optional(),
404
+ }),
405
+ )
406
+ .optional()
407
+ .describe('google.protobuf.Struct claims = 7;'),
408
+ clientId: zod.string().optional(),
409
+ clientSecret: zod.string().optional(),
410
+ createdAt: zod.string().optional(),
411
+ createdBy: zod
391
412
  .object({
392
- authUrl: zod.string().optional(),
393
- claims: zod
394
- .array(
395
- zod.object({
396
- type: zod.string().optional(),
397
- value: zod.string().optional(),
398
- }),
399
- )
400
- .optional()
401
- .describe('google.protobuf.Struct claims = 7;'),
402
- clientId: zod.string().optional(),
403
- clientSecret: zod.string().optional(),
404
- createdAt: zod.string().optional(),
405
- createdBy: zod
406
- .object({
407
- id: zod.string().optional(),
408
- name: zod.string().optional(),
409
- })
410
- .optional(),
411
- discoveryUrl: zod.string().optional(),
412
- domain: zod
413
- .object({
414
- id: zod.string().optional(),
415
- name: zod.string().optional(),
416
- })
417
- .optional(),
418
- enabled: zod.boolean().optional(),
419
413
  id: zod.string().optional(),
420
- logo: zod.string().optional(),
421
- metadata: zod.looseObject({}).optional(),
422
414
  name: zod.string().optional(),
423
- scopes: zod.array(zod.string()).optional(),
424
- tokenUrl: zod.string().optional(),
425
- type: zod.string().optional(),
426
- updatedAt: zod.string().optional(),
427
- updatedBy: zod
428
- .object({
429
- id: zod.string().optional(),
430
- name: zod.string().optional(),
431
- })
432
- .optional(),
433
- userinfoUrl: zod.string().optional(),
434
415
  })
435
- .optional()
436
- .describe('Configuration changes.'),
437
- fields: zod.array(zod.string()).optional(),
416
+ .optional(),
417
+ discoveryUrl: zod.string().optional(),
418
+ domain: zod
419
+ .object({
420
+ id: zod.string().optional(),
421
+ name: zod.string().optional(),
422
+ })
423
+ .optional(),
424
+ enabled: zod.boolean().optional(),
425
+ id: zod.string().optional(),
426
+ logo: zod.string().optional(),
427
+ metadata: zod.looseObject({}).optional(),
428
+ name: zod.string().optional(),
429
+ scopes: zod.array(zod.string()).optional(),
430
+ tokenUrl: zod.string().optional(),
431
+ type: zod.string().optional(),
432
+ updatedAt: zod.string().optional(),
433
+ updatedBy: zod
434
+ .object({
435
+ id: zod.string().optional(),
436
+ name: zod.string().optional(),
437
+ })
438
+ .optional(),
439
+ userinfoUrl: zod.string().optional(),
438
440
  });
439
441
 
440
442
  export const UpdateOAuthServiceResponse = zod.object({
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import axios from '@aliasedDeps/api-services/axios';
8
8
 
9
- import type { AxiosRequestConfig, AxiosResponse } from 'axios';
9
+ import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
10
10
 
11
11
  import type {
12
12
  DeleteOutboundResourceGroupParams,
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import axios from '@aliasedDeps/api-services/axios';
8
8
 
9
- import type { AxiosRequestConfig, AxiosResponse } from 'axios';
9
+ import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
10
10
 
11
11
  import type {
12
12
  DeleteOutboundResourceDisplayParams,
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import axios from '@aliasedDeps/api-services/axios';
8
8
 
9
- import type { AxiosRequestConfig, AxiosResponse } from 'axios';
9
+ import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
10
10
 
11
11
  import type {
12
12
  PauseTemplateServiceReadPauseTemplateParams,
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import axios from '@aliasedDeps/api-services/axios';
8
8
 
9
- import type { AxiosRequestConfig, AxiosResponse } from 'axios';
9
+ import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
10
10
 
11
11
  import type {
12
12
  ListCallExportsParams,
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import axios from '@aliasedDeps/api-services/axios';
8
8
 
9
- import type { AxiosRequestConfig, AxiosResponse } from 'axios';
9
+ import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
10
10
 
11
11
  import type {
12
12
  ApiSearchPermissionResponse,
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import axios from '@aliasedDeps/api-services/axios';
8
8
 
9
- import type { AxiosRequestConfig, AxiosResponse } from 'axios';
9
+ import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
10
10
 
11
11
  import type {
12
12
  ContactsInputPhoneNumber,
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import axios from '@aliasedDeps/api-services/axios';
8
8
 
9
- import type { AxiosRequestConfig, AxiosResponse } from 'axios';
9
+ import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
10
10
 
11
11
  import type {
12
12
  ContactsInputPhoto,
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import axios from '@aliasedDeps/api-services/axios';
8
8
 
9
- import type { AxiosRequestConfig, AxiosResponse } from 'axios';
9
+ import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
10
10
 
11
11
  import type {
12
12
  ApiPresenceStatus,
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import axios from '@aliasedDeps/api-services/axios';
8
8
 
9
- import type { AxiosRequestConfig, AxiosResponse } from 'axios';
9
+ import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
10
10
 
11
11
  import type {
12
12
  EngineCreatePresetQueryRequest,
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import axios from '@aliasedDeps/api-services/axios';
8
8
 
9
- import type { AxiosRequestConfig, AxiosResponse } from 'axios';
9
+ import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
10
10
 
11
11
  import type {
12
12
  CreatePriorityParams,
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import axios from '@aliasedDeps/api-services/axios';
8
8
 
9
- import type { AxiosRequestConfig, AxiosResponse } from 'axios';
9
+ import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
10
10
 
11
11
  import type {
12
12
  EngineListQueueBucket,
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import axios from '@aliasedDeps/api-services/axios';
8
8
 
9
- import type { AxiosRequestConfig, AxiosResponse } from 'axios';
9
+ import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
10
10
 
11
11
  import type {
12
12
  EngineListQueueHook,
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import axios from '@aliasedDeps/api-services/axios';
8
8
 
9
- import type { AxiosRequestConfig, AxiosResponse } from 'axios';
9
+ import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
10
10
 
11
11
  import type {
12
12
  DeleteQueueResourceGroupParams,