@pairdraw/cloud 0.16.0 → 0.16.2
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/README.md +2 -2
- package/dist/bin/ai-relay.mjs +1 -1
- package/dist/bin/ai-relay.mjs.map +1 -1
- package/dist/bin/server.mjs +1 -1
- package/dist/bin/server.mjs.map +1 -1
- package/dist/client.d.ts +5 -5
- package/dist/index.d.ts +1 -1
- package/dist/server.d.ts +25 -25
- package/package.json +14 -2
- package/src/runtime/node/ai-relay/main.ts +1 -1
- package/src/runtime/node/main.ts +1 -1
package/README.md
CHANGED
|
@@ -25,11 +25,11 @@ bun --filter @pairdraw/cloud build:standalone && bun --filter @pairdraw/cloud st
|
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
The server migrates the database before it accepts requests. The
|
|
28
|
-
[self-hosting guide](https://github.com/BadryansahBangsawan/pairdraw/blob/
|
|
28
|
+
[self-hosting guide](https://github.com/BadryansahBangsawan/pairdraw/blob/main/packages/docs/reference/self-hosting-cloud.md) covers building with the
|
|
29
29
|
portal, configuration, the editor address, operator commands, and upgrades;
|
|
30
30
|
[`deploy/README.md`](./deploy/README.md) covers local development and end-to-end tests, and
|
|
31
31
|
[`deploy/security.md`](./deploy/security.md) covers hardening. The design is described in
|
|
32
|
-
[Cloud Architecture](https://github.com/BadryansahBangsawan/pairdraw/blob/
|
|
32
|
+
[Cloud Architecture](https://github.com/BadryansahBangsawan/pairdraw/blob/main/packages/docs/development/cloud.md).
|
|
33
33
|
|
|
34
34
|
## Tests
|
|
35
35
|
|
package/dist/bin/ai-relay.mjs
CHANGED
|
@@ -10,7 +10,7 @@ if (process.argv.includes("--help") || process.argv.includes("-h")) {
|
|
|
10
10
|
environment:
|
|
11
11
|
PAIRDRAW_AI_RELAY_CONFIG the relay TOML file (required)
|
|
12
12
|
PORT, HOST where to listen (default 8788 on 0.0.0.0)
|
|
13
|
-
plus the secrets the TOML names. See https://github.com/BadryansahBangsawan/pairdraw/blob/
|
|
13
|
+
plus the secrets the TOML names. See https://github.com/BadryansahBangsawan/pairdraw/blob/main/packages/docs/reference/self-hosting-cloud.md
|
|
14
14
|
`);
|
|
15
15
|
process.exit(0);
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-relay.mjs","names":[],"sources":["../../src/runtime/node/ai-relay/main.ts"],"sourcesContent":["#!/usr/bin/env node\nimport dedent from 'dedent'\n\nimport { startNodeAIRelay } from './server'\n\nif (process.argv.includes('--help') || process.argv.includes('-h')) {\n console.log(dedent`\n Usage: pairdraw-ai-relay\n\n Runs the reference AI service for a self-hosted Pairdraw Cloud. Settings come from the\n environment:\n PAIRDRAW_AI_RELAY_CONFIG the relay TOML file (required)\n PORT, HOST where to listen (default 8788 on 0.0.0.0)\n plus the secrets the TOML names. See https://github.com/BadryansahBangsawan/pairdraw/blob/
|
|
1
|
+
{"version":3,"file":"ai-relay.mjs","names":[],"sources":["../../src/runtime/node/ai-relay/main.ts"],"sourcesContent":["#!/usr/bin/env node\nimport dedent from 'dedent'\n\nimport { startNodeAIRelay } from './server'\n\nif (process.argv.includes('--help') || process.argv.includes('-h')) {\n console.log(dedent`\n Usage: pairdraw-ai-relay\n\n Runs the reference AI service for a self-hosted Pairdraw Cloud. Settings come from the\n environment:\n PAIRDRAW_AI_RELAY_CONFIG the relay TOML file (required)\n PORT, HOST where to listen (default 8788 on 0.0.0.0)\n plus the secrets the TOML names. See https://github.com/BadryansahBangsawan/pairdraw/blob/main/packages/docs/reference/self-hosting-cloud.md\n `)\n process.exit(0)\n}\n\nconst relay = await startNodeAIRelay()\nconsole.log(`Pairdraw AI relay listening on ${relay.url}`)\n\nlet stopping: Promise<void> | undefined\n\nfunction shutdown() {\n stopping ??= relay.stop().then(\n () => process.exit(0),\n (error: unknown) => {\n console.error('[AI relay] Shutdown failed:', error)\n process.exit(1)\n }\n )\n}\n\nprocess.on('SIGINT', shutdown)\nprocess.on('SIGTERM', shutdown)\n"],"mappings":";;;;AAKA,IAAI,QAAQ,KAAK,SAAS,QAAQ,KAAK,QAAQ,KAAK,SAAS,IAAI,GAAG;CAClE,QAAQ,IAAI,MAAM;;;;;;;;GAQjB;CACD,QAAQ,KAAK,CAAC;AAChB;AAEA,MAAM,QAAQ,MAAM,iBAAiB;AACrC,QAAQ,IAAI,kCAAkC,MAAM,KAAK;AAEzD,IAAI;AAEJ,SAAS,WAAW;CAClB,aAAa,MAAM,KAAK,CAAC,CAAC,WAClB,QAAQ,KAAK,CAAC,IACnB,UAAmB;EAClB,QAAQ,MAAM,+BAA+B,KAAK;EAClD,QAAQ,KAAK,CAAC;CAChB,CACF;AACF;AAEA,QAAQ,GAAG,UAAU,QAAQ;AAC7B,QAAQ,GAAG,WAAW,QAAQ"}
|
package/dist/bin/server.mjs
CHANGED
|
@@ -12,7 +12,7 @@ if (process.argv.includes("--help") || process.argv.includes("-h")) {
|
|
|
12
12
|
PAIRDRAW_CLOUD_DEV_SITE_URL
|
|
13
13
|
a Vite dev server to serve them from instead (cloud:dev)
|
|
14
14
|
PORT, HOST where to listen (default 8787 on 0.0.0.0)
|
|
15
|
-
plus the secrets the TOML names. See https://github.com/BadryansahBangsawan/pairdraw/blob/
|
|
15
|
+
plus the secrets the TOML names. See https://github.com/BadryansahBangsawan/pairdraw/blob/main/packages/docs/reference/self-hosting-cloud.md
|
|
16
16
|
`);
|
|
17
17
|
process.exit(0);
|
|
18
18
|
}
|
package/dist/bin/server.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.mjs","names":[],"sources":["../../src/runtime/node/main.ts"],"sourcesContent":["#!/usr/bin/env node\nimport dedent from 'dedent'\n\nimport { startNodeCloudServer } from './server'\n\nif (process.argv.includes('--help') || process.argv.includes('-h')) {\n console.log(dedent`\n Usage: pairdraw-cloud\n\n Runs Pairdraw Cloud. Settings come from the environment:\n PAIRDRAW_CLOUD_CONFIG the deployment TOML file (required)\n PAIRDRAW_CLOUD_SITE_DIR the editor and portal build to serve\n PAIRDRAW_CLOUD_DEV_SITE_URL\n a Vite dev server to serve them from instead (cloud:dev)\n PORT, HOST where to listen (default 8787 on 0.0.0.0)\n plus the secrets the TOML names. See https://github.com/BadryansahBangsawan/pairdraw/blob/
|
|
1
|
+
{"version":3,"file":"server.mjs","names":[],"sources":["../../src/runtime/node/main.ts"],"sourcesContent":["#!/usr/bin/env node\nimport dedent from 'dedent'\n\nimport { startNodeCloudServer } from './server'\n\nif (process.argv.includes('--help') || process.argv.includes('-h')) {\n console.log(dedent`\n Usage: pairdraw-cloud\n\n Runs Pairdraw Cloud. Settings come from the environment:\n PAIRDRAW_CLOUD_CONFIG the deployment TOML file (required)\n PAIRDRAW_CLOUD_SITE_DIR the editor and portal build to serve\n PAIRDRAW_CLOUD_DEV_SITE_URL\n a Vite dev server to serve them from instead (cloud:dev)\n PORT, HOST where to listen (default 8787 on 0.0.0.0)\n plus the secrets the TOML names. See https://github.com/BadryansahBangsawan/pairdraw/blob/main/packages/docs/reference/self-hosting-cloud.md\n `)\n process.exit(0)\n}\n\nconst cloud = await startNodeCloudServer()\nconsole.log(`Pairdraw Cloud listening on ${cloud.url}`)\n\nfunction shutdown() {\n void cloud.stop().then(() => process.exit(0))\n}\n\nprocess.on('SIGINT', shutdown)\nprocess.on('SIGTERM', shutdown)\n"],"mappings":";;;;AAKA,IAAI,QAAQ,KAAK,SAAS,QAAQ,KAAK,QAAQ,KAAK,SAAS,IAAI,GAAG;CAClE,QAAQ,IAAI,MAAM;;;;;;;;;;GAUjB;CACD,QAAQ,KAAK,CAAC;AAChB;AAEA,MAAM,QAAQ,MAAM,qBAAqB;AACzC,QAAQ,IAAI,+BAA+B,MAAM,KAAK;AAEtD,SAAS,WAAW;CAClB,MAAW,KAAK,CAAC,CAAC,WAAW,QAAQ,KAAK,CAAC,CAAC;AAC9C;AAEA,QAAQ,GAAG,UAAU,QAAQ;AAC7B,QAAQ,GAAG,WAAW,QAAQ"}
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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" | "
|
|
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" | "
|
|
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,15 +718,15 @@ declare function createAdminEmailService(database: Kysely<CloudDatabase>, email?
|
|
|
718
718
|
regeneratable: boolean;
|
|
719
719
|
kind: TransactionalEmailKind;
|
|
720
720
|
id: string;
|
|
721
|
-
createdAt: Date;
|
|
722
|
-
acceptedAt: Date | null;
|
|
723
721
|
status: TransactionalEmailStatus;
|
|
722
|
+
createdAt: Date;
|
|
724
723
|
recipientEmailNormalized: string;
|
|
725
724
|
attemptCount: number;
|
|
726
725
|
transport: string | null;
|
|
727
726
|
transportMessageId: string | null;
|
|
728
727
|
lastErrorCode: string | null;
|
|
729
728
|
nextAttemptAt: Date;
|
|
729
|
+
acceptedAt: Date | null;
|
|
730
730
|
}[];
|
|
731
731
|
total: number;
|
|
732
732
|
counts: Record<"all" | "sent" | "waiting" | "failed", number>;
|
|
@@ -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: "
|
|
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" | "
|
|
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>;
|
|
@@ -3943,16 +3943,16 @@ declare class DatabaseEntitlementSource implements EntitlementSource {
|
|
|
3943
3943
|
declare function createWorkspaceEntitlementRepository(database: Kysely<CloudDatabase>): {
|
|
3944
3944
|
get(workspaceId: string): Promise<{
|
|
3945
3945
|
values: unknown;
|
|
3946
|
-
updatedAt: Date;
|
|
3947
3946
|
workspaceId: string;
|
|
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
3953
|
values: unknown;
|
|
3954
|
-
updatedAt: Date;
|
|
3955
3954
|
workspaceId: string;
|
|
3955
|
+
updatedAt: Date;
|
|
3956
3956
|
source: string;
|
|
3957
3957
|
externalVersion: number | null;
|
|
3958
3958
|
revision: number;
|
|
@@ -7852,7 +7852,7 @@ declare function createCloudAdminRoutes(services: CloudAdminServices, trustedOri
|
|
|
7852
7852
|
input: {
|
|
7853
7853
|
query: {
|
|
7854
7854
|
search?: string | undefined;
|
|
7855
|
-
filter?: "pending" | "
|
|
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" | "
|
|
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: "
|
|
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: "
|
|
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,15 +8413,15 @@ declare function createCloudAdminRoutes(services: CloudAdminServices, trustedOri
|
|
|
8413
8413
|
regeneratable: boolean;
|
|
8414
8414
|
kind: TransactionalEmailKind;
|
|
8415
8415
|
id: string;
|
|
8416
|
-
createdAt: string;
|
|
8417
|
-
acceptedAt: string | null;
|
|
8418
8416
|
status: TransactionalEmailStatus;
|
|
8417
|
+
createdAt: string;
|
|
8419
8418
|
recipientEmailNormalized: string;
|
|
8420
8419
|
attemptCount: number;
|
|
8421
8420
|
transport: string | null;
|
|
8422
8421
|
transportMessageId: string | null;
|
|
8423
8422
|
lastErrorCode: string | null;
|
|
8424
8423
|
nextAttemptAt: string;
|
|
8424
|
+
acceptedAt: string | null;
|
|
8425
8425
|
}[];
|
|
8426
8426
|
total: number;
|
|
8427
8427
|
counts: {
|
|
@@ -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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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" | "
|
|
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" | "
|
|
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: "
|
|
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: "
|
|
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,15 +10775,15 @@ 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
|
-
acceptedAt: string | null;
|
|
10780
10778
|
status: TransactionalEmailStatus;
|
|
10779
|
+
createdAt: string;
|
|
10781
10780
|
recipientEmailNormalized: string;
|
|
10782
10781
|
attemptCount: number;
|
|
10783
10782
|
transport: string | null;
|
|
10784
10783
|
transportMessageId: string | null;
|
|
10785
10784
|
lastErrorCode: string | null;
|
|
10786
10785
|
nextAttemptAt: string;
|
|
10786
|
+
acceptedAt: string | null;
|
|
10787
10787
|
}[];
|
|
10788
10788
|
total: number;
|
|
10789
10789
|
counts: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pairdraw/cloud",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.2",
|
|
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.16.
|
|
26
|
+
"@pairdraw/scene-graph": "^0.16.2",
|
|
27
27
|
"@vue-email/components": "^0.0.21",
|
|
28
28
|
"@vue-email/render": "^0.0.9",
|
|
29
29
|
"better-auth": "1.7.7",
|
|
@@ -109,6 +109,18 @@
|
|
|
109
109
|
"#cloud-tests/*": "./tests/*.ts"
|
|
110
110
|
},
|
|
111
111
|
"description": "Self-hostable Pairdraw Cloud: accounts, workspaces, document revisions, sharing, collaboration, and the AI relay, for Node and Cloudflare Workers.",
|
|
112
|
+
"keywords": [
|
|
113
|
+
"pairdraw",
|
|
114
|
+
"design",
|
|
115
|
+
"collaboration",
|
|
116
|
+
"self-hosted",
|
|
117
|
+
"server"
|
|
118
|
+
],
|
|
119
|
+
"author": "Badryansah Bangsawan",
|
|
120
|
+
"homepage": "https://github.com/BadryansahBangsawan/pairdraw/tree/main/packages/cloud#readme",
|
|
121
|
+
"bugs": {
|
|
122
|
+
"url": "https://github.com/BadryansahBangsawan/pairdraw/issues"
|
|
123
|
+
},
|
|
112
124
|
"repository": {
|
|
113
125
|
"type": "git",
|
|
114
126
|
"url": "git+https://github.com/BadryansahBangsawan/pairdraw.git",
|
|
@@ -11,7 +11,7 @@ if (process.argv.includes('--help') || process.argv.includes('-h')) {
|
|
|
11
11
|
environment:
|
|
12
12
|
PAIRDRAW_AI_RELAY_CONFIG the relay TOML file (required)
|
|
13
13
|
PORT, HOST where to listen (default 8788 on 0.0.0.0)
|
|
14
|
-
plus the secrets the TOML names. See https://github.com/BadryansahBangsawan/pairdraw/blob/
|
|
14
|
+
plus the secrets the TOML names. See https://github.com/BadryansahBangsawan/pairdraw/blob/main/packages/docs/reference/self-hosting-cloud.md
|
|
15
15
|
`)
|
|
16
16
|
process.exit(0)
|
|
17
17
|
}
|
package/src/runtime/node/main.ts
CHANGED
|
@@ -13,7 +13,7 @@ if (process.argv.includes('--help') || process.argv.includes('-h')) {
|
|
|
13
13
|
PAIRDRAW_CLOUD_DEV_SITE_URL
|
|
14
14
|
a Vite dev server to serve them from instead (cloud:dev)
|
|
15
15
|
PORT, HOST where to listen (default 8787 on 0.0.0.0)
|
|
16
|
-
plus the secrets the TOML names. See https://github.com/BadryansahBangsawan/pairdraw/blob/
|
|
16
|
+
plus the secrets the TOML names. See https://github.com/BadryansahBangsawan/pairdraw/blob/main/packages/docs/reference/self-hosting-cloud.md
|
|
17
17
|
`)
|
|
18
18
|
process.exit(0)
|
|
19
19
|
}
|