Skip to content

Commit 9105c16

Browse files
committed
chore: regen sdk
1 parent e94c768 commit 9105c16

File tree

14 files changed

+442
-318
lines changed

14 files changed

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

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ sdk.SetAccessToken("YOUR-TOKEN")
5252

5353
The SDK provides various services to interact with the API.
5454

55-
<details>
55+
<details>
5656
<summary>Below is a list of all available services with links to their detailed documentation:</summary>
5757

5858
| Name |
@@ -108,7 +108,7 @@ This struct is shared by both response wrappers and contains the following field
108108

109109
The SDK includes several models that represent the data structures used in API requests and responses. These models help in organizing and managing the data efficiently.
110110

111-
<details>
111+
<details>
112112
<summary>Below is a list of all available models with links to their detailed documentation:</summary>
113113

114114
| Name | Description |
@@ -228,7 +228,7 @@ sdk.SetAccessToken("YOUR-TOKEN")
228228

229229
The SDK provides various services to interact with the API.
230230

231-
<details>
231+
<details>
232232
<summary>Below is a list of all available services with links to their detailed documentation:</summary>
233233

234234
| Name |
@@ -282,7 +282,7 @@ This struct is shared by both response wrappers and contains the following field
282282

283283
The SDK includes several models that represent the data structures used in API requests and responses. These models help in organizing and managing the data efficiently.
284284

285-
<details>
285+
<details>
286286
<summary>Below is a list of all available models with links to their detailed documentation:</summary>
287287

288288
| Name | Description |

docs/project-client/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ sdk.SetAccessToken("YOUR-TOKEN")
5050

5151
The SDK provides various services to interact with the API.
5252

53-
<details>
53+
<details>
5454
<summary>Below is a list of all available services with links to their detailed documentation:</summary>
5555

5656
| Name |
@@ -106,7 +106,7 @@ This struct is shared by both response wrappers and contains the following field
106106

107107
The SDK includes several models that represent the data structures used in API requests and responses. These models help in organizing and managing the data efficiently.
108108

109-
<details>
109+
<details>
110110
<summary>Below is a list of all available models with links to their detailed documentation:</summary>
111111

112112
| Name | Description |

docs/project-client/services/broadcasts_service.md

Lines changed: 32 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ import (
3939
)
4040

4141
config := clientconfig.NewConfig()
42+
config.SetAccessToken("ACCESS_TOKEN")
4243
client := client.NewClient(config)
4344

4445

@@ -85,34 +86,35 @@ import (
8586
)
8687

8788
config := clientconfig.NewConfig()
89+
config.SetAccessToken("ACCESS_TOKEN")
8890
client := client.NewClient(config)
8991

9092

9193
email := broadcasts.Email{
92-
ActionUrl: util.ToPointer(util.Nullable[string]{ Value: "ActionUrl" }),
93-
Content: util.ToPointer("Content"),
94-
Title: util.ToPointer("Title"),
94+
ActionUrl: util.ToPointer(util.Nullable[string]{ Value: "action_url" }),
95+
Content: util.ToPointer("content"),
96+
Title: util.ToPointer("title"),
9597
}
9698

9799

98100
inApp := broadcasts.InApp{
99-
ActionUrl: util.ToPointer(util.Nullable[string]{ Value: "ActionUrl" }),
100-
Content: util.ToPointer("Content"),
101-
Title: util.ToPointer("Title"),
101+
ActionUrl: util.ToPointer(util.Nullable[string]{ Value: "action_url" }),
102+
Content: util.ToPointer("content"),
103+
Title: util.ToPointer("title"),
102104
}
103105

104106

105107
mobilePush := broadcasts.MobilePush{
106-
ActionUrl: util.ToPointer(util.Nullable[string]{ Value: "ActionUrl" }),
107-
Content: util.ToPointer("Content"),
108-
Title: util.ToPointer("Title"),
108+
ActionUrl: util.ToPointer(util.Nullable[string]{ Value: "action_url" }),
109+
Content: util.ToPointer("content"),
110+
Title: util.ToPointer("title"),
109111
}
110112

111113

