@knowledge-stack/ksapi 1.23.5 → 1.24.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 (265) hide show
  1. package/.openapi-generator/FILES +122 -4
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +274 -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 +78 -4
  9. package/dist/apis/ChunksApi.js +85 -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 +54 -0
  21. package/dist/apis/PathPartsApi.js +56 -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 +78 -4
  43. package/dist/esm/apis/ChunksApi.js +85 -31
  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 +54 -0
  55. package/dist/esm/apis/PathPartsApi.js +56 -20
  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/{DocumentContentPathPart.d.ts → ChunkContentItem.d.ts} +37 -40
  73. package/dist/esm/models/{DocumentContentPathPart.js → ChunkContentItem.js} +17 -16
  74. package/dist/esm/models/DocumentResponse.d.ts +13 -0
  75. package/dist/esm/models/DocumentResponse.js +8 -0
  76. package/dist/esm/models/FolderResponse.d.ts +13 -0
  77. package/dist/esm/models/FolderResponse.js +8 -0
  78. package/dist/esm/models/FolderResponseOrDocumentResponse.d.ts +27 -0
  79. package/dist/esm/models/FolderResponseOrDocumentResponse.js +47 -0
  80. package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.d.ts +66 -0
  81. package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.js +70 -0
  82. package/dist/esm/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.d.ts +66 -0
  83. package/dist/esm/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.js +70 -0
  84. package/dist/esm/models/SectionContentItem.d.ts +114 -0
  85. package/dist/esm/models/SectionContentItem.js +86 -0
  86. package/dist/esm/models/SectionContentItemOrChunkContentItem.d.ts +27 -0
  87. package/dist/esm/models/SectionContentItemOrChunkContentItem.js +47 -0
  88. package/dist/esm/models/index.d.ts +6 -4
  89. package/dist/esm/models/index.js +6 -4
  90. package/dist/models/{DocumentContentPathPart.d.ts → ChunkContentItem.d.ts} +37 -40
  91. package/dist/models/{DocumentContentPathPart.js → ChunkContentItem.js} +23 -22
  92. package/dist/models/DocumentResponse.d.ts +13 -0
  93. package/dist/models/DocumentResponse.js +9 -1
  94. package/dist/models/FolderResponse.d.ts +13 -0
  95. package/dist/models/FolderResponse.js +9 -1
  96. package/dist/models/FolderResponseOrDocumentResponse.d.ts +27 -0
  97. package/dist/models/FolderResponseOrDocumentResponse.js +53 -0
  98. package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.d.ts +66 -0
  99. package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.js +78 -0
  100. package/dist/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.d.ts +66 -0
  101. package/dist/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.js +78 -0
  102. package/dist/models/SectionContentItem.d.ts +114 -0
  103. package/dist/models/SectionContentItem.js +94 -0
  104. package/dist/models/SectionContentItemOrChunkContentItem.d.ts +27 -0
  105. package/dist/models/SectionContentItemOrChunkContentItem.js +53 -0
  106. package/dist/models/index.d.ts +6 -4
  107. package/dist/models/index.js +6 -4
  108. package/docs/AuthApi.md +707 -0
  109. package/docs/BulkTagRequest.md +35 -0
  110. package/docs/ChunkContentItem.md +59 -0
  111. package/docs/ChunkLineageResponse.md +41 -0
  112. package/docs/ChunkLineagesApi.md +230 -0
  113. package/docs/ChunkMetadataInput.md +37 -0
  114. package/docs/ChunkMetadataOutput.md +37 -0
  115. package/docs/ChunkResponse.md +63 -0
  116. package/docs/ChunkSearchRequest.md +47 -0
  117. package/docs/ChunkType.md +33 -0
  118. package/docs/ChunksApi.md +446 -0
  119. package/docs/ClearVersionContentsResponse.md +35 -0
  120. package/docs/CreateChunkLineageRequest.md +37 -0
  121. package/docs/CreateChunkRequest.md +43 -0
  122. package/docs/CreateDocumentRequest.md +41 -0
  123. package/docs/CreateFolderRequest.md +37 -0
  124. package/docs/CreatePasswordUserRequest.md +36 -0
  125. package/docs/CreatePermissionRequest.md +40 -0
  126. package/docs/CreateSectionRequest.md +41 -0
  127. package/docs/CreateTagRequest.md +39 -0
  128. package/docs/CreateTenantRequest.md +37 -0
  129. package/docs/CreateThreadMessageRequest.md +37 -0
  130. package/docs/CreateThreadRequest.md +37 -0
  131. package/docs/DefaultApi.md +128 -0
  132. package/docs/DocumentOrigin.md +33 -0
  133. package/docs/DocumentResponse.md +63 -0
  134. package/docs/DocumentType.md +33 -0
  135. package/docs/DocumentVersionMetadata.md +47 -0
  136. package/docs/DocumentVersionMetadataUpdate.md +47 -0
  137. package/docs/DocumentVersionResponse.md +57 -0
  138. package/docs/DocumentVersionsApi.md +530 -0
  139. package/docs/DocumentsApi.md +464 -0
  140. package/docs/EmailSentResponse.md +34 -0
  141. package/docs/EmailVerificationRequest.md +34 -0
  142. package/docs/EmbeddingModel.md +33 -0
  143. package/docs/FolderResponse.md +55 -0
  144. package/docs/FolderResponseOrDocumentResponse.md +62 -0
  145. package/docs/FoldersApi.md +473 -0
  146. package/docs/HTTPValidationError.md +34 -0
  147. package/docs/HealthCheckResponse.md +36 -0
  148. package/docs/IdpType.md +33 -0
  149. package/docs/IngestDocumentResponse.md +39 -0
  150. package/docs/InviteResponse.md +53 -0
  151. package/docs/InviteStatus.md +32 -0
  152. package/docs/InviteUserRequest.md +38 -0
  153. package/docs/InvitesApi.md +305 -0
  154. package/docs/LineageEdgeResponse.md +37 -0
  155. package/docs/LineageGraphResponse.md +37 -0
  156. package/docs/LineageNodeResponse.md +47 -0
  157. package/docs/LocationInner.md +32 -0
  158. package/docs/MessageRole.md +33 -0
  159. package/docs/OAuth2Config.md +41 -0
  160. package/docs/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.md +40 -0
  161. package/docs/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.md +40 -0
  162. package/docs/PaginatedResponseDocumentResponse.md +40 -0
  163. package/docs/PaginatedResponseDocumentVersionResponse.md +40 -0
  164. package/docs/PaginatedResponseFolderResponse.md +40 -0
  165. package/docs/PaginatedResponseInviteResponse.md +40 -0
  166. package/docs/PaginatedResponsePathPartResponse.md +40 -0
  167. package/docs/PaginatedResponsePermissionResponse.md +40 -0
  168. package/docs/PaginatedResponseTagResponse.md +40 -0
  169. package/docs/PaginatedResponseTenantResponse.md +40 -0
  170. package/docs/PaginatedResponseTenantUserResponse.md +40 -0
  171. package/docs/PaginatedResponseThreadMessageResponse.md +40 -0
  172. package/docs/PaginatedResponseThreadResponse.md +40 -0
  173. package/docs/PaginatedResponseWorkflowSummaryResponse.md +40 -0
  174. package/docs/PartType.md +33 -0
  175. package/docs/PasswordResetRequest.md +36 -0
  176. package/docs/PasswordResetWithTokenRequest.md +36 -0
  177. package/docs/PathOrder.md +33 -0
  178. package/docs/PathPartResponse.md +53 -0
  179. package/docs/PathPartTagsResponse.md +35 -0
  180. package/docs/PathPartsApi.md +314 -0
  181. package/docs/PermissionCapability.md +33 -0
  182. package/docs/PermissionResponse.md +48 -0
  183. package/docs/PipelineState.md +45 -0
  184. package/docs/PipelineStatus.md +33 -0
  185. package/docs/Polygon.md +41 -0
  186. package/docs/PolygonReference.md +37 -0
  187. package/docs/RootResponse.md +36 -0
  188. package/docs/ScoredChunkResponse.md +65 -0
  189. package/docs/SectionContentItem.md +55 -0
  190. package/docs/SectionContentItemOrChunkContentItem.md +60 -0
  191. package/docs/SectionResponse.md +57 -0
  192. package/docs/SectionsApi.md +299 -0
  193. package/docs/SignInRequest.md +38 -0
  194. package/docs/TagResponse.md +47 -0
  195. package/docs/TagsApi.md +374 -0
  196. package/docs/TenantResponse.md +39 -0
  197. package/docs/TenantUserEditRequest.md +35 -0
  198. package/docs/TenantUserResponse.md +43 -0
  199. package/docs/TenantUserRole.md +33 -0
  200. package/docs/TenantsApi.md +605 -0
  201. package/docs/ThreadMessageResponse.md +53 -0
  202. package/docs/ThreadMessagesApi.md +239 -0
  203. package/docs/ThreadResponse.md +49 -0
  204. package/docs/ThreadsApi.md +455 -0
  205. package/docs/UpdateChunkContentRequest.md +37 -0
  206. package/docs/UpdateChunkMetadataRequest.md +35 -0
  207. package/docs/UpdateDocumentRequest.md +39 -0
  208. package/docs/UpdateFolderRequest.md +37 -0
  209. package/docs/UpdatePermissionRequest.md +36 -0
  210. package/docs/UpdateSectionRequest.md +41 -0
  211. package/docs/UpdateTagRequest.md +39 -0
  212. package/docs/UpdateTenantRequest.md +37 -0
  213. package/docs/UpdateThreadRequest.md +37 -0
  214. package/docs/UpdateUserRequest.md +34 -0
  215. package/docs/UserPermissionsApi.md +314 -0
  216. package/docs/UserResponse.md +44 -0
  217. package/docs/UsersApi.md +149 -0
  218. package/docs/ValidationError.md +42 -0
  219. package/docs/WorkflowAction.md +33 -0
  220. package/docs/WorkflowActionResponse.md +39 -0
  221. package/docs/WorkflowDetailResponse.md +63 -0
  222. package/docs/WorkflowSummaryResponse.md +49 -0
  223. package/docs/WorkflowsApi.md +230 -0
  224. package/package.json +1 -1
  225. package/src/apis/AuthApi.ts +214 -47
  226. package/src/apis/ChunkLineagesApi.ts +68 -15
  227. package/src/apis/ChunksApi.ts +137 -33
  228. package/src/apis/DefaultApi.ts +40 -10
  229. package/src/apis/DocumentVersionsApi.ts +170 -45
  230. package/src/apis/DocumentsApi.ts +140 -30
  231. package/src/apis/FoldersApi.ts +153 -40
  232. package/src/apis/InvitesApi.ts +91 -20
  233. package/src/apis/PathPartsApi.ts +94 -20
  234. package/src/apis/SectionsApi.ts +89 -20
  235. package/src/apis/TagsApi.ts +112 -25
  236. package/src/apis/TenantsApi.ts +183 -40
  237. package/src/apis/ThreadMessagesApi.ts +71 -15
  238. package/src/apis/ThreadsApi.ts +137 -30
  239. package/src/apis/UserPermissionsApi.ts +94 -20
  240. package/src/apis/UsersApi.ts +43 -10
  241. package/src/apis/WorkflowsApi.ts +68 -15
  242. package/src/models/{DocumentContentPathPart.ts → ChunkContentItem.ts} +42 -53
  243. package/src/models/DocumentResponse.ts +16 -0
  244. package/src/models/FolderResponse.ts +18 -0
  245. package/src/models/FolderResponseOrDocumentResponse.ts +72 -0
  246. package/src/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.ts +130 -0
  247. package/src/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.ts +130 -0
  248. package/src/models/SectionContentItem.ts +181 -0
  249. package/src/models/SectionContentItemOrChunkContentItem.ts +72 -0
  250. package/src/models/index.ts +6 -4
  251. package/dist/esm/models/FolderDocumentResponse.d.ts +0 -157
  252. package/dist/esm/models/FolderDocumentResponse.js +0 -99
  253. package/dist/esm/models/PaginatedResponseDocumentContentPathPart.d.ts +0 -66
  254. package/dist/esm/models/PaginatedResponseDocumentContentPathPart.js +0 -70
  255. package/dist/esm/models/PaginatedResponseFolderDocumentResponse.d.ts +0 -66
  256. package/dist/esm/models/PaginatedResponseFolderDocumentResponse.js +0 -70
  257. package/dist/models/FolderDocumentResponse.d.ts +0 -157
  258. package/dist/models/FolderDocumentResponse.js +0 -107
  259. package/dist/models/PaginatedResponseDocumentContentPathPart.d.ts +0 -66
  260. package/dist/models/PaginatedResponseDocumentContentPathPart.js +0 -78
  261. package/dist/models/PaginatedResponseFolderDocumentResponse.d.ts +0 -66
  262. package/dist/models/PaginatedResponseFolderDocumentResponse.js +0 -78
  263. package/src/models/FolderDocumentResponse.ts +0 -267
  264. package/src/models/PaginatedResponseDocumentContentPathPart.ts +0 -130
  265. package/src/models/PaginatedResponseFolderDocumentResponse.ts +0 -130
