@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
@@ -30,10 +30,9 @@ const index_1 = require("../models/index");
30
30
  */
31
31
  class SectionsApi extends runtime.BaseAPI {
32
32
  /**
33
- * Create a new section. The section is created as a child of the specified parent (must be DOCUMENT_VERSION or SECTION). If prev_sibling_path_id is provided, the section is inserted after that sibling; otherwise it is appended to the end of the sibling list.
34
- * Create Section Handler
33
+ * Creates request options for createSection without sending the request
35
34
  */
36
- createSectionRaw(requestParameters, initOverrides) {
35
+ createSectionRequestOpts(requestParameters) {
37
36
  return __awaiter(this, void 0, void 0, function* () {
38
37
  if (requestParameters['createSectionRequest'] == null) {
39
38
  throw new runtime.RequiredError('createSectionRequest', 'Required parameter "createSectionRequest" was null or undefined when calling createSection().');
@@ -42,13 +41,23 @@ class SectionsApi extends runtime.BaseAPI {
42
41
  const headerParameters = {};
43
42
  headerParameters['Content-Type'] = 'application/json';
44
43
  let urlPath = `/v1/sections`;
45
- const response = yield this.request({
44
+ return {
46
45
  path: urlPath,
47
46
  method: 'POST',
48
47
  headers: headerParameters,
49
48
  query: queryParameters,
50
49
  body: (0, index_1.CreateSectionRequestToJSON)(requestParameters['createSectionRequest']),
51
- }, initOverrides);
50
+ };
51
+ });
52
+ }
53
+ /**
54
+ * Create a new section. The section is created as a child of the specified parent (must be DOCUMENT_VERSION or SECTION). If prev_sibling_path_id is provided, the section is inserted after that sibling; otherwise it is appended to the end of the sibling list.
55
+ * Create Section Handler
56
+ */
57
+ createSectionRaw(requestParameters, initOverrides) {
58
+ return __awaiter(this, void 0, void 0, function* () {
59
+ const requestOptions = yield this.createSectionRequestOpts(requestParameters);
60
+ const response = yield this.request(requestOptions, initOverrides);
52
61
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SectionResponseFromJSON)(jsonValue));
53
62
  });
54
63
  }
@@ -63,10 +72,9 @@ class SectionsApi extends runtime.BaseAPI {
63
72
  });
64
73
  }
65
74
  /**
66
- * Delete a section and all its children. WARNING: This cascades to all child sections due to parent_id ON DELETE CASCADE.
67
- * Delete Section Handler
75
+ * Creates request options for deleteSection without sending the request
68
76
  */
