@apollo-deploy/signal-schemas 1.0.0 → 1.1.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 (112) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/definitions/common.d.ts +18 -5
  3. package/dist/definitions/common.d.ts.map +1 -1
  4. package/dist/definitions/common.js +17 -5
  5. package/dist/definitions/common.js.map +1 -1
  6. package/dist/definitions/domains/domain.schema.d.ts +10 -10
  7. package/dist/definitions/domains/request.schema.d.ts +4 -0
  8. package/dist/definitions/domains/request.schema.d.ts.map +1 -1
  9. package/dist/definitions/domains/request.schema.js +4 -0
  10. package/dist/definitions/domains/request.schema.js.map +1 -1
  11. package/dist/definitions/domains/response.schema.d.ts +42 -38
  12. package/dist/definitions/domains/response.schema.d.ts.map +1 -1
  13. package/dist/definitions/domains/response.schema.js +2 -2
  14. package/dist/definitions/domains/response.schema.js.map +1 -1
  15. package/dist/definitions/emails/domain.schema.d.ts +1 -1
  16. package/dist/definitions/emails/request.schema.d.ts +1 -1
  17. package/dist/definitions/emails/response.schema.d.ts +44 -6
  18. package/dist/definitions/emails/response.schema.d.ts.map +1 -1
  19. package/dist/definitions/emails/response.schema.js +17 -3
  20. package/dist/definitions/emails/response.schema.js.map +1 -1
  21. package/dist/definitions/index.d.ts +1 -0
  22. package/dist/definitions/index.d.ts.map +1 -1
  23. package/dist/definitions/index.js +1 -0
  24. package/dist/definitions/index.js.map +1 -1
  25. package/dist/definitions/migrations/index.d.ts +3 -0
  26. package/dist/definitions/migrations/index.d.ts.map +1 -0
  27. package/dist/definitions/migrations/index.js +3 -0
  28. package/dist/definitions/migrations/index.js.map +1 -0
  29. package/dist/definitions/migrations/request.schema.d.ts +10 -0
  30. package/dist/definitions/migrations/request.schema.d.ts.map +1 -0
  31. package/dist/definitions/migrations/request.schema.js +10 -0
  32. package/dist/definitions/migrations/request.schema.js.map +1 -0
  33. package/dist/definitions/migrations/response.schema.d.ts +18 -0
  34. package/dist/definitions/migrations/response.schema.d.ts.map +1 -0
  35. package/dist/definitions/migrations/response.schema.js +18 -0
  36. package/dist/definitions/migrations/response.schema.js.map +1 -0
  37. package/dist/definitions/projects/domain.schema.d.ts +2 -2
  38. package/dist/definitions/projects/request.schema.d.ts +1 -1
  39. package/dist/definitions/projects/response.schema.d.ts +9 -5
  40. package/dist/definitions/projects/response.schema.d.ts.map +1 -1
  41. package/dist/definitions/projects/response.schema.js +2 -2
  42. package/dist/definitions/projects/response.schema.js.map +1 -1
  43. package/dist/definitions/signal-email/domain.schema.d.ts +2 -2
  44. package/dist/definitions/signal-email/response.schema.d.ts +2 -2
  45. package/dist/definitions/signal-projects/domain.schema.d.ts +6 -6
  46. package/dist/definitions/signal-projects/request.schema.d.ts +2 -2
  47. package/dist/definitions/signal-projects/response.schema.d.ts +20 -20
  48. package/dist/definitions/suppressions/response.schema.d.ts +6 -2
  49. package/dist/definitions/suppressions/response.schema.d.ts.map +1 -1
  50. package/dist/definitions/suppressions/response.schema.js +2 -2
  51. package/dist/definitions/suppressions/response.schema.js.map +1 -1
  52. package/dist/definitions/templates/response.schema.d.ts +12 -4
  53. package/dist/definitions/templates/response.schema.d.ts.map +1 -1
  54. package/dist/definitions/templates/response.schema.js +3 -3
  55. package/dist/definitions/templates/response.schema.js.map +1 -1
  56. package/dist/definitions/webhooks/domain.schema.d.ts +1 -1
  57. package/dist/definitions/webhooks/response.schema.d.ts +7 -3
  58. package/dist/definitions/webhooks/response.schema.d.ts.map +1 -1
  59. package/dist/definitions/webhooks/response.schema.js +2 -2
  60. package/dist/definitions/webhooks/response.schema.js.map +1 -1
  61. package/package.json +8 -4
  62. package/dist/definitions/deliverability/deliverability.schema.d.ts +0 -98
  63. package/dist/definitions/deliverability/deliverability.schema.d.ts.map +0 -1
  64. package/dist/definitions/deliverability/deliverability.schema.js +0 -77
  65. package/dist/definitions/deliverability/schemas.d.ts +0 -91
  66. package/dist/definitions/deliverability/schemas.d.ts.map +0 -1
  67. package/dist/definitions/deliverability/schemas.js +0 -67
  68. package/dist/definitions/domains/domains.schema.d.ts +0 -668
  69. package/dist/definitions/domains/domains.schema.d.ts.map +0 -1
  70. package/dist/definitions/domains/domains.schema.js +0 -113
  71. package/dist/definitions/domains/schemas.d.ts +0 -545
  72. package/dist/definitions/domains/schemas.d.ts.map +0 -1
  73. package/dist/definitions/domains/schemas.js +0 -110
  74. package/dist/definitions/emails/emails.schema.d.ts +0 -230
  75. package/dist/definitions/emails/emails.schema.d.ts.map +0 -1
  76. package/dist/definitions/emails/emails.schema.js +0 -176
  77. package/dist/definitions/emails/schemas.d.ts +0 -284
  78. package/dist/definitions/emails/schemas.d.ts.map +0 -1
  79. package/dist/definitions/emails/schemas.js +0 -227
  80. package/dist/definitions/health/health.schema.d.ts +0 -27
  81. package/dist/definitions/health/health.schema.d.ts.map +0 -1
  82. package/dist/definitions/health/health.schema.js +0 -23
  83. package/dist/definitions/health/schemas.d.ts +0 -30
  84. package/dist/definitions/health/schemas.d.ts.map +0 -1
  85. package/dist/definitions/health/schemas.js +0 -23
  86. package/dist/definitions/projects/projects.schema.d.ts +0 -8
  87. package/dist/definitions/projects/projects.schema.d.ts.map +0 -1
  88. package/dist/definitions/projects/projects.schema.js +0 -23
  89. package/dist/definitions/projects/schemas.d.ts +0 -114
  90. package/dist/definitions/projects/schemas.d.ts.map +0 -1
  91. package/dist/definitions/projects/schemas.js +0 -87
  92. package/dist/definitions/suppressions/schemas.d.ts +0 -90
  93. package/dist/definitions/suppressions/schemas.d.ts.map +0 -1
  94. package/dist/definitions/suppressions/schemas.js +0 -68
  95. package/dist/definitions/suppressions/suppressions.schema.d.ts +0 -79
  96. package/dist/definitions/suppressions/suppressions.schema.d.ts.map +0 -1
  97. package/dist/definitions/suppressions/suppressions.schema.js +0 -63
  98. package/dist/definitions/templates/schemas.d.ts +0 -113
  99. package/dist/definitions/templates/schemas.d.ts.map +0 -1
  100. package/dist/definitions/templates/schemas.js +0 -80
  101. package/dist/definitions/usage/schemas.d.ts +0 -156
  102. package/dist/definitions/usage/schemas.d.ts.map +0 -1
  103. package/dist/definitions/usage/schemas.js +0 -83
  104. package/dist/definitions/usage/usage.schema.d.ts +0 -140
  105. package/dist/definitions/usage/usage.schema.d.ts.map +0 -1
  106. package/dist/definitions/usage/usage.schema.js +0 -77
  107. package/dist/definitions/webhooks/schemas.d.ts +0 -145
  108. package/dist/definitions/webhooks/schemas.d.ts.map +0 -1
  109. package/dist/definitions/webhooks/schemas.js +0 -97
  110. package/dist/definitions/webhooks/webhooks.schema.d.ts +0 -152
  111. package/dist/definitions/webhooks/webhooks.schema.d.ts.map +0 -1
  112. package/dist/definitions/webhooks/webhooks.schema.js +0 -96
