@flipdish/authorization 0.2.7 → 0.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api.ts CHANGED
@@ -146,17 +146,17 @@ export interface AssignRoleSuccessResponse {
146
146
  'message': string;
147
147
  }
148
148
  /**
149
- *
149
+ * Request to check if a user is authorized to perform an action(s). If you pass in an array of permissions, you will receive a single allow / deny response (based on an AND of the result for each permission). For a granular response to multiple permissions, call the /authorize/batch endpoint.
150
150
  * @export
151
151
  * @interface AuthenticateAndAuthorizeRequest
152
152
  */
153
153
  export interface AuthenticateAndAuthorizeRequest {
154
154
  /**
155
155
  * Incoming request headers to be used for authentication
156
- * @type {{ [key: string]: any; }}
156
+ * @type {{ [key: string]: string; }}
157
157
  * @memberof AuthenticateAndAuthorizeRequest
158
158
  */
159
- 'headers': { [key: string]: any; };
159
+ 'headers': { [key: string]: string; };
160
160
  /**
161
161
  *
162
162
  * @type {AuthorizationRequestAction}
@@ -178,10 +178,10 @@ export interface AuthenticateAndAuthorizeRequest {
178
178
  export interface AuthenticateAndAuthorizeResponse {
179
179
  /**
180
180
  *
181
- * @type {AuthenticateAndAuthorizeResponseAuthentication}
181
+ * @type {AuthenticateAndCheckIsInRoleResponseAuthentication}
182
182
  * @memberof AuthenticateAndAuthorizeResponse
183
183
  */
184
- 'authentication': AuthenticateAndAuthorizeResponseAuthentication;
184
+ 'authentication': AuthenticateAndCheckIsInRoleResponseAuthentication;
185
185
  /**
186
186
  *
187
187
  * @type {AuthorizationResponse}
@@ -192,25 +192,83 @@ export interface AuthenticateAndAuthorizeResponse {
192
192
  /**
193
193
  *
194
194
  * @export
195
- * @interface AuthenticateAndAuthorizeResponseAuthentication
195
+ * @interface AuthenticateAndCheckIsInRoleRequest
196
+ */
197
+ export interface AuthenticateAndCheckIsInRoleRequest {
198
+ /**
199
+ * Incoming request headers to be used for authentication
200
+ * @type {{ [key: string]: string; }}
201
+ * @memberof AuthenticateAndCheckIsInRoleRequest
202
+ */
203
+ 'headers': { [key: string]: string; };
204
+ /**
205
+ * Array of roles to check if the principal is in
206
+ * @type {Array<string>}
207
+ * @memberof AuthenticateAndCheckIsInRoleRequest
208
+ */
209
+ 'roles': Array<AuthenticateAndCheckIsInRoleRequestRolesEnum>;
210
+ /**
211
+ * How to check if the principal is in any/all of the roles
212
+ * @type {string}
213
+ * @memberof AuthenticateAndCheckIsInRoleRequest
214
+ */
215
+ 'checkMode'?: AuthenticateAndCheckIsInRoleRequestCheckModeEnum;
216
+ }
217
+
218
+ export const AuthenticateAndCheckIsInRoleRequestRolesEnum = {
219
+ Admin: 'Admin',
220
+ Factory: 'Factory'
221
+ } as const;
222
+
223
+ export type AuthenticateAndCheckIsInRoleRequestRolesEnum = typeof AuthenticateAndCheckIsInRoleRequestRolesEnum[keyof typeof AuthenticateAndCheckIsInRoleRequestRolesEnum];
224
+ export const AuthenticateAndCheckIsInRoleRequestCheckModeEnum = {
225
+ Any: 'any',
226
+ All: 'all'
227
+ } as const;
228
+
229
+ export type AuthenticateAndCheckIsInRoleRequestCheckModeEnum = typeof AuthenticateAndCheckIsInRoleRequestCheckModeEnum[keyof typeof AuthenticateAndCheckIsInRoleRequestCheckModeEnum];
230
+
231
+ /**
232
+ * Response containing whether the principal is in any/all of the roles
233
+ * @export
234
+ * @interface AuthenticateAndCheckIsInRoleResponse
235
+ */
236
+ export interface AuthenticateAndCheckIsInRoleResponse {
237
+ /**
238
+ *
239
+ * @type {AuthenticateAndCheckIsInRoleResponseAuthentication}
240
+ * @memberof AuthenticateAndCheckIsInRoleResponse
241
+ */
242
+ 'authentication': AuthenticateAndCheckIsInRoleResponseAuthentication;
243
+ /**
244
+ * result of the check - whether the principal is in any/all of the roles
245
+ * @type {boolean}
246
+ * @memberof AuthenticateAndCheckIsInRoleResponse
247
+ */
248
+ 'authorized': boolean;
249
+ }
250
+ /**
251
+ *
252
+ * @export
253
+ * @interface AuthenticateAndCheckIsInRoleResponseAuthentication
196
254
  */
197
- export interface AuthenticateAndAuthorizeResponseAuthentication {
255
+ export interface AuthenticateAndCheckIsInRoleResponseAuthentication {
198
256
  /**
199
257
  *
200
258
  * @type {AuthorizationRequestPrincipal}
201
- * @memberof AuthenticateAndAuthorizeResponseAuthentication
259
+ * @memberof AuthenticateAndCheckIsInRoleResponseAuthentication
202
260
  */
203
261
  'principal': AuthorizationRequestPrincipal;
204
262
  /**
205
263
  * Whether the user is authenticated
206
264
  * @type {boolean}
207
- * @memberof AuthenticateAndAuthorizeResponseAuthentication
265
+ * @memberof AuthenticateAndCheckIsInRoleResponseAuthentication
208
266
  */
209
267
  'authenticated': boolean;
210
268
  /**
211
269
  * The reason for the authentication failure
212
270
  * @type {string}
213
- * @memberof AuthenticateAndAuthorizeResponseAuthentication
271
+ * @memberof AuthenticateAndCheckIsInRoleResponseAuthentication
214
272
  */
215
273
  'reason'?: string;
216
274
  }
@@ -245,12 +303,6 @@ export interface AuthorizationBatchRequest {
245
303
  * @interface AuthorizationBatchResponse
246
304
  */
247
305
  export interface AuthorizationBatchResponse {
248
- /**
249
- *
250
- * @type {AuthorizationBatchResponseRequest}
251
- * @memberof AuthorizationBatchResponse
252
- */
253
- 'request': AuthorizationBatchResponseRequest;
254
306
  /**
255
307
  * Array of allowed resources
256
308
  * @type {Array<AuthorizationBatchResponseAllowedResourcesInner>}
@@ -302,25 +354,6 @@ export interface AuthorizationBatchResponseAllowedResourcesInner {
302
354
  */
303
355
  export type AuthorizationBatchResponseAllowedResourcesInnerResource = AuthorizationRequestResourceOneOf | AuthorizationRequestResourceOneOf1 | AuthorizationRequestResourceOneOf2 | AuthorizationRequestResourceOneOf3;
304
356
 
305
- /**
306
- * The request that was checked
307
- * @export
308
- * @interface AuthorizationBatchResponseRequest
309
- */
310
- export interface AuthorizationBatchResponseRequest {
311
- /**
312
- *
313
- * @type {AuthorizationRequestPrincipal}
314
- * @memberof AuthorizationBatchResponseRequest
315
- */
316
- 'principal': AuthorizationRequestPrincipal;
317
- /**
318
- *
319
- * @type {AuthorizationRequestAction}
320
- * @memberof AuthorizationBatchResponseRequest
321
- */
322
- 'action': AuthorizationRequestAction;
323
- }
324
357
  /**
325
358
  * Request to check if a user is authorized to perform an action(s). If you pass in an array of permissions, you will receive a single allow / deny response (based on an AND of the result for each permission).
326
359
  * @export
@@ -514,12 +547,6 @@ export type AuthorizationRequestResourceOneOf3TypeEnum = typeof AuthorizationReq
514
547
  * @interface AuthorizationResponse
515
548
  */
516
549
  export interface AuthorizationResponse {
517
- /**
518
- *
519
- * @type {AuthorizationRequest}
520
- * @memberof AuthorizationResponse
521
- */
522
- 'request': AuthorizationRequest;
523
550
  /**
524
551
  * Whether the action is allowed
525
552
  * @type {boolean}
@@ -552,6 +579,25 @@ export interface ErrorResponse {
552
579
  */
553
580
  'message': string;
554
581
  }
582
+ /**
583
+ * Feature based role and its permissions
584
+ * @export
585
+ * @interface FeatureBasedRole
586
+ */
587
+ export interface FeatureBasedRole {
588
+ /**
589
+ * Name of the role
590
+ * @type {string}
591
+ * @memberof FeatureBasedRole
592
+ */
593
+ 'name': string;
594
+ /**
595
+ *
596
+ * @type {Permissions & Array<string>}
597
+ * @memberof FeatureBasedRole
598
+ */
599
+ 'permissions': Permissions & Array<string>;
600
+ }
555
601
  /**
556
602
  * Request to get authorized brands for a principal or the authenticated user based on the headers. Either principal or headers must be provided, but not both. If both are provided, the principal will be used.
557
603
  * @export
@@ -566,10 +612,10 @@ export interface GetAuthorizedBrandsRequest {
566
612
  'principal'?: GetAuthorizedOrgsRequestPrincipal;
567
613
  /**
568
614
  * Incoming request headers to be used for authentication
569
- * @type {{ [key: string]: any; }}
615
+ * @type {{ [key: string]: string; }}
570
616
  * @memberof GetAuthorizedBrandsRequest
571
617
  */
572
- 'headers'?: { [key: string]: any; };
618
+ 'headers'?: { [key: string]: string; };
573
619
  /**
574
620
  * The action to check authorisation for
575
621
  * @type {string}
@@ -804,7 +850,9 @@ export const GetAuthorizedBrandsRequestActionEnum = {
804
850
  EditOrg: 'EditOrg',
805
851
  ViewOrg: 'ViewOrg',
806
852
  ViewWebhooks: 'ViewWebhooks',
807
- EditWebhooks: 'EditWebhooks'
853
+ EditWebhooks: 'EditWebhooks',
854
+ RoleAdmin: 'RoleAdmin',
855
+ RoleFactory: 'RoleFactory'
808
856
  } as const;
809
857
 
810
858
  export type GetAuthorizedBrandsRequestActionEnum = typeof GetAuthorizedBrandsRequestActionEnum[keyof typeof GetAuthorizedBrandsRequestActionEnum];
@@ -815,12 +863,6 @@ export type GetAuthorizedBrandsRequestActionEnum = typeof GetAuthorizedBrandsReq
815
863
  * @interface GetAuthorizedBrandsResponse
816
864
  */
817
865
  export interface GetAuthorizedBrandsResponse {
818
- /**
819
- *
820
- * @type {AuthorizationBatchResponseRequest}
821
- * @memberof GetAuthorizedBrandsResponse
822
- */
823
- 'request': AuthorizationBatchResponseRequest;
824
866
  /**
825
867
  * Array of allowed resources
826
868
  * @type {Array<AuthorizationBatchResponseAllowedResourcesInner>}
@@ -848,10 +890,10 @@ export interface GetAuthorizedOrgsRequest {
848
890
  'principal'?: GetAuthorizedOrgsRequestPrincipal;
849
891
  /**
850
892
  * Incoming request headers to be used for authentication
851
- * @type {{ [key: string]: any; }}
893
+ * @type {{ [key: string]: string; }}
852
894
  * @memberof GetAuthorizedOrgsRequest
853
895
  */
854
- 'headers'?: { [key: string]: any; };
896
+ 'headers'?: { [key: string]: string; };
855
897
  /**
856
898
  * The action to check authorisation for
857
899
  * @type {string}
@@ -1086,7 +1128,9 @@ export const GetAuthorizedOrgsRequestActionEnum = {
1086
1128
  EditOrg: 'EditOrg',
1087
1129
  ViewOrg: 'ViewOrg',
1088
1130
  ViewWebhooks: 'ViewWebhooks',
1089
- EditWebhooks: 'EditWebhooks'
1131
+ EditWebhooks: 'EditWebhooks',
1132
+ RoleAdmin: 'RoleAdmin',
1133
+ RoleFactory: 'RoleFactory'
1090
1134
  } as const;
1091
1135
 
1092
1136
  export type GetAuthorizedOrgsRequestActionEnum = typeof GetAuthorizedOrgsRequestActionEnum[keyof typeof GetAuthorizedOrgsRequestActionEnum];
@@ -1142,12 +1186,6 @@ export type GetAuthorizedOrgsRequestPrincipalTypeEnum = typeof GetAuthorizedOrgs
1142
1186
  * @interface GetAuthorizedOrgsResponse
1143
1187
  */
1144
1188
  export interface GetAuthorizedOrgsResponse {
1145
- /**
1146
- *
1147
- * @type {AuthorizationBatchResponseRequest}
1148
- * @memberof GetAuthorizedOrgsResponse
1149
- */
1150
- 'request': AuthorizationBatchResponseRequest;
1151
1189
  /**
1152
1190
  * Array of allowed resources
1153
1191
  * @type {Array<AuthorizationBatchResponseAllowedResourcesInner>}
@@ -1175,10 +1213,10 @@ export interface GetAuthorizedPropertiesRequest {
1175
1213
  'principal'?: GetAuthorizedOrgsRequestPrincipal;
1176
1214
  /**
1177
1215
  * Incoming request headers to be used for authentication
1178
- * @type {{ [key: string]: any; }}
1216
+ * @type {{ [key: string]: string; }}
1179
1217
  * @memberof GetAuthorizedPropertiesRequest
1180
1218
  */
1181
- 'headers'?: { [key: string]: any; };
1219
+ 'headers'?: { [key: string]: string; };
1182
1220
  /**
1183
1221
  * The action to check authorisation for
1184
1222
  * @type {string}
@@ -1413,7 +1451,9 @@ export const GetAuthorizedPropertiesRequestActionEnum = {
1413
1451
  EditOrg: 'EditOrg',
1414
1452
  ViewOrg: 'ViewOrg',
1415
1453
  ViewWebhooks: 'ViewWebhooks',
1416
- EditWebhooks: 'EditWebhooks'
1454
+ EditWebhooks: 'EditWebhooks',
1455
+ RoleAdmin: 'RoleAdmin',
1456
+ RoleFactory: 'RoleFactory'
1417
1457
  } as const;
1418
1458
 
1419
1459
  export type GetAuthorizedPropertiesRequestActionEnum = typeof GetAuthorizedPropertiesRequestActionEnum[keyof typeof GetAuthorizedPropertiesRequestActionEnum];
@@ -1424,12 +1464,6 @@ export type GetAuthorizedPropertiesRequestActionEnum = typeof GetAuthorizedPrope
1424
1464
  * @interface GetAuthorizedPropertiesResponse
1425
1465
  */
1426
1466
  export interface GetAuthorizedPropertiesResponse {
1427
- /**
1428
- *
1429
- * @type {AuthorizationBatchResponseRequest}
1430
- * @memberof GetAuthorizedPropertiesResponse
1431
- */
1432
- 'request': AuthorizationBatchResponseRequest;
1433
1467
  /**
1434
1468
  * Array of allowed resources
1435
1469
  * @type {Array<AuthorizationBatchResponseAllowedResourcesInner>}
@@ -1443,19 +1477,6 @@ export interface GetAuthorizedPropertiesResponse {
1443
1477
  */
1444
1478
  'deniedResources': Array<AuthorizationBatchResponseAllowedResourcesInner>;
1445
1479
  }
1446
- /**
1447
- * Successful permissions retrieval response
1448
- * @export
1449
- * @interface GetPermissionsSuccessResponse
1450
- */
1451
- export interface GetPermissionsSuccessResponse {
1452
- /**
1453
- *
1454
- * @type {Permissions & Array<string>}
1455
- * @memberof GetPermissionsSuccessResponse
1456
- */
1457
- 'permissions': Permissions & Array<string>;
1458
- }
1459
1480
  /**
1460
1481
  * Details for getting roles for a principal
1461
1482
  * @export
@@ -1529,7 +1550,7 @@ export interface GetPrincipalRolesSuccessResponseRolesInner {
1529
1550
  * @type {string}
1530
1551
  * @memberof GetPrincipalRolesSuccessResponseRolesInner
1531
1552
  */
1532
- 'resourceType': GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum;
1553
+ 'resourceType'?: GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum;
1533
1554
  /**
1534
1555
  * Organization ID
1535
1556
  * @type {string}
@@ -1572,7 +1593,8 @@ export const GetPrincipalRolesSuccessResponseRolesInnerPolicyTypeEnum = {
1572
1593
  Main: 'Main',
1573
1594
  BrandOverride: 'BrandOverride',
1574
1595
  OrgOverride: 'OrgOverride',
1575
- Forbidden: 'Forbidden'
1596
+ Forbidden: 'Forbidden',
1597
+ NamedRole: 'NamedRole'
1576
1598
  } as const;
1577
1599
 
1578
1600
  export type GetPrincipalRolesSuccessResponseRolesInnerPolicyTypeEnum = typeof GetPrincipalRolesSuccessResponseRolesInnerPolicyTypeEnum[keyof typeof GetPrincipalRolesSuccessResponseRolesInnerPolicyTypeEnum];
@@ -1598,19 +1620,6 @@ export type GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum = typeof
1598
1620
  */
1599
1621
  export interface GetPrincipalRolesSuccessResponseRolesInnerRoleName {
1600
1622
  }
1601
- /**
1602
- * Successful roles retrieval response
1603
- * @export
1604
- * @interface GetRolesSuccessResponse
1605
- */
1606
- export interface GetRolesSuccessResponse {
1607
- /**
1608
- * List of roles available and their permissions
1609
- * @type {Array<RolesInner>}
1610
- * @memberof GetRolesSuccessResponse
1611
- */
1612
- 'roles': Array<RolesInner>;
1613
- }
1614
1623
  /**
1615
1624
  * Successful user permissions retrieval response
1616
1625
  * @export
@@ -1884,7 +1893,9 @@ export const GetUserPermissionsSuccessResponseResourcesValuePermissionsEnum = {
1884
1893
  EditOrg: 'EditOrg',
1885
1894
  ViewOrg: 'ViewOrg',
1886
1895
  ViewWebhooks: 'ViewWebhooks',
1887
- EditWebhooks: 'EditWebhooks'
1896
+ EditWebhooks: 'EditWebhooks',
1897
+ RoleAdmin: 'RoleAdmin',
1898
+ RoleFactory: 'RoleFactory'
1888
1899
  } as const;
1889
1900
 
1890
1901
  export type GetUserPermissionsSuccessResponseResourcesValuePermissionsEnum = typeof GetUserPermissionsSuccessResponseResourcesValuePermissionsEnum[keyof typeof GetUserPermissionsSuccessResponseResourcesValuePermissionsEnum];
@@ -1896,6 +1907,71 @@ export type GetUserPermissionsSuccessResponseResourcesValuePermissionsEnum = typ
1896
1907
  */
1897
1908
  export interface GetUserPermissionsSuccessResponseResourcesValueResourceId {
1898
1909
  }
1910
+ /**
1911
+ *
1912
+ * @export
1913
+ * @interface IsInRoleRequest
1914
+ */
1915
+ export interface IsInRoleRequest {
1916
+ /**
1917
+ *
1918
+ * @type {AuthorizationRequestPrincipal}
1919
+ * @memberof IsInRoleRequest
1920
+ */
1921
+ 'principal': AuthorizationRequestPrincipal;
1922
+ /**
1923
+ * Array of roles to check if the principal is in
1924
+ * @type {Array<string>}
1925
+ * @memberof IsInRoleRequest
1926
+ */
1927
+ 'roles': Array<IsInRoleRequestRolesEnum>;
1928
+ /**
1929
+ * How to check if the principal is in any/all of the roles
1930
+ * @type {string}
1931
+ * @memberof IsInRoleRequest
1932
+ */
1933
+ 'checkMode'?: IsInRoleRequestCheckModeEnum;
1934
+ }
1935
+
1936
+ export const IsInRoleRequestRolesEnum = {
1937
+ Admin: 'Admin',
1938
+ Factory: 'Factory'
1939
+ } as const;
1940
+
1941
+ export type IsInRoleRequestRolesEnum = typeof IsInRoleRequestRolesEnum[keyof typeof IsInRoleRequestRolesEnum];
1942
+ export const IsInRoleRequestCheckModeEnum = {
1943
+ Any: 'any',
1944
+ All: 'all'
1945
+ } as const;
1946
+
1947
+ export type IsInRoleRequestCheckModeEnum = typeof IsInRoleRequestCheckModeEnum[keyof typeof IsInRoleRequestCheckModeEnum];
1948
+
1949
+ /**
1950
+ * Response containing whether the principal is in any/all of the roles
1951
+ * @export
1952
+ * @interface IsInRoleResponse
1953
+ */
1954
+ export interface IsInRoleResponse {
1955
+ /**
1956
+ * result of the check - whether the principal is in any/all of the roles
1957
+ * @type {boolean}
1958
+ * @memberof IsInRoleResponse
1959
+ */
1960
+ 'authorized': boolean;
1961
+ }
1962
+ /**
1963
+ * Successful feature based roles retrieval response
1964
+ * @export
1965
+ * @interface ListFeatureBasedRolesSuccessResponse
1966
+ */
1967
+ export interface ListFeatureBasedRolesSuccessResponse {
1968
+ /**
1969
+ *
1970
+ * @type {Array<FeatureBasedRole>}
1971
+ * @memberof ListFeatureBasedRolesSuccessResponse
1972
+ */
1973
+ 'roles': Array<FeatureBasedRole>;
1974
+ }
1899
1975
  /**
1900
1976
  *
1901
1977
  * @export
@@ -2008,37 +2084,39 @@ export const ListOrgRolesSuccessResponseValueValueRolesEnum = {
2008
2084
  export type ListOrgRolesSuccessResponseValueValueRolesEnum = typeof ListOrgRolesSuccessResponseValueValueRolesEnum[keyof typeof ListOrgRolesSuccessResponseValueValueRolesEnum];
2009
2085
 
2010
2086
  /**
2011
- *
2087
+ * Successful permissions retrieval response
2012
2088
  * @export
2013
- * @interface OrgPathParam
2089
+ * @interface ListPermissionsSuccessResponse
2014
2090
  */
2015
- export interface OrgPathParam {
2091
+ export interface ListPermissionsSuccessResponse {
2016
2092
  /**
2017
2093
  *
2018
- * @type {string}
2019
- * @memberof OrgPathParam
2094
+ * @type {Permissions & Array<string>}
2095
+ * @memberof ListPermissionsSuccessResponse
2020
2096
  */
2021
- 'orgId': string;
2097
+ 'permissions': Permissions & Array<string>;
2022
2098
  }
2023
2099
  /**
2024
- *
2100
+ * Successful roles retrieval response
2025
2101
  * @export
2026
- * @interface PathParams
2102
+ * @interface ListRolesSuccessResponse
2027
2103
  */
2028
- export interface PathParams {
2029
- /**
2030
- *
2031
- * @type {string}
2032
- * @memberof PathParams
2033
- */
2034
- 'orgId': string;
2104
+ export interface ListRolesSuccessResponse {
2035
2105
  /**
2036
- *
2037
- * @type {string}
2038
- * @memberof PathParams
2106
+ * List of named roles
2107
+ * @type {Array<string>}
2108
+ * @memberof ListRolesSuccessResponse
2039
2109
  */
2040
- 'userId': string;
2110
+ 'roles': Array<ListRolesSuccessResponseRolesEnum>;
2041
2111
  }
2112
+
2113
+ export const ListRolesSuccessResponseRolesEnum = {
2114
+ Admin: 'Admin',
2115
+ Factory: 'Factory'
2116
+ } as const;
2117
+
2118
+ export type ListRolesSuccessResponseRolesEnum = typeof ListRolesSuccessResponseRolesEnum[keyof typeof ListRolesSuccessResponseRolesEnum];
2119
+
2042
2120
  /**
2043
2121
  *
2044
2122
  * @export
@@ -2271,7 +2349,9 @@ export const Permissions = {
2271
2349
  EditOrg: 'EditOrg',
2272
2350
  ViewOrg: 'ViewOrg',
2273
2351
  ViewWebhooks: 'ViewWebhooks',
2274
- EditWebhooks: 'EditWebhooks'
2352
+ EditWebhooks: 'EditWebhooks',
2353
+ RoleAdmin: 'RoleAdmin',
2354
+ RoleFactory: 'RoleFactory'
2275
2355
  } as const;
2276
2356
 
2277
2357
  export type Permissions = typeof Permissions[keyof typeof Permissions];
@@ -2430,25 +2510,6 @@ export interface RevokeRoleSuccessResponse {
2430
2510
  */
2431
2511
  'message': string;
2432
2512
  }
2433
- /**
2434
- *
2435
- * @export
2436
- * @interface RolesInner
2437
- */
2438
- export interface RolesInner {
2439
- /**
2440
- * Name of the role
2441
- * @type {string}
2442
- * @memberof RolesInner
2443
- */
2444
- 'name': string;
2445
- /**
2446
- *
2447
- * @type {Permissions & Array<string>}
2448
- * @memberof RolesInner
2449
- */
2450
- 'permissions': Permissions & Array<string>;
2451
- }
2452
2513
  /**
2453
2514
  *
2454
2515
  * @export
@@ -2634,6 +2695,43 @@ export const AuthorizationApiAxiosParamCreator = function (configuration?: Confi
2634
2695
  options: localVarRequestOptions,
2635
2696
  };
2636
2697
  },
2698
+ /**
2699
+ * Authenticate and check if a user is in any/all of the roles
2700
+ * @summary Authenticate and Check Is In Role
2701
+ * @param {AuthenticateAndCheckIsInRoleRequest} [authenticateAndCheckIsInRoleRequest]
2702
+ * @param {*} [options] Override http request option.
2703
+ * @throws {RequiredError}
2704
+ */
2705
+ authenticateAndCheckIsInRole: async (authenticateAndCheckIsInRoleRequest?: AuthenticateAndCheckIsInRoleRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2706
+ const localVarPath = `/authenticateAndCheckIsInRole`;
2707
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2708
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2709
+ let baseOptions;
2710
+ if (configuration) {
2711
+ baseOptions = configuration.baseOptions;
2712
+ }
2713
+
2714
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2715
+ const localVarHeaderParameter = {} as any;
2716
+ const localVarQueryParameter = {} as any;
2717
+
2718
+ // authentication ApiKeyAuth required
2719
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
2720
+
2721
+
2722
+
2723
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2724
+
2725
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2726
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2727
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2728
+ localVarRequestOptions.data = serializeDataIfNeeded(authenticateAndCheckIsInRoleRequest, localVarRequestOptions, configuration)
2729
+
2730
+ return {
2731
+ url: toPathString(localVarUrlObj),
2732
+ options: localVarRequestOptions,
2733
+ };
2734
+ },
2637
2735
  /**
2638
2736
  * Check if a user is authorized to perform an action
2639
2737
  * @summary Authorize Request
@@ -2703,6 +2801,43 @@ export const AuthorizationApiAxiosParamCreator = function (configuration?: Confi
2703
2801
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2704
2802
  localVarRequestOptions.data = serializeDataIfNeeded(authorizationBatchRequest, localVarRequestOptions, configuration)
2705
2803
 
2804
+ return {
2805
+ url: toPathString(localVarUrlObj),
2806
+ options: localVarRequestOptions,
2807
+ };
2808
+ },
2809
+ /**
2810
+ * Check if a user is in any/all of the roles
2811
+ * @summary Check Is In Role
2812
+ * @param {IsInRoleRequest} [isInRoleRequest]
2813
+ * @param {*} [options] Override http request option.
2814
+ * @throws {RequiredError}
2815
+ */
2816
+ checkIsInRole: async (isInRoleRequest?: IsInRoleRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2817
+ const localVarPath = `/checkIsInRole`;
2818
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2819
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2820
+ let baseOptions;
2821
+ if (configuration) {
2822
+ baseOptions = configuration.baseOptions;
2823
+ }
2824
+
2825
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2826
+ const localVarHeaderParameter = {} as any;
2827
+ const localVarQueryParameter = {} as any;
2828
+
2829
+ // authentication ApiKeyAuth required
2830
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
2831
+
2832
+
2833
+
2834
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2835
+
2836
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2837
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2838
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2839
+ localVarRequestOptions.data = serializeDataIfNeeded(isInRoleRequest, localVarRequestOptions, configuration)
2840
+
2706
2841
  return {
2707
2842
  url: toPathString(localVarUrlObj),
2708
2843
  options: localVarRequestOptions,
@@ -2731,6 +2866,19 @@ export const AuthorizationApiFp = function(configuration?: Configuration) {
2731
2866
  const localVarOperationServerBasePath = operationServerMap['AuthorizationApi.authenticateAndAuthorize']?.[localVarOperationServerIndex]?.url;
2732
2867
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2733
2868
  },
2869
+ /**
2870
+ * Authenticate and check if a user is in any/all of the roles
2871
+ * @summary Authenticate and Check Is In Role
2872
+ * @param {AuthenticateAndCheckIsInRoleRequest} [authenticateAndCheckIsInRoleRequest]
2873
+ * @param {*} [options] Override http request option.
2874
+ * @throws {RequiredError}
2875
+ */
2876
+ async authenticateAndCheckIsInRole(authenticateAndCheckIsInRoleRequest?: AuthenticateAndCheckIsInRoleRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthenticateAndCheckIsInRoleResponse>> {
2877
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authenticateAndCheckIsInRole(authenticateAndCheckIsInRoleRequest, options);
2878
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2879
+ const localVarOperationServerBasePath = operationServerMap['AuthorizationApi.authenticateAndCheckIsInRole']?.[localVarOperationServerIndex]?.url;
2880
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2881
+ },
2734
2882
  /**
2735
2883
  * Check if a user is authorized to perform an action
2736
2884
  * @summary Authorize Request
@@ -2757,6 +2905,19 @@ export const AuthorizationApiFp = function(configuration?: Configuration) {
2757
2905
  const localVarOperationServerBasePath = operationServerMap['AuthorizationApi.authorizeBatch']?.[localVarOperationServerIndex]?.url;
2758
2906
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2759
2907
  },
2908
+ /**
2909
+ * Check if a user is in any/all of the roles
2910
+ * @summary Check Is In Role
2911
+ * @param {IsInRoleRequest} [isInRoleRequest]
2912
+ * @param {*} [options] Override http request option.
2913
+ * @throws {RequiredError}
2914
+ */
2915
+ async checkIsInRole(isInRoleRequest?: IsInRoleRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IsInRoleResponse>> {
2916
+ const localVarAxiosArgs = await localVarAxiosParamCreator.checkIsInRole(isInRoleRequest, options);
2917
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2918
+ const localVarOperationServerBasePath = operationServerMap['AuthorizationApi.checkIsInRole']?.[localVarOperationServerIndex]?.url;
2919
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2920
+ },
2760
2921
  }
2761
2922
  };
2762
2923
 
@@ -2777,6 +2938,16 @@ export const AuthorizationApiFactory = function (configuration?: Configuration,
2777
2938
  authenticateAndAuthorize(authenticateAndAuthorizeRequest: AuthenticateAndAuthorizeRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthenticateAndAuthorizeResponse> {
2778
2939
  return localVarFp.authenticateAndAuthorize(authenticateAndAuthorizeRequest, options).then((request) => request(axios, basePath));
2779
2940
  },
2941
+ /**
2942
+ * Authenticate and check if a user is in any/all of the roles
2943
+ * @summary Authenticate and Check Is In Role
2944
+ * @param {AuthenticateAndCheckIsInRoleRequest} [authenticateAndCheckIsInRoleRequest]
2945
+ * @param {*} [options] Override http request option.
2946
+ * @throws {RequiredError}
2947
+ */
2948
+ authenticateAndCheckIsInRole(authenticateAndCheckIsInRoleRequest?: AuthenticateAndCheckIsInRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthenticateAndCheckIsInRoleResponse> {
2949
+ return localVarFp.authenticateAndCheckIsInRole(authenticateAndCheckIsInRoleRequest, options).then((request) => request(axios, basePath));
2950
+ },
2780
2951
  /**
2781
2952
  * Check if a user is authorized to perform an action
2782
2953
  * @summary Authorize Request
@@ -2797,6 +2968,16 @@ export const AuthorizationApiFactory = function (configuration?: Configuration,
2797
2968
  authorizeBatch(authorizationBatchRequest?: AuthorizationBatchRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthorizationBatchResponse> {
2798
2969
  return localVarFp.authorizeBatch(authorizationBatchRequest, options).then((request) => request(axios, basePath));
2799
2970
  },
2971
+ /**
2972
+ * Check if a user is in any/all of the roles
2973
+ * @summary Check Is In Role
2974
+ * @param {IsInRoleRequest} [isInRoleRequest]
2975
+ * @param {*} [options] Override http request option.
2976
+ * @throws {RequiredError}
2977
+ */
2978
+ checkIsInRole(isInRoleRequest?: IsInRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<IsInRoleResponse> {
2979
+ return localVarFp.checkIsInRole(isInRoleRequest, options).then((request) => request(axios, basePath));
2980
+ },
2800
2981
  };
2801
2982
  };
2802
2983
 
@@ -2819,6 +3000,18 @@ export class AuthorizationApi extends BaseAPI {
2819
3000
  return AuthorizationApiFp(this.configuration).authenticateAndAuthorize(authenticateAndAuthorizeRequest, options).then((request) => request(this.axios, this.basePath));
2820
3001
  }
2821
3002
 
3003
+ /**
3004
+ * Authenticate and check if a user is in any/all of the roles
3005
+ * @summary Authenticate and Check Is In Role
3006
+ * @param {AuthenticateAndCheckIsInRoleRequest} [authenticateAndCheckIsInRoleRequest]
3007
+ * @param {*} [options] Override http request option.
3008
+ * @throws {RequiredError}
3009
+ * @memberof AuthorizationApi
3010
+ */
3011
+ public authenticateAndCheckIsInRole(authenticateAndCheckIsInRoleRequest?: AuthenticateAndCheckIsInRoleRequest, options?: RawAxiosRequestConfig) {
3012
+ return AuthorizationApiFp(this.configuration).authenticateAndCheckIsInRole(authenticateAndCheckIsInRoleRequest, options).then((request) => request(this.axios, this.basePath));
3013
+ }
3014
+
2822
3015
  /**
2823
3016
  * Check if a user is authorized to perform an action
2824
3017
  * @summary Authorize Request
@@ -2842,6 +3035,18 @@ export class AuthorizationApi extends BaseAPI {
2842
3035
  public authorizeBatch(authorizationBatchRequest?: AuthorizationBatchRequest, options?: RawAxiosRequestConfig) {
2843
3036
  return AuthorizationApiFp(this.configuration).authorizeBatch(authorizationBatchRequest, options).then((request) => request(this.axios, this.basePath));
2844
3037
  }
3038
+
3039
+ /**
3040
+ * Check if a user is in any/all of the roles
3041
+ * @summary Check Is In Role
3042
+ * @param {IsInRoleRequest} [isInRoleRequest]
3043
+ * @param {*} [options] Override http request option.
3044
+ * @throws {RequiredError}
3045
+ * @memberof AuthorizationApi
3046
+ */
3047
+ public checkIsInRole(isInRoleRequest?: IsInRoleRequest, options?: RawAxiosRequestConfig) {
3048
+ return AuthorizationApiFp(this.configuration).checkIsInRole(isInRoleRequest, options).then((request) => request(this.axios, this.basePath));
3049
+ }
2845
3050
  }
2846
3051
 
2847
3052
 
@@ -3116,11 +3321,143 @@ export class AuthorizedEntitiesApi extends BaseAPI {
3116
3321
 
3117
3322
 
3118
3323
  /**
3119
- * PermissionsApi - axios parameter creator
3324
+ * ConfigurationDataApi - axios parameter creator
3120
3325
  * @export
3121
3326
  */
3122
- export const PermissionsApiAxiosParamCreator = function (configuration?: Configuration) {
3327
+ export const ConfigurationDataApiAxiosParamCreator = function (configuration?: Configuration) {
3123
3328
  return {
3329
+ /**
3330
+ * List the available feature based roles
3331
+ * @summary List Feature Based Roles
3332
+ * @param {*} [options] Override http request option.
3333
+ * @throws {RequiredError}
3334
+ */
3335
+ configListFeatureBasedRoles: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3336
+ const localVarPath = `/config/featureBasedRoles`;
3337
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3338
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3339
+ let baseOptions;
3340
+ if (configuration) {
3341
+ baseOptions = configuration.baseOptions;
3342
+ }
3343
+
3344
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3345
+ const localVarHeaderParameter = {} as any;
3346
+ const localVarQueryParameter = {} as any;
3347
+
3348
+ // authentication ApiKeyAuth required
3349
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3350
+
3351
+
3352
+
3353
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3354
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3355
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3356
+
3357
+ return {
3358
+ url: toPathString(localVarUrlObj),
3359
+ options: localVarRequestOptions,
3360
+ };
3361
+ },
3362
+ /**
3363
+ * List the available permissions
3364
+ * @summary List Permissions
3365
+ * @param {*} [options] Override http request option.
3366
+ * @throws {RequiredError}
3367
+ */
3368
+ configListPermissions: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3369
+ const localVarPath = `/config/permissions`;
3370
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3371
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3372
+ let baseOptions;
3373
+ if (configuration) {
3374
+ baseOptions = configuration.baseOptions;
3375
+ }
3376
+
3377
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3378
+ const localVarHeaderParameter = {} as any;
3379
+ const localVarQueryParameter = {} as any;
3380
+
3381
+ // authentication ApiKeyAuth required
3382
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3383
+
3384
+
3385
+
3386
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3387
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3388
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3389
+
3390
+ return {
3391
+ url: toPathString(localVarUrlObj),
3392
+ options: localVarRequestOptions,
3393
+ };
3394
+ },
3395
+ /**
3396
+ * List the available roles
3397
+ * @summary List Roles
3398
+ * @param {*} [options] Override http request option.
3399
+ * @throws {RequiredError}
3400
+ */
3401
+ configListRoles: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3402
+ const localVarPath = `/config/roles`;
3403
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3404
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3405
+ let baseOptions;
3406
+ if (configuration) {
3407
+ baseOptions = configuration.baseOptions;
3408
+ }
3409
+
3410
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3411
+ const localVarHeaderParameter = {} as any;
3412
+ const localVarQueryParameter = {} as any;
3413
+
3414
+ // authentication ApiKeyAuth required
3415
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3416
+
3417
+
3418
+
3419
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3420
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3421
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3422
+
3423
+ return {
3424
+ url: toPathString(localVarUrlObj),
3425
+ options: localVarRequestOptions,
3426
+ };
3427
+ },
3428
+ /**
3429
+ * List the available feature based roles
3430
+ * @summary List Feature Based Roles
3431
+ * @param {*} [options] Override http request option.
3432
+ * @throws {RequiredError}
3433
+ */
3434
+ listFeatureBasedRoles: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3435
+ const localVarPath = `/featureBasedRoles`;
3436
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3437
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3438
+ let baseOptions;
3439
+ if (configuration) {
3440
+ baseOptions = configuration.baseOptions;
3441
+ }
3442
+
3443
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3444
+ const localVarHeaderParameter = {} as any;
3445
+ const localVarQueryParameter = {} as any;
3446
+
3447
+ // authentication ApiKeyAuth required
3448
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3449
+
3450
+
3451
+
3452
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3453
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3454
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3455
+
3456
+ return {
3457
+ url: toPathString(localVarUrlObj),
3458
+ options: localVarRequestOptions,
3459
+ };
3460
+ },
3124
3461
  /**
3125
3462
  * List the available permissions
3126
3463
  * @summary List Permissions
@@ -3145,6 +3482,39 @@ export const PermissionsApiAxiosParamCreator = function (configuration?: Configu
3145
3482
 
3146
3483
 
3147
3484
 
3485
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3486
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3487
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3488
+
3489
+ return {
3490
+ url: toPathString(localVarUrlObj),
3491
+ options: localVarRequestOptions,
3492
+ };
3493
+ },
3494
+ /**
3495
+ * List the available roles
3496
+ * @summary List Roles
3497
+ * @param {*} [options] Override http request option.
3498
+ * @throws {RequiredError}
3499
+ */
3500
+ listRoles: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3501
+ const localVarPath = `/roles`;
3502
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3503
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3504
+ let baseOptions;
3505
+ if (configuration) {
3506
+ baseOptions = configuration.baseOptions;
3507
+ }
3508
+
3509
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3510
+ const localVarHeaderParameter = {} as any;
3511
+ const localVarQueryParameter = {} as any;
3512
+
3513
+ // authentication ApiKeyAuth required
3514
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3515
+
3516
+
3517
+
3148
3518
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3149
3519
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3150
3520
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -3158,62 +3528,222 @@ export const PermissionsApiAxiosParamCreator = function (configuration?: Configu
3158
3528
  };
3159
3529
 
3160
3530
  /**
3161
- * PermissionsApi - functional programming interface
3531
+ * ConfigurationDataApi - functional programming interface
3162
3532
  * @export
3163
3533
  */
3164
- export const PermissionsApiFp = function(configuration?: Configuration) {
3165
- const localVarAxiosParamCreator = PermissionsApiAxiosParamCreator(configuration)
3534
+ export const ConfigurationDataApiFp = function(configuration?: Configuration) {
3535
+ const localVarAxiosParamCreator = ConfigurationDataApiAxiosParamCreator(configuration)
3166
3536
  return {
3537
+ /**
3538
+ * List the available feature based roles
3539
+ * @summary List Feature Based Roles
3540
+ * @param {*} [options] Override http request option.
3541
+ * @throws {RequiredError}
3542
+ */
3543
+ async configListFeatureBasedRoles(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListFeatureBasedRolesSuccessResponse>> {
3544
+ const localVarAxiosArgs = await localVarAxiosParamCreator.configListFeatureBasedRoles(options);
3545
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3546
+ const localVarOperationServerBasePath = operationServerMap['ConfigurationDataApi.configListFeatureBasedRoles']?.[localVarOperationServerIndex]?.url;
3547
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3548
+ },
3549
+ /**
3550
+ * List the available permissions
3551
+ * @summary List Permissions
3552
+ * @param {*} [options] Override http request option.
3553
+ * @throws {RequiredError}
3554
+ */
3555
+ async configListPermissions(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPermissionsSuccessResponse>> {
3556
+ const localVarAxiosArgs = await localVarAxiosParamCreator.configListPermissions(options);
3557
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3558
+ const localVarOperationServerBasePath = operationServerMap['ConfigurationDataApi.configListPermissions']?.[localVarOperationServerIndex]?.url;
3559
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3560
+ },
3561
+ /**
3562
+ * List the available roles
3563
+ * @summary List Roles
3564
+ * @param {*} [options] Override http request option.
3565
+ * @throws {RequiredError}
3566
+ */
3567
+ async configListRoles(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRolesSuccessResponse>> {
3568
+ const localVarAxiosArgs = await localVarAxiosParamCreator.configListRoles(options);
3569
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3570
+ const localVarOperationServerBasePath = operationServerMap['ConfigurationDataApi.configListRoles']?.[localVarOperationServerIndex]?.url;
3571
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3572
+ },
3573
+ /**
3574
+ * List the available feature based roles
3575
+ * @summary List Feature Based Roles
3576
+ * @param {*} [options] Override http request option.
3577
+ * @throws {RequiredError}
3578
+ */
3579
+ async listFeatureBasedRoles(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListFeatureBasedRolesSuccessResponse>> {
3580
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listFeatureBasedRoles(options);
3581
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3582
+ const localVarOperationServerBasePath = operationServerMap['ConfigurationDataApi.listFeatureBasedRoles']?.[localVarOperationServerIndex]?.url;
3583
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3584
+ },
3167
3585
  /**
3168
3586
  * List the available permissions
3169
3587
  * @summary List Permissions
3170
3588
  * @param {*} [options] Override http request option.
3171
3589
  * @throws {RequiredError}
3172
3590
  */
3173
- async listPermissions(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPermissionsSuccessResponse>> {
3591
+ async listPermissions(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPermissionsSuccessResponse>> {
3174
3592
  const localVarAxiosArgs = await localVarAxiosParamCreator.listPermissions(options);
3175
3593
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3176
- const localVarOperationServerBasePath = operationServerMap['PermissionsApi.listPermissions']?.[localVarOperationServerIndex]?.url;
3594
+ const localVarOperationServerBasePath = operationServerMap['ConfigurationDataApi.listPermissions']?.[localVarOperationServerIndex]?.url;
3595
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3596
+ },
3597
+ /**
3598
+ * List the available roles
3599
+ * @summary List Roles
3600
+ * @param {*} [options] Override http request option.
3601
+ * @throws {RequiredError}
3602
+ */
3603
+ async listRoles(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRolesSuccessResponse>> {
3604
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listRoles(options);
3605
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3606
+ const localVarOperationServerBasePath = operationServerMap['ConfigurationDataApi.listRoles']?.[localVarOperationServerIndex]?.url;
3177
3607
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3178
3608
  },
3179
3609
  }
3180
3610
  };
3181
3611
 
3182
3612
  /**
3183
- * PermissionsApi - factory interface
3613
+ * ConfigurationDataApi - factory interface
3184
3614
  * @export
3185
3615
  */
3186
- export const PermissionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3187
- const localVarFp = PermissionsApiFp(configuration)
3616
+ export const ConfigurationDataApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3617
+ const localVarFp = ConfigurationDataApiFp(configuration)
3188
3618
  return {
3619
+ /**
3620
+ * List the available feature based roles
3621
+ * @summary List Feature Based Roles
3622
+ * @param {*} [options] Override http request option.
3623
+ * @throws {RequiredError}
3624
+ */
3625
+ configListFeatureBasedRoles(options?: RawAxiosRequestConfig): AxiosPromise<ListFeatureBasedRolesSuccessResponse> {
3626
+ return localVarFp.configListFeatureBasedRoles(options).then((request) => request(axios, basePath));
3627
+ },
3628
+ /**
3629
+ * List the available permissions
3630
+ * @summary List Permissions
3631
+ * @param {*} [options] Override http request option.
3632
+ * @throws {RequiredError}
3633
+ */
3634
+ configListPermissions(options?: RawAxiosRequestConfig): AxiosPromise<ListPermissionsSuccessResponse> {
3635
+ return localVarFp.configListPermissions(options).then((request) => request(axios, basePath));
3636
+ },
3637
+ /**
3638
+ * List the available roles
3639
+ * @summary List Roles
3640
+ * @param {*} [options] Override http request option.
3641
+ * @throws {RequiredError}
3642
+ */
3643
+ configListRoles(options?: RawAxiosRequestConfig): AxiosPromise<ListRolesSuccessResponse> {
3644
+ return localVarFp.configListRoles(options).then((request) => request(axios, basePath));
3645
+ },
3646
+ /**
3647
+ * List the available feature based roles
3648
+ * @summary List Feature Based Roles
3649
+ * @param {*} [options] Override http request option.
3650
+ * @throws {RequiredError}
3651
+ */
3652
+ listFeatureBasedRoles(options?: RawAxiosRequestConfig): AxiosPromise<ListFeatureBasedRolesSuccessResponse> {
3653
+ return localVarFp.listFeatureBasedRoles(options).then((request) => request(axios, basePath));
3654
+ },
3189
3655
  /**
3190
3656
  * List the available permissions
3191
3657
  * @summary List Permissions
3192
3658
  * @param {*} [options] Override http request option.
3193
3659
  * @throws {RequiredError}
3194
3660
  */
3195
- listPermissions(options?: RawAxiosRequestConfig): AxiosPromise<GetPermissionsSuccessResponse> {
3661
+ listPermissions(options?: RawAxiosRequestConfig): AxiosPromise<ListPermissionsSuccessResponse> {
3196
3662
  return localVarFp.listPermissions(options).then((request) => request(axios, basePath));
3197
3663
  },
3664
+ /**
3665
+ * List the available roles
3666
+ * @summary List Roles
3667
+ * @param {*} [options] Override http request option.
3668
+ * @throws {RequiredError}
3669
+ */
3670
+ listRoles(options?: RawAxiosRequestConfig): AxiosPromise<ListRolesSuccessResponse> {
3671
+ return localVarFp.listRoles(options).then((request) => request(axios, basePath));
3672
+ },
3198
3673
  };
3199
3674
  };
3200
3675
 
3201
3676
  /**
3202
- * PermissionsApi - object-oriented interface
3677
+ * ConfigurationDataApi - object-oriented interface
3203
3678
  * @export
3204
- * @class PermissionsApi
3679
+ * @class ConfigurationDataApi
3205
3680
  * @extends {BaseAPI}
3206
3681
  */
3207
- export class PermissionsApi extends BaseAPI {
3682
+ export class ConfigurationDataApi extends BaseAPI {
3683
+ /**
3684
+ * List the available feature based roles
3685
+ * @summary List Feature Based Roles
3686
+ * @param {*} [options] Override http request option.
3687
+ * @throws {RequiredError}
3688
+ * @memberof ConfigurationDataApi
3689
+ */
3690
+ public configListFeatureBasedRoles(options?: RawAxiosRequestConfig) {
3691
+ return ConfigurationDataApiFp(this.configuration).configListFeatureBasedRoles(options).then((request) => request(this.axios, this.basePath));
3692
+ }
3693
+
3208
3694
  /**
3209
3695
  * List the available permissions
3210
3696
  * @summary List Permissions
3211
3697
  * @param {*} [options] Override http request option.
3212
3698
  * @throws {RequiredError}
3213
- * @memberof PermissionsApi
3699
+ * @memberof ConfigurationDataApi
3700
+ */
3701
+ public configListPermissions(options?: RawAxiosRequestConfig) {
3702
+ return ConfigurationDataApiFp(this.configuration).configListPermissions(options).then((request) => request(this.axios, this.basePath));
3703
+ }
3704
+
3705
+ /**
3706
+ * List the available roles
3707
+ * @summary List Roles
3708
+ * @param {*} [options] Override http request option.
3709
+ * @throws {RequiredError}
3710
+ * @memberof ConfigurationDataApi
3711
+ */
3712
+ public configListRoles(options?: RawAxiosRequestConfig) {
3713
+ return ConfigurationDataApiFp(this.configuration).configListRoles(options).then((request) => request(this.axios, this.basePath));
3714
+ }
3715
+
3716
+ /**
3717
+ * List the available feature based roles
3718
+ * @summary List Feature Based Roles
3719
+ * @param {*} [options] Override http request option.
3720
+ * @throws {RequiredError}
3721
+ * @memberof ConfigurationDataApi
3722
+ */
3723
+ public listFeatureBasedRoles(options?: RawAxiosRequestConfig) {
3724
+ return ConfigurationDataApiFp(this.configuration).listFeatureBasedRoles(options).then((request) => request(this.axios, this.basePath));
3725
+ }
3726
+
3727
+ /**
3728
+ * List the available permissions
3729
+ * @summary List Permissions
3730
+ * @param {*} [options] Override http request option.
3731
+ * @throws {RequiredError}
3732
+ * @memberof ConfigurationDataApi
3214
3733
  */
3215
3734
  public listPermissions(options?: RawAxiosRequestConfig) {
3216
- return PermissionsApiFp(this.configuration).listPermissions(options).then((request) => request(this.axios, this.basePath));
3735
+ return ConfigurationDataApiFp(this.configuration).listPermissions(options).then((request) => request(this.axios, this.basePath));
3736
+ }
3737
+
3738
+ /**
3739
+ * List the available roles
3740
+ * @summary List Roles
3741
+ * @param {*} [options] Override http request option.
3742
+ * @throws {RequiredError}
3743
+ * @memberof ConfigurationDataApi
3744
+ */
3745
+ public listRoles(options?: RawAxiosRequestConfig) {
3746
+ return ConfigurationDataApiFp(this.configuration).listRoles(options).then((request) => request(this.axios, this.basePath));
3217
3747
  }
3218
3748
  }
3219
3749