@novu/api 3.14.3 → 3.14.4
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 +32 -32
- package/funcs/environmentVariablesCreate.d.ts +1 -1
- package/funcs/environmentVariablesCreate.js +1 -1
- package/funcs/environmentVariablesDelete.d.ts +1 -1
- package/funcs/environmentVariablesDelete.js +1 -1
- package/funcs/environmentVariablesList.d.ts +1 -1
- package/funcs/environmentVariablesList.js +1 -1
- package/funcs/environmentVariablesRetrieve.d.ts +1 -1
- package/funcs/environmentVariablesRetrieve.js +1 -1
- package/funcs/environmentVariablesUpdate.d.ts +1 -1
- package/funcs/environmentVariablesUpdate.js +1 -1
- package/funcs/environmentVariablesUsage.d.ts +2 -2
- package/funcs/environmentVariablesUsage.js +2 -2
- package/funcs/subscribersNotificationsArchive.d.ts +2 -2
- package/funcs/subscribersNotificationsArchive.js +2 -2
- package/funcs/subscribersNotificationsArchiveAll.d.ts +1 -1
- package/funcs/subscribersNotificationsArchiveAll.js +1 -1
- package/funcs/subscribersNotificationsArchiveAllRead.d.ts +1 -1
- package/funcs/subscribersNotificationsArchiveAllRead.js +1 -1
- package/funcs/subscribersNotificationsCompleteAction.d.ts +2 -2
- package/funcs/subscribersNotificationsCompleteAction.js +2 -2
- package/funcs/subscribersNotificationsCount.d.ts +2 -2
- package/funcs/subscribersNotificationsCount.js +2 -2
- package/funcs/subscribersNotificationsDelete.d.ts +2 -2
- package/funcs/subscribersNotificationsDelete.js +2 -2
- package/funcs/subscribersNotificationsDeleteAll.d.ts +1 -1
- package/funcs/subscribersNotificationsDeleteAll.js +1 -1
- package/funcs/subscribersNotificationsList.d.ts +1 -1
- package/funcs/subscribersNotificationsList.js +1 -1
- package/funcs/subscribersNotificationsMarkAllAsRead.d.ts +1 -1
- package/funcs/subscribersNotificationsMarkAllAsRead.js +1 -1
- package/funcs/subscribersNotificationsMarkAsRead.d.ts +2 -2
- package/funcs/subscribersNotificationsMarkAsRead.js +2 -2
- package/funcs/subscribersNotificationsMarkAsSeen.d.ts +1 -1
- package/funcs/subscribersNotificationsMarkAsSeen.js +1 -1
- package/funcs/subscribersNotificationsMarkAsUnread.d.ts +2 -2
- package/funcs/subscribersNotificationsMarkAsUnread.js +2 -2
- package/funcs/subscribersNotificationsRevertAction.d.ts +2 -2
- package/funcs/subscribersNotificationsRevertAction.js +2 -2
- package/funcs/subscribersNotificationsSnooze.d.ts +2 -2
- package/funcs/subscribersNotificationsSnooze.js +2 -2
- package/funcs/subscribersNotificationsUnarchive.d.ts +2 -2
- package/funcs/subscribersNotificationsUnarchive.js +2 -2
- package/funcs/subscribersNotificationsUnsnooze.d.ts +2 -2
- package/funcs/subscribersNotificationsUnsnooze.js +2 -2
- package/funcs/workflowsStepsGeneratePreview.d.ts +1 -1
- package/funcs/workflowsStepsGeneratePreview.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/getchannelconnectionresponsedto.d.ts +1 -0
- package/models/components/getchannelconnectionresponsedto.d.ts.map +1 -1
- package/models/components/getchannelconnectionresponsedto.js +1 -0
- package/models/components/getchannelconnectionresponsedto.js.map +1 -1
- package/models/components/getchannelendpointresponsedto.d.ts +1 -0
- package/models/components/getchannelendpointresponsedto.d.ts.map +1 -1
- package/models/components/getchannelendpointresponsedto.js +1 -0
- package/models/components/getchannelendpointresponsedto.js.map +1 -1
- package/models/components/providersidenum.d.ts +1 -0
- package/models/components/providersidenum.d.ts.map +1 -1
- package/models/components/providersidenum.js +1 -0
- package/models/components/providersidenum.js.map +1 -1
- package/package.json +1 -1
- package/sdk/environmentvariables.d.ts +7 -7
- package/sdk/environmentvariables.js +7 -7
- package/sdk/novunotifications.d.ts +26 -26
- package/sdk/novunotifications.js +26 -26
- package/sdk/steps.d.ts +1 -1
- package/sdk/steps.js +1 -1
- package/src/funcs/environmentVariablesCreate.ts +1 -1
- package/src/funcs/environmentVariablesDelete.ts +1 -1
- package/src/funcs/environmentVariablesList.ts +1 -1
- package/src/funcs/environmentVariablesRetrieve.ts +1 -1
- package/src/funcs/environmentVariablesUpdate.ts +1 -1
- package/src/funcs/environmentVariablesUsage.ts +2 -2
- package/src/funcs/subscribersNotificationsArchive.ts +2 -2
- package/src/funcs/subscribersNotificationsArchiveAll.ts +1 -1
- package/src/funcs/subscribersNotificationsArchiveAllRead.ts +1 -1
- package/src/funcs/subscribersNotificationsCompleteAction.ts +2 -2
- package/src/funcs/subscribersNotificationsCount.ts +2 -2
- package/src/funcs/subscribersNotificationsDelete.ts +2 -2
- package/src/funcs/subscribersNotificationsDeleteAll.ts +1 -1
- package/src/funcs/subscribersNotificationsList.ts +1 -1
- package/src/funcs/subscribersNotificationsMarkAllAsRead.ts +1 -1
- package/src/funcs/subscribersNotificationsMarkAsRead.ts +2 -2
- package/src/funcs/subscribersNotificationsMarkAsSeen.ts +1 -1
- package/src/funcs/subscribersNotificationsMarkAsUnread.ts +2 -2
- package/src/funcs/subscribersNotificationsRevertAction.ts +2 -2
- package/src/funcs/subscribersNotificationsSnooze.ts +2 -2
- package/src/funcs/subscribersNotificationsUnarchive.ts +2 -2
- package/src/funcs/subscribersNotificationsUnsnooze.ts +2 -2
- package/src/funcs/workflowsStepsGeneratePreview.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/getchannelconnectionresponsedto.ts +1 -0
- package/src/models/components/getchannelendpointresponsedto.ts +1 -0
- package/src/models/components/providersidenum.ts +1 -0
- package/src/sdk/environmentvariables.ts +7 -7
- package/src/sdk/novunotifications.ts +26 -26
- package/src/sdk/steps.ts +1 -1
package/sdk/novunotifications.js
CHANGED
|
@@ -29,89 +29,89 @@ class NovuNotifications extends sdks_js_1.ClientSDK {
|
|
|
29
29
|
* Retrieve subscriber notifications
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Retrieve in-app notifications for a subscriber by its unique key identifier **subscriberId**.
|
|
32
|
+
* Retrieve in-app (inbox) notifications for a subscriber by its unique key identifier **subscriberId**.
|
|
33
33
|
* Supports filtering by tags, read/archived/snoozed/seen state, data attributes, severity, date range, and context keys.
|
|
34
34
|
*/
|
|
35
35
|
async list(request, options) {
|
|
36
36
|
return (0, fp_js_1.unwrapAsync)((0, subscribersNotificationsList_js_1.subscribersNotificationsList)(this, request, options));
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
|
-
* Delete notification
|
|
39
|
+
* Delete a notification
|
|
40
40
|
*
|
|
41
41
|
* @remarks
|
|
42
|
-
* Delete a specific notification by its unique identifier **notificationId**.
|
|
42
|
+
* Delete a specific in-app (inbox) notification permanently by its unique identifier **notificationId**.
|
|
43
43
|
*/
|
|
44
44
|
async delete(request, options) {
|
|
45
45
|
return (0, fp_js_1.unwrapAsync)((0, subscribersNotificationsDelete_js_1.subscribersNotificationsDelete)(this, request, options));
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
|
-
* Complete notification action
|
|
48
|
+
* Complete a notification action
|
|
49
49
|
*
|
|
50
50
|
* @remarks
|
|
51
|
-
* Mark a notification action (primary or secondary) as completed by its unique identifier **notificationId** and action type
|
|
51
|
+
* Mark a single in-app (inbox) notification's action (primary or secondary) as completed by its unique identifier **notificationId** and action type **actionType**.
|
|
52
52
|
*/
|
|
53
53
|
async completeAction(request, options) {
|
|
54
54
|
return (0, fp_js_1.unwrapAsync)((0, subscribersNotificationsCompleteAction_js_1.subscribersNotificationsCompleteAction)(this, request, options));
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
|
-
* Revert notification action
|
|
57
|
+
* Revert a notification action
|
|
58
58
|
*
|
|
59
59
|
* @remarks
|
|
60
|
-
* Revert a notification action (primary or secondary) to pending state by its unique identifier **notificationId** and action type
|
|
60
|
+
* Revert a single in-app (inbox) notification's action (primary or secondary) to pending state by its unique identifier **notificationId** and action type **actionType**.
|
|
61
61
|
*/
|
|
62
62
|
async revertAction(request, options) {
|
|
63
63
|
return (0, fp_js_1.unwrapAsync)((0, subscribersNotificationsRevertAction_js_1.subscribersNotificationsRevertAction)(this, request, options));
|
|
64
64
|
}
|
|
65
65
|
/**
|
|
66
|
-
* Archive notification
|
|
66
|
+
* Archive a notification
|
|
67
67
|
*
|
|
68
68
|
* @remarks
|
|
69
|
-
* Archive a specific notification by its unique identifier **notificationId**.
|
|
69
|
+
* Archive a specific in-app (inbox) notification by its unique identifier **notificationId**.
|
|
70
70
|
*/
|
|
71
71
|
async archive(request, options) {
|
|
72
72
|
return (0, fp_js_1.unwrapAsync)((0, subscribersNotificationsArchive_js_1.subscribersNotificationsArchive)(this, request, options));
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
|
-
* Mark notification as read
|
|
75
|
+
* Mark a notification as read
|
|
76
76
|
*
|
|
77
77
|
* @remarks
|
|
78
|
-
* Mark a specific notification as read by its unique identifier **notificationId**.
|
|
78
|
+
* Mark a specific in-app (inbox) notification as read by its unique identifier **notificationId**.
|
|
79
79
|
*/
|
|
80
80
|
async markAsRead(request, options) {
|
|
81
81
|
return (0, fp_js_1.unwrapAsync)((0, subscribersNotificationsMarkAsRead_js_1.subscribersNotificationsMarkAsRead)(this, request, options));
|
|
82
82
|
}
|
|
83
83
|
/**
|
|
84
|
-
* Snooze notification
|
|
84
|
+
* Snooze a notification
|
|
85
85
|
*
|
|
86
86
|
* @remarks
|
|
87
|
-
* Snooze a specific notification by its unique identifier **notificationId** until a specified time.
|
|
87
|
+
* Snooze a specific in-app (inbox) notification by its unique identifier **notificationId** until a specified time.
|
|
88
88
|
*/
|
|
89
89
|
async snooze(request, options) {
|
|
90
90
|
return (0, fp_js_1.unwrapAsync)((0, subscribersNotificationsSnooze_js_1.subscribersNotificationsSnooze)(this, request, options));
|
|
91
91
|
}
|
|
92
92
|
/**
|
|
93
|
-
* Unarchive notification
|
|
93
|
+
* Unarchive a notification
|
|
94
94
|
*
|
|
95
95
|
* @remarks
|
|
96
|
-
* Unarchive a specific notification by its unique identifier **notificationId**.
|
|
96
|
+
* Unarchive a specific in-app (inbox) notification by its unique identifier **notificationId**.
|
|
97
97
|
*/
|
|
98
98
|
async unarchive(request, options) {
|
|
99
99
|
return (0, fp_js_1.unwrapAsync)((0, subscribersNotificationsUnarchive_js_1.subscribersNotificationsUnarchive)(this, request, options));
|
|
100
100
|
}
|
|
101
101
|
/**
|
|
102
|
-
* Mark notification as unread
|
|
102
|
+
* Mark a notification as unread
|
|
103
103
|
*
|
|
104
104
|
* @remarks
|
|
105
|
-
* Mark a specific notification as unread by its unique identifier **notificationId**.
|
|
105
|
+
* Mark a specific in-app (inbox) notification as unread by its unique identifier **notificationId**.
|
|
106
106
|
*/
|
|
107
107
|
async markAsUnread(request, options) {
|
|
108
108
|
return (0, fp_js_1.unwrapAsync)((0, subscribersNotificationsMarkAsUnread_js_1.subscribersNotificationsMarkAsUnread)(this, request, options));
|
|
109
109
|
}
|
|
110
110
|
/**
|
|
111
|
-
* Unsnooze notification
|
|
111
|
+
* Unsnooze a notification
|
|
112
112
|
*
|
|
113
113
|
* @remarks
|
|
114
|
-
* Unsnooze a specific notification by its unique identifier **notificationId**.
|
|
114
|
+
* Unsnooze a specific in-app (inbox) notification by its unique identifier **notificationId**.
|
|
115
115
|
*/
|
|
116
116
|
async unsnooze(request, options) {
|
|
117
117
|
return (0, fp_js_1.unwrapAsync)((0, subscribersNotificationsUnsnooze_js_1.subscribersNotificationsUnsnooze)(this, request, options));
|
|
@@ -120,7 +120,7 @@ class NovuNotifications extends sdks_js_1.ClientSDK {
|
|
|
120
120
|
* Archive all notifications
|
|
121
121
|
*
|
|
122
122
|
* @remarks
|
|
123
|
-
* Archive all notifications matching the specified filters. Supports context-based filtering.
|
|
123
|
+
* Archive all in-app (inbox) notifications matching the specified filters. Supports context-based filtering.
|
|
124
124
|
*/
|
|
125
125
|
async archiveAll(updateAllSubscriberNotificationsDto, subscriberId, idempotencyKey, options) {
|
|
126
126
|
return (0, fp_js_1.unwrapAsync)((0, subscribersNotificationsArchiveAll_js_1.subscribersNotificationsArchiveAll)(this, updateAllSubscriberNotificationsDto, subscriberId, idempotencyKey, options));
|
|
@@ -129,8 +129,8 @@ class NovuNotifications extends sdks_js_1.ClientSDK {
|
|
|
129
129
|
* Retrieve subscriber notifications count
|
|
130
130
|
*
|
|
131
131
|
* @remarks
|
|
132
|
-
* Retrieve count of notifications for a subscriber by its unique key identifier **subscriberId**.
|
|
133
|
-
* Supports multiple filters to count notifications by different criteria, including context keys.
|
|
132
|
+
* Retrieve count of in-app (inbox) notifications for a subscriber by its unique key identifier **subscriberId**.
|
|
133
|
+
* Supports multiple filters to count in-app (inbox) notifications by different criteria, including context keys.
|
|
134
134
|
*/
|
|
135
135
|
async count(subscriberId, filters, idempotencyKey, options) {
|
|
136
136
|
return (0, fp_js_1.unwrapAsync)((0, subscribersNotificationsCount_js_1.subscribersNotificationsCount)(this, subscriberId, filters, idempotencyKey, options));
|
|
@@ -139,7 +139,7 @@ class NovuNotifications extends sdks_js_1.ClientSDK {
|
|
|
139
139
|
* Delete all notifications
|
|
140
140
|
*
|
|
141
141
|
* @remarks
|
|
142
|
-
*
|
|
142
|
+
* Permanently delete all in-app (inbox) notifications matching the specified filters. Supports context-based filtering.
|
|
143
143
|
*/
|
|
144
144
|
async deleteAll(updateAllSubscriberNotificationsDto, subscriberId, idempotencyKey, options) {
|
|
145
145
|
return (0, fp_js_1.unwrapAsync)((0, subscribersNotificationsDeleteAll_js_1.subscribersNotificationsDeleteAll)(this, updateAllSubscriberNotificationsDto, subscriberId, idempotencyKey, options));
|
|
@@ -148,7 +148,7 @@ class NovuNotifications extends sdks_js_1.ClientSDK {
|
|
|
148
148
|
* Mark all notifications as read
|
|
149
149
|
*
|
|
150
150
|
* @remarks
|
|
151
|
-
* Mark all notifications matching the specified filters as read. Supports context-based filtering.
|
|
151
|
+
* Mark all in-app (inbox) notifications matching the specified filters as read. Supports context-based filtering.
|
|
152
152
|
*/
|
|
153
153
|
async markAllAsRead(updateAllSubscriberNotificationsDto, subscriberId, idempotencyKey, options) {
|
|
154
154
|
return (0, fp_js_1.unwrapAsync)((0, subscribersNotificationsMarkAllAsRead_js_1.subscribersNotificationsMarkAllAsRead)(this, updateAllSubscriberNotificationsDto, subscriberId, idempotencyKey, options));
|
|
@@ -157,7 +157,7 @@ class NovuNotifications extends sdks_js_1.ClientSDK {
|
|
|
157
157
|
* Archive all read notifications
|
|
158
158
|
*
|
|
159
159
|
* @remarks
|
|
160
|
-
* Archive all read notifications matching the specified filters. Supports context-based filtering.
|
|
160
|
+
* Archive all read in-app (inbox) notifications matching the specified filters. Supports context-based filtering.
|
|
161
161
|
*/
|
|
162
162
|
async archiveAllRead(updateAllSubscriberNotificationsDto, subscriberId, idempotencyKey, options) {
|
|
163
163
|
return (0, fp_js_1.unwrapAsync)((0, subscribersNotificationsArchiveAllRead_js_1.subscribersNotificationsArchiveAllRead)(this, updateAllSubscriberNotificationsDto, subscriberId, idempotencyKey, options));
|
|
@@ -166,7 +166,7 @@ class NovuNotifications extends sdks_js_1.ClientSDK {
|
|
|
166
166
|
* Mark notifications as seen
|
|
167
167
|
*
|
|
168
168
|
* @remarks
|
|
169
|
-
* Mark specific
|
|
169
|
+
* Mark specific and multiple in-app (inbox) notifications as seen. Supports context-based filtering.
|
|
170
170
|
*/
|
|
171
171
|
async markAsSeen(markSubscriberNotificationsAsSeenDto, subscriberId, idempotencyKey, options) {
|
|
172
172
|
return (0, fp_js_1.unwrapAsync)((0, subscribersNotificationsMarkAsSeen_js_1.subscribersNotificationsMarkAsSeen)(this, markSubscriberNotificationsAsSeenDto, subscriberId, idempotencyKey, options));
|
package/sdk/steps.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
|
2
2
|
import * as operations from "../models/operations/index.js";
|
|
3
3
|
export declare class Steps extends ClientSDK {
|
|
4
4
|
/**
|
|
5
|
-
* Generate step preview
|
|
5
|
+
* Generate a step preview
|
|
6
6
|
*
|
|
7
7
|
* @remarks
|
|
8
8
|
* Generates a preview for a specific workflow step by its unique identifier **stepId**
|
package/sdk/steps.js
CHANGED
|
@@ -10,7 +10,7 @@ const sdks_js_1 = require("../lib/sdks.js");
|
|
|
10
10
|
const fp_js_1 = require("../types/fp.js");
|
|
11
11
|
class Steps extends sdks_js_1.ClientSDK {
|
|
12
12
|
/**
|
|
13
|
-
* Generate step preview
|
|
13
|
+
* Generate a step preview
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
16
|
* Generates a preview for a specific workflow step by its unique identifier **stepId**
|
|
@@ -27,7 +27,7 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
27
27
|
import { Result } from "../types/fp.js";
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* Create
|
|
30
|
+
* Create a variable
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
33
|
* Creates a new environment variable. Keys must be uppercase with underscores only (e.g. BASE_URL). Secret variables are encrypted at rest and masked in API responses.
|
|
@@ -26,7 +26,7 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* List
|
|
29
|
+
* List all variables
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
32
|
* Returns all environment variables for the current organization. Secret values are masked.
|
|
@@ -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
|
+
* Retrieve a variable
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
32
|
* Returns a single environment variable by id. Secret values are masked.
|
|
@@ -27,7 +27,7 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
27
27
|
import { Result } from "../types/fp.js";
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* Update
|
|
30
|
+
* Update a variable
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
33
|
* Updates an existing environment variable. Providing values replaces all existing per-environment values.
|
|
@@ -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 variable usage
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Returns the workflows that reference this environment variable via {{env.KEY}} in their step controls.
|
|
32
|
+
* Returns the workflows that reference this environment variable via `{{env.KEY}}` in their step controls. **variableId** is required.
|
|
33
33
|
*/
|
|
34
34
|
export function environmentVariablesUsage(
|
|
35
35
|
client: NovuCore,
|
|
@@ -26,10 +26,10 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* Archive notification
|
|
29
|
+
* Archive a notification
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Archive a specific notification by its unique identifier **notificationId**.
|
|
32
|
+
* Archive a specific in-app (inbox) notification by its unique identifier **notificationId**.
|
|
33
33
|
*/
|
|
34
34
|
export function subscribersNotificationsArchive(
|
|
35
35
|
client: NovuCore,
|
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* Archive all notifications
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Archive all notifications matching the specified filters. Supports context-based filtering.
|
|
33
|
+
* Archive all in-app (inbox) notifications matching the specified filters. Supports context-based filtering.
|
|
34
34
|
*/
|
|
35
35
|
export function subscribersNotificationsArchiveAll(
|
|
36
36
|
client: NovuCore,
|
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* Archive all read notifications
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Archive all read notifications matching the specified filters. Supports context-based filtering.
|
|
33
|
+
* Archive all read in-app (inbox) notifications matching the specified filters. Supports context-based filtering.
|
|
34
34
|
*/
|
|
35
35
|
export function subscribersNotificationsArchiveAllRead(
|
|
36
36
|
client: NovuCore,
|
|
@@ -26,10 +26,10 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* Complete notification action
|
|
29
|
+
* Complete a notification action
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Mark a notification action (primary or secondary) as completed by its unique identifier **notificationId** and action type
|
|
32
|
+
* Mark a single in-app (inbox) notification's action (primary or secondary) as completed by its unique identifier **notificationId** and action type **actionType**.
|
|
33
33
|
*/
|
|
34
34
|
export function subscribersNotificationsCompleteAction(
|
|
35
35
|
client: NovuCore,
|
|
@@ -29,8 +29,8 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Retrieve subscriber notifications count
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Retrieve count of notifications for a subscriber by its unique key identifier **subscriberId**.
|
|
33
|
-
* Supports multiple filters to count notifications by different criteria, including context keys.
|
|
32
|
+
* Retrieve count of in-app (inbox) notifications for a subscriber by its unique key identifier **subscriberId**.
|
|
33
|
+
* Supports multiple filters to count in-app (inbox) notifications by different criteria, including context keys.
|
|
34
34
|
*/
|
|
35
35
|
export function subscribersNotificationsCount(
|
|
36
36
|
client: NovuCore,
|
|
@@ -26,10 +26,10 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* Delete notification
|
|
29
|
+
* Delete a notification
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Delete a specific notification by its unique identifier **notificationId**.
|
|
32
|
+
* Delete a specific in-app (inbox) notification permanently by its unique identifier **notificationId**.
|
|
33
33
|
*/
|
|
34
34
|
export function subscribersNotificationsDelete(
|
|
35
35
|
client: NovuCore,
|
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* Delete all notifications
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
*
|
|
33
|
+
* Permanently delete all in-app (inbox) notifications matching the specified filters. Supports context-based filtering.
|
|
34
34
|
*/
|
|
35
35
|
export function subscribersNotificationsDeleteAll(
|
|
36
36
|
client: NovuCore,
|
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Retrieve subscriber notifications
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Retrieve in-app notifications for a subscriber by its unique key identifier **subscriberId**.
|
|
32
|
+
* Retrieve in-app (inbox) notifications for a subscriber by its unique key identifier **subscriberId**.
|
|
33
33
|
* Supports filtering by tags, read/archived/snoozed/seen state, data attributes, severity, date range, and context keys.
|
|
34
34
|
*/
|
|
35
35
|
export function subscribersNotificationsList(
|
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* Mark all notifications as read
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Mark all notifications matching the specified filters as read. Supports context-based filtering.
|
|
33
|
+
* Mark all in-app (inbox) notifications matching the specified filters as read. Supports context-based filtering.
|
|
34
34
|
*/
|
|
35
35
|
export function subscribersNotificationsMarkAllAsRead(
|
|
36
36
|
client: NovuCore,
|
|
@@ -26,10 +26,10 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* Mark notification as read
|
|
29
|
+
* Mark a notification as read
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Mark a specific notification as read by its unique identifier **notificationId**.
|
|
32
|
+
* Mark a specific in-app (inbox) notification as read by its unique identifier **notificationId**.
|
|
33
33
|
*/
|
|
34
34
|
export function subscribersNotificationsMarkAsRead(
|
|
35
35
|
client: NovuCore,
|
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* Mark notifications as seen
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Mark specific
|
|
33
|
+
* Mark specific and multiple in-app (inbox) notifications as seen. Supports context-based filtering.
|
|
34
34
|
*/
|
|
35
35
|
export function subscribersNotificationsMarkAsSeen(
|
|
36
36
|
client: NovuCore,
|
|
@@ -26,10 +26,10 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* Mark notification as unread
|
|
29
|
+
* Mark a notification as unread
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Mark a specific notification as unread by its unique identifier **notificationId**.
|
|
32
|
+
* Mark a specific in-app (inbox) notification as unread by its unique identifier **notificationId**.
|
|
33
33
|
*/
|
|
34
34
|
export function subscribersNotificationsMarkAsUnread(
|
|
35
35
|
client: NovuCore,
|
|
@@ -26,10 +26,10 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* Revert notification action
|
|
29
|
+
* Revert a notification action
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Revert a notification action (primary or secondary) to pending state by its unique identifier **notificationId** and action type
|
|
32
|
+
* Revert a single in-app (inbox) notification's action (primary or secondary) to pending state by its unique identifier **notificationId** and action type **actionType**.
|
|
33
33
|
*/
|
|
34
34
|
export function subscribersNotificationsRevertAction(
|
|
35
35
|
client: NovuCore,
|
|
@@ -26,10 +26,10 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* Snooze notification
|
|
29
|
+
* Snooze a notification
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Snooze a specific notification by its unique identifier **notificationId** until a specified time.
|
|
32
|
+
* Snooze a specific in-app (inbox) notification by its unique identifier **notificationId** until a specified time.
|
|
33
33
|
*/
|
|
34
34
|
export function subscribersNotificationsSnooze(
|
|
35
35
|
client: NovuCore,
|
|
@@ -26,10 +26,10 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* Unarchive notification
|
|
29
|
+
* Unarchive a notification
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Unarchive a specific notification by its unique identifier **notificationId**.
|
|
32
|
+
* Unarchive a specific in-app (inbox) notification by its unique identifier **notificationId**.
|
|
33
33
|
*/
|
|
34
34
|
export function subscribersNotificationsUnarchive(
|
|
35
35
|
client: NovuCore,
|
|
@@ -26,10 +26,10 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* Unsnooze notification
|
|
29
|
+
* Unsnooze a notification
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Unsnooze a specific notification by its unique identifier **notificationId**.
|
|
32
|
+
* Unsnooze a specific in-app (inbox) notification by its unique identifier **notificationId**.
|
|
33
33
|
*/
|
|
34
34
|
export function subscribersNotificationsUnsnooze(
|
|
35
35
|
client: NovuCore,
|
|
@@ -26,7 +26,7 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* Generate step preview
|
|
29
|
+
* Generate a step preview
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
32
|
* Generates a preview for a specific workflow step by its unique identifier **stepId**
|
package/src/lib/config.ts
CHANGED
|
@@ -59,7 +59,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
59
59
|
export const SDK_METADATA = {
|
|
60
60
|
language: "typescript",
|
|
61
61
|
openapiDocVersion: "3.14.0",
|
|
62
|
-
sdkVersion: "3.14.
|
|
63
|
-
genVersion: "2.879.
|
|
64
|
-
userAgent: "speakeasy-sdk/typescript 3.14.
|
|
62
|
+
sdkVersion: "3.14.4",
|
|
63
|
+
genVersion: "2.879.6",
|
|
64
|
+
userAgent: "speakeasy-sdk/typescript 3.14.4 2.879.6 3.14.0 @novu/api",
|
|
65
65
|
} as const;
|
|
@@ -15,7 +15,7 @@ import { unwrapAsync } from "../types/fp.js";
|
|
|
15
15
|
|
|
16
16
|
export class EnvironmentVariables extends ClientSDK {
|
|
17
17
|
/**
|
|
18
|
-
* List
|
|
18
|
+
* List all variables
|
|
19
19
|
*
|
|
20
20
|
* @remarks
|
|
21
21
|
* Returns all environment variables for the current organization. Secret values are masked.
|
|
@@ -36,7 +36,7 @@ export class EnvironmentVariables extends ClientSDK {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
* Create
|
|
39
|
+
* Create a variable
|
|
40
40
|
*
|
|
41
41
|
* @remarks
|
|
42
42
|
* Creates a new environment variable. Keys must be uppercase with underscores only (e.g. BASE_URL). Secret variables are encrypted at rest and masked in API responses.
|
|
@@ -58,7 +58,7 @@ export class EnvironmentVariables extends ClientSDK {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* Retrieve a variable
|
|
62
62
|
*
|
|
63
63
|
* @remarks
|
|
64
64
|
* Returns a single environment variable by id. Secret values are masked.
|
|
@@ -79,7 +79,7 @@ export class EnvironmentVariables extends ClientSDK {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
|
-
* Update
|
|
82
|
+
* Update a variable
|
|
83
83
|
*
|
|
84
84
|
* @remarks
|
|
85
85
|
* Updates an existing environment variable. Providing values replaces all existing per-environment values.
|
|
@@ -103,7 +103,7 @@ export class EnvironmentVariables extends ClientSDK {
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
|
-
* Delete
|
|
106
|
+
* Delete a variable
|
|
107
107
|
*
|
|
108
108
|
* @remarks
|
|
109
109
|
* Deletes an environment variable by id.
|
|
@@ -125,10 +125,10 @@ export class EnvironmentVariables extends ClientSDK {
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
/**
|
|
128
|
-
*
|
|
128
|
+
* Retrieve a variable usage
|
|
129
129
|
*
|
|
130
130
|
* @remarks
|
|
131
|
-
* Returns the workflows that reference this environment variable via {{env.KEY}} in their step controls.
|
|
131
|
+
* Returns the workflows that reference this environment variable via `{{env.KEY}}` in their step controls. **variableId** is required.
|
|
132
132
|
*/
|
|
133
133
|
async usage(
|
|
134
134
|
variableId: string,
|