@webitel/api-services 26.8.39 → 26.8.41

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 (455) hide show
  1. package/package.json +1 -1
  2. package/src/api/clients/object/object.ts +15 -1
  3. package/src/gen/_models/catalogGetCustomersParams.ts +4 -0
  4. package/src/gen/_models/catalogGetDialogsParams.ts +8 -0
  5. package/src/gen/_models/catalogGetHistory2Params.ts +4 -0
  6. package/src/gen/_models/catalogGetHistoryParams.ts +4 -0
  7. package/src/gen/_models/catalogGetMembersParams.ts +8 -0
  8. package/src/gen/_models/downloadCallScreenrecordingArchiveParams.ts +2 -2
  9. package/src/gen/_models/engineCallServicePatchHistoryCallAttemptBody.ts +12 -0
  10. package/src/gen/_models/engineCallServicePatchHistoryCallAttemptBodyVariables.ts +10 -0
  11. package/src/gen/_models/engineChatTag.ts +11 -0
  12. package/src/gen/_models/engineCreateRoutingOutboundCallRequest.ts +1 -0
  13. package/src/gen/_models/engineHistoryCall.ts +1 -0
  14. package/src/gen/_models/engineListChatTag.ts +12 -0
  15. package/src/gen/_models/enginePatchHistoryCallAttemptResponse.ts +13 -0
  16. package/src/gen/_models/enginePatchHistoryCallAttemptResponseVariables.ts +10 -0
  17. package/src/gen/_models/engineRoutingOutboundCall.ts +1 -0
  18. package/src/gen/_models/engineRoutingOutboundCallCompact.ts +1 -0
  19. package/src/gen/_models/engineRoutingOutboundCallServicePatchRoutingOutboundCallBody.ts +1 -0
  20. package/src/gen/_models/engineRoutingOutboundCallServiceUpdateRoutingOutboundCallBody.ts +1 -0
  21. package/src/gen/_models/engineTeamChatTagServiceCreateChatTagBody.ts +10 -0
  22. package/src/gen/_models/engineTeamChatTagServiceUpdateChatTagBody.ts +10 -0
  23. package/src/gen/_models/gateServiceListGatesTypesItem.ts +1 -0
  24. package/src/gen/_models/index.ts +58 -0
  25. package/src/gen/_models/listArticleCasesParams.ts +11 -0
  26. package/src/gen/_models/listCaseArticlesParams.ts +11 -0
  27. package/src/gen/_models/locateCaseNeighborDirection.ts +15 -0
  28. package/src/gen/_models/locateCaseNeighborParams.ts +27 -0
  29. package/src/gen/_models/locateCaseParams.ts +9 -0
  30. package/src/gen/_models/searchAgentChatTagParams.ts +15 -0
  31. package/src/gen/_models/searchChatTagParams.ts +15 -0
  32. package/src/gen/_models/searchRoutingOutboundCallParams.ts +1 -0
  33. package/src/gen/_models/searchScreenRecordingsByCallParams.ts +2 -0
  34. package/src/gen/_models/threadTagManagementSearchParams.ts +11 -0
  35. package/src/gen/_models/updateCase2Body.ts +1 -0
  36. package/src/gen/_models/updateCaseBody.ts +1 -0
  37. package/src/gen/_models/updateCaseInputBody.ts +1 -0
  38. package/src/gen/_models/viberBmServiceListViberBmParams.ts +12 -0
  39. package/src/gen/_models/webitelCasesCase.ts +5 -0
  40. package/src/gen/_models/webitelCasesCaseArticle.ts +24 -0
  41. package/src/gen/_models/webitelCasesCaseArticleList.ts +13 -0
  42. package/src/gen/_models/webitelCasesCaseArticleSource.ts +21 -0
  43. package/src/gen/_models/webitelCasesCaseNavDirection.ts +18 -0
  44. package/src/gen/_models/webitelCasesInputCase.ts +1 -0
  45. package/src/gen/_models/webitelCasesInputCaseArticle.ts +12 -0
  46. package/src/gen/_models/webitelCasesInputCreateCase.ts +2 -0
  47. package/src/gen/_models/webitelChatPeer.ts +2 -0
  48. package/src/gen/_models/webitelImApiGatewayV1ChatTag.ts +13 -0
  49. package/src/gen/_models/webitelImApiGatewayV1ForwardMessagesRequest.ts +0 -5
  50. package/src/gen/_models/webitelImApiGatewayV1ForwardMessagesResponse.ts +3 -5
  51. package/src/gen/_models/webitelImApiGatewayV1RemoveThreadTagResponse.ts +10 -0
  52. package/src/gen/_models/webitelImApiGatewayV1ReplyToMessage.ts +1 -1
  53. package/src/gen/_models/webitelImApiGatewayV1SearchThreadTagsResponse.ts +11 -0
  54. package/src/gen/_models/webitelImApiGatewayV1SendContactRequest.ts +4 -0
  55. package/src/gen/_models/webitelImApiGatewayV1SendDocumentRequest.ts +7 -0
  56. package/src/gen/_models/webitelImApiGatewayV1SendDocumentRequestVariables.ts +15 -0
  57. package/src/gen/_models/webitelImApiGatewayV1SendLocationRequest.ts +4 -0
  58. package/src/gen/_models/webitelImApiGatewayV1SendTextRequest.ts +2 -0
  59. package/src/gen/_models/webitelImApiGatewayV1SendTextRequestVariables.ts +10 -0
  60. package/src/gen/_models/webitelImApiGatewayV1SkippedMessage.ts +2 -2
  61. package/src/gen/_models/webitelImApiGatewayV1ThreadTagManagementAddTagBody.ts +10 -0
  62. package/src/gen/_models/webitelImApiProviderV1ProviderCreateViberBmGateRequest.ts +17 -0
  63. package/src/gen/_models/webitelImApiProviderV1ProviderCreateViberBmGateResponse.ts +11 -0
  64. package/src/gen/_models/webitelImApiProviderV1ProviderDeleteViberBmGateResponse.ts +11 -0
  65. package/src/gen/_models/webitelImApiProviderV1ProviderGetViberBmGateResponse.ts +11 -0
  66. package/src/gen/_models/webitelImApiProviderV1ProviderListViberBmGatesResponse.ts +12 -0
  67. package/src/gen/_models/webitelImApiProviderV1ProviderUpdateViberBmGateResponse.ts +11 -0
  68. package/src/gen/_models/webitelImApiProviderV1ProviderViberBmGate.ts +19 -0
  69. package/src/gen/_models/webitelImApiProviderV1SendViberBmTemplateResponse.ts +11 -0
  70. package/src/gen/_models/webitelImApiProviderV1ViberBmServiceSendViberBmTemplateBody.ts +14 -0
  71. package/src/gen/_models/webitelImApiProviderV1ViberBmServiceSendViberBmTemplateBodyParameters.ts +11 -0
  72. package/src/gen/_models/webitelImApiProviderV1ViberBmServiceUpdateViberBmBody.ts +17 -0
  73. package/src/gen/_models/webitelImProviderV1CustomServiceUpdateCustomGateBody.ts +23 -0
  74. package/src/gen/_models/webitelImProviderV1Entity.ts +34 -0
  75. package/src/gen/_models/webitelImProviderV1ProviderCreateCustomGateRequest.ts +24 -0
  76. package/src/gen/_models/webitelImProviderV1ProviderCreateCustomGateResponse.ts +14 -0
  77. package/src/gen/_models/webitelImProviderV1ProviderCreateViberBmGateRequest.ts +20 -0
  78. package/src/gen/_models/webitelImProviderV1ProviderCreateViberBmGateResponse.ts +14 -0
  79. package/src/gen/_models/webitelImProviderV1ProviderCustomGate.ts +28 -0
  80. package/src/gen/_models/webitelImProviderV1ProviderDeleteCustomGateResponse.ts +11 -0
  81. package/src/gen/_models/webitelImProviderV1ProviderDeleteViberBmGateResponse.ts +11 -0
  82. package/src/gen/_models/webitelImProviderV1ProviderGetCustomGateResponse.ts +11 -0
  83. package/src/gen/_models/webitelImProviderV1ProviderGetViberBmGateResponse.ts +11 -0
  84. package/src/gen/_models/webitelImProviderV1ProviderListViberBmGatesResponse.ts +15 -0
  85. package/src/gen/_models/webitelImProviderV1ProviderSendDocumentRequest.ts +8 -0
  86. package/src/gen/_models/webitelImProviderV1ProviderSendTextRequest.ts +8 -0
  87. package/src/gen/_models/webitelImProviderV1ProviderType.ts +1 -0
  88. package/src/gen/_models/webitelImProviderV1ProviderUpdateCustomGateResponse.ts +14 -0
  89. package/src/gen/_models/webitelImProviderV1ProviderUpdateViberBmGateResponse.ts +14 -0
  90. package/src/gen/_models/webitelImProviderV1ProviderViberBmGate.ts +22 -0
  91. package/src/gen/_models/webitelImProviderV1SendViberBmTemplateResponse.ts +14 -0
  92. package/src/gen/_models/webitelImProviderV1ViberBmServiceSendViberBmTemplateBody.ts +17 -0
  93. package/src/gen/_models/webitelImProviderV1ViberBmServiceSendViberBmTemplateBodyParameters.ts +11 -0
  94. package/src/gen/_models/webitelImProviderV1ViberBmServiceUpdateViberBmBody.ts +20 -0
  95. package/src/gen/_models/webitelKbArticleType.ts +1 -1
  96. package/src/gen/_models/webitelKbAttachmentsAttachFileBody.ts +14 -0
  97. package/src/gen/_models/webitelKbFile.ts +1 -3
  98. package/src/gen-wire/_models/catalogGetCustomersParams.ts +4 -0
  99. package/src/gen-wire/_models/catalogGetDialogsParams.ts +8 -0
  100. package/src/gen-wire/_models/catalogGetHistory2Params.ts +4 -0
  101. package/src/gen-wire/_models/catalogGetHistoryParams.ts +4 -0
  102. package/src/gen-wire/_models/catalogGetMembersParams.ts +8 -0
  103. package/src/gen-wire/_models/downloadCallScreenrecordingArchiveParams.ts +2 -2
  104. package/src/gen-wire/_models/engineCallServicePatchHistoryCallAttemptBody.ts +12 -0
  105. package/src/gen-wire/_models/engineCallServicePatchHistoryCallAttemptBodyVariables.ts +10 -0
  106. package/src/gen-wire/_models/engineChatTag.ts +11 -0
  107. package/src/gen-wire/_models/engineCreateRoutingOutboundCallRequest.ts +1 -0
  108. package/src/gen-wire/_models/engineHistoryCall.ts +1 -0
  109. package/src/gen-wire/_models/engineListChatTag.ts +12 -0
  110. package/src/gen-wire/_models/enginePatchHistoryCallAttemptResponse.ts +13 -0
  111. package/src/gen-wire/_models/enginePatchHistoryCallAttemptResponseVariables.ts +10 -0
  112. package/src/gen-wire/_models/engineRoutingOutboundCall.ts +1 -0
  113. package/src/gen-wire/_models/engineRoutingOutboundCallCompact.ts +1 -0
  114. package/src/gen-wire/_models/engineRoutingOutboundCallServicePatchRoutingOutboundCallBody.ts +1 -0
  115. package/src/gen-wire/_models/engineRoutingOutboundCallServiceUpdateRoutingOutboundCallBody.ts +1 -0
  116. package/src/gen-wire/_models/engineTeamChatTagServiceCreateChatTagBody.ts +10 -0
  117. package/src/gen-wire/_models/engineTeamChatTagServiceUpdateChatTagBody.ts +10 -0
  118. package/src/gen-wire/_models/gateServiceListGatesTypesItem.ts +1 -0
  119. package/src/gen-wire/_models/index.ts +58 -0
  120. package/src/gen-wire/_models/listArticleCasesParams.ts +11 -0
  121. package/src/gen-wire/_models/listCaseArticlesParams.ts +11 -0
  122. package/src/gen-wire/_models/locateCaseNeighborDirection.ts +15 -0
  123. package/src/gen-wire/_models/locateCaseNeighborParams.ts +27 -0
  124. package/src/gen-wire/_models/locateCaseParams.ts +9 -0
  125. package/src/gen-wire/_models/searchAgentChatTagParams.ts +15 -0
  126. package/src/gen-wire/_models/searchChatTagParams.ts +15 -0
  127. package/src/gen-wire/_models/searchRoutingOutboundCallParams.ts +1 -0
  128. package/src/gen-wire/_models/searchScreenRecordingsByCallParams.ts +2 -0
  129. package/src/gen-wire/_models/threadTagManagementSearchParams.ts +11 -0
  130. package/src/gen-wire/_models/updateCase2Body.ts +1 -0
  131. package/src/gen-wire/_models/updateCaseBody.ts +1 -0
  132. package/src/gen-wire/_models/updateCaseInputBody.ts +1 -0
  133. package/src/gen-wire/_models/viberBmServiceListViberBmParams.ts +12 -0
  134. package/src/gen-wire/_models/webitelCasesCase.ts +5 -0
  135. package/src/gen-wire/_models/webitelCasesCaseArticle.ts +24 -0
  136. package/src/gen-wire/_models/webitelCasesCaseArticleList.ts +13 -0
  137. package/src/gen-wire/_models/webitelCasesCaseArticleSource.ts +21 -0
  138. package/src/gen-wire/_models/webitelCasesCaseNavDirection.ts +18 -0
  139. package/src/gen-wire/_models/webitelCasesInputCase.ts +1 -0
  140. package/src/gen-wire/_models/webitelCasesInputCaseArticle.ts +12 -0
  141. package/src/gen-wire/_models/webitelCasesInputCreateCase.ts +2 -0
  142. package/src/gen-wire/_models/webitelChatPeer.ts +2 -0
  143. package/src/gen-wire/_models/webitelImApiGatewayV1ChatTag.ts +13 -0
  144. package/src/gen-wire/_models/webitelImApiGatewayV1ForwardMessagesRequest.ts +0 -5
  145. package/src/gen-wire/_models/webitelImApiGatewayV1ForwardMessagesResponse.ts +3 -5
  146. package/src/gen-wire/_models/webitelImApiGatewayV1RemoveThreadTagResponse.ts +10 -0
  147. package/src/gen-wire/_models/webitelImApiGatewayV1ReplyToMessage.ts +1 -1
  148. package/src/gen-wire/_models/webitelImApiGatewayV1SearchThreadTagsResponse.ts +11 -0
  149. package/src/gen-wire/_models/webitelImApiGatewayV1SendContactRequest.ts +4 -0
  150. package/src/gen-wire/_models/webitelImApiGatewayV1SendDocumentRequest.ts +7 -0
  151. package/src/gen-wire/_models/webitelImApiGatewayV1SendDocumentRequestVariables.ts +15 -0
  152. package/src/gen-wire/_models/webitelImApiGatewayV1SendLocationRequest.ts +4 -0
  153. package/src/gen-wire/_models/webitelImApiGatewayV1SendTextRequest.ts +2 -0
  154. package/src/gen-wire/_models/webitelImApiGatewayV1SendTextRequestVariables.ts +10 -0
  155. package/src/gen-wire/_models/webitelImApiGatewayV1SkippedMessage.ts +2 -2
  156. package/src/gen-wire/_models/webitelImApiGatewayV1ThreadTagManagementAddTagBody.ts +10 -0
  157. package/src/gen-wire/_models/webitelImApiProviderV1ProviderCreateViberBmGateRequest.ts +17 -0
  158. package/src/gen-wire/_models/webitelImApiProviderV1ProviderCreateViberBmGateResponse.ts +11 -0
  159. package/src/gen-wire/_models/webitelImApiProviderV1ProviderDeleteViberBmGateResponse.ts +11 -0
  160. package/src/gen-wire/_models/webitelImApiProviderV1ProviderGetViberBmGateResponse.ts +11 -0
  161. package/src/gen-wire/_models/webitelImApiProviderV1ProviderListViberBmGatesResponse.ts +12 -0
  162. package/src/gen-wire/_models/webitelImApiProviderV1ProviderUpdateViberBmGateResponse.ts +11 -0
  163. package/src/gen-wire/_models/webitelImApiProviderV1ProviderViberBmGate.ts +19 -0
  164. package/src/gen-wire/_models/webitelImApiProviderV1SendViberBmTemplateResponse.ts +11 -0
  165. package/src/gen-wire/_models/webitelImApiProviderV1ViberBmServiceSendViberBmTemplateBody.ts +14 -0
  166. package/src/gen-wire/_models/webitelImApiProviderV1ViberBmServiceSendViberBmTemplateBodyParameters.ts +11 -0
  167. package/src/gen-wire/_models/webitelImApiProviderV1ViberBmServiceUpdateViberBmBody.ts +17 -0
  168. package/src/gen-wire/_models/webitelImProviderV1CustomServiceUpdateCustomGateBody.ts +23 -0
  169. package/src/gen-wire/_models/webitelImProviderV1Entity.ts +34 -0
  170. package/src/gen-wire/_models/webitelImProviderV1ProviderCreateCustomGateRequest.ts +24 -0
  171. package/src/gen-wire/_models/webitelImProviderV1ProviderCreateCustomGateResponse.ts +14 -0
  172. package/src/gen-wire/_models/webitelImProviderV1ProviderCreateViberBmGateRequest.ts +20 -0
  173. package/src/gen-wire/_models/webitelImProviderV1ProviderCreateViberBmGateResponse.ts +14 -0
  174. package/src/gen-wire/_models/webitelImProviderV1ProviderCustomGate.ts +28 -0
  175. package/src/gen-wire/_models/webitelImProviderV1ProviderDeleteCustomGateResponse.ts +11 -0
  176. package/src/gen-wire/_models/webitelImProviderV1ProviderDeleteViberBmGateResponse.ts +11 -0
  177. package/src/gen-wire/_models/webitelImProviderV1ProviderGetCustomGateResponse.ts +11 -0
  178. package/src/gen-wire/_models/webitelImProviderV1ProviderGetViberBmGateResponse.ts +11 -0
  179. package/src/gen-wire/_models/webitelImProviderV1ProviderListViberBmGatesResponse.ts +15 -0
  180. package/src/gen-wire/_models/webitelImProviderV1ProviderSendDocumentRequest.ts +8 -0
  181. package/src/gen-wire/_models/webitelImProviderV1ProviderSendTextRequest.ts +8 -0
  182. package/src/gen-wire/_models/webitelImProviderV1ProviderType.ts +1 -0
  183. package/src/gen-wire/_models/webitelImProviderV1ProviderUpdateCustomGateResponse.ts +14 -0
  184. package/src/gen-wire/_models/webitelImProviderV1ProviderUpdateViberBmGateResponse.ts +14 -0
  185. package/src/gen-wire/_models/webitelImProviderV1ProviderViberBmGate.ts +22 -0
  186. package/src/gen-wire/_models/webitelImProviderV1SendViberBmTemplateResponse.ts +14 -0
  187. package/src/gen-wire/_models/webitelImProviderV1ViberBmServiceSendViberBmTemplateBody.ts +17 -0
  188. package/src/gen-wire/_models/webitelImProviderV1ViberBmServiceSendViberBmTemplateBodyParameters.ts +11 -0
  189. package/src/gen-wire/_models/webitelImProviderV1ViberBmServiceUpdateViberBmBody.ts +20 -0
  190. package/src/gen-wire/_models/webitelKbArticleType.ts +1 -1
  191. package/src/gen-wire/_models/webitelKbAttachmentsAttachFileBody.ts +14 -0
  192. package/src/gen-wire/_models/webitelKbFile.ts +1 -3
  193. package/src/gen-wire/agent-chat-service/agent-chat-service.zod.ts +40 -0
  194. package/src/gen-wire/agent-chat-tag-service/agent-chat-tag-service.ts +41 -0
  195. package/src/gen-wire/agent-chat-tag-service/agent-chat-tag-service.zod.ts +28 -0
  196. package/src/gen-wire/attachments/attachments.ts +17 -0
  197. package/src/gen-wire/attachments/attachments.zod.ts +42 -4
  198. package/src/gen-wire/call-service/call-service.ts +19 -0
  199. package/src/gen-wire/call-service/call-service.zod.ts +21 -0
  200. package/src/gen-wire/case-articles/case-articles.ts +100 -0
  201. package/src/gen-wire/case-articles/case-articles.zod.ts +256 -0
  202. package/src/gen-wire/cases/cases.ts +19 -0
  203. package/src/gen-wire/cases/cases.zod.ts +781 -69
  204. package/src/gen-wire/cases-chat-catalog/cases-chat-catalog.zod.ts +41 -0
  205. package/src/gen-wire/customer/customer.zod.ts +2 -0
  206. package/src/gen-wire/file-service/file-service.zod.ts +2 -0
  207. package/src/gen-wire/index.ts +58 -0
  208. package/src/gen-wire/index.zod.ts +151 -0
  209. package/src/gen-wire/logger-service/logger-service.ts +9 -0
  210. package/src/gen-wire/logger-service/logger-service.zod.ts +31 -0
  211. package/src/gen-wire/messages/messages.zod.ts +158 -0
  212. package/src/gen-wire/pdf-service/pdf-service.zod.ts +2 -2
  213. package/src/gen-wire/routing-outbound-call-service/routing-outbound-call-service.zod.ts +10 -0
  214. package/src/gen-wire/team-chat-tag-service/team-chat-tag-service.ts +87 -0
  215. package/src/gen-wire/team-chat-tag-service/team-chat-tag-service.zod.ts +69 -0
  216. package/src/gen-wire/webitel-im-api-gateway-v1-message/webitel-im-api-gateway-v1-message.zod.ts +51 -12
  217. package/src/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.ts +3 -3
  218. package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.ts +4 -4
  219. package/src/gen-wire/webitel-im-api-gateway-v1-threadtagmanagement/webitel-im-api-gateway-v1-threadtagmanagement.ts +84 -0
  220. package/src/gen-wire/webitel-im-api-gateway-v1-threadtagmanagement/webitel-im-api-gateway-v1-threadtagmanagement.zod.ts +47 -0
  221. package/src/gen-wire/webitel-im-api-provider-v1-viberbmservice/webitel-im-api-provider-v1-viberbmservice.ts +93 -0
  222. package/src/gen-wire/webitel-im-api-provider-v1-viberbmservice/webitel-im-api-provider-v1-viberbmservice.zod.ts +154 -0
  223. package/src/gen-wire/webitel-im-provider-v1-customservice/webitel-im-provider-v1-customservice.ts +99 -0
  224. package/src/gen-wire/webitel-im-provider-v1-customservice/webitel-im-provider-v1-customservice.zod.ts +319 -0
  225. package/src/gen-wire/webitel-im-provider-v1-gateservice/webitel-im-provider-v1-gateservice.zod.ts +2 -0
  226. package/src/gen-wire/webitel-im-provider-v1-providermessageservice/webitel-im-provider-v1-providermessageservice.zod.ts +81 -0
  227. package/src/gen-wire/webitel-im-provider-v1-viberbmservice/webitel-im-provider-v1-viberbmservice.ts +144 -0
  228. package/src/gen-wire/webitel-im-provider-v1-viberbmservice/webitel-im-provider-v1-viberbmservice.zod.ts +274 -0
  229. package/types/.tsbuildinfo +1 -1
  230. package/types/api/clients/object/object.d.ts +2 -1
  231. package/types/gen/_models/catalogGetCustomersParams.d.ts +4 -0
  232. package/types/gen/_models/catalogGetDialogsParams.d.ts +8 -0
  233. package/types/gen/_models/catalogGetHistory2Params.d.ts +4 -0
  234. package/types/gen/_models/catalogGetHistoryParams.d.ts +4 -0
  235. package/types/gen/_models/catalogGetMembersParams.d.ts +8 -0
  236. package/types/gen/_models/downloadCallScreenrecordingArchiveParams.d.ts +2 -2
  237. package/types/gen/_models/engineCallServicePatchHistoryCallAttemptBody.d.ts +11 -0
  238. package/types/gen/_models/engineCallServicePatchHistoryCallAttemptBodyVariables.d.ts +9 -0
  239. package/types/gen/_models/engineChatTag.d.ts +10 -0
  240. package/types/gen/_models/engineCreateRoutingOutboundCallRequest.d.ts +1 -0
  241. package/types/gen/_models/engineHistoryCall.d.ts +1 -0
  242. package/types/gen/_models/engineListChatTag.d.ts +11 -0
  243. package/types/gen/_models/enginePatchHistoryCallAttemptResponse.d.ts +12 -0
  244. package/types/gen/_models/enginePatchHistoryCallAttemptResponseVariables.d.ts +9 -0
  245. package/types/gen/_models/engineRoutingOutboundCall.d.ts +1 -0
  246. package/types/gen/_models/engineRoutingOutboundCallCompact.d.ts +1 -0
  247. package/types/gen/_models/engineRoutingOutboundCallServicePatchRoutingOutboundCallBody.d.ts +1 -0
  248. package/types/gen/_models/engineRoutingOutboundCallServiceUpdateRoutingOutboundCallBody.d.ts +1 -0
  249. package/types/gen/_models/engineTeamChatTagServiceCreateChatTagBody.d.ts +9 -0
  250. package/types/gen/_models/engineTeamChatTagServiceUpdateChatTagBody.d.ts +9 -0
  251. package/types/gen/_models/gateServiceListGatesTypesItem.d.ts +1 -0
  252. package/types/gen/_models/index.d.ts +58 -0
  253. package/types/gen/_models/listArticleCasesParams.d.ts +10 -0
  254. package/types/gen/_models/listCaseArticlesParams.d.ts +10 -0
  255. package/types/gen/_models/locateCaseNeighborDirection.d.ts +12 -0
  256. package/types/gen/_models/locateCaseNeighborParams.d.ts +26 -0
  257. package/types/gen/_models/locateCaseParams.d.ts +9 -0
  258. package/types/gen/_models/searchAgentChatTagParams.d.ts +14 -0
  259. package/types/gen/_models/searchChatTagParams.d.ts +14 -0
  260. package/types/gen/_models/searchRoutingOutboundCallParams.d.ts +1 -0
  261. package/types/gen/_models/searchScreenRecordingsByCallParams.d.ts +2 -0
  262. package/types/gen/_models/threadTagManagementSearchParams.d.ts +10 -0
  263. package/types/gen/_models/updateCase2Body.d.ts +1 -0
  264. package/types/gen/_models/updateCaseBody.d.ts +1 -0
  265. package/types/gen/_models/updateCaseInputBody.d.ts +1 -0
  266. package/types/gen/_models/viberBmServiceListViberBmParams.d.ts +11 -0
  267. package/types/gen/_models/webitelCasesCase.d.ts +5 -0
  268. package/types/gen/_models/webitelCasesCaseArticle.d.ts +23 -0
  269. package/types/gen/_models/webitelCasesCaseArticleList.d.ts +12 -0
  270. package/types/gen/_models/webitelCasesCaseArticleSource.d.ts +18 -0
  271. package/types/gen/_models/webitelCasesCaseNavDirection.d.ts +15 -0
  272. package/types/gen/_models/webitelCasesInputCase.d.ts +1 -0
  273. package/types/gen/_models/webitelCasesInputCaseArticle.d.ts +11 -0
  274. package/types/gen/_models/webitelCasesInputCreateCase.d.ts +2 -0
  275. package/types/gen/_models/webitelChatPeer.d.ts +2 -0
  276. package/types/gen/_models/webitelImApiGatewayV1ChatTag.d.ts +12 -0
  277. package/types/gen/_models/webitelImApiGatewayV1ForwardMessagesRequest.d.ts +0 -5
  278. package/types/gen/_models/webitelImApiGatewayV1ForwardMessagesResponse.d.ts +3 -5
  279. package/types/gen/_models/webitelImApiGatewayV1RemoveThreadTagResponse.d.ts +9 -0
  280. package/types/gen/_models/webitelImApiGatewayV1ReplyToMessage.d.ts +1 -1
  281. package/types/gen/_models/webitelImApiGatewayV1SearchThreadTagsResponse.d.ts +10 -0
  282. package/types/gen/_models/webitelImApiGatewayV1SendContactRequest.d.ts +4 -0
  283. package/types/gen/_models/webitelImApiGatewayV1SendDocumentRequest.d.ts +7 -0
  284. package/types/gen/_models/webitelImApiGatewayV1SendDocumentRequestVariables.d.ts +14 -0
  285. package/types/gen/_models/webitelImApiGatewayV1SendLocationRequest.d.ts +4 -0
  286. package/types/gen/_models/webitelImApiGatewayV1SendTextRequest.d.ts +2 -0
  287. package/types/gen/_models/webitelImApiGatewayV1SendTextRequestVariables.d.ts +9 -0
  288. package/types/gen/_models/webitelImApiGatewayV1SkippedMessage.d.ts +2 -2
  289. package/types/gen/_models/webitelImApiGatewayV1ThreadTagManagementAddTagBody.d.ts +9 -0
  290. package/types/gen/_models/webitelImApiProviderV1ProviderCreateViberBmGateRequest.d.ts +16 -0
  291. package/types/gen/_models/webitelImApiProviderV1ProviderCreateViberBmGateResponse.d.ts +10 -0
  292. package/types/gen/_models/webitelImApiProviderV1ProviderDeleteViberBmGateResponse.d.ts +10 -0
  293. package/types/gen/_models/webitelImApiProviderV1ProviderGetViberBmGateResponse.d.ts +10 -0
  294. package/types/gen/_models/webitelImApiProviderV1ProviderListViberBmGatesResponse.d.ts +11 -0
  295. package/types/gen/_models/webitelImApiProviderV1ProviderUpdateViberBmGateResponse.d.ts +10 -0
  296. package/types/gen/_models/webitelImApiProviderV1ProviderViberBmGate.d.ts +18 -0
  297. package/types/gen/_models/webitelImApiProviderV1SendViberBmTemplateResponse.d.ts +10 -0
  298. package/types/gen/_models/webitelImApiProviderV1ViberBmServiceSendViberBmTemplateBody.d.ts +13 -0
  299. package/types/gen/_models/webitelImApiProviderV1ViberBmServiceSendViberBmTemplateBodyParameters.d.ts +9 -0
  300. package/types/gen/_models/webitelImApiProviderV1ViberBmServiceUpdateViberBmBody.d.ts +16 -0
  301. package/types/gen/_models/webitelImProviderV1CustomServiceUpdateCustomGateBody.d.ts +22 -0
  302. package/types/gen/_models/webitelImProviderV1Entity.d.ts +33 -0
  303. package/types/gen/_models/webitelImProviderV1ProviderCreateCustomGateRequest.d.ts +23 -0
  304. package/types/gen/_models/webitelImProviderV1ProviderCreateCustomGateResponse.d.ts +13 -0
  305. package/types/gen/_models/webitelImProviderV1ProviderCreateViberBmGateRequest.d.ts +19 -0
  306. package/types/gen/_models/webitelImProviderV1ProviderCreateViberBmGateResponse.d.ts +13 -0
  307. package/types/gen/_models/webitelImProviderV1ProviderCustomGate.d.ts +27 -0
  308. package/types/gen/_models/webitelImProviderV1ProviderDeleteCustomGateResponse.d.ts +10 -0
  309. package/types/gen/_models/webitelImProviderV1ProviderDeleteViberBmGateResponse.d.ts +10 -0
  310. package/types/gen/_models/webitelImProviderV1ProviderGetCustomGateResponse.d.ts +10 -0
  311. package/types/gen/_models/webitelImProviderV1ProviderGetViberBmGateResponse.d.ts +10 -0
  312. package/types/gen/_models/webitelImProviderV1ProviderListViberBmGatesResponse.d.ts +14 -0
  313. package/types/gen/_models/webitelImProviderV1ProviderSendDocumentRequest.d.ts +8 -0
  314. package/types/gen/_models/webitelImProviderV1ProviderSendTextRequest.d.ts +8 -0
  315. package/types/gen/_models/webitelImProviderV1ProviderType.d.ts +1 -0
  316. package/types/gen/_models/webitelImProviderV1ProviderUpdateCustomGateResponse.d.ts +13 -0
  317. package/types/gen/_models/webitelImProviderV1ProviderUpdateViberBmGateResponse.d.ts +13 -0
  318. package/types/gen/_models/webitelImProviderV1ProviderViberBmGate.d.ts +21 -0
  319. package/types/gen/_models/webitelImProviderV1SendViberBmTemplateResponse.d.ts +13 -0
  320. package/types/gen/_models/webitelImProviderV1ViberBmServiceSendViberBmTemplateBody.d.ts +16 -0
  321. package/types/gen/_models/webitelImProviderV1ViberBmServiceSendViberBmTemplateBodyParameters.d.ts +9 -0
  322. package/types/gen/_models/webitelImProviderV1ViberBmServiceUpdateViberBmBody.d.ts +19 -0
  323. package/types/gen/_models/webitelKbArticleType.d.ts +1 -1
  324. package/types/gen/_models/webitelKbAttachmentsAttachFileBody.d.ts +13 -0
  325. package/types/gen/_models/webitelKbFile.d.ts +1 -3
  326. package/types/gen-wire/_models/catalogGetCustomersParams.d.ts +4 -0
  327. package/types/gen-wire/_models/catalogGetDialogsParams.d.ts +8 -0
  328. package/types/gen-wire/_models/catalogGetHistory2Params.d.ts +4 -0
  329. package/types/gen-wire/_models/catalogGetHistoryParams.d.ts +4 -0
  330. package/types/gen-wire/_models/catalogGetMembersParams.d.ts +8 -0
  331. package/types/gen-wire/_models/downloadCallScreenrecordingArchiveParams.d.ts +2 -2
  332. package/types/gen-wire/_models/engineCallServicePatchHistoryCallAttemptBody.d.ts +11 -0
  333. package/types/gen-wire/_models/engineCallServicePatchHistoryCallAttemptBodyVariables.d.ts +9 -0
  334. package/types/gen-wire/_models/engineChatTag.d.ts +10 -0
  335. package/types/gen-wire/_models/engineCreateRoutingOutboundCallRequest.d.ts +1 -0
  336. package/types/gen-wire/_models/engineHistoryCall.d.ts +1 -0
  337. package/types/gen-wire/_models/engineListChatTag.d.ts +11 -0
  338. package/types/gen-wire/_models/enginePatchHistoryCallAttemptResponse.d.ts +12 -0
  339. package/types/gen-wire/_models/enginePatchHistoryCallAttemptResponseVariables.d.ts +9 -0
  340. package/types/gen-wire/_models/engineRoutingOutboundCall.d.ts +1 -0
  341. package/types/gen-wire/_models/engineRoutingOutboundCallCompact.d.ts +1 -0
  342. package/types/gen-wire/_models/engineRoutingOutboundCallServicePatchRoutingOutboundCallBody.d.ts +1 -0
  343. package/types/gen-wire/_models/engineRoutingOutboundCallServiceUpdateRoutingOutboundCallBody.d.ts +1 -0
  344. package/types/gen-wire/_models/engineTeamChatTagServiceCreateChatTagBody.d.ts +9 -0
  345. package/types/gen-wire/_models/engineTeamChatTagServiceUpdateChatTagBody.d.ts +9 -0
  346. package/types/gen-wire/_models/gateServiceListGatesTypesItem.d.ts +1 -0
  347. package/types/gen-wire/_models/index.d.ts +58 -0
  348. package/types/gen-wire/_models/listArticleCasesParams.d.ts +10 -0
  349. package/types/gen-wire/_models/listCaseArticlesParams.d.ts +10 -0
  350. package/types/gen-wire/_models/locateCaseNeighborDirection.d.ts +12 -0
  351. package/types/gen-wire/_models/locateCaseNeighborParams.d.ts +26 -0
  352. package/types/gen-wire/_models/locateCaseParams.d.ts +9 -0
  353. package/types/gen-wire/_models/searchAgentChatTagParams.d.ts +14 -0
  354. package/types/gen-wire/_models/searchChatTagParams.d.ts +14 -0
  355. package/types/gen-wire/_models/searchRoutingOutboundCallParams.d.ts +1 -0
  356. package/types/gen-wire/_models/searchScreenRecordingsByCallParams.d.ts +2 -0
  357. package/types/gen-wire/_models/threadTagManagementSearchParams.d.ts +10 -0
  358. package/types/gen-wire/_models/updateCase2Body.d.ts +1 -0
  359. package/types/gen-wire/_models/updateCaseBody.d.ts +1 -0
  360. package/types/gen-wire/_models/updateCaseInputBody.d.ts +1 -0
  361. package/types/gen-wire/_models/viberBmServiceListViberBmParams.d.ts +11 -0
  362. package/types/gen-wire/_models/webitelCasesCase.d.ts +5 -0
  363. package/types/gen-wire/_models/webitelCasesCaseArticle.d.ts +23 -0
  364. package/types/gen-wire/_models/webitelCasesCaseArticleList.d.ts +12 -0
  365. package/types/gen-wire/_models/webitelCasesCaseArticleSource.d.ts +18 -0
  366. package/types/gen-wire/_models/webitelCasesCaseNavDirection.d.ts +15 -0
  367. package/types/gen-wire/_models/webitelCasesInputCase.d.ts +1 -0
  368. package/types/gen-wire/_models/webitelCasesInputCaseArticle.d.ts +11 -0
  369. package/types/gen-wire/_models/webitelCasesInputCreateCase.d.ts +2 -0
  370. package/types/gen-wire/_models/webitelChatPeer.d.ts +2 -0
  371. package/types/gen-wire/_models/webitelImApiGatewayV1ChatTag.d.ts +12 -0
  372. package/types/gen-wire/_models/webitelImApiGatewayV1ForwardMessagesRequest.d.ts +0 -5
  373. package/types/gen-wire/_models/webitelImApiGatewayV1ForwardMessagesResponse.d.ts +3 -5
  374. package/types/gen-wire/_models/webitelImApiGatewayV1RemoveThreadTagResponse.d.ts +9 -0
  375. package/types/gen-wire/_models/webitelImApiGatewayV1ReplyToMessage.d.ts +1 -1
  376. package/types/gen-wire/_models/webitelImApiGatewayV1SearchThreadTagsResponse.d.ts +10 -0
  377. package/types/gen-wire/_models/webitelImApiGatewayV1SendContactRequest.d.ts +4 -0
  378. package/types/gen-wire/_models/webitelImApiGatewayV1SendDocumentRequest.d.ts +7 -0
  379. package/types/gen-wire/_models/webitelImApiGatewayV1SendDocumentRequestVariables.d.ts +14 -0
  380. package/types/gen-wire/_models/webitelImApiGatewayV1SendLocationRequest.d.ts +4 -0
  381. package/types/gen-wire/_models/webitelImApiGatewayV1SendTextRequest.d.ts +2 -0
  382. package/types/gen-wire/_models/webitelImApiGatewayV1SendTextRequestVariables.d.ts +9 -0
  383. package/types/gen-wire/_models/webitelImApiGatewayV1SkippedMessage.d.ts +2 -2
  384. package/types/gen-wire/_models/webitelImApiGatewayV1ThreadTagManagementAddTagBody.d.ts +9 -0
  385. package/types/gen-wire/_models/webitelImApiProviderV1ProviderCreateViberBmGateRequest.d.ts +16 -0
  386. package/types/gen-wire/_models/webitelImApiProviderV1ProviderCreateViberBmGateResponse.d.ts +10 -0
  387. package/types/gen-wire/_models/webitelImApiProviderV1ProviderDeleteViberBmGateResponse.d.ts +10 -0
  388. package/types/gen-wire/_models/webitelImApiProviderV1ProviderGetViberBmGateResponse.d.ts +10 -0
  389. package/types/gen-wire/_models/webitelImApiProviderV1ProviderListViberBmGatesResponse.d.ts +11 -0
  390. package/types/gen-wire/_models/webitelImApiProviderV1ProviderUpdateViberBmGateResponse.d.ts +10 -0
  391. package/types/gen-wire/_models/webitelImApiProviderV1ProviderViberBmGate.d.ts +18 -0
  392. package/types/gen-wire/_models/webitelImApiProviderV1SendViberBmTemplateResponse.d.ts +10 -0
  393. package/types/gen-wire/_models/webitelImApiProviderV1ViberBmServiceSendViberBmTemplateBody.d.ts +13 -0
  394. package/types/gen-wire/_models/webitelImApiProviderV1ViberBmServiceSendViberBmTemplateBodyParameters.d.ts +9 -0
  395. package/types/gen-wire/_models/webitelImApiProviderV1ViberBmServiceUpdateViberBmBody.d.ts +16 -0
  396. package/types/gen-wire/_models/webitelImProviderV1CustomServiceUpdateCustomGateBody.d.ts +22 -0
  397. package/types/gen-wire/_models/webitelImProviderV1Entity.d.ts +33 -0
  398. package/types/gen-wire/_models/webitelImProviderV1ProviderCreateCustomGateRequest.d.ts +23 -0
  399. package/types/gen-wire/_models/webitelImProviderV1ProviderCreateCustomGateResponse.d.ts +13 -0
  400. package/types/gen-wire/_models/webitelImProviderV1ProviderCreateViberBmGateRequest.d.ts +19 -0
  401. package/types/gen-wire/_models/webitelImProviderV1ProviderCreateViberBmGateResponse.d.ts +13 -0
  402. package/types/gen-wire/_models/webitelImProviderV1ProviderCustomGate.d.ts +27 -0
  403. package/types/gen-wire/_models/webitelImProviderV1ProviderDeleteCustomGateResponse.d.ts +10 -0
  404. package/types/gen-wire/_models/webitelImProviderV1ProviderDeleteViberBmGateResponse.d.ts +10 -0
  405. package/types/gen-wire/_models/webitelImProviderV1ProviderGetCustomGateResponse.d.ts +10 -0
  406. package/types/gen-wire/_models/webitelImProviderV1ProviderGetViberBmGateResponse.d.ts +10 -0
  407. package/types/gen-wire/_models/webitelImProviderV1ProviderListViberBmGatesResponse.d.ts +14 -0
  408. package/types/gen-wire/_models/webitelImProviderV1ProviderSendDocumentRequest.d.ts +8 -0
  409. package/types/gen-wire/_models/webitelImProviderV1ProviderSendTextRequest.d.ts +8 -0
  410. package/types/gen-wire/_models/webitelImProviderV1ProviderType.d.ts +1 -0
  411. package/types/gen-wire/_models/webitelImProviderV1ProviderUpdateCustomGateResponse.d.ts +13 -0
  412. package/types/gen-wire/_models/webitelImProviderV1ProviderUpdateViberBmGateResponse.d.ts +13 -0
  413. package/types/gen-wire/_models/webitelImProviderV1ProviderViberBmGate.d.ts +21 -0
  414. package/types/gen-wire/_models/webitelImProviderV1SendViberBmTemplateResponse.d.ts +13 -0
  415. package/types/gen-wire/_models/webitelImProviderV1ViberBmServiceSendViberBmTemplateBody.d.ts +16 -0
  416. package/types/gen-wire/_models/webitelImProviderV1ViberBmServiceSendViberBmTemplateBodyParameters.d.ts +9 -0
  417. package/types/gen-wire/_models/webitelImProviderV1ViberBmServiceUpdateViberBmBody.d.ts +19 -0
  418. package/types/gen-wire/_models/webitelKbArticleType.d.ts +1 -1
  419. package/types/gen-wire/_models/webitelKbAttachmentsAttachFileBody.d.ts +13 -0
  420. package/types/gen-wire/_models/webitelKbFile.d.ts +1 -3
  421. package/types/gen-wire/agent-chat-service/agent-chat-service.zod.d.ts +10 -0
  422. package/types/gen-wire/agent-chat-tag-service/agent-chat-tag-service.d.ts +13 -0
  423. package/types/gen-wire/agent-chat-tag-service/agent-chat-tag-service.zod.d.ts +22 -0
  424. package/types/gen-wire/attachments/attachments.d.ts +3 -1
  425. package/types/gen-wire/attachments/attachments.zod.d.ts +22 -2
  426. package/types/gen-wire/call-service/call-service.d.ts +3 -1
  427. package/types/gen-wire/call-service/call-service.zod.d.ts +18 -0
  428. package/types/gen-wire/case-articles/case-articles.d.ts +19 -0
  429. package/types/gen-wire/case-articles/case-articles.zod.d.ts +154 -0
  430. package/types/gen-wire/cases/cases.d.ts +3 -1
  431. package/types/gen-wire/cases/cases.zod.d.ts +376 -0
  432. package/types/gen-wire/cases-chat-catalog/cases-chat-catalog.zod.d.ts +11 -0
  433. package/types/gen-wire/customer/customer.zod.d.ts +2 -0
  434. package/types/gen-wire/file-service/file-service.zod.d.ts +2 -0
  435. package/types/gen-wire/index.d.ts +20 -5
  436. package/types/gen-wire/index.zod.d.ts +151 -0
  437. package/types/gen-wire/logger-service/logger-service.d.ts +3 -1
  438. package/types/gen-wire/logger-service/logger-service.zod.d.ts +23 -0
  439. package/types/gen-wire/messages/messages.zod.d.ts +47 -0
  440. package/types/gen-wire/routing-outbound-call-service/routing-outbound-call-service.zod.d.ts +10 -0
  441. package/types/gen-wire/team-chat-tag-service/team-chat-tag-service.d.ts +19 -0
  442. package/types/gen-wire/team-chat-tag-service/team-chat-tag-service.zod.d.ts +54 -0
  443. package/types/gen-wire/webitel-im-api-gateway-v1-message/webitel-im-api-gateway-v1-message.zod.d.ts +18 -2
  444. package/types/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.d.ts +3 -3
  445. package/types/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.d.ts +4 -4
  446. package/types/gen-wire/webitel-im-api-gateway-v1-threadtagmanagement/webitel-im-api-gateway-v1-threadtagmanagement.d.ts +17 -0
  447. package/types/gen-wire/webitel-im-api-gateway-v1-threadtagmanagement/webitel-im-api-gateway-v1-threadtagmanagement.zod.d.ts +40 -0
  448. package/types/gen-wire/webitel-im-api-provider-v1-viberbmservice/webitel-im-api-provider-v1-viberbmservice.d.ts +19 -0
  449. package/types/gen-wire/webitel-im-api-provider-v1-viberbmservice/webitel-im-api-provider-v1-viberbmservice.zod.d.ts +102 -0
  450. package/types/gen-wire/webitel-im-provider-v1-customservice/webitel-im-provider-v1-customservice.d.ts +19 -0
  451. package/types/gen-wire/webitel-im-provider-v1-customservice/webitel-im-provider-v1-customservice.zod.d.ts +142 -0
  452. package/types/gen-wire/webitel-im-provider-v1-gateservice/webitel-im-provider-v1-gateservice.zod.d.ts +2 -0
  453. package/types/gen-wire/webitel-im-provider-v1-providermessageservice/webitel-im-provider-v1-providermessageservice.zod.d.ts +19 -0
  454. package/types/gen-wire/webitel-im-provider-v1-viberbmservice/webitel-im-provider-v1-viberbmservice.d.ts +23 -0
  455. package/types/gen-wire/webitel-im-provider-v1-viberbmservice/webitel-im-provider-v1-viberbmservice.zod.d.ts +174 -0
