@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
@@ -1032,6 +1032,57 @@ export const ListArticlesResponse = zod
1032
1032
  .string()
1033
1033
  .optional()
1034
1034
  .describe('Parent article id; 0 for a top-level article.'),
1035
+ published: zod
1036
+ .object({
1037
+ article_id: zod
1038
+ .string()
1039
+ .optional()
1040
+ .describe('Owning article id.'),
1041
+ body_markdown: zod
1042
+ .string()
1043
+ .optional()
1044
+ .describe('Markdown serialization (chunking input).'),
1045
+ body_plain: zod
1046
+ .string()
1047
+ .optional()
1048
+ .describe('Plaintext serialization (full-text source).'),
1049
+ body_rich_text: zod
1050
+ .looseObject({})
1051
+ .optional()
1052
+ .describe('Editor document for this version.'),
1053
+ created_at: zod
1054
+ .string()
1055
+ .optional()
1056
+ .describe('CreatedAt timestamp (epoch ms).'),
1057
+ created_by: zod
1058
+ .object({
1059
+ id: zod.string().optional(),
1060
+ name: zod.string().optional(),
1061
+ })
1062
+ .optional()
1063
+ .describe('User who authored the version.'),
1064
+ id: zod
1065
+ .string()
1066
+ .optional()
1067
+ .describe('Unique identifier of the version.'),
1068
+ notes: zod
1069
+ .string()
1070
+ .optional()
1071
+ .describe('Optional author notes.'),
1072
+ restored_from: zod
1073
+ .string()
1074
+ .optional()
1075
+ .describe(
1076
+ 'Version this one was restored from; 0 if authored directly.',
1077
+ ),
1078
+ subject: zod.string().optional().describe('Versioned subject.'),
1079
+ version_number: zod
1080
+ .int()
1081
+ .optional()
1082
+ .describe('Monotonic version number within the article.'),
1083
+ })
1084
+ .optional()
1085
+ .describe('Published version, only when requested in fields.'),
1035
1086
  published_version_id: zod
1036
1087
  .string()
1037
1088
  .optional()
@@ -1167,6 +1218,51 @@ export const CreateArticleResponse = zod
1167
1218
  .string()
1168
1219
  .optional()
1169
1220
  .describe('Parent article id; 0 for a top-level article.'),
1221
+ published: zod
1222
+ .object({
1223
+ article_id: zod.string().optional().describe('Owning article id.'),
1224
+ body_markdown: zod
1225
+ .string()
1226
+ .optional()
1227
+ .describe('Markdown serialization (chunking input).'),
1228
+ body_plain: zod
1229
+ .string()
1230
+ .optional()
1231
+ .describe('Plaintext serialization (full-text source).'),
1232
+ body_rich_text: zod
1233
+ .looseObject({})
1234
+ .optional()
1235
+ .describe('Editor document for this version.'),
1236
+ created_at: zod
1237
+ .string()
1238
+ .optional()
1239
+ .describe('CreatedAt timestamp (epoch ms).'),
1240
+ created_by: zod
1241
+ .object({
1242
+ id: zod.string().optional(),
1243
+ name: zod.string().optional(),
1244
+ })
1245
+ .optional()
1246
+ .describe('User who authored the version.'),
1247
+ id: zod
1248
+ .string()
1249
+ .optional()
1250
+ .describe('Unique identifier of the version.'),
1251
+ notes: zod.string().optional().describe('Optional author notes.'),
1252
+ restored_from: zod
1253
+ .string()
1254
+ .optional()
1255
+ .describe(
1256
+ 'Version this one was restored from; 0 if authored directly.',
1257
+ ),
1258
+ subject: zod.string().optional().describe('Versioned subject.'),
1259
+ version_number: zod
1260
+ .int()
1261
+ .optional()
1262
+ .describe('Monotonic version number within the article.'),
1263
+ })
1264
+ .optional()
1265
+ .describe('Published version, only when requested in fields.'),
1170
1266
  published_version_id: zod
1171
1267
  .string()
1172
1268
  .optional()
@@ -1260,6 +1356,51 @@ export const DeleteArticleResponse = zod
1260
1356
  .string()
1261
1357
  .optional()
1262
1358
  .describe('Parent article id; 0 for a top-level article.'),
