@trycourier/courier 6.1.3 → 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 (143) hide show
  1. package/Client.d.ts +4 -0
  2. package/Client.js +23 -17
  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.d.ts +43 -0
  11. package/api/resources/inbound/client/Client.js +134 -0
  12. package/api/resources/inbound/client/index.d.ts +1 -0
  13. package/api/resources/inbound/client/index.js +2 -0
  14. package/api/resources/inbound/index.d.ts +2 -0
  15. package/api/resources/inbound/index.js +18 -0
  16. package/api/resources/inbound/types/InboundTrackEvent.d.ts +13 -0
  17. package/api/resources/inbound/types/TrackAcceptedResponse.d.ts +7 -0
  18. package/api/resources/inbound/types/index.d.ts +2 -0
  19. package/api/resources/inbound/types/index.js +18 -0
  20. package/api/resources/index.d.ts +2 -0
  21. package/api/resources/index.js +3 -1
  22. package/api/resources/lists/client/Client.js +10 -10
  23. package/api/resources/messages/client/Client.js +6 -6
  24. package/api/resources/notifications/client/Client.d.ts +2 -61
  25. package/api/resources/notifications/client/Client.js +12 -152
  26. package/api/resources/notifications/client/requests/NotificationListParams.d.ts +6 -1
  27. package/api/resources/notifications/client/requests/index.d.ts +0 -2
  28. package/api/resources/notifications/types/Notification.d.ts +1 -0
  29. package/api/resources/profiles/client/Client.js +7 -7
  30. package/api/resources/profiles/types/Pagerduty.d.ts +9 -0
  31. package/api/resources/profiles/types/UserProfile.d.ts +1 -1
  32. package/api/resources/profiles/types/UserProfileFirebaseToken.d.ts +4 -0
  33. package/api/resources/profiles/types/WebhookAuthMode.d.ts +9 -0
  34. package/api/resources/profiles/types/WebhookAuthMode.js +11 -0
  35. package/api/resources/profiles/types/WebhookAuthentication.d.ts +14 -0
  36. package/api/resources/profiles/types/WebhookMethod.d.ts +8 -0
  37. package/api/resources/profiles/types/WebhookMethod.js +10 -0
  38. package/api/resources/profiles/types/WebhookProfile.d.ts +16 -0
  39. package/api/resources/profiles/types/WebhookProfileType.d.ts +8 -0
  40. package/api/resources/profiles/types/WebhookProfileType.js +10 -0
  41. package/api/resources/profiles/types/index.d.ts +7 -0
  42. package/api/resources/profiles/types/index.js +7 -0
  43. package/api/resources/send/types/BaseMessage.d.ts +1 -0
  44. package/api/resources/send/types/Channel.d.ts +1 -1
  45. package/api/resources/send/types/MessagePreferences.d.ts +7 -0
  46. package/api/resources/send/types/MessagePreferences.js +5 -0
  47. package/api/resources/send/types/PagerdutyRecipient.d.ts +7 -0
  48. package/api/resources/send/types/PagerdutyRecipient.js +5 -0
  49. package/api/resources/send/types/Recipient.d.ts +1 -1
  50. package/api/resources/send/types/WebhookRecipient.d.ts +7 -0
  51. package/api/resources/send/types/WebhookRecipient.js +5 -0
  52. package/api/resources/send/types/index.d.ts +3 -2
  53. package/api/resources/send/types/index.js +3 -2
  54. package/api/resources/templates/client/Client.js +1 -1
  55. package/api/resources/tenants/client/Client.js +7 -7
  56. package/api/resources/translations/client/Client.js +2 -2
  57. package/api/resources/users/resources/preferences/client/Client.js +3 -3
  58. package/api/resources/users/resources/preferences/types/UserPreferencesListResponse.d.ts +1 -0
  59. package/api/resources/users/resources/tenants/client/Client.js +5 -5
  60. package/api/resources/users/resources/tokens/client/Client.js +6 -6
  61. package/dist/Client.d.ts +4 -0
  62. package/dist/Client.js +23 -17
  63. package/dist/api/client/requests/SendMessageRequest.d.ts +1 -0
  64. package/dist/api/resources/audiences/client/Client.js +5 -5
  65. package/dist/api/resources/auditEvents/client/Client.js +2 -2
  66. package/dist/api/resources/authTokens/client/Client.js +1 -1
  67. package/dist/api/resources/automations/client/Client.js +2 -2
  68. package/dist/api/resources/brands/client/Client.js +5 -5
  69. package/dist/api/resources/bulk/client/Client.js +5 -5
  70. package/dist/api/resources/inbound/client/Client.d.ts +43 -0
  71. package/dist/api/resources/inbound/client/Client.js +134 -0
  72. package/dist/api/resources/inbound/client/index.d.ts +1 -0
  73. package/dist/api/resources/inbound/client/index.js +2 -0
  74. package/dist/api/resources/inbound/index.d.ts +2 -0
  75. package/dist/api/resources/inbound/index.js +18 -0
  76. package/dist/api/resources/inbound/types/InboundTrackEvent.d.ts +13 -0
  77. package/dist/api/resources/inbound/types/InboundTrackEvent.js +5 -0
  78. package/dist/api/resources/inbound/types/TrackAcceptedResponse.d.ts +7 -0
  79. package/dist/api/resources/inbound/types/TrackAcceptedResponse.js +5 -0
  80. package/dist/api/resources/inbound/types/index.d.ts +2 -0
  81. package/dist/api/resources/inbound/types/index.js +18 -0
  82. package/dist/api/resources/index.d.ts +2 -0
  83. package/dist/api/resources/index.js +3 -1
  84. package/dist/api/resources/lists/client/Client.js +10 -10
  85. package/dist/api/resources/messages/client/Client.js +6 -6
  86. package/dist/api/resources/notifications/client/Client.d.ts +2 -61
  87. package/dist/api/resources/notifications/client/Client.js +12 -152
  88. package/dist/api/resources/notifications/client/requests/NotificationListParams.d.ts +6 -1
  89. package/dist/api/resources/notifications/client/requests/index.d.ts +0 -2
  90. package/dist/api/resources/notifications/types/Notification.d.ts +1 -0
  91. package/dist/api/resources/profiles/client/Client.js +7 -7
  92. package/dist/api/resources/profiles/types/Pagerduty.d.ts +9 -0
  93. package/dist/api/resources/profiles/types/Pagerduty.js +5 -0
  94. package/dist/api/resources/profiles/types/UserProfile.d.ts +1 -1
  95. package/dist/api/resources/profiles/types/UserProfileFirebaseToken.d.ts +4 -0
  96. package/dist/api/resources/profiles/types/UserProfileFirebaseToken.js +5 -0
  97. package/dist/api/resources/profiles/types/WebhookAuthMode.d.ts +9 -0
  98. package/dist/api/resources/profiles/types/WebhookAuthMode.js +11 -0
  99. package/dist/api/resources/profiles/types/WebhookAuthentication.d.ts +14 -0
  100. package/dist/api/resources/profiles/types/WebhookAuthentication.js +5 -0
  101. package/dist/api/resources/profiles/types/WebhookMethod.d.ts +8 -0
  102. package/dist/api/resources/profiles/types/WebhookMethod.js +10 -0
  103. package/dist/api/resources/profiles/types/WebhookProfile.d.ts +16 -0
  104. package/dist/api/resources/profiles/types/WebhookProfile.js +5 -0
  105. package/dist/api/resources/profiles/types/WebhookProfileType.d.ts +8 -0
  106. package/dist/api/resources/profiles/types/WebhookProfileType.js +10 -0
  107. package/dist/api/resources/profiles/types/index.d.ts +7 -0
  108. package/dist/api/resources/profiles/types/index.js +7 -0
  109. package/dist/api/resources/send/types/BaseMessage.d.ts +1 -0
  110. package/dist/api/resources/send/types/Channel.d.ts +1 -1
  111. package/dist/api/resources/send/types/MessagePreferences.d.ts +7 -0
  112. package/dist/api/resources/send/types/MessagePreferences.js +5 -0
  113. package/dist/api/resources/send/types/PagerdutyRecipient.d.ts +7 -0
  114. package/dist/api/resources/send/types/PagerdutyRecipient.js +5 -0
  115. package/dist/api/resources/send/types/Recipient.d.ts +1 -1
  116. package/dist/api/resources/send/types/WebhookRecipient.d.ts +7 -0
  117. package/dist/api/resources/send/types/WebhookRecipient.js +5 -0
  118. package/dist/api/resources/send/types/index.d.ts +3 -2
  119. package/dist/api/resources/send/types/index.js +3 -2
  120. package/dist/api/resources/templates/client/Client.js +1 -1
  121. package/dist/api/resources/tenants/client/Client.js +7 -7
  122. package/dist/api/resources/translations/client/Client.js +2 -2
  123. package/dist/api/resources/users/resources/preferences/client/Client.js +3 -3
  124. package/dist/api/resources/users/resources/preferences/types/UserPreferencesListResponse.d.ts +1 -0
  125. package/dist/api/resources/users/resources/tenants/client/Client.js +5 -5
  126. package/dist/api/resources/users/resources/tokens/client/Client.js +6 -6
  127. package/package.json +1 -1
  128. package/api/resources/notifications/client/requests/NotificationDraftUpdateVariationsParams.d.ts +0 -33
  129. package/api/resources/notifications/client/requests/NotificationUpdateVariationsParams.d.ts +0 -33
  130. package/api/resources/send/types/MessageChannelEmailOverride.d.ts +0 -16
  131. package/api/resources/send/types/Override.d.ts +0 -8
  132. package/api/resources/send/types/Override.js +0 -10
  133. package/dist/api/resources/notifications/client/requests/NotificationDraftUpdateVariationsParams.d.ts +0 -33
  134. package/dist/api/resources/notifications/client/requests/NotificationUpdateVariationsParams.d.ts +0 -33
  135. package/dist/api/resources/send/types/MessageChannelEmailOverride.d.ts +0 -16
  136. package/dist/api/resources/send/types/Override.d.ts +0 -8
  137. package/dist/api/resources/send/types/Override.js +0 -10
  138. /package/api/resources/{notifications/client/requests/NotificationDraftUpdateVariationsParams.js → inbound/types/InboundTrackEvent.js} +0 -0
  139. /package/api/resources/{notifications/client/requests/NotificationUpdateVariationsParams.js → inbound/types/TrackAcceptedResponse.js} +0 -0
  140. /package/api/resources/{send/types/MessageChannelEmailOverride.js → profiles/types/Pagerduty.js} +0 -0
  141. /package/{dist/api/resources/notifications/client/requests/NotificationDraftUpdateVariationsParams.js → api/resources/profiles/types/UserProfileFirebaseToken.js} +0 -0
  142. /package/{dist/api/resources/notifications/client/requests/NotificationUpdateVariationsParams.js → api/resources/profiles/types/WebhookAuthentication.js} +0 -0
  143. /package/{dist/api/resources/send/types/MessageChannelEmailOverride.js → api/resources/profiles/types/WebhookProfile.js} +0 -0
