@pairdraw/cloud 0.20.0 → 0.21.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/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: "passkey" | "password" | "google" | "apple" | "two-step" | "email-link" | "desktop" | "other" | null;
1361
+ method: "password" | "google" | "apple" | "passkey" | "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: "passkey" | "password" | "google" | "apple" | "two-step" | "email-link" | "desktop" | "other";
1371
+ method: "password" | "google" | "apple" | "passkey" | "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: "viewer" | "editor" | "admin";
1380
+ role: "admin" | "viewer" | "editor";
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: "passkey" | "password" | "google" | "apple" | "two-step" | "email-link" | "desktop" | "other" | null;
1541
+ method: "password" | "google" | "apple" | "passkey" | "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: "passkey" | "password" | "google" | "apple" | "two-step" | "email-link" | "desktop" | "other";
1559
+ method: "password" | "google" | "apple" | "passkey" | "two-step" | "email-link" | "desktop" | "other";
1560
1560
  ipAddress: string | null;
1561
1561
  browser: string | null;
1562
1562
  system: string | null;
package/dist/index.d.ts CHANGED
@@ -123,7 +123,7 @@ declare function parseCloudPasswordChange(input: unknown): {
123
123
  newPassword: string;
124
124
  };
125
125
  declare function parseCloudSocialLink(input: unknown): {
126
- provider: "google" | "apple";
126
+ provider: "apple" | "google";
127
127
  callbackURL: string;
128
128
  };
