@trycourier/courier 6.2.1 → 6.2.2

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 (109) hide show
  1. package/Client.d.ts +1 -0
  2. package/Client.js +2 -1
  3. package/api/client/requests/SendMessageRequest.d.ts +1 -0
  4. package/api/resources/audiences/client/Client.js +5 -5
  5. package/api/resources/auditEvents/client/Client.js +2 -2
  6. package/api/resources/authTokens/client/Client.js +1 -1
  7. package/api/resources/automations/client/Client.js +2 -2
  8. package/api/resources/brands/client/Client.js +5 -5
  9. package/api/resources/bulk/client/Client.js +5 -5
  10. package/api/resources/inbound/client/Client.js +1 -1
  11. package/api/resources/lists/client/Client.js +10 -10
  12. package/api/resources/messages/client/Client.js +6 -6
  13. package/api/resources/notifications/client/Client.d.ts +2 -1
  14. package/api/resources/notifications/client/Client.js +12 -8
  15. package/api/resources/notifications/client/requests/NotificationListParams.d.ts +6 -1
  16. package/api/resources/notifications/types/Notification.d.ts +1 -0
  17. package/api/resources/profiles/client/Client.js +7 -7
  18. package/api/resources/profiles/types/Pagerduty.d.ts +9 -0
  19. package/api/resources/profiles/types/UserProfile.d.ts +1 -1
  20. package/api/resources/profiles/types/UserProfileFirebaseToken.d.ts +4 -0
  21. package/api/resources/profiles/types/WebhookAuthMode.d.ts +9 -0
  22. package/api/resources/profiles/types/WebhookAuthMode.js +11 -0
  23. package/api/resources/profiles/types/WebhookAuthentication.d.ts +14 -0
  24. package/api/resources/profiles/types/WebhookAuthentication.js +5 -0
  25. package/api/resources/profiles/types/WebhookMethod.d.ts +8 -0
  26. package/api/resources/profiles/types/WebhookMethod.js +10 -0
  27. package/api/resources/profiles/types/WebhookProfile.d.ts +16 -0
  28. package/api/resources/profiles/types/WebhookProfile.js +5 -0
  29. package/api/resources/profiles/types/WebhookProfileType.d.ts +8 -0
  30. package/api/resources/profiles/types/WebhookProfileType.js +10 -0
  31. package/api/resources/profiles/types/index.d.ts +7 -0
  32. package/api/resources/profiles/types/index.js +7 -0
  33. package/api/resources/send/types/BaseMessage.d.ts +1 -0
  34. package/api/resources/send/types/Channel.d.ts +1 -1
  35. package/api/resources/send/types/MessagePreferences.d.ts +7 -0
  36. package/api/resources/send/types/MessagePreferences.js +5 -0
  37. package/api/resources/send/types/PagerdutyRecipient.d.ts +7 -0
  38. package/api/resources/send/types/PagerdutyRecipient.js +5 -0
  39. package/api/resources/send/types/Recipient.d.ts +1 -1
  40. package/api/resources/send/types/WebhookRecipient.d.ts +7 -0
  41. package/api/resources/send/types/WebhookRecipient.js +5 -0
  42. package/api/resources/send/types/index.d.ts +3 -2
  43. package/api/resources/send/types/index.js +3 -2
  44. package/api/resources/templates/client/Client.js +1 -1
  45. package/api/resources/tenants/client/Client.js +7 -7
  46. package/api/resources/translations/client/Client.js +2 -2
  47. package/api/resources/users/resources/preferences/client/Client.js +3 -3
  48. package/api/resources/users/resources/tenants/client/Client.js +5 -5
  49. package/api/resources/users/resources/tokens/client/Client.js +6 -6
  50. package/dist/Client.d.ts +1 -0
  51. package/dist/Client.js +2 -1
  52. package/dist/api/client/requests/SendMessageRequest.d.ts +1 -0
  53. package/dist/api/resources/audiences/client/Client.js +5 -5
  54. package/dist/api/resources/auditEvents/client/Client.js +2 -2
  55. package/dist/api/resources/authTokens/client/Client.js +1 -1
  56. package/dist/api/resources/automations/client/Client.js +2 -2
  57. package/dist/api/resources/brands/client/Client.js +5 -5
  58. package/dist/api/resources/bulk/client/Client.js +5 -5
  59. package/dist/api/resources/inbound/client/Client.js +1 -1
  60. package/dist/api/resources/lists/client/Client.js +10 -10
  61. package/dist/api/resources/messages/client/Client.js +6 -6
  62. package/dist/api/resources/notifications/client/Client.d.ts +2 -1
  63. package/dist/api/resources/notifications/client/Client.js +12 -8
  64. package/dist/api/resources/notifications/client/requests/NotificationListParams.d.ts +6 -1
  65. package/dist/api/resources/notifications/types/Notification.d.ts +1 -0
  66. package/dist/api/resources/profiles/client/Client.js +7 -7
  67. package/dist/api/resources/profiles/types/Pagerduty.d.ts +9 -0
  68. package/dist/api/resources/profiles/types/Pagerduty.js +5 -0
  69. package/dist/api/resources/profiles/types/UserProfile.d.ts +1 -1
  70. package/dist/api/resources/profiles/types/UserProfileFirebaseToken.d.ts +4 -0
  71. package/dist/api/resources/profiles/types/UserProfileFirebaseToken.js +5 -0
  72. package/dist/api/resources/profiles/types/WebhookAuthMode.d.ts +9 -0
  73. package/dist/api/resources/profiles/types/WebhookAuthMode.js +11 -0
  74. package/dist/api/resources/profiles/types/WebhookAuthentication.d.ts +14 -0
  75. package/dist/api/resources/profiles/types/WebhookAuthentication.js +5 -0
  76. package/dist/api/resources/profiles/types/WebhookMethod.d.ts +8 -0
  77. package/dist/api/resources/profiles/types/WebhookMethod.js +10 -0
  78. package/dist/api/resources/profiles/types/WebhookProfile.d.ts +16 -0
  79. package/dist/api/resources/profiles/types/WebhookProfile.js +5 -0
  80. package/dist/api/resources/profiles/types/WebhookProfileType.d.ts +8 -0
  81. package/dist/api/resources/profiles/types/WebhookProfileType.js +10 -0
  82. package/dist/api/resources/profiles/types/index.d.ts +7 -0
  83. package/dist/api/resources/profiles/types/index.js +7 -0
  84. package/dist/api/resources/send/types/BaseMessage.d.ts +1 -0
  85. package/dist/api/resources/send/types/Channel.d.ts +1 -1
  86. package/dist/api/resources/send/types/MessagePreferences.d.ts +7 -0
  87. package/dist/api/resources/send/types/MessagePreferences.js +5 -0
  88. package/dist/api/resources/send/types/PagerdutyRecipient.d.ts +7 -0
  89. package/dist/api/resources/send/types/PagerdutyRecipient.js +5 -0
  90. package/dist/api/resources/send/types/Recipient.d.ts +1 -1
  91. package/dist/api/resources/send/types/WebhookRecipient.d.ts +7 -0
  92. package/dist/api/resources/send/types/WebhookRecipient.js +5 -0
  93. package/dist/api/resources/send/types/index.d.ts +3 -2
  94. package/dist/api/resources/send/types/index.js +3 -2
  95. package/dist/api/resources/templates/client/Client.js +1 -1
  96. package/dist/api/resources/tenants/client/Client.js +7 -7
  97. package/dist/api/resources/translations/client/Client.js +2 -2
  98. package/dist/api/resources/users/resources/preferences/client/Client.js +3 -3
  99. package/dist/api/resources/users/resources/tenants/client/Client.js +5 -5
  100. package/dist/api/resources/users/resources/tokens/client/Client.js +6 -6
  101. package/package.json +1 -1
  102. package/api/resources/send/types/MessageChannelEmailOverride.d.ts +0 -16
  103. package/api/resources/send/types/Override.d.ts +0 -8
  104. package/api/resources/send/types/Override.js +0 -10
  105. package/dist/api/resources/send/types/MessageChannelEmailOverride.d.ts +0 -16
  106. package/dist/api/resources/send/types/Override.d.ts +0 -8
  107. package/dist/api/resources/send/types/Override.js +0 -10
  108. /package/api/resources/{send/types/MessageChannelEmailOverride.js → profiles/types/Pagerduty.js} +0 -0
  109. /package/{dist/api/resources/send/types/MessageChannelEmailOverride.js → api/resources/profiles/types/UserProfileFirebaseToken.js} +0 -0
