@knowledge-stack/ksapi 1.82.0 → 1.84.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 (172) hide show
  1. package/.openapi-generator/FILES +26 -0
  2. package/README.md +26 -2
  3. package/dist/apis/PathPartsApi.d.ts +110 -1
  4. package/dist/apis/PathPartsApi.js +111 -0
  5. package/dist/apis/WorkflowMemoryApi.d.ts +249 -0
  6. package/dist/apis/WorkflowMemoryApi.js +299 -0
  7. package/dist/apis/WorkflowRunsApi.d.ts +233 -1
  8. package/dist/apis/WorkflowRunsApi.js +236 -0
  9. package/dist/apis/index.d.ts +1 -0
  10. package/dist/apis/index.js +1 -0
  11. package/dist/esm/apis/PathPartsApi.d.ts +110 -1
  12. package/dist/esm/apis/PathPartsApi.js +112 -1
  13. package/dist/esm/apis/WorkflowMemoryApi.d.ts +249 -0
  14. package/dist/esm/apis/WorkflowMemoryApi.js +262 -0
  15. package/dist/esm/apis/WorkflowRunsApi.d.ts +233 -1
  16. package/dist/esm/apis/WorkflowRunsApi.js +237 -1
  17. package/dist/esm/apis/index.d.ts +1 -0
  18. package/dist/esm/apis/index.js +1 -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 +7 -1
  28. package/dist/esm/models/CreateWorkflowDefinitionRequest.js +2 -0
  29. package/dist/esm/models/DocumentVersionMetadata.d.ts +4 -4
  30. package/dist/esm/models/DocumentVersionMetadataUpdate.d.ts +2 -2
  31. package/dist/esm/models/EditMemoryChunkRequest.d.ts +47 -0
  32. package/dist/esm/models/EditMemoryChunkRequest.js +49 -0
  33. package/dist/esm/models/EventResponse.d.ts +83 -0
  34. package/dist/esm/models/EventResponse.js +64 -0
  35. package/dist/esm/models/ListMemoryChunksResponse.d.ts +48 -0
  36. package/dist/esm/models/ListMemoryChunksResponse.js +45 -0
  37. package/dist/esm/models/MemoryChunkResponse.d.ts +60 -0
  38. package/dist/esm/models/MemoryChunkResponse.js +53 -0
  39. package/dist/esm/models/MemoryKind.d.ts +29 -0
  40. package/dist/esm/models/MemoryKind.js +47 -0
  41. package/dist/esm/models/PaginatedResponseEventResponse.d.ts +66 -0
  42. package/dist/esm/models/PaginatedResponseEventResponse.js +70 -0
  43. package/dist/esm/models/PathPartApprovalDecision.d.ts +30 -0
  44. package/dist/esm/models/PathPartApprovalDecision.js +48 -0
  45. package/dist/esm/models/PathPartApprovalResponse.d.ts +111 -0
  46. package/dist/esm/models/PathPartApprovalResponse.js +85 -0
  47. package/dist/esm/models/RejectFileRequest.d.ts +47 -0
  48. package/dist/esm/models/RejectFileRequest.js +49 -0
  49. package/dist/esm/models/RunLockResponse.d.ts +59 -0
  50. package/dist/esm/models/RunLockResponse.js +52 -0
  51. package/dist/esm/models/ScoredChunkResponse.d.ts +4 -4
  52. package/dist/esm/models/SectionSystemMetadata.d.ts +1 -1
  53. package/dist/esm/models/TenantSettingsUpdate.d.ts +2 -2
  54. package/dist/esm/models/ThreadMessageDetailsInput.d.ts +2 -2
  55. package/dist/esm/models/ThreadMessageDetailsOutput.d.ts +2 -2
  56. package/dist/esm/models/ThreadMessageResponse.d.ts +2 -2
  57. package/dist/esm/models/UpdateChunkMetadataRequest.d.ts +2 -2
  58. package/dist/esm/models/UpdateTenantRequest.d.ts +4 -4
  59. package/dist/esm/models/UpdateWorkflowDefinitionRequest.d.ts +7 -1
  60. package/dist/esm/models/UpdateWorkflowDefinitionRequest.js +2 -0
  61. package/dist/esm/models/WorkflowDefinitionResponse.d.ts +7 -1
  62. package/dist/esm/models/WorkflowDefinitionResponse.js +4 -0
  63. package/dist/esm/models/WorkflowRunSnapshot.d.ts +1 -1
  64. package/dist/esm/models/WorkflowRunStatus.d.ts +20 -2
  65. package/dist/esm/models/WorkflowRunStatus.js +20 -2
  66. package/dist/esm/models/index.d.ts +12 -0
  67. package/dist/esm/models/index.js +12 -0
  68. package/dist/models/AppendEventRequest.d.ts +62 -0
  69. package/dist/models/AppendEventRequest.js +59 -0
  70. package/dist/models/AppendMemoryChunkRequest.d.ts +54 -0
  71. package/dist/models/AppendMemoryChunkRequest.js +60 -0
  72. package/dist/models/ChunkBulkResponse.d.ts +4 -4
  73. package/dist/models/ChunkContentItem.d.ts +2 -2
  74. package/dist/models/ChunkResponse.d.ts +4 -4
  75. package/dist/models/CreateThreadMessageRequest.d.ts +2 -2
  76. package/dist/models/CreateWorkflowDefinitionRequest.d.ts +7 -1
  77. package/dist/models/CreateWorkflowDefinitionRequest.js +2 -0
  78. package/dist/models/DocumentVersionMetadata.d.ts +4 -4
  79. package/dist/models/DocumentVersionMetadataUpdate.d.ts +2 -2
  80. package/dist/models/EditMemoryChunkRequest.d.ts +47 -0
  81. package/dist/models/EditMemoryChunkRequest.js +57 -0
  82. package/dist/models/EventResponse.d.ts +83 -0
  83. package/dist/models/EventResponse.js +72 -0
  84. package/dist/models/ListMemoryChunksResponse.d.ts +48 -0
  85. package/dist/models/ListMemoryChunksResponse.js +53 -0
  86. package/dist/models/MemoryChunkResponse.d.ts +60 -0
  87. package/dist/models/MemoryChunkResponse.js +61 -0
  88. package/dist/models/MemoryKind.d.ts +29 -0
  89. package/dist/models/MemoryKind.js +55 -0
  90. package/dist/models/PaginatedResponseEventResponse.d.ts +66 -0
  91. package/dist/models/PaginatedResponseEventResponse.js +78 -0
  92. package/dist/models/PathPartApprovalDecision.d.ts +30 -0
  93. package/dist/models/PathPartApprovalDecision.js +56 -0
  94. package/dist/models/PathPartApprovalResponse.d.ts +111 -0
  95. package/dist/models/PathPartApprovalResponse.js +93 -0
  96. package/dist/models/RejectFileRequest.d.ts +47 -0
  97. package/dist/models/RejectFileRequest.js +57 -0
  98. package/dist/models/RunLockResponse.d.ts +59 -0
  99. package/dist/models/RunLockResponse.js +60 -0
  100. package/dist/models/ScoredChunkResponse.d.ts +4 -4
  101. package/dist/models/SectionSystemMetadata.d.ts +1 -1
  102. package/dist/models/TenantSettingsUpdate.d.ts +2 -2
  103. package/dist/models/ThreadMessageDetailsInput.d.ts +2 -2
  104. package/dist/models/ThreadMessageDetailsOutput.d.ts +2 -2
  105. package/dist/models/ThreadMessageResponse.d.ts +2 -2
  106. package/dist/models/UpdateChunkMetadataRequest.d.ts +2 -2
  107. package/dist/models/UpdateTenantRequest.d.ts +4 -4
  108. package/dist/models/UpdateWorkflowDefinitionRequest.d.ts +7 -1
  109. package/dist/models/UpdateWorkflowDefinitionRequest.js +2 -0
  110. package/dist/models/WorkflowDefinitionResponse.d.ts +7 -1
  111. package/dist/models/WorkflowDefinitionResponse.js +4 -0
  112. package/dist/models/WorkflowRunSnapshot.d.ts +1 -1
  113. package/dist/models/WorkflowRunStatus.d.ts +20 -2
  114. package/dist/models/WorkflowRunStatus.js +20 -2
  115. package/dist/models/index.d.ts +12 -0
  116. package/dist/models/index.js +12 -0
  117. package/docs/AppendEventRequest.md +37 -0
  118. package/docs/AppendMemoryChunkRequest.md +36 -0
  119. package/docs/CreateWorkflowDefinitionRequest.md +2 -0
  120. package/docs/EditMemoryChunkRequest.md +34 -0
  121. package/docs/EventResponse.md +45 -0
  122. package/docs/ListMemoryChunksResponse.md +34 -0
  123. package/docs/MemoryChunkResponse.md +39 -0
  124. package/docs/MemoryKind.md +33 -0
  125. package/docs/PaginatedResponseEventResponse.md +40 -0
  126. package/docs/PathPartApprovalDecision.md +33 -0
  127. package/docs/PathPartApprovalResponse.md +55 -0
  128. package/docs/PathPartsApi.md +171 -0
  129. package/docs/RejectFileRequest.md +35 -0
  130. package/docs/RunLockResponse.md +39 -0
  131. package/docs/UpdateWorkflowDefinitionRequest.md +2 -0
  132. package/docs/WorkflowDefinitionResponse.md +2 -0
  133. package/docs/WorkflowMemoryApi.md +390 -0
  134. package/docs/WorkflowRunStatus.md +1 -1
  135. package/docs/WorkflowRunsApi.md +387 -0
  136. package/package.json +1 -1
  137. package/src/apis/PathPartsApi.ts +234 -0
  138. package/src/apis/WorkflowMemoryApi.ts +522 -0
  139. package/src/apis/WorkflowRunsApi.ts +479 -0
  140. package/src/apis/index.ts +1 -0
  141. package/src/models/AppendEventRequest.ts +102 -0
  142. package/src/models/AppendMemoryChunkRequest.ts +105 -0
  143. package/src/models/ChunkBulkResponse.ts +4 -4
  144. package/src/models/ChunkContentItem.ts +2 -2
  145. package/src/models/ChunkResponse.ts +4 -4
  146. package/src/models/CreateThreadMessageRequest.ts +2 -2
  147. package/src/models/CreateWorkflowDefinitionRequest.ts +9 -1
  148. package/src/models/DocumentVersionMetadata.ts +4 -4
  149. package/src/models/DocumentVersionMetadataUpdate.ts +2 -2
  150. package/src/models/EditMemoryChunkRequest.ts +87 -0
  151. package/src/models/EventResponse.ts +132 -0
  152. package/src/models/ListMemoryChunksResponse.ts +91 -0
  153. package/src/models/MemoryChunkResponse.ts +111 -0
  154. package/src/models/MemoryKind.ts +57 -0
  155. package/src/models/PaginatedResponseEventResponse.ts +130 -0
  156. package/src/models/PathPartApprovalDecision.ts +58 -0
  157. package/src/models/PathPartApprovalResponse.ts +186 -0
  158. package/src/models/RejectFileRequest.ts +87 -0
  159. package/src/models/RunLockResponse.ts +101 -0
  160. package/src/models/ScoredChunkResponse.ts +4 -4
  161. package/src/models/SectionSystemMetadata.ts +1 -1
  162. package/src/models/TenantSettingsUpdate.ts +2 -2
  163. package/src/models/ThreadMessageDetailsInput.ts +2 -2
  164. package/src/models/ThreadMessageDetailsOutput.ts +2 -2
  165. package/src/models/ThreadMessageResponse.ts +2 -2
  166. package/src/models/UpdateChunkMetadataRequest.ts +2 -2
  167. package/src/models/UpdateTenantRequest.ts +4 -4
  168. package/src/models/UpdateWorkflowDefinitionRequest.ts +9 -1
  169. package/src/models/WorkflowDefinitionResponse.ts +10 -1
  170. package/src/models/WorkflowRunSnapshot.ts +1 -1
  171. package/src/models/WorkflowRunStatus.ts +20 -2
  172. package/src/models/index.ts +12 -0
