@trycourier/courier 7.8.0 → 7.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/client.d.mts +16 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +16 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +6 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/index.d.mts +3 -1
  12. package/resources/index.d.mts.map +1 -1
  13. package/resources/index.d.ts +3 -1
  14. package/resources/index.d.ts.map +1 -1
  15. package/resources/index.js +5 -1
  16. package/resources/index.js.map +1 -1
  17. package/resources/index.mjs +2 -0
  18. package/resources/index.mjs.map +1 -1
  19. package/resources/notifications/checks.d.mts +35 -0
  20. package/resources/notifications/checks.d.mts.map +1 -1
  21. package/resources/notifications/checks.d.ts +35 -0
  22. package/resources/notifications/checks.d.ts.map +1 -1
  23. package/resources/notifications/checks.js +35 -0
  24. package/resources/notifications/checks.js.map +1 -1
  25. package/resources/notifications/checks.mjs +35 -0
  26. package/resources/notifications/checks.mjs.map +1 -1
  27. package/resources/notifications/index.d.mts +1 -2
  28. package/resources/notifications/index.d.mts.map +1 -1
  29. package/resources/notifications/index.d.ts +1 -2
  30. package/resources/notifications/index.d.ts.map +1 -1
  31. package/resources/notifications/index.js +1 -3
  32. package/resources/notifications/index.js.map +1 -1
  33. package/resources/notifications/index.mjs +0 -1
  34. package/resources/notifications/index.mjs.map +1 -1
  35. package/resources/notifications/notifications.d.mts +667 -11
  36. package/resources/notifications/notifications.d.mts.map +1 -1
  37. package/resources/notifications/notifications.d.ts +667 -11
  38. package/resources/notifications/notifications.d.ts.map +1 -1
  39. package/resources/notifications/notifications.js +191 -6
  40. package/resources/notifications/notifications.js.map +1 -1
  41. package/resources/notifications/notifications.mjs +191 -6
  42. package/resources/notifications/notifications.mjs.map +1 -1
  43. package/resources/providers/catalog.d.mts +40 -0
  44. package/resources/providers/catalog.d.mts.map +1 -0
  45. package/resources/providers/catalog.d.ts +40 -0
  46. package/resources/providers/catalog.d.ts.map +1 -0
  47. package/resources/providers/catalog.js +18 -0
  48. package/resources/providers/catalog.js.map +1 -0
  49. package/resources/providers/catalog.mjs +14 -0
  50. package/resources/providers/catalog.mjs.map +1 -0
  51. package/resources/providers/index.d.mts +3 -0
  52. package/resources/providers/index.d.mts.map +1 -0
  53. package/resources/providers/index.d.ts +3 -0
  54. package/resources/providers/index.d.ts.map +1 -0
  55. package/resources/providers/index.js +9 -0
  56. package/resources/providers/index.js.map +1 -0
  57. package/resources/providers/index.mjs +4 -0
  58. package/resources/providers/index.mjs.map +1 -0
  59. package/resources/providers/providers.d.mts +182 -0
  60. package/resources/providers/providers.d.mts.map +1 -0
  61. package/resources/providers/providers.d.ts +182 -0
  62. package/resources/providers/providers.d.ts.map +1 -0
  63. package/resources/providers/providers.js +57 -0
  64. package/resources/providers/providers.js.map +1 -0
  65. package/resources/providers/providers.mjs +52 -0
  66. package/resources/providers/providers.mjs.map +1 -0
  67. package/resources/providers.d.mts +2 -0
  68. package/resources/providers.d.mts.map +1 -0
  69. package/resources/providers.d.ts +2 -0
  70. package/resources/providers.d.ts.map +1 -0
  71. package/resources/providers.js +6 -0
  72. package/resources/providers.js.map +1 -0
  73. package/resources/providers.mjs +3 -0
  74. package/resources/providers.mjs.map +1 -0
  75. package/resources/routing-strategies.d.mts +333 -0
  76. package/resources/routing-strategies.d.mts.map +1 -0
  77. package/resources/routing-strategies.d.ts +333 -0
  78. package/resources/routing-strategies.d.ts.map +1 -0
  79. package/resources/routing-strategies.js +107 -0
  80. package/resources/routing-strategies.js.map +1 -0
  81. package/resources/routing-strategies.mjs +103 -0
  82. package/resources/routing-strategies.mjs.map +1 -0
  83. package/resources/send.d.mts +2 -60
  84. package/resources/send.d.mts.map +1 -1
  85. package/resources/send.d.ts +2 -60
  86. package/resources/send.d.ts.map +1 -1
  87. package/resources/shared.d.mts +60 -1
  88. package/resources/shared.d.mts.map +1 -1
  89. package/resources/shared.d.ts +60 -1
  90. package/resources/shared.d.ts.map +1 -1
  91. package/resources/tenants/tenants.d.mts +2 -62
  92. package/resources/tenants/tenants.d.mts.map +1 -1
  93. package/resources/tenants/tenants.d.ts +2 -62
  94. package/resources/tenants/tenants.d.ts.map +1 -1
  95. package/resources/tenants/tenants.js.map +1 -1
  96. package/resources/tenants/tenants.mjs.map +1 -1
  97. package/src/client.ts +112 -0
  98. package/src/resources/index.ts +49 -0
  99. package/src/resources/notifications/checks.ts +35 -0
  100. package/src/resources/notifications/index.ts +26 -1
  101. package/src/resources/notifications/notifications.ts +858 -13
  102. package/src/resources/providers/catalog.ts +53 -0
  103. package/src/resources/providers/index.ts +12 -0
  104. package/src/resources/providers/providers.ts +240 -0
  105. package/src/resources/providers.ts +3 -0
  106. package/src/resources/routing-strategies.ts +436 -0
  107. package/src/resources/send.ts +2 -67
  108. package/src/resources/shared.ts +71 -1
  109. package/src/resources/tenants/tenants.ts +2 -69
  110. package/src/version.ts +1 -1
  111. package/version.d.mts +1 -1
  112. package/version.d.mts.map +1 -1
  113. package/version.d.ts +1 -1
  114. package/version.d.ts.map +1 -1
  115. package/version.js +1 -1
  116. package/version.js.map +1 -1
  117. package/version.mjs +1 -1
  118. package/version.mjs.map +1 -1
  119. package/resources/notifications/draft.d.mts +0 -8
  120. package/resources/notifications/draft.d.mts.map +0 -1
  121. package/resources/notifications/draft.d.ts +0 -8
  122. package/resources/notifications/draft.d.ts.map +0 -1
  123. package/resources/notifications/draft.js +0 -13
  124. package/resources/notifications/draft.js.map +0 -1
  125. package/resources/notifications/draft.mjs +0 -9
  126. package/resources/notifications/draft.mjs.map +0 -1
  127. package/src/resources/notifications/draft.ts +0 -13
