Skip to content

Commit 8b76691

Browse files
committed
chore: regen sdk
1 parent e94c768 commit 8b76691

Some content is hidden

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

43 files changed

+2313
-440
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: 43 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,25 @@ sdk := client.NewClient(config)
4848
sdk.SetAccessToken("YOUR-TOKEN")
4949
```
5050

51+
## Setting a Custom Timeout
52+
53+
You can set a custom timeout for the SDK's HTTP requests as follows:
54+
55+
```go
56+
import "time"
57+
58+
config := clientconfig.NewConfig()
59+
60+
sdk := client.NewClient(config)
61+
62+
sdk.SetTimeout(10 * time.Second)
63+
```
64+
5165
## Services
5266

5367
The SDK provides various services to interact with the API.
5468

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

5872
| Name |
@@ -62,6 +76,7 @@ The SDK provides various services to interact with the API.
6276
| [EventsService](docs/project-client/services/events_service.md) |
6377
| [IntegrationsService](docs/project-client/services/integrations_service.md) |
6478
| [UsersService](docs/project-client/services/users_service.md) |
79+
| [WorkflowsService](docs/project-client/services/workflows_service.md) |
6580

6681
</details>
6782

@@ -108,7 +123,7 @@ This struct is shared by both response wrappers and contains the following field
108123

109124
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.
110125

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

114129
| Name | Description |
@@ -136,6 +151,8 @@ The SDK includes several models that represent the data structures used in API r
136151
| [IntegrationConfigCollection](docs/project-client/models/integration_config_collection.md) | |
137152
| [ApnsConfigCollection](docs/project-client/models/apns_config_collection.md) | |
138153
| [ApnsConfigPayload](docs/project-client/models/apns_config_payload.md) | |
154+
| [EventSourceConfigCollection](docs/project-client/models/event_source_config_collection.md) | |
155+
| [EventSourceConfigPayload](docs/project-client/models/event_source_config_payload.md) | |
139156
| [ExpoConfigCollection](docs/project-client/models/expo_config_collection.md) | |
140157
| [ExpoConfigPayload](docs/project-client/models/expo_config_payload.md) | |
141158
| [FcmConfigCollection](docs/project-client/models/fcm_config_collection.md) | |
@@ -162,9 +179,15 @@ The SDK includes several models that represent the data structures used in API r
162179
| [WebpushConfigPayload](docs/project-client/models/webpush_config_payload.md) | |
163180
| [UserCollection](docs/project-client/models/user_collection.md) | |
164181
| [User](docs/project-client/models/user.md) | |
182+
| [WorkflowDefinition](docs/project-client/models/workflow_definition.md) | |
183+
| [ExecuteWorkflowRequest](docs/project-client/models/execute_workflow_request.md) | |
184+
| [CreateRunResponse](docs/project-client/models/create_run_response.md) | |
185+
| [GetRunResponse](docs/project-client/models/get_run_response.md) | |
186+
| [WorkflowRunCollection](docs/project-client/models/workflow_run_collection.md) | |
165187
| [Links](docs/project-client/models/links.md) | |
166188
| [IntegrationConfig](docs/project-client/models/integration_config.md) | |
167189
| [ApnsConfig](docs/project-client/models/apns_config.md) | |
190+
| [EventSourceConfig](docs/project-client/models/event_source_config.md) | |
168191
| [ExpoConfig](docs/project-client/models/expo_config.md) | |
169192
| [FcmConfig](docs/project-client/models/fcm_config.md) | |
170193
| [GithubConfig](docs/project-client/models/github_config.md) | |
@@ -177,6 +200,7 @@ The SDK includes several models that represent the data structures used in API r
177200
| [StripeConfig](docs/project-client/models/stripe_config.md) | |
178201
| [TwilioConfig](docs/project-client/models/twilio_config.md) | |
179202
| [WebpushConfig](docs/project-client/models/webpush_config.md) | |
203+
| [WorkflowRun](docs/project-client/models/workflow_run.md) | |
180204

181205
</details>
182206

@@ -224,11 +248,25 @@ sdk := client.NewClient(config)
224248
sdk.SetAccessToken("YOUR-TOKEN")
225249
```
226250

251+
## Setting a Custom Timeout
252+
253+
You can set a custom timeout for the SDK's HTTP requests as follows:
254+
255+
```go
256+
import "time"
257+
258+
config := clientconfig.NewConfig()
259+
260+
sdk := client.NewClient(config)
261+
262+
sdk.SetTimeout(10 * time.Second)
263+
```
264+
227265
## Services
228266

229267
The SDK provides various services to interact with the API.
230268

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

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

283321
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.
284322

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

288326
| Name | Description |
@@ -306,6 +344,7 @@ The SDK includes several models that represent the data structures used in API r
306344
| [TeamsTokenCollection](docs/user-client/models/teams_token_collection.md) | |
307345
| [TeamsTokenPayload](docs/user-client/models/teams_token_payload.md) | |
308346
| [TeamsToken](docs/user-client/models/teams_token.md) | |
347+
| [UserPreferences](docs/user-client/models/user_preferences.md) | |
309348
| [WebPushTokenCollection](docs/user-client/models/web_push_token_collection.md) | |
310349
| [WebPushTokenPayload](docs/user-client/models/web_push_token_payload.md) | |
311350
| [WebPushToken](docs/user-client/models/web_push_token.md) | |