69
- deleteSectionRaw(requestParameters, initOverrides) {
77
+ deleteSectionRequestOpts(requestParameters) {
70
78
  return __awaiter(this, void 0, void 0, function* () {
71
79
  if (requestParameters['sectionId'] == null) {
72
80
  throw new runtime.RequiredError('sectionId', 'Required parameter "sectionId" was null or undefined when calling deleteSection().');
@@ -75,12 +83,22 @@ class SectionsApi extends runtime.BaseAPI {
75
83
  const headerParameters = {};
76
84
  let urlPath = `/v1/sections/{section_id}`;
77
85
  urlPath = urlPath.replace(`{${"section_id"}}`, encodeURIComponent(String(requestParameters['sectionId'])));
78
- const response = yield this.request({
86
+ return {
79
87
  path: urlPath,
80
88
  method: 'DELETE',
81
89
  headers: headerParameters,
82
90
  query: queryParameters,
83
- }, initOverrides);
91
+ };
92
+ });
93
+ }
94
+ /**
95
+ * Delete a section and all its children. WARNING: This cascades to all child sections due to parent_id ON DELETE CASCADE.
96
+ * Delete Section Handler
97
+ */
98
+ deleteSectionRaw(requestParameters, initOverrides) {
99
+ return __awaiter(this, void 0, void 0, function* () {
100
+ const requestOptions = yield this.deleteSectionRequestOpts(requestParameters);
101
+ const response = yield this.request(requestOptions, initOverrides);
84
102
  return new runtime.VoidApiResponse(response);
85
103
  });
86
104
  }
@@ -94,10 +112,9 @@ class SectionsApi extends runtime.BaseAPI {
94
112
  });
95
113
  }
96
114
  /**
97
- * Get a section by its ID.
98
- * Get Section Handler
115
+ * Creates request options for getSection without sending the request
99
116
  */
100
- getSectionRaw(requestParameters, initOverrides) {
117
+ getSectionRequestOpts(requestParameters) {
101
118
  return __awaiter(this, void 0, void 0, function* () {
102
119
  if (requestParameters['sectionId'] == null) {
103
120
  throw new runtime.RequiredError('sectionId', 'Required parameter "sectionId" was null or undefined when calling getSection().');
@@ -106,12 +123,22 @@ class SectionsApi extends runtime.BaseAPI {
106
123
  const headerParameters = {};
107
124
  let urlPath = `/v1/sections/{section_id}`;
108
125
  urlPath = urlPath.replace(`{${"section_id"}}`, encodeURIComponent(String(requestParameters['sectionId'])));
109
- const response = yield this.request({
126
+ return {
110
127
  path: urlPath,
111
128
  method: 'GET',
112
129
  headers: headerParameters,
113
130
  query: queryParameters,
114
- }, initOverrides);
131
+ };
132
+ });
133
+ }
134
+ /**
135
+ * Get a section by its ID.
136
+ * Get Section Handler
137
+ */
138
+ getSectionRaw(requestParameters, initOverrides) {
139
+ return __awaiter(this, void 0, void 0, function* () {
140
+ const requestOptions = yield this.getSectionRequestOpts(requestParameters);
141
+ const response = yield this.request(requestOptions, initOverrides);
115
142
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SectionResponseFromJSON)(jsonValue));
116
143
  });
117
144
  }
@@ -126,10 +153,9 @@ class SectionsApi extends runtime.BaseAPI {
126
153
  });
127
154
  }
128
155
  /**
129
- * Update a section. Can update name, page_number, and/or reorder within siblings. To move: provide prev_sibling_path_id OR move_to_head (not both). Moving is only allowed within the same document version. Note: Section names can contain any characters. The corresponding path_part.name will be automatically normalized by a database trigger.
130
- * Update Section Handler
156
+ * Creates request options for updateSection without sending the request
131
157
  */