1359
+ published: zod
1360
+ .object({
1361
+ article_id: zod.string().optional().describe('Owning article id.'),
1362
+ body_markdown: zod
1363
+ .string()
1364
+ .optional()
1365
+ .describe('Markdown serialization (chunking input).'),
1366
+ body_plain: zod
1367
+ .string()
1368
+ .optional()
1369
+ .describe('Plaintext serialization (full-text source).'),
1370
+ body_rich_text: zod
1371
+ .looseObject({})
1372
+ .optional()
1373
+ .describe('Editor document for this version.'),
1374
+ created_at: zod
1375
+ .string()
1376
+ .optional()
1377
+ .describe('CreatedAt timestamp (epoch ms).'),
1378
+ created_by: zod
1379
+ .object({
1380
+ id: zod.string().optional(),
1381
+ name: zod.string().optional(),
1382
+ })
1383
+ .optional()
1384
+ .describe('User who authored the version.'),
1385
+ id: zod
1386
+ .string()
1387
+ .optional()
1388
+ .describe('Unique identifier of the version.'),
1389
+ notes: zod.string().optional().describe('Optional author notes.'),
1390
+ restored_from: zod
1391
+ .string()
1392
+ .optional()
1393
+ .describe(
1394
+ 'Version this one was restored from; 0 if authored directly.',
1395
+ ),
1396
+ subject: zod.string().optional().describe('Versioned subject.'),
1397
+ version_number: zod
1398
+ .int()
1399
+ .optional()
1400
+ .describe('Monotonic version number within the article.'),
1401
+ })
1402
+ .optional()
1403
+ .describe('Published version, only when requested in fields.'),
1263
1404
  published_version_id: zod
1264
1405
  .string()
1265
1406
  .optional()
@@ -1314,6 +1455,13 @@ export const LocateArticleParams = zod.object({
1314
1455
  etag: zod.string().describe('Concurrency token / locator.'),
1315
1456
  });
1316
1457
 
1458
+ export const LocateArticleQueryParams = zod.object({
1459
+ fields: zod
1460
+ .array(zod.string())
1461
+ .optional()
1462
+ .describe('Set of fields to return.'),
1463
+ });
1464
+
1317
1465
  export const locateArticleResponseIndexStateDefault = `INDEX_STATE_UNSPECIFIED`;
1318
1466
  export const locateArticleResponseStateDefault = `ARTICLE_STATE_UNSPECIFIED`;
1319
1467
  export const locateArticleResponseTypeDefault = `ARTICLE_TYPE_UNSPECIFIED`;
@@ -1353,6 +1501,51 @@ export const LocateArticleResponse = zod
1353
1501
  .string()
1354
1502
  .optional()
1355
1503
  .describe('Parent article id; 0 for a top-level article.'),
1504
+ published: zod
1505
+ .object({
1506
+ article_id: zod.string().optional().describe('Owning article id.'),
1507
+ body_markdown: zod
1508
+ .string()
1509
+ .optional()
1510
+ .describe('Markdown serialization (chunking input).'),
1511
+ body_plain: zod
1512
+ .string()
1513
+ .optional()
1514
+ .describe('Plaintext serialization (full-text source).'),
1515
+ body_rich_text: zod
1516
+ .looseObject({})
1517
+ .optional()
1518
+ .describe('Editor document for this version.'),
1519
+ created_at: zod
1520
+ .string()
1521
+ .optional()
1522
+ .describe('CreatedAt timestamp (epoch ms).'),
1523
+ created_by: zod
1524
+ .object({
1525
+ id: zod.string().optional(),
1526
+ name: zod.string().optional(),
1527
+ })
1528
+ .optional()
1529
+ .describe('User who authored the version.'),
1530
+ id: zod
1531
+ .string()
1532
+ .optional()
1533
+ .describe('Unique identifier of the version.'),
1534
+ notes: zod.string().optional().describe('Optional author notes.'),
1535
+ restored_from: zod
1536
+ .string()
1537
+ .optional()
1538
+ .describe(
1539
+ 'Version this one was restored from; 0 if authored directly.',
1540
+ ),
1541
+ subject: zod.string().optional().describe('Versioned subject.'),
1542
+ version_number: zod
1543
+ .int()
1544
+ .optional()
1545
+ .describe('Monotonic version number within the article.'),
1546
+ })
1547
+ .optional()
1548
+ .describe('Published version, only when requested in fields.'),
1356
1549
  published_version_id: zod
1357
1550
  .string()
