@knowledge-stack/ksapi 1.85.0 → 1.86.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 +0 -2
- package/README.md +2 -5
- package/dist/apis/WorkflowRunsApi.d.ts +13 -101
- package/dist/apis/WorkflowRunsApi.js +6 -93
- package/dist/esm/apis/WorkflowRunsApi.d.ts +13 -101
- package/dist/esm/apis/WorkflowRunsApi.js +7 -94
- package/dist/esm/models/index.d.ts +0 -1
- package/dist/esm/models/index.js +0 -1
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/docs/WorkflowRunsApi.md +3 -153
- package/package.json +1 -1
- package/src/apis/WorkflowRunsApi.ts +12 -184
- package/src/models/index.ts +0 -1
- package/dist/esm/models/RunLockResponse.d.ts +0 -59
- package/dist/esm/models/RunLockResponse.js +0 -52
- package/dist/models/RunLockResponse.d.ts +0 -59
- package/dist/models/RunLockResponse.js +0 -60
- package/docs/RunLockResponse.md +0 -39
- package/src/models/RunLockResponse.ts +0 -101
|
@@ -18,7 +18,6 @@ import type {
|
|
|
18
18
|
HTTPValidationError,
|
|
19
19
|
PathPartApprovalResponse,
|
|
20
20
|
RejectFileRequest,
|
|
21
|
-
RunLockResponse,
|
|
22
21
|
WorkflowCallbackResponse,
|
|
23
22
|
WorkflowRunCallbackRequest,
|
|
24
23
|
WorkflowRunResponse,
|
|
@@ -30,8 +29,6 @@ import {
|
|
|
30
29
|
PathPartApprovalResponseToJSON,
|
|
31
30
|
RejectFileRequestFromJSON,
|
|
32
31
|
RejectFileRequestToJSON,
|
|
33
|
-
RunLockResponseFromJSON,
|
|
34
|
-
RunLockResponseToJSON,
|
|
35
32
|
WorkflowCallbackResponseFromJSON,
|
|
36
33
|
WorkflowCallbackResponseToJSON,
|
|
37
34
|
WorkflowRunCallbackRequestFromJSON,
|
|
@@ -40,12 +37,6 @@ import {
|
|
|
40
37
|
WorkflowRunResponseToJSON,
|
|
41
38
|
} from '../models/index';
|
|
42
39
|
|
|
43
|
-
export interface AcquireWorkflowRunLockRequest {
|
|
44
|
-
runId: string;
|
|
45
|
-
authorization?: string | null;
|
|
46
|
-
ksUat?: string | null;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
40
|
export interface ApproveWorkflowRunFileRequest {
|
|
50
41
|
runId: string;
|
|
51
42
|
pathPartId: string;
|
|
@@ -73,12 +64,6 @@ export interface RejectWorkflowRunFileRequest {
|
|
|
73
64
|
ksUat?: string | null;
|
|
74
65
|
}
|
|
75
66
|
|
|
76
|
-
export interface ReleaseWorkflowRunLockRequest {
|
|
77
|
-
runId: string;
|
|
78
|
-
authorization?: string | null;
|
|
79
|
-
ksUat?: string | null;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
67
|
export interface UnapproveWorkflowRunFileRequest {
|
|
83
68
|
runId: string;
|
|
84
69
|
pathPartId: string;
|
|
@@ -98,34 +83,6 @@ export interface WorkflowRunCallbackOperationRequest {
|
|
|
98
83
|
* @interface WorkflowRunsApiInterface
|
|
99
84
|
*/
|
|
100
85
|
export interface WorkflowRunsApiInterface {
|
|
101
|
-
/**
|
|
102
|
-
* Creates request options for acquireWorkflowRunLock without sending the request
|
|
103
|
-
* @param {string} runId
|
|
104
|
-
* @param {string} [authorization]
|
|
105
|
-
* @param {string} [ksUat]
|
|
106
|
-
* @throws {RequiredError}
|
|
107
|
-
* @memberof WorkflowRunsApiInterface
|
|
108
|
-
*/
|
|
109
|
-
acquireWorkflowRunLockRequestOpts(requestParameters: AcquireWorkflowRunLockRequest): Promise<runtime.RequestOpts>;
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* 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.
|
|
113
|
-
* @summary Acquire Workflow Run Lock Handler
|
|
114
|
-
* @param {string} runId
|
|
115
|
-
* @param {string} [authorization]
|
|
116
|
-
* @param {string} [ksUat]
|
|
117
|
-
* @param {*} [options] Override http request option.
|
|
118
|
-
* @throws {RequiredError}
|
|
119
|
-
* @memberof WorkflowRunsApiInterface
|
|
120
|
-
*/
|
|
121
|
-
acquireWorkflowRunLockRaw(requestParameters: AcquireWorkflowRunLockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RunLockResponse>>;
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* 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.
|
|
125
|
-
* Acquire Workflow Run Lock Handler
|
|
126
|
-
*/
|
|
127
|
-
acquireWorkflowRunLock(requestParameters: AcquireWorkflowRunLockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RunLockResponse>;
|
|
128
|
-
|
|
129
86
|
/**
|
|
130
87
|
* Creates request options for approveWorkflowRunFile without sending the request
|
|
131
88
|
* @param {string} runId
|
|
@@ -138,7 +95,7 @@ export interface WorkflowRunsApiInterface {
|
|
|
138
95
|
approveWorkflowRunFileRequestOpts(requestParameters: ApproveWorkflowRunFileRequest): Promise<runtime.RequestOpts>;
|
|
139
96
|
|
|
140
97
|
/**
|
|
141
|
-
* Approve a
|
|
98
|
+
* Approve a generated file or the run folder itself. Open to any user with ``can_write`` on the run path — both individual child files and the run folder (the final verdict that flips the run to APPROVED). Folder approval still requires no descendants in ``pending`` or ``rejected`` state.
|
|
142
99
|
* @summary Approve Workflow Run File Handler
|
|
143
100
|
* @param {string} runId
|
|
144
101
|
* @param {string} pathPartId
|
|
@@ -151,7 +108,7 @@ export interface WorkflowRunsApiInterface {
|
|
|
151
108
|
approveWorkflowRunFileRaw(requestParameters: ApproveWorkflowRunFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PathPartApprovalResponse>>;
|
|
152
109
|
|
|
153
110
|
/**
|
|
154
|
-
* Approve a
|
|
111
|
+
* Approve a generated file or the run folder itself. Open to any user with ``can_write`` on the run path — both individual child files and the run folder (the final verdict that flips the run to APPROVED). Folder approval still requires no descendants in ``pending`` or ``rejected`` state.
|
|
155
112
|
* Approve Workflow Run File Handler
|
|
156
113
|
*/
|
|
157
114
|
approveWorkflowRunFile(requestParameters: ApproveWorkflowRunFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartApprovalResponse>;
|
|
@@ -223,7 +180,7 @@ export interface WorkflowRunsApiInterface {
|
|
|
223
180
|
rejectWorkflowRunFileRequestOpts(requestParameters: RejectWorkflowRunFileRequest): Promise<runtime.RequestOpts>;
|
|
224
181
|
|
|
225
182
|
/**
|
|
226
|
-
* Reject a
|
|
183
|
+
* Reject a generated file or the run folder itself with a reason. Open to any user with ``can_write`` on the run path — both individual child files and the run folder (the final verdict that flips the run to REJECTED).
|
|
227
184
|
* @summary Reject Workflow Run File Handler
|
|
228
185
|
* @param {string} runId
|
|
229
186
|
* @param {string} pathPartId
|
|
@@ -237,39 +194,11 @@ export interface WorkflowRunsApiInterface {
|
|
|
237
194
|
rejectWorkflowRunFileRaw(requestParameters: RejectWorkflowRunFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PathPartApprovalResponse>>;
|
|
238
195
|
|
|
239
196
|
/**
|
|
240
|
-
* Reject a
|
|
197
|
+
* Reject a generated file or the run folder itself with a reason. Open to any user with ``can_write`` on the run path — both individual child files and the run folder (the final verdict that flips the run to REJECTED).
|
|
241
198
|
* Reject Workflow Run File Handler
|
|
242
199
|
*/
|
|
243
200
|
rejectWorkflowRunFile(requestParameters: RejectWorkflowRunFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartApprovalResponse>;
|
|
244
201
|
|
|
245
|
-
/**
|
|
246
|
-
* Creates request options for releaseWorkflowRunLock without sending the request
|
|
247
|
-
* @param {string} runId
|
|
248
|
-
* @param {string} [authorization]
|
|
249
|
-
* @param {string} [ksUat]
|
|
250
|
-
* @throws {RequiredError}
|
|
251
|
-
* @memberof WorkflowRunsApiInterface
|
|
252
|
-
*/
|
|
253
|
-
releaseWorkflowRunLockRequestOpts(requestParameters: ReleaseWorkflowRunLockRequest): Promise<runtime.RequestOpts>;
|
|
254
|
-
|
|
255
|
-
/**
|
|
256
|
-
* Release the reviewer lock; only the holder may call this. DELETE /lock is idempotent: returns 204 even if no lock is held.
|
|
257
|
-
* @summary Release Workflow Run Lock Handler
|
|
258
|
-
* @param {string} runId
|
|
259
|
-
* @param {string} [authorization]
|
|
260
|
-
* @param {string} [ksUat]
|
|
261
|
-
* @param {*} [options] Override http request option.
|
|
262
|
-
* @throws {RequiredError}
|
|
263
|
-
* @memberof WorkflowRunsApiInterface
|
|
264
|
-
*/
|
|
265
|
-
releaseWorkflowRunLockRaw(requestParameters: ReleaseWorkflowRunLockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* Release the reviewer lock; only the holder may call this. DELETE /lock is idempotent: returns 204 even if no lock is held.
|
|
269
|
-
* Release Workflow Run Lock Handler
|
|
270
|
-
*/
|
|
271
|
-
releaseWorkflowRunLock(requestParameters: ReleaseWorkflowRunLockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
272
|
-
|
|
273
202
|
/**
|
|
274
203
|
* Creates request options for unapproveWorkflowRunFile without sending the request
|
|
275
204
|
* @param {string} runId
|
|
@@ -282,7 +211,7 @@ export interface WorkflowRunsApiInterface {
|
|
|
282
211
|
unapproveWorkflowRunFileRequestOpts(requestParameters: UnapproveWorkflowRunFileRequest): Promise<runtime.RequestOpts>;
|
|
283
212
|
|
|
284
213
|
/**
|
|
285
|
-
* Revert an approved file to ``pending``.
|
|
214
|
+
* Revert an approved or rejected file to ``pending``. Open to any user with ``can_write`` on the run path. Cannot unapprove a leaf whose ancestor is currently ``approved`` — unapprove the ancestor first.
|
|
286
215
|
* @summary Unapprove Workflow Run File Handler
|
|
287
216
|
* @param {string} runId
|
|
288
217
|
* @param {string} pathPartId
|
|
@@ -295,7 +224,7 @@ export interface WorkflowRunsApiInterface {
|
|
|
295
224
|
unapproveWorkflowRunFileRaw(requestParameters: UnapproveWorkflowRunFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PathPartApprovalResponse>>;
|
|
296
225
|
|
|
297
226
|
/**
|
|
298
|
-
* Revert an approved file to ``pending``.
|
|
227
|
+
* Revert an approved or rejected file to ``pending``. Open to any user with ``can_write`` on the run path. Cannot unapprove a leaf whose ancestor is currently ``approved`` — unapprove the ancestor first.
|
|
299
228
|
* Unapprove Workflow Run File Handler
|
|
300
229
|
*/
|
|
301
230
|
unapproveWorkflowRunFile(requestParameters: UnapproveWorkflowRunFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartApprovalResponse>;
|
|
@@ -332,57 +261,6 @@ export interface WorkflowRunsApiInterface {
|
|
|
332
261
|
*/
|
|
333
262
|
export class WorkflowRunsApi extends runtime.BaseAPI implements WorkflowRunsApiInterface {
|
|
334
263
|
|
|
335
|
-
/**
|
|
336
|
-
* Creates request options for acquireWorkflowRunLock without sending the request
|
|
337
|
-
*/
|
|
338
|
-
async acquireWorkflowRunLockRequestOpts(requestParameters: AcquireWorkflowRunLockRequest): Promise<runtime.RequestOpts> {
|
|
339
|
-
if (requestParameters['runId'] == null) {
|
|
340
|
-
throw new runtime.RequiredError(
|
|
341
|
-
'runId',
|
|
342
|
-
'Required parameter "runId" was null or undefined when calling acquireWorkflowRunLock().'
|
|
343
|
-
);
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
const queryParameters: any = {};
|
|
347
|
-
|
|
348
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
349
|
-
|
|
350
|
-
if (requestParameters['authorization'] != null) {
|
|
351
|
-
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
let urlPath = `/v1/workflow-runs/{run_id}/lock`;
|
|
356
|
-
urlPath = urlPath.replace(`{${"run_id"}}`, encodeURIComponent(String(requestParameters['runId'])));
|
|
357
|
-
|
|
358
|
-
return {
|
|
359
|
-
path: urlPath,
|
|
360
|
-
method: 'POST',
|
|
361
|
-
headers: headerParameters,
|
|
362
|
-
query: queryParameters,
|
|
363
|
-
};
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
/**
|
|
367
|
-
* 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.
|
|
368
|
-
* Acquire Workflow Run Lock Handler
|
|
369
|
-
*/
|
|
370
|
-
async acquireWorkflowRunLockRaw(requestParameters: AcquireWorkflowRunLockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RunLockResponse>> {
|
|
371
|
-
const requestOptions = await this.acquireWorkflowRunLockRequestOpts(requestParameters);
|
|
372
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
373
|
-
|
|
374
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => RunLockResponseFromJSON(jsonValue));
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
/**
|
|
378
|
-
* 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.
|
|
379
|
-
* Acquire Workflow Run Lock Handler
|
|
380
|
-
*/
|
|
381
|
-
async acquireWorkflowRunLock(requestParameters: AcquireWorkflowRunLockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RunLockResponse> {
|
|
382
|
-
const response = await this.acquireWorkflowRunLockRaw(requestParameters, initOverrides);
|
|
383
|
-
return await response.value();
|
|
384
|
-
}
|
|
385
|
-
|
|
386
264
|
/**
|
|
387
265
|
* Creates request options for approveWorkflowRunFile without sending the request
|
|
388
266
|
*/
|
|
@@ -423,7 +301,7 @@ export class WorkflowRunsApi extends runtime.BaseAPI implements WorkflowRunsApiI
|
|
|
423
301
|
}
|
|
424
302
|
|
|
425
303
|
/**
|
|
426
|
-
* Approve a
|
|
304
|
+
* Approve a generated file or the run folder itself. Open to any user with ``can_write`` on the run path — both individual child files and the run folder (the final verdict that flips the run to APPROVED). Folder approval still requires no descendants in ``pending`` or ``rejected`` state.
|
|
427
305
|
* Approve Workflow Run File Handler
|
|
428
306
|
*/
|
|
429
307
|
async approveWorkflowRunFileRaw(requestParameters: ApproveWorkflowRunFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PathPartApprovalResponse>> {
|
|
@@ -434,7 +312,7 @@ export class WorkflowRunsApi extends runtime.BaseAPI implements WorkflowRunsApiI
|
|
|
434
312
|
}
|
|
435
313
|
|
|
436
314
|
/**
|
|
437
|
-
* Approve a
|
|
315
|
+
* Approve a generated file or the run folder itself. Open to any user with ``can_write`` on the run path — both individual child files and the run folder (the final verdict that flips the run to APPROVED). Folder approval still requires no descendants in ``pending`` or ``rejected`` state.
|
|
438
316
|
* Approve Workflow Run File Handler
|
|
439
317
|
*/
|
|
440
318
|
async approveWorkflowRunFile(requestParameters: ApproveWorkflowRunFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartApprovalResponse> {
|
|
@@ -589,7 +467,7 @@ export class WorkflowRunsApi extends runtime.BaseAPI implements WorkflowRunsApiI
|
|
|
589
467
|
}
|
|
590
468
|
|
|
591
469
|
/**
|
|
592
|
-
* Reject a
|
|
470
|
+
* Reject a generated file or the run folder itself with a reason. Open to any user with ``can_write`` on the run path — both individual child files and the run folder (the final verdict that flips the run to REJECTED).
|
|
593
471
|
* Reject Workflow Run File Handler
|
|
594
472
|
*/
|
|
595
473
|
async rejectWorkflowRunFileRaw(requestParameters: RejectWorkflowRunFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PathPartApprovalResponse>> {
|
|
@@ -600,7 +478,7 @@ export class WorkflowRunsApi extends runtime.BaseAPI implements WorkflowRunsApiI
|
|
|
600
478
|
}
|
|
601
479
|
|
|
602
480
|
/**
|
|
603
|
-
* Reject a
|
|
481
|
+
* Reject a generated file or the run folder itself with a reason. Open to any user with ``can_write`` on the run path — both individual child files and the run folder (the final verdict that flips the run to REJECTED).
|
|
604
482
|
* Reject Workflow Run File Handler
|
|
605
483
|
*/
|
|
606
484
|
async rejectWorkflowRunFile(requestParameters: RejectWorkflowRunFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartApprovalResponse> {
|
|
@@ -608,56 +486,6 @@ export class WorkflowRunsApi extends runtime.BaseAPI implements WorkflowRunsApiI
|
|
|
608
486
|
return await response.value();
|
|
609
487
|
}
|
|
610
488
|
|
|
611
|
-
/**
|
|
612
|
-
* Creates request options for releaseWorkflowRunLock without sending the request
|
|
613
|
-
*/
|
|
614
|
-
async releaseWorkflowRunLockRequestOpts(requestParameters: ReleaseWorkflowRunLockRequest): Promise<runtime.RequestOpts> {
|
|
615
|
-
if (requestParameters['runId'] == null) {
|
|
616
|
-
throw new runtime.RequiredError(
|
|
617
|
-
'runId',
|
|
618
|
-
'Required parameter "runId" was null or undefined when calling releaseWorkflowRunLock().'
|
|
619
|
-
);
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
const queryParameters: any = {};
|
|
623
|
-
|
|
624
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
625
|
-
|
|
626
|
-
if (requestParameters['authorization'] != null) {
|
|
627
|
-
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
628
|
-
}
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
let urlPath = `/v1/workflow-runs/{run_id}/lock`;
|
|
632
|
-
urlPath = urlPath.replace(`{${"run_id"}}`, encodeURIComponent(String(requestParameters['runId'])));
|
|
633
|
-
|
|
634
|
-
return {
|
|
635
|
-
path: urlPath,
|
|
636
|
-
method: 'DELETE',
|
|
637
|
-
headers: headerParameters,
|
|
638
|
-
query: queryParameters,
|
|
639
|
-
};
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
/**
|
|
643
|
-
* Release the reviewer lock; only the holder may call this. DELETE /lock is idempotent: returns 204 even if no lock is held.
|
|
644
|
-
* Release Workflow Run Lock Handler
|
|
645
|
-
*/
|
|
646
|
-
async releaseWorkflowRunLockRaw(requestParameters: ReleaseWorkflowRunLockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
647
|
-
const requestOptions = await this.releaseWorkflowRunLockRequestOpts(requestParameters);
|
|
648
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
649
|
-
|
|
650
|
-
return new runtime.VoidApiResponse(response);
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
/**
|
|
654
|
-
* Release the reviewer lock; only the holder may call this. DELETE /lock is idempotent: returns 204 even if no lock is held.
|
|
655
|
-
* Release Workflow Run Lock Handler
|
|
656
|
-
*/
|
|
657
|
-
async releaseWorkflowRunLock(requestParameters: ReleaseWorkflowRunLockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
658
|
-
await this.releaseWorkflowRunLockRaw(requestParameters, initOverrides);
|
|
659
|
-
}
|
|
660
|
-
|
|
661
489
|
/**
|
|
662
490
|
* Creates request options for unapproveWorkflowRunFile without sending the request
|
|
663
491
|
*/
|
|
@@ -698,7 +526,7 @@ export class WorkflowRunsApi extends runtime.BaseAPI implements WorkflowRunsApiI
|
|
|
698
526
|
}
|
|
699
527
|
|
|
700
528
|
/**
|
|
701
|
-
* Revert an approved file to ``pending``.
|
|
529
|
+
* Revert an approved or rejected file to ``pending``. Open to any user with ``can_write`` on the run path. Cannot unapprove a leaf whose ancestor is currently ``approved`` — unapprove the ancestor first.
|
|
702
530
|
* Unapprove Workflow Run File Handler
|
|
703
531
|
*/
|
|
704
532
|
async unapproveWorkflowRunFileRaw(requestParameters: UnapproveWorkflowRunFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PathPartApprovalResponse>> {
|
|
@@ -709,7 +537,7 @@ export class WorkflowRunsApi extends runtime.BaseAPI implements WorkflowRunsApiI
|
|
|
709
537
|
}
|
|
710
538
|
|
|
711
539
|
/**
|
|
712
|
-
* Revert an approved file to ``pending``.
|
|
540
|
+
* Revert an approved or rejected file to ``pending``. Open to any user with ``can_write`` on the run path. Cannot unapprove a leaf whose ancestor is currently ``approved`` — unapprove the ancestor first.
|
|
713
541
|
* Unapprove Workflow Run File Handler
|
|
714
542
|
*/
|
|
715
543
|
async unapproveWorkflowRunFile(requestParameters: UnapproveWorkflowRunFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartApprovalResponse> {
|
package/src/models/index.ts
CHANGED
|
@@ -142,7 +142,6 @@ export * from './RejectFileRequest';
|
|
|
142
142
|
export * from './ResolvedReferenceInput';
|
|
143
143
|
export * from './ResolvedReferenceOutput';
|
|
144
144
|
export * from './RootResponse';
|
|
145
|
-
export * from './RunLockResponse';
|
|
146
145
|
export * from './SSOInitiateResponse';
|
|
147
146
|
export * from './ScoredChunkResponse';
|
|
148
147
|
export * from './SearchSortOrder';
|
|
@@ -1,59 +0,0 @@
|
|
|
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
|
-
/**
|
|
13
|
-
* Reviewer-lock state on a workflow run.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface RunLockResponse
|
|
16
|
-
*/
|
|
17
|
-
export interface RunLockResponse {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof RunLockResponse
|
|
22
|
-
*/
|
|
23
|
-
runId: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof RunLockResponse
|
|
28
|
-
*/
|
|
29
|
-
lockUserId: string | null;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Date}
|
|
33
|
-
* @memberof RunLockResponse
|
|
34
|
-
*/
|
|
35
|
-
lockAcquiredAt: Date | null;
|
|
36
|
-
}
|
|
37
|
-
export declare const RunLockResponsePropertyValidationAttributesMap: {
|
|
38
|
-
[property: string]: {
|
|
39
|
-
maxLength?: number;
|
|
40
|
-
minLength?: number;
|
|
41
|
-
pattern?: string;
|
|
42
|
-
maximum?: number;
|
|
43
|
-
exclusiveMaximum?: boolean;
|
|
44
|
-
minimum?: number;
|
|
45
|
-
exclusiveMinimum?: boolean;
|
|
46
|
-
multipleOf?: number;
|
|
47
|
-
maxItems?: number;
|
|
48
|
-
minItems?: number;
|
|
49
|
-
uniqueItems?: boolean;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
/**
|
|
53
|
-
* Check if a given object implements the RunLockResponse interface.
|
|
54
|
-
*/
|
|
55
|
-
export declare function instanceOfRunLockResponse(value: object): value is RunLockResponse;
|
|
56
|
-
export declare function RunLockResponseFromJSON(json: any): RunLockResponse;
|
|
57
|
-
export declare function RunLockResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RunLockResponse;
|
|
58
|
-
export declare function RunLockResponseToJSON(json: any): RunLockResponse;
|
|
59
|
-
export declare function RunLockResponseToJSONTyped(value?: RunLockResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Knowledge Stack API
|
|
5
|
-
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
export const RunLockResponsePropertyValidationAttributesMap = {};
|
|
15
|
-
/**
|
|
16
|
-
* Check if a given object implements the RunLockResponse interface.
|
|
17
|
-
*/
|
|
18
|
-
export function instanceOfRunLockResponse(value) {
|
|
19
|
-
if (!('runId' in value) || value['runId'] === undefined)
|
|
20
|
-
return false;
|
|
21
|
-
if (!('lockUserId' in value) || value['lockUserId'] === undefined)
|
|
22
|
-
return false;
|
|
23
|
-
if (!('lockAcquiredAt' in value) || value['lockAcquiredAt'] === undefined)
|
|
24
|
-
return false;
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
export function RunLockResponseFromJSON(json) {
|
|
28
|
-
return RunLockResponseFromJSONTyped(json, false);
|
|
29
|
-
}
|
|
30
|
-
export function RunLockResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (json == null) {
|
|
32
|
-
return json;
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
'runId': json['run_id'],
|
|
36
|
-
'lockUserId': json['lock_user_id'],
|
|
37
|
-
'lockAcquiredAt': (json['lock_acquired_at'] == null ? null : new Date(json['lock_acquired_at'])),
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
export function RunLockResponseToJSON(json) {
|
|
41
|
-
return RunLockResponseToJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
export function RunLockResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
-
if (value == null) {
|
|
45
|
-
return value;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
'run_id': value['runId'],
|
|
49
|
-
'lock_user_id': value['lockUserId'],
|
|
50
|
-
'lock_acquired_at': value['lockAcquiredAt'] == null ? value['lockAcquiredAt'] : value['lockAcquiredAt'].toISOString(),
|
|
51
|
-
};
|
|
52
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
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
|
-
/**
|
|
13
|
-
* Reviewer-lock state on a workflow run.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface RunLockResponse
|
|
16
|
-
*/
|
|
17
|
-
export interface RunLockResponse {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof RunLockResponse
|
|
22
|
-
*/
|
|
23
|
-
runId: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof RunLockResponse
|
|
28
|
-
*/
|
|
29
|
-
lockUserId: string | null;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Date}
|
|
33
|
-
* @memberof RunLockResponse
|
|
34
|
-
*/
|
|
35
|
-
lockAcquiredAt: Date | null;
|
|
36
|
-
}
|
|
37
|
-
export declare const RunLockResponsePropertyValidationAttributesMap: {
|
|
38
|
-
[property: string]: {
|
|
39
|
-
maxLength?: number;
|
|
40
|
-
minLength?: number;
|
|
41
|
-
pattern?: string;
|
|
42
|
-
maximum?: number;
|
|
43
|
-
exclusiveMaximum?: boolean;
|
|
44
|
-
minimum?: number;
|
|
45
|
-
exclusiveMinimum?: boolean;
|
|
46
|
-
multipleOf?: number;
|
|
47
|
-
maxItems?: number;
|
|
48
|
-
minItems?: number;
|
|
49
|
-
uniqueItems?: boolean;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
/**
|
|
53
|
-
* Check if a given object implements the RunLockResponse interface.
|
|
54
|
-
*/
|
|
55
|
-
export declare function instanceOfRunLockResponse(value: object): value is RunLockResponse;
|
|
56
|
-
export declare function RunLockResponseFromJSON(json: any): RunLockResponse;
|
|
57
|
-
export declare function RunLockResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RunLockResponse;
|
|
58
|
-
export declare function RunLockResponseToJSON(json: any): RunLockResponse;
|
|
59
|
-
export declare function RunLockResponseToJSONTyped(value?: RunLockResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,60 +0,0 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.RunLockResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
-
exports.instanceOfRunLockResponse = instanceOfRunLockResponse;
|
|
18
|
-
exports.RunLockResponseFromJSON = RunLockResponseFromJSON;
|
|
19
|
-
exports.RunLockResponseFromJSONTyped = RunLockResponseFromJSONTyped;
|
|
20
|
-
exports.RunLockResponseToJSON = RunLockResponseToJSON;
|
|
21
|
-
exports.RunLockResponseToJSONTyped = RunLockResponseToJSONTyped;
|
|
22
|
-
exports.RunLockResponsePropertyValidationAttributesMap = {};
|
|
23
|
-
/**
|
|
24
|
-
* Check if a given object implements the RunLockResponse interface.
|
|
25
|
-
*/
|
|
26
|
-
function instanceOfRunLockResponse(value) {
|
|
27
|
-
if (!('runId' in value) || value['runId'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('lockUserId' in value) || value['lockUserId'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('lockAcquiredAt' in value) || value['lockAcquiredAt'] === undefined)
|
|
32
|
-
return false;
|
|
33
|
-
return true;
|
|
34
|
-
}
|
|
35
|
-
function RunLockResponseFromJSON(json) {
|
|
36
|
-
return RunLockResponseFromJSONTyped(json, false);
|
|
37
|
-
}
|
|
38
|
-
function RunLockResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
-
if (json == null) {
|
|
40
|
-
return json;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
'runId': json['run_id'],
|
|
44
|
-
'lockUserId': json['lock_user_id'],
|
|
45
|
-
'lockAcquiredAt': (json['lock_acquired_at'] == null ? null : new Date(json['lock_acquired_at'])),
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
function RunLockResponseToJSON(json) {
|
|
49
|
-
return RunLockResponseToJSONTyped(json, false);
|
|
50
|
-
}
|
|
51
|
-
function RunLockResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
-
if (value == null) {
|
|
53
|
-
return value;
|
|
54
|
-
}
|
|
55
|
-
return {
|
|
56
|
-
'run_id': value['runId'],
|
|
57
|
-
'lock_user_id': value['lockUserId'],
|
|
58
|
-
'lock_acquired_at': value['lockAcquiredAt'] == null ? value['lockAcquiredAt'] : value['lockAcquiredAt'].toISOString(),
|
|
59
|
-
};
|
|
60
|
-
}
|
package/docs/RunLockResponse.md
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
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
|
-
|