129
129
  declare function parseCloudUnlinkAuthenticationMethod(input: unknown): {
package/dist/server.d.ts CHANGED
@@ -743,6 +743,7 @@ declare function createAdminEmailService(database: Kysely<CloudDatabase>, email?
743
743
  kind: TransactionalEmailKind;
744
744
  id: string;
745
745
  createdAt: Date;
746
+ acceptedAt: Date | null;
746
747
  status: TransactionalEmailStatus;
747
748
  recipientEmailNormalized: string;
748
749
  attemptCount: number;
@@ -750,7 +751,6 @@ declare function createAdminEmailService(database: Kysely<CloudDatabase>, email?
750
751
  transportMessageId: string | null;
751
752
  lastErrorCode: string | null;
752
753
  nextAttemptAt: Date;
753
- acceptedAt: Date | null;
754
754
  }[];
755
755
  total: number;
756
756
  counts: Record<"all" | "sent" | "waiting" | "failed", number>;
@@ -1273,11 +1273,11 @@ declare function createAccountAuthenticationService(auth: CloudAuthAdapter, conf
1273
1273
  methods(headers: Headers): Promise<{
1274
1274
  methods: {
1275
1275
  id: string;
1276
- provider: "credential" | "google" | "apple";
1276
+ provider: "apple" | "google" | "credential";
1277
1277
  createdAt: string;
1278
1278
  canUnlink: boolean;
1279
1279
  }[];
1280
- availableSocialProviders: ("google" | "apple")[];
1280
+ availableSocialProviders: ("apple" | "google")[];
1281
1281
  }>;
1282
1282
  changePassword(headers: Headers, input: {
1283
1283
  currentPassword: string;
@@ -3606,7 +3606,7 @@ declare function createDocumentSharingRoutes(service: DocumentSharingService, ra
3606
3606
  } | {
3607
3607
  kind: "workspace";
3608
3608
  workspaceId: string;
3609
- role: "admin" | "viewer" | "editor";
3609
+ role: "viewer" | "editor" | "admin";
3610
3610
  };
3611
3611
  };
3612
3612
  outputFormat: "json";
@@ -3790,7 +3790,7 @@ declare function createPublicSharingRoutes(service: DocumentSharingService, reso
3790
3790
  recipientHint: string;
3791
3791
  kind: "workspace";
3792
3792
  workspaceName: string;
3793
- role: "admin" | "viewer" | "editor";
3793
+ role: "viewer" | "editor" | "admin";
3794
3794
  };
3795
3795
  };
3796
3796
  outputFormat: "json";
@@ -4510,16 +4510,16 @@ declare class DatabaseEntitlementSource implements EntitlementSource {
4510
4510
  declare function createWorkspaceEntitlementRepository(database: Kysely<CloudDatabase>): {
4511
4511
  get(workspaceId: string): Promise<{
4512
4512
  values: unknown;
4513
- workspaceId: string;
4514
4513
  updatedAt: Date;
4514
+ workspaceId: string;
4515
4515
  source: string;
4516
4516
  externalVersion: number | null;
4517
4517
  revision: number;
4518
4518
  } | undefined>;
4519
4519
  set(workspaceId: string, values: StaticEntitlementsInput, source: string): Promise<{
4520
4520
  values: unknown;
4521
- workspaceId: string;
4522
4521
  updatedAt: Date;
4522
+ workspaceId: string;
4523
4523
  source: string;
4524
4524
  externalVersion: number | null;
4525
4525
  revision: number;
@@ -4948,7 +4948,7 @@ declare function createWorkspaceRoutes(service: WorkspaceService, members: Works
4948
4948
  id: string;
4949
4949
  name: string;
4950
4950
  slug: string;
4951
- role: "admin" | "viewer" | "editor";
4951
+ role: "viewer" | "editor" | "admin";
4952
4952
  createdAt: string;
4953
4953
  updatedAt: string;
4954
4954
  }[];
@@ -4985,7 +4985,7 @@ declare function createWorkspaceRoutes(service: WorkspaceService, members: Works
4985
4985
  id: string;
4986
4986
  name: string;
4987
4987
  slug: string;
4988
- role: "admin" | "viewer" | "editor";
4988
+ role: "viewer" | "editor" | "admin";
4989
4989
  createdAt: string;
4990
4990
  updatedAt: string;
4991
4991
  };
@@ -5047,7 +5047,7 @@ declare function createWorkspaceRoutes(service: WorkspaceService, members: Works
5047
5047
  id: string;
5048
5048
  name: string;
5049
5049
  slug: string;
5050
- role: "admin" | "viewer" | "editor";
5050
+ role: "viewer" | "editor" | "admin";
5051
5051
  createdAt: string;
5052
5052
  updatedAt: string;
5053
5053
  };
@@ -5120,7 +5120,7 @@ declare function createWorkspaceRoutes(service: WorkspaceService, members: Works
5120
5120
  id: string;
5121
5121
  name: string;
5122
5122
  slug: string;
5123
- role: "admin" | "viewer" | "editor";
5123
+ role: "viewer" | "editor" | "admin";
5124
5124
  createdAt: string;
5125
5125
  updatedAt: string;
5126
5126
  };
@@ -5200,13 +5200,13 @@ declare function createWorkspaceRoutes(service: WorkspaceService, members: Works
5200
5200
  name: string;
5201
5201
  email: string;
5202
5202
  image: string | null;
5203
- role: "admin" | "viewer" | "editor";
5203
+ role: "viewer" | "editor" | "admin";
5204
5204
  joinedAt: string;
5205
5205
  }[];
5206
5206
  invitations: {
5207
5207
  id: string;
5208
5208
  email: string;
5209
- role: "admin" | "viewer" | "editor";
5209
+ role: "viewer" | "editor" | "admin";
5210
5210
  invitedBy: {
5211
5211
  id: string;
5212
5212
  name: string | null;
@@ -5229,7 +5229,7 @@ declare function createWorkspaceRoutes(service: WorkspaceService, members: Works
5229
5229
  } & {
5230
5230
  json: {
5231
5231
  email: string;
5232
- role: "admin" | "viewer" | "editor";
5232
+ role: "viewer" | "editor" | "admin";
5233
5233
  };
5234
5234
  };
5235
5235
  output: {};
@@ -5243,7 +5243,7 @@ declare function createWorkspaceRoutes(service: WorkspaceService, members: Works
5243
5243
  } & {
5244
5244
  json: {
5245
5245
  email: string;
5246
- role: "admin" | "viewer" | "editor";
5246
+ role: "viewer" | "editor" | "admin";
5247
5247
  };
5248
5248
  };
5249
5249
  output: {
@@ -5261,7 +5261,7 @@ declare function createWorkspaceRoutes(service: WorkspaceService, members: Works
5261
5261
  } & {
5262
5262
  json: {
5263
5263
  email: string;
5264
- role: "admin" | "viewer" | "editor";
5264
+ role: "viewer" | "editor" | "admin";
5265
5265
  };
5266
5266
  };
5267
5267
  output: {
@@ -5279,14 +5279,14 @@ declare function createWorkspaceRoutes(service: WorkspaceService, members: Works
5279
5279
  } & {
5280
5280
  json: {
5281
5281
  email: string;
5282
- role: "admin" | "viewer" | "editor";
5282
+ role: "viewer" | "editor" | "admin";
5283
5283
  };
5284
5284
  };
5285
5285
  output: {
5286
5286
  invitation: {
5287
5287
  id: string;
5288
5288
  email: string;
5289
- role: "admin" | "viewer" | "editor";
5289
+ role: "viewer" | "editor" | "admin";
5290
5290
  invitedBy: {
5291
5291
  id: string;
5292
5292
  name: string | null;
@@ -5337,7 +5337,7 @@ declare function createWorkspaceRoutes(service: WorkspaceService, members: Works
5337
5337
  invitation: {
5338
5338
  id: string;
5339
5339
  email: string;
5340
- role: "admin" | "viewer" | "editor";
5340
+ role: "viewer" | "editor" | "admin";
5341
5341
  invitedBy: {
5342
5342
  id: string;
5343
5343
  name: string | null;
@@ -5399,7 +5399,7 @@ declare function createWorkspaceRoutes(service: WorkspaceService, members: Works
5399
5399
  };
5400
5400
  } & {
5401
5401
  json: {
5402
- role: "admin" | "viewer" | "editor";
5402
+ role: "viewer" | "editor" | "admin";
5403
5403
  };
5404
5404
  };
5405
5405
  output: {};
@@ -5413,7 +5413,7 @@ declare function createWorkspaceRoutes(service: WorkspaceService, members: Works
5413
5413
  };
5414
5414
  } & {
5415
5415
  json: {
5416
- role: "admin" | "viewer" | "editor";
5416
+ role: "viewer" | "editor" | "admin";
5417
5417
  };
5418
5418
  };
5419
5419
  output: null;
@@ -5427,7 +5427,7 @@ declare function createWorkspaceRoutes(service: WorkspaceService, members: Works
5427
5427
  };
5428
5428
  } & {
5429
5429
  json: {
5430
- role: "admin" | "viewer" | "editor";
5430
+ role: "viewer" | "editor" | "admin";
5431
5431
  };
5432
5432
  };
5433
5433
  output: {
@@ -5445,7 +5445,7 @@ declare function createWorkspaceRoutes(service: WorkspaceService, members: Works
5445
5445
  };
5446
5446
  } & {
5447
5447
  json: {
5448
- role: "admin" | "viewer" | "editor";
5448
+ role: "viewer" | "editor" | "admin";
5449
5449
  };
5450
5450
  };
5451
5451
  output: {
@@ -5763,7 +5763,7 @@ declare function createPublicCloudAPIRouter(services: CloudAPIServices): import(
5763
5763
  recipientHint: string;
5764
5764
  kind: "workspace";
5765
5765
  workspaceName: string;
5766
- role: "admin" | "viewer" | "editor";
5766
+ role: "viewer" | "editor" | "admin";
5767
5767
  };
5768
5768
  };
5769
5769
  outputFormat: "json";
@@ -6526,7 +6526,7 @@ declare function createCloudAPIRouter(services: CloudAPIServices): import("hono/
6526
6526
  recipientHint: string;
6527
6527
  kind: "workspace";
6528
6528
  workspaceName: string;
6529
- role: "admin" | "viewer" | "editor";
6529
+ role: "viewer" | "editor" | "admin";
6530
6530
  };
6531
6531
  };
6532
6532
  outputFormat: "json";
@@ -8754,7 +8754,7 @@ declare function createCloudAPIRouter(services: CloudAPIServices): import("hono/
8754
8754
  } | {
8755
8755
  kind: "workspace";
8756
8756
  workspaceId: string;
8757
- role: "admin" | "viewer" | "editor";
8757
+ role: "viewer" | "editor" | "admin";
8758
8758
  };
8759
8759
  };
8760
8760
  outputFormat: "json";
@@ -8808,7 +8808,7 @@ declare function createCloudAPIRouter(services: CloudAPIServices): import("hono/
8808
8808
  id: string;
8809
8809
  name: string;
8810
8810
  slug: string;
8811
- role: "admin" | "viewer" | "editor";
8811
+ role: "viewer" | "editor" | "admin";
8812
8812
  createdAt: string;
8813
8813
  updatedAt: string;
8814
8814
  }[];
@@ -8845,7 +8845,7 @@ declare function createCloudAPIRouter(services: CloudAPIServices): import("hono/
8845
8845
  id: string;
8846
8846
  name: string;
8847
8847
  slug: string;
8848
- role: "admin" | "viewer" | "editor";
8848
+ role: "viewer" | "editor" | "admin";
8849
8849
  createdAt: string;
8850
8850
  updatedAt: string;
8851
8851
  };
@@ -8907,7 +8907,7 @@ declare function createCloudAPIRouter(services: CloudAPIServices): import("hono/
8907
8907
  id: string;
8908
8908
  name: string;
8909
8909
  slug: string;
8910
- role: "admin" | "viewer" | "editor";
8910
+ role: "viewer" | "editor" | "admin";
8911
8911
  createdAt: string;
8912
8912
  updatedAt: string;
8913
8913
  };
@@ -8980,7 +8980,7 @@ declare function createCloudAPIRouter(services: CloudAPIServices): import("hono/
8980
8980
  id: string;
8981
8981
  name: string;
8982
8982
  slug: string;
8983
- role: "admin" | "viewer" | "editor";
8983
+ role: "viewer" | "editor" | "admin";
8984
8984
  createdAt: string;
8985
8985
  updatedAt: string;
8986
8986
  };
@@ -9060,13 +9060,13 @@ declare function createCloudAPIRouter(services: CloudAPIServices): import("hono/
9060
9060
  name: string;
9061
9061
  email: string;
9062
9062
  image: string | null;
9063
- role: "admin" | "viewer" | "editor";
9063
+ role: "viewer" | "editor" | "admin";
9064
9064
  joinedAt: string;
9065
9065
  }[];
9066
9066
  invitations: {
9067
9067
  id: string;
9068
9068
  email: string;
9069
- role: "admin" | "viewer" | "editor";
9069
+ role: "viewer" | "editor" | "admin";
9070
9070
  invitedBy: {
9071
9071
  id: string;
9072
9072
  name: string | null;
@@ -9089,7 +9089,7 @@ declare function createCloudAPIRouter(services: CloudAPIServices): import("hono/
9089
9089
  } & {
9090
9090
  json: {
9091
9091
  email: string;
9092
- role: "admin" | "viewer" | "editor";
9092
+ role: "viewer" | "editor" | "admin";
9093
9093
  };
9094
9094
  };
9095
9095
  output: {};
@@ -9103,7 +9103,7 @@ declare function createCloudAPIRouter(services: CloudAPIServices): import("hono/
9103
9103
  } & {
9104
9104
  json: {
9105
9105
  email: string;
9106
- role: "admin" | "viewer" | "editor";
9106
+ role: "viewer" | "editor" | "admin";
9107
9107
  };
9108
9108
  };
9109
9109
  output: {
@@ -9121,7 +9121,7 @@ declare function createCloudAPIRouter(services: CloudAPIServices): import("hono/
9121
9121
  } & {
9122
9122
  json: {
9123
9123
  email: string;
9124
- role: "admin" | "viewer" | "editor";
9124
+ role: "viewer" | "editor" | "admin";
9125
9125
  };
9126
9126
  };
9127
9127
  output: {
@@ -9139,14 +9139,14 @@ declare function createCloudAPIRouter(services: CloudAPIServices): import("hono/
9139
9139
  } & {
9140
9140
  json: {
9141
9141
  email: string;
9142
- role: "admin" | "viewer" | "editor";
9142
+ role: "viewer" | "editor" | "admin";
9143
9143
  };
9144
9144
  };
9145
9145
  output: {
9146
9146
  invitation: {
9147
9147
  id: string;
9148
9148
  email: string;
9149
- role: "admin" | "viewer" | "editor";
9149
+ role: "viewer" | "editor" | "admin";
9150
9150
  invitedBy: {
9151
9151
  id: string;
9152
9152
  name: string | null;
@@ -9197,7 +9197,7 @@ declare function createCloudAPIRouter(services: CloudAPIServices): import("hono/
9197
9197
  invitation: {
9198
9198
  id: string;
9199
9199
  email: string;
9200
- role: "admin" | "viewer" | "editor";
9200
+ role: "viewer" | "editor" | "admin";
9201
9201
  invitedBy: {
9202
9202
  id: string;
9203
9203
  name: string | null;
@@ -9259,7 +9259,7 @@ declare function createCloudAPIRouter(services: CloudAPIServices): import("hono/
9259
9259
  };
9260
9260
  } & {
9261
9261
  json: {
9262
- role: "admin" | "viewer" | "editor";
9262
+ role: "viewer" | "editor" | "admin";
9263
9263
  };
9264
9264
  };
9265
9265
  output: {};
@@ -9273,7 +9273,7 @@ declare function createCloudAPIRouter(services: CloudAPIServices): import("hono/
9273
9273
  };
9274
9274
  } & {
9275
9275
  json: {
9276
- role: "admin" | "viewer" | "editor";
9276
+ role: "viewer" | "editor" | "admin";
9277
9277
  };
9278
9278
  };
9279
9279
  output: null;
@@ -9287,7 +9287,7 @@ declare function createCloudAPIRouter(services: CloudAPIServices): import("hono/
9287
9287
  };
9288
9288
  } & {
9289
9289
  json: {
9290
- role: "admin" | "viewer" | "editor";
9290
+ role: "viewer" | "editor" | "admin";
9291
9291
  };
9292
9292
  };
9293
9293
  output: {
@@ -9305,7 +9305,7 @@ declare function createCloudAPIRouter(services: CloudAPIServices): import("hono/
9305
9305
  };
9306
9306
  } & {
9307
9307
  json: {
9308
- role: "admin" | "viewer" | "editor";
9308
+ role: "viewer" | "editor" | "admin";
9309
9309
  };
9310
9310
  };
9311
9311
  output: {
@@ -9671,7 +9671,7 @@ declare function createCloudAdminRoutes(services: CloudAdminServices, trustedOri
9671
9671
  sessions: {
9672
9672
  id: string;
9673
9673
  current: boolean;
9674
- method: "google" | "apple" | "password" | "passkey" | "two-step" | "email-link" | "desktop" | "other" | null;
9674
+ method: "apple" | "google" | "password" | "passkey" | "two-step" | "email-link" | "desktop" | "other" | null;
9675
9675
  ipAddress: string | null;
9676
9676
  browser: string | null;
9677
9677
  system: string | null;
@@ -9681,7 +9681,7 @@ declare function createCloudAdminRoutes(services: CloudAdminServices, trustedOri
9681
9681
  }[];
9682
9682
  signIns: {
9683
9683
  id: string;
9684
- method: "google" | "apple" | "password" | "passkey" | "two-step" | "email-link" | "desktop" | "other";
9684
+ method: "apple" | "google" | "password" | "passkey" | "two-step" | "email-link" | "desktop" | "other";
9685
9685
  ipAddress: string | null;
9686
9686
  browser: string | null;
9687
9687
  system: string | null;
@@ -9690,7 +9690,7 @@ declare function createCloudAdminRoutes(services: CloudAdminServices, trustedOri
9690
9690
  workspaces: {
9691
9691
  id: string;
9692
9692
  name: string;
9693
- role: "admin" | "viewer" | "editor";
9693
+ role: "viewer" | "editor" | "admin";
9694
9694
  memberCount: number;
9695
9695
  joinedAt: string;
9696
9696
  }[];
@@ -9940,6 +9940,7 @@ declare function createCloudAdminRoutes(services: CloudAdminServices, trustedOri
9940
9940
  kind: TransactionalEmailKind;
9941
9941
  id: string;
9942
9942
  createdAt: string;
9943
+ acceptedAt: string | null;
9943
9944
  status: TransactionalEmailStatus;
9944
9945
  recipientEmailNormalized: string;
9945
9946
  attemptCount: number;
@@ -9947,7 +9948,6 @@ declare function createCloudAdminRoutes(services: CloudAdminServices, trustedOri
9947
9948
  transportMessageId: string | null;
9948
9949
  lastErrorCode: string | null;
9949
9950
  nextAttemptAt: string;
9950
- acceptedAt: string | null;
9951
9951
  }[];
9952
9952
  total: number;
9953
9953
  counts: {
@@ -10266,7 +10266,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
10266
10266
  siteKey: string;
10267
10267
  } | undefined;
10268
10268
  } | undefined;
10269
- socialProviders: ("google" | "apple")[];
10269
+ socialProviders: ("apple" | "google")[];
10270
10270
  enterpriseSSO: boolean;
10271
10271
  enrollmentMode: "open" | "approval" | "closed";
10272
10272
  mfa?: {
@@ -10686,7 +10686,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
10686
10686
  $post: {
10687
10687
  input: {
10688
10688
  json: {
10689
- provider: "google" | "apple";
10689
+ provider: "apple" | "google";
10690
10690
  callbackURL: string;
10691
10691
  };
10692
10692
  };
@@ -10700,7 +10700,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
10700
10700
  } | {
10701
10701
  input: {
10702
10702
  json: {
10703
- provider: "google" | "apple";
10703
+ provider: "apple" | "google";
10704
10704
  callbackURL: string;
10705
10705
  };
10706
10706
  };
@@ -10714,7 +10714,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
10714
10714
  } | {
10715
10715
  input: {
10716
10716
  json: {
10717
- provider: "google" | "apple";
10717
+ provider: "apple" | "google";
10718
10718
  callbackURL: string;
10719
10719
  };
10720
10720
  };
@@ -10947,7 +10947,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
10947
10947
  sessions: {
10948
10948
  id: string;
10949
10949
  current: boolean;
10950
- method: "google" | "apple" | "password" | "passkey" | "two-step" | "email-link" | "desktop" | "other" | null;
10950
+ method: "apple" | "google" | "password" | "passkey" | "two-step" | "email-link" | "desktop" | "other" | null;
10951
10951
  ipAddress: string | null;
10952
10952
  browser: string | null;
10953
10953
  system: string | null;
@@ -11037,7 +11037,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
11037
11037
  output: {
11038
11038
  signIns: {
11039
11039
  id: string;
11040
- method: "google" | "apple" | "password" | "passkey" | "two-step" | "email-link" | "desktop" | "other";
11040
+ method: "apple" | "google" | "password" | "passkey" | "two-step" | "email-link" | "desktop" | "other";
11041
11041
  ipAddress: string | null;
11042
11042
  browser: string | null;
11043
11043
  system: string | null;
@@ -11064,11 +11064,11 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
11064
11064
  output: {
11065
11065
  methods: {
11066
11066
  id: string;
11067
- provider: "credential" | "google" | "apple";
11067
+ provider: "apple" | "google" | "credential";
11068
11068
  createdAt: string;
11069
11069
  canUnlink: boolean;
11070
11070
  }[];
11071
- availableSocialProviders: ("google" | "apple")[];
11071
+ availableSocialProviders: ("apple" | "google")[];
11072
11072
  };
11073
11073
  outputFormat: "json";
11074
11074
  status: import("hono/utils/http-status").ContentfulStatusCode;
@@ -11353,7 +11353,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
11353
11353
  recipientHint: string;
11354
11354
  kind: "workspace";
11355
11355
  workspaceName: string;
11356
- role: "admin" | "viewer" | "editor";
11356
+ role: "viewer" | "editor" | "admin";
11357
11357
  };
11358
11358
  };
11359
11359
  outputFormat: "json";
@@ -12144,7 +12144,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
12144
12144
  sessions: {
12145
12145
  id: string;
12146
12146
  current: boolean;
12147
- method: "google" | "apple" | "password" | "passkey" | "two-step" | "email-link" | "desktop" | "other" | null;
12147
+ method: "apple" | "google" | "password" | "passkey" | "two-step" | "email-link" | "desktop" | "other" | null;
12148
12148
  ipAddress: string | null;
12149
12149
  browser: string | null;
12150
12150
  system: string | null;
@@ -12154,7 +12154,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
12154
12154
  }[];
12155
12155
  signIns: {
12156
12156
  id: string;
12157
- method: "google" | "apple" | "password" | "passkey" | "two-step" | "email-link" | "desktop" | "other";
12157
+ method: "apple" | "google" | "password" | "passkey" | "two-step" | "email-link" | "desktop" | "other";
12158
12158
  ipAddress: string | null;
12159
12159
  browser: string | null;
12160
12160
  system: string | null;
@@ -12163,7 +12163,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
12163
12163
  workspaces: {
12164
12164
  id: string;
12165
12165
  name: string;
12166
- role: "admin" | "viewer" | "editor";
12166
+ role: "viewer" | "editor" | "admin";
12167
12167
  memberCount: number;
12168
12168
  joinedAt: string;
12169
12169
  }[];
@@ -12413,6 +12413,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
12413
12413
  kind: TransactionalEmailKind;
12414
12414
  id: string;
12415
12415
  createdAt: string;
12416
+ acceptedAt: string | null;
12416
12417
  status: TransactionalEmailStatus;
12417
12418
  recipientEmailNormalized: string;
12418
12419
  attemptCount: number;
@@ -12420,7 +12421,6 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
12420
12421
  transportMessageId: string | null;
12421
12422
  lastErrorCode: string | null;
12422
12423
  nextAttemptAt: string;
12423
- acceptedAt: string | null;
12424
12424
  }[];
12425
12425
  total: number;
12426
12426
  counts: {
@@ -12919,7 +12919,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
12919
12919
  recipientHint: string;
12920
12920
  kind: "workspace";
12921
12921
  workspaceName: string;
12922
- role: "admin" | "viewer" | "editor";
12922
+ role: "viewer" | "editor" | "admin";
12923
12923
  };
12924
12924
  };
12925
12925
  outputFormat: "json";
@@ -15147,7 +15147,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
15147
15147
  } | {
15148
15148
  kind: "workspace";
15149
15149
  workspaceId: string;
15150
- role: "admin" | "viewer" | "editor";
15150
+ role: "viewer" | "editor" | "admin";
15151
15151
  };
15152
15152
  };
15153
15153
  outputFormat: "json";
@@ -15201,7 +15201,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
15201
15201
  id: string;
15202
15202
  name: string;
15203
15203
  slug: string;
15204
- role: "admin" | "viewer" | "editor";
15204
+ role: "viewer" | "editor" | "admin";
15205
15205
  createdAt: string;
15206
15206
  updatedAt: string;
15207
15207
  }[];
@@ -15238,7 +15238,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
15238
15238
  id: string;
15239
15239
  name: string;
15240
15240
  slug: string;
15241
- role: "admin" | "viewer" | "editor";
15241
+ role: "viewer" | "editor" | "admin";
15242
15242
  createdAt: string;
15243
15243
  updatedAt: string;
15244
15244
  };
@@ -15300,7 +15300,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
15300
15300
  id: string;
15301
15301
  name: string;
15302
15302
  slug: string;
15303
- role: "admin" | "viewer" | "editor";
15303
+ role: "viewer" | "editor" | "admin";
15304
15304
  createdAt: string;
15305
15305
  updatedAt: string;
15306
15306
  };
@@ -15373,7 +15373,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
15373
15373
  id: string;
15374
15374
  name: string;
15375
15375
  slug: string;
15376
- role: "admin" | "viewer" | "editor";
15376
+ role: "viewer" | "editor" | "admin";
15377
15377
  createdAt: string;
15378
15378
  updatedAt: string;
15379
15379
  };
@@ -15453,13 +15453,13 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
15453
15453
  name: string;
15454
15454
  email: string;
15455
15455
  image: string | null;
15456
- role: "admin" | "viewer" | "editor";
15456
+ role: "viewer" | "editor" | "admin";
15457
15457
  joinedAt: string;
15458
15458
  }[];
15459
15459
  invitations: {
15460
15460
  id: string;
15461
15461
  email: string;
15462
- role: "admin" | "viewer" | "editor";
15462
+ role: "viewer" | "editor" | "admin";
15463
15463
  invitedBy: {
15464
15464
  id: string;
15465
15465
  name: string | null;
@@ -15482,7 +15482,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
15482
15482
  } & {
15483
15483
  json: {
15484
15484
  email: string;
15485
- role: "admin" | "viewer" | "editor";
15485
+ role: "viewer" | "editor" | "admin";
15486
15486
  };
15487
15487
  };
15488
15488
  output: {};
@@ -15496,7 +15496,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
15496
15496
  } & {
15497
15497
  json: {
15498
15498
  email: string;
15499
- role: "admin" | "viewer" | "editor";
15499
+ role: "viewer" | "editor" | "admin";
15500
15500
  };
15501
15501
  };
15502
15502
  output: {
@@ -15514,7 +15514,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
15514
15514
  } & {
15515
15515
  json: {
15516
15516
  email: string;
15517
- role: "admin" | "viewer" | "editor";
15517
+ role: "viewer" | "editor" | "admin";
15518
15518
  };
15519
15519
  };
15520
15520
  output: {
@@ -15532,14 +15532,14 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
15532
15532
  } & {
15533
15533
  json: {
15534
15534
  email: string;
15535
- role: "admin" | "viewer" | "editor";
15535
+ role: "viewer" | "editor" | "admin";
15536
15536
  };
15537
15537
  };
15538
15538
  output: {
15539
15539
  invitation: {
15540
15540
  id: string;
15541
15541
  email: string;
15542
- role: "admin" | "viewer" | "editor";
15542
+ role: "viewer" | "editor" | "admin";
15543
15543
  invitedBy: {
15544
15544
  id: string;
15545
15545
  name: string | null;
@@ -15590,7 +15590,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
15590
15590
  invitation: {
15591
15591
  id: string;
15592
15592
  email: string;
15593
- role: "admin" | "viewer" | "editor";
15593
+ role: "viewer" | "editor" | "admin";
15594
15594
  invitedBy: {
15595
15595
  id: string;
15596
15596
  name: string | null;
@@ -15652,7 +15652,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
15652
15652
  };
15653
15653
  } & {
15654
15654
  json: {
15655
- role: "admin" | "viewer" | "editor";
15655
+ role: "viewer" | "editor" | "admin";
15656
15656
  };
15657
15657
  };
15658
15658
  output: {};
@@ -15666,7 +15666,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
15666
15666
  };
15667
15667
  } & {
15668
15668
  json: {
15669
- role: "admin" | "viewer" | "editor";
15669
+ role: "viewer" | "editor" | "admin";
15670
15670
  };
15671
15671
  };
15672
15672
  output: null;
@@ -15680,7 +15680,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
15680
15680
  };
15681
15681
  } & {
15682
15682
  json: {
15683
- role: "admin" | "viewer" | "editor";
15683
+ role: "viewer" | "editor" | "admin";
15684
15684
  };
15685
15685
  };
15686
15686
  output: {
@@ -15698,7 +15698,7 @@ declare function createCloudApp(services: CloudServices): import("hono/hono-base
15698
15698
  };
15699
15699
  } & {
15700
15700
  json: {
15701
- role: "admin" | "viewer" | "editor";
15701
+ role: "viewer" | "editor" | "admin";
15702
15702
  };
15703
15703
  };
15704
15704
  output: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pairdraw/cloud",
3
- "version": "0.20.0",
3
+ "version": "0.21.1",
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.20.0",
26
+ "@pairdraw/scene-graph": "^0.21.1",
27
27
  "@vue-email/components": "^0.0.21",
28
28
  "@vue-email/render": "^0.0.9",
29
29
  "better-auth": "1.7.7",