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/esm/management/api/resources/organizations/resources/discoveryDomains/client/Client.mjs
CHANGED
|
@@ -41,26 +41,23 @@ export class DiscoveryDomainsClient {
|
|
|
41
41
|
list(id_1) {
|
|
42
42
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
43
43
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
44
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
44
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
45
45
|
const { from: from_, take = 50 } = request;
|
|
46
|
-
const _queryParams = {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
if (take !== undefined) {
|
|
51
|
-
_queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
|
|
52
|
-
}
|
|
46
|
+
const _queryParams = {
|
|
47
|
+
from: from_,
|
|
48
|
+
take,
|
|
49
|
+
};
|
|
53
50
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
54
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
55
|
-
const _response = yield ((
|
|
56
|
-
url: core.url.join((
|
|
51
|
+
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);
|
|
52
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
53
|
+
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`),
|
|
57
54
|
method: "GET",
|
|
58
55
|
headers: _headers,
|
|
59
56
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
60
|
-
timeoutMs: ((
|
|
61
|
-
maxRetries: (
|
|
57
|
+
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,
|
|
58
|
+
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,
|
|
62
59
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
63
|
-
fetchFn: (
|
|
60
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
64
61
|
logging: this._options.logging,
|
|
65
62
|
});
|
|
66
63
|
if (_response.ok) {
|
|
@@ -41,29 +41,24 @@ export class EnabledConnectionsClient {
|
|
|
41
41
|
list(id_1) {
|
|
42
42
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
43
43
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
44
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
44
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
45
45
|
const { page = 0, per_page: perPage = 50, include_totals: includeTotals = true } = request;
|
|
46
|
-
const _queryParams = {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
_queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
|
|
52
|
-
}
|
|
53
|
-
if (includeTotals !== undefined) {
|
|
54
|
-
_queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
|
|
55
|
-
}
|
|
46
|
+
const _queryParams = {
|
|
47
|
+
page,
|
|
48
|
+
per_page: perPage,
|
|
49
|
+
include_totals: includeTotals,
|
|
50
|
+
};
|
|
56
51
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
57
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
58
|
-
const _response = yield ((
|
|
59
|
-
url: core.url.join((
|
|
52
|
+
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);
|
|
53
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
54
|
+
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`),
|
|
60
55
|
method: "GET",
|
|
61
56
|
headers: _headers,
|
|
62
57
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
63
|
-
timeoutMs: ((
|
|
64
|
-
maxRetries: (
|
|
58
|
+
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,
|
|
59
|
+
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
60
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
66
|
-
fetchFn: (
|
|
61
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
67
62
|
logging: this._options.logging,
|
|
68
63
|
});
|
|
69
64
|
if (_response.ok) {
|
package/dist/esm/management/api/resources/organizations/resources/invitations/client/Client.mjs
CHANGED
|
@@ -45,38 +45,27 @@ export class InvitationsClient {
|
|
|
45
45
|
list(id_1) {
|
|
46
46
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
47
47
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
48
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
48
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
49
49
|
const { page = 0, per_page: perPage = 50, include_totals: includeTotals = true, fields, include_fields: includeFields, sort, } = request;
|
|
50
|
-
const _queryParams = {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
_queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
|
|
59
|
-
}
|
|
60
|
-
if (fields !== undefined) {
|
|
61
|
-
_queryParams["fields"] = fields;
|
|
62
|
-
}
|
|
63
|
-
if (includeFields !== undefined) {
|
|
64
|
-
_queryParams["include_fields"] = (_d = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _d !== void 0 ? _d : null;
|
|
65
|
-
}
|
|
66
|
-
if (sort !== undefined) {
|
|
67
|
-
_queryParams["sort"] = sort;
|
|
68
|
-
}
|
|
50
|
+
const _queryParams = {
|
|
51
|
+
page,
|
|
52
|
+
per_page: perPage,
|
|
53
|
+
include_totals: includeTotals,
|
|
54
|
+
fields,
|
|
55
|
+
include_fields: includeFields,
|
|
56
|
+
sort,
|
|
57
|
+
};
|
|
69
58
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
70
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
71
|
-
const _response = yield ((
|
|
72
|
-
url: core.url.join((
|
|
59
|
+
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);
|
|
60
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
61
|
+
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`),
|
|
73
62
|
method: "GET",
|
|
74
63
|
headers: _headers,
|
|
75
64
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
76
|
-
timeoutMs: ((
|
|
77
|
-
maxRetries: (
|
|
65
|
+
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,
|
|
66
|
+
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,
|
|
78
67
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
79
|
-
fetchFn: (
|
|
68
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
80
69
|
logging: this._options.logging,
|
|
81
70
|
});
|
|
82
71
|
if (_response.ok) {
|
|
@@ -219,26 +208,23 @@ export class InvitationsClient {
|
|
|
219
208
|
}
|
|
220
209
|
__get(id_1, invitation_id_1) {
|
|
221
210
|
return __awaiter(this, arguments, void 0, function* (id, invitation_id, request = {}, requestOptions) {
|
|
222
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
211
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
223
212
|
const { fields, include_fields: includeFields } = request;
|
|
224
|
-
const _queryParams = {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
}
|
|
228
|
-
if (includeFields !== undefined) {
|
|
229
|
-
_queryParams["include_fields"] = (_a = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _a !== void 0 ? _a : null;
|
|
230
|
-
}
|
|
213
|
+
const _queryParams = {
|
|
214
|
+
fields,
|
|
215
|
+
include_fields: includeFields,
|
|
216
|
+
};
|
|
231
217
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
232
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
233
|
-
const _response = yield ((
|
|
234
|
-
url: core.url.join((
|
|
218
|
+
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);
|
|
219
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
220
|
+
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)}`),
|
|
235
221
|
method: "GET",
|
|
236
222
|
headers: _headers,
|
|
237
223
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
238
|
-
timeoutMs: ((
|
|
239
|
-
maxRetries: (
|
|
224
|
+
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,
|
|
225
|
+
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,
|
|
240
226
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
241
|
-
fetchFn: (
|
|
227
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
242
228
|
logging: this._options.logging,
|
|
243
229
|
});
|
|
244
230
|
if (_response.ok) {
|
|
@@ -68,32 +68,25 @@ export class MembersClient {
|
|
|
68
68
|
list(id_1) {
|
|
69
69
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
70
70
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
71
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
71
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
72
72
|
const { from: from_, take = 50, fields, include_fields: includeFields } = request;
|
|
73
|
-
const _queryParams = {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
if (fields !== undefined) {
|
|
81
|
-
_queryParams["fields"] = fields;
|
|
82
|
-
}
|
|
83
|
-
if (includeFields !== undefined) {
|
|
84
|
-
_queryParams["include_fields"] = (_b = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _b !== void 0 ? _b : null;
|
|
85
|
-
}
|
|
73
|
+
const _queryParams = {
|
|
74
|
+
from: from_,
|
|
75
|
+
take,
|
|
76
|
+
fields,
|
|
77
|
+
include_fields: includeFields,
|
|
78
|
+
};
|
|
86
79
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
87
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
88
|
-
const _response = yield ((
|
|
89
|
-
url: core.url.join((
|
|
80
|
+
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);
|
|
81
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
82
|
+
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`),
|
|
90
83
|
method: "GET",
|
|
91
84
|
headers: _headers,
|
|
92
85
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
93
|
-
timeoutMs: ((
|
|
94
|
-
maxRetries: (
|
|
86
|
+
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,
|
|
87
|
+
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,
|
|
95
88
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
96
|
-
fetchFn: (
|
|
89
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
97
90
|
logging: this._options.logging,
|
|
98
91
|
});
|
|
99
92
|
if (_response.ok) {
|
|
@@ -44,29 +44,24 @@ export class RolesClient {
|
|
|
44
44
|
list(id_1, user_id_1) {
|
|
45
45
|
return __awaiter(this, arguments, void 0, function* (id, user_id, 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 { page = 0, per_page: perPage = 50, include_totals: includeTotals = true } = request;
|
|
49
|
-
const _queryParams = {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
_queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
|
|
55
|
-
}
|
|
56
|
-
if (includeTotals !== undefined) {
|
|
57
|
-
_queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
|
|
58
|
-
}
|
|
49
|
+
const _queryParams = {
|
|
50
|
+
page,
|
|
51
|
+
per_page: perPage,
|
|
52
|
+
include_totals: includeTotals,
|
|
53
|
+
};
|
|
59
54
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
60
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
61
|
-
const _response = yield ((
|
|
62
|
-
url: core.url.join((
|
|
55
|
+
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);
|
|
56
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
57
|
+
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`),
|
|
63
58
|
method: "GET",
|
|
64
59
|
headers: _headers,
|
|
65
60
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
66
|
-
timeoutMs: ((
|
|
67
|
-
maxRetries: (
|
|
61
|
+
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,
|
|
62
|
+
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,
|
|
68
63
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
69
|
-
fetchFn: (
|
|
64
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
70
65
|
logging: this._options.logging,
|
|
71
66
|
});
|
|
72
67
|
if (_response.ok) {
|
|
@@ -46,44 +46,29 @@ export class RenderingClient {
|
|
|
46
46
|
list() {
|
|
47
47
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
48
48
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
49
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
49
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
50
50
|
const { fields, include_fields: includeFields, page = 0, per_page: perPage = 50, include_totals: includeTotals = true, prompt, screen, rendering_mode: renderingMode, } = request;
|
|
51
|
-
const _queryParams = {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
if (perPage !== undefined) {
|
|
62
|
-
_queryParams["per_page"] = (_c = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _c !== void 0 ? _c : null;
|
|
63
|
-
}
|
|
64
|
-
if (includeTotals !== undefined) {
|
|
65
|
-
_queryParams["include_totals"] = (_d = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _d !== void 0 ? _d : null;
|
|
66
|
-
}
|
|
67
|
-
if (prompt !== undefined) {
|
|
68
|
-
_queryParams["prompt"] = prompt;
|
|
69
|
-
}
|
|
70
|
-
if (screen !== undefined) {
|
|
71
|
-
_queryParams["screen"] = screen;
|
|
72
|
-
}
|
|
73
|
-
if (renderingMode !== undefined) {
|
|
74
|
-
_queryParams["rendering_mode"] = renderingMode;
|
|
75
|
-
}
|
|
51
|
+
const _queryParams = {
|
|
52
|
+
fields,
|
|
53
|
+
include_fields: includeFields,
|
|
54
|
+
page,
|
|
55
|
+
per_page: perPage,
|
|
56
|
+
include_totals: includeTotals,
|
|
57
|
+
prompt,
|
|
58
|
+
screen,
|
|
59
|
+
rendering_mode: renderingMode !== undefined ? renderingMode : undefined,
|
|
60
|
+
};
|
|
76
61
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
77
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
78
|
-
const _response = yield ((
|
|
79
|
-
url: core.url.join((
|
|
62
|
+
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);
|
|
63
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
64
|
+
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"),
|
|
80
65
|
method: "GET",
|
|
81
66
|
headers: _headers,
|
|
82
67
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
83
|
-
timeoutMs: ((
|
|
84
|
-
maxRetries: (
|
|
68
|
+
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,
|
|
69
|
+
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,
|
|
85
70
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
86
|
-
fetchFn: (
|
|
71
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
87
72
|
logging: this._options.logging,
|
|
88
73
|
});
|
|
89
74
|
if (_response.ok) {
|
|
@@ -41,40 +41,26 @@ export class ResourceServersClient {
|
|
|
41
41
|
list() {
|
|
42
42
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
43
43
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
44
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
44
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
45
45
|
const { identifiers, page = 0, per_page: perPage = 50, include_totals: includeTotals = true, include_fields: includeFields, } = request;
|
|
46
|
-
const _queryParams = {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
if (page !== undefined) {
|
|
56
|
-
_queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
|
|
57
|
-
}
|
|
58
|
-
if (perPage !== undefined) {
|
|
59
|
-
_queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
|
|
60
|
-
}
|
|
61
|
-
if (includeTotals !== undefined) {
|
|
62
|
-
_queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
|
|
63
|
-
}
|
|
64
|
-
if (includeFields !== undefined) {
|
|
65
|
-
_queryParams["include_fields"] = (_d = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _d !== void 0 ? _d : null;
|
|
66
|
-
}
|
|
46
|
+
const _queryParams = {
|
|
47
|
+
identifiers,
|
|
48
|
+
page,
|
|
49
|
+
per_page: perPage,
|
|
50
|
+
include_totals: includeTotals,
|
|
51
|
+
include_fields: includeFields,
|
|
52
|
+
};
|
|
67
53
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
68
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
69
|
-
const _response = yield ((
|
|
70
|
-
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, "resource-servers"),
|
|
71
57
|
method: "GET",
|
|
72
58
|
headers: _headers,
|
|
73
59
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
74
|
-
timeoutMs: ((
|
|
75
|
-
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,
|
|
76
62
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
77
|
-
fetchFn: (
|
|
63
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
78
64
|
logging: this._options.logging,
|
|
79
65
|
});
|
|
80
66
|
if (_response.ok) {
|
|
@@ -208,23 +194,22 @@ export class ResourceServersClient {
|
|
|
208
194
|
}
|
|
209
195
|
__get(id_1) {
|
|
210
196
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
211
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
197
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
212
198
|
const { include_fields: includeFields } = request;
|
|
213
|
-
const _queryParams = {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
}
|
|
199
|
+
const _queryParams = {
|
|
200
|
+
include_fields: includeFields,
|
|
201
|
+
};
|
|
217
202
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
218
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
219
|
-
const _response = yield ((
|
|
220
|
-
url: core.url.join((
|
|
203
|
+
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);
|
|
204
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
205
|
+
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)}`),
|
|
221
206
|
method: "GET",
|
|
222
207
|
headers: _headers,
|
|
223
208
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
224
|
-
timeoutMs: ((
|
|
225
|
-
maxRetries: (
|
|
209
|
+
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,
|
|
210
|
+
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,
|
|
226
211
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
227
|
-
fetchFn: (
|
|
212
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
228
213
|
logging: this._options.logging,
|
|
229
214
|
});
|
|
230
215
|
if (_response.ok) {
|
|
@@ -53,32 +53,25 @@ export class RolesClient {
|
|
|
53
53
|
list() {
|
|
54
54
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
55
55
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
56
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
56
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
57
57
|
const { per_page: perPage = 50, page = 0, include_totals: includeTotals = true, name_filter: nameFilter, } = request;
|
|
58
|
-
const _queryParams = {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
if (includeTotals !== undefined) {
|
|
66
|
-
_queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
|
|
67
|
-
}
|
|
68
|
-
if (nameFilter !== undefined) {
|
|
69
|
-
_queryParams["name_filter"] = nameFilter;
|
|
70
|
-
}
|
|
58
|
+
const _queryParams = {
|
|
59
|
+
per_page: perPage,
|
|
60
|
+
page,
|
|
61
|
+
include_totals: includeTotals,
|
|
62
|
+
name_filter: nameFilter,
|
|
63
|
+
};
|
|
71
64
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
72
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
73
|
-
const _response = yield ((
|
|
74
|
-
url: core.url.join((
|
|
65
|
+
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);
|
|
66
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
67
|
+
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"),
|
|
75
68
|
method: "GET",
|
|
76
69
|
headers: _headers,
|
|
77
70
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
78
|
-
timeoutMs: ((
|
|
79
|
-
maxRetries: (
|
|
71
|
+
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,
|
|
72
|
+
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,
|
|
80
73
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
81
|
-
fetchFn: (
|
|
74
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
82
75
|
logging: this._options.logging,
|
|
83
76
|
});
|
|
84
77
|
if (_response.ok) {
|
|
@@ -42,29 +42,24 @@ export class PermissionsClient {
|
|
|
42
42
|
list(id_1) {
|
|
43
43
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
44
44
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
45
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
45
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
46
46
|
const { per_page: perPage = 50, page = 0, include_totals: includeTotals = true } = request;
|
|
47
|
-
const _queryParams = {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
_queryParams["page"] = (_b = page === null || page === void 0 ? void 0 : page.toString()) !== null && _b !== void 0 ? _b : null;
|
|
53
|
-
}
|
|
54
|
-
if (includeTotals !== undefined) {
|
|
55
|
-
_queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
|
|
56
|
-
}
|
|
47
|
+
const _queryParams = {
|
|
48
|
+
per_page: perPage,
|
|
49
|
+
page,
|
|
50
|
+
include_totals: includeTotals,
|
|
51
|
+
};
|
|
57
52
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
58
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
59
|
-
const _response = yield ((
|
|
60
|
-
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, `roles/${core.url.encodePathParam(id)}/permissions`),
|
|
61
56
|
method: "GET",
|
|
62
57
|
headers: _headers,
|
|
63
58
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
64
|
-
timeoutMs: ((
|
|
65
|
-
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,
|
|
66
61
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
67
|
-
fetchFn: (
|
|
62
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
68
63
|
logging: this._options.logging,
|
|
69
64
|
});
|
|
70
65
|
if (_response.ok) {
|
|
@@ -59,26 +59,23 @@ export class UsersClient {
|
|
|
59
59
|
list(id_1) {
|
|
60
60
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
61
61
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
62
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
62
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
63
63
|
const { from: from_, take = 50 } = request;
|
|
64
|
-
const _queryParams = {
|
|
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
|
-
}
|
|
64
|
+
const _queryParams = {
|
|
65
|
+
from: from_,
|
|
66
|
+
take,
|
|
67
|
+
};
|
|
71
68
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
72
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
73
|
-
const _response = yield ((
|
|
74
|
-
url: core.url.join((
|
|
69
|
+
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);
|
|
70
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
71
|
+
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`),
|
|
75
72
|
method: "GET",
|
|
76
73
|
headers: _headers,
|
|
77
74
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
78
|
-
timeoutMs: ((
|
|
79
|
-
maxRetries: (
|
|
75
|
+
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,
|
|
76
|
+
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,
|
|
80
77
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
81
|
-
fetchFn: (
|
|
78
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
82
79
|
logging: this._options.logging,
|
|
83
80
|
});
|
|
84
81
|
if (_response.ok) {
|