Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.469.2
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot authored and merrcury committed Jan 20, 2025
1 parent e28eeb4 commit 2b07b76
Show file tree
Hide file tree
Showing 17 changed files with 148 additions and 111 deletions.
194 changes: 104 additions & 90 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: true
go:
version: 0.0.4
version: 0.0.5
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.469.0
speakeasyVersion: 1.469.2
sources:
novu-OAS:
sourceNamespace: novu-oas
sourceRevisionDigest: sha256:21367ef75f16ed5cfdf8972684fbe3671307fe5f95f10842295478088904d0a5
sourceBlobDigest: sha256:ba8ff28975436bfaa7b97c66c2a878486ea83454788feffc7c3b3b65390c3add
sourceRevisionDigest: sha256:c5afde79d343aedf8181232b89de49d7165957a7fa32835b0c742ed0d3b3015b
sourceBlobDigest: sha256:18c316b9321ad3e95d98430f5395c857fb1312d945662fcc975b94fa205f076a
tags:
- latest
- speakeasy-sdk-regen-1737123552
- speakeasy-sdk-regen-1737159150
- "1.0"
targets:
novu:
source: novu-OAS
sourceNamespace: novu-oas
sourceRevisionDigest: sha256:21367ef75f16ed5cfdf8972684fbe3671307fe5f95f10842295478088904d0a5
sourceBlobDigest: sha256:ba8ff28975436bfaa7b97c66c2a878486ea83454788feffc7c3b3b65390c3add
sourceRevisionDigest: sha256:c5afde79d343aedf8181232b89de49d7165957a7fa32835b0c742ed0d3b3015b
sourceBlobDigest: sha256:18c316b9321ad3e95d98430f5395c857fb1312d945662fcc975b94fa205f076a
codeSamplesNamespace: novu-oas-go-code-samples
codeSamplesRevisionDigest: sha256:c0f498f3ef9a7ddfbc969555a2ef14a35283411527c473ec148198e91dcaf64e
codeSamplesRevisionDigest: sha256:a523494292324af9cd12339c33b175188b55eeeda76365ea51d091dde5a79bec
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ func main() {
novugo.WithSecurity(os.Getenv("NOVU_API_KEY")),
)

res, err := s.Subscribers.List(ctx, nil, nil)
res, err := s.Subscribers.List(ctx, nil, novugo.Float64(10))
if err != nil {
log.Fatal(err)
}
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,14 @@ Based on:
### Generated
- [go v0.0.4] .
### Releases
- [Go v0.0.4] https://github.com/novuhq/novu-go/releases/tag/v0.0.4 - .
- [Go v0.0.4] https://github.com/novuhq/novu-go/releases/tag/v0.0.4 - .

## 2025-01-20 00:13:00
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.469.2 (2.493.23) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.0.5] .
### Releases
- [Go v0.0.5] https://github.com/novuhq/novu-go/releases/tag/v0.0.5 - .
2 changes: 2 additions & 0 deletions docs/models/components/actor.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
It is used to display the Avatar of the provided actor's subscriber id or actor object.




