@novu/api 3.12.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.
Files changed (149) hide show
  1. package/README.md +41 -33
  2. package/examples/package-lock.json +3 -3
  3. package/funcs/environmentsGetTags.d.ts +1 -1
  4. package/funcs/environmentsGetTags.js +1 -1
  5. package/funcs/subscribersPreferencesList.d.ts +1 -1
  6. package/funcs/subscribersPreferencesList.d.ts.map +1 -1
  7. package/funcs/subscribersPreferencesList.js +5 -9
  8. package/funcs/subscribersPreferencesList.js.map +1 -1
  9. package/funcs/subscribersTopicsList.js +1 -0
  10. package/funcs/subscribersTopicsList.js.map +1 -1
  11. package/funcs/topicsSubscriptionsGetSubscription.d.ts +2 -2
  12. package/funcs/topicsSubscriptionsGetSubscription.js +2 -2
  13. package/funcs/topicsSubscriptionsList.js +1 -0
  14. package/funcs/topicsSubscriptionsList.js.map +1 -1
  15. package/jsr.json +1 -1
  16. package/lib/config.d.ts +4 -4
  17. package/lib/config.js +4 -4
  18. package/lib/sdks.js +2 -2
  19. package/lib/sdks.js.map +1 -1
  20. package/models/components/activitynotificationjobresponsedto.d.ts +4 -4
  21. package/models/components/activitynotificationjobresponsedto.d.ts.map +1 -1
  22. package/models/components/activitynotificationjobresponsedto.js +6 -7
  23. package/models/components/activitynotificationjobresponsedto.js.map +1 -1
  24. package/models/components/bulkupdatesubscriberpreferencesdto.d.ts +34 -0
  25. package/models/components/bulkupdatesubscriberpreferencesdto.d.ts.map +1 -1
  26. package/models/components/bulkupdatesubscriberpreferencesdto.js +17 -1
  27. package/models/components/bulkupdatesubscriberpreferencesdto.js.map +1 -1
  28. package/models/components/createchannelconnectionrequestdto.d.ts +10 -10
  29. package/models/components/createchannelconnectionrequestdto.d.ts.map +1 -1
  30. package/models/components/createchannelconnectionrequestdto.js +16 -12
  31. package/models/components/createchannelconnectionrequestdto.js.map +1 -1
  32. package/models/components/createslackchannelendpointdto.d.ts +8 -8
  33. package/models/components/createslackchannelendpointdto.d.ts.map +1 -1
  34. package/models/components/createslackchannelendpointdto.js +13 -7
  35. package/models/components/createslackchannelendpointdto.js.map +1 -1
  36. package/models/components/createtopicsubscriptionsrequestdto.d.ts +34 -0
  37. package/models/components/createtopicsubscriptionsrequestdto.d.ts.map +1 -1
  38. package/models/components/createtopicsubscriptionsrequestdto.js +23 -1
  39. package/models/components/createtopicsubscriptionsrequestdto.js.map +1 -1
  40. package/models/components/index.d.ts +1 -0
  41. package/models/components/index.d.ts.map +1 -1
  42. package/models/components/index.js +1 -0
  43. package/models/components/index.js.map +1 -1
  44. package/models/components/messageactionresult.d.ts +3 -8
  45. package/models/components/messageactionresult.d.ts.map +1 -1
  46. package/models/components/messageactionresult.js +2 -8
  47. package/models/components/messageactionresult.js.map +1 -1
  48. package/models/components/messageresponsedto.d.ts +6 -16
  49. package/models/components/messageresponsedto.d.ts.map +1 -1
  50. package/models/components/messageresponsedto.js +3 -15
  51. package/models/components/messageresponsedto.js.map +1 -1
  52. package/models/components/patchsubscriberpreferencesdto.d.ts +34 -0
  53. package/models/components/patchsubscriberpreferencesdto.d.ts.map +1 -1
  54. package/models/components/patchsubscriberpreferencesdto.js +19 -1
  55. package/models/components/patchsubscriberpreferencesdto.js.map +1 -1
  56. package/models/components/subscriberworkflowpreferencedto.d.ts +4 -0
  57. package/models/components/subscriberworkflowpreferencedto.d.ts.map +1 -1
  58. package/models/components/subscriberworkflowpreferencedto.js +1 -0
  59. package/models/components/subscriberworkflowpreferencedto.js.map +1 -1
  60. package/models/components/subscriptiondetailsresponsedto.d.ts +30 -0
  61. package/models/components/subscriptiondetailsresponsedto.d.ts.map +1 -0
  62. package/models/components/{createtopicsubscriptionsresponsedto.js → subscriptiondetailsresponsedto.js} +12 -12
  63. package/models/components/subscriptiondetailsresponsedto.js.map +1 -0
  64. package/models/components/subscriptiondto.d.ts +4 -0
  65. package/models/components/subscriptiondto.d.ts.map +1 -1
  66. package/models/components/subscriptiondto.js +1 -0
  67. package/models/components/subscriptiondto.js.map +1 -1
  68. package/models/components/subscriptionresponsedto.d.ts +4 -0
  69. package/models/components/subscriptionresponsedto.d.ts.map +1 -1
  70. package/models/components/subscriptionresponsedto.js +1 -0
  71. package/models/components/subscriptionresponsedto.js.map +1 -1
  72. package/models/components/topicsubscriptionresponsedto.d.ts +4 -0
  73. package/models/components/topicsubscriptionresponsedto.d.ts.map +1 -1
  74. package/models/components/topicsubscriptionresponsedto.js +1 -0
  75. package/models/components/topicsubscriptionresponsedto.js.map +1 -1
  76. package/models/operations/inboundwebhookscontrollerhandlewebhook.d.ts +6 -2
  77. package/models/operations/inboundwebhookscontrollerhandlewebhook.d.ts.map +1 -1
  78. package/models/operations/inboundwebhookscontrollerhandlewebhook.js +1 -1
  79. package/models/operations/inboundwebhookscontrollerhandlewebhook.js.map +1 -1
  80. package/models/operations/subscriberscontrollergetsubscriberpreferences.d.ts +5 -0
  81. package/models/operations/subscriberscontrollergetsubscriberpreferences.d.ts.map +1 -1
  82. package/models/operations/subscriberscontrollergetsubscriberpreferences.js +1 -0
  83. package/models/operations/subscriberscontrollergetsubscriberpreferences.js.map +1 -1
  84. package/models/operations/subscriberscontrollerlistsubscribertopics.d.ts +5 -0
  85. package/models/operations/subscriberscontrollerlistsubscribertopics.d.ts.map +1 -1
  86. package/models/operations/subscriberscontrollerlistsubscribertopics.js +1 -0
  87. package/models/operations/subscriberscontrollerlistsubscribertopics.js.map +1 -1
  88. package/models/operations/topicscontrollergettopicsubscription.d.ts +1 -1
  89. package/models/operations/topicscontrollergettopicsubscription.d.ts.map +1 -1
  90. package/models/operations/topicscontrollergettopicsubscription.js +1 -1
  91. package/models/operations/topicscontrollergettopicsubscription.js.map +1 -1
  92. package/models/operations/topicscontrollerlisttopicsubscriptions.d.ts +5 -0
  93. package/models/operations/topicscontrollerlisttopicsubscriptions.d.ts.map +1 -1
  94. package/models/operations/topicscontrollerlisttopicsubscriptions.js +1 -0
  95. package/models/operations/topicscontrollerlisttopicsubscriptions.js.map +1 -1
  96. package/package.json +3 -3
  97. package/sdk/environments.d.ts +1 -1
  98. package/sdk/environments.js +1 -1
  99. package/sdk/preferences.d.ts +1 -1
  100. package/sdk/preferences.d.ts.map +1 -1
  101. package/sdk/preferences.js +2 -2
  102. package/sdk/preferences.js.map +1 -1
  103. package/sdk/subscriptions.d.ts +2 -2
  104. package/sdk/subscriptions.js +2 -2
  105. package/sources/json-development.json +268 -31
  106. package/src/funcs/environmentsGetTags.ts +1 -1
  107. package/src/funcs/subscribersPreferencesList.ts +5 -17
  108. package/src/funcs/subscribersTopicsList.ts +1 -0
  109. package/src/funcs/topicsSubscriptionsGetSubscription.ts +2 -2
  110. package/src/funcs/topicsSubscriptionsList.ts +1 -0
  111. package/src/lib/config.ts +4 -4
  112. package/src/lib/sdks.ts +2 -2
  113. package/src/models/components/activitynotificationjobresponsedto.ts +9 -19
  114. package/src/models/components/bulkupdatesubscriberpreferencesdto.ts +62 -0
  115. package/src/models/components/createchannelconnectionrequestdto.ts +51 -18
  116. package/src/models/components/createslackchannelendpointdto.ts +31 -13
  117. package/src/models/components/createtopicsubscriptionsrequestdto.ts +82 -0
  118. package/src/models/components/index.ts +1 -0
  119. package/src/models/components/messageactionresult.ts +2 -21
  120. package/src/models/components/messageresponsedto.ts +4 -48
  121. package/src/models/components/patchsubscriberpreferencesdto.ts +48 -0
  122. package/src/models/components/subscriberworkflowpreferencedto.ts +5 -0
  123. package/src/models/components/subscriptiondetailsresponsedto.ts +58 -0
  124. package/src/models/components/subscriptiondto.ts +5 -0
  125. package/src/models/components/subscriptionresponsedto.ts +5 -0
  126. package/src/models/components/topicsubscriptionresponsedto.ts +5 -0
  127. package/src/models/operations/inboundwebhookscontrollerhandlewebhook.ts +3 -3
  128. package/src/models/operations/subscriberscontrollergetsubscriberpreferences.ts +6 -0
  129. package/src/models/operations/subscriberscontrollerlistsubscribertopics.ts +6 -0
  130. package/src/models/operations/topicscontrollergettopicsubscription.ts +2 -2
  131. package/src/models/operations/topicscontrollerlisttopicsubscriptions.ts +6 -0
  132. package/src/sdk/environments.ts +1 -1
  133. package/src/sdk/preferences.ts +2 -6
  134. package/src/sdk/subscriptions.ts +2 -2
  135. package/models/components/createtopicsubscriptionsresponsedto.d.ts +0 -24
  136. package/models/components/createtopicsubscriptionsresponsedto.d.ts.map +0 -1
  137. package/models/components/createtopicsubscriptionsresponsedto.js.map +0 -1
  138. package/models/components/steptypeenum.d.ts +0 -26
  139. package/models/components/steptypeenum.d.ts.map +0 -1
  140. package/models/components/steptypeenum.js +0 -60
  141. package/models/components/steptypeenum.js.map +0 -1
  142. package/models/components/uploadtranslationsrequestdto.d.ts +0 -34
  143. package/models/components/uploadtranslationsrequestdto.d.ts.map +0 -1
  144. package/models/components/uploadtranslationsrequestdto.js +0 -60
  145. package/models/components/uploadtranslationsrequestdto.js.map +0 -1
  146. package/src/models/components/createtopicsubscriptionsresponsedto.ts +0 -54
  147. package/src/models/components/steptypeenum.ts +0 -33
  148. package/src/models/components/uploadtranslationsrequestdto.ts +0 -62
  149. package/temp/example.ts +0 -5
