@aexhq/sdk 0.46.4-canary → 0.50.0
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/LICENSE +201 -0
- package/NOTICE +38 -0
- package/README.md +23 -31
- package/dist/client/aex.d.ts +33 -0
- package/dist/client/aex.js +98 -0
- package/dist/client/aex.js.map +1 -0
- package/dist/client/credentials.d.ts +25 -0
- package/dist/client/credentials.js +97 -0
- package/dist/client/credentials.js.map +1 -0
- package/dist/client/routing.d.ts +7 -0
- package/dist/client/routing.js +29 -0
- package/dist/client/routing.js.map +1 -0
- package/dist/downloads/download.d.ts +25 -0
- package/dist/downloads/download.js +53 -0
- package/dist/downloads/download.js.map +1 -0
- package/dist/generated/errors.d.ts +12 -0
- package/dist/generated/errors.js +81 -0
- package/dist/generated/errors.js.map +1 -0
- package/dist/generated/resources.d.ts +730 -0
- package/dist/generated/resources.js +606 -0
- package/dist/generated/resources.js.map +1 -0
- package/dist/generated/routes.d.ts +42 -0
- package/dist/generated/routes.js +2101 -0
- package/dist/generated/routes.js.map +1 -0
- package/dist/index.d.ts +20 -50
- package/dist/index.js +11 -62
- package/dist/index.js.map +1 -1
- package/dist/observations/stream.d.ts +1 -0
- package/dist/observations/stream.js +18 -0
- package/dist/observations/stream.js.map +1 -0
- package/dist/transport/errors.d.ts +60 -0
- package/dist/transport/errors.js +107 -0
- package/dist/transport/errors.js.map +1 -0
- package/dist/transport/pagination.d.ts +8 -0
- package/dist/transport/pagination.js +34 -0
- package/dist/transport/pagination.js.map +1 -0
- package/dist/transport/retry.d.ts +21 -0
- package/dist/transport/retry.js +37 -0
- package/dist/transport/retry.js.map +1 -0
- package/dist/transport/transport.d.ts +25 -0
- package/dist/transport/transport.js +28 -0
- package/dist/transport/transport.js.map +1 -0
- package/package.json +63 -30
- package/dist/_contracts/account-operations.d.ts +0 -101
- package/dist/_contracts/account-operations.js +0 -242
- package/dist/_contracts/account-types.d.ts +0 -461
- package/dist/_contracts/account-types.js +0 -1
- package/dist/_contracts/api-key.d.ts +0 -61
- package/dist/_contracts/api-key.js +0 -101
- package/dist/_contracts/api-routes.d.ts +0 -20
- package/dist/_contracts/api-routes.js +0 -109
- package/dist/_contracts/archive-limits.d.ts +0 -3
- package/dist/_contracts/archive-limits.js +0 -23
- package/dist/_contracts/asset-authoring.d.ts +0 -22
- package/dist/_contracts/asset-authoring.js +0 -106
- package/dist/_contracts/asset-bundle.d.ts +0 -64
- package/dist/_contracts/asset-bundle.js +0 -263
- package/dist/_contracts/asset-upload-helper.d.ts +0 -31
- package/dist/_contracts/asset-upload-helper.js +0 -84
- package/dist/_contracts/billing-admission.d.ts +0 -29
- package/dist/_contracts/billing-admission.js +0 -28
- package/dist/_contracts/bundle-manifest.d.ts +0 -89
- package/dist/_contracts/bundle-manifest.js +0 -158
- package/dist/_contracts/canonical-sha256.d.ts +0 -8
- package/dist/_contracts/canonical-sha256.js +0 -8
- package/dist/_contracts/connection-ticket.d.ts +0 -22
- package/dist/_contracts/connection-ticket.js +0 -54
- package/dist/_contracts/continuation-event.d.ts +0 -31
- package/dist/_contracts/continuation-event.js +0 -6
- package/dist/_contracts/contract-parse-error.d.ts +0 -12
- package/dist/_contracts/contract-parse-error.js +0 -51
- package/dist/_contracts/error-codes.d.ts +0 -26
- package/dist/_contracts/error-codes.js +0 -116
- package/dist/_contracts/error-factory.d.ts +0 -32
- package/dist/_contracts/error-factory.js +0 -174
- package/dist/_contracts/event-envelope.d.ts +0 -471
- package/dist/_contracts/event-envelope.js +0 -501
- package/dist/_contracts/event-stream-client.d.ts +0 -122
- package/dist/_contracts/event-stream-client.js +0 -445
- package/dist/_contracts/event-view.d.ts +0 -44
- package/dist/_contracts/event-view.js +0 -69
- package/dist/_contracts/failure-class.d.ts +0 -29
- package/dist/_contracts/failure-class.js +0 -73
- package/dist/_contracts/http.d.ts +0 -135
- package/dist/_contracts/http.js +0 -434
- package/dist/_contracts/ids.d.ts +0 -66
- package/dist/_contracts/ids.js +0 -119
- package/dist/_contracts/index.d.ts +0 -42
- package/dist/_contracts/index.js +0 -52
- package/dist/_contracts/internal.d.ts +0 -55
- package/dist/_contracts/internal.js +0 -113
- package/dist/_contracts/models.d.ts +0 -30
- package/dist/_contracts/models.js +0 -28
- package/dist/_contracts/operation-core.d.ts +0 -36
- package/dist/_contracts/operation-core.js +0 -70
- package/dist/_contracts/operations.d.ts +0 -218
- package/dist/_contracts/operations.js +0 -1496
- package/dist/_contracts/otlp-projection.d.ts +0 -78
- package/dist/_contracts/otlp-projection.js +0 -171
- package/dist/_contracts/post-hook.d.ts +0 -31
- package/dist/_contracts/post-hook.js +0 -61
- package/dist/_contracts/provider-fault.d.ts +0 -34
- package/dist/_contracts/provider-fault.js +0 -68
- package/dist/_contracts/retry-core.d.ts +0 -29
- package/dist/_contracts/retry-core.js +0 -79
- package/dist/_contracts/runner-event.d.ts +0 -117
- package/dist/_contracts/runner-event.js +0 -172
- package/dist/_contracts/runtime-kind.d.ts +0 -60
- package/dist/_contracts/runtime-kind.js +0 -70
- package/dist/_contracts/runtime-manifest.d.ts +0 -121
- package/dist/_contracts/runtime-manifest.js +0 -83
- package/dist/_contracts/runtime-security-profile.d.ts +0 -26
- package/dist/_contracts/runtime-security-profile.js +0 -73
- package/dist/_contracts/runtime-sizes.d.ts +0 -104
- package/dist/_contracts/runtime-sizes.js +0 -111
- package/dist/_contracts/runtime-types.d.ts +0 -618
- package/dist/_contracts/runtime-types.js +0 -58
- package/dist/_contracts/schemas/asset-bundle.d.ts +0 -70
- package/dist/_contracts/schemas/asset-bundle.js +0 -107
- package/dist/_contracts/schemas/asset-ref.d.ts +0 -61
- package/dist/_contracts/schemas/asset-ref.js +0 -118
- package/dist/_contracts/schemas/bundle-manifest.d.ts +0 -66
- package/dist/_contracts/schemas/bundle-manifest.js +0 -77
- package/dist/_contracts/schemas/index.d.ts +0 -32
- package/dist/_contracts/schemas/index.js +0 -30
- package/dist/_contracts/schemas/mcp-server.d.ts +0 -99
- package/dist/_contracts/schemas/mcp-server.js +0 -209
- package/dist/_contracts/schemas/models.d.ts +0 -29
- package/dist/_contracts/schemas/models.js +0 -51
- package/dist/_contracts/schemas/numeric.d.ts +0 -18
- package/dist/_contracts/schemas/numeric.js +0 -28
- package/dist/_contracts/schemas/post-hook.d.ts +0 -45
- package/dist/_contracts/schemas/post-hook.js +0 -68
- package/dist/_contracts/schemas/response-assets.d.ts +0 -75
- package/dist/_contracts/schemas/response-assets.js +0 -81
- package/dist/_contracts/schemas/response-billing.d.ts +0 -208
- package/dist/_contracts/schemas/response-billing.js +0 -139
- package/dist/_contracts/schemas/response-common.d.ts +0 -132
- package/dist/_contracts/schemas/response-common.js +0 -162
- package/dist/_contracts/schemas/response-identity.d.ts +0 -648
- package/dist/_contracts/schemas/response-identity.js +0 -131
- package/dist/_contracts/schemas/response-mcp-servers.d.ts +0 -51
- package/dist/_contracts/schemas/response-mcp-servers.js +0 -32
- package/dist/_contracts/schemas/response-secrets.d.ts +0 -50
- package/dist/_contracts/schemas/response-secrets.js +0 -32
- package/dist/_contracts/schemas/response-sessions-internal.d.ts +0 -200
- package/dist/_contracts/schemas/response-sessions-internal.js +0 -142
- package/dist/_contracts/schemas/response-sessions.d.ts +0 -1598
- package/dist/_contracts/schemas/response-sessions.js +0 -377
- package/dist/_contracts/schemas/response-webhooks.d.ts +0 -76
- package/dist/_contracts/schemas/response-webhooks.js +0 -42
- package/dist/_contracts/schemas/response-workspace.d.ts +0 -225
- package/dist/_contracts/schemas/response-workspace.js +0 -99
- package/dist/_contracts/schemas/runtime-kind.d.ts +0 -31
- package/dist/_contracts/schemas/runtime-kind.js +0 -29
- package/dist/_contracts/schemas/runtime-security-profile.d.ts +0 -28
- package/dist/_contracts/schemas/runtime-security-profile.js +0 -26
- package/dist/_contracts/schemas/runtime-sizes.d.ts +0 -70
- package/dist/_contracts/schemas/runtime-sizes.js +0 -127
- package/dist/_contracts/schemas/session-limits.d.ts +0 -34
- package/dist/_contracts/schemas/session-limits.js +0 -39
- package/dist/_contracts/schemas/session-machine.d.ts +0 -23
- package/dist/_contracts/schemas/session-machine.js +0 -24
- package/dist/_contracts/schemas/session-request-config.d.ts +0 -58
- package/dist/_contracts/schemas/session-request-config.js +0 -134
- package/dist/_contracts/schemas/session-webhook.d.ts +0 -11
- package/dist/_contracts/schemas/session-webhook.js +0 -38
- package/dist/_contracts/schemas/side-effect-audit.d.ts +0 -98
- package/dist/_contracts/schemas/side-effect-audit.js +0 -102
- package/dist/_contracts/schemas/submission-assets.d.ts +0 -117
- package/dist/_contracts/schemas/submission-assets.js +0 -147
- package/dist/_contracts/schemas/submission-body.d.ts +0 -251
- package/dist/_contracts/schemas/submission-body.js +0 -378
- package/dist/_contracts/schemas/submission-environment.d.ts +0 -79
- package/dist/_contracts/schemas/submission-environment.js +0 -179
- package/dist/_contracts/schemas/submission-request.d.ts +0 -158
- package/dist/_contracts/schemas/submission-request.js +0 -49
- package/dist/_contracts/schemas/submission-secrets.d.ts +0 -47
- package/dist/_contracts/schemas/submission-secrets.js +0 -108
- package/dist/_contracts/schemas/wire.d.ts +0 -118
- package/dist/_contracts/schemas/wire.js +0 -171
- package/dist/_contracts/schemas/workspace-resources.d.ts +0 -50
- package/dist/_contracts/schemas/workspace-resources.js +0 -87
- package/dist/_contracts/sdk-errors.d.ts +0 -212
- package/dist/_contracts/sdk-errors.js +0 -313
- package/dist/_contracts/sdk-secrets.d.ts +0 -67
- package/dist/_contracts/sdk-secrets.js +0 -427
- package/dist/_contracts/session-archive.d.ts +0 -16
- package/dist/_contracts/session-archive.js +0 -92
- package/dist/_contracts/session-artifacts.d.ts +0 -189
- package/dist/_contracts/session-artifacts.js +0 -264
- package/dist/_contracts/session-config.d.ts +0 -373
- package/dist/_contracts/session-config.js +0 -562
- package/dist/_contracts/session-cost-types.d.ts +0 -211
- package/dist/_contracts/session-cost-types.js +0 -69
- package/dist/_contracts/session-cost.d.ts +0 -8
- package/dist/_contracts/session-cost.js +0 -582
- package/dist/_contracts/session-custody.d.ts +0 -165
- package/dist/_contracts/session-custody.js +0 -345
- package/dist/_contracts/session-file-query.d.ts +0 -14
- package/dist/_contracts/session-file-query.js +0 -178
- package/dist/_contracts/session-record.d.ts +0 -112
- package/dist/_contracts/session-record.js +0 -165
- package/dist/_contracts/session-retention.d.ts +0 -201
- package/dist/_contracts/session-retention.js +0 -450
- package/dist/_contracts/side-effect-audit.d.ts +0 -126
- package/dist/_contracts/side-effect-audit.js +0 -520
- package/dist/_contracts/sse.d.ts +0 -74
- package/dist/_contracts/sse.js +0 -227
- package/dist/_contracts/stable.d.ts +0 -45
- package/dist/_contracts/stable.js +0 -62
- package/dist/_contracts/status.d.ts +0 -25
- package/dist/_contracts/status.js +0 -57
- package/dist/_contracts/submission-limits.d.ts +0 -61
- package/dist/_contracts/submission-limits.js +0 -60
- package/dist/_contracts/submission.d.ts +0 -547
- package/dist/_contracts/submission.js +0 -812
- package/dist/_contracts/suggest.d.ts +0 -15
- package/dist/_contracts/suggest.js +0 -53
- package/dist/_contracts/testing/response-bindings.d.ts +0 -45
- package/dist/_contracts/testing/response-bindings.js +0 -256
- package/dist/_contracts/testing/wire-conformance-entry.d.ts +0 -10
- package/dist/_contracts/testing/wire-conformance-entry.js +0 -8
- package/dist/_contracts/testing/wire-conformance.d.ts +0 -169
- package/dist/_contracts/testing/wire-conformance.js +0 -276
- package/dist/_contracts/turn-trace.d.ts +0 -28
- package/dist/_contracts/turn-trace.js +0 -1
- package/dist/_contracts/unknown-field-error.d.ts +0 -13
- package/dist/_contracts/unknown-field-error.js +0 -21
- package/dist/_contracts/value-guards.d.ts +0 -20
- package/dist/_contracts/value-guards.js +0 -34
- package/dist/_contracts/webhook-verify.d.ts +0 -34
- package/dist/_contracts/webhook-verify.js +0 -93
- package/dist/_contracts/wire-observer.d.ts +0 -49
- package/dist/_contracts/wire-observer.js +0 -34
- package/dist/_contracts/workflow-status.d.ts +0 -7
- package/dist/_contracts/workflow-status.js +0 -43
- package/dist/_contracts/workspace-resources.d.ts +0 -98
- package/dist/_contracts/workspace-resources.js +0 -39
- package/dist/archive-limits.d.ts +0 -1
- package/dist/archive-limits.js +0 -2
- package/dist/archive-limits.js.map +0 -1
- package/dist/asset-upload.d.ts +0 -47
- package/dist/asset-upload.js +0 -269
- package/dist/asset-upload.js.map +0 -1
- package/dist/bundle.d.ts +0 -9
- package/dist/bundle.js +0 -20
- package/dist/bundle.js.map +0 -1
- package/dist/canonical-zip.d.ts +0 -68
- package/dist/canonical-zip.js +0 -355
- package/dist/canonical-zip.js.map +0 -1
- package/dist/cli.mjs +0 -12048
- package/dist/cli.mjs.sha256 +0 -1
- package/dist/client-types.d.ts +0 -192
- package/dist/client-types.js +0 -2
- package/dist/client-types.js.map +0 -1
- package/dist/client.d.ts +0 -464
- package/dist/client.js +0 -1207
- package/dist/client.js.map +0 -1
- package/dist/event-projection.d.ts +0 -22
- package/dist/event-projection.js +0 -380
- package/dist/event-projection.js.map +0 -1
- package/dist/fetch-archive.d.ts +0 -16
- package/dist/fetch-archive.js +0 -252
- package/dist/fetch-archive.js.map +0 -1
- package/dist/file.d.ts +0 -96
- package/dist/file.js +0 -272
- package/dist/file.js.map +0 -1
- package/dist/instructions.d.ts +0 -20
- package/dist/instructions.js +0 -40
- package/dist/instructions.js.map +0 -1
- package/dist/legacy-session-provider-fault.d.ts +0 -7
- package/dist/legacy-session-provider-fault.js +0 -38
- package/dist/legacy-session-provider-fault.js.map +0 -1
- package/dist/mcp-server.d.ts +0 -84
- package/dist/mcp-server.js +0 -117
- package/dist/mcp-server.js.map +0 -1
- package/dist/node-fs.d.ts +0 -29
- package/dist/node-fs.js +0 -19
- package/dist/node-fs.js.map +0 -1
- package/dist/node-walk.d.ts +0 -69
- package/dist/node-walk.js +0 -151
- package/dist/node-walk.js.map +0 -1
- package/dist/path-basename.d.ts +0 -5
- package/dist/path-basename.js +0 -9
- package/dist/path-basename.js.map +0 -1
- package/dist/retry.d.ts +0 -70
- package/dist/retry.js +0 -155
- package/dist/retry.js.map +0 -1
- package/dist/secret.d.ts +0 -65
- package/dist/secret.js +0 -110
- package/dist/secret.js.map +0 -1
- package/dist/session-validate.d.ts +0 -100
- package/dist/session-validate.js +0 -303
- package/dist/session-validate.js.map +0 -1
- package/dist/skill.d.ts +0 -99
- package/dist/skill.js +0 -169
- package/dist/skill.js.map +0 -1
- package/dist/submission-wire.d.ts +0 -13
- package/dist/submission-wire.js +0 -69
- package/dist/submission-wire.js.map +0 -1
- package/dist/tool.d.ts +0 -41
- package/dist/tool.js +0 -76
- package/dist/tool.js.map +0 -1
- package/dist/version.d.ts +0 -9
- package/dist/version.js +0 -10
- package/dist/version.js.map +0 -1
- package/docs/authentication.md +0 -125
- package/docs/billing.md +0 -164
- package/docs/cleanup.md +0 -27
- package/docs/concepts/agent-tools.md +0 -47
- package/docs/concepts/composition.md +0 -60
- package/docs/concepts/providers-and-runtimes.md +0 -121
- package/docs/concepts/sessions.md +0 -51
- package/docs/concepts/subagents.md +0 -35
- package/docs/credentials.md +0 -116
- package/docs/defaults.md +0 -51
- package/docs/errors.md +0 -258
- package/docs/events.md +0 -143
- package/docs/files.md +0 -130
- package/docs/limits-and-quotas.md +0 -114
- package/docs/limits.md +0 -51
- package/docs/mcp.md +0 -47
- package/docs/networking.md +0 -114
- package/docs/provider-runtime-capabilities.md +0 -32
- package/docs/public-surface.json +0 -73
- package/docs/quickstart.md +0 -135
- package/docs/release.md +0 -44
- package/docs/retries.md +0 -108
- package/docs/secrets.md +0 -141
- package/docs/session-config.md +0 -51
- package/docs/session-record.md +0 -58
- package/docs/skills.md +0 -65
- package/docs/telemetry.md +0 -66
- package/docs/testing.md +0 -35
- package/docs/vision-skills.md +0 -94
- package/docs/webhooks.md +0 -143
|
@@ -1,1598 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Response schemas for the `sessions.*` family.
|
|
3
|
-
*
|
|
4
|
-
* **These describe the WIRE, not the client types.** `Session` in
|
|
5
|
-
* `runtime-types.ts` is a POST-NORMALISATION shape: `operations.ts` folds the
|
|
6
|
-
* flat `runtimeKind` / `runtimeSize` the server sends into a grouped
|
|
7
|
-
* `runtime: { kind, size }` before a caller sees it. The C4 harness observes the
|
|
8
|
-
* bytes BEFORE that fold (`HttpClient` reports from inside `request()`), so a
|
|
9
|
-
* schema built from `Session` verbatim would reject every real response. The
|
|
10
|
-
* shapes here are the server's, and every place they and the declared type
|
|
11
|
-
* disagree is called out at the field.
|
|
12
|
-
*/
|
|
13
|
-
import * as z from "zod/mini";
|
|
14
|
-
/** Public identity of one immutable session-files checkpoint. */
|
|
15
|
-
export declare const CheckpointRevisionSchema: z.ZodMiniObject<{
|
|
16
|
-
checkpointId: z.ZodMiniString<string>;
|
|
17
|
-
runId: z.ZodMiniString<string>;
|
|
18
|
-
turnSeq: z.ZodMiniNumberFormat;
|
|
19
|
-
committedAt: z.ZodMiniString<string>;
|
|
20
|
-
throughSeq: z.ZodMiniNumberFormat;
|
|
21
|
-
}, z.core.$strict>;
|
|
22
|
-
/**
|
|
23
|
-
* Redaction-safe provider detail for the most recent failed run.
|
|
24
|
-
*
|
|
25
|
-
* `kind` is deliberately an open token rather than the closed
|
|
26
|
-
* {@link PROVIDER_FAULT_KINDS} set: `parseProviderFault` accepts a syntactically
|
|
27
|
-
* valid future kind on purpose (forward compatibility), so the schema must too
|
|
28
|
-
* or C4 would fail on the very case the parser was written to survive.
|
|
29
|
-
*/
|
|
30
|
-
export declare const ProviderFaultSchema: z.ZodMiniObject<{
|
|
31
|
-
kind: z.ZodMiniString<string>;
|
|
32
|
-
provider: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
33
|
-
status: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
34
|
-
retryAfterMs: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
35
|
-
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
36
|
-
}, z.core.$strict>;
|
|
37
|
-
/**
|
|
38
|
-
* Cost/usage telemetry attached to a settled session.
|
|
39
|
-
*
|
|
40
|
-
* The KEY SET is the union of two disagreeing statements: `SessionCostTelemetry`
|
|
41
|
-
* in `session-cost.ts` (our declared type) and the object `settle.ts` actually
|
|
42
|
-
* writes. The declared type does not carry `basis`, `durationMs`, `turnSeq`,
|
|
43
|
-
* `runtimeSize`, `runtimeKind`, `model`, `usage`, `byteCounts`, `childCostUsd`,
|
|
44
|
-
* `childSessionCount` or `childProviderUsage`; settle writes all of them. Both
|
|
45
|
-
* are declared here so the strict check is true against reality, and the
|
|
46
|
-
* divergence is reported rather than papered over.
|
|
47
|
-
*
|
|
48
|
-
* `usage` and `byteCounts` are the one place this family stops at "is an
|
|
49
|
-
* object": their members are assembled from provider manifests and were not
|
|
50
|
-
* verified against a real response, and asserting a shape we have not seen would
|
|
51
|
-
* be worse than saying so.
|
|
52
|
-
*/
|
|
53
|
-
export declare const CostTelemetrySchema: z.ZodMiniObject<{
|
|
54
|
-
schemaVersion: z.ZodMiniLiteral<1>;
|
|
55
|
-
sessionId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
56
|
-
provider: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
57
|
-
model: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
58
|
-
recordedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
59
|
-
status: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
60
|
-
unavailable: "unavailable";
|
|
61
|
-
pending: "pending";
|
|
62
|
-
partial: "partial";
|
|
63
|
-
complete: "complete";
|
|
64
|
-
not_applicable: "not_applicable";
|
|
65
|
-
}>>;
|
|
66
|
-
basis: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
67
|
-
durationMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
68
|
-
turnSeq: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
69
|
-
throughSeq: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
70
|
-
runtimeSize: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
71
|
-
runtimeKind: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
72
|
-
billedCostUsd: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
73
|
-
costBasis: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
74
|
-
currency: z.ZodMiniLiteral<"USD">;
|
|
75
|
-
status: z.ZodMiniEnum<{
|
|
76
|
-
estimated: "estimated";
|
|
77
|
-
reconciled: "reconciled";
|
|
78
|
-
}>;
|
|
79
|
-
}, z.core.$strict>>;
|
|
80
|
-
usage: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
81
|
-
byteCounts: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
82
|
-
providerUsage: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
83
|
-
provider: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
84
|
-
model: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
85
|
-
inputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
86
|
-
outputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
87
|
-
cacheReadInputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
88
|
-
cacheCreationInputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
89
|
-
totalTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
90
|
-
sourceEventId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
91
|
-
sourceSampleIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
92
|
-
}, z.core.$strict>>>;
|
|
93
|
-
childProviderUsage: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
94
|
-
provider: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
95
|
-
model: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
96
|
-
inputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
97
|
-
outputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
98
|
-
cacheReadInputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
99
|
-
cacheCreationInputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
100
|
-
totalTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
101
|
-
sourceEventId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
102
|
-
sourceSampleIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
103
|
-
}, z.core.$strict>>>;
|
|
104
|
-
childCostUsd: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
105
|
-
childSessionCount: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
106
|
-
sourceSummary: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
107
|
-
sampleCount: z.ZodMiniNumber<number>;
|
|
108
|
-
metrics: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
109
|
-
sourceTypes: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
110
|
-
sourceSampleIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
111
|
-
}, z.core.$strict>>;
|
|
112
|
-
durations: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
113
|
-
queuedMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
114
|
-
runtimeMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
115
|
-
fileCaptureMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
116
|
-
cleanupMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
117
|
-
totalMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
118
|
-
}, z.core.$strict>>;
|
|
119
|
-
files: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
120
|
-
discoveredFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
121
|
-
capturedFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
122
|
-
failedFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
123
|
-
capturedBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
124
|
-
}, z.core.$strict>>;
|
|
125
|
-
retries: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
126
|
-
runtimeAttempts: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
127
|
-
providerPollRetries: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
128
|
-
fileCaptureRetries: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
129
|
-
fileUploadRetries: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
130
|
-
}, z.core.$strict>>;
|
|
131
|
-
capture: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
132
|
-
attempted: z.ZodMiniBoolean<boolean>;
|
|
133
|
-
uploadedFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
134
|
-
failedFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
135
|
-
totalBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
136
|
-
failureReasons: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
137
|
-
}, z.core.$strict>>;
|
|
138
|
-
storage: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
139
|
-
storedBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
140
|
-
storedFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
141
|
-
byteMilliseconds: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
142
|
-
}, z.core.$strict>>;
|
|
143
|
-
proxy: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
144
|
-
calls: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
145
|
-
failedCalls: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
146
|
-
requestBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
147
|
-
responseBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
148
|
-
durationMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
149
|
-
}, z.core.$strict>>;
|
|
150
|
-
}, z.core.$strict>;
|
|
151
|
-
/**
|
|
152
|
-
* One run of a session.
|
|
153
|
-
*
|
|
154
|
-
* `eventCursor` rides only on the run returned by `sendMessage`; the
|
|
155
|
-
* `currentRun` / `lastRun` projections never carry it. One schema covers both
|
|
156
|
-
* because the field is optional in the declared type and a stricter split would
|
|
157
|
-
* assert an absence the server has no obligation to keep.
|
|
158
|
-
*/
|
|
159
|
-
export declare const SessionRunSchema: z.ZodMiniObject<{
|
|
160
|
-
sessionId: z.ZodMiniString<string>;
|
|
161
|
-
turnSeq: z.ZodMiniNumberFormat;
|
|
162
|
-
runId: z.ZodMiniString<string>;
|
|
163
|
-
phase: z.ZodMiniEnum<{
|
|
164
|
-
error: "error";
|
|
165
|
-
running: "running";
|
|
166
|
-
queued: "queued";
|
|
167
|
-
starting: "starting";
|
|
168
|
-
finished: "finished";
|
|
169
|
-
}>;
|
|
170
|
-
outcome: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
171
|
-
succeeded: "succeeded";
|
|
172
|
-
failed: "failed";
|
|
173
|
-
timed_out: "timed_out";
|
|
174
|
-
cancelled: "cancelled";
|
|
175
|
-
interrupted: "interrupted";
|
|
176
|
-
}>>;
|
|
177
|
-
startedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
178
|
-
finishedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
179
|
-
checkpoint: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
180
|
-
checkpointId: z.ZodMiniString<string>;
|
|
181
|
-
runId: z.ZodMiniString<string>;
|
|
182
|
-
turnSeq: z.ZodMiniNumberFormat;
|
|
183
|
-
committedAt: z.ZodMiniString<string>;
|
|
184
|
-
throughSeq: z.ZodMiniNumberFormat;
|
|
185
|
-
}, z.core.$strict>>;
|
|
186
|
-
eventCursor: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
187
|
-
}, z.core.$strict>;
|
|
188
|
-
/**
|
|
189
|
-
* The session projection every `{ session }` envelope carries.
|
|
190
|
-
*
|
|
191
|
-
* This schema is the SOURCE of the `SessionWire` type in `runtime-types.ts`
|
|
192
|
-
* (`z.infer`), and `Session` — the client shape — is pinned to it by a key-set
|
|
193
|
-
* assertion in that module. The one deliberate difference between them:
|
|
194
|
-
*
|
|
195
|
-
* - **`runtime` is absent here.** The wire carries flat `runtimeKind` +
|
|
196
|
-
* `runtimeSize`; `runtime: { kind, size }` is built client-side by
|
|
197
|
-
* `normalizeSessionRuntime`.
|
|
198
|
-
*
|
|
199
|
-
* `usage` and `runtimeManifest` USED to be declared on both sides and are
|
|
200
|
-
* emitted by neither `publicSessionFromItem` nor anything downstream of it.
|
|
201
|
-
* They were kept "because our own published type declares them"; the type no
|
|
202
|
-
* longer does (token counts live under `costTelemetry.providerUsage`), so the
|
|
203
|
-
* justification went with it and both are gone from here too.
|
|
204
|
-
*/
|
|
205
|
-
export declare const SessionWireSchema: z.ZodMiniObject<{
|
|
206
|
-
id: z.ZodMiniString<string>;
|
|
207
|
-
status: z.ZodMiniEnum<{
|
|
208
|
-
error: "error";
|
|
209
|
-
creating: "creating";
|
|
210
|
-
running: "running";
|
|
211
|
-
idle: "idle";
|
|
212
|
-
suspending: "suspending";
|
|
213
|
-
suspended: "suspended";
|
|
214
|
-
awaiting_approval: "awaiting_approval";
|
|
215
|
-
cancelling: "cancelling";
|
|
216
|
-
deleting: "deleting";
|
|
217
|
-
deleted: "deleted";
|
|
218
|
-
expired: "expired";
|
|
219
|
-
}>;
|
|
220
|
-
acceptsMessages: z.ZodMiniBoolean<boolean>;
|
|
221
|
-
currentRun: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
222
|
-
sessionId: z.ZodMiniString<string>;
|
|
223
|
-
turnSeq: z.ZodMiniNumberFormat;
|
|
224
|
-
runId: z.ZodMiniString<string>;
|
|
225
|
-
phase: z.ZodMiniEnum<{
|
|
226
|
-
error: "error";
|
|
227
|
-
running: "running";
|
|
228
|
-
queued: "queued";
|
|
229
|
-
starting: "starting";
|
|
230
|
-
finished: "finished";
|
|
231
|
-
}>;
|
|
232
|
-
outcome: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
233
|
-
succeeded: "succeeded";
|
|
234
|
-
failed: "failed";
|
|
235
|
-
timed_out: "timed_out";
|
|
236
|
-
cancelled: "cancelled";
|
|
237
|
-
interrupted: "interrupted";
|
|
238
|
-
}>>;
|
|
239
|
-
startedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
240
|
-
finishedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
241
|
-
checkpoint: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
242
|
-
checkpointId: z.ZodMiniString<string>;
|
|
243
|
-
runId: z.ZodMiniString<string>;
|
|
244
|
-
turnSeq: z.ZodMiniNumberFormat;
|
|
245
|
-
committedAt: z.ZodMiniString<string>;
|
|
246
|
-
throughSeq: z.ZodMiniNumberFormat;
|
|
247
|
-
}, z.core.$strict>>;
|
|
248
|
-
eventCursor: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
249
|
-
}, z.core.$strict>>;
|
|
250
|
-
lastRun: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
251
|
-
sessionId: z.ZodMiniString<string>;
|
|
252
|
-
turnSeq: z.ZodMiniNumberFormat;
|
|
253
|
-
runId: z.ZodMiniString<string>;
|
|
254
|
-
phase: z.ZodMiniEnum<{
|
|
255
|
-
error: "error";
|
|
256
|
-
running: "running";
|
|
257
|
-
queued: "queued";
|
|
258
|
-
starting: "starting";
|
|
259
|
-
finished: "finished";
|
|
260
|
-
}>;
|
|
261
|
-
outcome: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
262
|
-
succeeded: "succeeded";
|
|
263
|
-
failed: "failed";
|
|
264
|
-
timed_out: "timed_out";
|
|
265
|
-
cancelled: "cancelled";
|
|
266
|
-
interrupted: "interrupted";
|
|
267
|
-
}>>;
|
|
268
|
-
startedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
269
|
-
finishedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
270
|
-
checkpoint: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
271
|
-
checkpointId: z.ZodMiniString<string>;
|
|
272
|
-
runId: z.ZodMiniString<string>;
|
|
273
|
-
turnSeq: z.ZodMiniNumberFormat;
|
|
274
|
-
committedAt: z.ZodMiniString<string>;
|
|
275
|
-
throughSeq: z.ZodMiniNumberFormat;
|
|
276
|
-
}, z.core.$strict>>;
|
|
277
|
-
eventCursor: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
278
|
-
}, z.core.$strict>>;
|
|
279
|
-
providerFault: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
280
|
-
kind: z.ZodMiniString<string>;
|
|
281
|
-
provider: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
282
|
-
status: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
283
|
-
retryAfterMs: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
284
|
-
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
285
|
-
}, z.core.$strict>>;
|
|
286
|
-
idleTtl: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
287
|
-
idleTtlMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
288
|
-
runtimeSize: z.ZodMiniEnum<{
|
|
289
|
-
"0.25cpu-1gb": "0.25cpu-1gb";
|
|
290
|
-
"0.5cpu-4gb": "0.5cpu-4gb";
|
|
291
|
-
"1cpu-6gb": "1cpu-6gb";
|
|
292
|
-
"2cpu-8gb": "2cpu-8gb";
|
|
293
|
-
"4cpu-12gb": "4cpu-12gb";
|
|
294
|
-
}>;
|
|
295
|
-
runtimeKind: z.ZodMiniEnum<{
|
|
296
|
-
container: "container";
|
|
297
|
-
spot_container: "spot_container";
|
|
298
|
-
lambda: "lambda";
|
|
299
|
-
}>;
|
|
300
|
-
workspaceId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
301
|
-
createdAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
302
|
-
updatedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
303
|
-
idleAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
304
|
-
suspendedAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
305
|
-
activeDurationMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
306
|
-
provider: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
307
|
-
model: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
308
|
-
retainedStorageBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
309
|
-
costUsd: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
310
|
-
costTelemetry: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
311
|
-
schemaVersion: z.ZodMiniLiteral<1>;
|
|
312
|
-
sessionId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
313
|
-
provider: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
314
|
-
model: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
315
|
-
recordedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
316
|
-
status: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
317
|
-
unavailable: "unavailable";
|
|
318
|
-
pending: "pending";
|
|
319
|
-
partial: "partial";
|
|
320
|
-
complete: "complete";
|
|
321
|
-
not_applicable: "not_applicable";
|
|
322
|
-
}>>;
|
|
323
|
-
basis: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
324
|
-
durationMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
325
|
-
turnSeq: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
326
|
-
throughSeq: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
327
|
-
runtimeSize: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
328
|
-
runtimeKind: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
329
|
-
billedCostUsd: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
330
|
-
costBasis: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
331
|
-
currency: z.ZodMiniLiteral<"USD">;
|
|
332
|
-
status: z.ZodMiniEnum<{
|
|
333
|
-
estimated: "estimated";
|
|
334
|
-
reconciled: "reconciled";
|
|
335
|
-
}>;
|
|
336
|
-
}, z.core.$strict>>;
|
|
337
|
-
usage: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
338
|
-
byteCounts: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
339
|
-
providerUsage: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
340
|
-
provider: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
341
|
-
model: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
342
|
-
inputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
343
|
-
outputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
344
|
-
cacheReadInputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
345
|
-
cacheCreationInputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
346
|
-
totalTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
347
|
-
sourceEventId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
348
|
-
sourceSampleIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
349
|
-
}, z.core.$strict>>>;
|
|
350
|
-
childProviderUsage: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
351
|
-
provider: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
352
|
-
model: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
353
|
-
inputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
354
|
-
outputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
355
|
-
cacheReadInputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
356
|
-
cacheCreationInputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
357
|
-
totalTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
358
|
-
sourceEventId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
359
|
-
sourceSampleIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
360
|
-
}, z.core.$strict>>>;
|
|
361
|
-
childCostUsd: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
362
|
-
childSessionCount: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
363
|
-
sourceSummary: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
364
|
-
sampleCount: z.ZodMiniNumber<number>;
|
|
365
|
-
metrics: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
366
|
-
sourceTypes: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
367
|
-
sourceSampleIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
368
|
-
}, z.core.$strict>>;
|
|
369
|
-
durations: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
370
|
-
queuedMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
371
|
-
runtimeMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
372
|
-
fileCaptureMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
373
|
-
cleanupMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
374
|
-
totalMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
375
|
-
}, z.core.$strict>>;
|
|
376
|
-
files: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
377
|
-
discoveredFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
378
|
-
capturedFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
379
|
-
failedFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
380
|
-
capturedBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
381
|
-
}, z.core.$strict>>;
|
|
382
|
-
retries: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
383
|
-
runtimeAttempts: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
384
|
-
providerPollRetries: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
385
|
-
fileCaptureRetries: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
386
|
-
fileUploadRetries: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
387
|
-
}, z.core.$strict>>;
|
|
388
|
-
capture: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
389
|
-
attempted: z.ZodMiniBoolean<boolean>;
|
|
390
|
-
uploadedFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
391
|
-
failedFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
392
|
-
totalBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
393
|
-
failureReasons: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
394
|
-
}, z.core.$strict>>;
|
|
395
|
-
storage: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
396
|
-
storedBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
397
|
-
storedFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
398
|
-
byteMilliseconds: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
399
|
-
}, z.core.$strict>>;
|
|
400
|
-
proxy: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
401
|
-
calls: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
402
|
-
failedCalls: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
403
|
-
requestBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
404
|
-
responseBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
405
|
-
durationMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
406
|
-
}, z.core.$strict>>;
|
|
407
|
-
}, z.core.$strict>>;
|
|
408
|
-
errorMessage: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
409
|
-
failureClass: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
410
|
-
dataState: z.ZodMiniEnum<{
|
|
411
|
-
active: "active";
|
|
412
|
-
metadata_only: "metadata_only";
|
|
413
|
-
}>;
|
|
414
|
-
contentPurgedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
415
|
-
contentDeletedBy: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
416
|
-
retention: "retention";
|
|
417
|
-
user: "user";
|
|
418
|
-
}>>;
|
|
419
|
-
}, z.core.$strict>;
|
|
420
|
-
/** One captured session file, as `publicFileFromObject` projects it. */
|
|
421
|
-
export declare const SessionFileSchema: z.ZodMiniObject<{
|
|
422
|
-
id: z.ZodMiniString<string>;
|
|
423
|
-
checkpointId: z.ZodMiniString<string>;
|
|
424
|
-
filename: z.ZodMiniString<string>;
|
|
425
|
-
sizeBytes: z.ZodMiniNumberFormat;
|
|
426
|
-
contentType: z.ZodMiniString<string>;
|
|
427
|
-
createdAt: z.ZodMiniString<string>;
|
|
428
|
-
sha256: z.ZodMiniString<string>;
|
|
429
|
-
}, z.core.$strict>;
|
|
430
|
-
/**
|
|
431
|
-
* `POST /sessions`, `GET /sessions/{id}`, and every state-change route.
|
|
432
|
-
*
|
|
433
|
-
* ONE key. `run` and `eventCursor` were declared optional here because
|
|
434
|
-
* `SessionStateChangeAccepted` declared them; no handler on any of these eight
|
|
435
|
-
* routes emits either — each answers `json(200, { session })` — and the client
|
|
436
|
-
* type no longer claims otherwise. The run-bearing envelope is
|
|
437
|
-
* {@link SessionMessageAcceptedResponseSchema}, a different route.
|
|
438
|
-
*/
|
|
439
|
-
export declare const SessionEnvelopeResponseSchema: z.ZodMiniObject<{
|
|
440
|
-
session: z.ZodMiniObject<{
|
|
441
|
-
id: z.ZodMiniString<string>;
|
|
442
|
-
status: z.ZodMiniEnum<{
|
|
443
|
-
error: "error";
|
|
444
|
-
creating: "creating";
|
|
445
|
-
running: "running";
|
|
446
|
-
idle: "idle";
|
|
447
|
-
suspending: "suspending";
|
|
448
|
-
suspended: "suspended";
|
|
449
|
-
awaiting_approval: "awaiting_approval";
|
|
450
|
-
cancelling: "cancelling";
|
|
451
|
-
deleting: "deleting";
|
|
452
|
-
deleted: "deleted";
|
|
453
|
-
expired: "expired";
|
|
454
|
-
}>;
|
|
455
|
-
acceptsMessages: z.ZodMiniBoolean<boolean>;
|
|
456
|
-
currentRun: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
457
|
-
sessionId: z.ZodMiniString<string>;
|
|
458
|
-
turnSeq: z.ZodMiniNumberFormat;
|
|
459
|
-
runId: z.ZodMiniString<string>;
|
|
460
|
-
phase: z.ZodMiniEnum<{
|
|
461
|
-
error: "error";
|
|
462
|
-
running: "running";
|
|
463
|
-
queued: "queued";
|
|
464
|
-
starting: "starting";
|
|
465
|
-
finished: "finished";
|
|
466
|
-
}>;
|
|
467
|
-
outcome: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
468
|
-
succeeded: "succeeded";
|
|
469
|
-
failed: "failed";
|
|
470
|
-
timed_out: "timed_out";
|
|
471
|
-
cancelled: "cancelled";
|
|
472
|
-
interrupted: "interrupted";
|
|
473
|
-
}>>;
|
|
474
|
-
startedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
475
|
-
finishedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
476
|
-
checkpoint: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
477
|
-
checkpointId: z.ZodMiniString<string>;
|
|
478
|
-
runId: z.ZodMiniString<string>;
|
|
479
|
-
turnSeq: z.ZodMiniNumberFormat;
|
|
480
|
-
committedAt: z.ZodMiniString<string>;
|
|
481
|
-
throughSeq: z.ZodMiniNumberFormat;
|
|
482
|
-
}, z.core.$strict>>;
|
|
483
|
-
eventCursor: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
484
|
-
}, z.core.$strict>>;
|
|
485
|
-
lastRun: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
486
|
-
sessionId: z.ZodMiniString<string>;
|
|
487
|
-
turnSeq: z.ZodMiniNumberFormat;
|
|
488
|
-
runId: z.ZodMiniString<string>;
|
|
489
|
-
phase: z.ZodMiniEnum<{
|
|
490
|
-
error: "error";
|
|
491
|
-
running: "running";
|
|
492
|
-
queued: "queued";
|
|
493
|
-
starting: "starting";
|
|
494
|
-
finished: "finished";
|
|
495
|
-
}>;
|
|
496
|
-
outcome: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
497
|
-
succeeded: "succeeded";
|
|
498
|
-
failed: "failed";
|
|
499
|
-
timed_out: "timed_out";
|
|
500
|
-
cancelled: "cancelled";
|
|
501
|
-
interrupted: "interrupted";
|
|
502
|
-
}>>;
|
|
503
|
-
startedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
504
|
-
finishedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
505
|
-
checkpoint: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
506
|
-
checkpointId: z.ZodMiniString<string>;
|
|
507
|
-
runId: z.ZodMiniString<string>;
|
|
508
|
-
turnSeq: z.ZodMiniNumberFormat;
|
|
509
|
-
committedAt: z.ZodMiniString<string>;
|
|
510
|
-
throughSeq: z.ZodMiniNumberFormat;
|
|
511
|
-
}, z.core.$strict>>;
|
|
512
|
-
eventCursor: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
513
|
-
}, z.core.$strict>>;
|
|
514
|
-
providerFault: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
515
|
-
kind: z.ZodMiniString<string>;
|
|
516
|
-
provider: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
517
|
-
status: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
518
|
-
retryAfterMs: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
519
|
-
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
520
|
-
}, z.core.$strict>>;
|
|
521
|
-
idleTtl: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
522
|
-
idleTtlMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
523
|
-
runtimeSize: z.ZodMiniEnum<{
|
|
524
|
-
"0.25cpu-1gb": "0.25cpu-1gb";
|
|
525
|
-
"0.5cpu-4gb": "0.5cpu-4gb";
|
|
526
|
-
"1cpu-6gb": "1cpu-6gb";
|
|
527
|
-
"2cpu-8gb": "2cpu-8gb";
|
|
528
|
-
"4cpu-12gb": "4cpu-12gb";
|
|
529
|
-
}>;
|
|
530
|
-
runtimeKind: z.ZodMiniEnum<{
|
|
531
|
-
container: "container";
|
|
532
|
-
spot_container: "spot_container";
|
|
533
|
-
lambda: "lambda";
|
|
534
|
-
}>;
|
|
535
|
-
workspaceId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
536
|
-
createdAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
537
|
-
updatedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
538
|
-
idleAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
539
|
-
suspendedAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
540
|
-
activeDurationMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
541
|
-
provider: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
542
|
-
model: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
543
|
-
retainedStorageBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
544
|
-
costUsd: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
545
|
-
costTelemetry: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
546
|
-
schemaVersion: z.ZodMiniLiteral<1>;
|
|
547
|
-
sessionId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
548
|
-
provider: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
549
|
-
model: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
550
|
-
recordedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
551
|
-
status: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
552
|
-
unavailable: "unavailable";
|
|
553
|
-
pending: "pending";
|
|
554
|
-
partial: "partial";
|
|
555
|
-
complete: "complete";
|
|
556
|
-
not_applicable: "not_applicable";
|
|
557
|
-
}>>;
|
|
558
|
-
basis: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
559
|
-
durationMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
560
|
-
turnSeq: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
561
|
-
throughSeq: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
562
|
-
runtimeSize: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
563
|
-
runtimeKind: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
564
|
-
billedCostUsd: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
565
|
-
costBasis: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
566
|
-
currency: z.ZodMiniLiteral<"USD">;
|
|
567
|
-
status: z.ZodMiniEnum<{
|
|
568
|
-
estimated: "estimated";
|
|
569
|
-
reconciled: "reconciled";
|
|
570
|
-
}>;
|
|
571
|
-
}, z.core.$strict>>;
|
|
572
|
-
usage: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
573
|
-
byteCounts: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
574
|
-
providerUsage: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
575
|
-
provider: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
576
|
-
model: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
577
|
-
inputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
578
|
-
outputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
579
|
-
cacheReadInputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
580
|
-
cacheCreationInputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
581
|
-
totalTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
582
|
-
sourceEventId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
583
|
-
sourceSampleIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
584
|
-
}, z.core.$strict>>>;
|
|
585
|
-
childProviderUsage: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
586
|
-
provider: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
587
|
-
model: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
588
|
-
inputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
589
|
-
outputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
590
|
-
cacheReadInputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
591
|
-
cacheCreationInputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
592
|
-
totalTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
593
|
-
sourceEventId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
594
|
-
sourceSampleIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
595
|
-
}, z.core.$strict>>>;
|
|
596
|
-
childCostUsd: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
597
|
-
childSessionCount: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
598
|
-
sourceSummary: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
599
|
-
sampleCount: z.ZodMiniNumber<number>;
|
|
600
|
-
metrics: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
601
|
-
sourceTypes: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
602
|
-
sourceSampleIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
603
|
-
}, z.core.$strict>>;
|
|
604
|
-
durations: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
605
|
-
queuedMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
606
|
-
runtimeMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
607
|
-
fileCaptureMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
608
|
-
cleanupMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
609
|
-
totalMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
610
|
-
}, z.core.$strict>>;
|
|
611
|
-
files: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
612
|
-
discoveredFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
613
|
-
capturedFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
614
|
-
failedFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
615
|
-
capturedBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
616
|
-
}, z.core.$strict>>;
|
|
617
|
-
retries: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
618
|
-
runtimeAttempts: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
619
|
-
providerPollRetries: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
620
|
-
fileCaptureRetries: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
621
|
-
fileUploadRetries: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
622
|
-
}, z.core.$strict>>;
|
|
623
|
-
capture: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
624
|
-
attempted: z.ZodMiniBoolean<boolean>;
|
|
625
|
-
uploadedFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
626
|
-
failedFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
627
|
-
totalBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
628
|
-
failureReasons: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
629
|
-
}, z.core.$strict>>;
|
|
630
|
-
storage: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
631
|
-
storedBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
632
|
-
storedFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
633
|
-
byteMilliseconds: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
634
|
-
}, z.core.$strict>>;
|
|
635
|
-
proxy: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
636
|
-
calls: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
637
|
-
failedCalls: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
638
|
-
requestBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
639
|
-
responseBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
640
|
-
durationMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
641
|
-
}, z.core.$strict>>;
|
|
642
|
-
}, z.core.$strict>>;
|
|
643
|
-
errorMessage: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
644
|
-
failureClass: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
645
|
-
dataState: z.ZodMiniEnum<{
|
|
646
|
-
active: "active";
|
|
647
|
-
metadata_only: "metadata_only";
|
|
648
|
-
}>;
|
|
649
|
-
contentPurgedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
650
|
-
contentDeletedBy: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
651
|
-
retention: "retention";
|
|
652
|
-
user: "user";
|
|
653
|
-
}>>;
|
|
654
|
-
}, z.core.$strict>;
|
|
655
|
-
}, z.core.$strict>;
|
|
656
|
-
export declare const SessionListResponseSchema: z.ZodMiniObject<{
|
|
657
|
-
sessions: z.ZodMiniArray<z.ZodMiniObject<{
|
|
658
|
-
id: z.ZodMiniString<string>;
|
|
659
|
-
status: z.ZodMiniEnum<{
|
|
660
|
-
error: "error";
|
|
661
|
-
creating: "creating";
|
|
662
|
-
running: "running";
|
|
663
|
-
idle: "idle";
|
|
664
|
-
suspending: "suspending";
|
|
665
|
-
suspended: "suspended";
|
|
666
|
-
awaiting_approval: "awaiting_approval";
|
|
667
|
-
cancelling: "cancelling";
|
|
668
|
-
deleting: "deleting";
|
|
669
|
-
deleted: "deleted";
|
|
670
|
-
expired: "expired";
|
|
671
|
-
}>;
|
|
672
|
-
acceptsMessages: z.ZodMiniBoolean<boolean>;
|
|
673
|
-
currentRun: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
674
|
-
sessionId: z.ZodMiniString<string>;
|
|
675
|
-
turnSeq: z.ZodMiniNumberFormat;
|
|
676
|
-
runId: z.ZodMiniString<string>;
|
|
677
|
-
phase: z.ZodMiniEnum<{
|
|
678
|
-
error: "error";
|
|
679
|
-
running: "running";
|
|
680
|
-
queued: "queued";
|
|
681
|
-
starting: "starting";
|
|
682
|
-
finished: "finished";
|
|
683
|
-
}>;
|
|
684
|
-
outcome: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
685
|
-
succeeded: "succeeded";
|
|
686
|
-
failed: "failed";
|
|
687
|
-
timed_out: "timed_out";
|
|
688
|
-
cancelled: "cancelled";
|
|
689
|
-
interrupted: "interrupted";
|
|
690
|
-
}>>;
|
|
691
|
-
startedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
692
|
-
finishedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
693
|
-
checkpoint: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
694
|
-
checkpointId: z.ZodMiniString<string>;
|
|
695
|
-
runId: z.ZodMiniString<string>;
|
|
696
|
-
turnSeq: z.ZodMiniNumberFormat;
|
|
697
|
-
committedAt: z.ZodMiniString<string>;
|
|
698
|
-
throughSeq: z.ZodMiniNumberFormat;
|
|
699
|
-
}, z.core.$strict>>;
|
|
700
|
-
eventCursor: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
701
|
-
}, z.core.$strict>>;
|
|
702
|
-
lastRun: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
703
|
-
sessionId: z.ZodMiniString<string>;
|
|
704
|
-
turnSeq: z.ZodMiniNumberFormat;
|
|
705
|
-
runId: z.ZodMiniString<string>;
|
|
706
|
-
phase: z.ZodMiniEnum<{
|
|
707
|
-
error: "error";
|
|
708
|
-
running: "running";
|
|
709
|
-
queued: "queued";
|
|
710
|
-
starting: "starting";
|
|
711
|
-
finished: "finished";
|
|
712
|
-
}>;
|
|
713
|
-
outcome: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
714
|
-
succeeded: "succeeded";
|
|
715
|
-
failed: "failed";
|
|
716
|
-
timed_out: "timed_out";
|
|
717
|
-
cancelled: "cancelled";
|
|
718
|
-
interrupted: "interrupted";
|
|
719
|
-
}>>;
|
|
720
|
-
startedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
721
|
-
finishedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
722
|
-
checkpoint: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
723
|
-
checkpointId: z.ZodMiniString<string>;
|
|
724
|
-
runId: z.ZodMiniString<string>;
|
|
725
|
-
turnSeq: z.ZodMiniNumberFormat;
|
|
726
|
-
committedAt: z.ZodMiniString<string>;
|
|
727
|
-
throughSeq: z.ZodMiniNumberFormat;
|
|
728
|
-
}, z.core.$strict>>;
|
|
729
|
-
eventCursor: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
730
|
-
}, z.core.$strict>>;
|
|
731
|
-
providerFault: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
732
|
-
kind: z.ZodMiniString<string>;
|
|
733
|
-
provider: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
734
|
-
status: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
735
|
-
retryAfterMs: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
736
|
-
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
737
|
-
}, z.core.$strict>>;
|
|
738
|
-
idleTtl: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
739
|
-
idleTtlMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
740
|
-
runtimeSize: z.ZodMiniEnum<{
|
|
741
|
-
"0.25cpu-1gb": "0.25cpu-1gb";
|
|
742
|
-
"0.5cpu-4gb": "0.5cpu-4gb";
|
|
743
|
-
"1cpu-6gb": "1cpu-6gb";
|
|
744
|
-
"2cpu-8gb": "2cpu-8gb";
|
|
745
|
-
"4cpu-12gb": "4cpu-12gb";
|
|
746
|
-
}>;
|
|
747
|
-
runtimeKind: z.ZodMiniEnum<{
|
|
748
|
-
container: "container";
|
|
749
|
-
spot_container: "spot_container";
|
|
750
|
-
lambda: "lambda";
|
|
751
|
-
}>;
|
|
752
|
-
workspaceId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
753
|
-
createdAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
754
|
-
updatedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
755
|
-
idleAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
756
|
-
suspendedAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
757
|
-
activeDurationMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
758
|
-
provider: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
759
|
-
model: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
760
|
-
retainedStorageBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
761
|
-
costUsd: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
762
|
-
costTelemetry: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
763
|
-
schemaVersion: z.ZodMiniLiteral<1>;
|
|
764
|
-
sessionId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
765
|
-
provider: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
766
|
-
model: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
767
|
-
recordedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
768
|
-
status: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
769
|
-
unavailable: "unavailable";
|
|
770
|
-
pending: "pending";
|
|
771
|
-
partial: "partial";
|
|
772
|
-
complete: "complete";
|
|
773
|
-
not_applicable: "not_applicable";
|
|
774
|
-
}>>;
|
|
775
|
-
basis: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
776
|
-
durationMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
777
|
-
turnSeq: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
778
|
-
throughSeq: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
779
|
-
runtimeSize: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
780
|
-
runtimeKind: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
781
|
-
billedCostUsd: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
782
|
-
costBasis: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
783
|
-
currency: z.ZodMiniLiteral<"USD">;
|
|
784
|
-
status: z.ZodMiniEnum<{
|
|
785
|
-
estimated: "estimated";
|
|
786
|
-
reconciled: "reconciled";
|
|
787
|
-
}>;
|
|
788
|
-
}, z.core.$strict>>;
|
|
789
|
-
usage: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
790
|
-
byteCounts: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
791
|
-
providerUsage: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
792
|
-
provider: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
793
|
-
model: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
794
|
-
inputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
795
|
-
outputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
796
|
-
cacheReadInputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
797
|
-
cacheCreationInputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
798
|
-
totalTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
799
|
-
sourceEventId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
800
|
-
sourceSampleIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
801
|
-
}, z.core.$strict>>>;
|
|
802
|
-
childProviderUsage: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
803
|
-
provider: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
804
|
-
model: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
805
|
-
inputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
806
|
-
outputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
807
|
-
cacheReadInputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
808
|
-
cacheCreationInputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
809
|
-
totalTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
810
|
-
sourceEventId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
811
|
-
sourceSampleIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
812
|
-
}, z.core.$strict>>>;
|
|
813
|
-
childCostUsd: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
814
|
-
childSessionCount: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
815
|
-
sourceSummary: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
816
|
-
sampleCount: z.ZodMiniNumber<number>;
|
|
817
|
-
metrics: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
818
|
-
sourceTypes: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
819
|
-
sourceSampleIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
820
|
-
}, z.core.$strict>>;
|
|
821
|
-
durations: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
822
|
-
queuedMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
823
|
-
runtimeMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
824
|
-
fileCaptureMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
825
|
-
cleanupMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
826
|
-
totalMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
827
|
-
}, z.core.$strict>>;
|
|
828
|
-
files: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
829
|
-
discoveredFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
830
|
-
capturedFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
831
|
-
failedFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
832
|
-
capturedBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
833
|
-
}, z.core.$strict>>;
|
|
834
|
-
retries: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
835
|
-
runtimeAttempts: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
836
|
-
providerPollRetries: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
837
|
-
fileCaptureRetries: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
838
|
-
fileUploadRetries: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
839
|
-
}, z.core.$strict>>;
|
|
840
|
-
capture: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
841
|
-
attempted: z.ZodMiniBoolean<boolean>;
|
|
842
|
-
uploadedFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
843
|
-
failedFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
844
|
-
totalBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
845
|
-
failureReasons: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
846
|
-
}, z.core.$strict>>;
|
|
847
|
-
storage: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
848
|
-
storedBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
849
|
-
storedFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
850
|
-
byteMilliseconds: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
851
|
-
}, z.core.$strict>>;
|
|
852
|
-
proxy: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
853
|
-
calls: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
854
|
-
failedCalls: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
855
|
-
requestBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
856
|
-
responseBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
857
|
-
durationMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
858
|
-
}, z.core.$strict>>;
|
|
859
|
-
}, z.core.$strict>>;
|
|
860
|
-
errorMessage: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
861
|
-
failureClass: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
862
|
-
dataState: z.ZodMiniEnum<{
|
|
863
|
-
active: "active";
|
|
864
|
-
metadata_only: "metadata_only";
|
|
865
|
-
}>;
|
|
866
|
-
contentPurgedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
867
|
-
contentDeletedBy: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
868
|
-
retention: "retention";
|
|
869
|
-
user: "user";
|
|
870
|
-
}>>;
|
|
871
|
-
}, z.core.$strict>>;
|
|
872
|
-
nextCursor: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
873
|
-
}, z.core.$strict>;
|
|
874
|
-
export declare const SessionMessageAcceptedResponseSchema: z.ZodMiniObject<{
|
|
875
|
-
session: z.ZodMiniObject<{
|
|
876
|
-
id: z.ZodMiniString<string>;
|
|
877
|
-
status: z.ZodMiniEnum<{
|
|
878
|
-
error: "error";
|
|
879
|
-
creating: "creating";
|
|
880
|
-
running: "running";
|
|
881
|
-
idle: "idle";
|
|
882
|
-
suspending: "suspending";
|
|
883
|
-
suspended: "suspended";
|
|
884
|
-
awaiting_approval: "awaiting_approval";
|
|
885
|
-
cancelling: "cancelling";
|
|
886
|
-
deleting: "deleting";
|
|
887
|
-
deleted: "deleted";
|
|
888
|
-
expired: "expired";
|
|
889
|
-
}>;
|
|
890
|
-
acceptsMessages: z.ZodMiniBoolean<boolean>;
|
|
891
|
-
currentRun: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
892
|
-
sessionId: z.ZodMiniString<string>;
|
|
893
|
-
turnSeq: z.ZodMiniNumberFormat;
|
|
894
|
-
runId: z.ZodMiniString<string>;
|
|
895
|
-
phase: z.ZodMiniEnum<{
|
|
896
|
-
error: "error";
|
|
897
|
-
running: "running";
|
|
898
|
-
queued: "queued";
|
|
899
|
-
starting: "starting";
|
|
900
|
-
finished: "finished";
|
|
901
|
-
}>;
|
|
902
|
-
outcome: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
903
|
-
succeeded: "succeeded";
|
|
904
|
-
failed: "failed";
|
|
905
|
-
timed_out: "timed_out";
|
|
906
|
-
cancelled: "cancelled";
|
|
907
|
-
interrupted: "interrupted";
|
|
908
|
-
}>>;
|
|
909
|
-
startedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
910
|
-
finishedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
911
|
-
checkpoint: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
912
|
-
checkpointId: z.ZodMiniString<string>;
|
|
913
|
-
runId: z.ZodMiniString<string>;
|
|
914
|
-
turnSeq: z.ZodMiniNumberFormat;
|
|
915
|
-
committedAt: z.ZodMiniString<string>;
|
|
916
|
-
throughSeq: z.ZodMiniNumberFormat;
|
|
917
|
-
}, z.core.$strict>>;
|
|
918
|
-
eventCursor: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
919
|
-
}, z.core.$strict>>;
|
|
920
|
-
lastRun: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
921
|
-
sessionId: z.ZodMiniString<string>;
|
|
922
|
-
turnSeq: z.ZodMiniNumberFormat;
|
|
923
|
-
runId: z.ZodMiniString<string>;
|
|
924
|
-
phase: z.ZodMiniEnum<{
|
|
925
|
-
error: "error";
|
|
926
|
-
running: "running";
|
|
927
|
-
queued: "queued";
|
|
928
|
-
starting: "starting";
|
|
929
|
-
finished: "finished";
|
|
930
|
-
}>;
|
|
931
|
-
outcome: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
932
|
-
succeeded: "succeeded";
|
|
933
|
-
failed: "failed";
|
|
934
|
-
timed_out: "timed_out";
|
|
935
|
-
cancelled: "cancelled";
|
|
936
|
-
interrupted: "interrupted";
|
|
937
|
-
}>>;
|
|
938
|
-
startedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
939
|
-
finishedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
940
|
-
checkpoint: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
941
|
-
checkpointId: z.ZodMiniString<string>;
|
|
942
|
-
runId: z.ZodMiniString<string>;
|
|
943
|
-
turnSeq: z.ZodMiniNumberFormat;
|
|
944
|
-
committedAt: z.ZodMiniString<string>;
|
|
945
|
-
throughSeq: z.ZodMiniNumberFormat;
|
|
946
|
-
}, z.core.$strict>>;
|
|
947
|
-
eventCursor: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
948
|
-
}, z.core.$strict>>;
|
|
949
|
-
providerFault: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
950
|
-
kind: z.ZodMiniString<string>;
|
|
951
|
-
provider: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
952
|
-
status: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
953
|
-
retryAfterMs: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
954
|
-
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
955
|
-
}, z.core.$strict>>;
|
|
956
|
-
idleTtl: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
957
|
-
idleTtlMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
958
|
-
runtimeSize: z.ZodMiniEnum<{
|
|
959
|
-
"0.25cpu-1gb": "0.25cpu-1gb";
|
|
960
|
-
"0.5cpu-4gb": "0.5cpu-4gb";
|
|
961
|
-
"1cpu-6gb": "1cpu-6gb";
|
|
962
|
-
"2cpu-8gb": "2cpu-8gb";
|
|
963
|
-
"4cpu-12gb": "4cpu-12gb";
|
|
964
|
-
}>;
|
|
965
|
-
runtimeKind: z.ZodMiniEnum<{
|
|
966
|
-
container: "container";
|
|
967
|
-
spot_container: "spot_container";
|
|
968
|
-
lambda: "lambda";
|
|
969
|
-
}>;
|
|
970
|
-
workspaceId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
971
|
-
createdAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
972
|
-
updatedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
973
|
-
idleAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
974
|
-
suspendedAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
975
|
-
activeDurationMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
976
|
-
provider: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
977
|
-
model: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
978
|
-
retainedStorageBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
979
|
-
costUsd: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
980
|
-
costTelemetry: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
981
|
-
schemaVersion: z.ZodMiniLiteral<1>;
|
|
982
|
-
sessionId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
983
|
-
provider: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
984
|
-
model: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
985
|
-
recordedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
986
|
-
status: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
987
|
-
unavailable: "unavailable";
|
|
988
|
-
pending: "pending";
|
|
989
|
-
partial: "partial";
|
|
990
|
-
complete: "complete";
|
|
991
|
-
not_applicable: "not_applicable";
|
|
992
|
-
}>>;
|
|
993
|
-
basis: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
994
|
-
durationMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
995
|
-
turnSeq: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
996
|
-
throughSeq: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
997
|
-
runtimeSize: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
998
|
-
runtimeKind: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
999
|
-
billedCostUsd: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1000
|
-
costBasis: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1001
|
-
currency: z.ZodMiniLiteral<"USD">;
|
|
1002
|
-
status: z.ZodMiniEnum<{
|
|
1003
|
-
estimated: "estimated";
|
|
1004
|
-
reconciled: "reconciled";
|
|
1005
|
-
}>;
|
|
1006
|
-
}, z.core.$strict>>;
|
|
1007
|
-
usage: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
1008
|
-
byteCounts: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
1009
|
-
providerUsage: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
1010
|
-
provider: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1011
|
-
model: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1012
|
-
inputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1013
|
-
outputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1014
|
-
cacheReadInputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1015
|
-
cacheCreationInputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1016
|
-
totalTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1017
|
-
sourceEventId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1018
|
-
sourceSampleIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
1019
|
-
}, z.core.$strict>>>;
|
|
1020
|
-
childProviderUsage: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
1021
|
-
provider: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1022
|
-
model: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1023
|
-
inputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1024
|
-
outputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1025
|
-
cacheReadInputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1026
|
-
cacheCreationInputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1027
|
-
totalTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1028
|
-
sourceEventId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1029
|
-
sourceSampleIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
1030
|
-
}, z.core.$strict>>>;
|
|
1031
|
-
childCostUsd: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1032
|
-
childSessionCount: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
1033
|
-
sourceSummary: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1034
|
-
sampleCount: z.ZodMiniNumber<number>;
|
|
1035
|
-
metrics: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
1036
|
-
sourceTypes: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
1037
|
-
sourceSampleIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
1038
|
-
}, z.core.$strict>>;
|
|
1039
|
-
durations: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1040
|
-
queuedMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1041
|
-
runtimeMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1042
|
-
fileCaptureMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1043
|
-
cleanupMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1044
|
-
totalMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1045
|
-
}, z.core.$strict>>;
|
|
1046
|
-
files: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1047
|
-
discoveredFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1048
|
-
capturedFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1049
|
-
failedFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1050
|
-
capturedBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1051
|
-
}, z.core.$strict>>;
|
|
1052
|
-
retries: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1053
|
-
runtimeAttempts: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1054
|
-
providerPollRetries: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1055
|
-
fileCaptureRetries: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1056
|
-
fileUploadRetries: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1057
|
-
}, z.core.$strict>>;
|
|
1058
|
-
capture: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1059
|
-
attempted: z.ZodMiniBoolean<boolean>;
|
|
1060
|
-
uploadedFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1061
|
-
failedFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1062
|
-
totalBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1063
|
-
failureReasons: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
1064
|
-
}, z.core.$strict>>;
|
|
1065
|
-
storage: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1066
|
-
storedBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1067
|
-
storedFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1068
|
-
byteMilliseconds: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1069
|
-
}, z.core.$strict>>;
|
|
1070
|
-
proxy: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1071
|
-
calls: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1072
|
-
failedCalls: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1073
|
-
requestBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1074
|
-
responseBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1075
|
-
durationMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1076
|
-
}, z.core.$strict>>;
|
|
1077
|
-
}, z.core.$strict>>;
|
|
1078
|
-
errorMessage: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
1079
|
-
failureClass: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
1080
|
-
dataState: z.ZodMiniEnum<{
|
|
1081
|
-
active: "active";
|
|
1082
|
-
metadata_only: "metadata_only";
|
|
1083
|
-
}>;
|
|
1084
|
-
contentPurgedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1085
|
-
contentDeletedBy: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
1086
|
-
retention: "retention";
|
|
1087
|
-
user: "user";
|
|
1088
|
-
}>>;
|
|
1089
|
-
}, z.core.$strict>;
|
|
1090
|
-
run: z.ZodMiniObject<{
|
|
1091
|
-
sessionId: z.ZodMiniString<string>;
|
|
1092
|
-
turnSeq: z.ZodMiniNumberFormat;
|
|
1093
|
-
runId: z.ZodMiniString<string>;
|
|
1094
|
-
phase: z.ZodMiniEnum<{
|
|
1095
|
-
error: "error";
|
|
1096
|
-
running: "running";
|
|
1097
|
-
queued: "queued";
|
|
1098
|
-
starting: "starting";
|
|
1099
|
-
finished: "finished";
|
|
1100
|
-
}>;
|
|
1101
|
-
outcome: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
1102
|
-
succeeded: "succeeded";
|
|
1103
|
-
failed: "failed";
|
|
1104
|
-
timed_out: "timed_out";
|
|
1105
|
-
cancelled: "cancelled";
|
|
1106
|
-
interrupted: "interrupted";
|
|
1107
|
-
}>>;
|
|
1108
|
-
startedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1109
|
-
finishedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1110
|
-
checkpoint: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1111
|
-
checkpointId: z.ZodMiniString<string>;
|
|
1112
|
-
runId: z.ZodMiniString<string>;
|
|
1113
|
-
turnSeq: z.ZodMiniNumberFormat;
|
|
1114
|
-
committedAt: z.ZodMiniString<string>;
|
|
1115
|
-
throughSeq: z.ZodMiniNumberFormat;
|
|
1116
|
-
}, z.core.$strict>>;
|
|
1117
|
-
eventCursor: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
1118
|
-
}, z.core.$strict>;
|
|
1119
|
-
eventCursor: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
1120
|
-
}, z.core.$strict>;
|
|
1121
|
-
/**
|
|
1122
|
-
* `DELETE /sessions/{id}` — a 200 with a body, not a 204.
|
|
1123
|
-
*
|
|
1124
|
-
* `purgedSessionFileObjects` and `cleanupComplete` are on the wire.
|
|
1125
|
-
* `deleteSession()` used to declare it returned `SessionStateChangeAccepted |
|
|
1126
|
-
* void`, which carries neither and made the body look optional; it now returns
|
|
1127
|
-
* `SessionDeleteAccepted`, pinned to this schema by a key-set assertion.
|
|
1128
|
-
*/
|
|
1129
|
-
export declare const SessionDeleteResponseSchema: z.ZodMiniObject<{
|
|
1130
|
-
session: z.ZodMiniObject<{
|
|
1131
|
-
id: z.ZodMiniString<string>;
|
|
1132
|
-
status: z.ZodMiniEnum<{
|
|
1133
|
-
error: "error";
|
|
1134
|
-
creating: "creating";
|
|
1135
|
-
running: "running";
|
|
1136
|
-
idle: "idle";
|
|
1137
|
-
suspending: "suspending";
|
|
1138
|
-
suspended: "suspended";
|
|
1139
|
-
awaiting_approval: "awaiting_approval";
|
|
1140
|
-
cancelling: "cancelling";
|
|
1141
|
-
deleting: "deleting";
|
|
1142
|
-
deleted: "deleted";
|
|
1143
|
-
expired: "expired";
|
|
1144
|
-
}>;
|
|
1145
|
-
acceptsMessages: z.ZodMiniBoolean<boolean>;
|
|
1146
|
-
currentRun: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1147
|
-
sessionId: z.ZodMiniString<string>;
|
|
1148
|
-
turnSeq: z.ZodMiniNumberFormat;
|
|
1149
|
-
runId: z.ZodMiniString<string>;
|
|
1150
|
-
phase: z.ZodMiniEnum<{
|
|
1151
|
-
error: "error";
|
|
1152
|
-
running: "running";
|
|
1153
|
-
queued: "queued";
|
|
1154
|
-
starting: "starting";
|
|
1155
|
-
finished: "finished";
|
|
1156
|
-
}>;
|
|
1157
|
-
outcome: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
1158
|
-
succeeded: "succeeded";
|
|
1159
|
-
failed: "failed";
|
|
1160
|
-
timed_out: "timed_out";
|
|
1161
|
-
cancelled: "cancelled";
|
|
1162
|
-
interrupted: "interrupted";
|
|
1163
|
-
}>>;
|
|
1164
|
-
startedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1165
|
-
finishedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1166
|
-
checkpoint: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1167
|
-
checkpointId: z.ZodMiniString<string>;
|
|
1168
|
-
runId: z.ZodMiniString<string>;
|
|
1169
|
-
turnSeq: z.ZodMiniNumberFormat;
|
|
1170
|
-
committedAt: z.ZodMiniString<string>;
|
|
1171
|
-
throughSeq: z.ZodMiniNumberFormat;
|
|
1172
|
-
}, z.core.$strict>>;
|
|
1173
|
-
eventCursor: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
1174
|
-
}, z.core.$strict>>;
|
|
1175
|
-
lastRun: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1176
|
-
sessionId: z.ZodMiniString<string>;
|
|
1177
|
-
turnSeq: z.ZodMiniNumberFormat;
|
|
1178
|
-
runId: z.ZodMiniString<string>;
|
|
1179
|
-
phase: z.ZodMiniEnum<{
|
|
1180
|
-
error: "error";
|
|
1181
|
-
running: "running";
|
|
1182
|
-
queued: "queued";
|
|
1183
|
-
starting: "starting";
|
|
1184
|
-
finished: "finished";
|
|
1185
|
-
}>;
|
|
1186
|
-
outcome: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
1187
|
-
succeeded: "succeeded";
|
|
1188
|
-
failed: "failed";
|
|
1189
|
-
timed_out: "timed_out";
|
|
1190
|
-
cancelled: "cancelled";
|
|
1191
|
-
interrupted: "interrupted";
|
|
1192
|
-
}>>;
|
|
1193
|
-
startedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1194
|
-
finishedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1195
|
-
checkpoint: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1196
|
-
checkpointId: z.ZodMiniString<string>;
|
|
1197
|
-
runId: z.ZodMiniString<string>;
|
|
1198
|
-
turnSeq: z.ZodMiniNumberFormat;
|
|
1199
|
-
committedAt: z.ZodMiniString<string>;
|
|
1200
|
-
throughSeq: z.ZodMiniNumberFormat;
|
|
1201
|
-
}, z.core.$strict>>;
|
|
1202
|
-
eventCursor: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
1203
|
-
}, z.core.$strict>>;
|
|
1204
|
-
providerFault: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1205
|
-
kind: z.ZodMiniString<string>;
|
|
1206
|
-
provider: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1207
|
-
status: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
1208
|
-
retryAfterMs: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
1209
|
-
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1210
|
-
}, z.core.$strict>>;
|
|
1211
|
-
idleTtl: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1212
|
-
idleTtlMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1213
|
-
runtimeSize: z.ZodMiniEnum<{
|
|
1214
|
-
"0.25cpu-1gb": "0.25cpu-1gb";
|
|
1215
|
-
"0.5cpu-4gb": "0.5cpu-4gb";
|
|
1216
|
-
"1cpu-6gb": "1cpu-6gb";
|
|
1217
|
-
"2cpu-8gb": "2cpu-8gb";
|
|
1218
|
-
"4cpu-12gb": "4cpu-12gb";
|
|
1219
|
-
}>;
|
|
1220
|
-
runtimeKind: z.ZodMiniEnum<{
|
|
1221
|
-
container: "container";
|
|
1222
|
-
spot_container: "spot_container";
|
|
1223
|
-
lambda: "lambda";
|
|
1224
|
-
}>;
|
|
1225
|
-
workspaceId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1226
|
-
createdAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1227
|
-
updatedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1228
|
-
idleAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
1229
|
-
suspendedAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
1230
|
-
activeDurationMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1231
|
-
provider: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1232
|
-
model: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1233
|
-
retainedStorageBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1234
|
-
costUsd: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1235
|
-
costTelemetry: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1236
|
-
schemaVersion: z.ZodMiniLiteral<1>;
|
|
1237
|
-
sessionId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1238
|
-
provider: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1239
|
-
model: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1240
|
-
recordedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1241
|
-
status: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
1242
|
-
unavailable: "unavailable";
|
|
1243
|
-
pending: "pending";
|
|
1244
|
-
partial: "partial";
|
|
1245
|
-
complete: "complete";
|
|
1246
|
-
not_applicable: "not_applicable";
|
|
1247
|
-
}>>;
|
|
1248
|
-
basis: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1249
|
-
durationMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1250
|
-
turnSeq: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
1251
|
-
throughSeq: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
1252
|
-
runtimeSize: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1253
|
-
runtimeKind: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1254
|
-
billedCostUsd: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1255
|
-
costBasis: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1256
|
-
currency: z.ZodMiniLiteral<"USD">;
|
|
1257
|
-
status: z.ZodMiniEnum<{
|
|
1258
|
-
estimated: "estimated";
|
|
1259
|
-
reconciled: "reconciled";
|
|
1260
|
-
}>;
|
|
1261
|
-
}, z.core.$strict>>;
|
|
1262
|
-
usage: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
1263
|
-
byteCounts: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
1264
|
-
providerUsage: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
1265
|
-
provider: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1266
|
-
model: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1267
|
-
inputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1268
|
-
outputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1269
|
-
cacheReadInputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1270
|
-
cacheCreationInputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1271
|
-
totalTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1272
|
-
sourceEventId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1273
|
-
sourceSampleIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
1274
|
-
}, z.core.$strict>>>;
|
|
1275
|
-
childProviderUsage: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
1276
|
-
provider: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1277
|
-
model: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1278
|
-
inputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1279
|
-
outputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1280
|
-
cacheReadInputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1281
|
-
cacheCreationInputTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1282
|
-
totalTokens: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1283
|
-
sourceEventId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1284
|
-
sourceSampleIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
1285
|
-
}, z.core.$strict>>>;
|
|
1286
|
-
childCostUsd: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1287
|
-
childSessionCount: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
1288
|
-
sourceSummary: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1289
|
-
sampleCount: z.ZodMiniNumber<number>;
|
|
1290
|
-
metrics: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
1291
|
-
sourceTypes: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
1292
|
-
sourceSampleIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
1293
|
-
}, z.core.$strict>>;
|
|
1294
|
-
durations: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1295
|
-
queuedMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1296
|
-
runtimeMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1297
|
-
fileCaptureMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1298
|
-
cleanupMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1299
|
-
totalMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1300
|
-
}, z.core.$strict>>;
|
|
1301
|
-
files: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1302
|
-
discoveredFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1303
|
-
capturedFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1304
|
-
failedFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1305
|
-
capturedBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1306
|
-
}, z.core.$strict>>;
|
|
1307
|
-
retries: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1308
|
-
runtimeAttempts: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1309
|
-
providerPollRetries: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1310
|
-
fileCaptureRetries: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1311
|
-
fileUploadRetries: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1312
|
-
}, z.core.$strict>>;
|
|
1313
|
-
capture: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1314
|
-
attempted: z.ZodMiniBoolean<boolean>;
|
|
1315
|
-
uploadedFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1316
|
-
failedFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1317
|
-
totalBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1318
|
-
failureReasons: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
1319
|
-
}, z.core.$strict>>;
|
|
1320
|
-
storage: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1321
|
-
storedBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1322
|
-
storedFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1323
|
-
byteMilliseconds: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1324
|
-
}, z.core.$strict>>;
|
|
1325
|
-
proxy: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1326
|
-
calls: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1327
|
-
failedCalls: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1328
|
-
requestBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1329
|
-
responseBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1330
|
-
durationMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1331
|
-
}, z.core.$strict>>;
|
|
1332
|
-
}, z.core.$strict>>;
|
|
1333
|
-
errorMessage: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
1334
|
-
failureClass: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
1335
|
-
dataState: z.ZodMiniEnum<{
|
|
1336
|
-
active: "active";
|
|
1337
|
-
metadata_only: "metadata_only";
|
|
1338
|
-
}>;
|
|
1339
|
-
contentPurgedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1340
|
-
contentDeletedBy: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
1341
|
-
retention: "retention";
|
|
1342
|
-
user: "user";
|
|
1343
|
-
}>>;
|
|
1344
|
-
}, z.core.$strict>;
|
|
1345
|
-
purgedSessionFileObjects: z.ZodMiniNumberFormat;
|
|
1346
|
-
cleanupComplete: z.ZodMiniBoolean<boolean>;
|
|
1347
|
-
}, z.core.$strict>;
|
|
1348
|
-
export declare const SessionMessagesPageResponseSchema: z.ZodMiniObject<{
|
|
1349
|
-
messages: z.ZodMiniArray<z.ZodMiniObject<{
|
|
1350
|
-
id: z.ZodMiniString<string>;
|
|
1351
|
-
sender: z.ZodMiniEnum<{
|
|
1352
|
-
user: "user";
|
|
1353
|
-
assistant: "assistant";
|
|
1354
|
-
}>;
|
|
1355
|
-
text: z.ZodMiniString<string>;
|
|
1356
|
-
timestamp: z.ZodMiniString<string>;
|
|
1357
|
-
sequence: z.ZodMiniNumberFormat;
|
|
1358
|
-
content: z.ZodMiniArray<z.ZodMiniUnknown>;
|
|
1359
|
-
turnSeq: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
1360
|
-
messageId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1361
|
-
}, z.core.$strict>>;
|
|
1362
|
-
nextCursor: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1363
|
-
}, z.core.$strict>;
|
|
1364
|
-
/**
|
|
1365
|
-
* One durable event.
|
|
1366
|
-
*
|
|
1367
|
-
* `type` and `source` are open vocabularies by declaration — `AexEventType` is
|
|
1368
|
-
* `(typeof AEX_EVENT_TYPES)[number] | string` — so pinning them here would be
|
|
1369
|
-
* stricter than the type it mirrors.
|
|
1370
|
-
*/
|
|
1371
|
-
export declare const AexEventSchema: z.ZodMiniObject<{
|
|
1372
|
-
specversion: z.ZodMiniLiteral<"1.0">;
|
|
1373
|
-
id: z.ZodMiniString<string>;
|
|
1374
|
-
source: z.ZodMiniString<string>;
|
|
1375
|
-
type: z.ZodMiniString<string>;
|
|
1376
|
-
subject: z.ZodMiniString<string>;
|
|
1377
|
-
threadId: z.ZodMiniString<string>;
|
|
1378
|
-
runId: z.ZodMiniString<string>;
|
|
1379
|
-
time: z.ZodMiniString<string>;
|
|
1380
|
-
sequence: z.ZodMiniNumberFormat;
|
|
1381
|
-
data: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>;
|
|
1382
|
-
traceId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1383
|
-
spanId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1384
|
-
parentSpanId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1385
|
-
channel: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
1386
|
-
event: "event";
|
|
1387
|
-
log: "log";
|
|
1388
|
-
}>>;
|
|
1389
|
-
sourceSeq: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
1390
|
-
emittedAt: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1391
|
-
receivedAt: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1392
|
-
level: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
1393
|
-
error: "error";
|
|
1394
|
-
info: "info";
|
|
1395
|
-
warn: "warn";
|
|
1396
|
-
}>>;
|
|
1397
|
-
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1398
|
-
dedup: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1399
|
-
source: z.ZodMiniString<string>;
|
|
1400
|
-
sourceSeq: z.ZodMiniNumber<number>;
|
|
1401
|
-
}, z.core.$strict>>;
|
|
1402
|
-
ephemeral: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
1403
|
-
replayable: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
1404
|
-
}, z.core.$strict>;
|
|
1405
|
-
export declare const SessionEventsPageResponseSchema: z.ZodMiniObject<{
|
|
1406
|
-
events: z.ZodMiniArray<z.ZodMiniObject<{
|
|
1407
|
-
specversion: z.ZodMiniLiteral<"1.0">;
|
|
1408
|
-
id: z.ZodMiniString<string>;
|
|
1409
|
-
source: z.ZodMiniString<string>;
|
|
1410
|
-
type: z.ZodMiniString<string>;
|
|
1411
|
-
subject: z.ZodMiniString<string>;
|
|
1412
|
-
threadId: z.ZodMiniString<string>;
|
|
1413
|
-
runId: z.ZodMiniString<string>;
|
|
1414
|
-
time: z.ZodMiniString<string>;
|
|
1415
|
-
sequence: z.ZodMiniNumberFormat;
|
|
1416
|
-
data: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>;
|
|
1417
|
-
traceId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1418
|
-
spanId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1419
|
-
parentSpanId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1420
|
-
channel: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
1421
|
-
event: "event";
|
|
1422
|
-
log: "log";
|
|
1423
|
-
}>>;
|
|
1424
|
-
sourceSeq: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
1425
|
-
emittedAt: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1426
|
-
receivedAt: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1427
|
-
level: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
1428
|
-
error: "error";
|
|
1429
|
-
info: "info";
|
|
1430
|
-
warn: "warn";
|
|
1431
|
-
}>>;
|
|
1432
|
-
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1433
|
-
dedup: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1434
|
-
source: z.ZodMiniString<string>;
|
|
1435
|
-
sourceSeq: z.ZodMiniNumber<number>;
|
|
1436
|
-
}, z.core.$strict>>;
|
|
1437
|
-
ephemeral: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
1438
|
-
replayable: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
1439
|
-
}, z.core.$strict>>;
|
|
1440
|
-
nextCursor: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1441
|
-
}, z.core.$strict>;
|
|
1442
|
-
/**
|
|
1443
|
-
* `POST /sessions/{id}/events/ticket`.
|
|
1444
|
-
*
|
|
1445
|
-
* `ok` and `region` are on the wire. The declared `CoordinatorTicket` interface
|
|
1446
|
-
* in `operations.ts` used to stop at `wsUrl` / `ticket` / `expiresAtMs`, hiding
|
|
1447
|
-
* the region the grant is only valid against; it now carries all five.
|
|
1448
|
-
*/
|
|
1449
|
-
export declare const CoordinatorTicketResponseSchema: z.ZodMiniObject<{
|
|
1450
|
-
ok: z.ZodMiniLiteral<true>;
|
|
1451
|
-
wsUrl: z.ZodMiniString<string>;
|
|
1452
|
-
ticket: z.ZodMiniString<string>;
|
|
1453
|
-
expiresAtMs: z.ZodMiniNumberFormat;
|
|
1454
|
-
region: z.ZodMiniString<string>;
|
|
1455
|
-
}, z.core.$strict>;
|
|
1456
|
-
export declare const SessionChildrenResponseSchema: z.ZodMiniObject<{
|
|
1457
|
-
children: z.ZodMiniArray<z.ZodMiniObject<{
|
|
1458
|
-
id: z.ZodMiniString<string>;
|
|
1459
|
-
parentSessionId: z.ZodMiniString<string>;
|
|
1460
|
-
status: z.ZodMiniEnum<{
|
|
1461
|
-
error: "error";
|
|
1462
|
-
creating: "creating";
|
|
1463
|
-
running: "running";
|
|
1464
|
-
idle: "idle";
|
|
1465
|
-
suspending: "suspending";
|
|
1466
|
-
suspended: "suspended";
|
|
1467
|
-
awaiting_approval: "awaiting_approval";
|
|
1468
|
-
cancelling: "cancelling";
|
|
1469
|
-
deleting: "deleting";
|
|
1470
|
-
deleted: "deleted";
|
|
1471
|
-
expired: "expired";
|
|
1472
|
-
}>;
|
|
1473
|
-
createdAt: z.ZodMiniString<string>;
|
|
1474
|
-
updatedAt: z.ZodMiniString<string>;
|
|
1475
|
-
depth: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
1476
|
-
costUsd: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1477
|
-
terminalAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
1478
|
-
lastRun: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1479
|
-
sessionId: z.ZodMiniString<string>;
|
|
1480
|
-
turnSeq: z.ZodMiniNumberFormat;
|
|
1481
|
-
runId: z.ZodMiniString<string>;
|
|
1482
|
-
phase: z.ZodMiniEnum<{
|
|
1483
|
-
error: "error";
|
|
1484
|
-
running: "running";
|
|
1485
|
-
queued: "queued";
|
|
1486
|
-
starting: "starting";
|
|
1487
|
-
finished: "finished";
|
|
1488
|
-
}>;
|
|
1489
|
-
outcome: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
1490
|
-
succeeded: "succeeded";
|
|
1491
|
-
failed: "failed";
|
|
1492
|
-
timed_out: "timed_out";
|
|
1493
|
-
cancelled: "cancelled";
|
|
1494
|
-
interrupted: "interrupted";
|
|
1495
|
-
}>>;
|
|
1496
|
-
startedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1497
|
-
finishedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1498
|
-
checkpoint: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1499
|
-
checkpointId: z.ZodMiniString<string>;
|
|
1500
|
-
runId: z.ZodMiniString<string>;
|
|
1501
|
-
turnSeq: z.ZodMiniNumberFormat;
|
|
1502
|
-
committedAt: z.ZodMiniString<string>;
|
|
1503
|
-
throughSeq: z.ZodMiniNumberFormat;
|
|
1504
|
-
}, z.core.$strict>>;
|
|
1505
|
-
eventCursor: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
1506
|
-
}, z.core.$strict>>;
|
|
1507
|
-
}, z.core.$strict>>;
|
|
1508
|
-
}, z.core.$strict>;
|
|
1509
|
-
export declare const SessionFilesResponseSchema: z.ZodMiniObject<{
|
|
1510
|
-
revision: z.ZodMiniObject<{
|
|
1511
|
-
checkpointId: z.ZodMiniString<string>;
|
|
1512
|
-
runId: z.ZodMiniString<string>;
|
|
1513
|
-
turnSeq: z.ZodMiniNumberFormat;
|
|
1514
|
-
committedAt: z.ZodMiniString<string>;
|
|
1515
|
-
throughSeq: z.ZodMiniNumberFormat;
|
|
1516
|
-
}, z.core.$strict>;
|
|
1517
|
-
files: z.ZodMiniArray<z.ZodMiniObject<{
|
|
1518
|
-
id: z.ZodMiniString<string>;
|
|
1519
|
-
checkpointId: z.ZodMiniString<string>;
|
|
1520
|
-
filename: z.ZodMiniString<string>;
|
|
1521
|
-
sizeBytes: z.ZodMiniNumberFormat;
|
|
1522
|
-
contentType: z.ZodMiniString<string>;
|
|
1523
|
-
createdAt: z.ZodMiniString<string>;
|
|
1524
|
-
sha256: z.ZodMiniString<string>;
|
|
1525
|
-
}, z.core.$strict>>;
|
|
1526
|
-
}, z.core.$strict>;
|
|
1527
|
-
/**
|
|
1528
|
-
* `POST /sessions/{id}/files/{fileId}/link`.
|
|
1529
|
-
*
|
|
1530
|
-
* The declared `SessionFileLink` also carries `expiresAt`; the server does not
|
|
1531
|
-
* send one — `sessionFileLink()` synthesises it client-side from the mint time.
|
|
1532
|
-
*/
|
|
1533
|
-
export declare const SessionFileLinkResponseSchema: z.ZodMiniObject<{
|
|
1534
|
-
url: z.ZodMiniString<string>;
|
|
1535
|
-
expiresInSeconds: z.ZodMiniNumberFormat;
|
|
1536
|
-
file: z.ZodMiniObject<{
|
|
1537
|
-
id: z.ZodMiniString<string>;
|
|
1538
|
-
checkpointId: z.ZodMiniString<string>;
|
|
1539
|
-
filename: z.ZodMiniString<string>;
|
|
1540
|
-
sizeBytes: z.ZodMiniNumberFormat;
|
|
1541
|
-
contentType: z.ZodMiniString<string>;
|
|
1542
|
-
createdAt: z.ZodMiniString<string>;
|
|
1543
|
-
sha256: z.ZodMiniString<string>;
|
|
1544
|
-
}, z.core.$strict>;
|
|
1545
|
-
}, z.core.$strict>;
|
|
1546
|
-
export declare const EventArchiveLinkResponseSchema: z.ZodMiniObject<{
|
|
1547
|
-
url: z.ZodMiniString<string>;
|
|
1548
|
-
expiresInSeconds: z.ZodMiniNumberFormat;
|
|
1549
|
-
}, z.core.$strict>;
|
|
1550
|
-
/** One run-terminal webhook delivery row, session-scoped view. */
|
|
1551
|
-
export declare const SessionWebhookDeliverySchema: z.ZodMiniObject<{
|
|
1552
|
-
id: z.ZodMiniString<string>;
|
|
1553
|
-
runId: z.ZodMiniString<string>;
|
|
1554
|
-
turnSeq: z.ZodMiniNumberFormat;
|
|
1555
|
-
eventType: z.ZodMiniEnum<{
|
|
1556
|
-
"run.finished": "run.finished";
|
|
1557
|
-
"run.error": "run.error";
|
|
1558
|
-
}>;
|
|
1559
|
-
status: z.ZodMiniEnum<{
|
|
1560
|
-
pending: "pending";
|
|
1561
|
-
delivering: "delivering";
|
|
1562
|
-
retrying: "retrying";
|
|
1563
|
-
delivered: "delivered";
|
|
1564
|
-
exhausted: "exhausted";
|
|
1565
|
-
invalid: "invalid";
|
|
1566
|
-
}>;
|
|
1567
|
-
attemptCount: z.ZodMiniNumberFormat;
|
|
1568
|
-
createdAt: z.ZodMiniString<string>;
|
|
1569
|
-
lastStatusCode: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
1570
|
-
lastError: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1571
|
-
}, z.core.$strict>;
|
|
1572
|
-
export declare const SessionWebhookDeliveriesResponseSchema: z.ZodMiniObject<{
|
|
1573
|
-
deliveries: z.ZodMiniArray<z.ZodMiniObject<{
|
|
1574
|
-
id: z.ZodMiniString<string>;
|
|
1575
|
-
runId: z.ZodMiniString<string>;
|
|
1576
|
-
turnSeq: z.ZodMiniNumberFormat;
|
|
1577
|
-
eventType: z.ZodMiniEnum<{
|
|
1578
|
-
"run.finished": "run.finished";
|
|
1579
|
-
"run.error": "run.error";
|
|
1580
|
-
}>;
|
|
1581
|
-
status: z.ZodMiniEnum<{
|
|
1582
|
-
pending: "pending";
|
|
1583
|
-
delivering: "delivering";
|
|
1584
|
-
retrying: "retrying";
|
|
1585
|
-
delivered: "delivered";
|
|
1586
|
-
exhausted: "exhausted";
|
|
1587
|
-
invalid: "invalid";
|
|
1588
|
-
}>;
|
|
1589
|
-
attemptCount: z.ZodMiniNumberFormat;
|
|
1590
|
-
createdAt: z.ZodMiniString<string>;
|
|
1591
|
-
lastStatusCode: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
1592
|
-
lastError: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1593
|
-
}, z.core.$strict>>;
|
|
1594
|
-
}, z.core.$strict>;
|
|
1595
|
-
/** `POST .../redeliver` — HTTP 202 `{ ok: true }`. */
|
|
1596
|
-
export declare const AcknowledgedResponseSchema: z.ZodMiniObject<{
|
|
1597
|
-
ok: z.ZodMiniLiteral<true>;
|
|
1598
|
-
}, z.core.$strict>;
|