@@ -63,6 +63,15 @@ export const SearchCasesResponse = zod
63
63
  })
64
64
  .optional()
65
65
  .describe('Author or reporter of the case.'),
66
+ close_article: zod
67
+ .object({
68
+ id: zod.string().optional(),
69
+ name: zod.string().optional(),
70
+ })
71
+ .optional()
72
+ .describe(
73
+ 'Knowledge base article chosen as the close reason; id only.',
74
+ ),
66
75
  close_reason: zod
67
76
  .object({
68
77
  id: zod.string().optional(),
@@ -248,6 +257,13 @@ export const SearchCasesResponse = zod
248
257
  })
249
258
  .optional()
250
259
  .describe('Group associated with the case.'),
260
+ has_next: zod.boolean().optional(),
261
+ has_prev: zod
262
+ .boolean()
263
+ .optional()
264
+ .describe(
265
+ 'Whether a case exists before/after this one in the list it is being viewed in.',
266
+ ),
251
267
  id: zod.string().optional().describe('Unique case ID.'),
252
268
  impacted: zod
253
269
  .object({
@@ -627,6 +643,13 @@ export const CreateCaseBody = zod
627
643
  })
628
644
  .optional()
629
645
  .describe('Optional assignee ID.'),
646
+ close_article: zod
647
+ .object({
648
+ id: zod.string().optional(),
649
+ name: zod.string().optional(),
650
+ })
651
+ .optional()
652
+ .describe('Optional knowledge base article chosen as the close reason.'),
630
653
  close_reason: zod