@@ -2497,7 +2497,7 @@
2497
2497
  "get": {
2498
2498
  "operationId": "EnvironmentsController_getEnvironmentTags",
2499
2499
  "x-speakeasy-name-override": "getTags",
2500
- "summary": "Get environment tags",
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
  {
@@ -3023,7 +3023,9 @@
3023
3023
  "content": {
3024
3024
  "application/json": {
3025
3025
  "schema": {
3026
- "$ref": "#/components/schemas/"
3026
+ "type": "object",
3027
+ "additionalProperties": true,
3028
+ "description": "Generic webhook payload from delivery providers"
3027
3029
  }
3028
3030
  }
3029
3031
  }
@@ -9506,6 +9508,21 @@
9506
9508
  "type": "string"
9507
9509
  }
9508
9510
  },
9511
+ {
9512
+ "name": "contextKeys",
9513
+ "required": false,
9514
+ "in": "query",
9515
+ "description": "Context keys for filtering preferences (e.g., [\"tenant:acme\"])",
9516
+ "example": [
9517
+ "tenant:acme"
9518
+ ],
9519
+ "schema": {
9520
+ "type": "array",
9521
+ "items": {
9522
+ "type": "string"
9523
+ }
9524
+ }
9525
+ },
9509
9526
  {
9510
9527
  "name": "idempotency-key",
9511
9528
  "in": "header",
@@ -11052,6 +11069,22 @@
11052
11069
  "type": "string"
11053
11070
  }
