@open-pencil/cloud 0.17.0-beta.5 → 0.17.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +560 -93
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +1101 -186
- package/dist/client.js.map +1 -1
- package/dist/contract.d.ts +2 -2
- package/dist/contract.js +2 -2
- package/dist/contract2.js +390 -44
- package/dist/contract2.js.map +1 -1
- package/dist/email.d.ts +366 -3
- package/dist/email.d.ts.map +1 -1
- package/dist/email.js +1403 -556
- package/dist/email.js.map +1 -1
- package/dist/errors.js +16 -3
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +878 -37
- package/dist/index.d.ts.map +1 -1
- package/dist/index2.d.ts +12 -2
- package/dist/index2.d.ts.map +1 -1
- package/dist/listen.mjs +589 -128
- package/dist/listen.mjs.map +1 -1
- package/dist/runtime-cloudflare.d.ts +4 -0
- package/dist/runtime-cloudflare.d.ts.map +1 -1
- package/dist/runtime-cloudflare.js +8690 -6325
- package/dist/runtime-cloudflare.js.map +1 -1
- package/dist/runtime-node.d.mts +10098 -5401
- package/dist/runtime-node.d.mts.map +1 -1
- package/dist/server.d.ts +13807 -7638
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +11723 -9412
- package/dist/server.js.map +1 -1
- package/dist/server.mjs +10659 -8650
- package/dist/server.mjs.map +1 -1
- package/dist/server2.mjs +79 -57
- package/dist/server2.mjs.map +1 -1
- package/package.json +13 -4
- package/src/admin/api/routes.ts +263 -190
- package/src/admin/audit/service.ts +9 -1
- package/src/admin/bootstrap.ts +86 -0
- package/src/admin/documents/service.ts +119 -4
- 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 +9 -3
- package/src/admin/schema.ts +6 -5
- package/src/admin/users/service.ts +173 -16
- package/src/client/api.ts +29 -2
- package/src/client/comments.ts +205 -0
- package/src/client/device-authorization.ts +4 -20
- package/src/client/discovery.ts +4 -2
- 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 +3 -6
- package/src/client/portal/account.ts +20 -2
- package/src/client/portal/administration.ts +52 -5
- package/src/client/portal/request.ts +4 -2
- package/src/client/tour.ts +44 -0
- package/src/client/versions.ts +7 -1
- package/src/contract/account.ts +61 -11
- package/src/contract/admin/index.ts +48 -3
- package/src/contract/billing.ts +73 -4
- package/src/contract/comments.ts +223 -0
- package/src/contract/discovery.ts +47 -19
- package/src/contract/index.ts +10 -0
- package/src/contract/links.ts +5 -0
- package/src/contract/relay.ts +3 -1
- package/src/contract/services.ts +44 -4
- package/src/contract/workspaces.ts +5 -0
- package/src/email/locales/ar.json +28 -0
- package/src/email/locales/de.json +28 -0
- package/src/email/locales/es.json +28 -0
- package/src/email/locales/fr.json +28 -0
- package/src/email/locales/it.json +28 -0
- package/src/email/locales/ja.json +28 -0
- package/src/email/locales/pl.json +28 -0
- package/src/email/locales/pt-br.json +28 -0
- package/src/email/locales/ru.json +28 -0
- package/src/email/locales/zh-cn.json +28 -0
- package/src/email/messages.ts +35 -0
- package/src/email/render.ts +18 -0
- package/src/email/samples.ts +28 -1
- package/src/email/schema.ts +29 -3
- package/src/email/templates/BrandEmail.vue +3 -1
- package/src/email/templates/CommentNotification.vue +39 -0
- package/src/email/templates/EnrollmentInvitation.vue +53 -0
- package/src/email/templates/TwoStepChanged.vue +17 -2
- package/src/email/templates/brand.ts +6 -0
- package/src/errors/posthog.ts +28 -4
- package/src/runtime/cloudflare/email.ts +2 -0
- package/src/runtime/cloudflare/relay/index.ts +21 -6
- package/src/runtime/cloudflare/worker.ts +6 -0
- package/src/runtime/cloudflare/xml.ts +12 -0
- package/src/runtime/node/admin.ts +51 -47
- package/src/runtime/node/email/runtime.ts +1 -0
- package/src/runtime/node/email/transport.ts +1 -0
- package/src/runtime/node/server.ts +8 -2
- package/src/runtime/posthog/errors.ts +3 -1
- package/src/runtime/site/server.ts +4 -1
- package/src/server/account/actions.ts +3 -1
- package/src/server/account/deletion.ts +38 -4
- package/src/server/account/routes.ts +67 -46
- package/src/server/account/tokens.ts +3 -3
- package/src/server/api/router.ts +22 -7
- package/src/server/app/checks.ts +6 -1
- package/src/server/app/cors.ts +44 -0
- package/src/server/app/index.ts +76 -76
- package/src/server/app/routes.ts +14 -5
- package/src/server/app/services.ts +49 -15
- package/src/server/auth/access-control.ts +13 -8
- package/src/server/auth/account.ts +13 -12
- package/src/server/auth/activity.ts +7 -2
- package/src/server/auth/adapter.ts +16 -3
- package/src/server/auth/email.ts +29 -17
- package/src/server/auth/endpoints.ts +4 -0
- package/src/server/auth/factory.ts +83 -64
- package/src/server/auth/index.ts +1 -1
- package/src/server/auth/methods.ts +162 -0
- package/src/server/auth/mfa-assurance.ts +147 -10
- package/src/server/auth/rate-limit.ts +31 -0
- package/src/server/auth/runtime.ts +19 -5
- package/src/server/auth/social-providers.ts +70 -24
- package/src/server/billing/index.ts +2 -0
- package/src/server/billing/notify.ts +55 -0
- package/src/server/billing/seats.ts +17 -0
- package/src/server/billing/tokens.ts +1 -1
- 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/collaboration/relay/connection.ts +7 -2
- package/src/server/collaboration/relay/hub.ts +55 -24
- package/src/server/collaboration/routes.ts +8 -5
- 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/routes.ts +6 -6
- package/src/server/config/deployment.ts +19 -6
- package/src/server/config/index.ts +1 -1
- package/src/server/config/public.ts +19 -6
- package/src/server/config/schema.ts +14 -2
- package/src/server/config/toml/schema.ts +27 -4
- package/src/server/db/index.ts +2 -1
- package/src/server/db/migrate.ts +21 -1
- 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/tables.ts +92 -2
- package/src/server/documents/access.ts +17 -0
- package/src/server/documents/images.ts +6 -1
- package/src/server/documents/routes.ts +12 -12
- package/src/server/documents/service.ts +19 -5
- package/src/server/documents/summary.ts +15 -0
- package/src/server/documents/versions/routes.ts +7 -8
- package/src/server/documents/versions/service.ts +5 -2
- package/src/server/email/service.ts +8 -2
- package/src/server/email/types.ts +1 -0
- package/src/server/errors/index.ts +48 -3
- package/src/server/index.ts +15 -1
- 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/pictures/service.ts +3 -1
- package/src/server/policy/workspace.ts +5 -2
- package/src/server/reports/routes.ts +2 -2
- package/src/server/reports/service.ts +3 -1
- package/src/server/services/routes.ts +2 -2
- package/src/server/sharing/capabilities/service.ts +1 -1
- package/src/server/sharing/document-routes.ts +3 -3
- package/src/server/sharing/invitations/service.ts +3 -4
- package/src/server/sharing/routes.ts +15 -15
- package/src/server/validation.ts +33 -25
- package/src/server/workspaces/members.ts +50 -12
- package/src/server/workspaces/repository.ts +23 -12
- package/src/server/workspaces/routes.ts +8 -8
- package/src/services/app.ts +30 -19
- package/src/services/config.ts +47 -8
- package/src/services/metering.ts +15 -27
- package/src/client/billing.ts +0 -80
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import * as v from 'valibot'
|
|
2
|
+
|
|
3
|
+
import { resolveDocumentShareSchema } from './sharing'
|
|
4
|
+
|
|
5
|
+
/** The most a comment may say, in characters. */
|
|
6
|
+
export const COMMENT_BODY_MAX_LENGTH = 10_000
|
|
7
|
+
/** The most threads one document may hold, resolved ones included. */
|
|
8
|
+
export const MAX_COMMENT_THREADS_PER_DOCUMENT = 5_000
|
|
9
|
+
/** The most comments one thread may hold, its first one included. */
|
|
10
|
+
export const MAX_COMMENTS_PER_THREAD = 500
|
|
11
|
+
/** The most a page, layer or author name in a comment may hold, in characters. */
|
|
12
|
+
export const COMMENT_NAME_MAX_LENGTH = 255
|
|
13
|
+
const ID_MAX_LENGTH = 200
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Who wrote a comment: an account, whose name is null once it is deleted, or a name a file gave
|
|
17
|
+
* when the comment came in with it, which no account vouches for.
|
|
18
|
+
*/
|
|
19
|
+
export const commentAuthorSchema = v.variant('kind', [
|
|
20
|
+
v.object({ kind: v.literal('user'), id: v.string(), name: v.nullable(v.string()) }),
|
|
21
|
+
v.object({ kind: v.literal('imported'), name: v.string() })
|
|
22
|
+
])
|
|
23
|
+
export type CommentAuthor = v.InferOutput<typeof commentAuthorSchema>
|
|
24
|
+
|
|
25
|
+
export const cloudCommentSchema = v.object({
|
|
26
|
+
id: v.pipe(v.string(), v.uuid()),
|
|
27
|
+
author: commentAuthorSchema,
|
|
28
|
+
/** The agent that wrote it on its author's behalf. */
|
|
29
|
+
agent: v.nullable(v.string()),
|
|
30
|
+
/** Markdown, as the editor writes it. */
|
|
31
|
+
body: v.string(),
|
|
32
|
+
/** The accounts it names, which hear about it. */
|
|
33
|
+
mentions: v.array(v.string()),
|
|
34
|
+
createdAt: v.string(),
|
|
35
|
+
editedAt: v.nullable(v.string())
|
|
36
|
+
})
|
|
37
|
+
export type CloudComment = v.InferOutput<typeof cloudCommentSchema>
|
|
38
|
+
|
|
39
|
+
/** Where a pin sits, as the editor places it. */
|
|
40
|
+
const commentAnchorEntries = {
|
|
41
|
+
pageId: v.pipe(v.string(), v.minLength(1), v.maxLength(ID_MAX_LENGTH)),
|
|
42
|
+
pageName: v.nullable(v.pipe(v.string(), v.maxLength(COMMENT_NAME_MAX_LENGTH))),
|
|
43
|
+
/** The top-level layer the pin follows, if any. */
|
|
44
|
+
nodeId: v.nullable(v.pipe(v.string(), v.minLength(1), v.maxLength(ID_MAX_LENGTH))),
|
|
45
|
+
nodeName: v.nullable(v.pipe(v.string(), v.maxLength(COMMENT_NAME_MAX_LENGTH))),
|
|
46
|
+
/** The pin's offset from the layer's top-left corner. */
|
|
47
|
+
offsetX: v.nullable(v.pipe(v.number(), v.finite())),
|
|
48
|
+
offsetY: v.nullable(v.pipe(v.number(), v.finite())),
|
|
49
|
+
/** The pin's canvas position, used once the layer is gone. */
|
|
50
|
+
x: v.pipe(v.number(), v.finite()),
|
|
51
|
+
y: v.pipe(v.number(), v.finite())
|
|
52
|
+
}
|
|
53
|
+
export const commentAnchorSchema = v.object(commentAnchorEntries)
|
|
54
|
+
export type CommentAnchor = v.InferOutput<typeof commentAnchorSchema>
|
|
55
|
+
|
|
56
|
+
export const cloudCommentThreadSchema = v.object({
|
|
57
|
+
id: v.pipe(v.string(), v.uuid()),
|
|
58
|
+
...commentAnchorEntries,
|
|
59
|
+
createdAt: v.string(),
|
|
60
|
+
/** When anything in the thread last changed: a comment, the pin, or whether it is resolved. */
|
|
61
|
+
updatedAt: v.string(),
|
|
62
|
+
resolvedAt: v.nullable(v.string()),
|
|
63
|
+
resolvedBy: v.nullable(v.string()),
|
|
64
|
+
/** Who started it, or brought it in from a file: they may move its pin and delete it. */
|
|
65
|
+
createdBy: v.string(),
|
|
66
|
+
/** Whether someone else wrote in it since the asker last read it; false for a guest. */
|
|
67
|
+
unread: v.boolean(),
|
|
68
|
+
/** Oldest first; the first is what started the thread. */
|
|
69
|
+
comments: v.array(cloudCommentSchema)
|
|
70
|
+
})
|
|
71
|
+
export type CloudCommentThread = v.InferOutput<typeof cloudCommentThreadSchema>
|
|
72
|
+
|
|
73
|
+
/** What the person asking may do with the document's comments. */
|
|
74
|
+
export const commentAccessSchema = v.object({
|
|
75
|
+
/** Start threads, reply, and change their own comments; anyone signed in who can view. */
|
|
76
|
+
canComment: v.boolean(),
|
|
77
|
+
/** Delete anyone's comments; editors. */
|
|
78
|
+
canModerate: v.boolean(),
|
|
79
|
+
/** The asker's account, which their own comments name; null for a guest. */
|
|
80
|
+
accountId: v.nullable(v.string())
|
|
81
|
+
})
|
|
82
|
+
export type CommentAccess = v.InferOutput<typeof commentAccessSchema>
|
|
83
|
+
|
|
84
|
+
export const commentThreadsSchema = v.object({
|
|
85
|
+
threads: v.array(cloudCommentThreadSchema),
|
|
86
|
+
access: commentAccessSchema
|
|
87
|
+
})
|
|
88
|
+
export type CommentThreads = v.InferOutput<typeof commentThreadsSchema>
|
|
89
|
+
|
|
90
|
+
export const commentThreadResponseSchema = v.object({ thread: cloudCommentThreadSchema })
|
|
91
|
+
|
|
92
|
+
const bodySchema = v.pipe(
|
|
93
|
+
v.string(),
|
|
94
|
+
v.trim(),
|
|
95
|
+
v.minLength(1),
|
|
96
|
+
v.maxLength(COMMENT_BODY_MAX_LENGTH)
|
|
97
|
+
)
|
|
98
|
+
/** The most accounts one comment names. */
|
|
99
|
+
export const MAX_COMMENT_MENTIONS = 50
|
|
100
|
+
/** The accounts a comment names; the server keeps those who can read the document. */
|
|
101
|
+
const mentionsSchema = v.optional(
|
|
102
|
+
v.pipe(
|
|
103
|
+
v.array(v.pipe(v.string(), v.minLength(1), v.maxLength(200))),
|
|
104
|
+
v.maxLength(MAX_COMMENT_MENTIONS)
|
|
105
|
+
),
|
|
106
|
+
[]
|
|
107
|
+
)
|
|
108
|
+
/** The longest agent name a comment keeps. */
|
|
109
|
+
export const MAX_COMMENT_AGENT_LENGTH = 100
|
|
110
|
+
const agentSchema = v.optional(
|
|
111
|
+
v.pipe(v.string(), v.trim(), v.minLength(1), v.maxLength(MAX_COMMENT_AGENT_LENGTH))
|
|
112
|
+
)
|
|
113
|
+
/**
|
|
114
|
+
* The ID the editor gave a new thread or comment, so it keeps showing it as the server's, and a
|
|
115
|
+
* request sent again finds what the first one made.
|
|
116
|
+
*/
|
|
117
|
+
const clientIdSchema = v.optional(v.pipe(v.string(), v.uuid()))
|
|
118
|
+
|
|
119
|
+
export const createCommentThreadSchema = v.object({
|
|
120
|
+
id: clientIdSchema,
|
|
121
|
+
...commentAnchorEntries,
|
|
122
|
+
body: bodySchema,
|
|
123
|
+
mentions: mentionsSchema,
|
|
124
|
+
agent: agentSchema
|
|
125
|
+
})
|
|
126
|
+
export type CreateCommentThreadInput = v.InferOutput<typeof createCommentThreadSchema>
|
|
127
|
+
|
|
128
|
+
/** Resolves or reopens a thread, or moves its pin; what is left out stays as it is. */
|
|
129
|
+
export const updateCommentThreadSchema = v.object({
|
|
130
|
+
resolved: v.optional(v.boolean()),
|
|
131
|
+
anchor: v.optional(commentAnchorSchema)
|
|
132
|
+
})
|
|
133
|
+
export type UpdateCommentThreadInput = v.InferOutput<typeof updateCommentThreadSchema>
|
|
134
|
+
|
|
135
|
+
export const createCommentSchema = v.object({
|
|
136
|
+
id: clientIdSchema,
|
|
137
|
+
body: bodySchema,
|
|
138
|
+
mentions: mentionsSchema,
|
|
139
|
+
agent: agentSchema
|
|
140
|
+
})
|
|
141
|
+
export type CreateCommentInput = v.InferOutput<typeof createCommentSchema>
|
|
142
|
+
|
|
143
|
+
export const updateCommentSchema = v.object({ body: bodySchema, mentions: mentionsSchema })
|
|
144
|
+
export type UpdateCommentInput = v.InferOutput<typeof updateCommentSchema>
|
|
145
|
+
|
|
146
|
+
/** Someone a comment may name: an account that can open the document. */
|
|
147
|
+
export const commentPersonSchema = v.object({
|
|
148
|
+
id: v.string(),
|
|
149
|
+
name: v.string(),
|
|
150
|
+
image: v.nullable(v.string())
|
|
151
|
+
})
|
|
152
|
+
export type CommentPerson = v.InferOutput<typeof commentPersonSchema>
|
|
153
|
+
export const commentPeopleSchema = v.object({ people: v.array(commentPersonSchema) })
|
|
154
|
+
|
|
155
|
+
/** Which comments an account hears about by email. */
|
|
156
|
+
export const commentEmailSettingSchema = v.picklist(['all', 'mentions', 'off'])
|
|
157
|
+
export type CommentEmailSetting = v.InferOutput<typeof commentEmailSettingSchema>
|
|
158
|
+
export const notificationSettingsSchema = v.object({ commentEmails: commentEmailSettingSchema })
|
|
159
|
+
export type NotificationSettings = v.InferOutput<typeof notificationSettingsSchema>
|
|
160
|
+
|
|
161
|
+
/** The most threads, and comments in all, one import brings in. */
|
|
162
|
+
export const MAX_IMPORTED_COMMENT_THREADS = 1_000
|
|
163
|
+
export const MAX_IMPORTED_COMMENTS = 10_000
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Threads a file held when it moved to Cloud. Their authors are names the file gave, which the
|
|
167
|
+
* server keeps as such; their times are the file's.
|
|
168
|
+
*/
|
|
169
|
+
export const importCommentThreadsSchema = v.object({
|
|
170
|
+
threads: v.pipe(
|
|
171
|
+
v.array(
|
|
172
|
+
v.object({
|
|
173
|
+
...commentAnchorEntries,
|
|
174
|
+
createdAt: v.pipe(v.string(), v.isoTimestamp()),
|
|
175
|
+
resolved: v.boolean(),
|
|
176
|
+
// A file's thread comes in whole, however long; only new replies keep to the limit.
|
|
177
|
+
comments: v.pipe(
|
|
178
|
+
v.array(
|
|
179
|
+
v.object({
|
|
180
|
+
authorName: v.pipe(v.string(), v.trim(), v.maxLength(COMMENT_NAME_MAX_LENGTH)),
|
|
181
|
+
body: bodySchema,
|
|
182
|
+
createdAt: v.pipe(v.string(), v.isoTimestamp())
|
|
183
|
+
})
|
|
184
|
+
),
|
|
185
|
+
v.minLength(1),
|
|
186
|
+
v.maxLength(MAX_IMPORTED_COMMENTS)
|
|
187
|
+
)
|
|
188
|
+
})
|
|
189
|
+
),
|
|
190
|
+
v.maxLength(MAX_IMPORTED_COMMENT_THREADS),
|
|
191
|
+
v.check(
|
|
192
|
+
(threads) =>
|
|
193
|
+
threads.reduce((total, thread) => total + thread.comments.length, 0) <=
|
|
194
|
+
MAX_IMPORTED_COMMENTS,
|
|
195
|
+
`An import brings in at most ${MAX_IMPORTED_COMMENTS} comments`
|
|
196
|
+
)
|
|
197
|
+
)
|
|
198
|
+
})
|
|
199
|
+
export type ImportCommentThreadsInput = v.InferOutput<typeof importCommentThreadsSchema>
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* The same requests made through a share link: the link's secret rides in the body, as it does
|
|
203
|
+
* for opening the document, since it must stay out of the address.
|
|
204
|
+
*/
|
|
205
|
+
const shareEntries = { share: v.pick(resolveDocumentShareSchema, ['secret']) }
|
|
206
|
+
export const sharedCommentsRequestSchema = v.object(shareEntries)
|
|
207
|
+
export const sharedCreateCommentThreadSchema = v.object({
|
|
208
|
+
...shareEntries,
|
|
209
|
+
...createCommentThreadSchema.entries
|
|
210
|
+
})
|
|
211
|
+
export const sharedUpdateCommentThreadSchema = v.object({
|
|
212
|
+
...shareEntries,
|
|
213
|
+
...updateCommentThreadSchema.entries
|
|
214
|
+
})
|
|
215
|
+
export const sharedCreateCommentSchema = v.object({
|
|
216
|
+
...shareEntries,
|
|
217
|
+
...createCommentSchema.entries
|
|
218
|
+
})
|
|
219
|
+
export const sharedUpdateCommentSchema = v.object({
|
|
220
|
+
...shareEntries,
|
|
221
|
+
...updateCommentSchema.entries
|
|
222
|
+
})
|
|
223
|
+
export type SharedCommentsRequest = v.InferOutput<typeof sharedCommentsRequestSchema>
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import compareVersions from 'semver/functions/compare.js'
|
|
2
|
+
import parseVersion from 'semver/functions/parse.js'
|
|
1
3
|
import * as v from 'valibot'
|
|
2
4
|
|
|
5
|
+
import { isKnownSocialProvider } from './account'
|
|
3
6
|
import { cloudBillingDiscoverySchema } from './billing'
|
|
4
7
|
import { cloudServicesDiscoverySchema } from './services'
|
|
5
8
|
|
|
@@ -9,6 +12,15 @@ export const CLOUD_DISCOVERY_PATH = '/.well-known/openpencil' as const
|
|
|
9
12
|
export const cloudDeploymentSchema = v.picklist(['official', 'self-hosted'])
|
|
10
13
|
export type CloudDeployment = v.InferOutput<typeof cloudDeploymentSchema>
|
|
11
14
|
|
|
15
|
+
/**
|
|
16
|
+
* The server's sign-in providers that this editor knows. A newer server may offer one this editor
|
|
17
|
+
* has no button for; it is left out rather than failing discovery, so the editor still connects.
|
|
18
|
+
*/
|
|
19
|
+
const socialProvidersSchema = v.pipe(
|
|
20
|
+
v.array(v.string()),
|
|
21
|
+
v.transform((providers) => providers.filter(isKnownSocialProvider))
|
|
22
|
+
)
|
|
23
|
+
|
|
12
24
|
export const cloudAuthenticationSchema = v.object({
|
|
13
25
|
emailPassword: v.optional(
|
|
14
26
|
v.object({
|
|
@@ -23,7 +35,7 @@ export const cloudAuthenticationSchema = v.object({
|
|
|
23
35
|
)
|
|
24
36
|
})
|
|
25
37
|
),
|
|
26
|
-
socialProviders:
|
|
38
|
+
socialProviders: socialProvidersSchema,
|
|
27
39
|
enterpriseSSO: v.boolean(),
|
|
28
40
|
enrollmentMode: v.optional(v.picklist(['open', 'approval', 'closed']), 'open'),
|
|
29
41
|
mfa: v.optional(
|
|
@@ -44,8 +56,28 @@ export const cloudCapabilitiesSchema = v.object({
|
|
|
44
56
|
})
|
|
45
57
|
export type CloudCapabilities = v.InferOutput<typeof cloudCapabilitiesSchema>
|
|
46
58
|
|
|
47
|
-
/**
|
|
48
|
-
|
|
59
|
+
/**
|
|
60
|
+
* An editor version, as SemVer: a release such as `0.18.0`, or a pre-release such as
|
|
61
|
+
* `0.18.0-beta.2` or a nightly's `0.18.0-nightly.20261116`.
|
|
62
|
+
*
|
|
63
|
+
* Editors before 0.18.0 accept only `major.minor.patch` here and fail discovery on anything else,
|
|
64
|
+
* so a server names a pre-release minimum only once its minimum is already 0.18.0 or later.
|
|
65
|
+
*/
|
|
66
|
+
export const cloudEditorVersionSchema = v.pipe(
|
|
67
|
+
v.string(),
|
|
68
|
+
v.check(isSemVer, 'Expected a SemVer version')
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Whether the text is exactly a SemVer version, build metadata included: semver's own parse also
|
|
73
|
+
* takes a `v` prefix or spaces, which a version here never has.
|
|
74
|
+
*/
|
|
75
|
+
function isSemVer(value: string): boolean {
|
|
76
|
+
const parsed = parseVersion(value)
|
|
77
|
+
if (!parsed) return false
|
|
78
|
+
const build = parsed.build.length > 0 ? `+${parsed.build.join('.')}` : ''
|
|
79
|
+
return `${parsed.version}${build}` === value
|
|
80
|
+
}
|
|
49
81
|
|
|
50
82
|
/**
|
|
51
83
|
* The header desktop editors send with each request, naming their version, so a server can refuse
|
|
@@ -54,24 +86,16 @@ export const cloudEditorVersionSchema = v.pipe(v.string(), v.regex(/^\d+\.\d+\.\
|
|
|
54
86
|
*/
|
|
55
87
|
export const CLOUD_EDITOR_VERSION_HEADER = 'X-OpenPencil-Editor-Version' as const
|
|
56
88
|
|
|
57
|
-
function editorVersionParts(version: string): number[] | null {
|
|
58
|
-
const match = /^(\d+)\.(\d+)\.(\d+)/.exec(version)
|
|
59
|
-
return match ? match.slice(1).map(Number) : null
|
|
60
|
-
}
|
|
61
|
-
|
|
62
89
|
/**
|
|
63
|
-
* Whether `version` is `minimum` or later,
|
|
64
|
-
*
|
|
90
|
+
* Whether `version` is `minimum` or later, in SemVer order: a pre-release comes before its
|
|
91
|
+
* release, so `0.18.0-beta.2` is not at least `0.18.0`; a release's nightlies come after its
|
|
92
|
+
* betas and order by date. To admit a release's pre-releases, name the earliest one, such as
|
|
93
|
+
* `0.18.0-beta.1`, or `0.18.0-nightly.20261116` for nightlies from that day on. A
|
|
94
|
+
* version that isn't SemVer, on either side, is not at least anything.
|
|
65
95
|
*/
|
|
66
96
|
export function isEditorVersionAtLeast(version: string, minimum: string): boolean {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
if (!have || !need) return false
|
|
70
|
-
for (let index = 0; index < need.length; index++) {
|
|
71
|
-
const difference = (have[index] ?? 0) - (need[index] ?? 0)
|
|
72
|
-
if (difference !== 0) return difference > 0
|
|
73
|
-
}
|
|
74
|
-
return true
|
|
97
|
+
if (!isSemVer(version) || !isSemVer(minimum)) return false
|
|
98
|
+
return compareVersions(version, minimum) >= 0
|
|
75
99
|
}
|
|
76
100
|
|
|
77
101
|
/**
|
|
@@ -120,8 +144,12 @@ export type CloudBranding = v.InferOutput<typeof cloudBrandingSchema>
|
|
|
120
144
|
/**
|
|
121
145
|
* The server's community gallery: the workspace whose documents anyone may open read-only.
|
|
122
146
|
* Saving to it publishes, so editors never choose it for anyone and say so when it is chosen.
|
|
147
|
+
* `tourDocumentId` is the gallery document editors open as their tour.
|
|
123
148
|
*/
|
|
124
|
-
export const cloudCommunityDiscoverySchema = v.object({
|
|
149
|
+
export const cloudCommunityDiscoverySchema = v.object({
|
|
150
|
+
workspaceId: v.pipe(v.string(), v.uuid()),
|
|
151
|
+
tourDocumentId: v.optional(v.pipe(v.string(), v.uuid()))
|
|
152
|
+
})
|
|
125
153
|
export type CloudCommunityDiscovery = v.InferOutput<typeof cloudCommunityDiscoverySchema>
|
|
126
154
|
|
|
127
155
|
export const cloudDiscoverySchema = v.object({
|
package/src/contract/index.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './account'
|
|
|
2
2
|
export * from './locale'
|
|
3
3
|
export {
|
|
4
4
|
SERVICE_ERROR_STATUS,
|
|
5
|
+
roleModelsSchema,
|
|
5
6
|
serviceCatalogSchema,
|
|
6
7
|
creditBucketSchema,
|
|
7
8
|
serviceErrorCodeSchema,
|
|
@@ -28,6 +29,7 @@ export {
|
|
|
28
29
|
parseUsageQuery,
|
|
29
30
|
parseSearchRequest,
|
|
30
31
|
parseCreateServicesToken,
|
|
32
|
+
type RoleModels,
|
|
31
33
|
type ServiceCatalog,
|
|
32
34
|
type CreditBucket,
|
|
33
35
|
type ServiceError,
|
|
@@ -52,15 +54,19 @@ export {
|
|
|
52
54
|
} from './services'
|
|
53
55
|
export {
|
|
54
56
|
BILLING_ERROR_STATUS,
|
|
57
|
+
CLOUD_ACCOUNT_BILLING_PATH,
|
|
55
58
|
CLOUD_ACCOUNT_PLAN_PATH,
|
|
56
59
|
CLOUD_BILLING_API_PATHS,
|
|
60
|
+
CLOUD_BILLING_PAGE_PATHS,
|
|
57
61
|
CLOUD_BILLING_CONTRACT_VERSION,
|
|
58
62
|
CLOUD_BILLING_TOKEN_AUDIENCE,
|
|
59
63
|
billingAccountSchema,
|
|
60
64
|
billingCatalogSchema,
|
|
61
65
|
billingErrorCodeSchema,
|
|
62
66
|
billingErrorSchema,
|
|
67
|
+
billingFreePlanSchema,
|
|
63
68
|
billingPlanSchema,
|
|
69
|
+
billingSeatPricingSchema,
|
|
64
70
|
billingRedirectSchema,
|
|
65
71
|
billingTokenClaimsSchema,
|
|
66
72
|
billingTokenSchema,
|
|
@@ -71,7 +77,9 @@ export {
|
|
|
71
77
|
type BillingCatalog,
|
|
72
78
|
type BillingError,
|
|
73
79
|
type BillingErrorCode,
|
|
80
|
+
type BillingFreePlan,
|
|
74
81
|
type BillingPlan,
|
|
82
|
+
type BillingSeatPricing,
|
|
75
83
|
type BillingRedirect,
|
|
76
84
|
type BillingToken,
|
|
77
85
|
type BillingTokenClaims,
|
|
@@ -256,6 +264,7 @@ export {
|
|
|
256
264
|
cloudCommunityPagePath,
|
|
257
265
|
cloudDesktopLinkURL,
|
|
258
266
|
cloudDocumentPath,
|
|
267
|
+
cloudCommentURL,
|
|
259
268
|
cloudDocumentURL,
|
|
260
269
|
cloudInvitationURL,
|
|
261
270
|
cloudShareURL,
|
|
@@ -267,6 +276,7 @@ export {
|
|
|
267
276
|
} from './links'
|
|
268
277
|
export { CLOUD_PORTAL_COMMUNITY_PAGES, CLOUD_PORTAL_PAGE_ROOTS, isCloudPortalPage } from './portal'
|
|
269
278
|
export * from './versions'
|
|
279
|
+
export * from './comments'
|
|
270
280
|
export * from './community'
|
|
271
281
|
export {
|
|
272
282
|
DOCUMENT_REPORT_DESCRIPTION_MAX,
|
package/src/contract/links.ts
CHANGED
|
@@ -138,3 +138,8 @@ export function cloudCommunityDesktopLinkURL(
|
|
|
138
138
|
url: cloudCommunityURL(serverURL, documentId, versionId)
|
|
139
139
|
})
|
|
140
140
|
}
|
|
141
|
+
|
|
142
|
+
/** A comment thread on a document, `/documents/:id?comment=…`, which opens it. */
|
|
143
|
+
export function cloudCommentURL(serverURL: string, documentId: string, threadId: string): string {
|
|
144
|
+
return serverLink(serverURL, cloudDocumentPath(documentId), { comment: threadId })
|
|
145
|
+
}
|
package/src/contract/relay.ts
CHANGED
|
@@ -31,7 +31,9 @@ export const COLLAB_ACTIONS = {
|
|
|
31
31
|
agentPreview: 'agent-preview',
|
|
32
32
|
upload: 'upload',
|
|
33
33
|
/** From the server only: the document's version history changed, so open lists load it again. */
|
|
34
|
-
versions: 'versions'
|
|
34
|
+
versions: 'versions',
|
|
35
|
+
/** From the server only: a comment thread changed; the payload is its ID as UTF-8. */
|
|
36
|
+
comments: 'comments'
|
|
35
37
|
} as const
|
|
36
38
|
|
|
37
39
|
/**
|
package/src/contract/services.ts
CHANGED
|
@@ -85,11 +85,51 @@ export type ChatModel = v.InferOutput<typeof chatModelSchema>
|
|
|
85
85
|
export const searchPricingSchema = v.object({ creditsPerRequest: creditsSchema })
|
|
86
86
|
export type SearchPricing = v.InferOutput<typeof searchPricingSchema>
|
|
87
87
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
const modelIDSchema = v.pipe(v.string(), v.minLength(1))
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* The model the service recommends for each of the editor's roles: Design runs the chat, Review
|
|
92
|
+
* critiques designs, Fast does quick tasks such as naming conversations, and Vision reads images.
|
|
93
|
+
* An editor signed in to the service with no model of its own yet sets itself up with them, so
|
|
94
|
+
* nobody has to choose one. Vision `null` recommends none, and the editor leaves it unassigned.
|
|
95
|
+
*/
|
|
96
|
+
export const roleModelsSchema = v.object({
|
|
97
|
+
design: modelIDSchema,
|
|
98
|
+
review: modelIDSchema,
|
|
99
|
+
fast: modelIDSchema,
|
|
100
|
+
vision: v.nullable(modelIDSchema)
|
|
92
101
|
})
|
|
102
|
+
export type RoleModels = v.InferOutput<typeof roleModelsSchema>
|
|
103
|
+
|
|
104
|
+
export const serviceCatalogSchema = v.pipe(
|
|
105
|
+
v.object({
|
|
106
|
+
models: v.array(chatModelSchema),
|
|
107
|
+
defaultModelID: modelIDSchema,
|
|
108
|
+
/**
|
|
109
|
+
* Absent from a service that predates it, or whose default model can't run the chat. Editors
|
|
110
|
+
* then use `defaultModelID` for every role, except Vision when that model reads no images,
|
|
111
|
+
* and set nothing up when it calls no tools.
|
|
112
|
+
*/
|
|
113
|
+
roleModels: v.optional(roleModelsSchema),
|
|
114
|
+
search: v.optional(searchPricingSchema)
|
|
115
|
+
}),
|
|
116
|
+
// Every recommendation names a model the catalog lists and can do its role: Design and Fast
|
|
117
|
+
// call tools, and Vision reads images. An editor then never sets up a role it can't run.
|
|
118
|
+
v.check(({ models, roleModels }) => {
|
|
119
|
+
if (!roleModels) return true
|
|
120
|
+
const can = (id: string | null, capability: 'tools' | 'vision' | null) => {
|
|
121
|
+
if (id === null) return true
|
|
122
|
+
const model = models.find((candidate) => candidate.id === id)
|
|
123
|
+
return model !== undefined && (capability === null || model.capabilities[capability])
|
|
124
|
+
}
|
|
125
|
+
return (
|
|
126
|
+
can(roleModels.design, 'tools') &&
|
|
127
|
+
can(roleModels.review, null) &&
|
|
128
|
+
can(roleModels.fast, 'tools') &&
|
|
129
|
+
can(roleModels.vision, 'vision')
|
|
130
|
+
)
|
|
131
|
+
}, 'A recommended model is not in the catalog or cannot do its role')
|
|
132
|
+
)
|
|
93
133
|
export type ServiceCatalog = v.InferOutput<typeof serviceCatalogSchema>
|
|
94
134
|
|
|
95
135
|
export const creditBucketSchema = v.object({
|
|
@@ -8,6 +8,11 @@ export const workspaceSummarySchema = v.object({
|
|
|
8
8
|
name: v.string(),
|
|
9
9
|
slug: v.string(),
|
|
10
10
|
role: workspaceRoleSchema,
|
|
11
|
+
/**
|
|
12
|
+
* Whether the signed-in account owns the workspace, and so pays for its plan and AI credits.
|
|
13
|
+
* Absent from servers released before it.
|
|
14
|
+
*/
|
|
15
|
+
owner: v.optional(v.boolean()),
|
|
11
16
|
createdAt: v.string(),
|
|
12
17
|
updatedAt: v.string()
|
|
13
18
|
})
|
|
@@ -37,6 +37,21 @@
|
|
|
37
37
|
"enrollmentRevokedPreview": "لم يعد وصولك إلى OpenPencil Cloud نشطًا.",
|
|
38
38
|
"enrollmentRevoked": "لم يعد وصولك إلى OpenPencil Cloud نشطًا.",
|
|
39
39
|
"enrollmentRevokedAction": "فتح OpenPencil",
|
|
40
|
+
"invitationSubject": "يمكنك تجربة OpenPencil Cloud الآن",
|
|
41
|
+
"invitationHeading": "Cloud مفتوح",
|
|
42
|
+
"invitationPreview": "OpenPencil Cloud مفتوح الآن، ويمكنك تسجيل الدخول.",
|
|
43
|
+
"invitationWaitlistSubject": "OpenPencil Cloud جاهز",
|
|
44
|
+
"invitationWaitlistPreview": "انضممت إلى قائمة الانتظار؛ وقد فُتح Cloud الآن.",
|
|
45
|
+
"invitationWaitlistBeta": "لا يزال إصدارًا تجريبيًا: بعض الميزات معطّلة، وستتعطل بعض الأشياء. حين يحدث ذلك، ردّ على هذه الرسالة وأخبرني، أو {link} إن كان ذلك مريحًا لك. أقرأ الاثنين.",
|
|
46
|
+
"invitationWaitlistThanks": "شكرًا لانضمامك إلى قائمة انتظار OpenPencil Cloud. هذه هي الرسالة الوحيدة التي وعدناك بها: فُتح Cloud، ويمكنك تسجيل الدخول الآن.",
|
|
47
|
+
"invitationThanks": "وصلنا طلبك قبل مدة لتجربة OpenPencil Cloud. شكرًا على اهتمامك وعلى صبرك. كنا لا نزال نختبره حينها، ولم نكن مستعدين لفتحه لأحد.",
|
|
48
|
+
"invitationBeta": "إنه مفتوح الآن، ويمكنك تسجيل الدخول. لا يزال إصدارًا تجريبيًا: بعض الميزات معطّلة، وستتعطل بعض الأشياء. حين يحدث ذلك، ردّ على هذه الرسالة وأخبرني، أو {link} إن كان ذلك مريحًا لك. أقرأ الاثنين.",
|
|
49
|
+
"invitationIssueLink": "افتح مشكلة على GitHub",
|
|
50
|
+
"invitationDesktop": "لاستخدام Cloud في تطبيق سطح المكتب، تحتاج إلى الإصدار التجريبي من {link}.",
|
|
51
|
+
"invitationDownloadLink": "صفحة التنزيل",
|
|
52
|
+
"invitationAction": "افتح Cloud",
|
|
53
|
+
"invitationSignatureName": "دانيلا",
|
|
54
|
+
"invitationSignatureRole": "مؤسس OpenPencil",
|
|
40
55
|
"enrollmentNotificationSubject": "طلب وصول جديد إلى OpenPencil Cloud",
|
|
41
56
|
"enrollmentNotificationHeading": "طلب وصول جديد",
|
|
42
57
|
"enrollmentNotificationPreview": "طلب {email} الوصول إلى OpenPencil Cloud.",
|
|
@@ -100,6 +115,9 @@
|
|
|
100
115
|
"passkeyRemoved": "تمت إزالة مفتاح مرور من حسابك.",
|
|
101
116
|
"twoStepResetHeading": "تمت إعادة تعيين تسجيل الدخول بخطوتين",
|
|
102
117
|
"twoStepReset": "أزال أحد المسؤولين تطبيق المصادقة ورموز الاستعادة ومفاتيح المرور الخاصة بك، لتتمكن من إعدادها مجددًا.",
|
|
118
|
+
"signInMethodRemovedHeading": "تمت إزالة طريقة لتسجيل الدخول",
|
|
119
|
+
"signInMethodRemoved": "أزال أحد المسؤولين طريقة لتسجيل الدخول إلى حسابك: {method}.",
|
|
120
|
+
"signInMethodPassword": "كلمة المرور",
|
|
103
121
|
"twoStepNotYou": "إن لم تكن أنت، فغيّر كلمة مرورك وتواصل مع المسؤول.",
|
|
104
122
|
"reviewSecurity": "مراجعة الأمان",
|
|
105
123
|
"storageFullSubject": "ملفاتك على OpenPencil Cloud للقراءة فقط",
|
|
@@ -131,6 +149,16 @@
|
|
|
131
149
|
"reportDismissed": "راجع المسؤولون بلاغك بشأن «{document}» ووجدوا أنه لا يخالف القواعد، لذا سيبقى كما هو.",
|
|
132
150
|
"reportDisagree": "إذا كنت لا توافق على ذلك، فراسل {email}.",
|
|
133
151
|
"reportDisagreeAdministrators": "إذا كنت لا توافق على ذلك، فاطلب من مسؤولي الخادم إعادة النظر فيه.",
|
|
152
|
+
"commentMentionSubject": "أشار إليك {author} في «{document}»",
|
|
153
|
+
"commentReplySubject": "ردّ {author} في «{document}»",
|
|
154
|
+
"commentMentionHeading": "تمت الإشارة إليك",
|
|
155
|
+
"commentReplyHeading": "رد جديد",
|
|
156
|
+
"commentMention": "أشار إليك {author} في تعليق على «{document}»:",
|
|
157
|
+
"commentReply": "ردّ {author} في نقاش تشارك فيه على «{document}»:",
|
|
158
|
+
"commentSomeone": "شخص ما",
|
|
159
|
+
"openComment": "افتح التعليق",
|
|
160
|
+
"commentSettings": "تصلك هذه الرسائل وفق إعدادات الإشعارات لديك. غيّرها في {link}.",
|
|
161
|
+
"commentSettingsLink": "إعدادات حسابك",
|
|
134
162
|
"waitlistSubject": "أكّد مكانك في قائمة انتظار OpenPencil Cloud",
|
|
135
163
|
"waitlistHeading": "أكّد بريدك الإلكتروني",
|
|
136
164
|
"waitlistPreview": "نقرة واحدة للانضمام إلى قائمة انتظار OpenPencil Cloud.",
|
|
@@ -37,6 +37,21 @@
|
|
|
37
37
|
"enrollmentRevokedPreview": "Dein Zugang zu OpenPencil Cloud ist nicht mehr aktiv.",
|
|
38
38
|
"enrollmentRevoked": "Dein Zugang zu OpenPencil Cloud ist nicht mehr aktiv.",
|
|
39
39
|
"enrollmentRevokedAction": "OpenPencil öffnen",
|
|
40
|
+
"invitationSubject": "Du kannst OpenPencil Cloud jetzt ausprobieren",
|
|
41
|
+
"invitationHeading": "Cloud ist geöffnet",
|
|
42
|
+
"invitationPreview": "OpenPencil Cloud ist geöffnet, du kannst dich jetzt anmelden.",
|
|
43
|
+
"invitationWaitlistSubject": "OpenPencil Cloud ist bereit",
|
|
44
|
+
"invitationWaitlistPreview": "Du hast dich auf die Warteliste gesetzt; Cloud ist jetzt offen.",
|
|
45
|
+
"invitationWaitlistBeta": "Es ist noch eine Beta: Manche Funktionen sind abgeschaltet, und manches wird kaputtgehen. Wenn das passiert, antworte einfach auf diese E-Mail, oder {link}, wenn dir das lieber ist. Ich lese beides.",
|
|
46
|
+
"invitationWaitlistThanks": "Danke, dass du dich auf die Warteliste für OpenPencil Cloud gesetzt hast. Hier ist die eine E-Mail, die wir versprochen haben: Cloud ist offen, und du kannst dich jetzt anmelden.",
|
|
47
|
+
"invitationThanks": "Vor einer Weile wolltest du OpenPencil Cloud ausprobieren. Danke, dass du neugierig genug warst zu fragen, und dass du gewartet hast. Wir haben damals noch getestet und waren nicht so weit, jemanden reinzulassen.",
|
|
48
|
+
"invitationBeta": "Jetzt ist Cloud geöffnet, und du kannst dich anmelden. Es ist noch eine Beta: Manche Funktionen sind abgeschaltet, und manches wird kaputtgehen. Wenn das passiert, antworte einfach auf diese E-Mail, oder {link}, wenn dir das lieber ist. Ich lese beides.",
|
|
49
|
+
"invitationIssueLink": "eröffne ein Issue auf GitHub",
|
|
50
|
+
"invitationDesktop": "Für Cloud in der Desktop-App brauchst du die Beta-Version von der {link}.",
|
|
51
|
+
"invitationDownloadLink": "Download-Seite",
|
|
52
|
+
"invitationAction": "Cloud öffnen",
|
|
53
|
+
"invitationSignatureName": "Danila",
|
|
54
|
+
"invitationSignatureRole": "Gründer von OpenPencil",
|
|
40
55
|
"enrollmentNotificationSubject": "Neue Zugangsanfrage für OpenPencil Cloud",
|
|
41
56
|
"enrollmentNotificationHeading": "Neue Zugangsanfrage",
|
|
42
57
|
"enrollmentNotificationPreview": "{email} hat Zugang zu OpenPencil Cloud angefragt.",
|
|
@@ -100,6 +115,9 @@
|
|
|
100
115
|
"passkeyRemoved": "Ein Passkey wurde aus deinem Konto entfernt.",
|
|
101
116
|
"twoStepResetHeading": "Zweistufige Anmeldung zurückgesetzt",
|
|
102
117
|
"twoStepReset": "Ein Administrator hat deine Authenticator-App, Wiederherstellungscodes und Passkeys entfernt, damit du sie neu einrichten kannst.",
|
|
118
|
+
"signInMethodRemovedHeading": "Anmeldemethode entfernt",
|
|
119
|
+
"signInMethodRemoved": "Ein Administrator hat eine Anmeldemethode deines Kontos entfernt: {method}.",
|
|
120
|
+
"signInMethodPassword": "Passwort",
|
|
103
121
|
"twoStepNotYou": "Wenn du das nicht warst, ändere dein Passwort und wende dich an deinen Administrator.",
|
|
104
122
|
"reviewSecurity": "Sicherheit überprüfen",
|
|
105
123
|
"storageFullSubject": "Deine Dateien in OpenPencil Cloud sind schreibgeschützt",
|
|
@@ -131,6 +149,16 @@
|
|
|
131
149
|
"reportDismissed": "Die Administratoren haben deine Meldung zu „{document}“ geprüft und keinen Regelverstoß festgestellt. Das Dokument bleibt daher unverändert.",
|
|
132
150
|
"reportDisagree": "Wenn du anderer Meinung bist, schreib an {email}.",
|
|
133
151
|
"reportDisagreeAdministrators": "Wenn du anderer Meinung bist, bitte die Administratoren des Servers, es noch einmal zu prüfen.",
|
|
152
|
+
"commentMentionSubject": "{author} hat dich in „{document}“ erwähnt",
|
|
153
|
+
"commentReplySubject": "{author} hat in „{document}“ geantwortet",
|
|
154
|
+
"commentMentionHeading": "Du wurdest erwähnt",
|
|
155
|
+
"commentReplyHeading": "Neue Antwort",
|
|
156
|
+
"commentMention": "{author} hat dich in einem Kommentar zu „{document}“ erwähnt:",
|
|
157
|
+
"commentReply": "{author} hat in einem Thread zu „{document}“ geantwortet, an dem du beteiligt bist:",
|
|
158
|
+
"commentSomeone": "Jemand",
|
|
159
|
+
"openComment": "Kommentar öffnen",
|
|
160
|
+
"commentSettings": "Du bekommst diese E-Mails, wie es deine Benachrichtigungseinstellungen vorsehen. Ändere sie in {link}.",
|
|
161
|
+
"commentSettingsLink": "deinen Kontoeinstellungen",
|
|
134
162
|
"waitlistSubject": "Bestätige deinen Platz auf der Warteliste für OpenPencil Cloud",
|
|
135
163
|
"waitlistHeading": "Bestätige deine E-Mail-Adresse",
|
|
136
164
|
"waitlistPreview": "Ein Klick, und du stehst auf der Warteliste für OpenPencil Cloud.",
|
|
@@ -37,6 +37,21 @@
|
|
|
37
37
|
"enrollmentRevokedPreview": "Tu acceso a OpenPencil Cloud ya no está activo.",
|
|
38
38
|
"enrollmentRevoked": "Tu acceso a OpenPencil Cloud ya no está activo.",
|
|
39
39
|
"enrollmentRevokedAction": "Abrir OpenPencil",
|
|
40
|
+
"invitationSubject": "Ya puedes probar OpenPencil Cloud",
|
|
41
|
+
"invitationHeading": "Cloud está abierto",
|
|
42
|
+
"invitationPreview": "OpenPencil Cloud está abierto y ya puedes iniciar sesión.",
|
|
43
|
+
"invitationWaitlistSubject": "OpenPencil Cloud está listo",
|
|
44
|
+
"invitationWaitlistPreview": "Te uniste a la lista de espera; Cloud ya está abierto.",
|
|
45
|
+
"invitationWaitlistBeta": "Todavía es una beta: algunas funciones están desactivadas y algunas cosas se van a romper. Cuando pase, responde a este correo y cuéntamelo, o {link} si te resulta cómodo. Leo las dos cosas.",
|
|
46
|
+
"invitationWaitlistThanks": "Gracias por unirte a la lista de espera de OpenPencil Cloud. Este es el único correo que te prometimos: Cloud ya está abierto y puedes iniciar sesión.",
|
|
47
|
+
"invitationThanks": "Hace un tiempo pediste probar OpenPencil Cloud. Gracias por tener la curiosidad de pedirlo, y por esperar. Todavía lo estábamos probando y no estábamos listos para dejar entrar a nadie.",
|
|
48
|
+
"invitationBeta": "Ahora está abierto y ya puedes iniciar sesión. Todavía es una beta: algunas funciones están desactivadas y algunas cosas se van a romper. Cuando pase, responde a este correo y cuéntamelo, o {link} si te resulta cómodo. Leo las dos cosas.",
|
|
49
|
+
"invitationIssueLink": "abre un issue en GitHub",
|
|
50
|
+
"invitationDesktop": "Para usar Cloud en la aplicación de escritorio, necesitas la versión beta de la {link}.",
|
|
51
|
+
"invitationDownloadLink": "página de descargas",
|
|
52
|
+
"invitationAction": "Abrir Cloud",
|
|
53
|
+
"invitationSignatureName": "Danila",
|
|
54
|
+
"invitationSignatureRole": "Fundador de OpenPencil",
|
|
40
55
|
"enrollmentNotificationSubject": "Nueva solicitud de acceso a OpenPencil Cloud",
|
|
41
56
|
"enrollmentNotificationHeading": "Nueva solicitud de acceso",
|
|
42
57
|
"enrollmentNotificationPreview": "{email} ha solicitado acceso a OpenPencil Cloud.",
|
|
@@ -100,6 +115,9 @@
|
|
|
100
115
|
"passkeyRemoved": "Se ha eliminado una llave de acceso de tu cuenta.",
|
|
101
116
|
"twoStepResetHeading": "Se ha restablecido la verificación en dos pasos",
|
|
102
117
|
"twoStepReset": "Un administrador ha eliminado tu app de autenticación, tus códigos de recuperación y tus llaves de acceso para que puedas volver a configurarlos.",
|
|
118
|
+
"signInMethodRemovedHeading": "Se ha eliminado un método de inicio de sesión",
|
|
119
|
+
"signInMethodRemoved": "Un administrador ha eliminado un método de inicio de sesión de tu cuenta: {method}.",
|
|
120
|
+
"signInMethodPassword": "contraseña",
|
|
103
121
|
"twoStepNotYou": "Si no has sido tú, cambia tu contraseña y ponte en contacto con tu administrador.",
|
|
104
122
|
"reviewSecurity": "Revisar seguridad",
|
|
105
123
|
"storageFullSubject": "Tus archivos de OpenPencil Cloud son de solo lectura",
|
|
@@ -131,6 +149,16 @@
|
|
|
131
149
|
"reportDismissed": "Los administradores han revisado tu denuncia sobre «{document}» y han determinado que no incumple las normas, así que se mantiene tal como está.",
|
|
132
150
|
"reportDisagree": "Si no estás de acuerdo, escribe a {email}.",
|
|
133
151
|
"reportDisagreeAdministrators": "Si no estás de acuerdo, pide a los administradores del servidor que lo revisen de nuevo.",
|
|
152
|
+
"commentMentionSubject": "{author} te mencionó en «{document}»",
|
|
153
|
+
"commentReplySubject": "{author} respondió en «{document}»",
|
|
154
|
+
"commentMentionHeading": "Te mencionaron",
|
|
155
|
+
"commentReplyHeading": "Nueva respuesta",
|
|
156
|
+
"commentMention": "{author} te mencionó en un comentario de «{document}»:",
|
|
157
|
+
"commentReply": "{author} respondió en una conversación de «{document}» en la que participas:",
|
|
158
|
+
"commentSomeone": "Alguien",
|
|
159
|
+
"openComment": "Abrir el comentario",
|
|
160
|
+
"commentSettings": "Recibes estos correos según tus ajustes de notificaciones. Cámbialos en {link}.",
|
|
161
|
+
"commentSettingsLink": "los ajustes de tu cuenta",
|
|
134
162
|
"waitlistSubject": "Confirma tu plaza en la lista de espera de OpenPencil Cloud",
|
|
135
163
|
"waitlistHeading": "Confirma tu correo",
|
|
136
164
|
"waitlistPreview": "Un clic para unirte a la lista de espera de OpenPencil Cloud.",
|