631
654
  .object({
632
655
  id: zod.string().optional(),
@@ -744,11 +767,531 @@ export const CreateCaseBody = zod
744
767
  name: zod.string().optional(),
745
768
  })
746
769
  .optional()
747
- .describe('Service ID (affects many other readonly fields).'),
770
+ .describe('Service ID (affects many other readonly fields).'),
771
+ source: zod
772
+ .object({
773
+ id: zod.string().optional(),
774
+ name: zod.string().optional(),
775
+ })
776
+ .optional()
777
+ .describe('Source of the case.'),
778
+ status: zod
779
+ .object({
780
+ id: zod.string().optional(),
781
+ name: zod.string().optional(),
782
+ })
783
+ .optional()
784
+ .describe('Initial case status (default from lookup or UI).'),
785
+ status_condition: zod
786
+ .object({
787
+ id: zod.string().optional(),
788
+ name: zod.string().optional(),
789
+ })
790
+ .optional(),
791
+ subject: zod.string().optional().describe('Required subject of the case.'),
792
+ userID: zod
793
+ .object({
794
+ id: zod.string().optional(),
795
+ name: zod.string().optional(),
796
+ })
797
+ .optional()
798
+ .describe(
799
+ 'Optional creator / updater ID. Use this to explicitly set the case creator / updater instead of deriving it from the auth token.',
800
+ ),
801
+ })
802
+ .describe('Input structure for creating a new case.');
803
+
804
+ export const createCaseResponseRelatedDataItemRelationTypeDefault = `RELATION_TYPE_UNSPECIFIED`;
805
+ export const createCaseResponseSourceTypeDefault = `TYPE_UNSPECIFIED`;
806
+
807
+ export const CreateCaseResponse = zod
808
+ .object({
809
+ assignee: zod
810
+ .object({
811
+ id: zod.string().optional(),
812
+ name: zod.string().optional(),
813
+ })
814
+ .optional()
815
+ .describe('Assignee responsible for resolving the case.'),
816
+ author: zod
817
+ .object({
818
+ id: zod.string().optional(),
819
+ name: zod.string().optional(),
820
+ })
821
+ .optional()
822
+ .describe('Author or reporter of the case.'),
823
+ close_article: zod
824
+ .object({
825
+ id: zod.string().optional(),
826
+ name: zod.string().optional(),
827
+ })
828
+ .optional()
829
+ .describe('Knowledge base article chosen as the close reason; id only.'),
830
+ close_reason: zod
831
+ .object({
832
+ id: zod.string().optional(),
833
+ name: zod.string().optional(),
834
+ })
835
+ .optional(),
836
+ close_reason_group: zod
837
+ .object({
838
+ id: zod.string().optional(),
839
+ name: zod.string().optional(),
840
+ })
841
+ .optional()
842
+ .describe('Close reason group, immutable once set.'),
843
+ close_result: zod.string().optional(),
844
+ comments: zod
845
+ .object({
846
+ items: zod
847
+ .array(
848
+ zod
849
+ .object({
850
+ author: zod
851
+ .object({
852
+ id: zod.string().optional(),
853
+ name: zod.string().optional(),
854
+ })
855
+ .optional()
856
+ .describe('Contact-author of the comment.'),
857
+ can_edit: zod
858
+ .boolean()
859
+ .optional()
860
+ .describe(
861
+ 'Indicates if the comment can be edited by current user.',
862
+ ),
863
+ case_id: zod
864
+ .string()
865
+ .optional()
866
+ .describe('Optional relation to the associated case.'),
867
+ created_at: zod
868
+ .string()
869
+ .optional()
870
+ .describe(
871
+ 'Timestamp (in milliseconds) of when the comment was created.',
872
+ ),
873
+ created_by: zod
874
+ .object({
875
+ id: zod.string().optional(),
876
+ name: zod.string().optional(),
877
+ })
878
+ .optional()
879
+ .describe('User who created the comment.'),
880
+ edited: zod
881
+ .boolean()
882
+ .optional()
883
+ .describe(
884
+ 'Indicates if the comment was edited; true if created_at < updated_at.',
885
+ ),
886
+ etag: zod.string().optional(),
887
+ id: zod
888
+ .string()
889
+ .optional()
890
+ .describe(
891
+ 'Main identifier for read, update, and delete operations.',
892
+ ),
893
+ role_ids: zod.array(zod.string()).optional(),
894
+ text: zod
895
+ .string()
896
+ .optional()
897
+ .describe('The content of the comment.'),
898
+ updated_at: zod
899
+ .string()
900
+ .optional()
901
+ .describe('Timestamp (in milliseconds) of the last update.'),
902
+ updated_by: zod
903
+ .object({
904
+ id: zod.string().optional(),
905
+ name: zod.string().optional(),
906
+ })
907
+ .optional()
908
+ .describe('User who last updated the comment.'),
909
+ ver: zod
910
+ .int()
911
+ .optional()
912
+ .describe(
913
+ 'Version number of the comment, used for concurrency control.',
914
+ ),
915
+ })
916
+ .describe('Represents a comment associated with a case.'),
917
+ )
918
+ .optional()
919
+ .describe('List of comments on the current page.'),
920
+ next: zod
921
+ .boolean()
922
+ .optional()
923
+ .describe('Flag to indicate if more pages are available.'),
924
+ page: zod.string().optional().describe('Current page number.'),
925
+ })
926
+ .optional()
927
+ .describe('List of comments on the case.'),
928
+ contact_info: zod
929
+ .string()
930
+ .optional()
931
+ .describe('Contact information for the case.'),
932
+ created_at: zod
933
+ .string()
934
+ .optional()
935
+ .describe('Creation timestamp (in milliseconds since Unix epoch).'),
936
+ created_by: zod
937
+ .object({
938
+ id: zod.string().optional(),
939
+ name: zod.string().optional(),
940
+ })
941
+ .optional()
942
+ .describe('Creator of the case.'),
943
+ custom: zod
944
+ .looseObject({})
945
+ .optional()
946
+ .describe('Custom data extension fields ..'),
947
+ dc: zod.string().optional(),
948
+ description: zod
949
+ .string()
950
+ .optional()
951
+ .describe('Detailed description of the case.'),
952
+ difference_in_reaction: zod.string().optional(),
953
+ difference_in_resolve: zod.string().optional(),
954
+ etag: zod.string().optional().describe('Unique etag identifier.'),
955
+ files: zod
956
+ .object({
957
+ items: zod
958
+ .array(
959
+ zod
960
+ .object({
961
+ created_at: zod
962
+ .string()
963
+ .optional()
964
+ .describe('Creation timestamp in Unix milliseconds.'),
965
+ created_by: zod
966
+ .object({
967
+ id: zod.string().optional(),
968
+ name: zod.string().optional(),
969
+ type: zod.string().optional(),
970
+ })
971
+ .optional()
972
+ .describe('Creator of the file.'),
973
+ id: zod.string().optional().describe('Storage file ID.'),
974
+ mime: zod
975
+ .string()
976
+ .optional()
977
+ .describe('MIME type of the file.'),
978
+ name: zod.string().optional().describe('File name.'),
979
+ size: zod.string().optional().describe('File size in bytes.'),
980
+ source: zod.string().optional(),
981
+ url: zod.string().optional(),
982
+ })
983
+ .describe('Metadata for a file associated with a case.'),
984
+ )
985
+ .optional()
986
+ .describe('List of case files.'),
987
+ next: zod
988
+ .boolean()
989
+ .optional()
990
+ .describe('Indicator if there is a next page.'),
991
+ page: zod.string().optional().describe('Current page number.'),
992
+ })
993
+ .optional()
994
+ .describe('List of attached files.'),
995
+ group: zod
996
+ .object({
997
+ id: zod.string().optional(),
998
+ name: zod.string().optional(),
999
+ type: zod.string().optional(),
1000
+ })
1001
+ .optional()
1002
+ .describe('Group associated with the case.'),
1003
+ has_next: zod.boolean().optional(),
1004
+ has_prev: zod
1005
+ .boolean()
1006
+ .optional()
1007
+ .describe(
1008
+ 'Whether a case exists before/after this one in the list it is being viewed in.',
1009
+ ),
1010
+ id: zod.string().optional().describe('Unique case ID.'),
1011
+ impacted: zod
1012
+ .object({
1013
+ id: zod.string().optional(),
1014
+ name: zod.string().optional(),
1015
+ })
1016
+ .optional()
1017
+ .describe('Impacted contact (defaults to reporter if null).'),
1018
+ links: zod
1019
+ .object({
1020
+ items: zod
1021
+ .array(
1022
+ zod.object({
1023
+ author: zod
1024
+ .object({
1025
+ id: zod.string().optional(),
1026
+ name: zod.string().optional(),
1027
+ })
1028
+ .optional(),
1029
+ created_at: zod.string().optional(),
1030
+ created_by: zod
1031
+ .object({
1032
+ id: zod.string().optional(),
1033
+ name: zod.string().optional(),
1034
+ })
1035
+ .optional(),
1036
+ etag: zod.string().optional(),
1037
+ id: zod.string().optional(),
1038
+ name: zod.string().optional(),
1039
+ updated_at: zod.string().optional(),
1040
+ updated_by: zod
1041
+ .object({
1042
+ id: zod.string().optional(),
1043
+ name: zod.string().optional(),
1044
+ })
1045
+ .optional(),
1046
+ url: zod.string().optional(),
1047
+ ver: zod.int().optional(),
1048
+ }),
1049
+ )
1050
+ .optional(),
1051
+ next: zod.boolean().optional(),
1052
+ page: zod.string().optional(),
1053
+ })
1054
+ .optional()
1055
+ .describe('List of attached links.'),
1056
+ name: zod
1057
+ .string()
1058
+ .optional()
1059
+ .describe('Name of the case (may serve as an ID in docs).'),
1060
+ planned_reaction_at: zod
1061
+ .string()
1062
+ .optional()
1063
+ .describe('Planned reaction time (in milliseconds).'),
1064
+ planned_resolve_at: zod
1065
+ .string()
1066
+ .optional()
1067
+ .describe('Planned resolution time (in milliseconds).'),
1068
+ priority: zod
1069
+ .object({
1070
+ color: zod.string(),
1071
+ created_at: zod.string(),
1072
+ created_by: zod.object({
1073
+ id: zod.string().optional(),
1074
+ name: zod.string().optional(),
1075
+ }),
1076
+ description: zod.string().optional(),
1077
+ id: zod.string(),
1078
+ name: zod.string(),
1079
+ updated_at: zod.string(),
1080
+ updated_by: zod.object({
1081
+ id: zod.string().optional(),
1082
+ name: zod.string().optional(),
1083
+ }),
1084
+ })
1085
+ .optional()
1086
+ .describe('Priority level of the case.'),
1087
+ rating: zod.string().optional(),
1088
+ rating_comment: zod.string().optional(),
1089
+ reacted_at: zod.string().optional(),
1090
+ related: zod
1091
+ .object({
1092
+ data: zod
1093
+ .array(
1094
+ zod
1095
+ .object({
1096
+ created_at: zod
1097
+ .string()
1098
+ .optional()
1099
+ .describe(
1100
+ 'Timestamp (in milliseconds) of when the relation was created.',
1101
+ ),
1102
+ created_by: zod
1103
+ .object({
1104
+ id: zod.string().optional(),
1105
+ name: zod.string().optional(),
1106
+ })
1107
+ .optional()
1108
+ .describe('User who created the relation.'),
1109
+ etag: zod
1110
+ .string()
1111
+ .optional()
1112
+ .describe('Etag for the related case entity.'),
1113
+ id: zod
1114
+ .string()
1115
+ .optional()
1116
+ .describe('Unique identifier for the related case.'),
1117
+ primary_case: zod
1118
+ .object({
1119
+ color: zod.string().optional(),
1120
+ etag: zod.string().optional(),
1121
+ id: zod.string().optional(),
1122
+ name: zod.string().optional(),
1123
+ subject: zod.string().optional(),
1124
+ ver: zod.int().optional(),
1125
+ })
1126
+ .optional()
1127
+ .describe('Primary case details.'),
1128
+ related_case: zod
1129
+ .object({
1130
+ color: zod.string().optional(),
1131
+ etag: zod.string().optional(),
1132
+ id: zod.string().optional(),
1133
+ name: zod.string().optional(),
1134
+ subject: zod.string().optional(),
1135
+ ver: zod.int().optional(),
1136
+ })
1137
+ .optional()
1138
+ .describe('Related case details.'),
1139
+ relation_type: zod
1140
+ .enum([
1141
+ 'RELATION_TYPE_UNSPECIFIED',
1142
+ 'DUPLICATES',
1143
+ 'IS_DUPLICATED_BY',
1144
+ 'BLOCKS',
1145
+ 'IS_BLOCKED_BY',
1146
+ 'CAUSES',
1147
+ 'IS_CAUSED_BY',
1148
+ 'IS_CHILD_OF',
1149
+ 'IS_PARENT_OF',
1150
+ 'RELATES_TO',
1151
+ ])
1152
+ .default(createCaseResponseRelatedDataItemRelationTypeDefault)
1153
+ .describe('Relation type between cases.'),
1154
+ updated_at: zod
1155
+ .string()
1156
+ .optional()
1157
+ .describe('Timestamp (in milliseconds) of the last update.'),
1158
+ updated_by: zod
1159
+ .object({
1160
+ id: zod.string().optional(),
1161
+ name: zod.string().optional(),
1162
+ })
1163
+ .optional()
1164
+ .describe('User who last updated the relation.'),
1165
+ ver: zod
1166
+ .int()
1167
+ .optional()
1168
+ .describe(
1169
+ 'Version number of the related case, used for concurrency control.',
1170
+ ),
1171
+ })
1172
+ .describe(
1173
+ 'Represents a related case with its relationship details.',
1174
+ ),
1175
+ )
1176
+ .optional()
1177
+ .describe('List of related cases on the current page.'),
1178
+ next: zod
1179
+ .boolean()
1180
+ .optional()
1181
+ .describe('Flag to indicate if more pages are available.'),
1182
+ page: zod.string().optional().describe('Current page number.'),
1183
+ })
1184
+ .optional()
1185
+ .describe('List of related cases.'),
1186
+ reporter: zod
1187
+ .object({
1188
+ id: zod.string().optional(),
1189
+ name: zod.string().optional(),
1190
+ })
1191
+ .optional()
1192
+ .describe('Reporter of the issue (null if anonymous).'),
1193
+ resolved_at: zod.string().optional(),
1194
+ role_ids: zod.array(zod.string()).optional(),
1195
+ service: zod
1196
+ .object({
1197
+ assignee: zod
1198
+ .object({
1199
+ id: zod.string().optional(),
1200
+ name: zod.string().optional(),
1201
+ })
1202
+ .optional(),
1203
+ catalog_id: zod.string().optional(),
1204
+ code: zod.string().optional(),
1205
+ created_at: zod.string().optional(),
1206
+ created_by: zod
1207
+ .object({
1208
+ id: zod.string().optional(),
1209
+ name: zod.string().optional(),
1210
+ })
1211
+ .optional(),
1212
+ default_priority: zod
1213
+ .object({
1214
+ color: zod.string(),
1215
+ created_at: zod.string(),
1216
+ created_by: zod.object({
1217
+ id: zod.string().optional(),
1218
+ name: zod.string().optional(),
1219
+ }),
1220
+ description: zod.string().optional(),
1221
+ id: zod.string(),
1222
+ name: zod.string(),
1223
+ updated_at: zod.string(),
1224
+ updated_by: zod.object({
1225
+ id: zod.string().optional(),
1226
+ name: zod.string().optional(),
1227
+ }),
1228
+ })
1229
+ .optional()
1230
+ .describe(
1231
+ 'Priority message represents a priority entity with metadata.',
1232
+ ),
1233
+ description: zod.string().optional(),
1234
+ group: zod
1235
+ .object({
1236
+ id: zod.string().optional(),
1237
+ name: zod.string().optional(),
1238
+ type: zod.string().optional(),
1239
+ })
1240
+ .optional(),
1241
+ id: zod.string().optional(),
1242
+ name: zod.string().optional(),
1243
+ root_id: zod.string().optional(),
1244
+ searched: zod.boolean().optional(),
1245
+ service: zod.array(zod.unknown()).optional(),
1246
+ sla: zod
1247
+ .object({
1248
+ id: zod.string().optional(),
1249
+ name: zod.string().optional(),
1250
+ })
1251
+ .optional(),
1252
+ state: zod.boolean().optional(),
1253
+ updated_at: zod.string().optional(),
1254
+ updated_by: zod
1255
+ .object({
1256
+ id: zod.string().optional(),
1257
+ name: zod.string().optional(),
1258
+ })
1259
+ .optional(),
1260
+ })
1261
+ .optional()
1262
+ .describe('Service associated with the case.'),
1263
+ sla: zod
1264
+ .object({
1265
+ id: zod.string().optional(),
1266
+ name: zod.string().optional(),
1267
+ })
1268
+ .optional()
1269
+ .describe('SLA associated with the case.'),
1270
+ sla_condition: zod
1271
+ .object({
1272
+ id: zod.string().optional(),
1273
+ name: zod.string().optional(),
1274
+ })
1275
+ .optional()
1276
+ .describe('List of SLA conditions.'),
748
1277
  source: zod
749
1278
  .object({
750
1279
  id: zod.string().optional(),
751
1280
  name: zod.string().optional(),
1281
+ type: zod
1282
+ .enum([
1283
+ 'TYPE_UNSPECIFIED',
1284
+ 'CALL',
1285
+ 'CHAT',
1286
+ 'SOCIAL_MEDIA',
1287
+ 'EMAIL',
1288
+ 'API',
1289
+ 'MANUAL',
1290
+ ])
1291
+ .default(createCaseResponseSourceTypeDefault)
1292
+ .describe(
1293
+ 'Represents a source type for the source entity.\n\n - TYPE_UNSPECIFIED: Unspecified source type.\n - CALL: Phone call source type.\n - CHAT: Chat source type.\n - SOCIAL_MEDIA: Social media source type.\n - EMAIL: Email source type.\n - API: API source type.\n - MANUAL: Manual source type.',
1294
+ ),
752
1295
  })
753
1296
  .optional()
754
1297
  .describe('Source of the case.'),
@@ -758,30 +1301,103 @@ export const CreateCaseBody = zod
758
1301
  name: zod.string().optional(),
759
1302
  })
