Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "auth0",
"version": "5.1.0",
"version": "5.2.0",
"private": false,
"repository": {
"type": "git",
Expand Down Expand Up @@ -50,8 +50,8 @@
"format:check": "prettier . --check --ignore-unknown",
"lint": "eslint . --ext .js,.ts,.tsx",
"lint:fix": "eslint . --ext .js,.ts,.tsx --fix",
"check": "yarn format:check && yarn lint",
"check:fix": "yarn format && yarn lint:fix",
"check": "yarn format:check",
"check:fix": "yarn format",
"build": "yarn build:cjs && yarn build:esm",
"build:cjs": "tsc --project ./tsconfig.cjs.json",
"build:esm": "tsc --project ./tsconfig.esm.json && node scripts/rename-to-esm-files.js dist/esm",
Expand Down
2 changes: 1 addition & 1 deletion src/management/BaseClient.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// This file was auto-generated by Fern from our API Definition.

import { BearerAuthProvider } from "./auth/BearerAuthProvider.js";
import * as core from "./core/index.js";
import type { AuthProvider } from "./core/auth/index.js";
import * as environments from "./environments.js";
import * as core from "./core/index.js";

export type BaseClientOptions = {
environment?: core.Supplier<environments.ManagementEnvironment | string>;
Expand Down
26 changes: 13 additions & 13 deletions src/management/Client.ts
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
// This file was auto-generated by Fern from our API Definition.

import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
import { type NormalizedClientOptionsWithAuth, normalizeClientOptionsWithAuth } from "./BaseClient.js";
import * as environments from "./environments.js";
import * as core from "./core/index.js";
import { ActionsClient } from "./api/resources/actions/client/Client.js";
import { AnomalyClient } from "./api/resources/anomaly/client/Client.js";
import { AttackProtectionClient } from "./api/resources/attackProtection/client/Client.js";
import { BrandingClient } from "./api/resources/branding/client/Client.js";
import { ClientGrantsClient } from "./api/resources/clientGrants/client/Client.js";
import { ClientsClient } from "./api/resources/clients/client/Client.js";
import { ConnectionProfilesClient } from "./api/resources/connectionProfiles/client/Client.js";
import { ConnectionsClient } from "./api/resources/connections/client/Client.js";
import { CustomDomainsClient } from "./api/resources/customDomains/client/Client.js";
import { DeviceCredentialsClient } from "./api/resources/deviceCredentials/client/Client.js";
import { EmailsClient } from "./api/resources/emails/client/Client.js";
import { EmailTemplatesClient } from "./api/resources/emailTemplates/client/Client.js";
import { EventStreamsClient } from "./api/resources/eventStreams/client/Client.js";
import { FlowsClient } from "./api/resources/flows/client/Client.js";
import { FormsClient } from "./api/resources/forms/client/Client.js";
import { UserGrantsClient } from "./api/resources/userGrants/client/Client.js";
import { GuardianClient } from "./api/resources/guardian/client/Client.js";
import { HooksClient } from "./api/resources/hooks/client/Client.js";
import { JobsClient } from "./api/resources/jobs/client/Client.js";
import { LogStreamsClient } from "./api/resources/logStreams/client/Client.js";
import { KeysClient } from "./api/resources/keys/client/Client.js";
import { LogsClient } from "./api/resources/logs/client/Client.js";
import { LogStreamsClient } from "./api/resources/logStreams/client/Client.js";
import { NetworkAclsClient } from "./api/resources/networkAcls/client/Client.js";
import { OrganizationsClient } from "./api/resources/organizations/client/Client.js";
import { PromptsClient } from "./api/resources/prompts/client/Client.js";
import { RefreshTokensClient } from "./api/resources/refreshTokens/client/Client.js";
import { ResourceServersClient } from "./api/resources/resourceServers/client/Client.js";
import { RiskAssessmentsClient } from "./api/resources/riskAssessments/client/Client.js";
import { RolesClient } from "./api/resources/roles/client/Client.js";
import { RulesClient } from "./api/resources/rules/client/Client.js";
import { RulesConfigsClient } from "./api/resources/rulesConfigs/client/Client.js";
import { SelfServiceProfilesClient } from "./api/resources/selfServiceProfiles/client/Client.js";
import { SessionsClient } from "./api/resources/sessions/client/Client.js";
import { StatsClient } from "./api/resources/stats/client/Client.js";
import { SupplementalSignalsClient } from "./api/resources/supplementalSignals/client/Client.js";
import { TenantsClient } from "./api/resources/tenants/client/Client.js";
import { TicketsClient } from "./api/resources/tickets/client/Client.js";
import { TokenExchangeProfilesClient } from "./api/resources/tokenExchangeProfiles/client/Client.js";
import { UserAttributeProfilesClient } from "./api/resources/userAttributeProfiles/client/Client.js";
import { UserBlocksClient } from "./api/resources/userBlocks/client/Client.js";
import { UserGrantsClient } from "./api/resources/userGrants/client/Client.js";
import { UsersClient } from "./api/resources/users/client/Client.js";
import { AnomalyClient } from "./api/resources/anomaly/client/Client.js";
import { AttackProtectionClient } from "./api/resources/attackProtection/client/Client.js";
import { EmailsClient } from "./api/resources/emails/client/Client.js";
import { GuardianClient } from "./api/resources/guardian/client/Client.js";
import { KeysClient } from "./api/resources/keys/client/Client.js";
import { RiskAssessmentsClient } from "./api/resources/riskAssessments/client/Client.js";
import { TenantsClient } from "./api/resources/tenants/client/Client.js";
import { VerifiableCredentialsClient } from "./api/resources/verifiableCredentials/client/Client.js";
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
import { normalizeClientOptionsWithAuth, type NormalizedClientOptionsWithAuth } from "./BaseClient.js";
import * as core from "./core/index.js";
import * as environments from "./environments.js";

export declare namespace ManagementClient {
export type Options = BaseClientOptions;
Expand Down
2 changes: 1 addition & 1 deletion src/management/api/errors/BadRequestError.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This file was auto-generated by Fern from our API Definition.

import * as errors from "../../errors/index.js";
import * as core from "../../core/index.js";
import * as errors from "../../errors/index.js";

export class BadRequestError extends errors.ManagementError {
constructor(body?: unknown, rawResponse?: core.RawResponse) {
Expand Down
2 changes: 1 addition & 1 deletion src/management/api/errors/ConflictError.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This file was auto-generated by Fern from our API Definition.

import * as errors from "../../errors/index.js";
import * as core from "../../core/index.js";
import * as errors from "../../errors/index.js";

export class ConflictError extends errors.ManagementError {
constructor(body?: unknown, rawResponse?: core.RawResponse) {
Expand Down
2 changes: 1 addition & 1 deletion src/management/api/errors/ContentTooLargeError.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This file was auto-generated by Fern from our API Definition.

import * as errors from "../../errors/index.js";
import * as core from "../../core/index.js";
import * as errors from "../../errors/index.js";

export class ContentTooLargeError extends errors.ManagementError {
constructor(body?: unknown, rawResponse?: core.RawResponse) {
Expand Down
2 changes: 1 addition & 1 deletion src/management/api/errors/ForbiddenError.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This file was auto-generated by Fern from our API Definition.

import * as errors from "../../errors/index.js";
import * as core from "../../core/index.js";
import * as errors from "../../errors/index.js";

export class ForbiddenError extends errors.ManagementError {
constructor(body?: unknown, rawResponse?: core.RawResponse) {
Expand Down
2 changes: 1 addition & 1 deletion src/management/api/errors/InternalServerError.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This file was auto-generated by Fern from our API Definition.

import * as errors from "../../errors/index.js";
import * as core from "../../core/index.js";
import * as errors from "../../errors/index.js";

export class InternalServerError extends errors.ManagementError {
constructor(body?: unknown, rawResponse?: core.RawResponse) {
Expand Down
2 changes: 1 addition & 1 deletion src/management/api/errors/NotFoundError.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This file was auto-generated by Fern from our API Definition.

import * as errors from "../../errors/index.js";
import * as core from "../../core/index.js";
import * as errors from "../../errors/index.js";

export class NotFoundError extends errors.ManagementError {
constructor(body?: unknown, rawResponse?: core.RawResponse) {
Expand Down
2 changes: 1 addition & 1 deletion src/management/api/errors/PaymentRequiredError.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This file was auto-generated by Fern from our API Definition.

import * as errors from "../../errors/index.js";
import * as core from "../../core/index.js";
import * as errors from "../../errors/index.js";

export class PaymentRequiredError extends errors.ManagementError {
constructor(body?: unknown, rawResponse?: core.RawResponse) {
Expand Down
2 changes: 1 addition & 1 deletion src/management/api/errors/ServiceUnavailableError.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This file was auto-generated by Fern from our API Definition.

import * as errors from "../../errors/index.js";
import * as core from "../../core/index.js";
import * as errors from "../../errors/index.js";

export class ServiceUnavailableError extends errors.ManagementError {
constructor(body?: unknown, rawResponse?: core.RawResponse) {
Expand Down
2 changes: 1 addition & 1 deletion src/management/api/errors/TooManyRequestsError.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This file was auto-generated by Fern from our API Definition.

import * as errors from "../../errors/index.js";
import * as core from "../../core/index.js";
import * as errors from "../../errors/index.js";

export class TooManyRequestsError extends errors.ManagementError {
constructor(body?: unknown, rawResponse?: core.RawResponse) {
Expand Down
2 changes: 1 addition & 1 deletion src/management/api/errors/UnauthorizedError.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This file was auto-generated by Fern from our API Definition.

import * as errors from "../../errors/index.js";
import * as core from "../../core/index.js";
import * as errors from "../../errors/index.js";

export class UnauthorizedError extends errors.ManagementError {
constructor(body?: unknown, rawResponse?: core.RawResponse) {
Expand Down
10 changes: 5 additions & 5 deletions src/management/api/errors/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export * from "./BadRequestError.js";
export * from "./UnauthorizedError.js";
export * from "./ForbiddenError.js";
export * from "./TooManyRequestsError.js";
export * from "./NotFoundError.js";
export * from "./ConflictError.js";
export * from "./PaymentRequiredError.js";
export * from "./ContentTooLargeError.js";
export * from "./ForbiddenError.js";
export * from "./InternalServerError.js";
export * from "./NotFoundError.js";
export * from "./PaymentRequiredError.js";
export * from "./ServiceUnavailableError.js";
export * from "./TooManyRequestsError.js";
export * from "./UnauthorizedError.js";
4 changes: 2 additions & 2 deletions src/management/api/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from "./resources/index.js";
export * from "./types/index.js";
export * from "./errors/index.js";
export * from "./requests/index.js";
export * from "./resources/index.js";
export * from "./types/index.js";
2 changes: 1 addition & 1 deletion src/management/api/requests/requests.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// This file was auto-generated by Fern from our API Definition.

import * as Management from "../index.js";
import * as fs from "fs";
import * as core from "../../core/index.js";
import * as Management from "../index.js";

/**
* @example
Expand Down
12 changes: 6 additions & 6 deletions src/management/api/resources/actions/client/Client.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
// This file was auto-generated by Fern from our API Definition.

import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
import { type NormalizedClientOptionsWithAuth, normalizeClientOptionsWithAuth } from "../../../../BaseClient.js";
import * as environments from "../../../../environments.js";
import { normalizeClientOptionsWithAuth, type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
import * as core from "../../../../core/index.js";
import * as Management from "../../../index.js";
import { mergeHeaders } from "../../../../core/headers.js";
import * as errors from "../../../../errors/index.js";
import * as environments from "../../../../environments.js";
import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.js";
import { VersionsClient } from "../resources/versions/client/Client.js";
import * as errors from "../../../../errors/index.js";
import * as Management from "../../../index.js";
import { ExecutionsClient } from "../resources/executions/client/Client.js";
import { TriggersClient } from "../resources/triggers/client/Client.js";
import { VersionsClient } from "../resources/versions/client/Client.js";

export declare namespace ActionsClient {
export type Options = BaseClientOptions;
Expand Down Expand Up @@ -152,7 +152,7 @@ export class ActionsClient {
return new core.Page<Management.Action, Management.ListActionsPaginatedResponseContent>({
response: dataWithRawResponse.data,
rawResponse: dataWithRawResponse.rawResponse,
hasNextPage: (response) => (response?.actions ?? []).length >= Math.floor(request?.per_page ?? 1),
hasNextPage: (response) => (response?.actions ?? []).length >= Math.floor(request?.per_page ?? 50),
getItems: (response) => response?.actions ?? [],
loadPage: (_response) => {
_offset += 1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// This file was auto-generated by Fern from our API Definition.

import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.js";
import { type NormalizedClientOptionsWithAuth, normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.js";
import * as environments from "../../../../../../environments.js";
import { normalizeClientOptionsWithAuth, type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
import * as core from "../../../../../../core/index.js";
import * as Management from "../../../../../index.js";
import { mergeHeaders } from "../../../../../../core/headers.js";
import * as errors from "../../../../../../errors/index.js";
import * as environments from "../../../../../../environments.js";
import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStatusCodeError.js";
import * as errors from "../../../../../../errors/index.js";
import * as Management from "../../../../../index.js";

export declare namespace ExecutionsClient {
export type Options = BaseClientOptions;
Expand Down
2 changes: 1 addition & 1 deletion src/management/api/resources/actions/resources/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * as versions from "./versions/index.js";
export * as executions from "./executions/index.js";
export * as triggers from "./triggers/index.js";
export * as versions from "./versions/index.js";
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// This file was auto-generated by Fern from our API Definition.

import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.js";
import { type NormalizedClientOptionsWithAuth, normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.js";
import * as environments from "../../../../../../environments.js";
import { normalizeClientOptionsWithAuth, type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
import * as core from "../../../../../../core/index.js";
import * as Management from "../../../../../index.js";
import { mergeHeaders } from "../../../../../../core/headers.js";
import * as errors from "../../../../../../errors/index.js";
import * as environments from "../../../../../../environments.js";
import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStatusCodeError.js";
import * as errors from "../../../../../../errors/index.js";
import * as Management from "../../../../../index.js";
import { BindingsClient } from "../resources/bindings/client/Client.js";

export declare namespace TriggersClient {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../../../BaseClient.js";
import {
type NormalizedClientOptionsWithAuth,
normalizeClientOptionsWithAuth,
type NormalizedClientOptionsWithAuth,
} from "../../../../../../../../BaseClient.js";
import * as environments from "../../../../../../../../environments.js";
import * as core from "../../../../../../../../core/index.js";
import * as Management from "../../../../../../../index.js";
import { mergeHeaders } from "../../../../../../../../core/headers.js";
import * as errors from "../../../../../../../../errors/index.js";
import * as environments from "../../../../../../../../environments.js";
import { handleNonStatusCodeError } from "../../../../../../../../errors/handleNonStatusCodeError.js";
import * as errors from "../../../../../../../../errors/index.js";
import * as Management from "../../../../../../../index.js";

export declare namespace BindingsClient {
export type Options = BaseClientOptions;
Expand Down Expand Up @@ -128,7 +128,7 @@ export class BindingsClient {
return new core.Page<Management.ActionBinding, Management.ListActionBindingsPaginatedResponseContent>({
response: dataWithRawResponse.data,
rawResponse: dataWithRawResponse.rawResponse,
hasNextPage: (response) => (response?.bindings ?? []).length >= Math.floor(request?.per_page ?? 1),
hasNextPage: (response) => (response?.bindings ?? []).length >= Math.floor(request?.per_page ?? 50),
getItems: (response) => response?.bindings ?? [],
loadPage: (_response) => {
_offset += 1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// This file was auto-generated by Fern from our API Definition.

import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.js";
import { type NormalizedClientOptionsWithAuth, normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.js";
import * as environments from "../../../../../../environments.js";
import { normalizeClientOptionsWithAuth, type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
import * as core from "../../../../../../core/index.js";
import * as Management from "../../../../../index.js";
import { mergeHeaders } from "../../../../../../core/headers.js";
import * as errors from "../../../../../../errors/index.js";
import * as environments from "../../../../../../environments.js";
import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStatusCodeError.js";
import * as errors from "../../../../../../errors/index.js";
import * as Management from "../../../../../index.js";

export declare namespace VersionsClient {
export type Options = BaseClientOptions;
Expand Down Expand Up @@ -125,7 +125,7 @@ export class VersionsClient {
return new core.Page<Management.ActionVersion, Management.ListActionVersionsPaginatedResponseContent>({
response: dataWithRawResponse.data,
rawResponse: dataWithRawResponse.rawResponse,
hasNextPage: (response) => (response?.versions ?? []).length >= Math.floor(request?.per_page ?? 1),
hasNextPage: (response) => (response?.versions ?? []).length >= Math.floor(request?.per_page ?? 50),
getItems: (response) => response?.versions ?? [],
loadPage: (_response) => {
_offset += 1;
Expand Down
4 changes: 2 additions & 2 deletions src/management/api/resources/anomaly/client/Client.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// This file was auto-generated by Fern from our API Definition.

import type { BaseClientOptions } from "../../../../BaseClient.js";
import { type NormalizedClientOptionsWithAuth, normalizeClientOptionsWithAuth } from "../../../../BaseClient.js";
import * as environments from "../../../../environments.js";
import { normalizeClientOptionsWithAuth, type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
import * as core from "../../../../core/index.js";
import * as environments from "../../../../environments.js";
import { BlocksClient } from "../resources/blocks/client/Client.js";

export declare namespace AnomalyClient {
Expand Down
Loading
Loading