@onesignal/node-onesignal 2.1.0-beta1 → 5.0.0-alpha-02

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/DefaultApi.md +401 -778
  2. package/README.md +7 -7
  3. package/apis/DefaultApi.ts +671 -1316
  4. package/auth/auth.ts +14 -14
  5. package/configuration.ts +6 -6
  6. package/dist/apis/DefaultApi.d.ts +36 -63
  7. package/dist/apis/DefaultApi.js +654 -1212
  8. package/dist/apis/DefaultApi.js.map +1 -1
  9. package/dist/auth/auth.d.ts +6 -6
  10. package/dist/auth/auth.js +19 -19
  11. package/dist/auth/auth.js.map +1 -1
  12. package/dist/configuration.d.ts +2 -2
  13. package/dist/configuration.js +4 -4
  14. package/dist/configuration.js.map +1 -1
  15. package/dist/models/BasicNotification.d.ts +14 -12
  16. package/dist/models/BasicNotification.js +20 -20
  17. package/dist/models/BasicNotification.js.map +1 -1
  18. package/dist/models/BasicNotificationAllOf.d.ts +10 -8
  19. package/dist/models/BasicNotificationAllOf.js +17 -11
  20. package/dist/models/BasicNotificationAllOf.js.map +1 -1
  21. package/dist/models/CreateNotificationSuccessResponse.d.ts +1 -3
  22. package/dist/models/CreateNotificationSuccessResponse.js +1 -7
  23. package/dist/models/CreateNotificationSuccessResponse.js.map +1 -1
  24. package/dist/models/Filter.d.ts +6 -2
  25. package/dist/models/Filter.js +24 -0
  26. package/dist/models/Filter.js.map +1 -1
  27. package/dist/models/GenericError.d.ts +3 -2
  28. package/dist/models/GenericError.js +13 -1
  29. package/dist/models/GenericError.js.map +1 -1
  30. package/dist/models/InvalidIdentifierError.d.ts +1 -1
  31. package/dist/models/InvalidIdentifierError.js +2 -2
  32. package/dist/models/InvalidIdentifierError.js.map +1 -1
  33. package/dist/models/Notification.d.ts +14 -12
  34. package/dist/models/Notification.js +20 -20
  35. package/dist/models/Notification.js.map +1 -1
  36. package/dist/models/NotificationTarget.d.ts +4 -4
  37. package/dist/models/NotificationTarget.js +3 -9
  38. package/dist/models/NotificationTarget.js.map +1 -1
  39. package/dist/models/NotificationWithMeta.d.ts +14 -12
  40. package/dist/models/NotificationWithMeta.js +20 -20
  41. package/dist/models/NotificationWithMeta.js.map +1 -1
  42. package/dist/models/ObjectSerializer.d.ts +15 -32
  43. package/dist/models/ObjectSerializer.js +50 -102
  44. package/dist/models/ObjectSerializer.js.map +1 -1
  45. package/dist/models/Segment.d.ts +2 -2
  46. package/dist/models/Segment.js +1 -1
  47. package/dist/models/Segment.js.map +1 -1
  48. package/dist/models/TransferSubscriptionRequestBody.d.ts +1 -1
  49. package/dist/models/TransferSubscriptionRequestBody.js +1 -1
  50. package/dist/models/TransferSubscriptionRequestBody.js.map +1 -1
  51. package/dist/models/UpdateLiveActivityRequest.d.ts +8 -3
  52. package/dist/models/UpdateLiveActivityRequest.js +33 -3
  53. package/dist/models/UpdateLiveActivityRequest.js.map +1 -1
  54. package/dist/models/UpdateLiveActivitySuccessResponse.d.ts +1 -3
  55. package/dist/models/UpdateLiveActivitySuccessResponse.js +2 -8
  56. package/dist/models/UpdateLiveActivitySuccessResponse.js.map +1 -1
  57. package/dist/models/User.d.ts +3 -5
  58. package/dist/models/User.js +2 -8
  59. package/dist/models/User.js.map +1 -1
  60. package/dist/models/all.d.ts +15 -32
  61. package/dist/models/all.js +15 -32
  62. package/dist/models/all.js.map +1 -1
  63. package/dist/types/ObjectParamAPI.d.ts +52 -102
  64. package/dist/types/ObjectParamAPI.js +26 -47
  65. package/dist/types/ObjectParamAPI.js.map +1 -1
  66. package/dist/types/ObservableAPI.d.ts +25 -45
  67. package/dist/types/ObservableAPI.js +82 -250
  68. package/dist/types/ObservableAPI.js.map +1 -1
  69. package/dist/types/PromiseAPI.d.ts +25 -45
  70. package/dist/types/PromiseAPI.js +32 -60
  71. package/dist/types/PromiseAPI.js.map +1 -1
  72. package/models/App.ts +1 -1
  73. package/models/BasicNotification.ts +49 -46
  74. package/models/BasicNotificationAllOf.ts +34 -23
  75. package/models/BasicNotificationAllOfAndroidBackgroundLayout.ts +1 -1
  76. package/models/Button.ts +1 -1
  77. package/models/CreateNotificationSuccessResponse.ts +5 -13
  78. package/models/CreateSegmentConflictResponse.ts +1 -1
  79. package/models/CreateSegmentSuccessResponse.ts +1 -1
  80. package/models/CreateUserConflictResponse.ts +1 -1
  81. package/models/CreateUserConflictResponseErrorsInner.ts +1 -1
  82. package/models/CreateUserConflictResponseErrorsItemsMeta.ts +1 -1
  83. package/models/DeliveryData.ts +1 -1
  84. package/models/ExportEventsSuccessResponse.ts +1 -1
  85. package/models/{ExportPlayersRequestBody.ts → ExportSubscriptionsRequestBody.ts} +3 -3
  86. package/models/{ExportPlayersSuccessResponse.ts → ExportSubscriptionsSuccessResponse.ts} +3 -3
  87. package/models/Filter.ts +45 -5
  88. package/models/FilterExpression.ts +120 -0
  89. package/models/GenericError.ts +17 -4
  90. package/models/GenericErrorErrorsInner.ts +1 -1
  91. package/models/{DeletePlayerSuccessResponse.ts → GenericSuccessBoolResponse.ts} +3 -3
  92. package/models/{GetNotificationRequestBody.ts → GetNotificationHistoryRequestBody.ts} +6 -6
  93. package/models/{PlayerSlice.ts → GetSegmentsSuccessResponse.ts} +20 -8
  94. package/models/InvalidIdentifierError.ts +6 -6
  95. package/models/{StringMap.ts → LanguageStringMap.ts} +3 -3
  96. package/models/Notification.ts +49 -46
  97. package/models/NotificationAllOf.ts +1 -1
  98. package/models/NotificationHistorySuccessResponse.ts +1 -1
  99. package/models/NotificationSlice.ts +1 -1
  100. package/models/NotificationTarget.ts +17 -25
  101. package/models/NotificationWithMeta.ts +49 -46
  102. package/models/NotificationWithMetaAllOf.ts +1 -1
  103. package/models/ObjectSerializer.ts +57 -109
  104. package/models/Operator.ts +1 -1
  105. package/models/OutcomeData.ts +1 -1
  106. package/models/OutcomesData.ts +1 -1
  107. package/models/PlatformDeliveryData.ts +1 -1
  108. package/models/PlatformDeliveryDataEmailAllOf.ts +1 -1
  109. package/models/PlatformDeliveryDataSmsAllOf.ts +1 -1
  110. package/models/{InlineResponse202.ts → PropertiesBody.ts} +3 -3
  111. package/models/PropertiesDeltas.ts +1 -1
  112. package/models/PropertiesObject.ts +1 -1
  113. package/models/Purchase.ts +1 -1
  114. package/models/{CreatePlayerSuccessResponse.ts → RateLimitError.ts} +10 -10
  115. package/models/RateLimiterError.ts +1 -1
  116. package/models/Segment.ts +4 -4
  117. package/models/SegmentData.ts +94 -0
  118. package/models/SegmentNotificationTarget.ts +1 -1
  119. package/models/{SubscriptionObject.ts → Subscription.ts} +6 -6
  120. package/models/{InlineResponse201.ts → SubscriptionBody.ts} +6 -6
  121. package/models/{PlayerNotificationTarget.ts → SubscriptionNotificationTarget.ts} +21 -29
  122. package/models/TransferSubscriptionRequestBody.ts +3 -3
  123. package/models/UpdateLiveActivityRequest.ts +56 -9
  124. package/models/UpdateLiveActivitySuccessResponse.ts +4 -12
  125. package/models/UpdateUserRequest.ts +1 -1
  126. package/models/User.ts +6 -14
  127. package/models/{InlineResponse200.ts → UserIdentityBody.ts} +5 -5
  128. package/models/{BeginLiveActivityRequest.ts → WebButton.ts} +23 -9
  129. package/models/all.ts +15 -32
  130. package/package.json +1 -1
  131. package/types/ObjectParamAPI.ts +161 -357
  132. package/types/ObservableAPI.ts +108 -301
  133. package/types/PromiseAPI.ts +89 -184
  134. package/models/CancelNotificationSuccessResponse.ts +0 -31
  135. package/models/CreateSubscriptionRequestBody.ts +0 -39
  136. package/models/DeletePlayerNotFoundResponse.ts +0 -31
  137. package/models/DeleteSegmentNotFoundResponse.ts +0 -31
  138. package/models/DeleteSegmentSuccessResponse.ts +0 -31
  139. package/models/FilterExpressions.ts +0 -80
  140. package/models/InlineResponse2003.ts +0 -31
  141. package/models/Notification200Errors.ts +0 -45
  142. package/models/Player.ts +0 -291
  143. package/models/PlayerNotificationTargetIncludeAliases.ts +0 -31
  144. package/models/UpdatePlayerSuccessResponse.ts +0 -31
  145. package/models/UpdatePlayerTagsRequestBody.ts +0 -34
  146. package/models/UpdatePlayerTagsSuccessResponse.ts +0 -31
  147. package/models/UpdateSubscriptionRequestBody.ts +0 -32
  148. package/models/UserIdentityRequestBody.ts +0 -31
  149. package/models/UserIdentityResponse.ts +0 -31
  150. package/models/UserSubscriptionOptions.ts +0 -31
