@elaraai/e3-cloud-files 1.1.20 → 1.1.22

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 (49) hide show
  1. package/README.md +99 -11
  2. package/dist/src/authoring.d.ts +88 -19
  3. package/dist/src/authoring.d.ts.map +1 -1
  4. package/dist/src/authoring.js +94 -25
  5. package/dist/src/authoring.js.map +1 -1
  6. package/dist/src/check/index.d.ts +1 -1
  7. package/dist/src/check/index.d.ts.map +1 -1
  8. package/dist/src/check/index.js +1 -1
  9. package/dist/src/check/index.js.map +1 -1
  10. package/dist/src/check.d.ts +7 -9
  11. package/dist/src/check.d.ts.map +1 -1
  12. package/dist/src/check.js +12 -11
  13. package/dist/src/check.js.map +1 -1
  14. package/dist/src/compat.d.ts +255 -3
  15. package/dist/src/compat.d.ts.map +1 -1
  16. package/dist/src/compat.js +60 -10
  17. package/dist/src/compat.js.map +1 -1
  18. package/dist/src/index.d.ts +2 -2
  19. package/dist/src/index.d.ts.map +1 -1
  20. package/dist/src/index.js +2 -2
  21. package/dist/src/index.js.map +1 -1
  22. package/dist/src/s3/index.d.ts.map +1 -1
  23. package/dist/src/s3/index.js +12 -0
  24. package/dist/src/s3/index.js.map +1 -1
  25. package/dist/src/sync/engine.d.ts +122 -10
  26. package/dist/src/sync/engine.d.ts.map +1 -1
  27. package/dist/src/sync/engine.js +337 -78
  28. package/dist/src/sync/engine.js.map +1 -1
  29. package/dist/src/sync/index.d.ts +3 -2
  30. package/dist/src/sync/index.d.ts.map +1 -1
  31. package/dist/src/sync/index.js +3 -2
  32. package/dist/src/sync/index.js.map +1 -1
  33. package/dist/src/sync/memory.d.ts +78 -0
  34. package/dist/src/sync/memory.d.ts.map +1 -1
  35. package/dist/src/sync/memory.js +206 -1
  36. package/dist/src/sync/memory.js.map +1 -1
  37. package/dist/src/sync/push.d.ts +15 -2
  38. package/dist/src/sync/push.d.ts.map +1 -1
  39. package/dist/src/sync/push.js +19 -6
  40. package/dist/src/sync/push.js.map +1 -1
  41. package/dist/src/sync/sealed.d.ts +251 -0
  42. package/dist/src/sync/sealed.d.ts.map +1 -0
  43. package/dist/src/sync/sealed.js +573 -0
  44. package/dist/src/sync/sealed.js.map +1 -0
  45. package/dist/test/orders.examples.d.ts +1 -1
  46. package/dist/test/orders.examples.d.ts.map +1 -1
  47. package/dist/test/typed.examples.d.ts +2 -2
  48. package/dist/test/typed.examples.d.ts.map +1 -1
  49. package/package.json +6 -6
package/README.md CHANGED
@@ -3,9 +3,11 @@
3
3
  Files for e3 cloud: a solution's inputs that come from files. The solution
4
4
  says in its code which inputs the files fill. A deployed workspace keeps the
5
5
  files in storage of its own, a folder for each source, which
6
- `e3-cloud files push` puts them in: nothing to bind, no bucket to name. A
7
- workspace may say a source's files are elsewhere instead, in a bucket of your
8
- own (`s3://bucket/prefix/`), as a local repository always does.
6
+ `e3-cloud files push` puts them in: nothing to bind, no bucket to name. Files
7
+ a client sends from outside arrive as the repository's **deliveries**
8
+ (`Files.deliveries()`), an area the deployment makes, where each file is
9
+ encrypted to a key only the sync decrypts. A local repository binds each
10
+ source to a bucket of your own (`s3://bucket/prefix/`).
9
11
  `e3-cloud files sync` brings in what changed, the same way on a local
10
12
  repository and on a deployed workspace.
11
13
 
@@ -101,6 +103,89 @@ export default Files.manifest([upload]);
101
103
  in `Files.manifest` two sources of one name or two shapes filling one
102
104
  target.
103
105
 
