Skip to content

Commit b7763f7

Browse files
github-actions[bot]speakeasybotspeakeasy-github[bot]
authored
chore: 🐝 Update SDK - Generate 1.4.0 (#73)
* ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.563.4 * 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 1c95f57 commit b7763f7

File tree

337 files changed

+37205
-5070
lines changed

Some content is hidden

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

337 files changed

+37205
-5070
lines changed

.speakeasy/gen.lock

Lines changed: 505 additions & 7 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@ generation:
1717
oAuth2ClientCredentialsEnabled: false
1818
oAuth2PasswordEnabled: false
1919
typescript:
20-
version: 1.3.0
20+
version: 1.4.0
2121
additionalDependencies:
2222
dependencies: {}
2323
devDependencies: {}
2424
peerDependencies: {}
2525
additionalPackageJSON:
2626
description: The <Inbox /> infrastructure for modern products
2727
author: Novu
28+
baseErrorName: NovuError
2829
clientServerStatusCodesAsErrors: true
2930
defaultErrorName: SDKError
3031
enableCustomCodeRegions: false

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.555.2
1+
speakeasyVersion: 1.563.4
22
sources:
33
json-development:
44
sourceNamespace: json-development
5-
sourceRevisionDigest: sha256:67ef1f8688b0f6cdc89675cecc2f9b369e3e9a76dc327c98191b137157307a99
6-
sourceBlobDigest: sha256:984f580d26ec8b89369e00f478b28313381548c52dceb7153e486117d8a5ffba
5+
sourceRevisionDigest: sha256:7491f63877b05038fdd6805e4781c931f16ccada75d43baf49346cdb14fdf082
6+
sourceBlobDigest: sha256:87bfc6b60753bb4e924d0a2e3cea342b2547e7fc3481277563cc2e7c20825525
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1748996438
9+
- speakeasy-sdk-regen-1750119629
1010
- 2.2.0
1111
targets:
1212
my-first-target:
1313
source: json-development
1414
sourceNamespace: json-development
15-
sourceRevisionDigest: sha256:67ef1f8688b0f6cdc89675cecc2f9b369e3e9a76dc327c98191b137157307a99
16-
sourceBlobDigest: sha256:984f580d26ec8b89369e00f478b28313381548c52dceb7153e486117d8a5ffba
15+
sourceRevisionDigest: sha256:7491f63877b05038fdd6805e4781c931f16ccada75d43baf49346cdb14fdf082
16+
sourceBlobDigest: sha256:87bfc6b60753bb4e924d0a2e3cea342b2547e7fc3481277563cc2e7c20825525
1717
codeSamplesNamespace: code-samples-typescript
18-
codeSamplesRevisionDigest: sha256:2af163e4f094722b4596d41cb247ecae94e39aeaadba7449a1b648c89000b92b
18+
codeSamplesRevisionDigest: sha256:cbfe4ef0e149124e40d9b22e6b349e4b951defc5883e89cbae6d538c27107203
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 70 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,13 @@ run();
330330
<details open>
331331
<summary>Available methods</summary>
332332

333+
### [environments](docs/sdks/environments/README.md)
334+
335+
* [create](docs/sdks/environments/README.md#create) - Create an environment
336+
* [list](docs/sdks/environments/README.md#list) - List all environments
337+
* [update](docs/sdks/environments/README.md#update) - Update an environment
338+
* [delete](docs/sdks/environments/README.md#delete) - Delete an environment
339+
333340
### [integrations](docs/sdks/integrations/README.md)
334341

335342
* [list](docs/sdks/integrations/README.md#list) - List all integrations
@@ -414,6 +421,20 @@ run();
414421
* [create](docs/sdks/subscriptions/README.md#create) - Create topic subscriptions
415422
* [delete](docs/sdks/subscriptions/README.md#delete) - Delete topic subscriptions
416423

424+
### [workflows](docs/sdks/workflows/README.md)
425+
426+
* [create](docs/sdks/workflows/README.md#create) - Create a workflow
427+
* [list](docs/sdks/workflows/README.md#list) - List all workflows
428+
* [update](docs/sdks/workflows/README.md#update) - Update a workflow
429+
* [get](docs/sdks/workflows/README.md#get) - Retrieve a workflow
430+
* [delete](docs/sdks/workflows/README.md#delete) - Delete a workflow
431+
* [patch](docs/sdks/workflows/README.md#patch) - Update a workflow
432+
* [sync](docs/sdks/workflows/README.md#sync) - Sync a workflow
433+
434+
#### [workflows.steps](docs/sdks/steps/README.md)
435+
436+
* [retrieve](docs/sdks/steps/README.md#retrieve) - Retrieve workflow step
437+
417438
</details>
418439
<!-- End Available Resources and Operations [operations] -->
419440

@@ -433,6 +454,10 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
433454
<summary>Available standalone functions</summary>
434455

435456
- [`cancel`](docs/sdks/novu/README.md#cancel) - Cancel triggered event
457+
- [`environmentsCreate`](docs/sdks/environments/README.md#create) - Create an environment
458+
- [`environmentsDelete`](docs/sdks/environments/README.md#delete) - Delete an environment
459+
- [`environmentsList`](docs/sdks/environments/README.md#list) - List all environments
460+
- [`environmentsUpdate`](docs/sdks/environments/README.md#update) - Update an environment
436461
- [`integrationsCreate`](docs/sdks/integrations/README.md#create) - Create an integration
437462
- [`integrationsDelete`](docs/sdks/integrations/README.md#delete) - Delete an integration
438463
- [`integrationsList`](docs/sdks/integrations/README.md#list) - List all integrations
@@ -474,23 +499,30 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
474499
- [`trigger`](docs/sdks/novu/README.md#trigger) - Trigger event
475500
- [`triggerBroadcast`](docs/sdks/novu/README.md#triggerbroadcast) - Broadcast event to all
476501
- [`triggerBulk`](docs/sdks/novu/README.md#triggerbulk) - Bulk trigger event
502+
- [`workflowsCreate`](docs/sdks/workflows/README.md#create) - Create a workflow
503+
- [`workflowsDelete`](docs/sdks/workflows/README.md#delete) - Delete a workflow
504+
- [`workflowsGet`](docs/sdks/workflows/README.md#get) - Retrieve a workflow
505+
- [`workflowsList`](docs/sdks/workflows/README.md#list) - List all workflows
506+
- [`workflowsPatch`](docs/sdks/workflows/README.md#patch) - Update a workflow
507+
- [`workflowsStepsRetrieve`](docs/sdks/steps/README.md#retrieve) - Retrieve workflow step
508+
- [`workflowsSync`](docs/sdks/workflows/README.md#sync) - Sync a workflow
509+
- [`workflowsUpdate`](docs/sdks/workflows/README.md#update) - Update a workflow
477510

478511
</details>
479512
<!-- End Standalone functions [standalone-funcs] -->
480513

481514
<!-- Start Error Handling [errors] -->
482515
## Error Handling
483516

484-
This table shows properties which are common on error classes. For full details see [error classes](#error-classes).
517+
[`NovuError`](./src/models/errors/novuerror.ts) is the base class for all HTTP error responses. It has the following properties:
485518

486519
| Property | Type | Description |
487520
| ------------------- | ---------- | --------------------------------------------------------------------------------------- |
488-
| `error.name` | `string` | Error class name eg `SDKError` |
489521
| `error.message` | `string` | Error message |
490-
| `error.statusCode` | `number` | HTTP status code eg `404` |
491-
| `error.contentType` | `string` | HTTP content type eg `application/json` |
522+
| `error.statusCode` | `number` | HTTP response status code eg `404` |
523+
| `error.headers` | `Headers` | HTTP response headers |
492524
| `error.body` | `string` | HTTP body. Can be empty string if no body is returned. |
493-
| `error.rawResponse` | `Response` | Raw HTTP response. Access to headers and more. |
525+
| `error.rawResponse` | `Response` | Raw HTTP response |
494526
| `error.data$` | | Optional. Some errors may contain structured data. [See Error Classes](#error-classes). |
495527

496528
### Example
@@ -518,22 +550,21 @@ async function run() {
518550

519551
console.log(result);
520552
} catch (error) {
521-
// Depending on the method different errors may be thrown
522-
if (error instanceof errors.PayloadValidationExceptionDto) {
523-
console.log(error.message);
524-
console.log(error.data$.statusCode); // number
525-
console.log(error.data$.timestamp); // string
526-
console.log(error.data$.path); // string
527-
console.log(error.data$.message); // errors.PayloadValidationExceptionDtoMessage
528-
console.log(error.data$.ctx); // { [k: string]: any }
529-
}
530-
531-
// Fallback error class, if no other more specific error class is matched
532-
if (error instanceof errors.SDKError) {
553+
// The base class for HTTP error responses
554+
if (error instanceof errors.NovuError) {
533555
console.log(error.message);
534556
console.log(error.statusCode);
535557
console.log(error.body);
536-
console.log(error.rawResponse.headers);
558+
console.log(error.headers);
559+
560+
// Depending on the method different errors may be thrown
561+
if (error instanceof errors.PayloadValidationExceptionDto) {
562+
console.log(error.data$.statusCode); // number
563+
console.log(error.data$.timestamp); // string
564+
console.log(error.data$.path); // string
565+
console.log(error.data$.message); // errors.PayloadValidationExceptionDtoMessage
566+
console.log(error.data$.ctx); // { [k: string]: any }
567+
}
537568
}
538569
}
539570
}
@@ -543,20 +574,29 @@ run();
543574
```
544575

545576
### Error Classes
546-
* [`ErrorDto`](docs/models/errors/errordto.md): Generic error.
547-
* [`ValidationErrorDto`](docs/models/errors/validationerrordto.md): Unprocessable Entity. Status code `422`.
548-
* `SDKError`: The fallback error class, if no other more specific error class is matched.
549-
* `SDKValidationError`: Type mismatch between the data returned from the server and the structure expected by the SDK. This can also be thrown for invalid method arguments. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
550-
* Network errors:
551-
* `ConnectionError`: HTTP client was unable to make a request to a server.
552-
* `RequestTimeoutError`: HTTP request timed out due to an AbortSignal signal.
553-
* `RequestAbortedError`: HTTP request was aborted by the client.
554-
* `InvalidRequestError`: Any input used to create a request is invalid.
555-
* `UnexpectedClientError`: Unrecognised or unexpected error.
556-
* Less common errors, applicable to a subset of methods:
557-
* [`PayloadValidationExceptionDto`](docs/models/errors/payloadvalidationexceptiondto.md): Status code `400`. Applicable to 3 of 42 methods.*
577+
**Primary errors:**
578+
* [`NovuError`](./src/models/errors/novuerror.ts): The base class for HTTP error responses.
579+
* [`ErrorDto`](docs/models/errors/errordto.md): Generic error.
580+
* [`ValidationErrorDto`](docs/models/errors/validationerrordto.md): Unprocessable Entity. Status code `422`.
581+
582+
<details><summary>Less common errors (7)</summary>
583+
584+
<br />
585+
586+
**Network errors:**
587+
* [`ConnectionError`](./src/models/errors/httpclienterrors.ts): HTTP client was unable to make a request to a server.
588+
* [`RequestTimeoutError`](./src/models/errors/httpclienterrors.ts): HTTP request timed out due to an AbortSignal signal.
589+
* [`RequestAbortedError`](./src/models/errors/httpclienterrors.ts): HTTP request was aborted by the client.
590+
* [`InvalidRequestError`](./src/models/errors/httpclienterrors.ts): Any input used to create a request is invalid.
591+
* [`UnexpectedClientError`](./src/models/errors/httpclienterrors.ts): Unrecognised or unexpected error.
558592

559593

594+
**Inherit from [`NovuError`](./src/models/errors/novuerror.ts)**:
595+
* [`PayloadValidationExceptionDto`](docs/models/errors/payloadvalidationexceptiondto.md): Status code `400`. Applicable to 3 of 54 methods.*
596+
* [`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.
597+
598+
</details>
599+
560600
\* Check [the method documentation](#available-resources-and-operations) to see if the error is applicable.
561601
<!-- End Error Handling [errors] -->
562602

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,4 +198,14 @@ Based on:
198198
### Generated
199199
- [typescript v1.3.0] .
200200
### Releases
201-
- [NPM v1.3.0] https://www.npmjs.com/package/@novu/api/v/1.3.0 - .
201+
- [NPM v1.3.0] https://www.npmjs.com/package/@novu/api/v/1.3.0 - .
202+
203+
## 2025-06-17 16:01:25
204+
### Changes
205+
Based on:
206+
- OpenAPI Doc
207+
- Speakeasy CLI 1.563.4 (2.630.6) https://github.com/speakeasy-api/speakeasy
208+
### Generated
209+
- [typescript v1.4.0] .
210+
### Releases
211+
- [NPM v1.4.0] https://www.npmjs.com/package/@novu/api/v/1.4.0 - .

docs/models/components/actiondto.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# ActionDto
2+
3+
## Example Usage
4+
5+
```typescript
6+
import { ActionDto } from "@novu/api/models/components";
7+
8+
let value: ActionDto = {};
9+
```
10+
11+
## Fields
12+
13+
| Field | Type | Required | Description |
14+
| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- |
15+
| `label` | *string* | :heavy_minus_sign: | Label for the action button. |
16+
| `redirect` | [components.RedirectDto](../../models/components/redirectdto.md) | :heavy_minus_sign: | Redirect configuration for the action. |

docs/models/components/all.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# All
2+
3+
A preference for the workflow. The values specified here will be used if no preference is specified for a channel.
4+
5+
6+
## Supported Types
7+
8+
### `components.WorkflowPreferenceDto`
9+
10+
```typescript
11+
const value: components.WorkflowPreferenceDto = {};
12+
```
13+

docs/models/components/apikeydto.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# ApiKeyDto
2+
3+
## Example Usage
4+
5+
```typescript
6+
import { ApiKeyDto } from "@novu/api/models/components";
7+
8+
let value: ApiKeyDto = {
9+
key: "sk_test_1234567890abcdef",
10+
userId: "60d5ecb8b3b3a30015f3e1a4",
11+
hash: "hash_value_here",
12+
};
13+
```
14+
15+
## Fields
16+
17+
| Field | Type | Required | Description | Example |
18+
| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ |
19+
| `key` | *string* | :heavy_check_mark: | API key | sk_test_1234567890abcdef |
20+
| `userId` | *string* | :heavy_check_mark: | User ID associated with the API key | 60d5ecb8b3b3a30015f3e1a4 |
21+
| `hash` | *string* | :heavy_minus_sign: | Hashed representation of the API key | hash_value_here |
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# BridgeConfigurationDto
2+
3+
## Example Usage
4+
5+
```typescript
6+
import { BridgeConfigurationDto } from "@novu/api/models/components";
7+
8+
let value: BridgeConfigurationDto = {};
9+
```
10+
11+
## Fields
12+
13+
| Field | Type | Required | Description |
14+
| ------------------ | ------------------ | ------------------ | ------------------ |
15+
| `url` | *string* | :heavy_minus_sign: | N/A |
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# ChannelPreferenceDto
2+
3+
## Example Usage
4+
5+
```typescript
6+
import { ChannelPreferenceDto } from "@novu/api/models/components";
7+
8+
let value: ChannelPreferenceDto = {};
9+
```
10+
11+
## Fields
12+
13+
| Field | Type | Required | Description |
14+
| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
15+
| `enabled` | *boolean* | :heavy_minus_sign: | A flag specifying if notification delivery is enabled for the channel. If true, notification delivery is enabled. |

0 commit comments

Comments
 (0)