112114
sms := broadcasts.Sms{
113-
ActionUrl: util.ToPointer(util.Nullable[string]{ Value: "ActionUrl" }),
114-
Content: util.ToPointer("Content"),
115-
Title: util.ToPointer("Title"),
115+
ActionUrl: util.ToPointer(util.Nullable[string]{ Value: "action_url" }),
116+
Content: util.ToPointer("content"),
117+
Title: util.ToPointer("title"),
116118
}
117119

118120
overridesChannels := broadcasts.OverridesChannels{
@@ -143,21 +145,21 @@ overrides := broadcasts.Overrides{
143145

144146

145147
user := shared.User{
146-
CreatedAt: util.ToPointer(util.Nullable[string]{ Value: "CreatedAt" }),
148+
CreatedAt: util.ToPointer(util.Nullable[string]{ Value: "created_at" }),
147149
CustomAttributes: []byte{},
148-
Email: util.ToPointer(util.Nullable[string]{ Value: "Email" }),
149-
ExternalId: util.ToPointer(util.Nullable[string]{ Value: "ExternalId" }),
150-
FirstName: util.ToPointer(util.Nullable[string]{ Value: "FirstName" }),
151-
Id: util.ToPointer("Id"),
152-
LastName: util.ToPointer(util.Nullable[string]{ Value: "LastName" }),
153-
LastNotifiedAt: util.ToPointer(util.Nullable[string]{ Value: "LastNotifiedAt" }),
154-
LastSeenAt: util.ToPointer(util.Nullable[string]{ Value: "LastSeenAt" }),
155-
UpdatedAt: util.ToPointer(util.Nullable[string]{ Value: "UpdatedAt" }),
150+
Email: util.ToPointer(util.Nullable[string]{ Value: "email" }),
151+
ExternalId: util.ToPointer(util.Nullable[string]{ Value: "external_id" }),
152+
FirstName: util.ToPointer(util.Nullable[string]{ Value: "first_name" }),
153+
Id: util.ToPointer("id"),
154+
LastName: util.ToPointer(util.Nullable[string]{ Value: "last_name" }),
155+
LastNotifiedAt: util.ToPointer(util.Nullable[string]{ Value: "last_notified_at" }),
156+
LastSeenAt: util.ToPointer(util.Nullable[string]{ Value: "last_seen_at" }),
157+
UpdatedAt: util.ToPointer(util.Nullable[string]{ Value: "updated_at" }),
156158
}
157159

158160

159161
errors := broadcasts.Errors{
160-
Message: util.ToPointer("Message"),
162+
Message: util.ToPointer("message"),
161163
}
162164

163165
statusStatus := broadcasts.STATUS_STATUS_ENQUEUED
@@ -175,17 +177,17 @@ broadcastStatus := broadcasts.BroadcastStatus{
175177
}
176178

177179
request := broadcasts.Broadcast{
178-
ActionUrl: util.ToPointer(util.Nullable[string]{ Value: "ActionUrl" }),
179-
Category: util.ToPointer(util.Nullable[string]{ Value: "Category" }),
180-
Content: util.ToPointer(util.Nullable[string]{ Value: "Content" }),
181-
CreatedAt: util.ToPointer("CreatedAt"),
180+
ActionUrl: util.ToPointer(util.Nullable[string]{ Value: "action_url" }),
181+
Category: util.ToPointer(util.Nullable[string]{ Value: "category" }),
182+
Content: util.ToPointer(util.Nullable[string]{ Value: "content" }),
183+
CreatedAt: util.ToPointer("created_at"),
182184
CustomAttributes: []byte{},
183-
Id: util.ToPointer("Id"),
185+
Id: util.ToPointer("id"),
184186
Overrides: &overrides,
185187
Recipients: []shared.User{user},
186188
Status: &broadcastStatus,
187-
Title: util.ToPointer("Title"),
188-
Topic: util.ToPointer(util.Nullable[string]{ Value: "Topic" }),
189+
Title: util.ToPointer("title"),
190+
Topic: util.ToPointer(util.Nullable[string]{ Value: "topic" }),
189191
}
190192

191193
response, err := client.Broadcasts.CreateBroadcast(context.Background(), request)
@@ -226,6 +228,7 @@ import (
226228
)
227229

228230
config := clientconfig.NewConfig()
231+
config.SetAccessToken("ACCESS_TOKEN")
229232
client := client.NewClient(config)
230233

231234
response, err := client.Broadcasts.FetchBroadcast(context.Background(), "broadcastId")

docs/project-client/services/channels_service.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,20 +59,21 @@ import (
5959
)
6060

6161
config := clientconfig.NewConfig()
62+
config.SetAccessToken("ACCESS_TOKEN")
6263
client := client.NewClient(config)
6364

6465
channel := channels.CHANNEL_IN_APP
6566

6667
categoryDeliveryConfigChannels := channels.CategoryDeliveryConfigChannels{
6768
Channel: &channel,
6869
Delay: util.ToPointer(int64(123)),
69-
If_: util.ToPointer(util.Nullable[string]{ Value: "If_" }),
70+
If_: util.ToPointer(util.Nullable[string]{ Value: "if" }),
7071
}
7172

7273
request := channels.CategoryDeliveryConfig{
7374
Channels: []channels.CategoryDeliveryConfigChannels{categoryDeliveryConfigChannels},
7475
Disabled: util.ToPointer(true),
75-
Key: util.ToPointer("Key"),
76+
Key: util.ToPointer("key"),
7677
}
7778

7879
response, err := client.Channels.SaveChannelsConfig(context.Background(), request)
@@ -113,6 +114,7 @@ import (
113114
)
114115

115116
config := clientconfig.NewConfig()
117+
config.SetAccessToken("ACCESS_TOKEN")
116118
client := client.NewClient(config)
117119

118120
response, err := client.Channels.FetchChannelsConfig(context.Background(), "key")
@@ -155,6 +157,7 @@ import (
155157
)
156158

157159
config := clientconfig.NewConfig()
160+
config.SetAccessToken("ACCESS_TOKEN")
158161
client := client.NewClient(config)
159162

160163

@@ -201,6 +204,7 @@ import (
201204
)
202205

203206
config := clientconfig.NewConfig()
207+
config.SetAccessToken("ACCESS_TOKEN")
204208
client := client.NewClient(config)
205209

206210
response, err := client.Channels.FetchUserInboxToken(context.Background(), "userId", "tokenId")
@@ -242,6 +246,7 @@ import (
242246
)
243247

244248
config := clientconfig.NewConfig()
249+
config.SetAccessToken("ACCESS_TOKEN")
245250
client := client.NewClient(config)
246251

247252
response, err := client.Channels.DeleteUserInboxToken(context.Background(), "userId", "tokenId")
@@ -284,6 +289,7 @@ import (
284289
)
285290

286291
config := clientconfig.NewConfig()
292+
config.SetAccessToken("ACCESS_TOKEN")
287293
client := client.NewClient(config)
288294

289295

@@ -330,6 +336,7 @@ import (
330336
)
331337

332338
config := clientconfig.NewConfig()
339+
config.SetAccessToken("ACCESS_TOKEN")
333340
client := client.NewClient(config)
334341

335342
response, err := client.Channels.FetchUserApnsToken(context.Background(), "userId", "tokenId")
@@ -371,6 +378,7 @@ import (
371378
)
372379

373380
config := clientconfig.NewConfig()
381+
config.SetAccessToken("ACCESS_TOKEN")
374382
client := client.NewClient(config)
375383

376384
response, err := client.Channels.DeleteUserApnsToken(context.Background(), "userId", "tokenId")
@@ -413,6 +421,7 @@ import (
413421
)
414422

415423
config := clientconfig.NewConfig()
424+
config.SetAccessToken("ACCESS_TOKEN")
416425
client := client.NewClient(config)
417426

418427

@@ -459,6 +468,7 @@ import (
459468
)
460469

461470
config := clientconfig.NewConfig()
471+
config.SetAccessToken("ACCESS_TOKEN")
462472
client := client.NewClient(config)
463473

464474
response, err := client.Channels.FetchUserExpoToken(context.Background(), "userId", "tokenId")
@@ -500,6 +510,7 @@ import (
500510
)
501511

502512
config := clientconfig.NewConfig()
513+
config.SetAccessToken("ACCESS_TOKEN")
503514
client := client.NewClient(config)
504515

505516
response, err := client.Channels.DeleteUserExpoToken(context.Background(), "userId", "tokenId")
@@ -542,6 +553,7 @@ import (
542553
)
543554

544555
config := clientconfig.NewConfig()
556+
config.SetAccessToken("ACCESS_TOKEN")
545557
client := client.NewClient(config)
546558

547559

@@ -588,6 +600,7 @@ import (
588600
)
589601

590602
config := clientconfig.NewConfig()
603+
config.SetAccessToken("ACCESS_TOKEN")
591604
client := client.NewClient(config)
592605

593606
response, err := client.Channels.FetchUserFcmToken(context.Background(), "userId", "tokenId")
@@ -629,6 +642,7 @@ import (
629642
)
630643

631644
config := clientconfig.NewConfig()
645+
config.SetAccessToken("ACCESS_TOKEN")
632646
client := client.NewClient(config)
633647

634648
response, err := client.Channels.DeleteUserFcmToken(context.Background(), "userId", "tokenId")
@@ -671,6 +685,7 @@ import (
671685
)
672686

673687
config := clientconfig.NewConfig()
688+
config.SetAccessToken("ACCESS_TOKEN")
674689
client := client.NewClient(config)
675690

676691

@@ -717,6 +732,7 @@ import (
717732
)
718733

719734
config := clientconfig.NewConfig()
735+
config.SetAccessToken("ACCESS_TOKEN")
720736
client := client.NewClient(config)
721737

722738
response, err := client.Channels.FetchUserSlackToken(context.Background(), "userId", "tokenId")
@@ -758,6 +774,7 @@ import (
758774
)
759775

760776
config := clientconfig.NewConfig()
777+
config.SetAccessToken("ACCESS_TOKEN")
761778
client := client.NewClient(config)
762779

763780
response, err := client.Channels.DeleteUserSlackToken(context.Background(), "userId", "tokenId")
@@ -800,6 +817,7 @@ import (
800817
)
801818

802819
config := clientconfig.NewConfig()
820+
config.SetAccessToken("ACCESS_TOKEN")
803821
client := client.NewClient(config)
804822

805823

@@ -846,6 +864,7 @@ import (
846864
)
847865

848866
config := clientconfig.NewConfig()
867+
config.SetAccessToken("ACCESS_TOKEN")
849868
client := client.NewClient(config)
850869

851870
response, err := client.Channels.FetchUserTeamsToken(context.Background(), "userId", "tokenId")
@@ -887,6 +906,7 @@ import (
887906
)
888907

889908
config := clientconfig.NewConfig()
909+
config.SetAccessToken("ACCESS_TOKEN")
890910
client := client.NewClient(config)
891911

892912
response, err := client.Channels.DeleteUserTeamsToken(context.Background(), "userId", "tokenId")
@@ -929,6 +949,7 @@ import (
929949
)
930950

931951
config := clientconfig.NewConfig()
952+
config.SetAccessToken("ACCESS_TOKEN")
932953
client := client.NewClient(config)
933954

934955

@@ -975,6 +996,7 @@ import (
975996
)
976997

977998
config := clientconfig.NewConfig()
999+
config.SetAccessToken("ACCESS_TOKEN")
9781000
client := client.NewClient(config)
9791001

9801002
response, err := client.Channels.FetchUserWebPushToken(context.Background(), "userId", "tokenId")
@@ -1016,6 +1038,7 @@ import (
10161038
)
10171039

10181040
config := clientconfig.NewConfig()
1041+
config.SetAccessToken("ACCESS_TOKEN")
10191042
client := client.NewClient(config)
10201043

10211044
response, err := client.Channels.DeleteUserWebPushToken(context.Background(), "userId", "tokenId")

docs/project-client/services/events_service.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ import (
3838
)
3939

4040
config := clientconfig.NewConfig()
41+
config.SetAccessToken("ACCESS_TOKEN")
4142
client := client.NewClient(config)
4243

4344

@@ -83,6 +84,7 @@ import (
8384
)
8485

8586
config := clientconfig.NewConfig()
87+
config.SetAccessToken("ACCESS_TOKEN")
8688
client := client.NewClient(config)
8789

8890
response, err := client.Events.FetchEvent(context.Background(), "eventId")

0 commit comments

Comments
 (0)