auth0 5.14.0 → 6.0.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/README.md +2 -1
- package/dist/cjs/management/api/errors/BadRequestError.js +1 -1
- package/dist/cjs/management/api/errors/ConflictError.js +1 -1
- package/dist/cjs/management/api/errors/ContentTooLargeError.js +1 -1
- package/dist/cjs/management/api/errors/ForbiddenError.js +1 -1
- package/dist/cjs/management/api/errors/GoneError.js +1 -1
- package/dist/cjs/management/api/errors/InternalServerError.js +1 -1
- package/dist/cjs/management/api/errors/NotFoundError.js +1 -1
- package/dist/cjs/management/api/errors/PaymentRequiredError.js +1 -1
- package/dist/cjs/management/api/errors/PreconditionFailedError.js +1 -1
- package/dist/cjs/management/api/errors/ServiceUnavailableError.js +1 -1
- package/dist/cjs/management/api/errors/TooManyRequestsError.js +1 -1
- package/dist/cjs/management/api/errors/UnauthorizedError.js +1 -1
- package/dist/cjs/management/api/requests/requests.d.ts +23 -2
- package/dist/cjs/management/api/resources/actions/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/actions/resources/modules/client/Client.js +10 -2
- package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/actions/resources/versions/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/clients/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/deviceCredentials/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/eventStreams/client/Client.d.ts +1 -1
- package/dist/cjs/management/api/resources/eventStreams/client/Client.js +1 -1
- package/dist/cjs/management/api/resources/flows/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/flows/resources/vault/resources/connections/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/forms/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/guardian/resources/factors/resources/sms/client/Client.d.ts +1 -1
- package/dist/cjs/management/api/resources/hooks/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/jobs/resources/errors/client/Client.d.ts +1 -1
- package/dist/cjs/management/api/resources/jobs/resources/errors/client/Client.js +4 -1
- package/dist/cjs/management/api/resources/keys/resources/encryption/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/logs/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/networkAcls/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/organizations/client/Client.d.ts +3 -0
- package/dist/cjs/management/api/resources/organizations/client/Client.js +5 -0
- package/dist/cjs/management/api/resources/organizations/resources/clientGrants/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/organizations/resources/connections/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/organizations/resources/enabledConnections/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/organizations/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/index.js +2 -1
- package/dist/cjs/management/api/resources/organizations/resources/invitations/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/roles/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/organizations/resources/roles/client/Client.d.ts +12 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/client/Client.js +16 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/index.d.ts +2 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/index.js +18 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/index.js +37 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/members/client/Client.d.ts +36 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/members/client/Client.js +149 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/members/client/index.js +2 -0
- package/dist/cjs/management/api/resources/prompts/resources/rendering/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/resourceServers/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/roles/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/roles/resources/permissions/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/rules/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/selfServiceProfiles/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/userGrants/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/users/client/Client.d.ts +0 -3
- package/dist/cjs/management/api/resources/users/client/Client.js +25 -26
- package/dist/cjs/management/api/resources/users/resources/authenticationMethods/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/users/resources/index.d.ts +0 -1
- package/dist/cjs/management/api/resources/users/resources/index.js +1 -2
- package/dist/cjs/management/api/resources/users/resources/logs/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/users/resources/organizations/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/users/resources/permissions/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/users/resources/roles/client/Client.js +5 -1
- package/dist/cjs/management/api/types/types.d.ts +4399 -198
- package/dist/cjs/management/api/types/types.js +1028 -153
- package/dist/cjs/management/core/fetcher/getResponseBody.js +11 -0
- package/dist/cjs/management/core/fetcher/signals.js +9 -1
- package/dist/cjs/management/errors/ManagementError.js +1 -1
- package/dist/cjs/management/errors/ManagementTimeoutError.js +1 -1
- package/dist/cjs/management/version.d.ts +1 -1
- package/dist/cjs/management/version.js +1 -1
- package/dist/esm/management/api/errors/BadRequestError.mjs +1 -1
- package/dist/esm/management/api/errors/ConflictError.mjs +1 -1
- package/dist/esm/management/api/errors/ContentTooLargeError.mjs +1 -1
- package/dist/esm/management/api/errors/ForbiddenError.mjs +1 -1
- package/dist/esm/management/api/errors/GoneError.mjs +1 -1
- package/dist/esm/management/api/errors/InternalServerError.mjs +1 -1
- package/dist/esm/management/api/errors/NotFoundError.mjs +1 -1
- package/dist/esm/management/api/errors/PaymentRequiredError.mjs +1 -1
- package/dist/esm/management/api/errors/PreconditionFailedError.mjs +1 -1
- package/dist/esm/management/api/errors/ServiceUnavailableError.mjs +1 -1
- package/dist/esm/management/api/errors/TooManyRequestsError.mjs +1 -1
- package/dist/esm/management/api/errors/UnauthorizedError.mjs +1 -1
- package/dist/esm/management/api/requests/requests.d.mts +23 -2
- package/dist/esm/management/api/resources/actions/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/actions/resources/modules/client/Client.mjs +10 -2
- package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/actions/resources/versions/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/clients/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/deviceCredentials/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/eventStreams/client/Client.d.mts +1 -1
- package/dist/esm/management/api/resources/eventStreams/client/Client.mjs +1 -1
- package/dist/esm/management/api/resources/flows/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/flows/resources/vault/resources/connections/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/forms/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/guardian/resources/factors/resources/sms/client/Client.d.mts +1 -1
- package/dist/esm/management/api/resources/hooks/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/jobs/resources/errors/client/Client.d.mts +1 -1
- package/dist/esm/management/api/resources/jobs/resources/errors/client/Client.mjs +4 -1
- package/dist/esm/management/api/resources/keys/resources/encryption/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/logs/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/networkAcls/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/organizations/client/Client.d.mts +3 -0
- package/dist/esm/management/api/resources/organizations/client/Client.mjs +5 -0
- package/dist/esm/management/api/resources/organizations/resources/clientGrants/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/organizations/resources/connections/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/organizations/resources/enabledConnections/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/organizations/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/invitations/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/organizations/resources/members/resources/roles/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/organizations/resources/roles/client/Client.d.mts +12 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/client/Client.mjs +12 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/index.d.mts +2 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/index.mjs +2 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/members/client/Client.d.mts +36 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/members/client/Client.mjs +112 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/members/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/members/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/prompts/resources/rendering/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/resourceServers/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/roles/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/roles/resources/permissions/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/rules/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/selfServiceProfiles/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/userGrants/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/users/client/Client.d.mts +0 -3
- package/dist/esm/management/api/resources/users/client/Client.mjs +5 -6
- package/dist/esm/management/api/resources/users/resources/authenticationMethods/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/users/resources/index.d.mts +0 -1
- package/dist/esm/management/api/resources/users/resources/index.mjs +0 -1
- package/dist/esm/management/api/resources/users/resources/logs/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/users/resources/organizations/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/users/resources/permissions/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/users/resources/roles/client/Client.mjs +5 -1
- package/dist/esm/management/api/types/types.d.mts +4399 -198
- package/dist/esm/management/api/types/types.mjs +1012 -140
- package/dist/esm/management/core/fetcher/getResponseBody.mjs +11 -0
- package/dist/esm/management/core/fetcher/signals.mjs +9 -1
- package/dist/esm/management/errors/ManagementError.mjs +1 -1
- package/dist/esm/management/errors/ManagementTimeoutError.mjs +1 -1
- package/dist/esm/management/version.d.mts +1 -1
- package/dist/esm/management/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +107 -125
- package/dist/cjs/management/api/resources/users/resources/federatedConnectionsTokensets/client/Client.d.ts +0 -44
- package/dist/cjs/management/api/resources/users/resources/federatedConnectionsTokensets/client/Client.js +0 -175
- package/dist/esm/management/api/resources/users/resources/federatedConnectionsTokensets/client/Client.d.mts +0 -44
- package/dist/esm/management/api/resources/users/resources/federatedConnectionsTokensets/client/Client.mjs +0 -138
- /package/dist/cjs/management/api/resources/{users/resources/federatedConnectionsTokensets → organizations/resources/roles}/client/index.d.ts +0 -0
- /package/dist/cjs/management/api/resources/{users/resources/federatedConnectionsTokensets → organizations/resources/roles}/client/index.js +0 -0
- /package/dist/{esm/management/api/resources/users/resources/federatedConnectionsTokensets/client/index.d.mts → cjs/management/api/resources/organizations/resources/roles/resources/members/client/index.d.ts} +0 -0
- /package/dist/cjs/management/api/resources/{users/resources/federatedConnectionsTokensets → organizations/resources/roles/resources/members}/index.d.ts +0 -0
- /package/dist/cjs/management/api/resources/{users/resources/federatedConnectionsTokensets → organizations/resources/roles/resources/members}/index.js +0 -0
- /package/dist/esm/management/api/resources/{users/resources/federatedConnectionsTokensets/client/index.mjs → organizations/resources/roles/client/index.d.mts} +0 -0
- /package/dist/esm/management/api/resources/{users/resources/federatedConnectionsTokensets → organizations/resources/roles/resources/members}/index.d.mts +0 -0
- /package/dist/esm/management/api/resources/{users/resources/federatedConnectionsTokensets → organizations/resources/roles/resources/members}/index.mjs +0 -0
|
@@ -12,6 +12,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.getResponseBody = getResponseBody;
|
|
13
13
|
const json_js_1 = require("../json.js");
|
|
14
14
|
const BinaryResponse_js_1 = require("./BinaryResponse.js");
|
|
15
|
+
// Pins the upstream Response so undici's FinalizationRegistry can't GC it and cancel the body stream.
|
|
16
|
+
function retainResponse(target, response) {
|
|
17
|
+
Object.defineProperty(target, "__fern_response_ref", {
|
|
18
|
+
value: response,
|
|
19
|
+
enumerable: false,
|
|
20
|
+
configurable: true,
|
|
21
|
+
writable: false,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
15
24
|
function getResponseBody(response, responseType) {
|
|
16
25
|
return __awaiter(this, void 0, void 0, function* () {
|
|
17
26
|
switch (responseType) {
|
|
@@ -31,6 +40,7 @@ function getResponseBody(response, responseType) {
|
|
|
31
40
|
},
|
|
32
41
|
};
|
|
33
42
|
}
|
|
43
|
+
retainResponse(response.body, response);
|
|
34
44
|
return response.body;
|
|
35
45
|
case "streaming":
|
|
36
46
|
if (response.body == null) {
|
|
@@ -42,6 +52,7 @@ function getResponseBody(response, responseType) {
|
|
|
42
52
|
},
|
|
43
53
|
};
|
|
44
54
|
}
|
|
55
|
+
retainResponse(response.body, response);
|
|
45
56
|
return response.body;
|
|
46
57
|
case "text":
|
|
47
58
|
return yield response.text();
|
|
@@ -14,11 +14,19 @@ function anySignal(...args) {
|
|
|
14
14
|
for (const signal of signals) {
|
|
15
15
|
if (signal.aborted) {
|
|
16
16
|
controller.abort(signal === null || signal === void 0 ? void 0 : signal.reason);
|
|
17
|
-
|
|
17
|
+
return controller.signal;
|
|
18
18
|
}
|
|
19
19
|
signal.addEventListener("abort", () => controller.abort(signal === null || signal === void 0 ? void 0 : signal.reason), {
|
|
20
20
|
signal: controller.signal,
|
|
21
21
|
});
|
|
22
|
+
// Re-check after adding listener: the signal may have aborted
|
|
23
|
+
// between the initial `signal.aborted` check and the `addEventListener`
|
|
24
|
+
// call above. If it did, the abort event was already dispatched and
|
|
25
|
+
// the listener will never fire — we must manually abort.
|
|
26
|
+
if (signal.aborted) {
|
|
27
|
+
controller.abort(signal === null || signal === void 0 ? void 0 : signal.reason);
|
|
28
|
+
return controller.signal;
|
|
29
|
+
}
|
|
22
30
|
}
|
|
23
31
|
return controller.signal;
|
|
24
32
|
}
|
|
@@ -10,7 +10,7 @@ class ManagementError extends Error {
|
|
|
10
10
|
if (Error.captureStackTrace) {
|
|
11
11
|
Error.captureStackTrace(this, this.constructor);
|
|
12
12
|
}
|
|
13
|
-
this.name =
|
|
13
|
+
this.name = "ManagementError";
|
|
14
14
|
this.statusCode = statusCode;
|
|
15
15
|
this.body = body;
|
|
16
16
|
this.rawResponse = rawResponse;
|
|
@@ -9,7 +9,7 @@ class ManagementTimeoutError extends Error {
|
|
|
9
9
|
if (Error.captureStackTrace) {
|
|
10
10
|
Error.captureStackTrace(this, this.constructor);
|
|
11
11
|
}
|
|
12
|
-
this.name =
|
|
12
|
+
this.name = "ManagementTimeoutError";
|
|
13
13
|
if ((opts === null || opts === void 0 ? void 0 : opts.cause) != null) {
|
|
14
14
|
this.cause = opts.cause;
|
|
15
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "5.
|
|
1
|
+
export declare const SDK_VERSION = "5.14.0";
|
|
@@ -769,7 +769,7 @@ export interface UpdateEventStreamRequestContent {
|
|
|
769
769
|
/**
|
|
770
770
|
* @example
|
|
771
771
|
* {
|
|
772
|
-
* event_type: "
|
|
772
|
+
* event_type: "connection.created"
|
|
773
773
|
* }
|
|
774
774
|
*/
|
|
775
775
|
export interface CreateEventStreamTestEventRequestContent {
|
|
@@ -781,7 +781,7 @@ export interface CreateEventStreamTestEventRequestContent {
|
|
|
781
781
|
* {
|
|
782
782
|
* from: "from",
|
|
783
783
|
* from_timestamp: "from_timestamp",
|
|
784
|
-
* event_type: ["
|
|
784
|
+
* event_type: ["connection.created"]
|
|
785
785
|
* }
|
|
786
786
|
*/
|
|
787
787
|
export interface SubscribeEventsRequestParameters {
|
|
@@ -1179,6 +1179,7 @@ export interface CreateOrganizationRequestContent {
|
|
|
1179
1179
|
/** Connections that will be enabled for this organization. See POST enabled_connections endpoint for the object format. (Max of 10 connections allowed) */
|
|
1180
1180
|
enabled_connections?: Management.ConnectionForOrganization[];
|
|
1181
1181
|
token_quota?: Management.CreateTokenQuota;
|
|
1182
|
+
third_party_client_access?: Management.OrganizationThirdPartyClientAccessEnum;
|
|
1182
1183
|
}
|
|
1183
1184
|
/**
|
|
1184
1185
|
* @example
|
|
@@ -1192,6 +1193,7 @@ export interface UpdateOrganizationRequestContent {
|
|
|
1192
1193
|
branding?: Management.OrganizationBranding;
|
|
1193
1194
|
metadata?: Management.OrganizationMetadata;
|
|
1194
1195
|
token_quota?: Management.UpdateTokenQuota | null;
|
|
1196
|
+
third_party_client_access?: Management.OrganizationThirdPartyClientAccessEnum;
|
|
1195
1197
|
}
|
|
1196
1198
|
/**
|
|
1197
1199
|
* @example
|
|
@@ -3422,6 +3424,25 @@ export interface ListOrganizationMemberRoleSourceGroupsRequestParameters {
|
|
|
3422
3424
|
/** The role ID to get group sources for. */
|
|
3423
3425
|
role_id: string;
|
|
3424
3426
|
}
|
|
3427
|
+
/**
|
|
3428
|
+
* @example
|
|
3429
|
+
* {
|
|
3430
|
+
* from: "from",
|
|
3431
|
+
* take: 1,
|
|
3432
|
+
* fields: "fields",
|
|
3433
|
+
* include_fields: true
|
|
3434
|
+
* }
|
|
3435
|
+
*/
|
|
3436
|
+
export interface ListOrganizationRoleMembersRequestParameters {
|
|
3437
|
+
/** Optional Id from which to start selection. */
|
|
3438
|
+
from?: string | null;
|
|
3439
|
+
/** Number of results per page. Defaults to 50. Values above the maximum permitted size are capped. */
|
|
3440
|
+
take?: number | null;
|
|
3441
|
+
/** Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. */
|
|
3442
|
+
fields?: string | null;
|
|
3443
|
+
/** Whether specified fields are to be included (true) or excluded (false). Defaults to true. */
|
|
3444
|
+
include_fields?: boolean | null;
|
|
3445
|
+
}
|
|
3425
3446
|
/**
|
|
3426
3447
|
* @example
|
|
3427
3448
|
* {
|
|
@@ -121,7 +121,11 @@ export class ActionsClient {
|
|
|
121
121
|
return new core.Page({
|
|
122
122
|
response: dataWithRawResponse.data,
|
|
123
123
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
124
|
-
hasNextPage: (response) => {
|
|
124
|
+
hasNextPage: (response) => {
|
|
125
|
+
var _a, _b;
|
|
126
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.actions) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
127
|
+
((request === null || request === void 0 ? void 0 : request.per_page) == null || ((_b = response === null || response === void 0 ? void 0 : response.actions) !== null && _b !== void 0 ? _b : []).length >= (request === null || request === void 0 ? void 0 : request.per_page));
|
|
128
|
+
},
|
|
125
129
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.actions) !== null && _a !== void 0 ? _a : []; },
|
|
126
130
|
loadPage: (_response) => {
|
|
127
131
|
_offset += 1;
|
|
@@ -98,7 +98,11 @@ export class ModulesClient {
|
|
|
98
98
|
return new core.Page({
|
|
99
99
|
response: dataWithRawResponse.data,
|
|
100
100
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
101
|
-
hasNextPage: (response) => {
|
|
101
|
+
hasNextPage: (response) => {
|
|
102
|
+
var _a, _b;
|
|
103
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.modules) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
104
|
+
((request === null || request === void 0 ? void 0 : request.per_page) == null || ((_b = response === null || response === void 0 ? void 0 : response.modules) !== null && _b !== void 0 ? _b : []).length >= (request === null || request === void 0 ? void 0 : request.per_page));
|
|
105
|
+
},
|
|
102
106
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.modules) !== null && _a !== void 0 ? _a : []; },
|
|
103
107
|
loadPage: (_response) => {
|
|
104
108
|
_offset += 1;
|
|
@@ -450,7 +454,11 @@ export class ModulesClient {
|
|
|
450
454
|
return new core.Page({
|
|
451
455
|
response: dataWithRawResponse.data,
|
|
452
456
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
453
|
-
hasNextPage: (response) => {
|
|
457
|
+
hasNextPage: (response) => {
|
|
458
|
+
var _a, _b;
|
|
459
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.actions) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
460
|
+
((request === null || request === void 0 ? void 0 : request.per_page) == null || ((_b = response === null || response === void 0 ? void 0 : response.actions) !== null && _b !== void 0 ? _b : []).length >= (request === null || request === void 0 ? void 0 : request.per_page));
|
|
461
|
+
},
|
|
454
462
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.actions) !== null && _a !== void 0 ? _a : []; },
|
|
455
463
|
loadPage: (_response) => {
|
|
456
464
|
_offset += 1;
|
|
@@ -97,7 +97,11 @@ export class VersionsClient {
|
|
|
97
97
|
return new core.Page({
|
|
98
98
|
response: dataWithRawResponse.data,
|
|
99
99
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
100
|
-
hasNextPage: (response) => {
|
|
100
|
+
hasNextPage: (response) => {
|
|
101
|
+
var _a, _b;
|
|
102
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.versions) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
103
|
+
((request === null || request === void 0 ? void 0 : request.per_page) == null || ((_b = response === null || response === void 0 ? void 0 : response.versions) !== null && _b !== void 0 ? _b : []).length >= (request === null || request === void 0 ? void 0 : request.per_page));
|
|
104
|
+
},
|
|
101
105
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.versions) !== null && _a !== void 0 ? _a : []; },
|
|
102
106
|
loadPage: (_response) => {
|
|
103
107
|
_offset += 1;
|
|
@@ -94,7 +94,11 @@ export class BindingsClient {
|
|
|
94
94
|
return new core.Page({
|
|
95
95
|
response: dataWithRawResponse.data,
|
|
96
96
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
97
|
-
hasNextPage: (response) => {
|
|
97
|
+
hasNextPage: (response) => {
|
|
98
|
+
var _a, _b;
|
|
99
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.bindings) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
100
|
+
((request === null || request === void 0 ? void 0 : request.per_page) == null || ((_b = response === null || response === void 0 ? void 0 : response.bindings) !== null && _b !== void 0 ? _b : []).length >= (request === null || request === void 0 ? void 0 : request.per_page));
|
|
101
|
+
},
|
|
98
102
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.bindings) !== null && _a !== void 0 ? _a : []; },
|
|
99
103
|
loadPage: (_response) => {
|
|
100
104
|
_offset += 1;
|
|
@@ -94,7 +94,11 @@ export class VersionsClient {
|
|
|
94
94
|
return new core.Page({
|
|
95
95
|
response: dataWithRawResponse.data,
|
|
96
96
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
97
|
-
hasNextPage: (response) => {
|
|
97
|
+
hasNextPage: (response) => {
|
|
98
|
+
var _a, _b;
|
|
99
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.versions) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
100
|
+
((request === null || request === void 0 ? void 0 : request.per_page) == null || ((_b = response === null || response === void 0 ? void 0 : response.versions) !== null && _b !== void 0 ? _b : []).length >= (request === null || request === void 0 ? void 0 : request.per_page));
|
|
101
|
+
},
|
|
98
102
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.versions) !== null && _a !== void 0 ? _a : []; },
|
|
99
103
|
loadPage: (_response) => {
|
|
100
104
|
_offset += 1;
|
|
@@ -143,7 +143,11 @@ export class ClientsClient {
|
|
|
143
143
|
return new core.Page({
|
|
144
144
|
response: dataWithRawResponse.data,
|
|
145
145
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
146
|
-
hasNextPage: (response) => {
|
|
146
|
+
hasNextPage: (response) => {
|
|
147
|
+
var _a, _b;
|
|
148
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.clients) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
149
|
+
((request === null || request === void 0 ? void 0 : request.per_page) == null || ((_b = response === null || response === void 0 ? void 0 : response.clients) !== null && _b !== void 0 ? _b : []).length >= (request === null || request === void 0 ? void 0 : request.per_page));
|
|
150
|
+
},
|
|
147
151
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.clients) !== null && _a !== void 0 ? _a : []; },
|
|
148
152
|
loadPage: (_response) => {
|
|
149
153
|
_offset += 1;
|
|
@@ -105,7 +105,11 @@ export class DeviceCredentialsClient {
|
|
|
105
105
|
return new core.Page({
|
|
106
106
|
response: dataWithRawResponse.data,
|
|
107
107
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
108
|
-
hasNextPage: (response) => {
|
|
108
|
+
hasNextPage: (response) => {
|
|
109
|
+
var _a, _b;
|
|
110
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.device_credentials) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
111
|
+
((request === null || request === void 0 ? void 0 : request.per_page) == null || ((_b = response === null || response === void 0 ? void 0 : response.device_credentials) !== null && _b !== void 0 ? _b : []).length >= (request === null || request === void 0 ? void 0 : request.per_page));
|
|
112
|
+
},
|
|
109
113
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.device_credentials) !== null && _a !== void 0 ? _a : []; },
|
|
110
114
|
loadPage: (_response) => {
|
|
111
115
|
_offset += 1;
|
|
@@ -112,7 +112,7 @@ export declare class EventStreamsClient {
|
|
|
112
112
|
*
|
|
113
113
|
* @example
|
|
114
114
|
* await client.eventStreams.test("id", {
|
|
115
|
-
* event_type: "
|
|
115
|
+
* event_type: "connection.created"
|
|
116
116
|
* })
|
|
117
117
|
*/
|
|
118
118
|
test(id: string, request: Management.CreateEventStreamTestEventRequestContent, requestOptions?: EventStreamsClient.RequestOptions): core.HttpResponsePromise<Management.CreateEventStreamTestEventResponseContent>;
|
|
@@ -111,7 +111,11 @@ export class FlowsClient {
|
|
|
111
111
|
return new core.Page({
|
|
112
112
|
response: dataWithRawResponse.data,
|
|
113
113
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
114
|
-
hasNextPage: (response) => {
|
|
114
|
+
hasNextPage: (response) => {
|
|
115
|
+
var _a, _b;
|
|
116
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.flows) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
117
|
+
((request === null || request === void 0 ? void 0 : request.per_page) == null || ((_b = response === null || response === void 0 ? void 0 : response.flows) !== null && _b !== void 0 ? _b : []).length >= (request === null || request === void 0 ? void 0 : request.per_page));
|
|
118
|
+
},
|
|
115
119
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.flows) !== null && _a !== void 0 ? _a : []; },
|
|
116
120
|
loadPage: (_response) => {
|
|
117
121
|
_offset += 1;
|
|
@@ -93,7 +93,11 @@ export class ConnectionsClient {
|
|
|
93
93
|
return new core.Page({
|
|
94
94
|
response: dataWithRawResponse.data,
|
|
95
95
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
96
|
-
hasNextPage: (response) => {
|
|
96
|
+
hasNextPage: (response) => {
|
|
97
|
+
var _a, _b;
|
|
98
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.connections) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
99
|
+
((request === null || request === void 0 ? void 0 : request.per_page) == null || ((_b = response === null || response === void 0 ? void 0 : response.connections) !== null && _b !== void 0 ? _b : []).length >= (request === null || request === void 0 ? void 0 : request.per_page));
|
|
100
|
+
},
|
|
97
101
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.connections) !== null && _a !== void 0 ? _a : []; },
|
|
98
102
|
loadPage: (_response) => {
|
|
99
103
|
_offset += 1;
|
|
@@ -99,7 +99,11 @@ export class FormsClient {
|
|
|
99
99
|
return new core.Page({
|
|
100
100
|
response: dataWithRawResponse.data,
|
|
101
101
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
102
|
-
hasNextPage: (response) => {
|
|
102
|
+
hasNextPage: (response) => {
|
|
103
|
+
var _a, _b;
|
|
104
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.forms) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
105
|
+
((request === null || request === void 0 ? void 0 : request.per_page) == null || ((_b = response === null || response === void 0 ? void 0 : response.forms) !== null && _b !== void 0 ? _b : []).length >= (request === null || request === void 0 ? void 0 : request.per_page));
|
|
106
|
+
},
|
|
103
107
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.forms) !== null && _a !== void 0 ? _a : []; },
|
|
104
108
|
loadPage: (_response) => {
|
|
105
109
|
_offset += 1;
|
|
@@ -92,7 +92,7 @@ export declare class SmsClient {
|
|
|
92
92
|
* @example
|
|
93
93
|
* await client.guardian.factors.sms.getTemplates()
|
|
94
94
|
*/
|
|
95
|
-
getTemplates(requestOptions?: SmsClient.RequestOptions): core.HttpResponsePromise<Management.GetGuardianFactorSmsTemplatesResponseContent>;
|
|
95
|
+
getTemplates(requestOptions?: SmsClient.RequestOptions): core.HttpResponsePromise<Management.GetGuardianFactorSmsTemplatesResponseContent | undefined>;
|
|
96
96
|
private __getTemplates;
|
|
97
97
|
/**
|
|
98
98
|
* This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-factor-phone-templates">Update enrollment and verification phone templates</a> endpoint instead.
|
|
@@ -109,7 +109,11 @@ export class HooksClient {
|
|
|
109
109
|
return new core.Page({
|
|
110
110
|
response: dataWithRawResponse.data,
|
|
111
111
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
112
|
-
hasNextPage: (response) => {
|
|
112
|
+
hasNextPage: (response) => {
|
|
113
|
+
var _a, _b;
|
|
114
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.hooks) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
115
|
+
((request === null || request === void 0 ? void 0 : request.per_page) == null || ((_b = response === null || response === void 0 ? void 0 : response.hooks) !== null && _b !== void 0 ? _b : []).length >= (request === null || request === void 0 ? void 0 : request.per_page));
|
|
116
|
+
},
|
|
113
117
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.hooks) !== null && _a !== void 0 ? _a : []; },
|
|
114
118
|
loadPage: (_response) => {
|
|
115
119
|
_offset += 1;
|
|
@@ -25,6 +25,6 @@ export declare class ErrorsClient {
|
|
|
25
25
|
* @example
|
|
26
26
|
* await client.jobs.errors.get("id")
|
|
27
27
|
*/
|
|
28
|
-
get(id: string, requestOptions?: ErrorsClient.RequestOptions): core.HttpResponsePromise<Management.jobs.ErrorsGetResponse>;
|
|
28
|
+
get(id: string, requestOptions?: ErrorsClient.RequestOptions): core.HttpResponsePromise<Management.jobs.ErrorsGetResponse | undefined>;
|
|
29
29
|
private __get;
|
|
30
30
|
}
|
|
@@ -54,7 +54,10 @@ export class ErrorsClient {
|
|
|
54
54
|
logging: this._options.logging,
|
|
55
55
|
});
|
|
56
56
|
if (_response.ok) {
|
|
57
|
-
return {
|
|
57
|
+
return {
|
|
58
|
+
data: _response.body,
|
|
59
|
+
rawResponse: _response.rawResponse,
|
|
60
|
+
};
|
|
58
61
|
}
|
|
59
62
|
if (_response.error.reason === "status-code") {
|
|
60
63
|
switch (_response.error.statusCode) {
|
|
@@ -95,7 +95,11 @@ export class EncryptionClient {
|
|
|
95
95
|
return new core.Page({
|
|
96
96
|
response: dataWithRawResponse.data,
|
|
97
97
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
98
|
-
hasNextPage: (response) => {
|
|
98
|
+
hasNextPage: (response) => {
|
|
99
|
+
var _a, _b;
|
|
100
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.keys) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
101
|
+
((request === null || request === void 0 ? void 0 : request.per_page) == null || ((_b = response === null || response === void 0 ? void 0 : response.keys) !== null && _b !== void 0 ? _b : []).length >= (request === null || request === void 0 ? void 0 : request.per_page));
|
|
102
|
+
},
|
|
99
103
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.keys) !== null && _a !== void 0 ? _a : []; },
|
|
100
104
|
loadPage: (_response) => {
|
|
101
105
|
_offset += 1;
|
|
@@ -128,7 +128,11 @@ export class LogsClient {
|
|
|
128
128
|
return new core.Page({
|
|
129
129
|
response: dataWithRawResponse.data,
|
|
130
130
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
131
|
-
hasNextPage: (response) => {
|
|
131
|
+
hasNextPage: (response) => {
|
|
132
|
+
var _a, _b;
|
|
133
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.logs) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
134
|
+
((request === null || request === void 0 ? void 0 : request.per_page) == null || ((_b = response === null || response === void 0 ? void 0 : response.logs) !== null && _b !== void 0 ? _b : []).length >= (request === null || request === void 0 ? void 0 : request.per_page));
|
|
135
|
+
},
|
|
132
136
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.logs) !== null && _a !== void 0 ? _a : []; },
|
|
133
137
|
loadPage: (_response) => {
|
|
134
138
|
_offset += 1;
|
|
@@ -95,7 +95,11 @@ export class NetworkAclsClient {
|
|
|
95
95
|
return new core.Page({
|
|
96
96
|
response: dataWithRawResponse.data,
|
|
97
97
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
98
|
-
hasNextPage: (response) => {
|
|
98
|
+
hasNextPage: (response) => {
|
|
99
|
+
var _a, _b;
|
|
100
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.network_acls) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
101
|
+
((request === null || request === void 0 ? void 0 : request.per_page) == null || ((_b = response === null || response === void 0 ? void 0 : response.network_acls) !== null && _b !== void 0 ? _b : []).length >= (request === null || request === void 0 ? void 0 : request.per_page));
|
|
102
|
+
},
|
|
99
103
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.network_acls) !== null && _a !== void 0 ? _a : []; },
|
|
100
104
|
loadPage: (_response) => {
|
|
101
105
|
_offset += 1;
|
|
@@ -9,6 +9,7 @@ import { EnabledConnectionsClient } from "../resources/enabledConnections/client
|
|
|
9
9
|
import { GroupsClient } from "../resources/groups/client/Client.mjs";
|
|
10
10
|
import { InvitationsClient } from "../resources/invitations/client/Client.mjs";
|
|
11
11
|
import { MembersClient } from "../resources/members/client/Client.mjs";
|
|
12
|
+
import { RolesClient } from "../resources/roles/client/Client.mjs";
|
|
12
13
|
export declare namespace OrganizationsClient {
|
|
13
14
|
type Options = BaseClientOptions;
|
|
14
15
|
interface RequestOptions extends BaseRequestOptions {
|
|
@@ -23,6 +24,7 @@ export declare class OrganizationsClient {
|
|
|
23
24
|
protected _invitations: InvitationsClient | undefined;
|
|
24
25
|
protected _members: MembersClient | undefined;
|
|
25
26
|
protected _groups: GroupsClient | undefined;
|
|
27
|
+
protected _roles: RolesClient | undefined;
|
|
26
28
|
constructor(options: OrganizationsClient.Options);
|
|
27
29
|
get clientGrants(): ClientGrantsClient;
|
|
28
30
|
get connections(): ConnectionsClient;
|
|
@@ -31,6 +33,7 @@ export declare class OrganizationsClient {
|
|
|
31
33
|
get invitations(): InvitationsClient;
|
|
32
34
|
get members(): MembersClient;
|
|
33
35
|
get groups(): GroupsClient;
|
|
36
|
+
get roles(): RolesClient;
|
|
34
37
|
/**
|
|
35
38
|
* Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations.
|
|
36
39
|
*
|
|
@@ -22,6 +22,7 @@ import { EnabledConnectionsClient } from "../resources/enabledConnections/client
|
|
|
22
22
|
import { GroupsClient } from "../resources/groups/client/Client.mjs";
|
|
23
23
|
import { InvitationsClient } from "../resources/invitations/client/Client.mjs";
|
|
24
24
|
import { MembersClient } from "../resources/members/client/Client.mjs";
|
|
25
|
+
import { RolesClient } from "../resources/roles/client/Client.mjs";
|
|
25
26
|
export class OrganizationsClient {
|
|
26
27
|
constructor(options) {
|
|
27
28
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
@@ -54,6 +55,10 @@ export class OrganizationsClient {
|
|
|
54
55
|
var _a;
|
|
55
56
|
return ((_a = this._groups) !== null && _a !== void 0 ? _a : (this._groups = new GroupsClient(this._options)));
|
|
56
57
|
}
|
|
58
|
+
get roles() {
|
|
59
|
+
var _a;
|
|
60
|
+
return ((_a = this._roles) !== null && _a !== void 0 ? _a : (this._roles = new RolesClient(this._options)));
|
|
61
|
+
}
|
|
57
62
|
/**
|
|
58
63
|
* Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations.
|
|
59
64
|
*
|
package/dist/esm/management/api/resources/organizations/resources/clientGrants/client/Client.mjs
CHANGED
|
@@ -100,7 +100,11 @@ export class ClientGrantsClient {
|
|
|
100
100
|
return new core.Page({
|
|
101
101
|
response: dataWithRawResponse.data,
|
|
102
102
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
103
|
-
hasNextPage: (response) => {
|
|
103
|
+
hasNextPage: (response) => {
|
|
104
|
+
var _a, _b;
|
|
105
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.client_grants) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
106
|
+
((request === null || request === void 0 ? void 0 : request.per_page) == null || ((_b = response === null || response === void 0 ? void 0 : response.client_grants) !== null && _b !== void 0 ? _b : []).length >= (request === null || request === void 0 ? void 0 : request.per_page));
|
|
107
|
+
},
|
|
104
108
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.client_grants) !== null && _a !== void 0 ? _a : []; },
|
|
105
109
|
loadPage: (_response) => {
|
|
106
110
|
_offset += 1;
|
package/dist/esm/management/api/resources/organizations/resources/connections/client/Client.mjs
CHANGED
|
@@ -96,7 +96,11 @@ export class ConnectionsClient {
|
|
|
96
96
|
return new core.Page({
|
|
97
97
|
response: dataWithRawResponse.data,
|
|
98
98
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
99
|
-
hasNextPage: (response) => {
|
|
99
|
+
hasNextPage: (response) => {
|
|
100
|
+
var _a, _b;
|
|
101
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.connections) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
102
|
+
((request === null || request === void 0 ? void 0 : request.per_page) == null || ((_b = response === null || response === void 0 ? void 0 : response.connections) !== null && _b !== void 0 ? _b : []).length >= (request === null || request === void 0 ? void 0 : request.per_page));
|
|
103
|
+
},
|
|
100
104
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.connections) !== null && _a !== void 0 ? _a : []; },
|
|
101
105
|
loadPage: (_response) => {
|
|
102
106
|
_offset += 1;
|