11054
11071
  },
11072
+ {
11073
+ "name": "contextKeys",
11074
+ "required": false,
11075
+ "in": "query",
11076
+ "description": "Filter by exact context keys, order insensitive (format: \"type:id\")",
11077
+ "example": [
11078
+ "tenant:org-123",
11079
+ "region:us-east-1"
11080
+ ],
11081
+ "schema": {
11082
+ "type": "array",
11083
+ "items": {
11084
+ "type": "string"
11085
+ }
11086
+ }
11087
+ },
11055
11088
  {
11056
11089
  "name": "idempotency-key",
11057
11090
  "in": "header",
@@ -14146,6 +14179,22 @@
14146
14179
  "type": "string"
14147
14180
  }
14148
14181
  },
14182
+ {
14183
+ "name": "contextKeys",
14184
+ "required": false,
14185
+ "in": "query",
14186
+ "description": "Filter by exact context keys, order insensitive (format: \"type:id\")",
14187
+ "example": [
14188
+ "tenant:org-123",
14189
+ "region:us-east-1"
14190
+ ],
14191
+ "schema": {
14192
+ "type": "array",
14193
+ "items": {
14194
+ "type": "string"
14195
+ }
14196
+ }
14197
+ },
14149
14198
  {
14150
14199
  "name": "idempotency-key",
14151
14200
  "in": "header",
@@ -15608,8 +15657,8 @@
15608
15657
  "operationId": "TopicsController_getTopicSubscription",
15609
15658
  "x-speakeasy-name-override": "getSubscription",
15610
15659
  "x-speakeasy-group": "Topics.Subscriptions",
15611
- "summary": "Get a topic subscription",
15612
- "description": "Get a subscription by its unique identifier for a topic.",
15660
+ "summary": "Retrieve a topic subscription",
15661
+ "description": "Retrieve a subscription by its unique identifier for a topic.",
15613
15662
  "parameters": [
15614
15663
  {
15615
15664
  "name": "topicKey",
@@ -15668,7 +15717,7 @@
15668
15717
  "content": {
15669
15718
  "application/json": {
15670
15719
  "schema": {
15671
- "$ref": "#/components/schemas/SubscriptionResponseDto"
15720
+ "$ref": "#/components/schemas/SubscriptionDetailsResponseDto"
15672
15721
  }
15673
15722
  }
15674
15723
  }
@@ -42088,7 +42137,7 @@
42088
42137
  "info": {
42089
42138
  "title": "Novu API",
42090
42139
  "description": "Novu REST API. Please see https://docs.novu.co/api-reference for more details.",
42091
- "version": "3.11.0",
42140
+ "version": "3.13.0",
42092
42141
  "contact": {
42093
42142
  "name": "Novu Support",
42094
42143
  "url": "https://discord.gg/novu",
@@ -42179,7 +42228,7 @@
42179
42228
  "type": "apiKey",
42180
42229
  "name": "Authorization",
42181
42230
  "in": "header",
42182
- "description": "API key authentication. Allowed headers-- \"Authorization: ApiKey \u003cnovu_secret_key\u003e\".",
42231
+ "description": "API key authentication. Allowed headers-- \"Authorization: ApiKey <novu_secret_key>\".",
42183
42232
  "x-speakeasy-example": "YOUR_SECRET_KEY_HERE"
42184
42233
  }
42185
42234
  },
@@ -43313,7 +43362,7 @@
43313
43362
  "text": "string"
43314
43363
  }
43315
43364
  },
43316
- "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 \u003cInbox /\u003e",
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 />",
43317
43366
  "additionalProperties": true
43318
43367
  },
