@approvio/api 0.0.31 → 0.0.32

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.
@@ -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-Dgj7wWZs.cjs";
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-c9jqkg6v.cjs";
2
2
 
3
3
  //#region mocks/user.fixtures.d.ts
4
4
  declare const MOCK_USER_ID = "e6e08687-2189-4710-91b5-479cd25a9119";
@@ -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-DVgNnx0X.mjs";
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-CtzZubWu.mjs";
2
2
 
3
3
  //#region mocks/user.fixtures.d.ts
4
4
  declare const MOCK_USER_ID = "e6e08687-2189-4710-91b5-479cd25a9119";
@@ -1,5 +1,31 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region \0rolldown/runtime.js
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
11
+ key = keys[i];
12
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
13
+ get: ((k) => from[k]).bind(null, key),
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
20
+ value: mod,
21
+ enumerable: true
22
+ }) : target, mod));
23
+ //#endregion
2
24
  let fp_ts_Either = require("fp-ts/Either");
25
+ fp_ts_Either = __toESM(fp_ts_Either);
26
+ let fp_ts_function = require("fp-ts/function");
27
+ let fp_ts_Array = require("fp-ts/Array");
28
+ fp_ts_Array = __toESM(fp_ts_Array);
3
29
  //#region generated/openapi/model/agent-token-request.ts
4
30
  let AgentTokenRequest;
5
31
  (function(_AgentTokenRequest) {
@@ -351,42 +377,6 @@ function validatePagination(object) {
351
377
  limit: object.limit
352
378
  });
353
379
  }
