@protobase/server 0.133.5 → 0.133.6

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.
@@ -88,7 +88,7 @@ const planAdoption = async (db, names) => {
88
88
  });
89
89
  problems.push(`${migration.version} ${migration.name} ${[...missing, ...otherType].join(", ")}`);
90
90
  });
91
- if (problems.length > 0) throw new Error(`The auth store an earlier Protobase made matches none of its migrations' versions: ${problems.join("; ")}. Bring it to the schema of Protobase 0.47 first, with that version's \`protobase auth migration\`, then run this again.`);
91
+ if (problems.length > 0) throw new Error(`The auth store an earlier Protobase made matches none of its migrations' versions: ${problems.join("; ")}.`);
92
92
  return adoption;
93
93
  };
94
94
  /**
@@ -7,6 +7,6 @@ import { Kysely } from "kysely";
7
7
  export declare const stepsOfVersions: (versions: readonly number[]) => AppliedStep[];
8
8
  /** The former record of versions, in the store's schema, as the store's names named it. */
9
9
  export declare const versionRecordTable: (names: StoreNames) => TableId;
10
- /** Why a store that records its migrations by version alone, in `table`, is refused, and how to bring it on. */
10
+ /** Why a store that records its migrations by version alone, in `table`, is refused. */
11
11
  export declare const versionRecordRefusal: (table: string) => string;
12
12
  //#endregion
@@ -25,8 +25,8 @@ const stepsOfVersions = (versions) => {
25
25
  };
26
26
  /** The former record of versions, in the store's schema, as the store's names named it. */
27
27
  const versionRecordTable = (names) => migrationNames(names).former(versionRecord);
28
- /** Why a store that records its migrations by version alone, in `table`, is refused, and how to bring it on. */
29
- const versionRecordRefusal = (table) => `The auth store records its migrations by version in ${table}, without auth_steps, as a Protobase before 0.130 left it: bring the project to Protobase 0.130 first, write and apply its migration with that version's \`protobase migration\` and \`protobase migrate\`, then run this again`;
28
+ /** Why a store that records its migrations by version alone, in `table`, is refused. */
29
+ const versionRecordRefusal = (table) => `The auth store records its migrations by version in ${table}, without auth_steps, as a Protobase before 0.130 left it, which no step of this version of Protobase reads`;
30
30
  /** Refuses a store without `auth_steps` that has the former record of versions. */
