@trycourier/courier 6.2.1 → 6.2.3

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 (147) hide show
  1. package/Client.d.ts +71 -10
  2. package/Client.js +72 -11
  3. package/api/client/requests/SendMessageRequest.d.ts +71 -10
  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.d.ts +38 -4
  9. package/api/resources/brands/client/Client.js +43 -9
  10. package/api/resources/brands/client/requests/BrandUpdateParameters.d.ts +13 -2
  11. package/api/resources/bulk/client/Client.d.ts +91 -3
  12. package/api/resources/bulk/client/Client.js +96 -8
  13. package/api/resources/bulk/client/requests/BulkCreateJobParams.d.ts +70 -1
  14. package/api/resources/inbound/client/Client.js +1 -1
  15. package/api/resources/lists/client/Client.d.ts +8 -96
  16. package/api/resources/lists/client/Client.js +18 -106
  17. package/api/resources/lists/client/requests/AddSubscribersToList.d.ts +2 -24
  18. package/api/resources/lists/client/requests/SubscribeUserToListRequest.d.ts +2 -24
  19. package/api/resources/lists/client/requests/SubscribeUsersToListRequest.d.ts +2 -24
  20. package/api/resources/messages/client/Client.js +6 -6
  21. package/api/resources/notifications/client/Client.d.ts +2 -1
  22. package/api/resources/notifications/client/Client.js +12 -8
  23. package/api/resources/notifications/client/requests/NotificationListParams.d.ts +6 -1
  24. package/api/resources/notifications/types/Notification.d.ts +1 -0
  25. package/api/resources/profiles/client/Client.d.ts +7 -1
  26. package/api/resources/profiles/client/Client.js +14 -8
  27. package/api/resources/profiles/types/Pagerduty.d.ts +9 -0
  28. package/api/resources/profiles/types/UserProfile.d.ts +1 -1
  29. package/api/resources/profiles/types/UserProfileFirebaseToken.d.ts +4 -0
  30. package/api/resources/profiles/types/WebhookAuthMode.d.ts +9 -0
  31. package/api/resources/profiles/types/WebhookAuthMode.js +11 -0
  32. package/api/resources/profiles/types/WebhookAuthentication.d.ts +14 -0
  33. package/api/resources/profiles/types/WebhookAuthentication.js +5 -0
  34. package/api/resources/profiles/types/WebhookMethod.d.ts +8 -0
  35. package/api/resources/profiles/types/WebhookMethod.js +10 -0
  36. package/api/resources/profiles/types/WebhookProfile.d.ts +16 -0
  37. package/api/resources/profiles/types/WebhookProfile.js +5 -0
  38. package/api/resources/profiles/types/WebhookProfileType.d.ts +8 -0
  39. package/api/resources/profiles/types/WebhookProfileType.js +10 -0
  40. package/api/resources/profiles/types/index.d.ts +7 -0
  41. package/api/resources/profiles/types/index.js +7 -0
  42. package/api/resources/send/types/BaseMessage.d.ts +1 -0
  43. package/api/resources/send/types/Channel.d.ts +1 -1
  44. package/api/resources/send/types/MessagePreferences.d.ts +7 -0
  45. package/api/resources/send/types/MessagePreferences.js +5 -0
  46. package/api/resources/send/types/PagerdutyRecipient.d.ts +7 -0
  47. package/api/resources/send/types/PagerdutyRecipient.js +5 -0
  48. package/api/resources/send/types/Recipient.d.ts +1 -1
  49. package/api/resources/send/types/WebhookRecipient.d.ts +7 -0
  50. package/api/resources/send/types/WebhookRecipient.js +5 -0
  51. package/api/resources/send/types/index.d.ts +3 -2
  52. package/api/resources/send/types/index.js +3 -2
  53. package/api/resources/templates/client/Client.js +1 -1
  54. package/api/resources/tenants/client/Client.d.ts +6 -1
  55. package/api/resources/tenants/client/Client.js +13 -8
  56. package/api/resources/tenants/client/requests/TenantCreateOrReplaceParams.d.ts +6 -1
  57. package/api/resources/translations/client/Client.js +2 -2
  58. package/api/resources/users/resources/preferences/client/Client.d.ts +10 -4
  59. package/api/resources/users/resources/preferences/client/Client.js +43 -8
  60. package/api/resources/users/resources/preferences/client/requests/UserPreferencesParams.d.ts +15 -0
  61. package/api/resources/users/resources/preferences/client/requests/UserPreferencesParams.js +5 -0
  62. package/api/resources/users/resources/preferences/client/requests/UserPreferencesTopicParams.d.ts +15 -0
  63. package/api/resources/users/resources/preferences/client/requests/UserPreferencesTopicParams.js +5 -0
  64. package/api/resources/users/resources/preferences/client/requests/UserPreferencesUpdateParams.d.ts +4 -0
  65. package/api/resources/users/resources/preferences/client/requests/index.d.ts +2 -0
  66. package/api/resources/users/resources/tenants/client/Client.js +5 -5
  67. package/api/resources/users/resources/tokens/client/Client.d.ts +5 -1
  68. package/api/resources/users/resources/tokens/client/Client.js +11 -7
  69. package/dist/Client.d.ts +71 -10
  70. package/dist/Client.js +72 -11
  71. package/dist/api/client/requests/SendMessageRequest.d.ts +71 -10
  72. package/dist/api/resources/audiences/client/Client.js +5 -5
  73. package/dist/api/resources/auditEvents/client/Client.js +2 -2
  74. package/dist/api/resources/authTokens/client/Client.js +1 -1
  75. package/dist/api/resources/automations/client/Client.js +2 -2
  76. package/dist/api/resources/brands/client/Client.d.ts +38 -4
  77. package/dist/api/resources/brands/client/Client.js +43 -9
  78. package/dist/api/resources/brands/client/requests/BrandUpdateParameters.d.ts +13 -2
  79. package/dist/api/resources/bulk/client/Client.d.ts +91 -3
  80. package/dist/api/resources/bulk/client/Client.js +96 -8
  81. package/dist/api/resources/bulk/client/requests/BulkCreateJobParams.d.ts +70 -1
  82. package/dist/api/resources/inbound/client/Client.js +1 -1
  83. package/dist/api/resources/lists/client/Client.d.ts +8 -96
  84. package/dist/api/resources/lists/client/Client.js +18 -106
  85. package/dist/api/resources/lists/client/requests/AddSubscribersToList.d.ts +2 -24
  86. package/dist/api/resources/lists/client/requests/SubscribeUserToListRequest.d.ts +2 -24
  87. package/dist/api/resources/lists/client/requests/SubscribeUsersToListRequest.d.ts +2 -24
  88. package/dist/api/resources/messages/client/Client.js +6 -6
  89. package/dist/api/resources/notifications/client/Client.d.ts +2 -1
  90. package/dist/api/resources/notifications/client/Client.js +12 -8
  91. package/dist/api/resources/notifications/client/requests/NotificationListParams.d.ts +6 -1
  92. package/dist/api/resources/notifications/types/Notification.d.ts +1 -0
  93. package/dist/api/resources/profiles/client/Client.d.ts +7 -1
  94. package/dist/api/resources/profiles/client/Client.js +14 -8
  95. package/dist/api/resources/profiles/types/Pagerduty.d.ts +9 -0
  96. package/dist/api/resources/profiles/types/Pagerduty.js +5 -0
  97. package/dist/api/resources/profiles/types/UserProfile.d.ts +1 -1
  98. package/dist/api/resources/profiles/types/UserProfileFirebaseToken.d.ts +4 -0
  99. package/dist/api/resources/profiles/types/UserProfileFirebaseToken.js +5 -0
  100. package/dist/api/resources/profiles/types/WebhookAuthMode.d.ts +9 -0
  101. package/dist/api/resources/profiles/types/WebhookAuthMode.js +11 -0
  102. package/dist/api/resources/profiles/types/WebhookAuthentication.d.ts +14 -0
  103. package/dist/api/resources/profiles/types/WebhookAuthentication.js +5 -0
  104. package/dist/api/resources/profiles/types/WebhookMethod.d.ts +8 -0
  105. package/dist/api/resources/profiles/types/WebhookMethod.js +10 -0
  106. package/dist/api/resources/profiles/types/WebhookProfile.d.ts +16 -0
  107. package/dist/api/resources/profiles/types/WebhookProfile.js +5 -0
  108. package/dist/api/resources/profiles/types/WebhookProfileType.d.ts +8 -0
  109. package/dist/api/resources/profiles/types/WebhookProfileType.js +10 -0
  110. package/dist/api/resources/profiles/types/index.d.ts +7 -0
  111. package/dist/api/resources/profiles/types/index.js +7 -0
  112. package/dist/api/resources/send/types/BaseMessage.d.ts +1 -0
  113. package/dist/api/resources/send/types/Channel.d.ts +1 -1
  114. package/dist/api/resources/send/types/MessagePreferences.d.ts +7 -0
  115. package/dist/api/resources/send/types/MessagePreferences.js +5 -0
  116. package/dist/api/resources/send/types/PagerdutyRecipient.d.ts +7 -0
  117. package/dist/api/resources/send/types/PagerdutyRecipient.js +5 -0
  118. package/dist/api/resources/send/types/Recipient.d.ts +1 -1
  119. package/dist/api/resources/send/types/WebhookRecipient.d.ts +7 -0
  120. package/dist/api/resources/send/types/WebhookRecipient.js +5 -0
  121. package/dist/api/resources/send/types/index.d.ts +3 -2
  122. package/dist/api/resources/send/types/index.js +3 -2
  123. package/dist/api/resources/templates/client/Client.js +1 -1
  124. package/dist/api/resources/tenants/client/Client.d.ts +6 -1
  125. package/dist/api/resources/tenants/client/Client.js +13 -8
  126. package/dist/api/resources/tenants/client/requests/TenantCreateOrReplaceParams.d.ts +6 -1
  127. package/dist/api/resources/translations/client/Client.js +2 -2
  128. package/dist/api/resources/users/resources/preferences/client/Client.d.ts +10 -4
  129. package/dist/api/resources/users/resources/preferences/client/Client.js +43 -8
  130. package/dist/api/resources/users/resources/preferences/client/requests/UserPreferencesParams.d.ts +15 -0
  131. package/dist/api/resources/users/resources/preferences/client/requests/UserPreferencesParams.js +5 -0
  132. package/dist/api/resources/users/resources/preferences/client/requests/UserPreferencesTopicParams.d.ts +15 -0
  133. package/dist/api/resources/users/resources/preferences/client/requests/UserPreferencesTopicParams.js +5 -0
  134. package/dist/api/resources/users/resources/preferences/client/requests/UserPreferencesUpdateParams.d.ts +4 -0
  135. package/dist/api/resources/users/resources/preferences/client/requests/index.d.ts +2 -0
  136. package/dist/api/resources/users/resources/tenants/client/Client.js +5 -5
  137. package/dist/api/resources/users/resources/tokens/client/Client.d.ts +5 -1
  138. package/dist/api/resources/users/resources/tokens/client/Client.js +11 -7
  139. package/package.json +1 -1
  140. package/api/resources/send/types/MessageChannelEmailOverride.d.ts +0 -16
  141. package/api/resources/send/types/Override.d.ts +0 -8
  142. package/api/resources/send/types/Override.js +0 -10
  143. package/dist/api/resources/send/types/MessageChannelEmailOverride.d.ts +0 -16
  144. package/dist/api/resources/send/types/Override.d.ts +0 -8
  145. package/dist/api/resources/send/types/Override.js +0 -10
  146. /package/api/resources/{send/types/MessageChannelEmailOverride.js → profiles/types/Pagerduty.js} +0 -0
  147. /package/{dist/api/resources/send/types/MessageChannelEmailOverride.js → api/resources/profiles/types/UserProfileFirebaseToken.js} +0 -0
