@flipdish/authorization 0.2.38 → 0.2.40-rc.1781267640

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
@@ -23,128 +23,6 @@ import type { RequestArgs } from './base';
23
23
  // @ts-ignore
24
24
  import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
25
25
 
26
- /**
27
- * Details for assigning a role to a principal
28
- * @export
29
- * @interface AssignRoleRequestBody
30
- */
31
- export interface AssignRoleRequestBody {
32
- /**
33
- *
34
- * @type {string}
35
- * @memberof AssignRoleRequestBody
36
- */
37
- 'role': AssignRoleRequestBodyRoleEnum;
38
- /**
39
- *
40
- * @type {AuthorizationRequestResource}
41
- * @memberof AssignRoleRequestBody
42
- */
43
- 'resource': AuthorizationRequestResource;
44
- /**
45
- *
46
- * @type {AuthorizationRequestPrincipal}
47
- * @memberof AssignRoleRequestBody
48
- */
49
- 'principal': AuthorizationRequestPrincipal;
50
- /**
51
- *
52
- * @type {string}
53
- * @memberof AssignRoleRequestBody
54
- */
55
- 'brandId': string;
56
- }
57
-
58
- export const AssignRoleRequestBodyRoleEnum = {
59
- OrgViewer: 'OrgViewer',
60
- OrgManager: 'OrgManager',
61
- OrgAdmin: 'OrgAdmin',
62
- BrandViewer: 'BrandViewer',
63
- BrandManager: 'BrandManager',
64
- BrandAdmin: 'BrandAdmin',
65
- StoreViewer: 'StoreViewer',
66
- StoreEditor: 'StoreEditor',
67
- StoreManager: 'StoreManager',
68
- CustomerViewer: 'CustomerViewer',
69
- CustomerManager: 'CustomerManager',
70
- VoucherViewer: 'VoucherViewer',
71
- VoucherEditor: 'VoucherEditor',
72
- VoucherManager: 'VoucherManager',
73
- VoucherCampaignManager: 'VoucherCampaignManager',
74
- VoucherStatisticsViewer: 'VoucherStatisticsViewer',
75
- AnalyticsViewer: 'AnalyticsViewer',
76
- ReportsViewer: 'ReportsViewer',
77
- FinanceViewer: 'FinanceViewer',
78
- FinanceManager: 'FinanceManager',
79
- TeamViewer: 'TeamViewer',
80
- TeamManager: 'TeamManager',
81
- TeamAdmin: 'TeamAdmin',
82
- TechViewer: 'TechViewer',
83
- TechManager: 'TechManager',
84
- AppStoreViewer: 'AppStoreViewer',
85
- AppStoreManager: 'AppStoreManager',
86
- SalesChannelViewer: 'SalesChannelViewer',
87
- SalesChannelEditor: 'SalesChannelEditor',
88
- SalesChannelManager: 'SalesChannelManager',
89
- DeliveryViewer: 'DeliveryViewer',
90
- DeliveryManager: 'DeliveryManager',
91
- DriverManager: 'DriverManager',
92
- AuditViewer: 'AuditViewer',
93
- AuditManager: 'AuditManager',
94
- AccountsViewer: 'AccountsViewer',
95
- AccountsEditor: 'AccountsEditor',
96
- DocumentExplorerViewer: 'DocumentExplorerViewer',
97
- DocumentExplorerEditor: 'DocumentExplorerEditor',
98
- PayrollViewer: 'PayrollViewer',
99
- PayrollEditor: 'PayrollEditor',
100
- PropertyViewer: 'PropertyViewer',
101
- PropertyManager: 'PropertyManager',
102
- PropertyAdmin: 'PropertyAdmin',
103
- WebsiteContentEditor: 'WebsiteContentEditor',
104
- WebsiteContentViewer: 'WebsiteContentViewer',
105
- WebsiteTechViewer: 'WebsiteTechViewer',
106
- MenuViewer: 'MenuViewer',
107
- MenuEditor: 'MenuEditor',
108
- MenuManager: 'MenuManager',
109
- MenuMetaFieldManager: 'MenuMetaFieldManager',
110
- MenuMetaFieldEditor: 'MenuMetaFieldEditor',
111
- MenuMetaFieldViewer: 'MenuMetaFieldViewer',
112
- StoreDeliveryZoneManager: 'StoreDeliveryZoneManager',
113
- StoreDeliveryZoneEditor: 'StoreDeliveryZoneEditor',
114
- StoreDeliveryZoneViewer: 'StoreDeliveryZoneViewer',
115
- OrderFulfillmentManager: 'OrderFulfillmentManager',
116
- OrderManager: 'OrderManager',
117
- OrderEditor: 'OrderEditor',
118
- OrderViewer: 'OrderViewer',
119
- InventoryManager: 'InventoryManager',
120
- InventoryEditor: 'InventoryEditor',
121
- InventoryViewer: 'InventoryViewer',
122
- PaymentManager: 'PaymentManager',
123
- OnboardingManager: 'OnboardingManager',
124
- FeatureFlagManager: 'FeatureFlagManager',
125
- PropertyOwnerMisc: 'PropertyOwnerMisc',
126
- ManagedOwnerMisc: 'ManagedOwnerMisc',
127
- IntegratorMisc: 'IntegratorMisc',
128
- PropertyManagerMisc: 'PropertyManagerMisc',
129
- FinanceManagerMisc: 'FinanceManagerMisc',
130
- SupportMisc: 'SupportMisc'
131
- } as const;
132
-
133
- export type AssignRoleRequestBodyRoleEnum = typeof AssignRoleRequestBodyRoleEnum[keyof typeof AssignRoleRequestBodyRoleEnum];
134
-
135
- /**
136
- * Successful role assignment response
137
- * @export
138
- * @interface AssignRoleSuccessResponse
139
- */
140
- export interface AssignRoleSuccessResponse {
141
- /**
142
- * Confirmation message
143
- * @type {string}
144
- * @memberof AssignRoleSuccessResponse
145
- */
146
- 'message': string;
147
- }
148
26
  /**
149
27
  * Request to check if a user is authorized to perform an action(s). If you pass in an array of permissions, you will receive a single allow / deny response (based on an AND of the result for each permission). For a granular response to multiple permissions, call the /authorize/batch endpoint.
150
28
  * @export
@@ -609,25 +487,6 @@ export interface ErrorResponse {
609
487
  */
610
488
  'message': string;
611
489
  }
612
- /**
613
- * Feature based role and its permissions
614
- * @export
615
- * @interface FeatureBasedRole
616
- */
617
- export interface FeatureBasedRole {
618
- /**
619
- * Name of the role
620
- * @type {string}
621
- * @memberof FeatureBasedRole
622
- */
623
- 'name': string;
624
- /**
625
- *
626
- * @type {Permissions & Array<Permissions>}
627
- * @memberof FeatureBasedRole
628
- */
629
- 'permissions': Permissions & Array<Permissions>;
630
- }
631
490
  /**
632
491
  * 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.
633
492
  * @export
@@ -811,149 +670,6 @@ export interface GetAuthorizedPropertiesResponse {
811
670
  */
812
671
  'deniedResources': Array<AuthorizationBatchResponseAllowedResourcesInner>;
813
672
  }
814
- /**
815
- * Details for getting roles for a principal
816
- * @export
817
- * @interface GetPrincipalRolesRequestBody
818
- */
819
- export interface GetPrincipalRolesRequestBody {
820
- /**
821
- *
822
- * @type {AuthorizationRequestPrincipal}
823
- * @memberof GetPrincipalRolesRequestBody
824
- */
825
- 'principal': AuthorizationRequestPrincipal;
826
- /**
827
- *
828
- * @type {AuthorizationRequestResource}
829
- * @memberof GetPrincipalRolesRequestBody
830
- */
831
- 'resource'?: AuthorizationRequestResource;
832
- }
833
- /**
834
- * Successful roles retrieval response
835
- * @export
836
- * @interface GetPrincipalRolesSuccessResponse
837
- */
838
- export interface GetPrincipalRolesSuccessResponse {
839
- /**
840
- * List of roles assigned to the principal
841
- * @type {Array<GetPrincipalRolesSuccessResponseRolesInner>}
842
- * @memberof GetPrincipalRolesSuccessResponse
843
- */
844
- 'roles': Array<GetPrincipalRolesSuccessResponseRolesInner>;
845
- }
846
- /**
847
- *
848
- * @export
849
- * @interface GetPrincipalRolesSuccessResponseRolesInner
850
- */
851
- export interface GetPrincipalRolesSuccessResponseRolesInner {
852
- /**
853
- * Policy ID
854
- * @type {string}
855
- * @memberof GetPrincipalRolesSuccessResponseRolesInner
856
- */
857
- 'policyId': string;
858
- /**
859
- *
860
- * @type {GetPrincipalRolesSuccessResponseRolesInnerRoleName}
861
- * @memberof GetPrincipalRolesSuccessResponseRolesInner
862
- */
863
- 'roleName': GetPrincipalRolesSuccessResponseRolesInnerRoleName;
864
- /**
865
- * Policy type
866
- * @type {string}
867
- * @memberof GetPrincipalRolesSuccessResponseRolesInner
868
- */
869
- 'policyType': GetPrincipalRolesSuccessResponseRolesInnerPolicyTypeEnum;
870
- /**
871
- * Date and time the role was assigned
872
- * @type {string}
873
- * @memberof GetPrincipalRolesSuccessResponseRolesInner
874
- */
875
- 'assignedAt': string;
876
- /**
877
- * User who assigned the role
878
- * @type {string}
879
- * @memberof GetPrincipalRolesSuccessResponseRolesInner
880
- */
881
- 'assignedBy': string;
882
- /**
883
- * Type of resource the role is assigned to
884
- * @type {string}
885
- * @memberof GetPrincipalRolesSuccessResponseRolesInner
886
- */
887
- 'resourceType'?: GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum;
888
- /**
889
- * Organization ID
890
- * @type {string}
891
- * @memberof GetPrincipalRolesSuccessResponseRolesInner
892
- */
893
- 'orgId'?: string;
894
- /**
895
- * Property ID
896
- * @type {string}
897
- * @memberof GetPrincipalRolesSuccessResponseRolesInner
898
- */
899
- 'propertyId'?: string;
900
- /**
901
- * Brand ID this role is scoped to
902
- * @type {string}
903
- * @memberof GetPrincipalRolesSuccessResponseRolesInner
904
- */
905
- 'brandId'?: string;
906
- /**
907
- * Sales channel ID this role is scoped to
908
- * @type {string}
909
- * @memberof GetPrincipalRolesSuccessResponseRolesInner
910
- */
911
- 'salesChannelId'?: string;
912
- /**
913
- * Principal ID this role is assigned to
914
- * @type {string}
915
- * @memberof GetPrincipalRolesSuccessResponseRolesInner
916
- */
917
- 'principalId': string;
918
- /**
919
- * Type of principal this role is assigned to
920
- * @type {string}
921
- * @memberof GetPrincipalRolesSuccessResponseRolesInner
922
- */
923
- 'principalType': GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum;
924
- }
925
-
926
- export const GetPrincipalRolesSuccessResponseRolesInnerPolicyTypeEnum = {
927
- Main: 'Main',
928
- BrandOverride: 'BrandOverride',
929
- OrgOverride: 'OrgOverride',
930
- Forbidden: 'Forbidden',
931
- NamedRole: 'NamedRole'
932
- } as const;
933
-
934
- export type GetPrincipalRolesSuccessResponseRolesInnerPolicyTypeEnum = typeof GetPrincipalRolesSuccessResponseRolesInnerPolicyTypeEnum[keyof typeof GetPrincipalRolesSuccessResponseRolesInnerPolicyTypeEnum];
935
- export const GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum = {
936
- Property: 'Property',
937
- Org: 'Org',
938
- Brand: 'Brand',
939
- SalesChannel: 'SalesChannel'
940
- } as const;
941
-
942
- export type GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum = typeof GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum[keyof typeof GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum];
943
- export const GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum = {
944
- User: 'User',
945
- Automation: 'Automation'
946
- } as const;
947
-
948
- export type GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum = typeof GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum[keyof typeof GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum];
949
-
950
- /**
951
- * Role name
952
- * @export
953
- * @interface GetPrincipalRolesSuccessResponseRolesInnerRoleName
954
- */
955
- export interface GetPrincipalRolesSuccessResponseRolesInnerRoleName {
956
- }
957
673
  /**
958
674
  * Successful user permissions retrieval response
959
675
  * @export
@@ -1009,67 +725,6 @@ export type GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = ty
1009
725
  */
1010
726
  export interface GetUserPermissionsSuccessResponseResourcesValueResourceId {
1011
727
  }
1012
- /**
1013
- * Grant teammate app access to a user being assigned within a brand for the first time.
1014
- * @export
1015
- * @interface GrantTeammateAccessRequestBody
1016
- */
1017
- export interface GrantTeammateAccessRequestBody {
1018
- /**
1019
- * Teammate app access level (role)
1020
- * @type {string}
1021
- * @memberof GrantTeammateAccessRequestBody
1022
- */
1023
- 'appAccessLevel': GrantTeammateAccessRequestBodyAppAccessLevelEnum;
1024
- /**
1025
- * Brand identifier (AppId); normalized to lowercase when stored
1026
- * @type {string}
1027
- * @memberof GrantTeammateAccessRequestBody
1028
- */
1029
- 'brandId': string;
1030
- /**
1031
- * Org-wide store access; when false, propertyIds are required for property-scoped roles
1032
- * @type {boolean}
1033
- * @memberof GrantTeammateAccessRequestBody
1034
- */
1035
- 'hasAccessToAllStores': boolean;
1036
- /**
1037
- * Property resource ids (e.g. p123) when scoped to properties
1038
- * @type {Array<string>}
1039
- * @memberof GrantTeammateAccessRequestBody
1040
- */
1041
- 'propertyIds'?: Array<string>;
1042
- /**
1043
- * Optional v2 permission set keys to apply to this teammate role
1044
- * @type {Array<string>}
1045
- * @memberof GrantTeammateAccessRequestBody
1046
- */
1047
- 'optionalPermissionSetKeys'?: Array<string>;
1048
- /**
1049
- * Target user email; persisted on first assignment only
1050
- * @type {string}
1051
- * @memberof GrantTeammateAccessRequestBody
1052
- */
1053
- 'userEmail': string;
1054
- /**
1055
- * Target user display name; persisted on first assignment only
1056
- * @type {string}
1057
- * @memberof GrantTeammateAccessRequestBody
1058
- */
1059
- 'userName'?: string;
1060
- }
1061
-
1062
- export const GrantTeammateAccessRequestBodyAppAccessLevelEnum = {
1063
- Owner: 'Owner',
1064
- ManagedOwner: 'ManagedOwner',
1065
- PropertyOwner: 'PropertyOwner',
1066
- PropertyManager: 'PropertyManager',
1067
- FinanceManager: 'FinanceManager',
1068
- Integrator: 'Integrator'
1069
- } as const;
1070
-
1071
- export type GrantTeammateAccessRequestBodyAppAccessLevelEnum = typeof GrantTeammateAccessRequestBodyAppAccessLevelEnum[keyof typeof GrantTeammateAccessRequestBodyAppAccessLevelEnum];
1072
-
1073
728
  /**
1074
729
  *
1075
730
  * @export
@@ -1116,19 +771,6 @@ export interface IsInRoleResponse {
1116
771
  */
1117
772
  'authorized': boolean;
1118
773
  }
1119
- /**
1120
- * Successful feature based roles retrieval response
1121
- * @export
1122
- * @interface ListFeatureBasedRolesSuccessResponse
1123
- */
1124
- export interface ListFeatureBasedRolesSuccessResponse {
1125
- /**
1126
- *
1127
- * @type {Array<FeatureBasedRole>}
1128
- * @memberof ListFeatureBasedRolesSuccessResponse
1129
- */
1130
- 'roles': Array<FeatureBasedRole>;
1131
- }
1132
774
  /**
1133
775
  *
1134
776
  * @export
@@ -1137,10 +779,10 @@ export interface ListFeatureBasedRolesSuccessResponse {
1137
779
  export interface ListOrgRolesSuccessResponseValue {
1138
780
  /**
1139
781
  *
1140
- * @type {ListOrgRolesSuccessResponseValueAnyOfOrgId}
782
+ * @type {ListOrgRolesSuccessResponseValueOrgId}
1141
783
  * @memberof ListOrgRolesSuccessResponseValue
1142
784
  */
1143
- 'orgId': ListOrgRolesSuccessResponseValueAnyOfOrgId;
785
+ 'orgId': ListOrgRolesSuccessResponseValueOrgId;
1144
786
  /**
1145
787
  * List of roles that are assigned to the user in the org
1146
788
  * @type {Array<string>}
@@ -1155,22 +797,22 @@ export interface ListOrgRolesSuccessResponseValue {
1155
797
  'optionalPermissionSetKeys'?: Array<string>;
1156
798
  /**
1157
799
  * Property IDs, or * for all properties, the roles are scoped to
1158
- * @type {Array<ListOrgRolesSuccessResponseValueAnyOfPropertiesInner>}
800
+ * @type {Array<ListOrgRolesSuccessResponseValuePropertiesInner>}
1159
801
  * @memberof ListOrgRolesSuccessResponseValue
1160
802
  */
1161
- 'properties'?: Array<ListOrgRolesSuccessResponseValueAnyOfPropertiesInner>;
803
+ 'properties'?: Array<ListOrgRolesSuccessResponseValuePropertiesInner>;
1162
804
  /**
1163
805
  * Brand IDs, or * for all brands, the roles are scoped to
1164
- * @type {Array<ListOrgRolesSuccessResponseValueAnyOfBrandsInner>}
806
+ * @type {Array<ListOrgRolesSuccessResponseValueBrandsInner>}
1165
807
  * @memberof ListOrgRolesSuccessResponseValue
1166
808
  */
1167
- 'brands'?: Array<ListOrgRolesSuccessResponseValueAnyOfBrandsInner>;
809
+ 'brands'?: Array<ListOrgRolesSuccessResponseValueBrandsInner>;
1168
810
  /**
1169
811
  * Sales channel IDs, or * for all sales channels, the roles are scoped to
1170
- * @type {Array<ListOrgRolesSuccessResponseValueAnyOfSalesChannelsInner>}
812
+ * @type {Array<ListOrgRolesSuccessResponseValueSalesChannelsInner>}
1171
813
  * @memberof ListOrgRolesSuccessResponseValue
1172
814
  */
