@firedrill-tools/resend 0.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.
- package/LICENSE +201 -0
- package/README.md +198 -0
- package/firedrill/agent.target.json +16 -0
- package/firedrill/baseline.scenario.json +1687 -0
- package/firedrill/conformance.suite.json +19 -0
- package/firedrill/contacts-outage.scenario.json +11 -0
- package/firedrill/quota-exhausted.scenario.json +17 -0
- package/firedrill/rate-limited.scenario.json +11 -0
- package/firedrill/resend-audience.drill.json +407 -0
- package/firedrill/resend-contacts-outage.drill.json +63 -0
- package/firedrill/resend-denied.drill.json +68 -0
- package/firedrill/resend-domains-and-keys.drill.json +307 -0
- package/firedrill/resend-email-flow.drill.json +286 -0
- package/firedrill/resend-fresh-install.drill.json +73 -0
- package/firedrill/resend-invalid-key.drill.json +803 -0
- package/firedrill/resend-large-page.drill.json +53 -0
- package/firedrill/resend-quota-exhausted.drill.json +82 -0
- package/firedrill/resend-rate-limited.drill.json +81 -0
- package/firedrill/resend-restricted-key.drill.json +441 -0
- package/firedrill/resend-tight-limits.drill.json +163 -0
- package/firedrill/tight-limits.scenario.json +16 -0
- package/firedrill/tools/resend/app/assets/ATTRIBUTION.md +30 -0
- package/firedrill/tools/resend/app/assets/fonts/Inter-OFL.txt +93 -0
- package/firedrill/tools/resend/app/assets/fonts/JetBrainsMono-OFL.txt +93 -0
- package/firedrill/tools/resend/app/assets/fonts/inter-latin-wght-normal.woff2 +0 -0
- package/firedrill/tools/resend/app/assets/fonts/jetbrains-mono-latin-400-normal.woff2 +0 -0
- package/firedrill/tools/resend/app/assets/resend-icon-white.svg +3 -0
- package/firedrill/tools/resend/app/assets/resend-wordmark-white.svg +3 -0
- package/firedrill/tools/resend/app/assets/resend.svg +3 -0
- package/firedrill/tools/resend/app/site/app.js +90 -0
- package/firedrill/tools/resend/app/site/assets/fonts/inter-latin-wght-normal.woff2 +0 -0
- package/firedrill/tools/resend/app/site/assets/fonts/jetbrains-mono-latin-400-normal.woff2 +0 -0
- package/firedrill/tools/resend/app/site/assets/resend-icon-white.svg +3 -0
- package/firedrill/tools/resend/app/site/assets/resend-wordmark-white.svg +3 -0
- package/firedrill/tools/resend/app/site/assets/resend.svg +3 -0
- package/firedrill/tools/resend/app/site/contact-panel.js +86 -0
- package/firedrill/tools/resend/app/site/icons.js +70 -0
- package/firedrill/tools/resend/app/site/index.html +56 -0
- package/firedrill/tools/resend/app/site/list.js +41 -0
- package/firedrill/tools/resend/app/site/styles.css +67 -0
- package/firedrill/tools/resend/app/site/ui.js +259 -0
- package/firedrill/tools/resend/app/site/view-audience.js +160 -0
- package/firedrill/tools/resend/app/site/view-domains.js +106 -0
- package/firedrill/tools/resend/app/site/view-email-detail.js +126 -0
- package/firedrill/tools/resend/app/site/view-emails.js +83 -0
- package/firedrill/tools/resend/app/site/view-keys.js +91 -0
- package/firedrill/tools/resend/app/site/views.css +141 -0
- package/firedrill/tools/resend/behavior.mjs +114 -0
- package/firedrill/tools/resend/lib/check.mjs +75 -0
- package/firedrill/tools/resend/lib/core.mjs +112 -0
- package/firedrill/tools/resend/lib/json-depth.mjs +45 -0
- package/firedrill/tools/resend/lib/page.mjs +66 -0
- package/firedrill/tools/resend/lib/time.mjs +60 -0
- package/firedrill/tools/resend/lib/wire.mjs +98 -0
- package/firedrill/tools/resend/ops/contacts.mjs +199 -0
- package/firedrill/tools/resend/ops/domains.mjs +125 -0
- package/firedrill/tools/resend/ops/email-model.mjs +100 -0
- package/firedrill/tools/resend/ops/emails.mjs +139 -0
- package/firedrill/tools/resend/ops/keys-segments.mjs +97 -0
- package/firedrill/tools/resend/resend.tool.json +4804 -0
- package/firedrill/world.json +2148 -0
- package/firedrill.json +5 -0
- package/package.json +62 -0
- package/starter.json +1686 -0
- package/test/conformance.mjs +480 -0
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"id": "resend-domains-and-keys",
|
|
4
|
+
"title": "Create, verify, list, get and remove domains; create, list and remove API keys",
|
|
5
|
+
"targetId": "conformance-agent",
|
|
6
|
+
"scenarioId": "baseline",
|
|
7
|
+
"actorId": "owner",
|
|
8
|
+
"task": {
|
|
9
|
+
"instruction": "Run the domains-and-keys flow against the synthetic Resend Tool and fail loudly on any unexpected status, header or body."
|
|
10
|
+
},
|
|
11
|
+
"assertions": [
|
|
12
|
+
{
|
|
13
|
+
"id": "domains-create-ok",
|
|
14
|
+
"kind": "operation.count",
|
|
15
|
+
"operation": {
|
|
16
|
+
"packageId": "resend",
|
|
17
|
+
"operationId": "domains.create"
|
|
18
|
+
},
|
|
19
|
+
"outcomes": [
|
|
20
|
+
"ok"
|
|
21
|
+
],
|
|
22
|
+
"comparison": {
|
|
23
|
+
"operator": "greater_than_or_equal",
|
|
24
|
+
"value": 1
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id": "domains-create-tool-error",
|
|
29
|
+
"kind": "operation.count",
|
|
30
|
+
"operation": {
|
|
31
|
+
"packageId": "resend",
|
|
32
|
+
"operationId": "domains.create"
|
|
33
|
+
},
|
|
34
|
+
"outcomes": [
|
|
35
|
+
"tool_error"
|
|
36
|
+
],
|
|
37
|
+
"comparison": {
|
|
38
|
+
"operator": "greater_than_or_equal",
|
|
39
|
+
"value": 1
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"id": "domains-list-ok",
|
|
44
|
+
"kind": "operation.count",
|
|
45
|
+
"operation": {
|
|
46
|
+
"packageId": "resend",
|
|
47
|
+
"operationId": "domains.list"
|
|
48
|
+
},
|
|
49
|
+
"outcomes": [
|
|
50
|
+
"ok"
|
|
51
|
+
],
|
|
52
|
+
"comparison": {
|
|
53
|
+
"operator": "greater_than_or_equal",
|
|
54
|
+
"value": 1
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": "domains-list-tool-error",
|
|
59
|
+
"kind": "operation.count",
|
|
60
|
+
"operation": {
|
|
61
|
+
"packageId": "resend",
|
|
62
|
+
"operationId": "domains.list"
|
|
63
|
+
},
|
|
64
|
+
"outcomes": [
|
|
65
|
+
"tool_error"
|
|
66
|
+
],
|
|
67
|
+
"comparison": {
|
|
68
|
+
"operator": "greater_than_or_equal",
|
|
69
|
+
"value": 1
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"id": "domains-get-ok",
|
|
74
|
+
"kind": "operation.count",
|
|
75
|
+
"operation": {
|
|
76
|
+
"packageId": "resend",
|
|
77
|
+
"operationId": "domains.get"
|
|
78
|
+
},
|
|
79
|
+
"outcomes": [
|
|
80
|
+
"ok"
|
|
81
|
+
],
|
|
82
|
+
"comparison": {
|
|
83
|
+
"operator": "greater_than_or_equal",
|
|
84
|
+
"value": 1
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"id": "domains-get-tool-error",
|
|
89
|
+
"kind": "operation.count",
|
|
90
|
+
"operation": {
|
|
91
|
+
"packageId": "resend",
|
|
92
|
+
"operationId": "domains.get"
|
|
93
|
+
},
|
|
94
|
+
"outcomes": [
|
|
95
|
+
"tool_error"
|
|
96
|
+
],
|
|
97
|
+
"comparison": {
|
|
98
|
+
"operator": "greater_than_or_equal",
|
|
99
|
+
"value": 1
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"id": "domains-verify-ok",
|
|
104
|
+
"kind": "operation.count",
|
|
105
|
+
"operation": {
|
|
106
|
+
"packageId": "resend",
|
|
107
|
+
"operationId": "domains.verify"
|
|
108
|
+
},
|
|
109
|
+
"outcomes": [
|
|
110
|
+
"ok"
|
|
111
|
+
],
|
|
112
|
+
"comparison": {
|
|
113
|
+
"operator": "greater_than_or_equal",
|
|
114
|
+
"value": 1
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"id": "domains-verify-tool-error",
|
|
119
|
+
"kind": "operation.count",
|
|
120
|
+
"operation": {
|
|
121
|
+
"packageId": "resend",
|
|
122
|
+
"operationId": "domains.verify"
|
|
123
|
+
},
|
|
124
|
+
"outcomes": [
|
|
125
|
+
"tool_error"
|
|
126
|
+
],
|
|
127
|
+
"comparison": {
|
|
128
|
+
"operator": "greater_than_or_equal",
|
|
129
|
+
"value": 1
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"id": "domains-remove-ok",
|
|
134
|
+
"kind": "operation.count",
|
|
135
|
+
"operation": {
|
|
136
|
+
"packageId": "resend",
|
|
137
|
+
"operationId": "domains.remove"
|
|
138
|
+
},
|
|
139
|
+
"outcomes": [
|
|
140
|
+
"ok"
|
|
141
|
+
],
|
|
142
|
+
"comparison": {
|
|
143
|
+
"operator": "greater_than_or_equal",
|
|
144
|
+
"value": 1
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"id": "domains-remove-tool-error",
|
|
149
|
+
"kind": "operation.count",
|
|
150
|
+
"operation": {
|
|
151
|
+
"packageId": "resend",
|
|
152
|
+
"operationId": "domains.remove"
|
|
153
|
+
},
|
|
154
|
+
"outcomes": [
|
|
155
|
+
"tool_error"
|
|
156
|
+
],
|
|
157
|
+
"comparison": {
|
|
158
|
+
"operator": "greater_than_or_equal",
|
|
159
|
+
"value": 1
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"id": "api-keys-create-ok",
|
|
164
|
+
"kind": "operation.count",
|
|
165
|
+
"operation": {
|
|
166
|
+
"packageId": "resend",
|
|
167
|
+
"operationId": "api_keys.create"
|
|
168
|
+
},
|
|
169
|
+
"outcomes": [
|
|
170
|
+
"ok"
|
|
171
|
+
],
|
|
172
|
+
"comparison": {
|
|
173
|
+
"operator": "greater_than_or_equal",
|
|
174
|
+
"value": 1
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"id": "api-keys-create-tool-error",
|
|
179
|
+
"kind": "operation.count",
|
|
180
|
+
"operation": {
|
|
181
|
+
"packageId": "resend",
|
|
182
|
+
"operationId": "api_keys.create"
|
|
183
|
+
},
|
|
184
|
+
"outcomes": [
|
|
185
|
+
"tool_error"
|
|
186
|
+
],
|
|
187
|
+
"comparison": {
|
|
188
|
+
"operator": "greater_than_or_equal",
|
|
189
|
+
"value": 1
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"id": "api-keys-list-ok",
|
|
194
|
+
"kind": "operation.count",
|
|
195
|
+
"operation": {
|
|
196
|
+
"packageId": "resend",
|
|
197
|
+
"operationId": "api_keys.list"
|
|
198
|
+
},
|
|
199
|
+
"outcomes": [
|
|
200
|
+
"ok"
|
|
201
|
+
],
|
|
202
|
+
"comparison": {
|
|
203
|
+
"operator": "greater_than_or_equal",
|
|
204
|
+
"value": 1
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"id": "api-keys-list-tool-error",
|
|
209
|
+
"kind": "operation.count",
|
|
210
|
+
"operation": {
|
|
211
|
+
"packageId": "resend",
|
|
212
|
+
"operationId": "api_keys.list"
|
|
213
|
+
},
|
|
214
|
+
"outcomes": [
|
|
215
|
+
"tool_error"
|
|
216
|
+
],
|
|
217
|
+
"comparison": {
|
|
218
|
+
"operator": "greater_than_or_equal",
|
|
219
|
+
"value": 1
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"id": "api-keys-remove-ok",
|
|
224
|
+
"kind": "operation.count",
|
|
225
|
+
"operation": {
|
|
226
|
+
"packageId": "resend",
|
|
227
|
+
"operationId": "api_keys.remove"
|
|
228
|
+
},
|
|
229
|
+
"outcomes": [
|
|
230
|
+
"ok"
|
|
231
|
+
],
|
|
232
|
+
"comparison": {
|
|
233
|
+
"operator": "greater_than_or_equal",
|
|
234
|
+
"value": 1
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"id": "api-keys-remove-tool-error",
|
|
239
|
+
"kind": "operation.count",
|
|
240
|
+
"operation": {
|
|
241
|
+
"packageId": "resend",
|
|
242
|
+
"operationId": "api_keys.remove"
|
|
243
|
+
},
|
|
244
|
+
"outcomes": [
|
|
245
|
+
"tool_error"
|
|
246
|
+
],
|
|
247
|
+
"comparison": {
|
|
248
|
+
"operator": "greater_than_or_equal",
|
|
249
|
+
"value": 1
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"id": "domains-count",
|
|
254
|
+
"kind": "state.count",
|
|
255
|
+
"packageId": "resend",
|
|
256
|
+
"namespace": "domains",
|
|
257
|
+
"comparison": {
|
|
258
|
+
"operator": "equals",
|
|
259
|
+
"value": 4
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"id": "domain-names-count",
|
|
264
|
+
"kind": "state.count",
|
|
265
|
+
"packageId": "resend",
|
|
266
|
+
"namespace": "domain-names",
|
|
267
|
+
"comparison": {
|
|
268
|
+
"operator": "equals",
|
|
269
|
+
"value": 4
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"id": "api-keys-count",
|
|
274
|
+
"kind": "state.count",
|
|
275
|
+
"packageId": "resend",
|
|
276
|
+
"namespace": "api-keys",
|
|
277
|
+
"comparison": {
|
|
278
|
+
"operator": "equals",
|
|
279
|
+
"value": 4
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"id": "emails-count",
|
|
284
|
+
"kind": "state.count",
|
|
285
|
+
"packageId": "resend",
|
|
286
|
+
"namespace": "emails",
|
|
287
|
+
"comparison": {
|
|
288
|
+
"operator": "equals",
|
|
289
|
+
"value": 23
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"id": "legacy-domain-failed",
|
|
294
|
+
"kind": "state.value",
|
|
295
|
+
"packageId": "resend",
|
|
296
|
+
"namespace": "domains",
|
|
297
|
+
"rowId": "fffffffe-0000-4000-8000-000200000001",
|
|
298
|
+
"path": [
|
|
299
|
+
"status"
|
|
300
|
+
],
|
|
301
|
+
"comparison": {
|
|
302
|
+
"operator": "equals",
|
|
303
|
+
"value": "failed"
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
]
|
|
307
|
+
}
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"id": "resend-email-flow",
|
|
4
|
+
"title": "Send, batch, read, page, reschedule and cancel emails; every send validation branch",
|
|
5
|
+
"targetId": "conformance-agent",
|
|
6
|
+
"scenarioId": "baseline",
|
|
7
|
+
"actorId": "owner",
|
|
8
|
+
"task": {
|
|
9
|
+
"instruction": "Run the email-flow flow against the synthetic Resend Tool and fail loudly on any unexpected status, header or body."
|
|
10
|
+
},
|
|
11
|
+
"assertions": [
|
|
12
|
+
{
|
|
13
|
+
"id": "emails-send-ok",
|
|
14
|
+
"kind": "operation.count",
|
|
15
|
+
"operation": {
|
|
16
|
+
"packageId": "resend",
|
|
17
|
+
"operationId": "emails.send"
|
|
18
|
+
},
|
|
19
|
+
"outcomes": [
|
|
20
|
+
"ok"
|
|
21
|
+
],
|
|
22
|
+
"comparison": {
|
|
23
|
+
"operator": "greater_than_or_equal",
|
|
24
|
+
"value": 1
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id": "emails-send-tool-error",
|
|
29
|
+
"kind": "operation.count",
|
|
30
|
+
"operation": {
|
|
31
|
+
"packageId": "resend",
|
|
32
|
+
"operationId": "emails.send"
|
|
33
|
+
},
|
|
34
|
+
"outcomes": [
|
|
35
|
+
"tool_error"
|
|
36
|
+
],
|
|
37
|
+
"comparison": {
|
|
38
|
+
"operator": "greater_than_or_equal",
|
|
39
|
+
"value": 1
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"id": "emails-send-batch-ok",
|
|
44
|
+
"kind": "operation.count",
|
|
45
|
+
"operation": {
|
|
46
|
+
"packageId": "resend",
|
|
47
|
+
"operationId": "emails.send_batch"
|
|
48
|
+
},
|
|
49
|
+
"outcomes": [
|
|
50
|
+
"ok"
|
|
51
|
+
],
|
|
52
|
+
"comparison": {
|
|
53
|
+
"operator": "greater_than_or_equal",
|
|
54
|
+
"value": 1
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": "emails-send-batch-tool-error",
|
|
59
|
+
"kind": "operation.count",
|
|
60
|
+
"operation": {
|
|
61
|
+
"packageId": "resend",
|
|
62
|
+
"operationId": "emails.send_batch"
|
|
63
|
+
},
|
|
64
|
+
"outcomes": [
|
|
65
|
+
"tool_error"
|
|
66
|
+
],
|
|
67
|
+
"comparison": {
|
|
68
|
+
"operator": "greater_than_or_equal",
|
|
69
|
+
"value": 1
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"id": "emails-list-ok",
|
|
74
|
+
"kind": "operation.count",
|
|
75
|
+
"operation": {
|
|
76
|
+
"packageId": "resend",
|
|
77
|
+
"operationId": "emails.list"
|
|
78
|
+
},
|
|
79
|
+
"outcomes": [
|
|
80
|
+
"ok"
|
|
81
|
+
],
|
|
82
|
+
"comparison": {
|
|
83
|
+
"operator": "greater_than_or_equal",
|
|
84
|
+
"value": 1
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"id": "emails-list-tool-error",
|
|
89
|
+
"kind": "operation.count",
|
|
90
|
+
"operation": {
|
|
91
|
+
"packageId": "resend",
|
|
92
|
+
"operationId": "emails.list"
|
|
93
|
+
},
|
|
94
|
+
"outcomes": [
|
|
95
|
+
"tool_error"
|
|
96
|
+
],
|
|
97
|
+
"comparison": {
|
|
98
|
+
"operator": "greater_than_or_equal",
|
|
99
|
+
"value": 1
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"id": "emails-get-ok",
|
|
104
|
+
"kind": "operation.count",
|
|
105
|
+
"operation": {
|
|
106
|
+
"packageId": "resend",
|
|
107
|
+
"operationId": "emails.get"
|
|
108
|
+
},
|
|
109
|
+
"outcomes": [
|
|
110
|
+
"ok"
|
|
111
|
+
],
|
|
112
|
+
"comparison": {
|
|
113
|
+
"operator": "greater_than_or_equal",
|
|
114
|
+
"value": 1
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"id": "emails-get-tool-error",
|
|
119
|
+
"kind": "operation.count",
|
|
120
|
+
"operation": {
|
|
121
|
+
"packageId": "resend",
|
|
122
|
+
"operationId": "emails.get"
|
|
123
|
+
},
|
|
124
|
+
"outcomes": [
|
|
125
|
+
"tool_error"
|
|
126
|
+
],
|
|
127
|
+
"comparison": {
|
|
128
|
+
"operator": "greater_than_or_equal",
|
|
129
|
+
"value": 1
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"id": "emails-update-ok",
|
|
134
|
+
"kind": "operation.count",
|
|
135
|
+
"operation": {
|
|
136
|
+
"packageId": "resend",
|
|
137
|
+
"operationId": "emails.update"
|
|
138
|
+
},
|
|
139
|
+
"outcomes": [
|
|
140
|
+
"ok"
|
|
141
|
+
],
|
|
142
|
+
"comparison": {
|
|
143
|
+
"operator": "greater_than_or_equal",
|
|
144
|
+
"value": 1
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"id": "emails-update-tool-error",
|
|
149
|
+
"kind": "operation.count",
|
|
150
|
+
"operation": {
|
|
151
|
+
"packageId": "resend",
|
|
152
|
+
"operationId": "emails.update"
|
|
153
|
+
},
|
|
154
|
+
"outcomes": [
|
|
155
|
+
"tool_error"
|
|
156
|
+
],
|
|
157
|
+
"comparison": {
|
|
158
|
+
"operator": "greater_than_or_equal",
|
|
159
|
+
"value": 1
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"id": "emails-cancel-ok",
|
|
164
|
+
"kind": "operation.count",
|
|
165
|
+
"operation": {
|
|
166
|
+
"packageId": "resend",
|
|
167
|
+
"operationId": "emails.cancel"
|
|
168
|
+
},
|
|
169
|
+
"outcomes": [
|
|
170
|
+
"ok"
|
|
171
|
+
],
|
|
172
|
+
"comparison": {
|
|
173
|
+
"operator": "greater_than_or_equal",
|
|
174
|
+
"value": 1
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"id": "emails-cancel-tool-error",
|
|
179
|
+
"kind": "operation.count",
|
|
180
|
+
"operation": {
|
|
181
|
+
"packageId": "resend",
|
|
182
|
+
"operationId": "emails.cancel"
|
|
183
|
+
},
|
|
184
|
+
"outcomes": [
|
|
185
|
+
"tool_error"
|
|
186
|
+
],
|
|
187
|
+
"comparison": {
|
|
188
|
+
"operator": "greater_than_or_equal",
|
|
189
|
+
"value": 1
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"id": "emails-count",
|
|
194
|
+
"kind": "state.count",
|
|
195
|
+
"packageId": "resend",
|
|
196
|
+
"namespace": "emails",
|
|
197
|
+
"comparison": {
|
|
198
|
+
"operator": "equals",
|
|
199
|
+
"value": 29
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"id": "email-sent-events",
|
|
204
|
+
"kind": "event.count",
|
|
205
|
+
"event": {
|
|
206
|
+
"packageId": "resend",
|
|
207
|
+
"eventId": "email.sent"
|
|
208
|
+
},
|
|
209
|
+
"phase": "emitted",
|
|
210
|
+
"comparison": {
|
|
211
|
+
"operator": "equals",
|
|
212
|
+
"value": 5
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"id": "email-delivered-events",
|
|
217
|
+
"kind": "event.count",
|
|
218
|
+
"event": {
|
|
219
|
+
"packageId": "resend",
|
|
220
|
+
"eventId": "email.delivered"
|
|
221
|
+
},
|
|
222
|
+
"phase": "emitted",
|
|
223
|
+
"comparison": {
|
|
224
|
+
"operator": "equals",
|
|
225
|
+
"value": 4
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"id": "email-bounced-events",
|
|
230
|
+
"kind": "event.count",
|
|
231
|
+
"event": {
|
|
232
|
+
"packageId": "resend",
|
|
233
|
+
"eventId": "email.bounced"
|
|
234
|
+
},
|
|
235
|
+
"phase": "emitted",
|
|
236
|
+
"comparison": {
|
|
237
|
+
"operator": "equals",
|
|
238
|
+
"value": 1
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"id": "usage-sent",
|
|
243
|
+
"kind": "state.value",
|
|
244
|
+
"packageId": "resend",
|
|
245
|
+
"namespace": "meta",
|
|
246
|
+
"rowId": "usage",
|
|
247
|
+
"path": [
|
|
248
|
+
"sent"
|
|
249
|
+
],
|
|
250
|
+
"comparison": {
|
|
251
|
+
"operator": "equals",
|
|
252
|
+
"value": 13
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"id": "send-before-cancel",
|
|
257
|
+
"kind": "operation.order",
|
|
258
|
+
"sequence": [
|
|
259
|
+
{
|
|
260
|
+
"anyOf": [
|
|
261
|
+
{
|
|
262
|
+
"packageId": "resend",
|
|
263
|
+
"operationId": "emails.send"
|
|
264
|
+
}
|
|
265
|
+
]
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"anyOf": [
|
|
269
|
+
{
|
|
270
|
+
"packageId": "resend",
|
|
271
|
+
"operationId": "emails.get"
|
|
272
|
+
}
|
|
273
|
+
]
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"anyOf": [
|
|
277
|
+
{
|
|
278
|
+
"packageId": "resend",
|
|
279
|
+
"operationId": "emails.cancel"
|
|
280
|
+
}
|
|
281
|
+
]
|
|
282
|
+
}
|
|
283
|
+
]
|
|
284
|
+
}
|
|
285
|
+
]
|
|
286
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"id": "resend-fresh-install",
|
|
4
|
+
"title": "An actor without resendApiKeyId uses the Production key and sees the seeded team",
|
|
5
|
+
"targetId": "conformance-agent",
|
|
6
|
+
"scenarioId": "baseline",
|
|
7
|
+
"actorId": "fresh",
|
|
8
|
+
"task": {
|
|
9
|
+
"instruction": "Run the fresh-install flow against the synthetic Resend Tool and fail loudly on any unexpected status, header or body."
|
|
10
|
+
},
|
|
11
|
+
"assertions": [
|
|
12
|
+
{
|
|
13
|
+
"id": "workspace-context-ok",
|
|
14
|
+
"kind": "operation.count",
|
|
15
|
+
"operation": {
|
|
16
|
+
"packageId": "resend",
|
|
17
|
+
"operationId": "workspace.context"
|
|
18
|
+
},
|
|
19
|
+
"outcomes": [
|
|
20
|
+
"ok"
|
|
21
|
+
],
|
|
22
|
+
"comparison": {
|
|
23
|
+
"operator": "greater_than_or_equal",
|
|
24
|
+
"value": 1
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id": "emails-list-ok",
|
|
29
|
+
"kind": "operation.count",
|
|
30
|
+
"operation": {
|
|
31
|
+
"packageId": "resend",
|
|
32
|
+
"operationId": "emails.list"
|
|
33
|
+
},
|
|
34
|
+
"outcomes": [
|
|
35
|
+
"ok"
|
|
36
|
+
],
|
|
37
|
+
"comparison": {
|
|
38
|
+
"operator": "greater_than_or_equal",
|
|
39
|
+
"value": 1
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"id": "domains-list-ok",
|
|
44
|
+
"kind": "operation.count",
|
|
45
|
+
"operation": {
|
|
46
|
+
"packageId": "resend",
|
|
47
|
+
"operationId": "domains.list"
|
|
48
|
+
},
|
|
49
|
+
"outcomes": [
|
|
50
|
+
"ok"
|
|
51
|
+
],
|
|
52
|
+
"comparison": {
|
|
53
|
+
"operator": "greater_than_or_equal",
|
|
54
|
+
"value": 1
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": "contacts-list-ok",
|
|
59
|
+
"kind": "operation.count",
|
|
60
|
+
"operation": {
|
|
61
|
+
"packageId": "resend",
|
|
62
|
+
"operationId": "contacts.list"
|
|
63
|
+
},
|
|
64
|
+
"outcomes": [
|
|
65
|
+
"ok"
|
|
66
|
+
],
|
|
67
|
+
"comparison": {
|
|
68
|
+
"operator": "greater_than_or_equal",
|
|
69
|
+
"value": 1
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
}
|