package/Client.d.ts CHANGED
@@ -58,6 +58,7 @@ export declare class CourierClient {
58
58
  * },
59
59
  * context: {},
60
60
  * metadata: {},
61
+ * preferences: {},
61
62
  * providers: {
62
63
  * "string": {}
63
64
  * },
package/Client.js CHANGED
@@ -83,6 +83,7 @@ class CourierClient {
83
83
  * },
84
84
  * context: {},
85
85
  * metadata: {},
86
+ * preferences: {},
86
87
  * providers: {
87
88
  * "string": {}
88
89
  * },
@@ -104,7 +105,7 @@ class CourierClient {
104
105
  Authorization: yield this._getAuthorizationHeader(),
105
106
  "X-Fern-Language": "JavaScript",
106
107
  "X-Fern-SDK-Name": "@trycourier/courier",
107
- "X-Fern-SDK-Version": "v6.2.1",
108
+ "X-Fern-SDK-Version": "v6.2.2",
108
109
  "X-Fern-Runtime": core.RUNTIME.type,
109
110
  "X-Fern-Runtime-Version": core.RUNTIME.version,
110
111
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
@@ -18,6 +18,7 @@ import * as Courier from "../../index";
18
18
  * },
19
19
  * context: {},
20
20
  * metadata: {},
21
+ * preferences: {},
21
22
  * providers: {
22
23
  * "string": {}
23
24
  * },
@@ -67,7 +67,7 @@ class Audiences {
67
67
  Authorization: yield this._getAuthorizationHeader(),
68
68
  "X-Fern-Language": "JavaScript",
69
69
  "X-Fern-SDK-Name": "@trycourier/courier",
70
- "X-Fern-SDK-Version": "v6.2.1",
70
+ "X-Fern-SDK-Version": "v6.2.2",
71
71
  "X-Fern-Runtime": core.RUNTIME.type,
72
72
  "X-Fern-Runtime-Version": core.RUNTIME.version,
73
73
  },
