@meltemi/diagrams-cli 0.0.0-stage → 1.9.0

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.
Files changed (163) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +58 -2
  3. package/dist/assets-command.d.ts +16 -0
  4. package/dist/assets-command.d.ts.map +1 -0
  5. package/dist/assets-command.js +145 -0
  6. package/dist/assets-command.js.map +1 -0
  7. package/dist/assist-command.d.ts +19 -0
  8. package/dist/assist-command.d.ts.map +1 -0
  9. package/dist/assist-command.js +268 -0
  10. package/dist/assist-command.js.map +1 -0
  11. package/dist/auth-command.d.ts +14 -0
  12. package/dist/auth-command.d.ts.map +1 -0
  13. package/dist/auth-command.js +233 -0
  14. package/dist/auth-command.js.map +1 -0
  15. package/dist/bin.d.ts +3 -0
  16. package/dist/bin.d.ts.map +1 -0
  17. package/dist/bin.js +60 -0
  18. package/dist/bin.js.map +1 -0
  19. package/dist/build-command.d.ts +23 -0
  20. package/dist/build-command.d.ts.map +1 -0
  21. package/dist/build-command.js +123 -0
  22. package/dist/build-command.js.map +1 -0
  23. package/dist/cli.d.ts +46 -0
  24. package/dist/cli.d.ts.map +1 -0
  25. package/dist/cli.js +823 -0
  26. package/dist/cli.js.map +1 -0
  27. package/dist/cloud-client.d.ts +246 -0
  28. package/dist/cloud-client.d.ts.map +1 -0
  29. package/dist/cloud-client.js +591 -0
  30. package/dist/cloud-client.js.map +1 -0
  31. package/dist/cloud-command.d.ts +56 -0
  32. package/dist/cloud-command.d.ts.map +1 -0
  33. package/dist/cloud-command.js +81 -0
  34. package/dist/cloud-command.js.map +1 -0
  35. package/dist/cloud-context.d.ts +106 -0
  36. package/dist/cloud-context.d.ts.map +1 -0
  37. package/dist/cloud-context.js +185 -0
  38. package/dist/cloud-context.js.map +1 -0
  39. package/dist/cloud-errors.d.ts +37 -0
  40. package/dist/cloud-errors.d.ts.map +1 -0
  41. package/dist/cloud-errors.js +46 -0
  42. package/dist/cloud-errors.js.map +1 -0
  43. package/dist/cloud-host.d.ts +72 -0
  44. package/dist/cloud-host.d.ts.map +1 -0
  45. package/dist/cloud-host.js +129 -0
  46. package/dist/cloud-host.js.map +1 -0
  47. package/dist/cloud-manifest.d.ts +12 -0
  48. package/dist/cloud-manifest.d.ts.map +1 -0
  49. package/dist/cloud-manifest.js +21 -0
  50. package/dist/cloud-manifest.js.map +1 -0
  51. package/dist/cloud-paths.d.ts +48 -0
  52. package/dist/cloud-paths.d.ts.map +1 -0
  53. package/dist/cloud-paths.js +104 -0
  54. package/dist/cloud-paths.js.map +1 -0
  55. package/dist/credentials.d.ts +107 -0
  56. package/dist/credentials.d.ts.map +1 -0
  57. package/dist/credentials.js +243 -0
  58. package/dist/credentials.js.map +1 -0
  59. package/dist/export-command.d.ts +35 -0
  60. package/dist/export-command.d.ts.map +1 -0
  61. package/dist/export-command.js +524 -0
  62. package/dist/export-command.js.map +1 -0
  63. package/dist/import-command.d.ts +20 -0
  64. package/dist/import-command.d.ts.map +1 -0
  65. package/dist/import-command.js +254 -0
  66. package/dist/import-command.js.map +1 -0
  67. package/dist/index.d.ts +4 -0
  68. package/dist/index.d.ts.map +1 -0
  69. package/dist/index.js +4 -0
  70. package/dist/index.js.map +1 -0
  71. package/dist/init-command.d.ts +28 -0
  72. package/dist/init-command.d.ts.map +1 -0
  73. package/dist/init-command.js +199 -0
  74. package/dist/init-command.js.map +1 -0
  75. package/dist/login-listener.d.ts +58 -0
  76. package/dist/login-listener.d.ts.map +1 -0
  77. package/dist/login-listener.js +173 -0
  78. package/dist/login-listener.js.map +1 -0
  79. package/dist/messages/en.d.ts +533 -0
  80. package/dist/messages/en.d.ts.map +1 -0
  81. package/dist/messages/en.js +803 -0
  82. package/dist/messages/en.js.map +1 -0
  83. package/dist/messages/es.d.ts +3 -0
  84. package/dist/messages/es.d.ts.map +1 -0
  85. package/dist/messages/es.js +764 -0
  86. package/dist/messages/es.js.map +1 -0
  87. package/dist/messages/index.d.ts +442 -0
  88. package/dist/messages/index.d.ts.map +1 -0
  89. package/dist/messages/index.js +42 -0
  90. package/dist/messages/index.js.map +1 -0
  91. package/dist/messages/push-pull-en.d.ts +84 -0
  92. package/dist/messages/push-pull-en.d.ts.map +1 -0
  93. package/dist/messages/push-pull-en.js +146 -0
  94. package/dist/messages/push-pull-en.js.map +1 -0
  95. package/dist/messages/push-pull-es.d.ts +7 -0
  96. package/dist/messages/push-pull-es.d.ts.map +1 -0
  97. package/dist/messages/push-pull-es.js +144 -0
  98. package/dist/messages/push-pull-es.js.map +1 -0
  99. package/dist/open-url.d.ts +11 -0
  100. package/dist/open-url.d.ts.map +1 -0
  101. package/dist/open-url.js +36 -0
  102. package/dist/open-url.js.map +1 -0
  103. package/dist/plugins-command.d.ts +15 -0
  104. package/dist/plugins-command.d.ts.map +1 -0
  105. package/dist/plugins-command.js +106 -0
  106. package/dist/plugins-command.js.map +1 -0
  107. package/dist/preview.d.ts +54 -0
  108. package/dist/preview.d.ts.map +1 -0
  109. package/dist/preview.js +249 -0
  110. package/dist/preview.js.map +1 -0
  111. package/dist/project-errors.d.ts +17 -0
  112. package/dist/project-errors.d.ts.map +1 -0
  113. package/dist/project-errors.js +85 -0
  114. package/dist/project-errors.js.map +1 -0
  115. package/dist/projects-command.d.ts +13 -0
  116. package/dist/projects-command.d.ts.map +1 -0
  117. package/dist/projects-command.js +85 -0
  118. package/dist/projects-command.js.map +1 -0
  119. package/dist/publish-command.d.ts +41 -0
  120. package/dist/publish-command.d.ts.map +1 -0
  121. package/dist/publish-command.js +311 -0
  122. package/dist/publish-command.js.map +1 -0
  123. package/dist/pull-command.d.ts +21 -0
  124. package/dist/pull-command.d.ts.map +1 -0
  125. package/dist/pull-command.js +300 -0
  126. package/dist/pull-command.js.map +1 -0
  127. package/dist/push-command.d.ts +31 -0
  128. package/dist/push-command.d.ts.map +1 -0
  129. package/dist/push-command.js +391 -0
  130. package/dist/push-command.js.map +1 -0
  131. package/dist/push-review.d.ts +16 -0
  132. package/dist/push-review.d.ts.map +1 -0
  133. package/dist/push-review.js +72 -0
  134. package/dist/push-review.js.map +1 -0
  135. package/dist/push-set.d.ts +126 -0
  136. package/dist/push-set.d.ts.map +1 -0
  137. package/dist/push-set.js +289 -0
  138. package/dist/push-set.js.map +1 -0
  139. package/dist/push-validation.d.ts +20 -0
  140. package/dist/push-validation.d.ts.map +1 -0
  141. package/dist/push-validation.js +70 -0
  142. package/dist/push-validation.js.map +1 -0
  143. package/dist/redact.d.ts +9 -0
  144. package/dist/redact.d.ts.map +1 -0
  145. package/dist/redact.js +22 -0
  146. package/dist/redact.js.map +1 -0
  147. package/dist/review-command.d.ts +44 -0
  148. package/dist/review-command.d.ts.map +1 -0
  149. package/dist/review-command.js +348 -0
  150. package/dist/review-command.js.map +1 -0
  151. package/package.json +56 -3
  152. package/templates/c4/diagrams/views.meltemi +16 -0
  153. package/templates/c4/models/system.meltemi +23 -0
  154. package/templates/ci/github.yml +96 -0
  155. package/templates/ci/gitlab.yml +53 -0
  156. package/templates/flow/diagrams/overview.meltemi +15 -0
  157. package/templates/free/diagrams/slide.meltemi +39 -0
  158. package/templates/purchase/diagrams/architecture.meltemi +36 -0
  159. package/templates/purchase/diagrams/executive.meltemi +52 -0
  160. package/templates/purchase/diagrams/payment.meltemi +42 -0
  161. package/templates/purchase/models/commerce.meltemi +30 -0
  162. package/templates/purchase/stories/purchase.meltemi +38 -0
  163. package/templates/sequence/diagrams/sign-in.meltemi +36 -0