@@ -0,0 +1,33 @@
1
+
2
+ # PathPartApprovalDecision
3
+
4
+ Per-file review status within a run (SeaHonor pilot). Now retained as the audit-history record (one row per (run, file)); the current state of truth is ``path_part.approval_state``. The service dual-writes both.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { PathPartApprovalDecision } from '@knowledge-stack/ksapi'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ } satisfies PathPartApprovalDecision
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 PathPartApprovalDecision
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,55 @@
1
+
2
+ # PathPartApprovalResponse
3
+
4
+ Approval audit-history row over any path_part (file or folder). ``run_id`` is optional — None when the path_part was approved directly without a workflow-run context.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `id` | string
11
+ `runId` | string
12
+ `pathPartId` | string
13
+ `status` | [PathPartApprovalDecision](PathPartApprovalDecision.md)
14
+ `reviewerId` | string
15
+ `reviewedAt` | Date
16
+ `rejectionReason` | string
17
+ `unapprovedBy` | string
18
+ `unapprovedAt` | Date
19
+ `createdAt` | Date
20
+ `updatedAt` | Date
21
+
22
+ ## Example
23
+
24
+ ```typescript
25
+ import type { PathPartApprovalResponse } from '@knowledge-stack/ksapi'
26
+
27
+ // TODO: Update the object below with actual values
28
+ const example = {
29
+ "id": null,
30
+ "runId": null,
31
+ "pathPartId": null,
32
+ "status": null,
33
+ "reviewerId": null,
34
+ "reviewedAt": null,
35
+ "rejectionReason": null,
36
+ "unapprovedBy": null,
37
+ "unapprovedAt": null,
38
+ "createdAt": null,
39
+ "updatedAt": null,
40
+ } satisfies PathPartApprovalResponse
41
+
42
+ console.log(example)
43
+
44
+ // Convert the instance to a JSON string
45
+ const exampleJSON: string = JSON.stringify(example)
46
+ console.log(exampleJSON)
47
+
48
+ // Parse the JSON string back to an object
49
+ const exampleParsed = JSON.parse(exampleJSON) as PathPartApprovalResponse
50
+ console.log(exampleParsed)
51
+ ```
52
+
53
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
54
+
55
+
@@ -4,16 +4,95 @@ All URIs are relative to *http://localhost:8000*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  |------------- | ------------- | -------------|
7
+ | [**appendPathPartEvent**](PathPartsApi.md#appendpathpartevent) | **POST** /v1/path-parts/{path_part_id}/events | Append Path Part Event Handler |
7
8
  | [**bulkRemovePathPartTags**](PathPartsApi.md#bulkremovepathparttags) | **DELETE** /v1/path-parts/{path_part_id}/tags | Bulk Remove Path Part Tags Handler |
8
9
  | [**getPathPart**](PathPartsApi.md#getpathpart) | **GET** /v1/path-parts/{path_part_id} | Get Path Part Handler |
9
10
  | [**getPathPartAncestry**](PathPartsApi.md#getpathpartancestry) | **GET** /v1/path-parts/{path_part_id}/ancestry | Get Path Part Ancestry Handler |
10
11
  | [**getPathPartSubtreeChunks**](PathPartsApi.md#getpathpartsubtreechunks) | **GET** /v1/path-parts/{path_part_id}/subtree_chunks | Get Path Part Subtree Chunks Handler |
11
12
  | [**getPathPartTags**](PathPartsApi.md#getpathparttags) | **GET** /v1/path-parts/{path_part_id}/tags | Get Path Part Tags Handler |
13
+ | [**listPathPartEvents**](PathPartsApi.md#listpathpartevents) | **GET** /v1/path-parts/{path_part_id}/events | List Path Part Events Handler |
12
14
  | [**listPathParts**](PathPartsApi.md#listpathparts) | **GET** /v1/path-parts | List Path Parts Handler |
13
15
  | [**setPathPartTags**](PathPartsApi.md#setpathparttags) | **POST** /v1/path-parts/{path_part_id}/tags | Set Path Part Tags Handler |
14
16
 
15
17
 
16
18
 
19
+ ## appendPathPartEvent
20
+
21
+ > EventResponse appendPathPartEvent(pathPartId, appendEventRequest, authorization, ksUat)
22
+
23
+ Append Path Part Event Handler
24
+
25
+ Record an event for a subject path_part from the frontend. Auth: caller must hold ``can_write`` on the subject\'s materialized_path (OWNER/ADMIN bypass). Server stamps ``actor_user_id`` from the caller\'s identity — callers cannot impersonate other users on the audit trail. ``kind`` is free-form text but reserved server namespaces (``workflow.``, ``document.``, ``folder.``, ``permission.``, ``connector.``, ``query.``, ``auth.``, ``tenant.``) are rejected at 422 so clients cannot forge server-emitted audit events. Clients should namespace under ``client.*``. ``payload`` is capped at 64KB encoded JSON.
26
+
27
+ ### Example
28
+
29
+ ```ts
30
+ import {
31
+ Configuration,
32
+ PathPartsApi,
33
+ } from '@knowledge-stack/ksapi';
34
+ import type { AppendPathPartEventRequest } from '@knowledge-stack/ksapi';
35
+
36
+ async function example() {
37
+ console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
38
+ const api = new PathPartsApi();
39
+
40
+ const body = {
41
+ // string
42
+ pathPartId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
43
+ // AppendEventRequest
44
+ appendEventRequest: ...,
45
+ // string (optional)
46
+ authorization: authorization_example,
47
+ // string (optional)
48
+ ksUat: ksUat_example,
49
+ } satisfies AppendPathPartEventRequest;
50
+
51
+ try {
52
+ const data = await api.appendPathPartEvent(body);
53
+ console.log(data);
54
+ } catch (error) {
55
+ console.error(error);
56
+ }
57
+ }
58
+
59
+ // Run the test
60
+ example().catch(console.error);
61
+ ```
62
+
63
+ ### Parameters
64
+
65
+
66
+ | Name | Type | Description | Notes |
67
+ |------------- | ------------- | ------------- | -------------|
68
+ | **pathPartId** | `string` | | [Defaults to `undefined`] |
69
+ | **appendEventRequest** | [AppendEventRequest](AppendEventRequest.md) | | |
70
+ | **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
71
+ | **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
72
+
73
+ ### Return type
74
+
75
+ [**EventResponse**](EventResponse.md)
76
+
77
+ ### Authorization
78
+
79
+ No authorization required
80
+
81
+ ### HTTP request headers
82
+
83
+ - **Content-Type**: `application/json`
84
+ - **Accept**: `application/json`
85
+
86
+
87
+ ### HTTP response details
88
+ | Status code | Description | Response headers |
89
+ |-------------|-------------|------------------|
90
+ | **201** | Successful Response | - |
91
+ | **422** | Validation Error | - |
92
+
93
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
94
+
95
+
17
96
  ## bulkRemovePathPartTags
18
97
 
19
98
  > PathPartTagsResponse bulkRemovePathPartTags(pathPartId, bulkTagRequest, authorization, ksUat)
@@ -390,6 +469,98 @@ No authorization required
390
469
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
391
470
 
392
471
 
472
+ ## listPathPartEvents
473
+
474
+ > PaginatedResponseEventResponse listPathPartEvents(pathPartId, kind, since, until, recursive, limit, offset, authorization, ksUat)
475
+
476
+ List Path Part Events Handler
477
+
478
+ List events anchored to a specific path_part subject. Subject permission is enforced via the existing ``PathPermissionService`` — caller must have ``can_read`` on the subject\'s materialized_path (OWNER/ADMIN bypass). Events are ordered newest-first by ``ts`` and paginated. When ``recursive=True``, events on any descendant of the subject are included — useful for \"all events under this folder\" or \"all events under this workflow definition\".
479
+
480
+ ### Example
481
+
482
+ ```ts
483
+ import {
484
+ Configuration,
485
+ PathPartsApi,
486
+ } from '@knowledge-stack/ksapi';
487
+ import type { ListPathPartEventsRequest } from '@knowledge-stack/ksapi';
488
+
489
+ async function example() {
490
+ console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
491
+ const api = new PathPartsApi();
492
+
493
+ const body = {
494
+ // string
495
+ pathPartId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
496
+ // string | Filter to a single event kind (optional)
497
+ kind: kind_example,
498
+ // Date | Only events at or after this timestamp (optional)
499
+ since: 2013-10-20T19:20:30+01:00,
500
+ // Date | Only events strictly before this timestamp (optional)
501
+ until: 2013-10-20T19:20:30+01:00,
502
+ // boolean | Include events from descendant path_parts as well as the subject itself (optional)
503
+ recursive: true,
504
+ // number | Number of items per page (optional)
505
+ limit: 56,
506
+ // number | Number of items to skip (optional)
507
+ offset: 56,
508
+ // string (optional)
509
+ authorization: authorization_example,
510
+ // string (optional)
511
+ ksUat: ksUat_example,
512
+ } satisfies ListPathPartEventsRequest;
513
+
514
+ try {
515
+ const data = await api.listPathPartEvents(body);
516
+ console.log(data);
517
+ } catch (error) {
518
+ console.error(error);
519
+ }
520
+ }
521
+
522
+ // Run the test
523
+ example().catch(console.error);
524
+ ```
525
+
526
+ ### Parameters
527
+
528
+
529
+ | Name | Type | Description | Notes |
530
+ |------------- | ------------- | ------------- | -------------|
531
+ | **pathPartId** | `string` | | [Defaults to `undefined`] |
532
+ | **kind** | `string` | Filter to a single event kind | [Optional] [Defaults to `undefined`] |
533
+ | **since** | `Date` | Only events at or after this timestamp | [Optional] [Defaults to `undefined`] |
534
+ | **until** | `Date` | Only events strictly before this timestamp | [Optional] [Defaults to `undefined`] |
535
+ | **recursive** | `boolean` | Include events from descendant path_parts as well as the subject itself | [Optional] [Defaults to `false`] |
536
+ | **limit** | `number` | Number of items per page | [Optional] [Defaults to `20`] |
537
+ | **offset** | `number` | Number of items to skip | [Optional] [Defaults to `0`] |
538
+ | **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
539
+ | **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
540
+
541
+ ### Return type
542
+
543
+ [**PaginatedResponseEventResponse**](PaginatedResponseEventResponse.md)
544
+
545
+ ### Authorization
546
+
547
+ No authorization required
548
+
549
+ ### HTTP request headers
550
+
551
+ - **Content-Type**: Not defined
552
+ - **Accept**: `application/json`
553
+
554
+
555
+ ### HTTP response details
556
+ | Status code | Description | Response headers |
557
+ |-------------|-------------|------------------|
558
+ | **200** | Successful Response | - |
559
+ | **422** | Validation Error | - |
560
+
561
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
562
+
563
+
393
564
  ## listPathParts
394
565
 
395
566
  > PaginatedResponsePathPartResponse listPathParts(parentPathId, maxDepth, sortOrder, limit, offset, authorization, ksUat)
@@ -0,0 +1,35 @@
1
+
2
+ # RejectFileRequest
3
+
4
+ Body for ``POST /workflow-runs/{run}/files/{file}/reject``.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `reason` | string
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { RejectFileRequest } from '@knowledge-stack/ksapi'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "reason": null,
20
+ } satisfies RejectFileRequest
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 RejectFileRequest
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
+
@@ -0,0 +1,39 @@
1
+
2
+ # RunLockResponse
3
+
4
+ Reviewer-lock state on a workflow run.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `runId` | string
11
+ `lockUserId` | string
12
+ `lockAcquiredAt` | Date
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { RunLockResponse } from '@knowledge-stack/ksapi'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "runId": null,
22
+ "lockUserId": null,
23
+ "lockAcquiredAt": null,
24
+ } satisfies RunLockResponse
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 RunLockResponse
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
+
@@ -17,6 +17,7 @@ Name | Type
17
17
  `outputPathPartIds` | Array<string>
18
18
  `templatePathPartId` | string
19
19
  `isActive` | boolean
20
+ `approvalRequired` | boolean
20
21
 
21
22
  ## Example
22
23
 
@@ -35,6 +36,7 @@ const example = {
35
36
  "outputPathPartIds": null,
36
37
  "templatePathPartId": null,
37
38
  "isActive": null,
39
+ "approvalRequired": null,
38
40
  } satisfies UpdateWorkflowDefinitionRequest
39
41
 
40
42
  console.log(example)
@@ -18,6 +18,7 @@ Name | Type
18
18
  `outputPathPartIds` | Array<string>
19
19
  `templatePathPartId` | string
20
20
  `isActive` | boolean
21
+ `approvalRequired` | boolean
21
22
  `createdAt` | Date
22
23
  `updatedAt` | Date
23
24
 
@@ -39,6 +40,7 @@ const example = {
39
40
  "outputPathPartIds": null,
40
41
  "templatePathPartId": null,
41
42
  "isActive": null,
43
+ "approvalRequired": null,
42
44
  "createdAt": null,
43
45
  "updatedAt": null,
44
46
  } satisfies WorkflowDefinitionResponse