@webitel/api-services 26.8.47 → 26.8.49

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 (229) hide show
  1. package/package.json +1 -1
  2. package/src/api/clients/catalog/__tests__/catalog.spec.ts +79 -0
  3. package/src/api/clients/catalog/catalog.ts +16 -3
  4. package/src/api/clients/media/media.ts +5 -0
  5. package/src/gen/_models/apiUserSetting.ts +1 -0
  6. package/src/gen/_models/deleteMediaFileParams.ts +1 -0
  7. package/src/gen/_models/deleteRoleParams.ts +17 -0
  8. package/src/gen/_models/engineAttemptHistory.ts +1 -0
  9. package/src/gen/_models/engineCreateRoutingSchemaRequest.ts +1 -0
  10. package/src/gen/_models/engineCreateSchemaVariableRequest.ts +1 -0
  11. package/src/gen/_models/engineCreateSystemSettingRequest.ts +1 -0
  12. package/src/gen/_models/engineQueueType.ts +24 -0
  13. package/src/gen/_models/engineRoutingSchema.ts +1 -0
  14. package/src/gen/_models/engineRoutingSchemaServicePatchRoutingSchemaBody.ts +1 -0
  15. package/src/gen/_models/engineRoutingSchemaServiceUpdateRoutingSchemaBody.ts +1 -0
  16. package/src/gen/_models/engineSchemaVariable.ts +1 -0
  17. package/src/gen/_models/engineSchemaVariablesServicePatchSchemaVariableBody.ts +1 -0
  18. package/src/gen/_models/engineSchemaVariablesServiceUpdateSchemaVariableBody.ts +1 -0
  19. package/src/gen/_models/engineSchemaVersion.ts +1 -0
  20. package/src/gen/_models/engineSearchHistoryCallRequest.ts +2 -0
  21. package/src/gen/_models/engineSystemSetting.ts +1 -0
  22. package/src/gen/_models/engineSystemSettingServicePatchSystemSettingBody.ts +1 -0
  23. package/src/gen/_models/engineSystemSettingServiceUpdateSystemSettingBody.ts +1 -1
  24. package/src/gen/_models/index.ts +25 -2
  25. package/src/gen/_models/locateArticleParams.ts +13 -0
  26. package/src/gen/_models/readRoleParams.ts +15 -0
  27. package/src/gen/_models/roleMetadataParams.ts +17 -0
  28. package/src/gen/_models/searchHistoryCallExcludedQueueTypesItem.ts +24 -0
  29. package/src/gen/_models/searchHistoryCallParams.ts +2 -0
  30. package/src/gen/_models/searchRecordAvailableRolesParams.ts +53 -0
  31. package/src/gen/_models/searchRetrievalParams.ts +3 -2
  32. package/src/gen/_models/searchRetrievalTagMatch.ts +1 -0
  33. package/src/gen/_models/searchRolesParams.ts +50 -0
  34. package/src/gen/_models/updateArticle2Params.ts +13 -0
  35. package/src/gen/_models/updateArticleParams.ts +13 -0
  36. package/src/gen/_models/updateModel2Params.ts +13 -0
  37. package/src/gen/_models/updateModelParams.ts +13 -0
  38. package/src/gen/_models/updateSpace2Params.ts +13 -0
  39. package/src/gen/_models/updateSpaceParams.ts +13 -0
  40. package/src/gen/_models/webitelCasesCaseTimelinePostprocessingResult.ts +13 -0
  41. package/src/gen/_models/webitelCasesCaseTimelineVariable.ts +11 -0
  42. package/src/gen/_models/webitelCasesGetTimelineItemInfoResponse.ts +13 -0
  43. package/src/gen/_models/webitelImApiGatewayV1GetUpdatesRequest.ts +11 -0
  44. package/src/gen/_models/webitelImApiGatewayV1GetUpdatesResponse.ts +19 -0
  45. package/src/gen/_models/webitelImApiGatewayV1HistoryMessage.ts +0 -10
  46. package/src/gen/_models/webitelImApiGatewayV1MemberReadState.ts +19 -0
  47. package/src/gen/_models/webitelImApiGatewayV1SearchMessageHistoryResponse.ts +2 -0
  48. package/src/gen/_models/webitelImApiGatewayV1SearchThreadResponse.ts +2 -0
  49. package/src/gen/_models/webitelImApiGatewayV1Thread.ts +8 -0
  50. package/src/gen/_models/webitelImApiGatewayV1ThreadMemberChange.ts +15 -0
  51. package/src/gen/_models/webitelImApiGatewayV1ThreadMemberChangeAction.ts +16 -0
  52. package/src/gen/_models/webitelImApiGatewayV1ThreadUpdates.ts +27 -0
  53. package/src/gen/_models/webitelImApiGatewayV1UpdatedMessage.ts +41 -0
  54. package/src/gen/_models/webitelImApiGatewayV1UpdatedMessageMetadata.ts +10 -0
  55. package/src/gen/_models/webitelKbArticle.ts +3 -0
  56. package/src/gen/_models/webitelKbSemanticSearchRequest.ts +1 -1
  57. package/src/gen/_models/webitelKbTagMatch.ts +3 -1
  58. package/src/gen-wire/_models/deleteMediaFileParams.ts +1 -0
  59. package/src/gen-wire/_models/engineAttemptHistory.ts +1 -0
  60. package/src/gen-wire/_models/engineQueueType.ts +24 -0
  61. package/src/gen-wire/_models/engineSearchHistoryCallRequest.ts +2 -0
  62. package/src/gen-wire/_models/index.ts +20 -2
  63. package/src/gen-wire/_models/locateArticleParams.ts +13 -0
  64. package/src/gen-wire/_models/searchHistoryCallExcludedQueueTypesItem.ts +24 -0
  65. package/src/gen-wire/_models/searchHistoryCallParams.ts +2 -0
  66. package/src/gen-wire/_models/searchRetrievalParams.ts +3 -2
  67. package/src/gen-wire/_models/searchRetrievalTagMatch.ts +1 -0
  68. package/src/gen-wire/_models/updateArticle2Params.ts +13 -0
  69. package/src/gen-wire/_models/updateArticleParams.ts +13 -0
  70. package/src/gen-wire/_models/updateModel2Params.ts +13 -0
  71. package/src/gen-wire/_models/updateModelParams.ts +13 -0
  72. package/src/gen-wire/_models/updateSpace2Params.ts +13 -0
  73. package/src/gen-wire/_models/updateSpaceParams.ts +13 -0
  74. package/src/gen-wire/_models/webitelCasesCaseTimelinePostprocessingResult.ts +13 -0
  75. package/src/gen-wire/_models/webitelCasesCaseTimelineVariable.ts +11 -0
  76. package/src/gen-wire/_models/webitelCasesGetTimelineItemInfoResponse.ts +13 -0
  77. package/src/gen-wire/_models/webitelImApiGatewayV1GetUpdatesRequest.ts +11 -0
  78. package/src/gen-wire/_models/webitelImApiGatewayV1GetUpdatesResponse.ts +19 -0
  79. package/src/gen-wire/_models/webitelImApiGatewayV1HistoryMessage.ts +0 -10
  80. package/src/gen-wire/_models/webitelImApiGatewayV1MemberReadState.ts +19 -0
  81. package/src/gen-wire/_models/webitelImApiGatewayV1SearchMessageHistoryResponse.ts +2 -0
  82. package/src/gen-wire/_models/webitelImApiGatewayV1SearchThreadResponse.ts +2 -0
  83. package/src/gen-wire/_models/webitelImApiGatewayV1Thread.ts +8 -0
  84. package/src/gen-wire/_models/webitelImApiGatewayV1ThreadMemberChange.ts +15 -0
  85. package/src/gen-wire/_models/webitelImApiGatewayV1ThreadMemberChangeAction.ts +16 -0
  86. package/src/gen-wire/_models/webitelImApiGatewayV1ThreadUpdates.ts +27 -0
  87. package/src/gen-wire/_models/webitelImApiGatewayV1UpdatedMessage.ts +41 -0
  88. package/src/gen-wire/_models/webitelImApiGatewayV1UpdatedMessageMetadata.ts +10 -0
  89. package/src/gen-wire/_models/webitelKbArticle.ts +3 -0
  90. package/src/gen-wire/_models/webitelKbSemanticSearchRequest.ts +1 -1
  91. package/src/gen-wire/_models/webitelKbTagMatch.ts +3 -1
  92. package/src/gen-wire/articles/articles.ts +42 -3
  93. package/src/gen-wire/articles/articles.zod.ts +586 -0
  94. package/src/gen-wire/call-service/call-service.zod.ts +40 -0
  95. package/src/gen-wire/case-timeline/case-timeline.ts +15 -0
  96. package/src/gen-wire/case-timeline/case-timeline.zod.ts +35 -0
  97. package/src/gen-wire/embedding-models/embedding-models.ts +18 -2
  98. package/src/gen-wire/embedding-models/embedding-models.zod.ts +18 -0
  99. package/src/gen-wire/index.ts +41 -17
  100. package/src/gen-wire/index.zod.ts +1 -0
  101. package/src/gen-wire/media-file-service/media-file-service.zod.ts +1 -0
  102. package/src/gen-wire/member-service/member-service.zod.ts +1 -0
  103. package/src/gen-wire/retrieval/retrieval.zod.ts +6 -4
  104. package/src/gen-wire/spaces/spaces.ts +18 -10
  105. package/src/gen-wire/spaces/spaces.zod.ts +18 -0
  106. package/src/gen-wire/timeline/timeline.ts +3 -3
  107. package/src/gen-wire/timeline/timeline.zod.ts +2 -2
  108. package/src/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.ts +18 -189
  109. package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.ts +597 -309
  110. package/src/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.ts +47 -0
  111. package/src/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.ts +3350 -0
  112. package/types/.tsbuildinfo +1 -1
  113. package/types/api/clients/catalog/catalog.d.ts +4 -1
  114. package/types/api/clients/media/media.d.ts +1 -0
  115. package/types/gen/_models/apiUserSetting.d.ts +1 -0
  116. package/types/gen/_models/deleteMediaFileParams.d.ts +1 -0
  117. package/types/gen/_models/deleteRoleParams.d.ts +16 -0
  118. package/types/gen/_models/engineAttemptHistory.d.ts +1 -0
  119. package/types/gen/_models/engineCreateRoutingSchemaRequest.d.ts +1 -0
  120. package/types/gen/_models/engineCreateSchemaVariableRequest.d.ts +1 -0
  121. package/types/gen/_models/engineCreateSystemSettingRequest.d.ts +1 -0
  122. package/types/gen/_models/engineQueueType.d.ts +21 -0
  123. package/types/gen/_models/engineRoutingSchema.d.ts +1 -0
  124. package/types/gen/_models/engineRoutingSchemaServicePatchRoutingSchemaBody.d.ts +1 -0
  125. package/types/gen/_models/engineRoutingSchemaServiceUpdateRoutingSchemaBody.d.ts +1 -0
  126. package/types/gen/_models/engineSchemaVariable.d.ts +1 -0
  127. package/types/gen/_models/engineSchemaVariablesServicePatchSchemaVariableBody.d.ts +1 -0
  128. package/types/gen/_models/engineSchemaVariablesServiceUpdateSchemaVariableBody.d.ts +1 -0
  129. package/types/gen/_models/engineSchemaVersion.d.ts +1 -0
  130. package/types/gen/_models/engineSearchHistoryCallRequest.d.ts +2 -0
  131. package/types/gen/_models/engineSystemSetting.d.ts +1 -0
  132. package/types/gen/_models/engineSystemSettingServicePatchSystemSettingBody.d.ts +1 -0
  133. package/types/gen/_models/engineSystemSettingServiceUpdateSystemSettingBody.d.ts +1 -1
  134. package/types/gen/_models/index.d.ts +25 -2
  135. package/types/gen/_models/locateArticleParams.d.ts +12 -0
  136. package/types/gen/_models/readRoleParams.d.ts +14 -0
  137. package/types/gen/_models/roleMetadataParams.d.ts +16 -0
  138. package/types/gen/_models/searchHistoryCallExcludedQueueTypesItem.d.ts +21 -0
  139. package/types/gen/_models/searchHistoryCallParams.d.ts +2 -0
  140. package/types/gen/_models/searchRecordAvailableRolesParams.d.ts +52 -0
  141. package/types/gen/_models/searchRetrievalParams.d.ts +3 -2
  142. package/types/gen/_models/searchRetrievalTagMatch.d.ts +1 -0
  143. package/types/gen/_models/searchRolesParams.d.ts +49 -0
  144. package/types/gen/_models/updateArticle2Params.d.ts +12 -0
  145. package/types/gen/_models/updateArticleParams.d.ts +12 -0
  146. package/types/gen/_models/updateModel2Params.d.ts +12 -0
  147. package/types/gen/_models/updateModelParams.d.ts +12 -0
  148. package/types/gen/_models/updateSpace2Params.d.ts +12 -0
  149. package/types/gen/_models/updateSpaceParams.d.ts +12 -0
  150. package/types/gen/_models/webitelCasesCaseTimelinePostprocessingResult.d.ts +12 -0
  151. package/types/gen/_models/webitelCasesCaseTimelineVariable.d.ts +10 -0
  152. package/types/gen/_models/webitelCasesGetTimelineItemInfoResponse.d.ts +12 -0
  153. package/types/gen/_models/webitelImApiGatewayV1GetUpdatesRequest.d.ts +10 -0
  154. package/types/gen/_models/webitelImApiGatewayV1GetUpdatesResponse.d.ts +18 -0
  155. package/types/gen/_models/webitelImApiGatewayV1HistoryMessage.d.ts +0 -10
  156. package/types/gen/_models/webitelImApiGatewayV1MemberReadState.d.ts +18 -0
  157. package/types/gen/_models/webitelImApiGatewayV1SearchMessageHistoryResponse.d.ts +2 -0
  158. package/types/gen/_models/webitelImApiGatewayV1SearchThreadResponse.d.ts +2 -0
  159. package/types/gen/_models/webitelImApiGatewayV1Thread.d.ts +8 -0
  160. package/types/gen/_models/webitelImApiGatewayV1ThreadMemberChange.d.ts +14 -0
  161. package/types/gen/_models/webitelImApiGatewayV1ThreadMemberChangeAction.d.ts +12 -0
  162. package/types/gen/_models/webitelImApiGatewayV1ThreadUpdates.d.ts +26 -0
  163. package/types/gen/_models/webitelImApiGatewayV1UpdatedMessage.d.ts +40 -0
  164. package/types/gen/_models/webitelImApiGatewayV1UpdatedMessageMetadata.d.ts +9 -0
  165. package/types/gen/_models/webitelKbArticle.d.ts +3 -0
  166. package/types/gen/_models/webitelKbSemanticSearchRequest.d.ts +1 -1
  167. package/types/gen/_models/webitelKbTagMatch.d.ts +3 -1
  168. package/types/gen-wire/_models/deleteMediaFileParams.d.ts +1 -0
  169. package/types/gen-wire/_models/engineAttemptHistory.d.ts +1 -0
  170. package/types/gen-wire/_models/engineQueueType.d.ts +21 -0
  171. package/types/gen-wire/_models/engineSearchHistoryCallRequest.d.ts +2 -0
  172. package/types/gen-wire/_models/index.d.ts +20 -2
  173. package/types/gen-wire/_models/locateArticleParams.d.ts +12 -0
  174. package/types/gen-wire/_models/searchHistoryCallExcludedQueueTypesItem.d.ts +21 -0
  175. package/types/gen-wire/_models/searchHistoryCallParams.d.ts +2 -0
  176. package/types/gen-wire/_models/searchRetrievalParams.d.ts +3 -2
  177. package/types/gen-wire/_models/searchRetrievalTagMatch.d.ts +1 -0
  178. package/types/gen-wire/_models/updateArticle2Params.d.ts +12 -0
  179. package/types/gen-wire/_models/updateArticleParams.d.ts +12 -0
  180. package/types/gen-wire/_models/updateModel2Params.d.ts +12 -0
  181. package/types/gen-wire/_models/updateModelParams.d.ts +12 -0
  182. package/types/gen-wire/_models/updateSpace2Params.d.ts +12 -0
  183. package/types/gen-wire/_models/updateSpaceParams.d.ts +12 -0
  184. package/types/gen-wire/_models/webitelCasesCaseTimelinePostprocessingResult.d.ts +12 -0
  185. package/types/gen-wire/_models/webitelCasesCaseTimelineVariable.d.ts +10 -0
  186. package/types/gen-wire/_models/webitelCasesGetTimelineItemInfoResponse.d.ts +12 -0
  187. package/types/gen-wire/_models/webitelImApiGatewayV1GetUpdatesRequest.d.ts +10 -0
  188. package/types/gen-wire/_models/webitelImApiGatewayV1GetUpdatesResponse.d.ts +18 -0
  189. package/types/gen-wire/_models/webitelImApiGatewayV1HistoryMessage.d.ts +0 -10
  190. package/types/gen-wire/_models/webitelImApiGatewayV1MemberReadState.d.ts +18 -0
  191. package/types/gen-wire/_models/webitelImApiGatewayV1SearchMessageHistoryResponse.d.ts +2 -0
  192. package/types/gen-wire/_models/webitelImApiGatewayV1SearchThreadResponse.d.ts +2 -0
  193. package/types/gen-wire/_models/webitelImApiGatewayV1Thread.d.ts +8 -0
  194. package/types/gen-wire/_models/webitelImApiGatewayV1ThreadMemberChange.d.ts +14 -0
  195. package/types/gen-wire/_models/webitelImApiGatewayV1ThreadMemberChangeAction.d.ts +12 -0
  196. package/types/gen-wire/_models/webitelImApiGatewayV1ThreadUpdates.d.ts +26 -0
  197. package/types/gen-wire/_models/webitelImApiGatewayV1UpdatedMessage.d.ts +40 -0
  198. package/types/gen-wire/_models/webitelImApiGatewayV1UpdatedMessageMetadata.d.ts +9 -0
  199. package/types/gen-wire/_models/webitelKbArticle.d.ts +3 -0
  200. package/types/gen-wire/_models/webitelKbSemanticSearchRequest.d.ts +1 -1
  201. package/types/gen-wire/_models/webitelKbTagMatch.d.ts +3 -1
  202. package/types/gen-wire/articles/articles.d.ts +6 -4
  203. package/types/gen-wire/articles/articles.zod.d.ts +221 -0
  204. package/types/gen-wire/call-service/call-service.zod.d.ts +29 -0
  205. package/types/gen-wire/case-timeline/case-timeline.d.ts +3 -1
  206. package/types/gen-wire/case-timeline/case-timeline.zod.d.ts +23 -0
  207. package/types/gen-wire/embedding-models/embedding-models.d.ts +3 -3
  208. package/types/gen-wire/embedding-models/embedding-models.zod.d.ts +6 -0
  209. package/types/gen-wire/index.d.ts +10 -8
  210. package/types/gen-wire/index.zod.d.ts +1 -0
  211. package/types/gen-wire/media-file-service/media-file-service.zod.d.ts +1 -0
  212. package/types/gen-wire/member-service/member-service.zod.d.ts +1 -0
  213. package/types/gen-wire/retrieval/retrieval.zod.d.ts +4 -2
  214. package/types/gen-wire/spaces/spaces.d.ts +3 -3
  215. package/types/gen-wire/spaces/spaces.zod.d.ts +6 -0
  216. package/types/gen-wire/timeline/timeline.d.ts +2 -2
  217. package/types/gen-wire/timeline/timeline.zod.d.ts +2 -2
  218. package/types/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.d.ts +3 -72
  219. package/types/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.d.ts +201 -96
  220. package/types/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.d.ts +13 -0
  221. package/types/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.d.ts +1122 -0
  222. package/src/gen/_models/webitelImApiGatewayV1MessageDeliveryStatus.ts +0 -27
  223. package/src/gen/_models/webitelImApiGatewayV1MessageRecipientStatus.ts +0 -24
  224. package/src/gen-wire/_models/webitelImApiGatewayV1MessageDeliveryStatus.ts +0 -27
  225. package/src/gen-wire/_models/webitelImApiGatewayV1MessageRecipientStatus.ts +0 -24
  226. package/types/gen/_models/webitelImApiGatewayV1MessageDeliveryStatus.d.ts +0 -24
  227. package/types/gen/_models/webitelImApiGatewayV1MessageRecipientStatus.d.ts +0 -23
  228. package/types/gen-wire/_models/webitelImApiGatewayV1MessageDeliveryStatus.d.ts +0 -24
  229. package/types/gen-wire/_models/webitelImApiGatewayV1MessageRecipientStatus.d.ts +0 -23
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+ export interface WebitelCasesCaseTimelineVariable {
8
+ key?: string;
9
+ value?: string;
10
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+ import type { WebitelCasesCaseTimelinePostprocessingResult } from './webitelCasesCaseTimelinePostprocessingResult';
8
+ import type { WebitelCasesCaseTimelineVariable } from './webitelCasesCaseTimelineVariable';
9
+ export interface WebitelCasesGetTimelineItemInfoResponse {
10
+ postprocessing?: WebitelCasesCaseTimelinePostprocessingResult[];
11
+ variables?: WebitelCasesCaseTimelineVariable[];
12
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+ export interface WebitelImApiGatewayV1GetUpdatesRequest {
8
+ /** From the previous response; empty on the first sync. */
9
+ cursor?: string;
10
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+ import type { WebitelImApiGatewayV1ThreadUpdates } from './webitelImApiGatewayV1ThreadUpdates';
8
+ export interface WebitelImApiGatewayV1GetUpdatesResponse {
9
+ /** Pass back as cursor on the next call. */
10
+ cursor?: string;
11
+ /**
12
+ * Empty cursor, unusable cursor or more than 1000 changes: reload the thread list,
13
+ * then continue from cursor.
14
+ */
15
+ resync?: boolean;
16
+ /** Only threads that changed. */
17
+ threads?: WebitelImApiGatewayV1ThreadUpdates[];
18
+ }
@@ -11,10 +11,8 @@ import type { WebitelImApiGatewayV1Image } from './webitelImApiGatewayV1Image';
11
11
  import type { WebitelImApiGatewayV1Interactive } from './webitelImApiGatewayV1Interactive';
12
12
  import type { WebitelImApiGatewayV1InteractiveCallback } from './webitelImApiGatewayV1InteractiveCallback';
13
13
  import type { WebitelImApiGatewayV1MessageContact } from './webitelImApiGatewayV1MessageContact';
14
- import type { WebitelImApiGatewayV1MessageDeliveryStatus } from './webitelImApiGatewayV1MessageDeliveryStatus';
15
14
  import type { WebitelImApiGatewayV1MessageLocation } from './webitelImApiGatewayV1MessageLocation';
16
15
  import type { WebitelImApiGatewayV1MessageReaction } from './webitelImApiGatewayV1MessageReaction';
17
- import type { WebitelImApiGatewayV1MessageRecipientStatus } from './webitelImApiGatewayV1MessageRecipientStatus';
18
16
  import type { WebitelImApiGatewayV1ReplyToMessage } from './webitelImApiGatewayV1ReplyToMessage';
19
17
  import type { WebitelImApiGatewayV1System } from './webitelImApiGatewayV1System';
20
18
  import type { WebitelImApiGatewayV1ThreadMember } from './webitelImApiGatewayV1ThreadMember';
@@ -41,12 +39,6 @@ export interface WebitelImApiGatewayV1HistoryMessage {
41
39
  * the message is live.
42
40
  */
43
41
  deleted_by?: WebitelImApiGatewayV1ThreadMember;
44
- /**
45
- * Aggregated delivery status across recipients: FAILED when every
46
- * recipient failed, otherwise the minimal status among non-failed ones.
47
- * UNSPECIFIED for messages without per-recipient tracking (historical).
48
- */
49
- delivery_status?: WebitelImApiGatewayV1MessageDeliveryStatus;
50
42
  /** List of document attachments. */
51
43
  documents?: WebitelImApiGatewayV1Document[];
52
44
  /** Message last update timestamp (Unix time, milliseconds). */
@@ -82,8 +74,6 @@ export interface WebitelImApiGatewayV1HistoryMessage {
82
74
  sender?: WebitelImApiGatewayV1ThreadMember;
83
75
  /** Per-thread monotonic sequence number, assigned on message creation. */
84
76
  seq?: string;
85
- /** Per-recipient delivery details. */
86
- statuses?: WebitelImApiGatewayV1MessageRecipientStatus[];
87
77
  /** System message content. */
88
78
  system?: WebitelImApiGatewayV1System;
89
79
  /** Identifier of the thread the message belongs to. */
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+ import type { WebitelImApiGatewayV1ThreadMember } from './webitelImApiGatewayV1ThreadMember';
8
+ /**
9
+ * MemberReadState is one member's delivery/read horizon in a thread, as
10
+ * per-thread message seq (0 = nothing reached that state yet).
11
+ */
12
+ export interface WebitelImApiGatewayV1MemberReadState {
13
+ delivered_up_to_seq?: string;
14
+ /** The member, in the same shape as history's sender; set by GetUpdates. */
15
+ member?: WebitelImApiGatewayV1ThreadMember;
16
+ member_id?: string;
17
+ read_up_to_seq?: string;
18
+ }
@@ -17,4 +17,6 @@ export interface WebitelImApiGatewayV1SearchMessageHistoryResponse {
17
17
  next_cursor?: WebitelImApiGatewayV1HistoryMessageCursorResponse;
18
18
  /** Cursor that represents position to get newest messages (used with 'before' param). */
19
19
  prev_cursor?: WebitelImApiGatewayV1HistoryMessageCursorResponse;
20
+ /** GetUpdates cursor read before this page: every later change comes from GetUpdates(updates_cursor). */
21
+ updates_cursor?: string;
20
22
  }
@@ -14,4 +14,6 @@ export interface WebitelImApiGatewayV1SearchThreadResponse {
14
14
  items?: WebitelImApiGatewayV1Thread[];
15
15
  /** Indicates whether there is a next page available. */
16
16
  next?: boolean;
17
+ /** GetUpdates cursor read before this page: every later change comes from GetUpdates(updates_cursor). */
18
+ updates_cursor?: string;
17
19
  }
@@ -5,6 +5,7 @@
5
5
  * OpenAPI spec version: 24.04.0
6
6
  */
7
7
  import type { WebitelImApiGatewayV1HistoryMessage } from './webitelImApiGatewayV1HistoryMessage';
8
+ import type { WebitelImApiGatewayV1MemberReadState } from './webitelImApiGatewayV1MemberReadState';
8
9
  import type { WebitelImApiGatewayV1ThreadKind } from './webitelImApiGatewayV1ThreadKind';
9
10
  import type { WebitelImApiGatewayV1ThreadMember } from './webitelImApiGatewayV1ThreadMember';
10
11
  import type { WebitelImApiGatewayV1ThreadSettings } from './webitelImApiGatewayV1ThreadSettings';
@@ -23,6 +24,11 @@ export interface WebitelImApiGatewayV1Thread {
23
24
  last_msg?: WebitelImApiGatewayV1HistoryMessage;
24
25
  /** Detailed member information. */
25
26
  members?: WebitelImApiGatewayV1ThreadMember[];
27
+ /**
28
+ * Per-member read horizons (snapshot, matches GetUpdates model).
29
+ * Client derives inbox/outbox watermarks: own_last_read = inbox; MIN over others = outbox.
30
+ */
31
+ read_states?: WebitelImApiGatewayV1MemberReadState[];
26
32
  /** User-specific settings for this thread. */
27
33
  settings?: WebitelImApiGatewayV1ThreadSettings;
28
34
  /** Thread subject or title. */
@@ -37,6 +43,8 @@ export interface WebitelImApiGatewayV1Thread {
37
43
  unread_count?: number;
38
44
  /** Last update timestamp (Unix time, milliseconds). */
39
45
  updated_at?: string;
46
+ /** GetUpdates cursor read before this thread (set by Get; Search carries it on the response). */
47
+ updates_cursor?: string;
40
48
  /** Optional variables associated with the thread. */
41
49
  variables?: WebitelImApiGatewayV1ThreadVariables;
42
50
  }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+ import type { WebitelImApiGatewayV1ThreadMember } from './webitelImApiGatewayV1ThreadMember';
8
+ import type { WebitelImApiGatewayV1ThreadMemberChangeAction } from './webitelImApiGatewayV1ThreadMemberChangeAction';
9
+ export interface WebitelImApiGatewayV1ThreadMemberChange {
10
+ action?: WebitelImApiGatewayV1ThreadMemberChangeAction;
11
+ /** Who made the change. */
12
+ by?: WebitelImApiGatewayV1ThreadMember;
13
+ member?: WebitelImApiGatewayV1ThreadMember;
14
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+ export type WebitelImApiGatewayV1ThreadMemberChangeAction = (typeof WebitelImApiGatewayV1ThreadMemberChangeAction)[keyof typeof WebitelImApiGatewayV1ThreadMemberChangeAction];
8
+ export declare const WebitelImApiGatewayV1ThreadMemberChangeAction: {
9
+ readonly ThreadMemberChangeActionUnspecified: "THREAD_MEMBER_CHANGE_ACTION_UNSPECIFIED";
10
+ readonly ThreadMemberChangeActionJoined: "THREAD_MEMBER_CHANGE_ACTION_JOINED";
11
+ readonly ThreadMemberChangeActionLeft: "THREAD_MEMBER_CHANGE_ACTION_LEFT";
12
+ };
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+ import type { WebitelImApiGatewayV1MemberReadState } from './webitelImApiGatewayV1MemberReadState';
8
+ import type { WebitelImApiGatewayV1Thread } from './webitelImApiGatewayV1Thread';
9
+ import type { WebitelImApiGatewayV1ThreadMemberChange } from './webitelImApiGatewayV1ThreadMemberChange';
10
+ import type { WebitelImApiGatewayV1UpdatedMessage } from './webitelImApiGatewayV1UpdatedMessage';
11
+ export interface WebitelImApiGatewayV1ThreadUpdates {
12
+ deleted_message_ids?: string[];
13
+ /** The thread itself, set when it is new to the caller (created or joined since cursor). */
14
+ dialog?: WebitelImApiGatewayV1Thread;
15
+ /** The caller is no longer a member: drop the thread. */
16
+ left?: boolean;
17
+ member_changes?: WebitelImApiGatewayV1ThreadMemberChange[];
18
+ /** New or changed messages in their current state; upsert by id. */
19
+ messages?: WebitelImApiGatewayV1UpdatedMessage[];
20
+ /** Delivery/read horizons in message seq. */
21
+ read_states?: WebitelImApiGatewayV1MemberReadState[];
22
+ thread_id?: string;
23
+ /** Newest message for the list preview; set with dialog. */
24
+ top_message?: WebitelImApiGatewayV1UpdatedMessage;
25
+ unread_count?: string;
26
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+ import type { WebitelImApiGatewayV1Document } from './webitelImApiGatewayV1Document';
8
+ import type { WebitelImApiGatewayV1ForwardOrigin } from './webitelImApiGatewayV1ForwardOrigin';
9
+ import type { WebitelImApiGatewayV1Image } from './webitelImApiGatewayV1Image';
10
+ import type { WebitelImApiGatewayV1Interactive } from './webitelImApiGatewayV1Interactive';
11
+ import type { WebitelImApiGatewayV1MessageContact } from './webitelImApiGatewayV1MessageContact';
12
+ import type { WebitelImApiGatewayV1MessageLocation } from './webitelImApiGatewayV1MessageLocation';
13
+ import type { WebitelImApiGatewayV1MessageReaction } from './webitelImApiGatewayV1MessageReaction';
14
+ import type { WebitelImApiGatewayV1ReplyToMessage } from './webitelImApiGatewayV1ReplyToMessage';
15
+ import type { WebitelImApiGatewayV1System } from './webitelImApiGatewayV1System';
16
+ import type { WebitelImApiGatewayV1ThreadMember } from './webitelImApiGatewayV1ThreadMember';
17
+ import type { WebitelImApiGatewayV1UpdatedMessageMetadata } from './webitelImApiGatewayV1UpdatedMessageMetadata';
18
+ /**
19
+ * UpdatedMessage is what a client needs to render or re-render a message bubble.
20
+ */
21
+ export interface WebitelImApiGatewayV1UpdatedMessage {
22
+ body?: string;
23
+ contact?: WebitelImApiGatewayV1MessageContact;
24
+ created_at?: string;
25
+ documents?: WebitelImApiGatewayV1Document[];
26
+ /** Set when the message was edited. */
27
+ edited_at?: string;
28
+ forward_origin?: WebitelImApiGatewayV1ForwardOrigin;
29
+ id?: string;
30
+ images?: WebitelImApiGatewayV1Image[];
31
+ interactive?: WebitelImApiGatewayV1Interactive;
32
+ location?: WebitelImApiGatewayV1MessageLocation;
33
+ metadata?: WebitelImApiGatewayV1UpdatedMessageMetadata;
34
+ reactions?: WebitelImApiGatewayV1MessageReaction[];
35
+ reply_to?: WebitelImApiGatewayV1ReplyToMessage;
36
+ sender?: WebitelImApiGatewayV1ThreadMember;
37
+ seq?: string;
38
+ system?: WebitelImApiGatewayV1System;
39
+ type?: number;
40
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+ export type WebitelImApiGatewayV1UpdatedMessageMetadata = {
8
+ [key: string]: unknown;
9
+ };
@@ -7,6 +7,7 @@
7
7
  import type { GeneralLookup } from './generalLookup';
8
8
  import type { WebitelKbArticleState } from './webitelKbArticleState';
9
9
  import type { WebitelKbArticleType } from './webitelKbArticleType';
10
+ import type { WebitelKbArticleVersion } from './webitelKbArticleVersion';
10
11
  import type { WebitelKbIndexState } from './webitelKbIndexState';
11
12
  /**
12
13
  * Article is the article read model.
@@ -30,6 +31,8 @@ export interface WebitelKbArticle {
30
31
  index_state?: WebitelKbIndexState;
31
32
  /** Parent article id; 0 for a top-level article. */
32
33
  parent_id?: string;
34
+ /** Published version, only when requested in fields. */
35
+ published?: WebitelKbArticleVersion;
33
36
  /** Published version id; 0 if not yet published. */
34
37
  published_version_id?: string;
35
38
  /** Space the article belongs to. */
@@ -17,7 +17,7 @@ export interface WebitelKbSemanticSearchRequest {
17
17
  query?: string;
18
18
  /** Spaces to search within (bot service scope). */
19
19
  space_ids?: string[];
20
- /** How to combine the tag filter. */
20
+ /** How to combine the tag filter; unspecified means any. */
21
21
  tag_match?: WebitelKbTagMatch;
22
22
  /** Maximum number of chunks to return. */
23
23
  top_k?: number;
@@ -7,11 +7,13 @@
7
7
  /**
8
8
  * Tag-filter combination mode.
9
9
  *
10
- * - TAG_MATCH_ALL: Default: match articles having ALL listed tags (AND).
10
+ * - TAG_MATCH_UNSPECIFIED: Default mode: match articles having ANY listed tag (OR).
11
+ * - TAG_MATCH_ALL: Match articles having ALL listed tags (AND).
11
12
  * - TAG_MATCH_ANY: Match articles having ANY listed tag (OR).
12
13
  */
13
14
  export type WebitelKbTagMatch = (typeof WebitelKbTagMatch)[keyof typeof WebitelKbTagMatch];
14
15
  export declare const WebitelKbTagMatch: {
16
+ readonly TagMatchUnspecified: "TAG_MATCH_UNSPECIFIED";
15
17
  readonly TagMatchAll: "TAG_MATCH_ALL";
16
18
  readonly TagMatchAny: "TAG_MATCH_ANY";
17
19
  };
@@ -5,7 +5,7 @@
5
5
  * OpenAPI spec version: 24.04.0
6
6
  */
7
7
  import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
8
- import type { ArticlesAttachmentListParams, ArticleVersionsListParams, CreateArticleArticlesParams, DeleteArticleArticlesParams, KnowledgebaseArticle, KnowledgebaseArticleList, KnowledgebaseArticleVersion, KnowledgebaseArticleVersionList, KnowledgebaseAttachmentList, KnowledgebaseInputArticle, ListArticles2Params, ListArticlesArticlesParams, ListArticlesParams, LocateArticleArticlesParams, UpdateArticleArticlesBody, UpdateArticleArticlesParams, WebitelKbArticle, WebitelKbArticleList, WebitelKbArticlesMoveArticleBody, WebitelKbGetTreeResponse, WebitelKbInputArticle } from '../_models';
8
+ import type { ArticlesAttachmentListParams, ArticleVersionsListParams, CreateArticleArticlesParams, DeleteArticleArticlesParams, KnowledgebaseArticle, KnowledgebaseArticleList, KnowledgebaseArticleVersion, KnowledgebaseArticleVersionList, KnowledgebaseAttachmentList, KnowledgebaseInputArticle, ListArticles2Params, ListArticlesArticlesParams, ListArticlesParams, LocateArticleArticlesParams, LocateArticleParams, UpdateArticle2Params, UpdateArticleArticlesBody, UpdateArticleArticlesParams, UpdateArticleParams, WebitelKbArticle, WebitelKbArticleList, WebitelKbArticlesMoveArticleBody, WebitelKbGetTreeResponse, WebitelKbInputArticle } from '../_models';
9
9
  export declare const // --- title start
10
10
  getArticles: (axiosInstance?: AxiosInstance) => {
11
11
  listArticlesArticles: (spaceId: string, params?: ListArticlesArticlesParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<KnowledgebaseArticleList>>;
@@ -20,10 +20,11 @@ getArticles: (axiosInstance?: AxiosInstance) => {
20
20
  listArticles: (params?: ListArticlesParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<WebitelKbArticleList>>;
21
21
  createArticle: (webitelKbInputArticle: WebitelKbInputArticle, options?: AxiosRequestConfig) => Promise<AxiosResponse<WebitelKbArticle>>;
22
22
  deleteArticle: (etag: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<WebitelKbArticle>>;
23
- locateArticle: (etag: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<WebitelKbArticle>>;
24
- updateArticle2: (etag: string, webitelKbInputArticle: WebitelKbInputArticle, options?: AxiosRequestConfig) => Promise<AxiosResponse<WebitelKbArticle>>;
25
- updateArticle: (etag: string, webitelKbInputArticle: WebitelKbInputArticle, options?: AxiosRequestConfig) => Promise<AxiosResponse<WebitelKbArticle>>;
23
+ locateArticle: (etag: string, params?: LocateArticleParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<WebitelKbArticle>>;
24
+ updateArticle2: (etag: string, webitelKbInputArticle: WebitelKbInputArticle, params?: UpdateArticle2Params, options?: AxiosRequestConfig) => Promise<AxiosResponse<WebitelKbArticle>>;
25
+ updateArticle: (etag: string, webitelKbInputArticle: WebitelKbInputArticle, params?: UpdateArticleParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<WebitelKbArticle>>;
26
26
  moveArticle: (etag: string, webitelKbArticlesMoveArticleBody: WebitelKbArticlesMoveArticleBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<WebitelKbArticle>>;
27
+ reindexArticle: (etag: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<WebitelKbArticle>>;
27
28
  listAncestors: (id: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<WebitelKbArticleList>>;
28
29
  listChildren: (id: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<WebitelKbArticleList>>;
29
30
  getTree: (spaceId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<WebitelKbGetTreeResponse>>;
@@ -44,6 +45,7 @@ export type LocateArticleResult = AxiosResponse<WebitelKbArticle>;
44
45
  export type UpdateArticle2Result = AxiosResponse<WebitelKbArticle>;
45
46
  export type UpdateArticleResult = AxiosResponse<WebitelKbArticle>;
46
47
  export type MoveArticleResult = AxiosResponse<WebitelKbArticle>;
48
+ export type ReindexArticleResult = AxiosResponse<WebitelKbArticle>;
47
49
  export type ListAncestorsResult = AxiosResponse<WebitelKbArticleList>;
48
50
  export type ListChildrenResult = AxiosResponse<WebitelKbArticleList>;
49
51
  export type GetTreeResult = AxiosResponse<WebitelKbGetTreeResponse>;
@@ -378,6 +378,22 @@ export declare const ListArticlesResponse: zod.ZodObject<{
378
378
  INDEXED: "INDEXED";
379
379
  }>>;
380
380
  parent_id: zod.ZodOptional<zod.ZodString>;
381
+ published: zod.ZodOptional<zod.ZodObject<{
382
+ article_id: zod.ZodOptional<zod.ZodString>;
383
+ body_markdown: zod.ZodOptional<zod.ZodString>;
384
+ body_plain: zod.ZodOptional<zod.ZodString>;
385
+ body_rich_text: zod.ZodOptional<zod.ZodObject<{}, zod.z.core.$loose>>;
386
+ created_at: zod.ZodOptional<zod.ZodString>;
387
+ created_by: zod.ZodOptional<zod.ZodObject<{
388
+ id: zod.ZodOptional<zod.ZodString>;
389
+ name: zod.ZodOptional<zod.ZodString>;
390
+ }, zod.z.core.$strip>>;
391
+ id: zod.ZodOptional<zod.ZodString>;
392
+ notes: zod.ZodOptional<zod.ZodString>;
393
+ restored_from: zod.ZodOptional<zod.ZodString>;
394
+ subject: zod.ZodOptional<zod.ZodString>;
395
+ version_number: zod.ZodOptional<zod.ZodInt>;
396
+ }, zod.z.core.$strip>>;
381
397
  published_version_id: zod.ZodOptional<zod.ZodString>;
382
398
  space: zod.ZodOptional<zod.ZodObject<{
383
399
  id: zod.ZodOptional<zod.ZodString>;
@@ -449,6 +465,22 @@ export declare const CreateArticleResponse: zod.ZodObject<{
449
465
  INDEXED: "INDEXED";
450
466
  }>>;
451
467
  parent_id: zod.ZodOptional<zod.ZodString>;
468
+ published: zod.ZodOptional<zod.ZodObject<{
469
+ article_id: zod.ZodOptional<zod.ZodString>;
470
+ body_markdown: zod.ZodOptional<zod.ZodString>;
471
+ body_plain: zod.ZodOptional<zod.ZodString>;
472
+ body_rich_text: zod.ZodOptional<zod.ZodObject<{}, zod.z.core.$loose>>;
473
+ created_at: zod.ZodOptional<zod.ZodString>;
474
+ created_by: zod.ZodOptional<zod.ZodObject<{
475
+ id: zod.ZodOptional<zod.ZodString>;
476
+ name: zod.ZodOptional<zod.ZodString>;
477
+ }, zod.z.core.$strip>>;
478
+ id: zod.ZodOptional<zod.ZodString>;
479
+ notes: zod.ZodOptional<zod.ZodString>;
480
+ restored_from: zod.ZodOptional<zod.ZodString>;
481
+ subject: zod.ZodOptional<zod.ZodString>;
482
+ version_number: zod.ZodOptional<zod.ZodInt>;
483
+ }, zod.z.core.$strip>>;
452
484
  published_version_id: zod.ZodOptional<zod.ZodString>;
453
485
  space: zod.ZodOptional<zod.ZodObject<{
454
486
  id: zod.ZodOptional<zod.ZodString>;
@@ -501,6 +533,22 @@ export declare const DeleteArticleResponse: zod.ZodObject<{
501
533
  INDEXED: "INDEXED";
502
534
  }>>;
503
535
  parent_id: zod.ZodOptional<zod.ZodString>;
536
+ published: zod.ZodOptional<zod.ZodObject<{
537
+ article_id: zod.ZodOptional<zod.ZodString>;
538
+ body_markdown: zod.ZodOptional<zod.ZodString>;
539
+ body_plain: zod.ZodOptional<zod.ZodString>;
540
+ body_rich_text: zod.ZodOptional<zod.ZodObject<{}, zod.z.core.$loose>>;
541
+ created_at: zod.ZodOptional<zod.ZodString>;
542
+ created_by: zod.ZodOptional<zod.ZodObject<{
543
+ id: zod.ZodOptional<zod.ZodString>;
544
+ name: zod.ZodOptional<zod.ZodString>;
545
+ }, zod.z.core.$strip>>;
546
+ id: zod.ZodOptional<zod.ZodString>;
547
+ notes: zod.ZodOptional<zod.ZodString>;
548
+ restored_from: zod.ZodOptional<zod.ZodString>;
549
+ subject: zod.ZodOptional<zod.ZodString>;
550
+ version_number: zod.ZodOptional<zod.ZodInt>;
551
+ }, zod.z.core.$strip>>;
504
552
  published_version_id: zod.ZodOptional<zod.ZodString>;
505
553
  space: zod.ZodOptional<zod.ZodObject<{
506
554
  id: zod.ZodOptional<zod.ZodString>;
@@ -531,6 +579,9 @@ export declare const DeleteArticleResponse: zod.ZodObject<{
531
579
  export declare const LocateArticleParams: zod.ZodObject<{
532
580
  etag: zod.ZodString;
533
581
  }, zod.z.core.$strip>;
582
+ export declare const LocateArticleQueryParams: zod.ZodObject<{
583
+ fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
584
+ }, zod.z.core.$strip>;
534
585
  export declare const locateArticleResponseIndexStateDefault = "INDEX_STATE_UNSPECIFIED";
535
586
  export declare const locateArticleResponseStateDefault = "ARTICLE_STATE_UNSPECIFIED";
536
587
  export declare const locateArticleResponseTypeDefault = "ARTICLE_TYPE_UNSPECIFIED";
@@ -553,6 +604,22 @@ export declare const LocateArticleResponse: zod.ZodObject<{
553
604
  INDEXED: "INDEXED";
554
605
  }>>;
555
606
  parent_id: zod.ZodOptional<zod.ZodString>;
607
+ published: zod.ZodOptional<zod.ZodObject<{
608
+ article_id: zod.ZodOptional<zod.ZodString>;
609
+ body_markdown: zod.ZodOptional<zod.ZodString>;
610
+ body_plain: zod.ZodOptional<zod.ZodString>;
611
+ body_rich_text: zod.ZodOptional<zod.ZodObject<{}, zod.z.core.$loose>>;
612
+ created_at: zod.ZodOptional<zod.ZodString>;
613
+ created_by: zod.ZodOptional<zod.ZodObject<{
614
+ id: zod.ZodOptional<zod.ZodString>;
615
+ name: zod.ZodOptional<zod.ZodString>;
616
+ }, zod.z.core.$strip>>;
617
+ id: zod.ZodOptional<zod.ZodString>;
618
+ notes: zod.ZodOptional<zod.ZodString>;
619
+ restored_from: zod.ZodOptional<zod.ZodString>;
620
+ subject: zod.ZodOptional<zod.ZodString>;
621
+ version_number: zod.ZodOptional<zod.ZodInt>;
622
+ }, zod.z.core.$strip>>;
556
623
  published_version_id: zod.ZodOptional<zod.ZodString>;
557
624
  space: zod.ZodOptional<zod.ZodObject<{
558
625
  id: zod.ZodOptional<zod.ZodString>;
@@ -583,6 +650,9 @@ export declare const LocateArticleResponse: zod.ZodObject<{
583
650
  export declare const UpdateArticle2Params: zod.ZodObject<{
584
651
  etag: zod.ZodString;
585
652
  }, zod.z.core.$strip>;
653
+ export declare const UpdateArticle2QueryParams: zod.ZodObject<{
654
+ x_json_mask: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
655
+ }, zod.z.core.$strip>;
586
656
  export declare const updateArticle2BodyStateDefault = "ARTICLE_STATE_UNSPECIFIED";
587
657
  export declare const updateArticle2BodyTypeDefault = "ARTICLE_TYPE_UNSPECIFIED";
588
658
  export declare const UpdateArticle2Body: zod.ZodObject<{
@@ -625,6 +695,22 @@ export declare const UpdateArticle2Response: zod.ZodObject<{
625
695
  INDEXED: "INDEXED";
626
696
  }>>;
627
697
  parent_id: zod.ZodOptional<zod.ZodString>;
698
+ published: zod.ZodOptional<zod.ZodObject<{
699
+ article_id: zod.ZodOptional<zod.ZodString>;
700
+ body_markdown: zod.ZodOptional<zod.ZodString>;
701
+ body_plain: zod.ZodOptional<zod.ZodString>;
702
+ body_rich_text: zod.ZodOptional<zod.ZodObject<{}, zod.z.core.$loose>>;
703
+ created_at: zod.ZodOptional<zod.ZodString>;
704
+ created_by: zod.ZodOptional<zod.ZodObject<{
705
+ id: zod.ZodOptional<zod.ZodString>;
706
+ name: zod.ZodOptional<zod.ZodString>;
707
+ }, zod.z.core.$strip>>;
708
+ id: zod.ZodOptional<zod.ZodString>;
709
+ notes: zod.ZodOptional<zod.ZodString>;
710
+ restored_from: zod.ZodOptional<zod.ZodString>;
711
+ subject: zod.ZodOptional<zod.ZodString>;
712
+ version_number: zod.ZodOptional<zod.ZodInt>;
713
+ }, zod.z.core.$strip>>;
628
714
  published_version_id: zod.ZodOptional<zod.ZodString>;
629
715
  space: zod.ZodOptional<zod.ZodObject<{
630
716
  id: zod.ZodOptional<zod.ZodString>;
@@ -655,6 +741,9 @@ export declare const UpdateArticle2Response: zod.ZodObject<{
655
741
  export declare const UpdateArticleParams: zod.ZodObject<{
656
742
  etag: zod.ZodString;
657
743
  }, zod.z.core.$strip>;
744
+ export declare const UpdateArticleQueryParams: zod.ZodObject<{
745
+ x_json_mask: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
746
+ }, zod.z.core.$strip>;
658
747
  export declare const updateArticleBodyStateDefault = "ARTICLE_STATE_UNSPECIFIED";
659
748
  export declare const updateArticleBodyTypeDefault = "ARTICLE_TYPE_UNSPECIFIED";
660
749
  export declare const UpdateArticleBody: zod.ZodObject<{
@@ -697,6 +786,22 @@ export declare const UpdateArticleResponse: zod.ZodObject<{
697
786
  INDEXED: "INDEXED";
698
787
  }>>;
699
788
  parent_id: zod.ZodOptional<zod.ZodString>;
789
+ published: zod.ZodOptional<zod.ZodObject<{
790
+ article_id: zod.ZodOptional<zod.ZodString>;
791
+ body_markdown: zod.ZodOptional<zod.ZodString>;
792
+ body_plain: zod.ZodOptional<zod.ZodString>;
793
+ body_rich_text: zod.ZodOptional<zod.ZodObject<{}, zod.z.core.$loose>>;
794
+ created_at: zod.ZodOptional<zod.ZodString>;
795
+ created_by: zod.ZodOptional<zod.ZodObject<{
796
+ id: zod.ZodOptional<zod.ZodString>;
797
+ name: zod.ZodOptional<zod.ZodString>;
798
+ }, zod.z.core.$strip>>;
799
+ id: zod.ZodOptional<zod.ZodString>;
800
+ notes: zod.ZodOptional<zod.ZodString>;
801
+ restored_from: zod.ZodOptional<zod.ZodString>;
802
+ subject: zod.ZodOptional<zod.ZodString>;
803
+ version_number: zod.ZodOptional<zod.ZodInt>;
804
+ }, zod.z.core.$strip>>;
700
805
  published_version_id: zod.ZodOptional<zod.ZodString>;
701
806
  space: zod.ZodOptional<zod.ZodObject<{
702
807
  id: zod.ZodOptional<zod.ZodString>;
@@ -752,6 +857,90 @@ export declare const MoveArticleResponse: zod.ZodObject<{
752
857
  INDEXED: "INDEXED";
753
858
  }>>;
754
859
  parent_id: zod.ZodOptional<zod.ZodString>;
860
+ published: zod.ZodOptional<zod.ZodObject<{
861
+ article_id: zod.ZodOptional<zod.ZodString>;
862
+ body_markdown: zod.ZodOptional<zod.ZodString>;
863
+ body_plain: zod.ZodOptional<zod.ZodString>;
864
+ body_rich_text: zod.ZodOptional<zod.ZodObject<{}, zod.z.core.$loose>>;
865
+ created_at: zod.ZodOptional<zod.ZodString>;
866
+ created_by: zod.ZodOptional<zod.ZodObject<{
867
+ id: zod.ZodOptional<zod.ZodString>;
868
+ name: zod.ZodOptional<zod.ZodString>;
869
+ }, zod.z.core.$strip>>;
870
+ id: zod.ZodOptional<zod.ZodString>;
871
+ notes: zod.ZodOptional<zod.ZodString>;
872
+ restored_from: zod.ZodOptional<zod.ZodString>;
873
+ subject: zod.ZodOptional<zod.ZodString>;
874
+ version_number: zod.ZodOptional<zod.ZodInt>;
875
+ }, zod.z.core.$strip>>;
876
+ published_version_id: zod.ZodOptional<zod.ZodString>;
877
+ space: zod.ZodOptional<zod.ZodObject<{
878
+ id: zod.ZodOptional<zod.ZodString>;
879
+ name: zod.ZodOptional<zod.ZodString>;
880
+ }, zod.z.core.$strip>>;
881
+ state: zod.ZodDefault<zod.ZodEnum<{
882
+ ARTICLE_STATE_UNSPECIFIED: "ARTICLE_STATE_UNSPECIFIED";
883
+ DRAFT: "DRAFT";
884
+ ACTIVE: "ACTIVE";
885
+ INACTIVE: "INACTIVE";
886
+ }>>;
887
+ subject: zod.ZodOptional<zod.ZodString>;
888
+ type: zod.ZodDefault<zod.ZodEnum<{
889
+ ARTICLE_TYPE_UNSPECIFIED: "ARTICLE_TYPE_UNSPECIFIED";
890
+ ARTICLE: "ARTICLE";
891
+ FAQ: "FAQ";
892
+ }>>;
893
+ updated_at: zod.ZodOptional<zod.ZodString>;
894
+ updated_by: zod.ZodOptional<zod.ZodObject<{
895
+ id: zod.ZodOptional<zod.ZodString>;
896
+ name: zod.ZodOptional<zod.ZodString>;
897
+ }, zod.z.core.$strip>>;
898
+ ver: zod.ZodOptional<zod.ZodInt>;
899
+ }, zod.z.core.$strip>;
900
+ /**
901
+ * @summary ReindexArticle queues the latest version of an article for indexing again.
902
+ */
903
+ export declare const ReindexArticleParams: zod.ZodObject<{
904
+ etag: zod.ZodString;
905
+ }, zod.z.core.$strip>;
906
+ export declare const reindexArticleResponseIndexStateDefault = "INDEX_STATE_UNSPECIFIED";
907
+ export declare const reindexArticleResponseStateDefault = "ARTICLE_STATE_UNSPECIFIED";
908
+ export declare const reindexArticleResponseTypeDefault = "ARTICLE_TYPE_UNSPECIFIED";
909
+ export declare const ReindexArticleResponse: zod.ZodObject<{
910
+ tags: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
911
+ created_at: zod.ZodOptional<zod.ZodString>;
912
+ created_by: zod.ZodOptional<zod.ZodObject<{
913
+ id: zod.ZodOptional<zod.ZodString>;
914
+ name: zod.ZodOptional<zod.ZodString>;
915
+ }, zod.z.core.$strip>>;
916
+ depth: zod.ZodOptional<zod.ZodInt>;
917
+ domain_id: zod.ZodOptional<zod.ZodString>;
918
+ etag: zod.ZodOptional<zod.ZodString>;
919
+ id: zod.ZodOptional<zod.ZodString>;
920
+ index_state: zod.ZodDefault<zod.ZodEnum<{
921
+ FAILED: "FAILED";
922
+ INDEX_STATE_UNSPECIFIED: "INDEX_STATE_UNSPECIFIED";
923
+ PENDING: "PENDING";
924
+ INDEXING: "INDEXING";
925
+ INDEXED: "INDEXED";
926
+ }>>;
927
+ parent_id: zod.ZodOptional<zod.ZodString>;
928
+ published: zod.ZodOptional<zod.ZodObject<{
929
+ article_id: zod.ZodOptional<zod.ZodString>;
930
+ body_markdown: zod.ZodOptional<zod.ZodString>;
931
+ body_plain: zod.ZodOptional<zod.ZodString>;
932
+ body_rich_text: zod.ZodOptional<zod.ZodObject<{}, zod.z.core.$loose>>;
933
+ created_at: zod.ZodOptional<zod.ZodString>;
934
+ created_by: zod.ZodOptional<zod.ZodObject<{
935
+ id: zod.ZodOptional<zod.ZodString>;
936
+ name: zod.ZodOptional<zod.ZodString>;
937
+ }, zod.z.core.$strip>>;
938
+ id: zod.ZodOptional<zod.ZodString>;
939
+ notes: zod.ZodOptional<zod.ZodString>;
940
+ restored_from: zod.ZodOptional<zod.ZodString>;
941
+ subject: zod.ZodOptional<zod.ZodString>;
942
+ version_number: zod.ZodOptional<zod.ZodInt>;
943
+ }, zod.z.core.$strip>>;
755
944
  published_version_id: zod.ZodOptional<zod.ZodString>;
756
945
  space: zod.ZodOptional<zod.ZodObject<{
757
946
  id: zod.ZodOptional<zod.ZodString>;
@@ -805,6 +994,22 @@ export declare const ListAncestorsResponse: zod.ZodObject<{
805
994
  INDEXED: "INDEXED";
806
995
  }>>;
807
996
  parent_id: zod.ZodOptional<zod.ZodString>;
997
+ published: zod.ZodOptional<zod.ZodObject<{
998
+ article_id: zod.ZodOptional<zod.ZodString>;
999
+ body_markdown: zod.ZodOptional<zod.ZodString>;
1000
+ body_plain: zod.ZodOptional<zod.ZodString>;
1001
+ body_rich_text: zod.ZodOptional<zod.ZodObject<{}, zod.z.core.$loose>>;
1002
+ created_at: zod.ZodOptional<zod.ZodString>;
1003
+ created_by: zod.ZodOptional<zod.ZodObject<{
1004
+ id: zod.ZodOptional<zod.ZodString>;
1005
+ name: zod.ZodOptional<zod.ZodString>;
1006
+ }, zod.z.core.$strip>>;
1007
+ id: zod.ZodOptional<zod.ZodString>;
1008
+ notes: zod.ZodOptional<zod.ZodString>;
1009
+ restored_from: zod.ZodOptional<zod.ZodString>;
1010
+ subject: zod.ZodOptional<zod.ZodString>;
1011
+ version_number: zod.ZodOptional<zod.ZodInt>;
1012
+ }, zod.z.core.$strip>>;
808
1013
  published_version_id: zod.ZodOptional<zod.ZodString>;
809
1014
  space: zod.ZodOptional<zod.ZodObject<{
810
1015
  id: zod.ZodOptional<zod.ZodString>;
@@ -860,6 +1065,22 @@ export declare const ListChildrenResponse: zod.ZodObject<{
860
1065
  INDEXED: "INDEXED";
861
1066
  }>>;
862
1067
  parent_id: zod.ZodOptional<zod.ZodString>;
1068
+ published: zod.ZodOptional<zod.ZodObject<{
1069
+ article_id: zod.ZodOptional<zod.ZodString>;
1070
+ body_markdown: zod.ZodOptional<zod.ZodString>;
1071
+ body_plain: zod.ZodOptional<zod.ZodString>;
1072
+ body_rich_text: zod.ZodOptional<zod.ZodObject<{}, zod.z.core.$loose>>;
1073
+ created_at: zod.ZodOptional<zod.ZodString>;
1074
+ created_by: zod.ZodOptional<zod.ZodObject<{
1075
+ id: zod.ZodOptional<zod.ZodString>;
1076
+ name: zod.ZodOptional<zod.ZodString>;
1077
+ }, zod.z.core.$strip>>;
1078
+ id: zod.ZodOptional<zod.ZodString>;
1079
+ notes: zod.ZodOptional<zod.ZodString>;
1080
+ restored_from: zod.ZodOptional<zod.ZodString>;
1081
+ subject: zod.ZodOptional<zod.ZodString>;
1082
+ version_number: zod.ZodOptional<zod.ZodInt>;
1083
+ }, zod.z.core.$strip>>;
863
1084
  published_version_id: zod.ZodOptional<zod.ZodString>;
864
1085
  space: zod.ZodOptional<zod.ZodObject<{
865
1086
  id: zod.ZodOptional<zod.ZodString>;