@pairdraw/cloud 0.17.0 → 0.18.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
@@ -1363,7 +1363,7 @@ declare function createCloudPortalClient(options?: CloudPortalClientOptions): {
1363
1363
  sessions: {
1364
1364
  id: string;
1365
1365
  current: boolean;
1366
- method: "password" | "google" | "apple" | "passkey" | "two-step" | "email-link" | "desktop" | "other" | null;
1366
+ method: "passkey" | "password" | "google" | "apple" | "two-step" | "email-link" | "desktop" | "other" | null;
1367
1367
  ipAddress: string | null;
1368
1368
  browser: string | null;
1369
1369
  system: string | null;
@@ -1373,7 +1373,7 @@ declare function createCloudPortalClient(options?: CloudPortalClientOptions): {
1373
1373
  }[];
1374
1374
  signIns: {
1375
1375
  id: string;
1376
- method: "password" | "google" | "apple" | "passkey" | "two-step" | "email-link" | "desktop" | "other";
1376
+ method: "passkey" | "password" | "google" | "apple" | "two-step" | "email-link" | "desktop" | "other";
1377
1377
  ipAddress: string | null;
1378
1378
  browser: string | null;
1379
1379
  system: string | null;
@@ -1382,7 +1382,7 @@ declare function createCloudPortalClient(options?: CloudPortalClientOptions): {
1382
1382
  workspaces: {
1383
1383
  id: string;
1384
1384
  name: string;
1385
- role: "admin" | "viewer" | "editor";
1385
+ role: "viewer" | "editor" | "admin";
1386
1386
  memberCount: number;
1387
1387
  joinedAt: string;
1388
1388
  }[];
@@ -1543,7 +1543,7 @@ declare function createCloudPortalClient(options?: CloudPortalClientOptions): {
1543
1543
  sessions: {
1544
1544
  id: string;
1545
1545
  current: boolean;
1546
- method: "password" | "google" | "apple" | "passkey" | "two-step" | "email-link" | "desktop" | "other" | null;
1546
+ method: "passkey" | "password" | "google" | "apple" | "two-step" | "email-link" | "desktop" | "other" | null;
1547
1547
  ipAddress: string | null;
1548
1548
  browser: string | null;
1549
1549
  system: string | null;
@@ -1561,7 +1561,7 @@ declare function createCloudPortalClient(options?: CloudPortalClientOptions): {
1561
1561
  signIns(signal?: AbortSignal): Promise<{
1562
1562
  signIns: {
1563
1563
  id: string;
1564
- method: "password" | "google" | "apple" | "passkey" | "two-step" | "email-link" | "desktop" | "other";
1564
+ method: "passkey" | "password" | "google" | "apple" | "two-step" | "email-link" | "desktop" | "other";
1565
1565
  ipAddress: string | null;
1566
1566
  browser: string | null;
1567
1567
  system: string | null;
package/dist/index.d.ts CHANGED
@@ -434,7 +434,7 @@ declare const enrollmentSchema: v.ObjectSchema<{
434
434
  }, undefined>;
435
435
  declare const enrollmentsResponseSchema: v.ObjectSchema<{
436
436
  readonly total: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
437
- readonly counts: v.ObjectSchema<Record<"pending" | "rejected" | "revoked" | "approved", v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>, undefined>;
437
+ readonly counts: v.ObjectSchema<Record<"pending" | "approved" | "rejected" | "revoked", v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>, undefined>;
438
438
  readonly enrollments: v.ArraySchema<v.ObjectSchema<{
439
439
  readonly id: v.StringSchema<undefined>;
440
440
  readonly email: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>;
package/dist/server.d.ts CHANGED
@@ -666,7 +666,7 @@ declare function createEnrollmentService(database: Kysely<CloudDatabase>, emailO
666
666
  requestRevision: number;
667
667
  }[];
668
668
  total: number;
669
- counts: Record<"pending" | "rejected" | "revoked" | "approved", number>;
669
+ counts: Record<"pending" | "approved" | "rejected" | "revoked", number>;
670
670
  }>;
671
671
  review(actorId: string, enrollmentId: string, status: Exclude<EnrollmentStatus, "pending">, input: EnrollmentReviewInput): Promise<EnrollmentRecord>;
672
672
  bindApprovedUser(email: string, userId: string): Promise<void>;
@@ -718,8 +718,8 @@ declare function createAdminEmailService(database: Kysely<CloudDatabase>, email?
718
718
  regeneratable: boolean;
719
719
  kind: TransactionalEmailKind;
720
720
  id: string;
721
- createdAt: Date;
722
721
  status: TransactionalEmailStatus;
722
+ createdAt: Date;
723
723
  recipientEmailNormalized: string;
724
724
  attemptCount: number;
725
725
  transport: string | null;
@@ -1249,7 +1249,7 @@ declare function createAccountAuthenticationService(auth: CloudAuthAdapter, conf
1249
1249
  methods(headers: Headers): Promise<{
1250
1250
  methods: {
1251
1251
  id: string;
1252
- provider: "credential" | "google" | "apple";
1252
+ provider: "google" | "apple" | "credential";
1253
1253
  createdAt: string;
1254
1254
  canUnlink: boolean;
1255
1255
  }[];
@@ -1354,7 +1354,7 @@ declare function createCloudAuthenticationRuntime(config: CloudServerConfig, dat
1354
1354
  requestRevision: number;
1355
1355
  }[];
1356
1356
  total: number;
1357
- counts: Record<"pending" | "rejected" | "revoked" | "approved", number>;
1357
+ counts: Record<"pending" | "approved" | "rejected" | "revoked", number>;
1358
1358
  }>;
1359
1359
  review(actorId: string, enrollmentId: string, status: Exclude<EnrollmentStatus, "pending">, input: EnrollmentReviewInput): Promise<EnrollmentRecord>;
1360
1360
  bindApprovedUser(email: string, userId: string): Promise<void>;
@@ -3942,16 +3942,16 @@ declare class DatabaseEntitlementSource implements EntitlementSource {
3942
3942
  }
3943
3943
  declare function createWorkspaceEntitlementRepository(database: Kysely<CloudDatabase>): {
3944
3944
  get(workspaceId: string): Promise<{
3945
- workspaceId: string;
3946
3945
  values: unknown;
3946
+ workspaceId: string;
3947
3947
  updatedAt: Date;
3948
3948
  source: string;
3949
3949
  externalVersion: number | null;
3950
3950
  revision: number;
3951
3951
  } | undefined>;
3952
3952
  set(workspaceId: string, values: StaticEntitlementsInput, source: string): Promise<{
3953
- workspaceId: string;
3954
3953
  values: unknown;
3954
+ workspaceId: string;
3955
3955
  updatedAt: Date;
3956
3956
  source: string;
3957
3957
  externalVersion: number | null;
@@ -7852,7 +7852,7 @@ declare function createCloudAdminRoutes(services: CloudAdminServices, trustedOri
7852
7852
  input: {
7853
7853
  query: {
7854
7854
  search?: string | undefined;
7855
- filter?: "pending" | "rejected" | "revoked" | "approved" | undefined;
7855
+ filter?: "pending" | "approved" | "rejected" | "revoked" | undefined;
7856
7856
  limit?: number | undefined;
7857
7857
  offset?: number | undefined;
7858
7858
  };
@@ -7868,7 +7868,7 @@ declare function createCloudAdminRoutes(services: CloudAdminServices, trustedOri
7868
7868
  input: {
7869
7869
  query: {
7870
7870
  search?: string | undefined;
7871
- filter?: "pending" | "rejected" | "revoked" | "approved" | undefined;
7871
+ filter?: "pending" | "approved" | "rejected" | "revoked" | undefined;
7872
7872
  limit?: number | undefined;
7873
7873
  offset?: number | undefined;
7874
7874
  };
@@ -7891,9 +7891,9 @@ declare function createCloudAdminRoutes(services: CloudAdminServices, trustedOri
7891
7891
  total: number;
7892
7892
  counts: {
7893
7893
  pending: number;
7894
+ approved: number;
7894
7895
  rejected: number;
7895
7896
  revoked: number;
7896
- approved: number;
7897
7897
  };
7898
7898
  };
7899
7899
  outputFormat: "json";
@@ -8145,7 +8145,7 @@ declare function createCloudAdminRoutes(services: CloudAdminServices, trustedOri
8145
8145
  sessions: {
8146
8146
  id: string;
8147
8147
  current: boolean;
8148
- method: "google" | "apple" | "password" | "passkey" | "two-step" | "email-link" | "desktop" | "other" | null;
8148
+ method: "password" | "google" | "apple" | "passkey" | "two-step" | "email-link" | "desktop" | "other" | null;
8149
8149
  ipAddress: string | null;
8150
8150
  browser: string | null;
8151
8151
  system: string | null;
@@ -8155,7 +8155,7 @@ declare function createCloudAdminRoutes(services: CloudAdminServices, trustedOri
8155
8155
  }[];
8156
8156
  signIns: {
8157
8157
  id: string;
8158
- method: "google" | "apple" | "password" | "passkey" | "two-step" | "email-link" | "desktop" | "other";
8158
+ method: "password" | "google" | "apple" | "passkey" | "two-step" | "email-link" | "desktop" | "other";
8159
8159
  ipAddress: string | null;
8160
8160
  browser: string | null;
8161
8161
  system: string | null;
@@ -8413,8 +8413,8 @@ declare function createCloudAdminRoutes(services: CloudAdminServices, trustedOri
8413
8413
  regeneratable: boolean;
8414
8414
  kind: TransactionalEmailKind;
8415
8415
  id: string;
8416
- createdAt: string;
8417
8416
  status: TransactionalEmailStatus;
8417
+ createdAt: string;
8418
8418
  recipientEmailNormalized: string;
8419
8419
  attemptCount: number;
8420
8420
  transport: string | null;
@@ -8811,7 +8811,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
8811
8811
  image?: string | null | undefined;
8812
8812
  deploymentRole?: "user" | "admin" | undefined;
8813
8813
  };
8814
- state: "active" | "pending" | "rejected" | "revoked";
8814
+ state: "pending" | "rejected" | "revoked" | "active";
8815
8815
  };
8816
8816
  outputFormat: "json";
8817
8817
  status: import("hono/utils/http-status").ContentfulStatusCode;
@@ -9417,7 +9417,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
9417
9417
  sessions: {
9418
9418
  id: string;
9419
9419
  current: boolean;
9420
- method: "google" | "apple" | "password" | "passkey" | "two-step" | "email-link" | "desktop" | "other" | null;
9420
+ method: "password" | "google" | "apple" | "passkey" | "two-step" | "email-link" | "desktop" | "other" | null;
9421
9421
  ipAddress: string | null;
9422
9422
  browser: string | null;
9423
9423
  system: string | null;
@@ -9507,7 +9507,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
9507
9507
  output: {
9508
9508
  signIns: {
9509
9509
  id: string;
9510
- method: "google" | "apple" | "password" | "passkey" | "two-step" | "email-link" | "desktop" | "other";
9510
+ method: "password" | "google" | "apple" | "passkey" | "two-step" | "email-link" | "desktop" | "other";
9511
9511
  ipAddress: string | null;
9512
9512
  browser: string | null;
9513
9513
  system: string | null;
@@ -9534,7 +9534,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
9534
9534
  output: {
9535
9535
  methods: {
9536
9536
  id: string;
9537
- provider: "credential" | "google" | "apple";
9537
+ provider: "google" | "apple" | "credential";
9538
9538
  createdAt: string;
9539
9539
  canUnlink: boolean;
9540
9540
  }[];
@@ -10214,7 +10214,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
10214
10214
  input: {
10215
10215
  query: {
10216
10216
  search?: string | undefined;
10217
- filter?: "pending" | "rejected" | "revoked" | "approved" | undefined;
10217
+ filter?: "pending" | "approved" | "rejected" | "revoked" | undefined;
10218
10218
  limit?: number | undefined;
10219
10219
  offset?: number | undefined;
10220
10220
  };
@@ -10230,7 +10230,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
10230
10230
  input: {
10231
10231
  query: {
10232
10232
  search?: string | undefined;
10233
- filter?: "pending" | "rejected" | "revoked" | "approved" | undefined;
10233
+ filter?: "pending" | "approved" | "rejected" | "revoked" | undefined;
10234
10234
  limit?: number | undefined;
10235
10235
  offset?: number | undefined;
10236
10236
  };
@@ -10253,9 +10253,9 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
10253
10253
  total: number;
10254
10254
  counts: {
10255
10255
  pending: number;
10256
+ approved: number;
10256
10257
  rejected: number;
10257
10258
  revoked: number;
10258
- approved: number;
10259
10259
  };
10260
10260
  };
10261
10261
  outputFormat: "json";
@@ -10507,7 +10507,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
10507
10507
  sessions: {
10508
10508
  id: string;
10509
10509
  current: boolean;
10510
- method: "google" | "apple" | "password" | "passkey" | "two-step" | "email-link" | "desktop" | "other" | null;
10510
+ method: "password" | "google" | "apple" | "passkey" | "two-step" | "email-link" | "desktop" | "other" | null;
10511
10511
  ipAddress: string | null;
10512
10512
  browser: string | null;
10513
10513
  system: string | null;
@@ -10517,7 +10517,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
10517
10517
  }[];
10518
10518
  signIns: {
10519
10519
  id: string;
10520
- method: "google" | "apple" | "password" | "passkey" | "two-step" | "email-link" | "desktop" | "other";
10520
+ method: "password" | "google" | "apple" | "passkey" | "two-step" | "email-link" | "desktop" | "other";
10521
10521
  ipAddress: string | null;
10522
10522
  browser: string | null;
10523
10523
  system: string | null;
@@ -10775,8 +10775,8 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
10775
10775
  regeneratable: boolean;
10776
10776
  kind: TransactionalEmailKind;
10777
10777
  id: string;
10778
- createdAt: string;
10779
10778
  status: TransactionalEmailStatus;
10779
+ createdAt: string;
10780
10780
  recipientEmailNormalized: string;
10781
10781
  attemptCount: number;
10782
10782
  transport: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pairdraw/cloud",
3
- "version": "0.17.0",
3
+ "version": "0.18.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.17.0",
26
+ "@pairdraw/scene-graph": "^0.18.0",
27
27
  "@vue-email/components": "^0.0.21",
28
28
  "@vue-email/render": "^0.0.9",
29
29
  "better-auth": "1.7.7",