@@ -0,0 +1,10 @@
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.WebhookProfileType = void 0;
7
+ exports.WebhookProfileType = {
8
+ Limited: "limited",
9
+ Expanded: "expanded",
10
+ };
@@ -1,5 +1,6 @@
1
1
  export * from "./Address";
2
2
  export * from "./UserProfile";
3
+ export * from "./UserProfileFirebaseToken";
3
4
  export * from "./AirshipProfile";
4
5
  export * from "./AirshipProfileAudience";
5
6
  export * from "./DeviceType";
@@ -14,6 +15,7 @@ export * from "./MultipleTokens";
14
15
  export * from "./Intercom";
15
16
  export * from "./IntercomRecipient";
16
17
  export * from "./Slack";
18
+ export * from "./Pagerduty";
17
19
  export * from "./SlackBaseProperties";
18
20
  export * from "./SendToSlackChannel";
19
21
  export * from "./SendToSlackEmail";
@@ -35,3 +37,8 @@ export * from "./SubscribeToListsResponse";
35
37
  export * from "./DeleteListSubscriptionResponse";
36
38
  export * from "./GetListSubscriptionsList";
37
39
  export * from "./GetListSubscriptionsResponse";
40
+ export * from "./WebhookProfile";
41
+ export * from "./WebhookMethod";
42
+ export * from "./WebhookAuthentication";
43
+ export * from "./WebhookAuthMode";
44
+ export * from "./WebhookProfileType";
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Address"), exports);
18
18
  __exportStar(require("./UserProfile"), exports);