package/auth/auth.ts CHANGED
@@ -27,7 +27,7 @@ export interface TokenProvider {
27
27
  /**
28
28
  * Applies http authentication to the request context.
29
29
  */
30
- export class AppKeyAuthentication implements SecurityAuthentication {
30
+ export class RestApiKeyAuthentication implements SecurityAuthentication {
31
31
  /**
32
32
  * Configures the http authentication with the required details.
33
33
  *
@@ -36,7 +36,7 @@ export class AppKeyAuthentication implements SecurityAuthentication {
36
36
  public constructor(private tokenProvider: TokenProvider) {}
37
37
 
38
38
  public getName(): string {
39
- return "app_key";
39
+ return "rest_api_key";
40
40
  }
41
41
 
42
42
  public async applySecurityAuthentication(context: RequestContext) {
@@ -47,7 +47,7 @@ export class AppKeyAuthentication implements SecurityAuthentication {
47
47
  /**
48
48
  * Applies http authentication to the request context.
49
49
  */
50
- export class UserKeyAuthentication implements SecurityAuthentication {
50
+ export class UserAuthKeyAuthentication implements SecurityAuthentication {
51
51
  /**
52
52
  * Configures the http authentication with the required details.
53
53
  *
@@ -56,7 +56,7 @@ export class UserKeyAuthentication implements SecurityAuthentication {
56
56
  public constructor(private tokenProvider: TokenProvider) {}
57
57
 
58
58
  public getName(): string {
59
- return "user_key";
59
+ return "user_auth_key";
60
60
  }
61
61
 
62
62
  public async applySecurityAuthentication(context: RequestContext) {
@@ -67,8 +67,8 @@ export class UserKeyAuthentication implements SecurityAuthentication {
67
67
 
68
68
  export type AuthMethods = {
69
69
  "default"?: SecurityAuthentication,
70
- "app_key"?: SecurityAuthentication,
71
- "user_key"?: SecurityAuthentication
70
+ "rest_api_key"?: SecurityAuthentication,
71
+ "user_auth_key"?: SecurityAuthentication
72
72
  }
73
73
 
74
74
  export type ApiKeyConfiguration = string;
@@ -78,8 +78,8 @@ export type OAuth2Configuration = { accessToken: string };
78
78
 
79
79
  export type AuthMethodsConfiguration = {
80
80
  "default"?: SecurityAuthentication,
81
- "app_key"?: HttpBearerConfiguration,
82
- "user_key"?: HttpBearerConfiguration
81
+ "rest_api_key"?: HttpBearerConfiguration,
82
+ "user_auth_key"?: HttpBearerConfiguration
83
83
  }
84
84
 
85
85
  /**
@@ -94,15 +94,15 @@ export function configureAuthMethods(config: AuthMethodsConfiguration | undefine
94
94
  }
95
95
  authMethods["default"] = config["default"]
96
96
 
97
- if (config["app_key"]) {
98
- authMethods["app_key"] = new AppKeyAuthentication(
99
- config["app_key"]["tokenProvider"]
97
+ if (config["rest_api_key"]) {
98
+ authMethods["rest_api_key"] = new RestApiKeyAuthentication(
99
+ config["rest_api_key"]["tokenProvider"]
100
100
  );
101
101
  }
102
102
 
103
- if (config["user_key"]) {
104
- authMethods["user_key"] = new UserKeyAuthentication(
105
- config["user_key"]["tokenProvider"]
103
+ if (config["user_auth_key"]) {
104
+ authMethods["user_auth_key"] = new UserAuthKeyAuthentication(
105
+ config["user_auth_key"]["tokenProvider"]
106
106
  );
107
107
  }
108
108
 
package/configuration.ts CHANGED
@@ -39,8 +39,8 @@ export interface ConfigurationParameters {
39
39
  /**
40
40
  * Faster way to configure authentication methods
41
41
  */
42
- appKey?: string;
43
- userKey?: string;
42
+ restApiKey?: string;
43
+ userAuthKey?: string;
44
44
  }
45
45
 
46
46
  /**
@@ -58,14 +58,14 @@ export interface ConfigurationParameters {
58
58
  export function createConfiguration(conf: ConfigurationParameters): Configuration {
59
59
 
60
60
  const authMethods: AuthMethodsConfiguration = {
61
- 'app_key': {
61
+ 'rest_api_key': {
62
62
  tokenProvider: {
63
- getToken: () => conf.appKey || ''
63
+ getToken: () => conf.restApiKey || ''
64
64
  }
65
65
  },
66
- 'user_key': {
66
+ 'user_auth_key': {
67
67
  tokenProvider: {
68
- getToken: () => conf.userKey || ''
68
+ getToken: () => conf.userAuthKey || ''
69
69
  }
70
70
  },
71
71
  }
@@ -2,116 +2,89 @@ import { BaseAPIRequestFactory } from './baseapi';
2
2
  import { Configuration } from '../configuration';
3
3
  import { RequestContext, ResponseContext } from '../http/http';
4
4
  import { App } from '../models/App';
5
- import { BeginLiveActivityRequest } from '../models/BeginLiveActivityRequest';
6
- import { CancelNotificationSuccessResponse } from '../models/CancelNotificationSuccessResponse';
7
5
  import { CreateNotificationSuccessResponse } from '../models/CreateNotificationSuccessResponse';
8
- import { CreatePlayerSuccessResponse } from '../models/CreatePlayerSuccessResponse';
9
6
  import { CreateSegmentSuccessResponse } from '../models/CreateSegmentSuccessResponse';
10
- import { CreateSubscriptionRequestBody } from '../models/CreateSubscriptionRequestBody';
11
- import { DeletePlayerSuccessResponse } from '../models/DeletePlayerSuccessResponse';
12
- import { DeleteSegmentSuccessResponse } from '../models/DeleteSegmentSuccessResponse';
13
7
  import { ExportEventsSuccessResponse } from '../models/ExportEventsSuccessResponse';
14
- import { ExportPlayersRequestBody } from '../models/ExportPlayersRequestBody';
15
- import { ExportPlayersSuccessResponse } from '../models/ExportPlayersSuccessResponse';
16
- import { GetNotificationRequestBody } from '../models/GetNotificationRequestBody';
17
- import { InlineResponse200 } from '../models/InlineResponse200';
18
- import { InlineResponse2003 } from '../models/InlineResponse2003';
19
- import { InlineResponse201 } from '../models/InlineResponse201';
20
- import { InlineResponse202 } from '../models/InlineResponse202';
8
+ import { ExportSubscriptionsRequestBody } from '../models/ExportSubscriptionsRequestBody';
9
+ import { ExportSubscriptionsSuccessResponse } from '../models/ExportSubscriptionsSuccessResponse';
10
+ import { GenericSuccessBoolResponse } from '../models/GenericSuccessBoolResponse';
11
+ import { GetNotificationHistoryRequestBody } from '../models/GetNotificationHistoryRequestBody';
12
+ import { GetSegmentsSuccessResponse } from '../models/GetSegmentsSuccessResponse';
21
13
  import { Notification } from '../models/Notification';
22
14
  import { NotificationHistorySuccessResponse } from '../models/NotificationHistorySuccessResponse';
23
15
  import { NotificationSlice } from '../models/NotificationSlice';
24
16
  import { NotificationWithMeta } from '../models/NotificationWithMeta';
25
17
  import { OutcomesData } from '../models/OutcomesData';
26
- import { Player } from '../models/Player';
27
- import { PlayerSlice } from '../models/PlayerSlice';
18
+ import { PropertiesBody } from '../models/PropertiesBody';
28
19
  import { Segment } from '../models/Segment';
20
+ import { SubscriptionBody } from '../models/SubscriptionBody';
29
21
  import { TransferSubscriptionRequestBody } from '../models/TransferSubscriptionRequestBody';
30
22
  import { UpdateLiveActivityRequest } from '../models/UpdateLiveActivityRequest';
31
23
  import { UpdateLiveActivitySuccessResponse } from '../models/UpdateLiveActivitySuccessResponse';
32
- import { UpdatePlayerSuccessResponse } from '../models/UpdatePlayerSuccessResponse';
33
- import { UpdatePlayerTagsRequestBody } from '../models/UpdatePlayerTagsRequestBody';
34
- import { UpdatePlayerTagsSuccessResponse } from '../models/UpdatePlayerTagsSuccessResponse';
35
- import { UpdateSubscriptionRequestBody } from '../models/UpdateSubscriptionRequestBody';
36
24
  import { UpdateUserRequest } from '../models/UpdateUserRequest';
37
25
  import { User } from '../models/User';
38
- import { UserIdentityRequestBody } from '../models/UserIdentityRequestBody';
39
- import { UserIdentityResponse } from '../models/UserIdentityResponse';
26
+ import { UserIdentityBody } from '../models/UserIdentityBody';
40
27
  export declare class DefaultApiRequestFactory extends BaseAPIRequestFactory {
41
- beginLiveActivity(appId: string, activityId: string, beginLiveActivityRequest: BeginLiveActivityRequest, _options?: Configuration): Promise<RequestContext>;
42
28
  cancelNotification(appId: string, notificationId: string, _options?: Configuration): Promise<RequestContext>;
29
+ createAlias(appId: string, aliasLabel: string, aliasId: string, userIdentityBody: UserIdentityBody, _options?: Configuration): Promise<RequestContext>;
30
+ createAliasBySubscription(appId: string, subscriptionId: string, userIdentityBody: UserIdentityBody, _options?: Configuration): Promise<RequestContext>;
43
31
  createApp(app: App, _options?: Configuration): Promise<RequestContext>;
44
32
  createNotification(notification: Notification, _options?: Configuration): Promise<RequestContext>;
45
- createPlayer(player: Player, _options?: Configuration): Promise<RequestContext>;
46
- createSegments(appId: string, segment?: Segment, _options?: Configuration): Promise<RequestContext>;
47
- createSubscription(appId: string, aliasLabel: string, aliasId: string, createSubscriptionRequestBody: CreateSubscriptionRequestBody, _options?: Configuration): Promise<RequestContext>;
33
+ createSegment(appId: string, segment?: Segment, _options?: Configuration): Promise<RequestContext>;
34
+ createSubscription(appId: string, aliasLabel: string, aliasId: string, subscriptionBody: SubscriptionBody, _options?: Configuration): Promise<RequestContext>;
48
35
  createUser(appId: string, user: User, _options?: Configuration): Promise<RequestContext>;
49
36
  deleteAlias(appId: string, aliasLabel: string, aliasId: string, aliasLabelToDelete: string, _options?: Configuration): Promise<RequestContext>;
50
- deletePlayer(appId: string, playerId: string, _options?: Configuration): Promise<RequestContext>;
51
- deleteSegments(appId: string, segmentId: string, _options?: Configuration): Promise<RequestContext>;
37
+ deleteSegment(appId: string, segmentId: string, _options?: Configuration): Promise<RequestContext>;
52
38
  deleteSubscription(appId: string, subscriptionId: string, _options?: Configuration): Promise<RequestContext>;
53
39
  deleteUser(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Promise<RequestContext>;
54
- endLiveActivity(appId: string, activityId: string, subscriptionId: string, _options?: Configuration): Promise<RequestContext>;
55
40
  exportEvents(notificationId: string, appId: string, _options?: Configuration): Promise<RequestContext>;
56
- exportPlayers(appId: string, exportPlayersRequestBody?: ExportPlayersRequestBody, _options?: Configuration): Promise<RequestContext>;
57
- fetchAliases(appId: string, subscriptionId: string, _options?: Configuration): Promise<RequestContext>;
58
- fetchUser(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Promise<RequestContext>;
59
- fetchUserIdentity(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Promise<RequestContext>;
41
+ exportSubscriptions(appId: string, exportSubscriptionsRequestBody?: ExportSubscriptionsRequestBody, _options?: Configuration): Promise<RequestContext>;
42
+ getAliases(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Promise<RequestContext>;
43
+ getAliasesBySubscription(appId: string, subscriptionId: string, _options?: Configuration): Promise<RequestContext>;
60
44
  getApp(appId: string, _options?: Configuration): Promise<RequestContext>;
61
45
  getApps(_options?: Configuration): Promise<RequestContext>;
62
- getEligibleIams(appId: string, subscriptionId: string, _options?: Configuration): Promise<RequestContext>;
63
46
  getNotification(appId: string, notificationId: string, _options?: Configuration): Promise<RequestContext>;
64
- getNotificationHistory(notificationId: string, getNotificationRequestBody: GetNotificationRequestBody, _options?: Configuration): Promise<RequestContext>;
47
+ getNotificationHistory(notificationId: string, getNotificationHistoryRequestBody: GetNotificationHistoryRequestBody, _options?: Configuration): Promise<RequestContext>;
65
48
  getNotifications(appId: string, limit?: number, offset?: number, kind?: 0 | 1 | 3, _options?: Configuration): Promise<RequestContext>;
66
49
  getOutcomes(appId: string, outcomeNames: string, outcomeNames2?: string, outcomeTimeRange?: string, outcomePlatforms?: string, outcomeAttribution?: string, _options?: Configuration): Promise<RequestContext>;
67
- getPlayer(appId: string, playerId: string, emailAuthHash?: string, _options?: Configuration): Promise<RequestContext>;
68
- getPlayers(appId: string, limit?: number, offset?: number, _options?: Configuration): Promise<RequestContext>;
69
- identifyUserByAlias(appId: string, aliasLabel: string, aliasId: string, userIdentityRequestBody: UserIdentityRequestBody, _options?: Configuration): Promise<RequestContext>;
70
- identifyUserBySubscriptionId(appId: string, subscriptionId: string, userIdentityRequestBody: UserIdentityRequestBody, _options?: Configuration): Promise<RequestContext>;
50
+ getSegments(appId: string, offset?: number, limit?: number, _options?: Configuration): Promise<RequestContext>;
51
+ getUser(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Promise<RequestContext>;
71
52
  transferSubscription(appId: string, subscriptionId: string, transferSubscriptionRequestBody: TransferSubscriptionRequestBody, _options?: Configuration): Promise<RequestContext>;
53
+ unsubscribeEmailWithToken(appId: string, notificationId: string, token: string, _options?: Configuration): Promise<RequestContext>;
72
54
  updateApp(appId: string, app: App, _options?: Configuration): Promise<RequestContext>;
73
55
  updateLiveActivity(appId: string, activityId: string, updateLiveActivityRequest: UpdateLiveActivityRequest, _options?: Configuration): Promise<RequestContext>;
74
- updatePlayer(playerId: string, player: Player, _options?: Configuration): Promise<RequestContext>;
75
- updatePlayerTags(appId: string, externalUserId: string, updatePlayerTagsRequestBody?: UpdatePlayerTagsRequestBody, _options?: Configuration): Promise<RequestContext>;
76
- updateSubscription(appId: string, subscriptionId: string, updateSubscriptionRequestBody: UpdateSubscriptionRequestBody, _options?: Configuration): Promise<RequestContext>;
56
+ updateSubscription(appId: string, subscriptionId: string, subscriptionBody: SubscriptionBody, _options?: Configuration): Promise<RequestContext>;
77
57
  updateUser(appId: string, aliasLabel: string, aliasId: string, updateUserRequest: UpdateUserRequest, _options?: Configuration): Promise<RequestContext>;
78
58
  }
79
59
  export declare class DefaultApiResponseProcessor {
80
- beginLiveActivity(response: ResponseContext): Promise<void>;
81
- cancelNotification(response: ResponseContext): Promise<CancelNotificationSuccessResponse>;
60
+ cancelNotification(response: ResponseContext): Promise<GenericSuccessBoolResponse>;
61
+ createAlias(response: ResponseContext): Promise<UserIdentityBody>;
62
+ createAliasBySubscription(response: ResponseContext): Promise<UserIdentityBody>;
82
63
  createApp(response: ResponseContext): Promise<App>;
83
64
  createNotification(response: ResponseContext): Promise<CreateNotificationSuccessResponse>;
84
- createPlayer(response: ResponseContext): Promise<CreatePlayerSuccessResponse>;
85
- createSegments(response: ResponseContext): Promise<CreateSegmentSuccessResponse>;
86
- createSubscription(response: ResponseContext): Promise<InlineResponse201>;
65
+ createSegment(response: ResponseContext): Promise<CreateSegmentSuccessResponse>;
66
+ createSubscription(response: ResponseContext): Promise<SubscriptionBody>;
87
67
  createUser(response: ResponseContext): Promise<User>;
88
- deleteAlias(response: ResponseContext): Promise<InlineResponse200>;
89
- deletePlayer(response: ResponseContext): Promise<DeletePlayerSuccessResponse>;
90
- deleteSegments(response: ResponseContext): Promise<DeleteSegmentSuccessResponse>;
68
+ deleteAlias(response: ResponseContext): Promise<UserIdentityBody>;
69
+ deleteSegment(response: ResponseContext): Promise<GenericSuccessBoolResponse>;
91
70
  deleteSubscription(response: ResponseContext): Promise<void>;
92
71
  deleteUser(response: ResponseContext): Promise<void>;
93
- endLiveActivity(response: ResponseContext): Promise<void>;
94
72
  exportEvents(response: ResponseContext): Promise<ExportEventsSuccessResponse>;
95
- exportPlayers(response: ResponseContext): Promise<ExportPlayersSuccessResponse>;
96
- fetchAliases(response: ResponseContext): Promise<UserIdentityResponse>;
97
- fetchUser(response: ResponseContext): Promise<User>;
98
- fetchUserIdentity(response: ResponseContext): Promise<InlineResponse200>;
73
+ exportSubscriptions(response: ResponseContext): Promise<ExportSubscriptionsSuccessResponse>;
74
+ getAliases(response: ResponseContext): Promise<UserIdentityBody>;
75
+ getAliasesBySubscription(response: ResponseContext): Promise<UserIdentityBody>;
99
76
  getApp(response: ResponseContext): Promise<App>;
100
77
  getApps(response: ResponseContext): Promise<Array<App>>;
101
- getEligibleIams(response: ResponseContext): Promise<InlineResponse2003>;
102
78
  getNotification(response: ResponseContext): Promise<NotificationWithMeta>;
103
79
  getNotificationHistory(response: ResponseContext): Promise<NotificationHistorySuccessResponse>;
104
80
  getNotifications(response: ResponseContext): Promise<NotificationSlice>;
105
81
  getOutcomes(response: ResponseContext): Promise<OutcomesData>;
106
- getPlayer(response: ResponseContext): Promise<Player>;
107
- getPlayers(response: ResponseContext): Promise<PlayerSlice>;
108
- identifyUserByAlias(response: ResponseContext): Promise<InlineResponse200>;
109
- identifyUserBySubscriptionId(response: ResponseContext): Promise<UserIdentityResponse>;
110
- transferSubscription(response: ResponseContext): Promise<UserIdentityResponse>;
82
+ getSegments(response: ResponseContext): Promise<GetSegmentsSuccessResponse>;
83
+ getUser(response: ResponseContext): Promise<User>;
84
+ transferSubscription(response: ResponseContext): Promise<UserIdentityBody>;
85
+ unsubscribeEmailWithToken(response: ResponseContext): Promise<GenericSuccessBoolResponse>;
111
86
  updateApp(response: ResponseContext): Promise<App>;
112
87
  updateLiveActivity(response: ResponseContext): Promise<UpdateLiveActivitySuccessResponse>;
113
- updatePlayer(response: ResponseContext): Promise<UpdatePlayerSuccessResponse>;
114
- updatePlayerTags(response: ResponseContext): Promise<UpdatePlayerTagsSuccessResponse>;
115
88
  updateSubscription(response: ResponseContext): Promise<void>;
116
- updateUser(response: ResponseContext): Promise<InlineResponse202>;
89
+ updateUser(response: ResponseContext): Promise<PropertiesBody>;
117
90
  }