354
- function validateAPIErrorDetailsInner(object) {
355
- if (typeof object !== "object" || object === null) return (0, fp_ts_Either.left)("malformed_object");
356
- const result = {};
357
- if (hasOwnProperty(object, "field") && object.field !== void 0) {
358
- if (typeof object.field !== "string") return (0, fp_ts_Either.left)("invalid_field");
359
- result.field = object.field;
360
- }
361
- if (hasOwnProperty(object, "message") && object.message !== void 0) {
362
- if (typeof object.message !== "string") return (0, fp_ts_Either.left)("invalid_message");
363
- result.message = object.message;
364
- }
365
- return (0, fp_ts_Either.right)(result);
366
- }
367
- function validateAPIError(object) {
368
- if (typeof object !== "object" || object === null) return (0, fp_ts_Either.left)("malformed_object");
369
- const result = {};
370
- if (hasOwnProperty(object, "code") && object.code !== void 0) {
371
- if (typeof object.code !== "string") return (0, fp_ts_Either.left)("invalid_code");
372
- result.code = object.code;
373
- }
374
- if (hasOwnProperty(object, "message") && object.message !== void 0) {
375
- if (typeof object.message !== "string") return (0, fp_ts_Either.left)("invalid_message");
376
- result.message = object.message;
377
- }
378
- if (hasOwnProperty(object, "details") && object.details !== void 0) {
379
- if (!isArray(object.details)) return (0, fp_ts_Either.left)("invalid_details");
380
- const details = [];
381
- for (const item of object.details) {
382
- const validatedItem = validateAPIErrorDetailsInner(item);
383
- if ((0, fp_ts_Either.isLeft)(validatedItem)) return (0, fp_ts_Either.left)("invalid_details");
384
- details.push(validatedItem.right);
385
- }
386
- result.details = details;
387
- }
388
- return (0, fp_ts_Either.right)(result);
389
- }
390
380
  function validateHealthResponse(object) {
391
381
  if (typeof object !== "object" || object === null) return (0, fp_ts_Either.left)("malformed_object");
392
382
  if (!hasOwnProperty(object, "status") || !isNonEmptyString(object.status)) return (0, fp_ts_Either.left)(hasOwnProperty(object, "status") ? "invalid_status" : "missing_status");
@@ -1354,6 +1344,41 @@ function validateListRoleTemplates200Response(object) {
1354
1344
  return (0, fp_ts_Either.right)({ roles });
1355
1345
  }
1356
1346
  //#endregion
1347
+ //#region src/validators/api-error.validators.ts
1348
+ function validateAPIErrorDetailsInner(object) {
1349
+ if (typeof object !== "object" || object === null) return (0, fp_ts_Either.left)("malformed_details");
1350
+ if (!hasOwnProperty(object, "field")) return (0, fp_ts_Either.left)("missing_code");
1351
+ if (!isNonEmptyString(object.field)) return (0, fp_ts_Either.left)("invalid_code");
1352
+ if (!hasOwnProperty(object, "message")) return (0, fp_ts_Either.left)("missing_message");
1353
+ if (!isNonEmptyString(object.message)) return (0, fp_ts_Either.left)("invalid_message");
1354
+ return (0, fp_ts_Either.right)({
1355
+ field: object.field,
1356
+ message: object.message
1357
+ });
1358
+ }
1359
+ function validateAPIError(object) {
1360
+ if (typeof object !== "object" || object === null) return (0, fp_ts_Either.left)("malformed_object");
1361
+ if (!hasOwnProperty(object, "code")) return (0, fp_ts_Either.left)("missing_code");
1362
+ if (!isNonEmptyString(object.code)) return (0, fp_ts_Either.left)("invalid_code");
1363
+ if (!hasOwnProperty(object, "message")) return (0, fp_ts_Either.left)("missing_message");
1364
+ if (!isNonEmptyString(object.message)) return (0, fp_ts_Either.left)("invalid_message");
1365
+ let details = void 0;
1366
+ if (hasOwnProperty(object, "details")) {
1367
+ if (!Array.isArray(object.details)) return (0, fp_ts_Either.left)("malformed_object");
1368
+ const eitherDetails = (0, fp_ts_function.pipe)(object.details, fp_ts_Array.map(validateAPIErrorDetailsInner), fp_ts_Array.sequence(fp_ts_Either.Applicative));
1369
+ if (fp_ts_Either.isLeft(eitherDetails)) return eitherDetails;
1370
+ details = eitherDetails.right;
1371
+ }
1372
+ return (0, fp_ts_Either.right)({
1373
+ code: object.code,
1374
+ message: object.message,
1375
+ details
1376
+ });
1377
+ }
1378
+ function isAPIError(object) {
1379
+ return fp_ts_Either.isRight(validateAPIError(object));
1380
+ }
1381
+ //#endregion
1357
1382
  Object.defineProperty(exports, "AgentTokenRequest", {
1358
1383
  enumerable: true,
1359
1384
  get: function() {
@@ -1438,6 +1463,7 @@ Object.defineProperty(exports, "WorkflowTemplateScope", {
1438
1463
  return WorkflowTemplateScope;
1439
1464
  }
1440
1465
  });
1466
+ exports.isAPIError = isAPIError;
1441
1467
  exports.validateAPIError = validateAPIError;
1442
1468
  exports.validateAddGroupEntitiesRequest = validateAddGroupEntitiesRequest;
1443
1469
  exports.validateAgentChallengeRequest = validateAgentChallengeRequest;
@@ -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-Dgj7wWZs.cjs";
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-c9jqkg6v.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.29
9
+ * The version of the OpenAPI document: 0.0.30
10
10
  *
11
11
  *
12
12
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -14,8 +14,8 @@ import { Either } from "fp-ts/Either";
14
14
  * Do not edit the class manually.
15
15
  */
16
16
  interface APIErrorDetailsInner {
17
- field?: string;
18
- message?: string;
17
+ field: string;
18
+ message: string;
19
19
  }
20
20
  //#endregion
21
21
  //#region generated/openapi/model/api-error.d.ts
@@ -23,11 +23,11 @@ interface APIError {
23
23
  /**
24
24
  * Error code
25
25
  */
26
- code?: string;
26
+ code: string;
27
27
  /**
28
28
  * Error message
29
29
  */
30
- message?: string;
30
+ message: string;
31
31
  details?: Array<APIErrorDetailsInner>;
32
32
  }
33
33
  //#endregion
@@ -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.29
39
+ * The version of the OpenAPI document: 0.0.30
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.29
78
+ * The version of the OpenAPI document: 0.0.30
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.29
97
+ * The version of the OpenAPI document: 0.0.30
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.29
116
+ * The version of the OpenAPI document: 0.0.30
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.29
147
+ * The version of the OpenAPI document: 0.0.30
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.29
166
+ * The version of the OpenAPI document: 0.0.30
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.29
201
+ * The version of the OpenAPI document: 0.0.30
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.29
224
+ * The version of the OpenAPI document: 0.0.30
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.29
261
+ * The version of the OpenAPI document: 0.0.30
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.29
284
+ * The version of the OpenAPI document: 0.0.30
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.29
329
+ * The version of the OpenAPI document: 0.0.30
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.29
348
+ * The version of the OpenAPI document: 0.0.30
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.29
392
+ * The version of the OpenAPI document: 0.0.30
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.29
424
+ * The version of the OpenAPI document: 0.0.30
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.29
456
+ * The version of the OpenAPI document: 0.0.30
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.29
479
+ * The version of the OpenAPI document: 0.0.30
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.29
495
+ * The version of the OpenAPI document: 0.0.30
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.29
520
+ * The version of the OpenAPI document: 0.0.30
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.29
549
+ * The version of the OpenAPI document: 0.0.30
550
550
  *
551
551
  *
552
552
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -579,7 +579,7 @@ interface ListOrganizationAdminsForOrg200Response {
579
579
  * Workflow Approval System API
580
580
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
581
581
  *
582
- * The version of the OpenAPI document: 0.0.29
582
+ * The version of the OpenAPI document: 0.0.30
583
583
  *
584
584
  *
585
585
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -611,7 +611,7 @@ interface ListRoleTemplates200Response {
611
611
  * Workflow Approval System API
612
612
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
613
613
  *
614
- * The version of the OpenAPI document: 0.0.29
614
+ * The version of the OpenAPI document: 0.0.30
615
615
  *
616
616
  *
617
617
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -658,7 +658,7 @@ interface ListUsers200Response {
658
658
  * Workflow Approval System API
659
659
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
660
660
  *
661
- * The version of the OpenAPI document: 0.0.29
661
+ * The version of the OpenAPI document: 0.0.30
662
662
  *
663
663
  *
664
664
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -703,7 +703,7 @@ interface ListWorkflowTemplates200Response {
703
703
  * Workflow Approval System API
704
704
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
705
705
  *
706
- * The version of the OpenAPI document: 0.0.29
706
+ * The version of the OpenAPI document: 0.0.30
707
707
  *
708
708
  *
709
709
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -730,7 +730,7 @@ interface ListWorkflowTemplatesParams {
730
730
  * Workflow Approval System API
731
731
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
732
732
  *
733
- * The version of the OpenAPI document: 0.0.29
733
+ * The version of the OpenAPI document: 0.0.30
734
734
  *
735
735
  *
736
736
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -765,7 +765,7 @@ interface ListWorkflowsParams {
765
765
  * Workflow Approval System API
766
766
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
767
767
  *
768
- * The version of the OpenAPI document: 0.0.29
768
+ * The version of the OpenAPI document: 0.0.30
769
769
  *
770
770
  *
771
771
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -788,7 +788,7 @@ interface OidcCallbackRequest {
788
788
  * Workflow Approval System API
789
789
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
790
790
  *
791
- * The version of the OpenAPI document: 0.0.29
791
+ * The version of the OpenAPI document: 0.0.30
792
792
  *
793
793
  *
794
794
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -816,7 +816,7 @@ declare namespace OrgScope {
816
816
  * Workflow Approval System API
817
817
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
818
818
  *
819
- * The version of the OpenAPI document: 0.0.29
819
+ * The version of the OpenAPI document: 0.0.30
820
820
  *
821
821
  *
822
822
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -835,7 +835,7 @@ interface OrganizationAdminCreate {
835
835
  * Workflow Approval System API
836
836
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
837
837
  *
838
- * The version of the OpenAPI document: 0.0.29
838
+ * The version of the OpenAPI document: 0.0.30
839
839
  *
840
840
  *
841
841
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -854,7 +854,7 @@ interface OrganizationAdminRemove {
854
854
  * Workflow Approval System API
855
855
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
856
856
  *
857
- * The version of the OpenAPI document: 0.0.29
857
+ * The version of the OpenAPI document: 0.0.30
858
858
  *
859
859
  *
860
860
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -885,7 +885,7 @@ interface PrivilegedTokenExchangeRequest {
885
885
  * Workflow Approval System API
886
886
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
887
887
  *
888
- * The version of the OpenAPI document: 0.0.29
888
+ * The version of the OpenAPI document: 0.0.30
889
889
  *
890
890
  *
891
891
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -904,7 +904,7 @@ interface PrivilegedTokenResponse {
904
904
  * Workflow Approval System API
905
905
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
906
906
  *
907
- * The version of the OpenAPI document: 0.0.29
907
+ * The version of the OpenAPI document: 0.0.30
908
908
  *
909
909
  *
910
910
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -934,7 +934,7 @@ interface RemoveGroupEntitiesRequest {
934
934
  * Workflow Approval System API
935
935
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
936
936
  *
937
- * The version of the OpenAPI document: 0.0.29
937
+ * The version of the OpenAPI document: 0.0.30
938
938
  *
939
939
  *
940
940
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -966,7 +966,7 @@ declare namespace SpaceScope {
966
966
  * Workflow Approval System API
967
967
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
968
968
  *
969
- * The version of the OpenAPI document: 0.0.29
969
+ * The version of the OpenAPI document: 0.0.30
970
970
  *
971
971
  *
972
972
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1054,7 +1054,7 @@ interface RoleRemovalRequest {
1054
1054
  * Workflow Approval System API
1055
1055
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
1056
1056
  *
1057
- * The version of the OpenAPI document: 0.0.29
1057
+ * The version of the OpenAPI document: 0.0.30
1058
1058
  *
1059
1059
  *
1060
1060
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1077,7 +1077,7 @@ interface SpaceCreate {
1077
1077
  * Workflow Approval System API
1078
1078
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
1079
1079
  *
1080
- * The version of the OpenAPI document: 0.0.29
1080
+ * The version of the OpenAPI document: 0.0.30
1081
1081
  *
1082
1082
  *
1083
1083
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1100,7 +1100,7 @@ interface TokenRequest {
1100
1100
  * Workflow Approval System API
1101
1101
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
1102
1102
  *
1103
- * The version of the OpenAPI document: 0.0.29
1103
+ * The version of the OpenAPI document: 0.0.30
1104
1104
  *
1105
1105
  *
1106
1106
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1127,7 +1127,7 @@ interface UserCreate {
1127
1127
  * Workflow Approval System API
1128
1128
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
1129
1129
  *
1130
- * The version of the OpenAPI document: 0.0.29
1130
+ * The version of the OpenAPI document: 0.0.30
1131
1131
  *
1132
1132
  *
1133
1133
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1156,7 +1156,7 @@ declare namespace VoteApprove {
1156
1156
  * Workflow Approval System API
1157
1157
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
1158
1158
  *
1159
- * The version of the OpenAPI document: 0.0.29
1159
+ * The version of the OpenAPI document: 0.0.30
1160
1160
  *
1161
1161
  *
1162
1162
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1181,7 +1181,7 @@ declare namespace VoteVeto {
1181
1181
  * Workflow Approval System API
1182
1182
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
1183
1183
  *
1184
- * The version of the OpenAPI document: 0.0.29
1184
+ * The version of the OpenAPI document: 0.0.30
1185
1185
  *
1186
1186
  *
1187
1187
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1235,7 +1235,7 @@ interface WorkflowTemplateCreate {
1235
1235
  * Workflow Approval System API
1236
1236
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
1237
1237
  *
1238
- * The version of the OpenAPI document: 0.0.29
1238
+ * The version of the OpenAPI document: 0.0.30
1239
1239
  *
1240
1240
  *
1241
1241
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1361,8 +1361,6 @@ declare function validateListWorkflowTemplatesParams(object: unknown): Either<Va
1361
1361
  type PaginationValidationError = "malformed_object" | "missing_total" | "invalid_total" | "missing_page" | "invalid_page" | "missing_limit" | "invalid_limit";
1362
1362
  declare function validatePagination(object: unknown): Either<PaginationValidationError, Pagination>;
1363
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
1364
  type HealthResponseValidationError = "malformed_object" | "missing_status" | "invalid_status" | "invalid_message";
1367
1365
  declare function validateHealthResponse(object: unknown): Either<HealthResponseValidationError, HealthResponse>;
1368
1366
  type GetEntityInfo200ResponseValidationError = "malformed_object" | "missing_entity_type" | "invalid_entity_type" | "missing_groups" | "invalid_groups";
@@ -1431,4 +1429,9 @@ type RoleTemplateValidationError = "malformed_object" | "missing_name" | "invali
1431
1429
  type ListRoleTemplates200ResponseValidationError = "malformed_object" | "missing_roles" | "invalid_roles";
1432
1430
  declare function validateListRoleTemplates200Response(object: unknown): Either<ListRoleTemplates200ResponseValidationError, ListRoleTemplates200Response>;
1433
1431
  //#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 };
1432
+ //#region src/validators/api-error.validators.d.ts
1433
+ type APIErrorValidationError = "malformed_object" | "missing_code" | "invalid_code" | "missing_message" | "invalid_message" | "malformed_details";
1434
+ declare function validateAPIError(object: unknown): Either<APIErrorValidationError, APIError>;
1435
+ declare function isAPIError(object: unknown): object is APIError;
1436
+ //#endregion
1437
+ 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, isAPIError, 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 };
@@ -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-DVgNnx0X.mjs";
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-CtzZubWu.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.29
9
+ * The version of the OpenAPI document: 0.0.30
10
10
  *
11
11
  *
12
12
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -14,8 +14,8 @@ import { Either } from "fp-ts/Either";
14
14
  * Do not edit the class manually.
15
15
  */
16
16
  interface APIErrorDetailsInner {
17
- field?: string;
18
- message?: string;
17
+ field: string;
18
+ message: string;
19
19
  }
20
20
  //#endregion
21
21
  //#region generated/openapi/model/api-error.d.ts
@@ -23,11 +23,11 @@ interface APIError {
23
23
  /**
24
24
  * Error code
25
25
  */
26
- code?: string;
26
+ code: string;
27
27
  /**
28
28
  * Error message
29
29
  */
30
- message?: string;
30
+ message: string;
31
31
  details?: Array<APIErrorDetailsInner>;
32
32
  }
33
33
  //#endregion
@@ -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.29
39
+ * The version of the OpenAPI document: 0.0.30
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.29
78
+ * The version of the OpenAPI document: 0.0.30
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.29
97
+ * The version of the OpenAPI document: 0.0.30
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.29
116
+ * The version of the OpenAPI document: 0.0.30
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.29
147
+ * The version of the OpenAPI document: 0.0.30
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.29
166
+ * The version of the OpenAPI document: 0.0.30
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.29
201
+ * The version of the OpenAPI document: 0.0.30
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.29
224
+ * The version of the OpenAPI document: 0.0.30
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.29
261
+ * The version of the OpenAPI document: 0.0.30
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.29
284
+ * The version of the OpenAPI document: 0.0.30
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.29
329
+ * The version of the OpenAPI document: 0.0.30
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.29
348
+ * The version of the OpenAPI document: 0.0.30
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.29
392
+ * The version of the OpenAPI document: 0.0.30
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.29
424
+ * The version of the OpenAPI document: 0.0.30
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.29
456
+ * The version of the OpenAPI document: 0.0.30
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.29
479
+ * The version of the OpenAPI document: 0.0.30
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.29
495
+ * The version of the OpenAPI document: 0.0.30
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.29
520
+ * The version of the OpenAPI document: 0.0.30
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.29
549
+ * The version of the OpenAPI document: 0.0.30
550
550
  *
551
551
  *
552
552
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -579,7 +579,7 @@ interface ListOrganizationAdminsForOrg200Response {
579
579
  * Workflow Approval System API
580
580
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
581
581
  *
582
- * The version of the OpenAPI document: 0.0.29
582
+ * The version of the OpenAPI document: 0.0.30
583
583
  *
584
584
  *
585
585
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -611,7 +611,7 @@ interface ListRoleTemplates200Response {
611
611
  * Workflow Approval System API
612
612
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
613
613
  *
614
- * The version of the OpenAPI document: 0.0.29
614
+ * The version of the OpenAPI document: 0.0.30
615
615
  *
616
616
  *
617
617
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -658,7 +658,7 @@ interface ListUsers200Response {
658
658
  * Workflow Approval System API
659
659
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
660
660
  *
661
- * The version of the OpenAPI document: 0.0.29
661
+ * The version of the OpenAPI document: 0.0.30
662
662
  *
663
663
  *
664
664
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -703,7 +703,7 @@ interface ListWorkflowTemplates200Response {
703
703
  * Workflow Approval System API
704
704
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
705
705
  *
706
- * The version of the OpenAPI document: 0.0.29
706
+ * The version of the OpenAPI document: 0.0.30
707
707
  *
708
708
  *
709
709
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -730,7 +730,7 @@ interface ListWorkflowTemplatesParams {
730
730
  * Workflow Approval System API
731
731
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
732
732
  *
733
- * The version of the OpenAPI document: 0.0.29
733
+ * The version of the OpenAPI document: 0.0.30
734
734
  *
735
735
  *
736
736
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -765,7 +765,7 @@ interface ListWorkflowsParams {
765
765
  * Workflow Approval System API
766
766
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
767
767
  *
768
- * The version of the OpenAPI document: 0.0.29
768
+ * The version of the OpenAPI document: 0.0.30
769
769
  *
770
770
  *
771
771
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -788,7 +788,7 @@ interface OidcCallbackRequest {
788
788
  * Workflow Approval System API
789
789
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
790
790
  *
791
- * The version of the OpenAPI document: 0.0.29
791
+ * The version of the OpenAPI document: 0.0.30
792
792
  *
793
793
  *
794
794
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -816,7 +816,7 @@ declare namespace OrgScope {
816
816
  * Workflow Approval System API
817
817
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
818
818
  *
819
- * The version of the OpenAPI document: 0.0.29
819
+ * The version of the OpenAPI document: 0.0.30
820
820
  *
821
821
  *
822
822
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -835,7 +835,7 @@ interface OrganizationAdminCreate {
835
835
  * Workflow Approval System API
836
836
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
837
837
  *
838
- * The version of the OpenAPI document: 0.0.29
838
+ * The version of the OpenAPI document: 0.0.30
839
839
  *
840
840
  *
841
841
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -854,7 +854,7 @@ interface OrganizationAdminRemove {
854
854
  * Workflow Approval System API
855
855
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
856
856
  *
857
- * The version of the OpenAPI document: 0.0.29
857
+ * The version of the OpenAPI document: 0.0.30
858
858
  *
859
859
  *
860
860
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -885,7 +885,7 @@ interface PrivilegedTokenExchangeRequest {
885
885
  * Workflow Approval System API
886
886
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
887
887
  *
888
- * The version of the OpenAPI document: 0.0.29
888
+ * The version of the OpenAPI document: 0.0.30
889
889
  *
890
890
  *
891
891
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -904,7 +904,7 @@ interface PrivilegedTokenResponse {
904
904
  * Workflow Approval System API
905
905
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
906
906
  *
907
- * The version of the OpenAPI document: 0.0.29
907
+ * The version of the OpenAPI document: 0.0.30
908
908
  *
909
909
  *
910
910
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -934,7 +934,7 @@ interface RemoveGroupEntitiesRequest {
934
934
  * Workflow Approval System API
935
935
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
936
936
  *
937
- * The version of the OpenAPI document: 0.0.29
937
+ * The version of the OpenAPI document: 0.0.30
938
938
  *
939
939
  *
940
940
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -966,7 +966,7 @@ declare namespace SpaceScope {
966
966
  * Workflow Approval System API
967
967
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
968
968
  *
969
- * The version of the OpenAPI document: 0.0.29
969
+ * The version of the OpenAPI document: 0.0.30
970
970
  *
971
971
  *
972
972
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1054,7 +1054,7 @@ interface RoleRemovalRequest {
1054
1054
  * Workflow Approval System API
1055
1055
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
1056
1056
  *
1057
- * The version of the OpenAPI document: 0.0.29
1057
+ * The version of the OpenAPI document: 0.0.30
1058
1058
  *
1059
1059
  *
1060
1060
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1077,7 +1077,7 @@ interface SpaceCreate {
1077
1077
  * Workflow Approval System API
1078
1078
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
1079
1079
  *
1080
- * The version of the OpenAPI document: 0.0.29
1080
+ * The version of the OpenAPI document: 0.0.30
1081
1081
  *
1082
1082
  *
1083
1083
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1100,7 +1100,7 @@ interface TokenRequest {
1100
1100
  * Workflow Approval System API
1101
1101
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
1102
1102
  *
1103
- * The version of the OpenAPI document: 0.0.29
1103
+ * The version of the OpenAPI document: 0.0.30
1104
1104
  *
1105
1105
  *
1106
1106
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1127,7 +1127,7 @@ interface UserCreate {
1127
1127
  * Workflow Approval System API
1128
1128
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
1129
1129
  *
1130
- * The version of the OpenAPI document: 0.0.29
1130
+ * The version of the OpenAPI document: 0.0.30
1131
1131
  *
1132
1132
  *
1133
1133
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1156,7 +1156,7 @@ declare namespace VoteApprove {
1156
1156
  * Workflow Approval System API
1157
1157
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
1158
1158
  *
1159
- * The version of the OpenAPI document: 0.0.29
1159
+ * The version of the OpenAPI document: 0.0.30
1160
1160
  *
1161
1161
  *
1162
1162
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1181,7 +1181,7 @@ declare namespace VoteVeto {
1181
1181
  * Workflow Approval System API
1182
1182
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
1183
1183
  *
1184
- * The version of the OpenAPI document: 0.0.29
1184
+ * The version of the OpenAPI document: 0.0.30
1185
1185
  *
1186
1186
  *
1187
1187
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1235,7 +1235,7 @@ interface WorkflowTemplateCreate {
1235
1235
  * Workflow Approval System API
1236
1236
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
1237
1237
  *
1238
- * The version of the OpenAPI document: 0.0.29
1238
+ * The version of the OpenAPI document: 0.0.30
1239
1239
  *
1240
1240
  *
1241
1241
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1361,8 +1361,6 @@ declare function validateListWorkflowTemplatesParams(object: unknown): Either<Va
1361
1361
  type PaginationValidationError = "malformed_object" | "missing_total" | "invalid_total" | "missing_page" | "invalid_page" | "missing_limit" | "invalid_limit";
1362
1362
  declare function validatePagination(object: unknown): Either<PaginationValidationError, Pagination>;
1363
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
1364
  type HealthResponseValidationError = "malformed_object" | "missing_status" | "invalid_status" | "invalid_message";
1367
1365
  declare function validateHealthResponse(object: unknown): Either<HealthResponseValidationError, HealthResponse>;
1368
1366
  type GetEntityInfo200ResponseValidationError = "malformed_object" | "missing_entity_type" | "invalid_entity_type" | "missing_groups" | "invalid_groups";
@@ -1431,4 +1429,9 @@ type RoleTemplateValidationError = "malformed_object" | "missing_name" | "invali
1431
1429
  type ListRoleTemplates200ResponseValidationError = "malformed_object" | "missing_roles" | "invalid_roles";
1432
1430
  declare function validateListRoleTemplates200Response(object: unknown): Either<ListRoleTemplates200ResponseValidationError, ListRoleTemplates200Response>;
1433
1431
  //#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 };
1432
+ //#region src/validators/api-error.validators.d.ts
1433
+ type APIErrorValidationError = "malformed_object" | "missing_code" | "invalid_code" | "missing_message" | "invalid_message" | "malformed_details";
1434
+ declare function validateAPIError(object: unknown): Either<APIErrorValidationError, APIError>;
1435
+ declare function isAPIError(object: unknown): object is APIError;
1436
+ //#endregion
1437
+ 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, isAPIError, 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 };
@@ -1,4 +1,7 @@
1
+ import * as E from "fp-ts/Either";
1
2
  import { isLeft, isRight, left, right } from "fp-ts/Either";
3
+ import { pipe } from "fp-ts/function";
4
+ import * as A from "fp-ts/Array";
2
5
  //#region generated/openapi/model/agent-token-request.ts
3
6
  let AgentTokenRequest;
4
7
  (function(_AgentTokenRequest) {
@@ -350,42 +353,6 @@ function validatePagination(object) {
350
353
  limit: object.limit
351
354
  });
352
355
  }
353
- function validateAPIErrorDetailsInner(object) {
354
- if (typeof object !== "object" || object === null) return left("malformed_object");
355
- const result = {};
356
- if (hasOwnProperty(object, "field") && object.field !== void 0) {
357
- if (typeof object.field !== "string") return left("invalid_field");
358
- result.field = object.field;
359
- }
360
- if (hasOwnProperty(object, "message") && object.message !== void 0) {
361
- if (typeof object.message !== "string") return left("invalid_message");
362
- result.message = object.message;
363
- }
364
- return right(result);
365
- }
366
- function validateAPIError(object) {
367
- if (typeof object !== "object" || object === null) return left("malformed_object");
368
- const result = {};
369
- if (hasOwnProperty(object, "code") && object.code !== void 0) {
370
- if (typeof object.code !== "string") return left("invalid_code");
371
- result.code = object.code;
372
- }
373
- if (hasOwnProperty(object, "message") && object.message !== void 0) {
374
- if (typeof object.message !== "string") return left("invalid_message");
375
- result.message = object.message;
376
- }
377
- if (hasOwnProperty(object, "details") && object.details !== void 0) {
378
- if (!isArray(object.details)) return left("invalid_details");
379
- const details = [];
380
- for (const item of object.details) {
381
- const validatedItem = validateAPIErrorDetailsInner(item);
382
- if (isLeft(validatedItem)) return left("invalid_details");
383
- details.push(validatedItem.right);
384
- }
385
- result.details = details;
386
- }
387
- return right(result);
388
- }
389
356
  function validateHealthResponse(object) {
390
357
  if (typeof object !== "object" || object === null) return left("malformed_object");
391
358
  if (!hasOwnProperty(object, "status") || !isNonEmptyString(object.status)) return left(hasOwnProperty(object, "status") ? "invalid_status" : "missing_status");
@@ -1353,4 +1320,39 @@ function validateListRoleTemplates200Response(object) {
1353
1320
  return right({ roles });
1354
1321
  }
1355
1322
  //#endregion
1356
- export { AgentTokenRequest, AndRule, EmailAction, GroupRequirementRule, GroupScope, OrRule, OrgScope, SpaceScope, VoteApprove, VoteVeto, VoteWithdraw, WebhookAction, WorkflowTemplate, WorkflowTemplateScope, 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 };
1323
+ //#region src/validators/api-error.validators.ts
1324
+ function validateAPIErrorDetailsInner(object) {
1325
+ if (typeof object !== "object" || object === null) return left("malformed_details");
1326
+ if (!hasOwnProperty(object, "field")) return left("missing_code");
1327
+ if (!isNonEmptyString(object.field)) return left("invalid_code");
1328
+ if (!hasOwnProperty(object, "message")) return left("missing_message");
1329
+ if (!isNonEmptyString(object.message)) return left("invalid_message");
1330
+ return right({
1331
+ field: object.field,
1332
+ message: object.message
1333
+ });
1334
+ }
1335
+ function validateAPIError(object) {
1336
+ if (typeof object !== "object" || object === null) return left("malformed_object");
1337
+ if (!hasOwnProperty(object, "code")) return left("missing_code");
1338
+ if (!isNonEmptyString(object.code)) return left("invalid_code");
1339
+ if (!hasOwnProperty(object, "message")) return left("missing_message");
1340
+ if (!isNonEmptyString(object.message)) return left("invalid_message");
1341
+ let details = void 0;
1342
+ if (hasOwnProperty(object, "details")) {
1343
+ if (!Array.isArray(object.details)) return left("malformed_object");
1344
+ const eitherDetails = pipe(object.details, A.map(validateAPIErrorDetailsInner), A.sequence(E.Applicative));
1345
+ if (E.isLeft(eitherDetails)) return eitherDetails;
1346
+ details = eitherDetails.right;
1347
+ }
1348
+ return right({
1349
+ code: object.code,
1350
+ message: object.message,
1351
+ details
1352
+ });
1353
+ }
1354
+ function isAPIError(object) {
1355
+ return E.isRight(validateAPIError(object));
1356
+ }
1357
+ //#endregion
1358
+ export { AgentTokenRequest, AndRule, EmailAction, GroupRequirementRule, GroupScope, OrRule, OrgScope, SpaceScope, VoteApprove, VoteVeto, VoteWithdraw, WebhookAction, WorkflowTemplate, WorkflowTemplateScope, isAPIError, 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 };
@@ -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.29
27
+ * The version of the OpenAPI document: 0.0.30
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.29
99
+ * The version of the OpenAPI document: 0.0.30
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.29
131
+ * The version of the OpenAPI document: 0.0.30
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.29
148
+ * The version of the OpenAPI document: 0.0.30
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.29
187
+ * The version of the OpenAPI document: 0.0.30
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.29
220
+ * The version of the OpenAPI document: 0.0.30
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.29
247
+ * The version of the OpenAPI document: 0.0.30
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.29
422
+ * The version of the OpenAPI document: 0.0.30
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.29
445
+ * The version of the OpenAPI document: 0.0.30
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.29
480
+ * The version of the OpenAPI document: 0.0.30
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.29
27
+ * The version of the OpenAPI document: 0.0.30
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.29
99
+ * The version of the OpenAPI document: 0.0.30
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.29
131
+ * The version of the OpenAPI document: 0.0.30
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.29
148
+ * The version of the OpenAPI document: 0.0.30
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.29
187
+ * The version of the OpenAPI document: 0.0.30
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.29
220
+ * The version of the OpenAPI document: 0.0.30
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.29
247
+ * The version of the OpenAPI document: 0.0.30
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.29
422
+ * The version of the OpenAPI document: 0.0.30
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.29
445
+ * The version of the OpenAPI document: 0.0.30
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.29
480
+ * The version of the OpenAPI document: 0.0.30
481
481
  *
482
482
  *
483
483
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@approvio/api",
3
3
  "author": "Giovanni Baratta",
4
4
  "license": "MIT",
5
- "version": "0.0.31",
5
+ "version": "0.0.32",
6
6
  "private": false,
7
7
  "type": "module",
8
8
  "main": "./dist/src/index.cjs",