@novu/api 3.13.0 → 3.14.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 +41 -33
- package/examples/package-lock.json +3 -3
- package/funcs/environmentsGetTags.d.ts +1 -1
- package/funcs/environmentsGetTags.js +1 -1
- package/funcs/topicsSubscriptionsGetSubscription.d.ts +2 -2
- package/funcs/topicsSubscriptionsGetSubscription.js +2 -2
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/package.json +3 -3
- package/sdk/environments.d.ts +1 -1
- package/sdk/environments.js +1 -1
- package/sdk/subscriptions.d.ts +2 -2
- package/sdk/subscriptions.js +2 -2
- package/sources/json-development.json +31 -26
- package/src/funcs/environmentsGetTags.ts +1 -1
- package/src/funcs/topicsSubscriptionsGetSubscription.ts +2 -2
- package/src/lib/config.ts +4 -4
- package/src/sdk/environments.ts +1 -1
- package/src/sdk/subscriptions.ts +2 -2
package/README.md
CHANGED
|
@@ -297,7 +297,7 @@ run();
|
|
|
297
297
|
|
|
298
298
|
### [Environments](docs/sdks/environments/README.md)
|
|
299
299
|
|
|
300
|
-
* [getTags](docs/sdks/environments/README.md#gettags) -
|
|
300
|
+
* [getTags](docs/sdks/environments/README.md#gettags) - List environment tags
|
|
301
301
|
* [create](docs/sdks/environments/README.md#create) - Create an environment
|
|
302
302
|
* [list](docs/sdks/environments/README.md#list) - List all environments
|
|
303
303
|
* [update](docs/sdks/environments/README.md#update) - Update an environment
|
|
@@ -393,7 +393,7 @@ run();
|
|
|
393
393
|
* [list](docs/sdks/subscriptions/README.md#list) - List topic subscriptions
|
|
394
394
|
* [create](docs/sdks/subscriptions/README.md#create) - Create topic subscriptions
|
|
395
395
|
* [delete](docs/sdks/subscriptions/README.md#delete) - Delete topic subscriptions
|
|
396
|
-
* [getSubscription](docs/sdks/subscriptions/README.md#getsubscription) -
|
|
396
|
+
* [getSubscription](docs/sdks/subscriptions/README.md#getsubscription) - Retrieve a topic subscription
|
|
397
397
|
* [update](docs/sdks/subscriptions/README.md#update) - Update a topic subscription
|
|
398
398
|
|
|
399
399
|
### [Translations](docs/sdks/translations/README.md)
|
|
@@ -465,7 +465,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
465
465
|
- [`contextsUpdate`](docs/sdks/contexts/README.md#update) - Update a context
|
|
466
466
|
- [`environmentsCreate`](docs/sdks/environments/README.md#create) - Create an environment
|
|
467
467
|
- [`environmentsDelete`](docs/sdks/environments/README.md#delete) - Delete an environment
|
|
468
|
-
- [`environmentsGetTags`](docs/sdks/environments/README.md#gettags) -
|
|
468
|
+
- [`environmentsGetTags`](docs/sdks/environments/README.md#gettags) - List environment tags
|
|
469
469
|
- [`environmentsList`](docs/sdks/environments/README.md#list) - List all environments
|
|
470
470
|
- [`environmentsUpdate`](docs/sdks/environments/README.md#update) - Update an environment
|
|
471
471
|
- [`integrationsCreate`](docs/sdks/integrations/README.md#create) - Create an integration
|
|
@@ -515,7 +515,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
515
515
|
- [`topicsSubscribersRetrieve`](docs/sdks/novusubscribers/README.md#retrieve) - Check topic subscriber
|
|
516
516
|
- [`topicsSubscriptionsCreate`](docs/sdks/subscriptions/README.md#create) - Create topic subscriptions
|
|
517
517
|
- [`topicsSubscriptionsDelete`](docs/sdks/subscriptions/README.md#delete) - Delete topic subscriptions
|
|
518
|
-
- [`topicsSubscriptionsGetSubscription`](docs/sdks/subscriptions/README.md#getsubscription) -
|
|
518
|
+
- [`topicsSubscriptionsGetSubscription`](docs/sdks/subscriptions/README.md#getsubscription) - Retrieve a topic subscription
|
|
519
519
|
- [`topicsSubscriptionsList`](docs/sdks/subscriptions/README.md#list) - List topic subscriptions
|
|
520
520
|
- [`topicsSubscriptionsUpdate`](docs/sdks/subscriptions/README.md#update) - Update a topic subscription
|
|
521
521
|
- [`topicsUpdate`](docs/sdks/topics/README.md#update) - Update a topic
|
|
@@ -733,19 +733,23 @@ The `HTTPClient` constructor takes an optional `fetcher` argument that can be
|
|
|
733
733
|
used to integrate a third-party HTTP client or when writing tests to mock out
|
|
734
734
|
the HTTP client and feed in fixtures.
|
|
735
735
|
|
|
736
|
-
The following example shows how to
|
|
737
|
-
|
|
738
|
-
to
|
|
736
|
+
The following example shows how to:
|
|
737
|
+
- route requests through a proxy server using [undici](https://www.npmjs.com/package/undici)'s ProxyAgent
|
|
738
|
+
- use the `"beforeRequest"` hook to add a custom header and a timeout to requests
|
|
739
|
+
- use the `"requestError"` hook to log errors
|
|
739
740
|
|
|
740
741
|
```typescript
|
|
741
742
|
import { Novu } from "@novu/api";
|
|
743
|
+
import { ProxyAgent } from "undici";
|
|
742
744
|
import { HTTPClient } from "@novu/api/lib/http";
|
|
743
745
|
|
|
746
|
+
const dispatcher = new ProxyAgent("http://proxy.example.com:8080");
|
|
747
|
+
|
|
744
748
|
const httpClient = new HTTPClient({
|
|
745
|
-
// fetcher takes a function that has the same signature as native
|
|
746
|
-
fetcher: (
|
|
747
|
-
|
|
748
|
-
|
|
749
|
+
// 'fetcher' takes a function that has the same signature as native 'fetch'.
|
|
750
|
+
fetcher: (input, init) =>
|
|
751
|
+
// 'dispatcher' is specific to undici and not part of the standard Fetch API.
|
|
752
|
+
fetch(input, { ...init, dispatcher } as RequestInit),
|
|
749
753
|
});
|
|
750
754
|
|
|
751
755
|
httpClient.addHook("beforeRequest", (request) => {
|
|
@@ -863,32 +867,36 @@ const novu = new Novu({
|
|
|
863
867
|
});
|
|
864
868
|
|
|
865
869
|
async function run() {
|
|
866
|
-
const result = await novu.trigger(
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
"
|
|
870
|
+
const result = await novu.trigger(
|
|
871
|
+
{
|
|
872
|
+
workflowId: "workflow_identifier",
|
|
873
|
+
payload: {
|
|
874
|
+
"comment_id": "string",
|
|
875
|
+
"post": {
|
|
876
|
+
"text": "string",
|
|
877
|
+
},
|
|
878
|
+
},
|
|
879
|
+
overrides: {},
|
|
880
|
+
to: "SUBSCRIBER_ID",
|
|
881
|
+
actor: "<value>",
|
|
882
|
+
context: {
|
|
883
|
+
"key": "org-acme",
|
|
872
884
|
},
|
|
873
885
|
},
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
maxInterval: 50,
|
|
886
|
-
exponent: 1.1,
|
|
887
|
-
maxElapsedTime: 100,
|
|
886
|
+
undefined,
|
|
887
|
+
{
|
|
888
|
+
retries: {
|
|
889
|
+
strategy: "backoff",
|
|
890
|
+
backoff: {
|
|
891
|
+
initialInterval: 1,
|
|
892
|
+
maxInterval: 50,
|
|
893
|
+
exponent: 1.1,
|
|
894
|
+
maxElapsedTime: 100,
|
|
895
|
+
},
|
|
896
|
+
retryConnectionErrors: false,
|
|
888
897
|
},
|
|
889
|
-
retryConnectionErrors: false,
|
|
890
898
|
},
|
|
891
|
-
|
|
899
|
+
);
|
|
892
900
|
|
|
893
901
|
console.log(result);
|
|
894
902
|
}
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
},
|
|
19
19
|
"..": {
|
|
20
20
|
"name": "@novu/api",
|
|
21
|
-
"version": "3.
|
|
21
|
+
"version": "3.14.0",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"zod": "^3.25.0 || ^4.0.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@eslint/js": "^9.
|
|
27
|
-
"eslint": "^9.
|
|
26
|
+
"@eslint/js": "^9.26.0",
|
|
27
|
+
"eslint": "^9.26.0",
|
|
28
28
|
"globals": "^15.14.0",
|
|
29
29
|
"typescript": "~5.8.3",
|
|
30
30
|
"typescript-eslint": "^8.26.0"
|
|
@@ -9,7 +9,7 @@ import * as operations from "../models/operations/index.js";
|
|
|
9
9
|
import { APIPromise } from "../types/async.js";
|
|
10
10
|
import { Result } from "../types/fp.js";
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* List environment tags
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
15
|
* Retrieve all unique tags used in workflows within the specified environment. These tags can be used for filtering workflows.
|
|
@@ -47,7 +47,7 @@ const errors = __importStar(require("../models/errors/index.js"));
|
|
|
47
47
|
const operations = __importStar(require("../models/operations/index.js"));
|
|
48
48
|
const async_js_1 = require("../types/async.js");
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* List environment tags
|
|
51
51
|
*
|
|
52
52
|
* @remarks
|
|
53
53
|
* Retrieve all unique tags used in workflows within the specified environment. These tags can be used for filtering workflows.
|
|
@@ -9,10 +9,10 @@ import * as operations from "../models/operations/index.js";
|
|
|
9
9
|
import { APIPromise } from "../types/async.js";
|
|
10
10
|
import { Result } from "../types/fp.js";
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Retrieve a topic subscription
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
*
|
|
15
|
+
* Retrieve a subscription by its unique identifier for a topic.
|
|
16
16
|
*/
|
|
17
17
|
export declare function topicsSubscriptionsGetSubscription(client: NovuCore, topicKey: string, identifier: string, idempotencyKey?: string | undefined, options?: RequestOptions): APIPromise<Result<operations.TopicsControllerGetTopicSubscriptionResponse, errors.ErrorDto | errors.ValidationErrorDto | NovuError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
18
|
//# sourceMappingURL=topicsSubscriptionsGetSubscription.d.ts.map
|
|
@@ -47,10 +47,10 @@ const errors = __importStar(require("../models/errors/index.js"));
|
|
|
47
47
|
const operations = __importStar(require("../models/operations/index.js"));
|
|
48
48
|
const async_js_1 = require("../types/async.js");
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Retrieve a topic subscription
|
|
51
51
|
*
|
|
52
52
|
* @remarks
|
|
53
|
-
*
|
|
53
|
+
* Retrieve a subscription by its unique identifier for a topic.
|
|
54
54
|
*/
|
|
55
55
|
function topicsSubscriptionsGetSubscription(client, topicKey, identifier, idempotencyKey, options) {
|
|
56
56
|
return new async_js_1.APIPromise($do(client, topicKey, identifier, idempotencyKey, options));
|
package/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -30,9 +30,9 @@ export type SDKOptions = {
|
|
|
30
30
|
export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
|
-
readonly openapiDocVersion: "3.
|
|
34
|
-
readonly sdkVersion: "3.
|
|
35
|
-
readonly genVersion: "2.
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 3.
|
|
33
|
+
readonly openapiDocVersion: "3.13.0";
|
|
34
|
+
readonly sdkVersion: "3.14.0";
|
|
35
|
+
readonly genVersion: "2.836.5";
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 3.14.0 2.836.5 3.13.0 @novu/api";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -28,9 +28,9 @@ function serverURLFromOptions(options) {
|
|
|
28
28
|
}
|
|
29
29
|
exports.SDK_METADATA = {
|
|
30
30
|
language: "typescript",
|
|
31
|
-
openapiDocVersion: "3.
|
|
32
|
-
sdkVersion: "3.
|
|
33
|
-
genVersion: "2.
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 3.
|
|
31
|
+
openapiDocVersion: "3.13.0",
|
|
32
|
+
sdkVersion: "3.14.0",
|
|
33
|
+
genVersion: "2.836.5",
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 3.14.0 2.836.5 3.13.0 @novu/api",
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@novu/api",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.14.0",
|
|
4
4
|
"author": "Novu",
|
|
5
5
|
"description": "The <Inbox /> infrastructure for modern products",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@eslint/js": "^9.
|
|
22
|
-
"eslint": "^9.
|
|
21
|
+
"@eslint/js": "^9.26.0",
|
|
22
|
+
"eslint": "^9.26.0",
|
|
23
23
|
"globals": "^15.14.0",
|
|
24
24
|
"typescript": "~5.8.3",
|
|
25
25
|
"typescript-eslint": "^8.26.0"
|
package/sdk/environments.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as components from "../models/components/index.js";
|
|
|
3
3
|
import * as operations from "../models/operations/index.js";
|
|
4
4
|
export declare class Environments extends ClientSDK {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* List environment tags
|
|
7
7
|
*
|
|
8
8
|
* @remarks
|
|
9
9
|
* Retrieve all unique tags used in workflows within the specified environment. These tags can be used for filtering workflows.
|
package/sdk/environments.js
CHANGED
|
@@ -13,7 +13,7 @@ const sdks_js_1 = require("../lib/sdks.js");
|
|
|
13
13
|
const fp_js_1 = require("../types/fp.js");
|
|
14
14
|
class Environments extends sdks_js_1.ClientSDK {
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* List environment tags
|
|
17
17
|
*
|
|
18
18
|
* @remarks
|
|
19
19
|
* Retrieve all unique tags used in workflows within the specified environment. These tags can be used for filtering workflows.
|
package/sdk/subscriptions.d.ts
CHANGED
|
@@ -26,10 +26,10 @@ export declare class Subscriptions extends ClientSDK {
|
|
|
26
26
|
*/
|
|
27
27
|
delete(deleteTopicSubscriptionsRequestDto: components.DeleteTopicSubscriptionsRequestDto, topicKey: string, idempotencyKey?: string | undefined, options?: RequestOptions): Promise<operations.TopicsControllerDeleteTopicSubscriptionsResponse>;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Retrieve a topic subscription
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
*
|
|
32
|
+
* Retrieve a subscription by its unique identifier for a topic.
|
|
33
33
|
*/
|
|
34
34
|
getSubscription(topicKey: string, identifier: string, idempotencyKey?: string | undefined, options?: RequestOptions): Promise<operations.TopicsControllerGetTopicSubscriptionResponse>;
|
|
35
35
|
/**
|
package/sdk/subscriptions.js
CHANGED
|
@@ -42,10 +42,10 @@ class Subscriptions extends sdks_js_1.ClientSDK {
|
|
|
42
42
|
return (0, fp_js_1.unwrapAsync)((0, topicsSubscriptionsDelete_js_1.topicsSubscriptionsDelete)(this, deleteTopicSubscriptionsRequestDto, topicKey, idempotencyKey, options));
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Retrieve a topic subscription
|
|
46
46
|
*
|
|
47
47
|
* @remarks
|
|
48
|
-
*
|
|
48
|
+
* Retrieve a subscription by its unique identifier for a topic.
|
|
49
49
|
*/
|
|
50
50
|
async getSubscription(topicKey, identifier, idempotencyKey, options) {
|
|
51
51
|
return (0, fp_js_1.unwrapAsync)((0, topicsSubscriptionsGetSubscription_js_1.topicsSubscriptionsGetSubscription)(this, topicKey, identifier, idempotencyKey, options));
|
|
@@ -2497,7 +2497,7 @@
|
|
|
2497
2497
|
"get": {
|
|
2498
2498
|
"operationId": "EnvironmentsController_getEnvironmentTags",
|
|
2499
2499
|
"x-speakeasy-name-override": "getTags",
|
|
2500
|
-
"summary": "
|
|
2500
|
+
"summary": "List environment tags",
|
|
2501
2501
|
"description": "Retrieve all unique tags used in workflows within the specified environment. These tags can be used for filtering workflows.",
|
|
2502
2502
|
"parameters": [
|
|
2503
2503
|
{
|
|
@@ -15657,8 +15657,8 @@
|
|
|
15657
15657
|
"operationId": "TopicsController_getTopicSubscription",
|
|
15658
15658
|
"x-speakeasy-name-override": "getSubscription",
|
|
15659
15659
|
"x-speakeasy-group": "Topics.Subscriptions",
|
|
15660
|
-
"summary": "
|
|
15661
|
-
"description": "
|
|
15660
|
+
"summary": "Retrieve a topic subscription",
|
|
15661
|
+
"description": "Retrieve a subscription by its unique identifier for a topic.",
|
|
15662
15662
|
"parameters": [
|
|
15663
15663
|
{
|
|
15664
15664
|
"name": "topicKey",
|
|
@@ -42137,7 +42137,7 @@
|
|
|
42137
42137
|
"info": {
|
|
42138
42138
|
"title": "Novu API",
|
|
42139
42139
|
"description": "Novu REST API. Please see https://docs.novu.co/api-reference for more details.",
|
|
42140
|
-
"version": "3.
|
|
42140
|
+
"version": "3.13.0",
|
|
42141
42141
|
"contact": {
|
|
42142
42142
|
"name": "Novu Support",
|
|
42143
42143
|
"url": "https://discord.gg/novu",
|
|
@@ -42228,7 +42228,7 @@
|
|
|
42228
42228
|
"type": "apiKey",
|
|
42229
42229
|
"name": "Authorization",
|
|
42230
42230
|
"in": "header",
|
|
42231
|
-
"description": "API key authentication. Allowed headers-- \"Authorization: ApiKey
|
|
42231
|
+
"description": "API key authentication. Allowed headers-- \"Authorization: ApiKey <novu_secret_key>\".",
|
|
42232
42232
|
"x-speakeasy-example": "YOUR_SECRET_KEY_HERE"
|
|
42233
42233
|
}
|
|
42234
42234
|
},
|
|
@@ -43362,7 +43362,7 @@
|
|
|
43362
43362
|
"text": "string"
|
|
43363
43363
|
}
|
|
43364
43364
|
},
|
|
43365
|
-
"description": "The payload object is used to pass additional information that \n could be used to render the template, or perform routing rules based on it. \n For In-App channel, payload data are also available in
|
|
43365
|
+
"description": "The payload object is used to pass additional information that \n could be used to render the template, or perform routing rules based on it. \n For In-App channel, payload data are also available in <Inbox />",
|
|
43366
43366
|
"additionalProperties": true
|
|
43367
43367
|
},
|
|
43368
43368
|
"overrides": {
|
|
@@ -49948,7 +49948,7 @@
|
|
|
49948
49948
|
]
|
|
49949
49949
|
},
|
|
49950
49950
|
{
|
|
49951
|
-
"
|
|
49951
|
+
">": [
|
|
49952
49952
|
{
|
|
49953
49953
|
"var": "payload.amount"
|
|
49954
49954
|
},
|
|
@@ -50126,7 +50126,7 @@
|
|
|
50126
50126
|
]
|
|
50127
50127
|
},
|
|
50128
50128
|
{
|
|
50129
|
-
"
|
|
50129
|
+
">": [
|
|
50130
50130
|
{
|
|
50131
50131
|
"var": "payload.amount"
|
|
50132
50132
|
},
|
|
@@ -50274,7 +50274,7 @@
|
|
|
50274
50274
|
]
|
|
50275
50275
|
},
|
|
50276
50276
|
{
|
|
50277
|
-
"
|
|
50277
|
+
">": [
|
|
50278
50278
|
{
|
|
50279
50279
|
"var": "payload.amount"
|
|
50280
50280
|
},
|
|
@@ -50426,7 +50426,7 @@
|
|
|
50426
50426
|
]
|
|
50427
50427
|
},
|
|
50428
50428
|
{
|
|
50429
|
-
"
|
|
50429
|
+
">": [
|
|
50430
50430
|
{
|
|
50431
50431
|
"var": "payload.amount"
|
|
50432
50432
|
},
|
|
@@ -50574,7 +50574,7 @@
|
|
|
50574
50574
|
]
|
|
50575
50575
|
},
|
|
50576
50576
|
{
|
|
50577
|
-
"
|
|
50577
|
+
">": [
|
|
50578
50578
|
{
|
|
50579
50579
|
"var": "payload.amount"
|
|
50580
50580
|
},
|
|
@@ -50775,7 +50775,7 @@
|
|
|
50775
50775
|
]
|
|
50776
50776
|
},
|
|
50777
50777
|
{
|
|
50778
|
-
"
|
|
50778
|
+
">": [
|
|
50779
50779
|
{
|
|
50780
50780
|
"var": "payload.amount"
|
|
50781
50781
|
},
|
|
@@ -50961,7 +50961,7 @@
|
|
|
50961
50961
|
]
|
|
50962
50962
|
},
|
|
50963
50963
|
{
|
|
50964
|
-
"
|
|
50964
|
+
">": [
|
|
50965
50965
|
{
|
|
50966
50966
|
"var": "payload.amount"
|
|
50967
50967
|
},
|
|
@@ -51299,7 +51299,7 @@
|
|
|
51299
51299
|
]
|
|
51300
51300
|
},
|
|
51301
51301
|
{
|
|
51302
|
-
"
|
|
51302
|
+
">": [
|
|
51303
51303
|
{
|
|
51304
51304
|
"var": "payload.amount"
|
|
51305
51305
|
},
|
|
@@ -51758,7 +51758,7 @@
|
|
|
51758
51758
|
},
|
|
51759
51759
|
"stepId": {
|
|
51760
51760
|
"type": "string",
|
|
51761
|
-
"pattern": "/^[a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*$/",
|
|
51761
|
+
"pattern": "/^[a-zA-Z0-9]+(?:[-_.][a-zA-Z0-9]+)*$/",
|
|
51762
51762
|
"description": "Unique identifier for the step"
|
|
51763
51763
|
},
|
|
51764
51764
|
"name": {
|
|
@@ -51795,7 +51795,7 @@
|
|
|
51795
51795
|
},
|
|
51796
51796
|
"stepId": {
|
|
51797
51797
|
"type": "string",
|
|
51798
|
-
"pattern": "/^[a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*$/",
|
|
51798
|
+
"pattern": "/^[a-zA-Z0-9]+(?:[-_.][a-zA-Z0-9]+)*$/",
|
|
51799
51799
|
"description": "Unique identifier for the step"
|
|
51800
51800
|
},
|
|
51801
51801
|
"name": {
|
|
@@ -51832,7 +51832,7 @@
|
|
|
51832
51832
|
},
|
|
51833
51833
|
"stepId": {
|
|
51834
51834
|
"type": "string",
|
|
51835
|
-
"pattern": "/^[a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*$/",
|
|
51835
|
+
"pattern": "/^[a-zA-Z0-9]+(?:[-_.][a-zA-Z0-9]+)*$/",
|
|
51836
51836
|
"description": "Unique identifier for the step"
|
|
51837
51837
|
},
|
|
51838
51838
|
"name": {
|
|
@@ -51869,7 +51869,7 @@
|
|
|
51869
51869
|
},
|
|
51870
51870
|
"stepId": {
|
|
51871
51871
|
"type": "string",
|
|
51872
|
-
"pattern": "/^[a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*$/",
|
|
51872
|
+
"pattern": "/^[a-zA-Z0-9]+(?:[-_.][a-zA-Z0-9]+)*$/",
|
|
51873
51873
|
"description": "Unique identifier for the step"
|
|
51874
51874
|
},
|
|
51875
51875
|
"name": {
|
|
@@ -51906,7 +51906,7 @@
|
|
|
51906
51906
|
},
|
|
51907
51907
|
"stepId": {
|
|
51908
51908
|
"type": "string",
|
|
51909
|
-
"pattern": "/^[a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*$/",
|
|
51909
|
+
"pattern": "/^[a-zA-Z0-9]+(?:[-_.][a-zA-Z0-9]+)*$/",
|
|
51910
51910
|
"description": "Unique identifier for the step"
|
|
51911
51911
|
},
|
|
51912
51912
|
"name": {
|
|
@@ -51943,7 +51943,7 @@
|
|
|
51943
51943
|
},
|
|
51944
51944
|
"stepId": {
|
|
51945
51945
|
"type": "string",
|
|
51946
|
-
"pattern": "/^[a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*$/",
|
|
51946
|
+
"pattern": "/^[a-zA-Z0-9]+(?:[-_.][a-zA-Z0-9]+)*$/",
|
|
51947
51947
|
"description": "Unique identifier for the step"
|
|
51948
51948
|
},
|
|
51949
51949
|
"name": {
|
|
@@ -51980,7 +51980,7 @@
|
|
|
51980
51980
|
},
|
|
51981
51981
|
"stepId": {
|
|
51982
51982
|
"type": "string",
|
|
51983
|
-
"pattern": "/^[a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*$/",
|
|
51983
|
+
"pattern": "/^[a-zA-Z0-9]+(?:[-_.][a-zA-Z0-9]+)*$/",
|
|
51984
51984
|
"description": "Unique identifier for the step"
|
|
51985
51985
|
},
|
|
51986
51986
|
"name": {
|
|
@@ -52017,7 +52017,7 @@
|
|
|
52017
52017
|
},
|
|
52018
52018
|
"stepId": {
|
|
52019
52019
|
"type": "string",
|
|
52020
|
-
"pattern": "/^[a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*$/",
|
|
52020
|
+
"pattern": "/^[a-zA-Z0-9]+(?:[-_.][a-zA-Z0-9]+)*$/",
|
|
52021
52021
|
"description": "Unique identifier for the step"
|
|
52022
52022
|
},
|
|
52023
52023
|
"name": {
|
|
@@ -52054,7 +52054,7 @@
|
|
|
52054
52054
|
},
|
|
52055
52055
|
"stepId": {
|
|
52056
52056
|
"type": "string",
|
|
52057
|
-
"pattern": "/^[a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*$/",
|
|
52057
|
+
"pattern": "/^[a-zA-Z0-9]+(?:[-_.][a-zA-Z0-9]+)*$/",
|
|
52058
52058
|
"description": "Unique identifier for the step"
|
|
52059
52059
|
},
|
|
52060
52060
|
"name": {
|
|
@@ -52162,7 +52162,7 @@
|
|
|
52162
52162
|
},
|
|
52163
52163
|
"workflowId": {
|
|
52164
52164
|
"type": "string",
|
|
52165
|
-
"pattern": "/^[a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*$/",
|
|
52165
|
+
"pattern": "/^[a-zA-Z0-9]+(?:[-_.][a-zA-Z0-9]+)*$/",
|
|
52166
52166
|
"description": "Unique identifier for the workflow"
|
|
52167
52167
|
},
|
|
52168
52168
|
"steps": {
|
|
@@ -52518,7 +52518,7 @@
|
|
|
52518
52518
|
},
|
|
52519
52519
|
"workflowId": {
|
|
52520
52520
|
"type": "string",
|
|
52521
|
-
"pattern": "/^[a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*$/",
|
|
52521
|
+
"pattern": "/^[a-zA-Z0-9]+(?:[-_.][a-zA-Z0-9]+)*$/",
|
|
52522
52522
|
"description": "Custom workflow identifier for the duplicated workflow"
|
|
52523
52523
|
},
|
|
52524
52524
|
"tags": {
|
|
@@ -54609,10 +54609,15 @@
|
|
|
54609
54609
|
"object": {
|
|
54610
54610
|
"type": "object",
|
|
54611
54611
|
"description": "Current preference state"
|
|
54612
|
+
},
|
|
54613
|
+
"subscriberId": {
|
|
54614
|
+
"type": "string",
|
|
54615
|
+
"description": "Subscriber ID"
|
|
54612
54616
|
}
|
|
54613
54617
|
},
|
|
54614
54618
|
"required": [
|
|
54615
|
-
"object"
|
|
54619
|
+
"object",
|
|
54620
|
+
"subscriberId"
|
|
54616
54621
|
]
|
|
54617
54622
|
},
|
|
54618
54623
|
"WebhookMessageDtoWebhookPayloadWrapper": {
|
|
@@ -26,7 +26,7 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* List environment tags
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
32
|
* Retrieve all unique tags used in workflows within the specified environment. These tags can be used for filtering workflows.
|
|
@@ -26,10 +26,10 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Retrieve a topic subscription
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
*
|
|
32
|
+
* Retrieve a subscription by its unique identifier for a topic.
|
|
33
33
|
*/
|
|
34
34
|
export function topicsSubscriptionsGetSubscription(
|
|
35
35
|
client: NovuCore,
|
package/src/lib/config.ts
CHANGED
|
@@ -58,8 +58,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
58
58
|
|
|
59
59
|
export const SDK_METADATA = {
|
|
60
60
|
language: "typescript",
|
|
61
|
-
openapiDocVersion: "3.
|
|
62
|
-
sdkVersion: "3.
|
|
63
|
-
genVersion: "2.
|
|
64
|
-
userAgent: "speakeasy-sdk/typescript 3.
|
|
61
|
+
openapiDocVersion: "3.13.0",
|
|
62
|
+
sdkVersion: "3.14.0",
|
|
63
|
+
genVersion: "2.836.5",
|
|
64
|
+
userAgent: "speakeasy-sdk/typescript 3.14.0 2.836.5 3.13.0 @novu/api",
|
|
65
65
|
} as const;
|
package/src/sdk/environments.ts
CHANGED
|
@@ -14,7 +14,7 @@ import { unwrapAsync } from "../types/fp.js";
|
|
|
14
14
|
|
|
15
15
|
export class Environments extends ClientSDK {
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* List environment tags
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
20
|
* Retrieve all unique tags used in workflows within the specified environment. These tags can be used for filtering workflows.
|
package/src/sdk/subscriptions.ts
CHANGED
|
@@ -77,10 +77,10 @@ export class Subscriptions extends ClientSDK {
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
80
|
+
* Retrieve a topic subscription
|
|
81
81
|
*
|
|
82
82
|
* @remarks
|
|
83
|
-
*
|
|
83
|
+
* Retrieve a subscription by its unique identifier for a topic.
|
|
84
84
|
*/
|
|
85
85
|
async getSubscription(
|
|
86
86
|
topicKey: string,
|