1358
1551
  .optional()
@@ -1407,6 +1600,15 @@ export const UpdateArticle2Params = zod.object({
1407
1600
  etag: zod.string().describe('Concurrency token of the article to update.'),
1408
1601
  });
1409
1602
 
1603
+ export const UpdateArticle2QueryParams = zod.object({
1604
+ x_json_mask: zod
1605
+ .array(zod.string())
1606
+ .optional()
1607
+ .describe(
1608
+ 'Input fields to apply, filled by the gateway from a PATCH body.',
1609
+ ),
1610
+ });
1611
+
1410
1612
  export const updateArticle2BodyStateDefault = `ARTICLE_STATE_UNSPECIFIED`;
1411
1613
  export const updateArticle2BodyTypeDefault = `ARTICLE_TYPE_UNSPECIFIED`;
1412
1614
 
@@ -1486,6 +1688,51 @@ export const UpdateArticle2Response = zod
1486
1688
  .string()
1487
1689
  .optional()
1488
1690
  .describe('Parent article id; 0 for a top-level article.'),
1691
+ published: zod
1692
+ .object({
1693
+ article_id: zod.string().optional().describe('Owning article id.'),
1694
+ body_markdown: zod
1695
+ .string()
1696
+ .optional()
1697
+ .describe('Markdown serialization (chunking input).'),
1698
+ body_plain: zod
1699
+ .string()
1700
+ .optional()
1701
+ .describe('Plaintext serialization (full-text source).'),
1702
+ body_rich_text: zod
1703
+ .looseObject({})
1704
+ .optional()
1705
+ .describe('Editor document for this version.'),
1706
+ created_at: zod
1707
+ .string()
1708
+ .optional()
1709
+ .describe('CreatedAt timestamp (epoch ms).'),
1710
+ created_by: zod
1711
+ .object({
1712
+ id: zod.string().optional(),
1713
+ name: zod.string().optional(),
1714
+ })
1715
+ .optional()
1716
+ .describe('User who authored the version.'),
1717
+ id: zod
1718
+ .string()
1719
+ .optional()
1720
+ .describe('Unique identifier of the version.'),
1721
+ notes: zod.string().optional().describe('Optional author notes.'),
1722
+ restored_from: zod
1723
+ .string()
1724
+ .optional()
1725
+ .describe(
1726
+ 'Version this one was restored from; 0 if authored directly.',
1727
+ ),
1728
+ subject: zod.string().optional().describe('Versioned subject.'),
1729
+ version_number: zod
1730
+ .int()
1731
+ .optional()
1732
+ .describe('Monotonic version number within the article.'),
1733
+ })
1734
+ .optional()
1735
+ .describe('Published version, only when requested in fields.'),
1489
1736
  published_version_id: zod
1490
1737
  .string()
1491
1738
  .optional()
@@ -1540,6 +1787,15 @@ export const UpdateArticleParams = zod.object({
1540
1787
  etag: zod.string().describe('Concurrency token of the article to update.'),
1541
1788
  });
1542
1789
 
1790
+ export const UpdateArticleQueryParams = zod.object({
1791
+ x_json_mask: zod
1792
+ .array(zod.string())
1793
+ .optional()
1794
+ .describe(
1795
+ 'Input fields to apply, filled by the gateway from a PATCH body.',
1796
+ ),
1797
+ });
1798
+
1543
1799
  export const updateArticleBodyStateDefault = `ARTICLE_STATE_UNSPECIFIED`;
1544
1800
  export const updateArticleBodyTypeDefault = `ARTICLE_TYPE_UNSPECIFIED`;
1545
1801
 
@@ -1619,6 +1875,51 @@ export const UpdateArticleResponse = zod
1619
1875
  .string()
1620
1876
  .optional()
1621
1877
  .describe('Parent article id; 0 for a top-level article.'),
