Skip to content

Commit 729381b

Browse files
committed
## Go SDK Changes:
* `Novu.Translations.Create()`: * `request.CreateTranslationRequestDto.Content` **Changed** **Breaking** ⚠️ * `response.Content` **Changed** **Breaking** ⚠️ * `Novu.Translations.Master.Upload()`: `request.RequestBody` **Added** **Breaking** ⚠️ * `Novu.Translations.Master.Import()`: * `request.ImportMasterJsonRequestDto.MasterJson` **Changed** **Breaking** ⚠️ * `Novu.Translations.Master.Retrieve()`: `response` **Changed** **Breaking** ⚠️ * `Novu.Translations.Upload()`: `request` **Changed** **Breaking** ⚠️ * `Novu.Translations.Retrieve()`: `response.Content` **Changed** **Breaking** ⚠️ * `Novu.Topics.Subscriptions.Create()`: * `request.CreateTopicSubscriptionsRequestDto` **Changed** * `response.Data.[]` **Changed** * `Novu.Topics.Subscriptions.Delete()`: `response.Data.[].Identifier` **Added** * `Novu.Topics.Subscriptions.Update()`: **Added** * `Novu.TriggerBulk()`: `response.[].JobData` **Added** * `Novu.TriggerBroadcast()`: * `request.TriggerEventToAllRequestDto.Context` **Added** * `response.JobData` **Added** * `Novu.Trigger()`: `response.JobData` **Added** * `Novu.Integrations.List()`: `response.[].Credentials.TenantId` **Added** * `Novu.Integrations.Create()`: * `request.CreateIntegrationRequestDto.Credentials.TenantId` **Added** * `response.Credentials.TenantId` **Added** * `Novu.Integrations.Update()`: * `request.UpdateIntegrationRequestDto.Credentials.TenantId` **Added** * `response.Credentials.TenantId` **Added** * `Novu.Integrations.Delete()`: `response.[].Credentials.TenantId` **Added** * `Novu.Integrations.SetAsPrimary()`: `response.Credentials.TenantId` **Added** * `Novu.Integrations.ListActive()`: `response.[].Credentials.TenantId` **Added**
1 parent 58223fa commit 729381b

File tree

100 files changed

+2244
-407
lines changed

Some content is hidden

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

100 files changed

+2244
-407
lines changed

.speakeasy/gen.lock

