Skip to content

Commit 0dd6541

Browse files
authored
Merge pull request #9 from novuhq/speakeasy-sdk-regen-1718655690
chore: 🐝 Update SDK - Generate
2 parents feeb718 + c01a079 commit 0dd6541

File tree

190 files changed

+9986
-892
lines changed

Some content is hidden

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

190 files changed

+9986
-892
lines changed
File renamed without changes.

.speakeasy/gen.lock

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
lockVersion: 2.0.0
22
id: f50499c4-d106-4975-983f-ead3a386ec53
33
management:
4-
docChecksum: 843588d509aa4de3a4d846ef57647cfc
4+
docChecksum: 1eadec3f5478d02504091b0e2b5b2ee0
55
docVersion: "1.0"
6-
speakeasyVersion: 1.308.1
7-
generationVersion: 2.342.6
8-
releaseVersion: 0.0.1-alpha.8
9-
configChecksum: 44795b95ebeff18a9bac44fee44a664c
6+
speakeasyVersion: 1.322.3
7+
generationVersion: 2.354.2
8+
releaseVersion: 0.0.1-alpha.9
9+
configChecksum: 29fb899ef19d96629eaf20333f0647b0
1010
repoURL: https://github.com/novuhq/novu-node.git
1111
installationURL: https://github.com/novuhq/novu-node
1212
published: true
1313
features:
1414
typescript:
1515
additionalDependencies: 0.1.0
1616
constsAndDefaults: 0.1.5
17-
core: 3.9.14
17+
core: 3.10.2
1818
deprecations: 2.81.1
1919
examples: 2.81.4
2020
flattening: 2.81.1
@@ -61,7 +61,7 @@ generatedFiles:
6161
- src/sdk/status.ts
6262
- src/sdk/workflows.ts
6363
- src/sdk/sdk.ts
64-
- .eslintrc.js
64+
- .eslintrc.cjs
6565
- .npmignore
6666
- RUNTIMES.md
6767
- jsr.json
@@ -530,6 +530,7 @@ generatedFiles:
530530
- docs/models/operations/subscriberscontrollergetunseencountrequest.md
531531
- docs/models/operations/subscriberscontrollerupdatesubscriberonlineflagrequest.md
532532
- docs/models/operations/subscriberscontrollerlistsubscriberpreferencesrequest.md
533+
- docs/models/operations/parameter.md
533534
- docs/models/operations/subscriberscontrollergetsubscriberpreferencebylevelrequest.md
534535
- docs/models/operations/subscriberscontrollerupdatesubscriberpreferencerequest.md
535536
- docs/models/operations/subscriberscontrollerupdatesubscriberglobalpreferencesrequest.md

.speakeasy/gen.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ generation:
1111
auth:
1212
oAuth2ClientCredentialsEnabled: false
1313
typescript:
14-
version: 0.0.1-alpha.8
14+
version: 0.0.1-alpha.9
1515
additionalDependencies:
1616
dependencies: {}
1717
devDependencies: {}
@@ -36,3 +36,4 @@ typescript:
3636
packageName: '@novu/api'
3737
responseFormat: flat
3838
templateVersion: v2
39+
useIndexModules: true

.speakeasy/workflow.lock

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
speakeasyVersion: 1.308.1
1+
speakeasyVersion: 1.322.3
22
sources:
33
json-development:
44
sourceNamespace: json-development
5-
sourceRevisionDigest: sha256:1bc7354bf3d77f5041f4a62ff46949898a6e56bfebddd50406db841adbe08f6e
6-
sourceBlobDigest: sha256:aef7e5b403d20e17858ce338f35a9e6bb056e3ea3e7a98c3def0d89ecfeb95b3
5+
sourceRevisionDigest: sha256:9aaa2cefb426a15cee5a49a925f699de098a471674151d8e4ff677c3c9ce0da3
6+
sourceBlobDigest: sha256:be824c6647996617fb6fd7ea6b234c66f101d67d28a79402f53258bbd957c404
77
tags:
88
- latest
9+
- main
910
targets:
1011
my-first-target:
1112
source: json-development
1213
sourceNamespace: json-development
13-
sourceRevisionDigest: sha256:1bc7354bf3d77f5041f4a62ff46949898a6e56bfebddd50406db841adbe08f6e
14-
sourceBlobDigest: sha256:aef7e5b403d20e17858ce338f35a9e6bb056e3ea3e7a98c3def0d89ecfeb95b3
14+
sourceRevisionDigest: sha256:9aaa2cefb426a15cee5a49a925f699de098a471674151d8e4ff677c3c9ce0da3
15+
sourceBlobDigest: sha256:be824c6647996617fb6fd7ea6b234c66f101d67d28a79402f53258bbd957c404
1516
codeSamplesNamespace: code-samples-typescript
16-
codeSamplesRevisionDigest: sha256:8bcf1a1d27d468c4289986ffc8eb9789bc81a6d0f5abcac77ddd6d8f5b43b832
17-
outLocation: /Users/da/code/misc/novu-node
17+
codeSamplesRevisionDigest: sha256:33324b9421a6105c75147afd9d70c354c7a6ad0f5e48327905d8171c613522a8
18+
outLocation: /github/workspace/repo
1819
workflow:
1920
workflowVersion: 1.0.0
2021
speakeasyVersion: latest
@@ -35,6 +36,6 @@ workflow:
3536
npm:
3637
token: $npm_token
3738
codeSamples:
38-
output: sources/code-samples.json
39+
output: sources/code-samples.yaml
3940
registry:
4041
location: registry.speakeasyapi.dev/novu/novu/code-samples-typescript

