diff --git a/changelog.md b/changelog.md new file mode 100644 index 000000000..1528dddcc --- /dev/null +++ b/changelog.md @@ -0,0 +1,4 @@ +## 5.3.1 - 2026-01-05 +* SDK regeneration +* Unable to analyze changes with AI, incrementing PATCH version. + diff --git a/package.json b/package.json index d1477575d..74a153074 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "auth0", - "version": "5.3.0", + "version": "5.3.1", "private": false, "repository": { "type": "git", diff --git a/reference.md b/reference.md index 02103aeba..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, @@ -6818,77 +6820,6 @@ await client.refreshTokens.delete("id"); -
client.refreshTokens.update(id, { ...params }) -> Management.UpdateRefreshTokenResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Update a refresh token by its ID. - -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.refreshTokens.update("id"); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` — ID of the refresh token to update. - -
-
- -
-
- -**request:** `Management.UpdateRefreshTokenRequestContent` - -
-
- -
-
- -**requestOptions:** `RefreshTokensClient.RequestOptions` - -
-
-
-
- -
-
-
- ## ResourceServers
client.resourceServers.list({ ...params }) -> core.Page @@ -17484,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.
@@ -17563,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({}); ```
@@ -17579,7 +17447,7 @@ await client.guardian.factors.pushNotification.updateApnsProvider();
-**request:** `Management.UpdateGuardianFactorsProviderPushNotificationApnsRequestContent` +**request:** `Management.SetGuardianFactorsProviderPushNotificationApnsRequestContent`
@@ -17610,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.
@@ -17689,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({}); ```
@@ -17705,7 +17510,7 @@ await client.guardian.factors.pushNotification.updateFcmProvider();
-**request:** `Management.UpdateGuardianFactorsProviderPushNotificationFcmRequestContent` +**request:** `Management.SetGuardianFactorsProviderPushNotificationFcmRequestContent`
@@ -17736,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.
@@ -17815,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({}); ```
@@ -17831,7 +17573,7 @@ await client.guardian.factors.pushNotification.updateFcmv1Provider();
-**request:** `Management.UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent` +**request:** `Management.SetGuardianFactorsProviderPushNotificationFcmv1RequestContent`
@@ -20426,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.
@@ -20487,77 +20229,6 @@ await client.organizations.discoveryDomains.create("id", {
-
client.organizations.discoveryDomains.getByName(id, discovery_domain) -> Management.GetOrganizationDiscoveryDomainByNameResponseContent -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve details about a single organization discovery domain specified by domain name. - -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.organizations.discoveryDomains.getByName("id", "discovery_domain"); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` — ID of the organization. - -
-
- -
-
- -**discovery_domain:** `string` — Domain name of the discovery domain. - -
-
- -
-
- -**requestOptions:** `DiscoveryDomainsClient.RequestOptions` - -
-
-
-
- -
-
-
-
client.organizations.discoveryDomains.get(id, discovery_domain_id) -> Management.GetOrganizationDiscoveryDomainResponseContent
@@ -20712,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 01d004235..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. */ @@ -1148,14 +1154,6 @@ export interface UpdateSettingsRequestContent { webauthn_platform_first_factor?: boolean | null; } -/** - * @example - * {} - */ -export interface UpdateRefreshTokenRequestContent { - refresh_token_metadata?: (Management.RefreshTokenMetadata | undefined) | null; -} - /** * @example * { @@ -2551,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 * {} @@ -2856,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; } /** @@ -2866,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; } /** @@ -3236,8 +3178,6 @@ export interface CreateSelfServiceProfileSsoTicketRequestContent { ttl_sec?: number; domain_aliases_config?: Management.SelfServiceProfileSsoTicketDomainAliasesConfig; provisioning_config?: Management.SelfServiceProfileSsoTicketProvisioningConfig; - /** Indicates whether a verified domain should be used for organization discovery during authentication. */ - 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 d37d704e7..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 @@ -236,94 +236,6 @@ export class DiscoveryDomainsClient { ); } - /** - * Retrieve details about a single organization discovery domain specified by domain name. - * - * - * @param {string} id - ID of the organization. - * @param {string} discovery_domain - Domain name of the discovery domain. - * @param {DiscoveryDomainsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Management.BadRequestError} - * @throws {@link Management.UnauthorizedError} - * @throws {@link Management.ForbiddenError} - * @throws {@link Management.NotFoundError} - * @throws {@link Management.TooManyRequestsError} - * - * @example - * await client.organizations.discoveryDomains.getByName("id", "discovery_domain") - */ - public getByName( - id: string, - discovery_domain: string, - requestOptions?: DiscoveryDomainsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__getByName(id, discovery_domain, requestOptions)); - } - - private async __getByName( - id: string, - discovery_domain: string, - requestOptions?: DiscoveryDomainsClient.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, - `organizations/${core.url.encodePathParam(id)}/discovery-domains/name/${core.url.encodePathParam(discovery_domain)}`, - ), - method: "GET", - headers: _headers, - queryParameters: requestOptions?.queryParams, - 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.GetOrganizationDiscoveryDomainByNameResponseContent, - 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); - case 404: - throw new Management.NotFoundError(_response.error.body as unknown, _response.rawResponse); - case 429: - throw new Management.TooManyRequestsError(_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, - "GET", - "/organizations/{id}/discovery-domains/name/{discovery_domain}", - ); - } - /** * Retrieve details about a single organization discovery domain specified by ID. * @@ -493,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/resources/refreshTokens/client/Client.ts b/src/management/api/resources/refreshTokens/client/Client.ts index 77403d0ee..d2a357718 100644 --- a/src/management/api/resources/refreshTokens/client/Client.ts +++ b/src/management/api/resources/refreshTokens/client/Client.ts @@ -167,89 +167,4 @@ export class RefreshTokensClient { return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/refresh-tokens/{id}"); } - - /** - * Update a refresh token by its ID. - * - * @param {string} id - ID of the refresh token to update. - * @param {Management.UpdateRefreshTokenRequestContent} request - * @param {RefreshTokensClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Management.BadRequestError} - * @throws {@link Management.UnauthorizedError} - * @throws {@link Management.ForbiddenError} - * @throws {@link Management.NotFoundError} - * @throws {@link Management.TooManyRequestsError} - * - * @example - * await client.refreshTokens.update("id") - */ - public update( - id: string, - request: Management.UpdateRefreshTokenRequestContent = {}, - requestOptions?: RefreshTokensClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__update(id, request, requestOptions)); - } - - private async __update( - id: string, - request: Management.UpdateRefreshTokenRequestContent = {}, - requestOptions?: RefreshTokensClient.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, - `refresh-tokens/${core.url.encodePathParam(id)}`, - ), - method: "PATCH", - 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.UpdateRefreshTokenResponseContent, - 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); - case 404: - throw new Management.NotFoundError(_response.error.body as unknown, _response.rawResponse); - case 429: - throw new Management.TooManyRequestsError(_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, "PATCH", "/refresh-tokens/{id}"); - } } diff --git a/src/management/api/types/types.ts b/src/management/api/types/types.ts index 1a30d7062..5a1c7a0f1 100644 --- a/src/management/api/types/types.ts +++ b/src/management/api/types/types.ts @@ -540,9 +540,6 @@ export const OauthScope = { /** * Read Refresh Tokens */ ReadRefreshTokens: "read:refresh_tokens", - /** - * Update Refresh Tokens */ - UpdateRefreshTokens: "update:refresh_tokens", /** * Delete Refresh Tokens */ DeleteRefreshTokens: "delete:refresh_tokens", @@ -2690,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 = { @@ -3657,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; @@ -6778,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. */ @@ -11378,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. */ @@ -11477,7 +11447,6 @@ export interface GetRefreshTokenResponseContent { rotating?: boolean; /** A list of the resource server IDs associated to this refresh-token and their granted scopes */ resource_servers?: Management.RefreshTokenResourceServer[]; - refresh_token_metadata?: (Management.RefreshTokenMetadata | undefined) | null; last_exchanged_at?: Management.RefreshTokenDate; /** Accepts any additional properties */ [key: string]: any; @@ -13382,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. */ @@ -13873,11 +13840,6 @@ export const RefreshTokenExpirationTypeEnum = { export type RefreshTokenExpirationTypeEnum = (typeof RefreshTokenExpirationTypeEnum)[keyof typeof RefreshTokenExpirationTypeEnum]; -/** - * Metadata associated with the refresh token, in the form of an object with string values (max 255 chars). Maximum of 25 metadata properties allowed. - */ -export type RefreshTokenMetadata = (Record | null) | undefined; - export interface RefreshTokenResourceServer { /** Resource server ID */ audience?: string; @@ -13903,7 +13865,6 @@ export interface RefreshTokenResponseContent { rotating?: boolean; /** A list of the resource server IDs associated to this refresh-token and their granted scopes */ resource_servers?: Management.RefreshTokenResourceServer[]; - refresh_token_metadata?: (Management.RefreshTokenMetadata | undefined) | null; last_exchanged_at?: Management.RefreshTokenDate; /** Accepts any additional properties */ [key: string]: any; @@ -14788,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 { @@ -15901,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; @@ -15979,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. */ @@ -16012,28 +15976,6 @@ export interface UpdatePhoneTemplateResponseContent { disabled: boolean; } -export interface UpdateRefreshTokenResponseContent { - /** The ID of the refresh token */ - id?: string; - /** ID of the user which can be used when interacting with other APIs. */ - user_id?: string; - created_at?: Management.RefreshTokenDate; - idle_expires_at?: Management.RefreshTokenDate; - expires_at?: Management.RefreshTokenDate; - device?: Management.RefreshTokenDevice; - /** ID of the client application granted with this refresh token */ - client_id?: string; - session_id?: (Management.RefreshTokenSessionId | undefined) | null; - /** True if the token is a rotating refresh token */ - rotating?: boolean; - /** A list of the resource server IDs associated to this refresh-token and their granted scopes */ - resource_servers?: Management.RefreshTokenResourceServer[]; - refresh_token_metadata?: (Management.RefreshTokenMetadata | undefined) | null; - last_exchanged_at?: Management.RefreshTokenDate; - /** Accepts any additional properties */ - [key: string]: any; -} - export interface UpdateResourceServerResponseContent { /** ID of the API (resource server). */ id?: string; 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 22aacc378..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", }); @@ -304,127 +300,6 @@ describe("DiscoveryDomainsClient", () => { }).rejects.toThrow(Management.TooManyRequestsError); }); - test("getByName (1)", async () => { - const server = mockServerPool.createServer(); - const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); - - const rawResponseBody = { - id: "id", - domain: "domain", - status: "pending", - use_for_organization_discovery: true, - verification_txt: "verification_txt", - verification_host: "verification_host", - }; - server - .mockEndpoint() - .get("/organizations/id/discovery-domains/name/discovery_domain") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.organizations.discoveryDomains.getByName("id", "discovery_domain"); - expect(response).toEqual({ - id: "id", - domain: "domain", - status: "pending", - use_for_organization_discovery: true, - verification_txt: "verification_txt", - verification_host: "verification_host", - }); - }); - - test("getByName (2)", async () => { - const server = mockServerPool.createServer(); - const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); - - const rawResponseBody = { key: "value" }; - server - .mockEndpoint() - .get("/organizations/id/discovery-domains/name/discovery_domain") - .respondWith() - .statusCode(400) - .jsonBody(rawResponseBody) - .build(); - - await expect(async () => { - return await client.organizations.discoveryDomains.getByName("id", "discovery_domain"); - }).rejects.toThrow(Management.BadRequestError); - }); - - test("getByName (3)", async () => { - const server = mockServerPool.createServer(); - const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); - - const rawResponseBody = { key: "value" }; - server - .mockEndpoint() - .get("/organizations/id/discovery-domains/name/discovery_domain") - .respondWith() - .statusCode(401) - .jsonBody(rawResponseBody) - .build(); - - await expect(async () => { - return await client.organizations.discoveryDomains.getByName("id", "discovery_domain"); - }).rejects.toThrow(Management.UnauthorizedError); - }); - - test("getByName (4)", async () => { - const server = mockServerPool.createServer(); - const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); - - const rawResponseBody = { key: "value" }; - server - .mockEndpoint() - .get("/organizations/id/discovery-domains/name/discovery_domain") - .respondWith() - .statusCode(403) - .jsonBody(rawResponseBody) - .build(); - - await expect(async () => { - return await client.organizations.discoveryDomains.getByName("id", "discovery_domain"); - }).rejects.toThrow(Management.ForbiddenError); - }); - - test("getByName (5)", async () => { - const server = mockServerPool.createServer(); - const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); - - const rawResponseBody = { key: "value" }; - server - .mockEndpoint() - .get("/organizations/id/discovery-domains/name/discovery_domain") - .respondWith() - .statusCode(404) - .jsonBody(rawResponseBody) - .build(); - - await expect(async () => { - return await client.organizations.discoveryDomains.getByName("id", "discovery_domain"); - }).rejects.toThrow(Management.NotFoundError); - }); - - test("getByName (6)", async () => { - const server = mockServerPool.createServer(); - const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); - - const rawResponseBody = { key: "value" }; - server - .mockEndpoint() - .get("/organizations/id/discovery-domains/name/discovery_domain") - .respondWith() - .statusCode(429) - .jsonBody(rawResponseBody) - .build(); - - await expect(async () => { - return await client.organizations.discoveryDomains.getByName("id", "discovery_domain"); - }).rejects.toThrow(Management.TooManyRequestsError); - }); - test("get (1)", async () => { const server = mockServerPool.createServer(); const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); @@ -433,7 +308,6 @@ describe("DiscoveryDomainsClient", () => { id: "id", domain: "domain", status: "pending", - use_for_organization_discovery: true, verification_txt: "verification_txt", verification_host: "verification_host", }; @@ -450,7 +324,6 @@ describe("DiscoveryDomainsClient", () => { id: "id", domain: "domain", status: "pending", - use_for_organization_discovery: true, verification_txt: "verification_txt", verification_host: "verification_host", }); @@ -641,7 +514,6 @@ describe("DiscoveryDomainsClient", () => { id: "id", domain: "domain", status: "pending", - use_for_organization_discovery: true, verification_txt: "verification_txt", verification_host: "verification_host", }; @@ -659,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/tests/wire/refreshTokens.test.ts b/src/management/tests/wire/refreshTokens.test.ts index b80d99f67..83e1ff5f5 100644 --- a/src/management/tests/wire/refreshTokens.test.ts +++ b/src/management/tests/wire/refreshTokens.test.ts @@ -27,7 +27,6 @@ describe("RefreshTokensClient", () => { session_id: "session_id", rotating: true, resource_servers: [{ audience: "audience", scopes: "scopes" }], - refresh_token_metadata: { key: "value" }, last_exchanged_at: "2024-01-15T09:30:00Z", }; server.mockEndpoint().get("/refresh-tokens/id").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); @@ -56,9 +55,6 @@ describe("RefreshTokensClient", () => { scopes: "scopes", }, ], - refresh_token_metadata: { - key: "value", - }, last_exchanged_at: "2024-01-15T09:30:00Z", }); }); @@ -192,164 +188,4 @@ describe("RefreshTokensClient", () => { return await client.refreshTokens.delete("id"); }).rejects.toThrow(Management.TooManyRequestsError); }); - - test("update (1)", async () => { - const server = mockServerPool.createServer(); - const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); - const rawRequestBody = {}; - const rawResponseBody = { - id: "id", - user_id: "user_id", - created_at: "2024-01-15T09:30:00Z", - idle_expires_at: "2024-01-15T09:30:00Z", - expires_at: "2024-01-15T09:30:00Z", - device: { - initial_ip: "initial_ip", - initial_asn: "initial_asn", - initial_user_agent: "initial_user_agent", - last_ip: "last_ip", - last_asn: "last_asn", - last_user_agent: "last_user_agent", - }, - client_id: "client_id", - session_id: "session_id", - rotating: true, - resource_servers: [{ audience: "audience", scopes: "scopes" }], - refresh_token_metadata: { key: "value" }, - last_exchanged_at: "2024-01-15T09:30:00Z", - }; - server - .mockEndpoint() - .patch("/refresh-tokens/id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.refreshTokens.update("id"); - expect(response).toEqual({ - id: "id", - user_id: "user_id", - created_at: "2024-01-15T09:30:00Z", - idle_expires_at: "2024-01-15T09:30:00Z", - expires_at: "2024-01-15T09:30:00Z", - device: { - initial_ip: "initial_ip", - initial_asn: "initial_asn", - initial_user_agent: "initial_user_agent", - last_ip: "last_ip", - last_asn: "last_asn", - last_user_agent: "last_user_agent", - }, - client_id: "client_id", - session_id: "session_id", - rotating: true, - resource_servers: [ - { - audience: "audience", - scopes: "scopes", - }, - ], - refresh_token_metadata: { - key: "value", - }, - last_exchanged_at: "2024-01-15T09:30:00Z", - }); - }); - - test("update (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() - .patch("/refresh-tokens/id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(400) - .jsonBody(rawResponseBody) - .build(); - - await expect(async () => { - return await client.refreshTokens.update("id"); - }).rejects.toThrow(Management.BadRequestError); - }); - - test("update (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() - .patch("/refresh-tokens/id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(401) - .jsonBody(rawResponseBody) - .build(); - - await expect(async () => { - return await client.refreshTokens.update("id"); - }).rejects.toThrow(Management.UnauthorizedError); - }); - - test("update (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() - .patch("/refresh-tokens/id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(403) - .jsonBody(rawResponseBody) - .build(); - - await expect(async () => { - return await client.refreshTokens.update("id"); - }).rejects.toThrow(Management.ForbiddenError); - }); - - test("update (5)", async () => { - const server = mockServerPool.createServer(); - const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); - const rawRequestBody = {}; - const rawResponseBody = { key: "value" }; - server - .mockEndpoint() - .patch("/refresh-tokens/id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(404) - .jsonBody(rawResponseBody) - .build(); - - await expect(async () => { - return await client.refreshTokens.update("id"); - }).rejects.toThrow(Management.NotFoundError); - }); - - test("update (6)", async () => { - const server = mockServerPool.createServer(); - const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); - const rawRequestBody = {}; - const rawResponseBody = { key: "value" }; - server - .mockEndpoint() - .patch("/refresh-tokens/id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(429) - .jsonBody(rawResponseBody) - .build(); - - await expect(async () => { - return await client.refreshTokens.update("id"); - }).rejects.toThrow(Management.TooManyRequestsError); - }); }); diff --git a/src/management/tests/wire/users/refreshToken.test.ts b/src/management/tests/wire/users/refreshToken.test.ts index 852a53254..2620d8921 100644 --- a/src/management/tests/wire/users/refreshToken.test.ts +++ b/src/management/tests/wire/users/refreshToken.test.ts @@ -21,7 +21,6 @@ describe("RefreshTokenClient", () => { session_id: "session_id", rotating: true, resource_servers: [{}], - refresh_token_metadata: { key: "value" }, last_exchanged_at: "2024-01-15T09:30:00Z", }, ], @@ -47,9 +46,6 @@ describe("RefreshTokenClient", () => { session_id: "session_id", rotating: true, resource_servers: [{}], - refresh_token_metadata: { - key: "value", - }, last_exchanged_at: "2024-01-15T09:30:00Z", }, ], diff --git a/src/management/version.ts b/src/management/version.ts index 2b9b1a2cd..4ca19314f 100644 --- a/src/management/version.ts +++ b/src/management/version.ts @@ -1 +1 @@ -export const SDK_VERSION = "5.3.0"; +export const SDK_VERSION = "5.3.1"; diff --git a/yarn.lock b/yarn.lock index 45b11a937..961fd8037 100644 --- a/yarn.lock +++ b/yarn.lock @@ -284,14 +284,14 @@ dependencies: statuses "^2.0.1" -"@eslint-community/eslint-utils@^4.7.0", "@eslint-community/eslint-utils@^4.8.0": - version "4.9.0" - resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.9.0.tgz#7308df158e064f0dd8b8fdb58aa14fa2a7f913b3" - integrity sha512-ayVFHdtZ+hsq1t2Dy24wCmGXGe4q9Gu3smhLYALJrr473ZH27MsnSL+LKUlimp4BWJqMDMLmPpx/Q9R3OAlL4g== +"@eslint-community/eslint-utils@^4.8.0", "@eslint-community/eslint-utils@^4.9.1": + version "4.9.1" + resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz#4e90af67bc51ddee6cdef5284edf572ec376b595" + integrity sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ== dependencies: eslint-visitor-keys "^3.4.3" -"@eslint-community/regexpp@^4.10.0", "@eslint-community/regexpp@^4.12.1": +"@eslint-community/regexpp@^4.12.1", "@eslint-community/regexpp@^4.12.2": version "4.12.2" resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.12.2.tgz#bccdf615bcf7b6e8db830ec0b8d21c9a25de597b" integrity sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew== @@ -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== - 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" - ignore "^7.0.0" + version "8.52.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.52.0.tgz#9a9f1d2ee974ed77a8b1bda94e77123f697ee8b4" + integrity sha512-okqtOgqu2qmZJ5iN4TWlgfF171dZmx2FzdOv2K/ixL2LZWDStL8+JgQerI2sa8eAEfoydG9+0V96m7V+P8yE1Q== + dependencies: + "@eslint-community/regexpp" "^4.12.2" + "@typescript-eslint/scope-manager" "8.52.0" + "@typescript-eslint/type-utils" "8.52.0" + "@typescript-eslint/utils" "8.52.0" + "@typescript-eslint/visitor-keys" "8.52.0" + ignore "^7.0.5" natural-compare "^1.4.0" - ts-api-utils "^2.1.0" + ts-api-utils "^2.4.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" - 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== - dependencies: - "@typescript-eslint/tsconfig-utils" "^8.49.0" - "@typescript-eslint/types" "^8.49.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== - dependencies: - "@typescript-eslint/types" "8.49.0" - "@typescript-eslint/visitor-keys" "8.49.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/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== - dependencies: - "@typescript-eslint/types" "8.49.0" - "@typescript-eslint/typescript-estree" "8.49.0" - "@typescript-eslint/utils" "8.49.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/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== - 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" - debug "^4.3.4" - minimatch "^9.0.4" - semver "^7.6.0" + version "8.52.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-8.52.0.tgz#9fae9f5f13ebb1c8f31a50c34381bfd6bf96a05f" + integrity sha512-iIACsx8pxRnguSYhHiMn2PvhvfpopO9FXHyn1mG5txZIsAaB6F0KwbFnUQN3KCiG3Jcuad/Cao2FAs1Wp7vAyg== + dependencies: + "@typescript-eslint/scope-manager" "8.52.0" + "@typescript-eslint/types" "8.52.0" + "@typescript-eslint/typescript-estree" "8.52.0" + "@typescript-eslint/visitor-keys" "8.52.0" + debug "^4.4.3" + +"@typescript-eslint/project-service@8.52.0": + version "8.52.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/project-service/-/project-service-8.52.0.tgz#5fb4c16af4eda6d74c70cbc62f5d3f77b96e4cbe" + integrity sha512-xD0MfdSdEmeFa3OmVqonHi+Cciab96ls1UhIF/qX/O/gPu5KXD0bY9lu33jj04fjzrXHcuvjBcBC+D3SNSadaw== + dependencies: + "@typescript-eslint/tsconfig-utils" "^8.52.0" + "@typescript-eslint/types" "^8.52.0" + debug "^4.4.3" + +"@typescript-eslint/scope-manager@8.52.0": + version "8.52.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-8.52.0.tgz#9884ff690fad30380ccabfb08af1ac200af6b4e5" + integrity sha512-ixxqmmCcc1Nf8S0mS0TkJ/3LKcC8mruYJPOU6Ia2F/zUUR4pApW7LzrpU3JmtePbRUTes9bEqRc1Gg4iyRnDzA== + dependencies: + "@typescript-eslint/types" "8.52.0" + "@typescript-eslint/visitor-keys" "8.52.0" + +"@typescript-eslint/tsconfig-utils@8.52.0", "@typescript-eslint/tsconfig-utils@^8.52.0": + version "8.52.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.52.0.tgz#0296751c22ed05c83787a6eaec65ae221bd8b8ed" + integrity sha512-jl+8fzr/SdzdxWJznq5nvoI7qn2tNYV/ZBAEcaFMVXf+K6jmXvAFrgo/+5rxgnL152f//pDEAYAhhBAZGrVfwg== + +"@typescript-eslint/type-utils@8.52.0": + version "8.52.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-8.52.0.tgz#6e554113f8a074cf9b2faa818d2ebfccb867d6c5" + integrity sha512-JD3wKBRWglYRQkAtsyGz1AewDu3mTc7NtRjR/ceTyGoPqmdS5oCdx/oZMWD5Zuqmo6/MpsYs0wp6axNt88/2EQ== + dependencies: + "@typescript-eslint/types" "8.52.0" + "@typescript-eslint/typescript-estree" "8.52.0" + "@typescript-eslint/utils" "8.52.0" + debug "^4.4.3" + ts-api-utils "^2.4.0" + +"@typescript-eslint/types@8.52.0", "@typescript-eslint/types@^8.52.0": + version "8.52.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-8.52.0.tgz#1eb0a16b324824bc23b89d109a267c38c9213c4a" + integrity sha512-LWQV1V4q9V4cT4H5JCIx3481iIFxH1UkVk+ZkGGAV1ZGcjGI9IoFOfg3O6ywz8QqCDEp7Inlg6kovMofsNRaGg== + +"@typescript-eslint/typescript-estree@8.52.0": + version "8.52.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-8.52.0.tgz#2ad7721c671be2127951286cb7f44c4ce55b0591" + integrity sha512-XP3LClsCc0FsTK5/frGjolyADTh3QmsLp6nKd476xNI9CsSsLnmn4f0jrzNoAulmxlmNIpeXuHYeEQv61Q6qeQ== + dependencies: + "@typescript-eslint/project-service" "8.52.0" + "@typescript-eslint/tsconfig-utils" "8.52.0" + "@typescript-eslint/types" "8.52.0" + "@typescript-eslint/visitor-keys" "8.52.0" + debug "^4.4.3" + minimatch "^9.0.5" + semver "^7.7.3" tinyglobby "^0.2.15" - ts-api-utils "^2.1.0" + ts-api-utils "^2.4.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.52.0": + version "8.52.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-8.52.0.tgz#b249be8264899b80d996fa353b4b84da4662f962" + integrity sha512-wYndVMWkweqHpEpwPhwqE2lnD2DxC6WVLupU/DOt/0/v+/+iQbbzO3jOHjmBMnhu0DgLULvOaU4h4pwHYi2oRQ== 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" + "@eslint-community/eslint-utils" "^4.9.1" + "@typescript-eslint/scope-manager" "8.52.0" + "@typescript-eslint/types" "8.52.0" + "@typescript-eslint/typescript-estree" "8.52.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.52.0": + version "8.52.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-8.52.0.tgz#50361c48a6302676230fe498f80f6decce4bf673" + integrity sha512-ink3/Zofus34nmBsPjow63FP5M7IGff0RKAgqR6+CFpdk22M7aLwC9gOcLGYqr7MczLPzZVERW9hRog3O4n1sQ== dependencies: - "@typescript-eslint/types" "8.49.0" + "@typescript-eslint/types" "8.52.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== @@ -1627,7 +1627,7 @@ data-urls@^3.0.2: whatwg-mimetype "^3.0.0" whatwg-url "^11.0.0" -debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.4: +debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.4.3: version "4.4.3" resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.3.tgz#c6ae432d9bd9662582fce08709b038c58e9e3d6a" integrity sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA== @@ -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" @@ -1887,9 +1887,9 @@ esprima@^4.0.0, esprima@^4.0.1: integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== esquery@^1.5.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.6.0.tgz#91419234f804d852a82dceec3e16cdc22cf9dae7" - integrity sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg== + version "1.7.0" + resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.7.0.tgz#08d048f261f0ddedb5bae95f46809463d9c9496d" + integrity sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g== dependencies: estraverse "^5.1.0" @@ -2247,7 +2247,7 @@ ignore@^5.2.0: resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.2.tgz#3cd40e729f3643fd87cb04e50bf0eb722bc596f5" integrity sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g== -ignore@^7.0.0: +ignore@^7.0.5: version "7.0.5" resolved "https://registry.yarnpkg.com/ignore/-/ignore-7.0.5.tgz#4cb5f6cd7d4c7ab0365738c7aea888baa6d7efd9" integrity sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg== @@ -3080,7 +3080,7 @@ minimatch@^3.0.4, minimatch@^3.1.1, minimatch@^3.1.2: dependencies: brace-expansion "^1.1.7" -minimatch@^9.0.4, minimatch@^9.0.5: +minimatch@^9.0.5: version "9.0.5" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.5.tgz#d74f9dd6b57d83d8e98cfb82133b03978bc929e5" integrity sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow== @@ -3346,9 +3346,9 @@ prelude-ls@^1.2.1: integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== prettier-linter-helpers@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b" - integrity sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w== + version "1.0.1" + resolved "https://registry.yarnpkg.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.1.tgz#6a31f88a4bad6c7adda253de12ba4edaea80ebcd" + integrity sha512-SxToR7P8Y2lWmv/kTzVLC1t/GDI2WGjMwNhLLE9qtH8Q13C+aEmuRlzDst4Up4s0Wc8sF2M+J57iB3cMLqftfg== dependencies: fast-diff "^1.1.2" @@ -3531,7 +3531,7 @@ semver@^6.3.0, semver@^6.3.1: resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== -semver@^7.3.4, semver@^7.5.3, semver@^7.5.4, semver@^7.6.0, semver@^7.7.3: +semver@^7.3.4, semver@^7.5.3, semver@^7.5.4, semver@^7.7.3: version "7.7.3" resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.3.tgz#4b5f4143d007633a8dc671cd0a6ef9147b8bb946" integrity sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q== @@ -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" @@ -3821,10 +3821,10 @@ tr46@^3.0.0: dependencies: punycode "^2.1.1" -ts-api-utils@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-2.1.0.tgz#595f7094e46eed364c13fd23e75f9513d29baf91" - integrity sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ== +ts-api-utils@^2.4.0: + version "2.4.0" + resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-2.4.0.tgz#2690579f96d2790253bdcf1ca35d569ad78f9ad8" + integrity sha512-3TaVTaAv2gTiMB35i3FiGJaRfwb3Pyn/j3m/bfAvGe8FB7CF6u+LMYqYlDh7reQf7UNvoTvdfAqHGmPGOSsPmA== ts-jest@^29.3.4: version "29.4.6" @@ -3906,9 +3906,9 @@ uglify-js@^3.1.4: integrity sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ== undici-types@^6.15.0: - version "6.21.0" - resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.21.0.tgz#691d00af3909be93a7faa13be61b3a5b50ef12cb" - integrity sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ== + version "6.23.0" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.23.0.tgz#5291144c899c9c868968fba80fddd9c48def75f9" + integrity sha512-HN7GeXgBUs1StmY/vf9hIH11LrNI5SfqmFVtxKyp9Dhuf1P1cDSRlS+H1NJDaGOWzlI08q+NmiHgu11Vx6QnhA== undici-types@~5.26.4: version "5.26.5" @@ -3921,9 +3921,9 @@ undici-types@~7.16.0: integrity sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw== undici@^7.12.0: - version "7.16.0" - resolved "https://registry.yarnpkg.com/undici/-/undici-7.16.0.tgz#cb2a1e957726d458b536e3f076bf51f066901c1a" - integrity sha512-QEg3HPMll0o3t2ourKwOeUAZ159Kn9mx5pnzHRQO8+Wixmh88YdZRiIwat0iNzNNXn0yoEtXJqFpyW7eM8BV7g== + version "7.18.0" + resolved "https://registry.yarnpkg.com/undici/-/undici-7.18.0.tgz#93056910e5228d79d2b98f625ecefb2c45adf80f" + integrity sha512-CfPufgPFHCYu0W4h1NiKW9+tNJ39o3kWm7Cm29ET1enSJx+AERfz7A2wAr26aY0SZbYzZlTBQtcHy15o60VZfQ== universalify@^0.2.0: version "0.2.0" @@ -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"