@encore.dev/sdk 2.0.0-beta.7 → 2.0.0-beta.8
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 +55 -0
- package/app_meta.ts +8 -0
- package/config/config.test.ts +10 -3
- package/config/config.ts +75 -21
- package/config/mod.ts +4 -3
- package/config/secrets.ts +72 -55
- package/cron/mod.ts +32 -0
- package/dist/app_meta.d.ts +7 -0
- package/dist/app_meta.d.ts.map +1 -0
- package/dist/app_meta.js +1 -0
- package/dist/app_meta.js.map +1 -1
- package/dist/config/config.d.ts +44 -18
- package/dist/config/config.d.ts.map +1 -0
- package/dist/config/config.js +43 -18
- package/dist/config/config.js.map +1 -1
- package/dist/config/mod.d.ts +5 -4
- package/dist/config/mod.d.ts.map +1 -0
- package/dist/config/mod.js +2 -2
- package/dist/config/mod.js.map +1 -1
- package/dist/config/secrets.d.ts +62 -39
- package/dist/config/secrets.d.ts.map +1 -0
- package/dist/config/secrets.js +21 -37
- package/dist/config/secrets.js.map +1 -1
- package/dist/config/value.d.ts +1 -0
- package/dist/config/value.d.ts.map +1 -0
- package/dist/cron/mod.d.ts +31 -0
- package/dist/cron/mod.d.ts.map +1 -0
- package/dist/cron/mod.js +23 -0
- package/dist/cron/mod.js.map +1 -1
- package/dist/gateway/errors.d.ts +101 -0
- package/dist/gateway/errors.d.ts.map +1 -0
- package/dist/gateway/errors.js +146 -0
- package/dist/gateway/errors.js.map +1 -0
- package/dist/gateway/match.d.ts +127 -0
- package/dist/gateway/match.d.ts.map +1 -0
- package/dist/gateway/match.js +206 -0
- package/dist/gateway/match.js.map +1 -0
- package/dist/gateway/middleware.d.ts +108 -0
- package/dist/gateway/middleware.d.ts.map +1 -0
- package/dist/gateway/middleware.js +9 -0
- package/dist/gateway/middleware.js.map +1 -0
- package/dist/gateway/mod.d.ts +129 -0
- package/dist/gateway/mod.d.ts.map +1 -0
- package/dist/gateway/mod.js +187 -0
- package/dist/gateway/mod.js.map +1 -0
- package/dist/gateway/request.d.ts +304 -0
- package/dist/gateway/request.d.ts.map +1 -0
- package/dist/gateway/request.js +403 -0
- package/dist/gateway/request.js.map +1 -0
- package/dist/gateway/serve.d.ts +114 -0
- package/dist/gateway/serve.d.ts.map +1 -0
- package/dist/gateway/serve.js +510 -0
- package/dist/gateway/serve.js.map +1 -0
- package/dist/internal/clients/call.d.ts +147 -0
- package/dist/internal/clients/call.d.ts.map +1 -0
- package/dist/internal/clients/call.js +274 -0
- package/dist/internal/clients/call.js.map +1 -0
- package/dist/internal/clients/grpc.d.ts +90 -0
- package/dist/internal/clients/grpc.d.ts.map +1 -0
- package/dist/internal/clients/grpc.js +355 -0
- package/dist/internal/clients/grpc.js.map +1 -0
- package/dist/internal/clients/mod.d.ts +81 -0
- package/dist/internal/clients/mod.d.ts.map +1 -0
- package/dist/internal/clients/mod.js +237 -0
- package/dist/internal/clients/mod.js.map +1 -0
- package/dist/internal/fetch.d.ts +54 -0
- package/dist/internal/fetch.d.ts.map +1 -0
- package/dist/internal/fetch.js +240 -0
- package/dist/internal/fetch.js.map +1 -0
- package/dist/internal/otel/backend.d.ts +2 -0
- package/dist/internal/otel/backend.d.ts.map +1 -0
- package/dist/internal/otel/context.d.ts +1 -0
- package/dist/internal/otel/context.d.ts.map +1 -0
- package/dist/internal/otel/context_manager.d.ts +1 -0
- package/dist/internal/otel/context_manager.d.ts.map +1 -0
- package/dist/internal/otel/encode.d.ts +2 -0
- package/dist/internal/otel/encode.d.ts.map +1 -0
- package/dist/internal/otel/index.d.ts +2 -2
- package/dist/internal/otel/index.d.ts.map +1 -0
- package/dist/internal/otel/index.js +1 -2
- package/dist/internal/otel/index.js.map +1 -1
- package/dist/internal/otel/meter.d.ts +1 -0
- package/dist/internal/otel/meter.d.ts.map +1 -0
- package/dist/internal/otel/propagator.d.ts +1 -0
- package/dist/internal/otel/propagator.d.ts.map +1 -0
- package/dist/internal/otel/provider.d.ts +1 -0
- package/dist/internal/otel/provider.d.ts.map +1 -0
- package/dist/internal/otel/span.d.ts +4 -0
- package/dist/internal/otel/span.d.ts.map +1 -0
- package/dist/internal/otel/span.js +5 -0
- package/dist/internal/otel/span.js.map +1 -1
- package/dist/internal/otel/tracer.d.ts +1 -0
- package/dist/internal/otel/tracer.d.ts.map +1 -0
- package/dist/internal/otel/tracer.js +11 -5
- package/dist/internal/otel/tracer.js.map +1 -1
- package/dist/internal/reqfields.d.ts +150 -0
- package/dist/internal/reqfields.d.ts.map +1 -0
- package/dist/internal/reqfields.js +312 -0
- package/dist/internal/reqfields.js.map +1 -0
- package/dist/internal/runtime/meter.d.ts +1 -0
- package/dist/internal/runtime/meter.d.ts.map +1 -0
- package/dist/internal/runtime/mod.d.ts +6 -0
- package/dist/internal/runtime/mod.d.ts.map +1 -0
- package/dist/internal/runtime/mod.js +32 -2
- package/dist/internal/runtime/mod.js.map +1 -1
- package/dist/internal/runtime/napi/napi.cjs +160 -16
- package/dist/internal/runtime/napi/napi.d.cts +474 -29
- package/dist/internal/runtime/shutdown.d.ts +5 -0
- package/dist/internal/runtime/shutdown.d.ts.map +1 -0
- package/dist/internal/runtime/shutdown.js +9 -1
- package/dist/internal/runtime/shutdown.js.map +1 -1
- package/dist/internal/testing/runner.d.ts +2 -0
- package/dist/internal/testing/runner.d.ts.map +1 -0
- package/dist/internal/testing/runner.js +10 -0
- package/dist/internal/testing/runner.js.map +1 -0
- package/dist/internal/testing/scope.d.ts +81 -0
- package/dist/internal/testing/scope.d.ts.map +1 -0
- package/dist/internal/testing/scope.js +237 -0
- package/dist/internal/testing/scope.js.map +1 -0
- package/dist/internal/utils/constraints.d.ts +1 -0
- package/dist/internal/utils/constraints.d.ts.map +1 -0
- package/dist/log/index.d.ts +1 -0
- package/dist/log/index.d.ts.map +1 -0
- package/dist/log/logger.d.ts +2 -0
- package/dist/log/logger.d.ts.map +1 -0
- package/dist/log/runtime.d.ts +2 -0
- package/dist/log/runtime.d.ts.map +1 -0
- package/dist/log/stderr.d.ts +1 -0
- package/dist/log/stderr.d.ts.map +1 -0
- package/dist/metrics/mod.d.ts +45 -118
- package/dist/metrics/mod.d.ts.map +1 -0
- package/dist/metrics/mod.js +44 -179
- package/dist/metrics/mod.js.map +1 -1
- package/dist/mod.d.ts +1 -2
- package/dist/mod.d.ts.map +1 -0
- package/dist/mod.js +0 -1
- package/dist/mod.js.map +1 -1
- package/dist/otel.d.ts +1 -0
- package/dist/otel.d.ts.map +1 -0
- package/dist/pubsub/encoding.d.ts +5 -0
- package/dist/pubsub/encoding.d.ts.map +1 -0
- package/dist/pubsub/encoding.js +10 -2
- package/dist/pubsub/encoding.js.map +1 -1
- package/dist/pubsub/mod.d.ts +4 -3
- package/dist/pubsub/mod.d.ts.map +1 -0
- package/dist/pubsub/mod.js +2 -2
- package/dist/pubsub/mod.js.map +1 -1
- package/dist/pubsub/refs.d.ts +8 -0
- package/dist/pubsub/refs.d.ts.map +1 -0
- package/dist/pubsub/refs.js.map +1 -1
- package/dist/pubsub/subscription.d.ts +104 -10
- package/dist/pubsub/subscription.d.ts.map +1 -0
- package/dist/pubsub/subscription.js +98 -16
- package/dist/pubsub/subscription.js.map +1 -1
- package/dist/pubsub/topic.d.ts +87 -23
- package/dist/pubsub/topic.d.ts.map +1 -0
- package/dist/pubsub/topic.js +143 -40
- package/dist/pubsub/topic.js.map +1 -1
- package/dist/reqctx/mod.d.ts +191 -0
- package/dist/reqctx/mod.d.ts.map +1 -0
- package/dist/reqctx/mod.js +160 -0
- package/dist/reqctx/mod.js.map +1 -0
- package/dist/services/index.d.ts +145 -4
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +155 -8
- package/dist/services/index.js.map +1 -1
- package/dist/shutdown/mod.d.ts +1 -0
- package/dist/shutdown/mod.d.ts.map +1 -0
- package/dist/storage/objects/bucket.d.ts +312 -7
- package/dist/storage/objects/bucket.d.ts.map +1 -0
- package/dist/storage/objects/bucket.js +305 -15
- package/dist/storage/objects/bucket.js.map +1 -1
- package/dist/storage/objects/error.d.ts +10 -0
- package/dist/storage/objects/error.d.ts.map +1 -0
- package/dist/storage/objects/error.js +25 -1
- package/dist/storage/objects/error.js.map +1 -1
- package/dist/storage/objects/mod.d.ts +4 -3
- package/dist/storage/objects/mod.d.ts.map +1 -0
- package/dist/storage/objects/mod.js +1 -1
- package/dist/storage/objects/mod.js.map +1 -1
- package/dist/storage/objects/refs.d.ts +20 -4
- package/dist/storage/objects/refs.d.ts.map +1 -0
- package/dist/storage/objects/refs.js +6 -0
- package/dist/storage/objects/refs.js.map +1 -1
- package/dist/storage/postgres/database.d.ts +81 -25
- package/dist/storage/postgres/database.d.ts.map +1 -0
- package/dist/storage/postgres/database.js +125 -37
- package/dist/storage/postgres/database.js.map +1 -1
- package/dist/storage/postgres/errors.d.ts +120 -0
- package/dist/storage/postgres/errors.d.ts.map +1 -0
- package/dist/storage/postgres/errors.js +162 -0
- package/dist/storage/postgres/errors.js.map +1 -0
- package/dist/storage/postgres/interval.d.ts +44 -0
- package/dist/storage/postgres/interval.d.ts.map +1 -0
- package/dist/storage/postgres/interval.js +153 -0
- package/dist/storage/postgres/interval.js.map +1 -0
- package/dist/storage/postgres/mod.d.ts +4 -1
- package/dist/storage/postgres/mod.d.ts.map +1 -0
- package/dist/storage/postgres/mod.js +2 -0
- package/dist/storage/postgres/mod.js.map +1 -1
- package/dist/storage/redis/bitfield.d.ts +67 -0
- package/dist/storage/redis/bitfield.d.ts.map +1 -0
- package/dist/storage/redis/bitfield.js +114 -0
- package/dist/storage/redis/bitfield.js.map +1 -0
- package/dist/storage/redis/command.d.ts +45 -0
- package/dist/storage/redis/command.d.ts.map +1 -0
- package/dist/storage/redis/command.js +78 -0
- package/dist/storage/redis/command.js.map +1 -0
- package/dist/storage/redis/commands.d.ts +223 -139
- package/dist/storage/redis/commands.d.ts.map +1 -0
- package/dist/storage/redis/commands.js +128 -6
- package/dist/storage/redis/commands.js.map +1 -1
- package/dist/storage/redis/database.d.ts +56 -22
- package/dist/storage/redis/database.d.ts.map +1 -0
- package/dist/storage/redis/database.js +62 -0
- package/dist/storage/redis/database.js.map +1 -1
- package/dist/storage/redis/mod.d.ts +31 -4
- package/dist/storage/redis/mod.d.ts.map +1 -0
- package/dist/storage/redis/mod.js +26 -1
- package/dist/storage/redis/mod.js.map +1 -1
- package/dist/storage/redis/native.d.ts +8 -0
- package/dist/storage/redis/native.d.ts.map +1 -0
- package/dist/storage/redis/native.js +10 -0
- package/dist/storage/redis/native.js.map +1 -1
- package/dist/storage/redis/options.d.ts +1 -0
- package/dist/storage/redis/options.d.ts.map +1 -0
- package/dist/storage/redis/pubsub.d.ts +2 -0
- package/dist/storage/redis/pubsub.d.ts.map +1 -0
- package/dist/storage/redis/reply.d.ts +34 -0
- package/dist/storage/redis/reply.d.ts.map +1 -0
- package/dist/storage/redis/reply.js +40 -1
- package/dist/storage/redis/reply.js.map +1 -1
- package/dist/storage/redis/scan.d.ts +1 -0
- package/dist/storage/redis/scan.d.ts.map +1 -0
- package/dist/storage/redis/script.d.ts +1 -0
- package/dist/storage/redis/script.d.ts.map +1 -0
- package/dist/storage/redis/target.d.ts +5 -3
- package/dist/storage/redis/target.d.ts.map +1 -0
- package/dist/storage/redis/target.js +39 -28
- package/dist/storage/redis/target.js.map +1 -1
- package/dist/storage/redis/wire.d.ts +7 -10
- package/dist/storage/redis/wire.d.ts.map +1 -0
- package/dist/storage/redis/wire.js +8 -32
- package/dist/storage/redis/wire.js.map +1 -1
- package/dist/testing/bun.d.ts +8 -0
- package/dist/testing/bun.d.ts.map +1 -0
- package/dist/testing/bun.js +13 -0
- package/dist/testing/bun.js.map +1 -0
- package/dist/testing/jest.d.ts +8 -0
- package/dist/testing/jest.d.ts.map +1 -0
- package/dist/testing/jest.js +11 -0
- package/dist/testing/jest.js.map +1 -0
- package/dist/testing/mod.d.ts +160 -0
- package/dist/testing/mod.d.ts.map +1 -0
- package/dist/testing/mod.js +227 -0
- package/dist/testing/mod.js.map +1 -0
- package/dist/testing/node.d.ts +9 -0
- package/dist/testing/node.d.ts.map +1 -0
- package/dist/testing/node.js +12 -0
- package/dist/testing/node.js.map +1 -0
- package/dist/testing/vitest.d.ts +8 -0
- package/dist/testing/vitest.d.ts.map +1 -0
- package/dist/testing/vitest.js +13 -0
- package/dist/testing/vitest.js.map +1 -0
- package/dist/tracing/mod.d.ts +19 -0
- package/dist/tracing/mod.d.ts.map +1 -0
- package/dist/tracing/mod.js +46 -0
- package/dist/tracing/mod.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/mod.d.ts +1 -0
- package/dist/types/mod.d.ts.map +1 -0
- package/gateway/errors.ts +172 -0
- package/gateway/gateway.e2e.test.ts +297 -0
- package/gateway/gateway.test.ts +891 -0
- package/gateway/match.ts +239 -0
- package/gateway/middleware.ts +134 -0
- package/gateway/mod.ts +210 -0
- package/gateway/request.ts +578 -0
- package/gateway/serve.ts +738 -0
- package/internal/clients/call.ts +389 -0
- package/internal/clients/grpc.test.ts +368 -0
- package/internal/clients/grpc.ts +485 -0
- package/internal/clients/mod.test.ts +464 -0
- package/internal/clients/mod.ts +337 -0
- package/internal/fetch.ts +276 -0
- package/internal/otel/index.ts +1 -7
- package/internal/otel/span.ts +6 -0
- package/internal/otel/tracer.test.ts +43 -15
- package/internal/otel/tracer.ts +12 -5
- package/internal/reqfields.ts +390 -0
- package/internal/runtime/mod.ts +41 -2
- package/internal/runtime/napi/napi.cjs +160 -16
- package/internal/runtime/napi/napi.d.cts +474 -29
- package/internal/runtime/shutdown.ts +11 -1
- package/internal/testing/runner.ts +10 -0
- package/internal/testing/scope.ts +273 -0
- package/metrics/mod.test.ts +13 -16
- package/metrics/mod.ts +57 -226
- package/mod.ts +0 -8
- package/otel.test.ts +13 -6
- package/package.json +67 -15
- package/pubsub/encoding.ts +11 -1
- package/pubsub/mod.ts +10 -3
- package/pubsub/pubsub.test.ts +232 -14
- package/pubsub/refs.ts +16 -0
- package/pubsub/subscription.ts +194 -16
- package/pubsub/topic.test.ts +26 -0
- package/pubsub/topic.ts +220 -25
- package/reqctx/mod.ts +284 -0
- package/reqctx/reqctx.test.ts +193 -0
- package/scripts/postprocess-docs.test.ts +48 -0
- package/services/index.test.ts +341 -1
- package/services/index.ts +183 -8
- package/storage/objects/bucket.test.ts +573 -0
- package/storage/objects/bucket.ts +649 -20
- package/storage/objects/error.ts +28 -1
- package/storage/objects/mod.ts +15 -0
- package/storage/objects/refs.ts +51 -3
- package/storage/postgres/database.integration.test.ts +275 -0
- package/storage/postgres/database.test.ts +193 -6
- package/storage/postgres/database.ts +202 -55
- package/storage/postgres/errors.ts +186 -0
- package/storage/postgres/interval.test.ts +72 -0
- package/storage/postgres/interval.ts +170 -0
- package/storage/postgres/mod.ts +4 -0
- package/storage/redis/bitfield.ts +162 -0
- package/storage/redis/command.ts +84 -0
- package/storage/redis/commands.ts +271 -21
- package/storage/redis/database.ts +77 -23
- package/storage/redis/mod.ts +38 -2
- package/storage/redis/native.ts +11 -0
- package/storage/redis/redis.test.ts +170 -10
- package/storage/redis/reply.ts +76 -1
- package/storage/redis/runtime.test.ts +15 -0
- package/storage/redis/target.ts +47 -44
- package/storage/redis/wire.ts +8 -32
- package/testing/bun.ts +13 -0
- package/testing/jest.ts +11 -0
- package/testing/mod.ts +337 -0
- package/testing/node.ts +12 -0
- package/testing/vitest.ts +13 -0
- package/tracing/mod.ts +82 -0
- package/tracing/native.test.ts +170 -0
- package/tracing/tracing.test.ts +317 -0
- package/dist/internal/otel/request_context.d.ts +0 -11
- package/dist/internal/otel/request_context.js +0 -20
- package/dist/internal/otel/request_context.js.map +0 -1
- package/dist/internal/reqtrack/mod.d.ts +0 -6
- package/dist/internal/reqtrack/mod.js +0 -28
- package/dist/internal/reqtrack/mod.js.map +0 -1
- package/dist/req_meta.d.ts +0 -47
- package/dist/req_meta.js +0 -26
- package/dist/req_meta.js.map +0 -1
- package/internal/otel/request_context.ts +0 -32
- package/internal/reqtrack/mod.ts +0 -39
- package/req_meta.ts +0 -75
|
@@ -1,9 +1,28 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
+
/// <reference types="node" />
|
|
3
|
+
/// <reference types="node" />
|
|
2
4
|
import * as runtime from '../../internal/runtime/mod.js';
|
|
3
5
|
import { StringLiteral } from '../../internal/utils/constraints.js';
|
|
4
|
-
import { BucketPerms, Uploader, SignedUploader, Downloader, SignedDownloader, Attrser, Lister, Remover, PublicUrler } from './refs.js';
|
|
6
|
+
import { BucketPerms, Uploader, SignedUploader, Downloader, SignedDownloader, Attrser, Lister, Remover, PublicUrler, AttrsUpdater, IfMatchUploader, IfMatchRemover } from './refs.js';
|
|
7
|
+
/**
|
|
8
|
+
* How often an object is expected to be read, which the cloud provider
|
|
9
|
+
* prices its storage by.
|
|
10
|
+
*
|
|
11
|
+
* - `standard`: read often. No minimum storage duration and no retrieval fee.
|
|
12
|
+
* - `infrequent`: read about once a month or less (GCS Nearline, S3
|
|
13
|
+
* Standard-IA). Billed for at least 30 days, with a fee per read.
|
|
14
|
+
* - `cold`: read about once a quarter or less (GCS Coldline, S3 Glacier
|
|
15
|
+
* Instant Retrieval; Standard-IA on Cloudflare R2). Billed for at least
|
|
16
|
+
* 90 days, with a higher fee per read.
|
|
17
|
+
*
|
|
18
|
+
* Every class can be read immediately.
|
|
19
|
+
*/
|
|
20
|
+
export type StorageClass = 'standard' | 'infrequent' | 'cold';
|
|
5
21
|
/**
|
|
6
22
|
* Configuration options for declaring a Bucket.
|
|
23
|
+
*
|
|
24
|
+
* Encore reads the configuration when it builds the app, so its values must
|
|
25
|
+
* be literals.
|
|
7
26
|
*/
|
|
8
27
|
export interface BucketConfig {
|
|
9
28
|
/**
|
|
@@ -16,22 +35,114 @@ export interface BucketConfig {
|
|
|
16
35
|
* Defaults to false if unset.
|
|
17
36
|
*/
|
|
18
37
|
versioned?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* The storage class of an object uploaded without one.
|
|
40
|
+
* Defaults to `"standard"`.
|
|
41
|
+
*
|
|
42
|
+
* `"auto"` lets the provider move each object between classes by how
|
|
43
|
+
* often it is read (GCS Autoclass, S3 Intelligent-Tiering). It is a
|
|
44
|
+
* bucket's class only: objects in such a bucket can't name a class, and
|
|
45
|
+
* lifecycle rules can't move them.
|
|
46
|
+
*/
|
|
47
|
+
storageClass?: StorageClass | 'auto';
|
|
48
|
+
/**
|
|
49
|
+
* Rules that move objects to colder storage classes, or delete them, as
|
|
50
|
+
* they age. Providers apply them asynchronously, usually within a day,
|
|
51
|
+
* to the objects already in the bucket too.
|
|
52
|
+
*/
|
|
53
|
+
lifecycle?: LifecycleRule[];
|
|
54
|
+
/**
|
|
55
|
+
* Keep every object for at least this long after it was written: it
|
|
56
|
+
* can't be deleted or overwritten sooner.
|
|
57
|
+
*/
|
|
58
|
+
retention?: Retention;
|
|
59
|
+
/**
|
|
60
|
+
* Whether objects can be given their own retain-until time, with the
|
|
61
|
+
* `retainUntil` upload option and `extendRetention`.
|
|
62
|
+
* Defaults to false if unset.
|
|
63
|
+
*/
|
|
64
|
+
objectRetention?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Tags that classify the bucket, for policies to read: written out as
|
|
67
|
+
* string literals, as in `{data: "pci"}`. Keys and values are lowercase
|
|
68
|
+
* letters, digits, `_` and `-`, at most 63 characters; a key starts with a
|
|
69
|
+
* letter, and not with `encore`, which is reserved. At most 32 tags.
|
|
70
|
+
*/
|
|
71
|
+
tags?: Record<string, string>;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* A lifecycle rule: an optional prefix and at least one action. Days are
|
|
75
|
+
* whole numbers from 1 to 36500 and count from when an object was written,
|
|
76
|
+
* or for the noncurrent fields, from when it was replaced or removed.
|
|
77
|
+
*/
|
|
78
|
+
export interface LifecycleRule {
|
|
79
|
+
/** Only objects whose names start with it. Defaults to every object. */
|
|
80
|
+
prefix?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Move an object to `infrequent` this many days after it was written.
|
|
83
|
+
* At least 30.
|
|
84
|
+
*/
|
|
85
|
+
moveToInfrequentAfterDays?: number;
|
|
86
|
+
/**
|
|
87
|
+
* Move an object to `cold` this many days after it was written. With
|
|
88
|
+
* `moveToInfrequentAfterDays`, at least 30 days after it.
|
|
89
|
+
*/
|
|
90
|
+
moveToColdAfterDays?: number;
|
|
91
|
+
/**
|
|
92
|
+
* Delete an object this many days after it was written. In a versioned
|
|
93
|
+
* bucket it becomes a noncurrent version, as `remove` does.
|
|
94
|
+
*/
|
|
95
|
+
deleteAfterDays?: number;
|
|
96
|
+
/**
|
|
97
|
+
* Versioned buckets: delete a noncurrent version this many days after it
|
|
98
|
+
* was replaced or removed.
|
|
99
|
+
*/
|
|
100
|
+
deleteNoncurrentAfterDays?: number;
|
|
101
|
+
/**
|
|
102
|
+
* Versioned buckets: never delete the newest this many noncurrent
|
|
103
|
+
* versions. On its own, delete the noncurrent versions beyond them.
|
|
104
|
+
*/
|
|
105
|
+
keepNoncurrentVersions?: number;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* A bucket's retention period.
|
|
109
|
+
*/
|
|
110
|
+
export interface Retention {
|
|
111
|
+
/** The days, from 1 to 36500, an object is kept after it was written. */
|
|
112
|
+
days: number;
|
|
19
113
|
}
|
|
20
114
|
/**
|
|
21
115
|
* Defines a new Object Storage bucket infrastructure resource.
|
|
22
116
|
*/
|
|
23
|
-
export declare class Bucket extends BucketPerms implements Uploader, SignedUploader, Downloader, SignedDownloader, Attrser, Lister, Remover, PublicUrler {
|
|
24
|
-
|
|
117
|
+
export declare class Bucket extends BucketPerms implements Uploader, SignedUploader, Downloader, SignedDownloader, Attrser, Lister, Remover, PublicUrler, AttrsUpdater, IfMatchUploader, IfMatchRemover {
|
|
118
|
+
private readonly bucketName;
|
|
119
|
+
/** The runtime's bucket: made on first use in test mode. */
|
|
120
|
+
private own?;
|
|
25
121
|
/**
|
|
26
122
|
* Creates a new bucket with the given name and configuration
|
|
27
123
|
*/
|
|
28
124
|
constructor(name: string, cfg?: BucketConfig);
|
|
125
|
+
/** The native bucket: in a test, the test's instance of it. */
|
|
126
|
+
get impl(): runtime.Bucket;
|
|
29
127
|
/**
|
|
30
128
|
* Reference an existing bucket by name.
|
|
31
129
|
* To create a new storage bucket, use `new StorageBucket(...)` instead.
|
|
32
130
|
*/
|
|
33
131
|
static named<name extends string>(name: StringLiteral<name>): Bucket;
|
|
34
|
-
|
|
132
|
+
/**
|
|
133
|
+
* Lists the objects in the bucket, sorted by name.
|
|
134
|
+
*
|
|
135
|
+
* With a `delimiter`, the names that continue past the `prefix` with the
|
|
136
|
+
* delimiter are grouped into one entry per common prefix, with
|
|
137
|
+
* `isPrefix` set, as a directory listing does.
|
|
138
|
+
*/
|
|
139
|
+
list(options?: ListOptions): AsyncGenerator<ListEntry>;
|
|
140
|
+
/**
|
|
141
|
+
* Lists every stored version of the objects in the bucket, sorted by
|
|
142
|
+
* name and then newest first. A removed object has no `latest` version.
|
|
143
|
+
* An unversioned bucket lists one latest version per object.
|
|
144
|
+
*/
|
|
145
|
+
listVersions(options?: ListVersionsOptions): AsyncGenerator<ObjectVersion>;
|
|
35
146
|
/**
|
|
36
147
|
* Returns whether the object exists in the bucket.
|
|
37
148
|
* Throws an error on network failure.
|
|
@@ -45,12 +156,58 @@ export declare class Bucket extends BucketPerms implements Uploader, SignedUploa
|
|
|
45
156
|
/**
|
|
46
157
|
* Uploads an object to the bucket.
|
|
47
158
|
*/
|
|
48
|
-
upload(name: string, data:
|
|
159
|
+
upload(name: string, data: Uint8Array, options?: UploadOptions): Promise<ObjectAttrs>;
|
|
160
|
+
/**
|
|
161
|
+
* Uploads an object to the bucket from a stream of bytes: a Web
|
|
162
|
+
* `ReadableStream`, a Node.js `Readable`, or any async iterable of
|
|
163
|
+
* `Uint8Array` chunks. The stream is read as fast as the upload takes
|
|
164
|
+
* its bytes.
|
|
165
|
+
*
|
|
166
|
+
* If the stream errors, the upload is aborted and nothing is stored.
|
|
167
|
+
*/
|
|
168
|
+
uploadStream(name: string, data: AsyncIterable<Uint8Array> | ReadableStream<Uint8Array>, options?: UploadOptions): Promise<ObjectAttrs>;
|
|
169
|
+
/**
|
|
170
|
+
* Uploads an object only if the bucket still holds the given revision of
|
|
171
|
+
* it, as `attrs`, `upload`, `updateAttrs` or a listing returned it, and
|
|
172
|
+
* throws `PreconditionFailed` otherwise, also if the object no longer
|
|
173
|
+
* exists. This makes read-modify-write safe against concurrent writers.
|
|
174
|
+
* A missing revision throws `InvalidArgument`.
|
|
175
|
+
*
|
|
176
|
+
* `data` is bytes or a stream, as `upload` and `uploadStream` take.
|
|
177
|
+
*
|
|
178
|
+
* The match compares the object's contents, not its attributes:
|
|
179
|
+
* `updateAttrs` doesn't break it. Google Cloud Storage matches the
|
|
180
|
+
* revision's `version`, so a revision without one throws
|
|
181
|
+
* `InvalidArgument` there; Amazon S3 and Cloudflare R2 match its `etag`.
|
|
182
|
+
*
|
|
183
|
+
* On Amazon S3 a conditional write also needs read access to the bucket,
|
|
184
|
+
* which Encore grants to the services that call this.
|
|
185
|
+
*/
|
|
186
|
+
uploadIfMatch(name: string, data: Uint8Array | AsyncIterable<Uint8Array> | ReadableStream<Uint8Array>, revision: Revision, options?: UploadIfMatchOptions): Promise<ObjectAttrs>;
|
|
187
|
+
/**
|
|
188
|
+
* Replaces the given attributes of an object and leaves the others as
|
|
189
|
+
* they are. An empty string clears an attribute (a cleared content type
|
|
190
|
+
* is `application/octet-stream`, as S3 keeps no object without one), and
|
|
191
|
+
* `metadata` replaces the whole map.
|
|
192
|
+
*
|
|
193
|
+
* On S3 this rewrites the object, so a versioned bucket gets a new
|
|
194
|
+
* version, and the object's age for lifecycle rules starts over.
|
|
195
|
+
*/
|
|
196
|
+
updateAttrs(name: string, attrs: UpdateAttrs, options?: UpdateAttrsOptions): Promise<ObjectAttrs>;
|
|
197
|
+
/**
|
|
198
|
+
* Keeps the object until `until` at least. Retention can only be
|
|
199
|
+
* extended: a time earlier than the object's current one throws
|
|
200
|
+
* `InvalidArgument`. The bucket must be declared with `objectRetention`.
|
|
201
|
+
*/
|
|
202
|
+
extendRetention(name: string, until: Date, options?: ExtendRetentionOptions): Promise<ObjectAttrs>;
|
|
49
203
|
/**
|
|
50
204
|
* Generate an external URL to allow uploading an object to the bucket.
|
|
51
205
|
*
|
|
52
206
|
* Anyone with possession of the URL can write to the given object name
|
|
53
207
|
* without any additional auth.
|
|
208
|
+
*
|
|
209
|
+
* The URL doesn't carry the bucket's storage class: an object uploaded
|
|
210
|
+
* through it gets the provider's default class for the bucket.
|
|
54
211
|
*/
|
|
55
212
|
signedUploadUrl(name: string, options?: UploadUrlOptions): Promise<SignedUploadUrl>;
|
|
56
213
|
/**
|
|
@@ -64,11 +221,35 @@ export declare class Bucket extends BucketPerms implements Uploader, SignedUploa
|
|
|
64
221
|
* Downloads an object from the bucket and returns its contents.
|
|
65
222
|
*/
|
|
66
223
|
download(name: string, options?: DownloadOptions): Promise<Buffer>;
|
|
224
|
+
/**
|
|
225
|
+
* Downloads an object from the bucket as a Web `ReadableStream`, read
|
|
226
|
+
* from the provider as the consumer reads it. A missing object throws
|
|
227
|
+
* here, before any bytes. Cancelling the stream stops the download.
|
|
228
|
+
*
|
|
229
|
+
* In Node.js, `Readable.fromWeb` converts it to a Node.js stream.
|
|
230
|
+
*/
|
|
231
|
+
downloadStream(name: string, options?: DownloadOptions): Promise<ReadableStream<Uint8Array>>;
|
|
67
232
|
/**
|
|
68
233
|
* Removes an object from the bucket.
|
|
69
234
|
* Throws an error on network failure.
|
|
70
235
|
*/
|
|
71
236
|
remove(name: string, options?: DeleteOptions): Promise<void>;
|
|
237
|
+
/**
|
|
238
|
+
* Removes an object only if the bucket still holds the given revision of
|
|
239
|
+
* it, as `attrs`, `upload`, `updateAttrs` or a listing returned it, and
|
|
240
|
+
* throws `PreconditionFailed` otherwise, also if the object no longer
|
|
241
|
+
* exists. It compares the latest version, so there is no `version` to
|
|
242
|
+
* remove. A missing revision throws `InvalidArgument`.
|
|
243
|
+
*
|
|
244
|
+
* The match compares the object's contents, not its attributes:
|
|
245
|
+
* `updateAttrs` doesn't break it.
|
|
246
|
+
*
|
|
247
|
+
* On Amazon S3 a conditional delete also needs read access to the
|
|
248
|
+
* bucket, which Encore grants to the services that call this. Cloudflare
|
|
249
|
+
* R2 doesn't support conditional deletes: there it throws
|
|
250
|
+
* `InvalidArgument`.
|
|
251
|
+
*/
|
|
252
|
+
removeIfMatch(name: string, revision: Revision): Promise<void>;
|
|
72
253
|
/**
|
|
73
254
|
* Returns the public URL for accessing the object with the given name.
|
|
74
255
|
* Throws an error if the bucket is not public.
|
|
@@ -85,7 +266,27 @@ export interface ListOptions {
|
|
|
85
266
|
* If unset, all objects are included.
|
|
86
267
|
*/
|
|
87
268
|
prefix?: string;
|
|
88
|
-
/**
|
|
269
|
+
/**
|
|
270
|
+
* Maximum number of entries to return, common prefixes included.
|
|
271
|
+
* Defaults to no limit.
|
|
272
|
+
*/
|
|
273
|
+
limit?: number;
|
|
274
|
+
/**
|
|
275
|
+
* Group the names that continue past the prefix with this delimiter,
|
|
276
|
+
* usually `"/"`, into one entry per common prefix.
|
|
277
|
+
*/
|
|
278
|
+
delimiter?: string;
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Options for listing object versions in a bucket.
|
|
282
|
+
*/
|
|
283
|
+
export interface ListVersionsOptions {
|
|
284
|
+
/**
|
|
285
|
+
* Only include objects with this prefix in the listing.
|
|
286
|
+
* If unset, all objects are included.
|
|
287
|
+
*/
|
|
288
|
+
prefix?: string;
|
|
289
|
+
/** Maximum number of versions to return. Defaults to no limit. */
|
|
89
290
|
limit?: number;
|
|
90
291
|
}
|
|
91
292
|
/**
|
|
@@ -156,6 +357,25 @@ export interface DownloadOptions {
|
|
|
156
357
|
*/
|
|
157
358
|
range?: ByteRange;
|
|
158
359
|
}
|
|
360
|
+
/**
|
|
361
|
+
* One revision of an object: what `uploadIfMatch`, `removeIfMatch` and the
|
|
362
|
+
* `ifMatch` precondition of `updateAttrs` compare. `ObjectAttrs` is one, so
|
|
363
|
+
* the attributes an operation returned can be passed as they are.
|
|
364
|
+
*/
|
|
365
|
+
export interface Revision {
|
|
366
|
+
etag: string;
|
|
367
|
+
version?: string;
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* Conditions on the object an upload writes.
|
|
371
|
+
*/
|
|
372
|
+
export interface Preconditions {
|
|
373
|
+
/**
|
|
374
|
+
* Only write the object if it does not exist yet.
|
|
375
|
+
* Throws `PreconditionFailed` otherwise.
|
|
376
|
+
*/
|
|
377
|
+
notExists?: boolean;
|
|
378
|
+
}
|
|
159
379
|
/**
|
|
160
380
|
* Describes the attributes of an object stored in a bucket.
|
|
161
381
|
*/
|
|
@@ -166,24 +386,108 @@ export interface ObjectAttrs {
|
|
|
166
386
|
version?: string;
|
|
167
387
|
etag: string;
|
|
168
388
|
contentType?: string;
|
|
389
|
+
cacheControl?: string;
|
|
390
|
+
contentDisposition?: string;
|
|
391
|
+
/** Custom metadata; empty if the object has none. */
|
|
392
|
+
metadata: Record<string, string>;
|
|
393
|
+
/** When this version of the object was written. */
|
|
394
|
+
lastModified?: Date;
|
|
395
|
+
/**
|
|
396
|
+
* The object's storage class. Every object in a bucket whose class is
|
|
397
|
+
* `"auto"` reads `"auto"`. Undefined for a class Encore doesn't model,
|
|
398
|
+
* set outside Encore.
|
|
399
|
+
*/
|
|
400
|
+
storageClass?: StorageClass | 'auto';
|
|
401
|
+
/** The object's own retain-until time, if it has one. */
|
|
402
|
+
retainUntil?: Date;
|
|
169
403
|
}
|
|
170
404
|
/**
|
|
171
405
|
* A single entry returned when listing objects in a bucket.
|
|
172
406
|
*/
|
|
173
407
|
export interface ListEntry {
|
|
408
|
+
/** The object's name, or a common prefix, ending in the delimiter. */
|
|
174
409
|
name: string;
|
|
175
410
|
size: number;
|
|
176
411
|
etag: string;
|
|
412
|
+
/**
|
|
413
|
+
* Whether the entry is a common prefix of a listing with a delimiter,
|
|
414
|
+
* rather than an object. A prefix has size 0 and an empty etag.
|
|
415
|
+
*/
|
|
416
|
+
isPrefix: boolean;
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* One stored version of an object, as `listVersions` lists it.
|
|
420
|
+
*/
|
|
421
|
+
export interface ObjectVersion {
|
|
422
|
+
name: string;
|
|
423
|
+
version?: string;
|
|
424
|
+
size: number;
|
|
425
|
+
etag: string;
|
|
426
|
+
/** Whether this is the object's current version. */
|
|
427
|
+
latest: boolean;
|
|
428
|
+
lastModified?: Date;
|
|
177
429
|
}
|
|
178
430
|
/**
|
|
179
431
|
* Options for uploading an object to a bucket.
|
|
180
432
|
*/
|
|
181
433
|
export interface UploadOptions {
|
|
182
434
|
contentType?: string;
|
|
435
|
+
/** The `Cache-Control` header that downloads of the object get. */
|
|
436
|
+
cacheControl?: string;
|
|
437
|
+
/** The `Content-Disposition` header that downloads of the object get. */
|
|
438
|
+
contentDisposition?: string;
|
|
439
|
+
/**
|
|
440
|
+
* Custom metadata. Keys match `[a-z0-9][a-z0-9_-]*` and values are
|
|
441
|
+
* printable ASCII. Keys and values together may take 8 KiB on GCS and
|
|
442
|
+
* 2 KiB on S3.
|
|
443
|
+
*/
|
|
444
|
+
metadata?: Record<string, string>;
|
|
445
|
+
/** The object's storage class. Defaults to the bucket's. */
|
|
446
|
+
storageClass?: StorageClass;
|
|
447
|
+
/**
|
|
448
|
+
* Keep the object until then: it can't be deleted or overwritten
|
|
449
|
+
* sooner. The bucket must be declared with `objectRetention`.
|
|
450
|
+
*/
|
|
451
|
+
retainUntil?: Date;
|
|
452
|
+
preconditions?: Preconditions;
|
|
453
|
+
}
|
|
454
|
+
/**
|
|
455
|
+
* Options for `uploadIfMatch`: those of `upload`, without preconditions.
|
|
456
|
+
*/
|
|
457
|
+
export type UploadIfMatchOptions = Omit<UploadOptions, 'preconditions'>;
|
|
458
|
+
/**
|
|
459
|
+
* The attributes `updateAttrs` replaces. An attribute left out stays as it
|
|
460
|
+
* is, and an empty string clears it; a cleared `contentType` is
|
|
461
|
+
* `application/octet-stream`. `metadata` replaces the whole map, so `{}`
|
|
462
|
+
* clears it.
|
|
463
|
+
*/
|
|
464
|
+
export interface UpdateAttrs {
|
|
465
|
+
contentType?: string;
|
|
466
|
+
cacheControl?: string;
|
|
467
|
+
contentDisposition?: string;
|
|
468
|
+
metadata?: Record<string, string>;
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
471
|
+
* Options for updating an object's attributes.
|
|
472
|
+
*/
|
|
473
|
+
export interface UpdateAttrsOptions {
|
|
474
|
+
/** The object version to update. Defaults to the latest. */
|
|
475
|
+
version?: string;
|
|
183
476
|
preconditions?: {
|
|
184
|
-
|
|
477
|
+
/**
|
|
478
|
+
* Only update the object if it is still this revision.
|
|
479
|
+
* Throws `PreconditionFailed` otherwise.
|
|
480
|
+
*/
|
|
481
|
+
ifMatch?: Revision;
|
|
185
482
|
};
|
|
186
483
|
}
|
|
484
|
+
/**
|
|
485
|
+
* Options for extending an object's retention.
|
|
486
|
+
*/
|
|
487
|
+
export interface ExtendRetentionOptions {
|
|
488
|
+
/** The object version to retain. Defaults to the latest. */
|
|
489
|
+
version?: string;
|
|
490
|
+
}
|
|
187
491
|
/**
|
|
188
492
|
* Options for generating a signed upload URL.
|
|
189
493
|
*/
|
|
@@ -214,3 +518,4 @@ export interface DownloadUrlOptions {
|
|
|
214
518
|
export interface SignedDownloadUrl {
|
|
215
519
|
url: string;
|
|
216
520
|
}
|
|
521
|
+
//# sourceMappingURL=bucket.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bucket.d.ts","sourceRoot":"","sources":["../../../storage/objects/bucket.ts"],"names":[],"mappings":";;;AACA,OAAO,KAAK,OAAO,MAAM,4BAA4B,CAAC;AAEtD,OAAO,EAAC,aAAa,EAAC,MAAM,kCAAkC,CAAC;AAE/D,OAAO,EACL,WAAW,EACX,QAAQ,EACR,cAAc,EACd,UAAU,EACV,gBAAgB,EAChB,OAAO,EACP,MAAM,EACN,OAAO,EACP,WAAW,EACX,YAAY,EACZ,eAAe,EACf,cAAc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