43319
43368
  "overrides": {
@@ -46061,7 +46110,8 @@
46061
46110
  "properties": {
46062
46111
  "payload": {
46063
46112
  "type": "object",
46064
- "description": "Payload of the action result"
46113
+ "description": "Payload of the action result",
46114
+ "additionalProperties": true
46065
46115
  },
46066
46116
  "type": {
46067
46117
  "$ref": "#/components/schemas/ButtonTypeEnum"
@@ -47148,11 +47198,13 @@
47148
47198
  },
47149
47199
  "payload": {
47150
47200
  "type": "object",
47151
- "description": "The payload that was used to send the notification trigger"
47201
+ "description": "The payload that was used to send the notification trigger",
47202
+ "additionalProperties": true
47152
47203
  },
47153
47204
  "overrides": {
47154
47205
  "type": "object",
47155
- "description": "Provider specific overrides used when triggering the notification"
47206
+ "description": "Provider specific overrides used when triggering the notification",
47207
+ "additionalProperties": true
47156
47208
  },
47157
47209
  "contextKeys": {
47158
47210
  "description": "Context (single or multi) in which the message was sent",
@@ -47735,6 +47787,10 @@
47735
47787
  "$ref": "#/components/schemas/SubscriberPreferencesWorkflowInfoDto"
47736
47788
  }
47737
47789
  ]
47790
+ },
47791
+ "updatedAt": {
47792
+ "type": "string",
47793
+ "description": "Timestamp when the subscriber last updated their preference. Only present if subscriber explicitly set preferences."
47738
47794
  }
