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
|
@@ -172,50 +172,31 @@ class UsersClient {
|
|
|
172
172
|
list() {
|
|
173
173
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
174
174
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
175
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
175
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
176
176
|
const { page = 0, per_page: perPage = 50, include_totals: includeTotals = true, sort, connection, fields, include_fields: includeFields, q, search_engine: searchEngine, primary_order: primaryOrder, } = request;
|
|
177
|
-
const _queryParams = {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
}
|
|
190
|
-
if (connection !== undefined) {
|
|
191
|
-
_queryParams["connection"] = connection;
|
|
192
|
-
}
|
|
193
|
-
if (fields !== undefined) {
|
|
194
|
-
_queryParams["fields"] = fields;
|
|
195
|
-
}
|
|
196
|
-
if (includeFields !== undefined) {
|
|
197
|
-
_queryParams["include_fields"] = (_d = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _d !== void 0 ? _d : null;
|
|
198
|
-
}
|
|
199
|
-
if (q !== undefined) {
|
|
200
|
-
_queryParams["q"] = q;
|
|
201
|
-
}
|
|
202
|
-
if (searchEngine !== undefined) {
|
|
203
|
-
_queryParams["search_engine"] = searchEngine;
|
|
204
|
-
}
|
|
205
|
-
if (primaryOrder !== undefined) {
|
|
206
|
-
_queryParams["primary_order"] = (_e = primaryOrder === null || primaryOrder === void 0 ? void 0 : primaryOrder.toString()) !== null && _e !== void 0 ? _e : null;
|
|
207
|
-
}
|
|
177
|
+
const _queryParams = {
|
|
178
|
+
page,
|
|
179
|
+
per_page: perPage,
|
|
180
|
+
include_totals: includeTotals,
|
|
181
|
+
sort,
|
|
182
|
+
connection,
|
|
183
|
+
fields,
|
|
184
|
+
include_fields: includeFields,
|
|
185
|
+
q,
|
|
186
|
+
search_engine: searchEngine !== undefined ? searchEngine : undefined,
|
|
187
|
+
primary_order: primaryOrder,
|
|
188
|
+
};
|
|
208
189
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
209
|
-
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (
|
|
210
|
-
const _response = yield ((
|
|
211
|
-
url: core.url.join((
|
|
190
|
+
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);
|
|
191
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
192
|
+
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, "users"),
|
|
212
193
|
method: "GET",
|
|
213
194
|
headers: _headers,
|
|
214
195
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
215
|
-
timeoutMs: ((
|
|
216
|
-
maxRetries: (
|
|
196
|
+
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,
|
|
197
|
+
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,
|
|
217
198
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
218
|
-
fetchFn: (
|
|
199
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
219
200
|
logging: this._options.logging,
|
|
220
201
|
});
|
|
221
202
|
if (_response.ok) {
|
|
@@ -354,27 +335,24 @@ class UsersClient {
|
|
|
354
335
|
}
|
|
355
336
|
__listUsersByEmail(request, requestOptions) {
|
|
356
337
|
return __awaiter(this, void 0, void 0, function* () {
|
|
357
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
338
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
358
339
|
const { fields, include_fields: includeFields, email } = request;
|
|
359
|
-
const _queryParams = {
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
_queryParams["include_fields"] = (_a = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _a !== void 0 ? _a : null;
|
|
365
|
-
}
|
|
366
|
-
_queryParams["email"] = email;
|
|
340
|
+
const _queryParams = {
|
|
341
|
+
fields,
|
|
342
|
+
include_fields: includeFields,
|
|
343
|
+
email,
|
|
344
|
+
};
|
|
367
345
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
368
|
-
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (
|
|
369
|
-
const _response = yield ((
|
|
370
|
-
url: core.url.join((
|
|
346
|
+
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);
|
|
347
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
348
|
+
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, "users-by-email"),
|
|
371
349
|
method: "GET",
|
|
372
350
|
headers: _headers,
|
|
373
351
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
374
|
-
timeoutMs: ((
|
|
375
|
-
maxRetries: (
|
|
352
|
+
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,
|
|
353
|
+
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,
|
|
376
354
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
377
|
-
fetchFn: (
|
|
355
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
378
356
|
logging: this._options.logging,
|
|
379
357
|
});
|
|
380
358
|
if (_response.ok) {
|
|
@@ -425,26 +403,23 @@ class UsersClient {
|
|
|
425
403
|
}
|
|
426
404
|
__get(id_1) {
|
|
427
405
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
428
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
406
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
429
407
|
const { fields, include_fields: includeFields } = request;
|
|
430
|
-
const _queryParams = {
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
}
|
|
434
|
-
if (includeFields !== undefined) {
|
|
435
|
-
_queryParams["include_fields"] = (_a = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _a !== void 0 ? _a : null;
|
|
436
|
-
}
|
|
408
|
+
const _queryParams = {
|
|
409
|
+
fields,
|
|
410
|
+
include_fields: includeFields,
|
|
411
|
+
};
|
|
437
412
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
438
|
-
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (
|
|
439
|
-
const _response = yield ((
|
|
440
|
-
url: core.url.join((
|
|
413
|
+
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);
|
|
414
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
415
|
+
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, `users/${core.url.encodePathParam(id)}`),
|
|
441
416
|
method: "GET",
|
|
442
417
|
headers: _headers,
|
|
443
418
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
444
|
-
timeoutMs: ((
|
|
445
|
-
maxRetries: (
|
|
419
|
+
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,
|
|
420
|
+
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,
|
|
446
421
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
447
|
-
fetchFn: (
|
|
422
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
448
423
|
logging: this._options.logging,
|
|
449
424
|
});
|
|
450
425
|
if (_response.ok) {
|
package/dist/cjs/management/api/resources/users/resources/authenticationMethods/client/Client.js
CHANGED
|
@@ -78,29 +78,24 @@ class AuthenticationMethodsClient {
|
|
|
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 { page = 0, per_page: perPage = 50, include_totals: includeTotals = true } = request;
|
|
83
|
-
const _queryParams = {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
_queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.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
|
+
page,
|
|
85
|
+
per_page: perPage,
|
|
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, `users/${core.url.encodePathParam(id)}/authentication-methods`),
|
|
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) {
|
package/dist/cjs/management/api/resources/users/resources/connectedAccounts/client/Client.js
CHANGED
|
@@ -76,26 +76,23 @@ class ConnectedAccountsClient {
|
|
|
76
76
|
list(id_1) {
|
|
77
77
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
78
78
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
79
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
79
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
80
80
|
const { from: from_, take = 50 } = request;
|
|
81
|
-
const _queryParams = {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
if (take !== undefined) {
|
|
86
|
-
_queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
|
|
87
|
-
}
|
|
81
|
+
const _queryParams = {
|
|
82
|
+
from: from_,
|
|
83
|
+
take,
|
|
84
|
+
};
|
|
88
85
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
89
|
-
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (
|
|
90
|
-
const _response = yield ((
|
|
91
|
-
url: core.url.join((
|
|
86
|
+
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);
|
|
87
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
88
|
+
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, `users/${core.url.encodePathParam(id)}/connected-accounts`),
|
|
92
89
|
method: "GET",
|
|
93
90
|
headers: _headers,
|
|
94
91
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
95
|
-
timeoutMs: ((
|
|
96
|
-
maxRetries: (
|
|
92
|
+
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,
|
|
93
|
+
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,
|
|
97
94
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
98
|
-
fetchFn: (
|
|
95
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
99
96
|
logging: this._options.logging,
|
|
100
97
|
});
|
|
101
98
|
if (_response.ok) {
|
|
@@ -78,32 +78,25 @@ class GroupsClient {
|
|
|
78
78
|
get(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 { fields, include_fields: includeFields, from: from_, take = 50 } = request;
|
|
83
|
-
const _queryParams = {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
90
|
-
if (from_ !== undefined) {
|
|
91
|
-
_queryParams["from"] = from_;
|
|
92
|
-
}
|
|
93
|
-
if (take !== undefined) {
|
|
94
|
-
_queryParams["take"] = (_b = take === null || take === void 0 ? void 0 : take.toString()) !== null && _b !== void 0 ? _b : null;
|
|
95
|
-
}
|
|
83
|
+
const _queryParams = {
|
|
84
|
+
fields,
|
|
85
|
+
include_fields: includeFields,
|
|
86
|
+
from: from_,
|
|
87
|
+
take,
|
|
88
|
+
};
|
|
96
89
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
97
|
-
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (
|
|
98
|
-
const _response = yield ((
|
|
99
|
-
url: core.url.join((
|
|
90
|
+
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);
|
|
91
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
92
|
+
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, `users/${core.url.encodePathParam(id)}/groups`),
|
|
100
93
|
method: "GET",
|
|
101
94
|
headers: _headers,
|
|
102
95
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
103
|
-
timeoutMs: ((
|
|
104
|
-
maxRetries: (
|
|
96
|
+
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,
|
|
97
|
+
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,
|
|
105
98
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
106
|
-
fetchFn: (
|
|
99
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
107
100
|
logging: this._options.logging,
|
|
108
101
|
});
|
|
109
102
|
if (_response.ok) {
|
|
@@ -84,32 +84,25 @@ class LogsClient {
|
|
|
84
84
|
list(id_1) {
|
|
85
85
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
86
86
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
87
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
87
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
88
88
|
const { page = 0, per_page: perPage = 50, sort, include_totals: includeTotals = true } = request;
|
|
89
|
-
const _queryParams = {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
96
|
-
if (sort !== undefined) {
|
|
97
|
-
_queryParams["sort"] = sort;
|
|
98
|
-
}
|
|
99
|
-
if (includeTotals !== undefined) {
|
|
100
|
-
_queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
|
|
101
|
-
}
|
|
89
|
+
const _queryParams = {
|
|
90
|
+
page,
|
|
91
|
+
per_page: perPage,
|
|
92
|
+
sort,
|
|
93
|
+
include_totals: includeTotals,
|
|
94
|
+
};
|
|
102
95
|
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((
|
|
96
|
+
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);
|
|
97
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
98
|
+
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, `users/${core.url.encodePathParam(id)}/logs`),
|
|
106
99
|
method: "GET",
|
|
107
100
|
headers: _headers,
|
|
108
101
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
109
|
-
timeoutMs: ((
|
|
110
|
-
maxRetries: (
|
|
102
|
+
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,
|
|
103
|
+
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
104
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
112
|
-
fetchFn: (
|
|
105
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
113
106
|
logging: this._options.logging,
|
|
114
107
|
});
|
|
115
108
|
if (_response.ok) {
|
|
@@ -76,29 +76,24 @@ class OrganizationsClient {
|
|
|
76
76
|
list(id_1) {
|
|
77
77
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
78
78
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
79
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
79
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
80
80
|
const { page = 0, per_page: perPage = 50, include_totals: includeTotals = true } = request;
|
|
81
|
-
const _queryParams = {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
_queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
|
|
87
|
-
}
|
|
88
|
-
if (includeTotals !== undefined) {
|
|
89
|
-
_queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
|
|
90
|
-
}
|
|
81
|
+
const _queryParams = {
|
|
82
|
+
page,
|
|
83
|
+
per_page: perPage,
|
|
84
|
+
include_totals: includeTotals,
|
|
85
|
+
};
|
|
91
86
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
92
|
-
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (
|
|
93
|
-
const _response = yield ((
|
|
94
|
-
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, `users/${core.url.encodePathParam(id)}/organizations`),
|
|
95
90
|
method: "GET",
|
|
96
91
|
headers: _headers,
|
|
97
92
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
98
|
-
timeoutMs: ((
|
|
99
|
-
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,
|
|
100
95
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
101
|
-
fetchFn: (
|
|
96
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
102
97
|
logging: this._options.logging,
|
|
103
98
|
});
|
|
104
99
|
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, `users/${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) {
|
|
@@ -76,26 +76,23 @@ class RefreshTokenClient {
|
|
|
76
76
|
list(user_id_1) {
|
|
77
77
|
return __awaiter(this, arguments, void 0, function* (user_id, request = {}, requestOptions) {
|
|
78
78
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
79
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
79
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
80
80
|
const { from: from_, take = 50 } = request;
|
|
81
|
-
const _queryParams = {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
if (take !== undefined) {
|
|
86
|
-
_queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
|
|
87
|
-
}
|
|
81
|
+
const _queryParams = {
|
|
82
|
+
from: from_,
|
|
83
|
+
take,
|
|
84
|
+
};
|
|
88
85
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
89
|
-
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (
|
|
90
|
-
const _response = yield ((
|
|
91
|
-
url: core.url.join((
|
|
86
|
+
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);
|
|
87
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
88
|
+
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, `users/${core.url.encodePathParam(user_id)}/refresh-tokens`),
|
|
92
89
|
method: "GET",
|
|
93
90
|
headers: _headers,
|
|
94
91
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
95
|
-
timeoutMs: ((
|
|
96
|
-
maxRetries: (
|
|
92
|
+
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,
|
|
93
|
+
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,
|
|
97
94
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
98
|
-
fetchFn: (
|
|
95
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
99
96
|
logging: this._options.logging,
|
|
100
97
|
});
|
|
101
98
|
if (_response.ok) {
|
|
@@ -78,29 +78,24 @@ class RolesClient {
|
|
|
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, `users/${core.url.encodePathParam(id)}/roles`),
|
|
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) {
|
|
@@ -76,26 +76,23 @@ class SessionsClient {
|
|
|
76
76
|
list(user_id_1) {
|
|
77
77
|
return __awaiter(this, arguments, void 0, function* (user_id, request = {}, requestOptions) {
|
|
78
78
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
79
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
79
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
80
80
|
const { from: from_, take = 50 } = request;
|
|
81
|
-
const _queryParams = {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
if (take !== undefined) {
|
|
86
|
-
_queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
|
|
87
|
-
}
|
|
81
|
+
const _queryParams = {
|
|
82
|
+
from: from_,
|
|
83
|
+
take,
|
|
84
|
+
};
|
|
88
85
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
89
|
-
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (
|
|
90
|
-
const _response = yield ((
|
|
91
|
-
url: core.url.join((
|
|
86
|
+
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);
|
|
87
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
88
|
+
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, `users/${core.url.encodePathParam(user_id)}/sessions`),
|
|
92
89
|
method: "GET",
|
|
93
90
|
headers: _headers,
|
|
94
91
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
95
|
-
timeoutMs: ((
|
|
96
|
-
maxRetries: (
|
|
92
|
+
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,
|
|
93
|
+
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,
|
|
97
94
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
98
|
-
fetchFn: (
|
|
95
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
99
96
|
logging: this._options.logging,
|
|
100
97
|
});
|
|
101
98
|
if (_response.ok) {
|