19
+ __exportStar(require("./UserProfileFirebaseToken"), exports);
19
20
  __exportStar(require("./AirshipProfile"), exports);
20
21
  __exportStar(require("./AirshipProfileAudience"), exports);
21
22
  __exportStar(require("./DeviceType"), exports);
@@ -30,6 +31,7 @@ __exportStar(require("./MultipleTokens"), exports);
30
31
  __exportStar(require("./Intercom"), exports);
31
32
  __exportStar(require("./IntercomRecipient"), exports);
32
33
  __exportStar(require("./Slack"), exports);
34
+ __exportStar(require("./Pagerduty"), exports);
33
35
  __exportStar(require("./SlackBaseProperties"), exports);
34
36
  __exportStar(require("./SendToSlackChannel"), exports);
35
37
  __exportStar(require("./SendToSlackEmail"), exports);
@@ -51,3 +53,8 @@ __exportStar(require("./SubscribeToListsResponse"), exports);
51
53
  __exportStar(require("./DeleteListSubscriptionResponse"), exports);
52
54
  __exportStar(require("./GetListSubscriptionsList"), exports);
53
55
  __exportStar(require("./GetListSubscriptionsResponse"), exports);
56
+ __exportStar(require("./WebhookProfile"), exports);
57
+ __exportStar(require("./WebhookMethod"), exports);
58
+ __exportStar(require("./WebhookAuthentication"), exports);
59
+ __exportStar(require("./WebhookAuthMode"), exports);
60
+ __exportStar(require("./WebhookProfileType"), exports);
@@ -15,6 +15,7 @@ export interface BaseMessage {
15
15
  context?: Courier.MessageContext;
16
16
  /** Metadata such as utm tracking attached with the notification through this channel. */
17
17
  metadata?: Courier.MessageMetadata;
18
+ preferences?: Courier.MessagePreferences;
18
19
  /** An object whose keys are valid provider identifiers which map to an object. */
19
20
  providers?: Courier.MessageProviders;
20
21
  routing?: Courier.Routing;
@@ -27,6 +27,6 @@ export interface Channel {
27
27
  if?: string;
28
28
  timeouts?: Courier.Timeouts;
29
29
  /** Channel specific overrides. */
30
- override?: Courier.Override;
30
+ override?: Record<string, any>;
31
31
  metadata?: Courier.ChannelMetadata;
32
32
  }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface MessagePreferences {
5
+ /** The ID of the subscription topic you want to apply to the message. If this is a templated message, it will override the subscription topic if already associated */
6
+ subscription_topic_id: string;
7
+ }
@@ -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,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Courier from "../../../index";
5
+ export interface PagerdutyRecipient {
6
+ pagerduty: Courier.Pagerduty;
7
+ }
@@ -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 });
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Courier from "../../../index";
5
- export declare type Recipient = Courier.AudienceRecipient | Courier.ListRecipient | Courier.ListPatternRecipient | Courier.UserRecipient | Courier.SlackRecipient | Courier.MsTeamsRecipient | Courier.RecipientData;
5
+ export declare type Recipient = Courier.AudienceRecipient | Courier.ListRecipient | Courier.ListPatternRecipient | Courier.UserRecipient | Courier.SlackRecipient | Courier.MsTeamsRecipient | Courier.RecipientData | Courier.PagerdutyRecipient | Courier.WebhookRecipient;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Courier from "../../../index";
5
+ export interface WebhookRecipient {
6
+ webhook: Courier.WebhookProfile;
7
+ }
@@ -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 });
@@ -5,6 +5,8 @@ export * from "./BaseMessageSendTo";
5
5
  export * from "./BaseMessage";
6
6
  export * from "./MessageRecipient";
7
7
  export * from "./Recipient";
8
+ export * from "./WebhookRecipient";
9
+ export * from "./PagerdutyRecipient";
8
10
  export * from "./SlackRecipient";
9
11
  export * from "./MsTeamsRecipient";
10
12
  export * from "./AudienceRecipient";
@@ -33,8 +35,6 @@ export * from "./Timeout";
33
35
  export * from "./Criteria";
34
36
  export * from "./RoutingMethod";
35
37
  export * from "./Timeouts";
36
- export * from "./Override";
37
- export * from "./MessageChannelEmailOverride";
38
38
  export * from "./Attachment";
39
39
  export * from "./MessageMetadata";
40
40
  export * from "./Utm";
@@ -80,6 +80,7 @@ export * from "./Preferences";
80
80
  export * from "./RoutingStrategyProvider";
81
81
  export * from "./Metadata";
82
82
  export * from "./RoutingStrategyChannel";
83
+ export * from "./MessagePreferences";
83
84
  export * from "./MessageProviders";
84
85
  export * from "./MessageProvidersType";
85
86
  export * from "./RoutingChannel";
@@ -21,6 +21,8 @@ __exportStar(require("./BaseMessageSendTo"), exports);
21
21
  __exportStar(require("./BaseMessage"), exports);
22
22
  __exportStar(require("./MessageRecipient"), exports);
23
23
  __exportStar(require("./Recipient"), exports);
24
+ __exportStar(require("./WebhookRecipient"), exports);
25
+ __exportStar(require("./PagerdutyRecipient"), exports);
24
26
  __exportStar(require("./SlackRecipient"), exports);
25
27
  __exportStar(require("./MsTeamsRecipient"), exports);
26
28
  __exportStar(require("./AudienceRecipient"), exports);
@@ -49,8 +51,6 @@ __exportStar(require("./Timeout"), exports);
49
51
  __exportStar(require("./Criteria"), exports);
50
52
  __exportStar(require("./RoutingMethod"), exports);
51
53
  __exportStar(require("./Timeouts"), exports);
52
- __exportStar(require("./Override"), exports);
53
- __exportStar(require("./MessageChannelEmailOverride"), exports);
54
54
  __exportStar(require("./Attachment"), exports);
55
55
  __exportStar(require("./MessageMetadata"), exports);
56
56
  __exportStar(require("./Utm"), exports);
@@ -96,6 +96,7 @@ __exportStar(require("./Preferences"), exports);
96
96
  __exportStar(require("./RoutingStrategyProvider"), exports);
97
97
  __exportStar(require("./Metadata"), exports);
98
98
  __exportStar(require("./RoutingStrategyChannel"), exports);
99
+ __exportStar(require("./MessagePreferences"), exports);
99
100
  __exportStar(require("./MessageProviders"), exports);