Lines changed: 72 additions & 27 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ generation:
2828
generateNewTests: false
2929
skipResponseBodyAssertions: false
3030
go:
31-
version: 3.11.0
31+
version: 3.12.0
3232
additionalDependencies:
3333
github.com/google/uuid: v1.6.0
3434
allowUnknownFieldsInWeakUnions: false
@@ -46,14 +46,16 @@ go:
4646
shared: models/components
4747
webhooks: models/webhooks
4848
includeEmptyObjects: false
49+
inferUnionDiscriminators: false
4950
inputModelSuffix: input
5051
maxMethodParams: 4
5152
methodArguments: require-security-and-request
5253
modulePath: ""
54+
multipartArrayFormat: legacy
5355
nullableOptionalWrapper: false
5456
outputModelSuffix: output
5557
packageName: github.com/novuhq/novu-go
5658
respectRequiredFields: false
5759
responseFormat: envelope-http
5860
sdkPackageName: ""
59-
unionDeserializationStrategy: left-to-right
61+
unionStrategy: left-to-right

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.658.2
1+
speakeasyVersion: 1.665.0
22
sources:
33
novu-OAS:
44
sourceNamespace: novu-oas
5-
sourceRevisionDigest: sha256:a1ecbc8826e4c99f0eba013e72a0b7d137c6aa70f31ac88948b2d571cb476dcf
6-
sourceBlobDigest: sha256:fc1122d49b404467ed4d48ccdb9af6e55efa56b47692d193bf4d1f954668fbfd
5+
sourceRevisionDigest: sha256:93eb63fe2aa8d746eeebc5c8855ce56a41e5665865e36a5dc80892c318cda4ed
6+
sourceBlobDigest: sha256:321f8ceed9b8ba44882a748b25d046cc2663bb2561604cff7b24c96c8637a416
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1761092124
9+
- speakeasy-sdk-regen-1763597727
1010
- 3.11.0
1111
targets:
1212
novu:
1313
source: novu-OAS
1414
sourceNamespace: novu-oas
15-
sourceRevisionDigest: sha256:a1ecbc8826e4c99f0eba013e72a0b7d137c6aa70f31ac88948b2d571cb476dcf
16-
sourceBlobDigest: sha256:fc1122d49b404467ed4d48ccdb9af6e55efa56b47692d193bf4d1f954668fbfd
15+
sourceRevisionDigest: sha256:93eb63fe2aa8d746eeebc5c8855ce56a41e5665865e36a5dc80892c318cda4ed
16+
sourceBlobDigest: sha256:321f8ceed9b8ba44882a748b25d046cc2663bb2561604cff7b24c96c8637a416
1717
codeSamplesNamespace: novu-oas-go-code-samples
18-
codeSamplesRevisionDigest: sha256:e753ff845d5d1c2e89c99885f7ae4561de6382d69df0c019aaa5e3a2f64a29dc
18+
codeSamplesRevisionDigest: sha256:1643d9770b77dad31d4752b602a946ba9e46a53b2cf3d4eb7df0a145c6cb21c0
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,11 @@ func main() {
210210
SubscriberID: "<id>",
211211
},
212212
)),
213+
Context: map[string]components.TriggerEventToAllRequestDtoContext{
214+
"key": components.CreateTriggerEventToAllRequestDtoContextStr(
215+
"org-acme",
216+
),
217+
},
213218
}, nil)
214219
if err != nil {
215220
log.Fatal(err)
@@ -477,6 +482,7 @@ func main() {
477482
* [List](docs/sdks/subscriptions/README.md#list) - List topic subscriptions
478483
* [Create](docs/sdks/subscriptions/README.md#create) - Create topic subscriptions
479484
* [Delete](docs/sdks/subscriptions/README.md#delete) - Delete topic subscriptions
485+
* [Update](docs/sdks/subscriptions/README.md#update) - Update a topic subscription
480486

481487
### [Translations](docs/sdks/translations/README.md)
482488

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,14 @@ Based on:
158158
### Generated
159159
- [go v3.11.0] .
160160
### Releases
161-
- [Go v3.11.0] https://github.com/novuhq/novu-go/releases/tag/v3.11.0 - .
161+
- [Go v3.11.0] https://github.com/novuhq/novu-go/releases/tag/v3.11.0 - .
162+
163+
## 2025-11-29 00:14:32
164+
### Changes
165+
Based on:
166+
- OpenAPI Doc
167+
- Speakeasy CLI 1.665.0 (2.767.2) https://github.com/speakeasy-api/speakeasy
168+
### Generated
169+
- [go v3.12.0] .
170+
### Releases
171+
- [Go v3.12.0] https://github.com/novuhq/novu-go/releases/tag/v3.12.0 - .

USAGE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,11 @@ func main() {
126126
SubscriberID: "<id>",
127127
},
128128
)),
129+
Context: map[string]components.TriggerEventToAllRequestDtoContext{
130+
"key": components.CreateTriggerEventToAllRequestDtoContextStr(
131+
"org-acme",
132+
),
133+
},
129134
}, nil)
130135
if err != nil {
131136
log.Fatal(err)

contexts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ func (s *Contexts) List(ctx context.Context, request operations.ContextsControll
442442

443443
utils.PopulateHeaders(ctx, req, request, nil)
444444

445-
if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil {
445+
if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil {
446446
return nil, fmt.Errorf("error populating query params: %w", err)
447447
}
448448

docs/models/components/content.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
# Content
22

3-
Translation content as JSON object
3+
Content of the message, can be an email block or a string
44

55

6-
## Fields
6+
## Supported Types
7+
8+
###
9+
10+
```go
11+
content := components.CreateContentArrayOfEmailBlock([]components.EmailBlock{/* values here */})
12+
```
13+
14+
###
15+
16+
```go
17+
content := components.CreateContentStr(string{/* values here */})
18+
```
719

8-
| Field | Type | Required | Description |
9-
| ----------- | ----------- | ----------- | ----------- |

docs/models/components/context2.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Context2
2+
3+
Rich context object with id and optional data
4+
5+
6+
## Fields
7+
8+
| Field | Type | Required | Description | Example |
9+
| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- |
10+
| `ID` | *string* | :heavy_check_mark: | N/A | org-acme |
11+
| `Data` | map[string]*any* | :heavy_minus_sign: | Optional additional context data | {<br/>"name": "Acme Corp",<br/>"region": "us-east-1"<br/>} |
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# CreateSubscriptionsResponseDto
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
8+
| `Data` | [][components.SubscriptionResponseDto](../../models/components/subscriptionresponsedto.md) | :heavy_check_mark: | The list of successfully created subscriptions |
9+
| `Meta` | [components.MetaDto](../../models/components/metadto.md) | :heavy_check_mark: | Metadata about the operation |
10+
| `Errors` | [][components.SubscriptionErrorDto](../../models/components/subscriptionerrordto.md) | :heavy_minus_sign: | The list of errors for failed subscription attempts |

0 commit comments

Comments
 (0)