@knowledge-stack/ksapi 1.83.0 → 1.85.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 (146) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/README.md +21 -2
  3. package/dist/apis/DocumentCheckoutApi.d.ts +158 -0
  4. package/dist/apis/DocumentCheckoutApi.js +197 -0
  5. package/dist/apis/PathPartsApi.d.ts +110 -1
  6. package/dist/apis/PathPartsApi.js +111 -0
  7. package/dist/apis/WorkflowMemoryApi.d.ts +249 -0
  8. package/dist/apis/WorkflowMemoryApi.js +299 -0
  9. package/dist/apis/index.d.ts +2 -0
  10. package/dist/apis/index.js +2 -0
  11. package/dist/esm/apis/DocumentCheckoutApi.d.ts +158 -0
  12. package/dist/esm/apis/DocumentCheckoutApi.js +160 -0
  13. package/dist/esm/apis/PathPartsApi.d.ts +110 -1
  14. package/dist/esm/apis/PathPartsApi.js +112 -1
  15. package/dist/esm/apis/WorkflowMemoryApi.d.ts +249 -0
  16. package/dist/esm/apis/WorkflowMemoryApi.js +262 -0
  17. package/dist/esm/apis/index.d.ts +2 -0
  18. package/dist/esm/apis/index.js +2 -0
  19. package/dist/esm/models/AppendEventRequest.d.ts +62 -0
  20. package/dist/esm/models/AppendEventRequest.js +51 -0
  21. package/dist/esm/models/AppendMemoryChunkRequest.d.ts +54 -0
  22. package/dist/esm/models/AppendMemoryChunkRequest.js +52 -0
  23. package/dist/esm/models/ChunkBulkResponse.d.ts +4 -4
  24. package/dist/esm/models/ChunkContentItem.d.ts +2 -2
  25. package/dist/esm/models/ChunkResponse.d.ts +4 -4
  26. package/dist/esm/models/CreateThreadMessageRequest.d.ts +2 -2
  27. package/dist/esm/models/CreateWorkflowDefinitionRequest.d.ts +1 -1
  28. package/dist/esm/models/DocumentCheckoutResponse.d.ts +65 -0
  29. package/dist/esm/models/DocumentCheckoutResponse.js +56 -0
  30. package/dist/esm/models/DocumentResponse.d.ts +7 -0
  31. package/dist/esm/models/DocumentResponse.js +3 -0
  32. package/dist/esm/models/DocumentVersionMetadata.d.ts +4 -4
  33. package/dist/esm/models/DocumentVersionMetadataUpdate.d.ts +2 -2
  34. package/dist/esm/models/EditMemoryChunkRequest.d.ts +47 -0
  35. package/dist/esm/models/EditMemoryChunkRequest.js +49 -0
  36. package/dist/esm/models/EventResponse.d.ts +83 -0
  37. package/dist/esm/models/EventResponse.js +64 -0
  38. package/dist/esm/models/ListMemoryChunksResponse.d.ts +48 -0
  39. package/dist/esm/models/ListMemoryChunksResponse.js +45 -0
  40. package/dist/esm/models/MemoryChunkResponse.d.ts +60 -0
  41. package/dist/esm/models/MemoryChunkResponse.js +53 -0
  42. package/dist/esm/models/MemoryKind.d.ts +29 -0
  43. package/dist/esm/models/MemoryKind.js +47 -0
  44. package/dist/esm/models/PaginatedResponseEventResponse.d.ts +66 -0
  45. package/dist/esm/models/PaginatedResponseEventResponse.js +70 -0
  46. package/dist/esm/models/ScoredChunkResponse.d.ts +4 -4
  47. package/dist/esm/models/SectionSystemMetadata.d.ts +1 -1
  48. package/dist/esm/models/TenantSettingsUpdate.d.ts +2 -2
  49. package/dist/esm/models/ThreadMessageDetailsInput.d.ts +2 -2
  50. package/dist/esm/models/ThreadMessageDetailsOutput.d.ts +2 -2
  51. package/dist/esm/models/ThreadMessageResponse.d.ts +2 -2
  52. package/dist/esm/models/UpdateChunkMetadataRequest.d.ts +2 -2
  53. package/dist/esm/models/UpdateTenantRequest.d.ts +4 -4
  54. package/dist/esm/models/UpdateWorkflowDefinitionRequest.d.ts +1 -1
  55. package/dist/esm/models/WorkflowDefinitionResponse.d.ts +1 -1
  56. package/dist/esm/models/WorkflowRunSnapshot.d.ts +1 -1
  57. package/dist/esm/models/index.d.ts +9 -0
  58. package/dist/esm/models/index.js +9 -0
  59. package/dist/models/AppendEventRequest.d.ts +62 -0
  60. package/dist/models/AppendEventRequest.js +59 -0
  61. package/dist/models/AppendMemoryChunkRequest.d.ts +54 -0
  62. package/dist/models/AppendMemoryChunkRequest.js +60 -0
  63. package/dist/models/ChunkBulkResponse.d.ts +4 -4
  64. package/dist/models/ChunkContentItem.d.ts +2 -2
  65. package/dist/models/ChunkResponse.d.ts +4 -4
  66. package/dist/models/CreateThreadMessageRequest.d.ts +2 -2
  67. package/dist/models/CreateWorkflowDefinitionRequest.d.ts +1 -1
  68. package/dist/models/DocumentCheckoutResponse.d.ts +65 -0
  69. package/dist/models/DocumentCheckoutResponse.js +64 -0
  70. package/dist/models/DocumentResponse.d.ts +7 -0
  71. package/dist/models/DocumentResponse.js +3 -0
  72. package/dist/models/DocumentVersionMetadata.d.ts +4 -4
  73. package/dist/models/DocumentVersionMetadataUpdate.d.ts +2 -2
  74. package/dist/models/EditMemoryChunkRequest.d.ts +47 -0
  75. package/dist/models/EditMemoryChunkRequest.js +57 -0
  76. package/dist/models/EventResponse.d.ts +83 -0
  77. package/dist/models/EventResponse.js +72 -0
  78. package/dist/models/ListMemoryChunksResponse.d.ts +48 -0
  79. package/dist/models/ListMemoryChunksResponse.js +53 -0
  80. package/dist/models/MemoryChunkResponse.d.ts +60 -0
  81. package/dist/models/MemoryChunkResponse.js +61 -0
  82. package/dist/models/MemoryKind.d.ts +29 -0
  83. package/dist/models/MemoryKind.js +55 -0
  84. package/dist/models/PaginatedResponseEventResponse.d.ts +66 -0
  85. package/dist/models/PaginatedResponseEventResponse.js +78 -0
  86. package/dist/models/ScoredChunkResponse.d.ts +4 -4
  87. package/dist/models/SectionSystemMetadata.d.ts +1 -1
  88. package/dist/models/TenantSettingsUpdate.d.ts +2 -2
  89. package/dist/models/ThreadMessageDetailsInput.d.ts +2 -2
  90. package/dist/models/ThreadMessageDetailsOutput.d.ts +2 -2
  91. package/dist/models/ThreadMessageResponse.d.ts +2 -2
  92. package/dist/models/UpdateChunkMetadataRequest.d.ts +2 -2
  93. package/dist/models/UpdateTenantRequest.d.ts +4 -4
  94. package/dist/models/UpdateWorkflowDefinitionRequest.d.ts +1 -1
  95. package/dist/models/WorkflowDefinitionResponse.d.ts +1 -1
  96. package/dist/models/WorkflowRunSnapshot.d.ts +1 -1
  97. package/dist/models/index.d.ts +9 -0
  98. package/dist/models/index.js +9 -0
  99. package/docs/AppendEventRequest.md +37 -0
  100. package/docs/AppendMemoryChunkRequest.md +36 -0
  101. package/docs/DocumentCheckoutApi.md +233 -0
  102. package/docs/DocumentCheckoutResponse.md +41 -0
  103. package/docs/DocumentResponse.md +2 -0
  104. package/docs/EditMemoryChunkRequest.md +34 -0
  105. package/docs/EventResponse.md +45 -0
  106. package/docs/FolderResponseOrDocumentResponse.md +2 -0
  107. package/docs/ListMemoryChunksResponse.md +34 -0
  108. package/docs/MemoryChunkResponse.md +39 -0
  109. package/docs/MemoryKind.md +33 -0
  110. package/docs/PaginatedResponseEventResponse.md +40 -0
  111. package/docs/PathPartsApi.md +171 -0
  112. package/docs/WorkflowMemoryApi.md +390 -0
  113. package/package.json +1 -1
  114. package/src/apis/DocumentCheckoutApi.ts +296 -0
  115. package/src/apis/PathPartsApi.ts +234 -0
  116. package/src/apis/WorkflowMemoryApi.ts +522 -0
  117. package/src/apis/index.ts +2 -0
  118. package/src/models/AppendEventRequest.ts +102 -0
  119. package/src/models/AppendMemoryChunkRequest.ts +105 -0
  120. package/src/models/ChunkBulkResponse.ts +4 -4
  121. package/src/models/ChunkContentItem.ts +2 -2
  122. package/src/models/ChunkResponse.ts +4 -4
  123. package/src/models/CreateThreadMessageRequest.ts +2 -2
  124. package/src/models/CreateWorkflowDefinitionRequest.ts +1 -1
  125. package/src/models/DocumentCheckoutResponse.ts +110 -0
  126. package/src/models/DocumentResponse.ts +15 -0
  127. package/src/models/DocumentVersionMetadata.ts +4 -4
  128. package/src/models/DocumentVersionMetadataUpdate.ts +2 -2
  129. package/src/models/EditMemoryChunkRequest.ts +87 -0
  130. package/src/models/EventResponse.ts +132 -0
  131. package/src/models/ListMemoryChunksResponse.ts +91 -0
  132. package/src/models/MemoryChunkResponse.ts +111 -0
  133. package/src/models/MemoryKind.ts +57 -0
  134. package/src/models/PaginatedResponseEventResponse.ts +130 -0
  135. package/src/models/ScoredChunkResponse.ts +4 -4
  136. package/src/models/SectionSystemMetadata.ts +1 -1
  137. package/src/models/TenantSettingsUpdate.ts +2 -2
  138. package/src/models/ThreadMessageDetailsInput.ts +2 -2
  139. package/src/models/ThreadMessageDetailsOutput.ts +2 -2
  140. package/src/models/ThreadMessageResponse.ts +2 -2
  141. package/src/models/UpdateChunkMetadataRequest.ts +2 -2
  142. package/src/models/UpdateTenantRequest.ts +4 -4
  143. package/src/models/UpdateWorkflowDefinitionRequest.ts +1 -1
  144. package/src/models/WorkflowDefinitionResponse.ts +1 -1
  145. package/src/models/WorkflowRunSnapshot.ts +1 -1
  146. package/src/models/index.ts +9 -0