README.md

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,25 @@
1515
npm add @novu/api
1616
```
1717

18+
### PNPM
19+
20+
```bash
21+
pnpm add @novu/api
22+
```
23+
24+
### Bun
25+
26+
```bash
27+
bun add @novu/api
28+
```
29+
1830
### Yarn
1931

2032
```bash
21-
yarn add @novu/api
33+
yarn add @novu/api zod
34+
35+
# Note that Yarn does not install peer dependencies automatically. You will need
36+
# to install zod as shown above.
2237
```
2338
<!-- End SDK Installation [installation] -->
2439

@@ -35,7 +50,6 @@ For supported JavaScript runtimes, please consult [RUNTIMES.md](RUNTIMES.md).
3550

3651
```typescript
3752
import { Novu } from "@novu/api";
38-
import { TopicPayloadDtoType } from "@novu/api/models/components";
3953

4054
const novu = new Novu({
4155
apiKey: "<YOUR_API_KEY_HERE>",
@@ -49,7 +63,7 @@ async function run() {
4963
to: [
5064
{
5165
topicKey: "topic_key",
52-
type: TopicPayloadDtoType.Topic,
66+
type: "Topic",
5367
},
5468
],
5569
});
@@ -292,8 +306,7 @@ Validation errors can also occur when either method arguments or data returned f
292306

293307
```typescript
294308
import { Novu } from "@novu/api";
295-
import { TopicPayloadDtoType } from "@novu/api/models/components";
296-
import * as errors from "@novu/api/models/errors";
309+
import { SDKValidationError } from "@novu/api/models/errors";
297310

298311
const novu = new Novu({
299312
apiKey: "<YOUR_API_KEY_HERE>",
@@ -309,13 +322,13 @@ async function run() {
309322
to: [
310323
{
311324
topicKey: "topic_key",
312-
type: TopicPayloadDtoType.Topic,
325+
type: "Topic",
313326
},
314327
],
315328
});
316329
} catch (err) {
317330
switch (true) {
318-
case err instanceof errors.SDKValidationError: {
331+
case err instanceof SDKValidationError: {
319332
// Validation errors can be pretty-printed
320333
console.error(err.pretty());
321334
// Raw value may also be inspected
@@ -351,7 +364,6 @@ You can override the default server globally by passing a server index to the `s
351364

352365
```typescript
353366
import { Novu } from "@novu/api";
354-
import { TopicPayloadDtoType } from "@novu/api/models/components";
355367

356368
const novu = new Novu({
357369
serverIdx: 1,
@@ -366,7 +378,7 @@ async function run() {
366378
to: [
367379
{
368380
topicKey: "topic_key",
369-
type: TopicPayloadDtoType.Topic,
381+
type: "Topic",
370382
},
371383
],
372384
});
@@ -386,7 +398,6 @@ The default server can also be overridden globally by passing a URL to the `serv
386398

387399
```typescript
388400
import { Novu } from "@novu/api";
389-
import { TopicPayloadDtoType } from "@novu/api/models/components";
390401

391402
const novu = new Novu({
392403
serverURL: "https://api.novu.co",
@@ -401,7 +412,7 @@ async function run() {
401412
to: [
402413
{
403414
topicKey: "topic_key",
404-
type: TopicPayloadDtoType.Topic,
415+
type: "Topic",
405416
},
406417
],
407418
});
@@ -478,7 +489,6 @@ This SDK supports the following security scheme globally:
478489
To authenticate with the API the `apiKey` parameter must be set when initializing the SDK client instance. For example:
479490
```typescript
480491
import { Novu } from "@novu/api";
481-
import { TopicPayloadDtoType } from "@novu/api/models/components";
482492

483493
const novu = new Novu({
484494
apiKey: "<YOUR_API_KEY_HERE>",
@@ -492,7 +502,7 @@ async function run() {
492502
to: [
493503
{
494504
topicKey: "topic_key",
495-
type: TopicPayloadDtoType.Topic,
505+
type: "Topic",
496506
},
497507
],
498508
});
@@ -514,7 +524,6 @@ Some of the endpoints in this SDK support retries. If you use the SDK without a
514524
To change the default retry strategy for a single API call, simply provide a retryConfig object to the call:
515525
```typescript
516526
import { Novu } from "@novu/api";
517-
import { TopicPayloadDtoType } from "@novu/api/models/components";
518527

519528
const novu = new Novu({
520529
apiKey: "<YOUR_API_KEY_HERE>",
@@ -529,7 +538,7 @@ async function run() {
529538
to: [
530539
{
531540
topicKey: "topic_key",
532-
type: TopicPayloadDtoType.Topic,
541+
type: "Topic",
533542
},
534543
],
535544
},
@@ -558,7 +567,6 @@ run();
558567
If you'd like to override the default retry strategy for all operations that support retries, you can provide a retryConfig at SDK initialization:
559568
```typescript
560569
import { Novu } from "@novu/api";
561-
import { TopicPayloadDtoType } from "@novu/api/models/components";
562570

563571
const novu = new Novu({
564572
retryConfig: {
@@ -582,7 +590,7 @@ async function run() {
582590
to: [
583591
{
584592
topicKey: "topic_key",
585-
type: TopicPayloadDtoType.Topic,
593+
type: "Topic",
586594
},
587595
],
588596
});

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,14 @@ Based on:
1818
### Generated
1919
- [typescript v0.0.1-alpha.6] .
2020
### Releases
21-
- [NPM v0.0.1-alpha.6] https://www.npmjs.com/package/@novu/api/v/0.0.1-alpha.6 - .
21+
- [NPM v0.0.1-alpha.6] https://www.npmjs.com/package/@novu/api/v/0.0.1-alpha.6 - .
22+
23+
## 2024-06-30 00:16:00
24+
### Changes
25+
Based on:
26+
- OpenAPI Doc
27+
- Speakeasy CLI 1.322.3 (2.354.2) https://github.com/speakeasy-api/speakeasy
28+
### Generated
29+
- [typescript v0.0.1-alpha.9] .
30+
### Releases
31+
- [NPM v0.0.1-alpha.9] https://www.npmjs.com/package/@novu/api/v/0.0.1-alpha.9 - .

USAGE.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
```typescript
55
import { Novu } from "@novu/api";
6-
import { TopicPayloadDtoType } from "@novu/api/models/components";
76

87
const novu = new Novu({
98
apiKey: "<YOUR_API_KEY_HERE>",
@@ -17,7 +16,7 @@ async function run() {
1716
to: [
1817
{
1918
topicKey: "topic_key",
20-
type: TopicPayloadDtoType.Topic,
19+
type: "Topic",
2120
},
2221
],
2322
});

docs/models/components/actor.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,18 @@ It is used to display the Avatar of the provided actor's subscriber id or actor
44
If a new actor object is provided, we will create a new subscriber in our system
55

66

7+
8+
## Supported Types
9+
10+
### `string`
11+
12+
```typescript
13+
const value: string = /* values here */
14+
```
15+
16+
### `components.SubscriberPayloadDto`
17+
18+
```typescript
19+
const value: components.SubscriberPayloadDto = /* values here */
20+
```
21+

docs/models/components/content.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,17 @@
11
# Content
22

3+
4+
## Supported Types
5+
6+
### `components.EmailBlock`
7+
8+
```typescript
9+
const value: components.EmailBlock = /* values here */
10+
```
11+
12+
### `string`
13+
14+
```typescript
15+
const value: string = /* values here */
16+
```
17+

docs/models/components/feedidentifier.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,18 @@
22

33
Optional feed identifier or array of feed identifiers
44

5+
6+
## Supported Types
7+
8+
### `string`
9+
10+
```typescript
11+
const value: string = /* values here */
12+
```
13+
14+
### `string[]`
15+
16+
```typescript
17+
const value: string[] = /* values here */
18+
```
19+

0 commit comments

Comments
 (0)