@flipdish/authorization 0.0.239-rc.1785278986 → 0.0.243-rc.1785744128
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/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api.d.ts +19 -19
- package/dist/configuration.js +1 -1
- package/package.json +1 -1
package/common.ts
CHANGED
|
@@ -143,8 +143,8 @@ export const toPathString = function (url: URL) {
|
|
|
143
143
|
* @export
|
|
144
144
|
*/
|
|
145
145
|
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
|
|
146
|
-
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
146
|
+
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH): Promise<R> => {
|
|
147
147
|
const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};
|
|
148
|
-
return axios.request<T, R>(axiosRequestArgs)
|
|
148
|
+
return axios.request<T, R>(axiosRequestArgs) as Promise<R>;
|
|
149
149
|
};
|
|
150
150
|
}
|
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.0.
|
|
103
|
+
"user-agent": "Flipdish authorization typescript SDK / 0.0.243-rc.1785744128"
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
106
|
|
package/dist/api.d.ts
CHANGED
|
@@ -1628,7 +1628,7 @@ export declare class AuthenticationApi extends BaseAPI {
|
|
|
1628
1628
|
* @throws {RequiredError}
|
|
1629
1629
|
* @memberof AuthenticationApi
|
|
1630
1630
|
*/
|
|
1631
|
-
authenticateAndAuthorize(authenticateAndAuthorizeRequest: AuthenticateAndAuthorizeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthenticateAndAuthorizeResponse, any, {}>>;
|
|
1631
|
+
authenticateAndAuthorize(authenticateAndAuthorizeRequest: AuthenticateAndAuthorizeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthenticateAndAuthorizeResponse, any, {}, any>>;
|
|
1632
1632
|
}
|
|
1633
1633
|
/**
|
|
1634
1634
|
* AuthorizationApi - axios parameter creator
|
|
@@ -1783,7 +1783,7 @@ export declare class AuthorizationApi extends BaseAPI {
|
|
|
1783
1783
|
* @throws {RequiredError}
|
|
1784
1784
|
* @memberof AuthorizationApi
|
|
1785
1785
|
*/
|
|
1786
|
-
authenticateAndAuthorize(authenticateAndAuthorizeRequest: AuthenticateAndAuthorizeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthenticateAndAuthorizeResponse, any, {}>>;
|
|
1786
|
+
authenticateAndAuthorize(authenticateAndAuthorizeRequest: AuthenticateAndAuthorizeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthenticateAndAuthorizeResponse, any, {}, any>>;
|
|
1787
1787
|
/**
|
|
1788
1788
|
* Authenticate and check if a user is in any/all of the roles
|
|
1789
1789
|
* @summary Authenticate and Check Is In Role
|
|
@@ -1792,7 +1792,7 @@ export declare class AuthorizationApi extends BaseAPI {
|
|
|
1792
1792
|
* @throws {RequiredError}
|
|
1793
1793
|
* @memberof AuthorizationApi
|
|
1794
1794
|
*/
|
|
1795
|
-
authenticateAndCheckIsInRole(authenticateAndCheckIsInRoleRequest?: AuthenticateAndCheckIsInRoleRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthenticateAndCheckIsInRoleResponse, any, {}>>;
|
|
1795
|
+
authenticateAndCheckIsInRole(authenticateAndCheckIsInRoleRequest?: AuthenticateAndCheckIsInRoleRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthenticateAndCheckIsInRoleResponse, any, {}, any>>;
|
|
1796
1796
|
/**
|
|
1797
1797
|
* Check if a user is authorized to perform an action
|
|
1798
1798
|
* @summary Authorize Request
|
|
@@ -1801,7 +1801,7 @@ export declare class AuthorizationApi extends BaseAPI {
|
|
|
1801
1801
|
* @throws {RequiredError}
|
|
1802
1802
|
* @memberof AuthorizationApi
|
|
1803
1803
|
*/
|
|
1804
|
-
authorize(authorizationRequest?: AuthorizationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthorizationResponse, any, {}>>;
|
|
1804
|
+
authorize(authorizationRequest?: AuthorizationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthorizationResponse, any, {}, any>>;
|
|
1805
1805
|
/**
|
|
1806
1806
|
* Check if a user is authorized to perform an action on multiple resources
|
|
1807
1807
|
* @summary Authorize Batch Request
|
|
@@ -1810,7 +1810,7 @@ export declare class AuthorizationApi extends BaseAPI {
|
|
|
1810
1810
|
* @throws {RequiredError}
|
|
1811
1811
|
* @memberof AuthorizationApi
|
|
1812
1812
|
*/
|
|
1813
|
-
authorizeBatch(authorizationBatchRequest?: AuthorizationBatchRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthorizationBatchResponse, any, {}>>;
|
|
1813
|
+
authorizeBatch(authorizationBatchRequest?: AuthorizationBatchRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthorizationBatchResponse, any, {}, any>>;
|
|
1814
1814
|
/**
|
|
1815
1815
|
* Check if a user is in any/all of the roles
|
|
1816
1816
|
* @summary Check Is In Role
|
|
@@ -1819,7 +1819,7 @@ export declare class AuthorizationApi extends BaseAPI {
|
|
|
1819
1819
|
* @throws {RequiredError}
|
|
1820
1820
|
* @memberof AuthorizationApi
|
|
1821
1821
|
*/
|
|
1822
|
-
checkIsInRole(isInRoleRequest?: IsInRoleRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IsInRoleResponse, any, {}>>;
|
|
1822
|
+
checkIsInRole(isInRoleRequest?: IsInRoleRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IsInRoleResponse, any, {}, any>>;
|
|
1823
1823
|
}
|
|
1824
1824
|
/**
|
|
1825
1825
|
* AuthorizedEntitiesApi - axios parameter creator
|
|
@@ -1933,7 +1933,7 @@ export declare class AuthorizedEntitiesApi extends BaseAPI {
|
|
|
1933
1933
|
* @throws {RequiredError}
|
|
1934
1934
|
* @memberof AuthorizedEntitiesApi
|
|
1935
1935
|
*/
|
|
1936
|
-
getAuthorizedBrands(orgId: string, getAuthorizedBrandsRequest?: GetAuthorizedBrandsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAuthorizedBrandsResponse, any, {}>>;
|
|
1936
|
+
getAuthorizedBrands(orgId: string, getAuthorizedBrandsRequest?: GetAuthorizedBrandsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAuthorizedBrandsResponse, any, {}, any>>;
|
|
1937
1937
|
/**
|
|
1938
1938
|
* Get the authorized orgs for a given principal
|
|
1939
1939
|
* @summary Get Authorized Orgs
|
|
@@ -1942,7 +1942,7 @@ export declare class AuthorizedEntitiesApi extends BaseAPI {
|
|
|
1942
1942
|
* @throws {RequiredError}
|
|
1943
1943
|
* @memberof AuthorizedEntitiesApi
|
|
1944
1944
|
*/
|
|
1945
|
-
getAuthorizedOrgs(getAuthorizedOrgsRequest?: GetAuthorizedOrgsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAuthorizedOrgsResponse, any, {}>>;
|
|
1945
|
+
getAuthorizedOrgs(getAuthorizedOrgsRequest?: GetAuthorizedOrgsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAuthorizedOrgsResponse, any, {}, any>>;
|
|
1946
1946
|
/**
|
|
1947
1947
|
* Get the authorized properties for a given org
|
|
1948
1948
|
* @summary Get Authorized Properties
|
|
@@ -1952,7 +1952,7 @@ export declare class AuthorizedEntitiesApi extends BaseAPI {
|
|
|
1952
1952
|
* @throws {RequiredError}
|
|
1953
1953
|
* @memberof AuthorizedEntitiesApi
|
|
1954
1954
|
*/
|
|
1955
|
-
getAuthorizedProperties(orgId: string, getAuthorizedPropertiesRequest?: GetAuthorizedPropertiesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAuthorizedPropertiesResponse, any, {}>>;
|
|
1955
|
+
getAuthorizedProperties(orgId: string, getAuthorizedPropertiesRequest?: GetAuthorizedPropertiesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAuthorizedPropertiesResponse, any, {}, any>>;
|
|
1956
1956
|
}
|
|
1957
1957
|
/**
|
|
1958
1958
|
* ConfigurationDataApi - axios parameter creator
|
|
@@ -2028,7 +2028,7 @@ export declare class ConfigurationDataApi extends BaseAPI {
|
|
|
2028
2028
|
* @throws {RequiredError}
|
|
2029
2029
|
* @memberof ConfigurationDataApi
|
|
2030
2030
|
*/
|
|
2031
|
-
listPermissions(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPermissionsSuccessResponse, any, {}>>;
|
|
2031
|
+
listPermissions(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPermissionsSuccessResponse, any, {}, any>>;
|
|
2032
2032
|
/**
|
|
2033
2033
|
* List the available roles
|
|
2034
2034
|
* @summary List Roles
|
|
@@ -2036,7 +2036,7 @@ export declare class ConfigurationDataApi extends BaseAPI {
|
|
|
2036
2036
|
* @throws {RequiredError}
|
|
2037
2037
|
* @memberof ConfigurationDataApi
|
|
2038
2038
|
*/
|
|
2039
|
-
listRoles(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListRolesSuccessResponse, any, {}>>;
|
|
2039
|
+
listRoles(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListRolesSuccessResponse, any, {}, any>>;
|
|
2040
2040
|
}
|
|
2041
2041
|
/**
|
|
2042
2042
|
* RoleAssignmentApi - axios parameter creator
|
|
@@ -2153,7 +2153,7 @@ export declare class RoleAssignmentApi extends BaseAPI {
|
|
|
2153
2153
|
* @throws {RequiredError}
|
|
2154
2154
|
* @memberof RoleAssignmentApi
|
|
2155
2155
|
*/
|
|
2156
|
-
applyRoleAssignment(orgId: string, roleAssignmentRequestBody?: RoleAssignmentRequestBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RoleAssignmentSuccessResponse, any, {}>>;
|
|
2156
|
+
applyRoleAssignment(orgId: string, roleAssignmentRequestBody?: RoleAssignmentRequestBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RoleAssignmentSuccessResponse, any, {}, any>>;
|
|
2157
2157
|
/**
|
|
2158
2158
|
* Rematerializes a role assignment and applies the resulting policy assignments
|
|
2159
2159
|
* @summary Rematerialize Role Assignment
|
|
@@ -2163,7 +2163,7 @@ export declare class RoleAssignmentApi extends BaseAPI {
|
|
|
2163
2163
|
* @throws {RequiredError}
|
|
2164
2164
|
* @memberof RoleAssignmentApi
|
|
2165
2165
|
*/
|
|
2166
|
-
rematerializeRoleAssignmentV2(orgId: string, rematerializeRoleAssignmentRequestBody?: RematerializeRoleAssignmentRequestBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RematerializeRoleAssignmentSuccessResponse, any, {}>>;
|
|
2166
|
+
rematerializeRoleAssignmentV2(orgId: string, rematerializeRoleAssignmentRequestBody?: RematerializeRoleAssignmentRequestBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RematerializeRoleAssignmentSuccessResponse, any, {}, any>>;
|
|
2167
2167
|
/**
|
|
2168
2168
|
* 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.
|
|
2169
2169
|
* @summary Remove teammate
|
|
@@ -2173,7 +2173,7 @@ export declare class RoleAssignmentApi extends BaseAPI {
|
|
|
2173
2173
|
* @throws {RequiredError}
|
|
2174
2174
|
* @memberof RoleAssignmentApi
|
|
2175
2175
|
*/
|
|
2176
|
-
removeTeammate(orgId: string, removeTeammateRequestBody?: RemoveTeammateRequestBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RemoveTeammateSuccessResponse, any, {}>>;
|
|
2176
|
+
removeTeammate(orgId: string, removeTeammateRequestBody?: RemoveTeammateRequestBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RemoveTeammateSuccessResponse, any, {}, any>>;
|
|
2177
2177
|
}
|
|
2178
2178
|
/**
|
|
2179
2179
|
* UserManagementApi - axios parameter creator
|
|
@@ -2232,7 +2232,7 @@ export declare class UserManagementApi extends BaseAPI {
|
|
|
2232
2232
|
* @throws {RequiredError}
|
|
2233
2233
|
* @memberof UserManagementApi
|
|
2234
2234
|
*/
|
|
2235
|
-
listUsersInOrg(orgId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PrincipalsInOrgResponse, any, {}>>;
|
|
2235
|
+
listUsersInOrg(orgId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PrincipalsInOrgResponse, any, {}, any>>;
|
|
2236
2236
|
}
|
|
2237
2237
|
/**
|
|
2238
2238
|
* UserPermissionsApi - axios parameter creator
|
|
@@ -2382,7 +2382,7 @@ export declare class UserPermissionsApi extends BaseAPI {
|
|
|
2382
2382
|
[key: string]: {
|
|
2383
2383
|
[key: string]: GetUserPermissionsSuccessResponseResourcesValue;
|
|
2384
2384
|
};
|
|
2385
|
-
}, any, {}>>;
|
|
2385
|
+
}, any, {}, any>>;
|
|
2386
2386
|
/**
|
|
2387
2387
|
* List the current roles assignments in the org
|
|
2388
2388
|
* @summary List Org Roles
|
|
@@ -2393,7 +2393,7 @@ export declare class UserPermissionsApi extends BaseAPI {
|
|
|
2393
2393
|
*/
|
|
2394
2394
|
listOrgRoles(orgId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<{
|
|
2395
2395
|
[key: string]: ListOrgRolesSuccessResponseValue;
|
|
2396
|
-
}, any, {}>>;
|
|
2396
|
+
}, any, {}, any>>;
|
|
2397
2397
|
/**
|
|
2398
2398
|
* List the available permissions for the current user
|
|
2399
2399
|
* @summary List Own Permissions
|
|
@@ -2402,7 +2402,7 @@ export declare class UserPermissionsApi extends BaseAPI {
|
|
|
2402
2402
|
* @throws {RequiredError}
|
|
2403
2403
|
* @memberof UserPermissionsApi
|
|
2404
2404
|
*/
|
|
2405
|
-
listOwnPermissions(orgId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetUserPermissionsSuccessResponse, any, {}>>;
|
|
2405
|
+
listOwnPermissions(orgId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetUserPermissionsSuccessResponse, any, {}, any>>;
|
|
2406
2406
|
/**
|
|
2407
2407
|
* List the available permissions for a given user
|
|
2408
2408
|
* @summary List User Permissions
|
|
@@ -2412,5 +2412,5 @@ export declare class UserPermissionsApi extends BaseAPI {
|
|
|
2412
2412
|
* @throws {RequiredError}
|
|
2413
2413
|
* @memberof UserPermissionsApi
|
|
2414
2414
|
*/
|
|
2415
|
-
listUserPermissions(orgId: string, userId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetUserPermissionsSuccessResponse, any, {}>>;
|
|
2415
|
+
listUserPermissions(orgId: string, userId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetUserPermissionsSuccessResponse, any, {}, any>>;
|
|
2416
2416
|
}
|
package/dist/configuration.js
CHANGED
|
@@ -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.0.
|
|
39
|
+
"user-agent": "Flipdish authorization typescript SDK / 0.0.243-rc.1785744128"
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
this.baseOptions = __assign(__assign({}, extraHeaders), param.baseOptions);
|
package/package.json
CHANGED