100
101
  __exportStar(require("./MessageProvidersType"), exports);
101
102
  __exportStar(require("./RoutingChannel"), exports);
@@ -73,7 +73,7 @@ class Templates {
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.1.3",
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
  },
@@ -85,7 +85,7 @@ class Tenants {
85
85
  Authorization: yield this._getAuthorizationHeader(),
86
86
  "X-Fern-Language": "JavaScript",
87
87
  "X-Fern-SDK-Name": "@trycourier/courier",
88
- "X-Fern-SDK-Version": "v6.1.3",
88
+ "X-Fern-SDK-Version": "v6.2.2",
89
89
  "X-Fern-Runtime": core.RUNTIME.type,
90
90
  "X-Fern-Runtime-Version": core.RUNTIME.version,
91
91
  },
@@ -142,7 +142,7 @@ class Tenants {
142
142
  Authorization: yield this._getAuthorizationHeader(),
143
143
  "X-Fern-Language": "JavaScript",
144
144
  "X-Fern-SDK-Name": "@trycourier/courier",
145
- "X-Fern-SDK-Version": "v6.1.3",
145
+ "X-Fern-SDK-Version": "v6.2.2",
146
146
  "X-Fern-Runtime": core.RUNTIME.type,
147
147
  "X-Fern-Runtime-Version": core.RUNTIME.version,
148
148
  },
@@ -211,7 +211,7 @@ class Tenants {
211
211
  Authorization: yield this._getAuthorizationHeader(),
212
212
  "X-Fern-Language": "JavaScript",
213
213
  "X-Fern-SDK-Name": "@trycourier/courier",
214
- "X-Fern-SDK-Version": "v6.1.3",
214
+ "X-Fern-SDK-Version": "v6.2.2",
215
215
  "X-Fern-Runtime": core.RUNTIME.type,
216
216
  "X-Fern-Runtime-Version": core.RUNTIME.version,
217
217
  },
@@ -261,7 +261,7 @@ class Tenants {
261
261
  Authorization: yield this._getAuthorizationHeader(),
262
262
  "X-Fern-Language": "JavaScript",
263
263
  "X-Fern-SDK-Name": "@trycourier/courier",
264
- "X-Fern-SDK-Version": "v6.1.3",
264
+ "X-Fern-SDK-Version": "v6.2.2",
265
265
  "X-Fern-Runtime": core.RUNTIME.type,
266
266
  "X-Fern-Runtime-Version": core.RUNTIME.version,
267
267
  },
@@ -324,7 +324,7 @@ class Tenants {
324
324
  Authorization: yield this._getAuthorizationHeader(),
325
325
  "X-Fern-Language": "JavaScript",
326
326
  "X-Fern-SDK-Name": "@trycourier/courier",
327
- "X-Fern-SDK-Version": "v6.1.3",
327
+ "X-Fern-SDK-Version": "v6.2.2",
328
328
  "X-Fern-Runtime": core.RUNTIME.type,
329
329
  "X-Fern-Runtime-Version": core.RUNTIME.version,
330
330
  },
@@ -385,7 +385,7 @@ class Tenants {
385
385
  Authorization: yield this._getAuthorizationHeader(),
386
386
  "X-Fern-Language": "JavaScript",
387
387
  "X-Fern-SDK-Name": "@trycourier/courier",
388
- "X-Fern-SDK-Version": "v6.1.3",
388
+ "X-Fern-SDK-Version": "v6.2.2",
389
389
  "X-Fern-Runtime": core.RUNTIME.type,
390
390
  "X-Fern-Runtime-Version": core.RUNTIME.version,
391
391
  },
@@ -436,7 +436,7 @@ class Tenants {
436
436
  Authorization: yield this._getAuthorizationHeader(),
437
437
  "X-Fern-Language": "JavaScript",
438
438
  "X-Fern-SDK-Name": "@trycourier/courier",
439
- "X-Fern-SDK-Version": "v6.1.3",
439
+ "X-Fern-SDK-Version": "v6.2.2",
440
440
  "X-Fern-Runtime": core.RUNTIME.type,
441
441
  "X-Fern-Runtime-Version": core.RUNTIME.version,
442
442
  },
@@ -70,7 +70,7 @@ class Translations {
70
70
  Authorization: yield this._getAuthorizationHeader(),
71
71
  "X-Fern-Language": "JavaScript",
72
72
  "X-Fern-SDK-Name": "@trycourier/courier",
73
- "X-Fern-SDK-Version": "v6.1.3",
73
+ "X-Fern-SDK-Version": "v6.2.2",
74
74
  "X-Fern-Runtime": core.RUNTIME.type,
75
75
  "X-Fern-Runtime-Version": core.RUNTIME.version,
76
76
  },
