Skip to content

Commit 361b147

Browse files
authored
Merge pull request #103 from OneSignal/api
Add v2.2.0-beta1 package updates
2 parents 04d9af3 + f06a88f commit 361b147

File tree

76 files changed

+278
-134
lines changed

Some content is hidden

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

76 files changed

+278
-134
lines changed

apis/DefaultApi.ts

Lines changed: 37 additions & 37 deletions
Large diffs are not rendered by default.

auth/auth.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class AppKeyAuthentication implements SecurityAuthentication {
4040
}
4141

4242
public async applySecurityAuthentication(context: RequestContext) {
43-
context.setHeaderParam("Authorization", "Bearer " + await this.tokenProvider.getToken());
43+
context.setHeaderParam("Authorization", "Key " + await this.tokenProvider.getToken());
4444
}
4545
}
4646

@@ -60,7 +60,7 @@ export class UserKeyAuthentication implements SecurityAuthentication {
6060
}
6161

6262
public async applySecurityAuthentication(context: RequestContext) {
63-
context.setHeaderParam("Authorization", "Bearer " + await this.tokenProvider.getToken());
63+
context.setHeaderParam("Authorization", "Key " + await this.tokenProvider.getToken());
6464
}
6565
}
6666

models/App.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OneSignal
33
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
44
*
5-
* API Version: 1.3.0
5+
* API Version: 1.4.0
66
* Contact: devrel@onesignal.com
77
*/
88

models/BasicNotification.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OneSignal
33
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
44
*
5-
* API Version: 1.3.0
5+
* API Version: 1.4.0
66
* Contact: devrel@onesignal.com
77
*/
88

@@ -122,9 +122,13 @@ export class BasicNotification {
122122
*/
123123
'app_id': string;
124124
/**
125-
* 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
125+
* [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
126126
*/
127127
'external_id'?: string;
128+
/**
129+
* 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
130+
*/
131+
'idempotency_key'?: string;
128132
'contents'?: StringMap;
129133
'headings'?: StringMap;
130134
'subtitle'?: StringMap;
@@ -600,6 +604,12 @@ export class BasicNotification {
600604
"type": "string",
601605
"format": ""
602606
},
607+
{
608+
"name": "idempotency_key",
609+
"baseName": "idempotency_key",
610+
"type": "string",
611+
"format": ""
612+
},
603613
{
604614
"name": "contents",
605615
"baseName": "contents",

models/BasicNotificationAllOf.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OneSignal
33
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
44
*
5-
* API Version: 1.3.0
5+
* API Version: 1.4.0
66
* Contact: devrel@onesignal.com
77
*/
88

@@ -69,9 +69,13 @@ export class BasicNotificationAllOf {
6969
*/
7070
'app_id'?: string;
7171
/**
72-
* 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
72+
* [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
7373
*/
7474
'external_id'?: string;
75+
/**
76+
* 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
77+
*/
78+
'idempotency_key'?: string;
7579
'contents'?: StringMap;
7680
'headings'?: StringMap;
7781
'subtitle'?: StringMap;
@@ -463,6 +467,12 @@ export class BasicNotificationAllOf {
463467
"type": "string",
464468
"format": ""
465469
},
470+
{
471+
"name": "idempotency_key",
472+
"baseName": "idempotency_key",
473+
"type": "string",
474+
"format": ""
475+
},
466476
{
467477
"name": "contents",
468478
"baseName": "contents",

models/BasicNotificationAllOfAndroidBackgroundLayout.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OneSignal
33
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
44
*
5-
* API Version: 1.3.0
5+
* API Version: 1.4.0
66
* Contact: devrel@onesignal.com
77
*/
88

models/BeginLiveActivityRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OneSignal
33
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
44
*
5-
* API Version: 1.3.0
5+
* API Version: 1.4.0
66
* Contact: devrel@onesignal.com
77
*/
88

models/Button.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OneSignal
33
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
44
*
5-
* API Version: 1.3.0
5+
* API Version: 1.4.0
66
* Contact: devrel@onesignal.com
77
*/
88

models/CancelNotificationSuccessResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OneSignal
33
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
44
*
5-
* API Version: 1.3.0
5+
* API Version: 1.4.0
66
* Contact: devrel@onesignal.com
77
*/
88

models/CreateNotificationSuccessResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OneSignal
33
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
44
*
5-
* API Version: 1.3.0
5+
* API Version: 1.4.0
66
* Contact: devrel@onesignal.com
77
*/
88

0 commit comments

Comments
 (0)