auth0 5.3.0 → 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 +50 -134
- package/dist/cjs/management/api/requests/requests.js +0 -108
- 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.d.ts +6 -3
- package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/Client.js +65 -45
- 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.d.ts +2 -2
- package/dist/cjs/management/api/resources/actions/resources/versions/client/Client.js +13 -16
- 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.d.ts +2 -2
- package/dist/cjs/management/api/resources/flows/client/Client.js +22 -38
- package/dist/cjs/management/api/resources/flows/index.d.ts +0 -1
- package/dist/cjs/management/api/resources/flows/index.js +0 -1
- package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.d.ts +4 -4
- package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.js +16 -25
- package/dist/cjs/management/api/resources/flows/resources/executions/index.d.ts +0 -1
- package/dist/cjs/management/api/resources/flows/resources/executions/index.js +0 -1
- package/dist/cjs/management/api/resources/flows/resources/index.d.ts +0 -1
- package/dist/cjs/management/api/resources/flows/resources/index.js +0 -4
- 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/index.d.ts +0 -1
- package/dist/cjs/management/api/resources/index.js +0 -1
- 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 +5257 -4642
- package/dist/cjs/management/api/types/types.js +457 -431
- 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 +50 -134
- package/dist/esm/management/api/requests/requests.mjs +1 -107
- 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.d.mts +6 -3
- package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/Client.mjs +65 -45
- 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.d.mts +2 -2
- package/dist/esm/management/api/resources/actions/resources/versions/client/Client.mjs +13 -16
- 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.d.mts +2 -2
- package/dist/esm/management/api/resources/flows/client/Client.mjs +22 -38
- package/dist/esm/management/api/resources/flows/index.d.mts +0 -1
- package/dist/esm/management/api/resources/flows/index.mjs +0 -1
- package/dist/esm/management/api/resources/flows/resources/executions/client/Client.d.mts +4 -4
- package/dist/esm/management/api/resources/flows/resources/executions/client/Client.mjs +16 -25
- package/dist/esm/management/api/resources/flows/resources/executions/index.d.mts +0 -1
- package/dist/esm/management/api/resources/flows/resources/executions/index.mjs +0 -1
- package/dist/esm/management/api/resources/flows/resources/index.d.mts +0 -1
- package/dist/esm/management/api/resources/flows/resources/index.mjs +0 -1
- 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/index.d.mts +0 -1
- package/dist/esm/management/api/resources/index.mjs +0 -1
- 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 +5257 -4642
- package/dist/esm/management/api/types/types.mjs +447 -421
- 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 +302 -124
- package/dist/cjs/management/api/resources/flows/resources/executions/types/index.d.ts +0 -1
- package/dist/cjs/management/api/resources/flows/resources/executions/types/index.js +0 -17
- package/dist/cjs/management/api/resources/flows/resources/executions/types/types.d.ts +0 -4
- package/dist/cjs/management/api/resources/flows/resources/executions/types/types.js +0 -7
- package/dist/cjs/management/api/resources/flows/types/index.d.ts +0 -1
- package/dist/cjs/management/api/resources/flows/types/index.js +0 -17
- package/dist/cjs/management/api/resources/flows/types/types.d.ts +0 -4
- package/dist/cjs/management/api/resources/flows/types/types.js +0 -7
- package/dist/esm/management/api/resources/flows/resources/executions/types/index.d.mts +0 -1
- package/dist/esm/management/api/resources/flows/resources/executions/types/index.mjs +0 -1
- package/dist/esm/management/api/resources/flows/resources/executions/types/types.d.mts +0 -4
- package/dist/esm/management/api/resources/flows/resources/executions/types/types.mjs +0 -4
- package/dist/esm/management/api/resources/flows/types/index.d.mts +0 -1
- package/dist/esm/management/api/resources/flows/types/index.mjs +0 -1
- package/dist/esm/management/api/resources/flows/types/types.d.mts +0 -4
- package/dist/esm/management/api/resources/flows/types/types.mjs +0 -4
package/dist/cjs/management/api/resources/organizations/resources/discoveryDomains/client/Client.js
CHANGED
|
@@ -77,26 +77,23 @@ class DiscoveryDomainsClient {
|
|
|
77
77
|
list(id_1) {
|
|
78
78
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
79
79
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
80
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
80
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
81
81
|
const { from: from_, take = 50 } = request;
|
|
82
|
-
const _queryParams = {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
if (take !== undefined) {
|
|
87
|
-
_queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
|
|
88
|
-
}
|
|
82
|
+
const _queryParams = {
|
|
83
|
+
from: from_,
|
|
84
|
+
take,
|
|
85
|
+
};
|
|
89
86
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
90
|
-
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (
|
|
91
|
-
const _response = yield ((
|
|
92
|
-
url: core.url.join((
|
|
87
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
88
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
89
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, `organizations/${core.url.encodePathParam(id)}/discovery-domains`),
|
|
93
90
|
method: "GET",
|
|
94
91
|
headers: _headers,
|
|
95
92
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
96
|
-
timeoutMs: ((
|
|
97
|
-
maxRetries: (
|
|
93
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
94
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
98
95
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
99
|
-
fetchFn: (
|
|
96
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
100
97
|
logging: this._options.logging,
|
|
101
98
|
});
|
|
102
99
|
if (_response.ok) {
|
|
@@ -77,29 +77,24 @@ class EnabledConnectionsClient {
|
|
|
77
77
|
list(id_1) {
|
|
78
78
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
79
79
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
80
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
80
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
81
81
|
const { page = 0, per_page: perPage = 50, include_totals: includeTotals = true } = request;
|
|
82
|
-
const _queryParams = {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
_queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
|
|
88
|
-
}
|
|
89
|
-
if (includeTotals !== undefined) {
|
|
90
|
-
_queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
|
|
91
|
-
}
|
|
82
|
+
const _queryParams = {
|
|
83
|
+
page,
|
|
84
|
+
per_page: perPage,
|
|
85
|
+
include_totals: includeTotals,
|
|
86
|
+
};
|
|
92
87
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
93
|
-
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (
|
|
94
|
-
const _response = yield ((
|
|
95
|
-
url: core.url.join((
|
|
88
|
+
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);
|
|
89
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
90
|
+
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, `organizations/${core.url.encodePathParam(id)}/enabled_connections`),
|
|
96
91
|
method: "GET",
|
|
97
92
|
headers: _headers,
|
|
98
93
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
99
|
-
timeoutMs: ((
|
|
100
|
-
maxRetries: (
|
|
94
|
+
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,
|
|
95
|
+
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,
|
|
101
96
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
102
|
-
fetchFn: (
|
|
97
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
103
98
|
logging: this._options.logging,
|
|
104
99
|
});
|
|
105
100
|
if (_response.ok) {
|
package/dist/cjs/management/api/resources/organizations/resources/invitations/client/Client.js
CHANGED
|
@@ -81,38 +81,27 @@ class InvitationsClient {
|
|
|
81
81
|
list(id_1) {
|
|
82
82
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
83
83
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
84
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
84
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
85
85
|
const { page = 0, per_page: perPage = 50, include_totals: includeTotals = true, fields, include_fields: includeFields, sort, } = request;
|
|
86
|
-
const _queryParams = {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
_queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
|
|
95
|
-
}
|
|
96
|
-
if (fields !== undefined) {
|
|
97
|
-
_queryParams["fields"] = fields;
|
|
98
|
-
}
|
|
99
|
-
if (includeFields !== undefined) {
|
|
100
|
-
_queryParams["include_fields"] = (_d = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _d !== void 0 ? _d : null;
|
|
101
|
-
}
|
|
102
|
-
if (sort !== undefined) {
|
|
103
|
-
_queryParams["sort"] = sort;
|
|
104
|
-
}
|
|
86
|
+
const _queryParams = {
|
|
87
|
+
page,
|
|
88
|
+
per_page: perPage,
|
|
89
|
+
include_totals: includeTotals,
|
|
90
|
+
fields,
|
|
91
|
+
include_fields: includeFields,
|
|
92
|
+
sort,
|
|
93
|
+
};
|
|
105
94
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
106
|
-
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (
|
|
107
|
-
const _response = yield ((
|
|
108
|
-
url: core.url.join((
|
|
95
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
96
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
97
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, `organizations/${core.url.encodePathParam(id)}/invitations`),
|
|
109
98
|
method: "GET",
|
|
110
99
|
headers: _headers,
|
|
111
100
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
112
|
-
timeoutMs: ((
|
|
113
|
-
maxRetries: (
|
|
101
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
102
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
114
103
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
115
|
-
fetchFn: (
|
|
104
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
116
105
|
logging: this._options.logging,
|
|
117
106
|
});
|
|
118
107
|
if (_response.ok) {
|
|
@@ -255,26 +244,23 @@ class InvitationsClient {
|
|
|
255
244
|
}
|
|
256
245
|
__get(id_1, invitation_id_1) {
|
|
257
246
|
return __awaiter(this, arguments, void 0, function* (id, invitation_id, request = {}, requestOptions) {
|
|
258
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
247
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
259
248
|
const { fields, include_fields: includeFields } = request;
|
|
260
|
-
const _queryParams = {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
}
|
|
264
|
-
if (includeFields !== undefined) {
|
|
265
|
-
_queryParams["include_fields"] = (_a = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _a !== void 0 ? _a : null;
|
|
266
|
-
}
|
|
249
|
+
const _queryParams = {
|
|
250
|
+
fields,
|
|
251
|
+
include_fields: includeFields,
|
|
252
|
+
};
|
|
267
253
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
268
|
-
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (
|
|
269
|
-
const _response = yield ((
|
|
270
|
-
url: core.url.join((
|
|
254
|
+
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);
|
|
255
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
256
|
+
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, `organizations/${core.url.encodePathParam(id)}/invitations/${core.url.encodePathParam(invitation_id)}`),
|
|
271
257
|
method: "GET",
|
|
272
258
|
headers: _headers,
|
|
273
259
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
274
|
-
timeoutMs: ((
|
|
275
|
-
maxRetries: (
|
|
260
|
+
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,
|
|
261
|
+
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,
|
|
276
262
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
277
|
-
fetchFn: (
|
|
263
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
278
264
|
logging: this._options.logging,
|
|
279
265
|
});
|
|
280
266
|
if (_response.ok) {
|
|
@@ -104,32 +104,25 @@ class MembersClient {
|
|
|
104
104
|
list(id_1) {
|
|
105
105
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
106
106
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
107
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
107
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
108
108
|
const { from: from_, take = 50, fields, include_fields: includeFields } = request;
|
|
109
|
-
const _queryParams = {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
116
|
-
if (fields !== undefined) {
|
|
117
|
-
_queryParams["fields"] = fields;
|
|
118
|
-
}
|
|
119
|
-
if (includeFields !== undefined) {
|
|
120
|
-
_queryParams["include_fields"] = (_b = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _b !== void 0 ? _b : null;
|
|
121
|
-
}
|
|
109
|
+
const _queryParams = {
|
|
110
|
+
from: from_,
|
|
111
|
+
take,
|
|
112
|
+
fields,
|
|
113
|
+
include_fields: includeFields,
|
|
114
|
+
};
|
|
122
115
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
123
|
-
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (
|
|
124
|
-
const _response = yield ((
|
|
125
|
-
url: core.url.join((
|
|
116
|
+
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);
|
|
117
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
118
|
+
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, `organizations/${core.url.encodePathParam(id)}/members`),
|
|
126
119
|
method: "GET",
|
|
127
120
|
headers: _headers,
|
|
128
121
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
129
|
-
timeoutMs: ((
|
|
130
|
-
maxRetries: (
|
|
122
|
+
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,
|
|
123
|
+
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,
|
|
131
124
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
132
|
-
fetchFn: (
|
|
125
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
133
126
|
logging: this._options.logging,
|
|
134
127
|
});
|
|
135
128
|
if (_response.ok) {
|
|
@@ -80,29 +80,24 @@ class RolesClient {
|
|
|
80
80
|
list(id_1, user_id_1) {
|
|
81
81
|
return __awaiter(this, arguments, void 0, function* (id, user_id, request = {}, requestOptions) {
|
|
82
82
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
83
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
83
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
84
84
|
const { page = 0, per_page: perPage = 50, include_totals: includeTotals = true } = request;
|
|
85
|
-
const _queryParams = {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
_queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
|
|
91
|
-
}
|
|
92
|
-
if (includeTotals !== undefined) {
|
|
93
|
-
_queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
|
|
94
|
-
}
|
|
85
|
+
const _queryParams = {
|
|
86
|
+
page,
|
|
87
|
+
per_page: perPage,
|
|
88
|
+
include_totals: includeTotals,
|
|
89
|
+
};
|
|
95
90
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
96
|
-
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (
|
|
97
|
-
const _response = yield ((
|
|
98
|
-
url: core.url.join((
|
|
91
|
+
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);
|
|
92
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
93
|
+
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, `organizations/${core.url.encodePathParam(id)}/members/${core.url.encodePathParam(user_id)}/roles`),
|
|
99
94
|
method: "GET",
|
|
100
95
|
headers: _headers,
|
|
101
96
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
102
|
-
timeoutMs: ((
|
|
103
|
-
maxRetries: (
|
|
97
|
+
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,
|
|
98
|
+
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,
|
|
104
99
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
105
|
-
fetchFn: (
|
|
100
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
106
101
|
logging: this._options.logging,
|
|
107
102
|
});
|
|
108
103
|
if (_response.ok) {
|
|
@@ -82,44 +82,29 @@ class RenderingClient {
|
|
|
82
82
|
list() {
|
|
83
83
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
84
84
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
85
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
85
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
86
86
|
const { fields, include_fields: includeFields, page = 0, per_page: perPage = 50, include_totals: includeTotals = true, prompt, screen, rendering_mode: renderingMode, } = request;
|
|
87
|
-
const _queryParams = {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
if (perPage !== undefined) {
|
|
98
|
-
_queryParams["per_page"] = (_c = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _c !== void 0 ? _c : null;
|
|
99
|
-
}
|
|
100
|
-
if (includeTotals !== undefined) {
|
|
101
|
-
_queryParams["include_totals"] = (_d = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _d !== void 0 ? _d : null;
|
|
102
|
-
}
|
|
103
|
-
if (prompt !== undefined) {
|
|
104
|
-
_queryParams["prompt"] = prompt;
|
|
105
|
-
}
|
|
106
|
-
if (screen !== undefined) {
|
|
107
|
-
_queryParams["screen"] = screen;
|
|
108
|
-
}
|
|
109
|
-
if (renderingMode !== undefined) {
|
|
110
|
-
_queryParams["rendering_mode"] = renderingMode;
|
|
111
|
-
}
|
|
87
|
+
const _queryParams = {
|
|
88
|
+
fields,
|
|
89
|
+
include_fields: includeFields,
|
|
90
|
+
page,
|
|
91
|
+
per_page: perPage,
|
|
92
|
+
include_totals: includeTotals,
|
|
93
|
+
prompt,
|
|
94
|
+
screen,
|
|
95
|
+
rendering_mode: renderingMode !== undefined ? renderingMode : undefined,
|
|
96
|
+
};
|
|
112
97
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
113
|
-
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (
|
|
114
|
-
const _response = yield ((
|
|
115
|
-
url: core.url.join((
|
|
98
|
+
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);
|
|
99
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
100
|
+
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, "prompts/rendering"),
|
|
116
101
|
method: "GET",
|
|
117
102
|
headers: _headers,
|
|
118
103
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
119
|
-
timeoutMs: ((
|
|
120
|
-
maxRetries: (
|
|
104
|
+
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,
|
|
105
|
+
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,
|
|
121
106
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
122
|
-
fetchFn: (
|
|
107
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
123
108
|
logging: this._options.logging,
|
|
124
109
|
});
|
|
125
110
|
if (_response.ok) {
|
|
@@ -77,40 +77,26 @@ class ResourceServersClient {
|
|
|
77
77
|
list() {
|
|
78
78
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
79
79
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
80
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
80
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
81
81
|
const { identifiers, page = 0, per_page: perPage = 50, include_totals: includeTotals = true, include_fields: includeFields, } = request;
|
|
82
|
-
const _queryParams = {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
if (page !== undefined) {
|
|
92
|
-
_queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
|
|
93
|
-
}
|
|
94
|
-
if (perPage !== undefined) {
|
|
95
|
-
_queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
|
|
96
|
-
}
|
|
97
|
-
if (includeTotals !== undefined) {
|
|
98
|
-
_queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
|
|
99
|
-
}
|
|
100
|
-
if (includeFields !== undefined) {
|
|
101
|
-
_queryParams["include_fields"] = (_d = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _d !== void 0 ? _d : null;
|
|
102
|
-
}
|
|
82
|
+
const _queryParams = {
|
|
83
|
+
identifiers,
|
|
84
|
+
page,
|
|
85
|
+
per_page: perPage,
|
|
86
|
+
include_totals: includeTotals,
|
|
87
|
+
include_fields: includeFields,
|
|
88
|
+
};
|
|
103
89
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
104
|
-
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (
|
|
105
|
-
const _response = yield ((
|
|
106
|
-
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, "resource-servers"),
|
|
107
93
|
method: "GET",
|
|
108
94
|
headers: _headers,
|
|
109
95
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
110
|
-
timeoutMs: ((
|
|
111
|
-
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,
|
|
112
98
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
113
|
-
fetchFn: (
|
|
99
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
114
100
|
logging: this._options.logging,
|
|
115
101
|
});
|
|
116
102
|
if (_response.ok) {
|
|
@@ -244,23 +230,22 @@ class ResourceServersClient {
|
|
|
244
230
|
}
|
|
245
231
|
__get(id_1) {
|
|
246
232
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
247
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
233
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
248
234
|
const { include_fields: includeFields } = request;
|
|
249
|
-
const _queryParams = {
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
}
|
|
235
|
+
const _queryParams = {
|
|
236
|
+
include_fields: includeFields,
|
|
237
|
+
};
|
|
253
238
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
254
|
-
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (
|
|
255
|
-
const _response = yield ((
|
|
256
|
-
url: core.url.join((
|
|
239
|
+
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);
|
|
240
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
241
|
+
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, `resource-servers/${core.url.encodePathParam(id)}`),
|
|
257
242
|
method: "GET",
|
|
258
243
|
headers: _headers,
|
|
259
244
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
260
|
-
timeoutMs: ((
|
|
261
|
-
maxRetries: (
|
|
245
|
+
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,
|
|
246
|
+
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,
|
|
262
247
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
263
|
-
fetchFn: (
|
|
248
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
264
249
|
logging: this._options.logging,
|
|
265
250
|
});
|
|
266
251
|
if (_response.ok) {
|
|
@@ -89,32 +89,25 @@ class RolesClient {
|
|
|
89
89
|
list() {
|
|
90
90
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
91
91
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
92
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
92
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
93
93
|
const { per_page: perPage = 50, page = 0, include_totals: includeTotals = true, name_filter: nameFilter, } = request;
|
|
94
|
-
const _queryParams = {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
if (includeTotals !== undefined) {
|
|
102
|
-
_queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
|
|
103
|
-
}
|
|
104
|
-
if (nameFilter !== undefined) {
|
|
105
|
-
_queryParams["name_filter"] = nameFilter;
|
|
106
|
-
}
|
|
94
|
+
const _queryParams = {
|
|
95
|
+
per_page: perPage,
|
|
96
|
+
page,
|
|
97
|
+
include_totals: includeTotals,
|
|
98
|
+
name_filter: nameFilter,
|
|
99
|
+
};
|
|
107
100
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
108
|
-
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (
|
|
109
|
-
const _response = yield ((
|
|
110
|
-
url: core.url.join((
|
|
101
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
102
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
103
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "roles"),
|
|
111
104
|
method: "GET",
|
|
112
105
|
headers: _headers,
|
|
113
106
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
114
|
-
timeoutMs: ((
|
|
115
|
-
maxRetries: (
|
|
107
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
108
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
116
109
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
117
|
-
fetchFn: (
|
|
110
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
118
111
|
logging: this._options.logging,
|
|
119
112
|
});
|
|
120
113
|
if (_response.ok) {
|
|
@@ -78,29 +78,24 @@ class PermissionsClient {
|
|
|
78
78
|
list(id_1) {
|
|
79
79
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
80
80
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
81
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
81
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
82
82
|
const { per_page: perPage = 50, page = 0, include_totals: includeTotals = true } = request;
|
|
83
|
-
const _queryParams = {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
_queryParams["page"] = (_b = page === null || page === void 0 ? void 0 : page.toString()) !== null && _b !== void 0 ? _b : null;
|
|
89
|
-
}
|
|
90
|
-
if (includeTotals !== undefined) {
|
|
91
|
-
_queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
|
|
92
|
-
}
|
|
83
|
+
const _queryParams = {
|
|
84
|
+
per_page: perPage,
|
|
85
|
+
page,
|
|
86
|
+
include_totals: includeTotals,
|
|
87
|
+
};
|
|
93
88
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
94
|
-
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (
|
|
95
|
-
const _response = yield ((
|
|
96
|
-
url: core.url.join((
|
|
89
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
90
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
91
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, `roles/${core.url.encodePathParam(id)}/permissions`),
|
|
97
92
|
method: "GET",
|
|
98
93
|
headers: _headers,
|
|
99
94
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
100
|
-
timeoutMs: ((
|
|
101
|
-
maxRetries: (
|
|
95
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
96
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
102
97
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
103
|
-
fetchFn: (
|
|
98
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
104
99
|
logging: this._options.logging,
|
|
105
100
|
});
|
|
106
101
|
if (_response.ok) {
|
|
@@ -95,26 +95,23 @@ class UsersClient {
|
|
|
95
95
|
list(id_1) {
|
|
96
96
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
97
97
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
98
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
98
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
99
99
|
const { from: from_, take = 50 } = request;
|
|
100
|
-
const _queryParams = {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
104
|
-
if (take !== undefined) {
|
|
105
|
-
_queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
|
|
106
|
-
}
|
|
100
|
+
const _queryParams = {
|
|
101
|
+
from: from_,
|
|
102
|
+
take,
|
|
103
|
+
};
|
|
107
104
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
108
|
-
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (
|
|
109
|
-
const _response = yield ((
|
|
110
|
-
url: core.url.join((
|
|
105
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
106
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
107
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, `roles/${core.url.encodePathParam(id)}/users`),
|
|
111
108
|
method: "GET",
|
|
112
109
|
headers: _headers,
|
|
113
110
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
114
|
-
timeoutMs: ((
|
|
115
|
-
maxRetries: (
|
|
111
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
112
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
116
113
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
117
|
-
fetchFn: (
|
|
114
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
118
115
|
logging: this._options.logging,
|
|
119
116
|
});
|
|
120
117
|
if (_response.ok) {
|