31
31
  const refuseVersionRecord = async (db, names) => {
32
32
  const table = versionRecordTable(names);
package/dist/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  //#region package.json
2
- var version = "0.133.5";
2
+ var version = "0.133.6";
3
3
  //#endregion
4
4
  export { version };
@@ -32,7 +32,7 @@ export type ModulesModel = Partial<Record<SchemaModuleId, ModuleModel>>;
32
32
  /** The schema modules an app needs, each with what it gives the module (`neededModules`), in their order. */
33
33
  export type ModuleTargets = Partial<Record<SchemaModuleId, ModuleInput>>;
34
34
  /** The modules of `targets`, in their order. */
35
- export declare const targetIds: (targets: ModuleTargets) => ("status" | "query" | "user_tables" | "history" | "comments" | "derived" | "jobs" | "changes" | "mail_feedback" | "calls" | "workflows" | "workflow_custom_steps" | "webhooks" | "webhook_delivery_log" | "computed" | "change_stream" | "notices" | "workflow_storage" | "notification_devices" | "notification_history" | "relay" | "realtime_relay" | "channel_sends" | "unsubscribes")[];
35
+ export declare const targetIds: (targets: ModuleTargets) => ("status" | "query" | "user_tables" | "history" | "comments" | "derived" | "jobs" | "changes" | "mail_feedback" | "calls" | "webhooks" | "webhook_delivery_log" | "workflows" | "workflow_custom_steps" | "computed" | "change_stream" | "notices" | "workflow_storage" | "notification_devices" | "notification_history" | "relay" | "realtime_relay" | "channel_sends" | "unsubscribes")[];
36
36
  /** The model of each module of `targets` this version of Protobase reads. */
37
37
  export declare const latestModules: (targets: ModuleTargets) => ModulesModel;
38
38
  //#endregion
@@ -84,7 +84,7 @@ export declare const webhooksModule: (options?: WebhooksOptions) => {
84
84
  readonly tenant_id: import("@protobase/schema").Field<string | null>;
85
85
  readonly event_type: import("@protobase/schema").Field<string>;
86
86
  readonly event_id: import("@protobase/schema").Field<string>;
87
- readonly status: import("@protobase/schema").Field<"failed" | "waiting">;
87
+ readonly status: import("@protobase/schema").Field<"waiting" | "failed">;
88
88
  readonly attempt: import("@protobase/schema").Field<number>;
89
89
  readonly next_attempt: import("@protobase/schema").Field<string | null>;
90
90
  readonly last_error: import("@protobase/schema").Field<string | null>;
@@ -97,7 +97,7 @@ export declare const webhooksModule: (options?: WebhooksOptions) => {
97
97
  readonly tenant_id: import("@protobase/schema").Field<string | null>;
98
98
  readonly event_type: import("@protobase/schema").Field<string>;
99
99
  readonly event_id: import("@protobase/schema").Field<string>;
100
- readonly status: import("@protobase/schema").Field<"failed" | "waiting">;
100
+ readonly status: import("@protobase/schema").Field<"waiting" | "failed">;
101
101
  readonly attempt: import("@protobase/schema").Field<number>;
102
102
  readonly next_attempt: import("@protobase/schema").Field<string | null>;
103
103
  readonly last_error: import("@protobase/schema").Field<string | null>;
@@ -280,7 +280,7 @@ export declare const workflowsModule: (options?: Pick<WorkflowsOptions, "schema"
280
280
  readonly version: import("@protobase/schema").Field<number | null>;
281
281
  readonly input: import("@protobase/schema").Field<import("zod").JSONType>;
282
282
  readonly key: import("@protobase/schema").Field<string | null>;
283
- readonly status: import("@protobase/schema").Field<"failed" | "queued" | "running" | "waiting" | "succeeded">;
283
+ readonly status: import("@protobase/schema").Field<"waiting" | "failed" | "queued" | "running" | "succeeded">;
284
284
  readonly output: import("@protobase/schema").Field<import("zod").JSONType>;
285
285
  readonly error: import("@protobase/schema").Field<string | null>;
286
286
  readonly cause: import("@protobase/schema").Field<string | null>;
@@ -306,7 +306,7 @@ export declare const workflowsModule: (options?: Pick<WorkflowsOptions, "schema"
306
306
  readonly version: import("@protobase/schema").Field<number | null>;
307
307
  readonly input: import("@protobase/schema").Field<import("zod").JSONType>;
308
308
  readonly key: import("@protobase/schema").Field<string | null>;
309
- readonly status: import("@protobase/schema").Field<"failed" | "queued" | "running" | "waiting" | "succeeded">;
309
+ readonly status: import("@protobase/schema").Field<"waiting" | "failed" | "queued" | "running" | "succeeded">;
310
310
  readonly output: import("@protobase/schema").Field<import("zod").JSONType>;
311
311
  readonly error: import("@protobase/schema").Field<string | null>;
312
312
  readonly cause: import("@protobase/schema").Field<string | null>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/server",
3
- "version": "0.133.5",
3
+ "version": "0.133.6",
4
4
  "description": "The Protobase REST API as a Hono app, with Better Auth sign-in.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -44,11 +44,11 @@
44
44
  "@better-auth/sso": "^1.7.12",
45
45
  "@livekit/protocol": "1.53.1",
46
46
  "@modelcontextprotocol/server": "^2.3.1",
47
- "@protobase/layout": "0.133.5",
48
- "@protobase/query": "0.133.5",
49
- "@protobase/schema": "0.133.5",
50
- "@protobase/workflow-plugins": "0.133.5",
51
- "@protobase/workflows": "0.133.5",
47
+ "@protobase/layout": "0.133.6",
48
+ "@protobase/query": "0.133.6",
49
+ "@protobase/schema": "0.133.6",
50
+ "@protobase/workflow-plugins": "0.133.6",
51
+ "@protobase/workflows": "0.133.6",
52
52
  "@react-email/render": "^2.1.0",
53
53
  "@react-pdf/primitives": "^4.4.0",
54
54
  "@react-pdf/renderer": "^4.9.1",