@open-pencil/cloud 0.17.0-beta.4 → 0.17.0-beta.6
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 +783 -47
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +1651 -382
- package/dist/client.js.map +1 -1
- package/dist/contract.d.ts +2 -2
- package/dist/contract.js +2 -2
- package/dist/contract2.js +701 -45
- package/dist/contract2.js.map +1 -1
- package/dist/email.d.ts +2138 -34
- package/dist/email.d.ts.map +1 -1
- package/dist/email.js +4343 -306
- package/dist/email.js.map +1 -1
- package/dist/errors.d.ts +2 -0
- package/dist/errors.js +61 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +1338 -44
- package/dist/index.d.ts.map +1 -1
- package/dist/index2.d.ts +45 -0
- package/dist/index2.d.ts.map +1 -0
- package/dist/listen.mjs +958 -340
- package/dist/listen.mjs.map +1 -1
- package/dist/runtime-cloudflare.d.ts +93 -0
- package/dist/runtime-cloudflare.d.ts.map +1 -0
- package/dist/runtime-cloudflare.js +18032 -0
- package/dist/runtime-cloudflare.js.map +1 -0
- package/dist/runtime-node.d.mts +12615 -5249
- package/dist/runtime-node.d.mts.map +1 -1
- package/dist/server.d.ts +17367 -8567
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +13587 -7333
- package/dist/server.js.map +1 -1
- package/dist/server.mjs +11601 -5401
- package/dist/server.mjs.map +1 -1
- package/dist/server2.mjs +84 -62
- package/dist/server2.mjs.map +1 -1
- package/package.json +31 -5
- package/src/admin/api/routes.ts +263 -190
- package/src/admin/audit/service.ts +11 -3
- package/src/admin/bootstrap.ts +86 -0
- package/src/admin/documents/service.ts +195 -10
- package/src/admin/email/service.ts +2 -1
- package/src/admin/enrollment/email.ts +17 -3
- package/src/admin/enrollment/service.ts +71 -10
- package/src/admin/errors.ts +5 -0
- package/src/admin/index.ts +1 -0
- package/src/admin/reports/service.ts +15 -3
- package/src/admin/schema.ts +6 -5
- package/src/admin/users/service.ts +173 -16
- package/src/client/api.ts +52 -473
- package/src/client/auth/client.ts +22 -3
- package/src/client/comments.ts +205 -0
- package/src/client/community.ts +40 -0
- package/src/client/device-authorization.ts +4 -20
- package/src/client/discovery.ts +39 -11
- package/src/client/documents.ts +160 -0
- package/src/client/files/archive.ts +60 -0
- package/src/client/files/checksum.ts +7 -0
- package/src/client/files/download.ts +122 -0
- package/src/client/files/images.ts +89 -0
- package/src/client/files/index.ts +15 -0
- package/src/client/files/objects.ts +173 -0
- package/src/client/files/save.ts +79 -0
- package/src/client/index.ts +4 -0
- package/src/client/portal/account.ts +73 -3
- package/src/client/portal/administration.ts +52 -5
- package/src/client/portal/request.ts +6 -2
- 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/tour.ts +44 -0
- package/src/client/versions.ts +110 -0
- package/src/contract/account.ts +111 -11
- package/src/contract/admin/index.ts +48 -3
- package/src/contract/billing.ts +235 -0
- package/src/contract/collaboration.ts +5 -0
- package/src/contract/comments.ts +223 -0
- package/src/contract/community.ts +60 -0
- package/src/contract/discovery.ts +94 -5
- package/src/contract/entitlements.ts +10 -0
- package/src/contract/index.ts +64 -5
- package/src/contract/links.ts +62 -4
- package/src/contract/locale.ts +27 -0
- package/src/contract/portal.ts +12 -1
- package/src/contract/relay.ts +3 -1
- package/src/contract/routes.ts +10 -0
- package/src/contract/services.ts +62 -20
- package/src/contract/workspaces.ts +5 -0
- package/src/email/i18n.ts +174 -0
- package/src/email/index.ts +13 -2
- package/src/email/locales/ar.json +169 -0
- package/src/email/locales/de.json +169 -0
- package/src/email/locales/es.json +169 -0
- package/src/email/locales/fr.json +169 -0
- package/src/email/locales/it.json +169 -0
- package/src/email/locales/ja.json +169 -0
- package/src/email/locales/pl.json +169 -0
- package/src/email/locales/pt-br.json +169 -0
- package/src/email/locales/ru.json +169 -0
- package/src/email/locales/zh-cn.json +169 -0
- package/src/email/messages.ts +235 -0
- package/src/email/render.ts +160 -276
- package/src/email/samples.ts +142 -0
- package/src/email/schema.ts +98 -8
- package/src/email/templates/BrandEmail.vue +56 -0
- package/src/email/templates/CommentNotification.vue +39 -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/EnrollmentInvitation.vue +53 -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 +47 -0
- package/src/email/templates/WaitlistConfirmation.vue +29 -0
- package/src/email/templates/WorkspaceInvitation.vue +28 -0
- package/src/email/templates/brand.ts +15 -61
- package/src/email/templates/localization.ts +17 -0
- package/src/errors/index.ts +6 -0
- package/src/{server/errors → errors}/posthog.ts +28 -4
- package/src/global.d.ts +7 -0
- package/src/runtime/cloudflare/email.ts +2 -0
- package/src/runtime/cloudflare/relay/index.ts +28 -7
- package/src/runtime/cloudflare/tsconfig.json +2 -1
- package/src/runtime/cloudflare/worker.ts +14 -1
- package/src/runtime/cloudflare/xml.ts +12 -0
- package/src/runtime/node/admin.ts +51 -47
- package/src/runtime/node/cleanup.ts +5 -1
- package/src/runtime/node/email/runtime.ts +1 -0
- package/src/runtime/node/email/transport.ts +14 -10
- package/src/runtime/node/main.ts +1 -1
- package/src/runtime/node/server.ts +20 -4
- package/src/runtime/node/services/main.ts +1 -1
- package/src/runtime/posthog/errors.ts +5 -2
- 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/actions.ts +3 -1
- package/src/server/account/deletion.ts +40 -4
- package/src/server/account/routes.ts +305 -253
- package/src/server/account/tokens.ts +57 -0
- package/src/server/api/router.ts +44 -6
- package/src/server/app/checks.ts +89 -0
- package/src/server/app/cors.ts +44 -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 +123 -0
- package/src/server/app/services.ts +219 -0
- package/src/server/auth/access-control.ts +13 -8
- package/src/server/auth/access-tokens.ts +62 -0
- package/src/server/auth/account.ts +13 -12
- package/src/server/auth/activity.ts +7 -2
- package/src/server/auth/adapter.ts +36 -3
- package/src/server/auth/email.ts +33 -18
- package/src/server/auth/endpoints.ts +4 -0
- package/src/server/auth/enrollment.ts +116 -0
- package/src/server/auth/factory.ts +165 -189
- package/src/server/auth/index.ts +1 -1
- package/src/server/auth/logger.ts +23 -0
- package/src/server/auth/methods.ts +162 -0
- package/src/server/auth/mfa-assurance.ts +190 -2
- package/src/server/auth/passwords.ts +43 -0
- package/src/server/auth/rate-limit.ts +31 -0
- package/src/server/auth/runtime.ts +19 -5
- package/src/server/auth/session.ts +2 -0
- package/src/server/auth/social-providers.ts +70 -24
- package/src/server/billing/index.ts +8 -0
- package/src/server/billing/notify.ts +55 -0
- package/src/server/billing/routes.ts +27 -0
- package/src/server/billing/seats.ts +17 -0
- package/src/server/billing/tokens.ts +37 -0
- package/src/server/cleanup/configured.ts +16 -3
- package/src/server/cleanup/documents.ts +5 -2
- package/src/server/cleanup/revisions.ts +6 -3
- package/src/server/cleanup/uploads.ts +2 -1
- package/src/server/cleanup/worker.ts +10 -1
- package/src/server/collaboration/relay/connection.ts +7 -2
- package/src/server/collaboration/relay/hub.ts +80 -166
- package/src/server/collaboration/relay/room.ts +154 -0
- package/src/server/collaboration/routes.ts +8 -5
- package/src/server/collaboration/service.ts +21 -2
- package/src/server/comments/index.ts +9 -0
- package/src/server/comments/notify.ts +277 -0
- package/src/server/comments/routes.ts +352 -0
- package/src/server/comments/rows.ts +249 -0
- package/src/server/comments/service.ts +570 -0
- 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 +35 -10
- package/src/server/config/index.ts +2 -2
- package/src/server/config/public.ts +25 -6
- package/src/server/config/schema.ts +53 -293
- package/src/server/config/toml/schema.ts +330 -0
- package/src/server/db/index.ts +3 -1
- package/src/server/db/migrate.ts +33 -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/015_comments.ts +57 -0
- package/src/server/db/migrations/016_comment_notifications.ts +76 -0
- package/src/server/db/migrations/017_invitation_emails.ts +19 -0
- package/src/server/db/migrations/018_enrollment_source.ts +17 -0
- package/src/server/db/migrations/schema.ts +26 -1
- package/src/server/db/tables.ts +122 -3
- package/src/server/db/users.ts +22 -0
- package/src/server/documents/access.ts +17 -0
- package/src/server/documents/images.ts +6 -1
- package/src/server/documents/index.ts +1 -1
- package/src/server/documents/limits.ts +7 -1
- package/src/server/documents/routes.ts +12 -12
- package/src/server/documents/service.ts +31 -407
- package/src/server/documents/summary.ts +15 -0
- package/src/server/documents/uploads.ts +450 -0
- package/src/server/documents/versions/routes.ts +7 -8
- package/src/server/documents/versions/service.ts +86 -26
- package/src/server/email/invitations.ts +1 -0
- package/src/server/email/service.ts +39 -6
- package/src/server/email/types.ts +13 -0
- package/src/server/errors/index.ts +49 -12
- package/src/server/index.ts +27 -6
- package/src/server/internal/routes.ts +8 -2
- package/src/server/internal/service.ts +10 -0
- package/src/server/invitations/budget.ts +3 -1
- package/src/server/invitations/index.ts +1 -0
- package/src/server/invitations/links.ts +6 -0
- package/src/server/invitations/types.ts +5 -1
- package/src/server/objects/types.ts +5 -0
- package/src/server/pictures/service.ts +3 -1
- 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/policy/workspace.ts +5 -2
- 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 +5 -3
- package/src/server/reports/service.ts +27 -3
- package/src/server/services/routes.ts +2 -2
- package/src/server/sharing/capabilities/service.ts +3 -4
- package/src/server/sharing/document-routes.ts +3 -3
- package/src/server/sharing/invitations/service.ts +17 -8
- package/src/server/sharing/routes.ts +15 -15
- package/src/server/validation.ts +35 -24
- package/src/server/workspaces/members.ts +57 -31
- package/src/server/workspaces/repository.ts +23 -12
- package/src/server/workspaces/routes.ts +8 -8
- package/src/services/app.ts +31 -22
- package/src/services/config.ts +48 -8
- package/src/services/metering.ts +15 -27
- 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
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import { params } from '@nanostores/i18n'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Every email's words in English, translated under `locales/`. A name, address, or document in a
|
|
5
|
+
* placeholder is someone's own text and stays as they wrote it.
|
|
6
|
+
*/
|
|
7
|
+
export const emailMessageDefaults = {
|
|
8
|
+
greeting: params('Hi {name},'),
|
|
9
|
+
greetingWithoutName: 'Hi,',
|
|
10
|
+
someone: 'Someone',
|
|
11
|
+
openCloud: 'Open OpenPencil Cloud',
|
|
12
|
+
footer: 'OpenPencil, the open-source design editor',
|
|
13
|
+
invitationExpires: params('This invitation expires on {date}.'),
|
|
14
|
+
|
|
15
|
+
documentInvitationHeading: 'You’re invited to a document',
|
|
16
|
+
documentInvitationViewSubject: params('{inviter} invited you to view “{document}”'),
|
|
17
|
+
documentInvitationEditSubject: params('{inviter} invited you to edit “{document}”'),
|
|
18
|
+
documentInvitationView: params('{inviter} invited you to view “{document}” on OpenPencil Cloud.'),
|
|
19
|
+
documentInvitationEdit: params('{inviter} invited you to edit “{document}” on OpenPencil Cloud.'),
|
|
20
|
+
documentInvitationAction: 'Open document',
|
|
21
|
+
|
|
22
|
+
workspaceInvitationSubject: params('{inviter} invited you to {workspace}'),
|
|
23
|
+
workspaceInvitationHeading: params('Join {workspace}'),
|
|
24
|
+
workspaceInvitationAdmin: params(
|
|
25
|
+
'{inviter} invited you to manage the workspace “{workspace}” on OpenPencil Cloud.'
|
|
26
|
+
),
|
|
27
|
+
workspaceInvitationEditor: params(
|
|
28
|
+
'{inviter} invited you to edit in the workspace “{workspace}” on OpenPencil Cloud.'
|
|
29
|
+
),
|
|
30
|
+
workspaceInvitationViewer: params(
|
|
31
|
+
'{inviter} invited you to view the workspace “{workspace}” on OpenPencil Cloud.'
|
|
32
|
+
),
|
|
33
|
+
workspaceInvitationHome: 'You’ll see its documents on Home once you join.',
|
|
34
|
+
workspaceInvitationAction: 'Join workspace',
|
|
35
|
+
|
|
36
|
+
enrollmentRequestedSubject: 'We received your OpenPencil Cloud request',
|
|
37
|
+
enrollmentRequestedHeading: 'Request received',
|
|
38
|
+
enrollmentRequestedPreview: 'Your OpenPencil Cloud access request is awaiting review.',
|
|
39
|
+
enrollmentRequested: 'Your request is awaiting review. We’ll write again once it’s decided.',
|
|
40
|
+
enrollmentApprovedSubject: 'Your OpenPencil Cloud access is ready',
|
|
41
|
+
enrollmentApprovedHeading: 'Access approved',
|
|
42
|
+
enrollmentApprovedPreview: 'You can now sign in to OpenPencil Cloud.',
|
|
43
|
+
enrollmentApproved: 'Your access request was approved, so you can sign in now.',
|
|
44
|
+
enrollmentApprovedAction: 'Sign in',
|
|
45
|
+
enrollmentRejectedSubject: 'Your OpenPencil Cloud request was reviewed',
|
|
46
|
+
enrollmentRejectedHeading: 'Request reviewed',
|
|
47
|
+
enrollmentRejectedPreview: 'Your access request was not approved.',
|
|
48
|
+
enrollmentRejected: 'Your access request was not approved this time.',
|
|
49
|
+
enrollmentRejectedAction: 'Request access again',
|
|
50
|
+
enrollmentRevokedSubject: 'Your OpenPencil Cloud access has changed',
|
|
51
|
+
enrollmentRevokedHeading: 'Access changed',
|
|
52
|
+
enrollmentRevokedPreview: 'Your OpenPencil Cloud access is no longer active.',
|
|
53
|
+
enrollmentRevoked: 'Your OpenPencil Cloud access is no longer active.',
|
|
54
|
+
enrollmentRevokedAction: 'Open OpenPencil',
|
|
55
|
+
invitationSubject: 'You can try OpenPencil Cloud now',
|
|
56
|
+
invitationHeading: 'Cloud is open',
|
|
57
|
+
invitationPreview: 'OpenPencil Cloud is open, and you can sign in now.',
|
|
58
|
+
invitationWaitlistSubject: 'OpenPencil Cloud is ready',
|
|
59
|
+
invitationWaitlistPreview: 'You joined the waitlist; Cloud is open now.',
|
|
60
|
+
invitationWaitlistBeta:
|
|
61
|
+
'It’s still a beta: some features are switched off, and some things will break. When they do, reply to this email and tell me, or {link} if you’re comfortable with that. I read both.',
|
|
62
|
+
invitationWaitlistThanks:
|
|
63
|
+
'Thank you for joining the OpenPencil Cloud waitlist. Here’s the one email we promised: Cloud is open, and you can sign in now.',
|
|
64
|
+
invitationThanks:
|
|
65
|
+
'A while ago you asked to try OpenPencil Cloud. Thanks for being curious enough to ask, and for waiting. We were still testing it then and weren’t ready to let anyone in.',
|
|
66
|
+
invitationBeta:
|
|
67
|
+
'It’s open now, and you can sign in. It’s still a beta: some features are switched off, and some things will break. When they do, reply to this email and tell me, or {link} if you’re comfortable with that. I read both.',
|
|
68
|
+
invitationIssueLink: 'open an issue on GitHub',
|
|
69
|
+
invitationDesktop: 'To use Cloud in the desktop app, you need the beta release from the {link}.',
|
|
70
|
+
invitationDownloadLink: 'download page',
|
|
71
|
+
invitationAction: 'Open Cloud',
|
|
72
|
+
invitationSignatureName: 'Danila',
|
|
73
|
+
invitationSignatureRole: 'Founder of OpenPencil',
|
|
74
|
+
|
|
75
|
+
enrollmentNotificationSubject: 'New OpenPencil Cloud access request',
|
|
76
|
+
enrollmentNotificationHeading: 'New access request',
|
|
77
|
+
enrollmentNotificationPreview: params('{email} requested OpenPencil Cloud access.'),
|
|
78
|
+
enrollmentNotification: params('{name} ({email}) requested access and wrote:'),
|
|
79
|
+
enrollmentNotificationAction: 'Review request',
|
|
80
|
+
|
|
81
|
+
documentReportSubject: 'A shared OpenPencil Cloud document was reported',
|
|
82
|
+
documentReportHeading: 'A shared document was reported',
|
|
83
|
+
documentReportPreview: params('“{document}” was reported for {reason}.'),
|
|
84
|
+
documentReport: params(
|
|
85
|
+
'Someone who opened “{document}” from a share link reported it for {reason} and wrote:'
|
|
86
|
+
),
|
|
87
|
+
documentReportAction: 'Review report',
|
|
88
|
+
reportReasonSpamPhishing: 'spam or phishing',
|
|
89
|
+
reportReasonIllegal: 'illegal content',
|
|
90
|
+
reportReasonCopyright: 'copyright',
|
|
91
|
+
reportReasonHarassment: 'harassment',
|
|
92
|
+
reportReasonOther: 'something else',
|
|
93
|
+
|
|
94
|
+
verifyAccountSubject: 'Confirm your OpenPencil Cloud email',
|
|
95
|
+
verifyAccountHeading: 'Confirm your email',
|
|
96
|
+
verifyAccountPreview: 'One click to finish creating your OpenPencil Cloud account.',
|
|
97
|
+
verifyAccount:
|
|
98
|
+
'Confirm this address to finish creating your OpenPencil Cloud account. Then go back to OpenPencil; it signs you in by itself.',
|
|
99
|
+
verifyAccountNote: 'Didn’t create an account? Ignore this email and nothing happens.',
|
|
100
|
+
verifyChangeSubject: 'Confirm your new OpenPencil Cloud email',
|
|
101
|
+
verifyChangeHeading: 'Confirm your new email',
|
|
102
|
+
verifyChangePreview: 'One click to move your OpenPencil Cloud account to this address.',
|
|
103
|
+
verifyChange:
|
|
104
|
+
'Confirm this address to make it your OpenPencil Cloud account’s email. Your old address stays until you do.',
|
|
105
|
+
verifyChangeNote: 'Didn’t ask for this? Ignore this email and nothing changes.',
|
|
106
|
+
verifyAction: 'Confirm email',
|
|
107
|
+
|
|
108
|
+
passwordResetSubject: 'Reset your OpenPencil Cloud password',
|
|
109
|
+
passwordResetHeading: 'Reset your password',
|
|
110
|
+
passwordResetPreview: 'Use this secure link to choose a new password.',
|
|
111
|
+
passwordReset: 'Use the link below to choose a new password.',
|
|
112
|
+
passwordResetNote: 'Didn’t ask for this? Ignore this email and your password stays the same.',
|
|
113
|
+
passwordResetAction: 'Reset password',
|
|
114
|
+
|
|
115
|
+
passwordChangedSubject: 'Your OpenPencil Cloud password changed',
|
|
116
|
+
passwordChangedHeading: 'Password changed',
|
|
117
|
+
passwordChangedPreview: 'Your OpenPencil Cloud password was changed.',
|
|
118
|
+
passwordChanged: 'Your password was changed. If this wasn’t you, contact your administrator.',
|
|
119
|
+
|
|
120
|
+
emailChangeSubject: 'Your OpenPencil Cloud email is changing',
|
|
121
|
+
emailChangeHeading: 'Your email is changing',
|
|
122
|
+
emailChangePreview: params('Your OpenPencil Cloud email is changing to {email}.'),
|
|
123
|
+
emailChange: params(
|
|
124
|
+
'Someone signed in to your account asked to change its email to {email}. It changes once that address confirms it.'
|
|
125
|
+
),
|
|
126
|
+
emailChangeNotYou:
|
|
127
|
+
'If this wasn’t you, change your password and sign out of your other sessions.',
|
|
128
|
+
reviewAccount: 'Review your account',
|
|
129
|
+
|
|
130
|
+
newSignInSubject: 'New sign-in to your OpenPencil Cloud account',
|
|
131
|
+
newSignInHeading: 'New sign-in to your account',
|
|
132
|
+
newSignInPreview: params('Your OpenPencil Cloud account was signed in to with {device}.'),
|
|
133
|
+
newSignIn: params('Your account was signed in to with {device} on {date}.'),
|
|
134
|
+
newSignInFrom: params('Your account was signed in to with {device} from {address} on {date}.'),
|
|
135
|
+
newSignInNotYou:
|
|
136
|
+
'If this was you, there’s nothing to do. If it wasn’t, sign that session out and change your password.',
|
|
137
|
+
newSignInApp: 'the OpenPencil app',
|
|
138
|
+
newSignInBrowser: params('{browser} on {system}'),
|
|
139
|
+
newSignInUnknownBrowser: 'an unknown browser',
|
|
140
|
+
reviewSessions: 'Review sessions',
|
|
141
|
+
|
|
142
|
+
twoStepSubject: 'How you sign in to OpenPencil Cloud changed',
|
|
143
|
+
authenticatorOnHeading: 'Authenticator app turned on',
|
|
144
|
+
authenticatorOn: 'An authenticator app now confirms your sign-ins.',
|
|
145
|
+
authenticatorOffHeading: 'Authenticator app turned off',
|
|
146
|
+
authenticatorOff: 'Your sign-ins no longer ask for a code from an authenticator app.',
|
|
147
|
+
passkeyAddedHeading: 'Passkey added',
|
|
148
|
+
passkeyAdded: 'A passkey was added to your account.',
|
|
149
|
+
passkeyRemovedHeading: 'Passkey removed',
|
|
150
|
+
passkeyRemoved: 'A passkey was removed from your account.',
|
|
151
|
+
twoStepResetHeading: 'Two-step sign-in was reset',
|
|
152
|
+
twoStepReset:
|
|
153
|
+
'An administrator removed your authenticator app, recovery codes, and passkeys, so you can set them up again.',
|
|
154
|
+
signInMethodRemovedHeading: 'Sign-in method removed',
|
|
155
|
+
signInMethodRemoved: params(
|
|
156
|
+
'An administrator removed {method} from the ways you sign in to your account.'
|
|
157
|
+
),
|
|
158
|
+
signInMethodPassword: 'your password',
|
|
159
|
+
twoStepNotYou: 'If this wasn’t you, change your password and contact your administrator.',
|
|
160
|
+
reviewSecurity: 'Review security',
|
|
161
|
+
|
|
162
|
+
storageFullSubject: 'Your OpenPencil Cloud files are read-only',
|
|
163
|
+
storageFullHeading: 'Your storage is full',
|
|
164
|
+
storageFullPreview: params(
|
|
165
|
+
'Your OpenPencil Cloud files use {used} of {limit}, so they’re read-only.'
|
|
166
|
+
),
|
|
167
|
+
storageFull: params(
|
|
168
|
+
'Your workspaces hold {used}, and your plan includes {limit}. Until they hold less, your documents open and download but take no edits or new files.'
|
|
169
|
+
),
|
|
170
|
+
storageFullUpgrade: 'Get more storage, or delete documents and empty the trash, to edit again.',
|
|
171
|
+
storageFullFreeSpace: 'Delete documents and empty the trash to edit again.',
|
|
172
|
+
storageFullAction: 'Get more storage',
|
|
173
|
+
|
|
174
|
+
documentBlockedSubject: params('Your document “{document}” was blocked'),
|
|
175
|
+
documentBlockedHeading: 'A document of yours was blocked',
|
|
176
|
+
documentBlocked: params(
|
|
177
|
+
'An administrator of OpenPencil Cloud blocked your document “{document}”. Nobody can open it, you included, until it’s restored. Nothing in it was deleted.'
|
|
178
|
+
),
|
|
179
|
+
documentBlockedReason: params('The reason they gave: {reason}'),
|
|
180
|
+
documentBlockedContest: params(
|
|
181
|
+
'If you think this is a mistake, write to {email} to have it looked at again.'
|
|
182
|
+
),
|
|
183
|
+
documentBlockedContestAdministrators:
|
|
184
|
+
'If you think this is a mistake, ask the server’s administrators to look at it again.',
|
|
185
|
+
documentRestoredSubject: params('Your document “{document}” is back'),
|
|
186
|
+
documentRestoredHeading: 'Your document is back',
|
|
187
|
+
documentRestored: params(
|
|
188
|
+
'An administrator restored your document “{document}”. It opens again for you and everyone you shared it with.'
|
|
189
|
+
),
|
|
190
|
+
openHome: 'Open Home',
|
|
191
|
+
reportReceivedSubject: params('We received your report about “{document}”'),
|
|
192
|
+
reportReceivedHeading: 'Report received',
|
|
193
|
+
reportReceived: params(
|
|
194
|
+
'Thanks for reporting “{document}”. The server’s administrators review every report and decide whether it breaks the rules. We’ll write again when they have.'
|
|
195
|
+
),
|
|
196
|
+
reportDecidedSubject: params('Your report about “{document}”'),
|
|
197
|
+
reportBlockedHeading: 'The document was blocked',
|
|
198
|
+
reportBlocked: params(
|
|
199
|
+
'The administrators reviewed your report and blocked “{document}”, so nobody can open it until it’s restored.'
|
|
200
|
+
),
|
|
201
|
+
reportActionedHeading: 'Your report was acted on',
|
|
202
|
+
reportActioned: params(
|
|
203
|
+
'The administrators reviewed your report about “{document}” and took action on it.'
|
|
204
|
+
),
|
|
205
|
+
reportDismissedHeading: 'The document stays',
|
|
206
|
+
reportDismissed: params(
|
|
207
|
+
'The administrators reviewed your report about “{document}” and found it doesn’t break the rules, so it stays as it is.'
|
|
208
|
+
),
|
|
209
|
+
reportDisagree: params('If you disagree, write to {email}.'),
|
|
210
|
+
reportDisagreeAdministrators:
|
|
211
|
+
'If you disagree, ask the server’s administrators to look at it again.',
|
|
212
|
+
|
|
213
|
+
commentMentionSubject: params('{author} mentioned you in “{document}”'),
|
|
214
|
+
commentReplySubject: params('{author} replied in “{document}”'),
|
|
215
|
+
commentMentionHeading: 'You were mentioned',
|
|
216
|
+
commentReplyHeading: 'New reply',
|
|
217
|
+
commentMention: params('{author} mentioned you in a comment on “{document}”:'),
|
|
218
|
+
commentReply: params('{author} replied in a thread you’re part of on “{document}”:'),
|
|
219
|
+
commentSomeone: 'Someone',
|
|
220
|
+
openComment: 'Open the comment',
|
|
221
|
+
commentSettings: 'You get these emails as your notification settings say. Change them in {link}.',
|
|
222
|
+
commentSettingsLink: 'your account settings',
|
|
223
|
+
|
|
224
|
+
waitlistSubject: 'Confirm your place on the OpenPencil Cloud waitlist',
|
|
225
|
+
waitlistHeading: 'Confirm your email',
|
|
226
|
+
waitlistPreview: 'One click to join the OpenPencil Cloud waitlist.',
|
|
227
|
+
waitlist:
|
|
228
|
+
'Thanks for your interest in OpenPencil Cloud. Confirm this address to join the waitlist, and we’ll write once, when Cloud is ready for you.',
|
|
229
|
+
waitlistAction: 'Join the waitlist',
|
|
230
|
+
waitlistNote:
|
|
231
|
+
'Didn’t sign up? Ignore this email and the address is deleted in seven days, or {link}.',
|
|
232
|
+
waitlistLeave: 'remove it now'
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export type EmailMessageDefaults = typeof emailMessageDefaults
|