@pairdraw/cloud 0.19.1 → 0.20.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/client.d.ts CHANGED
@@ -1358,7 +1358,7 @@ declare function createCloudPortalClient(options?: CloudPortalClientOptions): {
1358
1358
  sessions: {
1359
1359
  id: string;
1360
1360
  current: boolean;
1361
- method: "password" | "google" | "apple" | "passkey" | "two-step" | "email-link" | "desktop" | "other" | null;
1361
+ method: "passkey" | "password" | "google" | "apple" | "two-step" | "email-link" | "desktop" | "other" | null;
1362
1362
  ipAddress: string | null;
1363
1363
  browser: string | null;
1364
1364
  system: string | null;
@@ -1368,7 +1368,7 @@ declare function createCloudPortalClient(options?: CloudPortalClientOptions): {
1368
1368
  }[];
1369
1369
  signIns: {
1370
1370
  id: string;
1371
- method: "password" | "google" | "apple" | "passkey" | "two-step" | "email-link" | "desktop" | "other";
1371
+ method: "passkey" | "password" | "google" | "apple" | "two-step" | "email-link" | "desktop" | "other";
1372
1372
  ipAddress: string | null;
1373
1373
  browser: string | null;
1374
1374
  system: string | null;
@@ -1377,7 +1377,7 @@ declare function createCloudPortalClient(options?: CloudPortalClientOptions): {
1377
1377
  workspaces: {
1378
1378
  id: string;
1379
1379
  name: string;
1380
- role: "admin" | "viewer" | "editor";
1380
+ role: "viewer" | "editor" | "admin";
1381
1381
  memberCount: number;
1382
1382
  joinedAt: string;
1383
1383
  }[];
@@ -1538,7 +1538,7 @@ declare function createCloudPortalClient(options?: CloudPortalClientOptions): {
1538
1538
  sessions: {
1539
1539
  id: string;
1540
1540
  current: boolean;
1541
- method: "password" | "google" | "apple" | "passkey" | "two-step" | "email-link" | "desktop" | "other" | null;
1541
+ method: "passkey" | "password" | "google" | "apple" | "two-step" | "email-link" | "desktop" | "other" | null;
1542
1542
  ipAddress: string | null;
1543
1543
  browser: string | null;
1544
1544
  system: string | null;
@@ -1556,7 +1556,7 @@ declare function createCloudPortalClient(options?: CloudPortalClientOptions): {
1556
1556
  signIns(signal?: AbortSignal): Promise<{
1557
1557
  signIns: {
1558
1558
  id: string;
1559
- method: "password" | "google" | "apple" | "passkey" | "two-step" | "email-link" | "desktop" | "other";
1559
+ method: "passkey" | "password" | "google" | "apple" | "two-step" | "email-link" | "desktop" | "other";
1560
1560
  ipAddress: string | null;
1561
1561
  browser: string | null;
1562
1562
  system: string | null;
package/dist/server.d.ts CHANGED
@@ -10532,7 +10532,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
10532
10532
  };
10533
10533
  };
10534
10534
  outputFormat: "json";
10535
- status: 401 | 403 | 429 | 500 | 400 | 404 | 409 | 422;
10535
+ status: 500 | 401 | 403 | 429 | 400 | 404 | 409 | 422;
10536
10536
  } | {
10537
10537
  input: {
10538
10538
  json: {
@@ -10584,7 +10584,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
10584
10584
  };
10585
10585
  };
10586
10586
  outputFormat: "json";
10587
- status: 401 | 403 | 429 | 500 | 400 | 404 | 409 | 422;
10587
+ status: 500 | 401 | 403 | 429 | 400 | 404 | 409 | 422;
10588
10588
  } | {
10589
10589
  input: {
10590
10590
  json: {
@@ -10652,7 +10652,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
10652
10652
  };
10653
10653
  };
10654
10654
  outputFormat: "json";
10655
- status: 401 | 403 | 429 | 500 | 400 | 404 | 409 | 422;
10655
+ status: 500 | 401 | 403 | 429 | 400 | 404 | 409 | 422;
10656
10656
  } | {
10657
10657
  input: {
10658
10658
  json: {
@@ -10710,7 +10710,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
10710
10710
  };
10711
10711
  };
10712
10712
  outputFormat: "json";
10713
- status: 401 | 403 | 429 | 500 | 400 | 404 | 409 | 422;
10713
+ status: 500 | 401 | 403 | 429 | 400 | 404 | 409 | 422;
10714
10714
  } | {
10715
10715
  input: {
10716
10716
  json: {
@@ -10739,7 +10739,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
10739
10739
  };
10740
10740
  };
10741
10741
  outputFormat: "json";
10742
- status: 401 | 403 | 429 | 500 | 400 | 404 | 409 | 422;
10742
+ status: 500 | 401 | 403 | 429 | 400 | 404 | 409 | 422;
10743
10743
  } | {
10744
10744
  input: {
10745
10745
  json: {
@@ -10807,7 +10807,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
10807
10807
  };
10808
10808
  };
10809
10809
  outputFormat: "json";
10810
- status: 401 | 403 | 429 | 500 | 400 | 404 | 409 | 422;
10810
+ status: 500 | 401 | 403 | 429 | 400 | 404 | 409 | 422;
10811
10811
  } | {
10812
10812
  input: {
10813
10813
  json: {
@@ -10901,7 +10901,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
10901
10901
  };
10902
10902
  };
10903
10903
  outputFormat: "json";
10904
- status: 401 | 403 | 429 | 500 | 400 | 404 | 409 | 422;
10904
+ status: 500 | 401 | 403 | 429 | 400 | 404 | 409 | 422;
10905
10905
  } | {
10906
10906
  input: {
10907
10907
  json: {
@@ -10974,7 +10974,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
10974
10974
  };
10975
10975
  };
10976
10976
  outputFormat: "json";
10977
- status: 401 | 403 | 429 | 500 | 400 | 404 | 409 | 422;
10977
+ status: 500 | 401 | 403 | 429 | 400 | 404 | 409 | 422;
10978
10978
  } | {
10979
10979
  input: {
10980
10980
  json: {
@@ -11011,7 +11011,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
11011
11011
  };
11012
11012
  };
11013
11013
  outputFormat: "json";
11014
- status: 401 | 403 | 429 | 500 | 400 | 404 | 409 | 422;
11014
+ status: 500 | 401 | 403 | 429 | 400 | 404 | 409 | 422;
11015
11015
  } | {
11016
11016
  input: {};
11017
11017
  output: {
@@ -11058,7 +11058,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
11058
11058
  };
11059
11059
  };
11060
11060
  outputFormat: "json";
11061
- status: 401 | 403 | 429 | 500 | 400 | 404 | 409 | 422;
11061
+ status: 500 | 401 | 403 | 429 | 400 | 404 | 409 | 422;
11062
11062
  } | {
11063
11063
  input: {};
11064
11064
  output: {
@@ -11079,9 +11079,9 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
11079
11079
  $get: {
11080
11080
  input: {
11081
11081
  param: {
11082
- version: string;
11083
- } & {
11084
11082
  userId: string;
11083
+ } & {
11084
+ version: string;
11085
11085
  };
11086
11086
  };
11087
11087
  output: {
@@ -11094,9 +11094,9 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
11094
11094
  } | {
11095
11095
  input: {
11096
11096
  param: {
11097
- version: string;
11098
- } & {
11099
11097
  userId: string;
11098
+ } & {
11099
+ version: string;
11100
11100
  };
11101
11101
  };
11102
11102
  output: Uint8Array<ArrayBuffer>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pairdraw/cloud",
3
- "version": "0.19.1",
3
+ "version": "0.20.0",
4
4
  "license": "Apache-2.0 AND MIT",
5
5
  "files": [
6
6
  "dist",
@@ -23,7 +23,7 @@
23
23
  "@internationalized/date": "^3.12.3",
24
24
  "@noble/hashes": "^2.4.0",
25
25
  "@openfeature/server-sdk": "^1.23.0",
26
- "@pairdraw/scene-graph": "^0.19.1",
26
+ "@pairdraw/scene-graph": "^0.20.0",
27
27
  "@vue-email/components": "^0.0.21",
28
28
  "@vue-email/render": "^0.0.9",
29
29
  "better-auth": "1.7.7",
@@ -10,7 +10,9 @@ const database = createPostgresCloudDatabase({
10
10
  statementTimeoutMs: null
11
11
  })
12
12
  try {
13
- const auth = createBetterAuthAdapter(config, database)
13
+ // The migration is what brings the schema up to date, so the adapter must not check it first:
14
+ // on a fresh database that check logs every auth table as missing.
15
+ const auth = createBetterAuthAdapter(config, database, undefined, { validateSchema: false })
14
16
  await migrateCloudDatabase(database, { run: auth.migrate, schemaVersion: auth.schemaVersion })
15
17
  } finally {
16
18
  await database.destroy()