760
1303
  .optional()
761
- .describe('Initial case status (default from lookup or UI).'),
1304
+ .describe('Current status of the case.'),
762
1305
  status_condition: zod
763
1306
  .object({
1307
+ created_at: zod.string().optional(),
1308
+ created_by: zod
1309
+ .object({
1310
+ id: zod.string().optional(),
1311
+ name: zod.string().optional(),
1312
+ })
1313
+ .optional(),
1314
+ description: zod.string().optional(),
1315
+ final: zod.boolean().optional(),
764
1316
  id: zod.string().optional(),
1317
+ initial: zod.boolean().optional(),
765
1318
  name: zod.string().optional(),
1319
+ status_id: zod.string().optional(),
1320
+ updated_at: zod.string().optional(),
1321
+ updated_by: zod
1322
+ .object({
1323
+ id: zod.string().optional(),
1324
+ name: zod.string().optional(),
1325
+ })
1326
+ .optional(),
766
1327
  })
767
- .optional(),
768
- subject: zod.string().optional().describe('Required subject of the case.'),
769
- userID: zod
1328
+ .optional()
1329
+ .describe('Status condition from status lookup.'),
1330
+ subject: zod.string().optional().describe('Subject of the case.'),
1331
+ updated_at: zod
1332
+ .string()
1333
+ .optional()
1334
+ .describe('Last update timestamp (in milliseconds since Unix epoch).'),
1335
+ updated_by: zod
770
1336
  .object({
771
1337
  id: zod.string().optional(),
772
1338
  name: zod.string().optional(),
773
1339
  })