@@ -0,0 +1,36 @@
1
+
2
+ # AppendMemoryChunkRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `body` | string
10
+ `kind` | [MemoryKind](MemoryKind.md)
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { AppendMemoryChunkRequest } from '@knowledge-stack/ksapi'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "body": null,
20
+ "kind": null,
21
+ } satisfies AppendMemoryChunkRequest
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as AppendMemoryChunkRequest
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -0,0 +1,233 @@
1
+ # DocumentCheckoutApi
2
+
3
+ All URIs are relative to *http://localhost:8000*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**acquireDocumentCheckout**](DocumentCheckoutApi.md#acquiredocumentcheckout) | **POST** /v1/documents/{path_part_id}/checkout | Acquire Document Checkout Handler |
8
+ | [**getDocumentCheckout**](DocumentCheckoutApi.md#getdocumentcheckout) | **GET** /v1/documents/{path_part_id}/checkout | Get Document Checkout Handler |
9
+ | [**releaseDocumentCheckout**](DocumentCheckoutApi.md#releasedocumentcheckout) | **DELETE** /v1/documents/{path_part_id}/checkout | Release Document Checkout Handler |
10
+
11
+
12
+
13
+ ## acquireDocumentCheckout
14
+
15
+ > DocumentCheckoutResponse acquireDocumentCheckout(pathPartId, authorization, ksUat)
16
+
17
+ Acquire Document Checkout Handler
18
+
19
+ Acquire a write lock on the document. If the caller already holds the lock, re-acquire refreshes ``acquired_at``; the response is 200 in both cases. If another user holds the lock, returns 409. Locks have no TTL — they persist until released by the holder.
20
+
21
+ ### Example
22
+
23
+ ```ts
24
+ import {
25
+ Configuration,
26
+ DocumentCheckoutApi,
27
+ } from '@knowledge-stack/ksapi';
28
+ import type { AcquireDocumentCheckoutRequest } from '@knowledge-stack/ksapi';
29
+
30
+ async function example() {
31
+ console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
32
+ const api = new DocumentCheckoutApi();
33
+
34
+ const body = {
35
+ // string | Document\'s PathPart ID
36
+ pathPartId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
37
+ // string (optional)
38
+ authorization: authorization_example,
39
+ // string (optional)
40
+ ksUat: ksUat_example,
41
+ } satisfies AcquireDocumentCheckoutRequest;
42
+
43
+ try {
44
+ const data = await api.acquireDocumentCheckout(body);
45
+ console.log(data);
46
+ } catch (error) {
47
+ console.error(error);
48
+ }
49
+ }
50
+
51
+ // Run the test
52
+ example().catch(console.error);
53
+ ```
54
+
55
+ ### Parameters
56
+
57
+
58
+ | Name | Type | Description | Notes |
59
+ |------------- | ------------- | ------------- | -------------|
60
+ | **pathPartId** | `string` | Document\'s PathPart ID | [Defaults to `undefined`] |
61
+ | **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
62
+ | **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
63
+
64
+ ### Return type
65
+
66
+ [**DocumentCheckoutResponse**](DocumentCheckoutResponse.md)
67
+
68
+ ### Authorization
69
+
70
+ No authorization required
71
+
72
+ ### HTTP request headers
73
+
74
+ - **Content-Type**: Not defined
75
+ - **Accept**: `application/json`
76
+
77
+
78
+ ### HTTP response details
79
+ | Status code | Description | Response headers |
80
+ |-------------|-------------|------------------|
81
+ | **200** | Successful Response | - |
82
+ | **422** | Validation Error | - |
83
+
84
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
85
+
86
+
87
+ ## getDocumentCheckout
88
+
89
+ > DocumentCheckoutResponse getDocumentCheckout(pathPartId, authorization, ksUat)
90
+
91
+ Get Document Checkout Handler
92
+
93
+ Get the active checkout for the document. 404 if no active checkout exists. The holder can always GET their own lock regardless of current path permissions (parallel to the release holder-bypass).
94
+
95
+ ### Example
96
+
97
+ ```ts
98
+ import {
99
+ Configuration,
100
+ DocumentCheckoutApi,
101
+ } from '@knowledge-stack/ksapi';
102
+ import type { GetDocumentCheckoutRequest } from '@knowledge-stack/ksapi';
103
+
104
+ async function example() {
105
+ console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
106
+ const api = new DocumentCheckoutApi();
107
+
108
+ const body = {
109
+ // string | Document\'s PathPart ID
110
+ pathPartId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
111
+ // string (optional)
112
+ authorization: authorization_example,
113
+ // string (optional)
114
+ ksUat: ksUat_example,
115
+ } satisfies GetDocumentCheckoutRequest;
116
+
117
+ try {
118
+ const data = await api.getDocumentCheckout(body);
119
+ console.log(data);
120
+ } catch (error) {
121
+ console.error(error);
122
+ }
123
+ }
124
+
125
+ // Run the test
126
+ example().catch(console.error);
127
+ ```
128
+
129
+ ### Parameters
130
+
131
+
132
+ | Name | Type | Description | Notes |
133
+ |------------- | ------------- | ------------- | -------------|
134
+ | **pathPartId** | `string` | Document\'s PathPart ID | [Defaults to `undefined`] |
135
+ | **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
136
+ | **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
137
+
138
+ ### Return type
139
+
140
+ [**DocumentCheckoutResponse**](DocumentCheckoutResponse.md)
141
+
142
+ ### Authorization
143
+
144
+ No authorization required
145
+
146
+ ### HTTP request headers
147
+
148
+ - **Content-Type**: Not defined
149
+ - **Accept**: `application/json`
150
+
151
+
152
+ ### HTTP response details
153
+ | Status code | Description | Response headers |
154
+ |-------------|-------------|------------------|
155
+ | **200** | Successful Response | - |
156
+ | **422** | Validation Error | - |
157
+
158
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
159
+
160
+
161
+ ## releaseDocumentCheckout
162
+
163
+ > releaseDocumentCheckout(pathPartId, authorization, ksUat)
164
+
165
+ Release Document Checkout Handler
166
+
167
+ Release the write lock on the document. Only the holder may release the lock; others receive 403. The holder can always release regardless of current path permissions (in case a folder move relocated the doc to a path the holder can no longer write to).
168
+
169
+ ### Example
170
+
171
+ ```ts
172
+ import {
173
+ Configuration,
174
+ DocumentCheckoutApi,
175
+ } from '@knowledge-stack/ksapi';
176
+ import type { ReleaseDocumentCheckoutRequest } from '@knowledge-stack/ksapi';
177
+
178
+ async function example() {
179
+ console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
180
+ const api = new DocumentCheckoutApi();
181
+
182
+ const body = {
183
+ // string | Document\'s PathPart ID
184
+ pathPartId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
185
+ // string (optional)
186
+ authorization: authorization_example,
187
+ // string (optional)
188
+ ksUat: ksUat_example,
189
+ } satisfies ReleaseDocumentCheckoutRequest;
190
+
191
+ try {
192
+ const data = await api.releaseDocumentCheckout(body);
193
+ console.log(data);
194
+ } catch (error) {
195
+ console.error(error);
196
+ }
197
+ }
198
+
199
+ // Run the test
200
+ example().catch(console.error);
201
+ ```
202
+
203
+ ### Parameters
204
+
205
+
206
+ | Name | Type | Description | Notes |
207
+ |------------- | ------------- | ------------- | -------------|
208
+ | **pathPartId** | `string` | Document\'s PathPart ID | [Defaults to `undefined`] |
209
+ | **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
210
+ | **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
211
+
212
+ ### Return type
213
+
214
+ `void` (Empty response body)
215
+
216
+ ### Authorization
217
+
218
+ No authorization required
219
+
220
+ ### HTTP request headers
221
+
222
+ - **Content-Type**: Not defined
223
+ - **Accept**: `application/json`
224
+
225
+
226
+ ### HTTP response details
227
+ | Status code | Description | Response headers |
228
+ |-------------|-------------|------------------|
229
+ | **204** | Successful Response | - |
230
+ | **422** | Validation Error | - |
231
+
232
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
233
+
@@ -0,0 +1,41 @@
1
+
2
+ # DocumentCheckoutResponse
3
+
4
+ Active checkout state on a document.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `tenantId` | string
11
+ `pathPartId` | string
12
+ `userId` | string
13
+ `acquiredAt` | Date
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { DocumentCheckoutResponse } from '@knowledge-stack/ksapi'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "tenantId": null,
23
+ "pathPartId": null,
24
+ "userId": null,
25
+ "acquiredAt": null,
26
+ } satisfies DocumentCheckoutResponse
27
+
28
+ console.log(example)
29
+
30
+ // Convert the instance to a JSON string
31
+ const exampleJSON: string = JSON.stringify(example)
32
+ console.log(exampleJSON)
33
+
34
+ // Parse the JSON string back to an object
35
+ const exampleParsed = JSON.parse(exampleJSON) as DocumentCheckoutResponse
36
+ console.log(exampleParsed)
37
+ ```
38
+
39
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
40
+
41
+
@@ -25,6 +25,7 @@ Name | Type
25
25
  `updatedAt` | Date
26
26
  `tags` | [Array<TagResponse>](TagResponse.md)
27
27
  `canWrite` | boolean
28
+ `checkout` | [DocumentCheckoutResponse](DocumentCheckoutResponse.md)
28
29
 
29
30
  ## Example
30
31
 
@@ -51,6 +52,7 @@ const example = {
51
52
  "updatedAt": null,
52
53
  "tags": null,
53
54
  "canWrite": null,
55
+ "checkout": null,
54
56
  } satisfies DocumentResponse
55
57
 
56
58
  console.log(example)
@@ -0,0 +1,34 @@
1
+
2
+ # EditMemoryChunkRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `body` | string
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { EditMemoryChunkRequest } from '@knowledge-stack/ksapi'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "body": null,
19
+ } satisfies EditMemoryChunkRequest
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as EditMemoryChunkRequest
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,45 @@
1
+
2
+ # EventResponse
3
+
4
+ One event row, anchored to a path_part subject. ``kind`` is namespaced ``domain.action`` (e.g. ``workflow.approval``, ``document.created``). ``payload`` is the domain-specific structured JSON associated with the event.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `id` | string
11
+ `subjectPathPartId` | string
12
+ `kind` | string
13
+ `ts` | Date
14
+ `actorUserId` | string
15
+ `payload` | { [key: string]: any; }
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { EventResponse } from '@knowledge-stack/ksapi'
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "id": null,
25
+ "subjectPathPartId": null,
26
+ "kind": null,
27
+ "ts": null,
28
+ "actorUserId": null,
29
+ "payload": null,
30
+ } satisfies EventResponse
31
+
32
+ console.log(example)
33
+
34
+ // Convert the instance to a JSON string
35
+ const exampleJSON: string = JSON.stringify(example)
36
+ console.log(exampleJSON)
37
+
38
+ // Parse the JSON string back to an object
39
+ const exampleParsed = JSON.parse(exampleJSON) as EventResponse
40
+ console.log(exampleParsed)
41
+ ```
42
+
43
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
44
+
45
+
@@ -24,6 +24,7 @@ Name | Type
24
24
  `activeVersionId` | string
25
25
  `activeVersion` | [DocumentVersionResponse](DocumentVersionResponse.md)
26
26
  `ownerTenantUserId` | string
27
+ `checkout` | [DocumentCheckoutResponse](DocumentCheckoutResponse.md)
27
28
 
28
29
  ## Example
29
30
 
@@ -50,6 +51,7 @@ const example = {
50
51
  "activeVersionId": null,
51
52
  "activeVersion": null,
52
53
  "ownerTenantUserId": null,
54
+ "checkout": null,
53
55
  } satisfies FolderResponseOrDocumentResponse
54
56
 
55
57
  console.log(example)
@@ -0,0 +1,34 @@
1
+
2
+ # ListMemoryChunksResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `chunks` | [Array<MemoryChunkResponse>](MemoryChunkResponse.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { ListMemoryChunksResponse } from '@knowledge-stack/ksapi'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "chunks": null,
19
+ } satisfies ListMemoryChunksResponse
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as ListMemoryChunksResponse
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,39 @@
1
+
2
+ # MemoryChunkResponse
3
+
4
+ Parsed view of one fenced chunk in MEMORY.md.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `chunkId` | string
11
+ `kind` | [MemoryKind](MemoryKind.md)
12
+ `body` | string
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { MemoryChunkResponse } from '@knowledge-stack/ksapi'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "chunkId": null,
22
+ "kind": null,
23
+ "body": null,
24
+ } satisfies MemoryChunkResponse
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 MemoryChunkResponse
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,33 @@
1
+
2
+ # MemoryKind
3
+
4
+ Category of a memory chunk inside a MEMORY.md document. Stored inside the chunk\'s HTML-comment fence as ``kind=<value>``. Not a Postgres enum — memory is file-backed, not table-backed.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { MemoryKind } from '@knowledge-stack/ksapi'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ } satisfies MemoryKind
19
+
20
+ console.log(example)
21
+
22
+ // Convert the instance to a JSON string
23
+ const exampleJSON: string = JSON.stringify(example)
24
+ console.log(exampleJSON)
25
+
26
+ // Parse the JSON string back to an object
27
+ const exampleParsed = JSON.parse(exampleJSON) as MemoryKind
28
+ console.log(exampleParsed)
29
+ ```
30
+
31
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
32
+
33
+
@@ -0,0 +1,40 @@
1
+
2
+ # PaginatedResponseEventResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `items` | [Array&lt;EventResponse&gt;](EventResponse.md)
10
+ `total` | number
11
+ `limit` | number
12
+ `offset` | number
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { PaginatedResponseEventResponse } from '@knowledge-stack/ksapi'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "items": null,
22
+ "total": null,
23
+ "limit": null,
24
+ "offset": null,
25
+ } satisfies PaginatedResponseEventResponse
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as PaginatedResponseEventResponse
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+