package/Client.d.ts CHANGED
@@ -46,7 +46,15 @@ export declare class CourierClient {
46
46
  * @example
47
47
  * await courier.send({
48
48
  * message: {
49
- * content: {},
49
+ * content: {
50
+ * version: "string",
51
+ * brand: {
52
+ * "key": "value"
53
+ * },
54
+ * elements: [{
55
+ * type: "text"
56
+ * }]
57
+ * },
50
58
  * data: {
51
59
  * "string": {
52
60
  * "key": "value"
@@ -54,18 +62,71 @@ export declare class CourierClient {
54
62
  * },
55
63
  * brand_id: "string",
56
64
  * channels: {
57
- * "string": {}
65
+ * "string": {
66
+ * brand_id: undefined,
67
+ * providers: undefined,
68
+ * routing_method: undefined,
69
+ * if: undefined,
70
+ * timeouts: undefined,
71
+ * override: undefined,
72
+ * metadata: undefined
73
+ * }
74
+ * },
75
+ * context: {
76
+ * tenant_id: "string"
77
+ * },
78
+ * metadata: {
79
+ * event: "string",
80
+ * tags: [],
81
+ * utm: {
82
+ * source: undefined,
83
+ * medium: undefined,
84
+ * campaign: undefined,
85
+ * term: undefined,
86
+ * content: undefined
87
+ * },
88
+ * trace_id: "string"
89
+ * },
90
+ * preferences: {
91
+ * subscription_topic_id: "string"
58
92
  * },
59
- * context: {},
60
- * metadata: {},
61
93
  * providers: {
62
- * "string": {}
94
+ * "string": {
95
+ * override: undefined,
96
+ * if: undefined,
97
+ * timeouts: undefined,
98
+ * metadata: undefined
99
+ * }
100
+ * },
101
+ * routing: {
102
+ * method: Courier.RoutingMethod.All,
103
+ * channels: [{
104
+ * channel: "string",
105
+ * config: undefined,
106
+ * method: undefined,
107
+ * providers: undefined,
108
+ * if: undefined
109
+ * }]
110
+ * },
111
+ * timeout: {
112
+ * provider: {},
113
+ * channel: {},
114
+ * message: 1,
115
+ * escalation: 1,
116
+ * criteria: Courier.Criteria.NoEscalation
117
+ * },
118
+ * delay: {
119
+ * duration: 1
120
+ * },
121
+ * expiry: {
122
+ * expires_at: "string",
123
+ * expires_in: "string"
63
124
  * },
64
- * routing: {},
65
- * timeout: {},
66
- * delay: {},
67
- * expiry: {},
68
- * to: {}
125
+ * to: {
126
+ * audience_id: "string",
127
+ * data: {},
128
+ * filters: []
129
+ * }
69
130
  * }
70
131
  * })
71
132
  */
package/Client.js CHANGED
@@ -71,7 +71,15 @@ class CourierClient {
71
71
  * @example
72
72
  * await courier.send({
73
73
  * message: {
74
- * content: {},
74
+ * content: {
75
+ * version: "string",
76
+ * brand: {
77
+ * "key": "value"
78
+ * },
79
+ * elements: [{
80
+ * type: "text"
81
+ * }]
82
+ * },
75
83
  * data: {
76
84
  * "string": {
77
85
  * "key": "value"
@@ -79,18 +87,71 @@ class CourierClient {
79
87
  * },
80
88
  * brand_id: "string",
81
89
  * channels: {
82
- * "string": {}
90
+ * "string": {
91
+ * brand_id: undefined,
92
+ * providers: undefined,
93
+ * routing_method: undefined,
94
+ * if: undefined,
95
+ * timeouts: undefined,
96
+ * override: undefined,
97
+ * metadata: undefined
98
+ * }
99
+ * },
100
+ * context: {
101
+ * tenant_id: "string"
102
+ * },
103
+ * metadata: {
104
+ * event: "string",
105
+ * tags: [],
106
+ * utm: {
107
+ * source: undefined,
108
+ * medium: undefined,
109
+ * campaign: undefined,
110
+ * term: undefined,
111
+ * content: undefined
112
+ * },
113
+ * trace_id: "string"
114
+ * },
115
+ * preferences: {
116
+ * subscription_topic_id: "string"
83
117
  * },
84
- * context: {},
85
- * metadata: {},
86
118
  * providers: {
87
- * "string": {}
119
+ * "string": {
120
+ * override: undefined,
121
+ * if: undefined,
122
+ * timeouts: undefined,
123
+ * metadata: undefined
124
+ * }
125
+ * },
126
+ * routing: {
127
+ * method: Courier.RoutingMethod.All,
128
+ * channels: [{
129
+ * channel: "string",
130
+ * config: undefined,
131
+ * method: undefined,
132
+ * providers: undefined,
133
+ * if: undefined
134
+ * }]
135
+ * },
136
+ * timeout: {
137
+ * provider: {},
138
+ * channel: {},
139
+ * message: 1,
140
+ * escalation: 1,
141
+ * criteria: Courier.Criteria.NoEscalation
142
+ * },
143
+ * delay: {
144
+ * duration: 1
145
+ * },
146
+ * expiry: {
147
+ * expires_at: "string",
148
+ * expires_in: "string"
88
149
  * },
89
- * routing: {},
90
- * timeout: {},
91
- * delay: {},
92
- * expiry: {},
93
- * to: {}
150
+ * to: {
151
+ * audience_id: "string",
152
+ * data: {},
153
+ * filters: []
154
+ * }
94
155
  * }
95
156
  * })
96
157
  */
@@ -104,7 +165,7 @@ class CourierClient {
104
165
  Authorization: yield this._getAuthorizationHeader(),
105
166
  "X-Fern-Language": "JavaScript",
106
167
  "X-Fern-SDK-Name": "@trycourier/courier",
107
- "X-Fern-SDK-Version": "v6.2.1",
168
+ "X-Fern-SDK-Version": "v6.2.3",
108
169
  "X-Fern-Runtime": core.RUNTIME.type,
109
170
  "X-Fern-Runtime-Version": core.RUNTIME.version,
110
171
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
@@ -6,7 +6,15 @@ import * as Courier from "../../index";
6
6
  * @example
7
7
  * {
8
8
  * message: {
9
- * content: {},
9
+ * content: {
10
+ * version: "string",
11
+ * brand: {
12
+ * "key": "value"
13
+ * },
14
+ * elements: [{
15
+ * type: "text"
16
+ * }]
17
+ * },
10
18
  * data: {
11
19
  * "string": {
12
20
  * "key": "value"
@@ -14,18 +22,71 @@ import * as Courier from "../../index";
14
22
  * },
15
23
  * brand_id: "string",
16
24
  * channels: {
17
- * "string": {}
25
+ * "string": {
26
+ * brand_id: undefined,
27
+ * providers: undefined,
28
+ * routing_method: undefined,
29
+ * if: undefined,
30
+ * timeouts: undefined,
31
+ * override: undefined,
32
+ * metadata: undefined
33
+ * }
34
+ * },
35
+ * context: {
36
+ * tenant_id: "string"
37
+ * },
38
+ * metadata: {
39
+ * event: "string",
40
+ * tags: [],
41
+ * utm: {
42
+ * source: undefined,
43
+ * medium: undefined,
44
+ * campaign: undefined,
45
+ * term: undefined,
46
+ * content: undefined
47
+ * },
48
+ * trace_id: "string"
49
+ * },
50
+ * preferences: {
51
+ * subscription_topic_id: "string"
18
52
  * },
19
- * context: {},
20
- * metadata: {},
21
53
  * providers: {
22
- * "string": {}
54
+ * "string": {
55
+ * override: undefined,
56
+ * if: undefined,
57
+ * timeouts: undefined,
58
+ * metadata: undefined
59
+ * }
60
+ * },
61
+ * routing: {
62
+ * method: Courier.RoutingMethod.All,
63
+ * channels: [{
64
+ * channel: "string",
65
+ * config: undefined,
66
+ * method: undefined,
67
+ * providers: undefined,
68
+ * if: undefined
69
+ * }]
70
+ * },
71
+ * timeout: {
72
+ * provider: {},
73
+ * channel: {},
74
+ * message: 1,
75
+ * escalation: 1,
76
+ * criteria: Courier.Criteria.NoEscalation
77
+ * },
78
+ * delay: {
79
+ * duration: 1
80
+ * },
81
+ * expiry: {
82
+ * expires_at: "string",
83
+ * expires_in: "string"
23
84
  * },
24
- * routing: {},
25
- * timeout: {},
26
- * delay: {},
27
- * expiry: {},
28
- * to: {}
85
+ * to: {
86
+ * audience_id: "string",
87
+ * data: {},
88
+ * filters: []
89
+ * }
29
90
  * }
30
91
  * }
31
92
  */
@@ -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.3",
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.3",
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.3",
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.3",
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.3",
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.3",
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.3",
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.3",
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.3",
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.3",
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,
@@ -34,8 +34,31 @@ export declare class Brands {
34
34
  * await courier.brands.create({
35
35
  * id: "string",
36
36
  * name: "string",
37
- * settings: {},
38
- * snippets: {}
37
+ * settings: {
38
+ * colors: {
39
+ * primary: "string",
40
+ * secondary: "string",
41
+ * tertiary: "string"
42
+ * },
43
+ * inapp: {
44
+ * "key": "value"
45
+ * },
46
+ * email: {
47
+ * footer: {
48
+ * "key": "value"
49
+ * },
50
+ * header: {
51
+ * "key": "value"
52
+ * }
53
+ * }
54
+ * },
55
+ * snippets: {
56
+ * items: [{
57
+ * format: "handlebars",
58
+ * name: "string",
59
+ * value: "string"
60
+ * }]
61
+ * }
39
62
  * })
40
63
  */
41
64
  create(request: Courier.BrandParameters, requestOptions?: Brands.IdempotentRequestOptions): Promise<Courier.Brand>;
@@ -84,11 +107,22 @@ export declare class Brands {
84
107
  * await courier.brands.replace("string", {
85
108
  * name: "string",
86
109
  * settings: {
87
- * colors: {},
110
+ * colors: {
111
+ * primary: "string",
112
+ * secondary: "string",
113
+ * tertiary: "string"
114
+ * },
88
115
  * inapp: {
89
116
  * "key": "value"
90
117
  * },
91
- * email: {}
118
+ * email: {
119
+ * footer: {
120
+ * "key": "value"
121
+ * },
122
+ * header: {
123
+ * "key": "value"
124
+ * }
125
+ * }
92
126
  * },
93
127
  * snippets: {
94
128
  * items: [{
@@ -60,8 +60,31 @@ class Brands {
60
60
  * await courier.brands.create({
61
61
  * id: "string",
62
62
  * name: "string",
63
- * settings: {},
64
- * snippets: {}
63
+ * settings: {
64
+ * colors: {
65
+ * primary: "string",
66
+ * secondary: "string",
67
+ * tertiary: "string"
68
+ * },
69
+ * inapp: {
70
+ * "key": "value"
71
+ * },
72
+ * email: {
73
+ * footer: {
74
+ * "key": "value"
75
+ * },
76
+ * header: {
77
+ * "key": "value"
78
+ * }
79
+ * }
80
+ * },
81
+ * snippets: {
82
+ * items: [{
83
+ * format: "handlebars",
84
+ * name: "string",
85
+ * value: "string"
86
+ * }]
87
+ * }
65
88
  * })
66
89
  */
67
90
  create(request, requestOptions) {
@@ -74,7 +97,7 @@ class Brands {
74
97
  Authorization: yield this._getAuthorizationHeader(),
75
98
  "X-Fern-Language": "JavaScript",
76
99
  "X-Fern-SDK-Name": "@trycourier/courier",
77
- "X-Fern-SDK-Version": "v6.2.1",
100
+ "X-Fern-SDK-Version": "v6.2.3",
78
101
  "X-Fern-Runtime": core.RUNTIME.type,
79
102
  "X-Fern-Runtime-Version": core.RUNTIME.version,
80
103
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
@@ -137,7 +160,7 @@ class Brands {
137
160
  Authorization: yield this._getAuthorizationHeader(),
138
161
  "X-Fern-Language": "JavaScript",
139
162
  "X-Fern-SDK-Name": "@trycourier/courier",
140
- "X-Fern-SDK-Version": "v6.2.1",
163
+ "X-Fern-SDK-Version": "v6.2.3",
141
164
  "X-Fern-Runtime": core.RUNTIME.type,
142
165
  "X-Fern-Runtime-Version": core.RUNTIME.version,
143
166
  },
@@ -195,7 +218,7 @@ class Brands {
195
218
  Authorization: yield this._getAuthorizationHeader(),
196
219
  "X-Fern-Language": "JavaScript",
197
220
  "X-Fern-SDK-Name": "@trycourier/courier",
198
- "X-Fern-SDK-Version": "v6.2.1",
221
+ "X-Fern-SDK-Version": "v6.2.3",
199
222
  "X-Fern-Runtime": core.RUNTIME.type,
200
223
  "X-Fern-Runtime-Version": core.RUNTIME.version,
201
224
  },
@@ -249,7 +272,7 @@ class Brands {
249
272
  Authorization: yield this._getAuthorizationHeader(),
250
273
  "X-Fern-Language": "JavaScript",
251
274
  "X-Fern-SDK-Name": "@trycourier/courier",
252
- "X-Fern-SDK-Version": "v6.2.1",
275
+ "X-Fern-SDK-Version": "v6.2.3",
253
276
  "X-Fern-Runtime": core.RUNTIME.type,
254
277
  "X-Fern-Runtime-Version": core.RUNTIME.version,
255
278
  },
@@ -297,11 +320,22 @@ class Brands {
297
320
  * await courier.brands.replace("string", {
298
321
  * name: "string",
299
322
  * settings: {
300
- * colors: {},
323
+ * colors: {
324
+ * primary: "string",
325
+ * secondary: "string",
326
+ * tertiary: "string"
327
+ * },
301
328
  * inapp: {
302
329
  * "key": "value"
303
330
  * },
304
- * email: {}
331
+ * email: {
332
+ * footer: {
333
+ * "key": "value"
334
+ * },
335
+ * header: {
336
+ * "key": "value"
337
+ * }
338
+ * }
305
339
  * },
306
340
  * snippets: {
307
341
  * items: [{
@@ -322,7 +356,7 @@ class Brands {
322
356
  Authorization: yield this._getAuthorizationHeader(),
323
357
  "X-Fern-Language": "JavaScript",
324
358
  "X-Fern-SDK-Name": "@trycourier/courier",
325
- "X-Fern-SDK-Version": "v6.2.1",
359
+ "X-Fern-SDK-Version": "v6.2.3",
326
360
  "X-Fern-Runtime": core.RUNTIME.type,
327
361
  "X-Fern-Runtime-Version": core.RUNTIME.version,
328
362
  },
@@ -7,11 +7,22 @@ import * as Courier from "../../../../index";
7
7
  * {
8
8
  * name: "string",
9
9
  * settings: {
10
- * colors: {},
10
+ * colors: {
11
+ * primary: "string",
12
+ * secondary: "string",
13
+ * tertiary: "string"
14
+ * },
11
15
  * inapp: {
12
16
  * "key": "value"
13
17
  * },
14
- * email: {}
18
+ * email: {
19
+ * footer: {
20
+ * "key": "value"
21
+ * },
22
+ * header: {
23
+ * "key": "value"
24
+ * }
25
+ * }
15
26
  * },
16
27
  * snippets: {
17
28
  * items: [{