docs/project-client/README.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,25 @@ sdk := client.NewClient(config)
4646
sdk.SetAccessToken("YOUR-TOKEN")
4747
```
4848

49+
## Setting a Custom Timeout
50+
51+
You can set a custom timeout for the SDK's HTTP requests as follows:
52+
53+
```go
54+
import "time"
55+
56+
config := clientconfig.NewConfig()
57+
58+
sdk := client.NewClient(config)
59+
60+
sdk.SetTimeout(10 * time.Second)
61+
```
62+
4963
## Services
5064

5165
The SDK provides various services to interact with the API.
5266

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

5670
| Name |
@@ -60,6 +74,7 @@ The SDK provides various services to interact with the API.
6074
| [EventsService](services/events_service.md) |
6175
| [IntegrationsService](services/integrations_service.md) |
6276
| [UsersService](services/users_service.md) |
77+
| [WorkflowsService](services/workflows_service.md) |
6378

6479
</details>
6580

@@ -106,7 +121,7 @@ This struct is shared by both response wrappers and contains the following field
106121

107122
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.
108123

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

112127
| Name | Description |
@@ -134,6 +149,8 @@ The SDK includes several models that represent the data structures used in API r
134149
| [IntegrationConfigCollection](models/integration_config_collection.md) | |
135150
| [ApnsConfigCollection](models/apns_config_collection.md) | |
136151
| [ApnsConfigPayload](models/apns_config_payload.md) | |
152+
| [EventSourceConfigCollection](models/event_source_config_collection.md) | |
153+
| [EventSourceConfigPayload](models/event_source_config_payload.md) | |
137154
| [ExpoConfigCollection](models/expo_config_collection.md) | |
138155
| [ExpoConfigPayload](models/expo_config_payload.md) | |
139156
| [FcmConfigCollection](models/fcm_config_collection.md) | |
@@ -160,9 +177,15 @@ The SDK includes several models that represent the data structures used in API r
160177
| [WebpushConfigPayload](models/webpush_config_payload.md) | |
161178
| [UserCollection](models/user_collection.md) | |
162179
| [User](models/user.md) | |
180+
| [WorkflowDefinition](models/workflow_definition.md) | |
181+
| [ExecuteWorkflowRequest](models/execute_workflow_request.md) | |
182+
| [CreateRunResponse](models/create_run_response.md) | |
183+
| [GetRunResponse](models/get_run_response.md) | |
184+
| [WorkflowRunCollection](models/workflow_run_collection.md) | |
163185
| [Links](models/links.md) | |
164186
| [IntegrationConfig](models/integration_config.md) | |
165187
| [ApnsConfig](models/apns_config.md) | |
188+
| [EventSourceConfig](models/event_source_config.md) | |
166189
| [ExpoConfig](models/expo_config.md) | |
167190
| [FcmConfig](models/fcm_config.md) | |
168191
| [GithubConfig](models/github_config.md) | |
@@ -175,5 +198,6 @@ The SDK includes several models that represent the data structures used in API r
175198
| [StripeConfig](models/stripe_config.md) | |
176199
| [TwilioConfig](models/twilio_config.md) | |
177200
| [WebpushConfig](models/webpush_config.md) | |
201+
| [WorkflowRun](models/workflow_run.md) | |
178202

179203
</details>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# CreateRunResponse
2+
3+
**Properties**
4+
5+
| Name | Type | Required | Description |
6+
| :--- | :----- | :------- | :---------- |
7+
| Id | string || |
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# EventSourceConfig
2+
3+
**Properties**
4+
5+
| Name | Type | Required | Description |
6+
| :----- | :------------------------------------ | :------- | :---------- |
7+
| Config | integrations.EventSourceConfigPayload || |
8+
| Id | string || |
9+
| Name | string || |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# EventSourceConfigCollection
2+
3+
**Properties**
4+
5+
| Name | Type | Required | Description |
6+
| :---- | :------------------------------- | :------- | :---------- |
7+
| Data | []integrations.EventSourceConfig || |
8+
| Links | shared.Links || |
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# EventSourceConfigPayload
2+
3+
**Properties**
4+
5+
| Name | Type | Required | Description |
6+
| :----- | :----- | :------- | :---------- |
7+
| Source | string || |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# ExecuteWorkflowRequest
2+
3+
**Properties**
4+
5+
| Name | Type | Required | Description |
6+
| :---- | :----- | :------- | :---------- |
7+
| Key | string || |
8+
| Input | any || |
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# GetRunResponse
2+
3+
**Properties**
4+
5+
| Name | Type | Required | Description |
6+
| :---------- | :----------------------------- | :------- | :---------- |
7+
| CreatedAt | string || |
8+
| Id | string || |
9+
| Status | workflows.GetRunResponseStatus || |
10+
| WorkflowKey | string || |
11+
12+
# GetRunResponseStatus
13+
14+
**Properties**
15+
16+
| Name | Type | Required | Description |
17+
| :---------- | :----- | :------- | :---------- |
18+
| CompletedAt | string || |
19+
| Error | string || |
20+
| NextStep | int64 || |
21+
| StartedAt | string || |
22+
| State | int64 || |

docs/project-client/models/stripe_config_payload.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
| Name | Type | Required | Description |
66
| :------------------- | :----- | :------- | :--------------------------------------------------------- |
77
| WebhookSigningSecret | string || The signing secret to verify incoming requests from Stripe |
8+
| Id | string || The unique identifier for this configuration |

0 commit comments

Comments
 (0)