@approvio/api 0.0.42 → 0.0.44

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.
@@ -21,47 +21,17 @@ let EmailAction;
21
21
  _EmailAction.TypeEnum = { Email: "EMAIL" };
22
22
  })(EmailAction || (EmailAction = {}));
23
23
  //#endregion
24
- //#region generated/openapi/model/global-quota.ts
25
- let GlobalQuota;
26
- (function(_GlobalQuota) {
27
- _GlobalQuota.QuotaTypeEnum = {
28
- MaxGroups: "MAX_GROUPS",
29
- MaxSpaces: "MAX_SPACES"
30
- };
31
- _GlobalQuota.ScopeEnum = { Global: "GLOBAL" };
32
- })(GlobalQuota || (GlobalQuota = {}));
33
- //#endregion
34
- //#region generated/openapi/model/global-quota-base.ts
35
- let GlobalQuotaBase;
36
- (function(_GlobalQuotaBase) {
37
- _GlobalQuotaBase.ScopeEnum = { Global: "GLOBAL" };
38
- _GlobalQuotaBase.QuotaTypeEnum = {
39
- MaxGroups: "MAX_GROUPS",
40
- MaxSpaces: "MAX_SPACES"
41
- };
42
- })(GlobalQuotaBase || (GlobalQuotaBase = {}));
43
- //#endregion
44
- //#region generated/openapi/model/global-quota-create.ts
45
- let GlobalQuotaCreate;
46
- (function(_GlobalQuotaCreate) {
47
- _GlobalQuotaCreate.QuotaTypeEnum = {
48
- MaxGroups: "MAX_GROUPS",
49
- MaxSpaces: "MAX_SPACES"
50
- };
51
- _GlobalQuotaCreate.ScopeEnum = { Global: "GLOBAL" };
52
- })(GlobalQuotaCreate || (GlobalQuotaCreate = {}));
53
- //#endregion
54
24
  //#region generated/openapi/model/group-quota.ts
55
25
  let GroupQuota;
56
26
  (function(_GroupQuota) {
57
27
  _GroupQuota.QuotaTypeEnum = { MaxEntitiesPerGroup: "MAX_ENTITIES_PER_GROUP" };
58
- _GroupQuota.ScopeEnum = { Group: "GROUP" };
28
+ _GroupQuota.ScopeEnum = { Group: "Group" };
59
29
  })(GroupQuota || (GroupQuota = {}));
60
30
  //#endregion
61
31
  //#region generated/openapi/model/group-quota-base.ts
62
32
  let GroupQuotaBase;
63
33
  (function(_GroupQuotaBase) {
64
- _GroupQuotaBase.ScopeEnum = { Group: "GROUP" };
34
+ _GroupQuotaBase.ScopeEnum = { Group: "Group" };
65
35
  _GroupQuotaBase.QuotaTypeEnum = { MaxEntitiesPerGroup: "MAX_ENTITIES_PER_GROUP" };
66
36
  })(GroupQuotaBase || (GroupQuotaBase = {}));
67
37
  //#endregion
@@ -69,7 +39,7 @@ let GroupQuotaBase;
69
39
  let GroupQuotaCreate;
70
40
  (function(_GroupQuotaCreate) {
71
41
  _GroupQuotaCreate.QuotaTypeEnum = { MaxEntitiesPerGroup: "MAX_ENTITIES_PER_GROUP" };
72
- _GroupQuotaCreate.ScopeEnum = { Group: "GROUP" };
42
+ _GroupQuotaCreate.ScopeEnum = { Group: "Group" };
73
43
  })(GroupQuotaCreate || (GroupQuotaCreate = {}));
74
44
  //#endregion
75
45
  //#region generated/openapi/model/group-requirement-rule.ts
@@ -110,6 +80,51 @@ let OrRule;
110
80
  _OrRule.TypeEnum = { Or: "OR" };
111
81
  })(OrRule || (OrRule = {}));
112
82
  //#endregion
