@protobase/cli 0.129.0 → 0.130.0
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/auth/config-organizations.js +15 -0
- package/dist/auth/register.js +8 -2
- package/dist/auth/write-migration.js +34 -12
- package/dist/cli/package.js +1 -1
- package/dist/config/build-project.js +1 -0
- package/dist/config/project-modules.js +64 -0
- package/dist/config/read-only-queries.js +9 -0
- package/dist/config/user-tables-config.js +1 -1
- package/dist/dev/dev-jobs.js +12 -6
- package/dist/dev/entry.js +12 -19
- package/dist/doctor/capture-files.js +3 -3
- package/dist/doctor/startup.js +2 -4
- package/dist/migration/apply-migrations.js +9 -6
- package/dist/migration/baseline/read-live-modules.js +31 -0
- package/dist/migration/baseline/read-live-store.js +50 -0
- package/dist/migration/baseline/write-baseline.js +80 -0
- package/dist/migration/migrate-project.js +3 -3
- package/dist/migration/migration-project.js +29 -15
- package/dist/migration/older-code/catalog.js +34 -0
- package/dist/migration/older-code/contractions.js +86 -0
- package/dist/migration/older-code/lint-files.js +55 -0
- package/dist/migration/older-code/refusal.js +9 -0
- package/dist/migration/older-code/trial.js +58 -0
- package/dist/migration/parts.js +8 -104
- package/dist/migration/record/after-file.js +20 -2
- package/dist/migration/register.js +56 -15
- package/dist/migration/release/release-record.js +9 -7
- package/dist/migration/release/release-steps.js +15 -3
- package/dist/migration/snapshot/auth-difference.js +111 -12
- package/dist/migration/snapshot/auth-target.js +9 -3
- package/dist/migration/snapshot/check.js +26 -9
- package/dist/migration/snapshot/custom.js +6 -3
- package/dist/migration/snapshot/drop.js +5 -1
- package/dist/migration/snapshot/header.js +11 -4
- package/dist/migration/snapshot/module-changes.js +22 -0
- package/dist/migration/snapshot/module-prompts.js +28 -0
- package/dist/migration/snapshot/module-sections.js +38 -0
- package/dist/migration/snapshot/next-snapshot.js +24 -8
- package/dist/migration/snapshot/off-choice.js +11 -0
- package/dist/migration/snapshot/organizations-off-facts.js +49 -0
- package/dist/migration/snapshot/revival-rows.js +34 -0
- package/dist/migration/snapshot/run-migration.js +82 -16
- package/dist/migration/snapshot/snapshot-file.js +7 -0
- package/dist/migration/snapshot/terminal-prompts.js +21 -0
- package/dist/migration/snapshot/write-file.js +1 -1
- package/dist/migration/summary.js +3 -2
- package/dist/organizations/api.js +4 -2
- package/dist/organizations/commands.js +27 -10
- package/dist/organizations/pin-source.js +20 -0
- package/dist/organizations/pin.js +40 -0
- package/dist/organizations/register.js +20 -12
- package/dist/scaffold/protobase-tables.js +2 -2
- package/dist/serve/create-admin.js +6 -3
- package/dist/serve/lifecycle.js +2 -2
- package/dist/serve/migrate-release.js +1 -1
- package/dist/serve/relay-check.js +7 -8
- package/dist/serve/startup-checks.js +12 -22
- package/dist/supabase/load-phase.js +3 -1
- package/dist/supabase/project-users.js +4 -1
- package/dist/users/commands.js +44 -6
- package/dist/users/load-auth.js +9 -3
- package/dist/users/manage.js +16 -1
- package/dist/users/register.js +28 -25
- package/dist/users/set-disabled.js +3 -2
- package/dist/users/users-api.js +9 -3
- package/dist/worker/start-worker.js +7 -4
- package/package.json +8 -8
- package/skills/protobase/references/features/api-functions.md +1 -0
- package/skills/protobase/references/features/build-and-run.md +3 -2
- package/skills/protobase/references/features/sign-in-and-accounts.md +2 -1
- package/skills/protobase/references/guides/api-functions.md +27 -2
- package/skills/protobase/references/guides/deploy.md +2 -2
- package/skills/protobase/references/reference/assistant.md +1 -1
- package/skills/protobase/references/reference/auth.md +52 -17
- package/skills/protobase/references/reference/calls.md +1 -1
- package/skills/protobase/references/reference/cli.md +41 -27
- package/skills/protobase/references/reference/comments.md +1 -1
- package/skills/protobase/references/reference/config/api.md +1 -1
- package/skills/protobase/references/reference/config/jobs-and-events.md +1 -1
- package/skills/protobase/references/reference/config/sign-in.md +22 -4
- package/skills/protobase/references/reference/config.md +1 -1
- package/skills/protobase/references/reference/data-config.md +9 -9
- package/skills/protobase/references/reference/derived.md +1 -1
- package/skills/protobase/references/reference/email.md +2 -2
- package/skills/protobase/references/reference/events.md +2 -2
- package/skills/protobase/references/reference/history.md +1 -1
- package/skills/protobase/references/reference/jobs.md +5 -5
- package/skills/protobase/references/reference/live.md +2 -2
- package/skills/protobase/references/reference/notifications.md +4 -4
- package/skills/protobase/references/reference/personal-access-tokens.md +2 -2
- package/skills/protobase/references/reference/realtime-relay.md +1 -1
- package/skills/protobase/references/reference/status.md +2 -2
- package/skills/protobase/references/reference/supabase-rest.md +1 -1
- package/skills/protobase/references/reference/user-tables.md +1 -1
- package/skills/protobase/references/reference/webhooks.md +1 -1
- package/dist/migration/snapshot/lint-custom.js +0 -23
|
@@ -163,7 +163,7 @@ Not yet:
|
|
|
163
163
|
- <gap>A rollup through a relation of several columns is not supported yet.</gap>
|
|
164
164
|
:::
|
|
165
165
|
|
|
166
|
-
A **rollup** is a value of the other records that point at a record, such as an order's total of its lines. A **formula** is a value computed from the record's own fields, such as a line's amount. Neither needs SQL: you declare the field, and [`protobase migration`](cli.md#migration) writes its column into the project's next migration (`NNN_computed.sql`). Both are real columns, kept by the database in the transaction that writes, so they are right for writes from psql or other services too, and they filter and sort like any column once they have an index.
|
|
166
|
+
A **rollup** is a value of the other records that point at a record, such as an order's total of its lines. A **formula** is a value computed from the record's own fields, such as a line's amount. Neither needs SQL: you declare the field, and [`protobase migration`](cli.md#migration) writes its column into the project's next migration (`NNN_computed.sql`), from the project's snapshot, without a database. A resource's table without a schema in `.table()` is taken to be in `public`; name the schema of one elsewhere, such as `.table('sales.orders')`. Both are real columns, kept by the database in the transaction that writes, so they are right for writes from psql or other services too, and they filter and sort like any column once they have an index.
|
|
167
167
|
|
|
168
168
|
```ts title="docs-examples/reference/rollups.ts"
|
|
169
169
|
import { f, resource } from '@protobase/schema'
|
|
@@ -207,11 +207,11 @@ export const orderLines = resource('order_lines')
|
|
|
207
207
|
| `avg` | The average of `field`. Empty without records. | `f.decimal()`, `.optional()` |
|
|
208
208
|
| `min`, `max` | The least or greatest value of `field`. Empty without records. | a number field, `.optional()` |
|
|
209
209
|
|
|
210
|
-
Empty values of `field` are left out, as in SQL. The migration adds the column, a function in the `rollups` schema and a trigger on `from`'s table that sets the value after every insert, delete and update of the columns it reads, and then sets every record's value once. <gap>A rollup over its own table is not supported yet.</gap> <gap>A rollup on a resource with a key of several columns is not supported yet.</gap> <gap>A rollup through a relation of several columns is not supported yet.</gap>
|
|
210
|
+
Empty values of `field` are left out, as in SQL. The migration adds the column, a function in the `rollups` schema and a trigger on `from`'s table that sets the value after every insert, delete and update of the columns it reads, and then sets every record's value once, in the migration's `.after.sql`, which runs after its transaction commits so a large table is not set inside it. When the rollup changes, or the formula it reads, the migration drops its function, which takes the trigger with it, writes both again and sets the values again. <gap>A rollup over its own table is not supported yet.</gap> <gap>A rollup on a resource with a key of several columns is not supported yet.</gap> <gap>A rollup through a relation of several columns is not supported yet.</gap>
|
|
211
211
|
|
|
212
|
-
`.formula(expression)` is a Postgres generated column. The expression reads the record's number fields, and takes numbers, `+ - * /`, parentheses, `coalesce(a, b, ...)` and `round(x)` or `round(x, digits)`. It is computed exactly as decimals, so `7 / 2` is 3.5, and is stored as the field's type, so an integer field rounds the result. A formula that reads an optional field is `.optional()` too, unless `coalesce()` gives that field a value. A formula cannot read another formula. When the expression changes, the migration drops the column and adds it again, so an index on it must be created again in the same migration.
|
|
212
|
+
`.formula(expression)` is a Postgres generated column. The expression reads the record's number fields, and takes numbers, `+ - * /`, parentheses, `coalesce(a, b, ...)` and `round(x)` or `round(x, digits)`. It is computed exactly as decimals, so `7 / 2` is 3.5, and is stored as the field's type, so an integer field rounds the result. A formula that reads an optional field is `.optional()` too, unless `coalesce()` gives that field a value. A formula cannot read another formula. When the expression changes, the migration drops the column and adds it again, so an index on it must be created again in the same migration; so does a rollup's column whose type changes.
|
|
213
213
|
|
|
214
|
-
Neither field can be written through the API, have a default, or be sensitive, an AI field, a file, or the key, tenant, owner or soft delete field, and a formula cannot read a sensitive field. The server does not start while a declared column, function or trigger
|
|
214
|
+
Neither field can be written through the API, have a default, or be sensitive, an AI field, a file, or the key, tenant, owner or soft delete field, and a formula cannot read a sensitive field. The server does not start while the [record of migrations](../guides/deploy.md#the-record-of-migrations) lacks a declared field's column, function or trigger, or has it otherwise, with a message that names the fields; the migration fixes that. A column that already exists as the project's own makes the migration fail when it is applied; [`protobase migration baseline`](cli.md#migration) refuses one where a formula or rollup is declared: a plain column where a formula is declared, a generated column it did not write, or a rollup column of another type. The column of a field the config no longer has stays, and putting the field back finds it; the function and trigger of a rollup go with it.
|
|
215
215
|
|
|
216
216
|
## Lookups
|
|
217
217
|
|
|
@@ -283,7 +283,7 @@ export const orders = resource('orders')
|
|
|
283
283
|
A rollup cannot yet group by an optional field or roll up a source with some access rules, as the marked limits below say.
|
|
284
284
|
:::
|
|
285
285
|
|
|
286
|
-
A large events table, such as millions of meter readings, gets a **time rollup**: a table with one row per hour or day and per group, holding how many records fell in it and the sums and greatest values of their numbers. A chart over months then reads a few thousand rows instead of millions. You declare the rollup as a resource over the events resource, and [`protobase migration`](cli.md#migration) writes its table, indexes and refresh function into the project's next migration (`NNN_computed.sql`), with the rollup filled once. From then on the app keeps it up to date by itself, at most a minute behind. It is plain Postgres: no extension.
|
|
286
|
+
A large events table, such as millions of meter readings, gets a **time rollup**: a table with one row per hour or day and per group, holding how many records fell in it and the sums and greatest values of their numbers. A chart over months then reads a few thousand rows instead of millions. You declare the rollup as a resource over the events resource, and [`protobase migration`](cli.md#migration) writes its table, indexes and refresh function into the project's next migration (`NNN_computed.sql`), with the rollup filled once in the migration's `.after.sql`, after its transaction commits. From then on the app keeps it up to date by itself, at most a minute behind. It is plain Postgres: no extension.
|
|
287
287
|
|
|
288
288
|
```ts title="docs-examples/reference/time-rollups.ts"
|
|
289
289
|
import { f, resource } from '@protobase/schema'
|
|
@@ -336,11 +336,11 @@ The rollup's records have these fields, all read-only:
|
|
|
336
336
|
| `bucket` | The start of the hour or day. Filterable and sortable. |
|
|
337
337
|
| the `by` fields | The group's values, under the source's field names. Filterable and sortable. |
|
|
338
338
|
| `events` | How many records of the source fell in the bucket, as a bigint. |
|
|
339
|
-
| `<field>_sum` | The sum of the field: a bigint for an integer, a
|
|
340
|
-
| `<field>_max` | The greatest value of the field, of its type. Empty when every value was. |
|
|
339
|
+
| `<field>_sum` | The sum of the field, of the type Postgres's `sum` gives: a bigint for an integer, a numeric for a bigint or a decimal. Empty when every value was. |
|
|
340
|
+
| `<field>_max` | The greatest value of the field, of its column's type. Empty when every value was. |
|
|
341
341
|
| `<field>_count` | How many records of the bucket have a value of the field, as a bigint, for every field in `measures`. |
|
|
342
342
|
|
|
343
|
-
Records the source soft deleted are left out. The migration creates the table in the rollup's schema, with a unique index on `(bucket, by...)` and an index on `(group, bucket)` per group, so a list filtered on the bucket, on a group or on both passes the [scan guard](api.md#safety). It writes `rollups.<table>_refresh(from timestamptz)`, which recomputes every bucket from the one `from` falls in, in one statement: it upserts their counts, sums and greatest values and deletes those left without records. When the rollup's declaration changes, the migration drops its table and creates and fills it again. The table and function of a rollup the config no longer has stay; a migration of your own drops them, in a deploy after the one that stops reading them.
|
|
343
|
+
Records the source soft deleted are left out. The migration creates the table in the rollup's schema, or `public` when its `.table()` names none, from the query its refresh runs, so its columns take the source's types, with a unique index on `(bucket, by...)` and an index on `(group, bucket)` per group, so a list filtered on the bucket, on a group or on both passes the [scan guard](api.md#safety). It writes `rollups.<table>_refresh(from timestamptz)`, which recomputes every bucket from the one `from` falls in, in one statement: it upserts their counts, sums and greatest values and deletes those left without records. When the rollup's declaration changes, or the type of a field it reads, the migration drops its table and creates and fills it again. A change of a source column's type that its field does not show, such as a longer `varchar`, is not seen: change the rollup's declaration too, or alter its table in a migration of your own. The table and function of a rollup the config no longer has stay; a migration of your own drops them, in a deploy after the one that stops reading them.
|
|
344
344
|
|
|
345
345
|
Only the database writes a rollup's rows: creates, updates and deletes are refused whatever its rules say, and it cannot have soft delete, a manual order, an author, a parent or `.openExisting()`. Its access is its own `.access()`: the source's rules do not reach it, so give it rules that let read only those who may see every record of a group. Its tenant is the source's, which is why `by` includes it. A field that is sensitive or has its own read rule, such as `.access({ read: roles.can('costs.read') })`, cannot be grouped by or measured, and one with its own read rule cannot be the rollup's `time`, since a bucket would show it to anyone who reads the rollup. The server does not start while the source has its own `read` or `list` rule in `.access()`, whatever the rule returns, or while a role reads only some of the source's records that a bucket mixes with others: `.own` or `.team` while `by` does not include the source's owner field, or a role's filter on fields outside `by`. <gap>A time rollup cannot group by an optional field because a bucket key with empty parts is not implemented.</gap> <gap>A time rollup cannot roll up a resource whose reads follow a parent because applying the parent's access to buckets is not implemented.</gap> <gap>A time rollup cannot roll up a resource with its own `read` or `list` access rule because declaring the fields such a rule filters on is not implemented.</gap>
|
|
346
346
|
|
|
@@ -350,7 +350,7 @@ The app's [jobs](jobs.md) keep every time rollup up to date: a built-in [recurri
|
|
|
350
350
|
|
|
351
351
|
A record that arrives, or changes, later than `late` after its time, such as one imported from an older history, is counted only by a refresh from before it: [`protobase buckets rebuild`](cli.md#buckets-rebuild) recounts a rollup from an earlier time, such as `protobase buckets rebuild readings_hourly --from 2026-07-01`, which recomputes every bucket from that day's first hour in one statement, or every bucket without `--from`.
|
|
352
352
|
|
|
353
|
-
The server does not start while a rollup's table or function
|
|
353
|
+
The server does not start while the [record of migrations](../guides/deploy.md#the-record-of-migrations) lacks a rollup's table or function, or has it otherwise, with a message that names the rollup; the migration fixes that. A table that already exists as the project's own makes the migration fail when it is applied, and `protobase migration baseline` refuses it.
|
|
354
354
|
|
|
355
355
|
### Charts over a rollup
|
|
356
356
|
|
|
@@ -87,7 +87,7 @@ Runs are `derived.compute` jobs, four at a time per worker, retried like any [jo
|
|
|
87
87
|
|
|
88
88
|
## State
|
|
89
89
|
|
|
90
|
-
`protobase migration`
|
|
90
|
+
`protobase migration` writes the `derived` schema from the project's snapshot as numbered steps, applied with the project's other migrations, with each derived value declared and the job that computes its records once enqueued; a value the config no longer declares loses its state in the next migration, so declaring it again fills it again. `protobase dev` and `protobase serve` do not start while the [record of migrations](../guides/deploy.md#the-record-of-migrations) lacks the schema or a declared value. [`protobase migration baseline`](cli.md#migration) records a schema an earlier version made, and refuses one without the versions sequence, the pending table or their indexes:
|
|
91
91
|
|
|
92
92
|
| Table | |
|
|
93
93
|
| --- | --- |
|
|
@@ -283,7 +283,7 @@ Mail you mark as bulk carries a one-click unsubscribe, as large mailbox provider
|
|
|
283
283
|
|
|
284
284
|
**Bulk** is mail the recipient did not ask for by an action of their own: newsletters, digests, announcements and marketing. **Transactional** mail answers something the recipient did or needs to act on, such as a password reset, a sign-in code, a receipt or an invoice: it is not marked bulk and carries no unsubscribe. Protobase's own mail is transactional.
|
|
285
285
|
|
|
286
|
-
Turn it on in the config, then run `protobase migration`, which writes its table, `mail.unsubscribes`, as a migration of the project's own, and apply it with the project's migrations: `protobase serve` refuses to start while the
|
|
286
|
+
Turn it on in the config, then run `protobase migration`, which writes its table, `mail.unsubscribes`, as a migration of the project's own, and apply it with the project's migrations: `protobase serve` refuses to start while the [record of migrations](../guides/deploy.md#the-record-of-migrations) lacks the table, and names the migration to write. Its links are on the app's [`url`](config/app.md#url), which must be `https://` but on `localhost`, and signed with its [`secret`](config/app.md#secret):
|
|
287
287
|
|
|
288
288
|
```ts
|
|
289
289
|
export default defineConfig({ unsubscribe: true })
|
|
@@ -319,7 +319,7 @@ Amazon SES (through SNS) and Resend report to their own endpoints so far, beside
|
|
|
319
319
|
|
|
320
320
|
A mail provider tells the app when a message bounced or its recipient marked it as spam. With `mailFeedback` on, each report becomes a `mail_feedback` record, one per recipient, or one for a complaint that hides who complained, with the events `mail_feedback.bounced` and `mail_feedback.complained`, which [workflows](workflows.md), [subscriptions](webhooks.md) and your own code act on, such as marking a contact's address undeliverable. Protobase records and notifies only: it keeps sending to the address, and the app decides what a bounce means.
|
|
321
321
|
|
|
322
|
-
Turn it on in the config, then run `protobase migration`, which writes its table, `mail.feedback`, and the capture of its events as migrations of the project's own; apply them with the project's migrations, as `protobase serve` refuses to start while the
|
|
322
|
+
Turn it on in the config, then run `protobase migration`, which writes its table, `mail.feedback`, and the capture of its events as migrations of the project's own; apply them with the project's migrations, as `protobase serve` refuses to start while the [record of migrations](../guides/deploy.md#the-record-of-migrations) lacks the table:
|
|
323
323
|
|
|
324
324
|
```ts
|
|
325
325
|
export default defineConfig({ mailFeedback: true })
|
|
@@ -102,9 +102,9 @@ export default defineConfig({ events: { schema: 'row_changes' } })
|
|
|
102
102
|
|
|
103
103
|
## Migrations and startup
|
|
104
104
|
|
|
105
|
-
[`protobase migration`](cli.md#migration)
|
|
105
|
+
[`protobase migration`](cli.md#migration) writes what the project's `protobase.snapshot.json` lacks of the change capture as the project's next migration: the jobs schema, then the `changes` schema with the outbox, the function, and a trigger pair per resource with events, each a module with numbered steps that the snapshot and the record of migrations hold. Apply it with the project's other migrations. A trigger changes when the resource's fields do, a field that became sensitive for instance, so run the command after changing the config. Once a resource has no events, it keeps its triggers while another resource is still captured, so the code still running drains what they capture, and the migration once none is drops them, saying it breaks older code; it never drops a table. <gap>`protobase migration` cannot refuse a trigger of the app's own named like the capture's, `<table>_changes` or `<table>_changes_update`, which the file replaces, because reading the database's triggers before writing is not implemented.</gap>
|
|
106
106
|
|
|
107
|
-
`protobase dev` and `protobase serve` do not start while
|
|
107
|
+
`protobase dev` and `protobase serve` do not start while the record of migrations lacks the change capture, a resource's triggers as the config makes them, or the jobs schema, and name what to run. `dev` checks again whenever the config it reloads changes what it needs. Neither changes the schema itself.
|
|
108
108
|
|
|
109
109
|
## The outbox
|
|
110
110
|
|
|
@@ -83,7 +83,7 @@ Once a resource has history, admins get **Activity** (the built-in resource `rec
|
|
|
83
83
|
|
|
84
84
|
## The table
|
|
85
85
|
|
|
86
|
-
[`protobase migration`](cli.md#migration) adds the table `changes.history` to the `changes` schema of the event capture (renamed with `events: { schema }`), and the capture triggers of each resource with history; apply it with the project's other migrations. It has an index for each column the Activity list filters on
|
|
86
|
+
[`protobase migration`](cli.md#migration) adds the table `changes.history` to the `changes` schema of the event capture (renamed with `events: { schema }`), and the capture triggers of each resource with history; apply it with the project's other migrations. It has an index for each column the Activity list filters on. `protobase dev` and `protobase serve` do not start while the record of migrations lacks the table or a trigger. A resource that drops `.history()` keeps its triggers while another resource is captured, and loses them at the migration once none is; its changes stay in the table.
|
|
87
87
|
|
|
88
88
|
| Column | |
|
|
89
89
|
| --- | --- |
|
|
@@ -53,7 +53,7 @@ export default (async ({ invoiceId }, { db }) => {
|
|
|
53
53
|
| its name | Letters, digits, `_`, `-`, `.` and `/`; the file `jobs/<name>.ts` holds what it does. |
|
|
54
54
|
| `description` | What the job does, for the people who read the config. |
|
|
55
55
|
| `arguments` | Its arguments by name, each a [field type](data-config.md#field-types) such as `'integer'` or `'bigint'`, or the type with options: `{ type: 'enum', values: ['day', 'week'] }`, `{ type: 'text', min: 1 }`, `{ type: 'integer', optional: true }`, `{ type: 'decimal', precision: 8, scale: 2 }`. Each value is checked as a field of that type checks it, when the job is enqueued and again before it runs, and no other argument is taken. A payload refused at run time fails the job for good. The same is JSON in a `protobase.config.json`. |
|
|
56
|
-
| the default export of `jobs/<name>.ts` | `(payload, { db, job, signal, decryptField, mail, sendNotification })`, typed with `JobRun<Payload>` from `@protobase/server`, its payload `JobPayload<typeof config, '<name>'>` (see [Typed names and payloads](#typed-names-and-payloads)): the work. `db` is the app's pool: the enqueuer's transaction has committed by then. `job` holds its `id`, `name`, `attempt`, `maxAttempts` and `startedOn`, when this try took it. `signal` aborts when the try times out or the worker shuts down. `decryptField(resource, key, field)` reads an encrypted field's value, audited, see [Reading in jobs and functions](data-config.md#reading-in-jobs-and-functions). `mail` sends mail, see [Mail](#mail). `sendNotification` sends a notification, see [Sending](notifications.md#sending); inside a transaction of `db`, a try that throws in it queues nothing. It is `undefined` in an app without [`notifications`](config/jobs-and-events.md#notifications). |
|
|
56
|
+
| the default export of `jobs/<name>.ts` | `(payload, { db, job, signal, decryptField, mail, sendNotification })`, typed with `JobRun<Payload>` from `@protobase/server`, its payload `JobPayload<typeof config, '<name>'>` (see [Typed names and payloads](#typed-names-and-payloads)): the work. `db` is the app's pool: the enqueuer's transaction has committed by then. `db` works in the organization of the `db` the job was enqueued with, such as a function's in a request, and sees only that organization's rows of the [organization's tables](../guides/api-functions.md#the-organizations-tables); a job enqueued with `db.unscoped(...)`, a plain database or from SQL, and a recurring job, works in none, so `db` reads no row of those tables and writes none, unless `db.unscoped('<reason>')`. The payload never sets the organization. `job` holds its `id`, `name`, `attempt`, `maxAttempts` and `startedOn`, when this try took it. `signal` aborts when the try times out or the worker shuts down. `decryptField(resource, key, field)` reads an encrypted field's value, audited, see [Reading in jobs and functions](data-config.md#reading-in-jobs-and-functions). `mail` sends mail, see [Mail](#mail). `sendNotification` sends a notification, see [Sending](notifications.md#sending); inside a transaction of `db`, a try that throws in it queues nothing. It is `undefined` in an app without [`notifications`](config/jobs-and-events.md#notifications). |
|
|
57
57
|
| `maxAttempts` | Tries before the job is kept as failed; default 10. |
|
|
58
58
|
| `retryDelay`, `maxRetryDelay` | The wait before the first retry, doubling with each one (with some jitter), and its ceiling; default `2s` and `1 hour`. Milliseconds or text such as `30 seconds`. |
|
|
59
59
|
| `timeout` | How long one try may run before it counts as failed; default `15 minutes`. |
|
|
@@ -114,7 +114,7 @@ select jobs.enqueue('send-invoice', '{"invoiceId": 7}', run_at => now() + interv
|
|
|
114
114
|
select jobs.enqueue('sync-customer', '{"customerId": 3, "fields": ["email"]}', group_key => 'customer:3');
|
|
115
115
|
```
|
|
116
116
|
|
|
117
|
-
`jobs.enqueue(job_name, payload, run_at, key, group_key, priority)` returns the job's id. A `key` dedupes as `mode: 'dedupe'` does. The job takes its retry settings from its definition, as the workers last saw it; a job no worker has started yet gets pg-boss's defaults until one does.
|
|
117
|
+
`jobs.enqueue(job_name, payload, run_at, key, group_key, priority)` returns the job's id. The job works in no organization. The payload is stored as given, and the runtime keeps a job's organization under a top-level `~organization` key beside it, so never pass an object a request shapes, whose keys it chooses, as the whole payload. <gap>`jobs.enqueue` cannot keep a payload's own `~organization` key as payload because an organization argument of its own is not implemented.</gap> A `key` dedupes as `mode: 'dedupe'` does. The job takes its retry settings from its definition, as the workers last saw it; a job no worker has started yet gets pg-boss's defaults until one does.
|
|
118
118
|
|
|
119
119
|
## Mail
|
|
120
120
|
|
|
@@ -174,13 +174,13 @@ A host that stops an idle app needs to know when a job is due, and to have it ru
|
|
|
174
174
|
|
|
175
175
|
## The `jobs` schema
|
|
176
176
|
|
|
177
|
-
The schema is pg-boss's tables at its pinned schema version, plus Protobase's `jobs.enqueue`, `jobs.next_due` and `jobs.failed`. It is
|
|
177
|
+
The schema is pg-boss's tables at its pinned schema version, plus Protobase's `jobs.enqueue`, `jobs.next_due` and `jobs.failed`. It is a module with numbered steps, like the [auth schema](auth.md#migrations), created and upgraded by the project's migrations:
|
|
178
178
|
|
|
179
179
|
```sh
|
|
180
|
-
bun run protobase migration # writes db/migrations/NNN_jobs.sql when the
|
|
180
|
+
bun run protobase migration # writes db/migrations/NNN_jobs.sql when the snapshot lacks the jobs schema's steps
|
|
181
181
|
bun run db:migrate
|
|
182
182
|
```
|
|
183
183
|
|
|
184
|
-
|
|
184
|
+
Step 1 is pg-boss's own construction plan for schema version 45, copied into Protobase without its `BEGIN` and `COMMIT` and with any `CONCURRENTLY` index build made a plain one, so the file runs in the project's migration transaction; pg-boss stays pinned to an exact version, and a newer pg-boss comes with a step of its own holding its migration plan. Protobase's functions are written whole at their version after the steps, and again when a newer Protobase changes them. [`protobase migration`](cli.md#migration) writes both from `protobase.snapshot.json` alone, which records the step and the functions' version. The server never creates or migrates it: `protobase dev`, `protobase serve` and `protobase worker` read the [record of migrations](../guides/deploy.md#the-record-of-migrations) at startup and refuse to start while it lacks the jobs schema or has it at an older step or functions version, naming what is missing. A jobs schema an earlier version's `protobase migration` wrote, before the snapshot recorded it, is described once with [`protobase migration baseline`](cli.md#migration).
|
|
185
185
|
|
|
186
186
|
pg-boss runs here without what needs a session of its own: no `LISTEN`/`NOTIFY` (a job enqueued in the same process wakes its worker directly, the rest is polled), only transaction-scoped advisory locks, unnamed prepared statements, no index rebuilds and no instance registry. It works through PgBouncer in transaction mode, over the app's own connection pool.
|
|
@@ -49,7 +49,7 @@ Connecting again with `?after=<cursor>` catches up on what was missed while disc
|
|
|
49
49
|
A view's change names no record, so the [Realtime socket](supabase-realtime.md) does not send it.
|
|
50
50
|
:::
|
|
51
51
|
|
|
52
|
-
A resource backed by a database view, such as a chat thread that merges messages and replies, updates live when the tables it reads change. A view takes no trigger, so name the resources it reads with `.live({ reads })`: a change in any of them refreshes the view's open lists, record pages and related lists, and a change in another table does not.
|
|
52
|
+
A resource backed by a database view, such as a chat thread that merges messages and replies, updates live when the tables it reads change. A view takes no trigger, so name the resources it reads with `.live({ reads })`: a change in any of them refreshes the view's open lists, record pages and related lists, and a change in another table does not. <gap>`protobase migration` cannot refuse a trigger on a resource backed by a view before Postgres refuses it as the file applies because reading which tables are views without a database is not implemented.</gap>
|
|
53
53
|
|
|
54
54
|
```ts title="config/thread.ts"
|
|
55
55
|
import { f, resource } from '@protobase/schema'
|
|
@@ -80,6 +80,6 @@ Who is on a record's page and what they send each other, which no change of a re
|
|
|
80
80
|
|
|
81
81
|
## The table
|
|
82
82
|
|
|
83
|
-
[`protobase migration`](cli.md#migration) adds the table `changes.notices` to the `changes` schema of the event capture (renamed with `events: { schema }`), and the capture triggers of each live resource and of each resource a live view reads; apply it with the project's other migrations. `protobase dev` and `protobase serve` do not start while the table or a trigger
|
|
83
|
+
[`protobase migration`](cli.md#migration) adds the table `changes.notices` to the `changes` schema of the event capture (renamed with `events: { schema }`), and the capture triggers of each live resource and of each resource a live view reads; apply it with the project's other migrations. `protobase dev` and `protobase serve` do not start while the record of migrations lacks the table or a trigger.
|
|
84
84
|
|
|
85
85
|
A notice is a resource, a record key, the record's tenant and the operation, written by the `changes.dispatch` job in the transaction that removes the change from the outbox; a live resource therefore needs the [`jobs` schema](jobs.md#the-jobs-schema) and the app's workers. Notices are kept for 10 minutes. Each serving process with at least one page open reads the table once a second, however many pages it serves, so live updates work with several serving processes, with `PROTOBASE_JOBS=false` and through a pooler in transaction mode.
|
|
@@ -20,7 +20,7 @@ export default defineConfig({
|
|
|
20
20
|
})
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
Then run `protobase migration`, which writes the [devices and history tables](#table-names), and the jobs schema that [sending](#sending) runs on, as a migration of the project's own, and apply it with the project's migrations. `protobase dev` and `protobase serve` refuse to start while
|
|
23
|
+
Then run `protobase migration`, which writes the [devices and history tables](#table-names), and the jobs schema that [sending](#sending) runs on, as a migration of the project's own, and apply it with the project's migrations. `protobase dev` and `protobase serve` refuse to start while the [record of migrations](../guides/deploy.md#the-record-of-migrations) lacks a table, and name it. Without `notifications` there is none of it: no endpoints, no tables and no migration.
|
|
24
24
|
|
|
25
25
|
Every signed-in user gets [the bell](#the-bell), browsers receive push through [Web Push](#web-push), the Android app through [FCM](#android) and iOS devices through [APNs](#ios). `notifications: { ui: false }` keeps only the backend, [without the bell](#without-the-bell).
|
|
26
26
|
|
|
@@ -431,7 +431,7 @@ The default store keeps devices in the table `devices` of the schema `notificati
|
|
|
431
431
|
| Column | |
|
|
432
432
|
| --- | --- |
|
|
433
433
|
| `id` | `uuid`, the id the endpoints answer with |
|
|
434
|
-
| `user_id` | the user's id
|
|
434
|
+
| `user_id` | the user's id: `uuid` when auth's users have uuid ids (`generateUserId: 'uuid'`), else `text`; with Protobase's auth a foreign key to its users table, or the one [`users.keyTable`](auth.md#a-view-over-another-systems-users) names, so a deleted user's devices go with them |
|
|
435
435
|
| `kind` | `web`, `apns` or `fcm` |
|
|
436
436
|
| `token` | the token, or a browser's endpoint; unique |
|
|
437
437
|
| `p256dh`, `auth` | a browser's keys |
|
|
@@ -441,7 +441,7 @@ The default store keeps devices in the table `devices` of the schema `notificati
|
|
|
441
441
|
| `session_id` | the id of the sign-in session it was registered in, never its token; `NULL` when the app's `authenticate` names none |
|
|
442
442
|
| `created_at`, `last_seen_at` | when the user registered it, and last refreshed it |
|
|
443
443
|
|
|
444
|
-
`protobase migration
|
|
444
|
+
[`protobase migration baseline`](cli.md#migration) refuses a devices table written before devices kept their session or could be relay devices: bring it there with `protobase migration` of Protobase 0.14.2 first.
|
|
445
445
|
|
|
446
446
|
You rename the schema, the table and each column, as auth takes `tables`, such as to keep devices in a table you already have:
|
|
447
447
|
|
|
@@ -472,4 +472,4 @@ notifications: {
|
|
|
472
472
|
},
|
|
473
473
|
```
|
|
474
474
|
|
|
475
|
-
A name is lowercase letters, digits and `_`, at most 63 characters.
|
|
475
|
+
A name is lowercase letters, digits and `_`, at most 63 characters. Once the tables are written, changing a name, or turning Protobase's auth on, is refused, since Protobase does not write renames. `protobase migration baseline`, which records a table you already have, refuses one, naming what is wrong, that lacks a configured column, a devices table without a unique index on the token column alone, which moving a device relies on, or, with Protobase's auth, a table without the foreign key from its user column to the users table with `on delete cascade`.
|
|
@@ -19,13 +19,13 @@ export default defineConfig({
|
|
|
19
19
|
|
|
20
20
|
The prefix is lowercase letters, digits and underscores, ending in `_`, and has no default: name it after the app, so a token found in a log or a commit says where it works. With the setting and no prefix, or a prefix of other characters, the server refuses to start and names the problem.
|
|
21
21
|
|
|
22
|
-
The tokens live in the auth store's `personal_access_token` table,
|
|
22
|
+
The tokens live in the auth store's `personal_access_token` table, the `personal_access_tokens` module's, which the next [migration](auth.md#migrations) makes once the setting is there. Taking the setting out again keeps the table and its tokens (see [turning a module off](auth.md#turning-a-module-off)): they stay valid unless deleted, and once the setting is back, each acts again for its user as the table below says, refused while the user is banned, the token has expired or the user no longer holds its role.
|
|
23
23
|
|
|
24
24
|
## Making one
|
|
25
25
|
|
|
26
26
|
The account page's Access tokens tab, at `/-/account/tokens`, lists the person's tokens with their name, when each was made, when it expires and when it was last used, and the role and organization it acts with, and revokes any of them after asking. New token asks for a name and an expiry: in 30 days, in 90 days, in a year, or never. The new token is shown once, to copy: the app keeps only its SHA-256 hash, so nobody can show it again. The tab is not offered in an app without the setting.
|
|
27
27
|
|
|
28
|
-
A token acts with the role, and with [organizations](auth.md#organizations) the organization, the session that made it works in, as its own tokens would. Someone with several roles who wants a token for another one [switches role](auth.md#active-role) first. Someone with no role there cannot make one (`403 NO_ROLE`).
|
|
28
|
+
A token acts with the role, and with [organizations](auth.md#organizations) the organization, the session that made it works in, as its own tokens would. Someone with several roles who wants a token for another one [switches role](auth.md#active-role) first. Someone with no role there cannot make one (`403 NO_ROLE`). With organizations on, every token belongs to one: a session that works in none cannot make one (`403 NO_ORGANIZATION`).
|
|
29
29
|
|
|
30
30
|
- A session that signed in more than a day ago [confirms it's them](auth.md#confirming-an-account-change) first, in place, since a token acts as them long after that session ends.
|
|
31
31
|
- A [staff session](auth.md#staff-sign-in) cannot make or revoke a token (`STAFF_CANNOT_CHANGE_SIGN_IN`); it may see the list.
|
|
@@ -45,7 +45,7 @@ export default defineConfig(({ env }) => ({
|
|
|
45
45
|
| `channels.<resource>.events` | The [events](#client-events) the channel's members may send each other, by name, each with its payload's `schema`, its `maxBytes` and the rate one person may send it at, `perSecond` in bursts of `burst`. |
|
|
46
46
|
| `presence` | Turns on [presence](#presence): the app's own resource it is kept in, its fields of the person's user id (`user`), the status (`status`) and when it began (`at`), and the bearer token of the relay's reports (`key`), at least 32 characters, which defaults to [`PROTOBASE_REALTIME_PRESENCE_KEY`](#from-the-platform). |
|
|
47
47
|
|
|
48
|
-
The relay needs the app's own [sign-in](auth.md), whose sessions its tickets name, with its store in the app's own database, as the `auth` config puts it: an
|
|
48
|
+
The relay needs the app's own [sign-in](auth.md), whose sessions its tickets name, with its store in the app's own database, as the `auth` config puts it: an app without it is refused. A members resource's changes must be captured, so declare [`.live()`](live.md) on it, and so must a channel resource's whose records list their members; the relay hears of the changes of every resource whose changes are captured, such as a live one, that is a channel resource or has a relation field to one. [`protobase migration`](cli.md#migration) writes the trigger that ends a deleted session's sockets, in the `relay` schema, after the auth store's steps when the same file writes them, so a new app's first migration sets up both. For channel records that list their members it also writes `realtime.members`, keyed by channel and indexed by person, the triggers on their tables that keep it as records are written, deleted, soft-deleted or truncated, and a fill from the records already there. It writes these for an app with `realtime.relay`, and for one with sign-in and a live resource whose conversation page has `members`, which the platform can move to the relay, from the project's snapshot as the relay module: `realtime.members` as a numbered step, the trigger and the functions that keep `realtime.members` at their versions, and each listed channel's triggers, written again when its table or fields change and dropped once it lists its members no more, with its rows. The server refuses to start while the [record of migrations](../guides/deploy.md#the-record-of-migrations) lacks them. [`protobase migration baseline`](cli.md#migration) records what an earlier version wrote, and a listed channel whose trigger it finds disabled, or missing on a partition, as one the next migration writes again. A partitioned channel table is kept too: Postgres puts the row trigger on each partition, the migration puts a truncate trigger on each partition it has when it is applied, and a truncated partition writes the resource's members again from the table, so its siblings keep theirs. <gap>A partition attached after its channel's triggers were written cannot keep its siblings' members when it is truncated because writing its truncate trigger again on attach is not implemented.</gap> Applying the migration fails for a partition, or a table in an inheritance tree, as a channel table. Writes made while the triggers do not fire, such as a restore with `session_replication_role = replica`, are not kept in `realtime.members` until its channel's triggers are written again.
|
|
49
49
|
|
|
50
50
|
[`protobase relay app`](cli.md#relay-app) prints the app's entry for the relay's apps file, from this config, these variables and the app's `url`.
|
|
51
51
|
|
|
@@ -16,12 +16,12 @@ A status says whether someone wants to be reached: an availability, busy or do n
|
|
|
16
16
|
import { defineConfig } from '@protobase/config'
|
|
17
17
|
|
|
18
18
|
export default defineConfig({
|
|
19
|
-
auth: { organizations: true },
|
|
19
|
+
auth: { organizations: { enabled: true, default: { id: 'main', name: 'Main', slug: 'main' } } },
|
|
20
20
|
status: {},
|
|
21
21
|
})
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
Then run `protobase migration`, which writes the statuses table, `status.statuses`, as a migration of the project's own, and apply it with the project's migrations. `status: { schema: 'presence' }` puts the table in another schema. `protobase dev` and `protobase serve` refuse to start while the table is
|
|
24
|
+
Then run `protobase migration`, which writes the statuses table, `status.statuses`, as a migration of the project's own, and apply it with the project's migrations. `status: { schema: 'presence' }` puts the table in another schema. Its user column points at the auth store's users table, or the one [`users.keyTable`](auth.md#a-view-over-another-systems-users) names, and is `uuid` when auth's users have uuid ids, else `text`. `protobase dev` and `protobase serve` refuse to start while the [record of migrations](../guides/deploy.md#the-record-of-migrations) lacks the table. Once it is written, changing `schema` is refused, since Protobase does not write renames. Without `status` there is none of it: no menu item, no endpoints, no table and no migration, and notifications go out as before.
|
|
25
25
|
|
|
26
26
|
People see the statuses of those they share an [organization](auth.md#organizations) with, so status needs organizations: an app without them stops at startup, and `protobase migration` says why.
|
|
27
27
|
|
|
@@ -29,7 +29,7 @@ The keys are `apiKeys` in `protobase.config.ts`, `{ publishable_key, secret_key
|
|
|
29
29
|
|
|
30
30
|
The transaction sets the role with `SET LOCAL ROLE` and the token's claims in `request.jwt.claims` and `request.jwt.claim.sub`, so Supabase's `auth.uid()`, `auth.role()` and `auth.jwt()` work, and the tables' RLS policies decide what the request may read and write. The resources' access rules (`.access(...)`) do not apply here: a table needs its own grants and policies, and one without a grant to `anon` or `authenticated` refuses them. The `role` claim is the database role, as on Supabase. The database needs the `anon` and `authenticated` roles, and the app's role must be allowed to `SET ROLE` to them.
|
|
31
31
|
|
|
32
|
-
`/api/sb/rest/v1` serves the tables the app declares as resources, in the `public` schema, under their table names. Any other table is `404
|
|
32
|
+
`/api/sb/rest/v1` serves the tables the app declares as resources, in the `public` schema, under their table names. Any other table is `404`, and so is a table of the auth store, such as its sessions, memberships, invitations and personal access tokens, under the names the app gives them, even when a resource is over it.
|
|
33
33
|
|
|
34
34
|
## What it understands
|
|
35
35
|
|
|
@@ -33,7 +33,7 @@ The tables users add and their definitions live in two schemas of the app's data
|
|
|
33
33
|
| `table_definitions` | `tables`, one row per table users add, with its singular and plural label, its title field, a version, 1 when it is added, its organization with organizations, and its table's name, and `fields`, each table's fields in order with their label, type and whether they are required, indexed by table and position so a table's fields list in their order |
|
|
34
34
|
| `user_tables` | the tables themselves, each with an `id bigint generated always as identity` primary key and a column per field, and with organizations an `organization_id` column |
|
|
35
35
|
|
|
36
|
-
With `userTables: true`, [`protobase migration`](cli.md#migration) writes
|
|
36
|
+
With `userTables: true`, [`protobase migration`](cli.md#migration) writes both schemas, the two definition tables and the `pg_trgm` extension when it is missing, from the project's snapshot as a numbered step, and grants the app's database role CREATE on `user_tables` alone, and writes nothing once the snapshot has them. Apply it with the project's other migrations; the server never creates them itself. The tables inside `user_tables` are the one exception to schema coming from migrations: admins add them while the app serves, as data. At start, `dev` and `serve` stop while the [record of migrations](../guides/deploy.md#the-record-of-migrations) lacks the schemas; `PROTOBASE_STARTUP_CHECKS=false` skips that check in `serve`, as it skips the others. [`protobase migration baseline`](cli.md#migration) records schemas an earlier version made, and refuses a definitions table made before organizations or without the default of a new version, which no step records.
|
|
37
37
|
|
|
38
38
|
A table's name and each field's name are lowercase letters, digits and `_`, starting with a letter, at most 63 bytes. A field is one of these types:
|
|
39
39
|
|
|
@@ -116,7 +116,7 @@ It adds two pages, over a `webhooks` schema that [`protobase migration`](cli.md#
|
|
|
116
116
|
- **Webhook subscriptions** (`webhook_subscriptions`, the table `webhooks.subscriptions`): a name, the events (`orders.created orders.large`, or `orders.*`), the URL, a filter, extra headers, full or thin payload, and whether it is enabled. The server sets the tenant and the owner, the person who made it, and makes the secret, which only a [reveal](api.md#sensitive-fields-and-audit) shows. Saving checks the events and the filter against the resources, and refuses a URL whose host is a private, loopback or link-local address. Each delivery checks the host's addresses again and connects to the very address it checked, so a host that answers differently by then cannot steer it into the app's own network; a redirect is never followed.
|
|
117
117
|
- **Webhook deliveries** (`webhook_deliveries`, a view over the delivery jobs): the deliveries that wait for their next try or failed for good, with their last error. A delivery leaves the list once it succeeds.
|
|
118
118
|
|
|
119
|
-
The migration gives the subscriptions table an index for each sort, filter and search of its list, and creates the `pg_trgm` extension the search's indexes need (`create extension if not exists pg_trgm`, a trusted extension since Postgres 13, so any role that may create in the database can).
|
|
119
|
+
The migration gives the subscriptions table an index for each sort, filter and search of its list, and creates the `pg_trgm` extension the search's indexes need (`create extension if not exists pg_trgm`, a trusted extension since Postgres 13, so any role that may create in the database can). The schema is written from the project's snapshot as numbered steps, the delivery log as its own once `deliveryLog` is on, and the server refuses to start while the [record of migrations](../guides/deploy.md#the-record-of-migrations) lacks them. [`protobase migration baseline`](cli.md#migration) records once a schema an earlier version's migration made, and refuses one without the indexes its version 2 added. Changing `schema` once it is written is refused.
|
|
120
120
|
|
|
121
121
|
Both are scoped to the tenant like any resource with `.tenant()`, and their access decides who may do what: `webhook_subscriptions.create`, `webhook_deliveries.update` and so on, as for the app's own resources. A role's wildcard over resources, such as `*.read`, grants none of them: their URLs and secrets let whoever reads them call the receivers, so with roles only admins (`*`) and roles that [name them](access.md#resources-that-need-named-grants) manage webhook subscriptions.
|
|
122
122
|
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module";
|
|
2
|
-
import { lintSteps } from "@protobase/server/internal";
|
|
3
|
-
//#region src/migration/snapshot/lint-custom.ts
|
|
4
|
-
const createTable = /^\s*create\s+table\s+(?:if\s+not\s+exists\s+)?((?:(?:"[^"]+"|\w+)\.)?(?:"[^"]+"|\w+))/gim;
|
|
5
|
-
/**
|
|
6
|
-
* What makes each hand-written migration marked additive unsafe to apply unattended, by the same lint as Protobase's
|
|
7
|
-
* own steps (Squawk, with the rules `lintSteps` refuses). A hand-written one that is not marked counts as not additive
|
|
8
|
-
* and is not linted.
|
|
9
|
-
*/
|
|
10
|
-
const lintCustomFiles = (files) => {
|
|
11
|
-
const additive = files.filter(({ header }) => header?.custom && header.additive);
|
|
12
|
-
if (additive.length === 0) return [];
|
|
13
|
-
const squawk = createRequire(import.meta.url).resolve("squawk-cli/js/bin/squawk");
|
|
14
|
-
const steps = additive.map(({ file, text }) => ({
|
|
15
|
-
label: file,
|
|
16
|
-
sql: text,
|
|
17
|
-
made: [...text.matchAll(createTable)].map((match) => match[1]),
|
|
18
|
-
checked: false
|
|
19
|
-
}));
|
|
20
|
-
return lintSteps(steps, squawk).map(({ step, rule, message }) => `${step} is marked additive and breaks ${rule}: ${message}`);
|
|
21
|
-
};
|
|
22
|
-
//#endregion
|
|
23
|
-
export { lintCustomFiles };
|