@approvio/api 0.0.30 → 0.0.31
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/README.md +12 -1
- package/dist/mocks/index.cjs +137 -0
- package/dist/mocks/index.d.cts +44 -0
- package/dist/mocks/index.d.mts +44 -0
- package/dist/mocks/index.mjs +118 -0
- package/dist/src/index.cjs +1494 -0
- package/dist/src/index.d.cts +1434 -0
- package/dist/src/index.d.mts +1434 -0
- package/dist/src/index.mjs +1356 -0
- package/dist/workflow-create-DVgNnx0X.d.mts +506 -0
- package/dist/workflow-create-Dgj7wWZs.d.cts +506 -0
- package/package.json +53 -13
- package/dist/add-group-entities-request.d.ts +0 -21
- package/dist/add-group-entities-request.js +0 -3
- package/dist/add-group-entities-request.js.map +0 -1
- package/dist/agent-challenge-request.d.ts +0 -17
- package/dist/agent-challenge-request.js +0 -14
- package/dist/agent-challenge-request.js.map +0 -1
- package/dist/agent-challenge-response.d.ts +0 -17
- package/dist/agent-challenge-response.js +0 -14
- package/dist/agent-challenge-response.js.map +0 -1
- package/dist/agent-get200-response.d.ts +0 -29
- package/dist/agent-get200-response.js +0 -14
- package/dist/agent-get200-response.js.map +0 -1
- package/dist/agent-registration-request.d.ts +0 -17
- package/dist/agent-registration-request.js +0 -14
- package/dist/agent-registration-request.js.map +0 -1
- package/dist/agent-registration-response.d.ts +0 -33
- package/dist/agent-registration-response.js +0 -14
- package/dist/agent-registration-response.js.map +0 -1
- package/dist/agent-summary.d.ts +0 -21
- package/dist/agent-summary.js +0 -14
- package/dist/agent-summary.js.map +0 -1
- package/dist/agent-token-request.d.ts +0 -35
- package/dist/agent-token-request.js +0 -24
- package/dist/agent-token-request.js.map +0 -1
- package/dist/agent-token-response.d.ts +0 -21
- package/dist/agent-token-response.js +0 -14
- package/dist/agent-token-response.js.map +0 -1
- package/dist/and-rule.d.ts +0 -31
- package/dist/and-rule.js +0 -10
- package/dist/and-rule.js.map +0 -1
- package/dist/api-error-details-inner.d.ts +0 -15
- package/dist/api-error-details-inner.js +0 -14
- package/dist/api-error-details-inner.js.map +0 -1
- package/dist/api-error.d.ts +0 -23
- package/dist/api-error.js +0 -3
- package/dist/api-error.js.map +0 -1
- package/dist/approval-rule.d.ts +0 -23
- package/dist/approval-rule.js +0 -3
- package/dist/approval-rule.js.map +0 -1
- package/dist/can-vote-response.d.ts +0 -29
- package/dist/can-vote-response.js +0 -14
- package/dist/can-vote-response.js.map +0 -1
- package/dist/email-action.d.ts +0 -30
- package/dist/email-action.js +0 -21
- package/dist/email-action.js.map +0 -1
- package/dist/entity-membership-add.d.ts +0 -15
- package/dist/entity-membership-add.js +0 -3
- package/dist/entity-membership-add.js.map +0 -1
- package/dist/entity-membership-remove.d.ts +0 -15
- package/dist/entity-membership-remove.js +0 -3
- package/dist/entity-membership-remove.js.map +0 -1
- package/dist/entity-reference.d.ts +0 -21
- package/dist/entity-reference.js +0 -14
- package/dist/entity-reference.js.map +0 -1
- package/dist/failed-auth-response.d.ts +0 -17
- package/dist/failed-auth-response.js +0 -14
- package/dist/failed-auth-response.js.map +0 -1
- package/dist/get-entity-info-200-response.d.ts +0 -19
- package/dist/get-entity-info-200-response.js +0 -3
- package/dist/get-entity-info-200-response.js.map +0 -1
- package/dist/get-workflow-params.d.ts +0 -17
- package/dist/get-workflow-params.js +0 -14
- package/dist/get-workflow-params.js.map +0 -1
- package/dist/get-workflow-votes-200-response.d.ts +0 -15
- package/dist/get-workflow-votes-200-response.js +0 -3
- package/dist/get-workflow-votes-200-response.js.map +0 -1
- package/dist/group-create.d.ts +0 -21
- package/dist/group-create.js +0 -14
- package/dist/group-create.js.map +0 -1
- package/dist/group-info.d.ts +0 -15
- package/dist/group-info.js +0 -14
- package/dist/group-info.js.map +0 -1
- package/dist/group-membership.d.ts +0 -19
- package/dist/group-membership.js +0 -3
- package/dist/group-membership.js.map +0 -1
- package/dist/group-requirement-rule.d.ts +0 -38
- package/dist/group-requirement-rule.js +0 -21
- package/dist/group-requirement-rule.js.map +0 -1
- package/dist/group-scope.d.ts +0 -30
- package/dist/group-scope.js +0 -21
- package/dist/group-scope.js.map +0 -1
- package/dist/group.d.ts +0 -37
- package/dist/group.js +0 -14
- package/dist/group.js.map +0 -1
- package/dist/health-response.d.ts +0 -21
- package/dist/health-response.js +0 -14
- package/dist/health-response.js.map +0 -1
- package/dist/index.d.ts +0 -87
- package/dist/index.js +0 -105
- package/dist/index.js.map +0 -1
- package/dist/initiate-cli-login-200-response.d.ts +0 -14
- package/dist/initiate-cli-login-200-response.js +0 -14
- package/dist/initiate-cli-login-200-response.js.map +0 -1
- package/dist/initiate-cli-login-request.d.ts +0 -17
- package/dist/initiate-cli-login-request.js +0 -14
- package/dist/initiate-cli-login-request.js.map +0 -1
- package/dist/list-agents-200-response.d.ts +0 -17
- package/dist/list-agents-200-response.js +0 -3
- package/dist/list-agents-200-response.js.map +0 -1
- package/dist/list-agents-params.d.ts +0 -21
- package/dist/list-agents-params.js +0 -14
- package/dist/list-agents-params.js.map +0 -1
- package/dist/list-group-entities-200-response.d.ts +0 -17
- package/dist/list-group-entities-200-response.js +0 -3
- package/dist/list-group-entities-200-response.js.map +0 -1
- package/dist/list-groups-200-response.d.ts +0 -17
- package/dist/list-groups-200-response.js +0 -3
- package/dist/list-groups-200-response.js.map +0 -1
- package/dist/list-organization-admins-for-org-200-response.d.ts +0 -17
- package/dist/list-organization-admins-for-org-200-response.js +0 -3
- package/dist/list-organization-admins-for-org-200-response.js.map +0 -1
- package/dist/list-role-templates-200-response.d.ts +0 -15
- package/dist/list-role-templates-200-response.js +0 -3
- package/dist/list-role-templates-200-response.js.map +0 -1
- package/dist/list-spaces-200-response.d.ts +0 -17
- package/dist/list-spaces-200-response.js +0 -3
- package/dist/list-spaces-200-response.js.map +0 -1
- package/dist/list-users-200-response.d.ts +0 -17
- package/dist/list-users-200-response.js +0 -3
- package/dist/list-users-200-response.js.map +0 -1
- package/dist/list-workflow-templates-200-response.d.ts +0 -17
- package/dist/list-workflow-templates-200-response.js +0 -3
- package/dist/list-workflow-templates-200-response.js.map +0 -1
- package/dist/list-workflow-templates-params.d.ts +0 -25
- package/dist/list-workflow-templates-params.js +0 -14
- package/dist/list-workflow-templates-params.js.map +0 -1
- package/dist/list-workflows-200-response.d.ts +0 -17
- package/dist/list-workflows-200-response.js +0 -3
- package/dist/list-workflows-200-response.js.map +0 -1
- package/dist/list-workflows-params.d.ts +0 -33
- package/dist/list-workflows-params.js +0 -14
- package/dist/list-workflows-params.js.map +0 -1
- package/dist/models.d.ts +0 -86
- package/dist/models.js +0 -103
- package/dist/models.js.map +0 -1
- package/dist/oidc-callback-request.d.ts +0 -21
- package/dist/oidc-callback-request.js +0 -14
- package/dist/oidc-callback-request.js.map +0 -1
- package/dist/or-rule.d.ts +0 -31
- package/dist/or-rule.js +0 -10
- package/dist/or-rule.js.map +0 -1
- package/dist/org-scope.d.ts +0 -26
- package/dist/org-scope.js +0 -21
- package/dist/org-scope.js.map +0 -1
- package/dist/organization-admin-create.d.ts +0 -17
- package/dist/organization-admin-create.js +0 -14
- package/dist/organization-admin-create.js.map +0 -1
- package/dist/organization-admin-remove.d.ts +0 -17
- package/dist/organization-admin-remove.js +0 -14
- package/dist/organization-admin-remove.js.map +0 -1
- package/dist/organization-admin.d.ts +0 -25
- package/dist/organization-admin.js +0 -14
- package/dist/organization-admin.js.map +0 -1
- package/dist/pagination.d.ts +0 -25
- package/dist/pagination.js +0 -14
- package/dist/pagination.js.map +0 -1
- package/dist/privileged-token-exchange-request.d.ts +0 -29
- package/dist/privileged-token-exchange-request.js +0 -14
- package/dist/privileged-token-exchange-request.js.map +0 -1
- package/dist/privileged-token-response.d.ts +0 -17
- package/dist/privileged-token-response.js +0 -14
- package/dist/privileged-token-response.js.map +0 -1
- package/dist/refresh-token-request.d.ts +0 -17
- package/dist/refresh-token-request.js +0 -14
- package/dist/refresh-token-request.js.map +0 -1
- package/dist/remove-group-entities-request.d.ts +0 -21
- package/dist/remove-group-entities-request.js +0 -3
- package/dist/remove-group-entities-request.js.map +0 -1
- package/dist/role-assignment-request.d.ts +0 -21
- package/dist/role-assignment-request.js +0 -3
- package/dist/role-assignment-request.js.map +0 -1
- package/dist/role-operation-item.d.ts +0 -22
- package/dist/role-operation-item.js +0 -3
- package/dist/role-operation-item.js.map +0 -1
- package/dist/role-operation-request.d.ts +0 -21
- package/dist/role-operation-request.js +0 -3
- package/dist/role-operation-request.js.map +0 -1
- package/dist/role-removal-request.d.ts +0 -21
- package/dist/role-removal-request.js +0 -3
- package/dist/role-removal-request.js.map +0 -1
- package/dist/role-scope.d.ts +0 -24
- package/dist/role-scope.js +0 -3
- package/dist/role-scope.js.map +0 -1
- package/dist/role-template.d.ts +0 -25
- package/dist/role-template.js +0 -14
- package/dist/role-template.js.map +0 -1
- package/dist/space-create.d.ts +0 -21
- package/dist/space-create.js +0 -14
- package/dist/space-create.js.map +0 -1
- package/dist/space-scope.d.ts +0 -30
- package/dist/space-scope.js +0 -21
- package/dist/space-scope.js.map +0 -1
- package/dist/space.d.ts +0 -33
- package/dist/space.js +0 -14
- package/dist/space.js.map +0 -1
- package/dist/successful-auth-response.d.ts +0 -29
- package/dist/successful-auth-response.js +0 -14
- package/dist/successful-auth-response.js.map +0 -1
- package/dist/token-request.d.ts +0 -21
- package/dist/token-request.js +0 -14
- package/dist/token-request.js.map +0 -1
- package/dist/token-response.d.ts +0 -21
- package/dist/token-response.js +0 -14
- package/dist/token-response.js.map +0 -1
- package/dist/user-create.d.ts +0 -25
- package/dist/user-create.js +0 -14
- package/dist/user-create.js.map +0 -1
- package/dist/user-summary.d.ts +0 -25
- package/dist/user-summary.js +0 -14
- package/dist/user-summary.js.map +0 -1
- package/dist/user.d.ts +0 -33
- package/dist/user.js +0 -14
- package/dist/user.js.map +0 -1
- package/dist/vote-approve.d.ts +0 -27
- package/dist/vote-approve.js +0 -21
- package/dist/vote-approve.js.map +0 -1
- package/dist/vote-veto.d.ts +0 -23
- package/dist/vote-veto.js +0 -21
- package/dist/vote-veto.js.map +0 -1
- package/dist/vote-withdraw.d.ts +0 -23
- package/dist/vote-withdraw.js +0 -21
- package/dist/vote-withdraw.js.map +0 -1
- package/dist/webhook-action.d.ts +0 -46
- package/dist/webhook-action.js +0 -26
- package/dist/webhook-action.js.map +0 -1
- package/dist/workflow-action.d.ts +0 -22
- package/dist/workflow-action.js +0 -3
- package/dist/workflow-action.js.map +0 -1
- package/dist/workflow-create.d.ts +0 -29
- package/dist/workflow-create.js +0 -14
- package/dist/workflow-create.js.map +0 -1
- package/dist/workflow-ref.d.ts +0 -18
- package/dist/workflow-ref.js +0 -3
- package/dist/workflow-ref.js.map +0 -1
- package/dist/workflow-template-create.d.ts +0 -40
- package/dist/workflow-template-create.js +0 -3
- package/dist/workflow-template-create.js.map +0 -1
- package/dist/workflow-template-deprecate.d.ts +0 -17
- package/dist/workflow-template-deprecate.js +0 -14
- package/dist/workflow-template-deprecate.js.map +0 -1
- package/dist/workflow-template-scope.d.ts +0 -30
- package/dist/workflow-template-scope.js +0 -21
- package/dist/workflow-template-scope.js.map +0 -1
- package/dist/workflow-template-summary.d.ts +0 -37
- package/dist/workflow-template-summary.js +0 -14
- package/dist/workflow-template-summary.js.map +0 -1
- package/dist/workflow-template-update.d.ts +0 -36
- package/dist/workflow-template-update.js +0 -3
- package/dist/workflow-template-update.js.map +0 -1
- package/dist/workflow-template.d.ts +0 -72
- package/dist/workflow-template.js +0 -12
- package/dist/workflow-template.js.map +0 -1
- package/dist/workflow-vote-request-vote-type.d.ts +0 -19
- package/dist/workflow-vote-request-vote-type.js +0 -3
- package/dist/workflow-vote-request-vote-type.js.map +0 -1
- package/dist/workflow-vote-request.d.ts +0 -19
- package/dist/workflow-vote-request.js +0 -3
- package/dist/workflow-vote-request.js.map +0 -1
- package/dist/workflow-vote.d.ts +0 -37
- package/dist/workflow-vote.js +0 -14
- package/dist/workflow-vote.js.map +0 -1
- package/dist/workflow.d.ts +0 -51
- package/dist/workflow.js +0 -3
- package/dist/workflow.js.map +0 -1
|
@@ -0,0 +1,1434 @@
|
|
|
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-DVgNnx0X.mjs";
|
|
2
|
+
import { Either } from "fp-ts/Either";
|
|
3
|
+
|
|
4
|
+
//#region generated/openapi/model/api-error-details-inner.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Workflow Approval System API
|
|
7
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
8
|
+
*
|
|
9
|
+
* The version of the OpenAPI document: 0.0.29
|
|
10
|
+
*
|
|
11
|
+
*
|
|
12
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
13
|
+
* https://openapi-generator.tech
|
|
14
|
+
* Do not edit the class manually.
|
|
15
|
+
*/
|
|
16
|
+
interface APIErrorDetailsInner {
|
|
17
|
+
field?: string;
|
|
18
|
+
message?: string;
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region generated/openapi/model/api-error.d.ts
|
|
22
|
+
interface APIError {
|
|
23
|
+
/**
|
|
24
|
+
* Error code
|
|
25
|
+
*/
|
|
26
|
+
code?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Error message
|
|
29
|
+
*/
|
|
30
|
+
message?: string;
|
|
31
|
+
details?: Array<APIErrorDetailsInner>;
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region generated/openapi/model/entity-reference.d.ts
|
|
35
|
+
/**
|
|
36
|
+
* Workflow Approval System API
|
|
37
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
38
|
+
*
|
|
39
|
+
* The version of the OpenAPI document: 0.0.29
|
|
40
|
+
*
|
|
41
|
+
*
|
|
42
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
43
|
+
* https://openapi-generator.tech
|
|
44
|
+
* Do not edit the class manually.
|
|
45
|
+
*/
|
|
46
|
+
interface EntityReference {
|
|
47
|
+
/**
|
|
48
|
+
* The type of the entity being referenced.
|
|
49
|
+
*/
|
|
50
|
+
entityType: string;
|
|
51
|
+
/**
|
|
52
|
+
* The unique identifier (UUID) of the entity.
|
|
53
|
+
*/
|
|
54
|
+
entityId: string;
|
|
55
|
+
}
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region generated/openapi/model/entity-membership-add.d.ts
|
|
58
|
+
interface EntityMembershipAdd {
|
|
59
|
+
entity: EntityReference;
|
|
60
|
+
}
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region generated/openapi/model/add-group-entities-request.d.ts
|
|
63
|
+
/**
|
|
64
|
+
* Defines operations to add entities within a group
|
|
65
|
+
*/
|
|
66
|
+
interface AddGroupEntitiesRequest {
|
|
67
|
+
/**
|
|
68
|
+
* List of entities to add to the group.
|
|
69
|
+
*/
|
|
70
|
+
entities: Array<EntityMembershipAdd>;
|
|
71
|
+
}
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region generated/openapi/model/agent-challenge-request.d.ts
|
|
74
|
+
/**
|
|
75
|
+
* Workflow Approval System API
|
|
76
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
77
|
+
*
|
|
78
|
+
* The version of the OpenAPI document: 0.0.29
|
|
79
|
+
*
|
|
80
|
+
*
|
|
81
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
82
|
+
* https://openapi-generator.tech
|
|
83
|
+
* Do not edit the class manually.
|
|
84
|
+
*/
|
|
85
|
+
interface AgentChallengeRequest {
|
|
86
|
+
/**
|
|
87
|
+
* Name of the agent requesting authentication
|
|
88
|
+
*/
|
|
89
|
+
agentName: string;
|
|
90
|
+
}
|
|
91
|
+
//#endregion
|
|
92
|
+
//#region generated/openapi/model/agent-challenge-response.d.ts
|
|
93
|
+
/**
|
|
94
|
+
* Workflow Approval System API
|
|
95
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
96
|
+
*
|
|
97
|
+
* The version of the OpenAPI document: 0.0.29
|
|
98
|
+
*
|
|
99
|
+
*
|
|
100
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
101
|
+
* https://openapi-generator.tech
|
|
102
|
+
* Do not edit the class manually.
|
|
103
|
+
*/
|
|
104
|
+
interface AgentChallengeResponse {
|
|
105
|
+
/**
|
|
106
|
+
* Base64 encoded encrypted challenge that must be signed by the agent. **Decrypted Format (JSON object):** ```json { \"audience\": \"agent-name\", \"expires_at\": \"2025-04-15T12:15:00Z\", \"issuer\": \"Approvio\", \"nonce\": \"random-string-challenge\" } ```
|
|
107
|
+
*/
|
|
108
|
+
challenge: string;
|
|
109
|
+
}
|
|
110
|
+
//#endregion
|
|
111
|
+
//#region generated/openapi/model/agent-get200-response.d.ts
|
|
112
|
+
/**
|
|
113
|
+
* Workflow Approval System API
|
|
114
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
115
|
+
*
|
|
116
|
+
* The version of the OpenAPI document: 0.0.29
|
|
117
|
+
*
|
|
118
|
+
*
|
|
119
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
120
|
+
* https://openapi-generator.tech
|
|
121
|
+
* Do not edit the class manually.
|
|
122
|
+
*/
|
|
123
|
+
interface AgentGet200Response {
|
|
124
|
+
/**
|
|
125
|
+
* Unique identifier for the agent
|
|
126
|
+
*/
|
|
127
|
+
id: string;
|
|
128
|
+
/**
|
|
129
|
+
* Name of the agent
|
|
130
|
+
*/
|
|
131
|
+
agentName: string;
|
|
132
|
+
/**
|
|
133
|
+
* RSA public key in base64 encoded PEM format for the agent
|
|
134
|
+
*/
|
|
135
|
+
publicKey: string;
|
|
136
|
+
/**
|
|
137
|
+
* Timestamp when the agent was registered
|
|
138
|
+
*/
|
|
139
|
+
createdAt: string;
|
|
140
|
+
}
|
|
141
|
+
//#endregion
|
|
142
|
+
//#region generated/openapi/model/agent-registration-request.d.ts
|
|
143
|
+
/**
|
|
144
|
+
* Workflow Approval System API
|
|
145
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
146
|
+
*
|
|
147
|
+
* The version of the OpenAPI document: 0.0.29
|
|
148
|
+
*
|
|
149
|
+
*
|
|
150
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
151
|
+
* https://openapi-generator.tech
|
|
152
|
+
* Do not edit the class manually.
|
|
153
|
+
*/
|
|
154
|
+
interface AgentRegistrationRequest {
|
|
155
|
+
/**
|
|
156
|
+
* Unique name for the agent (must be unique across the system)
|
|
157
|
+
*/
|
|
158
|
+
agentName: string;
|
|
159
|
+
}
|
|
160
|
+
//#endregion
|
|
161
|
+
//#region generated/openapi/model/agent-registration-response.d.ts
|
|
162
|
+
/**
|
|
163
|
+
* Workflow Approval System API
|
|
164
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
165
|
+
*
|
|
166
|
+
* The version of the OpenAPI document: 0.0.29
|
|
167
|
+
*
|
|
168
|
+
*
|
|
169
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
170
|
+
* https://openapi-generator.tech
|
|
171
|
+
* Do not edit the class manually.
|
|
172
|
+
*/
|
|
173
|
+
interface AgentRegistrationResponse {
|
|
174
|
+
/**
|
|
175
|
+
* Unique identifier for the registered agent
|
|
176
|
+
*/
|
|
177
|
+
agentId: string;
|
|
178
|
+
/**
|
|
179
|
+
* Name of the registered agent
|
|
180
|
+
*/
|
|
181
|
+
agentName: string;
|
|
182
|
+
/**
|
|
183
|
+
* RSA public key in base64 encoded PEM format for the agent
|
|
184
|
+
*/
|
|
185
|
+
publicKey: string;
|
|
186
|
+
/**
|
|
187
|
+
* RSA private key in base64 encoded PEM format for the agent (store securely!)
|
|
188
|
+
*/
|
|
189
|
+
privateKey: string;
|
|
190
|
+
/**
|
|
191
|
+
* Timestamp when the agent was registered
|
|
192
|
+
*/
|
|
193
|
+
readonly createdAt: string;
|
|
194
|
+
}
|
|
195
|
+
//#endregion
|
|
196
|
+
//#region generated/openapi/model/agent-summary.d.ts
|
|
197
|
+
/**
|
|
198
|
+
* Workflow Approval System API
|
|
199
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
200
|
+
*
|
|
201
|
+
* The version of the OpenAPI document: 0.0.29
|
|
202
|
+
*
|
|
203
|
+
*
|
|
204
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
205
|
+
* https://openapi-generator.tech
|
|
206
|
+
* Do not edit the class manually.
|
|
207
|
+
*/
|
|
208
|
+
interface AgentSummary {
|
|
209
|
+
/**
|
|
210
|
+
* Unique identifier for the agent
|
|
211
|
+
*/
|
|
212
|
+
id: string;
|
|
213
|
+
/**
|
|
214
|
+
* Name of the agent
|
|
215
|
+
*/
|
|
216
|
+
name: string;
|
|
217
|
+
}
|
|
218
|
+
//#endregion
|
|
219
|
+
//#region generated/openapi/model/agent-token-request.d.ts
|
|
220
|
+
/**
|
|
221
|
+
* Workflow Approval System API
|
|
222
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
223
|
+
*
|
|
224
|
+
* The version of the OpenAPI document: 0.0.29
|
|
225
|
+
*
|
|
226
|
+
*
|
|
227
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
228
|
+
* https://openapi-generator.tech
|
|
229
|
+
* Do not edit the class manually.
|
|
230
|
+
*/
|
|
231
|
+
interface AgentTokenRequest {
|
|
232
|
+
/**
|
|
233
|
+
* OAuth 2.0 grant type for JWT Bearer profile
|
|
234
|
+
*/
|
|
235
|
+
grantType: AgentTokenRequest.GrantTypeEnum;
|
|
236
|
+
/**
|
|
237
|
+
* OAuth 2.0 client assertion type for JWT Bearer profile
|
|
238
|
+
*/
|
|
239
|
+
clientAssertionType: AgentTokenRequest.ClientAssertionTypeEnum;
|
|
240
|
+
/**
|
|
241
|
+
* JWT assertion signed with the agent\'s private key using RS256 algorithm. **JWT Header:** ```json { \"alg\": \"RS256\", \"typ\": \"JWT\" } ``` **JWT Payload:** ```json { \"iss\": \"agent-name\", \"sub\": \"agent-name\", \"aud\": \"authorization-server-identifier\", \"exp\": 1640995200, \"jti\": \"nonce-from-challenge\", \"iat\": 1640991600 } ``` **Requirements:** - Must be signed with agent\'s private key using RS256 - JWT ID (jti) must match nonce from server\'s challenge - Issuer (iss) and subject (sub) must be the agent name - Audience (aud) must be the authorization server identifier - Agent identity is extracted from the issuer claim
|
|
242
|
+
*/
|
|
243
|
+
clientAssertion: string;
|
|
244
|
+
}
|
|
245
|
+
declare namespace AgentTokenRequest {
|
|
246
|
+
type GrantTypeEnum = 'urn:ietf:params:oauth:grant-type:jwt-bearer';
|
|
247
|
+
const GrantTypeEnum: {
|
|
248
|
+
UrnietfparamsoauthgrantTypejwtBearer: GrantTypeEnum;
|
|
249
|
+
};
|
|
250
|
+
type ClientAssertionTypeEnum = 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer';
|
|
251
|
+
const ClientAssertionTypeEnum: {
|
|
252
|
+
UrnietfparamsoauthclientAssertionTypejwtBearer: ClientAssertionTypeEnum;
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
//#endregion
|
|
256
|
+
//#region generated/openapi/model/agent-token-response.d.ts
|
|
257
|
+
/**
|
|
258
|
+
* Workflow Approval System API
|
|
259
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
260
|
+
*
|
|
261
|
+
* The version of the OpenAPI document: 0.0.29
|
|
262
|
+
*
|
|
263
|
+
*
|
|
264
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
265
|
+
* https://openapi-generator.tech
|
|
266
|
+
* Do not edit the class manually.
|
|
267
|
+
*/
|
|
268
|
+
interface AgentTokenResponse {
|
|
269
|
+
/**
|
|
270
|
+
* JWT token for the authenticated agent
|
|
271
|
+
*/
|
|
272
|
+
accessToken: string;
|
|
273
|
+
/**
|
|
274
|
+
* Refresh token used to obtain a new access token
|
|
275
|
+
*/
|
|
276
|
+
refreshToken: string;
|
|
277
|
+
}
|
|
278
|
+
//#endregion
|
|
279
|
+
//#region generated/openapi/model/can-vote-response.d.ts
|
|
280
|
+
/**
|
|
281
|
+
* Workflow Approval System API
|
|
282
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
283
|
+
*
|
|
284
|
+
* The version of the OpenAPI document: 0.0.29
|
|
285
|
+
*
|
|
286
|
+
*
|
|
287
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
288
|
+
* https://openapi-generator.tech
|
|
289
|
+
* Do not edit the class manually.
|
|
290
|
+
*/
|
|
291
|
+
interface CanVoteResponse {
|
|
292
|
+
/**
|
|
293
|
+
* True if the authenticated entity can currently vote on the workflow, false otherwise.
|
|
294
|
+
*/
|
|
295
|
+
canVote: boolean;
|
|
296
|
+
/**
|
|
297
|
+
* Indicates the voting status for the user on this workflow.
|
|
298
|
+
*/
|
|
299
|
+
voteStatus: string;
|
|
300
|
+
/**
|
|
301
|
+
* Reason why the entity cannot vote on the workflow. The value is only set if \'canVote\' is false.
|
|
302
|
+
*/
|
|
303
|
+
cantVoteReason?: string;
|
|
304
|
+
/**
|
|
305
|
+
* Indicates whether a high-privilege token is required to cast a vote for the entity.
|
|
306
|
+
*/
|
|
307
|
+
requireHighPrivilege?: boolean;
|
|
308
|
+
}
|
|
309
|
+
//#endregion
|
|
310
|
+
//#region generated/openapi/model/entity-membership-remove.d.ts
|
|
311
|
+
interface EntityMembershipRemove {
|
|
312
|
+
entity: EntityReference;
|
|
313
|
+
}
|
|
314
|
+
//#endregion
|
|
315
|
+
//#region generated/openapi/model/get-entity-info-200-response.d.ts
|
|
316
|
+
interface GetEntityInfo200Response {
|
|
317
|
+
/**
|
|
318
|
+
* Type of the authenticated entity
|
|
319
|
+
*/
|
|
320
|
+
entityType: string;
|
|
321
|
+
groups: Array<GroupInfo>;
|
|
322
|
+
}
|
|
323
|
+
//#endregion
|
|
324
|
+
//#region generated/openapi/model/get-workflow-params.d.ts
|
|
325
|
+
/**
|
|
326
|
+
* Workflow Approval System API
|
|
327
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
328
|
+
*
|
|
329
|
+
* The version of the OpenAPI document: 0.0.29
|
|
330
|
+
*
|
|
331
|
+
*
|
|
332
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
333
|
+
* https://openapi-generator.tech
|
|
334
|
+
* Do not edit the class manually.
|
|
335
|
+
*/
|
|
336
|
+
interface GetWorkflowParams {
|
|
337
|
+
/**
|
|
338
|
+
* Comma-separated list of related objects to include in the response
|
|
339
|
+
*/
|
|
340
|
+
include?: Array<string>;
|
|
341
|
+
}
|
|
342
|
+
//#endregion
|
|
343
|
+
//#region generated/openapi/model/workflow-vote.d.ts
|
|
344
|
+
/**
|
|
345
|
+
* Workflow Approval System API
|
|
346
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
347
|
+
*
|
|
348
|
+
* The version of the OpenAPI document: 0.0.29
|
|
349
|
+
*
|
|
350
|
+
*
|
|
351
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
352
|
+
* https://openapi-generator.tech
|
|
353
|
+
* Do not edit the class manually.
|
|
354
|
+
*/
|
|
355
|
+
interface WorkflowVote {
|
|
356
|
+
/**
|
|
357
|
+
* Unique identifier of the entity that cast the vote
|
|
358
|
+
*/
|
|
359
|
+
voterId: string;
|
|
360
|
+
/**
|
|
361
|
+
* Type of the entity that cast the vote
|
|
362
|
+
*/
|
|
363
|
+
voterType: string;
|
|
364
|
+
/**
|
|
365
|
+
* Type of vote cast
|
|
366
|
+
*/
|
|
367
|
+
voteType: string;
|
|
368
|
+
/**
|
|
369
|
+
* Reason for the vote
|
|
370
|
+
*/
|
|
371
|
+
reason?: string;
|
|
372
|
+
/**
|
|
373
|
+
* Timestamp when the vote was cast
|
|
374
|
+
*/
|
|
375
|
+
timestamp: string;
|
|
376
|
+
/**
|
|
377
|
+
* List of group IDs the vote was cast on behalf of (only for APPROVE)
|
|
378
|
+
*/
|
|
379
|
+
votedForGroups?: Array<string>;
|
|
380
|
+
}
|
|
381
|
+
//#endregion
|
|
382
|
+
//#region generated/openapi/model/get-workflow-votes-200-response.d.ts
|
|
383
|
+
interface GetWorkflowVotes200Response {
|
|
384
|
+
votes: Array<WorkflowVote>;
|
|
385
|
+
}
|
|
386
|
+
//#endregion
|
|
387
|
+
//#region generated/openapi/model/group-create.d.ts
|
|
388
|
+
/**
|
|
389
|
+
* Workflow Approval System API
|
|
390
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
391
|
+
*
|
|
392
|
+
* The version of the OpenAPI document: 0.0.29
|
|
393
|
+
*
|
|
394
|
+
*
|
|
395
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
396
|
+
* https://openapi-generator.tech
|
|
397
|
+
* Do not edit the class manually.
|
|
398
|
+
*/
|
|
399
|
+
interface GroupCreate {
|
|
400
|
+
/**
|
|
401
|
+
* Name of the group
|
|
402
|
+
*/
|
|
403
|
+
name: string;
|
|
404
|
+
/**
|
|
405
|
+
* Description of the group
|
|
406
|
+
*/
|
|
407
|
+
description?: string;
|
|
408
|
+
}
|
|
409
|
+
//#endregion
|
|
410
|
+
//#region generated/openapi/model/group-membership.d.ts
|
|
411
|
+
interface GroupMembership {
|
|
412
|
+
entity: EntityReference;
|
|
413
|
+
/**
|
|
414
|
+
* Timestamp when the entity was added to the group.
|
|
415
|
+
*/
|
|
416
|
+
readonly addedAt: string;
|
|
417
|
+
}
|
|
418
|
+
//#endregion
|
|
419
|
+
//#region generated/openapi/model/group-scope.d.ts
|
|
420
|
+
/**
|
|
421
|
+
* Workflow Approval System API
|
|
422
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
423
|
+
*
|
|
424
|
+
* The version of the OpenAPI document: 0.0.29
|
|
425
|
+
*
|
|
426
|
+
*
|
|
427
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
428
|
+
* https://openapi-generator.tech
|
|
429
|
+
* Do not edit the class manually.
|
|
430
|
+
*/
|
|
431
|
+
/**
|
|
432
|
+
* Group-specific scope - applies to a specific group
|
|
433
|
+
*/
|
|
434
|
+
interface GroupScope {
|
|
435
|
+
/**
|
|
436
|
+
* Scope type (group)
|
|
437
|
+
*/
|
|
438
|
+
type: GroupScope.TypeEnum;
|
|
439
|
+
/**
|
|
440
|
+
* The unique identifier of the group
|
|
441
|
+
*/
|
|
442
|
+
groupId: string;
|
|
443
|
+
}
|
|
444
|
+
declare namespace GroupScope {
|
|
445
|
+
type TypeEnum = 'group';
|
|
446
|
+
const TypeEnum: {
|
|
447
|
+
Group: TypeEnum;
|
|
448
|
+
};
|
|
449
|
+
}
|
|
450
|
+
//#endregion
|
|
451
|
+
//#region generated/openapi/model/health-response.d.ts
|
|
452
|
+
/**
|
|
453
|
+
* Workflow Approval System API
|
|
454
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
455
|
+
*
|
|
456
|
+
* The version of the OpenAPI document: 0.0.29
|
|
457
|
+
*
|
|
458
|
+
*
|
|
459
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
460
|
+
* https://openapi-generator.tech
|
|
461
|
+
* Do not edit the class manually.
|
|
462
|
+
*/
|
|
463
|
+
interface HealthResponse {
|
|
464
|
+
/**
|
|
465
|
+
* Current health status of the service
|
|
466
|
+
*/
|
|
467
|
+
status: string;
|
|
468
|
+
/**
|
|
469
|
+
* Optional message providing more details about the status
|
|
470
|
+
*/
|
|
471
|
+
message?: string;
|
|
472
|
+
}
|
|
473
|
+
//#endregion
|
|
474
|
+
//#region generated/openapi/model/initiate-cli-login-200-response.d.ts
|
|
475
|
+
/**
|
|
476
|
+
* Workflow Approval System API
|
|
477
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
478
|
+
*
|
|
479
|
+
* The version of the OpenAPI document: 0.0.29
|
|
480
|
+
*
|
|
481
|
+
*
|
|
482
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
483
|
+
* https://openapi-generator.tech
|
|
484
|
+
* Do not edit the class manually.
|
|
485
|
+
*/
|
|
486
|
+
interface InitiateCliLogin200Response {
|
|
487
|
+
authorizationUrl: string;
|
|
488
|
+
}
|
|
489
|
+
//#endregion
|
|
490
|
+
//#region generated/openapi/model/initiate-cli-login-request.d.ts
|
|
491
|
+
/**
|
|
492
|
+
* Workflow Approval System API
|
|
493
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
494
|
+
*
|
|
495
|
+
* The version of the OpenAPI document: 0.0.29
|
|
496
|
+
*
|
|
497
|
+
*
|
|
498
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
499
|
+
* https://openapi-generator.tech
|
|
500
|
+
* Do not edit the class manually.
|
|
501
|
+
*/
|
|
502
|
+
interface InitiateCliLoginRequest {
|
|
503
|
+
/**
|
|
504
|
+
* The local loopback URL to redirect the user to after authentication
|
|
505
|
+
*/
|
|
506
|
+
redirectUri: string;
|
|
507
|
+
}
|
|
508
|
+
//#endregion
|
|
509
|
+
//#region generated/openapi/model/list-agents-200-response.d.ts
|
|
510
|
+
interface ListAgents200Response {
|
|
511
|
+
agents: Array<AgentSummary>;
|
|
512
|
+
pagination: Pagination;
|
|
513
|
+
}
|
|
514
|
+
//#endregion
|
|
515
|
+
//#region generated/openapi/model/list-agents-params.d.ts
|
|
516
|
+
/**
|
|
517
|
+
* Workflow Approval System API
|
|
518
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
519
|
+
*
|
|
520
|
+
* The version of the OpenAPI document: 0.0.29
|
|
521
|
+
*
|
|
522
|
+
*
|
|
523
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
524
|
+
* https://openapi-generator.tech
|
|
525
|
+
* Do not edit the class manually.
|
|
526
|
+
*/
|
|
527
|
+
interface ListAgentsParams {
|
|
528
|
+
/**
|
|
529
|
+
* Page number for pagination
|
|
530
|
+
*/
|
|
531
|
+
page?: number;
|
|
532
|
+
/**
|
|
533
|
+
* Number of results per page
|
|
534
|
+
*/
|
|
535
|
+
limit?: number;
|
|
536
|
+
}
|
|
537
|
+
//#endregion
|
|
538
|
+
//#region generated/openapi/model/list-group-entities-200-response.d.ts
|
|
539
|
+
interface ListGroupEntities200Response {
|
|
540
|
+
entities: Array<GroupMembership>;
|
|
541
|
+
pagination: Pagination;
|
|
542
|
+
}
|
|
543
|
+
//#endregion
|
|
544
|
+
//#region generated/openapi/model/organization-admin.d.ts
|
|
545
|
+
/**
|
|
546
|
+
* Workflow Approval System API
|
|
547
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
548
|
+
*
|
|
549
|
+
* The version of the OpenAPI document: 0.0.29
|
|
550
|
+
*
|
|
551
|
+
*
|
|
552
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
553
|
+
* https://openapi-generator.tech
|
|
554
|
+
* Do not edit the class manually.
|
|
555
|
+
*/
|
|
556
|
+
interface OrganizationAdmin {
|
|
557
|
+
/**
|
|
558
|
+
* Unique identifier of the user who is an organization admin
|
|
559
|
+
*/
|
|
560
|
+
readonly userId: string;
|
|
561
|
+
/**
|
|
562
|
+
* Email address of the organization administrator
|
|
563
|
+
*/
|
|
564
|
+
email: string;
|
|
565
|
+
/**
|
|
566
|
+
* Timestamp when the admin was created
|
|
567
|
+
*/
|
|
568
|
+
readonly createdAt: string;
|
|
569
|
+
}
|
|
570
|
+
//#endregion
|
|
571
|
+
//#region generated/openapi/model/list-organization-admins-for-org-200-response.d.ts
|
|
572
|
+
interface ListOrganizationAdminsForOrg200Response {
|
|
573
|
+
data: Array<OrganizationAdmin>;
|
|
574
|
+
pagination: Pagination;
|
|
575
|
+
}
|
|
576
|
+
//#endregion
|
|
577
|
+
//#region generated/openapi/model/role-template.d.ts
|
|
578
|
+
/**
|
|
579
|
+
* Workflow Approval System API
|
|
580
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
581
|
+
*
|
|
582
|
+
* The version of the OpenAPI document: 0.0.29
|
|
583
|
+
*
|
|
584
|
+
*
|
|
585
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
586
|
+
* https://openapi-generator.tech
|
|
587
|
+
* Do not edit the class manually.
|
|
588
|
+
*/
|
|
589
|
+
interface RoleTemplate {
|
|
590
|
+
/**
|
|
591
|
+
* Unique identifier for the role template
|
|
592
|
+
*/
|
|
593
|
+
name: string;
|
|
594
|
+
/**
|
|
595
|
+
* List of permissions granted by this role
|
|
596
|
+
*/
|
|
597
|
+
permissions: Array<string>;
|
|
598
|
+
/**
|
|
599
|
+
* The scope type this role applies to
|
|
600
|
+
*/
|
|
601
|
+
scope: string;
|
|
602
|
+
}
|
|
603
|
+
//#endregion
|
|
604
|
+
//#region generated/openapi/model/list-role-templates-200-response.d.ts
|
|
605
|
+
interface ListRoleTemplates200Response {
|
|
606
|
+
roles: Array<RoleTemplate>;
|
|
607
|
+
}
|
|
608
|
+
//#endregion
|
|
609
|
+
//#region generated/openapi/model/space.d.ts
|
|
610
|
+
/**
|
|
611
|
+
* Workflow Approval System API
|
|
612
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
613
|
+
*
|
|
614
|
+
* The version of the OpenAPI document: 0.0.29
|
|
615
|
+
*
|
|
616
|
+
*
|
|
617
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
618
|
+
* https://openapi-generator.tech
|
|
619
|
+
* Do not edit the class manually.
|
|
620
|
+
*/
|
|
621
|
+
interface Space {
|
|
622
|
+
/**
|
|
623
|
+
* Unique identifier for the space
|
|
624
|
+
*/
|
|
625
|
+
readonly id: string;
|
|
626
|
+
/**
|
|
627
|
+
* Name of the space (max 255 characters)
|
|
628
|
+
*/
|
|
629
|
+
name: string;
|
|
630
|
+
/**
|
|
631
|
+
* Description of the space (max 2048 characters)
|
|
632
|
+
*/
|
|
633
|
+
description?: string;
|
|
634
|
+
/**
|
|
635
|
+
* Timestamp when the space was created
|
|
636
|
+
*/
|
|
637
|
+
readonly createdAt: string;
|
|
638
|
+
/**
|
|
639
|
+
* Timestamp when the space was last updated
|
|
640
|
+
*/
|
|
641
|
+
readonly updatedAt: string;
|
|
642
|
+
}
|
|
643
|
+
//#endregion
|
|
644
|
+
//#region generated/openapi/model/list-spaces-200-response.d.ts
|
|
645
|
+
interface ListSpaces200Response {
|
|
646
|
+
data: Array<Space>;
|
|
647
|
+
pagination: Pagination;
|
|
648
|
+
}
|
|
649
|
+
//#endregion
|
|
650
|
+
//#region generated/openapi/model/list-users-200-response.d.ts
|
|
651
|
+
interface ListUsers200Response {
|
|
652
|
+
users: Array<UserSummary>;
|
|
653
|
+
pagination: Pagination;
|
|
654
|
+
}
|
|
655
|
+
//#endregion
|
|
656
|
+
//#region generated/openapi/model/workflow-template-summary.d.ts
|
|
657
|
+
/**
|
|
658
|
+
* Workflow Approval System API
|
|
659
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
660
|
+
*
|
|
661
|
+
* The version of the OpenAPI document: 0.0.29
|
|
662
|
+
*
|
|
663
|
+
*
|
|
664
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
665
|
+
* https://openapi-generator.tech
|
|
666
|
+
* Do not edit the class manually.
|
|
667
|
+
*/
|
|
668
|
+
interface WorkflowTemplateSummary {
|
|
669
|
+
/**
|
|
670
|
+
* Internal unique identifier for the workflow template.
|
|
671
|
+
*/
|
|
672
|
+
readonly id: string;
|
|
673
|
+
/**
|
|
674
|
+
* User-friendly name for the workflow template.
|
|
675
|
+
*/
|
|
676
|
+
name: string;
|
|
677
|
+
/**
|
|
678
|
+
* Version of the workflow template.
|
|
679
|
+
*/
|
|
680
|
+
version: string;
|
|
681
|
+
/**
|
|
682
|
+
* Detailed description of the workflow template.
|
|
683
|
+
*/
|
|
684
|
+
description?: string;
|
|
685
|
+
/**
|
|
686
|
+
* Timestamp when the workflow template was created.
|
|
687
|
+
*/
|
|
688
|
+
readonly createdAt: string;
|
|
689
|
+
/**
|
|
690
|
+
* Timestamp when the workflow template was last updated.
|
|
691
|
+
*/
|
|
692
|
+
readonly updatedAt: string;
|
|
693
|
+
}
|
|
694
|
+
//#endregion
|
|
695
|
+
//#region generated/openapi/model/list-workflow-templates-200-response.d.ts
|
|
696
|
+
interface ListWorkflowTemplates200Response {
|
|
697
|
+
data: Array<WorkflowTemplateSummary>;
|
|
698
|
+
pagination: Pagination;
|
|
699
|
+
}
|
|
700
|
+
//#endregion
|
|
701
|
+
//#region generated/openapi/model/list-workflow-templates-params.d.ts
|
|
702
|
+
/**
|
|
703
|
+
* Workflow Approval System API
|
|
704
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
705
|
+
*
|
|
706
|
+
* The version of the OpenAPI document: 0.0.29
|
|
707
|
+
*
|
|
708
|
+
*
|
|
709
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
710
|
+
* https://openapi-generator.tech
|
|
711
|
+
* Do not edit the class manually.
|
|
712
|
+
*/
|
|
713
|
+
interface ListWorkflowTemplatesParams {
|
|
714
|
+
/**
|
|
715
|
+
* Page number for pagination
|
|
716
|
+
*/
|
|
717
|
+
page?: number;
|
|
718
|
+
/**
|
|
719
|
+
* Number of results per page
|
|
720
|
+
*/
|
|
721
|
+
limit?: number;
|
|
722
|
+
/**
|
|
723
|
+
* Optional space identifier (UUID or name) to filter workflow templates.
|
|
724
|
+
*/
|
|
725
|
+
spaceIdentifier?: string;
|
|
726
|
+
}
|
|
727
|
+
//#endregion
|
|
728
|
+
//#region generated/openapi/model/list-workflows-params.d.ts
|
|
729
|
+
/**
|
|
730
|
+
* Workflow Approval System API
|
|
731
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
732
|
+
*
|
|
733
|
+
* The version of the OpenAPI document: 0.0.29
|
|
734
|
+
*
|
|
735
|
+
*
|
|
736
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
737
|
+
* https://openapi-generator.tech
|
|
738
|
+
* Do not edit the class manually.
|
|
739
|
+
*/
|
|
740
|
+
interface ListWorkflowsParams {
|
|
741
|
+
/**
|
|
742
|
+
* Page number for pagination
|
|
743
|
+
*/
|
|
744
|
+
page?: number;
|
|
745
|
+
/**
|
|
746
|
+
* Number of results per page
|
|
747
|
+
*/
|
|
748
|
+
limit?: number;
|
|
749
|
+
/**
|
|
750
|
+
* Comma-separated list of related objects to include in the response
|
|
751
|
+
*/
|
|
752
|
+
include?: Array<string>;
|
|
753
|
+
/**
|
|
754
|
+
* When set to true, only workflows that are not in terminal state will be returned.
|
|
755
|
+
*/
|
|
756
|
+
includeOnlyNonTerminalState?: boolean;
|
|
757
|
+
/**
|
|
758
|
+
* Optional workflow template identifier (UUID or name) to filter workflows.
|
|
759
|
+
*/
|
|
760
|
+
workflowTemplateIdentifier?: string;
|
|
761
|
+
}
|
|
762
|
+
//#endregion
|
|
763
|
+
//#region generated/openapi/model/oidc-callback-request.d.ts
|
|
764
|
+
/**
|
|
765
|
+
* Workflow Approval System API
|
|
766
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
767
|
+
*
|
|
768
|
+
* The version of the OpenAPI document: 0.0.29
|
|
769
|
+
*
|
|
770
|
+
*
|
|
771
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
772
|
+
* https://openapi-generator.tech
|
|
773
|
+
* Do not edit the class manually.
|
|
774
|
+
*/
|
|
775
|
+
interface OidcCallbackRequest {
|
|
776
|
+
/**
|
|
777
|
+
* Authorization code received from OIDC provider
|
|
778
|
+
*/
|
|
779
|
+
code: string;
|
|
780
|
+
/**
|
|
781
|
+
* State parameter used for CSRF protection
|
|
782
|
+
*/
|
|
783
|
+
state: string;
|
|
784
|
+
}
|
|
785
|
+
//#endregion
|
|
786
|
+
//#region generated/openapi/model/org-scope.d.ts
|
|
787
|
+
/**
|
|
788
|
+
* Workflow Approval System API
|
|
789
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
790
|
+
*
|
|
791
|
+
* The version of the OpenAPI document: 0.0.29
|
|
792
|
+
*
|
|
793
|
+
*
|
|
794
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
795
|
+
* https://openapi-generator.tech
|
|
796
|
+
* Do not edit the class manually.
|
|
797
|
+
*/
|
|
798
|
+
/**
|
|
799
|
+
* Organization-wide scope - applies to entire organization
|
|
800
|
+
*/
|
|
801
|
+
interface OrgScope {
|
|
802
|
+
/**
|
|
803
|
+
* Scope type (org)
|
|
804
|
+
*/
|
|
805
|
+
type: OrgScope.TypeEnum;
|
|
806
|
+
}
|
|
807
|
+
declare namespace OrgScope {
|
|
808
|
+
type TypeEnum = 'org';
|
|
809
|
+
const TypeEnum: {
|
|
810
|
+
Org: TypeEnum;
|
|
811
|
+
};
|
|
812
|
+
}
|
|
813
|
+
//#endregion
|
|
814
|
+
//#region generated/openapi/model/organization-admin-create.d.ts
|
|
815
|
+
/**
|
|
816
|
+
* Workflow Approval System API
|
|
817
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
818
|
+
*
|
|
819
|
+
* The version of the OpenAPI document: 0.0.29
|
|
820
|
+
*
|
|
821
|
+
*
|
|
822
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
823
|
+
* https://openapi-generator.tech
|
|
824
|
+
* Do not edit the class manually.
|
|
825
|
+
*/
|
|
826
|
+
interface OrganizationAdminCreate {
|
|
827
|
+
/**
|
|
828
|
+
* Email address of the organization administrator
|
|
829
|
+
*/
|
|
830
|
+
email: string;
|
|
831
|
+
}
|
|
832
|
+
//#endregion
|
|
833
|
+
//#region generated/openapi/model/organization-admin-remove.d.ts
|
|
834
|
+
/**
|
|
835
|
+
* Workflow Approval System API
|
|
836
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
837
|
+
*
|
|
838
|
+
* The version of the OpenAPI document: 0.0.29
|
|
839
|
+
*
|
|
840
|
+
*
|
|
841
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
842
|
+
* https://openapi-generator.tech
|
|
843
|
+
* Do not edit the class manually.
|
|
844
|
+
*/
|
|
845
|
+
interface OrganizationAdminRemove {
|
|
846
|
+
/**
|
|
847
|
+
* The unique identifier of the user to remove from organization admins
|
|
848
|
+
*/
|
|
849
|
+
userId: string;
|
|
850
|
+
}
|
|
851
|
+
//#endregion
|
|
852
|
+
//#region generated/openapi/model/privileged-token-exchange-request.d.ts
|
|
853
|
+
/**
|
|
854
|
+
* Workflow Approval System API
|
|
855
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
856
|
+
*
|
|
857
|
+
* The version of the OpenAPI document: 0.0.29
|
|
858
|
+
*
|
|
859
|
+
*
|
|
860
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
861
|
+
* https://openapi-generator.tech
|
|
862
|
+
* Do not edit the class manually.
|
|
863
|
+
*/
|
|
864
|
+
interface PrivilegedTokenExchangeRequest {
|
|
865
|
+
/**
|
|
866
|
+
* The authorization code returned from the IDP
|
|
867
|
+
*/
|
|
868
|
+
code: string;
|
|
869
|
+
/**
|
|
870
|
+
* The state parameter returned from the IDP
|
|
871
|
+
*/
|
|
872
|
+
state: string;
|
|
873
|
+
/**
|
|
874
|
+
* The identifier of the resource being accessed
|
|
875
|
+
*/
|
|
876
|
+
resourceId?: string;
|
|
877
|
+
/**
|
|
878
|
+
* The operation requiring high privilege authentication
|
|
879
|
+
*/
|
|
880
|
+
operation: string;
|
|
881
|
+
}
|
|
882
|
+
//#endregion
|
|
883
|
+
//#region generated/openapi/model/privileged-token-response.d.ts
|
|
884
|
+
/**
|
|
885
|
+
* Workflow Approval System API
|
|
886
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
887
|
+
*
|
|
888
|
+
* The version of the OpenAPI document: 0.0.29
|
|
889
|
+
*
|
|
890
|
+
*
|
|
891
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
892
|
+
* https://openapi-generator.tech
|
|
893
|
+
* Do not edit the class manually.
|
|
894
|
+
*/
|
|
895
|
+
interface PrivilegedTokenResponse {
|
|
896
|
+
/**
|
|
897
|
+
* Short-lived high-privilege JWT token for sensitive operations
|
|
898
|
+
*/
|
|
899
|
+
accessToken: string;
|
|
900
|
+
}
|
|
901
|
+
//#endregion
|
|
902
|
+
//#region generated/openapi/model/refresh-token-request.d.ts
|
|
903
|
+
/**
|
|
904
|
+
* Workflow Approval System API
|
|
905
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
906
|
+
*
|
|
907
|
+
* The version of the OpenAPI document: 0.0.29
|
|
908
|
+
*
|
|
909
|
+
*
|
|
910
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
911
|
+
* https://openapi-generator.tech
|
|
912
|
+
* Do not edit the class manually.
|
|
913
|
+
*/
|
|
914
|
+
interface RefreshTokenRequest {
|
|
915
|
+
/**
|
|
916
|
+
* Refresh token used to obtain a new access token
|
|
917
|
+
*/
|
|
918
|
+
refreshToken: string;
|
|
919
|
+
}
|
|
920
|
+
//#endregion
|
|
921
|
+
//#region generated/openapi/model/remove-group-entities-request.d.ts
|
|
922
|
+
/**
|
|
923
|
+
* Defines operations to remove entities within a group
|
|
924
|
+
*/
|
|
925
|
+
interface RemoveGroupEntitiesRequest {
|
|
926
|
+
/**
|
|
927
|
+
* List of entities to remove from the group.
|
|
928
|
+
*/
|
|
929
|
+
entities: Array<EntityMembershipRemove>;
|
|
930
|
+
}
|
|
931
|
+
//#endregion
|
|
932
|
+
//#region generated/openapi/model/space-scope.d.ts
|
|
933
|
+
/**
|
|
934
|
+
* Workflow Approval System API
|
|
935
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
936
|
+
*
|
|
937
|
+
* The version of the OpenAPI document: 0.0.29
|
|
938
|
+
*
|
|
939
|
+
*
|
|
940
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
941
|
+
* https://openapi-generator.tech
|
|
942
|
+
* Do not edit the class manually.
|
|
943
|
+
*/
|
|
944
|
+
/**
|
|
945
|
+
* Space-specific scope - applies to a specific space
|
|
946
|
+
*/
|
|
947
|
+
interface SpaceScope {
|
|
948
|
+
/**
|
|
949
|
+
* Scope type (space)
|
|
950
|
+
*/
|
|
951
|
+
type: SpaceScope.TypeEnum;
|
|
952
|
+
/**
|
|
953
|
+
* The unique identifier of the space
|
|
954
|
+
*/
|
|
955
|
+
spaceId: string;
|
|
956
|
+
}
|
|
957
|
+
declare namespace SpaceScope {
|
|
958
|
+
type TypeEnum = 'space';
|
|
959
|
+
const TypeEnum: {
|
|
960
|
+
Space: TypeEnum;
|
|
961
|
+
};
|
|
962
|
+
}
|
|
963
|
+
//#endregion
|
|
964
|
+
//#region generated/openapi/model/workflow-template-scope.d.ts
|
|
965
|
+
/**
|
|
966
|
+
* Workflow Approval System API
|
|
967
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
968
|
+
*
|
|
969
|
+
* The version of the OpenAPI document: 0.0.29
|
|
970
|
+
*
|
|
971
|
+
*
|
|
972
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
973
|
+
* https://openapi-generator.tech
|
|
974
|
+
* Do not edit the class manually.
|
|
975
|
+
*/
|
|
976
|
+
/**
|
|
977
|
+
* Workflow template-specific scope - applies to a specific workflow template
|
|
978
|
+
*/
|
|
979
|
+
interface WorkflowTemplateScope {
|
|
980
|
+
/**
|
|
981
|
+
* Scope type (workflow_template)
|
|
982
|
+
*/
|
|
983
|
+
type: WorkflowTemplateScope.TypeEnum;
|
|
984
|
+
/**
|
|
985
|
+
* The unique identifier of the workflow template
|
|
986
|
+
*/
|
|
987
|
+
workflowTemplateId: string;
|
|
988
|
+
}
|
|
989
|
+
declare namespace WorkflowTemplateScope {
|
|
990
|
+
type TypeEnum = 'workflow_template';
|
|
991
|
+
const TypeEnum: {
|
|
992
|
+
WorkflowTemplate: TypeEnum;
|
|
993
|
+
};
|
|
994
|
+
}
|
|
995
|
+
//#endregion
|
|
996
|
+
//#region generated/openapi/model/role-scope.d.ts
|
|
997
|
+
/**
|
|
998
|
+
* Defines the scope where a role applies. Can be organization-wide, space-specific, group-specific, or workflow template-specific.
|
|
999
|
+
*/
|
|
1000
|
+
/**
|
|
1001
|
+
* @type RoleScope
|
|
1002
|
+
* Defines the scope where a role applies. Can be organization-wide, space-specific, group-specific, or workflow template-specific.
|
|
1003
|
+
* @export
|
|
1004
|
+
*/
|
|
1005
|
+
type RoleScope = GroupScope | OrgScope | SpaceScope | WorkflowTemplateScope;
|
|
1006
|
+
//#endregion
|
|
1007
|
+
//#region generated/openapi/model/role-operation-item.d.ts
|
|
1008
|
+
/**
|
|
1009
|
+
* A role operation item that references a system-defined role by name and provides the scope where it should apply (for assignment or removal).
|
|
1010
|
+
*/
|
|
1011
|
+
interface RoleOperationItem {
|
|
1012
|
+
/**
|
|
1013
|
+
* Name of the system-defined role template (e.g., \"GroupReadOnly\", \"SpaceManager\"). Must match a role available from the /roles endpoint.
|
|
1014
|
+
*/
|
|
1015
|
+
roleName: string;
|
|
1016
|
+
scope: RoleScope;
|
|
1017
|
+
}
|
|
1018
|
+
//#endregion
|
|
1019
|
+
//#region generated/openapi/model/role-assignment-request.d.ts
|
|
1020
|
+
/**
|
|
1021
|
+
* Request to assign or remove roles from a user or agent
|
|
1022
|
+
*/
|
|
1023
|
+
interface RoleAssignmentRequest {
|
|
1024
|
+
/**
|
|
1025
|
+
* Array of role assignments specifying role names and their scopes
|
|
1026
|
+
*/
|
|
1027
|
+
roles: Array<RoleOperationItem>;
|
|
1028
|
+
}
|
|
1029
|
+
//#endregion
|
|
1030
|
+
//#region generated/openapi/model/role-operation-request.d.ts
|
|
1031
|
+
/**
|
|
1032
|
+
* Request to assign or remove roles from a user or agent
|
|
1033
|
+
*/
|
|
1034
|
+
interface RoleOperationRequest {
|
|
1035
|
+
/**
|
|
1036
|
+
* Array of role assignments specifying role names and their scopes
|
|
1037
|
+
*/
|
|
1038
|
+
roles: Array<RoleOperationItem>;
|
|
1039
|
+
}
|
|
1040
|
+
//#endregion
|
|
1041
|
+
//#region generated/openapi/model/role-removal-request.d.ts
|
|
1042
|
+
/**
|
|
1043
|
+
* Request to assign or remove roles from a user or agent
|
|
1044
|
+
*/
|
|
1045
|
+
interface RoleRemovalRequest {
|
|
1046
|
+
/**
|
|
1047
|
+
* Array of role assignments specifying role names and their scopes
|
|
1048
|
+
*/
|
|
1049
|
+
roles: Array<RoleOperationItem>;
|
|
1050
|
+
}
|
|
1051
|
+
//#endregion
|
|
1052
|
+
//#region generated/openapi/model/space-create.d.ts
|
|
1053
|
+
/**
|
|
1054
|
+
* Workflow Approval System API
|
|
1055
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
1056
|
+
*
|
|
1057
|
+
* The version of the OpenAPI document: 0.0.29
|
|
1058
|
+
*
|
|
1059
|
+
*
|
|
1060
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1061
|
+
* https://openapi-generator.tech
|
|
1062
|
+
* Do not edit the class manually.
|
|
1063
|
+
*/
|
|
1064
|
+
interface SpaceCreate {
|
|
1065
|
+
/**
|
|
1066
|
+
* Name of the space (max 255 characters)
|
|
1067
|
+
*/
|
|
1068
|
+
name: string;
|
|
1069
|
+
/**
|
|
1070
|
+
* Description of the space (max 2048 characters)
|
|
1071
|
+
*/
|
|
1072
|
+
description?: string;
|
|
1073
|
+
}
|
|
1074
|
+
//#endregion
|
|
1075
|
+
//#region generated/openapi/model/token-request.d.ts
|
|
1076
|
+
/**
|
|
1077
|
+
* Workflow Approval System API
|
|
1078
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
1079
|
+
*
|
|
1080
|
+
* The version of the OpenAPI document: 0.0.29
|
|
1081
|
+
*
|
|
1082
|
+
*
|
|
1083
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1084
|
+
* https://openapi-generator.tech
|
|
1085
|
+
* Do not edit the class manually.
|
|
1086
|
+
*/
|
|
1087
|
+
interface TokenRequest {
|
|
1088
|
+
/**
|
|
1089
|
+
* Authorization code returned by the IDP
|
|
1090
|
+
*/
|
|
1091
|
+
code: string;
|
|
1092
|
+
/**
|
|
1093
|
+
* State parameter passed to the IDP for CSRF protection
|
|
1094
|
+
*/
|
|
1095
|
+
state: string;
|
|
1096
|
+
}
|
|
1097
|
+
//#endregion
|
|
1098
|
+
//#region generated/openapi/model/user-create.d.ts
|
|
1099
|
+
/**
|
|
1100
|
+
* Workflow Approval System API
|
|
1101
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
1102
|
+
*
|
|
1103
|
+
* The version of the OpenAPI document: 0.0.29
|
|
1104
|
+
*
|
|
1105
|
+
*
|
|
1106
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1107
|
+
* https://openapi-generator.tech
|
|
1108
|
+
* Do not edit the class manually.
|
|
1109
|
+
*/
|
|
1110
|
+
interface UserCreate {
|
|
1111
|
+
/**
|
|
1112
|
+
* User\'s display name.
|
|
1113
|
+
*/
|
|
1114
|
+
displayName: string;
|
|
1115
|
+
/**
|
|
1116
|
+
* User\'s email address (must be unique).
|
|
1117
|
+
*/
|
|
1118
|
+
email: string;
|
|
1119
|
+
/**
|
|
1120
|
+
* Role assigned to the user within the organization.
|
|
1121
|
+
*/
|
|
1122
|
+
orgRole: string;
|
|
1123
|
+
}
|
|
1124
|
+
//#endregion
|
|
1125
|
+
//#region generated/openapi/model/vote-approve.d.ts
|
|
1126
|
+
/**
|
|
1127
|
+
* Workflow Approval System API
|
|
1128
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
1129
|
+
*
|
|
1130
|
+
* The version of the OpenAPI document: 0.0.29
|
|
1131
|
+
*
|
|
1132
|
+
*
|
|
1133
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1134
|
+
* https://openapi-generator.tech
|
|
1135
|
+
* Do not edit the class manually.
|
|
1136
|
+
*/
|
|
1137
|
+
interface VoteApprove {
|
|
1138
|
+
/**
|
|
1139
|
+
* Vote type (APPROVE)
|
|
1140
|
+
*/
|
|
1141
|
+
type: VoteApprove.TypeEnum;
|
|
1142
|
+
/**
|
|
1143
|
+
* List of group IDs the vote is cast for. The voter must be a member of these groups with appropriate role (approver, admin, or owner) to cast votes for them.
|
|
1144
|
+
*/
|
|
1145
|
+
votedForGroups: Array<string>;
|
|
1146
|
+
}
|
|
1147
|
+
declare namespace VoteApprove {
|
|
1148
|
+
type TypeEnum = 'APPROVE';
|
|
1149
|
+
const TypeEnum: {
|
|
1150
|
+
Approve: TypeEnum;
|
|
1151
|
+
};
|
|
1152
|
+
}
|
|
1153
|
+
//#endregion
|
|
1154
|
+
//#region generated/openapi/model/vote-veto.d.ts
|
|
1155
|
+
/**
|
|
1156
|
+
* Workflow Approval System API
|
|
1157
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
1158
|
+
*
|
|
1159
|
+
* The version of the OpenAPI document: 0.0.29
|
|
1160
|
+
*
|
|
1161
|
+
*
|
|
1162
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1163
|
+
* https://openapi-generator.tech
|
|
1164
|
+
* Do not edit the class manually.
|
|
1165
|
+
*/
|
|
1166
|
+
interface VoteVeto {
|
|
1167
|
+
/**
|
|
1168
|
+
* Vote type (VETO)
|
|
1169
|
+
*/
|
|
1170
|
+
type: VoteVeto.TypeEnum;
|
|
1171
|
+
}
|
|
1172
|
+
declare namespace VoteVeto {
|
|
1173
|
+
type TypeEnum = 'VETO';
|
|
1174
|
+
const TypeEnum: {
|
|
1175
|
+
Veto: TypeEnum;
|
|
1176
|
+
};
|
|
1177
|
+
}
|
|
1178
|
+
//#endregion
|
|
1179
|
+
//#region generated/openapi/model/vote-withdraw.d.ts
|
|
1180
|
+
/**
|
|
1181
|
+
* Workflow Approval System API
|
|
1182
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
1183
|
+
*
|
|
1184
|
+
* The version of the OpenAPI document: 0.0.29
|
|
1185
|
+
*
|
|
1186
|
+
*
|
|
1187
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1188
|
+
* https://openapi-generator.tech
|
|
1189
|
+
* Do not edit the class manually.
|
|
1190
|
+
*/
|
|
1191
|
+
interface VoteWithdraw {
|
|
1192
|
+
/**
|
|
1193
|
+
* Vote type (WITHDRAW)
|
|
1194
|
+
*/
|
|
1195
|
+
type: VoteWithdraw.TypeEnum;
|
|
1196
|
+
}
|
|
1197
|
+
declare namespace VoteWithdraw {
|
|
1198
|
+
type TypeEnum = 'WITHDRAW';
|
|
1199
|
+
const TypeEnum: {
|
|
1200
|
+
Withdraw: TypeEnum;
|
|
1201
|
+
};
|
|
1202
|
+
}
|
|
1203
|
+
//#endregion
|
|
1204
|
+
//#region generated/openapi/model/workflow-template-create.d.ts
|
|
1205
|
+
interface WorkflowTemplateCreate {
|
|
1206
|
+
/**
|
|
1207
|
+
* User-friendly name for the workflow template
|
|
1208
|
+
*/
|
|
1209
|
+
name: string;
|
|
1210
|
+
/**
|
|
1211
|
+
* Detailed description of the workflow template
|
|
1212
|
+
*/
|
|
1213
|
+
description?: string;
|
|
1214
|
+
/**
|
|
1215
|
+
* Additional custom metadata for the workflow template
|
|
1216
|
+
*/
|
|
1217
|
+
metadata?: object;
|
|
1218
|
+
approvalRule: ApprovalRule;
|
|
1219
|
+
/**
|
|
1220
|
+
* Actions to be executed when workflow is approved
|
|
1221
|
+
*/
|
|
1222
|
+
actions?: Array<WorkflowAction>;
|
|
1223
|
+
/**
|
|
1224
|
+
* Default expiry time for workflows created from this template (in hours, max 1 year)
|
|
1225
|
+
*/
|
|
1226
|
+
defaultExpiresInHours?: number;
|
|
1227
|
+
/**
|
|
1228
|
+
* ID of the space to which this workflow template belongs
|
|
1229
|
+
*/
|
|
1230
|
+
spaceId: string;
|
|
1231
|
+
}
|
|
1232
|
+
//#endregion
|
|
1233
|
+
//#region generated/openapi/model/workflow-template-deprecate.d.ts
|
|
1234
|
+
/**
|
|
1235
|
+
* Workflow Approval System API
|
|
1236
|
+
* API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
|
|
1237
|
+
*
|
|
1238
|
+
* The version of the OpenAPI document: 0.0.29
|
|
1239
|
+
*
|
|
1240
|
+
*
|
|
1241
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1242
|
+
* https://openapi-generator.tech
|
|
1243
|
+
* Do not edit the class manually.
|
|
1244
|
+
*/
|
|
1245
|
+
interface WorkflowTemplateDeprecate {
|
|
1246
|
+
/**
|
|
1247
|
+
* If true, all in-progress workflows associated with this template will be canceled. This affects the allowVotingOnDeprecatedTemplate setting: when true, voting is disabled on the deprecated template.
|
|
1248
|
+
*/
|
|
1249
|
+
cancelWorkflows?: boolean;
|
|
1250
|
+
}
|
|
1251
|
+
//#endregion
|
|
1252
|
+
//#region generated/openapi/model/workflow-template-update.d.ts
|
|
1253
|
+
interface WorkflowTemplateUpdate {
|
|
1254
|
+
/**
|
|
1255
|
+
* Detailed description of the workflow template
|
|
1256
|
+
*/
|
|
1257
|
+
description?: string;
|
|
1258
|
+
/**
|
|
1259
|
+
* Additional custom metadata for the workflow template
|
|
1260
|
+
*/
|
|
1261
|
+
metadata?: object;
|
|
1262
|
+
approvalRule?: ApprovalRule;
|
|
1263
|
+
/**
|
|
1264
|
+
* Actions to be executed when workflow is approved
|
|
1265
|
+
*/
|
|
1266
|
+
actions?: Array<WorkflowAction>;
|
|
1267
|
+
/**
|
|
1268
|
+
* Default expiry time for workflows created from this template (in hours, max 1 year)
|
|
1269
|
+
*/
|
|
1270
|
+
defaultExpiresInHours?: number;
|
|
1271
|
+
/**
|
|
1272
|
+
* If true, all in-progress workflows associated with this template will be canceled when creating a new version. This affects the allowVotingOnDeprecatedTemplate setting: when true, voting is disabled on the deprecated template.
|
|
1273
|
+
*/
|
|
1274
|
+
cancelWorkflows?: boolean;
|
|
1275
|
+
}
|
|
1276
|
+
//#endregion
|
|
1277
|
+
//#region generated/openapi/model/workflow-vote-request-vote-type.d.ts
|
|
1278
|
+
/**
|
|
1279
|
+
* @type WorkflowVoteRequestVoteType
|
|
1280
|
+
* @export
|
|
1281
|
+
*/
|
|
1282
|
+
type WorkflowVoteRequestVoteType = VoteApprove | VoteVeto | VoteWithdraw;
|
|
1283
|
+
//#endregion
|
|
1284
|
+
//#region generated/openapi/model/workflow-vote-request.d.ts
|
|
1285
|
+
interface WorkflowVoteRequest {
|
|
1286
|
+
/**
|
|
1287
|
+
* Optional reason for the vote. Can be used for approval comments or reject reasons.
|
|
1288
|
+
*/
|
|
1289
|
+
reason?: string;
|
|
1290
|
+
voteType: WorkflowVoteRequestVoteType;
|
|
1291
|
+
}
|
|
1292
|
+
//#endregion
|
|
1293
|
+
//#region src/validators/auth.validators.d.ts
|
|
1294
|
+
type TokenResponseValidationError = "malformed_object" | "missing_access_token" | "invalid_access_token" | "missing_refresh_token" | "invalid_refresh_token";
|
|
1295
|
+
type AgentRegistrationResponseValidationError = "malformed_object" | "missing_agent_id" | "invalid_agent_id" | "missing_agent_name" | "invalid_agent_name" | "missing_public_key" | "invalid_public_key" | "missing_private_key" | "invalid_private_key" | "missing_created_at" | "invalid_created_at";
|
|
1296
|
+
declare function validateTokenResponse(object: unknown): Either<TokenResponseValidationError, TokenResponse>;
|
|
1297
|
+
declare function validateAgentRegistrationResponse(object: unknown): Either<AgentRegistrationResponseValidationError, AgentRegistrationResponse>;
|
|
1298
|
+
type TokenRequestValidationError = "malformed_object" | "missing_code" | "invalid_code" | "missing_state" | "invalid_state";
|
|
1299
|
+
declare function validateTokenRequest(object: unknown): Either<TokenRequestValidationError, TokenRequest>;
|
|
1300
|
+
type RefreshTokenRequestValidationError = "malformed_object" | "missing_refresh_token" | "invalid_refresh_token";
|
|
1301
|
+
declare function validateRefreshTokenRequest(object: unknown): Either<RefreshTokenRequestValidationError, RefreshTokenRequest>;
|
|
1302
|
+
type PrivilegedTokenExchangeRequestValidationError = "malformed_object" | "missing_code" | "invalid_code" | "missing_state" | "invalid_state" | "invalid_resource_id" | "missing_operation" | "invalid_operation";
|
|
1303
|
+
declare function validatePrivilegedTokenExchangeRequest(object: unknown): Either<PrivilegedTokenExchangeRequestValidationError, PrivilegedTokenExchangeRequest>;
|
|
1304
|
+
type PrivilegedTokenResponseValidationError = "malformed_object" | "missing_access_token" | "invalid_access_token";
|
|
1305
|
+
declare function validatePrivilegedTokenResponse(object: unknown): Either<PrivilegedTokenResponseValidationError, PrivilegedTokenResponse>;
|
|
1306
|
+
type InitiateCliLoginRequestValidationError = "malformed_object" | "missing_redirect_uri" | "invalid_redirect_uri";
|
|
1307
|
+
declare function validateInitiateCliLoginRequest(object: unknown): Either<InitiateCliLoginRequestValidationError, InitiateCliLoginRequest>;
|
|
1308
|
+
type InitiateCliLogin200ResponseValidationError = "malformed_object" | "missing_authorization_url" | "invalid_authorization_url";
|
|
1309
|
+
declare function validateInitiateCliLogin200Response(object: unknown): Either<InitiateCliLogin200ResponseValidationError, InitiateCliLogin200Response>;
|
|
1310
|
+
type OidcCallbackRequestValidationError = "malformed_object" | "missing_code" | "invalid_code" | "missing_state" | "invalid_state";
|
|
1311
|
+
declare function validateOidcCallbackRequest(object: unknown): Either<OidcCallbackRequestValidationError, OidcCallbackRequest>;
|
|
1312
|
+
//#endregion
|
|
1313
|
+
//#region src/validators/workflow.validators.d.ts
|
|
1314
|
+
type WorkflowCreateValidationError = "malformed_object" | "missing_name" | "invalid_name" | "invalid_description" | "invalid_metadata" | "missing_workflow_template_id" | "invalid_workflow_template_id";
|
|
1315
|
+
declare function validateWorkflowCreate(object: unknown): Either<WorkflowCreateValidationError, WorkflowCreate>;
|
|
1316
|
+
type WorkflowRefValidationError = "malformed_object" | "invalid_workflow_template";
|
|
1317
|
+
type WorkflowValidationError = "malformed_object" | "missing_id" | "invalid_id" | "missing_name" | "invalid_name" | "invalid_description" | "missing_status" | "invalid_status" | "missing_workflow_template_id" | "invalid_workflow_template_id" | "missing_metadata" | "invalid_metadata" | "invalid_ref" | "missing_created_at" | "invalid_created_at" | "missing_updated_at" | "invalid_updated_at" | "invalid_expires_at";
|
|
1318
|
+
type GetWorkflowParamsValidationError = "malformed_object" | "invalid_include";
|
|
1319
|
+
declare function validateGetWorkflowParams(object: unknown): Either<GetWorkflowParamsValidationError, GetWorkflowParams>;
|
|
1320
|
+
type ListWorkflowsParamsValidationError = "malformed_object" | "invalid_page" | "invalid_limit" | "invalid_include" | "invalid_include_only_non_terminal_state" | "invalid_workflow_template_identifier";
|
|
1321
|
+
declare function validateListWorkflowsParams(object: unknown): Either<ListWorkflowsParamsValidationError, ListWorkflowsParams>;
|
|
1322
|
+
type ListWorkflows200ResponseValidationError = "malformed_object" | "missing_data" | "invalid_data" | "missing_pagination" | "invalid_pagination";
|
|
1323
|
+
declare function validateListWorkflows200Response(object: unknown): Either<ListWorkflows200ResponseValidationError, ListWorkflows200Response>;
|
|
1324
|
+
type VoteApproveValidationError = "malformed_object" | "missing_type" | "invalid_type" | "missing_voted_for_groups" | "invalid_voted_for_groups";
|
|
1325
|
+
type VoteVetoValidationError = "malformed_object" | "missing_type" | "invalid_type";
|
|
1326
|
+
type VoteWithdrawValidationError = "malformed_object" | "missing_type" | "invalid_type";
|
|
1327
|
+
type WorkflowVoteRequestVoteTypeValidationError = "malformed_object" | "invalid_vote_type";
|
|
1328
|
+
type WorkflowVoteRequestValidationError = "malformed_object" | "invalid_reason" | "missing_vote_type" | "invalid_vote_type";
|
|
1329
|
+
declare function validateWorkflowVoteRequest(object: unknown): Either<WorkflowVoteRequestValidationError, WorkflowVoteRequest>;
|
|
1330
|
+
type WorkflowVoteValidationError = "malformed_object" | "missing_voter_id" | "invalid_voter_id" | "missing_voter_type" | "invalid_voter_type" | "missing_vote_type" | "invalid_vote_type" | "invalid_reason" | "missing_timestamp" | "invalid_timestamp" | "invalid_voted_for_groups";
|
|
1331
|
+
type CanVoteResponseValidationError = "malformed_object" | "missing_can_vote" | "invalid_can_vote" | "missing_vote_status" | "invalid_vote_status" | "invalid_cant_vote_reason" | "invalid_require_high_privilege";
|
|
1332
|
+
declare function validateCanVoteResponse(object: unknown): Either<CanVoteResponseValidationError, CanVoteResponse>;
|
|
1333
|
+
type GetWorkflowVotes200ResponseValidationError = "malformed_object" | "missing_votes" | "invalid_votes";
|
|
1334
|
+
declare function validateGetWorkflowVotes200Response(object: unknown): Either<GetWorkflowVotes200ResponseValidationError, GetWorkflowVotes200Response>;
|
|
1335
|
+
//#endregion
|
|
1336
|
+
//#region src/validators/users.validators.d.ts
|
|
1337
|
+
type UserValidationError = "malformed_object" | "missing_id" | "invalid_id" | "missing_display_name" | "invalid_display_name" | "missing_email" | "invalid_email" | "missing_org_role" | "invalid_org_role" | "missing_created_at" | "invalid_created_at";
|
|
1338
|
+
type UserCreateValidationError = "malformed_object" | "missing_display_name" | "invalid_display_name" | "missing_email" | "invalid_email" | "missing_org_role" | "invalid_org_role";
|
|
1339
|
+
type UserSummaryValidationError = "malformed_object" | "missing_id" | "invalid_id" | "missing_display_name" | "invalid_display_name" | "missing_email" | "invalid_email";
|
|
1340
|
+
type ListUsers200ResponseValidationError = "malformed_object" | "missing_users" | "invalid_users" | "missing_pagination" | "invalid_pagination";
|
|
1341
|
+
type RoleScopeValidationError = "malformed_object" | "missing_type" | "invalid_type" | "missing_space_id" | "invalid_space_id" | "missing_group_id" | "invalid_group_id" | "missing_workflow_template_id" | "invalid_workflow_template_id";
|
|
1342
|
+
type RoleOperationItemValidationError = "malformed_object" | "missing_role_name" | "invalid_role_name" | "missing_scope" | "invalid_scope";
|
|
1343
|
+
type RoleOperationRequestValidationError = "malformed_object" | "missing_roles" | "invalid_roles";
|
|
1344
|
+
declare function validateUser(object: unknown): Either<UserValidationError, User>;
|
|
1345
|
+
declare function validateUserCreate(object: unknown): Either<UserCreateValidationError, UserCreate>;
|
|
1346
|
+
declare function validateListUsers200Response(object: unknown): Either<ListUsers200ResponseValidationError, ListUsers200Response>;
|
|
1347
|
+
declare function validateRoleAssignmentRequest(object: unknown): Either<RoleOperationRequestValidationError, RoleAssignmentRequest>;
|
|
1348
|
+
declare function validateRoleRemovalRequest(object: unknown): Either<RoleOperationRequestValidationError, RoleRemovalRequest>;
|
|
1349
|
+
//#endregion
|
|
1350
|
+
//#region src/validators/workflow-templates.validators.d.ts
|
|
1351
|
+
type ValidationError = string;
|
|
1352
|
+
declare function validateWorkflowTemplate(object: unknown): Either<ValidationError, WorkflowTemplate>;
|
|
1353
|
+
declare function validateWorkflowTemplateCreate(object: unknown): Either<ValidationError, WorkflowTemplateCreate>;
|
|
1354
|
+
declare function validateWorkflowTemplateUpdate(object: unknown): Either<ValidationError, WorkflowTemplateUpdate>;
|
|
1355
|
+
declare function validateWorkflowTemplateDeprecate(object: unknown): Either<ValidationError, WorkflowTemplateDeprecate>;
|
|
1356
|
+
declare function validateWorkflowTemplateScope(object: unknown): Either<ValidationError, WorkflowTemplateScope>;
|
|
1357
|
+
declare function validateListWorkflowTemplates200Response(object: unknown): Either<ValidationError, ListWorkflowTemplates200Response>;
|
|
1358
|
+
declare function validateListWorkflowTemplatesParams(object: unknown): Either<ValidationError, ListWorkflowTemplatesParams>;
|
|
1359
|
+
//#endregion
|
|
1360
|
+
//#region src/validators/common.validators.d.ts
|
|
1361
|
+
type PaginationValidationError = "malformed_object" | "missing_total" | "invalid_total" | "missing_page" | "invalid_page" | "missing_limit" | "invalid_limit";
|
|
1362
|
+
declare function validatePagination(object: unknown): Either<PaginationValidationError, Pagination>;
|
|
1363
|
+
type APIErrorDetailsInnerValidationError = "malformed_object" | "invalid_field" | "invalid_message";
|
|
1364
|
+
type APIErrorValidationError = "malformed_object" | "invalid_code" | "invalid_message" | "invalid_details";
|
|
1365
|
+
declare function validateAPIError(object: unknown): Either<APIErrorValidationError, APIError>;
|
|
1366
|
+
type HealthResponseValidationError = "malformed_object" | "missing_status" | "invalid_status" | "invalid_message";
|
|
1367
|
+
declare function validateHealthResponse(object: unknown): Either<HealthResponseValidationError, HealthResponse>;
|
|
1368
|
+
type GetEntityInfo200ResponseValidationError = "malformed_object" | "missing_entity_type" | "invalid_entity_type" | "missing_groups" | "invalid_groups";
|
|
1369
|
+
declare function validateGetEntityInfo200Response(object: unknown): Either<GetEntityInfo200ResponseValidationError, GetEntityInfo200Response>;
|
|
1370
|
+
//#endregion
|
|
1371
|
+
//#region src/validators/spaces.validators.d.ts
|
|
1372
|
+
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";
|
|
1373
|
+
type SpaceCreateValidationError = "malformed_object" | "missing_name" | "invalid_name" | "invalid_description";
|
|
1374
|
+
declare function validateSpaceCreate(object: unknown): Either<SpaceCreateValidationError, SpaceCreate>;
|
|
1375
|
+
type ListSpaces200ResponseValidationError = "malformed_object" | "missing_data" | "invalid_data" | "missing_pagination" | "invalid_pagination";
|
|
1376
|
+
declare function validateListSpaces200Response(object: unknown): Either<ListSpaces200ResponseValidationError, ListSpaces200Response>;
|
|
1377
|
+
type SpaceScopeValidationError = "malformed_object" | "missing_type" | "invalid_type" | "missing_space_id" | "invalid_space_id";
|
|
1378
|
+
declare function validateSpaceScope(object: unknown): Either<SpaceScopeValidationError, SpaceScope>;
|
|
1379
|
+
//#endregion
|
|
1380
|
+
//#region src/validators/groups.validators.d.ts
|
|
1381
|
+
type GroupValidationError = "malformed_object" | "missing_id" | "invalid_id" | "missing_name" | "invalid_name" | "invalid_description" | "missing_entities_count" | "invalid_entities_count" | "missing_created_at" | "invalid_created_at" | "missing_updated_at" | "invalid_updated_at";
|
|
1382
|
+
type GroupCreateValidationError = "malformed_object" | "missing_name" | "invalid_name" | "invalid_description";
|
|
1383
|
+
declare function validateGroupCreate(object: unknown): Either<GroupCreateValidationError, GroupCreate>;
|
|
1384
|
+
type ListGroups200ResponseValidationError = "malformed_object" | "missing_groups" | "invalid_groups" | "missing_pagination" | "invalid_pagination";
|
|
1385
|
+
declare function validateListGroups200Response(object: unknown): Either<ListGroups200ResponseValidationError, ListGroups200Response>;
|
|
1386
|
+
type GroupScopeValidationError = "malformed_object" | "missing_type" | "invalid_type" | "missing_group_id" | "invalid_group_id";
|
|
1387
|
+
declare function validateGroupScope(object: unknown): Either<GroupScopeValidationError, GroupScope>;
|
|
1388
|
+
type GroupInfoValidationError = "malformed_object" | "missing_group_id" | "invalid_group_id" | "missing_group_name" | "invalid_group_name";
|
|
1389
|
+
declare function validateGroupInfo(object: unknown): Either<GroupInfoValidationError, GroupInfo>;
|
|
1390
|
+
type EntityReferenceValidationError = "malformed_object" | "missing_entity_type" | "invalid_entity_type" | "missing_entity_id" | "invalid_entity_id";
|
|
1391
|
+
type GroupMembershipValidationError = "malformed_object" | "missing_entity" | "invalid_entity" | "missing_added_at" | "invalid_added_at";
|
|
1392
|
+
type EntityMembershipAddValidationError = "malformed_object" | "missing_entity" | "invalid_entity";
|
|
1393
|
+
type EntityMembershipRemoveValidationError = "malformed_object" | "missing_entity" | "invalid_entity";
|
|
1394
|
+
type AddGroupEntitiesRequestValidationError = "malformed_object" | "missing_entities" | "invalid_entities";
|
|
1395
|
+
declare function validateAddGroupEntitiesRequest(object: unknown): Either<AddGroupEntitiesRequestValidationError, AddGroupEntitiesRequest>;
|
|
1396
|
+
type RemoveGroupEntitiesRequestValidationError = "malformed_object" | "missing_entities" | "invalid_entities";
|
|
1397
|
+
declare function validateRemoveGroupEntitiesRequest(object: unknown): Either<RemoveGroupEntitiesRequestValidationError, RemoveGroupEntitiesRequest>;
|
|
1398
|
+
type ListGroupEntities200ResponseValidationError = "malformed_object" | "missing_entities" | "invalid_entities" | "missing_pagination" | "invalid_pagination";
|
|
1399
|
+
declare function validateListGroupEntities200Response(object: unknown): Either<ListGroupEntities200ResponseValidationError, ListGroupEntities200Response>;
|
|
1400
|
+
//#endregion
|
|
1401
|
+
//#region src/validators/agents.validators.d.ts
|
|
1402
|
+
type AgentSummaryValidationError = "malformed_object" | "missing_id" | "invalid_id" | "missing_name" | "invalid_name";
|
|
1403
|
+
type AgentRegistrationRequestValidationError = "malformed_object" | "missing_agent_name" | "invalid_agent_name";
|
|
1404
|
+
declare function validateAgentRegistrationRequest(object: unknown): Either<AgentRegistrationRequestValidationError, AgentRegistrationRequest>;
|
|
1405
|
+
type AgentChallengeRequestValidationError = "malformed_object" | "missing_agent_name" | "invalid_agent_name";
|
|
1406
|
+
declare function validateAgentChallengeRequest(object: unknown): Either<AgentChallengeRequestValidationError, AgentChallengeRequest>;
|
|
1407
|
+
type AgentChallengeResponseValidationError = "malformed_object" | "missing_challenge" | "invalid_challenge";
|
|
1408
|
+
declare function validateAgentChallengeResponse(object: unknown): Either<AgentChallengeResponseValidationError, AgentChallengeResponse>;
|
|
1409
|
+
type AgentTokenRequestValidationError = "malformed_object" | "missing_grant_type" | "invalid_grant_type" | "missing_client_assertion_type" | "invalid_client_assertion_type" | "missing_client_assertion" | "invalid_client_assertion";
|
|
1410
|
+
declare function validateAgentTokenRequest(object: unknown): Either<AgentTokenRequestValidationError, AgentTokenRequest>;
|
|
1411
|
+
type AgentTokenResponseValidationError = "malformed_object" | "missing_access_token" | "invalid_access_token" | "missing_refresh_token" | "invalid_refresh_token";
|
|
1412
|
+
declare function validateAgentTokenResponse(object: unknown): Either<AgentTokenResponseValidationError, AgentTokenResponse>;
|
|
1413
|
+
type ListAgentsParamsValidationError = "malformed_object" | "invalid_page" | "invalid_limit";
|
|
1414
|
+
declare function validateListAgentsParams(object: unknown): Either<ListAgentsParamsValidationError, ListAgentsParams>;
|
|
1415
|
+
type ListAgents200ResponseValidationError = "malformed_object" | "missing_agents" | "invalid_agents" | "missing_pagination" | "invalid_pagination";
|
|
1416
|
+
declare function validateListAgents200Response(object: unknown): Either<ListAgents200ResponseValidationError, ListAgents200Response>;
|
|
1417
|
+
type AgentGet200ResponseValidationError = "malformed_object" | "missing_id" | "invalid_id" | "missing_agent_name" | "invalid_agent_name" | "missing_public_key" | "invalid_public_key" | "missing_created_at" | "invalid_created_at";
|
|
1418
|
+
declare function validateAgentGet200Response(object: unknown): Either<AgentGet200ResponseValidationError, AgentGet200Response>;
|
|
1419
|
+
//#endregion
|
|
1420
|
+
//#region src/validators/organization-admins.validators.d.ts
|
|
1421
|
+
type OrganizationAdminValidationError = "malformed_object" | "missing_user_id" | "invalid_user_id" | "missing_email" | "invalid_email" | "missing_created_at" | "invalid_created_at";
|
|
1422
|
+
type OrganizationAdminCreateValidationError = "malformed_object" | "missing_email" | "invalid_email";
|
|
1423
|
+
declare function validateOrganizationAdminCreate(object: unknown): Either<OrganizationAdminCreateValidationError, OrganizationAdminCreate>;
|
|
1424
|
+
type OrganizationAdminRemoveValidationError = "malformed_object" | "missing_user_id" | "invalid_user_id";
|
|
1425
|
+
declare function validateOrganizationAdminRemove(object: unknown): Either<OrganizationAdminRemoveValidationError, OrganizationAdminRemove>;
|
|
1426
|
+
type ListOrganizationAdminsForOrg200ResponseValidationError = "malformed_object" | "missing_data" | "invalid_data" | "missing_pagination" | "invalid_pagination";
|
|
1427
|
+
declare function validateListOrganizationAdminsForOrg200Response(object: unknown): Either<ListOrganizationAdminsForOrg200ResponseValidationError, ListOrganizationAdminsForOrg200Response>;
|
|
1428
|
+
//#endregion
|
|
1429
|
+
//#region src/validators/roles.validators.d.ts
|
|
1430
|
+
type RoleTemplateValidationError = "malformed_object" | "missing_name" | "invalid_name" | "missing_permissions" | "invalid_permissions" | "missing_scope" | "invalid_scope";
|
|
1431
|
+
type ListRoleTemplates200ResponseValidationError = "malformed_object" | "missing_roles" | "invalid_roles";
|
|
1432
|
+
declare function validateListRoleTemplates200Response(object: unknown): Either<ListRoleTemplates200ResponseValidationError, ListRoleTemplates200Response>;
|
|
1433
|
+
//#endregion
|
|
1434
|
+
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, ListOrganizationAdminsForOrg200Response, ListOrganizationAdminsForOrg200ResponseValidationError, ListRoleTemplates200Response, ListRoleTemplates200ResponseValidationError, ListSpaces200Response, ListSpaces200ResponseValidationError, ListUsers200Response, ListUsers200ResponseValidationError, 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, ValidationError, VoteApprove, VoteApproveValidationError, VoteVeto, VoteVetoValidationError, VoteWithdraw, VoteWithdrawValidationError, WebhookAction, Workflow, WorkflowAction, WorkflowCreate, WorkflowCreateValidationError, WorkflowRef, WorkflowRefValidationError, WorkflowTemplate, WorkflowTemplateCreate, WorkflowTemplateDeprecate, WorkflowTemplateScope, WorkflowTemplateSummary, WorkflowTemplateUpdate, WorkflowValidationError, WorkflowVote, WorkflowVoteRequest, WorkflowVoteRequestValidationError, WorkflowVoteRequestVoteType, WorkflowVoteRequestVoteTypeValidationError, WorkflowVoteValidationError, validateAPIError, validateAddGroupEntitiesRequest, validateAgentChallengeRequest, validateAgentChallengeResponse, validateAgentGet200Response, validateAgentRegistrationRequest, validateAgentRegistrationResponse, validateAgentTokenRequest, validateAgentTokenResponse, validateCanVoteResponse, validateGetEntityInfo200Response, validateGetWorkflowParams, validateGetWorkflowVotes200Response, validateGroupCreate, validateGroupInfo, validateGroupScope, validateHealthResponse, validateInitiateCliLogin200Response, validateInitiateCliLoginRequest, validateListAgents200Response, validateListAgentsParams, validateListGroupEntities200Response, validateListGroups200Response, validateListOrganizationAdminsForOrg200Response, validateListRoleTemplates200Response, validateListSpaces200Response, validateListUsers200Response, validateListWorkflowTemplates200Response, validateListWorkflowTemplatesParams, validateListWorkflows200Response, validateListWorkflowsParams, validateOidcCallbackRequest, validateOrganizationAdminCreate, validateOrganizationAdminRemove, validatePagination, validatePrivilegedTokenExchangeRequest, validatePrivilegedTokenResponse, validateRefreshTokenRequest, validateRemoveGroupEntitiesRequest, validateRoleAssignmentRequest, validateRoleRemovalRequest, validateSpaceCreate, validateSpaceScope, validateTokenRequest, validateTokenResponse, validateUser, validateUserCreate, validateWorkflowCreate, validateWorkflowTemplate, validateWorkflowTemplateCreate, validateWorkflowTemplateDeprecate, validateWorkflowTemplateScope, validateWorkflowTemplateUpdate, validateWorkflowVoteRequest };
|