auth0 5.3.1 → 5.4.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 +21 -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 +4448 -4299
- package/dist/cjs/management/api/types/types.js +41 -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 +21 -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 +4448 -4299
- package/dist/esm/management/api/types/types.mjs +32 -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
|
@@ -88,47 +88,30 @@ export class ClientsClient {
|
|
|
88
88
|
list() {
|
|
89
89
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
90
90
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
91
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
91
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
92
92
|
const { fields, include_fields: includeFields, page = 0, per_page: perPage = 50, include_totals: includeTotals = true, is_global: isGlobal, is_first_party: isFirstParty, app_type: appType, q, } = request;
|
|
93
|
-
const _queryParams = {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
_queryParams["per_page"] = (_c = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _c !== void 0 ? _c : null;
|
|
105
|
-
}
|
|
106
|
-
if (includeTotals !== undefined) {
|
|
107
|
-
_queryParams["include_totals"] = (_d = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _d !== void 0 ? _d : null;
|
|
108
|
-
}
|
|
109
|
-
if (isGlobal !== undefined) {
|
|
110
|
-
_queryParams["is_global"] = (_e = isGlobal === null || isGlobal === void 0 ? void 0 : isGlobal.toString()) !== null && _e !== void 0 ? _e : null;
|
|
111
|
-
}
|
|
112
|
-
if (isFirstParty !== undefined) {
|
|
113
|
-
_queryParams["is_first_party"] = (_f = isFirstParty === null || isFirstParty === void 0 ? void 0 : isFirstParty.toString()) !== null && _f !== void 0 ? _f : null;
|
|
114
|
-
}
|
|
115
|
-
if (appType !== undefined) {
|
|
116
|
-
_queryParams["app_type"] = appType;
|
|
117
|
-
}
|
|
118
|
-
if (q !== undefined) {
|
|
119
|
-
_queryParams["q"] = q;
|
|
120
|
-
}
|
|
93
|
+
const _queryParams = {
|
|
94
|
+
fields,
|
|
95
|
+
include_fields: includeFields,
|
|
96
|
+
page,
|
|
97
|
+
per_page: perPage,
|
|
98
|
+
include_totals: includeTotals,
|
|
99
|
+
is_global: isGlobal,
|
|
100
|
+
is_first_party: isFirstParty,
|
|
101
|
+
app_type: appType,
|
|
102
|
+
q,
|
|
103
|
+
};
|
|
121
104
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
122
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
123
|
-
const _response = yield ((
|
|
124
|
-
url: core.url.join((
|
|
105
|
+
let _headers = 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, "clients"),
|
|
125
108
|
method: "GET",
|
|
126
109
|
headers: _headers,
|
|
127
110
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
128
|
-
timeoutMs: ((
|
|
129
|
-
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,
|
|
130
113
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
131
|
-
fetchFn: (
|
|
114
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
132
115
|
logging: this._options.logging,
|
|
133
116
|
});
|
|
134
117
|
if (_response.ok) {
|
|
@@ -306,26 +289,23 @@ export class ClientsClient {
|
|
|
306
289
|
}
|
|
307
290
|
__get(id_1) {
|
|
308
291
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
309
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
292
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
310
293
|
const { fields, include_fields: includeFields } = request;
|
|
311
|
-
const _queryParams = {
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
}
|
|
315
|
-
if (includeFields !== undefined) {
|
|
316
|
-
_queryParams["include_fields"] = (_a = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _a !== void 0 ? _a : null;
|
|
317
|
-
}
|
|
294
|
+
const _queryParams = {
|
|
295
|
+
fields,
|
|
296
|
+
include_fields: includeFields,
|
|
297
|
+
};
|
|
318
298
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
319
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
320
|
-
const _response = yield ((
|
|
321
|
-
url: core.url.join((
|
|
299
|
+
let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
300
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
301
|
+
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, `clients/${core.url.encodePathParam(id)}`),
|
|
322
302
|
method: "GET",
|
|
323
303
|
headers: _headers,
|
|
324
304
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
325
|
-
timeoutMs: ((
|
|
326
|
-
maxRetries: (
|
|
305
|
+
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,
|
|
306
|
+
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,
|
|
327
307
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
328
|
-
fetchFn: (
|
|
308
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
329
309
|
logging: this._options.logging,
|
|
330
310
|
});
|
|
331
311
|
if (_response.ok) {
|
|
@@ -51,40 +51,30 @@ export class ConnectionsClient {
|
|
|
51
51
|
get(id_1) {
|
|
52
52
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
53
53
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
54
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
54
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
55
55
|
const { strategy, from: from_, take = 50, fields, include_fields: includeFields } = request;
|
|
56
|
-
const _queryParams = {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
if (take !== undefined) {
|
|
69
|
-
_queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
|
|
70
|
-
}
|
|
71
|
-
if (fields !== undefined) {
|
|
72
|
-
_queryParams["fields"] = fields;
|
|
73
|
-
}
|
|
74
|
-
if (includeFields !== undefined) {
|
|
75
|
-
_queryParams["include_fields"] = (_b = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _b !== void 0 ? _b : null;
|
|
76
|
-
}
|
|
56
|
+
const _queryParams = {
|
|
57
|
+
strategy: Array.isArray(strategy)
|
|
58
|
+
? strategy.map((item) => item)
|
|
59
|
+
: strategy !== undefined
|
|
60
|
+
? strategy
|
|
61
|
+
: undefined,
|
|
62
|
+
from: from_,
|
|
63
|
+
take,
|
|
64
|
+
fields,
|
|
65
|
+
include_fields: includeFields,
|
|
66
|
+
};
|
|
77
67
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
78
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
79
|
-
const _response = yield ((
|
|
80
|
-
url: core.url.join((
|
|
68
|
+
let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
69
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
70
|
+
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, `clients/${core.url.encodePathParam(id)}/connections`),
|
|
81
71
|
method: "GET",
|
|
82
72
|
headers: _headers,
|
|
83
73
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
84
|
-
timeoutMs: ((
|
|
85
|
-
maxRetries: (
|
|
74
|
+
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,
|
|
75
|
+
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,
|
|
86
76
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
87
|
-
fetchFn: (
|
|
77
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
88
78
|
logging: this._options.logging,
|
|
89
79
|
});
|
|
90
80
|
if (_response.ok) {
|
|
@@ -39,26 +39,23 @@ export class ConnectionProfilesClient {
|
|
|
39
39
|
list() {
|
|
40
40
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
41
41
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
42
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
42
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
43
43
|
const { from: from_, take = 50 } = request;
|
|
44
|
-
const _queryParams = {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
if (take !== undefined) {
|
|
49
|
-
_queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
|
|
50
|
-
}
|
|
44
|
+
const _queryParams = {
|
|
45
|
+
from: from_,
|
|
46
|
+
take,
|
|
47
|
+
};
|
|
51
48
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
52
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
53
|
-
const _response = yield ((
|
|
54
|
-
url: core.url.join((
|
|
49
|
+
let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
50
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
51
|
+
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, "connection-profiles"),
|
|
55
52
|
method: "GET",
|
|
56
53
|
headers: _headers,
|
|
57
54
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
58
|
-
timeoutMs: ((
|
|
59
|
-
maxRetries: (
|
|
55
|
+
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,
|
|
56
|
+
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,
|
|
60
57
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
61
|
-
fetchFn: (
|
|
58
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
62
59
|
logging: this._options.logging,
|
|
63
60
|
});
|
|
64
61
|
if (_response.ok) {
|
|
@@ -15,15 +15,15 @@ export declare namespace ConnectionsClient {
|
|
|
15
15
|
export declare class ConnectionsClient {
|
|
16
16
|
protected readonly _options: NormalizedClientOptionsWithAuth<ConnectionsClient.Options>;
|
|
17
17
|
protected _directoryProvisioning: DirectoryProvisioningClient | undefined;
|
|
18
|
+
protected _scimConfiguration: ScimConfigurationClient | undefined;
|
|
18
19
|
protected _clients: ClientsClient | undefined;
|
|
19
20
|
protected _keys: KeysClient | undefined;
|
|
20
|
-
protected _scimConfiguration: ScimConfigurationClient | undefined;
|
|
21
21
|
protected _users: UsersClient | undefined;
|
|
22
22
|
constructor(options: ConnectionsClient.Options);
|
|
23
23
|
get directoryProvisioning(): DirectoryProvisioningClient;
|
|
24
|
+
get scimConfiguration(): ScimConfigurationClient;
|
|
24
25
|
get clients(): ClientsClient;
|
|
25
26
|
get keys(): KeysClient;
|
|
26
|
-
get scimConfiguration(): ScimConfigurationClient;
|
|
27
27
|
get users(): UsersClient;
|
|
28
28
|
/**
|
|
29
29
|
* Retrieves detailed list of all <a href="https://auth0.com/docs/authenticate/identity-providers">connections</a> that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections.
|
|
@@ -28,6 +28,10 @@ export class ConnectionsClient {
|
|
|
28
28
|
var _a;
|
|
29
29
|
return ((_a = this._directoryProvisioning) !== null && _a !== void 0 ? _a : (this._directoryProvisioning = new DirectoryProvisioningClient(this._options)));
|
|
30
30
|
}
|
|
31
|
+
get scimConfiguration() {
|
|
32
|
+
var _a;
|
|
33
|
+
return ((_a = this._scimConfiguration) !== null && _a !== void 0 ? _a : (this._scimConfiguration = new ScimConfigurationClient(this._options)));
|
|
34
|
+
}
|
|
31
35
|
get clients() {
|
|
32
36
|
var _a;
|
|
33
37
|
return ((_a = this._clients) !== null && _a !== void 0 ? _a : (this._clients = new ClientsClient(this._options)));
|
|
@@ -36,10 +40,6 @@ export class ConnectionsClient {
|
|
|
36
40
|
var _a;
|
|
37
41
|
return ((_a = this._keys) !== null && _a !== void 0 ? _a : (this._keys = new KeysClient(this._options)));
|
|
38
42
|
}
|
|
39
|
-
get scimConfiguration() {
|
|
40
|
-
var _a;
|
|
41
|
-
return ((_a = this._scimConfiguration) !== null && _a !== void 0 ? _a : (this._scimConfiguration = new ScimConfigurationClient(this._options)));
|
|
42
|
-
}
|
|
43
43
|
get users() {
|
|
44
44
|
var _a;
|
|
45
45
|
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new UsersClient(this._options)));
|
|
@@ -85,43 +85,31 @@ export class ConnectionsClient {
|
|
|
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, strategy, name, fields, include_fields: includeFields } = request;
|
|
90
|
-
const _queryParams = {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
_queryParams["strategy"] = strategy;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
if (name !== undefined) {
|
|
106
|
-
_queryParams["name"] = name;
|
|
107
|
-
}
|
|
108
|
-
if (fields !== undefined) {
|
|
109
|
-
_queryParams["fields"] = fields;
|
|
110
|
-
}
|
|
111
|
-
if (includeFields !== undefined) {
|
|
112
|
-
_queryParams["include_fields"] = (_b = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _b !== void 0 ? _b : null;
|
|
113
|
-
}
|
|
90
|
+
const _queryParams = {
|
|
91
|
+
from: from_,
|
|
92
|
+
take,
|
|
93
|
+
strategy: Array.isArray(strategy)
|
|
94
|
+
? strategy.map((item) => item)
|
|
95
|
+
: strategy !== undefined
|
|
96
|
+
? strategy
|
|
97
|
+
: undefined,
|
|
98
|
+
name,
|
|
99
|
+
fields,
|
|
100
|
+
include_fields: includeFields,
|
|
101
|
+
};
|
|
114
102
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
115
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
116
|
-
const _response = yield ((
|
|
117
|
-
url: core.url.join((
|
|
103
|
+
let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
104
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
105
|
+
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, "connections"),
|
|
118
106
|
method: "GET",
|
|
119
107
|
headers: _headers,
|
|
120
108
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
121
|
-
timeoutMs: ((
|
|
122
|
-
maxRetries: (
|
|
109
|
+
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,
|
|
110
|
+
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,
|
|
123
111
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
124
|
-
fetchFn: (
|
|
112
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
125
113
|
logging: this._options.logging,
|
|
126
114
|
});
|
|
127
115
|
if (_response.ok) {
|
|
@@ -257,26 +245,23 @@ export class ConnectionsClient {
|
|
|
257
245
|
}
|
|
258
246
|
__get(id_1) {
|
|
259
247
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
260
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
248
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
261
249
|
const { fields, include_fields: includeFields } = request;
|
|
262
|
-
const _queryParams = {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
}
|
|
266
|
-
if (includeFields !== undefined) {
|
|
267
|
-
_queryParams["include_fields"] = (_a = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _a !== void 0 ? _a : null;
|
|
268
|
-
}
|
|
250
|
+
const _queryParams = {
|
|
251
|
+
fields,
|
|
252
|
+
include_fields: includeFields,
|
|
253
|
+
};
|
|
269
254
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
270
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
271
|
-
const _response = yield ((
|
|
272
|
-
url: core.url.join((
|
|
255
|
+
let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
256
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
257
|
+
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, `connections/${core.url.encodePathParam(id)}`),
|
|
273
258
|
method: "GET",
|
|
274
259
|
headers: _headers,
|
|
275
260
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
276
|
-
timeoutMs: ((
|
|
277
|
-
maxRetries: (
|
|
261
|
+
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,
|
|
262
|
+
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,
|
|
278
263
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
279
|
-
fetchFn: (
|
|
264
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
280
265
|
logging: this._options.logging,
|
|
281
266
|
});
|
|
282
267
|
if (_response.ok) {
|
|
@@ -43,26 +43,23 @@ export class ClientsClient {
|
|
|
43
43
|
get(id_1) {
|
|
44
44
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
45
45
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
46
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
46
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
47
47
|
const { take = 50, from: from_ } = request;
|
|
48
|
-
const _queryParams = {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
if (from_ !== undefined) {
|
|
53
|
-
_queryParams["from"] = from_;
|
|
54
|
-
}
|
|
48
|
+
const _queryParams = {
|
|
49
|
+
take,
|
|
50
|
+
from: from_,
|
|
51
|
+
};
|
|
55
52
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
56
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
57
|
-
const _response = yield ((
|
|
58
|
-
url: core.url.join((
|
|
53
|
+
let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
54
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
55
|
+
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, `connections/${core.url.encodePathParam(id)}/clients`),
|
|
59
56
|
method: "GET",
|
|
60
57
|
headers: _headers,
|
|
61
58
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
62
|
-
timeoutMs: ((
|
|
63
|
-
maxRetries: (
|
|
59
|
+
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,
|
|
60
|
+
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,
|
|
64
61
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
65
|
-
fetchFn: (
|
|
62
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
66
63
|
logging: this._options.logging,
|
|
67
64
|
});
|
|
68
65
|
if (_response.ok) {
|
|
@@ -44,26 +44,23 @@ export class DirectoryProvisioningClient {
|
|
|
44
44
|
list() {
|
|
45
45
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
46
46
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
47
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
47
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
48
48
|
const { from: from_, take = 50 } = request;
|
|
49
|
-
const _queryParams = {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
if (take !== undefined) {
|
|
54
|
-
_queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
|
|
55
|
-
}
|
|
49
|
+
const _queryParams = {
|
|
50
|
+
from: from_,
|
|
51
|
+
take,
|
|
52
|
+
};
|
|
56
53
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
57
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
58
|
-
const _response = yield ((
|
|
59
|
-
url: core.url.join((
|
|
54
|
+
let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
55
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
56
|
+
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, "connections-directory-provisionings"),
|
|
60
57
|
method: "GET",
|
|
61
58
|
headers: _headers,
|
|
62
59
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
63
|
-
timeoutMs: ((
|
|
64
|
-
maxRetries: (
|
|
60
|
+
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,
|
|
61
|
+
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,
|
|
65
62
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
66
|
-
fetchFn: (
|
|
63
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
67
64
|
logging: this._options.logging,
|
|
68
65
|
});
|
|
69
66
|
if (_response.ok) {
|
|
@@ -199,7 +196,7 @@ export class DirectoryProvisioningClient {
|
|
|
199
196
|
contentType: "application/json",
|
|
200
197
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
201
198
|
requestType: "json",
|
|
202
|
-
body: request
|
|
199
|
+
body: request,
|
|
203
200
|
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,
|
|
204
201
|
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,
|
|
205
202
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -328,7 +325,7 @@ export class DirectoryProvisioningClient {
|
|
|
328
325
|
contentType: "application/json",
|
|
329
326
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
330
327
|
requestType: "json",
|
|
331
|
-
body: request
|
|
328
|
+
body: request,
|
|
332
329
|
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,
|
|
333
330
|
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,
|
|
334
331
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -27,6 +27,25 @@ export declare class KeysClient {
|
|
|
27
27
|
*/
|
|
28
28
|
get(id: string, requestOptions?: KeysClient.RequestOptions): core.HttpResponsePromise<Management.ConnectionKey[]>;
|
|
29
29
|
private __get;
|
|
30
|
+
/**
|
|
31
|
+
* Provision initial connection keys for Okta or OIDC connection strategies. This endpoint allows you to create keys before configuring the connection to use Private Key JWT authentication, enabling zero-downtime transitions.
|
|
32
|
+
*
|
|
33
|
+
* @param {string} id - ID of the connection
|
|
34
|
+
* @param {Management.PostConnectionKeysRequestContent | null} request
|
|
35
|
+
* @param {KeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
|
+
*
|
|
37
|
+
* @throws {@link Management.BadRequestError}
|
|
38
|
+
* @throws {@link Management.UnauthorizedError}
|
|
39
|
+
* @throws {@link Management.ForbiddenError}
|
|
40
|
+
* @throws {@link Management.NotFoundError}
|
|
41
|
+
* @throws {@link Management.ConflictError}
|
|
42
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* await client.connections.keys.create("id")
|
|
46
|
+
*/
|
|
47
|
+
create(id: string, request?: Management.PostConnectionKeysRequestContent | null, requestOptions?: KeysClient.RequestOptions): core.HttpResponsePromise<Management.PostConnectionsKeysResponseContent>;
|
|
48
|
+
private __create;
|
|
30
49
|
/**
|
|
31
50
|
* Rotates the connection keys for the Okta or OIDC connection strategies.
|
|
32
51
|
*
|
|
@@ -79,6 +79,76 @@ export class KeysClient {
|
|
|
79
79
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/connections/{id}/keys");
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* Provision initial connection keys for Okta or OIDC connection strategies. This endpoint allows you to create keys before configuring the connection to use Private Key JWT authentication, enabling zero-downtime transitions.
|
|
84
|
+
*
|
|
85
|
+
* @param {string} id - ID of the connection
|
|
86
|
+
* @param {Management.PostConnectionKeysRequestContent | null} request
|
|
87
|
+
* @param {KeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link Management.BadRequestError}
|
|
90
|
+
* @throws {@link Management.UnauthorizedError}
|
|
91
|
+
* @throws {@link Management.ForbiddenError}
|
|
92
|
+
* @throws {@link Management.NotFoundError}
|
|
93
|
+
* @throws {@link Management.ConflictError}
|
|
94
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* await client.connections.keys.create("id")
|
|
98
|
+
*/
|
|
99
|
+
create(id, request, requestOptions) {
|
|
100
|
+
return core.HttpResponsePromise.fromPromise(this.__create(id, request, requestOptions));
|
|
101
|
+
}
|
|
102
|
+
__create(id, request, requestOptions) {
|
|
103
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
104
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
105
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
106
|
+
let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
107
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
108
|
+
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, `connections/${core.url.encodePathParam(id)}/keys`),
|
|
109
|
+
method: "POST",
|
|
110
|
+
headers: _headers,
|
|
111
|
+
contentType: "application/json",
|
|
112
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
113
|
+
requestType: "json",
|
|
114
|
+
body: request,
|
|
115
|
+
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,
|
|
116
|
+
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,
|
|
117
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
118
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
119
|
+
logging: this._options.logging,
|
|
120
|
+
});
|
|
121
|
+
if (_response.ok) {
|
|
122
|
+
return {
|
|
123
|
+
data: _response.body,
|
|
124
|
+
rawResponse: _response.rawResponse,
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
if (_response.error.reason === "status-code") {
|
|
128
|
+
switch (_response.error.statusCode) {
|
|
129
|
+
case 400:
|
|
130
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
131
|
+
case 401:
|
|
132
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
133
|
+
case 403:
|
|
134
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
135
|
+
case 404:
|
|
136
|
+
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
137
|
+
case 409:
|
|
138
|
+
throw new Management.ConflictError(_response.error.body, _response.rawResponse);
|
|
139
|
+
case 429:
|
|
140
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
141
|
+
default:
|
|
142
|
+
throw new errors.ManagementError({
|
|
143
|
+
statusCode: _response.error.statusCode,
|
|
144
|
+
body: _response.error.body,
|
|
145
|
+
rawResponse: _response.rawResponse,
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/connections/{id}/keys");
|
|
150
|
+
});
|
|
151
|
+
}
|
|
82
152
|
/**
|
|
83
153
|
* Rotates the connection keys for the Okta or OIDC connection strategies.
|
|
84
154
|
*
|
|
@@ -110,7 +180,7 @@ export class KeysClient {
|
|
|
110
180
|
contentType: "application/json",
|
|
111
181
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
112
182
|
requestType: "json",
|
|
113
|
-
body: request
|
|
183
|
+
body: request,
|
|
114
184
|
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,
|
|
115
185
|
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
186
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -13,6 +13,24 @@ export declare class ScimConfigurationClient {
|
|
|
13
13
|
protected _tokens: TokensClient | undefined;
|
|
14
14
|
constructor(options: ScimConfigurationClient.Options);
|
|
15
15
|
get tokens(): TokensClient;
|
|
16
|
+
/**
|
|
17
|
+
* Retrieve a list of SCIM configurations of a tenant.
|
|
18
|
+
*
|
|
19
|
+
* @param {Management.ListScimConfigurationsRequestParameters} request
|
|
20
|
+
* @param {ScimConfigurationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
21
|
+
*
|
|
22
|
+
* @throws {@link Management.BadRequestError}
|
|
23
|
+
* @throws {@link Management.UnauthorizedError}
|
|
24
|
+
* @throws {@link Management.ForbiddenError}
|
|
25
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* await client.connections.scimConfiguration.list({
|
|
29
|
+
* from: "from",
|
|
30
|
+
* take: 1
|
|
31
|
+
* })
|
|
32
|
+
*/
|
|
33
|
+
list(request?: Management.ListScimConfigurationsRequestParameters, requestOptions?: ScimConfigurationClient.RequestOptions): Promise<core.Page<Management.ScimConfiguration, Management.ListScimConfigurationsResponseContent>>;
|
|
16
34
|
/**
|
|
17
35
|
* Retrieves a scim configuration by its <code>connectionId</code>.
|
|
18
36
|
*
|