@flipdish/authorization 0.2.33 → 0.2.34-rc.1779194216

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,6 @@
1
1
  .gitignore
2
2
  .npmignore
3
+ .openapi-generator-ignore
3
4
  README.md
4
5
  api.ts
5
6
  base.ts
package/api.ts CHANGED
@@ -1039,6 +1039,12 @@ export interface GrantTeammateAccessRequestBody {
1039
1039
  * @memberof GrantTeammateAccessRequestBody
1040
1040
  */
1041
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>;
1042
1048
  /**
1043
1049
  * Target user email; persisted on first assignment only
1044
1050
  * @type {string}
@@ -1126,114 +1132,162 @@ export interface ListFeatureBasedRolesSuccessResponse {
1126
1132
  /**
1127
1133
  *
1128
1134
  * @export
1129
- * @interface ListOrgRolesSuccessResponseValueValue
1135
+ * @interface ListOrgRolesSuccessResponseValue
1136
+ */
1137
+ export interface ListOrgRolesSuccessResponseValue {
1138
+ /**
1139
+ *
1140
+ * @type {ListOrgRolesSuccessResponseValueAnyOfOrgId}
1141
+ * @memberof ListOrgRolesSuccessResponseValue
1142
+ */
1143
+ 'orgId': ListOrgRolesSuccessResponseValueAnyOfOrgId;
1144
+ /**
1145
+ * List of roles that are assigned to the user in the org
1146
+ * @type {Array<string>}
1147
+ * @memberof ListOrgRolesSuccessResponseValue
1148
+ */
1149
+ 'roles': Array<ListOrgRolesSuccessResponseValueRolesEnum>;
1150
+ /**
1151
+ * Optional permission set keys applied to the roles
1152
+ * @type {Array<string>}
1153
+ * @memberof ListOrgRolesSuccessResponseValue
1154
+ */
1155
+ 'optionalPermissionSetKeys'?: Array<string>;
1156
+ /**
1157
+ * Property IDs the roles are scoped to
1158
+ * @type {Array<string>}
1159
+ * @memberof ListOrgRolesSuccessResponseValue
1160
+ */
1161
+ 'properties'?: Array<string>;
1162
+ /**
1163
+ * Brand IDs the roles are scoped to
1164
+ * @type {Array<string>}
1165
+ * @memberof ListOrgRolesSuccessResponseValue
1166
+ */
1167
+ 'brands'?: Array<string>;
1168
+ /**
1169
+ * Sales channel IDs the roles are scoped to
1170
+ * @type {Array<string>}
1171
+ * @memberof ListOrgRolesSuccessResponseValue
1172
+ */
1173
+ 'salesChannels'?: Array<string>;
1174
+ }
1175
+
1176
+ export const ListOrgRolesSuccessResponseValueRolesEnum = {
1177
+ Owner: 'Owner',
1178
+ PropertyOwner: 'PropertyOwner',
1179
+ ManagedOwner: 'ManagedOwner',
1180
+ Integrator: 'Integrator',
1181
+ PropertyManager: 'PropertyManager',
1182
+ FinanceManager: 'FinanceManager'
1183
+ } as const;
1184
+
1185
+ export type ListOrgRolesSuccessResponseValueRolesEnum = typeof ListOrgRolesSuccessResponseValueRolesEnum[keyof typeof ListOrgRolesSuccessResponseValueRolesEnum];
1186
+
1187
+ /**
1188
+ *
1189
+ * @export
1190
+ * @interface ListOrgRolesSuccessResponseValueAnyOf
1130
1191
  */
1131
- export interface ListOrgRolesSuccessResponseValueValue {
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 the roles are scoped to
1213
+ * @type {Array<string>}
1214
+ * @memberof ListOrgRolesSuccessResponseValueAnyOf
1215
+ */
1216
+ 'properties'?: Array<string>;
1217
+ /**
1218
+ * Brand IDs the roles are scoped to
1219
+ * @type {Array<string>}
1220
+ * @memberof ListOrgRolesSuccessResponseValueAnyOf
1221
+ */
1222
+ 'brands'?: Array<string>;
1223
+ /**
1224
+ * Sales channel IDs the roles are scoped to
1225
+ * @type {Array<string>}
1226
+ * @memberof ListOrgRolesSuccessResponseValueAnyOf
1227
+ */
1228
+ 'salesChannels'?: Array<string>;
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
+ * ID of the org the roles are assigned in
1244
+ * @export
1245
+ * @interface ListOrgRolesSuccessResponseValueAnyOfOrgId
1246
+ */
1247
+ export interface ListOrgRolesSuccessResponseValueAnyOfOrgId {
1248
+ }
1249
+ /**
1250
+ *
1251
+ * @export
1252
+ * @interface ListOrgRolesSuccessResponseValueAnyOfValue
1253
+ */
1254
+ export interface ListOrgRolesSuccessResponseValueAnyOfValue {
1132
1255
  /**
1133
1256
  * Type of resource the permissions are assigned to
1134
1257
  * @type {string}
1135
- * @memberof ListOrgRolesSuccessResponseValueValue
1258
+ * @memberof ListOrgRolesSuccessResponseValueAnyOfValue
1136
1259
  */
1137
- 'resourceType': ListOrgRolesSuccessResponseValueValueResourceTypeEnum;
1260
+ 'resourceType': ListOrgRolesSuccessResponseValueAnyOfValueResourceTypeEnum;
1138
1261
  /**
1139
1262
  *
1140
1263
  * @type {GetUserPermissionsSuccessResponseResourcesValueResourceId}
1141
- * @memberof ListOrgRolesSuccessResponseValueValue
1264
+ * @memberof ListOrgRolesSuccessResponseValueAnyOfValue
1142
1265
  */
1143
1266
  'resourceId': GetUserPermissionsSuccessResponseResourcesValueResourceId;
1144
1267
  /**
1145
1268
  * List of roles that are assigned to the user for the resource
1146
- * @type {Array<string>}
1147
- * @memberof ListOrgRolesSuccessResponseValueValue
1269
+ * @type {Array<ListOrgRolesSuccessResponseValueAnyOfValueRolesInner>}
1270
+ * @memberof ListOrgRolesSuccessResponseValueAnyOfValue
1148
1271
  */
1149
- 'roles': Array<ListOrgRolesSuccessResponseValueValueRolesEnum>;
1272
+ 'roles': Array<ListOrgRolesSuccessResponseValueAnyOfValueRolesInner>;
1150
1273
  }
1151
1274
 
1152
- export const ListOrgRolesSuccessResponseValueValueResourceTypeEnum = {
1275
+ export const ListOrgRolesSuccessResponseValueAnyOfValueResourceTypeEnum = {
1153
1276
  Property: 'Property',
1154
1277
  Org: 'Org',
1155
1278
  Brand: 'Brand',
1156
1279
  SalesChannel: 'SalesChannel'
1157
1280
  } as const;
1158
1281
 
1159
- export type ListOrgRolesSuccessResponseValueValueResourceTypeEnum = typeof ListOrgRolesSuccessResponseValueValueResourceTypeEnum[keyof typeof ListOrgRolesSuccessResponseValueValueResourceTypeEnum];
1160
- export const ListOrgRolesSuccessResponseValueValueRolesEnum = {
1161
- OrgViewer: 'OrgViewer',
1162
- OrgManager: 'OrgManager',
1163
- OrgAdmin: 'OrgAdmin',
1164
- BrandViewer: 'BrandViewer',
1165
- BrandManager: 'BrandManager',
1166
- BrandAdmin: 'BrandAdmin',
1167
- StoreViewer: 'StoreViewer',
1168
- StoreEditor: 'StoreEditor',
1169
- StoreManager: 'StoreManager',
1170
- CustomerViewer: 'CustomerViewer',
1171
- CustomerManager: 'CustomerManager',
1172
- VoucherViewer: 'VoucherViewer',
1173
- VoucherEditor: 'VoucherEditor',
1174
- VoucherManager: 'VoucherManager',
1175
- VoucherCampaignManager: 'VoucherCampaignManager',
1176
- VoucherStatisticsViewer: 'VoucherStatisticsViewer',
1177
- AnalyticsViewer: 'AnalyticsViewer',
1178
- ReportsViewer: 'ReportsViewer',
1179
- FinanceViewer: 'FinanceViewer',
1180
- FinanceManager: 'FinanceManager',
1181
- TeamViewer: 'TeamViewer',
1182
- TeamManager: 'TeamManager',
1183
- TeamAdmin: 'TeamAdmin',
1184
- TechViewer: 'TechViewer',
1185
- TechManager: 'TechManager',
1186
- AppStoreViewer: 'AppStoreViewer',
1187
- AppStoreManager: 'AppStoreManager',
1188
- SalesChannelViewer: 'SalesChannelViewer',
1189
- SalesChannelEditor: 'SalesChannelEditor',
1190
- SalesChannelManager: 'SalesChannelManager',
1191
- DeliveryViewer: 'DeliveryViewer',
1192
- DeliveryManager: 'DeliveryManager',
1193
- DriverManager: 'DriverManager',
1194
- AuditViewer: 'AuditViewer',
1195
- AuditManager: 'AuditManager',
1196
- AccountsViewer: 'AccountsViewer',
1197
- AccountsEditor: 'AccountsEditor',
1198
- DocumentExplorerViewer: 'DocumentExplorerViewer',
1199
- DocumentExplorerEditor: 'DocumentExplorerEditor',
1200
- PayrollViewer: 'PayrollViewer',
1201
- PayrollEditor: 'PayrollEditor',
1202
- PropertyViewer: 'PropertyViewer',
1203
- PropertyManager: 'PropertyManager',
1204
- PropertyAdmin: 'PropertyAdmin',
1205
- WebsiteContentEditor: 'WebsiteContentEditor',
1206
- WebsiteContentViewer: 'WebsiteContentViewer',
1207
- WebsiteTechViewer: 'WebsiteTechViewer',
1208
- MenuViewer: 'MenuViewer',
1209
- MenuEditor: 'MenuEditor',
1210
- MenuManager: 'MenuManager',
1211
- MenuMetaFieldManager: 'MenuMetaFieldManager',
1212
- MenuMetaFieldEditor: 'MenuMetaFieldEditor',
1213
- MenuMetaFieldViewer: 'MenuMetaFieldViewer',
1214
- StoreDeliveryZoneManager: 'StoreDeliveryZoneManager',
1215
- StoreDeliveryZoneEditor: 'StoreDeliveryZoneEditor',
1216
- StoreDeliveryZoneViewer: 'StoreDeliveryZoneViewer',
1217
- OrderFulfillmentManager: 'OrderFulfillmentManager',
1218
- OrderManager: 'OrderManager',
1219
- OrderEditor: 'OrderEditor',
1220
- OrderViewer: 'OrderViewer',
1221
- InventoryManager: 'InventoryManager',
1222
- InventoryEditor: 'InventoryEditor',
1223
- InventoryViewer: 'InventoryViewer',
1224
- PaymentManager: 'PaymentManager',
1225
- OnboardingManager: 'OnboardingManager',
1226
- FeatureFlagManager: 'FeatureFlagManager',
1227
- PropertyOwnerMisc: 'PropertyOwnerMisc',
1228
- ManagedOwnerMisc: 'ManagedOwnerMisc',
1229
- IntegratorMisc: 'IntegratorMisc',
1230
- PropertyManagerMisc: 'PropertyManagerMisc',
1231
- FinanceManagerMisc: 'FinanceManagerMisc',
1232
- SupportMisc: 'SupportMisc'
1233
- } as const;
1234
-
1235
- export type ListOrgRolesSuccessResponseValueValueRolesEnum = typeof ListOrgRolesSuccessResponseValueValueRolesEnum[keyof typeof ListOrgRolesSuccessResponseValueValueRolesEnum];
1282
+ export type ListOrgRolesSuccessResponseValueAnyOfValueResourceTypeEnum = typeof ListOrgRolesSuccessResponseValueAnyOfValueResourceTypeEnum[keyof typeof ListOrgRolesSuccessResponseValueAnyOfValueResourceTypeEnum];
1236
1283
 
1284
+ /**
1285
+ *
1286
+ * @export
1287
+ * @interface ListOrgRolesSuccessResponseValueAnyOfValueRolesInner
1288
+ */
1289
+ export interface ListOrgRolesSuccessResponseValueAnyOfValueRolesInner {
1290
+ }
1237
1291
  /**
1238
1292
  * Successful permissions retrieval response
1239
1293
  * @export
@@ -1493,6 +1547,7 @@ export const Permissions = {
1493
1547
  ViewOrg: 'ViewOrg',
1494
1548
  ViewWebhooks: 'ViewWebhooks',
1495
1549
  EditWebhooks: 'EditWebhooks',
1550
+ ViewOwnPermissions: 'ViewOwnPermissions',
1496
1551
  RoleAdmin: 'RoleAdmin',
1497
1552
  RoleFactory: 'RoleFactory',
1498
1553
  RoleAuthDeveloper: 'RoleAuthDeveloper'
@@ -1596,6 +1651,106 @@ export interface PrincipalsInOrgWithTeammatePermissionSummaryResponse {
1596
1651
  */
1597
1652
  'principals': Array<PrincipalInOrgWithTeammatePermissionSummary>;
1598
1653
  }
1654
+ /**
1655
+ * V2 role assignment key to rematerialize
1656
+ * @export
1657
+ * @interface RematerializeRoleAssignmentV2RequestBody
1658
+ */
1659
+ export interface RematerializeRoleAssignmentV2RequestBody {
1660
+ /**
1661
+ *
1662
+ * @type {string}
1663
+ * @memberof RematerializeRoleAssignmentV2RequestBody
1664
+ */
1665
+ 'pk': string;
1666
+ /**
1667
+ *
1668
+ * @type {string}
1669
+ * @memberof RematerializeRoleAssignmentV2RequestBody
1670
+ */
1671
+ 'sk': string;
1672
+ }
1673
+ /**
1674
+ * Successful V2 role assignment rematerialization response
1675
+ * @export
1676
+ * @interface RematerializeRoleAssignmentV2SuccessResponse
1677
+ */
1678
+ export interface RematerializeRoleAssignmentV2SuccessResponse {
1679
+ /**
1680
+ *
1681
+ * @type {RematerializeRoleAssignmentV2SuccessResponseRoleAssignment}
1682
+ * @memberof RematerializeRoleAssignmentV2SuccessResponse
1683
+ */
1684
+ 'roleAssignment': RematerializeRoleAssignmentV2SuccessResponseRoleAssignment;
1685
+ /**
1686
+ *
1687
+ * @type {number}
1688
+ * @memberof RematerializeRoleAssignmentV2SuccessResponse
1689
+ */
1690
+ 'materialized': number;
1691
+ /**
1692
+ *
1693
+ * @type {number}
1694
+ * @memberof RematerializeRoleAssignmentV2SuccessResponse
1695
+ */
1696
+ 'applied': number;
1697
+ /**
1698
+ *
1699
+ * @type {Array<RematerializeRoleAssignmentV2SuccessResponsePolicyAssignmentsInner>}
1700
+ * @memberof RematerializeRoleAssignmentV2SuccessResponse
1701
+ */
1702
+ 'policyAssignments': Array<RematerializeRoleAssignmentV2SuccessResponsePolicyAssignmentsInner>;
1703
+ }
1704
+ /**
1705
+ *
1706
+ * @export
1707
+ * @interface RematerializeRoleAssignmentV2SuccessResponsePolicyAssignmentsInner
1708
+ */
1709
+ export interface RematerializeRoleAssignmentV2SuccessResponsePolicyAssignmentsInner {
1710
+ /**
1711
+ *
1712
+ * @type {string}
1713
+ * @memberof RematerializeRoleAssignmentV2SuccessResponsePolicyAssignmentsInner
1714
+ */
1715
+ 'policyId': string;
1716
+ /**
1717
+ *
1718
+ * @type {string}
1719
+ * @memberof RematerializeRoleAssignmentV2SuccessResponsePolicyAssignmentsInner
1720
+ */
1721
+ 'assignmentPk': string;
1722
+ /**
1723
+ *
1724
+ * @type {string}
1725
+ * @memberof RematerializeRoleAssignmentV2SuccessResponsePolicyAssignmentsInner
1726
+ */
1727
+ 'assignmentSk': string;
1728
+ }
1729
+ /**
1730
+ *
1731
+ * @export
1732
+ * @interface RematerializeRoleAssignmentV2SuccessResponseRoleAssignment
1733
+ */
1734
+ export interface RematerializeRoleAssignmentV2SuccessResponseRoleAssignment {
1735
+ /**
1736
+ *
1737
+ * @type {string}
1738
+ * @memberof RematerializeRoleAssignmentV2SuccessResponseRoleAssignment
1739
+ */
1740
+ 'pk': string;
1741
+ /**
1742
+ *
1743
+ * @type {string}
1744
+ * @memberof RematerializeRoleAssignmentV2SuccessResponseRoleAssignment
1745
+ */
1746
+ 'sk': string;
1747
+ /**
1748
+ *
1749
+ * @type {string}
1750
+ * @memberof RematerializeRoleAssignmentV2SuccessResponseRoleAssignment
1751
+ */
1752
+ 'assignmentId': string;
1753
+ }
1599
1754
  /**
1600
1755
  * Details for revoking a forbidden role from a principal
1601
1756
  * @export
@@ -1813,6 +1968,12 @@ export interface UpdateTeammateAccessRequestBody {
1813
1968
  * @memberof UpdateTeammateAccessRequestBody
1814
1969
  */
1815
1970
  'propertyIds'?: Array<string>;
1971
+ /**
1972
+ * Optional v2 permission set keys to apply to this teammate role
1973
+ * @type {Array<string>}
1974
+ * @memberof UpdateTeammateAccessRequestBody
1975
+ */
1976
+ 'optionalPermissionSetKeys'?: Array<string>;
1816
1977
  }
1817
1978
 
1818
1979
  export const UpdateTeammateAccessRequestBodyAppAccessLevelEnum = {
@@ -3198,6 +3359,47 @@ export const RoleAssignmentApiAxiosParamCreator = function (configuration?: Conf
3198
3359
  options: localVarRequestOptions,
3199
3360
  };
3200
3361
  },
3362
+ /**
3363
+ * Rematerializes a V2 role assignment and applies the resulting policy assignments
3364
+ * @summary Rematerialize V2 Role Assignment
3365
+ * @param {string} orgId
3366
+ * @param {RematerializeRoleAssignmentV2RequestBody} [rematerializeRoleAssignmentV2RequestBody]
3367
+ * @param {*} [options] Override http request option.
3368
+ * @throws {RequiredError}
3369
+ */
3370
+ rematerializeRoleAssignmentV2: async (orgId: string, rematerializeRoleAssignmentV2RequestBody?: RematerializeRoleAssignmentV2RequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3371
+ // verify required parameter 'orgId' is not null or undefined
3372
+ assertParamExists('rematerializeRoleAssignmentV2', 'orgId', orgId)
3373
+ const localVarPath = `/orgs/{orgId}/roleAssignments/v2/rematerialize`
3374
+ .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
3375
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3376
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3377
+ let baseOptions;
3378
+ if (configuration) {
3379
+ baseOptions = configuration.baseOptions;
3380
+ }
3381
+
3382
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3383
+ const localVarHeaderParameter = {} as any;
3384
+ const localVarQueryParameter = {} as any;
3385
+
3386
+ // authentication ApiKeyAuth required
3387
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3388
+
3389
+
3390
+
3391
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3392
+
3393
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3394
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3395
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3396
+ localVarRequestOptions.data = serializeDataIfNeeded(rematerializeRoleAssignmentV2RequestBody, localVarRequestOptions, configuration)
3397
+
3398
+ return {
3399
+ url: toPathString(localVarUrlObj),
3400
+ options: localVarRequestOptions,
3401
+ };
3402
+ },
3201
3403
  /**
3202
3404
  * Revokes a forbidden role from a given principal (user, group, etc.)
3203
3405
  * @summary Revoke Forbidden Role from Principal
@@ -3378,6 +3580,20 @@ export const RoleAssignmentApiFp = function(configuration?: Configuration) {
3378
3580
  const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.grantTeammateAccess']?.[localVarOperationServerIndex]?.url;
3379
3581
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3380
3582
  },
3583
+ /**
3584
+ * Rematerializes a V2 role assignment and applies the resulting policy assignments
3585
+ * @summary Rematerialize V2 Role Assignment
3586
+ * @param {string} orgId
3587
+ * @param {RematerializeRoleAssignmentV2RequestBody} [rematerializeRoleAssignmentV2RequestBody]
3588
+ * @param {*} [options] Override http request option.
3589
+ * @throws {RequiredError}
3590
+ */
3591
+ async rematerializeRoleAssignmentV2(orgId: string, rematerializeRoleAssignmentV2RequestBody?: RematerializeRoleAssignmentV2RequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RematerializeRoleAssignmentV2SuccessResponse>> {
3592
+ const localVarAxiosArgs = await localVarAxiosParamCreator.rematerializeRoleAssignmentV2(orgId, rematerializeRoleAssignmentV2RequestBody, options);
3593
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3594
+ const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.rematerializeRoleAssignmentV2']?.[localVarOperationServerIndex]?.url;
3595
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3596
+ },
3381
3597
  /**
3382
3598
  * Revokes a forbidden role from a given principal (user, group, etc.)
3383
3599
  * @summary Revoke Forbidden Role from Principal
@@ -3465,6 +3681,17 @@ export const RoleAssignmentApiFactory = function (configuration?: Configuration,
3465
3681
  grantTeammateAccess(orgId: string, userId: string, grantTeammateAccessRequestBody?: GrantTeammateAccessRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<TeammateAccessSuccessResponse> {
3466
3682
  return localVarFp.grantTeammateAccess(orgId, userId, grantTeammateAccessRequestBody, options).then((request) => request(axios, basePath));
3467
3683
  },
3684
+ /**
3685
+ * Rematerializes a V2 role assignment and applies the resulting policy assignments
3686
+ * @summary Rematerialize V2 Role Assignment
3687
+ * @param {string} orgId
3688
+ * @param {RematerializeRoleAssignmentV2RequestBody} [rematerializeRoleAssignmentV2RequestBody]
3689
+ * @param {*} [options] Override http request option.
3690
+ * @throws {RequiredError}
3691
+ */
3692
+ rematerializeRoleAssignmentV2(orgId: string, rematerializeRoleAssignmentV2RequestBody?: RematerializeRoleAssignmentV2RequestBody, options?: RawAxiosRequestConfig): AxiosPromise<RematerializeRoleAssignmentV2SuccessResponse> {
3693
+ return localVarFp.rematerializeRoleAssignmentV2(orgId, rematerializeRoleAssignmentV2RequestBody, options).then((request) => request(axios, basePath));
3694
+ },
3468
3695
  /**
3469
3696
  * Revokes a forbidden role from a given principal (user, group, etc.)
3470
3697
  * @summary Revoke Forbidden Role from Principal
@@ -3549,6 +3776,19 @@ export class RoleAssignmentApi extends BaseAPI {
3549
3776
  return RoleAssignmentApiFp(this.configuration).grantTeammateAccess(orgId, userId, grantTeammateAccessRequestBody, options).then((request) => request(this.axios, this.basePath));
3550
3777
  }
3551
3778
 
3779
+ /**
3780
+ * Rematerializes a V2 role assignment and applies the resulting policy assignments
3781
+ * @summary Rematerialize V2 Role Assignment
3782
+ * @param {string} orgId
3783
+ * @param {RematerializeRoleAssignmentV2RequestBody} [rematerializeRoleAssignmentV2RequestBody]
3784
+ * @param {*} [options] Override http request option.
3785
+ * @throws {RequiredError}
3786
+ * @memberof RoleAssignmentApi
3787
+ */
3788
+ public rematerializeRoleAssignmentV2(orgId: string, rematerializeRoleAssignmentV2RequestBody?: RematerializeRoleAssignmentV2RequestBody, options?: RawAxiosRequestConfig) {
3789
+ return RoleAssignmentApiFp(this.configuration).rematerializeRoleAssignmentV2(orgId, rematerializeRoleAssignmentV2RequestBody, options).then((request) => request(this.axios, this.basePath));
3790
+ }
3791
+
3552
3792
  /**
3553
3793
  * Revokes a forbidden role from a given principal (user, group, etc.)
3554
3794
  * @summary Revoke Forbidden Role from Principal
@@ -3963,7 +4203,7 @@ export const UserPermissionsApiFp = function(configuration?: Configuration) {
3963
4203
  * @param {*} [options] Override http request option.
3964
4204
  * @throws {RequiredError}
3965
4205
  */
3966
- async listOrgRoles(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: { [key: string]: ListOrgRolesSuccessResponseValueValue; }; }>> {
4206
+ async listOrgRoles(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: ListOrgRolesSuccessResponseValue; }>> {
3967
4207
  const localVarAxiosArgs = await localVarAxiosParamCreator.listOrgRoles(orgId, options);
3968
4208
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3969
4209
  const localVarOperationServerBasePath = operationServerMap['UserPermissionsApi.listOrgRoles']?.[localVarOperationServerIndex]?.url;
@@ -4023,7 +4263,7 @@ export const UserPermissionsApiFactory = function (configuration?: Configuration
4023
4263
  * @param {*} [options] Override http request option.
4024
4264
  * @throws {RequiredError}
4025
4265
  */
4026
- listOrgRoles(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: { [key: string]: ListOrgRolesSuccessResponseValueValue; }; }> {
4266
+ listOrgRoles(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: ListOrgRolesSuccessResponseValue; }> {
4027
4267
  return localVarFp.listOrgRoles(orgId, options).then((request) => request(axios, basePath));
4028
4268
  },
4029
4269
  /**
package/configuration.ts CHANGED
@@ -100,7 +100,7 @@ export class Configuration {
100
100
 
101
101
  const extraHeaders = param.useDefaultUserAgent ? {} : {
102
102
  headers: {
103
- "user-agent": "Flipdish authorization typescript SDK / 0.2.33"
103
+ "user-agent": "Flipdish authorization typescript SDK / 0.2.34-rc.1779194216"
104
104
  }
105
105
  };
106
106
 
package/dist/api.d.ts CHANGED
@@ -993,6 +993,12 @@ export interface GrantTeammateAccessRequestBody {
993
993
  * @memberof GrantTeammateAccessRequestBody
994
994
  */
995
995
  'propertyIds'?: Array<string>;
996
+ /**
997
+ * Optional v2 permission set keys to apply to this teammate role
998
+ * @type {Array<string>}
999
+ * @memberof GrantTeammateAccessRequestBody
1000
+ */
1001
+ 'optionalPermissionSetKeys'?: Array<string>;
996
1002
  /**
997
1003
  * Target user email; persisted on first assignment only
998
1004
  * @type {string}
@@ -1074,110 +1080,153 @@ export interface ListFeatureBasedRolesSuccessResponse {
1074
1080
  /**
1075
1081
  *
1076
1082
  * @export
1077
- * @interface ListOrgRolesSuccessResponseValueValue
1083
+ * @interface ListOrgRolesSuccessResponseValue
1078
1084
  */
1079
- export interface ListOrgRolesSuccessResponseValueValue {
1085
+ export interface ListOrgRolesSuccessResponseValue {
1086
+ /**
1087
+ *
1088
+ * @type {ListOrgRolesSuccessResponseValueAnyOfOrgId}
1089
+ * @memberof ListOrgRolesSuccessResponseValue
1090
+ */
1091
+ 'orgId': ListOrgRolesSuccessResponseValueAnyOfOrgId;
1092
+ /**
1093
+ * List of roles that are assigned to the user in the org
1094
+ * @type {Array<string>}
1095
+ * @memberof ListOrgRolesSuccessResponseValue
1096
+ */
1097
+ 'roles': Array<ListOrgRolesSuccessResponseValueRolesEnum>;
1098
+ /**
1099
+ * Optional permission set keys applied to the roles
1100
+ * @type {Array<string>}
1101
+ * @memberof ListOrgRolesSuccessResponseValue
1102
+ */
1103
+ 'optionalPermissionSetKeys'?: Array<string>;
1104
+ /**
1105
+ * Property IDs the roles are scoped to
1106
+ * @type {Array<string>}
1107
+ * @memberof ListOrgRolesSuccessResponseValue
1108
+ */
1109
+ 'properties'?: Array<string>;
1110
+ /**
1111
+ * Brand IDs the roles are scoped to
1112
+ * @type {Array<string>}
1113
+ * @memberof ListOrgRolesSuccessResponseValue
1114
+ */
1115
+ 'brands'?: Array<string>;
1116
+ /**
1117
+ * Sales channel IDs the roles are scoped to
1118
+ * @type {Array<string>}
1119
+ * @memberof ListOrgRolesSuccessResponseValue
1120
+ */
1121
+ 'salesChannels'?: Array<string>;
1122
+ }
1123
+ export declare const ListOrgRolesSuccessResponseValueRolesEnum: {
1124
+ readonly Owner: "Owner";
1125
+ readonly PropertyOwner: "PropertyOwner";
1126
+ readonly ManagedOwner: "ManagedOwner";
1127
+ readonly Integrator: "Integrator";
1128
+ readonly PropertyManager: "PropertyManager";
1129
+ readonly FinanceManager: "FinanceManager";
1130
+ };
1131
+ export type ListOrgRolesSuccessResponseValueRolesEnum = typeof ListOrgRolesSuccessResponseValueRolesEnum[keyof typeof ListOrgRolesSuccessResponseValueRolesEnum];
1132
+ /**
1133
+ *
1134
+ * @export
1135
+ * @interface ListOrgRolesSuccessResponseValueAnyOf
1136
+ */
1137
+ export interface ListOrgRolesSuccessResponseValueAnyOf {
1138
+ /**
1139
+ *
1140
+ * @type {ListOrgRolesSuccessResponseValueAnyOfOrgId}
1141
+ * @memberof ListOrgRolesSuccessResponseValueAnyOf
1142
+ */
1143
+ 'orgId': ListOrgRolesSuccessResponseValueAnyOfOrgId;
1144
+ /**
1145
+ * List of roles that are assigned to the user in the org
1146
+ * @type {Array<string>}
1147
+ * @memberof ListOrgRolesSuccessResponseValueAnyOf
1148
+ */
1149
+ 'roles': Array<ListOrgRolesSuccessResponseValueAnyOfRolesEnum>;
1150
+ /**
1151
+ * Optional permission set keys applied to the roles
1152
+ * @type {Array<string>}
1153
+ * @memberof ListOrgRolesSuccessResponseValueAnyOf
1154
+ */
1155
+ 'optionalPermissionSetKeys'?: Array<string>;
1156
+ /**
1157
+ * Property IDs the roles are scoped to
1158
+ * @type {Array<string>}
1159
+ * @memberof ListOrgRolesSuccessResponseValueAnyOf
1160
+ */
1161
+ 'properties'?: Array<string>;
1162
+ /**
1163
+ * Brand IDs the roles are scoped to
1164
+ * @type {Array<string>}
1165
+ * @memberof ListOrgRolesSuccessResponseValueAnyOf
1166
+ */
1167
+ 'brands'?: Array<string>;
1168
+ /**
1169
+ * Sales channel IDs the roles are scoped to
1170
+ * @type {Array<string>}
1171
+ * @memberof ListOrgRolesSuccessResponseValueAnyOf
1172
+ */
1173
+ 'salesChannels'?: Array<string>;
1174
+ }
1175
+ export declare const ListOrgRolesSuccessResponseValueAnyOfRolesEnum: {
1176
+ readonly Owner: "Owner";
1177
+ readonly PropertyOwner: "PropertyOwner";
1178
+ readonly ManagedOwner: "ManagedOwner";
1179
+ readonly Integrator: "Integrator";
1180
+ readonly PropertyManager: "PropertyManager";
1181
+ readonly FinanceManager: "FinanceManager";
1182
+ };
1183
+ export type ListOrgRolesSuccessResponseValueAnyOfRolesEnum = typeof ListOrgRolesSuccessResponseValueAnyOfRolesEnum[keyof typeof ListOrgRolesSuccessResponseValueAnyOfRolesEnum];
1184
+ /**
1185
+ * ID of the org the roles are assigned in
1186
+ * @export
1187
+ * @interface ListOrgRolesSuccessResponseValueAnyOfOrgId
1188
+ */
1189
+ export interface ListOrgRolesSuccessResponseValueAnyOfOrgId {
1190
+ }
1191
+ /**
1192
+ *
1193
+ * @export
1194
+ * @interface ListOrgRolesSuccessResponseValueAnyOfValue
1195
+ */
1196
+ export interface ListOrgRolesSuccessResponseValueAnyOfValue {
1080
1197
  /**
1081
1198
  * Type of resource the permissions are assigned to
1082
1199
  * @type {string}
1083
- * @memberof ListOrgRolesSuccessResponseValueValue
1200
+ * @memberof ListOrgRolesSuccessResponseValueAnyOfValue
1084
1201
  */
1085
- 'resourceType': ListOrgRolesSuccessResponseValueValueResourceTypeEnum;
1202
+ 'resourceType': ListOrgRolesSuccessResponseValueAnyOfValueResourceTypeEnum;
1086
1203
  /**
1087
1204
  *
1088
1205
  * @type {GetUserPermissionsSuccessResponseResourcesValueResourceId}
1089
- * @memberof ListOrgRolesSuccessResponseValueValue
1206
+ * @memberof ListOrgRolesSuccessResponseValueAnyOfValue
1090
1207
  */
1091
1208
  'resourceId': GetUserPermissionsSuccessResponseResourcesValueResourceId;
1092
1209
  /**
1093
1210
  * List of roles that are assigned to the user for the resource
1094
- * @type {Array<string>}
1095
- * @memberof ListOrgRolesSuccessResponseValueValue
1211
+ * @type {Array<ListOrgRolesSuccessResponseValueAnyOfValueRolesInner>}
1212
+ * @memberof ListOrgRolesSuccessResponseValueAnyOfValue
1096
1213
  */
1097
- 'roles': Array<ListOrgRolesSuccessResponseValueValueRolesEnum>;
1214
+ 'roles': Array<ListOrgRolesSuccessResponseValueAnyOfValueRolesInner>;
1098
1215
  }
1099
- export declare const ListOrgRolesSuccessResponseValueValueResourceTypeEnum: {
1216
+ export declare const ListOrgRolesSuccessResponseValueAnyOfValueResourceTypeEnum: {
1100
1217
  readonly Property: "Property";
1101
1218
  readonly Org: "Org";
1102
1219
  readonly Brand: "Brand";
1103
1220
  readonly SalesChannel: "SalesChannel";
1104
1221
  };
1105
- export type ListOrgRolesSuccessResponseValueValueResourceTypeEnum = typeof ListOrgRolesSuccessResponseValueValueResourceTypeEnum[keyof typeof ListOrgRolesSuccessResponseValueValueResourceTypeEnum];
1106
- export declare const ListOrgRolesSuccessResponseValueValueRolesEnum: {
1107
- readonly OrgViewer: "OrgViewer";
1108
- readonly OrgManager: "OrgManager";
1109
- readonly OrgAdmin: "OrgAdmin";
1110
- readonly BrandViewer: "BrandViewer";
1111
- readonly BrandManager: "BrandManager";
1112
- readonly BrandAdmin: "BrandAdmin";
1113
- readonly StoreViewer: "StoreViewer";
1114
- readonly StoreEditor: "StoreEditor";
1115
- readonly StoreManager: "StoreManager";
1116
- readonly CustomerViewer: "CustomerViewer";
1117
- readonly CustomerManager: "CustomerManager";
1118
- readonly VoucherViewer: "VoucherViewer";
1119
- readonly VoucherEditor: "VoucherEditor";
1120
- readonly VoucherManager: "VoucherManager";
1121
- readonly VoucherCampaignManager: "VoucherCampaignManager";
1122
- readonly VoucherStatisticsViewer: "VoucherStatisticsViewer";
1123
- readonly AnalyticsViewer: "AnalyticsViewer";
1124
- readonly ReportsViewer: "ReportsViewer";
1125
- readonly FinanceViewer: "FinanceViewer";
1126
- readonly FinanceManager: "FinanceManager";
1127
- readonly TeamViewer: "TeamViewer";
1128
- readonly TeamManager: "TeamManager";
1129
- readonly TeamAdmin: "TeamAdmin";
1130
- readonly TechViewer: "TechViewer";
1131
- readonly TechManager: "TechManager";
1132
- readonly AppStoreViewer: "AppStoreViewer";
1133
- readonly AppStoreManager: "AppStoreManager";
1134
- readonly SalesChannelViewer: "SalesChannelViewer";
1135
- readonly SalesChannelEditor: "SalesChannelEditor";
1136
- readonly SalesChannelManager: "SalesChannelManager";
1137
- readonly DeliveryViewer: "DeliveryViewer";
1138
- readonly DeliveryManager: "DeliveryManager";
1139
- readonly DriverManager: "DriverManager";
1140
- readonly AuditViewer: "AuditViewer";
1141
- readonly AuditManager: "AuditManager";
1142
- readonly AccountsViewer: "AccountsViewer";
1143
- readonly AccountsEditor: "AccountsEditor";
1144
- readonly DocumentExplorerViewer: "DocumentExplorerViewer";
1145
- readonly DocumentExplorerEditor: "DocumentExplorerEditor";
1146
- readonly PayrollViewer: "PayrollViewer";
1147
- readonly PayrollEditor: "PayrollEditor";
1148
- readonly PropertyViewer: "PropertyViewer";
1149
- readonly PropertyManager: "PropertyManager";
1150
- readonly PropertyAdmin: "PropertyAdmin";
1151
- readonly WebsiteContentEditor: "WebsiteContentEditor";
1152
- readonly WebsiteContentViewer: "WebsiteContentViewer";
1153
- readonly WebsiteTechViewer: "WebsiteTechViewer";
1154
- readonly MenuViewer: "MenuViewer";
1155
- readonly MenuEditor: "MenuEditor";
1156
- readonly MenuManager: "MenuManager";
1157
- readonly MenuMetaFieldManager: "MenuMetaFieldManager";
1158
- readonly MenuMetaFieldEditor: "MenuMetaFieldEditor";
1159
- readonly MenuMetaFieldViewer: "MenuMetaFieldViewer";
1160
- readonly StoreDeliveryZoneManager: "StoreDeliveryZoneManager";
1161
- readonly StoreDeliveryZoneEditor: "StoreDeliveryZoneEditor";
1162
- readonly StoreDeliveryZoneViewer: "StoreDeliveryZoneViewer";
1163
- readonly OrderFulfillmentManager: "OrderFulfillmentManager";
1164
- readonly OrderManager: "OrderManager";
1165
- readonly OrderEditor: "OrderEditor";
1166
- readonly OrderViewer: "OrderViewer";
1167
- readonly InventoryManager: "InventoryManager";
1168
- readonly InventoryEditor: "InventoryEditor";
1169
- readonly InventoryViewer: "InventoryViewer";
1170
- readonly PaymentManager: "PaymentManager";
1171
- readonly OnboardingManager: "OnboardingManager";
1172
- readonly FeatureFlagManager: "FeatureFlagManager";
1173
- readonly PropertyOwnerMisc: "PropertyOwnerMisc";
1174
- readonly ManagedOwnerMisc: "ManagedOwnerMisc";
1175
- readonly IntegratorMisc: "IntegratorMisc";
1176
- readonly PropertyManagerMisc: "PropertyManagerMisc";
1177
- readonly FinanceManagerMisc: "FinanceManagerMisc";
1178
- readonly SupportMisc: "SupportMisc";
1179
- };
1180
- export type ListOrgRolesSuccessResponseValueValueRolesEnum = typeof ListOrgRolesSuccessResponseValueValueRolesEnum[keyof typeof ListOrgRolesSuccessResponseValueValueRolesEnum];
1222
+ export type ListOrgRolesSuccessResponseValueAnyOfValueResourceTypeEnum = typeof ListOrgRolesSuccessResponseValueAnyOfValueResourceTypeEnum[keyof typeof ListOrgRolesSuccessResponseValueAnyOfValueResourceTypeEnum];
1223
+ /**
1224
+ *
1225
+ * @export
1226
+ * @interface ListOrgRolesSuccessResponseValueAnyOfValueRolesInner
1227
+ */
1228
+ export interface ListOrgRolesSuccessResponseValueAnyOfValueRolesInner {
1229
+ }
1181
1230
  /**
1182
1231
  * Successful permissions retrieval response
1183
1232
  * @export
@@ -1436,6 +1485,7 @@ export declare const Permissions: {
1436
1485
  readonly ViewOrg: "ViewOrg";
1437
1486
  readonly ViewWebhooks: "ViewWebhooks";
1438
1487
  readonly EditWebhooks: "EditWebhooks";
1488
+ readonly ViewOwnPermissions: "ViewOwnPermissions";
1439
1489
  readonly RoleAdmin: "RoleAdmin";
1440
1490
  readonly RoleFactory: "RoleFactory";
1441
1491
  readonly RoleAuthDeveloper: "RoleAuthDeveloper";
@@ -1533,6 +1583,106 @@ export interface PrincipalsInOrgWithTeammatePermissionSummaryResponse {
1533
1583
  */
1534
1584
  'principals': Array<PrincipalInOrgWithTeammatePermissionSummary>;
1535
1585
  }
1586
+ /**
1587
+ * V2 role assignment key to rematerialize
1588
+ * @export
1589
+ * @interface RematerializeRoleAssignmentV2RequestBody
1590
+ */
1591
+ export interface RematerializeRoleAssignmentV2RequestBody {
1592
+ /**
1593
+ *
1594
+ * @type {string}
1595
+ * @memberof RematerializeRoleAssignmentV2RequestBody
1596
+ */
1597
+ 'pk': string;
1598
+ /**
1599
+ *
1600
+ * @type {string}
1601
+ * @memberof RematerializeRoleAssignmentV2RequestBody
1602
+ */
1603
+ 'sk': string;
1604
+ }
1605
+ /**
1606
+ * Successful V2 role assignment rematerialization response
1607
+ * @export
1608
+ * @interface RematerializeRoleAssignmentV2SuccessResponse
1609
+ */
1610
+ export interface RematerializeRoleAssignmentV2SuccessResponse {
1611
+ /**
1612
+ *
1613
+ * @type {RematerializeRoleAssignmentV2SuccessResponseRoleAssignment}
1614
+ * @memberof RematerializeRoleAssignmentV2SuccessResponse
1615
+ */
1616
+ 'roleAssignment': RematerializeRoleAssignmentV2SuccessResponseRoleAssignment;
1617
+ /**
1618
+ *
1619
+ * @type {number}
1620
+ * @memberof RematerializeRoleAssignmentV2SuccessResponse
1621
+ */
1622
+ 'materialized': number;
1623
+ /**
1624
+ *
1625
+ * @type {number}
1626
+ * @memberof RematerializeRoleAssignmentV2SuccessResponse
1627
+ */
1628
+ 'applied': number;
1629
+ /**
1630
+ *
1631
+ * @type {Array<RematerializeRoleAssignmentV2SuccessResponsePolicyAssignmentsInner>}
1632
+ * @memberof RematerializeRoleAssignmentV2SuccessResponse
1633
+ */
1634
+ 'policyAssignments': Array<RematerializeRoleAssignmentV2SuccessResponsePolicyAssignmentsInner>;
1635
+ }
1636
+ /**
1637
+ *
1638
+ * @export
1639
+ * @interface RematerializeRoleAssignmentV2SuccessResponsePolicyAssignmentsInner
1640
+ */
1641
+ export interface RematerializeRoleAssignmentV2SuccessResponsePolicyAssignmentsInner {
1642
+ /**
1643
+ *
1644
+ * @type {string}
1645
+ * @memberof RematerializeRoleAssignmentV2SuccessResponsePolicyAssignmentsInner
1646
+ */
1647
+ 'policyId': string;
1648
+ /**
1649
+ *
1650
+ * @type {string}
1651
+ * @memberof RematerializeRoleAssignmentV2SuccessResponsePolicyAssignmentsInner
1652
+ */
1653
+ 'assignmentPk': string;
1654
+ /**
1655
+ *
1656
+ * @type {string}
1657
+ * @memberof RematerializeRoleAssignmentV2SuccessResponsePolicyAssignmentsInner
1658
+ */
1659
+ 'assignmentSk': string;
1660
+ }
1661
+ /**
1662
+ *
1663
+ * @export
1664
+ * @interface RematerializeRoleAssignmentV2SuccessResponseRoleAssignment
1665
+ */
1666
+ export interface RematerializeRoleAssignmentV2SuccessResponseRoleAssignment {
1667
+ /**
1668
+ *
1669
+ * @type {string}
1670
+ * @memberof RematerializeRoleAssignmentV2SuccessResponseRoleAssignment
1671
+ */
1672
+ 'pk': string;
1673
+ /**
1674
+ *
1675
+ * @type {string}
1676
+ * @memberof RematerializeRoleAssignmentV2SuccessResponseRoleAssignment
1677
+ */
1678
+ 'sk': string;
1679
+ /**
1680
+ *
1681
+ * @type {string}
1682
+ * @memberof RematerializeRoleAssignmentV2SuccessResponseRoleAssignment
1683
+ */
1684
+ 'assignmentId': string;
1685
+ }
1536
1686
  /**
1537
1687
  * Details for revoking a forbidden role from a principal
1538
1688
  * @export
@@ -1740,6 +1890,12 @@ export interface UpdateTeammateAccessRequestBody {
1740
1890
  * @memberof UpdateTeammateAccessRequestBody
1741
1891
  */
1742
1892
  'propertyIds'?: Array<string>;
1893
+ /**
1894
+ * Optional v2 permission set keys to apply to this teammate role
1895
+ * @type {Array<string>}
1896
+ * @memberof UpdateTeammateAccessRequestBody
1897
+ */
1898
+ 'optionalPermissionSetKeys'?: Array<string>;
1743
1899
  }
1744
1900
  export declare const UpdateTeammateAccessRequestBodyAppAccessLevelEnum: {
1745
1901
  readonly Owner: "Owner";
@@ -2392,6 +2548,15 @@ export declare const RoleAssignmentApiAxiosParamCreator: (configuration?: Config
2392
2548
  * @throws {RequiredError}
2393
2549
  */
2394
2550
  grantTeammateAccess: (orgId: string, userId: string, grantTeammateAccessRequestBody?: GrantTeammateAccessRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2551
+ /**
2552
+ * Rematerializes a V2 role assignment and applies the resulting policy assignments
2553
+ * @summary Rematerialize V2 Role Assignment
2554
+ * @param {string} orgId
2555
+ * @param {RematerializeRoleAssignmentV2RequestBody} [rematerializeRoleAssignmentV2RequestBody]
2556
+ * @param {*} [options] Override http request option.
2557
+ * @throws {RequiredError}
2558
+ */
2559
+ rematerializeRoleAssignmentV2: (orgId: string, rematerializeRoleAssignmentV2RequestBody?: RematerializeRoleAssignmentV2RequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2395
2560
  /**
2396
2561
  * Revokes a forbidden role from a given principal (user, group, etc.)
2397
2562
  * @summary Revoke Forbidden Role from Principal
@@ -2454,6 +2619,15 @@ export declare const RoleAssignmentApiFp: (configuration?: Configuration) => {
2454
2619
  * @throws {RequiredError}
2455
2620
  */
2456
2621
  grantTeammateAccess(orgId: string, userId: string, grantTeammateAccessRequestBody?: GrantTeammateAccessRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TeammateAccessSuccessResponse>>;
2622
+ /**
2623
+ * Rematerializes a V2 role assignment and applies the resulting policy assignments
2624
+ * @summary Rematerialize V2 Role Assignment
2625
+ * @param {string} orgId
2626
+ * @param {RematerializeRoleAssignmentV2RequestBody} [rematerializeRoleAssignmentV2RequestBody]
2627
+ * @param {*} [options] Override http request option.
2628
+ * @throws {RequiredError}
2629
+ */
2630
+ rematerializeRoleAssignmentV2(orgId: string, rematerializeRoleAssignmentV2RequestBody?: RematerializeRoleAssignmentV2RequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RematerializeRoleAssignmentV2SuccessResponse>>;
2457
2631
  /**
2458
2632
  * Revokes a forbidden role from a given principal (user, group, etc.)
2459
2633
  * @summary Revoke Forbidden Role from Principal
@@ -2516,6 +2690,15 @@ export declare const RoleAssignmentApiFactory: (configuration?: Configuration, b
2516
2690
  * @throws {RequiredError}
2517
2691
  */
2518
2692
  grantTeammateAccess(orgId: string, userId: string, grantTeammateAccessRequestBody?: GrantTeammateAccessRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<TeammateAccessSuccessResponse>;
2693
+ /**
2694
+ * Rematerializes a V2 role assignment and applies the resulting policy assignments
2695
+ * @summary Rematerialize V2 Role Assignment
2696
+ * @param {string} orgId
2697
+ * @param {RematerializeRoleAssignmentV2RequestBody} [rematerializeRoleAssignmentV2RequestBody]
2698
+ * @param {*} [options] Override http request option.
2699
+ * @throws {RequiredError}
2700
+ */
2701
+ rematerializeRoleAssignmentV2(orgId: string, rematerializeRoleAssignmentV2RequestBody?: RematerializeRoleAssignmentV2RequestBody, options?: RawAxiosRequestConfig): AxiosPromise<RematerializeRoleAssignmentV2SuccessResponse>;
2519
2702
  /**
2520
2703
  * Revokes a forbidden role from a given principal (user, group, etc.)
2521
2704
  * @summary Revoke Forbidden Role from Principal
@@ -2583,6 +2766,16 @@ export declare class RoleAssignmentApi extends BaseAPI {
2583
2766
  * @memberof RoleAssignmentApi
2584
2767
  */
2585
2768
  grantTeammateAccess(orgId: string, userId: string, grantTeammateAccessRequestBody?: GrantTeammateAccessRequestBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TeammateAccessSuccessResponse, any, {}>>;
2769
+ /**
2770
+ * Rematerializes a V2 role assignment and applies the resulting policy assignments
2771
+ * @summary Rematerialize V2 Role Assignment
2772
+ * @param {string} orgId
2773
+ * @param {RematerializeRoleAssignmentV2RequestBody} [rematerializeRoleAssignmentV2RequestBody]
2774
+ * @param {*} [options] Override http request option.
2775
+ * @throws {RequiredError}
2776
+ * @memberof RoleAssignmentApi
2777
+ */
2778
+ rematerializeRoleAssignmentV2(orgId: string, rematerializeRoleAssignmentV2RequestBody?: RematerializeRoleAssignmentV2RequestBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RematerializeRoleAssignmentV2SuccessResponse, any, {}>>;
2586
2779
  /**
2587
2780
  * Revokes a forbidden role from a given principal (user, group, etc.)
2588
2781
  * @summary Revoke Forbidden Role from Principal
@@ -2771,9 +2964,7 @@ export declare const UserPermissionsApiFp: (configuration?: Configuration) => {
2771
2964
  * @throws {RequiredError}
2772
2965
  */
2773
2966
  listOrgRoles(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{
2774
- [key: string]: {
2775
- [key: string]: ListOrgRolesSuccessResponseValueValue;
2776
- };
2967
+ [key: string]: ListOrgRolesSuccessResponseValue;
2777
2968
  }>>;
2778
2969
  /**
2779
2970
  * List the available permissions for the current user
@@ -2818,9 +3009,7 @@ export declare const UserPermissionsApiFactory: (configuration?: Configuration,
2818
3009
  * @throws {RequiredError}
2819
3010
  */
2820
3011
  listOrgRoles(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<{
2821
- [key: string]: {
2822
- [key: string]: ListOrgRolesSuccessResponseValueValue;
2823
- };
3012
+ [key: string]: ListOrgRolesSuccessResponseValue;
2824
3013
  }>;
2825
3014
  /**
2826
3015
  * List the available permissions for the current user
@@ -2869,9 +3058,7 @@ export declare class UserPermissionsApi extends BaseAPI {
2869
3058
  * @memberof UserPermissionsApi
2870
3059
  */
2871
3060
  listOrgRoles(orgId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<{
2872
- [key: string]: {
2873
- [key: string]: ListOrgRolesSuccessResponseValueValue;
2874
- };
3061
+ [key: string]: ListOrgRolesSuccessResponseValue;
2875
3062
  }, any, {}>>;
2876
3063
  /**
2877
3064
  * List the available permissions for the current user
package/dist/api.js CHANGED
@@ -84,8 +84,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
84
84
  return to.concat(ar || Array.prototype.slice.call(from));
85
85
  };
86
86
  Object.defineProperty(exports, "__esModule", { value: true });
87
- exports.UserPermissionsApiFp = exports.UserPermissionsApiAxiosParamCreator = exports.UserManagementApi = exports.UserManagementApiFactory = exports.UserManagementApiFp = exports.UserManagementApiAxiosParamCreator = exports.RoleAssignmentApi = exports.RoleAssignmentApiFactory = exports.RoleAssignmentApiFp = exports.RoleAssignmentApiAxiosParamCreator = exports.ConfigurationDataApi = exports.ConfigurationDataApiFactory = exports.ConfigurationDataApiFp = exports.ConfigurationDataApiAxiosParamCreator = exports.AuthorizedEntitiesApi = exports.AuthorizedEntitiesApiFactory = exports.AuthorizedEntitiesApiFp = exports.AuthorizedEntitiesApiAxiosParamCreator = exports.AuthorizationApi = exports.AuthorizationApiFactory = exports.AuthorizationApiFp = exports.AuthorizationApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.UpdateTeammateAccessRequestBodyAppAccessLevelEnum = exports.RoleNames = exports.RevokeRoleRequestBodyRoleEnum = exports.RevokeForbiddenRoleRequestBodyCompensatingRoleEnum = exports.PrincipalInOrgWithTeammatePermissionSummaryTypeEnum = exports.Permissions = exports.ListOrgRolesSuccessResponseValueValueRolesEnum = exports.ListOrgRolesSuccessResponseValueValueResourceTypeEnum = exports.IsInRoleRequestCheckModeEnum = exports.GrantTeammateAccessRequestBodyAppAccessLevelEnum = exports.GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerPolicyTypeEnum = exports.GetAuthorizedOrgsRequestPrincipalTypeEnum = exports.AuthorizationRequestResourceOneOf3TypeEnum = exports.AuthorizationRequestResourceOneOf2TypeEnum = exports.AuthorizationRequestResourceOneOf1TypeEnum = exports.AuthorizationRequestResourceOneOfTypeEnum = exports.AuthorizationRequestPrincipalTypeEnum = exports.AuthorizationRequestCheckModeEnum = exports.AuthenticateAndCheckIsInRoleRequestCheckModeEnum = exports.AuthenticateAndAuthorizeRequestCheckModeEnum = exports.AssignRoleRequestBodyRoleEnum = void 0;
88
- exports.UserPermissionsApi = exports.UserPermissionsApiFactory = void 0;
87
+ exports.UserPermissionsApiAxiosParamCreator = exports.UserManagementApi = exports.UserManagementApiFactory = exports.UserManagementApiFp = exports.UserManagementApiAxiosParamCreator = exports.RoleAssignmentApi = exports.RoleAssignmentApiFactory = exports.RoleAssignmentApiFp = exports.RoleAssignmentApiAxiosParamCreator = exports.ConfigurationDataApi = exports.ConfigurationDataApiFactory = exports.ConfigurationDataApiFp = exports.ConfigurationDataApiAxiosParamCreator = exports.AuthorizedEntitiesApi = exports.AuthorizedEntitiesApiFactory = exports.AuthorizedEntitiesApiFp = exports.AuthorizedEntitiesApiAxiosParamCreator = exports.AuthorizationApi = exports.AuthorizationApiFactory = exports.AuthorizationApiFp = exports.AuthorizationApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.UpdateTeammateAccessRequestBodyAppAccessLevelEnum = exports.RoleNames = exports.RevokeRoleRequestBodyRoleEnum = exports.RevokeForbiddenRoleRequestBodyCompensatingRoleEnum = exports.PrincipalInOrgWithTeammatePermissionSummaryTypeEnum = exports.Permissions = exports.ListOrgRolesSuccessResponseValueAnyOfValueResourceTypeEnum = exports.ListOrgRolesSuccessResponseValueAnyOfRolesEnum = exports.ListOrgRolesSuccessResponseValueRolesEnum = exports.IsInRoleRequestCheckModeEnum = exports.GrantTeammateAccessRequestBodyAppAccessLevelEnum = exports.GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerPolicyTypeEnum = exports.GetAuthorizedOrgsRequestPrincipalTypeEnum = exports.AuthorizationRequestResourceOneOf3TypeEnum = exports.AuthorizationRequestResourceOneOf2TypeEnum = exports.AuthorizationRequestResourceOneOf1TypeEnum = exports.AuthorizationRequestResourceOneOfTypeEnum = exports.AuthorizationRequestPrincipalTypeEnum = exports.AuthorizationRequestCheckModeEnum = exports.AuthenticateAndCheckIsInRoleRequestCheckModeEnum = exports.AuthenticateAndAuthorizeRequestCheckModeEnum = exports.AssignRoleRequestBodyRoleEnum = void 0;
88
+ exports.UserPermissionsApi = exports.UserPermissionsApiFactory = exports.UserPermissionsApiFp = void 0;
89
89
  var axios_1 = require("axios");
90
90
  // Some imports not used depending on template conditions
91
91
  // @ts-ignore
@@ -233,86 +233,28 @@ exports.IsInRoleRequestCheckModeEnum = {
233
233
  Any: 'any',
234
234
  All: 'all'
235
235
  };
236
- exports.ListOrgRolesSuccessResponseValueValueResourceTypeEnum = {
236
+ exports.ListOrgRolesSuccessResponseValueRolesEnum = {
237
+ Owner: 'Owner',
238
+ PropertyOwner: 'PropertyOwner',
239
+ ManagedOwner: 'ManagedOwner',
240
+ Integrator: 'Integrator',
241
+ PropertyManager: 'PropertyManager',
242
+ FinanceManager: 'FinanceManager'
243
+ };
244
+ exports.ListOrgRolesSuccessResponseValueAnyOfRolesEnum = {
245
+ Owner: 'Owner',
246
+ PropertyOwner: 'PropertyOwner',
247
+ ManagedOwner: 'ManagedOwner',
248
+ Integrator: 'Integrator',
249
+ PropertyManager: 'PropertyManager',
250
+ FinanceManager: 'FinanceManager'
251
+ };
252
+ exports.ListOrgRolesSuccessResponseValueAnyOfValueResourceTypeEnum = {
237
253
  Property: 'Property',
238
254
  Org: 'Org',
239
255
  Brand: 'Brand',
240
256
  SalesChannel: 'SalesChannel'
241
257
  };
242
- exports.ListOrgRolesSuccessResponseValueValueRolesEnum = {
243
- OrgViewer: 'OrgViewer',
244
- OrgManager: 'OrgManager',
245
- OrgAdmin: 'OrgAdmin',
246
- BrandViewer: 'BrandViewer',
247
- BrandManager: 'BrandManager',
248
- BrandAdmin: 'BrandAdmin',
249
- StoreViewer: 'StoreViewer',
250
- StoreEditor: 'StoreEditor',
251
- StoreManager: 'StoreManager',
252
- CustomerViewer: 'CustomerViewer',
253
- CustomerManager: 'CustomerManager',
254
- VoucherViewer: 'VoucherViewer',
255
- VoucherEditor: 'VoucherEditor',
256
- VoucherManager: 'VoucherManager',
257
- VoucherCampaignManager: 'VoucherCampaignManager',
258
- VoucherStatisticsViewer: 'VoucherStatisticsViewer',
259
- AnalyticsViewer: 'AnalyticsViewer',
260
- ReportsViewer: 'ReportsViewer',
261
- FinanceViewer: 'FinanceViewer',
262
- FinanceManager: 'FinanceManager',
263
- TeamViewer: 'TeamViewer',
264
- TeamManager: 'TeamManager',
265
- TeamAdmin: 'TeamAdmin',
266
- TechViewer: 'TechViewer',
267
- TechManager: 'TechManager',
268
- AppStoreViewer: 'AppStoreViewer',
269
- AppStoreManager: 'AppStoreManager',
270
- SalesChannelViewer: 'SalesChannelViewer',
271
- SalesChannelEditor: 'SalesChannelEditor',
272
- SalesChannelManager: 'SalesChannelManager',
273
- DeliveryViewer: 'DeliveryViewer',
274
- DeliveryManager: 'DeliveryManager',
275
- DriverManager: 'DriverManager',
276
- AuditViewer: 'AuditViewer',
277
- AuditManager: 'AuditManager',
278
- AccountsViewer: 'AccountsViewer',
279
- AccountsEditor: 'AccountsEditor',
280
- DocumentExplorerViewer: 'DocumentExplorerViewer',
281
- DocumentExplorerEditor: 'DocumentExplorerEditor',
282
- PayrollViewer: 'PayrollViewer',
283
- PayrollEditor: 'PayrollEditor',
284
- PropertyViewer: 'PropertyViewer',
285
- PropertyManager: 'PropertyManager',
286
- PropertyAdmin: 'PropertyAdmin',
287
- WebsiteContentEditor: 'WebsiteContentEditor',
288
- WebsiteContentViewer: 'WebsiteContentViewer',
289
- WebsiteTechViewer: 'WebsiteTechViewer',
290
- MenuViewer: 'MenuViewer',
291
- MenuEditor: 'MenuEditor',
292
- MenuManager: 'MenuManager',
293
- MenuMetaFieldManager: 'MenuMetaFieldManager',
294
- MenuMetaFieldEditor: 'MenuMetaFieldEditor',
295
- MenuMetaFieldViewer: 'MenuMetaFieldViewer',
296
- StoreDeliveryZoneManager: 'StoreDeliveryZoneManager',
297
- StoreDeliveryZoneEditor: 'StoreDeliveryZoneEditor',
298
- StoreDeliveryZoneViewer: 'StoreDeliveryZoneViewer',
299
- OrderFulfillmentManager: 'OrderFulfillmentManager',
300
- OrderManager: 'OrderManager',
301
- OrderEditor: 'OrderEditor',
302
- OrderViewer: 'OrderViewer',
303
- InventoryManager: 'InventoryManager',
304
- InventoryEditor: 'InventoryEditor',
305
- InventoryViewer: 'InventoryViewer',
306
- PaymentManager: 'PaymentManager',
307
- OnboardingManager: 'OnboardingManager',
308
- FeatureFlagManager: 'FeatureFlagManager',
309
- PropertyOwnerMisc: 'PropertyOwnerMisc',
310
- ManagedOwnerMisc: 'ManagedOwnerMisc',
311
- IntegratorMisc: 'IntegratorMisc',
312
- PropertyManagerMisc: 'PropertyManagerMisc',
313
- FinanceManagerMisc: 'FinanceManagerMisc',
314
- SupportMisc: 'SupportMisc'
315
- };
316
258
  /**
317
259
  * Permissions
318
260
  * @export
@@ -545,6 +487,7 @@ exports.Permissions = {
545
487
  ViewOrg: 'ViewOrg',
546
488
  ViewWebhooks: 'ViewWebhooks',
547
489
  EditWebhooks: 'EditWebhooks',
490
+ ViewOwnPermissions: 'ViewOwnPermissions',
548
491
  RoleAdmin: 'RoleAdmin',
549
492
  RoleFactory: 'RoleFactory',
550
493
  RoleAuthDeveloper: 'RoleAuthDeveloper'
@@ -2301,6 +2244,54 @@ var RoleAssignmentApiAxiosParamCreator = function (configuration) {
2301
2244
  });
2302
2245
  });
2303
2246
  },
2247
+ /**
2248
+ * Rematerializes a V2 role assignment and applies the resulting policy assignments
2249
+ * @summary Rematerialize V2 Role Assignment
2250
+ * @param {string} orgId
2251
+ * @param {RematerializeRoleAssignmentV2RequestBody} [rematerializeRoleAssignmentV2RequestBody]
2252
+ * @param {*} [options] Override http request option.
2253
+ * @throws {RequiredError}
2254
+ */
2255
+ rematerializeRoleAssignmentV2: function (orgId_1, rematerializeRoleAssignmentV2RequestBody_1) {
2256
+ var args_1 = [];
2257
+ for (var _i = 2; _i < arguments.length; _i++) {
2258
+ args_1[_i - 2] = arguments[_i];
2259
+ }
2260
+ return __awaiter(_this, __spreadArray([orgId_1, rematerializeRoleAssignmentV2RequestBody_1], args_1, true), void 0, function (orgId, rematerializeRoleAssignmentV2RequestBody, options) {
2261
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2262
+ if (options === void 0) { options = {}; }
2263
+ return __generator(this, function (_a) {
2264
+ switch (_a.label) {
2265
+ case 0:
2266
+ // verify required parameter 'orgId' is not null or undefined
2267
+ (0, common_1.assertParamExists)('rematerializeRoleAssignmentV2', 'orgId', orgId);
2268
+ localVarPath = "/orgs/{orgId}/roleAssignments/v2/rematerialize"
2269
+ .replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
2270
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2271
+ if (configuration) {
2272
+ baseOptions = configuration.baseOptions;
2273
+ }
2274
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
2275
+ localVarHeaderParameter = {};
2276
+ localVarQueryParameter = {};
2277
+ // authentication ApiKeyAuth required
2278
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
2279
+ case 1:
2280
+ // authentication ApiKeyAuth required
2281
+ _a.sent();
2282
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2283
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2284
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2285
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2286
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(rematerializeRoleAssignmentV2RequestBody, localVarRequestOptions, configuration);
2287
+ return [2 /*return*/, {
2288
+ url: (0, common_1.toPathString)(localVarUrlObj),
2289
+ options: localVarRequestOptions,
2290
+ }];
2291
+ }
2292
+ });
2293
+ });
2294
+ },
2304
2295
  /**
2305
2296
  * Revokes a forbidden role from a given principal (user, group, etc.)
2306
2297
  * @summary Revoke Forbidden Role from Principal
@@ -2532,6 +2523,30 @@ var RoleAssignmentApiFp = function (configuration) {
2532
2523
  });
2533
2524
  });
2534
2525
  },
2526
+ /**
2527
+ * Rematerializes a V2 role assignment and applies the resulting policy assignments
2528
+ * @summary Rematerialize V2 Role Assignment
2529
+ * @param {string} orgId
2530
+ * @param {RematerializeRoleAssignmentV2RequestBody} [rematerializeRoleAssignmentV2RequestBody]
2531
+ * @param {*} [options] Override http request option.
2532
+ * @throws {RequiredError}
2533
+ */
2534
+ rematerializeRoleAssignmentV2: function (orgId, rematerializeRoleAssignmentV2RequestBody, options) {
2535
+ return __awaiter(this, void 0, void 0, function () {
2536
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2537
+ var _a, _b, _c;
2538
+ return __generator(this, function (_d) {
2539
+ switch (_d.label) {
2540
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.rematerializeRoleAssignmentV2(orgId, rematerializeRoleAssignmentV2RequestBody, options)];
2541
+ case 1:
2542
+ localVarAxiosArgs = _d.sent();
2543
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2544
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RoleAssignmentApi.rematerializeRoleAssignmentV2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2545
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2546
+ }
2547
+ });
2548
+ });
2549
+ },
2535
2550
  /**
2536
2551
  * Revokes a forbidden role from a given principal (user, group, etc.)
2537
2552
  * @summary Revoke Forbidden Role from Principal
@@ -2649,6 +2664,17 @@ var RoleAssignmentApiFactory = function (configuration, basePath, axios) {
2649
2664
  grantTeammateAccess: function (orgId, userId, grantTeammateAccessRequestBody, options) {
2650
2665
  return localVarFp.grantTeammateAccess(orgId, userId, grantTeammateAccessRequestBody, options).then(function (request) { return request(axios, basePath); });
2651
2666
  },
2667
+ /**
2668
+ * Rematerializes a V2 role assignment and applies the resulting policy assignments
2669
+ * @summary Rematerialize V2 Role Assignment
2670
+ * @param {string} orgId
2671
+ * @param {RematerializeRoleAssignmentV2RequestBody} [rematerializeRoleAssignmentV2RequestBody]
2672
+ * @param {*} [options] Override http request option.
2673
+ * @throws {RequiredError}
2674
+ */
2675
+ rematerializeRoleAssignmentV2: function (orgId, rematerializeRoleAssignmentV2RequestBody, options) {
2676
+ return localVarFp.rematerializeRoleAssignmentV2(orgId, rematerializeRoleAssignmentV2RequestBody, options).then(function (request) { return request(axios, basePath); });
2677
+ },
2652
2678
  /**
2653
2679
  * Revokes a forbidden role from a given principal (user, group, etc.)
2654
2680
  * @summary Revoke Forbidden Role from Principal
@@ -2737,6 +2763,19 @@ var RoleAssignmentApi = /** @class */ (function (_super) {
2737
2763
  var _this = this;
2738
2764
  return (0, exports.RoleAssignmentApiFp)(this.configuration).grantTeammateAccess(orgId, userId, grantTeammateAccessRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
2739
2765
  };
2766
+ /**
2767
+ * Rematerializes a V2 role assignment and applies the resulting policy assignments
2768
+ * @summary Rematerialize V2 Role Assignment
2769
+ * @param {string} orgId
2770
+ * @param {RematerializeRoleAssignmentV2RequestBody} [rematerializeRoleAssignmentV2RequestBody]
2771
+ * @param {*} [options] Override http request option.
2772
+ * @throws {RequiredError}
2773
+ * @memberof RoleAssignmentApi
2774
+ */
2775
+ RoleAssignmentApi.prototype.rematerializeRoleAssignmentV2 = function (orgId, rematerializeRoleAssignmentV2RequestBody, options) {
2776
+ var _this = this;
2777
+ return (0, exports.RoleAssignmentApiFp)(this.configuration).rematerializeRoleAssignmentV2(orgId, rematerializeRoleAssignmentV2RequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
2778
+ };
2740
2779
  /**
2741
2780
  * Revokes a forbidden role from a given principal (user, group, etc.)
2742
2781
  * @summary Revoke Forbidden Role from Principal
@@ -36,7 +36,7 @@ var Configuration = /** @class */ (function () {
36
36
  this.serverIndex = param.serverIndex;
37
37
  var extraHeaders = param.useDefaultUserAgent ? {} : {
38
38
  headers: {
39
- "user-agent": "Flipdish authorization typescript SDK / 0.2.33"
39
+ "user-agent": "Flipdish authorization typescript SDK / 0.2.34-rc.1779194216"
40
40
  }
41
41
  };
42
42
  this.baseOptions = __assign(__assign({}, extraHeaders), param.baseOptions);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flipdish/authorization",
3
- "version": "0.2.33",
3
+ "version": "0.2.34-rc.1779194216",
4
4
  "description": "OpenAPI client for @flipdish/authorization",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {