@knowledge-stack/ksapi 1.23.5 → 1.25.0

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 (294) hide show
  1. package/.openapi-generator/FILES +130 -4
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +282 -28
  4. package/dist/apis/AuthApi.d.ts +117 -0
  5. package/dist/apis/AuthApi.js +137 -47
  6. package/dist/apis/ChunkLineagesApi.d.ts +38 -0
  7. package/dist/apis/ChunkLineagesApi.js +42 -15
  8. package/dist/apis/ChunksApi.d.ts +161 -5
  9. package/dist/apis/ChunksApi.js +168 -31
  10. package/dist/apis/DefaultApi.d.ts +20 -0
  11. package/dist/apis/DefaultApi.js +28 -10
  12. package/dist/apis/DocumentVersionsApi.d.ts +99 -9
  13. package/dist/apis/DocumentVersionsApi.js +100 -37
  14. package/dist/apis/DocumentsApi.d.ts +80 -0
  15. package/dist/apis/DocumentsApi.js +84 -30
  16. package/dist/apis/FoldersApi.d.ts +92 -9
  17. package/dist/apis/FoldersApi.js +86 -32
  18. package/dist/apis/InvitesApi.d.ts +51 -0
  19. package/dist/apis/InvitesApi.js +56 -20
  20. package/dist/apis/PathPartsApi.d.ts +140 -1
  21. package/dist/apis/PathPartsApi.js +141 -20
  22. package/dist/apis/SectionsApi.d.ts +49 -0
  23. package/dist/apis/SectionsApi.js +56 -20
  24. package/dist/apis/TagsApi.d.ts +62 -0
  25. package/dist/apis/TagsApi.js +70 -25
  26. package/dist/apis/TenantsApi.d.ts +103 -0
  27. package/dist/apis/TenantsApi.js +112 -40
  28. package/dist/apis/ThreadMessagesApi.d.ts +41 -0
  29. package/dist/apis/ThreadMessagesApi.js +42 -15
  30. package/dist/apis/ThreadsApi.d.ts +77 -0
  31. package/dist/apis/ThreadsApi.js +84 -30
  32. package/dist/apis/UserPermissionsApi.d.ts +54 -0
  33. package/dist/apis/UserPermissionsApi.js +56 -20
  34. package/dist/apis/UsersApi.d.ts +23 -0
  35. package/dist/apis/UsersApi.js +28 -10
  36. package/dist/apis/WorkflowsApi.d.ts +38 -0
  37. package/dist/apis/WorkflowsApi.js +42 -15
  38. package/dist/esm/apis/AuthApi.d.ts +117 -0
  39. package/dist/esm/apis/AuthApi.js +137 -47
  40. package/dist/esm/apis/ChunkLineagesApi.d.ts +38 -0
  41. package/dist/esm/apis/ChunkLineagesApi.js +42 -15
  42. package/dist/esm/apis/ChunksApi.d.ts +161 -5
  43. package/dist/esm/apis/ChunksApi.js +169 -32
  44. package/dist/esm/apis/DefaultApi.d.ts +20 -0
  45. package/dist/esm/apis/DefaultApi.js +28 -10
  46. package/dist/esm/apis/DocumentVersionsApi.d.ts +99 -9
  47. package/dist/esm/apis/DocumentVersionsApi.js +101 -38
  48. package/dist/esm/apis/DocumentsApi.d.ts +80 -0
  49. package/dist/esm/apis/DocumentsApi.js +84 -30
  50. package/dist/esm/apis/FoldersApi.d.ts +92 -9
  51. package/dist/esm/apis/FoldersApi.js +87 -33
  52. package/dist/esm/apis/InvitesApi.d.ts +51 -0
  53. package/dist/esm/apis/InvitesApi.js +56 -20
  54. package/dist/esm/apis/PathPartsApi.d.ts +140 -1
  55. package/dist/esm/apis/PathPartsApi.js +142 -21
  56. package/dist/esm/apis/SectionsApi.d.ts +49 -0
  57. package/dist/esm/apis/SectionsApi.js +56 -20
  58. package/dist/esm/apis/TagsApi.d.ts +62 -0
  59. package/dist/esm/apis/TagsApi.js +70 -25
  60. package/dist/esm/apis/TenantsApi.d.ts +103 -0
  61. package/dist/esm/apis/TenantsApi.js +112 -40
  62. package/dist/esm/apis/ThreadMessagesApi.d.ts +41 -0
  63. package/dist/esm/apis/ThreadMessagesApi.js +42 -15
  64. package/dist/esm/apis/ThreadsApi.d.ts +77 -0
  65. package/dist/esm/apis/ThreadsApi.js +84 -30
  66. package/dist/esm/apis/UserPermissionsApi.d.ts +54 -0
  67. package/dist/esm/apis/UserPermissionsApi.js +56 -20
  68. package/dist/esm/apis/UsersApi.d.ts +23 -0
  69. package/dist/esm/apis/UsersApi.js +28 -10
  70. package/dist/esm/apis/WorkflowsApi.d.ts +38 -0
  71. package/dist/esm/apis/WorkflowsApi.js +42 -15
  72. package/dist/esm/models/ChunkBulkResponse.d.ts +139 -0
  73. package/dist/esm/models/ChunkBulkResponse.js +100 -0
  74. package/dist/esm/models/{DocumentContentPathPart.d.ts → ChunkContentItem.d.ts} +37 -40
  75. package/dist/esm/models/{DocumentContentPathPart.js → ChunkContentItem.js} +19 -16
  76. package/dist/esm/models/ChunkSearchRequest.d.ts +14 -2
  77. package/dist/esm/models/ChunkSearchRequest.js +6 -2
  78. package/dist/esm/models/DocumentResponse.d.ts +13 -0
  79. package/dist/esm/models/DocumentResponse.js +10 -0
  80. package/dist/esm/models/FolderResponse.d.ts +13 -0
  81. package/dist/esm/models/FolderResponse.js +10 -0
  82. package/dist/esm/models/FolderResponseOrDocumentResponse.d.ts +27 -0
  83. package/dist/esm/models/FolderResponseOrDocumentResponse.js +47 -0
  84. package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.d.ts +66 -0
  85. package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.js +70 -0
  86. package/dist/esm/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.d.ts +66 -0
  87. package/dist/esm/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.js +70 -0
  88. package/dist/esm/models/SectionContentItem.d.ts +114 -0
  89. package/dist/esm/models/SectionContentItem.js +88 -0
  90. package/dist/esm/models/SectionContentItemOrChunkContentItem.d.ts +27 -0
  91. package/dist/esm/models/SectionContentItemOrChunkContentItem.js +47 -0
  92. package/dist/esm/models/SubtreeChunkGroup.d.ts +62 -0
  93. package/dist/esm/models/SubtreeChunkGroup.js +52 -0
  94. package/dist/esm/models/SubtreeChunksResponse.d.ts +48 -0
  95. package/dist/esm/models/SubtreeChunksResponse.js +45 -0
  96. package/dist/esm/models/VersionChunkIdsResponse.d.ts +47 -0
  97. package/dist/esm/models/VersionChunkIdsResponse.js +44 -0
  98. package/dist/esm/models/index.d.ts +10 -4
  99. package/dist/esm/models/index.js +10 -4
  100. package/dist/models/ChunkBulkResponse.d.ts +139 -0
  101. package/dist/models/ChunkBulkResponse.js +108 -0
  102. package/dist/models/{DocumentContentPathPart.d.ts → ChunkContentItem.d.ts} +37 -40
  103. package/dist/models/{DocumentContentPathPart.js → ChunkContentItem.js} +25 -22
  104. package/dist/models/ChunkSearchRequest.d.ts +14 -2
  105. package/dist/models/ChunkSearchRequest.js +6 -2
  106. package/dist/models/DocumentResponse.d.ts +13 -0
  107. package/dist/models/DocumentResponse.js +11 -1
  108. package/dist/models/FolderResponse.d.ts +13 -0
  109. package/dist/models/FolderResponse.js +11 -1
  110. package/dist/models/FolderResponseOrDocumentResponse.d.ts +27 -0
  111. package/dist/models/FolderResponseOrDocumentResponse.js +53 -0
  112. package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.d.ts +66 -0
  113. package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.js +78 -0
  114. package/dist/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.d.ts +66 -0
  115. package/dist/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.js +78 -0
  116. package/dist/models/SectionContentItem.d.ts +114 -0
  117. package/dist/models/SectionContentItem.js +96 -0
  118. package/dist/models/SectionContentItemOrChunkContentItem.d.ts +27 -0
  119. package/dist/models/SectionContentItemOrChunkContentItem.js +53 -0
  120. package/dist/models/SubtreeChunkGroup.d.ts +62 -0
  121. package/dist/models/SubtreeChunkGroup.js +60 -0
  122. package/dist/models/SubtreeChunksResponse.d.ts +48 -0
  123. package/dist/models/SubtreeChunksResponse.js +53 -0
  124. package/dist/models/VersionChunkIdsResponse.d.ts +47 -0
  125. package/dist/models/VersionChunkIdsResponse.js +52 -0
  126. package/dist/models/index.d.ts +10 -4
  127. package/dist/models/index.js +10 -4
  128. package/docs/AuthApi.md +707 -0
  129. package/docs/BulkTagRequest.md +35 -0
  130. package/docs/ChunkBulkResponse.md +65 -0
  131. package/docs/ChunkContentItem.md +59 -0
  132. package/docs/ChunkLineageResponse.md +41 -0
  133. package/docs/ChunkLineagesApi.md +230 -0
  134. package/docs/ChunkMetadataInput.md +37 -0
  135. package/docs/ChunkMetadataOutput.md +37 -0
  136. package/docs/ChunkResponse.md +63 -0
  137. package/docs/ChunkSearchRequest.md +51 -0
  138. package/docs/ChunkType.md +33 -0
  139. package/docs/ChunksApi.md +590 -0
  140. package/docs/ClearVersionContentsResponse.md +35 -0
  141. package/docs/CreateChunkLineageRequest.md +37 -0
  142. package/docs/CreateChunkRequest.md +43 -0
  143. package/docs/CreateDocumentRequest.md +41 -0
  144. package/docs/CreateFolderRequest.md +37 -0
  145. package/docs/CreatePasswordUserRequest.md +36 -0
  146. package/docs/CreatePermissionRequest.md +40 -0
  147. package/docs/CreateSectionRequest.md +41 -0
  148. package/docs/CreateTagRequest.md +39 -0
  149. package/docs/CreateTenantRequest.md +37 -0
  150. package/docs/CreateThreadMessageRequest.md +37 -0
  151. package/docs/CreateThreadRequest.md +37 -0
  152. package/docs/DefaultApi.md +128 -0
  153. package/docs/DocumentOrigin.md +33 -0
  154. package/docs/DocumentResponse.md +63 -0
  155. package/docs/DocumentType.md +33 -0
  156. package/docs/DocumentVersionMetadata.md +47 -0
  157. package/docs/DocumentVersionMetadataUpdate.md +47 -0
  158. package/docs/DocumentVersionResponse.md +57 -0
  159. package/docs/DocumentVersionsApi.md +530 -0
  160. package/docs/DocumentsApi.md +464 -0
  161. package/docs/EmailSentResponse.md +34 -0
  162. package/docs/EmailVerificationRequest.md +34 -0
  163. package/docs/EmbeddingModel.md +33 -0
  164. package/docs/FolderResponse.md +55 -0
  165. package/docs/FolderResponseOrDocumentResponse.md +62 -0
  166. package/docs/FoldersApi.md +473 -0
  167. package/docs/HTTPValidationError.md +34 -0
  168. package/docs/HealthCheckResponse.md +36 -0
  169. package/docs/IdpType.md +33 -0
  170. package/docs/IngestDocumentResponse.md +39 -0
  171. package/docs/InviteResponse.md +53 -0
  172. package/docs/InviteStatus.md +32 -0
  173. package/docs/InviteUserRequest.md +38 -0
  174. package/docs/InvitesApi.md +305 -0
  175. package/docs/LineageEdgeResponse.md +37 -0
  176. package/docs/LineageGraphResponse.md +37 -0
  177. package/docs/LineageNodeResponse.md +47 -0
  178. package/docs/LocationInner.md +32 -0
  179. package/docs/MessageRole.md +33 -0
  180. package/docs/OAuth2Config.md +41 -0
  181. package/docs/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.md +40 -0
  182. package/docs/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.md +40 -0
  183. package/docs/PaginatedResponseDocumentResponse.md +40 -0
  184. package/docs/PaginatedResponseDocumentVersionResponse.md +40 -0
  185. package/docs/PaginatedResponseFolderResponse.md +40 -0
  186. package/docs/PaginatedResponseInviteResponse.md +40 -0
  187. package/docs/PaginatedResponsePathPartResponse.md +40 -0
  188. package/docs/PaginatedResponsePermissionResponse.md +40 -0
  189. package/docs/PaginatedResponseTagResponse.md +40 -0
  190. package/docs/PaginatedResponseTenantResponse.md +40 -0
  191. package/docs/PaginatedResponseTenantUserResponse.md +40 -0
  192. package/docs/PaginatedResponseThreadMessageResponse.md +40 -0
  193. package/docs/PaginatedResponseThreadResponse.md +40 -0
  194. package/docs/PaginatedResponseWorkflowSummaryResponse.md +40 -0
  195. package/docs/PartType.md +33 -0
  196. package/docs/PasswordResetRequest.md +36 -0
  197. package/docs/PasswordResetWithTokenRequest.md +36 -0
  198. package/docs/PathOrder.md +33 -0
  199. package/docs/PathPartResponse.md +53 -0
  200. package/docs/PathPartTagsResponse.md +35 -0
  201. package/docs/PathPartsApi.md +461 -0
  202. package/docs/PermissionCapability.md +33 -0
  203. package/docs/PermissionResponse.md +48 -0
  204. package/docs/PipelineState.md +45 -0
  205. package/docs/PipelineStatus.md +33 -0
  206. package/docs/Polygon.md +41 -0
  207. package/docs/PolygonReference.md +37 -0
  208. package/docs/RootResponse.md +36 -0
  209. package/docs/ScoredChunkResponse.md +65 -0
  210. package/docs/SectionContentItem.md +55 -0
  211. package/docs/SectionContentItemOrChunkContentItem.md +60 -0
  212. package/docs/SectionResponse.md +57 -0
  213. package/docs/SectionsApi.md +299 -0
  214. package/docs/SignInRequest.md +38 -0
  215. package/docs/SubtreeChunkGroup.md +39 -0
  216. package/docs/SubtreeChunksResponse.md +35 -0
  217. package/docs/TagResponse.md +47 -0
  218. package/docs/TagsApi.md +374 -0
  219. package/docs/TenantResponse.md +39 -0
  220. package/docs/TenantUserEditRequest.md +35 -0
  221. package/docs/TenantUserResponse.md +43 -0
  222. package/docs/TenantUserRole.md +33 -0
  223. package/docs/TenantsApi.md +605 -0
  224. package/docs/ThreadMessageResponse.md +53 -0
  225. package/docs/ThreadMessagesApi.md +239 -0
  226. package/docs/ThreadResponse.md +49 -0
  227. package/docs/ThreadsApi.md +455 -0
  228. package/docs/UpdateChunkContentRequest.md +37 -0
  229. package/docs/UpdateChunkMetadataRequest.md +35 -0
  230. package/docs/UpdateDocumentRequest.md +39 -0
  231. package/docs/UpdateFolderRequest.md +37 -0
  232. package/docs/UpdatePermissionRequest.md +36 -0
  233. package/docs/UpdateSectionRequest.md +41 -0
  234. package/docs/UpdateTagRequest.md +39 -0
  235. package/docs/UpdateTenantRequest.md +37 -0
  236. package/docs/UpdateThreadRequest.md +37 -0
  237. package/docs/UpdateUserRequest.md +34 -0
  238. package/docs/UserPermissionsApi.md +314 -0
  239. package/docs/UserResponse.md +44 -0
  240. package/docs/UsersApi.md +149 -0
  241. package/docs/ValidationError.md +42 -0
  242. package/docs/VersionChunkIdsResponse.md +35 -0
  243. package/docs/WorkflowAction.md +33 -0
  244. package/docs/WorkflowActionResponse.md +39 -0
  245. package/docs/WorkflowDetailResponse.md +63 -0
  246. package/docs/WorkflowSummaryResponse.md +49 -0
  247. package/docs/WorkflowsApi.md +230 -0
  248. package/package.json +1 -1
  249. package/src/apis/AuthApi.ts +214 -47
  250. package/src/apis/ChunkLineagesApi.ts +68 -15
  251. package/src/apis/ChunksApi.ts +298 -33
  252. package/src/apis/DefaultApi.ts +40 -10
  253. package/src/apis/DocumentVersionsApi.ts +170 -45
  254. package/src/apis/DocumentsApi.ts +140 -30
  255. package/src/apis/FoldersApi.ts +153 -40
  256. package/src/apis/InvitesApi.ts +91 -20
  257. package/src/apis/PathPartsApi.ts +260 -20
  258. package/src/apis/SectionsApi.ts +89 -20
  259. package/src/apis/TagsApi.ts +112 -25
  260. package/src/apis/TenantsApi.ts +183 -40
  261. package/src/apis/ThreadMessagesApi.ts +71 -15
  262. package/src/apis/ThreadsApi.ts +137 -30
  263. package/src/apis/UserPermissionsApi.ts +94 -20
  264. package/src/apis/UsersApi.ts +43 -10
  265. package/src/apis/WorkflowsApi.ts +68 -15
  266. package/src/models/ChunkBulkResponse.ts +232 -0
  267. package/src/models/{DocumentContentPathPart.ts → ChunkContentItem.ts} +43 -53
  268. package/src/models/ChunkSearchRequest.ts +20 -4
  269. package/src/models/DocumentResponse.ts +17 -0
  270. package/src/models/FolderResponse.ts +19 -0
  271. package/src/models/FolderResponseOrDocumentResponse.ts +72 -0
  272. package/src/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.ts +130 -0
  273. package/src/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.ts +130 -0
  274. package/src/models/SectionContentItem.ts +182 -0
  275. package/src/models/SectionContentItemOrChunkContentItem.ts +72 -0
  276. package/src/models/SubtreeChunkGroup.ts +104 -0
  277. package/src/models/SubtreeChunksResponse.ts +91 -0
  278. package/src/models/VersionChunkIdsResponse.ts +83 -0
  279. package/src/models/index.ts +10 -4
  280. package/dist/esm/models/FolderDocumentResponse.d.ts +0 -157
  281. package/dist/esm/models/FolderDocumentResponse.js +0 -99
  282. package/dist/esm/models/PaginatedResponseDocumentContentPathPart.d.ts +0 -66
  283. package/dist/esm/models/PaginatedResponseDocumentContentPathPart.js +0 -70
  284. package/dist/esm/models/PaginatedResponseFolderDocumentResponse.d.ts +0 -66
  285. package/dist/esm/models/PaginatedResponseFolderDocumentResponse.js +0 -70
  286. package/dist/models/FolderDocumentResponse.d.ts +0 -157
  287. package/dist/models/FolderDocumentResponse.js +0 -107
  288. package/dist/models/PaginatedResponseDocumentContentPathPart.d.ts +0 -66
  289. package/dist/models/PaginatedResponseDocumentContentPathPart.js +0 -78
  290. package/dist/models/PaginatedResponseFolderDocumentResponse.d.ts +0 -66
  291. package/dist/models/PaginatedResponseFolderDocumentResponse.js +0 -78
  292. package/src/models/FolderDocumentResponse.ts +0 -267
  293. package/src/models/PaginatedResponseDocumentContentPathPart.ts +0 -130
  294. package/src/models/PaginatedResponseFolderDocumentResponse.ts +0 -130