106
+ ## The deliveries
107
+
108
+ A client's files arrive in the repository's deliveries, which every
109
+ workspace of it reads, read only:
110
+
111
+ ```ts
112
+ /** What the client sends: encrypted to the deployment's key, read by every workspace. */
113
+ export const deliveries = Files.deliveries();
114
+ export const prices = deliveries.file('prices', { key: 'prices.csv' });
115
+ export const invoices = deliveries.folder('invoices', { prefix: 'invoices/', include: '*.csv' });
116
+ ```
117
+
118
+ `deliveries` takes every shape a source does. A manifest holds at most one
119
+ `Files.deliveries()`, and nothing pushes into it: `files push` to a deliveries
120
+ mapping is refused, "deliveries are written by the client into the
121
+ deployment's deliveries area, and every workspace of <repo> reads them,
122
+ production included; try files on a local repository".
123
+
124
+ In a deployment the area is a folder of the deployment's deliveries bucket
125
+ (or the whole bucket, below), made by its configuration (the cdk README's
126
+ Files), and each file there is an
127
+ OpenPGP message to the repository's deliveries key: the client encrypts each
128
+ file it sends, for example
129
+
130
+ ```bash
131
+ gpg --trust-model always --encrypt --recipient <fingerprint> \
132
+ --output prices.csv prices.csv.plain
133
+ ```
134
+
135
+ with the public key the deployment's owner sends it (`--recipient` names the
136
+ key by its fingerprint; the file keeps its name; the client checks the
137
+ fingerprint its tool shows after importing the key with the owner). GnuPG
138
+ encrypts only to a key it has been told to trust, and a key just imported is
139
+ not: `--trust-model always` says the fingerprint was checked. Without it a
140
+ script's `gpg --encrypt` fails with "There is no assurance this key belongs
141
+ to the named user". A sync
142
+ decrypts each file before any byte of it is used: a file with no integrity
143
+ check, in LibrePGP's OCB form, to more than 8 recipients, to a passphrase,
144
+ to other keys, only to a key retired before it was written, under another
145
+ cipher, or altered, is refused with its reason in `files status` (the cdk
146
+ README lists every form taken and every refusal's words), and the input
147
+ keeps its value. A file that two rounds gave a fair try (each ran its
148
+ decryption for half the round or more) and neither finished is refused as
149
+ stalled and skipped, so the files after it sync; a file cut off only because
150
+ it started late in a round is not counted. The refusal lasts two days from
151
+ when it was made (a later refusal does not extend it), then the file is
152
+ tried again from nothing; a file encrypted again (new bytes, a new ETag) is
153
+ tried at once. A probe ignores the record. Limits count
154
+ the decrypted bytes: 1 GiB less 64 KiB for a `file`, 64 MiB less 64 KiB for a
155
+ folder's entry, 16 GiB for a typed collection. A file re-encrypted with the
156
+ same contents is remembered under its new ETag and not written again.
157
+
158
+ Before a client switches over, a server admin can probe one test file
159
+ (`e3-cloud admin deliveries <url> <repo> --probe <key>`, the e3-cloud CLI's
160
+ README): it opens the file as a sync does and answers whether a sync would
161
+ take it, or why not in the sync's words, without taking it. In
162
+ `@elaraai/e3-cloud-files/sync` an unsealer names the key that opened a file
163
+ through `opened` (`FilesUnsealOptions`), and `countingUnsealStore()` is an
164
+ unseal store that counts a plaintext and keeps none of it: the probe's.
165
+
166
+ A client's own deployment may give its deliveries the whole bucket instead:
167
+ `"files": { "deliveries": [ { "repo": "*" } ] }` in the deployment's
168
+ configuration. Every repository's `Files.deliveries()` then reads the
169
+ bucket's root, so a mapping's key `prices.csv` is the bucket's `prices.csv`
170
+ and a folder's prefix `invoices/` the bucket's `invoices/`: every repository
171
+ reads the same files, and each keeps its own record of what it took, its own
172
+ sync and ledgers. The files are sealed as a repository's area is, to one
173
+ deliveries key for the whole bucket, which every repository's sync opens.
174
+ The client makes its own folders, zero-byte keys ending with `/` (as a
175
+ storage console's "Create folder" makes them), and no mapping takes such a
176
+ key as a file: `latest`, `folder`, `listing` and a mutation's prefix skip
177
+ it, a `file` mapping's key may not end with `/` (refused as it is declared),
178
+ and neither may a probe's (its key from the bucket's root; any repository's
179
+ name answers for the whole bucket). The code and the manifest are the same
180
+ either way: `Files.deliveries()` takes no argument, and the solution never
181
+ knows which form the deployment chose. A deployment that gives each
182
+ repository its own folder works as above.
183
+
184
+ On a local repository the deliveries are the folder
185
+ `<repo>/.e3-cloud/files/deliveries/`, plaintext, which `files push` to a
186
+ deliveries mapping fills; `files bind <repo> <ws> --deliveries s3://…/
187
+ [--profile p]` reads a bucket of your own instead.
188
+
104
189
  ## A typed file
105
190
 
106
191
  A `file` or `latest` that names a `type` is an input of that type, and the
@@ -372,9 +457,9 @@ e3 dataflow run ./repo dev
372
457
  - **`files bind`** says where a source's files are for this workspace, when
373
458
  not there: another path of own storage, relative to the workspace
374
459
  (`inbound/`; `./`, the workspace's own folder; `../production/upload/`,
375
- another workspace's files), or `s3://bucket/prefix/`, a bucket of your own
376
- that the deployment's configuration grants the repository. With no
377
- location it binds the source to its own folder again. A local repository
460
+ another workspace's files). With no location it binds the source to its
461
+ own folder again. A deployed workspace binds nothing outside its own
462
+ storage: files from outside arrive as the deliveries. A local repository
378
463
  has no storage of its own, so each of its bindings is a bucket's URL.
379
464
  `--region` gives the bucket's region when it isn't your configured one. On
380
465
  a local repository only: `--profile` names the profile to read with (one
@@ -397,7 +482,9 @@ e3 dataflow run ./repo dev
397
482
  - **`files status`** shows each mapping with its shape, its type, the file
398
483
  it holds and the commit it made (or `pending` for a record not yet
399
484
  seeded), where each source's files are (`own storage upload/`, or a
400
- bucket's URL), and the last sync.
485
+ bucket's URL on a local repository) and where the deliveries are
486
+ (`encrypted`, `external`, or not configured: never a bucket), and the last
487
+ sync.
401
488
 
402
489
  A sync is safe to repeat and to stop. Each input is remembered only once it
403
490
  is written, so a sync that stops part way takes the rest next time.
@@ -476,8 +563,7 @@ e3-cloud files deploy https://e3.example.com/repos/acme staging src/files.ts
476
563
  e3-cloud files sync https://e3.example.com/repos/acme staging
477
564
  e3 dataflow run https://e3.example.com/repos/acme staging
478
565
 
479
- # Then production: a new source in a bucket of your own bound first, the release, a sync
480
- e3-cloud files bind https://e3.example.com/repos/acme production invoices s3://drop/acme/invoices/
566
+ # Then production: the release, a sync
481
567
  e3-cloud release https://e3.example.com/repos/acme staging production
482
568
  e3-cloud files sync https://e3.example.com/repos/acme production
483
569
  e3 dataflow run https://e3.example.com/repos/acme production
@@ -540,14 +626,16 @@ In `@elaraai/e3-cloud-types`, re-exported here:
540
626
  (`FilesShapeType`: `file` and `latest`, each with an optional `type`;
541
627
  `folder`, `listing`).
542
628
  - `FilesBindingType`: where a source's files are (`url`: a path of the
543
- workspace's own storage, relative to it, or `s3://bucket/prefix/`), its
629
+ workspace's own storage, relative to it; on a local repository,
630
+ `s3://bucket/prefix/`), its
544
631
  region, and, locally, profile and `latest`. `@elaraai/e3-cloud-types`
545
632
  reads a path: `isOwnStoragePath`, `ownStoragePathProblem`,
546
633
  `ownStoragePrefix`, `ownStorageDefaultPath`, `filesBindingPlace`.
547
634
  - `FilesSyncReportType`: per target, the files new, changed, removed,
548
635
  unchanged and refused (`FilesRefusalReasonType`: `too_large`,
549
636
  `segment_too_large`, `unreadable`, `not_beast2`, `type_mismatch`,
550
- `mutation`, `missing`), the bytes taken in, whether it was written, the
637
+ `mutation`, `missing`, `other`; a sealed file's refusal is `unreadable`
638
+ with its words), the bytes taken in, whether it was written, the
551
639
  typed value taken (`FilesTakenType`: its rows), the commit a seed or feed
552
640
  made, and why a seed was kept or a feed waits.
553
641
  - `FilesStatusType` (each mapping with what it holds and whether its record
@@ -7,7 +7,9 @@
7
7
  * fed from them.
8
8
  *
9
9
  * ```ts
10
- * export const upload = Files.source('upload');
10
+ * export const deliveries = Files.deliveries(); // the client's, read only
11
+ * export const prices = deliveries.file('prices', { key: 'prices.beast2', type: ArrayType(Price) });
12
+ * export const upload = Files.source('upload'); // our own, files push
11
13
  * export const rates = upload.file('rates', { key: 'rates.json' }); // a Blob
12
14
  * export const orders = upload.file('orders', { key: 'orders.beast2', type: ArrayType(Order) }); // an Array<Order>
13
15
  * export const stock = upload.latest('stock', { prefix: 'stock/', type: ArrayType(Stock) });
@@ -29,11 +31,20 @@
29
31
  * {@link Files.manifest}, which `e3-cloud files deploy` deploys beside the
30
32
  * package.
31
33
  *
34
+ * There are two doors for files, and neither names a bucket. A source
35
+ * ({@link Files.source}) is the developer's own folder of that name, in a
36
+ * deployed workspace's own storage, filled by `e3-cloud files push`. The
37
+ * deliveries ({@link Files.deliveries}) are the repository's deliveries area,
38
+ * which a client writes and every workspace of the repository reads: where it
39
+ * is, and whether it is encrypted, is the deployment's configuration's. A
40
+ * source's name is a literal type, so two sources of one name, or two
41
+ * deliveries, in one manifest are a compile error.
42
+ *
32
43
  * @packageDocumentation
33
44
  */
34
45
  import e3, { type IndexDraft, type MutationDef, type MutationDraft, type RecordConfig } from '@elaraai/e3';
35
46
  import { type EastType } from '@elaraai/east';
36
- import { FilesFileType, FilesFolderType, FilesListingType, type FilesManifest, type FilesMapping, type FilesProblem } from '@elaraai/e3-cloud-types';
47
+ import { FilesFileType, FilesFolderType, FilesListingType, type FilesManifest, type FilesMapping, type FilesMappingFrom, type FilesProblem } from '@elaraai/e3-cloud-types';
37
48
  /** The input a declaration makes: an `e3.input` of its type, with no default. */
38
49
  export type FilesInput<Name extends string, T extends EastType> = ReturnType<typeof e3.input<Name, T>>;
39
50
  /** The mutation a feed declaration hands back: its record's definition, as it was given. */
@@ -74,16 +85,14 @@ export declare class FilesDeclarationError extends Error {
74
85
  constructor(problems: readonly FilesProblem[]);
75
86
  }
76
87
  /**
77
- * A source of files: a name each workspace binds to a bucket and a prefix,
78
- * and the inputs, records and mutations its files fill.
88
+ * The six shapes a place of files declares, and the mappings they make, each
89
+ * from the place it is given: a source's, by name, or the deliveries'.
90
+ * Internal: declared through {@link FilesSource} and {@link FilesDeliveries}.
79
91
  */
80
- export declare class FilesSource {
92
+ declare abstract class FilesShapes {
81
93
  #private;
82
- /** The source's name */
83
- readonly name: string;
84
- /** @internal Use {@link Files.source}. */
85
- constructor(name: string);
86
- /** The targets this source fills, in the order they were declared. */
94
+ constructor(from: FilesMappingFrom);
95
+ /** The targets this place fills, in the order they were declared. */
87
96
  get mappings(): readonly FilesMapping[];
88
97
  /**
89
98
  * One file: the input `.inputs.<input>`. As a `Blob`, its bytes as they
@@ -158,25 +167,85 @@ export declare class FilesSource {
158
167
  */
159
168
  mutation<M extends MutationDef>(def: M, spec: FilesKeySpec | FilesSelection): FilesMutation<M>;
160
169
  }
170
+ /**
171
+ * A source of the developer's own files: a folder of its name in a deployed
172
+ * workspace's own storage (`upload/` for `Files.source('upload')`), filled by
173
+ * `e3-cloud files push`; on a local repository, a bucket's URL the workspace
174
+ * binds it to. Its name is a literal type, so two sources of one name in a
175
+ * manifest are a compile error.
176
+ *
177
+ * @typeParam Name - The source's name, as written
178
+ */
179
+ export declare class FilesSource<Name extends string = string> extends FilesShapes {
180
+ /** What this is: a source of the developer's own */
181
+ readonly kind: "source";
182
+ /** The source's name */
183
+ readonly name: Name;
184
+ /** @internal Use {@link Files.source}. */
185
+ constructor(name: Name);
186
+ }
187
+ /**
188
+ * The repository's deliveries: what a client writes into the deployment's
189
+ * deliveries area, which every workspace of the repository reads, read only.
190
+ * Where the area is, and whether it is encrypted, is the deployment's
191
+ * configuration's; no declaration names a bucket. On a deployed workspace a
192
+ * push into it is refused; a local repository's stand-in folder takes one.
193
+ */
194
+ export declare class FilesDeliveries extends FilesShapes {
195
+ /** What this is: the repository's deliveries */
196
+ readonly kind: "deliveries";
197
+ /** @internal Use {@link Files.deliveries}. */
198
+ constructor();
199
+ }
200
+ /** A place a manifest reads: a source of the developer's own, or the deliveries. */
201
+ export type FilesPlaceDeclaration = FilesSource<string> | FilesDeliveries;
202
+ /** What a place counts as, for the duplicate check: the deliveries, a source by its literal name, or nothing (a name that is no literal). */
203
+ type PlaceKey<P> = P extends {
204
+ readonly kind: 'deliveries';
205
+ } ? 'deliveries are declared twice' : P extends {
206
+ readonly name: infer N extends string;
207
+ } ? (string extends N ? never : `source '${N}' is declared twice`) : never;
208
+ /** The first duplicate of a tuple of places, as the words of its error; never when there is none. */
209
+ type FirstDuplicate<S extends readonly unknown[], Seen = never> = S extends readonly [infer Head, ...infer Rest] ? [PlaceKey<Head>] extends [never] ? FirstDuplicate<Rest, Seen> : [PlaceKey<Head>] extends [Seen] ? PlaceKey<Head> : FirstDuplicate<Rest, Seen | PlaceKey<Head>> : never;
210
+ /**
211
+ * The places of a manifest, held to declaring each source name once and the
212
+ * deliveries once: otherwise a type that no value meets, naming the
213
+ * duplicate. A source whose name is a plain `string`, not a literal, is not
214
+ * checked here (the run-time check still is).
215
+ */
216
+ export type NoDuplicatePlaces<S extends readonly unknown[]> = [FirstDuplicate<S>] extends [never] ? unknown : {
217
+ readonly error: FirstDuplicate<S>;
218
+ };
161
219
  /** Declaring files. */
162
220
  export declare const Files: {
163
221
  /**
164
- * A source of files, which each workspace binds to a bucket and a prefix.
222
+ * A source of the developer's own files: on a deployed workspace, the
223
+ * folder of its name in the workspace's own storage, filled by `e3-cloud
224
+ * files push`.
165
225
  *
166
- * @param name - Its name, unique among a solution's sources
226
+ * @param name - Its name, unique among a solution's sources: a literal, so two of one name in a manifest fail to compile
167
227
  * @returns The source, whose methods declare what its files fill
168
228
  * @throws {FilesDeclarationError} When the name is one e3 refuses
169
229
  */
170
- source(name: string): FilesSource;
230
+ source<const Name extends string>(name: Name): FilesSource<Name>;
231
+ /**
232
+ * The repository's deliveries: what a client writes into the deployment's
233
+ * deliveries area, read by every workspace of the repository. Named by
234
+ * nothing: the deployment's configuration says where the area is.
235
+ *
236
+ * @returns The deliveries, whose methods declare what their files fill
237
+ */
238
+ deliveries(): FilesDeliveries;
171
239
  /**
172
- * The declarations `e3-cloud files deploy` deploys: the sources, and the
173
- * inputs, records and mutations their files fill.
240
+ * The declarations `e3-cloud files deploy` deploys: the sources and the
241
+ * deliveries, and the inputs, records and mutations their files fill.
174
242
  *
175
- * @param sources - Every source
243
+ * @param places - Every source, and the deliveries if any: a source's name once, the deliveries once (a compile error otherwise)
176
244
  * @returns The manifest, an East value of `FilesManifestType`
177
- * @throws {FilesDeclarationError} When two sources share a name, or two
178
- * mappings fill one target
245
+ * @throws {FilesDeclarationError} When two sources share a name, the
246
+ * deliveries are given twice, or two mappings fill one target
179
247
  */
180
- manifest(sources: readonly FilesSource[]): FilesManifest;
248
+ manifest<const S extends readonly FilesPlaceDeclaration[]>(places: S & NoDuplicatePlaces<S>): FilesManifest;
181
249
  };
250
+ export {};
182
251
  //# sourceMappingURL=authoring.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"authoring.d.ts","sourceRoot":"","sources":["../../src/authoring.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,EAAE,EAAE,EAAE,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3G,OAAO,EAAwC,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEpF,OAAO,EACL,aAAa,EAAE,eAAe,EAAE,gB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
10
- * export const upload = Files.source('upload');
10
+ * export const deliveries = Files.deliveries(); // the client's, read only
11
+ * export const prices = deliveries.file('prices', { key: 'prices.beast2', type: ArrayType(Price) });
12
+ * export const upload = Files.source('upload'); // our own, files push
11
13
  * export const rates = upload.file('rates', { key: 'rates.json' }); // a Blob
12
14
  * export const orders = upload.file('orders', { key: 'orders.beast2', type: ArrayType(Order) }); // an Array<Order>
13
15
  * export const stock = upload.latest('stock', { prefix: 'stock/', type: ArrayType(Stock) });
@@ -29,6 +31,15 @@
29
31
  * {@link Files.manifest}, which `e3-cloud files deploy` deploys beside the
30
32
  * package.
31
33
  *
34
+ * There are two doors for files, and neither names a bucket. A source
35
+ * ({@link Files.source}) is the developer's own folder of that name, in a
36
+ * deployed workspace's own storage, filled by `e3-cloud files push`. The
37
+ * deliveries ({@link Files.deliveries}) are the repository's deliveries area,
38
+ * which a client writes and every workspace of the repository reads: where it
39
+ * is, and whether it is encrypted, is the deployment's configuration's. A
40
+ * source's name is a literal type, so two sources of one name, or two
41
+ * deliveries, in one manifest are a compile error.
42
+ *
32
43
  * @packageDocumentation
33
44
  */
34
45
  import e3 from '@elaraai/e3';
@@ -56,6 +67,11 @@ function nameProblems(kind, name) {
56
67
  const reason = nameProblem('workspace', name);
57
68
  return reason === null ? [] : [variant('invalid_name', { kind, name, reason })];
58
69
  }
70
+ /** A source's name, refused when e3 refuses it. */
71
+ function named(name) {
72
+ refuse(nameProblems('source', name));
73
+ return name;
74
+ }
59
75
  /** A key's problems. */
60
76
  function keyProblems(target, key) {
61
77
  const reason = keyProblem(key);
@@ -93,26 +109,24 @@ function oneFileShape(target, spec, type) {
93
109
  return { shape: variant('latest', { ...selected(spec), type: typeValue }), problems: selectionProblems(target, spec) };
94
110
  }
95
111
  /**
96
- * A source of files: a name each workspace binds to a bucket and a prefix,
97
- * and the inputs, records and mutations its files fill.
112
+ * The six shapes a place of files declares, and the mappings they make, each
113
+ * from the place it is given: a source's, by name, or the deliveries'.
114
+ * Internal: declared through {@link FilesSource} and {@link FilesDeliveries}.
98
115
  */
99
- export class FilesSource {
100
- /** The source's name */
101
- name;
116
+ class FilesShapes {
117
+ #from;
102
118
  #mappings = [];
103
- /** @internal Use {@link Files.source}. */
104
- constructor(name) {
105
- refuse(nameProblems('source', name));
106
- this.name = name;
119
+ constructor(from) {
120
+ this.#from = from;
107
121
  }
108
- /** The targets this source fills, in the order they were declared. */
122
+ /** The targets this place fills, in the order they were declared. */
109
123
  get mappings() {
110
124
  return this.#mappings;
111
125
  }
112
126
  /** Records a mapping, refusing its problems first. */
113
127
  #declare(target, shape, problems) {
114
128
  refuse(problems);
115
- this.#mappings.push({ target, source: this.name, shape });
129
+ this.#mappings.push({ target, from: this.#from, shape });
116
130
  }
117
131
  /** Records an input's mapping and makes its input. */
118
132
  #input(input, type, shape, problems) {
@@ -209,12 +223,49 @@ export class FilesSource {
209
223
  return def;
210
224
  }
211
225
  }
226
+ /**
227
+ * A source of the developer's own files: a folder of its name in a deployed
228
+ * workspace's own storage (`upload/` for `Files.source('upload')`), filled by
229
+ * `e3-cloud files push`; on a local repository, a bucket's URL the workspace
230
+ * binds it to. Its name is a literal type, so two sources of one name in a
231
+ * manifest are a compile error.
232
+ *
233
+ * @typeParam Name - The source's name, as written
234
+ */
235
+ export class FilesSource extends FilesShapes {
236
+ /** What this is: a source of the developer's own */
237
+ kind = 'source';
238
+ /** The source's name */
239
+ name;
240
+ /** @internal Use {@link Files.source}. */
241
+ constructor(name) {
242
+ super(variant('source', named(name)));
243
+ this.name = name;
244
+ }
245
+ }
246
+ /**
247
+ * The repository's deliveries: what a client writes into the deployment's
248
+ * deliveries area, which every workspace of the repository reads, read only.
249
+ * Where the area is, and whether it is encrypted, is the deployment's
250
+ * configuration's; no declaration names a bucket. On a deployed workspace a
251
+ * push into it is refused; a local repository's stand-in folder takes one.
252
+ */
253
+ export class FilesDeliveries extends FilesShapes {
254
+ /** What this is: the repository's deliveries */
255
+ kind = 'deliveries';
256
+ /** @internal Use {@link Files.deliveries}. */
257
+ constructor() {
258
+ super(variant('deliveries', null));
259
+ }
260
+ }
212
261
  /** Declaring files. */
213
262
  export const Files = {
214
263
  /**
215
- * A source of files, which each workspace binds to a bucket and a prefix.
264
+ * A source of the developer's own files: on a deployed workspace, the
265
+ * folder of its name in the workspace's own storage, filled by `e3-cloud
266
+ * files push`.
216
267
  *
217
- * @param name - Its name, unique among a solution's sources
268
+ * @param name - Its name, unique among a solution's sources: a literal, so two of one name in a manifest fail to compile
218
269
  * @returns The source, whose methods declare what its files fill
219
270
  * @throws {FilesDeclarationError} When the name is one e3 refuses
220
271
  */
@@ -222,25 +273,43 @@ export const Files = {
222
273
  return new FilesSource(name);
223
274
  },
224
275
  /**
225
- * The declarations `e3-cloud files deploy` deploys: the sources, and the
226
- * inputs, records and mutations their files fill.
276
+ * The repository's deliveries: what a client writes into the deployment's
277
+ * deliveries area, read by every workspace of the repository. Named by
278
+ * nothing: the deployment's configuration says where the area is.
279
+ *
280
+ * @returns The deliveries, whose methods declare what their files fill
281
+ */
282
+ deliveries() {
283
+ return new FilesDeliveries();
284
+ },
285
+ /**
286
+ * The declarations `e3-cloud files deploy` deploys: the sources and the
287
+ * deliveries, and the inputs, records and mutations their files fill.
227
288
  *
228
- * @param sources - Every source
289
+ * @param places - Every source, and the deliveries if any: a source's name once, the deliveries once (a compile error otherwise)
229
290
  * @returns The manifest, an East value of `FilesManifestType`
230
- * @throws {FilesDeclarationError} When two sources share a name, or two
231
- * mappings fill one target
291
+ * @throws {FilesDeclarationError} When two sources share a name, the
292
+ * deliveries are given twice, or two mappings fill one target
232
293
  */
233
- manifest(sources) {
294
+ manifest(places) {
234
295
  const problems = [];
235
296
  const names = new Set();
297
+ let deliveries = false;
236
298
  const targets = [];
237
299
  const mappings = [];
238
- for (const source of sources) {
239
- if (names.has(source.name)) {
240
- problems.push(variant('invalid_name', { kind: 'source', name: source.name, reason: 'is declared twice' }));
300
+ for (const place of places) {
301
+ if (place.kind === 'deliveries') {
302
+ if (deliveries)
303
+ problems.push(variant('invalid_name', { kind: 'deliveries', name: 'Files.deliveries()', reason: 'is declared twice' }));
304
+ deliveries = true;
305
+ }
306
+ else {
307
+ if (names.has(place.name)) {
308
+ problems.push(variant('invalid_name', { kind: 'source', name: place.name, reason: 'is declared twice' }));
309
+ }
310
+ names.add(place.name);
241
311
  }
242
- names.add(source.name);
243
- for (const mapping of source.mappings) {
312
+ for (const mapping of place.mappings) {
244
313
  if (targets.some((t) => sameFilesTarget(t, mapping.target)))
245
314
  problems.push(variant('duplicate_target', { target: mapping.target }));
246
315
  targets.push(mapping.target);
@@ -1 +1 @@
1
- {"version":3,"file":"authoring.js","sourceRoot":"","sources":["../../src/authoring.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,EAAgF,MAAM,aAAa,CAAC;AAC3G,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,EAAiB,MAAM,eAAe,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EACL,aAAa,EAAE,eAAe,EAAE,gBAAgB,EAChD,gBAAgB,EAAE,eAAe,GAElC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AA0CvE,0EAA0E;AAC1E,MAAM,OAAO,qBAAsB,SAAQ,KAAK;IAC9C,oBAAoB;IACX,QAAQ,CAA0B;IAE3C,YAAY,QAAiC;QAC3C,KAAK,CAAC,gDAAgD,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACtH,IAAI,CAAC,IAAI,GAAG,uBAAuB,CAAC;QACpC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAA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,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,mBAAmB,EAAE,CAAC,CAAC,CAAC;gBAC5G,CAAC;gBACD,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YACxB,CAAC;YACD,KAAK,MAAM,OAAO,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC;gBACrC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;oBAAE,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,kBAAkB,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;gBACpI,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;gBAC7B,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACzB,CAAC;QACH,CAAC;QACD,MAAM,CAAC,QAAQ,CAAC,CAAC;QACjB,OAAO,EAAE,OAAO,EAAE,CAAC,GAAG,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC3C,CAAC;CACF,CAAC"}
@@ -9,6 +9,6 @@
9
9
  *
10
10
  * @packageDocumentation
11
11
  */
12
- export { checkFiles, checkBindings, readPackageInputs, readPackageSurface, shapeType, type PackageInput, type PackageRecord, type PackageMutation, type PackageSurface, type ObjectReader, type BindingPolicy, } from '../check.js';
12
+ export { checkFiles, checkBindings, DEPLOYED_BINDS_OWN_STORAGE, readPackageInputs, readPackageSurface, shapeType, type PackageInput, type PackageRecord, type PackageMutation, type PackageSurface, type ObjectReader, type BindingPolicy, } from '../check.js';
13
13
  export { globMatcher, parseBucketUrl, keyProblem, prefixProblem, includeProblem, type BucketLocation } from '../paths.js';
14
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/check/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;GAMG;AAEH,OAAO,EACL,UAAU,EACV,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,aAAa,GACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/check/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;GAMG;AAEH,OAAO,EACL,UAAU,EACV,aAAa,EACb,0BAA0B,EAC1B,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,aAAa,GACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC"}
@@ -9,6 +9,6 @@
9
9
  *
10
10
  * @packageDocumentation
11
11
  */
12
- export { checkFiles, checkBindings, readPackageInputs, readPackageSurface, shapeType, } from '../check.js';
12
+ export { checkFiles, checkBindings, DEPLOYED_BINDS_OWN_STORAGE, readPackageInputs, readPackageSurface, shapeType, } from '../check.js';
13
13
  export { globMatcher, parseBucketUrl, keyProblem, prefixProblem, includeProblem } from '../paths.js';
14
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/check/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;GAMG;AAEH,OAAO,EACL,UAAU,EACV,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,GAOV,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAuB,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/check/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;GAMG;AAEH,OAAO,EACL,UAAU,EACV,aAAa,EACb,0BAA0B,EAC1B,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,GAOV,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAuB,MAAM,aAAa,CAAC"}
@@ -11,8 +11,9 @@
11
11
  * writable; a record's state type must be the type its file holds; a fed
12
12
  * mutation must exist on its record, take exactly one argument, of the type
13
13
  * its file holds, and be no `patch`. {@link checkBindings} is what a bind
14
- * runs: a URL into a bucket the policy grants, or, where the deployment has
15
- * storage of its own, a path in it relative to the workspace.
14
+ * runs: on a deployed workspace, a path of its own storage relative to the
15
+ * workspace, and nothing else (files from outside arrive as the deliveries);
16
+ * on a local repository, a bucket's URL.
16
17
  * {@link readPackageSurface} reads a package's inputs, records and
17
18
  * mutations from its objects, through a reader: the store's on a server, a
18
19
  * local repository's on a machine.
@@ -81,15 +82,10 @@ export declare function readPackageSurface(read: ObjectReader, packageHash: stri
81
82
  * @returns Every problem
82
83
  */
83
84
  export declare function checkFiles(manifest: FilesManifest, pkg: PackageSurface): FilesProblem[];
84
- /** Where a binding may point: for a deployed workspace, its own storage and the sources the deployment grants. */
85
+ /** Where a binding may point: for a deployed workspace, its own storage alone; for a local repository, any bucket's URL. */
85
86
  export interface BindingPolicy {
86
- /** Whether the bindings are a local repository's, where `profile` and `latest` apply */
87
+ /** Whether the bindings are a local repository's, where a URL, `profile` and `latest` apply */
87
88
  readonly local: boolean;
88
- /** The buckets and prefixes the deployment grants, for a deployed workspace; any URL locally */
89
- readonly granted?: readonly {
90
- readonly bucket: string;
91
- readonly prefixes: readonly string[];
92
- }[];
93
89
  /**
94
90
  * Whether the deployment has storage of its own, which a binding names by a
95
91
  * path relative to its workspace (`upload/`, `../production/upload/`); a
@@ -97,6 +93,8 @@ export interface BindingPolicy {
97
93
  */
98
94
  readonly own?: boolean;
99
95
  }
96
+ /** Why a deployed workspace's binding by a bucket's URL is refused, completing "'<url>' …". */
97
+ export declare const DEPLOYED_BINDS_OWN_STORAGE = "is a bucket's URL: a deployed workspace binds within its own storage; files from outside arrive as Files.deliveries()";
100
98
  /**
101
99
  * The problems of bindings against declarations, none when they fit.
102
100
  *
@@ -1 +1 @@
1
- {"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../src/check.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAoD,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AACrG,OAAO,EAAiE,KAAK,YAAY,EAAkB,MAAM,mBAAmB,CAAC;AACrI,OAAO,EAEL,KAAK,YAAY,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,KAAK,UAAU,EAC1E,MAAM,yBAAyB,CAAC;AAGjC,6BAA6B;AAC7B,MAAM,WAAW,YAAY;IAC3B,eAAe;IACf,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,2FAA2F;IAC3F,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B;AAED,wCAAwC;AACxC,MAAM,WAAW,eAAe;IAC9B,4CAA4C;IAC5C,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAC5B,iDAAiD;IACjD,QAAQ,CAAC,QAAQ,EAAE,SAAS,aAAa,EAAE,CAAC;CAC7C;AAED,6BAA6B;AAC7B,MAAM,WAAW,aAAa;IAC5B,mD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