@@ -127,7 +127,7 @@ class Audiences {
127
127
  Authorization: yield this._getAuthorizationHeader(),
128
128
  "X-Fern-Language": "JavaScript",
129
129
  "X-Fern-SDK-Name": "@trycourier/courier",
130
- "X-Fern-SDK-Version": "v6.2.1",
130
+ "X-Fern-SDK-Version": "v6.2.2",
131
131
  "X-Fern-Runtime": core.RUNTIME.type,
132
132
  "X-Fern-Runtime-Version": core.RUNTIME.version,
133
133
  },
@@ -179,7 +179,7 @@ class Audiences {
179
179
  Authorization: yield this._getAuthorizationHeader(),
180
180
  "X-Fern-Language": "JavaScript",
181
181
  "X-Fern-SDK-Name": "@trycourier/courier",
182
- "X-Fern-SDK-Version": "v6.2.1",
182
+ "X-Fern-SDK-Version": "v6.2.2",
183
183
  "X-Fern-Runtime": core.RUNTIME.type,
184
184
  "X-Fern-Runtime-Version": core.RUNTIME.version,
185
185
  },
@@ -240,7 +240,7 @@ class Audiences {
240
240
  Authorization: yield this._getAuthorizationHeader(),
241
241
  "X-Fern-Language": "JavaScript",
242
242
  "X-Fern-SDK-Name": "@trycourier/courier",
243
- "X-Fern-SDK-Version": "v6.2.1",
243
+ "X-Fern-SDK-Version": "v6.2.2",
244
244
  "X-Fern-Runtime": core.RUNTIME.type,
245
245
  "X-Fern-Runtime-Version": core.RUNTIME.version,
246
246
  },
@@ -306,7 +306,7 @@ class Audiences {
306
306
  Authorization: yield this._getAuthorizationHeader(),
307
307
  "X-Fern-Language": "JavaScript",
308
308
  "X-Fern-SDK-Name": "@trycourier/courier",
309
- "X-Fern-SDK-Version": "v6.2.1",
309
+ "X-Fern-SDK-Version": "v6.2.2",
310
310
  "X-Fern-Runtime": core.RUNTIME.type,
311
311
  "X-Fern-Runtime-Version": core.RUNTIME.version,
312
312
  },
@@ -73,7 +73,7 @@ class AuditEvents {
73
73
  Authorization: yield this._getAuthorizationHeader(),
74
74
  "X-Fern-Language": "JavaScript",
75
75
  "X-Fern-SDK-Name": "@trycourier/courier",
76
- "X-Fern-SDK-Version": "v6.2.1",
76
+ "X-Fern-SDK-Version": "v6.2.2",
77
77
  "X-Fern-Runtime": core.RUNTIME.type,
78
78
  "X-Fern-Runtime-Version": core.RUNTIME.version,
79
79
  },
@@ -125,7 +125,7 @@ class AuditEvents {
125
125
  Authorization: yield this._getAuthorizationHeader(),
126
126
  "X-Fern-Language": "JavaScript",
127
127
  "X-Fern-SDK-Name": "@trycourier/courier",
128
- "X-Fern-SDK-Version": "v6.2.1",
128
+ "X-Fern-SDK-Version": "v6.2.2",
129
129
  "X-Fern-Runtime": core.RUNTIME.type,
130
130
  "X-Fern-Runtime-Version": core.RUNTIME.version,
131
131
  },