83
+ //#region generated/openapi/model/org-quota.ts
84
+ let OrgQuota;
85
+ (function(_OrgQuota) {
86
+ _OrgQuota.QuotaTypeEnum = {
87
+ MaxGroups: "MAX_GROUPS",
88
+ MaxSpaces: "MAX_SPACES",
89
+ MaxRolesPerUser: "MAX_ROLES_PER_USER",
90
+ MaxEntitiesPerGroup: "MAX_ENTITIES_PER_GROUP",
91
+ MaxWorkflowTemplatesPerSpace: "MAX_WORKFLOW_TEMPLATES_PER_SPACE",
92
+ MaxConcurrentWorkflows: "MAX_CONCURRENT_WORKFLOWS",
93
+ MaxVotesPerWorkflow: "MAX_VOTES_PER_WORKFLOW"
94
+ };
95
+ _OrgQuota.ScopeEnum = { Org: "Org" };
96
+ })(OrgQuota || (OrgQuota = {}));
97
+ //#endregion
98
+ //#region generated/openapi/model/org-quota-base.ts
99
+ let OrgQuotaBase;
100
+ (function(_OrgQuotaBase) {
101
+ _OrgQuotaBase.ScopeEnum = { Org: "Org" };
102
+ _OrgQuotaBase.QuotaTypeEnum = {
103
+ MaxGroups: "MAX_GROUPS",
104
+ MaxSpaces: "MAX_SPACES",
105
+ MaxRolesPerUser: "MAX_ROLES_PER_USER",
106
+ MaxEntitiesPerGroup: "MAX_ENTITIES_PER_GROUP",
107
+ MaxWorkflowTemplatesPerSpace: "MAX_WORKFLOW_TEMPLATES_PER_SPACE",
108
+ MaxConcurrentWorkflows: "MAX_CONCURRENT_WORKFLOWS",
109
+ MaxVotesPerWorkflow: "MAX_VOTES_PER_WORKFLOW"
110
+ };
111
+ })(OrgQuotaBase || (OrgQuotaBase = {}));
112
+ //#endregion
113
+ //#region generated/openapi/model/org-quota-create.ts
114
+ let OrgQuotaCreate;
115
+ (function(_OrgQuotaCreate) {
116
+ _OrgQuotaCreate.QuotaTypeEnum = {
117
+ MaxGroups: "MAX_GROUPS",
118
+ MaxSpaces: "MAX_SPACES",
119
+ MaxRolesPerUser: "MAX_ROLES_PER_USER",
120
+ MaxEntitiesPerGroup: "MAX_ENTITIES_PER_GROUP",
121
+ MaxWorkflowTemplatesPerSpace: "MAX_WORKFLOW_TEMPLATES_PER_SPACE",
122
+ MaxConcurrentWorkflows: "MAX_CONCURRENT_WORKFLOWS",
123
+ MaxVotesPerWorkflow: "MAX_VOTES_PER_WORKFLOW"
124
+ };
125
+ _OrgQuotaCreate.ScopeEnum = { Org: "Org" };
126
+ })(OrgQuotaCreate || (OrgQuotaCreate = {}));
127
+ //#endregion
113
128
  //#region generated/openapi/model/org-scope.ts
114
129
  let OrgScope;
115
130
  (function(_OrgScope) {
@@ -118,11 +133,12 @@ let OrgScope;
118
133
  //#endregion
119
134
  //#region generated/openapi/model/quota-scope.ts
120
135
  const QuotaScope = {
121
- Global: "GLOBAL",
122
- Space: "SPACE",
123
- User: "USER",
124
- Group: "GROUP",
125
- Template: "TEMPLATE"
136
+ Org: "Org",
137
+ Group: "Group",
138
+ Space: "Space",
139
+ WorkflowTemplate: "WorkflowTemplate",
140
+ Workflow: "Workflow",
141
+ User: "User"
126
142
  };
127
143
  //#endregion
128
144
  //#region generated/openapi/model/quota-type.ts
@@ -132,28 +148,38 @@ const QuotaType = {
132
148
  MaxRolesPerUser: "MAX_ROLES_PER_USER",
133
149
  MaxGroups: "MAX_GROUPS",
134
150
  MaxSpaces: "MAX_SPACES",
135
- MaxTemplates: "MAX_TEMPLATES"
151
+ MaxWorkflowTemplatesPerSpace: "MAX_WORKFLOW_TEMPLATES_PER_SPACE",
152
+ MaxVotesPerWorkflow: "MAX_VOTES_PER_WORKFLOW"
136
153
  };
137
154
  //#endregion
138
155
  //#region generated/openapi/model/space-quota.ts
139
156
  let SpaceQuota;
140
157
  (function(_SpaceQuota) {
141
- _SpaceQuota.QuotaTypeEnum = { MaxTemplates: "MAX_TEMPLATES" };
142
- _SpaceQuota.ScopeEnum = { Space: "SPACE" };
158
+ _SpaceQuota.QuotaTypeEnum = {
159
+ MaxWorkflowTemplatesPerSpace: "MAX_WORKFLOW_TEMPLATES_PER_SPACE",
160
+ MaxConcurrentWorkflows: "MAX_CONCURRENT_WORKFLOWS"
161
+ };
162
+ _SpaceQuota.ScopeEnum = { Space: "Space" };
143
163
  })(SpaceQuota || (SpaceQuota = {}));
144
164
  //#endregion
145
165
  //#region generated/openapi/model/space-quota-base.ts
146
166
  let SpaceQuotaBase;
147
167
  (function(_SpaceQuotaBase) {
148
- _SpaceQuotaBase.ScopeEnum = { Space: "SPACE" };
149
- _SpaceQuotaBase.QuotaTypeEnum = { MaxTemplates: "MAX_TEMPLATES" };
168
+ _SpaceQuotaBase.ScopeEnum = { Space: "Space" };
169
+ _SpaceQuotaBase.QuotaTypeEnum = {
170
+ MaxWorkflowTemplatesPerSpace: "MAX_WORKFLOW_TEMPLATES_PER_SPACE",
171
+ MaxConcurrentWorkflows: "MAX_CONCURRENT_WORKFLOWS"
172
+ };
150
173
  })(SpaceQuotaBase || (SpaceQuotaBase = {}));
151
174
  //#endregion
152
175
  //#region generated/openapi/model/space-quota-create.ts
153
176
  let SpaceQuotaCreate;
154
177
  (function(_SpaceQuotaCreate) {
155
- _SpaceQuotaCreate.QuotaTypeEnum = { MaxTemplates: "MAX_TEMPLATES" };
156
- _SpaceQuotaCreate.ScopeEnum = { Space: "SPACE" };
178
+ _SpaceQuotaCreate.QuotaTypeEnum = {
179
+ MaxWorkflowTemplatesPerSpace: "MAX_WORKFLOW_TEMPLATES_PER_SPACE",
180
+ MaxConcurrentWorkflows: "MAX_CONCURRENT_WORKFLOWS"
181
+ };
182
+ _SpaceQuotaCreate.ScopeEnum = { Space: "Space" };
157
183
  })(SpaceQuotaCreate || (SpaceQuotaCreate = {}));
158
184
  //#endregion
159
185
  //#region generated/openapi/model/space-scope.ts
@@ -162,38 +188,17 @@ let SpaceScope;
162
188
  _SpaceScope.TypeEnum = { Space: "space" };
163
189
  })(SpaceScope || (SpaceScope = {}));
