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
|
@@ -29,12 +29,12 @@ export interface BaseRequestOptions {
|
|
|
29
29
|
/** Additional headers to include in the request. */
|
|
30
30
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
31
31
|
}
|
|
32
|
-
export type NormalizedClientOptions<T extends BaseClientOptions> = T & {
|
|
32
|
+
export type NormalizedClientOptions<T extends BaseClientOptions = BaseClientOptions> = T & {
|
|
33
33
|
logging: core.logging.Logger;
|
|
34
34
|
authProvider?: core.AuthProvider;
|
|
35
35
|
};
|
|
36
|
-
export type NormalizedClientOptionsWithAuth<T extends BaseClientOptions> = NormalizedClientOptions<T> & {
|
|
36
|
+
export type NormalizedClientOptionsWithAuth<T extends BaseClientOptions = BaseClientOptions> = NormalizedClientOptions<T> & {
|
|
37
37
|
authProvider: core.AuthProvider;
|
|
38
38
|
};
|
|
39
|
-
export declare function normalizeClientOptions<T extends BaseClientOptions>(options: T): NormalizedClientOptions<T>;
|
|
40
|
-
export declare function normalizeClientOptionsWithAuth<T extends BaseClientOptions>(options: T): NormalizedClientOptionsWithAuth<T>;
|
|
39
|
+
export declare function normalizeClientOptions<T extends BaseClientOptions = BaseClientOptions>(options: T): NormalizedClientOptions<T>;
|
|
40
|
+
export declare function normalizeClientOptionsWithAuth<T extends BaseClientOptions = BaseClientOptions>(options: T): NormalizedClientOptionsWithAuth<T>;
|
|
@@ -333,7 +333,7 @@ export interface UpdateClientRequestContent {
|
|
|
333
333
|
client_aliases?: string[];
|
|
334
334
|
/** Ids of clients that will be allowed to perform delegation requests. Clients that will be allowed to make delegation request. By default, all your clients will be allowed. This field allows you to specify specific clients */
|
|
335
335
|
allowed_clients?: string[];
|
|
336
|
-
/** URLs that are valid to redirect to after logout from Auth0
|
|
336
|
+
/** URLs that are valid to redirect to after logout from Auth0 */
|
|
337
337
|
allowed_logout_urls?: string[];
|
|
338
338
|
jwt_configuration?: Management.ClientJwtConfiguration;
|
|
339
339
|
encryption_key?: Management.ClientEncryptionKey | null;
|
|
@@ -1369,7 +1369,7 @@ export interface CreateSelfServiceProfileRequestContent {
|
|
|
1369
1369
|
/** The description of the self-service Profile. */
|
|
1370
1370
|
description?: string;
|
|
1371
1371
|
branding?: Management.SelfServiceProfileBrandingProperties;
|
|
1372
|
-
/** List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `keycloak-samlp`, `pingfederate`] */
|
|
1372
|
+
/** List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`] */
|
|
1373
1373
|
allowed_strategies?: Management.SelfServiceProfileAllowedStrategyEnum[];
|
|
1374
1374
|
/** List of attributes to be mapped that will be shown to the user during the SS-SSO flow. */
|
|
1375
1375
|
user_attributes?: Management.SelfServiceProfileUserAttribute[];
|
|
@@ -1385,7 +1385,7 @@ export interface UpdateSelfServiceProfileRequestContent {
|
|
|
1385
1385
|
name?: string;
|
|
1386
1386
|
description?: (Management.SelfServiceProfileDescription | undefined) | null;
|
|
1387
1387
|
branding?: Management.SelfServiceProfileBranding | undefined;
|
|
1388
|
-
/** List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `keycloak-samlp`, `pingfederate`] */
|
|
1388
|
+
/** List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`] */
|
|
1389
1389
|
allowed_strategies?: Management.SelfServiceProfileAllowedStrategyEnum[];
|
|
1390
1390
|
user_attributes?: (Management.SelfServiceProfileUserAttributes | undefined) | null;
|
|
1391
1391
|
/** ID of the user-attribute-profile to associate with this self-service profile. */
|
|
@@ -2275,15 +2275,15 @@ export interface ListDirectoryProvisioningsRequestParameters {
|
|
|
2275
2275
|
/**
|
|
2276
2276
|
* @example
|
|
2277
2277
|
* {
|
|
2278
|
-
*
|
|
2279
|
-
*
|
|
2278
|
+
* from: "from",
|
|
2279
|
+
* take: 1
|
|
2280
2280
|
* }
|
|
2281
2281
|
*/
|
|
2282
|
-
export interface
|
|
2283
|
-
/** Number of results per page. Defaults to 50. */
|
|
2284
|
-
take?: number | null;
|
|
2282
|
+
export interface ListScimConfigurationsRequestParameters {
|
|
2285
2283
|
/** Optional Id from which to start selection. */
|
|
2286
2284
|
from?: string | null;
|
|
2285
|
+
/** Number of results per page. Defaults to 50. */
|
|
2286
|
+
take?: number | null;
|
|
2287
2287
|
}
|
|
2288
2288
|
/**
|
|
2289
2289
|
* @example
|
|
@@ -2298,6 +2298,19 @@ export interface UpdateScimConfigurationRequestContent {
|
|
|
2298
2298
|
/** The mapping between auth0 and SCIM */
|
|
2299
2299
|
mapping: Management.ScimMappingItem[];
|
|
2300
2300
|
}
|
|
2301
|
+
/**
|
|
2302
|
+
* @example
|
|
2303
|
+
* {
|
|
2304
|
+
* take: 1,
|
|
2305
|
+
* from: "from"
|
|
2306
|
+
* }
|
|
2307
|
+
*/
|
|
2308
|
+
export interface GetConnectionEnabledClientsRequestParameters {
|
|
2309
|
+
/** Number of results per page. Defaults to 50. */
|
|
2310
|
+
take?: number | null;
|
|
2311
|
+
/** Optional Id from which to start selection. */
|
|
2312
|
+
from?: string | null;
|
|
2313
|
+
}
|
|
2301
2314
|
/**
|
|
2302
2315
|
* @example
|
|
2303
2316
|
* {
|
|
@@ -63,38 +63,27 @@ export class ActionsClient {
|
|
|
63
63
|
list() {
|
|
64
64
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
65
65
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
66
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
66
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
67
67
|
const { triggerId, actionName, deployed, page = 0, per_page: perPage = 50, installed } = request;
|
|
68
|
-
const _queryParams = {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
_queryParams["deployed"] = (_a = deployed === null || deployed === void 0 ? void 0 : deployed.toString()) !== null && _a !== void 0 ? _a : null;
|
|
77
|
-
}
|
|
78
|
-
if (page !== undefined) {
|
|
79
|
-
_queryParams["page"] = (_b = page === null || page === void 0 ? void 0 : page.toString()) !== null && _b !== void 0 ? _b : null;
|
|
80
|
-
}
|
|
81
|
-
if (perPage !== undefined) {
|
|
82
|
-
_queryParams["per_page"] = (_c = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _c !== void 0 ? _c : null;
|
|
83
|
-
}
|
|
84
|
-
if (installed !== undefined) {
|
|
85
|
-
_queryParams["installed"] = (_d = installed === null || installed === void 0 ? void 0 : installed.toString()) !== null && _d !== void 0 ? _d : null;
|
|
86
|
-
}
|
|
68
|
+
const _queryParams = {
|
|
69
|
+
triggerId,
|
|
70
|
+
actionName,
|
|
71
|
+
deployed,
|
|
72
|
+
page,
|
|
73
|
+
per_page: perPage,
|
|
74
|
+
installed,
|
|
75
|
+
};
|
|
87
76
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
88
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
89
|
-
const _response = yield ((
|
|
90
|
-
url: core.url.join((
|
|
77
|
+
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);
|
|
78
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
79
|
+
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, "actions/actions"),
|
|
91
80
|
method: "GET",
|
|
92
81
|
headers: _headers,
|
|
93
82
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
94
|
-
timeoutMs: ((
|
|
95
|
-
maxRetries: (
|
|
83
|
+
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,
|
|
84
|
+
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,
|
|
96
85
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
97
|
-
fetchFn: (
|
|
86
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
98
87
|
logging: this._options.logging,
|
|
99
88
|
});
|
|
100
89
|
if (_response.ok) {
|
|
@@ -288,23 +277,22 @@ export class ActionsClient {
|
|
|
288
277
|
}
|
|
289
278
|
__delete(id_1) {
|
|
290
279
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
291
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
280
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
292
281
|
const { force } = request;
|
|
293
|
-
const _queryParams = {
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
}
|
|
282
|
+
const _queryParams = {
|
|
283
|
+
force,
|
|
284
|
+
};
|
|
297
285
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
298
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
299
|
-
const _response = yield ((
|
|
300
|
-
url: core.url.join((
|
|
286
|
+
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);
|
|
287
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
288
|
+
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, `actions/actions/${core.url.encodePathParam(id)}`),
|
|
301
289
|
method: "DELETE",
|
|
302
290
|
headers: _headers,
|
|
303
291
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
304
|
-
timeoutMs: ((
|
|
305
|
-
maxRetries: (
|
|
292
|
+
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,
|
|
293
|
+
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,
|
|
306
294
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
307
|
-
fetchFn: (
|
|
295
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
308
296
|
logging: this._options.logging,
|
|
309
297
|
});
|
|
310
298
|
if (_response.ok) {
|
|
@@ -44,26 +44,23 @@ export class ModulesClient {
|
|
|
44
44
|
list() {
|
|
45
45
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
46
46
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
47
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
47
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
48
48
|
const { page = 0, per_page: perPage = 50 } = request;
|
|
49
|
-
const _queryParams = {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
if (perPage !== undefined) {
|
|
54
|
-
_queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
|
|
55
|
-
}
|
|
49
|
+
const _queryParams = {
|
|
50
|
+
page,
|
|
51
|
+
per_page: perPage,
|
|
52
|
+
};
|
|
56
53
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
57
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
58
|
-
const _response = yield ((
|
|
59
|
-
url: core.url.join((
|
|
54
|
+
let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
55
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
56
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "actions/modules"),
|
|
60
57
|
method: "GET",
|
|
61
58
|
headers: _headers,
|
|
62
59
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
63
|
-
timeoutMs: ((
|
|
64
|
-
maxRetries: (
|
|
60
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
61
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
65
62
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
66
|
-
fetchFn: (
|
|
63
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
67
64
|
logging: this._options.logging,
|
|
68
65
|
});
|
|
69
66
|
if (_response.ok) {
|
|
@@ -393,26 +390,23 @@ export class ModulesClient {
|
|
|
393
390
|
listActions(id_1) {
|
|
394
391
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
395
392
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
396
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
393
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
397
394
|
const { page = 0, per_page: perPage = 50 } = request;
|
|
398
|
-
const _queryParams = {
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
}
|
|
402
|
-
if (perPage !== undefined) {
|
|
403
|
-
_queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
|
|
404
|
-
}
|
|
395
|
+
const _queryParams = {
|
|
396
|
+
page,
|
|
397
|
+
per_page: perPage,
|
|
398
|
+
};
|
|
405
399
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
406
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
407
|
-
const _response = yield ((
|
|
408
|
-
url: core.url.join((
|
|
400
|
+
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);
|
|
401
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
402
|
+
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, `actions/modules/${core.url.encodePathParam(id)}/actions`),
|
|
409
403
|
method: "GET",
|
|
410
404
|
headers: _headers,
|
|
411
405
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
412
|
-
timeoutMs: ((
|
|
413
|
-
maxRetries: (
|
|
406
|
+
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,
|
|
407
|
+
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,
|
|
414
408
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
415
|
-
fetchFn: (
|
|
409
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
416
410
|
logging: this._options.logging,
|
|
417
411
|
});
|
|
418
412
|
if (_response.ok) {
|
|
@@ -41,26 +41,23 @@ export class VersionsClient {
|
|
|
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 } = request;
|
|
46
|
-
const _queryParams = {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
if (perPage !== undefined) {
|
|
51
|
-
_queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
|
|
52
|
-
}
|
|
46
|
+
const _queryParams = {
|
|
47
|
+
page,
|
|
48
|
+
per_page: perPage,
|
|
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, `actions/modules/${core.url.encodePathParam(id)}/versions`),
|
|
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) {
|
|
@@ -40,26 +40,23 @@ export class BindingsClient {
|
|
|
40
40
|
list(triggerId_1) {
|
|
41
41
|
return __awaiter(this, arguments, void 0, function* (triggerId, 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 } = request;
|
|
45
|
-
const _queryParams = {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
if (perPage !== undefined) {
|
|
50
|
-
_queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
|
|
51
|
-
}
|
|
45
|
+
const _queryParams = {
|
|
46
|
+
page,
|
|
47
|
+
per_page: perPage,
|
|
48
|
+
};
|
|
52
49
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
53
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
54
|
-
const _response = yield ((
|
|
55
|
-
url: core.url.join((
|
|
50
|
+
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);
|
|
51
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
52
|
+
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, `actions/triggers/${core.url.encodePathParam(triggerId)}/bindings`),
|
|
56
53
|
method: "GET",
|
|
57
54
|
headers: _headers,
|
|
58
55
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
59
|
-
timeoutMs: ((
|
|
60
|
-
maxRetries: (
|
|
56
|
+
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,
|
|
57
|
+
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,
|
|
61
58
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
62
|
-
fetchFn: (
|
|
59
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
63
60
|
logging: this._options.logging,
|
|
64
61
|
});
|
|
65
62
|
if (_response.ok) {
|
|
@@ -40,26 +40,23 @@ export class VersionsClient {
|
|
|
40
40
|
list(actionId_1) {
|
|
41
41
|
return __awaiter(this, arguments, void 0, function* (actionId, 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 } = request;
|
|
45
|
-
const _queryParams = {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
if (perPage !== undefined) {
|
|
50
|
-
_queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
|
|
51
|
-
}
|
|
45
|
+
const _queryParams = {
|
|
46
|
+
page,
|
|
47
|
+
per_page: perPage,
|
|
48
|
+
};
|
|
52
49
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
53
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
54
|
-
const _response = yield ((
|
|
55
|
-
url: core.url.join((
|
|
50
|
+
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);
|
|
51
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
52
|
+
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, `actions/actions/${core.url.encodePathParam(actionId)}/versions`),
|
|
56
53
|
method: "GET",
|
|
57
54
|
headers: _headers,
|
|
58
55
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
59
|
-
timeoutMs: ((
|
|
60
|
-
maxRetries: (
|
|
56
|
+
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,
|
|
57
|
+
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,
|
|
61
58
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
62
|
-
fetchFn: (
|
|
59
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
63
60
|
logging: this._options.logging,
|
|
64
61
|
});
|
|
65
62
|
if (_response.ok) {
|
|
@@ -197,7 +194,7 @@ export class VersionsClient {
|
|
|
197
194
|
contentType: "application/json",
|
|
198
195
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
199
196
|
requestType: "json",
|
|
200
|
-
body: request
|
|
197
|
+
body: request,
|
|
201
198
|
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,
|
|
202
199
|
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,
|
|
203
200
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -40,23 +40,22 @@ export class ProvidersClient {
|
|
|
40
40
|
}
|
|
41
41
|
__list() {
|
|
42
42
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
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 { disabled } = request;
|
|
45
|
-
const _queryParams = {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
45
|
+
const _queryParams = {
|
|
46
|
+
disabled,
|
|
47
|
+
};
|
|
49
48
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
50
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
51
|
-
const _response = yield ((
|
|
52
|
-
url: core.url.join((
|
|
49
|
+
let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
50
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
51
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "branding/phone/providers"),
|
|
53
52
|
method: "GET",
|
|
54
53
|
headers: _headers,
|
|
55
54
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
56
|
-
timeoutMs: ((
|
|
57
|
-
maxRetries: (
|
|
55
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
56
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
58
57
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
59
|
-
fetchFn: (
|
|
58
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
60
59
|
logging: this._options.logging,
|
|
61
60
|
});
|
|
62
61
|
if (_response.ok) {
|
|
@@ -38,23 +38,22 @@ export class TemplatesClient {
|
|
|
38
38
|
}
|
|
39
39
|
__list() {
|
|
40
40
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
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 { disabled } = request;
|
|
43
|
-
const _queryParams = {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
43
|
+
const _queryParams = {
|
|
44
|
+
disabled,
|
|
45
|
+
};
|
|
47
46
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
48
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
49
|
-
const _response = yield ((
|
|
50
|
-
url: core.url.join((
|
|
47
|
+
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);
|
|
48
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
49
|
+
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, "branding/phone/templates"),
|
|
51
50
|
method: "GET",
|
|
52
51
|
headers: _headers,
|
|
53
52
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
54
|
-
timeoutMs: ((
|
|
55
|
-
maxRetries: (
|
|
53
|
+
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,
|
|
54
|
+
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,
|
|
56
55
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
57
|
-
fetchFn: (
|
|
56
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
58
57
|
logging: this._options.logging,
|
|
59
58
|
});
|
|
60
59
|
if (_response.ok) {
|
|
@@ -47,38 +47,27 @@ export class ClientGrantsClient {
|
|
|
47
47
|
list() {
|
|
48
48
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
49
49
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
50
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
50
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
51
51
|
const { from: from_, take = 50, audience, client_id: clientId, allow_any_organization: allowAnyOrganization, subject_type: subjectType, } = request;
|
|
52
|
-
const _queryParams = {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
_queryParams["audience"] = audience;
|
|
61
|
-
}
|
|
62
|
-
if (clientId !== undefined) {
|
|
63
|
-
_queryParams["client_id"] = clientId;
|
|
64
|
-
}
|
|
65
|
-
if (allowAnyOrganization !== undefined) {
|
|
66
|
-
_queryParams["allow_any_organization"] = (_b = allowAnyOrganization === null || allowAnyOrganization === void 0 ? void 0 : allowAnyOrganization.toString()) !== null && _b !== void 0 ? _b : null;
|
|
67
|
-
}
|
|
68
|
-
if (subjectType !== undefined) {
|
|
69
|
-
_queryParams["subject_type"] = subjectType;
|
|
70
|
-
}
|
|
52
|
+
const _queryParams = {
|
|
53
|
+
from: from_,
|
|
54
|
+
take,
|
|
55
|
+
audience,
|
|
56
|
+
client_id: clientId,
|
|
57
|
+
allow_any_organization: allowAnyOrganization,
|
|
58
|
+
subject_type: subjectType !== undefined ? subjectType : undefined,
|
|
59
|
+
};
|
|
71
60
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
72
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
73
|
-
const _response = yield ((
|
|
74
|
-
url: core.url.join((
|
|
61
|
+
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);
|
|
62
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
63
|
+
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, "client-grants"),
|
|
75
64
|
method: "GET",
|
|
76
65
|
headers: _headers,
|
|
77
66
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
78
|
-
timeoutMs: ((
|
|
79
|
-
maxRetries: (
|
|
67
|
+
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,
|
|
68
|
+
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
69
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
81
|
-
fetchFn: (
|
|
70
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
82
71
|
logging: this._options.logging,
|
|
83
72
|
});
|
|
84
73
|
if (_response.ok) {
|
package/dist/esm/management/api/resources/clientGrants/resources/organizations/client/Client.mjs
CHANGED
|
@@ -38,26 +38,23 @@ export class OrganizationsClient {
|
|
|
38
38
|
list(id_1) {
|
|
39
39
|
return __awaiter(this, arguments, void 0, function* (id, 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 { from: from_, take = 50 } = request;
|
|
43
|
-
const _queryParams = {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
if (take !== undefined) {
|
|
48
|
-
_queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
|
|
49
|
-
}
|
|
43
|
+
const _queryParams = {
|
|
44
|
+
from: from_,
|
|
45
|
+
take,
|
|
46
|
+
};
|
|
50
47
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
51
|
-
let _headers = mergeHeaders(_authRequest.headers, (
|
|
52
|
-
const _response = yield ((
|
|
53
|
-
url: core.url.join((
|
|
48
|
+
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);
|
|
49
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
50
|
+
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, `client-grants/${core.url.encodePathParam(id)}/organizations`),
|
|
54
51
|
method: "GET",
|
|
55
52
|
headers: _headers,
|
|
56
53
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
57
|
-
timeoutMs: ((
|
|
58
|
-
maxRetries: (
|
|
54
|
+
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,
|
|
55
|
+
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,
|
|
59
56
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
60
|
-
fetchFn: (
|
|
57
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
61
58
|
logging: this._options.logging,
|
|
62
59
|
});
|
|
63
60
|
if (_response.ok) {
|