Skip to content

Commit 4d0c881

Browse files
github-actions[bot]speakeasybotspeakeasy-github[bot]
authored
chore: 🐝 Update SDK - Generate 1.6.1-rc.0 (#87)
* ## Typescript SDK Changes Detected: * `novu.inboundWebhooksControllerHandleWebhook()`: **Added** * `novu.layouts.create()`: **Added** * `novu.layouts.list()`: **Added** * `novu.layouts.update()`: **Added** * `novu.layouts.retrieve()`: **Added** * `novu.layouts.delete()`: **Added** * `novu.layouts.duplicate()`: **Added** * `novu.layouts.generatePreview()`: **Added** * `novu.layouts.usage()`: **Added** * `novu.translations.create()`: **Added** * `novu.translations.retrieve()`: **Added** * `novu.translations.delete()`: **Added** * `novu.translations.upload()`: **Added** * `novu.translations.groups.delete()`: **Added** * `novu.translations.groups.retrieve()`: **Added** * `novu.translations.master.retrieve()`: **Added** * `novu.translations.master.import()`: **Added** * `novu.translations.master.upload()`: **Added** * `novu.integrations.integrationsControllerAutoConfigureIntegration()`: **Added** * `novu.trigger()`: * `request.triggereventrequestdto.overrides.severity` **Added** * `novu.triggerBroadcast()`: * `request.triggereventtoallrequestdto.overrides.severity` **Added** * `novu.triggerBulk()`: * `request.bulktriggereventdto.events.[].overrides.severity` **Added** * `novu.subscribers.preferences.list()`: * `request.criticality` **Added** * `response.global.schedule` **Added** * `novu.subscribers.preferences.update()`: `response.global.schedule` **Added** * `novu.workflows.list()`: `response.workflows.[].steps` **Added** * `novu.workflows.create()`: * `request.createworkflowdto.severity` **Added** * `response.severity` **Added** * `novu.workflows.get()`: `response.severity` **Added** * `novu.workflows.update()`: * `request.updateworkflowdto.severity` **Added** * `response.severity` **Added** * `novu.workflows.patch()`: `response.severity` **Added** * `novu.workflows.sync()`: `response.severity` **Added** * `novu.integrations.list()`: `response.[]` **Changed** * `novu.integrations.create()`: * `request.createintegrationrequestdto` **Changed** * `response` **Changed** * `novu.integrations.update()`: * `request.updateintegrationrequestdto` **Changed** * `response` **Changed** * `novu.integrations.delete()`: `response.[]` **Changed** * `novu.integrations.setAsPrimary()`: `response` **Changed** * `novu.integrations.listActive()`: `response.[]` **Changed** * `novu.notifications.list()`: * `request.severity` **Added** * `response.data.[]` **Changed** * `novu.notifications.retrieve()`: `response` **Changed** * empty commit to trigger [run-tests] workflow --------- Co-authored-by: speakeasybot <[email protected]> Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
1 parent 08bc837 commit 4d0c881

File tree

316 files changed

+28215
-5049
lines changed

Some content is hidden

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

316 files changed

+28215
-5049
lines changed

.speakeasy/gen.lock

Lines changed: 423 additions & 17 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ generation:
1616
auth:
1717
oAuth2ClientCredentialsEnabled: false
1818
oAuth2PasswordEnabled: false
19+
hoistGlobalSecurity: true
1920
tests:
2021
generateTests: true
2122
generateNewTests: false
2223
skipResponseBodyAssertions: false
2324
typescript:
24-
version: 1.6.0
25+
version: 1.6.1-rc.0
2526
additionalDependencies:
2627
dependencies: {}
2728
devDependencies: {}
@@ -56,6 +57,7 @@ typescript:
5657
outputModelSuffix: output
5758
packageName: '@novu/api'
5859
responseFormat: flat
60+
sseFlatResponse: false
5961
templateVersion: v2
6062
usageSDKInitImports: []
6163
useIndexModules: true

.speakeasy/workflow.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.605.1
1+
speakeasyVersion: 1.615.2
22
sources:
33
json-development:
44
sourceNamespace: json-development
5-
sourceRevisionDigest: sha256:8f360edc987de3517de4b7d2ff961fd7b01470d813ac314e7e7250730c44e723
6-
sourceBlobDigest: sha256:4657273d3a7d1bb5fdef66dcf62781004659a4f3cdcb8106852b5a4860ece076
5+
sourceRevisionDigest: sha256:155fe598de5aff630be2ec3a06495dd2c29976fee43851393caebd3002c11517
6+
sourceBlobDigest: sha256:e8d1baee30391dc05492466a0f65ee082b2a23e6328c44aeefa182381b9a2952
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1755453459
10-
- 2.3.0
9+
- speakeasy-sdk-regen-1757660573
10+
- 3.9.0
1111
targets:
1212
my-first-target:
1313
source: json-development
1414
sourceNamespace: json-development
15-
sourceRevisionDigest: sha256:8f360edc987de3517de4b7d2ff961fd7b01470d813ac314e7e7250730c44e723
16-
sourceBlobDigest: sha256:4657273d3a7d1bb5fdef66dcf62781004659a4f3cdcb8106852b5a4860ece076
15+
sourceRevisionDigest: sha256:155fe598de5aff630be2ec3a06495dd2c29976fee43851393caebd3002c11517
16+
sourceBlobDigest: sha256:e8d1baee30391dc05492466a0f65ee082b2a23e6328c44aeefa182381b9a2952
1717
codeSamplesNamespace: code-samples-typescript
18-
codeSamplesRevisionDigest: sha256:22571a6af5c8a9be397c1449e1387b717f167f17fb4a5040f64838f33611e3b0
18+
codeSamplesRevisionDigest: sha256:b41e40aa74795bb79e4b0de3e1d4503fddc3061d0b9a621016fc2a9f56006cec
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 60 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,21 @@ run();
344344
* [create](docs/sdks/integrations/README.md#create) - Create an integration
345345
* [update](docs/sdks/integrations/README.md#update) - Update an integration
346346
* [delete](docs/sdks/integrations/README.md#delete) - Delete an integration
347+
* [integrationsControllerAutoConfigureIntegration](docs/sdks/integrations/README.md#integrationscontrollerautoconfigureintegration) - Auto-configure an integration for inbound webhooks
347348
* [setAsPrimary](docs/sdks/integrations/README.md#setasprimary) - Update integration as primary
348349
* [listActive](docs/sdks/integrations/README.md#listactive) - List active integrations
349350

351+
### [layouts](docs/sdks/layouts/README.md)
352+
353+
* [create](docs/sdks/layouts/README.md#create) - Create a layout
354+
* [list](docs/sdks/layouts/README.md#list) - List all layouts
355+
* [update](docs/sdks/layouts/README.md#update) - Update a layout
356+
* [retrieve](docs/sdks/layouts/README.md#retrieve) - Retrieve a layout
357+
* [delete](docs/sdks/layouts/README.md#delete) - Delete a layout
358+
* [duplicate](docs/sdks/layouts/README.md#duplicate) - Duplicate a layout
359+
* [generatePreview](docs/sdks/layouts/README.md#generatepreview) - Generate layout preview
360+
* [usage](docs/sdks/layouts/README.md#usage) - Get layout usage
361+
350362
### [messages](docs/sdks/messages/README.md)
351363

352364
* [retrieve](docs/sdks/messages/README.md#retrieve) - List all messages
@@ -360,6 +372,7 @@ run();
360372

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

375+
* [inboundWebhooksControllerHandleWebhook](docs/sdks/novu/README.md#inboundwebhookscontrollerhandlewebhook)
363376
* [trigger](docs/sdks/novu/README.md#trigger) - Trigger event
364377
* [cancel](docs/sdks/novu/README.md#cancel) - Cancel triggered event
365378
* [triggerBroadcast](docs/sdks/novu/README.md#triggerbroadcast) - Broadcast event to all
@@ -423,6 +436,24 @@ run();
423436
* [create](docs/sdks/subscriptions/README.md#create) - Create topic subscriptions
424437
* [delete](docs/sdks/subscriptions/README.md#delete) - Delete topic subscriptions
425438

439+
### [translations](docs/sdks/translations/README.md)
440+
441+
* [create](docs/sdks/translations/README.md#create) - Create or update translation
442+
* [retrieve](docs/sdks/translations/README.md#retrieve) - Get single translation
443+
* [delete](docs/sdks/translations/README.md#delete) - Delete translation
444+
* [upload](docs/sdks/translations/README.md#upload) - Upload translation files
445+
446+
#### [translations.groups](docs/sdks/groups/README.md)
447+
448+
* [delete](docs/sdks/groups/README.md#delete) - Delete translation group
449+
* [retrieve](docs/sdks/groups/README.md#retrieve) - Get translation group
450+
451+
#### [translations.master](docs/sdks/master/README.md)
452+
453+
* [retrieve](docs/sdks/master/README.md#retrieve) - Get master translations JSON
454+
* [import](docs/sdks/master/README.md#import) - Import master translations JSON
455+
* [upload](docs/sdks/master/README.md#upload) - Upload master translations JSON file
456+
426457
### [workflows](docs/sdks/workflows/README.md)
427458

428459
* [create](docs/sdks/workflows/README.md#create) - Create a workflow
@@ -461,12 +492,22 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
461492
- [`environmentsGetTags`](docs/sdks/environments/README.md#gettags) - Get environment tags
462493
- [`environmentsList`](docs/sdks/environments/README.md#list) - List all environments
463494
- [`environmentsUpdate`](docs/sdks/environments/README.md#update) - Update an environment
495+
- [`inboundWebhooksControllerHandleWebhook`](docs/sdks/novu/README.md#inboundwebhookscontrollerhandlewebhook)
464496
- [`integrationsCreate`](docs/sdks/integrations/README.md#create) - Create an integration
465497
- [`integrationsDelete`](docs/sdks/integrations/README.md#delete) - Delete an integration
498+
- [`integrationsIntegrationsControllerAutoConfigureIntegration`](docs/sdks/integrations/README.md#integrationscontrollerautoconfigureintegration) - Auto-configure an integration for inbound webhooks
466499
- [`integrationsList`](docs/sdks/integrations/README.md#list) - List all integrations
467500
- [`integrationsListActive`](docs/sdks/integrations/README.md#listactive) - List active integrations
468501
- [`integrationsSetAsPrimary`](docs/sdks/integrations/README.md#setasprimary) - Update integration as primary
469502
- [`integrationsUpdate`](docs/sdks/integrations/README.md#update) - Update an integration
503+
- [`layoutsCreate`](docs/sdks/layouts/README.md#create) - Create a layout
504+
- [`layoutsDelete`](docs/sdks/layouts/README.md#delete) - Delete a layout
505+
- [`layoutsDuplicate`](docs/sdks/layouts/README.md#duplicate) - Duplicate a layout
506+
- [`layoutsGeneratePreview`](docs/sdks/layouts/README.md#generatepreview) - Generate layout preview
507+
- [`layoutsList`](docs/sdks/layouts/README.md#list) - List all layouts
508+
- [`layoutsRetrieve`](docs/sdks/layouts/README.md#retrieve) - Retrieve a layout
509+
- [`layoutsUpdate`](docs/sdks/layouts/README.md#update) - Update a layout
510+
- [`layoutsUsage`](docs/sdks/layouts/README.md#usage) - Get layout usage
470511
- [`messagesDelete`](docs/sdks/messages/README.md#delete) - Delete a message
471512
- [`messagesDeleteByTransactionId`](docs/sdks/messages/README.md#deletebytransactionid) - Delete messages by transactionId
472513
- [`messagesRetrieve`](docs/sdks/messages/README.md#retrieve) - List all messages
@@ -500,6 +541,15 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
500541
- [`topicsSubscriptionsDelete`](docs/sdks/subscriptions/README.md#delete) - Delete topic subscriptions
501542
- [`topicsSubscriptionsList`](docs/sdks/subscriptions/README.md#list) - List topic subscriptions
502543
- [`topicsUpdate`](docs/sdks/topics/README.md#update) - Update a topic
544+
- [`translationsCreate`](docs/sdks/translations/README.md#create) - Create or update translation
545+
- [`translationsDelete`](docs/sdks/translations/README.md#delete) - Delete translation
546+
- [`translationsGroupsDelete`](docs/sdks/groups/README.md#delete) - Delete translation group
547+
- [`translationsGroupsRetrieve`](docs/sdks/groups/README.md#retrieve) - Get translation group
548+
- [`translationsMasterImport`](docs/sdks/master/README.md#import) - Import master translations JSON
549+
- [`translationsMasterRetrieve`](docs/sdks/master/README.md#retrieve) - Get master translations JSON
550+
- [`translationsMasterUpload`](docs/sdks/master/README.md#upload) - Upload master translations JSON file
551+
- [`translationsRetrieve`](docs/sdks/translations/README.md#retrieve) - Get single translation
552+
- [`translationsUpload`](docs/sdks/translations/README.md#upload) - Upload translation files
503553
- [`trigger`](docs/sdks/novu/README.md#trigger) - Trigger event
504554
- [`triggerBroadcast`](docs/sdks/novu/README.md#triggerbroadcast) - Broadcast event to all
505555
- [`triggerBulk`](docs/sdks/novu/README.md#triggerbulk) - Bulk trigger event
@@ -580,8 +630,8 @@ run();
580630
### Error Classes
581631
**Primary errors:**
582632
* [`NovuError`](./src/models/errors/novuerror.ts): The base class for HTTP error responses.
583-
* [`ErrorDto`](./src/models/errors/errordto.ts): Generic error.
584-
* [`ValidationErrorDto`](./src/models/errors/validationerrordto.ts): Unprocessable Entity. Status code `422`.
633+
* [`ErrorDto`](./src/models/errors/errordto.ts): *
634+
* [`ValidationErrorDto`](./src/models/errors/validationerrordto.ts): Unprocessable Entity. Status code `422`. *
585635

586636
<details><summary>Less common errors (9)</summary>
587637

@@ -596,9 +646,9 @@ run();
596646

597647

598648
**Inherit from [`NovuError`](./src/models/errors/novuerror.ts)**:
599-
* [`PayloadValidationExceptionDto`](./src/models/errors/payloadvalidationexceptiondto.ts): Status code `400`. Applicable to 3 of 56 methods.*
600-
* [`SubscriberResponseDto`](./src/models/errors/subscriberresponsedto.ts): Created. Status code `409`. Applicable to 1 of 56 methods.*
601-
* [`TopicResponseDto`](./src/models/errors/topicresponsedto.ts): OK. Status code `409`. Applicable to 1 of 56 methods.*
649+
* [`PayloadValidationExceptionDto`](./src/models/errors/payloadvalidationexceptiondto.ts): Status code `400`. Applicable to 3 of 75 methods.*
650+
* [`SubscriberResponseDto`](./src/models/errors/subscriberresponsedto.ts): Created. Status code `409`. Applicable to 1 of 75 methods.*
651+
* [`TopicResponseDto`](./src/models/errors/topicresponsedto.ts): OK. Status code `409`. Applicable to 1 of 75 methods.*
602652
* [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
603653

604654
</details>
@@ -629,19 +679,7 @@ const novu = new Novu({
629679
});
630680

631681
async function run() {
632-
const result = await novu.trigger({
633-
workflowId: "workflow_identifier",
634-
payload: {
635-
"comment_id": "string",
636-
"post": {
637-
"text": "string",
638-
},
639-
},
640-
overrides: {},
641-
to: "SUBSCRIBER_ID",
642-
});
643-
644-
console.log(result);
682+
await novu.inboundWebhooksControllerHandleWebhook("<id>", "<id>");
645683
}
646684

647685
run();
@@ -660,19 +698,7 @@ const novu = new Novu({
660698
});
661699

662700
async function run() {
663-
const result = await novu.trigger({
664-
workflowId: "workflow_identifier",
665-
payload: {
666-
"comment_id": "string",
667-
"post": {
668-
"text": "string",
669-
},
670-
},
671-
overrides: {},
672-
to: "SUBSCRIBER_ID",
673-
});
674-
675-
console.log(result);
701+
await novu.inboundWebhooksControllerHandleWebhook("<id>", "<id>");
676702
}
677703

678704
run();
@@ -749,19 +775,7 @@ const novu = new Novu({
749775
});
750776

751777
async function run() {
752-
const result = await novu.trigger({
753-
workflowId: "workflow_identifier",
754-
payload: {
755-
"comment_id": "string",
756-
"post": {
757-
"text": "string",
758-
},
759-
},
760-
overrides: {},
761-
to: "SUBSCRIBER_ID",
762-
});
763-
764-
console.log(result);
778+
await novu.inboundWebhooksControllerHandleWebhook("<id>", "<id>");
765779
}
766780

767781
run();
@@ -783,17 +797,7 @@ const novu = new Novu({
783797
});
784798

785799
async function run() {
786-
const result = await novu.trigger({
787-
workflowId: "workflow_identifier",
788-
payload: {
789-
"comment_id": "string",
790-
"post": {
791-
"text": "string",
792-
},
793-
},
794-
overrides: {},
795-
to: "SUBSCRIBER_ID",
796-
}, {
800+
await novu.inboundWebhooksControllerHandleWebhook("<id>", "<id>", {
797801
retries: {
798802
strategy: "backoff",
799803
backoff: {
@@ -805,8 +809,6 @@ async function run() {
805809
retryConnectionErrors: false,
806810
},
807811
});
808-
809-
console.log(result);
810812
}
811813

812814
run();
@@ -832,19 +834,7 @@ const novu = new Novu({
832834
});
833835

834836
async function run() {
835-
const result = await novu.trigger({
836-
workflowId: "workflow_identifier",
837-
payload: {
838-
"comment_id": "string",
839-
"post": {
840-
"text": "string",
841-
},
842-
},
843-
overrides: {},
844-
to: "SUBSCRIBER_ID",
845-
});
846-
847-
console.log(result);
837+
await novu.inboundWebhooksControllerHandleWebhook("<id>", "<id>");
848838
}
849839

850840
run();

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,4 +228,14 @@ Based on:
228228
### Generated
229229
- [typescript v1.6.0] .
230230
### Releases
231-
- [NPM v1.6.0] https://www.npmjs.com/package/@novu/api/v/1.6.0 - .
231+
- [NPM v1.6.0] https://www.npmjs.com/package/@novu/api/v/1.6.0 - .
232+
233+
## 2025-09-12 07:02:35
234+
### Changes
235+
Based on:
236+
- OpenAPI Doc
237+
- Speakeasy CLI 1.615.2 (2.698.4) https://github.com/speakeasy-api/speakeasy
238+
### Generated
239+
- [typescript v1.6.1-rc.0] .
240+
### Releases
241+
- [NPM v1.6.1-rc.0] https://www.npmjs.com/package/@novu/api/v/1.6.1-rc.0 - .

docs/models/components/activitiesresponsedto.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,34 @@ let value: ActivitiesResponseDto = {
2424
detail: "<value>",
2525
isRetry: false,
2626
isTest: true,
27-
providerId: "emailjs",
28-
source: "Webhook",
27+
source: "Credentials",
2928
},
3029
],
3130
step: {
3231
id: "<id>",
3332
active: false,
34-
filters: [],
33+
filters: [
34+
{
35+
isNegated: true,
36+
type: "LIST",
37+
value: "OR",
38+
children: [
39+
{
40+
field: "<value>",
41+
value: "<value>",
42+
operator: "IN",
43+
on: "payload",
44+
},
45+
],
46+
},
47+
],
3548
templateId: "<id>",
3649
},
3750
overrides: {
3851
"workflowId": "some_wf_id",
3952
"stepId": "some_wf_id",
4053
},
41-
providerId: "imedia",
54+
providerId: "ryver",
4255
status: "<value>",
4356
},
4457
],

docs/models/components/activitynotificationexecutiondetailresponsedto.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ let value: ActivityNotificationExecutionDetailResponseDto = {
1111
detail: "<value>",
1212
isRetry: true,
1313
isTest: true,
14-
providerId: "isend-sms",
15-
source: "Webhook",
14+
source: "Internal",
1615
};
1716
```
1817

@@ -26,6 +25,6 @@ let value: ActivityNotificationExecutionDetailResponseDto = {
2625
| `detail` | *string* | :heavy_check_mark: | Detailed information about the execution |
2726
| `isRetry` | *boolean* | :heavy_check_mark: | Whether the execution is a retry or not |
2827
| `isTest` | *boolean* | :heavy_check_mark: | Whether the execution is a test or not |
29-
| `providerId` | [components.ProvidersIdEnum](../../models/components/providersidenum.md) | :heavy_check_mark: | Provider ID of the job |
28+
| `providerId` | [components.ProvidersIdEnum](../../models/components/providersidenum.md) | :heavy_minus_sign: | Provider ID of the job |
3029
| `raw` | *string* | :heavy_minus_sign: | Raw data of the execution |
3130
| `source` | [components.ExecutionDetailsSourceEnum](../../models/components/executiondetailssourceenum.md) | :heavy_check_mark: | Source of the execution detail |

docs/models/components/activitynotificationjobresponsedto.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,28 @@ let value: ActivityNotificationJobResponseDto = {
1212
step: {
1313
id: "<id>",
1414
active: false,
15-
filters: [],
15+
filters: [
16+
{
17+
isNegated: true,
18+
type: "LIST",
19+
value: "OR",
20+
children: [
21+
{
22+
field: "<value>",
23+
value: "<value>",
24+
operator: "IN",
25+
on: "payload",
26+
},
27+
],
28+
},
29+
],
1630
templateId: "<id>",
1731
},
1832
overrides: {
1933
"workflowId": "some_wf_id",
2034
"stepId": "some_wf_id",
2135
},
22-
providerId: "email-webhook",
36+
providerId: "braze",
2337
status: "<value>",
2438
};
2539
```

0 commit comments

Comments
 (0)