164
190
  //#endregion
165
- //#region generated/openapi/model/template-quota.ts
166
- let TemplateQuota;
167
- (function(_TemplateQuota) {
168
- _TemplateQuota.QuotaTypeEnum = { MaxConcurrentWorkflows: "MAX_CONCURRENT_WORKFLOWS" };
169
- _TemplateQuota.ScopeEnum = { Template: "TEMPLATE" };
170
- })(TemplateQuota || (TemplateQuota = {}));
171
- //#endregion
172
- //#region generated/openapi/model/template-quota-base.ts
173
- let TemplateQuotaBase;
174
- (function(_TemplateQuotaBase) {
175
- _TemplateQuotaBase.ScopeEnum = { Template: "TEMPLATE" };
176
- _TemplateQuotaBase.QuotaTypeEnum = { MaxConcurrentWorkflows: "MAX_CONCURRENT_WORKFLOWS" };
177
- })(TemplateQuotaBase || (TemplateQuotaBase = {}));
178
- //#endregion
179
- //#region generated/openapi/model/template-quota-create.ts
180
- let TemplateQuotaCreate;
181
- (function(_TemplateQuotaCreate) {
182
- _TemplateQuotaCreate.QuotaTypeEnum = { MaxConcurrentWorkflows: "MAX_CONCURRENT_WORKFLOWS" };
183
- _TemplateQuotaCreate.ScopeEnum = { Template: "TEMPLATE" };
184
- })(TemplateQuotaCreate || (TemplateQuotaCreate = {}));
185
- //#endregion
186
191
  //#region generated/openapi/model/user-quota.ts
187
192
  let UserQuota;
188
193
  (function(_UserQuota) {
189
194
  _UserQuota.QuotaTypeEnum = { MaxRolesPerUser: "MAX_ROLES_PER_USER" };
190
- _UserQuota.ScopeEnum = { User: "USER" };
195
+ _UserQuota.ScopeEnum = { User: "User" };
191
196
  })(UserQuota || (UserQuota = {}));
192
197
  //#endregion
193
198
  //#region generated/openapi/model/user-quota-base.ts
194
199
  let UserQuotaBase;
195
200
  (function(_UserQuotaBase) {
196
- _UserQuotaBase.ScopeEnum = { User: "USER" };
201
+ _UserQuotaBase.ScopeEnum = { User: "User" };
197
202
  _UserQuotaBase.QuotaTypeEnum = { MaxRolesPerUser: "MAX_ROLES_PER_USER" };
198
203
  })(UserQuotaBase || (UserQuotaBase = {}));
199
204
  //#endregion
@@ -201,7 +206,7 @@ let UserQuotaBase;
201
206
  let UserQuotaCreate;
