auth0 5.3.1 → 5.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/management/BaseClient.d.ts +4 -4
- package/dist/cjs/management/api/requests/requests.d.ts +21 -8
- package/dist/cjs/management/api/resources/actions/client/Client.js +25 -37
- package/dist/cjs/management/api/resources/actions/resources/modules/client/Client.js +22 -28
- package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/Client.js +11 -14
- package/dist/cjs/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.js +11 -14
- package/dist/cjs/management/api/resources/actions/resources/versions/client/Client.js +12 -15
- package/dist/cjs/management/api/resources/branding/resources/phone/resources/providers/client/Client.js +10 -11
- package/dist/cjs/management/api/resources/branding/resources/phone/resources/templates/client/Client.js +10 -11
- package/dist/cjs/management/api/resources/clientGrants/client/Client.js +15 -26
- package/dist/cjs/management/api/resources/clientGrants/resources/organizations/client/Client.js +11 -14
- package/dist/cjs/management/api/resources/clients/client/Client.js +29 -49
- package/dist/cjs/management/api/resources/clients/resources/connections/client/Client.js +18 -28
- package/dist/cjs/management/api/resources/connectionProfiles/client/Client.js +11 -14
- package/dist/cjs/management/api/resources/connections/client/Client.d.ts +2 -2
- package/dist/cjs/management/api/resources/connections/client/Client.js +34 -49
- package/dist/cjs/management/api/resources/connections/resources/clients/client/Client.js +11 -14
- package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.js +13 -16
- package/dist/cjs/management/api/resources/connections/resources/keys/client/Client.d.ts +19 -0
- package/dist/cjs/management/api/resources/connections/resources/keys/client/Client.js +71 -1
- package/dist/cjs/management/api/resources/connections/resources/scimConfiguration/client/Client.d.ts +18 -0
- package/dist/cjs/management/api/resources/connections/resources/scimConfiguration/client/Client.js +78 -1
- package/dist/cjs/management/api/resources/connections/resources/users/client/Client.js +3 -2
- package/dist/cjs/management/api/resources/customDomains/client/Client.js +13 -20
- package/dist/cjs/management/api/resources/deviceCredentials/client/Client.js +17 -32
- package/dist/cjs/management/api/resources/emails/resources/provider/client/Client.js +11 -14
- package/dist/cjs/management/api/resources/eventStreams/client/Client.js +11 -14
- package/dist/cjs/management/api/resources/eventStreams/resources/deliveries/client/Client.js +15 -26
- package/dist/cjs/management/api/resources/flows/client/Client.js +21 -37
- package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.js +14 -23
- package/dist/cjs/management/api/resources/flows/resources/vault/resources/connections/client/Client.js +12 -17
- package/dist/cjs/management/api/resources/forms/client/Client.js +20 -34
- package/dist/cjs/management/api/resources/groups/client/Client.js +16 -29
- package/dist/cjs/management/api/resources/groups/resources/members/client/Client.js +13 -20
- package/dist/cjs/management/api/resources/hooks/client/Client.js +18 -30
- package/dist/cjs/management/api/resources/jobs/resources/usersImports/client/Client.js +14 -14
- package/dist/cjs/management/api/resources/keys/resources/encryption/client/Client.js +12 -17
- package/dist/cjs/management/api/resources/logs/client/Client.js +16 -29
- package/dist/cjs/management/api/resources/networkAcls/client/Client.js +12 -17
- package/dist/cjs/management/api/resources/organizations/client/Client.js +12 -17
- package/dist/cjs/management/api/resources/organizations/resources/clientGrants/client/Client.js +15 -31
- package/dist/cjs/management/api/resources/organizations/resources/discoveryDomains/client/Client.js +11 -14
- package/dist/cjs/management/api/resources/organizations/resources/enabledConnections/client/Client.js +12 -17
- package/dist/cjs/management/api/resources/organizations/resources/invitations/client/Client.js +26 -40
- package/dist/cjs/management/api/resources/organizations/resources/members/client/Client.js +13 -20
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/roles/client/Client.js +12 -17
- package/dist/cjs/management/api/resources/prompts/resources/rendering/client/Client.js +17 -32
- package/dist/cjs/management/api/resources/resourceServers/client/Client.js +24 -39
- package/dist/cjs/management/api/resources/roles/client/Client.js +13 -20
- package/dist/cjs/management/api/resources/roles/resources/permissions/client/Client.js +12 -17
- package/dist/cjs/management/api/resources/roles/resources/users/client/Client.js +11 -14
- package/dist/cjs/management/api/resources/rules/client/Client.js +26 -40
- package/dist/cjs/management/api/resources/selfServiceProfiles/client/Client.js +12 -17
- package/dist/cjs/management/api/resources/stats/client/Client.js +4 -7
- package/dist/cjs/management/api/resources/tenants/resources/settings/client/Client.js +11 -14
- package/dist/cjs/management/api/resources/tokenExchangeProfiles/client/Client.js +11 -14
- package/dist/cjs/management/api/resources/userAttributeProfiles/client/Client.js +11 -14
- package/dist/cjs/management/api/resources/userBlocks/client/Client.js +24 -25
- package/dist/cjs/management/api/resources/userGrants/client/Client.js +18 -28
- package/dist/cjs/management/api/resources/users/client/Client.js +42 -67
- package/dist/cjs/management/api/resources/users/resources/authenticationMethods/client/Client.js +12 -17
- package/dist/cjs/management/api/resources/users/resources/connectedAccounts/client/Client.js +11 -14
- package/dist/cjs/management/api/resources/users/resources/groups/client/Client.js +13 -20
- package/dist/cjs/management/api/resources/users/resources/logs/client/Client.js +13 -20
- package/dist/cjs/management/api/resources/users/resources/organizations/client/Client.js +12 -17
- package/dist/cjs/management/api/resources/users/resources/permissions/client/Client.js +12 -17
- package/dist/cjs/management/api/resources/users/resources/refreshToken/client/Client.js +11 -14
- package/dist/cjs/management/api/resources/users/resources/roles/client/Client.js +12 -17
- package/dist/cjs/management/api/resources/users/resources/sessions/client/Client.js +11 -14
- package/dist/cjs/management/api/resources/verifiableCredentials/resources/verification/resources/templates/client/Client.js +11 -14
- package/dist/cjs/management/api/types/types.d.ts +4448 -4299
- package/dist/cjs/management/api/types/types.js +41 -12
- package/dist/cjs/management/auth/BearerAuthProvider.d.ts +14 -10
- package/dist/cjs/management/auth/BearerAuthProvider.js +15 -6
- package/dist/cjs/management/core/fetcher/EndpointSupplier.d.ts +2 -2
- package/dist/cjs/management/core/fetcher/Fetcher.d.ts +1 -2
- package/dist/cjs/management/core/fetcher/Fetcher.js +7 -1
- package/dist/cjs/management/core/form-data-utils/FormDataWrapper.js +1 -1
- package/dist/cjs/management/core/headers.d.ts +2 -2
- package/dist/cjs/management/core/pagination/CustomPager.d.ts +29 -44
- package/dist/cjs/management/core/pagination/CustomPager.js +60 -42
- package/dist/cjs/management/core/pagination/exports.d.ts +0 -1
- package/dist/cjs/management/core/pagination/exports.js +0 -3
- package/dist/cjs/management/core/pagination/index.d.ts +1 -1
- package/dist/cjs/management/core/pagination/index.js +2 -1
- package/dist/cjs/management/version.d.ts +1 -1
- package/dist/cjs/management/version.js +1 -1
- package/dist/esm/management/BaseClient.d.mts +4 -4
- package/dist/esm/management/api/requests/requests.d.mts +21 -8
- package/dist/esm/management/api/resources/actions/client/Client.mjs +25 -37
- package/dist/esm/management/api/resources/actions/resources/modules/client/Client.mjs +22 -28
- package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/Client.mjs +11 -14
- package/dist/esm/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.mjs +11 -14
- package/dist/esm/management/api/resources/actions/resources/versions/client/Client.mjs +12 -15
- package/dist/esm/management/api/resources/branding/resources/phone/resources/providers/client/Client.mjs +10 -11
- package/dist/esm/management/api/resources/branding/resources/phone/resources/templates/client/Client.mjs +10 -11
- package/dist/esm/management/api/resources/clientGrants/client/Client.mjs +15 -26
- package/dist/esm/management/api/resources/clientGrants/resources/organizations/client/Client.mjs +11 -14
- package/dist/esm/management/api/resources/clients/client/Client.mjs +29 -49
- package/dist/esm/management/api/resources/clients/resources/connections/client/Client.mjs +18 -28
- package/dist/esm/management/api/resources/connectionProfiles/client/Client.mjs +11 -14
- package/dist/esm/management/api/resources/connections/client/Client.d.mts +2 -2
- package/dist/esm/management/api/resources/connections/client/Client.mjs +34 -49
- package/dist/esm/management/api/resources/connections/resources/clients/client/Client.mjs +11 -14
- package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.mjs +13 -16
- package/dist/esm/management/api/resources/connections/resources/keys/client/Client.d.mts +19 -0
- package/dist/esm/management/api/resources/connections/resources/keys/client/Client.mjs +71 -1
- package/dist/esm/management/api/resources/connections/resources/scimConfiguration/client/Client.d.mts +18 -0
- package/dist/esm/management/api/resources/connections/resources/scimConfiguration/client/Client.mjs +78 -1
- package/dist/esm/management/api/resources/connections/resources/users/client/Client.mjs +3 -2
- package/dist/esm/management/api/resources/customDomains/client/Client.mjs +13 -20
- package/dist/esm/management/api/resources/deviceCredentials/client/Client.mjs +17 -32
- package/dist/esm/management/api/resources/emails/resources/provider/client/Client.mjs +11 -14
- package/dist/esm/management/api/resources/eventStreams/client/Client.mjs +11 -14
- package/dist/esm/management/api/resources/eventStreams/resources/deliveries/client/Client.mjs +15 -26
- package/dist/esm/management/api/resources/flows/client/Client.mjs +21 -37
- package/dist/esm/management/api/resources/flows/resources/executions/client/Client.mjs +14 -23
- package/dist/esm/management/api/resources/flows/resources/vault/resources/connections/client/Client.mjs +12 -17
- package/dist/esm/management/api/resources/forms/client/Client.mjs +20 -34
- package/dist/esm/management/api/resources/groups/client/Client.mjs +16 -29
- package/dist/esm/management/api/resources/groups/resources/members/client/Client.mjs +13 -20
- package/dist/esm/management/api/resources/hooks/client/Client.mjs +18 -30
- package/dist/esm/management/api/resources/jobs/resources/usersImports/client/Client.mjs +14 -14
- package/dist/esm/management/api/resources/keys/resources/encryption/client/Client.mjs +12 -17
- package/dist/esm/management/api/resources/logs/client/Client.mjs +16 -29
- package/dist/esm/management/api/resources/networkAcls/client/Client.mjs +12 -17
- package/dist/esm/management/api/resources/organizations/client/Client.mjs +12 -17
- package/dist/esm/management/api/resources/organizations/resources/clientGrants/client/Client.mjs +15 -31
- package/dist/esm/management/api/resources/organizations/resources/discoveryDomains/client/Client.mjs +11 -14
- package/dist/esm/management/api/resources/organizations/resources/enabledConnections/client/Client.mjs +12 -17
- package/dist/esm/management/api/resources/organizations/resources/invitations/client/Client.mjs +26 -40
- package/dist/esm/management/api/resources/organizations/resources/members/client/Client.mjs +13 -20
- package/dist/esm/management/api/resources/organizations/resources/members/resources/roles/client/Client.mjs +12 -17
- package/dist/esm/management/api/resources/prompts/resources/rendering/client/Client.mjs +17 -32
- package/dist/esm/management/api/resources/resourceServers/client/Client.mjs +24 -39
- package/dist/esm/management/api/resources/roles/client/Client.mjs +13 -20
- package/dist/esm/management/api/resources/roles/resources/permissions/client/Client.mjs +12 -17
- package/dist/esm/management/api/resources/roles/resources/users/client/Client.mjs +11 -14
- package/dist/esm/management/api/resources/rules/client/Client.mjs +26 -40
- package/dist/esm/management/api/resources/selfServiceProfiles/client/Client.mjs +12 -17
- package/dist/esm/management/api/resources/stats/client/Client.mjs +4 -7
- package/dist/esm/management/api/resources/tenants/resources/settings/client/Client.mjs +11 -14
- package/dist/esm/management/api/resources/tokenExchangeProfiles/client/Client.mjs +11 -14
- package/dist/esm/management/api/resources/userAttributeProfiles/client/Client.mjs +11 -14
- package/dist/esm/management/api/resources/userBlocks/client/Client.mjs +24 -25
- package/dist/esm/management/api/resources/userGrants/client/Client.mjs +18 -28
- package/dist/esm/management/api/resources/users/client/Client.mjs +42 -67
- package/dist/esm/management/api/resources/users/resources/authenticationMethods/client/Client.mjs +12 -17
- package/dist/esm/management/api/resources/users/resources/connectedAccounts/client/Client.mjs +11 -14
- package/dist/esm/management/api/resources/users/resources/groups/client/Client.mjs +13 -20
- package/dist/esm/management/api/resources/users/resources/logs/client/Client.mjs +13 -20
- package/dist/esm/management/api/resources/users/resources/organizations/client/Client.mjs +12 -17
- package/dist/esm/management/api/resources/users/resources/permissions/client/Client.mjs +12 -17
- package/dist/esm/management/api/resources/users/resources/refreshToken/client/Client.mjs +11 -14
- package/dist/esm/management/api/resources/users/resources/roles/client/Client.mjs +12 -17
- package/dist/esm/management/api/resources/users/resources/sessions/client/Client.mjs +11 -14
- package/dist/esm/management/api/resources/verifiableCredentials/resources/verification/resources/templates/client/Client.mjs +11 -14
- package/dist/esm/management/api/types/types.d.mts +4448 -4299
- package/dist/esm/management/api/types/types.mjs +32 -3
- package/dist/esm/management/auth/BearerAuthProvider.d.mts +14 -10
- package/dist/esm/management/auth/BearerAuthProvider.mjs +15 -6
- package/dist/esm/management/core/fetcher/EndpointSupplier.d.mts +2 -2
- package/dist/esm/management/core/fetcher/Fetcher.d.mts +1 -2
- package/dist/esm/management/core/fetcher/Fetcher.mjs +7 -1
- package/dist/esm/management/core/form-data-utils/FormDataWrapper.mjs +1 -1
- package/dist/esm/management/core/headers.d.mts +2 -2
- package/dist/esm/management/core/pagination/CustomPager.d.mts +29 -44
- package/dist/esm/management/core/pagination/CustomPager.mjs +58 -41
- package/dist/esm/management/core/pagination/exports.d.mts +0 -1
- package/dist/esm/management/core/pagination/exports.mjs +1 -1
- package/dist/esm/management/core/pagination/index.d.mts +1 -1
- package/dist/esm/management/core/pagination/index.mjs +1 -1
- package/dist/esm/management/version.d.mts +1 -1
- package/dist/esm/management/version.mjs +1 -1
- package/package.json +4 -3
- package/reference.md +271 -119
|
@@ -38,37 +38,29 @@ export class FormsClient {
|
|
|
38
38
|
list() {
|
|
39
39
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
40
40
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
41
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
41
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
42
42
|
const { page = 0, per_page: perPage = 50, include_totals: includeTotals = true, hydrate } = request;
|
|
43
|
-
const _queryParams = {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
if (hydrate !== undefined) {
|
|
54
|
-
if (Array.isArray(hydrate)) {
|
|
55
|
-
_queryParams["hydrate"] = hydrate.map((item) => item);
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
_queryParams["hydrate"] = hydrate;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
43
|
+
const _queryParams = {
|
|
44
|
+
page,
|
|
45
|
+
per_page: perPage,
|
|
46
|
+
include_totals: includeTotals,
|
|
47
|
+
hydrate: Array.isArray(hydrate)
|
|
48
|
+
? hydrate.map((item) => item)
|
|
49
|
+
: hydrate !== undefined
|
|
50
|
+
? hydrate
|
|
51
|
+
: undefined,
|
|
52
|
+
};
|
|
61
53
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
62
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
63
|
-
const _response = yield ((
|
|
64
|
-
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, "forms"),
|
|
65
57
|
method: "GET",
|
|
66
58
|
headers: _headers,
|
|
67
59
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
68
|
-
timeoutMs: ((
|
|
69
|
-
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,
|
|
70
62
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
71
|
-
fetchFn: (
|
|
63
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
72
64
|
logging: this._options.logging,
|
|
73
65
|
});
|
|
74
66
|
if (_response.ok) {
|
|
@@ -192,15 +184,9 @@ export class FormsClient {
|
|
|
192
184
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
193
185
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
194
186
|
const { hydrate } = request;
|
|
195
|
-
const _queryParams = {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
_queryParams["hydrate"] = hydrate.map((item) => item);
|
|
199
|
-
}
|
|
200
|
-
else {
|
|
201
|
-
_queryParams["hydrate"] = hydrate;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
187
|
+
const _queryParams = {
|
|
188
|
+
hydrate: Array.isArray(hydrate) ? hydrate.map((item) => item) : hydrate !== undefined ? hydrate : undefined,
|
|
189
|
+
};
|
|
204
190
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
205
191
|
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);
|
|
206
192
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
@@ -49,41 +49,28 @@ export class GroupsClient {
|
|
|
49
49
|
list() {
|
|
50
50
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
51
51
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
52
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
52
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
53
53
|
const { connection_id: connectionId, name, external_id: externalId, fields, include_fields: includeFields, from: from_, take = 50, } = request;
|
|
54
|
-
const _queryParams = {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
if (fields !== undefined) {
|
|
65
|
-
_queryParams["fields"] = fields;
|
|
66
|
-
}
|
|
67
|
-
if (includeFields !== undefined) {
|
|
68
|
-
_queryParams["include_fields"] = (_a = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _a !== void 0 ? _a : null;
|
|
69
|
-
}
|
|
70
|
-
if (from_ !== undefined) {
|
|
71
|
-
_queryParams["from"] = from_;
|
|
72
|
-
}
|
|
73
|
-
if (take !== undefined) {
|
|
74
|
-
_queryParams["take"] = (_b = take === null || take === void 0 ? void 0 : take.toString()) !== null && _b !== void 0 ? _b : null;
|
|
75
|
-
}
|
|
54
|
+
const _queryParams = {
|
|
55
|
+
connection_id: connectionId,
|
|
56
|
+
name,
|
|
57
|
+
external_id: externalId,
|
|
58
|
+
fields,
|
|
59
|
+
include_fields: includeFields,
|
|
60
|
+
from: from_,
|
|
61
|
+
take,
|
|
62
|
+
};
|
|
76
63
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
77
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
78
|
-
const _response = yield ((
|
|
79
|
-
url: core.url.join((
|
|
64
|
+
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);
|
|
65
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
66
|
+
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, "groups"),
|
|
80
67
|
method: "GET",
|
|
81
68
|
headers: _headers,
|
|
82
69
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
83
|
-
timeoutMs: ((
|
|
84
|
-
maxRetries: (
|
|
70
|
+
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,
|
|
71
|
+
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
72
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
86
|
-
fetchFn: (
|
|
73
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
87
74
|
logging: this._options.logging,
|
|
88
75
|
});
|
|
89
76
|
if (_response.ok) {
|
|
@@ -42,32 +42,25 @@ export class MembersClient {
|
|
|
42
42
|
get(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 { fields, include_fields: includeFields, from: from_, take = 50 } = request;
|
|
47
|
-
const _queryParams = {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
if (from_ !== undefined) {
|
|
55
|
-
_queryParams["from"] = from_;
|
|
56
|
-
}
|
|
57
|
-
if (take !== undefined) {
|
|
58
|
-
_queryParams["take"] = (_b = take === null || take === void 0 ? void 0 : take.toString()) !== null && _b !== void 0 ? _b : null;
|
|
59
|
-
}
|
|
47
|
+
const _queryParams = {
|
|
48
|
+
fields,
|
|
49
|
+
include_fields: includeFields,
|
|
50
|
+
from: from_,
|
|
51
|
+
take,
|
|
52
|
+
};
|
|
60
53
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
61
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
62
|
-
const _response = yield ((
|
|
63
|
-
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, `groups/${core.url.encodePathParam(id)}/members`),
|
|
64
57
|
method: "GET",
|
|
65
58
|
headers: _headers,
|
|
66
59
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
67
|
-
timeoutMs: ((
|
|
68
|
-
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,
|
|
69
62
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
70
|
-
fetchFn: (
|
|
63
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
71
64
|
logging: this._options.logging,
|
|
72
65
|
});
|
|
73
66
|
if (_response.ok) {
|
|
@@ -49,38 +49,27 @@ export class HooksClient {
|
|
|
49
49
|
list() {
|
|
50
50
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
51
51
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
52
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
52
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
53
53
|
const { page = 0, per_page: perPage = 50, include_totals: includeTotals = true, enabled, fields, triggerId, } = request;
|
|
54
|
-
const _queryParams = {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
_queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
|
|
63
|
-
}
|
|
64
|
-
if (enabled !== undefined) {
|
|
65
|
-
_queryParams["enabled"] = (_d = enabled === null || enabled === void 0 ? void 0 : enabled.toString()) !== null && _d !== void 0 ? _d : null;
|
|
66
|
-
}
|
|
67
|
-
if (fields !== undefined) {
|
|
68
|
-
_queryParams["fields"] = fields;
|
|
69
|
-
}
|
|
70
|
-
if (triggerId !== undefined) {
|
|
71
|
-
_queryParams["triggerId"] = triggerId;
|
|
72
|
-
}
|
|
54
|
+
const _queryParams = {
|
|
55
|
+
page,
|
|
56
|
+
per_page: perPage,
|
|
57
|
+
include_totals: includeTotals,
|
|
58
|
+
enabled,
|
|
59
|
+
fields,
|
|
60
|
+
triggerId: triggerId !== undefined ? triggerId : undefined,
|
|
61
|
+
};
|
|
73
62
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
74
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
75
|
-
const _response = yield ((
|
|
76
|
-
url: core.url.join((
|
|
63
|
+
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);
|
|
64
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
65
|
+
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, "hooks"),
|
|
77
66
|
method: "GET",
|
|
78
67
|
headers: _headers,
|
|
79
68
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
80
|
-
timeoutMs: ((
|
|
81
|
-
maxRetries: (
|
|
69
|
+
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,
|
|
70
|
+
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,
|
|
82
71
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
83
|
-
fetchFn: (
|
|
72
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
84
73
|
logging: this._options.logging,
|
|
85
74
|
});
|
|
86
75
|
if (_response.ok) {
|
|
@@ -217,10 +206,9 @@ export class HooksClient {
|
|
|
217
206
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
218
207
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
219
208
|
const { fields } = request;
|
|
220
|
-
const _queryParams = {
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
}
|
|
209
|
+
const _queryParams = {
|
|
210
|
+
fields,
|
|
211
|
+
};
|
|
224
212
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
225
213
|
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);
|
|
226
214
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
@@ -44,34 +44,34 @@ export class UsersImportsClient {
|
|
|
44
44
|
}
|
|
45
45
|
__create(request, requestOptions) {
|
|
46
46
|
return __awaiter(this, void 0, void 0, function* () {
|
|
47
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
48
|
-
const
|
|
49
|
-
yield
|
|
50
|
-
|
|
47
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
48
|
+
const _body = yield core.newFormData();
|
|
49
|
+
yield _body.appendFile("users", request.users);
|
|
50
|
+
_body.append("connection_id", request.connection_id);
|
|
51
51
|
if (request.upsert != null) {
|
|
52
|
-
|
|
52
|
+
_body.append("upsert", (_a = request.upsert) === null || _a === void 0 ? void 0 : _a.toString());
|
|
53
53
|
}
|
|
54
54
|
if (request.external_id != null) {
|
|
55
|
-
|
|
55
|
+
_body.append("external_id", request.external_id);
|
|
56
56
|
}
|
|
57
57
|
if (request.send_completion_email != null) {
|
|
58
|
-
|
|
58
|
+
_body.append("send_completion_email", (_b = request.send_completion_email) === null || _b === void 0 ? void 0 : _b.toString());
|
|
59
59
|
}
|
|
60
|
-
const _maybeEncodedRequest = yield
|
|
60
|
+
const _maybeEncodedRequest = yield _body.getRequest();
|
|
61
61
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
62
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
63
|
-
const _response = yield ((
|
|
64
|
-
url: core.url.join((
|
|
62
|
+
let _headers = mergeHeaders(_authRequest.headers, (_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, mergeOnlyDefinedHeaders(Object.assign({}, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
63
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
64
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ManagementEnvironment.Default, "jobs/users-imports"),
|
|
65
65
|
method: "POST",
|
|
66
66
|
headers: _headers,
|
|
67
67
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
68
68
|
requestType: "file",
|
|
69
69
|
duplex: _maybeEncodedRequest.duplex,
|
|
70
70
|
body: _maybeEncodedRequest.body,
|
|
71
|
-
timeoutMs: ((
|
|
72
|
-
maxRetries: (
|
|
71
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
72
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
73
73
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
74
|
-
fetchFn: (
|
|
74
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
75
75
|
logging: this._options.logging,
|
|
76
76
|
});
|
|
77
77
|
if (_response.ok) {
|
|
@@ -40,29 +40,24 @@ export class EncryptionClient {
|
|
|
40
40
|
list() {
|
|
41
41
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
42
42
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
43
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
43
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
44
44
|
const { page = 0, per_page: perPage = 50, include_totals: includeTotals = true } = request;
|
|
45
|
-
const _queryParams = {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
_queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
|
|
51
|
-
}
|
|
52
|
-
if (includeTotals !== undefined) {
|
|
53
|
-
_queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
|
|
54
|
-
}
|
|
45
|
+
const _queryParams = {
|
|
46
|
+
page,
|
|
47
|
+
per_page: perPage,
|
|
48
|
+
include_totals: includeTotals,
|
|
49
|
+
};
|
|
55
50
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
56
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
57
|
-
const _response = yield ((
|
|
58
|
-
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, "keys/encryption"),
|
|
59
54
|
method: "GET",
|
|
60
55
|
headers: _headers,
|
|
61
56
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
62
|
-
timeoutMs: ((
|
|
63
|
-
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,
|
|
64
59
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
65
|
-
fetchFn: (
|
|
60
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
66
61
|
logging: this._options.logging,
|
|
67
62
|
});
|
|
68
63
|
if (_response.ok) {
|
|
@@ -72,41 +72,28 @@ export class LogsClient {
|
|
|
72
72
|
list() {
|
|
73
73
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
74
74
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
75
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
75
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
76
76
|
const { page = 0, per_page: perPage = 50, sort, fields, include_fields: includeFields, include_totals: includeTotals = true, search, } = request;
|
|
77
|
-
const _queryParams = {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
if (fields !== undefined) {
|
|
88
|
-
_queryParams["fields"] = fields;
|
|
89
|
-
}
|
|
90
|
-
if (includeFields !== undefined) {
|
|
91
|
-
_queryParams["include_fields"] = (_c = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _c !== void 0 ? _c : null;
|
|
92
|
-
}
|
|
93
|
-
if (includeTotals !== undefined) {
|
|
94
|
-
_queryParams["include_totals"] = (_d = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _d !== void 0 ? _d : null;
|
|
95
|
-
}
|
|
96
|
-
if (search !== undefined) {
|
|
97
|
-
_queryParams["search"] = search;
|
|
98
|
-
}
|
|
77
|
+
const _queryParams = {
|
|
78
|
+
page,
|
|
79
|
+
per_page: perPage,
|
|
80
|
+
sort,
|
|
81
|
+
fields,
|
|
82
|
+
include_fields: includeFields,
|
|
83
|
+
include_totals: includeTotals,
|
|
84
|
+
search,
|
|
85
|
+
};
|
|
99
86
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
100
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
101
|
-
const _response = yield ((
|
|
102
|
-
url: core.url.join((
|
|
87
|
+
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);
|
|
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, "logs"),
|
|
103
90
|
method: "GET",
|
|
104
91
|
headers: _headers,
|
|
105
92
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
106
|
-
timeoutMs: ((
|
|
107
|
-
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,
|
|
108
95
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
109
|
-
fetchFn: (
|
|
96
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
110
97
|
logging: this._options.logging,
|
|
111
98
|
});
|
|
112
99
|
if (_response.ok) {
|
|
@@ -40,29 +40,24 @@ export class NetworkAclsClient {
|
|
|
40
40
|
list() {
|
|
41
41
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
42
42
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
43
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
43
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
44
44
|
const { page = 0, per_page: perPage = 50, include_totals: includeTotals = true } = request;
|
|
45
|
-
const _queryParams = {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
_queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
|
|
51
|
-
}
|
|
52
|
-
if (includeTotals !== undefined) {
|
|
53
|
-
_queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
|
|
54
|
-
}
|
|
45
|
+
const _queryParams = {
|
|
46
|
+
page,
|
|
47
|
+
per_page: perPage,
|
|
48
|
+
include_totals: includeTotals,
|
|
49
|
+
};
|
|
55
50
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
56
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
57
|
-
const _response = yield ((
|
|
58
|
-
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, "network-acls"),
|
|
59
54
|
method: "GET",
|
|
60
55
|
headers: _headers,
|
|
61
56
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
62
|
-
timeoutMs: ((
|
|
63
|
-
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,
|
|
64
59
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
65
|
-
fetchFn: (
|
|
60
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
66
61
|
logging: this._options.logging,
|
|
67
62
|
});
|
|
68
63
|
if (_response.ok) {
|
|
@@ -83,29 +83,24 @@ export class OrganizationsClient {
|
|
|
83
83
|
list() {
|
|
84
84
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
85
85
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
86
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
86
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
87
87
|
const { from: from_, take = 50, sort } = request;
|
|
88
|
-
const _queryParams = {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
_queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
|
|
94
|
-
}
|
|
95
|
-
if (sort !== undefined) {
|
|
96
|
-
_queryParams["sort"] = sort;
|
|
97
|
-
}
|
|
88
|
+
const _queryParams = {
|
|
89
|
+
from: from_,
|
|
90
|
+
take,
|
|
91
|
+
sort,
|
|
92
|
+
};
|
|
98
93
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
99
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
100
|
-
const _response = yield ((
|
|
101
|
-
url: core.url.join((
|
|
94
|
+
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);
|
|
95
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
96
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "organizations"),
|
|
102
97
|
method: "GET",
|
|
103
98
|
headers: _headers,
|
|
104
99
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
105
|
-
timeoutMs: ((
|
|
106
|
-
maxRetries: (
|
|
100
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
101
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
107
102
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
108
|
-
fetchFn: (
|
|
103
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
109
104
|
logging: this._options.logging,
|
|
110
105
|
});
|
|
111
106
|
if (_response.ok) {
|
package/dist/esm/management/api/resources/organizations/resources/clientGrants/client/Client.mjs
CHANGED
|
@@ -41,43 +41,27 @@ export class ClientGrantsClient {
|
|
|
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 { audience, client_id: clientId, grant_ids: grantIds, page = 0, per_page: perPage = 50, include_totals: includeTotals = true, } = request;
|
|
46
|
-
const _queryParams = {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
if (Array.isArray(grantIds)) {
|
|
55
|
-
_queryParams["grant_ids"] = grantIds.map((item) => item);
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
_queryParams["grant_ids"] = grantIds;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
if (page !== undefined) {
|
|
62
|
-
_queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
|
|
63
|
-
}
|
|
64
|
-
if (perPage !== undefined) {
|
|
65
|
-
_queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
|
|
66
|
-
}
|
|
67
|
-
if (includeTotals !== undefined) {
|
|
68
|
-
_queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
|
|
69
|
-
}
|
|
46
|
+
const _queryParams = {
|
|
47
|
+
audience,
|
|
48
|
+
client_id: clientId,
|
|
49
|
+
grant_ids: grantIds,
|
|
50
|
+
page,
|
|
51
|
+
per_page: perPage,
|
|
52
|
+
include_totals: includeTotals,
|
|
53
|
+
};
|
|
70
54
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
71
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
72
|
-
const _response = yield ((
|
|
73
|
-
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)}/client-grants`),
|
|
74
58
|
method: "GET",
|
|
75
59
|
headers: _headers,
|
|
76
60
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
77
|
-
timeoutMs: ((
|
|
78
|
-
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,
|
|
79
63
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
80
|
-
fetchFn: (
|
|
64
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
81
65
|
logging: this._options.logging,
|
|
82
66
|
});
|
|
83
67
|
if (_response.ok) {
|