@@ -15,6 +15,7 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
+ ChunkBulkResponse,
18
19
  ChunkResponse,
19
20
  ChunkSearchRequest,
20
21
  CreateChunkRequest,
@@ -22,8 +23,11 @@ import type {
22
23
  ScoredChunkResponse,
23
24
  UpdateChunkContentRequest,
24
25
  UpdateChunkMetadataRequest,
26
+ VersionChunkIdsResponse,
25
27
  } from '../models/index';
26
28
  import {
29
+ ChunkBulkResponseFromJSON,
30
+ ChunkBulkResponseToJSON,
27
31
  ChunkResponseFromJSON,
28
32
  ChunkResponseToJSON,
29
33
  ChunkSearchRequestFromJSON,
@@ -38,6 +42,8 @@ import {
38
42
  UpdateChunkContentRequestToJSON,
39
43
  UpdateChunkMetadataRequestFromJSON,
40
44
  UpdateChunkMetadataRequestToJSON,
45
+ VersionChunkIdsResponseFromJSON,
46
+ VersionChunkIdsResponseToJSON,
41
47
  } from '../models/index';
42
48
 
43
49
  export interface CreateChunkOperationRequest {
@@ -55,6 +61,16 @@ export interface GetChunkRequest {
55
61
  ksUat?: string | null;
56
62
  }
57
63
 
64
+ export interface GetChunksBulkRequest {
65
+ chunkIds?: Array<string> | null;
66
+ ksUat?: string | null;
67
+ }
68
+
69
+ export interface GetVersionChunkIdsRequest {
70
+ documentVersionId: string;
71
+ ksUat?: string | null;
72
+ }
73
+
58
74
  export interface SearchChunksRequest {
59
75
  chunkSearchRequest: ChunkSearchRequest;
60
76
  ksUat?: string | null;
@@ -79,6 +95,15 @@ export interface UpdateChunkMetadataOperationRequest {
79
95
  * @interface ChunksApiInterface
80
96
  */
81
97
  export interface ChunksApiInterface {
98
+ /**
99
+ * Creates request options for createChunk without sending the request
100
+ * @param {CreateChunkRequest} createChunkRequest
101
+ * @param {string} [ksUat]
102
+ * @throws {RequiredError}
103
+ * @memberof ChunksApiInterface
104
+ */
105
+ createChunkRequestOpts(requestParameters: CreateChunkOperationRequest): Promise<runtime.RequestOpts>;
106
+
82
107
  /**
83
108
  * Create a new chunk with content. The chunk is created as a child of the specified parent (must be DOCUMENT_VERSION or SECTION). Content is deduplicated by SHA256 hash.
84
109
  * @summary Create Chunk Handler
@@ -96,6 +121,15 @@ export interface ChunksApiInterface {
96
121
  */
97
122
  createChunk(requestParameters: CreateChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
98
123
 
124
+ /**
125
+ * Creates request options for deleteChunk without sending the request
126
+ * @param {string} chunkId
127
+ * @param {string} [ksUat]
128
+ * @throws {RequiredError}
129
+ * @memberof ChunksApiInterface
130
+ */
131
+ deleteChunkRequestOpts(requestParameters: DeleteChunkRequest): Promise<runtime.RequestOpts>;
132
+
99
133
  /**
100
134
  * Delete a chunk. The chunk is deleted via its PathPart (cascading delete). The associated ChunkContent may remain if shared by other chunks.
101
135
  * @summary Delete Chunk Handler
@@ -113,6 +147,15 @@ export interface ChunksApiInterface {
113
147
  */
114
148
  deleteChunk(requestParameters: DeleteChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
115
149
 
150
+ /**
151
+ * Creates request options for getChunk without sending the request
152
+ * @param {string} chunkId
153
+ * @param {string} [ksUat]
154
+ * @throws {RequiredError}
155
+ * @memberof ChunksApiInterface
156
+ */
157
+ getChunkRequestOpts(requestParameters: GetChunkRequest): Promise<runtime.RequestOpts>;
158
+
116
159
  /**
117
160
  * Get a chunk by its ID, including content.
118
161
  * @summary Get Chunk Handler
@@ -131,7 +174,68 @@ export interface ChunksApiInterface {
131
174
  getChunk(requestParameters: GetChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
132
175
 
133
176
  /**
134
- * Semantic search over chunks using vector similarity. Combines pgvector cosine similarity with path-based authorization and optional metadata filters. Uses a two-session design to avoid holding a DB connection during the external embedding API call.
177
+ * Creates request options for getChunksBulk without sending the request
178
+ * @param {Array<string>} [chunkIds] Chunk IDs to resolve (max 200)
179
+ * @param {string} [ksUat]
180
+ * @throws {RequiredError}
181
+ * @memberof ChunksApiInterface
182
+ */
183
+ getChunksBulkRequestOpts(requestParameters: GetChunksBulkRequest): Promise<runtime.RequestOpts>;
184
+
185
+ /**
186
+ * Batch-fetch chunks with their full ancestor path part IDs. Returns standard chunk data plus path_part_id_segments (the ordered ancestor chain from root to chunk) for each requested chunk. Non-existent IDs are silently skipped. Limited to 200 IDs per call.
187
+ * @summary Get Chunks Bulk Handler
188
+ * @param {Array<string>} [chunkIds] Chunk IDs to resolve (max 200)
189
+ * @param {string} [ksUat]
190
+ * @param {*} [options] Override http request option.
191
+ * @throws {RequiredError}
192
+ * @memberof ChunksApiInterface
193
+ */
194
+ getChunksBulkRaw(requestParameters: GetChunksBulkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ChunkBulkResponse>>>;
195
+
196
+ /**
197
+ * Batch-fetch chunks with their full ancestor path part IDs. Returns standard chunk data plus path_part_id_segments (the ordered ancestor chain from root to chunk) for each requested chunk. Non-existent IDs are silently skipped. Limited to 200 IDs per call.
198
+ * Get Chunks Bulk Handler
199
+ */
200
+ getChunksBulk(requestParameters: GetChunksBulkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ChunkBulkResponse>>;
201
+
202
+ /**
203
+ * Creates request options for getVersionChunkIds without sending the request
204
+ * @param {string} documentVersionId Document version ID
205
+ * @param {string} [ksUat]
206
+ * @throws {RequiredError}
207
+ * @memberof ChunksApiInterface
208
+ */
209
+ getVersionChunkIdsRequestOpts(requestParameters: GetVersionChunkIdsRequest): Promise<runtime.RequestOpts>;
210
+
211
+ /**
212
+ * Get all chunk IDs belonging to a document version. Used by the embedding pipeline to discover chunks for a version.
213
+ * @summary Get Version Chunk Ids Handler
214
+ * @param {string} documentVersionId Document version ID
215
+ * @param {string} [ksUat]
216
+ * @param {*} [options] Override http request option.
217
+ * @throws {RequiredError}
218
+ * @memberof ChunksApiInterface
219
+ */
220
+ getVersionChunkIdsRaw(requestParameters: GetVersionChunkIdsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VersionChunkIdsResponse>>;
221
+
222
+ /**
223
+ * Get all chunk IDs belonging to a document version. Used by the embedding pipeline to discover chunks for a version.
224
+ * Get Version Chunk Ids Handler
225
+ */
226
+ getVersionChunkIds(requestParameters: GetVersionChunkIdsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VersionChunkIdsResponse>;
227
+
228
+ /**
229
+ * Creates request options for searchChunks without sending the request
230
+ * @param {ChunkSearchRequest} chunkSearchRequest
231
+ * @param {string} [ksUat]
232
+ * @throws {RequiredError}
233
+ * @memberof ChunksApiInterface
234
+ */
235
+ searchChunksRequestOpts(requestParameters: SearchChunksRequest): Promise<runtime.RequestOpts>;
236
+
237
+ /**
238
+ * Semantic search over chunks using Qdrant vector similarity. Combines vector similarity with path-based authorization and optional metadata filters. Uses Qdrant for vector search and hydrates results from Postgres.
135
239
  * @summary Search Chunks Handler
136
240
  * @param {ChunkSearchRequest} chunkSearchRequest
137
241
  * @param {string} [ksUat]
@@ -142,11 +246,21 @@ export interface ChunksApiInterface {
142
246
  searchChunksRaw(requestParameters: SearchChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ScoredChunkResponse>>>;
143
247
 
144
248
  /**
145
- * Semantic search over chunks using vector similarity. Combines pgvector cosine similarity with path-based authorization and optional metadata filters. Uses a two-session design to avoid holding a DB connection during the external embedding API call.
249
+ * Semantic search over chunks using Qdrant vector similarity. Combines vector similarity with path-based authorization and optional metadata filters. Uses Qdrant for vector search and hydrates results from Postgres.
146
250
  * Search Chunks Handler
147
251
  */
148
252
  searchChunks(requestParameters: SearchChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ScoredChunkResponse>>;
149
253
 
254
+ /**
255
+ * Creates request options for updateChunkContent without sending the request
256
+ * @param {string} chunkId
257
+ * @param {UpdateChunkContentRequest} updateChunkContentRequest
258
+ * @param {string} [ksUat]
259
+ * @throws {RequiredError}
260
+ * @memberof ChunksApiInterface
261
+ */
262
+ updateChunkContentRequestOpts(requestParameters: UpdateChunkContentOperationRequest): Promise<runtime.RequestOpts>;
263
+
150
264
  /**
151
265
  * Update chunk content by creating a new content row. The old content row is preserved (not deleted). If the new content matches an existing content hash, it will be deduplicated.
152
266
  * @summary Update Chunk Content Handler
@@ -165,6 +279,16 @@ export interface ChunksApiInterface {
165
279
  */
166
280
  updateChunkContent(requestParameters: UpdateChunkContentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
167
281
 
282
+ /**
283
+ * Creates request options for updateChunkMetadata without sending the request
284
+ * @param {string} chunkId
285
+ * @param {UpdateChunkMetadataRequest} updateChunkMetadataRequest
286
+ * @param {string} [ksUat]
287
+ * @throws {RequiredError}
288
+ * @memberof ChunksApiInterface
289
+ */
290
+ updateChunkMetadataRequestOpts(requestParameters: UpdateChunkMetadataOperationRequest): Promise<runtime.RequestOpts>;
291
+
168
292
  /**
169
293
  * Update chunk metadata by merging with existing metadata. The provided metadata is shallow-merged into the existing chunk_metadata.
170
294
  * @summary Update Chunk Metadata Handler
@@ -191,10 +315,9 @@ export interface ChunksApiInterface {
191
315
  export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
192
316
 
193
317
  /**
194
- * Create a new chunk with content. The chunk is created as a child of the specified parent (must be DOCUMENT_VERSION or SECTION). Content is deduplicated by SHA256 hash.
195
- * Create Chunk Handler
318
+ * Creates request options for createChunk without sending the request
196
319
  */
197
- async createChunkRaw(requestParameters: CreateChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>> {
320
+ async createChunkRequestOpts(requestParameters: CreateChunkOperationRequest): Promise<runtime.RequestOpts> {
198
321
  if (requestParameters['createChunkRequest'] == null) {
199
322
  throw new runtime.RequiredError(
200
323
  'createChunkRequest',
@@ -211,13 +334,22 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
211
334
 
212
335
  let urlPath = `/v1/chunks`;
213
336
 
214
- const response = await this.request({
337
+ return {
215
338
  path: urlPath,
216
339
  method: 'POST',
217
340
  headers: headerParameters,
218
341
  query: queryParameters,
219
342
  body: CreateChunkRequestToJSON(requestParameters['createChunkRequest']),
220
- }, initOverrides);
343
+ };
344
+ }
345
+
346
+ /**
347
+ * Create a new chunk with content. The chunk is created as a child of the specified parent (must be DOCUMENT_VERSION or SECTION). Content is deduplicated by SHA256 hash.
348
+ * Create Chunk Handler
349
+ */
350
+ async createChunkRaw(requestParameters: CreateChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>> {
351
+ const requestOptions = await this.createChunkRequestOpts(requestParameters);
352
+ const response = await this.request(requestOptions, initOverrides);
221
353
 
222
354
  return new runtime.JSONApiResponse(response, (jsonValue) => ChunkResponseFromJSON(jsonValue));
223
355
  }
@@ -232,10 +364,9 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
232
364
  }
233
365
 
234
366
  /**
235
- * Delete a chunk. The chunk is deleted via its PathPart (cascading delete). The associated ChunkContent may remain if shared by other chunks.
236
- * Delete Chunk Handler
367
+ * Creates request options for deleteChunk without sending the request
237
368
  */
238
- async deleteChunkRaw(requestParameters: DeleteChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
369
+ async deleteChunkRequestOpts(requestParameters: DeleteChunkRequest): Promise<runtime.RequestOpts> {
239
370
  if (requestParameters['chunkId'] == null) {
240
371
  throw new runtime.RequiredError(
241
372
  'chunkId',
@@ -251,12 +382,21 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
251
382
  let urlPath = `/v1/chunks/{chunk_id}`;
252
383
  urlPath = urlPath.replace(`{${"chunk_id"}}`, encodeURIComponent(String(requestParameters['chunkId'])));
253
384
 
254
- const response = await this.request({
385
+ return {
255
386
  path: urlPath,
256
387
  method: 'DELETE',
257
388
  headers: headerParameters,
258
389
  query: queryParameters,
259
- }, initOverrides);
390
+ };
391
+ }
392
+
393
+ /**
394
+ * Delete a chunk. The chunk is deleted via its PathPart (cascading delete). The associated ChunkContent may remain if shared by other chunks.
395
+ * Delete Chunk Handler
396
+ */
397
+ async deleteChunkRaw(requestParameters: DeleteChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
398
+ const requestOptions = await this.deleteChunkRequestOpts(requestParameters);
399
+ const response = await this.request(requestOptions, initOverrides);
260
400
 
261
401
  return new runtime.VoidApiResponse(response);
262
402
  }
@@ -270,10 +410,9 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
270
410
  }
271
411
 
272
412
  /**
273
- * Get a chunk by its ID, including content.
274
- * Get Chunk Handler
413
+ * Creates request options for getChunk without sending the request
275
414
  */
276
- async getChunkRaw(requestParameters: GetChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>> {
415
+ async getChunkRequestOpts(requestParameters: GetChunkRequest): Promise<runtime.RequestOpts> {
277
416
  if (requestParameters['chunkId'] == null) {
278
417
  throw new runtime.RequiredError(
279
418
  'chunkId',
@@ -289,12 +428,21 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
289
428
  let urlPath = `/v1/chunks/{chunk_id}`;
290
429
  urlPath = urlPath.replace(`{${"chunk_id"}}`, encodeURIComponent(String(requestParameters['chunkId'])));
291
430
 
292
- const response = await this.request({
431
+ return {
293
432
  path: urlPath,
294
433
  method: 'GET',
295
434
  headers: headerParameters,
296
435
  query: queryParameters,
297
- }, initOverrides);
436
+ };
437
+ }
438
+
439
+ /**
440
+ * Get a chunk by its ID, including content.
441
+ * Get Chunk Handler
442
+ */
443
+ async getChunkRaw(requestParameters: GetChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>> {
444
+ const requestOptions = await this.getChunkRequestOpts(requestParameters);
445
+ const response = await this.request(requestOptions, initOverrides);
298
446
 
299
447
  return new runtime.JSONApiResponse(response, (jsonValue) => ChunkResponseFromJSON(jsonValue));
300
448
  }
@@ -309,10 +457,102 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
309
457
  }
310
458
 
311
459
  /**
312
- * Semantic search over chunks using vector similarity. Combines pgvector cosine similarity with path-based authorization and optional metadata filters. Uses a two-session design to avoid holding a DB connection during the external embedding API call.
313
- * Search Chunks Handler
460
+ * Creates request options for getChunksBulk without sending the request
314
461
  */
315
- async searchChunksRaw(requestParameters: SearchChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ScoredChunkResponse>>> {
462
+ async getChunksBulkRequestOpts(requestParameters: GetChunksBulkRequest): Promise<runtime.RequestOpts> {
463
+ const queryParameters: any = {};
464
+
465
+ if (requestParameters['chunkIds'] != null) {
466
+ queryParameters['chunk_ids'] = requestParameters['chunkIds'];
467
+ }
468
+
469
+ const headerParameters: runtime.HTTPHeaders = {};
470
+
471
+
472
+ let urlPath = `/v1/chunks/bulk`;
473
+
474
+ return {
475
+ path: urlPath,
476
+ method: 'GET',
477
+ headers: headerParameters,
478
+ query: queryParameters,
479
+ };
480
+ }
481
+
482
+ /**
483
+ * Batch-fetch chunks with their full ancestor path part IDs. Returns standard chunk data plus path_part_id_segments (the ordered ancestor chain from root to chunk) for each requested chunk. Non-existent IDs are silently skipped. Limited to 200 IDs per call.
484
+ * Get Chunks Bulk Handler
485
+ */
486
+ async getChunksBulkRaw(requestParameters: GetChunksBulkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ChunkBulkResponse>>> {
487
+ const requestOptions = await this.getChunksBulkRequestOpts(requestParameters);
488
+ const response = await this.request(requestOptions, initOverrides);
489
+
490
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ChunkBulkResponseFromJSON));
491
+ }
492
+
493
+ /**
494
+ * Batch-fetch chunks with their full ancestor path part IDs. Returns standard chunk data plus path_part_id_segments (the ordered ancestor chain from root to chunk) for each requested chunk. Non-existent IDs are silently skipped. Limited to 200 IDs per call.
495
+ * Get Chunks Bulk Handler
496
+ */
497
+ async getChunksBulk(requestParameters: GetChunksBulkRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ChunkBulkResponse>> {
498
+ const response = await this.getChunksBulkRaw(requestParameters, initOverrides);
499
+ return await response.value();
500
+ }
501
+
502
+ /**
503
+ * Creates request options for getVersionChunkIds without sending the request
504
+ */
505
+ async getVersionChunkIdsRequestOpts(requestParameters: GetVersionChunkIdsRequest): Promise<runtime.RequestOpts> {
506
+ if (requestParameters['documentVersionId'] == null) {
507
+ throw new runtime.RequiredError(
508
+ 'documentVersionId',
509
+ 'Required parameter "documentVersionId" was null or undefined when calling getVersionChunkIds().'
510
+ );
511
+ }
512
+
513
+ const queryParameters: any = {};
514
+
515
+ if (requestParameters['documentVersionId'] != null) {
516
+ queryParameters['document_version_id'] = requestParameters['documentVersionId'];
517
+ }
518
+
519
+ const headerParameters: runtime.HTTPHeaders = {};
520
+
521
+
522
+ let urlPath = `/v1/chunks/version-chunk-ids`;
523
+
524
+ return {
525
+ path: urlPath,
526
+ method: 'GET',
527
+ headers: headerParameters,
528
+ query: queryParameters,
529
+ };
530
+ }
531
+
532
+ /**
533
+ * Get all chunk IDs belonging to a document version. Used by the embedding pipeline to discover chunks for a version.
534
+ * Get Version Chunk Ids Handler
535
+ */
536
+ async getVersionChunkIdsRaw(requestParameters: GetVersionChunkIdsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VersionChunkIdsResponse>> {
537
+ const requestOptions = await this.getVersionChunkIdsRequestOpts(requestParameters);
538
+ const response = await this.request(requestOptions, initOverrides);
539
+
540
+ return new runtime.JSONApiResponse(response, (jsonValue) => VersionChunkIdsResponseFromJSON(jsonValue));
541
+ }
542
+
543
+ /**
544
+ * Get all chunk IDs belonging to a document version. Used by the embedding pipeline to discover chunks for a version.
545
+ * Get Version Chunk Ids Handler
546
+ */
547
+ async getVersionChunkIds(requestParameters: GetVersionChunkIdsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VersionChunkIdsResponse> {
548
+ const response = await this.getVersionChunkIdsRaw(requestParameters, initOverrides);
549
+ return await response.value();
550
+ }
551
+
552
+ /**
553
+ * Creates request options for searchChunks without sending the request
554
+ */
555
+ async searchChunksRequestOpts(requestParameters: SearchChunksRequest): Promise<runtime.RequestOpts> {
316
556
  if (requestParameters['chunkSearchRequest'] == null) {
317
557
  throw new runtime.RequiredError(
318
558
  'chunkSearchRequest',
@@ -329,19 +569,28 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
329
569
 
330
570
  let urlPath = `/v1/chunks/search`;
331
571
 
332
- const response = await this.request({
572
+ return {
333
573
  path: urlPath,
334
574
  method: 'POST',
335
575
  headers: headerParameters,
336
576
  query: queryParameters,
337
577
  body: ChunkSearchRequestToJSON(requestParameters['chunkSearchRequest']),
338
- }, initOverrides);
578
+ };
579
+ }
580
+
581
+ /**
582
+ * Semantic search over chunks using Qdrant vector similarity. Combines vector similarity with path-based authorization and optional metadata filters. Uses Qdrant for vector search and hydrates results from Postgres.
583
+ * Search Chunks Handler
584
+ */
585
+ async searchChunksRaw(requestParameters: SearchChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ScoredChunkResponse>>> {
586
+ const requestOptions = await this.searchChunksRequestOpts(requestParameters);
587
+ const response = await this.request(requestOptions, initOverrides);
339
588
 
340
589
  return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ScoredChunkResponseFromJSON));
341
590
  }
342
591
 
343
592
  /**
344
- * Semantic search over chunks using vector similarity. Combines pgvector cosine similarity with path-based authorization and optional metadata filters. Uses a two-session design to avoid holding a DB connection during the external embedding API call.
593
+ * Semantic search over chunks using Qdrant vector similarity. Combines vector similarity with path-based authorization and optional metadata filters. Uses Qdrant for vector search and hydrates results from Postgres.
345
594
  * Search Chunks Handler
346
595
  */
347
596
  async searchChunks(requestParameters: SearchChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ScoredChunkResponse>> {
@@ -350,10 +599,9 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
350
599
  }
351
600
 
352
601
  /**
353
- * Update chunk content by creating a new content row. The old content row is preserved (not deleted). If the new content matches an existing content hash, it will be deduplicated.
354
- * Update Chunk Content Handler
602
+ * Creates request options for updateChunkContent without sending the request
355
603
  */
356
- async updateChunkContentRaw(requestParameters: UpdateChunkContentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>> {
604
+ async updateChunkContentRequestOpts(requestParameters: UpdateChunkContentOperationRequest): Promise<runtime.RequestOpts> {
357
605
  if (requestParameters['chunkId'] == null) {
358
606
  throw new runtime.RequiredError(
359
607
  'chunkId',
@@ -378,13 +626,22 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
378
626
  let urlPath = `/v1/chunks/{chunk_id}/content`;
379
627
  urlPath = urlPath.replace(`{${"chunk_id"}}`, encodeURIComponent(String(requestParameters['chunkId'])));
380
628
 
381
- const response = await this.request({
629
+ return {
382
630
  path: urlPath,
383
631
  method: 'PATCH',
384
632
  headers: headerParameters,
385
633
  query: queryParameters,
386
634
  body: UpdateChunkContentRequestToJSON(requestParameters['updateChunkContentRequest']),
387
- }, initOverrides);
635
+ };
636
+ }
637
+
638
+ /**
639
+ * Update chunk content by creating a new content row. The old content row is preserved (not deleted). If the new content matches an existing content hash, it will be deduplicated.
640
+ * Update Chunk Content Handler
641
+ */
642
+ async updateChunkContentRaw(requestParameters: UpdateChunkContentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>> {
643
+ const requestOptions = await this.updateChunkContentRequestOpts(requestParameters);
644
+ const response = await this.request(requestOptions, initOverrides);
388
645
 
389
646
  return new runtime.JSONApiResponse(response, (jsonValue) => ChunkResponseFromJSON(jsonValue));
390
647
  }
@@ -399,10 +656,9 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
399
656
  }
400
657
 
401
658
  /**
402
- * Update chunk metadata by merging with existing metadata. The provided metadata is shallow-merged into the existing chunk_metadata.
403
- * Update Chunk Metadata Handler
659
+ * Creates request options for updateChunkMetadata without sending the request
404
660
  */
405
- async updateChunkMetadataRaw(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>> {
661
+ async updateChunkMetadataRequestOpts(requestParameters: UpdateChunkMetadataOperationRequest): Promise<runtime.RequestOpts> {
406
662
  if (requestParameters['chunkId'] == null) {
407
663
  throw new runtime.RequiredError(
408
664
  'chunkId',
@@ -427,13 +683,22 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
427
683
  let urlPath = `/v1/chunks/{chunk_id}`;
428
684
  urlPath = urlPath.replace(`{${"chunk_id"}}`, encodeURIComponent(String(requestParameters['chunkId'])));
429
685
 
430
- const response = await this.request({
686
+ return {
431
687
  path: urlPath,
432
688
  method: 'PATCH',
433
689
  headers: headerParameters,
434
690
  query: queryParameters,
435
691
  body: UpdateChunkMetadataRequestToJSON(requestParameters['updateChunkMetadataRequest']),
436
- }, initOverrides);
692
+ };
693
+ }
694
+
695
+ /**
696
+ * Update chunk metadata by merging with existing metadata. The provided metadata is shallow-merged into the existing chunk_metadata.
697
+ * Update Chunk Metadata Handler
698
+ */
699
+ async updateChunkMetadataRaw(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>> {
700
+ const requestOptions = await this.updateChunkMetadataRequestOpts(requestParameters);
701
+ const response = await this.request(requestOptions, initOverrides);
437
702
 
438
703
  return new runtime.JSONApiResponse(response, (jsonValue) => ChunkResponseFromJSON(jsonValue));
439
704
  }
@@ -32,6 +32,13 @@ import {
32
32
  * @interface DefaultApiInterface
33
33
  */
34
34
  export interface DefaultApiInterface {
35
+ /**
36
+ * Creates request options for healthCheck without sending the request
37
+ * @throws {RequiredError}
38
+ * @memberof DefaultApiInterface
39
+ */
40
+ healthCheckRequestOpts(): Promise<runtime.RequestOpts>;
41
+
35
42
  /**
36
43
  * Health check endpoint.
37
44
  * @summary Health Check Handler
@@ -47,6 +54,13 @@ export interface DefaultApiInterface {
47
54
  */
48
55
  healthCheck(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<HealthCheckResponse>;
49
56
 
57
+ /**
58
+ * Creates request options for hello without sending the request
59
+ * @throws {RequiredError}
60
+ * @memberof DefaultApiInterface
61
+ */
62
+ helloRequestOpts(): Promise<runtime.RequestOpts>;
63
+
50
64
  /**
51
65
  * Root endpoint.
52
66
  * @summary Root Handler
@@ -70,10 +84,9 @@ export interface DefaultApiInterface {
70
84
  export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
71
85
 
72
86
  /**
73
- * Health check endpoint.
74
- * Health Check Handler
87
+ * Creates request options for healthCheck without sending the request
75
88
  */
76
- async healthCheckRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<HealthCheckResponse>> {
89
+ async healthCheckRequestOpts(): Promise<runtime.RequestOpts> {
77
90
  const queryParameters: any = {};
78
91
 
79
92
  const headerParameters: runtime.HTTPHeaders = {};
@@ -81,12 +94,21 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
81
94
 
82
95
  let urlPath = `/healthz`;
83
96
 
84
- const response = await this.request({
97
+ return {
85
98
  path: urlPath,
86
99
  method: 'GET',
87
100
  headers: headerParameters,
88
101
  query: queryParameters,
89
- }, initOverrides);
102
+ };
103
+ }
104
+
105
+ /**
106
+ * Health check endpoint.
107
+ * Health Check Handler
108
+ */
109
+ async healthCheckRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<HealthCheckResponse>> {
110
+ const requestOptions = await this.healthCheckRequestOpts();
111
+ const response = await this.request(requestOptions, initOverrides);
90
112
 
91
113
  return new runtime.JSONApiResponse(response, (jsonValue) => HealthCheckResponseFromJSON(jsonValue));
92
114
  }
@@ -101,10 +123,9 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
101
123
  }
102
124
 
103
125
  /**
104
- * Root endpoint.
105
- * Root Handler
126
+ * Creates request options for hello without sending the request
106
127
  */
107
- async helloRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RootResponse>> {
128
+ async helloRequestOpts(): Promise<runtime.RequestOpts> {
108
129
  const queryParameters: any = {};
109
130
 
110
131
  const headerParameters: runtime.HTTPHeaders = {};
@@ -112,12 +133,21 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
112
133
 
113
134
  let urlPath = `/`;
114
135
 
115
- const response = await this.request({
136
+ return {
116
137
  path: urlPath,
117
138
  method: 'GET',
118
139
  headers: headerParameters,
119
140
  query: queryParameters,
120
- }, initOverrides);
141
+ };
142
+ }
143
+
144
+ /**
145
+ * Root endpoint.
146
+ * Root Handler
147
+ */
148
+ async helloRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RootResponse>> {
149
+ const requestOptions = await this.helloRequestOpts();
150
+ const response = await this.request(requestOptions, initOverrides);
121
151
 
122
152
  return new runtime.JSONApiResponse(response, (jsonValue) => RootResponseFromJSON(jsonValue));
123
153
  }