202
207
  (function(_UserQuotaCreate) {
203
208
  _UserQuotaCreate.QuotaTypeEnum = { MaxRolesPerUser: "MAX_ROLES_PER_USER" };
204
- _UserQuotaCreate.ScopeEnum = { User: "USER" };
209
+ _UserQuotaCreate.ScopeEnum = { User: "User" };
205
210
  })(UserQuotaCreate || (UserQuotaCreate = {}));
206
211
  //#endregion
207
212
  //#region generated/openapi/model/vote-approve.ts
@@ -233,6 +238,48 @@ let WebhookAction;
233
238
  };
234
239
  })(WebhookAction || (WebhookAction = {}));
235
240
  //#endregion
241
+ //#region generated/openapi/model/workflow-quota.ts
242
+ let WorkflowQuota;
243
+ (function(_WorkflowQuota) {
244
+ _WorkflowQuota.QuotaTypeEnum = { MaxVotesPerWorkflow: "MAX_VOTES_PER_WORKFLOW" };
245
+ _WorkflowQuota.ScopeEnum = { Workflow: "Workflow" };
246
+ })(WorkflowQuota || (WorkflowQuota = {}));
247
+ //#endregion
248
+ //#region generated/openapi/model/workflow-quota-base.ts
249
+ let WorkflowQuotaBase;
250
+ (function(_WorkflowQuotaBase) {
251
+ _WorkflowQuotaBase.ScopeEnum = { Workflow: "Workflow" };
252
+ _WorkflowQuotaBase.QuotaTypeEnum = { MaxVotesPerWorkflow: "MAX_VOTES_PER_WORKFLOW" };
253
+ })(WorkflowQuotaBase || (WorkflowQuotaBase = {}));
254
+ //#endregion
255
+ //#region generated/openapi/model/workflow-quota-create.ts
256
+ let WorkflowQuotaCreate;
257
+ (function(_WorkflowQuotaCreate) {
258
+ _WorkflowQuotaCreate.QuotaTypeEnum = { MaxVotesPerWorkflow: "MAX_VOTES_PER_WORKFLOW" };
259
+ _WorkflowQuotaCreate.ScopeEnum = { Workflow: "Workflow" };
260
+ })(WorkflowQuotaCreate || (WorkflowQuotaCreate = {}));
261
+ //#endregion
262
+ //#region generated/openapi/model/workflow-template-quota.ts
263
+ let WorkflowTemplateQuota;
264
+ (function(_WorkflowTemplateQuota) {
265
+ _WorkflowTemplateQuota.QuotaTypeEnum = { MaxConcurrentWorkflows: "MAX_CONCURRENT_WORKFLOWS" };
266
+ _WorkflowTemplateQuota.ScopeEnum = { WorkflowTemplate: "WorkflowTemplate" };
267
+ })(WorkflowTemplateQuota || (WorkflowTemplateQuota = {}));
268
+ //#endregion
269
+ //#region generated/openapi/model/workflow-template-quota-base.ts
270
+ let WorkflowTemplateQuotaBase;
271
+ (function(_WorkflowTemplateQuotaBase) {
272
+ _WorkflowTemplateQuotaBase.ScopeEnum = { WorkflowTemplate: "WorkflowTemplate" };
273
+ _WorkflowTemplateQuotaBase.QuotaTypeEnum = { MaxConcurrentWorkflows: "MAX_CONCURRENT_WORKFLOWS" };
274
+ })(WorkflowTemplateQuotaBase || (WorkflowTemplateQuotaBase = {}));
275
+ //#endregion
276
+ //#region generated/openapi/model/workflow-template-quota-create.ts
277
+ let WorkflowTemplateQuotaCreate;
278
+ (function(_WorkflowTemplateQuotaCreate) {
279
+ _WorkflowTemplateQuotaCreate.QuotaTypeEnum = { MaxConcurrentWorkflows: "MAX_CONCURRENT_WORKFLOWS" };
280
+ _WorkflowTemplateQuotaCreate.ScopeEnum = { WorkflowTemplate: "WorkflowTemplate" };
281
+ })(WorkflowTemplateQuotaCreate || (WorkflowTemplateQuotaCreate = {}));
282
+ //#endregion
236
283
  //#region generated/openapi/model/workflow-template-scope.ts
237
284
  let WorkflowTemplateScope;
