Skip to content

Commit 96aba1b

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.514.1
1 parent cf8c70d commit 96aba1b

File tree

118 files changed

+793
-5133
lines changed

Some content is hidden

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

118 files changed

+793
-5133
lines changed

.speakeasy/gen.lock

+21-71
Large diffs are not rendered by default.

.speakeasy/gen.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ generation:
1010
useClassNamesForArrayFields: true
1111
fixes:
1212
nameResolutionDec2023: true
13+
nameResolutionFeb2025: false
1314
parameterOrderingFeb2024: true
1415
requestResponseComponentNamesFeb2024: true
16+
securityFeb2025: false
1517
auth:
1618
oAuth2ClientCredentialsEnabled: true
1719
oAuth2PasswordEnabled: true
1820
go:
19-
version: 0.1.17
21+
version: 0.2.0
2022
additionalDependencies:
2123
github.com/google/uuid: v1.6.0
2224
allowUnknownFieldsInWeakUnions: false

.speakeasy/workflow.lock

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.484.1
1+
speakeasyVersion: 1.514.1
22
sources:
33
novu-OAS:
44
sourceNamespace: novu-oas
5-
sourceRevisionDigest: sha256:4c24d7f0521c19a0dac957d4dd5d0fef332b7d5d78d3a3bdd61919c97f458985
6-
sourceBlobDigest: sha256:ed8d604243cb071fbd8ccd32366dc185a7381706079566388a6fb1d014368863
5+
sourceRevisionDigest: sha256:9fd52284a610154d1ba82d5a0bfb3e93c0f42edef9b457795d8cfc3d4cf1fb67
6+
sourceBlobDigest: sha256:781dfb73f9f926de61c2d4ba88d8f28089f682f79772e5b08527e1d8ac1ebe52
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1738714379
9+
- speakeasy-sdk-regen-1738887199
1010
- "1.0"
1111
targets:
1212
novu:
1313
source: novu-OAS
1414
sourceNamespace: novu-oas
15-
sourceRevisionDigest: sha256:4c24d7f0521c19a0dac957d4dd5d0fef332b7d5d78d3a3bdd61919c97f458985
16-
sourceBlobDigest: sha256:ed8d604243cb071fbd8ccd32366dc185a7381706079566388a6fb1d014368863
15+
sourceRevisionDigest: sha256:9fd52284a610154d1ba82d5a0bfb3e93c0f42edef9b457795d8cfc3d4cf1fb67
16+
sourceBlobDigest: sha256:781dfb73f9f926de61c2d4ba88d8f28089f682f79772e5b08527e1d8ac1ebe52
1717
codeSamplesNamespace: novu-oas-go-code-samples
18-
codeSamplesRevisionDigest: sha256:adef743b4471ef98f4d3b1ce1497bd385f6c1be4551a1306bdc38bd30025725e
18+
codeSamplesRevisionDigest: sha256:cbe51c37e6fedf8b9daa69bb5e7e4fb4a70ab817dd39f5153a2fad6fe3ddc6d7
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

+19-41
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ Developer-friendly & type-safe Go SDK specifically catered to leverage Novu API.
1717
<!-- Start Summary [summary] -->
1818
## Summary
1919

