@open-pencil/cloud 0.17.0-beta.4 → 0.17.0-beta.5
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 -1
- package/dist/bin/server.mjs +1 -1
- package/dist/bin/server.mjs.map +1 -1
- package/dist/bin/services.mjs +1 -1
- package/dist/bin/services.mjs.map +1 -1
- package/dist/client.d.ts +296 -27
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +649 -295
- package/dist/client.js.map +1 -1
- package/dist/contract.d.ts +2 -2
- package/dist/contract.js +2 -2
- package/dist/contract2.js +331 -21
- package/dist/contract2.js.map +1 -1
- package/dist/email.d.ts +1773 -32
- package/dist/email.d.ts.map +1 -1
- package/dist/email.js +3478 -288
- package/dist/email.js.map +1 -1
- package/dist/errors.d.ts +2 -0
- package/dist/errors.js +48 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +466 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index2.d.ts +35 -0
- package/dist/index2.d.ts.map +1 -0
- package/dist/listen.mjs +447 -290
- package/dist/listen.mjs.map +1 -1
- package/dist/runtime-cloudflare.d.ts +89 -0
- package/dist/runtime-cloudflare.d.ts.map +1 -0
- package/dist/runtime-cloudflare.js +15667 -0
- package/dist/runtime-cloudflare.js.map +1 -0
- package/dist/runtime-node.d.mts +2963 -294
- package/dist/runtime-node.d.mts.map +1 -1
- package/dist/server.d.ts +3473 -842
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +12187 -8244
- package/dist/server.js.map +1 -1
- package/dist/server.mjs +7739 -3548
- package/dist/server.mjs.map +1 -1
- package/dist/server2.mjs +5 -5
- package/dist/server2.mjs.map +1 -1
- package/package.json +22 -5
- package/src/admin/audit/service.ts +2 -2
- package/src/admin/documents/service.ts +76 -6
- package/src/admin/reports/service.ts +7 -1
- package/src/client/api.ts +23 -471
- package/src/client/auth/client.ts +22 -3
- package/src/client/billing.ts +80 -0
- package/src/client/community.ts +40 -0
- package/src/client/discovery.ts +35 -9
- package/src/client/documents.ts +160 -0
- package/src/client/index.ts +7 -0
- package/src/client/portal/account.ts +54 -2
- package/src/client/portal/request.ts +2 -0
- package/src/client/response.ts +21 -0
- package/src/client/schema.ts +8 -0
- package/src/client/services.ts +23 -18
- package/src/client/sharing.ts +262 -0
- package/src/client/versions.ts +104 -0
- package/src/contract/account.ts +50 -0
- package/src/contract/billing.ts +166 -0
- package/src/contract/collaboration.ts +5 -0
- package/src/contract/community.ts +60 -0
- package/src/contract/discovery.ts +63 -2
- package/src/contract/entitlements.ts +10 -0
- package/src/contract/index.ts +54 -5
- package/src/contract/links.ts +57 -4
- package/src/contract/locale.ts +27 -0
- package/src/contract/portal.ts +12 -1
- package/src/contract/routes.ts +10 -0
- package/src/contract/services.ts +18 -16
- package/src/email/i18n.ts +174 -0
- package/src/email/index.ts +13 -2
- package/src/email/locales/ar.json +141 -0
- package/src/email/locales/de.json +141 -0
- package/src/email/locales/es.json +141 -0
- package/src/email/locales/fr.json +141 -0
- package/src/email/locales/it.json +141 -0
- package/src/email/locales/ja.json +141 -0
- package/src/email/locales/pl.json +141 -0
- package/src/email/locales/pt-br.json +141 -0
- package/src/email/locales/ru.json +141 -0
- package/src/email/locales/zh-cn.json +141 -0
- package/src/email/messages.ts +200 -0
- package/src/email/render.ts +142 -276
- package/src/email/samples.ts +115 -0
- package/src/email/schema.ts +70 -6
- package/src/email/templates/BrandEmail.vue +54 -0
- package/src/email/templates/DocumentBlocked.vue +45 -0
- package/src/email/templates/DocumentInvitation.vue +24 -0
- package/src/email/templates/DocumentReport.vue +32 -0
- package/src/email/templates/DocumentReportDecided.vue +36 -0
- package/src/email/templates/DocumentReportReceived.vue +18 -0
- package/src/email/templates/DocumentRestored.vue +24 -0
- package/src/email/templates/EmailChangeRequested.vue +24 -0
- package/src/email/templates/EmailRoot.vue +19 -0
- package/src/email/templates/EmailText.vue +9 -0
- package/src/email/templates/EmailVerification.vue +38 -0
- package/src/email/templates/EnrollmentNotification.vue +24 -0
- package/src/email/templates/EnrollmentUpdate.vue +52 -0
- package/src/email/templates/NewSignIn.vue +37 -0
- package/src/email/templates/PasswordChanged.vue +22 -0
- package/src/email/templates/PasswordReset.vue +23 -0
- package/src/email/templates/StorageLimitReached.vue +28 -0
- package/src/email/templates/TwoStepChanged.vue +32 -0
- package/src/email/templates/WaitlistConfirmation.vue +29 -0
- package/src/email/templates/WorkspaceInvitation.vue +28 -0
- package/src/email/templates/brand.ts +9 -61
- package/src/email/templates/localization.ts +17 -0
- package/src/errors/index.ts +6 -0
- package/src/global.d.ts +7 -0
- package/src/runtime/cloudflare/relay/index.ts +7 -1
- package/src/runtime/cloudflare/tsconfig.json +2 -1
- package/src/runtime/cloudflare/worker.ts +8 -1
- package/src/runtime/node/cleanup.ts +5 -1
- package/src/runtime/node/email/transport.ts +13 -10
- package/src/runtime/node/main.ts +1 -1
- package/src/runtime/node/server.ts +12 -2
- package/src/runtime/node/services/main.ts +1 -1
- package/src/runtime/posthog/errors.ts +2 -1
- package/src/runtime/s3/objects.ts +17 -0
- package/src/runtime/site/community.ts +101 -0
- package/src/runtime/site/server.ts +17 -1
- package/src/server/account/deletion.ts +2 -0
- package/src/server/account/routes.ts +271 -240
- package/src/server/account/tokens.ts +57 -0
- package/src/server/api/router.ts +23 -0
- package/src/server/app/checks.ts +84 -0
- package/src/server/app/editors.ts +20 -0
- package/src/server/app/index.ts +128 -0
- package/src/server/app/indexing.ts +40 -0
- package/src/server/app/limiters.ts +53 -0
- package/src/server/app/routes.ts +114 -0
- package/src/server/app/services.ts +185 -0
- package/src/server/auth/access-tokens.ts +62 -0
- package/src/server/auth/adapter.ts +21 -1
- package/src/server/auth/email.ts +4 -1
- package/src/server/auth/enrollment.ts +116 -0
- package/src/server/auth/factory.ts +88 -131
- package/src/server/auth/logger.ts +23 -0
- package/src/server/auth/mfa-assurance.ts +51 -0
- package/src/server/auth/passwords.ts +43 -0
- package/src/server/auth/session.ts +2 -0
- package/src/server/billing/index.ts +6 -0
- package/src/server/billing/routes.ts +27 -0
- package/src/server/billing/tokens.ts +37 -0
- package/src/server/cleanup/configured.ts +16 -3
- package/src/server/cleanup/worker.ts +10 -1
- package/src/server/collaboration/relay/hub.ts +25 -142
- package/src/server/collaboration/relay/room.ts +154 -0
- package/src/server/collaboration/service.ts +21 -2
- package/src/server/community/index.ts +2 -0
- package/src/server/community/routes.ts +93 -0
- package/src/server/community/service.ts +134 -0
- package/src/server/config/deployment.ts +17 -5
- package/src/server/config/index.ts +1 -1
- package/src/server/config/public.ts +7 -1
- package/src/server/config/schema.ts +40 -292
- package/src/server/config/toml/schema.ts +307 -0
- package/src/server/db/index.ts +1 -0
- package/src/server/db/migrate.ts +13 -1
- package/src/server/db/migrations/009_access_tokens.ts +47 -0
- package/src/server/db/migrations/010_storage_limit_notices.ts +50 -0
- package/src/server/db/migrations/011_account_ids.ts +30 -0
- package/src/server/db/migrations/012_email_locales.ts +34 -0
- package/src/server/db/migrations/013_document_block_emails.ts +40 -0
- package/src/server/db/migrations/014_report_replies.ts +28 -0
- package/src/server/db/migrations/schema.ts +26 -1
- package/src/server/db/tables.ts +30 -1
- package/src/server/db/users.ts +22 -0
- package/src/server/documents/index.ts +1 -1
- package/src/server/documents/limits.ts +7 -1
- package/src/server/documents/service.ts +12 -402
- package/src/server/documents/uploads.ts +450 -0
- package/src/server/documents/versions/service.ts +81 -24
- package/src/server/email/invitations.ts +1 -0
- package/src/server/email/service.ts +31 -4
- package/src/server/email/types.ts +12 -0
- package/src/server/errors/index.ts +1 -9
- package/src/server/index.ts +12 -5
- package/src/server/invitations/types.ts +5 -1
- package/src/server/objects/types.ts +5 -0
- package/src/server/policy/configured.ts +9 -3
- package/src/server/policy/database.ts +13 -2
- package/src/server/policy/policy.ts +39 -12
- package/src/server/policy/service.ts +71 -52
- package/src/server/policy/storage.ts +33 -0
- package/src/server/quota/index.ts +6 -0
- package/src/server/quota/notices.ts +121 -0
- package/src/server/quota/storage.ts +5 -0
- package/src/server/rate-limit/middleware.ts +4 -0
- package/src/server/reports/index.ts +1 -0
- package/src/server/reports/replies.ts +55 -0
- package/src/server/reports/routes.ts +3 -1
- package/src/server/reports/service.ts +24 -2
- package/src/server/sharing/capabilities/service.ts +2 -3
- package/src/server/sharing/invitations/service.ts +14 -4
- package/src/server/validation.ts +3 -0
- package/src/server/workspaces/members.ts +7 -19
- package/src/services/app.ts +1 -3
- package/src/services/config.ts +1 -0
- package/src/services/usage.ts +6 -14
- package/src/email/templates/document-invitation.ts +0 -35
- package/src/email/templates/enrollment.ts +0 -27
- package/src/email/templates/layout.ts +0 -18
- package/src/server/app.ts +0 -453
- /package/src/{server/errors → errors}/posthog.ts +0 -0
package/README.md
CHANGED
|
@@ -9,6 +9,7 @@ local-first and works without it.
|
|
|
9
9
|
- `@open-pencil/cloud/contract` — Valibot network contracts and public types.
|
|
10
10
|
- `@open-pencil/cloud/client` — discovery, authentication, device authorization, and the typed client.
|
|
11
11
|
- `@open-pencil/cloud/email` — Vue Email rendering.
|
|
12
|
+
- `@open-pencil/cloud/errors` — the PostHog error reporter Cloud uses, for services beside it; depends only on `posthog-node`.
|
|
12
13
|
- `@open-pencil/cloud/server` — runtime-neutral Hono routes and services with injected dependencies.
|
|
13
14
|
- `@open-pencil/cloud/runtime/node` — PostgreSQL, S3, SMTP, the HTTP listener, and workers.
|
|
14
15
|
|
|
@@ -25,7 +26,7 @@ bun --filter @open-pencil/cloud build:standalone && bun --filter @open-pencil/cl
|
|
|
25
26
|
```
|
|
26
27
|
|
|
27
28
|
The server migrates the database before it accepts requests. The
|
|
28
|
-
[self-hosting guide](https://openpencil.dev/
|
|
29
|
+
[self-hosting guide](https://openpencil.dev/cloud/self-hosting/) covers building with the
|
|
29
30
|
portal, configuration, the editor address, operator commands, and upgrades;
|
|
30
31
|
[`deploy/README.md`](./deploy/README.md) covers local development and end-to-end tests, and
|
|
31
32
|
[`deploy/security.md`](./deploy/security.md) covers hardening. The design is described in
|
package/dist/bin/server.mjs
CHANGED
|
@@ -12,7 +12,7 @@ if (process.argv.includes("--help") || process.argv.includes("-h")) {
|
|
|
12
12
|
OPENPENCIL_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://openpencil.dev/
|
|
15
|
+
plus the secrets the TOML names. See https://openpencil.dev/cloud/self-hosting/
|
|
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: openpencil-cloud\n\n Runs OpenPencil Cloud. Settings come from the environment:\n OPENPENCIL_CLOUD_CONFIG the deployment TOML file (required)\n OPENPENCIL_CLOUD_SITE_DIR the editor and portal build to serve\n OPENPENCIL_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://openpencil.dev/
|
|
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: openpencil-cloud\n\n Runs OpenPencil Cloud. Settings come from the environment:\n OPENPENCIL_CLOUD_CONFIG the deployment TOML file (required)\n OPENPENCIL_CLOUD_SITE_DIR the editor and portal build to serve\n OPENPENCIL_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://openpencil.dev/cloud/self-hosting/\n `)\n process.exit(0)\n}\n\nconst cloud = await startNodeCloudServer()\nconsole.log(`OpenPencil 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,iCAAiC,MAAM,KAAK;AAExD,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/bin/services.mjs
CHANGED
|
@@ -10,7 +10,7 @@ if (process.argv.includes("--help") || process.argv.includes("-h")) {
|
|
|
10
10
|
environment:
|
|
11
11
|
OPENPENCIL_SERVICES_CONFIG the services 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://openpencil.dev/
|
|
13
|
+
plus the secrets the TOML names. See https://openpencil.dev/cloud/self-hosting/
|
|
14
14
|
`);
|
|
15
15
|
process.exit(0);
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"services.mjs","names":[],"sources":["../../src/runtime/node/services/main.ts"],"sourcesContent":["#!/usr/bin/env node\nimport dedent from 'dedent'\n\nimport { startNodeServices } from './server'\n\nif (process.argv.includes('--help') || process.argv.includes('-h')) {\n console.log(dedent`\n Usage: openpencil-services\n\n Runs the reference AI service for a self-hosted OpenPencil Cloud. Settings come from the\n environment:\n OPENPENCIL_SERVICES_CONFIG the services 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://openpencil.dev/
|
|
1
|
+
{"version":3,"file":"services.mjs","names":[],"sources":["../../src/runtime/node/services/main.ts"],"sourcesContent":["#!/usr/bin/env node\nimport dedent from 'dedent'\n\nimport { startNodeServices } from './server'\n\nif (process.argv.includes('--help') || process.argv.includes('-h')) {\n console.log(dedent`\n Usage: openpencil-services\n\n Runs the reference AI service for a self-hosted OpenPencil Cloud. Settings come from the\n environment:\n OPENPENCIL_SERVICES_CONFIG the services 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://openpencil.dev/cloud/self-hosting/\n `)\n process.exit(0)\n}\n\nconst relay = await startNodeServices()\nconsole.log(`OpenPencil services 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('[Services] 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,kBAAkB;AACtC,QAAQ,IAAI,oCAAoC,MAAM,KAAK;AAE3D,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/client.d.ts
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
+
import { hc } from "hono/client";
|
|
2
3
|
import { createAuthClient } from "better-auth/client";
|
|
3
4
|
//#region src/contract/account.d.ts
|
|
4
5
|
declare const accountSecurityErrorCodeSchema: v.PicklistSchema<["current_password_invalid", "password_too_short", "password_too_long", "last_authentication_method", "session_not_fresh", "authentication_method_failed", "email_unchanged", "email_change_unavailable", "current_session", "picture_invalid", "account_sole_admin", "last_admin_required", "terms_changed"], undefined>;
|
|
6
|
+
declare const cloudAccessTokenCreateSchema: v.ObjectSchema<{
|
|
7
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>]>;
|
|
8
|
+
readonly expiresInDays: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 365, undefined>]>;
|
|
9
|
+
}, undefined>;
|
|
5
10
|
type AccountSecurityErrorCode = v.InferOutput<typeof accountSecurityErrorCodeSchema>;
|
|
11
|
+
type CloudAccessTokenCreate = v.InferOutput<typeof cloudAccessTokenCreateSchema>;
|
|
6
12
|
//#endregion
|
|
7
13
|
//#region src/contract/services.d.ts
|
|
8
14
|
declare const servicesTokenSchema: v.ObjectSchema<{
|
|
@@ -64,6 +70,55 @@ type SearchResponse = v.InferOutput<typeof searchResponseSchema>;
|
|
|
64
70
|
declare const serviceErrorCodeSchema: v.PicklistSchema<["invalid_request", "unauthorized", "insufficient_credits", "model_not_allowed", "capability_unavailable", "rate_limited"], undefined>;
|
|
65
71
|
type ServiceErrorCode = v.InferOutput<typeof serviceErrorCodeSchema>;
|
|
66
72
|
//#endregion
|
|
73
|
+
//#region src/contract/billing.d.ts
|
|
74
|
+
declare const billingTokenSchema: v.ObjectSchema<{
|
|
75
|
+
readonly token: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
76
|
+
readonly expiresAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
77
|
+
}, undefined>;
|
|
78
|
+
type BillingToken = v.InferOutput<typeof billingTokenSchema>;
|
|
79
|
+
/** What the service sells; an account without a plan has its deployment's free entitlements. */
|
|
80
|
+
declare const billingCatalogSchema: v.ObjectSchema<{
|
|
81
|
+
readonly plans: v.ArraySchema<v.ObjectSchema<{
|
|
82
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
83
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
84
|
+
readonly monthlyPriceCents: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
85
|
+
readonly storageBytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
86
|
+
readonly monthlyCredits: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
87
|
+
}, undefined>, undefined>;
|
|
88
|
+
readonly creditPacks: v.ArraySchema<v.ObjectSchema<{
|
|
89
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
90
|
+
readonly credits: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
91
|
+
readonly priceCents: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
92
|
+
/** How long the credits last from purchase. */
|
|
93
|
+
readonly validDays: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
94
|
+
}, undefined>, undefined>;
|
|
95
|
+
}, undefined>;
|
|
96
|
+
type BillingCatalog = v.InferOutput<typeof billingCatalogSchema>;
|
|
97
|
+
/**
|
|
98
|
+
* The account's subscription as the payment provider holds it, or `null` without one. A
|
|
99
|
+
* `past_due` plan keeps its entitlements while payment is retried.
|
|
100
|
+
*/
|
|
101
|
+
declare const billingAccountSchema: v.ObjectSchema<{
|
|
102
|
+
readonly subscription: v.NullableSchema<v.ObjectSchema<{
|
|
103
|
+
readonly planId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
104
|
+
readonly status: v.PicklistSchema<["active", "past_due"], undefined>;
|
|
105
|
+
/** When the current period ends: the next charge, or the end of a cancelled plan. */
|
|
106
|
+
readonly currentPeriodEnd: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
107
|
+
/** Whether the plan ends at `currentPeriodEnd` instead of renewing. */
|
|
108
|
+
readonly cancelsAtPeriodEnd: v.BooleanSchema<undefined>;
|
|
109
|
+
}, undefined>, undefined>;
|
|
110
|
+
}, undefined>;
|
|
111
|
+
type BillingAccount = v.InferOutput<typeof billingAccountSchema>;
|
|
112
|
+
/** What to buy: a plan to subscribe to, or a credit pack. */
|
|
113
|
+
declare const checkoutRequestSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
114
|
+
readonly planId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
115
|
+
}, undefined>, v.ObjectSchema<{
|
|
116
|
+
readonly creditPackId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
117
|
+
}, undefined>], undefined>;
|
|
118
|
+
type CheckoutRequest = v.InferOutput<typeof checkoutRequestSchema>;
|
|
119
|
+
declare const billingErrorCodeSchema: v.PicklistSchema<["invalid_request", "unauthorized", "not_allowed", "provider_unavailable"], undefined>;
|
|
120
|
+
type BillingErrorCode = v.InferOutput<typeof billingErrorCodeSchema>;
|
|
121
|
+
//#endregion
|
|
67
122
|
//#region src/contract/admin/index.d.ts
|
|
68
123
|
declare const adminErrorCodeSchema: v.PicklistSchema<["bad_request", "unauthorized", "forbidden", "not_found", "rate_limited", "invalid_enrollment_transition", "last_admin_required", "self_admin_action_forbidden", "email_regeneration_unavailable", "mfa_required", "document_not_restorable", "workspace_gone"], undefined>;
|
|
69
124
|
declare const enrollmentStatusSchema: v.PicklistSchema<["pending", "approved", "rejected", "revoked"], undefined>;
|
|
@@ -104,6 +159,11 @@ declare const collaborationTicketSchema: v.ObjectSchema<{
|
|
|
104
159
|
readonly name: v.StringSchema<undefined>;
|
|
105
160
|
}, undefined>], undefined>;
|
|
106
161
|
readonly permission: v.PicklistSchema<["view", "edit"], undefined>;
|
|
162
|
+
/**
|
|
163
|
+
* Why a peer whose access would let them edit may only view: `storage-limit` when the document's
|
|
164
|
+
* owner holds their whole storage allowance, until they free space or their plan grows.
|
|
165
|
+
*/
|
|
166
|
+
readonly readOnly: v.OptionalSchema<v.PicklistSchema<["storage-limit"], undefined>, undefined>;
|
|
107
167
|
readonly roomEpoch: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
108
168
|
readonly expiresAt: v.StringSchema<undefined>;
|
|
109
169
|
readonly serverEnforcedWrites: v.BooleanSchema<undefined>;
|
|
@@ -138,6 +198,7 @@ declare const workspaceEntitlementsSchema: v.ObjectSchema<{
|
|
|
138
198
|
}, undefined>;
|
|
139
199
|
}, undefined>;
|
|
140
200
|
type WorkspaceEntitlements = v.InferOutput<typeof workspaceEntitlementsSchema>;
|
|
201
|
+
type AccountEntitlements = WorkspaceEntitlements;
|
|
141
202
|
//#endregion
|
|
142
203
|
//#region src/contract/discovery.d.ts
|
|
143
204
|
declare const cloudDiscoverySchema: v.ObjectSchema<{
|
|
@@ -175,6 +236,11 @@ declare const cloudDiscoverySchema: v.ObjectSchema<{
|
|
|
175
236
|
readonly listing: v.OptionalSchema<v.ObjectSchema<{
|
|
176
237
|
readonly minimumEditorVersion: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
177
238
|
}, undefined>, undefined>;
|
|
239
|
+
/**
|
|
240
|
+
* The oldest editor version the server works with. Older editors ask to be updated instead of
|
|
241
|
+
* connecting, and the server refuses their requests.
|
|
242
|
+
*/
|
|
243
|
+
readonly minimumEditorVersion: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
178
244
|
/** The services editors reach with Cloud-signed tokens; absent when the deployment has none. */
|
|
179
245
|
readonly services: v.OptionalSchema<v.ObjectSchema<{
|
|
180
246
|
readonly endpoint: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
|
|
@@ -182,7 +248,12 @@ declare const cloudDiscoverySchema: v.ObjectSchema<{
|
|
|
182
248
|
}, undefined>, undefined>;
|
|
183
249
|
/** Where people manage their plan and buy credits; absent when the deployment does not bill. */
|
|
184
250
|
readonly billing: v.OptionalSchema<v.ObjectSchema<{
|
|
185
|
-
readonly
|
|
251
|
+
readonly endpoint: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
|
|
252
|
+
readonly contractVersion: v.LiteralSchema<"1", undefined>;
|
|
253
|
+
}, undefined>, undefined>;
|
|
254
|
+
/** The community gallery; absent when the deployment has none. */
|
|
255
|
+
readonly community: v.OptionalSchema<v.ObjectSchema<{
|
|
256
|
+
readonly workspaceId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
|
|
186
257
|
}, undefined>, undefined>;
|
|
187
258
|
readonly legal: v.OptionalSchema<v.ObjectSchema<{
|
|
188
259
|
readonly termsURL: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
|
|
@@ -192,6 +263,11 @@ declare const cloudDiscoverySchema: v.ObjectSchema<{
|
|
|
192
263
|
readonly abuseEmail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>;
|
|
193
264
|
readonly minimumAge: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
194
265
|
}, undefined>, undefined>;
|
|
266
|
+
readonly branding: v.OptionalSchema<v.ObjectSchema<{
|
|
267
|
+
readonly name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>;
|
|
268
|
+
readonly logoURL: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>, v.CheckAction<string, undefined>]>, undefined>;
|
|
269
|
+
readonly helpURL: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>, v.CheckAction<string, undefined>]>, undefined>;
|
|
270
|
+
}, undefined>, undefined>;
|
|
195
271
|
}, undefined>;
|
|
196
272
|
type CloudDiscovery = v.InferOutput<typeof cloudDiscoverySchema>;
|
|
197
273
|
//#endregion
|
|
@@ -760,6 +836,85 @@ declare const documentVersionDownloadSchema: v.ObjectSchema<{
|
|
|
760
836
|
}, undefined>;
|
|
761
837
|
type DocumentVersionDownload = v.InferOutput<typeof documentVersionDownloadSchema>;
|
|
762
838
|
//#endregion
|
|
839
|
+
//#region src/contract/community.d.ts
|
|
840
|
+
/** The community workspace's documents, most recently changed first. */
|
|
841
|
+
declare const communityDocumentsSchema: v.ObjectSchema<{
|
|
842
|
+
readonly documents: v.ArraySchema<v.ObjectSchema<{
|
|
843
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
|
|
844
|
+
readonly name: v.StringSchema<undefined>;
|
|
845
|
+
readonly kind: v.PicklistSchema<["design", "board"], undefined>;
|
|
846
|
+
readonly updatedAt: v.StringSchema<undefined>;
|
|
847
|
+
readonly revisionId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
|
|
848
|
+
readonly thumbnailPath: v.StringSchema<undefined>;
|
|
849
|
+
readonly versions: v.ArraySchema<v.ObjectSchema<{
|
|
850
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
|
|
851
|
+
readonly name: v.StringSchema<undefined>;
|
|
852
|
+
readonly description: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
853
|
+
readonly createdAt: v.StringSchema<undefined>;
|
|
854
|
+
/** Whether the document holds this version now, with nothing changed since it was named. */
|
|
855
|
+
readonly current: v.BooleanSchema<undefined>;
|
|
856
|
+
}, undefined>, undefined>;
|
|
857
|
+
}, undefined>, undefined>;
|
|
858
|
+
}, undefined>;
|
|
859
|
+
type CommunityDocuments = v.InferOutput<typeof communityDocumentsSchema>;
|
|
860
|
+
/** A community document, or one of its named versions, with where to download it. */
|
|
861
|
+
declare const communityDownloadSchema: v.ObjectSchema<{
|
|
862
|
+
readonly document: v.ObjectSchema<{
|
|
863
|
+
readonly document: v.ObjectSchema<{
|
|
864
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
|
|
865
|
+
readonly workspaceId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
|
|
866
|
+
readonly name: v.StringSchema<undefined>;
|
|
867
|
+
readonly kind: v.OptionalSchema<v.PicklistSchema<["design", "board"], undefined>, "design">;
|
|
868
|
+
readonly currentRevisionId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>;
|
|
869
|
+
readonly version: v.NumberSchema<undefined>;
|
|
870
|
+
readonly createdAt: v.StringSchema<undefined>;
|
|
871
|
+
readonly updatedAt: v.StringSchema<undefined>;
|
|
872
|
+
}, undefined>;
|
|
873
|
+
readonly revisionId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
|
|
874
|
+
readonly byteSize: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
875
|
+
readonly checksum: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
876
|
+
readonly contentType: v.StringSchema<undefined>;
|
|
877
|
+
readonly download: v.ObjectSchema<{
|
|
878
|
+
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
|
|
879
|
+
readonly method: v.LiteralSchema<"GET", undefined>;
|
|
880
|
+
readonly headers: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
|
|
881
|
+
readonly expiresAt: v.StringSchema<undefined>;
|
|
882
|
+
}, undefined>;
|
|
883
|
+
readonly images: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
884
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
885
|
+
readonly checksum: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
886
|
+
readonly byteSize: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
887
|
+
readonly download: v.ObjectSchema<{
|
|
888
|
+
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
|
|
889
|
+
readonly method: v.LiteralSchema<"GET", undefined>;
|
|
890
|
+
readonly headers: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
|
|
891
|
+
readonly expiresAt: v.StringSchema<undefined>;
|
|
892
|
+
}, undefined>;
|
|
893
|
+
}, undefined>, undefined>, v.MaxLengthAction<{
|
|
894
|
+
name: string;
|
|
895
|
+
checksum: string;
|
|
896
|
+
byteSize: number;
|
|
897
|
+
download: {
|
|
898
|
+
url: string;
|
|
899
|
+
method: "GET";
|
|
900
|
+
headers: {
|
|
901
|
+
[x: string]: string;
|
|
902
|
+
};
|
|
903
|
+
expiresAt: string;
|
|
904
|
+
};
|
|
905
|
+
}[], 10000, undefined>]>;
|
|
906
|
+
}, undefined>;
|
|
907
|
+
readonly version: v.NullableSchema<v.ObjectSchema<{
|
|
908
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
|
|
909
|
+
readonly name: v.StringSchema<undefined>;
|
|
910
|
+
readonly description: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
911
|
+
readonly createdAt: v.StringSchema<undefined>;
|
|
912
|
+
/** Whether the document holds this version now, with nothing changed since it was named. */
|
|
913
|
+
readonly current: v.BooleanSchema<undefined>;
|
|
914
|
+
}, undefined>, undefined>;
|
|
915
|
+
}, undefined>;
|
|
916
|
+
type CommunityDownload = v.InferOutput<typeof communityDownloadSchema>;
|
|
917
|
+
//#endregion
|
|
763
918
|
//#region src/contract/reports.d.ts
|
|
764
919
|
/**
|
|
765
920
|
* A report about a document someone opened from a share link: the link's secret proves they can
|
|
@@ -780,12 +935,15 @@ type CloudFetch = (input: RequestInfo | URL, init?: RequestInit) => Promise<Resp
|
|
|
780
935
|
type DiscoverCloudOptions = {
|
|
781
936
|
fetch?: CloudFetch;
|
|
782
937
|
signal?: AbortSignal;
|
|
938
|
+
/** The editor's own version, checked against the server's minimum. */
|
|
939
|
+
editorVersion?: string;
|
|
783
940
|
};
|
|
784
941
|
/**
|
|
785
942
|
* Why a server could not be used: the address is not a web address, nothing answered, something
|
|
786
|
-
* answered but not as OpenPencil Cloud,
|
|
943
|
+
* answered but not as OpenPencil Cloud, the server is older than this editor supports, or this
|
|
944
|
+
* editor is older than the server supports.
|
|
787
945
|
*/
|
|
788
|
-
type CloudDiscoveryFailure = 'invalid-address' | 'unreachable' | 'not-cloud' | 'outdated';
|
|
946
|
+
type CloudDiscoveryFailure = 'invalid-address' | 'unreachable' | 'not-cloud' | 'server-outdated' | 'editor-outdated';
|
|
789
947
|
declare class CloudClientError extends Error {
|
|
790
948
|
readonly cause?: unknown | undefined;
|
|
791
949
|
readonly reason: CloudDiscoveryFailure;
|
|
@@ -806,6 +964,12 @@ declare class CloudServiceError extends Error {
|
|
|
806
964
|
readonly name = "CloudServiceError";
|
|
807
965
|
constructor(status: number, code?: ServiceErrorCode | undefined);
|
|
808
966
|
}
|
|
967
|
+
/** A service endpoint a token would reach in the clear, which no request is sent to. */
|
|
968
|
+
declare class CloudServiceInsecureEndpointError extends Error {
|
|
969
|
+
readonly url: string;
|
|
970
|
+
readonly name = "CloudServiceInsecureEndpointError";
|
|
971
|
+
constructor(url: string);
|
|
972
|
+
}
|
|
809
973
|
/**
|
|
810
974
|
* Sends each request with a current token. A token the service refuses, for instance one signed
|
|
811
975
|
* by a key Cloud has since replaced, is dropped and a request that can be replayed is sent once
|
|
@@ -830,6 +994,35 @@ declare function createCloudServicesClient(options: CloudServicesClientOptions):
|
|
|
830
994
|
};
|
|
831
995
|
type CloudServicesClient = ReturnType<typeof createCloudServicesClient>;
|
|
832
996
|
//#endregion
|
|
997
|
+
//#region src/client/billing.d.ts
|
|
998
|
+
declare class CloudBillingError extends Error {
|
|
999
|
+
readonly status: number;
|
|
1000
|
+
readonly code?: BillingErrorCode | undefined;
|
|
1001
|
+
readonly name = "CloudBillingError";
|
|
1002
|
+
constructor(status: number, code?: BillingErrorCode | undefined);
|
|
1003
|
+
}
|
|
1004
|
+
type CloudBillingClientOptions = {
|
|
1005
|
+
/** The billing service's endpoint, as Cloud's discovery names it. */
|
|
1006
|
+
endpoint: string;
|
|
1007
|
+
/** Billing tokens for the signed-in person, from `requestBillingToken`. */
|
|
1008
|
+
tokens: CloudServicesTokenSource;
|
|
1009
|
+
fetch: CloudFetch;
|
|
1010
|
+
};
|
|
1011
|
+
/**
|
|
1012
|
+
* The billing a Cloud advertises: what it sells, the account's subscription, and where to buy or
|
|
1013
|
+
* manage it. Checkout and the portal answer with the payment provider's page to open, so a token
|
|
1014
|
+
* never travels in a URL.
|
|
1015
|
+
*/
|
|
1016
|
+
declare function createCloudBillingClient(options: CloudBillingClientOptions): {
|
|
1017
|
+
catalog(): Promise<BillingCatalog>;
|
|
1018
|
+
account(): Promise<BillingAccount>;
|
|
1019
|
+
/** The checkout page that buys `request` for the account. */
|
|
1020
|
+
checkout(request: CheckoutRequest): Promise<string>;
|
|
1021
|
+
/** The page where the account cancels, changes its card, and reads its invoices. */
|
|
1022
|
+
portal(): Promise<string>;
|
|
1023
|
+
};
|
|
1024
|
+
type CloudBillingClient = ReturnType<typeof createCloudBillingClient>;
|
|
1025
|
+
//#endregion
|
|
833
1026
|
//#region src/client/auth/failure.d.ts
|
|
834
1027
|
/** Why a sign-in step did not go through, in terms a page or dialog can explain. */
|
|
835
1028
|
type CloudAuthFailure = 'invalid-credentials' | 'email-not-verified' | 'password-too-short' | 'password-too-long' | 'invalid-link' | 'invalid-code' | 'passkey-cancelled' | 'passkey-exists' | 'passkey-unavailable' | 'session-not-fresh' | 'rate-limited' | 'unavailable';
|
|
@@ -860,7 +1053,23 @@ type DeviceActionResult = Promise<{
|
|
|
860
1053
|
error_description: string;
|
|
861
1054
|
};
|
|
862
1055
|
}>;
|
|
863
|
-
type CloudAuthClient = Pick<ReturnType<typeof createAuthClient>, 'getSession' | 'signIn' | 'signOut' | '
|
|
1056
|
+
type CloudAuthClient = Pick<ReturnType<typeof createAuthClient>, 'getSession' | 'signIn' | 'signOut' | 'sendVerificationEmail' | 'requestPasswordReset' | 'resetPassword'> & {
|
|
1057
|
+
signUp: {
|
|
1058
|
+
/** Also takes the language the server writes to the account in, a field Cloud adds. */
|
|
1059
|
+
email(input: {
|
|
1060
|
+
name: string;
|
|
1061
|
+
email: string;
|
|
1062
|
+
password: string;
|
|
1063
|
+
locale: string;
|
|
1064
|
+
callbackURL?: string;
|
|
1065
|
+
}): Promise<{
|
|
1066
|
+
data: unknown;
|
|
1067
|
+
error: {
|
|
1068
|
+
code?: string;
|
|
1069
|
+
status: number;
|
|
1070
|
+
} | null;
|
|
1071
|
+
}>;
|
|
1072
|
+
};
|
|
864
1073
|
signIn: ReturnType<typeof createAuthClient>['signIn'] & {
|
|
865
1074
|
passkey(): Promise<{
|
|
866
1075
|
data: unknown;
|
|
@@ -958,12 +1167,16 @@ declare function signInToCloudWithEmail(discovery: CloudDiscovery, input: {
|
|
|
958
1167
|
email: string;
|
|
959
1168
|
password: string;
|
|
960
1169
|
}, options?: CloudEmailAuthOptions): Promise<CloudAuthResult<CloudEmailSignIn>>;
|
|
961
|
-
/**
|
|
1170
|
+
/**
|
|
1171
|
+
* Creates an account; the server emails a link that opens `verifiedURL` once it is confirmed,
|
|
1172
|
+
* written in `locale`, the app's language.
|
|
1173
|
+
*/
|
|
962
1174
|
declare function signUpToCloudWithEmail(discovery: CloudDiscovery, input: {
|
|
963
1175
|
name: string;
|
|
964
1176
|
email: string;
|
|
965
1177
|
password: string;
|
|
966
1178
|
verifiedURL: string;
|
|
1179
|
+
locale: string;
|
|
967
1180
|
}, options?: CloudEmailAuthOptions): Promise<CloudAuthResult>;
|
|
968
1181
|
declare function resendCloudVerification(discovery: CloudDiscovery, input: {
|
|
969
1182
|
email: string;
|
|
@@ -991,7 +1204,7 @@ declare class CloudAPIError extends Error {
|
|
|
991
1204
|
constructor(message: string, status: number, code?: string | undefined);
|
|
992
1205
|
}
|
|
993
1206
|
//#endregion
|
|
994
|
-
//#region src/client/
|
|
1207
|
+
//#region src/client/documents.d.ts
|
|
995
1208
|
declare const uploadResponseSchema: v.ObjectSchema<{
|
|
996
1209
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
|
|
997
1210
|
readonly upload: v.VariantSchema<"kind", [v.ObjectSchema<{
|
|
@@ -1013,26 +1226,18 @@ declare const uploadResponseSchema: v.ObjectSchema<{
|
|
|
1013
1226
|
readonly expiresAt: v.StringSchema<undefined>;
|
|
1014
1227
|
}, undefined>], undefined>;
|
|
1015
1228
|
}, undefined>;
|
|
1229
|
+
type CloudUpload = v.InferOutput<typeof uploadResponseSchema>;
|
|
1230
|
+
//#endregion
|
|
1231
|
+
//#region src/client/api.d.ts
|
|
1016
1232
|
type CloudRequestOptions = {
|
|
1017
1233
|
fetch?: CloudFetch;
|
|
1018
1234
|
signal?: AbortSignal;
|
|
1019
1235
|
accessToken?: string;
|
|
1020
1236
|
onDiagnostic?: CloudClientDiagnostic;
|
|
1021
1237
|
};
|
|
1022
|
-
type CloudUpload = v.InferOutput<typeof uploadResponseSchema>;
|
|
1023
1238
|
declare function createCloudAPIClient(baseURL: string, options?: CloudRequestOptions): {
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
listDocuments(workspaceId: string): Promise<DocumentSummary[]>;
|
|
1027
|
-
createDocument(workspaceId: string, input: CreateDocumentRequest): Promise<DocumentSummary>;
|
|
1028
|
-
/** Documents in Trash the person may restore, across their workspaces, newest first. */
|
|
1029
|
-
listTrash(): Promise<TrashedDocument[]>;
|
|
1030
|
-
restoreDocument(documentId: string): Promise<void>;
|
|
1031
|
-
/** Deletes a document in Trash for good. */
|
|
1032
|
-
purgeDocument(documentId: string): Promise<void>;
|
|
1033
|
-
deleteDocument(documentId: string): Promise<void>;
|
|
1034
|
-
getDocument(documentId: string): Promise<DocumentDownload>;
|
|
1035
|
-
getDocumentAccess(documentId: string): Promise<DocumentAccess>;
|
|
1239
|
+
listCommunityDocuments(): Promise<CommunityDocuments>;
|
|
1240
|
+
getCommunityDocument(documentId: string, versionId?: string | null): Promise<CommunityDownload>;
|
|
1036
1241
|
listDocumentShares(documentId: string): Promise<DocumentShare[]>;
|
|
1037
1242
|
createDocumentShare(documentId: string, input: CreateDocumentShareInput): Promise<{
|
|
1038
1243
|
share: {
|
|
@@ -1088,10 +1293,8 @@ declare function createCloudAPIClient(baseURL: string, options?: CloudRequestOpt
|
|
|
1088
1293
|
createInvitationContinuation(input: CreateInvitationContinuationInput): Promise<InvitationContinuation>;
|
|
1089
1294
|
consumeInvitationContinuation(id: string): Promise<CreateInvitationContinuationInput>;
|
|
1090
1295
|
previewInvitation(invitationId: string, input: AcceptDocumentInvitationInput): Promise<InvitationPreview>;
|
|
1091
|
-
/** Accepts a document or workspace invitation, and says which it was. */
|
|
1092
1296
|
acceptInvitation(invitationId: string, input: AcceptDocumentInvitationInput): Promise<AcceptedInvitation>;
|
|
1093
1297
|
revokeDocumentInvitation(documentId: string, invitationId: string): Promise<void>;
|
|
1094
|
-
/** Reports the document a share link opens to the server's administrators. */
|
|
1095
1298
|
fileDocumentReport(shareId: string, input: FileDocumentReportInput): Promise<void>;
|
|
1096
1299
|
resolveDocumentShare(shareId: string, input: ResolveDocumentShareInput): Promise<{
|
|
1097
1300
|
documentId: string;
|
|
@@ -1165,10 +1368,6 @@ declare function createCloudAPIClient(baseURL: string, options?: CloudRequestOpt
|
|
|
1165
1368
|
};
|
|
1166
1369
|
}>;
|
|
1167
1370
|
getSharedCollaborationTicket(shareId: string, input: ResolveDocumentShareInput): Promise<CollaborationTicket>;
|
|
1168
|
-
getCollaborationTicket(documentId: string): Promise<CollaborationTicket>;
|
|
1169
|
-
createUpload(documentId: string, input: CreateUploadInput): Promise<CloudUpload>;
|
|
1170
|
-
commitUpload(uploadId: string, input: CommitUploadRequest): Promise<DocumentSummary>;
|
|
1171
|
-
/** A page of the document's version history, newest first. */
|
|
1172
1371
|
listDocumentVersions(documentId: string, page?: {
|
|
1173
1372
|
before?: string;
|
|
1174
1373
|
limit?: number;
|
|
@@ -1203,6 +1402,19 @@ declare function createCloudAPIClient(baseURL: string, options?: CloudRequestOpt
|
|
|
1203
1402
|
};
|
|
1204
1403
|
}>;
|
|
1205
1404
|
duplicateDocumentVersion(documentId: string, versionId: string, input: DuplicateDocumentVersionInput): Promise<DocumentSummary>;
|
|
1405
|
+
getUserProfile(documentId: string, userId: string): Promise<CloudUserProfile | null>;
|
|
1406
|
+
listSharedDocuments(): Promise<SharedDocument[]>;
|
|
1407
|
+
listDocuments(workspaceId: string): Promise<DocumentSummary[]>;
|
|
1408
|
+
createDocument(workspaceId: string, input: CreateDocumentRequest): Promise<DocumentSummary>;
|
|
1409
|
+
listTrash(): Promise<TrashedDocument[]>;
|
|
1410
|
+
restoreDocument(documentId: string): Promise<void>;
|
|
1411
|
+
purgeDocument(documentId: string): Promise<void>;
|
|
1412
|
+
deleteDocument(documentId: string): Promise<void>;
|
|
1413
|
+
getDocument(documentId: string): Promise<DocumentDownload>;
|
|
1414
|
+
getDocumentAccess(documentId: string): Promise<DocumentAccess>;
|
|
1415
|
+
getCollaborationTicket(documentId: string): Promise<CollaborationTicket>;
|
|
1416
|
+
createUpload(documentId: string, input: CreateUploadInput): Promise<CloudUpload>;
|
|
1417
|
+
commitUpload(uploadId: string, input: CommitUploadRequest): Promise<DocumentSummary>;
|
|
1206
1418
|
requestImageUploads(documentId: string, input: RequestImageUploadsInput): Promise<ImageUploadOffer[]>;
|
|
1207
1419
|
commitImageUploads(documentId: string, uploads: CommitImageUploadsInput["uploads"]): Promise<void>;
|
|
1208
1420
|
getImageLinks(documentId: string, checksums: string[]): Promise<DocumentImageLink[]>;
|
|
@@ -1222,7 +1434,10 @@ declare function createCloudAPIClient(baseURL: string, options?: CloudRequestOpt
|
|
|
1222
1434
|
getSession(): Promise<CloudSession | null>;
|
|
1223
1435
|
/** A short-lived token for the deployment's services, on the workspace's behalf. */
|
|
1224
1436
|
requestServicesToken(workspaceId: string): Promise<ServicesToken>;
|
|
1225
|
-
|
|
1437
|
+
/** A short-lived token for the deployment's billing, for the signed-in person's own account. */
|
|
1438
|
+
requestBillingToken(): Promise<BillingToken>;
|
|
1439
|
+
/** The signed-in account's plan, and the storage its workspaces hold together. */
|
|
1440
|
+
getAccountEntitlements(): Promise<AccountEntitlements>;
|
|
1226
1441
|
};
|
|
1227
1442
|
type CloudAPIClient = ReturnType<typeof createCloudAPIClient>;
|
|
1228
1443
|
//#endregion
|
|
@@ -1559,6 +1774,33 @@ declare function createCloudPortalClient(options?: CloudPortalClientOptions): {
|
|
|
1559
1774
|
documents: number;
|
|
1560
1775
|
storedBytes: number;
|
|
1561
1776
|
}>;
|
|
1777
|
+
entitlements(signal?: AbortSignal): Promise<{
|
|
1778
|
+
entitlements: {
|
|
1779
|
+
features: {
|
|
1780
|
+
links: boolean;
|
|
1781
|
+
guestView: boolean;
|
|
1782
|
+
guestEdit: boolean;
|
|
1783
|
+
guestPresence: boolean;
|
|
1784
|
+
collaboration: boolean;
|
|
1785
|
+
revisionHistory: boolean;
|
|
1786
|
+
cloudServices: boolean;
|
|
1787
|
+
};
|
|
1788
|
+
limits: {
|
|
1789
|
+
maximumFileBytes: number;
|
|
1790
|
+
maximumStorageBytes: number | null;
|
|
1791
|
+
maximumParticipants: number | null;
|
|
1792
|
+
monthlyCreditAllowance: number | null;
|
|
1793
|
+
};
|
|
1794
|
+
usage: {
|
|
1795
|
+
committedStorageBytes: number;
|
|
1796
|
+
reservedStorageBytes: number;
|
|
1797
|
+
};
|
|
1798
|
+
};
|
|
1799
|
+
}>;
|
|
1800
|
+
billingToken(signal?: AbortSignal): Promise<{
|
|
1801
|
+
token: string;
|
|
1802
|
+
expiresAt: string;
|
|
1803
|
+
}>;
|
|
1562
1804
|
accountStatus(signal?: AbortSignal): Promise<{
|
|
1563
1805
|
user: {
|
|
1564
1806
|
userId: string;
|
|
@@ -1634,6 +1876,9 @@ declare function createCloudPortalClient(options?: CloudPortalClientOptions): {
|
|
|
1634
1876
|
image: string | null;
|
|
1635
1877
|
};
|
|
1636
1878
|
}>;
|
|
1879
|
+
setLocale(locale: string, signal?: AbortSignal): Promise<{
|
|
1880
|
+
ok: true;
|
|
1881
|
+
}>;
|
|
1637
1882
|
updateProfile(name: string, signal?: AbortSignal): Promise<{
|
|
1638
1883
|
ok: true;
|
|
1639
1884
|
}>;
|
|
@@ -1646,6 +1891,30 @@ declare function createCloudPortalClient(options?: CloudPortalClientOptions): {
|
|
|
1646
1891
|
changeEmail(newEmail: string, callbackURL: string, signal?: AbortSignal): Promise<{
|
|
1647
1892
|
ok: true;
|
|
1648
1893
|
}>;
|
|
1894
|
+
accessTokens(signal?: AbortSignal): Promise<{
|
|
1895
|
+
tokens: {
|
|
1896
|
+
id: string;
|
|
1897
|
+
name: string;
|
|
1898
|
+
start: string | null;
|
|
1899
|
+
createdAt: string;
|
|
1900
|
+
expiresAt: string | null;
|
|
1901
|
+
lastUsedAt: string | null;
|
|
1902
|
+
}[];
|
|
1903
|
+
}>;
|
|
1904
|
+
createAccessToken(input: CloudAccessTokenCreate, signal?: AbortSignal): Promise<{
|
|
1905
|
+
token: string;
|
|
1906
|
+
accessToken: {
|
|
1907
|
+
id: string;
|
|
1908
|
+
name: string;
|
|
1909
|
+
start: string | null;
|
|
1910
|
+
createdAt: string;
|
|
1911
|
+
expiresAt: string | null;
|
|
1912
|
+
lastUsedAt: string | null;
|
|
1913
|
+
};
|
|
1914
|
+
}>;
|
|
1915
|
+
revokeAccessToken(id: string, signal?: AbortSignal): Promise<{
|
|
1916
|
+
ok: true;
|
|
1917
|
+
}>;
|
|
1649
1918
|
sessions(signal?: AbortSignal): Promise<{
|
|
1650
1919
|
sessions: {
|
|
1651
1920
|
id: string;
|
|
@@ -1706,5 +1975,5 @@ declare function createCloudPortalClient(options?: CloudPortalClientOptions): {
|
|
|
1706
1975
|
};
|
|
1707
1976
|
type CloudPortalClient = ReturnType<typeof createCloudPortalClient>;
|
|
1708
1977
|
//#endregion
|
|
1709
|
-
export { type CloudAPIClient, CloudAPIError, type CloudAuthClient, type CloudAuthClientOptions, type CloudAuthFailure, type CloudAuthResult, CloudClientError, type CloudDeviceAuthorization, CloudDeviceAuthorizationError, type CloudDeviceAuthorizationOptions, type CloudDeviceErrorCode, type CloudDeviceToken, type CloudDiscoveryFailure, type CloudEmailSignIn, type CloudFetch, CloudPortalAPIError, type CloudPortalAPIErrorKind, type CloudPortalClient, type CloudPortalClientOptions, type CloudRequestOptions, CloudServiceError, type CloudServicesClient, type CloudServicesClientOptions, type CloudServicesTokenSource, type CloudSignInOptions, type CloudSocialProvider, type CloudUpload, type DiscoverCloudOptions, cloudAuthFailure, cloudEditorReturnURL, cloudRedirectPath, cloudServicesFetch, cloudSignInURL, createCloudAPIClient, createCloudAuthClient, createCloudPortalClient, createCloudServicesClient, discoverCloud, pollCloudDeviceToken, requestCloudDeviceAuthorization, resendCloudVerification, signInToCloud, signInToCloudWithEmail, signOutFromCloud, signUpToCloudWithEmail };
|
|
1978
|
+
export { type CloudAPIClient, CloudAPIError, type CloudAuthClient, type CloudAuthClientOptions, type CloudAuthFailure, type CloudAuthResult, type CloudBillingClient, type CloudBillingClientOptions, CloudBillingError, CloudClientError, type CloudDeviceAuthorization, CloudDeviceAuthorizationError, type CloudDeviceAuthorizationOptions, type CloudDeviceErrorCode, type CloudDeviceToken, type CloudDiscoveryFailure, type CloudEmailSignIn, type CloudFetch, CloudPortalAPIError, type CloudPortalAPIErrorKind, type CloudPortalClient, type CloudPortalClientOptions, type CloudRequestOptions, CloudServiceError, CloudServiceInsecureEndpointError, type CloudServicesClient, type CloudServicesClientOptions, type CloudServicesTokenSource, type CloudSignInOptions, type CloudSocialProvider, type CloudUpload, type DiscoverCloudOptions, cloudAuthFailure, cloudEditorReturnURL, cloudRedirectPath, cloudServicesFetch, cloudSignInURL, createCloudAPIClient, createCloudAuthClient, createCloudBillingClient, createCloudPortalClient, createCloudServicesClient, discoverCloud, pollCloudDeviceToken, requestCloudDeviceAuthorization, resendCloudVerification, signInToCloud, signInToCloudWithEmail, signOutFromCloud, signUpToCloudWithEmail };
|
|
1710
1979
|
//# sourceMappingURL=client.d.ts.map
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","names":[],"sources":["../src/contract/account.ts","../src/contract/services.ts","../src/contract/admin/index.ts","../src/contract/collaboration.ts","../src/contract/entitlements.ts","../src/contract/discovery.ts","../src/contract/documents.ts","../src/contract/sharing.ts","../src/contract/workspaces.ts","../src/contract/versions.ts","../src/contract/reports.ts","../src/client/discovery.ts","../src/client/services.ts","../src/client/auth/failure.ts","../src/client/auth/client.ts","../src/client/auth/navigation.ts","../src/client/response.ts","../src/client/api.ts","../src/client/device-authorization.ts","../src/client/portal/request.ts","../src/client/portal/administration.ts","../src/client/portal/client.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"client.d.ts","names":[],"sources":["../src/contract/account.ts","../src/contract/services.ts","../src/contract/billing.ts","../src/contract/admin/index.ts","../src/contract/collaboration.ts","../src/contract/entitlements.ts","../src/contract/discovery.ts","../src/contract/documents.ts","../src/contract/sharing.ts","../src/contract/workspaces.ts","../src/contract/versions.ts","../src/contract/community.ts","../src/contract/reports.ts","../src/client/discovery.ts","../src/client/services.ts","../src/client/billing.ts","../src/client/auth/failure.ts","../src/client/auth/client.ts","../src/client/auth/navigation.ts","../src/client/response.ts","../src/client/documents.ts","../src/client/api.ts","../src/client/device-authorization.ts","../src/client/portal/request.ts","../src/client/portal/administration.ts","../src/client/portal/client.ts"],"mappings":";;;;cAoDa,gCAA8B,EAAA;cAiE9B,8BAA4B,EAAA;;;;KAkL7B,2BAA2B,EAAE,mBAAmB;KAUhD,yBAAyB,EAAE,mBAAmB;;;cCjQ7C,qBAAmB,EAAA;;;;KAIpB,gBAAgB,EAAE,mBAAmB;cAmCpC,sBAAoB,EAAA;;;;;;;;;;;;;;;;;;;KAKrB,iBAAiB,EAAE,mBAAmB;;;;;cAarC,oBAAkB,EAAA;;;;;;;;;;KAMnB,eAAe,EAAE,mBAAmB;cAiBnC,qBAAmB,EAAA;;;;KAOpB,qBAAqB,EAAE,kBAAkB;cAkBxC,sBAAoB,EAAA;;;;;;;;;KACrB,iBAAiB,EAAE,mBAAmB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