diff --git a/README.md b/README.md index 50bc46e..1073980 100644 --- a/README.md +++ b/README.md @@ -61,8 +61,8 @@ You can configure auth parameters passing them like this: ```js const configuration = OneSignal.createConfiguration({ - userAuthKey: '', // Organization key is only required for creating new apps and other top-level endpoints - restApiKey: '', // App rest api key required for most endpoints + userKey: '', // Organization key is only required for creating new apps and other top-level endpoints + appKey: '', // App REST API key required for most endpoints }); const client = new OneSignal.DefaultApi(configuration); @@ -76,8 +76,8 @@ parameter. You can then use this to modify your configuration object and create const response = await client.createApp(newapp); const configuration = OneSignal.createConfiguration({ - userAuthKey: '', - restApiKey: response.basic_auth_key, + userKey: '', // Organization key is only required for creating new apps and other top-level endpoints + appKey: response.basic_auth_key, }); const client = new OneSignal.DefaultApi(configuration); @@ -86,14 +86,14 @@ const client = new OneSignal.DefaultApi(configuration); --- ## API Reference -> See the full list of [API Endpoints](DefaultApi.md). +> See the full list of [API Endpoints](DefaultApi.MD). To make stateful changes requests should take on the following pattern: 1. create or get an object 2. make changes to that object 3. pass the object to the request function to make the changes -Examples of important OneSignal objects include `App`, `Notification`, `User`, and `Segment`. +Examples of important OneSignal objects include `App`, `Notification`, `Player`, and `Segment`. For example, see the section below on creating an app. First an app object is created via the instantiation of the `App` class. Then, the app instance is modified directly. Finally, we use the `client` to create the app via a remote request. diff --git a/apis/DefaultApi.ts b/apis/DefaultApi.ts index 53bc76e..9b5111d 100644 --- a/apis/DefaultApi.ts +++ b/apis/DefaultApi.ts @@ -73,7 +73,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Always add the One Signal telemetry to the request. - requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1"); + requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-02"); // Query Params if (appId !== undefined) { @@ -141,7 +141,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Always add the One Signal telemetry to the request. - requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1"); + requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-02"); // Body Params @@ -207,7 +207,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Always add the One Signal telemetry to the request. - requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1"); + requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-02"); // Body Params @@ -258,7 +258,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Always add the One Signal telemetry to the request. - requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1"); + requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-02"); // Body Params @@ -309,7 +309,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Always add the One Signal telemetry to the request. - requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1"); + requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-02"); // Body Params @@ -363,7 +363,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Always add the One Signal telemetry to the request. - requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1"); + requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-02"); // Body Params @@ -437,7 +437,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Always add the One Signal telemetry to the request. - requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1"); + requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-02"); // Body Params @@ -495,7 +495,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Always add the One Signal telemetry to the request. - requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1"); + requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-02"); // Body Params @@ -570,7 +570,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Always add the One Signal telemetry to the request. - requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1"); + requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-02"); let authMethod: SecurityAuthentication | undefined; @@ -619,7 +619,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Always add the One Signal telemetry to the request. - requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1"); + requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-02"); let authMethod: SecurityAuthentication | undefined; @@ -667,7 +667,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Always add the One Signal telemetry to the request. - requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1"); + requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-02"); let authMethod: SecurityAuthentication | undefined; @@ -723,7 +723,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Always add the One Signal telemetry to the request. - requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1"); + requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-02"); let authMethod: SecurityAuthentication | undefined; @@ -771,7 +771,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Always add the One Signal telemetry to the request. - requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1"); + requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-02"); // Query Params if (appId !== undefined) { @@ -819,7 +819,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Always add the One Signal telemetry to the request. - requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1"); + requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-02"); // Body Params @@ -886,7 +886,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Always add the One Signal telemetry to the request. - requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1"); + requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-02"); let authMethod: SecurityAuthentication | undefined; @@ -934,7 +934,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Always add the One Signal telemetry to the request. - requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1"); + requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-02"); let authMethod: SecurityAuthentication | undefined; @@ -975,7 +975,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Always add the One Signal telemetry to the request. - requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1"); + requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-02"); let authMethod: SecurityAuthentication | undefined; @@ -1008,7 +1008,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Always add the One Signal telemetry to the request. - requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1"); + requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-02"); let authMethod: SecurityAuthentication | undefined; @@ -1056,7 +1056,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Always add the One Signal telemetry to the request. - requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1"); + requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-02"); // Query Params if (appId !== undefined) { @@ -1109,7 +1109,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Always add the One Signal telemetry to the request. - requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1"); + requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-02"); // Body Params @@ -1166,7 +1166,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Always add the One Signal telemetry to the request. - requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1"); + requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-02"); // Query Params if (appId !== undefined) { @@ -1242,7 +1242,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Always add the One Signal telemetry to the request. - requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1"); + requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-02"); // Query Params if (outcomeNames !== undefined) { @@ -1312,7 +1312,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Always add the One Signal telemetry to the request. - requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1"); + requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-02"); // Query Params if (offset !== undefined) { @@ -1378,7 +1378,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Always add the One Signal telemetry to the request. - requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1"); + requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-02"); let authMethod: SecurityAuthentication | undefined; @@ -1433,7 +1433,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Always add the One Signal telemetry to the request. - requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1"); + requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-02"); // Body Params @@ -1500,7 +1500,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Always add the One Signal telemetry to the request. - requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1"); + requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-02"); // Query Params if (token !== undefined) { @@ -1553,7 +1553,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Always add the One Signal telemetry to the request. - requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1"); + requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-02"); // Body Params @@ -1620,7 +1620,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Always add the One Signal telemetry to the request. - requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1"); + requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-02"); // Body Params @@ -1686,7 +1686,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Always add the One Signal telemetry to the request. - requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1"); + requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-02"); // Body Params @@ -1760,7 +1760,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Always add the One Signal telemetry to the request. - requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1"); + requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-02"); // Body Params diff --git a/auth/auth.ts b/auth/auth.ts index e33ebb7..d831a0e 100644 --- a/auth/auth.ts +++ b/auth/auth.ts @@ -40,7 +40,7 @@ export class RestApiKeyAuthentication implements SecurityAuthentication { } public async applySecurityAuthentication(context: RequestContext) { - context.setHeaderParam("Authorization", "Bearer " + await this.tokenProvider.getToken()); + context.setHeaderParam("Authorization", "Key " + await this.tokenProvider.getToken()); } } @@ -60,7 +60,7 @@ export class UserAuthKeyAuthentication implements SecurityAuthentication { } public async applySecurityAuthentication(context: RequestContext) { - context.setHeaderParam("Authorization", "Bearer " + await this.tokenProvider.getToken()); + context.setHeaderParam("Authorization", "Key " + await this.tokenProvider.getToken()); } } diff --git a/models/BasicNotification.ts b/models/BasicNotification.ts index 288a730..111f62b 100644 --- a/models/BasicNotification.ts +++ b/models/BasicNotification.ts @@ -117,9 +117,13 @@ export class BasicNotification { */ 'app_id': string; /** - * Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it\'s important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true + * [DEPRECATED] Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it\'s important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true */ 'external_id'?: string; + /** + * Correlation and idempotency key. A request received with this parameter will first look for another notification with the same idempotency key. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it\'s important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same idempotency key will be sent again. See Idempotent Notification Requests for more details writeOnly: true + */ + 'idempotency_key'?: string; 'contents'?: LanguageStringMap; 'headings'?: LanguageStringMap; 'subtitle'?: LanguageStringMap; @@ -591,6 +595,12 @@ export class BasicNotification { "type": "string", "format": "" }, + { + "name": "idempotency_key", + "baseName": "idempotency_key", + "type": "string", + "format": "" + }, { "name": "contents", "baseName": "contents", diff --git a/models/BasicNotificationAllOf.ts b/models/BasicNotificationAllOf.ts index d48e5ff..acd06c9 100644 --- a/models/BasicNotificationAllOf.ts +++ b/models/BasicNotificationAllOf.ts @@ -66,9 +66,13 @@ export class BasicNotificationAllOf { */ 'app_id'?: string; /** - * Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it\'s important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true + * [DEPRECATED] Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it\'s important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true */ 'external_id'?: string; + /** + * Correlation and idempotency key. A request received with this parameter will first look for another notification with the same idempotency key. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it\'s important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same idempotency key will be sent again. See Idempotent Notification Requests for more details writeOnly: true + */ + 'idempotency_key'?: string; 'contents'?: LanguageStringMap; 'headings'?: LanguageStringMap; 'subtitle'?: LanguageStringMap; @@ -462,6 +466,12 @@ export class BasicNotificationAllOf { "type": "string", "format": "" }, + { + "name": "idempotency_key", + "baseName": "idempotency_key", + "type": "string", + "format": "" + }, { "name": "contents", "baseName": "contents", diff --git a/models/InvalidIdentifierError.ts b/models/InvalidIdentifierError.ts deleted file mode 100644 index 1653754..0000000 --- a/models/InvalidIdentifierError.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * OneSignal - * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com - * - * API Version: 5.0.1 - * Contact: devrel@onesignal.com - */ - -import { HttpFile } from '../http/http'; - -export class InvalidIdentifierError { - /** - * Returned if using include_aliases - */ - 'invalid_aliases'?: Array; - /** - * Returned if using include_subscription_ids and some were valid and others were not. - */ - 'invalid_player_ids'?: Array; - - static readonly discriminator: string | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ - { - "name": "invalid_aliases", - "baseName": "invalid_aliases", - "type": "Array", - "format": "" - }, - { - "name": "invalid_player_ids", - "baseName": "invalid_player_ids", - "type": "Array", - "format": "" - } ]; - - static getAttributeTypeMap() { - return InvalidIdentifierError.attributeTypeMap; - } - - public constructor() { - } -} - diff --git a/models/Notification.ts b/models/Notification.ts index 47b32c3..87b9db0 100644 --- a/models/Notification.ts +++ b/models/Notification.ts @@ -117,9 +117,13 @@ export class Notification { */ 'app_id': string; /** - * Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it\'s important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true + * [DEPRECATED] Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it\'s important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true */ 'external_id'?: string; + /** + * Correlation and idempotency key. A request received with this parameter will first look for another notification with the same idempotency key. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it\'s important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same idempotency key will be sent again. See Idempotent Notification Requests for more details writeOnly: true + */ + 'idempotency_key'?: string; 'contents'?: LanguageStringMap; 'headings'?: LanguageStringMap; 'subtitle'?: LanguageStringMap; @@ -595,6 +599,12 @@ export class Notification { "type": "string", "format": "" }, + { + "name": "idempotency_key", + "baseName": "idempotency_key", + "type": "string", + "format": "" + }, { "name": "contents", "baseName": "contents", diff --git a/models/NotificationWithMeta.ts b/models/NotificationWithMeta.ts index 77c9fa0..5c5a82a 100644 --- a/models/NotificationWithMeta.ts +++ b/models/NotificationWithMeta.ts @@ -121,9 +121,13 @@ export class NotificationWithMeta { */ 'app_id': string; /** - * Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it\'s important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true + * [DEPRECATED] Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it\'s important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true */ 'external_id'?: string; + /** + * Correlation and idempotency key. A request received with this parameter will first look for another notification with the same idempotency key. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it\'s important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same idempotency key will be sent again. See Idempotent Notification Requests for more details writeOnly: true + */ + 'idempotency_key'?: string; 'contents'?: LanguageStringMap; 'headings'?: LanguageStringMap; 'subtitle'?: LanguageStringMap; @@ -633,6 +637,12 @@ export class NotificationWithMeta { "type": "string", "format": "" }, + { + "name": "idempotency_key", + "baseName": "idempotency_key", + "type": "string", + "format": "" + }, { "name": "contents", "baseName": "contents", diff --git a/models/ObjectSerializer.ts b/models/ObjectSerializer.ts index 43090dc..c86b3df 100644 --- a/models/ObjectSerializer.ts +++ b/models/ObjectSerializer.ts @@ -19,7 +19,6 @@ export * from './GenericError'; export * from './GenericSuccessBoolResponse'; export * from './GetNotificationHistoryRequestBody'; export * from './GetSegmentsSuccessResponse'; -export * from './InvalidIdentifierError'; export * from './LanguageStringMap'; export * from './Notification'; export * from './NotificationAllOf'; @@ -54,8 +53,8 @@ export * from './UserIdentityBody'; export * from './WebButton'; import { App , AppApnsEnvEnum } from './App'; -import { BasicNotification , BasicNotificationTargetChannelEnum , BasicNotificationAggregationEnum } from './BasicNotification'; -import { BasicNotificationAllOf , BasicNotificationAllOfAggregationEnum } from './BasicNotificationAllOf'; +import { BasicNotification , BasicNotificationTargetChannelEnum , BasicNotificationAggregationEnum } from './BasicNotification'; +import { BasicNotificationAllOf , BasicNotificationAllOfAggregationEnum } from './BasicNotificationAllOf'; import { BasicNotificationAllOfAndroidBackgroundLayout } from './BasicNotificationAllOfAndroidBackgroundLayout'; import { Button } from './Button'; import { CreateNotificationSuccessResponse } from './CreateNotificationSuccessResponse'; @@ -74,14 +73,13 @@ import { GenericError } from './GenericError'; import { GenericSuccessBoolResponse } from './GenericSuccessBoolResponse'; import { GetNotificationHistoryRequestBody, GetNotificationHistoryRequestBodyEventsEnum } from './GetNotificationHistoryRequestBody'; import { GetSegmentsSuccessResponse } from './GetSegmentsSuccessResponse'; -import { InvalidIdentifierError } from './InvalidIdentifierError'; import { LanguageStringMap } from './LanguageStringMap'; -import { Notification , NotificationTargetChannelEnum , NotificationAggregationEnum } from './Notification'; +import { Notification , NotificationTargetChannelEnum , NotificationAggregationEnum } from './Notification'; import { NotificationAllOf } from './NotificationAllOf'; import { NotificationHistorySuccessResponse } from './NotificationHistorySuccessResponse'; import { NotificationSlice } from './NotificationSlice'; import { NotificationTarget , NotificationTargetTargetChannelEnum } from './NotificationTarget'; -import { NotificationWithMeta , NotificationWithMetaTargetChannelEnum , NotificationWithMetaAggregationEnum } from './NotificationWithMeta'; +import { NotificationWithMeta , NotificationWithMetaTargetChannelEnum , NotificationWithMetaAggregationEnum } from './NotificationWithMeta'; import { NotificationWithMetaAllOf } from './NotificationWithMetaAllOf'; import { Operator, OperatorOperatorEnum } from './Operator'; import { OutcomeData , OutcomeDataAggregationEnum } from './OutcomeData'; @@ -170,7 +168,6 @@ let typeMap: {[index: string]: any} = { "GenericSuccessBoolResponse": GenericSuccessBoolResponse, "GetNotificationHistoryRequestBody": GetNotificationHistoryRequestBody, "GetSegmentsSuccessResponse": GetSegmentsSuccessResponse, - "InvalidIdentifierError": InvalidIdentifierError, "LanguageStringMap": LanguageStringMap, "Notification": Notification, "NotificationAllOf": NotificationAllOf, diff --git a/models/RateLimiterError.ts b/models/RateLimiterError.ts deleted file mode 100644 index 003ab6e..0000000 --- a/models/RateLimiterError.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * OneSignal - * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com - * - * API Version: 1.2.2 - * Contact: devrel@onesignal.com - */ - -import { GenericErrorErrorsInner } from './GenericErrorErrorsInner'; -import { HttpFile } from '../http/http'; - -export class RateLimiterError { - 'errors'?: Array; - - static readonly discriminator: string | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ - { - "name": "errors", - "baseName": "errors", - "type": "Array", - "format": "" - } ]; - - static getAttributeTypeMap() { - return RateLimiterError.attributeTypeMap; - } - - public constructor() { - } -} - diff --git a/models/all.ts b/models/all.ts index a87e967..ee6bc32 100644 --- a/models/all.ts +++ b/models/all.ts @@ -19,7 +19,6 @@ export * from './GenericError' export * from './GenericSuccessBoolResponse' export * from './GetNotificationHistoryRequestBody' export * from './GetSegmentsSuccessResponse' -export * from './InvalidIdentifierError' export * from './LanguageStringMap' export * from './Notification' export * from './NotificationAllOf' diff --git a/package.json b/package.json index 2e9dc03..f5e4129 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "prepare": "npm run build" }, "dependencies": { - "@types/node": "^22.10.1", + "@types/node": "^22.15.3", "@types/node-fetch": "^2.5.7", "btoa": "^1.2.1", "es6-promise": "^4.2.4", diff --git a/types/ObjectParamAPI.ts b/types/ObjectParamAPI.ts index f045bc2..f8af6f3 100644 --- a/types/ObjectParamAPI.ts +++ b/types/ObjectParamAPI.ts @@ -23,7 +23,6 @@ import { GenericError } from '../models/GenericError'; import { GenericSuccessBoolResponse } from '../models/GenericSuccessBoolResponse'; import { GetNotificationHistoryRequestBody } from '../models/GetNotificationHistoryRequestBody'; import { GetSegmentsSuccessResponse } from '../models/GetSegmentsSuccessResponse'; -import { InvalidIdentifierError } from '../models/InvalidIdentifierError'; import { LanguageStringMap } from '../models/LanguageStringMap'; import { Notification } from '../models/Notification'; import { NotificationAllOf } from '../models/NotificationAllOf'; diff --git a/types/ObservableAPI.ts b/types/ObservableAPI.ts index 7092d5a..e15b995 100644 --- a/types/ObservableAPI.ts +++ b/types/ObservableAPI.ts @@ -24,7 +24,6 @@ import { GenericError } from '../models/GenericError'; import { GenericSuccessBoolResponse } from '../models/GenericSuccessBoolResponse'; import { GetNotificationHistoryRequestBody } from '../models/GetNotificationHistoryRequestBody'; import { GetSegmentsSuccessResponse } from '../models/GetSegmentsSuccessResponse'; -import { InvalidIdentifierError } from '../models/InvalidIdentifierError'; import { LanguageStringMap } from '../models/LanguageStringMap'; import { Notification } from '../models/Notification'; import { NotificationAllOf } from '../models/NotificationAllOf'; diff --git a/types/PromiseAPI.ts b/types/PromiseAPI.ts index 3a13cfb..cd1582f 100644 --- a/types/PromiseAPI.ts +++ b/types/PromiseAPI.ts @@ -23,7 +23,6 @@ import { GenericError } from '../models/GenericError'; import { GenericSuccessBoolResponse } from '../models/GenericSuccessBoolResponse'; import { GetNotificationHistoryRequestBody } from '../models/GetNotificationHistoryRequestBody'; import { GetSegmentsSuccessResponse } from '../models/GetSegmentsSuccessResponse'; -import { InvalidIdentifierError } from '../models/InvalidIdentifierError'; import { LanguageStringMap } from '../models/LanguageStringMap'; import { Notification } from '../models/Notification'; import { NotificationAllOf } from '../models/NotificationAllOf'; diff --git a/yarn.lock b/yarn.lock index edb50d5..e5beea0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10,12 +10,12 @@ "@types/node" "*" form-data "^4.0.0" -"@types/node@*", "@types/node@^22.10.1": - version "22.10.1" - resolved "https://registry.yarnpkg.com/@types/node/-/node-22.10.1.tgz#41ffeee127b8975a05f8c4f83fb89bcb2987d766" - integrity sha512-qKgsUwfHZV2WCWLAnVP1JqnpE6Im6h3Y0+fYgMTasNQ7V++CBX5OT1as0g0f+OyubbFqhf6XVNIsmN4IIhEgGQ== +"@types/node@*", "@types/node@^22.15.3": + version "22.15.3" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.15.3.tgz#b7fb9396a8ec5b5dfb1345d8ac2502060e9af68b" + integrity sha512-lX7HFZeHf4QG/J7tBZqrCAXwz9J5RD56Y6MpP0eJkka8p+K0RY/yBTW7CYFJ4VGCclxqOLKmiGP5juQc6MKgcw== dependencies: - undici-types "~6.20.0" + undici-types "~6.21.0" "@types/url-parse@1.4.4": version "1.4.4" @@ -32,7 +32,15 @@ btoa@^1.2.1: resolved "https://registry.yarnpkg.com/btoa/-/btoa-1.2.1.tgz#01a9909f8b2c93f6bf680ba26131eb30f7fa3d73" integrity sha512-SB4/MIGlsiVkMcHmT+pSmIPoNDoHg+7cMzmt3Uxt628MTz2487DKSqK/fuhFBrkuqrYv5UCEnACpF4dTFNKc/g== -combined-stream@^1.0.6, combined-stream@^1.0.8: +call-bind-apply-helpers@^1.0.1, call-bind-apply-helpers@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz#4b5428c222be985d79c3d82657479dbe0b59b2d6" + integrity sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ== + dependencies: + es-errors "^1.3.0" + function-bind "^1.1.2" + +combined-stream@^1.0.8: version "1.0.8" resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== @@ -44,36 +52,132 @@ delayed-stream@~1.0.0: resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== +dunder-proto@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/dunder-proto/-/dunder-proto-1.0.1.tgz#d7ae667e1dc83482f8b70fd0f6eefc50da30f58a" + integrity sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A== + dependencies: + call-bind-apply-helpers "^1.0.1" + es-errors "^1.3.0" + gopd "^1.2.0" + +es-define-property@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/es-define-property/-/es-define-property-1.0.1.tgz#983eb2f9a6724e9303f61addf011c72e09e0b0fa" + integrity sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g== + +es-errors@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f" + integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== + +es-object-atoms@^1.0.0, es-object-atoms@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/es-object-atoms/-/es-object-atoms-1.1.1.tgz#1c4f2c4837327597ce69d2ca190a7fdd172338c1" + integrity sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA== + dependencies: + es-errors "^1.3.0" + +es-set-tostringtag@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz#f31dbbe0c183b00a6d26eb6325c810c0fd18bd4d" + integrity sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA== + dependencies: + es-errors "^1.3.0" + get-intrinsic "^1.2.6" + has-tostringtag "^1.0.2" + hasown "^2.0.2" + es6-promise@^4.2.4: version "4.2.8" resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-4.2.8.tgz#4eb21594c972bc40553d276e510539143db53e0a" integrity sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w== form-data@^2.5.0: - version "2.5.2" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.5.2.tgz#dc653743d1de2fcc340ceea38079daf6e9069fd2" - integrity sha512-GgwY0PS7DbXqajuGf4OYlsrIu3zgxD6Vvql43IBhm6MahqA5SK/7mwhtNj2AdH2z35YR34ujJ7BN+3fFC3jP5Q== + version "2.5.3" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.5.3.tgz#f9bcf87418ce748513c0c3494bb48ec270c97acc" + integrity sha512-XHIrMD0NpDrNM/Ckf7XJiBbLl57KEhT3+i3yY+eWm+cqYZJQTZrKo8Y8AWKnuV5GT4scfuUGt9LzNoIx3dU1nQ== dependencies: asynckit "^0.4.0" - combined-stream "^1.0.6" - mime-types "^2.1.12" + combined-stream "^1.0.8" + es-set-tostringtag "^2.1.0" + mime-types "^2.1.35" safe-buffer "^5.2.1" form-data@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.1.tgz#ba1076daaaa5bfd7e99c1a6cb02aa0a5cff90d48" - integrity sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw== + version "4.0.2" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.2.tgz#35cabbdd30c3ce73deb2c42d3c8d3ed9ca51794c" + integrity sha512-hGfm/slu0ZabnNt4oaRZ6uREyfCj6P4fT/n6A1rGV+Z0VdGXjfOhVUpkn6qVQONHGIFwmveGXyDs75+nr6FM8w== dependencies: asynckit "^0.4.0" combined-stream "^1.0.8" + es-set-tostringtag "^2.1.0" mime-types "^2.1.12" +function-bind@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" + integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== + +get-intrinsic@^1.2.6: + version "1.3.0" + resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.3.0.tgz#743f0e3b6964a93a5491ed1bffaae054d7f98d01" + integrity sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ== + dependencies: + call-bind-apply-helpers "^1.0.2" + es-define-property "^1.0.1" + es-errors "^1.3.0" + es-object-atoms "^1.1.1" + function-bind "^1.1.2" + get-proto "^1.0.1" + gopd "^1.2.0" + has-symbols "^1.1.0" + hasown "^2.0.2" + math-intrinsics "^1.1.0" + +get-proto@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/get-proto/-/get-proto-1.0.1.tgz#150b3f2743869ef3e851ec0c49d15b1d14d00ee1" + integrity sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g== + dependencies: + dunder-proto "^1.0.1" + es-object-atoms "^1.0.0" + +gopd@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.2.0.tgz#89f56b8217bdbc8802bd299df6d7f1081d7e51a1" + integrity sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg== + +has-symbols@^1.0.3, has-symbols@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.1.0.tgz#fc9c6a783a084951d0b971fe1018de813707a338" + integrity sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ== + +has-tostringtag@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/has-tostringtag/-/has-tostringtag-1.0.2.tgz#2cdc42d40bef2e5b4eeab7c01a73c54ce7ab5abc" + integrity sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw== + dependencies: + has-symbols "^1.0.3" + +hasown@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003" + integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ== + dependencies: + function-bind "^1.1.2" + +math-intrinsics@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/math-intrinsics/-/math-intrinsics-1.1.0.tgz#a0dd74be81e2aa5c2f27e65ce283605ee4e2b7f9" + integrity sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g== + mime-db@1.52.0: version "1.52.0" resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== -mime-types@^2.1.12: +mime-types@^2.1.12, mime-types@^2.1.35: version "2.1.35" resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== @@ -112,10 +216,10 @@ typescript@^4.0: resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a" integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g== -undici-types@~6.20.0: - version "6.20.0" - resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.20.0.tgz#8171bf22c1f588d1554d55bf204bc624af388433" - integrity sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg== +undici-types@~6.21.0: + version "6.21.0" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.21.0.tgz#691d00af3909be93a7faa13be61b3a5b50ef12cb" + integrity sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ== url-parse@^1.4.3: version "1.5.10"