132
- updateSectionRaw(requestParameters, initOverrides) {
158
+ updateSectionRequestOpts(requestParameters) {
133
159
  return __awaiter(this, void 0, void 0, function* () {
134
160
  if (requestParameters['sectionId'] == null) {
135
161
  throw new runtime.RequiredError('sectionId', 'Required parameter "sectionId" was null or undefined when calling updateSection().');
@@ -142,13 +168,23 @@ class SectionsApi extends runtime.BaseAPI {
142
168
  headerParameters['Content-Type'] = 'application/json';
143
169
  let urlPath = `/v1/sections/{section_id}`;
144
170
  urlPath = urlPath.replace(`{${"section_id"}}`, encodeURIComponent(String(requestParameters['sectionId'])));
145
- const response = yield this.request({
171
+ return {
146
172
  path: urlPath,
147
173
  method: 'PATCH',
148
174
  headers: headerParameters,
149
175
  query: queryParameters,
150
176
  body: (0, index_1.UpdateSectionRequestToJSON)(requestParameters['updateSectionRequest']),
151
- }, initOverrides);
177
+ };
178
+ });
179
+ }
180
+ /**
181
+ * Update a section. Can update name, page_number, and/or reorder within siblings. To move: provide prev_sibling_path_id OR move_to_head (not both). Moving is only allowed within the same document version. Note: Section names can contain any characters. The corresponding path_part.name will be automatically normalized by a database trigger.
182
+ * Update Section Handler
183
+ */
184
+ updateSectionRaw(requestParameters, initOverrides) {
185
+ return __awaiter(this, void 0, void 0, function* () {
186
+ const requestOptions = yield this.updateSectionRequestOpts(requestParameters);
187
+ const response = yield this.request(requestOptions, initOverrides);
152
188
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SectionResponseFromJSON)(jsonValue));
153
189
  });
154
190
  }
@@ -40,6 +40,14 @@ export interface UpdateTagOperationRequest {
40
40
  * @interface TagsApiInterface
41
41
  */
42
42
  export interface TagsApiInterface {
43
+ /**
44
+ * Creates request options for createTag without sending the request
45
+ * @param {CreateTagRequest} createTagRequest
46
+ * @param {string} [ksUat]
47
+ * @throws {RequiredError}
48
+ * @memberof TagsApiInterface
49
+ */
50
+ createTagRequestOpts(requestParameters: CreateTagOperationRequest): Promise<runtime.RequestOpts>;
43
51
  /**
44
52
  * Create a new tag for the current tenant. Requires ADMIN or OWNER role.
45
53
  * @summary Create Tag Handler
@@ -55,6 +63,14 @@ export interface TagsApiInterface {
55
63
  * Create Tag Handler
56
64
  */
57
65
  createTag(requestParameters: CreateTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TagResponse>;
66
+ /**
67
+ * Creates request options for deleteTag without sending the request
68
+ * @param {string} tagId
69
+ * @param {string} [ksUat]
70
+ * @throws {RequiredError}
71
+ * @memberof TagsApiInterface
72
+ */
73
+ deleteTagRequestOpts(requestParameters: DeleteTagRequest): Promise<runtime.RequestOpts>;
58
74
  /**
59
75
  * Delete a tag and all its path_part associations. Requires ADMIN or OWNER role.
60
76
  * @summary Delete Tag Handler
@@ -70,6 +86,14 @@ export interface TagsApiInterface {
70
86
  * Delete Tag Handler
71
87
  */
72
88
  deleteTag(requestParameters: DeleteTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
89
+ /**
90
+ * Creates request options for getTag without sending the request
91
+ * @param {string} tagId
92
+ * @param {string} [ksUat]
93
+ * @throws {RequiredError}
94
+ * @memberof TagsApiInterface
95
+ */
96
+ getTagRequestOpts(requestParameters: GetTagRequest): Promise<runtime.RequestOpts>;
73
97
  /**
74
98
  * Get a tag by its ID.
75
99
  * @summary Get Tag Handler
@@ -85,6 +109,15 @@ export interface TagsApiInterface {
85
109
  * Get Tag Handler
86
110
  */
87
111
  getTag(requestParameters: GetTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TagResponse>;
112
+ /**
113
+ * Creates request options for listTags without sending the request
114
+ * @param {number} [limit] Number of items per page
115
+ * @param {number} [offset] Number of items to skip
116
+ * @param {string} [ksUat]
117
+ * @throws {RequiredError}
118
+ * @memberof TagsApiInterface
119
+ */
120
+ listTagsRequestOpts(requestParameters: ListTagsRequest): Promise<runtime.RequestOpts>;
88
121
  /**
89
122
  * List all tags for the current tenant.
90
123
  * @summary List Tags Handler
@@ -101,6 +134,15 @@ export interface TagsApiInterface {
101
134
  * List Tags Handler
102
135
  */
103
136
  listTags(requestParameters: ListTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseTagResponse>;
137
+ /**
138
+ * Creates request options for updateTag without sending the request
139
+ * @param {string} tagId
140
+ * @param {UpdateTagRequest} updateTagRequest
141
+ * @param {string} [ksUat]
142
+ * @throws {RequiredError}
143
+ * @memberof TagsApiInterface
144
+ */
145
+ updateTagRequestOpts(requestParameters: UpdateTagOperationRequest): Promise<runtime.RequestOpts>;
104
146
  /**
105
147
  * Update a tag (name, color, and/or description). Requires ADMIN or OWNER role.
106
148
  * @summary Update Tag Handler
@@ -122,6 +164,10 @@ export interface TagsApiInterface {
122
164
  *
123
165
  */
124
166
  export declare class TagsApi extends runtime.BaseAPI implements TagsApiInterface {
167
+ /**
168
+ * Creates request options for createTag without sending the request
169
+ */
170
+ createTagRequestOpts(requestParameters: CreateTagOperationRequest): Promise<runtime.RequestOpts>;
125
171
  /**
126
172
  * Create a new tag for the current tenant. Requires ADMIN or OWNER role.
127
173
  * Create Tag Handler
@@ -132,6 +178,10 @@ export declare class TagsApi extends runtime.BaseAPI implements TagsApiInterface
132
178
  * Create Tag Handler
133
179
  */
134
180
  createTag(requestParameters: CreateTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TagResponse>;
181
+ /**
182
+ * Creates request options for deleteTag without sending the request
183
+ */
184
+ deleteTagRequestOpts(requestParameters: DeleteTagRequest): Promise<runtime.RequestOpts>;
135
185
  /**
136
186
  * Delete a tag and all its path_part associations. Requires ADMIN or OWNER role.
137
187
  * Delete Tag Handler
@@ -142,6 +192,10 @@ export declare class TagsApi extends runtime.BaseAPI implements TagsApiInterface
142
192
  * Delete Tag Handler
143
193
  */
144
194
  deleteTag(requestParameters: DeleteTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
195
+ /**
196
+ * Creates request options for getTag without sending the request
197
+ */
198
+ getTagRequestOpts(requestParameters: GetTagRequest): Promise<runtime.RequestOpts>;
145
199
  /**
146
200
  * Get a tag by its ID.
147
201
  * Get Tag Handler
@@ -152,6 +206,10 @@ export declare class TagsApi extends runtime.BaseAPI implements TagsApiInterface
152
206
  * Get Tag Handler
153
207
  */
154
208
  getTag(requestParameters: GetTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TagResponse>;
209
+ /**
210
+ * Creates request options for listTags without sending the request
211
+ */
212
+ listTagsRequestOpts(requestParameters: ListTagsRequest): Promise<runtime.RequestOpts>;
155
213
  /**
156
214
  * List all tags for the current tenant.
157
215
  * List Tags Handler
@@ -162,6 +220,10 @@ export declare class TagsApi extends runtime.BaseAPI implements TagsApiInterface
162
220
  * List Tags Handler
163
221
  */
164
222
  listTags(requestParameters?: ListTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseTagResponse>;
223
+ /**
224
+ * Creates request options for updateTag without sending the request
225
+ */
226
+ updateTagRequestOpts(requestParameters: UpdateTagOperationRequest): Promise<runtime.RequestOpts>;
165
227
  /**
166
228
  * Update a tag (name, color, and/or description). Requires ADMIN or OWNER role.
167
229
  * Update Tag Handler
@@ -30,10 +30,9 @@ const index_1 = require("../models/index");
30
30
  */
31
31
  class TagsApi extends runtime.BaseAPI {
32
32
  /**
33
- * Create a new tag for the current tenant. Requires ADMIN or OWNER role.
34
- * Create Tag Handler
33
+ * Creates request options for createTag without sending the request
35
34
  */
36
- createTagRaw(requestParameters, initOverrides) {
35
+ createTagRequestOpts(requestParameters) {
37
36
  return __awaiter(this, void 0, void 0, function* () {
38
37
  if (requestParameters['createTagRequest'] == null) {
39
38
  throw new runtime.RequiredError('createTagRequest', 'Required parameter "createTagRequest" was null or undefined when calling createTag().');
@@ -42,13 +41,23 @@ class TagsApi extends runtime.BaseAPI {
42
41
  const headerParameters = {};
43
42
  headerParameters['Content-Type'] = 'application/json';
44
43
  let urlPath = `/v1/tags`;
45
- const response = yield this.request({
44
+ return {
46
45
  path: urlPath,
47
46
  method: 'POST',
48
47
  headers: headerParameters,
49
48
  query: queryParameters,
50
49
  body: (0, index_1.CreateTagRequestToJSON)(requestParameters['createTagRequest']),
51
- }, initOverrides);
50
+ };
51
+ });
52
+ }
53
+ /**
54
+ * Create a new tag for the current tenant. Requires ADMIN or OWNER role.
55
+ * Create Tag Handler
56
+ */
57
+ createTagRaw(requestParameters, initOverrides) {
58
+ return __awaiter(this, void 0, void 0, function* () {
59
+ const requestOptions = yield this.createTagRequestOpts(requestParameters);
60
+ const response = yield this.request(requestOptions, initOverrides);
52
61
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TagResponseFromJSON)(jsonValue));
53
62
  });
54
63
  }
@@ -63,10 +72,9 @@ class TagsApi extends runtime.BaseAPI {
63
72
  });
64
73
  }
65
74
  /**
66
- * Delete a tag and all its path_part associations. Requires ADMIN or OWNER role.
67
- * Delete Tag Handler
75
+ * Creates request options for deleteTag without sending the request
68
76
  */
69
- deleteTagRaw(requestParameters, initOverrides) {
77
+ deleteTagRequestOpts(requestParameters) {
70
78
  return __awaiter(this, void 0, void 0, function* () {
71
79
  if (requestParameters['tagId'] == null) {
72
80
  throw new runtime.RequiredError('tagId', 'Required parameter "tagId" was null or undefined when calling deleteTag().');
@@ -75,12 +83,22 @@ class TagsApi extends runtime.BaseAPI {
75
83
  const headerParameters = {};
76
84
  let urlPath = `/v1/tags/{tag_id}`;
77
85
  urlPath = urlPath.replace(`{${"tag_id"}}`, encodeURIComponent(String(requestParameters['tagId'])));
78
- const response = yield this.request({
86
+ return {
79
87
  path: urlPath,
80
88
  method: 'DELETE',
81
89
  headers: headerParameters,
82
90
  query: queryParameters,
83
- }, initOverrides);
91
+ };
92
+ });
93
+ }
94
+ /**
95
+ * Delete a tag and all its path_part associations. Requires ADMIN or OWNER role.
96
+ * Delete Tag Handler
97
+ */
98
+ deleteTagRaw(requestParameters, initOverrides) {
99
+ return __awaiter(this, void 0, void 0, function* () {
100
+ const requestOptions = yield this.deleteTagRequestOpts(requestParameters);
101
+ const response = yield this.request(requestOptions, initOverrides);
84
102
  return new runtime.VoidApiResponse(response);
85
103
  });
86
104
  }
@@ -94,10 +112,9 @@ class TagsApi extends runtime.BaseAPI {
94
112
  });
95
113
  }
96
114
  /**
97
- * Get a tag by its ID.
98
- * Get Tag Handler
115
+ * Creates request options for getTag without sending the request
99
116
  */
100
- getTagRaw(requestParameters, initOverrides) {
117
+ getTagRequestOpts(requestParameters) {
101
118
  return __awaiter(this, void 0, void 0, function* () {
102
119
  if (requestParameters['tagId'] == null) {
103
120
  throw new runtime.RequiredError('tagId', 'Required parameter "tagId" was null or undefined when calling getTag().');
@@ -106,12 +123,22 @@ class TagsApi extends runtime.BaseAPI {
106
123
  const headerParameters = {};
107
124
  let urlPath = `/v1/tags/{tag_id}`;
108
125
  urlPath = urlPath.replace(`{${"tag_id"}}`, encodeURIComponent(String(requestParameters['tagId'])));
109
- const response = yield this.request({
126
+ return {
110
127
  path: urlPath,
111
128
  method: 'GET',
112
129
  headers: headerParameters,
113
130
  query: queryParameters,
114
- }, initOverrides);
131
+ };
132
+ });
133
+ }
134
+ /**
135
+ * Get a tag by its ID.
136
+ * Get Tag Handler
137
+ */
138
+ getTagRaw(requestParameters, initOverrides) {
139
+ return __awaiter(this, void 0, void 0, function* () {
140
+ const requestOptions = yield this.getTagRequestOpts(requestParameters);
141
+ const response = yield this.request(requestOptions, initOverrides);
115
142
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TagResponseFromJSON)(jsonValue));
116
143
  });
117
144
  }
@@ -126,10 +153,9 @@ class TagsApi extends runtime.BaseAPI {
126
153
  });
127
154
  }
128
155
  /**
129
- * List all tags for the current tenant.
130
- * List Tags Handler
156
+ * Creates request options for listTags without sending the request
131
157
  */
132
- listTagsRaw(requestParameters, initOverrides) {
158
+ listTagsRequestOpts(requestParameters) {
133
159
  return __awaiter(this, void 0, void 0, function* () {
134
160
  const queryParameters = {};
135
161
  if (requestParameters['limit'] != null) {
@@ -140,12 +166,22 @@ class TagsApi extends runtime.BaseAPI {
140
166
  }
141
167
  const headerParameters = {};
142
168
  let urlPath = `/v1/tags`;
143
- const response = yield this.request({
169
+ return {
144
170
  path: urlPath,
145
171
  method: 'GET',
146
172
  headers: headerParameters,
147
173
  query: queryParameters,
148
- }, initOverrides);
174
+ };
175
+ });
176
+ }
177
+ /**
178
+ * List all tags for the current tenant.
179
+ * List Tags Handler
180
+ */
181
+ listTagsRaw(requestParameters, initOverrides) {
182
+ return __awaiter(this, void 0, void 0, function* () {
183
+ const requestOptions = yield this.listTagsRequestOpts(requestParameters);
184
+ const response = yield this.request(requestOptions, initOverrides);
149
185
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PaginatedResponseTagResponseFromJSON)(jsonValue));
150
186
  });
151
187
  }
@@ -160,10 +196,9 @@ class TagsApi extends runtime.BaseAPI {
160
196
  });
161
197
  }
162
198
  /**
163
- * Update a tag (name, color, and/or description). Requires ADMIN or OWNER role.
164
- * Update Tag Handler
199
+ * Creates request options for updateTag without sending the request
165
200
  */
166
- updateTagRaw(requestParameters, initOverrides) {
201
+ updateTagRequestOpts(requestParameters) {
167
202
  return __awaiter(this, void 0, void 0, function* () {
168
203
  if (requestParameters['tagId'] == null) {
169
204
  throw new runtime.RequiredError('tagId', 'Required parameter "tagId" was null or undefined when calling updateTag().');
@@ -176,13 +211,23 @@ class TagsApi extends runtime.BaseAPI {
176
211
  headerParameters['Content-Type'] = 'application/json';
177
212
  let urlPath = `/v1/tags/{tag_id}`;
178
213
  urlPath = urlPath.replace(`{${"tag_id"}}`, encodeURIComponent(String(requestParameters['tagId'])));
179
- const response = yield this.request({
214
+ return {
180
215
  path: urlPath,
181
216
  method: 'PATCH',
182
217
  headers: headerParameters,
183
218
  query: queryParameters,
184
219
  body: (0, index_1.UpdateTagRequestToJSON)(requestParameters['updateTagRequest']),
185
- }, initOverrides);
220
+ };
221
+ });
222
+ }
223
+ /**
224
+ * Update a tag (name, color, and/or description). Requires ADMIN or OWNER role.
225
+ * Update Tag Handler
226
+ */
227
+ updateTagRaw(requestParameters, initOverrides) {
228
+ return __awaiter(this, void 0, void 0, function* () {
229
+ const requestOptions = yield this.updateTagRequestOpts(requestParameters);
230
+ const response = yield this.request(requestOptions, initOverrides);
186
231
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TagResponseFromJSON)(jsonValue));
187
232
  });
188
233
  }