@trycourier/courier 7.9.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 (61) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/client.d.mts +4 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +4 -4
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/index.d.mts +2 -2
  10. package/resources/index.d.mts.map +1 -1
  11. package/resources/index.d.ts +2 -2
  12. package/resources/index.d.ts.map +1 -1
  13. package/resources/index.js.map +1 -1
  14. package/resources/index.mjs.map +1 -1
  15. package/resources/notifications/index.d.mts +1 -2
  16. package/resources/notifications/index.d.mts.map +1 -1
  17. package/resources/notifications/index.d.ts +1 -2
  18. package/resources/notifications/index.d.ts.map +1 -1
  19. package/resources/notifications/index.js +1 -3
  20. package/resources/notifications/index.js.map +1 -1
  21. package/resources/notifications/index.mjs +0 -1
  22. package/resources/notifications/index.mjs.map +1 -1
  23. package/resources/notifications/notifications.d.mts +301 -8
  24. package/resources/notifications/notifications.d.mts.map +1 -1
  25. package/resources/notifications/notifications.d.ts +301 -8
  26. package/resources/notifications/notifications.d.ts.map +1 -1
  27. package/resources/notifications/notifications.js +71 -8
  28. package/resources/notifications/notifications.js.map +1 -1
  29. package/resources/notifications/notifications.mjs +71 -8
  30. package/resources/notifications/notifications.mjs.map +1 -1
  31. package/resources/routing-strategies.d.mts +30 -1
  32. package/resources/routing-strategies.d.mts.map +1 -1
  33. package/resources/routing-strategies.d.ts +30 -1
  34. package/resources/routing-strategies.d.ts.map +1 -1
  35. package/resources/routing-strategies.js +13 -0
  36. package/resources/routing-strategies.js.map +1 -1
  37. package/resources/routing-strategies.mjs +13 -0
  38. package/resources/routing-strategies.mjs.map +1 -1
  39. package/src/client.ts +28 -0
  40. package/src/resources/index.ts +14 -0
  41. package/src/resources/notifications/index.ts +12 -1
  42. package/src/resources/notifications/notifications.ts +386 -10
  43. package/src/resources/routing-strategies.ts +42 -0
  44. package/src/version.ts +1 -1
  45. package/version.d.mts +1 -1
  46. package/version.d.mts.map +1 -1
  47. package/version.d.ts +1 -1
  48. package/version.d.ts.map +1 -1
  49. package/version.js +1 -1
  50. package/version.js.map +1 -1
  51. package/version.mjs +1 -1
  52. package/version.mjs.map +1 -1
  53. package/resources/notifications/draft.d.mts +0 -15
  54. package/resources/notifications/draft.d.mts.map +0 -1
  55. package/resources/notifications/draft.d.ts +0 -15
  56. package/resources/notifications/draft.d.ts.map +0 -1
  57. package/resources/notifications/draft.js +0 -20
  58. package/resources/notifications/draft.js.map +0 -1
  59. package/resources/notifications/draft.mjs +0 -16
  60. package/resources/notifications/draft.mjs.map +0 -1
  61. package/src/resources/notifications/draft.ts +0 -20
@@ -1,5 +1,6 @@
1
1
  import { APIResource } from "../core/resource.mjs";
2
2
  import * as Shared from "./shared.mjs";
3
+ import * as NotificationsAPI from "./notifications/notifications.mjs";
3
4
  import { APIPromise } from "../core/api-promise.mjs";
4
5
  import { RequestOptions } from "../internal/request-options.mjs";