@@ -69,7 +69,7 @@ class AuthTokens {
69
69
  Authorization: yield this._getAuthorizationHeader(),
70
70
  "X-Fern-Language": "JavaScript",
71
71
  "X-Fern-SDK-Name": "@trycourier/courier",
72
- "X-Fern-SDK-Version": "v6.2.1",
72
+ "X-Fern-SDK-Version": "v6.2.2",
73
73
  "X-Fern-Runtime": core.RUNTIME.type,
74
74
  "X-Fern-Runtime-Version": core.RUNTIME.version,
75
75
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
@@ -79,7 +79,7 @@ class Automations {
79
79
  Authorization: yield this._getAuthorizationHeader(),
80
80
  "X-Fern-Language": "JavaScript",
81
81
  "X-Fern-SDK-Name": "@trycourier/courier",
82
- "X-Fern-SDK-Version": "v6.2.1",
82
+ "X-Fern-SDK-Version": "v6.2.2",
83
83
  "X-Fern-Runtime": core.RUNTIME.type,
84
84
  "X-Fern-Runtime-Version": core.RUNTIME.version,
85
85
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
@@ -151,7 +151,7 @@ class Automations {
151
151
  Authorization: yield this._getAuthorizationHeader(),
152
152
  "X-Fern-Language": "JavaScript",
153
153
  "X-Fern-SDK-Name": "@trycourier/courier",
154
- "X-Fern-SDK-Version": "v6.2.1",
154
+ "X-Fern-SDK-Version": "v6.2.2",
155
155
  "X-Fern-Runtime": core.RUNTIME.type,
156
156
  "X-Fern-Runtime-Version": core.RUNTIME.version,
157
157
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
@@ -74,7 +74,7 @@ class Brands {
74
74
  Authorization: yield this._getAuthorizationHeader(),
75
75
  "X-Fern-Language": "JavaScript",
76
76
  "X-Fern-SDK-Name": "@trycourier/courier",
77
- "X-Fern-SDK-Version": "v6.2.1",
77
+ "X-Fern-SDK-Version": "v6.2.2",
78
78
  "X-Fern-Runtime": core.RUNTIME.type,
79
79
  "X-Fern-Runtime-Version": core.RUNTIME.version,
80
80
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
@@ -137,7 +137,7 @@ class Brands {
137
137
  Authorization: yield this._getAuthorizationHeader(),
138
138
  "X-Fern-Language": "JavaScript",
139
139
  "X-Fern-SDK-Name": "@trycourier/courier",
140
- "X-Fern-SDK-Version": "v6.2.1",
140
+ "X-Fern-SDK-Version": "v6.2.2",
141
141
  "X-Fern-Runtime": core.RUNTIME.type,
142
142
  "X-Fern-Runtime-Version": core.RUNTIME.version,
143
143
  },
@@ -195,7 +195,7 @@ class Brands {
195
195
  Authorization: yield this._getAuthorizationHeader(),
196
196
  "X-Fern-Language": "JavaScript",
197
197
  "X-Fern-SDK-Name": "@trycourier/courier",
198
- "X-Fern-SDK-Version": "v6.2.1",
198
+ "X-Fern-SDK-Version": "v6.2.2",
199
199
  "X-Fern-Runtime": core.RUNTIME.type,
200
200
  "X-Fern-Runtime-Version": core.RUNTIME.version,
201
201
  },
@@ -249,7 +249,7 @@ class Brands {
249
249
  Authorization: yield this._getAuthorizationHeader(),
250
250
  "X-Fern-Language": "JavaScript",
251
251
  "X-Fern-SDK-Name": "@trycourier/courier",
252
- "X-Fern-SDK-Version": "v6.2.1",
252
+ "X-Fern-SDK-Version": "v6.2.2",
253
253
  "X-Fern-Runtime": core.RUNTIME.type,
254
254
  "X-Fern-Runtime-Version": core.RUNTIME.version,
255
255
  },
@@ -322,7 +322,7 @@ class Brands {
322
322
  Authorization: yield this._getAuthorizationHeader(),
323
323
  "X-Fern-Language": "JavaScript",
324
324
  "X-Fern-SDK-Name": "@trycourier/courier",
325
- "X-Fern-SDK-Version": "v6.2.1",
325
+ "X-Fern-SDK-Version": "v6.2.2",
326
326
  "X-Fern-Runtime": core.RUNTIME.type,
327
327
  "X-Fern-Runtime-Version": core.RUNTIME.version,
328
328
  },
@@ -86,7 +86,7 @@ class Bulk {
86
86
  Authorization: yield this._getAuthorizationHeader(),
87
87
  "X-Fern-Language": "JavaScript",
88
88
  "X-Fern-SDK-Name": "@trycourier/courier",
89
- "X-Fern-SDK-Version": "v6.2.1",
89
+ "X-Fern-SDK-Version": "v6.2.2",
90
90
  "X-Fern-Runtime": core.RUNTIME.type,
91
91
  "X-Fern-Runtime-Version": core.RUNTIME.version,
92
92
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
@@ -158,7 +158,7 @@ class Bulk {
158
158
  Authorization: yield this._getAuthorizationHeader(),
159
159
  "X-Fern-Language": "JavaScript",
160
160
  "X-Fern-SDK-Name": "@trycourier/courier",
161
- "X-Fern-SDK-Version": "v6.2.1",
161
+ "X-Fern-SDK-Version": "v6.2.2",
162
162
  "X-Fern-Runtime": core.RUNTIME.type,
163
163
  "X-Fern-Runtime-Version": core.RUNTIME.version,
164
164
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
@@ -214,7 +214,7 @@ class Bulk {
214
214
  Authorization: yield this._getAuthorizationHeader(),
215
215
  "X-Fern-Language": "JavaScript",
216
216
  "X-Fern-SDK-Name": "@trycourier/courier",
217
- "X-Fern-SDK-Version": "v6.2.1",
217
+ "X-Fern-SDK-Version": "v6.2.2",
218
218
  "X-Fern-Runtime": core.RUNTIME.type,
219
219
  "X-Fern-Runtime-Version": core.RUNTIME.version,
220
220
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
@@ -274,7 +274,7 @@ class Bulk {
274
274
  Authorization: yield this._getAuthorizationHeader(),
275
275
  "X-Fern-Language": "JavaScript",
276
276
  "X-Fern-SDK-Name": "@trycourier/courier",
277
- "X-Fern-SDK-Version": "v6.2.1",
277
+ "X-Fern-SDK-Version": "v6.2.2",
278
278
  "X-Fern-Runtime": core.RUNTIME.type,
279
279
  "X-Fern-Runtime-Version": core.RUNTIME.version,
280
280
  },
@@ -332,7 +332,7 @@ class Bulk {
332
332
  Authorization: yield this._getAuthorizationHeader(),
333
333
  "X-Fern-Language": "JavaScript",
334
334
  "X-Fern-SDK-Name": "@trycourier/courier",
335
- "X-Fern-SDK-Version": "v6.2.1",
335
+ "X-Fern-SDK-Version": "v6.2.2",
336
336
  "X-Fern-Runtime": core.RUNTIME.type,
337
337
  "X-Fern-Runtime-Version": core.RUNTIME.version,
338
338
  },
@@ -78,7 +78,7 @@ class Inbound {
78
78
  Authorization: yield this._getAuthorizationHeader(),
79
79
  "X-Fern-Language": "JavaScript",
80
80
  "X-Fern-SDK-Name": "@trycourier/courier",
81
- "X-Fern-SDK-Version": "v6.2.1",
81
+ "X-Fern-SDK-Version": "v6.2.2",
82
82
  "X-Fern-Runtime": core.RUNTIME.type,
83
83
  "X-Fern-Runtime-Version": core.RUNTIME.version,
84
84
  },
@@ -80,7 +80,7 @@ class Lists {
80
80
  Authorization: yield this._getAuthorizationHeader(),
81
81
  "X-Fern-Language": "JavaScript",
82
82
  "X-Fern-SDK-Name": "@trycourier/courier",
83
- "X-Fern-SDK-Version": "v6.2.1",
83
+ "X-Fern-SDK-Version": "v6.2.2",
84
84
  "X-Fern-Runtime": core.RUNTIME.type,
85
85
  "X-Fern-Runtime-Version": core.RUNTIME.version,
86
86
  },
@@ -139,7 +139,7 @@ class Lists {
139
139
  Authorization: yield this._getAuthorizationHeader(),
140
140
  "X-Fern-Language": "JavaScript",
141
141
  "X-Fern-SDK-Name": "@trycourier/courier",
142
- "X-Fern-SDK-Version": "v6.2.1",
142
+ "X-Fern-SDK-Version": "v6.2.2",
143
143
  "X-Fern-Runtime": core.RUNTIME.type,
144
144
  "X-Fern-Runtime-Version": core.RUNTIME.version,
145
145
  },
@@ -224,7 +224,7 @@ class Lists {
224
224
  Authorization: yield this._getAuthorizationHeader(),
225
225
  "X-Fern-Language": "JavaScript",
226
226
  "X-Fern-SDK-Name": "@trycourier/courier",
227
- "X-Fern-SDK-Version": "v6.2.1",
227
+ "X-Fern-SDK-Version": "v6.2.2",
228
228
  "X-Fern-Runtime": core.RUNTIME.type,
229
229
  "X-Fern-Runtime-Version": core.RUNTIME.version,
230
230
  },
@@ -276,7 +276,7 @@ class Lists {
276
276
  Authorization: yield this._getAuthorizationHeader(),
277
277
  "X-Fern-Language": "JavaScript",
278
278
  "X-Fern-SDK-Name": "@trycourier/courier",
279
- "X-Fern-SDK-Version": "v6.2.1",
279
+ "X-Fern-SDK-Version": "v6.2.2",
280
280
  "X-Fern-Runtime": core.RUNTIME.type,
281
281
  "X-Fern-Runtime-Version": core.RUNTIME.version,
282
282
  },
@@ -327,7 +327,7 @@ class Lists {
327
327
  Authorization: yield this._getAuthorizationHeader(),
328
328
  "X-Fern-Language": "JavaScript",
329
329
  "X-Fern-SDK-Name": "@trycourier/courier",
330
- "X-Fern-SDK-Version": "v6.2.1",
330
+ "X-Fern-SDK-Version": "v6.2.2",
331
331
  "X-Fern-Runtime": core.RUNTIME.type,
332
332
  "X-Fern-Runtime-Version": core.RUNTIME.version,
333
333
  },
@@ -388,7 +388,7 @@ class Lists {
388
388
  Authorization: yield this._getAuthorizationHeader(),
389
389
  "X-Fern-Language": "JavaScript",
390
390
  "X-Fern-SDK-Name": "@trycourier/courier",
391
- "X-Fern-SDK-Version": "v6.2.1",
391
+ "X-Fern-SDK-Version": "v6.2.2",
392
392
  "X-Fern-Runtime": core.RUNTIME.type,
393
393
  "X-Fern-Runtime-Version": core.RUNTIME.version,
394
394
  },
@@ -478,7 +478,7 @@ class Lists {
478
478
  Authorization: yield this._getAuthorizationHeader(),
479
479
  "X-Fern-Language": "JavaScript",
480
480
  "X-Fern-SDK-Name": "@trycourier/courier",
481
- "X-Fern-SDK-Version": "v6.2.1",
481
+ "X-Fern-SDK-Version": "v6.2.2",
482
482
  "X-Fern-Runtime": core.RUNTIME.type,
483
483
  "X-Fern-Runtime-Version": core.RUNTIME.version,
484
484
  },
@@ -568,7 +568,7 @@ class Lists {
568
568
  Authorization: yield this._getAuthorizationHeader(),
569
569
  "X-Fern-Language": "JavaScript",
570
570
  "X-Fern-SDK-Name": "@trycourier/courier",
571
- "X-Fern-SDK-Version": "v6.2.1",
571
+ "X-Fern-SDK-Version": "v6.2.2",
572
572
  "X-Fern-Runtime": core.RUNTIME.type,
573
573
  "X-Fern-Runtime-Version": core.RUNTIME.version,
574
574
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
@@ -656,7 +656,7 @@ class Lists {
656
656
  Authorization: yield this._getAuthorizationHeader(),
657
657
  "X-Fern-Language": "JavaScript",
658
658
  "X-Fern-SDK-Name": "@trycourier/courier",
659
- "X-Fern-SDK-Version": "v6.2.1",
659
+ "X-Fern-SDK-Version": "v6.2.2",
660
660
  "X-Fern-Runtime": core.RUNTIME.type,
661
661
  "X-Fern-Runtime-Version": core.RUNTIME.version,
662
662
  },
@@ -711,7 +711,7 @@ class Lists {
711
711
  Authorization: yield this._getAuthorizationHeader(),
712
712
  "X-Fern-Language": "JavaScript",
713
713
  "X-Fern-SDK-Name": "@trycourier/courier",
714
- "X-Fern-SDK-Version": "v6.2.1",
714
+ "X-Fern-SDK-Version": "v6.2.2",
715
715
  "X-Fern-Runtime": core.RUNTIME.type,
716
716
  "X-Fern-Runtime-Version": core.RUNTIME.version,
717
717
  },
@@ -141,7 +141,7 @@ class Messages {
141
141
  Authorization: yield this._getAuthorizationHeader(),
142
142
  "X-Fern-Language": "JavaScript",
143
143
  "X-Fern-SDK-Name": "@trycourier/courier",
144
- "X-Fern-SDK-Version": "v6.2.1",
144
+ "X-Fern-SDK-Version": "v6.2.2",
145
145
  "X-Fern-Runtime": core.RUNTIME.type,
146
146
  "X-Fern-Runtime-Version": core.RUNTIME.version,
147
147
  },
@@ -196,7 +196,7 @@ class Messages {
196
196
  Authorization: yield this._getAuthorizationHeader(),
197
197
  "X-Fern-Language": "JavaScript",
198
198
  "X-Fern-SDK-Name": "@trycourier/courier",
199
- "X-Fern-SDK-Version": "v6.2.1",
199
+ "X-Fern-SDK-Version": "v6.2.2",
200
200
  "X-Fern-Runtime": core.RUNTIME.type,
201
201
  "X-Fern-Runtime-Version": core.RUNTIME.version,
202
202
  },
@@ -254,7 +254,7 @@ class Messages {
254
254
  Authorization: yield this._getAuthorizationHeader(),
255
255
  "X-Fern-Language": "JavaScript",
256
256
  "X-Fern-SDK-Name": "@trycourier/courier",
257
- "X-Fern-SDK-Version": "v6.2.1",
257
+ "X-Fern-SDK-Version": "v6.2.2",
258
258
  "X-Fern-Runtime": core.RUNTIME.type,
259
259
  "X-Fern-Runtime-Version": core.RUNTIME.version,
260
260
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
@@ -318,7 +318,7 @@ class Messages {
318
318
  Authorization: yield this._getAuthorizationHeader(),
319
319
  "X-Fern-Language": "JavaScript",
320
320
  "X-Fern-SDK-Name": "@trycourier/courier",
321
- "X-Fern-SDK-Version": "v6.2.1",
321
+ "X-Fern-SDK-Version": "v6.2.2",
322
322
  "X-Fern-Runtime": core.RUNTIME.type,
323
323
  "X-Fern-Runtime-Version": core.RUNTIME.version,
324
324
  },
@@ -378,7 +378,7 @@ class Messages {
378
378
  Authorization: yield this._getAuthorizationHeader(),
379
379
  "X-Fern-Language": "JavaScript",
380
380
  "X-Fern-SDK-Name": "@trycourier/courier",
381
- "X-Fern-SDK-Version": "v6.2.1",
381
+ "X-Fern-SDK-Version": "v6.2.2",
382
382
  "X-Fern-Runtime": core.RUNTIME.type,
383
383
  "X-Fern-Runtime-Version": core.RUNTIME.version,
384
384
  },
@@ -434,7 +434,7 @@ class Messages {
434
434
  Authorization: yield this._getAuthorizationHeader(),
435
435
  "X-Fern-Language": "JavaScript",
436
436
  "X-Fern-SDK-Name": "@trycourier/courier",
437
- "X-Fern-SDK-Version": "v6.2.1",
437
+ "X-Fern-SDK-Version": "v6.2.2",
438
438
  "X-Fern-Runtime": core.RUNTIME.type,
439
439
  "X-Fern-Runtime-Version": core.RUNTIME.version,
440
440
  },
@@ -24,7 +24,8 @@ export declare class Notifications {
24
24
  *
25
25
  * @example
26
26
  * await courier.notifications.list({
27
- * cursor: "string"
27
+ * cursor: "string",
28
+ * notes: true
28
29
  * })
29
30
  */
30
31
  list(request?: Courier.NotificationListParams, requestOptions?: Notifications.RequestOptions): Promise<Courier.NotificationListResponse>;
@@ -53,17 +53,21 @@ class Notifications {
53
53
  *
54
54
  * @example
55
55
  * await courier.notifications.list({
56
- * cursor: "string"
56
+ * cursor: "string",
57
+ * notes: true
57
58
  * })
58
59
  */
59
60
  list(request = {}, requestOptions) {
60
61
  var _a, _b;
61
62
  return __awaiter(this, void 0, void 0, function* () {
62
- const { cursor } = request;
63
+ const { cursor, notes } = request;
63
64
  const _queryParams = {};
64
65
  if (cursor != null) {
65
66
  _queryParams["cursor"] = cursor;
66
67
  }
68
+ if (notes != null) {
69
+ _queryParams["notes"] = notes.toString();
70
+ }
67
71
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
68
72
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CourierEnvironment.Production, "/notifications"),
69
73
  method: "GET",
@@ -71,7 +75,7 @@ class Notifications {
71
75
  Authorization: yield this._getAuthorizationHeader(),
72
76
  "X-Fern-Language": "JavaScript",
73
77
  "X-Fern-SDK-Name": "@trycourier/courier",
74
- "X-Fern-SDK-Version": "v6.2.1",
78
+ "X-Fern-SDK-Version": "v6.2.2",
75
79
  "X-Fern-Runtime": core.RUNTIME.type,
76
80
  "X-Fern-Runtime-Version": core.RUNTIME.version,
77
81
  },
@@ -121,7 +125,7 @@ class Notifications {
121
125
  Authorization: yield this._getAuthorizationHeader(),
122
126
  "X-Fern-Language": "JavaScript",
123
127
  "X-Fern-SDK-Name": "@trycourier/courier",
124
- "X-Fern-SDK-Version": "v6.2.1",
128
+ "X-Fern-SDK-Version": "v6.2.2",
125
129
  "X-Fern-Runtime": core.RUNTIME.type,
126
130
  "X-Fern-Runtime-Version": core.RUNTIME.version,
127
131
  },
@@ -170,7 +174,7 @@ class Notifications {
170
174
  Authorization: yield this._getAuthorizationHeader(),
171
175
  "X-Fern-Language": "JavaScript",
172
176
  "X-Fern-SDK-Name": "@trycourier/courier",
173
- "X-Fern-SDK-Version": "v6.2.1",
177
+ "X-Fern-SDK-Version": "v6.2.2",
174
178
  "X-Fern-Runtime": core.RUNTIME.type,
175
179
  "X-Fern-Runtime-Version": core.RUNTIME.version,
176
180
  },
@@ -220,7 +224,7 @@ class Notifications {
220
224
  Authorization: yield this._getAuthorizationHeader(),
221
225
  "X-Fern-Language": "JavaScript",
222
226
  "X-Fern-SDK-Name": "@trycourier/courier",
223
- "X-Fern-SDK-Version": "v6.2.1",
227
+ "X-Fern-SDK-Version": "v6.2.2",
224
228
  "X-Fern-Runtime": core.RUNTIME.type,
225
229
  "X-Fern-Runtime-Version": core.RUNTIME.version,
226
230
  },
@@ -277,7 +281,7 @@ class Notifications {
277
281
  Authorization: yield this._getAuthorizationHeader(),
278
282
  "X-Fern-Language": "JavaScript",
279
283
  "X-Fern-SDK-Name": "@trycourier/courier",
280
- "X-Fern-SDK-Version": "v6.2.1",
284
+ "X-Fern-SDK-Version": "v6.2.2",
281
285
  "X-Fern-Runtime": core.RUNTIME.type,
282
286
  "X-Fern-Runtime-Version": core.RUNTIME.version,
283
287
  },
@@ -328,7 +332,7 @@ class Notifications {
328
332
  Authorization: yield this._getAuthorizationHeader(),
329
333
  "X-Fern-Language": "JavaScript",
330
334
  "X-Fern-SDK-Name": "@trycourier/courier",
331
- "X-Fern-SDK-Version": "v6.2.1",
335
+ "X-Fern-SDK-Version": "v6.2.2",
332
336
  "X-Fern-Runtime": core.RUNTIME.type,
333
337
  "X-Fern-Runtime-Version": core.RUNTIME.version,
334
338
  },
@@ -4,9 +4,14 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * cursor: "string"
7
+ * cursor: "string",
8
+ * notes: true
8
9
  * }
9
10
  */
10
11
  export interface NotificationListParams {
11
12
  cursor?: string;
13
+ /**
14
+ * Retrieve the notes from the Notification template settings.
15
+ */
16
+ notes?: boolean;
12
17
  }
@@ -10,4 +10,5 @@ export interface Notification {
10
10
  tags?: Courier.NotificationTag;
11
11
  title?: string;
12
12
  topic_id: string;
13
+ note: string;
13
14
  }
@@ -69,7 +69,7 @@ class Profiles {
69
69
  Authorization: yield this._getAuthorizationHeader(),
70
70
  "X-Fern-Language": "JavaScript",
71
71
  "X-Fern-SDK-Name": "@trycourier/courier",
72
- "X-Fern-SDK-Version": "v6.2.1",
72
+ "X-Fern-SDK-Version": "v6.2.2",
73
73
  "X-Fern-Runtime": core.RUNTIME.type,
74
74
  "X-Fern-Runtime-Version": core.RUNTIME.version,
75
75
  },
@@ -134,7 +134,7 @@ class Profiles {
134
134
  Authorization: yield this._getAuthorizationHeader(),
135
135
  "X-Fern-Language": "JavaScript",
136
136
  "X-Fern-SDK-Name": "@trycourier/courier",
137
- "X-Fern-SDK-Version": "v6.2.1",
137
+ "X-Fern-SDK-Version": "v6.2.2",
138
138
  "X-Fern-Runtime": core.RUNTIME.type,
139
139
  "X-Fern-Runtime-Version": core.RUNTIME.version,
140
140
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
@@ -205,7 +205,7 @@ class Profiles {
205
205
  Authorization: yield this._getAuthorizationHeader(),
206
206
  "X-Fern-Language": "JavaScript",
207
207
  "X-Fern-SDK-Name": "@trycourier/courier",
208
- "X-Fern-SDK-Version": "v6.2.1",
208
+ "X-Fern-SDK-Version": "v6.2.2",
209
209
  "X-Fern-Runtime": core.RUNTIME.type,
210
210
  "X-Fern-Runtime-Version": core.RUNTIME.version,
211
211
  },
@@ -264,7 +264,7 @@ class Profiles {
264
264
  Authorization: yield this._getAuthorizationHeader(),
265
265
  "X-Fern-Language": "JavaScript",
266
266
  "X-Fern-SDK-Name": "@trycourier/courier",
267
- "X-Fern-SDK-Version": "v6.2.1",
267
+ "X-Fern-SDK-Version": "v6.2.2",
268
268
  "X-Fern-Runtime": core.RUNTIME.type,
269
269
  "X-Fern-Runtime-Version": core.RUNTIME.version,
270
270
  },
@@ -330,7 +330,7 @@ class Profiles {
330
330
  Authorization: yield this._getAuthorizationHeader(),
331
331
  "X-Fern-Language": "JavaScript",
332
332
  "X-Fern-SDK-Name": "@trycourier/courier",
333
- "X-Fern-SDK-Version": "v6.2.1",
333
+ "X-Fern-SDK-Version": "v6.2.2",
334
334
  "X-Fern-Runtime": core.RUNTIME.type,
335
335
  "X-Fern-Runtime-Version": core.RUNTIME.version,
336
336
  },
@@ -392,7 +392,7 @@ class Profiles {
392
392
  Authorization: yield this._getAuthorizationHeader(),
393
393
  "X-Fern-Language": "JavaScript",
394
394
  "X-Fern-SDK-Name": "@trycourier/courier",
395
- "X-Fern-SDK-Version": "v6.2.1",
395
+ "X-Fern-SDK-Version": "v6.2.2",
396
396
  "X-Fern-Runtime": core.RUNTIME.type,
397
397
  "X-Fern-Runtime-Version": core.RUNTIME.version,
398
398
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
@@ -453,7 +453,7 @@ class Profiles {
453
453
  Authorization: yield this._getAuthorizationHeader(),
454
454
  "X-Fern-Language": "JavaScript",
455
455
  "X-Fern-SDK-Name": "@trycourier/courier",
456
- "X-Fern-SDK-Version": "v6.2.1",
456
+ "X-Fern-SDK-Version": "v6.2.2",
457
457
  "X-Fern-Runtime": core.RUNTIME.type,
458
458
  "X-Fern-Runtime-Version": core.RUNTIME.version,
459
459
  },
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface Pagerduty {
5
+ routing_key?: string;
6
+ event_action?: string;
7
+ severity?: string;
8
+ source?: string;
9
+ }
@@ -31,7 +31,7 @@ export interface UserProfile {
31
31
  discord: Courier.Discord;
32
32
  expo: Courier.Expo;
33
33
  facebookPSID: string;
34
- firebaseToken: string;
34
+ firebaseToken: Courier.UserProfileFirebaseToken;
35
35
  intercom: Courier.Intercom;
36
36
  slack: Courier.Slack;
37
37
  ms_teams: Courier.MsTeams;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type UserProfileFirebaseToken = string | string[];
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type WebhookAuthMode = "none" | "basic" | "bearer";
5
+ export declare const WebhookAuthMode: {
6
+ readonly None: "none";
7
+ readonly Basic: "basic";
8
+ readonly Bearer: "bearer";
9
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.WebhookAuthMode = void 0;
7
+ exports.WebhookAuthMode = {
8
+ None: "none",
9
+ Basic: "basic",
10
+ Bearer: "bearer",
11
+ };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Courier from "../../../index";
5
+ export interface WebhookAuthentication {
6
+ /** The authentication mode to use. Defaults to 'none' if not specified. */
7
+ mode: Courier.WebhookAuthMode;
8
+ /** Username for basic authentication. */
9
+ username?: string;
10
+ /** Password for basic authentication. */
11
+ password?: string;
12
+ /** Token for bearer authentication. */
13
+ token?: string;
14
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type WebhookMethod = "POST" | "PUT";
5
+ export declare const WebhookMethod: {
6
+ readonly Post: "POST";
7
+ readonly Put: "PUT";
8
+ };