774
1340
  .optional()
775
- .describe(
776
- 'Optional creator / updater ID. Use this to explicitly set the case creator / updater instead of deriving it from the auth token.',
777
- ),
1341
+ .describe('Last updater of the case.'),
1342
+ ver: zod.int().optional().describe('Version number of the case.'),
778
1343
  })
779
- .describe('Input structure for creating a new case.');
1344
+ .describe('Message representing a case.');
780
1345
 
781
- export const createCaseResponseRelatedDataItemRelationTypeDefault = `RELATION_TYPE_UNSPECIFIED`;
782
- export const createCaseResponseSourceTypeDefault = `TYPE_UNSPECIFIED`;
1346
+ /**
1347
+ * @summary RPC method for exporting cases to CSV or XLSX format (server-side streaming).
1348
+ */
1349
+ export const ExportCasesQueryParams = zod.object({
1350
+ q: zod.string().optional(),
1351
+ ids: zod.array(zod.string()).optional(),
1352
+ sort: zod.string().optional(),
1353
+ fields: zod.array(zod.string()).optional(),
1354
+ filters: zod.array(zod.string()).optional(),
1355
+ contact_id: zod.string().optional(),
1356
+ qin: zod.string().optional(),
1357
+ filters_v1: zod.string().optional(),
1358
+ format: zod.string().optional(),
1359
+ separator: zod.string().optional(),
1360
+ });
783
1361
 