@@ -130,7 +130,7 @@ class Translations {
130
130
  Authorization: yield this._getAuthorizationHeader(),
131
131
  "X-Fern-Language": "JavaScript",
132
132
  "X-Fern-SDK-Name": "@trycourier/courier",
133
- "X-Fern-SDK-Version": "v6.1.3",
133
+ "X-Fern-SDK-Version": "v6.2.2",
134
134
  "X-Fern-Runtime": core.RUNTIME.type,
135
135
  "X-Fern-Runtime-Version": core.RUNTIME.version,
136
136
  },
@@ -69,7 +69,7 @@ class Preferences {
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.1.3",
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
  },
@@ -128,7 +128,7 @@ class Preferences {
128
128
  Authorization: yield this._getAuthorizationHeader(),
129
129
  "X-Fern-Language": "JavaScript",
130
130
  "X-Fern-SDK-Name": "@trycourier/courier",
131
- "X-Fern-SDK-Version": "v6.1.3",
131
+ "X-Fern-SDK-Version": "v6.2.2",
132
132
  "X-Fern-Runtime": core.RUNTIME.type,
133
133
  "X-Fern-Runtime-Version": core.RUNTIME.version,
134
134
  },
@@ -194,7 +194,7 @@ class Preferences {
194
194
  Authorization: yield this._getAuthorizationHeader(),
195
195
  "X-Fern-Language": "JavaScript",
196
196
  "X-Fern-SDK-Name": "@trycourier/courier",
197
- "X-Fern-SDK-Version": "v6.1.3",
197
+ "X-Fern-SDK-Version": "v6.2.2",
198
198
  "X-Fern-Runtime": core.RUNTIME.type,
199
199
  "X-Fern-Runtime-Version": core.RUNTIME.version,
200
200
  },
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import * as Courier from "../../../../../index";
5
5
  export interface UserPreferencesListResponse {
6
+ /** Deprecated - Paging not implemented on this endpoint */
6
7
  paging: Courier.Paging;
7
8
  /** The Preferences associated with the user_id. */
8
9
  items: Courier.users.TopicPreference[];
@@ -82,7 +82,7 @@ class Tenants {
82
82
  Authorization: yield this._getAuthorizationHeader(),
83
83
  "X-Fern-Language": "JavaScript",
84
84
  "X-Fern-SDK-Name": "@trycourier/courier",
85
- "X-Fern-SDK-Version": "v6.1.3",
85
+ "X-Fern-SDK-Version": "v6.2.2",
86
86
  "X-Fern-Runtime": core.RUNTIME.type,
87
87
  "X-Fern-Runtime-Version": core.RUNTIME.version,
88
88
  },
@@ -146,7 +146,7 @@ class Tenants {
146
146
  Authorization: yield this._getAuthorizationHeader(),
147
147
  "X-Fern-Language": "JavaScript",
148
148
  "X-Fern-SDK-Name": "@trycourier/courier",
149
- "X-Fern-SDK-Version": "v6.1.3",
149
+ "X-Fern-SDK-Version": "v6.2.2",
150
150
  "X-Fern-Runtime": core.RUNTIME.type,
151
151
  "X-Fern-Runtime-Version": core.RUNTIME.version,
152
152
  },
@@ -198,7 +198,7 @@ class Tenants {
198
198
  Authorization: yield this._getAuthorizationHeader(),
199
199
  "X-Fern-Language": "JavaScript",
200
200
  "X-Fern-SDK-Name": "@trycourier/courier",
201
- "X-Fern-SDK-Version": "v6.1.3",
201
+ "X-Fern-SDK-Version": "v6.2.2",
202
202
  "X-Fern-Runtime": core.RUNTIME.type,
203
203
  "X-Fern-Runtime-Version": core.RUNTIME.version,
204
204
  },
@@ -250,7 +250,7 @@ class Tenants {
250
250
  Authorization: yield this._getAuthorizationHeader(),
251
251
  "X-Fern-Language": "JavaScript",
252
252
  "X-Fern-SDK-Name": "@trycourier/courier",
253
- "X-Fern-SDK-Version": "v6.1.3",
253
+ "X-Fern-SDK-Version": "v6.2.2",
254
254
  "X-Fern-Runtime": core.RUNTIME.type,
255
255
  "X-Fern-Runtime-Version": core.RUNTIME.version,
256
256
  },
@@ -313,7 +313,7 @@ class Tenants {
313
313
  Authorization: yield this._getAuthorizationHeader(),
314
314
  "X-Fern-Language": "JavaScript",
315
315
  "X-Fern-SDK-Name": "@trycourier/courier",
316
- "X-Fern-SDK-Version": "v6.1.3",
316
+ "X-Fern-SDK-Version": "v6.2.2",
317
317
  "X-Fern-Runtime": core.RUNTIME.type,
318
318
  "X-Fern-Runtime-Version": core.RUNTIME.version,
319
319
  },
@@ -69,7 +69,7 @@ class Tokens {
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.1.3",
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
  },
@@ -150,7 +150,7 @@ class Tokens {
150
150
  Authorization: yield this._getAuthorizationHeader(),
151
151
  "X-Fern-Language": "JavaScript",
152
152
  "X-Fern-SDK-Name": "@trycourier/courier",
153
- "X-Fern-SDK-Version": "v6.1.3",
153
+ "X-Fern-SDK-Version": "v6.2.2",
154
154
  "X-Fern-Runtime": core.RUNTIME.type,
155
155
  "X-Fern-Runtime-Version": core.RUNTIME.version,
156
156
  },
@@ -213,7 +213,7 @@ class Tokens {
213
213
  Authorization: yield this._getAuthorizationHeader(),
214
214
  "X-Fern-Language": "JavaScript",
215
215
  "X-Fern-SDK-Name": "@trycourier/courier",
216
- "X-Fern-SDK-Version": "v6.1.3",
216
+ "X-Fern-SDK-Version": "v6.2.2",
217
217
  "X-Fern-Runtime": core.RUNTIME.type,
218
218
  "X-Fern-Runtime-Version": core.RUNTIME.version,
219
219
  },
@@ -273,7 +273,7 @@ class Tokens {
273
273
  Authorization: yield this._getAuthorizationHeader(),
274
274
  "X-Fern-Language": "JavaScript",
275
275
  "X-Fern-SDK-Name": "@trycourier/courier",
276
- "X-Fern-SDK-Version": "v6.1.3",
276
+ "X-Fern-SDK-Version": "v6.2.2",
277
277
  "X-Fern-Runtime": core.RUNTIME.type,
278
278
  "X-Fern-Runtime-Version": core.RUNTIME.version,
279
279
  },
@@ -331,7 +331,7 @@ class Tokens {
331
331
  Authorization: yield this._getAuthorizationHeader(),
332
332
  "X-Fern-Language": "JavaScript",
333
333
  "X-Fern-SDK-Name": "@trycourier/courier",
334
- "X-Fern-SDK-Version": "v6.1.3",
334
+ "X-Fern-SDK-Version": "v6.2.2",
335
335
  "X-Fern-Runtime": core.RUNTIME.type,
336
336
  "X-Fern-Runtime-Version": core.RUNTIME.version,
337
337
  },
@@ -386,7 +386,7 @@ class Tokens {
386
386
  Authorization: yield this._getAuthorizationHeader(),
387
387
  "X-Fern-Language": "JavaScript",
388
388
  "X-Fern-SDK-Name": "@trycourier/courier",
389
- "X-Fern-SDK-Version": "v6.1.3",
389
+ "X-Fern-SDK-Version": "v6.2.2",
390
390
  "X-Fern-Runtime": core.RUNTIME.type,
391
391
  "X-Fern-Runtime-Version": core.RUNTIME.version,
392
392
  },
package/dist/Client.d.ts CHANGED
@@ -10,6 +10,7 @@ import { AuthTokens } from "./api/resources/authTokens/client/Client";
10
10
  import { Automations } from "./api/resources/automations/client/Client";
11
11
  import { Brands } from "./api/resources/brands/client/Client";
12
12
  import { Bulk } from "./api/resources/bulk/client/Client";
13
+ import { Inbound } from "./api/resources/inbound/client/Client";
13
14
  import { Lists } from "./api/resources/lists/client/Client";
14
15
  import { Messages } from "./api/resources/messages/client/Client";
15
16
  import { Notifications } from "./api/resources/notifications/client/Client";
@@ -57,6 +58,7 @@ export declare class CourierClient {
57
58
  * },
58
59
  * context: {},
59
60
  * metadata: {},
61
+ * preferences: {},
60
62
  * providers: {
61
63
  * "string": {}
62
64
  * },
@@ -81,6 +83,8 @@ export declare class CourierClient {
81
83
  get brands(): Brands;
82
84
  protected _bulk: Bulk | undefined;
83
85
  get bulk(): Bulk;
86
+ protected _inbound: Inbound | undefined;
87
+ get inbound(): Inbound;
84
88
  protected _lists: Lists | undefined;
85
89
  get lists(): Lists;
86
90
  protected _messages: Messages | undefined;
package/dist/Client.js CHANGED
@@ -49,14 +49,15 @@ const Client_3 = require("./api/resources/authTokens/client/Client");
49
49
  const Client_4 = require("./api/resources/automations/client/Client");
50
50
  const Client_5 = require("./api/resources/brands/client/Client");
51
51
  const Client_6 = require("./api/resources/bulk/client/Client");
52
- const Client_7 = require("./api/resources/lists/client/Client");
53
- const Client_8 = require("./api/resources/messages/client/Client");
54
- const Client_9 = require("./api/resources/notifications/client/Client");
55
- const Client_10 = require("./api/resources/profiles/client/Client");
56
- const Client_11 = require("./api/resources/templates/client/Client");
57
- const Client_12 = require("./api/resources/tenants/client/Client");
58
- const Client_13 = require("./api/resources/translations/client/Client");
59
- const Client_14 = require("./api/resources/users/client/Client");
52
+ const Client_7 = require("./api/resources/inbound/client/Client");
53
+ const Client_8 = require("./api/resources/lists/client/Client");
54
+ const Client_9 = require("./api/resources/messages/client/Client");
55
+ const Client_10 = require("./api/resources/notifications/client/Client");
56
+ const Client_11 = require("./api/resources/profiles/client/Client");
57
+ const Client_12 = require("./api/resources/templates/client/Client");
58
+ const Client_13 = require("./api/resources/tenants/client/Client");
59
+ const Client_14 = require("./api/resources/translations/client/Client");
60
+ const Client_15 = require("./api/resources/users/client/Client");
60
61
  class CourierClient {
61
62
  constructor(_options = {}) {
62
63
  this._options = _options;
@@ -82,6 +83,7 @@ class CourierClient {
82
83
  * },
83
84
  * context: {},
84
85
  * metadata: {},
86
+ * preferences: {},
85
87
  * providers: {
86
88
  * "string": {}
87
89
  * },
@@ -103,7 +105,7 @@ class CourierClient {
103
105
  Authorization: yield this._getAuthorizationHeader(),
104
106
  "X-Fern-Language": "JavaScript",
105
107
  "X-Fern-SDK-Name": "@trycourier/courier",
106
- "X-Fern-SDK-Version": "v6.1.3",
108
+ "X-Fern-SDK-Version": "v6.2.2",
107
109
  "X-Fern-Runtime": core.RUNTIME.type,
108
110
  "X-Fern-Runtime-Version": core.RUNTIME.version,
109
111
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
@@ -162,37 +164,41 @@ class CourierClient {
162
164
  var _a;
163
165
  return ((_a = this._bulk) !== null && _a !== void 0 ? _a : (this._bulk = new Client_6.Bulk(this._options)));
164
166
  }
167
+ get inbound() {
168
+ var _a;
169
+ return ((_a = this._inbound) !== null && _a !== void 0 ? _a : (this._inbound = new Client_7.Inbound(this._options)));
170
+ }
165
171
  get lists() {
166
172
  var _a;
167
- return ((_a = this._lists) !== null && _a !== void 0 ? _a : (this._lists = new Client_7.Lists(this._options)));
173
+ return ((_a = this._lists) !== null && _a !== void 0 ? _a : (this._lists = new Client_8.Lists(this._options)));
168
174
  }
169
175
  get messages() {
170
176
  var _a;
171
- return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new Client_8.Messages(this._options)));
177
+ return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new Client_9.Messages(this._options)));
172
178
  }
173
179
  get notifications() {
174
180
  var _a;
175
- return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new Client_9.Notifications(this._options)));
181
+ return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new Client_10.Notifications(this._options)));
176
182
  }