1878
+ published: zod
1879
+ .object({
1880
+ article_id: zod.string().optional().describe('Owning article id.'),
1881
+ body_markdown: zod
1882
+ .string()
1883
+ .optional()
1884
+ .describe('Markdown serialization (chunking input).'),
1885
+ body_plain: zod
1886
+ .string()
1887
+ .optional()
1888
+ .describe('Plaintext serialization (full-text source).'),
1889
+ body_rich_text: zod
1890
+ .looseObject({})
1891
+ .optional()
1892
+ .describe('Editor document for this version.'),
1893
+ created_at: zod
1894
+ .string()
1895
+ .optional()
1896
+ .describe('CreatedAt timestamp (epoch ms).'),
1897
+ created_by: zod
1898
+ .object({
1899
+ id: zod.string().optional(),
1900
+ name: zod.string().optional(),
1901
+ })
1902
+ .optional()
1903
+ .describe('User who authored the version.'),
1904
+ id: zod
1905
+ .string()
1906
+ .optional()
1907
+ .describe('Unique identifier of the version.'),
1908
+ notes: zod.string().optional().describe('Optional author notes.'),
1909
+ restored_from: zod
1910
+ .string()
1911
+ .optional()
1912
+ .describe(
1913
+ 'Version this one was restored from; 0 if authored directly.',
1914
+ ),
1915
+ subject: zod.string().optional().describe('Versioned subject.'),
1916
+ version_number: zod
1917
+ .int()
1918
+ .optional()
1919
+ .describe('Monotonic version number within the article.'),
1920
+ })
1921
+ .optional()
1922
+ .describe('Published version, only when requested in fields.'),
1622
1923
  published_version_id: zod
1623
1924
  .string()
1624
1925
  .optional()
@@ -1721,6 +2022,51 @@ export const MoveArticleResponse = zod
1721
2022
  .string()
1722
2023
  .optional()
1723
2024
  .describe('Parent article id; 0 for a top-level article.'),
2025
+ published: zod
2026
+ .object({
2027
+ article_id: zod.string().optional().describe('Owning article id.'),
2028
+ body_markdown: zod
2029
+ .string()
2030
+ .optional()
2031
+ .describe('Markdown serialization (chunking input).'),
2032
+ body_plain: zod
2033
+ .string()
2034
+ .optional()
2035
+ .describe('Plaintext serialization (full-text source).'),
2036
+ body_rich_text: zod
2037
+ .looseObject({})
2038
+ .optional()
2039
+ .describe('Editor document for this version.'),
2040
+ created_at: zod
2041
+ .string()
2042
+ .optional()
2043
+ .describe('CreatedAt timestamp (epoch ms).'),
2044
+ created_by: zod
2045
+ .object({
2046
+ id: zod.string().optional(),
2047
+ name: zod.string().optional(),
2048
+ })
2049
+ .optional()
2050
+ .describe('User who authored the version.'),
2051
+ id: zod
2052
+ .string()
2053
+ .optional()
2054
+ .describe('Unique identifier of the version.'),
2055
+ notes: zod.string().optional().describe('Optional author notes.'),
2056
+ restored_from: zod
2057
+ .string()
2058
+ .optional()
2059
+ .describe(
2060
+ 'Version this one was restored from; 0 if authored directly.',
2061
+ ),
2062
+ subject: zod.string().optional().describe('Versioned subject.'),
2063
+ version_number: zod
2064
+ .int()
2065
+ .optional()
2066
+ .describe('Monotonic version number within the article.'),
2067
+ })
2068
+ .optional()
2069
+ .describe('Published version, only when requested in fields.'),
1724
2070
  published_version_id: zod
1725
2071
  .string()
1726
2072
  .optional()
@@ -1768,6 +2114,144 @@ export const MoveArticleResponse = zod
1768
2114
  })
1769
2115
  .describe('Article is the article read model.');
1770
2116
 
