Skip to content

Commit 2f1e0b8

Browse files
authored
chore: regen sdk (#14)
1 parent e4cea9c commit 2f1e0b8

File tree

147 files changed

+3602
-1224
lines changed

Some content is hidden

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

147 files changed

+3602
-1224
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"magicbell-java-user-client": minor
3+
---
4+
5+
Automatic minor version bump for changes in `magicbell-java-user-client`.

README.md

Lines changed: 42 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Welcome to the MagicbellUserClient SDK documentation. This guide will help you g
1111

1212
## About the API
1313

14-
OpenAPI 3.0.3 Specification for MagicBell API.
14+
OpenAPI 3.1.0 Specification for MagicBell API.
1515

1616
## Table of Contents
1717

@@ -116,8 +116,9 @@ Below is a comprehensive example demonstrating how to authenticate and call a si
116116
```java
117117
import com.magicbell.magicbelluserclient.MagicbellUserClient;
118118
import com.magicbell.magicbelluserclient.config.MagicbellUserClientConfig;
119-
import com.magicbell.magicbelluserclient.models.ArrayOfMetadataApnsTokens;
120-
import com.magicbell.magicbelluserclient.models.GetMobilePushApnsTokensParameters;
119+
import com.magicbell.magicbelluserclient.exceptions.ApiException;
120+
import com.magicbell.magicbelluserclient.models.GetInAppInboxTokensParameters;
121+
import com.magicbell.magicbelluserclient.models.InboxTokenResponseCollection;
121122

122123
public class Main {
123124

@@ -126,16 +127,21 @@ public class Main {
126127

127128
MagicbellUserClient magicbellUserClient = new MagicbellUserClient(config);
128129

129-
GetMobilePushApnsTokensParameters requestParameters = GetMobilePushApnsTokensParameters
130-
.builder()
131-
.pageSize(8L)
132-
.pageAfter("page[after]")
133-
.pageBefore("page[before]")
130+
GetInAppInboxTokensParameters requestParameters = GetInAppInboxTokensParameters.builder()
131+
.limit(10L)
132+
.startingAfter("starting_after")
133+
.endingBefore("ending_before")
134134
.build();
135135

136-
ArrayOfMetadataApnsTokens response = magicbellUserClient.channels.getMobilePushApnsTokens(requestParameters);
136+
try {
137+
InboxTokenResponseCollection response = magicbellUserClient.channels.getInAppInboxTokens(requestParameters);
137138

138-
System.out.println(response);
139+
System.out.println(response);
140+
} catch (ApiException e) {
141+
e.printStackTrace();
142+
}
143+
144+
System.exit(0);
139145
}
140146
}
141147

@@ -148,10 +154,11 @@ The SDK provides various services to interact with the API.
148154
<details>
149155
<summary>Below is a list of all available services with links to their detailed documentation:</summary>
150156

151-
| Name |
152-
| :---------------------------------------------------------------------------------------------------------------------------------------- |
153-
| ChannelsService: [[Java](documentation/services/ChannelsService.md)] [[Kotlin](documentation/services/ChannelsService.kt.md)] |
154-
| IntegrationsService: [[Java](documentation/services/IntegrationsService.md)] [[Kotlin](documentation/services/IntegrationsService.kt.md)] |
157+
| Name |
158+
| :------------------------------------------------------------------------------------------------------------------------------------------- |
159+
| ChannelsService: [[Java](documentation/services/ChannelsService.md)] [[Kotlin](documentation/services/ChannelsService.kt.md)] |
160+
| IntegrationsService: [[Java](documentation/services/IntegrationsService.md)] [[Kotlin](documentation/services/IntegrationsService.kt.md)] |
161+
| NotificationsService: [[Java](documentation/services/NotificationsService.md)] [[Kotlin](documentation/services/NotificationsService.kt.md)] |
155162

156163
</details>
157164

@@ -164,40 +171,46 @@ The SDK includes several models that represent the data structures used in API r
164171

165172
| Name | Description |
166173
| :--------------------------------------------------------------------------------------------- | :---------- |
167-
| [ArrayOfMetadataApnsTokens](documentation/models/ArrayOfMetadataApnsTokens.md) | |
168-
| [ApnsToken](documentation/models/ApnsToken.md) | |
169-
| [MetadataApnsToken](documentation/models/MetadataApnsToken.md) | |
174+
| [InboxTokenResponseCollection](documentation/models/InboxTokenResponseCollection.md) | |
175+
| [InboxToken](documentation/models/InboxToken.md) | |
176+
| [InboxTokenResponse](documentation/models/InboxTokenResponse.md) | |
170177
| [DiscardResult](documentation/models/DiscardResult.md) | |
171-
| [ArrayOfMetadataExpoTokens](documentation/models/ArrayOfMetadataExpoTokens.md) | |
178+
| [ApnsTokenCollection](documentation/models/ApnsTokenCollection.md) | |
179+
| [ApnsTokenPayload](documentation/models/ApnsTokenPayload.md) | |
180+
| [ApnsToken](documentation/models/ApnsToken.md) | |
181+
| [ExpoTokenCollection](documentation/models/ExpoTokenCollection.md) | |
182+
| [ExpoTokenPayload](documentation/models/ExpoTokenPayload.md) | |
172183
| [ExpoToken](documentation/models/ExpoToken.md) | |
173-
| [MetadataExpoToken](documentation/models/MetadataExpoToken.md) | |
174-
| [ArrayOfMetadataFcmTokens](documentation/models/ArrayOfMetadataFcmTokens.md) | |
184+
| [FcmTokenCollection](documentation/models/FcmTokenCollection.md) | |
185+
| [FcmTokenPayload](documentation/models/FcmTokenPayload.md) | |
175186
| [FcmToken](documentation/models/FcmToken.md) | |
176-
| [MetadataFcmToken](documentation/models/MetadataFcmToken.md) | |
177-
| [ArrayOfMetadataSlackTokens](documentation/models/ArrayOfMetadataSlackTokens.md) | |
187+
| [SlackTokenCollection](documentation/models/SlackTokenCollection.md) | |
188+
| [SlackTokenPayload](documentation/models/SlackTokenPayload.md) | |
178189
| [SlackToken](documentation/models/SlackToken.md) | |
179-
| [MetadataSlackToken](documentation/models/MetadataSlackToken.md) | |
180-
| [ArrayOfMetadataTeamsTokens](documentation/models/ArrayOfMetadataTeamsTokens.md) | |
190+
| [TeamsTokenCollection](documentation/models/TeamsTokenCollection.md) | |
191+
| [TeamsTokenPayload](documentation/models/TeamsTokenPayload.md) | |
181192
| [TeamsToken](documentation/models/TeamsToken.md) | |
182-
| [MetadataTeamsToken](documentation/models/MetadataTeamsToken.md) | |
183-
| [ArrayOfMetadataWebPushTokens](documentation/models/ArrayOfMetadataWebPushTokens.md) | |
193+
| [WebPushTokenCollection](documentation/models/WebPushTokenCollection.md) | |
194+
| [WebPushTokenPayload](documentation/models/WebPushTokenPayload.md) | |
184195
| [WebPushToken](documentation/models/WebPushToken.md) | |
185-
| [MetadataWebPushToken](documentation/models/MetadataWebPushToken.md) | |
186-
| [InboxConfig](documentation/models/InboxConfig.md) | |
196+
| [InboxConfigPayload](documentation/models/InboxConfigPayload.md) | |
187197
| [SlackInstallation](documentation/models/SlackInstallation.md) | |
188198
| [SlackFinishInstallResponse](documentation/models/SlackFinishInstallResponse.md) | |
189199
| [SlackStartInstall](documentation/models/SlackStartInstall.md) | |
190200
| [SlackStartInstallResponseContent](documentation/models/SlackStartInstallResponseContent.md) | |
191201
| [TemplatesInstallation](documentation/models/TemplatesInstallation.md) | |
192202
| [WebPushStartInstallationResponse](documentation/models/WebPushStartInstallationResponse.md) | |
203+
| [NotificationCollection](documentation/models/NotificationCollection.md) | |
193204
| [Links](documentation/models/Links.md) | |
194-
| [TokenMetadata](documentation/models/TokenMetadata.md) | |
205+
| [Notification](documentation/models/Notification.md) | |
206+
| [GetInAppInboxTokensParameters](documentation/models/GetInAppInboxTokensParameters.md) | |
195207
| [GetMobilePushApnsTokensParameters](documentation/models/GetMobilePushApnsTokensParameters.md) | |
196208
| [GetMobilePushExpoTokensParameters](documentation/models/GetMobilePushExpoTokensParameters.md) | |
197209
| [GetMobilePushFcmTokensParameters](documentation/models/GetMobilePushFcmTokensParameters.md) | |
198210
| [GetSlackTokensParameters](documentation/models/GetSlackTokensParameters.md) | |
199211
| [GetTeamsTokensParameters](documentation/models/GetTeamsTokensParameters.md) | |
200212
| [GetWebPushTokensParameters](documentation/models/GetWebPushTokensParameters.md) | |
213+
| [ListNotificationsParameters](documentation/models/ListNotificationsParameters.md) | |
201214

202215
</details>
203216

documentation/models/ApnsToken.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
| Name | Type | Required | Description |
66
| :------------- | :---------------------- | :------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
7+
| createdAt | String || |
78
| deviceToken | String || |
9+
| id | String || |
810
| appId | String || (Optional) The bundle identifier of the application that is registering this token. Use this field to override the default identifier specified in the projects APNs integration. |
11+
| discardedAt | String || |
912
| installationId | ApnsTokenInstallationId || (Optional) The APNs environment the token is registered for. If none is provided we assume the token is used in `production`. |
13+
| updatedAt | String || |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# ApnsTokenCollection
2+
3+
**Properties**
4+
5+
| Name | Type | Required | Description |
6+
| :---- | :---------------- | :------- | :---------- |
7+
| data | List\<ApnsToken\> || |
8+
| links | Links || |
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# ApnsTokenPayload
2+
3+
**Properties**
4+
5+
| Name | Type | Required | Description |
6+
| :------------- | :----------------------------- | :------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
7+
| deviceToken | String || |
8+
| appId | String || (Optional) The bundle identifier of the application that is registering this token. Use this field to override the default identifier specified in the projects APNs integration. |
9+
| installationId | ApnsTokenPayloadInstallationId || (Optional) The APNs environment the token is registered for. If none is provided we assume the token is used in `production`. |
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# ApnsTokenPayloadInstallationId
2+
3+
(Optional) The APNs environment the token is registered for. If none is provided we assume the token is used in `production`.
4+
5+
**Properties**
6+
7+
| Name | Type | Required | Description |
8+
| :---------- | :----- | :------- | :------------ |
9+
| DEVELOPMENT | String || "development" |
10+
| PRODUCTION | String || "production" |

documentation/models/ArrayOfMetadataApnsTokens.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

documentation/models/ArrayOfMetadataExpoTokens.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

documentation/models/ArrayOfMetadataFcmTokens.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

documentation/models/ArrayOfMetadataSlackTokens.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

documentation/models/ArrayOfMetadataWebPushTokens.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

documentation/models/ExpoToken.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@
44

55
| Name | Type | Required | Description |
66
| :---------- | :----- | :------- | :---------- |
7+
| createdAt | String || |
78
| deviceToken | String || |
9+
| id | String || |
10+
| discardedAt | String || |
11+
| updatedAt | String || |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# ExpoTokenCollection
2+
3+
**Properties**
4+
5+
| Name | Type | Required | Description |
6+
| :---- | :---------------- | :------- | :---------- |
7+
| data | List\<ExpoToken\> || |
8+
| links | Links || |
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# ExpoTokenPayload
2+
3+
**Properties**
4+
5+
| Name | Type | Required | Description |
6+
| :---------- | :----- | :------- | :---------- |
7+
| deviceToken | String || |

documentation/models/FcmToken.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,9 @@
44

55
| Name | Type | Required | Description |
66
| :------------- | :--------------------- | :------- | :---------- |
7+
| createdAt | String || |
78
| deviceToken | String || |
9+
| id | String || |
10+
| discardedAt | String || |
811
| installationId | FcmTokenInstallationId || |
12+
| updatedAt | String || |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# FcmTokenCollection
2+
3+
**Properties**
4+
5+
| Name | Type | Required | Description |
6+
| :---- | :--------------- | :------- | :---------- |
7+
| data | List\<FcmToken\> || |
8+
| links | Links || |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# FcmTokenPayload
2+
3+
**Properties**
4+
5+
| Name | Type | Required | Description |
6+
| :------------- | :---------------------------- | :------- | :---------- |
7+
| deviceToken | String || |
8+
| installationId | FcmTokenPayloadInstallationId || |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# FcmTokenPayloadInstallationId
2+
3+
**Properties**
4+
5+
| Name | Type | Required | Description |
6+
| :---------- | :----- | :------- | :------------ |
7+
| DEVELOPMENT | String || "development" |
8+
| PRODUCTION | String || "production" |
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# GetInAppInboxTokensParameters
2+
3+
**Properties**
4+
5+
| Name | Type | Required | Description |
6+
| :------------ | :----- | :------- | :---------- |
7+
| limit | Long || |
8+
| startingAfter | String || |
9+
| endingBefore | String || |

documentation/models/GetMobilePushApnsTokensParameters.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
**Properties**
44

5-
| Name | Type | Required | Description |
6-
| :--------- | :----- | :------- | :---------- |
7-
| pageSize | Long || |
8-
| pageAfter | String || |
9-
| pageBefore | String || |
5+
| Name | Type | Required | Description |
6+
| :------------ | :----- | :------- | :---------- |
7+
| limit | Long || |
8+
| startingAfter | String || |
9+
| endingBefore | String || |

documentation/models/GetMobilePushExpoTokensParameters.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
**Properties**
44

5-
| Name | Type | Required | Description |
6-
| :--------- | :----- | :------- | :---------- |
7-
| pageSize | Long || |
8-
| pageAfter | String || |
9-
| pageBefore | String || |
5+
| Name | Type | Required | Description |
6+
| :------------ | :----- | :------- | :---------- |
7+
| limit | Long || |
8+
| startingAfter | String || |
9+
| endingBefore | String || |

documentation/models/GetMobilePushFcmTokensParameters.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
**Properties**
44

5-
| Name | Type | Required | Description |
6-
| :--------- | :----- | :------- | :---------- |
7-
| pageSize | Long || |
8-
| pageAfter | String || |
9-
| pageBefore | String || |
5+
| Name | Type | Required | Description |
6+
| :------------ | :----- | :------- | :---------- |
7+
| limit | Long || |
8+
| startingAfter | String || |
9+
| endingBefore | String || |

0 commit comments

Comments
 (0)