784
- export const CreateCaseResponse = zod
1362
+ export const ExportCasesResponse = zod.object({
1363
+ error: zod
1364
+ .object({
1365
+ code: zod.int().optional(),
1366
+ details: zod
1367
+ .array(
1368
+ zod.object({
1369
+ '@type': zod.string().optional(),
1370
+ }),
1371
+ )
1372
+ .optional(),
1373
+ message: zod.string().optional(),
1374
+ })
1375
+ .optional(),
1376
+ result: zod
1377
+ .object({
1378
+ data: zod.string().optional(),
1379
+ })
1380
+ .optional(),
1381
+ });
1382
+
1383
+ /**
1384
+ * @summary RPC method for deleting an existing case by its etag.
1385
+ */
1386
+ export const DeleteCaseParams = zod.object({
1387
+ etag: zod.string().describe('Unique etag identifier of the case.'),
1388
+ });
1389
+
1390
+ export const DeleteCaseQueryParams = zod.object({
1391
+ fields: zod
1392
+ .array(zod.string())
1393
+ .optional()
1394
+ .describe('List of fields to include in the deleted case response.'),
1395
+ });
1396
+
1397
+ export const deleteCaseResponseRelatedDataItemRelationTypeDefault = `RELATION_TYPE_UNSPECIFIED`;
1398
+ export const deleteCaseResponseSourceTypeDefault = `TYPE_UNSPECIFIED`;
1399
+
1400
+ export const DeleteCaseResponse = zod
785
1401
  .object({
786
1402
  assignee: zod
787
1403
  .object({
@@ -797,6 +1413,13 @@ export const CreateCaseResponse = zod
797
1413
  })
798
1414
  .optional()
799
1415
  .describe('Author or reporter of the case.'),
1416
+ close_article: zod
1417
+ .object({
1418
+ id: zod.string().optional(),
1419
+ name: zod.string().optional(),
1420
+ })
1421
+ .optional()
1422
+ .describe('Knowledge base article chosen as the close reason; id only.'),
800
1423
  close_reason: zod
801
1424
  .object({
802
1425
  id: zod.string().optional(),
@@ -970,6 +1593,13 @@ export const CreateCaseResponse = zod
970
1593
  })
971
1594
  .optional()
972
1595
  .describe('Group associated with the case.'),
1596
+ has_next: zod.boolean().optional(),
1597
+ has_prev: zod
1598
+ .boolean()
1599
+ .optional()
1600
+ .describe(
1601
+ 'Whether a case exists before/after this one in the list it is being viewed in.',
1602
+ ),
973
1603
  id: zod.string().optional().describe('Unique case ID.'),
974
1604
  impacted: zod
975
1605
  .object({
@@ -1112,7 +1742,7 @@ export const CreateCaseResponse = zod
1112
1742
  'IS_PARENT_OF',
1113
1743
  'RELATES_TO',
1114
1744
  ])
1115
- .default(createCaseResponseRelatedDataItemRelationTypeDefault)
1745
+ .default(deleteCaseResponseRelatedDataItemRelationTypeDefault)
1116
1746
  .describe('Relation type between cases.'),
1117
1747
  updated_at: zod
1118
1748
  .string()
@@ -1251,7 +1881,7 @@ export const CreateCaseResponse = zod
1251
1881
  'API',
1252
1882
  'MANUAL',
1253
1883
  ])