2117
+ /**
2118
+ * @summary ReindexArticle queues the latest version of an article for indexing again.
2119
+ */
2120
+ export const ReindexArticleParams = zod.object({
2121
+ etag: zod.string().describe('Concurrency token / locator of the article.'),
2122
+ });
2123
+
2124
+ export const reindexArticleResponseIndexStateDefault = `INDEX_STATE_UNSPECIFIED`;
2125
+ export const reindexArticleResponseStateDefault = `ARTICLE_STATE_UNSPECIFIED`;
2126
+ export const reindexArticleResponseTypeDefault = `ARTICLE_TYPE_UNSPECIFIED`;
2127
+
2128
+ export const ReindexArticleResponse = zod
2129
+ .object({
2130
+ tags: zod.array(zod.string()).optional().describe('Article tags.'),
2131
+ created_at: zod
2132
+ .string()
2133
+ .optional()
2134
+ .describe('CreatedAt timestamp (epoch ms).'),
2135
+ created_by: zod
2136
+ .object({
2137
+ id: zod.string().optional(),
2138
+ name: zod.string().optional(),
2139
+ })
2140
+ .optional()
2141
+ .describe('User who created the article.'),
2142
+ depth: zod.int().optional().describe('Hierarchy depth (1..5).'),
2143
+ domain_id: zod.string().optional().describe('Owning domain id.'),
2144
+ etag: zod
2145
+ .string()
2146
+ .optional()
2147
+ .describe('Concurrency token encoding id and ver.'),
2148
+ id: zod.string().optional().describe('Unique identifier of the article.'),
2149
+ index_state: zod
2150
+ .enum([
2151
+ 'INDEX_STATE_UNSPECIFIED',
2152
+ 'PENDING',
2153
+ 'INDEXING',
2154
+ 'INDEXED',
2155
+ 'FAILED',
2156
+ ])
2157
+ .default(reindexArticleResponseIndexStateDefault)
2158
+ .describe('Indexing state.'),
2159
+ parent_id: zod
2160
+ .string()
2161
+ .optional()
2162
+ .describe('Parent article id; 0 for a top-level article.'),
2163
+ published: zod
2164
+ .object({
2165
+ article_id: zod.string().optional().describe('Owning article id.'),
2166
+ body_markdown: zod
2167
+ .string()
2168
+ .optional()
2169
+ .describe('Markdown serialization (chunking input).'),
2170
+ body_plain: zod
2171
+ .string()
2172
+ .optional()
2173
+ .describe('Plaintext serialization (full-text source).'),
2174
+ body_rich_text: zod
2175
+ .looseObject({})
2176
+ .optional()
2177
+ .describe('Editor document for this version.'),
2178
+ created_at: zod
2179
+ .string()
2180
+ .optional()
2181
+ .describe('CreatedAt timestamp (epoch ms).'),
2182
+ created_by: zod
2183
+ .object({
2184
+ id: zod.string().optional(),
2185
+ name: zod.string().optional(),
2186
+ })
2187
+ .optional()
2188
+ .describe('User who authored the version.'),
2189
+ id: zod
2190
+ .string()
2191
+ .optional()
2192
+ .describe('Unique identifier of the version.'),
2193
+ notes: zod.string().optional().describe('Optional author notes.'),
2194
+ restored_from: zod
2195
+ .string()
2196
+ .optional()
2197
+ .describe(
2198
+ 'Version this one was restored from; 0 if authored directly.',
2199
+ ),
2200
+ subject: zod.string().optional().describe('Versioned subject.'),
2201
+ version_number: zod
2202
+ .int()
2203
+ .optional()
2204
+ .describe('Monotonic version number within the article.'),
2205
+ })
2206
+ .optional()
2207
+ .describe('Published version, only when requested in fields.'),
2208
+ published_version_id: zod
2209
+ .string()
2210
+ .optional()
2211
+ .describe('Published version id; 0 if not yet published.'),
2212
+ space: zod
2213
+ .object({
2214
+ id: zod.string().optional(),
2215
+ name: zod.string().optional(),
2216
+ })
2217
+ .optional()
2218
+ .describe('Space the article belongs to.'),
2219
+ state: zod
2220
+ .enum([
2221
+ 'ARTICLE_STATE_UNSPECIFIED',
2222
+ 'DRAFT',
2223
+ 'ACTIVE',
2224
+ 'INACTIVE',
2225
+ ])
2226
+ .default(reindexArticleResponseStateDefault)
2227
+ .describe('Lifecycle state.'),
2228
+ subject: zod
2229
+ .string()
2230
+ .optional()
2231
+ .describe('Current subject (mirrors the published version).'),
2232
+ type: zod
2233
+ .enum([
2234
+ 'ARTICLE_TYPE_UNSPECIFIED',
2235
+ 'ARTICLE',
2236
+ 'FAQ',
2237
+ ])
2238
+ .default(reindexArticleResponseTypeDefault)
2239
+ .describe('Article type.'),
2240
+ updated_at: zod
2241
+ .string()
2242
+ .optional()
2243
+ .describe('UpdatedAt timestamp (epoch ms).'),
2244
+ updated_by: zod
2245
+ .object({
2246
+ id: zod.string().optional(),
2247
+ name: zod.string().optional(),
2248
+ })
2249
+ .optional()
2250
+ .describe('User who last updated the article.'),
2251
+ ver: zod.int().optional().describe('Optimistic-lock counter.'),
2252
+ })
2253
+ .describe('Article is the article read model.');
2254
+
1771
2255
  /**
1772
2256
  * @summary ListAncestors returns the ancestor chain (root first), serving breadcrumbs.
1773
2257
  */