@@ -0,0 +1,55 @@
1
+
2
+ # SectionContentItem
3
+
4
+ Response model for a section item in document version contents.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `partType` | string
11
+ `pathPartId` | string
12
+ `name` | string
13
+ `parentPathId` | string
14
+ `metadataObjId` | string
15
+ `depth` | number
16
+ `pageNumber` | number
17
+ `materializedPath` | string
18
+ `systemManaged` | boolean
19
+ `createdAt` | Date
20
+ `updatedAt` | Date
21
+
22
+ ## Example
23
+
24
+ ```typescript
25
+ import type { SectionContentItem } from '@knowledge-stack/ksapi'
26
+
27
+ // TODO: Update the object below with actual values
28
+ const example = {
29
+ "partType": null,
30
+ "pathPartId": null,
31
+ "name": null,
32
+ "parentPathId": null,
33
+ "metadataObjId": null,
34
+ "depth": null,
35
+ "pageNumber": null,
36
+ "materializedPath": null,
37
+ "systemManaged": null,
38
+ "createdAt": null,
39
+ "updatedAt": null,
40
+ } satisfies SectionContentItem
41
+
42
+ console.log(example)
43
+
44
+ // Convert the instance to a JSON string
45
+ const exampleJSON: string = JSON.stringify(example)
46
+ console.log(exampleJSON)
47
+
48
+ // Parse the JSON string back to an object
49
+ const exampleParsed = JSON.parse(exampleJSON) as SectionContentItem
50
+ console.log(exampleParsed)
51
+ ```
52
+
53
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
54
+
55
+
@@ -0,0 +1,60 @@
1
+
2
+ # SectionContentItemOrChunkContentItem
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `partType` | string
10
+ `pathPartId` | string
11
+ `name` | string
12
+ `parentPathId` | string
13
+ `metadataObjId` | string
14
+ `depth` | number
15
+ `pageNumber` | number
16
+ `materializedPath` | string
17
+ `systemManaged` | boolean
18
+ `createdAt` | Date
19
+ `updatedAt` | Date
20
+ `content` | string
21
+ `chunkType` | [ChunkType](ChunkType.md)
22
+ `chunkMetadata` | [ChunkMetadataOutput](ChunkMetadataOutput.md)
23
+
24
+ ## Example
25
+
26
+ ```typescript
27
+ import type { SectionContentItemOrChunkContentItem } from '@knowledge-stack/ksapi'
28
+
29
+ // TODO: Update the object below with actual values
30
+ const example = {
31
+ "partType": null,
32
+ "pathPartId": null,
33
+ "name": null,
34
+ "parentPathId": null,
35
+ "metadataObjId": null,
36
+ "depth": null,
37
+ "pageNumber": null,
38
+ "materializedPath": null,
39
+ "systemManaged": null,
40
+ "createdAt": null,
41
+ "updatedAt": null,
42
+ "content": null,
43
+ "chunkType": null,
44
+ "chunkMetadata": null,
45
+ } satisfies SectionContentItemOrChunkContentItem
46
+
47
+ console.log(example)
48
+
49
+ // Convert the instance to a JSON string
50
+ const exampleJSON: string = JSON.stringify(example)
51
+ console.log(exampleJSON)
52
+
53
+ // Parse the JSON string back to an object
54
+ const exampleParsed = JSON.parse(exampleJSON) as SectionContentItemOrChunkContentItem
55
+ console.log(exampleParsed)
56
+ ```
57
+
58
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
59
+
60
+
@@ -0,0 +1,57 @@
1
+
2
+ # SectionResponse
3
+
4
+ Section response model.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `id` | string
11
+ `pathPartId` | string
12
+ `name` | string
13
+ `pageNumber` | number
14
+ `parentPathId` | string
15
+ `prevSiblingPathId` | string
16
+ `nextSiblingPathId` | string
17
+ `materializedPath` | string
18
+ `systemManaged` | boolean
19
+ `tenantId` | string
20
+ `createdAt` | Date
21
+ `updatedAt` | Date
22
+
23
+ ## Example
24
+
25
+ ```typescript
26
+ import type { SectionResponse } from '@knowledge-stack/ksapi'
27
+
28
+ // TODO: Update the object below with actual values
29
+ const example = {
30
+ "id": null,
31
+ "pathPartId": null,
32
+ "name": null,
33
+ "pageNumber": null,
34
+ "parentPathId": null,
35
+ "prevSiblingPathId": null,
36
+ "nextSiblingPathId": null,
37
+ "materializedPath": null,
38
+ "systemManaged": null,
39
+ "tenantId": null,
40
+ "createdAt": null,
41
+ "updatedAt": null,
42
+ } satisfies SectionResponse
43
+
44
+ console.log(example)
45
+
46
+ // Convert the instance to a JSON string
47
+ const exampleJSON: string = JSON.stringify(example)
48
+ console.log(exampleJSON)
49
+
50
+ // Parse the JSON string back to an object
51
+ const exampleParsed = JSON.parse(exampleJSON) as SectionResponse
52
+ console.log(exampleParsed)
53
+ ```
54
+
55
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
56
+
57
+
@@ -0,0 +1,299 @@
1
+ # SectionsApi
2
+
3
+ All URIs are relative to *http://localhost:8000*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**createSection**](SectionsApi.md#createsectionoperation) | **POST** /v1/sections | Create Section Handler |
8
+ | [**deleteSection**](SectionsApi.md#deletesection) | **DELETE** /v1/sections/{section_id} | Delete Section Handler |
9
+ | [**getSection**](SectionsApi.md#getsection) | **GET** /v1/sections/{section_id} | Get Section Handler |
10
+ | [**updateSection**](SectionsApi.md#updatesectionoperation) | **PATCH** /v1/sections/{section_id} | Update Section Handler |
11
+
12
+
13
+
14
+ ## createSection
15
+
16
+ > SectionResponse createSection(createSectionRequest, ksUat)
17
+
18
+ Create Section Handler
19
+
20
+ 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.
21
+
22
+ ### Example
23
+
24
+ ```ts
25
+ import {
26
+ Configuration,
27
+ SectionsApi,
28
+ } from '@knowledge-stack/ksapi';
29
+ import type { CreateSectionOperationRequest } from '@knowledge-stack/ksapi';
30
+
31
+ async function example() {
32
+ console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
33
+ const api = new SectionsApi();
34
+
35
+ const body = {
36
+ // CreateSectionRequest
37
+ createSectionRequest: ...,
38
+ // string (optional)
39
+ ksUat: ksUat_example,
40
+ } satisfies CreateSectionOperationRequest;
41
+
42
+ try {
43
+ const data = await api.createSection(body);
44
+ console.log(data);
45
+ } catch (error) {
46
+ console.error(error);
47
+ }
48
+ }
49
+
50
+ // Run the test
51
+ example().catch(console.error);
52
+ ```
53
+
54
+ ### Parameters
55
+
56
+
57
+ | Name | Type | Description | Notes |
58
+ |------------- | ------------- | ------------- | -------------|
59
+ | **createSectionRequest** | [CreateSectionRequest](CreateSectionRequest.md) | | |
60
+ | **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
61
+
62
+ ### Return type
63
+
64
+ [**SectionResponse**](SectionResponse.md)
65
+
66
+ ### Authorization
67
+
68
+ No authorization required
69
+
70
+ ### HTTP request headers
71
+
72
+ - **Content-Type**: `application/json`
73
+ - **Accept**: `application/json`
74
+
75
+
76
+ ### HTTP response details
77
+ | Status code | Description | Response headers |
78
+ |-------------|-------------|------------------|
79
+ | **201** | Successful Response | - |
80
+ | **422** | Validation Error | - |
81
+
82
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
83
+
84
+
85
+ ## deleteSection
86
+
87
+ > deleteSection(sectionId, ksUat)
88
+
89
+ Delete Section Handler
90
+
91
+ Delete a section and all its children. WARNING: This cascades to all child sections due to parent_id ON DELETE CASCADE.
92
+
93
+ ### Example
94
+
95
+ ```ts
96
+ import {
97
+ Configuration,
98
+ SectionsApi,
99
+ } from '@knowledge-stack/ksapi';
100
+ import type { DeleteSectionRequest } from '@knowledge-stack/ksapi';
101
+
102
+ async function example() {
103
+ console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
104
+ const api = new SectionsApi();
105
+
106
+ const body = {
107
+ // string
108
+ sectionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
109
+ // string (optional)
110
+ ksUat: ksUat_example,
111
+ } satisfies DeleteSectionRequest;
112
+
113
+ try {
114
+ const data = await api.deleteSection(body);
115
+ console.log(data);
116
+ } catch (error) {
117
+ console.error(error);
118
+ }
119
+ }
120
+
121
+ // Run the test
122
+ example().catch(console.error);
123
+ ```
124
+
125
+ ### Parameters
126
+
127
+
128
+ | Name | Type | Description | Notes |
129
+ |------------- | ------------- | ------------- | -------------|
130
+ | **sectionId** | `string` | | [Defaults to `undefined`] |
131
+ | **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
132
+
133
+ ### Return type
134
+
135
+ `void` (Empty response body)
136
+
137
+ ### Authorization
138
+
139
+ No authorization required
140
+
141
+ ### HTTP request headers
142
+
143
+ - **Content-Type**: Not defined
144
+ - **Accept**: `application/json`
145
+
146
+
147
+ ### HTTP response details
148
+ | Status code | Description | Response headers |
149
+ |-------------|-------------|------------------|
150
+ | **204** | Successful Response | - |
151
+ | **422** | Validation Error | - |
152
+
153
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
154
+
155
+
156
+ ## getSection
157
+
158
+ > SectionResponse getSection(sectionId, ksUat)
159
+
160
+ Get Section Handler
161
+
162
+ Get a section by its ID.
163
+
164
+ ### Example
165
+
166
+ ```ts
167
+ import {
168
+ Configuration,
169
+ SectionsApi,
170
+ } from '@knowledge-stack/ksapi';
171
+ import type { GetSectionRequest } from '@knowledge-stack/ksapi';
172
+
173
+ async function example() {
174
+ console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
175
+ const api = new SectionsApi();
176
+
177
+ const body = {
178
+ // string
179
+ sectionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
180
+ // string (optional)
181
+ ksUat: ksUat_example,
182
+ } satisfies GetSectionRequest;
183
+
184
+ try {
185
+ const data = await api.getSection(body);
186
+ console.log(data);
187
+ } catch (error) {
188
+ console.error(error);
189
+ }
190
+ }
191
+
192
+ // Run the test
193
+ example().catch(console.error);
194
+ ```
195
+
196
+ ### Parameters
197
+
198
+
199
+ | Name | Type | Description | Notes |
200
+ |------------- | ------------- | ------------- | -------------|
201
+ | **sectionId** | `string` | | [Defaults to `undefined`] |
202
+ | **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
203
+
204
+ ### Return type
205
+
206
+ [**SectionResponse**](SectionResponse.md)
207
+
208
+ ### Authorization
209
+
210
+ No authorization required
211
+
212
+ ### HTTP request headers
213
+
214
+ - **Content-Type**: Not defined
215
+ - **Accept**: `application/json`
216
+
217
+
218
+ ### HTTP response details
219
+ | Status code | Description | Response headers |
220
+ |-------------|-------------|------------------|
221
+ | **200** | Successful Response | - |
222
+ | **422** | Validation Error | - |
223
+
224
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
225
+
226
+
227
+ ## updateSection
228
+
229
+ > SectionResponse updateSection(sectionId, updateSectionRequest, ksUat)
230
+
231
+ Update Section Handler
232
+
233
+ 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.
234
+
235
+ ### Example
236
+
237
+ ```ts
238
+ import {
239
+ Configuration,
240
+ SectionsApi,
241
+ } from '@knowledge-stack/ksapi';
242
+ import type { UpdateSectionOperationRequest } from '@knowledge-stack/ksapi';
243
+
244
+ async function example() {
245
+ console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
246
+ const api = new SectionsApi();
247
+
248
+ const body = {
249
+ // string
250
+ sectionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
251
+ // UpdateSectionRequest
252
+ updateSectionRequest: ...,
253
+ // string (optional)
254
+ ksUat: ksUat_example,
255
+ } satisfies UpdateSectionOperationRequest;
256
+
257
+ try {
258
+ const data = await api.updateSection(body);
259
+ console.log(data);
260
+ } catch (error) {
261
+ console.error(error);
262
+ }
263
+ }
264
+
265
+ // Run the test
266
+ example().catch(console.error);
267
+ ```
268
+
269
+ ### Parameters
270
+
271
+
272
+ | Name | Type | Description | Notes |
273
+ |------------- | ------------- | ------------- | -------------|
274
+ | **sectionId** | `string` | | [Defaults to `undefined`] |
275
+ | **updateSectionRequest** | [UpdateSectionRequest](UpdateSectionRequest.md) | | |
276
+ | **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
277
+
278
+ ### Return type
279
+
280
+ [**SectionResponse**](SectionResponse.md)
281
+
282
+ ### Authorization
283
+
284
+ No authorization required
285
+
286
+ ### HTTP request headers
287
+
288
+ - **Content-Type**: `application/json`
289
+ - **Accept**: `application/json`
290
+
291
+
292
+ ### HTTP response details
293
+ | Status code | Description | Response headers |
294
+ |-------------|-------------|------------------|
295
+ | **200** | Successful Response | - |
296
+ | **422** | Validation Error | - |
297
+
298
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
299
+
@@ -0,0 +1,38 @@
1
+
2
+ # SignInRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `email` | string
10
+ `password` | string
11
+ `tenantId` | string
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { SignInRequest } from '@knowledge-stack/ksapi'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "email": null,
21
+ "password": null,
22
+ "tenantId": null,
23
+ } satisfies SignInRequest
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as SignInRequest
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
@@ -0,0 +1,47 @@
1
+
2
+ # TagResponse
3
+
4
+ Tag response model.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `id` | string
11
+ `name` | string
12
+ `color` | string
13
+ `description` | string
14
+ `tenantId` | string
15
+ `createdAt` | Date
16
+ `updatedAt` | Date
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import type { TagResponse } from '@knowledge-stack/ksapi'
22
+
23
+ // TODO: Update the object below with actual values
24
+ const example = {
25
+ "id": null,
26
+ "name": null,
27
+ "color": null,
28
+ "description": null,
29
+ "tenantId": null,
30
+ "createdAt": null,
31
+ "updatedAt": null,
32
+ } satisfies TagResponse
33
+
34
+ console.log(example)
35
+
36
+ // Convert the instance to a JSON string
37
+ const exampleJSON: string = JSON.stringify(example)
38
+ console.log(exampleJSON)
39
+
40
+ // Parse the JSON string back to an object
41
+ const exampleParsed = JSON.parse(exampleJSON) as TagResponse
42
+ console.log(exampleParsed)
43
+ ```
44
+
45
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
46
+
47
+