@approvio/api 0.0.35 → 0.0.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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-Bmi0J-Dc.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-TrS0XFqN.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-B9_eIGcu.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-CnfcH7rt.mjs";
2
2
 
3
3
  //#region mocks/user.fixtures.d.ts
4
4
  declare const MOCK_USER_ID = "e6e08687-2189-4710-91b5-479cd25a9119";
@@ -736,10 +736,21 @@ function validateListWorkflowTemplatesParams(object) {
736
736
  const sharedValidation = validateSharedListParams(object);
737
737
  if ((0, fp_ts_Either.isLeft)(sharedValidation)) return (0, fp_ts_Either.left)(sharedValidation.left);
738
738
  const result = sharedValidation.right;
739
- if (typeof object === "object" && object !== null && hasOwnProperty(object, "spaceIdentifier") && object.spaceIdentifier !== void 0) {
739
+ if (typeof object !== "object" || object === null) return (0, fp_ts_Either.left)("malformed_object");
740
+ if (hasOwnProperty(object, "spaceIdentifier") && object.spaceIdentifier !== void 0) {
740
741
  if (!isNonEmptyString(object.spaceIdentifier)) return (0, fp_ts_Either.left)("invalid_space_identifier");
741
742
  result.spaceIdentifier = object.spaceIdentifier;
742
743
  }
744
+ let status = ["ACTIVE"];
745
+ if (hasOwnProperty(object, "status") && object.status !== void 0) {
746
+ const statusVal = object.status;
747
+ if (Array.isArray(statusVal)) {
748
+ for (const item of statusVal) if (typeof item !== "string") return (0, fp_ts_Either.left)("invalid_status");
749
+ status = statusVal;
750
+ } else if (typeof statusVal === "string") status = [statusVal];
751
+ else return (0, fp_ts_Either.left)("invalid_status");
752
+ }
753
+ result.status = status;
743
754
  return (0, fp_ts_Either.right)(result);
744
755
  }
745
756
  //#endregion
@@ -847,8 +858,10 @@ function validateListWorkflowsParams(object) {
847
858
  let includeOnlyNonTerminalState = void 0;
848
859
  if (hasOwnProperty(object, "includeOnlyNonTerminalState")) {
849
860
  const val = object["includeOnlyNonTerminalState"];
850
- if (typeof val !== "boolean") return (0, fp_ts_Either.left)("invalid_include_only_non_terminal_state");
851
- includeOnlyNonTerminalState = val;
861
+ if (typeof val === "boolean") includeOnlyNonTerminalState = val;
862
+ else if (val === "true") includeOnlyNonTerminalState = true;
863
+ else if (val === "false") includeOnlyNonTerminalState = false;
864
+ else return (0, fp_ts_Either.left)("invalid_include_only_non_terminal_state");
852
865
  }
853
866
  let workflowTemplateIdentifier = void 0;
854
867
  if (hasOwnProperty(object, "workflowTemplateIdentifier")) {
@@ -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-Bmi0J-Dc.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-TrS0XFqN.cjs";
2
2
  import { Either } from "fp-ts/Either";
3
3
 
4
4
  //#region generated/openapi/model/api-error-details-inner.d.ts
@@ -6,7 +6,7 @@ import { Either } from "fp-ts/Either";
6
6
  * Workflow Approval System API
7
7
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
8
8
  *
9
- * The version of the OpenAPI document: 0.0.31
9
+ * The version of the OpenAPI document: 0.0.32
10
10
  *
11
11
  *
12
12
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -36,7 +36,7 @@ interface APIError {
36
36
  * Workflow Approval System API
37
37
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
38
38
  *
39
- * The version of the OpenAPI document: 0.0.31
39
+ * The version of the OpenAPI document: 0.0.32
40
40
  *
41
41
  *
42
42
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -75,7 +75,7 @@ interface AddGroupEntitiesRequest {
75
75
  * Workflow Approval System API
76
76
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
77
77
  *
78
- * The version of the OpenAPI document: 0.0.31
78
+ * The version of the OpenAPI document: 0.0.32
79
79
  *
80
80
  *
81
81
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -94,7 +94,7 @@ interface AgentChallengeRequest {
94
94
  * Workflow Approval System API
95
95
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
96
96
  *
97
- * The version of the OpenAPI document: 0.0.31
97
+ * The version of the OpenAPI document: 0.0.32
98
98
  *
99
99
  *
100
100
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -113,7 +113,7 @@ interface AgentChallengeResponse {
113
113
  * Workflow Approval System API
114
114
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
115
115
  *
116
- * The version of the OpenAPI document: 0.0.31
116
+ * The version of the OpenAPI document: 0.0.32
117
117
  *
118
118
  *
119
119
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -144,7 +144,7 @@ interface AgentGet200Response {
144
144
  * Workflow Approval System API
145
145
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
146
146
  *
147
- * The version of the OpenAPI document: 0.0.31
147
+ * The version of the OpenAPI document: 0.0.32
148
148
  *
149
149
  *
150
150
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -163,7 +163,7 @@ interface AgentRegistrationRequest {
163
163
  * Workflow Approval System API
164
164
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
165
165
  *
166
- * The version of the OpenAPI document: 0.0.31
166
+ * The version of the OpenAPI document: 0.0.32
167
167
  *
168
168
  *
169
169
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -198,7 +198,7 @@ interface AgentRegistrationResponse {
198
198
  * Workflow Approval System API
199
199
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
200
200
  *
201
- * The version of the OpenAPI document: 0.0.31
201
+ * The version of the OpenAPI document: 0.0.32
202
202
  *
203
203
  *
204
204
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -221,7 +221,7 @@ interface AgentSummary {
221
221
  * Workflow Approval System API
222
222
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
223
223
  *
224
- * The version of the OpenAPI document: 0.0.31
224
+ * The version of the OpenAPI document: 0.0.32
225
225
  *
226
226
  *
227
227
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -258,7 +258,7 @@ declare namespace AgentTokenRequest {
258
258
  * Workflow Approval System API
259
259
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
260
260
  *
261
- * The version of the OpenAPI document: 0.0.31
261
+ * The version of the OpenAPI document: 0.0.32
262
262
  *
263
263
  *
264
264
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -281,7 +281,7 @@ interface AgentTokenResponse {
281
281
  * Workflow Approval System API
282
282
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
283
283
  *
284
- * The version of the OpenAPI document: 0.0.31
284
+ * The version of the OpenAPI document: 0.0.32
285
285
  *
286
286
  *
287
287
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -326,7 +326,7 @@ interface GetEntityInfo200Response {
326
326
  * Workflow Approval System API
327
327
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
328
328
  *
329
- * The version of the OpenAPI document: 0.0.31
329
+ * The version of the OpenAPI document: 0.0.32
330
330
  *
331
331
  *
332
332
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -345,7 +345,7 @@ interface GetWorkflowParams {
345
345
  * Workflow Approval System API
346
346
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
347
347
  *
348
- * The version of the OpenAPI document: 0.0.31
348
+ * The version of the OpenAPI document: 0.0.32
349
349
  *
350
350
  *
351
351
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -389,7 +389,7 @@ interface GetWorkflowVotes200Response {
389
389
  * Workflow Approval System API
390
390
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
391
391
  *
392
- * The version of the OpenAPI document: 0.0.31
392
+ * The version of the OpenAPI document: 0.0.32
393
393
  *
394
394
  *
395
395
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -421,7 +421,7 @@ interface GroupMembership {
421
421
  * Workflow Approval System API
422
422
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
423
423
  *
424
- * The version of the OpenAPI document: 0.0.31
424
+ * The version of the OpenAPI document: 0.0.32
425
425
  *
426
426
  *
427
427
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -453,7 +453,7 @@ declare namespace GroupScope {
453
453
  * Workflow Approval System API
454
454
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
455
455
  *
456
- * The version of the OpenAPI document: 0.0.31
456
+ * The version of the OpenAPI document: 0.0.32
457
457
  *
458
458
  *
459
459
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -476,7 +476,7 @@ interface HealthResponse {
476
476
  * Workflow Approval System API
477
477
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
478
478
  *
479
- * The version of the OpenAPI document: 0.0.31
479
+ * The version of the OpenAPI document: 0.0.32
480
480
  *
481
481
  *
482
482
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -492,7 +492,7 @@ interface InitiateCliLogin200Response {
492
492
  * Workflow Approval System API
493
493
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
494
494
  *
495
- * The version of the OpenAPI document: 0.0.31
495
+ * The version of the OpenAPI document: 0.0.32
496
496
  *
497
497
  *
498
498
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -517,7 +517,7 @@ interface ListAgents200Response {
517
517
  * Workflow Approval System API
518
518
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
519
519
  *
520
- * The version of the OpenAPI document: 0.0.31
520
+ * The version of the OpenAPI document: 0.0.32
521
521
  *
522
522
  *
523
523
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -546,7 +546,7 @@ interface ListGroupEntities200Response {
546
546
  * Workflow Approval System API
547
547
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
548
548
  *
549
- * The version of the OpenAPI document: 0.0.31
549
+ * The version of the OpenAPI document: 0.0.32
550
550
  *
551
551
  *
552
552
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -573,7 +573,7 @@ interface ListGroupsParams {
573
573
  * Workflow Approval System API
574
574
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
575
575
  *
576
- * The version of the OpenAPI document: 0.0.31
576
+ * The version of the OpenAPI document: 0.0.32
577
577
  *
578
578
  *
579
579
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -606,7 +606,7 @@ interface ListOrganizationAdminsForOrg200Response {
606
606
  * Workflow Approval System API
607
607
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
608
608
  *
609
- * The version of the OpenAPI document: 0.0.31
609
+ * The version of the OpenAPI document: 0.0.32
610
610
  *
611
611
  *
612
612
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -638,7 +638,7 @@ interface ListRoleTemplates200Response {
638
638
  * Workflow Approval System API
639
639
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
640
640
  *
641
- * The version of the OpenAPI document: 0.0.31
641
+ * The version of the OpenAPI document: 0.0.32
642
642
  *
643
643
  *
644
644
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -679,7 +679,7 @@ interface ListSpaces200Response {
679
679
  * Workflow Approval System API
680
680
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
681
681
  *
682
- * The version of the OpenAPI document: 0.0.31
682
+ * The version of the OpenAPI document: 0.0.32
683
683
  *
684
684
  *
685
685
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -712,7 +712,7 @@ interface ListUsers200Response {
712
712
  * Workflow Approval System API
713
713
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
714
714
  *
715
- * The version of the OpenAPI document: 0.0.31
715
+ * The version of the OpenAPI document: 0.0.32
716
716
  *
717
717
  *
718
718
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -739,7 +739,7 @@ interface ListUsersParams {
739
739
  * Workflow Approval System API
740
740
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
741
741
  *
742
- * The version of the OpenAPI document: 0.0.31
742
+ * The version of the OpenAPI document: 0.0.32
743
743
  *
744
744
  *
745
745
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -784,7 +784,7 @@ interface ListWorkflowTemplates200Response {
784
784
  * Workflow Approval System API
785
785
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
786
786
  *
787
- * The version of the OpenAPI document: 0.0.31
787
+ * The version of the OpenAPI document: 0.0.32
788
788
  *
789
789
  *
790
790
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -808,6 +808,10 @@ interface ListWorkflowTemplatesParams {
808
808
  * Optional space identifier (UUID or name) to filter workflow templates.
809
809
  */
810
810
  spaceIdentifier?: string;
811
+ /**
812
+ * Filter by workflow template status. Can provide multiple values. Defaults to returning only ACTIVE templates.
813
+ */
814
+ status?: Array<string>;
811
815
  }
812
816
  //#endregion
813
817
  //#region generated/openapi/model/list-workflows-params.d.ts
@@ -815,7 +819,7 @@ interface ListWorkflowTemplatesParams {
815
819
  * Workflow Approval System API
816
820
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
817
821
  *
818
- * The version of the OpenAPI document: 0.0.31
822
+ * The version of the OpenAPI document: 0.0.32
819
823
  *
820
824
  *
821
825
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -850,7 +854,7 @@ interface ListWorkflowsParams {
850
854
  * Workflow Approval System API
851
855
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
852
856
  *
853
- * The version of the OpenAPI document: 0.0.31
857
+ * The version of the OpenAPI document: 0.0.32
854
858
  *
855
859
  *
856
860
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -873,7 +877,7 @@ interface OidcCallbackRequest {
873
877
  * Workflow Approval System API
874
878
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
875
879
  *
876
- * The version of the OpenAPI document: 0.0.31
880
+ * The version of the OpenAPI document: 0.0.32
877
881
  *
878
882
  *
879
883
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -901,7 +905,7 @@ declare namespace OrgScope {
901
905
  * Workflow Approval System API
902
906
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
903
907
  *
904
- * The version of the OpenAPI document: 0.0.31
908
+ * The version of the OpenAPI document: 0.0.32
905
909
  *
906
910
  *
907
911
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -920,7 +924,7 @@ interface OrganizationAdminCreate {
920
924
  * Workflow Approval System API
921
925
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
922
926
  *
923
- * The version of the OpenAPI document: 0.0.31
927
+ * The version of the OpenAPI document: 0.0.32
924
928
  *
925
929
  *
926
930
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -939,7 +943,7 @@ interface OrganizationAdminRemove {
939
943
  * Workflow Approval System API
940
944
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
941
945
  *
942
- * The version of the OpenAPI document: 0.0.31
946
+ * The version of the OpenAPI document: 0.0.32
943
947
  *
944
948
  *
945
949
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -970,7 +974,7 @@ interface PrivilegedTokenExchangeRequest {
970
974
  * Workflow Approval System API
971
975
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
972
976
  *
973
- * The version of the OpenAPI document: 0.0.31
977
+ * The version of the OpenAPI document: 0.0.32
974
978
  *
975
979
  *
976
980
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -989,7 +993,7 @@ interface PrivilegedTokenResponse {
989
993
  * Workflow Approval System API
990
994
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
991
995
  *
992
- * The version of the OpenAPI document: 0.0.31
996
+ * The version of the OpenAPI document: 0.0.32
993
997
  *
994
998
  *
995
999
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1019,7 +1023,7 @@ interface RemoveGroupEntitiesRequest {
1019
1023
  * Workflow Approval System API
1020
1024
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
1021
1025
  *
1022
- * The version of the OpenAPI document: 0.0.31
1026
+ * The version of the OpenAPI document: 0.0.32
1023
1027
  *
1024
1028
  *
1025
1029
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1051,7 +1055,7 @@ declare namespace SpaceScope {
1051
1055
  * Workflow Approval System API
1052
1056
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
1053
1057
  *
1054
- * The version of the OpenAPI document: 0.0.31
1058
+ * The version of the OpenAPI document: 0.0.32
1055
1059
  *
1056
1060
  *
1057
1061
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1139,7 +1143,7 @@ interface RoleRemovalRequest {
1139
1143
  * Workflow Approval System API
1140
1144
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
1141
1145
  *
1142
- * The version of the OpenAPI document: 0.0.31
1146
+ * The version of the OpenAPI document: 0.0.32
1143
1147
  *
1144
1148
  *
1145
1149
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1162,7 +1166,7 @@ interface SpaceCreate {
1162
1166
  * Workflow Approval System API
1163
1167
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
1164
1168
  *
1165
- * The version of the OpenAPI document: 0.0.31
1169
+ * The version of the OpenAPI document: 0.0.32
1166
1170
  *
1167
1171
  *
1168
1172
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1185,7 +1189,7 @@ interface TokenRequest {
1185
1189
  * Workflow Approval System API
1186
1190
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
1187
1191
  *
1188
- * The version of the OpenAPI document: 0.0.31
1192
+ * The version of the OpenAPI document: 0.0.32
1189
1193
  *
1190
1194
  *
1191
1195
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1212,7 +1216,7 @@ interface UserCreate {
1212
1216
  * Workflow Approval System API
1213
1217
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
1214
1218
  *
1215
- * The version of the OpenAPI document: 0.0.31
1219
+ * The version of the OpenAPI document: 0.0.32
1216
1220
  *
1217
1221
  *
1218
1222
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1241,7 +1245,7 @@ declare namespace VoteApprove {
1241
1245
  * Workflow Approval System API
1242
1246
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
1243
1247
  *
1244
- * The version of the OpenAPI document: 0.0.31
1248
+ * The version of the OpenAPI document: 0.0.32
1245
1249
  *
1246
1250
  *
1247
1251
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1266,7 +1270,7 @@ declare namespace VoteVeto {
1266
1270
  * Workflow Approval System API
1267
1271
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
1268
1272
  *
1269
- * The version of the OpenAPI document: 0.0.31
1273
+ * The version of the OpenAPI document: 0.0.32
1270
1274
  *
1271
1275
  *
1272
1276
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1320,7 +1324,7 @@ interface WorkflowTemplateCreate {
1320
1324
  * Workflow Approval System API
1321
1325
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
1322
1326
  *
1323
- * The version of the OpenAPI document: 0.0.31
1327
+ * The version of the OpenAPI document: 0.0.32
1324
1328
  *
1325
1329
  *
1326
1330
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1472,7 +1476,7 @@ declare function validateWorkflowTemplateScope(object: unknown): Either<Workflow
1472
1476
  type WorkflowTemplateSummaryValidationError = "malformed_object" | "invalid_id" | "invalid_name" | "invalid_version" | "invalid_created_at" | "invalid_updated_at" | "invalid_description";
1473
1477
  type ListWorkflowTemplates200ResponseValidationError = "malformed_object" | "invalid_data" | "invalid_pagination" | "missing_pagination" | PrefixUnion<"data_item", WorkflowTemplateSummaryValidationError>;
1474
1478
  declare function validateListWorkflowTemplates200Response(object: unknown): Either<ListWorkflowTemplates200ResponseValidationError, ListWorkflowTemplates200Response>;
1475
- type ListWorkflowTemplatesParamsValidationError = ListParamsValidationError | "invalid_space_identifier";
1479
+ type ListWorkflowTemplatesParamsValidationError = ListParamsValidationError | "invalid_space_identifier" | "invalid_status";
1476
1480
  declare function validateListWorkflowTemplatesParams(object: unknown): Either<ListWorkflowTemplatesParamsValidationError, ListWorkflowTemplatesParams>;
1477
1481
  //#endregion
1478
1482
  //#region src/validators/spaces.validators.d.ts
@@ -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-B9_eIGcu.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-CnfcH7rt.mjs";
2
2
  import { Either } from "fp-ts/Either";
3
3
 
4
4
  //#region generated/openapi/model/api-error-details-inner.d.ts
@@ -6,7 +6,7 @@ import { Either } from "fp-ts/Either";
6
6
  * Workflow Approval System API
7
7
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
8
8
  *
9
- * The version of the OpenAPI document: 0.0.31
9
+ * The version of the OpenAPI document: 0.0.32
10
10
  *
11
11
  *
12
12
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -36,7 +36,7 @@ interface APIError {
36
36
  * Workflow Approval System API
37
37
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
38
38
  *
39
- * The version of the OpenAPI document: 0.0.31
39
+ * The version of the OpenAPI document: 0.0.32
40
40
  *
41
41
  *
42
42
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -75,7 +75,7 @@ interface AddGroupEntitiesRequest {
75
75
  * Workflow Approval System API
76
76
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
77
77
  *
78
- * The version of the OpenAPI document: 0.0.31
78
+ * The version of the OpenAPI document: 0.0.32
79
79
  *
80
80
  *
81
81
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -94,7 +94,7 @@ interface AgentChallengeRequest {
94
94
  * Workflow Approval System API
95
95
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
96
96
  *
97
- * The version of the OpenAPI document: 0.0.31
97
+ * The version of the OpenAPI document: 0.0.32
98
98
  *
99
99
  *
100
100
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -113,7 +113,7 @@ interface AgentChallengeResponse {
113
113
  * Workflow Approval System API
114
114
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
115
115
  *
116
- * The version of the OpenAPI document: 0.0.31
116
+ * The version of the OpenAPI document: 0.0.32
117
117
  *
118
118
  *
119
119
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -144,7 +144,7 @@ interface AgentGet200Response {
144
144
  * Workflow Approval System API
145
145
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
146
146
  *
147
- * The version of the OpenAPI document: 0.0.31
147
+ * The version of the OpenAPI document: 0.0.32
148
148
  *
149
149
  *
150
150
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -163,7 +163,7 @@ interface AgentRegistrationRequest {
163
163
  * Workflow Approval System API
164
164
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
165
165
  *
166
- * The version of the OpenAPI document: 0.0.31
166
+ * The version of the OpenAPI document: 0.0.32
167
167
  *
168
168
  *
169
169
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -198,7 +198,7 @@ interface AgentRegistrationResponse {
198
198
  * Workflow Approval System API
199
199
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
200
200
  *
201
- * The version of the OpenAPI document: 0.0.31
201
+ * The version of the OpenAPI document: 0.0.32
202
202
  *
203
203
  *
204
204
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -221,7 +221,7 @@ interface AgentSummary {
221
221
  * Workflow Approval System API
222
222
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
223
223
  *
224
- * The version of the OpenAPI document: 0.0.31
224
+ * The version of the OpenAPI document: 0.0.32
225
225
  *
226
226
  *
227
227
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -258,7 +258,7 @@ declare namespace AgentTokenRequest {
258
258
  * Workflow Approval System API
259
259
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
260
260
  *
261
- * The version of the OpenAPI document: 0.0.31
261
+ * The version of the OpenAPI document: 0.0.32
262
262
  *
263
263
  *
264
264
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -281,7 +281,7 @@ interface AgentTokenResponse {
281
281
  * Workflow Approval System API
282
282
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
283
283
  *
284
- * The version of the OpenAPI document: 0.0.31
284
+ * The version of the OpenAPI document: 0.0.32
285
285
  *
286
286
  *
287
287
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -326,7 +326,7 @@ interface GetEntityInfo200Response {
326
326
  * Workflow Approval System API
327
327
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
328
328
  *
329
- * The version of the OpenAPI document: 0.0.31
329
+ * The version of the OpenAPI document: 0.0.32
330
330
  *
331
331
  *
332
332
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -345,7 +345,7 @@ interface GetWorkflowParams {
345
345
  * Workflow Approval System API
346
346
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
347
347
  *
348
- * The version of the OpenAPI document: 0.0.31
348
+ * The version of the OpenAPI document: 0.0.32
349
349
  *
350
350
  *
351
351
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -389,7 +389,7 @@ interface GetWorkflowVotes200Response {
389
389
  * Workflow Approval System API
390
390
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
391
391
  *
392
- * The version of the OpenAPI document: 0.0.31
392
+ * The version of the OpenAPI document: 0.0.32
393
393
  *
394
394
  *
395
395
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -421,7 +421,7 @@ interface GroupMembership {
421
421
  * Workflow Approval System API
422
422
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
423
423
  *
424
- * The version of the OpenAPI document: 0.0.31
424
+ * The version of the OpenAPI document: 0.0.32
425
425
  *
426
426
  *
427
427
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -453,7 +453,7 @@ declare namespace GroupScope {
453
453
  * Workflow Approval System API
454
454
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
455
455
  *
456
- * The version of the OpenAPI document: 0.0.31
456
+ * The version of the OpenAPI document: 0.0.32
457
457
  *
458
458
  *
459
459
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -476,7 +476,7 @@ interface HealthResponse {
476
476
  * Workflow Approval System API
477
477
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
478
478
  *
479
- * The version of the OpenAPI document: 0.0.31
479
+ * The version of the OpenAPI document: 0.0.32
480
480
  *
481
481
  *
482
482
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -492,7 +492,7 @@ interface InitiateCliLogin200Response {
492
492
  * Workflow Approval System API
493
493
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
494
494
  *
495
- * The version of the OpenAPI document: 0.0.31
495
+ * The version of the OpenAPI document: 0.0.32
496
496
  *
497
497
  *
498
498
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -517,7 +517,7 @@ interface ListAgents200Response {
517
517
  * Workflow Approval System API
518
518
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
519
519
  *
520
- * The version of the OpenAPI document: 0.0.31
520
+ * The version of the OpenAPI document: 0.0.32
521
521
  *
522
522
  *
523
523
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -546,7 +546,7 @@ interface ListGroupEntities200Response {
546
546
  * Workflow Approval System API
547
547
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
548
548
  *
549
- * The version of the OpenAPI document: 0.0.31
549
+ * The version of the OpenAPI document: 0.0.32
550
550
  *
551
551
  *
552
552
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -573,7 +573,7 @@ interface ListGroupsParams {
573
573
  * Workflow Approval System API
574
574
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
575
575
  *
576
- * The version of the OpenAPI document: 0.0.31
576
+ * The version of the OpenAPI document: 0.0.32
577
577
  *
578
578
  *
579
579
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -606,7 +606,7 @@ interface ListOrganizationAdminsForOrg200Response {
606
606
  * Workflow Approval System API
607
607
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
608
608
  *
609
- * The version of the OpenAPI document: 0.0.31
609
+ * The version of the OpenAPI document: 0.0.32
610
610
  *
611
611
  *
612
612
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -638,7 +638,7 @@ interface ListRoleTemplates200Response {
638
638
  * Workflow Approval System API
639
639
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
640
640
  *
641
- * The version of the OpenAPI document: 0.0.31
641
+ * The version of the OpenAPI document: 0.0.32
642
642
  *
643
643
  *
644
644
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -679,7 +679,7 @@ interface ListSpaces200Response {
679
679
  * Workflow Approval System API
680
680
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
681
681
  *
682
- * The version of the OpenAPI document: 0.0.31
682
+ * The version of the OpenAPI document: 0.0.32
683
683
  *
684
684
  *
685
685
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -712,7 +712,7 @@ interface ListUsers200Response {
712
712
  * Workflow Approval System API
713
713
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
714
714
  *
715
- * The version of the OpenAPI document: 0.0.31
715
+ * The version of the OpenAPI document: 0.0.32
716
716
  *
717
717
  *
718
718
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -739,7 +739,7 @@ interface ListUsersParams {
739
739
  * Workflow Approval System API
740
740
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
741
741
  *
742
- * The version of the OpenAPI document: 0.0.31
742
+ * The version of the OpenAPI document: 0.0.32
743
743
  *
744
744
  *
745
745
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -784,7 +784,7 @@ interface ListWorkflowTemplates200Response {
784
784
  * Workflow Approval System API
785
785
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
786
786
  *
787
- * The version of the OpenAPI document: 0.0.31
787
+ * The version of the OpenAPI document: 0.0.32
788
788
  *
789
789
  *
790
790
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -808,6 +808,10 @@ interface ListWorkflowTemplatesParams {
808
808
  * Optional space identifier (UUID or name) to filter workflow templates.
809
809
  */
810
810
  spaceIdentifier?: string;
811
+ /**
812
+ * Filter by workflow template status. Can provide multiple values. Defaults to returning only ACTIVE templates.
813
+ */
814
+ status?: Array<string>;
811
815
  }
812
816
  //#endregion
813
817
  //#region generated/openapi/model/list-workflows-params.d.ts
@@ -815,7 +819,7 @@ interface ListWorkflowTemplatesParams {
815
819
  * Workflow Approval System API
816
820
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
817
821
  *
818
- * The version of the OpenAPI document: 0.0.31
822
+ * The version of the OpenAPI document: 0.0.32
819
823
  *
820
824
  *
821
825
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -850,7 +854,7 @@ interface ListWorkflowsParams {
850
854
  * Workflow Approval System API
851
855
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
852
856
  *
853
- * The version of the OpenAPI document: 0.0.31
857
+ * The version of the OpenAPI document: 0.0.32
854
858
  *
855
859
  *
856
860
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -873,7 +877,7 @@ interface OidcCallbackRequest {
873
877
  * Workflow Approval System API
874
878
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
875
879
  *
876
- * The version of the OpenAPI document: 0.0.31
880
+ * The version of the OpenAPI document: 0.0.32
877
881
  *
878
882
  *
879
883
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -901,7 +905,7 @@ declare namespace OrgScope {
901
905
  * Workflow Approval System API
902
906
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
903
907
  *
904
- * The version of the OpenAPI document: 0.0.31
908
+ * The version of the OpenAPI document: 0.0.32
905
909
  *
906
910
  *
907
911
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -920,7 +924,7 @@ interface OrganizationAdminCreate {
920
924
  * Workflow Approval System API
921
925
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
922
926
  *
923
- * The version of the OpenAPI document: 0.0.31
927
+ * The version of the OpenAPI document: 0.0.32
924
928
  *
925
929
  *
926
930
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -939,7 +943,7 @@ interface OrganizationAdminRemove {
939
943
  * Workflow Approval System API
940
944
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
941
945
  *
942
- * The version of the OpenAPI document: 0.0.31
946
+ * The version of the OpenAPI document: 0.0.32
943
947
  *
944
948
  *
945
949
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -970,7 +974,7 @@ interface PrivilegedTokenExchangeRequest {
970
974
  * Workflow Approval System API
971
975
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
972
976
  *
973
- * The version of the OpenAPI document: 0.0.31
977
+ * The version of the OpenAPI document: 0.0.32
974
978
  *
975
979
  *
976
980
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -989,7 +993,7 @@ interface PrivilegedTokenResponse {
989
993
  * Workflow Approval System API
990
994
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
991
995
  *
992
- * The version of the OpenAPI document: 0.0.31
996
+ * The version of the OpenAPI document: 0.0.32
993
997
  *
994
998
  *
995
999
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1019,7 +1023,7 @@ interface RemoveGroupEntitiesRequest {
1019
1023
  * Workflow Approval System API
1020
1024
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
1021
1025
  *
1022
- * The version of the OpenAPI document: 0.0.31
1026
+ * The version of the OpenAPI document: 0.0.32
1023
1027
  *
1024
1028
  *
1025
1029
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1051,7 +1055,7 @@ declare namespace SpaceScope {
1051
1055
  * Workflow Approval System API
1052
1056
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
1053
1057
  *
1054
- * The version of the OpenAPI document: 0.0.31
1058
+ * The version of the OpenAPI document: 0.0.32
1055
1059
  *
1056
1060
  *
1057
1061
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1139,7 +1143,7 @@ interface RoleRemovalRequest {
1139
1143
  * Workflow Approval System API
1140
1144
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
1141
1145
  *
1142
- * The version of the OpenAPI document: 0.0.31
1146
+ * The version of the OpenAPI document: 0.0.32
1143
1147
  *
1144
1148
  *
1145
1149
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1162,7 +1166,7 @@ interface SpaceCreate {
1162
1166
  * Workflow Approval System API
1163
1167
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
1164
1168
  *
1165
- * The version of the OpenAPI document: 0.0.31
1169
+ * The version of the OpenAPI document: 0.0.32
1166
1170
  *
1167
1171
  *
1168
1172
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1185,7 +1189,7 @@ interface TokenRequest {
1185
1189
  * Workflow Approval System API
1186
1190
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
1187
1191
  *
1188
- * The version of the OpenAPI document: 0.0.31
1192
+ * The version of the OpenAPI document: 0.0.32
1189
1193
  *
1190
1194
  *
1191
1195
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1212,7 +1216,7 @@ interface UserCreate {
1212
1216
  * Workflow Approval System API
1213
1217
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
1214
1218
  *
1215
- * The version of the OpenAPI document: 0.0.31
1219
+ * The version of the OpenAPI document: 0.0.32
1216
1220
  *
1217
1221
  *
1218
1222
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1241,7 +1245,7 @@ declare namespace VoteApprove {
1241
1245
  * Workflow Approval System API
1242
1246
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
1243
1247
  *
1244
- * The version of the OpenAPI document: 0.0.31
1248
+ * The version of the OpenAPI document: 0.0.32
1245
1249
  *
1246
1250
  *
1247
1251
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1266,7 +1270,7 @@ declare namespace VoteVeto {
1266
1270
  * Workflow Approval System API
1267
1271
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
1268
1272
  *
1269
- * The version of the OpenAPI document: 0.0.31
1273
+ * The version of the OpenAPI document: 0.0.32
1270
1274
  *
1271
1275
  *
1272
1276
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1320,7 +1324,7 @@ interface WorkflowTemplateCreate {
1320
1324
  * Workflow Approval System API
1321
1325
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
1322
1326
  *
1323
- * The version of the OpenAPI document: 0.0.31
1327
+ * The version of the OpenAPI document: 0.0.32
1324
1328
  *
1325
1329
  *
1326
1330
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1472,7 +1476,7 @@ declare function validateWorkflowTemplateScope(object: unknown): Either<Workflow
1472
1476
  type WorkflowTemplateSummaryValidationError = "malformed_object" | "invalid_id" | "invalid_name" | "invalid_version" | "invalid_created_at" | "invalid_updated_at" | "invalid_description";
1473
1477
  type ListWorkflowTemplates200ResponseValidationError = "malformed_object" | "invalid_data" | "invalid_pagination" | "missing_pagination" | PrefixUnion<"data_item", WorkflowTemplateSummaryValidationError>;
1474
1478
  declare function validateListWorkflowTemplates200Response(object: unknown): Either<ListWorkflowTemplates200ResponseValidationError, ListWorkflowTemplates200Response>;
1475
- type ListWorkflowTemplatesParamsValidationError = ListParamsValidationError | "invalid_space_identifier";
1479
+ type ListWorkflowTemplatesParamsValidationError = ListParamsValidationError | "invalid_space_identifier" | "invalid_status";
1476
1480
  declare function validateListWorkflowTemplatesParams(object: unknown): Either<ListWorkflowTemplatesParamsValidationError, ListWorkflowTemplatesParams>;
1477
1481
  //#endregion
1478
1482
  //#region src/validators/spaces.validators.d.ts
@@ -712,10 +712,21 @@ function validateListWorkflowTemplatesParams(object) {
712
712
  const sharedValidation = validateSharedListParams(object);
713
713
  if (isLeft(sharedValidation)) return left(sharedValidation.left);
714
714
  const result = sharedValidation.right;
715
- if (typeof object === "object" && object !== null && hasOwnProperty(object, "spaceIdentifier") && object.spaceIdentifier !== void 0) {
715
+ if (typeof object !== "object" || object === null) return left("malformed_object");
716
+ if (hasOwnProperty(object, "spaceIdentifier") && object.spaceIdentifier !== void 0) {
716
717
  if (!isNonEmptyString(object.spaceIdentifier)) return left("invalid_space_identifier");
717
718
  result.spaceIdentifier = object.spaceIdentifier;
718
719
  }
720
+ let status = ["ACTIVE"];
721
+ if (hasOwnProperty(object, "status") && object.status !== void 0) {
722
+ const statusVal = object.status;
723
+ if (Array.isArray(statusVal)) {
724
+ for (const item of statusVal) if (typeof item !== "string") return left("invalid_status");
725
+ status = statusVal;
726
+ } else if (typeof statusVal === "string") status = [statusVal];
727
+ else return left("invalid_status");
728
+ }
729
+ result.status = status;
719
730
  return right(result);
720
731
  }
721
732
  //#endregion
@@ -823,8 +834,10 @@ function validateListWorkflowsParams(object) {
823
834
  let includeOnlyNonTerminalState = void 0;
824
835
  if (hasOwnProperty(object, "includeOnlyNonTerminalState")) {
825
836
  const val = object["includeOnlyNonTerminalState"];
826
- if (typeof val !== "boolean") return left("invalid_include_only_non_terminal_state");
827
- includeOnlyNonTerminalState = val;
837
+ if (typeof val === "boolean") includeOnlyNonTerminalState = val;
838
+ else if (val === "true") includeOnlyNonTerminalState = true;
839
+ else if (val === "false") includeOnlyNonTerminalState = false;
840
+ else return left("invalid_include_only_non_terminal_state");
828
841
  }
829
842
  let workflowTemplateIdentifier = void 0;
830
843
  if (hasOwnProperty(object, "workflowTemplateIdentifier")) {
@@ -24,7 +24,7 @@ declare namespace OrRule {
24
24
  * Workflow Approval System API
25
25
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
26
26
  *
27
- * The version of the OpenAPI document: 0.0.31
27
+ * The version of the OpenAPI document: 0.0.32
28
28
  *
29
29
  *
30
30
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -96,7 +96,7 @@ declare namespace AndRule {
96
96
  * Workflow Approval System API
97
97
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
98
98
  *
99
- * The version of the OpenAPI document: 0.0.31
99
+ * The version of the OpenAPI document: 0.0.32
100
100
  *
101
101
  *
102
102
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -128,7 +128,7 @@ declare namespace EmailAction {
128
128
  * Workflow Approval System API
129
129
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
130
130
  *
131
- * The version of the OpenAPI document: 0.0.31
131
+ * The version of the OpenAPI document: 0.0.32
132
132
  *
133
133
  *
134
134
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -145,7 +145,7 @@ interface GroupInfo {
145
145
  * Workflow Approval System API
146
146
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
147
147
  *
148
- * The version of the OpenAPI document: 0.0.31
148
+ * The version of the OpenAPI document: 0.0.32
149
149
  *
150
150
  *
151
151
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -184,7 +184,7 @@ interface Group {
184
184
  * Workflow Approval System API
185
185
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
186
186
  *
187
- * The version of the OpenAPI document: 0.0.31
187
+ * The version of the OpenAPI document: 0.0.32
188
188
  *
189
189
  *
190
190
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -217,7 +217,7 @@ interface ListGroups200Response {
217
217
  * Workflow Approval System API
218
218
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
219
219
  *
220
- * The version of the OpenAPI document: 0.0.31
220
+ * The version of the OpenAPI document: 0.0.32
221
221
  *
222
222
  *
223
223
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -244,7 +244,7 @@ interface UserSummary {
244
244
  * Workflow Approval System API
245
245
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
246
246
  *
247
- * The version of the OpenAPI document: 0.0.31
247
+ * The version of the OpenAPI document: 0.0.32
248
248
  *
249
249
  *
250
250
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -419,7 +419,7 @@ interface ListWorkflows200Response {
419
419
  * Workflow Approval System API
420
420
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
421
421
  *
422
- * The version of the OpenAPI document: 0.0.31
422
+ * The version of the OpenAPI document: 0.0.32
423
423
  *
424
424
  *
425
425
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -442,7 +442,7 @@ interface TokenResponse {
442
442
  * Workflow Approval System API
443
443
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
444
444
  *
445
- * The version of the OpenAPI document: 0.0.31
445
+ * The version of the OpenAPI document: 0.0.32
446
446
  *
447
447
  *
448
448
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -477,7 +477,7 @@ interface User {
477
477
  * Workflow Approval System API
478
478
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
479
479
  *
480
- * The version of the OpenAPI document: 0.0.31
480
+ * The version of the OpenAPI document: 0.0.32
481
481
  *
482
482
  *
483
483
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -24,7 +24,7 @@ declare namespace OrRule {
24
24
  * Workflow Approval System API
25
25
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
26
26
  *
27
- * The version of the OpenAPI document: 0.0.31
27
+ * The version of the OpenAPI document: 0.0.32
28
28
  *
29
29
  *
30
30
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -96,7 +96,7 @@ declare namespace AndRule {
96
96
  * Workflow Approval System API
97
97
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
98
98
  *
99
- * The version of the OpenAPI document: 0.0.31
99
+ * The version of the OpenAPI document: 0.0.32
100
100
  *
101
101
  *
102
102
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -128,7 +128,7 @@ declare namespace EmailAction {
128
128
  * Workflow Approval System API
129
129
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
130
130
  *
131
- * The version of the OpenAPI document: 0.0.31
131
+ * The version of the OpenAPI document: 0.0.32
132
132
  *
133
133
  *
134
134
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -145,7 +145,7 @@ interface GroupInfo {
145
145
  * Workflow Approval System API
146
146
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
147
147
  *
148
- * The version of the OpenAPI document: 0.0.31
148
+ * The version of the OpenAPI document: 0.0.32
149
149
  *
150
150
  *
151
151
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -184,7 +184,7 @@ interface Group {
184
184
  * Workflow Approval System API
185
185
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
186
186
  *
187
- * The version of the OpenAPI document: 0.0.31
187
+ * The version of the OpenAPI document: 0.0.32
188
188
  *
189
189
  *
190
190
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -217,7 +217,7 @@ interface ListGroups200Response {
217
217
  * Workflow Approval System API
218
218
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
219
219
  *
220
- * The version of the OpenAPI document: 0.0.31
220
+ * The version of the OpenAPI document: 0.0.32
221
221
  *
222
222
  *
223
223
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -244,7 +244,7 @@ interface UserSummary {
244
244
  * Workflow Approval System API
245
245
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
246
246
  *
247
- * The version of the OpenAPI document: 0.0.31
247
+ * The version of the OpenAPI document: 0.0.32
248
248
  *
249
249
  *
250
250
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -419,7 +419,7 @@ interface ListWorkflows200Response {
419
419
  * Workflow Approval System API
420
420
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
421
421
  *
422
- * The version of the OpenAPI document: 0.0.31
422
+ * The version of the OpenAPI document: 0.0.32
423
423
  *
424
424
  *
425
425
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -442,7 +442,7 @@ interface TokenResponse {
442
442
  * Workflow Approval System API
443
443
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
444
444
  *
445
- * The version of the OpenAPI document: 0.0.31
445
+ * The version of the OpenAPI document: 0.0.32
446
446
  *
447
447
  *
448
448
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -477,7 +477,7 @@ interface User {
477
477
  * Workflow Approval System API
478
478
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
479
479
  *
480
- * The version of the OpenAPI document: 0.0.31
480
+ * The version of the OpenAPI document: 0.0.32
481
481
  *
482
482
  *
483
483
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
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.35",
5
+ "version": "0.0.36",
6
6
  "private": false,
7
7
  "type": "module",
8
8
  "main": "./dist/src/index.cjs",