47739
47795
  },
47740
47796
  "required": [
@@ -47926,6 +47982,40 @@
47926
47982
  "items": {
47927
47983
  "$ref": "#/components/schemas/BulkUpdateSubscriberPreferenceItemDto"
47928
47984
  }
47985
+ },
47986
+ "context": {
47987
+ "type": "object",
47988
+ "additionalProperties": {
47989
+ "oneOf": [
47990
+ {
47991
+ "type": "string",
47992
+ "description": "Simple context id",
47993
+ "example": "org-acme"
47994
+ },
47995
+ {
47996
+ "type": "object",
47997
+ "description": "Rich context object with id and optional data",
47998
+ "properties": {
47999
+ "id": {
48000
+ "type": "string",
48001
+ "example": "org-acme"
48002
+ },
48003
+ "data": {
48004
+ "type": "object",
48005
+ "description": "Optional additional context data",
48006
+ "additionalProperties": true,
48007
+ "example": {
48008
+ "name": "Acme Corp",
48009
+ "region": "us-east-1"
48010
+ }
48011
+ }
48012
+ },
48013
+ "required": [
48014
+ "id"
48015
+ ]
48016
+ }
48017
+ ]
48018
+ }
47929
48019
  }
47930
48020
  },
47931
48021
  "required": [
@@ -47954,6 +48044,40 @@
47954
48044
  "$ref": "#/components/schemas/ScheduleDto"
47955
48045
  }
47956
48046
  ]
48047
+ },
48048
+ "context": {
48049
+ "type": "object",
48050
+ "additionalProperties": {
48051
+ "oneOf": [
48052
+ {
48053
+ "type": "string",
48054
+ "description": "Simple context id",
48055
+ "example": "org-acme"
48056
+ },
48057
+ {
48058
+ "type": "object",
48059
+ "description": "Rich context object with id and optional data",
48060
+ "properties": {
48061
+ "id": {
48062
+ "type": "string",
48063
+ "example": "org-acme"
48064
+ },
48065
+ "data": {
48066
+ "type": "object",
48067
+ "description": "Optional additional context data",
48068
+ "additionalProperties": true,
48069
+ "example": {
48070
+ "name": "Acme Corp",
48071
+ "region": "us-east-1"
48072
+ }
48073
+ }
48074
+ },
48075
+ "required": [
48076
+ "id"
48077
+ ]
48078
+ }
48079
+ ]
48080
+ }
47957
48081
  }
47958
48082
  }
47959
48083
  },
@@ -48033,6 +48157,17 @@
48033
48157
  "$ref": "#/components/schemas/SubscriberDto"
48034
48158
  }
48035
48159
  ]
48160
+ },
48161
+ "contextKeys": {
48162
+ "description": "Context keys that scope this subscription (e.g., tenant:org-a, project:proj-123)",
48163
+ "example": [
48164
+ "tenant:org-a",
48165
+ "project:proj-123"
48166
+ ],
48167
+ "type": "array",
48168
+ "items": {
48169
+ "type": "string"
48170
+ }
48036
48171
  }
48037
48172
  },
48038
48173
  "required": [
@@ -48989,6 +49124,17 @@
48989
49124
  "$ref": "#/components/schemas/SubscriptionPreferenceDto"
48990
49125
  }
48991
49126
  },
49127
+ "contextKeys": {
49128
+ "description": "Context keys that scope this subscription (e.g., tenant:org-a, project:proj-123)",
49129
+ "example": [
49130
+ "tenant:org-a",
49131
+ "project:proj-123"
49132
+ ],
49133
+ "type": "array",
49134
+ "items": {
49135
+ "type": "string"
49136
+ }
49137
+ },
48992
49138
  "createdAt": {
48993
49139
  "type": "string",
48994
49140
  "description": "The creation date of the subscription",
@@ -49257,6 +49403,40 @@
49257
49403
  "description": "The name of the topic",
49258
49404
  "example": "My Topic"
49259
49405
  },
