diff --git a/.changeset/fuzzy-news-clean.md b/.changeset/fuzzy-news-clean.md new file mode 100644 index 000000000000..7ba6b181f024 --- /dev/null +++ b/.changeset/fuzzy-news-clean.md @@ -0,0 +1,5 @@ +--- +"miniflare": minor +--- + +Implemented basic Python support diff --git a/packages/miniflare/package.json b/packages/miniflare/package.json index 6f2b0d7452d8..971f45cbc068 100644 --- a/packages/miniflare/package.json +++ b/packages/miniflare/package.json @@ -49,7 +49,7 @@ "glob-to-regexp": "^0.4.1", "stoppable": "^1.1.0", "undici": "^5.28.2", - "workerd": "1.20231218.0", + "workerd": "1.20240129.0", "ws": "^8.11.0", "youch": "^3.2.2", "zod": "^3.20.6" diff --git a/packages/miniflare/src/index.ts b/packages/miniflare/src/index.ts index 58a61a0dc374..e4caa9505c31 100644 --- a/packages/miniflare/src/index.ts +++ b/packages/miniflare/src/index.ts @@ -1169,7 +1169,13 @@ export class Miniflare { ); } - return { services: servicesArray, sockets, extensions }; + const autogates = [ + // Enables Python support in workerd. + // TODO(later): remove this once this gate is removed from workerd. + "workerd-autogate-builtin-wasm-modules" + ]; + + return { services: servicesArray, sockets, extensions, autogates }; } async #assembleAndUpdateConfig() { diff --git a/packages/miniflare/src/plugins/core/modules.ts b/packages/miniflare/src/plugins/core/modules.ts index 9cb043b17fa1..9bb782aad392 100644 --- a/packages/miniflare/src/plugins/core/modules.ts +++ b/packages/miniflare/src/plugins/core/modules.ts @@ -46,6 +46,8 @@ export const ModuleRuleTypeSchema = z.enum([ "Text", "Data", "CompiledWasm", + "PythonModule", + "PythonRequirement" ]); export type ModuleRuleType = z.infer; @@ -347,6 +349,12 @@ ${dim(modulesConfig)}`; case "CompiledWasm": this.modules.push({ name, wasm: data }); break; + case "PythonModule": + this.modules.push({ name, pythonModule: data.toString("utf-8") }); + break; + case "PythonRequirement": + this.modules.push({ name, pythonRequirement: data.toString("utf-8") }); + break; default: // `type` should've been validated against `ModuleRuleTypeSchema` const exhaustive: never = rule.type; @@ -405,6 +413,10 @@ export function convertModuleDefinition( return { name, data: contentsToArray(contents) }; case "CompiledWasm": return { name, wasm: contentsToArray(contents) }; + case "PythonModule": + return { name, pythonModule: contentsToString(contents) }; + case "PythonRequirement": + return { name, pythonRequirement: contentsToString(contents) }; default: // `type` should've been validated against `ModuleRuleTypeSchema` const exhaustive: never = def.type; @@ -425,6 +437,8 @@ function convertWorkerModule(mod: Worker_Module): ModuleDefinition { else if ("text" in m) return { path, type: "Text" }; else if ("data" in m) return { path, type: "Data" }; else if ("wasm" in m) return { path, type: "CompiledWasm" }; + else if ("pythonModule" in m) return { path, type: "PythonModule" }; + else if ("pythonRequirement" in m) return { path, type: "PythonRequirement" }; // This function is only used for building error messages including // generated modules, and these are the types we generate. diff --git a/packages/miniflare/src/runtime/config/workerd.capnp b/packages/miniflare/src/runtime/config/workerd.capnp index 0bd98b55515e..61623c3db5d0 100644 --- a/packages/miniflare/src/runtime/config/workerd.capnp +++ b/packages/miniflare/src/runtime/config/workerd.capnp @@ -34,7 +34,12 @@ # afraid to fall back to code for anything the config cannot express, as Workers are very fast # to execute! -$import "/capnp/c++.capnp".namespace("workerd::server::config"); +# Any capnp files imported here must be: +# 1. embedded into workerd-meta.capnp +# 2. added to `tryImportBulitin` in workerd.c++ (grep for '"/workerd/workerd.capnp"'). +using Cxx = import "/capnp/c++.capnp"; +$Cxx.namespace("workerd::server::config"); +$Cxx.allowCancellation; struct Config { # Top-level configuration for a workerd instance. @@ -74,6 +79,11 @@ struct Config { extensions @3 :List(Extension); # Extensions provide capabilities to all workers. Extensions are usually prepared separately # and are late-linked with the app using this config field. + + autogates @4 :List(Text); + # A list of gates which are enabled. + # These are used to gate features/changes in workerd and in our internal repo. See the equivalent + # config definition in our internal repo for more details. } # ======================================================================================== @@ -252,6 +262,15 @@ struct Worker { # (a) allows for importing Node.js-compat built-ins without the node: specifier-prefix # (b) exposes the subset of common Node.js globals such as process, Buffer, etc that # we implement in the workerd runtime. + + pythonModule @8 :Text; + # A Python module. All bundles containing this value type are converted into a JS/WASM Worker + # Bundle prior to execution. + + pythonRequirement @9 :Text; + # A Python package that is required by this bundle. The package must be supported by + # Pyodide (https://pyodide.org/en/stable/usage/packages-in-pyodide.html). All packages listed + # will be installed prior to the execution of the worker. } } @@ -485,7 +504,7 @@ struct Worker { } } - globalOutbound @6 :ServiceDesignator = (name = "internet"); + globalOutbound @6 :ServiceDesignator = "internet"; # Where should the global "fetch" go to? The default is the service called "internet", which # should usually be configured to talk to the public internet. @@ -579,6 +598,9 @@ struct Worker { # TODO(someday): Support distributing objects across a cluster. At present, objects are always # local to one instance of the runtime. + + moduleFallback @13 :Text; + } struct ExternalServer { @@ -877,4 +899,4 @@ struct Extension { esModule @2 :Text; # Raw source code of ES module. } -} +} \ No newline at end of file diff --git a/packages/miniflare/src/runtime/config/workerd.capnp.d.ts b/packages/miniflare/src/runtime/config/workerd.capnp.d.ts index 60d71619aeea..d16661156a5c 100644 --- a/packages/miniflare/src/runtime/config/workerd.capnp.d.ts +++ b/packages/miniflare/src/runtime/config/workerd.capnp.d.ts @@ -2,989 +2,983 @@ * This file has been automatically generated by the [capnpc-ts utility](https://github.com/jdiaz5513/capnp-ts). */ import * as capnp from "capnp-ts"; -import { Struct as __S } from "capnp-ts"; +import { Struct as __S } from 'capnp-ts'; export declare const _capnpFileId = "e6afd26682091c01"; export declare class Config extends __S { - static readonly _capnp: { - displayName: string; - id: string; - size: capnp.ObjectSize; - }; - static _Services: capnp.ListCtor; - static _Sockets: capnp.ListCtor; - static _Extensions: capnp.ListCtor; - adoptServices(value: capnp.Orphan>): void; - disownServices(): capnp.Orphan>; - getServices(): capnp.List; - hasServices(): boolean; - initServices(length: number): capnp.List; - setServices(value: capnp.List): void; - adoptSockets(value: capnp.Orphan>): void; - disownSockets(): capnp.Orphan>; - getSockets(): capnp.List; - hasSockets(): boolean; - initSockets(length: number): capnp.List; - setSockets(value: capnp.List): void; - adoptV8Flags(value: capnp.Orphan>): void; - disownV8Flags(): capnp.Orphan>; - getV8Flags(): capnp.List; - hasV8Flags(): boolean; - initV8Flags(length: number): capnp.List; - setV8Flags(value: capnp.List): void; - adoptExtensions(value: capnp.Orphan>): void; - disownExtensions(): capnp.Orphan>; - getExtensions(): capnp.List; - hasExtensions(): boolean; - initExtensions(length: number): capnp.List; - setExtensions(value: capnp.List): void; - toString(): string; + static readonly _capnp: { + displayName: string; + id: string; + size: capnp.ObjectSize; + }; + static _Services: capnp.ListCtor; + static _Sockets: capnp.ListCtor; + static _Extensions: capnp.ListCtor; + adoptServices(value: capnp.Orphan>): void; + disownServices(): capnp.Orphan>; + getServices(): capnp.List; + hasServices(): boolean; + initServices(length: number): capnp.List; + setServices(value: capnp.List): void; + adoptSockets(value: capnp.Orphan>): void; + disownSockets(): capnp.Orphan>; + getSockets(): capnp.List; + hasSockets(): boolean; + initSockets(length: number): capnp.List; + setSockets(value: capnp.List): void; + adoptV8Flags(value: capnp.Orphan>): void; + disownV8Flags(): capnp.Orphan>; + getV8Flags(): capnp.List; + hasV8Flags(): boolean; + initV8Flags(length: number): capnp.List; + setV8Flags(value: capnp.List): void; + adoptExtensions(value: capnp.Orphan>): void; + disownExtensions(): capnp.Orphan>; + getExtensions(): capnp.List; + hasExtensions(): boolean; + initExtensions(length: number): capnp.List; + setExtensions(value: capnp.List): void; + adoptAutogates(value: capnp.Orphan>): void; + disownAutogates(): capnp.Orphan>; + getAutogates(): capnp.List; + hasAutogates(): boolean; + initAutogates(length: number): capnp.List; + setAutogates(value: capnp.List): void; + toString(): string; } export declare class Socket_Https extends __S { - static readonly _capnp: { - displayName: string; - id: string; - size: capnp.ObjectSize; - }; - adoptOptions(value: capnp.Orphan): void; - disownOptions(): capnp.Orphan; - getOptions(): HttpOptions; - hasOptions(): boolean; - initOptions(): HttpOptions; - setOptions(value: HttpOptions): void; - adoptTlsOptions(value: capnp.Orphan): void; - disownTlsOptions(): capnp.Orphan; - getTlsOptions(): TlsOptions; - hasTlsOptions(): boolean; - initTlsOptions(): TlsOptions; - setTlsOptions(value: TlsOptions): void; - toString(): string; + static readonly _capnp: { + displayName: string; + id: string; + size: capnp.ObjectSize; + }; + adoptOptions(value: capnp.Orphan): void; + disownOptions(): capnp.Orphan; + getOptions(): HttpOptions; + hasOptions(): boolean; + initOptions(): HttpOptions; + setOptions(value: HttpOptions): void; + adoptTlsOptions(value: capnp.Orphan): void; + disownTlsOptions(): capnp.Orphan; + getTlsOptions(): TlsOptions; + hasTlsOptions(): boolean; + initTlsOptions(): TlsOptions; + setTlsOptions(value: TlsOptions): void; + toString(): string; } export declare enum Socket_Which { - HTTP = 0, - HTTPS = 1, + HTTP = 0, + HTTPS = 1 } export declare class Socket extends __S { - static readonly HTTP = Socket_Which.HTTP; - static readonly HTTPS = Socket_Which.HTTPS; - static readonly _capnp: { - displayName: string; - id: string; - size: capnp.ObjectSize; - }; - getName(): string; - setName(value: string): void; - getAddress(): string; - setAddress(value: string): void; - adoptHttp(value: capnp.Orphan): void; - disownHttp(): capnp.Orphan; - getHttp(): HttpOptions; - hasHttp(): boolean; - initHttp(): HttpOptions; - isHttp(): boolean; - setHttp(value: HttpOptions): void; - getHttps(): Socket_Https; - initHttps(): Socket_Https; - isHttps(): boolean; - setHttps(): void; - adoptService(value: capnp.Orphan): void; - disownService(): capnp.Orphan; - getService(): ServiceDesignator; - hasService(): boolean; - initService(): ServiceDesignator; - setService(value: ServiceDesignator): void; - toString(): string; - which(): Socket_Which; + static readonly HTTP = Socket_Which.HTTP; + static readonly HTTPS = Socket_Which.HTTPS; + static readonly _capnp: { + displayName: string; + id: string; + size: capnp.ObjectSize; + }; + getName(): string; + setName(value: string): void; + getAddress(): string; + setAddress(value: string): void; + adoptHttp(value: capnp.Orphan): void; + disownHttp(): capnp.Orphan; + getHttp(): HttpOptions; + hasHttp(): boolean; + initHttp(): HttpOptions; + isHttp(): boolean; + setHttp(value: HttpOptions): void; + getHttps(): Socket_Https; + initHttps(): Socket_Https; + isHttps(): boolean; + setHttps(): void; + adoptService(value: capnp.Orphan): void; + disownService(): capnp.Orphan; + getService(): ServiceDesignator; + hasService(): boolean; + initService(): ServiceDesignator; + setService(value: ServiceDesignator): void; + toString(): string; + which(): Socket_Which; } export declare enum Service_Which { - UNSPECIFIED = 0, - WORKER = 1, - NETWORK = 2, - EXTERNAL = 3, - DISK = 4, + UNSPECIFIED = 0, + WORKER = 1, + NETWORK = 2, + EXTERNAL = 3, + DISK = 4 } export declare class Service extends __S { - static readonly UNSPECIFIED = Service_Which.UNSPECIFIED; - static readonly WORKER = Service_Which.WORKER; - static readonly NETWORK = Service_Which.NETWORK; - static readonly EXTERNAL = Service_Which.EXTERNAL; - static readonly DISK = Service_Which.DISK; - static readonly _capnp: { - displayName: string; - id: string; - size: capnp.ObjectSize; - }; - getName(): string; - setName(value: string): void; - isUnspecified(): boolean; - setUnspecified(): void; - adoptWorker(value: capnp.Orphan): void; - disownWorker(): capnp.Orphan; - getWorker(): Worker; - hasWorker(): boolean; - initWorker(): Worker; - isWorker(): boolean; - setWorker(value: Worker): void; - adoptNetwork(value: capnp.Orphan): void; - disownNetwork(): capnp.Orphan; - getNetwork(): Network; - hasNetwork(): boolean; - initNetwork(): Network; - isNetwork(): boolean; - setNetwork(value: Network): void; - adoptExternal(value: capnp.Orphan): void; - disownExternal(): capnp.Orphan; - getExternal(): ExternalServer; - hasExternal(): boolean; - initExternal(): ExternalServer; - isExternal(): boolean; - setExternal(value: ExternalServer): void; - adoptDisk(value: capnp.Orphan): void; - disownDisk(): capnp.Orphan; - getDisk(): DiskDirectory; - hasDisk(): boolean; - initDisk(): DiskDirectory; - isDisk(): boolean; - setDisk(value: DiskDirectory): void; - toString(): string; - which(): Service_Which; + static readonly UNSPECIFIED = Service_Which.UNSPECIFIED; + static readonly WORKER = Service_Which.WORKER; + static readonly NETWORK = Service_Which.NETWORK; + static readonly EXTERNAL = Service_Which.EXTERNAL; + static readonly DISK = Service_Which.DISK; + static readonly _capnp: { + displayName: string; + id: string; + size: capnp.ObjectSize; + }; + getName(): string; + setName(value: string): void; + isUnspecified(): boolean; + setUnspecified(): void; + adoptWorker(value: capnp.Orphan): void; + disownWorker(): capnp.Orphan; + getWorker(): Worker; + hasWorker(): boolean; + initWorker(): Worker; + isWorker(): boolean; + setWorker(value: Worker): void; + adoptNetwork(value: capnp.Orphan): void; + disownNetwork(): capnp.Orphan; + getNetwork(): Network; + hasNetwork(): boolean; + initNetwork(): Network; + isNetwork(): boolean; + setNetwork(value: Network): void; + adoptExternal(value: capnp.Orphan): void; + disownExternal(): capnp.Orphan; + getExternal(): ExternalServer; + hasExternal(): boolean; + initExternal(): ExternalServer; + isExternal(): boolean; + setExternal(value: ExternalServer): void; + adoptDisk(value: capnp.Orphan): void; + disownDisk(): capnp.Orphan; + getDisk(): DiskDirectory; + hasDisk(): boolean; + initDisk(): DiskDirectory; + isDisk(): boolean; + setDisk(value: DiskDirectory): void; + toString(): string; + which(): Service_Which; } export declare class ServiceDesignator extends __S { - static readonly _capnp: { - displayName: string; - id: string; - size: capnp.ObjectSize; - }; - getName(): string; - setName(value: string): void; - getEntrypoint(): string; - setEntrypoint(value: string): void; - toString(): string; + static readonly _capnp: { + displayName: string; + id: string; + size: capnp.ObjectSize; + }; + getName(): string; + setName(value: string): void; + getEntrypoint(): string; + setEntrypoint(value: string): void; + toString(): string; } export declare enum Worker_Module_Which { - ES_MODULE = 0, - COMMON_JS_MODULE = 1, - TEXT = 2, - DATA = 3, - WASM = 4, - JSON = 5, - NODE_JS_COMPAT_MODULE = 6, + ES_MODULE = 0, + COMMON_JS_MODULE = 1, + TEXT = 2, + DATA = 3, + WASM = 4, + JSON = 5, + NODE_JS_COMPAT_MODULE = 6, + PYTHON_MODULE = 7, + PYTHON_REQUIREMENT = 8 } export declare class Worker_Module extends __S { - static readonly ES_MODULE = Worker_Module_Which.ES_MODULE; - static readonly COMMON_JS_MODULE = Worker_Module_Which.COMMON_JS_MODULE; - static readonly TEXT = Worker_Module_Which.TEXT; - static readonly DATA = Worker_Module_Which.DATA; - static readonly WASM = Worker_Module_Which.WASM; - static readonly JSON = Worker_Module_Which.JSON; - static readonly NODE_JS_COMPAT_MODULE = - Worker_Module_Which.NODE_JS_COMPAT_MODULE; - static readonly _capnp: { - displayName: string; - id: string; - size: capnp.ObjectSize; - }; - getName(): string; - setName(value: string): void; - getEsModule(): string; - isEsModule(): boolean; - setEsModule(value: string): void; - getCommonJsModule(): string; - isCommonJsModule(): boolean; - setCommonJsModule(value: string): void; - getText(): string; - isText(): boolean; - setText(value: string): void; - adoptData(value: capnp.Orphan): void; - disownData(): capnp.Orphan; - getData(): capnp.Data; - hasData(): boolean; - initData(length: number): capnp.Data; - isData(): boolean; - setData(value: capnp.Data): void; - adoptWasm(value: capnp.Orphan): void; - disownWasm(): capnp.Orphan; - getWasm(): capnp.Data; - hasWasm(): boolean; - initWasm(length: number): capnp.Data; - isWasm(): boolean; - setWasm(value: capnp.Data): void; - getJson(): string; - isJson(): boolean; - setJson(value: string): void; - getNodeJsCompatModule(): string; - isNodeJsCompatModule(): boolean; - setNodeJsCompatModule(value: string): void; - toString(): string; - which(): Worker_Module_Which; + static readonly ES_MODULE = Worker_Module_Which.ES_MODULE; + static readonly COMMON_JS_MODULE = Worker_Module_Which.COMMON_JS_MODULE; + static readonly TEXT = Worker_Module_Which.TEXT; + static readonly DATA = Worker_Module_Which.DATA; + static readonly WASM = Worker_Module_Which.WASM; + static readonly JSON = Worker_Module_Which.JSON; + static readonly NODE_JS_COMPAT_MODULE = Worker_Module_Which.NODE_JS_COMPAT_MODULE; + static readonly PYTHON_MODULE = Worker_Module_Which.PYTHON_MODULE; + static readonly PYTHON_REQUIREMENT = Worker_Module_Which.PYTHON_REQUIREMENT; + static readonly _capnp: { + displayName: string; + id: string; + size: capnp.ObjectSize; + }; + getName(): string; + setName(value: string): void; + getEsModule(): string; + isEsModule(): boolean; + setEsModule(value: string): void; + getCommonJsModule(): string; + isCommonJsModule(): boolean; + setCommonJsModule(value: string): void; + getText(): string; + isText(): boolean; + setText(value: string): void; + adoptData(value: capnp.Orphan): void; + disownData(): capnp.Orphan; + getData(): capnp.Data; + hasData(): boolean; + initData(length: number): capnp.Data; + isData(): boolean; + setData(value: capnp.Data): void; + adoptWasm(value: capnp.Orphan): void; + disownWasm(): capnp.Orphan; + getWasm(): capnp.Data; + hasWasm(): boolean; + initWasm(length: number): capnp.Data; + isWasm(): boolean; + setWasm(value: capnp.Data): void; + getJson(): string; + isJson(): boolean; + setJson(value: string): void; + getNodeJsCompatModule(): string; + isNodeJsCompatModule(): boolean; + setNodeJsCompatModule(value: string): void; + getPythonModule(): string; + isPythonModule(): boolean; + setPythonModule(value: string): void; + getPythonRequirement(): string; + isPythonRequirement(): boolean; + setPythonRequirement(value: string): void; + toString(): string; + which(): Worker_Module_Which; } export declare enum Worker_Binding_Type_Which { - UNSPECIFIED = 0, - TEXT = 1, - DATA = 2, - JSON = 3, - WASM = 4, - CRYPTO_KEY = 5, - SERVICE = 6, - DURABLE_OBJECT_NAMESPACE = 7, - KV_NAMESPACE = 8, - R2BUCKET = 9, - R2ADMIN = 10, - QUEUE = 11, - ANALYTICS_ENGINE = 12, - HYPERDRIVE = 13, + UNSPECIFIED = 0, + TEXT = 1, + DATA = 2, + JSON = 3, + WASM = 4, + CRYPTO_KEY = 5, + SERVICE = 6, + DURABLE_OBJECT_NAMESPACE = 7, + KV_NAMESPACE = 8, + R2BUCKET = 9, + R2ADMIN = 10, + QUEUE = 11, + ANALYTICS_ENGINE = 12, + HYPERDRIVE = 13 } export declare class Worker_Binding_Type extends __S { - static readonly UNSPECIFIED = Worker_Binding_Type_Which.UNSPECIFIED; - static readonly TEXT = Worker_Binding_Type_Which.TEXT; - static readonly DATA = Worker_Binding_Type_Which.DATA; - static readonly JSON = Worker_Binding_Type_Which.JSON; - static readonly WASM = Worker_Binding_Type_Which.WASM; - static readonly CRYPTO_KEY = Worker_Binding_Type_Which.CRYPTO_KEY; - static readonly SERVICE = Worker_Binding_Type_Which.SERVICE; - static readonly DURABLE_OBJECT_NAMESPACE = - Worker_Binding_Type_Which.DURABLE_OBJECT_NAMESPACE; - static readonly KV_NAMESPACE = Worker_Binding_Type_Which.KV_NAMESPACE; - static readonly R2BUCKET = Worker_Binding_Type_Which.R2BUCKET; - static readonly R2ADMIN = Worker_Binding_Type_Which.R2ADMIN; - static readonly QUEUE = Worker_Binding_Type_Which.QUEUE; - static readonly ANALYTICS_ENGINE = Worker_Binding_Type_Which.ANALYTICS_ENGINE; - static readonly HYPERDRIVE = Worker_Binding_Type_Which.HYPERDRIVE; - static readonly _capnp: { - displayName: string; - id: string; - size: capnp.ObjectSize; - }; - isUnspecified(): boolean; - setUnspecified(): void; - isText(): boolean; - setText(): void; - isData(): boolean; - setData(): void; - isJson(): boolean; - setJson(): void; - isWasm(): boolean; - setWasm(): void; - adoptCryptoKey( - value: capnp.Orphan> - ): void; - disownCryptoKey(): capnp.Orphan>; - getCryptoKey(): capnp.List; - hasCryptoKey(): boolean; - initCryptoKey(length: number): capnp.List; - isCryptoKey(): boolean; - setCryptoKey(value: capnp.List): void; - isService(): boolean; - setService(): void; - isDurableObjectNamespace(): boolean; - setDurableObjectNamespace(): void; - isKvNamespace(): boolean; - setKvNamespace(): void; - isR2Bucket(): boolean; - setR2Bucket(): void; - isR2Admin(): boolean; - setR2Admin(): void; - isQueue(): boolean; - setQueue(): void; - isAnalyticsEngine(): boolean; - setAnalyticsEngine(): void; - isHyperdrive(): boolean; - setHyperdrive(): void; - toString(): string; - which(): Worker_Binding_Type_Which; + static readonly UNSPECIFIED = Worker_Binding_Type_Which.UNSPECIFIED; + static readonly TEXT = Worker_Binding_Type_Which.TEXT; + static readonly DATA = Worker_Binding_Type_Which.DATA; + static readonly JSON = Worker_Binding_Type_Which.JSON; + static readonly WASM = Worker_Binding_Type_Which.WASM; + static readonly CRYPTO_KEY = Worker_Binding_Type_Which.CRYPTO_KEY; + static readonly SERVICE = Worker_Binding_Type_Which.SERVICE; + static readonly DURABLE_OBJECT_NAMESPACE = Worker_Binding_Type_Which.DURABLE_OBJECT_NAMESPACE; + static readonly KV_NAMESPACE = Worker_Binding_Type_Which.KV_NAMESPACE; + static readonly R2BUCKET = Worker_Binding_Type_Which.R2BUCKET; + static readonly R2ADMIN = Worker_Binding_Type_Which.R2ADMIN; + static readonly QUEUE = Worker_Binding_Type_Which.QUEUE; + static readonly ANALYTICS_ENGINE = Worker_Binding_Type_Which.ANALYTICS_ENGINE; + static readonly HYPERDRIVE = Worker_Binding_Type_Which.HYPERDRIVE; + static readonly _capnp: { + displayName: string; + id: string; + size: capnp.ObjectSize; + }; + isUnspecified(): boolean; + setUnspecified(): void; + isText(): boolean; + setText(): void; + isData(): boolean; + setData(): void; + isJson(): boolean; + setJson(): void; + isWasm(): boolean; + setWasm(): void; + adoptCryptoKey(value: capnp.Orphan>): void; + disownCryptoKey(): capnp.Orphan>; + getCryptoKey(): capnp.List; + hasCryptoKey(): boolean; + initCryptoKey(length: number): capnp.List; + isCryptoKey(): boolean; + setCryptoKey(value: capnp.List): void; + isService(): boolean; + setService(): void; + isDurableObjectNamespace(): boolean; + setDurableObjectNamespace(): void; + isKvNamespace(): boolean; + setKvNamespace(): void; + isR2Bucket(): boolean; + setR2Bucket(): void; + isR2Admin(): boolean; + setR2Admin(): void; + isQueue(): boolean; + setQueue(): void; + isAnalyticsEngine(): boolean; + setAnalyticsEngine(): void; + isHyperdrive(): boolean; + setHyperdrive(): void; + toString(): string; + which(): Worker_Binding_Type_Which; } export declare class Worker_Binding_DurableObjectNamespaceDesignator extends __S { - static readonly _capnp: { - displayName: string; - id: string; - size: capnp.ObjectSize; - }; - getClassName(): string; - setClassName(value: string): void; - getServiceName(): string; - setServiceName(value: string): void; - toString(): string; + static readonly _capnp: { + displayName: string; + id: string; + size: capnp.ObjectSize; + }; + getClassName(): string; + setClassName(value: string): void; + getServiceName(): string; + setServiceName(value: string): void; + toString(): string; } export declare enum Worker_Binding_CryptoKey_Usage { - ENCRYPT = 0, - DECRYPT = 1, - SIGN = 2, - VERIFY = 3, - DERIVE_KEY = 4, - DERIVE_BITS = 5, - WRAP_KEY = 6, - UNWRAP_KEY = 7, + ENCRYPT = 0, + DECRYPT = 1, + SIGN = 2, + VERIFY = 3, + DERIVE_KEY = 4, + DERIVE_BITS = 5, + WRAP_KEY = 6, + UNWRAP_KEY = 7 } export declare enum Worker_Binding_CryptoKey_Algorithm_Which { - NAME = 0, - JSON = 1, + NAME = 0, + JSON = 1 } export declare class Worker_Binding_CryptoKey_Algorithm extends __S { - static readonly NAME = Worker_Binding_CryptoKey_Algorithm_Which.NAME; - static readonly JSON = Worker_Binding_CryptoKey_Algorithm_Which.JSON; - static readonly _capnp: { - displayName: string; - id: string; - size: capnp.ObjectSize; - }; - getName(): string; - isName(): boolean; - setName(value: string): void; - getJson(): string; - isJson(): boolean; - setJson(value: string): void; - toString(): string; - which(): Worker_Binding_CryptoKey_Algorithm_Which; + static readonly NAME = Worker_Binding_CryptoKey_Algorithm_Which.NAME; + static readonly JSON = Worker_Binding_CryptoKey_Algorithm_Which.JSON; + static readonly _capnp: { + displayName: string; + id: string; + size: capnp.ObjectSize; + }; + getName(): string; + isName(): boolean; + setName(value: string): void; + getJson(): string; + isJson(): boolean; + setJson(value: string): void; + toString(): string; + which(): Worker_Binding_CryptoKey_Algorithm_Which; } export declare enum Worker_Binding_CryptoKey_Which { - RAW = 0, - HEX = 1, - BASE64 = 2, - PKCS8 = 3, - SPKI = 4, - JWK = 5, + RAW = 0, + HEX = 1, + BASE64 = 2, + PKCS8 = 3, + SPKI = 4, + JWK = 5 } export declare class Worker_Binding_CryptoKey extends __S { - static readonly RAW = Worker_Binding_CryptoKey_Which.RAW; - static readonly HEX = Worker_Binding_CryptoKey_Which.HEX; - static readonly BASE64 = Worker_Binding_CryptoKey_Which.BASE64; - static readonly PKCS8 = Worker_Binding_CryptoKey_Which.PKCS8; - static readonly SPKI = Worker_Binding_CryptoKey_Which.SPKI; - static readonly JWK = Worker_Binding_CryptoKey_Which.JWK; - static readonly Usage: typeof Worker_Binding_CryptoKey_Usage; - static readonly _capnp: { - displayName: string; - id: string; - size: capnp.ObjectSize; - defaultExtractable: DataView; - }; - adoptRaw(value: capnp.Orphan): void; - disownRaw(): capnp.Orphan; - getRaw(): capnp.Data; - hasRaw(): boolean; - initRaw(length: number): capnp.Data; - isRaw(): boolean; - setRaw(value: capnp.Data): void; - getHex(): string; - isHex(): boolean; - setHex(value: string): void; - getBase64(): string; - isBase64(): boolean; - setBase64(value: string): void; - getPkcs8(): string; - isPkcs8(): boolean; - setPkcs8(value: string): void; - getSpki(): string; - isSpki(): boolean; - setSpki(value: string): void; - getJwk(): string; - isJwk(): boolean; - setJwk(value: string): void; - getAlgorithm(): Worker_Binding_CryptoKey_Algorithm; - initAlgorithm(): Worker_Binding_CryptoKey_Algorithm; - getExtractable(): boolean; - setExtractable(value: boolean): void; - adoptUsages( - value: capnp.Orphan> - ): void; - disownUsages(): capnp.Orphan>; - getUsages(): capnp.List; - hasUsages(): boolean; - initUsages(length: number): capnp.List; - setUsages(value: capnp.List): void; - toString(): string; - which(): Worker_Binding_CryptoKey_Which; + static readonly RAW = Worker_Binding_CryptoKey_Which.RAW; + static readonly HEX = Worker_Binding_CryptoKey_Which.HEX; + static readonly BASE64 = Worker_Binding_CryptoKey_Which.BASE64; + static readonly PKCS8 = Worker_Binding_CryptoKey_Which.PKCS8; + static readonly SPKI = Worker_Binding_CryptoKey_Which.SPKI; + static readonly JWK = Worker_Binding_CryptoKey_Which.JWK; + static readonly Usage: typeof Worker_Binding_CryptoKey_Usage; + static readonly _capnp: { + displayName: string; + id: string; + size: capnp.ObjectSize; + defaultExtractable: DataView; + }; + adoptRaw(value: capnp.Orphan): void; + disownRaw(): capnp.Orphan; + getRaw(): capnp.Data; + hasRaw(): boolean; + initRaw(length: number): capnp.Data; + isRaw(): boolean; + setRaw(value: capnp.Data): void; + getHex(): string; + isHex(): boolean; + setHex(value: string): void; + getBase64(): string; + isBase64(): boolean; + setBase64(value: string): void; + getPkcs8(): string; + isPkcs8(): boolean; + setPkcs8(value: string): void; + getSpki(): string; + isSpki(): boolean; + setSpki(value: string): void; + getJwk(): string; + isJwk(): boolean; + setJwk(value: string): void; + getAlgorithm(): Worker_Binding_CryptoKey_Algorithm; + initAlgorithm(): Worker_Binding_CryptoKey_Algorithm; + getExtractable(): boolean; + setExtractable(value: boolean): void; + adoptUsages(value: capnp.Orphan>): void; + disownUsages(): capnp.Orphan>; + getUsages(): capnp.List; + hasUsages(): boolean; + initUsages(length: number): capnp.List; + setUsages(value: capnp.List): void; + toString(): string; + which(): Worker_Binding_CryptoKey_Which; } export declare class Worker_Binding_WrappedBinding extends __S { - static readonly _capnp: { - displayName: string; - id: string; - size: capnp.ObjectSize; - defaultEntrypoint: string; - }; - static _InnerBindings: capnp.ListCtor; - getModuleName(): string; - setModuleName(value: string): void; - getEntrypoint(): string; - setEntrypoint(value: string): void; - adoptInnerBindings(value: capnp.Orphan>): void; - disownInnerBindings(): capnp.Orphan>; - getInnerBindings(): capnp.List; - hasInnerBindings(): boolean; - initInnerBindings(length: number): capnp.List; - setInnerBindings(value: capnp.List): void; - toString(): string; + static readonly _capnp: { + displayName: string; + id: string; + size: capnp.ObjectSize; + defaultEntrypoint: string; + }; + static _InnerBindings: capnp.ListCtor; + getModuleName(): string; + setModuleName(value: string): void; + getEntrypoint(): string; + setEntrypoint(value: string): void; + adoptInnerBindings(value: capnp.Orphan>): void; + disownInnerBindings(): capnp.Orphan>; + getInnerBindings(): capnp.List; + hasInnerBindings(): boolean; + initInnerBindings(length: number): capnp.List; + setInnerBindings(value: capnp.List): void; + toString(): string; } export declare class Worker_Binding_Parameter extends __S { - static readonly _capnp: { - displayName: string; - id: string; - size: capnp.ObjectSize; - }; - adoptType(value: capnp.Orphan): void; - disownType(): capnp.Orphan; - getType(): Worker_Binding_Type; - hasType(): boolean; - initType(): Worker_Binding_Type; - setType(value: Worker_Binding_Type): void; - getOptional(): boolean; - setOptional(value: boolean): void; - toString(): string; + static readonly _capnp: { + displayName: string; + id: string; + size: capnp.ObjectSize; + }; + adoptType(value: capnp.Orphan): void; + disownType(): capnp.Orphan; + getType(): Worker_Binding_Type; + hasType(): boolean; + initType(): Worker_Binding_Type; + setType(value: Worker_Binding_Type): void; + getOptional(): boolean; + setOptional(value: boolean): void; + toString(): string; } export declare class Worker_Binding_Hyperdrive extends __S { - static readonly _capnp: { - displayName: string; - id: string; - size: capnp.ObjectSize; - }; - adoptDesignator(value: capnp.Orphan): void; - disownDesignator(): capnp.Orphan; - getDesignator(): ServiceDesignator; - hasDesignator(): boolean; - initDesignator(): ServiceDesignator; - setDesignator(value: ServiceDesignator): void; - getDatabase(): string; - setDatabase(value: string): void; - getUser(): string; - setUser(value: string): void; - getPassword(): string; - setPassword(value: string): void; - getScheme(): string; - setScheme(value: string): void; - toString(): string; + static readonly _capnp: { + displayName: string; + id: string; + size: capnp.ObjectSize; + }; + adoptDesignator(value: capnp.Orphan): void; + disownDesignator(): capnp.Orphan; + getDesignator(): ServiceDesignator; + hasDesignator(): boolean; + initDesignator(): ServiceDesignator; + setDesignator(value: ServiceDesignator): void; + getDatabase(): string; + setDatabase(value: string): void; + getUser(): string; + setUser(value: string): void; + getPassword(): string; + setPassword(value: string): void; + getScheme(): string; + setScheme(value: string): void; + toString(): string; } export declare enum Worker_Binding_Which { - UNSPECIFIED = 0, - PARAMETER = 1, - TEXT = 2, - DATA = 3, - JSON = 4, - WASM_MODULE = 5, - CRYPTO_KEY = 6, - SERVICE = 7, - DURABLE_OBJECT_NAMESPACE = 8, - KV_NAMESPACE = 9, - R2BUCKET = 10, - R2ADMIN = 11, - WRAPPED = 12, - QUEUE = 13, - FROM_ENVIRONMENT = 14, - ANALYTICS_ENGINE = 15, - HYPERDRIVE = 16, - UNSAFE_EVAL = 17, + UNSPECIFIED = 0, + PARAMETER = 1, + TEXT = 2, + DATA = 3, + JSON = 4, + WASM_MODULE = 5, + CRYPTO_KEY = 6, + SERVICE = 7, + DURABLE_OBJECT_NAMESPACE = 8, + KV_NAMESPACE = 9, + R2BUCKET = 10, + R2ADMIN = 11, + WRAPPED = 12, + QUEUE = 13, + FROM_ENVIRONMENT = 14, + ANALYTICS_ENGINE = 15, + HYPERDRIVE = 16, + UNSAFE_EVAL = 17 } export declare class Worker_Binding extends __S { - static readonly UNSPECIFIED = Worker_Binding_Which.UNSPECIFIED; - static readonly PARAMETER = Worker_Binding_Which.PARAMETER; - static readonly TEXT = Worker_Binding_Which.TEXT; - static readonly DATA = Worker_Binding_Which.DATA; - static readonly JSON = Worker_Binding_Which.JSON; - static readonly WASM_MODULE = Worker_Binding_Which.WASM_MODULE; - static readonly CRYPTO_KEY = Worker_Binding_Which.CRYPTO_KEY; - static readonly SERVICE = Worker_Binding_Which.SERVICE; - static readonly DURABLE_OBJECT_NAMESPACE = - Worker_Binding_Which.DURABLE_OBJECT_NAMESPACE; - static readonly KV_NAMESPACE = Worker_Binding_Which.KV_NAMESPACE; - static readonly R2BUCKET = Worker_Binding_Which.R2BUCKET; - static readonly R2ADMIN = Worker_Binding_Which.R2ADMIN; - static readonly WRAPPED = Worker_Binding_Which.WRAPPED; - static readonly QUEUE = Worker_Binding_Which.QUEUE; - static readonly FROM_ENVIRONMENT = Worker_Binding_Which.FROM_ENVIRONMENT; - static readonly ANALYTICS_ENGINE = Worker_Binding_Which.ANALYTICS_ENGINE; - static readonly HYPERDRIVE = Worker_Binding_Which.HYPERDRIVE; - static readonly UNSAFE_EVAL = Worker_Binding_Which.UNSAFE_EVAL; - static readonly Type: typeof Worker_Binding_Type; - static readonly DurableObjectNamespaceDesignator: typeof Worker_Binding_DurableObjectNamespaceDesignator; - static readonly CryptoKey: typeof Worker_Binding_CryptoKey; - static readonly WrappedBinding: typeof Worker_Binding_WrappedBinding; - static readonly _capnp: { - displayName: string; - id: string; - size: capnp.ObjectSize; - }; - getName(): string; - setName(value: string): void; - isUnspecified(): boolean; - setUnspecified(): void; - getParameter(): Worker_Binding_Parameter; - initParameter(): Worker_Binding_Parameter; - isParameter(): boolean; - setParameter(): void; - getText(): string; - isText(): boolean; - setText(value: string): void; - adoptData(value: capnp.Orphan): void; - disownData(): capnp.Orphan; - getData(): capnp.Data; - hasData(): boolean; - initData(length: number): capnp.Data; - isData(): boolean; - setData(value: capnp.Data): void; - getJson(): string; - isJson(): boolean; - setJson(value: string): void; - adoptWasmModule(value: capnp.Orphan): void; - disownWasmModule(): capnp.Orphan; - getWasmModule(): capnp.Data; - hasWasmModule(): boolean; - initWasmModule(length: number): capnp.Data; - isWasmModule(): boolean; - setWasmModule(value: capnp.Data): void; - adoptCryptoKey(value: capnp.Orphan): void; - disownCryptoKey(): capnp.Orphan; - getCryptoKey(): Worker_Binding_CryptoKey; - hasCryptoKey(): boolean; - initCryptoKey(): Worker_Binding_CryptoKey; - isCryptoKey(): boolean; - setCryptoKey(value: Worker_Binding_CryptoKey): void; - adoptService(value: capnp.Orphan): void; - disownService(): capnp.Orphan; - getService(): ServiceDesignator; - hasService(): boolean; - initService(): ServiceDesignator; - isService(): boolean; - setService(value: ServiceDesignator): void; - adoptDurableObjectNamespace( - value: capnp.Orphan - ): void; - disownDurableObjectNamespace(): capnp.Orphan; - getDurableObjectNamespace(): Worker_Binding_DurableObjectNamespaceDesignator; - hasDurableObjectNamespace(): boolean; - initDurableObjectNamespace(): Worker_Binding_DurableObjectNamespaceDesignator; - isDurableObjectNamespace(): boolean; - setDurableObjectNamespace( - value: Worker_Binding_DurableObjectNamespaceDesignator - ): void; - adoptKvNamespace(value: capnp.Orphan): void; - disownKvNamespace(): capnp.Orphan; - getKvNamespace(): ServiceDesignator; - hasKvNamespace(): boolean; - initKvNamespace(): ServiceDesignator; - isKvNamespace(): boolean; - setKvNamespace(value: ServiceDesignator): void; - adoptR2Bucket(value: capnp.Orphan): void; - disownR2Bucket(): capnp.Orphan; - getR2Bucket(): ServiceDesignator; - hasR2Bucket(): boolean; - initR2Bucket(): ServiceDesignator; - isR2Bucket(): boolean; - setR2Bucket(value: ServiceDesignator): void; - adoptR2Admin(value: capnp.Orphan): void; - disownR2Admin(): capnp.Orphan; - getR2Admin(): ServiceDesignator; - hasR2Admin(): boolean; - initR2Admin(): ServiceDesignator; - isR2Admin(): boolean; - setR2Admin(value: ServiceDesignator): void; - adoptWrapped(value: capnp.Orphan): void; - disownWrapped(): capnp.Orphan; - getWrapped(): Worker_Binding_WrappedBinding; - hasWrapped(): boolean; - initWrapped(): Worker_Binding_WrappedBinding; - isWrapped(): boolean; - setWrapped(value: Worker_Binding_WrappedBinding): void; - adoptQueue(value: capnp.Orphan): void; - disownQueue(): capnp.Orphan; - getQueue(): ServiceDesignator; - hasQueue(): boolean; - initQueue(): ServiceDesignator; - isQueue(): boolean; - setQueue(value: ServiceDesignator): void; - getFromEnvironment(): string; - isFromEnvironment(): boolean; - setFromEnvironment(value: string): void; - adoptAnalyticsEngine(value: capnp.Orphan): void; - disownAnalyticsEngine(): capnp.Orphan; - getAnalyticsEngine(): ServiceDesignator; - hasAnalyticsEngine(): boolean; - initAnalyticsEngine(): ServiceDesignator; - isAnalyticsEngine(): boolean; - setAnalyticsEngine(value: ServiceDesignator): void; - getHyperdrive(): Worker_Binding_Hyperdrive; - initHyperdrive(): Worker_Binding_Hyperdrive; - isHyperdrive(): boolean; - setHyperdrive(): void; - isUnsafeEval(): boolean; - setUnsafeEval(): void; - toString(): string; - which(): Worker_Binding_Which; + static readonly UNSPECIFIED = Worker_Binding_Which.UNSPECIFIED; + static readonly PARAMETER = Worker_Binding_Which.PARAMETER; + static readonly TEXT = Worker_Binding_Which.TEXT; + static readonly DATA = Worker_Binding_Which.DATA; + static readonly JSON = Worker_Binding_Which.JSON; + static readonly WASM_MODULE = Worker_Binding_Which.WASM_MODULE; + static readonly CRYPTO_KEY = Worker_Binding_Which.CRYPTO_KEY; + static readonly SERVICE = Worker_Binding_Which.SERVICE; + static readonly DURABLE_OBJECT_NAMESPACE = Worker_Binding_Which.DURABLE_OBJECT_NAMESPACE; + static readonly KV_NAMESPACE = Worker_Binding_Which.KV_NAMESPACE; + static readonly R2BUCKET = Worker_Binding_Which.R2BUCKET; + static readonly R2ADMIN = Worker_Binding_Which.R2ADMIN; + static readonly WRAPPED = Worker_Binding_Which.WRAPPED; + static readonly QUEUE = Worker_Binding_Which.QUEUE; + static readonly FROM_ENVIRONMENT = Worker_Binding_Which.FROM_ENVIRONMENT; + static readonly ANALYTICS_ENGINE = Worker_Binding_Which.ANALYTICS_ENGINE; + static readonly HYPERDRIVE = Worker_Binding_Which.HYPERDRIVE; + static readonly UNSAFE_EVAL = Worker_Binding_Which.UNSAFE_EVAL; + static readonly Type: typeof Worker_Binding_Type; + static readonly DurableObjectNamespaceDesignator: typeof Worker_Binding_DurableObjectNamespaceDesignator; + static readonly CryptoKey: typeof Worker_Binding_CryptoKey; + static readonly WrappedBinding: typeof Worker_Binding_WrappedBinding; + static readonly _capnp: { + displayName: string; + id: string; + size: capnp.ObjectSize; + }; + getName(): string; + setName(value: string): void; + isUnspecified(): boolean; + setUnspecified(): void; + getParameter(): Worker_Binding_Parameter; + initParameter(): Worker_Binding_Parameter; + isParameter(): boolean; + setParameter(): void; + getText(): string; + isText(): boolean; + setText(value: string): void; + adoptData(value: capnp.Orphan): void; + disownData(): capnp.Orphan; + getData(): capnp.Data; + hasData(): boolean; + initData(length: number): capnp.Data; + isData(): boolean; + setData(value: capnp.Data): void; + getJson(): string; + isJson(): boolean; + setJson(value: string): void; + adoptWasmModule(value: capnp.Orphan): void; + disownWasmModule(): capnp.Orphan; + getWasmModule(): capnp.Data; + hasWasmModule(): boolean; + initWasmModule(length: number): capnp.Data; + isWasmModule(): boolean; + setWasmModule(value: capnp.Data): void; + adoptCryptoKey(value: capnp.Orphan): void; + disownCryptoKey(): capnp.Orphan; + getCryptoKey(): Worker_Binding_CryptoKey; + hasCryptoKey(): boolean; + initCryptoKey(): Worker_Binding_CryptoKey; + isCryptoKey(): boolean; + setCryptoKey(value: Worker_Binding_CryptoKey): void; + adoptService(value: capnp.Orphan): void; + disownService(): capnp.Orphan; + getService(): ServiceDesignator; + hasService(): boolean; + initService(): ServiceDesignator; + isService(): boolean; + setService(value: ServiceDesignator): void; + adoptDurableObjectNamespace(value: capnp.Orphan): void; + disownDurableObjectNamespace(): capnp.Orphan; + getDurableObjectNamespace(): Worker_Binding_DurableObjectNamespaceDesignator; + hasDurableObjectNamespace(): boolean; + initDurableObjectNamespace(): Worker_Binding_DurableObjectNamespaceDesignator; + isDurableObjectNamespace(): boolean; + setDurableObjectNamespace(value: Worker_Binding_DurableObjectNamespaceDesignator): void; + adoptKvNamespace(value: capnp.Orphan): void; + disownKvNamespace(): capnp.Orphan; + getKvNamespace(): ServiceDesignator; + hasKvNamespace(): boolean; + initKvNamespace(): ServiceDesignator; + isKvNamespace(): boolean; + setKvNamespace(value: ServiceDesignator): void; + adoptR2Bucket(value: capnp.Orphan): void; + disownR2Bucket(): capnp.Orphan; + getR2Bucket(): ServiceDesignator; + hasR2Bucket(): boolean; + initR2Bucket(): ServiceDesignator; + isR2Bucket(): boolean; + setR2Bucket(value: ServiceDesignator): void; + adoptR2Admin(value: capnp.Orphan): void; + disownR2Admin(): capnp.Orphan; + getR2Admin(): ServiceDesignator; + hasR2Admin(): boolean; + initR2Admin(): ServiceDesignator; + isR2Admin(): boolean; + setR2Admin(value: ServiceDesignator): void; + adoptWrapped(value: capnp.Orphan): void; + disownWrapped(): capnp.Orphan; + getWrapped(): Worker_Binding_WrappedBinding; + hasWrapped(): boolean; + initWrapped(): Worker_Binding_WrappedBinding; + isWrapped(): boolean; + setWrapped(value: Worker_Binding_WrappedBinding): void; + adoptQueue(value: capnp.Orphan): void; + disownQueue(): capnp.Orphan; + getQueue(): ServiceDesignator; + hasQueue(): boolean; + initQueue(): ServiceDesignator; + isQueue(): boolean; + setQueue(value: ServiceDesignator): void; + getFromEnvironment(): string; + isFromEnvironment(): boolean; + setFromEnvironment(value: string): void; + adoptAnalyticsEngine(value: capnp.Orphan): void; + disownAnalyticsEngine(): capnp.Orphan; + getAnalyticsEngine(): ServiceDesignator; + hasAnalyticsEngine(): boolean; + initAnalyticsEngine(): ServiceDesignator; + isAnalyticsEngine(): boolean; + setAnalyticsEngine(value: ServiceDesignator): void; + getHyperdrive(): Worker_Binding_Hyperdrive; + initHyperdrive(): Worker_Binding_Hyperdrive; + isHyperdrive(): boolean; + setHyperdrive(): void; + isUnsafeEval(): boolean; + setUnsafeEval(): void; + toString(): string; + which(): Worker_Binding_Which; } export declare enum Worker_DurableObjectNamespace_Which { - UNIQUE_KEY = 0, - EPHEMERAL_LOCAL = 1, + UNIQUE_KEY = 0, + EPHEMERAL_LOCAL = 1 } export declare class Worker_DurableObjectNamespace extends __S { - static readonly UNIQUE_KEY = Worker_DurableObjectNamespace_Which.UNIQUE_KEY; - static readonly EPHEMERAL_LOCAL = - Worker_DurableObjectNamespace_Which.EPHEMERAL_LOCAL; - static readonly _capnp: { - displayName: string; - id: string; - size: capnp.ObjectSize; - }; - getClassName(): string; - setClassName(value: string): void; - getUniqueKey(): string; - isUniqueKey(): boolean; - setUniqueKey(value: string): void; - isEphemeralLocal(): boolean; - setEphemeralLocal(): void; - getPreventEviction(): boolean; - setPreventEviction(value: boolean): void; - toString(): string; - which(): Worker_DurableObjectNamespace_Which; + static readonly UNIQUE_KEY = Worker_DurableObjectNamespace_Which.UNIQUE_KEY; + static readonly EPHEMERAL_LOCAL = Worker_DurableObjectNamespace_Which.EPHEMERAL_LOCAL; + static readonly _capnp: { + displayName: string; + id: string; + size: capnp.ObjectSize; + }; + getClassName(): string; + setClassName(value: string): void; + getUniqueKey(): string; + isUniqueKey(): boolean; + setUniqueKey(value: string): void; + isEphemeralLocal(): boolean; + setEphemeralLocal(): void; + getPreventEviction(): boolean; + setPreventEviction(value: boolean): void; + toString(): string; + which(): Worker_DurableObjectNamespace_Which; } export declare enum Worker_DurableObjectStorage_Which { - NONE = 0, - IN_MEMORY = 1, - LOCAL_DISK = 2, + NONE = 0, + IN_MEMORY = 1, + LOCAL_DISK = 2 } export declare class Worker_DurableObjectStorage extends __S { - static readonly NONE = Worker_DurableObjectStorage_Which.NONE; - static readonly IN_MEMORY = Worker_DurableObjectStorage_Which.IN_MEMORY; - static readonly LOCAL_DISK = Worker_DurableObjectStorage_Which.LOCAL_DISK; - static readonly _capnp: { - displayName: string; - id: string; - size: capnp.ObjectSize; - }; - isNone(): boolean; - setNone(): void; - isInMemory(): boolean; - setInMemory(): void; - getLocalDisk(): string; - isLocalDisk(): boolean; - setLocalDisk(value: string): void; - toString(): string; - which(): Worker_DurableObjectStorage_Which; + static readonly NONE = Worker_DurableObjectStorage_Which.NONE; + static readonly IN_MEMORY = Worker_DurableObjectStorage_Which.IN_MEMORY; + static readonly LOCAL_DISK = Worker_DurableObjectStorage_Which.LOCAL_DISK; + static readonly _capnp: { + displayName: string; + id: string; + size: capnp.ObjectSize; + }; + isNone(): boolean; + setNone(): void; + isInMemory(): boolean; + setInMemory(): void; + getLocalDisk(): string; + isLocalDisk(): boolean; + setLocalDisk(value: string): void; + toString(): string; + which(): Worker_DurableObjectStorage_Which; } export declare enum Worker_Which { - MODULES = 0, - SERVICE_WORKER_SCRIPT = 1, - INHERIT = 2, + MODULES = 0, + SERVICE_WORKER_SCRIPT = 1, + INHERIT = 2 } export declare class Worker extends __S { - static readonly MODULES = Worker_Which.MODULES; - static readonly SERVICE_WORKER_SCRIPT = Worker_Which.SERVICE_WORKER_SCRIPT; - static readonly INHERIT = Worker_Which.INHERIT; - static readonly Module: typeof Worker_Module; - static readonly Binding: typeof Worker_Binding; - static readonly DurableObjectNamespace: typeof Worker_DurableObjectNamespace; - static readonly _capnp: { - displayName: string; - id: string; - size: capnp.ObjectSize; - defaultGlobalOutbound: capnp.Pointer; - }; - static _Modules: capnp.ListCtor; - static _Bindings: capnp.ListCtor; - static _DurableObjectNamespaces: capnp.ListCtor; - adoptModules(value: capnp.Orphan>): void; - disownModules(): capnp.Orphan>; - getModules(): capnp.List; - hasModules(): boolean; - initModules(length: number): capnp.List; - isModules(): boolean; - setModules(value: capnp.List): void; - getServiceWorkerScript(): string; - isServiceWorkerScript(): boolean; - setServiceWorkerScript(value: string): void; - getInherit(): string; - isInherit(): boolean; - setInherit(value: string): void; - getCompatibilityDate(): string; - setCompatibilityDate(value: string): void; - adoptCompatibilityFlags(value: capnp.Orphan>): void; - disownCompatibilityFlags(): capnp.Orphan>; - getCompatibilityFlags(): capnp.List; - hasCompatibilityFlags(): boolean; - initCompatibilityFlags(length: number): capnp.List; - setCompatibilityFlags(value: capnp.List): void; - adoptBindings(value: capnp.Orphan>): void; - disownBindings(): capnp.Orphan>; - getBindings(): capnp.List; - hasBindings(): boolean; - initBindings(length: number): capnp.List; - setBindings(value: capnp.List): void; - adoptGlobalOutbound(value: capnp.Orphan): void; - disownGlobalOutbound(): capnp.Orphan; - getGlobalOutbound(): ServiceDesignator; - hasGlobalOutbound(): boolean; - initGlobalOutbound(): ServiceDesignator; - setGlobalOutbound(value: ServiceDesignator): void; - adoptCacheApiOutbound(value: capnp.Orphan): void; - disownCacheApiOutbound(): capnp.Orphan; - getCacheApiOutbound(): ServiceDesignator; - hasCacheApiOutbound(): boolean; - initCacheApiOutbound(): ServiceDesignator; - setCacheApiOutbound(value: ServiceDesignator): void; - adoptDurableObjectNamespaces( - value: capnp.Orphan> - ): void; - disownDurableObjectNamespaces(): capnp.Orphan< - capnp.List - >; - getDurableObjectNamespaces(): capnp.List; - hasDurableObjectNamespaces(): boolean; - initDurableObjectNamespaces( - length: number - ): capnp.List; - setDurableObjectNamespaces( - value: capnp.List - ): void; - getDurableObjectUniqueKeyModifier(): string; - setDurableObjectUniqueKeyModifier(value: string): void; - getDurableObjectStorage(): Worker_DurableObjectStorage; - initDurableObjectStorage(): Worker_DurableObjectStorage; - toString(): string; - which(): Worker_Which; + static readonly MODULES = Worker_Which.MODULES; + static readonly SERVICE_WORKER_SCRIPT = Worker_Which.SERVICE_WORKER_SCRIPT; + static readonly INHERIT = Worker_Which.INHERIT; + static readonly Module: typeof Worker_Module; + static readonly Binding: typeof Worker_Binding; + static readonly DurableObjectNamespace: typeof Worker_DurableObjectNamespace; + static readonly _capnp: { + displayName: string; + id: string; + size: capnp.ObjectSize; + defaultGlobalOutbound: capnp.Pointer; + }; + static _Modules: capnp.ListCtor; + static _Bindings: capnp.ListCtor; + static _DurableObjectNamespaces: capnp.ListCtor; + adoptModules(value: capnp.Orphan>): void; + disownModules(): capnp.Orphan>; + getModules(): capnp.List; + hasModules(): boolean; + initModules(length: number): capnp.List; + isModules(): boolean; + setModules(value: capnp.List): void; + getServiceWorkerScript(): string; + isServiceWorkerScript(): boolean; + setServiceWorkerScript(value: string): void; + getInherit(): string; + isInherit(): boolean; + setInherit(value: string): void; + getCompatibilityDate(): string; + setCompatibilityDate(value: string): void; + adoptCompatibilityFlags(value: capnp.Orphan>): void; + disownCompatibilityFlags(): capnp.Orphan>; + getCompatibilityFlags(): capnp.List; + hasCompatibilityFlags(): boolean; + initCompatibilityFlags(length: number): capnp.List; + setCompatibilityFlags(value: capnp.List): void; + adoptBindings(value: capnp.Orphan>): void; + disownBindings(): capnp.Orphan>; + getBindings(): capnp.List; + hasBindings(): boolean; + initBindings(length: number): capnp.List; + setBindings(value: capnp.List): void; + adoptGlobalOutbound(value: capnp.Orphan): void; + disownGlobalOutbound(): capnp.Orphan; + getGlobalOutbound(): ServiceDesignator; + hasGlobalOutbound(): boolean; + initGlobalOutbound(): ServiceDesignator; + setGlobalOutbound(value: ServiceDesignator): void; + adoptCacheApiOutbound(value: capnp.Orphan): void; + disownCacheApiOutbound(): capnp.Orphan; + getCacheApiOutbound(): ServiceDesignator; + hasCacheApiOutbound(): boolean; + initCacheApiOutbound(): ServiceDesignator; + setCacheApiOutbound(value: ServiceDesignator): void; + adoptDurableObjectNamespaces(value: capnp.Orphan>): void; + disownDurableObjectNamespaces(): capnp.Orphan>; + getDurableObjectNamespaces(): capnp.List; + hasDurableObjectNamespaces(): boolean; + initDurableObjectNamespaces(length: number): capnp.List; + setDurableObjectNamespaces(value: capnp.List): void; + getDurableObjectUniqueKeyModifier(): string; + setDurableObjectUniqueKeyModifier(value: string): void; + getDurableObjectStorage(): Worker_DurableObjectStorage; + initDurableObjectStorage(): Worker_DurableObjectStorage; + getModuleFallback(): string; + setModuleFallback(value: string): void; + toString(): string; + which(): Worker_Which; } export declare class ExternalServer_Https extends __S { - static readonly _capnp: { - displayName: string; - id: string; - size: capnp.ObjectSize; - }; - adoptOptions(value: capnp.Orphan): void; - disownOptions(): capnp.Orphan; - getOptions(): HttpOptions; - hasOptions(): boolean; - initOptions(): HttpOptions; - setOptions(value: HttpOptions): void; - adoptTlsOptions(value: capnp.Orphan): void; - disownTlsOptions(): capnp.Orphan; - getTlsOptions(): TlsOptions; - hasTlsOptions(): boolean; - initTlsOptions(): TlsOptions; - setTlsOptions(value: TlsOptions): void; - getCertificateHost(): string; - setCertificateHost(value: string): void; - toString(): string; + static readonly _capnp: { + displayName: string; + id: string; + size: capnp.ObjectSize; + }; + adoptOptions(value: capnp.Orphan): void; + disownOptions(): capnp.Orphan; + getOptions(): HttpOptions; + hasOptions(): boolean; + initOptions(): HttpOptions; + setOptions(value: HttpOptions): void; + adoptTlsOptions(value: capnp.Orphan): void; + disownTlsOptions(): capnp.Orphan; + getTlsOptions(): TlsOptions; + hasTlsOptions(): boolean; + initTlsOptions(): TlsOptions; + setTlsOptions(value: TlsOptions): void; + getCertificateHost(): string; + setCertificateHost(value: string): void; + toString(): string; } export declare class ExternalServer_Tcp extends __S { - static readonly _capnp: { - displayName: string; - id: string; - size: capnp.ObjectSize; - }; - adoptTlsOptions(value: capnp.Orphan): void; - disownTlsOptions(): capnp.Orphan; - getTlsOptions(): TlsOptions; - hasTlsOptions(): boolean; - initTlsOptions(): TlsOptions; - setTlsOptions(value: TlsOptions): void; - getCertificateHost(): string; - setCertificateHost(value: string): void; - toString(): string; + static readonly _capnp: { + displayName: string; + id: string; + size: capnp.ObjectSize; + }; + adoptTlsOptions(value: capnp.Orphan): void; + disownTlsOptions(): capnp.Orphan; + getTlsOptions(): TlsOptions; + hasTlsOptions(): boolean; + initTlsOptions(): TlsOptions; + setTlsOptions(value: TlsOptions): void; + getCertificateHost(): string; + setCertificateHost(value: string): void; + toString(): string; } export declare enum ExternalServer_Which { - HTTP = 0, - HTTPS = 1, - TCP = 2, + HTTP = 0, + HTTPS = 1, + TCP = 2 } export declare class ExternalServer extends __S { - static readonly HTTP = ExternalServer_Which.HTTP; - static readonly HTTPS = ExternalServer_Which.HTTPS; - static readonly TCP = ExternalServer_Which.TCP; - static readonly _capnp: { - displayName: string; - id: string; - size: capnp.ObjectSize; - }; - getAddress(): string; - setAddress(value: string): void; - adoptHttp(value: capnp.Orphan): void; - disownHttp(): capnp.Orphan; - getHttp(): HttpOptions; - hasHttp(): boolean; - initHttp(): HttpOptions; - isHttp(): boolean; - setHttp(value: HttpOptions): void; - getHttps(): ExternalServer_Https; - initHttps(): ExternalServer_Https; - isHttps(): boolean; - setHttps(): void; - getTcp(): ExternalServer_Tcp; - initTcp(): ExternalServer_Tcp; - isTcp(): boolean; - setTcp(): void; - toString(): string; - which(): ExternalServer_Which; + static readonly HTTP = ExternalServer_Which.HTTP; + static readonly HTTPS = ExternalServer_Which.HTTPS; + static readonly TCP = ExternalServer_Which.TCP; + static readonly _capnp: { + displayName: string; + id: string; + size: capnp.ObjectSize; + }; + getAddress(): string; + setAddress(value: string): void; + adoptHttp(value: capnp.Orphan): void; + disownHttp(): capnp.Orphan; + getHttp(): HttpOptions; + hasHttp(): boolean; + initHttp(): HttpOptions; + isHttp(): boolean; + setHttp(value: HttpOptions): void; + getHttps(): ExternalServer_Https; + initHttps(): ExternalServer_Https; + isHttps(): boolean; + setHttps(): void; + getTcp(): ExternalServer_Tcp; + initTcp(): ExternalServer_Tcp; + isTcp(): boolean; + setTcp(): void; + toString(): string; + which(): ExternalServer_Which; } export declare class Network extends __S { - static readonly _capnp: { - displayName: string; - id: string; - size: capnp.ObjectSize; - defaultAllow: capnp.Pointer; - }; - adoptAllow(value: capnp.Orphan>): void; - disownAllow(): capnp.Orphan>; - getAllow(): capnp.List; - hasAllow(): boolean; - initAllow(length: number): capnp.List; - setAllow(value: capnp.List): void; - adoptDeny(value: capnp.Orphan>): void; - disownDeny(): capnp.Orphan>; - getDeny(): capnp.List; - hasDeny(): boolean; - initDeny(length: number): capnp.List; - setDeny(value: capnp.List): void; - adoptTlsOptions(value: capnp.Orphan): void; - disownTlsOptions(): capnp.Orphan; - getTlsOptions(): TlsOptions; - hasTlsOptions(): boolean; - initTlsOptions(): TlsOptions; - setTlsOptions(value: TlsOptions): void; - toString(): string; + static readonly _capnp: { + displayName: string; + id: string; + size: capnp.ObjectSize; + defaultAllow: capnp.Pointer; + }; + adoptAllow(value: capnp.Orphan>): void; + disownAllow(): capnp.Orphan>; + getAllow(): capnp.List; + hasAllow(): boolean; + initAllow(length: number): capnp.List; + setAllow(value: capnp.List): void; + adoptDeny(value: capnp.Orphan>): void; + disownDeny(): capnp.Orphan>; + getDeny(): capnp.List; + hasDeny(): boolean; + initDeny(length: number): capnp.List; + setDeny(value: capnp.List): void; + adoptTlsOptions(value: capnp.Orphan): void; + disownTlsOptions(): capnp.Orphan; + getTlsOptions(): TlsOptions; + hasTlsOptions(): boolean; + initTlsOptions(): TlsOptions; + setTlsOptions(value: TlsOptions): void; + toString(): string; } export declare class DiskDirectory extends __S { - static readonly _capnp: { - displayName: string; - id: string; - size: capnp.ObjectSize; - defaultWritable: DataView; - defaultAllowDotfiles: DataView; - }; - getPath(): string; - setPath(value: string): void; - getWritable(): boolean; - setWritable(value: boolean): void; - getAllowDotfiles(): boolean; - setAllowDotfiles(value: boolean): void; - toString(): string; + static readonly _capnp: { + displayName: string; + id: string; + size: capnp.ObjectSize; + defaultWritable: DataView; + defaultAllowDotfiles: DataView; + }; + getPath(): string; + setPath(value: string): void; + getWritable(): boolean; + setWritable(value: boolean): void; + getAllowDotfiles(): boolean; + setAllowDotfiles(value: boolean): void; + toString(): string; } export declare enum HttpOptions_Style { - HOST = 0, - PROXY = 1, + HOST = 0, + PROXY = 1 } export declare class HttpOptions_Header extends __S { - static readonly _capnp: { - displayName: string; - id: string; - size: capnp.ObjectSize; - }; - getName(): string; - setName(value: string): void; - getValue(): string; - setValue(value: string): void; - toString(): string; + static readonly _capnp: { + displayName: string; + id: string; + size: capnp.ObjectSize; + }; + getName(): string; + setName(value: string): void; + getValue(): string; + setValue(value: string): void; + toString(): string; } export declare class HttpOptions extends __S { - static readonly Style: typeof HttpOptions_Style; - static readonly Header: typeof HttpOptions_Header; - static readonly _capnp: { - displayName: string; - id: string; - size: capnp.ObjectSize; - defaultStyle: DataView; - }; - static _InjectRequestHeaders: capnp.ListCtor; - static _InjectResponseHeaders: capnp.ListCtor; - getStyle(): HttpOptions_Style; - setStyle(value: HttpOptions_Style): void; - getForwardedProtoHeader(): string; - setForwardedProtoHeader(value: string): void; - getCfBlobHeader(): string; - setCfBlobHeader(value: string): void; - adoptInjectRequestHeaders( - value: capnp.Orphan> - ): void; - disownInjectRequestHeaders(): capnp.Orphan>; - getInjectRequestHeaders(): capnp.List; - hasInjectRequestHeaders(): boolean; - initInjectRequestHeaders(length: number): capnp.List; - setInjectRequestHeaders(value: capnp.List): void; - adoptInjectResponseHeaders( - value: capnp.Orphan> - ): void; - disownInjectResponseHeaders(): capnp.Orphan>; - getInjectResponseHeaders(): capnp.List; - hasInjectResponseHeaders(): boolean; - initInjectResponseHeaders(length: number): capnp.List; - setInjectResponseHeaders(value: capnp.List): void; - toString(): string; + static readonly Style: typeof HttpOptions_Style; + static readonly Header: typeof HttpOptions_Header; + static readonly _capnp: { + displayName: string; + id: string; + size: capnp.ObjectSize; + defaultStyle: DataView; + }; + static _InjectRequestHeaders: capnp.ListCtor; + static _InjectResponseHeaders: capnp.ListCtor; + getStyle(): HttpOptions_Style; + setStyle(value: HttpOptions_Style): void; + getForwardedProtoHeader(): string; + setForwardedProtoHeader(value: string): void; + getCfBlobHeader(): string; + setCfBlobHeader(value: string): void; + adoptInjectRequestHeaders(value: capnp.Orphan>): void; + disownInjectRequestHeaders(): capnp.Orphan>; + getInjectRequestHeaders(): capnp.List; + hasInjectRequestHeaders(): boolean; + initInjectRequestHeaders(length: number): capnp.List; + setInjectRequestHeaders(value: capnp.List): void; + adoptInjectResponseHeaders(value: capnp.Orphan>): void; + disownInjectResponseHeaders(): capnp.Orphan>; + getInjectResponseHeaders(): capnp.List; + hasInjectResponseHeaders(): boolean; + initInjectResponseHeaders(length: number): capnp.List; + setInjectResponseHeaders(value: capnp.List): void; + toString(): string; } export declare class TlsOptions_Keypair extends __S { - static readonly _capnp: { - displayName: string; - id: string; - size: capnp.ObjectSize; - }; - getPrivateKey(): string; - setPrivateKey(value: string): void; - getCertificateChain(): string; - setCertificateChain(value: string): void; - toString(): string; + static readonly _capnp: { + displayName: string; + id: string; + size: capnp.ObjectSize; + }; + getPrivateKey(): string; + setPrivateKey(value: string): void; + getCertificateChain(): string; + setCertificateChain(value: string): void; + toString(): string; } export declare enum TlsOptions_Version { - GOOD_DEFAULT = 0, - SSL3 = 1, - TLS1DOT0 = 2, - TLS1DOT1 = 3, - TLS1DOT2 = 4, - TLS1DOT3 = 5, + GOOD_DEFAULT = 0, + SSL3 = 1, + TLS1DOT0 = 2, + TLS1DOT1 = 3, + TLS1DOT2 = 4, + TLS1DOT3 = 5 } export declare class TlsOptions extends __S { - static readonly Keypair: typeof TlsOptions_Keypair; - static readonly Version: typeof TlsOptions_Version; - static readonly _capnp: { - displayName: string; - id: string; - size: capnp.ObjectSize; - defaultRequireClientCerts: DataView; - defaultTrustBrowserCas: DataView; - defaultMinVersion: DataView; - }; - adoptKeypair(value: capnp.Orphan): void; - disownKeypair(): capnp.Orphan; - getKeypair(): TlsOptions_Keypair; - hasKeypair(): boolean; - initKeypair(): TlsOptions_Keypair; - setKeypair(value: TlsOptions_Keypair): void; - getRequireClientCerts(): boolean; - setRequireClientCerts(value: boolean): void; - getTrustBrowserCas(): boolean; - setTrustBrowserCas(value: boolean): void; - adoptTrustedCertificates(value: capnp.Orphan>): void; - disownTrustedCertificates(): capnp.Orphan>; - getTrustedCertificates(): capnp.List; - hasTrustedCertificates(): boolean; - initTrustedCertificates(length: number): capnp.List; - setTrustedCertificates(value: capnp.List): void; - getMinVersion(): TlsOptions_Version; - setMinVersion(value: TlsOptions_Version): void; - getCipherList(): string; - setCipherList(value: string): void; - toString(): string; + static readonly Keypair: typeof TlsOptions_Keypair; + static readonly Version: typeof TlsOptions_Version; + static readonly _capnp: { + displayName: string; + id: string; + size: capnp.ObjectSize; + defaultRequireClientCerts: DataView; + defaultTrustBrowserCas: DataView; + defaultMinVersion: DataView; + }; + adoptKeypair(value: capnp.Orphan): void; + disownKeypair(): capnp.Orphan; + getKeypair(): TlsOptions_Keypair; + hasKeypair(): boolean; + initKeypair(): TlsOptions_Keypair; + setKeypair(value: TlsOptions_Keypair): void; + getRequireClientCerts(): boolean; + setRequireClientCerts(value: boolean): void; + getTrustBrowserCas(): boolean; + setTrustBrowserCas(value: boolean): void; + adoptTrustedCertificates(value: capnp.Orphan>): void; + disownTrustedCertificates(): capnp.Orphan>; + getTrustedCertificates(): capnp.List; + hasTrustedCertificates(): boolean; + initTrustedCertificates(length: number): capnp.List; + setTrustedCertificates(value: capnp.List): void; + getMinVersion(): TlsOptions_Version; + setMinVersion(value: TlsOptions_Version): void; + getCipherList(): string; + setCipherList(value: string): void; + toString(): string; } export declare class Extension_Module extends __S { - static readonly _capnp: { - displayName: string; - id: string; - size: capnp.ObjectSize; - defaultInternal: DataView; - }; - getName(): string; - setName(value: string): void; - getInternal(): boolean; - setInternal(value: boolean): void; - getEsModule(): string; - setEsModule(value: string): void; - toString(): string; + static readonly _capnp: { + displayName: string; + id: string; + size: capnp.ObjectSize; + defaultInternal: DataView; + }; + getName(): string; + setName(value: string): void; + getInternal(): boolean; + setInternal(value: boolean): void; + getEsModule(): string; + setEsModule(value: string): void; + toString(): string; } export declare class Extension extends __S { - static readonly Module: typeof Extension_Module; - static readonly _capnp: { - displayName: string; - id: string; - size: capnp.ObjectSize; - }; - static _Modules: capnp.ListCtor; - adoptModules(value: capnp.Orphan>): void; - disownModules(): capnp.Orphan>; - getModules(): capnp.List; - hasModules(): boolean; - initModules(length: number): capnp.List; - setModules(value: capnp.List): void; - toString(): string; + static readonly Module: typeof Extension_Module; + static readonly _capnp: { + displayName: string; + id: string; + size: capnp.ObjectSize; + }; + static _Modules: capnp.ListCtor; + adoptModules(value: capnp.Orphan>): void; + disownModules(): capnp.Orphan>; + getModules(): capnp.List; + hasModules(): boolean; + initModules(length: number): capnp.List; + setModules(value: capnp.List): void; + toString(): string; } diff --git a/packages/miniflare/src/runtime/config/workerd.capnp.js b/packages/miniflare/src/runtime/config/workerd.capnp.js index 85497180f4c3..c1d8fa74308e 100644 --- a/packages/miniflare/src/runtime/config/workerd.capnp.js +++ b/packages/miniflare/src/runtime/config/workerd.capnp.js @@ -1,50 +1,7 @@ "use strict"; /* tslint:disable */ Object.defineProperty(exports, "__esModule", { value: true }); -exports.Extension = - exports.Extension_Module = - exports.TlsOptions = - exports.TlsOptions_Version = - exports.TlsOptions_Keypair = - exports.HttpOptions = - exports.HttpOptions_Header = - exports.HttpOptions_Style = - exports.DiskDirectory = - exports.Network = - exports.ExternalServer = - exports.ExternalServer_Which = - exports.ExternalServer_Tcp = - exports.ExternalServer_Https = - exports.Worker = - exports.Worker_Which = - exports.Worker_DurableObjectStorage = - exports.Worker_DurableObjectStorage_Which = - exports.Worker_DurableObjectNamespace = - exports.Worker_DurableObjectNamespace_Which = - exports.Worker_Binding = - exports.Worker_Binding_Which = - exports.Worker_Binding_Hyperdrive = - exports.Worker_Binding_Parameter = - exports.Worker_Binding_WrappedBinding = - exports.Worker_Binding_CryptoKey = - exports.Worker_Binding_CryptoKey_Which = - exports.Worker_Binding_CryptoKey_Algorithm = - exports.Worker_Binding_CryptoKey_Algorithm_Which = - exports.Worker_Binding_CryptoKey_Usage = - exports.Worker_Binding_DurableObjectNamespaceDesignator = - exports.Worker_Binding_Type = - exports.Worker_Binding_Type_Which = - exports.Worker_Module = - exports.Worker_Module_Which = - exports.ServiceDesignator = - exports.Service = - exports.Service_Which = - exports.Socket = - exports.Socket_Which = - exports.Socket_Https = - exports.Config = - exports._capnpFileId = - void 0; +exports.Extension = exports.Extension_Module = exports.TlsOptions = exports.TlsOptions_Version = exports.TlsOptions_Keypair = exports.HttpOptions = exports.HttpOptions_Header = exports.HttpOptions_Style = exports.DiskDirectory = exports.Network = exports.ExternalServer = exports.ExternalServer_Which = exports.ExternalServer_Tcp = exports.ExternalServer_Https = exports.Worker = exports.Worker_Which = exports.Worker_DurableObjectStorage = exports.Worker_DurableObjectStorage_Which = exports.Worker_DurableObjectNamespace = exports.Worker_DurableObjectNamespace_Which = exports.Worker_Binding = exports.Worker_Binding_Which = exports.Worker_Binding_Hyperdrive = exports.Worker_Binding_Parameter = exports.Worker_Binding_WrappedBinding = exports.Worker_Binding_CryptoKey = exports.Worker_Binding_CryptoKey_Which = exports.Worker_Binding_CryptoKey_Algorithm = exports.Worker_Binding_CryptoKey_Algorithm_Which = exports.Worker_Binding_CryptoKey_Usage = exports.Worker_Binding_DurableObjectNamespaceDesignator = exports.Worker_Binding_Type = exports.Worker_Binding_Type_Which = exports.Worker_Module = exports.Worker_Module_Which = exports.ServiceDesignator = exports.Service = exports.Service_Which = exports.Socket = exports.Socket_Which = exports.Socket_Https = exports.Config = exports._capnpFileId = void 0; /** * This file has been automatically generated by the [capnpc-ts utility](https://github.com/jdiaz5513/capnp-ts). */ @@ -52,382 +9,200 @@ const capnp = require("capnp-ts"); const capnp_ts_1 = require("capnp-ts"); exports._capnpFileId = "e6afd26682091c01"; class Config extends capnp_ts_1.Struct { - adoptServices(value) { - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(0, this)); - } - disownServices() { - return capnp_ts_1.Struct.disown(this.getServices()); - } - getServices() { - return capnp_ts_1.Struct.getList(0, Config._Services, this); - } - hasServices() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(0, this)); - } - initServices(length) { - return capnp_ts_1.Struct.initList(0, Config._Services, length, this); - } - setServices(value) { - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(0, this)); - } - adoptSockets(value) { - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); - } - disownSockets() { - return capnp_ts_1.Struct.disown(this.getSockets()); - } - getSockets() { - return capnp_ts_1.Struct.getList(1, Config._Sockets, this); - } - hasSockets() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); - } - initSockets(length) { - return capnp_ts_1.Struct.initList(1, Config._Sockets, length, this); - } - setSockets(value) { - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); - } - adoptV8Flags(value) { - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(2, this)); - } - disownV8Flags() { - return capnp_ts_1.Struct.disown(this.getV8Flags()); - } - getV8Flags() { - return capnp_ts_1.Struct.getList(2, capnp.TextList, this); - } - hasV8Flags() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(2, this)); - } - initV8Flags(length) { - return capnp_ts_1.Struct.initList(2, capnp.TextList, length, this); - } - setV8Flags(value) { - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(2, this)); - } - adoptExtensions(value) { - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(3, this)); - } - disownExtensions() { - return capnp_ts_1.Struct.disown(this.getExtensions()); - } - getExtensions() { - return capnp_ts_1.Struct.getList(3, Config._Extensions, this); - } - hasExtensions() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(3, this)); - } - initExtensions(length) { - return capnp_ts_1.Struct.initList(3, Config._Extensions, length, this); - } - setExtensions(value) { - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(3, this)); - } - toString() { - return "Config_" + super.toString(); - } + adoptServices(value) { capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(0, this)); } + disownServices() { return capnp_ts_1.Struct.disown(this.getServices()); } + getServices() { return capnp_ts_1.Struct.getList(0, Config._Services, this); } + hasServices() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(0, this)); } + initServices(length) { return capnp_ts_1.Struct.initList(0, Config._Services, length, this); } + setServices(value) { capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(0, this)); } + adoptSockets(value) { capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); } + disownSockets() { return capnp_ts_1.Struct.disown(this.getSockets()); } + getSockets() { return capnp_ts_1.Struct.getList(1, Config._Sockets, this); } + hasSockets() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); } + initSockets(length) { return capnp_ts_1.Struct.initList(1, Config._Sockets, length, this); } + setSockets(value) { capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); } + adoptV8Flags(value) { capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(2, this)); } + disownV8Flags() { return capnp_ts_1.Struct.disown(this.getV8Flags()); } + getV8Flags() { return capnp_ts_1.Struct.getList(2, capnp.TextList, this); } + hasV8Flags() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(2, this)); } + initV8Flags(length) { return capnp_ts_1.Struct.initList(2, capnp.TextList, length, this); } + setV8Flags(value) { capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(2, this)); } + adoptExtensions(value) { capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(3, this)); } + disownExtensions() { return capnp_ts_1.Struct.disown(this.getExtensions()); } + getExtensions() { return capnp_ts_1.Struct.getList(3, Config._Extensions, this); } + hasExtensions() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(3, this)); } + initExtensions(length) { return capnp_ts_1.Struct.initList(3, Config._Extensions, length, this); } + setExtensions(value) { capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(3, this)); } + adoptAutogates(value) { capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(4, this)); } + disownAutogates() { return capnp_ts_1.Struct.disown(this.getAutogates()); } + getAutogates() { return capnp_ts_1.Struct.getList(4, capnp.TextList, this); } + hasAutogates() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(4, this)); } + initAutogates(length) { return capnp_ts_1.Struct.initList(4, capnp.TextList, length, this); } + setAutogates(value) { capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(4, this)); } + toString() { return "Config_" + super.toString(); } } exports.Config = Config; -Config._capnp = { - displayName: "Config", - id: "8794486c76aaa7d6", - size: new capnp_ts_1.ObjectSize(0, 4), -}; +Config._capnp = { displayName: "Config", id: "8794486c76aaa7d6", size: new capnp_ts_1.ObjectSize(0, 5) }; class Socket_Https extends capnp_ts_1.Struct { - adoptOptions(value) { - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(2, this)); - } - disownOptions() { - return capnp_ts_1.Struct.disown(this.getOptions()); - } - getOptions() { - return capnp_ts_1.Struct.getStruct(2, HttpOptions, this); - } - hasOptions() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(2, this)); - } - initOptions() { - return capnp_ts_1.Struct.initStructAt(2, HttpOptions, this); - } - setOptions(value) { - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(2, this)); - } - adoptTlsOptions(value) { - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(3, this)); - } - disownTlsOptions() { - return capnp_ts_1.Struct.disown(this.getTlsOptions()); - } - getTlsOptions() { - return capnp_ts_1.Struct.getStruct(3, TlsOptions, this); - } - hasTlsOptions() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(3, this)); - } - initTlsOptions() { - return capnp_ts_1.Struct.initStructAt(3, TlsOptions, this); - } - setTlsOptions(value) { - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(3, this)); - } - toString() { - return "Socket_Https_" + super.toString(); - } + adoptOptions(value) { capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(2, this)); } + disownOptions() { return capnp_ts_1.Struct.disown(this.getOptions()); } + getOptions() { return capnp_ts_1.Struct.getStruct(2, HttpOptions, this); } + hasOptions() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(2, this)); } + initOptions() { return capnp_ts_1.Struct.initStructAt(2, HttpOptions, this); } + setOptions(value) { capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(2, this)); } + adoptTlsOptions(value) { capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(3, this)); } + disownTlsOptions() { return capnp_ts_1.Struct.disown(this.getTlsOptions()); } + getTlsOptions() { return capnp_ts_1.Struct.getStruct(3, TlsOptions, this); } + hasTlsOptions() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(3, this)); } + initTlsOptions() { return capnp_ts_1.Struct.initStructAt(3, TlsOptions, this); } + setTlsOptions(value) { capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(3, this)); } + toString() { return "Socket_Https_" + super.toString(); } } exports.Socket_Https = Socket_Https; -Socket_Https._capnp = { - displayName: "https", - id: "de123876383cbbdc", - size: new capnp_ts_1.ObjectSize(8, 5), -}; +Socket_Https._capnp = { displayName: "https", id: "de123876383cbbdc", size: new capnp_ts_1.ObjectSize(8, 5) }; var Socket_Which; (function (Socket_Which) { - Socket_Which[(Socket_Which["HTTP"] = 0)] = "HTTP"; - Socket_Which[(Socket_Which["HTTPS"] = 1)] = "HTTPS"; -})((Socket_Which = exports.Socket_Which || (exports.Socket_Which = {}))); + Socket_Which[Socket_Which["HTTP"] = 0] = "HTTP"; + Socket_Which[Socket_Which["HTTPS"] = 1] = "HTTPS"; +})(Socket_Which = exports.Socket_Which || (exports.Socket_Which = {})); class Socket extends capnp_ts_1.Struct { - getName() { - return capnp_ts_1.Struct.getText(0, this); - } - setName(value) { - capnp_ts_1.Struct.setText(0, value, this); - } - getAddress() { - return capnp_ts_1.Struct.getText(1, this); - } - setAddress(value) { - capnp_ts_1.Struct.setText(1, value, this); - } - adoptHttp(value) { - capnp_ts_1.Struct.setUint16(0, 0, this); - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(2, this)); - } - disownHttp() { - return capnp_ts_1.Struct.disown(this.getHttp()); - } - getHttp() { - capnp_ts_1.Struct.testWhich( - "http", - capnp_ts_1.Struct.getUint16(0, this), - 0, - this - ); - return capnp_ts_1.Struct.getStruct(2, HttpOptions, this); - } - hasHttp() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(2, this)); - } - initHttp() { - capnp_ts_1.Struct.setUint16(0, 0, this); - return capnp_ts_1.Struct.initStructAt(2, HttpOptions, this); - } - isHttp() { - return capnp_ts_1.Struct.getUint16(0, this) === 0; - } - setHttp(value) { - capnp_ts_1.Struct.setUint16(0, 0, this); - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(2, this)); - } - getHttps() { - capnp_ts_1.Struct.testWhich( - "https", - capnp_ts_1.Struct.getUint16(0, this), - 1, - this - ); - return capnp_ts_1.Struct.getAs(Socket_Https, this); - } - initHttps() { - capnp_ts_1.Struct.setUint16(0, 1, this); - return capnp_ts_1.Struct.getAs(Socket_Https, this); - } - isHttps() { - return capnp_ts_1.Struct.getUint16(0, this) === 1; - } - setHttps() { - capnp_ts_1.Struct.setUint16(0, 1, this); - } - adoptService(value) { - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(4, this)); - } - disownService() { - return capnp_ts_1.Struct.disown(this.getService()); - } - getService() { - return capnp_ts_1.Struct.getStruct(4, ServiceDesignator, this); - } - hasService() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(4, this)); - } - initService() { - return capnp_ts_1.Struct.initStructAt(4, ServiceDesignator, this); - } - setService(value) { - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(4, this)); - } - toString() { - return "Socket_" + super.toString(); - } - which() { - return capnp_ts_1.Struct.getUint16(0, this); - } + getName() { return capnp_ts_1.Struct.getText(0, this); } + setName(value) { capnp_ts_1.Struct.setText(0, value, this); } + getAddress() { return capnp_ts_1.Struct.getText(1, this); } + setAddress(value) { capnp_ts_1.Struct.setText(1, value, this); } + adoptHttp(value) { + capnp_ts_1.Struct.setUint16(0, 0, this); + capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(2, this)); + } + disownHttp() { return capnp_ts_1.Struct.disown(this.getHttp()); } + getHttp() { + capnp_ts_1.Struct.testWhich("http", capnp_ts_1.Struct.getUint16(0, this), 0, this); + return capnp_ts_1.Struct.getStruct(2, HttpOptions, this); + } + hasHttp() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(2, this)); } + initHttp() { + capnp_ts_1.Struct.setUint16(0, 0, this); + return capnp_ts_1.Struct.initStructAt(2, HttpOptions, this); + } + isHttp() { return capnp_ts_1.Struct.getUint16(0, this) === 0; } + setHttp(value) { + capnp_ts_1.Struct.setUint16(0, 0, this); + capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(2, this)); + } + getHttps() { + capnp_ts_1.Struct.testWhich("https", capnp_ts_1.Struct.getUint16(0, this), 1, this); + return capnp_ts_1.Struct.getAs(Socket_Https, this); + } + initHttps() { + capnp_ts_1.Struct.setUint16(0, 1, this); + return capnp_ts_1.Struct.getAs(Socket_Https, this); + } + isHttps() { return capnp_ts_1.Struct.getUint16(0, this) === 1; } + setHttps() { capnp_ts_1.Struct.setUint16(0, 1, this); } + adoptService(value) { capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(4, this)); } + disownService() { return capnp_ts_1.Struct.disown(this.getService()); } + getService() { return capnp_ts_1.Struct.getStruct(4, ServiceDesignator, this); } + hasService() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(4, this)); } + initService() { return capnp_ts_1.Struct.initStructAt(4, ServiceDesignator, this); } + setService(value) { capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(4, this)); } + toString() { return "Socket_" + super.toString(); } + which() { return capnp_ts_1.Struct.getUint16(0, this); } } exports.Socket = Socket; Socket.HTTP = Socket_Which.HTTP; Socket.HTTPS = Socket_Which.HTTPS; -Socket._capnp = { - displayName: "Socket", - id: "9a0eba45530ee79f", - size: new capnp_ts_1.ObjectSize(8, 5), -}; +Socket._capnp = { displayName: "Socket", id: "9a0eba45530ee79f", size: new capnp_ts_1.ObjectSize(8, 5) }; var Service_Which; (function (Service_Which) { - Service_Which[(Service_Which["UNSPECIFIED"] = 0)] = "UNSPECIFIED"; - Service_Which[(Service_Which["WORKER"] = 1)] = "WORKER"; - Service_Which[(Service_Which["NETWORK"] = 2)] = "NETWORK"; - Service_Which[(Service_Which["EXTERNAL"] = 3)] = "EXTERNAL"; - Service_Which[(Service_Which["DISK"] = 4)] = "DISK"; -})((Service_Which = exports.Service_Which || (exports.Service_Which = {}))); + Service_Which[Service_Which["UNSPECIFIED"] = 0] = "UNSPECIFIED"; + Service_Which[Service_Which["WORKER"] = 1] = "WORKER"; + Service_Which[Service_Which["NETWORK"] = 2] = "NETWORK"; + Service_Which[Service_Which["EXTERNAL"] = 3] = "EXTERNAL"; + Service_Which[Service_Which["DISK"] = 4] = "DISK"; +})(Service_Which = exports.Service_Which || (exports.Service_Which = {})); class Service extends capnp_ts_1.Struct { - getName() { - return capnp_ts_1.Struct.getText(0, this); - } - setName(value) { - capnp_ts_1.Struct.setText(0, value, this); - } - isUnspecified() { - return capnp_ts_1.Struct.getUint16(0, this) === 0; - } - setUnspecified() { - capnp_ts_1.Struct.setUint16(0, 0, this); - } - adoptWorker(value) { - capnp_ts_1.Struct.setUint16(0, 1, this); - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); - } - disownWorker() { - return capnp_ts_1.Struct.disown(this.getWorker()); - } - getWorker() { - capnp_ts_1.Struct.testWhich( - "worker", - capnp_ts_1.Struct.getUint16(0, this), - 1, - this - ); - return capnp_ts_1.Struct.getStruct(1, Worker, this); - } - hasWorker() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); - } - initWorker() { - capnp_ts_1.Struct.setUint16(0, 1, this); - return capnp_ts_1.Struct.initStructAt(1, Worker, this); - } - isWorker() { - return capnp_ts_1.Struct.getUint16(0, this) === 1; - } - setWorker(value) { - capnp_ts_1.Struct.setUint16(0, 1, this); - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); - } - adoptNetwork(value) { - capnp_ts_1.Struct.setUint16(0, 2, this); - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); - } - disownNetwork() { - return capnp_ts_1.Struct.disown(this.getNetwork()); - } - getNetwork() { - capnp_ts_1.Struct.testWhich( - "network", - capnp_ts_1.Struct.getUint16(0, this), - 2, - this - ); - return capnp_ts_1.Struct.getStruct(1, Network, this); - } - hasNetwork() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); - } - initNetwork() { - capnp_ts_1.Struct.setUint16(0, 2, this); - return capnp_ts_1.Struct.initStructAt(1, Network, this); - } - isNetwork() { - return capnp_ts_1.Struct.getUint16(0, this) === 2; - } - setNetwork(value) { - capnp_ts_1.Struct.setUint16(0, 2, this); - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); - } - adoptExternal(value) { - capnp_ts_1.Struct.setUint16(0, 3, this); - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); - } - disownExternal() { - return capnp_ts_1.Struct.disown(this.getExternal()); - } - getExternal() { - capnp_ts_1.Struct.testWhich( - "external", - capnp_ts_1.Struct.getUint16(0, this), - 3, - this - ); - return capnp_ts_1.Struct.getStruct(1, ExternalServer, this); - } - hasExternal() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); - } - initExternal() { - capnp_ts_1.Struct.setUint16(0, 3, this); - return capnp_ts_1.Struct.initStructAt(1, ExternalServer, this); - } - isExternal() { - return capnp_ts_1.Struct.getUint16(0, this) === 3; - } - setExternal(value) { - capnp_ts_1.Struct.setUint16(0, 3, this); - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); - } - adoptDisk(value) { - capnp_ts_1.Struct.setUint16(0, 4, this); - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); - } - disownDisk() { - return capnp_ts_1.Struct.disown(this.getDisk()); - } - getDisk() { - capnp_ts_1.Struct.testWhich( - "disk", - capnp_ts_1.Struct.getUint16(0, this), - 4, - this - ); - return capnp_ts_1.Struct.getStruct(1, DiskDirectory, this); - } - hasDisk() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); - } - initDisk() { - capnp_ts_1.Struct.setUint16(0, 4, this); - return capnp_ts_1.Struct.initStructAt(1, DiskDirectory, this); - } - isDisk() { - return capnp_ts_1.Struct.getUint16(0, this) === 4; - } - setDisk(value) { - capnp_ts_1.Struct.setUint16(0, 4, this); - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); - } - toString() { - return "Service_" + super.toString(); - } - which() { - return capnp_ts_1.Struct.getUint16(0, this); - } + getName() { return capnp_ts_1.Struct.getText(0, this); } + setName(value) { capnp_ts_1.Struct.setText(0, value, this); } + isUnspecified() { return capnp_ts_1.Struct.getUint16(0, this) === 0; } + setUnspecified() { capnp_ts_1.Struct.setUint16(0, 0, this); } + adoptWorker(value) { + capnp_ts_1.Struct.setUint16(0, 1, this); + capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); + } + disownWorker() { return capnp_ts_1.Struct.disown(this.getWorker()); } + getWorker() { + capnp_ts_1.Struct.testWhich("worker", capnp_ts_1.Struct.getUint16(0, this), 1, this); + return capnp_ts_1.Struct.getStruct(1, Worker, this); + } + hasWorker() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); } + initWorker() { + capnp_ts_1.Struct.setUint16(0, 1, this); + return capnp_ts_1.Struct.initStructAt(1, Worker, this); + } + isWorker() { return capnp_ts_1.Struct.getUint16(0, this) === 1; } + setWorker(value) { + capnp_ts_1.Struct.setUint16(0, 1, this); + capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); + } + adoptNetwork(value) { + capnp_ts_1.Struct.setUint16(0, 2, this); + capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); + } + disownNetwork() { return capnp_ts_1.Struct.disown(this.getNetwork()); } + getNetwork() { + capnp_ts_1.Struct.testWhich("network", capnp_ts_1.Struct.getUint16(0, this), 2, this); + return capnp_ts_1.Struct.getStruct(1, Network, this); + } + hasNetwork() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); } + initNetwork() { + capnp_ts_1.Struct.setUint16(0, 2, this); + return capnp_ts_1.Struct.initStructAt(1, Network, this); + } + isNetwork() { return capnp_ts_1.Struct.getUint16(0, this) === 2; } + setNetwork(value) { + capnp_ts_1.Struct.setUint16(0, 2, this); + capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); + } + adoptExternal(value) { + capnp_ts_1.Struct.setUint16(0, 3, this); + capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); + } + disownExternal() { return capnp_ts_1.Struct.disown(this.getExternal()); } + getExternal() { + capnp_ts_1.Struct.testWhich("external", capnp_ts_1.Struct.getUint16(0, this), 3, this); + return capnp_ts_1.Struct.getStruct(1, ExternalServer, this); + } + hasExternal() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); } + initExternal() { + capnp_ts_1.Struct.setUint16(0, 3, this); + return capnp_ts_1.Struct.initStructAt(1, ExternalServer, this); + } + isExternal() { return capnp_ts_1.Struct.getUint16(0, this) === 3; } + setExternal(value) { + capnp_ts_1.Struct.setUint16(0, 3, this); + capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); + } + adoptDisk(value) { + capnp_ts_1.Struct.setUint16(0, 4, this); + capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); + } + disownDisk() { return capnp_ts_1.Struct.disown(this.getDisk()); } + getDisk() { + capnp_ts_1.Struct.testWhich("disk", capnp_ts_1.Struct.getUint16(0, this), 4, this); + return capnp_ts_1.Struct.getStruct(1, DiskDirectory, this); + } + hasDisk() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); } + initDisk() { + capnp_ts_1.Struct.setUint16(0, 4, this); + return capnp_ts_1.Struct.initStructAt(1, DiskDirectory, this); + } + isDisk() { return capnp_ts_1.Struct.getUint16(0, this) === 4; } + setDisk(value) { + capnp_ts_1.Struct.setUint16(0, 4, this); + capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); + } + toString() { return "Service_" + super.toString(); } + which() { return capnp_ts_1.Struct.getUint16(0, this); } } exports.Service = Service; Service.UNSPECIFIED = Service_Which.UNSPECIFIED; @@ -435,202 +210,134 @@ Service.WORKER = Service_Which.WORKER; Service.NETWORK = Service_Which.NETWORK; Service.EXTERNAL = Service_Which.EXTERNAL; Service.DISK = Service_Which.DISK; -Service._capnp = { - displayName: "Service", - id: "e5c88e8bb7bcb6b9", - size: new capnp_ts_1.ObjectSize(8, 2), -}; +Service._capnp = { displayName: "Service", id: "e5c88e8bb7bcb6b9", size: new capnp_ts_1.ObjectSize(8, 2) }; class ServiceDesignator extends capnp_ts_1.Struct { - getName() { - return capnp_ts_1.Struct.getText(0, this); - } - setName(value) { - capnp_ts_1.Struct.setText(0, value, this); - } - getEntrypoint() { - return capnp_ts_1.Struct.getText(1, this); - } - setEntrypoint(value) { - capnp_ts_1.Struct.setText(1, value, this); - } - toString() { - return "ServiceDesignator_" + super.toString(); - } + getName() { return capnp_ts_1.Struct.getText(0, this); } + setName(value) { capnp_ts_1.Struct.setText(0, value, this); } + getEntrypoint() { return capnp_ts_1.Struct.getText(1, this); } + setEntrypoint(value) { capnp_ts_1.Struct.setText(1, value, this); } + toString() { return "ServiceDesignator_" + super.toString(); } } exports.ServiceDesignator = ServiceDesignator; -ServiceDesignator._capnp = { - displayName: "ServiceDesignator", - id: "ae8ec91cee724450", - size: new capnp_ts_1.ObjectSize(0, 2), -}; +ServiceDesignator._capnp = { displayName: "ServiceDesignator", id: "ae8ec91cee724450", size: new capnp_ts_1.ObjectSize(0, 2) }; var Worker_Module_Which; (function (Worker_Module_Which) { - Worker_Module_Which[(Worker_Module_Which["ES_MODULE"] = 0)] = "ES_MODULE"; - Worker_Module_Which[(Worker_Module_Which["COMMON_JS_MODULE"] = 1)] = - "COMMON_JS_MODULE"; - Worker_Module_Which[(Worker_Module_Which["TEXT"] = 2)] = "TEXT"; - Worker_Module_Which[(Worker_Module_Which["DATA"] = 3)] = "DATA"; - Worker_Module_Which[(Worker_Module_Which["WASM"] = 4)] = "WASM"; - Worker_Module_Which[(Worker_Module_Which["JSON"] = 5)] = "JSON"; - Worker_Module_Which[(Worker_Module_Which["NODE_JS_COMPAT_MODULE"] = 6)] = - "NODE_JS_COMPAT_MODULE"; -})( - (Worker_Module_Which = - exports.Worker_Module_Which || (exports.Worker_Module_Which = {})) -); + Worker_Module_Which[Worker_Module_Which["ES_MODULE"] = 0] = "ES_MODULE"; + Worker_Module_Which[Worker_Module_Which["COMMON_JS_MODULE"] = 1] = "COMMON_JS_MODULE"; + Worker_Module_Which[Worker_Module_Which["TEXT"] = 2] = "TEXT"; + Worker_Module_Which[Worker_Module_Which["DATA"] = 3] = "DATA"; + Worker_Module_Which[Worker_Module_Which["WASM"] = 4] = "WASM"; + Worker_Module_Which[Worker_Module_Which["JSON"] = 5] = "JSON"; + Worker_Module_Which[Worker_Module_Which["NODE_JS_COMPAT_MODULE"] = 6] = "NODE_JS_COMPAT_MODULE"; + Worker_Module_Which[Worker_Module_Which["PYTHON_MODULE"] = 7] = "PYTHON_MODULE"; + Worker_Module_Which[Worker_Module_Which["PYTHON_REQUIREMENT"] = 8] = "PYTHON_REQUIREMENT"; +})(Worker_Module_Which = exports.Worker_Module_Which || (exports.Worker_Module_Which = {})); class Worker_Module extends capnp_ts_1.Struct { - getName() { - return capnp_ts_1.Struct.getText(0, this); - } - setName(value) { - capnp_ts_1.Struct.setText(0, value, this); - } - getEsModule() { - capnp_ts_1.Struct.testWhich( - "esModule", - capnp_ts_1.Struct.getUint16(0, this), - 0, - this - ); - return capnp_ts_1.Struct.getText(1, this); - } - isEsModule() { - return capnp_ts_1.Struct.getUint16(0, this) === 0; - } - setEsModule(value) { - capnp_ts_1.Struct.setUint16(0, 0, this); - capnp_ts_1.Struct.setText(1, value, this); - } - getCommonJsModule() { - capnp_ts_1.Struct.testWhich( - "commonJsModule", - capnp_ts_1.Struct.getUint16(0, this), - 1, - this - ); - return capnp_ts_1.Struct.getText(1, this); - } - isCommonJsModule() { - return capnp_ts_1.Struct.getUint16(0, this) === 1; - } - setCommonJsModule(value) { - capnp_ts_1.Struct.setUint16(0, 1, this); - capnp_ts_1.Struct.setText(1, value, this); - } - getText() { - capnp_ts_1.Struct.testWhich( - "text", - capnp_ts_1.Struct.getUint16(0, this), - 2, - this - ); - return capnp_ts_1.Struct.getText(1, this); - } - isText() { - return capnp_ts_1.Struct.getUint16(0, this) === 2; - } - setText(value) { - capnp_ts_1.Struct.setUint16(0, 2, this); - capnp_ts_1.Struct.setText(1, value, this); - } - adoptData(value) { - capnp_ts_1.Struct.setUint16(0, 3, this); - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); - } - disownData() { - return capnp_ts_1.Struct.disown(this.getData()); - } - getData() { - capnp_ts_1.Struct.testWhich( - "data", - capnp_ts_1.Struct.getUint16(0, this), - 3, - this - ); - return capnp_ts_1.Struct.getData(1, this); - } - hasData() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); - } - initData(length) { - capnp_ts_1.Struct.setUint16(0, 3, this); - return capnp_ts_1.Struct.initData(1, length, this); - } - isData() { - return capnp_ts_1.Struct.getUint16(0, this) === 3; - } - setData(value) { - capnp_ts_1.Struct.setUint16(0, 3, this); - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); - } - adoptWasm(value) { - capnp_ts_1.Struct.setUint16(0, 4, this); - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); - } - disownWasm() { - return capnp_ts_1.Struct.disown(this.getWasm()); - } - getWasm() { - capnp_ts_1.Struct.testWhich( - "wasm", - capnp_ts_1.Struct.getUint16(0, this), - 4, - this - ); - return capnp_ts_1.Struct.getData(1, this); - } - hasWasm() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); - } - initWasm(length) { - capnp_ts_1.Struct.setUint16(0, 4, this); - return capnp_ts_1.Struct.initData(1, length, this); - } - isWasm() { - return capnp_ts_1.Struct.getUint16(0, this) === 4; - } - setWasm(value) { - capnp_ts_1.Struct.setUint16(0, 4, this); - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); - } - getJson() { - capnp_ts_1.Struct.testWhich( - "json", - capnp_ts_1.Struct.getUint16(0, this), - 5, - this - ); - return capnp_ts_1.Struct.getText(1, this); - } - isJson() { - return capnp_ts_1.Struct.getUint16(0, this) === 5; - } - setJson(value) { - capnp_ts_1.Struct.setUint16(0, 5, this); - capnp_ts_1.Struct.setText(1, value, this); - } - getNodeJsCompatModule() { - capnp_ts_1.Struct.testWhich( - "nodeJsCompatModule", - capnp_ts_1.Struct.getUint16(0, this), - 6, - this - ); - return capnp_ts_1.Struct.getText(1, this); - } - isNodeJsCompatModule() { - return capnp_ts_1.Struct.getUint16(0, this) === 6; - } - setNodeJsCompatModule(value) { - capnp_ts_1.Struct.setUint16(0, 6, this); - capnp_ts_1.Struct.setText(1, value, this); - } - toString() { - return "Worker_Module_" + super.toString(); - } - which() { - return capnp_ts_1.Struct.getUint16(0, this); - } + getName() { return capnp_ts_1.Struct.getText(0, this); } + setName(value) { capnp_ts_1.Struct.setText(0, value, this); } + getEsModule() { + capnp_ts_1.Struct.testWhich("esModule", capnp_ts_1.Struct.getUint16(0, this), 0, this); + return capnp_ts_1.Struct.getText(1, this); + } + isEsModule() { return capnp_ts_1.Struct.getUint16(0, this) === 0; } + setEsModule(value) { + capnp_ts_1.Struct.setUint16(0, 0, this); + capnp_ts_1.Struct.setText(1, value, this); + } + getCommonJsModule() { + capnp_ts_1.Struct.testWhich("commonJsModule", capnp_ts_1.Struct.getUint16(0, this), 1, this); + return capnp_ts_1.Struct.getText(1, this); + } + isCommonJsModule() { return capnp_ts_1.Struct.getUint16(0, this) === 1; } + setCommonJsModule(value) { + capnp_ts_1.Struct.setUint16(0, 1, this); + capnp_ts_1.Struct.setText(1, value, this); + } + getText() { + capnp_ts_1.Struct.testWhich("text", capnp_ts_1.Struct.getUint16(0, this), 2, this); + return capnp_ts_1.Struct.getText(1, this); + } + isText() { return capnp_ts_1.Struct.getUint16(0, this) === 2; } + setText(value) { + capnp_ts_1.Struct.setUint16(0, 2, this); + capnp_ts_1.Struct.setText(1, value, this); + } + adoptData(value) { + capnp_ts_1.Struct.setUint16(0, 3, this); + capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); + } + disownData() { return capnp_ts_1.Struct.disown(this.getData()); } + getData() { + capnp_ts_1.Struct.testWhich("data", capnp_ts_1.Struct.getUint16(0, this), 3, this); + return capnp_ts_1.Struct.getData(1, this); + } + hasData() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); } + initData(length) { + capnp_ts_1.Struct.setUint16(0, 3, this); + return capnp_ts_1.Struct.initData(1, length, this); + } + isData() { return capnp_ts_1.Struct.getUint16(0, this) === 3; } + setData(value) { + capnp_ts_1.Struct.setUint16(0, 3, this); + capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); + } + adoptWasm(value) { + capnp_ts_1.Struct.setUint16(0, 4, this); + capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); + } + disownWasm() { return capnp_ts_1.Struct.disown(this.getWasm()); } + getWasm() { + capnp_ts_1.Struct.testWhich("wasm", capnp_ts_1.Struct.getUint16(0, this), 4, this); + return capnp_ts_1.Struct.getData(1, this); + } + hasWasm() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); } + initWasm(length) { + capnp_ts_1.Struct.setUint16(0, 4, this); + return capnp_ts_1.Struct.initData(1, length, this); + } + isWasm() { return capnp_ts_1.Struct.getUint16(0, this) === 4; } + setWasm(value) { + capnp_ts_1.Struct.setUint16(0, 4, this); + capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); + } + getJson() { + capnp_ts_1.Struct.testWhich("json", capnp_ts_1.Struct.getUint16(0, this), 5, this); + return capnp_ts_1.Struct.getText(1, this); + } + isJson() { return capnp_ts_1.Struct.getUint16(0, this) === 5; } + setJson(value) { + capnp_ts_1.Struct.setUint16(0, 5, this); + capnp_ts_1.Struct.setText(1, value, this); + } + getNodeJsCompatModule() { + capnp_ts_1.Struct.testWhich("nodeJsCompatModule", capnp_ts_1.Struct.getUint16(0, this), 6, this); + return capnp_ts_1.Struct.getText(1, this); + } + isNodeJsCompatModule() { return capnp_ts_1.Struct.getUint16(0, this) === 6; } + setNodeJsCompatModule(value) { + capnp_ts_1.Struct.setUint16(0, 6, this); + capnp_ts_1.Struct.setText(1, value, this); + } + getPythonModule() { + capnp_ts_1.Struct.testWhich("pythonModule", capnp_ts_1.Struct.getUint16(0, this), 7, this); + return capnp_ts_1.Struct.getText(1, this); + } + isPythonModule() { return capnp_ts_1.Struct.getUint16(0, this) === 7; } + setPythonModule(value) { + capnp_ts_1.Struct.setUint16(0, 7, this); + capnp_ts_1.Struct.setText(1, value, this); + } + getPythonRequirement() { + capnp_ts_1.Struct.testWhich("pythonRequirement", capnp_ts_1.Struct.getUint16(0, this), 8, this); + return capnp_ts_1.Struct.getText(1, this); + } + isPythonRequirement() { return capnp_ts_1.Struct.getUint16(0, this) === 8; } + setPythonRequirement(value) { + capnp_ts_1.Struct.setUint16(0, 8, this); + capnp_ts_1.Struct.setText(1, value, this); + } + toString() { return "Worker_Module_" + super.toString(); } + which() { return capnp_ts_1.Struct.getUint16(0, this); } } exports.Worker_Module = Worker_Module; Worker_Module.ES_MODULE = Worker_Module_Which.ES_MODULE; @@ -640,159 +347,74 @@ Worker_Module.DATA = Worker_Module_Which.DATA; Worker_Module.WASM = Worker_Module_Which.WASM; Worker_Module.JSON = Worker_Module_Which.JSON; Worker_Module.NODE_JS_COMPAT_MODULE = Worker_Module_Which.NODE_JS_COMPAT_MODULE; -Worker_Module._capnp = { - displayName: "Module", - id: "d9d87a63770a12f3", - size: new capnp_ts_1.ObjectSize(8, 2), -}; +Worker_Module.PYTHON_MODULE = Worker_Module_Which.PYTHON_MODULE; +Worker_Module.PYTHON_REQUIREMENT = Worker_Module_Which.PYTHON_REQUIREMENT; +Worker_Module._capnp = { displayName: "Module", id: "d9d87a63770a12f3", size: new capnp_ts_1.ObjectSize(8, 2) }; var Worker_Binding_Type_Which; (function (Worker_Binding_Type_Which) { - Worker_Binding_Type_Which[(Worker_Binding_Type_Which["UNSPECIFIED"] = 0)] = - "UNSPECIFIED"; - Worker_Binding_Type_Which[(Worker_Binding_Type_Which["TEXT"] = 1)] = "TEXT"; - Worker_Binding_Type_Which[(Worker_Binding_Type_Which["DATA"] = 2)] = "DATA"; - Worker_Binding_Type_Which[(Worker_Binding_Type_Which["JSON"] = 3)] = "JSON"; - Worker_Binding_Type_Which[(Worker_Binding_Type_Which["WASM"] = 4)] = "WASM"; - Worker_Binding_Type_Which[(Worker_Binding_Type_Which["CRYPTO_KEY"] = 5)] = - "CRYPTO_KEY"; - Worker_Binding_Type_Which[(Worker_Binding_Type_Which["SERVICE"] = 6)] = - "SERVICE"; - Worker_Binding_Type_Which[ - (Worker_Binding_Type_Which["DURABLE_OBJECT_NAMESPACE"] = 7) - ] = "DURABLE_OBJECT_NAMESPACE"; - Worker_Binding_Type_Which[(Worker_Binding_Type_Which["KV_NAMESPACE"] = 8)] = - "KV_NAMESPACE"; - Worker_Binding_Type_Which[(Worker_Binding_Type_Which["R2BUCKET"] = 9)] = - "R2BUCKET"; - Worker_Binding_Type_Which[(Worker_Binding_Type_Which["R2ADMIN"] = 10)] = - "R2ADMIN"; - Worker_Binding_Type_Which[(Worker_Binding_Type_Which["QUEUE"] = 11)] = - "QUEUE"; - Worker_Binding_Type_Which[ - (Worker_Binding_Type_Which["ANALYTICS_ENGINE"] = 12) - ] = "ANALYTICS_ENGINE"; - Worker_Binding_Type_Which[(Worker_Binding_Type_Which["HYPERDRIVE"] = 13)] = - "HYPERDRIVE"; -})( - (Worker_Binding_Type_Which = - exports.Worker_Binding_Type_Which || - (exports.Worker_Binding_Type_Which = {})) -); + Worker_Binding_Type_Which[Worker_Binding_Type_Which["UNSPECIFIED"] = 0] = "UNSPECIFIED"; + Worker_Binding_Type_Which[Worker_Binding_Type_Which["TEXT"] = 1] = "TEXT"; + Worker_Binding_Type_Which[Worker_Binding_Type_Which["DATA"] = 2] = "DATA"; + Worker_Binding_Type_Which[Worker_Binding_Type_Which["JSON"] = 3] = "JSON"; + Worker_Binding_Type_Which[Worker_Binding_Type_Which["WASM"] = 4] = "WASM"; + Worker_Binding_Type_Which[Worker_Binding_Type_Which["CRYPTO_KEY"] = 5] = "CRYPTO_KEY"; + Worker_Binding_Type_Which[Worker_Binding_Type_Which["SERVICE"] = 6] = "SERVICE"; + Worker_Binding_Type_Which[Worker_Binding_Type_Which["DURABLE_OBJECT_NAMESPACE"] = 7] = "DURABLE_OBJECT_NAMESPACE"; + Worker_Binding_Type_Which[Worker_Binding_Type_Which["KV_NAMESPACE"] = 8] = "KV_NAMESPACE"; + Worker_Binding_Type_Which[Worker_Binding_Type_Which["R2BUCKET"] = 9] = "R2BUCKET"; + Worker_Binding_Type_Which[Worker_Binding_Type_Which["R2ADMIN"] = 10] = "R2ADMIN"; + Worker_Binding_Type_Which[Worker_Binding_Type_Which["QUEUE"] = 11] = "QUEUE"; + Worker_Binding_Type_Which[Worker_Binding_Type_Which["ANALYTICS_ENGINE"] = 12] = "ANALYTICS_ENGINE"; + Worker_Binding_Type_Which[Worker_Binding_Type_Which["HYPERDRIVE"] = 13] = "HYPERDRIVE"; +})(Worker_Binding_Type_Which = exports.Worker_Binding_Type_Which || (exports.Worker_Binding_Type_Which = {})); class Worker_Binding_Type extends capnp_ts_1.Struct { - isUnspecified() { - return capnp_ts_1.Struct.getUint16(0, this) === 0; - } - setUnspecified() { - capnp_ts_1.Struct.setUint16(0, 0, this); - } - isText() { - return capnp_ts_1.Struct.getUint16(0, this) === 1; - } - setText() { - capnp_ts_1.Struct.setUint16(0, 1, this); - } - isData() { - return capnp_ts_1.Struct.getUint16(0, this) === 2; - } - setData() { - capnp_ts_1.Struct.setUint16(0, 2, this); - } - isJson() { - return capnp_ts_1.Struct.getUint16(0, this) === 3; - } - setJson() { - capnp_ts_1.Struct.setUint16(0, 3, this); - } - isWasm() { - return capnp_ts_1.Struct.getUint16(0, this) === 4; - } - setWasm() { - capnp_ts_1.Struct.setUint16(0, 4, this); - } - adoptCryptoKey(value) { - capnp_ts_1.Struct.setUint16(0, 5, this); - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(0, this)); - } - disownCryptoKey() { - return capnp_ts_1.Struct.disown(this.getCryptoKey()); - } - getCryptoKey() { - capnp_ts_1.Struct.testWhich( - "cryptoKey", - capnp_ts_1.Struct.getUint16(0, this), - 5, - this - ); - return capnp_ts_1.Struct.getList(0, capnp.Uint16List, this); - } - hasCryptoKey() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(0, this)); - } - initCryptoKey(length) { - capnp_ts_1.Struct.setUint16(0, 5, this); - return capnp_ts_1.Struct.initList(0, capnp.Uint16List, length, this); - } - isCryptoKey() { - return capnp_ts_1.Struct.getUint16(0, this) === 5; - } - setCryptoKey(value) { - capnp_ts_1.Struct.setUint16(0, 5, this); - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(0, this)); - } - isService() { - return capnp_ts_1.Struct.getUint16(0, this) === 6; - } - setService() { - capnp_ts_1.Struct.setUint16(0, 6, this); - } - isDurableObjectNamespace() { - return capnp_ts_1.Struct.getUint16(0, this) === 7; - } - setDurableObjectNamespace() { - capnp_ts_1.Struct.setUint16(0, 7, this); - } - isKvNamespace() { - return capnp_ts_1.Struct.getUint16(0, this) === 8; - } - setKvNamespace() { - capnp_ts_1.Struct.setUint16(0, 8, this); - } - isR2Bucket() { - return capnp_ts_1.Struct.getUint16(0, this) === 9; - } - setR2Bucket() { - capnp_ts_1.Struct.setUint16(0, 9, this); - } - isR2Admin() { - return capnp_ts_1.Struct.getUint16(0, this) === 10; - } - setR2Admin() { - capnp_ts_1.Struct.setUint16(0, 10, this); - } - isQueue() { - return capnp_ts_1.Struct.getUint16(0, this) === 11; - } - setQueue() { - capnp_ts_1.Struct.setUint16(0, 11, this); - } - isAnalyticsEngine() { - return capnp_ts_1.Struct.getUint16(0, this) === 12; - } - setAnalyticsEngine() { - capnp_ts_1.Struct.setUint16(0, 12, this); - } - isHyperdrive() { - return capnp_ts_1.Struct.getUint16(0, this) === 13; - } - setHyperdrive() { - capnp_ts_1.Struct.setUint16(0, 13, this); - } - toString() { - return "Worker_Binding_Type_" + super.toString(); - } - which() { - return capnp_ts_1.Struct.getUint16(0, this); - } + isUnspecified() { return capnp_ts_1.Struct.getUint16(0, this) === 0; } + setUnspecified() { capnp_ts_1.Struct.setUint16(0, 0, this); } + isText() { return capnp_ts_1.Struct.getUint16(0, this) === 1; } + setText() { capnp_ts_1.Struct.setUint16(0, 1, this); } + isData() { return capnp_ts_1.Struct.getUint16(0, this) === 2; } + setData() { capnp_ts_1.Struct.setUint16(0, 2, this); } + isJson() { return capnp_ts_1.Struct.getUint16(0, this) === 3; } + setJson() { capnp_ts_1.Struct.setUint16(0, 3, this); } + isWasm() { return capnp_ts_1.Struct.getUint16(0, this) === 4; } + setWasm() { capnp_ts_1.Struct.setUint16(0, 4, this); } + adoptCryptoKey(value) { + capnp_ts_1.Struct.setUint16(0, 5, this); + capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(0, this)); + } + disownCryptoKey() { return capnp_ts_1.Struct.disown(this.getCryptoKey()); } + getCryptoKey() { + capnp_ts_1.Struct.testWhich("cryptoKey", capnp_ts_1.Struct.getUint16(0, this), 5, this); + return capnp_ts_1.Struct.getList(0, capnp.Uint16List, this); + } + hasCryptoKey() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(0, this)); } + initCryptoKey(length) { + capnp_ts_1.Struct.setUint16(0, 5, this); + return capnp_ts_1.Struct.initList(0, capnp.Uint16List, length, this); + } + isCryptoKey() { return capnp_ts_1.Struct.getUint16(0, this) === 5; } + setCryptoKey(value) { + capnp_ts_1.Struct.setUint16(0, 5, this); + capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(0, this)); + } + isService() { return capnp_ts_1.Struct.getUint16(0, this) === 6; } + setService() { capnp_ts_1.Struct.setUint16(0, 6, this); } + isDurableObjectNamespace() { return capnp_ts_1.Struct.getUint16(0, this) === 7; } + setDurableObjectNamespace() { capnp_ts_1.Struct.setUint16(0, 7, this); } + isKvNamespace() { return capnp_ts_1.Struct.getUint16(0, this) === 8; } + setKvNamespace() { capnp_ts_1.Struct.setUint16(0, 8, this); } + isR2Bucket() { return capnp_ts_1.Struct.getUint16(0, this) === 9; } + setR2Bucket() { capnp_ts_1.Struct.setUint16(0, 9, this); } + isR2Admin() { return capnp_ts_1.Struct.getUint16(0, this) === 10; } + setR2Admin() { capnp_ts_1.Struct.setUint16(0, 10, this); } + isQueue() { return capnp_ts_1.Struct.getUint16(0, this) === 11; } + setQueue() { capnp_ts_1.Struct.setUint16(0, 11, this); } + isAnalyticsEngine() { return capnp_ts_1.Struct.getUint16(0, this) === 12; } + setAnalyticsEngine() { capnp_ts_1.Struct.setUint16(0, 12, this); } + isHyperdrive() { return capnp_ts_1.Struct.getUint16(0, this) === 13; } + setHyperdrive() { capnp_ts_1.Struct.setUint16(0, 13, this); } + toString() { return "Worker_Binding_Type_" + super.toString(); } + which() { return capnp_ts_1.Struct.getUint16(0, this); } } exports.Worker_Binding_Type = Worker_Binding_Type; Worker_Binding_Type.UNSPECIFIED = Worker_Binding_Type_Which.UNSPECIFIED; @@ -802,311 +424,151 @@ Worker_Binding_Type.JSON = Worker_Binding_Type_Which.JSON; Worker_Binding_Type.WASM = Worker_Binding_Type_Which.WASM; Worker_Binding_Type.CRYPTO_KEY = Worker_Binding_Type_Which.CRYPTO_KEY; Worker_Binding_Type.SERVICE = Worker_Binding_Type_Which.SERVICE; -Worker_Binding_Type.DURABLE_OBJECT_NAMESPACE = - Worker_Binding_Type_Which.DURABLE_OBJECT_NAMESPACE; +Worker_Binding_Type.DURABLE_OBJECT_NAMESPACE = Worker_Binding_Type_Which.DURABLE_OBJECT_NAMESPACE; Worker_Binding_Type.KV_NAMESPACE = Worker_Binding_Type_Which.KV_NAMESPACE; Worker_Binding_Type.R2BUCKET = Worker_Binding_Type_Which.R2BUCKET; Worker_Binding_Type.R2ADMIN = Worker_Binding_Type_Which.R2ADMIN; Worker_Binding_Type.QUEUE = Worker_Binding_Type_Which.QUEUE; -Worker_Binding_Type.ANALYTICS_ENGINE = - Worker_Binding_Type_Which.ANALYTICS_ENGINE; +Worker_Binding_Type.ANALYTICS_ENGINE = Worker_Binding_Type_Which.ANALYTICS_ENGINE; Worker_Binding_Type.HYPERDRIVE = Worker_Binding_Type_Which.HYPERDRIVE; -Worker_Binding_Type._capnp = { - displayName: "Type", - id: "8906a1296519bf8a", - size: new capnp_ts_1.ObjectSize(8, 1), -}; +Worker_Binding_Type._capnp = { displayName: "Type", id: "8906a1296519bf8a", size: new capnp_ts_1.ObjectSize(8, 1) }; class Worker_Binding_DurableObjectNamespaceDesignator extends capnp_ts_1.Struct { - getClassName() { - return capnp_ts_1.Struct.getText(0, this); - } - setClassName(value) { - capnp_ts_1.Struct.setText(0, value, this); - } - getServiceName() { - return capnp_ts_1.Struct.getText(1, this); - } - setServiceName(value) { - capnp_ts_1.Struct.setText(1, value, this); - } - toString() { - return ( - "Worker_Binding_DurableObjectNamespaceDesignator_" + super.toString() - ); - } + getClassName() { return capnp_ts_1.Struct.getText(0, this); } + setClassName(value) { capnp_ts_1.Struct.setText(0, value, this); } + getServiceName() { return capnp_ts_1.Struct.getText(1, this); } + setServiceName(value) { capnp_ts_1.Struct.setText(1, value, this); } + toString() { return "Worker_Binding_DurableObjectNamespaceDesignator_" + super.toString(); } } -exports.Worker_Binding_DurableObjectNamespaceDesignator = - Worker_Binding_DurableObjectNamespaceDesignator; -Worker_Binding_DurableObjectNamespaceDesignator._capnp = { - displayName: "DurableObjectNamespaceDesignator", - id: "804f144ff477aac7", - size: new capnp_ts_1.ObjectSize(0, 2), -}; +exports.Worker_Binding_DurableObjectNamespaceDesignator = Worker_Binding_DurableObjectNamespaceDesignator; +Worker_Binding_DurableObjectNamespaceDesignator._capnp = { displayName: "DurableObjectNamespaceDesignator", id: "804f144ff477aac7", size: new capnp_ts_1.ObjectSize(0, 2) }; var Worker_Binding_CryptoKey_Usage; (function (Worker_Binding_CryptoKey_Usage) { - Worker_Binding_CryptoKey_Usage[ - (Worker_Binding_CryptoKey_Usage["ENCRYPT"] = 0) - ] = "ENCRYPT"; - Worker_Binding_CryptoKey_Usage[ - (Worker_Binding_CryptoKey_Usage["DECRYPT"] = 1) - ] = "DECRYPT"; - Worker_Binding_CryptoKey_Usage[(Worker_Binding_CryptoKey_Usage["SIGN"] = 2)] = - "SIGN"; - Worker_Binding_CryptoKey_Usage[ - (Worker_Binding_CryptoKey_Usage["VERIFY"] = 3) - ] = "VERIFY"; - Worker_Binding_CryptoKey_Usage[ - (Worker_Binding_CryptoKey_Usage["DERIVE_KEY"] = 4) - ] = "DERIVE_KEY"; - Worker_Binding_CryptoKey_Usage[ - (Worker_Binding_CryptoKey_Usage["DERIVE_BITS"] = 5) - ] = "DERIVE_BITS"; - Worker_Binding_CryptoKey_Usage[ - (Worker_Binding_CryptoKey_Usage["WRAP_KEY"] = 6) - ] = "WRAP_KEY"; - Worker_Binding_CryptoKey_Usage[ - (Worker_Binding_CryptoKey_Usage["UNWRAP_KEY"] = 7) - ] = "UNWRAP_KEY"; -})( - (Worker_Binding_CryptoKey_Usage = - exports.Worker_Binding_CryptoKey_Usage || - (exports.Worker_Binding_CryptoKey_Usage = {})) -); + Worker_Binding_CryptoKey_Usage[Worker_Binding_CryptoKey_Usage["ENCRYPT"] = 0] = "ENCRYPT"; + Worker_Binding_CryptoKey_Usage[Worker_Binding_CryptoKey_Usage["DECRYPT"] = 1] = "DECRYPT"; + Worker_Binding_CryptoKey_Usage[Worker_Binding_CryptoKey_Usage["SIGN"] = 2] = "SIGN"; + Worker_Binding_CryptoKey_Usage[Worker_Binding_CryptoKey_Usage["VERIFY"] = 3] = "VERIFY"; + Worker_Binding_CryptoKey_Usage[Worker_Binding_CryptoKey_Usage["DERIVE_KEY"] = 4] = "DERIVE_KEY"; + Worker_Binding_CryptoKey_Usage[Worker_Binding_CryptoKey_Usage["DERIVE_BITS"] = 5] = "DERIVE_BITS"; + Worker_Binding_CryptoKey_Usage[Worker_Binding_CryptoKey_Usage["WRAP_KEY"] = 6] = "WRAP_KEY"; + Worker_Binding_CryptoKey_Usage[Worker_Binding_CryptoKey_Usage["UNWRAP_KEY"] = 7] = "UNWRAP_KEY"; +})(Worker_Binding_CryptoKey_Usage = exports.Worker_Binding_CryptoKey_Usage || (exports.Worker_Binding_CryptoKey_Usage = {})); var Worker_Binding_CryptoKey_Algorithm_Which; (function (Worker_Binding_CryptoKey_Algorithm_Which) { - Worker_Binding_CryptoKey_Algorithm_Which[ - (Worker_Binding_CryptoKey_Algorithm_Which["NAME"] = 0) - ] = "NAME"; - Worker_Binding_CryptoKey_Algorithm_Which[ - (Worker_Binding_CryptoKey_Algorithm_Which["JSON"] = 1) - ] = "JSON"; -})( - (Worker_Binding_CryptoKey_Algorithm_Which = - exports.Worker_Binding_CryptoKey_Algorithm_Which || - (exports.Worker_Binding_CryptoKey_Algorithm_Which = {})) -); + Worker_Binding_CryptoKey_Algorithm_Which[Worker_Binding_CryptoKey_Algorithm_Which["NAME"] = 0] = "NAME"; + Worker_Binding_CryptoKey_Algorithm_Which[Worker_Binding_CryptoKey_Algorithm_Which["JSON"] = 1] = "JSON"; +})(Worker_Binding_CryptoKey_Algorithm_Which = exports.Worker_Binding_CryptoKey_Algorithm_Which || (exports.Worker_Binding_CryptoKey_Algorithm_Which = {})); class Worker_Binding_CryptoKey_Algorithm extends capnp_ts_1.Struct { - getName() { - capnp_ts_1.Struct.testWhich( - "name", - capnp_ts_1.Struct.getUint16(2, this), - 0, - this - ); - return capnp_ts_1.Struct.getText(1, this); - } - isName() { - return capnp_ts_1.Struct.getUint16(2, this) === 0; - } - setName(value) { - capnp_ts_1.Struct.setUint16(2, 0, this); - capnp_ts_1.Struct.setText(1, value, this); - } - getJson() { - capnp_ts_1.Struct.testWhich( - "json", - capnp_ts_1.Struct.getUint16(2, this), - 1, - this - ); - return capnp_ts_1.Struct.getText(1, this); - } - isJson() { - return capnp_ts_1.Struct.getUint16(2, this) === 1; - } - setJson(value) { - capnp_ts_1.Struct.setUint16(2, 1, this); - capnp_ts_1.Struct.setText(1, value, this); - } - toString() { - return "Worker_Binding_CryptoKey_Algorithm_" + super.toString(); - } - which() { - return capnp_ts_1.Struct.getUint16(2, this); - } + getName() { + capnp_ts_1.Struct.testWhich("name", capnp_ts_1.Struct.getUint16(2, this), 0, this); + return capnp_ts_1.Struct.getText(1, this); + } + isName() { return capnp_ts_1.Struct.getUint16(2, this) === 0; } + setName(value) { + capnp_ts_1.Struct.setUint16(2, 0, this); + capnp_ts_1.Struct.setText(1, value, this); + } + getJson() { + capnp_ts_1.Struct.testWhich("json", capnp_ts_1.Struct.getUint16(2, this), 1, this); + return capnp_ts_1.Struct.getText(1, this); + } + isJson() { return capnp_ts_1.Struct.getUint16(2, this) === 1; } + setJson(value) { + capnp_ts_1.Struct.setUint16(2, 1, this); + capnp_ts_1.Struct.setText(1, value, this); + } + toString() { return "Worker_Binding_CryptoKey_Algorithm_" + super.toString(); } + which() { return capnp_ts_1.Struct.getUint16(2, this); } } exports.Worker_Binding_CryptoKey_Algorithm = Worker_Binding_CryptoKey_Algorithm; -Worker_Binding_CryptoKey_Algorithm.NAME = - Worker_Binding_CryptoKey_Algorithm_Which.NAME; -Worker_Binding_CryptoKey_Algorithm.JSON = - Worker_Binding_CryptoKey_Algorithm_Which.JSON; -Worker_Binding_CryptoKey_Algorithm._capnp = { - displayName: "algorithm", - id: "a1a040c5e00d7021", - size: new capnp_ts_1.ObjectSize(8, 3), -}; +Worker_Binding_CryptoKey_Algorithm.NAME = Worker_Binding_CryptoKey_Algorithm_Which.NAME; +Worker_Binding_CryptoKey_Algorithm.JSON = Worker_Binding_CryptoKey_Algorithm_Which.JSON; +Worker_Binding_CryptoKey_Algorithm._capnp = { displayName: "algorithm", id: "a1a040c5e00d7021", size: new capnp_ts_1.ObjectSize(8, 3) }; var Worker_Binding_CryptoKey_Which; (function (Worker_Binding_CryptoKey_Which) { - Worker_Binding_CryptoKey_Which[(Worker_Binding_CryptoKey_Which["RAW"] = 0)] = - "RAW"; - Worker_Binding_CryptoKey_Which[(Worker_Binding_CryptoKey_Which["HEX"] = 1)] = - "HEX"; - Worker_Binding_CryptoKey_Which[ - (Worker_Binding_CryptoKey_Which["BASE64"] = 2) - ] = "BASE64"; - Worker_Binding_CryptoKey_Which[ - (Worker_Binding_CryptoKey_Which["PKCS8"] = 3) - ] = "PKCS8"; - Worker_Binding_CryptoKey_Which[(Worker_Binding_CryptoKey_Which["SPKI"] = 4)] = - "SPKI"; - Worker_Binding_CryptoKey_Which[(Worker_Binding_CryptoKey_Which["JWK"] = 5)] = - "JWK"; -})( - (Worker_Binding_CryptoKey_Which = - exports.Worker_Binding_CryptoKey_Which || - (exports.Worker_Binding_CryptoKey_Which = {})) -); + Worker_Binding_CryptoKey_Which[Worker_Binding_CryptoKey_Which["RAW"] = 0] = "RAW"; + Worker_Binding_CryptoKey_Which[Worker_Binding_CryptoKey_Which["HEX"] = 1] = "HEX"; + Worker_Binding_CryptoKey_Which[Worker_Binding_CryptoKey_Which["BASE64"] = 2] = "BASE64"; + Worker_Binding_CryptoKey_Which[Worker_Binding_CryptoKey_Which["PKCS8"] = 3] = "PKCS8"; + Worker_Binding_CryptoKey_Which[Worker_Binding_CryptoKey_Which["SPKI"] = 4] = "SPKI"; + Worker_Binding_CryptoKey_Which[Worker_Binding_CryptoKey_Which["JWK"] = 5] = "JWK"; +})(Worker_Binding_CryptoKey_Which = exports.Worker_Binding_CryptoKey_Which || (exports.Worker_Binding_CryptoKey_Which = {})); class Worker_Binding_CryptoKey extends capnp_ts_1.Struct { - adoptRaw(value) { - capnp_ts_1.Struct.setUint16(0, 0, this); - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(0, this)); - } - disownRaw() { - return capnp_ts_1.Struct.disown(this.getRaw()); - } - getRaw() { - capnp_ts_1.Struct.testWhich( - "raw", - capnp_ts_1.Struct.getUint16(0, this), - 0, - this - ); - return capnp_ts_1.Struct.getData(0, this); - } - hasRaw() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(0, this)); - } - initRaw(length) { - capnp_ts_1.Struct.setUint16(0, 0, this); - return capnp_ts_1.Struct.initData(0, length, this); - } - isRaw() { - return capnp_ts_1.Struct.getUint16(0, this) === 0; - } - setRaw(value) { - capnp_ts_1.Struct.setUint16(0, 0, this); - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(0, this)); - } - getHex() { - capnp_ts_1.Struct.testWhich( - "hex", - capnp_ts_1.Struct.getUint16(0, this), - 1, - this - ); - return capnp_ts_1.Struct.getText(0, this); - } - isHex() { - return capnp_ts_1.Struct.getUint16(0, this) === 1; - } - setHex(value) { - capnp_ts_1.Struct.setUint16(0, 1, this); - capnp_ts_1.Struct.setText(0, value, this); - } - getBase64() { - capnp_ts_1.Struct.testWhich( - "base64", - capnp_ts_1.Struct.getUint16(0, this), - 2, - this - ); - return capnp_ts_1.Struct.getText(0, this); - } - isBase64() { - return capnp_ts_1.Struct.getUint16(0, this) === 2; - } - setBase64(value) { - capnp_ts_1.Struct.setUint16(0, 2, this); - capnp_ts_1.Struct.setText(0, value, this); - } - getPkcs8() { - capnp_ts_1.Struct.testWhich( - "pkcs8", - capnp_ts_1.Struct.getUint16(0, this), - 3, - this - ); - return capnp_ts_1.Struct.getText(0, this); - } - isPkcs8() { - return capnp_ts_1.Struct.getUint16(0, this) === 3; - } - setPkcs8(value) { - capnp_ts_1.Struct.setUint16(0, 3, this); - capnp_ts_1.Struct.setText(0, value, this); - } - getSpki() { - capnp_ts_1.Struct.testWhich( - "spki", - capnp_ts_1.Struct.getUint16(0, this), - 4, - this - ); - return capnp_ts_1.Struct.getText(0, this); - } - isSpki() { - return capnp_ts_1.Struct.getUint16(0, this) === 4; - } - setSpki(value) { - capnp_ts_1.Struct.setUint16(0, 4, this); - capnp_ts_1.Struct.setText(0, value, this); - } - getJwk() { - capnp_ts_1.Struct.testWhich( - "jwk", - capnp_ts_1.Struct.getUint16(0, this), - 5, - this - ); - return capnp_ts_1.Struct.getText(0, this); - } - isJwk() { - return capnp_ts_1.Struct.getUint16(0, this) === 5; - } - setJwk(value) { - capnp_ts_1.Struct.setUint16(0, 5, this); - capnp_ts_1.Struct.setText(0, value, this); - } - getAlgorithm() { - return capnp_ts_1.Struct.getAs(Worker_Binding_CryptoKey_Algorithm, this); - } - initAlgorithm() { - return capnp_ts_1.Struct.getAs(Worker_Binding_CryptoKey_Algorithm, this); - } - getExtractable() { - return capnp_ts_1.Struct.getBit( - 32, - this, - Worker_Binding_CryptoKey._capnp.defaultExtractable - ); - } - setExtractable(value) { - capnp_ts_1.Struct.setBit(32, value, this); - } - adoptUsages(value) { - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(2, this)); - } - disownUsages() { - return capnp_ts_1.Struct.disown(this.getUsages()); - } - getUsages() { - return capnp_ts_1.Struct.getList(2, capnp.Uint16List, this); - } - hasUsages() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(2, this)); - } - initUsages(length) { - return capnp_ts_1.Struct.initList(2, capnp.Uint16List, length, this); - } - setUsages(value) { - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(2, this)); - } - toString() { - return "Worker_Binding_CryptoKey_" + super.toString(); - } - which() { - return capnp_ts_1.Struct.getUint16(0, this); - } + adoptRaw(value) { + capnp_ts_1.Struct.setUint16(0, 0, this); + capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(0, this)); + } + disownRaw() { return capnp_ts_1.Struct.disown(this.getRaw()); } + getRaw() { + capnp_ts_1.Struct.testWhich("raw", capnp_ts_1.Struct.getUint16(0, this), 0, this); + return capnp_ts_1.Struct.getData(0, this); + } + hasRaw() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(0, this)); } + initRaw(length) { + capnp_ts_1.Struct.setUint16(0, 0, this); + return capnp_ts_1.Struct.initData(0, length, this); + } + isRaw() { return capnp_ts_1.Struct.getUint16(0, this) === 0; } + setRaw(value) { + capnp_ts_1.Struct.setUint16(0, 0, this); + capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(0, this)); + } + getHex() { + capnp_ts_1.Struct.testWhich("hex", capnp_ts_1.Struct.getUint16(0, this), 1, this); + return capnp_ts_1.Struct.getText(0, this); + } + isHex() { return capnp_ts_1.Struct.getUint16(0, this) === 1; } + setHex(value) { + capnp_ts_1.Struct.setUint16(0, 1, this); + capnp_ts_1.Struct.setText(0, value, this); + } + getBase64() { + capnp_ts_1.Struct.testWhich("base64", capnp_ts_1.Struct.getUint16(0, this), 2, this); + return capnp_ts_1.Struct.getText(0, this); + } + isBase64() { return capnp_ts_1.Struct.getUint16(0, this) === 2; } + setBase64(value) { + capnp_ts_1.Struct.setUint16(0, 2, this); + capnp_ts_1.Struct.setText(0, value, this); + } + getPkcs8() { + capnp_ts_1.Struct.testWhich("pkcs8", capnp_ts_1.Struct.getUint16(0, this), 3, this); + return capnp_ts_1.Struct.getText(0, this); + } + isPkcs8() { return capnp_ts_1.Struct.getUint16(0, this) === 3; } + setPkcs8(value) { + capnp_ts_1.Struct.setUint16(0, 3, this); + capnp_ts_1.Struct.setText(0, value, this); + } + getSpki() { + capnp_ts_1.Struct.testWhich("spki", capnp_ts_1.Struct.getUint16(0, this), 4, this); + return capnp_ts_1.Struct.getText(0, this); + } + isSpki() { return capnp_ts_1.Struct.getUint16(0, this) === 4; } + setSpki(value) { + capnp_ts_1.Struct.setUint16(0, 4, this); + capnp_ts_1.Struct.setText(0, value, this); + } + getJwk() { + capnp_ts_1.Struct.testWhich("jwk", capnp_ts_1.Struct.getUint16(0, this), 5, this); + return capnp_ts_1.Struct.getText(0, this); + } + isJwk() { return capnp_ts_1.Struct.getUint16(0, this) === 5; } + setJwk(value) { + capnp_ts_1.Struct.setUint16(0, 5, this); + capnp_ts_1.Struct.setText(0, value, this); + } + getAlgorithm() { return capnp_ts_1.Struct.getAs(Worker_Binding_CryptoKey_Algorithm, this); } + initAlgorithm() { return capnp_ts_1.Struct.getAs(Worker_Binding_CryptoKey_Algorithm, this); } + getExtractable() { return capnp_ts_1.Struct.getBit(32, this, Worker_Binding_CryptoKey._capnp.defaultExtractable); } + setExtractable(value) { capnp_ts_1.Struct.setBit(32, value, this); } + adoptUsages(value) { capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(2, this)); } + disownUsages() { return capnp_ts_1.Struct.disown(this.getUsages()); } + getUsages() { return capnp_ts_1.Struct.getList(2, capnp.Uint16List, this); } + hasUsages() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(2, this)); } + initUsages(length) { return capnp_ts_1.Struct.initList(2, capnp.Uint16List, length, this); } + setUsages(value) { capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(2, this)); } + toString() { return "Worker_Binding_CryptoKey_" + super.toString(); } + which() { return capnp_ts_1.Struct.getUint16(0, this); } } exports.Worker_Binding_CryptoKey = Worker_Binding_CryptoKey; Worker_Binding_CryptoKey.RAW = Worker_Binding_CryptoKey_Which.RAW; @@ -1116,640 +578,340 @@ Worker_Binding_CryptoKey.PKCS8 = Worker_Binding_CryptoKey_Which.PKCS8; Worker_Binding_CryptoKey.SPKI = Worker_Binding_CryptoKey_Which.SPKI; Worker_Binding_CryptoKey.JWK = Worker_Binding_CryptoKey_Which.JWK; Worker_Binding_CryptoKey.Usage = Worker_Binding_CryptoKey_Usage; -Worker_Binding_CryptoKey._capnp = { - displayName: "CryptoKey", - id: "b5e1bff0e57d6eb0", - size: new capnp_ts_1.ObjectSize(8, 3), - defaultExtractable: capnp.getBitMask(false, 0), -}; +Worker_Binding_CryptoKey._capnp = { displayName: "CryptoKey", id: "b5e1bff0e57d6eb0", size: new capnp_ts_1.ObjectSize(8, 3), defaultExtractable: capnp.getBitMask(false, 0) }; class Worker_Binding_WrappedBinding extends capnp_ts_1.Struct { - getModuleName() { - return capnp_ts_1.Struct.getText(0, this); - } - setModuleName(value) { - capnp_ts_1.Struct.setText(0, value, this); - } - getEntrypoint() { - return capnp_ts_1.Struct.getText( - 1, - this, - Worker_Binding_WrappedBinding._capnp.defaultEntrypoint - ); - } - setEntrypoint(value) { - capnp_ts_1.Struct.setText(1, value, this); - } - adoptInnerBindings(value) { - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(2, this)); - } - disownInnerBindings() { - return capnp_ts_1.Struct.disown(this.getInnerBindings()); - } - getInnerBindings() { - return capnp_ts_1.Struct.getList( - 2, - Worker_Binding_WrappedBinding._InnerBindings, - this - ); - } - hasInnerBindings() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(2, this)); - } - initInnerBindings(length) { - return capnp_ts_1.Struct.initList( - 2, - Worker_Binding_WrappedBinding._InnerBindings, - length, - this - ); - } - setInnerBindings(value) { - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(2, this)); - } - toString() { - return "Worker_Binding_WrappedBinding_" + super.toString(); - } + getModuleName() { return capnp_ts_1.Struct.getText(0, this); } + setModuleName(value) { capnp_ts_1.Struct.setText(0, value, this); } + getEntrypoint() { return capnp_ts_1.Struct.getText(1, this, Worker_Binding_WrappedBinding._capnp.defaultEntrypoint); } + setEntrypoint(value) { capnp_ts_1.Struct.setText(1, value, this); } + adoptInnerBindings(value) { capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(2, this)); } + disownInnerBindings() { return capnp_ts_1.Struct.disown(this.getInnerBindings()); } + getInnerBindings() { return capnp_ts_1.Struct.getList(2, Worker_Binding_WrappedBinding._InnerBindings, this); } + hasInnerBindings() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(2, this)); } + initInnerBindings(length) { return capnp_ts_1.Struct.initList(2, Worker_Binding_WrappedBinding._InnerBindings, length, this); } + setInnerBindings(value) { capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(2, this)); } + toString() { return "Worker_Binding_WrappedBinding_" + super.toString(); } } exports.Worker_Binding_WrappedBinding = Worker_Binding_WrappedBinding; -Worker_Binding_WrappedBinding._capnp = { - displayName: "WrappedBinding", - id: "e6f066b75f0ea113", - size: new capnp_ts_1.ObjectSize(0, 3), - defaultEntrypoint: "default", -}; +Worker_Binding_WrappedBinding._capnp = { displayName: "WrappedBinding", id: "e6f066b75f0ea113", size: new capnp_ts_1.ObjectSize(0, 3), defaultEntrypoint: "default" }; class Worker_Binding_Parameter extends capnp_ts_1.Struct { - adoptType(value) { - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); - } - disownType() { - return capnp_ts_1.Struct.disown(this.getType()); - } - getType() { - return capnp_ts_1.Struct.getStruct(1, Worker_Binding_Type, this); - } - hasType() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); - } - initType() { - return capnp_ts_1.Struct.initStructAt(1, Worker_Binding_Type, this); - } - setType(value) { - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); - } - getOptional() { - return capnp_ts_1.Struct.getBit(16, this); - } - setOptional(value) { - capnp_ts_1.Struct.setBit(16, value, this); - } - toString() { - return "Worker_Binding_Parameter_" + super.toString(); - } + adoptType(value) { capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); } + disownType() { return capnp_ts_1.Struct.disown(this.getType()); } + getType() { return capnp_ts_1.Struct.getStruct(1, Worker_Binding_Type, this); } + hasType() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); } + initType() { return capnp_ts_1.Struct.initStructAt(1, Worker_Binding_Type, this); } + setType(value) { capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); } + getOptional() { return capnp_ts_1.Struct.getBit(16, this); } + setOptional(value) { capnp_ts_1.Struct.setBit(16, value, this); } + toString() { return "Worker_Binding_Parameter_" + super.toString(); } } exports.Worker_Binding_Parameter = Worker_Binding_Parameter; -Worker_Binding_Parameter._capnp = { - displayName: "parameter", - id: "dc57e1258d26d152", - size: new capnp_ts_1.ObjectSize(8, 6), -}; +Worker_Binding_Parameter._capnp = { displayName: "parameter", id: "dc57e1258d26d152", size: new capnp_ts_1.ObjectSize(8, 6) }; class Worker_Binding_Hyperdrive extends capnp_ts_1.Struct { - adoptDesignator(value) { - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); - } - disownDesignator() { - return capnp_ts_1.Struct.disown(this.getDesignator()); - } - getDesignator() { - return capnp_ts_1.Struct.getStruct(1, ServiceDesignator, this); - } - hasDesignator() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); - } - initDesignator() { - return capnp_ts_1.Struct.initStructAt(1, ServiceDesignator, this); - } - setDesignator(value) { - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); - } - getDatabase() { - return capnp_ts_1.Struct.getText(2, this); - } - setDatabase(value) { - capnp_ts_1.Struct.setText(2, value, this); - } - getUser() { - return capnp_ts_1.Struct.getText(3, this); - } - setUser(value) { - capnp_ts_1.Struct.setText(3, value, this); - } - getPassword() { - return capnp_ts_1.Struct.getText(4, this); - } - setPassword(value) { - capnp_ts_1.Struct.setText(4, value, this); - } - getScheme() { - return capnp_ts_1.Struct.getText(5, this); - } - setScheme(value) { - capnp_ts_1.Struct.setText(5, value, this); - } - toString() { - return "Worker_Binding_Hyperdrive_" + super.toString(); - } + adoptDesignator(value) { capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); } + disownDesignator() { return capnp_ts_1.Struct.disown(this.getDesignator()); } + getDesignator() { return capnp_ts_1.Struct.getStruct(1, ServiceDesignator, this); } + hasDesignator() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); } + initDesignator() { return capnp_ts_1.Struct.initStructAt(1, ServiceDesignator, this); } + setDesignator(value) { capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); } + getDatabase() { return capnp_ts_1.Struct.getText(2, this); } + setDatabase(value) { capnp_ts_1.Struct.setText(2, value, this); } + getUser() { return capnp_ts_1.Struct.getText(3, this); } + setUser(value) { capnp_ts_1.Struct.setText(3, value, this); } + getPassword() { return capnp_ts_1.Struct.getText(4, this); } + setPassword(value) { capnp_ts_1.Struct.setText(4, value, this); } + getScheme() { return capnp_ts_1.Struct.getText(5, this); } + setScheme(value) { capnp_ts_1.Struct.setText(5, value, this); } + toString() { return "Worker_Binding_Hyperdrive_" + super.toString(); } } exports.Worker_Binding_Hyperdrive = Worker_Binding_Hyperdrive; -Worker_Binding_Hyperdrive._capnp = { - displayName: "hyperdrive", - id: "ad6c391cd55f3134", - size: new capnp_ts_1.ObjectSize(8, 6), -}; +Worker_Binding_Hyperdrive._capnp = { displayName: "hyperdrive", id: "ad6c391cd55f3134", size: new capnp_ts_1.ObjectSize(8, 6) }; var Worker_Binding_Which; (function (Worker_Binding_Which) { - Worker_Binding_Which[(Worker_Binding_Which["UNSPECIFIED"] = 0)] = - "UNSPECIFIED"; - Worker_Binding_Which[(Worker_Binding_Which["PARAMETER"] = 1)] = "PARAMETER"; - Worker_Binding_Which[(Worker_Binding_Which["TEXT"] = 2)] = "TEXT"; - Worker_Binding_Which[(Worker_Binding_Which["DATA"] = 3)] = "DATA"; - Worker_Binding_Which[(Worker_Binding_Which["JSON"] = 4)] = "JSON"; - Worker_Binding_Which[(Worker_Binding_Which["WASM_MODULE"] = 5)] = - "WASM_MODULE"; - Worker_Binding_Which[(Worker_Binding_Which["CRYPTO_KEY"] = 6)] = "CRYPTO_KEY"; - Worker_Binding_Which[(Worker_Binding_Which["SERVICE"] = 7)] = "SERVICE"; - Worker_Binding_Which[(Worker_Binding_Which["DURABLE_OBJECT_NAMESPACE"] = 8)] = - "DURABLE_OBJECT_NAMESPACE"; - Worker_Binding_Which[(Worker_Binding_Which["KV_NAMESPACE"] = 9)] = - "KV_NAMESPACE"; - Worker_Binding_Which[(Worker_Binding_Which["R2BUCKET"] = 10)] = "R2BUCKET"; - Worker_Binding_Which[(Worker_Binding_Which["R2ADMIN"] = 11)] = "R2ADMIN"; - Worker_Binding_Which[(Worker_Binding_Which["WRAPPED"] = 12)] = "WRAPPED"; - Worker_Binding_Which[(Worker_Binding_Which["QUEUE"] = 13)] = "QUEUE"; - Worker_Binding_Which[(Worker_Binding_Which["FROM_ENVIRONMENT"] = 14)] = - "FROM_ENVIRONMENT"; - Worker_Binding_Which[(Worker_Binding_Which["ANALYTICS_ENGINE"] = 15)] = - "ANALYTICS_ENGINE"; - Worker_Binding_Which[(Worker_Binding_Which["HYPERDRIVE"] = 16)] = - "HYPERDRIVE"; - Worker_Binding_Which[(Worker_Binding_Which["UNSAFE_EVAL"] = 17)] = - "UNSAFE_EVAL"; -})( - (Worker_Binding_Which = - exports.Worker_Binding_Which || (exports.Worker_Binding_Which = {})) -); + Worker_Binding_Which[Worker_Binding_Which["UNSPECIFIED"] = 0] = "UNSPECIFIED"; + Worker_Binding_Which[Worker_Binding_Which["PARAMETER"] = 1] = "PARAMETER"; + Worker_Binding_Which[Worker_Binding_Which["TEXT"] = 2] = "TEXT"; + Worker_Binding_Which[Worker_Binding_Which["DATA"] = 3] = "DATA"; + Worker_Binding_Which[Worker_Binding_Which["JSON"] = 4] = "JSON"; + Worker_Binding_Which[Worker_Binding_Which["WASM_MODULE"] = 5] = "WASM_MODULE"; + Worker_Binding_Which[Worker_Binding_Which["CRYPTO_KEY"] = 6] = "CRYPTO_KEY"; + Worker_Binding_Which[Worker_Binding_Which["SERVICE"] = 7] = "SERVICE"; + Worker_Binding_Which[Worker_Binding_Which["DURABLE_OBJECT_NAMESPACE"] = 8] = "DURABLE_OBJECT_NAMESPACE"; + Worker_Binding_Which[Worker_Binding_Which["KV_NAMESPACE"] = 9] = "KV_NAMESPACE"; + Worker_Binding_Which[Worker_Binding_Which["R2BUCKET"] = 10] = "R2BUCKET"; + Worker_Binding_Which[Worker_Binding_Which["R2ADMIN"] = 11] = "R2ADMIN"; + Worker_Binding_Which[Worker_Binding_Which["WRAPPED"] = 12] = "WRAPPED"; + Worker_Binding_Which[Worker_Binding_Which["QUEUE"] = 13] = "QUEUE"; + Worker_Binding_Which[Worker_Binding_Which["FROM_ENVIRONMENT"] = 14] = "FROM_ENVIRONMENT"; + Worker_Binding_Which[Worker_Binding_Which["ANALYTICS_ENGINE"] = 15] = "ANALYTICS_ENGINE"; + Worker_Binding_Which[Worker_Binding_Which["HYPERDRIVE"] = 16] = "HYPERDRIVE"; + Worker_Binding_Which[Worker_Binding_Which["UNSAFE_EVAL"] = 17] = "UNSAFE_EVAL"; +})(Worker_Binding_Which = exports.Worker_Binding_Which || (exports.Worker_Binding_Which = {})); class Worker_Binding extends capnp_ts_1.Struct { - getName() { - return capnp_ts_1.Struct.getText(0, this); - } - setName(value) { - capnp_ts_1.Struct.setText(0, value, this); - } - isUnspecified() { - return capnp_ts_1.Struct.getUint16(0, this) === 0; - } - setUnspecified() { - capnp_ts_1.Struct.setUint16(0, 0, this); - } - getParameter() { - capnp_ts_1.Struct.testWhich( - "parameter", - capnp_ts_1.Struct.getUint16(0, this), - 1, - this - ); - return capnp_ts_1.Struct.getAs(Worker_Binding_Parameter, this); - } - initParameter() { - capnp_ts_1.Struct.setUint16(0, 1, this); - return capnp_ts_1.Struct.getAs(Worker_Binding_Parameter, this); - } - isParameter() { - return capnp_ts_1.Struct.getUint16(0, this) === 1; - } - setParameter() { - capnp_ts_1.Struct.setUint16(0, 1, this); - } - getText() { - capnp_ts_1.Struct.testWhich( - "text", - capnp_ts_1.Struct.getUint16(0, this), - 2, - this - ); - return capnp_ts_1.Struct.getText(1, this); - } - isText() { - return capnp_ts_1.Struct.getUint16(0, this) === 2; - } - setText(value) { - capnp_ts_1.Struct.setUint16(0, 2, this); - capnp_ts_1.Struct.setText(1, value, this); - } - adoptData(value) { - capnp_ts_1.Struct.setUint16(0, 3, this); - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); - } - disownData() { - return capnp_ts_1.Struct.disown(this.getData()); - } - getData() { - capnp_ts_1.Struct.testWhich( - "data", - capnp_ts_1.Struct.getUint16(0, this), - 3, - this - ); - return capnp_ts_1.Struct.getData(1, this); - } - hasData() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); - } - initData(length) { - capnp_ts_1.Struct.setUint16(0, 3, this); - return capnp_ts_1.Struct.initData(1, length, this); - } - isData() { - return capnp_ts_1.Struct.getUint16(0, this) === 3; - } - setData(value) { - capnp_ts_1.Struct.setUint16(0, 3, this); - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); - } - getJson() { - capnp_ts_1.Struct.testWhich( - "json", - capnp_ts_1.Struct.getUint16(0, this), - 4, - this - ); - return capnp_ts_1.Struct.getText(1, this); - } - isJson() { - return capnp_ts_1.Struct.getUint16(0, this) === 4; - } - setJson(value) { - capnp_ts_1.Struct.setUint16(0, 4, this); - capnp_ts_1.Struct.setText(1, value, this); - } - adoptWasmModule(value) { - capnp_ts_1.Struct.setUint16(0, 5, this); - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); - } - disownWasmModule() { - return capnp_ts_1.Struct.disown(this.getWasmModule()); - } - getWasmModule() { - capnp_ts_1.Struct.testWhich( - "wasmModule", - capnp_ts_1.Struct.getUint16(0, this), - 5, - this - ); - return capnp_ts_1.Struct.getData(1, this); - } - hasWasmModule() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); - } - initWasmModule(length) { - capnp_ts_1.Struct.setUint16(0, 5, this); - return capnp_ts_1.Struct.initData(1, length, this); - } - isWasmModule() { - return capnp_ts_1.Struct.getUint16(0, this) === 5; - } - setWasmModule(value) { - capnp_ts_1.Struct.setUint16(0, 5, this); - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); - } - adoptCryptoKey(value) { - capnp_ts_1.Struct.setUint16(0, 6, this); - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); - } - disownCryptoKey() { - return capnp_ts_1.Struct.disown(this.getCryptoKey()); - } - getCryptoKey() { - capnp_ts_1.Struct.testWhich( - "cryptoKey", - capnp_ts_1.Struct.getUint16(0, this), - 6, - this - ); - return capnp_ts_1.Struct.getStruct(1, Worker_Binding_CryptoKey, this); - } - hasCryptoKey() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); - } - initCryptoKey() { - capnp_ts_1.Struct.setUint16(0, 6, this); - return capnp_ts_1.Struct.initStructAt(1, Worker_Binding_CryptoKey, this); - } - isCryptoKey() { - return capnp_ts_1.Struct.getUint16(0, this) === 6; - } - setCryptoKey(value) { - capnp_ts_1.Struct.setUint16(0, 6, this); - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); - } - adoptService(value) { - capnp_ts_1.Struct.setUint16(0, 7, this); - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); - } - disownService() { - return capnp_ts_1.Struct.disown(this.getService()); - } - getService() { - capnp_ts_1.Struct.testWhich( - "service", - capnp_ts_1.Struct.getUint16(0, this), - 7, - this - ); - return capnp_ts_1.Struct.getStruct(1, ServiceDesignator, this); - } - hasService() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); - } - initService() { - capnp_ts_1.Struct.setUint16(0, 7, this); - return capnp_ts_1.Struct.initStructAt(1, ServiceDesignator, this); - } - isService() { - return capnp_ts_1.Struct.getUint16(0, this) === 7; - } - setService(value) { - capnp_ts_1.Struct.setUint16(0, 7, this); - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); - } - adoptDurableObjectNamespace(value) { - capnp_ts_1.Struct.setUint16(0, 8, this); - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); - } - disownDurableObjectNamespace() { - return capnp_ts_1.Struct.disown(this.getDurableObjectNamespace()); - } - getDurableObjectNamespace() { - capnp_ts_1.Struct.testWhich( - "durableObjectNamespace", - capnp_ts_1.Struct.getUint16(0, this), - 8, - this - ); - return capnp_ts_1.Struct.getStruct( - 1, - Worker_Binding_DurableObjectNamespaceDesignator, - this - ); - } - hasDurableObjectNamespace() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); - } - initDurableObjectNamespace() { - capnp_ts_1.Struct.setUint16(0, 8, this); - return capnp_ts_1.Struct.initStructAt( - 1, - Worker_Binding_DurableObjectNamespaceDesignator, - this - ); - } - isDurableObjectNamespace() { - return capnp_ts_1.Struct.getUint16(0, this) === 8; - } - setDurableObjectNamespace(value) { - capnp_ts_1.Struct.setUint16(0, 8, this); - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); - } - adoptKvNamespace(value) { - capnp_ts_1.Struct.setUint16(0, 9, this); - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); - } - disownKvNamespace() { - return capnp_ts_1.Struct.disown(this.getKvNamespace()); - } - getKvNamespace() { - capnp_ts_1.Struct.testWhich( - "kvNamespace", - capnp_ts_1.Struct.getUint16(0, this), - 9, - this - ); - return capnp_ts_1.Struct.getStruct(1, ServiceDesignator, this); - } - hasKvNamespace() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); - } - initKvNamespace() { - capnp_ts_1.Struct.setUint16(0, 9, this); - return capnp_ts_1.Struct.initStructAt(1, ServiceDesignator, this); - } - isKvNamespace() { - return capnp_ts_1.Struct.getUint16(0, this) === 9; - } - setKvNamespace(value) { - capnp_ts_1.Struct.setUint16(0, 9, this); - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); - } - adoptR2Bucket(value) { - capnp_ts_1.Struct.setUint16(0, 10, this); - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); - } - disownR2Bucket() { - return capnp_ts_1.Struct.disown(this.getR2Bucket()); - } - getR2Bucket() { - capnp_ts_1.Struct.testWhich( - "r2Bucket", - capnp_ts_1.Struct.getUint16(0, this), - 10, - this - ); - return capnp_ts_1.Struct.getStruct(1, ServiceDesignator, this); - } - hasR2Bucket() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); - } - initR2Bucket() { - capnp_ts_1.Struct.setUint16(0, 10, this); - return capnp_ts_1.Struct.initStructAt(1, ServiceDesignator, this); - } - isR2Bucket() { - return capnp_ts_1.Struct.getUint16(0, this) === 10; - } - setR2Bucket(value) { - capnp_ts_1.Struct.setUint16(0, 10, this); - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); - } - adoptR2Admin(value) { - capnp_ts_1.Struct.setUint16(0, 11, this); - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); - } - disownR2Admin() { - return capnp_ts_1.Struct.disown(this.getR2Admin()); - } - getR2Admin() { - capnp_ts_1.Struct.testWhich( - "r2Admin", - capnp_ts_1.Struct.getUint16(0, this), - 11, - this - ); - return capnp_ts_1.Struct.getStruct(1, ServiceDesignator, this); - } - hasR2Admin() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); - } - initR2Admin() { - capnp_ts_1.Struct.setUint16(0, 11, this); - return capnp_ts_1.Struct.initStructAt(1, ServiceDesignator, this); - } - isR2Admin() { - return capnp_ts_1.Struct.getUint16(0, this) === 11; - } - setR2Admin(value) { - capnp_ts_1.Struct.setUint16(0, 11, this); - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); - } - adoptWrapped(value) { - capnp_ts_1.Struct.setUint16(0, 12, this); - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); - } - disownWrapped() { - return capnp_ts_1.Struct.disown(this.getWrapped()); - } - getWrapped() { - capnp_ts_1.Struct.testWhich( - "wrapped", - capnp_ts_1.Struct.getUint16(0, this), - 12, - this - ); - return capnp_ts_1.Struct.getStruct(1, Worker_Binding_WrappedBinding, this); - } - hasWrapped() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); - } - initWrapped() { - capnp_ts_1.Struct.setUint16(0, 12, this); - return capnp_ts_1.Struct.initStructAt( - 1, - Worker_Binding_WrappedBinding, - this - ); - } - isWrapped() { - return capnp_ts_1.Struct.getUint16(0, this) === 12; - } - setWrapped(value) { - capnp_ts_1.Struct.setUint16(0, 12, this); - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); - } - adoptQueue(value) { - capnp_ts_1.Struct.setUint16(0, 13, this); - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); - } - disownQueue() { - return capnp_ts_1.Struct.disown(this.getQueue()); - } - getQueue() { - capnp_ts_1.Struct.testWhich( - "queue", - capnp_ts_1.Struct.getUint16(0, this), - 13, - this - ); - return capnp_ts_1.Struct.getStruct(1, ServiceDesignator, this); - } - hasQueue() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); - } - initQueue() { - capnp_ts_1.Struct.setUint16(0, 13, this); - return capnp_ts_1.Struct.initStructAt(1, ServiceDesignator, this); - } - isQueue() { - return capnp_ts_1.Struct.getUint16(0, this) === 13; - } - setQueue(value) { - capnp_ts_1.Struct.setUint16(0, 13, this); - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); - } - getFromEnvironment() { - capnp_ts_1.Struct.testWhich( - "fromEnvironment", - capnp_ts_1.Struct.getUint16(0, this), - 14, - this - ); - return capnp_ts_1.Struct.getText(1, this); - } - isFromEnvironment() { - return capnp_ts_1.Struct.getUint16(0, this) === 14; - } - setFromEnvironment(value) { - capnp_ts_1.Struct.setUint16(0, 14, this); - capnp_ts_1.Struct.setText(1, value, this); - } - adoptAnalyticsEngine(value) { - capnp_ts_1.Struct.setUint16(0, 15, this); - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); - } - disownAnalyticsEngine() { - return capnp_ts_1.Struct.disown(this.getAnalyticsEngine()); - } - getAnalyticsEngine() { - capnp_ts_1.Struct.testWhich( - "analyticsEngine", - capnp_ts_1.Struct.getUint16(0, this), - 15, - this - ); - return capnp_ts_1.Struct.getStruct(1, ServiceDesignator, this); - } - hasAnalyticsEngine() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); - } - initAnalyticsEngine() { - capnp_ts_1.Struct.setUint16(0, 15, this); - return capnp_ts_1.Struct.initStructAt(1, ServiceDesignator, this); - } - isAnalyticsEngine() { - return capnp_ts_1.Struct.getUint16(0, this) === 15; - } - setAnalyticsEngine(value) { - capnp_ts_1.Struct.setUint16(0, 15, this); - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); - } - getHyperdrive() { - capnp_ts_1.Struct.testWhich( - "hyperdrive", - capnp_ts_1.Struct.getUint16(0, this), - 16, - this - ); - return capnp_ts_1.Struct.getAs(Worker_Binding_Hyperdrive, this); - } - initHyperdrive() { - capnp_ts_1.Struct.setUint16(0, 16, this); - return capnp_ts_1.Struct.getAs(Worker_Binding_Hyperdrive, this); - } - isHyperdrive() { - return capnp_ts_1.Struct.getUint16(0, this) === 16; - } - setHyperdrive() { - capnp_ts_1.Struct.setUint16(0, 16, this); - } - isUnsafeEval() { - return capnp_ts_1.Struct.getUint16(0, this) === 17; - } - setUnsafeEval() { - capnp_ts_1.Struct.setUint16(0, 17, this); - } - toString() { - return "Worker_Binding_" + super.toString(); - } - which() { - return capnp_ts_1.Struct.getUint16(0, this); - } + getName() { return capnp_ts_1.Struct.getText(0, this); } + setName(value) { capnp_ts_1.Struct.setText(0, value, this); } + isUnspecified() { return capnp_ts_1.Struct.getUint16(0, this) === 0; } + setUnspecified() { capnp_ts_1.Struct.setUint16(0, 0, this); } + getParameter() { + capnp_ts_1.Struct.testWhich("parameter", capnp_ts_1.Struct.getUint16(0, this), 1, this); + return capnp_ts_1.Struct.getAs(Worker_Binding_Parameter, this); + } + initParameter() { + capnp_ts_1.Struct.setUint16(0, 1, this); + return capnp_ts_1.Struct.getAs(Worker_Binding_Parameter, this); + } + isParameter() { return capnp_ts_1.Struct.getUint16(0, this) === 1; } + setParameter() { capnp_ts_1.Struct.setUint16(0, 1, this); } + getText() { + capnp_ts_1.Struct.testWhich("text", capnp_ts_1.Struct.getUint16(0, this), 2, this); + return capnp_ts_1.Struct.getText(1, this); + } + isText() { return capnp_ts_1.Struct.getUint16(0, this) === 2; } + setText(value) { + capnp_ts_1.Struct.setUint16(0, 2, this); + capnp_ts_1.Struct.setText(1, value, this); + } + adoptData(value) { + capnp_ts_1.Struct.setUint16(0, 3, this); + capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); + } + disownData() { return capnp_ts_1.Struct.disown(this.getData()); } + getData() { + capnp_ts_1.Struct.testWhich("data", capnp_ts_1.Struct.getUint16(0, this), 3, this); + return capnp_ts_1.Struct.getData(1, this); + } + hasData() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); } + initData(length) { + capnp_ts_1.Struct.setUint16(0, 3, this); + return capnp_ts_1.Struct.initData(1, length, this); + } + isData() { return capnp_ts_1.Struct.getUint16(0, this) === 3; } + setData(value) { + capnp_ts_1.Struct.setUint16(0, 3, this); + capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); + } + getJson() { + capnp_ts_1.Struct.testWhich("json", capnp_ts_1.Struct.getUint16(0, this), 4, this); + return capnp_ts_1.Struct.getText(1, this); + } + isJson() { return capnp_ts_1.Struct.getUint16(0, this) === 4; } + setJson(value) { + capnp_ts_1.Struct.setUint16(0, 4, this); + capnp_ts_1.Struct.setText(1, value, this); + } + adoptWasmModule(value) { + capnp_ts_1.Struct.setUint16(0, 5, this); + capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); + } + disownWasmModule() { return capnp_ts_1.Struct.disown(this.getWasmModule()); } + getWasmModule() { + capnp_ts_1.Struct.testWhich("wasmModule", capnp_ts_1.Struct.getUint16(0, this), 5, this); + return capnp_ts_1.Struct.getData(1, this); + } + hasWasmModule() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); } + initWasmModule(length) { + capnp_ts_1.Struct.setUint16(0, 5, this); + return capnp_ts_1.Struct.initData(1, length, this); + } + isWasmModule() { return capnp_ts_1.Struct.getUint16(0, this) === 5; } + setWasmModule(value) { + capnp_ts_1.Struct.setUint16(0, 5, this); + capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); + } + adoptCryptoKey(value) { + capnp_ts_1.Struct.setUint16(0, 6, this); + capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); + } + disownCryptoKey() { return capnp_ts_1.Struct.disown(this.getCryptoKey()); } + getCryptoKey() { + capnp_ts_1.Struct.testWhich("cryptoKey", capnp_ts_1.Struct.getUint16(0, this), 6, this); + return capnp_ts_1.Struct.getStruct(1, Worker_Binding_CryptoKey, this); + } + hasCryptoKey() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); } + initCryptoKey() { + capnp_ts_1.Struct.setUint16(0, 6, this); + return capnp_ts_1.Struct.initStructAt(1, Worker_Binding_CryptoKey, this); + } + isCryptoKey() { return capnp_ts_1.Struct.getUint16(0, this) === 6; } + setCryptoKey(value) { + capnp_ts_1.Struct.setUint16(0, 6, this); + capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); + } + adoptService(value) { + capnp_ts_1.Struct.setUint16(0, 7, this); + capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); + } + disownService() { return capnp_ts_1.Struct.disown(this.getService()); } + getService() { + capnp_ts_1.Struct.testWhich("service", capnp_ts_1.Struct.getUint16(0, this), 7, this); + return capnp_ts_1.Struct.getStruct(1, ServiceDesignator, this); + } + hasService() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); } + initService() { + capnp_ts_1.Struct.setUint16(0, 7, this); + return capnp_ts_1.Struct.initStructAt(1, ServiceDesignator, this); + } + isService() { return capnp_ts_1.Struct.getUint16(0, this) === 7; } + setService(value) { + capnp_ts_1.Struct.setUint16(0, 7, this); + capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); + } + adoptDurableObjectNamespace(value) { + capnp_ts_1.Struct.setUint16(0, 8, this); + capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); + } + disownDurableObjectNamespace() { return capnp_ts_1.Struct.disown(this.getDurableObjectNamespace()); } + getDurableObjectNamespace() { + capnp_ts_1.Struct.testWhich("durableObjectNamespace", capnp_ts_1.Struct.getUint16(0, this), 8, this); + return capnp_ts_1.Struct.getStruct(1, Worker_Binding_DurableObjectNamespaceDesignator, this); + } + hasDurableObjectNamespace() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); } + initDurableObjectNamespace() { + capnp_ts_1.Struct.setUint16(0, 8, this); + return capnp_ts_1.Struct.initStructAt(1, Worker_Binding_DurableObjectNamespaceDesignator, this); + } + isDurableObjectNamespace() { return capnp_ts_1.Struct.getUint16(0, this) === 8; } + setDurableObjectNamespace(value) { + capnp_ts_1.Struct.setUint16(0, 8, this); + capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); + } + adoptKvNamespace(value) { + capnp_ts_1.Struct.setUint16(0, 9, this); + capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); + } + disownKvNamespace() { return capnp_ts_1.Struct.disown(this.getKvNamespace()); } + getKvNamespace() { + capnp_ts_1.Struct.testWhich("kvNamespace", capnp_ts_1.Struct.getUint16(0, this), 9, this); + return capnp_ts_1.Struct.getStruct(1, ServiceDesignator, this); + } + hasKvNamespace() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); } + initKvNamespace() { + capnp_ts_1.Struct.setUint16(0, 9, this); + return capnp_ts_1.Struct.initStructAt(1, ServiceDesignator, this); + } + isKvNamespace() { return capnp_ts_1.Struct.getUint16(0, this) === 9; } + setKvNamespace(value) { + capnp_ts_1.Struct.setUint16(0, 9, this); + capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); + } + adoptR2Bucket(value) { + capnp_ts_1.Struct.setUint16(0, 10, this); + capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); + } + disownR2Bucket() { return capnp_ts_1.Struct.disown(this.getR2Bucket()); } + getR2Bucket() { + capnp_ts_1.Struct.testWhich("r2Bucket", capnp_ts_1.Struct.getUint16(0, this), 10, this); + return capnp_ts_1.Struct.getStruct(1, ServiceDesignator, this); + } + hasR2Bucket() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); } + initR2Bucket() { + capnp_ts_1.Struct.setUint16(0, 10, this); + return capnp_ts_1.Struct.initStructAt(1, ServiceDesignator, this); + } + isR2Bucket() { return capnp_ts_1.Struct.getUint16(0, this) === 10; } + setR2Bucket(value) { + capnp_ts_1.Struct.setUint16(0, 10, this); + capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); + } + adoptR2Admin(value) { + capnp_ts_1.Struct.setUint16(0, 11, this); + capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); + } + disownR2Admin() { return capnp_ts_1.Struct.disown(this.getR2Admin()); } + getR2Admin() { + capnp_ts_1.Struct.testWhich("r2Admin", capnp_ts_1.Struct.getUint16(0, this), 11, this); + return capnp_ts_1.Struct.getStruct(1, ServiceDesignator, this); + } + hasR2Admin() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); } + initR2Admin() { + capnp_ts_1.Struct.setUint16(0, 11, this); + return capnp_ts_1.Struct.initStructAt(1, ServiceDesignator, this); + } + isR2Admin() { return capnp_ts_1.Struct.getUint16(0, this) === 11; } + setR2Admin(value) { + capnp_ts_1.Struct.setUint16(0, 11, this); + capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); + } + adoptWrapped(value) { + capnp_ts_1.Struct.setUint16(0, 12, this); + capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); + } + disownWrapped() { return capnp_ts_1.Struct.disown(this.getWrapped()); } + getWrapped() { + capnp_ts_1.Struct.testWhich("wrapped", capnp_ts_1.Struct.getUint16(0, this), 12, this); + return capnp_ts_1.Struct.getStruct(1, Worker_Binding_WrappedBinding, this); + } + hasWrapped() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); } + initWrapped() { + capnp_ts_1.Struct.setUint16(0, 12, this); + return capnp_ts_1.Struct.initStructAt(1, Worker_Binding_WrappedBinding, this); + } + isWrapped() { return capnp_ts_1.Struct.getUint16(0, this) === 12; } + setWrapped(value) { + capnp_ts_1.Struct.setUint16(0, 12, this); + capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); + } + adoptQueue(value) { + capnp_ts_1.Struct.setUint16(0, 13, this); + capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); + } + disownQueue() { return capnp_ts_1.Struct.disown(this.getQueue()); } + getQueue() { + capnp_ts_1.Struct.testWhich("queue", capnp_ts_1.Struct.getUint16(0, this), 13, this); + return capnp_ts_1.Struct.getStruct(1, ServiceDesignator, this); + } + hasQueue() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); } + initQueue() { + capnp_ts_1.Struct.setUint16(0, 13, this); + return capnp_ts_1.Struct.initStructAt(1, ServiceDesignator, this); + } + isQueue() { return capnp_ts_1.Struct.getUint16(0, this) === 13; } + setQueue(value) { + capnp_ts_1.Struct.setUint16(0, 13, this); + capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); + } + getFromEnvironment() { + capnp_ts_1.Struct.testWhich("fromEnvironment", capnp_ts_1.Struct.getUint16(0, this), 14, this); + return capnp_ts_1.Struct.getText(1, this); + } + isFromEnvironment() { return capnp_ts_1.Struct.getUint16(0, this) === 14; } + setFromEnvironment(value) { + capnp_ts_1.Struct.setUint16(0, 14, this); + capnp_ts_1.Struct.setText(1, value, this); + } + adoptAnalyticsEngine(value) { + capnp_ts_1.Struct.setUint16(0, 15, this); + capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); + } + disownAnalyticsEngine() { return capnp_ts_1.Struct.disown(this.getAnalyticsEngine()); } + getAnalyticsEngine() { + capnp_ts_1.Struct.testWhich("analyticsEngine", capnp_ts_1.Struct.getUint16(0, this), 15, this); + return capnp_ts_1.Struct.getStruct(1, ServiceDesignator, this); + } + hasAnalyticsEngine() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); } + initAnalyticsEngine() { + capnp_ts_1.Struct.setUint16(0, 15, this); + return capnp_ts_1.Struct.initStructAt(1, ServiceDesignator, this); + } + isAnalyticsEngine() { return capnp_ts_1.Struct.getUint16(0, this) === 15; } + setAnalyticsEngine(value) { + capnp_ts_1.Struct.setUint16(0, 15, this); + capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); + } + getHyperdrive() { + capnp_ts_1.Struct.testWhich("hyperdrive", capnp_ts_1.Struct.getUint16(0, this), 16, this); + return capnp_ts_1.Struct.getAs(Worker_Binding_Hyperdrive, this); + } + initHyperdrive() { + capnp_ts_1.Struct.setUint16(0, 16, this); + return capnp_ts_1.Struct.getAs(Worker_Binding_Hyperdrive, this); + } + isHyperdrive() { return capnp_ts_1.Struct.getUint16(0, this) === 16; } + setHyperdrive() { capnp_ts_1.Struct.setUint16(0, 16, this); } + isUnsafeEval() { return capnp_ts_1.Struct.getUint16(0, this) === 17; } + setUnsafeEval() { capnp_ts_1.Struct.setUint16(0, 17, this); } + toString() { return "Worker_Binding_" + super.toString(); } + which() { return capnp_ts_1.Struct.getUint16(0, this); } } exports.Worker_Binding = Worker_Binding; Worker_Binding.UNSPECIFIED = Worker_Binding_Which.UNSPECIFIED; @@ -1760,8 +922,7 @@ Worker_Binding.JSON = Worker_Binding_Which.JSON; Worker_Binding.WASM_MODULE = Worker_Binding_Which.WASM_MODULE; Worker_Binding.CRYPTO_KEY = Worker_Binding_Which.CRYPTO_KEY; Worker_Binding.SERVICE = Worker_Binding_Which.SERVICE; -Worker_Binding.DURABLE_OBJECT_NAMESPACE = - Worker_Binding_Which.DURABLE_OBJECT_NAMESPACE; +Worker_Binding.DURABLE_OBJECT_NAMESPACE = Worker_Binding_Which.DURABLE_OBJECT_NAMESPACE; Worker_Binding.KV_NAMESPACE = Worker_Binding_Which.KV_NAMESPACE; Worker_Binding.R2BUCKET = Worker_Binding_Which.R2BUCKET; Worker_Binding.R2ADMIN = Worker_Binding_Which.R2ADMIN; @@ -1772,337 +933,150 @@ Worker_Binding.ANALYTICS_ENGINE = Worker_Binding_Which.ANALYTICS_ENGINE; Worker_Binding.HYPERDRIVE = Worker_Binding_Which.HYPERDRIVE; Worker_Binding.UNSAFE_EVAL = Worker_Binding_Which.UNSAFE_EVAL; Worker_Binding.Type = Worker_Binding_Type; -Worker_Binding.DurableObjectNamespaceDesignator = - Worker_Binding_DurableObjectNamespaceDesignator; +Worker_Binding.DurableObjectNamespaceDesignator = Worker_Binding_DurableObjectNamespaceDesignator; Worker_Binding.CryptoKey = Worker_Binding_CryptoKey; Worker_Binding.WrappedBinding = Worker_Binding_WrappedBinding; -Worker_Binding._capnp = { - displayName: "Binding", - id: "8e7e492fd7e35f3e", - size: new capnp_ts_1.ObjectSize(8, 6), -}; +Worker_Binding._capnp = { displayName: "Binding", id: "8e7e492fd7e35f3e", size: new capnp_ts_1.ObjectSize(8, 6) }; var Worker_DurableObjectNamespace_Which; (function (Worker_DurableObjectNamespace_Which) { - Worker_DurableObjectNamespace_Which[ - (Worker_DurableObjectNamespace_Which["UNIQUE_KEY"] = 0) - ] = "UNIQUE_KEY"; - Worker_DurableObjectNamespace_Which[ - (Worker_DurableObjectNamespace_Which["EPHEMERAL_LOCAL"] = 1) - ] = "EPHEMERAL_LOCAL"; -})( - (Worker_DurableObjectNamespace_Which = - exports.Worker_DurableObjectNamespace_Which || - (exports.Worker_DurableObjectNamespace_Which = {})) -); + Worker_DurableObjectNamespace_Which[Worker_DurableObjectNamespace_Which["UNIQUE_KEY"] = 0] = "UNIQUE_KEY"; + Worker_DurableObjectNamespace_Which[Worker_DurableObjectNamespace_Which["EPHEMERAL_LOCAL"] = 1] = "EPHEMERAL_LOCAL"; +})(Worker_DurableObjectNamespace_Which = exports.Worker_DurableObjectNamespace_Which || (exports.Worker_DurableObjectNamespace_Which = {})); class Worker_DurableObjectNamespace extends capnp_ts_1.Struct { - getClassName() { - return capnp_ts_1.Struct.getText(0, this); - } - setClassName(value) { - capnp_ts_1.Struct.setText(0, value, this); - } - getUniqueKey() { - capnp_ts_1.Struct.testWhich( - "uniqueKey", - capnp_ts_1.Struct.getUint16(0, this), - 0, - this - ); - return capnp_ts_1.Struct.getText(1, this); - } - isUniqueKey() { - return capnp_ts_1.Struct.getUint16(0, this) === 0; - } - setUniqueKey(value) { - capnp_ts_1.Struct.setUint16(0, 0, this); - capnp_ts_1.Struct.setText(1, value, this); - } - isEphemeralLocal() { - return capnp_ts_1.Struct.getUint16(0, this) === 1; - } - setEphemeralLocal() { - capnp_ts_1.Struct.setUint16(0, 1, this); - } - getPreventEviction() { - return capnp_ts_1.Struct.getBit(16, this); - } - setPreventEviction(value) { - capnp_ts_1.Struct.setBit(16, value, this); - } - toString() { - return "Worker_DurableObjectNamespace_" + super.toString(); - } - which() { - return capnp_ts_1.Struct.getUint16(0, this); - } + getClassName() { return capnp_ts_1.Struct.getText(0, this); } + setClassName(value) { capnp_ts_1.Struct.setText(0, value, this); } + getUniqueKey() { + capnp_ts_1.Struct.testWhich("uniqueKey", capnp_ts_1.Struct.getUint16(0, this), 0, this); + return capnp_ts_1.Struct.getText(1, this); + } + isUniqueKey() { return capnp_ts_1.Struct.getUint16(0, this) === 0; } + setUniqueKey(value) { + capnp_ts_1.Struct.setUint16(0, 0, this); + capnp_ts_1.Struct.setText(1, value, this); + } + isEphemeralLocal() { return capnp_ts_1.Struct.getUint16(0, this) === 1; } + setEphemeralLocal() { capnp_ts_1.Struct.setUint16(0, 1, this); } + getPreventEviction() { return capnp_ts_1.Struct.getBit(16, this); } + setPreventEviction(value) { capnp_ts_1.Struct.setBit(16, value, this); } + toString() { return "Worker_DurableObjectNamespace_" + super.toString(); } + which() { return capnp_ts_1.Struct.getUint16(0, this); } } exports.Worker_DurableObjectNamespace = Worker_DurableObjectNamespace; -Worker_DurableObjectNamespace.UNIQUE_KEY = - Worker_DurableObjectNamespace_Which.UNIQUE_KEY; -Worker_DurableObjectNamespace.EPHEMERAL_LOCAL = - Worker_DurableObjectNamespace_Which.EPHEMERAL_LOCAL; -Worker_DurableObjectNamespace._capnp = { - displayName: "DurableObjectNamespace", - id: "b429dd547d15747d", - size: new capnp_ts_1.ObjectSize(8, 2), -}; +Worker_DurableObjectNamespace.UNIQUE_KEY = Worker_DurableObjectNamespace_Which.UNIQUE_KEY; +Worker_DurableObjectNamespace.EPHEMERAL_LOCAL = Worker_DurableObjectNamespace_Which.EPHEMERAL_LOCAL; +Worker_DurableObjectNamespace._capnp = { displayName: "DurableObjectNamespace", id: "b429dd547d15747d", size: new capnp_ts_1.ObjectSize(8, 2) }; var Worker_DurableObjectStorage_Which; (function (Worker_DurableObjectStorage_Which) { - Worker_DurableObjectStorage_Which[ - (Worker_DurableObjectStorage_Which["NONE"] = 0) - ] = "NONE"; - Worker_DurableObjectStorage_Which[ - (Worker_DurableObjectStorage_Which["IN_MEMORY"] = 1) - ] = "IN_MEMORY"; - Worker_DurableObjectStorage_Which[ - (Worker_DurableObjectStorage_Which["LOCAL_DISK"] = 2) - ] = "LOCAL_DISK"; -})( - (Worker_DurableObjectStorage_Which = - exports.Worker_DurableObjectStorage_Which || - (exports.Worker_DurableObjectStorage_Which = {})) -); + Worker_DurableObjectStorage_Which[Worker_DurableObjectStorage_Which["NONE"] = 0] = "NONE"; + Worker_DurableObjectStorage_Which[Worker_DurableObjectStorage_Which["IN_MEMORY"] = 1] = "IN_MEMORY"; + Worker_DurableObjectStorage_Which[Worker_DurableObjectStorage_Which["LOCAL_DISK"] = 2] = "LOCAL_DISK"; +})(Worker_DurableObjectStorage_Which = exports.Worker_DurableObjectStorage_Which || (exports.Worker_DurableObjectStorage_Which = {})); class Worker_DurableObjectStorage extends capnp_ts_1.Struct { - isNone() { - return capnp_ts_1.Struct.getUint16(2, this) === 0; - } - setNone() { - capnp_ts_1.Struct.setUint16(2, 0, this); - } - isInMemory() { - return capnp_ts_1.Struct.getUint16(2, this) === 1; - } - setInMemory() { - capnp_ts_1.Struct.setUint16(2, 1, this); - } - getLocalDisk() { - capnp_ts_1.Struct.testWhich( - "localDisk", - capnp_ts_1.Struct.getUint16(2, this), - 2, - this - ); - return capnp_ts_1.Struct.getText(8, this); - } - isLocalDisk() { - return capnp_ts_1.Struct.getUint16(2, this) === 2; - } - setLocalDisk(value) { - capnp_ts_1.Struct.setUint16(2, 2, this); - capnp_ts_1.Struct.setText(8, value, this); - } - toString() { - return "Worker_DurableObjectStorage_" + super.toString(); - } - which() { - return capnp_ts_1.Struct.getUint16(2, this); - } + isNone() { return capnp_ts_1.Struct.getUint16(2, this) === 0; } + setNone() { capnp_ts_1.Struct.setUint16(2, 0, this); } + isInMemory() { return capnp_ts_1.Struct.getUint16(2, this) === 1; } + setInMemory() { capnp_ts_1.Struct.setUint16(2, 1, this); } + getLocalDisk() { + capnp_ts_1.Struct.testWhich("localDisk", capnp_ts_1.Struct.getUint16(2, this), 2, this); + return capnp_ts_1.Struct.getText(8, this); + } + isLocalDisk() { return capnp_ts_1.Struct.getUint16(2, this) === 2; } + setLocalDisk(value) { + capnp_ts_1.Struct.setUint16(2, 2, this); + capnp_ts_1.Struct.setText(8, value, this); + } + toString() { return "Worker_DurableObjectStorage_" + super.toString(); } + which() { return capnp_ts_1.Struct.getUint16(2, this); } } exports.Worker_DurableObjectStorage = Worker_DurableObjectStorage; Worker_DurableObjectStorage.NONE = Worker_DurableObjectStorage_Which.NONE; -Worker_DurableObjectStorage.IN_MEMORY = - Worker_DurableObjectStorage_Which.IN_MEMORY; -Worker_DurableObjectStorage.LOCAL_DISK = - Worker_DurableObjectStorage_Which.LOCAL_DISK; -Worker_DurableObjectStorage._capnp = { - displayName: "durableObjectStorage", - id: "cc72b3faa57827d4", - size: new capnp_ts_1.ObjectSize(8, 9), -}; +Worker_DurableObjectStorage.IN_MEMORY = Worker_DurableObjectStorage_Which.IN_MEMORY; +Worker_DurableObjectStorage.LOCAL_DISK = Worker_DurableObjectStorage_Which.LOCAL_DISK; +Worker_DurableObjectStorage._capnp = { displayName: "durableObjectStorage", id: "cc72b3faa57827d4", size: new capnp_ts_1.ObjectSize(8, 10) }; var Worker_Which; (function (Worker_Which) { - Worker_Which[(Worker_Which["MODULES"] = 0)] = "MODULES"; - Worker_Which[(Worker_Which["SERVICE_WORKER_SCRIPT"] = 1)] = - "SERVICE_WORKER_SCRIPT"; - Worker_Which[(Worker_Which["INHERIT"] = 2)] = "INHERIT"; -})((Worker_Which = exports.Worker_Which || (exports.Worker_Which = {}))); + Worker_Which[Worker_Which["MODULES"] = 0] = "MODULES"; + Worker_Which[Worker_Which["SERVICE_WORKER_SCRIPT"] = 1] = "SERVICE_WORKER_SCRIPT"; + Worker_Which[Worker_Which["INHERIT"] = 2] = "INHERIT"; +})(Worker_Which = exports.Worker_Which || (exports.Worker_Which = {})); class Worker extends capnp_ts_1.Struct { - adoptModules(value) { - capnp_ts_1.Struct.setUint16(0, 0, this); - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(0, this)); - } - disownModules() { - return capnp_ts_1.Struct.disown(this.getModules()); - } - getModules() { - capnp_ts_1.Struct.testWhich( - "modules", - capnp_ts_1.Struct.getUint16(0, this), - 0, - this - ); - return capnp_ts_1.Struct.getList(0, Worker._Modules, this); - } - hasModules() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(0, this)); - } - initModules(length) { - capnp_ts_1.Struct.setUint16(0, 0, this); - return capnp_ts_1.Struct.initList(0, Worker._Modules, length, this); - } - isModules() { - return capnp_ts_1.Struct.getUint16(0, this) === 0; - } - setModules(value) { - capnp_ts_1.Struct.setUint16(0, 0, this); - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(0, this)); - } - getServiceWorkerScript() { - capnp_ts_1.Struct.testWhich( - "serviceWorkerScript", - capnp_ts_1.Struct.getUint16(0, this), - 1, - this - ); - return capnp_ts_1.Struct.getText(0, this); - } - isServiceWorkerScript() { - return capnp_ts_1.Struct.getUint16(0, this) === 1; - } - setServiceWorkerScript(value) { - capnp_ts_1.Struct.setUint16(0, 1, this); - capnp_ts_1.Struct.setText(0, value, this); - } - getInherit() { - capnp_ts_1.Struct.testWhich( - "inherit", - capnp_ts_1.Struct.getUint16(0, this), - 2, - this - ); - return capnp_ts_1.Struct.getText(0, this); - } - isInherit() { - return capnp_ts_1.Struct.getUint16(0, this) === 2; - } - setInherit(value) { - capnp_ts_1.Struct.setUint16(0, 2, this); - capnp_ts_1.Struct.setText(0, value, this); - } - getCompatibilityDate() { - return capnp_ts_1.Struct.getText(1, this); - } - setCompatibilityDate(value) { - capnp_ts_1.Struct.setText(1, value, this); - } - adoptCompatibilityFlags(value) { - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(2, this)); - } - disownCompatibilityFlags() { - return capnp_ts_1.Struct.disown(this.getCompatibilityFlags()); - } - getCompatibilityFlags() { - return capnp_ts_1.Struct.getList(2, capnp.TextList, this); - } - hasCompatibilityFlags() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(2, this)); - } - initCompatibilityFlags(length) { - return capnp_ts_1.Struct.initList(2, capnp.TextList, length, this); - } - setCompatibilityFlags(value) { - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(2, this)); - } - adoptBindings(value) { - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(3, this)); - } - disownBindings() { - return capnp_ts_1.Struct.disown(this.getBindings()); - } - getBindings() { - return capnp_ts_1.Struct.getList(3, Worker._Bindings, this); - } - hasBindings() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(3, this)); - } - initBindings(length) { - return capnp_ts_1.Struct.initList(3, Worker._Bindings, length, this); - } - setBindings(value) { - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(3, this)); - } - adoptGlobalOutbound(value) { - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(4, this)); - } - disownGlobalOutbound() { - return capnp_ts_1.Struct.disown(this.getGlobalOutbound()); - } - getGlobalOutbound() { - return capnp_ts_1.Struct.getStruct( - 4, - ServiceDesignator, - this, - Worker._capnp.defaultGlobalOutbound - ); - } - hasGlobalOutbound() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(4, this)); - } - initGlobalOutbound() { - return capnp_ts_1.Struct.initStructAt(4, ServiceDesignator, this); - } - setGlobalOutbound(value) { - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(4, this)); - } - adoptCacheApiOutbound(value) { - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(7, this)); - } - disownCacheApiOutbound() { - return capnp_ts_1.Struct.disown(this.getCacheApiOutbound()); - } - getCacheApiOutbound() { - return capnp_ts_1.Struct.getStruct(7, ServiceDesignator, this); - } - hasCacheApiOutbound() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(7, this)); - } - initCacheApiOutbound() { - return capnp_ts_1.Struct.initStructAt(7, ServiceDesignator, this); - } - setCacheApiOutbound(value) { - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(7, this)); - } - adoptDurableObjectNamespaces(value) { - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(5, this)); - } - disownDurableObjectNamespaces() { - return capnp_ts_1.Struct.disown(this.getDurableObjectNamespaces()); - } - getDurableObjectNamespaces() { - return capnp_ts_1.Struct.getList(5, Worker._DurableObjectNamespaces, this); - } - hasDurableObjectNamespaces() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(5, this)); - } - initDurableObjectNamespaces(length) { - return capnp_ts_1.Struct.initList( - 5, - Worker._DurableObjectNamespaces, - length, - this - ); - } - setDurableObjectNamespaces(value) { - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(5, this)); - } - getDurableObjectUniqueKeyModifier() { - return capnp_ts_1.Struct.getText(6, this); - } - setDurableObjectUniqueKeyModifier(value) { - capnp_ts_1.Struct.setText(6, value, this); - } - getDurableObjectStorage() { - return capnp_ts_1.Struct.getAs(Worker_DurableObjectStorage, this); - } - initDurableObjectStorage() { - return capnp_ts_1.Struct.getAs(Worker_DurableObjectStorage, this); - } - toString() { - return "Worker_" + super.toString(); - } - which() { - return capnp_ts_1.Struct.getUint16(0, this); - } + adoptModules(value) { + capnp_ts_1.Struct.setUint16(0, 0, this); + capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(0, this)); + } + disownModules() { return capnp_ts_1.Struct.disown(this.getModules()); } + getModules() { + capnp_ts_1.Struct.testWhich("modules", capnp_ts_1.Struct.getUint16(0, this), 0, this); + return capnp_ts_1.Struct.getList(0, Worker._Modules, this); + } + hasModules() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(0, this)); } + initModules(length) { + capnp_ts_1.Struct.setUint16(0, 0, this); + return capnp_ts_1.Struct.initList(0, Worker._Modules, length, this); + } + isModules() { return capnp_ts_1.Struct.getUint16(0, this) === 0; } + setModules(value) { + capnp_ts_1.Struct.setUint16(0, 0, this); + capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(0, this)); + } + getServiceWorkerScript() { + capnp_ts_1.Struct.testWhich("serviceWorkerScript", capnp_ts_1.Struct.getUint16(0, this), 1, this); + return capnp_ts_1.Struct.getText(0, this); + } + isServiceWorkerScript() { return capnp_ts_1.Struct.getUint16(0, this) === 1; } + setServiceWorkerScript(value) { + capnp_ts_1.Struct.setUint16(0, 1, this); + capnp_ts_1.Struct.setText(0, value, this); + } + getInherit() { + capnp_ts_1.Struct.testWhich("inherit", capnp_ts_1.Struct.getUint16(0, this), 2, this); + return capnp_ts_1.Struct.getText(0, this); + } + isInherit() { return capnp_ts_1.Struct.getUint16(0, this) === 2; } + setInherit(value) { + capnp_ts_1.Struct.setUint16(0, 2, this); + capnp_ts_1.Struct.setText(0, value, this); + } + getCompatibilityDate() { return capnp_ts_1.Struct.getText(1, this); } + setCompatibilityDate(value) { capnp_ts_1.Struct.setText(1, value, this); } + adoptCompatibilityFlags(value) { capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(2, this)); } + disownCompatibilityFlags() { return capnp_ts_1.Struct.disown(this.getCompatibilityFlags()); } + getCompatibilityFlags() { return capnp_ts_1.Struct.getList(2, capnp.TextList, this); } + hasCompatibilityFlags() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(2, this)); } + initCompatibilityFlags(length) { return capnp_ts_1.Struct.initList(2, capnp.TextList, length, this); } + setCompatibilityFlags(value) { capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(2, this)); } + adoptBindings(value) { capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(3, this)); } + disownBindings() { return capnp_ts_1.Struct.disown(this.getBindings()); } + getBindings() { return capnp_ts_1.Struct.getList(3, Worker._Bindings, this); } + hasBindings() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(3, this)); } + initBindings(length) { return capnp_ts_1.Struct.initList(3, Worker._Bindings, length, this); } + setBindings(value) { capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(3, this)); } + adoptGlobalOutbound(value) { capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(4, this)); } + disownGlobalOutbound() { return capnp_ts_1.Struct.disown(this.getGlobalOutbound()); } + getGlobalOutbound() { return capnp_ts_1.Struct.getStruct(4, ServiceDesignator, this, Worker._capnp.defaultGlobalOutbound); } + hasGlobalOutbound() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(4, this)); } + initGlobalOutbound() { return capnp_ts_1.Struct.initStructAt(4, ServiceDesignator, this); } + setGlobalOutbound(value) { capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(4, this)); } + adoptCacheApiOutbound(value) { capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(7, this)); } + disownCacheApiOutbound() { return capnp_ts_1.Struct.disown(this.getCacheApiOutbound()); } + getCacheApiOutbound() { return capnp_ts_1.Struct.getStruct(7, ServiceDesignator, this); } + hasCacheApiOutbound() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(7, this)); } + initCacheApiOutbound() { return capnp_ts_1.Struct.initStructAt(7, ServiceDesignator, this); } + setCacheApiOutbound(value) { capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(7, this)); } + adoptDurableObjectNamespaces(value) { capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(5, this)); } + disownDurableObjectNamespaces() { return capnp_ts_1.Struct.disown(this.getDurableObjectNamespaces()); } + getDurableObjectNamespaces() { return capnp_ts_1.Struct.getList(5, Worker._DurableObjectNamespaces, this); } + hasDurableObjectNamespaces() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(5, this)); } + initDurableObjectNamespaces(length) { return capnp_ts_1.Struct.initList(5, Worker._DurableObjectNamespaces, length, this); } + setDurableObjectNamespaces(value) { capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(5, this)); } + getDurableObjectUniqueKeyModifier() { return capnp_ts_1.Struct.getText(6, this); } + setDurableObjectUniqueKeyModifier(value) { capnp_ts_1.Struct.setText(6, value, this); } + getDurableObjectStorage() { return capnp_ts_1.Struct.getAs(Worker_DurableObjectStorage, this); } + initDurableObjectStorage() { return capnp_ts_1.Struct.getAs(Worker_DurableObjectStorage, this); } + getModuleFallback() { return capnp_ts_1.Struct.getText(9, this); } + setModuleFallback(value) { capnp_ts_1.Struct.setText(9, value, this); } + toString() { return "Worker_" + super.toString(); } + which() { return capnp_ts_1.Struct.getUint16(0, this); } } exports.Worker = Worker; Worker.MODULES = Worker_Which.MODULES; @@ -2111,638 +1085,243 @@ Worker.INHERIT = Worker_Which.INHERIT; Worker.Module = Worker_Module; Worker.Binding = Worker_Binding; Worker.DurableObjectNamespace = Worker_DurableObjectNamespace; -Worker._capnp = { - displayName: "Worker", - id: "acfa77e88fd97d1c", - size: new capnp_ts_1.ObjectSize(8, 9), - defaultGlobalOutbound: capnp.readRawPointer( - new Uint8Array([ - 0x10, 0x05, 0x40, 0x02, 0x11, 0x05, 0x4a, 0x00, 0x00, 0xff, 0x69, 0x6e, - 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x00, 0x00, 0x00, - ]).buffer - ), -}; +Worker._capnp = { displayName: "Worker", id: "acfa77e88fd97d1c", size: new capnp_ts_1.ObjectSize(8, 10), defaultGlobalOutbound: capnp.readRawPointer(new Uint8Array([0x10, 0x05, 0x40, 0x02, 0x11, 0x05, 0x4a, 0x00, 0x00, 0xff, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x00, 0x00, 0x00]).buffer) }; class ExternalServer_Https extends capnp_ts_1.Struct { - adoptOptions(value) { - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); - } - disownOptions() { - return capnp_ts_1.Struct.disown(this.getOptions()); - } - getOptions() { - return capnp_ts_1.Struct.getStruct(1, HttpOptions, this); - } - hasOptions() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); - } - initOptions() { - return capnp_ts_1.Struct.initStructAt(1, HttpOptions, this); - } - setOptions(value) { - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); - } - adoptTlsOptions(value) { - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(2, this)); - } - disownTlsOptions() { - return capnp_ts_1.Struct.disown(this.getTlsOptions()); - } - getTlsOptions() { - return capnp_ts_1.Struct.getStruct(2, TlsOptions, this); - } - hasTlsOptions() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(2, this)); - } - initTlsOptions() { - return capnp_ts_1.Struct.initStructAt(2, TlsOptions, this); - } - setTlsOptions(value) { - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(2, this)); - } - getCertificateHost() { - return capnp_ts_1.Struct.getText(3, this); - } - setCertificateHost(value) { - capnp_ts_1.Struct.setText(3, value, this); - } - toString() { - return "ExternalServer_Https_" + super.toString(); - } + adoptOptions(value) { capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); } + disownOptions() { return capnp_ts_1.Struct.disown(this.getOptions()); } + getOptions() { return capnp_ts_1.Struct.getStruct(1, HttpOptions, this); } + hasOptions() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); } + initOptions() { return capnp_ts_1.Struct.initStructAt(1, HttpOptions, this); } + setOptions(value) { capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); } + adoptTlsOptions(value) { capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(2, this)); } + disownTlsOptions() { return capnp_ts_1.Struct.disown(this.getTlsOptions()); } + getTlsOptions() { return capnp_ts_1.Struct.getStruct(2, TlsOptions, this); } + hasTlsOptions() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(2, this)); } + initTlsOptions() { return capnp_ts_1.Struct.initStructAt(2, TlsOptions, this); } + setTlsOptions(value) { capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(2, this)); } + getCertificateHost() { return capnp_ts_1.Struct.getText(3, this); } + setCertificateHost(value) { capnp_ts_1.Struct.setText(3, value, this); } + toString() { return "ExternalServer_Https_" + super.toString(); } } exports.ExternalServer_Https = ExternalServer_Https; -ExternalServer_Https._capnp = { - displayName: "https", - id: "ac37e02afd3dc6db", - size: new capnp_ts_1.ObjectSize(8, 4), -}; +ExternalServer_Https._capnp = { displayName: "https", id: "ac37e02afd3dc6db", size: new capnp_ts_1.ObjectSize(8, 4) }; class ExternalServer_Tcp extends capnp_ts_1.Struct { - adoptTlsOptions(value) { - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); - } - disownTlsOptions() { - return capnp_ts_1.Struct.disown(this.getTlsOptions()); - } - getTlsOptions() { - return capnp_ts_1.Struct.getStruct(1, TlsOptions, this); - } - hasTlsOptions() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); - } - initTlsOptions() { - return capnp_ts_1.Struct.initStructAt(1, TlsOptions, this); - } - setTlsOptions(value) { - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); - } - getCertificateHost() { - return capnp_ts_1.Struct.getText(2, this); - } - setCertificateHost(value) { - capnp_ts_1.Struct.setText(2, value, this); - } - toString() { - return "ExternalServer_Tcp_" + super.toString(); - } + adoptTlsOptions(value) { capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); } + disownTlsOptions() { return capnp_ts_1.Struct.disown(this.getTlsOptions()); } + getTlsOptions() { return capnp_ts_1.Struct.getStruct(1, TlsOptions, this); } + hasTlsOptions() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); } + initTlsOptions() { return capnp_ts_1.Struct.initStructAt(1, TlsOptions, this); } + setTlsOptions(value) { capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); } + getCertificateHost() { return capnp_ts_1.Struct.getText(2, this); } + setCertificateHost(value) { capnp_ts_1.Struct.setText(2, value, this); } + toString() { return "ExternalServer_Tcp_" + super.toString(); } } exports.ExternalServer_Tcp = ExternalServer_Tcp; -ExternalServer_Tcp._capnp = { - displayName: "tcp", - id: "d941637df0fb39f1", - size: new capnp_ts_1.ObjectSize(8, 4), -}; +ExternalServer_Tcp._capnp = { displayName: "tcp", id: "d941637df0fb39f1", size: new capnp_ts_1.ObjectSize(8, 4) }; var ExternalServer_Which; (function (ExternalServer_Which) { - ExternalServer_Which[(ExternalServer_Which["HTTP"] = 0)] = "HTTP"; - ExternalServer_Which[(ExternalServer_Which["HTTPS"] = 1)] = "HTTPS"; - ExternalServer_Which[(ExternalServer_Which["TCP"] = 2)] = "TCP"; -})( - (ExternalServer_Which = - exports.ExternalServer_Which || (exports.ExternalServer_Which = {})) -); + ExternalServer_Which[ExternalServer_Which["HTTP"] = 0] = "HTTP"; + ExternalServer_Which[ExternalServer_Which["HTTPS"] = 1] = "HTTPS"; + ExternalServer_Which[ExternalServer_Which["TCP"] = 2] = "TCP"; +})(ExternalServer_Which = exports.ExternalServer_Which || (exports.ExternalServer_Which = {})); class ExternalServer extends capnp_ts_1.Struct { - getAddress() { - return capnp_ts_1.Struct.getText(0, this); - } - setAddress(value) { - capnp_ts_1.Struct.setText(0, value, this); - } - adoptHttp(value) { - capnp_ts_1.Struct.setUint16(0, 0, this); - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); - } - disownHttp() { - return capnp_ts_1.Struct.disown(this.getHttp()); - } - getHttp() { - capnp_ts_1.Struct.testWhich( - "http", - capnp_ts_1.Struct.getUint16(0, this), - 0, - this - ); - return capnp_ts_1.Struct.getStruct(1, HttpOptions, this); - } - hasHttp() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); - } - initHttp() { - capnp_ts_1.Struct.setUint16(0, 0, this); - return capnp_ts_1.Struct.initStructAt(1, HttpOptions, this); - } - isHttp() { - return capnp_ts_1.Struct.getUint16(0, this) === 0; - } - setHttp(value) { - capnp_ts_1.Struct.setUint16(0, 0, this); - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); - } - getHttps() { - capnp_ts_1.Struct.testWhich( - "https", - capnp_ts_1.Struct.getUint16(0, this), - 1, - this - ); - return capnp_ts_1.Struct.getAs(ExternalServer_Https, this); - } - initHttps() { - capnp_ts_1.Struct.setUint16(0, 1, this); - return capnp_ts_1.Struct.getAs(ExternalServer_Https, this); - } - isHttps() { - return capnp_ts_1.Struct.getUint16(0, this) === 1; - } - setHttps() { - capnp_ts_1.Struct.setUint16(0, 1, this); - } - getTcp() { - capnp_ts_1.Struct.testWhich( - "tcp", - capnp_ts_1.Struct.getUint16(0, this), - 2, - this - ); - return capnp_ts_1.Struct.getAs(ExternalServer_Tcp, this); - } - initTcp() { - capnp_ts_1.Struct.setUint16(0, 2, this); - return capnp_ts_1.Struct.getAs(ExternalServer_Tcp, this); - } - isTcp() { - return capnp_ts_1.Struct.getUint16(0, this) === 2; - } - setTcp() { - capnp_ts_1.Struct.setUint16(0, 2, this); - } - toString() { - return "ExternalServer_" + super.toString(); - } - which() { - return capnp_ts_1.Struct.getUint16(0, this); - } + getAddress() { return capnp_ts_1.Struct.getText(0, this); } + setAddress(value) { capnp_ts_1.Struct.setText(0, value, this); } + adoptHttp(value) { + capnp_ts_1.Struct.setUint16(0, 0, this); + capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); + } + disownHttp() { return capnp_ts_1.Struct.disown(this.getHttp()); } + getHttp() { + capnp_ts_1.Struct.testWhich("http", capnp_ts_1.Struct.getUint16(0, this), 0, this); + return capnp_ts_1.Struct.getStruct(1, HttpOptions, this); + } + hasHttp() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); } + initHttp() { + capnp_ts_1.Struct.setUint16(0, 0, this); + return capnp_ts_1.Struct.initStructAt(1, HttpOptions, this); + } + isHttp() { return capnp_ts_1.Struct.getUint16(0, this) === 0; } + setHttp(value) { + capnp_ts_1.Struct.setUint16(0, 0, this); + capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); + } + getHttps() { + capnp_ts_1.Struct.testWhich("https", capnp_ts_1.Struct.getUint16(0, this), 1, this); + return capnp_ts_1.Struct.getAs(ExternalServer_Https, this); + } + initHttps() { + capnp_ts_1.Struct.setUint16(0, 1, this); + return capnp_ts_1.Struct.getAs(ExternalServer_Https, this); + } + isHttps() { return capnp_ts_1.Struct.getUint16(0, this) === 1; } + setHttps() { capnp_ts_1.Struct.setUint16(0, 1, this); } + getTcp() { + capnp_ts_1.Struct.testWhich("tcp", capnp_ts_1.Struct.getUint16(0, this), 2, this); + return capnp_ts_1.Struct.getAs(ExternalServer_Tcp, this); + } + initTcp() { + capnp_ts_1.Struct.setUint16(0, 2, this); + return capnp_ts_1.Struct.getAs(ExternalServer_Tcp, this); + } + isTcp() { return capnp_ts_1.Struct.getUint16(0, this) === 2; } + setTcp() { capnp_ts_1.Struct.setUint16(0, 2, this); } + toString() { return "ExternalServer_" + super.toString(); } + which() { return capnp_ts_1.Struct.getUint16(0, this); } } exports.ExternalServer = ExternalServer; ExternalServer.HTTP = ExternalServer_Which.HTTP; ExternalServer.HTTPS = ExternalServer_Which.HTTPS; ExternalServer.TCP = ExternalServer_Which.TCP; -ExternalServer._capnp = { - displayName: "ExternalServer", - id: "ff209f9aa352f5a4", - size: new capnp_ts_1.ObjectSize(8, 4), -}; +ExternalServer._capnp = { displayName: "ExternalServer", id: "ff209f9aa352f5a4", size: new capnp_ts_1.ObjectSize(8, 4) }; class Network extends capnp_ts_1.Struct { - adoptAllow(value) { - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(0, this)); - } - disownAllow() { - return capnp_ts_1.Struct.disown(this.getAllow()); - } - getAllow() { - return capnp_ts_1.Struct.getList( - 0, - capnp.TextList, - this, - Network._capnp.defaultAllow - ); - } - hasAllow() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(0, this)); - } - initAllow(length) { - return capnp_ts_1.Struct.initList(0, capnp.TextList, length, this); - } - setAllow(value) { - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(0, this)); - } - adoptDeny(value) { - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); - } - disownDeny() { - return capnp_ts_1.Struct.disown(this.getDeny()); - } - getDeny() { - return capnp_ts_1.Struct.getList(1, capnp.TextList, this); - } - hasDeny() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); - } - initDeny(length) { - return capnp_ts_1.Struct.initList(1, capnp.TextList, length, this); - } - setDeny(value) { - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); - } - adoptTlsOptions(value) { - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(2, this)); - } - disownTlsOptions() { - return capnp_ts_1.Struct.disown(this.getTlsOptions()); - } - getTlsOptions() { - return capnp_ts_1.Struct.getStruct(2, TlsOptions, this); - } - hasTlsOptions() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(2, this)); - } - initTlsOptions() { - return capnp_ts_1.Struct.initStructAt(2, TlsOptions, this); - } - setTlsOptions(value) { - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(2, this)); - } - toString() { - return "Network_" + super.toString(); - } + adoptAllow(value) { capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(0, this)); } + disownAllow() { return capnp_ts_1.Struct.disown(this.getAllow()); } + getAllow() { return capnp_ts_1.Struct.getList(0, capnp.TextList, this, Network._capnp.defaultAllow); } + hasAllow() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(0, this)); } + initAllow(length) { return capnp_ts_1.Struct.initList(0, capnp.TextList, length, this); } + setAllow(value) { capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(0, this)); } + adoptDeny(value) { capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); } + disownDeny() { return capnp_ts_1.Struct.disown(this.getDeny()); } + getDeny() { return capnp_ts_1.Struct.getList(1, capnp.TextList, this); } + hasDeny() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); } + initDeny(length) { return capnp_ts_1.Struct.initList(1, capnp.TextList, length, this); } + setDeny(value) { capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); } + adoptTlsOptions(value) { capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(2, this)); } + disownTlsOptions() { return capnp_ts_1.Struct.disown(this.getTlsOptions()); } + getTlsOptions() { return capnp_ts_1.Struct.getStruct(2, TlsOptions, this); } + hasTlsOptions() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(2, this)); } + initTlsOptions() { return capnp_ts_1.Struct.initStructAt(2, TlsOptions, this); } + setTlsOptions(value) { capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(2, this)); } + toString() { return "Network_" + super.toString(); } } exports.Network = Network; -Network._capnp = { - displayName: "Network", - id: "fa42244f950c9b9c", - size: new capnp_ts_1.ObjectSize(0, 3), - defaultAllow: capnp.readRawPointer( - new Uint8Array([ - 0x10, 0x03, 0x11, 0x01, 0x0e, 0x11, 0x01, 0x3a, 0x3f, 0x70, 0x75, 0x62, - 0x6c, 0x69, 0x63, - ]).buffer - ), -}; +Network._capnp = { displayName: "Network", id: "fa42244f950c9b9c", size: new capnp_ts_1.ObjectSize(0, 3), defaultAllow: capnp.readRawPointer(new Uint8Array([0x10, 0x03, 0x11, 0x01, 0x0e, 0x11, 0x01, 0x3a, 0x3f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63]).buffer) }; class DiskDirectory extends capnp_ts_1.Struct { - getPath() { - return capnp_ts_1.Struct.getText(0, this); - } - setPath(value) { - capnp_ts_1.Struct.setText(0, value, this); - } - getWritable() { - return capnp_ts_1.Struct.getBit( - 0, - this, - DiskDirectory._capnp.defaultWritable - ); - } - setWritable(value) { - capnp_ts_1.Struct.setBit(0, value, this); - } - getAllowDotfiles() { - return capnp_ts_1.Struct.getBit( - 1, - this, - DiskDirectory._capnp.defaultAllowDotfiles - ); - } - setAllowDotfiles(value) { - capnp_ts_1.Struct.setBit(1, value, this); - } - toString() { - return "DiskDirectory_" + super.toString(); - } + getPath() { return capnp_ts_1.Struct.getText(0, this); } + setPath(value) { capnp_ts_1.Struct.setText(0, value, this); } + getWritable() { return capnp_ts_1.Struct.getBit(0, this, DiskDirectory._capnp.defaultWritable); } + setWritable(value) { capnp_ts_1.Struct.setBit(0, value, this); } + getAllowDotfiles() { return capnp_ts_1.Struct.getBit(1, this, DiskDirectory._capnp.defaultAllowDotfiles); } + setAllowDotfiles(value) { capnp_ts_1.Struct.setBit(1, value, this); } + toString() { return "DiskDirectory_" + super.toString(); } } exports.DiskDirectory = DiskDirectory; -DiskDirectory._capnp = { - displayName: "DiskDirectory", - id: "9048ab22835f51c3", - size: new capnp_ts_1.ObjectSize(8, 1), - defaultWritable: capnp.getBitMask(false, 0), - defaultAllowDotfiles: capnp.getBitMask(false, 1), -}; +DiskDirectory._capnp = { displayName: "DiskDirectory", id: "9048ab22835f51c3", size: new capnp_ts_1.ObjectSize(8, 1), defaultWritable: capnp.getBitMask(false, 0), defaultAllowDotfiles: capnp.getBitMask(false, 1) }; var HttpOptions_Style; (function (HttpOptions_Style) { - HttpOptions_Style[(HttpOptions_Style["HOST"] = 0)] = "HOST"; - HttpOptions_Style[(HttpOptions_Style["PROXY"] = 1)] = "PROXY"; -})( - (HttpOptions_Style = - exports.HttpOptions_Style || (exports.HttpOptions_Style = {})) -); + HttpOptions_Style[HttpOptions_Style["HOST"] = 0] = "HOST"; + HttpOptions_Style[HttpOptions_Style["PROXY"] = 1] = "PROXY"; +})(HttpOptions_Style = exports.HttpOptions_Style || (exports.HttpOptions_Style = {})); class HttpOptions_Header extends capnp_ts_1.Struct { - getName() { - return capnp_ts_1.Struct.getText(0, this); - } - setName(value) { - capnp_ts_1.Struct.setText(0, value, this); - } - getValue() { - return capnp_ts_1.Struct.getText(1, this); - } - setValue(value) { - capnp_ts_1.Struct.setText(1, value, this); - } - toString() { - return "HttpOptions_Header_" + super.toString(); - } + getName() { return capnp_ts_1.Struct.getText(0, this); } + setName(value) { capnp_ts_1.Struct.setText(0, value, this); } + getValue() { return capnp_ts_1.Struct.getText(1, this); } + setValue(value) { capnp_ts_1.Struct.setText(1, value, this); } + toString() { return "HttpOptions_Header_" + super.toString(); } } exports.HttpOptions_Header = HttpOptions_Header; -HttpOptions_Header._capnp = { - displayName: "Header", - id: "dc0394b5a6f3417e", - size: new capnp_ts_1.ObjectSize(0, 2), -}; +HttpOptions_Header._capnp = { displayName: "Header", id: "dc0394b5a6f3417e", size: new capnp_ts_1.ObjectSize(0, 2) }; class HttpOptions extends capnp_ts_1.Struct { - getStyle() { - return capnp_ts_1.Struct.getUint16( - 0, - this, - HttpOptions._capnp.defaultStyle - ); - } - setStyle(value) { - capnp_ts_1.Struct.setUint16(0, value, this); - } - getForwardedProtoHeader() { - return capnp_ts_1.Struct.getText(0, this); - } - setForwardedProtoHeader(value) { - capnp_ts_1.Struct.setText(0, value, this); - } - getCfBlobHeader() { - return capnp_ts_1.Struct.getText(1, this); - } - setCfBlobHeader(value) { - capnp_ts_1.Struct.setText(1, value, this); - } - adoptInjectRequestHeaders(value) { - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(2, this)); - } - disownInjectRequestHeaders() { - return capnp_ts_1.Struct.disown(this.getInjectRequestHeaders()); - } - getInjectRequestHeaders() { - return capnp_ts_1.Struct.getList( - 2, - HttpOptions._InjectRequestHeaders, - this - ); - } - hasInjectRequestHeaders() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(2, this)); - } - initInjectRequestHeaders(length) { - return capnp_ts_1.Struct.initList( - 2, - HttpOptions._InjectRequestHeaders, - length, - this - ); - } - setInjectRequestHeaders(value) { - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(2, this)); - } - adoptInjectResponseHeaders(value) { - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(3, this)); - } - disownInjectResponseHeaders() { - return capnp_ts_1.Struct.disown(this.getInjectResponseHeaders()); - } - getInjectResponseHeaders() { - return capnp_ts_1.Struct.getList( - 3, - HttpOptions._InjectResponseHeaders, - this - ); - } - hasInjectResponseHeaders() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(3, this)); - } - initInjectResponseHeaders(length) { - return capnp_ts_1.Struct.initList( - 3, - HttpOptions._InjectResponseHeaders, - length, - this - ); - } - setInjectResponseHeaders(value) { - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(3, this)); - } - toString() { - return "HttpOptions_" + super.toString(); - } + getStyle() { return capnp_ts_1.Struct.getUint16(0, this, HttpOptions._capnp.defaultStyle); } + setStyle(value) { capnp_ts_1.Struct.setUint16(0, value, this); } + getForwardedProtoHeader() { return capnp_ts_1.Struct.getText(0, this); } + setForwardedProtoHeader(value) { capnp_ts_1.Struct.setText(0, value, this); } + getCfBlobHeader() { return capnp_ts_1.Struct.getText(1, this); } + setCfBlobHeader(value) { capnp_ts_1.Struct.setText(1, value, this); } + adoptInjectRequestHeaders(value) { capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(2, this)); } + disownInjectRequestHeaders() { return capnp_ts_1.Struct.disown(this.getInjectRequestHeaders()); } + getInjectRequestHeaders() { return capnp_ts_1.Struct.getList(2, HttpOptions._InjectRequestHeaders, this); } + hasInjectRequestHeaders() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(2, this)); } + initInjectRequestHeaders(length) { return capnp_ts_1.Struct.initList(2, HttpOptions._InjectRequestHeaders, length, this); } + setInjectRequestHeaders(value) { capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(2, this)); } + adoptInjectResponseHeaders(value) { capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(3, this)); } + disownInjectResponseHeaders() { return capnp_ts_1.Struct.disown(this.getInjectResponseHeaders()); } + getInjectResponseHeaders() { return capnp_ts_1.Struct.getList(3, HttpOptions._InjectResponseHeaders, this); } + hasInjectResponseHeaders() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(3, this)); } + initInjectResponseHeaders(length) { return capnp_ts_1.Struct.initList(3, HttpOptions._InjectResponseHeaders, length, this); } + setInjectResponseHeaders(value) { capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(3, this)); } + toString() { return "HttpOptions_" + super.toString(); } } exports.HttpOptions = HttpOptions; HttpOptions.Style = HttpOptions_Style; HttpOptions.Header = HttpOptions_Header; -HttpOptions._capnp = { - displayName: "HttpOptions", - id: "aa8dc6885da78f19", - size: new capnp_ts_1.ObjectSize(8, 4), - defaultStyle: capnp.getUint16Mask(0), -}; +HttpOptions._capnp = { displayName: "HttpOptions", id: "aa8dc6885da78f19", size: new capnp_ts_1.ObjectSize(8, 4), defaultStyle: capnp.getUint16Mask(0) }; class TlsOptions_Keypair extends capnp_ts_1.Struct { - getPrivateKey() { - return capnp_ts_1.Struct.getText(0, this); - } - setPrivateKey(value) { - capnp_ts_1.Struct.setText(0, value, this); - } - getCertificateChain() { - return capnp_ts_1.Struct.getText(1, this); - } - setCertificateChain(value) { - capnp_ts_1.Struct.setText(1, value, this); - } - toString() { - return "TlsOptions_Keypair_" + super.toString(); - } + getPrivateKey() { return capnp_ts_1.Struct.getText(0, this); } + setPrivateKey(value) { capnp_ts_1.Struct.setText(0, value, this); } + getCertificateChain() { return capnp_ts_1.Struct.getText(1, this); } + setCertificateChain(value) { capnp_ts_1.Struct.setText(1, value, this); } + toString() { return "TlsOptions_Keypair_" + super.toString(); } } exports.TlsOptions_Keypair = TlsOptions_Keypair; -TlsOptions_Keypair._capnp = { - displayName: "Keypair", - id: "f546bf2d5d8bd13e", - size: new capnp_ts_1.ObjectSize(0, 2), -}; +TlsOptions_Keypair._capnp = { displayName: "Keypair", id: "f546bf2d5d8bd13e", size: new capnp_ts_1.ObjectSize(0, 2) }; var TlsOptions_Version; (function (TlsOptions_Version) { - TlsOptions_Version[(TlsOptions_Version["GOOD_DEFAULT"] = 0)] = "GOOD_DEFAULT"; - TlsOptions_Version[(TlsOptions_Version["SSL3"] = 1)] = "SSL3"; - TlsOptions_Version[(TlsOptions_Version["TLS1DOT0"] = 2)] = "TLS1DOT0"; - TlsOptions_Version[(TlsOptions_Version["TLS1DOT1"] = 3)] = "TLS1DOT1"; - TlsOptions_Version[(TlsOptions_Version["TLS1DOT2"] = 4)] = "TLS1DOT2"; - TlsOptions_Version[(TlsOptions_Version["TLS1DOT3"] = 5)] = "TLS1DOT3"; -})( - (TlsOptions_Version = - exports.TlsOptions_Version || (exports.TlsOptions_Version = {})) -); + TlsOptions_Version[TlsOptions_Version["GOOD_DEFAULT"] = 0] = "GOOD_DEFAULT"; + TlsOptions_Version[TlsOptions_Version["SSL3"] = 1] = "SSL3"; + TlsOptions_Version[TlsOptions_Version["TLS1DOT0"] = 2] = "TLS1DOT0"; + TlsOptions_Version[TlsOptions_Version["TLS1DOT1"] = 3] = "TLS1DOT1"; + TlsOptions_Version[TlsOptions_Version["TLS1DOT2"] = 4] = "TLS1DOT2"; + TlsOptions_Version[TlsOptions_Version["TLS1DOT3"] = 5] = "TLS1DOT3"; +})(TlsOptions_Version = exports.TlsOptions_Version || (exports.TlsOptions_Version = {})); class TlsOptions extends capnp_ts_1.Struct { - adoptKeypair(value) { - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(0, this)); - } - disownKeypair() { - return capnp_ts_1.Struct.disown(this.getKeypair()); - } - getKeypair() { - return capnp_ts_1.Struct.getStruct(0, TlsOptions_Keypair, this); - } - hasKeypair() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(0, this)); - } - initKeypair() { - return capnp_ts_1.Struct.initStructAt(0, TlsOptions_Keypair, this); - } - setKeypair(value) { - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(0, this)); - } - getRequireClientCerts() { - return capnp_ts_1.Struct.getBit( - 0, - this, - TlsOptions._capnp.defaultRequireClientCerts - ); - } - setRequireClientCerts(value) { - capnp_ts_1.Struct.setBit(0, value, this); - } - getTrustBrowserCas() { - return capnp_ts_1.Struct.getBit( - 1, - this, - TlsOptions._capnp.defaultTrustBrowserCas - ); - } - setTrustBrowserCas(value) { - capnp_ts_1.Struct.setBit(1, value, this); - } - adoptTrustedCertificates(value) { - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); - } - disownTrustedCertificates() { - return capnp_ts_1.Struct.disown(this.getTrustedCertificates()); - } - getTrustedCertificates() { - return capnp_ts_1.Struct.getList(1, capnp.TextList, this); - } - hasTrustedCertificates() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); - } - initTrustedCertificates(length) { - return capnp_ts_1.Struct.initList(1, capnp.TextList, length, this); - } - setTrustedCertificates(value) { - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); - } - getMinVersion() { - return capnp_ts_1.Struct.getUint16( - 2, - this, - TlsOptions._capnp.defaultMinVersion - ); - } - setMinVersion(value) { - capnp_ts_1.Struct.setUint16(2, value, this); - } - getCipherList() { - return capnp_ts_1.Struct.getText(2, this); - } - setCipherList(value) { - capnp_ts_1.Struct.setText(2, value, this); - } - toString() { - return "TlsOptions_" + super.toString(); - } + adoptKeypair(value) { capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(0, this)); } + disownKeypair() { return capnp_ts_1.Struct.disown(this.getKeypair()); } + getKeypair() { return capnp_ts_1.Struct.getStruct(0, TlsOptions_Keypair, this); } + hasKeypair() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(0, this)); } + initKeypair() { return capnp_ts_1.Struct.initStructAt(0, TlsOptions_Keypair, this); } + setKeypair(value) { capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(0, this)); } + getRequireClientCerts() { return capnp_ts_1.Struct.getBit(0, this, TlsOptions._capnp.defaultRequireClientCerts); } + setRequireClientCerts(value) { capnp_ts_1.Struct.setBit(0, value, this); } + getTrustBrowserCas() { return capnp_ts_1.Struct.getBit(1, this, TlsOptions._capnp.defaultTrustBrowserCas); } + setTrustBrowserCas(value) { capnp_ts_1.Struct.setBit(1, value, this); } + adoptTrustedCertificates(value) { capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(1, this)); } + disownTrustedCertificates() { return capnp_ts_1.Struct.disown(this.getTrustedCertificates()); } + getTrustedCertificates() { return capnp_ts_1.Struct.getList(1, capnp.TextList, this); } + hasTrustedCertificates() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(1, this)); } + initTrustedCertificates(length) { return capnp_ts_1.Struct.initList(1, capnp.TextList, length, this); } + setTrustedCertificates(value) { capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(1, this)); } + getMinVersion() { return capnp_ts_1.Struct.getUint16(2, this, TlsOptions._capnp.defaultMinVersion); } + setMinVersion(value) { capnp_ts_1.Struct.setUint16(2, value, this); } + getCipherList() { return capnp_ts_1.Struct.getText(2, this); } + setCipherList(value) { capnp_ts_1.Struct.setText(2, value, this); } + toString() { return "TlsOptions_" + super.toString(); } } exports.TlsOptions = TlsOptions; TlsOptions.Keypair = TlsOptions_Keypair; TlsOptions.Version = TlsOptions_Version; -TlsOptions._capnp = { - displayName: "TlsOptions", - id: "aabb3c3778ac4311", - size: new capnp_ts_1.ObjectSize(8, 3), - defaultRequireClientCerts: capnp.getBitMask(false, 0), - defaultTrustBrowserCas: capnp.getBitMask(false, 1), - defaultMinVersion: capnp.getUint16Mask(0), -}; +TlsOptions._capnp = { displayName: "TlsOptions", id: "aabb3c3778ac4311", size: new capnp_ts_1.ObjectSize(8, 3), defaultRequireClientCerts: capnp.getBitMask(false, 0), defaultTrustBrowserCas: capnp.getBitMask(false, 1), defaultMinVersion: capnp.getUint16Mask(0) }; class Extension_Module extends capnp_ts_1.Struct { - getName() { - return capnp_ts_1.Struct.getText(0, this); - } - setName(value) { - capnp_ts_1.Struct.setText(0, value, this); - } - getInternal() { - return capnp_ts_1.Struct.getBit( - 0, - this, - Extension_Module._capnp.defaultInternal - ); - } - setInternal(value) { - capnp_ts_1.Struct.setBit(0, value, this); - } - getEsModule() { - return capnp_ts_1.Struct.getText(1, this); - } - setEsModule(value) { - capnp_ts_1.Struct.setText(1, value, this); - } - toString() { - return "Extension_Module_" + super.toString(); - } + getName() { return capnp_ts_1.Struct.getText(0, this); } + setName(value) { capnp_ts_1.Struct.setText(0, value, this); } + getInternal() { return capnp_ts_1.Struct.getBit(0, this, Extension_Module._capnp.defaultInternal); } + setInternal(value) { capnp_ts_1.Struct.setBit(0, value, this); } + getEsModule() { return capnp_ts_1.Struct.getText(1, this); } + setEsModule(value) { capnp_ts_1.Struct.setText(1, value, this); } + toString() { return "Extension_Module_" + super.toString(); } } exports.Extension_Module = Extension_Module; -Extension_Module._capnp = { - displayName: "Module", - id: "d5d16e76fdedc37d", - size: new capnp_ts_1.ObjectSize(8, 2), - defaultInternal: capnp.getBitMask(false, 0), -}; +Extension_Module._capnp = { displayName: "Module", id: "d5d16e76fdedc37d", size: new capnp_ts_1.ObjectSize(8, 2), defaultInternal: capnp.getBitMask(false, 0) }; class Extension extends capnp_ts_1.Struct { - adoptModules(value) { - capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(0, this)); - } - disownModules() { - return capnp_ts_1.Struct.disown(this.getModules()); - } - getModules() { - return capnp_ts_1.Struct.getList(0, Extension._Modules, this); - } - hasModules() { - return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(0, this)); - } - initModules(length) { - return capnp_ts_1.Struct.initList(0, Extension._Modules, length, this); - } - setModules(value) { - capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(0, this)); - } - toString() { - return "Extension_" + super.toString(); - } + adoptModules(value) { capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(0, this)); } + disownModules() { return capnp_ts_1.Struct.disown(this.getModules()); } + getModules() { return capnp_ts_1.Struct.getList(0, Extension._Modules, this); } + hasModules() { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(0, this)); } + initModules(length) { return capnp_ts_1.Struct.initList(0, Extension._Modules, length, this); } + setModules(value) { capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(0, this)); } + toString() { return "Extension_" + super.toString(); } } exports.Extension = Extension; Extension.Module = Extension_Module; -Extension._capnp = { - displayName: "Extension", - id: "e390128a861973a6", - size: new capnp_ts_1.ObjectSize(0, 1), -}; +Extension._capnp = { displayName: "Extension", id: "e390128a861973a6", size: new capnp_ts_1.ObjectSize(0, 1) }; Config._Services = capnp.CompositeList(Service); Config._Sockets = capnp.CompositeList(Socket); Config._Extensions = capnp.CompositeList(Extension); -Worker_Binding_WrappedBinding._InnerBindings = - capnp.CompositeList(Worker_Binding); +Worker_Binding_WrappedBinding._InnerBindings = capnp.CompositeList(Worker_Binding); Worker._Modules = capnp.CompositeList(Worker_Module); Worker._Bindings = capnp.CompositeList(Worker_Binding); -Worker._DurableObjectNamespaces = capnp.CompositeList( - Worker_DurableObjectNamespace -); +Worker._DurableObjectNamespaces = capnp.CompositeList(Worker_DurableObjectNamespace); HttpOptions._InjectRequestHeaders = capnp.CompositeList(HttpOptions_Header); HttpOptions._InjectResponseHeaders = capnp.CompositeList(HttpOptions_Header); Extension._Modules = capnp.CompositeList(Extension_Module); diff --git a/packages/miniflare/src/runtime/config/workerd.ts b/packages/miniflare/src/runtime/config/workerd.ts index 9a5f2d48b402..90a48533e1cc 100644 --- a/packages/miniflare/src/runtime/config/workerd.ts +++ b/packages/miniflare/src/runtime/config/workerd.ts @@ -19,6 +19,7 @@ export interface Config { sockets?: Socket[]; v8Flags?: string[]; extensions?: Extension[]; + autogates?: string[]; } export type Socket = { @@ -76,6 +77,8 @@ export type Worker_Module = { | { wasm?: Uint8Array } | { json?: string } | { nodeJsCompatModule?: string } + | { pythonModule?: string } + | { pythonRequirement?: string } ); export type Worker_Binding = { diff --git a/packages/miniflare/test/index.spec.ts b/packages/miniflare/test/index.spec.ts index db8707620bb5..58dbf9196d61 100644 --- a/packages/miniflare/test/index.spec.ts +++ b/packages/miniflare/test/index.spec.ts @@ -727,6 +727,29 @@ test("Miniflare: modules in sub-directories", async (t) => { t.is(await res.text(), "123"); }); +test.only("Miniflare: python modules", async (t) => { + const mf = new Miniflare({ + modules: [ + { + type: "PythonModule", + path: "index", + contents: "from test_module import add; from js import Response;\ndef fetch(request):\n return Response.new(add(2,2))", + }, + { + type: "PythonModule", + path: "test_module", + contents: `def add(a, b):\n return a + b`, + }, + ], + compatibilityFlags: [ + "experimental" + ] + }); + t.teardown(() => mf.dispose()); + const res = await mf.dispatchFetch("http://localhost"); + t.is(await res.text(), "4"); +}); + test("Miniflare: HTTPS fetches using browser CA certificates", async (t) => { const mf = new Miniflare({ modules: true, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f626c0ade075..4e49a9249d2e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -876,8 +876,8 @@ importers: specifier: ^5.28.2 version: 5.28.2 workerd: - specifier: 1.20231218.0 - version: 1.20231218.0 + specifier: 1.20240129.0 + version: 1.20240129.0 ws: specifier: ^8.11.0 version: 8.14.2 @@ -3938,8 +3938,8 @@ packages: marked: 0.3.19 dev: false - /@cloudflare/workerd-darwin-64@1.20231218.0: - resolution: {integrity: sha512-547gOmTIVmRdDy7HNAGJUPELa+fSDm2Y0OCxqAtQOz0GLTDu1vX61xYmsb2rn91+v3xW6eMttEIpbYokKjtfJA==} + /@cloudflare/workerd-darwin-64@1.20240129.0: + resolution: {integrity: sha512-DfVVB5IsQLVcWPJwV019vY3nEtU88c2Qu2ST5SQxqcGivZ52imagLRK0RHCIP8PK4piSiq90qUC6ybppUsw8eg==} engines: {node: '>=16'} cpu: [x64] os: [darwin] @@ -3947,8 +3947,8 @@ packages: dev: false optional: true - /@cloudflare/workerd-darwin-arm64@1.20231218.0: - resolution: {integrity: sha512-b39qrU1bKolCfmKFDAnX4vXcqzISkEUVE/V8sMBsFzxrIpNAbcUHBZAQPYmS/OHIGB94KjOVokvDi7J6UNurPw==} + /@cloudflare/workerd-darwin-arm64@1.20240129.0: + resolution: {integrity: sha512-t0q8ABkmumG1zRM/MZ/vIv/Ysx0vTAXnQAPy/JW5aeQi/tqrypXkO9/NhPc0jbF/g/hIPrWEqpDgEp3CB7Da7Q==} engines: {node: '>=16'} cpu: [arm64] os: [darwin] @@ -3956,8 +3956,8 @@ packages: dev: false optional: true - /@cloudflare/workerd-linux-64@1.20231218.0: - resolution: {integrity: sha512-dMUF1wA+0mybm6hHNOCgY/WMNMwomPPs4I7vvYCgwHSkch0Q2Wb7TnxQZSt8d1PK/myibaBwadrlIxpjxmpz3w==} + /@cloudflare/workerd-linux-64@1.20240129.0: + resolution: {integrity: sha512-sFV1uobHgDI+6CKBS/ZshQvOvajgwl6BtiYaH4PSFSpvXTmRx+A9bcug+6BnD+V4WgwxTiEO2iR97E1XuwDAVw==} engines: {node: '>=16'} cpu: [x64] os: [linux] @@ -3965,8 +3965,8 @@ packages: dev: false optional: true - /@cloudflare/workerd-linux-arm64@1.20231218.0: - resolution: {integrity: sha512-2s5uc8IHt0QmWyKxAr1Fy+4b8Xy0b/oUtlPnm5MrKi2gDRlZzR7JvxENPJCpCnYENydS8lzvkMiAFECPBccmyQ==} + /@cloudflare/workerd-linux-arm64@1.20240129.0: + resolution: {integrity: sha512-O7q7htHaFRp8PgTqNJx1/fYc3+LnvAo6kWWB9a14C5OWak6AAZk42PNpKPx+DXTmGvI+8S1+futBGUeJ8NPDXg==} engines: {node: '>=16'} cpu: [arm64] os: [linux] @@ -3974,8 +3974,8 @@ packages: dev: false optional: true - /@cloudflare/workerd-windows-64@1.20231218.0: - resolution: {integrity: sha512-oN5hz6TXUDB5YKUN5N3QWAv6cYz9JjTZ9g16HVyoegVFEL6/zXU3tV19MBX2IvlE11ab/mRogEv9KXVIrHfKmA==} + /@cloudflare/workerd-windows-64@1.20240129.0: + resolution: {integrity: sha512-YqGno0XSqqqkDmNoGEX6M8kJlI2lEfWntbTPVtHaZlaXVR9sWfoD7TEno0NKC95cXFz+ioyFLbgbOdnfWwmVAA==} engines: {node: '>=16'} cpu: [x64] os: [win32] @@ -19558,17 +19558,17 @@ packages: resolution: {integrity: sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==} dev: true - /workerd@1.20231218.0: - resolution: {integrity: sha512-AGIsDvqCrcwhoA9kb1hxOhVAe53/xJeaGZxL4FbYI9FvO17DZwrnqGq+6eqItJ6Cfw1ZLmf3BM+QdMWaL2bFWQ==} + /workerd@1.20240129.0: + resolution: {integrity: sha512-t4pnsmjjk/u+GdVDgH2M1AFmJaBUABshYK/vT/HNrAXsHSwN6VR8Yqw0JQ845OokO34VLkuUtYQYyxHHKpdtsw==} engines: {node: '>=16'} hasBin: true requiresBuild: true optionalDependencies: - '@cloudflare/workerd-darwin-64': 1.20231218.0 - '@cloudflare/workerd-darwin-arm64': 1.20231218.0 - '@cloudflare/workerd-linux-64': 1.20231218.0 - '@cloudflare/workerd-linux-arm64': 1.20231218.0 - '@cloudflare/workerd-windows-64': 1.20231218.0 + '@cloudflare/workerd-darwin-64': 1.20240129.0 + '@cloudflare/workerd-darwin-arm64': 1.20240129.0 + '@cloudflare/workerd-linux-64': 1.20240129.0 + '@cloudflare/workerd-linux-arm64': 1.20240129.0 + '@cloudflare/workerd-windows-64': 1.20240129.0 dev: false /wrap-ansi@6.2.0: