@knowledge-stack/ksapi 1.82.0 → 1.83.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 +8 -0
- package/README.md +11 -2
- package/dist/apis/WorkflowRunsApi.d.ts +233 -1
- package/dist/apis/WorkflowRunsApi.js +236 -0
- package/dist/esm/apis/WorkflowRunsApi.d.ts +233 -1
- package/dist/esm/apis/WorkflowRunsApi.js +237 -1
- package/dist/esm/models/CreateWorkflowDefinitionRequest.d.ts +6 -0
- package/dist/esm/models/CreateWorkflowDefinitionRequest.js +2 -0
- package/dist/esm/models/PathPartApprovalDecision.d.ts +30 -0
- package/dist/esm/models/PathPartApprovalDecision.js +48 -0
- package/dist/esm/models/PathPartApprovalResponse.d.ts +111 -0
- package/dist/esm/models/PathPartApprovalResponse.js +85 -0
- package/dist/esm/models/RejectFileRequest.d.ts +47 -0
- package/dist/esm/models/RejectFileRequest.js +49 -0
- package/dist/esm/models/RunLockResponse.d.ts +59 -0
- package/dist/esm/models/RunLockResponse.js +52 -0
- package/dist/esm/models/UpdateWorkflowDefinitionRequest.d.ts +6 -0
- package/dist/esm/models/UpdateWorkflowDefinitionRequest.js +2 -0
- package/dist/esm/models/WorkflowDefinitionResponse.d.ts +6 -0
- package/dist/esm/models/WorkflowDefinitionResponse.js +4 -0
- package/dist/esm/models/WorkflowRunStatus.d.ts +20 -2
- package/dist/esm/models/WorkflowRunStatus.js +20 -2
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/CreateWorkflowDefinitionRequest.d.ts +6 -0
- package/dist/models/CreateWorkflowDefinitionRequest.js +2 -0
- package/dist/models/PathPartApprovalDecision.d.ts +30 -0
- package/dist/models/PathPartApprovalDecision.js +56 -0
- package/dist/models/PathPartApprovalResponse.d.ts +111 -0
- package/dist/models/PathPartApprovalResponse.js +93 -0
- package/dist/models/RejectFileRequest.d.ts +47 -0
- package/dist/models/RejectFileRequest.js +57 -0
- package/dist/models/RunLockResponse.d.ts +59 -0
- package/dist/models/RunLockResponse.js +60 -0
- package/dist/models/UpdateWorkflowDefinitionRequest.d.ts +6 -0
- package/dist/models/UpdateWorkflowDefinitionRequest.js +2 -0
- package/dist/models/WorkflowDefinitionResponse.d.ts +6 -0
- package/dist/models/WorkflowDefinitionResponse.js +4 -0
- package/dist/models/WorkflowRunStatus.d.ts +20 -2
- package/dist/models/WorkflowRunStatus.js +20 -2
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/docs/CreateWorkflowDefinitionRequest.md +2 -0
- package/docs/PathPartApprovalDecision.md +33 -0
- package/docs/PathPartApprovalResponse.md +55 -0
- package/docs/RejectFileRequest.md +35 -0
- package/docs/RunLockResponse.md +39 -0
- package/docs/UpdateWorkflowDefinitionRequest.md +2 -0
- package/docs/WorkflowDefinitionResponse.md +2 -0
- package/docs/WorkflowRunStatus.md +1 -1
- package/docs/WorkflowRunsApi.md +387 -0
- package/package.json +1 -1
- package/src/apis/WorkflowRunsApi.ts +479 -0
- package/src/models/CreateWorkflowDefinitionRequest.ts +8 -0
- package/src/models/PathPartApprovalDecision.ts +58 -0
- package/src/models/PathPartApprovalResponse.ts +186 -0
- package/src/models/RejectFileRequest.ts +87 -0
- package/src/models/RunLockResponse.ts +101 -0
- package/src/models/UpdateWorkflowDefinitionRequest.ts +8 -0
- package/src/models/WorkflowDefinitionResponse.ts +9 -0
- package/src/models/WorkflowRunStatus.ts +20 -2
- package/src/models/index.ts +4 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -132,6 +132,8 @@ docs/PasswordResetRequest.md
|
|
|
132
132
|
docs/PasswordResetWithTokenRequest.md
|
|
133
133
|
docs/PathOrder.md
|
|
134
134
|
docs/PathPartAncestorItem.md
|
|
135
|
+
docs/PathPartApprovalDecision.md
|
|
136
|
+
docs/PathPartApprovalResponse.md
|
|
135
137
|
docs/PathPartResponse.md
|
|
136
138
|
docs/PathPartTagsResponse.md
|
|
137
139
|
docs/PathPartsApi.md
|
|
@@ -143,9 +145,11 @@ docs/Polygon.md
|
|
|
143
145
|
docs/PolygonReference.md
|
|
144
146
|
docs/PublicApi.md
|
|
145
147
|
docs/ReferenceType.md
|
|
148
|
+
docs/RejectFileRequest.md
|
|
146
149
|
docs/ResolvedReferenceInput.md
|
|
147
150
|
docs/ResolvedReferenceOutput.md
|
|
148
151
|
docs/RootResponse.md
|
|
152
|
+
docs/RunLockResponse.md
|
|
149
153
|
docs/SSOInitiateResponse.md
|
|
150
154
|
docs/ScoredChunkResponse.md
|
|
151
155
|
docs/SearchSortOrder.md
|
|
@@ -374,6 +378,8 @@ src/models/PasswordResetRequest.ts
|
|
|
374
378
|
src/models/PasswordResetWithTokenRequest.ts
|
|
375
379
|
src/models/PathOrder.ts
|
|
376
380
|
src/models/PathPartAncestorItem.ts
|
|
381
|
+
src/models/PathPartApprovalDecision.ts
|
|
382
|
+
src/models/PathPartApprovalResponse.ts
|
|
377
383
|
src/models/PathPartResponse.ts
|
|
378
384
|
src/models/PathPartTagsResponse.ts
|
|
379
385
|
src/models/PermissionCapability.ts
|
|
@@ -383,9 +389,11 @@ src/models/PipelineStatus.ts
|
|
|
383
389
|
src/models/Polygon.ts
|
|
384
390
|
src/models/PolygonReference.ts
|
|
385
391
|
src/models/ReferenceType.ts
|
|
392
|
+
src/models/RejectFileRequest.ts
|
|
386
393
|
src/models/ResolvedReferenceInput.ts
|
|
387
394
|
src/models/ResolvedReferenceOutput.ts
|
|
388
395
|
src/models/RootResponse.ts
|
|
396
|
+
src/models/RunLockResponse.ts
|
|
389
397
|
src/models/SSOInitiateResponse.ts
|
|
390
398
|
src/models/ScoredChunkResponse.ts
|
|
391
399
|
src/models/SearchSortOrder.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @knowledge-stack/ksapi@1.
|
|
1
|
+
# @knowledge-stack/ksapi@1.83.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -191,8 +191,13 @@ All URIs are relative to *http://localhost:8000*
|
|
|
191
191
|
*WorkflowDefinitionsApi* | [**listWorkflowDefinitions**](docs/WorkflowDefinitionsApi.md#listworkflowdefinitions) | **GET** /v1/workflow-definitions | List Workflow Definitions Handler
|
|
192
192
|
*WorkflowDefinitionsApi* | [**listWorkflowRuns**](docs/WorkflowDefinitionsApi.md#listworkflowruns) | **GET** /v1/workflow-definitions/{definition_id}/runs | List Workflow Runs Handler
|
|
193
193
|
*WorkflowDefinitionsApi* | [**updateWorkflowDefinition**](docs/WorkflowDefinitionsApi.md#updateworkflowdefinitionoperation) | **PUT** /v1/workflow-definitions/{definition_id} | Update Workflow Definition Handler
|
|
194
|
+
*WorkflowRunsApi* | [**acquireWorkflowRunLock**](docs/WorkflowRunsApi.md#acquireworkflowrunlock) | **POST** /v1/workflow-runs/{run_id}/lock | Acquire Workflow Run Lock Handler
|
|
195
|
+
*WorkflowRunsApi* | [**approveWorkflowRunFile**](docs/WorkflowRunsApi.md#approveworkflowrunfile) | **POST** /v1/workflow-runs/{run_id}/files/{path_part_id}/approve | Approve Workflow Run File Handler
|
|
194
196
|
*WorkflowRunsApi* | [**deleteWorkflowRun**](docs/WorkflowRunsApi.md#deleteworkflowrun) | **DELETE** /v1/workflow-runs/{run_id} | Delete Workflow Run Handler
|
|
195
197
|
*WorkflowRunsApi* | [**getWorkflowRun**](docs/WorkflowRunsApi.md#getworkflowrun) | **GET** /v1/workflow-runs/{run_id} | Get Workflow Run Handler
|
|
198
|
+
*WorkflowRunsApi* | [**rejectWorkflowRunFile**](docs/WorkflowRunsApi.md#rejectworkflowrunfile) | **POST** /v1/workflow-runs/{run_id}/files/{path_part_id}/reject | Reject Workflow Run File Handler
|
|
199
|
+
*WorkflowRunsApi* | [**releaseWorkflowRunLock**](docs/WorkflowRunsApi.md#releaseworkflowrunlock) | **DELETE** /v1/workflow-runs/{run_id}/lock | Release Workflow Run Lock Handler
|
|
200
|
+
*WorkflowRunsApi* | [**unapproveWorkflowRunFile**](docs/WorkflowRunsApi.md#unapproveworkflowrunfile) | **POST** /v1/workflow-runs/{run_id}/files/{path_part_id}/unapprove | Unapprove Workflow Run File Handler
|
|
196
201
|
*WorkflowRunsApi* | [**workflowRunCallback**](docs/WorkflowRunsApi.md#workflowruncallbackoperation) | **POST** /v1/workflow-runs/{run_id}/callback | Workflow Run Callback Handler
|
|
197
202
|
*WorkflowsApi* | [**cancelTemporalWorkflow**](docs/WorkflowsApi.md#canceltemporalworkflow) | **DELETE** /v1/workflows/{workflow_id} | Cancel Temporal Workflow Handler
|
|
198
203
|
*WorkflowsApi* | [**dvWorkflowRerun**](docs/WorkflowsApi.md#dvworkflowrerun) | **POST** /v1/workflows/document_versions/{workflow_id} | Dv Workflow Rerun Handler
|
|
@@ -321,6 +326,8 @@ All URIs are relative to *http://localhost:8000*
|
|
|
321
326
|
- [PasswordResetWithTokenRequest](docs/PasswordResetWithTokenRequest.md)
|
|
322
327
|
- [PathOrder](docs/PathOrder.md)
|
|
323
328
|
- [PathPartAncestorItem](docs/PathPartAncestorItem.md)
|
|
329
|
+
- [PathPartApprovalDecision](docs/PathPartApprovalDecision.md)
|
|
330
|
+
- [PathPartApprovalResponse](docs/PathPartApprovalResponse.md)
|
|
324
331
|
- [PathPartResponse](docs/PathPartResponse.md)
|
|
325
332
|
- [PathPartTagsResponse](docs/PathPartTagsResponse.md)
|
|
326
333
|
- [PermissionCapability](docs/PermissionCapability.md)
|
|
@@ -330,9 +337,11 @@ All URIs are relative to *http://localhost:8000*
|
|
|
330
337
|
- [Polygon](docs/Polygon.md)
|
|
331
338
|
- [PolygonReference](docs/PolygonReference.md)
|
|
332
339
|
- [ReferenceType](docs/ReferenceType.md)
|
|
340
|
+
- [RejectFileRequest](docs/RejectFileRequest.md)
|
|
333
341
|
- [ResolvedReferenceInput](docs/ResolvedReferenceInput.md)
|
|
334
342
|
- [ResolvedReferenceOutput](docs/ResolvedReferenceOutput.md)
|
|
335
343
|
- [RootResponse](docs/RootResponse.md)
|
|
344
|
+
- [RunLockResponse](docs/RunLockResponse.md)
|
|
336
345
|
- [SSOInitiateResponse](docs/SSOInitiateResponse.md)
|
|
337
346
|
- [ScoredChunkResponse](docs/ScoredChunkResponse.md)
|
|
338
347
|
- [SearchSortOrder](docs/SearchSortOrder.md)
|
|
@@ -415,7 +424,7 @@ and is automatically generated by the
|
|
|
415
424
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
416
425
|
|
|
417
426
|
- API version: `0.1.0`
|
|
418
|
-
- Package version: `1.
|
|
427
|
+
- Package version: `1.83.0`
|
|
419
428
|
- Generator version: `7.21.0`
|
|
420
429
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
421
430
|
|
|
@@ -10,7 +10,18 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { WorkflowCallbackResponse, WorkflowRunCallbackRequest, WorkflowRunResponse } from '../models/index';
|
|
13
|
+
import type { PathPartApprovalResponse, RejectFileRequest, RunLockResponse, WorkflowCallbackResponse, WorkflowRunCallbackRequest, WorkflowRunResponse } from '../models/index';
|
|
14
|
+
export interface AcquireWorkflowRunLockRequest {
|
|
15
|
+
runId: string;
|
|
16
|
+
authorization?: string | null;
|
|
17
|
+
ksUat?: string | null;
|
|
18
|
+
}
|
|
19
|
+
export interface ApproveWorkflowRunFileRequest {
|
|
20
|
+
runId: string;
|
|
21
|
+
pathPartId: string;
|
|
22
|
+
authorization?: string | null;
|
|
23
|
+
ksUat?: string | null;
|
|
24
|
+
}
|
|
14
25
|
export interface DeleteWorkflowRunRequest {
|
|
15
26
|
runId: string;
|
|
16
27
|
authorization?: string | null;
|
|
@@ -21,6 +32,24 @@ export interface GetWorkflowRunRequest {
|
|
|
21
32
|
authorization?: string | null;
|
|
22
33
|
ksUat?: string | null;
|
|
23
34
|
}
|
|
35
|
+
export interface RejectWorkflowRunFileRequest {
|
|
36
|
+
runId: string;
|
|
37
|
+
pathPartId: string;
|
|
38
|
+
rejectFileRequest: RejectFileRequest;
|
|
39
|
+
authorization?: string | null;
|
|
40
|
+
ksUat?: string | null;
|
|
41
|
+
}
|
|
42
|
+
export interface ReleaseWorkflowRunLockRequest {
|
|
43
|
+
runId: string;
|
|
44
|
+
authorization?: string | null;
|
|
45
|
+
ksUat?: string | null;
|
|
46
|
+
}
|
|
47
|
+
export interface UnapproveWorkflowRunFileRequest {
|
|
48
|
+
runId: string;
|
|
49
|
+
pathPartId: string;
|
|
50
|
+
authorization?: string | null;
|
|
51
|
+
ksUat?: string | null;
|
|
52
|
+
}
|
|
24
53
|
export interface WorkflowRunCallbackOperationRequest {
|
|
25
54
|
runId: string;
|
|
26
55
|
workflowRunCallbackRequest: WorkflowRunCallbackRequest;
|
|
@@ -32,6 +61,58 @@ export interface WorkflowRunCallbackOperationRequest {
|
|
|
32
61
|
* @interface WorkflowRunsApiInterface
|
|
33
62
|
*/
|
|
34
63
|
export interface WorkflowRunsApiInterface {
|
|
64
|
+
/**
|
|
65
|
+
* Creates request options for acquireWorkflowRunLock without sending the request
|
|
66
|
+
* @param {string} runId
|
|
67
|
+
* @param {string} [authorization]
|
|
68
|
+
* @param {string} [ksUat]
|
|
69
|
+
* @throws {RequiredError}
|
|
70
|
+
* @memberof WorkflowRunsApiInterface
|
|
71
|
+
*/
|
|
72
|
+
acquireWorkflowRunLockRequestOpts(requestParameters: AcquireWorkflowRunLockRequest): Promise<runtime.RequestOpts>;
|
|
73
|
+
/**
|
|
74
|
+
* Acquire (or renew) the reviewer lock on ``run_id``. The current holder may re-POST to refresh ``lock_acquired_at``. A different user receives 409 until the lock is released or auto-swept.
|
|
75
|
+
* @summary Acquire Workflow Run Lock Handler
|
|
76
|
+
* @param {string} runId
|
|
77
|
+
* @param {string} [authorization]
|
|
78
|
+
* @param {string} [ksUat]
|
|
79
|
+
* @param {*} [options] Override http request option.
|
|
80
|
+
* @throws {RequiredError}
|
|
81
|
+
* @memberof WorkflowRunsApiInterface
|
|
82
|
+
*/
|
|
83
|
+
acquireWorkflowRunLockRaw(requestParameters: AcquireWorkflowRunLockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RunLockResponse>>;
|
|
84
|
+
/**
|
|
85
|
+
* Acquire (or renew) the reviewer lock on ``run_id``. The current holder may re-POST to refresh ``lock_acquired_at``. A different user receives 409 until the lock is released or auto-swept.
|
|
86
|
+
* Acquire Workflow Run Lock Handler
|
|
87
|
+
*/
|
|
88
|
+
acquireWorkflowRunLock(requestParameters: AcquireWorkflowRunLockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RunLockResponse>;
|
|
89
|
+
/**
|
|
90
|
+
* Creates request options for approveWorkflowRunFile without sending the request
|
|
91
|
+
* @param {string} runId
|
|
92
|
+
* @param {string} pathPartId
|
|
93
|
+
* @param {string} [authorization]
|
|
94
|
+
* @param {string} [ksUat]
|
|
95
|
+
* @throws {RequiredError}
|
|
96
|
+
* @memberof WorkflowRunsApiInterface
|
|
97
|
+
*/
|
|
98
|
+
approveWorkflowRunFileRequestOpts(requestParameters: ApproveWorkflowRunFileRequest): Promise<runtime.RequestOpts>;
|
|
99
|
+
/**
|
|
100
|
+
* Approve a single generated file. Caller must hold the run lock.
|
|
101
|
+
* @summary Approve Workflow Run File Handler
|
|
102
|
+
* @param {string} runId
|
|
103
|
+
* @param {string} pathPartId
|
|
104
|
+
* @param {string} [authorization]
|
|
105
|
+
* @param {string} [ksUat]
|
|
106
|
+
* @param {*} [options] Override http request option.
|
|
107
|
+
* @throws {RequiredError}
|
|
108
|
+
* @memberof WorkflowRunsApiInterface
|
|
109
|
+
*/
|
|
110
|
+
approveWorkflowRunFileRaw(requestParameters: ApproveWorkflowRunFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PathPartApprovalResponse>>;
|
|
111
|
+
/**
|
|
112
|
+
* Approve a single generated file. Caller must hold the run lock.
|
|
113
|
+
* Approve Workflow Run File Handler
|
|
114
|
+
*/
|
|
115
|
+
approveWorkflowRunFile(requestParameters: ApproveWorkflowRunFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartApprovalResponse>;
|
|
35
116
|
/**
|
|
36
117
|
* Creates request options for deleteWorkflowRun without sending the request
|
|
37
118
|
* @param {string} runId
|
|
@@ -80,6 +161,87 @@ export interface WorkflowRunsApiInterface {
|
|
|
80
161
|
* Get Workflow Run Handler
|
|
81
162
|
*/
|
|
82
163
|
getWorkflowRun(requestParameters: GetWorkflowRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowRunResponse>;
|
|
164
|
+
/**
|
|
165
|
+
* Creates request options for rejectWorkflowRunFile without sending the request
|
|
166
|
+
* @param {string} runId
|
|
167
|
+
* @param {string} pathPartId
|
|
168
|
+
* @param {RejectFileRequest} rejectFileRequest
|
|
169
|
+
* @param {string} [authorization]
|
|
170
|
+
* @param {string} [ksUat]
|
|
171
|
+
* @throws {RequiredError}
|
|
172
|
+
* @memberof WorkflowRunsApiInterface
|
|
173
|
+
*/
|
|
174
|
+
rejectWorkflowRunFileRequestOpts(requestParameters: RejectWorkflowRunFileRequest): Promise<runtime.RequestOpts>;
|
|
175
|
+
/**
|
|
176
|
+
* Reject a single generated file with a reason. Caller must hold the run lock.
|
|
177
|
+
* @summary Reject Workflow Run File Handler
|
|
178
|
+
* @param {string} runId
|
|
179
|
+
* @param {string} pathPartId
|
|
180
|
+
* @param {RejectFileRequest} rejectFileRequest
|
|
181
|
+
* @param {string} [authorization]
|
|
182
|
+
* @param {string} [ksUat]
|
|
183
|
+
* @param {*} [options] Override http request option.
|
|
184
|
+
* @throws {RequiredError}
|
|
185
|
+
* @memberof WorkflowRunsApiInterface
|
|
186
|
+
*/
|
|
187
|
+
rejectWorkflowRunFileRaw(requestParameters: RejectWorkflowRunFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PathPartApprovalResponse>>;
|
|
188
|
+
/**
|
|
189
|
+
* Reject a single generated file with a reason. Caller must hold the run lock.
|
|
190
|
+
* Reject Workflow Run File Handler
|
|
191
|
+
*/
|
|
192
|
+
rejectWorkflowRunFile(requestParameters: RejectWorkflowRunFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartApprovalResponse>;
|
|
193
|
+
/**
|
|
194
|
+
* Creates request options for releaseWorkflowRunLock without sending the request
|
|
195
|
+
* @param {string} runId
|
|
196
|
+
* @param {string} [authorization]
|
|
197
|
+
* @param {string} [ksUat]
|
|
198
|
+
* @throws {RequiredError}
|
|
199
|
+
* @memberof WorkflowRunsApiInterface
|
|
200
|
+
*/
|
|
201
|
+
releaseWorkflowRunLockRequestOpts(requestParameters: ReleaseWorkflowRunLockRequest): Promise<runtime.RequestOpts>;
|
|
202
|
+
/**
|
|
203
|
+
* Release the reviewer lock; only the holder may call this. DELETE /lock is idempotent: returns 204 even if no lock is held.
|
|
204
|
+
* @summary Release Workflow Run Lock Handler
|
|
205
|
+
* @param {string} runId
|
|
206
|
+
* @param {string} [authorization]
|
|
207
|
+
* @param {string} [ksUat]
|
|
208
|
+
* @param {*} [options] Override http request option.
|
|
209
|
+
* @throws {RequiredError}
|
|
210
|
+
* @memberof WorkflowRunsApiInterface
|
|
211
|
+
*/
|
|
212
|
+
releaseWorkflowRunLockRaw(requestParameters: ReleaseWorkflowRunLockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
213
|
+
/**
|
|
214
|
+
* Release the reviewer lock; only the holder may call this. DELETE /lock is idempotent: returns 204 even if no lock is held.
|
|
215
|
+
* Release Workflow Run Lock Handler
|
|
216
|
+
*/
|
|
217
|
+
releaseWorkflowRunLock(requestParameters: ReleaseWorkflowRunLockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
218
|
+
/**
|
|
219
|
+
* Creates request options for unapproveWorkflowRunFile without sending the request
|
|
220
|
+
* @param {string} runId
|
|
221
|
+
* @param {string} pathPartId
|
|
222
|
+
* @param {string} [authorization]
|
|
223
|
+
* @param {string} [ksUat]
|
|
224
|
+
* @throws {RequiredError}
|
|
225
|
+
* @memberof WorkflowRunsApiInterface
|
|
226
|
+
*/
|
|
227
|
+
unapproveWorkflowRunFileRequestOpts(requestParameters: UnapproveWorkflowRunFileRequest): Promise<runtime.RequestOpts>;
|
|
228
|
+
/**
|
|
229
|
+
* Revert an approved file to ``pending``. Does NOT require the reviewer lock — anyone with ``can_write`` on the run path may unapprove (pilot plan §11.7).
|
|
230
|
+
* @summary Unapprove Workflow Run File Handler
|
|
231
|
+
* @param {string} runId
|
|
232
|
+
* @param {string} pathPartId
|
|
233
|
+
* @param {string} [authorization]
|
|
234
|
+
* @param {string} [ksUat]
|
|
235
|
+
* @param {*} [options] Override http request option.
|
|
236
|
+
* @throws {RequiredError}
|
|
237
|
+
* @memberof WorkflowRunsApiInterface
|
|
238
|
+
*/
|
|
239
|
+
unapproveWorkflowRunFileRaw(requestParameters: UnapproveWorkflowRunFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PathPartApprovalResponse>>;
|
|
240
|
+
/**
|
|
241
|
+
* Revert an approved file to ``pending``. Does NOT require the reviewer lock — anyone with ``can_write`` on the run path may unapprove (pilot plan §11.7).
|
|
242
|
+
* Unapprove Workflow Run File Handler
|
|
243
|
+
*/
|
|
244
|
+
unapproveWorkflowRunFile(requestParameters: UnapproveWorkflowRunFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartApprovalResponse>;
|
|
83
245
|
/**
|
|
84
246
|
* Creates request options for workflowRunCallback without sending the request
|
|
85
247
|
* @param {string} runId
|
|
@@ -107,6 +269,34 @@ export interface WorkflowRunsApiInterface {
|
|
|
107
269
|
*
|
|
108
270
|
*/
|
|
109
271
|
export declare class WorkflowRunsApi extends runtime.BaseAPI implements WorkflowRunsApiInterface {
|
|
272
|
+
/**
|
|
273
|
+
* Creates request options for acquireWorkflowRunLock without sending the request
|
|
274
|
+
*/
|
|
275
|
+
acquireWorkflowRunLockRequestOpts(requestParameters: AcquireWorkflowRunLockRequest): Promise<runtime.RequestOpts>;
|
|
276
|
+
/**
|
|
277
|
+
* Acquire (or renew) the reviewer lock on ``run_id``. The current holder may re-POST to refresh ``lock_acquired_at``. A different user receives 409 until the lock is released or auto-swept.
|
|
278
|
+
* Acquire Workflow Run Lock Handler
|
|
279
|
+
*/
|
|
280
|
+
acquireWorkflowRunLockRaw(requestParameters: AcquireWorkflowRunLockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RunLockResponse>>;
|
|
281
|
+
/**
|
|
282
|
+
* Acquire (or renew) the reviewer lock on ``run_id``. The current holder may re-POST to refresh ``lock_acquired_at``. A different user receives 409 until the lock is released or auto-swept.
|
|
283
|
+
* Acquire Workflow Run Lock Handler
|
|
284
|
+
*/
|
|
285
|
+
acquireWorkflowRunLock(requestParameters: AcquireWorkflowRunLockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RunLockResponse>;
|
|
286
|
+
/**
|
|
287
|
+
* Creates request options for approveWorkflowRunFile without sending the request
|
|
288
|
+
*/
|
|
289
|
+
approveWorkflowRunFileRequestOpts(requestParameters: ApproveWorkflowRunFileRequest): Promise<runtime.RequestOpts>;
|
|
290
|
+
/**
|
|
291
|
+
* Approve a single generated file. Caller must hold the run lock.
|
|
292
|
+
* Approve Workflow Run File Handler
|
|
293
|
+
*/
|
|
294
|
+
approveWorkflowRunFileRaw(requestParameters: ApproveWorkflowRunFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PathPartApprovalResponse>>;
|
|
295
|
+
/**
|
|
296
|
+
* Approve a single generated file. Caller must hold the run lock.
|
|
297
|
+
* Approve Workflow Run File Handler
|
|
298
|
+
*/
|
|
299
|
+
approveWorkflowRunFile(requestParameters: ApproveWorkflowRunFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartApprovalResponse>;
|
|
110
300
|
/**
|
|
111
301
|
* Creates request options for deleteWorkflowRun without sending the request
|
|
112
302
|
*/
|
|
@@ -131,6 +321,48 @@ export declare class WorkflowRunsApi extends runtime.BaseAPI implements Workflow
|
|
|
131
321
|
* Get Workflow Run Handler
|
|
132
322
|
*/
|
|
133
323
|
getWorkflowRun(requestParameters: GetWorkflowRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowRunResponse>;
|
|
324
|
+
/**
|
|
325
|
+
* Creates request options for rejectWorkflowRunFile without sending the request
|
|
326
|
+
*/
|
|
327
|
+
rejectWorkflowRunFileRequestOpts(requestParameters: RejectWorkflowRunFileRequest): Promise<runtime.RequestOpts>;
|
|
328
|
+
/**
|
|
329
|
+
* Reject a single generated file with a reason. Caller must hold the run lock.
|
|
330
|
+
* Reject Workflow Run File Handler
|
|
331
|
+
*/
|
|
332
|
+
rejectWorkflowRunFileRaw(requestParameters: RejectWorkflowRunFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PathPartApprovalResponse>>;
|
|
333
|
+
/**
|
|
334
|
+
* Reject a single generated file with a reason. Caller must hold the run lock.
|
|
335
|
+
* Reject Workflow Run File Handler
|
|
336
|
+
*/
|
|
337
|
+
rejectWorkflowRunFile(requestParameters: RejectWorkflowRunFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartApprovalResponse>;
|
|
338
|
+
/**
|
|
339
|
+
* Creates request options for releaseWorkflowRunLock without sending the request
|
|
340
|
+
*/
|
|
341
|
+
releaseWorkflowRunLockRequestOpts(requestParameters: ReleaseWorkflowRunLockRequest): Promise<runtime.RequestOpts>;
|
|
342
|
+
/**
|
|
343
|
+
* Release the reviewer lock; only the holder may call this. DELETE /lock is idempotent: returns 204 even if no lock is held.
|
|
344
|
+
* Release Workflow Run Lock Handler
|
|
345
|
+
*/
|
|
346
|
+
releaseWorkflowRunLockRaw(requestParameters: ReleaseWorkflowRunLockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
347
|
+
/**
|
|
348
|
+
* Release the reviewer lock; only the holder may call this. DELETE /lock is idempotent: returns 204 even if no lock is held.
|
|
349
|
+
* Release Workflow Run Lock Handler
|
|
350
|
+
*/
|
|
351
|
+
releaseWorkflowRunLock(requestParameters: ReleaseWorkflowRunLockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
352
|
+
/**
|
|
353
|
+
* Creates request options for unapproveWorkflowRunFile without sending the request
|
|
354
|
+
*/
|
|
355
|
+
unapproveWorkflowRunFileRequestOpts(requestParameters: UnapproveWorkflowRunFileRequest): Promise<runtime.RequestOpts>;
|
|
356
|
+
/**
|
|
357
|
+
* Revert an approved file to ``pending``. Does NOT require the reviewer lock — anyone with ``can_write`` on the run path may unapprove (pilot plan §11.7).
|
|
358
|
+
* Unapprove Workflow Run File Handler
|
|
359
|
+
*/
|
|
360
|
+
unapproveWorkflowRunFileRaw(requestParameters: UnapproveWorkflowRunFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PathPartApprovalResponse>>;
|
|
361
|
+
/**
|
|
362
|
+
* Revert an approved file to ``pending``. Does NOT require the reviewer lock — anyone with ``can_write`` on the run path may unapprove (pilot plan §11.7).
|
|
363
|
+
* Unapprove Workflow Run File Handler
|
|
364
|
+
*/
|
|
365
|
+
unapproveWorkflowRunFile(requestParameters: UnapproveWorkflowRunFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartApprovalResponse>;
|
|
134
366
|
/**
|
|
135
367
|
* Creates request options for workflowRunCallback without sending the request
|
|
136
368
|
*/
|
|
@@ -62,6 +62,98 @@ const index_1 = require("../models/index");
|
|
|
62
62
|
*
|
|
63
63
|
*/
|
|
64
64
|
class WorkflowRunsApi extends runtime.BaseAPI {
|
|
65
|
+
/**
|
|
66
|
+
* Creates request options for acquireWorkflowRunLock without sending the request
|
|
67
|
+
*/
|
|
68
|
+
acquireWorkflowRunLockRequestOpts(requestParameters) {
|
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
if (requestParameters['runId'] == null) {
|
|
71
|
+
throw new runtime.RequiredError('runId', 'Required parameter "runId" was null or undefined when calling acquireWorkflowRunLock().');
|
|
72
|
+
}
|
|
73
|
+
const queryParameters = {};
|
|
74
|
+
const headerParameters = {};
|
|
75
|
+
if (requestParameters['authorization'] != null) {
|
|
76
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
77
|
+
}
|
|
78
|
+
let urlPath = `/v1/workflow-runs/{run_id}/lock`;
|
|
79
|
+
urlPath = urlPath.replace(`{${"run_id"}}`, encodeURIComponent(String(requestParameters['runId'])));
|
|
80
|
+
return {
|
|
81
|
+
path: urlPath,
|
|
82
|
+
method: 'POST',
|
|
83
|
+
headers: headerParameters,
|
|
84
|
+
query: queryParameters,
|
|
85
|
+
};
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Acquire (or renew) the reviewer lock on ``run_id``. The current holder may re-POST to refresh ``lock_acquired_at``. A different user receives 409 until the lock is released or auto-swept.
|
|
90
|
+
* Acquire Workflow Run Lock Handler
|
|
91
|
+
*/
|
|
92
|
+
acquireWorkflowRunLockRaw(requestParameters, initOverrides) {
|
|
93
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
94
|
+
const requestOptions = yield this.acquireWorkflowRunLockRequestOpts(requestParameters);
|
|
95
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
96
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RunLockResponseFromJSON)(jsonValue));
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Acquire (or renew) the reviewer lock on ``run_id``. The current holder may re-POST to refresh ``lock_acquired_at``. A different user receives 409 until the lock is released or auto-swept.
|
|
101
|
+
* Acquire Workflow Run Lock Handler
|
|
102
|
+
*/
|
|
103
|
+
acquireWorkflowRunLock(requestParameters, initOverrides) {
|
|
104
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
105
|
+
const response = yield this.acquireWorkflowRunLockRaw(requestParameters, initOverrides);
|
|
106
|
+
return yield response.value();
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Creates request options for approveWorkflowRunFile without sending the request
|
|
111
|
+
*/
|
|
112
|
+
approveWorkflowRunFileRequestOpts(requestParameters) {
|
|
113
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
114
|
+
if (requestParameters['runId'] == null) {
|
|
115
|
+
throw new runtime.RequiredError('runId', 'Required parameter "runId" was null or undefined when calling approveWorkflowRunFile().');
|
|
116
|
+
}
|
|
117
|
+
if (requestParameters['pathPartId'] == null) {
|
|
118
|
+
throw new runtime.RequiredError('pathPartId', 'Required parameter "pathPartId" was null or undefined when calling approveWorkflowRunFile().');
|
|
119
|
+
}
|
|
120
|
+
const queryParameters = {};
|
|
121
|
+
const headerParameters = {};
|
|
122
|
+
if (requestParameters['authorization'] != null) {
|
|
123
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
124
|
+
}
|
|
125
|
+
let urlPath = `/v1/workflow-runs/{run_id}/files/{path_part_id}/approve`;
|
|
126
|
+
urlPath = urlPath.replace(`{${"run_id"}}`, encodeURIComponent(String(requestParameters['runId'])));
|
|
127
|
+
urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
|
|
128
|
+
return {
|
|
129
|
+
path: urlPath,
|
|
130
|
+
method: 'POST',
|
|
131
|
+
headers: headerParameters,
|
|
132
|
+
query: queryParameters,
|
|
133
|
+
};
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Approve a single generated file. Caller must hold the run lock.
|
|
138
|
+
* Approve Workflow Run File Handler
|
|
139
|
+
*/
|
|
140
|
+
approveWorkflowRunFileRaw(requestParameters, initOverrides) {
|
|
141
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
142
|
+
const requestOptions = yield this.approveWorkflowRunFileRequestOpts(requestParameters);
|
|
143
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
144
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PathPartApprovalResponseFromJSON)(jsonValue));
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Approve a single generated file. Caller must hold the run lock.
|
|
149
|
+
* Approve Workflow Run File Handler
|
|
150
|
+
*/
|
|
151
|
+
approveWorkflowRunFile(requestParameters, initOverrides) {
|
|
152
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
153
|
+
const response = yield this.approveWorkflowRunFileRaw(requestParameters, initOverrides);
|
|
154
|
+
return yield response.value();
|
|
155
|
+
});
|
|
156
|
+
}
|
|
65
157
|
/**
|
|
66
158
|
* Creates request options for deleteWorkflowRun without sending the request
|
|
67
159
|
*/
|
|
@@ -145,6 +237,150 @@ class WorkflowRunsApi extends runtime.BaseAPI {
|
|
|
145
237
|
return yield response.value();
|
|
146
238
|
});
|
|
147
239
|
}
|
|
240
|
+
/**
|
|
241
|
+
* Creates request options for rejectWorkflowRunFile without sending the request
|
|
242
|
+
*/
|
|
243
|
+
rejectWorkflowRunFileRequestOpts(requestParameters) {
|
|
244
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
245
|
+
if (requestParameters['runId'] == null) {
|
|
246
|
+
throw new runtime.RequiredError('runId', 'Required parameter "runId" was null or undefined when calling rejectWorkflowRunFile().');
|
|
247
|
+
}
|
|
248
|
+
if (requestParameters['pathPartId'] == null) {
|
|
249
|
+
throw new runtime.RequiredError('pathPartId', 'Required parameter "pathPartId" was null or undefined when calling rejectWorkflowRunFile().');
|
|
250
|
+
}
|
|
251
|
+
if (requestParameters['rejectFileRequest'] == null) {
|
|
252
|
+
throw new runtime.RequiredError('rejectFileRequest', 'Required parameter "rejectFileRequest" was null or undefined when calling rejectWorkflowRunFile().');
|
|
253
|
+
}
|
|
254
|
+
const queryParameters = {};
|
|
255
|
+
const headerParameters = {};
|
|
256
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
257
|
+
if (requestParameters['authorization'] != null) {
|
|
258
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
259
|
+
}
|
|
260
|
+
let urlPath = `/v1/workflow-runs/{run_id}/files/{path_part_id}/reject`;
|
|
261
|
+
urlPath = urlPath.replace(`{${"run_id"}}`, encodeURIComponent(String(requestParameters['runId'])));
|
|
262
|
+
urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
|
|
263
|
+
return {
|
|
264
|
+
path: urlPath,
|
|
265
|
+
method: 'POST',
|
|
266
|
+
headers: headerParameters,
|
|
267
|
+
query: queryParameters,
|
|
268
|
+
body: (0, index_1.RejectFileRequestToJSON)(requestParameters['rejectFileRequest']),
|
|
269
|
+
};
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Reject a single generated file with a reason. Caller must hold the run lock.
|
|
274
|
+
* Reject Workflow Run File Handler
|
|
275
|
+
*/
|
|
276
|
+
rejectWorkflowRunFileRaw(requestParameters, initOverrides) {
|
|
277
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
278
|
+
const requestOptions = yield this.rejectWorkflowRunFileRequestOpts(requestParameters);
|
|
279
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
280
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PathPartApprovalResponseFromJSON)(jsonValue));
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Reject a single generated file with a reason. Caller must hold the run lock.
|
|
285
|
+
* Reject Workflow Run File Handler
|
|
286
|
+
*/
|
|
287
|
+
rejectWorkflowRunFile(requestParameters, initOverrides) {
|
|
288
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
289
|
+
const response = yield this.rejectWorkflowRunFileRaw(requestParameters, initOverrides);
|
|
290
|
+
return yield response.value();
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Creates request options for releaseWorkflowRunLock without sending the request
|
|
295
|
+
*/
|
|
296
|
+
releaseWorkflowRunLockRequestOpts(requestParameters) {
|
|
297
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
298
|
+
if (requestParameters['runId'] == null) {
|
|
299
|
+
throw new runtime.RequiredError('runId', 'Required parameter "runId" was null or undefined when calling releaseWorkflowRunLock().');
|
|
300
|
+
}
|
|
301
|
+
const queryParameters = {};
|
|
302
|
+
const headerParameters = {};
|
|
303
|
+
if (requestParameters['authorization'] != null) {
|
|
304
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
305
|
+
}
|
|
306
|
+
let urlPath = `/v1/workflow-runs/{run_id}/lock`;
|
|
307
|
+
urlPath = urlPath.replace(`{${"run_id"}}`, encodeURIComponent(String(requestParameters['runId'])));
|
|
308
|
+
return {
|
|
309
|
+
path: urlPath,
|
|
310
|
+
method: 'DELETE',
|
|
311
|
+
headers: headerParameters,
|
|
312
|
+
query: queryParameters,
|
|
313
|
+
};
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* Release the reviewer lock; only the holder may call this. DELETE /lock is idempotent: returns 204 even if no lock is held.
|
|
318
|
+
* Release Workflow Run Lock Handler
|
|
319
|
+
*/
|
|
320
|
+
releaseWorkflowRunLockRaw(requestParameters, initOverrides) {
|
|
321
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
322
|
+
const requestOptions = yield this.releaseWorkflowRunLockRequestOpts(requestParameters);
|
|
323
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
324
|
+
return new runtime.VoidApiResponse(response);
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* Release the reviewer lock; only the holder may call this. DELETE /lock is idempotent: returns 204 even if no lock is held.
|
|
329
|
+
* Release Workflow Run Lock Handler
|
|
330
|
+
*/
|
|
331
|
+
releaseWorkflowRunLock(requestParameters, initOverrides) {
|
|
332
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
333
|
+
yield this.releaseWorkflowRunLockRaw(requestParameters, initOverrides);
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Creates request options for unapproveWorkflowRunFile without sending the request
|
|
338
|
+
*/
|
|
339
|
+
unapproveWorkflowRunFileRequestOpts(requestParameters) {
|
|
340
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
341
|
+
if (requestParameters['runId'] == null) {
|
|
342
|
+
throw new runtime.RequiredError('runId', 'Required parameter "runId" was null or undefined when calling unapproveWorkflowRunFile().');
|
|
343
|
+
}
|
|
344
|
+
if (requestParameters['pathPartId'] == null) {
|
|
345
|
+
throw new runtime.RequiredError('pathPartId', 'Required parameter "pathPartId" was null or undefined when calling unapproveWorkflowRunFile().');
|
|
346
|
+
}
|
|
347
|
+
const queryParameters = {};
|
|
348
|
+
const headerParameters = {};
|
|
349
|
+
if (requestParameters['authorization'] != null) {
|
|
350
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
351
|
+
}
|
|
352
|
+
let urlPath = `/v1/workflow-runs/{run_id}/files/{path_part_id}/unapprove`;
|
|
353
|
+
urlPath = urlPath.replace(`{${"run_id"}}`, encodeURIComponent(String(requestParameters['runId'])));
|
|
354
|
+
urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
|
|
355
|
+
return {
|
|
356
|
+
path: urlPath,
|
|
357
|
+
method: 'POST',
|
|
358
|
+
headers: headerParameters,
|
|
359
|
+
query: queryParameters,
|
|
360
|
+
};
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* Revert an approved file to ``pending``. Does NOT require the reviewer lock — anyone with ``can_write`` on the run path may unapprove (pilot plan §11.7).
|
|
365
|
+
* Unapprove Workflow Run File Handler
|
|
366
|
+
*/
|
|
367
|
+
unapproveWorkflowRunFileRaw(requestParameters, initOverrides) {
|
|
368
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
369
|
+
const requestOptions = yield this.unapproveWorkflowRunFileRequestOpts(requestParameters);
|
|
370
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
371
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PathPartApprovalResponseFromJSON)(jsonValue));
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* Revert an approved file to ``pending``. Does NOT require the reviewer lock — anyone with ``can_write`` on the run path may unapprove (pilot plan §11.7).
|
|
376
|
+
* Unapprove Workflow Run File Handler
|
|
377
|
+
*/
|
|
378
|
+
unapproveWorkflowRunFile(requestParameters, initOverrides) {
|
|
379
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
380
|
+
const response = yield this.unapproveWorkflowRunFileRaw(requestParameters, initOverrides);
|
|
381
|
+
return yield response.value();
|
|
382
|
+
});
|
|
383
|
+
}
|
|
148
384
|
/**
|
|
149
385
|
* Creates request options for workflowRunCallback without sending the request
|
|
150
386
|
*/
|