@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.
- package/.openapi-generator/FILES +22 -0
- package/README.md +21 -2
- package/dist/apis/DocumentCheckoutApi.d.ts +158 -0
- package/dist/apis/DocumentCheckoutApi.js +197 -0
- package/dist/apis/PathPartsApi.d.ts +110 -1
- package/dist/apis/PathPartsApi.js +111 -0
- package/dist/apis/WorkflowMemoryApi.d.ts +249 -0
- package/dist/apis/WorkflowMemoryApi.js +299 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/DocumentCheckoutApi.d.ts +158 -0
- package/dist/esm/apis/DocumentCheckoutApi.js +160 -0
- package/dist/esm/apis/PathPartsApi.d.ts +110 -1
- package/dist/esm/apis/PathPartsApi.js +112 -1
- package/dist/esm/apis/WorkflowMemoryApi.d.ts +249 -0
- package/dist/esm/apis/WorkflowMemoryApi.js +262 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +2 -0
- package/dist/esm/models/AppendEventRequest.d.ts +62 -0
- package/dist/esm/models/AppendEventRequest.js +51 -0
- package/dist/esm/models/AppendMemoryChunkRequest.d.ts +54 -0
- package/dist/esm/models/AppendMemoryChunkRequest.js +52 -0
- package/dist/esm/models/ChunkBulkResponse.d.ts +4 -4
- package/dist/esm/models/ChunkContentItem.d.ts +2 -2
- package/dist/esm/models/ChunkResponse.d.ts +4 -4
- package/dist/esm/models/CreateThreadMessageRequest.d.ts +2 -2
- package/dist/esm/models/CreateWorkflowDefinitionRequest.d.ts +1 -1
- package/dist/esm/models/DocumentCheckoutResponse.d.ts +65 -0
- package/dist/esm/models/DocumentCheckoutResponse.js +56 -0
- package/dist/esm/models/DocumentResponse.d.ts +7 -0
- package/dist/esm/models/DocumentResponse.js +3 -0
- package/dist/esm/models/DocumentVersionMetadata.d.ts +4 -4
- package/dist/esm/models/DocumentVersionMetadataUpdate.d.ts +2 -2
- package/dist/esm/models/EditMemoryChunkRequest.d.ts +47 -0
- package/dist/esm/models/EditMemoryChunkRequest.js +49 -0
- package/dist/esm/models/EventResponse.d.ts +83 -0
- package/dist/esm/models/EventResponse.js +64 -0
- package/dist/esm/models/ListMemoryChunksResponse.d.ts +48 -0
- package/dist/esm/models/ListMemoryChunksResponse.js +45 -0
- package/dist/esm/models/MemoryChunkResponse.d.ts +60 -0
- package/dist/esm/models/MemoryChunkResponse.js +53 -0
- package/dist/esm/models/MemoryKind.d.ts +29 -0
- package/dist/esm/models/MemoryKind.js +47 -0
- package/dist/esm/models/PaginatedResponseEventResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseEventResponse.js +70 -0
- package/dist/esm/models/ScoredChunkResponse.d.ts +4 -4
- package/dist/esm/models/SectionSystemMetadata.d.ts +1 -1
- package/dist/esm/models/TenantSettingsUpdate.d.ts +2 -2
- package/dist/esm/models/ThreadMessageDetailsInput.d.ts +2 -2
- package/dist/esm/models/ThreadMessageDetailsOutput.d.ts +2 -2
- package/dist/esm/models/ThreadMessageResponse.d.ts +2 -2
- package/dist/esm/models/UpdateChunkMetadataRequest.d.ts +2 -2
- package/dist/esm/models/UpdateTenantRequest.d.ts +4 -4
- package/dist/esm/models/UpdateWorkflowDefinitionRequest.d.ts +1 -1
- package/dist/esm/models/WorkflowDefinitionResponse.d.ts +1 -1
- package/dist/esm/models/WorkflowRunSnapshot.d.ts +1 -1
- package/dist/esm/models/index.d.ts +9 -0
- package/dist/esm/models/index.js +9 -0
- package/dist/models/AppendEventRequest.d.ts +62 -0
- package/dist/models/AppendEventRequest.js +59 -0
- package/dist/models/AppendMemoryChunkRequest.d.ts +54 -0
- package/dist/models/AppendMemoryChunkRequest.js +60 -0
- package/dist/models/ChunkBulkResponse.d.ts +4 -4
- package/dist/models/ChunkContentItem.d.ts +2 -2
- package/dist/models/ChunkResponse.d.ts +4 -4
- package/dist/models/CreateThreadMessageRequest.d.ts +2 -2
- package/dist/models/CreateWorkflowDefinitionRequest.d.ts +1 -1
- package/dist/models/DocumentCheckoutResponse.d.ts +65 -0
- package/dist/models/DocumentCheckoutResponse.js +64 -0
- package/dist/models/DocumentResponse.d.ts +7 -0
- package/dist/models/DocumentResponse.js +3 -0
- package/dist/models/DocumentVersionMetadata.d.ts +4 -4
- package/dist/models/DocumentVersionMetadataUpdate.d.ts +2 -2
- package/dist/models/EditMemoryChunkRequest.d.ts +47 -0
- package/dist/models/EditMemoryChunkRequest.js +57 -0
- package/dist/models/EventResponse.d.ts +83 -0
- package/dist/models/EventResponse.js +72 -0
- package/dist/models/ListMemoryChunksResponse.d.ts +48 -0
- package/dist/models/ListMemoryChunksResponse.js +53 -0
- package/dist/models/MemoryChunkResponse.d.ts +60 -0
- package/dist/models/MemoryChunkResponse.js +61 -0
- package/dist/models/MemoryKind.d.ts +29 -0
- package/dist/models/MemoryKind.js +55 -0
- package/dist/models/PaginatedResponseEventResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseEventResponse.js +78 -0
- package/dist/models/ScoredChunkResponse.d.ts +4 -4
- package/dist/models/SectionSystemMetadata.d.ts +1 -1
- package/dist/models/TenantSettingsUpdate.d.ts +2 -2
- package/dist/models/ThreadMessageDetailsInput.d.ts +2 -2
- package/dist/models/ThreadMessageDetailsOutput.d.ts +2 -2
- package/dist/models/ThreadMessageResponse.d.ts +2 -2
- package/dist/models/UpdateChunkMetadataRequest.d.ts +2 -2
- package/dist/models/UpdateTenantRequest.d.ts +4 -4
- package/dist/models/UpdateWorkflowDefinitionRequest.d.ts +1 -1
- package/dist/models/WorkflowDefinitionResponse.d.ts +1 -1
- package/dist/models/WorkflowRunSnapshot.d.ts +1 -1
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/docs/AppendEventRequest.md +37 -0
- package/docs/AppendMemoryChunkRequest.md +36 -0
- package/docs/DocumentCheckoutApi.md +233 -0
- package/docs/DocumentCheckoutResponse.md +41 -0
- package/docs/DocumentResponse.md +2 -0
- package/docs/EditMemoryChunkRequest.md +34 -0
- package/docs/EventResponse.md +45 -0
- package/docs/FolderResponseOrDocumentResponse.md +2 -0
- package/docs/ListMemoryChunksResponse.md +34 -0
- package/docs/MemoryChunkResponse.md +39 -0
- package/docs/MemoryKind.md +33 -0
- package/docs/PaginatedResponseEventResponse.md +40 -0
- package/docs/PathPartsApi.md +171 -0
- package/docs/WorkflowMemoryApi.md +390 -0
- package/package.json +1 -1
- package/src/apis/DocumentCheckoutApi.ts +296 -0
- package/src/apis/PathPartsApi.ts +234 -0
- package/src/apis/WorkflowMemoryApi.ts +522 -0
- package/src/apis/index.ts +2 -0
- package/src/models/AppendEventRequest.ts +102 -0
- package/src/models/AppendMemoryChunkRequest.ts +105 -0
- package/src/models/ChunkBulkResponse.ts +4 -4
- package/src/models/ChunkContentItem.ts +2 -2
- package/src/models/ChunkResponse.ts +4 -4
- package/src/models/CreateThreadMessageRequest.ts +2 -2
- package/src/models/CreateWorkflowDefinitionRequest.ts +1 -1
- package/src/models/DocumentCheckoutResponse.ts +110 -0
- package/src/models/DocumentResponse.ts +15 -0
- package/src/models/DocumentVersionMetadata.ts +4 -4
- package/src/models/DocumentVersionMetadataUpdate.ts +2 -2
- package/src/models/EditMemoryChunkRequest.ts +87 -0
- package/src/models/EventResponse.ts +132 -0
- package/src/models/ListMemoryChunksResponse.ts +91 -0
- package/src/models/MemoryChunkResponse.ts +111 -0
- package/src/models/MemoryKind.ts +57 -0
- package/src/models/PaginatedResponseEventResponse.ts +130 -0
- package/src/models/ScoredChunkResponse.ts +4 -4
- package/src/models/SectionSystemMetadata.ts +1 -1
- package/src/models/TenantSettingsUpdate.ts +2 -2
- package/src/models/ThreadMessageDetailsInput.ts +2 -2
- package/src/models/ThreadMessageDetailsOutput.ts +2 -2
- package/src/models/ThreadMessageResponse.ts +2 -2
- package/src/models/UpdateChunkMetadataRequest.ts +2 -2
- package/src/models/UpdateTenantRequest.ts +4 -4
- package/src/models/UpdateWorkflowDefinitionRequest.ts +1 -1
- package/src/models/WorkflowDefinitionResponse.ts +1 -1
- package/src/models/WorkflowRunSnapshot.ts +1 -1
- package/src/models/index.ts +9 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -9,6 +9,8 @@ docs/AgentApi.md
|
|
|
9
9
|
docs/AncestryResponse.md
|
|
10
10
|
docs/ApiKeyResponse.md
|
|
11
11
|
docs/ApiKeysApi.md
|
|
12
|
+
docs/AppendEventRequest.md
|
|
13
|
+
docs/AppendMemoryChunkRequest.md
|
|
12
14
|
docs/Args.md
|
|
13
15
|
docs/AskRequest.md
|
|
14
16
|
docs/AskResponse.md
|
|
@@ -49,6 +51,8 @@ docs/CreateWorkflowDefinitionRequest.md
|
|
|
49
51
|
docs/DefaultApi.md
|
|
50
52
|
docs/DirectorySyncResponse.md
|
|
51
53
|
docs/DissolveSectionResponse.md
|
|
54
|
+
docs/DocumentCheckoutApi.md
|
|
55
|
+
docs/DocumentCheckoutResponse.md
|
|
52
56
|
docs/DocumentOrigin.md
|
|
53
57
|
docs/DocumentResponse.md
|
|
54
58
|
docs/DocumentType.md
|
|
@@ -60,10 +64,12 @@ docs/DocumentVersionMetadataUpdate.md
|
|
|
60
64
|
docs/DocumentVersionResponse.md
|
|
61
65
|
docs/DocumentVersionsApi.md
|
|
62
66
|
docs/DocumentsApi.md
|
|
67
|
+
docs/EditMemoryChunkRequest.md
|
|
63
68
|
docs/EmailSentResponse.md
|
|
64
69
|
docs/EmailVerificationRequest.md
|
|
65
70
|
docs/EnrichedCitation.md
|
|
66
71
|
docs/EnrichedThreadMessageContent.md
|
|
72
|
+
docs/EventResponse.md
|
|
67
73
|
docs/ExtractRequest.md
|
|
68
74
|
docs/ExtractResponse.md
|
|
69
75
|
docs/FeaturesApi.md
|
|
@@ -100,8 +106,11 @@ docs/InvokeWorkflowRequest.md
|
|
|
100
106
|
docs/LineageEdgeResponse.md
|
|
101
107
|
docs/LineageGraphResponse.md
|
|
102
108
|
docs/LineageNodeResponse.md
|
|
109
|
+
docs/ListMemoryChunksResponse.md
|
|
103
110
|
docs/LocationInner.md
|
|
104
111
|
docs/MembershipResponse.md
|
|
112
|
+
docs/MemoryChunkResponse.md
|
|
113
|
+
docs/MemoryKind.md
|
|
105
114
|
docs/MessageRole.md
|
|
106
115
|
docs/MeteredQuotaStatus.md
|
|
107
116
|
docs/NonFilesystemReferenceType.md
|
|
@@ -111,6 +120,7 @@ docs/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.
|
|
|
111
120
|
docs/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.md
|
|
112
121
|
docs/PaginatedResponseDocumentResponse.md
|
|
113
122
|
docs/PaginatedResponseDocumentVersionResponse.md
|
|
123
|
+
docs/PaginatedResponseEventResponse.md
|
|
114
124
|
docs/PaginatedResponseFeedbackEventResponse.md
|
|
115
125
|
docs/PaginatedResponseFolderResponse.md
|
|
116
126
|
docs/PaginatedResponseGroupPermissionResponse.md
|
|
@@ -223,6 +233,7 @@ docs/WorkflowCancelResponse.md
|
|
|
223
233
|
docs/WorkflowDefinitionResponse.md
|
|
224
234
|
docs/WorkflowDefinitionsApi.md
|
|
225
235
|
docs/WorkflowDetailResponse.md
|
|
236
|
+
docs/WorkflowMemoryApi.md
|
|
226
237
|
docs/WorkflowRunCallbackRequest.md
|
|
227
238
|
docs/WorkflowRunResponse.md
|
|
228
239
|
docs/WorkflowRunSnapshot.md
|
|
@@ -238,6 +249,7 @@ src/apis/AuthApi.ts
|
|
|
238
249
|
src/apis/ChunkLineagesApi.ts
|
|
239
250
|
src/apis/ChunksApi.ts
|
|
240
251
|
src/apis/DefaultApi.ts
|
|
252
|
+
src/apis/DocumentCheckoutApi.ts
|
|
241
253
|
src/apis/DocumentVersionsApi.ts
|
|
242
254
|
src/apis/DocumentsApi.ts
|
|
243
255
|
src/apis/FeaturesApi.ts
|
|
@@ -256,6 +268,7 @@ src/apis/ThreadsApi.ts
|
|
|
256
268
|
src/apis/UserPermissionsApi.ts
|
|
257
269
|
src/apis/UsersApi.ts
|
|
258
270
|
src/apis/WorkflowDefinitionsApi.ts
|
|
271
|
+
src/apis/WorkflowMemoryApi.ts
|
|
259
272
|
src/apis/WorkflowRunsApi.ts
|
|
260
273
|
src/apis/WorkflowsApi.ts
|
|
261
274
|
src/apis/index.ts
|
|
@@ -265,6 +278,8 @@ src/models/AcceptInviteResponse.ts
|
|
|
265
278
|
src/models/AddMemberRequest.ts
|
|
266
279
|
src/models/AncestryResponse.ts
|
|
267
280
|
src/models/ApiKeyResponse.ts
|
|
281
|
+
src/models/AppendEventRequest.ts
|
|
282
|
+
src/models/AppendMemoryChunkRequest.ts
|
|
268
283
|
src/models/Args.ts
|
|
269
284
|
src/models/AskRequest.ts
|
|
270
285
|
src/models/AskResponse.ts
|
|
@@ -301,6 +316,7 @@ src/models/CreateThreadRequest.ts
|
|
|
301
316
|
src/models/CreateWorkflowDefinitionRequest.ts
|
|
302
317
|
src/models/DirectorySyncResponse.ts
|
|
303
318
|
src/models/DissolveSectionResponse.ts
|
|
319
|
+
src/models/DocumentCheckoutResponse.ts
|
|
304
320
|
src/models/DocumentOrigin.ts
|
|
305
321
|
src/models/DocumentResponse.ts
|
|
306
322
|
src/models/DocumentType.ts
|
|
@@ -310,10 +326,12 @@ src/models/DocumentVersionContentTypeFilter.ts
|
|
|
310
326
|
src/models/DocumentVersionMetadata.ts
|
|
311
327
|
src/models/DocumentVersionMetadataUpdate.ts
|
|
312
328
|
src/models/DocumentVersionResponse.ts
|
|
329
|
+
src/models/EditMemoryChunkRequest.ts
|
|
313
330
|
src/models/EmailSentResponse.ts
|
|
314
331
|
src/models/EmailVerificationRequest.ts
|
|
315
332
|
src/models/EnrichedCitation.ts
|
|
316
333
|
src/models/EnrichedThreadMessageContent.ts
|
|
334
|
+
src/models/EventResponse.ts
|
|
317
335
|
src/models/ExtractRequest.ts
|
|
318
336
|
src/models/ExtractResponse.ts
|
|
319
337
|
src/models/FeaturesResponse.ts
|
|
@@ -346,8 +364,11 @@ src/models/InvokeWorkflowRequest.ts
|
|
|
346
364
|
src/models/LineageEdgeResponse.ts
|
|
347
365
|
src/models/LineageGraphResponse.ts
|
|
348
366
|
src/models/LineageNodeResponse.ts
|
|
367
|
+
src/models/ListMemoryChunksResponse.ts
|
|
349
368
|
src/models/LocationInner.ts
|
|
350
369
|
src/models/MembershipResponse.ts
|
|
370
|
+
src/models/MemoryChunkResponse.ts
|
|
371
|
+
src/models/MemoryKind.ts
|
|
351
372
|
src/models/MessageRole.ts
|
|
352
373
|
src/models/MeteredQuotaStatus.ts
|
|
353
374
|
src/models/NonFilesystemReferenceType.ts
|
|
@@ -357,6 +378,7 @@ src/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscrimi
|
|
|
357
378
|
src/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.ts
|
|
358
379
|
src/models/PaginatedResponseDocumentResponse.ts
|
|
359
380
|
src/models/PaginatedResponseDocumentVersionResponse.ts
|
|
381
|
+
src/models/PaginatedResponseEventResponse.ts
|
|
360
382
|
src/models/PaginatedResponseFeedbackEventResponse.ts
|
|
361
383
|
src/models/PaginatedResponseFolderResponse.ts
|
|
362
384
|
src/models/PaginatedResponseGroupPermissionResponse.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @knowledge-stack/ksapi@1.
|
|
1
|
+
# @knowledge-stack/ksapi@1.85.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -87,6 +87,9 @@ All URIs are relative to *http://localhost:8000*
|
|
|
87
87
|
*ChunksApi* | [**updateChunkMetadata**](docs/ChunksApi.md#updatechunkmetadataoperation) | **PATCH** /v1/chunks/{chunk_id} | Update Chunk Metadata Handler
|
|
88
88
|
*DefaultApi* | [**healthCheck**](docs/DefaultApi.md#healthcheck) | **GET** /healthz | Health Check Handler
|
|
89
89
|
*DefaultApi* | [**hello**](docs/DefaultApi.md#hello) | **GET** / | Root Handler
|
|
90
|
+
*DocumentCheckoutApi* | [**acquireDocumentCheckout**](docs/DocumentCheckoutApi.md#acquiredocumentcheckout) | **POST** /v1/documents/{path_part_id}/checkout | Acquire Document Checkout Handler
|
|
91
|
+
*DocumentCheckoutApi* | [**getDocumentCheckout**](docs/DocumentCheckoutApi.md#getdocumentcheckout) | **GET** /v1/documents/{path_part_id}/checkout | Get Document Checkout Handler
|
|
92
|
+
*DocumentCheckoutApi* | [**releaseDocumentCheckout**](docs/DocumentCheckoutApi.md#releasedocumentcheckout) | **DELETE** /v1/documents/{path_part_id}/checkout | Release Document Checkout Handler
|
|
90
93
|
*DocumentVersionsApi* | [**clearDocumentVersionContents**](docs/DocumentVersionsApi.md#cleardocumentversioncontents) | **DELETE** /v1/document_versions/{version_id}/contents | Clear Document Version Contents Handler
|
|
91
94
|
*DocumentVersionsApi* | [**createDocumentVersion**](docs/DocumentVersionsApi.md#createdocumentversion) | **POST** /v1/documents/{document_id}/versions | Create Document Version Handler
|
|
92
95
|
*DocumentVersionsApi* | [**deleteDocumentVersion**](docs/DocumentVersionsApi.md#deletedocumentversion) | **DELETE** /v1/document_versions/{version_id} | Delete Document Version Handler
|
|
@@ -119,11 +122,13 @@ All URIs are relative to *http://localhost:8000*
|
|
|
119
122
|
*InvitesApi* | [**deleteInvite**](docs/InvitesApi.md#deleteinvite) | **DELETE** /v1/invites/{invite_id} | Delete Invite
|
|
120
123
|
*InvitesApi* | [**listInvites**](docs/InvitesApi.md#listinvites) | **GET** /v1/invites | List Invites Handler
|
|
121
124
|
*InvitesApi* | [**updateInvite**](docs/InvitesApi.md#updateinviteoperation) | **PATCH** /v1/invites/{invite_id} | Update Invite Handler
|
|
125
|
+
*PathPartsApi* | [**appendPathPartEvent**](docs/PathPartsApi.md#appendpathpartevent) | **POST** /v1/path-parts/{path_part_id}/events | Append Path Part Event Handler
|
|
122
126
|
*PathPartsApi* | [**bulkRemovePathPartTags**](docs/PathPartsApi.md#bulkremovepathparttags) | **DELETE** /v1/path-parts/{path_part_id}/tags | Bulk Remove Path Part Tags Handler
|
|
123
127
|
*PathPartsApi* | [**getPathPart**](docs/PathPartsApi.md#getpathpart) | **GET** /v1/path-parts/{path_part_id} | Get Path Part Handler
|
|
124
128
|
*PathPartsApi* | [**getPathPartAncestry**](docs/PathPartsApi.md#getpathpartancestry) | **GET** /v1/path-parts/{path_part_id}/ancestry | Get Path Part Ancestry Handler
|
|
125
129
|
*PathPartsApi* | [**getPathPartSubtreeChunks**](docs/PathPartsApi.md#getpathpartsubtreechunks) | **GET** /v1/path-parts/{path_part_id}/subtree_chunks | Get Path Part Subtree Chunks Handler
|
|
126
130
|
*PathPartsApi* | [**getPathPartTags**](docs/PathPartsApi.md#getpathparttags) | **GET** /v1/path-parts/{path_part_id}/tags | Get Path Part Tags Handler
|
|
131
|
+
*PathPartsApi* | [**listPathPartEvents**](docs/PathPartsApi.md#listpathpartevents) | **GET** /v1/path-parts/{path_part_id}/events | List Path Part Events Handler
|
|
127
132
|
*PathPartsApi* | [**listPathParts**](docs/PathPartsApi.md#listpathparts) | **GET** /v1/path-parts | List Path Parts Handler
|
|
128
133
|
*PathPartsApi* | [**setPathPartTags**](docs/PathPartsApi.md#setpathparttags) | **POST** /v1/path-parts/{path_part_id}/tags | Set Path Part Tags Handler
|
|
129
134
|
*PublicApi* | [**listPublicSubscriptions**](docs/PublicApi.md#listpublicsubscriptions) | **GET** /public/subscriptions | List Public Subscriptions Handler
|
|
@@ -191,6 +196,11 @@ All URIs are relative to *http://localhost:8000*
|
|
|
191
196
|
*WorkflowDefinitionsApi* | [**listWorkflowDefinitions**](docs/WorkflowDefinitionsApi.md#listworkflowdefinitions) | **GET** /v1/workflow-definitions | List Workflow Definitions Handler
|
|
192
197
|
*WorkflowDefinitionsApi* | [**listWorkflowRuns**](docs/WorkflowDefinitionsApi.md#listworkflowruns) | **GET** /v1/workflow-definitions/{definition_id}/runs | List Workflow Runs Handler
|
|
193
198
|
*WorkflowDefinitionsApi* | [**updateWorkflowDefinition**](docs/WorkflowDefinitionsApi.md#updateworkflowdefinitionoperation) | **PUT** /v1/workflow-definitions/{definition_id} | Update Workflow Definition Handler
|
|
199
|
+
*WorkflowMemoryApi* | [**appendWorkflowMemoryChunk**](docs/WorkflowMemoryApi.md#appendworkflowmemorychunk) | **POST** /v1/workflow-definitions/{definition_id}/memory/chunks | Append Workflow Memory Chunk Handler
|
|
200
|
+
*WorkflowMemoryApi* | [**editWorkflowMemoryChunk**](docs/WorkflowMemoryApi.md#editworkflowmemorychunk) | **PATCH** /v1/workflow-definitions/{definition_id}/memory/chunks/{chunk_id} | Edit Workflow Memory Chunk Handler
|
|
201
|
+
*WorkflowMemoryApi* | [**forgetWorkflowMemoryChunk**](docs/WorkflowMemoryApi.md#forgetworkflowmemorychunk) | **DELETE** /v1/workflow-definitions/{definition_id}/memory/chunks/{chunk_id} | Forget Workflow Memory Chunk Handler
|
|
202
|
+
*WorkflowMemoryApi* | [**getWorkflowMemoryChunk**](docs/WorkflowMemoryApi.md#getworkflowmemorychunk) | **GET** /v1/workflow-definitions/{definition_id}/memory/chunks/{chunk_id} | Get Workflow Memory Chunk Handler
|
|
203
|
+
*WorkflowMemoryApi* | [**listWorkflowMemoryChunks**](docs/WorkflowMemoryApi.md#listworkflowmemorychunks) | **GET** /v1/workflow-definitions/{definition_id}/memory | List Workflow Memory Chunks Handler
|
|
194
204
|
*WorkflowRunsApi* | [**acquireWorkflowRunLock**](docs/WorkflowRunsApi.md#acquireworkflowrunlock) | **POST** /v1/workflow-runs/{run_id}/lock | Acquire Workflow Run Lock Handler
|
|
195
205
|
*WorkflowRunsApi* | [**approveWorkflowRunFile**](docs/WorkflowRunsApi.md#approveworkflowrunfile) | **POST** /v1/workflow-runs/{run_id}/files/{path_part_id}/approve | Approve Workflow Run File Handler
|
|
196
206
|
*WorkflowRunsApi* | [**deleteWorkflowRun**](docs/WorkflowRunsApi.md#deleteworkflowrun) | **DELETE** /v1/workflow-runs/{run_id} | Delete Workflow Run Handler
|
|
@@ -213,6 +223,8 @@ All URIs are relative to *http://localhost:8000*
|
|
|
213
223
|
- [AddMemberRequest](docs/AddMemberRequest.md)
|
|
214
224
|
- [AncestryResponse](docs/AncestryResponse.md)
|
|
215
225
|
- [ApiKeyResponse](docs/ApiKeyResponse.md)
|
|
226
|
+
- [AppendEventRequest](docs/AppendEventRequest.md)
|
|
227
|
+
- [AppendMemoryChunkRequest](docs/AppendMemoryChunkRequest.md)
|
|
216
228
|
- [Args](docs/Args.md)
|
|
217
229
|
- [AskRequest](docs/AskRequest.md)
|
|
218
230
|
- [AskResponse](docs/AskResponse.md)
|
|
@@ -249,6 +261,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
249
261
|
- [CreateWorkflowDefinitionRequest](docs/CreateWorkflowDefinitionRequest.md)
|
|
250
262
|
- [DirectorySyncResponse](docs/DirectorySyncResponse.md)
|
|
251
263
|
- [DissolveSectionResponse](docs/DissolveSectionResponse.md)
|
|
264
|
+
- [DocumentCheckoutResponse](docs/DocumentCheckoutResponse.md)
|
|
252
265
|
- [DocumentOrigin](docs/DocumentOrigin.md)
|
|
253
266
|
- [DocumentResponse](docs/DocumentResponse.md)
|
|
254
267
|
- [DocumentType](docs/DocumentType.md)
|
|
@@ -258,10 +271,12 @@ All URIs are relative to *http://localhost:8000*
|
|
|
258
271
|
- [DocumentVersionMetadata](docs/DocumentVersionMetadata.md)
|
|
259
272
|
- [DocumentVersionMetadataUpdate](docs/DocumentVersionMetadataUpdate.md)
|
|
260
273
|
- [DocumentVersionResponse](docs/DocumentVersionResponse.md)
|
|
274
|
+
- [EditMemoryChunkRequest](docs/EditMemoryChunkRequest.md)
|
|
261
275
|
- [EmailSentResponse](docs/EmailSentResponse.md)
|
|
262
276
|
- [EmailVerificationRequest](docs/EmailVerificationRequest.md)
|
|
263
277
|
- [EnrichedCitation](docs/EnrichedCitation.md)
|
|
264
278
|
- [EnrichedThreadMessageContent](docs/EnrichedThreadMessageContent.md)
|
|
279
|
+
- [EventResponse](docs/EventResponse.md)
|
|
265
280
|
- [ExtractRequest](docs/ExtractRequest.md)
|
|
266
281
|
- [ExtractResponse](docs/ExtractResponse.md)
|
|
267
282
|
- [FeaturesResponse](docs/FeaturesResponse.md)
|
|
@@ -294,8 +309,11 @@ All URIs are relative to *http://localhost:8000*
|
|
|
294
309
|
- [LineageEdgeResponse](docs/LineageEdgeResponse.md)
|
|
295
310
|
- [LineageGraphResponse](docs/LineageGraphResponse.md)
|
|
296
311
|
- [LineageNodeResponse](docs/LineageNodeResponse.md)
|
|
312
|
+
- [ListMemoryChunksResponse](docs/ListMemoryChunksResponse.md)
|
|
297
313
|
- [LocationInner](docs/LocationInner.md)
|
|
298
314
|
- [MembershipResponse](docs/MembershipResponse.md)
|
|
315
|
+
- [MemoryChunkResponse](docs/MemoryChunkResponse.md)
|
|
316
|
+
- [MemoryKind](docs/MemoryKind.md)
|
|
299
317
|
- [MessageRole](docs/MessageRole.md)
|
|
300
318
|
- [MeteredQuotaStatus](docs/MeteredQuotaStatus.md)
|
|
301
319
|
- [NonFilesystemReferenceType](docs/NonFilesystemReferenceType.md)
|
|
@@ -305,6 +323,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
305
323
|
- [PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator](docs/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.md)
|
|
306
324
|
- [PaginatedResponseDocumentResponse](docs/PaginatedResponseDocumentResponse.md)
|
|
307
325
|
- [PaginatedResponseDocumentVersionResponse](docs/PaginatedResponseDocumentVersionResponse.md)
|
|
326
|
+
- [PaginatedResponseEventResponse](docs/PaginatedResponseEventResponse.md)
|
|
308
327
|
- [PaginatedResponseFeedbackEventResponse](docs/PaginatedResponseFeedbackEventResponse.md)
|
|
309
328
|
- [PaginatedResponseFolderResponse](docs/PaginatedResponseFolderResponse.md)
|
|
310
329
|
- [PaginatedResponseGroupPermissionResponse](docs/PaginatedResponseGroupPermissionResponse.md)
|
|
@@ -424,7 +443,7 @@ and is automatically generated by the
|
|
|
424
443
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
425
444
|
|
|
426
445
|
- API version: `0.1.0`
|
|
427
|
-
- Package version: `1.
|
|
446
|
+
- Package version: `1.85.0`
|
|
428
447
|
- Generator version: `7.21.0`
|
|
429
448
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
430
449
|
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { DocumentCheckoutResponse } from '../models/index';
|
|
14
|
+
export interface AcquireDocumentCheckoutRequest {
|
|
15
|
+
pathPartId: string;
|
|
16
|
+
authorization?: string | null;
|
|
17
|
+
ksUat?: string | null;
|
|
18
|
+
}
|
|
19
|
+
export interface GetDocumentCheckoutRequest {
|
|
20
|
+
pathPartId: string;
|
|
21
|
+
authorization?: string | null;
|
|
22
|
+
ksUat?: string | null;
|
|
23
|
+
}
|
|
24
|
+
export interface ReleaseDocumentCheckoutRequest {
|
|
25
|
+
pathPartId: string;
|
|
26
|
+
authorization?: string | null;
|
|
27
|
+
ksUat?: string | null;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* DocumentCheckoutApi - interface
|
|
31
|
+
*
|
|
32
|
+
* @export
|
|
33
|
+
* @interface DocumentCheckoutApiInterface
|
|
34
|
+
*/
|
|
35
|
+
export interface DocumentCheckoutApiInterface {
|
|
36
|
+
/**
|
|
37
|
+
* Creates request options for acquireDocumentCheckout without sending the request
|
|
38
|
+
* @param {string} pathPartId Document\'s PathPart ID
|
|
39
|
+
* @param {string} [authorization]
|
|
40
|
+
* @param {string} [ksUat]
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
* @memberof DocumentCheckoutApiInterface
|
|
43
|
+
*/
|
|
44
|
+
acquireDocumentCheckoutRequestOpts(requestParameters: AcquireDocumentCheckoutRequest): Promise<runtime.RequestOpts>;
|
|
45
|
+
/**
|
|
46
|
+
* 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.
|
|
47
|
+
* @summary Acquire Document Checkout Handler
|
|
48
|
+
* @param {string} pathPartId Document\'s PathPart ID
|
|
49
|
+
* @param {string} [authorization]
|
|
50
|
+
* @param {string} [ksUat]
|
|
51
|
+
* @param {*} [options] Override http request option.
|
|
52
|
+
* @throws {RequiredError}
|
|
53
|
+
* @memberof DocumentCheckoutApiInterface
|
|
54
|
+
*/
|
|
55
|
+
acquireDocumentCheckoutRaw(requestParameters: AcquireDocumentCheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentCheckoutResponse>>;
|
|
56
|
+
/**
|
|
57
|
+
* 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.
|
|
58
|
+
* Acquire Document Checkout Handler
|
|
59
|
+
*/
|
|
60
|
+
acquireDocumentCheckout(requestParameters: AcquireDocumentCheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentCheckoutResponse>;
|
|
61
|
+
/**
|
|
62
|
+
* Creates request options for getDocumentCheckout without sending the request
|
|
63
|
+
* @param {string} pathPartId Document\'s PathPart ID
|
|
64
|
+
* @param {string} [authorization]
|
|
65
|
+
* @param {string} [ksUat]
|
|
66
|
+
* @throws {RequiredError}
|
|
67
|
+
* @memberof DocumentCheckoutApiInterface
|
|
68
|
+
*/
|
|
69
|
+
getDocumentCheckoutRequestOpts(requestParameters: GetDocumentCheckoutRequest): Promise<runtime.RequestOpts>;
|
|
70
|
+
/**
|
|
71
|
+
* 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).
|
|
72
|
+
* @summary Get Document Checkout Handler
|
|
73
|
+
* @param {string} pathPartId Document\'s PathPart ID
|
|
74
|
+
* @param {string} [authorization]
|
|
75
|
+
* @param {string} [ksUat]
|
|
76
|
+
* @param {*} [options] Override http request option.
|
|
77
|
+
* @throws {RequiredError}
|
|
78
|
+
* @memberof DocumentCheckoutApiInterface
|
|
79
|
+
*/
|
|
80
|
+
getDocumentCheckoutRaw(requestParameters: GetDocumentCheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentCheckoutResponse>>;
|
|
81
|
+
/**
|
|
82
|
+
* 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).
|
|
83
|
+
* Get Document Checkout Handler
|
|
84
|
+
*/
|
|
85
|
+
getDocumentCheckout(requestParameters: GetDocumentCheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentCheckoutResponse>;
|
|
86
|
+
/**
|
|
87
|
+
* Creates request options for releaseDocumentCheckout without sending the request
|
|
88
|
+
* @param {string} pathPartId Document\'s PathPart ID
|
|
89
|
+
* @param {string} [authorization]
|
|
90
|
+
* @param {string} [ksUat]
|
|
91
|
+
* @throws {RequiredError}
|
|
92
|
+
* @memberof DocumentCheckoutApiInterface
|
|
93
|
+
*/
|
|
94
|
+
releaseDocumentCheckoutRequestOpts(requestParameters: ReleaseDocumentCheckoutRequest): Promise<runtime.RequestOpts>;
|
|
95
|
+
/**
|
|
96
|
+
* 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).
|
|
97
|
+
* @summary Release Document Checkout Handler
|
|
98
|
+
* @param {string} pathPartId Document\'s PathPart ID
|
|
99
|
+
* @param {string} [authorization]
|
|
100
|
+
* @param {string} [ksUat]
|
|
101
|
+
* @param {*} [options] Override http request option.
|
|
102
|
+
* @throws {RequiredError}
|
|
103
|
+
* @memberof DocumentCheckoutApiInterface
|
|
104
|
+
*/
|
|
105
|
+
releaseDocumentCheckoutRaw(requestParameters: ReleaseDocumentCheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
106
|
+
/**
|
|
107
|
+
* 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).
|
|
108
|
+
* Release Document Checkout Handler
|
|
109
|
+
*/
|
|
110
|
+
releaseDocumentCheckout(requestParameters: ReleaseDocumentCheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
*/
|
|
115
|
+
export declare class DocumentCheckoutApi extends runtime.BaseAPI implements DocumentCheckoutApiInterface {
|
|
116
|
+
/**
|
|
117
|
+
* Creates request options for acquireDocumentCheckout without sending the request
|
|
118
|
+
*/
|
|
119
|
+
acquireDocumentCheckoutRequestOpts(requestParameters: AcquireDocumentCheckoutRequest): Promise<runtime.RequestOpts>;
|
|
120
|
+
/**
|
|
121
|
+
* 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.
|
|
122
|
+
* Acquire Document Checkout Handler
|
|
123
|
+
*/
|
|
124
|
+
acquireDocumentCheckoutRaw(requestParameters: AcquireDocumentCheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentCheckoutResponse>>;
|
|
125
|
+
/**
|
|
126
|
+
* 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.
|
|
127
|
+
* Acquire Document Checkout Handler
|
|
128
|
+
*/
|
|
129
|
+
acquireDocumentCheckout(requestParameters: AcquireDocumentCheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentCheckoutResponse>;
|
|
130
|
+
/**
|
|
131
|
+
* Creates request options for getDocumentCheckout without sending the request
|
|
132
|
+
*/
|
|
133
|
+
getDocumentCheckoutRequestOpts(requestParameters: GetDocumentCheckoutRequest): Promise<runtime.RequestOpts>;
|
|
134
|
+
/**
|
|
135
|
+
* 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).
|
|
136
|
+
* Get Document Checkout Handler
|
|
137
|
+
*/
|
|
138
|
+
getDocumentCheckoutRaw(requestParameters: GetDocumentCheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentCheckoutResponse>>;
|
|
139
|
+
/**
|
|
140
|
+
* 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).
|
|
141
|
+
* Get Document Checkout Handler
|
|
142
|
+
*/
|
|
143
|
+
getDocumentCheckout(requestParameters: GetDocumentCheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentCheckoutResponse>;
|
|
144
|
+
/**
|
|
145
|
+
* Creates request options for releaseDocumentCheckout without sending the request
|
|
146
|
+
*/
|
|
147
|
+
releaseDocumentCheckoutRequestOpts(requestParameters: ReleaseDocumentCheckoutRequest): Promise<runtime.RequestOpts>;
|
|
148
|
+
/**
|
|
149
|
+
* 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).
|
|
150
|
+
* Release Document Checkout Handler
|
|
151
|
+
*/
|
|
152
|
+
releaseDocumentCheckoutRaw(requestParameters: ReleaseDocumentCheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
153
|
+
/**
|
|
154
|
+
* 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).
|
|
155
|
+
* Release Document Checkout Handler
|
|
156
|
+
*/
|
|
157
|
+
releaseDocumentCheckout(requestParameters: ReleaseDocumentCheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
158
|
+
}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
49
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
50
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
51
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
52
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
53
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
54
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58
|
+
exports.DocumentCheckoutApi = void 0;
|
|
59
|
+
const runtime = __importStar(require("../runtime"));
|
|
60
|
+
const index_1 = require("../models/index");
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
class DocumentCheckoutApi extends runtime.BaseAPI {
|
|
65
|
+
/**
|
|
66
|
+
* Creates request options for acquireDocumentCheckout without sending the request
|
|
67
|
+
*/
|
|
68
|
+
acquireDocumentCheckoutRequestOpts(requestParameters) {
|
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
if (requestParameters['pathPartId'] == null) {
|
|
71
|
+
throw new runtime.RequiredError('pathPartId', 'Required parameter "pathPartId" was null or undefined when calling acquireDocumentCheckout().');
|
|
72
|
+
}
|
|
73
|
+
const queryParameters = {};
|
|
74
|
+
const headerParameters = {};
|
|
75
|
+
if (requestParameters['authorization'] != null) {
|
|
76
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
77
|
+
}
|
|
78
|
+
let urlPath = `/v1/documents/{path_part_id}/checkout`;
|
|
79
|
+
urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
|
|
80
|
+
return {
|
|
81
|
+
path: urlPath,
|
|
82
|
+
method: 'POST',
|
|
83
|
+
headers: headerParameters,
|
|
84
|
+
query: queryParameters,
|
|
85
|
+
};
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* 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.
|
|
90
|
+
* Acquire Document Checkout Handler
|
|
91
|
+
*/
|
|
92
|
+
acquireDocumentCheckoutRaw(requestParameters, initOverrides) {
|
|
93
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
94
|
+
const requestOptions = yield this.acquireDocumentCheckoutRequestOpts(requestParameters);
|
|
95
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
96
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DocumentCheckoutResponseFromJSON)(jsonValue));
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* 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.
|
|
101
|
+
* Acquire Document Checkout Handler
|
|
102
|
+
*/
|
|
103
|
+
acquireDocumentCheckout(requestParameters, initOverrides) {
|
|
104
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
105
|
+
const response = yield this.acquireDocumentCheckoutRaw(requestParameters, initOverrides);
|
|
106
|
+
return yield response.value();
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Creates request options for getDocumentCheckout without sending the request
|
|
111
|
+
*/
|
|
112
|
+
getDocumentCheckoutRequestOpts(requestParameters) {
|
|
113
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
114
|
+
if (requestParameters['pathPartId'] == null) {
|
|
115
|
+
throw new runtime.RequiredError('pathPartId', 'Required parameter "pathPartId" was null or undefined when calling getDocumentCheckout().');
|
|
116
|
+
}
|
|
117
|
+
const queryParameters = {};
|
|
118
|
+
const headerParameters = {};
|
|
119
|
+
if (requestParameters['authorization'] != null) {
|
|
120
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
121
|
+
}
|
|
122
|
+
let urlPath = `/v1/documents/{path_part_id}/checkout`;
|
|
123
|
+
urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
|
|
124
|
+
return {
|
|
125
|
+
path: urlPath,
|
|
126
|
+
method: 'GET',
|
|
127
|
+
headers: headerParameters,
|
|
128
|
+
query: queryParameters,
|
|
129
|
+
};
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* 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).
|
|
134
|
+
* Get Document Checkout Handler
|
|
135
|
+
*/
|
|
136
|
+
getDocumentCheckoutRaw(requestParameters, initOverrides) {
|
|
137
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
138
|
+
const requestOptions = yield this.getDocumentCheckoutRequestOpts(requestParameters);
|
|
139
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
140
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DocumentCheckoutResponseFromJSON)(jsonValue));
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* 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).
|
|
145
|
+
* Get Document Checkout Handler
|
|
146
|
+
*/
|
|
147
|
+
getDocumentCheckout(requestParameters, initOverrides) {
|
|
148
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
149
|
+
const response = yield this.getDocumentCheckoutRaw(requestParameters, initOverrides);
|
|
150
|
+
return yield response.value();
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Creates request options for releaseDocumentCheckout without sending the request
|
|
155
|
+
*/
|
|
156
|
+
releaseDocumentCheckoutRequestOpts(requestParameters) {
|
|
157
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
158
|
+
if (requestParameters['pathPartId'] == null) {
|
|
159
|
+
throw new runtime.RequiredError('pathPartId', 'Required parameter "pathPartId" was null or undefined when calling releaseDocumentCheckout().');
|
|
160
|
+
}
|
|
161
|
+
const queryParameters = {};
|
|
162
|
+
const headerParameters = {};
|
|
163
|
+
if (requestParameters['authorization'] != null) {
|
|
164
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
165
|
+
}
|
|
166
|
+
let urlPath = `/v1/documents/{path_part_id}/checkout`;
|
|
167
|
+
urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
|
|
168
|
+
return {
|
|
169
|
+
path: urlPath,
|
|
170
|
+
method: 'DELETE',
|
|
171
|
+
headers: headerParameters,
|
|
172
|
+
query: queryParameters,
|
|
173
|
+
};
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* 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).
|
|
178
|
+
* Release Document Checkout Handler
|
|
179
|
+
*/
|
|
180
|
+
releaseDocumentCheckoutRaw(requestParameters, initOverrides) {
|
|
181
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
182
|
+
const requestOptions = yield this.releaseDocumentCheckoutRequestOpts(requestParameters);
|
|
183
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
184
|
+
return new runtime.VoidApiResponse(response);
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* 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).
|
|
189
|
+
* Release Document Checkout Handler
|
|
190
|
+
*/
|
|
191
|
+
releaseDocumentCheckout(requestParameters, initOverrides) {
|
|
192
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
193
|
+
yield this.releaseDocumentCheckoutRaw(requestParameters, initOverrides);
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
exports.DocumentCheckoutApi = DocumentCheckoutApi;
|