@knowledge-stack/ksapi 1.72.4 → 1.77.1

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 (314) hide show
  1. package/.openapi-generator/FILES +36 -4
  2. package/README.md +33 -11
  3. package/dist/apis/AgentApi.d.ts +114 -0
  4. package/dist/apis/AgentApi.js +156 -0
  5. package/dist/apis/ChunksApi.d.ts +19 -16
  6. package/dist/apis/ChunksApi.js +9 -6
  7. package/dist/apis/DocumentsApi.d.ts +4 -4
  8. package/dist/apis/DocumentsApi.js +2 -2
  9. package/dist/apis/FoldersApi.d.ts +4 -4
  10. package/dist/apis/FoldersApi.js +2 -2
  11. package/dist/apis/InvitesApi.d.ts +54 -7
  12. package/dist/apis/InvitesApi.js +51 -2
  13. package/dist/apis/PublicApi.d.ts +59 -0
  14. package/dist/apis/PublicApi.js +103 -0
  15. package/dist/apis/SubscriptionsApi.d.ts +120 -0
  16. package/dist/apis/SubscriptionsApi.js +162 -0
  17. package/dist/apis/TenantsApi.d.ts +45 -1
  18. package/dist/apis/TenantsApi.js +44 -0
  19. package/dist/apis/ThreadsApi.d.ts +4 -4
  20. package/dist/apis/ThreadsApi.js +2 -2
  21. package/dist/apis/index.d.ts +3 -0
  22. package/dist/apis/index.js +3 -0
  23. package/dist/esm/apis/AgentApi.d.ts +114 -0
  24. package/dist/esm/apis/AgentApi.js +119 -0
  25. package/dist/esm/apis/ChunksApi.d.ts +19 -16
  26. package/dist/esm/apis/ChunksApi.js +9 -6
  27. package/dist/esm/apis/DocumentsApi.d.ts +4 -4
  28. package/dist/esm/apis/DocumentsApi.js +2 -2
  29. package/dist/esm/apis/FoldersApi.d.ts +4 -4
  30. package/dist/esm/apis/FoldersApi.js +2 -2
  31. package/dist/esm/apis/InvitesApi.d.ts +54 -7
  32. package/dist/esm/apis/InvitesApi.js +52 -3
  33. package/dist/esm/apis/PublicApi.d.ts +59 -0
  34. package/dist/esm/apis/PublicApi.js +66 -0
  35. package/dist/esm/apis/SubscriptionsApi.d.ts +120 -0
  36. package/dist/esm/apis/SubscriptionsApi.js +125 -0
  37. package/dist/esm/apis/TenantsApi.d.ts +45 -1
  38. package/dist/esm/apis/TenantsApi.js +45 -1
  39. package/dist/esm/apis/ThreadsApi.d.ts +4 -4
  40. package/dist/esm/apis/ThreadsApi.js +2 -2
  41. package/dist/esm/apis/index.d.ts +3 -0
  42. package/dist/esm/apis/index.js +3 -0
  43. package/dist/esm/models/AcceptInviteResponse.d.ts +6 -0
  44. package/dist/esm/models/AcceptInviteResponse.js +2 -0
  45. package/dist/esm/models/AskRequest.d.ts +47 -0
  46. package/dist/esm/models/AskRequest.js +44 -0
  47. package/dist/esm/models/AskResponse.d.ts +47 -0
  48. package/dist/esm/models/AskResponse.js +44 -0
  49. package/dist/esm/models/ChangeSubscriptionRequest.d.ts +53 -0
  50. package/dist/esm/models/ChangeSubscriptionRequest.js +53 -0
  51. package/dist/esm/models/CheckpointDetails.d.ts +96 -0
  52. package/dist/esm/models/CheckpointDetails.js +91 -0
  53. package/dist/esm/models/ChunkBulkResponse.d.ts +3 -3
  54. package/dist/esm/models/ChunkBulkResponse.js +3 -3
  55. package/dist/esm/models/ChunkContentItem.d.ts +3 -3
  56. package/dist/esm/models/ChunkContentItem.js +3 -3
  57. package/dist/esm/models/{ChunkMetadataInput.d.ts → ChunkMetadata.d.ts} +23 -23
  58. package/dist/esm/models/{ChunkMetadataInput.js → ChunkMetadata.js} +9 -9
  59. package/dist/esm/models/ChunkNeighborsResponse.d.ts +18 -0
  60. package/dist/esm/models/ChunkNeighborsResponse.js +10 -0
  61. package/dist/esm/models/ChunkResponse.d.ts +3 -3
  62. package/dist/esm/models/ChunkResponse.js +3 -3
  63. package/dist/esm/models/CreateChunkRequest.d.ts +3 -3
  64. package/dist/esm/models/CreateChunkRequest.js +3 -3
  65. package/dist/esm/models/DocumentResponse.d.ts +6 -0
  66. package/dist/esm/models/DocumentResponse.js +4 -0
  67. package/dist/esm/models/DocumentVersionMetadata.d.ts +24 -0
  68. package/dist/esm/models/DocumentVersionMetadata.js +8 -0
  69. package/dist/esm/models/DocumentVersionMetadataUpdate.d.ts +24 -0
  70. package/dist/esm/models/DocumentVersionMetadataUpdate.js +8 -0
  71. package/dist/esm/models/ExtractRequest.d.ts +61 -0
  72. package/dist/esm/models/ExtractRequest.js +48 -0
  73. package/dist/esm/models/ExtractResponse.d.ts +49 -0
  74. package/dist/esm/models/ExtractResponse.js +44 -0
  75. package/dist/esm/models/FolderResponse.d.ts +6 -0
  76. package/dist/esm/models/FolderResponse.js +4 -0
  77. package/dist/esm/models/InviteLinkSettingsRequest.d.ts +70 -0
  78. package/dist/esm/models/InviteLinkSettingsRequest.js +58 -0
  79. package/dist/esm/models/InviteLinkSettingsResponse.d.ts +67 -0
  80. package/dist/esm/models/InviteLinkSettingsResponse.js +57 -0
  81. package/dist/esm/models/InviteResponse.d.ts +6 -0
  82. package/dist/esm/models/InviteResponse.js +2 -0
  83. package/dist/esm/models/InviteUserRequest.d.ts +6 -0
  84. package/dist/esm/models/InviteUserRequest.js +8 -1
  85. package/dist/esm/models/LineageNodeResponse.d.ts +3 -3
  86. package/dist/esm/models/LineageNodeResponse.js +3 -3
  87. package/dist/esm/models/MeteredQuotaStatus.d.ts +72 -0
  88. package/dist/esm/models/MeteredQuotaStatus.js +61 -0
  89. package/dist/esm/models/PathPartAncestorItem.d.ts +6 -0
  90. package/dist/esm/models/PathPartAncestorItem.js +4 -0
  91. package/dist/esm/models/PathPartResponse.d.ts +6 -0
  92. package/dist/esm/models/PathPartResponse.js +4 -0
  93. package/dist/esm/models/PipelineStatus.d.ts +1 -0
  94. package/dist/esm/models/PipelineStatus.js +2 -1
  95. package/dist/esm/models/ScoredChunkResponse.d.ts +3 -3
  96. package/dist/esm/models/ScoredChunkResponse.js +3 -3
  97. package/dist/esm/models/SeatQuotaStatus.d.ts +55 -0
  98. package/dist/esm/models/SeatQuotaStatus.js +48 -0
  99. package/dist/esm/models/SubscriptionPlanResponse.d.ts +101 -0
  100. package/dist/esm/models/SubscriptionPlanResponse.js +76 -0
  101. package/dist/esm/models/TenantQuotaStateResponse.d.ts +55 -0
  102. package/dist/esm/models/TenantQuotaStateResponse.js +50 -0
  103. package/dist/esm/models/TenantResponse.d.ts +12 -0
  104. package/dist/esm/models/TenantResponse.js +14 -1
  105. package/dist/esm/models/TenantSettingsResponse.d.ts +7 -0
  106. package/dist/esm/models/TenantSettingsResponse.js +5 -0
  107. package/dist/esm/models/TenantSettingsUpdate.d.ts +7 -0
  108. package/dist/esm/models/TenantSettingsUpdate.js +3 -0
  109. package/dist/esm/models/ThreadMessageDetailsInput.d.ts +7 -0
  110. package/dist/esm/models/ThreadMessageDetailsInput.js +3 -0
  111. package/dist/esm/models/ThreadMessageDetailsOutput.d.ts +7 -0
  112. package/dist/esm/models/ThreadMessageDetailsOutput.js +3 -0
  113. package/dist/esm/models/UpdateChunkMetadataRequest.d.ts +3 -3
  114. package/dist/esm/models/UpdateChunkMetadataRequest.js +3 -3
  115. package/dist/esm/models/UpdateDocumentRequest.d.ts +7 -1
  116. package/dist/esm/models/UpdateDocumentRequest.js +2 -0
  117. package/dist/esm/models/UpdateFolderRequest.d.ts +7 -1
  118. package/dist/esm/models/UpdateFolderRequest.js +2 -0
  119. package/dist/esm/models/UpdateInviteRequest.d.ts +53 -0
  120. package/dist/esm/models/UpdateInviteRequest.js +49 -0
  121. package/dist/esm/models/UsageMetric.d.ts +26 -0
  122. package/dist/esm/models/UsageMetric.js +44 -0
  123. package/dist/esm/models/index.d.ts +15 -2
  124. package/dist/esm/models/index.js +15 -2
  125. package/dist/models/AcceptInviteResponse.d.ts +6 -0
  126. package/dist/models/AcceptInviteResponse.js +2 -0
  127. package/dist/models/AskRequest.d.ts +47 -0
  128. package/dist/models/AskRequest.js +52 -0
  129. package/dist/models/AskResponse.d.ts +47 -0
  130. package/dist/models/AskResponse.js +52 -0
  131. package/dist/models/ChangeSubscriptionRequest.d.ts +53 -0
  132. package/dist/models/ChangeSubscriptionRequest.js +61 -0
  133. package/dist/models/CheckpointDetails.d.ts +96 -0
  134. package/dist/models/CheckpointDetails.js +99 -0
  135. package/dist/models/ChunkBulkResponse.d.ts +3 -3
  136. package/dist/models/ChunkBulkResponse.js +3 -3
  137. package/dist/models/ChunkContentItem.d.ts +3 -3
  138. package/dist/models/ChunkContentItem.js +3 -3
  139. package/dist/models/{ChunkMetadataInput.d.ts → ChunkMetadata.d.ts} +23 -23
  140. package/dist/models/{ChunkMetadataInput.js → ChunkMetadata.js} +15 -15
  141. package/dist/models/ChunkNeighborsResponse.d.ts +18 -0
  142. package/dist/models/ChunkNeighborsResponse.js +10 -0
  143. package/dist/models/ChunkResponse.d.ts +3 -3
  144. package/dist/models/ChunkResponse.js +3 -3
  145. package/dist/models/CreateChunkRequest.d.ts +3 -3
  146. package/dist/models/CreateChunkRequest.js +3 -3
  147. package/dist/models/DocumentResponse.d.ts +6 -0
  148. package/dist/models/DocumentResponse.js +4 -0
  149. package/dist/models/DocumentVersionMetadata.d.ts +24 -0
  150. package/dist/models/DocumentVersionMetadata.js +8 -0
  151. package/dist/models/DocumentVersionMetadataUpdate.d.ts +24 -0
  152. package/dist/models/DocumentVersionMetadataUpdate.js +8 -0
  153. package/dist/models/ExtractRequest.d.ts +61 -0
  154. package/dist/models/ExtractRequest.js +56 -0
  155. package/dist/models/ExtractResponse.d.ts +49 -0
  156. package/dist/models/ExtractResponse.js +52 -0
  157. package/dist/models/FolderResponse.d.ts +6 -0
  158. package/dist/models/FolderResponse.js +4 -0
  159. package/dist/models/InviteLinkSettingsRequest.d.ts +70 -0
  160. package/dist/models/InviteLinkSettingsRequest.js +66 -0
  161. package/dist/models/InviteLinkSettingsResponse.d.ts +67 -0
  162. package/dist/models/InviteLinkSettingsResponse.js +65 -0
  163. package/dist/models/InviteResponse.d.ts +6 -0
  164. package/dist/models/InviteResponse.js +2 -0
  165. package/dist/models/InviteUserRequest.d.ts +6 -0
  166. package/dist/models/InviteUserRequest.js +8 -1
  167. package/dist/models/LineageNodeResponse.d.ts +3 -3
  168. package/dist/models/LineageNodeResponse.js +3 -3
  169. package/dist/models/MeteredQuotaStatus.d.ts +72 -0
  170. package/dist/models/MeteredQuotaStatus.js +69 -0
  171. package/dist/models/PathPartAncestorItem.d.ts +6 -0
  172. package/dist/models/PathPartAncestorItem.js +4 -0
  173. package/dist/models/PathPartResponse.d.ts +6 -0
  174. package/dist/models/PathPartResponse.js +4 -0
  175. package/dist/models/PipelineStatus.d.ts +1 -0
  176. package/dist/models/PipelineStatus.js +2 -1
  177. package/dist/models/ScoredChunkResponse.d.ts +3 -3
  178. package/dist/models/ScoredChunkResponse.js +3 -3
  179. package/dist/models/SeatQuotaStatus.d.ts +55 -0
  180. package/dist/models/SeatQuotaStatus.js +56 -0
  181. package/dist/models/SubscriptionPlanResponse.d.ts +101 -0
  182. package/dist/models/SubscriptionPlanResponse.js +84 -0
  183. package/dist/models/TenantQuotaStateResponse.d.ts +55 -0
  184. package/dist/models/TenantQuotaStateResponse.js +58 -0
  185. package/dist/models/TenantResponse.d.ts +12 -0
  186. package/dist/models/TenantResponse.js +14 -1
  187. package/dist/models/TenantSettingsResponse.d.ts +7 -0
  188. package/dist/models/TenantSettingsResponse.js +5 -0
  189. package/dist/models/TenantSettingsUpdate.d.ts +7 -0
  190. package/dist/models/TenantSettingsUpdate.js +3 -0
  191. package/dist/models/ThreadMessageDetailsInput.d.ts +7 -0
  192. package/dist/models/ThreadMessageDetailsInput.js +3 -0
  193. package/dist/models/ThreadMessageDetailsOutput.d.ts +7 -0
  194. package/dist/models/ThreadMessageDetailsOutput.js +3 -0
  195. package/dist/models/UpdateChunkMetadataRequest.d.ts +3 -3
  196. package/dist/models/UpdateChunkMetadataRequest.js +3 -3
  197. package/dist/models/UpdateDocumentRequest.d.ts +7 -1
  198. package/dist/models/UpdateDocumentRequest.js +2 -0
  199. package/dist/models/UpdateFolderRequest.d.ts +7 -1
  200. package/dist/models/UpdateFolderRequest.js +2 -0
  201. package/dist/models/UpdateInviteRequest.d.ts +53 -0
  202. package/dist/models/UpdateInviteRequest.js +57 -0
  203. package/dist/models/UsageMetric.d.ts +26 -0
  204. package/dist/models/UsageMetric.js +52 -0
  205. package/dist/models/index.d.ts +15 -2
  206. package/dist/models/index.js +15 -2
  207. package/docs/AcceptInviteResponse.md +2 -0
  208. package/docs/AgentApi.md +158 -0
  209. package/docs/AskRequest.md +35 -0
  210. package/docs/AskResponse.md +35 -0
  211. package/docs/ChangeSubscriptionRequest.md +37 -0
  212. package/docs/CheckpointDetails.md +49 -0
  213. package/docs/ChunkBulkResponse.md +1 -1
  214. package/docs/ChunkContentItem.md +1 -1
  215. package/docs/{ChunkMetadataInput.md → ChunkMetadata.md} +4 -4
  216. package/docs/ChunkNeighborsResponse.md +6 -0
  217. package/docs/ChunkResponse.md +1 -1
  218. package/docs/ChunksApi.md +13 -10
  219. package/docs/CreateChunkRequest.md +1 -1
  220. package/docs/DocumentResponse.md +2 -0
  221. package/docs/DocumentVersionMetadata.md +8 -0
  222. package/docs/DocumentVersionMetadataUpdate.md +8 -0
  223. package/docs/DocumentsApi.md +1 -1
  224. package/docs/ExtractRequest.md +39 -0
  225. package/docs/ExtractResponse.md +35 -0
  226. package/docs/FolderResponse.md +2 -0
  227. package/docs/FolderResponseOrDocumentResponse.md +2 -0
  228. package/docs/FoldersApi.md +1 -1
  229. package/docs/InviteLinkSettingsRequest.md +39 -0
  230. package/docs/InviteLinkSettingsResponse.md +39 -0
  231. package/docs/InviteResponse.md +2 -0
  232. package/docs/InviteUserRequest.md +2 -0
  233. package/docs/InvitesApi.md +81 -3
  234. package/docs/LineageNodeResponse.md +1 -1
  235. package/docs/MeteredQuotaStatus.md +43 -0
  236. package/docs/PathPartAncestorItem.md +2 -0
  237. package/docs/PathPartResponse.md +2 -0
  238. package/docs/PublicApi.md +68 -0
  239. package/docs/ScoredChunkResponse.md +1 -1
  240. package/docs/SeatQuotaStatus.md +37 -0
  241. package/docs/SectionContentItemOrChunkContentItem.md +1 -1
  242. package/docs/SubscriptionPlanResponse.md +51 -0
  243. package/docs/SubscriptionsApi.md +164 -0
  244. package/docs/TenantQuotaStateResponse.md +37 -0
  245. package/docs/TenantResponse.md +4 -0
  246. package/docs/TenantSettingsResponse.md +2 -0
  247. package/docs/TenantSettingsUpdate.md +2 -0
  248. package/docs/TenantsApi.md +75 -0
  249. package/docs/ThreadMessageDetailsInput.md +2 -0
  250. package/docs/ThreadMessageDetailsOutput.md +2 -0
  251. package/docs/ThreadsApi.md +1 -1
  252. package/docs/UpdateChunkMetadataRequest.md +1 -1
  253. package/docs/UpdateDocumentRequest.md +3 -1
  254. package/docs/UpdateFolderRequest.md +3 -1
  255. package/docs/UpdateInviteRequest.md +37 -0
  256. package/docs/UsageMetric.md +32 -0
  257. package/package.json +1 -1
  258. package/src/apis/AgentApi.ts +225 -0
  259. package/src/apis/ChunksApi.ts +27 -17
  260. package/src/apis/DocumentsApi.ts +4 -4
  261. package/src/apis/FoldersApi.ts +4 -4
  262. package/src/apis/InvitesApi.ts +107 -6
  263. package/src/apis/PublicApi.ts +100 -0
  264. package/src/apis/SubscriptionsApi.ts +238 -0
  265. package/src/apis/TenantsApi.ts +88 -0
  266. package/src/apis/ThreadsApi.ts +4 -4
  267. package/src/apis/index.ts +3 -0
  268. package/src/models/AcceptInviteResponse.ts +8 -0
  269. package/src/models/AskRequest.ts +83 -0
  270. package/src/models/AskResponse.ts +83 -0
  271. package/src/models/ChangeSubscriptionRequest.ts +96 -0
  272. package/src/models/CheckpointDetails.ts +169 -0
  273. package/src/models/ChunkBulkResponse.ts +11 -11
  274. package/src/models/ChunkContentItem.ts +10 -10
  275. package/src/models/{ChunkMetadataInput.ts → ChunkMetadata.ts} +25 -25
  276. package/src/models/ChunkNeighborsResponse.ts +26 -0
  277. package/src/models/ChunkResponse.ts +11 -11
  278. package/src/models/CreateChunkRequest.ts +10 -10
  279. package/src/models/DocumentResponse.ts +9 -0
  280. package/src/models/DocumentVersionMetadata.ts +32 -0
  281. package/src/models/DocumentVersionMetadataUpdate.ts +32 -0
  282. package/src/models/ExtractRequest.ts +99 -0
  283. package/src/models/ExtractResponse.ts +83 -0
  284. package/src/models/FolderResponse.ts +9 -0
  285. package/src/models/InviteLinkSettingsRequest.ts +116 -0
  286. package/src/models/InviteLinkSettingsResponse.ts +111 -0
  287. package/src/models/InviteResponse.ts +8 -0
  288. package/src/models/InviteUserRequest.ts +12 -0
  289. package/src/models/LineageNodeResponse.ts +10 -10
  290. package/src/models/MeteredQuotaStatus.ts +129 -0
  291. package/src/models/PathPartAncestorItem.ts +9 -0
  292. package/src/models/PathPartResponse.ts +9 -0
  293. package/src/models/PipelineStatus.ts +2 -1
  294. package/src/models/ScoredChunkResponse.ts +11 -11
  295. package/src/models/SeatQuotaStatus.ts +94 -0
  296. package/src/models/SubscriptionPlanResponse.ts +161 -0
  297. package/src/models/TenantQuotaStateResponse.ts +107 -0
  298. package/src/models/TenantResponse.ts +22 -0
  299. package/src/models/TenantSettingsResponse.ts +16 -0
  300. package/src/models/TenantSettingsUpdate.ts +15 -0
  301. package/src/models/ThreadMessageDetailsInput.ts +15 -0
  302. package/src/models/ThreadMessageDetailsOutput.ts +15 -0
  303. package/src/models/UpdateChunkMetadataRequest.ts +10 -10
  304. package/src/models/UpdateDocumentRequest.ts +9 -1
  305. package/src/models/UpdateFolderRequest.ts +9 -1
  306. package/src/models/UpdateInviteRequest.ts +94 -0
  307. package/src/models/UsageMetric.ts +54 -0
  308. package/src/models/index.ts +15 -2
  309. package/dist/esm/models/ChunkMetadataOutput.d.ts +0 -135
  310. package/dist/esm/models/ChunkMetadataOutput.js +0 -70
  311. package/dist/models/ChunkMetadataOutput.d.ts +0 -135
  312. package/dist/models/ChunkMetadataOutput.js +0 -78
  313. package/docs/ChunkMetadataOutput.md +0 -61
  314. package/src/models/ChunkMetadataOutput.ts +0 -203