@@ -0,0 +1,333 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import * as Shared from "./shared.mjs";
3
+ import * as NotificationsAPI from "./notifications/notifications.mjs";
4
+ import { APIPromise } from "../core/api-promise.mjs";
5
+ import { RequestOptions } from "../internal/request-options.mjs";
6
+ export declare class RoutingStrategies extends APIResource {
7
+ /**
8
+ * Create a routing strategy. Requires a name and routing configuration at minimum.
9
+ * Channels and providers default to empty if omitted.
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const routingStrategyMutationResponse =
14
+ * await client.routingStrategies.create({
15
+ * name: 'Email via SendGrid',
16
+ * routing: { method: 'single', channels: ['email'] },
17
+ * channels: { email: { providers: ['sendgrid', 'ses'] } },
18
+ * description:
19
+ * 'Routes email through sendgrid with SES failover',
20
+ * providers: { sendgrid: { override: {} } },
21
+ * tags: ['production', 'email'],
22
+ * });
23
+ * ```
24
+ */
25
+ create(body: RoutingStrategyCreateParams, options?: RequestOptions): APIPromise<RoutingStrategyMutationResponse>;
26
+ /**
27
+ * Retrieve a routing strategy by ID. Returns the full entity including routing
28
+ * content and metadata.
29
+ *
30
+ * @example
31
+ * ```ts
32
+ * const routingStrategyGetResponse =
33
+ * await client.routingStrategies.retrieve('id');
34
+ * ```
35
+ */
36
+ retrieve(id: string, options?: RequestOptions): APIPromise<RoutingStrategyGetResponse>;
37
+ /**
38
+ * List routing strategies in your workspace. Returns metadata only (no
39
+ * routing/channels/providers content). Use GET /routing-strategies/{id} for full
40
+ * details.
41
+ *
42
+ * @example
43
+ * ```ts
44
+ * const routingStrategyListResponse =
45
+ * await client.routingStrategies.list();
46
+ * ```
47
+ */
48
+ list(query?: RoutingStrategyListParams | null | undefined, options?: RequestOptions): APIPromise<RoutingStrategyListResponse>;
49
+ /**
50
+ * Archive a routing strategy. The strategy must not have associated notification
51
+ * templates. Unlink all templates before archiving.
52
+ *
53
+ * @example
54
+ * ```ts
55
+ * await client.routingStrategies.archive('id');
56
+ * ```
57
+ */
58
+ archive(id: string, options?: RequestOptions): APIPromise<void>;
59
+ /**
60
+ * List notification templates associated with a routing strategy. Includes
61
+ * template metadata only, not full content.
62
+ *
63
+ * @example
64
+ * ```ts
65
+ * const associatedNotificationListResponse =
66
+ * await client.routingStrategies.listNotifications('id');
67
+ * ```
68
+ */
69
+ listNotifications(id: string, query?: RoutingStrategyListNotificationsParams | null | undefined, options?: RequestOptions): APIPromise<AssociatedNotificationListResponse>;
70
+ /**
71
+ * Replace a routing strategy. Full document replacement; the caller must send the
72
+ * complete desired state. Missing optional fields are cleared.
73
+ *
74
+ * @example
75
+ * ```ts
76
+ * const routingStrategyMutationResponse =
77
+ * await client.routingStrategies.replace('id', {
78
+ * name: 'Email via SendGrid v2',
79
+ * routing: { method: 'single', channels: ['email'] },
80
+ * channels: { email: { providers: ['ses', 'sendgrid'] } },
81
+ * description: 'Updated routing with SES primary',
82
+ * providers: { ses: { override: {} } },
83
+ * tags: ['production', 'email', 'v2'],
84
+ * });
85
+ * ```
86
+ */
87
+ replace(id: string, body: RoutingStrategyReplaceParams, options?: RequestOptions): APIPromise<RoutingStrategyMutationResponse>;
88
+ }
89
+ /**
90
+ * Paginated list of notification templates associated with a routing strategy.
91
+ */
92
+ export interface AssociatedNotificationListResponse {
93
+ paging: Shared.Paging;
94
+ results: Array<NotificationsAPI.NotificationTemplateSummary>;
95
+ }
96
+ /**
97
+ * Request body for creating a routing strategy.
98
+ */
99
+ export interface RoutingStrategyCreateRequest {
100
+ /**
101
+ * Human-readable name for the routing strategy.
102
+ */
103
+ name: string;
104
+ /**
105
+ * Routing tree defining channel selection method and order.
106
+ */
107
+ routing: Shared.MessageRouting;
108
+ /**
109
+ * Per-channel delivery configuration. Defaults to empty if omitted.
110
+ */
111
+ channels?: Shared.MessageChannels | null;
112
+ /**
113
+ * Optional description of the routing strategy.
114
+ */
115
+ description?: string | null;
116
+ /**
117
+ * Per-provider delivery configuration. Defaults to empty if omitted.
118
+ */
119
+ providers?: Shared.MessageProviders | null;
120
+ /**
121
+ * Optional tags for categorization.
122
+ */
123
+ tags?: Array<string> | null;
124
+ }
125
+ /**
126
+ * Full routing strategy entity returned by GET.
127
+ */
128
+ export interface RoutingStrategyGetResponse {
129
+ /**
130
+ * The routing strategy ID (rs\_ prefix).
131
+ */
132
+ id: string;
133
+ /**
134
+ * Per-channel delivery configuration. May be empty.
135
+ */
136
+ channels: Shared.MessageChannels;
137
+ /**
138
+ * Epoch milliseconds when the strategy was created.
139
+ */
140
+ created: number;
141
+ /**
142
+ * User ID of the creator.
143
+ */
144
+ creator: string;
145
+ /**
146
+ * Human-readable name.
147
+ */
148
+ name: string;
149
+ /**
150
+ * Per-provider delivery configuration. May be empty.
151
+ */
152
+ providers: Shared.MessageProviders;
153
+ /**
154
+ * Routing tree defining channel selection method and order.
155
+ */
156
+ routing: Shared.MessageRouting;
157
+ /**
158
+ * Description of the routing strategy.
159
+ */
160
+ description?: string | null;
161
+ /**
162
+ * Tags for categorization.
163
+ */
164
+ tags?: Array<string> | null;
165
+ /**
166
+ * Epoch milliseconds of last update.
167
+ */
168
+ updated?: number | null;
169
+ /**
170
+ * User ID of the last updater.
171
+ */
172
+ updater?: string | null;
173
+ }
174
+ /**
175
+ * Paginated list of routing strategy summaries.
176
+ */
177
+ export interface RoutingStrategyListResponse {
178
+ paging: Shared.Paging;
179
+ results: Array<RoutingStrategySummary>;
180
+ }
181
+ /**
182
+ * Response returned by create and replace operations.
183
+ */
184
+ export interface RoutingStrategyMutationResponse {
185
+ /**
186
+ * The routing strategy ID (rs\_ prefix).
187
+ */
188
+ id: string;
189
+ }
190
+ /**
191
+ * Request body for replacing a routing strategy. Full document replacement;
192
+ * missing optional fields are cleared.
193
+ */
194
+ export interface RoutingStrategyReplaceRequest {
195
+ /**
196
+ * Human-readable name for the routing strategy.
197
+ */
198
+ name: string;
199
+ /**
200
+ * Routing tree defining channel selection method and order.
201
+ */
202
+ routing: Shared.MessageRouting;
203
+ /**
204
+ * Per-channel delivery configuration. Omit to clear.
205
+ */
206
+ channels?: Shared.MessageChannels | null;
207
+ /**
208
+ * Optional description. Omit or null to clear.
209
+ */
210
+ description?: string | null;
211
+ /**
212
+ * Per-provider delivery configuration. Omit to clear.
213
+ */
214
+ providers?: Shared.MessageProviders | null;
215
+ /**
216
+ * Optional tags. Omit or null to clear.
217
+ */
218
+ tags?: Array<string> | null;
219
+ }
220
+ /**
221
+ * Routing strategy metadata returned in list responses. Does not include
222
+ * routing/channels/providers content.
223
+ */
224
+ export interface RoutingStrategySummary {
225
+ /**
226
+ * The routing strategy ID (rs\_ prefix).
227
+ */
228
+ id: string;
229
+ /**
230
+ * Epoch milliseconds when the strategy was created.
231
+ */
232
+ created: number;
233
+ /**
234
+ * User ID of the creator.
235
+ */
236
+ creator: string;
237
+ /**
238
+ * Human-readable name.
239
+ */
240
+ name: string;
241
+ /**
242
+ * Description of the routing strategy.
243
+ */
244
+ description?: string | null;
245
+ /**
246
+ * Tags for categorization.
247
+ */
248
+ tags?: Array<string> | null;
249
+ /**
250
+ * Epoch milliseconds of last update.
251
+ */
252
+ updated?: number | null;
253
+ /**
254
+ * User ID of the last updater.
255
+ */
256
+ updater?: string | null;
257
+ }
258
+ export interface RoutingStrategyCreateParams {
259
+ /**
260
+ * Human-readable name for the routing strategy.
261
+ */
262
+ name: string;
263
+ /**
264
+ * Routing tree defining channel selection method and order.
265
+ */
266
+ routing: Shared.MessageRouting;
267
+ /**
268
+ * Per-channel delivery configuration. Defaults to empty if omitted.
269
+ */
270
+ channels?: Shared.MessageChannels | null;
271
+ /**
272
+ * Optional description of the routing strategy.
273
+ */
274
+ description?: string | null;
275
+ /**
276
+ * Per-provider delivery configuration. Defaults to empty if omitted.
277
+ */
278
+ providers?: Shared.MessageProviders | null;
279
+ /**
280
+ * Optional tags for categorization.
281
+ */
282
+ tags?: Array<string> | null;
283
+ }
284
+ export interface RoutingStrategyListParams {
285
+ /**
286
+ * Opaque pagination cursor from a previous response. Omit for the first page.
287
+ */
288
+ cursor?: string | null;
289
+ /**
290
+ * Maximum number of results per page. Default 20, max 100.
291
+ */
292
+ limit?: number;
293
+ }
294
+ export interface RoutingStrategyListNotificationsParams {
295
+ /**
296
+ * Opaque pagination cursor from a previous response. Omit for the first page.
297
+ */
298
+ cursor?: string | null;
299
+ /**
300
+ * Maximum number of results per page. Default 20, max 100.
301
+ */
302
+ limit?: number;
303
+ }
304
+ export interface RoutingStrategyReplaceParams {
305
+ /**
306
+ * Human-readable name for the routing strategy.
307
+ */
308
+ name: string;
309
+ /**
310
+ * Routing tree defining channel selection method and order.
311
+ */
312
+ routing: Shared.MessageRouting;
313
+ /**
314
+ * Per-channel delivery configuration. Omit to clear.
315
+ */
316
+ channels?: Shared.MessageChannels | null;
317
+ /**
318
+ * Optional description. Omit or null to clear.
319
+ */
320
+ description?: string | null;
321
+ /**
322
+ * Per-provider delivery configuration. Omit to clear.
323
+ */
324
+ providers?: Shared.MessageProviders | null;
325
+ /**
326
+ * Optional tags. Omit or null to clear.
327
+ */
328
+ tags?: Array<string> | null;
329
+ }
330
+ export declare namespace RoutingStrategies {
331
+ export { type AssociatedNotificationListResponse as AssociatedNotificationListResponse, type RoutingStrategyCreateRequest as RoutingStrategyCreateRequest, type RoutingStrategyGetResponse as RoutingStrategyGetResponse, type RoutingStrategyListResponse as RoutingStrategyListResponse, type RoutingStrategyMutationResponse as RoutingStrategyMutationResponse, type RoutingStrategyReplaceRequest as RoutingStrategyReplaceRequest, type RoutingStrategySummary as RoutingStrategySummary, type RoutingStrategyCreateParams as RoutingStrategyCreateParams, type RoutingStrategyListParams as RoutingStrategyListParams, type RoutingStrategyListNotificationsParams as RoutingStrategyListNotificationsParams, type RoutingStrategyReplaceParams as RoutingStrategyReplaceParams, };
332
+ }
333
+ //# sourceMappingURL=routing-strategies.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routing-strategies.d.mts","sourceRoot":"","sources":["../src/resources/routing-strategies.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,gBAAgB;OACrB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,iBAAkB,SAAQ,WAAW;IAChD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GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,sCAAsC;IACrD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,cAAc,CAAC;IAE/B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,eAAe,GAAG,IAAI,CAAC;IAEzC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAE3C;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;CAC7B;AAED,MAAM,CAAC,OAAO,WAAW,iBAAiB,CAAC;IACzC,OAAO,EACL,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
@@ -0,0 +1,333 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import * as Shared from "./shared.js";
3
+ import * as NotificationsAPI from "./notifications/notifications.js";
4
+ import { APIPromise } from "../core/api-promise.js";
5
+ import { RequestOptions } from "../internal/request-options.js";
6
+ export declare class RoutingStrategies extends APIResource {
7
+ /**
8
+ * Create a routing strategy. Requires a name and routing configuration at minimum.
9
+ * Channels and providers default to empty if omitted.
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const routingStrategyMutationResponse =
14
+ * await client.routingStrategies.create({
15
+ * name: 'Email via SendGrid',
16
+ * routing: { method: 'single', channels: ['email'] },
17
+ * channels: { email: { providers: ['sendgrid', 'ses'] } },
18
+ * description:
19
+ * 'Routes email through sendgrid with SES failover',
20
+ * providers: { sendgrid: { override: {} } },
21
+ * tags: ['production', 'email'],
22
+ * });
23
+ * ```
24
+ */
25
+ create(body: RoutingStrategyCreateParams, options?: RequestOptions): APIPromise<RoutingStrategyMutationResponse>;
26
+ /**
27
+ * Retrieve a routing strategy by ID. Returns the full entity including routing
28
+ * content and metadata.
29
+ *
30
+ * @example
31
+ * ```ts
32
+ * const routingStrategyGetResponse =
33
+ * await client.routingStrategies.retrieve('id');
34
+ * ```
35
+ */
36
+ retrieve(id: string, options?: RequestOptions): APIPromise<RoutingStrategyGetResponse>;
37
+ /**
38
+ * List routing strategies in your workspace. Returns metadata only (no
39
+ * routing/channels/providers content). Use GET /routing-strategies/{id} for full
40
+ * details.
41
+ *
42
+ * @example
43
+ * ```ts
44
+ * const routingStrategyListResponse =
45
+ * await client.routingStrategies.list();
46
+ * ```
47
+ */
48
+ list(query?: RoutingStrategyListParams | null | undefined, options?: RequestOptions): APIPromise<RoutingStrategyListResponse>;
49
+ /**
50
+ * Archive a routing strategy. The strategy must not have associated notification
51
+ * templates. Unlink all templates before archiving.
52
+ *
53
+ * @example
54
+ * ```ts
55
+ * await client.routingStrategies.archive('id');
56
+ * ```
57
+ */
58
+ archive(id: string, options?: RequestOptions): APIPromise<void>;
59
+ /**
60
+ * List notification templates associated with a routing strategy. Includes
61
+ * template metadata only, not full content.
62
+ *
63
+ * @example
64
+ * ```ts
65
+ * const associatedNotificationListResponse =
66
+ * await client.routingStrategies.listNotifications('id');
67
+ * ```
68
+ */
69
+ listNotifications(id: string, query?: RoutingStrategyListNotificationsParams | null | undefined, options?: RequestOptions): APIPromise<AssociatedNotificationListResponse>;
70
+ /**
71
+ * Replace a routing strategy. Full document replacement; the caller must send the
72
+ * complete desired state. Missing optional fields are cleared.
73
+ *
74
+ * @example
75
+ * ```ts
76
+ * const routingStrategyMutationResponse =
77
+ * await client.routingStrategies.replace('id', {
78
+ * name: 'Email via SendGrid v2',
79
+ * routing: { method: 'single', channels: ['email'] },
80
+ * channels: { email: { providers: ['ses', 'sendgrid'] } },
81
+ * description: 'Updated routing with SES primary',
82
+ * providers: { ses: { override: {} } },
83
+ * tags: ['production', 'email', 'v2'],
84
+ * });
85
+ * ```
86
+ */
87
+ replace(id: string, body: RoutingStrategyReplaceParams, options?: RequestOptions): APIPromise<RoutingStrategyMutationResponse>;
88
+ }
89
+ /**
90
+ * Paginated list of notification templates associated with a routing strategy.
91
+ */
92
+ export interface AssociatedNotificationListResponse {
93
+ paging: Shared.Paging;
94
+ results: Array<NotificationsAPI.NotificationTemplateSummary>;
95
+ }
96
+ /**
97
+ * Request body for creating a routing strategy.
98
+ */
99
+ export interface RoutingStrategyCreateRequest {
100
+ /**
101
+ * Human-readable name for the routing strategy.
102
+ */
103
+ name: string;
104
+ /**
105
+ * Routing tree defining channel selection method and order.
106
+ */
107
+ routing: Shared.MessageRouting;
108
+ /**
109
+ * Per-channel delivery configuration. Defaults to empty if omitted.
110
+ */
111
+ channels?: Shared.MessageChannels | null;
112
+ /**
113
+ * Optional description of the routing strategy.
114
+ */
115
+ description?: string | null;
116
+ /**
117
+ * Per-provider delivery configuration. Defaults to empty if omitted.
118
+ */
119
+ providers?: Shared.MessageProviders | null;
120
+ /**
121
+ * Optional tags for categorization.
122
+ */
123
+ tags?: Array<string> | null;
124
+ }
125
+ /**
126
+ * Full routing strategy entity returned by GET.
127
+ */
128
+ export interface RoutingStrategyGetResponse {
129
+ /**
130
+ * The routing strategy ID (rs\_ prefix).
131
+ */
132
+ id: string;
133
+ /**
134
+ * Per-channel delivery configuration. May be empty.
135
+ */
136
+ channels: Shared.MessageChannels;
137
+ /**
138
+ * Epoch milliseconds when the strategy was created.
139
+ */
140
+ created: number;
141
+ /**
142
+ * User ID of the creator.
143
+ */
144
+ creator: string;
145
+ /**
146
+ * Human-readable name.
147
+ */
148
+ name: string;
149
+ /**
150
+ * Per-provider delivery configuration. May be empty.
151
+ */
152
+ providers: Shared.MessageProviders;
153
+ /**
154
+ * Routing tree defining channel selection method and order.
155
+ */
156
+ routing: Shared.MessageRouting;
157
+ /**
158
+ * Description of the routing strategy.
159
+ */
160
+ description?: string | null;
161
+ /**
162
+ * Tags for categorization.
163
+ */
164
+ tags?: Array<string> | null;
165
+ /**
166
+ * Epoch milliseconds of last update.
167
+ */
168
+ updated?: number | null;
169
+ /**
170
+ * User ID of the last updater.
171
+ */
172
+ updater?: string | null;
173
+ }
174
+ /**
175
+ * Paginated list of routing strategy summaries.
176
+ */
177
+ export interface RoutingStrategyListResponse {
178
+ paging: Shared.Paging;
179
+ results: Array<RoutingStrategySummary>;
180
+ }
181
+ /**
182
+ * Response returned by create and replace operations.
183
+ */
184
+ export interface RoutingStrategyMutationResponse {
185
+ /**
186
+ * The routing strategy ID (rs\_ prefix).
187
+ */
188
+ id: string;
189
+ }
190
+ /**
191
+ * Request body for replacing a routing strategy. Full document replacement;
192
+ * missing optional fields are cleared.
193
+ */
194
+ export interface RoutingStrategyReplaceRequest {
195
+ /**
196
+ * Human-readable name for the routing strategy.
197
+ */
198
+ name: string;
199
+ /**
200
+ * Routing tree defining channel selection method and order.
201
+ */
202
+ routing: Shared.MessageRouting;
203
+ /**
204
+ * Per-channel delivery configuration. Omit to clear.
205
+ */
206
+ channels?: Shared.MessageChannels | null;
207
+ /**
208
+ * Optional description. Omit or null to clear.
209
+ */
210
+ description?: string | null;
211
+ /**
212
+ * Per-provider delivery configuration. Omit to clear.
213
+ */
214
+ providers?: Shared.MessageProviders | null;
215
+ /**
216
+ * Optional tags. Omit or null to clear.
217
+ */
218
+ tags?: Array<string> | null;
219
+ }
220
+ /**
221
+ * Routing strategy metadata returned in list responses. Does not include
222
+ * routing/channels/providers content.
223
+ */
224
+ export interface RoutingStrategySummary {
225
+ /**
226
+ * The routing strategy ID (rs\_ prefix).
227
+ */
228
+ id: string;
229
+ /**
230
+ * Epoch milliseconds when the strategy was created.
231
+ */
232
+ created: number;
233
+ /**
234
+ * User ID of the creator.
235
+ */
236
+ creator: string;
237
+ /**
238
+ * Human-readable name.
239
+ */
240
+ name: string;
241
+ /**
242
+ * Description of the routing strategy.
243
+ */
244
+ description?: string | null;
245
+ /**
246
+ * Tags for categorization.
247
+ */
248
+ tags?: Array<string> | null;
249
+ /**
250
+ * Epoch milliseconds of last update.
251
+ */
252
+ updated?: number | null;
253
+ /**
254
+ * User ID of the last updater.
255
+ */
256
+ updater?: string | null;
257
+ }
258
+ export interface RoutingStrategyCreateParams {
259
+ /**
260
+ * Human-readable name for the routing strategy.
261
+ */
262
+ name: string;
263
+ /**
264
+ * Routing tree defining channel selection method and order.
265
+ */
266
+ routing: Shared.MessageRouting;
267
+ /**
268
+ * Per-channel delivery configuration. Defaults to empty if omitted.
269
+ */
270
+ channels?: Shared.MessageChannels | null;
271
+ /**
272
+ * Optional description of the routing strategy.
273
+ */
274
+ description?: string | null;
275
+ /**
276
+ * Per-provider delivery configuration. Defaults to empty if omitted.
277
+ */
278
+ providers?: Shared.MessageProviders | null;
279
+ /**
280
+ * Optional tags for categorization.
281
+ */
282
+ tags?: Array<string> | null;
283
+ }
284
+ export interface RoutingStrategyListParams {
285
+ /**
286
+ * Opaque pagination cursor from a previous response. Omit for the first page.
287
+ */
288
+ cursor?: string | null;
289
+ /**
290
+ * Maximum number of results per page. Default 20, max 100.
291
+ */
292
+ limit?: number;
293
+ }
294
+ export interface RoutingStrategyListNotificationsParams {
295
+ /**
296
+ * Opaque pagination cursor from a previous response. Omit for the first page.
297
+ */
298
+ cursor?: string | null;
299
+ /**
300
+ * Maximum number of results per page. Default 20, max 100.
301
+ */
302
+ limit?: number;
303
+ }
304
+ export interface RoutingStrategyReplaceParams {
305
+ /**
306
+ * Human-readable name for the routing strategy.
307
+ */
308
+ name: string;
309
+ /**
310
+ * Routing tree defining channel selection method and order.
311
+ */
312
+ routing: Shared.MessageRouting;
313
+ /**
314
+ * Per-channel delivery configuration. Omit to clear.
315
+ */
316
+ channels?: Shared.MessageChannels | null;
317
+ /**
318
+ * Optional description. Omit or null to clear.
319
+ */
320
+ description?: string | null;
321
+ /**
322
+ * Per-provider delivery configuration. Omit to clear.
323
+ */
324
+ providers?: Shared.MessageProviders | null;
325
+ /**
326
+ * Optional tags. Omit or null to clear.
327
+ */
328
+ tags?: Array<string> | null;
329
+ }
330
+ export declare namespace RoutingStrategies {
331
+ export { type AssociatedNotificationListResponse as AssociatedNotificationListResponse, type RoutingStrategyCreateRequest as RoutingStrategyCreateRequest, type RoutingStrategyGetResponse as RoutingStrategyGetResponse, type RoutingStrategyListResponse as RoutingStrategyListResponse, type RoutingStrategyMutationResponse as RoutingStrategyMutationResponse, type RoutingStrategyReplaceRequest as RoutingStrategyReplaceRequest, type RoutingStrategySummary as RoutingStrategySummary, type RoutingStrategyCreateParams as RoutingStrategyCreateParams, type RoutingStrategyListParams as RoutingStrategyListParams, type RoutingStrategyListNotificationsParams as RoutingStrategyListNotificationsParams, type RoutingStrategyReplaceParams as RoutingStrategyReplaceParams, };
332
+ }
333
+ //# sourceMappingURL=routing-strategies.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routing-strategies.d.ts","sourceRoot":"","sources":["../src/resources/routing-strategies.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,gBAAgB;OACrB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,iBAAkB,SAAQ,WAAW;IAChD;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,C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