auth0 5.3.1 → 5.5.0
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/dist/cjs/management/BaseClient.d.ts +4 -4
- package/dist/cjs/management/api/requests/requests.d.ts +37 -8
- package/dist/cjs/management/api/resources/actions/client/Client.js +25 -37
- package/dist/cjs/management/api/resources/actions/resources/modules/client/Client.js +22 -28
- package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/Client.js +11 -14
- package/dist/cjs/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.js +11 -14
- package/dist/cjs/management/api/resources/actions/resources/versions/client/Client.js +12 -15
- package/dist/cjs/management/api/resources/branding/resources/phone/resources/providers/client/Client.js +10 -11
- package/dist/cjs/management/api/resources/branding/resources/phone/resources/templates/client/Client.js +10 -11
- package/dist/cjs/management/api/resources/clientGrants/client/Client.js +15 -26
- package/dist/cjs/management/api/resources/clientGrants/resources/organizations/client/Client.js +11 -14
- package/dist/cjs/management/api/resources/clients/client/Client.js +29 -49
- package/dist/cjs/management/api/resources/clients/resources/connections/client/Client.js +18 -28
- package/dist/cjs/management/api/resources/connectionProfiles/client/Client.js +11 -14
- package/dist/cjs/management/api/resources/connections/client/Client.d.ts +2 -2
- package/dist/cjs/management/api/resources/connections/client/Client.js +34 -49
- package/dist/cjs/management/api/resources/connections/resources/clients/client/Client.js +11 -14
- package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.js +13 -16
- package/dist/cjs/management/api/resources/connections/resources/keys/client/Client.d.ts +19 -0
- package/dist/cjs/management/api/resources/connections/resources/keys/client/Client.js +71 -1
- package/dist/cjs/management/api/resources/connections/resources/scimConfiguration/client/Client.d.ts +18 -0
- package/dist/cjs/management/api/resources/connections/resources/scimConfiguration/client/Client.js +78 -1
- package/dist/cjs/management/api/resources/connections/resources/users/client/Client.js +3 -2
- package/dist/cjs/management/api/resources/customDomains/client/Client.js +13 -20
- package/dist/cjs/management/api/resources/deviceCredentials/client/Client.js +17 -32
- package/dist/cjs/management/api/resources/emails/resources/provider/client/Client.js +11 -14
- package/dist/cjs/management/api/resources/eventStreams/client/Client.js +11 -14
- package/dist/cjs/management/api/resources/eventStreams/resources/deliveries/client/Client.js +15 -26
- package/dist/cjs/management/api/resources/flows/client/Client.js +21 -37
- package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.js +14 -23
- package/dist/cjs/management/api/resources/flows/resources/vault/resources/connections/client/Client.js +12 -17
- package/dist/cjs/management/api/resources/forms/client/Client.js +20 -34
- package/dist/cjs/management/api/resources/groups/client/Client.js +16 -29
- package/dist/cjs/management/api/resources/groups/resources/members/client/Client.js +13 -20
- package/dist/cjs/management/api/resources/hooks/client/Client.js +18 -30
- package/dist/cjs/management/api/resources/jobs/resources/usersImports/client/Client.js +14 -14
- package/dist/cjs/management/api/resources/keys/resources/encryption/client/Client.js +12 -17
- package/dist/cjs/management/api/resources/logs/client/Client.js +16 -29
- package/dist/cjs/management/api/resources/networkAcls/client/Client.js +12 -17
- package/dist/cjs/management/api/resources/organizations/client/Client.js +12 -17
- package/dist/cjs/management/api/resources/organizations/resources/clientGrants/client/Client.js +15 -31
- package/dist/cjs/management/api/resources/organizations/resources/discoveryDomains/client/Client.js +11 -14
- package/dist/cjs/management/api/resources/organizations/resources/enabledConnections/client/Client.js +12 -17
- package/dist/cjs/management/api/resources/organizations/resources/invitations/client/Client.js +26 -40
- package/dist/cjs/management/api/resources/organizations/resources/members/client/Client.js +13 -20
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/roles/client/Client.js +12 -17
- package/dist/cjs/management/api/resources/prompts/resources/rendering/client/Client.js +17 -32
- package/dist/cjs/management/api/resources/resourceServers/client/Client.js +24 -39
- package/dist/cjs/management/api/resources/roles/client/Client.js +13 -20
- package/dist/cjs/management/api/resources/roles/resources/permissions/client/Client.js +12 -17
- package/dist/cjs/management/api/resources/roles/resources/users/client/Client.js +11 -14
- package/dist/cjs/management/api/resources/rules/client/Client.js +26 -40
- package/dist/cjs/management/api/resources/selfServiceProfiles/client/Client.js +12 -17
- package/dist/cjs/management/api/resources/stats/client/Client.js +4 -7
- package/dist/cjs/management/api/resources/tenants/resources/settings/client/Client.js +11 -14
- package/dist/cjs/management/api/resources/tokenExchangeProfiles/client/Client.js +11 -14
- package/dist/cjs/management/api/resources/userAttributeProfiles/client/Client.js +11 -14
- package/dist/cjs/management/api/resources/userBlocks/client/Client.js +24 -25
- package/dist/cjs/management/api/resources/userGrants/client/Client.js +18 -28
- package/dist/cjs/management/api/resources/users/client/Client.js +42 -67
- package/dist/cjs/management/api/resources/users/resources/authenticationMethods/client/Client.js +12 -17
- package/dist/cjs/management/api/resources/users/resources/connectedAccounts/client/Client.js +11 -14
- package/dist/cjs/management/api/resources/users/resources/groups/client/Client.js +13 -20
- package/dist/cjs/management/api/resources/users/resources/logs/client/Client.js +13 -20
- package/dist/cjs/management/api/resources/users/resources/organizations/client/Client.js +12 -17
- package/dist/cjs/management/api/resources/users/resources/permissions/client/Client.js +12 -17
- package/dist/cjs/management/api/resources/users/resources/refreshToken/client/Client.js +11 -14
- package/dist/cjs/management/api/resources/users/resources/roles/client/Client.js +12 -17
- package/dist/cjs/management/api/resources/users/resources/sessions/client/Client.js +11 -14
- package/dist/cjs/management/api/resources/verifiableCredentials/resources/verification/resources/templates/client/Client.js +11 -14
- package/dist/cjs/management/api/types/types.d.ts +4464 -4299
- package/dist/cjs/management/api/types/types.js +46 -12
- package/dist/cjs/management/auth/BearerAuthProvider.d.ts +14 -10
- package/dist/cjs/management/auth/BearerAuthProvider.js +15 -6
- package/dist/cjs/management/core/fetcher/EndpointSupplier.d.ts +2 -2
- package/dist/cjs/management/core/fetcher/Fetcher.d.ts +1 -2
- package/dist/cjs/management/core/fetcher/Fetcher.js +7 -1
- package/dist/cjs/management/core/form-data-utils/FormDataWrapper.js +1 -1
- package/dist/cjs/management/core/headers.d.ts +2 -2
- package/dist/cjs/management/core/pagination/CustomPager.d.ts +29 -44
- package/dist/cjs/management/core/pagination/CustomPager.js +60 -42
- package/dist/cjs/management/core/pagination/exports.d.ts +0 -1
- package/dist/cjs/management/core/pagination/exports.js +0 -3
- package/dist/cjs/management/core/pagination/index.d.ts +1 -1
- package/dist/cjs/management/core/pagination/index.js +2 -1
- package/dist/cjs/management/version.d.ts +1 -1
- package/dist/cjs/management/version.js +1 -1
- package/dist/esm/management/BaseClient.d.mts +4 -4
- package/dist/esm/management/api/requests/requests.d.mts +37 -8
- package/dist/esm/management/api/resources/actions/client/Client.mjs +25 -37
- package/dist/esm/management/api/resources/actions/resources/modules/client/Client.mjs +22 -28
- package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/Client.mjs +11 -14
- package/dist/esm/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.mjs +11 -14
- package/dist/esm/management/api/resources/actions/resources/versions/client/Client.mjs +12 -15
- package/dist/esm/management/api/resources/branding/resources/phone/resources/providers/client/Client.mjs +10 -11
- package/dist/esm/management/api/resources/branding/resources/phone/resources/templates/client/Client.mjs +10 -11
- package/dist/esm/management/api/resources/clientGrants/client/Client.mjs +15 -26
- package/dist/esm/management/api/resources/clientGrants/resources/organizations/client/Client.mjs +11 -14
- package/dist/esm/management/api/resources/clients/client/Client.mjs +29 -49
- package/dist/esm/management/api/resources/clients/resources/connections/client/Client.mjs +18 -28
- package/dist/esm/management/api/resources/connectionProfiles/client/Client.mjs +11 -14
- package/dist/esm/management/api/resources/connections/client/Client.d.mts +2 -2
- package/dist/esm/management/api/resources/connections/client/Client.mjs +34 -49
- package/dist/esm/management/api/resources/connections/resources/clients/client/Client.mjs +11 -14
- package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.mjs +13 -16
- package/dist/esm/management/api/resources/connections/resources/keys/client/Client.d.mts +19 -0
- package/dist/esm/management/api/resources/connections/resources/keys/client/Client.mjs +71 -1
- package/dist/esm/management/api/resources/connections/resources/scimConfiguration/client/Client.d.mts +18 -0
- package/dist/esm/management/api/resources/connections/resources/scimConfiguration/client/Client.mjs +78 -1
- package/dist/esm/management/api/resources/connections/resources/users/client/Client.mjs +3 -2
- package/dist/esm/management/api/resources/customDomains/client/Client.mjs +13 -20
- package/dist/esm/management/api/resources/deviceCredentials/client/Client.mjs +17 -32
- package/dist/esm/management/api/resources/emails/resources/provider/client/Client.mjs +11 -14
- package/dist/esm/management/api/resources/eventStreams/client/Client.mjs +11 -14
- package/dist/esm/management/api/resources/eventStreams/resources/deliveries/client/Client.mjs +15 -26
- package/dist/esm/management/api/resources/flows/client/Client.mjs +21 -37
- package/dist/esm/management/api/resources/flows/resources/executions/client/Client.mjs +14 -23
- package/dist/esm/management/api/resources/flows/resources/vault/resources/connections/client/Client.mjs +12 -17
- package/dist/esm/management/api/resources/forms/client/Client.mjs +20 -34
- package/dist/esm/management/api/resources/groups/client/Client.mjs +16 -29
- package/dist/esm/management/api/resources/groups/resources/members/client/Client.mjs +13 -20
- package/dist/esm/management/api/resources/hooks/client/Client.mjs +18 -30
- package/dist/esm/management/api/resources/jobs/resources/usersImports/client/Client.mjs +14 -14
- package/dist/esm/management/api/resources/keys/resources/encryption/client/Client.mjs +12 -17
- package/dist/esm/management/api/resources/logs/client/Client.mjs +16 -29
- package/dist/esm/management/api/resources/networkAcls/client/Client.mjs +12 -17
- package/dist/esm/management/api/resources/organizations/client/Client.mjs +12 -17
- package/dist/esm/management/api/resources/organizations/resources/clientGrants/client/Client.mjs +15 -31
- package/dist/esm/management/api/resources/organizations/resources/discoveryDomains/client/Client.mjs +11 -14
- package/dist/esm/management/api/resources/organizations/resources/enabledConnections/client/Client.mjs +12 -17
- package/dist/esm/management/api/resources/organizations/resources/invitations/client/Client.mjs +26 -40
- package/dist/esm/management/api/resources/organizations/resources/members/client/Client.mjs +13 -20
- package/dist/esm/management/api/resources/organizations/resources/members/resources/roles/client/Client.mjs +12 -17
- package/dist/esm/management/api/resources/prompts/resources/rendering/client/Client.mjs +17 -32
- package/dist/esm/management/api/resources/resourceServers/client/Client.mjs +24 -39
- package/dist/esm/management/api/resources/roles/client/Client.mjs +13 -20
- package/dist/esm/management/api/resources/roles/resources/permissions/client/Client.mjs +12 -17
- package/dist/esm/management/api/resources/roles/resources/users/client/Client.mjs +11 -14
- package/dist/esm/management/api/resources/rules/client/Client.mjs +26 -40
- package/dist/esm/management/api/resources/selfServiceProfiles/client/Client.mjs +12 -17
- package/dist/esm/management/api/resources/stats/client/Client.mjs +4 -7
- package/dist/esm/management/api/resources/tenants/resources/settings/client/Client.mjs +11 -14
- package/dist/esm/management/api/resources/tokenExchangeProfiles/client/Client.mjs +11 -14
- package/dist/esm/management/api/resources/userAttributeProfiles/client/Client.mjs +11 -14
- package/dist/esm/management/api/resources/userBlocks/client/Client.mjs +24 -25
- package/dist/esm/management/api/resources/userGrants/client/Client.mjs +18 -28
- package/dist/esm/management/api/resources/users/client/Client.mjs +42 -67
- package/dist/esm/management/api/resources/users/resources/authenticationMethods/client/Client.mjs +12 -17
- package/dist/esm/management/api/resources/users/resources/connectedAccounts/client/Client.mjs +11 -14
- package/dist/esm/management/api/resources/users/resources/groups/client/Client.mjs +13 -20
- package/dist/esm/management/api/resources/users/resources/logs/client/Client.mjs +13 -20
- package/dist/esm/management/api/resources/users/resources/organizations/client/Client.mjs +12 -17
- package/dist/esm/management/api/resources/users/resources/permissions/client/Client.mjs +12 -17
- package/dist/esm/management/api/resources/users/resources/refreshToken/client/Client.mjs +11 -14
- package/dist/esm/management/api/resources/users/resources/roles/client/Client.mjs +12 -17
- package/dist/esm/management/api/resources/users/resources/sessions/client/Client.mjs +11 -14
- package/dist/esm/management/api/resources/verifiableCredentials/resources/verification/resources/templates/client/Client.mjs +11 -14
- package/dist/esm/management/api/types/types.d.mts +4464 -4299
- package/dist/esm/management/api/types/types.mjs +37 -3
- package/dist/esm/management/auth/BearerAuthProvider.d.mts +14 -10
- package/dist/esm/management/auth/BearerAuthProvider.mjs +15 -6
- package/dist/esm/management/core/fetcher/EndpointSupplier.d.mts +2 -2
- package/dist/esm/management/core/fetcher/Fetcher.d.mts +1 -2
- package/dist/esm/management/core/fetcher/Fetcher.mjs +7 -1
- package/dist/esm/management/core/form-data-utils/FormDataWrapper.mjs +1 -1
- package/dist/esm/management/core/headers.d.mts +2 -2
- package/dist/esm/management/core/pagination/CustomPager.d.mts +29 -44
- package/dist/esm/management/core/pagination/CustomPager.mjs +58 -41
- package/dist/esm/management/core/pagination/exports.d.mts +0 -1
- package/dist/esm/management/core/pagination/exports.mjs +1 -1
- package/dist/esm/management/core/pagination/index.d.mts +1 -1
- package/dist/esm/management/core/pagination/index.mjs +1 -1
- package/dist/esm/management/version.d.mts +1 -1
- package/dist/esm/management/version.mjs +1 -1
- package/package.json +4 -3
- package/reference.md +271 -119
|
@@ -89,32 +89,25 @@ class RolesClient {
|
|
|
89
89
|
list() {
|
|
90
90
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
91
91
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
92
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
92
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
93
93
|
const { per_page: perPage = 50, page = 0, include_totals: includeTotals = true, name_filter: nameFilter, } = request;
|
|
94
|
-
const _queryParams = {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
if (includeTotals !== undefined) {
|
|
102
|
-
_queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
|
|
103
|
-
}
|
|
104
|
-
if (nameFilter !== undefined) {
|
|
105
|
-
_queryParams["name_filter"] = nameFilter;
|
|
106
|
-
}
|
|
94
|
+
const _queryParams = {
|
|
95
|
+
per_page: perPage,
|
|
96
|
+
page,
|
|
97
|
+
include_totals: includeTotals,
|
|
98
|
+
name_filter: nameFilter,
|
|
99
|
+
};
|
|
107
100
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
108
|
-
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (
|
|
109
|
-
const _response = yield ((
|
|
110
|
-
url: core.url.join((
|
|
101
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
102
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
103
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "roles"),
|
|
111
104
|
method: "GET",
|
|
112
105
|
headers: _headers,
|
|
113
106
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
114
|
-
timeoutMs: ((
|
|
115
|
-
maxRetries: (
|
|
107
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
108
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
116
109
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
117
|
-
fetchFn: (
|
|
110
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
118
111
|
logging: this._options.logging,
|
|
119
112
|
});
|
|
120
113
|
if (_response.ok) {
|
|
@@ -78,29 +78,24 @@ class PermissionsClient {
|
|
|
78
78
|
list(id_1) {
|
|
79
79
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
80
80
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
81
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
81
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
82
82
|
const { per_page: perPage = 50, page = 0, include_totals: includeTotals = true } = request;
|
|
83
|
-
const _queryParams = {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
_queryParams["page"] = (_b = page === null || page === void 0 ? void 0 : page.toString()) !== null && _b !== void 0 ? _b : null;
|
|
89
|
-
}
|
|
90
|
-
if (includeTotals !== undefined) {
|
|
91
|
-
_queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
|
|
92
|
-
}
|
|
83
|
+
const _queryParams = {
|
|
84
|
+
per_page: perPage,
|
|
85
|
+
page,
|
|
86
|
+
include_totals: includeTotals,
|
|
87
|
+
};
|
|
93
88
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
94
|
-
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (
|
|
95
|
-
const _response = yield ((
|
|
96
|
-
url: core.url.join((
|
|
89
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
90
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
91
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, `roles/${core.url.encodePathParam(id)}/permissions`),
|
|
97
92
|
method: "GET",
|
|
98
93
|
headers: _headers,
|
|
99
94
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
100
|
-
timeoutMs: ((
|
|
101
|
-
maxRetries: (
|
|
95
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
96
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
102
97
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
103
|
-
fetchFn: (
|
|
98
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
104
99
|
logging: this._options.logging,
|
|
105
100
|
});
|
|
106
101
|
if (_response.ok) {
|
|
@@ -95,26 +95,23 @@ class UsersClient {
|
|
|
95
95
|
list(id_1) {
|
|
96
96
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
97
97
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
98
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
98
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
99
99
|
const { from: from_, take = 50 } = request;
|
|
100
|
-
const _queryParams = {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
104
|
-
if (take !== undefined) {
|
|
105
|
-
_queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
|
|
106
|
-
}
|
|
100
|
+
const _queryParams = {
|
|
101
|
+
from: from_,
|
|
102
|
+
take,
|
|
103
|
+
};
|
|
107
104
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
108
|
-
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (
|
|
109
|
-
const _response = yield ((
|
|
110
|
-
url: core.url.join((
|
|
105
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
106
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
107
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, `roles/${core.url.encodePathParam(id)}/users`),
|
|
111
108
|
method: "GET",
|
|
112
109
|
headers: _headers,
|
|
113
110
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
114
|
-
timeoutMs: ((
|
|
115
|
-
maxRetries: (
|
|
111
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
112
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
116
113
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
117
|
-
fetchFn: (
|
|
114
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
118
115
|
logging: this._options.logging,
|
|
119
116
|
});
|
|
120
117
|
if (_response.ok) {
|
|
@@ -80,38 +80,27 @@ class RulesClient {
|
|
|
80
80
|
list() {
|
|
81
81
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
82
82
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
83
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
83
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
84
84
|
const { page = 0, per_page: perPage = 50, include_totals: includeTotals = true, enabled, fields, include_fields: includeFields, } = request;
|
|
85
|
-
const _queryParams = {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
_queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
|
|
94
|
-
}
|
|
95
|
-
if (enabled !== undefined) {
|
|
96
|
-
_queryParams["enabled"] = (_d = enabled === null || enabled === void 0 ? void 0 : enabled.toString()) !== null && _d !== void 0 ? _d : null;
|
|
97
|
-
}
|
|
98
|
-
if (fields !== undefined) {
|
|
99
|
-
_queryParams["fields"] = fields;
|
|
100
|
-
}
|
|
101
|
-
if (includeFields !== undefined) {
|
|
102
|
-
_queryParams["include_fields"] = (_e = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _e !== void 0 ? _e : null;
|
|
103
|
-
}
|
|
85
|
+
const _queryParams = {
|
|
86
|
+
page,
|
|
87
|
+
per_page: perPage,
|
|
88
|
+
include_totals: includeTotals,
|
|
89
|
+
enabled,
|
|
90
|
+
fields,
|
|
91
|
+
include_fields: includeFields,
|
|
92
|
+
};
|
|
104
93
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
105
|
-
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (
|
|
106
|
-
const _response = yield ((
|
|
107
|
-
url: core.url.join((
|
|
94
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
95
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
96
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "rules"),
|
|
108
97
|
method: "GET",
|
|
109
98
|
headers: _headers,
|
|
110
99
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
111
|
-
timeoutMs: ((
|
|
112
|
-
maxRetries: (
|
|
100
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
101
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
113
102
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
114
|
-
fetchFn: (
|
|
103
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
115
104
|
logging: this._options.logging,
|
|
116
105
|
});
|
|
117
106
|
if (_response.ok) {
|
|
@@ -248,26 +237,23 @@ class RulesClient {
|
|
|
248
237
|
}
|
|
249
238
|
__get(id_1) {
|
|
250
239
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
251
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
240
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
252
241
|
const { fields, include_fields: includeFields } = request;
|
|
253
|
-
const _queryParams = {
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
}
|
|
257
|
-
if (includeFields !== undefined) {
|
|
258
|
-
_queryParams["include_fields"] = (_a = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _a !== void 0 ? _a : null;
|
|
259
|
-
}
|
|
242
|
+
const _queryParams = {
|
|
243
|
+
fields,
|
|
244
|
+
include_fields: includeFields,
|
|
245
|
+
};
|
|
260
246
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
261
|
-
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (
|
|
262
|
-
const _response = yield ((
|
|
263
|
-
url: core.url.join((
|
|
247
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
248
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
249
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, `rules/${core.url.encodePathParam(id)}`),
|
|
264
250
|
method: "GET",
|
|
265
251
|
headers: _headers,
|
|
266
252
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
267
|
-
timeoutMs: ((
|
|
268
|
-
maxRetries: (
|
|
253
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
254
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
269
255
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
270
|
-
fetchFn: (
|
|
256
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
271
257
|
logging: this._options.logging,
|
|
272
258
|
});
|
|
273
259
|
if (_response.ok) {
|
|
@@ -86,29 +86,24 @@ class SelfServiceProfilesClient {
|
|
|
86
86
|
list() {
|
|
87
87
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
88
88
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
89
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
89
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
90
90
|
const { page = 0, per_page: perPage = 50, include_totals: includeTotals = true } = request;
|
|
91
|
-
const _queryParams = {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
_queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
|
|
97
|
-
}
|
|
98
|
-
if (includeTotals !== undefined) {
|
|
99
|
-
_queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
|
|
100
|
-
}
|
|
91
|
+
const _queryParams = {
|
|
92
|
+
page,
|
|
93
|
+
per_page: perPage,
|
|
94
|
+
include_totals: includeTotals,
|
|
95
|
+
};
|
|
101
96
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
102
|
-
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (
|
|
103
|
-
const _response = yield ((
|
|
104
|
-
url: core.url.join((
|
|
97
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
98
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
99
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "self-service-profiles"),
|
|
105
100
|
method: "GET",
|
|
106
101
|
headers: _headers,
|
|
107
102
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
108
|
-
timeoutMs: ((
|
|
109
|
-
maxRetries: (
|
|
103
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
104
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
110
105
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
111
|
-
fetchFn: (
|
|
106
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
112
107
|
logging: this._options.logging,
|
|
113
108
|
});
|
|
114
109
|
if (_response.ok) {
|
|
@@ -135,13 +135,10 @@ class StatsClient {
|
|
|
135
135
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
136
136
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
137
137
|
const { from: from_, to } = request;
|
|
138
|
-
const _queryParams = {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
}
|
|
142
|
-
if (to !== undefined) {
|
|
143
|
-
_queryParams["to"] = to;
|
|
144
|
-
}
|
|
138
|
+
const _queryParams = {
|
|
139
|
+
from: from_,
|
|
140
|
+
to,
|
|
141
|
+
};
|
|
145
142
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
146
143
|
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
147
144
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
@@ -77,26 +77,23 @@ class SettingsClient {
|
|
|
77
77
|
}
|
|
78
78
|
__get() {
|
|
79
79
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
80
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
80
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
81
81
|
const { fields, include_fields: includeFields } = request;
|
|
82
|
-
const _queryParams = {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
if (includeFields !== undefined) {
|
|
87
|
-
_queryParams["include_fields"] = (_a = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _a !== void 0 ? _a : null;
|
|
88
|
-
}
|
|
82
|
+
const _queryParams = {
|
|
83
|
+
fields,
|
|
84
|
+
include_fields: includeFields,
|
|
85
|
+
};
|
|
89
86
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
90
|
-
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (
|
|
91
|
-
const _response = yield ((
|
|
92
|
-
url: core.url.join((
|
|
87
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
88
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
89
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "tenants/settings"),
|
|
93
90
|
method: "GET",
|
|
94
91
|
headers: _headers,
|
|
95
92
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
96
|
-
timeoutMs: ((
|
|
97
|
-
maxRetries: (
|
|
93
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
94
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
98
95
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
99
|
-
fetchFn: (
|
|
96
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
100
97
|
logging: this._options.logging,
|
|
101
98
|
});
|
|
102
99
|
if (_response.ok) {
|
|
@@ -85,26 +85,23 @@ class TokenExchangeProfilesClient {
|
|
|
85
85
|
list() {
|
|
86
86
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
87
87
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
88
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
88
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
89
89
|
const { from: from_, take = 50 } = request;
|
|
90
|
-
const _queryParams = {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
if (take !== undefined) {
|
|
95
|
-
_queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
|
|
96
|
-
}
|
|
90
|
+
const _queryParams = {
|
|
91
|
+
from: from_,
|
|
92
|
+
take,
|
|
93
|
+
};
|
|
97
94
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
98
|
-
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (
|
|
99
|
-
const _response = yield ((
|
|
100
|
-
url: core.url.join((
|
|
95
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
96
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
97
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "token-exchange-profiles"),
|
|
101
98
|
method: "GET",
|
|
102
99
|
headers: _headers,
|
|
103
100
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
104
|
-
timeoutMs: ((
|
|
105
|
-
maxRetries: (
|
|
101
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
102
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
106
103
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
107
|
-
fetchFn: (
|
|
104
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
108
105
|
logging: this._options.logging,
|
|
109
106
|
});
|
|
110
107
|
if (_response.ok) {
|
|
@@ -75,26 +75,23 @@ class UserAttributeProfilesClient {
|
|
|
75
75
|
list() {
|
|
76
76
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
77
77
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
78
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
78
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
79
79
|
const { from: from_, take = 50 } = request;
|
|
80
|
-
const _queryParams = {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
if (take !== undefined) {
|
|
85
|
-
_queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
|
|
86
|
-
}
|
|
80
|
+
const _queryParams = {
|
|
81
|
+
from: from_,
|
|
82
|
+
take,
|
|
83
|
+
};
|
|
87
84
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
88
|
-
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (
|
|
89
|
-
const _response = yield ((
|
|
90
|
-
url: core.url.join((
|
|
85
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
86
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
87
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "user-attribute-profiles"),
|
|
91
88
|
method: "GET",
|
|
92
89
|
headers: _headers,
|
|
93
90
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
94
|
-
timeoutMs: ((
|
|
95
|
-
maxRetries: (
|
|
91
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
92
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
96
93
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
97
|
-
fetchFn: (
|
|
94
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
98
95
|
logging: this._options.logging,
|
|
99
96
|
});
|
|
100
97
|
if (_response.ok) {
|
|
@@ -77,24 +77,23 @@ class UserBlocksClient {
|
|
|
77
77
|
}
|
|
78
78
|
__listByIdentifier(request, requestOptions) {
|
|
79
79
|
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
80
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
81
81
|
const { identifier, consider_brute_force_enablement: considerBruteForceEnablement } = request;
|
|
82
|
-
const _queryParams = {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
82
|
+
const _queryParams = {
|
|
83
|
+
identifier,
|
|
84
|
+
consider_brute_force_enablement: considerBruteForceEnablement,
|
|
85
|
+
};
|
|
87
86
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
88
|
-
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (
|
|
89
|
-
const _response = yield ((
|
|
90
|
-
url: core.url.join((
|
|
87
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
88
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
89
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "user-blocks"),
|
|
91
90
|
method: "GET",
|
|
92
91
|
headers: _headers,
|
|
93
92
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
94
|
-
timeoutMs: ((
|
|
95
|
-
maxRetries: (
|
|
93
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
94
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
96
95
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
97
|
-
fetchFn: (
|
|
96
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
98
97
|
logging: this._options.logging,
|
|
99
98
|
});
|
|
100
99
|
if (_response.ok) {
|
|
@@ -149,8 +148,9 @@ class UserBlocksClient {
|
|
|
149
148
|
return __awaiter(this, void 0, void 0, function* () {
|
|
150
149
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
151
150
|
const { identifier } = request;
|
|
152
|
-
const _queryParams = {
|
|
153
|
-
|
|
151
|
+
const _queryParams = {
|
|
152
|
+
identifier,
|
|
153
|
+
};
|
|
154
154
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
155
155
|
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
156
156
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
@@ -211,23 +211,22 @@ class UserBlocksClient {
|
|
|
211
211
|
}
|
|
212
212
|
__list(id_1) {
|
|
213
213
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
214
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
214
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
215
215
|
const { consider_brute_force_enablement: considerBruteForceEnablement } = request;
|
|
216
|
-
const _queryParams = {
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
}
|
|
216
|
+
const _queryParams = {
|
|
217
|
+
consider_brute_force_enablement: considerBruteForceEnablement,
|
|
218
|
+
};
|
|
220
219
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
221
|
-
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (
|
|
222
|
-
const _response = yield ((
|
|
223
|
-
url: core.url.join((
|
|
220
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
221
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
222
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, `user-blocks/${core.url.encodePathParam(id)}`),
|
|
224
223
|
method: "GET",
|
|
225
224
|
headers: _headers,
|
|
226
225
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
227
|
-
timeoutMs: ((
|
|
228
|
-
maxRetries: (
|
|
226
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
227
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
229
228
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
230
|
-
fetchFn: (
|
|
229
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
231
230
|
logging: this._options.logging,
|
|
232
231
|
});
|
|
233
232
|
if (_response.ok) {
|
|
@@ -78,38 +78,27 @@ class UserGrantsClient {
|
|
|
78
78
|
list() {
|
|
79
79
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
80
80
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
81
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
81
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
82
82
|
const { per_page: perPage = 50, page = 0, include_totals: includeTotals = true, user_id: userId, client_id: clientId, audience, } = request;
|
|
83
|
-
const _queryParams = {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
_queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
|
|
92
|
-
}
|
|
93
|
-
if (userId !== undefined) {
|
|
94
|
-
_queryParams["user_id"] = userId;
|
|
95
|
-
}
|
|
96
|
-
if (clientId !== undefined) {
|
|
97
|
-
_queryParams["client_id"] = clientId;
|
|
98
|
-
}
|
|
99
|
-
if (audience !== undefined) {
|
|
100
|
-
_queryParams["audience"] = audience;
|
|
101
|
-
}
|
|
83
|
+
const _queryParams = {
|
|
84
|
+
per_page: perPage,
|
|
85
|
+
page,
|
|
86
|
+
include_totals: includeTotals,
|
|
87
|
+
user_id: userId,
|
|
88
|
+
client_id: clientId,
|
|
89
|
+
audience,
|
|
90
|
+
};
|
|
102
91
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
103
|
-
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (
|
|
104
|
-
const _response = yield ((
|
|
105
|
-
url: core.url.join((
|
|
92
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
93
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
94
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "grants"),
|
|
106
95
|
method: "GET",
|
|
107
96
|
headers: _headers,
|
|
108
97
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
109
|
-
timeoutMs: ((
|
|
110
|
-
maxRetries: (
|
|
98
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
99
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
111
100
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
112
|
-
fetchFn: (
|
|
101
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
113
102
|
logging: this._options.logging,
|
|
114
103
|
});
|
|
115
104
|
if (_response.ok) {
|
|
@@ -172,8 +161,9 @@ class UserGrantsClient {
|
|
|
172
161
|
return __awaiter(this, void 0, void 0, function* () {
|
|
173
162
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
174
163
|
const { user_id: userId } = request;
|
|
175
|
-
const _queryParams = {
|
|
176
|
-
|
|
164
|
+
const _queryParams = {
|
|
165
|
+
user_id: userId,
|
|
166
|
+
};
|
|
177
167
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
178
168
|
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
179
169
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|