@trycourier/courier 7.8.0 → 7.9.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 (121) hide show
  1. package/CHANGELOG.md +24 -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/draft.d.mts +7 -0
  28. package/resources/notifications/draft.d.mts.map +1 -1
  29. package/resources/notifications/draft.d.ts +7 -0
  30. package/resources/notifications/draft.d.ts.map +1 -1
  31. package/resources/notifications/draft.js +7 -0
  32. package/resources/notifications/draft.js.map +1 -1
  33. package/resources/notifications/draft.mjs +7 -0
  34. package/resources/notifications/draft.mjs.map +1 -1
  35. package/resources/notifications/index.d.mts +1 -1
  36. package/resources/notifications/index.d.mts.map +1 -1
  37. package/resources/notifications/index.d.ts +1 -1
  38. package/resources/notifications/index.d.ts.map +1 -1
  39. package/resources/notifications/index.js.map +1 -1
  40. package/resources/notifications/index.mjs.map +1 -1
  41. package/resources/notifications/notifications.d.mts +369 -6
  42. package/resources/notifications/notifications.d.mts.map +1 -1
  43. package/resources/notifications/notifications.d.ts +369 -6
  44. package/resources/notifications/notifications.d.ts.map +1 -1
  45. package/resources/notifications/notifications.js +122 -0
  46. package/resources/notifications/notifications.js.map +1 -1
  47. package/resources/notifications/notifications.mjs +122 -0
  48. package/resources/notifications/notifications.mjs.map +1 -1
  49. package/resources/providers/catalog.d.mts +40 -0
  50. package/resources/providers/catalog.d.mts.map +1 -0
  51. package/resources/providers/catalog.d.ts +40 -0
  52. package/resources/providers/catalog.d.ts.map +1 -0
  53. package/resources/providers/catalog.js +18 -0
  54. package/resources/providers/catalog.js.map +1 -0
  55. package/resources/providers/catalog.mjs +14 -0
  56. package/resources/providers/catalog.mjs.map +1 -0
  57. package/resources/providers/index.d.mts +3 -0
  58. package/resources/providers/index.d.mts.map +1 -0
  59. package/resources/providers/index.d.ts +3 -0
  60. package/resources/providers/index.d.ts.map +1 -0
  61. package/resources/providers/index.js +9 -0
  62. package/resources/providers/index.js.map +1 -0
  63. package/resources/providers/index.mjs +4 -0
  64. package/resources/providers/index.mjs.map +1 -0
  65. package/resources/providers/providers.d.mts +182 -0
  66. package/resources/providers/providers.d.mts.map +1 -0
  67. package/resources/providers/providers.d.ts +182 -0
  68. package/resources/providers/providers.d.ts.map +1 -0
  69. package/resources/providers/providers.js +57 -0
  70. package/resources/providers/providers.js.map +1 -0
  71. package/resources/providers/providers.mjs +52 -0
  72. package/resources/providers/providers.mjs.map +1 -0
  73. package/resources/providers.d.mts +2 -0
  74. package/resources/providers.d.mts.map +1 -0
  75. package/resources/providers.d.ts +2 -0
  76. package/resources/providers.d.ts.map +1 -0
  77. package/resources/providers.js +6 -0
  78. package/resources/providers.js.map +1 -0
  79. package/resources/providers.mjs +3 -0
  80. package/resources/providers.mjs.map +1 -0
  81. package/resources/routing-strategies.d.mts +304 -0
  82. package/resources/routing-strategies.d.mts.map +1 -0
  83. package/resources/routing-strategies.d.ts +304 -0
  84. package/resources/routing-strategies.d.ts.map +1 -0
  85. package/resources/routing-strategies.js +94 -0
  86. package/resources/routing-strategies.js.map +1 -0
  87. package/resources/routing-strategies.mjs +90 -0
  88. package/resources/routing-strategies.mjs.map +1 -0
  89. package/resources/send.d.mts +2 -60
  90. package/resources/send.d.mts.map +1 -1
  91. package/resources/send.d.ts +2 -60
  92. package/resources/send.d.ts.map +1 -1
  93. package/resources/shared.d.mts +60 -1
  94. package/resources/shared.d.mts.map +1 -1
  95. package/resources/shared.d.ts +60 -1
  96. package/resources/shared.d.ts.map +1 -1
  97. package/resources/tenants/tenants.d.mts +2 -62
  98. package/resources/tenants/tenants.d.mts.map +1 -1
  99. package/resources/tenants/tenants.d.ts +2 -62
  100. package/resources/tenants/tenants.d.ts.map +1 -1
  101. package/resources/tenants/tenants.js.map +1 -1
  102. package/resources/tenants/tenants.mjs.map +1 -1
  103. package/src/client.ts +84 -0
  104. package/src/resources/index.ts +35 -0
  105. package/src/resources/notifications/checks.ts +35 -0
  106. package/src/resources/notifications/draft.ts +7 -0
  107. package/src/resources/notifications/index.ts +14 -0
  108. package/src/resources/notifications/notifications.ts +474 -5
  109. package/src/resources/providers/catalog.ts +53 -0
  110. package/src/resources/providers/index.ts +12 -0
  111. package/src/resources/providers/providers.ts +240 -0
  112. package/src/resources/providers.ts +3 -0
  113. package/src/resources/routing-strategies.ts +394 -0
  114. package/src/resources/send.ts +2 -67
  115. package/src/resources/shared.ts +71 -1
  116. package/src/resources/tenants/tenants.ts +2 -69
  117. package/src/version.ts +1 -1
  118. package/version.d.mts +1 -1
  119. package/version.d.ts +1 -1
  120. package/version.js +1 -1
  121. package/version.mjs +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"tenants.mjs","sourceRoot":"","sources":["../../src/resources/tenants/tenants.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,KAAK,cAAc;OACnB,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAML,SAAS,GACV;OAEM,EAAE,YAAY,EAAE;OAEhB,EA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;;;;;;OAOG;IACH,MAAM,CAAC,QAAgB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,YAAY,QAAQ,EAAE,EAAE;YACrD,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,SAAS,CACP,QAAgB,EAChB,QAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,QAAQ,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;CACF;AAkVD,OAAO,CAAC,WAAW,GAAG,WAAW,CAAC;AAClC,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC"}
package/src/client.ts CHANGED
@@ -87,6 +87,18 @@ import {
87
87
  Messages,
88
88
  } from './resources/messages';
89
89
  import { Requests } from './resources/requests';
90
+ import {
91
+ RoutingStrategies,
92
+ RoutingStrategyCreateParams,
93
+ RoutingStrategyCreateRequest,
94
+ RoutingStrategyGetResponse,
95
+ RoutingStrategyListParams,
96
+ RoutingStrategyListResponse,
97
+ RoutingStrategyMutationResponse,
98
+ RoutingStrategyReplaceParams,
99
+ RoutingStrategyReplaceRequest,
100
+ RoutingStrategySummary,
101
+ } from './resources/routing-strategies';
90
102
  import { Send, SendMessageParams, SendMessageResponse } from './resources/send';
91
103
  import {
92
104
  TranslationRetrieveParams,
@@ -113,10 +125,24 @@ import {
113
125
  import {
114
126
  BaseCheck,
115
127
  Check,
128
+ NotificationCreateParams,
116
129
  NotificationGetContent,
117
130
  NotificationListParams,
118
131
  NotificationListResponse,
132
+ NotificationListVersionsParams,
133
+ NotificationPublishParams,
134
+ NotificationReplaceParams,
135
+ NotificationRetrieveParams,
136
+ NotificationTemplateCreateRequest,
137
+ NotificationTemplateGetResponse,
138
+ NotificationTemplateMutationResponse,
139
+ NotificationTemplatePayload,
140
+ NotificationTemplatePublishRequest,
141
+ NotificationTemplateSummary,
142
+ NotificationTemplateUpdateRequest,
143
+ NotificationTemplateVersionListResponse,
119
144
  Notifications,
145
+ VersionNode,
120
146
  } from './resources/notifications/notifications';
121
147
  import {
122
148
  ProfileCreateParams,
@@ -128,6 +154,15 @@ import {
128
154
  Profiles,
129
155
  SubscribeToListsRequestItem,
130
156
  } from './resources/profiles/profiles';
157
+ import {
158
+ Provider,
159
+ ProviderCreateParams,
160
+ ProviderListParams,
161
+ ProviderListResponse,
162
+ ProviderUpdateParams,
163
+ Providers,
164
+ ProvidersCatalogEntry,
165
+ } from './resources/providers/providers';
131
166
  import {
132
167
  BaseTemplateTenantAssociation,
133
168
  DefaultPreferences,
@@ -846,6 +881,7 @@ export class Courier {
846
881
 
847
882
  send: API.Send = new API.Send(this);
848
883
  audiences: API.Audiences = new API.Audiences(this);
884
+ providers: API.Providers = new API.Providers(this);
849
885
  auditEvents: API.AuditEvents = new API.AuditEvents(this);
850
886
  auth: API.Auth = new API.Auth(this);
851
887
  automations: API.Automations = new API.Automations(this);
@@ -857,6 +893,7 @@ export class Courier {
857
893
  messages: API.Messages = new API.Messages(this);
858
894
  requests: API.Requests = new API.Requests(this);
859
895
  notifications: API.Notifications = new API.Notifications(this);
896
+ routingStrategies: API.RoutingStrategies = new API.RoutingStrategies(this);
860
897
  profiles: API.Profiles = new API.Profiles(this);
861
898
  tenants: API.Tenants = new API.Tenants(this);
862
899
  translations: API.Translations = new API.Translations(this);
@@ -865,6 +902,7 @@ export class Courier {
865
902
 
866
903
  Courier.Send = Send;
867
904
  Courier.Audiences = Audiences;
905
+ Courier.Providers = Providers;
868
906
  Courier.AuditEvents = AuditEvents;
869
907
  Courier.Auth = Auth;
870
908
  Courier.Automations = Automations;
@@ -876,6 +914,7 @@ Courier.Lists = Lists;
876
914
  Courier.Messages = Messages;
877
915
  Courier.Requests = Requests;
878
916
  Courier.Notifications = Notifications;
917
+ Courier.RoutingStrategies = RoutingStrategies;
879
918
  Courier.Profiles = Profiles;
880
919
  Courier.Tenants = Tenants;
881
920
  Courier.Translations = Translations;
@@ -901,6 +940,16 @@ export declare namespace Courier {
901
940
  type AudienceListMembersParams as AudienceListMembersParams,
902
941
  };
903
942
 
943
+ export {
944
+ Providers as Providers,
945
+ type Provider as Provider,
946
+ type ProvidersCatalogEntry as ProvidersCatalogEntry,
947
+ type ProviderListResponse as ProviderListResponse,
948
+ type ProviderCreateParams as ProviderCreateParams,
949
+ type ProviderUpdateParams as ProviderUpdateParams,
950
+ type ProviderListParams as ProviderListParams,
951
+ };
952
+
904
953
  export {
905
954
  AuditEvents as AuditEvents,
906
955
  type AuditEvent as AuditEvent,
@@ -1000,8 +1049,35 @@ export declare namespace Courier {
1000
1049
  type BaseCheck as BaseCheck,
1001
1050
  type Check as Check,
1002
1051
  type NotificationGetContent as NotificationGetContent,
1052
+ type NotificationTemplateCreateRequest as NotificationTemplateCreateRequest,
1053
+ type NotificationTemplateGetResponse as NotificationTemplateGetResponse,
1054
+ type NotificationTemplateMutationResponse as NotificationTemplateMutationResponse,
1055
+ type NotificationTemplatePayload as NotificationTemplatePayload,
1056
+ type NotificationTemplatePublishRequest as NotificationTemplatePublishRequest,
1057
+ type NotificationTemplateSummary as NotificationTemplateSummary,
1058
+ type NotificationTemplateUpdateRequest as NotificationTemplateUpdateRequest,
1059
+ type NotificationTemplateVersionListResponse as NotificationTemplateVersionListResponse,
1060
+ type VersionNode as VersionNode,
1003
1061
  type NotificationListResponse as NotificationListResponse,
1062
+ type NotificationCreateParams as NotificationCreateParams,
1063
+ type NotificationRetrieveParams as NotificationRetrieveParams,
1004
1064
  type NotificationListParams as NotificationListParams,
1065
+ type NotificationListVersionsParams as NotificationListVersionsParams,
1066
+ type NotificationPublishParams as NotificationPublishParams,
1067
+ type NotificationReplaceParams as NotificationReplaceParams,
1068
+ };
1069
+
1070
+ export {
1071
+ RoutingStrategies as RoutingStrategies,
1072
+ type RoutingStrategyCreateRequest as RoutingStrategyCreateRequest,
1073
+ type RoutingStrategyGetResponse as RoutingStrategyGetResponse,
1074
+ type RoutingStrategyListResponse as RoutingStrategyListResponse,
1075
+ type RoutingStrategyMutationResponse as RoutingStrategyMutationResponse,
1076
+ type RoutingStrategyReplaceRequest as RoutingStrategyReplaceRequest,
1077
+ type RoutingStrategySummary as RoutingStrategySummary,
1078
+ type RoutingStrategyCreateParams as RoutingStrategyCreateParams,
1079
+ type RoutingStrategyListParams as RoutingStrategyListParams,
1080
+ type RoutingStrategyReplaceParams as RoutingStrategyReplaceParams,
1005
1081
  };
1006
1082
 
1007
1083
  export {
@@ -1049,7 +1125,9 @@ export declare namespace Courier {
1049
1125
  export type AudienceFilter = API.AudienceFilter;
1050
1126
  export type AudienceFilterConfig = API.AudienceFilterConfig;
1051
1127
  export type AudienceRecipient = API.AudienceRecipient;
1128
+ export type Channel = API.Channel;
1052
1129
  export type ChannelClassification = API.ChannelClassification;
1130
+ export type ChannelMetadata = API.ChannelMetadata;
1053
1131
  export type ChannelPreference = API.ChannelPreference;
1054
1132
  export type DeviceType = API.DeviceType;
1055
1133
  export type Discord = API.Discord;
@@ -1060,6 +1138,7 @@ export declare namespace Courier {
1060
1138
  export type ElementalContent = API.ElementalContent;
1061
1139
  export type ElementalContentSugar = API.ElementalContentSugar;
1062
1140
  export type ElementalDividerNodeWithType = API.ElementalDividerNodeWithType;
1141
+ export type ElementalHTMLNodeWithType = API.ElementalHTMLNodeWithType;
1063
1142
  export type ElementalImageNodeWithType = API.ElementalImageNodeWithType;
1064
1143
  export type ElementalMetaNodeWithType = API.ElementalMetaNodeWithType;
1065
1144
  export type ElementalNode = API.ElementalNode;
@@ -1072,9 +1151,13 @@ export declare namespace Courier {
1072
1151
  export type ListFilter = API.ListFilter;
1073
1152
  export type ListPatternRecipient = API.ListPatternRecipient;
1074
1153
  export type ListRecipient = API.ListRecipient;
1154
+ export type MessageChannels = API.MessageChannels;
1075
1155
  export type MessageContext = API.MessageContext;
1156
+ export type MessageProviders = API.MessageProviders;
1157
+ export type MessageProvidersType = API.MessageProvidersType;
1076
1158
  export type MessageRouting = API.MessageRouting;
1077
1159
  export type MessageRoutingChannel = API.MessageRoutingChannel;
1160
+ export type Metadata = API.Metadata;
1078
1161
  export type MsTeams = API.MsTeams;
1079
1162
  export type MsTeamsBaseProperties = API.MsTeamsBaseProperties;
1080
1163
  export type MsTeamsRecipient = API.MsTeamsRecipient;
@@ -1101,6 +1184,7 @@ export declare namespace Courier {
1101
1184
  export type SlackBaseProperties = API.SlackBaseProperties;
1102
1185
  export type SlackRecipient = API.SlackRecipient;
1103
1186
  export type TextStyle = API.TextStyle;
1187
+ export type Timeouts = API.Timeouts;
1104
1188
  export type Token = API.Token;
1105
1189
  export type UserProfile = API.UserProfile;
1106
1190
  export type UserProfileFirebaseToken = API.UserProfileFirebaseToken;
@@ -91,8 +91,22 @@ export {
91
91
  type BaseCheck,
92
92
  type Check,
93
93
  type NotificationGetContent,
94
+ type NotificationTemplateCreateRequest,
95
+ type NotificationTemplateGetResponse,
96
+ type NotificationTemplateMutationResponse,
97
+ type NotificationTemplatePayload,
98
+ type NotificationTemplatePublishRequest,
99
+ type NotificationTemplateSummary,
100
+ type NotificationTemplateUpdateRequest,
101
+ type NotificationTemplateVersionListResponse,
102
+ type VersionNode,
94
103
  type NotificationListResponse,
104
+ type NotificationCreateParams,
105
+ type NotificationRetrieveParams,
95
106
  type NotificationListParams,
107
+ type NotificationListVersionsParams,
108
+ type NotificationPublishParams,
109
+ type NotificationReplaceParams,
96
110
  } from './notifications/notifications';
97
111
  export {
98
112
  Profiles,
@@ -104,7 +118,28 @@ export {
104
118
  type ProfileUpdateParams,
105
119
  type ProfileReplaceParams,
106
120
  } from './profiles/profiles';
121
+ export {
122
+ Providers,
123
+ type Provider,
124
+ type ProvidersCatalogEntry,
125
+ type ProviderListResponse,
126
+ type ProviderCreateParams,
127
+ type ProviderUpdateParams,
128
+ type ProviderListParams,
129
+ } from './providers/providers';
107
130
  export { Requests } from './requests';
131
+ export {
132
+ RoutingStrategies,
133
+ type RoutingStrategyCreateRequest,
134
+ type RoutingStrategyGetResponse,
135
+ type RoutingStrategyListResponse,
136
+ type RoutingStrategyMutationResponse,
137
+ type RoutingStrategyReplaceRequest,
138
+ type RoutingStrategySummary,
139
+ type RoutingStrategyCreateParams,
140
+ type RoutingStrategyListParams,
141
+ type RoutingStrategyReplaceParams,
142
+ } from './routing-strategies';
108
143
  export { Send, type SendMessageResponse, type SendMessageParams } from './send';
109
144
  export {
110
145
  Tenants,
@@ -8,6 +8,24 @@ import { RequestOptions } from '../../internal/request-options';
8
8
  import { path } from '../../internal/utils/path';
9
9
 
10
10
  export class Checks extends APIResource {
11
+ /**
12
+ * @example
13
+ * ```ts
14
+ * const check = await client.notifications.checks.update(
15
+ * 'submissionId',
16
+ * {
17
+ * id: 'id',
18
+ * checks: [
19
+ * {
20
+ * id: 'id',
21
+ * status: 'RESOLVED',
22
+ * type: 'custom',
23
+ * },
24
+ * ],
25
+ * },
26
+ * );
27
+ * ```
28
+ */
11
29
  update(
12
30
  submissionID: string,
13
31
  params: CheckUpdateParams,
@@ -17,6 +35,15 @@ export class Checks extends APIResource {
17
35
  return this._client.put(path`/notifications/${id}/${submissionID}/checks`, { body, ...options });
18
36
  }
19
37
 
38
+ /**
39
+ * @example
40
+ * ```ts
41
+ * const checks = await client.notifications.checks.list(
42
+ * 'submissionId',
43
+ * { id: 'id' },
44
+ * );
45
+ * ```
46
+ */
20
47
  list(
21
48
  submissionID: string,
22
49
  params: CheckListParams,
@@ -26,6 +53,14 @@ export class Checks extends APIResource {
26
53
  return this._client.get(path`/notifications/${id}/${submissionID}/checks`, options);
27
54
  }
28
55
 
56
+ /**
57
+ * @example
58
+ * ```ts
59
+ * await client.notifications.checks.delete('submissionId', {
60
+ * id: 'id',
61
+ * });
62
+ * ```
63
+ */
29
64
  delete(submissionID: string, params: CheckDeleteParams, options?: RequestOptions): APIPromise<void> {
30
65
  const { id } = params;
31
66
  return this._client.delete(path`/notifications/${id}/${submissionID}/checks`, {
@@ -7,6 +7,13 @@ import { RequestOptions } from '../../internal/request-options';
7
7
  import { path } from '../../internal/utils/path';
8
8
 
9
9
  export class Draft extends APIResource {
10
+ /**
11
+ * @example
12
+ * ```ts
13
+ * const notificationGetContent =
14
+ * await client.notifications.draft.retrieveContent('id');
15
+ * ```
16
+ */
10
17
  retrieveContent(id: string, options?: RequestOptions): APIPromise<NotificationsAPI.NotificationGetContent> {
11
18
  return this._client.get(path`/notifications/${id}/draft/content`, options);
12
19
  }
@@ -14,6 +14,20 @@ export {
14
14
  type BaseCheck,
15
15
  type Check,
16
16
  type NotificationGetContent,
17
+ type NotificationTemplateCreateRequest,
18
+ type NotificationTemplateGetResponse,
19
+ type NotificationTemplateMutationResponse,
20
+ type NotificationTemplatePayload,
21
+ type NotificationTemplatePublishRequest,
22
+ type NotificationTemplateSummary,
23
+ type NotificationTemplateUpdateRequest,
24
+ type NotificationTemplateVersionListResponse,
25
+ type VersionNode,
17
26
  type NotificationListResponse,
27
+ type NotificationCreateParams,
28
+ type NotificationRetrieveParams,
18
29
  type NotificationListParams,
30
+ type NotificationListVersionsParams,
31
+ type NotificationPublishParams,
32
+ type NotificationReplaceParams,
19
33
  } from './notifications';