@novu/api 3.11.2 → 3.12.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 +20 -20
- package/_speakeasy/.github/action-inputs-config.json +53 -0
- package/_speakeasy/.github/action-security-config.json +88 -0
- package/examples/package-lock.json +1 -1
- package/funcs/channelConnectionsCreate.d.ts +1 -1
- package/funcs/channelConnectionsCreate.js +1 -1
- package/funcs/channelConnectionsDelete.d.ts +1 -1
- package/funcs/channelConnectionsDelete.js +1 -1
- package/funcs/channelConnectionsList.d.ts +2 -2
- package/funcs/channelConnectionsList.js +2 -2
- package/funcs/channelConnectionsRetrieve.d.ts +1 -1
- package/funcs/channelConnectionsRetrieve.js +1 -1
- package/funcs/channelConnectionsUpdate.d.ts +1 -1
- package/funcs/channelConnectionsUpdate.js +1 -1
- package/funcs/channelEndpointsCreate.d.ts +1 -1
- package/funcs/channelEndpointsCreate.js +1 -1
- package/funcs/channelEndpointsDelete.d.ts +1 -1
- package/funcs/channelEndpointsDelete.js +1 -1
- package/funcs/channelEndpointsList.d.ts +2 -2
- package/funcs/channelEndpointsList.js +2 -2
- package/funcs/channelEndpointsRetrieve.d.ts +1 -1
- package/funcs/channelEndpointsRetrieve.js +1 -1
- package/funcs/channelEndpointsUpdate.d.ts +1 -1
- package/funcs/channelEndpointsUpdate.js +1 -1
- package/funcs/notificationsList.js +1 -0
- package/funcs/notificationsList.js.map +1 -1
- package/funcs/topicsSubscriptionsGetSubscription.d.ts +2 -2
- package/funcs/topicsSubscriptionsGetSubscription.d.ts.map +1 -1
- package/funcs/topicsSubscriptionsGetSubscription.js +10 -7
- package/funcs/topicsSubscriptionsGetSubscription.js.map +1 -1
- package/funcs/topicsSubscriptionsUpdate.d.ts +1 -1
- package/funcs/topicsSubscriptionsUpdate.js +6 -3
- package/funcs/topicsSubscriptionsUpdate.js.map +1 -1
- package/funcs/trigger.d.ts +1 -1
- package/funcs/trigger.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/generatechatoauthurlrequestdto.d.ts +1 -1
- package/models/components/notificationfeeditemdto.d.ts +4 -0
- package/models/components/notificationfeeditemdto.d.ts.map +1 -1
- package/models/components/notificationfeeditemdto.js +1 -0
- package/models/components/notificationfeeditemdto.js.map +1 -1
- package/models/components/triggereventrequestdto.d.ts +2 -2
- package/models/operations/notificationscontrollerlistnotifications.d.ts +5 -0
- package/models/operations/notificationscontrollerlistnotifications.d.ts.map +1 -1
- package/models/operations/notificationscontrollerlistnotifications.js +1 -0
- package/models/operations/notificationscontrollerlistnotifications.js.map +1 -1
- package/models/operations/topicscontrollergettopicsubscription.d.ts +2 -2
- package/models/operations/topicscontrollergettopicsubscription.d.ts.map +1 -1
- package/models/operations/topicscontrollergettopicsubscription.js +1 -1
- package/models/operations/topicscontrollergettopicsubscription.js.map +1 -1
- package/models/operations/topicscontrollerupdatetopicsubscription.d.ts +2 -2
- package/models/operations/topicscontrollerupdatetopicsubscription.d.ts.map +1 -1
- package/models/operations/topicscontrollerupdatetopicsubscription.js +1 -1
- package/models/operations/topicscontrollerupdatetopicsubscription.js.map +1 -1
- package/package.json +1 -1
- package/sdk/channelconnections.d.ts +6 -6
- package/sdk/channelconnections.js +6 -6
- package/sdk/channelendpoints.d.ts +6 -6
- package/sdk/channelendpoints.js +6 -6
- package/sdk/sdk.d.ts +1 -1
- package/sdk/sdk.js +1 -1
- package/sdk/subscriptions.d.ts +3 -3
- package/sdk/subscriptions.d.ts.map +1 -1
- package/sdk/subscriptions.js +4 -4
- package/sdk/subscriptions.js.map +1 -1
- package/sources/json-development.json +105 -65
- package/src/funcs/channelConnectionsCreate.ts +1 -1
- package/src/funcs/channelConnectionsDelete.ts +1 -1
- package/src/funcs/channelConnectionsList.ts +2 -2
- package/src/funcs/channelConnectionsRetrieve.ts +1 -1
- package/src/funcs/channelConnectionsUpdate.ts +1 -1
- package/src/funcs/channelEndpointsCreate.ts +1 -1
- package/src/funcs/channelEndpointsDelete.ts +1 -1
- package/src/funcs/channelEndpointsList.ts +2 -2
- package/src/funcs/channelEndpointsRetrieve.ts +1 -1
- package/src/funcs/channelEndpointsUpdate.ts +1 -1
- package/src/funcs/notificationsList.ts +1 -0
- package/src/funcs/topicsSubscriptionsGetSubscription.ts +12 -13
- package/src/funcs/topicsSubscriptionsUpdate.ts +8 -9
- package/src/funcs/trigger.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/generatechatoauthurlrequestdto.ts +1 -1
- package/src/models/components/notificationfeeditemdto.ts +5 -0
- package/src/models/components/triggereventrequestdto.ts +2 -2
- package/src/models/operations/notificationscontrollerlistnotifications.ts +6 -0
- package/src/models/operations/topicscontrollergettopicsubscription.ts +3 -3
- package/src/models/operations/topicscontrollerupdatetopicsubscription.ts +3 -3
- package/src/sdk/channelconnections.ts +6 -6
- package/src/sdk/channelendpoints.ts +6 -6
- package/src/sdk/sdk.ts +1 -1
- package/src/sdk/subscriptions.ts +4 -4
|
@@ -15603,13 +15603,13 @@
|
|
|
15603
15603
|
]
|
|
15604
15604
|
}
|
|
15605
15605
|
},
|
|
15606
|
-
"/v2/topics/{topicKey}/subscriptions/{
|
|
15606
|
+
"/v2/topics/{topicKey}/subscriptions/{identifier}": {
|
|
15607
15607
|
"get": {
|
|
15608
15608
|
"operationId": "TopicsController_getTopicSubscription",
|
|
15609
15609
|
"x-speakeasy-name-override": "getSubscription",
|
|
15610
15610
|
"x-speakeasy-group": "Topics.Subscriptions",
|
|
15611
15611
|
"summary": "Get a topic subscription",
|
|
15612
|
-
"description": "Get a subscription by its unique identifier
|
|
15612
|
+
"description": "Get a subscription by its unique identifier for a topic.",
|
|
15613
15613
|
"parameters": [
|
|
15614
15614
|
{
|
|
15615
15615
|
"name": "topicKey",
|
|
@@ -15621,7 +15621,7 @@
|
|
|
15621
15621
|
}
|
|
15622
15622
|
},
|
|
15623
15623
|
{
|
|
15624
|
-
"name": "
|
|
15624
|
+
"name": "identifier",
|
|
15625
15625
|
"required": true,
|
|
15626
15626
|
"in": "path",
|
|
15627
15627
|
"description": "The unique identifier of the subscription",
|
|
@@ -16102,7 +16102,7 @@
|
|
|
16102
16102
|
"x-speakeasy-name-override": "update",
|
|
16103
16103
|
"x-speakeasy-group": "Topics.Subscriptions",
|
|
16104
16104
|
"summary": "Update a topic subscription",
|
|
16105
|
-
"description": "Update a subscription by its unique identifier
|
|
16105
|
+
"description": "Update a subscription by its unique identifier for a topic. You can update the preferences and name associated with the subscription.",
|
|
16106
16106
|
"parameters": [
|
|
16107
16107
|
{
|
|
16108
16108
|
"name": "topicKey",
|
|
@@ -16114,7 +16114,7 @@
|
|
|
16114
16114
|
}
|
|
16115
16115
|
},
|
|
16116
16116
|
{
|
|
16117
|
-
"name": "
|
|
16117
|
+
"name": "identifier",
|
|
16118
16118
|
"required": true,
|
|
16119
16119
|
"in": "path",
|
|
16120
16120
|
"description": "The unique identifier of the subscription",
|
|
@@ -21129,8 +21129,9 @@
|
|
|
21129
21129
|
"/v1/channel-connections": {
|
|
21130
21130
|
"get": {
|
|
21131
21131
|
"operationId": "ChannelConnectionsController_listChannelConnections",
|
|
21132
|
-
"
|
|
21133
|
-
"
|
|
21132
|
+
"x-speakeasy-name-override": "list",
|
|
21133
|
+
"summary": "List all channel connections",
|
|
21134
|
+
"description": "List all channel connections for a resource.",
|
|
21134
21135
|
"parameters": [
|
|
21135
21136
|
{
|
|
21136
21137
|
"name": "after",
|
|
@@ -21725,7 +21726,8 @@
|
|
|
21725
21726
|
},
|
|
21726
21727
|
"post": {
|
|
21727
21728
|
"operationId": "ChannelConnectionsController_createChannelConnection",
|
|
21728
|
-
"
|
|
21729
|
+
"x-speakeasy-name-override": "create",
|
|
21730
|
+
"summary": "Create a channel connection",
|
|
21729
21731
|
"description": "Create a new channel connection for a resource for given integration. Only one channel connection is allowed per resource and integration.",
|
|
21730
21732
|
"parameters": [
|
|
21731
21733
|
{
|
|
@@ -22210,7 +22212,8 @@
|
|
|
22210
22212
|
"/v1/channel-connections/{identifier}": {
|
|
22211
22213
|
"get": {
|
|
22212
22214
|
"operationId": "ChannelConnectionsController_getChannelConnectionByIdentifier",
|
|
22213
|
-
"
|
|
22215
|
+
"x-speakeasy-name-override": "retrieve",
|
|
22216
|
+
"summary": "Retrieve a channel connection",
|
|
22214
22217
|
"description": "Retrieve a specific channel connection by its unique identifier.",
|
|
22215
22218
|
"parameters": [
|
|
22216
22219
|
{
|
|
@@ -22692,7 +22695,8 @@
|
|
|
22692
22695
|
},
|
|
22693
22696
|
"patch": {
|
|
22694
22697
|
"operationId": "ChannelConnectionsController_updateChannelConnection",
|
|
22695
|
-
"
|
|
22698
|
+
"x-speakeasy-name-override": "update",
|
|
22699
|
+
"summary": "Update a channel connection",
|
|
22696
22700
|
"description": "Update an existing channel connection by its unique identifier.",
|
|
22697
22701
|
"parameters": [
|
|
22698
22702
|
{
|
|
@@ -23184,7 +23188,8 @@
|
|
|
23184
23188
|
},
|
|
23185
23189
|
"delete": {
|
|
23186
23190
|
"operationId": "ChannelConnectionsController_deleteChannelConnection",
|
|
23187
|
-
"
|
|
23191
|
+
"x-speakeasy-name-override": "delete",
|
|
23192
|
+
"summary": "Delete a channel connection",
|
|
23188
23193
|
"description": "Delete a specific channel connection by its unique identifier.",
|
|
23189
23194
|
"parameters": [
|
|
23190
23195
|
{
|
|
@@ -23638,8 +23643,9 @@
|
|
|
23638
23643
|
"/v1/channel-endpoints": {
|
|
23639
23644
|
"get": {
|
|
23640
23645
|
"operationId": "ChannelEndpointsController_listChannelEndpoints",
|
|
23641
|
-
"
|
|
23642
|
-
"
|
|
23646
|
+
"x-speakeasy-name-override": "list",
|
|
23647
|
+
"summary": "List all channel endpoints",
|
|
23648
|
+
"description": "List all channel endpoints for a resource based on query filters.",
|
|
23643
23649
|
"parameters": [
|
|
23644
23650
|
{
|
|
23645
23651
|
"name": "after",
|
|
@@ -24246,7 +24252,8 @@
|
|
|
24246
24252
|
},
|
|
24247
24253
|
"post": {
|
|
24248
24254
|
"operationId": "ChannelEndpointsController_createChannelEndpoint",
|
|
24249
|
-
"
|
|
24255
|
+
"x-speakeasy-name-override": "create",
|
|
24256
|
+
"summary": "Create a channel endpoint",
|
|
24250
24257
|
"description": "Create a new channel endpoint for a resource.",
|
|
24251
24258
|
"parameters": [
|
|
24252
24259
|
{
|
|
@@ -24765,7 +24772,8 @@
|
|
|
24765
24772
|
"/v1/channel-endpoints/{identifier}": {
|
|
24766
24773
|
"get": {
|
|
24767
24774
|
"operationId": "ChannelEndpointsController_getChannelEndpoint",
|
|
24768
|
-
"
|
|
24775
|
+
"x-speakeasy-name-override": "retrieve",
|
|
24776
|
+
"summary": "Retrieve a channel endpoint",
|
|
24769
24777
|
"description": "Retrieve a specific channel endpoint by its unique identifier.",
|
|
24770
24778
|
"parameters": [
|
|
24771
24779
|
{
|
|
@@ -25250,7 +25258,8 @@
|
|
|
25250
25258
|
},
|
|
25251
25259
|
"patch": {
|
|
25252
25260
|
"operationId": "ChannelEndpointsController_updateChannelEndpoint",
|
|
25253
|
-
"
|
|
25261
|
+
"x-speakeasy-name-override": "update",
|
|
25262
|
+
"summary": "Update a channel endpoint",
|
|
25254
25263
|
"description": "Update an existing channel endpoint by its unique identifier.",
|
|
25255
25264
|
"parameters": [
|
|
25256
25265
|
{
|
|
@@ -25745,7 +25754,8 @@
|
|
|
25745
25754
|
},
|
|
25746
25755
|
"delete": {
|
|
25747
25756
|
"operationId": "ChannelEndpointsController_deleteChannelEndpoint",
|
|
25748
|
-
"
|
|
25757
|
+
"x-speakeasy-name-override": "delete",
|
|
25758
|
+
"summary": "Delete a channel endpoint",
|
|
25749
25759
|
"description": "Delete a specific channel endpoint by its unique identifier.",
|
|
25750
25760
|
"parameters": [
|
|
25751
25761
|
{
|
|
@@ -28133,7 +28143,7 @@
|
|
|
28133
28143
|
},
|
|
28134
28144
|
"x-speakeasy-name-override": "trigger",
|
|
28135
28145
|
"summary": "Trigger event",
|
|
28136
|
-
"description": "\n Trigger event is the main (and only) way to send notifications to subscribers. The trigger identifier is used to match the particular workflow associated with it. Additional information can be passed according the body interface below.\n To prevent duplicate triggers, you can optionally pass a **transactionId** in the request body. If the same **transactionId** is used again, the trigger will be ignored. The retention period depends on your billing tier.",
|
|
28146
|
+
"description": "\n Trigger event is the main (and only) way to send notifications to subscribers. The trigger identifier is used to match the particular workflow associated with it. Maximum number of recipients can be 100. Additional information can be passed according the body interface below.\n To prevent duplicate triggers, you can optionally pass a **transactionId** in the request body. If the same **transactionId** is used again, the trigger will be ignored. The retention period depends on your billing tier.",
|
|
28137
28147
|
"parameters": [
|
|
28138
28148
|
{
|
|
28139
28149
|
"name": "idempotency-key",
|
|
@@ -35598,6 +35608,15 @@
|
|
|
35598
35608
|
"type": "string"
|
|
35599
35609
|
}
|
|
35600
35610
|
},
|
|
35611
|
+
{
|
|
35612
|
+
"name": "subscriptionId",
|
|
35613
|
+
"required": false,
|
|
35614
|
+
"in": "query",
|
|
35615
|
+
"description": "Subscription ID for filtering notifications by subscription",
|
|
35616
|
+
"schema": {
|
|
35617
|
+
"type": "string"
|
|
35618
|
+
}
|
|
35619
|
+
},
|
|
35601
35620
|
{
|
|
35602
35621
|
"name": "contextKeys",
|
|
35603
35622
|
"required": false,
|
|
@@ -43164,7 +43183,7 @@
|
|
|
43164
43183
|
]
|
|
43165
43184
|
},
|
|
43166
43185
|
"to": {
|
|
43167
|
-
"description": "The recipients list of people who will receive the notification.",
|
|
43186
|
+
"description": "The recipients list of people who will receive the notification. Maximum number of recipients can be 100.",
|
|
43168
43187
|
"oneOf": [
|
|
43169
43188
|
{
|
|
43170
43189
|
"type": "array",
|
|
@@ -44484,6 +44503,40 @@
|
|
|
44484
44503
|
"traces"
|
|
44485
44504
|
]
|
|
44486
44505
|
},
|
|
44506
|
+
"TopicResponseDto": {
|
|
44507
|
+
"type": "object",
|
|
44508
|
+
"properties": {
|
|
44509
|
+
"_id": {
|
|
44510
|
+
"type": "string",
|
|
44511
|
+
"description": "The identifier of the topic",
|
|
44512
|
+
"example": "64da692e9a94fb2e6449ad06"
|
|
44513
|
+
},
|
|
44514
|
+
"key": {
|
|
44515
|
+
"type": "string",
|
|
44516
|
+
"description": "The unique key of the topic",
|
|
44517
|
+
"example": "product-updates"
|
|
44518
|
+
},
|
|
44519
|
+
"name": {
|
|
44520
|
+
"type": "string",
|
|
44521
|
+
"description": "The name of the topic",
|
|
44522
|
+
"example": "Product Updates"
|
|
44523
|
+
},
|
|
44524
|
+
"createdAt": {
|
|
44525
|
+
"type": "string",
|
|
44526
|
+
"description": "The date the topic was created",
|
|
44527
|
+
"example": "2023-08-15T00:00:00.000Z"
|
|
44528
|
+
},
|
|
44529
|
+
"updatedAt": {
|
|
44530
|
+
"type": "string",
|
|
44531
|
+
"description": "The date the topic was last updated",
|
|
44532
|
+
"example": "2023-08-15T00:00:00.000Z"
|
|
44533
|
+
}
|
|
44534
|
+
},
|
|
44535
|
+
"required": [
|
|
44536
|
+
"_id",
|
|
44537
|
+
"key"
|
|
44538
|
+
]
|
|
44539
|
+
},
|
|
44487
44540
|
"WorkflowRunStepsDetailsDto": {
|
|
44488
44541
|
"type": "object",
|
|
44489
44542
|
"properties": {
|
|
@@ -44613,6 +44666,13 @@
|
|
|
44613
44666
|
"type": "string"
|
|
44614
44667
|
}
|
|
44615
44668
|
},
|
|
44669
|
+
"topics": {
|
|
44670
|
+
"description": "Topics",
|
|
44671
|
+
"type": "array",
|
|
44672
|
+
"items": {
|
|
44673
|
+
"$ref": "#/components/schemas/TopicResponseDto"
|
|
44674
|
+
}
|
|
44675
|
+
},
|
|
44616
44676
|
"steps": {
|
|
44617
44677
|
"description": "Workflow run steps",
|
|
44618
44678
|
"type": "array",
|
|
@@ -44863,6 +44923,13 @@
|
|
|
44863
44923
|
"type": "string"
|
|
44864
44924
|
}
|
|
44865
44925
|
},
|
|
44926
|
+
"topics": {
|
|
44927
|
+
"description": "Topics",
|
|
44928
|
+
"type": "array",
|
|
44929
|
+
"items": {
|
|
44930
|
+
"$ref": "#/components/schemas/TopicResponseDto"
|
|
44931
|
+
}
|
|
44932
|
+
},
|
|
44866
44933
|
"steps": {
|
|
44867
44934
|
"description": "Step runs",
|
|
44868
44935
|
"type": "array",
|
|
@@ -45300,7 +45367,8 @@
|
|
|
45300
45367
|
},
|
|
45301
45368
|
"connectionIdentifier": {
|
|
45302
45369
|
"type": "string",
|
|
45303
|
-
"description": "Identifier of the channel connection that will be created"
|
|
45370
|
+
"description": "Identifier of the channel connection that will be created. It is generated automatically if not provided.",
|
|
45371
|
+
"example": "slack-connection-abc123"
|
|
45304
45372
|
},
|
|
45305
45373
|
"context": {
|
|
45306
45374
|
"type": "object",
|
|
@@ -46223,6 +46291,11 @@
|
|
|
46223
46291
|
"description": "Indicates whether the notification has been seen by the subscriber.",
|
|
46224
46292
|
"example": true
|
|
46225
46293
|
},
|
|
46294
|
+
"archived": {
|
|
46295
|
+
"type": "boolean",
|
|
46296
|
+
"description": "Indicates whether the notification has been archived by the subscriber.",
|
|
46297
|
+
"example": false
|
|
46298
|
+
},
|
|
46226
46299
|
"deviceTokens": {
|
|
46227
46300
|
"nullable": true,
|
|
46228
46301
|
"description": "Device tokens for push notifications, if applicable.",
|
|
@@ -46304,6 +46377,7 @@
|
|
|
46304
46377
|
"channel",
|
|
46305
46378
|
"read",
|
|
46306
46379
|
"seen",
|
|
46380
|
+
"archived",
|
|
46307
46381
|
"cta",
|
|
46308
46382
|
"status"
|
|
46309
46383
|
]
|
|
@@ -47883,40 +47957,6 @@
|
|
|
47883
47957
|
}
|
|
47884
47958
|
}
|
|
47885
47959
|
},
|
|
47886
|
-
"TopicResponseDto": {
|
|
47887
|
-
"type": "object",
|
|
47888
|
-
"properties": {
|
|
47889
|
-
"_id": {
|
|
47890
|
-
"type": "string",
|
|
47891
|
-
"description": "The identifier of the topic",
|
|
47892
|
-
"example": "64da692e9a94fb2e6449ad06"
|
|
47893
|
-
},
|
|
47894
|
-
"key": {
|
|
47895
|
-
"type": "string",
|
|
47896
|
-
"description": "The unique key of the topic",
|
|
47897
|
-
"example": "product-updates"
|
|
47898
|
-
},
|
|
47899
|
-
"name": {
|
|
47900
|
-
"type": "string",
|
|
47901
|
-
"description": "The name of the topic",
|
|
47902
|
-
"example": "Product Updates"
|
|
47903
|
-
},
|
|
47904
|
-
"createdAt": {
|
|
47905
|
-
"type": "string",
|
|
47906
|
-
"description": "The date the topic was created",
|
|
47907
|
-
"example": "2023-08-15T00:00:00.000Z"
|
|
47908
|
-
},
|
|
47909
|
-
"updatedAt": {
|
|
47910
|
-
"type": "string",
|
|
47911
|
-
"description": "The date the topic was last updated",
|
|
47912
|
-
"example": "2023-08-15T00:00:00.000Z"
|
|
47913
|
-
}
|
|
47914
|
-
},
|
|
47915
|
-
"required": [
|
|
47916
|
-
"_id",
|
|
47917
|
-
"key"
|
|
47918
|
-
]
|
|
47919
|
-
},
|
|
47920
47960
|
"SubscriberDto": {
|
|
47921
47961
|
"type": "object",
|
|
47922
47962
|
"properties": {
|
|
@@ -51486,7 +51526,7 @@
|
|
|
51486
51526
|
},
|
|
51487
51527
|
"stepId": {
|
|
51488
51528
|
"type": "string",
|
|
51489
|
-
"pattern": "/^[a-
|
|
51529
|
+
"pattern": "/^[a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*$/",
|
|
51490
51530
|
"description": "Unique identifier for the step"
|
|
51491
51531
|
},
|
|
51492
51532
|
"name": {
|
|
@@ -51523,7 +51563,7 @@
|
|
|
51523
51563
|
},
|
|
51524
51564
|
"stepId": {
|
|
51525
51565
|
"type": "string",
|
|
51526
|
-
"pattern": "/^[a-
|
|
51566
|
+
"pattern": "/^[a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*$/",
|
|
51527
51567
|
"description": "Unique identifier for the step"
|
|
51528
51568
|
},
|
|
51529
51569
|
"name": {
|
|
@@ -51560,7 +51600,7 @@
|
|
|
51560
51600
|
},
|
|
51561
51601
|
"stepId": {
|
|
51562
51602
|
"type": "string",
|
|
51563
|
-
"pattern": "/^[a-
|
|
51603
|
+
"pattern": "/^[a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*$/",
|
|
51564
51604
|
"description": "Unique identifier for the step"
|
|
51565
51605
|
},
|
|
51566
51606
|
"name": {
|
|
@@ -51597,7 +51637,7 @@
|
|
|
51597
51637
|
},
|
|
51598
51638
|
"stepId": {
|
|
51599
51639
|
"type": "string",
|
|
51600
|
-
"pattern": "/^[a-
|
|
51640
|
+
"pattern": "/^[a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*$/",
|
|
51601
51641
|
"description": "Unique identifier for the step"
|
|
51602
51642
|
},
|
|
51603
51643
|
"name": {
|
|
@@ -51634,7 +51674,7 @@
|
|
|
51634
51674
|
},
|
|
51635
51675
|
"stepId": {
|
|
51636
51676
|
"type": "string",
|
|
51637
|
-
"pattern": "/^[a-
|
|
51677
|
+
"pattern": "/^[a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*$/",
|
|
51638
51678
|
"description": "Unique identifier for the step"
|
|
51639
51679
|
},
|
|
51640
51680
|
"name": {
|
|
@@ -51671,7 +51711,7 @@
|
|
|
51671
51711
|
},
|
|
51672
51712
|
"stepId": {
|
|
51673
51713
|
"type": "string",
|
|
51674
|
-
"pattern": "/^[a-
|
|
51714
|
+
"pattern": "/^[a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*$/",
|
|
51675
51715
|
"description": "Unique identifier for the step"
|
|
51676
51716
|
},
|
|
51677
51717
|
"name": {
|
|
@@ -51708,7 +51748,7 @@
|
|
|
51708
51748
|
},
|
|
51709
51749
|
"stepId": {
|
|
51710
51750
|
"type": "string",
|
|
51711
|
-
"pattern": "/^[a-
|
|
51751
|
+
"pattern": "/^[a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*$/",
|
|
51712
51752
|
"description": "Unique identifier for the step"
|
|
51713
51753
|
},
|
|
51714
51754
|
"name": {
|
|
@@ -51745,7 +51785,7 @@
|
|
|
51745
51785
|
},
|
|
51746
51786
|
"stepId": {
|
|
51747
51787
|
"type": "string",
|
|
51748
|
-
"pattern": "/^[a-
|
|
51788
|
+
"pattern": "/^[a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*$/",
|
|
51749
51789
|
"description": "Unique identifier for the step"
|
|
51750
51790
|
},
|
|
51751
51791
|
"name": {
|
|
@@ -51782,7 +51822,7 @@
|
|
|
51782
51822
|
},
|
|
51783
51823
|
"stepId": {
|
|
51784
51824
|
"type": "string",
|
|
51785
|
-
"pattern": "/^[a-
|
|
51825
|
+
"pattern": "/^[a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*$/",
|
|
51786
51826
|
"description": "Unique identifier for the step"
|
|
51787
51827
|
},
|
|
51788
51828
|
"name": {
|
|
@@ -51890,7 +51930,7 @@
|
|
|
51890
51930
|
},
|
|
51891
51931
|
"workflowId": {
|
|
51892
51932
|
"type": "string",
|
|
51893
|
-
"pattern": "/^[a-
|
|
51933
|
+
"pattern": "/^[a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*$/",
|
|
51894
51934
|
"description": "Unique identifier for the workflow"
|
|
51895
51935
|
},
|
|
51896
51936
|
"steps": {
|
|
@@ -52246,7 +52286,7 @@
|
|
|
52246
52286
|
},
|
|
52247
52287
|
"workflowId": {
|
|
52248
52288
|
"type": "string",
|
|
52249
|
-
"pattern": "/^[a-
|
|
52289
|
+
"pattern": "/^[a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*$/",
|
|
52250
52290
|
"description": "Custom workflow identifier for the duplicated workflow"
|
|
52251
52291
|
},
|
|
52252
52292
|
"tags": {
|
|
@@ -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 channel connection
|
|
30
|
+
* Create a channel connection
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
33
|
* Create a new channel connection for a resource for given integration. Only one channel connection is allowed per resource and integration.
|
|
@@ -26,7 +26,7 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* Delete channel connection
|
|
29
|
+
* Delete a channel connection
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
32
|
* Delete a specific channel connection by its unique identifier.
|
|
@@ -26,10 +26,10 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* List channel connections
|
|
29
|
+
* List all channel connections
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
*
|
|
32
|
+
* List all channel connections for a resource.
|
|
33
33
|
*/
|
|
34
34
|
export function channelConnectionsList(
|
|
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
|
-
* Retrieve channel connection
|
|
29
|
+
* Retrieve a channel connection
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
32
|
* Retrieve a specific channel connection by its unique identifier.
|
|
@@ -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 channel connection
|
|
30
|
+
* Update a channel connection
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
33
|
* Update an existing channel connection by its unique identifier.
|
|
@@ -26,7 +26,7 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* Delete channel endpoint
|
|
29
|
+
* Delete a channel endpoint
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
32
|
* Delete a specific channel endpoint by its unique identifier.
|
|
@@ -26,10 +26,10 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* List channel endpoints
|
|
29
|
+
* List all channel endpoints
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
*
|
|
32
|
+
* List all channel endpoints for a resource based on query filters.
|
|
33
33
|
*/
|
|
34
34
|
export function channelEndpointsList(
|
|
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
|
-
* Retrieve channel endpoint
|
|
29
|
+
* Retrieve a channel endpoint
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
32
|
* Retrieve a specific channel endpoint by its unique identifier.
|
|
@@ -108,6 +108,7 @@ async function $do(
|
|
|
108
108
|
"search": payload.search,
|
|
109
109
|
"severity": payload.severity,
|
|
110
110
|
"subscriberIds": payload.subscriberIds,
|
|
111
|
+
"subscriptionId": payload.subscriptionId,
|
|
111
112
|
"templates": payload.templates,
|
|
112
113
|
"topicKey": payload.topicKey,
|
|
113
114
|
"transactionId": payload.transactionId,
|
|
@@ -29,12 +29,12 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Get a topic subscription
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Get a subscription by its unique identifier
|
|
32
|
+
* Get a subscription by its unique identifier for a topic.
|
|
33
33
|
*/
|
|
34
34
|
export function topicsSubscriptionsGetSubscription(
|
|
35
35
|
client: NovuCore,
|
|
36
36
|
topicKey: string,
|
|
37
|
-
|
|
37
|
+
identifier: string,
|
|
38
38
|
idempotencyKey?: string | undefined,
|
|
39
39
|
options?: RequestOptions,
|
|
40
40
|
): APIPromise<
|
|
@@ -55,7 +55,7 @@ export function topicsSubscriptionsGetSubscription(
|
|
|
55
55
|
return new APIPromise($do(
|
|
56
56
|
client,
|
|
57
57
|
topicKey,
|
|
58
|
-
|
|
58
|
+
identifier,
|
|
59
59
|
idempotencyKey,
|
|
60
60
|
options,
|
|
61
61
|
));
|
|
@@ -64,7 +64,7 @@ export function topicsSubscriptionsGetSubscription(
|
|
|
64
64
|
async function $do(
|
|
65
65
|
client: NovuCore,
|
|
66
66
|
topicKey: string,
|
|
67
|
-
|
|
67
|
+
identifier: string,
|
|
68
68
|
idempotencyKey?: string | undefined,
|
|
69
69
|
options?: RequestOptions,
|
|
70
70
|
): Promise<
|
|
@@ -87,7 +87,7 @@ async function $do(
|
|
|
87
87
|
> {
|
|
88
88
|
const input: operations.TopicsControllerGetTopicSubscriptionRequest = {
|
|
89
89
|
topicKey: topicKey,
|
|
90
|
-
|
|
90
|
+
identifier: identifier,
|
|
91
91
|
idempotencyKey: idempotencyKey,
|
|
92
92
|
};
|
|
93
93
|
|
|
@@ -105,20 +105,19 @@ async function $do(
|
|
|
105
105
|
const body = null;
|
|
106
106
|
|
|
107
107
|
const pathParams = {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
),
|
|
108
|
+
identifier: encodeSimple("identifier", payload.identifier, {
|
|
109
|
+
explode: false,
|
|
110
|
+
charEncoding: "percent",
|
|
111
|
+
}),
|
|
113
112
|
topicKey: encodeSimple("topicKey", payload.topicKey, {
|
|
114
113
|
explode: false,
|
|
115
114
|
charEncoding: "percent",
|
|
116
115
|
}),
|
|
117
116
|
};
|
|
118
117
|
|
|
119
|
-
const path = pathToFunc(
|
|
120
|
-
|
|
121
|
-
)
|
|
118
|
+
const path = pathToFunc("/v2/topics/{topicKey}/subscriptions/{identifier}")(
|
|
119
|
+
pathParams,
|
|
120
|
+
);
|
|
122
121
|
|
|
123
122
|
const headers = new Headers(compactMap({
|
|
124
123
|
Accept: "application/json",
|
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Update a topic subscription
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Update a subscription by its unique identifier
|
|
32
|
+
* Update a subscription by its unique identifier for a topic. You can update the preferences and name associated with the subscription.
|
|
33
33
|
*/
|
|
34
34
|
export function topicsSubscriptionsUpdate(
|
|
35
35
|
client: NovuCore,
|
|
@@ -95,20 +95,19 @@ async function $do(
|
|
|
95
95
|
});
|
|
96
96
|
|
|
97
97
|
const pathParams = {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
),
|
|
98
|
+
identifier: encodeSimple("identifier", payload.identifier, {
|
|
99
|
+
explode: false,
|
|
100
|
+
charEncoding: "percent",
|
|
101
|
+
}),
|
|
103
102
|
topicKey: encodeSimple("topicKey", payload.topicKey, {
|
|
104
103
|
explode: false,
|
|
105
104
|
charEncoding: "percent",
|
|
106
105
|
}),
|
|
107
106
|
};
|
|
108
107
|
|
|
109
|
-
const path = pathToFunc(
|
|
110
|
-
|
|
111
|
-
)
|
|
108
|
+
const path = pathToFunc("/v2/topics/{topicKey}/subscriptions/{identifier}")(
|
|
109
|
+
pathParams,
|
|
110
|
+
);
|
|
112
111
|
|
|
113
112
|
const headers = new Headers(compactMap({
|
|
114
113
|
"Content-Type": "application/json",
|
package/src/funcs/trigger.ts
CHANGED
|
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
33
|
*
|
|
34
|
-
* Trigger event is the main (and only) way to send notifications to subscribers. The trigger identifier is used to match the particular workflow associated with it. Additional information can be passed according the body interface below.
|
|
34
|
+
* Trigger event is the main (and only) way to send notifications to subscribers. The trigger identifier is used to match the particular workflow associated with it. Maximum number of recipients can be 100. Additional information can be passed according the body interface below.
|
|
35
35
|
* To prevent duplicate triggers, you can optionally pass a **transactionId** in the request body. If the same **transactionId** is used again, the trigger will be ignored. The retention period depends on your billing tier.
|
|
36
36
|
*/
|
|
37
37
|
export function trigger(
|
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.11.0",
|
|
62
|
-
sdkVersion: "3.
|
|
63
|
-
genVersion: "2.
|
|
64
|
-
userAgent: "speakeasy-sdk/typescript 3.
|
|
62
|
+
sdkVersion: "3.12.0",
|
|
63
|
+
genVersion: "2.792.0",
|
|
64
|
+
userAgent: "speakeasy-sdk/typescript 3.12.0 2.792.0 3.11.0 @novu/api",
|
|
65
65
|
} as const;
|