1254
- .default(createCaseResponseSourceTypeDefault)
1884
+ .default(deleteCaseResponseSourceTypeDefault)
1255
1885
  .describe(
1256
1886
  'Represents a source type for the source entity.\n\n - TYPE_UNSPECIFIED: Unspecified source type.\n - CALL: Phone call source type.\n - CHAT: Chat source type.\n - SOCIAL_MEDIA: Social media source type.\n - EMAIL: Email source type.\n - API: API source type.\n - MANUAL: Manual source type.',
1257
1887
  ),
@@ -1307,60 +1937,29 @@ export const CreateCaseResponse = zod
1307
1937
  .describe('Message representing a case.');
1308
1938
 
1309
1939
  /**
1310
- * @summary RPC method for exporting cases to CSV or XLSX format (server-side streaming).
1311
- */
1312
- export const ExportCasesQueryParams = zod.object({
1313
- q: zod.string().optional(),
1314
- ids: zod.array(zod.string()).optional(),
1315
- sort: zod.string().optional(),
1316
- fields: zod.array(zod.string()).optional(),
1317
- filters: zod.array(zod.string()).optional(),
1318
- contact_id: zod.string().optional(),
1319
- qin: zod.string().optional(),
1320
- filters_v1: zod.string().optional(),
1321
- format: zod.string().optional(),
1322
- separator: zod.string().optional(),
1323
- });
1324
-
1325
- export const ExportCasesResponse = zod.object({
1326
- error: zod
1327
- .object({
1328
- code: zod.int().optional(),
1329
- details: zod
1330
- .array(
1331
- zod.object({
1332
- '@type': zod.string().optional(),
1333
- }),
1334
- )
1335
- .optional(),
1336
- message: zod.string().optional(),
1337
- })
1338
- .optional(),
1339
- result: zod
1340
- .object({
1341
- data: zod.string().optional(),
1342
- })
1343
- .optional(),
1344
- });
1345
-
1346
- /**
1347
- * @summary RPC method for deleting an existing case by its etag.
1940
+ * @summary RPC method to retrieve a specific case by its etag identifier.
1348
1941
  */