@@ -1,284 +0,0 @@
1
- /**
2
- * Apollo Signal — Internal email schemas.
3
- *
4
- * Zod schemas for send email request and email response.
5
- * Internal only — MUST NOT be exported to shared packages.
6
- *
7
- * Design §5.4 ; Requirements §5, §6
8
- */
9
- import { z } from "zod";
10
- export declare const SendEmailBodySchema: z.ZodObject<{
11
- from: z.ZodString;
12
- to: z.ZodArray<z.ZodString>;
13
- cc: z.ZodOptional<z.ZodArray<z.ZodString>>;
14
- bcc: z.ZodOptional<z.ZodArray<z.ZodString>>;
15
- replyTo: z.ZodOptional<z.ZodString>;
16
- subject: z.ZodString;
17
- html: z.ZodOptional<z.ZodString>;
18
- text: z.ZodOptional<z.ZodString>;
19
- tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
20
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
21
- idempotencyKey: z.ZodOptional<z.ZodString>;
22
- testMode: z.ZodOptional<z.ZodBoolean>;
23
- }, z.core.$strip>;
24
- export declare const EmailIdParamSchema: z.ZodObject<{
25
- emailId: z.ZodString;
26
- }, z.core.$strip>;
27
- /**
28
- * Dashboard email params — includes both `projectId` and `emailId`.
29
- * Used by `/signal/projects/:projectId/emails/:emailId` routes.
30
- */
31
- export declare const EmailParamsSchema: z.ZodObject<{
32
- projectId: z.ZodString;
33
- emailId: z.ZodString;
34
- }, z.core.$strip>;
35
- /**
36
- * Path params for dashboard routes scoped to a project only (no emailId).
37
- * Used by `/signal/projects/:projectId/emails`.
38
- */
39
- export declare const EmailProjectParamSchema: z.ZodObject<{
40
- projectId: z.ZodString;
41
- }, z.core.$strip>;
42
- export declare const ListEmailsQuerySchema: z.ZodObject<{
43
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
44
- cursor: z.ZodOptional<z.ZodString>;
45
- status: z.ZodOptional<z.ZodEnum<{
46
- failed: "failed";
47
- queued: "queued";
48
- scheduled: "scheduled";
49
- cancelled: "cancelled";
50
- sent: "sent";
51
- delivered: "delivered";
52
- bounced: "bounced";
53
- complained: "complained";
54
- rejected: "rejected";
55
- suppressed: "suppressed";
56
- test: "test";
57
- }>>;
58
- from: z.ZodOptional<z.ZodString>;
59
- to: z.ZodOptional<z.ZodString>;
60
- tag: z.ZodOptional<z.ZodString>;
61
- since: z.ZodOptional<z.ZodString>;
62
- until: z.ZodOptional<z.ZodString>;
63
- }, z.core.$strip>;
64
- /** Alias for {@link ListEmailsQuerySchema} — canonical name per T-7.1. */
65
- export declare const EmailListQuerySchema: z.ZodObject<{
66
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
67
- cursor: z.ZodOptional<z.ZodString>;
68
- status: z.ZodOptional<z.ZodEnum<{
69
- failed: "failed";
70
- queued: "queued";
71
- scheduled: "scheduled";
72
- cancelled: "cancelled";
73
- sent: "sent";
74
- delivered: "delivered";
75
- bounced: "bounced";
76
- complained: "complained";
77
- rejected: "rejected";
78
- suppressed: "suppressed";
79
- test: "test";
80
- }>>;
81
- from: z.ZodOptional<z.ZodString>;
82
- to: z.ZodOptional<z.ZodString>;
83
- tag: z.ZodOptional<z.ZodString>;
84
- since: z.ZodOptional<z.ZodString>;
85
- until: z.ZodOptional<z.ZodString>;
86
- }, z.core.$strip>;
87
- export declare const SendEmailResponseSchema: z.ZodObject<{
88
- id: z.ZodString;
89
- messageId: z.ZodNullable<z.ZodString>;
90
- status: z.ZodEnum<{
91
- scheduled: "scheduled";
92
- sent: "sent";
93
- test: "test";
94
- }>;
95
- createdAt: z.ZodString;
96
- scheduledAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
- }, z.core.$strip>;
98
- export declare const BatchSendEmailResponseSchema: z.ZodObject<{
99
- results: z.ZodArray<z.ZodObject<{
100
- index: z.ZodNumber;
101
- id: z.ZodOptional<z.ZodString>;
102
- messageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
- status: z.ZodOptional<z.ZodEnum<{
104
- scheduled: "scheduled";
105
- sent: "sent";
106
- test: "test";
107
- }>>;
108
- createdAt: z.ZodOptional<z.ZodString>;
109
- scheduledAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
110
- error: z.ZodOptional<z.ZodString>;
111
- }, z.core.$strip>>;
112
- }, z.core.$strip>;
113
- export declare const CancelEmailParamSchema: z.ZodObject<{
114
- emailId: z.ZodString;
115
- }, z.core.$strip>;
116
- export declare const CancelEmailResponseSchema: z.ZodObject<{
117
- cancelled: z.ZodLiteral<true>;
118
- }, z.core.$strip>;
119
- /** Query params for DELETE /v1/emails (bulk cancel scheduled). */
120
- export declare const BulkCancelScheduledQuerySchema: z.ZodObject<{
121
- from: z.ZodOptional<z.ZodString>;
122
- to: z.ZodOptional<z.ZodString>;
123
- }, z.core.$strip>;
124
- export declare const BulkCancelScheduledResponseSchema: z.ZodObject<{
125
- cancelled: z.ZodNumber;
126
- }, z.core.$strip>;
127
- export type BulkCancelScheduledQuery = z.infer<typeof BulkCancelScheduledQuerySchema>;
128
- export type BulkCancelScheduledResponse = z.infer<typeof BulkCancelScheduledResponseSchema>;
129
- /** Response for POST /v1/emails/stream/token — issues a short-lived SSE token. */
130
- export declare const StreamTokenResponseSchema: z.ZodObject<{
131
- token: z.ZodString;
132
- expiresAt: z.ZodString;
133
- }, z.core.$strip>;
134
- /** Query params for GET /v1/emails/stream */
135
- export declare const StreamQuerySchema: z.ZodObject<{
136
- token: z.ZodString;
137
- }, z.core.$strip>;
138
- export type StreamTokenResponse = z.infer<typeof StreamTokenResponseSchema>;
139
- export type StreamQuery = z.infer<typeof StreamQuerySchema>;
140
- /** Request body for POST /signal/projects/:projectId/suppressions/import */
141
- export declare const SuppressionImportBodySchema: z.ZodObject<{
142
- suppressions: z.ZodArray<z.ZodObject<{
143
- email: z.ZodString;
144
- reason: z.ZodDefault<z.ZodEnum<{
145
- bounce: "bounce";
146
- complaint: "complaint";
147
- manual: "manual";
148
- unsubscribe: "unsubscribe";
149
- }>>;
150
- }, z.core.$strip>>;
151
- }, z.core.$strip>;
152
- export declare const SuppressionImportResponseSchema: z.ZodObject<{
153
- imported: z.ZodNumber;
154
- skipped: z.ZodNumber;
155
- }, z.core.$strip>;
156
- export type SuppressionImportBody = z.infer<typeof SuppressionImportBodySchema>;
157
- export type SuppressionImportResponse = z.infer<typeof SuppressionImportResponseSchema>;
158
- export declare const EmailResponseSchema: z.ZodObject<{
159
- id: z.ZodString;
160
- projectId: z.ZodString;
161
- organizationId: z.ZodString;
162
- apiKeyId: z.ZodNullable<z.ZodString>;
163
- domainId: z.ZodNullable<z.ZodString>;
164
- provider: z.ZodLiteral<"ses">;
165
- providerMessageId: z.ZodNullable<z.ZodString>;
166
- fromAddress: z.ZodString;
167
- fromDomain: z.ZodString;
168
- toRecipients: z.ZodArray<z.ZodString>;
169
- ccRecipients: z.ZodNullable<z.ZodArray<z.ZodString>>;
170
- bccRecipients: z.ZodNullable<z.ZodArray<z.ZodString>>;
171
- replyTo: z.ZodNullable<z.ZodString>;
172
- subject: z.ZodString;
173
- status: z.ZodEnum<{
174
- failed: "failed";
175
- queued: "queued";
176
- scheduled: "scheduled";
177
- cancelled: "cancelled";
178
- sent: "sent";
179
- delivered: "delivered";
180
- bounced: "bounced";
181
- complained: "complained";
182
- rejected: "rejected";
183
- suppressed: "suppressed";
184
- test: "test";
185
- }>;
186
- error: z.ZodNullable<z.ZodString>;
187
- tags: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
188
- testMode: z.ZodBoolean;
189
- createdAt: z.ZodString;
190
- sentAt: z.ZodNullable<z.ZodString>;
191
- updatedAt: z.ZodString;
192
- }, z.core.$strip>;
193
- export declare const EmailListResponseSchema: z.ZodObject<{
194
- data: z.ZodArray<z.ZodObject<{
195
- id: z.ZodString;
196
- projectId: z.ZodString;
197
- organizationId: z.ZodString;
198
- apiKeyId: z.ZodNullable<z.ZodString>;
199
- domainId: z.ZodNullable<z.ZodString>;
200
- provider: z.ZodLiteral<"ses">;
201
- providerMessageId: z.ZodNullable<z.ZodString>;
202
- fromAddress: z.ZodString;
203
- fromDomain: z.ZodString;
204
- toRecipients: z.ZodArray<z.ZodString>;
205
- ccRecipients: z.ZodNullable<z.ZodArray<z.ZodString>>;
206
- bccRecipients: z.ZodNullable<z.ZodArray<z.ZodString>>;
207
- replyTo: z.ZodNullable<z.ZodString>;
208
- subject: z.ZodString;
209
- status: z.ZodEnum<{
210
- failed: "failed";
211
- queued: "queued";
212
- scheduled: "scheduled";
213
- cancelled: "cancelled";
214
- sent: "sent";
215
- delivered: "delivered";
216
- bounced: "bounced";
217
- complained: "complained";
218
- rejected: "rejected";
219
- suppressed: "suppressed";
220
- test: "test";
221
- }>;
222
- error: z.ZodNullable<z.ZodString>;
223
- tags: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
224
- testMode: z.ZodBoolean;
225
- createdAt: z.ZodString;
226
- sentAt: z.ZodNullable<z.ZodString>;
227
- updatedAt: z.ZodString;
228
- }, z.core.$strip>>;
229
- nextCursor: z.ZodNullable<z.ZodString>;
230
- }, z.core.$strip>;
231
- export declare const EmailEventResponseSchema: z.ZodObject<{
232
- id: z.ZodString;
233
- type: z.ZodString;
234
- providerEventId: z.ZodNullable<z.ZodString>;
235
- payload: z.ZodRecord<z.ZodString, z.ZodString>;
236
- occurredAt: z.ZodString;
237
- createdAt: z.ZodString;
238
- }, z.core.$strip>;
239
- export declare const EmailEventsListResponseSchema: z.ZodObject<{
240
- data: z.ZodArray<z.ZodObject<{
241
- id: z.ZodString;
242
- type: z.ZodString;
243
- providerEventId: z.ZodNullable<z.ZodString>;
244
- payload: z.ZodRecord<z.ZodString, z.ZodString>;
245
- occurredAt: z.ZodString;
246
- createdAt: z.ZodString;
247
- }, z.core.$strip>>;
248
- nextCursor: z.ZodNullable<z.ZodString>;
249
- }, z.core.$strip>;
250
- export type SendEmailBody = z.infer<typeof SendEmailBodySchema>;
251
- export type EmailIdParam = z.infer<typeof EmailIdParamSchema>;
252
- export type EmailParams = z.infer<typeof EmailParamsSchema>;
253
- export type EmailProjectParam = z.infer<typeof EmailProjectParamSchema>;
254
- export type ListEmailsQuery = z.infer<typeof ListEmailsQuerySchema>;
255
- export type EmailListQuery = ListEmailsQuery;
256
- export type SendEmailResponse = z.infer<typeof SendEmailResponseSchema>;
257
- export type EmailResponse = z.infer<typeof EmailResponseSchema>;
258
- export type EmailListResponse = z.infer<typeof EmailListResponseSchema>;
259
- export type EmailEventResponse = z.infer<typeof EmailEventResponseSchema>;
260
- export type EmailEventsListResponse = z.infer<typeof EmailEventsListResponseSchema>;
261
- export declare const PreSendValidationBodySchema: z.ZodObject<{
262
- from: z.ZodString;
263
- to: z.ZodArray<z.ZodString>;
264
- subject: z.ZodString;
265
- html: z.ZodOptional<z.ZodString>;
266
- text: z.ZodOptional<z.ZodString>;
267
- attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
268
- filename: z.ZodString;
269
- content: z.ZodString;
270
- contentType: z.ZodString;
271
- }, z.core.$strip>>>;
272
- scheduledAt: z.ZodOptional<z.ZodString>;
273
- }, z.core.$strip>;
274
- export declare const PreSendValidationResponseSchema: z.ZodObject<{
275
- valid: z.ZodBoolean;
276
- checks: z.ZodArray<z.ZodObject<{
277
- name: z.ZodString;
278
- passed: z.ZodBoolean;
279
- message: z.ZodOptional<z.ZodString>;
280
- }, z.core.$strip>>;
281
- }, z.core.$strip>;
282
- export type PreSendValidationBody = z.infer<typeof PreSendValidationBodySchema>;
283
- export type PreSendValidationResponse = z.infer<typeof PreSendValidationResponseSchema>;
284
- //# sourceMappingURL=schemas.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/definitions/emails/schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;iBAa9B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;iBAE7B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;iBAG5B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,uBAAuB;;iBAElC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;iBAuBhC,CAAC;AAEH,0EAA0E;AAC1E,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;iBAAwB,CAAC;AAM1D,eAAO,MAAM,uBAAuB;;;;;;;;;;iBAMlC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;iBAUvC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;iBAEjC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;iBAEpC,CAAC;AAEH,kEAAkE;AAClE,eAAO,MAAM,8BAA8B;;;iBAKzC,CAAC;AAEH,eAAO,MAAM,iCAAiC;;iBAE5C,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAM5F,kFAAkF;AAClF,eAAO,MAAM,yBAAyB;;;iBAKpC,CAAC;AAEH,6CAA6C;AAC7C,eAAO,MAAM,iBAAiB;;iBAG5B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAM5D,4EAA4E;AAC5E,eAAO,MAAM,2BAA2B;;;;;;;;;;iBAiBtC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;iBAG1C,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkC9B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGlC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;iBAOnC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;iBAGxC,CAAC;AAMH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC;AAC7C,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAYpF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;iBAStC,CAAC;AAQH,eAAO,MAAM,+BAA+B;;;;;;;iBAG1C,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
@@ -1,227 +0,0 @@
1
- "use strict";
2
- /**
3
- * Apollo Signal — Internal email schemas.
4
- *
5
- * Zod schemas for send email request and email response.
6
- * Internal only — MUST NOT be exported to shared packages.
7
- *
8
- * Design §5.4 ; Requirements §5, §6
9
- */
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.PreSendValidationResponseSchema = exports.PreSendValidationBodySchema = exports.EmailEventsListResponseSchema = exports.EmailEventResponseSchema = exports.EmailListResponseSchema = exports.EmailResponseSchema = exports.SuppressionImportResponseSchema = exports.SuppressionImportBodySchema = exports.StreamQuerySchema = exports.StreamTokenResponseSchema = exports.BulkCancelScheduledResponseSchema = exports.BulkCancelScheduledQuerySchema = exports.CancelEmailResponseSchema = exports.CancelEmailParamSchema = exports.BatchSendEmailResponseSchema = exports.SendEmailResponseSchema = exports.EmailListQuerySchema = exports.ListEmailsQuerySchema = exports.EmailProjectParamSchema = exports.EmailParamsSchema = exports.EmailIdParamSchema = exports.SendEmailBodySchema = void 0;
12
- var zod_1 = require("zod");
13
- // ---------------------------------------------------------------------------
14
- // Request schemas
15
- // ---------------------------------------------------------------------------
16
- exports.SendEmailBodySchema = zod_1.z.object({
17
- from: zod_1.z.string().email(),
18
- to: zod_1.z.array(zod_1.z.string().email()).min(1),
19
- cc: zod_1.z.array(zod_1.z.string().email()).optional(),
20
- bcc: zod_1.z.array(zod_1.z.string().email()).optional(),
21
- replyTo: zod_1.z.string().email().optional(),
22
- subject: zod_1.z.string().min(1).max(998),
23
- html: zod_1.z.string().optional(),
24
- text: zod_1.z.string().optional(),
25
- tags: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).optional(),
26
- metadata: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).optional(),
27
- idempotencyKey: zod_1.z.string().max(255).optional(),
28
- testMode: zod_1.z.boolean().optional(),
29
- });
30
- exports.EmailIdParamSchema = zod_1.z.object({
31
- emailId: zod_1.z.string().min(1),
32
- });
33
- /**
34
- * Dashboard email params — includes both `projectId` and `emailId`.
35
- * Used by `/signal/projects/:projectId/emails/:emailId` routes.
36
- */
37
- exports.EmailParamsSchema = zod_1.z.object({
38
- projectId: zod_1.z.string().min(1),
39
- emailId: zod_1.z.string().min(1),
40
- });
41
- /**
42
- * Path params for dashboard routes scoped to a project only (no emailId).
43
- * Used by `/signal/projects/:projectId/emails`.
44
- */
45
- exports.EmailProjectParamSchema = zod_1.z.object({
46
- projectId: zod_1.z.string().min(1),
47
- });
48
- exports.ListEmailsQuerySchema = zod_1.z.object({
49
- limit: zod_1.z.coerce.number().int().min(1).max(100).default(25),
50
- cursor: zod_1.z.string().optional(),
51
- status: zod_1.z
52
- .enum([
53
- "queued",
54
- "scheduled",
55
- "cancelled",
56
- "sent",
57
- "delivered",
58
- "bounced",
59
- "complained",
60
- "failed",
61
- "rejected",
62
- "suppressed",
63
- "test",
64
- ])
65
- .optional(),
66
- from: zod_1.z.string().optional(),
67
- to: zod_1.z.string().optional(),
68
- tag: zod_1.z.string().optional(),
69
- since: zod_1.z.string().datetime().optional(),
70
- until: zod_1.z.string().datetime().optional(),
71
- });
72
- /** Alias for {@link ListEmailsQuerySchema} — canonical name per T-7.1. */
73
- exports.EmailListQuerySchema = exports.ListEmailsQuerySchema;
74
- // ---------------------------------------------------------------------------
75
- // Response schemas
76
- // ---------------------------------------------------------------------------
77
- exports.SendEmailResponseSchema = zod_1.z.object({
78
- id: zod_1.z.string(),
79
- messageId: zod_1.z.string().nullable(),
80
- status: zod_1.z.enum(["sent", "test", "scheduled"]),
81
- createdAt: zod_1.z.string().datetime(),
82
- scheduledAt: zod_1.z.string().datetime().nullable().optional(),
83
- });
84
- exports.BatchSendEmailResponseSchema = zod_1.z.object({
85
- results: zod_1.z.array(zod_1.z.object({
86
- index: zod_1.z.number().int(),
87
- id: zod_1.z.string().optional(),
88
- messageId: zod_1.z.string().nullable().optional(),
89
- status: zod_1.z.enum(["sent", "test", "scheduled"]).optional(),
90
- createdAt: zod_1.z.string().datetime().optional(),
91
- scheduledAt: zod_1.z.string().datetime().nullable().optional(),
92
- error: zod_1.z.string().optional(),
93
- })),
94
- });
95
- exports.CancelEmailParamSchema = zod_1.z.object({
96
- emailId: zod_1.z.string().min(1),
97
- });
98
- exports.CancelEmailResponseSchema = zod_1.z.object({
99
- cancelled: zod_1.z.literal(true),
100
- });
101
- /** Query params for DELETE /v1/emails (bulk cancel scheduled). */
102
- exports.BulkCancelScheduledQuerySchema = zod_1.z.object({
103
- /** ISO 8601 datetime — cancel only emails scheduled at or after this time. */
104
- from: zod_1.z.string().datetime({ offset: true }).optional(),
105
- /** ISO 8601 datetime — cancel only emails scheduled at or before this time. */
106
- to: zod_1.z.string().datetime({ offset: true }).optional(),
107
- });
108
- exports.BulkCancelScheduledResponseSchema = zod_1.z.object({
109
- cancelled: zod_1.z.number().int(),
110
- });
111
- // ---------------------------------------------------------------------------
112
- // Email stream token
113
- // ---------------------------------------------------------------------------
114
- /** Response for POST /v1/emails/stream/token — issues a short-lived SSE token. */
115
- exports.StreamTokenResponseSchema = zod_1.z.object({
116
- /** Opaque token to pass as ?token= on the SSE endpoint. Valid for 60 seconds. */
117
- token: zod_1.z.string(),
118
- /** ISO 8601 expiry timestamp. */
119
- expiresAt: zod_1.z.string().datetime(),
120
- });
121
- /** Query params for GET /v1/emails/stream */
122
- exports.StreamQuerySchema = zod_1.z.object({
123
- /** Short-lived token issued by POST /v1/emails/stream/token. */
124
- token: zod_1.z.string().min(1),
125
- });
126
- // ---------------------------------------------------------------------------
127
- // Suppression import / export
128
- // ---------------------------------------------------------------------------
129
- /** Request body for POST /signal/projects/:projectId/suppressions/import */
130
- exports.SuppressionImportBodySchema = zod_1.z.object({
131
- /**
132
- * Array of suppression entries to import.
133
- * Each entry must have an `email` field; `reason` defaults to "manual".
134
- * Maximum 10 000 entries per request.
135
- */
136
- suppressions: zod_1.z
137
- .array(zod_1.z.object({
138
- email: zod_1.z.string().email(),
139
- reason: zod_1.z
140
- .enum(["bounce", "complaint", "manual", "unsubscribe"])
141
- .default("manual"),
142
- }))
143
- .min(1)
144
- .max(10000),
145
- });
146
- exports.SuppressionImportResponseSchema = zod_1.z.object({
147
- imported: zod_1.z.number().int(),
148
- skipped: zod_1.z.number().int(),
149
- });
150
- exports.EmailResponseSchema = zod_1.z.object({
151
- id: zod_1.z.string(),
152
- projectId: zod_1.z.string(),
153
- organizationId: zod_1.z.string(),
154
- apiKeyId: zod_1.z.string().nullable(),
155
- domainId: zod_1.z.string().nullable(),
156
- provider: zod_1.z.literal("ses"),
157
- providerMessageId: zod_1.z.string().nullable(),
158
- fromAddress: zod_1.z.string(),
159
- fromDomain: zod_1.z.string(),
160
- toRecipients: zod_1.z.array(zod_1.z.string()),
161
- ccRecipients: zod_1.z.array(zod_1.z.string()).nullable(),
162
- bccRecipients: zod_1.z.array(zod_1.z.string()).nullable(),
163
- replyTo: zod_1.z.string().nullable(),
164
- subject: zod_1.z.string(),
165
- status: zod_1.z.enum([
166
- "queued",
167
- "scheduled",
168
- "cancelled",
169
- "sent",
170
- "delivered",
171
- "bounced",
172
- "complained",
173
- "failed",
174
- "rejected",
175
- "suppressed",
176
- "test",
177
- ]),
178
- error: zod_1.z.string().nullable(),
179
- tags: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).nullable(),
180
- testMode: zod_1.z.boolean(),
181
- createdAt: zod_1.z.string().datetime(),
182
- sentAt: zod_1.z.string().datetime().nullable(),
183
- updatedAt: zod_1.z.string().datetime(),
184
- });
185
- exports.EmailListResponseSchema = zod_1.z.object({
186
- data: zod_1.z.array(exports.EmailResponseSchema),
187
- nextCursor: zod_1.z.string().nullable(),
188
- });
189
- exports.EmailEventResponseSchema = zod_1.z.object({
190
- id: zod_1.z.string(),
191
- type: zod_1.z.string(),
192
- providerEventId: zod_1.z.string().nullable(),
193
- payload: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
194
- occurredAt: zod_1.z.string().datetime(),
195
- createdAt: zod_1.z.string().datetime(),
196
- });
197
- exports.EmailEventsListResponseSchema = zod_1.z.object({
198
- data: zod_1.z.array(exports.EmailEventResponseSchema),
199
- nextCursor: zod_1.z.string().nullable(),
200
- });
201
- // ---------------------------------------------------------------------------
202
- // Pre-send validation
203
- // ---------------------------------------------------------------------------
204
- var AttachmentInputSchema = zod_1.z.object({
205
- filename: zod_1.z.string().min(1),
206
- content: zod_1.z.string().min(1),
207
- contentType: zod_1.z.string().min(1),
208
- });
209
- exports.PreSendValidationBodySchema = zod_1.z.object({
210
- from: zod_1.z.string().min(1),
211
- to: zod_1.z.array(zod_1.z.string().email()).min(1).max(50),
212
- subject: zod_1.z.string(),
213
- html: zod_1.z.string().optional(),
214
- text: zod_1.z.string().optional(),
215
- attachments: zod_1.z.array(AttachmentInputSchema).optional(),
216
- /** ISO 8601 date-time string. Must be at least 5 minutes in the future if provided. */
217
- scheduledAt: zod_1.z.string().datetime().optional(),
218
- });
219
- var ValidationCheckSchema = zod_1.z.object({
220
- name: zod_1.z.string(),
221
- passed: zod_1.z.boolean(),
222
- message: zod_1.z.string().optional(),
223
- });
224
- exports.PreSendValidationResponseSchema = zod_1.z.object({
225
- valid: zod_1.z.boolean(),
226
- checks: zod_1.z.array(ValidationCheckSchema),
227
- });
@@ -1,27 +0,0 @@
1
- /**
2
- * Apollo Signal — Health Schemas
3
- *
4
- * Subpath: @apollo-deploy/signal-schemas/health
5
- */
6
- import { z } from 'zod';
7
- export declare const HealthResponseSchema: z.ZodObject<{
8
- status: z.ZodEnum<{
9
- degraded: "degraded";
10
- ok: "ok";
11
- }>;
12
- postgres: z.ZodEnum<{
13
- degraded: "degraded";
14
- ok: "ok";
15
- }>;
16
- redis: z.ZodEnum<{
17
- degraded: "degraded";
18
- ok: "ok";
19
- }>;
20
- ses: z.ZodEnum<{
21
- degraded: "degraded";
22
- ok: "ok";
23
- }>;
24
- time: z.ZodString;
25
- }, z.core.$strip>;
26
- export type HealthResponse = z.infer<typeof HealthResponseSchema>;
27
- //# sourceMappingURL=health.schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"health.schema.d.ts","sourceRoot":"","sources":["../../../src/definitions/health/health.schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;iBAM/B,CAAC;AAMH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -1,23 +0,0 @@
1
- "use strict";
2
- /**
3
- * Apollo Signal — Health Schemas
4
- *
5
- * Subpath: @apollo-deploy/signal-schemas/health
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.HealthResponseSchema = void 0;
9
- var zod_1 = require("zod");
10
- // ---------------------------------------------------------------------------
11
- // Response schema
12
- // ---------------------------------------------------------------------------
13
- exports.HealthResponseSchema = zod_1.z.object({
14
- status: zod_1.z.enum(['ok', 'degraded']),
15
- postgres: zod_1.z.enum(['ok', 'degraded']),
16
- redis: zod_1.z.enum(['ok', 'degraded']),
17
- ses: zod_1.z.enum(['ok', 'degraded']),
18
- time: zod_1.z.string().datetime(),
19
- });
20
- // ---------------------------------------------------------------------------
21
- // Schema registry — promotes types to OpenAPI components/schemas
22
- // ---------------------------------------------------------------------------
23
- zod_1.z.globalRegistry.add(exports.HealthResponseSchema, { id: 'HealthResponse' });
@@ -1,30 +0,0 @@
1
- /**
2
- * Apollo Signal — Internal health schemas (health module).
3
- *
4
- * Zod schemas for health check response.
5
- * Internal only — MUST NOT be exported to shared packages.
6
- *
7
- * Design §5.12 ; Requirements §13
8
- */
9
- import { z } from "zod";
10
- export declare const HealthResponseSchema: z.ZodObject<{
11
- status: z.ZodEnum<{
12
- degraded: "degraded";
13
- ok: "ok";
14
- }>;
15
- postgres: z.ZodEnum<{
16
- degraded: "degraded";
17
- ok: "ok";
18
- }>;
19
- redis: z.ZodEnum<{
20
- degraded: "degraded";
21
- ok: "ok";
22
- }>;
23
- ses: z.ZodEnum<{
24
- degraded: "degraded";
25
- ok: "ok";
26
- }>;
27
- time: z.ZodString;
28
- }, z.core.$strip>;
29
- export type HealthResponse = z.infer<typeof HealthResponseSchema>;
30
- //# sourceMappingURL=schemas.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/definitions/health/schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;iBAO/B,CAAC;AAMH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -1,23 +0,0 @@
1
- "use strict";
2
- /**
3
- * Apollo Signal — Internal health schemas (health module).
4
- *
5
- * Zod schemas for health check response.
6
- * Internal only — MUST NOT be exported to shared packages.
7
- *
8
- * Design §5.12 ; Requirements §13
9
- */
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.HealthResponseSchema = void 0;
12
- var zod_1 = require("zod");
13
- // ---------------------------------------------------------------------------
14
- // Response schema
15
- // ---------------------------------------------------------------------------
16
- exports.HealthResponseSchema = zod_1.z.object({
17
- status: zod_1.z.enum(["ok", "degraded"]),
18
- postgres: zod_1.z.enum(["ok", "degraded"]),
19
- redis: zod_1.z.enum(["ok", "degraded"]),
20
- ses: zod_1.z.enum(["ok", "degraded"]),
21
- /** ISO 8601 timestamp */
22
- time: zod_1.z.string().datetime(),
23
- });
@@ -1,8 +0,0 @@
1
- /**
2
- * Apollo Signal — Projects internal contracts.
3
- *
4
- * Re-exports from @apollo-deploy/signal-schemas/projects.
5
- * Source of truth has moved to packages/signal-schemas.
6
- */
7
- export * from '@apollo-deploy/signal-schemas/projects';
8
- //# sourceMappingURL=projects.schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"projects.schema.d.ts","sourceRoot":"","sources":["../../../src/definitions/projects/projects.schema.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,cAAc,wCAAwC,CAAC"}
@@ -1,23 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- /**
18
- * Apollo Signal — Projects internal contracts.
19
- *
20
- * Re-exports from @apollo-deploy/signal-schemas/projects.
21
- * Source of truth has moved to packages/signal-schemas.
22
- */
23
- __exportStar(require("@apollo-deploy/signal-schemas/projects"), exports);