@novu/api 0.0.5 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +105 -20
- package/docs/sdks/novu/README.md +0 -227
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/index.d.ts +0 -3
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -3
- package/models/components/index.js.map +1 -1
- package/models/errors/index.d.ts +0 -1
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +0 -1
- package/models/errors/index.js.map +1 -1
- package/models/operations/index.d.ts +0 -3
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -3
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/sdk.d.ts +0 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -12
- package/sdk/sdk.js.map +1 -1
- package/sources/json-development.json +0 -1161
- package/src/lib/config.ts +2 -2
- package/src/models/components/index.ts +0 -3
- package/src/models/errors/index.ts +0 -1
- package/src/models/operations/index.ts +0 -3
- package/src/sdk/sdk.ts +0 -38
- package/funcs/generateRandomNumber.d.ts +0 -10
- package/funcs/generateRandomNumber.d.ts.map +0 -1
- package/funcs/generateRandomNumber.js +0 -126
- package/funcs/generateRandomNumber.js.map +0 -1
- package/funcs/healthControllerHealthCheck.d.ts +0 -10
- package/funcs/healthControllerHealthCheck.d.ts.map +0 -1
- package/funcs/healthControllerHealthCheck.js +0 -109
- package/funcs/healthControllerHealthCheck.js.map +0 -1
- package/funcs/testIdempotency.d.ts +0 -11
- package/funcs/testIdempotency.d.ts.map +0 -1
- package/funcs/testIdempotency.js +0 -129
- package/funcs/testIdempotency.js.map +0 -1
- package/models/components/idempotencetestingresponse.d.ts +0 -32
- package/models/components/idempotencetestingresponse.d.ts.map +0 -1
- package/models/components/idempotencetestingresponse.js +0 -59
- package/models/components/idempotencetestingresponse.js.map +0 -1
- package/models/components/idempotencybehaviorenum.d.ts +0 -37
- package/models/components/idempotencybehaviorenum.d.ts.map +0 -1
- package/models/components/idempotencybehaviorenum.js +0 -54
- package/models/components/idempotencybehaviorenum.js.map +0 -1
- package/models/components/idempotencytestingdto.d.ts +0 -33
- package/models/components/idempotencytestingdto.d.ts.map +0 -1
- package/models/components/idempotencytestingdto.js +0 -60
- package/models/components/idempotencytestingdto.js.map +0 -1
- package/models/errors/healthcontrollerhealthcheck.d.ts +0 -153
- package/models/errors/healthcontrollerhealthcheck.d.ts.map +0 -1
- package/models/errors/healthcontrollerhealthcheck.js +0 -190
- package/models/errors/healthcontrollerhealthcheck.js.map +0 -1
- package/models/operations/healthcontrollergeneraterandomnumber.d.ts +0 -64
- package/models/operations/healthcontrollergeneraterandomnumber.d.ts.map +0 -1
- package/models/operations/healthcontrollergeneraterandomnumber.js +0 -108
- package/models/operations/healthcontrollergeneraterandomnumber.js.map +0 -1
- package/models/operations/healthcontrollerhealthcheck.d.ts +0 -165
- package/models/operations/healthcontrollerhealthcheck.d.ts.map +0 -1
- package/models/operations/healthcontrollerhealthcheck.js +0 -206
- package/models/operations/healthcontrollerhealthcheck.js.map +0 -1
- package/models/operations/healthcontrollertestidempotency.d.ts +0 -66
- package/models/operations/healthcontrollertestidempotency.d.ts.map +0 -1
- package/models/operations/healthcontrollertestidempotency.js +0 -112
- package/models/operations/healthcontrollertestidempotency.js.map +0 -1
- package/src/funcs/generateRandomNumber.ts +0 -183
- package/src/funcs/healthControllerHealthCheck.ts +0 -153
- package/src/funcs/testIdempotency.ts +0 -190
- package/src/models/components/idempotencetestingresponse.ts +0 -69
- package/src/models/components/idempotencybehaviorenum.ts +0 -42
- package/src/models/components/idempotencytestingdto.ts +0 -74
- package/src/models/errors/healthcontrollerhealthcheck.ts +0 -291
- package/src/models/operations/healthcontrollergeneraterandomnumber.ts +0 -177
- package/src/models/operations/healthcontrollerhealthcheck.ts +0 -358
- package/src/models/operations/healthcontrollertestidempotency.ts +0 -174
package/README.md
CHANGED
|
@@ -247,9 +247,6 @@ run();
|
|
|
247
247
|
|
|
248
248
|
### [Novu SDK](docs/sdks/novu/README.md)
|
|
249
249
|
|
|
250
|
-
* [healthControllerHealthCheck](docs/sdks/novu/README.md#healthcontrollerhealthcheck)
|
|
251
|
-
* [testIdempotency](docs/sdks/novu/README.md#testidempotency)
|
|
252
|
-
* [generateRandomNumber](docs/sdks/novu/README.md#generaterandomnumber)
|
|
253
250
|
* [trigger](docs/sdks/novu/README.md#trigger) - Trigger event
|
|
254
251
|
* [triggerBulk](docs/sdks/novu/README.md#triggerbulk) - Bulk trigger event
|
|
255
252
|
* [triggerBroadcast](docs/sdks/novu/README.md#triggerbroadcast) - Broadcast event to all
|
|
@@ -330,8 +327,6 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
330
327
|
<summary>Available standalone functions</summary>
|
|
331
328
|
|
|
332
329
|
- [`cancel`](docs/sdks/novu/README.md#cancel) - Cancel triggered event
|
|
333
|
-
- [`generateRandomNumber`](docs/sdks/novu/README.md#generaterandomnumber)
|
|
334
|
-
- [`healthControllerHealthCheck`](docs/sdks/novu/README.md#healthcontrollerhealthcheck)
|
|
335
330
|
- [`integrationsCreate`](docs/sdks/integrations/README.md#create) - Create integration
|
|
336
331
|
- [`integrationsDelete`](docs/sdks/integrations/README.md#delete) - Delete integration
|
|
337
332
|
- [`integrationsList`](docs/sdks/integrations/README.md#list) - Get integrations
|
|
@@ -367,7 +362,6 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
367
362
|
- [`subscribersPropertiesUpdateOnlineFlag`](docs/sdks/properties/README.md#updateonlineflag) - Update subscriber online status
|
|
368
363
|
- [`subscribersRetrieve`](docs/sdks/subscribers/README.md#retrieve) - Get subscriber
|
|
369
364
|
- [`subscribersUpdate`](docs/sdks/subscribers/README.md#update) - Update subscriber
|
|
370
|
-
- [`testIdempotency`](docs/sdks/novu/README.md#testidempotency)
|
|
371
365
|
- [`topicsCreate`](docs/sdks/topics/README.md#create) - Topic creation
|
|
372
366
|
- [`topicsDelete`](docs/sdks/topics/README.md#delete) - Delete topic
|
|
373
367
|
- [`topicsList`](docs/sdks/topics/README.md#list) - Get topic list filtered
|
|
@@ -419,20 +413,24 @@ run();
|
|
|
419
413
|
<!-- Start Error Handling [errors] -->
|
|
420
414
|
## Error Handling
|
|
421
415
|
|
|
422
|
-
Some methods specify known errors which can be thrown. All the known errors are enumerated in the `models/errors/errors.ts` module. The known errors for a method are documented under the *Errors* tables in SDK docs. For example, the `
|
|
416
|
+
Some methods specify known errors which can be thrown. All the known errors are enumerated in the `models/errors/errors.ts` module. The known errors for a method are documented under the *Errors* tables in SDK docs. For example, the `trigger` method may throw the following errors:
|
|
423
417
|
|
|
424
|
-
| Error Type
|
|
425
|
-
|
|
|
426
|
-
| errors.
|
|
427
|
-
| errors.
|
|
418
|
+
| Error Type | Status Code | Content Type |
|
|
419
|
+
| ------------------------- | -------------------------------------- | ---------------- |
|
|
420
|
+
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
421
|
+
| errors.ErrorDto | 414 | application/json |
|
|
422
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
423
|
+
| errors.ErrorDto | 500 | application/json |
|
|
424
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
428
425
|
|
|
429
426
|
If the method throws an error and it is not captured by the known errors, it will default to throwing a `SDKError`.
|
|
430
427
|
|
|
431
428
|
```typescript
|
|
432
429
|
import { Novu } from "@novu/api";
|
|
433
430
|
import {
|
|
434
|
-
|
|
431
|
+
ErrorDto,
|
|
435
432
|
SDKValidationError,
|
|
433
|
+
ValidationErrorDto,
|
|
436
434
|
} from "@novu/api/models/errors";
|
|
437
435
|
|
|
438
436
|
const novu = new Novu({
|
|
@@ -442,7 +440,19 @@ const novu = new Novu({
|
|
|
442
440
|
async function run() {
|
|
443
441
|
let result;
|
|
444
442
|
try {
|
|
445
|
-
result = await novu.
|
|
443
|
+
result = await novu.trigger({
|
|
444
|
+
name: "workflow_identifier",
|
|
445
|
+
to: [
|
|
446
|
+
{
|
|
447
|
+
topicKey: "<value>",
|
|
448
|
+
type: "Topic",
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
topicKey: "<value>",
|
|
452
|
+
type: "Topic",
|
|
453
|
+
},
|
|
454
|
+
],
|
|
455
|
+
});
|
|
446
456
|
|
|
447
457
|
// Handle the result
|
|
448
458
|
console.log(result);
|
|
@@ -456,8 +466,23 @@ async function run() {
|
|
|
456
466
|
console.error(err.rawValue);
|
|
457
467
|
return;
|
|
458
468
|
}
|
|
459
|
-
case (err instanceof
|
|
460
|
-
// Handle err.data$:
|
|
469
|
+
case (err instanceof ErrorDto): {
|
|
470
|
+
// Handle err.data$: ErrorDtoData
|
|
471
|
+
console.error(err);
|
|
472
|
+
return;
|
|
473
|
+
}
|
|
474
|
+
case (err instanceof ErrorDto): {
|
|
475
|
+
// Handle err.data$: ErrorDtoData
|
|
476
|
+
console.error(err);
|
|
477
|
+
return;
|
|
478
|
+
}
|
|
479
|
+
case (err instanceof ValidationErrorDto): {
|
|
480
|
+
// Handle err.data$: ValidationErrorDtoData
|
|
481
|
+
console.error(err);
|
|
482
|
+
return;
|
|
483
|
+
}
|
|
484
|
+
case (err instanceof ErrorDto): {
|
|
485
|
+
// Handle err.data$: ErrorDtoData
|
|
461
486
|
console.error(err);
|
|
462
487
|
return;
|
|
463
488
|
}
|
|
@@ -509,7 +534,19 @@ const novu = new Novu({
|
|
|
509
534
|
});
|
|
510
535
|
|
|
511
536
|
async function run() {
|
|
512
|
-
const result = await novu.
|
|
537
|
+
const result = await novu.trigger({
|
|
538
|
+
name: "workflow_identifier",
|
|
539
|
+
to: [
|
|
540
|
+
{
|
|
541
|
+
topicKey: "<value>",
|
|
542
|
+
type: "Topic",
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
topicKey: "<value>",
|
|
546
|
+
type: "Topic",
|
|
547
|
+
},
|
|
548
|
+
],
|
|
549
|
+
});
|
|
513
550
|
|
|
514
551
|
// Handle the result
|
|
515
552
|
console.log(result);
|
|
@@ -531,7 +568,19 @@ const novu = new Novu({
|
|
|
531
568
|
});
|
|
532
569
|
|
|
533
570
|
async function run() {
|
|
534
|
-
const result = await novu.
|
|
571
|
+
const result = await novu.trigger({
|
|
572
|
+
name: "workflow_identifier",
|
|
573
|
+
to: [
|
|
574
|
+
{
|
|
575
|
+
topicKey: "<value>",
|
|
576
|
+
type: "Topic",
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
topicKey: "<value>",
|
|
580
|
+
type: "Topic",
|
|
581
|
+
},
|
|
582
|
+
],
|
|
583
|
+
});
|
|
535
584
|
|
|
536
585
|
// Handle the result
|
|
537
586
|
console.log(result);
|
|
@@ -611,7 +660,19 @@ const novu = new Novu({
|
|
|
611
660
|
});
|
|
612
661
|
|
|
613
662
|
async function run() {
|
|
614
|
-
const result = await novu.
|
|
663
|
+
const result = await novu.trigger({
|
|
664
|
+
name: "workflow_identifier",
|
|
665
|
+
to: [
|
|
666
|
+
{
|
|
667
|
+
topicKey: "<value>",
|
|
668
|
+
type: "Topic",
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
topicKey: "<value>",
|
|
672
|
+
type: "Topic",
|
|
673
|
+
},
|
|
674
|
+
],
|
|
675
|
+
});
|
|
615
676
|
|
|
616
677
|
// Handle the result
|
|
617
678
|
console.log(result);
|
|
@@ -636,7 +697,19 @@ const novu = new Novu({
|
|
|
636
697
|
});
|
|
637
698
|
|
|
638
699
|
async function run() {
|
|
639
|
-
const result = await novu.
|
|
700
|
+
const result = await novu.trigger({
|
|
701
|
+
name: "workflow_identifier",
|
|
702
|
+
to: [
|
|
703
|
+
{
|
|
704
|
+
topicKey: "<value>",
|
|
705
|
+
type: "Topic",
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
topicKey: "<value>",
|
|
709
|
+
type: "Topic",
|
|
710
|
+
},
|
|
711
|
+
],
|
|
712
|
+
}, {
|
|
640
713
|
retries: {
|
|
641
714
|
strategy: "backoff",
|
|
642
715
|
backoff: {
|
|
@@ -676,7 +749,19 @@ const novu = new Novu({
|
|
|
676
749
|
});
|
|
677
750
|
|
|
678
751
|
async function run() {
|
|
679
|
-
const result = await novu.
|
|
752
|
+
const result = await novu.trigger({
|
|
753
|
+
name: "workflow_identifier",
|
|
754
|
+
to: [
|
|
755
|
+
{
|
|
756
|
+
topicKey: "<value>",
|
|
757
|
+
type: "Topic",
|
|
758
|
+
},
|
|
759
|
+
{
|
|
760
|
+
topicKey: "<value>",
|
|
761
|
+
type: "Topic",
|
|
762
|
+
},
|
|
763
|
+
],
|
|
764
|
+
});
|
|
680
765
|
|
|
681
766
|
// Handle the result
|
|
682
767
|
console.log(result);
|
package/docs/sdks/novu/README.md
CHANGED
|
@@ -9,238 +9,11 @@ Novu Documentation
|
|
|
9
9
|
|
|
10
10
|
### Available Operations
|
|
11
11
|
|
|
12
|
-
* [healthControllerHealthCheck](#healthcontrollerhealthcheck)
|
|
13
|
-
* [testIdempotency](#testidempotency)
|
|
14
|
-
* [generateRandomNumber](#generaterandomnumber)
|
|
15
12
|
* [trigger](#trigger) - Trigger event
|
|
16
13
|
* [triggerBulk](#triggerbulk) - Bulk trigger event
|
|
17
14
|
* [triggerBroadcast](#triggerbroadcast) - Broadcast event to all
|
|
18
15
|
* [cancel](#cancel) - Cancel triggered event
|
|
19
16
|
|
|
20
|
-
## healthControllerHealthCheck
|
|
21
|
-
|
|
22
|
-
### Example Usage
|
|
23
|
-
|
|
24
|
-
```typescript
|
|
25
|
-
import { Novu } from "@novu/api";
|
|
26
|
-
|
|
27
|
-
const novu = new Novu({
|
|
28
|
-
apiKey: "<YOUR_API_KEY_HERE>",
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
async function run() {
|
|
32
|
-
const result = await novu.healthControllerHealthCheck();
|
|
33
|
-
|
|
34
|
-
// Handle the result
|
|
35
|
-
console.log(result);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
run();
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
### Standalone function
|
|
42
|
-
|
|
43
|
-
The standalone function version of this method:
|
|
44
|
-
|
|
45
|
-
```typescript
|
|
46
|
-
import { NovuCore } from "@novu/api/core.js";
|
|
47
|
-
import { healthControllerHealthCheck } from "@novu/api/funcs/healthControllerHealthCheck.js";
|
|
48
|
-
|
|
49
|
-
// Use `NovuCore` for best tree-shaking performance.
|
|
50
|
-
// You can create one instance of it to use across an application.
|
|
51
|
-
const novu = new NovuCore({
|
|
52
|
-
apiKey: "<YOUR_API_KEY_HERE>",
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
async function run() {
|
|
56
|
-
const res = await healthControllerHealthCheck(novu);
|
|
57
|
-
|
|
58
|
-
if (!res.ok) {
|
|
59
|
-
throw res.error;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
const { value: result } = res;
|
|
63
|
-
|
|
64
|
-
// Handle the result
|
|
65
|
-
console.log(result);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
run();
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
### Parameters
|
|
72
|
-
|
|
73
|
-
| Parameter | Type | Required | Description |
|
|
74
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
75
|
-
| `idempotencyKey` | *string* | :heavy_minus_sign: | A header for idempotency purposes |
|
|
76
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
77
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
78
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
79
|
-
|
|
80
|
-
### Response
|
|
81
|
-
|
|
82
|
-
**Promise\<[operations.HealthControllerHealthCheckResponseBody](../../models/operations/healthcontrollerhealthcheckresponsebody.md)\>**
|
|
83
|
-
|
|
84
|
-
### Errors
|
|
85
|
-
|
|
86
|
-
| Error Type | Status Code | Content Type |
|
|
87
|
-
| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- |
|
|
88
|
-
| errors.HealthControllerHealthCheckResponseBody | 503 | application/json |
|
|
89
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
90
|
-
|
|
91
|
-
## testIdempotency
|
|
92
|
-
|
|
93
|
-
### Example Usage
|
|
94
|
-
|
|
95
|
-
```typescript
|
|
96
|
-
import { Novu } from "@novu/api";
|
|
97
|
-
|
|
98
|
-
const novu = new Novu({
|
|
99
|
-
apiKey: "<YOUR_API_KEY_HERE>",
|
|
100
|
-
});
|
|
101
|
-
|
|
102
|
-
async function run() {
|
|
103
|
-
const result = await novu.testIdempotency({
|
|
104
|
-
expectedBehavior: "IMMEDIATE_EXCEPTION",
|
|
105
|
-
});
|
|
106
|
-
|
|
107
|
-
// Handle the result
|
|
108
|
-
console.log(result);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
run();
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
### Standalone function
|
|
115
|
-
|
|
116
|
-
The standalone function version of this method:
|
|
117
|
-
|
|
118
|
-
```typescript
|
|
119
|
-
import { NovuCore } from "@novu/api/core.js";
|
|
120
|
-
import { testIdempotency } from "@novu/api/funcs/testIdempotency.js";
|
|
121
|
-
|
|
122
|
-
// Use `NovuCore` for best tree-shaking performance.
|
|
123
|
-
// You can create one instance of it to use across an application.
|
|
124
|
-
const novu = new NovuCore({
|
|
125
|
-
apiKey: "<YOUR_API_KEY_HERE>",
|
|
126
|
-
});
|
|
127
|
-
|
|
128
|
-
async function run() {
|
|
129
|
-
const res = await testIdempotency(novu, {
|
|
130
|
-
expectedBehavior: "IMMEDIATE_EXCEPTION",
|
|
131
|
-
});
|
|
132
|
-
|
|
133
|
-
if (!res.ok) {
|
|
134
|
-
throw res.error;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
const { value: result } = res;
|
|
138
|
-
|
|
139
|
-
// Handle the result
|
|
140
|
-
console.log(result);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
run();
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
### Parameters
|
|
147
|
-
|
|
148
|
-
| Parameter | Type | Required | Description |
|
|
149
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
150
|
-
| `idempotencyTestingDto` | [components.IdempotencyTestingDto](../../models/components/idempotencytestingdto.md) | :heavy_check_mark: | N/A |
|
|
151
|
-
| `idempotencyKey` | *string* | :heavy_minus_sign: | A header for idempotency purposes |
|
|
152
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
153
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
154
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
155
|
-
|
|
156
|
-
### Response
|
|
157
|
-
|
|
158
|
-
**Promise\<[operations.HealthControllerTestIdempotencyResponse](../../models/operations/healthcontrollertestidempotencyresponse.md)\>**
|
|
159
|
-
|
|
160
|
-
### Errors
|
|
161
|
-
|
|
162
|
-
| Error Type | Status Code | Content Type |
|
|
163
|
-
| -------------------------------------- | -------------------------------------- | -------------------------------------- |
|
|
164
|
-
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
165
|
-
| errors.ErrorDto | 414 | application/json |
|
|
166
|
-
| errors.ValidationErrorDto | 422 | application/json |
|
|
167
|
-
| errors.ErrorDto | 500 | application/json |
|
|
168
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
169
|
-
|
|
170
|
-
## generateRandomNumber
|
|
171
|
-
|
|
172
|
-
### Example Usage
|
|
173
|
-
|
|
174
|
-
```typescript
|
|
175
|
-
import { Novu } from "@novu/api";
|
|
176
|
-
|
|
177
|
-
const novu = new Novu({
|
|
178
|
-
apiKey: "<YOUR_API_KEY_HERE>",
|
|
179
|
-
});
|
|
180
|
-
|
|
181
|
-
async function run() {
|
|
182
|
-
const result = await novu.generateRandomNumber();
|
|
183
|
-
|
|
184
|
-
// Handle the result
|
|
185
|
-
console.log(result);
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
run();
|
|
189
|
-
```
|
|
190
|
-
|
|
191
|
-
### Standalone function
|
|
192
|
-
|
|
193
|
-
The standalone function version of this method:
|
|
194
|
-
|
|
195
|
-
```typescript
|
|
196
|
-
import { NovuCore } from "@novu/api/core.js";
|
|
197
|
-
import { generateRandomNumber } from "@novu/api/funcs/generateRandomNumber.js";
|
|
198
|
-
|
|
199
|
-
// Use `NovuCore` for best tree-shaking performance.
|
|
200
|
-
// You can create one instance of it to use across an application.
|
|
201
|
-
const novu = new NovuCore({
|
|
202
|
-
apiKey: "<YOUR_API_KEY_HERE>",
|
|
203
|
-
});
|
|
204
|
-
|
|
205
|
-
async function run() {
|
|
206
|
-
const res = await generateRandomNumber(novu);
|
|
207
|
-
|
|
208
|
-
if (!res.ok) {
|
|
209
|
-
throw res.error;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
const { value: result } = res;
|
|
213
|
-
|
|
214
|
-
// Handle the result
|
|
215
|
-
console.log(result);
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
run();
|
|
219
|
-
```
|
|
220
|
-
|
|
221
|
-
### Parameters
|
|
222
|
-
|
|
223
|
-
| Parameter | Type | Required | Description |
|
|
224
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
225
|
-
| `idempotencyKey` | *string* | :heavy_minus_sign: | A header for idempotency purposes |
|
|
226
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
227
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
228
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
229
|
-
|
|
230
|
-
### Response
|
|
231
|
-
|
|
232
|
-
**Promise\<[operations.HealthControllerGenerateRandomNumberResponse](../../models/operations/healthcontrollergeneraterandomnumberresponse.md)\>**
|
|
233
|
-
|
|
234
|
-
### Errors
|
|
235
|
-
|
|
236
|
-
| Error Type | Status Code | Content Type |
|
|
237
|
-
| -------------------------------------- | -------------------------------------- | -------------------------------------- |
|
|
238
|
-
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
239
|
-
| errors.ErrorDto | 414 | application/json |
|
|
240
|
-
| errors.ValidationErrorDto | 422 | application/json |
|
|
241
|
-
| errors.ErrorDto | 500 | application/json |
|
|
242
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
243
|
-
|
|
244
17
|
## trigger
|
|
245
18
|
|
|
246
19
|
|
package/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -27,8 +27,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
27
27
|
export declare const SDK_METADATA: {
|
|
28
28
|
readonly language: "typescript";
|
|
29
29
|
readonly openapiDocVersion: "1.0";
|
|
30
|
-
readonly sdkVersion: "0.0
|
|
30
|
+
readonly sdkVersion: "0.1.0";
|
|
31
31
|
readonly genVersion: "2.493.21";
|
|
32
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.0
|
|
32
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.1.0 2.493.21 1.0 @novu/api";
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -29,8 +29,8 @@ exports.serverURLFromOptions = serverURLFromOptions;
|
|
|
29
29
|
exports.SDK_METADATA = {
|
|
30
30
|
language: "typescript",
|
|
31
31
|
openapiDocVersion: "1.0",
|
|
32
|
-
sdkVersion: "0.0
|
|
32
|
+
sdkVersion: "0.1.0",
|
|
33
33
|
genVersion: "2.493.21",
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 0.0
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 0.1.0 2.493.21 1.0 @novu/api",
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
|
@@ -51,9 +51,6 @@ export * from "./fieldfilterpartdto.js";
|
|
|
51
51
|
export * from "./filtertopicsresponsedto.js";
|
|
52
52
|
export * from "./getsubscriberpreferencesresponsedto.js";
|
|
53
53
|
export * from "./gettopicresponsedto.js";
|
|
54
|
-
export * from "./idempotencetestingresponse.js";
|
|
55
|
-
export * from "./idempotencybehaviorenum.js";
|
|
56
|
-
export * from "./idempotencytestingdto.js";
|
|
57
54
|
export * from "./integrationresponsedto.js";
|
|
58
55
|
export * from "./markallmessageasrequestdto.js";
|
|
59
56
|
export * from "./markmessageactionasseendto.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":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,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sCAAsC,CAAC;AACrD,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kCAAkC,CAAC;AACjD,cAAc,wCAAwC,CAAC;AACvD,cAAc,kDAAkD,CAAC;AACjE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,kDAAkD,CAAC;AACjE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,qCAAqC,CAAC"}
|
|
@@ -70,9 +70,6 @@ __exportStar(require("./fieldfilterpartdto.js"), exports);
|
|
|
70
70
|
__exportStar(require("./filtertopicsresponsedto.js"), exports);
|
|
71
71
|
__exportStar(require("./getsubscriberpreferencesresponsedto.js"), exports);
|
|
72
72
|
__exportStar(require("./gettopicresponsedto.js"), exports);
|
|
73
|
-
__exportStar(require("./idempotencetestingresponse.js"), exports);
|
|
74
|
-
__exportStar(require("./idempotencybehaviorenum.js"), exports);
|
|
75
|
-
__exportStar(require("./idempotencytestingdto.js"), exports);
|
|
76
73
|
__exportStar(require("./integrationresponsedto.js"), exports);
|
|
77
74
|
__exportStar(require("./markallmessageasrequestdto.js"), exports);
|
|
78
75
|
__exportStar(require("./markmessageactionasseendto.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,6DAA2C;AAC3C,mEAAiD;AACjD,sFAAoE;AACpE,0EAAwD;AACxD,uEAAqD;AACrD,2EAAyD;AACzD,iFAA+D;AAC/D,+EAA6D;AAC7D,gEAA8C;AAC9C,wDAAsC;AACtC,qDAAmC;AACnC,gEAA8C;AAC9C,kEAAgD;AAChD,4DAA0C;AAC1C,uEAAqD;AACrD,+DAA6C;AAC7C,2DAAyC;AACzC,sDAAoC;AACpC,0DAAwC;AACxC,6DAA2C;AAC3C,0DAAwC;AACxC,yDAAuC;AACvC,uDAAqC;AACrC,uDAAqC;AACrC,4DAA0C;AAC1C,mEAAiD;AACjD,kEAAgD;AAChD,6DAA2C;AAC3C,8DAA4C;AAC5C,sDAAoC;AACpC,sDAAoC;AACpC,4DAA0C;AAC1C,8DAA4C;AAC5C,gEAA8C;AAC9C,mEAAiD;AACjD,yDAAuC;AACvC,6DAA2C;AAC3C,4DAA0C;AAC1C,2DAAyC;AACzC,sDAAoC;AACpC,sDAAoC;AACpC,kDAAgC;AAChC,wDAAsC;AACtC,0DAAwC;AACxC,kEAAgD;AAChD,kEAAgD;AAChD,4DAA0C;AAC1C,0DAAwC;AACxC,uDAAqC;AACrC,0DAAwC;AACxC,+DAA6C;AAC7C,2EAAyD;AACzD,2DAAyC;AACzC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,6DAA2C;AAC3C,mEAAiD;AACjD,sFAAoE;AACpE,0EAAwD;AACxD,uEAAqD;AACrD,2EAAyD;AACzD,iFAA+D;AAC/D,+EAA6D;AAC7D,gEAA8C;AAC9C,wDAAsC;AACtC,qDAAmC;AACnC,gEAA8C;AAC9C,kEAAgD;AAChD,4DAA0C;AAC1C,uEAAqD;AACrD,+DAA6C;AAC7C,2DAAyC;AACzC,sDAAoC;AACpC,0DAAwC;AACxC,6DAA2C;AAC3C,0DAAwC;AACxC,yDAAuC;AACvC,uDAAqC;AACrC,uDAAqC;AACrC,4DAA0C;AAC1C,mEAAiD;AACjD,kEAAgD;AAChD,6DAA2C;AAC3C,8DAA4C;AAC5C,sDAAoC;AACpC,sDAAoC;AACpC,4DAA0C;AAC1C,8DAA4C;AAC5C,gEAA8C;AAC9C,mEAAiD;AACjD,yDAAuC;AACvC,6DAA2C;AAC3C,4DAA0C;AAC1C,2DAAyC;AACzC,sDAAoC;AACpC,sDAAoC;AACpC,kDAAgC;AAChC,wDAAsC;AACtC,0DAAwC;AACxC,kEAAgD;AAChD,kEAAgD;AAChD,4DAA0C;AAC1C,0DAAwC;AACxC,uDAAqC;AACrC,0DAAwC;AACxC,+DAA6C;AAC7C,2EAAyD;AACzD,2DAAyC;AACzC,8DAA4C;AAC5C,kEAAgD;AAChD,kEAAgD;AAChD,qDAAmC;AACnC,2DAAyC;AACzC,+DAA6C;AAC7C,qDAAmC;AACnC,kDAAgC;AAChC,sDAAoC;AACpC,+DAA6C;AAC7C,0DAAwC;AACxC,yDAAuC;AACvC,uDAAqC;AACrC,0DAAwC;AACxC,uDAAqC;AACrC,+DAA6C;AAC7C,yDAAuC;AACvC,4DAA0C;AAC1C,2DAAyC;AACzC,2DAAyC;AACzC,8DAA4C;AAC5C,mEAAiD;AACjD,mEAAiD;AACjD,2EAAyD;AACzD,mDAAiC;AACjC,wDAAsC;AACtC,kDAAgC;AAChC,0DAAwC;AACxC,uDAAqC;AACrC,mEAAiD;AACjD,6DAA2C;AAC3C,8DAA4C;AAC5C,qDAAmC;AACnC,gDAA8B;AAC9B,qDAAmC;AACnC,oDAAkC;AAClC,4DAA0C;AAC1C,iEAA+C;AAC/C,4DAA0C;AAC1C,6DAA2C;AAC3C,wDAAsC;AACtC,wDAAsC;AACtC,qDAAmC;AACnC,mDAAiC;AACjC,gDAA8B;AAC9B,uDAAqC;AACrC,0DAAwC;AACxC,8DAA4C;AAC5C,+DAA6C;AAC7C,mEAAiD;AACjD,iEAA+C;AAC/C,uEAAqD;AACrD,uDAAqC;AACrC,2DAAyC;AACzC,4DAA0C;AAC1C,mEAAiD;AACjD,yEAAuD;AACvD,mFAAiE;AACjE,4EAA0D;AAC1D,mFAAiE;AACjE,4EAA0D;AAC1D,6EAA2D;AAC3D,kEAAgD;AAChD,wDAAsC;AACtC,sEAAoD"}
|
package/models/errors/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/errors/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAC9B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/errors/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC"}
|
package/models/errors/index.js
CHANGED
|
@@ -18,7 +18,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
20
|
__exportStar(require("./errordto.js"), exports);
|
|
21
|
-
__exportStar(require("./healthcontrollerhealthcheck.js"), exports);
|
|
22
21
|
__exportStar(require("./httpclienterrors.js"), exports);
|
|
23
22
|
__exportStar(require("./sdkerror.js"), exports);
|
|
24
23
|
__exportStar(require("./sdkvalidationerror.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/errors/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,gDAA8B;AAC9B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/errors/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,gDAA8B;AAC9B,wDAAsC;AACtC,gDAA8B;AAC9B,0DAAwC;AACxC,0DAAwC"}
|
|
@@ -2,9 +2,6 @@ export * from "./eventscontrollerbroadcasteventtoall.js";
|
|
|
2
2
|
export * from "./eventscontrollercancel.js";
|
|
3
3
|
export * from "./eventscontrollertrigger.js";
|
|
4
4
|
export * from "./eventscontrollertriggerbulk.js";
|
|
5
|
-
export * from "./healthcontrollergeneraterandomnumber.js";
|
|
6
|
-
export * from "./healthcontrollerhealthcheck.js";
|
|
7
|
-
export * from "./healthcontrollertestidempotency.js";
|
|
8
5
|
export * from "./integrationscontrollercreateintegration.js";
|
|
9
6
|
export * from "./integrationscontrollergetactiveintegrations.js";
|
|
10
7
|
export * from "./integrationscontrollergetwebhooksupportstatus.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/operations/index.ts"],"names":[],"mappings":"AAIA,cAAc,0CAA0C,CAAC;AACzD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/operations/index.ts"],"names":[],"mappings":"AAIA,cAAc,0CAA0C,CAAC;AACzD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAA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|
|
21
21
|
__exportStar(require("./eventscontrollercancel.js"), exports);
|
|
22
22
|
__exportStar(require("./eventscontrollertrigger.js"), exports);
|
|
23
23
|
__exportStar(require("./eventscontrollertriggerbulk.js"), exports);
|
|
24
|
-
__exportStar(require("./healthcontrollergeneraterandomnumber.js"), exports);
|
|
25
|
-
__exportStar(require("./healthcontrollerhealthcheck.js"), exports);
|
|
26
|
-
__exportStar(require("./healthcontrollertestidempotency.js"), exports);
|
|
27
24
|
__exportStar(require("./integrationscontrollercreateintegration.js"), exports);
|
|
28
25
|
__exportStar(require("./integrationscontrollergetactiveintegrations.js"), exports);
|
|
29
26
|
__exportStar(require("./integrationscontrollergetwebhooksupportstatus.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/operations/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,2EAAyD;AACzD,8DAA4C;AAC5C,+DAA6C;AAC7C,mEAAiD;AACjD
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/operations/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,2EAAyD;AACzD,8DAA4C;AAC5C,+DAA6C;AAC7C,mEAAiD;AACjD,+EAA6D;AAC7D,mFAAiE;AACjE,qFAAmE;AACnE,8EAA4D;AAC5D,+EAA6D;AAC7D,qFAAmE;AACnE,mFAAiE;AACjE,uEAAqD;AACrD,uFAAqE;AACrE,qEAAmD;AACnD,oFAAkE;AAClE,+EAA6D;AAC7D,8EAA4D;AAC5D,gFAA8D;AAC9D,kFAAgE;AAChE,4EAA0D;AAC1D,8EAA4D;AAC5D,6EAA2D;AAC3D,wFAAsE;AACtE,iFAA+D;AAC/D,0EAAwD;AACxD,2FAAyE;AACzE,2EAAyD;AACzD,sFAAoE;AACpE,4EAA0D;AAC1D,6EAA2D;AAC3D,gFAA8D;AAC9D,2EAAyD;AACzD,oFAAkE;AAClE,6EAA2D;AAC3D,6EAA2D;AAC3D,oFAAkE;AAClE,8FAA4E;AAC5E,uFAAqE;AACrE,uFAAqE;AACrE,8DAA4C;AAC5C,mEAAiD;AACjD,mEAAiD;AACjD,gEAA8C;AAC9C,0EAAwD;AACxD,kEAAgD;AAChD,yEAAuD;AACvD,mEAAiD"}
|
package/package.json
CHANGED
package/sdk/sdk.d.ts
CHANGED
|
@@ -17,9 +17,6 @@ export declare class Novu extends ClientSDK {
|
|
|
17
17
|
get messages(): Messages;
|
|
18
18
|
private _topics?;
|
|
19
19
|
get topics(): Topics;
|
|
20
|
-
healthControllerHealthCheck(idempotencyKey?: string | undefined, options?: RequestOptions): Promise<operations.HealthControllerHealthCheckResponseBody>;
|
|
21
|
-
testIdempotency(idempotencyTestingDto: components.IdempotencyTestingDto, idempotencyKey?: string | undefined, options?: RequestOptions): Promise<operations.HealthControllerTestIdempotencyResponse>;
|
|
22
|
-
generateRandomNumber(idempotencyKey?: string | undefined, options?: RequestOptions): Promise<operations.HealthControllerGenerateRandomNumberResponse>;
|
|
23
20
|
/**
|
|
24
21
|
* Trigger event
|
|
25
22
|
*
|
package/sdk/sdk.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../src/sdk/sdk.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../src/sdk/sdk.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACn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