emailengine-app 2.78.0 → 2.79.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/.ncurc.js +23 -13
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +68 -0
- package/config/e2e.toml +2 -1
- package/config/test.toml +2 -1
- package/data/google-crawlers.json +1 -1
- package/lib/account.js +112 -36
- package/lib/api-reference/format.js +91 -4
- package/lib/api-reference/model.js +144 -19
- package/lib/api-reference/schema-tree.js +282 -28
- package/lib/api-routes/account-routes.js +80 -34
- package/lib/api-routes/blocklist-routes.js +21 -47
- package/lib/api-routes/chat-routes.js +10 -12
- package/lib/api-routes/delivery-test-routes.js +6 -26
- package/lib/api-routes/export-routes.js +2 -0
- package/lib/api-routes/gateway-routes.js +52 -11
- package/lib/api-routes/license-routes.js +2 -0
- package/lib/api-routes/mailbox-routes.js +29 -26
- package/lib/api-routes/message-routes.js +27 -21
- package/lib/api-routes/oauth2-app-routes.js +11 -29
- package/lib/api-routes/operation-impact.js +80 -0
- package/lib/api-routes/outbox-routes.js +15 -5
- package/lib/api-routes/permission-map.js +401 -0
- package/lib/api-routes/route-helpers.js +294 -9
- package/lib/api-routes/route-metadata.js +28 -0
- package/lib/api-routes/settings-routes.js +66 -38
- package/lib/api-routes/stats-routes.js +2 -2
- package/lib/api-routes/submit-routes.js +53 -31
- package/lib/api-routes/template-routes.js +3 -0
- package/lib/api-routes/token-routes.js +526 -72
- package/lib/api-routes/webhook-route-routes.js +14 -4
- package/lib/arf-detect.js +17 -4
- package/lib/auth-token.js +80 -8
- package/lib/bounce-detect.js +28 -17
- package/lib/consts.js +16 -0
- package/lib/db.js +26 -2
- package/lib/delivery-error.js +30 -1
- package/lib/email-client/base-client.js +27 -41
- package/lib/email-client/gmail-client.js +23 -17
- package/lib/email-client/imap/mailbox.js +58 -59
- package/lib/email-client/imap/subconnection.js +10 -7
- package/lib/email-client/imap/sync-operations.js +46 -46
- package/lib/email-client/imap-client.js +85 -28
- package/lib/email-client/message-builder.js +3 -3
- package/lib/email-client/notification-handler.js +1 -1
- package/lib/email-client/outlook/graph-api.js +10 -4
- package/lib/email-client/outlook-client.js +56 -64
- package/lib/email-client/smtp-pool-manager.js +1 -1
- package/lib/enum-descriptions.js +92 -2
- package/lib/export.js +1 -1
- package/lib/field-usage.js +133 -0
- package/lib/gateway.js +1 -1
- package/lib/imapproxy/imap-core/lib/commands/authenticate-plain.js +3 -3
- package/lib/imapproxy/imap-core/lib/commands/id.js +2 -13
- package/lib/imapproxy/imap-core/lib/commands/starttls.js +1 -1
- package/lib/imapproxy/imap-core/lib/imap-command.js +21 -5
- package/lib/imapproxy/imap-core/lib/imap-connection.js +15 -5
- package/lib/imapproxy/imap-server.js +27 -7
- package/lib/license-beacon.js +4 -9
- package/lib/lists.js +49 -1
- package/lib/llm-pre-process.js +5 -5
- package/lib/logger.js +5 -1
- package/lib/lua/h-set-new-mark.lua +36 -0
- package/lib/message-port-stream.js +84 -1
- package/lib/metrics-collector.js +2 -2
- package/lib/oauth/gmail.js +9 -12
- package/lib/oauth/mail-ru.js +5 -7
- package/lib/oauth/outlook.js +9 -9
- package/lib/oauth/pubsub/google.js +25 -10
- package/lib/oauth/scope-checker.js +1 -1
- package/lib/oauth2-apps.js +290 -292
- package/lib/openapi/build-document.js +20 -8
- package/lib/openapi/joi-schema.js +20 -0
- package/lib/outbox.js +85 -17
- package/lib/pre-process.js +8 -8
- package/lib/queue-stats.js +49 -0
- package/lib/read-env-value.js +1 -1
- package/lib/reconnection-manager.js +2 -2
- package/lib/rewrite-text-nodes.js +4 -3
- package/lib/routes-ui.js +4 -0
- package/lib/schemas.js +218 -162
- package/lib/settings.js +98 -5
- package/lib/sub-script.js +2 -1
- package/lib/swagger-options.js +2 -1
- package/lib/templates.js +4 -4
- package/lib/threads.js +2 -2
- package/lib/token-audit-log.js +231 -0
- package/lib/token-permission-view.js +219 -0
- package/lib/token-permissions.js +172 -0
- package/lib/tokens.js +247 -66
- package/lib/tools.js +142 -37
- package/lib/ui-routes/account-routes.js +42 -15
- package/lib/ui-routes/admin-config-routes.js +18 -10
- package/lib/ui-routes/admin-entities-routes.js +117 -38
- package/lib/ui-routes/auth-routes.js +30 -24
- package/lib/ui-routes/export-routes.js +10 -4
- package/lib/ui-routes/oauth-config-routes.js +12 -12
- package/lib/ui-routes/reference-routes.js +3 -3
- package/lib/ui-routes/route-helpers.js +78 -2
- package/lib/ui-routes/settings-page.js +1 -1
- package/lib/ui-routes/smtp-test-routes.js +1 -1
- package/lib/ui-routes/suppression-list-routes.js +299 -0
- package/lib/ui-routes/unsubscribe-routes.js +19 -29
- package/lib/utils/decode-headers.js +42 -0
- package/lib/utils/header-map.js +48 -0
- package/lib/utils/network.js +2 -2
- package/lib/utils/unsafe-key.js +59 -0
- package/lib/web-safe-html.js +1 -1
- package/lib/webhook-routing.js +84 -0
- package/lib/webhooks.js +48 -14
- package/package.json +11 -10
- package/sbom.json +1 -1
- package/server.js +116 -55
- package/static/css/flyonui.css +1 -1
- package/static/css/src/app.tailwind.css +136 -9
- package/static/js/reference.js +456 -10
- package/static/js/ui.js +43 -0
- package/static/licenses.html +51 -41
- package/translations/messages.pot +59 -59
- package/views/accounts/account.hbs +75 -13
- package/views/accounts/browse.hbs +19 -36
- package/views/accounts/edit.hbs +2 -2
- package/views/config/logging.hbs +6 -0
- package/views/config/oauth/app.hbs +0 -2
- package/views/config/security.hbs +13 -0
- package/views/gateways/edit.hbs +1 -1
- package/views/gateways/gateway.hbs +2 -2
- package/views/gateways/index.hbs +7 -7
- package/views/partials/accounts_table.hbs +7 -7
- package/views/partials/oauth_form.hbs +0 -15
- package/views/partials/reference/disclosure.hbs +8 -2
- package/views/partials/reference/operation.hbs +47 -13
- package/views/partials/reference/params.hbs +17 -1
- package/views/partials/reference/schema-node.hbs +110 -52
- package/views/partials/reference/schema-tools.hbs +25 -0
- package/views/partials/reference/try-it.hbs +84 -11
- package/views/partials/side_menu.hbs +1 -0
- package/views/partials/ui/checkbox.hbs +2 -2
- package/views/partials/ui/tabs.hbs +7 -1
- package/views/reference/token.hbs +4 -0
- package/views/suppression-lists/index.hbs +85 -0
- package/views/suppression-lists/list.hbs +87 -0
- package/views/templates/index.hbs +10 -4
- package/views/templates/template.hbs +1 -1
- package/views/tokens/index.hbs +53 -6
- package/views/tokens/new.hbs +334 -5
- package/workers/api.js +185 -102
- package/workers/documents.js +46 -26
- package/workers/export.js +20 -8
- package/workers/imap-proxy.js +2 -2
- package/workers/imap.js +77 -78
- package/workers/smtp.js +13 -7
- package/workers/submit.js +40 -30
- package/workers/webhooks.js +80 -26
- package/lib/feature-flags.js +0 -48
|
@@ -226,12 +226,19 @@
|
|
|
226
226
|
* schema description, which the Tailwind scanner never sees - so this has
|
|
227
227
|
* to be a class, not utilities. */
|
|
228
228
|
.ee-code,
|
|
229
|
-
.ee-chip
|
|
229
|
+
.ee-chip,
|
|
230
|
+
.ee-ref-example-value {
|
|
230
231
|
background-color: color-mix(in oklab, var(--color-base-content) 8%, transparent);
|
|
231
232
|
border-radius: var(--radius-field, 0.375rem);
|
|
232
233
|
padding: 0.0625rem 0.375rem;
|
|
233
234
|
font-family: var(--font-mono, ui-monospace, monospace);
|
|
234
235
|
font-size: 0.75rem;
|
|
236
|
+
}
|
|
237
|
+
/* A prose code span holds together on one line. A chip does not: a few spell out a list -
|
|
238
|
+
* the accepted proxy URI schemes run to 366px - and a chip that cannot break pushed the
|
|
239
|
+
* whole page sideways on a phone. Chips sit in wrapping flex rows, so one only breaks
|
|
240
|
+
* internally when it does not fit a line of its own; on the Account page that is 5 of 420. */
|
|
241
|
+
.ee-code {
|
|
235
242
|
white-space: nowrap;
|
|
236
243
|
}
|
|
237
244
|
/* .ee-chip is the muted variant, for constraint and default markers */
|
|
@@ -243,16 +250,136 @@
|
|
|
243
250
|
* The schema trees are deeply nested lists rendered by a recursive
|
|
244
251
|
* partial, so their look comes from a class rather than utilities. These
|
|
245
252
|
* class names double as the e2e selectors in test/e2e/reference.spec.js. */
|
|
253
|
+
/* Each list of rows is its own size container, which is what lets a row split on the
|
|
254
|
+
* width it actually has - see .ee-ref-prop-row. */
|
|
246
255
|
.ee-ref-props {
|
|
247
256
|
display: flex;
|
|
248
257
|
flex-direction: column;
|
|
249
|
-
|
|
258
|
+
container-type: inline-size;
|
|
250
259
|
}
|
|
251
260
|
.ee-ref-nest {
|
|
252
261
|
border-inline-start: 1px solid color-mix(in oklab, var(--color-base-content) 12%, transparent);
|
|
253
262
|
padding-inline-start: 0.75rem;
|
|
254
263
|
}
|
|
255
264
|
|
|
265
|
+
/* One property row: name, type and constraint chips in a rail, prose in a column
|
|
266
|
+
* beside it. Before this the name sat above its own description at the same left edge,
|
|
267
|
+
* and the description ran the full 800px content width - about 120 characters against
|
|
268
|
+
* a comfortable 45 to 75 - so the one token a reader scans for was the least
|
|
269
|
+
* distinguishable thing on the row and 128 of them read as a single grey field.
|
|
270
|
+
*
|
|
271
|
+
* The hairline replaces the old 0.625rem gap rather than adding to it, which keeps a
|
|
272
|
+
* long list the same height as before while making its rows countable.
|
|
273
|
+
*
|
|
274
|
+
* A container query, not a viewport one. A row never sees the viewport: the admin shell
|
|
275
|
+
* takes an 18rem sidebar and the reference a further 16rem nav column, BOTH of which
|
|
276
|
+
* appear at lg - so a viewport breakpoint fires just as the row gets narrower, not when
|
|
277
|
+
* it gets wider. Nesting then subtracts another 0.75rem per level through .ee-ref-nest,
|
|
278
|
+
* up to nine levels deep. Asking the row's own list how wide it is holds in every one of
|
|
279
|
+
* those cases with no breakpoint bookkeeping. */
|
|
280
|
+
.ee-ref-prop-row {
|
|
281
|
+
display: grid;
|
|
282
|
+
grid-template-columns: minmax(0, 1fr);
|
|
283
|
+
gap: 0.1rem 0.9rem;
|
|
284
|
+
padding-block: 0.3rem;
|
|
285
|
+
border-block-start: 1px solid color-mix(in oklab, var(--color-base-content) 8%, transparent);
|
|
286
|
+
}
|
|
287
|
+
.ee-ref-props > .ee-ref-prop:first-child > .ee-ref-prop-row {
|
|
288
|
+
border-block-start: 0;
|
|
289
|
+
padding-block-start: 0;
|
|
290
|
+
}
|
|
291
|
+
@container (width >= 30rem) {
|
|
292
|
+
.ee-ref-prop-row {
|
|
293
|
+
grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
.ee-ref-prop-rail {
|
|
297
|
+
display: flex;
|
|
298
|
+
flex-direction: column;
|
|
299
|
+
gap: 0.1rem;
|
|
300
|
+
min-width: 0;
|
|
301
|
+
}
|
|
302
|
+
/* The two wrapping lines inside the rail (name, then type and chips). A class rather
|
|
303
|
+
* than the utility string at both call sites: the recursive partial emits this twice
|
|
304
|
+
* per property, so on the Account tag page that is 836 copies of it. */
|
|
305
|
+
.ee-ref-prop-line {
|
|
306
|
+
display: flex;
|
|
307
|
+
flex-wrap: wrap;
|
|
308
|
+
align-items: baseline;
|
|
309
|
+
column-gap: 0.375rem;
|
|
310
|
+
row-gap: 0.25rem;
|
|
311
|
+
}
|
|
312
|
+
/* Capped measure for the prose. In rem rather than ch so the cap does not drift with
|
|
313
|
+
* whatever font-size the row inherits. */
|
|
314
|
+
.ee-ref-prop-body {
|
|
315
|
+
min-width: 0;
|
|
316
|
+
max-width: 34rem;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/* The example value on a property row. It takes the shared size and shape above so it
|
|
320
|
+
* belongs to the same family as the constraint markers, and overrides only the colour:
|
|
321
|
+
* primary text on a primary-tinted ground, because it is the one thing on the row that
|
|
322
|
+
* is a specimen rather than a statement about the field. Muting it into .ee-chip made it
|
|
323
|
+
* read as another constraint; leaving it as plain prose made it read as the end of the
|
|
324
|
+
* sentence it follows.
|
|
325
|
+
*
|
|
326
|
+
* It breaks internally rather than pushing the row sideways. A cut value is closed off
|
|
327
|
+
* by formatExample() in lib/api-reference/format.js, so what wraps is at most 43
|
|
328
|
+
* characters. */
|
|
329
|
+
.ee-ref-example-value {
|
|
330
|
+
background-color: color-mix(in oklab, var(--color-primary) 10%, transparent);
|
|
331
|
+
color: color-mix(in oklab, var(--color-primary) 85%, var(--color-base-content));
|
|
332
|
+
overflow-wrap: anywhere;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/* A usage note is prose about a decision, so it gets the same left rule the nested
|
|
336
|
+
* property lists use, in the primary colour to tie it to the disclosure that opened it. */
|
|
337
|
+
.ee-ref-usage {
|
|
338
|
+
border-inline-start: 2px solid color-mix(in oklab, var(--color-primary) 45%, transparent);
|
|
339
|
+
padding-inline-start: 0.625rem;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/* The Try it request body editor keeps .code-editor's border and radius but sizes itself
|
|
343
|
+
* from its content: static/js/reference.js gives it minLines/maxLines, which .code-editor's
|
|
344
|
+
* fixed 14rem would otherwise fight. */
|
|
345
|
+
.ee-ref-body-editor {
|
|
346
|
+
height: auto;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/* Example payloads open by default, so the shape of a response is the first thing a
|
|
350
|
+
* reader meets rather than 128 property rows. That only works if the cost is bounded:
|
|
351
|
+
* the AccountResponse example alone pretty-prints to about 130 lines, and thirteen of
|
|
352
|
+
* those on one tag page is worse than what it replaced. Past this height the block
|
|
353
|
+
* scrolls inside itself, which keeps every operation the same size on the page.
|
|
354
|
+
*
|
|
355
|
+
* Bounded is not the same as hidden, though, and it used to be: the submit request
|
|
356
|
+
* example is 392px of content in a 240px box, so 40% of it sat below an edge with
|
|
357
|
+
* nothing to say so. The four background layers are the standard pure-CSS scroll
|
|
358
|
+
* shadow: the two `local` layers scroll with the content and mask the two `scroll`
|
|
359
|
+
* layers, so a shadow appears at the top only when there is something above and at the
|
|
360
|
+
* bottom only when there is something below. No script, and no shadow at all on a block
|
|
361
|
+
* that fits. */
|
|
362
|
+
.ee-ref-example {
|
|
363
|
+
max-height: 15rem;
|
|
364
|
+
overflow-y: auto;
|
|
365
|
+
overscroll-behavior: contain;
|
|
366
|
+
background-image: linear-gradient(to bottom, var(--color-base-200), transparent), linear-gradient(to top, var(--color-base-200), transparent),
|
|
367
|
+
linear-gradient(to bottom, color-mix(in oklab, var(--color-base-content) 16%, transparent), transparent),
|
|
368
|
+
linear-gradient(to top, color-mix(in oklab, var(--color-base-content) 16%, transparent), transparent);
|
|
369
|
+
background-position:
|
|
370
|
+
top,
|
|
371
|
+
bottom,
|
|
372
|
+
top,
|
|
373
|
+
bottom;
|
|
374
|
+
background-size:
|
|
375
|
+
100% 1.25rem,
|
|
376
|
+
100% 1.25rem,
|
|
377
|
+
100% 0.5rem,
|
|
378
|
+
100% 0.5rem;
|
|
379
|
+
background-repeat: no-repeat;
|
|
380
|
+
background-attachment: local, local, scroll, scroll;
|
|
381
|
+
}
|
|
382
|
+
|
|
256
383
|
/* Room to breathe above a jump target - operations linked from the sidebar and from
|
|
257
384
|
* #operationId, property rows from #operation.body.field. The sticky chrome above them is
|
|
258
385
|
* NOT in here: that is scroll-padding on the scroller (.ee-app-chrome in @layer base), and
|
|
@@ -275,28 +402,28 @@
|
|
|
275
402
|
color: var(--color-primary);
|
|
276
403
|
}
|
|
277
404
|
|
|
278
|
-
/* Property links stay hidden until their row is hovered. The rule hangs off the
|
|
279
|
-
*
|
|
280
|
-
*
|
|
281
|
-
*
|
|
405
|
+
/* Property links stay hidden until their row is hovered. The rule hangs off the row
|
|
406
|
+
* rather than the list item because the item CONTAINS the nested rows, so hovering a
|
|
407
|
+
* leaf would reveal the link on every one of its ancestors too. The row holds only
|
|
408
|
+
* this property's own rail and prose, which makes it exact at every depth (same
|
|
282
409
|
* reasoning as the disclosure chevron below). */
|
|
283
410
|
.ee-ref-prop-anchor {
|
|
284
411
|
opacity: 0;
|
|
285
412
|
transition: opacity 0.15s;
|
|
286
413
|
}
|
|
287
|
-
.ee-ref-prop-
|
|
414
|
+
.ee-ref-prop-row:hover .ee-ref-prop-anchor,
|
|
288
415
|
.ee-ref-prop-anchor:focus-visible {
|
|
289
416
|
opacity: 1;
|
|
290
417
|
}
|
|
291
418
|
|
|
292
419
|
/* Arriving on a linked property. :target needs no script, so the row is marked
|
|
293
420
|
* even if the deep link lands on an already-expanded group. */
|
|
294
|
-
.ee-ref-prop:target > .ee-ref-prop-
|
|
421
|
+
.ee-ref-prop:target > .ee-ref-prop-row {
|
|
295
422
|
background: color-mix(in oklab, var(--color-primary) 12%, transparent);
|
|
296
423
|
border-radius: var(--radius-field);
|
|
297
424
|
box-shadow: 0 0 0 0.25rem color-mix(in oklab, var(--color-primary) 12%, transparent);
|
|
298
425
|
}
|
|
299
|
-
.ee-ref-prop:target > .ee-ref-prop-
|
|
426
|
+
.ee-ref-prop:target > .ee-ref-prop-row .ee-ref-prop-anchor {
|
|
300
427
|
opacity: 1;
|
|
301
428
|
}
|
|
302
429
|
|