Skip to content

Commit 33e5855

Browse files
github-actions[bot]speakeasybotspeakeasy-github[bot]
authored
chore: 🐝 Update SDK - Generate 1.3.0 (#22)
* 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 2e1b435 commit 33e5855

File tree

289 files changed

+13338
-204
lines changed

Some content is hidden

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

289 files changed

+13338
-204
lines changed

.speakeasy/gen.lock

Lines changed: 499 additions & 10 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
@@ -7,6 +7,7 @@ generation:
77
maintainOpenAPIOrder: true
88
usageSnippets:
99
optionalPropertyRendering: withExample
10+
sdkInitStyle: constructor
1011
useClassNamesForArrayFields: true
1112
fixes:
1213
nameResolutionDec2023: true
@@ -19,7 +20,7 @@ generation:
1920
oAuth2ClientCredentialsEnabled: true
2021
oAuth2PasswordEnabled: true
2122
python:
22-
version: 1.2.0
23+
version: 1.3.0
2324
additionalDependencies:
2425
dev:
2526
- pytest>=6.0.0
@@ -29,6 +30,7 @@ python:
2930
- pydantic>=1.8.0
3031
authors:
3132
- Speakeasy
33+
baseErrorName: NovuError
3234
clientServerStatusCodesAsErrors: true
3335
defaultErrorName: APIError
3436
description: Python Client SDK Generated by Speakeasy.

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.552.0
1+
speakeasyVersion: 1.563.4
22
sources:
33
novu-OAS:
44
sourceNamespace: novu-oas
5-
sourceRevisionDigest: sha256:f55c1314a8e5b7da89f4995f0cd6daa56f96b0e35667ecc62472b5adb04f8952
6-
sourceBlobDigest: sha256:2a478410f06701511ea4fbc88a97efaeee53cc79b0ff3315d246251038e17424
5+
sourceRevisionDigest: sha256:039f627d82508a91a6e0f8e69b3003338f952b11af384ca6a6d59647b1fc0006
6+
sourceBlobDigest: sha256:1bc1d72c67ac4b00966d669645a1e975d555e60d9e4e2a63de54d4a85d6c0c68
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1747958647
9+
- speakeasy-sdk-regen-1748563461
1010
- 2.2.0
1111
targets:
1212
novu:
1313
source: novu-OAS
1414
sourceNamespace: novu-oas
15-
sourceRevisionDigest: sha256:f55c1314a8e5b7da89f4995f0cd6daa56f96b0e35667ecc62472b5adb04f8952
16-
sourceBlobDigest: sha256:2a478410f06701511ea4fbc88a97efaeee53cc79b0ff3315d246251038e17424
15+
sourceRevisionDigest: sha256:039f627d82508a91a6e0f8e69b3003338f952b11af384ca6a6d59647b1fc0006
16+
sourceBlobDigest: sha256:1bc1d72c67ac4b00966d669645a1e975d555e60d9e4e2a63de54d4a85d6c0c68
1717
codeSamplesNamespace: novu-oas-python-code-samples
18-
codeSamplesRevisionDigest: sha256:48dd12e836c35af7822a6853a14c6c64a7f96ef89bb6915971c7f104509d34b0
18+
codeSamplesRevisionDigest: sha256:129f7ba67d5265a677c9d526d089094a136d5a066eac3d6bc32cc80798444382
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,13 @@ asyncio.run(main())
442442
<details open>
443443
<summary>Available methods</summary>
444444

445+
### [environments](docs/sdks/environments/README.md)
446+
447+
* [create](docs/sdks/environments/README.md#create) - Create an environment
448+
* [list](docs/sdks/environments/README.md#list) - List all environments
449+
* [update](docs/sdks/environments/README.md#update) - Update an environment
450+
* [delete](docs/sdks/environments/README.md#delete) - Delete an environment
451+
445452
### [integrations](docs/sdks/integrations/README.md)
446453

447454
* [list](docs/sdks/integrations/README.md#list) - List all integrations
@@ -475,7 +482,7 @@ asyncio.run(main())
475482
* [create](docs/sdks/subscribers/README.md#create) - Create a subscriber
476483
* [retrieve](docs/sdks/subscribers/README.md#retrieve) - Retrieve a subscriber
477484
* [patch](docs/sdks/subscribers/README.md#patch) - Update a subscriber
478-
* [delete](docs/sdks/subscribers/README.md#delete) - Delete subscriber
485+
* [delete](docs/sdks/subscribers/README.md#delete) - Delete a subscriber
479486
* [create_bulk](docs/sdks/subscribers/README.md#create_bulk) - Bulk create subscribers
480487

481488
#### [subscribers.credentials](docs/sdks/credentials/README.md)
@@ -526,6 +533,20 @@ asyncio.run(main())
526533
* [create](docs/sdks/subscriptions/README.md#create) - Create topic subscriptions
527534
* [delete](docs/sdks/subscriptions/README.md#delete) - Delete topic subscriptions
528535

536+
### [workflows](docs/sdks/workflows/README.md)
537+
538+
* [create](docs/sdks/workflows/README.md#create) - Create a workflow
539+
* [list](docs/sdks/workflows/README.md#list) - List all workflows
540+
* [update](docs/sdks/workflows/README.md#update) - Update a workflow
541+
* [get](docs/sdks/workflows/README.md#get) - Retrieve a workflow
542+
* [delete](docs/sdks/workflows/README.md#delete) - Delete a workflow
543+
* [patch](docs/sdks/workflows/README.md#patch) - Update a workflow
544+
* [sync](docs/sdks/workflows/README.md#sync) - Sync a workflow
545+
546+
#### [workflows.steps](docs/sdks/steps/README.md)
547+
548+
* [retrieve](docs/sdks/steps/README.md#retrieve) - Retrieve workflow step
549+
529550
</details>
530551
<!-- End Available Resources and Operations [operations] -->
531552

@@ -609,13 +630,14 @@ By default, an API error will raise a models.APIError exception, which has the f
609630

610631
When custom error responses are specified for an operation, the SDK may also raise their associated exceptions. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `trigger_async` method may raise the following exceptions:
611632

612-
| Error Type | Status Code | Content Type |
613-
| ------------------------- | -------------------------------------- | ---------------- |
614-
| models.ErrorDto | 414 | application/json |
615-
| models.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
616-
| models.ValidationErrorDto | 422 | application/json |
617-
| models.ErrorDto | 500 | application/json |
618-
| models.APIError | 4XX, 5XX | \*/\* |
633+
| Error Type | Status Code | Content Type |
634+
| ------------------------------------ | --------------------------------- | ---------------- |
635+
| models.PayloadValidationExceptionDto | 400 | application/json |
636+
| models.ErrorDto | 414 | application/json |
637+
| models.ErrorDto | 401, 403, 404, 405, 409, 413, 415 | application/json |
638+
| models.ValidationErrorDto | 422 | application/json |
639+
| models.ErrorDto | 500 | application/json |
640+
| models.APIError | 4XX, 5XX | \*/\* |
619641

620642
### Example
621643

@@ -645,6 +667,9 @@ with Novu(
645667
# Handle response
646668
print(res)
647669

670+
except models.PayloadValidationExceptionDto as e:
671+
# handle e.data: models.PayloadValidationExceptionDtoData
672+
raise(e)
648673
except models.ErrorDto as e:
649674
# handle e.data: models.ErrorDtoData
650675
raise(e)

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,14 @@ Based on:
108108
### Generated
109109
- [python v1.2.0] .
110110
### Releases
111-
- [PyPI v1.2.0] https://pypi.org/project/novu-py/1.2.0 - .
111+
- [PyPI v1.2.0] https://pypi.org/project/novu-py/1.2.0 - .
112+
113+
## 2025-06-17 16:09:50
114+
### Changes
115+
Based on:
116+
- OpenAPI Doc
117+
- Speakeasy CLI 1.563.4 (2.630.6) https://github.com/speakeasy-api/speakeasy
118+
### Generated
119+
- [python v1.3.0] .
120+
### Releases
121+
- [PyPI v1.3.0] https://pypi.org/project/novu-py/1.3.0 - .

docs/models/actiondto.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# ActionDto
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- |
8+
| `label` | *Optional[str]* | :heavy_minus_sign: | Label for the action button. |
9+
| `redirect` | [Optional[models.RedirectDto]](../models/redirectdto.md) | :heavy_minus_sign: | Redirect configuration for the action. |

docs/models/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+
### `models.WorkflowPreferenceDto`
9+
10+
```python
11+
value: models.WorkflowPreferenceDto = /* values here */
12+
```
13+

docs/models/apikeydto.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# APIKeyDto
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description | Example |
7+
| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ |
8+
| `key` | *str* | :heavy_check_mark: | API key | sk_test_1234567890abcdef |
9+
| `user_id` | *str* | :heavy_check_mark: | User ID associated with the API key | 60d5ecb8b3b3a30015f3e1a4 |
10+
| `hash` | *Optional[str]* | :heavy_minus_sign: | Hashed representation of the API key | hash_value_here |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# BridgeConfigurationDto
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------ | ------------------ | ------------------ | ------------------ |
8+
| `url` | *Optional[str]* | :heavy_minus_sign: | N/A |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# ChannelPreferenceDto
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
8+
| `enabled` | *Optional[bool]* | :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)