@@ -0,0 +1,39 @@
1
+
2
+ # ExtractRequest
3
+
4
+ Request body for POST /v1/agent/extract.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `prompt` | string
11
+ `schemaPathPartId` | string
12
+ `outputSchema` | { [key: string]: any; }
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { ExtractRequest } from '@knowledge-stack/ksapi'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "prompt": null,
22
+ "schemaPathPartId": null,
23
+ "outputSchema": null,
24
+ } satisfies ExtractRequest
25
+
26
+ console.log(example)
27
+
28
+ // Convert the instance to a JSON string
29
+ const exampleJSON: string = JSON.stringify(example)
30
+ console.log(exampleJSON)
31
+
32
+ // Parse the JSON string back to an object
33
+ const exampleParsed = JSON.parse(exampleJSON) as ExtractRequest
34
+ console.log(exampleParsed)
35
+ ```
36
+
37
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
38
+
39
+
@@ -0,0 +1,35 @@
1
+
2
+ # ExtractResponse
3
+
4
+ Response body for POST /v1/agent/extract.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `structured` | { [key: string]: any; }
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { ExtractResponse } from '@knowledge-stack/ksapi'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "structured": null,
20
+ } satisfies ExtractResponse
21
+
22
+ console.log(example)
23
+
24
+ // Convert the instance to a JSON string
25
+ const exampleJSON: string = JSON.stringify(example)
26
+ console.log(exampleJSON)
27
+
28
+ // Parse the JSON string back to an object
29
+ const exampleParsed = JSON.parse(exampleJSON) as ExtractResponse
30
+ console.log(exampleParsed)
31
+ ```
32
+
33
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
34
+
35
+
@@ -14,6 +14,7 @@ Name | Type
14
14
  `parentPathPartId` | string