1173
- 'salesChannels'?: Array<ListOrgRolesSuccessResponseValueAnyOfSalesChannelsInner>;
815
+ 'salesChannels'?: Array<ListOrgRolesSuccessResponseValueSalesChannelsInner>;
1174
816
  }
1175
817
 
1176
818
  export const ListOrgRolesSuccessResponseValueRolesEnum = {
@@ -1187,127 +829,30 @@ export type ListOrgRolesSuccessResponseValueRolesEnum = typeof ListOrgRolesSucce
1187
829
  /**
1188
830
  *
1189
831
  * @export
1190
- * @interface ListOrgRolesSuccessResponseValueAnyOf
1191
- */
1192
- export interface ListOrgRolesSuccessResponseValueAnyOf {
1193
- /**
1194
- *
1195
- * @type {ListOrgRolesSuccessResponseValueAnyOfOrgId}
1196
- * @memberof ListOrgRolesSuccessResponseValueAnyOf
1197
- */
1198
- 'orgId': ListOrgRolesSuccessResponseValueAnyOfOrgId;
1199
- /**
1200
- * List of roles that are assigned to the user in the org
1201
- * @type {Array<string>}
1202
- * @memberof ListOrgRolesSuccessResponseValueAnyOf
1203
- */
1204
- 'roles': Array<ListOrgRolesSuccessResponseValueAnyOfRolesEnum>;
1205
- /**
1206
- * Optional permission set keys applied to the roles
1207
- * @type {Array<string>}
1208
- * @memberof ListOrgRolesSuccessResponseValueAnyOf
1209
- */
1210
- 'optionalPermissionSetKeys'?: Array<string>;
1211
- /**
1212
- * Property IDs, or * for all properties, the roles are scoped to
1213
- * @type {Array<ListOrgRolesSuccessResponseValueAnyOfPropertiesInner>}
1214
- * @memberof ListOrgRolesSuccessResponseValueAnyOf
1215
- */
1216
- 'properties'?: Array<ListOrgRolesSuccessResponseValueAnyOfPropertiesInner>;
1217
- /**
1218
- * Brand IDs, or * for all brands, the roles are scoped to
1219
- * @type {Array<ListOrgRolesSuccessResponseValueAnyOfBrandsInner>}
1220
- * @memberof ListOrgRolesSuccessResponseValueAnyOf
1221
- */
1222
- 'brands'?: Array<ListOrgRolesSuccessResponseValueAnyOfBrandsInner>;
1223
- /**
1224
- * Sales channel IDs, or * for all sales channels, the roles are scoped to
1225
- * @type {Array<ListOrgRolesSuccessResponseValueAnyOfSalesChannelsInner>}
1226
- * @memberof ListOrgRolesSuccessResponseValueAnyOf
1227
- */
1228
- 'salesChannels'?: Array<ListOrgRolesSuccessResponseValueAnyOfSalesChannelsInner>;
1229
- }
1230
-
1231
- export const ListOrgRolesSuccessResponseValueAnyOfRolesEnum = {
1232
- Owner: 'Owner',
1233
- PropertyOwner: 'PropertyOwner',
1234
- ManagedOwner: 'ManagedOwner',
1235
- Integrator: 'Integrator',
1236
- PropertyManager: 'PropertyManager',
1237
- FinanceManager: 'FinanceManager'
1238
- } as const;
1239
-
1240
- export type ListOrgRolesSuccessResponseValueAnyOfRolesEnum = typeof ListOrgRolesSuccessResponseValueAnyOfRolesEnum[keyof typeof ListOrgRolesSuccessResponseValueAnyOfRolesEnum];
1241
-
1242
- /**
1243
- *
1244
- * @export
1245
- * @interface ListOrgRolesSuccessResponseValueAnyOfBrandsInner
832
+ * @interface ListOrgRolesSuccessResponseValueBrandsInner
1246
833
  */
1247
- export interface ListOrgRolesSuccessResponseValueAnyOfBrandsInner {
834
+ export interface ListOrgRolesSuccessResponseValueBrandsInner {
1248
835
  }
1249
836
  /**
1250
837
  * ID of the org the roles are assigned in
1251
838
  * @export
1252
- * @interface ListOrgRolesSuccessResponseValueAnyOfOrgId
1253
- */
1254
- export interface ListOrgRolesSuccessResponseValueAnyOfOrgId {
1255
- }
1256
- /**
1257
- *
1258
- * @export
1259
- * @interface ListOrgRolesSuccessResponseValueAnyOfPropertiesInner
1260
- */
1261
- export interface ListOrgRolesSuccessResponseValueAnyOfPropertiesInner {
1262
- }
1263
- /**
1264
- *
1265
- * @export
1266
- * @interface ListOrgRolesSuccessResponseValueAnyOfSalesChannelsInner
839
+ * @interface ListOrgRolesSuccessResponseValueOrgId
1267
840
  */
1268
- export interface ListOrgRolesSuccessResponseValueAnyOfSalesChannelsInner {
841
+ export interface ListOrgRolesSuccessResponseValueOrgId {
1269
842
  }
1270
843
  /**
1271
844
  *
1272
845
  * @export
1273
- * @interface ListOrgRolesSuccessResponseValueAnyOfValue
846
+ * @interface ListOrgRolesSuccessResponseValuePropertiesInner
1274
847
  */
1275
- export interface ListOrgRolesSuccessResponseValueAnyOfValue {
1276
- /**
1277
- * Type of resource the permissions are assigned to
1278
- * @type {string}
1279
- * @memberof ListOrgRolesSuccessResponseValueAnyOfValue
1280
- */
1281
- 'resourceType': ListOrgRolesSuccessResponseValueAnyOfValueResourceTypeEnum;
1282
- /**
1283
- *
1284
- * @type {GetUserPermissionsSuccessResponseResourcesValueResourceId}
1285
- * @memberof ListOrgRolesSuccessResponseValueAnyOfValue
1286
- */
1287
- 'resourceId': GetUserPermissionsSuccessResponseResourcesValueResourceId;
1288
- /**
1289
- * List of roles that are assigned to the user for the resource
1290
- * @type {Array<ListOrgRolesSuccessResponseValueAnyOfValueRolesInner>}
1291
- * @memberof ListOrgRolesSuccessResponseValueAnyOfValue
1292
- */
1293
- 'roles': Array<ListOrgRolesSuccessResponseValueAnyOfValueRolesInner>;
848
+ export interface ListOrgRolesSuccessResponseValuePropertiesInner {
1294
849
  }
1295
-
1296
- export const ListOrgRolesSuccessResponseValueAnyOfValueResourceTypeEnum = {
1297
- Property: 'Property',
1298
- Org: 'Org',
1299
- Brand: 'Brand',
1300
- SalesChannel: 'SalesChannel'
1301
- } as const;
1302
-
1303
- export type ListOrgRolesSuccessResponseValueAnyOfValueResourceTypeEnum = typeof ListOrgRolesSuccessResponseValueAnyOfValueResourceTypeEnum[keyof typeof ListOrgRolesSuccessResponseValueAnyOfValueResourceTypeEnum];
1304
-
1305
850
  /**
1306
851
  *
1307
852
  * @export
1308
- * @interface ListOrgRolesSuccessResponseValueAnyOfValueRolesInner
853
+ * @interface ListOrgRolesSuccessResponseValueSalesChannelsInner
1309
854
  */
1310
- export interface ListOrgRolesSuccessResponseValueAnyOfValueRolesInner {
855
+ export interface ListOrgRolesSuccessResponseValueSalesChannelsInner {
1311
856
  }
1312
857
  /**
1313
858
  * Successful permissions retrieval response
@@ -1578,478 +1123,424 @@ export type Permissions = typeof Permissions[keyof typeof Permissions];
1578
1123
 
1579
1124
 
1580
1125
  /**
1581
- * Principal with teammate permission summary
1126
+ * Principals in org
1582
1127
  * @export
1583
- * @interface PrincipalInOrgWithTeammatePermissionSummary
1128
+ * @interface PrincipalsInOrgResponse
1584
1129
  */
1585
- export interface PrincipalInOrgWithTeammatePermissionSummary {
1130
+ export interface PrincipalsInOrgResponse {
1586
1131
  /**
1587
1132
  *
1588
1133
  * @type {string}
1589
- * @memberof PrincipalInOrgWithTeammatePermissionSummary
1134
+ * @memberof PrincipalsInOrgResponse
1590
1135
  */
1591
- 'type': PrincipalInOrgWithTeammatePermissionSummaryTypeEnum;
1136
+ 'orgId': string;
1592
1137
  /**
1593
- *
1594
- * @type {string}
1595
- * @memberof PrincipalInOrgWithTeammatePermissionSummary
1138
+ * List of principals in org
1139
+ * @type {Array<AuthorizationRequestPrincipal>}
1140
+ * @memberof PrincipalsInOrgResponse
1596
1141
  */
1597
- 'id': string;
1142
+ 'principals': Array<AuthorizationRequestPrincipal>;
1143
+ }
1144
+ /**
1145
+ * Role assignment key to rematerialize
1146
+ * @export
1147
+ * @interface RematerializeRoleAssignmentRequestBody
1148
+ */
1149
+ export interface RematerializeRoleAssignmentRequestBody {
1598
1150
  /**
1599
1151
  *
1600
1152
  * @type {string}
1601
- * @memberof PrincipalInOrgWithTeammatePermissionSummary
1153
+ * @memberof RematerializeRoleAssignmentRequestBody
1602
1154
  */
1603
- 'name'?: string;
1155
+ 'pk': string;
1604
1156
  /**
1605
1157
  *
1606
1158
  * @type {string}
1607
- * @memberof PrincipalInOrgWithTeammatePermissionSummary
1608
- */
1609
- 'email'?: string;
1610
- /**
1611
- *
1612
- * @type {string}
1613
- * @memberof PrincipalInOrgWithTeammatePermissionSummary
1614
- */
1615
- 'phone'?: string;
1616
- /**
1617
- * Teammate role label; null when no compensating role or unknown
1618
- * @type {string}
1619
- * @memberof PrincipalInOrgWithTeammatePermissionSummary
1620
- */
1621
- 'roleDisplay': string;
1622
- /**
1623
- * True when granular roles differ from default for the compensating role
1624
- * @type {boolean}
1625
- * @memberof PrincipalInOrgWithTeammatePermissionSummary
1626
- */
1627
- 'isCustomised': boolean;
1628
- }
1629
-
1630
- export const PrincipalInOrgWithTeammatePermissionSummaryTypeEnum = {
1631
- User: 'User',
1632
- Automation: 'Automation'
1633
- } as const;
1634
-
1635
- export type PrincipalInOrgWithTeammatePermissionSummaryTypeEnum = typeof PrincipalInOrgWithTeammatePermissionSummaryTypeEnum[keyof typeof PrincipalInOrgWithTeammatePermissionSummaryTypeEnum];
1636
-
1637
- /**
1638
- * Principals in org
1639
- * @export
1640
- * @interface PrincipalsInOrgResponse
1641
- */
1642
- export interface PrincipalsInOrgResponse {
1643
- /**
1644
- *
1645
- * @type {string}
1646
- * @memberof PrincipalsInOrgResponse
1647
- */
1648
- 'orgId': string;
1649
- /**
1650
- * List of principals in org
1651
- * @type {Array<AuthorizationRequestPrincipal>}
1652
- * @memberof PrincipalsInOrgResponse
1653
- */
1654
- 'principals': Array<AuthorizationRequestPrincipal>;
1655
- }
1656
- /**
1657
- * Principals in org including teammate permission summary per principal
1658
- * @export
1659
- * @interface PrincipalsInOrgWithTeammatePermissionSummaryResponse
1660
- */
1661
- export interface PrincipalsInOrgWithTeammatePermissionSummaryResponse {
1662
- /**
1663
- *
1664
- * @type {string}
1665
- * @memberof PrincipalsInOrgWithTeammatePermissionSummaryResponse
1666
- */
1667
- 'orgId': string;
1668
- /**
1669
- * List of principals with roleDisplay and isCustomised
1670
- * @type {Array<PrincipalInOrgWithTeammatePermissionSummary>}
1671
- * @memberof PrincipalsInOrgWithTeammatePermissionSummaryResponse
1672
- */
1673
- 'principals': Array<PrincipalInOrgWithTeammatePermissionSummary>;
1674
- }
1675
- /**
1676
- * V2 role assignment key to rematerialize
1677
- * @export
1678
- * @interface RematerializeRoleAssignmentV2RequestBody
1679
- */
1680
- export interface RematerializeRoleAssignmentV2RequestBody {
1681
- /**
1682
- *
1683
- * @type {string}
1684
- * @memberof RematerializeRoleAssignmentV2RequestBody
1685
- */
1686
- 'pk': string;
1687
- /**
1688
- *
1689
- * @type {string}
1690
- * @memberof RematerializeRoleAssignmentV2RequestBody
1159
+ * @memberof RematerializeRoleAssignmentRequestBody
1691
1160
  */
1692
1161
  'sk': string;
1693
1162
  }
1694
1163
  /**
1695
- * Successful V2 role assignment rematerialization response
1164
+ * Successful role assignment rematerialization response
1696
1165
  * @export
1697
- * @interface RematerializeRoleAssignmentV2SuccessResponse
1166
+ * @interface RematerializeRoleAssignmentSuccessResponse
1698
1167
  */
1699
- export interface RematerializeRoleAssignmentV2SuccessResponse {
1168
+ export interface RematerializeRoleAssignmentSuccessResponse {
1700
1169
  /**
1701
1170
  *
1702
- * @type {RematerializeRoleAssignmentV2SuccessResponseRoleAssignment}
1703
- * @memberof RematerializeRoleAssignmentV2SuccessResponse
1171
+ * @type {RematerializeRoleAssignmentSuccessResponseRoleAssignment}
1172
+ * @memberof RematerializeRoleAssignmentSuccessResponse
1704
1173
  */
1705
- 'roleAssignment': RematerializeRoleAssignmentV2SuccessResponseRoleAssignment;
1174
+ 'roleAssignment': RematerializeRoleAssignmentSuccessResponseRoleAssignment;
1706
1175
  /**
1707
1176
  *
1708
1177
  * @type {number}
1709
- * @memberof RematerializeRoleAssignmentV2SuccessResponse
1178
+ * @memberof RematerializeRoleAssignmentSuccessResponse
1710
1179
  */
1711
1180
  'materialized': number;
1712
1181
  /**
1713
1182
  *
1714
1183
  * @type {number}
1715
- * @memberof RematerializeRoleAssignmentV2SuccessResponse
1184
+ * @memberof RematerializeRoleAssignmentSuccessResponse
1716
1185
  */
1717
1186
  'applied': number;
1718
1187
  /**
1719
1188
  *
1720
- * @type {Array<RematerializeRoleAssignmentV2SuccessResponsePolicyAssignmentsInner>}
1721
- * @memberof RematerializeRoleAssignmentV2SuccessResponse
1189
+ * @type {Array<RematerializeRoleAssignmentSuccessResponsePolicyAssignmentsInner>}
1190
+ * @memberof RematerializeRoleAssignmentSuccessResponse
1722
1191
  */
1723
- 'policyAssignments': Array<RematerializeRoleAssignmentV2SuccessResponsePolicyAssignmentsInner>;
1192
+ 'policyAssignments': Array<RematerializeRoleAssignmentSuccessResponsePolicyAssignmentsInner>;
1724
1193
  }
1725
1194
  /**
1726
1195
  *
1727
1196
  * @export
1728
- * @interface RematerializeRoleAssignmentV2SuccessResponsePolicyAssignmentsInner
1197
+ * @interface RematerializeRoleAssignmentSuccessResponsePolicyAssignmentsInner
1729
1198
  */
1730
- export interface RematerializeRoleAssignmentV2SuccessResponsePolicyAssignmentsInner {
1199
+ export interface RematerializeRoleAssignmentSuccessResponsePolicyAssignmentsInner {
1731
1200
  /**
1732
1201
  *
1733
1202
  * @type {string}
1734
- * @memberof RematerializeRoleAssignmentV2SuccessResponsePolicyAssignmentsInner
1203
+ * @memberof RematerializeRoleAssignmentSuccessResponsePolicyAssignmentsInner
1735
1204
  */
1736
1205
  'policyId': string;
1737
1206
  /**
1738
1207
  *
1739
1208
  * @type {string}
1740
- * @memberof RematerializeRoleAssignmentV2SuccessResponsePolicyAssignmentsInner
1209
+ * @memberof RematerializeRoleAssignmentSuccessResponsePolicyAssignmentsInner
1741
1210
  */
1742
1211
  'assignmentPk': string;
1743
1212
  /**
1744
1213
  *
1745
1214
  * @type {string}
1746
- * @memberof RematerializeRoleAssignmentV2SuccessResponsePolicyAssignmentsInner
1215
+ * @memberof RematerializeRoleAssignmentSuccessResponsePolicyAssignmentsInner
1747
1216
  */
1748
1217
  'assignmentSk': string;
1749
1218
  }
1750
1219
  /**
1751
1220
  *
1752
1221
  * @export
1753
- * @interface RematerializeRoleAssignmentV2SuccessResponseRoleAssignment
1222
+ * @interface RematerializeRoleAssignmentSuccessResponseRoleAssignment
1754
1223
  */
1755
- export interface RematerializeRoleAssignmentV2SuccessResponseRoleAssignment {
1224
+ export interface RematerializeRoleAssignmentSuccessResponseRoleAssignment {
1756
1225
  /**
1757
1226
  *
1758
1227
  * @type {string}
1759
- * @memberof RematerializeRoleAssignmentV2SuccessResponseRoleAssignment
1228
+ * @memberof RematerializeRoleAssignmentSuccessResponseRoleAssignment
1760
1229
  */
1761
1230
  'pk': string;
1762
1231
  /**
1763
1232
  *
1764
1233
  * @type {string}
1765
- * @memberof RematerializeRoleAssignmentV2SuccessResponseRoleAssignment
1234
+ * @memberof RematerializeRoleAssignmentSuccessResponseRoleAssignment
1766
1235
  */
1767
1236
  'sk': string;
1768
1237
  /**
1769
1238
  *
1770
1239
  * @type {string}
1771
- * @memberof RematerializeRoleAssignmentV2SuccessResponseRoleAssignment
1240
+ * @memberof RematerializeRoleAssignmentSuccessResponseRoleAssignment
1772
1241
  */
1773
1242
  'assignmentId': string;
1774
1243
  }
1775
1244
  /**
1776
- * Details for revoking a forbidden role from a principal
1245
+ *
1777
1246
  * @export
1778
- * @interface RevokeForbiddenRoleRequestBody
1247
+ * @interface RemoveTeammateRequestBody
1779
1248
  */
1780
- export interface RevokeForbiddenRoleRequestBody {
1249
+ export interface RemoveTeammateRequestBody {
1781
1250
  /**
1782
1251
  *
1783
- * @type {AuthorizationRequestPrincipal}
1784
- * @memberof RevokeForbiddenRoleRequestBody
1252
+ * @type {RemoveTeammateRequestBodyPrincipal}
1253
+ * @memberof RemoveTeammateRequestBody
1785
1254
  */
1786
- 'principal': AuthorizationRequestPrincipal;
1255
+ 'principal': RemoveTeammateRequestBodyPrincipal;
1256
+ /**
1257
+ *
1258
+ * @type {RemoveTeammateRequestBodyActor}
1259
+ * @memberof RemoveTeammateRequestBody
1260
+ */
1261
+ 'actor'?: RemoveTeammateRequestBodyActor;
1262
+ }
1263
+ /**
1264
+ * Actor performing the removal
1265
+ * @export
1266
+ * @interface RemoveTeammateRequestBodyActor
1267
+ */
1268
+ export interface RemoveTeammateRequestBodyActor {
1269
+ /**
1270
+ *
1271
+ * @type {string}
1272
+ * @memberof RemoveTeammateRequestBodyActor
1273
+ */
1274
+ 'type': RemoveTeammateRequestBodyActorTypeEnum;
1275
+ /**
1276
+ *
1277
+ * @type {string}
1278
+ * @memberof RemoveTeammateRequestBodyActor
1279
+ */
1280
+ 'id': string;
1281
+ /**
1282
+ *
1283
+ * @type {string}
1284
+ * @memberof RemoveTeammateRequestBodyActor
1285
+ */
1286
+ 'name'?: string;
1787
1287
  /**
1788
- * Compensation role to revoke the forbidden role from
1288
+ *
1789
1289
  * @type {string}
1790
- * @memberof RevokeForbiddenRoleRequestBody
1290
+ * @memberof RemoveTeammateRequestBodyActor
1791
1291
  */
1792
- 'compensatingRole': RevokeForbiddenRoleRequestBodyCompensatingRoleEnum;
1292
+ 'email'?: string;
1793
1293
  /**
1794
- * Brand ID to scope the revocation to
1294
+ *
1795
1295
  * @type {string}
1796
- * @memberof RevokeForbiddenRoleRequestBody
1296
+ * @memberof RemoveTeammateRequestBodyActor
1797
1297
  */
1798
- 'brandId'?: string;
1298
+ 'phone'?: string;
1799
1299
  }
1800
1300
 
1801
- export const RevokeForbiddenRoleRequestBodyCompensatingRoleEnum = {
1802
- OwnerCompensating: 'OwnerCompensating',
1803
- PropertyOwnerCompensating: 'PropertyOwnerCompensating',
1804
- ManagedOwnerCompensating: 'ManagedOwnerCompensating',
1805
- IntegratorCompensating: 'IntegratorCompensating',
1806
- PropertyManagerCompensating: 'PropertyManagerCompensating',
1807
- FinanceManagerCompensating: 'FinanceManagerCompensating'
1301
+ export const RemoveTeammateRequestBodyActorTypeEnum = {
1302
+ User: 'User',
1303
+ Automation: 'Automation'
1808
1304
  } as const;
1809
1305
 
1810
- export type RevokeForbiddenRoleRequestBodyCompensatingRoleEnum = typeof RevokeForbiddenRoleRequestBodyCompensatingRoleEnum[keyof typeof RevokeForbiddenRoleRequestBodyCompensatingRoleEnum];
1306
+ export type RemoveTeammateRequestBodyActorTypeEnum = typeof RemoveTeammateRequestBodyActorTypeEnum[keyof typeof RemoveTeammateRequestBodyActorTypeEnum];
1811
1307
 
1812
1308
  /**
1813
- * Details for revoking a role from a principal
1309
+ * Principal to remove from the org
1814
1310
  * @export
1815
- * @interface RevokeRoleRequestBody
1311
+ * @interface RemoveTeammateRequestBodyPrincipal
1816
1312
  */
1817
- export interface RevokeRoleRequestBody {
1313
+ export interface RemoveTeammateRequestBodyPrincipal {
1818
1314
  /**
1819
1315
  *
1820
1316
  * @type {string}
1821
- * @memberof RevokeRoleRequestBody
1317
+ * @memberof RemoveTeammateRequestBodyPrincipal
1822
1318
  */
1823
- 'role': RevokeRoleRequestBodyRoleEnum;
1319
+ 'type': RemoveTeammateRequestBodyPrincipalTypeEnum;
1824
1320
  /**
1825
1321
  *
1826
- * @type {AuthorizationRequestResource}
1827
- * @memberof RevokeRoleRequestBody
1322
+ * @type {string}
1323
+ * @memberof RemoveTeammateRequestBodyPrincipal
1828
1324
  */
1829
- 'resource': AuthorizationRequestResource;
1325
+ 'id': string;
1830
1326
  /**
1831
1327
  *
1832
- * @type {AuthorizationRequestPrincipal}
1833
- * @memberof RevokeRoleRequestBody
1328
+ * @type {string}
1329
+ * @memberof RemoveTeammateRequestBodyPrincipal
1834
1330
  */
1835
- 'principal': AuthorizationRequestPrincipal;
1331
+ 'name'?: string;
1332
+ /**
1333
+ *
1334
+ * @type {string}
1335
+ * @memberof RemoveTeammateRequestBodyPrincipal
1336
+ */
1337
+ 'email'?: string;
1836
1338
  /**
1837
1339
  *
1838
1340
  * @type {string}
1839
- * @memberof RevokeRoleRequestBody
1341
+ * @memberof RemoveTeammateRequestBodyPrincipal
1840
1342
  */
1841
- 'brandId': string;
1343
+ 'phone'?: string;
1842
1344
  }
1843
1345
 
1844
- export const RevokeRoleRequestBodyRoleEnum = {
1845
- OrgViewer: 'OrgViewer',
1846
- OrgManager: 'OrgManager',
1847
- OrgAdmin: 'OrgAdmin',
1848
- BrandViewer: 'BrandViewer',
1849
- BrandManager: 'BrandManager',
1850
- BrandAdmin: 'BrandAdmin',
1851
- StoreViewer: 'StoreViewer',
1852
- StoreEditor: 'StoreEditor',
1853
- StoreManager: 'StoreManager',
1854
- CustomerViewer: 'CustomerViewer',
1855
- CustomerManager: 'CustomerManager',
1856
- VoucherViewer: 'VoucherViewer',
1857
- VoucherEditor: 'VoucherEditor',
1858
- VoucherManager: 'VoucherManager',
1859
- VoucherCampaignManager: 'VoucherCampaignManager',
1860
- VoucherStatisticsViewer: 'VoucherStatisticsViewer',
1861
- AnalyticsViewer: 'AnalyticsViewer',
1862
- ReportsViewer: 'ReportsViewer',
1863
- FinanceViewer: 'FinanceViewer',
1864
- FinanceManager: 'FinanceManager',
1865
- TeamViewer: 'TeamViewer',
1866
- TeamManager: 'TeamManager',
1867
- TeamAdmin: 'TeamAdmin',
1868
- TechViewer: 'TechViewer',
1869
- TechManager: 'TechManager',
1870
- AppStoreViewer: 'AppStoreViewer',
1871
- AppStoreManager: 'AppStoreManager',
1872
- SalesChannelViewer: 'SalesChannelViewer',
1873
- SalesChannelEditor: 'SalesChannelEditor',
1874
- SalesChannelManager: 'SalesChannelManager',
1875
- DeliveryViewer: 'DeliveryViewer',
1876
- DeliveryManager: 'DeliveryManager',
1877
- DriverManager: 'DriverManager',
1878
- AuditViewer: 'AuditViewer',
1879
- AuditManager: 'AuditManager',
1880
- AccountsViewer: 'AccountsViewer',
1881
- AccountsEditor: 'AccountsEditor',
1882
- DocumentExplorerViewer: 'DocumentExplorerViewer',
1883
- DocumentExplorerEditor: 'DocumentExplorerEditor',
1884
- PayrollViewer: 'PayrollViewer',
1885
- PayrollEditor: 'PayrollEditor',
1886
- PropertyViewer: 'PropertyViewer',
1887
- PropertyManager: 'PropertyManager',
1888
- PropertyAdmin: 'PropertyAdmin',
1889
- WebsiteContentEditor: 'WebsiteContentEditor',
1890
- WebsiteContentViewer: 'WebsiteContentViewer',
1891
- WebsiteTechViewer: 'WebsiteTechViewer',
1892
- MenuViewer: 'MenuViewer',
1893
- MenuEditor: 'MenuEditor',
1894
- MenuManager: 'MenuManager',
1895
- MenuMetaFieldManager: 'MenuMetaFieldManager',
1896
- MenuMetaFieldEditor: 'MenuMetaFieldEditor',
1897
- MenuMetaFieldViewer: 'MenuMetaFieldViewer',
1898
- StoreDeliveryZoneManager: 'StoreDeliveryZoneManager',
1899
- StoreDeliveryZoneEditor: 'StoreDeliveryZoneEditor',
1900
- StoreDeliveryZoneViewer: 'StoreDeliveryZoneViewer',
1901
- OrderFulfillmentManager: 'OrderFulfillmentManager',
1902
- OrderManager: 'OrderManager',
1903
- OrderEditor: 'OrderEditor',
1904
- OrderViewer: 'OrderViewer',
1905
- InventoryManager: 'InventoryManager',
1906
- InventoryEditor: 'InventoryEditor',
1907
- InventoryViewer: 'InventoryViewer',
1908
- PaymentManager: 'PaymentManager',
1909
- OnboardingManager: 'OnboardingManager',
1910
- FeatureFlagManager: 'FeatureFlagManager',
1911
- PropertyOwnerMisc: 'PropertyOwnerMisc',
1912
- ManagedOwnerMisc: 'ManagedOwnerMisc',
1913
- IntegratorMisc: 'IntegratorMisc',
1914
- PropertyManagerMisc: 'PropertyManagerMisc',
1915
- FinanceManagerMisc: 'FinanceManagerMisc',
1916
- SupportMisc: 'SupportMisc'
1346
+ export const RemoveTeammateRequestBodyPrincipalTypeEnum = {
1347
+ User: 'User',
1348
+ Automation: 'Automation'
1917
1349
  } as const;
1918
1350
 
1919
- export type RevokeRoleRequestBodyRoleEnum = typeof RevokeRoleRequestBodyRoleEnum[keyof typeof RevokeRoleRequestBodyRoleEnum];
1351
+ export type RemoveTeammateRequestBodyPrincipalTypeEnum = typeof RemoveTeammateRequestBodyPrincipalTypeEnum[keyof typeof RemoveTeammateRequestBodyPrincipalTypeEnum];
1920
1352
 
1921
1353
  /**
1922
- * Successful role revocation response
1354
+ * Teammate removed from org
1923
1355
  * @export
1924
- * @interface RevokeRoleSuccessResponse
1356
+ * @interface RemoveTeammateSuccessResponse
1925
1357
  */
1926
- export interface RevokeRoleSuccessResponse {
1358
+ export interface RemoveTeammateSuccessResponse {
1927
1359
  /**
1928
- * Confirmation message
1360
+ *
1929
1361
  * @type {string}
1930
- * @memberof RevokeRoleSuccessResponse
1362
+ * @memberof RemoveTeammateSuccessResponse
1931
1363
  */
1932
1364
  'message': string;
1933
1365
  }
1934
1366
  /**
1935
- * Role names
1367
+ *
1936
1368
  * @export
1937
- * @enum {string}
1369
+ * @interface RoleAssignmentRequestBody
1938
1370
  */
1371
+ export interface RoleAssignmentRequestBody {
1372
+ /**
1373
+ *
1374
+ * @type {RoleAssignmentRequestBodyPrincipal}
1375
+ * @memberof RoleAssignmentRequestBody
1376
+ */
1377
+ 'principal': RoleAssignmentRequestBodyPrincipal;
1378
+ /**
1379
+ * Role name
1380
+ * @type {string}
1381
+ * @memberof RoleAssignmentRequestBody
1382
+ */
1383
+ 'roleName': RoleAssignmentRequestBodyRoleNameEnum;
1384
+ /**
1385
+ * Property resource ids (e.g. p123) when scoped to properties
1386
+ * @type {Array<ListOrgRolesSuccessResponseValuePropertiesInner>}
1387
+ * @memberof RoleAssignmentRequestBody
1388
+ */
1389
+ 'properties'?: Array<ListOrgRolesSuccessResponseValuePropertiesInner>;
1390
+ /**
1391
+ * Brand resource ids (e.g. b123) when scoped to brands
1392
+ * @type {Array<ListOrgRolesSuccessResponseValueBrandsInner>}
1393
+ * @memberof RoleAssignmentRequestBody
1394
+ */
1395
+ 'brands'?: Array<ListOrgRolesSuccessResponseValueBrandsInner>;
1396
+ /**
1397
+ * Sales channel resource ids (e.g. sc123) when scoped to sales channels
1398
+ * @type {Array<ListOrgRolesSuccessResponseValueSalesChannelsInner>}
1399
+ * @memberof RoleAssignmentRequestBody
1400
+ */
1401
+ 'salesChannels'?: Array<ListOrgRolesSuccessResponseValueSalesChannelsInner>;
1402
+ /**
1403
+ * Optional permission set keys to apply to this role assignment
1404
+ * @type {Array<string>}
1405
+ * @memberof RoleAssignmentRequestBody
1406
+ */
1407
+ 'optionalPermissionSetKeys'?: Array<string>;
1408
+ /**
1409
+ *
1410
+ * @type {RoleAssignmentRequestBodyActor}
1411
+ * @memberof RoleAssignmentRequestBody
1412
+ */
1413
+ 'actor'?: RoleAssignmentRequestBodyActor;
1414
+ }
1939
1415
 
1940
- export const RoleNames = {
1941
- Admin: 'Admin',
1942
- Factory: 'Factory',
1943
- AuthDeveloper: 'AuthDeveloper'
1416
+ export const RoleAssignmentRequestBodyRoleNameEnum = {
1417
+ Owner: 'Owner',
1418
+ PropertyOwner: 'PropertyOwner',
1419
+ ManagedOwner: 'ManagedOwner',
1420
+ Integrator: 'Integrator',
1421
+ PropertyManager: 'PropertyManager',
1422
+ FinanceManager: 'FinanceManager'
1944
1423
  } as const;
1945
1424
 
1946
- export type RoleNames = typeof RoleNames[keyof typeof RoleNames];
1947
-
1425
+ export type RoleAssignmentRequestBodyRoleNameEnum = typeof RoleAssignmentRequestBodyRoleNameEnum[keyof typeof RoleAssignmentRequestBodyRoleNameEnum];
1948
1426
 
1949
1427
  /**
1950
- * Teammate access applied
1428
+ * Actor making the assignment
1951
1429
  * @export
1952
- * @interface TeammateAccessSuccessResponse
1430
+ * @interface RoleAssignmentRequestBodyActor
1953
1431
  */
1954
- export interface TeammateAccessSuccessResponse {
1432
+ export interface RoleAssignmentRequestBodyActor {
1955
1433
  /**
1956
1434
  *
1957
1435
  * @type {string}
1958
- * @memberof TeammateAccessSuccessResponse
1436
+ * @memberof RoleAssignmentRequestBodyActor
1959
1437
  */
1960
- 'message': string;
1961
- }
1962
- /**
1963
- * Update teammate app access for an existing teammate. Email and name are not accepted on update; the existing values stored against the user id are reused.
1964
- * @export
1965
- * @interface UpdateTeammateAccessRequestBody
1966
- */
1967
- export interface UpdateTeammateAccessRequestBody {
1438
+ 'type': RoleAssignmentRequestBodyActorTypeEnum;
1968
1439
  /**
1969
- * Teammate app access level (role)
1440
+ *
1970
1441
  * @type {string}
1971
- * @memberof UpdateTeammateAccessRequestBody
1442
+ * @memberof RoleAssignmentRequestBodyActor
1972
1443
  */
1973
- 'appAccessLevel': UpdateTeammateAccessRequestBodyAppAccessLevelEnum;
1444
+ 'id': string;
1974
1445
  /**
1975
- * Brand identifier (AppId); normalized to lowercase when stored
1446
+ *
1976
1447
  * @type {string}
1977
- * @memberof UpdateTeammateAccessRequestBody
1448
+ * @memberof RoleAssignmentRequestBodyActor
1978
1449
  */
1979
- 'brandId': string;
1980
- /**
1981
- * Org-wide store access; when false, propertyIds are required for property-scoped roles
1982
- * @type {boolean}
1983
- * @memberof UpdateTeammateAccessRequestBody
1984
- */
1985
- 'hasAccessToAllStores': boolean;
1450
+ 'name'?: string;
1986
1451
  /**
1987
- * Property resource ids (e.g. p123) when scoped to properties
1988
- * @type {Array<string>}
1989
- * @memberof UpdateTeammateAccessRequestBody
1452
+ *
1453
+ * @type {string}
1454
+ * @memberof RoleAssignmentRequestBodyActor
1990
1455
  */
1991
- 'propertyIds'?: Array<string>;
1456
+ 'email'?: string;
1992
1457
  /**
1993
- * Optional v2 permission set keys to apply to this teammate role
1994
- * @type {Array<string>}
1995
- * @memberof UpdateTeammateAccessRequestBody
1458
+ *
1459
+ * @type {string}
1460
+ * @memberof RoleAssignmentRequestBodyActor
1996
1461
  */
1997
- 'optionalPermissionSetKeys'?: Array<string>;
1462
+ 'phone'?: string;
1998
1463
  }
1999
1464
 
2000
- export const UpdateTeammateAccessRequestBodyAppAccessLevelEnum = {
2001
- Owner: 'Owner',
2002
- ManagedOwner: 'ManagedOwner',
2003
- PropertyOwner: 'PropertyOwner',
2004
- PropertyManager: 'PropertyManager',
2005
- FinanceManager: 'FinanceManager',
2006
- Integrator: 'Integrator'
1465
+ export const RoleAssignmentRequestBodyActorTypeEnum = {
1466
+ User: 'User',
1467
+ Automation: 'Automation'
2007
1468
  } as const;
2008
1469
 
2009
- export type UpdateTeammateAccessRequestBodyAppAccessLevelEnum = typeof UpdateTeammateAccessRequestBodyAppAccessLevelEnum[keyof typeof UpdateTeammateAccessRequestBodyAppAccessLevelEnum];
1470
+ export type RoleAssignmentRequestBodyActorTypeEnum = typeof RoleAssignmentRequestBodyActorTypeEnum[keyof typeof RoleAssignmentRequestBodyActorTypeEnum];
2010
1471
 
2011
1472
  /**
2012
- * Apply a v2 UI role assignment without invoking legacy teammate/Zeus role assignment flows.
1473
+ * Principal to assign the role to
2013
1474
  * @export
2014
- * @interface V2UiRoleAssignmentRequestBody
1475
+ * @interface RoleAssignmentRequestBodyPrincipal
2015
1476
  */
2016
- export interface V2UiRoleAssignmentRequestBody {
1477
+ export interface RoleAssignmentRequestBodyPrincipal {
2017
1478
  /**
2018
- * Teammate app access level (role)
1479
+ *
2019
1480
  * @type {string}
2020
- * @memberof V2UiRoleAssignmentRequestBody
1481
+ * @memberof RoleAssignmentRequestBodyPrincipal
2021
1482
  */
2022
- 'appAccessLevel': V2UiRoleAssignmentRequestBodyAppAccessLevelEnum;
1483
+ 'type': RoleAssignmentRequestBodyPrincipalTypeEnum;
2023
1484
  /**
2024
- * Org-wide store access; when false, propertyIds are required for property-scoped roles
2025
- * @type {boolean}
2026
- * @memberof V2UiRoleAssignmentRequestBody
1485
+ *
1486
+ * @type {string}
1487
+ * @memberof RoleAssignmentRequestBodyPrincipal
2027
1488
  */
2028
- 'hasAccessToAllStores': boolean;
1489
+ 'id': string;
2029
1490
  /**
2030
- * Property resource ids (e.g. p123) when scoped to properties
2031
- * @type {Array<string>}
2032
- * @memberof V2UiRoleAssignmentRequestBody
1491
+ *
1492
+ * @type {string}
1493
+ * @memberof RoleAssignmentRequestBodyPrincipal
2033
1494
  */
2034
- 'propertyIds'?: Array<string>;
1495
+ 'name'?: string;
2035
1496
  /**
2036
- * Optional v2 permission set keys to apply to this teammate role
2037
- * @type {Array<string>}
2038
- * @memberof V2UiRoleAssignmentRequestBody
1497
+ *
1498
+ * @type {string}
1499
+ * @memberof RoleAssignmentRequestBodyPrincipal
2039
1500
  */
2040
- 'optionalPermissionSetKeys'?: Array<string>;
1501
+ 'email'?: string;
1502
+ /**
1503
+ *
1504
+ * @type {string}
1505
+ * @memberof RoleAssignmentRequestBodyPrincipal
1506
+ */
1507
+ 'phone'?: string;
2041
1508
  }
2042
1509
 
2043
- export const V2UiRoleAssignmentRequestBodyAppAccessLevelEnum = {
2044
- Owner: 'Owner',
2045
- ManagedOwner: 'ManagedOwner',
2046
- PropertyOwner: 'PropertyOwner',
2047
- PropertyManager: 'PropertyManager',
2048
- FinanceManager: 'FinanceManager',
2049
- Integrator: 'Integrator'
1510
+ export const RoleAssignmentRequestBodyPrincipalTypeEnum = {
1511
+ User: 'User',
1512
+ Automation: 'Automation'
1513
+ } as const;
1514
+
1515
+ export type RoleAssignmentRequestBodyPrincipalTypeEnum = typeof RoleAssignmentRequestBodyPrincipalTypeEnum[keyof typeof RoleAssignmentRequestBodyPrincipalTypeEnum];
1516
+
1517
+ /**
1518
+ * Role assignment applied
1519
+ * @export
1520
+ * @interface RoleAssignmentSuccessResponse
1521
+ */
1522
+ export interface RoleAssignmentSuccessResponse {
1523
+ /**
1524
+ *
1525
+ * @type {string}
1526
+ * @memberof RoleAssignmentSuccessResponse
1527
+ */
1528
+ 'message': string;
1529
+ }
1530
+ /**
1531
+ * Role names
1532
+ * @export
1533
+ * @enum {string}
1534
+ */
1535
+
1536
+ export const RoleNames = {
1537
+ Admin: 'Admin',
1538
+ Factory: 'Factory',
1539
+ AuthDeveloper: 'AuthDeveloper'
2050
1540
  } as const;
2051
1541
 
2052
- export type V2UiRoleAssignmentRequestBodyAppAccessLevelEnum = typeof V2UiRoleAssignmentRequestBodyAppAccessLevelEnum[keyof typeof V2UiRoleAssignmentRequestBodyAppAccessLevelEnum];
1542
+ export type RoleNames = typeof RoleNames[keyof typeof RoleNames];
1543
+
2053
1544
 
2054
1545
  /**
2055
1546
  *
@@ -2867,46 +2358,13 @@ export class AuthorizedEntitiesApi extends BaseAPI {
2867
2358
  */
2868
2359
  export const ConfigurationDataApiAxiosParamCreator = function (configuration?: Configuration) {
2869
2360
  return {
2870
- /**
2871
- * List the available feature based roles
2872
- * @summary List Feature Based Roles
2873
- * @param {*} [options] Override http request option.
2874
- * @throws {RequiredError}
2875
- */
2876
- configListFeatureBasedRoles: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2877
- const localVarPath = `/config/featureBasedRoles`;
2878
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2879
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2880
- let baseOptions;
2881
- if (configuration) {
2882
- baseOptions = configuration.baseOptions;
2883
- }
2884
-
2885
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2886
- const localVarHeaderParameter = {} as any;
2887
- const localVarQueryParameter = {} as any;
2888
-
2889
- // authentication ApiKeyAuth required
2890
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
2891
-
2892
-
2893
-
2894
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2895
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2896
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2897
-
2898
- return {
2899
- url: toPathString(localVarUrlObj),
2900
- options: localVarRequestOptions,
2901
- };
2902
- },
2903
2361
  /**
2904
2362
  * List the available permissions
2905
2363
  * @summary List Permissions
2906
2364
  * @param {*} [options] Override http request option.
2907
2365
  * @throws {RequiredError}
2908
2366
  */
2909
- configListPermissions: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2367
+ listPermissions: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2910
2368
  const localVarPath = `/config/permissions`;
2911
2369
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2912
2370
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2939,7 +2397,7 @@ export const ConfigurationDataApiAxiosParamCreator = function (configuration?: C
2939
2397
  * @param {*} [options] Override http request option.
2940
2398
  * @throws {RequiredError}
2941
2399
  */
2942
- configListRoles: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2400
+ listRoles: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2943
2401
  const localVarPath = `/config/roles`;
2944
2402
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2945
2403
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2957,105 +2415,6 @@ export const ConfigurationDataApiAxiosParamCreator = function (configuration?: C
2957
2415
 
2958
2416
 
2959
2417
 
2960
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2961
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2962
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2963
-
2964
- return {
2965
- url: toPathString(localVarUrlObj),
2966
- options: localVarRequestOptions,
2967
- };
2968
- },
2969
- /**
2970
- * List the available feature based roles
2971
- * @summary List Feature Based Roles
2972
- * @param {*} [options] Override http request option.
2973
- * @throws {RequiredError}
2974
- */
2975
- listFeatureBasedRoles: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2976
- const localVarPath = `/featureBasedRoles`;
2977
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2978
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2979
- let baseOptions;
2980
- if (configuration) {
2981
- baseOptions = configuration.baseOptions;
2982
- }
2983
-
2984
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2985
- const localVarHeaderParameter = {} as any;
2986
- const localVarQueryParameter = {} as any;
2987
-
2988
- // authentication ApiKeyAuth required
2989
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
2990
-
2991
-
2992
-
2993
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2994
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2995
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2996
-
2997
- return {
2998
- url: toPathString(localVarUrlObj),
2999
- options: localVarRequestOptions,
3000
- };
3001
- },
3002
- /**
3003
- * List the available permissions
3004
- * @summary List Permissions
3005
- * @param {*} [options] Override http request option.
3006
- * @throws {RequiredError}
3007
- */
3008
- listPermissions: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3009
- const localVarPath = `/permissions`;
3010
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3011
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3012
- let baseOptions;
3013
- if (configuration) {
3014
- baseOptions = configuration.baseOptions;
3015
- }
3016
-
3017
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3018
- const localVarHeaderParameter = {} as any;
3019
- const localVarQueryParameter = {} as any;
3020
-
3021
- // authentication ApiKeyAuth required
3022
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3023
-
3024
-
3025
-
3026
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3027
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3028
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3029
-
3030
- return {
3031
- url: toPathString(localVarUrlObj),
3032
- options: localVarRequestOptions,
3033
- };
3034
- },
3035
- /**
3036
- * List the available roles
3037
- * @summary List Roles
3038
- * @param {*} [options] Override http request option.
3039
- * @throws {RequiredError}
3040
- */
3041
- listRoles: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3042
- const localVarPath = `/roles`;
3043
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3044
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3045
- let baseOptions;
3046
- if (configuration) {
3047
- baseOptions = configuration.baseOptions;
3048
- }
3049
-
3050
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3051
- const localVarHeaderParameter = {} as any;
3052
- const localVarQueryParameter = {} as any;
3053
-
3054
- // authentication ApiKeyAuth required
3055
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3056
-
3057
-
3058
-
3059
2418
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3060
2419
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3061
2420
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -3075,54 +2434,6 @@ export const ConfigurationDataApiAxiosParamCreator = function (configuration?: C
3075
2434
  export const ConfigurationDataApiFp = function(configuration?: Configuration) {
3076
2435
  const localVarAxiosParamCreator = ConfigurationDataApiAxiosParamCreator(configuration)
3077
2436
  return {
3078
- /**
3079
- * List the available feature based roles
3080
- * @summary List Feature Based Roles
3081
- * @param {*} [options] Override http request option.
3082
- * @throws {RequiredError}
3083
- */
3084
- async configListFeatureBasedRoles(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListFeatureBasedRolesSuccessResponse>> {
3085
- const localVarAxiosArgs = await localVarAxiosParamCreator.configListFeatureBasedRoles(options);
3086
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3087
- const localVarOperationServerBasePath = operationServerMap['ConfigurationDataApi.configListFeatureBasedRoles']?.[localVarOperationServerIndex]?.url;
3088
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3089
- },
3090
- /**
3091
- * List the available permissions
3092
- * @summary List Permissions
3093
- * @param {*} [options] Override http request option.
3094
- * @throws {RequiredError}
3095
- */
3096
- async configListPermissions(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPermissionsSuccessResponse>> {
3097
- const localVarAxiosArgs = await localVarAxiosParamCreator.configListPermissions(options);
3098
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3099
- const localVarOperationServerBasePath = operationServerMap['ConfigurationDataApi.configListPermissions']?.[localVarOperationServerIndex]?.url;
3100
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3101
- },
3102
- /**
3103
- * List the available roles
3104
- * @summary List Roles
3105
- * @param {*} [options] Override http request option.
3106
- * @throws {RequiredError}
3107
- */
3108
- async configListRoles(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRolesSuccessResponse>> {
3109
- const localVarAxiosArgs = await localVarAxiosParamCreator.configListRoles(options);
3110
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3111
- const localVarOperationServerBasePath = operationServerMap['ConfigurationDataApi.configListRoles']?.[localVarOperationServerIndex]?.url;
3112
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3113
- },
3114
- /**
3115
- * List the available feature based roles
3116
- * @summary List Feature Based Roles
3117
- * @param {*} [options] Override http request option.
3118
- * @throws {RequiredError}
3119
- */
3120
- async listFeatureBasedRoles(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListFeatureBasedRolesSuccessResponse>> {
3121
- const localVarAxiosArgs = await localVarAxiosParamCreator.listFeatureBasedRoles(options);
3122
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3123
- const localVarOperationServerBasePath = operationServerMap['ConfigurationDataApi.listFeatureBasedRoles']?.[localVarOperationServerIndex]?.url;
3124
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3125
- },
3126
2437
  /**
3127
2438
  * List the available permissions
3128
2439
  * @summary List Permissions
@@ -3157,42 +2468,6 @@ export const ConfigurationDataApiFp = function(configuration?: Configuration) {
3157
2468
  export const ConfigurationDataApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3158
2469
  const localVarFp = ConfigurationDataApiFp(configuration)
3159
2470
  return {
3160
- /**
3161
- * List the available feature based roles
3162
- * @summary List Feature Based Roles
3163
- * @param {*} [options] Override http request option.
3164
- * @throws {RequiredError}
3165
- */
3166
- configListFeatureBasedRoles(options?: RawAxiosRequestConfig): AxiosPromise<ListFeatureBasedRolesSuccessResponse> {
3167
- return localVarFp.configListFeatureBasedRoles(options).then((request) => request(axios, basePath));
3168
- },
3169
- /**
3170
- * List the available permissions
3171
- * @summary List Permissions
3172
- * @param {*} [options] Override http request option.
3173
- * @throws {RequiredError}
3174
- */
3175
- configListPermissions(options?: RawAxiosRequestConfig): AxiosPromise<ListPermissionsSuccessResponse> {
3176
- return localVarFp.configListPermissions(options).then((request) => request(axios, basePath));
3177
- },
3178
- /**
3179
- * List the available roles
3180
- * @summary List Roles
3181
- * @param {*} [options] Override http request option.
3182
- * @throws {RequiredError}
3183
- */
3184
- configListRoles(options?: RawAxiosRequestConfig): AxiosPromise<ListRolesSuccessResponse> {
3185
- return localVarFp.configListRoles(options).then((request) => request(axios, basePath));
3186
- },
3187
- /**
3188
- * List the available feature based roles
3189
- * @summary List Feature Based Roles
3190
- * @param {*} [options] Override http request option.
3191
- * @throws {RequiredError}
3192
- */
3193
- listFeatureBasedRoles(options?: RawAxiosRequestConfig): AxiosPromise<ListFeatureBasedRolesSuccessResponse> {
3194
- return localVarFp.listFeatureBasedRoles(options).then((request) => request(axios, basePath));
3195
- },
3196
2471
  /**
3197
2472
  * List the available permissions
3198
2473
  * @summary List Permissions
@@ -3221,347 +2496,49 @@ export const ConfigurationDataApiFactory = function (configuration?: Configurati
3221
2496
  * @extends {BaseAPI}
3222
2497
  */
3223
2498
  export class ConfigurationDataApi extends BaseAPI {
3224
- /**
3225
- * List the available feature based roles
3226
- * @summary List Feature Based Roles
3227
- * @param {*} [options] Override http request option.
3228
- * @throws {RequiredError}
3229
- * @memberof ConfigurationDataApi
3230
- */
3231
- public configListFeatureBasedRoles(options?: RawAxiosRequestConfig) {
3232
- return ConfigurationDataApiFp(this.configuration).configListFeatureBasedRoles(options).then((request) => request(this.axios, this.basePath));
3233
- }
3234
-
3235
2499
  /**
3236
2500
  * List the available permissions
3237
2501
  * @summary List Permissions
3238
2502
  * @param {*} [options] Override http request option.
3239
- * @throws {RequiredError}
3240
- * @memberof ConfigurationDataApi
3241
- */
3242
- public configListPermissions(options?: RawAxiosRequestConfig) {
3243
- return ConfigurationDataApiFp(this.configuration).configListPermissions(options).then((request) => request(this.axios, this.basePath));
3244
- }
3245
-
3246
- /**
3247
- * List the available roles
3248
- * @summary List Roles
3249
- * @param {*} [options] Override http request option.
3250
- * @throws {RequiredError}
3251
- * @memberof ConfigurationDataApi
3252
- */
3253
- public configListRoles(options?: RawAxiosRequestConfig) {
3254
- return ConfigurationDataApiFp(this.configuration).configListRoles(options).then((request) => request(this.axios, this.basePath));
3255
- }
3256
-
3257
- /**
3258
- * List the available feature based roles
3259
- * @summary List Feature Based Roles
3260
- * @param {*} [options] Override http request option.
3261
- * @throws {RequiredError}
3262
- * @memberof ConfigurationDataApi
3263
- */
3264
- public listFeatureBasedRoles(options?: RawAxiosRequestConfig) {
3265
- return ConfigurationDataApiFp(this.configuration).listFeatureBasedRoles(options).then((request) => request(this.axios, this.basePath));
3266
- }
3267
-
3268
- /**
3269
- * List the available permissions
3270
- * @summary List Permissions
3271
- * @param {*} [options] Override http request option.
3272
- * @throws {RequiredError}
3273
- * @memberof ConfigurationDataApi
3274
- */
3275
- public listPermissions(options?: RawAxiosRequestConfig) {
3276
- return ConfigurationDataApiFp(this.configuration).listPermissions(options).then((request) => request(this.axios, this.basePath));
3277
- }
3278
-
3279
- /**
3280
- * List the available roles
3281
- * @summary List Roles
3282
- * @param {*} [options] Override http request option.
3283
- * @throws {RequiredError}
3284
- * @memberof ConfigurationDataApi
3285
- */
3286
- public listRoles(options?: RawAxiosRequestConfig) {
3287
- return ConfigurationDataApiFp(this.configuration).listRoles(options).then((request) => request(this.axios, this.basePath));
3288
- }
3289
- }
3290
-
3291
-
3292
-
3293
- /**
3294
- * RoleAssignmentApi - axios parameter creator
3295
- * @export
3296
- */
3297
- export const RoleAssignmentApiAxiosParamCreator = function (configuration?: Configuration) {
3298
- return {
3299
- /**
3300
- * Assigns a specified role to a given principal (user, group, etc.)
3301
- * @summary Assign Role to Principal
3302
- * @param {string} orgId
3303
- * @param {AssignRoleRequestBody} [assignRoleRequestBody]
3304
- * @param {*} [options] Override http request option.
3305
- * @throws {RequiredError}
3306
- */
3307
- assignRoleToPrincipal: async (orgId: string, assignRoleRequestBody?: AssignRoleRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3308
- // verify required parameter 'orgId' is not null or undefined
3309
- assertParamExists('assignRoleToPrincipal', 'orgId', orgId)
3310
- const localVarPath = `/orgs/{orgId}/roles/assignRoleToPrincipal`
3311
- .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
3312
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3313
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3314
- let baseOptions;
3315
- if (configuration) {
3316
- baseOptions = configuration.baseOptions;
3317
- }
3318
-
3319
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3320
- const localVarHeaderParameter = {} as any;
3321
- const localVarQueryParameter = {} as any;
3322
-
3323
- // authentication ApiKeyAuth required
3324
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3325
-
3326
-
3327
-
3328
- localVarHeaderParameter['Content-Type'] = 'application/json';
3329
-
3330
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3331
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3332
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3333
- localVarRequestOptions.data = serializeDataIfNeeded(assignRoleRequestBody, localVarRequestOptions, configuration)
3334
-
3335
- return {
3336
- url: toPathString(localVarUrlObj),
3337
- options: localVarRequestOptions,
3338
- };
3339
- },
3340
- /**
3341
- * Get the active roles for a given principal
3342
- * @summary Get Principal Roles
3343
- * @param {string} orgId
3344
- * @param {GetPrincipalRolesRequestBody} [getPrincipalRolesRequestBody]
3345
- * @param {*} [options] Override http request option.
3346
- * @throws {RequiredError}
3347
- */
3348
- getPrincipalRoles: async (orgId: string, getPrincipalRolesRequestBody?: GetPrincipalRolesRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3349
- // verify required parameter 'orgId' is not null or undefined
3350
- assertParamExists('getPrincipalRoles', 'orgId', orgId)
3351
- const localVarPath = `/orgs/{orgId}/roles/getPrincipalRoles`
3352
- .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
3353
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3354
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3355
- let baseOptions;
3356
- if (configuration) {
3357
- baseOptions = configuration.baseOptions;
3358
- }
3359
-
3360
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3361
- const localVarHeaderParameter = {} as any;
3362
- const localVarQueryParameter = {} as any;
3363
-
3364
- // authentication ApiKeyAuth required
3365
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3366
-
3367
-
3368
-
3369
- localVarHeaderParameter['Content-Type'] = 'application/json';
3370
-
3371
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3372
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3373
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3374
- localVarRequestOptions.data = serializeDataIfNeeded(getPrincipalRolesRequestBody, localVarRequestOptions, configuration)
3375
-
3376
- return {
3377
- url: toPathString(localVarUrlObj),
3378
- options: localVarRequestOptions,
3379
- };
3380
- },
3381
- /**
3382
- * Grant teammate app access and underlying permissions for a user being assigned within a brand for the first time. Email and name are persisted on first assignment only and must be supplied here.
3383
- * @summary Grant teammate access to a new user
3384
- * @param {string} orgId
3385
- * @param {string} userId Target Flipdish user id (numeric string)
3386
- * @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
3387
- * @param {*} [options] Override http request option.
3388
- * @throws {RequiredError}
3389
- */
3390
- grantTeammateAccess: async (orgId: string, userId: string, grantTeammateAccessRequestBody?: GrantTeammateAccessRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3391
- // verify required parameter 'orgId' is not null or undefined
3392
- assertParamExists('grantTeammateAccess', 'orgId', orgId)
3393
- // verify required parameter 'userId' is not null or undefined
3394
- assertParamExists('grantTeammateAccess', 'userId', userId)
3395
- const localVarPath = `/orgs/{orgId}/users/{userId}/grantTeammateAccess`
3396
- .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
3397
- .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
3398
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3399
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3400
- let baseOptions;
3401
- if (configuration) {
3402
- baseOptions = configuration.baseOptions;
3403
- }
3404
-
3405
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3406
- const localVarHeaderParameter = {} as any;
3407
- const localVarQueryParameter = {} as any;
3408
-
3409
- // authentication ApiKeyAuth required
3410
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3411
-
3412
-
3413
-
3414
- localVarHeaderParameter['Content-Type'] = 'application/json';
3415
-
3416
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3417
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3418
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3419
- localVarRequestOptions.data = serializeDataIfNeeded(grantTeammateAccessRequestBody, localVarRequestOptions, configuration)
3420
-
3421
- return {
3422
- url: toPathString(localVarUrlObj),
3423
- options: localVarRequestOptions,
3424
- };
3425
- },
3426
- /**
3427
- * Apply a v2 UI role assignment without invoking legacy teammate/Zeus role assignment flows.
3428
- * @summary Grant v2 teammate access to a user
3429
- * @param {string} orgId
3430
- * @param {string} userId Target Flipdish user id (numeric string)
3431
- * @param {V2UiRoleAssignmentRequestBody} [v2UiRoleAssignmentRequestBody]
3432
- * @param {*} [options] Override http request option.
3433
- * @throws {RequiredError}
3434
- */
3435
- grantTeammateAccessV2: async (orgId: string, userId: string, v2UiRoleAssignmentRequestBody?: V2UiRoleAssignmentRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3436
- // verify required parameter 'orgId' is not null or undefined
3437
- assertParamExists('grantTeammateAccessV2', 'orgId', orgId)
3438
- // verify required parameter 'userId' is not null or undefined
3439
- assertParamExists('grantTeammateAccessV2', 'userId', userId)
3440
- const localVarPath = `/v2/orgs/{orgId}/users/{userId}/grantTeammateAccess`
3441
- .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
3442
- .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
3443
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3444
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3445
- let baseOptions;
3446
- if (configuration) {
3447
- baseOptions = configuration.baseOptions;
3448
- }
3449
-
3450
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3451
- const localVarHeaderParameter = {} as any;
3452
- const localVarQueryParameter = {} as any;
3453
-
3454
- // authentication ApiKeyAuth required
3455
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3456
-
3457
-
3458
-
3459
- localVarHeaderParameter['Content-Type'] = 'application/json';
3460
-
3461
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3462
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3463
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3464
- localVarRequestOptions.data = serializeDataIfNeeded(v2UiRoleAssignmentRequestBody, localVarRequestOptions, configuration)
3465
-
3466
- return {
3467
- url: toPathString(localVarUrlObj),
3468
- options: localVarRequestOptions,
3469
- };
3470
- },
3471
- /**
3472
- * Rematerializes a V2 role assignment and applies the resulting policy assignments
3473
- * @summary Rematerialize V2 Role Assignment
3474
- * @param {string} orgId
3475
- * @param {RematerializeRoleAssignmentV2RequestBody} [rematerializeRoleAssignmentV2RequestBody]
3476
- * @param {*} [options] Override http request option.
3477
- * @throws {RequiredError}
3478
- */
3479
- rematerializeRoleAssignmentV2: async (orgId: string, rematerializeRoleAssignmentV2RequestBody?: RematerializeRoleAssignmentV2RequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3480
- // verify required parameter 'orgId' is not null or undefined
3481
- assertParamExists('rematerializeRoleAssignmentV2', 'orgId', orgId)
3482
- const localVarPath = `/orgs/{orgId}/roleAssignments/v2/rematerialize`
3483
- .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
3484
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3485
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3486
- let baseOptions;
3487
- if (configuration) {
3488
- baseOptions = configuration.baseOptions;
3489
- }
3490
-
3491
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3492
- const localVarHeaderParameter = {} as any;
3493
- const localVarQueryParameter = {} as any;
3494
-
3495
- // authentication ApiKeyAuth required
3496
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3497
-
3498
-
3499
-
3500
- localVarHeaderParameter['Content-Type'] = 'application/json';
3501
-
3502
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3503
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3504
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3505
- localVarRequestOptions.data = serializeDataIfNeeded(rematerializeRoleAssignmentV2RequestBody, localVarRequestOptions, configuration)
3506
-
3507
- return {
3508
- url: toPathString(localVarUrlObj),
3509
- options: localVarRequestOptions,
3510
- };
3511
- },
3512
- /**
3513
- * Revokes a forbidden role from a given principal (user, group, etc.)
3514
- * @summary Revoke Forbidden Role from Principal
3515
- * @param {string} orgId
3516
- * @param {RevokeForbiddenRoleRequestBody} [revokeForbiddenRoleRequestBody]
3517
- * @param {*} [options] Override http request option.
3518
- * @throws {RequiredError}
3519
- */
3520
- revokeForbiddenRoleFromPrincipal: async (orgId: string, revokeForbiddenRoleRequestBody?: RevokeForbiddenRoleRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3521
- // verify required parameter 'orgId' is not null or undefined
3522
- assertParamExists('revokeForbiddenRoleFromPrincipal', 'orgId', orgId)
3523
- const localVarPath = `/orgs/{orgId}/roles/revokeForbiddenRoleFromPrincipal`
3524
- .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
3525
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3526
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3527
- let baseOptions;
3528
- if (configuration) {
3529
- baseOptions = configuration.baseOptions;
3530
- }
3531
-
3532
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3533
- const localVarHeaderParameter = {} as any;
3534
- const localVarQueryParameter = {} as any;
3535
-
3536
- // authentication ApiKeyAuth required
3537
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
2503
+ * @throws {RequiredError}
2504
+ * @memberof ConfigurationDataApi
2505
+ */
2506
+ public listPermissions(options?: RawAxiosRequestConfig) {
2507
+ return ConfigurationDataApiFp(this.configuration).listPermissions(options).then((request) => request(this.axios, this.basePath));
2508
+ }
3538
2509
 
2510
+ /**
2511
+ * List the available roles
2512
+ * @summary List Roles
2513
+ * @param {*} [options] Override http request option.
2514
+ * @throws {RequiredError}
2515
+ * @memberof ConfigurationDataApi
2516
+ */
2517
+ public listRoles(options?: RawAxiosRequestConfig) {
2518
+ return ConfigurationDataApiFp(this.configuration).listRoles(options).then((request) => request(this.axios, this.basePath));
2519
+ }
2520
+ }
3539
2521
 
3540
-
3541
- localVarHeaderParameter['Content-Type'] = 'application/json';
3542
2522
 
3543
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3544
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3545
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3546
- localVarRequestOptions.data = serializeDataIfNeeded(revokeForbiddenRoleRequestBody, localVarRequestOptions, configuration)
3547
2523
 
3548
- return {
3549
- url: toPathString(localVarUrlObj),
3550
- options: localVarRequestOptions,
3551
- };
3552
- },
2524
+ /**
2525
+ * RoleAssignmentApi - axios parameter creator
2526
+ * @export
2527
+ */
2528
+ export const RoleAssignmentApiAxiosParamCreator = function (configuration?: Configuration) {
2529
+ return {
3553
2530
  /**
3554
- * Revokes a specified role from a given principal (user, group, etc.)
3555
- * @summary Revoke Role from Principal
2531
+ * Apply a role assignment for the target user without invoking legacy teammate/Zeus role assignment flows.
2532
+ * @summary Apply role assignment
3556
2533
  * @param {string} orgId
3557
- * @param {RevokeRoleRequestBody} [revokeRoleRequestBody]
2534
+ * @param {RoleAssignmentRequestBody} [roleAssignmentRequestBody]
3558
2535
  * @param {*} [options] Override http request option.
3559
2536
  * @throws {RequiredError}
3560
2537
  */
3561
- revokeRoleFromPrincipal: async (orgId: string, revokeRoleRequestBody?: RevokeRoleRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2538
+ applyRoleAssignment: async (orgId: string, roleAssignmentRequestBody?: RoleAssignmentRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3562
2539
  // verify required parameter 'orgId' is not null or undefined
3563
- assertParamExists('revokeRoleFromPrincipal', 'orgId', orgId)
3564
- const localVarPath = `/orgs/{orgId}/roles/revokeRoleFromPrincipal`
2540
+ assertParamExists('applyRoleAssignment', 'orgId', orgId)
2541
+ const localVarPath = `/orgs/{orgId}/roleAssignments/apply`
3565
2542
  .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
3566
2543
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3567
2544
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -3584,7 +2561,7 @@ export const RoleAssignmentApiAxiosParamCreator = function (configuration?: Conf
3584
2561
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3585
2562
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3586
2563
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3587
- localVarRequestOptions.data = serializeDataIfNeeded(revokeRoleRequestBody, localVarRequestOptions, configuration)
2564
+ localVarRequestOptions.data = serializeDataIfNeeded(roleAssignmentRequestBody, localVarRequestOptions, configuration)
3588
2565
 
3589
2566
  return {
3590
2567
  url: toPathString(localVarUrlObj),
@@ -3592,22 +2569,18 @@ export const RoleAssignmentApiAxiosParamCreator = function (configuration?: Conf
3592
2569
  };
3593
2570
  },
3594
2571
  /**
3595
- * Update teammate app access and underlying permissions for an existing teammate. The user must already have been granted access for this brand. Email and name are not accepted on update; existing values are reused. Returns 404 if no existing assignment is found.
3596
- * @summary Update teammate access for an existing user
2572
+ * Rematerializes a role assignment and applies the resulting policy assignments
2573
+ * @summary Rematerialize Role Assignment
3597
2574
  * @param {string} orgId
3598
- * @param {string} userId Target Flipdish user id (numeric string)
3599
- * @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
2575
+ * @param {RematerializeRoleAssignmentRequestBody} [rematerializeRoleAssignmentRequestBody]
3600
2576
  * @param {*} [options] Override http request option.
3601
2577
  * @throws {RequiredError}
3602
2578
  */
3603
- updateTeammateAccess: async (orgId: string, userId: string, updateTeammateAccessRequestBody?: UpdateTeammateAccessRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2579
+ rematerializeRoleAssignmentV2: async (orgId: string, rematerializeRoleAssignmentRequestBody?: RematerializeRoleAssignmentRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3604
2580
  // verify required parameter 'orgId' is not null or undefined
3605
- assertParamExists('updateTeammateAccess', 'orgId', orgId)
3606
- // verify required parameter 'userId' is not null or undefined
3607
- assertParamExists('updateTeammateAccess', 'userId', userId)
3608
- const localVarPath = `/orgs/{orgId}/users/{userId}/updateTeammateAccess`
3609
- .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
3610
- .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
2581
+ assertParamExists('rematerializeRoleAssignmentV2', 'orgId', orgId)
2582
+ const localVarPath = `/orgs/{orgId}/roleAssignments/rematerialize`
2583
+ .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
3611
2584
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3612
2585
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3613
2586
  let baseOptions;
@@ -3629,7 +2602,7 @@ export const RoleAssignmentApiAxiosParamCreator = function (configuration?: Conf
3629
2602
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3630
2603
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3631
2604
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3632
- localVarRequestOptions.data = serializeDataIfNeeded(updateTeammateAccessRequestBody, localVarRequestOptions, configuration)
2605
+ localVarRequestOptions.data = serializeDataIfNeeded(rematerializeRoleAssignmentRequestBody, localVarRequestOptions, configuration)
3633
2606
 
3634
2607
  return {
3635
2608
  url: toPathString(localVarUrlObj),
@@ -3637,22 +2610,18 @@ export const RoleAssignmentApiAxiosParamCreator = function (configuration?: Conf
3637
2610
  };
3638
2611
  },
3639
2612
  /**
3640
- * Apply a v2 UI role assignment without invoking legacy teammate/Zeus role assignment flows.
3641
- * @summary Update v2 teammate access for a user
2613
+ * Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
2614
+ * @summary Remove teammate
3642
2615
  * @param {string} orgId
3643
- * @param {string} userId Target Flipdish user id (numeric string)
3644
- * @param {V2UiRoleAssignmentRequestBody} [v2UiRoleAssignmentRequestBody]
2616
+ * @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
3645
2617
  * @param {*} [options] Override http request option.
3646
2618
  * @throws {RequiredError}
3647
2619
  */
3648
- updateTeammateAccessV2: async (orgId: string, userId: string, v2UiRoleAssignmentRequestBody?: V2UiRoleAssignmentRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2620
+ removeTeammate: async (orgId: string, removeTeammateRequestBody?: RemoveTeammateRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3649
2621
  // verify required parameter 'orgId' is not null or undefined
3650
- assertParamExists('updateTeammateAccessV2', 'orgId', orgId)
3651
- // verify required parameter 'userId' is not null or undefined
3652
- assertParamExists('updateTeammateAccessV2', 'userId', userId)
3653
- const localVarPath = `/v2/orgs/{orgId}/users/{userId}/updateTeammateAccess`
3654
- .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
3655
- .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
2622
+ assertParamExists('removeTeammate', 'orgId', orgId)
2623
+ const localVarPath = `/orgs/{orgId}/roleAssignments/remove`
2624
+ .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
3656
2625
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3657
2626
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3658
2627
  let baseOptions;
@@ -3674,7 +2643,7 @@ export const RoleAssignmentApiAxiosParamCreator = function (configuration?: Conf
3674
2643
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3675
2644
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3676
2645
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3677
- localVarRequestOptions.data = serializeDataIfNeeded(v2UiRoleAssignmentRequestBody, localVarRequestOptions, configuration)
2646
+ localVarRequestOptions.data = serializeDataIfNeeded(removeTeammateRequestBody, localVarRequestOptions, configuration)
3678
2647
 
3679
2648
  return {
3680
2649
  url: toPathString(localVarUrlObj),
@@ -3692,133 +2661,45 @@ export const RoleAssignmentApiFp = function(configuration?: Configuration) {
3692
2661
  const localVarAxiosParamCreator = RoleAssignmentApiAxiosParamCreator(configuration)
3693
2662
  return {
3694
2663
  /**
3695
- * Assigns a specified role to a given principal (user, group, etc.)
3696
- * @summary Assign Role to Principal
3697
- * @param {string} orgId
3698
- * @param {AssignRoleRequestBody} [assignRoleRequestBody]
3699
- * @param {*} [options] Override http request option.
3700
- * @throws {RequiredError}
3701
- */
3702
- async assignRoleToPrincipal(orgId: string, assignRoleRequestBody?: AssignRoleRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssignRoleSuccessResponse>> {
3703
- const localVarAxiosArgs = await localVarAxiosParamCreator.assignRoleToPrincipal(orgId, assignRoleRequestBody, options);
3704
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3705
- const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.assignRoleToPrincipal']?.[localVarOperationServerIndex]?.url;
3706
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3707
- },
3708
- /**
3709
- * Get the active roles for a given principal
3710
- * @summary Get Principal Roles
3711
- * @param {string} orgId
3712
- * @param {GetPrincipalRolesRequestBody} [getPrincipalRolesRequestBody]
3713
- * @param {*} [options] Override http request option.
3714
- * @throws {RequiredError}
3715
- */
3716
- async getPrincipalRoles(orgId: string, getPrincipalRolesRequestBody?: GetPrincipalRolesRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPrincipalRolesSuccessResponse>> {
3717
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPrincipalRoles(orgId, getPrincipalRolesRequestBody, options);
3718
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3719
- const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.getPrincipalRoles']?.[localVarOperationServerIndex]?.url;
3720
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3721
- },
3722
- /**
3723
- * Grant teammate app access and underlying permissions for a user being assigned within a brand for the first time. Email and name are persisted on first assignment only and must be supplied here.
3724
- * @summary Grant teammate access to a new user
3725
- * @param {string} orgId
3726
- * @param {string} userId Target Flipdish user id (numeric string)
3727
- * @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
3728
- * @param {*} [options] Override http request option.
3729
- * @throws {RequiredError}
3730
- */
3731
- async grantTeammateAccess(orgId: string, userId: string, grantTeammateAccessRequestBody?: GrantTeammateAccessRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TeammateAccessSuccessResponse>> {
3732
- const localVarAxiosArgs = await localVarAxiosParamCreator.grantTeammateAccess(orgId, userId, grantTeammateAccessRequestBody, options);
3733
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3734
- const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.grantTeammateAccess']?.[localVarOperationServerIndex]?.url;
3735
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3736
- },
3737
- /**
3738
- * Apply a v2 UI role assignment without invoking legacy teammate/Zeus role assignment flows.
3739
- * @summary Grant v2 teammate access to a user
2664
+ * Apply a role assignment for the target user without invoking legacy teammate/Zeus role assignment flows.
2665
+ * @summary Apply role assignment
3740
2666
  * @param {string} orgId
3741
- * @param {string} userId Target Flipdish user id (numeric string)
3742
- * @param {V2UiRoleAssignmentRequestBody} [v2UiRoleAssignmentRequestBody]
2667
+ * @param {RoleAssignmentRequestBody} [roleAssignmentRequestBody]
3743
2668
  * @param {*} [options] Override http request option.
3744
2669
  * @throws {RequiredError}
3745
2670
  */
3746
- async grantTeammateAccessV2(orgId: string, userId: string, v2UiRoleAssignmentRequestBody?: V2UiRoleAssignmentRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TeammateAccessSuccessResponse>> {
3747
- const localVarAxiosArgs = await localVarAxiosParamCreator.grantTeammateAccessV2(orgId, userId, v2UiRoleAssignmentRequestBody, options);
2671
+ async applyRoleAssignment(orgId: string, roleAssignmentRequestBody?: RoleAssignmentRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoleAssignmentSuccessResponse>> {
2672
+ const localVarAxiosArgs = await localVarAxiosParamCreator.applyRoleAssignment(orgId, roleAssignmentRequestBody, options);
3748
2673
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3749
- const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.grantTeammateAccessV2']?.[localVarOperationServerIndex]?.url;
2674
+ const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.applyRoleAssignment']?.[localVarOperationServerIndex]?.url;
3750
2675
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3751
2676
  },
3752
2677
  /**
3753
- * Rematerializes a V2 role assignment and applies the resulting policy assignments
3754
- * @summary Rematerialize V2 Role Assignment
2678
+ * Rematerializes a role assignment and applies the resulting policy assignments
2679
+ * @summary Rematerialize Role Assignment
3755
2680
  * @param {string} orgId
3756
- * @param {RematerializeRoleAssignmentV2RequestBody} [rematerializeRoleAssignmentV2RequestBody]
2681
+ * @param {RematerializeRoleAssignmentRequestBody} [rematerializeRoleAssignmentRequestBody]
3757
2682
  * @param {*} [options] Override http request option.
3758
2683
  * @throws {RequiredError}
3759
2684
  */
3760
- async rematerializeRoleAssignmentV2(orgId: string, rematerializeRoleAssignmentV2RequestBody?: RematerializeRoleAssignmentV2RequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RematerializeRoleAssignmentV2SuccessResponse>> {
3761
- const localVarAxiosArgs = await localVarAxiosParamCreator.rematerializeRoleAssignmentV2(orgId, rematerializeRoleAssignmentV2RequestBody, options);
2685
+ async rematerializeRoleAssignmentV2(orgId: string, rematerializeRoleAssignmentRequestBody?: RematerializeRoleAssignmentRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RematerializeRoleAssignmentSuccessResponse>> {
2686
+ const localVarAxiosArgs = await localVarAxiosParamCreator.rematerializeRoleAssignmentV2(orgId, rematerializeRoleAssignmentRequestBody, options);
3762
2687
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3763
2688
  const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.rematerializeRoleAssignmentV2']?.[localVarOperationServerIndex]?.url;
3764
2689
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3765
2690
  },
3766
2691
  /**
3767
- * Revokes a forbidden role from a given principal (user, group, etc.)
3768
- * @summary Revoke Forbidden Role from Principal
3769
- * @param {string} orgId
3770
- * @param {RevokeForbiddenRoleRequestBody} [revokeForbiddenRoleRequestBody]
3771
- * @param {*} [options] Override http request option.
3772
- * @throws {RequiredError}
3773
- */
3774
- async revokeForbiddenRoleFromPrincipal(orgId: string, revokeForbiddenRoleRequestBody?: RevokeForbiddenRoleRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RevokeRoleSuccessResponse>> {
3775
- const localVarAxiosArgs = await localVarAxiosParamCreator.revokeForbiddenRoleFromPrincipal(orgId, revokeForbiddenRoleRequestBody, options);
3776
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3777
- const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.revokeForbiddenRoleFromPrincipal']?.[localVarOperationServerIndex]?.url;
3778
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3779
- },
3780
- /**
3781
- * Revokes a specified role from a given principal (user, group, etc.)
3782
- * @summary Revoke Role from Principal
3783
- * @param {string} orgId
3784
- * @param {RevokeRoleRequestBody} [revokeRoleRequestBody]
3785
- * @param {*} [options] Override http request option.
3786
- * @throws {RequiredError}
3787
- */
3788
- async revokeRoleFromPrincipal(orgId: string, revokeRoleRequestBody?: RevokeRoleRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RevokeRoleSuccessResponse>> {
3789
- const localVarAxiosArgs = await localVarAxiosParamCreator.revokeRoleFromPrincipal(orgId, revokeRoleRequestBody, options);
3790
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3791
- const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.revokeRoleFromPrincipal']?.[localVarOperationServerIndex]?.url;
3792
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3793
- },
3794
- /**
3795
- * Update teammate app access and underlying permissions for an existing teammate. The user must already have been granted access for this brand. Email and name are not accepted on update; existing values are reused. Returns 404 if no existing assignment is found.
3796
- * @summary Update teammate access for an existing user
3797
- * @param {string} orgId
3798
- * @param {string} userId Target Flipdish user id (numeric string)
3799
- * @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
3800
- * @param {*} [options] Override http request option.
3801
- * @throws {RequiredError}
3802
- */
3803
- async updateTeammateAccess(orgId: string, userId: string, updateTeammateAccessRequestBody?: UpdateTeammateAccessRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TeammateAccessSuccessResponse>> {
3804
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateTeammateAccess(orgId, userId, updateTeammateAccessRequestBody, options);
3805
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3806
- const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.updateTeammateAccess']?.[localVarOperationServerIndex]?.url;
3807
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3808
- },
3809
- /**
3810
- * Apply a v2 UI role assignment without invoking legacy teammate/Zeus role assignment flows.
3811
- * @summary Update v2 teammate access for a user
2692
+ * Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
2693
+ * @summary Remove teammate
3812
2694
  * @param {string} orgId
3813
- * @param {string} userId Target Flipdish user id (numeric string)
3814
- * @param {V2UiRoleAssignmentRequestBody} [v2UiRoleAssignmentRequestBody]
2695
+ * @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
3815
2696
  * @param {*} [options] Override http request option.
3816
2697
  * @throws {RequiredError}
3817
2698
  */
3818
- async updateTeammateAccessV2(orgId: string, userId: string, v2UiRoleAssignmentRequestBody?: V2UiRoleAssignmentRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TeammateAccessSuccessResponse>> {
3819
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateTeammateAccessV2(orgId, userId, v2UiRoleAssignmentRequestBody, options);
2699
+ async removeTeammate(orgId: string, removeTeammateRequestBody?: RemoveTeammateRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RemoveTeammateSuccessResponse>> {
2700
+ const localVarAxiosArgs = await localVarAxiosParamCreator.removeTeammate(orgId, removeTeammateRequestBody, options);
3820
2701
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3821
- const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.updateTeammateAccessV2']?.[localVarOperationServerIndex]?.url;
2702
+ const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.removeTeammate']?.[localVarOperationServerIndex]?.url;
3822
2703
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3823
2704
  },
3824
2705
  }
@@ -3832,107 +2713,37 @@ export const RoleAssignmentApiFactory = function (configuration?: Configuration,
3832
2713
  const localVarFp = RoleAssignmentApiFp(configuration)
3833
2714
  return {
3834
2715
  /**
3835
- * Assigns a specified role to a given principal (user, group, etc.)
3836
- * @summary Assign Role to Principal
3837
- * @param {string} orgId
3838
- * @param {AssignRoleRequestBody} [assignRoleRequestBody]
3839
- * @param {*} [options] Override http request option.
3840
- * @throws {RequiredError}
3841
- */
3842
- assignRoleToPrincipal(orgId: string, assignRoleRequestBody?: AssignRoleRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<AssignRoleSuccessResponse> {
3843
- return localVarFp.assignRoleToPrincipal(orgId, assignRoleRequestBody, options).then((request) => request(axios, basePath));
3844
- },
3845
- /**
3846
- * Get the active roles for a given principal
3847
- * @summary Get Principal Roles
2716
+ * Apply a role assignment for the target user without invoking legacy teammate/Zeus role assignment flows.
2717
+ * @summary Apply role assignment
3848
2718
  * @param {string} orgId
3849
- * @param {GetPrincipalRolesRequestBody} [getPrincipalRolesRequestBody]
2719
+ * @param {RoleAssignmentRequestBody} [roleAssignmentRequestBody]
3850
2720
  * @param {*} [options] Override http request option.
3851
2721
  * @throws {RequiredError}
3852
2722
  */
3853
- getPrincipalRoles(orgId: string, getPrincipalRolesRequestBody?: GetPrincipalRolesRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<GetPrincipalRolesSuccessResponse> {
3854
- return localVarFp.getPrincipalRoles(orgId, getPrincipalRolesRequestBody, options).then((request) => request(axios, basePath));
2723
+ applyRoleAssignment(orgId: string, roleAssignmentRequestBody?: RoleAssignmentRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<RoleAssignmentSuccessResponse> {
2724
+ return localVarFp.applyRoleAssignment(orgId, roleAssignmentRequestBody, options).then((request) => request(axios, basePath));
3855
2725
  },
3856
2726
  /**
3857
- * Grant teammate app access and underlying permissions for a user being assigned within a brand for the first time. Email and name are persisted on first assignment only and must be supplied here.
3858
- * @summary Grant teammate access to a new user
2727
+ * Rematerializes a role assignment and applies the resulting policy assignments
2728
+ * @summary Rematerialize Role Assignment
3859
2729
  * @param {string} orgId
3860
- * @param {string} userId Target Flipdish user id (numeric string)
3861
- * @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
2730
+ * @param {RematerializeRoleAssignmentRequestBody} [rematerializeRoleAssignmentRequestBody]
3862
2731
  * @param {*} [options] Override http request option.
3863
2732
  * @throws {RequiredError}
3864
2733
  */
3865
- grantTeammateAccess(orgId: string, userId: string, grantTeammateAccessRequestBody?: GrantTeammateAccessRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<TeammateAccessSuccessResponse> {
3866
- return localVarFp.grantTeammateAccess(orgId, userId, grantTeammateAccessRequestBody, options).then((request) => request(axios, basePath));
2734
+ rematerializeRoleAssignmentV2(orgId: string, rematerializeRoleAssignmentRequestBody?: RematerializeRoleAssignmentRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<RematerializeRoleAssignmentSuccessResponse> {
2735
+ return localVarFp.rematerializeRoleAssignmentV2(orgId, rematerializeRoleAssignmentRequestBody, options).then((request) => request(axios, basePath));
3867
2736
  },
3868
2737
  /**
3869
- * Apply a v2 UI role assignment without invoking legacy teammate/Zeus role assignment flows.
3870
- * @summary Grant v2 teammate access to a user
2738
+ * Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
2739
+ * @summary Remove teammate
3871
2740
  * @param {string} orgId
3872
- * @param {string} userId Target Flipdish user id (numeric string)
3873
- * @param {V2UiRoleAssignmentRequestBody} [v2UiRoleAssignmentRequestBody]
2741
+ * @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
3874
2742
  * @param {*} [options] Override http request option.
3875
2743
  * @throws {RequiredError}
3876
2744
  */
3877
- grantTeammateAccessV2(orgId: string, userId: string, v2UiRoleAssignmentRequestBody?: V2UiRoleAssignmentRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<TeammateAccessSuccessResponse> {
3878
- return localVarFp.grantTeammateAccessV2(orgId, userId, v2UiRoleAssignmentRequestBody, options).then((request) => request(axios, basePath));
3879
- },
3880
- /**
3881
- * Rematerializes a V2 role assignment and applies the resulting policy assignments
3882
- * @summary Rematerialize V2 Role Assignment
3883
- * @param {string} orgId
3884
- * @param {RematerializeRoleAssignmentV2RequestBody} [rematerializeRoleAssignmentV2RequestBody]
3885
- * @param {*} [options] Override http request option.
3886
- * @throws {RequiredError}
3887
- */
3888
- rematerializeRoleAssignmentV2(orgId: string, rematerializeRoleAssignmentV2RequestBody?: RematerializeRoleAssignmentV2RequestBody, options?: RawAxiosRequestConfig): AxiosPromise<RematerializeRoleAssignmentV2SuccessResponse> {
3889
- return localVarFp.rematerializeRoleAssignmentV2(orgId, rematerializeRoleAssignmentV2RequestBody, options).then((request) => request(axios, basePath));
3890
- },
3891
- /**
3892
- * Revokes a forbidden role from a given principal (user, group, etc.)
3893
- * @summary Revoke Forbidden Role from Principal
3894
- * @param {string} orgId
3895
- * @param {RevokeForbiddenRoleRequestBody} [revokeForbiddenRoleRequestBody]
3896
- * @param {*} [options] Override http request option.
3897
- * @throws {RequiredError}
3898
- */
3899
- revokeForbiddenRoleFromPrincipal(orgId: string, revokeForbiddenRoleRequestBody?: RevokeForbiddenRoleRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<RevokeRoleSuccessResponse> {
3900
- return localVarFp.revokeForbiddenRoleFromPrincipal(orgId, revokeForbiddenRoleRequestBody, options).then((request) => request(axios, basePath));
3901
- },
3902
- /**
3903
- * Revokes a specified role from a given principal (user, group, etc.)
3904
- * @summary Revoke Role from Principal
3905
- * @param {string} orgId
3906
- * @param {RevokeRoleRequestBody} [revokeRoleRequestBody]
3907
- * @param {*} [options] Override http request option.
3908
- * @throws {RequiredError}
3909
- */
3910
- revokeRoleFromPrincipal(orgId: string, revokeRoleRequestBody?: RevokeRoleRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<RevokeRoleSuccessResponse> {
3911
- return localVarFp.revokeRoleFromPrincipal(orgId, revokeRoleRequestBody, options).then((request) => request(axios, basePath));
3912
- },
3913
- /**
3914
- * Update teammate app access and underlying permissions for an existing teammate. The user must already have been granted access for this brand. Email and name are not accepted on update; existing values are reused. Returns 404 if no existing assignment is found.
3915
- * @summary Update teammate access for an existing user
3916
- * @param {string} orgId
3917
- * @param {string} userId Target Flipdish user id (numeric string)
3918
- * @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
3919
- * @param {*} [options] Override http request option.
3920
- * @throws {RequiredError}
3921
- */
3922
- updateTeammateAccess(orgId: string, userId: string, updateTeammateAccessRequestBody?: UpdateTeammateAccessRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<TeammateAccessSuccessResponse> {
3923
- return localVarFp.updateTeammateAccess(orgId, userId, updateTeammateAccessRequestBody, options).then((request) => request(axios, basePath));
3924
- },
3925
- /**
3926
- * Apply a v2 UI role assignment without invoking legacy teammate/Zeus role assignment flows.
3927
- * @summary Update v2 teammate access for a user
3928
- * @param {string} orgId
3929
- * @param {string} userId Target Flipdish user id (numeric string)
3930
- * @param {V2UiRoleAssignmentRequestBody} [v2UiRoleAssignmentRequestBody]
3931
- * @param {*} [options] Override http request option.
3932
- * @throws {RequiredError}
3933
- */
3934
- updateTeammateAccessV2(orgId: string, userId: string, v2UiRoleAssignmentRequestBody?: V2UiRoleAssignmentRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<TeammateAccessSuccessResponse> {
3935
- return localVarFp.updateTeammateAccessV2(orgId, userId, v2UiRoleAssignmentRequestBody, options).then((request) => request(axios, basePath));
2745
+ removeTeammate(orgId: string, removeTeammateRequestBody?: RemoveTeammateRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<RemoveTeammateSuccessResponse> {
2746
+ return localVarFp.removeTeammate(orgId, removeTeammateRequestBody, options).then((request) => request(axios, basePath));
3936
2747
  },
3937
2748
  };
3938
2749
  };
@@ -3945,124 +2756,42 @@ export const RoleAssignmentApiFactory = function (configuration?: Configuration,
3945
2756
  */
3946
2757
  export class RoleAssignmentApi extends BaseAPI {
3947
2758
  /**
3948
- * Assigns a specified role to a given principal (user, group, etc.)
3949
- * @summary Assign Role to Principal
3950
- * @param {string} orgId
3951
- * @param {AssignRoleRequestBody} [assignRoleRequestBody]
3952
- * @param {*} [options] Override http request option.
3953
- * @throws {RequiredError}
3954
- * @memberof RoleAssignmentApi
3955
- */
3956
- public assignRoleToPrincipal(orgId: string, assignRoleRequestBody?: AssignRoleRequestBody, options?: RawAxiosRequestConfig) {
3957
- return RoleAssignmentApiFp(this.configuration).assignRoleToPrincipal(orgId, assignRoleRequestBody, options).then((request) => request(this.axios, this.basePath));
3958
- }
3959
-
3960
- /**
3961
- * Get the active roles for a given principal
3962
- * @summary Get Principal Roles
3963
- * @param {string} orgId
3964
- * @param {GetPrincipalRolesRequestBody} [getPrincipalRolesRequestBody]
3965
- * @param {*} [options] Override http request option.
3966
- * @throws {RequiredError}
3967
- * @memberof RoleAssignmentApi
3968
- */
3969
- public getPrincipalRoles(orgId: string, getPrincipalRolesRequestBody?: GetPrincipalRolesRequestBody, options?: RawAxiosRequestConfig) {
3970
- return RoleAssignmentApiFp(this.configuration).getPrincipalRoles(orgId, getPrincipalRolesRequestBody, options).then((request) => request(this.axios, this.basePath));
3971
- }
3972
-
3973
- /**
3974
- * Grant teammate app access and underlying permissions for a user being assigned within a brand for the first time. Email and name are persisted on first assignment only and must be supplied here.
3975
- * @summary Grant teammate access to a new user
3976
- * @param {string} orgId
3977
- * @param {string} userId Target Flipdish user id (numeric string)
3978
- * @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
3979
- * @param {*} [options] Override http request option.
3980
- * @throws {RequiredError}
3981
- * @memberof RoleAssignmentApi
3982
- */
3983
- public grantTeammateAccess(orgId: string, userId: string, grantTeammateAccessRequestBody?: GrantTeammateAccessRequestBody, options?: RawAxiosRequestConfig) {
3984
- return RoleAssignmentApiFp(this.configuration).grantTeammateAccess(orgId, userId, grantTeammateAccessRequestBody, options).then((request) => request(this.axios, this.basePath));
3985
- }
3986
-
3987
- /**
3988
- * Apply a v2 UI role assignment without invoking legacy teammate/Zeus role assignment flows.
3989
- * @summary Grant v2 teammate access to a user
3990
- * @param {string} orgId
3991
- * @param {string} userId Target Flipdish user id (numeric string)
3992
- * @param {V2UiRoleAssignmentRequestBody} [v2UiRoleAssignmentRequestBody]
3993
- * @param {*} [options] Override http request option.
3994
- * @throws {RequiredError}
3995
- * @memberof RoleAssignmentApi
3996
- */
3997
- public grantTeammateAccessV2(orgId: string, userId: string, v2UiRoleAssignmentRequestBody?: V2UiRoleAssignmentRequestBody, options?: RawAxiosRequestConfig) {
3998
- return RoleAssignmentApiFp(this.configuration).grantTeammateAccessV2(orgId, userId, v2UiRoleAssignmentRequestBody, options).then((request) => request(this.axios, this.basePath));
3999
- }
4000
-
4001
- /**
4002
- * Rematerializes a V2 role assignment and applies the resulting policy assignments
4003
- * @summary Rematerialize V2 Role Assignment
4004
- * @param {string} orgId
4005
- * @param {RematerializeRoleAssignmentV2RequestBody} [rematerializeRoleAssignmentV2RequestBody]
4006
- * @param {*} [options] Override http request option.
4007
- * @throws {RequiredError}
4008
- * @memberof RoleAssignmentApi
4009
- */
4010
- public rematerializeRoleAssignmentV2(orgId: string, rematerializeRoleAssignmentV2RequestBody?: RematerializeRoleAssignmentV2RequestBody, options?: RawAxiosRequestConfig) {
4011
- return RoleAssignmentApiFp(this.configuration).rematerializeRoleAssignmentV2(orgId, rematerializeRoleAssignmentV2RequestBody, options).then((request) => request(this.axios, this.basePath));
4012
- }
4013
-
4014
- /**
4015
- * Revokes a forbidden role from a given principal (user, group, etc.)
4016
- * @summary Revoke Forbidden Role from Principal
4017
- * @param {string} orgId
4018
- * @param {RevokeForbiddenRoleRequestBody} [revokeForbiddenRoleRequestBody]
4019
- * @param {*} [options] Override http request option.
4020
- * @throws {RequiredError}
4021
- * @memberof RoleAssignmentApi
4022
- */
4023
- public revokeForbiddenRoleFromPrincipal(orgId: string, revokeForbiddenRoleRequestBody?: RevokeForbiddenRoleRequestBody, options?: RawAxiosRequestConfig) {
4024
- return RoleAssignmentApiFp(this.configuration).revokeForbiddenRoleFromPrincipal(orgId, revokeForbiddenRoleRequestBody, options).then((request) => request(this.axios, this.basePath));
4025
- }
4026
-
4027
- /**
4028
- * Revokes a specified role from a given principal (user, group, etc.)
4029
- * @summary Revoke Role from Principal
2759
+ * Apply a role assignment for the target user without invoking legacy teammate/Zeus role assignment flows.
2760
+ * @summary Apply role assignment
4030
2761
  * @param {string} orgId
4031
- * @param {RevokeRoleRequestBody} [revokeRoleRequestBody]
2762
+ * @param {RoleAssignmentRequestBody} [roleAssignmentRequestBody]
4032
2763
  * @param {*} [options] Override http request option.
4033
2764
  * @throws {RequiredError}
4034
2765
  * @memberof RoleAssignmentApi
4035
2766
  */
4036
- public revokeRoleFromPrincipal(orgId: string, revokeRoleRequestBody?: RevokeRoleRequestBody, options?: RawAxiosRequestConfig) {
4037
- return RoleAssignmentApiFp(this.configuration).revokeRoleFromPrincipal(orgId, revokeRoleRequestBody, options).then((request) => request(this.axios, this.basePath));
2767
+ public applyRoleAssignment(orgId: string, roleAssignmentRequestBody?: RoleAssignmentRequestBody, options?: RawAxiosRequestConfig) {
2768
+ return RoleAssignmentApiFp(this.configuration).applyRoleAssignment(orgId, roleAssignmentRequestBody, options).then((request) => request(this.axios, this.basePath));
4038
2769
  }
4039
2770
 
4040
2771
  /**
4041
- * Update teammate app access and underlying permissions for an existing teammate. The user must already have been granted access for this brand. Email and name are not accepted on update; existing values are reused. Returns 404 if no existing assignment is found.
4042
- * @summary Update teammate access for an existing user
2772
+ * Rematerializes a role assignment and applies the resulting policy assignments
2773
+ * @summary Rematerialize Role Assignment
4043
2774
  * @param {string} orgId
4044
- * @param {string} userId Target Flipdish user id (numeric string)
4045
- * @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
2775
+ * @param {RematerializeRoleAssignmentRequestBody} [rematerializeRoleAssignmentRequestBody]
4046
2776
  * @param {*} [options] Override http request option.
4047
2777
  * @throws {RequiredError}
4048
2778
  * @memberof RoleAssignmentApi
4049
2779
  */
4050
- public updateTeammateAccess(orgId: string, userId: string, updateTeammateAccessRequestBody?: UpdateTeammateAccessRequestBody, options?: RawAxiosRequestConfig) {
4051
- return RoleAssignmentApiFp(this.configuration).updateTeammateAccess(orgId, userId, updateTeammateAccessRequestBody, options).then((request) => request(this.axios, this.basePath));
2780
+ public rematerializeRoleAssignmentV2(orgId: string, rematerializeRoleAssignmentRequestBody?: RematerializeRoleAssignmentRequestBody, options?: RawAxiosRequestConfig) {
2781
+ return RoleAssignmentApiFp(this.configuration).rematerializeRoleAssignmentV2(orgId, rematerializeRoleAssignmentRequestBody, options).then((request) => request(this.axios, this.basePath));
4052
2782
  }
4053
2783
 
4054
2784
  /**
4055
- * Apply a v2 UI role assignment without invoking legacy teammate/Zeus role assignment flows.
4056
- * @summary Update v2 teammate access for a user
2785
+ * Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
2786
+ * @summary Remove teammate
4057
2787
  * @param {string} orgId
4058
- * @param {string} userId Target Flipdish user id (numeric string)
4059
- * @param {V2UiRoleAssignmentRequestBody} [v2UiRoleAssignmentRequestBody]
2788
+ * @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
4060
2789
  * @param {*} [options] Override http request option.
4061
2790
  * @throws {RequiredError}
4062
2791
  * @memberof RoleAssignmentApi
4063
2792
  */
4064
- public updateTeammateAccessV2(orgId: string, userId: string, v2UiRoleAssignmentRequestBody?: V2UiRoleAssignmentRequestBody, options?: RawAxiosRequestConfig) {
4065
- return RoleAssignmentApiFp(this.configuration).updateTeammateAccessV2(orgId, userId, v2UiRoleAssignmentRequestBody, options).then((request) => request(this.axios, this.basePath));
2793
+ public removeTeammate(orgId: string, removeTeammateRequestBody?: RemoveTeammateRequestBody, options?: RawAxiosRequestConfig) {
2794
+ return RoleAssignmentApiFp(this.configuration).removeTeammate(orgId, removeTeammateRequestBody, options).then((request) => request(this.axios, this.basePath));
4066
2795
  }
4067
2796
  }
4068
2797
 
@@ -4102,80 +2831,6 @@ export const UserManagementApiAxiosParamCreator = function (configuration?: Conf
4102
2831
 
4103
2832
 
4104
2833
 
4105
- setSearchParams(localVarUrlObj, localVarQueryParameter);
4106
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4107
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4108
-
4109
- return {
4110
- url: toPathString(localVarUrlObj),
4111
- options: localVarRequestOptions,
4112
- };
4113
- },
4114
- /**
4115
- * List the users in a given org for the v2 control plane UI
4116
- * @summary List Users in Org V2
4117
- * @param {string} orgId
4118
- * @param {*} [options] Override http request option.
4119
- * @throws {RequiredError}
4120
- */
4121
- listUsersInOrgV2: async (orgId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4122
- // verify required parameter 'orgId' is not null or undefined
4123
- assertParamExists('listUsersInOrgV2', 'orgId', orgId)
4124
- const localVarPath = `/v2/orgs/{orgId}/users`
4125
- .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
4126
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4127
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4128
- let baseOptions;
4129
- if (configuration) {
4130
- baseOptions = configuration.baseOptions;
4131
- }
4132
-
4133
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4134
- const localVarHeaderParameter = {} as any;
4135
- const localVarQueryParameter = {} as any;
4136
-
4137
- // authentication ApiKeyAuth required
4138
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
4139
-
4140
-
4141
-
4142
- setSearchParams(localVarUrlObj, localVarQueryParameter);
4143
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4144
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4145
-
4146
- return {
4147
- url: toPathString(localVarUrlObj),
4148
- options: localVarRequestOptions,
4149
- };
4150
- },
4151
- /**
4152
- * Same principals as list users, plus roleDisplay and isCustomised per principal (extra Dynamo reads for compensating roles and granular assignments).
4153
- * @summary List Users in Org with teammate permission summary
4154
- * @param {string} orgId
4155
- * @param {*} [options] Override http request option.
4156
- * @throws {RequiredError}
4157
- */
4158
- listUsersInOrgWithTeammatePermissionSummary: async (orgId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4159
- // verify required parameter 'orgId' is not null or undefined
4160
- assertParamExists('listUsersInOrgWithTeammatePermissionSummary', 'orgId', orgId)
4161
- const localVarPath = `/orgs/{orgId}/users/teammatePermissionSummary`
4162
- .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
4163
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4164
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4165
- let baseOptions;
4166
- if (configuration) {
4167
- baseOptions = configuration.baseOptions;
4168
- }
4169
-
4170
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4171
- const localVarHeaderParameter = {} as any;
4172
- const localVarQueryParameter = {} as any;
4173
-
4174
- // authentication ApiKeyAuth required
4175
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
4176
-
4177
-
4178
-
4179
2834
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4180
2835
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4181
2836
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -4203,35 +2858,9 @@ export const UserManagementApiFp = function(configuration?: Configuration) {
4203
2858
  * @throws {RequiredError}
4204
2859
  */
4205
2860
  async listUsersInOrg(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrincipalsInOrgResponse>> {
4206
- const localVarAxiosArgs = await localVarAxiosParamCreator.listUsersInOrg(orgId, options);
4207
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4208
- const localVarOperationServerBasePath = operationServerMap['UserManagementApi.listUsersInOrg']?.[localVarOperationServerIndex]?.url;
4209
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4210
- },
4211
- /**
4212
- * List the users in a given org for the v2 control plane UI
4213
- * @summary List Users in Org V2
4214
- * @param {string} orgId
4215
- * @param {*} [options] Override http request option.
4216
- * @throws {RequiredError}
4217
- */
4218
- async listUsersInOrgV2(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrincipalsInOrgResponse>> {
4219
- const localVarAxiosArgs = await localVarAxiosParamCreator.listUsersInOrgV2(orgId, options);
4220
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4221
- const localVarOperationServerBasePath = operationServerMap['UserManagementApi.listUsersInOrgV2']?.[localVarOperationServerIndex]?.url;
4222
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4223
- },
4224
- /**
4225
- * Same principals as list users, plus roleDisplay and isCustomised per principal (extra Dynamo reads for compensating roles and granular assignments).
4226
- * @summary List Users in Org with teammate permission summary
4227
- * @param {string} orgId
4228
- * @param {*} [options] Override http request option.
4229
- * @throws {RequiredError}
4230
- */
4231
- async listUsersInOrgWithTeammatePermissionSummary(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrincipalsInOrgWithTeammatePermissionSummaryResponse>> {
4232
- const localVarAxiosArgs = await localVarAxiosParamCreator.listUsersInOrgWithTeammatePermissionSummary(orgId, options);
2861
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listUsersInOrg(orgId, options);
4233
2862
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4234
- const localVarOperationServerBasePath = operationServerMap['UserManagementApi.listUsersInOrgWithTeammatePermissionSummary']?.[localVarOperationServerIndex]?.url;
2863
+ const localVarOperationServerBasePath = operationServerMap['UserManagementApi.listUsersInOrg']?.[localVarOperationServerIndex]?.url;
4235
2864
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4236
2865
  },
4237
2866
  }
@@ -4254,26 +2883,6 @@ export const UserManagementApiFactory = function (configuration?: Configuration,
4254
2883
  listUsersInOrg(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<PrincipalsInOrgResponse> {
4255
2884
  return localVarFp.listUsersInOrg(orgId, options).then((request) => request(axios, basePath));
4256
2885
  },
4257
- /**
4258
- * List the users in a given org for the v2 control plane UI
4259
- * @summary List Users in Org V2
4260
- * @param {string} orgId
4261
- * @param {*} [options] Override http request option.
4262
- * @throws {RequiredError}
4263
- */
4264
- listUsersInOrgV2(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<PrincipalsInOrgResponse> {
4265
- return localVarFp.listUsersInOrgV2(orgId, options).then((request) => request(axios, basePath));
4266
- },
4267
- /**
4268
- * Same principals as list users, plus roleDisplay and isCustomised per principal (extra Dynamo reads for compensating roles and granular assignments).
4269
- * @summary List Users in Org with teammate permission summary
4270
- * @param {string} orgId
4271
- * @param {*} [options] Override http request option.
4272
- * @throws {RequiredError}
4273
- */
4274
- listUsersInOrgWithTeammatePermissionSummary(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<PrincipalsInOrgWithTeammatePermissionSummaryResponse> {
4275
- return localVarFp.listUsersInOrgWithTeammatePermissionSummary(orgId, options).then((request) => request(axios, basePath));
4276
- },
4277
2886
  };
4278
2887
  };
4279
2888
 
@@ -4295,30 +2904,6 @@ export class UserManagementApi extends BaseAPI {
4295
2904
  public listUsersInOrg(orgId: string, options?: RawAxiosRequestConfig) {
4296
2905
  return UserManagementApiFp(this.configuration).listUsersInOrg(orgId, options).then((request) => request(this.axios, this.basePath));
4297
2906
  }
4298
-
4299
- /**
4300
- * List the users in a given org for the v2 control plane UI
4301
- * @summary List Users in Org V2
4302
- * @param {string} orgId
4303
- * @param {*} [options] Override http request option.
4304
- * @throws {RequiredError}
4305
- * @memberof UserManagementApi
4306
- */
4307
- public listUsersInOrgV2(orgId: string, options?: RawAxiosRequestConfig) {
4308
- return UserManagementApiFp(this.configuration).listUsersInOrgV2(orgId, options).then((request) => request(this.axios, this.basePath));
4309
- }
4310
-
4311
- /**
4312
- * Same principals as list users, plus roleDisplay and isCustomised per principal (extra Dynamo reads for compensating roles and granular assignments).
4313
- * @summary List Users in Org with teammate permission summary
4314
- * @param {string} orgId
4315
- * @param {*} [options] Override http request option.
4316
- * @throws {RequiredError}
4317
- * @memberof UserManagementApi
4318
- */
4319
- public listUsersInOrgWithTeammatePermissionSummary(orgId: string, options?: RawAxiosRequestConfig) {
4320
- return UserManagementApiFp(this.configuration).listUsersInOrgWithTeammatePermissionSummary(orgId, options).then((request) => request(this.axios, this.basePath));
4321
- }
4322
2907
  }
4323
2908
 
4324
2909
 
@@ -4330,7 +2915,7 @@ export class UserManagementApi extends BaseAPI {
4330
2915
  export const UserPermissionsApiAxiosParamCreator = function (configuration?: Configuration) {
4331
2916
  return {
4332
2917
  /**
4333
- * List the available permissions for the current user
2918
+ * List the current permission assignments in the org
4334
2919
  * @summary List Org Permissions
4335
2920
  * @param {string} orgId
4336
2921
  * @param {*} [options] Override http request option.
@@ -4367,44 +2952,7 @@ export const UserPermissionsApiAxiosParamCreator = function (configuration?: Con
4367
2952
  };
4368
2953
  },
4369
2954
  /**
4370
- * List the v2 materialized permissions for an org
4371
- * @summary List Org Permissions V2
4372
- * @param {string} orgId
4373
- * @param {*} [options] Override http request option.
4374
- * @throws {RequiredError}
4375
- */
4376
- listOrgPermissionsV2: async (orgId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4377
- // verify required parameter 'orgId' is not null or undefined
4378
- assertParamExists('listOrgPermissionsV2', 'orgId', orgId)
4379
- const localVarPath = `/v2/orgs/{orgId}/permissions`
4380
- .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
4381
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4382
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4383
- let baseOptions;
4384
- if (configuration) {
4385
- baseOptions = configuration.baseOptions;
4386
- }
4387
-
4388
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4389
- const localVarHeaderParameter = {} as any;
4390
- const localVarQueryParameter = {} as any;
4391
-
4392
- // authentication ApiKeyAuth required
4393
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
4394
-
4395
-
4396
-
4397
- setSearchParams(localVarUrlObj, localVarQueryParameter);
4398
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4399
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4400
-
4401
- return {
4402
- url: toPathString(localVarUrlObj),
4403
- options: localVarRequestOptions,
4404
- };
4405
- },
4406
- /**
4407
- * List the available roles for the current user
2955
+ * List the current roles assignments in the org
4408
2956
  * @summary List Org Roles
4409
2957
  * @param {string} orgId
4410
2958
  * @param {*} [options] Override http request option.
@@ -4431,43 +2979,6 @@ export const UserPermissionsApiAxiosParamCreator = function (configuration?: Con
4431
2979
 
4432
2980
 
4433
2981
 
4434
- setSearchParams(localVarUrlObj, localVarQueryParameter);
4435
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4436
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4437
-
4438
- return {
4439
- url: toPathString(localVarUrlObj),
4440
- options: localVarRequestOptions,
4441
- };
4442
- },
4443
- /**
4444
- * List the v2 role assignments for an org
4445
- * @summary List Org Roles V2
4446
- * @param {string} orgId
4447
- * @param {*} [options] Override http request option.
4448
- * @throws {RequiredError}
4449
- */
4450
- listOrgRolesV2: async (orgId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4451
- // verify required parameter 'orgId' is not null or undefined
4452
- assertParamExists('listOrgRolesV2', 'orgId', orgId)
4453
- const localVarPath = `/v2/orgs/{orgId}/roles`
4454
- .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
4455
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4456
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4457
- let baseOptions;
4458
- if (configuration) {
4459
- baseOptions = configuration.baseOptions;
4460
- }
4461
-
4462
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4463
- const localVarHeaderParameter = {} as any;
4464
- const localVarQueryParameter = {} as any;
4465
-
4466
- // authentication ApiKeyAuth required
4467
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
4468
-
4469
-
4470
-
4471
2982
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4472
2983
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4473
2984
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -4505,43 +3016,6 @@ export const UserPermissionsApiAxiosParamCreator = function (configuration?: Con
4505
3016
 
4506
3017
 
4507
3018
 
4508
- setSearchParams(localVarUrlObj, localVarQueryParameter);
4509
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4510
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4511
-
4512
- return {
4513
- url: toPathString(localVarUrlObj),
4514
- options: localVarRequestOptions,
4515
- };
4516
- },
4517
- /**
4518
- * List the v2 materialized permissions for the current user
4519
- * @summary List Own Permissions V2
4520
- * @param {string} orgId
4521
- * @param {*} [options] Override http request option.
4522
- * @throws {RequiredError}
4523
- */
4524
- listOwnPermissionsV2: async (orgId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4525
- // verify required parameter 'orgId' is not null or undefined
4526
- assertParamExists('listOwnPermissionsV2', 'orgId', orgId)
4527
- const localVarPath = `/v2/orgs/{orgId}/user/permissions`
4528
- .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
4529
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4530
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4531
- let baseOptions;
4532
- if (configuration) {
4533
- baseOptions = configuration.baseOptions;
4534
- }
4535
-
4536
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4537
- const localVarHeaderParameter = {} as any;
4538
- const localVarQueryParameter = {} as any;
4539
-
4540
- // authentication ApiKeyAuth required
4541
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
4542
-
4543
-
4544
-
4545
3019
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4546
3020
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4547
3021
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -4583,47 +3057,6 @@ export const UserPermissionsApiAxiosParamCreator = function (configuration?: Con
4583
3057
 
4584
3058
 
4585
3059
 
4586
- setSearchParams(localVarUrlObj, localVarQueryParameter);
4587
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4588
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4589
-
4590
- return {
4591
- url: toPathString(localVarUrlObj),
4592
- options: localVarRequestOptions,
4593
- };
4594
- },
4595
- /**
4596
- * List the v2 materialized permissions for a given user
4597
- * @summary List User Permissions V2
4598
- * @param {string} orgId
4599
- * @param {string} userId
4600
- * @param {*} [options] Override http request option.
4601
- * @throws {RequiredError}
4602
- */
4603
- listUserPermissionsV2: async (orgId: string, userId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4604
- // verify required parameter 'orgId' is not null or undefined
4605
- assertParamExists('listUserPermissionsV2', 'orgId', orgId)
4606
- // verify required parameter 'userId' is not null or undefined
4607
- assertParamExists('listUserPermissionsV2', 'userId', userId)
4608
- const localVarPath = `/v2/orgs/{orgId}/user/{userId}/permissions`
4609
- .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
4610
- .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
4611
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4612
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4613
- let baseOptions;
4614
- if (configuration) {
4615
- baseOptions = configuration.baseOptions;
4616
- }
4617
-
4618
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4619
- const localVarHeaderParameter = {} as any;
4620
- const localVarQueryParameter = {} as any;
4621
-
4622
- // authentication ApiKeyAuth required
4623
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
4624
-
4625
-
4626
-
4627
3060
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4628
3061
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4629
3062
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -4644,7 +3077,7 @@ export const UserPermissionsApiFp = function(configuration?: Configuration) {
4644
3077
  const localVarAxiosParamCreator = UserPermissionsApiAxiosParamCreator(configuration)
4645
3078
  return {
4646
3079
  /**
4647
- * List the available permissions for the current user
3080
+ * List the current permission assignments in the org
4648
3081
  * @summary List Org Permissions
4649
3082
  * @param {string} orgId
4650
3083
  * @param {*} [options] Override http request option.
@@ -4657,20 +3090,7 @@ export const UserPermissionsApiFp = function(configuration?: Configuration) {
4657
3090
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4658
3091
  },
4659
3092
  /**
4660
- * List the v2 materialized permissions for an org
4661
- * @summary List Org Permissions V2
4662
- * @param {string} orgId
4663
- * @param {*} [options] Override http request option.
4664
- * @throws {RequiredError}
4665
- */
4666
- async listOrgPermissionsV2(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: { [key: string]: GetUserPermissionsSuccessResponseResourcesValue; }; }>> {
4667
- const localVarAxiosArgs = await localVarAxiosParamCreator.listOrgPermissionsV2(orgId, options);
4668
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4669
- const localVarOperationServerBasePath = operationServerMap['UserPermissionsApi.listOrgPermissionsV2']?.[localVarOperationServerIndex]?.url;
4670
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4671
- },
4672
- /**
4673
- * List the available roles for the current user
3093
+ * List the current roles assignments in the org
4674
3094
  * @summary List Org Roles
4675
3095
  * @param {string} orgId
4676
3096
  * @param {*} [options] Override http request option.
@@ -4682,19 +3102,6 @@ export const UserPermissionsApiFp = function(configuration?: Configuration) {
4682
3102
  const localVarOperationServerBasePath = operationServerMap['UserPermissionsApi.listOrgRoles']?.[localVarOperationServerIndex]?.url;
4683
3103
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4684
3104
  },
4685
- /**
4686
- * List the v2 role assignments for an org
4687
- * @summary List Org Roles V2
4688
- * @param {string} orgId
4689
- * @param {*} [options] Override http request option.
4690
- * @throws {RequiredError}
4691
- */
4692
- async listOrgRolesV2(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: ListOrgRolesSuccessResponseValue; }>> {
4693
- const localVarAxiosArgs = await localVarAxiosParamCreator.listOrgRolesV2(orgId, options);
4694
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4695
- const localVarOperationServerBasePath = operationServerMap['UserPermissionsApi.listOrgRolesV2']?.[localVarOperationServerIndex]?.url;
4696
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4697
- },
4698
3105
  /**
4699
3106
  * List the available permissions for the current user
4700
3107
  * @summary List Own Permissions
@@ -4708,19 +3115,6 @@ export const UserPermissionsApiFp = function(configuration?: Configuration) {
4708
3115
  const localVarOperationServerBasePath = operationServerMap['UserPermissionsApi.listOwnPermissions']?.[localVarOperationServerIndex]?.url;
4709
3116
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4710
3117
  },
4711
- /**
4712
- * List the v2 materialized permissions for the current user
4713
- * @summary List Own Permissions V2
4714
- * @param {string} orgId
4715
- * @param {*} [options] Override http request option.
4716
- * @throws {RequiredError}
4717
- */
4718
- async listOwnPermissionsV2(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUserPermissionsSuccessResponse>> {
4719
- const localVarAxiosArgs = await localVarAxiosParamCreator.listOwnPermissionsV2(orgId, options);
4720
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4721
- const localVarOperationServerBasePath = operationServerMap['UserPermissionsApi.listOwnPermissionsV2']?.[localVarOperationServerIndex]?.url;
4722
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4723
- },
4724
3118
  /**
4725
3119
  * List the available permissions for a given user
4726
3120
  * @summary List User Permissions
@@ -4735,20 +3129,6 @@ export const UserPermissionsApiFp = function(configuration?: Configuration) {
4735
3129
  const localVarOperationServerBasePath = operationServerMap['UserPermissionsApi.listUserPermissions']?.[localVarOperationServerIndex]?.url;
4736
3130
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4737
3131
  },
4738
- /**
4739
- * List the v2 materialized permissions for a given user
4740
- * @summary List User Permissions V2
4741
- * @param {string} orgId
4742
- * @param {string} userId
4743
- * @param {*} [options] Override http request option.
4744
- * @throws {RequiredError}
4745
- */
4746
- async listUserPermissionsV2(orgId: string, userId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUserPermissionsSuccessResponse>> {
4747
- const localVarAxiosArgs = await localVarAxiosParamCreator.listUserPermissionsV2(orgId, userId, options);
4748
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4749
- const localVarOperationServerBasePath = operationServerMap['UserPermissionsApi.listUserPermissionsV2']?.[localVarOperationServerIndex]?.url;
4750
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4751
- },
4752
3132
  }
4753
3133
  };
4754
3134
 
@@ -4760,7 +3140,7 @@ export const UserPermissionsApiFactory = function (configuration?: Configuration
4760
3140
  const localVarFp = UserPermissionsApiFp(configuration)
4761
3141
  return {
4762
3142
  /**
4763
- * List the available permissions for the current user
3143
+ * List the current permission assignments in the org
4764
3144
  * @summary List Org Permissions
4765
3145
  * @param {string} orgId
4766
3146
  * @param {*} [options] Override http request option.
@@ -4770,17 +3150,7 @@ export const UserPermissionsApiFactory = function (configuration?: Configuration
4770
3150
  return localVarFp.listOrgPermissions(orgId, options).then((request) => request(axios, basePath));
4771
3151
  },
4772
3152
  /**
4773
- * List the v2 materialized permissions for an org
4774
- * @summary List Org Permissions V2
4775
- * @param {string} orgId
4776
- * @param {*} [options] Override http request option.
4777
- * @throws {RequiredError}
4778
- */
4779
- listOrgPermissionsV2(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: { [key: string]: GetUserPermissionsSuccessResponseResourcesValue; }; }> {
4780
- return localVarFp.listOrgPermissionsV2(orgId, options).then((request) => request(axios, basePath));
4781
- },
4782
- /**
4783
- * List the available roles for the current user
3153
+ * List the current roles assignments in the org
4784
3154
  * @summary List Org Roles
4785
3155
  * @param {string} orgId
4786
3156
  * @param {*} [options] Override http request option.
@@ -4789,16 +3159,6 @@ export const UserPermissionsApiFactory = function (configuration?: Configuration
4789
3159
  listOrgRoles(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: ListOrgRolesSuccessResponseValue; }> {
4790
3160
  return localVarFp.listOrgRoles(orgId, options).then((request) => request(axios, basePath));
4791
3161
  },
4792
- /**
4793
- * List the v2 role assignments for an org
4794
- * @summary List Org Roles V2
4795
- * @param {string} orgId
4796
- * @param {*} [options] Override http request option.
4797
- * @throws {RequiredError}
4798
- */
4799
- listOrgRolesV2(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: ListOrgRolesSuccessResponseValue; }> {
4800
- return localVarFp.listOrgRolesV2(orgId, options).then((request) => request(axios, basePath));
4801
- },
4802
3162
  /**
4803
3163
  * List the available permissions for the current user
4804
3164
  * @summary List Own Permissions
@@ -4809,16 +3169,6 @@ export const UserPermissionsApiFactory = function (configuration?: Configuration
4809
3169
  listOwnPermissions(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<GetUserPermissionsSuccessResponse> {
4810
3170
  return localVarFp.listOwnPermissions(orgId, options).then((request) => request(axios, basePath));
4811
3171
  },
4812
- /**
4813
- * List the v2 materialized permissions for the current user
4814
- * @summary List Own Permissions V2
4815
- * @param {string} orgId
4816
- * @param {*} [options] Override http request option.
4817
- * @throws {RequiredError}
4818
- */
4819
- listOwnPermissionsV2(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<GetUserPermissionsSuccessResponse> {
4820
- return localVarFp.listOwnPermissionsV2(orgId, options).then((request) => request(axios, basePath));
4821
- },
4822
3172
  /**
4823
3173
  * List the available permissions for a given user
4824
3174
  * @summary List User Permissions
@@ -4830,17 +3180,6 @@ export const UserPermissionsApiFactory = function (configuration?: Configuration
4830
3180
  listUserPermissions(orgId: string, userId: string, options?: RawAxiosRequestConfig): AxiosPromise<GetUserPermissionsSuccessResponse> {
4831
3181
  return localVarFp.listUserPermissions(orgId, userId, options).then((request) => request(axios, basePath));
4832
3182
  },
4833
- /**
4834
- * List the v2 materialized permissions for a given user
4835
- * @summary List User Permissions V2
4836
- * @param {string} orgId
4837
- * @param {string} userId
4838
- * @param {*} [options] Override http request option.
4839
- * @throws {RequiredError}
4840
- */
4841
- listUserPermissionsV2(orgId: string, userId: string, options?: RawAxiosRequestConfig): AxiosPromise<GetUserPermissionsSuccessResponse> {
4842
- return localVarFp.listUserPermissionsV2(orgId, userId, options).then((request) => request(axios, basePath));
4843
- },
4844
3183
  };
4845
3184
  };
4846
3185
 
@@ -4852,7 +3191,7 @@ export const UserPermissionsApiFactory = function (configuration?: Configuration
4852
3191
  */
4853
3192
  export class UserPermissionsApi extends BaseAPI {
4854
3193
  /**
4855
- * List the available permissions for the current user
3194
+ * List the current permission assignments in the org
4856
3195
  * @summary List Org Permissions
4857
3196
  * @param {string} orgId
4858
3197
  * @param {*} [options] Override http request option.
@@ -4864,19 +3203,7 @@ export class UserPermissionsApi extends BaseAPI {
4864
3203
  }
4865
3204
 
4866
3205
  /**
4867
- * List the v2 materialized permissions for an org
4868
- * @summary List Org Permissions V2
4869
- * @param {string} orgId
4870
- * @param {*} [options] Override http request option.
4871
- * @throws {RequiredError}
4872
- * @memberof UserPermissionsApi
4873
- */
4874
- public listOrgPermissionsV2(orgId: string, options?: RawAxiosRequestConfig) {
4875
- return UserPermissionsApiFp(this.configuration).listOrgPermissionsV2(orgId, options).then((request) => request(this.axios, this.basePath));
4876
- }
4877
-
4878
- /**
4879
- * List the available roles for the current user
3206
+ * List the current roles assignments in the org
4880
3207
  * @summary List Org Roles
4881
3208
  * @param {string} orgId
4882
3209
  * @param {*} [options] Override http request option.
@@ -4887,18 +3214,6 @@ export class UserPermissionsApi extends BaseAPI {
4887
3214
  return UserPermissionsApiFp(this.configuration).listOrgRoles(orgId, options).then((request) => request(this.axios, this.basePath));
4888
3215
  }
4889
3216
 
4890
- /**
4891
- * List the v2 role assignments for an org
4892
- * @summary List Org Roles V2
4893
- * @param {string} orgId
4894
- * @param {*} [options] Override http request option.
4895
- * @throws {RequiredError}
4896
- * @memberof UserPermissionsApi
4897
- */
4898
- public listOrgRolesV2(orgId: string, options?: RawAxiosRequestConfig) {
4899
- return UserPermissionsApiFp(this.configuration).listOrgRolesV2(orgId, options).then((request) => request(this.axios, this.basePath));
4900
- }
4901
-
4902
3217
  /**
4903
3218
  * List the available permissions for the current user
4904
3219
  * @summary List Own Permissions
@@ -4911,18 +3226,6 @@ export class UserPermissionsApi extends BaseAPI {
4911
3226
  return UserPermissionsApiFp(this.configuration).listOwnPermissions(orgId, options).then((request) => request(this.axios, this.basePath));
4912
3227
  }
4913
3228
 
4914
- /**
4915
- * List the v2 materialized permissions for the current user
4916
- * @summary List Own Permissions V2
4917
- * @param {string} orgId
4918
- * @param {*} [options] Override http request option.
4919
- * @throws {RequiredError}
4920
- * @memberof UserPermissionsApi
4921
- */
4922
- public listOwnPermissionsV2(orgId: string, options?: RawAxiosRequestConfig) {
4923
- return UserPermissionsApiFp(this.configuration).listOwnPermissionsV2(orgId, options).then((request) => request(this.axios, this.basePath));
4924
- }
4925
-
4926
3229
  /**
4927
3230
  * List the available permissions for a given user
4928
3231
  * @summary List User Permissions
@@ -4935,19 +3238,6 @@ export class UserPermissionsApi extends BaseAPI {
4935
3238
  public listUserPermissions(orgId: string, userId: string, options?: RawAxiosRequestConfig) {
4936
3239
  return UserPermissionsApiFp(this.configuration).listUserPermissions(orgId, userId, options).then((request) => request(this.axios, this.basePath));
4937
3240
  }
4938
-
4939
- /**
4940
- * List the v2 materialized permissions for a given user
4941
- * @summary List User Permissions V2
4942
- * @param {string} orgId
4943
- * @param {string} userId
4944
- * @param {*} [options] Override http request option.
4945
- * @throws {RequiredError}
4946
- * @memberof UserPermissionsApi
4947
- */
4948
- public listUserPermissionsV2(orgId: string, userId: string, options?: RawAxiosRequestConfig) {
4949
- return UserPermissionsApiFp(this.configuration).listUserPermissionsV2(orgId, userId, options).then((request) => request(this.axios, this.basePath));
4950
- }
4951
3241
  }
4952
3242
 
4953
3243