@iterable/api 0.0.1

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 (135) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +74 -0
  3. package/dist/client/base.d.ts +33 -0
  4. package/dist/client/base.d.ts.map +1 -0
  5. package/dist/client/base.js +155 -0
  6. package/dist/client/base.js.map +1 -0
  7. package/dist/client/campaigns.d.ts +71 -0
  8. package/dist/client/campaigns.d.ts.map +1 -0
  9. package/dist/client/campaigns.js +125 -0
  10. package/dist/client/campaigns.js.map +1 -0
  11. package/dist/client/catalogs.d.ts +60 -0
  12. package/dist/client/catalogs.d.ts.map +1 -0
  13. package/dist/client/catalogs.js +138 -0
  14. package/dist/client/catalogs.js.map +1 -0
  15. package/dist/client/events.d.ts +38 -0
  16. package/dist/client/events.d.ts.map +1 -0
  17. package/dist/client/events.js +38 -0
  18. package/dist/client/events.js.map +1 -0
  19. package/dist/client/experiments.d.ts +24 -0
  20. package/dist/client/experiments.d.ts.map +1 -0
  21. package/dist/client/experiments.js +29 -0
  22. package/dist/client/experiments.js.map +1 -0
  23. package/dist/client/export.d.ts +27 -0
  24. package/dist/client/export.d.ts.map +1 -0
  25. package/dist/client/export.js +31 -0
  26. package/dist/client/export.js.map +1 -0
  27. package/dist/client/index.d.ts +315 -0
  28. package/dist/client/index.d.ts.map +1 -0
  29. package/dist/client/index.js +25 -0
  30. package/dist/client/index.js.map +1 -0
  31. package/dist/client/journeys.d.ts +26 -0
  32. package/dist/client/journeys.d.ts.map +1 -0
  33. package/dist/client/journeys.js +32 -0
  34. package/dist/client/journeys.js.map +1 -0
  35. package/dist/client/lists.d.ts +39 -0
  36. package/dist/client/lists.d.ts.map +1 -0
  37. package/dist/client/lists.js +80 -0
  38. package/dist/client/lists.js.map +1 -0
  39. package/dist/client/messaging.d.ts +39 -0
  40. package/dist/client/messaging.d.ts.map +1 -0
  41. package/dist/client/messaging.js +110 -0
  42. package/dist/client/messaging.js.map +1 -0
  43. package/dist/client/snippets.d.ts +37 -0
  44. package/dist/client/snippets.d.ts.map +1 -0
  45. package/dist/client/snippets.js +29 -0
  46. package/dist/client/snippets.js.map +1 -0
  47. package/dist/client/subscriptions.d.ts +26 -0
  48. package/dist/client/subscriptions.d.ts.map +1 -0
  49. package/dist/client/subscriptions.js +31 -0
  50. package/dist/client/subscriptions.js.map +1 -0
  51. package/dist/client/templates.d.ts +52 -0
  52. package/dist/client/templates.d.ts.map +1 -0
  53. package/dist/client/templates.js +132 -0
  54. package/dist/client/templates.js.map +1 -0
  55. package/dist/client/users.d.ts +76 -0
  56. package/dist/client/users.d.ts.map +1 -0
  57. package/dist/client/users.js +115 -0
  58. package/dist/client/users.js.map +1 -0
  59. package/dist/client/webhooks.d.ts +25 -0
  60. package/dist/client/webhooks.d.ts.map +1 -0
  61. package/dist/client/webhooks.js +17 -0
  62. package/dist/client/webhooks.js.map +1 -0
  63. package/dist/config.d.ts +26 -0
  64. package/dist/config.d.ts.map +1 -0
  65. package/dist/config.js +51 -0
  66. package/dist/config.js.map +1 -0
  67. package/dist/errors.d.ts +45 -0
  68. package/dist/errors.d.ts.map +1 -0
  69. package/dist/errors.js +144 -0
  70. package/dist/errors.js.map +1 -0
  71. package/dist/index.d.ts +21 -0
  72. package/dist/index.d.ts.map +1 -0
  73. package/dist/index.js +25 -0
  74. package/dist/index.js.map +1 -0
  75. package/dist/logger.d.ts +3 -0
  76. package/dist/logger.d.ts.map +1 -0
  77. package/dist/logger.js +32 -0
  78. package/dist/logger.js.map +1 -0
  79. package/dist/types/campaigns.d.ts +307 -0
  80. package/dist/types/campaigns.d.ts.map +1 -0
  81. package/dist/types/campaigns.js +226 -0
  82. package/dist/types/campaigns.js.map +1 -0
  83. package/dist/types/catalogs.d.ts +138 -0
  84. package/dist/types/catalogs.d.ts.map +1 -0
  85. package/dist/types/catalogs.js +139 -0
  86. package/dist/types/catalogs.js.map +1 -0
  87. package/dist/types/common.d.ts +145 -0
  88. package/dist/types/common.d.ts.map +1 -0
  89. package/dist/types/common.js +110 -0
  90. package/dist/types/common.js.map +1 -0
  91. package/dist/types/events.d.ts +124 -0
  92. package/dist/types/events.d.ts.map +1 -0
  93. package/dist/types/events.js +118 -0
  94. package/dist/types/events.js.map +1 -0
  95. package/dist/types/experiments.d.ts +14 -0
  96. package/dist/types/experiments.d.ts.map +1 -0
  97. package/dist/types/experiments.js +24 -0
  98. package/dist/types/experiments.js.map +1 -0
  99. package/dist/types/export.d.ts +121 -0
  100. package/dist/types/export.d.ts.map +1 -0
  101. package/dist/types/export.js +105 -0
  102. package/dist/types/export.js.map +1 -0
  103. package/dist/types/journeys.d.ts +72 -0
  104. package/dist/types/journeys.d.ts.map +1 -0
  105. package/dist/types/journeys.js +65 -0
  106. package/dist/types/journeys.js.map +1 -0
  107. package/dist/types/lists.d.ts +149 -0
  108. package/dist/types/lists.d.ts.map +1 -0
  109. package/dist/types/lists.js +140 -0
  110. package/dist/types/lists.js.map +1 -0
  111. package/dist/types/messaging.d.ts +246 -0
  112. package/dist/types/messaging.d.ts.map +1 -0
  113. package/dist/types/messaging.js +323 -0
  114. package/dist/types/messaging.js.map +1 -0
  115. package/dist/types/snippets.d.ts +89 -0
  116. package/dist/types/snippets.d.ts.map +1 -0
  117. package/dist/types/snippets.js +85 -0
  118. package/dist/types/snippets.js.map +1 -0
  119. package/dist/types/subscriptions.d.ts +63 -0
  120. package/dist/types/subscriptions.d.ts.map +1 -0
  121. package/dist/types/subscriptions.js +40 -0
  122. package/dist/types/subscriptions.js.map +1 -0
  123. package/dist/types/templates.d.ts +315 -0
  124. package/dist/types/templates.d.ts.map +1 -0
  125. package/dist/types/templates.js +357 -0
  126. package/dist/types/templates.js.map +1 -0
  127. package/dist/types/users.d.ts +144 -0
  128. package/dist/types/users.d.ts.map +1 -0
  129. package/dist/types/users.js +189 -0
  130. package/dist/types/users.js.map +1 -0
  131. package/dist/types/webhooks.d.ts +52 -0
  132. package/dist/types/webhooks.d.ts.map +1 -0
  133. package/dist/types/webhooks.js +32 -0
  134. package/dist/types/webhooks.js.map +1 -0
  135. package/package.json +73 -0