238
285
  (function(_WorkflowTemplateScope) {
@@ -1675,6 +1722,14 @@ function isAPIError(object) {
1675
1722
  }
1676
1723
  //#endregion
1677
1724
  //#region src/validators/quota.validator.ts
1725
+ const QUOTA_TYPE_ENUM_BY_SCOPE = {
1726
+ Org: OrgQuotaBase.QuotaTypeEnum,
1727
+ Group: GroupQuotaBase.QuotaTypeEnum,
1728
+ Space: SpaceQuotaBase.QuotaTypeEnum,
1729
+ WorkflowTemplate: WorkflowTemplateQuotaBase.QuotaTypeEnum,
1730
+ Workflow: WorkflowQuotaBase.QuotaTypeEnum,
1731
+ User: UserQuotaBase.QuotaTypeEnum
1732
+ };
1678
1733
  function validateQuotaCreate(object) {
1679
1734
  if (typeof object !== "object" || object === null) return left("malformed_object");
1680
1735
  if (!hasOwnProperty(object, "limit")) return left("missing_limit");
@@ -1685,61 +1740,20 @@ function validateQuotaCreate(object) {
1685
1740
  if (!isNonEmptyString(object.quotaType)) return left("invalid_quotaType");
1686
1741
  const limit = object.limit;
1687
1742
  const scopeStr = object.scope;
1688
- if (typeof scopeStr !== "string") return left("invalid_scope");
1743
+ const quotaTypeStr = object.quotaType;
1689
1744
  const scope = getStringAsEnum(scopeStr, QuotaScope);
1690
1745
  if (!scope) return left("invalid_scope");
1691
- const quotaTypeStr = object.quotaType;
1692
- if (typeof quotaTypeStr !== "string") return left("invalid_quotaType");
1693
- const quotaType = getStringAsEnum(quotaTypeStr, QuotaType);
1694
- if (!quotaType) return left("invalid_quotaType");
1695
- if (scope === "GLOBAL") {
1696
- if (quotaType !== "MAX_GROUPS" && quotaType !== "MAX_SPACES") return left("invalid_scope_quotaType_combination");
1697
- if (hasOwnProperty(object, "targetId") && object.targetId !== void 0) return left("invalid_scope_targetId_combination");
1698
- return right({
1699
- limit,
1700
- scope,
1701
- quotaType
1702
- });
1703
- }
1704
1746
  if (!hasOwnProperty(object, "targetId")) return left("missing_targetId");
1705
1747
  if (!isNonEmptyString(object.targetId) || !isUUIDv4(object.targetId)) return left("invalid_targetId");
1706
- if (scope === "GROUP") {
1707
- if (quotaType !== "MAX_ENTITIES_PER_GROUP") return left("invalid_scope_quotaType_combination");
1708
- return right({
1709
- limit,
1710
- scope,
1711
- quotaType,
1712
- targetId: object.targetId
1713
- });
1714
- }
1715
- if (scope === "TEMPLATE") {
1716
- if (quotaType !== "MAX_CONCURRENT_WORKFLOWS") return left("invalid_scope_quotaType_combination");
1717
- return right({
1718
- limit,
1719
- scope,
1720
- quotaType,
1721
- targetId: object.targetId
1722
- });
1723
- }
1724
- if (scope === "USER") {
1725
- if (quotaType !== "MAX_ROLES_PER_USER") return left("invalid_scope_quotaType_combination");
1726
- return right({
1727
- limit,
1728
- scope,
1729
- quotaType,
1730
- targetId: object.targetId
1731
- });
1732
- }
1733
- if (scope === "SPACE") {
1734
- if (quotaType !== "MAX_TEMPLATES") return left("invalid_scope_quotaType_combination");
1735
- return right({
1736
- limit,
1737
- scope,
1738
- quotaType,
1739
- targetId: object.targetId
1740
- });
1741
- }
1742
- return left("invalid_scope_quotaType_combination");
1748
+ const targetId = object.targetId;
1749
+ const quotaType = getStringAsEnum(quotaTypeStr, QUOTA_TYPE_ENUM_BY_SCOPE[scope]);
1750
+ if (quotaType === void 0) return left("invalid_scope_quotaType_combination");
1751
+ return right({
1752
+ limit,
1753
+ scope,
1754
+ quotaType,
1755
+ targetId
1756
+ });
1743
1757
  }
1744
1758
  function validateQuotaUpdate(object) {
1745
1759
  if (typeof object !== "object" || object === null) return left("malformed_object");
@@ -1747,5 +1761,28 @@ function validateQuotaUpdate(object) {
1747
1761
  if (!isNumber(object.limit) || !Number.isInteger(object.limit) || object.limit < 0) return left("invalid_limit");
1748
1762
  return right({ limit: object.limit });
1749
1763
  }
1764
+ function validateListQuotasParams(object) {
1765
+ const eitherSharedParams = validateSharedListParams(object);
1766
+ if (isLeft(eitherSharedParams)) return eitherSharedParams;
1767
+ if (typeof object !== "object" || object === null) return left("malformed_object");
1768
+ const result = { ...eitherSharedParams.right };
1769
+ if (hasOwnProperty(object, "scope") && object.scope !== void 0) {
1770
+ if (!isNonEmptyString(object.scope)) return left("invalid_scope");
1771
+ const scope = getStringAsEnum(object.scope, QuotaScope);
1772
+ if (!scope) return left("invalid_scope");
1773
+ result.scope = scope;
1774
+ }
1775
+ if (hasOwnProperty(object, "targetId") && object.targetId !== void 0) {
1776
+ if (!isNonEmptyString(object.targetId) || !isUUIDv4(object.targetId)) return left("invalid_targetId");
1777
+ result.targetId = object.targetId;
1778
+ }
1779
+ if (hasOwnProperty(object, "quotaType") && object.quotaType !== void 0) {
1780
+ if (!isNonEmptyString(object.quotaType)) return left("invalid_quotaType");
1781
+ const quotaType = getStringAsEnum(object.quotaType, QuotaType);
1782
+ if (!quotaType) return left("invalid_quotaType");
1783
+ result.quotaType = quotaType;
1784
+ }
1785
+ return right(result);
1786
+ }
1750
1787
  //#endregion
1751
- export { AgentTokenRequest, AndRule, EmailAction, GlobalQuota, GlobalQuotaBase, GlobalQuotaCreate, GroupQuota, GroupQuotaBase, GroupQuotaCreate, GroupRequirementRule, GroupScope, ListWorkflowVotesParams, ListWorkflowsParams, OrRule, OrgScope, QuotaScope, QuotaType, SortBy, SortDirection, SpaceQuota, SpaceQuotaBase, SpaceQuotaCreate, SpaceScope, TemplateQuota, TemplateQuotaBase, TemplateQuotaCreate, UserQuota, UserQuotaBase, UserQuotaCreate, VoteApprove, VoteVeto, VoteWithdraw, WebhookAction, WorkflowTemplateScope, WorkflowTemplateStatus, isAPIError, validateAPIError, validateAddGroupEntitiesRequest, validateAgentChallengeRequest, validateAgentChallengeResponse, validateAgentGet200Response, validateAgentRegistrationRequest, validateAgentRegistrationResponse, validateAgentTokenRequest, validateAgentTokenResponse, validateCanVoteResponse, validateConcurrencyControl, validateGetEntityInfo200Response, validateGetWorkflowParams, validateGetWorkflowVotes200Response, validateGroupCreate, validateGroupInfo, validateGroupScope, validateHealthResponse, validateInitiateCliLogin200Response, validateInitiateCliLoginRequest, validateListAgents200Response, validateListAgentsParams, validateListGroupEntities200Response, validateListGroups200Response, validateListGroupsParams, validateListOrganizationAdminsForOrg200Response, validateListRoleTemplates200Response, validateListSpaces200Response, validateListSpacesParams, validateListUsers200Response, validateListUsersParams, validateListWorkflowTemplates200Response, validateListWorkflowTemplatesParams, validateListWorkflowVotesParams, validateListWorkflows200Response, validateListWorkflowsParams, validateOidcCallbackRequest, validateOrganizationAdminCreate, validateOrganizationAdminRemove, validatePagination, validatePrivilegedTokenExchangeRequest, validatePrivilegedTokenResponse, validateQuotaCreate, validateQuotaUpdate, validateRefreshTokenRequest, validateRemoveGroupEntitiesRequest, validateRoleAssignmentRequest, validateRoleRemovalRequest, validateSharedListParams, validateSpaceCreate, validateSpaceScope, validateTokenRequest, validateTokenResponse, validateUser, validateUserCreate, validateWorkflowCreate, validateWorkflowTemplate, validateWorkflowTemplateCreate, validateWorkflowTemplateDeprecate, validateWorkflowTemplateScope, validateWorkflowTemplateUpdate, validateWorkflowVoteRequest };
1788
+ export { AgentTokenRequest, AndRule, EmailAction, GroupQuota, GroupQuotaBase, GroupQuotaCreate, GroupRequirementRule, GroupScope, ListWorkflowVotesParams, ListWorkflowsParams, OrRule, OrgQuota, OrgQuotaBase, OrgQuotaCreate, OrgScope, QuotaScope, QuotaType, SortBy, SortDirection, SpaceQuota, SpaceQuotaBase, SpaceQuotaCreate, SpaceScope, UserQuota, UserQuotaBase, UserQuotaCreate, VoteApprove, VoteVeto, VoteWithdraw, WebhookAction, WorkflowQuota, WorkflowQuotaBase, WorkflowQuotaCreate, WorkflowTemplateQuota, WorkflowTemplateQuotaBase, WorkflowTemplateQuotaCreate, WorkflowTemplateScope, WorkflowTemplateStatus, isAPIError, validateAPIError, validateAddGroupEntitiesRequest, validateAgentChallengeRequest, validateAgentChallengeResponse, validateAgentGet200Response, validateAgentRegistrationRequest, validateAgentRegistrationResponse, validateAgentTokenRequest, validateAgentTokenResponse, validateCanVoteResponse, validateConcurrencyControl, validateGetEntityInfo200Response, validateGetWorkflowParams, validateGetWorkflowVotes200Response, validateGroupCreate, validateGroupInfo, validateGroupScope, validateHealthResponse, validateInitiateCliLogin200Response, validateInitiateCliLoginRequest, validateListAgents200Response, validateListAgentsParams, validateListGroupEntities200Response, validateListGroups200Response, validateListGroupsParams, validateListOrganizationAdminsForOrg200Response, validateListQuotasParams, validateListRoleTemplates200Response, validateListSpaces200Response, validateListSpacesParams, validateListUsers200Response, validateListUsersParams, validateListWorkflowTemplates200Response, validateListWorkflowTemplatesParams, validateListWorkflowVotesParams, validateListWorkflows200Response, validateListWorkflowsParams, validateOidcCallbackRequest, validateOrganizationAdminCreate, validateOrganizationAdminRemove, validatePagination, validatePrivilegedTokenExchangeRequest, validatePrivilegedTokenResponse, validateQuotaCreate, validateQuotaUpdate, validateRefreshTokenRequest, validateRemoveGroupEntitiesRequest, validateRoleAssignmentRequest, validateRoleRemovalRequest, validateSharedListParams, 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.37
27
+ * The version of the OpenAPI document: 0.0.39
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.37
99
+ * The version of the OpenAPI document: 0.0.39
100
100
  *
101
101
  *
102
102
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -115,7 +115,7 @@ interface ConcurrencyControl {
115
115
  * Workflow Approval System API
116
116
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
117
117
  *
118
- * The version of the OpenAPI document: 0.0.37
118
+ * The version of the OpenAPI document: 0.0.39
119
119
  *
120
120
  *
121
121
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -147,7 +147,7 @@ declare namespace EmailAction {
147
147
  * Workflow Approval System API
148
148
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
149
149
  *
150
- * The version of the OpenAPI document: 0.0.37
150
+ * The version of the OpenAPI document: 0.0.39
151
151
  *
152
152
  *
153
153
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -164,7 +164,7 @@ interface GroupInfo {
164
164
  * Workflow Approval System API
165
165
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
166
166
  *
167
- * The version of the OpenAPI document: 0.0.37
167
+ * The version of the OpenAPI document: 0.0.39
168
168
  *
169
169
  *
170
170
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -203,7 +203,7 @@ interface Group {
203
203
  * Workflow Approval System API
204
204
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
205
205
  *
206
- * The version of the OpenAPI document: 0.0.37
206
+ * The version of the OpenAPI document: 0.0.39
207
207
  *
208
208
  *
209
209
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -236,7 +236,7 @@ interface ListGroups200Response {
236
236
  * Workflow Approval System API
237
237
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
238
238
  *
239
- * The version of the OpenAPI document: 0.0.37
239
+ * The version of the OpenAPI document: 0.0.39
240
240
  *
241
241
  *
242
242
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -263,7 +263,7 @@ interface UserSummary {
263
263
  * Workflow Approval System API
264
264
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
265
265
  *
266
- * The version of the OpenAPI document: 0.0.37
266
+ * The version of the OpenAPI document: 0.0.39
267
267
  *
268
268
  *
269
269
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -285,7 +285,7 @@ declare const WorkflowTemplateStatus: {
285
285
  * Workflow Approval System API
286
286
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
287
287
  *
288
- * The version of the OpenAPI document: 0.0.37
288
+ * The version of the OpenAPI document: 0.0.39
289
289
  *
290
290
  *
291
291
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -451,7 +451,7 @@ interface ListWorkflows200Response {
451
451
  * Workflow Approval System API
452
452
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
453
453
  *
454
- * The version of the OpenAPI document: 0.0.37
454
+ * The version of the OpenAPI document: 0.0.39
455
455
  *
456
456
  *
457
457
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -474,7 +474,7 @@ interface TokenResponse {
474
474
  * Workflow Approval System API
475
475
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
476
476
  *
477
- * The version of the OpenAPI document: 0.0.37
477
+ * The version of the OpenAPI document: 0.0.39
478
478
  *
479
479
  *
480
480
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -509,7 +509,7 @@ interface User {
509
509
  * Workflow Approval System API
510
510
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
511
511
  *
512
- * The version of the OpenAPI document: 0.0.37
512
+ * The version of the OpenAPI document: 0.0.39
513
513
  *
514
514
  *
515
515
  * 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.37
27
+ * The version of the OpenAPI document: 0.0.39
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.37
99
+ * The version of the OpenAPI document: 0.0.39
100
100
  *
101
101
  *
102
102
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -115,7 +115,7 @@ interface ConcurrencyControl {
115
115
  * Workflow Approval System API
116
116
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
117
117
  *
118
- * The version of the OpenAPI document: 0.0.37
118
+ * The version of the OpenAPI document: 0.0.39
119
119
  *
120
120
  *
121
121
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -147,7 +147,7 @@ declare namespace EmailAction {
147
147
  * Workflow Approval System API
148
148
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
149
149
  *
150
- * The version of the OpenAPI document: 0.0.37
150
+ * The version of the OpenAPI document: 0.0.39
151
151
  *
152
152
  *
153
153
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -164,7 +164,7 @@ interface GroupInfo {
164
164
  * Workflow Approval System API
165
165
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
166
166
  *
167
- * The version of the OpenAPI document: 0.0.37
167
+ * The version of the OpenAPI document: 0.0.39
168
168
  *
169
169
  *
170
170
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -203,7 +203,7 @@ interface Group {
203
203
  * Workflow Approval System API
204
204
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
205
205
  *
206
- * The version of the OpenAPI document: 0.0.37
206
+ * The version of the OpenAPI document: 0.0.39
207
207
  *
208
208
  *
209
209
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -236,7 +236,7 @@ interface ListGroups200Response {
236
236
  * Workflow Approval System API
237
237
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
238
238
  *
239
- * The version of the OpenAPI document: 0.0.37
239
+ * The version of the OpenAPI document: 0.0.39
240
240
  *
241
241
  *
242
242
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -263,7 +263,7 @@ interface UserSummary {
263
263
  * Workflow Approval System API
264
264
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
265
265
  *
266
- * The version of the OpenAPI document: 0.0.37
266
+ * The version of the OpenAPI document: 0.0.39
267
267
  *
268
268
  *
269
269
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -285,7 +285,7 @@ declare const WorkflowTemplateStatus: {
285
285
  * Workflow Approval System API
286
286
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
287
287
  *
288
- * The version of the OpenAPI document: 0.0.37
288
+ * The version of the OpenAPI document: 0.0.39
289
289
  *
290
290
  *
291
291
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -451,7 +451,7 @@ interface ListWorkflows200Response {
451
451
  * Workflow Approval System API
452
452
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
453
453
  *
454
- * The version of the OpenAPI document: 0.0.37
454
+ * The version of the OpenAPI document: 0.0.39
455
455
  *
456
456
  *
457
457
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -474,7 +474,7 @@ interface TokenResponse {
474
474
  * Workflow Approval System API
475
475
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
476
476
  *
477
- * The version of the OpenAPI document: 0.0.37
477
+ * The version of the OpenAPI document: 0.0.39
478
478
  *
479
479
  *
480
480
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -509,7 +509,7 @@ interface User {
509
509
  * Workflow Approval System API
510
510
  * API for a SaaS platform that allows customers to manage approvals for generic workflows, users, and groups.
511
511
  *
512
- * The version of the OpenAPI document: 0.0.37
512
+ * The version of the OpenAPI document: 0.0.39
513
513
  *
514
514
  *
515
515
  * 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.42",
5
+ "version": "0.0.44",
6
6
  "private": false,
7
7
  "type": "module",
8
8
  "main": "./dist/src/index.cjs",
@@ -39,6 +39,7 @@
39
39
  "lint:api": "spectral lint generated/openapi.yaml --ruleset .spectral.yaml",
40
40
  "build": "yarn generate:api && tsdown src/index.ts mocks/index.ts --format esm,cjs --dts",
41
41
  "generate:docs": "yarn bundle && redocly build-docs generated/openapi.yaml --output ./dist/index.html",
42
+ "serve:docs": "npx serve -l 10081 ./dist",
42
43
  "prepublishOnly": "yarn build",
43
44
  "format:prettier": "yarn prettier --config .prettierrc . --write",
44
45
  "test": "yarn jest --maxWorkers=50%",
@@ -47,14 +48,14 @@
47
48
  "devDependencies": {
48
49
  "@eslint/js": "10.0.1",
49
50
  "@openapitools/openapi-generator-cli": "^2.31.0",
50
- "@redocly/cli": "1.34.4",
51
+ "@redocly/cli": "2.28.1",
51
52
  "@stoplight/spectral-cli": "6.15.0",
52
53
  "@types/jest": "30.0.0",
53
54
  "@typescript-eslint/eslint-plugin": "8.56.1",
54
- "@typescript-eslint/parser": "8.56.1",
55
- "eslint": "10.0.2",
55
+ "@typescript-eslint/parser": "8.58.2",
56
+ "eslint": "10.2.1",
56
57
  "eslint-config-prettier": "10.1.8",
57
- "eslint-plugin-jest": "29.15.0",
58
+ "eslint-plugin-jest": "29.15.2",
58
59
  "eslint-plugin-n": "17.24.0",
59
60
  "eslint-plugin-prettier": "5.5.5",
60
61
  "jest": "30.2.0",