@flipdish/authorization 0.0.3-rc.1756733706 → 0.0.3-rc.1766093275

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
@@ -30,7 +30,7 @@ import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerM
30
30
  */
31
31
  export interface AssignRoleRequestBody {
32
32
  /**
33
- * Role to assign to the principal choose from: OrgViewer, OrgManager, OrgAdmin, BrandViewer, BrandManager, BrandAdmin, StoreViewer, StoreEditor, StoreManager, CustomerViewer, CustomerManager, VoucherViewer, VoucherEditor, VoucherManager, VoucherCampaignManager, VoucherStatisticsViewer, AnalyticsViewer, ReportsViewer, FinanceViewer, FinanceManager, TeamViewer, TeamManager, TeamAdmin, TechViewer, TechManager, AppStoreViewer, AppStoreManager, SalesChannelViewer, SalesChannelEditor, SalesChannelManager, DeliveryViewer, DeliveryManager, DriverManager, AuditViewer, AuditManager, AccountsViewer, AccountsEditor, DocumentExplorerViewer, DocumentExplorerEditor, PayrollViewer, PayrollEditor, PropertyViewer, PropertyManager, PropertyAdmin, WebsiteContentEditor, WebsiteContentViewer, WebsiteTechViewer, MenuViewer, MenuEditor, MenuManager, MenuMetaFieldManager, MenuMetaFieldEditor, MenuMetaFieldViewer, StoreDeliveryZoneManager, StoreDeliveryZoneEditor, StoreDeliveryZoneViewer, OrderFulfillmentManager, OrderManager, OrderEditor, OrderViewer, InventoryManager, InventoryEditor, InventoryViewer, PaymentManager, OnboardingManager, FeatureFlagManager, PropertyOwnerMisc, ManagedOwnerMisc, IntegratorMisc, PropertyManagerMisc, FinanceManagerMisc, SupportMisc
33
+ *
34
34
  * @type {string}
35
35
  * @memberof AssignRoleRequestBody
36
36
  */
@@ -47,6 +47,12 @@ export interface AssignRoleRequestBody {
47
47
  * @memberof AssignRoleRequestBody
48
48
  */
49
49
  'principal': AuthorizationRequestPrincipal;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof AssignRoleRequestBody
54
+ */
55
+ 'brandId': string;
50
56
  }
51
57
 
52
58
  export const AssignRoleRequestBodyRoleEnum = {
@@ -147,10 +153,10 @@ export interface AssignRoleSuccessResponse {
147
153
  export interface AuthenticateAndAuthorizeRequest {
148
154
  /**
149
155
  * Incoming request headers to be used for authentication
150
- * @type {{ [key: string]: any; }}
156
+ * @type {{ [key: string]: string; }}
151
157
  * @memberof AuthenticateAndAuthorizeRequest
152
158
  */
153
- 'headers': { [key: string]: any; };
159
+ 'headers': { [key: string]: string; };
154
160
  /**
155
161
  *
156
162
  * @type {AuthorizationRequestAction}
@@ -163,7 +169,21 @@ export interface AuthenticateAndAuthorizeRequest {
163
169
  * @memberof AuthenticateAndAuthorizeRequest
164
170
  */
165
171
  'resource'?: AuthorizationRequestResource;
172
+ /**
173
+ * How to check authorisation - any or all of the actions must be allowed
174
+ * @type {string}
175
+ * @memberof AuthenticateAndAuthorizeRequest
176
+ */
177
+ 'checkMode'?: AuthenticateAndAuthorizeRequestCheckModeEnum;
166
178
  }
179
+
180
+ export const AuthenticateAndAuthorizeRequestCheckModeEnum = {
181
+ Any: 'any',
182
+ All: 'all'
183
+ } as const;
184
+
185
+ export type AuthenticateAndAuthorizeRequestCheckModeEnum = typeof AuthenticateAndAuthorizeRequestCheckModeEnum[keyof typeof AuthenticateAndAuthorizeRequestCheckModeEnum];
186
+
167
187
  /**
168
188
  * Response containing the authentication and authorization decision
169
189
  * @export
@@ -172,10 +192,10 @@ export interface AuthenticateAndAuthorizeRequest {
172
192
  export interface AuthenticateAndAuthorizeResponse {
173
193
  /**
174
194
  *
175
- * @type {AuthenticateAndAuthorizeResponseAuthentication}
195
+ * @type {AuthenticateAndCheckIsInRoleResponseAuthentication}
176
196
  * @memberof AuthenticateAndAuthorizeResponse
177
197
  */
178
- 'authentication': AuthenticateAndAuthorizeResponseAuthentication;
198
+ 'authentication': AuthenticateAndCheckIsInRoleResponseAuthentication;
179
199
  /**
180
200
  *
181
201
  * @type {AuthorizationResponse}
@@ -186,30 +206,166 @@ export interface AuthenticateAndAuthorizeResponse {
186
206
  /**
187
207
  *
188
208
  * @export
189
- * @interface AuthenticateAndAuthorizeResponseAuthentication
209
+ * @interface AuthenticateAndCheckIsInRoleRequest
210
+ */
211
+ export interface AuthenticateAndCheckIsInRoleRequest {
212
+ /**
213
+ * Incoming request headers to be used for authentication
214
+ * @type {{ [key: string]: string; }}
215
+ * @memberof AuthenticateAndCheckIsInRoleRequest
216
+ */
217
+ 'headers': { [key: string]: string; };
218
+ /**
219
+ * Array of roles to check if the principal is in
220
+ * @type {Array<RoleNames>}
221
+ * @memberof AuthenticateAndCheckIsInRoleRequest
222
+ */
223
+ 'roles': Array<RoleNames>;
224
+ /**
225
+ *
226
+ * @type {string}
227
+ * @memberof AuthenticateAndCheckIsInRoleRequest
228
+ */
229
+ 'checkMode'?: AuthenticateAndCheckIsInRoleRequestCheckModeEnum;
230
+ }
231
+
232
+ export const AuthenticateAndCheckIsInRoleRequestCheckModeEnum = {
233
+ Any: 'any',
234
+ All: 'all'
235
+ } as const;
236
+
237
+ export type AuthenticateAndCheckIsInRoleRequestCheckModeEnum = typeof AuthenticateAndCheckIsInRoleRequestCheckModeEnum[keyof typeof AuthenticateAndCheckIsInRoleRequestCheckModeEnum];
238
+
239
+ /**
240
+ * Response containing whether the principal is in any/all of the roles
241
+ * @export
242
+ * @interface AuthenticateAndCheckIsInRoleResponse
243
+ */
244
+ export interface AuthenticateAndCheckIsInRoleResponse {
245
+ /**
246
+ *
247
+ * @type {AuthenticateAndCheckIsInRoleResponseAuthentication}
248
+ * @memberof AuthenticateAndCheckIsInRoleResponse
249
+ */
250
+ 'authentication': AuthenticateAndCheckIsInRoleResponseAuthentication;
251
+ /**
252
+ * result of the check - whether the principal is in any/all of the roles
253
+ * @type {boolean}
254
+ * @memberof AuthenticateAndCheckIsInRoleResponse
255
+ */
256
+ 'authorized': boolean;
257
+ }
258
+ /**
259
+ *
260
+ * @export
261
+ * @interface AuthenticateAndCheckIsInRoleResponseAuthentication
190
262
  */
191
- export interface AuthenticateAndAuthorizeResponseAuthentication {
263
+ export interface AuthenticateAndCheckIsInRoleResponseAuthentication {
192
264
  /**
193
265
  *
194
266
  * @type {AuthorizationRequestPrincipal}
195
- * @memberof AuthenticateAndAuthorizeResponseAuthentication
267
+ * @memberof AuthenticateAndCheckIsInRoleResponseAuthentication
196
268
  */
197
269
  'principal': AuthorizationRequestPrincipal;
198
270
  /**
199
271
  * Whether the user is authenticated
200
272
  * @type {boolean}
201
- * @memberof AuthenticateAndAuthorizeResponseAuthentication
273
+ * @memberof AuthenticateAndCheckIsInRoleResponseAuthentication
202
274
  */
203
275
  'authenticated': boolean;
204
276
  /**
205
277
  * The reason for the authentication failure
206
278
  * @type {string}
207
- * @memberof AuthenticateAndAuthorizeResponseAuthentication
279
+ * @memberof AuthenticateAndCheckIsInRoleResponseAuthentication
208
280
  */
209
281
  'reason'?: string;
210
282
  }
211
283
  /**
212
- * 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.
284
+ *
285
+ * @export
286
+ * @interface AuthorizationBatchRequest
287
+ */
288
+ export interface AuthorizationBatchRequest {
289
+ /**
290
+ *
291
+ * @type {AuthorizationRequestPrincipal}
292
+ * @memberof AuthorizationBatchRequest
293
+ */
294
+ 'principal': AuthorizationRequestPrincipal;
295
+ /**
296
+ *
297
+ * @type {Permissions}
298
+ * @memberof AuthorizationBatchRequest
299
+ */
300
+ 'action': Permissions;
301
+ /**
302
+ * Array of resources to check authorisation for
303
+ * @type {Array<AuthorizationRequestResource>}
304
+ * @memberof AuthorizationBatchRequest
305
+ */
306
+ 'resources': Array<AuthorizationRequestResource>;
307
+ }
308
+
309
+
310
+ /**
311
+ *
312
+ * @export
313
+ * @interface AuthorizationBatchResponse
314
+ */
315
+ export interface AuthorizationBatchResponse {
316
+ /**
317
+ * Array of allowed resources
318
+ * @type {Array<AuthorizationBatchResponseAllowedResourcesInner>}
319
+ * @memberof AuthorizationBatchResponse
320
+ */
321
+ 'allowedResources': Array<AuthorizationBatchResponseAllowedResourcesInner>;
322
+ /**
323
+ * Array of denied resources
324
+ * @type {Array<AuthorizationBatchResponseAllowedResourcesInner>}
325
+ * @memberof AuthorizationBatchResponse
326
+ */
327
+ 'deniedResources': Array<AuthorizationBatchResponseAllowedResourcesInner>;
328
+ }
329
+ /**
330
+ *
331
+ * @export
332
+ * @interface AuthorizationBatchResponseAllowedResourcesInner
333
+ */
334
+ export interface AuthorizationBatchResponseAllowedResourcesInner {
335
+ /**
336
+ * The authorization decision
337
+ * @type {string}
338
+ * @memberof AuthorizationBatchResponseAllowedResourcesInner
339
+ */
340
+ 'decision': string;
341
+ /**
342
+ * Whether the action is allowed
343
+ * @type {boolean}
344
+ * @memberof AuthorizationBatchResponseAllowedResourcesInner
345
+ */
346
+ 'allowed': boolean;
347
+ /**
348
+ * The policy IDs that were used to make the decision
349
+ * @type {Array<string>}
350
+ * @memberof AuthorizationBatchResponseAllowedResourcesInner
351
+ */
352
+ 'policyIds': Array<string>;
353
+ /**
354
+ *
355
+ * @type {AuthorizationBatchResponseAllowedResourcesInnerResource}
356
+ * @memberof AuthorizationBatchResponseAllowedResourcesInner
357
+ */
358
+ 'resource': AuthorizationBatchResponseAllowedResourcesInnerResource;
359
+ }
360
+ /**
361
+ * @type AuthorizationBatchResponseAllowedResourcesInnerResource
362
+ * Resource that the action was checked for
363
+ * @export
364
+ */
365
+ export type AuthorizationBatchResponseAllowedResourcesInnerResource = AuthorizationRequestResourceOneOf | AuthorizationRequestResourceOneOf1 | AuthorizationRequestResourceOneOf2 | AuthorizationRequestResourceOneOf3;
366
+
367
+ /**
368
+ * 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 the checkMode - any or all of the permissions must be allowed).
213
369
  * @export
214
370
  * @interface AuthorizationRequest
215
371
  */
@@ -232,9 +388,23 @@ export interface AuthorizationRequest {
232
388
  * @memberof AuthorizationRequest
233
389
  */
234
390
  'resource'?: AuthorizationRequestResource;
391
+ /**
392
+ * How to check authorisation - any or all of the actions must be allowed
393
+ * @type {string}
394
+ * @memberof AuthorizationRequest
395
+ */
396
+ 'checkMode'?: AuthorizationRequestCheckModeEnum;
235
397
  }
398
+
399
+ export const AuthorizationRequestCheckModeEnum = {
400
+ Any: 'any',
401
+ All: 'all'
402
+ } as const;
403
+
404
+ export type AuthorizationRequestCheckModeEnum = typeof AuthorizationRequestCheckModeEnum[keyof typeof AuthorizationRequestCheckModeEnum];
405
+
236
406
  /**
237
- *
407
+ * Permission or array of permissions - note that you still only receive a single allow / deny response (calculated based on the checkMode)
238
408
  * @export
239
409
  * @interface AuthorizationRequestAction
240
410
  */
@@ -434,17 +604,206 @@ export interface ErrorResponse {
434
604
  'message': string;
435
605
  }
436
606
  /**
437
- * Successful permissions retrieval response
607
+ * Feature based role and its permissions
608
+ * @export
609
+ * @interface FeatureBasedRole
610
+ */
611
+ export interface FeatureBasedRole {
612
+ /**
613
+ * Name of the role
614
+ * @type {string}
615
+ * @memberof FeatureBasedRole
616
+ */
617
+ 'name': string;
618
+ /**
619
+ *
620
+ * @type {Permissions & Array<Permissions>}
621
+ * @memberof FeatureBasedRole
622
+ */
623
+ 'permissions': Permissions & Array<Permissions>;
624
+ }
625
+ /**
626
+ * 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.
627
+ * @export
628
+ * @interface GetAuthorizedBrandsRequest
629
+ */
630
+ export interface GetAuthorizedBrandsRequest {
631
+ /**
632
+ *
633
+ * @type {GetAuthorizedOrgsRequestPrincipal}
634
+ * @memberof GetAuthorizedBrandsRequest
635
+ */
636
+ 'principal'?: GetAuthorizedOrgsRequestPrincipal;
637
+ /**
638
+ * Incoming request headers to be used for authentication
639
+ * @type {{ [key: string]: string; }}
640
+ * @memberof GetAuthorizedBrandsRequest
641
+ */
642
+ 'headers'?: { [key: string]: string; };
643
+ /**
644
+ *
645
+ * @type {Permissions}
646
+ * @memberof GetAuthorizedBrandsRequest
647
+ */
648
+ 'action': Permissions;
649
+ }
650
+
651
+
652
+ /**
653
+ * Response containing the authorized brands
654
+ * @export
655
+ * @interface GetAuthorizedBrandsResponse
656
+ */
657
+ export interface GetAuthorizedBrandsResponse {
658
+ /**
659
+ * Array of allowed resources
660
+ * @type {Array<AuthorizationBatchResponseAllowedResourcesInner>}
661
+ * @memberof GetAuthorizedBrandsResponse
662
+ */
663
+ 'allowedResources': Array<AuthorizationBatchResponseAllowedResourcesInner>;
664
+ /**
665
+ * Array of denied resources
666
+ * @type {Array<AuthorizationBatchResponseAllowedResourcesInner>}
667
+ * @memberof GetAuthorizedBrandsResponse
668
+ */
669
+ 'deniedResources': Array<AuthorizationBatchResponseAllowedResourcesInner>;
670
+ }
671
+ /**
672
+ * Request to get authorized orgs 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.
673
+ * @export
674
+ * @interface GetAuthorizedOrgsRequest
675
+ */
676
+ export interface GetAuthorizedOrgsRequest {
677
+ /**
678
+ *
679
+ * @type {GetAuthorizedOrgsRequestPrincipal}
680
+ * @memberof GetAuthorizedOrgsRequest
681
+ */
682
+ 'principal'?: GetAuthorizedOrgsRequestPrincipal;
683
+ /**
684
+ * Incoming request headers to be used for authentication
685
+ * @type {{ [key: string]: string; }}
686
+ * @memberof GetAuthorizedOrgsRequest
687
+ */
688
+ 'headers'?: { [key: string]: string; };
689
+ /**
690
+ *
691
+ * @type {Permissions}
692
+ * @memberof GetAuthorizedOrgsRequest
693
+ */
694
+ 'action': Permissions;
695
+ }
696
+
697
+
698
+ /**
699
+ * The principal to get authorized entities for
700
+ * @export
701
+ * @interface GetAuthorizedOrgsRequestPrincipal
702
+ */
703
+ export interface GetAuthorizedOrgsRequestPrincipal {
704
+ /**
705
+ *
706
+ * @type {string}
707
+ * @memberof GetAuthorizedOrgsRequestPrincipal
708
+ */
709
+ 'type': GetAuthorizedOrgsRequestPrincipalTypeEnum;
710
+ /**
711
+ *
712
+ * @type {string}
713
+ * @memberof GetAuthorizedOrgsRequestPrincipal
714
+ */
715
+ 'id': string;
716
+ /**
717
+ *
718
+ * @type {string}
719
+ * @memberof GetAuthorizedOrgsRequestPrincipal
720
+ */
721
+ 'name'?: string;
722
+ /**
723
+ *
724
+ * @type {string}
725
+ * @memberof GetAuthorizedOrgsRequestPrincipal
726
+ */
727
+ 'email'?: string;
728
+ /**
729
+ *
730
+ * @type {string}
731
+ * @memberof GetAuthorizedOrgsRequestPrincipal
732
+ */
733
+ 'phone'?: string;
734
+ }
735
+
736
+ export const GetAuthorizedOrgsRequestPrincipalTypeEnum = {
737
+ User: 'User',
738
+ Automation: 'Automation'
739
+ } as const;
740
+
741
+ export type GetAuthorizedOrgsRequestPrincipalTypeEnum = typeof GetAuthorizedOrgsRequestPrincipalTypeEnum[keyof typeof GetAuthorizedOrgsRequestPrincipalTypeEnum];
742
+
743
+ /**
744
+ * Response containing the authorized orgs
745
+ * @export
746
+ * @interface GetAuthorizedOrgsResponse
747
+ */
748
+ export interface GetAuthorizedOrgsResponse {
749
+ /**
750
+ * Array of allowed resources
751
+ * @type {Array<AuthorizationBatchResponseAllowedResourcesInner>}
752
+ * @memberof GetAuthorizedOrgsResponse
753
+ */
754
+ 'allowedResources': Array<AuthorizationBatchResponseAllowedResourcesInner>;
755
+ /**
756
+ * Array of denied resources
757
+ * @type {Array<AuthorizationBatchResponseAllowedResourcesInner>}
758
+ * @memberof GetAuthorizedOrgsResponse
759
+ */
760
+ 'deniedResources': Array<AuthorizationBatchResponseAllowedResourcesInner>;
761
+ }
762
+ /**
763
+ * Request to get authorized properties 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.
438
764
  * @export
439
- * @interface GetPermissionsSuccessResponse
765
+ * @interface GetAuthorizedPropertiesRequest
440
766
  */
441
- export interface GetPermissionsSuccessResponse {
767
+ export interface GetAuthorizedPropertiesRequest {
768
+ /**
769
+ *
770
+ * @type {GetAuthorizedOrgsRequestPrincipal}
771
+ * @memberof GetAuthorizedPropertiesRequest
772
+ */
773
+ 'principal'?: GetAuthorizedOrgsRequestPrincipal;
774
+ /**
775
+ * Incoming request headers to be used for authentication
776
+ * @type {{ [key: string]: string; }}
777
+ * @memberof GetAuthorizedPropertiesRequest
778
+ */
779
+ 'headers'?: { [key: string]: string; };
442
780
  /**
443
781
  *
444
- * @type {Permissions & Array<string>}
445
- * @memberof GetPermissionsSuccessResponse
782
+ * @type {Permissions}
783
+ * @memberof GetAuthorizedPropertiesRequest
784
+ */
785
+ 'action': Permissions;
786
+ }
787
+
788
+
789
+ /**
790
+ * Response containing the authorized properties
791
+ * @export
792
+ * @interface GetAuthorizedPropertiesResponse
793
+ */
794
+ export interface GetAuthorizedPropertiesResponse {
795
+ /**
796
+ * Array of allowed resources
797
+ * @type {Array<AuthorizationBatchResponseAllowedResourcesInner>}
798
+ * @memberof GetAuthorizedPropertiesResponse
799
+ */
800
+ 'allowedResources': Array<AuthorizationBatchResponseAllowedResourcesInner>;
801
+ /**
802
+ * Array of denied resources
803
+ * @type {Array<AuthorizationBatchResponseAllowedResourcesInner>}
804
+ * @memberof GetAuthorizedPropertiesResponse
446
805
  */
447
- 'permissions': Permissions & Array<string>;
806
+ 'deniedResources': Array<AuthorizationBatchResponseAllowedResourcesInner>;
448
807
  }
449
808
  /**
450
809
  * Details for getting roles for a principal
@@ -491,11 +850,17 @@ export interface GetPrincipalRolesSuccessResponseRolesInner {
491
850
  */
492
851
  'policyId': string;
493
852
  /**
494
- * Role name
853
+ *
854
+ * @type {GetPrincipalRolesSuccessResponseRolesInnerRoleName}
855
+ * @memberof GetPrincipalRolesSuccessResponseRolesInner
856
+ */
857
+ 'roleName': GetPrincipalRolesSuccessResponseRolesInnerRoleName;
858
+ /**
859
+ * Policy type
495
860
  * @type {string}
496
861
  * @memberof GetPrincipalRolesSuccessResponseRolesInner
497
862
  */
498
- 'roleName': GetPrincipalRolesSuccessResponseRolesInnerRoleNameEnum;
863
+ 'policyType': GetPrincipalRolesSuccessResponseRolesInnerPolicyTypeEnum;
499
864
  /**
500
865
  * Date and time the role was assigned
501
866
  * @type {string}
@@ -513,7 +878,7 @@ export interface GetPrincipalRolesSuccessResponseRolesInner {
513
878
  * @type {string}
514
879
  * @memberof GetPrincipalRolesSuccessResponseRolesInner
515
880
  */
516
- 'resourceType': GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum;
881
+ 'resourceType'?: GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum;
517
882
  /**
518
883
  * Organization ID
519
884
  * @type {string}
@@ -538,38 +903,229 @@ export interface GetPrincipalRolesSuccessResponseRolesInner {
538
903
  * @memberof GetPrincipalRolesSuccessResponseRolesInner
539
904
  */
540
905
  'salesChannelId'?: string;
906
+ /**
907
+ * Principal ID this role is assigned to
908
+ * @type {string}
909
+ * @memberof GetPrincipalRolesSuccessResponseRolesInner
910
+ */
911
+ 'principalId': string;
912
+ /**
913
+ * Type of principal this role is assigned to
914
+ * @type {string}
915
+ * @memberof GetPrincipalRolesSuccessResponseRolesInner
916
+ */
917
+ 'principalType': GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum;
541
918
  }
542
919
 
543
- export const GetPrincipalRolesSuccessResponseRolesInnerRoleNameEnum = {
544
- OrgViewer: 'OrgViewer',
545
- OrgManager: 'OrgManager',
546
- OrgAdmin: 'OrgAdmin',
547
- BrandViewer: 'BrandViewer',
548
- BrandManager: 'BrandManager',
549
- BrandAdmin: 'BrandAdmin',
550
- StoreViewer: 'StoreViewer',
551
- StoreEditor: 'StoreEditor',
552
- StoreManager: 'StoreManager',
553
- CustomerViewer: 'CustomerViewer',
554
- CustomerManager: 'CustomerManager',
555
- VoucherViewer: 'VoucherViewer',
556
- VoucherEditor: 'VoucherEditor',
557
- VoucherManager: 'VoucherManager',
558
- VoucherCampaignManager: 'VoucherCampaignManager',
559
- VoucherStatisticsViewer: 'VoucherStatisticsViewer',
560
- AnalyticsViewer: 'AnalyticsViewer',
561
- ReportsViewer: 'ReportsViewer',
562
- FinanceViewer: 'FinanceViewer',
563
- FinanceManager: 'FinanceManager',
564
- TeamViewer: 'TeamViewer',
565
- TeamManager: 'TeamManager',
566
- TeamAdmin: 'TeamAdmin',
567
- TechViewer: 'TechViewer',
568
- TechManager: 'TechManager',
569
- AppStoreViewer: 'AppStoreViewer',
570
- AppStoreManager: 'AppStoreManager',
571
- SalesChannelViewer: 'SalesChannelViewer',
572
- SalesChannelEditor: 'SalesChannelEditor',
920
+ export const GetPrincipalRolesSuccessResponseRolesInnerPolicyTypeEnum = {
921
+ Main: 'Main',
922
+ BrandOverride: 'BrandOverride',
923
+ OrgOverride: 'OrgOverride',
924
+ Forbidden: 'Forbidden',
925
+ NamedRole: 'NamedRole'
926
+ } as const;
927
+
928
+ export type GetPrincipalRolesSuccessResponseRolesInnerPolicyTypeEnum = typeof GetPrincipalRolesSuccessResponseRolesInnerPolicyTypeEnum[keyof typeof GetPrincipalRolesSuccessResponseRolesInnerPolicyTypeEnum];
929
+ export const GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum = {
930
+ Property: 'Property',
931
+ Org: 'Org',
932
+ Brand: 'Brand',
933
+ SalesChannel: 'SalesChannel'
934
+ } as const;
935
+
936
+ export type GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum = typeof GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum[keyof typeof GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum];
937
+ export const GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum = {
938
+ User: 'User',
939
+ Automation: 'Automation'
940
+ } as const;
941
+
942
+ export type GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum = typeof GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum[keyof typeof GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum];
943
+
944
+ /**
945
+ * Role name
946
+ * @export
947
+ * @interface GetPrincipalRolesSuccessResponseRolesInnerRoleName
948
+ */
949
+ export interface GetPrincipalRolesSuccessResponseRolesInnerRoleName {
950
+ }
951
+ /**
952
+ * Successful user permissions retrieval response
953
+ * @export
954
+ * @interface GetUserPermissionsSuccessResponse
955
+ */
956
+ export interface GetUserPermissionsSuccessResponse {
957
+ /**
958
+ * Map of resource IDs to permissions
959
+ * @type {{ [key: string]: GetUserPermissionsSuccessResponseResourcesValue; }}
960
+ * @memberof GetUserPermissionsSuccessResponse
961
+ */
962
+ 'resources': { [key: string]: GetUserPermissionsSuccessResponseResourcesValue; };
963
+ }
964
+ /**
965
+ *
966
+ * @export
967
+ * @interface GetUserPermissionsSuccessResponseResourcesValue
968
+ */
969
+ export interface GetUserPermissionsSuccessResponseResourcesValue {
970
+ /**
971
+ * Type of resource the permissions are assigned to
972
+ * @type {string}
973
+ * @memberof GetUserPermissionsSuccessResponseResourcesValue
974
+ */
975
+ 'resourceType': GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum;
976
+ /**
977
+ *
978
+ * @type {GetUserPermissionsSuccessResponseResourcesValueResourceId}
979
+ * @memberof GetUserPermissionsSuccessResponseResourcesValue
980
+ */
981
+ 'resourceId': GetUserPermissionsSuccessResponseResourcesValueResourceId;
982
+ /**
983
+ * List of permissions that are assigned to the user for the resource
984
+ * @type {Array<Permissions>}
985
+ * @memberof GetUserPermissionsSuccessResponseResourcesValue
986
+ */
987
+ 'permissions': Array<Permissions>;
988
+ }
989
+
990
+ export const GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = {
991
+ Property: 'Property',
992
+ Org: 'Org',
993
+ Brand: 'Brand',
994
+ SalesChannel: 'SalesChannel'
995
+ } as const;
996
+
997
+ export type GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = typeof GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum[keyof typeof GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum];
998
+
999
+ /**
1000
+ * ID of the resource the permissions are assigned to
1001
+ * @export
1002
+ * @interface GetUserPermissionsSuccessResponseResourcesValueResourceId
1003
+ */
1004
+ export interface GetUserPermissionsSuccessResponseResourcesValueResourceId {
1005
+ }
1006
+ /**
1007
+ *
1008
+ * @export
1009
+ * @interface IsInRoleRequest
1010
+ */
1011
+ export interface IsInRoleRequest {
1012
+ /**
1013
+ *
1014
+ * @type {AuthorizationRequestPrincipal}
1015
+ * @memberof IsInRoleRequest
1016
+ */
1017
+ 'principal': AuthorizationRequestPrincipal;
1018
+ /**
1019
+ * Array of roles to check if the principal is in
1020
+ * @type {Array<RoleNames>}
1021
+ * @memberof IsInRoleRequest
1022
+ */
1023
+ 'roles': Array<RoleNames>;
1024
+ /**
1025
+ * How to check authorisation - any or all of the actions must be allowed
1026
+ * @type {string}
1027
+ * @memberof IsInRoleRequest
1028
+ */
1029
+ 'checkMode'?: IsInRoleRequestCheckModeEnum;
1030
+ }
1031
+
1032
+ export const IsInRoleRequestCheckModeEnum = {
1033
+ Any: 'any',
1034
+ All: 'all'
1035
+ } as const;
1036
+
1037
+ export type IsInRoleRequestCheckModeEnum = typeof IsInRoleRequestCheckModeEnum[keyof typeof IsInRoleRequestCheckModeEnum];
1038
+
1039
+ /**
1040
+ * Response containing whether the principal is in any/all of the roles
1041
+ * @export
1042
+ * @interface IsInRoleResponse
1043
+ */
1044
+ export interface IsInRoleResponse {
1045
+ /**
1046
+ * result of the check - whether the principal is in any/all of the roles
1047
+ * @type {boolean}
1048
+ * @memberof IsInRoleResponse
1049
+ */
1050
+ 'authorized': boolean;
1051
+ }
1052
+ /**
1053
+ * Successful feature based roles retrieval response
1054
+ * @export
1055
+ * @interface ListFeatureBasedRolesSuccessResponse
1056
+ */
1057
+ export interface ListFeatureBasedRolesSuccessResponse {
1058
+ /**
1059
+ *
1060
+ * @type {Array<FeatureBasedRole>}
1061
+ * @memberof ListFeatureBasedRolesSuccessResponse
1062
+ */
1063
+ 'roles': Array<FeatureBasedRole>;
1064
+ }
1065
+ /**
1066
+ *
1067
+ * @export
1068
+ * @interface ListOrgRolesSuccessResponseValueValue
1069
+ */
1070
+ export interface ListOrgRolesSuccessResponseValueValue {
1071
+ /**
1072
+ * Type of resource the permissions are assigned to
1073
+ * @type {string}
1074
+ * @memberof ListOrgRolesSuccessResponseValueValue
1075
+ */
1076
+ 'resourceType': ListOrgRolesSuccessResponseValueValueResourceTypeEnum;
1077
+ /**
1078
+ *
1079
+ * @type {GetUserPermissionsSuccessResponseResourcesValueResourceId}
1080
+ * @memberof ListOrgRolesSuccessResponseValueValue
1081
+ */
1082
+ 'resourceId': GetUserPermissionsSuccessResponseResourcesValueResourceId;
1083
+ /**
1084
+ * List of roles that are assigned to the user for the resource
1085
+ * @type {Array<string>}
1086
+ * @memberof ListOrgRolesSuccessResponseValueValue
1087
+ */
1088
+ 'roles': Array<ListOrgRolesSuccessResponseValueValueRolesEnum>;
1089
+ }
1090
+
1091
+ export const ListOrgRolesSuccessResponseValueValueResourceTypeEnum = {
1092
+ Property: 'Property',
1093
+ Org: 'Org',
1094
+ Brand: 'Brand',
1095
+ SalesChannel: 'SalesChannel'
1096
+ } as const;
1097
+
1098
+ export type ListOrgRolesSuccessResponseValueValueResourceTypeEnum = typeof ListOrgRolesSuccessResponseValueValueResourceTypeEnum[keyof typeof ListOrgRolesSuccessResponseValueValueResourceTypeEnum];
1099
+ export const ListOrgRolesSuccessResponseValueValueRolesEnum = {
1100
+ OrgViewer: 'OrgViewer',
1101
+ OrgManager: 'OrgManager',
1102
+ OrgAdmin: 'OrgAdmin',
1103
+ BrandViewer: 'BrandViewer',
1104
+ BrandManager: 'BrandManager',
1105
+ BrandAdmin: 'BrandAdmin',
1106
+ StoreViewer: 'StoreViewer',
1107
+ StoreEditor: 'StoreEditor',
1108
+ StoreManager: 'StoreManager',
1109
+ CustomerViewer: 'CustomerViewer',
1110
+ CustomerManager: 'CustomerManager',
1111
+ VoucherViewer: 'VoucherViewer',
1112
+ VoucherEditor: 'VoucherEditor',
1113
+ VoucherManager: 'VoucherManager',
1114
+ VoucherCampaignManager: 'VoucherCampaignManager',
1115
+ VoucherStatisticsViewer: 'VoucherStatisticsViewer',
1116
+ AnalyticsViewer: 'AnalyticsViewer',
1117
+ ReportsViewer: 'ReportsViewer',
1118
+ FinanceViewer: 'FinanceViewer',
1119
+ FinanceManager: 'FinanceManager',
1120
+ TeamViewer: 'TeamViewer',
1121
+ TeamManager: 'TeamManager',
1122
+ TeamAdmin: 'TeamAdmin',
1123
+ TechViewer: 'TechViewer',
1124
+ TechManager: 'TechManager',
1125
+ AppStoreViewer: 'AppStoreViewer',
1126
+ AppStoreManager: 'AppStoreManager',
1127
+ SalesChannelViewer: 'SalesChannelViewer',
1128
+ SalesChannelEditor: 'SalesChannelEditor',
573
1129
  SalesChannelManager: 'SalesChannelManager',
574
1130
  DeliveryViewer: 'DeliveryViewer',
575
1131
  DeliveryManager: 'DeliveryManager',
@@ -615,77 +1171,41 @@ export const GetPrincipalRolesSuccessResponseRolesInnerRoleNameEnum = {
615
1171
  SupportMisc: 'SupportMisc'
616
1172
  } as const;
617
1173
 
618
- export type GetPrincipalRolesSuccessResponseRolesInnerRoleNameEnum = typeof GetPrincipalRolesSuccessResponseRolesInnerRoleNameEnum[keyof typeof GetPrincipalRolesSuccessResponseRolesInnerRoleNameEnum];
619
- export const GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum = {
620
- Property: 'Property',
621
- Org: 'Org',
622
- Brand: 'Brand',
623
- SalesChannel: 'SalesChannel'
624
- } as const;
625
-
626
- export type GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum = typeof GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum[keyof typeof GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum];
1174
+ export type ListOrgRolesSuccessResponseValueValueRolesEnum = typeof ListOrgRolesSuccessResponseValueValueRolesEnum[keyof typeof ListOrgRolesSuccessResponseValueValueRolesEnum];
627
1175
 
628
1176
  /**
629
- * Successful roles retrieval response
1177
+ * Successful permissions retrieval response
630
1178
  * @export
631
- * @interface GetRolesSuccessResponse
1179
+ * @interface ListPermissionsSuccessResponse
632
1180
  */
633
- export interface GetRolesSuccessResponse {
1181
+ export interface ListPermissionsSuccessResponse {
634
1182
  /**
635
- * List of roles available and their permissions
636
- * @type {Array<RolesInner>}
637
- * @memberof GetRolesSuccessResponse
1183
+ *
1184
+ * @type {Permissions & Array<Permissions>}
1185
+ * @memberof ListPermissionsSuccessResponse
638
1186
  */
639
- 'roles': Array<RolesInner>;
1187
+ 'permissions': Permissions & Array<Permissions>;
640
1188
  }
641
1189
  /**
642
- * Successful user permissions retrieval response
1190
+ * Successful roles retrieval response
643
1191
  * @export
644
- * @interface GetUserPermissionsSuccessResponse
1192
+ * @interface ListRolesSuccessResponse
645
1193
  */
646
- export interface GetUserPermissionsSuccessResponse {
1194
+ export interface ListRolesSuccessResponse {
647
1195
  /**
648
- * Map of resource IDs to permissions
649
- * @type {{ [key: string]: GetUserPermissionsSuccessResponseResourcesValue; }}
650
- * @memberof GetUserPermissionsSuccessResponse
1196
+ * List of named roles
1197
+ * @type {Array<RoleNames>}
1198
+ * @memberof ListRolesSuccessResponse
651
1199
  */
652
- 'resources': { [key: string]: GetUserPermissionsSuccessResponseResourcesValue; };
1200
+ 'roles': Array<RoleNames>;
653
1201
  }
654
1202
  /**
655
- *
1203
+ * Permissions
656
1204
  * @export
657
- * @interface GetUserPermissionsSuccessResponseResourcesValue
1205
+ * @enum {string}
658
1206
  */
659
- export interface GetUserPermissionsSuccessResponseResourcesValue {
660
- /**
661
- * Type of resource the permissions are assigned to
662
- * @type {string}
663
- * @memberof GetUserPermissionsSuccessResponseResourcesValue
664
- */
665
- 'resourceType': GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum;
666
- /**
667
- *
668
- * @type {GetUserPermissionsSuccessResponseResourcesValueResourceId}
669
- * @memberof GetUserPermissionsSuccessResponseResourcesValue
670
- */
671
- 'resourceId': GetUserPermissionsSuccessResponseResourcesValueResourceId;
672
- /**
673
- * List of permissions that are assigned to the user for the resource
674
- * @type {Array<string>}
675
- * @memberof GetUserPermissionsSuccessResponseResourcesValue
676
- */
677
- 'permissions': Array<GetUserPermissionsSuccessResponseResourcesValuePermissionsEnum>;
678
- }
679
-
680
- export const GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = {
681
- Property: 'Property',
682
- Org: 'Org',
683
- Brand: 'Brand',
684
- SalesChannel: 'SalesChannel'
685
- } as const;
686
1207
 
687
- export type GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = typeof GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum[keyof typeof GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum];
688
- export const GetUserPermissionsSuccessResponseResourcesValuePermissionsEnum = {
1208
+ export const Permissions = {
689
1209
  AnyAuditLogs: 'AnyAuditLogs',
690
1210
  ViewApp: 'ViewApp',
691
1211
  CreateApp: 'CreateApp',
@@ -909,325 +1429,74 @@ export const GetUserPermissionsSuccessResponseResourcesValuePermissionsEnum = {
909
1429
  EditEntityFeatureFlags: 'EditEntityFeatureFlags',
910
1430
  CreateOrg: 'CreateOrg',
911
1431
  EditOrg: 'EditOrg',
912
- ViewOrg: 'ViewOrg'
1432
+ ViewOrg: 'ViewOrg',
1433
+ ViewWebhooks: 'ViewWebhooks',
1434
+ EditWebhooks: 'EditWebhooks',
1435
+ RoleAdmin: 'RoleAdmin',
1436
+ RoleFactory: 'RoleFactory'
913
1437
  } as const;
914
1438
 
915
- export type GetUserPermissionsSuccessResponseResourcesValuePermissionsEnum = typeof GetUserPermissionsSuccessResponseResourcesValuePermissionsEnum[keyof typeof GetUserPermissionsSuccessResponseResourcesValuePermissionsEnum];
1439
+ export type Permissions = typeof Permissions[keyof typeof Permissions];
1440
+
916
1441
 
917
1442
  /**
918
- * ID of the resource the permissions are assigned to
919
- * @export
920
- * @interface GetUserPermissionsSuccessResponseResourcesValueResourceId
921
- */
922
- export interface GetUserPermissionsSuccessResponseResourcesValueResourceId {
923
- }
924
- /**
925
- *
1443
+ * Principals in org
926
1444
  * @export
927
- * @interface OrgPathParam
1445
+ * @interface PrincipalsInOrgResponse
928
1446
  */
929
- export interface OrgPathParam {
1447
+ export interface PrincipalsInOrgResponse {
930
1448
  /**
931
1449
  *
932
1450
  * @type {string}
933
- * @memberof OrgPathParam
1451
+ * @memberof PrincipalsInOrgResponse
934
1452
  */
935
1453
  'orgId': string;
1454
+ /**
1455
+ * List of principals in org
1456
+ * @type {Array<AuthorizationRequestPrincipal>}
1457
+ * @memberof PrincipalsInOrgResponse
1458
+ */
1459
+ 'principals': Array<AuthorizationRequestPrincipal>;
936
1460
  }
937
1461
  /**
938
- *
1462
+ * Details for revoking a forbidden role from a principal
939
1463
  * @export
940
- * @interface PathParams
1464
+ * @interface RevokeForbiddenRoleRequestBody
941
1465
  */
942
- export interface PathParams {
1466
+ export interface RevokeForbiddenRoleRequestBody {
943
1467
  /**
944
1468
  *
945
- * @type {string}
946
- * @memberof PathParams
1469
+ * @type {AuthorizationRequestPrincipal}
1470
+ * @memberof RevokeForbiddenRoleRequestBody
947
1471
  */
948
- 'orgId': string;
1472
+ 'principal': AuthorizationRequestPrincipal;
949
1473
  /**
950
- *
1474
+ * Compensation role to revoke the forbidden role from
951
1475
  * @type {string}
952
- * @memberof PathParams
1476
+ * @memberof RevokeForbiddenRoleRequestBody
953
1477
  */
954
- 'userId': string;
1478
+ 'compensatingRole': RevokeForbiddenRoleRequestBodyCompensatingRoleEnum;
955
1479
  }
1480
+
1481
+ export const RevokeForbiddenRoleRequestBodyCompensatingRoleEnum = {
1482
+ OwnerCompensating: 'OwnerCompensating',
1483
+ PropertyOwnerCompensating: 'PropertyOwnerCompensating',
1484
+ ManagedOwnerCompensating: 'ManagedOwnerCompensating',
1485
+ IntegratorCompensating: 'IntegratorCompensating',
1486
+ PropertyManagerCompensating: 'PropertyManagerCompensating',
1487
+ FinanceManagerCompensating: 'FinanceManagerCompensating'
1488
+ } as const;
1489
+
1490
+ export type RevokeForbiddenRoleRequestBodyCompensatingRoleEnum = typeof RevokeForbiddenRoleRequestBodyCompensatingRoleEnum[keyof typeof RevokeForbiddenRoleRequestBodyCompensatingRoleEnum];
1491
+
956
1492
  /**
957
- *
1493
+ * Details for revoking a role from a principal
958
1494
  * @export
959
- * @enum {string}
960
- */
961
-
962
- export const Permissions = {
963
- AnyAuditLogs: 'AnyAuditLogs',
964
- ViewApp: 'ViewApp',
965
- CreateApp: 'CreateApp',
966
- UpdateApp: 'UpdateApp',
967
- ViewAppName: 'ViewAppName',
968
- EditAppAssets: 'EditAppAssets',
969
- EditAppFeatures: 'EditAppFeatures',
970
- ViewTeammates: 'ViewTeammates',
971
- EditTeammates: 'EditTeammates',
972
- CreateTeammateOwner: 'CreateTeammateOwner',
973
- CreateTeammateManagedOwner: 'CreateTeammateManagedOwner',
974
- CreateTeammateStoreOwner: 'CreateTeammateStoreOwner',
975
- CreateTeammateStoreManager: 'CreateTeammateStoreManager',
976
- CreateTeammateStoreStaff: 'CreateTeammateStoreStaff',
977
- CreateTeammateStoreReadAccess: 'CreateTeammateStoreReadAccess',
978
- CreateTeammateFinanceManager: 'CreateTeammateFinanceManager',
979
- CreateTeammateIntegrator: 'CreateTeammateIntegrator',
980
- CreateTeammateOnboarding: 'CreateTeammateOnboarding',
981
- CreateTeammatePropertyManager: 'CreateTeammatePropertyManager',
982
- CreateTeammatePropertyOwner: 'CreateTeammatePropertyOwner',
983
- ViewApmConfigurations: 'ViewApmConfigurations',
984
- EditApmConfigurations: 'EditApmConfigurations',
985
- ViewCampaignsConfigurations: 'ViewCampaignsConfigurations',
986
- CreateCampaignsConfigurations: 'CreateCampaignsConfigurations',
987
- UpdateCampaignsConfigurations: 'UpdateCampaignsConfigurations',
988
- DeleteCampaignsConfigurations: 'DeleteCampaignsConfigurations',
989
- StampLoyaltyCardAgainstCampaignsConfigurations: 'StampLoyaltyCardAgainstCampaignsConfigurations',
990
- ViewDevelopersSettings: 'ViewDevelopersSettings',
991
- EditDevelopersSettings: 'EditDevelopersSettings',
992
- ViewOrders: 'ViewOrders',
993
- UpdateOrdersAccept: 'UpdateOrdersAccept',
994
- UpdateOrdersReject: 'UpdateOrdersReject',
995
- UpdateOrdersRefund: 'UpdateOrdersRefund',
996
- UpdateOrdersDispatch: 'UpdateOrdersDispatch',
997
- ViewStores: 'ViewStores',
998
- CreateStores: 'CreateStores',
999
- EditStores: 'EditStores',
1000
- ViewStoresOpeningHours: 'ViewStoresOpeningHours',
1001
- UpdateStoresOpenForCollectionOrDelivery: 'UpdateStoresOpenForCollectionOrDelivery',
1002
- UpdateStoresOpeningHours: 'UpdateStoresOpeningHours',
1003
- ViewStoresOpeningHoursOverride: 'ViewStoresOpeningHoursOverride',
1004
- EditStoresOpeningHoursOverride: 'EditStoresOpeningHoursOverride',
1005
- EditStoresOpeningHoursOverrideTemporary: 'EditStoresOpeningHoursOverrideTemporary',
1006
- UpdateStoresName: 'UpdateStoresName',
1007
- EditStoreKioskSettings: 'EditStoreKioskSettings',
1008
- EditStoreOrderCapacity: 'EditStoreOrderCapacity',
1009
- EditStoreNotifications: 'EditStoreNotifications',
1010
- ArchiveStores: 'ArchiveStores',
1011
- PublishStores: 'PublishStores',
1012
- UpdatePrinterTerminalsAssign: 'UpdatePrinterTerminalsAssign',
1013
- UpdatePrinterTerminalsToggle: 'UpdatePrinterTerminalsToggle',
1014
- ViewStoreGroups: 'ViewStoreGroups',
1015
- CreateStoreGroups: 'CreateStoreGroups',
1016
- UpdateStoreGroups: 'UpdateStoreGroups',
1017
- DeleteStoreGroups: 'DeleteStoreGroups',
1018
- ViewDeliveryZones: 'ViewDeliveryZones',
1019
- CreateDeliveryZones: 'CreateDeliveryZones',
1020
- UpdateDeliveryZones: 'UpdateDeliveryZones',
1021
- DeleteDeliveryZones: 'DeleteDeliveryZones',
1022
- ViewMenu: 'ViewMenu',
1023
- CreateMenu: 'CreateMenu',
1024
- UpdateMenu: 'UpdateMenu',
1025
- DeleteMenu: 'DeleteMenu',
1026
- UpdateMenuLock: 'UpdateMenuLock',
1027
- UpdateMenuItemsHideTemporarily: 'UpdateMenuItemsHideTemporarily',
1028
- EditMenuImage: 'EditMenuImage',
1029
- ViewVouchers: 'ViewVouchers',
1030
- EditVouchers: 'EditVouchers',
1031
- ViewWebsiteContent: 'ViewWebsiteContent',
1032
- EditWebsiteContent: 'EditWebsiteContent',
1033
- ViewWebsiteDnsVerified: 'ViewWebsiteDnsVerified',
1034
- ViewWebsiteCertificateCreated: 'ViewWebsiteCertificateCreated',
1035
- ViewWebsiteCertificateRenewed: 'ViewWebsiteCertificateRenewed',
1036
- ViewBankAccounts: 'ViewBankAccounts',
1037
- CreateBankAccounts: 'CreateBankAccounts',
1038
- UpdateBankAccounts: 'UpdateBankAccounts',
1039
- UpdateBankAccountsAssign: 'UpdateBankAccountsAssign',
1040
- ViewAssignedBankAccount: 'ViewAssignedBankAccount',
1041
- VerifyBankAccounts: 'VerifyBankAccounts',
1042
- ViewServiceChargeConfigurations: 'ViewServiceChargeConfigurations',
1043
- EditServiceChargeConfigurations: 'EditServiceChargeConfigurations',
1044
- EditStoreDeliveryZoneFees: 'EditStoreDeliveryZoneFees',
1045
- EditStoreDeliveryFeesLimited: 'EditStoreDeliveryFeesLimited',
1046
- ViewHydraConfig: 'ViewHydraConfig',
1047
- UpdateHydraConfigManage: 'UpdateHydraConfigManage',
1048
- InitiateBluetoothPairingMode: 'InitiateBluetoothPairingMode',
1049
- DeleteTerminal: 'DeleteTerminal',
1050
- ViewKioskTelemetry: 'ViewKioskTelemetry',
1051
- ViewCustomers: 'ViewCustomers',
1052
- EditCustomers: 'EditCustomers',
1053
- CreateCustomers: 'CreateCustomers',
1054
- CreateCatalogElements: 'CreateCatalogElements',
1055
- UpdateCatalogElements: 'UpdateCatalogElements',
1056
- ViewCatalogElements: 'ViewCatalogElements',
1057
- DeleteCatalogElements: 'DeleteCatalogElements',
1058
- ViewMetafieldDefinitions: 'ViewMetafieldDefinitions',
1059
- CreateMetafieldDefinitions: 'CreateMetafieldDefinitions',
1060
- UpdateMetafieldDefinitions: 'UpdateMetafieldDefinitions',
1061
- DeleteMetafieldDefinitions: 'DeleteMetafieldDefinitions',
1062
- UpdateMetafields: 'UpdateMetafields',
1063
- ViewCatalogMenuChanges: 'ViewCatalogMenuChanges',
1064
- PublishCatalogMenuChanges: 'PublishCatalogMenuChanges',
1065
- ViewAppStatistics: 'ViewAppStatistics',
1066
- ViewApmStatistics: 'ViewApmStatistics',
1067
- ViewCampaignsStatistics: 'ViewCampaignsStatistics',
1068
- ViewCustomerStatistics: 'ViewCustomerStatistics',
1069
- ViewLiveStatistics: 'ViewLiveStatistics',
1070
- ViewOrderStatistics: 'ViewOrderStatistics',
1071
- ViewSalesStatistics: 'ViewSalesStatistics',
1072
- ViewSalesEndOfDayStatistics: 'ViewSalesEndOfDayStatistics',
1073
- ViewVouchersStatistics: 'ViewVouchersStatistics',
1074
- DownloadCustomerCsvExport: 'DownloadCustomerCsvExport',
1075
- ViewApmAuditLogs: 'ViewApmAuditLogs',
1076
- ViewStoreAuditLogs: 'ViewStoreAuditLogs',
1077
- ViewMenuAuditLogs: 'ViewMenuAuditLogs',
1078
- ViewBankAccountAuditLogs: 'ViewBankAccountAuditLogs',
1079
- ViewFeeConfigurationsAuditLogs: 'ViewFeeConfigurationsAuditLogs',
1080
- ViewOrdersAuditLogs: 'ViewOrdersAuditLogs',
1081
- ViewVouchersAuditLogs: 'ViewVouchersAuditLogs',
1082
- ViewUserEventsAuditLogs: 'ViewUserEventsAuditLogs',
1083
- ViewCampaignsAuditLogs: 'ViewCampaignsAuditLogs',
1084
- ViewTeammatesAuditLogs: 'ViewTeammatesAuditLogs',
1085
- ViewAppAuditLogs: 'ViewAppAuditLogs',
1086
- ViewCustomerAuditLogs: 'ViewCustomerAuditLogs',
1087
- ViewPrinterAuditLogs: 'ViewPrinterAuditLogs',
1088
- ViewHydraAuditLogs: 'ViewHydraAuditLogs',
1089
- ViewPushNotificationAuditLogs: 'ViewPushNotificationAuditLogs',
1090
- ViewStripeCustomConnectedAccountAuditLogs: 'ViewStripeCustomConnectedAccountAuditLogs',
1091
- ViewKioskBluetoothDeviceAuditLogs: 'ViewKioskBluetoothDeviceAuditLogs',
1092
- ViewExternalAuditLogs: 'ViewExternalAuditLogs',
1093
- CreateExternalAuditLogEvents: 'CreateExternalAuditLogEvents',
1094
- ViewCatalogAuditLogs: 'ViewCatalogAuditLogs',
1095
- ViewOrderFulfillmentAuditLogs: 'ViewOrderFulfillmentAuditLogs',
1096
- ViewChannelAuditLogs: 'ViewChannelAuditLogs',
1097
- ViewAppStoreAuditLogs: 'ViewAppStoreAuditLogs',
1098
- SendPushNotificationToCustomer: 'SendPushNotificationToCustomer',
1099
- InviteDriverToApp: 'InviteDriverToApp',
1100
- GetDriverForApp: 'GetDriverForApp',
1101
- RemoveDriverFromApp: 'RemoveDriverFromApp',
1102
- AssignDriverToOrder: 'AssignDriverToOrder',
1103
- UnassignDriverFromOrder: 'UnassignDriverFromOrder',
1104
- UpdateOrdersDeliveryTrackingStatus: 'UpdateOrdersDeliveryTrackingStatus',
1105
- UpdateOrderFulfillmentStatus: 'UpdateOrderFulfillmentStatus',
1106
- ViewFulfillmentStatesConfiguration: 'ViewFulfillmentStatesConfiguration',
1107
- CreateFulfillmentStatesConfiguration: 'CreateFulfillmentStatesConfiguration',
1108
- UpdateFulfillmentStatesConfiguration: 'UpdateFulfillmentStatesConfiguration',
1109
- DeleteFulfillmentStatesConfiguration: 'DeleteFulfillmentStatesConfiguration',
1110
- ViewPayouts: 'ViewPayouts',
1111
- ViewChannels: 'ViewChannels',
1112
- ViewOnboarding: 'ViewOnboarding',
1113
- UpdateOnboarding: 'UpdateOnboarding',
1114
- ViewClientDevices: 'ViewClientDevices',
1115
- UpdateClientDevices: 'UpdateClientDevices',
1116
- EnrollClientDevices: 'EnrollClientDevices',
1117
- AssignClientDevices: 'AssignClientDevices',
1118
- ViewClientAuditLogs: 'ViewClientAuditLogs',
1119
- CreateAppStoreAppConfiguration: 'CreateAppStoreAppConfiguration',
1120
- ViewAppStoreAppConfiguration: 'ViewAppStoreAppConfiguration',
1121
- UpdateAppStoreAppConfiguration: 'UpdateAppStoreAppConfiguration',
1122
- DeleteAppStoreAppConfiguration: 'DeleteAppStoreAppConfiguration',
1123
- UpdateAppStoreAppConfigurationSettings: 'UpdateAppStoreAppConfigurationSettings',
1124
- CreateAppStoreSubscription: 'CreateAppStoreSubscription',
1125
- UpdateAppStoreSubscription: 'UpdateAppStoreSubscription',
1126
- DeleteAppStoreSubscription: 'DeleteAppStoreSubscription',
1127
- ViewSalesChannels: 'ViewSalesChannels',
1128
- EditSalesChannels: 'EditSalesChannels',
1129
- CreateSalesChannel: 'CreateSalesChannel',
1130
- ArchiveSalesChannel: 'ArchiveSalesChannel',
1131
- UnarchiveSalesChannel: 'UnarchiveSalesChannel',
1132
- PublishSalesChannel: 'PublishSalesChannel',
1133
- UnpublishSalesChannel: 'UnpublishSalesChannel',
1134
- CloneSalesChannel: 'CloneSalesChannel',
1135
- ViewPayGreenWhiteLabelConfiguration: 'ViewPayGreenWhiteLabelConfiguration',
1136
- CreatePayGreenWhiteLabelConfiguration: 'CreatePayGreenWhiteLabelConfiguration',
1137
- UpdatePayGreenWhiteLabelConfiguration: 'UpdatePayGreenWhiteLabelConfiguration',
1138
- UpdatePayGreenStoreConfiguration: 'UpdatePayGreenStoreConfiguration',
1139
- ViewSubscriptions: 'ViewSubscriptions',
1140
- ViewInvoices: 'ViewInvoices',
1141
- EditAccountsBills: 'EditAccountsBills',
1142
- ViewAccountsBills: 'ViewAccountsBills',
1143
- EditAccountsCategories: 'EditAccountsCategories',
1144
- ViewAccountsCategories: 'ViewAccountsCategories',
1145
- EditAccountsCreditAccounts: 'EditAccountsCreditAccounts',
1146
- ViewAccountsCreditAccounts: 'ViewAccountsCreditAccounts',
1147
- EditAccountsCreditBooks: 'EditAccountsCreditBooks',
1148
- ViewAccountsCreditBooks: 'ViewAccountsCreditBooks',
1149
- EditAccountsExpenses: 'EditAccountsExpenses',
1150
- ViewAccountsExpenses: 'ViewAccountsExpenses',
1151
- EditAccountsTransactionAccounts: 'EditAccountsTransactionAccounts',
1152
- ViewAccountsTransactionAccounts: 'ViewAccountsTransactionAccounts',
1153
- EditDocumentExplorer: 'EditDocumentExplorer',
1154
- ViewDocumentExplorer: 'ViewDocumentExplorer',
1155
- ViewInventoryReports: 'ViewInventoryReports',
1156
- EditInventoryPurchaseOrders: 'EditInventoryPurchaseOrders',
1157
- ViewInventoryPurchaseOrders: 'ViewInventoryPurchaseOrders',
1158
- EditInventoryStockItems: 'EditInventoryStockItems',
1159
- ViewInventoryStockItems: 'ViewInventoryStockItems',
1160
- EditInventorySupplier: 'EditInventorySupplier',
1161
- ViewInventorySupplier: 'ViewInventorySupplier',
1162
- EditInventoryTrackingProfiles: 'EditInventoryTrackingProfiles',
1163
- ViewInventoryTrackingProfiles: 'ViewInventoryTrackingProfiles',
1164
- ViewPayrollReports: 'ViewPayrollReports',
1165
- EditPayrollHoliday: 'EditPayrollHoliday',
1166
- ViewPayrollHoliday: 'ViewPayrollHoliday',
1167
- EditPayrollRota: 'EditPayrollRota',
1168
- ViewPayrollRota: 'ViewPayrollRota',
1169
- EditPayrollStaff: 'EditPayrollStaff',
1170
- ViewPayrollStaff: 'ViewPayrollStaff',
1171
- ViewSalesReports: 'ViewSalesReports',
1172
- ViewCostReports: 'ViewCostReports',
1173
- ViewMenuReports: 'ViewMenuReports',
1174
- ViewBrand: 'ViewBrand',
1175
- EditBrand: 'EditBrand',
1176
- CreateBrand: 'CreateBrand',
1177
- TransferBrand: 'TransferBrand',
1178
- ViewProperty: 'ViewProperty',
1179
- EditProperty: 'EditProperty',
1180
- CreateProperty: 'CreateProperty',
1181
- ArchiveProperty: 'ArchiveProperty',
1182
- ViewEntityFeatureFlags: 'ViewEntityFeatureFlags',
1183
- EditEntityFeatureFlags: 'EditEntityFeatureFlags',
1184
- CreateOrg: 'CreateOrg',
1185
- EditOrg: 'EditOrg',
1186
- ViewOrg: 'ViewOrg'
1187
- } as const;
1188
-
1189
- export type Permissions = typeof Permissions[keyof typeof Permissions];
1190
-
1191
-
1192
- /**
1193
- * Details for revoking a forbidden role from a principal
1194
- * @export
1195
- * @interface RevokeForbiddenRoleRequestBody
1196
- */
1197
- export interface RevokeForbiddenRoleRequestBody {
1198
- /**
1199
- *
1200
- * @type {AuthorizationRequestPrincipal}
1201
- * @memberof RevokeForbiddenRoleRequestBody
1202
- */
1203
- 'principal': AuthorizationRequestPrincipal;
1204
- /**
1205
- * Compensation role to revoke the forbidden role from
1206
- * @type {string}
1207
- * @memberof RevokeForbiddenRoleRequestBody
1208
- */
1209
- 'compensatingRole': RevokeForbiddenRoleRequestBodyCompensatingRoleEnum;
1210
- }
1211
-
1212
- export const RevokeForbiddenRoleRequestBodyCompensatingRoleEnum = {
1213
- OwnerCompensating: 'OwnerCompensating',
1214
- PropertyOwnerCompensating: 'PropertyOwnerCompensating',
1215
- ManagedOwnerCompensating: 'ManagedOwnerCompensating',
1216
- IntegratorCompensating: 'IntegratorCompensating',
1217
- PropertyManagerCompensating: 'PropertyManagerCompensating',
1218
- FinanceManagerCompensating: 'FinanceManagerCompensating'
1219
- } as const;
1220
-
1221
- export type RevokeForbiddenRoleRequestBodyCompensatingRoleEnum = typeof RevokeForbiddenRoleRequestBodyCompensatingRoleEnum[keyof typeof RevokeForbiddenRoleRequestBodyCompensatingRoleEnum];
1222
-
1223
- /**
1224
- * Details for revoking a role from a principal
1225
- * @export
1226
- * @interface RevokeRoleRequestBody
1495
+ * @interface RevokeRoleRequestBody
1227
1496
  */
1228
1497
  export interface RevokeRoleRequestBody {
1229
1498
  /**
1230
- * Role to assign to the principal choose from: OrgViewer, OrgManager, OrgAdmin, BrandViewer, BrandManager, BrandAdmin, StoreViewer, StoreEditor, StoreManager, CustomerViewer, CustomerManager, VoucherViewer, VoucherEditor, VoucherManager, VoucherCampaignManager, VoucherStatisticsViewer, AnalyticsViewer, ReportsViewer, FinanceViewer, FinanceManager, TeamViewer, TeamManager, TeamAdmin, TechViewer, TechManager, AppStoreViewer, AppStoreManager, SalesChannelViewer, SalesChannelEditor, SalesChannelManager, DeliveryViewer, DeliveryManager, DriverManager, AuditViewer, AuditManager, AccountsViewer, AccountsEditor, DocumentExplorerViewer, DocumentExplorerEditor, PayrollViewer, PayrollEditor, PropertyViewer, PropertyManager, PropertyAdmin, WebsiteContentEditor, WebsiteContentViewer, WebsiteTechViewer, MenuViewer, MenuEditor, MenuManager, MenuMetaFieldManager, MenuMetaFieldEditor, MenuMetaFieldViewer, StoreDeliveryZoneManager, StoreDeliveryZoneEditor, StoreDeliveryZoneViewer, OrderFulfillmentManager, OrderManager, OrderEditor, OrderViewer, InventoryManager, InventoryEditor, InventoryViewer, PaymentManager, OnboardingManager, FeatureFlagManager, PropertyOwnerMisc, ManagedOwnerMisc, IntegratorMisc, PropertyManagerMisc, FinanceManagerMisc, SupportMisc
1499
+ *
1231
1500
  * @type {string}
1232
1501
  * @memberof RevokeRoleRequestBody
1233
1502
  */
@@ -1327,82 +1596,340 @@ export const RevokeRoleRequestBodyRoleEnum = {
1327
1596
  SupportMisc: 'SupportMisc'
1328
1597
  } as const;
1329
1598
 
1330
- export type RevokeRoleRequestBodyRoleEnum = typeof RevokeRoleRequestBodyRoleEnum[keyof typeof RevokeRoleRequestBodyRoleEnum];
1599
+ export type RevokeRoleRequestBodyRoleEnum = typeof RevokeRoleRequestBodyRoleEnum[keyof typeof RevokeRoleRequestBodyRoleEnum];
1600
+
1601
+ /**
1602
+ * Successful role revocation response
1603
+ * @export
1604
+ * @interface RevokeRoleSuccessResponse
1605
+ */
1606
+ export interface RevokeRoleSuccessResponse {
1607
+ /**
1608
+ * Confirmation message
1609
+ * @type {string}
1610
+ * @memberof RevokeRoleSuccessResponse
1611
+ */
1612
+ 'message': string;
1613
+ }
1614
+ /**
1615
+ * Role names
1616
+ * @export
1617
+ * @enum {string}
1618
+ */
1619
+
1620
+ export const RoleNames = {
1621
+ Admin: 'Admin',
1622
+ Factory: 'Factory'
1623
+ } as const;
1624
+
1625
+ export type RoleNames = typeof RoleNames[keyof typeof RoleNames];
1626
+
1627
+
1628
+ /**
1629
+ *
1630
+ * @export
1631
+ * @interface ValidationErrorsInner
1632
+ */
1633
+ export interface ValidationErrorsInner {
1634
+ /**
1635
+ *
1636
+ * @type {Array<ValidationErrorsInnerPathInner>}
1637
+ * @memberof ValidationErrorsInner
1638
+ */
1639
+ 'path'?: Array<ValidationErrorsInnerPathInner>;
1640
+ /**
1641
+ *
1642
+ * @type {string}
1643
+ * @memberof ValidationErrorsInner
1644
+ */
1645
+ 'message': string;
1646
+ }
1647
+ /**
1648
+ *
1649
+ * @export
1650
+ * @interface ValidationErrorsInnerPathInner
1651
+ */
1652
+ export interface ValidationErrorsInnerPathInner {
1653
+ }
1654
+
1655
+ /**
1656
+ * AuthenticationApi - axios parameter creator
1657
+ * @export
1658
+ */
1659
+ export const AuthenticationApiAxiosParamCreator = function (configuration?: Configuration) {
1660
+ return {
1661
+ /**
1662
+ * Authenticate and authorize a user to perform an action
1663
+ * @summary Authenticate and authorize Request
1664
+ * @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest
1665
+ * @param {*} [options] Override http request option.
1666
+ * @throws {RequiredError}
1667
+ */
1668
+ authenticateAndAuthorize: async (authenticateAndAuthorizeRequest: AuthenticateAndAuthorizeRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1669
+ // verify required parameter 'authenticateAndAuthorizeRequest' is not null or undefined
1670
+ assertParamExists('authenticateAndAuthorize', 'authenticateAndAuthorizeRequest', authenticateAndAuthorizeRequest)
1671
+ const localVarPath = `/authenticateAndAuthorize`;
1672
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1673
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1674
+ let baseOptions;
1675
+ if (configuration) {
1676
+ baseOptions = configuration.baseOptions;
1677
+ }
1678
+
1679
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1680
+ const localVarHeaderParameter = {} as any;
1681
+ const localVarQueryParameter = {} as any;
1682
+
1683
+ // authentication ApiKeyAuth required
1684
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
1685
+
1686
+
1687
+
1688
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1689
+
1690
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1691
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1692
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1693
+ localVarRequestOptions.data = serializeDataIfNeeded(authenticateAndAuthorizeRequest, localVarRequestOptions, configuration)
1694
+
1695
+ return {
1696
+ url: toPathString(localVarUrlObj),
1697
+ options: localVarRequestOptions,
1698
+ };
1699
+ },
1700
+ }
1701
+ };
1702
+
1703
+ /**
1704
+ * AuthenticationApi - functional programming interface
1705
+ * @export
1706
+ */
1707
+ export const AuthenticationApiFp = function(configuration?: Configuration) {
1708
+ const localVarAxiosParamCreator = AuthenticationApiAxiosParamCreator(configuration)
1709
+ return {
1710
+ /**
1711
+ * Authenticate and authorize a user to perform an action
1712
+ * @summary Authenticate and authorize Request
1713
+ * @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest
1714
+ * @param {*} [options] Override http request option.
1715
+ * @throws {RequiredError}
1716
+ */
1717
+ async authenticateAndAuthorize(authenticateAndAuthorizeRequest: AuthenticateAndAuthorizeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthenticateAndAuthorizeResponse>> {
1718
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authenticateAndAuthorize(authenticateAndAuthorizeRequest, options);
1719
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1720
+ const localVarOperationServerBasePath = operationServerMap['AuthenticationApi.authenticateAndAuthorize']?.[localVarOperationServerIndex]?.url;
1721
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1722
+ },
1723
+ }
1724
+ };
1725
+
1726
+ /**
1727
+ * AuthenticationApi - factory interface
1728
+ * @export
1729
+ */
1730
+ export const AuthenticationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1731
+ const localVarFp = AuthenticationApiFp(configuration)
1732
+ return {
1733
+ /**
1734
+ * Authenticate and authorize a user to perform an action
1735
+ * @summary Authenticate and authorize Request
1736
+ * @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest
1737
+ * @param {*} [options] Override http request option.
1738
+ * @throws {RequiredError}
1739
+ */
1740
+ authenticateAndAuthorize(authenticateAndAuthorizeRequest: AuthenticateAndAuthorizeRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthenticateAndAuthorizeResponse> {
1741
+ return localVarFp.authenticateAndAuthorize(authenticateAndAuthorizeRequest, options).then((request) => request(axios, basePath));
1742
+ },
1743
+ };
1744
+ };
1745
+
1746
+ /**
1747
+ * AuthenticationApi - object-oriented interface
1748
+ * @export
1749
+ * @class AuthenticationApi
1750
+ * @extends {BaseAPI}
1751
+ */
1752
+ export class AuthenticationApi extends BaseAPI {
1753
+ /**
1754
+ * Authenticate and authorize a user to perform an action
1755
+ * @summary Authenticate and authorize Request
1756
+ * @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest
1757
+ * @param {*} [options] Override http request option.
1758
+ * @throws {RequiredError}
1759
+ * @memberof AuthenticationApi
1760
+ */
1761
+ public authenticateAndAuthorize(authenticateAndAuthorizeRequest: AuthenticateAndAuthorizeRequest, options?: RawAxiosRequestConfig) {
1762
+ return AuthenticationApiFp(this.configuration).authenticateAndAuthorize(authenticateAndAuthorizeRequest, options).then((request) => request(this.axios, this.basePath));
1763
+ }
1764
+ }
1765
+
1766
+
1767
+
1768
+ /**
1769
+ * AuthorizationApi - axios parameter creator
1770
+ * @export
1771
+ */
1772
+ export const AuthorizationApiAxiosParamCreator = function (configuration?: Configuration) {
1773
+ return {
1774
+ /**
1775
+ * Authenticate and authorize a user to perform an action
1776
+ * @summary Authenticate and authorize Request
1777
+ * @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest
1778
+ * @param {*} [options] Override http request option.
1779
+ * @throws {RequiredError}
1780
+ */
1781
+ authenticateAndAuthorize: async (authenticateAndAuthorizeRequest: AuthenticateAndAuthorizeRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1782
+ // verify required parameter 'authenticateAndAuthorizeRequest' is not null or undefined
1783
+ assertParamExists('authenticateAndAuthorize', 'authenticateAndAuthorizeRequest', authenticateAndAuthorizeRequest)
1784
+ const localVarPath = `/authenticateAndAuthorize`;
1785
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1786
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1787
+ let baseOptions;
1788
+ if (configuration) {
1789
+ baseOptions = configuration.baseOptions;
1790
+ }
1791
+
1792
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1793
+ const localVarHeaderParameter = {} as any;
1794
+ const localVarQueryParameter = {} as any;
1795
+
1796
+ // authentication ApiKeyAuth required
1797
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
1798
+
1799
+
1800
+
1801
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1802
+
1803
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1804
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1805
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1806
+ localVarRequestOptions.data = serializeDataIfNeeded(authenticateAndAuthorizeRequest, localVarRequestOptions, configuration)
1807
+
1808
+ return {
1809
+ url: toPathString(localVarUrlObj),
1810
+ options: localVarRequestOptions,
1811
+ };
1812
+ },
1813
+ /**
1814
+ * Authenticate and check if a user is in any/all of the roles
1815
+ * @summary Authenticate and Check Is In Role
1816
+ * @param {AuthenticateAndCheckIsInRoleRequest} [authenticateAndCheckIsInRoleRequest]
1817
+ * @param {*} [options] Override http request option.
1818
+ * @throws {RequiredError}
1819
+ */
1820
+ authenticateAndCheckIsInRole: async (authenticateAndCheckIsInRoleRequest?: AuthenticateAndCheckIsInRoleRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1821
+ const localVarPath = `/authenticateAndCheckIsInRole`;
1822
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1823
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1824
+ let baseOptions;
1825
+ if (configuration) {
1826
+ baseOptions = configuration.baseOptions;
1827
+ }
1828
+
1829
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1830
+ const localVarHeaderParameter = {} as any;
1831
+ const localVarQueryParameter = {} as any;
1832
+
1833
+ // authentication ApiKeyAuth required
1834
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
1835
+
1836
+
1837
+
1838
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1839
+
1840
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1841
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1842
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1843
+ localVarRequestOptions.data = serializeDataIfNeeded(authenticateAndCheckIsInRoleRequest, localVarRequestOptions, configuration)
1844
+
1845
+ return {
1846
+ url: toPathString(localVarUrlObj),
1847
+ options: localVarRequestOptions,
1848
+ };
1849
+ },
1850
+ /**
1851
+ * Check if a user is authorized to perform an action
1852
+ * @summary Authorize Request
1853
+ * @param {AuthorizationRequest} [authorizationRequest]
1854
+ * @param {*} [options] Override http request option.
1855
+ * @throws {RequiredError}
1856
+ */
1857
+ authorize: async (authorizationRequest?: AuthorizationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1858
+ const localVarPath = `/authorize`;
1859
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1860
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1861
+ let baseOptions;
1862
+ if (configuration) {
1863
+ baseOptions = configuration.baseOptions;
1864
+ }
1865
+
1866
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1867
+ const localVarHeaderParameter = {} as any;
1868
+ const localVarQueryParameter = {} as any;
1869
+
1870
+ // authentication ApiKeyAuth required
1871
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
1872
+
1873
+
1874
+
1875
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1876
+
1877
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1878
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1879
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1880
+ localVarRequestOptions.data = serializeDataIfNeeded(authorizationRequest, localVarRequestOptions, configuration)
1331
1881
 
1332
- /**
1333
- * Successful role revocation response
1334
- * @export
1335
- * @interface RevokeRoleSuccessResponse
1336
- */
1337
- export interface RevokeRoleSuccessResponse {
1338
- /**
1339
- * Confirmation message
1340
- * @type {string}
1341
- * @memberof RevokeRoleSuccessResponse
1342
- */
1343
- 'message': string;
1344
- }
1345
- /**
1346
- *
1347
- * @export
1348
- * @interface RolesInner
1349
- */
1350
- export interface RolesInner {
1351
- /**
1352
- * Name of the role
1353
- * @type {string}
1354
- * @memberof RolesInner
1355
- */
1356
- 'name': string;
1357
- /**
1358
- *
1359
- * @type {Permissions & Array<string>}
1360
- * @memberof RolesInner
1361
- */
1362
- 'permissions': Permissions & Array<string>;
1363
- }
1364
- /**
1365
- *
1366
- * @export
1367
- * @interface ValidationErrorsInner
1368
- */
1369
- export interface ValidationErrorsInner {
1370
- /**
1371
- *
1372
- * @type {Array<ValidationErrorsInnerPathInner>}
1373
- * @memberof ValidationErrorsInner
1374
- */
1375
- 'path'?: Array<ValidationErrorsInnerPathInner>;
1376
- /**
1377
- *
1378
- * @type {string}
1379
- * @memberof ValidationErrorsInner
1380
- */
1381
- 'message': string;
1382
- }
1383
- /**
1384
- *
1385
- * @export
1386
- * @interface ValidationErrorsInnerPathInner
1387
- */
1388
- export interface ValidationErrorsInnerPathInner {
1389
- }
1882
+ return {
1883
+ url: toPathString(localVarUrlObj),
1884
+ options: localVarRequestOptions,
1885
+ };
1886
+ },
1887
+ /**
1888
+ * Check if a user is authorized to perform an action on multiple resources
1889
+ * @summary Authorize Batch Request
1890
+ * @param {AuthorizationBatchRequest} [authorizationBatchRequest]
1891
+ * @param {*} [options] Override http request option.
1892
+ * @throws {RequiredError}
1893
+ */
1894
+ authorizeBatch: async (authorizationBatchRequest?: AuthorizationBatchRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1895
+ const localVarPath = `/authorize/batch`;
1896
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1897
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1898
+ let baseOptions;
1899
+ if (configuration) {
1900
+ baseOptions = configuration.baseOptions;
1901
+ }
1390
1902
 
1391
- /**
1392
- * AuthenticationApi - axios parameter creator
1393
- * @export
1394
- */
1395
- export const AuthenticationApiAxiosParamCreator = function (configuration?: Configuration) {
1396
- return {
1903
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1904
+ const localVarHeaderParameter = {} as any;
1905
+ const localVarQueryParameter = {} as any;
1906
+
1907
+ // authentication ApiKeyAuth required
1908
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
1909
+
1910
+
1911
+
1912
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1913
+
1914
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1915
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1916
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1917
+ localVarRequestOptions.data = serializeDataIfNeeded(authorizationBatchRequest, localVarRequestOptions, configuration)
1918
+
1919
+ return {
1920
+ url: toPathString(localVarUrlObj),
1921
+ options: localVarRequestOptions,
1922
+ };
1923
+ },
1397
1924
  /**
1398
- * Authenticate and authorize a user to perform an action
1399
- * @summary Authenticate and authorize Request
1400
- * @param {AuthenticateAndAuthorizeRequest} [authenticateAndAuthorizeRequest]
1925
+ * Check if a user is in any/all of the roles
1926
+ * @summary Check Is In Role
1927
+ * @param {IsInRoleRequest} [isInRoleRequest]
1401
1928
  * @param {*} [options] Override http request option.
1402
1929
  * @throws {RequiredError}
1403
1930
  */
1404
- authenticateAndAuthorize: async (authenticateAndAuthorizeRequest?: AuthenticateAndAuthorizeRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1405
- const localVarPath = `/authenticateAndAuthorize`;
1931
+ checkIsInRole: async (isInRoleRequest?: IsInRoleRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1932
+ const localVarPath = `/checkIsInRole`;
1406
1933
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1407
1934
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1408
1935
  let baseOptions;
@@ -1424,7 +1951,7 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
1424
1951
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1425
1952
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1426
1953
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1427
- localVarRequestOptions.data = serializeDataIfNeeded(authenticateAndAuthorizeRequest, localVarRequestOptions, configuration)
1954
+ localVarRequestOptions.data = serializeDataIfNeeded(isInRoleRequest, localVarRequestOptions, configuration)
1428
1955
 
1429
1956
  return {
1430
1957
  url: toPathString(localVarUrlObj),
@@ -1435,85 +1962,266 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
1435
1962
  };
1436
1963
 
1437
1964
  /**
1438
- * AuthenticationApi - functional programming interface
1965
+ * AuthorizationApi - functional programming interface
1439
1966
  * @export
1440
1967
  */
1441
- export const AuthenticationApiFp = function(configuration?: Configuration) {
1442
- const localVarAxiosParamCreator = AuthenticationApiAxiosParamCreator(configuration)
1968
+ export const AuthorizationApiFp = function(configuration?: Configuration) {
1969
+ const localVarAxiosParamCreator = AuthorizationApiAxiosParamCreator(configuration)
1443
1970
  return {
1444
1971
  /**
1445
1972
  * Authenticate and authorize a user to perform an action
1446
1973
  * @summary Authenticate and authorize Request
1447
- * @param {AuthenticateAndAuthorizeRequest} [authenticateAndAuthorizeRequest]
1974
+ * @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest
1448
1975
  * @param {*} [options] Override http request option.
1449
1976
  * @throws {RequiredError}
1450
1977
  */
1451
- async authenticateAndAuthorize(authenticateAndAuthorizeRequest?: AuthenticateAndAuthorizeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthenticateAndAuthorizeResponse>> {
1978
+ async authenticateAndAuthorize(authenticateAndAuthorizeRequest: AuthenticateAndAuthorizeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthenticateAndAuthorizeResponse>> {
1452
1979
  const localVarAxiosArgs = await localVarAxiosParamCreator.authenticateAndAuthorize(authenticateAndAuthorizeRequest, options);
1453
1980
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1454
- const localVarOperationServerBasePath = operationServerMap['AuthenticationApi.authenticateAndAuthorize']?.[localVarOperationServerIndex]?.url;
1981
+ const localVarOperationServerBasePath = operationServerMap['AuthorizationApi.authenticateAndAuthorize']?.[localVarOperationServerIndex]?.url;
1982
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1983
+ },
1984
+ /**
1985
+ * Authenticate and check if a user is in any/all of the roles
1986
+ * @summary Authenticate and Check Is In Role
1987
+ * @param {AuthenticateAndCheckIsInRoleRequest} [authenticateAndCheckIsInRoleRequest]
1988
+ * @param {*} [options] Override http request option.
1989
+ * @throws {RequiredError}
1990
+ */
1991
+ async authenticateAndCheckIsInRole(authenticateAndCheckIsInRoleRequest?: AuthenticateAndCheckIsInRoleRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthenticateAndCheckIsInRoleResponse>> {
1992
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authenticateAndCheckIsInRole(authenticateAndCheckIsInRoleRequest, options);
1993
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1994
+ const localVarOperationServerBasePath = operationServerMap['AuthorizationApi.authenticateAndCheckIsInRole']?.[localVarOperationServerIndex]?.url;
1995
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1996
+ },
1997
+ /**
1998
+ * Check if a user is authorized to perform an action
1999
+ * @summary Authorize Request
2000
+ * @param {AuthorizationRequest} [authorizationRequest]
2001
+ * @param {*} [options] Override http request option.
2002
+ * @throws {RequiredError}
2003
+ */
2004
+ async authorize(authorizationRequest?: AuthorizationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthorizationResponse>> {
2005
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authorize(authorizationRequest, options);
2006
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2007
+ const localVarOperationServerBasePath = operationServerMap['AuthorizationApi.authorize']?.[localVarOperationServerIndex]?.url;
2008
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2009
+ },
2010
+ /**
2011
+ * Check if a user is authorized to perform an action on multiple resources
2012
+ * @summary Authorize Batch Request
2013
+ * @param {AuthorizationBatchRequest} [authorizationBatchRequest]
2014
+ * @param {*} [options] Override http request option.
2015
+ * @throws {RequiredError}
2016
+ */
2017
+ async authorizeBatch(authorizationBatchRequest?: AuthorizationBatchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthorizationBatchResponse>> {
2018
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authorizeBatch(authorizationBatchRequest, options);
2019
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2020
+ const localVarOperationServerBasePath = operationServerMap['AuthorizationApi.authorizeBatch']?.[localVarOperationServerIndex]?.url;
2021
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2022
+ },
2023
+ /**
2024
+ * Check if a user is in any/all of the roles
2025
+ * @summary Check Is In Role
2026
+ * @param {IsInRoleRequest} [isInRoleRequest]
2027
+ * @param {*} [options] Override http request option.
2028
+ * @throws {RequiredError}
2029
+ */
2030
+ async checkIsInRole(isInRoleRequest?: IsInRoleRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IsInRoleResponse>> {
2031
+ const localVarAxiosArgs = await localVarAxiosParamCreator.checkIsInRole(isInRoleRequest, options);
2032
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2033
+ const localVarOperationServerBasePath = operationServerMap['AuthorizationApi.checkIsInRole']?.[localVarOperationServerIndex]?.url;
1455
2034
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1456
2035
  },
1457
2036
  }
1458
2037
  };
1459
2038
 
1460
2039
  /**
1461
- * AuthenticationApi - factory interface
2040
+ * AuthorizationApi - factory interface
1462
2041
  * @export
1463
2042
  */
1464
- export const AuthenticationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1465
- const localVarFp = AuthenticationApiFp(configuration)
2043
+ export const AuthorizationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2044
+ const localVarFp = AuthorizationApiFp(configuration)
1466
2045
  return {
1467
2046
  /**
1468
2047
  * Authenticate and authorize a user to perform an action
1469
2048
  * @summary Authenticate and authorize Request
1470
- * @param {AuthenticateAndAuthorizeRequest} [authenticateAndAuthorizeRequest]
2049
+ * @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest
1471
2050
  * @param {*} [options] Override http request option.
1472
2051
  * @throws {RequiredError}
1473
2052
  */
1474
- authenticateAndAuthorize(authenticateAndAuthorizeRequest?: AuthenticateAndAuthorizeRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthenticateAndAuthorizeResponse> {
2053
+ authenticateAndAuthorize(authenticateAndAuthorizeRequest: AuthenticateAndAuthorizeRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthenticateAndAuthorizeResponse> {
1475
2054
  return localVarFp.authenticateAndAuthorize(authenticateAndAuthorizeRequest, options).then((request) => request(axios, basePath));
1476
2055
  },
2056
+ /**
2057
+ * Authenticate and check if a user is in any/all of the roles
2058
+ * @summary Authenticate and Check Is In Role
2059
+ * @param {AuthenticateAndCheckIsInRoleRequest} [authenticateAndCheckIsInRoleRequest]
2060
+ * @param {*} [options] Override http request option.
2061
+ * @throws {RequiredError}
2062
+ */
2063
+ authenticateAndCheckIsInRole(authenticateAndCheckIsInRoleRequest?: AuthenticateAndCheckIsInRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthenticateAndCheckIsInRoleResponse> {
2064
+ return localVarFp.authenticateAndCheckIsInRole(authenticateAndCheckIsInRoleRequest, options).then((request) => request(axios, basePath));
2065
+ },
2066
+ /**
2067
+ * Check if a user is authorized to perform an action
2068
+ * @summary Authorize Request
2069
+ * @param {AuthorizationRequest} [authorizationRequest]
2070
+ * @param {*} [options] Override http request option.
2071
+ * @throws {RequiredError}
2072
+ */
2073
+ authorize(authorizationRequest?: AuthorizationRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthorizationResponse> {
2074
+ return localVarFp.authorize(authorizationRequest, options).then((request) => request(axios, basePath));
2075
+ },
2076
+ /**
2077
+ * Check if a user is authorized to perform an action on multiple resources
2078
+ * @summary Authorize Batch Request
2079
+ * @param {AuthorizationBatchRequest} [authorizationBatchRequest]
2080
+ * @param {*} [options] Override http request option.
2081
+ * @throws {RequiredError}
2082
+ */
2083
+ authorizeBatch(authorizationBatchRequest?: AuthorizationBatchRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthorizationBatchResponse> {
2084
+ return localVarFp.authorizeBatch(authorizationBatchRequest, options).then((request) => request(axios, basePath));
2085
+ },
2086
+ /**
2087
+ * Check if a user is in any/all of the roles
2088
+ * @summary Check Is In Role
2089
+ * @param {IsInRoleRequest} [isInRoleRequest]
2090
+ * @param {*} [options] Override http request option.
2091
+ * @throws {RequiredError}
2092
+ */
2093
+ checkIsInRole(isInRoleRequest?: IsInRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<IsInRoleResponse> {
2094
+ return localVarFp.checkIsInRole(isInRoleRequest, options).then((request) => request(axios, basePath));
2095
+ },
1477
2096
  };
1478
2097
  };
1479
2098
 
1480
2099
  /**
1481
- * AuthenticationApi - object-oriented interface
2100
+ * AuthorizationApi - object-oriented interface
1482
2101
  * @export
1483
- * @class AuthenticationApi
2102
+ * @class AuthorizationApi
1484
2103
  * @extends {BaseAPI}
1485
2104
  */
1486
- export class AuthenticationApi extends BaseAPI {
2105
+ export class AuthorizationApi extends BaseAPI {
1487
2106
  /**
1488
2107
  * Authenticate and authorize a user to perform an action
1489
2108
  * @summary Authenticate and authorize Request
1490
- * @param {AuthenticateAndAuthorizeRequest} [authenticateAndAuthorizeRequest]
2109
+ * @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest
1491
2110
  * @param {*} [options] Override http request option.
1492
2111
  * @throws {RequiredError}
1493
- * @memberof AuthenticationApi
2112
+ * @memberof AuthorizationApi
1494
2113
  */
1495
- public authenticateAndAuthorize(authenticateAndAuthorizeRequest?: AuthenticateAndAuthorizeRequest, options?: RawAxiosRequestConfig) {
1496
- return AuthenticationApiFp(this.configuration).authenticateAndAuthorize(authenticateAndAuthorizeRequest, options).then((request) => request(this.axios, this.basePath));
2114
+ public authenticateAndAuthorize(authenticateAndAuthorizeRequest: AuthenticateAndAuthorizeRequest, options?: RawAxiosRequestConfig) {
2115
+ return AuthorizationApiFp(this.configuration).authenticateAndAuthorize(authenticateAndAuthorizeRequest, options).then((request) => request(this.axios, this.basePath));
2116
+ }
2117
+
2118
+ /**
2119
+ * Authenticate and check if a user is in any/all of the roles
2120
+ * @summary Authenticate and Check Is In Role
2121
+ * @param {AuthenticateAndCheckIsInRoleRequest} [authenticateAndCheckIsInRoleRequest]
2122
+ * @param {*} [options] Override http request option.
2123
+ * @throws {RequiredError}
2124
+ * @memberof AuthorizationApi
2125
+ */
2126
+ public authenticateAndCheckIsInRole(authenticateAndCheckIsInRoleRequest?: AuthenticateAndCheckIsInRoleRequest, options?: RawAxiosRequestConfig) {
2127
+ return AuthorizationApiFp(this.configuration).authenticateAndCheckIsInRole(authenticateAndCheckIsInRoleRequest, options).then((request) => request(this.axios, this.basePath));
2128
+ }
2129
+
2130
+ /**
2131
+ * Check if a user is authorized to perform an action
2132
+ * @summary Authorize Request
2133
+ * @param {AuthorizationRequest} [authorizationRequest]
2134
+ * @param {*} [options] Override http request option.
2135
+ * @throws {RequiredError}
2136
+ * @memberof AuthorizationApi
2137
+ */
2138
+ public authorize(authorizationRequest?: AuthorizationRequest, options?: RawAxiosRequestConfig) {
2139
+ return AuthorizationApiFp(this.configuration).authorize(authorizationRequest, options).then((request) => request(this.axios, this.basePath));
2140
+ }
2141
+
2142
+ /**
2143
+ * Check if a user is authorized to perform an action on multiple resources
2144
+ * @summary Authorize Batch Request
2145
+ * @param {AuthorizationBatchRequest} [authorizationBatchRequest]
2146
+ * @param {*} [options] Override http request option.
2147
+ * @throws {RequiredError}
2148
+ * @memberof AuthorizationApi
2149
+ */
2150
+ public authorizeBatch(authorizationBatchRequest?: AuthorizationBatchRequest, options?: RawAxiosRequestConfig) {
2151
+ return AuthorizationApiFp(this.configuration).authorizeBatch(authorizationBatchRequest, options).then((request) => request(this.axios, this.basePath));
2152
+ }
2153
+
2154
+ /**
2155
+ * Check if a user is in any/all of the roles
2156
+ * @summary Check Is In Role
2157
+ * @param {IsInRoleRequest} [isInRoleRequest]
2158
+ * @param {*} [options] Override http request option.
2159
+ * @throws {RequiredError}
2160
+ * @memberof AuthorizationApi
2161
+ */
2162
+ public checkIsInRole(isInRoleRequest?: IsInRoleRequest, options?: RawAxiosRequestConfig) {
2163
+ return AuthorizationApiFp(this.configuration).checkIsInRole(isInRoleRequest, options).then((request) => request(this.axios, this.basePath));
1497
2164
  }
1498
2165
  }
1499
2166
 
1500
2167
 
1501
2168
 
1502
2169
  /**
1503
- * AuthorizationApi - axios parameter creator
2170
+ * AuthorizedEntitiesApi - axios parameter creator
1504
2171
  * @export
1505
2172
  */
1506
- export const AuthorizationApiAxiosParamCreator = function (configuration?: Configuration) {
2173
+ export const AuthorizedEntitiesApiAxiosParamCreator = function (configuration?: Configuration) {
1507
2174
  return {
1508
2175
  /**
1509
- * Authenticate and authorize a user to perform an action
1510
- * @summary Authenticate and authorize Request
1511
- * @param {AuthenticateAndAuthorizeRequest} [authenticateAndAuthorizeRequest]
2176
+ * Get the authorized brands for a given org
2177
+ * @summary Get Authorized Brands
2178
+ * @param {string} orgId
2179
+ * @param {GetAuthorizedBrandsRequest} [getAuthorizedBrandsRequest]
2180
+ * @param {*} [options] Override http request option.
2181
+ * @throws {RequiredError}
2182
+ */
2183
+ getAuthorizedBrands: async (orgId: string, getAuthorizedBrandsRequest?: GetAuthorizedBrandsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2184
+ // verify required parameter 'orgId' is not null or undefined
2185
+ assertParamExists('getAuthorizedBrands', 'orgId', orgId)
2186
+ const localVarPath = `/orgs/{orgId}/getAuthorizedBrands`
2187
+ .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
2188
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2189
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2190
+ let baseOptions;
2191
+ if (configuration) {
2192
+ baseOptions = configuration.baseOptions;
2193
+ }
2194
+
2195
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2196
+ const localVarHeaderParameter = {} as any;
2197
+ const localVarQueryParameter = {} as any;
2198
+
2199
+ // authentication ApiKeyAuth required
2200
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
2201
+
2202
+
2203
+
2204
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2205
+
2206
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2207
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2208
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2209
+ localVarRequestOptions.data = serializeDataIfNeeded(getAuthorizedBrandsRequest, localVarRequestOptions, configuration)
2210
+
2211
+ return {
2212
+ url: toPathString(localVarUrlObj),
2213
+ options: localVarRequestOptions,
2214
+ };
2215
+ },
2216
+ /**
2217
+ * Get the authorized orgs for a given principal
2218
+ * @summary Get Authorized Orgs
2219
+ * @param {GetAuthorizedOrgsRequest} [getAuthorizedOrgsRequest]
1512
2220
  * @param {*} [options] Override http request option.
1513
2221
  * @throws {RequiredError}
1514
2222
  */
1515
- authenticateAndAuthorize: async (authenticateAndAuthorizeRequest?: AuthenticateAndAuthorizeRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1516
- const localVarPath = `/authenticateAndAuthorize`;
2223
+ getAuthorizedOrgs: async (getAuthorizedOrgsRequest?: GetAuthorizedOrgsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2224
+ const localVarPath = `/getAuthorizedOrgs`;
1517
2225
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1518
2226
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1519
2227
  let baseOptions;
@@ -1535,7 +2243,7 @@ export const AuthorizationApiAxiosParamCreator = function (configuration?: Confi
1535
2243
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1536
2244
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1537
2245
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1538
- localVarRequestOptions.data = serializeDataIfNeeded(authenticateAndAuthorizeRequest, localVarRequestOptions, configuration)
2246
+ localVarRequestOptions.data = serializeDataIfNeeded(getAuthorizedOrgsRequest, localVarRequestOptions, configuration)
1539
2247
 
1540
2248
  return {
1541
2249
  url: toPathString(localVarUrlObj),
@@ -1543,14 +2251,18 @@ export const AuthorizationApiAxiosParamCreator = function (configuration?: Confi
1543
2251
  };
1544
2252
  },
1545
2253
  /**
1546
- * Check if a user is authorized to perform an action
1547
- * @summary Authorize Request
1548
- * @param {AuthorizationRequest} [authorizationRequest]
2254
+ * Get the authorized properties for a given org
2255
+ * @summary Get Authorized Properties
2256
+ * @param {string} orgId
2257
+ * @param {GetAuthorizedPropertiesRequest} [getAuthorizedPropertiesRequest]
1549
2258
  * @param {*} [options] Override http request option.
1550
2259
  * @throws {RequiredError}
1551
2260
  */
1552
- authorize: async (authorizationRequest?: AuthorizationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1553
- const localVarPath = `/authorize`;
2261
+ getAuthorizedProperties: async (orgId: string, getAuthorizedPropertiesRequest?: GetAuthorizedPropertiesRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2262
+ // verify required parameter 'orgId' is not null or undefined
2263
+ assertParamExists('getAuthorizedProperties', 'orgId', orgId)
2264
+ const localVarPath = `/orgs/{orgId}/getAuthorizedProperties`
2265
+ .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
1554
2266
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1555
2267
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1556
2268
  let baseOptions;
@@ -1572,7 +2284,7 @@ export const AuthorizationApiAxiosParamCreator = function (configuration?: Confi
1572
2284
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1573
2285
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1574
2286
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1575
- localVarRequestOptions.data = serializeDataIfNeeded(authorizationRequest, localVarRequestOptions, configuration)
2287
+ localVarRequestOptions.data = serializeDataIfNeeded(getAuthorizedPropertiesRequest, localVarRequestOptions, configuration)
1576
2288
 
1577
2289
  return {
1578
2290
  url: toPathString(localVarUrlObj),
@@ -1583,111 +2295,284 @@ export const AuthorizationApiAxiosParamCreator = function (configuration?: Confi
1583
2295
  };
1584
2296
 
1585
2297
  /**
1586
- * AuthorizationApi - functional programming interface
2298
+ * AuthorizedEntitiesApi - functional programming interface
1587
2299
  * @export
1588
2300
  */
1589
- export const AuthorizationApiFp = function(configuration?: Configuration) {
1590
- const localVarAxiosParamCreator = AuthorizationApiAxiosParamCreator(configuration)
2301
+ export const AuthorizedEntitiesApiFp = function(configuration?: Configuration) {
2302
+ const localVarAxiosParamCreator = AuthorizedEntitiesApiAxiosParamCreator(configuration)
1591
2303
  return {
1592
2304
  /**
1593
- * Authenticate and authorize a user to perform an action
1594
- * @summary Authenticate and authorize Request
1595
- * @param {AuthenticateAndAuthorizeRequest} [authenticateAndAuthorizeRequest]
2305
+ * Get the authorized brands for a given org
2306
+ * @summary Get Authorized Brands
2307
+ * @param {string} orgId
2308
+ * @param {GetAuthorizedBrandsRequest} [getAuthorizedBrandsRequest]
1596
2309
  * @param {*} [options] Override http request option.
1597
2310
  * @throws {RequiredError}
1598
2311
  */
1599
- async authenticateAndAuthorize(authenticateAndAuthorizeRequest?: AuthenticateAndAuthorizeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthenticateAndAuthorizeResponse>> {
1600
- const localVarAxiosArgs = await localVarAxiosParamCreator.authenticateAndAuthorize(authenticateAndAuthorizeRequest, options);
2312
+ async getAuthorizedBrands(orgId: string, getAuthorizedBrandsRequest?: GetAuthorizedBrandsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAuthorizedBrandsResponse>> {
2313
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthorizedBrands(orgId, getAuthorizedBrandsRequest, options);
1601
2314
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1602
- const localVarOperationServerBasePath = operationServerMap['AuthorizationApi.authenticateAndAuthorize']?.[localVarOperationServerIndex]?.url;
2315
+ const localVarOperationServerBasePath = operationServerMap['AuthorizedEntitiesApi.getAuthorizedBrands']?.[localVarOperationServerIndex]?.url;
1603
2316
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1604
2317
  },
1605
2318
  /**
1606
- * Check if a user is authorized to perform an action
1607
- * @summary Authorize Request
1608
- * @param {AuthorizationRequest} [authorizationRequest]
2319
+ * Get the authorized orgs for a given principal
2320
+ * @summary Get Authorized Orgs
2321
+ * @param {GetAuthorizedOrgsRequest} [getAuthorizedOrgsRequest]
1609
2322
  * @param {*} [options] Override http request option.
1610
2323
  * @throws {RequiredError}
1611
2324
  */
1612
- async authorize(authorizationRequest?: AuthorizationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthorizationResponse>> {
1613
- const localVarAxiosArgs = await localVarAxiosParamCreator.authorize(authorizationRequest, options);
2325
+ async getAuthorizedOrgs(getAuthorizedOrgsRequest?: GetAuthorizedOrgsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAuthorizedOrgsResponse>> {
2326
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthorizedOrgs(getAuthorizedOrgsRequest, options);
1614
2327
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1615
- const localVarOperationServerBasePath = operationServerMap['AuthorizationApi.authorize']?.[localVarOperationServerIndex]?.url;
2328
+ const localVarOperationServerBasePath = operationServerMap['AuthorizedEntitiesApi.getAuthorizedOrgs']?.[localVarOperationServerIndex]?.url;
2329
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2330
+ },
2331
+ /**
2332
+ * Get the authorized properties for a given org
2333
+ * @summary Get Authorized Properties
2334
+ * @param {string} orgId
2335
+ * @param {GetAuthorizedPropertiesRequest} [getAuthorizedPropertiesRequest]
2336
+ * @param {*} [options] Override http request option.
2337
+ * @throws {RequiredError}
2338
+ */
2339
+ async getAuthorizedProperties(orgId: string, getAuthorizedPropertiesRequest?: GetAuthorizedPropertiesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAuthorizedPropertiesResponse>> {
2340
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthorizedProperties(orgId, getAuthorizedPropertiesRequest, options);
2341
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2342
+ const localVarOperationServerBasePath = operationServerMap['AuthorizedEntitiesApi.getAuthorizedProperties']?.[localVarOperationServerIndex]?.url;
1616
2343
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1617
2344
  },
1618
2345
  }
1619
2346
  };
1620
2347
 
1621
2348
  /**
1622
- * AuthorizationApi - factory interface
2349
+ * AuthorizedEntitiesApi - factory interface
1623
2350
  * @export
1624
2351
  */
1625
- export const AuthorizationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1626
- const localVarFp = AuthorizationApiFp(configuration)
2352
+ export const AuthorizedEntitiesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2353
+ const localVarFp = AuthorizedEntitiesApiFp(configuration)
1627
2354
  return {
1628
2355
  /**
1629
- * Authenticate and authorize a user to perform an action
1630
- * @summary Authenticate and authorize Request
1631
- * @param {AuthenticateAndAuthorizeRequest} [authenticateAndAuthorizeRequest]
2356
+ * Get the authorized brands for a given org
2357
+ * @summary Get Authorized Brands
2358
+ * @param {string} orgId
2359
+ * @param {GetAuthorizedBrandsRequest} [getAuthorizedBrandsRequest]
1632
2360
  * @param {*} [options] Override http request option.
1633
2361
  * @throws {RequiredError}
1634
2362
  */
1635
- authenticateAndAuthorize(authenticateAndAuthorizeRequest?: AuthenticateAndAuthorizeRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthenticateAndAuthorizeResponse> {
1636
- return localVarFp.authenticateAndAuthorize(authenticateAndAuthorizeRequest, options).then((request) => request(axios, basePath));
2363
+ getAuthorizedBrands(orgId: string, getAuthorizedBrandsRequest?: GetAuthorizedBrandsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAuthorizedBrandsResponse> {
2364
+ return localVarFp.getAuthorizedBrands(orgId, getAuthorizedBrandsRequest, options).then((request) => request(axios, basePath));
1637
2365
  },
1638
2366
  /**
1639
- * Check if a user is authorized to perform an action
1640
- * @summary Authorize Request
1641
- * @param {AuthorizationRequest} [authorizationRequest]
2367
+ * Get the authorized orgs for a given principal
2368
+ * @summary Get Authorized Orgs
2369
+ * @param {GetAuthorizedOrgsRequest} [getAuthorizedOrgsRequest]
1642
2370
  * @param {*} [options] Override http request option.
1643
2371
  * @throws {RequiredError}
1644
2372
  */
1645
- authorize(authorizationRequest?: AuthorizationRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthorizationResponse> {
1646
- return localVarFp.authorize(authorizationRequest, options).then((request) => request(axios, basePath));
2373
+ getAuthorizedOrgs(getAuthorizedOrgsRequest?: GetAuthorizedOrgsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAuthorizedOrgsResponse> {
2374
+ return localVarFp.getAuthorizedOrgs(getAuthorizedOrgsRequest, options).then((request) => request(axios, basePath));
2375
+ },
2376
+ /**
2377
+ * Get the authorized properties for a given org
2378
+ * @summary Get Authorized Properties
2379
+ * @param {string} orgId
2380
+ * @param {GetAuthorizedPropertiesRequest} [getAuthorizedPropertiesRequest]
2381
+ * @param {*} [options] Override http request option.
2382
+ * @throws {RequiredError}
2383
+ */
2384
+ getAuthorizedProperties(orgId: string, getAuthorizedPropertiesRequest?: GetAuthorizedPropertiesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAuthorizedPropertiesResponse> {
2385
+ return localVarFp.getAuthorizedProperties(orgId, getAuthorizedPropertiesRequest, options).then((request) => request(axios, basePath));
1647
2386
  },
1648
2387
  };
1649
2388
  };
1650
2389
 
1651
2390
  /**
1652
- * AuthorizationApi - object-oriented interface
2391
+ * AuthorizedEntitiesApi - object-oriented interface
1653
2392
  * @export
1654
- * @class AuthorizationApi
2393
+ * @class AuthorizedEntitiesApi
1655
2394
  * @extends {BaseAPI}
1656
2395
  */
1657
- export class AuthorizationApi extends BaseAPI {
2396
+ export class AuthorizedEntitiesApi extends BaseAPI {
1658
2397
  /**
1659
- * Authenticate and authorize a user to perform an action
1660
- * @summary Authenticate and authorize Request
1661
- * @param {AuthenticateAndAuthorizeRequest} [authenticateAndAuthorizeRequest]
2398
+ * Get the authorized brands for a given org
2399
+ * @summary Get Authorized Brands
2400
+ * @param {string} orgId
2401
+ * @param {GetAuthorizedBrandsRequest} [getAuthorizedBrandsRequest]
1662
2402
  * @param {*} [options] Override http request option.
1663
2403
  * @throws {RequiredError}
1664
- * @memberof AuthorizationApi
2404
+ * @memberof AuthorizedEntitiesApi
1665
2405
  */
1666
- public authenticateAndAuthorize(authenticateAndAuthorizeRequest?: AuthenticateAndAuthorizeRequest, options?: RawAxiosRequestConfig) {
1667
- return AuthorizationApiFp(this.configuration).authenticateAndAuthorize(authenticateAndAuthorizeRequest, options).then((request) => request(this.axios, this.basePath));
2406
+ public getAuthorizedBrands(orgId: string, getAuthorizedBrandsRequest?: GetAuthorizedBrandsRequest, options?: RawAxiosRequestConfig) {
2407
+ return AuthorizedEntitiesApiFp(this.configuration).getAuthorizedBrands(orgId, getAuthorizedBrandsRequest, options).then((request) => request(this.axios, this.basePath));
1668
2408
  }
1669
2409
 
1670
2410
  /**
1671
- * Check if a user is authorized to perform an action
1672
- * @summary Authorize Request
1673
- * @param {AuthorizationRequest} [authorizationRequest]
2411
+ * Get the authorized orgs for a given principal
2412
+ * @summary Get Authorized Orgs
2413
+ * @param {GetAuthorizedOrgsRequest} [getAuthorizedOrgsRequest]
1674
2414
  * @param {*} [options] Override http request option.
1675
2415
  * @throws {RequiredError}
1676
- * @memberof AuthorizationApi
2416
+ * @memberof AuthorizedEntitiesApi
1677
2417
  */
1678
- public authorize(authorizationRequest?: AuthorizationRequest, options?: RawAxiosRequestConfig) {
1679
- return AuthorizationApiFp(this.configuration).authorize(authorizationRequest, options).then((request) => request(this.axios, this.basePath));
2418
+ public getAuthorizedOrgs(getAuthorizedOrgsRequest?: GetAuthorizedOrgsRequest, options?: RawAxiosRequestConfig) {
2419
+ return AuthorizedEntitiesApiFp(this.configuration).getAuthorizedOrgs(getAuthorizedOrgsRequest, options).then((request) => request(this.axios, this.basePath));
2420
+ }
2421
+
2422
+ /**
2423
+ * Get the authorized properties for a given org
2424
+ * @summary Get Authorized Properties
2425
+ * @param {string} orgId
2426
+ * @param {GetAuthorizedPropertiesRequest} [getAuthorizedPropertiesRequest]
2427
+ * @param {*} [options] Override http request option.
2428
+ * @throws {RequiredError}
2429
+ * @memberof AuthorizedEntitiesApi
2430
+ */
2431
+ public getAuthorizedProperties(orgId: string, getAuthorizedPropertiesRequest?: GetAuthorizedPropertiesRequest, options?: RawAxiosRequestConfig) {
2432
+ return AuthorizedEntitiesApiFp(this.configuration).getAuthorizedProperties(orgId, getAuthorizedPropertiesRequest, options).then((request) => request(this.axios, this.basePath));
1680
2433
  }
1681
2434
  }
1682
2435
 
1683
2436
 
1684
2437
 
1685
2438
  /**
1686
- * PermissionsApi - axios parameter creator
2439
+ * ConfigurationDataApi - axios parameter creator
1687
2440
  * @export
1688
2441
  */
1689
- export const PermissionsApiAxiosParamCreator = function (configuration?: Configuration) {
2442
+ export const ConfigurationDataApiAxiosParamCreator = function (configuration?: Configuration) {
1690
2443
  return {
2444
+ /**
2445
+ * List the available feature based roles
2446
+ * @summary List Feature Based Roles
2447
+ * @param {*} [options] Override http request option.
2448
+ * @throws {RequiredError}
2449
+ */
2450
+ configListFeatureBasedRoles: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2451
+ const localVarPath = `/config/featureBasedRoles`;
2452
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2453
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2454
+ let baseOptions;
2455
+ if (configuration) {
2456
+ baseOptions = configuration.baseOptions;
2457
+ }
2458
+
2459
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2460
+ const localVarHeaderParameter = {} as any;
2461
+ const localVarQueryParameter = {} as any;
2462
+
2463
+ // authentication ApiKeyAuth required
2464
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
2465
+
2466
+
2467
+
2468
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2469
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2470
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2471
+
2472
+ return {
2473
+ url: toPathString(localVarUrlObj),
2474
+ options: localVarRequestOptions,
2475
+ };
2476
+ },
2477
+ /**
2478
+ * List the available permissions
2479
+ * @summary List Permissions
2480
+ * @param {*} [options] Override http request option.
2481
+ * @throws {RequiredError}
2482
+ */
2483
+ configListPermissions: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2484
+ const localVarPath = `/config/permissions`;
2485
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2486
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2487
+ let baseOptions;
2488
+ if (configuration) {
2489
+ baseOptions = configuration.baseOptions;
2490
+ }
2491
+
2492
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2493
+ const localVarHeaderParameter = {} as any;
2494
+ const localVarQueryParameter = {} as any;
2495
+
2496
+ // authentication ApiKeyAuth required
2497
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
2498
+
2499
+
2500
+
2501
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2502
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2503
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2504
+
2505
+ return {
2506
+ url: toPathString(localVarUrlObj),
2507
+ options: localVarRequestOptions,
2508
+ };
2509
+ },
2510
+ /**
2511
+ * List the available roles
2512
+ * @summary List Roles
2513
+ * @param {*} [options] Override http request option.
2514
+ * @throws {RequiredError}
2515
+ */
2516
+ configListRoles: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2517
+ const localVarPath = `/config/roles`;
2518
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2519
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2520
+ let baseOptions;
2521
+ if (configuration) {
2522
+ baseOptions = configuration.baseOptions;
2523
+ }
2524
+
2525
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2526
+ const localVarHeaderParameter = {} as any;
2527
+ const localVarQueryParameter = {} as any;
2528
+
2529
+ // authentication ApiKeyAuth required
2530
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
2531
+
2532
+
2533
+
2534
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2535
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2536
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2537
+
2538
+ return {
2539
+ url: toPathString(localVarUrlObj),
2540
+ options: localVarRequestOptions,
2541
+ };
2542
+ },
2543
+ /**
2544
+ * List the available feature based roles
2545
+ * @summary List Feature Based Roles
2546
+ * @param {*} [options] Override http request option.
2547
+ * @throws {RequiredError}
2548
+ */
2549
+ listFeatureBasedRoles: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2550
+ const localVarPath = `/featureBasedRoles`;
2551
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2552
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2553
+ let baseOptions;
2554
+ if (configuration) {
2555
+ baseOptions = configuration.baseOptions;
2556
+ }
2557
+
2558
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2559
+ const localVarHeaderParameter = {} as any;
2560
+ const localVarQueryParameter = {} as any;
2561
+
2562
+ // authentication ApiKeyAuth required
2563
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
2564
+
2565
+
2566
+
2567
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2568
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2569
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2570
+
2571
+ return {
2572
+ url: toPathString(localVarUrlObj),
2573
+ options: localVarRequestOptions,
2574
+ };
2575
+ },
1691
2576
  /**
1692
2577
  * List the available permissions
1693
2578
  * @summary List Permissions
@@ -1712,6 +2597,39 @@ export const PermissionsApiAxiosParamCreator = function (configuration?: Configu
1712
2597
 
1713
2598
 
1714
2599
 
2600
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2601
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2602
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2603
+
2604
+ return {
2605
+ url: toPathString(localVarUrlObj),
2606
+ options: localVarRequestOptions,
2607
+ };
2608
+ },
2609
+ /**
2610
+ * List the available roles
2611
+ * @summary List Roles
2612
+ * @param {*} [options] Override http request option.
2613
+ * @throws {RequiredError}
2614
+ */
2615
+ listRoles: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2616
+ const localVarPath = `/roles`;
2617
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2618
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2619
+ let baseOptions;
2620
+ if (configuration) {
2621
+ baseOptions = configuration.baseOptions;
2622
+ }
2623
+
2624
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2625
+ const localVarHeaderParameter = {} as any;
2626
+ const localVarQueryParameter = {} as any;
2627
+
2628
+ // authentication ApiKeyAuth required
2629
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
2630
+
2631
+
2632
+
1715
2633
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1716
2634
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1717
2635
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -1725,62 +2643,222 @@ export const PermissionsApiAxiosParamCreator = function (configuration?: Configu
1725
2643
  };
1726
2644
 
1727
2645
  /**
1728
- * PermissionsApi - functional programming interface
2646
+ * ConfigurationDataApi - functional programming interface
1729
2647
  * @export
1730
2648
  */
1731
- export const PermissionsApiFp = function(configuration?: Configuration) {
1732
- const localVarAxiosParamCreator = PermissionsApiAxiosParamCreator(configuration)
2649
+ export const ConfigurationDataApiFp = function(configuration?: Configuration) {
2650
+ const localVarAxiosParamCreator = ConfigurationDataApiAxiosParamCreator(configuration)
1733
2651
  return {
2652
+ /**
2653
+ * List the available feature based roles
2654
+ * @summary List Feature Based Roles
2655
+ * @param {*} [options] Override http request option.
2656
+ * @throws {RequiredError}
2657
+ */
2658
+ async configListFeatureBasedRoles(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListFeatureBasedRolesSuccessResponse>> {
2659
+ const localVarAxiosArgs = await localVarAxiosParamCreator.configListFeatureBasedRoles(options);
2660
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2661
+ const localVarOperationServerBasePath = operationServerMap['ConfigurationDataApi.configListFeatureBasedRoles']?.[localVarOperationServerIndex]?.url;
2662
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2663
+ },
2664
+ /**
2665
+ * List the available permissions
2666
+ * @summary List Permissions
2667
+ * @param {*} [options] Override http request option.
2668
+ * @throws {RequiredError}
2669
+ */
2670
+ async configListPermissions(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPermissionsSuccessResponse>> {
2671
+ const localVarAxiosArgs = await localVarAxiosParamCreator.configListPermissions(options);
2672
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2673
+ const localVarOperationServerBasePath = operationServerMap['ConfigurationDataApi.configListPermissions']?.[localVarOperationServerIndex]?.url;
2674
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2675
+ },
2676
+ /**
2677
+ * List the available roles
2678
+ * @summary List Roles
2679
+ * @param {*} [options] Override http request option.
2680
+ * @throws {RequiredError}
2681
+ */
2682
+ async configListRoles(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRolesSuccessResponse>> {
2683
+ const localVarAxiosArgs = await localVarAxiosParamCreator.configListRoles(options);
2684
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2685
+ const localVarOperationServerBasePath = operationServerMap['ConfigurationDataApi.configListRoles']?.[localVarOperationServerIndex]?.url;
2686
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2687
+ },
2688
+ /**
2689
+ * List the available feature based roles
2690
+ * @summary List Feature Based Roles
2691
+ * @param {*} [options] Override http request option.
2692
+ * @throws {RequiredError}
2693
+ */
2694
+ async listFeatureBasedRoles(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListFeatureBasedRolesSuccessResponse>> {
2695
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listFeatureBasedRoles(options);
2696
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2697
+ const localVarOperationServerBasePath = operationServerMap['ConfigurationDataApi.listFeatureBasedRoles']?.[localVarOperationServerIndex]?.url;
2698
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2699
+ },
1734
2700
  /**
1735
2701
  * List the available permissions
1736
2702
  * @summary List Permissions
1737
2703
  * @param {*} [options] Override http request option.
1738
2704
  * @throws {RequiredError}
1739
2705
  */
1740
- async listPermissions(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPermissionsSuccessResponse>> {
1741
- const localVarAxiosArgs = await localVarAxiosParamCreator.listPermissions(options);
2706
+ async listPermissions(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPermissionsSuccessResponse>> {
2707
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPermissions(options);
2708
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2709
+ const localVarOperationServerBasePath = operationServerMap['ConfigurationDataApi.listPermissions']?.[localVarOperationServerIndex]?.url;
2710
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2711
+ },
2712
+ /**
2713
+ * List the available roles
2714
+ * @summary List Roles
2715
+ * @param {*} [options] Override http request option.
2716
+ * @throws {RequiredError}
2717
+ */
2718
+ async listRoles(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRolesSuccessResponse>> {
2719
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listRoles(options);
1742
2720
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1743
- const localVarOperationServerBasePath = operationServerMap['PermissionsApi.listPermissions']?.[localVarOperationServerIndex]?.url;
2721
+ const localVarOperationServerBasePath = operationServerMap['ConfigurationDataApi.listRoles']?.[localVarOperationServerIndex]?.url;
1744
2722
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1745
2723
  },
1746
2724
  }
1747
2725
  };
1748
2726
 
1749
2727
  /**
1750
- * PermissionsApi - factory interface
2728
+ * ConfigurationDataApi - factory interface
1751
2729
  * @export
1752
2730
  */
1753
- export const PermissionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1754
- const localVarFp = PermissionsApiFp(configuration)
2731
+ export const ConfigurationDataApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2732
+ const localVarFp = ConfigurationDataApiFp(configuration)
1755
2733
  return {
2734
+ /**
2735
+ * List the available feature based roles
2736
+ * @summary List Feature Based Roles
2737
+ * @param {*} [options] Override http request option.
2738
+ * @throws {RequiredError}
2739
+ */
2740
+ configListFeatureBasedRoles(options?: RawAxiosRequestConfig): AxiosPromise<ListFeatureBasedRolesSuccessResponse> {
2741
+ return localVarFp.configListFeatureBasedRoles(options).then((request) => request(axios, basePath));
2742
+ },
2743
+ /**
2744
+ * List the available permissions
2745
+ * @summary List Permissions
2746
+ * @param {*} [options] Override http request option.
2747
+ * @throws {RequiredError}
2748
+ */
2749
+ configListPermissions(options?: RawAxiosRequestConfig): AxiosPromise<ListPermissionsSuccessResponse> {
2750
+ return localVarFp.configListPermissions(options).then((request) => request(axios, basePath));
2751
+ },
2752
+ /**
2753
+ * List the available roles
2754
+ * @summary List Roles
2755
+ * @param {*} [options] Override http request option.
2756
+ * @throws {RequiredError}
2757
+ */
2758
+ configListRoles(options?: RawAxiosRequestConfig): AxiosPromise<ListRolesSuccessResponse> {
2759
+ return localVarFp.configListRoles(options).then((request) => request(axios, basePath));
2760
+ },
2761
+ /**
2762
+ * List the available feature based roles
2763
+ * @summary List Feature Based Roles
2764
+ * @param {*} [options] Override http request option.
2765
+ * @throws {RequiredError}
2766
+ */
2767
+ listFeatureBasedRoles(options?: RawAxiosRequestConfig): AxiosPromise<ListFeatureBasedRolesSuccessResponse> {
2768
+ return localVarFp.listFeatureBasedRoles(options).then((request) => request(axios, basePath));
2769
+ },
1756
2770
  /**
1757
2771
  * List the available permissions
1758
2772
  * @summary List Permissions
1759
2773
  * @param {*} [options] Override http request option.
1760
2774
  * @throws {RequiredError}
1761
2775
  */
1762
- listPermissions(options?: RawAxiosRequestConfig): AxiosPromise<GetPermissionsSuccessResponse> {
2776
+ listPermissions(options?: RawAxiosRequestConfig): AxiosPromise<ListPermissionsSuccessResponse> {
1763
2777
  return localVarFp.listPermissions(options).then((request) => request(axios, basePath));
1764
2778
  },
2779
+ /**
2780
+ * List the available roles
2781
+ * @summary List Roles
2782
+ * @param {*} [options] Override http request option.
2783
+ * @throws {RequiredError}
2784
+ */
2785
+ listRoles(options?: RawAxiosRequestConfig): AxiosPromise<ListRolesSuccessResponse> {
2786
+ return localVarFp.listRoles(options).then((request) => request(axios, basePath));
2787
+ },
1765
2788
  };
1766
2789
  };
1767
2790
 
1768
2791
  /**
1769
- * PermissionsApi - object-oriented interface
2792
+ * ConfigurationDataApi - object-oriented interface
1770
2793
  * @export
1771
- * @class PermissionsApi
2794
+ * @class ConfigurationDataApi
1772
2795
  * @extends {BaseAPI}
1773
2796
  */
1774
- export class PermissionsApi extends BaseAPI {
2797
+ export class ConfigurationDataApi extends BaseAPI {
2798
+ /**
2799
+ * List the available feature based roles
2800
+ * @summary List Feature Based Roles
2801
+ * @param {*} [options] Override http request option.
2802
+ * @throws {RequiredError}
2803
+ * @memberof ConfigurationDataApi
2804
+ */
2805
+ public configListFeatureBasedRoles(options?: RawAxiosRequestConfig) {
2806
+ return ConfigurationDataApiFp(this.configuration).configListFeatureBasedRoles(options).then((request) => request(this.axios, this.basePath));
2807
+ }
2808
+
2809
+ /**
2810
+ * List the available permissions
2811
+ * @summary List Permissions
2812
+ * @param {*} [options] Override http request option.
2813
+ * @throws {RequiredError}
2814
+ * @memberof ConfigurationDataApi
2815
+ */
2816
+ public configListPermissions(options?: RawAxiosRequestConfig) {
2817
+ return ConfigurationDataApiFp(this.configuration).configListPermissions(options).then((request) => request(this.axios, this.basePath));
2818
+ }
2819
+
2820
+ /**
2821
+ * List the available roles
2822
+ * @summary List Roles
2823
+ * @param {*} [options] Override http request option.
2824
+ * @throws {RequiredError}
2825
+ * @memberof ConfigurationDataApi
2826
+ */
2827
+ public configListRoles(options?: RawAxiosRequestConfig) {
2828
+ return ConfigurationDataApiFp(this.configuration).configListRoles(options).then((request) => request(this.axios, this.basePath));
2829
+ }
2830
+
2831
+ /**
2832
+ * List the available feature based roles
2833
+ * @summary List Feature Based Roles
2834
+ * @param {*} [options] Override http request option.
2835
+ * @throws {RequiredError}
2836
+ * @memberof ConfigurationDataApi
2837
+ */
2838
+ public listFeatureBasedRoles(options?: RawAxiosRequestConfig) {
2839
+ return ConfigurationDataApiFp(this.configuration).listFeatureBasedRoles(options).then((request) => request(this.axios, this.basePath));
2840
+ }
2841
+
1775
2842
  /**
1776
2843
  * List the available permissions
1777
2844
  * @summary List Permissions
1778
2845
  * @param {*} [options] Override http request option.
1779
2846
  * @throws {RequiredError}
1780
- * @memberof PermissionsApi
2847
+ * @memberof ConfigurationDataApi
1781
2848
  */
1782
2849
  public listPermissions(options?: RawAxiosRequestConfig) {
1783
- return PermissionsApiFp(this.configuration).listPermissions(options).then((request) => request(this.axios, this.basePath));
2850
+ return ConfigurationDataApiFp(this.configuration).listPermissions(options).then((request) => request(this.axios, this.basePath));
2851
+ }
2852
+
2853
+ /**
2854
+ * List the available roles
2855
+ * @summary List Roles
2856
+ * @param {*} [options] Override http request option.
2857
+ * @throws {RequiredError}
2858
+ * @memberof ConfigurationDataApi
2859
+ */
2860
+ public listRoles(options?: RawAxiosRequestConfig) {
2861
+ return ConfigurationDataApiFp(this.configuration).listRoles(options).then((request) => request(this.axios, this.basePath));
1784
2862
  }
1785
2863
  }
1786
2864
 
@@ -1853,7 +2931,7 @@ export const RoleAssignmentApiAxiosParamCreator = function (configuration?: Conf
1853
2931
  baseOptions = configuration.baseOptions;
1854
2932
  }
1855
2933
 
1856
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2934
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1857
2935
  const localVarHeaderParameter = {} as any;
1858
2936
  const localVarQueryParameter = {} as any;
1859
2937
 
@@ -2141,12 +3219,197 @@ export class RoleAssignmentApi extends BaseAPI {
2141
3219
 
2142
3220
 
2143
3221
 
3222
+ /**
3223
+ * UserManagementApi - axios parameter creator
3224
+ * @export
3225
+ */
3226
+ export const UserManagementApiAxiosParamCreator = function (configuration?: Configuration) {
3227
+ return {
3228
+ /**
3229
+ * List the users in a given org
3230
+ * @summary List Users in Org
3231
+ * @param {string} orgId
3232
+ * @param {*} [options] Override http request option.
3233
+ * @throws {RequiredError}
3234
+ */
3235
+ listUsersInOrg: async (orgId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3236
+ // verify required parameter 'orgId' is not null or undefined
3237
+ assertParamExists('listUsersInOrg', 'orgId', orgId)
3238
+ const localVarPath = `/orgs/{orgId}/users`
3239
+ .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
3240
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3241
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3242
+ let baseOptions;
3243
+ if (configuration) {
3244
+ baseOptions = configuration.baseOptions;
3245
+ }
3246
+
3247
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3248
+ const localVarHeaderParameter = {} as any;
3249
+ const localVarQueryParameter = {} as any;
3250
+
3251
+ // authentication ApiKeyAuth required
3252
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3253
+
3254
+
3255
+
3256
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3257
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3258
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3259
+
3260
+ return {
3261
+ url: toPathString(localVarUrlObj),
3262
+ options: localVarRequestOptions,
3263
+ };
3264
+ },
3265
+ }
3266
+ };
3267
+
3268
+ /**
3269
+ * UserManagementApi - functional programming interface
3270
+ * @export
3271
+ */
3272
+ export const UserManagementApiFp = function(configuration?: Configuration) {
3273
+ const localVarAxiosParamCreator = UserManagementApiAxiosParamCreator(configuration)
3274
+ return {
3275
+ /**
3276
+ * List the users in a given org
3277
+ * @summary List Users in Org
3278
+ * @param {string} orgId
3279
+ * @param {*} [options] Override http request option.
3280
+ * @throws {RequiredError}
3281
+ */
3282
+ async listUsersInOrg(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrincipalsInOrgResponse>> {
3283
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listUsersInOrg(orgId, options);
3284
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3285
+ const localVarOperationServerBasePath = operationServerMap['UserManagementApi.listUsersInOrg']?.[localVarOperationServerIndex]?.url;
3286
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3287
+ },
3288
+ }
3289
+ };
3290
+
3291
+ /**
3292
+ * UserManagementApi - factory interface
3293
+ * @export
3294
+ */
3295
+ export const UserManagementApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3296
+ const localVarFp = UserManagementApiFp(configuration)
3297
+ return {
3298
+ /**
3299
+ * List the users in a given org
3300
+ * @summary List Users in Org
3301
+ * @param {string} orgId
3302
+ * @param {*} [options] Override http request option.
3303
+ * @throws {RequiredError}
3304
+ */
3305
+ listUsersInOrg(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<PrincipalsInOrgResponse> {
3306
+ return localVarFp.listUsersInOrg(orgId, options).then((request) => request(axios, basePath));
3307
+ },
3308
+ };
3309
+ };
3310
+
3311
+ /**
3312
+ * UserManagementApi - object-oriented interface
3313
+ * @export
3314
+ * @class UserManagementApi
3315
+ * @extends {BaseAPI}
3316
+ */
3317
+ export class UserManagementApi extends BaseAPI {
3318
+ /**
3319
+ * List the users in a given org
3320
+ * @summary List Users in Org
3321
+ * @param {string} orgId
3322
+ * @param {*} [options] Override http request option.
3323
+ * @throws {RequiredError}
3324
+ * @memberof UserManagementApi
3325
+ */
3326
+ public listUsersInOrg(orgId: string, options?: RawAxiosRequestConfig) {
3327
+ return UserManagementApiFp(this.configuration).listUsersInOrg(orgId, options).then((request) => request(this.axios, this.basePath));
3328
+ }
3329
+ }
3330
+
3331
+
3332
+
2144
3333
  /**
2145
3334
  * UserPermissionsApi - axios parameter creator
2146
3335
  * @export
2147
3336
  */
2148
3337
  export const UserPermissionsApiAxiosParamCreator = function (configuration?: Configuration) {
2149
3338
  return {
3339
+ /**
3340
+ * List the available permissions for the current user
3341
+ * @summary List Org Permissions
3342
+ * @param {string} orgId
3343
+ * @param {*} [options] Override http request option.
3344
+ * @throws {RequiredError}
3345
+ */
3346
+ listOrgPermissions: async (orgId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3347
+ // verify required parameter 'orgId' is not null or undefined
3348
+ assertParamExists('listOrgPermissions', 'orgId', orgId)
3349
+ const localVarPath = `/orgs/{orgId}/permissions`
3350
+ .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
3351
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3352
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3353
+ let baseOptions;
3354
+ if (configuration) {
3355
+ baseOptions = configuration.baseOptions;
3356
+ }
3357
+
3358
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3359
+ const localVarHeaderParameter = {} as any;
3360
+ const localVarQueryParameter = {} as any;
3361
+
3362
+ // authentication ApiKeyAuth required
3363
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3364
+
3365
+
3366
+
3367
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3368
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3369
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3370
+
3371
+ return {
3372
+ url: toPathString(localVarUrlObj),
3373
+ options: localVarRequestOptions,
3374
+ };
3375
+ },
3376
+ /**
3377
+ * List the available roles for the current user
3378
+ * @summary List Org Roles
3379
+ * @param {string} orgId
3380
+ * @param {*} [options] Override http request option.
3381
+ * @throws {RequiredError}
3382
+ */
3383
+ listOrgRoles: async (orgId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3384
+ // verify required parameter 'orgId' is not null or undefined
3385
+ assertParamExists('listOrgRoles', 'orgId', orgId)
3386
+ const localVarPath = `/orgs/{orgId}/roles`
3387
+ .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
3388
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3389
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3390
+ let baseOptions;
3391
+ if (configuration) {
3392
+ baseOptions = configuration.baseOptions;
3393
+ }
3394
+
3395
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3396
+ const localVarHeaderParameter = {} as any;
3397
+ const localVarQueryParameter = {} as any;
3398
+
3399
+ // authentication ApiKeyAuth required
3400
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3401
+
3402
+
3403
+
3404
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3405
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3406
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3407
+
3408
+ return {
3409
+ url: toPathString(localVarUrlObj),
3410
+ options: localVarRequestOptions,
3411
+ };
3412
+ },
2150
3413
  /**
2151
3414
  * List the available permissions for the current user
2152
3415
  * @summary List Own Permissions
@@ -2235,6 +3498,32 @@ export const UserPermissionsApiAxiosParamCreator = function (configuration?: Con
2235
3498
  export const UserPermissionsApiFp = function(configuration?: Configuration) {
2236
3499
  const localVarAxiosParamCreator = UserPermissionsApiAxiosParamCreator(configuration)
2237
3500
  return {
3501
+ /**
3502
+ * List the available permissions for the current user
3503
+ * @summary List Org Permissions
3504
+ * @param {string} orgId
3505
+ * @param {*} [options] Override http request option.
3506
+ * @throws {RequiredError}
3507
+ */
3508
+ async listOrgPermissions(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: { [key: string]: GetUserPermissionsSuccessResponseResourcesValue; }; }>> {
3509
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listOrgPermissions(orgId, options);
3510
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3511
+ const localVarOperationServerBasePath = operationServerMap['UserPermissionsApi.listOrgPermissions']?.[localVarOperationServerIndex]?.url;
3512
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3513
+ },
3514
+ /**
3515
+ * List the available roles for the current user
3516
+ * @summary List Org Roles
3517
+ * @param {string} orgId
3518
+ * @param {*} [options] Override http request option.
3519
+ * @throws {RequiredError}
3520
+ */
3521
+ async listOrgRoles(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: { [key: string]: ListOrgRolesSuccessResponseValueValue; }; }>> {
3522
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listOrgRoles(orgId, options);
3523
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3524
+ const localVarOperationServerBasePath = operationServerMap['UserPermissionsApi.listOrgRoles']?.[localVarOperationServerIndex]?.url;
3525
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3526
+ },
2238
3527
  /**
2239
3528
  * List the available permissions for the current user
2240
3529
  * @summary List Own Permissions
@@ -2272,6 +3561,26 @@ export const UserPermissionsApiFp = function(configuration?: Configuration) {
2272
3561
  export const UserPermissionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2273
3562
  const localVarFp = UserPermissionsApiFp(configuration)
2274
3563
  return {
3564
+ /**
3565
+ * List the available permissions for the current user
3566
+ * @summary List Org Permissions
3567
+ * @param {string} orgId
3568
+ * @param {*} [options] Override http request option.
3569
+ * @throws {RequiredError}
3570
+ */
3571
+ listOrgPermissions(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: { [key: string]: GetUserPermissionsSuccessResponseResourcesValue; }; }> {
3572
+ return localVarFp.listOrgPermissions(orgId, options).then((request) => request(axios, basePath));
3573
+ },
3574
+ /**
3575
+ * List the available roles for the current user
3576
+ * @summary List Org Roles
3577
+ * @param {string} orgId
3578
+ * @param {*} [options] Override http request option.
3579
+ * @throws {RequiredError}
3580
+ */
3581
+ listOrgRoles(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: { [key: string]: ListOrgRolesSuccessResponseValueValue; }; }> {
3582
+ return localVarFp.listOrgRoles(orgId, options).then((request) => request(axios, basePath));
3583
+ },
2275
3584
  /**
2276
3585
  * List the available permissions for the current user
2277
3586
  * @summary List Own Permissions
@@ -2303,6 +3612,30 @@ export const UserPermissionsApiFactory = function (configuration?: Configuration
2303
3612
  * @extends {BaseAPI}
2304
3613
  */
2305
3614
  export class UserPermissionsApi extends BaseAPI {
3615
+ /**
3616
+ * List the available permissions for the current user
3617
+ * @summary List Org Permissions
3618
+ * @param {string} orgId
3619
+ * @param {*} [options] Override http request option.
3620
+ * @throws {RequiredError}
3621
+ * @memberof UserPermissionsApi
3622
+ */
3623
+ public listOrgPermissions(orgId: string, options?: RawAxiosRequestConfig) {
3624
+ return UserPermissionsApiFp(this.configuration).listOrgPermissions(orgId, options).then((request) => request(this.axios, this.basePath));
3625
+ }
3626
+
3627
+ /**
3628
+ * List the available roles for the current user
3629
+ * @summary List Org Roles
3630
+ * @param {string} orgId
3631
+ * @param {*} [options] Override http request option.
3632
+ * @throws {RequiredError}
3633
+ * @memberof UserPermissionsApi
3634
+ */
3635
+ public listOrgRoles(orgId: string, options?: RawAxiosRequestConfig) {
3636
+ return UserPermissionsApiFp(this.configuration).listOrgRoles(orgId, options).then((request) => request(this.axios, this.basePath));
3637
+ }
3638
+
2306
3639
  /**
2307
3640
  * List the available permissions for the current user
2308
3641
  * @summary List Own Permissions