@@ -0,0 +1,323 @@
1
+ import { z } from "zod";
2
+ import { IterableDateTimeSchema, UnixTimestampSchema } from "./common.js";
3
+ /**
4
+ * Messaging schemas and types for all communication channels
5
+ * Includes channels, message types, and messaging operations
6
+ */
7
+ export const ChannelSchema = z.object({
8
+ id: z.number(),
9
+ name: z.string(),
10
+ channelType: z.string(),
11
+ messageMedium: z.string(),
12
+ });
13
+ export const ChannelsResponseSchema = z.object({
14
+ channels: z.array(ChannelSchema),
15
+ });
16
+ export const MessageTypeSchema = z.object({
17
+ id: z.number(),
18
+ name: z.string(),
19
+ channelId: z.number(),
20
+ subscriptionPolicy: z.string().optional(),
21
+ rateLimitPerMinute: z.number().optional(),
22
+ });
23
+ export const MessageTypesResponseSchema = z.object({
24
+ messageTypes: z.array(MessageTypeSchema),
25
+ });
26
+ export const GetChannelsParamsSchema = z
27
+ .object({})
28
+ .describe("No parameters required for getting channels");
29
+ export const GetMessageTypesParamsSchema = z
30
+ .object({})
31
+ .describe("No parameters required for getting message types");
32
+ export const SendEmailParamsSchema = z
33
+ .object({
34
+ campaignId: z.number().describe("Campaign ID to send"),
35
+ recipientEmail: z.email().optional().describe("Recipient email address"),
36
+ recipientUserId: z
37
+ .string()
38
+ .optional()
39
+ .describe("Recipient user ID (alternative to email)"),
40
+ dataFields: z
41
+ .record(z.string(), z.any())
42
+ .optional()
43
+ .describe("Data fields for email personalization"),
44
+ sendAt: IterableDateTimeSchema.optional().describe("When to send the email (YYYY-MM-DD HH:MM:SS format)"),
45
+ allowRepeatMarketingSends: z
46
+ .boolean()
47
+ .optional()
48
+ .describe("Allow repeat marketing sends"),
49
+ metadata: z
50
+ .record(z.string(), z.any())
51
+ .optional()
52
+ .describe("Additional metadata"),
53
+ })
54
+ .refine((data) => data.recipientEmail || data.recipientUserId, "Either recipientEmail or recipientUserId must be provided");
55
+ export const CancelEmailParamsSchema = z.object({
56
+ campaignId: z.number().optional().describe("Campaign ID to cancel"),
57
+ email: z
58
+ .email()
59
+ .optional()
60
+ .describe("Email address that identifies a user profile"),
61
+ userId: z
62
+ .string()
63
+ .optional()
64
+ .describe("User ID that identifies a user profile"),
65
+ scheduledMessageId: z
66
+ .number()
67
+ .optional()
68
+ .describe("Scheduled message ID to cancel"),
69
+ });
70
+ export const CancelSMSParamsSchema = z.object({
71
+ campaignId: z.number().optional().describe("Campaign ID to cancel"),
72
+ email: z
73
+ .email()
74
+ .optional()
75
+ .describe("Email address that identifies a user profile"),
76
+ userId: z
77
+ .string()
78
+ .optional()
79
+ .describe("User ID that identifies a user profile"),
80
+ scheduledMessageId: z
81
+ .number()
82
+ .optional()
83
+ .describe("Scheduled message ID to cancel"),
84
+ });
85
+ export const CancelPushParamsSchema = z.object({
86
+ campaignId: z.number().optional().describe("Campaign ID to cancel"),
87
+ email: z
88
+ .email()
89
+ .optional()
90
+ .describe("Email address that identifies a user profile"),
91
+ userId: z
92
+ .string()
93
+ .optional()
94
+ .describe("User ID that identifies a user profile"),
95
+ scheduledMessageId: z
96
+ .number()
97
+ .optional()
98
+ .describe("Scheduled message ID to cancel"),
99
+ });
100
+ export const CancelWebPushParamsSchema = z.object({
101
+ campaignId: z.number().optional().describe("Campaign ID to cancel"),
102
+ email: z
103
+ .email()
104
+ .optional()
105
+ .describe("Email address that identifies a user profile"),
106
+ userId: z
107
+ .string()
108
+ .optional()
109
+ .describe("User ID that identifies a user profile"),
110
+ scheduledMessageId: z
111
+ .number()
112
+ .optional()
113
+ .describe("Scheduled message ID to cancel"),
114
+ });
115
+ export const CancelWhatsAppParamsSchema = z.object({
116
+ campaignId: z.number().optional().describe("Campaign ID to cancel"),
117
+ email: z
118
+ .email()
119
+ .optional()
120
+ .describe("Email address that identifies a user profile"),
121
+ userId: z
122
+ .string()
123
+ .optional()
124
+ .describe("User ID that identifies a user profile"),
125
+ scheduledMessageId: z
126
+ .number()
127
+ .optional()
128
+ .describe("Scheduled message ID to cancel"),
129
+ });
130
+ export const CancelInAppParamsSchema = z.object({
131
+ campaignId: z.number().optional().describe("Campaign ID to cancel"),
132
+ email: z
133
+ .email()
134
+ .optional()
135
+ .describe("Email address that identifies a user profile"),
136
+ userId: z
137
+ .string()
138
+ .optional()
139
+ .describe("User ID that identifies a user profile"),
140
+ scheduledMessageId: z
141
+ .number()
142
+ .optional()
143
+ .describe("Scheduled message ID to cancel"),
144
+ });
145
+ // SMS messaging
146
+ export const SendSMSParamsSchema = z
147
+ .object({
148
+ campaignId: z.number().describe("Campaign ID to send"),
149
+ recipientEmail: z.email().optional().describe("Recipient email address"),
150
+ recipientPhone: z.string().optional().describe("Recipient phone number"),
151
+ recipientUserId: z.string().optional().describe("Recipient user ID"),
152
+ dataFields: z
153
+ .record(z.string(), z.any())
154
+ .optional()
155
+ .describe("Data fields for personalization"),
156
+ sendAt: IterableDateTimeSchema.optional().describe("When to send (YYYY-MM-DD HH:MM:SS format)"),
157
+ allowRepeatMarketingSends: z
158
+ .boolean()
159
+ .optional()
160
+ .describe("Allow repeat marketing sends"),
161
+ metadata: z
162
+ .record(z.string(), z.any())
163
+ .optional()
164
+ .describe("Additional metadata"),
165
+ })
166
+ .refine((data) => data.recipientEmail || data.recipientUserId || data.recipientPhone, "Either recipientEmail, recipientUserId, or recipientPhone must be provided");
167
+ // WhatsApp messaging
168
+ export const SendWhatsAppParamsSchema = z
169
+ .object({
170
+ campaignId: z.number().describe("Campaign ID to send"),
171
+ recipientEmail: z.email().optional().describe("Recipient email address"),
172
+ recipientPhone: z.string().optional().describe("Recipient phone number"),
173
+ recipientUserId: z.string().optional().describe("Recipient user ID"),
174
+ dataFields: z
175
+ .record(z.string(), z.any())
176
+ .optional()
177
+ .describe("Data fields for personalization"),
178
+ sendAt: IterableDateTimeSchema.optional().describe("When to send (YYYY-MM-DD HH:MM:SS format)"),
179
+ allowRepeatMarketingSends: z
180
+ .boolean()
181
+ .optional()
182
+ .describe("Allow repeat marketing sends"),
183
+ metadata: z
184
+ .record(z.string(), z.any())
185
+ .optional()
186
+ .describe("Additional metadata"),
187
+ })
188
+ .refine((data) => data.recipientEmail || data.recipientUserId || data.recipientPhone, "Either recipientEmail, recipientUserId, or recipientPhone must be provided");
189
+ // Web Push messaging
190
+ export const SendWebPushParamsSchema = z
191
+ .object({
192
+ campaignId: z.number().describe("Campaign ID to send"),
193
+ recipientEmail: z.email().optional().describe("Recipient email address"),
194
+ recipientUserId: z.string().optional().describe("Recipient user ID"),
195
+ dataFields: z
196
+ .record(z.string(), z.any())
197
+ .optional()
198
+ .describe("Data fields for personalization"),
199
+ sendAt: IterableDateTimeSchema.optional().describe("When to send (YYYY-MM-DD HH:MM:SS format)"),
200
+ allowRepeatMarketingSends: z
201
+ .boolean()
202
+ .optional()
203
+ .describe("Allow repeat marketing sends"),
204
+ metadata: z
205
+ .record(z.string(), z.any())
206
+ .optional()
207
+ .describe("Additional metadata"),
208
+ })
209
+ .refine((data) => data.recipientEmail || data.recipientUserId, "Either recipientEmail or recipientUserId must be provided");
210
+ // Push notification messaging
211
+ export const SendPushParamsSchema = z
212
+ .object({
213
+ campaignId: z.number().describe("Campaign ID to send"),
214
+ recipientEmail: z.email().optional().describe("Recipient email address"),
215
+ recipientUserId: z.string().optional().describe("Recipient user ID"),
216
+ dataFields: z
217
+ .record(z.string(), z.any())
218
+ .optional()
219
+ .describe("Data fields for personalization"),
220
+ sendAt: IterableDateTimeSchema.optional().describe("When to send (YYYY-MM-DD HH:MM:SS format)"),
221
+ allowRepeatMarketingSends: z
222
+ .boolean()
223
+ .optional()
224
+ .describe("Allow repeat marketing sends"),
225
+ metadata: z
226
+ .record(z.string(), z.any())
227
+ .optional()
228
+ .describe("Additional metadata"),
229
+ })
230
+ .refine((data) => data.recipientEmail || data.recipientUserId, "Either recipientEmail or recipientUserId must be provided");
231
+ // In-App messaging
232
+ export const InAppMessageSchema = z.object({
233
+ messageId: z.string(),
234
+ campaignId: z.number(),
235
+ content: z.object({
236
+ html: z.string().optional(),
237
+ payload: z.record(z.string(), z.any()).optional(),
238
+ }),
239
+ trigger: z.object({
240
+ type: z.string(),
241
+ }),
242
+ createdAt: UnixTimestampSchema, // API docs: "format": "int64"
243
+ expiresAt: z.number().optional(),
244
+ saveToInbox: z.boolean().optional(),
245
+ inboxMetadata: z.record(z.string(), z.any()).optional(),
246
+ customPayload: z.record(z.string(), z.any()).optional(),
247
+ });
248
+ export const GetInAppMessagesParamsSchema = z
249
+ .object({
250
+ email: z.email().optional().describe("User email address"),
251
+ userId: z.string().optional().describe("User ID (alternative to email)"),
252
+ count: z
253
+ .number()
254
+ .min(1)
255
+ .max(100)
256
+ .optional()
257
+ .describe("Number of messages to retrieve"),
258
+ platform: z
259
+ .enum(["iOS", "Android", "Web"])
260
+ .optional()
261
+ .describe("Platform filter"),
262
+ })
263
+ .refine((data) => data.email || data.userId, "Either email or userId must be provided");
264
+ export const SendInAppParamsSchema = z
265
+ .object({
266
+ campaignId: z.number().describe("Campaign ID to send"),
267
+ recipientEmail: z.email().optional().describe("Recipient email address"),
268
+ recipientUserId: z
269
+ .string()
270
+ .optional()
271
+ .describe("Recipient user ID (alternative to email)"),
272
+ dataFields: z
273
+ .record(z.string(), z.any())
274
+ .optional()
275
+ .describe("Data fields for personalization"),
276
+ sendAt: IterableDateTimeSchema.optional().describe("When to send (YYYY-MM-DD HH:MM:SS format)"),
277
+ allowRepeatMarketingSends: z
278
+ .boolean()
279
+ .optional()
280
+ .describe("Allow repeat marketing sends"),
281
+ metadata: z
282
+ .record(z.string(), z.any())
283
+ .optional()
284
+ .describe("Additional metadata"),
285
+ })
286
+ .refine((data) => data.recipientEmail || data.recipientUserId, "Either recipientEmail or recipientUserId must be provided");
287
+ // Embedded messaging schemas
288
+ export const GetEmbeddedMessagesParamsSchema = z
289
+ .object({
290
+ email: z.email().optional().describe("User email address"),
291
+ userId: z.string().optional().describe("User ID (alternative to email)"),
292
+ platform: z
293
+ .string()
294
+ .optional()
295
+ .describe("Platform: iOS, Android, or Web (case-sensitive)"),
296
+ sdkVersion: z
297
+ .string()
298
+ .optional()
299
+ .describe("Iterable SDK version (e.g., 6.5.0)"),
300
+ packageName: z.string().optional().describe("Package name of the app"),
301
+ placementIds: z
302
+ .array(z.number())
303
+ .optional()
304
+ .describe("Placements to include in response"),
305
+ currentMessageIds: z
306
+ .array(z.string())
307
+ .optional()
308
+ .describe("IDs of embedded messages already retrieved"),
309
+ })
310
+ .refine((data) => data.email || data.userId, "Either email or userId must be provided");
311
+ // Response schemas
312
+ export const InAppMessagesResponseSchema = z.object({
313
+ inAppMessages: z.array(InAppMessageSchema),
314
+ });
315
+ export const ApiInAppMessagesResponseSchema = z.object({
316
+ inAppMessages: z.array(InAppMessageSchema), // API returns array of InAppMessage objects
317
+ });
318
+ export const EmbeddedMessagesResponseSchema = z.object({
319
+ placements: z.record(z.string(), z.any()), // Grouped by placementId with complex structure
320
+ });
321
+ // Alias for the response schema used in client
322
+ export const GetInAppMessagesResponseSchema = ApiInAppMessagesResponseSchema;
323
+ //# sourceMappingURL=messaging.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messaging.js","sourceRoot":"","sources":["../../src/types/messaging.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAE1E;;;GAGG;AAEH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;CAC1B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,C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AAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,gDAAgD;CAC5F,CAAC,CAAC;AAsBH,+CAA+C;AAC/C,MAAM,CAAC,MAAM,8BAA8B,GAAG,8BAA8B,CAAC"}
@@ -0,0 +1,89 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Snippets management schemas and types
4
+ */
5
+ export declare const SnippetResponseSchema: z.ZodObject<{
6
+ content: z.ZodString;
7
+ createdAt: z.ZodString;
8
+ createdBy: z.ZodString;
9
+ description: z.ZodOptional<z.ZodString>;
10
+ id: z.ZodNumber;
11
+ name: z.ZodString;
12
+ projectId: z.ZodNumber;
13
+ updatedAt: z.ZodString;
14
+ updatedBy: z.ZodString;
15
+ variables: z.ZodArray<z.ZodString>;
16
+ }, z.core.$strip>;
17
+ export type SnippetResponse = z.infer<typeof SnippetResponseSchema>;
18
+ export declare const CreateSnippetRequestSchema: z.ZodObject<{
19
+ content: z.ZodString;
20
+ name: z.ZodString;
21
+ description: z.ZodOptional<z.ZodString>;
22
+ createdByUserId: z.ZodOptional<z.ZodString>;
23
+ variables: z.ZodOptional<z.ZodArray<z.ZodString>>;
24
+ }, z.core.$strip>;
25
+ export type CreateSnippetRequest = z.infer<typeof CreateSnippetRequestSchema>;
26
+ export declare const UpdateSnippetRequestSchema: z.ZodObject<{
27
+ content: z.ZodString;
28
+ description: z.ZodOptional<z.ZodString>;
29
+ createdByUserId: z.ZodOptional<z.ZodString>;
30
+ variables: z.ZodOptional<z.ZodArray<z.ZodString>>;
31
+ }, z.core.$strip>;
32
+ export type UpdateSnippetRequest = z.infer<typeof UpdateSnippetRequestSchema>;
33
+ export declare const GetSnippetsResponseSchema: z.ZodObject<{
34
+ snippets: z.ZodArray<z.ZodObject<{
35
+ content: z.ZodString;
36
+ createdAt: z.ZodString;
37
+ createdBy: z.ZodString;
38
+ description: z.ZodOptional<z.ZodString>;
39
+ id: z.ZodNumber;
40
+ name: z.ZodString;
41
+ projectId: z.ZodNumber;
42
+ updatedAt: z.ZodString;
43
+ updatedBy: z.ZodString;
44
+ variables: z.ZodArray<z.ZodString>;
45
+ }, z.core.$strip>>;
46
+ }, z.core.$strip>;
47
+ export type GetSnippetsResponse = z.infer<typeof GetSnippetsResponseSchema>;
48
+ export declare const CreateSnippetResponseSchema: z.ZodObject<{
49
+ snippetId: z.ZodNumber;
50
+ }, z.core.$strip>;
51
+ export type CreateSnippetResponse = z.infer<typeof CreateSnippetResponseSchema>;
52
+ export declare const GetSnippetResponseSchema: z.ZodObject<{
53
+ snippet: z.ZodObject<{
54
+ content: z.ZodString;
55
+ createdAt: z.ZodString;
56
+ createdBy: z.ZodString;
57
+ description: z.ZodOptional<z.ZodString>;
58
+ id: z.ZodNumber;
59
+ name: z.ZodString;
60
+ projectId: z.ZodNumber;
61
+ updatedAt: z.ZodString;
62
+ updatedBy: z.ZodString;
63
+ variables: z.ZodArray<z.ZodString>;
64
+ }, z.core.$strip>;
65
+ }, z.core.$strip>;
66
+ export type GetSnippetResponse = z.infer<typeof GetSnippetResponseSchema>;
67
+ export declare const UpdateSnippetResponseSchema: z.ZodObject<{
68
+ snippetId: z.ZodNumber;
69
+ }, z.core.$strip>;
70
+ export type UpdateSnippetResponse = z.infer<typeof UpdateSnippetResponseSchema>;
71
+ export declare const DeleteSnippetResponseSchema: z.ZodObject<{
72
+ snippetId: z.ZodNumber;
73
+ }, z.core.$strip>;
74
+ export type DeleteSnippetResponse = z.infer<typeof DeleteSnippetResponseSchema>;
75
+ export declare const SnippetIdentifierSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
76
+ export type SnippetIdentifier = z.infer<typeof SnippetIdentifierSchema>;
77
+ export declare const GetSnippetParamsSchema: z.ZodObject<{
78
+ identifier: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
79
+ }, z.core.$strip>;
80
+ export type GetSnippetParams = z.infer<typeof GetSnippetParamsSchema>;
81
+ export declare const UpdateSnippetParamsSchema: z.ZodObject<{
82
+ identifier: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
83
+ }, z.core.$strip>;
84
+ export type UpdateSnippetParams = z.infer<typeof UpdateSnippetParamsSchema>;
85
+ export declare const DeleteSnippetParamsSchema: z.ZodObject<{
86
+ identifier: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
87
+ }, z.core.$strip>;
88
+ export type DeleteSnippetParams = z.infer<typeof DeleteSnippetParamsSchema>;
89
+ //# sourceMappingURL=snippets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snippets.d.ts","sourceRoot":"","sources":["../../src/types/snippets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;GAEG;AAGH,eAAO,MAAM,qBAAqB;;;;;;;;;;;iBAmBhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAGpE,eAAO,MAAM,0BAA0B;;;;;;iBAwBrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,0BAA0B;;;;;iBAmBrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAG9E,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;iBAEpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,2BAA2B;;iBAEtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;iBAEnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,2BAA2B;;iBAEtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,2BAA2B;;iBAEtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAGhF,eAAO,MAAM,uBAAuB,iDAOjC,CAAC;AAEJ,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,sBAAsB;;iBAEjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,yBAAyB;;iBAEpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,yBAAyB;;iBAEpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
@@ -0,0 +1,85 @@
1
+ import { z } from "zod";
2
+ import { ISODateTimeSchema } from "./common.js";
3
+ /**
4
+ * Snippets management schemas and types
5
+ */
6
+ // Core snippet response schema
7
+ export const SnippetResponseSchema = z.object({
8
+ content: z.string().describe("Snippet content"),
9
+ createdAt: ISODateTimeSchema.describe("Creation timestamp in ISO-8601 format."),
10
+ createdBy: z.string().describe("User who created the snippet"),
11
+ description: z.string().optional().describe("Snippet description"),
12
+ id: z.number().describe("Snippet ID"),
13
+ name: z.string().describe("Snippet name"),
14
+ projectId: z.number().describe("Project ID"),
15
+ updatedAt: ISODateTimeSchema.describe("Last update timestamp in ISO-8601 format."),
16
+ updatedBy: z.string().describe("User who last updated the snippet"),
17
+ variables: z
18
+ .array(z.string())
19
+ .describe("List of variable names used in the content with a Handlebars expression such as {{myField}}"),
20
+ });
21
+ // Request schemas
22
+ export const CreateSnippetRequestSchema = z.object({
23
+ content: z
24
+ .string()
25
+ .describe('Content of the snippet. Handlebars must be valid. Disallowed content: script tags with JS sources or non-JSON content, inline JS event handlers (e.g., onload="..."), and javascript: in href or src attributes (anchors and iframes).'),
26
+ name: z
27
+ .string()
28
+ .describe("Name of the snippet. Must be unique within the project, up to 100 characters (a-z, A-Z, 0-9, hyphens (-), underscores (_), and spaces). Cannot be changed after snippet is created."),
29
+ description: z.string().optional().describe("Description of the snippet"),
30
+ createdByUserId: z
31
+ .string()
32
+ .optional()
33
+ .describe("User ID (email) of the creator. If not provided, defaults to the project creator."),
34
+ variables: z
35
+ .array(z.string())
36
+ .optional()
37
+ .describe('A list of variable names used in the content with a Handlebars expression such as {{#if (eq myVariable "someValue")}}. Variable names are case-sensitive and should be simple identifiers (letters, numbers, underscores). To learn more about using variables in Snippets, see Customizing Snippets with Variables.'),
38
+ });
39
+ export const UpdateSnippetRequestSchema = z.object({
40
+ content: z
41
+ .string()
42
+ .describe('Content of the snippet. Handlebars must be valid. Disallowed content: script tags with JS sources or non-JSON content, inline JS event handlers (e.g., onload="..."), and javascript: in href or src attributes (anchors and iframes).'),
43
+ description: z.string().optional().describe("Description of the snippet"),
44
+ createdByUserId: z
45
+ .string()
46
+ .optional()
47
+ .describe("User ID (email) of the updater. If not provided, defaults to the project creator."),
48
+ variables: z
49
+ .array(z.string())
50
+ .optional()
51
+ .describe("List of variable names used in the content with a Handlebars expression such as {{myField}}. Variable names are case-sensitive and should be simple identifiers (letters, numbers, underscores). To learn more about using Handlebars in Snippets, see Customizing Snippets with Variables."),
52
+ });
53
+ // Response schemas
54
+ export const GetSnippetsResponseSchema = z.object({
55
+ snippets: z.array(SnippetResponseSchema).describe("List of snippets"),
56
+ });
57
+ export const CreateSnippetResponseSchema = z.object({
58
+ snippetId: z.number().describe("ID of the created snippet"),
59
+ });
60
+ export const GetSnippetResponseSchema = z.object({
61
+ snippet: SnippetResponseSchema.describe("Details of the retrieved snippet"),
62
+ });
63
+ export const UpdateSnippetResponseSchema = z.object({
64
+ snippetId: z.number().describe("ID of the updated snippet"),
65
+ });
66
+ export const DeleteSnippetResponseSchema = z.object({
67
+ snippetId: z.number().describe("ID of the deleted snippet"),
68
+ });
69
+ // Parameter schemas
70
+ export const SnippetIdentifierSchema = z
71
+ .union([
72
+ z.string().describe("Snippet name"),
73
+ z.number().describe("Snippet ID"),
74
+ ])
75
+ .describe("Snippet ID (numeric) or name (string). Numeric identifiers are treated as IDs, string identifiers as names");
76
+ export const GetSnippetParamsSchema = z.object({
77
+ identifier: SnippetIdentifierSchema,
78
+ });
79
+ export const UpdateSnippetParamsSchema = z.object({
80
+ identifier: SnippetIdentifierSchema,
81
+ });
82
+ export const DeleteSnippetParamsSchema = z.object({
83
+ identifier: SnippetIdentifierSchema,
84
+ });
85
+ //# sourceMappingURL=snippets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snippets.js","sourceRoot":"","sources":["../../src/types/snippets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD;;GAEG;AAEH,+BAA+B;AAC/B,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iBAAiB,CAAC;IAC/C,SAAS,EAAE,iBAAiB,CAAC,QAAQ,CACnC,wCAAwC,CACzC;IACD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IAC9D,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;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,CAAC,YAAY,CAAC;CAClC,CAAC;KACD,QAAQ,CACP,4GAA4G,CAC7G,CAAC;AAIJ,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,UAAU,EAAE,uBAAuB;CACpC,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,UAAU,EAAE,uBAAuB;CACpC,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,UAAU,EAAE,uBAAuB;CACpC,CAAC,CAAC"}
@@ -0,0 +1,63 @@
1
+ import { z } from "zod";
2
+ export declare const SubscriptionGroupSchema: z.ZodEnum<{
3
+ emailList: "emailList";
4
+ messageType: "messageType";
5
+ messageChannel: "messageChannel";
6
+ }>;
7
+ export type SubscriptionGroup = z.infer<typeof SubscriptionGroupSchema>;
8
+ export declare const BulkUpdateSubscriptionsParamsSchema: z.ZodObject<{
9
+ subscriptionGroup: z.ZodEnum<{
10
+ emailList: "emailList";
11
+ messageType: "messageType";
12
+ messageChannel: "messageChannel";
13
+ }>;
14
+ subscriptionGroupId: z.ZodNumber;
15
+ action: z.ZodEnum<{
16
+ subscribe: "subscribe";
17
+ unsubscribe: "unsubscribe";
18
+ }>;
19
+ users: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
20
+ usersByUserId: z.ZodOptional<z.ZodArray<z.ZodString>>;
21
+ }, z.core.$strip>;
22
+ export type BulkUpdateSubscriptionsParams = z.infer<typeof BulkUpdateSubscriptionsParamsSchema>;
23
+ export declare const SubscribeUserByEmailParamsSchema: z.ZodObject<{
24
+ subscriptionGroup: z.ZodEnum<{
25
+ emailList: "emailList";
26
+ messageType: "messageType";
27
+ messageChannel: "messageChannel";
28
+ }>;
29
+ subscriptionGroupId: z.ZodNumber;
30
+ userEmail: z.ZodEmail;
31
+ }, z.core.$strip>;
32
+ export type SubscribeUserByEmailParams = z.infer<typeof SubscribeUserByEmailParamsSchema>;
33
+ export declare const SubscribeUserByUserIdParamsSchema: z.ZodObject<{
34
+ subscriptionGroup: z.ZodEnum<{
35
+ emailList: "emailList";
36
+ messageType: "messageType";
37
+ messageChannel: "messageChannel";
38
+ }>;
39
+ subscriptionGroupId: z.ZodNumber;
40
+ userId: z.ZodString;
41
+ }, z.core.$strip>;
42
+ export type SubscribeUserByUserIdParams = z.infer<typeof SubscribeUserByUserIdParamsSchema>;
43
+ export declare const UnsubscribeUserByEmailParamsSchema: z.ZodObject<{
44
+ subscriptionGroup: z.ZodEnum<{
45
+ emailList: "emailList";
46
+ messageType: "messageType";
47
+ messageChannel: "messageChannel";
48
+ }>;
49
+ subscriptionGroupId: z.ZodNumber;
50
+ userEmail: z.ZodEmail;
51
+ }, z.core.$strip>;
52
+ export type UnsubscribeUserByEmailParams = z.infer<typeof UnsubscribeUserByEmailParamsSchema>;
53
+ export declare const UnsubscribeUserByUserIdParamsSchema: z.ZodObject<{
54
+ subscriptionGroup: z.ZodEnum<{
55
+ emailList: "emailList";
56
+ messageType: "messageType";
57
+ messageChannel: "messageChannel";
58
+ }>;
59
+ subscriptionGroupId: z.ZodNumber;
60
+ userId: z.ZodString;
61
+ }, z.core.$strip>;
62
+ export type UnsubscribeUserByUserIdParams = z.infer<typeof UnsubscribeUserByUserIdParamsSchema>;
63
+ //# sourceMappingURL=subscriptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscriptions.d.ts","sourceRoot":"","sources":["../../src/types/subscriptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,eAAO,MAAM,uBAAuB;;;;EAEK,CAAC;AAE1C,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;iBAc9C,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,mCAAmC,CAC3C,CAAC;AAEF,eAAO,MAAM,gCAAgC;;;;;;;;iBAI3C,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,gCAAgC,CACxC,CAAC;AAEF,eAAO,MAAM,iCAAiC;;;;;;;;iBAI5C,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,iCAAiC,CACzC,CAAC;AAEF,eAAO,MAAM,kCAAkC;;;;;;;;iBAI7C,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,kCAAkC,CAC1C,CAAC;AAEF,eAAO,MAAM,mCAAmC;;;;;;;;iBAI9C,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,mCAAmC,CAC3C,CAAC"}
@@ -0,0 +1,40 @@
1
+ import { z } from "zod";
2
+ export const SubscriptionGroupSchema = z
3
+ .enum(["emailList", "messageType", "messageChannel"])
4
+ .describe("Type of subscription group");
5
+ export const BulkUpdateSubscriptionsParamsSchema = z.object({
6
+ subscriptionGroup: SubscriptionGroupSchema,
7
+ subscriptionGroupId: z.number().describe("Subscription Group Id"),
8
+ action: z
9
+ .enum(["subscribe", "unsubscribe"])
10
+ .describe("Action to perform: subscribe or unsubscribe"),
11
+ users: z
12
+ .array(z.email())
13
+ .optional()
14
+ .describe("Users to subscribe/unsubscribe, identified by email"),
15
+ usersByUserId: z
16
+ .array(z.string())
17
+ .optional()
18
+ .describe("Users to subscribe/unsubscribe, identified by userId"),
19
+ });
20
+ export const SubscribeUserByEmailParamsSchema = z.object({
21
+ subscriptionGroup: SubscriptionGroupSchema,
22
+ subscriptionGroupId: z.number().describe("Subscription Group Id"),
23
+ userEmail: z.email().describe("User's email address"),
24
+ });
25
+ export const SubscribeUserByUserIdParamsSchema = z.object({
26
+ subscriptionGroup: SubscriptionGroupSchema,
27
+ subscriptionGroupId: z.number().describe("Subscription Group Id"),
28
+ userId: z.string().describe("User's userId"),
29
+ });
30
+ export const UnsubscribeUserByEmailParamsSchema = z.object({
31
+ subscriptionGroup: SubscriptionGroupSchema,
32
+ subscriptionGroupId: z.number().describe("Subscription Group Id"),
33
+ userEmail: z.email().describe("User's email address"),
34
+ });
35
+ export const UnsubscribeUserByUserIdParamsSchema = z.object({
36
+ subscriptionGroup: SubscriptionGroupSchema,
37
+ subscriptionGroupId: z.number().describe("Subscription Group Id"),
38
+ userId: z.string().describe("User's userId"),
39
+ });
40
+ //# sourceMappingURL=subscriptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscriptions.js","sourceRoot":"","sources":["../../src/types/subscriptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC;KACrC,IAAI,CAAC,CAAC,WAAW,EAAE,aAAa,EAAE,gBAAgB,CAAC,CAAC;KACpD,QAAQ,CAAC,4BAA4B,CAAC,CAAC;AAI1C,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1D,iBAAiB,EAAE,uBAAuB;IAC1C,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uBAAuB,CAAC;IACjE,MAAM,EAAE,CAAC;SACN,IAAI,CAAC,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC;SAClC,QAAQ,CAAC,6CAA6C,CAAC;IAC1D,KAAK,EAAE,CAAC;SACL,KAAK,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;SAChB,QAAQ,EAAE;SACV,QAAQ,CAAC,qDAAqD,CAAC;IAClE,aAAa,EAAE,CAAC;SACb,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SACjB,QAAQ,EAAE;SACV,QAAQ,CAAC,sDAAsD,CAAC;CACpE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