@protobase/cli 0.122.0 → 0.122.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/dist/cli/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protobase/cli",
|
|
3
|
-
"version": "0.122.
|
|
3
|
+
"version": "0.122.1",
|
|
4
4
|
"description": "The protobase command: scaffold, doctor, dev, build and serve a Protobase project.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@better-auth/core": "^1.7.12",
|
|
45
45
|
"@hono/node-server": "^2.1.3",
|
|
46
|
-
"@protobase/config": "0.122.
|
|
47
|
-
"@protobase/layout": "0.122.
|
|
48
|
-
"@protobase/query": "0.122.
|
|
49
|
-
"@protobase/schema": "0.122.
|
|
50
|
-
"@protobase/server": "0.122.
|
|
51
|
-
"@protobase/ui": "0.122.
|
|
52
|
-
"@protobase/workflows": "0.122.
|
|
46
|
+
"@protobase/config": "0.122.1",
|
|
47
|
+
"@protobase/layout": "0.122.1",
|
|
48
|
+
"@protobase/query": "0.122.1",
|
|
49
|
+
"@protobase/schema": "0.122.1",
|
|
50
|
+
"@protobase/server": "0.122.1",
|
|
51
|
+
"@protobase/ui": "0.122.1",
|
|
52
|
+
"@protobase/workflows": "0.122.1",
|
|
53
53
|
"@react-email/render": "^2.1.0",
|
|
54
54
|
"@scalar/hono-api-reference": "^0.12.10",
|
|
55
55
|
"@sentry/vite-plugin": "^11.10.0",
|
|
@@ -16,6 +16,7 @@ Mail the app sends, the PDF documents it makes, and forms for people without an
|
|
|
16
16
|
- [PDF documents](../reference/pdf.md#documents): PDF files such as invoices and quotes are React components with typed data, rendered from jobs, hooks or functions and attached to mail as they are.
|
|
17
17
|
- [Mail from your own mailbox](../reference/email.md#from-someones-own-mailbox) (beta): People link their Gmail on the account page, and the app's functions send mail from it; an action offers to connect the mailbox right there when the link is missing or expired.
|
|
18
18
|
- [From addresses](../reference/email.md#from-addresses): People enter their mailbox's other send-as addresses once on the account page, each with a display name and a signature of its own, and the app sends from the one it names or their default.
|
|
19
|
+
- [Checking a From address](../reference/email.md#checking-a-from-address) (coming soon): The app sends one test message from a send-as address through the person's Gmail and shows on the account page the From it arrived with. That catches Gmail sending from the person's own address, with no error, when a send-as address is not set up or verified. Works only on apps hosted on Protobase Cloud; self-hosted apps show the address as unchecked.
|
|
19
20
|
- [A From address on a record](../reference/email.md#a-from-address-on-a-record) (beta): A field such as a client's "Send from" is a dropdown of the person's addresses, and an address a record holds cannot be removed.
|
|
20
21
|
- [Public forms](../reference/forms.md#what-the-visitor-sees): A form at its own address lets people without an account create a record, such as a contact request.
|
|
21
22
|
- [Bot check](../reference/forms.md#bot-check): Each submission passes a check in the browser, without a third-party service or a puzzle.
|
|
@@ -481,6 +481,7 @@ Serves the API of a bundle from `protobase build` and owns the process around it
|
|
|
481
481
|
| `PROTOBASE_FIRST_ADMIN_URL` | the hosting platform's page where the app's first user is added, such as its console's; while the app has no users, the sign-in page links there in place of the `protobase users create` command ([the first admin](auth.md#first-run)) |
|
|
482
482
|
| `PROTOBASE_RUNS_ON_NOTE` | `true` ends the sign-in page on the [Runs on Protobase note](app-identity.md#runs-on-protobase-note), for a hosting platform; default `false`, and any value but `true` or `false` stops startup |
|
|
483
483
|
| `PROTOBASE_RUNTIME_URL` | the endpoint behind the top bar's [runtime update button](versioning.md#runtime-updates), such as a hosting platform's; without it there is no button |
|
|
484
|
+
| `PROTOBASE_MAIL_CHECK_URL` | the hosting platform's service that [checks a From address](email.md#checking-a-from-address), signed with a key derived from `PROTOBASE_SECRET`; without it the account page says addresses cannot be checked |
|
|
484
485
|
| `PROTOBASE_SENTRY_DSN` | the DSN of a Sentry-compatible error tracker the app's server and admin app send their errors to, after the config's `errorReporting` ([Error reporting](api.md#error-reporting)); without it nothing is sent |
|
|
485
486
|
| `PROTOBASE_MAP_STYLE_URL` | the URL of the MapLibre style the record page's [maps](ui-config.md#maps) are drawn with, after the config's `maps`; without it there are no maps |
|
|
486
487
|
| `PROTOBASE_SOURCES` | other Protobase APIs whose resources the app draws as its own, a JSON list of `{ "url", "label", "resources", "roles"? }` after the config's `remoteResources` ([Remote resources](remote-resources.md#declaring-a-source)) |
|
|
@@ -432,9 +432,24 @@ export default defineFunction(async (request, { personalMail }) => {
|
|
|
432
432
|
|
|
433
433
|
- **The mailbox's own address** is the one its provider's ID token names; Google gives it with the `email` scope sign-in asks for.
|
|
434
434
|
- **The account page's calls:** `GET /api/auth/account/mail-senders` lists the person's addresses with their mailbox's own `address`; `POST .../mail-senders/add { address, name?, signature? }`, `POST .../mail-senders/update { id, name?, signature?, isDefault? }` (`name: null` drops the name, `signature: null` drops its own) and `POST .../mail-senders/remove { id }` change them. Each acts on the signed-in person's own addresses only.
|
|
435
|
-
- <gap>An entered address cannot be checked to work before mail goes out from it because the test mail through the mailbox is not implemented.</gap>
|
|
436
435
|
- <gap>An address cannot be shared with others who send mail because proving that the person owns the address is not implemented.</gap>
|
|
437
436
|
|
|
437
|
+
### Checking a From address
|
|
438
|
+
|
|
439
|
+
:::note[Coming soon]
|
|
440
|
+
The app's side is built; the hosting platform's service that receives the test messages is not live yet.
|
|
441
|
+
:::
|
|
442
|
+
|
|
443
|
+
Gmail sends from the account's own address, without an error, when a From address is not one of its verified send-as addresses. So the account page checks an address by sending one test message from it through the person's mailbox, to a one-time address of a mail check service, and showing the From it arrived with:
|
|
444
|
+
|
|
445
|
+
- **When:** adding an address checks it at once; its dialog, under **Edit**, checks it again with **Check address**, and after a result with **Check again**.
|
|
446
|
+
- **Waiting:** the dialog asks every 3 seconds whether the message arrived, for up to 2 minutes, then says it did not arrive in time. Closing the dialog stops asking.
|
|
447
|
+
- **The result:** a From equal to the address, without regard to case, confirms it; any other shows the address the mailbox used instead, with how to set the address up in Gmail. The message also shows in the person's Sent folder.
|
|
448
|
+
- **The service:** the hosting platform names it in `PROTOBASE_MAIL_CHECK_URL`, a URL the app treats as opaque. The app makes two signed JSON `POST`s under it: `/alias-checks` answers `{ token, address }`, a one-time address and its token, and `/alias-checks/result { token }` answers `{ received: false }`, or `{ received: true, from }` with the address in the message's From header. Each carries [Standard Webhooks](https://www.standardwebhooks.com) headers under a key derived from `PROTOBASE_SECRET` by HKDF (`mailCheckSecret` and `mailCheckHeaders` of `@protobase/server`), which the service checks with `verifyStandardWebhook`. `PROTOBASE_MAIL_CHECK_URL` without `PROTOBASE_SECRET` stops startup.
|
|
449
|
+
- **Unchecked:** without the service, the dialog says the app cannot check From addresses, and how to check one by hand.
|
|
450
|
+
- **The account page's calls:** `GET /api/auth/account/mail-senders` says `checks: true` where the app can check; `POST .../mail-senders/check { id }` sends the test message and answers `{ status: 'waiting', check }`, or `{ status: 'unchecked' }`; `POST .../mail-senders/check-result { id, check }` answers `waiting`, `confirmed` or `mismatch` with `from`. Each acts on the signed-in person's own addresses only, and staff signed in as them cannot send a check.
|
|
451
|
+
- <gap>Self-hosted apps cannot check a From address because no mail check service that receives the test messages is implemented outside Protobase Cloud.</gap>
|
|
452
|
+
|
|
438
453
|
### A From address on a record
|
|
439
454
|
|
|
440
455
|
:::caution[Beta]
|