49406
+ "context": {
49407
+ "type": "object",
49408
+ "additionalProperties": {
49409
+ "oneOf": [
49410
+ {
49411
+ "type": "string",
49412
+ "description": "Simple context id",
49413
+ "example": "org-acme"
49414
+ },
49415
+ {
49416
+ "type": "object",
49417
+ "description": "Rich context object with id and optional data",
49418
+ "properties": {
49419
+ "id": {
49420
+ "type": "string",
49421
+ "example": "org-acme"
49422
+ },
49423
+ "data": {
49424
+ "type": "object",
49425
+ "description": "Optional additional context data",
49426
+ "additionalProperties": true,
49427
+ "example": {
49428
+ "name": "Acme Corp",
49429
+ "region": "us-east-1"
49430
+ }
49431
+ }
49432
+ },
49433
+ "required": [
49434
+ "id"
49435
+ ]
49436
+ }
49437
+ ]
49438
+ }
49439
+ },
49260
49440
  "preferences": {
49261
49441
  "type": "array",
49262
49442
  "description": "The preferences of the topic. Can be a simple workflow ID string, workflow preference object, or group filter object",
@@ -49319,6 +49499,17 @@
49319
49499
  }
49320
49500
  ]
49321
49501
  },
49502
+ "contextKeys": {
49503
+ "description": "Context keys that scope this subscription (e.g., tenant:org-a, project:proj-123)",
49504
+ "example": [
49505
+ "tenant:org-a",
49506
+ "project:proj-123"
49507
+ ],
49508
+ "type": "array",
49509
+ "items": {
49510
+ "type": "string"
49511
+ }
49512
+ },
49322
49513
  "createdAt": {
49323
49514
  "type": "string",
49324
49515
  "description": "The creation date of the subscription",
@@ -49452,6 +49643,47 @@
49452
49643
  }
49453
49644
  }
49454
49645
  },
49646
+ "SubscriptionDetailsResponseDto": {
49647
+ "type": "object",
49648
+ "properties": {
49649
+ "id": {
49650
+ "type": "string",
49651
+ "description": "The unique identifier of the subscription",
49652
+ "example": "64f5e95d3d7946d80d0cb679"
49653
+ },
49654
+ "identifier": {
49655
+ "type": "string",
49656
+ "description": "The identifier of the subscription",
49657
+ "example": "subscription-identifier"
49658
+ },
49659
+ "name": {
49660
+ "type": "string",
49661
+ "description": "The name of the subscription",
49662
+ "example": "My Subscription"
49663
+ },
49664
+ "preferences": {
49665
+ "description": "The preferences/rules for the subscription",
49666
+ "type": "array",
49667
+ "items": {
49668
+ "$ref": "#/components/schemas/SubscriptionPreferenceDto"
49669
+ }
49670
+ },
49671
+ "contextKeys": {
49672
+ "description": "Context keys that scope this subscription (e.g., tenant:org-a, project:proj-123)",
49673
+ "example": [
49674
+ "tenant:org-a",
49675
+ "project:proj-123"
49676
+ ],
49677
+ "type": "array",
49678
+ "items": {
49679
+ "type": "string"
49680
+ }
49681
+ }
49682
+ },
49683
+ "required": [
49684
+ "id"
49685
+ ]
49686
+ },
49455
49687
  "UpdateTopicSubscriptionRequestDto": {
49456
49688
  "type": "object",
49457
49689
  "properties": {
@@ -49716,7 +49948,7 @@
49716
49948
  ]
49717
49949
  },