177
183
  get profiles() {
178
184
  var _a;
179
- return ((_a = this._profiles) !== null && _a !== void 0 ? _a : (this._profiles = new Client_10.Profiles(this._options)));
185
+ return ((_a = this._profiles) !== null && _a !== void 0 ? _a : (this._profiles = new Client_11.Profiles(this._options)));
180
186
  }
181
187
  get templates() {
182
188
  var _a;
183
- return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new Client_11.Templates(this._options)));
189
+ return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new Client_12.Templates(this._options)));
184
190
  }
185
191
  get tenants() {
186
192
  var _a;
187
- return ((_a = this._tenants) !== null && _a !== void 0 ? _a : (this._tenants = new Client_12.Tenants(this._options)));
193
+ return ((_a = this._tenants) !== null && _a !== void 0 ? _a : (this._tenants = new Client_13.Tenants(this._options)));
188
194
  }
189
195
  get translations() {
190
196
  var _a;
191
- return ((_a = this._translations) !== null && _a !== void 0 ? _a : (this._translations = new Client_13.Translations(this._options)));
197
+ return ((_a = this._translations) !== null && _a !== void 0 ? _a : (this._translations = new Client_14.Translations(this._options)));
192
198
  }
193
199
  get users() {
194
200
  var _a;
195
- return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_14.Users(this._options)));
201
+ return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_15.Users(this._options)));
196
202
  }
197
203
  _getAuthorizationHeader() {
198
204
  var _a;
@@ -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.1.3",
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.1.3",
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.1.3",
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.1.3",
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.1.3",
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.1.3",
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.1.3",
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.1.3",
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,