auth0 7.6.0 → 7.7.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/Client.d.ts +3 -0
- package/dist/cjs/management/Client.js +45 -40
- package/dist/cjs/management/api/requests/requests.d.ts +48 -2
- package/dist/cjs/management/api/resources/clients/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/clients/client/Client.js +3 -1
- package/dist/cjs/management/api/resources/connections/resources/keys/client/Client.d.ts +3 -3
- package/dist/cjs/management/api/resources/connections/resources/keys/client/Client.js +3 -3
- package/dist/cjs/management/api/resources/experimentation/resources/segments/client/Client.d.ts +2 -1
- package/dist/cjs/management/api/resources/experimentation/resources/segments/client/Client.js +4 -2
- package/dist/cjs/management/api/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/index.js +2 -1
- package/dist/cjs/management/api/resources/portals/client/Client.d.ts +112 -0
- package/dist/cjs/management/api/resources/portals/client/Client.js +395 -0
- package/dist/cjs/management/api/resources/portals/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/portals/client/index.js +2 -0
- package/dist/cjs/management/api/resources/portals/exports.d.ts +2 -0
- package/dist/cjs/management/api/resources/portals/exports.js +21 -0
- package/dist/cjs/management/api/resources/portals/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/portals/index.js +17 -0
- package/dist/cjs/management/api/resources/users/client/Client.d.ts +57 -0
- package/dist/cjs/management/api/resources/users/client/Client.js +185 -0
- package/dist/cjs/management/api/types/types.d.ts +461 -4
- package/dist/cjs/management/api/types/types.js +92 -22
- package/dist/cjs/management/version.d.ts +1 -1
- package/dist/cjs/management/version.js +1 -1
- package/dist/cjs/management/wrapper/ManagementClient.d.ts +4 -1
- package/dist/cjs/management/wrapper/ManagementClient.js +2 -1
- package/dist/cjs/management/wrapper/auth-helpers.d.ts +3 -0
- package/dist/cjs/management/wrapper/auth-helpers.js +5 -0
- package/dist/cjs/management/wrapper/domain.d.ts +12 -0
- package/dist/cjs/management/wrapper/domain.js +28 -0
- package/dist/cjs/management/wrapper/management-auth.d.ts +2 -1
- package/dist/cjs/management/wrapper/management-auth.js +2 -1
- package/dist/cjs/management/wrapper/token-provider.js +4 -4
- package/dist/esm/management/Client.d.mts +3 -0
- package/dist/esm/management/Client.mjs +5 -0
- package/dist/esm/management/api/requests/requests.d.mts +48 -2
- package/dist/esm/management/api/resources/clients/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/clients/client/Client.mjs +3 -1
- package/dist/esm/management/api/resources/connections/resources/keys/client/Client.d.mts +3 -3
- package/dist/esm/management/api/resources/connections/resources/keys/client/Client.mjs +3 -3
- package/dist/esm/management/api/resources/experimentation/resources/segments/client/Client.d.mts +2 -1
- package/dist/esm/management/api/resources/experimentation/resources/segments/client/Client.mjs +4 -2
- package/dist/esm/management/api/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/portals/client/Client.d.mts +112 -0
- package/dist/esm/management/api/resources/portals/client/Client.mjs +358 -0
- package/dist/esm/management/api/resources/portals/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/portals/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/portals/exports.d.mts +2 -0
- package/dist/esm/management/api/resources/portals/exports.mjs +3 -0
- package/dist/esm/management/api/resources/portals/index.d.mts +1 -0
- package/dist/esm/management/api/resources/portals/index.mjs +1 -0
- package/dist/esm/management/api/resources/users/client/Client.d.mts +57 -0
- package/dist/esm/management/api/resources/users/client/Client.mjs +185 -0
- package/dist/esm/management/api/types/types.d.mts +461 -4
- package/dist/esm/management/api/types/types.mjs +70 -1
- package/dist/esm/management/version.d.mts +1 -1
- package/dist/esm/management/version.mjs +1 -1
- package/dist/esm/management/wrapper/ManagementClient.d.mts +4 -1
- package/dist/esm/management/wrapper/ManagementClient.mjs +3 -2
- package/dist/esm/management/wrapper/auth-helpers.d.mts +3 -0
- package/dist/esm/management/wrapper/auth-helpers.mjs +5 -0
- package/dist/esm/management/wrapper/domain.d.mts +12 -0
- package/dist/esm/management/wrapper/domain.mjs +25 -0
- package/dist/esm/management/wrapper/management-auth.d.mts +2 -1
- package/dist/esm/management/wrapper/management-auth.mjs +2 -1
- package/dist/esm/management/wrapper/token-provider.mjs +4 -4
- package/package.json +12 -1
- package/reference.md +462 -3
|
@@ -13,16 +13,16 @@ exports.TokenProvider = void 0;
|
|
|
13
13
|
const jose_1 = require("jose");
|
|
14
14
|
const utils_js_1 = require("../../utils.js");
|
|
15
15
|
const ManagementError_js_1 = require("../errors/ManagementError.js");
|
|
16
|
+
const domain_js_1 = require("./domain.js");
|
|
16
17
|
const LEEWAY = 10 * 1000; // 10s refresh-ahead in ms
|
|
17
18
|
class TokenProvider {
|
|
18
19
|
constructor(options) {
|
|
19
20
|
this.options = options;
|
|
20
21
|
this.expiresAt = 0;
|
|
21
22
|
this.accessToken = "";
|
|
22
|
-
//
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
23
|
+
// TokenProvider is exported and can be constructed directly, so it validates the domain itself
|
|
24
|
+
// rather than relying on ManagementClient or createManagementAuth having done so.
|
|
25
|
+
(0, domain_js_1.validateDomain)(options.domain);
|
|
26
26
|
if (options.useMTLS) {
|
|
27
27
|
const { fetch: customFetch } = options;
|
|
28
28
|
if (!customFetch) {
|
|
@@ -26,6 +26,7 @@ import { LogsClient } from "./api/resources/logs/client/Client.mjs";
|
|
|
26
26
|
import { LogStreamsClient } from "./api/resources/logStreams/client/Client.mjs";
|
|
27
27
|
import { NetworkAclsClient } from "./api/resources/networkAcls/client/Client.mjs";
|
|
28
28
|
import { OrganizationsClient } from "./api/resources/organizations/client/Client.mjs";
|
|
29
|
+
import { PortalsClient } from "./api/resources/portals/client/Client.mjs";
|
|
29
30
|
import { PromptsClient } from "./api/resources/prompts/client/Client.mjs";
|
|
30
31
|
import { RateLimitPoliciesClient } from "./api/resources/rateLimitPolicies/client/Client.mjs";
|
|
31
32
|
import { RefreshTokensClient } from "./api/resources/refreshTokens/client/Client.mjs";
|
|
@@ -80,6 +81,7 @@ export declare class ManagementClient {
|
|
|
80
81
|
protected _logs: LogsClient | undefined;
|
|
81
82
|
protected _networkAcls: NetworkAclsClient | undefined;
|
|
82
83
|
protected _organizations: OrganizationsClient | undefined;
|
|
84
|
+
protected _portals: PortalsClient | undefined;
|
|
83
85
|
protected _prompts: PromptsClient | undefined;
|
|
84
86
|
protected _rateLimitPolicies: RateLimitPoliciesClient | undefined;
|
|
85
87
|
protected _refreshTokens: RefreshTokensClient | undefined;
|
|
@@ -129,6 +131,7 @@ export declare class ManagementClient {
|
|
|
129
131
|
get logs(): LogsClient;
|
|
130
132
|
get networkAcls(): NetworkAclsClient;
|
|
131
133
|
get organizations(): OrganizationsClient;
|
|
134
|
+
get portals(): PortalsClient;
|
|
132
135
|
get prompts(): PromptsClient;
|
|
133
136
|
get rateLimitPolicies(): RateLimitPoliciesClient;
|
|
134
137
|
get refreshTokens(): RefreshTokensClient;
|
|
@@ -36,6 +36,7 @@ import { LogsClient } from "./api/resources/logs/client/Client.mjs";
|
|
|
36
36
|
import { LogStreamsClient } from "./api/resources/logStreams/client/Client.mjs";
|
|
37
37
|
import { NetworkAclsClient } from "./api/resources/networkAcls/client/Client.mjs";
|
|
38
38
|
import { OrganizationsClient } from "./api/resources/organizations/client/Client.mjs";
|
|
39
|
+
import { PortalsClient } from "./api/resources/portals/client/Client.mjs";
|
|
39
40
|
import { PromptsClient } from "./api/resources/prompts/client/Client.mjs";
|
|
40
41
|
import { RateLimitPoliciesClient } from "./api/resources/rateLimitPolicies/client/Client.mjs";
|
|
41
42
|
import { RefreshTokensClient } from "./api/resources/refreshTokens/client/Client.mjs";
|
|
@@ -158,6 +159,10 @@ export class ManagementClient {
|
|
|
158
159
|
var _a;
|
|
159
160
|
return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new OrganizationsClient(this._options)));
|
|
160
161
|
}
|
|
162
|
+
get portals() {
|
|
163
|
+
var _a;
|
|
164
|
+
return ((_a = this._portals) !== null && _a !== void 0 ? _a : (this._portals = new PortalsClient(this._options)));
|
|
165
|
+
}
|
|
161
166
|
get prompts() {
|
|
162
167
|
var _a;
|
|
163
168
|
return ((_a = this._prompts) !== null && _a !== void 0 ? _a : (this._prompts = new PromptsClient(this._options)));
|
|
@@ -292,6 +292,7 @@ export interface UpdateClientProfileRequestContent {
|
|
|
292
292
|
* is_first_party: true,
|
|
293
293
|
* app_type: "app_type",
|
|
294
294
|
* external_client_id: "external_client_id",
|
|
295
|
+
* agent_id: "agent_id",
|
|
295
296
|
* q: "q"
|
|
296
297
|
* }
|
|
297
298
|
*/
|
|
@@ -314,6 +315,8 @@ export interface ListClientsRequestParameters {
|
|
|
314
315
|
app_type?: string | null;
|
|
315
316
|
/** Optional filter by the <a href="https://drafts.oauth.net/draft-ietf-oauth-client-id-metadata-document/draft-ietf-oauth-client-id-metadata-document.html">Client ID Metadata Document</a> URI for CIMD-registered clients. */
|
|
316
317
|
external_client_id?: string | null;
|
|
318
|
+
/** Optional filter by the agent associated with the client.<br /><b>Additional Restrictions</b>:<br /><ul><li>Cannot be used in combination with other filters</li><li>Only <i>fields</i>, <i>include_fields</i>, <i>page</i>, <i>per_page</i>, and <i>include_totals</i> are supported alongside it</li><li>Checkpoint pagination (<i>from</i>, <i>take</i>) is not supported</li></ul> */
|
|
319
|
+
agent_id?: string | null;
|
|
317
320
|
/** Advanced Query in <a href="https://lucene.apache.org/core/2_9_4/queryparsersyntax.html">Lucene</a> syntax.<br /><b>Permitted Queries</b>:<br /><ul><li><i>client_grant.organization_id:{organization_id}</i></li><li><i>client_grant.allow_any_organization:true</i></li></ul><b>Additional Restrictions</b>:<br /><ul><li>Cannot be used in combination with other filters</li><li>Requires use of the <i>from</i> and <i>take</i> paging parameters (checkpoint paginatinon)</li><li>Reduced rate limits apply. See <a href="https://auth0.com/docs/troubleshoot/customer-support/operational-policies/rate-limit-policy/rate-limit-configurations/enterprise-public">Rate Limit Configurations</a></li></ul><i><b>Note</b>: Recent updates may not be immediately reflected in query results</i> */
|
|
318
321
|
q?: string | null;
|
|
319
322
|
}
|
|
@@ -416,6 +419,8 @@ export interface CreateClientRequestContent {
|
|
|
416
419
|
b2b_integration_configuration?: Management.B2BIntegrationConfiguration;
|
|
417
420
|
my_organization_configuration?: Management.ClientMyOrganizationPostConfiguration;
|
|
418
421
|
async_approval_notification_channels?: Management.ClientAsyncApprovalNotificationsChannelsApiPostConfiguration;
|
|
422
|
+
/** ID of the agent to associate with this client. */
|
|
423
|
+
agent_id?: string | null;
|
|
419
424
|
oidc_support?: Management.ClientOidcSupportPost;
|
|
420
425
|
}
|
|
421
426
|
/**
|
|
@@ -578,6 +583,8 @@ export interface UpdateClientRequestContent {
|
|
|
578
583
|
async_approval_notification_channels?: (Management.ClientAsyncApprovalNotificationsChannelsApiPatchConfiguration | undefined) | null;
|
|
579
584
|
third_party_security_mode?: Management.ClientThirdPartySecurityModeEnum;
|
|
580
585
|
redirection_policy?: Management.ClientRedirectionPolicyEnum;
|
|
586
|
+
/** ID of the agent to associate with this client, or null to remove the association. */
|
|
587
|
+
agent_id?: string | null;
|
|
581
588
|
oidc_support?: Management.ClientOidcSupportPatch | null;
|
|
582
589
|
}
|
|
583
590
|
/**
|
|
@@ -1405,6 +1412,38 @@ export interface UpdateOrganizationRequestContent {
|
|
|
1405
1412
|
/** Whether app entitlement is active for this organization. */
|
|
1406
1413
|
is_app_entitlement_active?: boolean;
|
|
1407
1414
|
}
|
|
1415
|
+
/**
|
|
1416
|
+
* @example
|
|
1417
|
+
* {
|
|
1418
|
+
* slug: "slug",
|
|
1419
|
+
* name: "name",
|
|
1420
|
+
* client: {
|
|
1421
|
+
* token_endpoint_auth_method: "client_secret_post",
|
|
1422
|
+
* client_id: "client_id",
|
|
1423
|
+
* client_secret: "client_secret"
|
|
1424
|
+
* }
|
|
1425
|
+
* }
|
|
1426
|
+
*/
|
|
1427
|
+
export interface CreatePortalRequestContent {
|
|
1428
|
+
slug: Management.PortalSlug;
|
|
1429
|
+
name: Management.PortalName;
|
|
1430
|
+
client: Management.PortalClientSecretPostRequest;
|
|
1431
|
+
navigation?: Management.PortalNavigation;
|
|
1432
|
+
pages?: Management.PortalPagesByType;
|
|
1433
|
+
custom_code?: Management.PortalCustomCode;
|
|
1434
|
+
}
|
|
1435
|
+
/**
|
|
1436
|
+
* @example
|
|
1437
|
+
* {}
|
|
1438
|
+
*/
|
|
1439
|
+
export interface UpdatePortalRequestContent {
|
|
1440
|
+
slug?: Management.PortalSlug;
|
|
1441
|
+
name?: Management.PortalName;
|
|
1442
|
+
client?: Management.PortalClientSecretPostRequest;
|
|
1443
|
+
navigation?: (Management.PortalNavigationNullable | undefined) | null;
|
|
1444
|
+
pages?: (Management.PortalPagesByTypeNullable | undefined) | null;
|
|
1445
|
+
custom_code?: (Management.PortalCustomCodeNullable | undefined) | null;
|
|
1446
|
+
}
|
|
1408
1447
|
/**
|
|
1409
1448
|
* @example
|
|
1410
1449
|
* {}
|
|
@@ -1576,6 +1615,8 @@ export interface CreateResourceServerRequestContent {
|
|
|
1576
1615
|
proof_of_possession?: Management.ResourceServerProofOfPossession | null;
|
|
1577
1616
|
subject_type_authorization?: Management.ResourceServerSubjectTypeAuthorization;
|
|
1578
1617
|
authorization_policy?: Management.ResourceServerAuthorizationPolicy | null;
|
|
1618
|
+
agent_subject_claims?: Management.ResourceServerAgentSubjectClaimsSchemaEnum;
|
|
1619
|
+
type?: Management.ResourceServerTypeEnum | null;
|
|
1579
1620
|
}
|
|
1580
1621
|
/**
|
|
1581
1622
|
* @example
|
|
@@ -1651,6 +1692,8 @@ export interface UpdateResourceServerRequestContent {
|
|
|
1651
1692
|
proof_of_possession?: Management.ResourceServerProofOfPossession | null;
|
|
1652
1693
|
subject_type_authorization?: Management.ResourceServerSubjectTypeAuthorization;
|
|
1653
1694
|
authorization_policy?: Management.ResourceServerAuthorizationPolicy | null;
|
|
1695
|
+
agent_subject_claims?: Management.ResourceServerAgentSubjectClaimsSchemaEnum;
|
|
1696
|
+
type?: Management.ResourceServerTypeEnum | null;
|
|
1654
1697
|
}
|
|
1655
1698
|
/**
|
|
1656
1699
|
* @example
|
|
@@ -2353,9 +2396,9 @@ export interface UpdateBruteForceSettingsRequestContent {
|
|
|
2353
2396
|
/** List of trusted IP addresses that will not have attack protection enforced against them. */
|
|
2354
2397
|
allowlist?: string[];
|
|
2355
2398
|
mode?: Management.BruteForceProtectionModeEnum;
|
|
2399
|
+
form_submission_mode?: Management.BruteForceProtectionFormSubmissionModeEnum;
|
|
2356
2400
|
/** Maximum number of unsuccessful attempts. */
|
|
2357
2401
|
max_attempts?: number;
|
|
2358
|
-
form_submission_mode?: Management.BruteForceProtectionFormSubmissionModeEnum;
|
|
2359
2402
|
}
|
|
2360
2403
|
/**
|
|
2361
2404
|
* @example
|
|
@@ -3057,7 +3100,8 @@ export interface UpdateFeatureFlagRequestContent {
|
|
|
3057
3100
|
* {
|
|
3058
3101
|
* from: "from",
|
|
3059
3102
|
* take: 1,
|
|
3060
|
-
* type: "auth0"
|
|
3103
|
+
* type: "auth0",
|
|
3104
|
+
* status: "active"
|
|
3061
3105
|
* }
|
|
3062
3106
|
*/
|
|
3063
3107
|
export interface ListSegmentsRequestParameters {
|
|
@@ -3067,6 +3111,8 @@ export interface ListSegmentsRequestParameters {
|
|
|
3067
3111
|
take?: number | null;
|
|
3068
3112
|
/** Filter by type. Exact match. */
|
|
3069
3113
|
type?: Management.SegmentTypeFilterEnum | null;
|
|
3114
|
+
/** Filter by status. Exact match. */
|
|
3115
|
+
status?: Management.SegmentStatusEnum | null;
|
|
3070
3116
|
}
|
|
3071
3117
|
/**
|
|
3072
3118
|
* @example
|
|
@@ -78,6 +78,7 @@ export class ClientsClient {
|
|
|
78
78
|
* is_first_party: true,
|
|
79
79
|
* app_type: "app_type",
|
|
80
80
|
* external_client_id: "external_client_id",
|
|
81
|
+
* agent_id: "agent_id",
|
|
81
82
|
* q: "q"
|
|
82
83
|
* })
|
|
83
84
|
*/
|
|
@@ -85,7 +86,7 @@ export class ClientsClient {
|
|
|
85
86
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
86
87
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
87
88
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
88
|
-
const { fields, include_fields: includeFields, page = 0, per_page: perPage = 50, include_totals: includeTotals = true, is_global: isGlobal, is_first_party: isFirstParty, app_type: appType, external_client_id: externalClientId, q, } = request;
|
|
89
|
+
const { fields, include_fields: includeFields, page = 0, per_page: perPage = 50, include_totals: includeTotals = true, is_global: isGlobal, is_first_party: isFirstParty, app_type: appType, external_client_id: externalClientId, agent_id: agentId, q, } = request;
|
|
89
90
|
const _queryParams = {
|
|
90
91
|
fields,
|
|
91
92
|
include_fields: includeFields,
|
|
@@ -96,6 +97,7 @@ export class ClientsClient {
|
|
|
96
97
|
is_first_party: isFirstParty,
|
|
97
98
|
app_type: appType,
|
|
98
99
|
external_client_id: externalClientId,
|
|
100
|
+
agent_id: agentId,
|
|
99
101
|
q,
|
|
100
102
|
};
|
|
101
103
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
@@ -11,7 +11,7 @@ export declare class KeysClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<KeysClient.Options>;
|
|
12
12
|
constructor(options: KeysClient.Options);
|
|
13
13
|
/**
|
|
14
|
-
* Gets the connection keys for the Okta or
|
|
14
|
+
* Gets the connection keys for the Okta, OIDC, or SAML (samlp) connection strategy.
|
|
15
15
|
*
|
|
16
16
|
* @param {string} id - ID of the connection
|
|
17
17
|
* @param {KeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -30,7 +30,7 @@ export declare class KeysClient {
|
|
|
30
30
|
get(id: string, requestOptions?: KeysClient.RequestOptions): core.HttpResponsePromise<Management.ConnectionKey[]>;
|
|
31
31
|
private __get;
|
|
32
32
|
/**
|
|
33
|
-
* Provision initial connection keys for Okta or
|
|
33
|
+
* Provision initial connection keys for Okta, OIDC, or SAML (samlp) connection strategies. This endpoint allows you to create keys before configuring the connection to use Private Key JWT authentication, enabling zero-downtime transitions.
|
|
34
34
|
*
|
|
35
35
|
* @param {string} id - ID of the connection
|
|
36
36
|
* @param {Management.PostConnectionKeysRequestContent | null} request
|
|
@@ -51,7 +51,7 @@ export declare class KeysClient {
|
|
|
51
51
|
create(id: string, request?: Management.PostConnectionKeysRequestContent | null, requestOptions?: KeysClient.RequestOptions): core.HttpResponsePromise<Management.PostConnectionsKeysResponseContent>;
|
|
52
52
|
private __create;
|
|
53
53
|
/**
|
|
54
|
-
* Rotates the connection keys for the Okta or
|
|
54
|
+
* Rotates the connection keys for the Okta, OIDC, or SAML (samlp) connection strategies.
|
|
55
55
|
*
|
|
56
56
|
* @param {string} id - ID of the connection
|
|
57
57
|
* @param {Management.RotateConnectionKeysRequestContent | null} request
|
|
@@ -21,7 +21,7 @@ export class KeysClient {
|
|
|
21
21
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
* Gets the connection keys for the Okta or
|
|
24
|
+
* Gets the connection keys for the Okta, OIDC, or SAML (samlp) connection strategy.
|
|
25
25
|
*
|
|
26
26
|
* @param {string} id - ID of the connection
|
|
27
27
|
* @param {KeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -83,7 +83,7 @@ export class KeysClient {
|
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
/**
|
|
86
|
-
* Provision initial connection keys for Okta or
|
|
86
|
+
* Provision initial connection keys for Okta, OIDC, or SAML (samlp) connection strategies. This endpoint allows you to create keys before configuring the connection to use Private Key JWT authentication, enabling zero-downtime transitions.
|
|
87
87
|
*
|
|
88
88
|
* @param {string} id - ID of the connection
|
|
89
89
|
* @param {Management.PostConnectionKeysRequestContent | null} request
|
|
@@ -155,7 +155,7 @@ export class KeysClient {
|
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
157
|
/**
|
|
158
|
-
* Rotates the connection keys for the Okta or
|
|
158
|
+
* Rotates the connection keys for the Okta, OIDC, or SAML (samlp) connection strategies.
|
|
159
159
|
*
|
|
160
160
|
* @param {string} id - ID of the connection
|
|
161
161
|
* @param {Management.RotateConnectionKeysRequestContent | null} request
|
package/dist/esm/management/api/resources/experimentation/resources/segments/client/Client.d.mts
CHANGED
|
@@ -27,7 +27,8 @@ export declare class SegmentsClient {
|
|
|
27
27
|
* await client.experimentation.segments.list({
|
|
28
28
|
* from: "from",
|
|
29
29
|
* take: 1,
|
|
30
|
-
* type: "auth0"
|
|
30
|
+
* type: "auth0",
|
|
31
|
+
* status: "active"
|
|
31
32
|
* })
|
|
32
33
|
*/
|
|
33
34
|
list(request?: Management.ListSegmentsRequestParameters, requestOptions?: SegmentsClient.RequestOptions): Promise<core.Page<Management.Segment, Management.ListSegmentsResponseContent>>;
|
package/dist/esm/management/api/resources/experimentation/resources/segments/client/Client.mjs
CHANGED
|
@@ -37,18 +37,20 @@ export class SegmentsClient {
|
|
|
37
37
|
* await client.experimentation.segments.list({
|
|
38
38
|
* from: "from",
|
|
39
39
|
* take: 1,
|
|
40
|
-
* type: "auth0"
|
|
40
|
+
* type: "auth0",
|
|
41
|
+
* status: "active"
|
|
41
42
|
* })
|
|
42
43
|
*/
|
|
43
44
|
list() {
|
|
44
45
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
45
46
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
46
47
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
47
|
-
const { from: from_, take = 50, type: type_ } = request;
|
|
48
|
+
const { from: from_, take = 50, type: type_, status } = request;
|
|
48
49
|
const _queryParams = {
|
|
49
50
|
from: from_,
|
|
50
51
|
take,
|
|
51
52
|
type: type_ !== undefined ? type_ : undefined,
|
|
53
|
+
status: status !== undefined ? status : undefined,
|
|
52
54
|
};
|
|
53
55
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
54
56
|
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);
|
|
@@ -27,6 +27,7 @@ export * as logs from "./logs/index.mjs";
|
|
|
27
27
|
export * as logStreams from "./logStreams/index.mjs";
|
|
28
28
|
export * as networkAcls from "./networkAcls/index.mjs";
|
|
29
29
|
export * as organizations from "./organizations/index.mjs";
|
|
30
|
+
export * as portals from "./portals/index.mjs";
|
|
30
31
|
export * as prompts from "./prompts/index.mjs";
|
|
31
32
|
export * as rateLimitPolicies from "./rateLimitPolicies/index.mjs";
|
|
32
33
|
export * as refreshTokens from "./refreshTokens/index.mjs";
|
|
@@ -27,6 +27,7 @@ export * as logs from "./logs/index.mjs";
|
|
|
27
27
|
export * as logStreams from "./logStreams/index.mjs";
|
|
28
28
|
export * as networkAcls from "./networkAcls/index.mjs";
|
|
29
29
|
export * as organizations from "./organizations/index.mjs";
|
|
30
|
+
export * as portals from "./portals/index.mjs";
|
|
30
31
|
export * as prompts from "./prompts/index.mjs";
|
|
31
32
|
export * as rateLimitPolicies from "./rateLimitPolicies/index.mjs";
|
|
32
33
|
export * as refreshTokens from "./refreshTokens/index.mjs";
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
3
|
+
import * as core from "../../../../core/index.mjs";
|
|
4
|
+
import * as Management from "../../../index.mjs";
|
|
5
|
+
export declare namespace PortalsClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class PortalsClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<PortalsClient.Options>;
|
|
12
|
+
constructor(options: PortalsClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* @param {PortalsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
15
|
+
*
|
|
16
|
+
* @throws {@link Management.UnauthorizedError}
|
|
17
|
+
* @throws {@link Management.ForbiddenError}
|
|
18
|
+
* @throws {@link Management.NotFoundError}
|
|
19
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
20
|
+
* @throws {@link Management.InternalServerError}
|
|
21
|
+
* @throws {@link errors.ManagementError}
|
|
22
|
+
* @throws {@link errors.ManagementTimeoutError}
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* await client.portals.list()
|
|
26
|
+
*/
|
|
27
|
+
list(requestOptions?: PortalsClient.RequestOptions): core.HttpResponsePromise<Management.ListPortalsResponseContent>;
|
|
28
|
+
private __list;
|
|
29
|
+
/**
|
|
30
|
+
* @param {Management.CreatePortalRequestContent} request
|
|
31
|
+
* @param {PortalsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
32
|
+
*
|
|
33
|
+
* @throws {@link Management.BadRequestError}
|
|
34
|
+
* @throws {@link Management.UnauthorizedError}
|
|
35
|
+
* @throws {@link Management.ForbiddenError}
|
|
36
|
+
* @throws {@link Management.NotFoundError}
|
|
37
|
+
* @throws {@link Management.ConflictError}
|
|
38
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
39
|
+
* @throws {@link Management.InternalServerError}
|
|
40
|
+
* @throws {@link errors.ManagementError}
|
|
41
|
+
* @throws {@link errors.ManagementTimeoutError}
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* await client.portals.create({
|
|
45
|
+
* slug: "slug",
|
|
46
|
+
* name: "name",
|
|
47
|
+
* client: {
|
|
48
|
+
* token_endpoint_auth_method: "client_secret_post",
|
|
49
|
+
* client_id: "client_id",
|
|
50
|
+
* client_secret: "client_secret"
|
|
51
|
+
* }
|
|
52
|
+
* })
|
|
53
|
+
*/
|
|
54
|
+
create(request: Management.CreatePortalRequestContent, requestOptions?: PortalsClient.RequestOptions): core.HttpResponsePromise<Management.Portal>;
|
|
55
|
+
private __create;
|
|
56
|
+
/**
|
|
57
|
+
* @param {Management.PortalId} id
|
|
58
|
+
* @param {PortalsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link Management.BadRequestError}
|
|
61
|
+
* @throws {@link Management.UnauthorizedError}
|
|
62
|
+
* @throws {@link Management.ForbiddenError}
|
|
63
|
+
* @throws {@link Management.NotFoundError}
|
|
64
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
65
|
+
* @throws {@link Management.InternalServerError}
|
|
66
|
+
* @throws {@link errors.ManagementError}
|
|
67
|
+
* @throws {@link errors.ManagementTimeoutError}
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* await client.portals.get("id")
|
|
71
|
+
*/
|
|
72
|
+
get(id: Management.PortalId, requestOptions?: PortalsClient.RequestOptions): core.HttpResponsePromise<Management.Portal>;
|
|
73
|
+
private __get;
|
|
74
|
+
/**
|
|
75
|
+
* @param {Management.PortalId} id
|
|
76
|
+
* @param {PortalsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link Management.BadRequestError}
|
|
79
|
+
* @throws {@link Management.UnauthorizedError}
|
|
80
|
+
* @throws {@link Management.ForbiddenError}
|
|
81
|
+
* @throws {@link Management.NotFoundError}
|
|
82
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
83
|
+
* @throws {@link Management.InternalServerError}
|
|
84
|
+
* @throws {@link errors.ManagementError}
|
|
85
|
+
* @throws {@link errors.ManagementTimeoutError}
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* await client.portals.delete("id")
|
|
89
|
+
*/
|
|
90
|
+
delete(id: Management.PortalId, requestOptions?: PortalsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
91
|
+
private __delete;
|
|
92
|
+
/**
|
|
93
|
+
* @param {Management.PortalId} id
|
|
94
|
+
* @param {Management.UpdatePortalRequestContent} request
|
|
95
|
+
* @param {PortalsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link Management.BadRequestError}
|
|
98
|
+
* @throws {@link Management.UnauthorizedError}
|
|
99
|
+
* @throws {@link Management.ForbiddenError}
|
|
100
|
+
* @throws {@link Management.NotFoundError}
|
|
101
|
+
* @throws {@link Management.ConflictError}
|
|
102
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
103
|
+
* @throws {@link Management.InternalServerError}
|
|
104
|
+
* @throws {@link errors.ManagementError}
|
|
105
|
+
* @throws {@link errors.ManagementTimeoutError}
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* await client.portals.update("id")
|
|
109
|
+
*/
|
|
110
|
+
update(id: Management.PortalId, request?: Management.UpdatePortalRequestContent, requestOptions?: PortalsClient.RequestOptions): core.HttpResponsePromise<Management.Portal>;
|
|
111
|
+
private __update;
|
|
112
|
+
}
|