Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6,061 changes: 5,060 additions & 1,001 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ generation:
schemas:
allOfMergeStrategy: shallowMerge
requestBodyFieldName: ""
persistentEdits: {}
tests:
generateTests: true
generateNewTests: false
skipResponseBodyAssertions: false
go:
version: 3.11.0
version: 3.12.0
additionalDependencies:
github.com/google/uuid: v1.6.0
allowUnknownFieldsInWeakUnions: false
Expand All @@ -46,14 +47,16 @@ go:
shared: models/components
webhooks: models/webhooks
includeEmptyObjects: false
inferUnionDiscriminators: false
inputModelSuffix: input
maxMethodParams: 4
methodArguments: require-security-and-request
modulePath: ""
multipartArrayFormat: legacy
nullableOptionalWrapper: false
outputModelSuffix: output
packageName: github.com/novuhq/novu-go
respectRequiredFields: false
responseFormat: envelope-http
sdkPackageName: ""
unionDeserializationStrategy: left-to-right
unionStrategy: left-to-right
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.658.2
speakeasyVersion: 1.674.0
sources:
novu-OAS:
sourceNamespace: novu-oas
sourceRevisionDigest: sha256:a1ecbc8826e4c99f0eba013e72a0b7d137c6aa70f31ac88948b2d571cb476dcf
sourceBlobDigest: sha256:fc1122d49b404467ed4d48ccdb9af6e55efa56b47692d193bf4d1f954668fbfd
sourceRevisionDigest: sha256:ac2c4795fcbf28bfadfd15f6d063cf9393e6266f3157e280f624d9d173f9bcff
sourceBlobDigest: sha256:03a176c32620a1b33cef4b5335e26cefbcd4e18d00a17f87520001592e1ff1a0
tags:
- latest
- speakeasy-sdk-regen-1761092124
- speakeasy-sdk-regen-1763597727
- 3.11.0
targets:
novu:
source: novu-OAS
sourceNamespace: novu-oas
sourceRevisionDigest: sha256:a1ecbc8826e4c99f0eba013e72a0b7d137c6aa70f31ac88948b2d571cb476dcf
sourceBlobDigest: sha256:fc1122d49b404467ed4d48ccdb9af6e55efa56b47692d193bf4d1f954668fbfd
sourceRevisionDigest: sha256:ac2c4795fcbf28bfadfd15f6d063cf9393e6266f3157e280f624d9d173f9bcff
sourceBlobDigest: sha256:03a176c32620a1b33cef4b5335e26cefbcd4e18d00a17f87520001592e1ff1a0
codeSamplesNamespace: novu-oas-go-code-samples
codeSamplesRevisionDigest: sha256:e753ff845d5d1c2e89c99885f7ae4561de6382d69df0c019aaa5e3a2f64a29dc
codeSamplesRevisionDigest: sha256:a945cd396b714c52112b9ff69ce1affdb589182bdd464699a51ee00ccc02798f
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
20 changes: 13 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ func main() {
SubscriberID: "<id>",
},
)),
Context: map[string]components.TriggerEventToAllRequestDtoContext{
"key": components.CreateTriggerEventToAllRequestDtoContextStr(
"org-acme",
),
},
}, nil)
if err != nil {
log.Fatal(err)
Expand Down Expand Up @@ -361,6 +366,13 @@ func main() {
<details open>
<summary>Available methods</summary>

### [Novu SDK](docs/sdks/novu/README.md)

* [Trigger](docs/sdks/novu/README.md#trigger) - Trigger event
* [Cancel](docs/sdks/novu/README.md#cancel) - Cancel triggered event
* [TriggerBroadcast](docs/sdks/novu/README.md#triggerbroadcast) - Broadcast event to all
* [TriggerBulk](docs/sdks/novu/README.md#triggerbulk) - Bulk trigger event

### [Activity](docs/sdks/activity/README.md)

* [Track](docs/sdks/activity/README.md#track) - Track activity and engagement events
Expand Down Expand Up @@ -413,13 +425,6 @@ func main() {
* [List](docs/sdks/notifications/README.md#list) - List all events
* [Retrieve](docs/sdks/notifications/README.md#retrieve) - Retrieve an event

### [Novu SDK](docs/sdks/novu/README.md)

* [Trigger](docs/sdks/novu/README.md#trigger) - Trigger event
* [Cancel](docs/sdks/novu/README.md#cancel) - Cancel triggered event
* [TriggerBroadcast](docs/sdks/novu/README.md#triggerbroadcast) - Broadcast event to all
* [TriggerBulk](docs/sdks/novu/README.md#triggerbulk) - Bulk trigger event

### [Subscribers](docs/sdks/subscribers/README.md)

* [Search](docs/sdks/subscribers/README.md#search) - Search subscribers
Expand Down Expand Up @@ -477,6 +482,7 @@ func main() {
* [List](docs/sdks/subscriptions/README.md#list) - List topic subscriptions
* [Create](docs/sdks/subscriptions/README.md#create) - Create topic subscriptions
* [Delete](docs/sdks/subscriptions/README.md#delete) - Delete topic subscriptions
* [Update](docs/sdks/subscriptions/README.md#update) - Update a topic subscription

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

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,4 +158,14 @@ Based on:
### Generated
- [go v3.11.0] .
### Releases
- [Go v3.11.0] https://github.com/novuhq/novu-go/releases/tag/v3.11.0 - .
- [Go v3.11.0] https://github.com/novuhq/novu-go/releases/tag/v3.11.0 - .

## 2025-12-10 00:15:49
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.674.0 (2.778.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v3.12.0] .
### Releases
- [Go v3.12.0] https://github.com/novuhq/novu-go/releases/tag/v3.12.0 - .
5 changes: 5 additions & 0 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ func main() {
SubscriberID: "<id>",
},
)),
Context: map[string]components.TriggerEventToAllRequestDtoContext{
"key": components.CreateTriggerEventToAllRequestDtoContextStr(
"org-acme",
),
},
}, nil)
if err != nil {
log.Fatal(err)
Expand Down
2 changes: 1 addition & 1 deletion contexts.go
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ func (s *Contexts) List(ctx context.Context, request operations.ContextsControll

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

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

Expand Down
18 changes: 14 additions & 4 deletions docs/models/components/content.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
# Content

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


## Fields
## Supported Types

###

```go
content := components.CreateContentArrayOfEmailBlock([]components.EmailBlock{/* values here */})
```

###

```go
content := components.CreateContentStr(string{/* values here */})
```

| Field | Type | Required | Description |
| ----------- | ----------- | ----------- | ----------- |
11 changes: 11 additions & 0 deletions docs/models/components/context2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Context2

Rich context object with id and optional data


## Fields

| Field | Type | Required | Description | Example |
| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- |
| `ID` | *string* | :heavy_check_mark: | N/A | org-acme |
| `Data` | map[string]*any* | :heavy_minus_sign: | Optional additional context data | {<br/>"name": "Acme Corp",<br/>"region": "us-east-1"<br/>} |
2 changes: 1 addition & 1 deletion docs/models/components/createcontextrequestdto.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| `Type` | *string* | :heavy_check_mark: | Context type (e.g., tenant, app, workspace). Must be lowercase alphanumeric with optional separators. | tenant |
| `ID` | *string* | :heavy_check_mark: | Unique identifier for this context. Must be lowercase alphanumeric with optional separators. | org-acme |
| `Data` | [*components.Data](../../models/components/data.md) | :heavy_minus_sign: | Optional custom data to associate with this context. | {<br/>"tenantName": "Acme Corp",<br/>"region": "us-east-1",<br/>"settings": {<br/>"theme": "dark"<br/>}<br/>} |
| `Data` | map[string]*any* | :heavy_minus_sign: | Optional custom data to associate with this context. | {<br/>"tenantName": "Acme Corp",<br/>"region": "us-east-1",<br/>"settings": {<br/>"theme": "dark"<br/>}<br/>} |
10 changes: 10 additions & 0 deletions docs/models/components/createsubscriptionsresponsedto.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# CreateSubscriptionsResponseDto


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
| `Data` | [][components.SubscriptionResponseDto](../../models/components/subscriptionresponsedto.md) | :heavy_check_mark: | The list of successfully created subscriptions |
| `Meta` | [components.MetaDto](../../models/components/metadto.md) | :heavy_check_mark: | Metadata about the operation |
| `Errors` | [][components.SubscriptionErrorDto](../../models/components/subscriptionerrordto.md) | :heavy_minus_sign: | The list of errors for failed subscription attempts |
9 changes: 6 additions & 3 deletions docs/models/components/createtopicsubscriptionsrequestdto.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

## Fields

| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- |
| `SubscriberIds` | []*string* | :heavy_check_mark: | List of subscriber identifiers to subscribe to the topic (max: 100) | [<br/>"subscriberId1",<br/>"subscriberId2"<br/>] |
| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ~~`SubscriberIds`~~ | []*string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.<br/><br/>List of subscriber IDs to subscribe to the topic (max: 100). @deprecated Use the "subscriptions" property instead. | [<br/>"subscriberId1",<br/>"subscriberId2"<br/>] |
| `Subscriptions` | [][components.Subscriptions](../../models/components/subscriptions.md) | :heavy_minus_sign: | List of subscriptions to subscribe to the topic (max: 100). Can be either a string array of subscriber IDs or an array of objects with identifier and subscriberId | [<br/>{<br/>"identifier": "subscriber-123-subscription-a",<br/>"subscriberId": "subscriber-123"<br/>},<br/>{<br/>"identifier": "subscriber-456-subscription-b",<br/>"subscriberId": "subscriber-456"<br/>}<br/>] |
| `Name` | **string* | :heavy_minus_sign: | The name of the topic | My Topic |
| `Preferences` | [][components.Preferences](../../models/components/preferences.md) | :heavy_minus_sign: | The preferences of the topic. Can be a simple workflow ID string, workflow preference object, or group filter object | [<br/>{<br/>"workflowId": "workflow-123",<br/>"condition": {<br/>"===": [<br/>{<br/>"var": "tier"<br/>},<br/>"premium"<br/>]<br/>}<br/>}<br/>] |
Loading