15
15
  `materializedPath` | string
16
16
  `systemManaged` | boolean
17
+ `excludeFromQdrant` | boolean
17
18
  `tenantId` | string
18
19
  `createdAt` | Date
19
20
  `updatedAt` | Date
@@ -33,6 +34,7 @@ const example = {
33
34
  "parentPathPartId": null,
34
35
  "materializedPath": null,
35
36
  "systemManaged": null,
37
+ "excludeFromQdrant": null,
36
38
  "tenantId": null,
37
39
  "createdAt": null,
38
40
  "updatedAt": null,
@@ -13,6 +13,7 @@ Name | Type
13
13
  `parentPathPartId` | string
14
14
  `materializedPath` | string
15
15
  `systemManaged` | boolean
16
+ `excludeFromQdrant` | boolean
16
17
  `tenantId` | string
17
18
  `createdAt` | Date
18
19
  `updatedAt` | Date
@@ -36,6 +37,7 @@ const example = {
36
37
  "parentPathPartId": null,
37
38
  "materializedPath": null,
38
39
  "systemManaged": null,
40
+ "excludeFromQdrant": null,
39
41
  "tenantId": null,
40
42
  "createdAt": null,
41
43
  "updatedAt": null,
@@ -590,7 +590,7 @@ No authorization required
590
590
 
591
591
  Update Folder Handler
592
592
 
593
- Update a folder (rename and/or move). To rename: provide `name` field. To move: provide `parent_path_part_id` field. Both can be done in a single request.
593
+ Update a folder (rename, move, and/or toggle Qdrant exclusion). To rename: provide `name` field. To move: provide `parent_path_part_id` field. To toggle Qdrant exclusion for this folder and its descendants: provide `exclude_from_qdrant` field. Any combination can be sent in a single request.
594
594
 
595
595
  ### Example
596
596
 
@@ -0,0 +1,39 @@
1
+
2
+ # InviteLinkSettingsRequest
3
+
4
+ Partial invite-link settings update. ``role`` is constrained to USER/ADMIN by the shared ``InviteLinkRole`` Literal — Pydantic raises a 422 for any other value.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `enabled` | boolean
11
+ `role` | string
12
+ `groups` | Array<string>
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { InviteLinkSettingsRequest } from '@knowledge-stack/ksapi'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "enabled": null,
22
+ "role": null,
23
+ "groups": null,
24
+ } satisfies InviteLinkSettingsRequest
25
+
26
+ console.log(example)
27
+
28
+ // Convert the instance to a JSON string
29
+ const exampleJSON: string = JSON.stringify(example)
30
+ console.log(exampleJSON)
31
+
32
+ // Parse the JSON string back to an object
33
+ const exampleParsed = JSON.parse(exampleJSON) as InviteLinkSettingsRequest
34
+ console.log(exampleParsed)
35
+ ```
36
+
37
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
38
+
39
+
@@ -0,0 +1,39 @@
1
+
2
+ # InviteLinkSettingsResponse
3
+
4
+ Tenant-wide invite-link settings (exposed via API).
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `enabled` | boolean
11
+ `role` | string
12
+ `groups` | Array<string>
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { InviteLinkSettingsResponse } from '@knowledge-stack/ksapi'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "enabled": null,
22
+ "role": null,
23
+ "groups": null,
24
+ } satisfies InviteLinkSettingsResponse
25
+
26
+ console.log(example)
27
+
28
+ // Convert the instance to a JSON string
29
+ const exampleJSON: string = JSON.stringify(example)
30
+ console.log(exampleJSON)
31
+
32
+ // Parse the JSON string back to an object
33
+ const exampleParsed = JSON.parse(exampleJSON) as InviteLinkSettingsResponse
34
+ console.log(exampleParsed)
35
+ ```
36
+
37
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
38
+
39
+
@@ -11,6 +11,7 @@ Name | Type
11
11
  `tenantId` | string
12
12
  `email` | string
13
13
  `role` | [TenantUserRole](TenantUserRole.md)
14
+ `groups` | Array<string>
14
15
  `expiresAt` | Date
15
16
  `acceptedAt` | Date
16
17
  `createdAt` | Date
@@ -29,6 +30,7 @@ const example = {
29
30
  "tenantId": null,
30
31
  "email": null,
31
32
  "role": null,
33
+ "groups": null,
32
34
  "expiresAt": null,
33
35
  "acceptedAt": null,
34
36
  "createdAt": null,
@@ -9,6 +9,7 @@ Name | Type
9
9
  `tenantId` | string
10
10
  `email` | string
11
11
  `role` | [TenantUserRole](TenantUserRole.md)
12
+ `groups` | Array<string>
12
13
 
13
14
  ## Example
14
15
 
@@ -20,6 +21,7 @@ const example = {
20
21
  "tenantId": null,
21
22
  "email": null,
22
23
  "role": null,
24
+ "groups": null,
23
25
  } satisfies InviteUserRequest
24
26
 
25
27
  console.log(example)
@@ -8,6 +8,7 @@ All URIs are relative to *http://localhost:8000*
8
8
  | [**createInvite**](InvitesApi.md#createinvite) | **POST** /v1/invites | Create Invite |
9
9
  | [**deleteInvite**](InvitesApi.md#deleteinvite) | **DELETE** /v1/invites/{invite_id} | Delete Invite |
10
10
  | [**listInvites**](InvitesApi.md#listinvites) | **GET** /v1/invites | List Invites Handler |
11
+ | [**updateInvite**](InvitesApi.md#updateinviteoperation) | **PATCH** /v1/invites/{invite_id} | Update Invite Handler |
11
12
 
12
13
 
13
14
 
@@ -17,7 +18,7 @@ All URIs are relative to *http://localhost:8000*
17
18
 
18
19
  Accept Invite
19
20
 
20
- Update an invite to accepted status and create tenant user.
21
+ Accept an invite OR a tenant invite-link. The path parameter ``invite_id`` may be either: * a Tenant ID (when an admin has enabled ``invite_link`` on the tenant), OR * an Invite ID (the traditional per-email invite flow). Tenant lookup is tried first. If the row is found, the request is treated as an invite-link request — both 400 paths below have *distinct* messages so the frontend can branch on copy: * \"does not have invite link enabled\" → admin hasn\'t turned it on * \"does not support inviting users\" → tenant kill-switch ``system_metadata.can_invite`` is honored on this path too — it\'s a hard kill switch for self-serve onboarding. Only when no tenant matches do we look up an Invite row.
21
22
 
22
23
  ### Example
23
24
 
@@ -33,7 +34,7 @@ async function example() {
33
34
  const api = new InvitesApi();
34
35
 
35
36
  const body = {
36
- // string
37
+ // string | Either an Invite ID (traditional per-email invite) OR a Tenant ID (when the tenant has ``invite_link.enabled``). Tenant lookup is tried first.
37
38
  inviteId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
38
39
  // string (optional)
39
40
  authorization: authorization_example,
@@ -58,7 +59,7 @@ example().catch(console.error);
58
59
 
59
60
  | Name | Type | Description | Notes |
60
61
  |------------- | ------------- | ------------- | -------------|
61
- | **inviteId** | `string` | | [Defaults to `undefined`] |
62
+ | **inviteId** | `string` | Either an Invite ID (traditional per-email invite) OR a Tenant ID (when the tenant has ``invite_link.enabled``). Tenant lookup is tried first. | [Defaults to `undefined`] |
62
63
  | **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
63
64
  | **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
64
65
 
@@ -315,3 +316,80 @@ No authorization required
315
316
 
316
317
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
317
318
 
319
+
320
+ ## updateInvite
321
+
322
+ > InviteResponse updateInvite(inviteId, updateInviteRequest, authorization, ksUat)
323
+
324
+ Update Invite Handler
325
+
326
+ Update an invite\'s expiry or groups (admin/owner only). The invite must belong to the caller\'s current tenant. Any provided groups are validated to belong to the same tenant.
327
+
328
+ ### Example
329
+
330
+ ```ts
331
+ import {
332
+ Configuration,
333
+ InvitesApi,
334
+ } from '@knowledge-stack/ksapi';
335
+ import type { UpdateInviteOperationRequest } from '@knowledge-stack/ksapi';
336
+
337
+ async function example() {
338
+ console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
339
+ const api = new InvitesApi();
340
+
341
+ const body = {
342
+ // string
343
+ inviteId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
344
+ // UpdateInviteRequest
345
+ updateInviteRequest: ...,
346
+ // string (optional)
347
+ authorization: authorization_example,
348
+ // string (optional)
349
+ ksUat: ksUat_example,
350
+ } satisfies UpdateInviteOperationRequest;
351
+
352
+ try {
353
+ const data = await api.updateInvite(body);
354
+ console.log(data);
355
+ } catch (error) {
356
+ console.error(error);
357
+ }
358
+ }
359
+
360
+ // Run the test
361
+ example().catch(console.error);
362
+ ```
363
+
364
+ ### Parameters
365
+
366
+
367
+ | Name | Type | Description | Notes |
368
+ |------------- | ------------- | ------------- | -------------|
369
+ | **inviteId** | `string` | | [Defaults to `undefined`] |
370
+ | **updateInviteRequest** | [UpdateInviteRequest](UpdateInviteRequest.md) | | |
371
+ | **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
372
+ | **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
373
+
374
+ ### Return type
375
+
376
+ [**InviteResponse**](InviteResponse.md)
377
+
378
+ ### Authorization
379
+
380
+ No authorization required
381
+
382
+ ### HTTP request headers
383
+
384
+ - **Content-Type**: `application/json`
385
+ - **Accept**: `application/json`
386
+
387
+
388
+ ### HTTP response details
389
+ | Status code | Description | Response headers |
390
+ |-------------|-------------|------------------|
391
+ | **200** | Successful Response | - |
392
+ | **422** | Validation Error | - |
393
+
394
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
395
+
@@ -10,7 +10,7 @@ Name | Type
10
10
  `id` | string
11
11
  `content` | string
12
12
  `chunkType` | [ChunkType](ChunkType.md)
13
- `chunkMetadata` | [ChunkMetadataOutput](ChunkMetadataOutput.md)
13
+ `chunkMetadata` | [ChunkMetadata](ChunkMetadata.md)
14
14
  `tenantId` | string
15
15
  `createdAt` | Date
16
16
  `updatedAt` | Date
@@ -0,0 +1,43 @@
1
+
2
+ # MeteredQuotaStatus
3
+
4
+ Per-metric usage snapshot for the active period.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `metric` | [UsageMetric](UsageMetric.md)
11
+ `used` | number
12
+ `limit` | number
13
+ `periodStart` | Date
14
+ `periodEnd` | Date
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import type { MeteredQuotaStatus } from '@knowledge-stack/ksapi'
20
+
21
+ // TODO: Update the object below with actual values
22
+ const example = {
23
+ "metric": null,
24
+ "used": null,
25
+ "limit": null,
26
+ "periodStart": null,
27
+ "periodEnd": null,
28
+ } satisfies MeteredQuotaStatus
29
+
30
+ console.log(example)
31
+
32
+ // Convert the instance to a JSON string
33
+ const exampleJSON: string = JSON.stringify(example)
34
+ console.log(exampleJSON)
35
+
36
+ // Parse the JSON string back to an object
37
+ const exampleParsed = JSON.parse(exampleJSON) as MeteredQuotaStatus
38
+ console.log(exampleParsed)
39
+ ```
40
+
41
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
42
+
43
+
@@ -14,6 +14,7 @@ Name | Type
14
14
  `metadataObjId` | string
15
15
  `materializedPath` | string
16
16
  `systemManaged` | boolean
17
+ `excludeFromQdrant` | boolean
17
18
  `createdAt` | Date
18
19
  `updatedAt` | Date
19
20
 
@@ -31,6 +32,7 @@ const example = {
31
32
  "metadataObjId": null,
32
33
  "materializedPath": null,
33
34
  "systemManaged": null,
35
+ "excludeFromQdrant": null,
34
36
  "createdAt": null,
35
37
  "updatedAt": null,
36
38
  } satisfies PathPartAncestorItem
@@ -14,6 +14,7 @@ Name | Type
14
14
  `metadataObjId` | string
15
15
  `materializedPath` | string
16
16
  `systemManaged` | boolean
17
+ `excludeFromQdrant` | boolean
17
18
  `tags` | [Array<TagResponse>](TagResponse.md)
18
19
  `canRead` | boolean
19
20
  `canWrite` | boolean
@@ -34,6 +35,7 @@ const example = {
34
35
  "metadataObjId": null,
35
36
  "materializedPath": null,
36
37
  "systemManaged": null,
38
+ "excludeFromQdrant": null,
37
39
  "tags": null,
38
40
  "canRead": null,
39
41
  "canWrite": null,
@@ -0,0 +1,68 @@
1
+ # PublicApi
2
+
3
+ All URIs are relative to *http://localhost:8000*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**listPublicSubscriptions**](PublicApi.md#listpublicsubscriptions) | **GET** /public/subscriptions | List Public Subscriptions Handler |
8
+
9
+
10
+
11
+ ## listPublicSubscriptions
12
+
13
+ > Array<SubscriptionPlanResponse> listPublicSubscriptions()
14
+
15
+ List Public Subscriptions Handler
16
+
17
+ List publicly-visible subscription plans (no authentication required). Filters to ``subscription_plan.public = true`` — custom enterprise tiers (created with ``public=False`` via ``POST /system/subscriptions``) are excluded. Tenants on a private plan can still read it via ``GET /v1/tenants/{tenant_id}/subscriptions``.
18
+
19
+ ### Example
20
+
21
+ ```ts
22
+ import {
23
+ Configuration,
24
+ PublicApi,
25
+ } from '@knowledge-stack/ksapi';
26
+ import type { ListPublicSubscriptionsRequest } from '@knowledge-stack/ksapi';
27
+
28
+ async function example() {
29
+ console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
30
+ const api = new PublicApi();
31
+
32
+ try {
33
+ const data = await api.listPublicSubscriptions();
34
+ console.log(data);
35
+ } catch (error) {
36
+ console.error(error);
37
+ }
38
+ }
39
+
40
+ // Run the test
41
+ example().catch(console.error);
42
+ ```
43
+
44
+ ### Parameters
45
+
46
+ This endpoint does not need any parameter.
47
+
48
+ ### Return type
49
+
50
+ [**Array<SubscriptionPlanResponse>**](SubscriptionPlanResponse.md)
51
+
52
+ ### Authorization
53
+
54
+ No authorization required
55
+
56
+ ### HTTP request headers
57
+
58
+ - **Content-Type**: Not defined
59
+ - **Accept**: `application/json`
60
+
61
+
62
+ ### HTTP response details
63
+ | Status code | Description | Response headers |
64
+ |-------------|-------------|------------------|
65
+ | **200** | Successful Response | - |
66
+
67
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
68
+
@@ -12,7 +12,7 @@ Name | Type
12
12
  `contentId` | string
13
13
  `content` | string
14
14
  `chunkType` | [ChunkType](ChunkType.md)
15
- `chunkMetadata` | [ChunkMetadataOutput](ChunkMetadataOutput.md)
15
+ `chunkMetadata` | [ChunkMetadata](ChunkMetadata.md)
16
16
  `numTokens` | number
17
17
  `parentPathId` | string
18
18
  `prevSiblingPathId` | string
@@ -0,0 +1,37 @@
1
+
2
+ # SeatQuotaStatus
3
+
4
+ Live seat count for the tenant. ``used`` is the number of active (non-deactivated) ``TenantUser`` rows.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `used` | number
11
+ `limit` | number
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { SeatQuotaStatus } from '@knowledge-stack/ksapi'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "used": null,
21
+ "limit": null,
22
+ } satisfies SeatQuotaStatus
23
+
24
+ console.log(example)
25
+
26
+ // Convert the instance to a JSON string
27
+ const exampleJSON: string = JSON.stringify(example)
28
+ console.log(exampleJSON)
29
+
30
+ // Parse the JSON string back to an object
31
+ const exampleParsed = JSON.parse(exampleJSON) as SeatQuotaStatus
32
+ console.log(exampleParsed)
33
+ ```
34
+
35
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
36
+
37
+
@@ -19,7 +19,7 @@ Name | Type
19
19
  `updatedAt` | Date
20
20
  `content` | string
21
21
  `chunkType` | [ChunkType](ChunkType.md)
22
- `chunkMetadata` | [ChunkMetadataOutput](ChunkMetadataOutput.md)
22
+ `chunkMetadata` | [ChunkMetadata](ChunkMetadata.md)
23
23
 
24
24
  ## Example
25
25
 
@@ -0,0 +1,51 @@
1
+
2
+ # SubscriptionPlanResponse
3
+
4
+ Public-facing plan description. Surfaced via ``GET /public/subscriptions`` (unauth) so the FE can render the upgrade page even before sign-in. Field names line up 1:1 with ``SubscriptionPlan`` ORM attributes; callers build the response via ``SubscriptionPlanResponse.model_validate(plan)`` (``BaseResponse`` enables ``from_attributes=True``).
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `id` | string
11
+ `name` | string
12
+ `ingestedPages` | number
13
+ `messages` | number
14
+ `searches` | number
15
+ `maxSeats` | number
16
+ `_public` | boolean
17
+ `createdAt` | Date
18
+ `updatedAt` | Date
19
+
20
+ ## Example
21
+
22
+ ```typescript
23
+ import type { SubscriptionPlanResponse } from '@knowledge-stack/ksapi'
24
+
25
+ // TODO: Update the object below with actual values
26
+ const example = {
27
+ "id": null,
28
+ "name": null,
29
+ "ingestedPages": null,
30
+ "messages": null,
31
+ "searches": null,
32
+ "maxSeats": null,
33
+ "_public": null,
34
+ "createdAt": null,
35
+ "updatedAt": null,
36
+ } satisfies SubscriptionPlanResponse
37
+
38
+ console.log(example)
39
+
40
+ // Convert the instance to a JSON string
41
+ const exampleJSON: string = JSON.stringify(example)
42
+ console.log(exampleJSON)
43
+
44
+ // Parse the JSON string back to an object
45
+ const exampleParsed = JSON.parse(exampleJSON) as SubscriptionPlanResponse
46
+ console.log(exampleParsed)
47
+ ```
48
+
49
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
50
+
51
+