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
package/README.md
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
- [Docs Site](https://auth0.com/docs) - explore our docs site and learn more about Auth0
|
|
15
15
|
- [SDK Documentation](http://auth0.github.io/node-auth0/) - explore the SDK documentation
|
|
16
16
|
- [API Reference](https://github.com/auth0/node-auth0/blob/master/reference.md) - full reference for this library
|
|
17
|
+
- [v6 Migration Guide](https://github.com/auth0/node-auth0/blob/master/v6_MIGRATION_GUIDE.md) - upgrade from v5 to v6
|
|
17
18
|
|
|
18
19
|
## Getting Started
|
|
19
20
|
|
|
@@ -108,7 +109,7 @@ const { ManagementClient, AuthenticationClient } = require("auth0/legacy");
|
|
|
108
109
|
|
|
109
110
|
### Legacy Configuration
|
|
110
111
|
|
|
111
|
-
The legacy API uses the `node-auth0` v4.x configuration format and method signatures, which are different from the current
|
|
112
|
+
The legacy API uses the `node-auth0` v4.x configuration format and method signatures, which are different from the current v6 API:
|
|
112
113
|
|
|
113
114
|
#### Legacy Management Client
|
|
114
115
|
|
|
@@ -48,7 +48,7 @@ class BadRequestError extends errors.ManagementError {
|
|
|
48
48
|
if (Error.captureStackTrace) {
|
|
49
49
|
Error.captureStackTrace(this, this.constructor);
|
|
50
50
|
}
|
|
51
|
-
this.name =
|
|
51
|
+
this.name = "BadRequestError";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
exports.BadRequestError = BadRequestError;
|
|
@@ -48,7 +48,7 @@ class ConflictError extends errors.ManagementError {
|
|
|
48
48
|
if (Error.captureStackTrace) {
|
|
49
49
|
Error.captureStackTrace(this, this.constructor);
|
|
50
50
|
}
|
|
51
|
-
this.name =
|
|
51
|
+
this.name = "ConflictError";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
exports.ConflictError = ConflictError;
|
|
@@ -48,7 +48,7 @@ class ContentTooLargeError extends errors.ManagementError {
|
|
|
48
48
|
if (Error.captureStackTrace) {
|
|
49
49
|
Error.captureStackTrace(this, this.constructor);
|
|
50
50
|
}
|
|
51
|
-
this.name =
|
|
51
|
+
this.name = "ContentTooLargeError";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
exports.ContentTooLargeError = ContentTooLargeError;
|
|
@@ -48,7 +48,7 @@ class ForbiddenError extends errors.ManagementError {
|
|
|
48
48
|
if (Error.captureStackTrace) {
|
|
49
49
|
Error.captureStackTrace(this, this.constructor);
|
|
50
50
|
}
|
|
51
|
-
this.name =
|
|
51
|
+
this.name = "ForbiddenError";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
exports.ForbiddenError = ForbiddenError;
|
|
@@ -48,7 +48,7 @@ class InternalServerError extends errors.ManagementError {
|
|
|
48
48
|
if (Error.captureStackTrace) {
|
|
49
49
|
Error.captureStackTrace(this, this.constructor);
|
|
50
50
|
}
|
|
51
|
-
this.name =
|
|
51
|
+
this.name = "InternalServerError";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
exports.InternalServerError = InternalServerError;
|
|
@@ -48,7 +48,7 @@ class NotFoundError extends errors.ManagementError {
|
|
|
48
48
|
if (Error.captureStackTrace) {
|
|
49
49
|
Error.captureStackTrace(this, this.constructor);
|
|
50
50
|
}
|
|
51
|
-
this.name =
|
|
51
|
+
this.name = "NotFoundError";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
exports.NotFoundError = NotFoundError;
|
|
@@ -48,7 +48,7 @@ class PaymentRequiredError extends errors.ManagementError {
|
|
|
48
48
|
if (Error.captureStackTrace) {
|
|
49
49
|
Error.captureStackTrace(this, this.constructor);
|
|
50
50
|
}
|
|
51
|
-
this.name =
|
|
51
|
+
this.name = "PaymentRequiredError";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
exports.PaymentRequiredError = PaymentRequiredError;
|
|
@@ -48,7 +48,7 @@ class PreconditionFailedError extends errors.ManagementError {
|
|
|
48
48
|
if (Error.captureStackTrace) {
|
|
49
49
|
Error.captureStackTrace(this, this.constructor);
|
|
50
50
|
}
|
|
51
|
-
this.name =
|
|
51
|
+
this.name = "PreconditionFailedError";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
exports.PreconditionFailedError = PreconditionFailedError;
|
|
@@ -48,7 +48,7 @@ class ServiceUnavailableError extends errors.ManagementError {
|
|
|
48
48
|
if (Error.captureStackTrace) {
|
|
49
49
|
Error.captureStackTrace(this, this.constructor);
|
|
50
50
|
}
|
|
51
|
-
this.name =
|
|
51
|
+
this.name = "ServiceUnavailableError";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
exports.ServiceUnavailableError = ServiceUnavailableError;
|
|
@@ -48,7 +48,7 @@ class TooManyRequestsError extends errors.ManagementError {
|
|
|
48
48
|
if (Error.captureStackTrace) {
|
|
49
49
|
Error.captureStackTrace(this, this.constructor);
|
|
50
50
|
}
|
|
51
|
-
this.name =
|
|
51
|
+
this.name = "TooManyRequestsError";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
exports.TooManyRequestsError = TooManyRequestsError;
|
|
@@ -48,7 +48,7 @@ class UnauthorizedError extends errors.ManagementError {
|
|
|
48
48
|
if (Error.captureStackTrace) {
|
|
49
49
|
Error.captureStackTrace(this, this.constructor);
|
|
50
50
|
}
|
|
51
|
-
this.name =
|
|
51
|
+
this.name = "UnauthorizedError";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
exports.UnauthorizedError = UnauthorizedError;
|
|
@@ -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
|
* {
|
|
@@ -157,7 +157,11 @@ class ActionsClient {
|
|
|
157
157
|
return new core.Page({
|
|
158
158
|
response: dataWithRawResponse.data,
|
|
159
159
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
160
|
-
hasNextPage: (response) => {
|
|
160
|
+
hasNextPage: (response) => {
|
|
161
|
+
var _a, _b;
|
|
162
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.actions) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
163
|
+
((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));
|
|
164
|
+
},
|
|
161
165
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.actions) !== null && _a !== void 0 ? _a : []; },
|
|
162
166
|
loadPage: (_response) => {
|
|
163
167
|
_offset += 1;
|
|
@@ -134,7 +134,11 @@ class ModulesClient {
|
|
|
134
134
|
return new core.Page({
|
|
135
135
|
response: dataWithRawResponse.data,
|
|
136
136
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
137
|
-
hasNextPage: (response) => {
|
|
137
|
+
hasNextPage: (response) => {
|
|
138
|
+
var _a, _b;
|
|
139
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.modules) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
140
|
+
((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));
|
|
141
|
+
},
|
|
138
142
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.modules) !== null && _a !== void 0 ? _a : []; },
|
|
139
143
|
loadPage: (_response) => {
|
|
140
144
|
_offset += 1;
|
|
@@ -486,7 +490,11 @@ class ModulesClient {
|
|
|
486
490
|
return new core.Page({
|
|
487
491
|
response: dataWithRawResponse.data,
|
|
488
492
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
489
|
-
hasNextPage: (response) => {
|
|
493
|
+
hasNextPage: (response) => {
|
|
494
|
+
var _a, _b;
|
|
495
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.actions) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
496
|
+
((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));
|
|
497
|
+
},
|
|
490
498
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.actions) !== null && _a !== void 0 ? _a : []; },
|
|
491
499
|
loadPage: (_response) => {
|
|
492
500
|
_offset += 1;
|
|
@@ -133,7 +133,11 @@ class VersionsClient {
|
|
|
133
133
|
return new core.Page({
|
|
134
134
|
response: dataWithRawResponse.data,
|
|
135
135
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
136
|
-
hasNextPage: (response) => {
|
|
136
|
+
hasNextPage: (response) => {
|
|
137
|
+
var _a, _b;
|
|
138
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.versions) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
139
|
+
((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));
|
|
140
|
+
},
|
|
137
141
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.versions) !== null && _a !== void 0 ? _a : []; },
|
|
138
142
|
loadPage: (_response) => {
|
|
139
143
|
_offset += 1;
|
|
@@ -130,7 +130,11 @@ class BindingsClient {
|
|
|
130
130
|
return new core.Page({
|
|
131
131
|
response: dataWithRawResponse.data,
|
|
132
132
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
133
|
-
hasNextPage: (response) => {
|
|
133
|
+
hasNextPage: (response) => {
|
|
134
|
+
var _a, _b;
|
|
135
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.bindings) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
136
|
+
((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));
|
|
137
|
+
},
|
|
134
138
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.bindings) !== null && _a !== void 0 ? _a : []; },
|
|
135
139
|
loadPage: (_response) => {
|
|
136
140
|
_offset += 1;
|
|
@@ -130,7 +130,11 @@ class VersionsClient {
|
|
|
130
130
|
return new core.Page({
|
|
131
131
|
response: dataWithRawResponse.data,
|
|
132
132
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
133
|
-
hasNextPage: (response) => {
|
|
133
|
+
hasNextPage: (response) => {
|
|
134
|
+
var _a, _b;
|
|
135
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.versions) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
136
|
+
((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));
|
|
137
|
+
},
|
|
134
138
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.versions) !== null && _a !== void 0 ? _a : []; },
|
|
135
139
|
loadPage: (_response) => {
|
|
136
140
|
_offset += 1;
|
|
@@ -179,7 +179,11 @@ class ClientsClient {
|
|
|
179
179
|
return new core.Page({
|
|
180
180
|
response: dataWithRawResponse.data,
|
|
181
181
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
182
|
-
hasNextPage: (response) => {
|
|
182
|
+
hasNextPage: (response) => {
|
|
183
|
+
var _a, _b;
|
|
184
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.clients) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
185
|
+
((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));
|
|
186
|
+
},
|
|
183
187
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.clients) !== null && _a !== void 0 ? _a : []; },
|
|
184
188
|
loadPage: (_response) => {
|
|
185
189
|
_offset += 1;
|
|
@@ -141,7 +141,11 @@ class DeviceCredentialsClient {
|
|
|
141
141
|
return new core.Page({
|
|
142
142
|
response: dataWithRawResponse.data,
|
|
143
143
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
144
|
-
hasNextPage: (response) => {
|
|
144
|
+
hasNextPage: (response) => {
|
|
145
|
+
var _a, _b;
|
|
146
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.device_credentials) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
147
|
+
((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));
|
|
148
|
+
},
|
|
145
149
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.device_credentials) !== null && _a !== void 0 ? _a : []; },
|
|
146
150
|
loadPage: (_response) => {
|
|
147
151
|
_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>;
|
|
@@ -147,7 +147,11 @@ class FlowsClient {
|
|
|
147
147
|
return new core.Page({
|
|
148
148
|
response: dataWithRawResponse.data,
|
|
149
149
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
150
|
-
hasNextPage: (response) => {
|
|
150
|
+
hasNextPage: (response) => {
|
|
151
|
+
var _a, _b;
|
|
152
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.flows) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
153
|
+
((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));
|
|
154
|
+
},
|
|
151
155
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.flows) !== null && _a !== void 0 ? _a : []; },
|
|
152
156
|
loadPage: (_response) => {
|
|
153
157
|
_offset += 1;
|
|
@@ -129,7 +129,11 @@ class ConnectionsClient {
|
|
|
129
129
|
return new core.Page({
|
|
130
130
|
response: dataWithRawResponse.data,
|
|
131
131
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
132
|
-
hasNextPage: (response) => {
|
|
132
|
+
hasNextPage: (response) => {
|
|
133
|
+
var _a, _b;
|
|
134
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.connections) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
135
|
+
((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));
|
|
136
|
+
},
|
|
133
137
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.connections) !== null && _a !== void 0 ? _a : []; },
|
|
134
138
|
loadPage: (_response) => {
|
|
135
139
|
_offset += 1;
|
|
@@ -135,7 +135,11 @@ class FormsClient {
|
|
|
135
135
|
return new core.Page({
|
|
136
136
|
response: dataWithRawResponse.data,
|
|
137
137
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
138
|
-
hasNextPage: (response) => {
|
|
138
|
+
hasNextPage: (response) => {
|
|
139
|
+
var _a, _b;
|
|
140
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.forms) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
141
|
+
((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));
|
|
142
|
+
},
|
|
139
143
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.forms) !== null && _a !== void 0 ? _a : []; },
|
|
140
144
|
loadPage: (_response) => {
|
|
141
145
|
_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.
|
|
@@ -145,7 +145,11 @@ class HooksClient {
|
|
|
145
145
|
return new core.Page({
|
|
146
146
|
response: dataWithRawResponse.data,
|
|
147
147
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
148
|
-
hasNextPage: (response) => {
|
|
148
|
+
hasNextPage: (response) => {
|
|
149
|
+
var _a, _b;
|
|
150
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.hooks) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
151
|
+
((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));
|
|
152
|
+
},
|
|
149
153
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.hooks) !== null && _a !== void 0 ? _a : []; },
|
|
150
154
|
loadPage: (_response) => {
|
|
151
155
|
_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
|
}
|
|
@@ -90,7 +90,10 @@ class ErrorsClient {
|
|
|
90
90
|
logging: this._options.logging,
|
|
91
91
|
});
|
|
92
92
|
if (_response.ok) {
|
|
93
|
-
return {
|
|
93
|
+
return {
|
|
94
|
+
data: _response.body,
|
|
95
|
+
rawResponse: _response.rawResponse,
|
|
96
|
+
};
|
|
94
97
|
}
|
|
95
98
|
if (_response.error.reason === "status-code") {
|
|
96
99
|
switch (_response.error.statusCode) {
|
|
@@ -131,7 +131,11 @@ class EncryptionClient {
|
|
|
131
131
|
return new core.Page({
|
|
132
132
|
response: dataWithRawResponse.data,
|
|
133
133
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
134
|
-
hasNextPage: (response) => {
|
|
134
|
+
hasNextPage: (response) => {
|
|
135
|
+
var _a, _b;
|
|
136
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.keys) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
137
|
+
((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));
|
|
138
|
+
},
|
|
135
139
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.keys) !== null && _a !== void 0 ? _a : []; },
|
|
136
140
|
loadPage: (_response) => {
|
|
137
141
|
_offset += 1;
|
|
@@ -164,7 +164,11 @@ class LogsClient {
|
|
|
164
164
|
return new core.Page({
|
|
165
165
|
response: dataWithRawResponse.data,
|
|
166
166
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
167
|
-
hasNextPage: (response) => {
|
|
167
|
+
hasNextPage: (response) => {
|
|
168
|
+
var _a, _b;
|
|
169
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.logs) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
170
|
+
((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));
|
|
171
|
+
},
|
|
168
172
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.logs) !== null && _a !== void 0 ? _a : []; },
|
|
169
173
|
loadPage: (_response) => {
|
|
170
174
|
_offset += 1;
|
|
@@ -131,7 +131,11 @@ class NetworkAclsClient {
|
|
|
131
131
|
return new core.Page({
|
|
132
132
|
response: dataWithRawResponse.data,
|
|
133
133
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
134
|
-
hasNextPage: (response) => {
|
|
134
|
+
hasNextPage: (response) => {
|
|
135
|
+
var _a, _b;
|
|
136
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.network_acls) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
137
|
+
((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));
|
|
138
|
+
},
|
|
135
139
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.network_acls) !== null && _a !== void 0 ? _a : []; },
|
|
136
140
|
loadPage: (_response) => {
|
|
137
141
|
_offset += 1;
|
|
@@ -9,6 +9,7 @@ import { EnabledConnectionsClient } from "../resources/enabledConnections/client
|
|
|
9
9
|
import { GroupsClient } from "../resources/groups/client/Client.js";
|
|
10
10
|
import { InvitationsClient } from "../resources/invitations/client/Client.js";
|
|
11
11
|
import { MembersClient } from "../resources/members/client/Client.js";
|
|
12
|
+
import { RolesClient } from "../resources/roles/client/Client.js";
|
|
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
|
*
|
|
@@ -58,6 +58,7 @@ const Client_js_4 = require("../resources/enabledConnections/client/Client.js");
|
|
|
58
58
|
const Client_js_5 = require("../resources/groups/client/Client.js");
|
|
59
59
|
const Client_js_6 = require("../resources/invitations/client/Client.js");
|
|
60
60
|
const Client_js_7 = require("../resources/members/client/Client.js");
|
|
61
|
+
const Client_js_8 = require("../resources/roles/client/Client.js");
|
|
61
62
|
class OrganizationsClient {
|
|
62
63
|
constructor(options) {
|
|
63
64
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
@@ -90,6 +91,10 @@ class OrganizationsClient {
|
|
|
90
91
|
var _a;
|
|
91
92
|
return ((_a = this._groups) !== null && _a !== void 0 ? _a : (this._groups = new Client_js_5.GroupsClient(this._options)));
|
|
92
93
|
}
|
|
94
|
+
get roles() {
|
|
95
|
+
var _a;
|
|
96
|
+
return ((_a = this._roles) !== null && _a !== void 0 ? _a : (this._roles = new Client_js_8.RolesClient(this._options)));
|
|
97
|
+
}
|
|
93
98
|
/**
|
|
94
99
|
* Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations.
|
|
95
100
|
*
|
package/dist/cjs/management/api/resources/organizations/resources/clientGrants/client/Client.js
CHANGED
|
@@ -136,7 +136,11 @@ class ClientGrantsClient {
|
|
|
136
136
|
return new core.Page({
|
|
137
137
|
response: dataWithRawResponse.data,
|
|
138
138
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
139
|
-
hasNextPage: (response) => {
|
|
139
|
+
hasNextPage: (response) => {
|
|
140
|
+
var _a, _b;
|
|
141
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.client_grants) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
142
|
+
((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));
|
|
143
|
+
},
|
|
140
144
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.client_grants) !== null && _a !== void 0 ? _a : []; },
|
|
141
145
|
loadPage: (_response) => {
|
|
142
146
|
_offset += 1;
|
package/dist/cjs/management/api/resources/organizations/resources/connections/client/Client.js
CHANGED
|
@@ -132,7 +132,11 @@ class ConnectionsClient {
|
|
|
132
132
|
return new core.Page({
|
|
133
133
|
response: dataWithRawResponse.data,
|
|
134
134
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
135
|
-
hasNextPage: (response) => {
|
|
135
|
+
hasNextPage: (response) => {
|
|
136
|
+
var _a, _b;
|
|
137
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.connections) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
138
|
+
((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));
|
|
139
|
+
},
|
|
136
140
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.connections) !== null && _a !== void 0 ? _a : []; },
|
|
137
141
|
loadPage: (_response) => {
|
|
138
142
|
_offset += 1;
|
|
@@ -135,7 +135,11 @@ class EnabledConnectionsClient {
|
|
|
135
135
|
return new core.Page({
|
|
136
136
|
response: dataWithRawResponse.data,
|
|
137
137
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
138
|
-
hasNextPage: (response) => {
|
|
138
|
+
hasNextPage: (response) => {
|
|
139
|
+
var _a, _b;
|
|
140
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.enabled_connections) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
141
|
+
((request === null || request === void 0 ? void 0 : request.per_page) == null || ((_b = response === null || response === void 0 ? void 0 : response.enabled_connections) !== null && _b !== void 0 ? _b : []).length >= (request === null || request === void 0 ? void 0 : request.per_page));
|
|
142
|
+
},
|
|
139
143
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.enabled_connections) !== null && _a !== void 0 ? _a : []; },
|
|
140
144
|
loadPage: (_response) => {
|
|
141
145
|
_offset += 1;
|
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.members = exports.invitations = exports.groups = exports.enabledConnections = exports.discoveryDomains = exports.connections = exports.clientGrants = void 0;
|
|
36
|
+
exports.roles = exports.members = exports.invitations = exports.groups = exports.enabledConnections = exports.discoveryDomains = exports.connections = exports.clientGrants = void 0;
|
|
37
37
|
exports.clientGrants = __importStar(require("./clientGrants/index.js"));
|
|
38
38
|
exports.connections = __importStar(require("./connections/index.js"));
|
|
39
39
|
exports.discoveryDomains = __importStar(require("./discoveryDomains/index.js"));
|
|
@@ -41,3 +41,4 @@ exports.enabledConnections = __importStar(require("./enabledConnections/index.js
|
|
|
41
41
|
exports.groups = __importStar(require("./groups/index.js"));
|
|
42
42
|
exports.invitations = __importStar(require("./invitations/index.js"));
|
|
43
43
|
exports.members = __importStar(require("./members/index.js"));
|
|
44
|
+
exports.roles = __importStar(require("./roles/index.js"));
|
package/dist/cjs/management/api/resources/organizations/resources/invitations/client/Client.js
CHANGED
|
@@ -141,7 +141,11 @@ class InvitationsClient {
|
|
|
141
141
|
return new core.Page({
|
|
142
142
|
response: dataWithRawResponse.data,
|
|
143
143
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
144
|
-
hasNextPage: (response) => {
|
|
144
|
+
hasNextPage: (response) => {
|
|
145
|
+
var _a, _b;
|
|
146
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.invitations) !== null && _a !== void 0 ? _a : []).length > 0 &&
|
|
147
|
+
((request === null || request === void 0 ? void 0 : request.per_page) == null || ((_b = response === null || response === void 0 ? void 0 : response.invitations) !== null && _b !== void 0 ? _b : []).length >= (request === null || request === void 0 ? void 0 : request.per_page));
|
|
148
|
+
},
|
|
145
149
|
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.invitations) !== null && _a !== void 0 ? _a : []; },
|
|
146
150
|
loadPage: (_response) => {
|
|
147
151
|
_offset += 1;
|