20-
Novu API: Novu REST API. Please see [Api reference](https://docs.novu.co/api-reference) for more details.
20+
Novu API: Novu REST API. Please see https://docs.novu.co/api-reference for more details.
2121

2222
For more information about the API: [Novu Documentation](https://docs.novu.co)
2323
<!-- End Summary [summary] -->
2424

2525
<!-- Start Table of Contents [toc] -->
2626
## Table of Contents
2727
<!-- $toc-max-depth=2 -->
28-
* [github.com/novuhq/novu-go](#githubcomnovuhqnovu-go)
28+
* [Novu's API v2 Go SDK](#novus-api-v2-go-sdk)
2929
* [SDK Installation](#sdk-installation)
3030
* [SDK Example Usage](#sdk-example-usage)
3131
* [Authentication](#authentication)
@@ -36,7 +36,6 @@ For more information about the API: [Novu Documentation](https://docs.novu.co)
3636
* [Server Selection](#server-selection)
3737
* [Custom HTTP Client](#custom-http-client)
3838
* [Development](#development)
39-
* [Maturity](#maturity)
4039
* [Contributions](#contributions)
4140

4241
<!-- End Table of Contents [toc] -->
@@ -63,14 +62,13 @@ import (
6362
novugo "github.com/novuhq/novu-go"
6463
"github.com/novuhq/novu-go/models/components"
6564
"log"
66-
"os"
6765
)
6866

6967
func main() {
7068
ctx := context.Background()
7169

7270
s := novugo.New(
73-
novugo.WithSecurity(os.Getenv("NOVU_SECRET_KEY")),
71+
novugo.WithSecurity("YOUR_SECRET_KEY_HERE"),
7472
)
7573

7674
res, err := s.Trigger(ctx, components.TriggerEventRequestDto{
@@ -114,14 +112,13 @@ import (
114112
novugo "github.com/novuhq/novu-go"
115113
"github.com/novuhq/novu-go/models/components"
116114
"log"
117-
"os"
118115
)
119116

120117
func main() {
121118
ctx := context.Background()
122119

123120
s := novugo.New(
124-
novugo.WithSecurity(os.Getenv("NOVU_SECRET_KEY")),
121+
novugo.WithSecurity("YOUR_SECRET_KEY_HERE"),
125122
)
126123

127124
res, err := s.TriggerBulk(ctx, components.BulkTriggerEventDto{
@@ -221,14 +218,13 @@ import (
221218
novugo "github.com/novuhq/novu-go"
222219
"github.com/novuhq/novu-go/models/components"
223220
"log"
224-
"os"
225221
)
226222

227223
func main() {
228224
ctx := context.Background()
229225

230226
s := novugo.New(
231-
novugo.WithSecurity(os.Getenv("NOVU_SECRET_KEY")),
227+
novugo.WithSecurity("YOUR_SECRET_KEY_HERE"),
232228
)
233229

234230
res, err := s.TriggerBroadcast(ctx, components.TriggerEventToAllRequestDto{
@@ -259,14 +255,13 @@ import (
259255
"context"
260256
novugo "github.com/novuhq/novu-go"
261257
"log"
262-
"os"
263258
)
264259

265260
func main() {
266261
ctx := context.Background()
267262

268263
s := novugo.New(
269-
novugo.WithSecurity(os.Getenv("NOVU_SECRET_KEY")),
264+
novugo.WithSecurity("YOUR_SECRET_KEY_HERE"),
270265
)
271266

272267
res, err := s.Cancel(ctx, "<id>", nil)
@@ -301,14 +296,13 @@ import (
301296
novugo "github.com/novuhq/novu-go"
302297
"github.com/novuhq/novu-go/models/components"
303298
"log"
304-
"os"
305299
)
306300

307301
func main() {
308302
ctx := context.Background()
309303

310304
s := novugo.New(
311-
novugo.WithSecurity(os.Getenv("NOVU_SECRET_KEY")),
305+
novugo.WithSecurity("YOUR_SECRET_KEY_HERE"),
312306
)
313307

314308
res, err := s.Trigger(ctx, components.TriggerEventRequestDto{
@@ -388,12 +382,9 @@ func main() {
388382
### [Subscribers](docs/sdks/subscribers/README.md)
389383

390384
* [List](docs/sdks/subscribers/README.md#list) - Get subscribers
391-
* [Create](docs/sdks/subscribers/README.md#create) - Create subscriber
392-
* [RetrieveLegacy](docs/sdks/subscribers/README.md#retrievelegacy) - Get subscriber
393-
* [UpdateLegacy](docs/sdks/subscribers/README.md#updatelegacy) - Update subscriber
394-
* [~~DeleteLegacy~~](docs/sdks/subscribers/README.md#deletelegacy) - Delete subscriber :warning: **Deprecated**
395385
* [CreateBulk](docs/sdks/subscribers/README.md#createbulk) - Bulk create subscribers
396386
* [Search](docs/sdks/subscribers/README.md#search) - Search for subscribers
387+
* [Create](docs/sdks/subscribers/README.md#create) - Create subscriber
397388
* [Retrieve](docs/sdks/subscribers/README.md#retrieve) - Get subscriber
398389
* [Patch](docs/sdks/subscribers/README.md#patch) - Patch subscriber
399390
* [Delete](docs/sdks/subscribers/README.md#delete) - Delete subscriber
@@ -422,16 +413,9 @@ func main() {
422413

423414
#### [Subscribers.Preferences](docs/sdks/preferences/README.md)
424415

425-
* [~~ListLegacy~~](docs/sdks/preferences/README.md#listlegacy) - Get subscriber preferences :warning: **Deprecated**
426-
* [~~RetrieveByLevelLegacy~~](docs/sdks/preferences/README.md#retrievebylevellegacy) - Get subscriber preferences by level :warning: **Deprecated**
427-
* [UpdateLegacy](docs/sdks/preferences/README.md#updatelegacy) - Update subscriber preference
428-
* [Retrieve](docs/sdks/preferences/README.md#retrieve) - Get subscriber preferences
416+
* [List](docs/sdks/preferences/README.md#list) - Get subscriber preferences
429417
* [Update](docs/sdks/preferences/README.md#update) - Update subscriber global or workflow specific preferences
430418

431-
#### [Subscribers.Preferences.Legacy](docs/sdks/legacy/README.md)
432-
433-
* [UpdateGlobal](docs/sdks/legacy/README.md#updateglobal) - Update subscriber global preferences
434-
435419
#### [Subscribers.Properties](docs/sdks/properties/README.md)
436420

437421
* [UpdateOnlineFlag](docs/sdks/properties/README.md#updateonlineflag) - Update subscriber online status
@@ -468,14 +452,13 @@ import (
468452
"context"
469453
novugo "github.com/novuhq/novu-go"
470454
"log"
471-
"os"
472455
)
473456

474457
func main() {
475458
ctx := context.Background()
476459

477460
s := novugo.New(
478-
novugo.WithSecurity(os.Getenv("NOVU_SECRET_KEY")),
461+
novugo.WithSecurity("YOUR_SECRET_KEY_HERE"),
479462
)
480463

481464
res, err := s.Subscribers.List(ctx, nil, nil, nil)
@@ -518,14 +501,13 @@ import (
518501
"github.com/novuhq/novu-go/retry"
519502
"log"
520503
"models/operations"
521-
"os"
522504
)
523505

524506
func main() {
525507
ctx := context.Background()
526508

527509
s := novugo.New(
528-
novugo.WithSecurity(os.Getenv("NOVU_SECRET_KEY")),
510+
novugo.WithSecurity("YOUR_SECRET_KEY_HERE"),
529511
)
530512

531513
res, err := s.Trigger(ctx, components.TriggerEventRequestDto{
@@ -579,7 +561,6 @@ import (
579561
"github.com/novuhq/novu-go/models/components"
580562
"github.com/novuhq/novu-go/retry"
581563
"log"
582-
"os"
583564
)
584565

585566
func main() {
@@ -597,7 +578,7 @@ func main() {
597578
},
598579
RetryConnectionErrors: false,
599580
}),
600-
novugo.WithSecurity(os.Getenv("NOVU_SECRET_KEY")),
581+
novugo.WithSecurity("YOUR_SECRET_KEY_HERE"),
601582
)
602583

603584
res, err := s.Trigger(ctx, components.TriggerEventRequestDto{
@@ -661,14 +642,13 @@ import (
661642
"github.com/novuhq/novu-go/models/apierrors"
662643
"github.com/novuhq/novu-go/models/components"
663644
"log"
664-
"os"
665645
)
666646

667647
func main() {
668648
ctx := context.Background()
669649

670650
s := novugo.New(
671-
novugo.WithSecurity(os.Getenv("NOVU_SECRET_KEY")),
651+
novugo.WithSecurity("YOUR_SECRET_KEY_HERE"),
672652
)
673653

674654
res, err := s.Trigger(ctx, components.TriggerEventRequestDto{
@@ -736,10 +716,10 @@ func main() {
736716

737717
You can override the default server globally using the `WithServerIndex(serverIndex int)` option when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
738718

739-
| # | Server |
740-
| --- | ------------------------ |
741-
| 0 | `https://api.novu.co` |
742-
| 1 | `https://eu.api.novu.co` |
719+
| # | Server | Description |
720+
| --- | ------------------------ | ----------- |
721+
| 0 | `https://api.novu.co` | |
722+
| 1 | `https://eu.api.novu.co` | |
743723

744724
#### Example
745725

@@ -751,15 +731,14 @@ import (
751731
novugo "github.com/novuhq/novu-go"
752732
"github.com/novuhq/novu-go/models/components"
753733
"log"
754-
"os"
755734
)
756735

757736
func main() {
758737
ctx := context.Background()
759738

760739
s := novugo.New(
761740
novugo.WithServerIndex(1),
762-
novugo.WithSecurity(os.Getenv("NOVU_SECRET_KEY")),
741+
novugo.WithSecurity("YOUR_SECRET_KEY_HERE"),
763742
)
764743

765744
res, err := s.Trigger(ctx, components.TriggerEventRequestDto{
@@ -804,15 +783,14 @@ import (
804783
novugo "github.com/novuhq/novu-go"
805784
"github.com/novuhq/novu-go/models/components"
806785
"log"
807-
"os"
808786
)
809787

810788
func main() {
811789
ctx := context.Background()
812790

813791
s := novugo.New(
814792
novugo.WithServerURL("https://api.novu.co"),
815-
novugo.WithSecurity(os.Getenv("NOVU_SECRET_KEY")),
793+
novugo.WithSecurity("YOUR_SECRET_KEY_HERE"),
816794
)
817795

818796
res, err := s.Trigger(ctx, components.TriggerEventRequestDto{

RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,14 @@ Based on:
6868
### Generated
6969
- [go v0.1.17] .
7070
### Releases
71-
- [Go v0.1.17] https://github.com/novuhq/novu-go/releases/tag/v0.1.17 - .
71+
- [Go v0.1.17] https://github.com/novuhq/novu-go/releases/tag/v0.1.17 - .
72+
73+
## 2025-03-11 00:13:28
74+
### Changes
75+
Based on:
76+
- OpenAPI Doc
77+
- Speakeasy CLI 1.514.1 (2.546.3) https://github.com/speakeasy-api/speakeasy
78+
### Generated
79+
- [go v0.2.0] .
80+
### Releases
81+
- [Go v0.2.0] https://github.com/novuhq/novu-go/releases/tag/v0.2.0 - .

USAGE.md

+4-8
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,13 @@ import (
99
novugo "github.com/novuhq/novu-go"
1010
"github.com/novuhq/novu-go/models/components"
1111
"log"
12-
"os"
1312
)
1413

1514
func main() {
1615
ctx := context.Background()
1716

1817
s := novugo.New(
19-
novugo.WithSecurity(os.Getenv("NOVU_SECRET_KEY")),
18+
novugo.WithSecurity("YOUR_SECRET_KEY_HERE"),
2019
)
2120

2221
res, err := s.Trigger(ctx, components.TriggerEventRequestDto{
@@ -60,14 +59,13 @@ import (
6059
novugo "github.com/novuhq/novu-go"
6160
"github.com/novuhq/novu-go/models/components"
6261
"log"
63-
"os"
6462
)
6563

6664
func main() {
6765
ctx := context.Background()
6866

6967
s := novugo.New(
70-
novugo.WithSecurity(os.Getenv("NOVU_SECRET_KEY")),
68+
novugo.WithSecurity("YOUR_SECRET_KEY_HERE"),
7169
)
7270

7371
res, err := s.TriggerBulk(ctx, components.BulkTriggerEventDto{
@@ -167,14 +165,13 @@ import (
167165
novugo "github.com/novuhq/novu-go"
168166
"github.com/novuhq/novu-go/models/components"
169167
"log"
170-
"os"
171168
)
172169

173170
func main() {
174171
ctx := context.Background()
175172

176173
s := novugo.New(
177-
novugo.WithSecurity(os.Getenv("NOVU_SECRET_KEY")),
174+
novugo.WithSecurity("YOUR_SECRET_KEY_HERE"),
178175
)
179176

180177
res, err := s.TriggerBroadcast(ctx, components.TriggerEventToAllRequestDto{
@@ -205,14 +202,13 @@ import (
205202
"context"
206203
novugo "github.com/novuhq/novu-go"
207204
"log"
208-
"os"
209205
)
210206

211207
func main() {
212208
ctx := context.Background()
213209

214210
s := novugo.New(
215-
novugo.WithSecurity(os.Getenv("NOVU_SECRET_KEY")),
211+
novugo.WithSecurity("YOUR_SECRET_KEY_HERE"),
216212
)
217213

218214
res, err := s.Cancel(ctx, "<id>", nil)

0 commit comments

Comments
 (0)