Skip to content

Commit 7568c56

Browse files
github-actions[bot]speakeasybotspeakeasy-github[bot]
authored
chore: 🐝 Update SDK - Generate 0.4.0 (#10)
* ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.508.1 * 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 aeef9ae commit 7568c56

File tree

121 files changed

+878
-4354
lines changed

Some content is hidden

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

121 files changed

+878
-4354
lines changed

.speakeasy/gen.lock

+31-68
Large diffs are not rendered by default.

.speakeasy/gen.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ generation:
1010
useClassNamesForArrayFields: true
1111
fixes:
1212
nameResolutionDec2023: true
13+
nameResolutionFeb2025: false
1314
parameterOrderingFeb2024: true
1415
requestResponseComponentNamesFeb2024: true
16+
securityFeb2025: false
1517
auth:
1618
oAuth2ClientCredentialsEnabled: true
1719
oAuth2PasswordEnabled: true
1820
python:
19-
version: 0.3.4
21+
version: 0.4.0
2022
additionalDependencies:
2123
dev:
2224
- pytest>=6.0.0
@@ -50,5 +52,6 @@ python:
5052
methodArguments: infer-optional-args
5153
outputModelSuffix: output
5254
packageName: novu-py
55+
pytestTimeout: 0
5356
responseFormat: flat
5457
templateVersion: v2

.speakeasy/workflow.lock

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.484.1
1+
speakeasyVersion: 1.508.1
22
sources:
33
novu-OAS:
44
sourceNamespace: novu-oas
5-
sourceRevisionDigest: sha256:3c883b168e1783744a16c908e3a69b3f36443e150da8cde51013031094766498
6-
sourceBlobDigest: sha256:db81ca9cc9bf732f310e4177d6b79f2389839029e46460e72e2f808d5452e26a
5+
sourceRevisionDigest: sha256:8945b12a38f6118cc30d593aadb9d5b5eb24eeb0f19509f042f982aea9083f47
6+
sourceBlobDigest: sha256:6d9beef404948b5fb4b86e91d215329c72d65182e8b0feae013525be77e4b774
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1738742359
9+
- speakeasy-sdk-regen-1741008646
1010
- "1.0"
1111
targets:
1212
novu:
1313
source: novu-OAS
1414
sourceNamespace: novu-oas
15-
sourceRevisionDigest: sha256:3c883b168e1783744a16c908e3a69b3f36443e150da8cde51013031094766498
16-
sourceBlobDigest: sha256:db81ca9cc9bf732f310e4177d6b79f2389839029e46460e72e2f808d5452e26a
15+
sourceRevisionDigest: sha256:8945b12a38f6118cc30d593aadb9d5b5eb24eeb0f19509f042f982aea9083f47
16+
sourceBlobDigest: sha256:6d9beef404948b5fb4b86e91d215329c72d65182e8b0feae013525be77e4b774
1717
codeSamplesNamespace: novu-oas-python-code-samples
18-
codeSamplesRevisionDigest: sha256:00a74842af61666058a7cb0315fddfd5b66e1b4869f39e8cd6869ec08ace8117
18+
codeSamplesRevisionDigest: sha256:f1b67ebc1dc4d8fe4893c1f8dcd011f398e43d8c043a917036ceacf8ea283f79
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

+39-46
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ For more information about the API: [Novu Documentation](https://docs.novu.co)
3636
* [Resource Management](#resource-management)
3737
* [Debugging](#debugging)
3838
* [Development](#development)
39-
* [Maturity](#maturity)
4039
* [Contributions](#contributions)
4140

4241
<!-- End Table of Contents [toc] -->
@@ -118,10 +117,10 @@ Generally, the SDK will work well with most IDEs out of the box. However, when u
118117
# Synchronous Example
119118
import novu_py
120119
from novu_py import Novu
121-
import os
120+
122121

123122
with Novu(
124-
secret_key=os.getenv("NOVU_SECRET_KEY", ""),
123+
secret_key="YOUR_SECRET_KEY_HERE",
125124
) as novu:
126125

127126
res = novu.trigger(trigger_event_request_dto=novu_py.TriggerEventRequestDto(
@@ -156,11 +155,11 @@ The same SDK client can also be used to make asychronous requests by importing a
156155
import asyncio
157156
import novu_py
158157
from novu_py import Novu
159-
import os
160158

161159
async def main():
160+
162161
async with Novu(
163-
secret_key=os.getenv("NOVU_SECRET_KEY", ""),
162+
secret_key="YOUR_SECRET_KEY_HERE",
164163
) as novu:
165164

166165
res = await novu.trigger_async(trigger_event_request_dto=novu_py.TriggerEventRequestDto(
@@ -195,10 +194,10 @@ asyncio.run(main())
195194
# Synchronous Example
196195
import novu_py
197196
from novu_py import Novu
198-
import os
197+
199198

200199
with Novu(
201-
secret_key=os.getenv("NOVU_SECRET_KEY", ""),
200+
secret_key="YOUR_SECRET_KEY_HERE",
202201
) as novu:
203202

204203
res = novu.trigger_bulk(bulk_trigger_event_dto={
@@ -279,11 +278,11 @@ The same SDK client can also be used to make asychronous requests by importing a
279278
import asyncio
280279
import novu_py
281280
from novu_py import Novu
282-
import os
283281

284282
async def main():
283+
285284
async with Novu(
286-
secret_key=os.getenv("NOVU_SECRET_KEY", ""),
285+
secret_key="YOUR_SECRET_KEY_HERE",
287286
) as novu:
288287

289288
res = await novu.trigger_bulk_async(bulk_trigger_event_dto={
@@ -363,10 +362,10 @@ asyncio.run(main())
363362
```python
364363
# Synchronous Example
365364
from novu_py import Novu
366-
import os
365+
367366

368367
with Novu(
369-
secret_key=os.getenv("NOVU_SECRET_KEY", ""),
368+
secret_key="YOUR_SECRET_KEY_HERE",
370369
) as novu:
371370

372371
res = novu.trigger_broadcast(trigger_event_to_all_request_dto={
@@ -390,11 +389,11 @@ The same SDK client can also be used to make asychronous requests by importing a
390389
# Asynchronous Example
391390
import asyncio
392391
from novu_py import Novu
393-
import os
394392

395393
async def main():
394+
396395
async with Novu(
397-
secret_key=os.getenv("NOVU_SECRET_KEY", ""),
396+
secret_key="YOUR_SECRET_KEY_HERE",
398397
) as novu:
399398

400399
res = await novu.trigger_broadcast_async(trigger_event_to_all_request_dto={
@@ -418,10 +417,10 @@ asyncio.run(main())
418417
```python
419418
# Synchronous Example
420419
from novu_py import Novu
421-
import os
420+
422421

423422
with Novu(
424-
secret_key=os.getenv("NOVU_SECRET_KEY", ""),
423+
secret_key="YOUR_SECRET_KEY_HERE",
425424
) as novu:
426425

427426
res = novu.cancel(transaction_id="<id>")
@@ -437,11 +436,11 @@ The same SDK client can also be used to make asychronous requests by importing a
437436
# Asynchronous Example
438437
import asyncio
439438
from novu_py import Novu
440-
import os
441439

442440
async def main():
441+
443442
async with Novu(
444-
secret_key=os.getenv("NOVU_SECRET_KEY", ""),
443+
secret_key="YOUR_SECRET_KEY_HERE",
445444
) as novu:
446445

447446
res = await novu.cancel_async(transaction_id="<id>")
@@ -498,12 +497,9 @@ asyncio.run(main())
498497
### [subscribers](docs/sdks/subscribers/README.md)
499498

500499
* [list](docs/sdks/subscribers/README.md#list) - Get subscribers
501-
* [create](docs/sdks/subscribers/README.md#create) - Create subscriber
502-
* [retrieve_legacy](docs/sdks/subscribers/README.md#retrieve_legacy) - Get subscriber
503-
* [update](docs/sdks/subscribers/README.md#update) - Update subscriber
504-
* [~~delete_legacy~~](docs/sdks/subscribers/README.md#delete_legacy) - Delete subscriber :warning: **Deprecated**
505500
* [create_bulk](docs/sdks/subscribers/README.md#create_bulk) - Bulk create subscribers
506501
* [search](docs/sdks/subscribers/README.md#search) - Search for subscribers
502+
* [create](docs/sdks/subscribers/README.md#create) - Create subscriber
507503
* [retrieve](docs/sdks/subscribers/README.md#retrieve) - Get subscriber
508504
* [patch](docs/sdks/subscribers/README.md#patch) - Patch subscriber
509505
* [delete](docs/sdks/subscribers/README.md#delete) - Delete subscriber
@@ -533,10 +529,6 @@ asyncio.run(main())
533529
#### [subscribers.preferences](docs/sdks/preferences/README.md)
534530

535531
* [list](docs/sdks/preferences/README.md#list) - Get subscriber preferences
536-
* [update_global](docs/sdks/preferences/README.md#update_global) - Update subscriber global preferences
537-
* [retrieve_by_level](docs/sdks/preferences/README.md#retrieve_by_level) - Get subscriber preferences by level
538-
* [update_legacy](docs/sdks/preferences/README.md#update_legacy) - Update subscriber preference
539-
* [retrieve](docs/sdks/preferences/README.md#retrieve) - Get subscriber preferences
540532
* [update](docs/sdks/preferences/README.md#update) - Update subscriber global or workflow specific preferences
541533

542534
#### [subscribers.properties](docs/sdks/properties/README.md)
@@ -570,10 +562,10 @@ return value of `Next` is `None`, then there are no more pages to be fetched.
570562
Here's an example of one such pagination call:
571563
```python
572564
from novu_py import Novu
573-
import os
565+
574566

575567
with Novu(
576-
secret_key=os.getenv("NOVU_SECRET_KEY", ""),
568+
secret_key="YOUR_SECRET_KEY_HERE",
577569
) as novu:
578570

579571
res = novu.subscribers.list()
@@ -596,10 +588,10 @@ To change the default retry strategy for a single API call, simply provide a `Re
596588
import novu_py
597589
from novu_py import Novu
598590
from novu_py.utils import BackoffStrategy, RetryConfig
599-
import os
591+
600592

601593
with Novu(
602-
secret_key=os.getenv("NOVU_SECRET_KEY", ""),
594+
secret_key="YOUR_SECRET_KEY_HERE",
603595
) as novu:
604596

605597
res = novu.trigger(trigger_event_request_dto=novu_py.TriggerEventRequestDto(
@@ -633,11 +625,11 @@ If you'd like to override the default retry strategy for all operations that sup
633625
import novu_py
634626
from novu_py import Novu
635627
from novu_py.utils import BackoffStrategy, RetryConfig
636-
import os
628+
637629

638630
with Novu(
639631
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
640-
secret_key=os.getenv("NOVU_SECRET_KEY", ""),
632+
secret_key="YOUR_SECRET_KEY_HERE",
641633
) as novu:
642634

643635
res = novu.trigger(trigger_event_request_dto=novu_py.TriggerEventRequestDto(
@@ -695,10 +687,10 @@ When custom error responses are specified for an operation, the SDK may also rai
695687
```python
696688
import novu_py
697689
from novu_py import Novu, models
698-
import os
690+
699691

700692
with Novu(
701-
secret_key=os.getenv("NOVU_SECRET_KEY", ""),
693+
secret_key="YOUR_SECRET_KEY_HERE",
702694
) as novu:
703695
res = None
704696
try:
@@ -751,21 +743,21 @@ with Novu(
751743

752744
You can override the default server globally by passing a server index to the `server_idx: int` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
753745

754-
| # | Server |
755-
| --- | ------------------------ |
756-
| 0 | `https://api.novu.co` |
757-
| 1 | `https://eu.api.novu.co` |
746+
| # | Server | Description |
747+
| --- | ------------------------ | ----------- |
748+
| 0 | `https://api.novu.co` | |
749+
| 1 | `https://eu.api.novu.co` | |
758750

759751
#### Example
760752

761753
```python
762754
import novu_py
763755
from novu_py import Novu
764-
import os
756+
765757

766758
with Novu(
767759
server_idx=1,
768-
secret_key=os.getenv("NOVU_SECRET_KEY", ""),
760+
secret_key="YOUR_SECRET_KEY_HERE",
769761
) as novu:
770762

771763
res = novu.trigger(trigger_event_request_dto=novu_py.TriggerEventRequestDto(
@@ -799,11 +791,11 @@ The default server can also be overridden globally by passing a URL to the `serv
799791
```python
800792
import novu_py
801793
from novu_py import Novu
802-
import os
794+
803795

804796
with Novu(
805797
server_url="https://api.novu.co",
806-
secret_key=os.getenv("NOVU_SECRET_KEY", ""),
798+
secret_key="YOUR_SECRET_KEY_HERE",
807799
) as novu:
808800

809801
res = novu.trigger(trigger_event_request_dto=novu_py.TriggerEventRequestDto(
@@ -928,10 +920,10 @@ To authenticate with the API the `secret_key` parameter must be set when initial
928920
```python
929921
import novu_py
930922
from novu_py import Novu
931-
import os
923+
932924

933925
with Novu(
934-
secret_key=os.getenv("NOVU_SECRET_KEY", ""),
926+
secret_key="YOUR_SECRET_KEY_HERE",
935927
) as novu:
936928

937929
res = novu.trigger(trigger_event_request_dto=novu_py.TriggerEventRequestDto(
@@ -969,18 +961,19 @@ The `Novu` class implements the context manager protocol and registers a finaliz
969961

970962
```python
971963
from novu_py import Novu
972-
import os
973964
def main():
965+
974966
with Novu(
975-
secret_key=os.getenv("NOVU_SECRET_KEY", ""),
967+
secret_key="YOUR_SECRET_KEY_HERE",
976968
) as novu:
977969
# Rest of application here...
978970

979971

980972
# Or when using async:
981973
async def amain():
974+
982975
async with Novu(
983-
secret_key=os.getenv("NOVU_SECRET_KEY", ""),
976+
secret_key="YOUR_SECRET_KEY_HERE",
984977
) as novu:
985978
# Rest of application here...
986979
```

RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,14 @@ Based on:
3838
### Generated
3939
- [python v0.3.4] .
4040
### Releases
41-
- [PyPI v0.3.4] https://pypi.org/project/novu-py/0.3.4 - .
41+
- [PyPI v0.3.4] https://pypi.org/project/novu-py/0.3.4 - .
42+
43+
## 2025-03-03 13:30:31
44+
### Changes
45+
Based on:
46+
- OpenAPI Doc
47+
- Speakeasy CLI 1.508.1 (2.536.0) https://github.com/speakeasy-api/speakeasy
48+
### Generated
49+
- [python v0.4.0] .
50+
### Releases
51+
- [PyPI v0.4.0] https://pypi.org/project/novu-py/0.4.0 - .

0 commit comments

Comments
 (0)