1349
- export const DeleteCaseParams = zod.object({
1942
+ export const LocateCaseParams = zod.object({
1350
1943
  etag: zod.string().describe('Unique etag identifier of the case.'),
1351
1944
  });
1352
1945
 
1353
- export const DeleteCaseQueryParams = zod.object({
1946
+ export const LocateCaseQueryParams = zod.object({
1354
1947
  fields: zod
1355
1948
  .array(zod.string())
1356
1949
  .optional()
1357
- .describe('List of fields to include in the deleted case response.'),
1950
+ .describe('List of fields to include in the response.'),
1951
+ q: zod.string().optional().describe('filters for next/prev case'),
1952
+ qin: zod.string().optional(),
1953
+ sort: zod.string().optional(),
1954
+ filters: zod.array(zod.string()).optional(),
1955
+ filters_v1: zod.string().optional(),
1956
+ contact_id: zod.string().optional(),
1358
1957
  });
1359
1958
 
1360
- export const deleteCaseResponseRelatedDataItemRelationTypeDefault = `RELATION_TYPE_UNSPECIFIED`;
1361
- export const deleteCaseResponseSourceTypeDefault = `TYPE_UNSPECIFIED`;
1959
+ export const locateCaseResponseRelatedDataItemRelationTypeDefault = `RELATION_TYPE_UNSPECIFIED`;
1960
+ export const locateCaseResponseSourceTypeDefault = `TYPE_UNSPECIFIED`;
1362
1961
 
1363
- export const DeleteCaseResponse = zod
1962
+ export const LocateCaseResponse = zod
1364
1963
  .object({
1365
1964
  assignee: zod
1366
1965
  .object({
@@ -1376,6 +1975,13 @@ export const DeleteCaseResponse = zod
1376
1975
  })
1377
1976
  .optional()
1378
1977
  .describe('Author or reporter of the case.'),
1978
+ close_article: zod
1979
+ .object({
1980
+ id: zod.string().optional(),
1981
+ name: zod.string().optional(),
1982
+ })
1983
+ .optional()
1984
+ .describe('Knowledge base article chosen as the close reason; id only.'),
1379
1985
  close_reason: zod
1380
1986
  .object({
1381
1987
  id: zod.string().optional(),
@@ -1549,6 +2155,13 @@ export const DeleteCaseResponse = zod
1549
2155
  })
1550
2156
  .optional()
1551
2157
  .describe('Group associated with the case.'),
2158
+ has_next: zod.boolean().optional(),
2159
+ has_prev: zod
2160
+ .boolean()
2161
+ .optional()
2162
+ .describe(
2163
+ 'Whether a case exists before/after this one in the list it is being viewed in.',
2164
+ ),
1552
2165
  id: zod.string().optional().describe('Unique case ID.'),
1553
2166
  impacted: zod
1554
2167
  .object({
@@ -1691,7 +2304,7 @@ export const DeleteCaseResponse = zod
1691
2304
  'IS_PARENT_OF',
1692
2305
  'RELATES_TO',
1693
2306
  ])
1694
- .default(deleteCaseResponseRelatedDataItemRelationTypeDefault)
2307
+ .default(locateCaseResponseRelatedDataItemRelationTypeDefault)
1695
2308
  .describe('Relation type between cases.'),
1696
2309
  updated_at: zod
1697
2310
  .string()
@@ -1830,7 +2443,7 @@ export const DeleteCaseResponse = zod
1830
2443
  'API',
1831
2444
  'MANUAL',
1832
2445
  ])
1833
- .default(deleteCaseResponseSourceTypeDefault)
2446
+ .default(locateCaseResponseSourceTypeDefault)
1834
2447
  .describe(
1835
2448
  'Represents a source type for the source entity.\n\n - TYPE_UNSPECIFIED: Unspecified source type.\n - CALL: Phone call source type.\n - CHAT: Chat source type.\n - SOCIAL_MEDIA: Social media source type.\n - EMAIL: Email source type.\n - API: API source type.\n - MANUAL: Manual source type.',
1836
2449
  ),
@@ -1886,23 +2499,46 @@ export const DeleteCaseResponse = zod
1886
2499
  .describe('Message representing a case.');
1887
2500
 
1888
2501
  /**
1889
- * @summary RPC method to retrieve a specific case by its etag identifier.
2502
+ * @summary RPC method to step one case forward or backward through the list.
1890
2503
  */
1891
- export const LocateCaseParams = zod.object({
1892
- etag: zod.string().describe('Unique etag identifier of the case.'),
2504
+ export const LocateCaseNeighborParams = zod.object({
2505
+ etag: zod
2506
+ .string()
2507
+ .describe('Etag of the case currently open, to step away from.'),
1893
2508
  });
1894
2509
 
1895
- export const LocateCaseQueryParams = zod.object({
2510
+ export const locateCaseNeighborQueryDirectionDefault = `CASE_NAV_DIRECTION_UNSPECIFIED`;
2511
+
2512
+ export const LocateCaseNeighborQueryParams = zod.object({
2513
+ direction: zod
2514
+ .enum([
2515
+ 'CASE_NAV_DIRECTION_UNSPECIFIED',
2516
+ 'NEXT',
2517
+ 'PREV',
2518
+ ])
2519
+ .default(locateCaseNeighborQueryDirectionDefault)
2520
+ .describe('Required: which way to step.'),
1896
2521
  fields: zod
1897
2522
  .array(zod.string())
1898
2523
  .optional()
1899
2524
  .describe('List of fields to include in the response.'),
2525
+ q: zod
2526
+ .string()
2527
+ .optional()
2528
+ .describe(
2529
+ 'Same list context as LocateCaseRequest, and it must match what that call used.',
2530
+ ),
2531
+ qin: zod.string().optional(),
2532
+ sort: zod.string().optional(),
2533
+ filters: zod.array(zod.string()).optional(),
2534
+ filters_v1: zod.string().optional(),
2535
+ contact_id: zod.string().optional(),
1900
2536
  });
1901
2537
 
1902
- export const locateCaseResponseRelatedDataItemRelationTypeDefault = `RELATION_TYPE_UNSPECIFIED`;
1903
- export const locateCaseResponseSourceTypeDefault = `TYPE_UNSPECIFIED`;
2538
+ export const locateCaseNeighborResponseRelatedDataItemRelationTypeDefault = `RELATION_TYPE_UNSPECIFIED`;
2539
+ export const locateCaseNeighborResponseSourceTypeDefault = `TYPE_UNSPECIFIED`;
1904
2540
 
1905
- export const LocateCaseResponse = zod
2541
+ export const LocateCaseNeighborResponse = zod
1906
2542
  .object({
1907
2543
  assignee: zod
1908
2544
  .object({
@@ -1918,6 +2554,13 @@ export const LocateCaseResponse = zod
1918
2554
  })
1919
2555
  .optional()
1920
2556
  .describe('Author or reporter of the case.'),
2557
+ close_article: zod
2558
+ .object({
2559
+ id: zod.string().optional(),
2560
+ name: zod.string().optional(),
2561
+ })
2562
+ .optional()
2563
+ .describe('Knowledge base article chosen as the close reason; id only.'),
1921
2564
  close_reason: zod
1922
2565
  .object({
1923
2566
  id: zod.string().optional(),
@@ -2091,6 +2734,13 @@ export const LocateCaseResponse = zod
2091
2734
  })
2092
2735
  .optional()
2093
2736
  .describe('Group associated with the case.'),
2737
+ has_next: zod.boolean().optional(),
2738
+ has_prev: zod
2739
+ .boolean()
2740
+ .optional()
2741
+ .describe(
2742
+ 'Whether a case exists before/after this one in the list it is being viewed in.',
2743
+ ),
2094
2744
  id: zod.string().optional().describe('Unique case ID.'),
2095
2745
  impacted: zod
2096
2746
  .object({
@@ -2233,7 +2883,9 @@ export const LocateCaseResponse = zod
2233
2883
  'IS_PARENT_OF',
2234
2884
  'RELATES_TO',
2235
2885
  ])
2236
- .default(locateCaseResponseRelatedDataItemRelationTypeDefault)
2886
+ .default(
2887
+ locateCaseNeighborResponseRelatedDataItemRelationTypeDefault,
2888
+ )
2237
2889
  .describe('Relation type between cases.'),
2238
2890
  updated_at: zod
2239
2891
  .string()
@@ -2372,7 +3024,7 @@ export const LocateCaseResponse = zod
2372
3024
  'API',
2373
3025
  'MANUAL',
2374
3026
  ])
2375
- .default(locateCaseResponseSourceTypeDefault)
3027
+ .default(locateCaseNeighborResponseSourceTypeDefault)
2376
3028
  .describe(
2377
3029
  'Represents a source type for the source entity.\n\n - TYPE_UNSPECIFIED: Unspecified source type.\n - CALL: Phone call source type.\n - CHAT: Chat source type.\n - SOCIAL_MEDIA: Social media source type.\n - EMAIL: Email source type.\n - API: API source type.\n - MANUAL: Manual source type.',
2378
3030
  ),
@@ -2458,6 +3110,12 @@ export const UpdateCase2Body = zod.object({
2458
3110
  name: zod.string().optional(),
2459
3111
  })
2460
3112
  .optional(),
3113
+ close_article: zod
3114
+ .object({
3115
+ id: zod.string().optional(),
3116
+ name: zod.string().optional(),
3117
+ })
3118
+ .optional(),
2461
3119
  close_reason: zod
2462
3120
  .object({
2463
3121
  id: zod.string().optional(),
@@ -2571,6 +3229,15 @@ export const UpdateCase2Response = zod.object({
2571
3229
  })
2572
3230
  .optional()
2573
3231
  .describe('Author or reporter of the case.'),
3232
+ close_article: zod
3233
+ .object({
3234
+ id: zod.string().optional(),
3235
+ name: zod.string().optional(),
3236
+ })
3237
+ .optional()
3238
+ .describe(
3239
+ 'Knowledge base article chosen as the close reason; id only.',
3240
+ ),
2574
3241
  close_reason: zod
2575
3242
  .object({
2576
3243
  id: zod.string().optional(),
@@ -2746,6 +3413,13 @@ export const UpdateCase2Response = zod.object({
2746
3413
  })
2747
3414
  .optional()
2748
3415
  .describe('Group associated with the case.'),
3416
+ has_next: zod.boolean().optional(),
3417
+ has_prev: zod
3418
+ .boolean()
3419
+ .optional()
3420
+ .describe(
3421
+ 'Whether a case exists before/after this one in the list it is being viewed in.',
3422
+ ),
2749
3423
  id: zod.string().optional().describe('Unique case ID.'),
2750
3424
  impacted: zod
2751
3425
  .object({
@@ -3128,6 +3802,12 @@ export const UpdateCaseBody = zod.object({
3128
3802
  name: zod.string().optional(),
3129
3803
  })
3130
3804
  .optional(),
3805
+ close_article: zod
3806
+ .object({
3807
+ id: zod.string().optional(),
3808
+ name: zod.string().optional(),
3809
+ })
3810
+ .optional(),
3131
3811
  close_reason: zod
3132
3812
  .object({
3133
3813
  id: zod.string().optional(),
@@ -3241,6 +3921,15 @@ export const UpdateCaseResponse = zod.object({
3241
3921
  })
3242
3922
  .optional()
3243
3923
  .describe('Author or reporter of the case.'),
3924
+ close_article: zod
3925
+ .object({
3926
+ id: zod.string().optional(),
3927
+ name: zod.string().optional(),
3928
+ })
3929
+ .optional()
3930
+ .describe(
3931
+ 'Knowledge base article chosen as the close reason; id only.',
3932
+ ),
3244
3933
  close_reason: zod
3245
3934
  .object({
3246
3935
  id: zod.string().optional(),
@@ -3416,6 +4105,13 @@ export const UpdateCaseResponse = zod.object({
3416
4105
  })
3417
4106
  .optional()
3418
4107
  .describe('Group associated with the case.'),
4108
+ has_next: zod.boolean().optional(),
4109
+ has_prev: zod
4110
+ .boolean()
4111
+ .optional()
4112
+ .describe(
4113
+ 'Whether a case exists before/after this one in the list it is being viewed in.',
4114
+ ),
3419
4115
  id: zod.string().optional().describe('Unique case ID.'),
3420
4116
  impacted: zod
3421
4117
  .object({
@@ -3824,6 +4520,15 @@ export const SearchCases2Response = zod
3824
4520
  })
3825
4521
  .optional()
3826
4522
  .describe('Author or reporter of the case.'),
4523
+ close_article: zod
4524
+ .object({
4525
+ id: zod.string().optional(),
4526
+ name: zod.string().optional(),
4527
+ })
4528
+ .optional()
4529
+ .describe(
4530
+ 'Knowledge base article chosen as the close reason; id only.',
4531
+ ),
3827
4532
  close_reason: zod
3828
4533
  .object({
3829
4534
  id: zod.string().optional(),
@@ -4009,6 +4714,13 @@ export const SearchCases2Response = zod
4009
4714
  })
4010
4715
  .optional()
4011
4716
  .describe('Group associated with the case.'),
4717
+ has_next: zod.boolean().optional(),
4718
+ has_prev: zod
4719
+ .boolean()
4720
+ .optional()
4721
+ .describe(
4722
+ 'Whether a case exists before/after this one in the list it is being viewed in.',
4723
+ ),
4012
4724
  id: zod.string().optional().describe('Unique case ID.'),
4013
4725
  impacted: zod
4014
4726
  .object({