49718
49950
  {
49719
- "\u003e": [
49951
+ ">": [
49720
49952
  {
49721
49953
  "var": "payload.amount"
49722
49954
  },
@@ -49894,7 +50126,7 @@
49894
50126
  ]
49895
50127
  },
49896
50128
  {
49897
- "\u003e": [
50129
+ ">": [
49898
50130
  {
49899
50131
  "var": "payload.amount"
49900
50132
  },
@@ -50042,7 +50274,7 @@
50042
50274
  ]
50043
50275
  },
50044
50276
  {
50045
- "\u003e": [
50277
+ ">": [
50046
50278
  {
50047
50279
  "var": "payload.amount"
50048
50280
  },
@@ -50194,7 +50426,7 @@
50194
50426
  ]
50195
50427
  },
50196
50428
  {
50197
- "\u003e": [
50429
+ ">": [
50198
50430
  {
50199
50431
  "var": "payload.amount"
50200
50432
  },
@@ -50342,7 +50574,7 @@
50342
50574
  ]
50343
50575
  },
50344
50576
  {
50345
- "\u003e": [
50577
+ ">": [
50346
50578
  {
50347
50579
  "var": "payload.amount"
50348
50580
  },
@@ -50543,7 +50775,7 @@
50543
50775
  ]
50544
50776
  },
50545
50777
  {
50546
- "\u003e": [
50778
+ ">": [
50547
50779
  {
50548
50780
  "var": "payload.amount"
50549
50781
  },
@@ -50729,7 +50961,7 @@
50729
50961
  ]
50730
50962
  },
50731
50963
  {
50732
- "\u003e": [
50964
+ ">": [
50733
50965
  {
50734
50966
  "var": "payload.amount"
50735
50967
  },
@@ -51067,7 +51299,7 @@
51067
51299
  ]
51068
51300
  },
51069
51301
  {
51070
- "\u003e": [
51302
+ ">": [
51071
51303
  {
51072
51304
  "var": "payload.amount"
51073
51305
  },
@@ -51526,7 +51758,7 @@
51526
51758
  },
51527
51759
  "stepId": {
51528
51760
  "type": "string",
51529
- "pattern": "/^[a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*$/",
51761
+ "pattern": "/^[a-zA-Z0-9]+(?:[-_.][a-zA-Z0-9]+)*$/",
51530
51762
  "description": "Unique identifier for the step"
51531
51763
  },
51532
51764
  "name": {
@@ -51563,7 +51795,7 @@
51563
51795
  },
51564
51796
  "stepId": {
51565
51797
  "type": "string",
51566
- "pattern": "/^[a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*$/",
51798
+ "pattern": "/^[a-zA-Z0-9]+(?:[-_.][a-zA-Z0-9]+)*$/",
51567
51799
  "description": "Unique identifier for the step"
51568
51800
  },
51569
51801
  "name": {
@@ -51600,7 +51832,7 @@
51600
51832
  },
51601
51833
  "stepId": {
51602
51834
  "type": "string",
51603
- "pattern": "/^[a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*$/",
51835
+ "pattern": "/^[a-zA-Z0-9]+(?:[-_.][a-zA-Z0-9]+)*$/",
51604
51836
  "description": "Unique identifier for the step"
51605
51837
  },
51606
51838
  "name": {
@@ -51637,7 +51869,7 @@
51637
51869
  },
51638
51870
  "stepId": {
51639
51871
  "type": "string",
51640
- "pattern": "/^[a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*$/",
51872
+ "pattern": "/^[a-zA-Z0-9]+(?:[-_.][a-zA-Z0-9]+)*$/",
51641
51873
  "description": "Unique identifier for the step"
51642
51874
  },
51643
51875
  "name": {
@@ -51674,7 +51906,7 @@
51674
51906
  },
51675
51907
  "stepId": {
51676
51908
  "type": "string",
51677
- "pattern": "/^[a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*$/",
51909
+ "pattern": "/^[a-zA-Z0-9]+(?:[-_.][a-zA-Z0-9]+)*$/",
51678
51910
  "description": "Unique identifier for the step"
51679
51911
  },
51680
51912
  "name": {
@@ -51711,7 +51943,7 @@
51711
51943
  },
51712
51944
  "stepId": {
51713
51945
  "type": "string",
51714
- "pattern": "/^[a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*$/",
51946
+ "pattern": "/^[a-zA-Z0-9]+(?:[-_.][a-zA-Z0-9]+)*$/",
51715
51947
  "description": "Unique identifier for the step"
51716
51948
  },
51717
51949
  "name": {
@@ -51748,7 +51980,7 @@
51748
51980
  },
51749
51981
  "stepId": {
51750
51982
  "type": "string",
51751
- "pattern": "/^[a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*$/",
51983
+ "pattern": "/^[a-zA-Z0-9]+(?:[-_.][a-zA-Z0-9]+)*$/",
51752
51984
  "description": "Unique identifier for the step"
51753
51985
  },
51754
51986
  "name": {
@@ -51785,7 +52017,7 @@
51785
52017
  },
51786
52018
  "stepId": {
51787
52019
  "type": "string",
51788
- "pattern": "/^[a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*$/",
52020
+ "pattern": "/^[a-zA-Z0-9]+(?:[-_.][a-zA-Z0-9]+)*$/",
51789
52021
  "description": "Unique identifier for the step"
51790
52022
  },
51791
52023
  "name": {
@@ -51822,7 +52054,7 @@
51822
52054
  },
51823
52055
  "stepId": {
51824
52056
  "type": "string",
51825
- "pattern": "/^[a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*$/",
52057
+ "pattern": "/^[a-zA-Z0-9]+(?:[-_.][a-zA-Z0-9]+)*$/",
51826
52058
  "description": "Unique identifier for the step"
51827
52059
  },
51828
52060
  "name": {
@@ -51930,7 +52162,7 @@
51930
52162
  },
51931
52163
  "workflowId": {
51932
52164
  "type": "string",
51933
- "pattern": "/^[a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*$/",
52165
+ "pattern": "/^[a-zA-Z0-9]+(?:[-_.][a-zA-Z0-9]+)*$/",
51934
52166
  "description": "Unique identifier for the workflow"
51935
52167
  },
51936
52168
  "steps": {
@@ -52286,7 +52518,7 @@
52286
52518
  },
52287
52519
  "workflowId": {
52288
52520
  "type": "string",
52289
- "pattern": "/^[a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*$/",
52521
+ "pattern": "/^[a-zA-Z0-9]+(?:[-_.][a-zA-Z0-9]+)*$/",
52290
52522
  "description": "Custom workflow identifier for the duplicated workflow"
52291
52523
  },
52292
52524
  "tags": {
@@ -54377,10 +54609,15 @@
54377
54609
  "object": {
54378
54610
  "type": "object",
54379
54611
  "description": "Current preference state"
54612
+ },
54613
+ "subscriberId": {
54614
+ "type": "string",
54615
+ "description": "Subscriber ID"
54380
54616
  }
54381
54617
  },
54382
54618
  "required": [
54383
- "object"
54619
+ "object",
54620
+ "subscriberId"
54384
54621
  ]
54385
54622
  },
54386
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
- * Get environment tags
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.
@@ -34,9 +34,7 @@ import { Result } from "../types/fp.js";
34
34
  */
35
35
  export function subscribersPreferencesList(
36
36
  client: NovuCore,
37
- subscriberId: string,
38
- criticality?: operations.Criticality | undefined,
39
- idempotencyKey?: string | undefined,
37
+ request: operations.SubscribersControllerGetSubscriberPreferencesRequest,
40
38
  options?: RequestOptions,
41
39
  ): APIPromise<
42
40
  Result<
@@ -55,18 +53,14 @@ export function subscribersPreferencesList(
55
53
  > {
56
54
  return new APIPromise($do(
57
55
  client,
58
- subscriberId,
59
- criticality,
60
- idempotencyKey,
56
+ request,
61
57
  options,
62
58
  ));
63
59
  }
64
60
 
65
61
  async function $do(
66
62
  client: NovuCore,
67
- subscriberId: string,
68
- criticality?: operations.Criticality | undefined,
69
- idempotencyKey?: string | undefined,
63
+ request: operations.SubscribersControllerGetSubscriberPreferencesRequest,
70
64
  options?: RequestOptions,
71
65
  ): Promise<
72
66
  [
@@ -86,15 +80,8 @@ async function $do(
86
80
  APICall,
87
81
  ]
88
82
  > {
89
- const input: operations.SubscribersControllerGetSubscriberPreferencesRequest =
90
- {
91
- subscriberId: subscriberId,
92
- criticality: criticality,
93
- idempotencyKey: idempotencyKey,
94
- };
95
-
96
83
  const parsed = safeParse(
97
- input,
84
+ request,
98
85
  (value) =>
99
86
  operations
100
87
  .SubscribersControllerGetSubscriberPreferencesRequest$outboundSchema
@@ -119,6 +106,7 @@ async function $do(
119
106
  );
120
107
 
121
108
  const query = encodeFormQuery({
109
+ "contextKeys": payload.contextKeys,
122
110
  "criticality": payload.criticality,
123
111
  });
124
112
 
@@ -107,6 +107,7 @@ async function $do(
107
107
  const query = encodeFormQuery({
108
108
  "after": payload.after,
109
109
  "before": payload.before,
110
+ "contextKeys": payload.contextKeys,
110
111
  "includeCursor": payload.includeCursor,
111
112
  "key": payload.key,
112
113
  "limit": payload.limit,
@@ -26,10 +26,10 @@ import { APICall, APIPromise } from "../types/async.js";
26
26
  import { Result } from "../types/fp.js";
27
27
 
28
28
  /**
29
- * Get a topic subscription
29
+ * Retrieve a topic subscription
30
30
  *
31
31
  * @remarks
32
- * Get a subscription by its unique identifier for a topic.
32
+ * Retrieve a subscription by its unique identifier for a topic.
33
33
  */
34
34
  export function topicsSubscriptionsGetSubscription(
35
35
  client: NovuCore,
@@ -105,6 +105,7 @@ async function $do(
105
105
  const query = encodeFormQuery({
106
106
  "after": payload.after,
107
107
  "before": payload.before,
108
+ "contextKeys": payload.contextKeys,
108
109
  "includeCursor": payload.includeCursor,
109
110
  "limit": payload.limit,
110
111
  "orderBy": payload.orderBy,
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.11.0",
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",
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;