@elaraai/e3-cloud-types 1.1.19 → 1.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -2
- package/dist/src/app-types.d.ts +38 -2
- package/dist/src/app-types.d.ts.map +1 -1
- package/dist/src/app-types.js +39 -2
- package/dist/src/app-types.js.map +1 -1
- package/dist/src/files-types.d.ts +720 -19
- package/dist/src/files-types.d.ts.map +1 -1
- package/dist/src/files-types.js +320 -10
- package/dist/src/files-types.js.map +1 -1
- package/dist/src/index.d.ts +3 -3
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +3 -3
- package/dist/src/index.js.map +1 -1
- package/dist/src/release-types.d.ts +244 -45
- package/dist/src/release-types.d.ts.map +1 -1
- package/dist/src/release-types.js +87 -6
- package/dist/src/release-types.js.map +1 -1
- package/package.json +3 -3
|
@@ -58,6 +58,13 @@ export declare const FILES_FOLDER_ENTRY_MAX_BYTES: number;
|
|
|
58
58
|
* whole. A typed collection has no limit but its segments'.
|
|
59
59
|
*/
|
|
60
60
|
export declare const FILES_TYPED_VALUE_MAX_BYTES: number;
|
|
61
|
+
/**
|
|
62
|
+
* The largest typed collection a deliveries area that is encrypted takes,
|
|
63
|
+
* counted in plaintext bytes: 16 GiB. Each file is decrypted ("unsealed")
|
|
64
|
+
* whole before any byte of it is used, and an unseal must finish within one
|
|
65
|
+
* round of a sync.
|
|
66
|
+
*/
|
|
67
|
+
export declare const FILES_SEALED_MAX_BYTES: number;
|
|
61
68
|
/**
|
|
62
69
|
* The largest segment of a typed collection: beast2's, 64 MiB. A file
|
|
63
70
|
* written with a larger one is refused, naming the fix (write it again
|
|
@@ -266,6 +273,32 @@ export declare function parseFilesTarget(text: string): FilesTarget | null;
|
|
|
266
273
|
* @returns The words
|
|
267
274
|
*/
|
|
268
275
|
export declare function filesTargetWords(target: FilesTarget): string;
|
|
276
|
+
/**
|
|
277
|
+
* Where a mapping's files come from.
|
|
278
|
+
*
|
|
279
|
+
* - `source`: a source of the developer's own, by its name
|
|
280
|
+
* (`Files.source('upload')`): a deployed workspace's own storage, filled by
|
|
281
|
+
* `e3-cloud files push`.
|
|
282
|
+
* - `deliveries`: the repository's deliveries area (`Files.deliveries()`),
|
|
283
|
+
* which a client writes and every workspace of the repository reads. Its
|
|
284
|
+
* place is the deployment's configuration's, never a declaration's, and no
|
|
285
|
+
* string reaches it.
|
|
286
|
+
*/
|
|
287
|
+
export declare const FilesMappingFromType: VariantType<{
|
|
288
|
+
readonly source: StringType;
|
|
289
|
+
readonly deliveries: NullType;
|
|
290
|
+
}>;
|
|
291
|
+
export type FilesMappingFromType = typeof FilesMappingFromType;
|
|
292
|
+
export type FilesMappingFrom = ValueTypeOf<typeof FilesMappingFromType>;
|
|
293
|
+
/** Whether two mappings' origins are the same. */
|
|
294
|
+
export declare const sameFilesFrom: (a: FilesMappingFrom, b: FilesMappingFrom) => boolean;
|
|
295
|
+
/**
|
|
296
|
+
* A mapping's origin in words: `source upload`, `deliveries`.
|
|
297
|
+
*
|
|
298
|
+
* @param from - The origin
|
|
299
|
+
* @returns The words
|
|
300
|
+
*/
|
|
301
|
+
export declare function filesFromWords(from: FilesMappingFrom): string;
|
|
269
302
|
/** One target a source's files fill. */
|
|
270
303
|
export declare const FilesMappingType: StructType<{
|
|
271
304
|
/** What the files fill */
|
|
@@ -277,8 +310,11 @@ export declare const FilesMappingType: StructType<{
|
|
|
277
310
|
readonly mutation: StringType;
|
|
278
311
|
}>;
|
|
279
312
|
}>;
|
|
280
|
-
/**
|
|
281
|
-
readonly
|
|
313
|
+
/** Where its files come from: a source of the developer's own, by name, or the repository's deliveries */
|
|
314
|
+
readonly from: VariantType<{
|
|
315
|
+
readonly source: StringType;
|
|
316
|
+
readonly deliveries: NullType;
|
|
317
|
+
}>;
|
|
282
318
|
readonly shape: VariantType<{
|
|
283
319
|
readonly file: StructType<{
|
|
284
320
|
readonly key: StringType;
|
|
@@ -385,7 +421,7 @@ export type FilesMappingType = typeof FilesMappingType;
|
|
|
385
421
|
export type FilesMapping = ValueTypeOf<typeof FilesMappingType>;
|
|
386
422
|
/** A solution's declarations: its sources, and the targets they fill. */
|
|
387
423
|
export declare const FilesManifestType: StructType<{
|
|
388
|
-
/** The
|
|
424
|
+
/** The names of the developer's own sources (`Files.source`), in the order they were declared; the deliveries are none of them */
|
|
389
425
|
readonly sources: ArrayType<StringType>;
|
|
390
426
|
/** The mappings, in the order they were declared */
|
|
391
427
|
readonly mappings: ArrayType<StructType<{
|
|
@@ -398,8 +434,11 @@ export declare const FilesManifestType: StructType<{
|
|
|
398
434
|
readonly mutation: StringType;
|
|
399
435
|
}>;
|
|
400
436
|
}>;
|
|
401
|
-
/**
|
|
402
|
-
readonly
|
|
437
|
+
/** Where its files come from: a source of the developer's own, by name, or the repository's deliveries */
|
|
438
|
+
readonly from: VariantType<{
|
|
439
|
+
readonly source: StringType;
|
|
440
|
+
readonly deliveries: NullType;
|
|
441
|
+
}>;
|
|
403
442
|
readonly shape: VariantType<{
|
|
404
443
|
readonly file: StructType<{
|
|
405
444
|
readonly key: StringType;
|
|
@@ -1394,7 +1433,7 @@ export type FilesMappingStatus = ValueTypeOf<typeof FilesMappingStatusType>;
|
|
|
1394
1433
|
/** A workspace's Files: its declarations, its bindings, its last sync, and what each mapping holds. */
|
|
1395
1434
|
export declare const FilesStatusType: StructType<{
|
|
1396
1435
|
readonly manifest: OptionType<StructType<{
|
|
1397
|
-
/** The
|
|
1436
|
+
/** The names of the developer's own sources (`Files.source`), in the order they were declared; the deliveries are none of them */
|
|
1398
1437
|
readonly sources: ArrayType<StringType>;
|
|
1399
1438
|
/** The mappings, in the order they were declared */
|
|
1400
1439
|
readonly mappings: ArrayType<StructType<{
|
|
@@ -1407,8 +1446,11 @@ export declare const FilesStatusType: StructType<{
|
|
|
1407
1446
|
readonly mutation: StringType;
|
|
1408
1447
|
}>;
|
|
1409
1448
|
}>;
|
|
1410
|
-
/**
|
|
1411
|
-
readonly
|
|
1449
|
+
/** Where its files come from: a source of the developer's own, by name, or the repository's deliveries */
|
|
1450
|
+
readonly from: VariantType<{
|
|
1451
|
+
readonly source: StringType;
|
|
1452
|
+
readonly deliveries: NullType;
|
|
1453
|
+
}>;
|
|
1412
1454
|
readonly shape: VariantType<{
|
|
1413
1455
|
readonly file: StructType<{
|
|
1414
1456
|
readonly key: StringType;
|
|
@@ -1748,10 +1790,10 @@ export type FilesStatusType = typeof FilesStatusType;
|
|
|
1748
1790
|
export type FilesStatus = ValueTypeOf<typeof FilesStatusType>;
|
|
1749
1791
|
/**
|
|
1750
1792
|
* A bucket a deployment lets a repository's bindings point into, and the
|
|
1751
|
-
* prefixes a binding's must begin with
|
|
1752
|
-
* (
|
|
1753
|
-
*
|
|
1754
|
-
*
|
|
1793
|
+
* prefixes a binding's must begin with. A deployment answers none: its own
|
|
1794
|
+
* storage is never answered as one (a binding names it by a path relative to
|
|
1795
|
+
* its workspace, {@link ownStoragePathProblem}), and files from outside
|
|
1796
|
+
* arrive as the deliveries. Kept on the wire for older clients.
|
|
1755
1797
|
*/
|
|
1756
1798
|
export declare const FilesGrantType: StructType<{
|
|
1757
1799
|
readonly bucket: StringType;
|
|
@@ -1759,6 +1801,23 @@ export declare const FilesGrantType: StructType<{
|
|
|
1759
1801
|
}>;
|
|
1760
1802
|
export type FilesGrantType = typeof FilesGrantType;
|
|
1761
1803
|
export type FilesGrant = ValueTypeOf<typeof FilesGrantType>;
|
|
1804
|
+
/**
|
|
1805
|
+
* Where a repository's deliveries are, in kind only: never their location.
|
|
1806
|
+
*
|
|
1807
|
+
* - `sealed`: the deployment's deliveries area, which takes OpenPGP
|
|
1808
|
+
* messages to the deliveries key alone, each decrypted by the sync.
|
|
1809
|
+
* - `external`: for a move only, an existing bucket the configuration names,
|
|
1810
|
+
* read as it is, not encrypted.
|
|
1811
|
+
* - `local`: a local repository's stand-in folder, filled with plaintext by
|
|
1812
|
+
* a push.
|
|
1813
|
+
*/
|
|
1814
|
+
export declare const FilesDeliveriesPlaceType: VariantType<{
|
|
1815
|
+
readonly sealed: NullType;
|
|
1816
|
+
readonly external: NullType;
|
|
1817
|
+
readonly local: NullType;
|
|
1818
|
+
}>;
|
|
1819
|
+
export type FilesDeliveriesPlaceType = typeof FilesDeliveriesPlaceType;
|
|
1820
|
+
export type FilesDeliveriesPlace = ValueTypeOf<typeof FilesDeliveriesPlaceType>;
|
|
1762
1821
|
/** A package, as Files' responses name it. */
|
|
1763
1822
|
export declare const FilesPackageType: StructType<{
|
|
1764
1823
|
readonly name: StringType;
|
|
@@ -1775,7 +1834,7 @@ export declare const FilesWorkspaceType: StructType<{
|
|
|
1775
1834
|
*/
|
|
1776
1835
|
readonly status: StructType<{
|
|
1777
1836
|
readonly manifest: OptionType<StructType<{
|
|
1778
|
-
/** The
|
|
1837
|
+
/** The names of the developer's own sources (`Files.source`), in the order they were declared; the deliveries are none of them */
|
|
1779
1838
|
readonly sources: ArrayType<StringType>;
|
|
1780
1839
|
/** The mappings, in the order they were declared */
|
|
1781
1840
|
readonly mappings: ArrayType<StructType<{
|
|
@@ -1788,8 +1847,11 @@ export declare const FilesWorkspaceType: StructType<{
|
|
|
1788
1847
|
readonly mutation: StringType;
|
|
1789
1848
|
}>;
|
|
1790
1849
|
}>;
|
|
1791
|
-
/**
|
|
1792
|
-
readonly
|
|
1850
|
+
/** Where its files come from: a source of the developer's own, by name, or the repository's deliveries */
|
|
1851
|
+
readonly from: VariantType<{
|
|
1852
|
+
readonly source: StringType;
|
|
1853
|
+
readonly deliveries: NullType;
|
|
1854
|
+
}>;
|
|
1793
1855
|
readonly shape: VariantType<{
|
|
1794
1856
|
readonly file: StructType<{
|
|
1795
1857
|
readonly key: StringType;
|
|
@@ -2132,6 +2194,12 @@ export declare const FilesWorkspaceType: StructType<{
|
|
|
2132
2194
|
}>>;
|
|
2133
2195
|
/** The sync under way, its id, if any */
|
|
2134
2196
|
readonly syncing: OptionType<StringType>;
|
|
2197
|
+
/** Where the repository's deliveries are, in kind; none where the deployment declares no deliveries area for it */
|
|
2198
|
+
readonly deliveries: OptionType<VariantType<{
|
|
2199
|
+
readonly sealed: NullType;
|
|
2200
|
+
readonly external: NullType;
|
|
2201
|
+
readonly local: NullType;
|
|
2202
|
+
}>>;
|
|
2135
2203
|
}>;
|
|
2136
2204
|
export type FilesWorkspaceType = typeof FilesWorkspaceType;
|
|
2137
2205
|
export type FilesWorkspace = ValueTypeOf<typeof FilesWorkspaceType>;
|
|
@@ -2143,7 +2211,7 @@ export type FilesWorkspace = ValueTypeOf<typeof FilesWorkspaceType>;
|
|
|
2143
2211
|
*/
|
|
2144
2212
|
export declare const FilesDeployRequestType: StructType<{
|
|
2145
2213
|
readonly manifest: StructType<{
|
|
2146
|
-
/** The
|
|
2214
|
+
/** The names of the developer's own sources (`Files.source`), in the order they were declared; the deliveries are none of them */
|
|
2147
2215
|
readonly sources: ArrayType<StringType>;
|
|
2148
2216
|
/** The mappings, in the order they were declared */
|
|
2149
2217
|
readonly mappings: ArrayType<StructType<{
|
|
@@ -2156,8 +2224,11 @@ export declare const FilesDeployRequestType: StructType<{
|
|
|
2156
2224
|
readonly mutation: StringType;
|
|
2157
2225
|
}>;
|
|
2158
2226
|
}>;
|
|
2159
|
-
/**
|
|
2160
|
-
readonly
|
|
2227
|
+
/** Where its files come from: a source of the developer's own, by name, or the repository's deliveries */
|
|
2228
|
+
readonly from: VariantType<{
|
|
2229
|
+
readonly source: StringType;
|
|
2230
|
+
readonly deliveries: NullType;
|
|
2231
|
+
}>;
|
|
2161
2232
|
readonly shape: VariantType<{
|
|
2162
2233
|
readonly file: StructType<{
|
|
2163
2234
|
readonly key: StringType;
|
|
@@ -2761,6 +2832,11 @@ export type FilesPushUpload = ValueTypeOf<typeof FilesPushUploadType>;
|
|
|
2761
2832
|
* no sync would take.
|
|
2762
2833
|
* - `not_latest`: a `latest` mapping whose source holds a greater key.
|
|
2763
2834
|
* - `type_mismatch`, `not_beast2`, `too_large`: as a sync refuses them.
|
|
2835
|
+
* - `deliveries`: a file for a deliveries mapping, on a deployed workspace.
|
|
2836
|
+
* Deliveries are the client's to write, into the deployment's deliveries
|
|
2837
|
+
* area, and every workspace of the repository reads them: a push there
|
|
2838
|
+
* would change production's inputs. Only a local repository's stand-in
|
|
2839
|
+
* takes a push.
|
|
2764
2840
|
*/
|
|
2765
2841
|
export declare const FilesPushRefusalType: VariantType<{
|
|
2766
2842
|
readonly no_mapping: NullType;
|
|
@@ -2964,6 +3040,7 @@ export declare const FilesPushRefusalType: VariantType<{
|
|
|
2964
3040
|
readonly size: IntegerType;
|
|
2965
3041
|
readonly limit: IntegerType;
|
|
2966
3042
|
}>;
|
|
3043
|
+
readonly deliveries: NullType;
|
|
2967
3044
|
}>;
|
|
2968
3045
|
export type FilesPushRefusalType = typeof FilesPushRefusalType;
|
|
2969
3046
|
export type FilesPushRefusal = ValueTypeOf<typeof FilesPushRefusalType>;
|
|
@@ -3211,6 +3288,7 @@ export declare const FilesPushOutcomeType: VariantType<{
|
|
|
3211
3288
|
readonly size: IntegerType;
|
|
3212
3289
|
readonly limit: IntegerType;
|
|
3213
3290
|
}>;
|
|
3291
|
+
readonly deliveries: NullType;
|
|
3214
3292
|
}>;
|
|
3215
3293
|
}>;
|
|
3216
3294
|
export type FilesPushOutcomeType = typeof FilesPushOutcomeType;
|
|
@@ -3471,6 +3549,7 @@ export declare const FilesPushPlanType: StructType<{
|
|
|
3471
3549
|
readonly size: IntegerType;
|
|
3472
3550
|
readonly limit: IntegerType;
|
|
3473
3551
|
}>;
|
|
3552
|
+
readonly deliveries: NullType;
|
|
3474
3553
|
}>;
|
|
3475
3554
|
}>;
|
|
3476
3555
|
}>>;
|
|
@@ -3515,6 +3594,9 @@ export type FilesPushCompleteResponse = ValueTypeOf<typeof FilesPushCompleteResp
|
|
|
3515
3594
|
* is no own storage), `not_granted` (the deployment grants no source
|
|
3516
3595
|
* holding the URL), and `local_only` (`profile` or `latest`, on a deployed
|
|
3517
3596
|
* workspace).
|
|
3597
|
+
* - Deliveries: `deliveries_unavailable` (deliveries are declared, but the
|
|
3598
|
+
* deployment's configuration declares no deliveries area for the
|
|
3599
|
+
* repository).
|
|
3518
3600
|
*
|
|
3519
3601
|
* Types are compared exactly: `expected` is the mapping's, `actual` the
|
|
3520
3602
|
* package's.
|
|
@@ -3970,14 +4052,53 @@ export declare const FilesProblemType: VariantType<{
|
|
|
3970
4052
|
readonly source: StringType;
|
|
3971
4053
|
readonly option: StringType;
|
|
3972
4054
|
}>;
|
|
4055
|
+
readonly deliveries_unavailable: NullType;
|
|
3973
4056
|
}>;
|
|
3974
4057
|
export type FilesProblemType = typeof FilesProblemType;
|
|
3975
4058
|
export type FilesProblem = ValueTypeOf<typeof FilesProblemType>;
|
|
4059
|
+
/**
|
|
4060
|
+
* Where one origin's files are, as a deploy finds them: a source's own
|
|
4061
|
+
* storage by its path, or the deliveries by their kind (none where the
|
|
4062
|
+
* deployment declares no deliveries area for the repository); and how many
|
|
4063
|
+
* files its folder holds (none where it was not counted).
|
|
4064
|
+
*/
|
|
4065
|
+
export declare const FilesPlaceType: StructType<{
|
|
4066
|
+
readonly from: VariantType<{
|
|
4067
|
+
readonly source: StringType;
|
|
4068
|
+
readonly deliveries: NullType;
|
|
4069
|
+
}>;
|
|
4070
|
+
readonly where: VariantType<{
|
|
4071
|
+
readonly own: StringType;
|
|
4072
|
+
readonly url: StringType;
|
|
4073
|
+
readonly deliveries: OptionType<VariantType<{
|
|
4074
|
+
readonly sealed: NullType;
|
|
4075
|
+
readonly external: NullType;
|
|
4076
|
+
readonly local: NullType;
|
|
4077
|
+
}>>;
|
|
4078
|
+
}>;
|
|
4079
|
+
readonly files: OptionType<IntegerType>;
|
|
4080
|
+
}>;
|
|
4081
|
+
export type FilesPlaceType = typeof FilesPlaceType;
|
|
4082
|
+
export type FilesPlace = ValueTypeOf<typeof FilesPlaceType>;
|
|
4083
|
+
/**
|
|
4084
|
+
* A folder of the workspace's own storage that holds files and that no
|
|
4085
|
+
* declaration reads, by its path relative to the workspace (`upload/`): a
|
|
4086
|
+
* misspelt source reads an empty folder beside it.
|
|
4087
|
+
*/
|
|
4088
|
+
export declare const FilesUndeclaredFolderType: StructType<{
|
|
4089
|
+
readonly path: StringType;
|
|
4090
|
+
readonly files: IntegerType;
|
|
4091
|
+
}>;
|
|
4092
|
+
export type FilesUndeclaredFolderType = typeof FilesUndeclaredFolderType;
|
|
4093
|
+
export type FilesUndeclaredFolder = ValueTypeOf<typeof FilesUndeclaredFolderType>;
|
|
3976
4094
|
/**
|
|
3977
4095
|
* What a deploy of declarations did: kept them, with the targets whose
|
|
3978
4096
|
* declaration changed, which the next sync takes again whole; checked them
|
|
3979
4097
|
* and kept nothing (a dry run); or refused them, naming every problem. Each
|
|
3980
|
-
* names the package the workspace runs, which they were checked against.
|
|
4098
|
+
* names the package the workspace runs, which they were checked against. A
|
|
4099
|
+
* deploy kept or checked also answers where each origin's files are, with
|
|
4100
|
+
* how many each folder holds, and the folders of own storage that hold files
|
|
4101
|
+
* no declaration reads.
|
|
3981
4102
|
*/
|
|
3982
4103
|
export declare const FilesDeployResponseType: VariantType<{
|
|
3983
4104
|
readonly deployed: StructType<{
|
|
@@ -3993,12 +4114,52 @@ export declare const FilesDeployResponseType: VariantType<{
|
|
|
3993
4114
|
readonly mutation: StringType;
|
|
3994
4115
|
}>;
|
|
3995
4116
|
}>>;
|
|
4117
|
+
readonly places: ArrayType<StructType<{
|
|
4118
|
+
readonly from: VariantType<{
|
|
4119
|
+
readonly source: StringType;
|
|
4120
|
+
readonly deliveries: NullType;
|
|
4121
|
+
}>;
|
|
4122
|
+
readonly where: VariantType<{
|
|
4123
|
+
readonly own: StringType;
|
|
4124
|
+
readonly url: StringType;
|
|
4125
|
+
readonly deliveries: OptionType<VariantType<{
|
|
4126
|
+
readonly sealed: NullType;
|
|
4127
|
+
readonly external: NullType;
|
|
4128
|
+
readonly local: NullType;
|
|
4129
|
+
}>>;
|
|
4130
|
+
}>;
|
|
4131
|
+
readonly files: OptionType<IntegerType>;
|
|
4132
|
+
}>>;
|
|
4133
|
+
readonly undeclared: ArrayType<StructType<{
|
|
4134
|
+
readonly path: StringType;
|
|
4135
|
+
readonly files: IntegerType;
|
|
4136
|
+
}>>;
|
|
3996
4137
|
}>;
|
|
3997
4138
|
readonly checked: StructType<{
|
|
3998
4139
|
readonly package: StructType<{
|
|
3999
4140
|
readonly name: StringType;
|
|
4000
4141
|
readonly version: StringType;
|
|
4001
4142
|
}>;
|
|
4143
|
+
readonly places: ArrayType<StructType<{
|
|
4144
|
+
readonly from: VariantType<{
|
|
4145
|
+
readonly source: StringType;
|
|
4146
|
+
readonly deliveries: NullType;
|
|
4147
|
+
}>;
|
|
4148
|
+
readonly where: VariantType<{
|
|
4149
|
+
readonly own: StringType;
|
|
4150
|
+
readonly url: StringType;
|
|
4151
|
+
readonly deliveries: OptionType<VariantType<{
|
|
4152
|
+
readonly sealed: NullType;
|
|
4153
|
+
readonly external: NullType;
|
|
4154
|
+
readonly local: NullType;
|
|
4155
|
+
}>>;
|
|
4156
|
+
}>;
|
|
4157
|
+
readonly files: OptionType<IntegerType>;
|
|
4158
|
+
}>>;
|
|
4159
|
+
readonly undeclared: ArrayType<StructType<{
|
|
4160
|
+
readonly path: StringType;
|
|
4161
|
+
readonly files: IntegerType;
|
|
4162
|
+
}>>;
|
|
4002
4163
|
}>;
|
|
4003
4164
|
readonly refused: StructType<{
|
|
4004
4165
|
readonly package: StructType<{
|
|
@@ -4452,6 +4613,7 @@ export declare const FilesDeployResponseType: VariantType<{
|
|
|
4452
4613
|
readonly source: StringType;
|
|
4453
4614
|
readonly option: StringType;
|
|
4454
4615
|
}>;
|
|
4616
|
+
readonly deliveries_unavailable: NullType;
|
|
4455
4617
|
}>>;
|
|
4456
4618
|
}>;
|
|
4457
4619
|
}>;
|
|
@@ -4920,6 +5082,7 @@ export declare const FilesBindResponseType: VariantType<{
|
|
|
4920
5082
|
readonly source: StringType;
|
|
4921
5083
|
readonly option: StringType;
|
|
4922
5084
|
}>;
|
|
5085
|
+
readonly deliveries_unavailable: NullType;
|
|
4923
5086
|
}>>;
|
|
4924
5087
|
}>;
|
|
4925
5088
|
export type FilesBindResponseType = typeof FilesBindResponseType;
|
|
@@ -4952,4 +5115,542 @@ export declare function filesProblemText(problem: FilesProblem): string;
|
|
|
4952
5115
|
* @returns The words
|
|
4953
5116
|
*/
|
|
4954
5117
|
export declare function filesPushRefusalText(refusal: FilesPushRefusal): string;
|
|
5118
|
+
/**
|
|
5119
|
+
* A push's refusal of a file for a deliveries mapping on a deployed
|
|
5120
|
+
* workspace, in words that say who writes there.
|
|
5121
|
+
*
|
|
5122
|
+
* @param repo - The repository, to name it; "the repository" when not given
|
|
5123
|
+
* @returns The words
|
|
5124
|
+
*/
|
|
5125
|
+
export declare function filesPushDeliveriesText(repo?: string): string;
|
|
5126
|
+
/**
|
|
5127
|
+
* One key of a repository's deliveries keyring, as an administrator sees it:
|
|
5128
|
+
* its fingerprint (computed from the key itself), when it was made and by
|
|
5129
|
+
* whom (an administrator's identity, or `deploy`), when it expires, whether
|
|
5130
|
+
* it is the current key, and when it was closed to new deliveries and by
|
|
5131
|
+
* whom. Never a key.
|
|
5132
|
+
*/
|
|
5133
|
+
export declare const FilesDeliveriesKeyType: StructType<{
|
|
5134
|
+
readonly fingerprint: StringType;
|
|
5135
|
+
readonly created: DateTimeType;
|
|
5136
|
+
readonly expires: DateTimeType;
|
|
5137
|
+
readonly madeBy: StringType;
|
|
5138
|
+
readonly current: BooleanType;
|
|
5139
|
+
readonly retired: OptionType<StructType<{
|
|
5140
|
+
readonly at: DateTimeType;
|
|
5141
|
+
readonly by: StringType;
|
|
5142
|
+
}>>;
|
|
5143
|
+
}>;
|
|
5144
|
+
export type FilesDeliveriesKeyType = typeof FilesDeliveriesKeyType;
|
|
5145
|
+
export type FilesDeliveriesKey = ValueTypeOf<typeof FilesDeliveriesKeyType>;
|
|
5146
|
+
/**
|
|
5147
|
+
* What the admin route answers of a repository's deliveries
|
|
5148
|
+
* (`GET /api/admin/files/deliveries/:repo`, server admins only): where the
|
|
5149
|
+
* area is, its region, whether it is encrypted, its current key (the
|
|
5150
|
+
* fingerprint, the armored public key and when it expires) and every key the
|
|
5151
|
+
* keyring holds, none ever deleted. Never a private key. No other route
|
|
5152
|
+
* answers the location or the public key.
|
|
5153
|
+
*/
|
|
5154
|
+
export declare const FilesDeliveriesAdminType: StructType<{
|
|
5155
|
+
/** `s3://<bucket>/<repo>/`, or the external bucket and prefix while the move is under way */
|
|
5156
|
+
readonly location: StringType;
|
|
5157
|
+
readonly region: StringType;
|
|
5158
|
+
/** Whether the area takes OpenPGP messages alone (false: an external bucket, read as it is) */
|
|
5159
|
+
readonly sealed: BooleanType;
|
|
5160
|
+
/** The current deliveries key, the one clients encrypt to; none before the deploy has made it */
|
|
5161
|
+
readonly key: OptionType<StructType<{
|
|
5162
|
+
readonly fingerprint: StringType;
|
|
5163
|
+
readonly publicKey: StringType;
|
|
5164
|
+
readonly expires: DateTimeType;
|
|
5165
|
+
}>>;
|
|
5166
|
+
/** Every key of the keyring, in the order they were made: the current one last */
|
|
5167
|
+
readonly keys: ArrayType<StructType<{
|
|
5168
|
+
readonly fingerprint: StringType;
|
|
5169
|
+
readonly created: DateTimeType;
|
|
5170
|
+
readonly expires: DateTimeType;
|
|
5171
|
+
readonly madeBy: StringType;
|
|
5172
|
+
readonly current: BooleanType;
|
|
5173
|
+
readonly retired: OptionType<StructType<{
|
|
5174
|
+
readonly at: DateTimeType;
|
|
5175
|
+
readonly by: StringType;
|
|
5176
|
+
}>>;
|
|
5177
|
+
}>>;
|
|
5178
|
+
}>;
|
|
5179
|
+
export type FilesDeliveriesAdminType = typeof FilesDeliveriesAdminType;
|
|
5180
|
+
export type FilesDeliveriesAdmin = ValueTypeOf<typeof FilesDeliveriesAdminType>;
|
|
5181
|
+
/**
|
|
5182
|
+
* What a server admin asks of a repository's deliveries key
|
|
5183
|
+
* (`POST /api/admin/files/deliveries/:repo`): a new current key, every
|
|
5184
|
+
* earlier key kept; or an earlier key, by its fingerprint, closed to new
|
|
5185
|
+
* deliveries from now or from a later moment. There is no make (the deploy
|
|
5186
|
+
* makes the first key) and no delete (no key is ever deleted).
|
|
5187
|
+
*/
|
|
5188
|
+
export declare const FilesDeliveriesActionType: VariantType<{
|
|
5189
|
+
readonly rotate: NullType;
|
|
5190
|
+
readonly retire: StructType<{
|
|
5191
|
+
readonly fingerprint: StringType;
|
|
5192
|
+
readonly from: OptionType<DateTimeType>;
|
|
5193
|
+
}>;
|
|
5194
|
+
}>;
|
|
5195
|
+
export type FilesDeliveriesActionType = typeof FilesDeliveriesActionType;
|
|
5196
|
+
export type FilesDeliveriesAction = ValueTypeOf<typeof FilesDeliveriesActionType>;
|
|
5197
|
+
/**
|
|
5198
|
+
* Text a client or a sender chose (a file's name, a refusal that quotes one,
|
|
5199
|
+
* a fingerprint as typed) made safe to print to a terminal or a log: every
|
|
5200
|
+
* control or format character (C0, DEL, C1, the line and paragraph
|
|
5201
|
+
* separators, bidirectional overrides, zero-width characters, a byte-order
|
|
5202
|
+
* mark), a lone surrogate, and the backslash itself written as an escape
|
|
5203
|
+
* (`\x1b`, `\u202e`, `\\`), so no such text moves a cursor, rings a bell,
|
|
5204
|
+
* reorders a line or passes for another line.
|
|
5205
|
+
*
|
|
5206
|
+
* @param text - The text
|
|
5207
|
+
* @returns It, every such character escaped
|
|
5208
|
+
*/
|
|
5209
|
+
export declare function printable(text: string): string;
|
|
5210
|
+
/**
|
|
5211
|
+
* The words a rotation or a retirement of a deliveries key is refused with:
|
|
5212
|
+
* the platform's key maker and the in-memory keys alike.
|
|
5213
|
+
*/
|
|
5214
|
+
export declare const FILES_DELIVERIES_KEY_REFUSALS: {
|
|
5215
|
+
readonly unknown: (fingerprint: string) => string;
|
|
5216
|
+
readonly current: (fingerprint: string) => string;
|
|
5217
|
+
readonly retired: (fingerprint: string, at: string) => string;
|
|
5218
|
+
readonly past: "a key is retired from now or a later moment, never an earlier one: a file already taken would be refused when taken again";
|
|
5219
|
+
readonly full: (held: number, bytes: number) => string;
|
|
5220
|
+
};
|
|
5221
|
+
/**
|
|
5222
|
+
* Where the key that opened a probed file stands in the repository's
|
|
5223
|
+
* keyring: the current key; an earlier key, which still takes deliveries;
|
|
5224
|
+
* or a key retired for new deliveries from a moment (the file was written
|
|
5225
|
+
* before it, or it would have been refused).
|
|
5226
|
+
*/
|
|
5227
|
+
export declare const FilesProbeKeyStandingType: VariantType<{
|
|
5228
|
+
readonly current: NullType;
|
|
5229
|
+
readonly earlier: NullType;
|
|
5230
|
+
readonly retired: DateTimeType;
|
|
5231
|
+
}>;
|
|
5232
|
+
export type FilesProbeKeyStandingType = typeof FilesProbeKeyStandingType;
|
|
5233
|
+
export type FilesProbeKeyStanding = ValueTypeOf<typeof FilesProbeKeyStandingType>;
|
|
5234
|
+
/**
|
|
5235
|
+
* What a probe of one delivered file found, without taking it:
|
|
5236
|
+
* - `taken`: the sync would take it: its plaintext's size, and the key it
|
|
5237
|
+
* was encrypted to (its fingerprint, and where it stands). Nothing else
|
|
5238
|
+
* of the plaintext.
|
|
5239
|
+
* - `refused`: the sync would refuse it, for this reason, in the words its
|
|
5240
|
+
* report gives (`filesRefusalText`).
|
|
5241
|
+
* - `missing`: no file at the key in the repository's deliveries folder.
|
|
5242
|
+
* - `unfinished`: the decryption did not end within the probe's round.
|
|
5243
|
+
*/
|
|
5244
|
+
export declare const FilesProbeOutcomeType: VariantType<{
|
|
5245
|
+
readonly taken: StructType<{
|
|
5246
|
+
readonly bytes: IntegerType;
|
|
5247
|
+
readonly fingerprint: StringType;
|
|
5248
|
+
readonly standing: VariantType<{
|
|
5249
|
+
readonly current: NullType;
|
|
5250
|
+
readonly earlier: NullType;
|
|
5251
|
+
readonly retired: DateTimeType;
|
|
5252
|
+
}>;
|
|
5253
|
+
}>;
|
|
5254
|
+
readonly refused: VariantType<{
|
|
5255
|
+
readonly too_large: StructType<{
|
|
5256
|
+
readonly size: IntegerType;
|
|
5257
|
+
readonly limit: IntegerType;
|
|
5258
|
+
}>;
|
|
5259
|
+
readonly segment_too_large: StructType<{
|
|
5260
|
+
readonly bytes: IntegerType;
|
|
5261
|
+
readonly limit: IntegerType;
|
|
5262
|
+
}>;
|
|
5263
|
+
readonly unreadable: StringType;
|
|
5264
|
+
readonly not_beast2: StringType;
|
|
5265
|
+
readonly type_mismatch: StructType<{
|
|
5266
|
+
readonly expected: import("@elaraai/east").RecursiveType<VariantType<{
|
|
5267
|
+
readonly Never: NullType;
|
|
5268
|
+
readonly Null: NullType;
|
|
5269
|
+
readonly Boolean: NullType;
|
|
5270
|
+
readonly Integer: NullType;
|
|
5271
|
+
readonly Float: NullType;
|
|
5272
|
+
readonly String: NullType;
|
|
5273
|
+
readonly DateTime: NullType;
|
|
5274
|
+
readonly Blob: NullType;
|
|
5275
|
+
readonly Ref: import("@elaraai/east").RecursiveTypeMarker;
|
|
5276
|
+
readonly Array: import("@elaraai/east").RecursiveTypeMarker;
|
|
5277
|
+
readonly Set: import("@elaraai/east").RecursiveTypeMarker;
|
|
5278
|
+
readonly Dict: StructType<{
|
|
5279
|
+
readonly key: import("@elaraai/east").RecursiveTypeMarker;
|
|
5280
|
+
readonly value: import("@elaraai/east").RecursiveTypeMarker;
|
|
5281
|
+
}>;
|
|
5282
|
+
readonly Struct: ArrayType<StructType<{
|
|
5283
|
+
readonly name: StringType;
|
|
5284
|
+
readonly type: import("@elaraai/east").RecursiveTypeMarker;
|
|
5285
|
+
}>>;
|
|
5286
|
+
readonly Variant: ArrayType<StructType<{
|
|
5287
|
+
readonly name: StringType;
|
|
5288
|
+
readonly type: import("@elaraai/east").RecursiveTypeMarker;
|
|
5289
|
+
}>>;
|
|
5290
|
+
readonly Recursive: VariantType<{
|
|
5291
|
+
readonly ref: IntegerType;
|
|
5292
|
+
readonly wrapper: StructType<{
|
|
5293
|
+
readonly id: IntegerType;
|
|
5294
|
+
readonly inner: import("@elaraai/east").RecursiveTypeMarker;
|
|
5295
|
+
}>;
|
|
5296
|
+
}>;
|
|
5297
|
+
readonly Function: StructType<{
|
|
5298
|
+
readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
|
|
5299
|
+
readonly output: import("@elaraai/east").RecursiveTypeMarker;
|
|
5300
|
+
}>;
|
|
5301
|
+
readonly AsyncFunction: StructType<{
|
|
5302
|
+
readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
|
|
5303
|
+
readonly output: import("@elaraai/east").RecursiveTypeMarker;
|
|
5304
|
+
}>;
|
|
5305
|
+
readonly Vector: import("@elaraai/east").RecursiveTypeMarker;
|
|
5306
|
+
readonly Matrix: import("@elaraai/east").RecursiveTypeMarker;
|
|
5307
|
+
}>>;
|
|
5308
|
+
readonly actual: import("@elaraai/east").RecursiveType<VariantType<{
|
|
5309
|
+
readonly Never: NullType;
|
|
5310
|
+
readonly Null: NullType;
|
|
5311
|
+
readonly Boolean: NullType;
|
|
5312
|
+
readonly Integer: NullType;
|
|
5313
|
+
readonly Float: NullType;
|
|
5314
|
+
readonly String: NullType;
|
|
5315
|
+
readonly DateTime: NullType;
|
|
5316
|
+
readonly Blob: NullType;
|
|
5317
|
+
readonly Ref: import("@elaraai/east").RecursiveTypeMarker;
|
|
5318
|
+
readonly Array: import("@elaraai/east").RecursiveTypeMarker;
|
|
5319
|
+
readonly Set: import("@elaraai/east").RecursiveTypeMarker;
|
|
5320
|
+
readonly Dict: StructType<{
|
|
5321
|
+
readonly key: import("@elaraai/east").RecursiveTypeMarker;
|
|
5322
|
+
readonly value: import("@elaraai/east").RecursiveTypeMarker;
|
|
5323
|
+
}>;
|
|
5324
|
+
readonly Struct: ArrayType<StructType<{
|
|
5325
|
+
readonly name: StringType;
|
|
5326
|
+
readonly type: import("@elaraai/east").RecursiveTypeMarker;
|
|
5327
|
+
}>>;
|
|
5328
|
+
readonly Variant: ArrayType<StructType<{
|
|
5329
|
+
readonly name: StringType;
|
|
5330
|
+
readonly type: import("@elaraai/east").RecursiveTypeMarker;
|
|
5331
|
+
}>>;
|
|
5332
|
+
readonly Recursive: VariantType<{
|
|
5333
|
+
readonly ref: IntegerType;
|
|
5334
|
+
readonly wrapper: StructType<{
|
|
5335
|
+
readonly id: IntegerType;
|
|
5336
|
+
readonly inner: import("@elaraai/east").RecursiveTypeMarker;
|
|
5337
|
+
}>;
|
|
5338
|
+
}>;
|
|
5339
|
+
readonly Function: StructType<{
|
|
5340
|
+
readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
|
|
5341
|
+
readonly output: import("@elaraai/east").RecursiveTypeMarker;
|
|
5342
|
+
}>;
|
|
5343
|
+
readonly AsyncFunction: StructType<{
|
|
5344
|
+
readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
|
|
5345
|
+
readonly output: import("@elaraai/east").RecursiveTypeMarker;
|
|
5346
|
+
}>;
|
|
5347
|
+
readonly Vector: import("@elaraai/east").RecursiveTypeMarker;
|
|
5348
|
+
readonly Matrix: import("@elaraai/east").RecursiveTypeMarker;
|
|
5349
|
+
}>>;
|
|
5350
|
+
}>;
|
|
5351
|
+
readonly mutation: StructType<{
|
|
5352
|
+
readonly outcome: StringType;
|
|
5353
|
+
readonly message: StringType;
|
|
5354
|
+
}>;
|
|
5355
|
+
readonly missing: StringType;
|
|
5356
|
+
readonly other: StringType;
|
|
5357
|
+
}>;
|
|
5358
|
+
readonly missing: NullType;
|
|
5359
|
+
readonly unfinished: NullType;
|
|
5360
|
+
}>;
|
|
5361
|
+
export type FilesProbeOutcomeType = typeof FilesProbeOutcomeType;
|
|
5362
|
+
export type FilesProbeOutcome = ValueTypeOf<typeof FilesProbeOutcomeType>;
|
|
5363
|
+
/** Where a probe is: running, ended with what it found, or failed (the platform's fault, not the file's), and why. */
|
|
5364
|
+
export declare const FilesProbeStateType: VariantType<{
|
|
5365
|
+
readonly running: NullType;
|
|
5366
|
+
readonly ended: VariantType<{
|
|
5367
|
+
readonly taken: StructType<{
|
|
5368
|
+
readonly bytes: IntegerType;
|
|
5369
|
+
readonly fingerprint: StringType;
|
|
5370
|
+
readonly standing: VariantType<{
|
|
5371
|
+
readonly current: NullType;
|
|
5372
|
+
readonly earlier: NullType;
|
|
5373
|
+
readonly retired: DateTimeType;
|
|
5374
|
+
}>;
|
|
5375
|
+
}>;
|
|
5376
|
+
readonly refused: VariantType<{
|
|
5377
|
+
readonly too_large: StructType<{
|
|
5378
|
+
readonly size: IntegerType;
|
|
5379
|
+
readonly limit: IntegerType;
|
|
5380
|
+
}>;
|
|
5381
|
+
readonly segment_too_large: StructType<{
|
|
5382
|
+
readonly bytes: IntegerType;
|
|
5383
|
+
readonly limit: IntegerType;
|
|
5384
|
+
}>;
|
|
5385
|
+
readonly unreadable: StringType;
|
|
5386
|
+
readonly not_beast2: StringType;
|
|
5387
|
+
readonly type_mismatch: StructType<{
|
|
5388
|
+
readonly expected: import("@elaraai/east").RecursiveType<VariantType<{
|
|
5389
|
+
readonly Never: NullType;
|
|
5390
|
+
readonly Null: NullType;
|
|
5391
|
+
readonly Boolean: NullType;
|
|
5392
|
+
readonly Integer: NullType;
|
|
5393
|
+
readonly Float: NullType;
|
|
5394
|
+
readonly String: NullType;
|
|
5395
|
+
readonly DateTime: NullType;
|
|
5396
|
+
readonly Blob: NullType;
|
|
5397
|
+
readonly Ref: import("@elaraai/east").RecursiveTypeMarker;
|
|
5398
|
+
readonly Array: import("@elaraai/east").RecursiveTypeMarker;
|
|
5399
|
+
readonly Set: import("@elaraai/east").RecursiveTypeMarker;
|
|
5400
|
+
readonly Dict: StructType<{
|
|
5401
|
+
readonly key: import("@elaraai/east").RecursiveTypeMarker;
|
|
5402
|
+
readonly value: import("@elaraai/east").RecursiveTypeMarker;
|
|
5403
|
+
}>;
|
|
5404
|
+
readonly Struct: ArrayType<StructType<{
|
|
5405
|
+
readonly name: StringType;
|
|
5406
|
+
readonly type: import("@elaraai/east").RecursiveTypeMarker;
|
|
5407
|
+
}>>;
|
|
5408
|
+
readonly Variant: ArrayType<StructType<{
|
|
5409
|
+
readonly name: StringType;
|
|
5410
|
+
readonly type: import("@elaraai/east").RecursiveTypeMarker;
|
|
5411
|
+
}>>;
|
|
5412
|
+
readonly Recursive: VariantType<{
|
|
5413
|
+
readonly ref: IntegerType;
|
|
5414
|
+
readonly wrapper: StructType<{
|
|
5415
|
+
readonly id: IntegerType;
|
|
5416
|
+
readonly inner: import("@elaraai/east").RecursiveTypeMarker;
|
|
5417
|
+
}>;
|
|
5418
|
+
}>;
|
|
5419
|
+
readonly Function: StructType<{
|
|
5420
|
+
readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
|
|
5421
|
+
readonly output: import("@elaraai/east").RecursiveTypeMarker;
|
|
5422
|
+
}>;
|
|
5423
|
+
readonly AsyncFunction: StructType<{
|
|
5424
|
+
readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
|
|
5425
|
+
readonly output: import("@elaraai/east").RecursiveTypeMarker;
|
|
5426
|
+
}>;
|
|
5427
|
+
readonly Vector: import("@elaraai/east").RecursiveTypeMarker;
|
|
5428
|
+
readonly Matrix: import("@elaraai/east").RecursiveTypeMarker;
|
|
5429
|
+
}>>;
|
|
5430
|
+
readonly actual: import("@elaraai/east").RecursiveType<VariantType<{
|
|
5431
|
+
readonly Never: NullType;
|
|
5432
|
+
readonly Null: NullType;
|
|
5433
|
+
readonly Boolean: NullType;
|
|
5434
|
+
readonly Integer: NullType;
|
|
5435
|
+
readonly Float: NullType;
|
|
5436
|
+
readonly String: NullType;
|
|
5437
|
+
readonly DateTime: NullType;
|
|
5438
|
+
readonly Blob: NullType;
|
|
5439
|
+
readonly Ref: import("@elaraai/east").RecursiveTypeMarker;
|
|
5440
|
+
readonly Array: import("@elaraai/east").RecursiveTypeMarker;
|
|
5441
|
+
readonly Set: import("@elaraai/east").RecursiveTypeMarker;
|
|
5442
|
+
readonly Dict: StructType<{
|
|
5443
|
+
readonly key: import("@elaraai/east").RecursiveTypeMarker;
|
|
5444
|
+
readonly value: import("@elaraai/east").RecursiveTypeMarker;
|
|
5445
|
+
}>;
|
|
5446
|
+
readonly Struct: ArrayType<StructType<{
|
|
5447
|
+
readonly name: StringType;
|
|
5448
|
+
readonly type: import("@elaraai/east").RecursiveTypeMarker;
|
|
5449
|
+
}>>;
|
|
5450
|
+
readonly Variant: ArrayType<StructType<{
|
|
5451
|
+
readonly name: StringType;
|
|
5452
|
+
readonly type: import("@elaraai/east").RecursiveTypeMarker;
|
|
5453
|
+
}>>;
|
|
5454
|
+
readonly Recursive: VariantType<{
|
|
5455
|
+
readonly ref: IntegerType;
|
|
5456
|
+
readonly wrapper: StructType<{
|
|
5457
|
+
readonly id: IntegerType;
|
|
5458
|
+
readonly inner: import("@elaraai/east").RecursiveTypeMarker;
|
|
5459
|
+
}>;
|
|
5460
|
+
}>;
|
|
5461
|
+
readonly Function: StructType<{
|
|
5462
|
+
readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
|
|
5463
|
+
readonly output: import("@elaraai/east").RecursiveTypeMarker;
|
|
5464
|
+
}>;
|
|
5465
|
+
readonly AsyncFunction: StructType<{
|
|
5466
|
+
readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
|
|
5467
|
+
readonly output: import("@elaraai/east").RecursiveTypeMarker;
|
|
5468
|
+
}>;
|
|
5469
|
+
readonly Vector: import("@elaraai/east").RecursiveTypeMarker;
|
|
5470
|
+
readonly Matrix: import("@elaraai/east").RecursiveTypeMarker;
|
|
5471
|
+
}>>;
|
|
5472
|
+
}>;
|
|
5473
|
+
readonly mutation: StructType<{
|
|
5474
|
+
readonly outcome: StringType;
|
|
5475
|
+
readonly message: StringType;
|
|
5476
|
+
}>;
|
|
5477
|
+
readonly missing: StringType;
|
|
5478
|
+
readonly other: StringType;
|
|
5479
|
+
}>;
|
|
5480
|
+
readonly missing: NullType;
|
|
5481
|
+
readonly unfinished: NullType;
|
|
5482
|
+
}>;
|
|
5483
|
+
readonly failed: StringType;
|
|
5484
|
+
}>;
|
|
5485
|
+
export type FilesProbeStateType = typeof FilesProbeStateType;
|
|
5486
|
+
export type FilesProbeState = ValueTypeOf<typeof FilesProbeStateType>;
|
|
5487
|
+
/**
|
|
5488
|
+
* A probe of one file in a repository's deliveries folder
|
|
5489
|
+
* (`POST /api/admin/files/deliveries/:repo/probe`, server admins only): the
|
|
5490
|
+
* file's key, relative to the folder; who asked; where it is. Run in the
|
|
5491
|
+
* files-sync round, the one place the keyring is read, with the sync's own
|
|
5492
|
+
* unseal; it writes no input, no ledger and no object.
|
|
5493
|
+
*/
|
|
5494
|
+
export declare const FilesDeliveriesProbeType: StructType<{
|
|
5495
|
+
readonly id: StringType;
|
|
5496
|
+
/** The file's key, relative to the repository's deliveries folder */
|
|
5497
|
+
readonly key: StringType;
|
|
5498
|
+
/** Who asked: their email, else their subject */
|
|
5499
|
+
readonly by: StringType;
|
|
5500
|
+
readonly state: VariantType<{
|
|
5501
|
+
readonly running: NullType;
|
|
5502
|
+
readonly ended: VariantType<{
|
|
5503
|
+
readonly taken: StructType<{
|
|
5504
|
+
readonly bytes: IntegerType;
|
|
5505
|
+
readonly fingerprint: StringType;
|
|
5506
|
+
readonly standing: VariantType<{
|
|
5507
|
+
readonly current: NullType;
|
|
5508
|
+
readonly earlier: NullType;
|
|
5509
|
+
readonly retired: DateTimeType;
|
|
5510
|
+
}>;
|
|
5511
|
+
}>;
|
|
5512
|
+
readonly refused: VariantType<{
|
|
5513
|
+
readonly too_large: StructType<{
|
|
5514
|
+
readonly size: IntegerType;
|
|
5515
|
+
readonly limit: IntegerType;
|
|
5516
|
+
}>;
|
|
5517
|
+
readonly segment_too_large: StructType<{
|
|
5518
|
+
readonly bytes: IntegerType;
|
|
5519
|
+
readonly limit: IntegerType;
|
|
5520
|
+
}>;
|
|
5521
|
+
readonly unreadable: StringType;
|
|
5522
|
+
readonly not_beast2: StringType;
|
|
5523
|
+
readonly type_mismatch: StructType<{
|
|
5524
|
+
readonly expected: import("@elaraai/east").RecursiveType<VariantType<{
|
|
5525
|
+
readonly Never: NullType;
|
|
5526
|
+
readonly Null: NullType;
|
|
5527
|
+
readonly Boolean: NullType;
|
|
5528
|
+
readonly Integer: NullType;
|
|
5529
|
+
readonly Float: NullType;
|
|
5530
|
+
readonly String: NullType;
|
|
5531
|
+
readonly DateTime: NullType;
|
|
5532
|
+
readonly Blob: NullType;
|
|
5533
|
+
readonly Ref: import("@elaraai/east").RecursiveTypeMarker;
|
|
5534
|
+
readonly Array: import("@elaraai/east").RecursiveTypeMarker;
|
|
5535
|
+
readonly Set: import("@elaraai/east").RecursiveTypeMarker;
|
|
5536
|
+
readonly Dict: StructType<{
|
|
5537
|
+
readonly key: import("@elaraai/east").RecursiveTypeMarker;
|
|
5538
|
+
readonly value: import("@elaraai/east").RecursiveTypeMarker;
|
|
5539
|
+
}>;
|
|
5540
|
+
readonly Struct: ArrayType<StructType<{
|
|
5541
|
+
readonly name: StringType;
|
|
5542
|
+
readonly type: import("@elaraai/east").RecursiveTypeMarker;
|
|
5543
|
+
}>>;
|
|
5544
|
+
readonly Variant: ArrayType<StructType<{
|
|
5545
|
+
readonly name: StringType;
|
|
5546
|
+
readonly type: import("@elaraai/east").RecursiveTypeMarker;
|
|
5547
|
+
}>>;
|
|
5548
|
+
readonly Recursive: VariantType<{
|
|
5549
|
+
readonly ref: IntegerType;
|
|
5550
|
+
readonly wrapper: StructType<{
|
|
5551
|
+
readonly id: IntegerType;
|
|
5552
|
+
readonly inner: import("@elaraai/east").RecursiveTypeMarker;
|
|
5553
|
+
}>;
|
|
5554
|
+
}>;
|
|
5555
|
+
readonly Function: StructType<{
|
|
5556
|
+
readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
|
|
5557
|
+
readonly output: import("@elaraai/east").RecursiveTypeMarker;
|
|
5558
|
+
}>;
|
|
5559
|
+
readonly AsyncFunction: StructType<{
|
|
5560
|
+
readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
|
|
5561
|
+
readonly output: import("@elaraai/east").RecursiveTypeMarker;
|
|
5562
|
+
}>;
|
|
5563
|
+
readonly Vector: import("@elaraai/east").RecursiveTypeMarker;
|
|
5564
|
+
readonly Matrix: import("@elaraai/east").RecursiveTypeMarker;
|
|
5565
|
+
}>>;
|
|
5566
|
+
readonly actual: import("@elaraai/east").RecursiveType<VariantType<{
|
|
5567
|
+
readonly Never: NullType;
|
|
5568
|
+
readonly Null: NullType;
|
|
5569
|
+
readonly Boolean: NullType;
|
|
5570
|
+
readonly Integer: NullType;
|
|
5571
|
+
readonly Float: NullType;
|
|
5572
|
+
readonly String: NullType;
|
|
5573
|
+
readonly DateTime: NullType;
|
|
5574
|
+
readonly Blob: NullType;
|
|
5575
|
+
readonly Ref: import("@elaraai/east").RecursiveTypeMarker;
|
|
5576
|
+
readonly Array: import("@elaraai/east").RecursiveTypeMarker;
|
|
5577
|
+
readonly Set: import("@elaraai/east").RecursiveTypeMarker;
|
|
5578
|
+
readonly Dict: StructType<{
|
|
5579
|
+
readonly key: import("@elaraai/east").RecursiveTypeMarker;
|
|
5580
|
+
readonly value: import("@elaraai/east").RecursiveTypeMarker;
|
|
5581
|
+
}>;
|
|
5582
|
+
readonly Struct: ArrayType<StructType<{
|
|
5583
|
+
readonly name: StringType;
|
|
5584
|
+
readonly type: import("@elaraai/east").RecursiveTypeMarker;
|
|
5585
|
+
}>>;
|
|
5586
|
+
readonly Variant: ArrayType<StructType<{
|
|
5587
|
+
readonly name: StringType;
|
|
5588
|
+
readonly type: import("@elaraai/east").RecursiveTypeMarker;
|
|
5589
|
+
}>>;
|
|
5590
|
+
readonly Recursive: VariantType<{
|
|
5591
|
+
readonly ref: IntegerType;
|
|
5592
|
+
readonly wrapper: StructType<{
|
|
5593
|
+
readonly id: IntegerType;
|
|
5594
|
+
readonly inner: import("@elaraai/east").RecursiveTypeMarker;
|
|
5595
|
+
}>;
|
|
5596
|
+
}>;
|
|
5597
|
+
readonly Function: StructType<{
|
|
5598
|
+
readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
|
|
5599
|
+
readonly output: import("@elaraai/east").RecursiveTypeMarker;
|
|
5600
|
+
}>;
|
|
5601
|
+
readonly AsyncFunction: StructType<{
|
|
5602
|
+
readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
|
|
5603
|
+
readonly output: import("@elaraai/east").RecursiveTypeMarker;
|
|
5604
|
+
}>;
|
|
5605
|
+
readonly Vector: import("@elaraai/east").RecursiveTypeMarker;
|
|
5606
|
+
readonly Matrix: import("@elaraai/east").RecursiveTypeMarker;
|
|
5607
|
+
}>>;
|
|
5608
|
+
}>;
|
|
5609
|
+
readonly mutation: StructType<{
|
|
5610
|
+
readonly outcome: StringType;
|
|
5611
|
+
readonly message: StringType;
|
|
5612
|
+
}>;
|
|
5613
|
+
readonly missing: StringType;
|
|
5614
|
+
readonly other: StringType;
|
|
5615
|
+
}>;
|
|
5616
|
+
readonly missing: NullType;
|
|
5617
|
+
readonly unfinished: NullType;
|
|
5618
|
+
}>;
|
|
5619
|
+
readonly failed: StringType;
|
|
5620
|
+
}>;
|
|
5621
|
+
readonly startedAt: DateTimeType;
|
|
5622
|
+
readonly finishedAt: OptionType<DateTimeType>;
|
|
5623
|
+
}>;
|
|
5624
|
+
export type FilesDeliveriesProbeType = typeof FilesDeliveriesProbeType;
|
|
5625
|
+
export type FilesDeliveriesProbe = ValueTypeOf<typeof FilesDeliveriesProbeType>;
|
|
5626
|
+
/** What a server admin asks a probe of: one file, by its key relative to the repository's deliveries folder. */
|
|
5627
|
+
export declare const FilesDeliveriesProbeRequestType: StructType<{
|
|
5628
|
+
readonly key: StringType;
|
|
5629
|
+
}>;
|
|
5630
|
+
export type FilesDeliveriesProbeRequestType = typeof FilesDeliveriesProbeRequestType;
|
|
5631
|
+
export type FilesDeliveriesProbeRequest = ValueTypeOf<typeof FilesDeliveriesProbeRequestType>;
|
|
5632
|
+
/** The refusal of a probe's key that is not one file inside the repository's deliveries folder. */
|
|
5633
|
+
export declare const FILES_PROBE_KEY_REFUSAL = "a probe names one file of the repository's deliveries folder by its key relative to that folder: no leading /, no . or .. part, no empty part, no URL, not a folder";
|
|
5634
|
+
/**
|
|
5635
|
+
* Whether a probe's key names one file inside the repository's deliveries
|
|
5636
|
+
* folder, relative to it: null when it does, else
|
|
5637
|
+
* {@link FILES_PROBE_KEY_REFUSAL}. Refused: empty or too long; absolute (a
|
|
5638
|
+
* leading `/` or `\`); a URL (`scheme:`); a `.` or `..` part, or an empty
|
|
5639
|
+
* one, with `/` or `\` as separators; a folder (a trailing separator). A
|
|
5640
|
+
* key's other characters, control characters included, are the file's own
|
|
5641
|
+
* name: never refused, always printed escaped (`printable`).
|
|
5642
|
+
*
|
|
5643
|
+
* @param key - The key, as the administrator gave it
|
|
5644
|
+
* @returns The refusal, or null
|
|
5645
|
+
*/
|
|
5646
|
+
export declare function filesProbeKeyProblem(key: string): string | null;
|
|
5647
|
+
/**
|
|
5648
|
+
* A probe's outcome as the lines a person reads: the file's key and any
|
|
5649
|
+
* text a client chose escaped (`printable`); a refusal in the words a sync's
|
|
5650
|
+
* report gives it (`filesRefusalText`).
|
|
5651
|
+
*
|
|
5652
|
+
* @param probe - The probe
|
|
5653
|
+
* @returns One or two lines
|
|
5654
|
+
*/
|
|
5655
|
+
export declare function filesProbeText(probe: FilesDeliveriesProbe): string;
|
|
4955
5656
|
//# sourceMappingURL=files-types.d.ts.map
|