@approvio/api 0.0.34 → 0.0.36
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/dist/mocks/index.d.cts +1 -1
- package/dist/mocks/index.d.mts +1 -1
- package/dist/src/index.cjs +23 -8
- package/dist/src/index.d.cts +75 -56
- package/dist/src/index.d.mts +75 -56
- package/dist/src/index.mjs +23 -8
- package/dist/{workflow-create-B9_eIGcu.d.mts → workflow-create-CnfcH7rt.d.mts} +10 -10
- package/dist/{workflow-create-Bmi0J-Dc.d.cts → workflow-create-TrS0XFqN.d.cts} +10 -10
- package/package.json +1 -1
package/dist/mocks/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Workflow, d as ListGroups200Response, f as Pagination, i as ListWorkflows200Response, m as GroupInfo, n as User, p as Group, r as TokenResponse, t as WorkflowCreate, u as UserSummary } from "../workflow-create-
|
|
1
|
+
import { a as Workflow, d as ListGroups200Response, f as Pagination, i as ListWorkflows200Response, m as GroupInfo, n as User, p as Group, r as TokenResponse, t as WorkflowCreate, u as UserSummary } from "../workflow-create-TrS0XFqN.cjs";
|
|
2
2
|
|
|
3
3
|
//#region mocks/user.fixtures.d.ts
|
|
4
4
|
declare const MOCK_USER_ID = "e6e08687-2189-4710-91b5-479cd25a9119";
|
package/dist/mocks/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Workflow, d as ListGroups200Response, f as Pagination, i as ListWorkflows200Response, m as GroupInfo, n as User, p as Group, r as TokenResponse, t as WorkflowCreate, u as UserSummary } from "../workflow-create-
|
|
1
|
+
import { a as Workflow, d as ListGroups200Response, f as Pagination, i as ListWorkflows200Response, m as GroupInfo, n as User, p as Group, r as TokenResponse, t as WorkflowCreate, u as UserSummary } from "../workflow-create-CnfcH7rt.mjs";
|
|
2
2
|
|
|
3
3
|
//#region mocks/user.fixtures.d.ts
|
|
4
4
|
declare const MOCK_USER_ID = "e6e08687-2189-4710-91b5-479cd25a9119";
|
package/dist/src/index.cjs
CHANGED
|
@@ -438,6 +438,11 @@ function getStringAsEnum(str, enumType) {
|
|
|
438
438
|
if (Object.values(enumType).includes(str)) return str;
|
|
439
439
|
}
|
|
440
440
|
//#endregion
|
|
441
|
+
//#region src/utils/types.ts
|
|
442
|
+
function prefixLeft(prefix, value) {
|
|
443
|
+
return `${prefix}_${value}`;
|
|
444
|
+
}
|
|
445
|
+
//#endregion
|
|
441
446
|
//#region src/validators/workflow-templates.validators.ts
|
|
442
447
|
function validateEmailAction(object) {
|
|
443
448
|
if (typeof object !== "object" || object === null) return (0, fp_ts_Either.left)("malformed_object");
|
|
@@ -685,11 +690,8 @@ function validateWorkflowTemplateScope(object) {
|
|
|
685
690
|
if (typeof object !== "object" || object === null) return (0, fp_ts_Either.left)("malformed_object");
|
|
686
691
|
if (!hasOwnProperty(object, "type") || object.type !== "workflow_template") return (0, fp_ts_Either.left)("invalid_type");
|
|
687
692
|
if (!hasOwnProperty(object, "workflowTemplateId") || !isNonEmptyString(object.workflowTemplateId)) return (0, fp_ts_Either.left)("invalid_workflow_template_id");
|
|
688
|
-
if (!hasOwnProperty(object, "type") || typeof object.type !== "string") return (0, fp_ts_Either.left)("invalid_type");
|
|
689
|
-
const type = getStringAsEnum(object.type, WorkflowTemplateScope.TypeEnum);
|
|
690
|
-
if (!type) return (0, fp_ts_Either.left)("invalid_type");
|
|
691
693
|
return (0, fp_ts_Either.right)({
|
|
692
|
-
type,
|
|
694
|
+
type: object.type,
|
|
693
695
|
workflowTemplateId: object.workflowTemplateId
|
|
694
696
|
});
|
|
695
697
|
}
|
|
@@ -719,7 +721,7 @@ function validateListWorkflowTemplates200Response(object) {
|
|
|
719
721
|
const data = [];
|
|
720
722
|
for (const item of object.data) {
|
|
721
723
|
const validatedItem = validateWorkflowTemplateSummary(item);
|
|
722
|
-
if ((0, fp_ts_Either.isLeft)(validatedItem)) return (0, fp_ts_Either.left)("
|
|
724
|
+
if ((0, fp_ts_Either.isLeft)(validatedItem)) return (0, fp_ts_Either.left)(prefixLeft("data_item", validatedItem.left));
|
|
723
725
|
data.push(validatedItem.right);
|
|
724
726
|
}
|
|
725
727
|
if (!hasOwnProperty(object, "pagination")) return (0, fp_ts_Either.left)("missing_pagination");
|
|
@@ -734,10 +736,21 @@ function validateListWorkflowTemplatesParams(object) {
|
|
|
734
736
|
const sharedValidation = validateSharedListParams(object);
|
|
735
737
|
if ((0, fp_ts_Either.isLeft)(sharedValidation)) return (0, fp_ts_Either.left)(sharedValidation.left);
|
|
736
738
|
const result = sharedValidation.right;
|
|
737
|
-
if (typeof object
|
|
739
|
+
if (typeof object !== "object" || object === null) return (0, fp_ts_Either.left)("malformed_object");
|
|
740
|
+
if (hasOwnProperty(object, "spaceIdentifier") && object.spaceIdentifier !== void 0) {
|
|
738
741
|
if (!isNonEmptyString(object.spaceIdentifier)) return (0, fp_ts_Either.left)("invalid_space_identifier");
|
|
739
742
|
result.spaceIdentifier = object.spaceIdentifier;
|
|
740
743
|
}
|
|
744
|
+
let status = ["ACTIVE"];
|
|
745
|
+
if (hasOwnProperty(object, "status") && object.status !== void 0) {
|
|
746
|
+
const statusVal = object.status;
|
|
747
|
+
if (Array.isArray(statusVal)) {
|
|
748
|
+
for (const item of statusVal) if (typeof item !== "string") return (0, fp_ts_Either.left)("invalid_status");
|
|
749
|
+
status = statusVal;
|
|
750
|
+
} else if (typeof statusVal === "string") status = [statusVal];
|
|
751
|
+
else return (0, fp_ts_Either.left)("invalid_status");
|
|
752
|
+
}
|
|
753
|
+
result.status = status;
|
|
741
754
|
return (0, fp_ts_Either.right)(result);
|
|
742
755
|
}
|
|
743
756
|
//#endregion
|
|
@@ -845,8 +858,10 @@ function validateListWorkflowsParams(object) {
|
|
|
845
858
|
let includeOnlyNonTerminalState = void 0;
|
|
846
859
|
if (hasOwnProperty(object, "includeOnlyNonTerminalState")) {
|
|
847
860
|
const val = object["includeOnlyNonTerminalState"];
|
|
848
|
-
if (typeof val
|
|
849
|
-
includeOnlyNonTerminalState =
|
|
861
|
+
if (typeof val === "boolean") includeOnlyNonTerminalState = val;
|
|
862
|
+
else if (val === "true") includeOnlyNonTerminalState = true;
|
|
863
|
+
else if (val === "false") includeOnlyNonTerminalState = false;
|
|
864
|
+
else return (0, fp_ts_Either.left)("invalid_include_only_non_terminal_state");
|
|
850
865
|
}
|
|
851
866
|
let workflowTemplateIdentifier = void 0;
|
|
852
867
|
if (hasOwnProperty(object, "workflowTemplateIdentifier")) {
|
package/dist/src/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as ApprovalRule, a as Workflow, c as WorkflowAction, d as ListGroups200Response, f as Pagination, g as AndRule, h as EmailAction, i as ListWorkflows200Response, l as WebhookAction, m as GroupInfo, n as User, o as WorkflowRef, p as Group, r as TokenResponse, s as WorkflowTemplate, t as WorkflowCreate, u as UserSummary, v as GroupRequirementRule, y as OrRule } from "../workflow-create-
|
|
1
|
+
import { _ as ApprovalRule, a as Workflow, c as WorkflowAction, d as ListGroups200Response, f as Pagination, g as AndRule, h as EmailAction, i as ListWorkflows200Response, l as WebhookAction, m as GroupInfo, n as User, o as WorkflowRef, p as Group, r as TokenResponse, s as WorkflowTemplate, t as WorkflowCreate, u as UserSummary, v as GroupRequirementRule, y as OrRule } from "../workflow-create-TrS0XFqN.cjs";
|
|
2
2
|
import { Either } from "fp-ts/Either";
|
|
3
3
|
|
|
4
4
|
//#region generated/openapi/model/api-error-details-inner.d.ts
|
|
@@ -6,7 +6,7 @@ import { Either } from "fp-ts/Either";
|
|
|
6
6
|
* Workflow Approval System API
|
|
7
7
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
8
8
|
*
|
|
9
|
-
* The version of the OpenAPI document: 0.0.
|
|
9
|
+
* The version of the OpenAPI document: 0.0.32
|
|
10
10
|
*
|
|
11
11
|
*
|
|
12
12
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -36,7 +36,7 @@ interface APIError {
|
|
|
36
36
|
* Workflow Approval System API
|
|
37
37
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
38
38
|
*
|
|
39
|
-
* The version of the OpenAPI document: 0.0.
|
|
39
|
+
* The version of the OpenAPI document: 0.0.32
|
|
40
40
|
*
|
|
41
41
|
*
|
|
42
42
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -75,7 +75,7 @@ interface AddGroupEntitiesRequest {
|
|
|
75
75
|
* Workflow Approval System API
|
|
76
76
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
77
77
|
*
|
|
78
|
-
* The version of the OpenAPI document: 0.0.
|
|
78
|
+
* The version of the OpenAPI document: 0.0.32
|
|
79
79
|
*
|
|
80
80
|
*
|
|
81
81
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -94,7 +94,7 @@ interface AgentChallengeRequest {
|
|
|
94
94
|
* Workflow Approval System API
|
|
95
95
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
96
96
|
*
|
|
97
|
-
* The version of the OpenAPI document: 0.0.
|
|
97
|
+
* The version of the OpenAPI document: 0.0.32
|
|
98
98
|
*
|
|
99
99
|
*
|
|
100
100
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -113,7 +113,7 @@ interface AgentChallengeResponse {
|
|
|
113
113
|
* Workflow Approval System API
|
|
114
114
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
115
115
|
*
|
|
116
|
-
* The version of the OpenAPI document: 0.0.
|
|
116
|
+
* The version of the OpenAPI document: 0.0.32
|
|
117
117
|
*
|
|
118
118
|
*
|
|
119
119
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -144,7 +144,7 @@ interface AgentGet200Response {
|
|
|
144
144
|
* Workflow Approval System API
|
|
145
145
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
146
146
|
*
|
|
147
|
-
* The version of the OpenAPI document: 0.0.
|
|
147
|
+
* The version of the OpenAPI document: 0.0.32
|
|
148
148
|
*
|
|
149
149
|
*
|
|
150
150
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -163,7 +163,7 @@ interface AgentRegistrationRequest {
|
|
|
163
163
|
* Workflow Approval System API
|
|
164
164
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
165
165
|
*
|
|
166
|
-
* The version of the OpenAPI document: 0.0.
|
|
166
|
+
* The version of the OpenAPI document: 0.0.32
|
|
167
167
|
*
|
|
168
168
|
*
|
|
169
169
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -198,7 +198,7 @@ interface AgentRegistrationResponse {
|
|
|
198
198
|
* Workflow Approval System API
|
|
199
199
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
200
200
|
*
|
|
201
|
-
* The version of the OpenAPI document: 0.0.
|
|
201
|
+
* The version of the OpenAPI document: 0.0.32
|
|
202
202
|
*
|
|
203
203
|
*
|
|
204
204
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -221,7 +221,7 @@ interface AgentSummary {
|
|
|
221
221
|
* Workflow Approval System API
|
|
222
222
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
223
223
|
*
|
|
224
|
-
* The version of the OpenAPI document: 0.0.
|
|
224
|
+
* The version of the OpenAPI document: 0.0.32
|
|
225
225
|
*
|
|
226
226
|
*
|
|
227
227
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -258,7 +258,7 @@ declare namespace AgentTokenRequest {
|
|
|
258
258
|
* Workflow Approval System API
|
|
259
259
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
260
260
|
*
|
|
261
|
-
* The version of the OpenAPI document: 0.0.
|
|
261
|
+
* The version of the OpenAPI document: 0.0.32
|
|
262
262
|
*
|
|
263
263
|
*
|
|
264
264
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -281,7 +281,7 @@ interface AgentTokenResponse {
|
|
|
281
281
|
* Workflow Approval System API
|
|
282
282
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
283
283
|
*
|
|
284
|
-
* The version of the OpenAPI document: 0.0.
|
|
284
|
+
* The version of the OpenAPI document: 0.0.32
|
|
285
285
|
*
|
|
286
286
|
*
|
|
287
287
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -326,7 +326,7 @@ interface GetEntityInfo200Response {
|
|
|
326
326
|
* Workflow Approval System API
|
|
327
327
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
328
328
|
*
|
|
329
|
-
* The version of the OpenAPI document: 0.0.
|
|
329
|
+
* The version of the OpenAPI document: 0.0.32
|
|
330
330
|
*
|
|
331
331
|
*
|
|
332
332
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -345,7 +345,7 @@ interface GetWorkflowParams {
|
|
|
345
345
|
* Workflow Approval System API
|
|
346
346
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
347
347
|
*
|
|
348
|
-
* The version of the OpenAPI document: 0.0.
|
|
348
|
+
* The version of the OpenAPI document: 0.0.32
|
|
349
349
|
*
|
|
350
350
|
*
|
|
351
351
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -389,7 +389,7 @@ interface GetWorkflowVotes200Response {
|
|
|
389
389
|
* Workflow Approval System API
|
|
390
390
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
391
391
|
*
|
|
392
|
-
* The version of the OpenAPI document: 0.0.
|
|
392
|
+
* The version of the OpenAPI document: 0.0.32
|
|
393
393
|
*
|
|
394
394
|
*
|
|
395
395
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -421,7 +421,7 @@ interface GroupMembership {
|
|
|
421
421
|
* Workflow Approval System API
|
|
422
422
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
423
423
|
*
|
|
424
|
-
* The version of the OpenAPI document: 0.0.
|
|
424
|
+
* The version of the OpenAPI document: 0.0.32
|
|
425
425
|
*
|
|
426
426
|
*
|
|
427
427
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -453,7 +453,7 @@ declare namespace GroupScope {
|
|
|
453
453
|
* Workflow Approval System API
|
|
454
454
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
455
455
|
*
|
|
456
|
-
* The version of the OpenAPI document: 0.0.
|
|
456
|
+
* The version of the OpenAPI document: 0.0.32
|
|
457
457
|
*
|
|
458
458
|
*
|
|
459
459
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -476,7 +476,7 @@ interface HealthResponse {
|
|
|
476
476
|
* Workflow Approval System API
|
|
477
477
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
478
478
|
*
|
|
479
|
-
* The version of the OpenAPI document: 0.0.
|
|
479
|
+
* The version of the OpenAPI document: 0.0.32
|
|
480
480
|
*
|
|
481
481
|
*
|
|
482
482
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -492,7 +492,7 @@ interface InitiateCliLogin200Response {
|
|
|
492
492
|
* Workflow Approval System API
|
|
493
493
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
494
494
|
*
|
|
495
|
-
* The version of the OpenAPI document: 0.0.
|
|
495
|
+
* The version of the OpenAPI document: 0.0.32
|
|
496
496
|
*
|
|
497
497
|
*
|
|
498
498
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -517,7 +517,7 @@ interface ListAgents200Response {
|
|
|
517
517
|
* Workflow Approval System API
|
|
518
518
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
519
519
|
*
|
|
520
|
-
* The version of the OpenAPI document: 0.0.
|
|
520
|
+
* The version of the OpenAPI document: 0.0.32
|
|
521
521
|
*
|
|
522
522
|
*
|
|
523
523
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -546,7 +546,7 @@ interface ListGroupEntities200Response {
|
|
|
546
546
|
* Workflow Approval System API
|
|
547
547
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
548
548
|
*
|
|
549
|
-
* The version of the OpenAPI document: 0.0.
|
|
549
|
+
* The version of the OpenAPI document: 0.0.32
|
|
550
550
|
*
|
|
551
551
|
*
|
|
552
552
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -573,7 +573,7 @@ interface ListGroupsParams {
|
|
|
573
573
|
* Workflow Approval System API
|
|
574
574
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
575
575
|
*
|
|
576
|
-
* The version of the OpenAPI document: 0.0.
|
|
576
|
+
* The version of the OpenAPI document: 0.0.32
|
|
577
577
|
*
|
|
578
578
|
*
|
|
579
579
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -606,7 +606,7 @@ interface ListOrganizationAdminsForOrg200Response {
|
|
|
606
606
|
* Workflow Approval System API
|
|
607
607
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
608
608
|
*
|
|
609
|
-
* The version of the OpenAPI document: 0.0.
|
|
609
|
+
* The version of the OpenAPI document: 0.0.32
|
|
610
610
|
*
|
|
611
611
|
*
|
|
612
612
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -638,7 +638,7 @@ interface ListRoleTemplates200Response {
|
|
|
638
638
|
* Workflow Approval System API
|
|
639
639
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
640
640
|
*
|
|
641
|
-
* The version of the OpenAPI document: 0.0.
|
|
641
|
+
* The version of the OpenAPI document: 0.0.32
|
|
642
642
|
*
|
|
643
643
|
*
|
|
644
644
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -679,7 +679,7 @@ interface ListSpaces200Response {
|
|
|
679
679
|
* Workflow Approval System API
|
|
680
680
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
681
681
|
*
|
|
682
|
-
* The version of the OpenAPI document: 0.0.
|
|
682
|
+
* The version of the OpenAPI document: 0.0.32
|
|
683
683
|
*
|
|
684
684
|
*
|
|
685
685
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -712,7 +712,7 @@ interface ListUsers200Response {
|
|
|
712
712
|
* Workflow Approval System API
|
|
713
713
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
714
714
|
*
|
|
715
|
-
* The version of the OpenAPI document: 0.0.
|
|
715
|
+
* The version of the OpenAPI document: 0.0.32
|
|
716
716
|
*
|
|
717
717
|
*
|
|
718
718
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -739,7 +739,7 @@ interface ListUsersParams {
|
|
|
739
739
|
* Workflow Approval System API
|
|
740
740
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
741
741
|
*
|
|
742
|
-
* The version of the OpenAPI document: 0.0.
|
|
742
|
+
* The version of the OpenAPI document: 0.0.32
|
|
743
743
|
*
|
|
744
744
|
*
|
|
745
745
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -784,7 +784,7 @@ interface ListWorkflowTemplates200Response {
|
|
|
784
784
|
* Workflow Approval System API
|
|
785
785
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
786
786
|
*
|
|
787
|
-
* The version of the OpenAPI document: 0.0.
|
|
787
|
+
* The version of the OpenAPI document: 0.0.32
|
|
788
788
|
*
|
|
789
789
|
*
|
|
790
790
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -808,6 +808,10 @@ interface ListWorkflowTemplatesParams {
|
|
|
808
808
|
* Optional space identifier (UUID or name) to filter workflow templates.
|
|
809
809
|
*/
|
|
810
810
|
spaceIdentifier?: string;
|
|
811
|
+
/**
|
|
812
|
+
* Filter by workflow template status. Can provide multiple values. Defaults to returning only ACTIVE templates.
|
|
813
|
+
*/
|
|
814
|
+
status?: Array<string>;
|
|
811
815
|
}
|
|
812
816
|
//#endregion
|
|
813
817
|
//#region generated/openapi/model/list-workflows-params.d.ts
|
|
@@ -815,7 +819,7 @@ interface ListWorkflowTemplatesParams {
|
|
|
815
819
|
* Workflow Approval System API
|
|
816
820
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
817
821
|
*
|
|
818
|
-
* The version of the OpenAPI document: 0.0.
|
|
822
|
+
* The version of the OpenAPI document: 0.0.32
|
|
819
823
|
*
|
|
820
824
|
*
|
|
821
825
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -850,7 +854,7 @@ interface ListWorkflowsParams {
|
|
|
850
854
|
* Workflow Approval System API
|
|
851
855
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
852
856
|
*
|
|
853
|
-
* The version of the OpenAPI document: 0.0.
|
|
857
|
+
* The version of the OpenAPI document: 0.0.32
|
|
854
858
|
*
|
|
855
859
|
*
|
|
856
860
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -873,7 +877,7 @@ interface OidcCallbackRequest {
|
|
|
873
877
|
* Workflow Approval System API
|
|
874
878
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
875
879
|
*
|
|
876
|
-
* The version of the OpenAPI document: 0.0.
|
|
880
|
+
* The version of the OpenAPI document: 0.0.32
|
|
877
881
|
*
|
|
878
882
|
*
|
|
879
883
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -901,7 +905,7 @@ declare namespace OrgScope {
|
|
|
901
905
|
* Workflow Approval System API
|
|
902
906
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
903
907
|
*
|
|
904
|
-
* The version of the OpenAPI document: 0.0.
|
|
908
|
+
* The version of the OpenAPI document: 0.0.32
|
|
905
909
|
*
|
|
906
910
|
*
|
|
907
911
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -920,7 +924,7 @@ interface OrganizationAdminCreate {
|
|
|
920
924
|
* Workflow Approval System API
|
|
921
925
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
922
926
|
*
|
|
923
|
-
* The version of the OpenAPI document: 0.0.
|
|
927
|
+
* The version of the OpenAPI document: 0.0.32
|
|
924
928
|
*
|
|
925
929
|
*
|
|
926
930
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -939,7 +943,7 @@ interface OrganizationAdminRemove {
|
|
|
939
943
|
* Workflow Approval System API
|
|
940
944
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
941
945
|
*
|
|
942
|
-
* The version of the OpenAPI document: 0.0.
|
|
946
|
+
* The version of the OpenAPI document: 0.0.32
|
|
943
947
|
*
|
|
944
948
|
*
|
|
945
949
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -970,7 +974,7 @@ interface PrivilegedTokenExchangeRequest {
|
|
|
970
974
|
* Workflow Approval System API
|
|
971
975
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
972
976
|
*
|
|
973
|
-
* The version of the OpenAPI document: 0.0.
|
|
977
|
+
* The version of the OpenAPI document: 0.0.32
|
|
974
978
|
*
|
|
975
979
|
*
|
|
976
980
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -989,7 +993,7 @@ interface PrivilegedTokenResponse {
|
|
|
989
993
|
* Workflow Approval System API
|
|
990
994
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
991
995
|
*
|
|
992
|
-
* The version of the OpenAPI document: 0.0.
|
|
996
|
+
* The version of the OpenAPI document: 0.0.32
|
|
993
997
|
*
|
|
994
998
|
*
|
|
995
999
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1019,7 +1023,7 @@ interface RemoveGroupEntitiesRequest {
|
|
|
1019
1023
|
* Workflow Approval System API
|
|
1020
1024
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
1021
1025
|
*
|
|
1022
|
-
* The version of the OpenAPI document: 0.0.
|
|
1026
|
+
* The version of the OpenAPI document: 0.0.32
|
|
1023
1027
|
*
|
|
1024
1028
|
*
|
|
1025
1029
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1051,7 +1055,7 @@ declare namespace SpaceScope {
|
|
|
1051
1055
|
* Workflow Approval System API
|
|
1052
1056
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
1053
1057
|
*
|
|
1054
|
-
* The version of the OpenAPI document: 0.0.
|
|
1058
|
+
* The version of the OpenAPI document: 0.0.32
|
|
1055
1059
|
*
|
|
1056
1060
|
*
|
|
1057
1061
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1139,7 +1143,7 @@ interface RoleRemovalRequest {
|
|
|
1139
1143
|
* Workflow Approval System API
|
|
1140
1144
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
1141
1145
|
*
|
|
1142
|
-
* The version of the OpenAPI document: 0.0.
|
|
1146
|
+
* The version of the OpenAPI document: 0.0.32
|
|
1143
1147
|
*
|
|
1144
1148
|
*
|
|
1145
1149
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1162,7 +1166,7 @@ interface SpaceCreate {
|
|
|
1162
1166
|
* Workflow Approval System API
|
|
1163
1167
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
1164
1168
|
*
|
|
1165
|
-
* The version of the OpenAPI document: 0.0.
|
|
1169
|
+
* The version of the OpenAPI document: 0.0.32
|
|
1166
1170
|
*
|
|
1167
1171
|
*
|
|
1168
1172
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1185,7 +1189,7 @@ interface TokenRequest {
|
|
|
1185
1189
|
* Workflow Approval System API
|
|
1186
1190
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
1187
1191
|
*
|
|
1188
|
-
* The version of the OpenAPI document: 0.0.
|
|
1192
|
+
* The version of the OpenAPI document: 0.0.32
|
|
1189
1193
|
*
|
|
1190
1194
|
*
|
|
1191
1195
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1212,7 +1216,7 @@ interface UserCreate {
|
|
|
1212
1216
|
* Workflow Approval System API
|
|
1213
1217
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
1214
1218
|
*
|
|
1215
|
-
* The version of the OpenAPI document: 0.0.
|
|
1219
|
+
* The version of the OpenAPI document: 0.0.32
|
|
1216
1220
|
*
|
|
1217
1221
|
*
|
|
1218
1222
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1241,7 +1245,7 @@ declare namespace VoteApprove {
|
|
|
1241
1245
|
* Workflow Approval System API
|
|
1242
1246
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
1243
1247
|
*
|
|
1244
|
-
* The version of the OpenAPI document: 0.0.
|
|
1248
|
+
* The version of the OpenAPI document: 0.0.32
|
|
1245
1249
|
*
|
|
1246
1250
|
*
|
|
1247
1251
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1266,7 +1270,7 @@ declare namespace VoteVeto {
|
|
|
1266
1270
|
* Workflow Approval System API
|
|
1267
1271
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
1268
1272
|
*
|
|
1269
|
-
* The version of the OpenAPI document: 0.0.
|
|
1273
|
+
* The version of the OpenAPI document: 0.0.32
|
|
1270
1274
|
*
|
|
1271
1275
|
*
|
|
1272
1276
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1320,7 +1324,7 @@ interface WorkflowTemplateCreate {
|
|
|
1320
1324
|
* Workflow Approval System API
|
|
1321
1325
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
1322
1326
|
*
|
|
1323
|
-
* The version of the OpenAPI document: 0.0.
|
|
1327
|
+
* The version of the OpenAPI document: 0.0.32
|
|
1324
1328
|
*
|
|
1325
1329
|
*
|
|
1326
1330
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1434,16 +1438,6 @@ declare function validateRoleRemovalRequest(object: unknown): Either<RoleOperati
|
|
|
1434
1438
|
type ListUsersParamsValidationError = "malformed_object" | "invalid_page" | "invalid_limit" | "invalid_search";
|
|
1435
1439
|
declare function validateListUsersParams(object: unknown): Either<ListUsersParamsValidationError, ListUsersParams>;
|
|
1436
1440
|
//#endregion
|
|
1437
|
-
//#region src/validators/workflow-templates.validators.d.ts
|
|
1438
|
-
type ValidationError = "malformed_object" | "invalid_type" | "invalid_recipients" | "invalid_recipients_element" | "invalid_url" | "invalid_method" | "invalid_headers" | "invalid_headers_element" | "invalid_workflow_action_type" | "invalid_group_id" | "invalid_min_count" | "invalid_require_high_privilege" | "invalid_rules" | "invalid_rules_element" | "invalid_approval_rule_type" | "invalid_id" | "invalid_name" | "invalid_version" | "invalid_status" | "invalid_allow_voting" | "missing_approval_rule" | "invalid_approval_rule" | "invalid_space_id" | "invalid_created_at" | "invalid_updated_at" | "invalid_description" | "invalid_metadata" | "invalid_actions" | "invalid_actions_element" | "invalid_default_expires_in_hours" | "invalid_cancel_workflows" | "invalid_workflow_template_id" | "invalid_data" | "invalid_data_element" | "missing_pagination" | "invalid_pagination" | "invalid_page" | "invalid_limit" | "invalid_space_identifier" | "invalid_search";
|
|
1439
|
-
declare function validateWorkflowTemplate(object: unknown): Either<ValidationError, WorkflowTemplate>;
|
|
1440
|
-
declare function validateWorkflowTemplateCreate(object: unknown): Either<ValidationError, WorkflowTemplateCreate>;
|
|
1441
|
-
declare function validateWorkflowTemplateUpdate(object: unknown): Either<ValidationError, WorkflowTemplateUpdate>;
|
|
1442
|
-
declare function validateWorkflowTemplateDeprecate(object: unknown): Either<ValidationError, WorkflowTemplateDeprecate>;
|
|
1443
|
-
declare function validateWorkflowTemplateScope(object: unknown): Either<ValidationError, WorkflowTemplateScope>;
|
|
1444
|
-
declare function validateListWorkflowTemplates200Response(object: unknown): Either<ValidationError, ListWorkflowTemplates200Response>;
|
|
1445
|
-
declare function validateListWorkflowTemplatesParams(object: unknown): Either<ValidationError, ListWorkflowTemplatesParams>;
|
|
1446
|
-
//#endregion
|
|
1447
1441
|
//#region src/validators/common.validators.d.ts
|
|
1448
1442
|
type PaginationValidationError = "malformed_object" | "missing_total" | "invalid_total" | "missing_page" | "invalid_page" | "missing_limit" | "invalid_limit";
|
|
1449
1443
|
type ListParamsValidationError = "malformed_object" | "invalid_page" | "invalid_limit" | "invalid_search";
|
|
@@ -1460,6 +1454,31 @@ declare function validateHealthResponse(object: unknown): Either<HealthResponseV
|
|
|
1460
1454
|
type GetEntityInfo200ResponseValidationError = "malformed_object" | "missing_entity_type" | "invalid_entity_type" | "missing_groups" | "invalid_groups";
|
|
1461
1455
|
declare function validateGetEntityInfo200Response(object: unknown): Either<GetEntityInfo200ResponseValidationError, GetEntityInfo200Response>;
|
|
1462
1456
|
//#endregion
|
|
1457
|
+
//#region src/utils/types.d.ts
|
|
1458
|
+
/**
|
|
1459
|
+
* Create a union type with a prefix
|
|
1460
|
+
* @example
|
|
1461
|
+
* type MyUnion = PrefixUnion<"workflow", "name_empty" | "name_too_long"> // "workflow_name_empty" | "workflow_name_too_long"
|
|
1462
|
+
*/
|
|
1463
|
+
type PrefixUnion<TPrefix extends string, TUnion extends string> = `${TPrefix}_${TUnion}`;
|
|
1464
|
+
//#endregion
|
|
1465
|
+
//#region src/validators/workflow-templates.validators.d.ts
|
|
1466
|
+
type WorkflowTemplateValidationError = "malformed_object" | "invalid_id" | "invalid_name" | "invalid_version" | "invalid_status" | "invalid_allow_voting" | "missing_approval_rule" | "invalid_approval_rule" | "invalid_space_id" | "invalid_created_at" | "invalid_updated_at" | "invalid_description" | "invalid_metadata" | "invalid_actions" | "invalid_actions_element" | "invalid_default_expires_in_hours";
|
|
1467
|
+
declare function validateWorkflowTemplate(object: unknown): Either<WorkflowTemplateValidationError, WorkflowTemplate>;
|
|
1468
|
+
type WorkflowTemplateCreateValidationError = "malformed_object" | "invalid_name" | "missing_approval_rule" | "invalid_approval_rule" | "invalid_space_id" | "invalid_description" | "invalid_metadata" | "invalid_actions" | "invalid_actions_element" | "invalid_default_expires_in_hours";
|
|
1469
|
+
declare function validateWorkflowTemplateCreate(object: unknown): Either<WorkflowTemplateCreateValidationError, WorkflowTemplateCreate>;
|
|
1470
|
+
type WorkflowTemplateUpdateValidationError = "malformed_object" | "invalid_description" | "invalid_metadata" | "invalid_approval_rule" | "invalid_actions" | "invalid_actions_element" | "invalid_default_expires_in_hours" | "invalid_cancel_workflows";
|
|
1471
|
+
declare function validateWorkflowTemplateUpdate(object: unknown): Either<WorkflowTemplateUpdateValidationError, WorkflowTemplateUpdate>;
|
|
1472
|
+
type WorkflowTemplateDeprecateValidationError = "malformed_object" | "invalid_cancel_workflows";
|
|
1473
|
+
declare function validateWorkflowTemplateDeprecate(object: unknown): Either<WorkflowTemplateDeprecateValidationError, WorkflowTemplateDeprecate>;
|
|
1474
|
+
type WorkflowTemplateScopeValidationError = "malformed_object" | "invalid_type" | "invalid_workflow_template_id";
|
|
1475
|
+
declare function validateWorkflowTemplateScope(object: unknown): Either<WorkflowTemplateScopeValidationError, WorkflowTemplateScope>;
|
|
1476
|
+
type WorkflowTemplateSummaryValidationError = "malformed_object" | "invalid_id" | "invalid_name" | "invalid_version" | "invalid_created_at" | "invalid_updated_at" | "invalid_description";
|
|
1477
|
+
type ListWorkflowTemplates200ResponseValidationError = "malformed_object" | "invalid_data" | "invalid_pagination" | "missing_pagination" | PrefixUnion<"data_item", WorkflowTemplateSummaryValidationError>;
|
|
1478
|
+
declare function validateListWorkflowTemplates200Response(object: unknown): Either<ListWorkflowTemplates200ResponseValidationError, ListWorkflowTemplates200Response>;
|
|
1479
|
+
type ListWorkflowTemplatesParamsValidationError = ListParamsValidationError | "invalid_space_identifier" | "invalid_status";
|
|
1480
|
+
declare function validateListWorkflowTemplatesParams(object: unknown): Either<ListWorkflowTemplatesParamsValidationError, ListWorkflowTemplatesParams>;
|
|
1481
|
+
//#endregion
|
|
1463
1482
|
//#region src/validators/spaces.validators.d.ts
|
|
1464
1483
|
type SpaceValidationError = "malformed_object" | "missing_id" | "invalid_id" | "missing_name" | "invalid_name" | "invalid_description" | "missing_created_at" | "invalid_created_at" | "missing_updated_at" | "invalid_updated_at";
|
|
1465
1484
|
type SpaceCreateValidationError = "malformed_object" | "missing_name" | "invalid_name" | "invalid_description";
|
|
@@ -1532,4 +1551,4 @@ type APIErrorValidationError = "malformed_object" | "missing_code" | "invalid_co
|
|
|
1532
1551
|
declare function validateAPIError(object: unknown): Either<APIErrorValidationError, APIError>;
|
|
1533
1552
|
declare function isAPIError(object: unknown): object is APIError;
|
|
1534
1553
|
//#endregion
|
|
1535
|
-
export { APIError, APIErrorDetailsInner, APIErrorDetailsInnerValidationError, APIErrorValidationError, AddGroupEntitiesRequest, AddGroupEntitiesRequestValidationError, AgentChallengeRequest, AgentChallengeRequestValidationError, AgentChallengeResponse, AgentChallengeResponseValidationError, AgentGet200Response, AgentGet200ResponseValidationError, AgentRegistrationRequest, AgentRegistrationRequestValidationError, AgentRegistrationResponse, AgentRegistrationResponseValidationError, AgentSummary, AgentSummaryValidationError, AgentTokenRequest, AgentTokenRequestValidationError, AgentTokenResponse, AgentTokenResponseValidationError, AndRule, ApprovalRule, CanVoteResponse, CanVoteResponseValidationError, EmailAction, EntityMembershipAdd, EntityMembershipAddValidationError, EntityMembershipRemove, EntityMembershipRemoveValidationError, EntityReference, EntityReferenceValidationError, GetEntityInfo200Response, GetEntityInfo200ResponseValidationError, GetWorkflowParams, GetWorkflowParamsValidationError, GetWorkflowVotes200Response, GetWorkflowVotes200ResponseValidationError, Group, GroupCreate, GroupCreateValidationError, GroupInfo, GroupInfoValidationError, GroupMembership, GroupMembershipValidationError, GroupRequirementRule, GroupScope, GroupScopeValidationError, GroupValidationError, HealthResponse, HealthResponseValidationError, InitiateCliLogin200Response, InitiateCliLogin200ResponseValidationError, InitiateCliLoginRequest, InitiateCliLoginRequestValidationError, ListAgents200Response, ListAgents200ResponseValidationError, ListAgentsParams, ListAgentsParamsValidationError, ListGroupEntities200Response, ListGroupEntities200ResponseValidationError, ListGroups200Response, ListGroups200ResponseValidationError, ListGroupsParams, ListGroupsParamsValidationError, ListOrganizationAdminsForOrg200Response, ListOrganizationAdminsForOrg200ResponseValidationError, ListParamsValidationError, ListRoleTemplates200Response, ListRoleTemplates200ResponseValidationError, ListSpaces200Response, ListSpaces200ResponseValidationError, ListSpacesParams, ListSpacesParamsValidationError, ListUsers200Response, ListUsers200ResponseValidationError, ListUsersParams, ListUsersParamsValidationError, ListWorkflowTemplates200Response, ListWorkflowTemplatesParams, ListWorkflows200Response, ListWorkflows200ResponseValidationError, ListWorkflowsParams, ListWorkflowsParamsValidationError, OidcCallbackRequest, OidcCallbackRequestValidationError, OrRule, OrgScope, OrganizationAdmin, OrganizationAdminCreate, OrganizationAdminCreateValidationError, OrganizationAdminRemove, OrganizationAdminRemoveValidationError, OrganizationAdminValidationError, Pagination, PaginationValidationError, PrivilegedTokenExchangeRequest, PrivilegedTokenExchangeRequestValidationError, PrivilegedTokenResponse, PrivilegedTokenResponseValidationError, RefreshTokenRequest, RefreshTokenRequestValidationError, RemoveGroupEntitiesRequest, RemoveGroupEntitiesRequestValidationError, RoleAssignmentRequest, RoleOperationItem, RoleOperationItemValidationError, RoleOperationRequest, RoleOperationRequestValidationError, RoleRemovalRequest, RoleScope, RoleScopeValidationError, RoleTemplate, RoleTemplateValidationError, Space, SpaceCreate, SpaceCreateValidationError, SpaceScope, SpaceScopeValidationError, SpaceValidationError, TokenRequest, TokenRequestValidationError, TokenResponse, TokenResponseValidationError, User, UserCreate, UserCreateValidationError, UserSummary, UserSummaryValidationError, UserValidationError, ValidatedListParams,
|
|
1554
|
+
export { APIError, APIErrorDetailsInner, APIErrorDetailsInnerValidationError, APIErrorValidationError, AddGroupEntitiesRequest, AddGroupEntitiesRequestValidationError, AgentChallengeRequest, AgentChallengeRequestValidationError, AgentChallengeResponse, AgentChallengeResponseValidationError, AgentGet200Response, AgentGet200ResponseValidationError, AgentRegistrationRequest, AgentRegistrationRequestValidationError, AgentRegistrationResponse, AgentRegistrationResponseValidationError, AgentSummary, AgentSummaryValidationError, AgentTokenRequest, AgentTokenRequestValidationError, AgentTokenResponse, AgentTokenResponseValidationError, AndRule, ApprovalRule, CanVoteResponse, CanVoteResponseValidationError, EmailAction, EntityMembershipAdd, EntityMembershipAddValidationError, EntityMembershipRemove, EntityMembershipRemoveValidationError, EntityReference, EntityReferenceValidationError, GetEntityInfo200Response, GetEntityInfo200ResponseValidationError, GetWorkflowParams, GetWorkflowParamsValidationError, GetWorkflowVotes200Response, GetWorkflowVotes200ResponseValidationError, Group, GroupCreate, GroupCreateValidationError, GroupInfo, GroupInfoValidationError, GroupMembership, GroupMembershipValidationError, GroupRequirementRule, GroupScope, GroupScopeValidationError, GroupValidationError, HealthResponse, HealthResponseValidationError, InitiateCliLogin200Response, InitiateCliLogin200ResponseValidationError, InitiateCliLoginRequest, InitiateCliLoginRequestValidationError, ListAgents200Response, ListAgents200ResponseValidationError, ListAgentsParams, ListAgentsParamsValidationError, ListGroupEntities200Response, ListGroupEntities200ResponseValidationError, ListGroups200Response, ListGroups200ResponseValidationError, ListGroupsParams, ListGroupsParamsValidationError, ListOrganizationAdminsForOrg200Response, ListOrganizationAdminsForOrg200ResponseValidationError, ListParamsValidationError, ListRoleTemplates200Response, ListRoleTemplates200ResponseValidationError, ListSpaces200Response, ListSpaces200ResponseValidationError, ListSpacesParams, ListSpacesParamsValidationError, ListUsers200Response, ListUsers200ResponseValidationError, ListUsersParams, ListUsersParamsValidationError, ListWorkflowTemplates200Response, ListWorkflowTemplates200ResponseValidationError, ListWorkflowTemplatesParams, ListWorkflowTemplatesParamsValidationError, ListWorkflows200Response, ListWorkflows200ResponseValidationError, ListWorkflowsParams, ListWorkflowsParamsValidationError, OidcCallbackRequest, OidcCallbackRequestValidationError, OrRule, OrgScope, OrganizationAdmin, OrganizationAdminCreate, OrganizationAdminCreateValidationError, OrganizationAdminRemove, OrganizationAdminRemoveValidationError, OrganizationAdminValidationError, Pagination, PaginationValidationError, PrivilegedTokenExchangeRequest, PrivilegedTokenExchangeRequestValidationError, PrivilegedTokenResponse, PrivilegedTokenResponseValidationError, RefreshTokenRequest, RefreshTokenRequestValidationError, RemoveGroupEntitiesRequest, RemoveGroupEntitiesRequestValidationError, RoleAssignmentRequest, RoleOperationItem, RoleOperationItemValidationError, RoleOperationRequest, RoleOperationRequestValidationError, RoleRemovalRequest, RoleScope, RoleScopeValidationError, RoleTemplate, RoleTemplateValidationError, Space, SpaceCreate, SpaceCreateValidationError, SpaceScope, SpaceScopeValidationError, SpaceValidationError, TokenRequest, TokenRequestValidationError, TokenResponse, TokenResponseValidationError, User, UserCreate, UserCreateValidationError, UserSummary, UserSummaryValidationError, UserValidationError, ValidatedListParams, VoteApprove, VoteApproveValidationError, VoteVeto, VoteVetoValidationError, VoteWithdraw, VoteWithdrawValidationError, WebhookAction, Workflow, WorkflowAction, WorkflowCreate, WorkflowCreateValidationError, WorkflowRef, WorkflowRefValidationError, WorkflowTemplate, WorkflowTemplateCreate, WorkflowTemplateCreateValidationError, WorkflowTemplateDeprecate, WorkflowTemplateDeprecateValidationError, WorkflowTemplateScope, WorkflowTemplateScopeValidationError, WorkflowTemplateSummary, WorkflowTemplateUpdate, WorkflowTemplateUpdateValidationError, WorkflowTemplateValidationError, WorkflowValidationError, WorkflowVote, WorkflowVoteRequest, WorkflowVoteRequestValidationError, WorkflowVoteRequestVoteType, WorkflowVoteRequestVoteTypeValidationError, WorkflowVoteValidationError, isAPIError, validateAPIError, validateAddGroupEntitiesRequest, validateAgentChallengeRequest, validateAgentChallengeResponse, validateAgentGet200Response, validateAgentRegistrationRequest, validateAgentRegistrationResponse, validateAgentTokenRequest, validateAgentTokenResponse, validateCanVoteResponse, validateGetEntityInfo200Response, validateGetWorkflowParams, validateGetWorkflowVotes200Response, validateGroupCreate, validateGroupInfo, validateGroupScope, validateHealthResponse, validateInitiateCliLogin200Response, validateInitiateCliLoginRequest, validateListAgents200Response, validateListAgentsParams, validateListGroupEntities200Response, validateListGroups200Response, validateListGroupsParams, validateListOrganizationAdminsForOrg200Response, validateListRoleTemplates200Response, validateListSpaces200Response, validateListSpacesParams, validateListUsers200Response, validateListUsersParams, validateListWorkflowTemplates200Response, validateListWorkflowTemplatesParams, validateListWorkflows200Response, validateListWorkflowsParams, validateOidcCallbackRequest, validateOrganizationAdminCreate, validateOrganizationAdminRemove, validatePagination, validatePrivilegedTokenExchangeRequest, validatePrivilegedTokenResponse, validateRefreshTokenRequest, validateRemoveGroupEntitiesRequest, validateRoleAssignmentRequest, validateRoleRemovalRequest, validateSharedListParams, validateSpaceCreate, validateSpaceScope, validateTokenRequest, validateTokenResponse, validateUser, validateUserCreate, validateWorkflowCreate, validateWorkflowTemplate, validateWorkflowTemplateCreate, validateWorkflowTemplateDeprecate, validateWorkflowTemplateScope, validateWorkflowTemplateUpdate, validateWorkflowVoteRequest };
|
package/dist/src/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as ApprovalRule, a as Workflow, c as WorkflowAction, d as ListGroups200Response, f as Pagination, g as AndRule, h as EmailAction, i as ListWorkflows200Response, l as WebhookAction, m as GroupInfo, n as User, o as WorkflowRef, p as Group, r as TokenResponse, s as WorkflowTemplate, t as WorkflowCreate, u as UserSummary, v as GroupRequirementRule, y as OrRule } from "../workflow-create-
|
|
1
|
+
import { _ as ApprovalRule, a as Workflow, c as WorkflowAction, d as ListGroups200Response, f as Pagination, g as AndRule, h as EmailAction, i as ListWorkflows200Response, l as WebhookAction, m as GroupInfo, n as User, o as WorkflowRef, p as Group, r as TokenResponse, s as WorkflowTemplate, t as WorkflowCreate, u as UserSummary, v as GroupRequirementRule, y as OrRule } from "../workflow-create-CnfcH7rt.mjs";
|
|
2
2
|
import { Either } from "fp-ts/Either";
|
|
3
3
|
|
|
4
4
|
//#region generated/openapi/model/api-error-details-inner.d.ts
|
|
@@ -6,7 +6,7 @@ import { Either } from "fp-ts/Either";
|
|
|
6
6
|
* Workflow Approval System API
|
|
7
7
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
8
8
|
*
|
|
9
|
-
* The version of the OpenAPI document: 0.0.
|
|
9
|
+
* The version of the OpenAPI document: 0.0.32
|
|
10
10
|
*
|
|
11
11
|
*
|
|
12
12
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -36,7 +36,7 @@ interface APIError {
|
|
|
36
36
|
* Workflow Approval System API
|
|
37
37
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
38
38
|
*
|
|
39
|
-
* The version of the OpenAPI document: 0.0.
|
|
39
|
+
* The version of the OpenAPI document: 0.0.32
|
|
40
40
|
*
|
|
41
41
|
*
|
|
42
42
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -75,7 +75,7 @@ interface AddGroupEntitiesRequest {
|
|
|
75
75
|
* Workflow Approval System API
|
|
76
76
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
77
77
|
*
|
|
78
|
-
* The version of the OpenAPI document: 0.0.
|
|
78
|
+
* The version of the OpenAPI document: 0.0.32
|
|
79
79
|
*
|
|
80
80
|
*
|
|
81
81
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -94,7 +94,7 @@ interface AgentChallengeRequest {
|
|
|
94
94
|
* Workflow Approval System API
|
|
95
95
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
96
96
|
*
|
|
97
|
-
* The version of the OpenAPI document: 0.0.
|
|
97
|
+
* The version of the OpenAPI document: 0.0.32
|
|
98
98
|
*
|
|
99
99
|
*
|
|
100
100
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -113,7 +113,7 @@ interface AgentChallengeResponse {
|
|
|
113
113
|
* Workflow Approval System API
|
|
114
114
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
115
115
|
*
|
|
116
|
-
* The version of the OpenAPI document: 0.0.
|
|
116
|
+
* The version of the OpenAPI document: 0.0.32
|
|
117
117
|
*
|
|
118
118
|
*
|
|
119
119
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -144,7 +144,7 @@ interface AgentGet200Response {
|
|
|
144
144
|
* Workflow Approval System API
|
|
145
145
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
146
146
|
*
|
|
147
|
-
* The version of the OpenAPI document: 0.0.
|
|
147
|
+
* The version of the OpenAPI document: 0.0.32
|
|
148
148
|
*
|
|
149
149
|
*
|
|
150
150
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -163,7 +163,7 @@ interface AgentRegistrationRequest {
|
|
|
163
163
|
* Workflow Approval System API
|
|
164
164
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
165
165
|
*
|
|
166
|
-
* The version of the OpenAPI document: 0.0.
|
|
166
|
+
* The version of the OpenAPI document: 0.0.32
|
|
167
167
|
*
|
|
168
168
|
*
|
|
169
169
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -198,7 +198,7 @@ interface AgentRegistrationResponse {
|
|
|
198
198
|
* Workflow Approval System API
|
|
199
199
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
200
200
|
*
|
|
201
|
-
* The version of the OpenAPI document: 0.0.
|
|
201
|
+
* The version of the OpenAPI document: 0.0.32
|
|
202
202
|
*
|
|
203
203
|
*
|
|
204
204
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -221,7 +221,7 @@ interface AgentSummary {
|
|
|
221
221
|
* Workflow Approval System API
|
|
222
222
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
223
223
|
*
|
|
224
|
-
* The version of the OpenAPI document: 0.0.
|
|
224
|
+
* The version of the OpenAPI document: 0.0.32
|
|
225
225
|
*
|
|
226
226
|
*
|
|
227
227
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -258,7 +258,7 @@ declare namespace AgentTokenRequest {
|
|
|
258
258
|
* Workflow Approval System API
|
|
259
259
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
260
260
|
*
|
|
261
|
-
* The version of the OpenAPI document: 0.0.
|
|
261
|
+
* The version of the OpenAPI document: 0.0.32
|
|
262
262
|
*
|
|
263
263
|
*
|
|
264
264
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -281,7 +281,7 @@ interface AgentTokenResponse {
|
|
|
281
281
|
* Workflow Approval System API
|
|
282
282
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
283
283
|
*
|
|
284
|
-
* The version of the OpenAPI document: 0.0.
|
|
284
|
+
* The version of the OpenAPI document: 0.0.32
|
|
285
285
|
*
|
|
286
286
|
*
|
|
287
287
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -326,7 +326,7 @@ interface GetEntityInfo200Response {
|
|
|
326
326
|
* Workflow Approval System API
|
|
327
327
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
328
328
|
*
|
|
329
|
-
* The version of the OpenAPI document: 0.0.
|
|
329
|
+
* The version of the OpenAPI document: 0.0.32
|
|
330
330
|
*
|
|
331
331
|
*
|
|
332
332
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -345,7 +345,7 @@ interface GetWorkflowParams {
|
|
|
345
345
|
* Workflow Approval System API
|
|
346
346
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
347
347
|
*
|
|
348
|
-
* The version of the OpenAPI document: 0.0.
|
|
348
|
+
* The version of the OpenAPI document: 0.0.32
|
|
349
349
|
*
|
|
350
350
|
*
|
|
351
351
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -389,7 +389,7 @@ interface GetWorkflowVotes200Response {
|
|
|
389
389
|
* Workflow Approval System API
|
|
390
390
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
391
391
|
*
|
|
392
|
-
* The version of the OpenAPI document: 0.0.
|
|
392
|
+
* The version of the OpenAPI document: 0.0.32
|
|
393
393
|
*
|
|
394
394
|
*
|
|
395
395
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -421,7 +421,7 @@ interface GroupMembership {
|
|
|
421
421
|
* Workflow Approval System API
|
|
422
422
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
423
423
|
*
|
|
424
|
-
* The version of the OpenAPI document: 0.0.
|
|
424
|
+
* The version of the OpenAPI document: 0.0.32
|
|
425
425
|
*
|
|
426
426
|
*
|
|
427
427
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -453,7 +453,7 @@ declare namespace GroupScope {
|
|
|
453
453
|
* Workflow Approval System API
|
|
454
454
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
455
455
|
*
|
|
456
|
-
* The version of the OpenAPI document: 0.0.
|
|
456
|
+
* The version of the OpenAPI document: 0.0.32
|
|
457
457
|
*
|
|
458
458
|
*
|
|
459
459
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -476,7 +476,7 @@ interface HealthResponse {
|
|
|
476
476
|
* Workflow Approval System API
|
|
477
477
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
478
478
|
*
|
|
479
|
-
* The version of the OpenAPI document: 0.0.
|
|
479
|
+
* The version of the OpenAPI document: 0.0.32
|
|
480
480
|
*
|
|
481
481
|
*
|
|
482
482
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -492,7 +492,7 @@ interface InitiateCliLogin200Response {
|
|
|
492
492
|
* Workflow Approval System API
|
|
493
493
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
494
494
|
*
|
|
495
|
-
* The version of the OpenAPI document: 0.0.
|
|
495
|
+
* The version of the OpenAPI document: 0.0.32
|
|
496
496
|
*
|
|
497
497
|
*
|
|
498
498
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -517,7 +517,7 @@ interface ListAgents200Response {
|
|
|
517
517
|
* Workflow Approval System API
|
|
518
518
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
519
519
|
*
|
|
520
|
-
* The version of the OpenAPI document: 0.0.
|
|
520
|
+
* The version of the OpenAPI document: 0.0.32
|
|
521
521
|
*
|
|
522
522
|
*
|
|
523
523
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -546,7 +546,7 @@ interface ListGroupEntities200Response {
|
|
|
546
546
|
* Workflow Approval System API
|
|
547
547
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
548
548
|
*
|
|
549
|
-
* The version of the OpenAPI document: 0.0.
|
|
549
|
+
* The version of the OpenAPI document: 0.0.32
|
|
550
550
|
*
|
|
551
551
|
*
|
|
552
552
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -573,7 +573,7 @@ interface ListGroupsParams {
|
|
|
573
573
|
* Workflow Approval System API
|
|
574
574
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
575
575
|
*
|
|
576
|
-
* The version of the OpenAPI document: 0.0.
|
|
576
|
+
* The version of the OpenAPI document: 0.0.32
|
|
577
577
|
*
|
|
578
578
|
*
|
|
579
579
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -606,7 +606,7 @@ interface ListOrganizationAdminsForOrg200Response {
|
|
|
606
606
|
* Workflow Approval System API
|
|
607
607
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
608
608
|
*
|
|
609
|
-
* The version of the OpenAPI document: 0.0.
|
|
609
|
+
* The version of the OpenAPI document: 0.0.32
|
|
610
610
|
*
|
|
611
611
|
*
|
|
612
612
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -638,7 +638,7 @@ interface ListRoleTemplates200Response {
|
|
|
638
638
|
* Workflow Approval System API
|
|
639
639
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
640
640
|
*
|
|
641
|
-
* The version of the OpenAPI document: 0.0.
|
|
641
|
+
* The version of the OpenAPI document: 0.0.32
|
|
642
642
|
*
|
|
643
643
|
*
|
|
644
644
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -679,7 +679,7 @@ interface ListSpaces200Response {
|
|
|
679
679
|
* Workflow Approval System API
|
|
680
680
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
681
681
|
*
|
|
682
|
-
* The version of the OpenAPI document: 0.0.
|
|
682
|
+
* The version of the OpenAPI document: 0.0.32
|
|
683
683
|
*
|
|
684
684
|
*
|
|
685
685
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -712,7 +712,7 @@ interface ListUsers200Response {
|
|
|
712
712
|
* Workflow Approval System API
|
|
713
713
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
714
714
|
*
|
|
715
|
-
* The version of the OpenAPI document: 0.0.
|
|
715
|
+
* The version of the OpenAPI document: 0.0.32
|
|
716
716
|
*
|
|
717
717
|
*
|
|
718
718
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -739,7 +739,7 @@ interface ListUsersParams {
|
|
|
739
739
|
* Workflow Approval System API
|
|
740
740
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
741
741
|
*
|
|
742
|
-
* The version of the OpenAPI document: 0.0.
|
|
742
|
+
* The version of the OpenAPI document: 0.0.32
|
|
743
743
|
*
|
|
744
744
|
*
|
|
745
745
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -784,7 +784,7 @@ interface ListWorkflowTemplates200Response {
|
|
|
784
784
|
* Workflow Approval System API
|
|
785
785
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
786
786
|
*
|
|
787
|
-
* The version of the OpenAPI document: 0.0.
|
|
787
|
+
* The version of the OpenAPI document: 0.0.32
|
|
788
788
|
*
|
|
789
789
|
*
|
|
790
790
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -808,6 +808,10 @@ interface ListWorkflowTemplatesParams {
|
|
|
808
808
|
* Optional space identifier (UUID or name) to filter workflow templates.
|
|
809
809
|
*/
|
|
810
810
|
spaceIdentifier?: string;
|
|
811
|
+
/**
|
|
812
|
+
* Filter by workflow template status. Can provide multiple values. Defaults to returning only ACTIVE templates.
|
|
813
|
+
*/
|
|
814
|
+
status?: Array<string>;
|
|
811
815
|
}
|
|
812
816
|
//#endregion
|
|
813
817
|
//#region generated/openapi/model/list-workflows-params.d.ts
|
|
@@ -815,7 +819,7 @@ interface ListWorkflowTemplatesParams {
|
|
|
815
819
|
* Workflow Approval System API
|
|
816
820
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
817
821
|
*
|
|
818
|
-
* The version of the OpenAPI document: 0.0.
|
|
822
|
+
* The version of the OpenAPI document: 0.0.32
|
|
819
823
|
*
|
|
820
824
|
*
|
|
821
825
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -850,7 +854,7 @@ interface ListWorkflowsParams {
|
|
|
850
854
|
* Workflow Approval System API
|
|
851
855
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
852
856
|
*
|
|
853
|
-
* The version of the OpenAPI document: 0.0.
|
|
857
|
+
* The version of the OpenAPI document: 0.0.32
|
|
854
858
|
*
|
|
855
859
|
*
|
|
856
860
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -873,7 +877,7 @@ interface OidcCallbackRequest {
|
|
|
873
877
|
* Workflow Approval System API
|
|
874
878
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
875
879
|
*
|
|
876
|
-
* The version of the OpenAPI document: 0.0.
|
|
880
|
+
* The version of the OpenAPI document: 0.0.32
|
|
877
881
|
*
|
|
878
882
|
*
|
|
879
883
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -901,7 +905,7 @@ declare namespace OrgScope {
|
|
|
901
905
|
* Workflow Approval System API
|
|
902
906
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
903
907
|
*
|
|
904
|
-
* The version of the OpenAPI document: 0.0.
|
|
908
|
+
* The version of the OpenAPI document: 0.0.32
|
|
905
909
|
*
|
|
906
910
|
*
|
|
907
911
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -920,7 +924,7 @@ interface OrganizationAdminCreate {
|
|
|
920
924
|
* Workflow Approval System API
|
|
921
925
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
922
926
|
*
|
|
923
|
-
* The version of the OpenAPI document: 0.0.
|
|
927
|
+
* The version of the OpenAPI document: 0.0.32
|
|
924
928
|
*
|
|
925
929
|
*
|
|
926
930
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -939,7 +943,7 @@ interface OrganizationAdminRemove {
|
|
|
939
943
|
* Workflow Approval System API
|
|
940
944
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
941
945
|
*
|
|
942
|
-
* The version of the OpenAPI document: 0.0.
|
|
946
|
+
* The version of the OpenAPI document: 0.0.32
|
|
943
947
|
*
|
|
944
948
|
*
|
|
945
949
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -970,7 +974,7 @@ interface PrivilegedTokenExchangeRequest {
|
|
|
970
974
|
* Workflow Approval System API
|
|
971
975
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
972
976
|
*
|
|
973
|
-
* The version of the OpenAPI document: 0.0.
|
|
977
|
+
* The version of the OpenAPI document: 0.0.32
|
|
974
978
|
*
|
|
975
979
|
*
|
|
976
980
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -989,7 +993,7 @@ interface PrivilegedTokenResponse {
|
|
|
989
993
|
* Workflow Approval System API
|
|
990
994
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
991
995
|
*
|
|
992
|
-
* The version of the OpenAPI document: 0.0.
|
|
996
|
+
* The version of the OpenAPI document: 0.0.32
|
|
993
997
|
*
|
|
994
998
|
*
|
|
995
999
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1019,7 +1023,7 @@ interface RemoveGroupEntitiesRequest {
|
|
|
1019
1023
|
* Workflow Approval System API
|
|
1020
1024
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
1021
1025
|
*
|
|
1022
|
-
* The version of the OpenAPI document: 0.0.
|
|
1026
|
+
* The version of the OpenAPI document: 0.0.32
|
|
1023
1027
|
*
|
|
1024
1028
|
*
|
|
1025
1029
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1051,7 +1055,7 @@ declare namespace SpaceScope {
|
|
|
1051
1055
|
* Workflow Approval System API
|
|
1052
1056
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
1053
1057
|
*
|
|
1054
|
-
* The version of the OpenAPI document: 0.0.
|
|
1058
|
+
* The version of the OpenAPI document: 0.0.32
|
|
1055
1059
|
*
|
|
1056
1060
|
*
|
|
1057
1061
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1139,7 +1143,7 @@ interface RoleRemovalRequest {
|
|
|
1139
1143
|
* Workflow Approval System API
|
|
1140
1144
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
1141
1145
|
*
|
|
1142
|
-
* The version of the OpenAPI document: 0.0.
|
|
1146
|
+
* The version of the OpenAPI document: 0.0.32
|
|
1143
1147
|
*
|
|
1144
1148
|
*
|
|
1145
1149
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1162,7 +1166,7 @@ interface SpaceCreate {
|
|
|
1162
1166
|
* Workflow Approval System API
|
|
1163
1167
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
1164
1168
|
*
|
|
1165
|
-
* The version of the OpenAPI document: 0.0.
|
|
1169
|
+
* The version of the OpenAPI document: 0.0.32
|
|
1166
1170
|
*
|
|
1167
1171
|
*
|
|
1168
1172
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1185,7 +1189,7 @@ interface TokenRequest {
|
|
|
1185
1189
|
* Workflow Approval System API
|
|
1186
1190
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
1187
1191
|
*
|
|
1188
|
-
* The version of the OpenAPI document: 0.0.
|
|
1192
|
+
* The version of the OpenAPI document: 0.0.32
|
|
1189
1193
|
*
|
|
1190
1194
|
*
|
|
1191
1195
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1212,7 +1216,7 @@ interface UserCreate {
|
|
|
1212
1216
|
* Workflow Approval System API
|
|
1213
1217
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
1214
1218
|
*
|
|
1215
|
-
* The version of the OpenAPI document: 0.0.
|
|
1219
|
+
* The version of the OpenAPI document: 0.0.32
|
|
1216
1220
|
*
|
|
1217
1221
|
*
|
|
1218
1222
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1241,7 +1245,7 @@ declare namespace VoteApprove {
|
|
|
1241
1245
|
* Workflow Approval System API
|
|
1242
1246
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
1243
1247
|
*
|
|
1244
|
-
* The version of the OpenAPI document: 0.0.
|
|
1248
|
+
* The version of the OpenAPI document: 0.0.32
|
|
1245
1249
|
*
|
|
1246
1250
|
*
|
|
1247
1251
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1266,7 +1270,7 @@ declare namespace VoteVeto {
|
|
|
1266
1270
|
* Workflow Approval System API
|
|
1267
1271
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
1268
1272
|
*
|
|
1269
|
-
* The version of the OpenAPI document: 0.0.
|
|
1273
|
+
* The version of the OpenAPI document: 0.0.32
|
|
1270
1274
|
*
|
|
1271
1275
|
*
|
|
1272
1276
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1320,7 +1324,7 @@ interface WorkflowTemplateCreate {
|
|
|
1320
1324
|
* Workflow Approval System API
|
|
1321
1325
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
1322
1326
|
*
|
|
1323
|
-
* The version of the OpenAPI document: 0.0.
|
|
1327
|
+
* The version of the OpenAPI document: 0.0.32
|
|
1324
1328
|
*
|
|
1325
1329
|
*
|
|
1326
1330
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1434,16 +1438,6 @@ declare function validateRoleRemovalRequest(object: unknown): Either<RoleOperati
|
|
|
1434
1438
|
type ListUsersParamsValidationError = "malformed_object" | "invalid_page" | "invalid_limit" | "invalid_search";
|
|
1435
1439
|
declare function validateListUsersParams(object: unknown): Either<ListUsersParamsValidationError, ListUsersParams>;
|
|
1436
1440
|
//#endregion
|
|
1437
|
-
//#region src/validators/workflow-templates.validators.d.ts
|
|
1438
|
-
type ValidationError = "malformed_object" | "invalid_type" | "invalid_recipients" | "invalid_recipients_element" | "invalid_url" | "invalid_method" | "invalid_headers" | "invalid_headers_element" | "invalid_workflow_action_type" | "invalid_group_id" | "invalid_min_count" | "invalid_require_high_privilege" | "invalid_rules" | "invalid_rules_element" | "invalid_approval_rule_type" | "invalid_id" | "invalid_name" | "invalid_version" | "invalid_status" | "invalid_allow_voting" | "missing_approval_rule" | "invalid_approval_rule" | "invalid_space_id" | "invalid_created_at" | "invalid_updated_at" | "invalid_description" | "invalid_metadata" | "invalid_actions" | "invalid_actions_element" | "invalid_default_expires_in_hours" | "invalid_cancel_workflows" | "invalid_workflow_template_id" | "invalid_data" | "invalid_data_element" | "missing_pagination" | "invalid_pagination" | "invalid_page" | "invalid_limit" | "invalid_space_identifier" | "invalid_search";
|
|
1439
|
-
declare function validateWorkflowTemplate(object: unknown): Either<ValidationError, WorkflowTemplate>;
|
|
1440
|
-
declare function validateWorkflowTemplateCreate(object: unknown): Either<ValidationError, WorkflowTemplateCreate>;
|
|
1441
|
-
declare function validateWorkflowTemplateUpdate(object: unknown): Either<ValidationError, WorkflowTemplateUpdate>;
|
|
1442
|
-
declare function validateWorkflowTemplateDeprecate(object: unknown): Either<ValidationError, WorkflowTemplateDeprecate>;
|
|
1443
|
-
declare function validateWorkflowTemplateScope(object: unknown): Either<ValidationError, WorkflowTemplateScope>;
|
|
1444
|
-
declare function validateListWorkflowTemplates200Response(object: unknown): Either<ValidationError, ListWorkflowTemplates200Response>;
|
|
1445
|
-
declare function validateListWorkflowTemplatesParams(object: unknown): Either<ValidationError, ListWorkflowTemplatesParams>;
|
|
1446
|
-
//#endregion
|
|
1447
1441
|
//#region src/validators/common.validators.d.ts
|
|
1448
1442
|
type PaginationValidationError = "malformed_object" | "missing_total" | "invalid_total" | "missing_page" | "invalid_page" | "missing_limit" | "invalid_limit";
|
|
1449
1443
|
type ListParamsValidationError = "malformed_object" | "invalid_page" | "invalid_limit" | "invalid_search";
|
|
@@ -1460,6 +1454,31 @@ declare function validateHealthResponse(object: unknown): Either<HealthResponseV
|
|
|
1460
1454
|
type GetEntityInfo200ResponseValidationError = "malformed_object" | "missing_entity_type" | "invalid_entity_type" | "missing_groups" | "invalid_groups";
|
|
1461
1455
|
declare function validateGetEntityInfo200Response(object: unknown): Either<GetEntityInfo200ResponseValidationError, GetEntityInfo200Response>;
|
|
1462
1456
|
//#endregion
|
|
1457
|
+
//#region src/utils/types.d.ts
|
|
1458
|
+
/**
|
|
1459
|
+
* Create a union type with a prefix
|
|
1460
|
+
* @example
|
|
1461
|
+
* type MyUnion = PrefixUnion<"workflow", "name_empty" | "name_too_long"> // "workflow_name_empty" | "workflow_name_too_long"
|
|
1462
|
+
*/
|
|
1463
|
+
type PrefixUnion<TPrefix extends string, TUnion extends string> = `${TPrefix}_${TUnion}`;
|
|
1464
|
+
//#endregion
|
|
1465
|
+
//#region src/validators/workflow-templates.validators.d.ts
|
|
1466
|
+
type WorkflowTemplateValidationError = "malformed_object" | "invalid_id" | "invalid_name" | "invalid_version" | "invalid_status" | "invalid_allow_voting" | "missing_approval_rule" | "invalid_approval_rule" | "invalid_space_id" | "invalid_created_at" | "invalid_updated_at" | "invalid_description" | "invalid_metadata" | "invalid_actions" | "invalid_actions_element" | "invalid_default_expires_in_hours";
|
|
1467
|
+
declare function validateWorkflowTemplate(object: unknown): Either<WorkflowTemplateValidationError, WorkflowTemplate>;
|
|
1468
|
+
type WorkflowTemplateCreateValidationError = "malformed_object" | "invalid_name" | "missing_approval_rule" | "invalid_approval_rule" | "invalid_space_id" | "invalid_description" | "invalid_metadata" | "invalid_actions" | "invalid_actions_element" | "invalid_default_expires_in_hours";
|
|
1469
|
+
declare function validateWorkflowTemplateCreate(object: unknown): Either<WorkflowTemplateCreateValidationError, WorkflowTemplateCreate>;
|
|
1470
|
+
type WorkflowTemplateUpdateValidationError = "malformed_object" | "invalid_description" | "invalid_metadata" | "invalid_approval_rule" | "invalid_actions" | "invalid_actions_element" | "invalid_default_expires_in_hours" | "invalid_cancel_workflows";
|
|
1471
|
+
declare function validateWorkflowTemplateUpdate(object: unknown): Either<WorkflowTemplateUpdateValidationError, WorkflowTemplateUpdate>;
|
|
1472
|
+
type WorkflowTemplateDeprecateValidationError = "malformed_object" | "invalid_cancel_workflows";
|
|
1473
|
+
declare function validateWorkflowTemplateDeprecate(object: unknown): Either<WorkflowTemplateDeprecateValidationError, WorkflowTemplateDeprecate>;
|
|
1474
|
+
type WorkflowTemplateScopeValidationError = "malformed_object" | "invalid_type" | "invalid_workflow_template_id";
|
|
1475
|
+
declare function validateWorkflowTemplateScope(object: unknown): Either<WorkflowTemplateScopeValidationError, WorkflowTemplateScope>;
|
|
1476
|
+
type WorkflowTemplateSummaryValidationError = "malformed_object" | "invalid_id" | "invalid_name" | "invalid_version" | "invalid_created_at" | "invalid_updated_at" | "invalid_description";
|
|
1477
|
+
type ListWorkflowTemplates200ResponseValidationError = "malformed_object" | "invalid_data" | "invalid_pagination" | "missing_pagination" | PrefixUnion<"data_item", WorkflowTemplateSummaryValidationError>;
|
|
1478
|
+
declare function validateListWorkflowTemplates200Response(object: unknown): Either<ListWorkflowTemplates200ResponseValidationError, ListWorkflowTemplates200Response>;
|
|
1479
|
+
type ListWorkflowTemplatesParamsValidationError = ListParamsValidationError | "invalid_space_identifier" | "invalid_status";
|
|
1480
|
+
declare function validateListWorkflowTemplatesParams(object: unknown): Either<ListWorkflowTemplatesParamsValidationError, ListWorkflowTemplatesParams>;
|
|
1481
|
+
//#endregion
|
|
1463
1482
|
//#region src/validators/spaces.validators.d.ts
|
|
1464
1483
|
type SpaceValidationError = "malformed_object" | "missing_id" | "invalid_id" | "missing_name" | "invalid_name" | "invalid_description" | "missing_created_at" | "invalid_created_at" | "missing_updated_at" | "invalid_updated_at";
|
|
1465
1484
|
type SpaceCreateValidationError = "malformed_object" | "missing_name" | "invalid_name" | "invalid_description";
|
|
@@ -1532,4 +1551,4 @@ type APIErrorValidationError = "malformed_object" | "missing_code" | "invalid_co
|
|
|
1532
1551
|
declare function validateAPIError(object: unknown): Either<APIErrorValidationError, APIError>;
|
|
1533
1552
|
declare function isAPIError(object: unknown): object is APIError;
|
|
1534
1553
|
//#endregion
|
|
1535
|
-
export { APIError, APIErrorDetailsInner, APIErrorDetailsInnerValidationError, APIErrorValidationError, AddGroupEntitiesRequest, AddGroupEntitiesRequestValidationError, AgentChallengeRequest, AgentChallengeRequestValidationError, AgentChallengeResponse, AgentChallengeResponseValidationError, AgentGet200Response, AgentGet200ResponseValidationError, AgentRegistrationRequest, AgentRegistrationRequestValidationError, AgentRegistrationResponse, AgentRegistrationResponseValidationError, AgentSummary, AgentSummaryValidationError, AgentTokenRequest, AgentTokenRequestValidationError, AgentTokenResponse, AgentTokenResponseValidationError, AndRule, ApprovalRule, CanVoteResponse, CanVoteResponseValidationError, EmailAction, EntityMembershipAdd, EntityMembershipAddValidationError, EntityMembershipRemove, EntityMembershipRemoveValidationError, EntityReference, EntityReferenceValidationError, GetEntityInfo200Response, GetEntityInfo200ResponseValidationError, GetWorkflowParams, GetWorkflowParamsValidationError, GetWorkflowVotes200Response, GetWorkflowVotes200ResponseValidationError, Group, GroupCreate, GroupCreateValidationError, GroupInfo, GroupInfoValidationError, GroupMembership, GroupMembershipValidationError, GroupRequirementRule, GroupScope, GroupScopeValidationError, GroupValidationError, HealthResponse, HealthResponseValidationError, InitiateCliLogin200Response, InitiateCliLogin200ResponseValidationError, InitiateCliLoginRequest, InitiateCliLoginRequestValidationError, ListAgents200Response, ListAgents200ResponseValidationError, ListAgentsParams, ListAgentsParamsValidationError, ListGroupEntities200Response, ListGroupEntities200ResponseValidationError, ListGroups200Response, ListGroups200ResponseValidationError, ListGroupsParams, ListGroupsParamsValidationError, ListOrganizationAdminsForOrg200Response, ListOrganizationAdminsForOrg200ResponseValidationError, ListParamsValidationError, ListRoleTemplates200Response, ListRoleTemplates200ResponseValidationError, ListSpaces200Response, ListSpaces200ResponseValidationError, ListSpacesParams, ListSpacesParamsValidationError, ListUsers200Response, ListUsers200ResponseValidationError, ListUsersParams, ListUsersParamsValidationError, ListWorkflowTemplates200Response, ListWorkflowTemplatesParams, ListWorkflows200Response, ListWorkflows200ResponseValidationError, ListWorkflowsParams, ListWorkflowsParamsValidationError, OidcCallbackRequest, OidcCallbackRequestValidationError, OrRule, OrgScope, OrganizationAdmin, OrganizationAdminCreate, OrganizationAdminCreateValidationError, OrganizationAdminRemove, OrganizationAdminRemoveValidationError, OrganizationAdminValidationError, Pagination, PaginationValidationError, PrivilegedTokenExchangeRequest, PrivilegedTokenExchangeRequestValidationError, PrivilegedTokenResponse, PrivilegedTokenResponseValidationError, RefreshTokenRequest, RefreshTokenRequestValidationError, RemoveGroupEntitiesRequest, RemoveGroupEntitiesRequestValidationError, RoleAssignmentRequest, RoleOperationItem, RoleOperationItemValidationError, RoleOperationRequest, RoleOperationRequestValidationError, RoleRemovalRequest, RoleScope, RoleScopeValidationError, RoleTemplate, RoleTemplateValidationError, Space, SpaceCreate, SpaceCreateValidationError, SpaceScope, SpaceScopeValidationError, SpaceValidationError, TokenRequest, TokenRequestValidationError, TokenResponse, TokenResponseValidationError, User, UserCreate, UserCreateValidationError, UserSummary, UserSummaryValidationError, UserValidationError, ValidatedListParams,
|
|
1554
|
+
export { APIError, APIErrorDetailsInner, APIErrorDetailsInnerValidationError, APIErrorValidationError, AddGroupEntitiesRequest, AddGroupEntitiesRequestValidationError, AgentChallengeRequest, AgentChallengeRequestValidationError, AgentChallengeResponse, AgentChallengeResponseValidationError, AgentGet200Response, AgentGet200ResponseValidationError, AgentRegistrationRequest, AgentRegistrationRequestValidationError, AgentRegistrationResponse, AgentRegistrationResponseValidationError, AgentSummary, AgentSummaryValidationError, AgentTokenRequest, AgentTokenRequestValidationError, AgentTokenResponse, AgentTokenResponseValidationError, AndRule, ApprovalRule, CanVoteResponse, CanVoteResponseValidationError, EmailAction, EntityMembershipAdd, EntityMembershipAddValidationError, EntityMembershipRemove, EntityMembershipRemoveValidationError, EntityReference, EntityReferenceValidationError, GetEntityInfo200Response, GetEntityInfo200ResponseValidationError, GetWorkflowParams, GetWorkflowParamsValidationError, GetWorkflowVotes200Response, GetWorkflowVotes200ResponseValidationError, Group, GroupCreate, GroupCreateValidationError, GroupInfo, GroupInfoValidationError, GroupMembership, GroupMembershipValidationError, GroupRequirementRule, GroupScope, GroupScopeValidationError, GroupValidationError, HealthResponse, HealthResponseValidationError, InitiateCliLogin200Response, InitiateCliLogin200ResponseValidationError, InitiateCliLoginRequest, InitiateCliLoginRequestValidationError, ListAgents200Response, ListAgents200ResponseValidationError, ListAgentsParams, ListAgentsParamsValidationError, ListGroupEntities200Response, ListGroupEntities200ResponseValidationError, ListGroups200Response, ListGroups200ResponseValidationError, ListGroupsParams, ListGroupsParamsValidationError, ListOrganizationAdminsForOrg200Response, ListOrganizationAdminsForOrg200ResponseValidationError, ListParamsValidationError, ListRoleTemplates200Response, ListRoleTemplates200ResponseValidationError, ListSpaces200Response, ListSpaces200ResponseValidationError, ListSpacesParams, ListSpacesParamsValidationError, ListUsers200Response, ListUsers200ResponseValidationError, ListUsersParams, ListUsersParamsValidationError, ListWorkflowTemplates200Response, ListWorkflowTemplates200ResponseValidationError, ListWorkflowTemplatesParams, ListWorkflowTemplatesParamsValidationError, ListWorkflows200Response, ListWorkflows200ResponseValidationError, ListWorkflowsParams, ListWorkflowsParamsValidationError, OidcCallbackRequest, OidcCallbackRequestValidationError, OrRule, OrgScope, OrganizationAdmin, OrganizationAdminCreate, OrganizationAdminCreateValidationError, OrganizationAdminRemove, OrganizationAdminRemoveValidationError, OrganizationAdminValidationError, Pagination, PaginationValidationError, PrivilegedTokenExchangeRequest, PrivilegedTokenExchangeRequestValidationError, PrivilegedTokenResponse, PrivilegedTokenResponseValidationError, RefreshTokenRequest, RefreshTokenRequestValidationError, RemoveGroupEntitiesRequest, RemoveGroupEntitiesRequestValidationError, RoleAssignmentRequest, RoleOperationItem, RoleOperationItemValidationError, RoleOperationRequest, RoleOperationRequestValidationError, RoleRemovalRequest, RoleScope, RoleScopeValidationError, RoleTemplate, RoleTemplateValidationError, Space, SpaceCreate, SpaceCreateValidationError, SpaceScope, SpaceScopeValidationError, SpaceValidationError, TokenRequest, TokenRequestValidationError, TokenResponse, TokenResponseValidationError, User, UserCreate, UserCreateValidationError, UserSummary, UserSummaryValidationError, UserValidationError, ValidatedListParams, VoteApprove, VoteApproveValidationError, VoteVeto, VoteVetoValidationError, VoteWithdraw, VoteWithdrawValidationError, WebhookAction, Workflow, WorkflowAction, WorkflowCreate, WorkflowCreateValidationError, WorkflowRef, WorkflowRefValidationError, WorkflowTemplate, WorkflowTemplateCreate, WorkflowTemplateCreateValidationError, WorkflowTemplateDeprecate, WorkflowTemplateDeprecateValidationError, WorkflowTemplateScope, WorkflowTemplateScopeValidationError, WorkflowTemplateSummary, WorkflowTemplateUpdate, WorkflowTemplateUpdateValidationError, WorkflowTemplateValidationError, WorkflowValidationError, WorkflowVote, WorkflowVoteRequest, WorkflowVoteRequestValidationError, WorkflowVoteRequestVoteType, WorkflowVoteRequestVoteTypeValidationError, WorkflowVoteValidationError, isAPIError, validateAPIError, validateAddGroupEntitiesRequest, validateAgentChallengeRequest, validateAgentChallengeResponse, validateAgentGet200Response, validateAgentRegistrationRequest, validateAgentRegistrationResponse, validateAgentTokenRequest, validateAgentTokenResponse, validateCanVoteResponse, validateGetEntityInfo200Response, validateGetWorkflowParams, validateGetWorkflowVotes200Response, validateGroupCreate, validateGroupInfo, validateGroupScope, validateHealthResponse, validateInitiateCliLogin200Response, validateInitiateCliLoginRequest, validateListAgents200Response, validateListAgentsParams, validateListGroupEntities200Response, validateListGroups200Response, validateListGroupsParams, validateListOrganizationAdminsForOrg200Response, validateListRoleTemplates200Response, validateListSpaces200Response, validateListSpacesParams, validateListUsers200Response, validateListUsersParams, validateListWorkflowTemplates200Response, validateListWorkflowTemplatesParams, validateListWorkflows200Response, validateListWorkflowsParams, validateOidcCallbackRequest, validateOrganizationAdminCreate, validateOrganizationAdminRemove, validatePagination, validatePrivilegedTokenExchangeRequest, validatePrivilegedTokenResponse, validateRefreshTokenRequest, validateRemoveGroupEntitiesRequest, validateRoleAssignmentRequest, validateRoleRemovalRequest, validateSharedListParams, validateSpaceCreate, validateSpaceScope, validateTokenRequest, validateTokenResponse, validateUser, validateUserCreate, validateWorkflowCreate, validateWorkflowTemplate, validateWorkflowTemplateCreate, validateWorkflowTemplateDeprecate, validateWorkflowTemplateScope, validateWorkflowTemplateUpdate, validateWorkflowVoteRequest };
|
package/dist/src/index.mjs
CHANGED
|
@@ -414,6 +414,11 @@ function getStringAsEnum(str, enumType) {
|
|
|
414
414
|
if (Object.values(enumType).includes(str)) return str;
|
|
415
415
|
}
|
|
416
416
|
//#endregion
|
|
417
|
+
//#region src/utils/types.ts
|
|
418
|
+
function prefixLeft(prefix, value) {
|
|
419
|
+
return `${prefix}_${value}`;
|
|
420
|
+
}
|
|
421
|
+
//#endregion
|
|
417
422
|
//#region src/validators/workflow-templates.validators.ts
|
|
418
423
|
function validateEmailAction(object) {
|
|
419
424
|
if (typeof object !== "object" || object === null) return left("malformed_object");
|
|
@@ -661,11 +666,8 @@ function validateWorkflowTemplateScope(object) {
|
|
|
661
666
|
if (typeof object !== "object" || object === null) return left("malformed_object");
|
|
662
667
|
if (!hasOwnProperty(object, "type") || object.type !== "workflow_template") return left("invalid_type");
|
|
663
668
|
if (!hasOwnProperty(object, "workflowTemplateId") || !isNonEmptyString(object.workflowTemplateId)) return left("invalid_workflow_template_id");
|
|
664
|
-
if (!hasOwnProperty(object, "type") || typeof object.type !== "string") return left("invalid_type");
|
|
665
|
-
const type = getStringAsEnum(object.type, WorkflowTemplateScope.TypeEnum);
|
|
666
|
-
if (!type) return left("invalid_type");
|
|
667
669
|
return right({
|
|
668
|
-
type,
|
|
670
|
+
type: object.type,
|
|
669
671
|
workflowTemplateId: object.workflowTemplateId
|
|
670
672
|
});
|
|
671
673
|
}
|
|
@@ -695,7 +697,7 @@ function validateListWorkflowTemplates200Response(object) {
|
|
|
695
697
|
const data = [];
|
|
696
698
|
for (const item of object.data) {
|
|
697
699
|
const validatedItem = validateWorkflowTemplateSummary(item);
|
|
698
|
-
if (isLeft(validatedItem)) return left("
|
|
700
|
+
if (isLeft(validatedItem)) return left(prefixLeft("data_item", validatedItem.left));
|
|
699
701
|
data.push(validatedItem.right);
|
|
700
702
|
}
|
|
701
703
|
if (!hasOwnProperty(object, "pagination")) return left("missing_pagination");
|
|
@@ -710,10 +712,21 @@ function validateListWorkflowTemplatesParams(object) {
|
|
|
710
712
|
const sharedValidation = validateSharedListParams(object);
|
|
711
713
|
if (isLeft(sharedValidation)) return left(sharedValidation.left);
|
|
712
714
|
const result = sharedValidation.right;
|
|
713
|
-
if (typeof object
|
|
715
|
+
if (typeof object !== "object" || object === null) return left("malformed_object");
|
|
716
|
+
if (hasOwnProperty(object, "spaceIdentifier") && object.spaceIdentifier !== void 0) {
|
|
714
717
|
if (!isNonEmptyString(object.spaceIdentifier)) return left("invalid_space_identifier");
|
|
715
718
|
result.spaceIdentifier = object.spaceIdentifier;
|
|
716
719
|
}
|
|
720
|
+
let status = ["ACTIVE"];
|
|
721
|
+
if (hasOwnProperty(object, "status") && object.status !== void 0) {
|
|
722
|
+
const statusVal = object.status;
|
|
723
|
+
if (Array.isArray(statusVal)) {
|
|
724
|
+
for (const item of statusVal) if (typeof item !== "string") return left("invalid_status");
|
|
725
|
+
status = statusVal;
|
|
726
|
+
} else if (typeof statusVal === "string") status = [statusVal];
|
|
727
|
+
else return left("invalid_status");
|
|
728
|
+
}
|
|
729
|
+
result.status = status;
|
|
717
730
|
return right(result);
|
|
718
731
|
}
|
|
719
732
|
//#endregion
|
|
@@ -821,8 +834,10 @@ function validateListWorkflowsParams(object) {
|
|
|
821
834
|
let includeOnlyNonTerminalState = void 0;
|
|
822
835
|
if (hasOwnProperty(object, "includeOnlyNonTerminalState")) {
|
|
823
836
|
const val = object["includeOnlyNonTerminalState"];
|
|
824
|
-
if (typeof val
|
|
825
|
-
includeOnlyNonTerminalState =
|
|
837
|
+
if (typeof val === "boolean") includeOnlyNonTerminalState = val;
|
|
838
|
+
else if (val === "true") includeOnlyNonTerminalState = true;
|
|
839
|
+
else if (val === "false") includeOnlyNonTerminalState = false;
|
|
840
|
+
else return left("invalid_include_only_non_terminal_state");
|
|
826
841
|
}
|
|
827
842
|
let workflowTemplateIdentifier = void 0;
|
|
828
843
|
if (hasOwnProperty(object, "workflowTemplateIdentifier")) {
|
|
@@ -24,7 +24,7 @@ declare namespace OrRule {
|
|
|
24
24
|
* Workflow Approval System API
|
|
25
25
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
26
26
|
*
|
|
27
|
-
* The version of the OpenAPI document: 0.0.
|
|
27
|
+
* The version of the OpenAPI document: 0.0.32
|
|
28
28
|
*
|
|
29
29
|
*
|
|
30
30
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -96,7 +96,7 @@ declare namespace AndRule {
|
|
|
96
96
|
* Workflow Approval System API
|
|
97
97
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
98
98
|
*
|
|
99
|
-
* The version of the OpenAPI document: 0.0.
|
|
99
|
+
* The version of the OpenAPI document: 0.0.32
|
|
100
100
|
*
|
|
101
101
|
*
|
|
102
102
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -128,7 +128,7 @@ declare namespace EmailAction {
|
|
|
128
128
|
* Workflow Approval System API
|
|
129
129
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
130
130
|
*
|
|
131
|
-
* The version of the OpenAPI document: 0.0.
|
|
131
|
+
* The version of the OpenAPI document: 0.0.32
|
|
132
132
|
*
|
|
133
133
|
*
|
|
134
134
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -145,7 +145,7 @@ interface GroupInfo {
|
|
|
145
145
|
* Workflow Approval System API
|
|
146
146
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
147
147
|
*
|
|
148
|
-
* The version of the OpenAPI document: 0.0.
|
|
148
|
+
* The version of the OpenAPI document: 0.0.32
|
|
149
149
|
*
|
|
150
150
|
*
|
|
151
151
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -184,7 +184,7 @@ interface Group {
|
|
|
184
184
|
* Workflow Approval System API
|
|
185
185
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
186
186
|
*
|
|
187
|
-
* The version of the OpenAPI document: 0.0.
|
|
187
|
+
* The version of the OpenAPI document: 0.0.32
|
|
188
188
|
*
|
|
189
189
|
*
|
|
190
190
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -217,7 +217,7 @@ interface ListGroups200Response {
|
|
|
217
217
|
* Workflow Approval System API
|
|
218
218
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
219
219
|
*
|
|
220
|
-
* The version of the OpenAPI document: 0.0.
|
|
220
|
+
* The version of the OpenAPI document: 0.0.32
|
|
221
221
|
*
|
|
222
222
|
*
|
|
223
223
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -244,7 +244,7 @@ interface UserSummary {
|
|
|
244
244
|
* Workflow Approval System API
|
|
245
245
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
246
246
|
*
|
|
247
|
-
* The version of the OpenAPI document: 0.0.
|
|
247
|
+
* The version of the OpenAPI document: 0.0.32
|
|
248
248
|
*
|
|
249
249
|
*
|
|
250
250
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -419,7 +419,7 @@ interface ListWorkflows200Response {
|
|
|
419
419
|
* Workflow Approval System API
|
|
420
420
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
421
421
|
*
|
|
422
|
-
* The version of the OpenAPI document: 0.0.
|
|
422
|
+
* The version of the OpenAPI document: 0.0.32
|
|
423
423
|
*
|
|
424
424
|
*
|
|
425
425
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -442,7 +442,7 @@ interface TokenResponse {
|
|
|
442
442
|
* Workflow Approval System API
|
|
443
443
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
444
444
|
*
|
|
445
|
-
* The version of the OpenAPI document: 0.0.
|
|
445
|
+
* The version of the OpenAPI document: 0.0.32
|
|
446
446
|
*
|
|
447
447
|
*
|
|
448
448
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -477,7 +477,7 @@ interface User {
|
|
|
477
477
|
* Workflow Approval System API
|
|
478
478
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
479
479
|
*
|
|
480
|
-
* The version of the OpenAPI document: 0.0.
|
|
480
|
+
* The version of the OpenAPI document: 0.0.32
|
|
481
481
|
*
|
|
482
482
|
*
|
|
483
483
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -24,7 +24,7 @@ declare namespace OrRule {
|
|
|
24
24
|
* Workflow Approval System API
|
|
25
25
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
26
26
|
*
|
|
27
|
-
* The version of the OpenAPI document: 0.0.
|
|
27
|
+
* The version of the OpenAPI document: 0.0.32
|
|
28
28
|
*
|
|
29
29
|
*
|
|
30
30
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -96,7 +96,7 @@ declare namespace AndRule {
|
|
|
96
96
|
* Workflow Approval System API
|
|
97
97
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
98
98
|
*
|
|
99
|
-
* The version of the OpenAPI document: 0.0.
|
|
99
|
+
* The version of the OpenAPI document: 0.0.32
|
|
100
100
|
*
|
|
101
101
|
*
|
|
102
102
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -128,7 +128,7 @@ declare namespace EmailAction {
|
|
|
128
128
|
* Workflow Approval System API
|
|
129
129
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
130
130
|
*
|
|
131
|
-
* The version of the OpenAPI document: 0.0.
|
|
131
|
+
* The version of the OpenAPI document: 0.0.32
|
|
132
132
|
*
|
|
133
133
|
*
|
|
134
134
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -145,7 +145,7 @@ interface GroupInfo {
|
|
|
145
145
|
* Workflow Approval System API
|
|
146
146
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
147
147
|
*
|
|
148
|
-
* The version of the OpenAPI document: 0.0.
|
|
148
|
+
* The version of the OpenAPI document: 0.0.32
|
|
149
149
|
*
|
|
150
150
|
*
|
|
151
151
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -184,7 +184,7 @@ interface Group {
|
|
|
184
184
|
* Workflow Approval System API
|
|
185
185
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
186
186
|
*
|
|
187
|
-
* The version of the OpenAPI document: 0.0.
|
|
187
|
+
* The version of the OpenAPI document: 0.0.32
|
|
188
188
|
*
|
|
189
189
|
*
|
|
190
190
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -217,7 +217,7 @@ interface ListGroups200Response {
|
|
|
217
217
|
* Workflow Approval System API
|
|
218
218
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
219
219
|
*
|
|
220
|
-
* The version of the OpenAPI document: 0.0.
|
|
220
|
+
* The version of the OpenAPI document: 0.0.32
|
|
221
221
|
*
|
|
222
222
|
*
|
|
223
223
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -244,7 +244,7 @@ interface UserSummary {
|
|
|
244
244
|
* Workflow Approval System API
|
|
245
245
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
246
246
|
*
|
|
247
|
-
* The version of the OpenAPI document: 0.0.
|
|
247
|
+
* The version of the OpenAPI document: 0.0.32
|
|
248
248
|
*
|
|
249
249
|
*
|
|
250
250
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -419,7 +419,7 @@ interface ListWorkflows200Response {
|
|
|
419
419
|
* Workflow Approval System API
|
|
420
420
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
421
421
|
*
|
|
422
|
-
* The version of the OpenAPI document: 0.0.
|
|
422
|
+
* The version of the OpenAPI document: 0.0.32
|
|
423
423
|
*
|
|
424
424
|
*
|
|
425
425
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -442,7 +442,7 @@ interface TokenResponse {
|
|
|
442
442
|
* Workflow Approval System API
|
|
443
443
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
444
444
|
*
|
|
445
|
-
* The version of the OpenAPI document: 0.0.
|
|
445
|
+
* The version of the OpenAPI document: 0.0.32
|
|
446
446
|
*
|
|
447
447
|
*
|
|
448
448
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -477,7 +477,7 @@ interface User {
|
|
|
477
477
|
* Workflow Approval System API
|
|
478
478
|
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
479
479
|
*
|
|
480
|
-
* The version of the OpenAPI document: 0.0.
|
|
480
|
+
* The version of the OpenAPI document: 0.0.32
|
|
481
481
|
*
|
|
482
482
|
*
|
|
483
483
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|