@aperture-browser/executor-client 1.0.0-beta.3 → 1.0.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -241,6 +241,13 @@ type Limits = Message<"aperture.executor.v1.Limits"> & {
241
241
  * @generated from field: optional google.protobuf.Duration keep_recordings = 6;
242
242
  */
243
243
  keepRecordings?: Duration | undefined;
244
+ /**
245
+ * The largest file clients put into the session, in bytes; zero for any size. Holds at
246
+ * once where the session runs. As the executor is set up, without.
247
+ *
248
+ * @generated from field: optional uint64 upload_bytes = 7;
249
+ */
250
+ uploadBytes?: bigint | undefined;
244
251
  };
245
252
  /**
246
253
  * Describes the message aperture.executor.v1.Limits.
package/dist/index.js CHANGED
@@ -73,7 +73,7 @@ var executor_pb_exports = /* @__PURE__ */ __exportAll({
73
73
  /**
74
74
  * Describes the file aperture/executor/v1/executor.proto.
75
75
  */
76
- const file_aperture_executor_v1_executor = /*@__PURE__*/ fileDesc("CiNhcGVydHVyZS9leGVjdXRvci92MS9leGVjdXRvci5wcm90bxIUYXBlcnR1cmUuZXhlY3V0b3IudjEi3QEKCEV4ZWN1dG9yEg8KB3ZlcnNpb24YASABKAkSLwoIZmVhdHVyZXMYAiADKA4yHS5hcGVydHVyZS5leGVjdXRvci52MS5GZWF0dXJlEi4KB25ldHdvcmsYAyABKAsyHS5hcGVydHVyZS5leGVjdXRvci52MS5OZXR3b3JrEiwKBmxpbWl0cxgEIAEoCzIcLmFwZXJ0dXJlLmV4ZWN1dG9yLnYxLkxpbWl0cxIXCg9ob2xkc19yZXNvdXJjZXMYBSABKAgSGAoQc2hhcmVzX3NuYXBzaG90cxgGIAEoCCIUChJHZXRFeGVjdXRvclJlcXVlc3QiRwoTR2V0RXhlY3V0b3JSZXNwb25zZRIwCghleGVjdXRvchgBIAEoCzIeLmFwZXJ0dXJlLmV4ZWN1dG9yLnYxLkV4ZWN1dG9yIjUKCEZlYXR1c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cGVydHVyZS5leGVjdXRvci52MS5MaXN0U25hcHNob3RzUmVxdWVzdBorLmFwZXJ0dXJlLmV4ZWN1dG9yLnYxLkxpc3RTbmFwc2hvdHNSZXNwb25zZRJrCg5EZWxldGVTbmFwc2hvdBIrLmFwZXJ0dXJlLmV4ZWN1dG9yLnYxLkRlbGV0ZVNuYXBzaG90UmVxdWVzdBosLmFwZXJ0dXJlLmV4ZWN1dG9yLnYxLkRlbGV0ZVNuYXBzaG90UmVzcG9uc2ViBnByb3RvMw", [file_google_protobuf_duration, file_google_protobuf_timestamp]);
76
+ const file_aperture_executor_v1_executor = /*@__PURE__*/ fileDesc("CiNhcGVydHVyZS9leGVjdXRvci92MS9leGVjdXRvci5wcm90bxIUYXBlcnR1cmUuZXhlY3V0b3IudjEi3QEKCEV4ZWN1dG9yEg8KB3ZlcnNpb24YASABKAkSLwoIZmVhdHVyZXMYAiADKA4yHS5hcGVydHVyZS5leGVjdXRvci52MS5GZWF0dXJlEi4KB25ldHdvcmsYAyABKAsyHS5hcGVydHVyZS5leGVjdXRvci52MS5OZXR3b3JrEiwKBmxpbWl0cxgEIAEoCzIcLmFwZXJ0dXJlLmV4ZWN1dG9yLnYxLkxpbWl0cxIXCg9ob2xkc19yZXNvdXJjZXMYBSABKAgSGAoQc2hhcmVzX3NuYXBzaG90cxgGIAEoCCIUChJHZXRFeGVjdXRvclJlcXVlc3QiRwoTR2V0RXhlY3V0b3JSZXNwb25zZRIwCghleGVjdXRvchgBIAEoCzIeLmFwZXJ0dXJlLmV4ZWN1dG9yLnYxLkV4ZWN1dG9yIjUKCEZlYXR1cmVzEikKAm9uGAEgAygOMh0uYXBlcnR1cmUuZXhlY3V0b3IudjEuRmVhdHVyZSJnCgdOZXR3b3JrEi0KA3RjcBgBIAEoDjIgLmFwZXJ0dXJlLmV4ZWN1dG9yLnYxLk5ldHdvcmtUY3ASLQoDdWRwGAIgASgOMiAuYXBlcnR1cmUuZXhlY3V0b3IudjEuTmV0d29ya1VkcCKp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NuYXBzaG90EisuYXBlcnR1cmUuZXhlY3V0b3IudjEuRGVsZXRlU25hcHNob3RSZXF1ZXN0GiwuYXBlcnR1cmUuZXhlY3V0b3IudjEuRGVsZXRlU25hcHNob3RSZXNwb25zZWIGcHJvdG8z", [file_google_protobuf_duration, file_google_protobuf_timestamp]);
77
77
  /**
78
78
  * Describes the message aperture.executor.v1.Executor.
79
79
  * Use `create(ExecutorSchema)` to create a new message.
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../src/gen/aperture/executor/v1/executor_pb.ts","../src/errors.ts","../src/executor.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.17.0 with parameter \"target=ts,import_extension=ts\"\n// @generated from file aperture/executor/v1/executor.proto (package aperture.executor.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Duration, Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_duration, file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file aperture/executor/v1/executor.proto.\n */\nexport const file_aperture_executor_v1_executor: GenFile = /*@__PURE__*/\n fileDesc(\"CiNhcGVydHVyZS9leGVjdXRvci92MS9leGVjdXRvci5wcm90bxIUYXBlcnR1cmUuZXhlY3V0b3IudjEi3QEKCEV4ZWN1dG9yEg8KB3ZlcnNpb24YASABKAkSLwoIZmVhdHVyZXMYAiADKA4yHS5hcGVydHVyZS5leGVjdXRvci52MS5GZWF0dXJlEi4KB25ldHdvcmsYAyABKAsyHS5hcGVydHVyZS5leGVjdXRvci52MS5OZXR3b3JrEiwKBmxpbWl0cxgEIAEoCzIcLmFwZXJ0dXJlLmV4ZWN1dG9yLnYxLkxpbWl0cxIXCg9ob2xkc19y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G9yLnYxLkNyZWF0ZVNuYXBzaG90UmVzcG9uc2USYgoLR2V0U25hcHNob3QSKC5hcGVydHVyZS5leGVjdXRvci52MS5HZXRTbmFwc2hvdFJlcXVlc3QaKS5hcGVydHVyZS5leGVjdXRvci52MS5HZXRTbmFwc2hvdFJlc3BvbnNlEmgKDUxpc3RTbmFwc2hvdHMSKi5hcGVydHVyZS5leGVjdXRvci52MS5MaXN0U25hcHNob3RzUmVxdWVzdBorLmFwZXJ0dXJlLmV4ZWN1dG9yLnYxLkxpc3RTbmFwc2hvdHNSZXNwb25zZRJrCg5EZWxldGVTbmFwc2hvdBIrLmFwZXJ0dXJlLmV4ZWN1dG9yLnYxLkRlbGV0ZVNuYXBzaG90UmVxdWVzdBosLmFwZXJ0dXJlLmV4ZWN1dG9yLnYxLkRlbGV0ZVNuYXBzaG90UmVzcG9uc2ViBnByb3RvMw\", [file_google_protobuf_duration, file_google_protobuf_timestamp]);\n\n/**\n * @generated from message aperture.executor.v1.Executor\n */\nexport type Executor = Message<\"aperture.executor.v1.Executor\"> & {\n /**\n * @generated from field: string version = 1;\n */\n version: string;\n\n /**\n * What its sessions offer unless they say otherwise, and the most one may offer.\n *\n * @generated from field: repeated aperture.executor.v1.Feature features = 2;\n */\n features: Feature[];\n\n /**\n * The network its sessions' browsers have unless they say otherwise, and the most one\n * may have.\n *\n * @generated from field: aperture.executor.v1.Network network = 3;\n */\n network?: Network | undefined;\n\n /**\n * The limits of a session that has none of its own.\n *\n * @generated from field: aperture.executor.v1.Limits limits = 4;\n */\n limits?: Limits | undefined;\n\n /**\n * Whether it holds sessions to limits on what they use, and counts what they use.\n *\n * @generated from field: bool holds_resources = 5;\n */\n holdsResources: boolean;\n\n /**\n * Whether its snapshots are kept where other nodes find them: a session is created\n * from one of them on any node that names the same place.\n *\n * @generated from field: bool shares_snapshots = 6;\n */\n sharesSnapshots: boolean;\n};\n\n/**\n * Describes the message aperture.executor.v1.Executor.\n * Use `create(ExecutorSchema)` to create a new message.\n */\nexport const ExecutorSchema: GenMessage<Executor> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 0);\n\n/**\n * @generated from message aperture.executor.v1.GetExecutorRequest\n */\nexport type GetExecutorRequest = Message<\"aperture.executor.v1.GetExecutorRequest\"> & {\n};\n\n/**\n * Describes the message aperture.executor.v1.GetExecutorRequest.\n * Use `create(GetExecutorRequestSchema)` to create a new message.\n */\nexport const GetExecutorRequestSchema: GenMessage<GetExecutorRequest> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 1);\n\n/**\n * @generated from message aperture.executor.v1.GetExecutorResponse\n */\nexport type GetExecutorResponse = Message<\"aperture.executor.v1.GetExecutorResponse\"> & {\n /**\n * @generated from field: aperture.executor.v1.Executor executor = 1;\n */\n executor?: Executor | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.GetExecutorResponse.\n * Use `create(GetExecutorResponseSchema)` to create a new message.\n */\nexport const GetExecutorResponseSchema: GenMessage<GetExecutorResponse> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 2);\n\n/**\n * @generated from message aperture.executor.v1.Features\n */\nexport type Features = Message<\"aperture.executor.v1.Features\"> & {\n /**\n * @generated from field: repeated aperture.executor.v1.Feature on = 1;\n */\n on: Feature[];\n};\n\n/**\n * Describes the message aperture.executor.v1.Features.\n * Use `create(FeaturesSchema)` to create a new message.\n */\nexport const FeaturesSchema: GenMessage<Features> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 3);\n\n/**\n * @generated from message aperture.executor.v1.Network\n */\nexport type Network = Message<\"aperture.executor.v1.Network\"> & {\n /**\n * @generated from field: aperture.executor.v1.NetworkTcp tcp = 1;\n */\n tcp: NetworkTcp;\n\n /**\n * @generated from field: aperture.executor.v1.NetworkUdp udp = 2;\n */\n udp: NetworkUdp;\n};\n\n/**\n * Describes the message aperture.executor.v1.Network.\n * Use `create(NetworkSchema)` to create a new message.\n */\nexport const NetworkSchema: GenMessage<Network> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 4);\n\n/**\n * @generated from message aperture.executor.v1.Session\n */\nexport type Session = Message<\"aperture.executor.v1.Session\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: aperture.executor.v1.SessionState state = 2;\n */\n state: SessionState;\n\n /**\n * The snapshot the session was created from.\n *\n * @generated from field: optional string snapshot_id = 3;\n */\n snapshotId?: string | undefined;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 4;\n */\n createdAt?: Timestamp | undefined;\n\n /**\n * Set while the session is running.\n *\n * @generated from field: optional aperture.executor.v1.Endpoints endpoints = 5;\n */\n endpoints?: Endpoints | undefined;\n\n /**\n * @generated from field: optional string failure = 6;\n */\n failure?: string | undefined;\n\n /**\n * The limits the session is held to: its own where it has them, the executor's where it\n * does not. One that is left out is not held.\n *\n * @generated from field: aperture.executor.v1.Limits limits = 7;\n */\n limits?: Limits | undefined;\n\n /**\n * What the session uses, while it runs on an executor that counts it.\n *\n * @generated from field: optional aperture.executor.v1.Usage usage = 8;\n */\n usage?: Usage | undefined;\n\n /**\n * Since when nobody uses the session, while it runs and nobody does: no client is\n * connected to it, and this is when the last one left or the last request for it came.\n *\n * @generated from field: optional google.protobuf.Timestamp idle_since = 9;\n */\n idleSince?: Timestamp | undefined;\n\n /**\n * The session was suspended for sitting idle. It is resumed when someone reaches it:\n * on any of its endpoints, which answer once it runs. A session that was suspended on\n * request is not.\n *\n * @generated from field: bool asleep = 10;\n */\n asleep: boolean;\n\n /**\n * What the session offers when it runs.\n *\n * @generated from field: repeated aperture.executor.v1.Feature features = 11;\n */\n features: Feature[];\n\n /**\n * The network its browser has when it runs.\n *\n * @generated from field: aperture.executor.v1.Network network = 12;\n */\n network?: Network | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.Session.\n * Use `create(SessionSchema)` to create a new message.\n */\nexport const SessionSchema: GenMessage<Session> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 5);\n\n/**\n * What a session may use, and how long it may sit idle. Resources are held only by an\n * executor that has a control group of its own to divide.\n *\n * @generated from message aperture.executor.v1.Limits\n */\nexport type Limits = Message<\"aperture.executor.v1.Limits\"> & {\n /**\n * Bytes of memory. A session that needs more loses a process, most likely a tab.\n *\n * @generated from field: optional uint64 memory_bytes = 1;\n */\n memoryBytes?: bigint | undefined;\n\n /**\n * Bytes of swap a session with a memory limit may use on top of it. It may use none\n * unless this says so; a session without a memory limit swaps as the node lets it.\n *\n * @generated from field: optional uint64 swap_bytes = 5;\n */\n swapBytes?: bigint | undefined;\n\n /**\n * Processors' worth of time: 1.5 is a processor and a half.\n *\n * @generated from field: optional double cpus = 2;\n */\n cpus?: number | undefined;\n\n /**\n * Processes and threads.\n *\n * @generated from field: optional uint64 tasks = 3;\n */\n tasks?: bigint | undefined;\n\n /**\n * How long nobody may use the session before the executor suspends it, to resume it\n * when someone reaches it again. A session that records, edits a recording or\n * downloads is in use.\n *\n * @generated from field: optional google.protobuf.Duration suspend_idle_after = 4;\n */\n suspendIdleAfter?: Duration | undefined;\n\n /**\n * How long the session's recordings and screenshots are kept: the executor removes\n * those that were last changed longer ago. Kept for good, without.\n *\n * @generated from field: optional google.protobuf.Duration keep_recordings = 6;\n */\n keepRecordings?: Duration | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.Limits.\n * Use `create(LimitsSchema)` to create a new message.\n */\nexport const LimitsSchema: GenMessage<Limits> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 6);\n\n/**\n * @generated from message aperture.executor.v1.Usage\n */\nexport type Usage = Message<\"aperture.executor.v1.Usage\"> & {\n /**\n * @generated from field: uint64 memory_bytes = 1;\n */\n memoryBytes: bigint;\n\n /**\n * The most it used since it was started.\n *\n * @generated from field: uint64 memory_peak_bytes = 2;\n */\n memoryPeakBytes: bigint;\n\n /**\n * Processor time since it was started.\n *\n * @generated from field: google.protobuf.Duration cpu_time = 3;\n */\n cpuTime?: Duration | undefined;\n\n /**\n * @generated from field: uint64 tasks = 4;\n */\n tasks: bigint;\n\n /**\n * Processes the session lost to its memory limit since it was started.\n *\n * @generated from field: uint64 oom_kills = 5;\n */\n oomKills: bigint;\n};\n\n/**\n * Describes the message aperture.executor.v1.Usage.\n * Use `create(UsageSchema)` to create a new message.\n */\nexport const UsageSchema: GenMessage<Usage> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 7);\n\n/**\n * Where a running session is reached: the executor's paths of it.\n *\n * @generated from message aperture.executor.v1.Endpoints\n */\nexport type Endpoints = Message<\"aperture.executor.v1.Endpoints\"> & {\n /**\n * The browser's CDP WebSocket. `<cdp_path>/json/version` and the other discovery routes\n * are below it.\n *\n * @generated from field: string cdp_path = 1;\n */\n cdpPath: string;\n\n /**\n * The session itself, whose own routes are below it: `<path>/ws` is the session socket,\n * which carries `aperture.live.v1`, `<path>/targets/<id>/screenshot.png` is a browser\n * target as it looks now, `<path>/files/...` are its files, and `<path>/` is a page that\n * shows the session, unless the executor leaves that out.\n *\n * @generated from field: string path = 2;\n */\n path: string;\n\n /**\n * The session's automation, an MCP server over Streamable HTTP.\n *\n * @generated from field: string mcp_path = 3;\n */\n mcpPath: string;\n\n /**\n * Where a client attaches the session's local tunnel: a WebSocket with the subprotocol\n * `aperture-tunnel.v1`, whose binary messages carry yamux; the session opens a stream\n * for every connection its rules route `via: local` and asks on it, as a SOCKS5 client,\n * for the connection to be made on the client's machine.\n *\n * @generated from field: string tunnel_path = 4;\n */\n tunnelPath: string;\n};\n\n/**\n * Describes the message aperture.executor.v1.Endpoints.\n * Use `create(EndpointsSchema)` to create a new message.\n */\nexport const EndpointsSchema: GenMessage<Endpoints> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 8);\n\n/**\n * How a session's browser connections are routed. The first rule that matches a\n * connection decides; one no rule matches is made from the node.\n *\n * @generated from message aperture.executor.v1.ProxyConfig\n */\nexport type ProxyConfig = Message<\"aperture.executor.v1.ProxyConfig\"> & {\n /**\n * The upstreams rules can route through, by name.\n *\n * @generated from field: map<string, aperture.executor.v1.ProxyUpstream> upstreams = 1;\n */\n upstreams: { [key: string]: ProxyUpstream };\n\n /**\n * @generated from field: repeated aperture.executor.v1.ProxyRule rules = 2;\n */\n rules: ProxyRule[];\n\n /**\n * How the session resolves names. Left out, it asks the node's own resolvers.\n *\n * @generated from field: optional aperture.executor.v1.Dns dns = 3;\n */\n dns?: Dns | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.ProxyConfig.\n * Use `create(ProxyConfigSchema)` to create a new message.\n */\nexport const ProxyConfigSchema: GenMessage<ProxyConfig> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 9);\n\n/**\n * For the names the session resolves itself: those of connections made from its node, and\n * those its browser asks for when it has a network of its own. A proxy or a tunnel\n * resolves what goes through it.\n *\n * @generated from message aperture.executor.v1.Dns\n */\nexport type Dns = Message<\"aperture.executor.v1.Dns\"> & {\n /**\n * The addresses of the resolvers to ask; the node's own when there are none.\n *\n * @generated from field: repeated string servers = 1;\n */\n servers: string[];\n\n /**\n * The first record that covers a name gives its addresses.\n *\n * @generated from field: repeated aperture.executor.v1.DnsRecord records = 2;\n */\n records: DnsRecord[];\n};\n\n/**\n * Describes the message aperture.executor.v1.Dns.\n * Use `create(DnsSchema)` to create a new message.\n */\nexport const DnsSchema: GenMessage<Dns> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 10);\n\n/**\n * @generated from message aperture.executor.v1.DnsRecord\n */\nexport type DnsRecord = Message<\"aperture.executor.v1.DnsRecord\"> & {\n /**\n * A name as in a rule's match: exact, `*.suffix` or `*`.\n *\n * @generated from field: string name = 1;\n */\n name: string;\n\n /**\n * @generated from field: repeated string addresses = 2;\n */\n addresses: string[];\n};\n\n/**\n * Describes the message aperture.executor.v1.DnsRecord.\n * Use `create(DnsRecordSchema)` to create a new message.\n */\nexport const DnsRecordSchema: GenMessage<DnsRecord> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 11);\n\n/**\n * @generated from message aperture.executor.v1.ProxyUpstream\n */\nexport type ProxyUpstream = Message<\"aperture.executor.v1.ProxyUpstream\"> & {\n /**\n * A proxy, with its credentials in the URL (`socks5://`, `http://`, `https://`), or a\n * tunnel the session dials (`ws+yamux+socks5://`, `wss+yamux+socks5://`).\n *\n * @generated from field: string url = 1;\n */\n url: string;\n\n /**\n * The secret a tunnel is dialed with. Required for a tunnel, and only for one.\n *\n * @generated from field: optional string auth = 2;\n */\n auth?: string | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.ProxyUpstream.\n * Use `create(ProxyUpstreamSchema)` to create a new message.\n */\nexport const ProxyUpstreamSchema: GenMessage<ProxyUpstream> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 12);\n\n/**\n * @generated from message aperture.executor.v1.ProxyRule\n */\nexport type ProxyRule = Message<\"aperture.executor.v1.ProxyRule\"> & {\n /**\n * `host` or `host:port`; the host is exact, `*.suffix` for subdomains, `*` for any host\n * but localhost, an address, or a network (`10.0.0.0/8`) for the addresses in it. What\n * is IPv6 takes a port in brackets: `[::1]:443`.\n *\n * @generated from field: string match = 1;\n */\n match: string;\n\n /**\n * `direct`, `refuse`, `local` (the tunnel a client attached), an upstream's name, or a\n * proxy's URL.\n *\n * @generated from field: string via = 2;\n */\n via: string;\n\n /**\n * `host` or `host:port`: where the connections are made instead of where the browser\n * named.\n *\n * @generated from field: optional string to = 3;\n */\n to?: string | undefined;\n\n /**\n * The session answers the browser's TLS itself, with a certificate of its own that the\n * session's browser takes for the name, and passes on what is inside: a server that\n * speaks no TLS is `https://` to the session's pages. Such a rule is for port 443 unless\n * its match names another.\n *\n * @generated from field: bool tls = 4;\n */\n tls: boolean;\n};\n\n/**\n * Describes the message aperture.executor.v1.ProxyRule.\n * Use `create(ProxyRuleSchema)` to create a new message.\n */\nexport const ProxyRuleSchema: GenMessage<ProxyRule> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 13);\n\n/**\n * @generated from message aperture.executor.v1.Snapshot\n */\nexport type Snapshot = Message<\"aperture.executor.v1.Snapshot\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: optional string name = 2;\n */\n name?: string | undefined;\n\n /**\n * The session it was taken of.\n *\n * @generated from field: string session_id = 3;\n */\n sessionId: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 4;\n */\n createdAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.Snapshot.\n * Use `create(SnapshotSchema)` to create a new message.\n */\nexport const SnapshotSchema: GenMessage<Snapshot> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 14);\n\n/**\n * @generated from message aperture.executor.v1.CreateSessionRequest\n */\nexport type CreateSessionRequest = Message<\"aperture.executor.v1.CreateSessionRequest\"> & {\n /**\n * @generated from field: optional string snapshot_id = 1;\n */\n snapshotId?: string | undefined;\n\n /**\n * Create the session without starting its browser.\n *\n * @generated from field: bool suspended = 2;\n */\n suspended: boolean;\n\n /**\n * @generated from field: optional aperture.executor.v1.ProxyConfig proxy = 3;\n */\n proxy?: ProxyConfig | undefined;\n\n /**\n * The session's own limits. One that is left out is the executor's; zero is none, also\n * where the executor has one.\n *\n * @generated from field: aperture.executor.v1.Limits limits = 4;\n */\n limits?: Limits | undefined;\n\n /**\n * What the session offers: these and nothing else. Left out, all that the executor\n * lets sessions offer. One the executor does not let sessions offer is refused.\n *\n * @generated from field: optional aperture.executor.v1.Features features = 5;\n */\n features?: Features | undefined;\n\n /**\n * The network the session's browser has. What is left unspecified is as the executor\n * has it; `direct` where the executor has it otherwise is refused.\n *\n * @generated from field: aperture.executor.v1.Network network = 6;\n */\n network?: Network | undefined;\n\n /**\n * Cookies, the storage of origins and tabs for the session's browser to start with,\n * over what its snapshot has: the JSON a session's `storage-state` route takes. Not for\n * a session that is created suspended. The session is answered with as soon as its\n * browser runs, in the state `RESTORING`: it is `RUNNING` once all of the state is in,\n * and `FAILED`, with its browser stopped, where its browser did not take it.\n *\n * @generated from field: optional string storage_state = 7;\n */\n storageState?: string | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.CreateSessionRequest.\n * Use `create(CreateSessionRequestSchema)` to create a new message.\n */\nexport const CreateSessionRequestSchema: GenMessage<CreateSessionRequest> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 15);\n\n/**\n * @generated from message aperture.executor.v1.CreateSessionResponse\n */\nexport type CreateSessionResponse = Message<\"aperture.executor.v1.CreateSessionResponse\"> & {\n /**\n * @generated from field: aperture.executor.v1.Session session = 1;\n */\n session?: Session | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.CreateSessionResponse.\n * Use `create(CreateSessionResponseSchema)` to create a new message.\n */\nexport const CreateSessionResponseSchema: GenMessage<CreateSessionResponse> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 16);\n\n/**\n * @generated from message aperture.executor.v1.GetSessionRequest\n */\nexport type GetSessionRequest = Message<\"aperture.executor.v1.GetSessionRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n};\n\n/**\n * Describes the message aperture.executor.v1.GetSessionRequest.\n * Use `create(GetSessionRequestSchema)` to create a new message.\n */\nexport const GetSessionRequestSchema: GenMessage<GetSessionRequest> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 17);\n\n/**\n * @generated from message aperture.executor.v1.GetSessionResponse\n */\nexport type GetSessionResponse = Message<\"aperture.executor.v1.GetSessionResponse\"> & {\n /**\n * @generated from field: aperture.executor.v1.Session session = 1;\n */\n session?: Session | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.GetSessionResponse.\n * Use `create(GetSessionResponseSchema)` to create a new message.\n */\nexport const GetSessionResponseSchema: GenMessage<GetSessionResponse> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 18);\n\n/**\n * @generated from message aperture.executor.v1.ListSessionsRequest\n */\nexport type ListSessionsRequest = Message<\"aperture.executor.v1.ListSessionsRequest\"> & {\n};\n\n/**\n * Describes the message aperture.executor.v1.ListSessionsRequest.\n * Use `create(ListSessionsRequestSchema)` to create a new message.\n */\nexport const ListSessionsRequestSchema: GenMessage<ListSessionsRequest> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 19);\n\n/**\n * @generated from message aperture.executor.v1.ListSessionsResponse\n */\nexport type ListSessionsResponse = Message<\"aperture.executor.v1.ListSessionsResponse\"> & {\n /**\n * @generated from field: repeated aperture.executor.v1.Session sessions = 1;\n */\n sessions: Session[];\n};\n\n/**\n * Describes the message aperture.executor.v1.ListSessionsResponse.\n * Use `create(ListSessionsResponseSchema)` to create a new message.\n */\nexport const ListSessionsResponseSchema: GenMessage<ListSessionsResponse> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 20);\n\n/**\n * @generated from message aperture.executor.v1.SuspendSessionRequest\n */\nexport type SuspendSessionRequest = Message<\"aperture.executor.v1.SuspendSessionRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n};\n\n/**\n * Describes the message aperture.executor.v1.SuspendSessionRequest.\n * Use `create(SuspendSessionRequestSchema)` to create a new message.\n */\nexport const SuspendSessionRequestSchema: GenMessage<SuspendSessionRequest> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 21);\n\n/**\n * @generated from message aperture.executor.v1.SuspendSessionResponse\n */\nexport type SuspendSessionResponse = Message<\"aperture.executor.v1.SuspendSessionResponse\"> & {\n /**\n * @generated from field: aperture.executor.v1.Session session = 1;\n */\n session?: Session | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.SuspendSessionResponse.\n * Use `create(SuspendSessionResponseSchema)` to create a new message.\n */\nexport const SuspendSessionResponseSchema: GenMessage<SuspendSessionResponse> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 22);\n\n/**\n * @generated from message aperture.executor.v1.ResumeSessionRequest\n */\nexport type ResumeSessionRequest = Message<\"aperture.executor.v1.ResumeSessionRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * Resume the session although another node says it has it, for a node that died with\n * the session on it: the session is as it was last suspended. Only executors that say\n * which sessions they have refuse one for that.\n *\n * @generated from field: bool takeover = 2;\n */\n takeover: boolean;\n};\n\n/**\n * Describes the message aperture.executor.v1.ResumeSessionRequest.\n * Use `create(ResumeSessionRequestSchema)` to create a new message.\n */\nexport const ResumeSessionRequestSchema: GenMessage<ResumeSessionRequest> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 23);\n\n/**\n * @generated from message aperture.executor.v1.ResumeSessionResponse\n */\nexport type ResumeSessionResponse = Message<\"aperture.executor.v1.ResumeSessionResponse\"> & {\n /**\n * @generated from field: aperture.executor.v1.Session session = 1;\n */\n session?: Session | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.ResumeSessionResponse.\n * Use `create(ResumeSessionResponseSchema)` to create a new message.\n */\nexport const ResumeSessionResponseSchema: GenMessage<ResumeSessionResponse> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 24);\n\n/**\n * @generated from message aperture.executor.v1.UpdateSessionProxyRequest\n */\nexport type UpdateSessionProxyRequest = Message<\"aperture.executor.v1.UpdateSessionProxyRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * Left out, everything goes direct again.\n *\n * @generated from field: optional aperture.executor.v1.ProxyConfig proxy = 2;\n */\n proxy?: ProxyConfig | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.UpdateSessionProxyRequest.\n * Use `create(UpdateSessionProxyRequestSchema)` to create a new message.\n */\nexport const UpdateSessionProxyRequestSchema: GenMessage<UpdateSessionProxyRequest> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 25);\n\n/**\n * @generated from message aperture.executor.v1.UpdateSessionProxyResponse\n */\nexport type UpdateSessionProxyResponse = Message<\"aperture.executor.v1.UpdateSessionProxyResponse\"> & {\n};\n\n/**\n * Describes the message aperture.executor.v1.UpdateSessionProxyResponse.\n * Use `create(UpdateSessionProxyResponseSchema)` to create a new message.\n */\nexport const UpdateSessionProxyResponseSchema: GenMessage<UpdateSessionProxyResponse> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 26);\n\n/**\n * @generated from message aperture.executor.v1.UpdateSessionLimitsRequest\n */\nexport type UpdateSessionLimitsRequest = Message<\"aperture.executor.v1.UpdateSessionLimitsRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * As a session is created with: one left out is the executor's, and zero is none.\n *\n * @generated from field: aperture.executor.v1.Limits limits = 2;\n */\n limits?: Limits | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.UpdateSessionLimitsRequest.\n * Use `create(UpdateSessionLimitsRequestSchema)` to create a new message.\n */\nexport const UpdateSessionLimitsRequestSchema: GenMessage<UpdateSessionLimitsRequest> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 27);\n\n/**\n * @generated from message aperture.executor.v1.UpdateSessionLimitsResponse\n */\nexport type UpdateSessionLimitsResponse = Message<\"aperture.executor.v1.UpdateSessionLimitsResponse\"> & {\n};\n\n/**\n * Describes the message aperture.executor.v1.UpdateSessionLimitsResponse.\n * Use `create(UpdateSessionLimitsResponseSchema)` to create a new message.\n */\nexport const UpdateSessionLimitsResponseSchema: GenMessage<UpdateSessionLimitsResponse> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 28);\n\n/**\n * @generated from message aperture.executor.v1.UpdateSessionFeaturesRequest\n */\nexport type UpdateSessionFeaturesRequest = Message<\"aperture.executor.v1.UpdateSessionFeaturesRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * Left out, the session offers all the executor's sessions do.\n *\n * @generated from field: optional aperture.executor.v1.Features features = 2;\n */\n features?: Features | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.UpdateSessionFeaturesRequest.\n * Use `create(UpdateSessionFeaturesRequestSchema)` to create a new message.\n */\nexport const UpdateSessionFeaturesRequestSchema: GenMessage<UpdateSessionFeaturesRequest> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 29);\n\n/**\n * @generated from message aperture.executor.v1.UpdateSessionFeaturesResponse\n */\nexport type UpdateSessionFeaturesResponse = Message<\"aperture.executor.v1.UpdateSessionFeaturesResponse\"> & {\n};\n\n/**\n * Describes the message aperture.executor.v1.UpdateSessionFeaturesResponse.\n * Use `create(UpdateSessionFeaturesResponseSchema)` to create a new message.\n */\nexport const UpdateSessionFeaturesResponseSchema: GenMessage<UpdateSessionFeaturesResponse> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 30);\n\n/**\n * @generated from message aperture.executor.v1.DeleteSessionRequest\n */\nexport type DeleteSessionRequest = Message<\"aperture.executor.v1.DeleteSessionRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n};\n\n/**\n * Describes the message aperture.executor.v1.DeleteSessionRequest.\n * Use `create(DeleteSessionRequestSchema)` to create a new message.\n */\nexport const DeleteSessionRequestSchema: GenMessage<DeleteSessionRequest> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 31);\n\n/**\n * @generated from message aperture.executor.v1.DeleteSessionResponse\n */\nexport type DeleteSessionResponse = Message<\"aperture.executor.v1.DeleteSessionResponse\"> & {\n};\n\n/**\n * Describes the message aperture.executor.v1.DeleteSessionResponse.\n * Use `create(DeleteSessionResponseSchema)` to create a new message.\n */\nexport const DeleteSessionResponseSchema: GenMessage<DeleteSessionResponse> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 32);\n\n/**\n * @generated from message aperture.executor.v1.WatchSessionsRequest\n */\nexport type WatchSessionsRequest = Message<\"aperture.executor.v1.WatchSessionsRequest\"> & {\n};\n\n/**\n * Describes the message aperture.executor.v1.WatchSessionsRequest.\n * Use `create(WatchSessionsRequestSchema)` to create a new message.\n */\nexport const WatchSessionsRequestSchema: GenMessage<WatchSessionsRequest> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 33);\n\n/**\n * @generated from message aperture.executor.v1.WatchSessionsResponse\n */\nexport type WatchSessionsResponse = Message<\"aperture.executor.v1.WatchSessionsResponse\"> & {\n /**\n * @generated from oneof aperture.executor.v1.WatchSessionsResponse.event\n */\n event: {\n /**\n * A session as it is now: one there was when the watching began, a new one, or one\n * that changed.\n *\n * @generated from field: aperture.executor.v1.Session session = 1;\n */\n value: Session;\n case: \"session\";\n } | {\n /**\n * The id of a session this node has no more: deleted, or evicted.\n *\n * @generated from field: string gone = 2;\n */\n value: string;\n case: \"gone\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message aperture.executor.v1.WatchSessionsResponse.\n * Use `create(WatchSessionsResponseSchema)` to create a new message.\n */\nexport const WatchSessionsResponseSchema: GenMessage<WatchSessionsResponse> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 34);\n\n/**\n * @generated from message aperture.executor.v1.EvictSessionRequest\n */\nexport type EvictSessionRequest = Message<\"aperture.executor.v1.EvictSessionRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n};\n\n/**\n * Describes the message aperture.executor.v1.EvictSessionRequest.\n * Use `create(EvictSessionRequestSchema)` to create a new message.\n */\nexport const EvictSessionRequestSchema: GenMessage<EvictSessionRequest> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 35);\n\n/**\n * @generated from message aperture.executor.v1.EvictSessionResponse\n */\nexport type EvictSessionResponse = Message<\"aperture.executor.v1.EvictSessionResponse\"> & {\n};\n\n/**\n * Describes the message aperture.executor.v1.EvictSessionResponse.\n * Use `create(EvictSessionResponseSchema)` to create a new message.\n */\nexport const EvictSessionResponseSchema: GenMessage<EvictSessionResponse> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 36);\n\n/**\n * @generated from message aperture.executor.v1.ListStoredSessionsRequest\n */\nexport type ListStoredSessionsRequest = Message<\"aperture.executor.v1.ListStoredSessionsRequest\"> & {\n};\n\n/**\n * Describes the message aperture.executor.v1.ListStoredSessionsRequest.\n * Use `create(ListStoredSessionsRequestSchema)` to create a new message.\n */\nexport const ListStoredSessionsRequestSchema: GenMessage<ListStoredSessionsRequest> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 37);\n\n/**\n * @generated from message aperture.executor.v1.ListStoredSessionsResponse\n */\nexport type ListStoredSessionsResponse = Message<\"aperture.executor.v1.ListStoredSessionsResponse\"> & {\n /**\n * @generated from field: repeated aperture.executor.v1.StoredSession sessions = 1;\n */\n sessions: StoredSession[];\n};\n\n/**\n * Describes the message aperture.executor.v1.ListStoredSessionsResponse.\n * Use `create(ListStoredSessionsResponseSchema)` to create a new message.\n */\nexport const ListStoredSessionsResponseSchema: GenMessage<ListStoredSessionsResponse> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 38);\n\n/**\n * A session as it is where nodes share sessions.\n *\n * @generated from message aperture.executor.v1.StoredSession\n */\nexport type StoredSession = Message<\"aperture.executor.v1.StoredSession\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: optional string snapshot_id = 2;\n */\n snapshotId?: string | undefined;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 3;\n */\n createdAt?: Timestamp | undefined;\n\n /**\n * The node that says it has the session, where nodes say so and one does.\n *\n * @generated from field: optional string held_by = 4;\n */\n heldBy?: string | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.StoredSession.\n * Use `create(StoredSessionSchema)` to create a new message.\n */\nexport const StoredSessionSchema: GenMessage<StoredSession> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 39);\n\n/**\n * @generated from message aperture.executor.v1.CreateSnapshotRequest\n */\nexport type CreateSnapshotRequest = Message<\"aperture.executor.v1.CreateSnapshotRequest\"> & {\n /**\n * @generated from field: string session_id = 1;\n */\n sessionId: string;\n\n /**\n * @generated from field: optional string name = 2;\n */\n name?: string | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.CreateSnapshotRequest.\n * Use `create(CreateSnapshotRequestSchema)` to create a new message.\n */\nexport const CreateSnapshotRequestSchema: GenMessage<CreateSnapshotRequest> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 40);\n\n/**\n * @generated from message aperture.executor.v1.CreateSnapshotResponse\n */\nexport type CreateSnapshotResponse = Message<\"aperture.executor.v1.CreateSnapshotResponse\"> & {\n /**\n * @generated from field: aperture.executor.v1.Snapshot snapshot = 1;\n */\n snapshot?: Snapshot | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.CreateSnapshotResponse.\n * Use `create(CreateSnapshotResponseSchema)` to create a new message.\n */\nexport const CreateSnapshotResponseSchema: GenMessage<CreateSnapshotResponse> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 41);\n\n/**\n * @generated from message aperture.executor.v1.GetSnapshotRequest\n */\nexport type GetSnapshotRequest = Message<\"aperture.executor.v1.GetSnapshotRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n};\n\n/**\n * Describes the message aperture.executor.v1.GetSnapshotRequest.\n * Use `create(GetSnapshotRequestSchema)` to create a new message.\n */\nexport const GetSnapshotRequestSchema: GenMessage<GetSnapshotRequest> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 42);\n\n/**\n * @generated from message aperture.executor.v1.GetSnapshotResponse\n */\nexport type GetSnapshotResponse = Message<\"aperture.executor.v1.GetSnapshotResponse\"> & {\n /**\n * @generated from field: aperture.executor.v1.Snapshot snapshot = 1;\n */\n snapshot?: Snapshot | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.GetSnapshotResponse.\n * Use `create(GetSnapshotResponseSchema)` to create a new message.\n */\nexport const GetSnapshotResponseSchema: GenMessage<GetSnapshotResponse> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 43);\n\n/**\n * @generated from message aperture.executor.v1.ListSnapshotsRequest\n */\nexport type ListSnapshotsRequest = Message<\"aperture.executor.v1.ListSnapshotsRequest\"> & {\n};\n\n/**\n * Describes the message aperture.executor.v1.ListSnapshotsRequest.\n * Use `create(ListSnapshotsRequestSchema)` to create a new message.\n */\nexport const ListSnapshotsRequestSchema: GenMessage<ListSnapshotsRequest> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 44);\n\n/**\n * @generated from message aperture.executor.v1.ListSnapshotsResponse\n */\nexport type ListSnapshotsResponse = Message<\"aperture.executor.v1.ListSnapshotsResponse\"> & {\n /**\n * @generated from field: repeated aperture.executor.v1.Snapshot snapshots = 1;\n */\n snapshots: Snapshot[];\n};\n\n/**\n * Describes the message aperture.executor.v1.ListSnapshotsResponse.\n * Use `create(ListSnapshotsResponseSchema)` to create a new message.\n */\nexport const ListSnapshotsResponseSchema: GenMessage<ListSnapshotsResponse> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 45);\n\n/**\n * @generated from message aperture.executor.v1.DeleteSnapshotRequest\n */\nexport type DeleteSnapshotRequest = Message<\"aperture.executor.v1.DeleteSnapshotRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n};\n\n/**\n * Describes the message aperture.executor.v1.DeleteSnapshotRequest.\n * Use `create(DeleteSnapshotRequestSchema)` to create a new message.\n */\nexport const DeleteSnapshotRequestSchema: GenMessage<DeleteSnapshotRequest> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 46);\n\n/**\n * @generated from message aperture.executor.v1.DeleteSnapshotResponse\n */\nexport type DeleteSnapshotResponse = Message<\"aperture.executor.v1.DeleteSnapshotResponse\"> & {\n};\n\n/**\n * Describes the message aperture.executor.v1.DeleteSnapshotResponse.\n * Use `create(DeleteSnapshotResponseSchema)` to create a new message.\n */\nexport const DeleteSnapshotResponseSchema: GenMessage<DeleteSnapshotResponse> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 47);\n\n/**\n * @generated from enum aperture.executor.v1.SessionState\n */\nexport enum SessionState {\n /**\n * @generated from enum value: SESSION_STATE_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * No browser runs; the profile is kept.\n *\n * @generated from enum value: SESSION_STATE_SUSPENDED = 1;\n */\n SUSPENDED = 1,\n\n /**\n * @generated from enum value: SESSION_STATE_STARTING = 2;\n */\n STARTING = 2,\n\n /**\n * @generated from enum value: SESSION_STATE_RUNNING = 3;\n */\n RUNNING = 3,\n\n /**\n * @generated from enum value: SESSION_STATE_SUSPENDING = 4;\n */\n SUSPENDING = 4,\n\n /**\n * The browser ended without being asked to, or did not take the storage state the\n * session was created with; `failure` says how. The profile is kept.\n *\n * @generated from enum value: SESSION_STATE_FAILED = 5;\n */\n FAILED = 5,\n\n /**\n * The browser runs and is being given the storage state the session was created with.\n * The session is watched meanwhile and takes no input, and runs once all of it is in.\n *\n * @generated from enum value: SESSION_STATE_RESTORING = 6;\n */\n RESTORING = 6,\n}\n\n/**\n * Describes the enum aperture.executor.v1.SessionState.\n */\nexport const SessionStateSchema: GenEnum<SessionState> = /*@__PURE__*/\n enumDesc(file_aperture_executor_v1_executor, 0);\n\n/**\n * Something a session offers besides its picture and input.\n *\n * @generated from enum aperture.executor.v1.Feature\n */\nexport enum Feature {\n /**\n * @generated from enum value: FEATURE_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * Its tabs are heard.\n *\n * @generated from enum value: FEATURE_SOUND = 1;\n */\n SOUND = 1,\n\n /**\n * Clients put files into it, for pages that ask for some.\n *\n * @generated from enum value: FEATURE_UPLOADS = 2;\n */\n UPLOADS = 2,\n\n /**\n * Its browser downloads files.\n *\n * @generated from enum value: FEATURE_DOWNLOADS = 3;\n */\n DOWNLOADS = 3,\n\n /**\n * Its tabs are recorded and screenshots kept.\n *\n * @generated from enum value: FEATURE_RECORDINGS = 4;\n */\n RECORDINGS = 4,\n\n /**\n * What is copied passes between it and its clients.\n *\n * @generated from enum value: FEATURE_CLIPBOARD = 5;\n */\n CLIPBOARD = 5,\n\n /**\n * Its automation endpoint is served.\n *\n * @generated from enum value: FEATURE_MCP = 6;\n */\n MCP = 6,\n\n /**\n * Its browser's DevTools endpoint is served.\n *\n * @generated from enum value: FEATURE_CDP = 7;\n */\n CDP = 7,\n\n /**\n * Clients attach tunnels.\n *\n * @generated from enum value: FEATURE_TUNNEL = 8;\n */\n TUNNEL = 8,\n}\n\n/**\n * Describes the enum aperture.executor.v1.Feature.\n */\nexport const FeatureSchema: GenEnum<Feature> = /*@__PURE__*/\n enumDesc(file_aperture_executor_v1_executor, 1);\n\n/**\n * Where the TCP of a session's browser goes.\n *\n * @generated from enum aperture.executor.v1.NetworkTcp\n */\nexport enum NetworkTcp {\n /**\n * @generated from enum value: NETWORK_TCP_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * Nowhere but through the session's proxy, which holds it to the session's rules.\n *\n * @generated from enum value: NETWORK_TCP_PROXIED = 1;\n */\n PROXIED = 1,\n\n /**\n * Out as well: pages still load through the proxy, but nothing holds the browser to it,\n * and what goes around it reaches the node's network too.\n *\n * @generated from enum value: NETWORK_TCP_DIRECT = 2;\n */\n DIRECT = 2,\n}\n\n/**\n * Describes the enum aperture.executor.v1.NetworkTcp.\n */\nexport const NetworkTcpSchema: GenEnum<NetworkTcp> = /*@__PURE__*/\n enumDesc(file_aperture_executor_v1_executor, 2);\n\n/**\n * Where the UDP of a session's browser goes, which a proxy does not carry.\n *\n * @generated from enum aperture.executor.v1.NetworkUdp\n */\nexport enum NetworkUdp {\n /**\n * @generated from enum value: NETWORK_UDP_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * Nowhere: WebRTC has no way out.\n *\n * @generated from enum value: NETWORK_UDP_NONE = 1;\n */\n NONE = 1,\n\n /**\n * Out, held to nothing, the node's network included.\n *\n * @generated from enum value: NETWORK_UDP_DIRECT = 2;\n */\n DIRECT = 2,\n}\n\n/**\n * Describes the enum aperture.executor.v1.NetworkUdp.\n */\nexport const NetworkUdpSchema: GenEnum<NetworkUdp> = /*@__PURE__*/\n enumDesc(file_aperture_executor_v1_executor, 3);\n\n/**\n * What one node does on request: browser sessions and the snapshots taken of them, on the\n * node's own storage.\n *\n * @generated from service aperture.executor.v1.ExecutorService\n */\nexport const ExecutorService: GenService<{\n /**\n * What this executor is and what its sessions may have.\n *\n * @generated from rpc aperture.executor.v1.ExecutorService.GetExecutor\n */\n getExecutor: {\n methodKind: \"unary\";\n input: typeof GetExecutorRequestSchema;\n output: typeof GetExecutorResponseSchema;\n },\n /**\n * Creates a session, from a snapshot or empty, and starts its browser unless asked not to.\n *\n * @generated from rpc aperture.executor.v1.ExecutorService.CreateSession\n */\n createSession: {\n methodKind: \"unary\";\n input: typeof CreateSessionRequestSchema;\n output: typeof CreateSessionResponseSchema;\n },\n /**\n * @generated from rpc aperture.executor.v1.ExecutorService.GetSession\n */\n getSession: {\n methodKind: \"unary\";\n input: typeof GetSessionRequestSchema;\n output: typeof GetSessionResponseSchema;\n },\n /**\n * @generated from rpc aperture.executor.v1.ExecutorService.ListSessions\n */\n listSessions: {\n methodKind: \"unary\";\n input: typeof ListSessionsRequestSchema;\n output: typeof ListSessionsResponseSchema;\n },\n /**\n * Stops the session's browser and keeps its profile.\n *\n * @generated from rpc aperture.executor.v1.ExecutorService.SuspendSession\n */\n suspendSession: {\n methodKind: \"unary\";\n input: typeof SuspendSessionRequestSchema;\n output: typeof SuspendSessionResponseSchema;\n },\n /**\n * Starts the browser of a suspended or failed session on the profile it left.\n *\n * @generated from rpc aperture.executor.v1.ExecutorService.ResumeSession\n */\n resumeSession: {\n methodKind: \"unary\";\n input: typeof ResumeSessionRequestSchema;\n output: typeof ResumeSessionResponseSchema;\n },\n /**\n * Sets how the session's browser connections are routed, for a running session at once:\n * connections made from then on go by the new rules, and open ones stay as they are.\n *\n * @generated from rpc aperture.executor.v1.ExecutorService.UpdateSessionProxy\n */\n updateSessionProxy: {\n methodKind: \"unary\";\n input: typeof UpdateSessionProxyRequestSchema;\n output: typeof UpdateSessionProxyResponseSchema;\n },\n /**\n * Sets the session's own limits in place of those it had. How long it may sit idle holds\n * at once; what it may use holds from when its browser next starts.\n *\n * @generated from rpc aperture.executor.v1.ExecutorService.UpdateSessionLimits\n */\n updateSessionLimits: {\n methodKind: \"unary\";\n input: typeof UpdateSessionLimitsRequestSchema;\n output: typeof UpdateSessionLimitsResponseSchema;\n },\n /**\n * Sets what the session offers in place of what it was created with, as it is created\n * with. It is told at once, and holds from when its browser next starts: a browser that\n * runs keeps what it started with, its automation's included.\n *\n * @generated from rpc aperture.executor.v1.ExecutorService.UpdateSessionFeatures\n */\n updateSessionFeatures: {\n methodKind: \"unary\";\n input: typeof UpdateSessionFeaturesRequestSchema;\n output: typeof UpdateSessionFeaturesResponseSchema;\n },\n /**\n * Stops the session and removes its profile and files. Snapshots taken of it stay.\n *\n * @generated from rpc aperture.executor.v1.ExecutorService.DeleteSession\n */\n deleteSession: {\n methodKind: \"unary\";\n input: typeof DeleteSessionRequestSchema;\n output: typeof DeleteSessionResponseSchema;\n },\n /**\n * The node's sessions as they change: each as it is now, then each again when what\n * `GetSession` tells of it becomes another, and a word of each that is gone. What a\n * session uses is not a change. It goes on until whoever watches leaves.\n *\n * @generated from rpc aperture.executor.v1.ExecutorService.WatchSessions\n */\n watchSessions: {\n methodKind: \"server_streaming\";\n input: typeof WatchSessionsRequestSchema;\n output: typeof WatchSessionsResponseSchema;\n },\n /**\n * Drops this node's copy of a session that is at rest where nodes share sessions: the\n * session stays there, for whichever node resumes it. Refused for a session that runs,\n * for one whose state here is not the one that is there, and on a node that shares none.\n *\n * @generated from rpc aperture.executor.v1.ExecutorService.EvictSession\n */\n evictSession: {\n methodKind: \"unary\";\n input: typeof EvictSessionRequestSchema;\n output: typeof EvictSessionResponseSchema;\n },\n /**\n * The sessions where nodes share them, whichever node has them or none. Refused on a\n * node that shares none.\n *\n * @generated from rpc aperture.executor.v1.ExecutorService.ListStoredSessions\n */\n listStoredSessions: {\n methodKind: \"unary\";\n input: typeof ListStoredSessionsRequestSchema;\n output: typeof ListStoredSessionsResponseSchema;\n },\n /**\n * Keeps the session's profile as it is now. A running session is suspended for the\n * moment it takes and resumed after.\n *\n * @generated from rpc aperture.executor.v1.ExecutorService.CreateSnapshot\n */\n createSnapshot: {\n methodKind: \"unary\";\n input: typeof CreateSnapshotRequestSchema;\n output: typeof CreateSnapshotResponseSchema;\n },\n /**\n * @generated from rpc aperture.executor.v1.ExecutorService.GetSnapshot\n */\n getSnapshot: {\n methodKind: \"unary\";\n input: typeof GetSnapshotRequestSchema;\n output: typeof GetSnapshotResponseSchema;\n },\n /**\n * @generated from rpc aperture.executor.v1.ExecutorService.ListSnapshots\n */\n listSnapshots: {\n methodKind: \"unary\";\n input: typeof ListSnapshotsRequestSchema;\n output: typeof ListSnapshotsResponseSchema;\n },\n /**\n * Sessions created from the snapshot keep working.\n *\n * @generated from rpc aperture.executor.v1.ExecutorService.DeleteSnapshot\n */\n deleteSnapshot: {\n methodKind: \"unary\";\n input: typeof DeleteSnapshotRequestSchema;\n output: typeof DeleteSnapshotResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_aperture_executor_v1_executor, 0);\n\n","import { ConnectError } from \"@connectrpc/connect\";\nimport { codeToString } from \"@connectrpc/connect/protocol-connect\";\nimport * as Schema from \"effect/Schema\";\n\n/** A Connect error code. */\nexport const ExecutorErrorCode = Schema.Literals([\n \"canceled\",\n \"unknown\",\n \"invalid_argument\",\n \"deadline_exceeded\",\n \"not_found\",\n \"already_exists\",\n \"permission_denied\",\n \"resource_exhausted\",\n \"failed_precondition\",\n \"aborted\",\n \"out_of_range\",\n \"unimplemented\",\n \"internal\",\n \"unavailable\",\n \"data_loss\",\n \"unauthenticated\",\n]);\nexport type ExecutorErrorCode = typeof ExecutorErrorCode.Type;\n\nconst isCode = Schema.is(ExecutorErrorCode);\n\n/** A request to the executor that could not be made, or that the executor refused. */\nexport class ExecutorError extends Schema.TaggedError<ExecutorError>()(\"ExecutorError\", {\n code: ExecutorErrorCode,\n message: Schema.String,\n cause: Schema.optional(Schema.Defect()),\n}) {\n /** What a call that did not give its answer failed with. */\n static from(cause: unknown): ExecutorError {\n const failed = ConnectError.from(cause);\n const code = codeToString(failed.code);\n return new ExecutorError({\n code: isCode(code) ? code : \"unknown\",\n message: failed.rawMessage,\n cause,\n });\n }\n}\n","import type { MessageInitShape } from \"@bufbuild/protobuf\";\nimport { createClient, type Interceptor } from \"@connectrpc/connect\";\nimport { createConnectTransport } from \"@connectrpc/connect-web\";\nimport * as Context from \"effect/Context\";\nimport * as Effect from \"effect/Effect\";\nimport * as Layer from \"effect/Layer\";\nimport * as Stream from \"effect/Stream\";\nimport { ExecutorError } from \"./errors.ts\";\nimport {\n type CreateSessionRequestSchema,\n type CreateSnapshotRequestSchema,\n ExecutorService,\n type FeaturesSchema,\n type LimitsSchema,\n type ProxyConfigSchema,\n} from \"./gen/aperture/executor/v1/executor_pb.ts\";\n\n/** Where an executor is and what lets a caller in. */\nexport interface Address {\n /** The executor's base, such as `https://node.example`. */\n readonly url: string;\n /** The operator token. */\n readonly token: string;\n}\n\nexport type CreateSession = MessageInitShape<typeof CreateSessionRequestSchema>;\nexport type CreateSnapshot = MessageInitShape<typeof CreateSnapshotRequestSchema>;\nexport type ProxyConfigInit = MessageInitShape<typeof ProxyConfigSchema>;\nexport type LimitsInit = MessageInitShape<typeof LimitsSchema>;\nexport type FeaturesInit = MessageInitShape<typeof FeaturesSchema>;\n\n// The executor always sends the message a response is made for.\nconst sent = <A>(value: A | undefined, what: string) =>\n value === undefined\n ? Effect.fail(\n new ExecutorError({ code: \"internal\", message: `the executor's answer has no ${what}` }),\n )\n : Effect.succeed(value);\n\nconst asked = <A>(call: (signal: AbortSignal) => Promise<A>) =>\n Effect.tryPromise({ try: call, catch: (cause) => ExecutorError.from(cause) });\n\n/** One executor's client. */\nexport const make = (address: Address) => {\n const authorized: Interceptor = (next) => (request) => {\n request.header.set(\"Authorization\", `Bearer ${address.token}`);\n return next(request);\n };\n const client = createClient(\n ExecutorService,\n createConnectTransport({\n baseUrl: address.url.replace(/\\/+$/u, \"\"),\n interceptors: [authorized],\n }),\n );\n return {\n /** What the executor is and what its sessions may have. */\n get: asked((signal) => client.getExecutor({}, { signal })).pipe(\n Effect.flatMap((response) => sent(response.executor, \"executor\")),\n ),\n sessions: {\n /** Creates a session, from a snapshot or empty, and starts its browser unless asked not to. */\n create: (request: CreateSession = {}) =>\n asked((signal) => client.createSession(request, { signal })).pipe(\n Effect.flatMap((response) => sent(response.session, \"session\")),\n ),\n get: (id: string) =>\n asked((signal) => client.getSession({ id }, { signal })).pipe(\n Effect.flatMap((response) => sent(response.session, \"session\")),\n ),\n list: asked((signal) => client.listSessions({}, { signal })).pipe(\n Effect.map((response) => response.sessions),\n ),\n /** Stops the session's browser and keeps its profile. */\n suspend: (id: string) =>\n asked((signal) => client.suspendSession({ id }, { signal })).pipe(\n Effect.flatMap((response) => sent(response.session, \"session\")),\n ),\n /**\n * Starts the browser of a suspended or failed session on the profile it left. As a\n * takeover, also when another node says it has the session.\n */\n resume: (id: string, options: { readonly takeover?: boolean } = {}) =>\n asked((signal) =>\n client.resumeSession({ id, takeover: options.takeover ?? false }, { signal }),\n ).pipe(Effect.flatMap((response) => sent(response.session, \"session\"))),\n /**\n * Sets how the session's browser connections are routed. Without a configuration,\n * everything goes direct again.\n */\n setProxy: (id: string, proxy?: ProxyConfigInit) =>\n asked((signal) =>\n client.updateSessionProxy(proxy === undefined ? { id } : { id, proxy }, { signal }),\n ).pipe(Effect.asVoid),\n /**\n * Sets the session's own limits in place of those it had: one left out is the\n * executor's, and zero is none. How long it may sit idle holds at once; what it may\n * use holds from when its browser next starts.\n */\n setLimits: (id: string, limits: LimitsInit) =>\n asked((signal) => client.updateSessionLimits({ id, limits }, { signal })).pipe(\n Effect.asVoid,\n ),\n /**\n * Sets what the session offers, as it is created with; all the node's sessions do,\n * without. Its browser has it from when it next starts.\n */\n setFeatures: (id: string, features: FeaturesInit | undefined) =>\n asked((signal) => client.updateSessionFeatures({ id, features }, { signal })).pipe(\n Effect.asVoid,\n ),\n /** Stops the session and removes its profile and files. Snapshots taken of it stay. */\n delete: (id: string) =>\n asked((signal) => client.deleteSession({ id }, { signal })).pipe(Effect.asVoid),\n /**\n * The node's sessions as they change: each as it is now, then each again when what\n * `get` tells of it becomes another, and the id of each that is gone. It goes on\n * until whoever runs the stream stops.\n */\n watch: Stream.suspend(() => {\n const leaving = new AbortController();\n const events = client.watchSessions({}, { signal: leaving.signal });\n return Stream.fromAsyncIterable(events, (cause) => ExecutorError.from(cause)).pipe(\n Stream.ensuring(Effect.sync(() => leaving.abort())),\n );\n }),\n /**\n * Drops the node's copy of a session that is at rest where nodes share sessions: the\n * session stays there, for whichever node resumes it.\n */\n evict: (id: string) =>\n asked((signal) => client.evictSession({ id }, { signal })).pipe(Effect.asVoid),\n /** The sessions where nodes share them, whichever node has them or none. */\n stored: asked((signal) => client.listStoredSessions({}, { signal })).pipe(\n Effect.map((response) => response.sessions),\n ),\n },\n snapshots: {\n /** Keeps the session's profile as it is now. */\n create: (request: CreateSnapshot) =>\n asked((signal) => client.createSnapshot(request, { signal })).pipe(\n Effect.flatMap((response) => sent(response.snapshot, \"snapshot\")),\n ),\n get: (id: string) =>\n asked((signal) => client.getSnapshot({ id }, { signal })).pipe(\n Effect.flatMap((response) => sent(response.snapshot, \"snapshot\")),\n ),\n list: asked((signal) => client.listSnapshots({}, { signal })).pipe(\n Effect.map((response) => response.snapshots),\n ),\n /** Sessions created from the snapshot keep working. */\n delete: (id: string) =>\n asked((signal) => client.deleteSnapshot({ id }, { signal })).pipe(Effect.asVoid),\n },\n };\n};\n\nexport type ExecutorClient = ReturnType<typeof make>;\n\n/** One executor's client, for programs that pass it along as a service. */\nexport class Executor extends Context.Service<Executor, ExecutorClient>()(\n \"@aperture-browser/executor-client/Executor\",\n) {}\n\nexport const layer = (address: Address) => Layer.succeed(Executor, make(address));\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AM,QAAQ,UAAU,KAAK,OAAO,CAAC"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/gen/aperture/executor/v1/executor_pb.ts","../src/errors.ts","../src/executor.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.17.0 with parameter \"target=ts,import_extension=ts\"\n// @generated from file aperture/executor/v1/executor.proto (package aperture.executor.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Duration, Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_duration, file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file aperture/executor/v1/executor.proto.\n */\nexport const file_aperture_executor_v1_executor: GenFile = /*@__PURE__*/\n fileDesc(\"CiNhcGVydHVyZS9leGVjdXRvci92MS9leGVjdXRvci5wcm90bxIUYXBlcnR1cmUuZXhlY3V0b3IudjEi3QEKCEV4ZWN1dG9yEg8KB3ZlcnNpb24YASABKAkSLwoIZmVhdHVyZXMYAiADKA4yHS5hcGVydHVyZS5leGVjdXRvci52MS5GZWF0dXJlEi4KB25ldHdvcmsYAyABKAsyHS5hcGVydHVyZS5leGVjdXRvci52MS5OZXR3b3JrEiwKBmxpbWl0cxgEIAEoCzIcLmFwZXJ0dXJlLmV4ZWN1dG9yLnYxLkxpbWl0cxIXCg9ob2xkc19yZXNvdXJjZXMYBSABKAgSGAoQc2hhcmVzX3NuYXBzaG90cxgGIAEoCCIUChJHZXRFeGVjdXRvclJlcXVlc3QiRwoTR2V0RXhlY3V0b3JSZXNwb25zZRIwCghleGVjdXRvchgBIAEoCzIeLmFwZXJ0dXJlLmV4ZWN1dG9yLnYxLkV4ZWN1dG9yIjUKCEZlYXR1cmVzEikKAm9uGAEgAygOMh0uYXBlcnR1cmUuZ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mVzcG9uc2USaAoNTGlzdFNuYXBzaG90cxIqLmFwZXJ0dXJlLmV4ZWN1dG9yLnYxLkxpc3RTbmFwc2hvdHNSZXF1ZXN0GisuYXBlcnR1cmUuZXhlY3V0b3IudjEuTGlzdFNuYXBzaG90c1Jlc3BvbnNlEmsKDkRlbGV0ZVNuYXBzaG90EisuYXBlcnR1cmUuZXhlY3V0b3IudjEuRGVsZXRlU25hcHNob3RSZXF1ZXN0GiwuYXBlcnR1cmUuZXhlY3V0b3IudjEuRGVsZXRlU25hcHNob3RSZXNwb25zZWIGcHJvdG8z\", [file_google_protobuf_duration, file_google_protobuf_timestamp]);\n\n/**\n * @generated from message aperture.executor.v1.Executor\n */\nexport type Executor = Message<\"aperture.executor.v1.Executor\"> & {\n /**\n * @generated from field: string version = 1;\n */\n version: string;\n\n /**\n * What its sessions offer unless they say otherwise, and the most one may offer.\n *\n * @generated from field: repeated aperture.executor.v1.Feature features = 2;\n */\n features: Feature[];\n\n /**\n * The network its sessions' browsers have unless they say otherwise, and the most one\n * may have.\n *\n * @generated from field: aperture.executor.v1.Network network = 3;\n */\n network?: Network | undefined;\n\n /**\n * The limits of a session that has none of its own.\n *\n * @generated from field: aperture.executor.v1.Limits limits = 4;\n */\n limits?: Limits | undefined;\n\n /**\n * Whether it holds sessions to limits on what they use, and counts what they use.\n *\n * @generated from field: bool holds_resources = 5;\n */\n holdsResources: boolean;\n\n /**\n * Whether its snapshots are kept where other nodes find them: a session is created\n * from one of them on any node that names the same place.\n *\n * @generated from field: bool shares_snapshots = 6;\n */\n sharesSnapshots: boolean;\n};\n\n/**\n * Describes the message aperture.executor.v1.Executor.\n * Use `create(ExecutorSchema)` to create a new message.\n */\nexport const ExecutorSchema: GenMessage<Executor> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 0);\n\n/**\n * @generated from message aperture.executor.v1.GetExecutorRequest\n */\nexport type GetExecutorRequest = Message<\"aperture.executor.v1.GetExecutorRequest\"> & {\n};\n\n/**\n * Describes the message aperture.executor.v1.GetExecutorRequest.\n * Use `create(GetExecutorRequestSchema)` to create a new message.\n */\nexport const GetExecutorRequestSchema: GenMessage<GetExecutorRequest> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 1);\n\n/**\n * @generated from message aperture.executor.v1.GetExecutorResponse\n */\nexport type GetExecutorResponse = Message<\"aperture.executor.v1.GetExecutorResponse\"> & {\n /**\n * @generated from field: aperture.executor.v1.Executor executor = 1;\n */\n executor?: Executor | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.GetExecutorResponse.\n * Use `create(GetExecutorResponseSchema)` to create a new message.\n */\nexport const GetExecutorResponseSchema: GenMessage<GetExecutorResponse> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 2);\n\n/**\n * @generated from message aperture.executor.v1.Features\n */\nexport type Features = Message<\"aperture.executor.v1.Features\"> & {\n /**\n * @generated from field: repeated aperture.executor.v1.Feature on = 1;\n */\n on: Feature[];\n};\n\n/**\n * Describes the message aperture.executor.v1.Features.\n * Use `create(FeaturesSchema)` to create a new message.\n */\nexport const FeaturesSchema: GenMessage<Features> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 3);\n\n/**\n * @generated from message aperture.executor.v1.Network\n */\nexport type Network = Message<\"aperture.executor.v1.Network\"> & {\n /**\n * @generated from field: aperture.executor.v1.NetworkTcp tcp = 1;\n */\n tcp: NetworkTcp;\n\n /**\n * @generated from field: aperture.executor.v1.NetworkUdp udp = 2;\n */\n udp: NetworkUdp;\n};\n\n/**\n * Describes the message aperture.executor.v1.Network.\n * Use `create(NetworkSchema)` to create a new message.\n */\nexport const NetworkSchema: GenMessage<Network> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 4);\n\n/**\n * @generated from message aperture.executor.v1.Session\n */\nexport type Session = Message<\"aperture.executor.v1.Session\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: aperture.executor.v1.SessionState state = 2;\n */\n state: SessionState;\n\n /**\n * The snapshot the session was created from.\n *\n * @generated from field: optional string snapshot_id = 3;\n */\n snapshotId?: string | undefined;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 4;\n */\n createdAt?: Timestamp | undefined;\n\n /**\n * Set while the session is running.\n *\n * @generated from field: optional aperture.executor.v1.Endpoints endpoints = 5;\n */\n endpoints?: Endpoints | undefined;\n\n /**\n * @generated from field: optional string failure = 6;\n */\n failure?: string | undefined;\n\n /**\n * The limits the session is held to: its own where it has them, the executor's where it\n * does not. One that is left out is not held.\n *\n * @generated from field: aperture.executor.v1.Limits limits = 7;\n */\n limits?: Limits | undefined;\n\n /**\n * What the session uses, while it runs on an executor that counts it.\n *\n * @generated from field: optional aperture.executor.v1.Usage usage = 8;\n */\n usage?: Usage | undefined;\n\n /**\n * Since when nobody uses the session, while it runs and nobody does: no client is\n * connected to it, and this is when the last one left or the last request for it came.\n *\n * @generated from field: optional google.protobuf.Timestamp idle_since = 9;\n */\n idleSince?: Timestamp | undefined;\n\n /**\n * The session was suspended for sitting idle. It is resumed when someone reaches it:\n * on any of its endpoints, which answer once it runs. A session that was suspended on\n * request is not.\n *\n * @generated from field: bool asleep = 10;\n */\n asleep: boolean;\n\n /**\n * What the session offers when it runs.\n *\n * @generated from field: repeated aperture.executor.v1.Feature features = 11;\n */\n features: Feature[];\n\n /**\n * The network its browser has when it runs.\n *\n * @generated from field: aperture.executor.v1.Network network = 12;\n */\n network?: Network | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.Session.\n * Use `create(SessionSchema)` to create a new message.\n */\nexport const SessionSchema: GenMessage<Session> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 5);\n\n/**\n * What a session may use, and how long it may sit idle. Resources are held only by an\n * executor that has a control group of its own to divide.\n *\n * @generated from message aperture.executor.v1.Limits\n */\nexport type Limits = Message<\"aperture.executor.v1.Limits\"> & {\n /**\n * Bytes of memory. A session that needs more loses a process, most likely a tab.\n *\n * @generated from field: optional uint64 memory_bytes = 1;\n */\n memoryBytes?: bigint | undefined;\n\n /**\n * Bytes of swap a session with a memory limit may use on top of it. It may use none\n * unless this says so; a session without a memory limit swaps as the node lets it.\n *\n * @generated from field: optional uint64 swap_bytes = 5;\n */\n swapBytes?: bigint | undefined;\n\n /**\n * Processors' worth of time: 1.5 is a processor and a half.\n *\n * @generated from field: optional double cpus = 2;\n */\n cpus?: number | undefined;\n\n /**\n * Processes and threads.\n *\n * @generated from field: optional uint64 tasks = 3;\n */\n tasks?: bigint | undefined;\n\n /**\n * How long nobody may use the session before the executor suspends it, to resume it\n * when someone reaches it again. A session that records, edits a recording or\n * downloads is in use.\n *\n * @generated from field: optional google.protobuf.Duration suspend_idle_after = 4;\n */\n suspendIdleAfter?: Duration | undefined;\n\n /**\n * How long the session's recordings and screenshots are kept: the executor removes\n * those that were last changed longer ago. Kept for good, without.\n *\n * @generated from field: optional google.protobuf.Duration keep_recordings = 6;\n */\n keepRecordings?: Duration | undefined;\n\n /**\n * The largest file clients put into the session, in bytes; zero for any size. Holds at\n * once where the session runs. As the executor is set up, without.\n *\n * @generated from field: optional uint64 upload_bytes = 7;\n */\n uploadBytes?: bigint | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.Limits.\n * Use `create(LimitsSchema)` to create a new message.\n */\nexport const LimitsSchema: GenMessage<Limits> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 6);\n\n/**\n * @generated from message aperture.executor.v1.Usage\n */\nexport type Usage = Message<\"aperture.executor.v1.Usage\"> & {\n /**\n * @generated from field: uint64 memory_bytes = 1;\n */\n memoryBytes: bigint;\n\n /**\n * The most it used since it was started.\n *\n * @generated from field: uint64 memory_peak_bytes = 2;\n */\n memoryPeakBytes: bigint;\n\n /**\n * Processor time since it was started.\n *\n * @generated from field: google.protobuf.Duration cpu_time = 3;\n */\n cpuTime?: Duration | undefined;\n\n /**\n * @generated from field: uint64 tasks = 4;\n */\n tasks: bigint;\n\n /**\n * Processes the session lost to its memory limit since it was started.\n *\n * @generated from field: uint64 oom_kills = 5;\n */\n oomKills: bigint;\n};\n\n/**\n * Describes the message aperture.executor.v1.Usage.\n * Use `create(UsageSchema)` to create a new message.\n */\nexport const UsageSchema: GenMessage<Usage> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 7);\n\n/**\n * Where a running session is reached: the executor's paths of it.\n *\n * @generated from message aperture.executor.v1.Endpoints\n */\nexport type Endpoints = Message<\"aperture.executor.v1.Endpoints\"> & {\n /**\n * The browser's CDP WebSocket. `<cdp_path>/json/version` and the other discovery routes\n * are below it.\n *\n * @generated from field: string cdp_path = 1;\n */\n cdpPath: string;\n\n /**\n * The session itself, whose own routes are below it: `<path>/ws` is the session socket,\n * which carries `aperture.live.v1`, `<path>/targets/<id>/screenshot.png` is a browser\n * target as it looks now, `<path>/files/...` are its files, and `<path>/` is a page that\n * shows the session, unless the executor leaves that out.\n *\n * @generated from field: string path = 2;\n */\n path: string;\n\n /**\n * The session's automation, an MCP server over Streamable HTTP.\n *\n * @generated from field: string mcp_path = 3;\n */\n mcpPath: string;\n\n /**\n * Where a client attaches the session's local tunnel: a WebSocket with the subprotocol\n * `aperture-tunnel.v1`, whose binary messages carry yamux; the session opens a stream\n * for every connection its rules route `via: local` and asks on it, as a SOCKS5 client,\n * for the connection to be made on the client's machine.\n *\n * @generated from field: string tunnel_path = 4;\n */\n tunnelPath: string;\n};\n\n/**\n * Describes the message aperture.executor.v1.Endpoints.\n * Use `create(EndpointsSchema)` to create a new message.\n */\nexport const EndpointsSchema: GenMessage<Endpoints> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 8);\n\n/**\n * How a session's browser connections are routed. The first rule that matches a\n * connection decides; one no rule matches is made from the node.\n *\n * @generated from message aperture.executor.v1.ProxyConfig\n */\nexport type ProxyConfig = Message<\"aperture.executor.v1.ProxyConfig\"> & {\n /**\n * The upstreams rules can route through, by name.\n *\n * @generated from field: map<string, aperture.executor.v1.ProxyUpstream> upstreams = 1;\n */\n upstreams: { [key: string]: ProxyUpstream };\n\n /**\n * @generated from field: repeated aperture.executor.v1.ProxyRule rules = 2;\n */\n rules: ProxyRule[];\n\n /**\n * How the session resolves names. Left out, it asks the node's own resolvers.\n *\n * @generated from field: optional aperture.executor.v1.Dns dns = 3;\n */\n dns?: Dns | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.ProxyConfig.\n * Use `create(ProxyConfigSchema)` to create a new message.\n */\nexport const ProxyConfigSchema: GenMessage<ProxyConfig> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 9);\n\n/**\n * For the names the session resolves itself: those of connections made from its node, and\n * those its browser asks for when it has a network of its own. A proxy or a tunnel\n * resolves what goes through it.\n *\n * @generated from message aperture.executor.v1.Dns\n */\nexport type Dns = Message<\"aperture.executor.v1.Dns\"> & {\n /**\n * The addresses of the resolvers to ask; the node's own when there are none.\n *\n * @generated from field: repeated string servers = 1;\n */\n servers: string[];\n\n /**\n * The first record that covers a name gives its addresses.\n *\n * @generated from field: repeated aperture.executor.v1.DnsRecord records = 2;\n */\n records: DnsRecord[];\n};\n\n/**\n * Describes the message aperture.executor.v1.Dns.\n * Use `create(DnsSchema)` to create a new message.\n */\nexport const DnsSchema: GenMessage<Dns> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 10);\n\n/**\n * @generated from message aperture.executor.v1.DnsRecord\n */\nexport type DnsRecord = Message<\"aperture.executor.v1.DnsRecord\"> & {\n /**\n * A name as in a rule's match: exact, `*.suffix` or `*`.\n *\n * @generated from field: string name = 1;\n */\n name: string;\n\n /**\n * @generated from field: repeated string addresses = 2;\n */\n addresses: string[];\n};\n\n/**\n * Describes the message aperture.executor.v1.DnsRecord.\n * Use `create(DnsRecordSchema)` to create a new message.\n */\nexport const DnsRecordSchema: GenMessage<DnsRecord> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 11);\n\n/**\n * @generated from message aperture.executor.v1.ProxyUpstream\n */\nexport type ProxyUpstream = Message<\"aperture.executor.v1.ProxyUpstream\"> & {\n /**\n * A proxy, with its credentials in the URL (`socks5://`, `http://`, `https://`), or a\n * tunnel the session dials (`ws+yamux+socks5://`, `wss+yamux+socks5://`).\n *\n * @generated from field: string url = 1;\n */\n url: string;\n\n /**\n * The secret a tunnel is dialed with. Required for a tunnel, and only for one.\n *\n * @generated from field: optional string auth = 2;\n */\n auth?: string | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.ProxyUpstream.\n * Use `create(ProxyUpstreamSchema)` to create a new message.\n */\nexport const ProxyUpstreamSchema: GenMessage<ProxyUpstream> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 12);\n\n/**\n * @generated from message aperture.executor.v1.ProxyRule\n */\nexport type ProxyRule = Message<\"aperture.executor.v1.ProxyRule\"> & {\n /**\n * `host` or `host:port`; the host is exact, `*.suffix` for subdomains, `*` for any host\n * but localhost, an address, or a network (`10.0.0.0/8`) for the addresses in it. What\n * is IPv6 takes a port in brackets: `[::1]:443`.\n *\n * @generated from field: string match = 1;\n */\n match: string;\n\n /**\n * `direct`, `refuse`, `local` (the tunnel a client attached), an upstream's name, or a\n * proxy's URL.\n *\n * @generated from field: string via = 2;\n */\n via: string;\n\n /**\n * `host` or `host:port`: where the connections are made instead of where the browser\n * named.\n *\n * @generated from field: optional string to = 3;\n */\n to?: string | undefined;\n\n /**\n * The session answers the browser's TLS itself, with a certificate of its own that the\n * session's browser takes for the name, and passes on what is inside: a server that\n * speaks no TLS is `https://` to the session's pages. Such a rule is for port 443 unless\n * its match names another.\n *\n * @generated from field: bool tls = 4;\n */\n tls: boolean;\n};\n\n/**\n * Describes the message aperture.executor.v1.ProxyRule.\n * Use `create(ProxyRuleSchema)` to create a new message.\n */\nexport const ProxyRuleSchema: GenMessage<ProxyRule> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 13);\n\n/**\n * @generated from message aperture.executor.v1.Snapshot\n */\nexport type Snapshot = Message<\"aperture.executor.v1.Snapshot\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: optional string name = 2;\n */\n name?: string | undefined;\n\n /**\n * The session it was taken of.\n *\n * @generated from field: string session_id = 3;\n */\n sessionId: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 4;\n */\n createdAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.Snapshot.\n * Use `create(SnapshotSchema)` to create a new message.\n */\nexport const SnapshotSchema: GenMessage<Snapshot> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 14);\n\n/**\n * @generated from message aperture.executor.v1.CreateSessionRequest\n */\nexport type CreateSessionRequest = Message<\"aperture.executor.v1.CreateSessionRequest\"> & {\n /**\n * @generated from field: optional string snapshot_id = 1;\n */\n snapshotId?: string | undefined;\n\n /**\n * Create the session without starting its browser.\n *\n * @generated from field: bool suspended = 2;\n */\n suspended: boolean;\n\n /**\n * @generated from field: optional aperture.executor.v1.ProxyConfig proxy = 3;\n */\n proxy?: ProxyConfig | undefined;\n\n /**\n * The session's own limits. One that is left out is the executor's; zero is none, also\n * where the executor has one.\n *\n * @generated from field: aperture.executor.v1.Limits limits = 4;\n */\n limits?: Limits | undefined;\n\n /**\n * What the session offers: these and nothing else. Left out, all that the executor\n * lets sessions offer. One the executor does not let sessions offer is refused.\n *\n * @generated from field: optional aperture.executor.v1.Features features = 5;\n */\n features?: Features | undefined;\n\n /**\n * The network the session's browser has. What is left unspecified is as the executor\n * has it; `direct` where the executor has it otherwise is refused.\n *\n * @generated from field: aperture.executor.v1.Network network = 6;\n */\n network?: Network | undefined;\n\n /**\n * Cookies, the storage of origins and tabs for the session's browser to start with,\n * over what its snapshot has: the JSON a session's `storage-state` route takes. Not for\n * a session that is created suspended. The session is answered with as soon as its\n * browser runs, in the state `RESTORING`: it is `RUNNING` once all of the state is in,\n * and `FAILED`, with its browser stopped, where its browser did not take it.\n *\n * @generated from field: optional string storage_state = 7;\n */\n storageState?: string | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.CreateSessionRequest.\n * Use `create(CreateSessionRequestSchema)` to create a new message.\n */\nexport const CreateSessionRequestSchema: GenMessage<CreateSessionRequest> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 15);\n\n/**\n * @generated from message aperture.executor.v1.CreateSessionResponse\n */\nexport type CreateSessionResponse = Message<\"aperture.executor.v1.CreateSessionResponse\"> & {\n /**\n * @generated from field: aperture.executor.v1.Session session = 1;\n */\n session?: Session | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.CreateSessionResponse.\n * Use `create(CreateSessionResponseSchema)` to create a new message.\n */\nexport const CreateSessionResponseSchema: GenMessage<CreateSessionResponse> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 16);\n\n/**\n * @generated from message aperture.executor.v1.GetSessionRequest\n */\nexport type GetSessionRequest = Message<\"aperture.executor.v1.GetSessionRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n};\n\n/**\n * Describes the message aperture.executor.v1.GetSessionRequest.\n * Use `create(GetSessionRequestSchema)` to create a new message.\n */\nexport const GetSessionRequestSchema: GenMessage<GetSessionRequest> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 17);\n\n/**\n * @generated from message aperture.executor.v1.GetSessionResponse\n */\nexport type GetSessionResponse = Message<\"aperture.executor.v1.GetSessionResponse\"> & {\n /**\n * @generated from field: aperture.executor.v1.Session session = 1;\n */\n session?: Session | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.GetSessionResponse.\n * Use `create(GetSessionResponseSchema)` to create a new message.\n */\nexport const GetSessionResponseSchema: GenMessage<GetSessionResponse> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 18);\n\n/**\n * @generated from message aperture.executor.v1.ListSessionsRequest\n */\nexport type ListSessionsRequest = Message<\"aperture.executor.v1.ListSessionsRequest\"> & {\n};\n\n/**\n * Describes the message aperture.executor.v1.ListSessionsRequest.\n * Use `create(ListSessionsRequestSchema)` to create a new message.\n */\nexport const ListSessionsRequestSchema: GenMessage<ListSessionsRequest> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 19);\n\n/**\n * @generated from message aperture.executor.v1.ListSessionsResponse\n */\nexport type ListSessionsResponse = Message<\"aperture.executor.v1.ListSessionsResponse\"> & {\n /**\n * @generated from field: repeated aperture.executor.v1.Session sessions = 1;\n */\n sessions: Session[];\n};\n\n/**\n * Describes the message aperture.executor.v1.ListSessionsResponse.\n * Use `create(ListSessionsResponseSchema)` to create a new message.\n */\nexport const ListSessionsResponseSchema: GenMessage<ListSessionsResponse> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 20);\n\n/**\n * @generated from message aperture.executor.v1.SuspendSessionRequest\n */\nexport type SuspendSessionRequest = Message<\"aperture.executor.v1.SuspendSessionRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n};\n\n/**\n * Describes the message aperture.executor.v1.SuspendSessionRequest.\n * Use `create(SuspendSessionRequestSchema)` to create a new message.\n */\nexport const SuspendSessionRequestSchema: GenMessage<SuspendSessionRequest> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 21);\n\n/**\n * @generated from message aperture.executor.v1.SuspendSessionResponse\n */\nexport type SuspendSessionResponse = Message<\"aperture.executor.v1.SuspendSessionResponse\"> & {\n /**\n * @generated from field: aperture.executor.v1.Session session = 1;\n */\n session?: Session | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.SuspendSessionResponse.\n * Use `create(SuspendSessionResponseSchema)` to create a new message.\n */\nexport const SuspendSessionResponseSchema: GenMessage<SuspendSessionResponse> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 22);\n\n/**\n * @generated from message aperture.executor.v1.ResumeSessionRequest\n */\nexport type ResumeSessionRequest = Message<\"aperture.executor.v1.ResumeSessionRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * Resume the session although another node says it has it, for a node that died with\n * the session on it: the session is as it was last suspended. Only executors that say\n * which sessions they have refuse one for that.\n *\n * @generated from field: bool takeover = 2;\n */\n takeover: boolean;\n};\n\n/**\n * Describes the message aperture.executor.v1.ResumeSessionRequest.\n * Use `create(ResumeSessionRequestSchema)` to create a new message.\n */\nexport const ResumeSessionRequestSchema: GenMessage<ResumeSessionRequest> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 23);\n\n/**\n * @generated from message aperture.executor.v1.ResumeSessionResponse\n */\nexport type ResumeSessionResponse = Message<\"aperture.executor.v1.ResumeSessionResponse\"> & {\n /**\n * @generated from field: aperture.executor.v1.Session session = 1;\n */\n session?: Session | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.ResumeSessionResponse.\n * Use `create(ResumeSessionResponseSchema)` to create a new message.\n */\nexport const ResumeSessionResponseSchema: GenMessage<ResumeSessionResponse> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 24);\n\n/**\n * @generated from message aperture.executor.v1.UpdateSessionProxyRequest\n */\nexport type UpdateSessionProxyRequest = Message<\"aperture.executor.v1.UpdateSessionProxyRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * Left out, everything goes direct again.\n *\n * @generated from field: optional aperture.executor.v1.ProxyConfig proxy = 2;\n */\n proxy?: ProxyConfig | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.UpdateSessionProxyRequest.\n * Use `create(UpdateSessionProxyRequestSchema)` to create a new message.\n */\nexport const UpdateSessionProxyRequestSchema: GenMessage<UpdateSessionProxyRequest> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 25);\n\n/**\n * @generated from message aperture.executor.v1.UpdateSessionProxyResponse\n */\nexport type UpdateSessionProxyResponse = Message<\"aperture.executor.v1.UpdateSessionProxyResponse\"> & {\n};\n\n/**\n * Describes the message aperture.executor.v1.UpdateSessionProxyResponse.\n * Use `create(UpdateSessionProxyResponseSchema)` to create a new message.\n */\nexport const UpdateSessionProxyResponseSchema: GenMessage<UpdateSessionProxyResponse> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 26);\n\n/**\n * @generated from message aperture.executor.v1.UpdateSessionLimitsRequest\n */\nexport type UpdateSessionLimitsRequest = Message<\"aperture.executor.v1.UpdateSessionLimitsRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * As a session is created with: one left out is the executor's, and zero is none.\n *\n * @generated from field: aperture.executor.v1.Limits limits = 2;\n */\n limits?: Limits | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.UpdateSessionLimitsRequest.\n * Use `create(UpdateSessionLimitsRequestSchema)` to create a new message.\n */\nexport const UpdateSessionLimitsRequestSchema: GenMessage<UpdateSessionLimitsRequest> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 27);\n\n/**\n * @generated from message aperture.executor.v1.UpdateSessionLimitsResponse\n */\nexport type UpdateSessionLimitsResponse = Message<\"aperture.executor.v1.UpdateSessionLimitsResponse\"> & {\n};\n\n/**\n * Describes the message aperture.executor.v1.UpdateSessionLimitsResponse.\n * Use `create(UpdateSessionLimitsResponseSchema)` to create a new message.\n */\nexport const UpdateSessionLimitsResponseSchema: GenMessage<UpdateSessionLimitsResponse> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 28);\n\n/**\n * @generated from message aperture.executor.v1.UpdateSessionFeaturesRequest\n */\nexport type UpdateSessionFeaturesRequest = Message<\"aperture.executor.v1.UpdateSessionFeaturesRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * Left out, the session offers all the executor's sessions do.\n *\n * @generated from field: optional aperture.executor.v1.Features features = 2;\n */\n features?: Features | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.UpdateSessionFeaturesRequest.\n * Use `create(UpdateSessionFeaturesRequestSchema)` to create a new message.\n */\nexport const UpdateSessionFeaturesRequestSchema: GenMessage<UpdateSessionFeaturesRequest> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 29);\n\n/**\n * @generated from message aperture.executor.v1.UpdateSessionFeaturesResponse\n */\nexport type UpdateSessionFeaturesResponse = Message<\"aperture.executor.v1.UpdateSessionFeaturesResponse\"> & {\n};\n\n/**\n * Describes the message aperture.executor.v1.UpdateSessionFeaturesResponse.\n * Use `create(UpdateSessionFeaturesResponseSchema)` to create a new message.\n */\nexport const UpdateSessionFeaturesResponseSchema: GenMessage<UpdateSessionFeaturesResponse> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 30);\n\n/**\n * @generated from message aperture.executor.v1.DeleteSessionRequest\n */\nexport type DeleteSessionRequest = Message<\"aperture.executor.v1.DeleteSessionRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n};\n\n/**\n * Describes the message aperture.executor.v1.DeleteSessionRequest.\n * Use `create(DeleteSessionRequestSchema)` to create a new message.\n */\nexport const DeleteSessionRequestSchema: GenMessage<DeleteSessionRequest> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 31);\n\n/**\n * @generated from message aperture.executor.v1.DeleteSessionResponse\n */\nexport type DeleteSessionResponse = Message<\"aperture.executor.v1.DeleteSessionResponse\"> & {\n};\n\n/**\n * Describes the message aperture.executor.v1.DeleteSessionResponse.\n * Use `create(DeleteSessionResponseSchema)` to create a new message.\n */\nexport const DeleteSessionResponseSchema: GenMessage<DeleteSessionResponse> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 32);\n\n/**\n * @generated from message aperture.executor.v1.WatchSessionsRequest\n */\nexport type WatchSessionsRequest = Message<\"aperture.executor.v1.WatchSessionsRequest\"> & {\n};\n\n/**\n * Describes the message aperture.executor.v1.WatchSessionsRequest.\n * Use `create(WatchSessionsRequestSchema)` to create a new message.\n */\nexport const WatchSessionsRequestSchema: GenMessage<WatchSessionsRequest> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 33);\n\n/**\n * @generated from message aperture.executor.v1.WatchSessionsResponse\n */\nexport type WatchSessionsResponse = Message<\"aperture.executor.v1.WatchSessionsResponse\"> & {\n /**\n * @generated from oneof aperture.executor.v1.WatchSessionsResponse.event\n */\n event: {\n /**\n * A session as it is now: one there was when the watching began, a new one, or one\n * that changed.\n *\n * @generated from field: aperture.executor.v1.Session session = 1;\n */\n value: Session;\n case: \"session\";\n } | {\n /**\n * The id of a session this node has no more: deleted, or evicted.\n *\n * @generated from field: string gone = 2;\n */\n value: string;\n case: \"gone\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message aperture.executor.v1.WatchSessionsResponse.\n * Use `create(WatchSessionsResponseSchema)` to create a new message.\n */\nexport const WatchSessionsResponseSchema: GenMessage<WatchSessionsResponse> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 34);\n\n/**\n * @generated from message aperture.executor.v1.EvictSessionRequest\n */\nexport type EvictSessionRequest = Message<\"aperture.executor.v1.EvictSessionRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n};\n\n/**\n * Describes the message aperture.executor.v1.EvictSessionRequest.\n * Use `create(EvictSessionRequestSchema)` to create a new message.\n */\nexport const EvictSessionRequestSchema: GenMessage<EvictSessionRequest> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 35);\n\n/**\n * @generated from message aperture.executor.v1.EvictSessionResponse\n */\nexport type EvictSessionResponse = Message<\"aperture.executor.v1.EvictSessionResponse\"> & {\n};\n\n/**\n * Describes the message aperture.executor.v1.EvictSessionResponse.\n * Use `create(EvictSessionResponseSchema)` to create a new message.\n */\nexport const EvictSessionResponseSchema: GenMessage<EvictSessionResponse> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 36);\n\n/**\n * @generated from message aperture.executor.v1.ListStoredSessionsRequest\n */\nexport type ListStoredSessionsRequest = Message<\"aperture.executor.v1.ListStoredSessionsRequest\"> & {\n};\n\n/**\n * Describes the message aperture.executor.v1.ListStoredSessionsRequest.\n * Use `create(ListStoredSessionsRequestSchema)` to create a new message.\n */\nexport const ListStoredSessionsRequestSchema: GenMessage<ListStoredSessionsRequest> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 37);\n\n/**\n * @generated from message aperture.executor.v1.ListStoredSessionsResponse\n */\nexport type ListStoredSessionsResponse = Message<\"aperture.executor.v1.ListStoredSessionsResponse\"> & {\n /**\n * @generated from field: repeated aperture.executor.v1.StoredSession sessions = 1;\n */\n sessions: StoredSession[];\n};\n\n/**\n * Describes the message aperture.executor.v1.ListStoredSessionsResponse.\n * Use `create(ListStoredSessionsResponseSchema)` to create a new message.\n */\nexport const ListStoredSessionsResponseSchema: GenMessage<ListStoredSessionsResponse> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 38);\n\n/**\n * A session as it is where nodes share sessions.\n *\n * @generated from message aperture.executor.v1.StoredSession\n */\nexport type StoredSession = Message<\"aperture.executor.v1.StoredSession\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: optional string snapshot_id = 2;\n */\n snapshotId?: string | undefined;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 3;\n */\n createdAt?: Timestamp | undefined;\n\n /**\n * The node that says it has the session, where nodes say so and one does.\n *\n * @generated from field: optional string held_by = 4;\n */\n heldBy?: string | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.StoredSession.\n * Use `create(StoredSessionSchema)` to create a new message.\n */\nexport const StoredSessionSchema: GenMessage<StoredSession> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 39);\n\n/**\n * @generated from message aperture.executor.v1.CreateSnapshotRequest\n */\nexport type CreateSnapshotRequest = Message<\"aperture.executor.v1.CreateSnapshotRequest\"> & {\n /**\n * @generated from field: string session_id = 1;\n */\n sessionId: string;\n\n /**\n * @generated from field: optional string name = 2;\n */\n name?: string | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.CreateSnapshotRequest.\n * Use `create(CreateSnapshotRequestSchema)` to create a new message.\n */\nexport const CreateSnapshotRequestSchema: GenMessage<CreateSnapshotRequest> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 40);\n\n/**\n * @generated from message aperture.executor.v1.CreateSnapshotResponse\n */\nexport type CreateSnapshotResponse = Message<\"aperture.executor.v1.CreateSnapshotResponse\"> & {\n /**\n * @generated from field: aperture.executor.v1.Snapshot snapshot = 1;\n */\n snapshot?: Snapshot | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.CreateSnapshotResponse.\n * Use `create(CreateSnapshotResponseSchema)` to create a new message.\n */\nexport const CreateSnapshotResponseSchema: GenMessage<CreateSnapshotResponse> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 41);\n\n/**\n * @generated from message aperture.executor.v1.GetSnapshotRequest\n */\nexport type GetSnapshotRequest = Message<\"aperture.executor.v1.GetSnapshotRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n};\n\n/**\n * Describes the message aperture.executor.v1.GetSnapshotRequest.\n * Use `create(GetSnapshotRequestSchema)` to create a new message.\n */\nexport const GetSnapshotRequestSchema: GenMessage<GetSnapshotRequest> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 42);\n\n/**\n * @generated from message aperture.executor.v1.GetSnapshotResponse\n */\nexport type GetSnapshotResponse = Message<\"aperture.executor.v1.GetSnapshotResponse\"> & {\n /**\n * @generated from field: aperture.executor.v1.Snapshot snapshot = 1;\n */\n snapshot?: Snapshot | undefined;\n};\n\n/**\n * Describes the message aperture.executor.v1.GetSnapshotResponse.\n * Use `create(GetSnapshotResponseSchema)` to create a new message.\n */\nexport const GetSnapshotResponseSchema: GenMessage<GetSnapshotResponse> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 43);\n\n/**\n * @generated from message aperture.executor.v1.ListSnapshotsRequest\n */\nexport type ListSnapshotsRequest = Message<\"aperture.executor.v1.ListSnapshotsRequest\"> & {\n};\n\n/**\n * Describes the message aperture.executor.v1.ListSnapshotsRequest.\n * Use `create(ListSnapshotsRequestSchema)` to create a new message.\n */\nexport const ListSnapshotsRequestSchema: GenMessage<ListSnapshotsRequest> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 44);\n\n/**\n * @generated from message aperture.executor.v1.ListSnapshotsResponse\n */\nexport type ListSnapshotsResponse = Message<\"aperture.executor.v1.ListSnapshotsResponse\"> & {\n /**\n * @generated from field: repeated aperture.executor.v1.Snapshot snapshots = 1;\n */\n snapshots: Snapshot[];\n};\n\n/**\n * Describes the message aperture.executor.v1.ListSnapshotsResponse.\n * Use `create(ListSnapshotsResponseSchema)` to create a new message.\n */\nexport const ListSnapshotsResponseSchema: GenMessage<ListSnapshotsResponse> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 45);\n\n/**\n * @generated from message aperture.executor.v1.DeleteSnapshotRequest\n */\nexport type DeleteSnapshotRequest = Message<\"aperture.executor.v1.DeleteSnapshotRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n};\n\n/**\n * Describes the message aperture.executor.v1.DeleteSnapshotRequest.\n * Use `create(DeleteSnapshotRequestSchema)` to create a new message.\n */\nexport const DeleteSnapshotRequestSchema: GenMessage<DeleteSnapshotRequest> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 46);\n\n/**\n * @generated from message aperture.executor.v1.DeleteSnapshotResponse\n */\nexport type DeleteSnapshotResponse = Message<\"aperture.executor.v1.DeleteSnapshotResponse\"> & {\n};\n\n/**\n * Describes the message aperture.executor.v1.DeleteSnapshotResponse.\n * Use `create(DeleteSnapshotResponseSchema)` to create a new message.\n */\nexport const DeleteSnapshotResponseSchema: GenMessage<DeleteSnapshotResponse> = /*@__PURE__*/\n messageDesc(file_aperture_executor_v1_executor, 47);\n\n/**\n * @generated from enum aperture.executor.v1.SessionState\n */\nexport enum SessionState {\n /**\n * @generated from enum value: SESSION_STATE_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * No browser runs; the profile is kept.\n *\n * @generated from enum value: SESSION_STATE_SUSPENDED = 1;\n */\n SUSPENDED = 1,\n\n /**\n * @generated from enum value: SESSION_STATE_STARTING = 2;\n */\n STARTING = 2,\n\n /**\n * @generated from enum value: SESSION_STATE_RUNNING = 3;\n */\n RUNNING = 3,\n\n /**\n * @generated from enum value: SESSION_STATE_SUSPENDING = 4;\n */\n SUSPENDING = 4,\n\n /**\n * The browser ended without being asked to, or did not take the storage state the\n * session was created with; `failure` says how. The profile is kept.\n *\n * @generated from enum value: SESSION_STATE_FAILED = 5;\n */\n FAILED = 5,\n\n /**\n * The browser runs and is being given the storage state the session was created with.\n * The session is watched meanwhile and takes no input, and runs once all of it is in.\n *\n * @generated from enum value: SESSION_STATE_RESTORING = 6;\n */\n RESTORING = 6,\n}\n\n/**\n * Describes the enum aperture.executor.v1.SessionState.\n */\nexport const SessionStateSchema: GenEnum<SessionState> = /*@__PURE__*/\n enumDesc(file_aperture_executor_v1_executor, 0);\n\n/**\n * Something a session offers besides its picture and input.\n *\n * @generated from enum aperture.executor.v1.Feature\n */\nexport enum Feature {\n /**\n * @generated from enum value: FEATURE_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * Its tabs are heard.\n *\n * @generated from enum value: FEATURE_SOUND = 1;\n */\n SOUND = 1,\n\n /**\n * Clients put files into it, for pages that ask for some.\n *\n * @generated from enum value: FEATURE_UPLOADS = 2;\n */\n UPLOADS = 2,\n\n /**\n * Its browser downloads files.\n *\n * @generated from enum value: FEATURE_DOWNLOADS = 3;\n */\n DOWNLOADS = 3,\n\n /**\n * Its tabs are recorded and screenshots kept.\n *\n * @generated from enum value: FEATURE_RECORDINGS = 4;\n */\n RECORDINGS = 4,\n\n /**\n * What is copied passes between it and its clients.\n *\n * @generated from enum value: FEATURE_CLIPBOARD = 5;\n */\n CLIPBOARD = 5,\n\n /**\n * Its automation endpoint is served.\n *\n * @generated from enum value: FEATURE_MCP = 6;\n */\n MCP = 6,\n\n /**\n * Its browser's DevTools endpoint is served.\n *\n * @generated from enum value: FEATURE_CDP = 7;\n */\n CDP = 7,\n\n /**\n * Clients attach tunnels.\n *\n * @generated from enum value: FEATURE_TUNNEL = 8;\n */\n TUNNEL = 8,\n}\n\n/**\n * Describes the enum aperture.executor.v1.Feature.\n */\nexport const FeatureSchema: GenEnum<Feature> = /*@__PURE__*/\n enumDesc(file_aperture_executor_v1_executor, 1);\n\n/**\n * Where the TCP of a session's browser goes.\n *\n * @generated from enum aperture.executor.v1.NetworkTcp\n */\nexport enum NetworkTcp {\n /**\n * @generated from enum value: NETWORK_TCP_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * Nowhere but through the session's proxy, which holds it to the session's rules.\n *\n * @generated from enum value: NETWORK_TCP_PROXIED = 1;\n */\n PROXIED = 1,\n\n /**\n * Out as well: pages still load through the proxy, but nothing holds the browser to it,\n * and what goes around it reaches the node's network too.\n *\n * @generated from enum value: NETWORK_TCP_DIRECT = 2;\n */\n DIRECT = 2,\n}\n\n/**\n * Describes the enum aperture.executor.v1.NetworkTcp.\n */\nexport const NetworkTcpSchema: GenEnum<NetworkTcp> = /*@__PURE__*/\n enumDesc(file_aperture_executor_v1_executor, 2);\n\n/**\n * Where the UDP of a session's browser goes, which a proxy does not carry.\n *\n * @generated from enum aperture.executor.v1.NetworkUdp\n */\nexport enum NetworkUdp {\n /**\n * @generated from enum value: NETWORK_UDP_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * Nowhere: WebRTC has no way out.\n *\n * @generated from enum value: NETWORK_UDP_NONE = 1;\n */\n NONE = 1,\n\n /**\n * Out, held to nothing, the node's network included.\n *\n * @generated from enum value: NETWORK_UDP_DIRECT = 2;\n */\n DIRECT = 2,\n}\n\n/**\n * Describes the enum aperture.executor.v1.NetworkUdp.\n */\nexport const NetworkUdpSchema: GenEnum<NetworkUdp> = /*@__PURE__*/\n enumDesc(file_aperture_executor_v1_executor, 3);\n\n/**\n * What one node does on request: browser sessions and the snapshots taken of them, on the\n * node's own storage.\n *\n * @generated from service aperture.executor.v1.ExecutorService\n */\nexport const ExecutorService: GenService<{\n /**\n * What this executor is and what its sessions may have.\n *\n * @generated from rpc aperture.executor.v1.ExecutorService.GetExecutor\n */\n getExecutor: {\n methodKind: \"unary\";\n input: typeof GetExecutorRequestSchema;\n output: typeof GetExecutorResponseSchema;\n },\n /**\n * Creates a session, from a snapshot or empty, and starts its browser unless asked not to.\n *\n * @generated from rpc aperture.executor.v1.ExecutorService.CreateSession\n */\n createSession: {\n methodKind: \"unary\";\n input: typeof CreateSessionRequestSchema;\n output: typeof CreateSessionResponseSchema;\n },\n /**\n * @generated from rpc aperture.executor.v1.ExecutorService.GetSession\n */\n getSession: {\n methodKind: \"unary\";\n input: typeof GetSessionRequestSchema;\n output: typeof GetSessionResponseSchema;\n },\n /**\n * @generated from rpc aperture.executor.v1.ExecutorService.ListSessions\n */\n listSessions: {\n methodKind: \"unary\";\n input: typeof ListSessionsRequestSchema;\n output: typeof ListSessionsResponseSchema;\n },\n /**\n * Stops the session's browser and keeps its profile.\n *\n * @generated from rpc aperture.executor.v1.ExecutorService.SuspendSession\n */\n suspendSession: {\n methodKind: \"unary\";\n input: typeof SuspendSessionRequestSchema;\n output: typeof SuspendSessionResponseSchema;\n },\n /**\n * Starts the browser of a suspended or failed session on the profile it left.\n *\n * @generated from rpc aperture.executor.v1.ExecutorService.ResumeSession\n */\n resumeSession: {\n methodKind: \"unary\";\n input: typeof ResumeSessionRequestSchema;\n output: typeof ResumeSessionResponseSchema;\n },\n /**\n * Sets how the session's browser connections are routed, for a running session at once:\n * connections made from then on go by the new rules, and open ones stay as they are.\n *\n * @generated from rpc aperture.executor.v1.ExecutorService.UpdateSessionProxy\n */\n updateSessionProxy: {\n methodKind: \"unary\";\n input: typeof UpdateSessionProxyRequestSchema;\n output: typeof UpdateSessionProxyResponseSchema;\n },\n /**\n * Sets the session's own limits in place of those it had. How long it may sit idle holds\n * at once; what it may use holds from when its browser next starts.\n *\n * @generated from rpc aperture.executor.v1.ExecutorService.UpdateSessionLimits\n */\n updateSessionLimits: {\n methodKind: \"unary\";\n input: typeof UpdateSessionLimitsRequestSchema;\n output: typeof UpdateSessionLimitsResponseSchema;\n },\n /**\n * Sets what the session offers in place of what it was created with, as it is created\n * with. It is told at once, and holds from when its browser next starts: a browser that\n * runs keeps what it started with, its automation's included.\n *\n * @generated from rpc aperture.executor.v1.ExecutorService.UpdateSessionFeatures\n */\n updateSessionFeatures: {\n methodKind: \"unary\";\n input: typeof UpdateSessionFeaturesRequestSchema;\n output: typeof UpdateSessionFeaturesResponseSchema;\n },\n /**\n * Stops the session and removes its profile and files. Snapshots taken of it stay.\n *\n * @generated from rpc aperture.executor.v1.ExecutorService.DeleteSession\n */\n deleteSession: {\n methodKind: \"unary\";\n input: typeof DeleteSessionRequestSchema;\n output: typeof DeleteSessionResponseSchema;\n },\n /**\n * The node's sessions as they change: each as it is now, then each again when what\n * `GetSession` tells of it becomes another, and a word of each that is gone. What a\n * session uses is not a change. It goes on until whoever watches leaves.\n *\n * @generated from rpc aperture.executor.v1.ExecutorService.WatchSessions\n */\n watchSessions: {\n methodKind: \"server_streaming\";\n input: typeof WatchSessionsRequestSchema;\n output: typeof WatchSessionsResponseSchema;\n },\n /**\n * Drops this node's copy of a session that is at rest where nodes share sessions: the\n * session stays there, for whichever node resumes it. Refused for a session that runs,\n * for one whose state here is not the one that is there, and on a node that shares none.\n *\n * @generated from rpc aperture.executor.v1.ExecutorService.EvictSession\n */\n evictSession: {\n methodKind: \"unary\";\n input: typeof EvictSessionRequestSchema;\n output: typeof EvictSessionResponseSchema;\n },\n /**\n * The sessions where nodes share them, whichever node has them or none. Refused on a\n * node that shares none.\n *\n * @generated from rpc aperture.executor.v1.ExecutorService.ListStoredSessions\n */\n listStoredSessions: {\n methodKind: \"unary\";\n input: typeof ListStoredSessionsRequestSchema;\n output: typeof ListStoredSessionsResponseSchema;\n },\n /**\n * Keeps the session's profile as it is now. A running session is suspended for the\n * moment it takes and resumed after.\n *\n * @generated from rpc aperture.executor.v1.ExecutorService.CreateSnapshot\n */\n createSnapshot: {\n methodKind: \"unary\";\n input: typeof CreateSnapshotRequestSchema;\n output: typeof CreateSnapshotResponseSchema;\n },\n /**\n * @generated from rpc aperture.executor.v1.ExecutorService.GetSnapshot\n */\n getSnapshot: {\n methodKind: \"unary\";\n input: typeof GetSnapshotRequestSchema;\n output: typeof GetSnapshotResponseSchema;\n },\n /**\n * @generated from rpc aperture.executor.v1.ExecutorService.ListSnapshots\n */\n listSnapshots: {\n methodKind: \"unary\";\n input: typeof ListSnapshotsRequestSchema;\n output: typeof ListSnapshotsResponseSchema;\n },\n /**\n * Sessions created from the snapshot keep working.\n *\n * @generated from rpc aperture.executor.v1.ExecutorService.DeleteSnapshot\n */\n deleteSnapshot: {\n methodKind: \"unary\";\n input: typeof DeleteSnapshotRequestSchema;\n output: typeof DeleteSnapshotResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_aperture_executor_v1_executor, 0);\n\n","import { ConnectError } from \"@connectrpc/connect\";\nimport { codeToString } from \"@connectrpc/connect/protocol-connect\";\nimport * as Schema from \"effect/Schema\";\n\n/** A Connect error code. */\nexport const ExecutorErrorCode = Schema.Literals([\n \"canceled\",\n \"unknown\",\n \"invalid_argument\",\n \"deadline_exceeded\",\n \"not_found\",\n \"already_exists\",\n \"permission_denied\",\n \"resource_exhausted\",\n \"failed_precondition\",\n \"aborted\",\n \"out_of_range\",\n \"unimplemented\",\n \"internal\",\n \"unavailable\",\n \"data_loss\",\n \"unauthenticated\",\n]);\nexport type ExecutorErrorCode = typeof ExecutorErrorCode.Type;\n\nconst isCode = Schema.is(ExecutorErrorCode);\n\n/** A request to the executor that could not be made, or that the executor refused. */\nexport class ExecutorError extends Schema.TaggedError<ExecutorError>()(\"ExecutorError\", {\n code: ExecutorErrorCode,\n message: Schema.String,\n cause: Schema.optional(Schema.Defect()),\n}) {\n /** What a call that did not give its answer failed with. */\n static from(cause: unknown): ExecutorError {\n const failed = ConnectError.from(cause);\n const code = codeToString(failed.code);\n return new ExecutorError({\n code: isCode(code) ? code : \"unknown\",\n message: failed.rawMessage,\n cause,\n });\n }\n}\n","import type { MessageInitShape } from \"@bufbuild/protobuf\";\nimport { createClient, type Interceptor } from \"@connectrpc/connect\";\nimport { createConnectTransport } from \"@connectrpc/connect-web\";\nimport * as Context from \"effect/Context\";\nimport * as Effect from \"effect/Effect\";\nimport * as Layer from \"effect/Layer\";\nimport * as Stream from \"effect/Stream\";\nimport { ExecutorError } from \"./errors.ts\";\nimport {\n type CreateSessionRequestSchema,\n type CreateSnapshotRequestSchema,\n ExecutorService,\n type FeaturesSchema,\n type LimitsSchema,\n type ProxyConfigSchema,\n} from \"./gen/aperture/executor/v1/executor_pb.ts\";\n\n/** Where an executor is and what lets a caller in. */\nexport interface Address {\n /** The executor's base, such as `https://node.example`. */\n readonly url: string;\n /** The operator token. */\n readonly token: string;\n}\n\nexport type CreateSession = MessageInitShape<typeof CreateSessionRequestSchema>;\nexport type CreateSnapshot = MessageInitShape<typeof CreateSnapshotRequestSchema>;\nexport type ProxyConfigInit = MessageInitShape<typeof ProxyConfigSchema>;\nexport type LimitsInit = MessageInitShape<typeof LimitsSchema>;\nexport type FeaturesInit = MessageInitShape<typeof FeaturesSchema>;\n\n// The executor always sends the message a response is made for.\nconst sent = <A>(value: A | undefined, what: string) =>\n value === undefined\n ? Effect.fail(\n new ExecutorError({ code: \"internal\", message: `the executor's answer has no ${what}` }),\n )\n : Effect.succeed(value);\n\nconst asked = <A>(call: (signal: AbortSignal) => Promise<A>) =>\n Effect.tryPromise({ try: call, catch: (cause) => ExecutorError.from(cause) });\n\n/** One executor's client. */\nexport const make = (address: Address) => {\n const authorized: Interceptor = (next) => (request) => {\n request.header.set(\"Authorization\", `Bearer ${address.token}`);\n return next(request);\n };\n const client = createClient(\n ExecutorService,\n createConnectTransport({\n baseUrl: address.url.replace(/\\/+$/u, \"\"),\n interceptors: [authorized],\n }),\n );\n return {\n /** What the executor is and what its sessions may have. */\n get: asked((signal) => client.getExecutor({}, { signal })).pipe(\n Effect.flatMap((response) => sent(response.executor, \"executor\")),\n ),\n sessions: {\n /** Creates a session, from a snapshot or empty, and starts its browser unless asked not to. */\n create: (request: CreateSession = {}) =>\n asked((signal) => client.createSession(request, { signal })).pipe(\n Effect.flatMap((response) => sent(response.session, \"session\")),\n ),\n get: (id: string) =>\n asked((signal) => client.getSession({ id }, { signal })).pipe(\n Effect.flatMap((response) => sent(response.session, \"session\")),\n ),\n list: asked((signal) => client.listSessions({}, { signal })).pipe(\n Effect.map((response) => response.sessions),\n ),\n /** Stops the session's browser and keeps its profile. */\n suspend: (id: string) =>\n asked((signal) => client.suspendSession({ id }, { signal })).pipe(\n Effect.flatMap((response) => sent(response.session, \"session\")),\n ),\n /**\n * Starts the browser of a suspended or failed session on the profile it left. As a\n * takeover, also when another node says it has the session.\n */\n resume: (id: string, options: { readonly takeover?: boolean } = {}) =>\n asked((signal) =>\n client.resumeSession({ id, takeover: options.takeover ?? false }, { signal }),\n ).pipe(Effect.flatMap((response) => sent(response.session, \"session\"))),\n /**\n * Sets how the session's browser connections are routed. Without a configuration,\n * everything goes direct again.\n */\n setProxy: (id: string, proxy?: ProxyConfigInit) =>\n asked((signal) =>\n client.updateSessionProxy(proxy === undefined ? { id } : { id, proxy }, { signal }),\n ).pipe(Effect.asVoid),\n /**\n * Sets the session's own limits in place of those it had: one left out is the\n * executor's, and zero is none. How long it may sit idle holds at once; what it may\n * use holds from when its browser next starts.\n */\n setLimits: (id: string, limits: LimitsInit) =>\n asked((signal) => client.updateSessionLimits({ id, limits }, { signal })).pipe(\n Effect.asVoid,\n ),\n /**\n * Sets what the session offers, as it is created with; all the node's sessions do,\n * without. Its browser has it from when it next starts.\n */\n setFeatures: (id: string, features: FeaturesInit | undefined) =>\n asked((signal) => client.updateSessionFeatures({ id, features }, { signal })).pipe(\n Effect.asVoid,\n ),\n /** Stops the session and removes its profile and files. Snapshots taken of it stay. */\n delete: (id: string) =>\n asked((signal) => client.deleteSession({ id }, { signal })).pipe(Effect.asVoid),\n /**\n * The node's sessions as they change: each as it is now, then each again when what\n * `get` tells of it becomes another, and the id of each that is gone. It goes on\n * until whoever runs the stream stops.\n */\n watch: Stream.suspend(() => {\n const leaving = new AbortController();\n const events = client.watchSessions({}, { signal: leaving.signal });\n return Stream.fromAsyncIterable(events, (cause) => ExecutorError.from(cause)).pipe(\n Stream.ensuring(Effect.sync(() => leaving.abort())),\n );\n }),\n /**\n * Drops the node's copy of a session that is at rest where nodes share sessions: the\n * session stays there, for whichever node resumes it.\n */\n evict: (id: string) =>\n asked((signal) => client.evictSession({ id }, { signal })).pipe(Effect.asVoid),\n /** The sessions where nodes share them, whichever node has them or none. */\n stored: asked((signal) => client.listStoredSessions({}, { signal })).pipe(\n Effect.map((response) => response.sessions),\n ),\n },\n snapshots: {\n /** Keeps the session's profile as it is now. */\n create: (request: CreateSnapshot) =>\n asked((signal) => client.createSnapshot(request, { signal })).pipe(\n Effect.flatMap((response) => sent(response.snapshot, \"snapshot\")),\n ),\n get: (id: string) =>\n asked((signal) => client.getSnapshot({ id }, { signal })).pipe(\n Effect.flatMap((response) => sent(response.snapshot, \"snapshot\")),\n ),\n list: asked((signal) => client.listSnapshots({}, { signal })).pipe(\n Effect.map((response) => response.snapshots),\n ),\n /** Sessions created from the snapshot keep working. */\n delete: (id: string) =>\n asked((signal) => client.deleteSnapshot({ id }, { signal })).pipe(Effect.asVoid),\n },\n };\n};\n\nexport type ExecutorClient = ReturnType<typeof make>;\n\n/** One executor's client, for programs that pass it along as a service. */\nexport class Executor extends Context.Service<Executor, ExecutorClient>()(\n \"@aperture-browser/executor-client/Executor\",\n) {}\n\nexport const layer = (address: Address) => Layer.succeed(Executor, make(address));\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,MAAa,qCACX,uBAAS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+1,6 @@
1
1
  {
2
2
  "name": "@aperture-browser/executor-client",
3
- "version": "1.0.0-beta.3",
3
+ "version": "1.0.0-beta.5",
4
4
  "description": "Effect client for one Aperture executor: its sessions and the snapshots taken of them.",
5
5
  "homepage": "https://github.com/tarik02/aperture#readme",
6
6
  "bugs": "https://github.com/tarik02/aperture/issues",