Skip to content

Commit 6688f1c

Browse files
MagicBellastigi
andauthored
chore: regen sdks (#459)
Automated PR to update the generated SDKs --------- Co-authored-by: Ullrich Schäfer <[email protected]>
1 parent a9f7b6a commit 6688f1c

File tree

175 files changed

+3355
-2499
lines changed

Some content is hidden

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

175 files changed

+3355
-2499
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'magicbell': minor
3+
---
4+
5+
Automatic minor version bump for changes in `magicbell`.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@magicbell/project-client': minor
3+
---
4+
5+
Automatic minor version bump for changes in `@magicbell/project-client`.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@magicbell/user-client': minor
3+
---
4+
5+
Automatic minor version bump for changes in `@magicbell/user-client`.

packages/in-app/src/components/internal/webpush.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ export class WebPushClient {
4040
if (!activeSubscription?.endpoint) return false;
4141
return (
4242
tokens.data?.data
43-
?.filter((x) => !x.metadata?.discardedAt)
43+
?.filter((x) => !x.discardedAt)
4444
.some((subscription) => {
45-
return subscription.data?.endpoint === activeSubscription.endpoint;
45+
return subscription.endpoint === activeSubscription.endpoint;
4646
}) ?? false
4747
);
4848
}
@@ -92,9 +92,9 @@ export class WebPushClient {
9292
void this.#client.channels
9393
.getWebPushTokens()
9494
.then(({ data }) => {
95-
const token = data?.data?.find((token) => token.data?.endpoint === endpoint);
95+
const token = data?.data?.find((token) => token.endpoint === endpoint);
9696
if (!token) return;
97-
return this.#client.channels.discardWebPushToken(String(token.metadata?.id));
97+
return this.#client.channels.discardWebPushToken(String(token.id));
9898
})
9999
.catch(() => void 0);
100100

packages/magicbell/src/schemas/users/notifications.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ export const ListUsersNotificationsResponseSchema = {
106106

107107
properties: {
108108
user: {
109-
nullable: false,
110109
type: 'object',
110+
nullable: false,
111111
additionalProperties: false,
112112

113113
properties: {

packages/project-client/README.md

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Welcome to the Client SDK documentation. This guide will help you get started wi
1111

1212
## About the API
1313

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

1616
## Table of Contents
1717

@@ -106,6 +106,7 @@ The SDK provides various services to interact with the API.
106106
| [EventsService](documentation/services/EventsService.md) |
107107
| [IntegrationsService](documentation/services/IntegrationsService.md) |
108108
| [JwtService](documentation/services/JwtService.md) |
109+
| [UsersService](documentation/services/UsersService.md) |
109110

110111
</details>
111112

@@ -120,21 +121,20 @@ The SDK includes several models that represent the data structures used in API r
120121
| :------------------------------------------------------------------------------------------- | :---------- |
121122
| [ArrayOfBroadcasts](documentation/models/ArrayOfBroadcasts.md) | |
122123
| [Broadcast](documentation/models/Broadcast.md) | |
123-
| [ProjectDeliveryConfig](documentation/models/ProjectDeliveryConfig.md) | |
124124
| [CategoryDeliveryConfig](documentation/models/CategoryDeliveryConfig.md) | |
125-
| [ArrayOfMetadataApnsTokens](documentation/models/ArrayOfMetadataApnsTokens.md) | |
126-
| [MetadataApnsToken](documentation/models/MetadataApnsToken.md) | |
125+
| [ArrayOfApnsTokenResponses](documentation/models/ArrayOfApnsTokenResponses.md) | |
126+
| [ApnsTokenResponse](documentation/models/ApnsTokenResponse.md) | |
127127
| [DiscardResult](documentation/models/DiscardResult.md) | |
128-
| [ArrayOfMetadataExpoTokens](documentation/models/ArrayOfMetadataExpoTokens.md) | |
129-
| [MetadataExpoToken](documentation/models/MetadataExpoToken.md) | |
130-
| [ArrayOfMetadataFcmTokens](documentation/models/ArrayOfMetadataFcmTokens.md) | |
131-
| [MetadataFcmToken](documentation/models/MetadataFcmToken.md) | |
132-
| [ArrayOfMetadataSlackTokens](documentation/models/ArrayOfMetadataSlackTokens.md) | |
133-
| [MetadataSlackToken](documentation/models/MetadataSlackToken.md) | |
134-
| [ArrayOfMetadataTeamsTokens](documentation/models/ArrayOfMetadataTeamsTokens.md) | |
135-
| [MetadataTeamsToken](documentation/models/MetadataTeamsToken.md) | |
136-
| [ArrayOfMetadataWebPushTokens](documentation/models/ArrayOfMetadataWebPushTokens.md) | |
137-
| [MetadataWebPushToken](documentation/models/MetadataWebPushToken.md) | |
128+
| [ArrayOfExpoTokenResponses](documentation/models/ArrayOfExpoTokenResponses.md) | |
129+
| [ExpoTokenResponse](documentation/models/ExpoTokenResponse.md) | |
130+
| [ArrayOfFcmTokenResponses](documentation/models/ArrayOfFcmTokenResponses.md) | |
131+
| [FcmTokenResponse](documentation/models/FcmTokenResponse.md) | |
132+
| [ArrayOfSlackTokenResponses](documentation/models/ArrayOfSlackTokenResponses.md) | |
133+
| [SlackTokenResponse](documentation/models/SlackTokenResponse.md) | |
134+
| [ArrayOfTeamsTokenResponses](documentation/models/ArrayOfTeamsTokenResponses.md) | |
135+
| [TeamsTokenResponse](documentation/models/TeamsTokenResponse.md) | |
136+
| [ArrayOfWebPushTokenResponses](documentation/models/ArrayOfWebPushTokenResponses.md) | |
137+
| [WebPushTokenResponse](documentation/models/WebPushTokenResponse.md) | |
138138
| [ArrayOfEvents](documentation/models/ArrayOfEvents.md) | |
139139
| [ArrayOfIntegrationObjects](documentation/models/ArrayOfIntegrationObjects.md) | |
140140
| [ArrayOfApnsConfigObjects](documentation/models/ArrayOfApnsConfigObjects.md) | |
@@ -171,14 +171,8 @@ The SDK includes several models that represent the data structures used in API r
171171
| [AccessToken](documentation/models/AccessToken.md) | |
172172
| [DiscardTokenResponse](documentation/models/DiscardTokenResponse.md) | |
173173
| [CreateUserTokenRequest](documentation/models/CreateUserTokenRequest.md) | |
174+
| [ArrayOfUsers](documentation/models/ArrayOfUsers.md) | |
174175
| [Links](documentation/models/Links.md) | |
175-
| [ApnsToken](documentation/models/ApnsToken.md) | |
176-
| [TokenMetadata](documentation/models/TokenMetadata.md) | |
177-
| [ExpoToken](documentation/models/ExpoToken.md) | |
178-
| [FcmToken](documentation/models/FcmToken.md) | |
179-
| [SlackToken](documentation/models/SlackToken.md) | |
180-
| [TeamsToken](documentation/models/TeamsToken.md) | |
181-
| [WebPushToken](documentation/models/WebPushToken.md) | |
182176
| [Event](documentation/models/Event.md) | |
183177
| [IntegrationObject](documentation/models/IntegrationObject.md) | |
184178
| [ApnsConfigObject](documentation/models/ApnsConfigObject.md) | |
@@ -197,5 +191,6 @@ The SDK includes several models that represent the data structures used in API r
197191
| [TwilioConfigObject](documentation/models/TwilioConfigObject.md) | |
198192
| [WebpushConfigObject](documentation/models/WebpushConfigObject.md) | |
199193
| [FetchTokensResponseToken](documentation/models/FetchTokensResponseToken.md) | |
194+
| [User](documentation/models/User.md) | |
200195

201196
</details>

packages/project-client/documentation/models/ApnsToken.md

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# ApnsTokenResponse
2+
3+
**Properties**
4+
5+
| Name | Type | Required | Description |
6+
| :------------- | :------------------------------ | :------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
7+
| createdAt | string || |
8+
| deviceToken | string || |
9+
| id | string || |
10+
| 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 || |
12+
| installationId | ApnsTokenResponseInstallationId || (Optional) The APNs environment the token is registered for. If none is provided we assume the token is used in `production`. |
13+
| updatedAt | string || |
14+
15+
# ApnsTokenResponseInstallationId
16+
17+
(Optional) The APNs environment the token is registered for. If none is provided we assume the token is used in `production`.
18+
19+
**Properties**
20+
21+
| Name | Type | Required | Description |
22+
| :---------- | :----- | :------- | :------------ |
23+
| DEVELOPMENT | string || "development" |
24+
| PRODUCTION | string || "production" |
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# ArrayOfMetadataApnsTokens
1+
# ArrayOfApnsTokenResponses
22

33
**Properties**
44

55
| Name | Type | Required | Description |
66
| :---- | :------------------ | :------- | :---------- |
7-
| data | MetadataApnsToken[] || |
7+
| data | ApnsTokenResponse[] || |
88
| links | Links || |
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# ArrayOfMetadataApnsTokens
1+
# ArrayOfExpoTokenResponses
22

33
**Properties**
44

55
| Name | Type | Required | Description |
66
| :---- | :------------------ | :------- | :---------- |
7-
| data | MetadataApnsToken[] || |
7+
| data | ExpoTokenResponse[] || |
88
| links | Links || |

0 commit comments

Comments
 (0)