5
6
  export declare class RoutingStrategies extends APIResource {
@@ -55,6 +56,17 @@ export declare class RoutingStrategies extends APIResource {
55
56
  * ```
56
57
  */
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>;
58
70
  /**
59
71
  * Replace a routing strategy. Full document replacement; the caller must send the
60
72
  * complete desired state. Missing optional fields are cleared.
@@ -74,6 +86,13 @@ export declare class RoutingStrategies extends APIResource {
74
86
  */
75
87
  replace(id: string, body: RoutingStrategyReplaceParams, options?: RequestOptions): APIPromise<RoutingStrategyMutationResponse>;
76
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
+ }
77
96
  /**
78
97
  * Request body for creating a routing strategy.
79
98
  */
@@ -272,6 +291,16 @@ export interface RoutingStrategyListParams {
272
291
  */
273
292
  limit?: number;
274
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
+ }
275
304
  export interface RoutingStrategyReplaceParams {
276
305
  /**
277
306
  * Human-readable name for the routing strategy.
@@ -299,6 +328,6 @@ export interface RoutingStrategyReplaceParams {
299
328
  tags?: Array<string> | null;
300
329
  }
301
330
  export declare namespace RoutingStrategies {
302
- export { 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 RoutingStrategyReplaceParams as RoutingStrategyReplaceParams, };
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, };
303
332
  }
304
333
  //# sourceMappingURL=routing-strategies.d.mts.map
@@ -1 +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,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,iBAAkB,SAAQ,WAAW;IAChD;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CACJ,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,+BAA+B,CAAC;IAI9C;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAItF;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;IAI1C;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAO/D;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,CACL,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,4BAA4B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,+BAA+B,CAAC;CAG/C;AAED;;GAEG;AACH,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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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"}
@@ -1,5 +1,6 @@
1
1
  import { APIResource } from "../core/resource.js";
2
2
  import * as Shared from "./shared.js";
3
+ import * as NotificationsAPI from "./notifications/notifications.js";
3
4
  import { APIPromise } from "../core/api-promise.js";
4
5
  import { RequestOptions } from "../internal/request-options.js";
5
6
  export declare class RoutingStrategies extends APIResource {
@@ -55,6 +56,17 @@ export declare class RoutingStrategies extends APIResource {
55
56
  * ```
56
57
  */
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>;
58
70
  /**
59
71
  * Replace a routing strategy. Full document replacement; the caller must send the
60
72
  * complete desired state. Missing optional fields are cleared.
@@ -74,6 +86,13 @@ export declare class RoutingStrategies extends APIResource {
74
86
  */
75
87
  replace(id: string, body: RoutingStrategyReplaceParams, options?: RequestOptions): APIPromise<RoutingStrategyMutationResponse>;
76
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
+ }
77
96
  /**
78
97
  * Request body for creating a routing strategy.
79
98
  */
@@ -272,6 +291,16 @@ export interface RoutingStrategyListParams {
272
291
  */
273
292
  limit?: number;
274
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
+ }
275
304
  export interface RoutingStrategyReplaceParams {
276
305
  /**
277
306
  * Human-readable name for the routing strategy.
@@ -299,6 +328,6 @@ export interface RoutingStrategyReplaceParams {
299
328
  tags?: Array<string> | null;
300
329
  }
301
330
  export declare namespace RoutingStrategies {
302
- export { 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 RoutingStrategyReplaceParams as RoutingStrategyReplaceParams, };
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, };
303
332
  }
304
333
  //# sourceMappingURL=routing-strategies.d.ts.map
@@ -1 +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,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,iBAAkB,SAAQ,WAAW;IAChD;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CACJ,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,+BAA+B,CAAC;IAI9C;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAItF;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACxD,OA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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,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
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,CACJ,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,+BAA+B,CAAC;IAI9C;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAItF;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;IAI1C;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAO/D;;;;;;;;;OASG;IACH,iBAAiB,CACf,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,sCAAsC,GAAG,IAAI,GAAG,SAAc,EACrE,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kCAAkC,CAAC;IAIjD;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,CACL,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,4BAA4B,EAClC,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0B,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"}
@@ -69,6 +69,19 @@ class RoutingStrategies extends resource_1.APIResource {
69
69
  headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
70
70
  });
71
71
  }
72
+ /**
73
+ * List notification templates associated with a routing strategy. Includes
74
+ * template metadata only, not full content.
75
+ *
76
+ * @example
77
+ * ```ts
78
+ * const associatedNotificationListResponse =
79
+ * await client.routingStrategies.listNotifications('id');
80
+ * ```
81
+ */
82
+ listNotifications(id, query = {}, options) {
83
+ return this._client.get((0, path_1.path) `/routing-strategies/${id}/notifications`, { query, ...options });
84
+ }
72
85
  /**
73
86
  * Replace a routing strategy. Full document replacement; the caller must send the
74
87
  * complete desired state. Missing optional fields are cleared.
@@ -1 +1 @@
1
- {"version":3,"file":"routing-strategies.js","sourceRoot":"","sources":["../src/resources/routing-strategies.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAAmD;AAEnD,oDAA8C;AAE9C,MAAa,iBAAkB,SAAQ,sBAAW;IAChD;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CACJ,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,G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CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,uBAAuB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAU,EAAE,OAAwB;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,uBAAuB,EAAE,EAAE,EAAE;YAC1D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,iBAAiB,CACf,EAAU,EACV,QAAmE,EAAE,EACrE,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,uBAAuB,EAAE,gBAAgB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,CACL,EAAU,EACV,IAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,uBAAuB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF;AApHD,8CAoHC"}
@@ -66,6 +66,19 @@ export class RoutingStrategies extends APIResource {
66
66
  headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
67
67
  });
68
68
  }
69
+ /**
70
+ * List notification templates associated with a routing strategy. Includes
71
+ * template metadata only, not full content.
72
+ *
73
+ * @example
74
+ * ```ts
75
+ * const associatedNotificationListResponse =
76
+ * await client.routingStrategies.listNotifications('id');
77
+ * ```
78
+ */
79
+ listNotifications(id, query = {}, options) {
80
+ return this._client.get(path `/routing-strategies/${id}/notifications`, { query, ...options });
81
+ }
69
82
  /**
70
83
  * Replace a routing strategy. Full document replacement; the caller must send the
71
84
  * complete desired state. Missing optional fields are cleared.
@@ -1 +1 @@
1
- {"version":3,"file":"routing-strategies.mjs","sourceRoot":"","sources":["../src/resources/routing-strategies.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,iBAAkB,SAAQ,WAAW;IAChD;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CACJ,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,uBAAuB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAU,EAAE,OAAwB;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,uBAAuB,EAAE,EAAE,EAAE;YAC1D,GAAG,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C,IAAI,CAAA,uBAAuB,EAAE,EAAE,EAAE;YAC1D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,iBAAiB,CACf,EAAU,EACV,QAAmE,EAAE,EACrE,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,uBAAuB,EAAE,gBAAgB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,CACL,EAAU,EACV,IAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,uBAAuB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF"}
package/src/client.ts CHANGED
@@ -88,10 +88,12 @@ import {
88
88
  } from './resources/messages';
89
89
  import { Requests } from './resources/requests';
90
90
  import {
91
+ AssociatedNotificationListResponse,
91
92
  RoutingStrategies,
92
93
  RoutingStrategyCreateParams,
93
94
  RoutingStrategyCreateRequest,
94
95
  RoutingStrategyGetResponse,
96
+ RoutingStrategyListNotificationsParams,
95
97
  RoutingStrategyListParams,
96
98
  RoutingStrategyListResponse,
97
99
  RoutingStrategyMutationResponse,
@@ -125,19 +127,31 @@ import {
125
127
  import {
126
128
  BaseCheck,
127
129
  Check,
130
+ ElementWithChecksums,
131
+ NotificationContentGetResponse,
132
+ NotificationContentMutationResponse,
133
+ NotificationContentPutRequest,
128
134
  NotificationCreateParams,
135
+ NotificationElementPutRequest,
129
136
  NotificationGetContent,
130
137
  NotificationListParams,
131
138
  NotificationListResponse,
132
139
  NotificationListVersionsParams,
140
+ NotificationLocalePutRequest,
133
141
  NotificationPublishParams,
142
+ NotificationPutContentParams,
143
+ NotificationPutElementParams,
144
+ NotificationPutLocaleParams,
134
145
  NotificationReplaceParams,
146
+ NotificationRetrieveContentParams,
147
+ NotificationRetrieveContentResponse,
135
148
  NotificationRetrieveParams,
136
149
  NotificationTemplateCreateRequest,
137
150
  NotificationTemplateGetResponse,
138
151
  NotificationTemplateMutationResponse,
139
152
  NotificationTemplatePayload,
140
153
  NotificationTemplatePublishRequest,
154
+ NotificationTemplateState,
141
155
  NotificationTemplateSummary,
142
156
  NotificationTemplateUpdateRequest,
143
157
  NotificationTemplateVersionListResponse,
@@ -1048,27 +1062,40 @@ export declare namespace Courier {
1048
1062
  Notifications as Notifications,
1049
1063
  type BaseCheck as BaseCheck,
1050
1064
  type Check as Check,
1065
+ type ElementWithChecksums as ElementWithChecksums,
1066
+ type NotificationContentGetResponse as NotificationContentGetResponse,
1067
+ type NotificationContentMutationResponse as NotificationContentMutationResponse,
1068
+ type NotificationContentPutRequest as NotificationContentPutRequest,
1069
+ type NotificationElementPutRequest as NotificationElementPutRequest,
1051
1070
  type NotificationGetContent as NotificationGetContent,
1071
+ type NotificationLocalePutRequest as NotificationLocalePutRequest,
1052
1072
  type NotificationTemplateCreateRequest as NotificationTemplateCreateRequest,
1053
1073
  type NotificationTemplateGetResponse as NotificationTemplateGetResponse,
1054
1074
  type NotificationTemplateMutationResponse as NotificationTemplateMutationResponse,
1055
1075
  type NotificationTemplatePayload as NotificationTemplatePayload,
1056
1076
  type NotificationTemplatePublishRequest as NotificationTemplatePublishRequest,
1077
+ type NotificationTemplateState as NotificationTemplateState,
1057
1078
  type NotificationTemplateSummary as NotificationTemplateSummary,
1058
1079
  type NotificationTemplateUpdateRequest as NotificationTemplateUpdateRequest,
1059
1080
  type NotificationTemplateVersionListResponse as NotificationTemplateVersionListResponse,
1060
1081
  type VersionNode as VersionNode,
1061
1082
  type NotificationListResponse as NotificationListResponse,
1083
+ type NotificationRetrieveContentResponse as NotificationRetrieveContentResponse,
1062
1084
  type NotificationCreateParams as NotificationCreateParams,
1063
1085
  type NotificationRetrieveParams as NotificationRetrieveParams,
1064
1086
  type NotificationListParams as NotificationListParams,
1065
1087
  type NotificationListVersionsParams as NotificationListVersionsParams,
1066
1088
  type NotificationPublishParams as NotificationPublishParams,
1089
+ type NotificationPutContentParams as NotificationPutContentParams,
1090
+ type NotificationPutElementParams as NotificationPutElementParams,
1091
+ type NotificationPutLocaleParams as NotificationPutLocaleParams,
1067
1092
  type NotificationReplaceParams as NotificationReplaceParams,
1093
+ type NotificationRetrieveContentParams as NotificationRetrieveContentParams,
1068
1094
  };
1069
1095
 
1070
1096
  export {
1071
1097
  RoutingStrategies as RoutingStrategies,
1098
+ type AssociatedNotificationListResponse as AssociatedNotificationListResponse,
1072
1099
  type RoutingStrategyCreateRequest as RoutingStrategyCreateRequest,
1073
1100
  type RoutingStrategyGetResponse as RoutingStrategyGetResponse,
1074
1101
  type RoutingStrategyListResponse as RoutingStrategyListResponse,
@@ -1077,6 +1104,7 @@ export declare namespace Courier {
1077
1104
  type RoutingStrategySummary as RoutingStrategySummary,
1078
1105
  type RoutingStrategyCreateParams as RoutingStrategyCreateParams,
1079
1106
  type RoutingStrategyListParams as RoutingStrategyListParams,
1107
+ type RoutingStrategyListNotificationsParams as RoutingStrategyListNotificationsParams,
1080
1108
  type RoutingStrategyReplaceParams as RoutingStrategyReplaceParams,
1081
1109
  };
1082
1110
 
@@ -90,23 +90,35 @@ export {
90
90
  Notifications,
91
91
  type BaseCheck,
92
92
  type Check,
93
+ type ElementWithChecksums,
94
+ type NotificationContentGetResponse,
95
+ type NotificationContentMutationResponse,
96
+ type NotificationContentPutRequest,
97
+ type NotificationElementPutRequest,
93
98
  type NotificationGetContent,
99
+ type NotificationLocalePutRequest,
94
100
  type NotificationTemplateCreateRequest,
95
101
  type NotificationTemplateGetResponse,
96
102
  type NotificationTemplateMutationResponse,
97
103
  type NotificationTemplatePayload,
98
104
  type NotificationTemplatePublishRequest,
105
+ type NotificationTemplateState,
99
106
  type NotificationTemplateSummary,
100
107
  type NotificationTemplateUpdateRequest,
101
108
  type NotificationTemplateVersionListResponse,
102
109
  type VersionNode,
103
110
  type NotificationListResponse,
111
+ type NotificationRetrieveContentResponse,
104
112
  type NotificationCreateParams,
105
113
  type NotificationRetrieveParams,
106
114
  type NotificationListParams,
107
115
  type NotificationListVersionsParams,
108
116
  type NotificationPublishParams,
117
+ type NotificationPutContentParams,
118
+ type NotificationPutElementParams,
119
+ type NotificationPutLocaleParams,
109
120
  type NotificationReplaceParams,
121
+ type NotificationRetrieveContentParams,
110
122
  } from './notifications/notifications';
111
123
  export {
112
124
  Profiles,
@@ -130,6 +142,7 @@ export {
130
142
  export { Requests } from './requests';
131
143
  export {
132
144
  RoutingStrategies,
145
+ type AssociatedNotificationListResponse,
133
146
  type RoutingStrategyCreateRequest,
134
147
  type RoutingStrategyGetResponse,
135
148
  type RoutingStrategyListResponse,
@@ -138,6 +151,7 @@ export {
138
151
  type RoutingStrategySummary,
139
152
  type RoutingStrategyCreateParams,
140
153
  type RoutingStrategyListParams,
154
+ type RoutingStrategyListNotificationsParams,
141
155
  type RoutingStrategyReplaceParams,
142
156
  } from './routing-strategies';
143
157
  export { Send, type SendMessageResponse, type SendMessageParams } from './send';
@@ -8,26 +8,37 @@ export {
8
8
  type CheckListParams,
9
9
  type CheckDeleteParams,
10
10
  } from './checks';
11
- export { Draft } from './draft';
12
11
  export {
13
12
  Notifications,
14
13
  type BaseCheck,
15
14
  type Check,
15
+ type ElementWithChecksums,
16
+ type NotificationContentGetResponse,
17
+ type NotificationContentMutationResponse,
18
+ type NotificationContentPutRequest,
19
+ type NotificationElementPutRequest,
16
20
  type NotificationGetContent,
21
+ type NotificationLocalePutRequest,
17
22
  type NotificationTemplateCreateRequest,
18
23
  type NotificationTemplateGetResponse,
19
24
  type NotificationTemplateMutationResponse,
20
25
  type NotificationTemplatePayload,
21
26
  type NotificationTemplatePublishRequest,
27
+ type NotificationTemplateState,
22
28
  type NotificationTemplateSummary,
23
29
  type NotificationTemplateUpdateRequest,
24
30
  type NotificationTemplateVersionListResponse,
25
31
  type VersionNode,
26
32
  type NotificationListResponse,
33
+ type NotificationRetrieveContentResponse,
27
34
  type NotificationCreateParams,
28
35
  type NotificationRetrieveParams,
29
36
  type NotificationListParams,
30
37
  type NotificationListVersionsParams,
31
38
  type NotificationPublishParams,
39
+ type NotificationPutContentParams,
40
+ type NotificationPutElementParams,
41
+ type NotificationPutLocaleParams,
32
42
  type NotificationReplaceParams,
43
+ type NotificationRetrieveContentParams,
33
44
  } from './notifications';