Skip to content

Commit a50a7ca

Browse files
committed
SDK regeneration
1 parent 97a4419 commit a50a7ca

158 files changed

Lines changed: 7926 additions & 3800 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"types": "./dist/cjs/index.d.ts",
1414
"exports": {
1515
".": {
16+
"types": "./dist/cjs/index.d.ts",
1617
"import": {
1718
"types": "./dist/esm/index.d.mts",
1819
"default": "./dist/esm/index.mjs"
@@ -76,17 +77,17 @@
7677
"auth0-legacy": "npm:auth0@^4.27.0"
7778
},
7879
"devDependencies": {
79-
"webpack": "^5.105.4",
80-
"ts-loader": "^9.5.4",
80+
"webpack": "^5.97.1",
81+
"ts-loader": "^9.5.1",
8182
"jest": "^29.7.0",
8283
"@jest/globals": "^29.7.0",
8384
"@types/jest": "^29.5.14",
8485
"ts-jest": "^29.3.4",
8586
"jest-environment-jsdom": "^29.7.0",
8687
"msw": "2.11.2",
8788
"@types/node": "^18.19.70",
88-
"typescript": "~5.9.3",
89-
"prettier": "3.8.1",
89+
"typescript": "~5.7.2",
90+
"prettier": "3.7.4",
9091
"typedoc": "^0.28.7",
9192
"typedoc-plugin-missing-exports": "^4.0.0",
9293
"nock": "^14.0.6",

src/management/Client.ts

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -275,35 +275,4 @@ export class ManagementClient {
275275
public get verifiableCredentials(): VerifiableCredentialsClient {
276276
return (this._verifiableCredentials ??= new VerifiableCredentialsClient(this._options));
277277
}
278-
279-
/**
280-
* Make a passthrough request using the SDK's configured auth, retry, logging, etc.
281-
* This is useful for making requests to endpoints not yet supported in the SDK.
282-
* The input can be a URL string, URL object, or Request object. Relative paths are resolved against the configured base URL.
283-
*
284-
* @param {Request | string | URL} input - The URL, path, or Request object.
285-
* @param {RequestInit} init - Standard fetch RequestInit options.
286-
* @param {core.PassthroughRequest.RequestOptions} requestOptions - Per-request overrides (timeout, retries, headers, abort signal).
287-
* @returns {Promise<Response>} A standard Response object.
288-
*/
289-
public async fetch(
290-
input: Request | string | URL,
291-
init?: RequestInit,
292-
requestOptions?: core.PassthroughRequest.RequestOptions,
293-
): Promise<Response> {
294-
return core.makePassthroughRequest(
295-
input,
296-
init,
297-
{
298-
baseUrl: this._options.baseUrl ?? this._options.environment,
299-
headers: this._options.headers,
300-
timeoutInSeconds: this._options.timeoutInSeconds,
301-
maxRetries: this._options.maxRetries,
302-
fetch: this._options.fetch,
303-
logging: this._options.logging,
304-
getAuthHeaders: async () => (await this._options.authProvider.getAuthRequest()).headers,
305-
},
306-
requestOptions,
307-
);
308-
}
309278
}

src/management/api/types/types.ts

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3538,6 +3538,14 @@ export type ConnectionDomainGoogleApps = string;
35383538
*/
35393539
export type ConnectionDomainOkta = string;
35403540

3541+
/** Algorithm used for DPoP proof JWT signing. */
3542+
export const ConnectionDpopSigningAlgEnum = {
3543+
Es256: "ES256",
3544+
Ed25519: "Ed25519",
3545+
} as const;
3546+
export type ConnectionDpopSigningAlgEnum =
3547+
(typeof ConnectionDpopSigningAlgEnum)[keyof typeof ConnectionDpopSigningAlgEnum];
3548+
35413549
/**
35423550
* JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing.
35433551
*/
@@ -4465,6 +4473,7 @@ export interface ConnectionOptionsCommonOidc {
44654473
client_secret?: Management.ConnectionClientSecretOidc | undefined;
44664474
connection_settings?: Management.ConnectionConnectionSettings | undefined;
44674475
domain_aliases?: Management.ConnectionDomainAliases | undefined;
4476+
dpop_signing_alg?: Management.ConnectionDpopSigningAlgEnum | undefined;
44684477
federated_connections_access_tokens?: (Management.ConnectionFederatedConnectionsAccessTokens | null) | undefined;
44694478
icon_url?: Management.ConnectionIconUrl | undefined;
44704479
id_token_signed_response_algs?: ((Management.ConnectionIdTokenSignedResponseAlgs | undefined) | null) | undefined;
@@ -5809,7 +5818,7 @@ export interface ConnectionPropertiesOptions {
58095818
/** Enable this if you have a legacy user store and you want to gradually migrate those users to the Auth0 user store */
58105819
import_mode?: boolean | undefined;
58115820
/** Stores encrypted string only configurations for connections */
5812-
configuration?: (Record<string, string | null> | null) | undefined;
5821+
configuration?: (Record<string, (string | null) | undefined> | null) | undefined;
58135822
customScripts?: Management.ConnectionCustomScripts | undefined;
58145823
authentication_methods?: (Management.ConnectionAuthenticationMethods | null) | undefined;
58155824
passkey_options?: (Management.ConnectionPasskeyOptions | null) | undefined;
@@ -7322,7 +7331,7 @@ export type ConnectionUpstreamAliasEnum =
73227331
* Options for adding parameters in the request to the upstream IdP
73237332
*/
73247333
export type ConnectionUpstreamParams =
7325-
| (Record<string, Management.ConnectionUpstreamAdditionalProperties | null> | null)
7334+
| (Record<string, (Management.ConnectionUpstreamAdditionalProperties | null) | undefined> | null)
73267335
| undefined;
73277336

73287337
/**
@@ -7407,7 +7416,7 @@ export type ConnectionWaadProtocolEnumAzureAd =
74077416
/**
74087417
* Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed.
74097418
*/
7410-
export type ConnectionsMetadata = Record<string, string | null>;
7419+
export type ConnectionsMetadata = Record<string, (string | null) | undefined>;
74117420

74127421
export interface CreateActionModuleResponseContent {
74137422
/** The unique ID of the module. */
@@ -10185,7 +10194,7 @@ export type DomainCertificateStatusEnum =
1018510194
/**
1018610195
* Domain metadata associated with the custom domain, in the form of an object with string values (max 255 chars). Maximum of 10 domain metadata properties allowed.
1018710196
*/
10188-
export type DomainMetadata = Record<string, string | null>;
10197+
export type DomainMetadata = Record<string, (string | null) | undefined>;
1018910198

1019010199
/**
1019110200
* Domain verification settings.
@@ -11170,7 +11179,7 @@ export type FlowActionAuth0SendRequestParamsPayloadObject = Record<string, unkno
1117011179

1117111180
export type FlowActionAuth0SendRequestParamsQueryParams = Record<
1117211181
string,
11173-
FlowActionAuth0SendRequestParamsQueryParams.Value | null
11182+
(FlowActionAuth0SendRequestParamsQueryParams.Value | null) | undefined
1117411183
>;
1117511184

1117611185
export namespace FlowActionAuth0SendRequestParamsQueryParams {
@@ -11676,7 +11685,7 @@ export type FlowActionHttpSendRequestParamsPayloadObject = Record<string, unknow
1167611685

1167711686
export type FlowActionHttpSendRequestParamsQueryParams = Record<
1167811687
string,
11679-
FlowActionHttpSendRequestParamsQueryParams.Value | null
11688+
(FlowActionHttpSendRequestParamsQueryParams.Value | null) | undefined
1168011689
>;
1168111690

1168211691
export namespace FlowActionHttpSendRequestParamsQueryParams {
@@ -17551,7 +17560,7 @@ export interface OrganizationMemberRole {
1755117560
/**
1755217561
* Metadata associated with the organization, in the form of an object with string values (max 255 chars). Maximum of 25 metadata properties allowed.
1755317562
*/
17554-
export type OrganizationMetadata = Record<string, string | null>;
17563+
export type OrganizationMetadata = Record<string, (string | null) | undefined>;
1755517564

1755617565
/** Defines whether organizations can be used with client credentials exchanges for this grant. */
1755717566
export const OrganizationUsageEnum = {
@@ -20060,7 +20069,7 @@ export interface UpdateConnectionOptions {
2006020069
/** Enable this if you have a legacy user store and you want to gradually migrate those users to the Auth0 user store */
2006120070
import_mode?: boolean | undefined;
2006220071
/** Stores encrypted string only configurations for connections */
20063-
configuration?: (Record<string, string | null> | null) | undefined;
20072+
configuration?: (Record<string, (string | null) | undefined> | null) | undefined;
2006420073
customScripts?: Management.ConnectionCustomScripts | undefined;
2006520074
authentication_methods?: (Management.ConnectionAuthenticationMethods | null) | undefined;
2006620075
passkey_options?: (Management.ConnectionPasskeyOptions | null) | undefined;

src/management/core/auth/BasicAuth.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { base64Decode, base64Encode } from "../base64.js";
22

33
export interface BasicAuth {
4-
username?: string;
5-
password?: string;
4+
username: string;
5+
password: string;
66
}
77

88
const BASIC_AUTH_HEADER_PREFIX = /^Basic /i;
@@ -12,12 +12,7 @@ export const BasicAuth = {
1212
if (basicAuth == null) {
1313
return undefined;
1414
}
15-
const username = basicAuth.username ?? "";
16-
const password = basicAuth.password ?? "";
17-
if (username === "" && password === "") {
18-
return undefined;
19-
}
20-
const token = base64Encode(`${username}:${password}`);
15+
const token = base64Encode(`${basicAuth.username}:${basicAuth.password}`);
2116
return `Basic ${token}`;
2217
},
2318
fromAuthorizationHeader: (header: string): BasicAuth => {

src/management/core/fetcher/BinaryResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export type BinaryResponse = {
1414
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes)
1515
* Some versions of the Fetch API may not support this method.
1616
*/
17-
bytes?(): Promise<Uint8Array>;
17+
bytes?(): ReturnType<Response["bytes"]>;
1818
};
1919

2020
export function getBinaryResponse(response: Response): BinaryResponse {

src/management/core/fetcher/Fetcher.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,11 @@ export declare namespace Fetcher {
5656

5757
export interface TimeoutError {
5858
reason: "timeout";
59-
cause?: unknown;
6059
}
6160

6261
export interface UnknownError {
6362
reason: "unknown";
6463
errorMessage: string;
65-
cause?: unknown;
6664
}
6765
}
6866

@@ -284,7 +282,6 @@ export async function fetcherImpl<R = unknown>(args: Fetcher.Args): Promise<APIR
284282
args.abortSignal,
285283
args.withCredentials,
286284
args.duplex,
287-
args.responseType === "streaming" || args.responseType === "sse",
288285
),
289286
args.maxRetries,
290287
);
@@ -340,7 +337,6 @@ export async function fetcherImpl<R = unknown>(args: Fetcher.Args): Promise<APIR
340337
error: {
341338
reason: "unknown",
342339
errorMessage: "The user aborted a request",
343-
cause: error,
344340
},
345341
rawResponse: abortRawResponse,
346342
};
@@ -357,7 +353,6 @@ export async function fetcherImpl<R = unknown>(args: Fetcher.Args): Promise<APIR
357353
ok: false,
358354
error: {
359355
reason: "timeout",
360-
cause: error,
361356
},
362357
rawResponse: abortRawResponse,
363358
};
@@ -375,7 +370,6 @@ export async function fetcherImpl<R = unknown>(args: Fetcher.Args): Promise<APIR
375370
error: {
376371
reason: "unknown",
377372
errorMessage: error.message,
378-
cause: error,
379373
},
380374
rawResponse: unknownRawResponse,
381375
};
@@ -394,7 +388,6 @@ export async function fetcherImpl<R = unknown>(args: Fetcher.Args): Promise<APIR
394388
error: {
395389
reason: "unknown",
396390
errorMessage: toJson(error),
397-
cause: error,
398391
},
399392
rawResponse: unknownRawResponse,
400393
};

src/management/core/fetcher/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ export type { Fetcher, FetchFunction } from "./Fetcher.js";
66
export { fetcher } from "./Fetcher.js";
77
export { getHeader } from "./getHeader.js";
88
export { HttpResponsePromise } from "./HttpResponsePromise.js";
9-
export type { PassthroughRequest } from "./makePassthroughRequest.js";
10-
export { makePassthroughRequest } from "./makePassthroughRequest.js";
119
export type { RawResponse, WithRawResponse } from "./RawResponse.js";
1210
export { abortRawResponse, toRawResponse, unknownRawResponse } from "./RawResponse.js";
1311
export { Supplier } from "./Supplier.js";

0 commit comments

Comments
 (0)