@@ -1821,6 +2305,57 @@ export const ListAncestorsResponse = zod
1821
2305
  .string()
1822
2306
  .optional()
1823
2307
  .describe('Parent article id; 0 for a top-level article.'),
2308
+ published: zod
2309
+ .object({
2310
+ article_id: zod
2311
+ .string()
2312
+ .optional()
2313
+ .describe('Owning article id.'),
2314
+ body_markdown: zod
2315
+ .string()
2316
+ .optional()
2317
+ .describe('Markdown serialization (chunking input).'),
2318
+ body_plain: zod
2319
+ .string()
2320
+ .optional()
2321
+ .describe('Plaintext serialization (full-text source).'),
2322
+ body_rich_text: zod
2323
+ .looseObject({})
2324
+ .optional()
2325
+ .describe('Editor document for this version.'),
2326
+ created_at: zod
2327
+ .string()
2328
+ .optional()
2329
+ .describe('CreatedAt timestamp (epoch ms).'),
2330
+ created_by: zod
2331
+ .object({
2332
+ id: zod.string().optional(),
2333
+ name: zod.string().optional(),
2334
+ })
2335
+ .optional()
2336
+ .describe('User who authored the version.'),
2337
+ id: zod
2338
+ .string()
2339
+ .optional()
2340
+ .describe('Unique identifier of the version.'),
2341
+ notes: zod
2342
+ .string()
2343
+ .optional()
2344
+ .describe('Optional author notes.'),
2345
+ restored_from: zod
2346
+ .string()
2347
+ .optional()
2348
+ .describe(
2349
+ 'Version this one was restored from; 0 if authored directly.',
2350
+ ),
2351
+ subject: zod.string().optional().describe('Versioned subject.'),
2352
+ version_number: zod
2353
+ .int()
2354
+ .optional()
2355
+ .describe('Monotonic version number within the article.'),
2356
+ })
2357
+ .optional()
2358
+ .describe('Published version, only when requested in fields.'),
1824
2359
  published_version_id: zod
1825
2360
  .string()
1826
2361
  .optional()
@@ -1927,6 +2462,57 @@ export const ListChildrenResponse = zod
1927
2462
  .string()
1928
2463
  .optional()
1929
2464
  .describe('Parent article id; 0 for a top-level article.'),
2465
+ published: zod
2466
+ .object({
2467
+ article_id: zod
2468
+ .string()
2469
+ .optional()
2470
+ .describe('Owning article id.'),
2471
+ body_markdown: zod
2472
+ .string()
2473
+ .optional()
2474
+ .describe('Markdown serialization (chunking input).'),
2475
+ body_plain: zod
2476
+ .string()
2477
+ .optional()
2478
+ .describe('Plaintext serialization (full-text source).'),
2479
+ body_rich_text: zod
2480
+ .looseObject({})
2481
+ .optional()
2482
+ .describe('Editor document for this version.'),
2483
+ created_at: zod
2484
+ .string()
2485
+ .optional()
2486
+ .describe('CreatedAt timestamp (epoch ms).'),
2487
+ created_by: zod
2488
+ .object({
2489
+ id: zod.string().optional(),
2490
+ name: zod.string().optional(),
2491
+ })
2492
+ .optional()
2493
+ .describe('User who authored the version.'),
2494
+ id: zod
2495
+ .string()
2496
+ .optional()
2497
+ .describe('Unique identifier of the version.'),
2498
+ notes: zod
2499
+ .string()
2500
+ .optional()
2501
+ .describe('Optional author notes.'),
2502
+ restored_from: zod
2503
+ .string()
2504
+ .optional()
2505
+ .describe(
2506
+ 'Version this one was restored from; 0 if authored directly.',
2507
+ ),
2508
+ subject: zod.string().optional().describe('Versioned subject.'),
2509
+ version_number: zod
2510
+ .int()
2511
+ .optional()
2512
+ .describe('Monotonic version number within the article.'),
2513
+ })
2514
+ .optional()
2515
+ .describe('Published version, only when requested in fields.'),
1930
2516
  published_version_id: zod
1931
2517
  .string()
1932
2518
  .optional()