@@ -0,0 +1,533 @@
1
+ /**
2
+ * The command line's words in English: help, usage errors, messages, summaries, progress and
3
+ * prompts, in the interface language; and the words of the review report, in the language of the
4
+ * files a command writes. Commands, options, values, file names and codes are not words and stay as
5
+ * written. Sentences with values are functions, so each language builds its own grammar.
6
+ */
7
+ export declare const en: {
8
+ /** The help of the command line and of each command. */
9
+ help: {
10
+ /** `meltemi-diagrams --help`: the command's name and its short alias. */
11
+ main: (name: string, alias: string) => string;
12
+ /** `init --help`: the template names, joined. */
13
+ init: (templates: string) => string;
14
+ import: string;
15
+ review: string;
16
+ assets: string;
17
+ plugins: string;
18
+ build: string;
19
+ preview: string;
20
+ assist: string;
21
+ push: string;
22
+ pull: string;
23
+ login: string;
24
+ logout: string;
25
+ whoami: string;
26
+ publish: string;
27
+ projects: string;
28
+ };
29
+ /** Usage errors and messages that several commands share. */
30
+ common: {
31
+ /** `--lang` with another value. */
32
+ lang: string;
33
+ /** The command `meltemi-diagrams frobnicate`: the program's name and the command. */
34
+ unknownCommand: (name: string, command: string) => string;
35
+ /** An error the program did not expect, with its message. */
36
+ internalError: (name: string, message: string) => string;
37
+ /** The word before each hint of a diagnostic: ` hint: Declare it first…`. */
38
+ hint: string;
39
+ /** A file or folder that cannot be read, with the system's reason when there is one. */
40
+ cannotRead: (path: string, reason?: string) => string;
41
+ cannotWrite: (path: string, reason: string) => string;
42
+ pathNotFound: (path: string) => string;
43
+ wrote: (path: string) => string;
44
+ atLeastOnePath: string;
45
+ oneMeltemiFile: string;
46
+ oneProject: string;
47
+ oneProjectFolderOrFile: string;
48
+ cannotCombine: (first: string, second: string) => string;
49
+ /** A diagram id that a file does not have, and the ids it has. */
50
+ noDiagram: (id: string, path: string, available: readonly string[]) => string;
51
+ /**
52
+ * Errors in the arguments, by Node's error code: `message` is Node's own text, which English
53
+ * keeps, and `name` the option or argument it names (`--diagram <value>`, `--check`).
54
+ */
55
+ arguments: {
56
+ unknownOption: (message: string, _name: string) => string;
57
+ missingValue: (message: string, _name: string) => string;
58
+ noValue: (message: string, _name: string) => string;
59
+ ambiguous: (message: string, _name: string) => string;
60
+ unexpected: (message: string, _name: string) => string;
61
+ };
62
+ };
63
+ validate: {
64
+ /** The last line: files, errors and warnings. */
65
+ summary: (files: number, errors: number, warnings: number) => string;
66
+ };
67
+ layout: {
68
+ sequence: (id: string) => string;
69
+ cannotWrite: (id: string, reason: string) => string;
70
+ unchanged: (path: string) => string;
71
+ wouldArrange: (ids: readonly string[], path: string) => string;
72
+ arranged: (ids: readonly string[], path: string) => string;
73
+ };
74
+ convert: {
75
+ giveTo: string;
76
+ outWithJson: string;
77
+ noFlowDiagram: (id: string, path: string, available: readonly string[]) => string;
78
+ noFlow: (path: string) => string;
79
+ severalFlows: (path: string, ids: readonly string[]) => string;
80
+ cannotDraw: (id: string) => string;
81
+ wouldConvert: (id: string, copy: string, path: string) => string;
82
+ converted: (id: string, copy: string, path: string) => string;
83
+ /** An option that `--to json` does not take, such as `--diagram`. */
84
+ notForJson: (option: string) => string;
85
+ wroteJson: (source: string, target: string, ok: boolean) => string;
86
+ };
87
+ format: {
88
+ stdoutOne: string;
89
+ stdoutOneFile: string;
90
+ /** The message of `format.syntax-errors`. */
91
+ syntaxErrors: string;
92
+ wouldFormat: (path: string) => string;
93
+ formatted: (path: string) => string;
94
+ checkedAll: (files: number) => string;
95
+ checked: (files: number, changed: number, refused: number) => string;
96
+ summary: (changed: number, files: number) => string;
97
+ };
98
+ export: {
99
+ /** A picture written with a browser, named with its version. */
100
+ wroteViews: (path: string, views: number) => string;
101
+ wrotePicture: (path: string, browser: string) => string;
102
+ wroteVideo: (path: string, browser: string, ffmpeg: string, frames: number) => string;
103
+ /** `export.no-diagram`, with the types of the blocks that are not diagram types. */
104
+ noDiagram: (types: readonly string[]) => string;
105
+ noDiagramStoriesHint: string;
106
+ noDiagramTypesHint: string;
107
+ onePath: string;
108
+ profileOrProfiles: string;
109
+ profileOption: (option: string) => string;
110
+ profilesOut: string;
111
+ format: (format: string, formats: readonly string[]) => string;
112
+ fonts: (fonts: string, policies: readonly string[]) => string;
113
+ motion: (motion: string, modes: readonly string[]) => string;
114
+ at: (at: string) => string;
115
+ atAnimated: string;
116
+ story: (option: string) => string;
117
+ html: (option: string) => string;
118
+ embed: string;
119
+ picture: (format: string) => string;
120
+ video: (format: string, option: string) => string;
121
+ stdoutFile: (format: string) => string;
122
+ fpsVideo: string;
123
+ fps: (fps: string) => string;
124
+ durationVideo: string;
125
+ duration: (duration: string) => string;
126
+ scalePng: string;
127
+ scale: (scale: string) => string;
128
+ sizeOutput: string;
129
+ size: (max: number, size: string) => string;
130
+ backgroundHtml: string;
131
+ background: (background: string) => string;
132
+ mp4Transparent: string;
133
+ linkFormats: string;
134
+ link: (link: string) => string;
135
+ oneFile: (option: string) => string;
136
+ noProfiles: (path: string) => string;
137
+ noProfile: (id: string, path: string, available: readonly string[]) => string;
138
+ noStory: (id: string, path: string, available: readonly string[]) => string;
139
+ noScenario: (id: string, path: string, available: readonly string[]) => string;
140
+ stdoutOne: string;
141
+ severalDiagrams: (path: string, diagrams: number) => string;
142
+ noFiles: (folder: string) => string;
143
+ noFileWithProfile: (folder: string, id: string) => string;
144
+ };
145
+ import: {
146
+ oneSource: string;
147
+ from: (from: string, formats: readonly string[]) => string;
148
+ forceAndMerge: string;
149
+ fromInFolder: string;
150
+ noSources: (folder: string) => string;
151
+ replacesSource: string;
152
+ exists: (path: string) => string;
153
+ nothing: (source: string) => string;
154
+ /** The status of an import, as the report names it. */
155
+ status: {
156
+ complete: string;
157
+ partial: string;
158
+ failed: string;
159
+ };
160
+ /** What happened to the constructs of one imported diagram. */
161
+ coverage: (diagram: string, mapped: number, approximated: number, dropped: number) => string;
162
+ wouldImport: (source: string, out: string, status: string) => string;
163
+ imported: (source: string, out: string, status: string, merged: boolean) => string;
164
+ /** The parts of a folder's summary, by status. */
165
+ folder: {
166
+ complete: (n: number) => string;
167
+ partial: (n: number) => string;
168
+ failed: (n: number) => string;
169
+ notReplaced: (n: number) => string;
170
+ withoutDiagrams: (n: number) => string;
171
+ };
172
+ /** The summary of a folder: the files, the folder and the parts above. */
173
+ folderSummary: (check: boolean, files: number, folder: string, parts: readonly string[]) => string;
174
+ };
175
+ init: {
176
+ /** What each template holds, as `init --list` prints it. */
177
+ templates: {
178
+ flow: string;
179
+ c4: string;
180
+ sequence: string;
181
+ free: string;
182
+ purchase: string;
183
+ };
184
+ exists: (path: string) => string;
185
+ gitlab: string;
186
+ oneFolder: string;
187
+ noTemplate: (template: string, templates: readonly string[]) => string;
188
+ ci: (ci: string, services: readonly string[]) => string;
189
+ /** `--cloud` without `--ci`: it only changes the workflow. */
190
+ cloudNeedsCi: (services: readonly string[]) => string;
191
+ /** After a workflow with the push job: where its token comes from, and why `--force`. */
192
+ cloudNote: (secret: string) => string;
193
+ name: string;
194
+ notAFolder: (path: string) => string;
195
+ alreadyAProject: (path: string) => string;
196
+ clash: (path: string) => string;
197
+ created: (path: string) => string;
198
+ next: string;
199
+ };
200
+ assets: {
201
+ unknownSubcommand: (subcommand: string) => string;
202
+ noLicence: string;
203
+ /** The number of icons of a pack. */
204
+ icons: (n: number) => string;
205
+ noRedistribution: string;
206
+ noEmbedding: string;
207
+ packs: string;
208
+ aliases: string;
209
+ fonts: string;
210
+ noWords: string;
211
+ limit: string;
212
+ noMatch: (query: string) => string;
213
+ };
214
+ plugins: {
215
+ none: string;
216
+ notLoaded: (name: string, version: string) => string;
217
+ from: (homepage: string) => string;
218
+ folder: (path: string, granted: readonly string[]) => string;
219
+ type: (type: string, title: string, kinds: readonly string[]) => string;
220
+ icons: (name: string) => string;
221
+ };
222
+ build: {
223
+ unknownTarget: (target: string) => string;
224
+ title: string;
225
+ skipped: (entry: string, reason: string) => string;
226
+ warning: (warning: string) => string;
227
+ empty: (root: string) => string;
228
+ /** What a catalog holds, as the line that names the file lists it. */
229
+ diagrams: (n: number) => string;
230
+ stories: (n: number) => string;
231
+ entities: (n: number) => string;
232
+ wrote: (path: string, parts: readonly string[], size: string) => string;
233
+ };
234
+ preview: {
235
+ /** Answers of the preview server to a browser. */
236
+ onlyHere: string;
237
+ notFound: string;
238
+ skipped: (entry: string, reason: string) => string;
239
+ /** A build of the catalog: its diagrams and stories, and the time. */
240
+ built: (diagrams: number, stories: number, time: string) => string;
241
+ port: (port: string | undefined) => string;
242
+ serving: (url: string) => string;
243
+ portInUse: (port: number) => string;
244
+ };
245
+ review: {
246
+ baseOrBefore: string;
247
+ sameKinds: string;
248
+ /** What was compared: two folders or files by name, or a revision with the working tree. */
249
+ comparedPaths: (before: string, after: string) => string;
250
+ comparedRevision: (revision: string) => string;
251
+ /** The cloud project's current files, or one of its versions, with the working tree. */
252
+ comparedCloud: (project: string, version: number | undefined) => string;
253
+ /** `--base cloud:<n>` with something that is not a whole number. */
254
+ cloudVersion: string;
255
+ /** `--project` or `--host` without `--base cloud`. */
256
+ cloudOptions: string;
257
+ /** No connection to the service was given to the command (never from the command line). */
258
+ cloudUnavailable: string;
259
+ none: string;
260
+ summary: (files: number, added: number, removed: number, renamed: number, changed: number) => string;
261
+ /** The kinds of the blocks that hold changes, and a block whose kind is not known. */
262
+ scopes: {
263
+ diagram: string;
264
+ model: string;
265
+ story: string;
266
+ };
267
+ block: string;
268
+ /** The words of the review page, in the language of the files the command writes. */
269
+ page: {
270
+ title: string;
271
+ /** The heading of a changed diagram's pictures. */
272
+ diagram: (id: string) => string;
273
+ before: string;
274
+ after: string;
275
+ new: string;
276
+ removed: string;
277
+ /** The scope a change is in. */
278
+ in: (scope: string) => string;
279
+ /** The alternative text of a picture: the diagram and `before` or `after`. */
280
+ picture: (id: string, which: "before" | "after") => string;
281
+ /** The status of a file and the legend of the marks. */
282
+ status: {
283
+ added: string;
284
+ removed: string;
285
+ renamed: string;
286
+ changed: string;
287
+ };
288
+ };
289
+ };
290
+ assist: {
291
+ items: (ids: readonly number[], text: string) => string;
292
+ proposal: (path: string, revision: string, provider: string, model: string, summary: string) => string;
293
+ nothingToChange: string;
294
+ /** The action of a proposal item, as the list of items names it. */
295
+ actions: {
296
+ create: string;
297
+ add: string;
298
+ replace: string;
299
+ remove: string;
300
+ relation: string;
301
+ };
302
+ imports: (imports: readonly string[]) => string;
303
+ together: (problem: string) => string;
304
+ unknownOperation: (operation: string, operations: readonly string[]) => string;
305
+ proposalFile: string;
306
+ notAProposal: (path: string) => string;
307
+ oneFile: (operation: string) => string;
308
+ notMeltemi: (path: string) => string;
309
+ exists: (path: string) => string;
310
+ profile: (profile: string, profiles: readonly string[]) => string;
311
+ needsPrompt: (operation: string) => string;
312
+ notSent: string;
313
+ saved: (path: string, name: string) => string;
314
+ /** The question before a request is sent; the answers it accepts are below. */
315
+ send: string;
316
+ conflicts: (ids: readonly number[]) => string;
317
+ nothingWritten: string;
318
+ applied: (ids: readonly number[], path: string) => string;
319
+ noChanges: string;
320
+ };
321
+ /** The cloud commands: login, logout, whoami, and the failures every cloud command shares. */
322
+ cloud: {
323
+ /** A command that takes no arguments, given some. */
324
+ noArguments: (command: string) => string;
325
+ /**
326
+ * Why a cloud command failed, by the stable code of the failure (`cloud-errors.ts`); the code is
327
+ * printed before the sentence, and a code that is not here prints the service's own message.
328
+ */
329
+ errors: {
330
+ /** `cloud.host-mismatch`: the manifest's host, the one the command resolved. */
331
+ hostMismatch: (manifestHost: string, host: string) => string;
332
+ /** `cloud.insecure-host`. */
333
+ insecureHost: (host: string) => string;
334
+ /** `cloud.host-invalid`. */
335
+ hostInvalid: (host: string) => string;
336
+ /** `cloud.unreachable`, with the system's reason. */
337
+ unreachable: (host: string, reason: string) => string;
338
+ /** `cloud.timeout`. */
339
+ timeout: (host: string) => string;
340
+ /** `cloud.response-too-large`. */
341
+ tooLarge: (host: string) => string;
342
+ /** `cloud.redirect`. */
343
+ redirect: (host: string, status: number) => string;
344
+ /** `cloud.bad-response`: an answer that is not the service's. */
345
+ badResponse: (host: string, status: number) => string;
346
+ /** `cloud.not-signed-in`: the command's name. */
347
+ notSignedIn: (name: string, host: string) => string;
348
+ /** `token.invalid`. */
349
+ tokenRefused: (name: string, host: string) => string;
350
+ /** `credentials.corrupt`: nothing is ever written over such a file. */
351
+ credentialsCorrupt: (path: string, reason: string) => string;
352
+ /** `credentials.unreadable`. */
353
+ credentialsUnreadable: (path: string, reason: string) => string;
354
+ /** `credentials.unwritable`. */
355
+ credentialsUnwritable: (path: string, reason: string) => string;
356
+ /** `cli.invalid`: the exchange of the one-time code was refused. */
357
+ cliInvalid: string;
358
+ /** `cli.rate`. */
359
+ cliRate: (seconds: number) => string;
360
+ /** `quota.tokens`. */
361
+ quotaTokens: string;
362
+ /** `login.timeout`. */
363
+ loginTimeout: string;
364
+ /** `login.state-mismatch`. */
365
+ stateMismatch: string;
366
+ /** `login.environment-token`. */
367
+ environmentToken: string;
368
+ /** `login.token-input`. */
369
+ tokenInput: string;
370
+ /** `login.no-token`. */
371
+ noToken: string;
372
+ /** `login.not-a-token`. */
373
+ notAToken: string;
374
+ /** `login.not-stored`: the token was revoked again, with the reason it could not be kept. */
375
+ notStored: (reason: string) => string;
376
+ /** `login.not-revoked`: it could not be kept and could not be revoked either. */
377
+ notStoredNotRevoked: (reason: string) => string;
378
+ /** `login.listener`: no port to listen on. */
379
+ listener: (reason: string) => string;
380
+ /** `logout.not-revoked`: the token was kept. */
381
+ notRevoked: (host: string, reason: string, path: string) => string;
382
+ /** `cloud.no-project`: the folder's manifest names no cloud project; the command's name. */
383
+ noProject: (name: string) => string;
384
+ /** `pull.unsafe-path`: a path of the cloud project that does not stay inside the folder. */
385
+ unsafePath: (path: string) => string;
386
+ /** `version.not-found`: the version asked for. */
387
+ versionNotFound: (version: string) => string;
388
+ /** `project.not-found`: a project that does not exist or that the person may not open. */
389
+ projectNotFound: (project: string) => string;
390
+ /** `access.denied`: the person sees the project but may not do this. */
391
+ accessDenied: string;
392
+ /** `handle.taken`. */
393
+ handleTaken: (handle: string) => string;
394
+ /** `handle.locked`. */
395
+ handleLocked: (handle: string) => string;
396
+ /** `handle.invalid`. */
397
+ handleInvalid: (handle: string) => string;
398
+ /** `handle.required`: the command's name. */
399
+ handleRequired: (name: string) => string;
400
+ /** `publish.handle-in-page`: the service refuses an API token the choice of a handle. */
401
+ handleInPage: (handle: string) => string;
402
+ /** `publish.too-large`: the catalog's size when known. */
403
+ publishTooLarge: (size: string | undefined) => string;
404
+ /** `publish.rate`: seconds until the earliest request stops counting. */
405
+ publishRate: (seconds: number) => string;
406
+ /** `publish.taken`. */
407
+ publishTaken: (slug: string) => string;
408
+ /** `publish.not-published`: `--unpublish` of a name the project does not publish. */
409
+ notPublished: (slug: string) => string;
410
+ /** `publish.empty`. */
411
+ publishEmpty: string;
412
+ /** `publish.errors`: `--strict` with errors in the project. */
413
+ publishErrors: string;
414
+ };
415
+ push: {
416
+ nameNeedsCreate: string;
417
+ nameEmpty: string;
418
+ createWithProject: string;
419
+ checkWithCreate: string;
420
+ oneFolder: string;
421
+ notAFolder: (path: string) => string;
422
+ differs: (n: number) => string;
423
+ pathAdded: (path: string) => string;
424
+ pathChanged: (path: string) => string;
425
+ pathDeleted: (path: string) => string;
426
+ review: string;
427
+ identical: (id: string) => string;
428
+ overwrite: string;
429
+ retrying: string;
430
+ checkDiffers: (n: number) => string;
431
+ created: (id: string, name: string) => string;
432
+ recorded: (path: string) => string;
433
+ pushed: (id: string, written: number, deleted: number, uploaded: number) => string;
434
+ open: (url: string) => string;
435
+ notSent: (path: string, reason: string) => string;
436
+ reasons: {
437
+ path: string;
438
+ encoding: string;
439
+ unreadable: (why: string) => string;
440
+ };
441
+ ignored: (n: number, examples: string) => string;
442
+ collision: (path: string) => string;
443
+ };
444
+ pull: {
445
+ tooMany: string;
446
+ version: (text: string) => string;
447
+ wrote: (path: string) => string;
448
+ kept: (path: string) => string;
449
+ inTheWay: (path: string) => string;
450
+ keptHint: string;
451
+ loser: (path: string) => string;
452
+ recorded: (path: string) => string;
453
+ noManifest: string;
454
+ pulled: (id: string, version: number | null, folder: string, written: number, identical: number, kept: number) => string;
455
+ };
456
+ projectErrors: {
457
+ revisionMismatch: string;
458
+ quotaFiles: string;
459
+ quotaBinary: (path: string) => string;
460
+ quotaStorage: string;
461
+ quotaProjects: string;
462
+ docTooLarge: (path: string) => string;
463
+ pathInvalid: (path: string) => string;
464
+ binaryInvalid: (path: string) => string;
465
+ pushDiffers: (n: number) => string;
466
+ pushDeclined: string;
467
+ pushLinked: (project: string) => string;
468
+ pushStrict: (errors: number, unsent: number) => string;
469
+ pushManifestInvalid: (reason: string) => string;
470
+ pushManifestNotWritten: (project: string, host: string, reason: string) => string;
471
+ pushFileChanged: (path: string) => string;
472
+ pullNoProject: string;
473
+ pullOtherProject: (project: string, linked: string) => string;
474
+ pullNotAFolder: (path: string) => string;
475
+ pullManifestNotUpdated: (reason: string) => string;
476
+ pullWrite: (path: string, reason: string) => string;
477
+ };
478
+ login: {
479
+ /** The six characters the approval page shows, printed before the browser opens. */
480
+ check: (check: string) => string;
481
+ checkNote: string;
482
+ opening: (url: string) => string;
483
+ openFailed: string;
484
+ /** `--no-browser`. */
485
+ visit: (url: string) => string;
486
+ waiting: string;
487
+ /** The question of `--token` when standard input is a terminal. */
488
+ tokenPrompt: string;
489
+ signedIn: (name: string, host: string) => string;
490
+ /** The page the browser lands on, in the language of its Accept-Language. */
491
+ page: {
492
+ done: string;
493
+ failed: string;
494
+ };
495
+ };
496
+ logout: {
497
+ done: (host: string) => string;
498
+ alreadyRevoked: (host: string) => string;
499
+ none: (host: string) => string;
500
+ environment: string;
501
+ };
502
+ whoami: {
503
+ who: (name: string, handle: string | null) => string;
504
+ host: (host: string) => string;
505
+ environment: string;
506
+ };
507
+ publish: {
508
+ /** The question for the handle on a terminal. */
509
+ askHandle: string;
510
+ handleSet: (handle: string) => string;
511
+ /** What was published, then its size; the address follows on its own line. */
512
+ published: (parts: readonly string[], size: string) => string;
513
+ unpublished: (slug: string) => string;
514
+ slugInvalid: (slug: string) => string;
515
+ handleOption: (handle: string) => string;
516
+ };
517
+ projects: {
518
+ none: (name: string) => string;
519
+ header: {
520
+ id: string;
521
+ name: string;
522
+ role: string;
523
+ changed: string;
524
+ };
525
+ roles: {
526
+ owner: string;
527
+ editor: string;
528
+ viewer: string;
529
+ };
530
+ };
531
+ };
532
+ };
533
+ //# sourceMappingURL=en.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/messages/en.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AASH,eAAO,MAAM,EAAE;IACb,wDAAwD;;QAEtD,yEAAyE;qBAC5D,MAAM,SAAS,MAAM;Q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