From 3059bc5d63b94ad2b5b21493ac0c72b570faadac Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 17 Dec 2025 04:08:34 +0000 Subject: [PATCH] SDK regeneration Unable to analyze changes with AI, incrementing PATCH version. --- changelog.md | 4 + package.json | 2 +- reference.md | 207 +------------ src/management/BaseClient.ts | 17 +- src/management/api/requests/requests.ts | 62 +--- .../resources/customDomains/client/Client.ts | 12 +- .../pushNotification/client/Client.ts | 273 +---------------- .../discoveryDomains/client/Client.ts | 4 +- src/management/api/types/types.ts | 56 +--- src/management/core/pagination/CustomPager.ts | 174 +++++------ src/management/core/pagination/exports.ts | 1 - src/management/core/pagination/index.ts | 2 +- src/management/tests/wire/clients.test.ts | 28 -- .../tests/wire/customDomains.test.ts | 2 + .../guardian/factors/pushNotification.test.ts | 274 ++---------------- .../organizations/discoveryDomains.test.ts | 8 - src/management/version.ts | 2 +- yarn.lock | 252 ++++++++-------- 18 files changed, 315 insertions(+), 1065 deletions(-) create mode 100644 changelog.md diff --git a/changelog.md b/changelog.md new file mode 100644 index 000000000..814742557 --- /dev/null +++ b/changelog.md @@ -0,0 +1,4 @@ +## 5.2.1 - 2025-12-17 +* SDK regeneration +* Unable to analyze changes with AI, incrementing PATCH version. + diff --git a/package.json b/package.json index e909a17c7..c6201f110 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "auth0", - "version": "5.2.0", + "version": "5.2.1", "private": false, "repository": { "type": "git", diff --git a/reference.md b/reference.md index 741fc2d86..a43c78164 100644 --- a/reference.md +++ b/reference.md @@ -2378,6 +2378,8 @@ Retrieve details on custom domai ```typescript await client.customDomains.list({ + take: 1, + from: "from", q: "q", fields: "fields", include_fields: true, @@ -17413,69 +17415,6 @@ await client.guardian.factors.pushNotification.getApnsProvider();
-Overwrite all configuration details of the multi-factor authentication APNS provider associated with your tenant. - -
-
- - - -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.guardian.factors.pushNotification.setApnsProvider(); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Management.SetGuardianFactorsProviderPushNotificationApnsRequestContent` - -
-
- -
-
- -**requestOptions:** `PushNotificationClient.RequestOptions` - -
-
-
-
- - - - - -
client.guardian.factors.pushNotification.updateApnsProvider({ ...params }) -> Management.UpdateGuardianFactorsProviderPushNotificationApnsResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- Modify configuration details of the multi-factor authentication APNS provider associated with your tenant.
@@ -17492,7 +17431,7 @@ Modify configuration details of the multi-factor authentication APNS provider as
```typescript -await client.guardian.factors.pushNotification.updateApnsProvider(); +await client.guardian.factors.pushNotification.setApnsProvider({}); ```
@@ -17508,7 +17447,7 @@ await client.guardian.factors.pushNotification.updateApnsProvider();
-**request:** `Management.UpdateGuardianFactorsProviderPushNotificationApnsRequestContent` +**request:** `Management.SetGuardianFactorsProviderPushNotificationApnsRequestContent`
@@ -17539,69 +17478,6 @@ await client.guardian.factors.pushNotification.updateApnsProvider();
-Overwrite all configuration details of the multi-factor authentication FCM provider associated with your tenant. - -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.guardian.factors.pushNotification.setFcmProvider(); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Management.SetGuardianFactorsProviderPushNotificationFcmRequestContent` - -
-
- -
-
- -**requestOptions:** `PushNotificationClient.RequestOptions` - -
-
-
-
- -
-
-
- -
client.guardian.factors.pushNotification.updateFcmProvider({ ...params }) -> Management.UpdateGuardianFactorsProviderPushNotificationFcmResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- Modify configuration details of the multi-factor authentication FCM provider associated with your tenant.
@@ -17618,7 +17494,7 @@ Modify configuration details of the multi-factor authentication FCM provider ass
```typescript -await client.guardian.factors.pushNotification.updateFcmProvider(); +await client.guardian.factors.pushNotification.setFcmProvider({}); ```
@@ -17634,7 +17510,7 @@ await client.guardian.factors.pushNotification.updateFcmProvider();
-**request:** `Management.UpdateGuardianFactorsProviderPushNotificationFcmRequestContent` +**request:** `Management.SetGuardianFactorsProviderPushNotificationFcmRequestContent`
@@ -17665,69 +17541,6 @@ await client.guardian.factors.pushNotification.updateFcmProvider();
-Overwrite all configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. - -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.guardian.factors.pushNotification.setFcmv1Provider(); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Management.SetGuardianFactorsProviderPushNotificationFcmv1RequestContent` - -
-
- -
-
- -**requestOptions:** `PushNotificationClient.RequestOptions` - -
-
-
-
- -
-
-
- -
client.guardian.factors.pushNotification.updateFcmv1Provider({ ...params }) -> Management.UpdateGuardianFactorsProviderPushNotificationFcmv1ResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- Modify configuration details of the multi-factor authentication FCMV1 provider associated with your tenant.
@@ -17744,7 +17557,7 @@ Modify configuration details of the multi-factor authentication FCMV1 provider a
```typescript -await client.guardian.factors.pushNotification.updateFcmv1Provider(); +await client.guardian.factors.pushNotification.setFcmv1Provider({}); ```
@@ -17760,7 +17573,7 @@ await client.guardian.factors.pushNotification.updateFcmv1Provider();
-**request:** `Management.UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent` +**request:** `Management.SetGuardianFactorsProviderPushNotificationFcmv1RequestContent`
@@ -20355,7 +20168,7 @@ const response = page.response;
-Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The status field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). +Update the verification status for an organization discovery domain. The status field must be either pending or verified.
@@ -20570,7 +20383,7 @@ await client.organizations.discoveryDomains.delete("id", "discovery_domain_id");
-Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The status field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). +Update the verification status for an organization discovery domain. The status field must be either pending or verified.
diff --git a/src/management/BaseClient.ts b/src/management/BaseClient.ts index 574822b14..47f6a609c 100644 --- a/src/management/BaseClient.ts +++ b/src/management/BaseClient.ts @@ -35,23 +35,26 @@ export interface BaseRequestOptions { headers?: Record | null | undefined>; } -export type NormalizedClientOptions = T & { +export type NormalizedClientOptions = T & { logging: core.logging.Logger; authProvider?: core.AuthProvider; }; -export type NormalizedClientOptionsWithAuth = NormalizedClientOptions & { - authProvider: core.AuthProvider; -}; +export type NormalizedClientOptionsWithAuth = + NormalizedClientOptions & { + authProvider: core.AuthProvider; + }; -export function normalizeClientOptions(options: T): NormalizedClientOptions { +export function normalizeClientOptions( + options: T, +): NormalizedClientOptions { return { ...options, logging: core.logging.createLogger(options?.logging), } as NormalizedClientOptions; } -export function normalizeClientOptionsWithAuth( +export function normalizeClientOptionsWithAuth( options: T, ): NormalizedClientOptionsWithAuth { const normalized = normalizeClientOptions(options) as NormalizedClientOptionsWithAuth; @@ -60,7 +63,7 @@ export function normalizeClientOptionsWithAuth( return normalized; } -function withNoOpAuthProvider( +function withNoOpAuthProvider( options: NormalizedClientOptions, ): NormalizedClientOptionsWithAuth { return { diff --git a/src/management/api/requests/requests.ts b/src/management/api/requests/requests.ts index 5fab41ff7..96a884f84 100644 --- a/src/management/api/requests/requests.ts +++ b/src/management/api/requests/requests.ts @@ -533,6 +533,8 @@ export interface UpdateConnectionRequestContent { /** * @example * { + * take: 1, + * from: "from", * q: "q", * fields: "fields", * include_fields: true, @@ -540,6 +542,10 @@ export interface UpdateConnectionRequestContent { * } */ export interface ListCustomDomainsRequestParameters { + /** Number of results per page. Defaults to 50. */ + take?: number | null; + /** Optional Id from which to start selection. */ + from?: string | null; /** Query in Lucene query string syntax. */ q?: string | null; /** 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. */ @@ -2543,58 +2549,6 @@ export interface SetGuardianFactorPhoneTemplatesRequestContent { verification_message: string; } -/** - * @example - * {} - */ -export interface SetGuardianFactorsProviderPushNotificationApnsRequestContent { - sandbox?: boolean; - bundle_id?: string | null; - p12?: string | null; -} - -/** - * @example - * {} - */ -export interface UpdateGuardianFactorsProviderPushNotificationApnsRequestContent { - sandbox?: boolean; - bundle_id?: string | null; - p12?: string | null; -} - -/** - * @example - * {} - */ -export interface SetGuardianFactorsProviderPushNotificationFcmRequestContent { - server_key?: string | null; -} - -/** - * @example - * {} - */ -export interface UpdateGuardianFactorsProviderPushNotificationFcmRequestContent { - server_key?: string | null; -} - -/** - * @example - * {} - */ -export interface SetGuardianFactorsProviderPushNotificationFcmv1RequestContent { - server_credentials?: string | null; -} - -/** - * @example - * {} - */ -export interface UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent { - server_credentials?: string | null; -} - /** * @example * {} @@ -2848,8 +2802,6 @@ export interface CreateOrganizationDiscoveryDomainRequestContent { /** The domain name to associate with the organization e.g. acme.com. */ domain: string; status?: Management.OrganizationDiscoveryDomainStatus; - /** Indicates whether this discovery domain should be used for organization discovery. */ - use_for_organization_discovery?: boolean; } /** @@ -2858,8 +2810,6 @@ export interface CreateOrganizationDiscoveryDomainRequestContent { */ export interface UpdateOrganizationDiscoveryDomainRequestContent { status?: Management.OrganizationDiscoveryDomainStatus; - /** Indicates whether this discovery domain should be used for organization discovery. */ - use_for_organization_discovery?: boolean; } /** diff --git a/src/management/api/resources/customDomains/client/Client.ts b/src/management/api/resources/customDomains/client/Client.ts index b23fd130c..de568d49b 100644 --- a/src/management/api/resources/customDomains/client/Client.ts +++ b/src/management/api/resources/customDomains/client/Client.ts @@ -34,6 +34,8 @@ export class CustomDomainsClient { * * @example * await client.customDomains.list({ + * take: 1, + * from: "from", * q: "q", * fields: "fields", * include_fields: true, @@ -51,8 +53,16 @@ export class CustomDomainsClient { request: Management.ListCustomDomainsRequestParameters = {}, requestOptions?: CustomDomainsClient.RequestOptions, ): Promise> { - const { q, fields, include_fields: includeFields, sort } = request; + const { take = 50, from: from_, q, fields, include_fields: includeFields, sort } = request; const _queryParams: Record = {}; + if (take !== undefined) { + _queryParams["take"] = take?.toString() ?? null; + } + + if (from_ !== undefined) { + _queryParams["from"] = from_; + } + if (q !== undefined) { _queryParams["q"] = q; } diff --git a/src/management/api/resources/guardian/resources/factors/resources/pushNotification/client/Client.ts b/src/management/api/resources/guardian/resources/factors/resources/pushNotification/client/Client.ts index 61934a05e..f5451c2ef 100644 --- a/src/management/api/resources/guardian/resources/factors/resources/pushNotification/client/Client.ts +++ b/src/management/api/resources/guardian/resources/factors/resources/pushNotification/client/Client.ts @@ -101,7 +101,7 @@ export class PushNotificationClient { } /** - * Overwrite all configuration details of the multi-factor authentication APNS provider associated with your tenant. + * Modify configuration details of the multi-factor authentication APNS provider associated with your tenant. * * @param {Management.SetGuardianFactorsProviderPushNotificationApnsRequestContent} request * @param {PushNotificationClient.RequestOptions} requestOptions - Request-specific configuration. @@ -111,100 +111,19 @@ export class PushNotificationClient { * @throws {@link Management.ForbiddenError} * * @example - * await client.guardian.factors.pushNotification.setApnsProvider() + * await client.guardian.factors.pushNotification.setApnsProvider({}) */ public setApnsProvider( - request: Management.SetGuardianFactorsProviderPushNotificationApnsRequestContent = {}, + request: Management.SetGuardianFactorsProviderPushNotificationApnsRequestContent, requestOptions?: PushNotificationClient.RequestOptions, ): core.HttpResponsePromise { return core.HttpResponsePromise.fromPromise(this.__setApnsProvider(request, requestOptions)); } private async __setApnsProvider( - request: Management.SetGuardianFactorsProviderPushNotificationApnsRequestContent = {}, + request: Management.SetGuardianFactorsProviderPushNotificationApnsRequestContent, requestOptions?: PushNotificationClient.RequestOptions, ): Promise> { - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - let _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.ManagementEnvironment.Default, - "guardian/factors/push-notification/providers/apns", - ), - method: "PUT", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: request, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, - }); - if (_response.ok) { - return { - data: _response.body as Management.SetGuardianFactorsProviderPushNotificationApnsResponseContent, - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Management.BadRequestError(_response.error.body as unknown, _response.rawResponse); - case 401: - throw new Management.UnauthorizedError(_response.error.body as unknown, _response.rawResponse); - case 403: - throw new Management.ForbiddenError(_response.error.body as unknown, _response.rawResponse); - default: - throw new errors.ManagementError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "PUT", - "/guardian/factors/push-notification/providers/apns", - ); - } - - /** - * Modify configuration details of the multi-factor authentication APNS provider associated with your tenant. - * - * @param {Management.UpdateGuardianFactorsProviderPushNotificationApnsRequestContent} request - * @param {PushNotificationClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Management.BadRequestError} - * @throws {@link Management.UnauthorizedError} - * @throws {@link Management.ForbiddenError} - * - * @example - * await client.guardian.factors.pushNotification.updateApnsProvider() - */ - public updateApnsProvider( - request: Management.UpdateGuardianFactorsProviderPushNotificationApnsRequestContent = {}, - requestOptions?: PushNotificationClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__updateApnsProvider(request, requestOptions)); - } - - private async __updateApnsProvider( - request: Management.UpdateGuardianFactorsProviderPushNotificationApnsRequestContent = {}, - requestOptions?: PushNotificationClient.RequestOptions, - ): Promise> { const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); let _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, @@ -232,7 +151,7 @@ export class PushNotificationClient { }); if (_response.ok) { return { - data: _response.body as Management.UpdateGuardianFactorsProviderPushNotificationApnsResponseContent, + data: _response.body as Management.SetGuardianFactorsProviderPushNotificationApnsResponseContent, rawResponse: _response.rawResponse, }; } @@ -263,7 +182,7 @@ export class PushNotificationClient { } /** - * Overwrite all configuration details of the multi-factor authentication FCM provider associated with your tenant. + * Modify configuration details of the multi-factor authentication FCM provider associated with your tenant. * * @param {Management.SetGuardianFactorsProviderPushNotificationFcmRequestContent} request * @param {PushNotificationClient.RequestOptions} requestOptions - Request-specific configuration. @@ -273,100 +192,19 @@ export class PushNotificationClient { * @throws {@link Management.ForbiddenError} * * @example - * await client.guardian.factors.pushNotification.setFcmProvider() + * await client.guardian.factors.pushNotification.setFcmProvider({}) */ public setFcmProvider( - request: Management.SetGuardianFactorsProviderPushNotificationFcmRequestContent = {}, + request: Management.SetGuardianFactorsProviderPushNotificationFcmRequestContent, requestOptions?: PushNotificationClient.RequestOptions, ): core.HttpResponsePromise { return core.HttpResponsePromise.fromPromise(this.__setFcmProvider(request, requestOptions)); } private async __setFcmProvider( - request: Management.SetGuardianFactorsProviderPushNotificationFcmRequestContent = {}, + request: Management.SetGuardianFactorsProviderPushNotificationFcmRequestContent, requestOptions?: PushNotificationClient.RequestOptions, ): Promise> { - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - let _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.ManagementEnvironment.Default, - "guardian/factors/push-notification/providers/fcm", - ), - method: "PUT", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: request, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, - }); - if (_response.ok) { - return { - data: _response.body as Management.SetGuardianFactorsProviderPushNotificationFcmResponseContent, - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Management.BadRequestError(_response.error.body as unknown, _response.rawResponse); - case 401: - throw new Management.UnauthorizedError(_response.error.body as unknown, _response.rawResponse); - case 403: - throw new Management.ForbiddenError(_response.error.body as unknown, _response.rawResponse); - default: - throw new errors.ManagementError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "PUT", - "/guardian/factors/push-notification/providers/fcm", - ); - } - - /** - * Modify configuration details of the multi-factor authentication FCM provider associated with your tenant. - * - * @param {Management.UpdateGuardianFactorsProviderPushNotificationFcmRequestContent} request - * @param {PushNotificationClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Management.BadRequestError} - * @throws {@link Management.UnauthorizedError} - * @throws {@link Management.ForbiddenError} - * - * @example - * await client.guardian.factors.pushNotification.updateFcmProvider() - */ - public updateFcmProvider( - request: Management.UpdateGuardianFactorsProviderPushNotificationFcmRequestContent = {}, - requestOptions?: PushNotificationClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__updateFcmProvider(request, requestOptions)); - } - - private async __updateFcmProvider( - request: Management.UpdateGuardianFactorsProviderPushNotificationFcmRequestContent = {}, - requestOptions?: PushNotificationClient.RequestOptions, - ): Promise> { const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); let _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, @@ -394,7 +232,7 @@ export class PushNotificationClient { }); if (_response.ok) { return { - data: _response.body as Management.UpdateGuardianFactorsProviderPushNotificationFcmResponseContent, + data: _response.body as Management.SetGuardianFactorsProviderPushNotificationFcmResponseContent, rawResponse: _response.rawResponse, }; } @@ -425,7 +263,7 @@ export class PushNotificationClient { } /** - * Overwrite all configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. + * Modify configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. * * @param {Management.SetGuardianFactorsProviderPushNotificationFcmv1RequestContent} request * @param {PushNotificationClient.RequestOptions} requestOptions - Request-specific configuration. @@ -435,100 +273,19 @@ export class PushNotificationClient { * @throws {@link Management.ForbiddenError} * * @example - * await client.guardian.factors.pushNotification.setFcmv1Provider() + * await client.guardian.factors.pushNotification.setFcmv1Provider({}) */ public setFcmv1Provider( - request: Management.SetGuardianFactorsProviderPushNotificationFcmv1RequestContent = {}, + request: Management.SetGuardianFactorsProviderPushNotificationFcmv1RequestContent, requestOptions?: PushNotificationClient.RequestOptions, ): core.HttpResponsePromise { return core.HttpResponsePromise.fromPromise(this.__setFcmv1Provider(request, requestOptions)); } private async __setFcmv1Provider( - request: Management.SetGuardianFactorsProviderPushNotificationFcmv1RequestContent = {}, + request: Management.SetGuardianFactorsProviderPushNotificationFcmv1RequestContent, requestOptions?: PushNotificationClient.RequestOptions, ): Promise> { - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - let _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.ManagementEnvironment.Default, - "guardian/factors/push-notification/providers/fcmv1", - ), - method: "PUT", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: request, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, - }); - if (_response.ok) { - return { - data: _response.body as Management.SetGuardianFactorsProviderPushNotificationFcmv1ResponseContent, - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Management.BadRequestError(_response.error.body as unknown, _response.rawResponse); - case 401: - throw new Management.UnauthorizedError(_response.error.body as unknown, _response.rawResponse); - case 403: - throw new Management.ForbiddenError(_response.error.body as unknown, _response.rawResponse); - default: - throw new errors.ManagementError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "PUT", - "/guardian/factors/push-notification/providers/fcmv1", - ); - } - - /** - * Modify configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. - * - * @param {Management.UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent} request - * @param {PushNotificationClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Management.BadRequestError} - * @throws {@link Management.UnauthorizedError} - * @throws {@link Management.ForbiddenError} - * - * @example - * await client.guardian.factors.pushNotification.updateFcmv1Provider() - */ - public updateFcmv1Provider( - request: Management.UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent = {}, - requestOptions?: PushNotificationClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__updateFcmv1Provider(request, requestOptions)); - } - - private async __updateFcmv1Provider( - request: Management.UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent = {}, - requestOptions?: PushNotificationClient.RequestOptions, - ): Promise> { const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); let _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, @@ -556,7 +313,7 @@ export class PushNotificationClient { }); if (_response.ok) { return { - data: _response.body as Management.UpdateGuardianFactorsProviderPushNotificationFcmv1ResponseContent, + data: _response.body as Management.SetGuardianFactorsProviderPushNotificationFcmv1ResponseContent, rawResponse: _response.rawResponse, }; } diff --git a/src/management/api/resources/organizations/resources/discoveryDomains/client/Client.ts b/src/management/api/resources/organizations/resources/discoveryDomains/client/Client.ts index 26cd37a39..f70912a91 100644 --- a/src/management/api/resources/organizations/resources/discoveryDomains/client/Client.ts +++ b/src/management/api/resources/organizations/resources/discoveryDomains/client/Client.ts @@ -142,7 +142,7 @@ export class DiscoveryDomainsClient { } /** - * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The status field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). + * Update the verification status for an organization discovery domain. The status field must be either pending or verified. * * @param {string} id - ID of the organization. * @param {Management.CreateOrganizationDiscoveryDomainRequestContent} request @@ -405,7 +405,7 @@ export class DiscoveryDomainsClient { } /** - * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The status field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). + * Update the verification status for an organization discovery domain. The status field must be either pending or verified. * * @param {string} id - ID of the organization. * @param {string} discovery_domain_id - ID of the discovery domain to update. diff --git a/src/management/api/types/types.ts b/src/management/api/types/types.ts index 82c359bc8..5a1c7a0f1 100644 --- a/src/management/api/types/types.ts +++ b/src/management/api/types/types.ts @@ -2687,15 +2687,6 @@ export interface ClientRefreshTokenConfiguration { idle_token_lifetime?: number; /** Prevents tokens from expiring without use when `true` (takes precedence over `idle_token_lifetime` values) */ infinite_idle_token_lifetime?: boolean; - /** A collection of policies governing multi-resource refresh token exchange (MRRT), defining how refresh tokens can be used across different resource servers */ - policies?: Management.ClientRefreshTokenPolicy[]; -} - -export interface ClientRefreshTokenPolicy { - /** The identifier of the resource server to which the Multi Resource Refresh Token Policy applies */ - audience: string; - /** The resource server permissions granted under the Multi Resource Refresh Token Policy, defining the context in which an access token can be used */ - scope: string[]; } export const ClientSessionTransferAllowedAuthenticationMethodsEnum = { @@ -3654,7 +3645,7 @@ export type ConnectionOptionsBitly = Management.ConnectionOptionsOAuth2Common; export type ConnectionOptionsBox = Management.ConnectionOptionsOAuth2Common; /** - * Common attributes for connection options including non-persistent attributes and Cross App Access + * Common attributes for connection options including non-persistent attributes and cross-app access */ export interface ConnectionOptionsCommon { non_persistent_attrs?: Management.ConnectionNonPersistentAttrs; @@ -6775,8 +6766,6 @@ export interface CreateOrganizationDiscoveryDomainResponseContent { /** The domain name to associate with the organization e.g. acme.com. */ domain: string; status: Management.OrganizationDiscoveryDomainStatus; - /** Indicates whether this domain should be used for organization discovery. Note: This field is only returned when the ss_org_dove_enabled feature flag is enabled for the tenant. */ - use_for_organization_discovery?: boolean; /** A unique token generated for the discovery domain. This must be placed in a DNS TXT record at the location specified by the verification_host field to prove domain ownership. */ verification_txt: string; /** The full domain where the TXT record should be added. */ @@ -11375,28 +11364,12 @@ export interface GetOrganizationConnectionResponseContent { connection?: Management.OrganizationConnectionInformation; } -export interface GetOrganizationDiscoveryDomainByNameResponseContent { - /** Organization discovery domain identifier. */ - id: string; - /** The domain name to associate with the organization e.g. acme.com. */ - domain: string; - status: Management.OrganizationDiscoveryDomainStatus; - /** Indicates whether this domain should be used for organization discovery. Note: This field is only returned when the ss_org_dove_enabled feature flag is enabled for the tenant. */ - use_for_organization_discovery?: boolean; - /** A unique token generated for the discovery domain. This must be placed in a DNS TXT record at the location specified by the verification_host field to prove domain ownership. */ - verification_txt: string; - /** The full domain where the TXT record should be added. */ - verification_host: string; -} - export interface GetOrganizationDiscoveryDomainResponseContent { /** Organization discovery domain identifier. */ id: string; /** The domain name to associate with the organization e.g. acme.com. */ domain: string; status: Management.OrganizationDiscoveryDomainStatus; - /** Indicates whether this domain should be used for organization discovery. Note: This field is only returned when the ss_org_dove_enabled feature flag is enabled for the tenant. */ - use_for_organization_discovery?: boolean; /** A unique token generated for the discovery domain. This must be placed in a DNS TXT record at the location specified by the verification_host field to prove domain ownership. */ verification_txt: string; /** The full domain where the TXT record should be added. */ @@ -13378,8 +13351,6 @@ export interface OrganizationDiscoveryDomain { /** The domain name to associate with the organization e.g. acme.com. */ domain: string; status: Management.OrganizationDiscoveryDomainStatus; - /** Indicates whether this domain should be used for organization discovery. Note: This field is only returned when the ss_org_dove_enabled feature flag is enabled for the tenant. */ - use_for_organization_discovery?: boolean; /** A unique token generated for the discovery domain. This must be placed in a DNS TXT record at the location specified by the verification_host field to prove domain ownership. */ verification_txt: string; /** The full domain where the TXT record should be added. */ @@ -14778,13 +14749,27 @@ export interface SetGuardianFactorsProviderPhoneTwilioResponseContent { sid?: string | null; } +export interface SetGuardianFactorsProviderPushNotificationApnsRequestContent { + sandbox?: boolean; + bundle_id?: string | null; + p12?: string | null; +} + export interface SetGuardianFactorsProviderPushNotificationApnsResponseContent { sandbox?: boolean; bundle_id?: string | null; } +export interface SetGuardianFactorsProviderPushNotificationFcmRequestContent { + server_key?: string | null; +} + export type SetGuardianFactorsProviderPushNotificationFcmResponseContent = Record; +export interface SetGuardianFactorsProviderPushNotificationFcmv1RequestContent { + server_credentials?: string | null; +} + export type SetGuardianFactorsProviderPushNotificationFcmv1ResponseContent = Record; export interface SetGuardianFactorsProviderPushNotificationResponseContent { @@ -15891,15 +15876,6 @@ export interface UpdateGuardianFactorDuoSettingsResponseContent { host?: string; } -export interface UpdateGuardianFactorsProviderPushNotificationApnsResponseContent { - sandbox?: boolean; - bundle_id?: string | null; -} - -export type UpdateGuardianFactorsProviderPushNotificationFcmResponseContent = Record; - -export type UpdateGuardianFactorsProviderPushNotificationFcmv1ResponseContent = Record; - export interface UpdateGuardianFactorsProviderPushNotificationSnsResponseContent { aws_access_key_id?: string | null; aws_secret_access_key?: string | null; @@ -15969,8 +15945,6 @@ export interface UpdateOrganizationDiscoveryDomainResponseContent { /** The domain name to associate with the organization e.g. acme.com. */ domain: string; status: Management.OrganizationDiscoveryDomainStatus; - /** Indicates whether this domain should be used for organization discovery. Note: This field is only returned when the ss_org_dove_enabled feature flag is enabled for the tenant. */ - use_for_organization_discovery?: boolean; /** A unique token generated for the discovery domain. This must be placed in a DNS TXT record at the location specified by the verification_host field to prove domain ownership. */ verification_txt: string; /** The full domain where the TXT record should be added. */ diff --git a/src/management/core/pagination/CustomPager.ts b/src/management/core/pagination/CustomPager.ts index 69cad4816..931783120 100644 --- a/src/management/core/pagination/CustomPager.ts +++ b/src/management/core/pagination/CustomPager.ts @@ -1,41 +1,14 @@ -import { HttpResponsePromise, type RawResponse, type WithRawResponse } from "../fetcher/index.js"; +import type { BaseRequestOptions, NormalizedClientOptions } from "../../BaseClient.js"; +import type { APIResponse } from "../fetcher/APIResponse.js"; +import type { Fetcher } from "../fetcher/Fetcher.js"; +import type { RawResponse } from "../fetcher/index.js"; /** - * Parser function type for custom pagination. - * SDK authors implement this to define how to extract items and determine pagination state. - * - * @template TItem The type of items in the paginated response. - * @template TRequest The type of the request object. - * @template TResponse The type of the API response. - */ -export type CustomPagerParser = ( - request: TRequest, - response: WithRawResponse, -) => Promise<{ - /** The request to use for fetching the next page, if any */ - nextRequest?: TRequest; - /** Whether there is a next page available */ - hasNextPage: boolean; - /** The request to use for fetching the previous page, if any */ - previousRequest?: TRequest; - /** Whether there is a previous page available */ - hasPreviousPage: boolean; - /** The items extracted from the current response */ - items: TItem[]; -}>; - -/** - * A custom pager for paginated API responses where the pagination logic - * must be implemented by the SDK author. - * - * SDK authors provide a parser callback to extract items and determine - * pagination state from responses. * * @template TItem The type of the items in the page. - * @template TRequest The type of the request object. * @template TResponse The type of the API response. */ -export class CustomPager implements AsyncIterable { +export class CustomPager implements AsyncIterable { /** The items from the current page */ public data: TItem[]; /** The raw HTTP response */ @@ -43,29 +16,21 @@ export class CustomPager implements AsyncIterable HttpResponsePromise; - currentRequest: TRequest; - }; - private parser: CustomPagerParser; - private nextRequest?: TRequest; - private previousRequest?: TRequest; + private sendRequest: (request: Fetcher.Args) => Promise>; + private nextRequest?: Fetcher.Args; + private previousRequest?: Fetcher.Args; private _hasNextPage: boolean; private _hasPreviousPage: boolean; - private constructor(args: { + constructor(args: { response: TResponse; rawResponse: RawResponse; items: TItem[]; hasNextPage: boolean; hasPreviousPage: boolean; - nextRequest?: TRequest; - previousRequest?: TRequest; - context: { - sendRequest: (request: TRequest) => HttpResponsePromise; - currentRequest: TRequest; - }; - parser: CustomPagerParser; + nextRequest?: Fetcher.Args; + previousRequest?: Fetcher.Args; + sendRequest: (request: Fetcher.Args) => Promise>; }) { this.response = args.response; this.rawResponse = args.rawResponse; @@ -74,8 +39,7 @@ export class CustomPager implements AsyncIterable implements AsyncIterable implements AsyncIterable({ request: this.nextRequest, data, rawResponse }); this.response = data; this.rawResponse = rawResponse; this.data = parsed.items; this._hasNextPage = parsed.hasNextPage; this._hasPreviousPage = parsed.hasPreviousPage; - this.context.currentRequest = this.nextRequest; this.nextRequest = parsed.nextRequest; this.previousRequest = parsed.previousRequest; return this; @@ -123,14 +103,20 @@ export class CustomPager implements AsyncIterable({ request: this.previousRequest, data, rawResponse }); this.response = data; this.rawResponse = rawResponse; this.data = parsed.items; this._hasNextPage = parsed.hasNextPage; this._hasPreviousPage = parsed.hasPreviousPage; - this.context.currentRequest = this.previousRequest; this.nextRequest = parsed.nextRequest; this.previousRequest = parsed.previousRequest; return this; @@ -154,35 +140,55 @@ export class CustomPager implements AsyncIterable(args: { - sendRequest: (request: TRequest) => HttpResponsePromise; - initialRequest: TRequest; - parse: CustomPagerParser; - }): Promise> { - const { data, rawResponse } = await args.sendRequest(args.initialRequest).withRawResponse(); - const parsed = await args.parse(args.initialRequest, { data, rawResponse }); - return new CustomPager({ - response: data, - rawResponse, - items: parsed.items, - hasNextPage: parsed.hasNextPage, - hasPreviousPage: parsed.hasPreviousPage, - nextRequest: parsed.nextRequest, - previousRequest: parsed.previousRequest, - context: { - sendRequest: args.sendRequest, - currentRequest: args.initialRequest, - }, - parser: args.parse, - }); +export async function createCustomPager({ + sendRequest, + initialHttpRequest, + clientOptions, +}: { + sendRequest: (request: Fetcher.Args) => Promise>; + initialHttpRequest: Fetcher.Args; + clientOptions: NormalizedClientOptions; + requestOptions?: BaseRequestOptions; +}): Promise> { + const response = await sendRequest(initialHttpRequest); + if (!response.ok) { + const reason = + response.error.reason === "status-code" ? `HTTP ${response.error.statusCode}` : response.error.reason; + throw new Error(`Failed to fetch initial page: ${reason}`); } + const data = response.body; + const rawResponse = response.rawResponse; + const parsed = await parse({ request: initialHttpRequest, data, rawResponse }); + return new CustomPager({ + response: data, + rawResponse, + items: parsed.items, + hasNextPage: parsed.hasNextPage, + hasPreviousPage: parsed.hasPreviousPage, + nextRequest: parsed.nextRequest, + previousRequest: parsed.previousRequest, + sendRequest: sendRequest, + }); +} + +async function parse(args: { + request: Fetcher.Args; + data: TResponse; + rawResponse: RawResponse; +}): Promise<{ + nextRequest?: Fetcher.Args; + hasNextPage: boolean; + previousRequest?: Fetcher.Args; + hasPreviousPage: boolean; + items: TItem[]; +}> { + // Placeholder implementation. + // TODO: Replace this with actual parsing logic. + return { + items: [], + hasNextPage: false, + hasPreviousPage: false, + }; } diff --git a/src/management/core/pagination/exports.ts b/src/management/core/pagination/exports.ts index c386a05bd..d3acc60b0 100644 --- a/src/management/core/pagination/exports.ts +++ b/src/management/core/pagination/exports.ts @@ -1,2 +1 @@ -export { CustomPager, type CustomPagerParser } from "./CustomPager.js"; export type { Page } from "./Page.js"; diff --git a/src/management/core/pagination/index.ts b/src/management/core/pagination/index.ts index 97d348c1b..fe9dc949a 100644 --- a/src/management/core/pagination/index.ts +++ b/src/management/core/pagination/index.ts @@ -1,2 +1,2 @@ -export { CustomPager, type CustomPagerParser } from "./CustomPager.js"; +export { CustomPager, createCustomPager } from "./CustomPager.js"; export { Page } from "./Page.js"; diff --git a/src/management/tests/wire/clients.test.ts b/src/management/tests/wire/clients.test.ts index a39572e64..8927f0556 100644 --- a/src/management/tests/wire/clients.test.ts +++ b/src/management/tests/wire/clients.test.ts @@ -401,7 +401,6 @@ describe("ClientsClient", () => { infinite_token_lifetime: true, idle_token_lifetime: 1, infinite_idle_token_lifetime: true, - policies: [{ audience: "audience", scope: ["scope"] }], }, default_organization: { organization_id: "organization_id", flows: ["client_credentials"] }, organization_usage: "deny", @@ -681,12 +680,6 @@ describe("ClientsClient", () => { infinite_token_lifetime: true, idle_token_lifetime: 1, infinite_idle_token_lifetime: true, - policies: [ - { - audience: "audience", - scope: ["scope"], - }, - ], }, default_organization: { organization_id: "organization_id", @@ -1028,7 +1021,6 @@ describe("ClientsClient", () => { infinite_token_lifetime: true, idle_token_lifetime: 1, infinite_idle_token_lifetime: true, - policies: [{ audience: "audience", scope: ["scope"] }], }, default_organization: { organization_id: "organization_id", flows: ["client_credentials"] }, organization_usage: "deny", @@ -1302,12 +1294,6 @@ describe("ClientsClient", () => { infinite_token_lifetime: true, idle_token_lifetime: 1, infinite_idle_token_lifetime: true, - policies: [ - { - audience: "audience", - scope: ["scope"], - }, - ], }, default_organization: { organization_id: "organization_id", @@ -1662,7 +1648,6 @@ describe("ClientsClient", () => { infinite_token_lifetime: true, idle_token_lifetime: 1, infinite_idle_token_lifetime: true, - policies: [{ audience: "audience", scope: ["scope"] }], }, default_organization: { organization_id: "organization_id", flows: ["client_credentials"] }, organization_usage: "deny", @@ -1940,12 +1925,6 @@ describe("ClientsClient", () => { infinite_token_lifetime: true, idle_token_lifetime: 1, infinite_idle_token_lifetime: true, - policies: [ - { - audience: "audience", - scope: ["scope"], - }, - ], }, default_organization: { organization_id: "organization_id", @@ -2277,7 +2256,6 @@ describe("ClientsClient", () => { infinite_token_lifetime: true, idle_token_lifetime: 1, infinite_idle_token_lifetime: true, - policies: [{ audience: "audience", scope: ["scope"] }], }, default_organization: { organization_id: "organization_id", flows: ["client_credentials"] }, organization_usage: "deny", @@ -2554,12 +2532,6 @@ describe("ClientsClient", () => { infinite_token_lifetime: true, idle_token_lifetime: 1, infinite_idle_token_lifetime: true, - policies: [ - { - audience: "audience", - scope: ["scope"], - }, - ], }, default_organization: { organization_id: "organization_id", diff --git a/src/management/tests/wire/customDomains.test.ts b/src/management/tests/wire/customDomains.test.ts index 0d35b11f1..3973e0ae8 100644 --- a/src/management/tests/wire/customDomains.test.ts +++ b/src/management/tests/wire/customDomains.test.ts @@ -37,6 +37,8 @@ describe("CustomDomainsClient", () => { server.mockEndpoint().get("/custom-domains").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); const response = await client.customDomains.list({ + take: 1, + from: "from", q: "q", fields: "fields", include_fields: true, diff --git a/src/management/tests/wire/guardian/factors/pushNotification.test.ts b/src/management/tests/wire/guardian/factors/pushNotification.test.ts index e25fd885f..db64d5ff4 100644 --- a/src/management/tests/wire/guardian/factors/pushNotification.test.ts +++ b/src/management/tests/wire/guardian/factors/pushNotification.test.ts @@ -81,84 +81,6 @@ describe("PushNotificationClient", () => { }); test("setApnsProvider (1)", async () => { - const server = mockServerPool.createServer(); - const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); - const rawRequestBody = {}; - const rawResponseBody = { sandbox: true, bundle_id: "bundle_id" }; - server - .mockEndpoint() - .put("/guardian/factors/push-notification/providers/apns") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.guardian.factors.pushNotification.setApnsProvider(); - expect(response).toEqual({ - sandbox: true, - bundle_id: "bundle_id", - }); - }); - - test("setApnsProvider (2)", async () => { - const server = mockServerPool.createServer(); - const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); - const rawRequestBody = {}; - const rawResponseBody = { key: "value" }; - server - .mockEndpoint() - .put("/guardian/factors/push-notification/providers/apns") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(400) - .jsonBody(rawResponseBody) - .build(); - - await expect(async () => { - return await client.guardian.factors.pushNotification.setApnsProvider(); - }).rejects.toThrow(Management.BadRequestError); - }); - - test("setApnsProvider (3)", async () => { - const server = mockServerPool.createServer(); - const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); - const rawRequestBody = {}; - const rawResponseBody = { key: "value" }; - server - .mockEndpoint() - .put("/guardian/factors/push-notification/providers/apns") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(401) - .jsonBody(rawResponseBody) - .build(); - - await expect(async () => { - return await client.guardian.factors.pushNotification.setApnsProvider(); - }).rejects.toThrow(Management.UnauthorizedError); - }); - - test("setApnsProvider (4)", async () => { - const server = mockServerPool.createServer(); - const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); - const rawRequestBody = {}; - const rawResponseBody = { key: "value" }; - server - .mockEndpoint() - .put("/guardian/factors/push-notification/providers/apns") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(403) - .jsonBody(rawResponseBody) - .build(); - - await expect(async () => { - return await client.guardian.factors.pushNotification.setApnsProvider(); - }).rejects.toThrow(Management.ForbiddenError); - }); - - test("updateApnsProvider (1)", async () => { const server = mockServerPool.createServer(); const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); const rawRequestBody = {}; @@ -172,14 +94,14 @@ describe("PushNotificationClient", () => { .jsonBody(rawResponseBody) .build(); - const response = await client.guardian.factors.pushNotification.updateApnsProvider(); + const response = await client.guardian.factors.pushNotification.setApnsProvider({}); expect(response).toEqual({ sandbox: true, bundle_id: "bundle_id", }); }); - test("updateApnsProvider (2)", async () => { + test("setApnsProvider (2)", async () => { const server = mockServerPool.createServer(); const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); const rawRequestBody = {}; @@ -194,11 +116,11 @@ describe("PushNotificationClient", () => { .build(); await expect(async () => { - return await client.guardian.factors.pushNotification.updateApnsProvider(); + return await client.guardian.factors.pushNotification.setApnsProvider({}); }).rejects.toThrow(Management.BadRequestError); }); - test("updateApnsProvider (3)", async () => { + test("setApnsProvider (3)", async () => { const server = mockServerPool.createServer(); const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); const rawRequestBody = {}; @@ -213,11 +135,11 @@ describe("PushNotificationClient", () => { .build(); await expect(async () => { - return await client.guardian.factors.pushNotification.updateApnsProvider(); + return await client.guardian.factors.pushNotification.setApnsProvider({}); }).rejects.toThrow(Management.UnauthorizedError); }); - test("updateApnsProvider (4)", async () => { + test("setApnsProvider (4)", async () => { const server = mockServerPool.createServer(); const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); const rawRequestBody = {}; @@ -232,88 +154,11 @@ describe("PushNotificationClient", () => { .build(); await expect(async () => { - return await client.guardian.factors.pushNotification.updateApnsProvider(); + return await client.guardian.factors.pushNotification.setApnsProvider({}); }).rejects.toThrow(Management.ForbiddenError); }); test("setFcmProvider (1)", async () => { - const server = mockServerPool.createServer(); - const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); - const rawRequestBody = {}; - const rawResponseBody = { key: "value" }; - server - .mockEndpoint() - .put("/guardian/factors/push-notification/providers/fcm") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.guardian.factors.pushNotification.setFcmProvider(); - expect(response).toEqual({ - key: "value", - }); - }); - - test("setFcmProvider (2)", async () => { - const server = mockServerPool.createServer(); - const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); - const rawRequestBody = {}; - const rawResponseBody = { key: "value" }; - server - .mockEndpoint() - .put("/guardian/factors/push-notification/providers/fcm") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(400) - .jsonBody(rawResponseBody) - .build(); - - await expect(async () => { - return await client.guardian.factors.pushNotification.setFcmProvider(); - }).rejects.toThrow(Management.BadRequestError); - }); - - test("setFcmProvider (3)", async () => { - const server = mockServerPool.createServer(); - const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); - const rawRequestBody = {}; - const rawResponseBody = { key: "value" }; - server - .mockEndpoint() - .put("/guardian/factors/push-notification/providers/fcm") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(401) - .jsonBody(rawResponseBody) - .build(); - - await expect(async () => { - return await client.guardian.factors.pushNotification.setFcmProvider(); - }).rejects.toThrow(Management.UnauthorizedError); - }); - - test("setFcmProvider (4)", async () => { - const server = mockServerPool.createServer(); - const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); - const rawRequestBody = {}; - const rawResponseBody = { key: "value" }; - server - .mockEndpoint() - .put("/guardian/factors/push-notification/providers/fcm") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(403) - .jsonBody(rawResponseBody) - .build(); - - await expect(async () => { - return await client.guardian.factors.pushNotification.setFcmProvider(); - }).rejects.toThrow(Management.ForbiddenError); - }); - - test("updateFcmProvider (1)", async () => { const server = mockServerPool.createServer(); const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); const rawRequestBody = {}; @@ -327,13 +172,13 @@ describe("PushNotificationClient", () => { .jsonBody(rawResponseBody) .build(); - const response = await client.guardian.factors.pushNotification.updateFcmProvider(); + const response = await client.guardian.factors.pushNotification.setFcmProvider({}); expect(response).toEqual({ key: "value", }); }); - test("updateFcmProvider (2)", async () => { + test("setFcmProvider (2)", async () => { const server = mockServerPool.createServer(); const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); const rawRequestBody = {}; @@ -348,11 +193,11 @@ describe("PushNotificationClient", () => { .build(); await expect(async () => { - return await client.guardian.factors.pushNotification.updateFcmProvider(); + return await client.guardian.factors.pushNotification.setFcmProvider({}); }).rejects.toThrow(Management.BadRequestError); }); - test("updateFcmProvider (3)", async () => { + test("setFcmProvider (3)", async () => { const server = mockServerPool.createServer(); const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); const rawRequestBody = {}; @@ -367,11 +212,11 @@ describe("PushNotificationClient", () => { .build(); await expect(async () => { - return await client.guardian.factors.pushNotification.updateFcmProvider(); + return await client.guardian.factors.pushNotification.setFcmProvider({}); }).rejects.toThrow(Management.UnauthorizedError); }); - test("updateFcmProvider (4)", async () => { + test("setFcmProvider (4)", async () => { const server = mockServerPool.createServer(); const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); const rawRequestBody = {}; @@ -386,88 +231,11 @@ describe("PushNotificationClient", () => { .build(); await expect(async () => { - return await client.guardian.factors.pushNotification.updateFcmProvider(); + return await client.guardian.factors.pushNotification.setFcmProvider({}); }).rejects.toThrow(Management.ForbiddenError); }); test("setFcmv1Provider (1)", async () => { - const server = mockServerPool.createServer(); - const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); - const rawRequestBody = {}; - const rawResponseBody = { key: "value" }; - server - .mockEndpoint() - .put("/guardian/factors/push-notification/providers/fcmv1") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.guardian.factors.pushNotification.setFcmv1Provider(); - expect(response).toEqual({ - key: "value", - }); - }); - - test("setFcmv1Provider (2)", async () => { - const server = mockServerPool.createServer(); - const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); - const rawRequestBody = {}; - const rawResponseBody = { key: "value" }; - server - .mockEndpoint() - .put("/guardian/factors/push-notification/providers/fcmv1") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(400) - .jsonBody(rawResponseBody) - .build(); - - await expect(async () => { - return await client.guardian.factors.pushNotification.setFcmv1Provider(); - }).rejects.toThrow(Management.BadRequestError); - }); - - test("setFcmv1Provider (3)", async () => { - const server = mockServerPool.createServer(); - const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); - const rawRequestBody = {}; - const rawResponseBody = { key: "value" }; - server - .mockEndpoint() - .put("/guardian/factors/push-notification/providers/fcmv1") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(401) - .jsonBody(rawResponseBody) - .build(); - - await expect(async () => { - return await client.guardian.factors.pushNotification.setFcmv1Provider(); - }).rejects.toThrow(Management.UnauthorizedError); - }); - - test("setFcmv1Provider (4)", async () => { - const server = mockServerPool.createServer(); - const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); - const rawRequestBody = {}; - const rawResponseBody = { key: "value" }; - server - .mockEndpoint() - .put("/guardian/factors/push-notification/providers/fcmv1") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(403) - .jsonBody(rawResponseBody) - .build(); - - await expect(async () => { - return await client.guardian.factors.pushNotification.setFcmv1Provider(); - }).rejects.toThrow(Management.ForbiddenError); - }); - - test("updateFcmv1Provider (1)", async () => { const server = mockServerPool.createServer(); const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); const rawRequestBody = {}; @@ -481,13 +249,13 @@ describe("PushNotificationClient", () => { .jsonBody(rawResponseBody) .build(); - const response = await client.guardian.factors.pushNotification.updateFcmv1Provider(); + const response = await client.guardian.factors.pushNotification.setFcmv1Provider({}); expect(response).toEqual({ key: "value", }); }); - test("updateFcmv1Provider (2)", async () => { + test("setFcmv1Provider (2)", async () => { const server = mockServerPool.createServer(); const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); const rawRequestBody = {}; @@ -502,11 +270,11 @@ describe("PushNotificationClient", () => { .build(); await expect(async () => { - return await client.guardian.factors.pushNotification.updateFcmv1Provider(); + return await client.guardian.factors.pushNotification.setFcmv1Provider({}); }).rejects.toThrow(Management.BadRequestError); }); - test("updateFcmv1Provider (3)", async () => { + test("setFcmv1Provider (3)", async () => { const server = mockServerPool.createServer(); const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); const rawRequestBody = {}; @@ -521,11 +289,11 @@ describe("PushNotificationClient", () => { .build(); await expect(async () => { - return await client.guardian.factors.pushNotification.updateFcmv1Provider(); + return await client.guardian.factors.pushNotification.setFcmv1Provider({}); }).rejects.toThrow(Management.UnauthorizedError); }); - test("updateFcmv1Provider (4)", async () => { + test("setFcmv1Provider (4)", async () => { const server = mockServerPool.createServer(); const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); const rawRequestBody = {}; @@ -540,7 +308,7 @@ describe("PushNotificationClient", () => { .build(); await expect(async () => { - return await client.guardian.factors.pushNotification.updateFcmv1Provider(); + return await client.guardian.factors.pushNotification.setFcmv1Provider({}); }).rejects.toThrow(Management.ForbiddenError); }); diff --git a/src/management/tests/wire/organizations/discoveryDomains.test.ts b/src/management/tests/wire/organizations/discoveryDomains.test.ts index 37a9c535c..d864fd799 100644 --- a/src/management/tests/wire/organizations/discoveryDomains.test.ts +++ b/src/management/tests/wire/organizations/discoveryDomains.test.ts @@ -16,7 +16,6 @@ describe("DiscoveryDomainsClient", () => { id: "id", domain: "domain", status: "pending", - use_for_organization_discovery: true, verification_txt: "verification_txt", verification_host: "verification_host", }, @@ -37,7 +36,6 @@ describe("DiscoveryDomainsClient", () => { id: "id", domain: "domain", status: "pending", - use_for_organization_discovery: true, verification_txt: "verification_txt", verification_host: "verification_host", }, @@ -152,7 +150,6 @@ describe("DiscoveryDomainsClient", () => { id: "id", domain: "domain", status: "pending", - use_for_organization_discovery: true, verification_txt: "verification_txt", verification_host: "verification_host", }; @@ -172,7 +169,6 @@ describe("DiscoveryDomainsClient", () => { id: "id", domain: "domain", status: "pending", - use_for_organization_discovery: true, verification_txt: "verification_txt", verification_host: "verification_host", }); @@ -312,7 +308,6 @@ describe("DiscoveryDomainsClient", () => { id: "id", domain: "domain", status: "pending", - use_for_organization_discovery: true, verification_txt: "verification_txt", verification_host: "verification_host", }; @@ -329,7 +324,6 @@ describe("DiscoveryDomainsClient", () => { id: "id", domain: "domain", status: "pending", - use_for_organization_discovery: true, verification_txt: "verification_txt", verification_host: "verification_host", }); @@ -520,7 +514,6 @@ describe("DiscoveryDomainsClient", () => { id: "id", domain: "domain", status: "pending", - use_for_organization_discovery: true, verification_txt: "verification_txt", verification_host: "verification_host", }; @@ -538,7 +531,6 @@ describe("DiscoveryDomainsClient", () => { id: "id", domain: "domain", status: "pending", - use_for_organization_discovery: true, verification_txt: "verification_txt", verification_host: "verification_host", }); diff --git a/src/management/version.ts b/src/management/version.ts index 426f2b820..10fd77024 100644 --- a/src/management/version.ts +++ b/src/management/version.ts @@ -1 +1 @@ -export const SDK_VERSION = "5.2.0"; +export const SDK_VERSION = "5.2.1"; diff --git a/yarn.lock b/yarn.lock index 45b11a937..c007d3a90 100644 --- a/yarn.lock +++ b/yarn.lock @@ -334,10 +334,10 @@ minimatch "^3.1.2" strip-json-comments "^3.1.1" -"@eslint/js@9.39.1", "@eslint/js@^9.32.0": - version "9.39.1" - resolved "https://registry.yarnpkg.com/@eslint/js/-/js-9.39.1.tgz#0dd59c3a9f40e3f1882975c321470969243e0164" - integrity sha512-S26Stp4zCy88tH94QbBv3XCuzRQiZ9yXofEILmglYTh/Ug/a9/umqvgFtYBAo3Lp0nsI/5/qH1CCrbdK3AP1Tw== +"@eslint/js@9.39.2", "@eslint/js@^9.32.0": + version "9.39.2" + resolved "https://registry.yarnpkg.com/@eslint/js/-/js-9.39.2.tgz#2d4b8ec4c3ea13c1b3748e0c97ecd766bdd80599" + integrity sha512-q1mjIoW1VX4IvSocvM/vbTiveKC4k9eLrajNEuSsmjymSDEbpGddtpfOoN7YGAqBK3NG+uqo8ia4PDTt8buCYA== "@eslint/object-schema@^2.1.7": version "2.1.7" @@ -353,14 +353,14 @@ levn "^0.4.1" "@gerrit0/mini-shiki@^3.17.0": - version "3.19.0" - resolved "https://registry.yarnpkg.com/@gerrit0/mini-shiki/-/mini-shiki-3.19.0.tgz#1c772516e7771681cb4441150f771628ce22e8ef" - integrity sha512-ZSlWfLvr8Nl0T4iA3FF/8VH8HivYF82xQts2DY0tJxZd4wtXJ8AA0nmdW9lmO4hlrh3f9xNwEPtOgqETPqKwDA== - dependencies: - "@shikijs/engine-oniguruma" "^3.19.0" - "@shikijs/langs" "^3.19.0" - "@shikijs/themes" "^3.19.0" - "@shikijs/types" "^3.19.0" + version "3.20.0" + resolved "https://registry.yarnpkg.com/@gerrit0/mini-shiki/-/mini-shiki-3.20.0.tgz#a9154b8faeb7c2268e6c54af4cec86a9fb722297" + integrity sha512-Wa57i+bMpK6PGJZ1f2myxo3iO+K/kZikcyvH8NIqNNZhQUbDav7V9LQmWOXhf946mz5c1NZ19WMsGYiDKTryzQ== + dependencies: + "@shikijs/engine-oniguruma" "^3.20.0" + "@shikijs/langs" "^3.20.0" + "@shikijs/themes" "^3.20.0" + "@shikijs/types" "^3.20.0" "@shikijs/vscode-textmate" "^10.0.2" "@humanfs/core@^0.19.1": @@ -713,32 +713,32 @@ resolved "https://registry.yarnpkg.com/@publint/pack/-/pack-0.1.2.tgz#1b9a9567423262093e4a73e77697b65bf622f8c9" integrity sha512-S+9ANAvUmjutrshV4jZjaiG8XQyuJIZ8a4utWmN/vW1sgQ9IfBnPndwkmQYw53QmouOIytT874u65HEmu6H5jw== -"@shikijs/engine-oniguruma@^3.19.0": - version "3.19.0" - resolved "https://registry.yarnpkg.com/@shikijs/engine-oniguruma/-/engine-oniguruma-3.19.0.tgz#76bd31a90785102f1183d2a073381c117527fca4" - integrity sha512-1hRxtYIJfJSZeM5ivbUXv9hcJP3PWRo5prG/V2sWwiubUKTa+7P62d2qxCW8jiVFX4pgRHhnHNp+qeR7Xl+6kg== +"@shikijs/engine-oniguruma@^3.20.0": + version "3.20.0" + resolved "https://registry.yarnpkg.com/@shikijs/engine-oniguruma/-/engine-oniguruma-3.20.0.tgz#4b476a8dff29561dfd9af1ba2edb4c378d3bee06" + integrity sha512-Yx3gy7xLzM0ZOjqoxciHjA7dAt5tyzJE3L4uQoM83agahy+PlW244XJSrmJRSBvGYELDhYXPacD4R/cauV5bzQ== dependencies: - "@shikijs/types" "3.19.0" + "@shikijs/types" "3.20.0" "@shikijs/vscode-textmate" "^10.0.2" -"@shikijs/langs@^3.19.0": - version "3.19.0" - resolved "https://registry.yarnpkg.com/@shikijs/langs/-/langs-3.19.0.tgz#2fa46ae329ec5e88f36fd0167518e0013ab2e49a" - integrity sha512-dBMFzzg1QiXqCVQ5ONc0z2ebyoi5BKz+MtfByLm0o5/nbUu3Iz8uaTCa5uzGiscQKm7lVShfZHU1+OG3t5hgwg== +"@shikijs/langs@^3.20.0": + version "3.20.0" + resolved "https://registry.yarnpkg.com/@shikijs/langs/-/langs-3.20.0.tgz#5dcfdeb9eb2d5f811144ca606553a4d8a6a667d5" + integrity sha512-le+bssCxcSHrygCWuOrYJHvjus6zhQ2K7q/0mgjiffRbkhM4o1EWu2m+29l0yEsHDbWaWPNnDUTRVVBvBBeKaA== dependencies: - "@shikijs/types" "3.19.0" + "@shikijs/types" "3.20.0" -"@shikijs/themes@^3.19.0": - version "3.19.0" - resolved "https://registry.yarnpkg.com/@shikijs/themes/-/themes-3.19.0.tgz#9db4f2b57fac84e266e4fd1ada02df9c5e0102af" - integrity sha512-H36qw+oh91Y0s6OlFfdSuQ0Ld+5CgB/VE6gNPK+Hk4VRbVG/XQgkjnt4KzfnnoO6tZPtKJKHPjwebOCfjd6F8A== +"@shikijs/themes@^3.20.0": + version "3.20.0" + resolved "https://registry.yarnpkg.com/@shikijs/themes/-/themes-3.20.0.tgz#9b030fe81fcd0a8b7941131ef14c274b4c6451a8" + integrity sha512-U1NSU7Sl26Q7ErRvJUouArxfM2euWqq1xaSrbqMu2iqa+tSp0D1Yah8216sDYbdDHw4C8b75UpE65eWorm2erQ== dependencies: - "@shikijs/types" "3.19.0" + "@shikijs/types" "3.20.0" -"@shikijs/types@3.19.0", "@shikijs/types@^3.19.0": - version "3.19.0" - resolved "https://registry.yarnpkg.com/@shikijs/types/-/types-3.19.0.tgz#46fdd08d67a8920473788c3cb6b07cbdf20f6b6f" - integrity sha512-Z2hdeEQlzuntf/BZpFG8a+Fsw9UVXdML7w0o3TgSXV3yNESGon+bs9ITkQb3Ki7zxoXOOu5oJWqZ2uto06V9iQ== +"@shikijs/types@3.20.0", "@shikijs/types@^3.20.0": + version "3.20.0" + resolved "https://registry.yarnpkg.com/@shikijs/types/-/types-3.20.0.tgz#b1fbacba2e1e38d31e3f869309fff216a5d27126" + integrity sha512-lhYAATn10nkZcBQ0BlzSbJA3wcmL5MXUUF8d2Zzon6saZDlToKaiRX60n2+ZaHJCmXEcZRWNzn+k9vplr8Jhsw== dependencies: "@shikijs/vscode-textmate" "^10.0.2" "@types/hast" "^3.0.4" @@ -887,9 +887,9 @@ integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA== "@types/node@*": - version "24.10.2" - resolved "https://registry.yarnpkg.com/@types/node/-/node-24.10.2.tgz#82a57476a19647d8f2c7750d0924788245e39b26" - integrity sha512-WOhQTZ4G8xZ1tjJTvKOpyEVSGgOTvJAfDK3FNFgELyaTpzhdgHVHeqW8V+UJvzF5BT+/B54T/1S2K6gd9c7bbA== + version "25.0.2" + resolved "https://registry.yarnpkg.com/@types/node/-/node-25.0.2.tgz#411f9dd6cb2bf5ee46aed7199a9f85ca6b068b4e" + integrity sha512-gWEkeiyYE4vqjON/+Obqcoeffmk0NF15WSBwSs7zwVA2bAbTaE0SJ7P0WNGoJn8uE7fiaV5a7dKYIJriEqOrmA== dependencies: undici-types "~7.16.0" @@ -933,99 +933,99 @@ "@types/yargs-parser" "*" "@typescript-eslint/eslint-plugin@^8.38.0": - version "8.49.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.49.0.tgz#8ed8736b8415a9193989220eadb6031dbcd2260a" - integrity sha512-JXij0vzIaTtCwu6SxTh8qBc66kmf1xs7pI4UOiMDFVct6q86G0Zs7KRcEoJgY3Cav3x5Tq0MF5jwgpgLqgKG3A== + version "8.50.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.50.0.tgz#a6ce899690542e2affa9543306d2d3935740abb7" + integrity sha512-O7QnmOXYKVtPrfYzMolrCTfkezCJS9+ljLdKW/+DCvRsc3UAz+sbH6Xcsv7p30+0OwUbeWfUDAQE0vpabZ3QLg== dependencies: "@eslint-community/regexpp" "^4.10.0" - "@typescript-eslint/scope-manager" "8.49.0" - "@typescript-eslint/type-utils" "8.49.0" - "@typescript-eslint/utils" "8.49.0" - "@typescript-eslint/visitor-keys" "8.49.0" + "@typescript-eslint/scope-manager" "8.50.0" + "@typescript-eslint/type-utils" "8.50.0" + "@typescript-eslint/utils" "8.50.0" + "@typescript-eslint/visitor-keys" "8.50.0" ignore "^7.0.0" natural-compare "^1.4.0" ts-api-utils "^2.1.0" "@typescript-eslint/parser@^8.38.0": - version "8.49.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-8.49.0.tgz#0ede412d59e99239b770f0f08c76c42fba717fa2" - integrity sha512-N9lBGA9o9aqb1hVMc9hzySbhKibHmB+N3IpoShyV6HyQYRGIhlrO5rQgttypi+yEeKsKI4idxC8Jw6gXKD4THA== - dependencies: - "@typescript-eslint/scope-manager" "8.49.0" - "@typescript-eslint/types" "8.49.0" - "@typescript-eslint/typescript-estree" "8.49.0" - "@typescript-eslint/visitor-keys" "8.49.0" + version "8.50.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-8.50.0.tgz#c35b28f686dbe08e81b9d6208ebc08912549f4ba" + integrity sha512-6/cmF2piao+f6wSxUsJLZjck7OQsYyRtcOZS02k7XINSNlz93v6emM8WutDQSXnroG2xwYlEVHJI+cPA7CPM3Q== + dependencies: + "@typescript-eslint/scope-manager" "8.50.0" + "@typescript-eslint/types" "8.50.0" + "@typescript-eslint/typescript-estree" "8.50.0" + "@typescript-eslint/visitor-keys" "8.50.0" debug "^4.3.4" -"@typescript-eslint/project-service@8.49.0": - version "8.49.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/project-service/-/project-service-8.49.0.tgz#ce220525c88cb2d23792b391c07e14cb9697651a" - integrity sha512-/wJN0/DKkmRUMXjZUXYZpD1NEQzQAAn9QWfGwo+Ai8gnzqH7tvqS7oNVdTjKqOcPyVIdZdyCMoqN66Ia789e7g== +"@typescript-eslint/project-service@8.50.0": + version "8.50.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/project-service/-/project-service-8.50.0.tgz#1422366b7cc11fef8c6d87770884e608093423a4" + integrity sha512-Cg/nQcL1BcoTijEWyx4mkVC56r8dj44bFDvBdygifuS20f3OZCHmFbjF34DPSi07kwlFvqfv/xOLnJ5DquxSGQ== dependencies: - "@typescript-eslint/tsconfig-utils" "^8.49.0" - "@typescript-eslint/types" "^8.49.0" + "@typescript-eslint/tsconfig-utils" "^8.50.0" + "@typescript-eslint/types" "^8.50.0" debug "^4.3.4" -"@typescript-eslint/scope-manager@8.49.0": - version "8.49.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-8.49.0.tgz#a3496765b57fb48035d671174552e462e5bffa63" - integrity sha512-npgS3zi+/30KSOkXNs0LQXtsg9ekZ8OISAOLGWA/ZOEn0ZH74Ginfl7foziV8DT+D98WfQ5Kopwqb/PZOaIJGg== +"@typescript-eslint/scope-manager@8.50.0": + version "8.50.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-8.50.0.tgz#e0d6c838dc9044bc679724611b138cb34c81bddf" + integrity sha512-xCwfuCZjhIqy7+HKxBLrDVT5q/iq7XBVBXLn57RTIIpelLtEIZHXAF/Upa3+gaCpeV1NNS5Z9A+ID6jn50VD4A== dependencies: - "@typescript-eslint/types" "8.49.0" - "@typescript-eslint/visitor-keys" "8.49.0" + "@typescript-eslint/types" "8.50.0" + "@typescript-eslint/visitor-keys" "8.50.0" -"@typescript-eslint/tsconfig-utils@8.49.0", "@typescript-eslint/tsconfig-utils@^8.49.0": - version "8.49.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.49.0.tgz#857777c8e35dd1e564505833d8043f544442fbf4" - integrity sha512-8prixNi1/6nawsRYxet4YOhnbW+W9FK/bQPxsGB1D3ZrDzbJ5FXw5XmzxZv82X3B+ZccuSxo/X8q9nQ+mFecWA== +"@typescript-eslint/tsconfig-utils@8.50.0", "@typescript-eslint/tsconfig-utils@^8.50.0": + version "8.50.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.50.0.tgz#5c17537ad4c8a13bf6d7393035edaf91a1e13191" + integrity sha512-vxd3G/ybKTSlm31MOA96gqvrRGv9RJ7LGtZCn2Vrc5htA0zCDvcMqUkifcjrWNNKXHUU3WCkYOzzVSFBd0wa2w== -"@typescript-eslint/type-utils@8.49.0": - version "8.49.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-8.49.0.tgz#d8118a0c1896a78a22f01d3c176e9945409b085b" - integrity sha512-KTExJfQ+svY8I10P4HdxKzWsvtVnsuCifU5MvXrRwoP2KOlNZ9ADNEWWsQTJgMxLzS5VLQKDjkCT/YzgsnqmZg== +"@typescript-eslint/type-utils@8.50.0": + version "8.50.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-8.50.0.tgz#feb6f54f876980a258b14f1cb033f54fc545d37b" + integrity sha512-7OciHT2lKCewR0mFoBrvZJ4AXTMe/sYOe87289WAViOocEmDjjv8MvIOT2XESuKj9jp8u3SZYUSh89QA4S1kQw== dependencies: - "@typescript-eslint/types" "8.49.0" - "@typescript-eslint/typescript-estree" "8.49.0" - "@typescript-eslint/utils" "8.49.0" + "@typescript-eslint/types" "8.50.0" + "@typescript-eslint/typescript-estree" "8.50.0" + "@typescript-eslint/utils" "8.50.0" debug "^4.3.4" ts-api-utils "^2.1.0" -"@typescript-eslint/types@8.49.0", "@typescript-eslint/types@^8.49.0": - version "8.49.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-8.49.0.tgz#c1bd3ebf956d9e5216396349ca23c58d74f06aee" - integrity sha512-e9k/fneezorUo6WShlQpMxXh8/8wfyc+biu6tnAqA81oWrEic0k21RHzP9uqqpyBBeBKu4T+Bsjy9/b8u7obXQ== +"@typescript-eslint/types@8.50.0", "@typescript-eslint/types@^8.50.0": + version "8.50.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-8.50.0.tgz#ad8f1ad88ae0096f548c9cdf60da9b92832db96e" + integrity sha512-iX1mgmGrXdANhhITbpp2QQM2fGehBse9LbTf0sidWK6yg/NE+uhV5dfU1g6EYPlcReYmkE9QLPq/2irKAmtS9w== -"@typescript-eslint/typescript-estree@8.49.0": - version "8.49.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-8.49.0.tgz#99c5a53275197ccb4e849786dad68344e9924135" - integrity sha512-jrLdRuAbPfPIdYNppHJ/D0wN+wwNfJ32YTAm10eJVsFmrVpXQnDWBn8niCSMlWjvml8jsce5E/O+86IQtTbJWA== +"@typescript-eslint/typescript-estree@8.50.0": + version "8.50.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-8.50.0.tgz#2871d36617f81a127db905fa91b16d1a0251411b" + integrity sha512-W7SVAGBR/IX7zm1t70Yujpbk+zdPq/u4soeFSknWFdXIFuWsBGBOUu/Tn/I6KHSKvSh91OiMuaSnYp3mtPt5IQ== dependencies: - "@typescript-eslint/project-service" "8.49.0" - "@typescript-eslint/tsconfig-utils" "8.49.0" - "@typescript-eslint/types" "8.49.0" - "@typescript-eslint/visitor-keys" "8.49.0" + "@typescript-eslint/project-service" "8.50.0" + "@typescript-eslint/tsconfig-utils" "8.50.0" + "@typescript-eslint/types" "8.50.0" + "@typescript-eslint/visitor-keys" "8.50.0" debug "^4.3.4" minimatch "^9.0.4" semver "^7.6.0" tinyglobby "^0.2.15" ts-api-utils "^2.1.0" -"@typescript-eslint/utils@8.49.0": - version "8.49.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-8.49.0.tgz#43b3b91d30afd6f6114532cf0b228f1790f43aff" - integrity sha512-N3W7rJw7Rw+z1tRsHZbK395TWSYvufBXumYtEGzypgMUthlg0/hmCImeA8hgO2d2G4pd7ftpxxul2J8OdtdaFA== +"@typescript-eslint/utils@8.50.0": + version "8.50.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-8.50.0.tgz#107f20a5747eab5db988c5f6ad462b59851cdd1f" + integrity sha512-87KgUXET09CRjGCi2Ejxy3PULXna63/bMYv72tCAlDJC3Yqwln0HiFJ3VJMst2+mEtNtZu5oFvX4qJGjKsnAgg== dependencies: "@eslint-community/eslint-utils" "^4.7.0" - "@typescript-eslint/scope-manager" "8.49.0" - "@typescript-eslint/types" "8.49.0" - "@typescript-eslint/typescript-estree" "8.49.0" + "@typescript-eslint/scope-manager" "8.50.0" + "@typescript-eslint/types" "8.50.0" + "@typescript-eslint/typescript-estree" "8.50.0" -"@typescript-eslint/visitor-keys@8.49.0": - version "8.49.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-8.49.0.tgz#8e450cc502c0d285cad9e84d400cf349a85ced6c" - integrity sha512-LlKaciDe3GmZFphXIc79THF/YYBugZ7FS1pO581E/edlVVNbZKDy93evqmrfQ9/Y4uN0vVhX4iuchq26mK/iiA== +"@typescript-eslint/visitor-keys@8.50.0": + version "8.50.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-8.50.0.tgz#79d1c95474e08f844dbe13370715cfb9b7e21363" + integrity sha512-Xzmnb58+Db78gT/CCj/PVCvK+zxbnsw6F+O1oheYszJbBSdEjVhQi3C/Xttzxgi/GLmpvOggRs1RFpiJ8+c34Q== dependencies: - "@typescript-eslint/types" "8.49.0" + "@typescript-eslint/types" "8.50.0" eslint-visitor-keys "^4.2.1" "@webassemblyjs/ast@1.14.1", "@webassemblyjs/ast@^1.14.1": @@ -1379,9 +1379,9 @@ balanced-match@^1.0.0: integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== baseline-browser-mapping@^2.9.0: - version "2.9.5" - resolved "https://registry.yarnpkg.com/baseline-browser-mapping/-/baseline-browser-mapping-2.9.5.tgz#47f9549e0be1a84cd16651ac4c3b7d87a71408e6" - integrity sha512-D5vIoztZOq1XM54LUdttJVc96ggEsIfju2JBvht06pSzpckp3C7HReun67Bghzrtdsq9XdMGbSSB3v3GhMNmAA== + version "2.9.8" + resolved "https://registry.yarnpkg.com/baseline-browser-mapping/-/baseline-browser-mapping-2.9.8.tgz#04fb5c10ff9c7a1b04ac08cfdfc3b10942a8ac72" + integrity sha512-Y1fOuNDowLfgKOypdc9SPABfoWXuZHBOyCS4cD52IeZBhr4Md6CLLs6atcxVrzRmQ06E7hSlm5bHHApPKR/byA== brace-expansion@^1.1.7: version "1.1.12" @@ -1405,7 +1405,7 @@ braces@^3.0.3: dependencies: fill-range "^7.1.1" -browserslist@^4.24.0, browserslist@^4.26.3: +browserslist@^4.24.0, browserslist@^4.28.1: version "4.28.1" resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.28.1.tgz#7f534594628c53c63101079e27e40de490456a95" integrity sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA== @@ -1705,10 +1705,10 @@ emoji-regex@^8.0.0: resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== -enhanced-resolve@^5.0.0, enhanced-resolve@^5.17.3: - version "5.18.3" - resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.18.3.tgz#9b5f4c5c076b8787c78fe540392ce76a88855b44" - integrity sha512-d4lC8xfavMeBjzGr2vECC3fsGXziXZQyJxD868h2M/mBI3PwAuODxAkLkq5HYuvrPYcUtiLzsTo8U3PgX3Ocww== +enhanced-resolve@^5.0.0, enhanced-resolve@^5.17.4: + version "5.18.4" + resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.18.4.tgz#c22d33055f3952035ce6a144ce092447c525f828" + integrity sha512-LgQMM4WXU3QI+SYgEc2liRgznaD5ojbmY3sb8LxyguVkIg5FxdpTkvk72te2R38/TGKxH634oLxXRGY6d7AP+Q== dependencies: graceful-fs "^4.2.4" tapable "^2.2.0" @@ -1745,10 +1745,10 @@ es-errors@^1.3.0: resolved "https://registry.yarnpkg.com/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f" integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== -es-module-lexer@^1.2.1: - version "1.7.0" - resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-1.7.0.tgz#9159601561880a85f2734560a9099b2c31e5372a" - integrity sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA== +es-module-lexer@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-2.0.0.tgz#f657cd7a9448dcdda9c070a3cb75e5dc1e85f5b1" + integrity sha512-5POEcUuZybH7IdmGsD8wlf0AI55wMecM9rVBTI/qEAy2c1kTOm3DjFYjrBdI2K3BaJjJYfYFeRtM0t9ssnRuxw== es-object-atoms@^1.0.0, es-object-atoms@^1.1.1: version "1.1.1" @@ -1833,9 +1833,9 @@ eslint-visitor-keys@^4.2.1: integrity sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ== eslint@^9.32.0: - version "9.39.1" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-9.39.1.tgz#be8bf7c6de77dcc4252b5a8dcb31c2efff74a6e5" - integrity sha512-BhHmn2yNOFA9H9JmmIVKJmd288g9hrVRDkdoIgRCRuSySRUHH7r/DI6aAXW9T1WwUuY3DFgrcaqB+deURBLR5g== + version "9.39.2" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-9.39.2.tgz#cb60e6d16ab234c0f8369a3fe7cc87967faf4b6c" + integrity sha512-LEyamqS7W5HB3ujJyvi0HQK/dtVINZvd5mAAp9eT5S/ujByGjiZLCzPcHVzuXbpJDJF/cxwHlfceVUDZ2lnSTw== dependencies: "@eslint-community/eslint-utils" "^4.8.0" "@eslint-community/regexpp" "^4.12.1" @@ -1843,7 +1843,7 @@ eslint@^9.32.0: "@eslint/config-helpers" "^0.4.2" "@eslint/core" "^0.17.0" "@eslint/eslintrc" "^3.3.1" - "@eslint/js" "9.39.1" + "@eslint/js" "9.39.2" "@eslint/plugin-kit" "^0.4.1" "@humanfs/node" "^0.16.6" "@humanwhocodes/module-importer" "^1.0.1" @@ -3735,10 +3735,10 @@ tapable@^2.2.0, tapable@^2.3.0: resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.3.0.tgz#7e3ea6d5ca31ba8e078b560f0d83ce9a14aa8be6" integrity sha512-g9ljZiwki/LfxmQADO3dEY1CbpmXT5Hm2fJ+QaGKwSXUylMybePR7/67YW7jOrrvjEgL1Fmz5kzyAjWVWLlucg== -terser-webpack-plugin@^5.3.11: - version "5.3.15" - resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-5.3.15.tgz#0a26860b765eaffa8e840170aabc5b3a3f6f6bb9" - integrity sha512-PGkOdpRFK+rb1TzVz+msVhw4YMRT9txLF4kRqvJhGhCM324xuR3REBSHALN+l+sAhKUmz0aotnjp5D+P83mLhQ== +terser-webpack-plugin@^5.3.16: + version "5.3.16" + resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-5.3.16.tgz#741e448cc3f93d8026ebe4f7ef9e4afacfd56330" + integrity sha512-h9oBFCWrq78NyWWVcSwZarJkZ01c2AyGrzs1crmHZO3QUg9D61Wu4NPjBy69n7JqylFF5y+CsUZYmYEIZ3mR+Q== dependencies: "@jridgewell/trace-mapping" "^0.3.25" jest-worker "^27.4.5" @@ -3931,9 +3931,9 @@ universalify@^0.2.0: integrity sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg== update-browserslist-db@^1.2.0: - version "1.2.2" - resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.2.2.tgz#cfb4358afa08b3d5731a2ecd95eebf4ddef8033e" - integrity sha512-E85pfNzMQ9jpKkA7+TJAi4TJN+tBCuWh5rUcS/sv6cFi+1q9LYDwDI5dpUL0u/73EElyQ8d3TEaeW4sPedBqYA== + version "1.2.3" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz#64d76db58713136acbeb4c49114366cc6cc2e80d" + integrity sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w== dependencies: escalade "^3.2.0" picocolors "^1.1.1" @@ -4005,9 +4005,9 @@ webpack-sources@^3.3.3: integrity sha512-yd1RBzSGanHkitROoPFd6qsrxt+oFhg/129YzheDGqeustzX0vTZJZsSsQjVQC4yzBQ56K55XU8gaNCtIzOnTg== webpack@^5.97.1: - version "5.103.0" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.103.0.tgz#17a7c5a5020d5a3a37c118d002eade5ee2c6f3da" - integrity sha512-HU1JOuV1OavsZ+mfigY0j8d1TgQgbZ6M+J75zDkpEAwYeXjWSqrGJtgnPblJjd/mAyTNQ7ygw0MiKOn6etz8yw== + version "5.104.0" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.104.0.tgz#2b919a4f2526cdc42731142ae295019264fcfb76" + integrity sha512-5DeICTX8BVgNp6afSPYXAFjskIgWGlygQH58bcozPOXgo2r/6xx39Y1+cULZ3gTxUYQP88jmwLj2anu4Xaq84g== dependencies: "@types/eslint-scope" "^3.7.7" "@types/estree" "^1.0.8" @@ -4017,10 +4017,10 @@ webpack@^5.97.1: "@webassemblyjs/wasm-parser" "^1.14.1" acorn "^8.15.0" acorn-import-phases "^1.0.3" - browserslist "^4.26.3" + browserslist "^4.28.1" chrome-trace-event "^1.0.2" - enhanced-resolve "^5.17.3" - es-module-lexer "^1.2.1" + enhanced-resolve "^5.17.4" + es-module-lexer "^2.0.0" eslint-scope "5.1.1" events "^3.2.0" glob-to-regexp "^0.4.1" @@ -4031,7 +4031,7 @@ webpack@^5.97.1: neo-async "^2.6.2" schema-utils "^4.3.3" tapable "^2.3.0" - terser-webpack-plugin "^5.3.11" + terser-webpack-plugin "^5.3.16" watchpack "^2.4.4" webpack-sources "^3.3.3"