If a new actor object is provided, we will create a new subscriber in our system


Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/triggereventrequestdto.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
| `Overrides` | map[string]map[string]*any* | :heavy_minus_sign: | This could be used to override provider specific configurations | {<br/>"fcm": {<br/>"data": {<br/>"key": "value"<br/>}<br/>}<br/>} |
| `To` | [components.To](../../models/components/to.md) | :heavy_check_mark: | The recipients list of people who will receive the notification. | |
| `TransactionID` | **string* | :heavy_minus_sign: | A unique identifier for this transaction, we will generate a UUID if not provided. | |
| `Actor` | [*components.Actor](../../models/components/actor.md) | :heavy_minus_sign: | It is used to display the Avatar of the provided actor's subscriber id or actor object.<br/><br/><br/> If a new actor object is provided, we will create a new subscriber in our system | |
| `Actor` | [*components.Actor](../../models/components/actor.md) | :heavy_minus_sign: | It is used to display the Avatar of the provided actor's subscriber id or actor object.<br/><br/><br/><br/><br/> If a new actor object is provided, we will create a new subscriber in our system | |
| `Tenant` | [*components.Tenant](../../models/components/tenant.md) | :heavy_minus_sign: | It is used to specify a tenant context during trigger event.<br/> Existing tenants will be updated with the provided details. | |
| `Controls` | [*components.WorkflowToStepControlValuesDto](../../models/components/workflowtostepcontrolvaluesdto.md) | :heavy_minus_sign: | Additional control configurations. | |
2 changes: 2 additions & 0 deletions docs/sdks/credentials/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ func main() {
Subscriber credentials associated to the delivery methods such as slack and push tokens.




This endpoint appends provided credentials and deviceTokens to the existing ones.

### Example Usage
Expand Down
5 changes: 4 additions & 1 deletion docs/sdks/messages/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ func main() {
novugo.WithSecurity(os.Getenv("NOVU_API_KEY")),
)

res, err := s.Messages.List(ctx, operations.MessagesControllerGetMessagesRequest{})
res, err := s.Messages.List(ctx, operations.MessagesControllerGetMessagesRequest{
Page: novugo.Float64(0),
Limit: novugo.Float64(10),
})
if err != nil {
log.Fatal(err)
}
Expand Down
4 changes: 3 additions & 1 deletion docs/sdks/notifications/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ func main() {
novugo.WithSecurity(os.Getenv("NOVU_API_KEY")),
)

res, err := s.Notifications.List(ctx, operations.NotificationsControllerListNotificationsRequest{})
res, err := s.Notifications.List(ctx, operations.NotificationsControllerListNotificationsRequest{
Page: novugo.Float64(0),
})
if err != nil {
log.Fatal(err)
}
Expand Down
2 changes: 2 additions & 0 deletions docs/sdks/novu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ func main() {
Trigger a broadcast event to all existing subscribers, could be used to send announcements, etc.




In the future could be used to trigger events to a subset of subscribers based on defined filters.

### Example Usage
Expand Down
2 changes: 1 addition & 1 deletion docs/sdks/novumessages/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func main() {
)

res, err := s.Subscribers.Messages.UpdateAction(ctx, "<id>", "<value>", "<id>", components.MarkMessageActionAsSeenDto{
Status: components.MarkMessageActionAsSeenDtoStatusDone,
Status: components.MarkMessageActionAsSeenDtoStatusPending,
})
if err != nil {
log.Fatal(err)
Expand Down
3 changes: 2 additions & 1 deletion docs/sdks/novusubscribersnotifications/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ func main() {

res, err := s.Subscribers.Notifications.GetFeed(ctx, operations.SubscribersControllerGetNotificationsFeedRequest{
SubscriberID: "<id>",
Limit: novugo.Float64(10),
Payload: novugo.String("btoa(JSON.stringify({ foo: 123 })) results in base64 encoded string like eyJmb28iOjEyM30="),
})
if err != nil {
Expand Down Expand Up @@ -88,7 +89,7 @@ func main() {
novugo.WithSecurity(os.Getenv("NOVU_API_KEY")),
)

res, err := s.Subscribers.Notifications.UnseenCount(ctx, "<id>", nil, nil)
res, err := s.Subscribers.Notifications.UnseenCount(ctx, "<id>", novugo.Bool(false), novugo.Float64(100))
if err != nil {
log.Fatal(err)
}
Expand Down
4 changes: 2 additions & 2 deletions docs/sdks/subscribers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func main() {
novugo.WithSecurity(os.Getenv("NOVU_API_KEY")),
)

res, err := s.Subscribers.List(ctx, nil, nil)
res, err := s.Subscribers.List(ctx, nil, novugo.Float64(10))
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -402,7 +402,7 @@ func main() {
)

res, err := s.Subscribers.UpdateOnlineStatus(ctx, "<id>", components.UpdateSubscriberOnlineFlagRequestDto{
IsOnline: false,
IsOnline: true,
})
if err != nil {
log.Fatal(err)
Expand Down
1 change: 0 additions & 1 deletion docs/sdks/topicssubscribers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ func main() {
Subscribers: []string{
"<value>",
"<value>",
"<value>",
},
})
if err != nil {
Expand Down
2 changes: 2 additions & 0 deletions models/components/triggereventrequestdto.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,8 @@ type TriggerEventRequestDto struct {
// It is used to display the Avatar of the provided actor's subscriber id or actor object.
//
//
//
//
// If a new actor object is provided, we will create a new subscriber in our system
Actor *Actor `json:"actor,omitempty"`
// It is used to specify a tenant context during trigger event.
Expand Down
6 changes: 3 additions & 3 deletions novu.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ func New(opts ...SDKOption) *Novu {
sdkConfiguration: sdkConfiguration{
Language: "go",
OpenAPIDocVersion: "1.0",
SDKVersion: "0.0.4",
GenVersion: "2.493.21",
UserAgent: "speakeasy-sdk/go 0.0.4 2.493.21 1.0 github.com/novuhq/novu-go",
SDKVersion: "0.0.5",
GenVersion: "2.493.23",
UserAgent: "speakeasy-sdk/go 0.0.5 2.493.23 1.0 github.com/novuhq/novu-go",
Hooks: hooks.New(),
},
}
Expand Down

0 comments on commit 2b07b76

Please sign in to comment.