@oneharness/sdk 0.6.13 → 0.6.15

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.
Files changed (47) hide show
  1. package/README.md +1 -1
  2. package/dist/generated/capabilities.d.ts +1010 -0
  3. package/dist/generated/capabilities.js +1162 -0
  4. package/dist/generated/config-options.d.ts +8 -0
  5. package/dist/generated/config-options.js +2 -0
  6. package/dist/generated/config-report.d.ts +283 -0
  7. package/dist/generated/config-report.js +2 -0
  8. package/dist/generated/detect-options.d.ts +19 -0
  9. package/dist/generated/detect-options.js +2 -0
  10. package/dist/generated/detection.d.ts +6 -0
  11. package/dist/generated/gate-options.d.ts +17 -0
  12. package/dist/generated/gate-options.js +2 -0
  13. package/dist/generated/history-clear-options.d.ts +15 -0
  14. package/dist/generated/history-clear-options.js +2 -0
  15. package/dist/generated/history-clear-report.d.ts +39 -0
  16. package/dist/generated/history-clear-report.js +2 -0
  17. package/dist/generated/history-list-options.d.ts +13 -0
  18. package/dist/generated/history-lookup.d.ts +26 -0
  19. package/dist/generated/history-migrate-options.d.ts +8 -0
  20. package/dist/generated/history-migrate-options.js +2 -0
  21. package/dist/generated/history-migrate-report.d.ts +31 -0
  22. package/dist/generated/history-migrate-report.js +2 -0
  23. package/dist/generated/history-watch-options.d.ts +13 -0
  24. package/dist/generated/init-options.d.ts +11 -0
  25. package/dist/generated/init-options.js +2 -0
  26. package/dist/generated/interrupt-options.d.ts +12 -0
  27. package/dist/generated/interrupt-options.js +2 -0
  28. package/dist/generated/interrupt-response.d.ts +40 -0
  29. package/dist/generated/interrupt-response.js +2 -0
  30. package/dist/generated/mock-options.d.ts +12 -0
  31. package/dist/generated/mock-options.js +2 -0
  32. package/dist/generated/options.d.ts +108 -0
  33. package/dist/generated/registry.d.ts +14 -4
  34. package/dist/generated/schemas.json +3245 -15
  35. package/dist/generated/sync-options.d.ts +14 -0
  36. package/dist/generated/sync-options.js +2 -0
  37. package/dist/generated/sync-report.d.ts +64 -0
  38. package/dist/generated/sync-report.js +2 -0
  39. package/dist/generated/usage-options.d.ts +15 -0
  40. package/dist/generated/usage-options.js +2 -0
  41. package/dist/generated/usage-report.d.ts +241 -0
  42. package/dist/generated/usage-report.js +2 -0
  43. package/dist/generated/zod.d.ts +70 -2
  44. package/dist/generated/zod.js +444 -0
  45. package/dist/index.d.ts +91 -1
  46. package/dist/index.js +271 -102
  47. package/package.json +2 -2
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Options accepted by the language SDKs' `sync()`.
3
+ */
4
+ export interface SyncOptions {
5
+ /**
6
+ * Report what would change and write nothing.
7
+ */
8
+ check?: boolean | undefined;
9
+ config?: string | undefined;
10
+ cwd?: string | undefined;
11
+ global?: boolean | undefined;
12
+ harnesses?: string[] | undefined;
13
+ noConfig?: boolean | undefined;
14
+ }
@@ -0,0 +1,2 @@
1
+ /* Generated from oneharness-core. Do not edit. */
2
+ export {};
@@ -0,0 +1,64 @@
1
+ /**
2
+ * What applying a fragment did (or, under `check`, would do) to one file.
3
+ *
4
+ * Serialized as the report token itself, so the wire value and the variant a
5
+ * consumer matches on cannot drift apart.
6
+ */
7
+ export type FileStatus = "created" | "updated" | "unchanged";
8
+ /**
9
+ * What one harness's permission/settings sync did (or would do).
10
+ *
11
+ * [`FileStatus`] plus the one outcome a *file* never has: a harness with no
12
+ * permission/settings fragment to apply at all. Keeping them one closed set —
13
+ * rather than the report's earlier free string — is what makes an unreachable
14
+ * status unconstructible and lets the contract publish the four values.
15
+ */
16
+ export type SyncStatus = "created" | "updated" | "unchanged" | "skipped";
17
+ /**
18
+ * The `oneharness sync` output contract.
19
+ */
20
+ export interface SyncReport {
21
+ /**
22
+ * True under `--check`: statuses describe what *would* happen.
23
+ */
24
+ check: boolean;
25
+ /**
26
+ * The oneharness config files the synced settings came from.
27
+ */
28
+ config_files: string[];
29
+ results: SyncResult[];
30
+ schema_version: string;
31
+ [k: string]: unknown;
32
+ }
33
+ /**
34
+ * What one harness's sync did (or would do).
35
+ */
36
+ export interface SyncResult {
37
+ /**
38
+ * The permission/settings config file written (or that would be written);
39
+ * `null` when nothing of that kind is configured for this harness.
40
+ */
41
+ file: string | null;
42
+ harness: string;
43
+ /**
44
+ * Normalized `[[hooks]]` files installed into this harness (a Goose hook
45
+ * writes two). Empty when no `[[hooks]]` entry targets it.
46
+ */
47
+ hooks: HookFileResult[];
48
+ status: SyncStatus;
49
+ /**
50
+ * Top-level settings that have no mapping for this harness (e.g. a
51
+ * top-level `allowed_tools` while the harness has no allow-list concept)
52
+ * — visible here and warned on stderr, never silently dropped.
53
+ */
54
+ unmapped: string[];
55
+ [k: string]: unknown;
56
+ }
57
+ /**
58
+ * One installed `[[hooks]]` file.
59
+ */
60
+ export interface HookFileResult {
61
+ file: string;
62
+ status: FileStatus;
63
+ [k: string]: unknown;
64
+ }
@@ -0,0 +1,2 @@
1
+ /* Generated from oneharness-core. Do not edit. */
2
+ export {};
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Options accepted by the language SDKs' `usage()`.
3
+ */
4
+ export interface UsageOptions {
5
+ all?: boolean | undefined;
6
+ bins?: {
7
+ [k: string]: string;
8
+ } | undefined;
9
+ config?: string | undefined;
10
+ cwd?: string | undefined;
11
+ exclude?: string[] | undefined;
12
+ harnesses?: string[] | undefined;
13
+ noConfig?: boolean | undefined;
14
+ timeoutSeconds?: number | undefined;
15
+ }
@@ -0,0 +1,2 @@
1
+ /* Generated from oneharness-core. Do not edit. */
2
+ export {};
@@ -0,0 +1,241 @@
1
+ /**
2
+ * How the identity authenticates, which is what decides whether plan headroom
3
+ * exists at all.
4
+ */
5
+ export type AuthMode = "subscription" | "api_key" | "unknown";
6
+ /**
7
+ * Tri-state headroom availability.
8
+ *
9
+ * The three states are genuinely different answers and are never collapsed:
10
+ * `available` carries real data, `unavailable` is an affirmative "this identity
11
+ * has no plan headroom to report" **with a reason**, and `unknown` means only
12
+ * that nothing was learned. There is no percentage reachable from either
13
+ * non-available state, so neither can be rendered as `0%` used.
14
+ */
15
+ export type UsageAvailability = {
16
+ state: "available";
17
+ windows: Windows;
18
+ [k: string]: unknown;
19
+ } | {
20
+ reason: UnavailableReason;
21
+ state: "unavailable";
22
+ [k: string]: unknown;
23
+ } | {
24
+ reason: UnknownReason;
25
+ state: "unknown";
26
+ [k: string]: unknown;
27
+ };
28
+ /**
29
+ * One rate-limit window. Emitted only for a window the harness actually
30
+ * reported: a null window (Claude's `seven_day_opus: null`, codex's `secondary:
31
+ * null`) means "not applicable to this plan", **not** "0% used", so it is
32
+ * omitted rather than zero-filled.
33
+ */
34
+ export type UsageWindow = {
35
+ /**
36
+ * The harness-native window identifier, verbatim where the harness names
37
+ * one (`five_hour`, `tangelo`, `chat`) and `<limitId>/<slot>` where codex's
38
+ * two-level buckets are flattened.
39
+ */
40
+ id: string;
41
+ /**
42
+ * Whether this is the limit currently binding, when the harness says so
43
+ * (Claude's `limits[].is_active`). Absent when it does not.
44
+ */
45
+ is_binding?: boolean | null | undefined;
46
+ /**
47
+ * A human label the harness supplied (codex's `limitName`), when it did.
48
+ */
49
+ label?: string | null | undefined;
50
+ /**
51
+ * When the window resets, always absolute RFC 3339 UTC — a [`UtcInstant`],
52
+ * so no other text is representable here. Absent when the harness reported
53
+ * no reset, or one that could not be normalized.
54
+ */
55
+ resets_at?: UtcInstant | null | undefined;
56
+ /**
57
+ * The model display name this window is scoped to, when it is scoped.
58
+ */
59
+ scope?: string | null | undefined;
60
+ usage: WindowUsage;
61
+ [k: string]: unknown;
62
+ } & UsageWindow1;
63
+ /**
64
+ * An RFC 3339 timestamp in UTC (`Z`), in oneharness's canonical spelling.
65
+ */
66
+ export type UtcInstant = string;
67
+ /**
68
+ * What a window's consumption looks like. An unlimited quota carries no
69
+ * counters, so it can never be rendered as a metered bar at 0% used.
70
+ */
71
+ export type WindowUsage = {
72
+ /**
73
+ * The raw counters behind the percentage, when the harness reported
74
+ * every one of them. Never partially fabricated, and absent rather than
75
+ * null when the payload did not carry the full set.
76
+ */
77
+ counters?: QuotaCounters | null | undefined;
78
+ kind: "metered";
79
+ /**
80
+ * **Always percent-used**, whatever polarity the source used, and
81
+ * validated at the boundary — see [`UsedPercent`].
82
+ */
83
+ used_percent: number;
84
+ [k: string]: unknown;
85
+ } | {
86
+ kind: "unlimited";
87
+ [k: string]: unknown;
88
+ };
89
+ /**
90
+ * A counter that cannot legitimately be negative. An entitlement is a ceiling
91
+ * and a consumption is an amount spent; neither has a meaning below zero, so a
92
+ * negative one is a payload that failed to parse rather than an account state,
93
+ * and it is rejected at the boundary like [`UsedPercent`].
94
+ *
95
+ * Deliberately *not* used for [`QuotaCounters::remaining`], which is genuinely
96
+ * negative for an account past its ceiling — the deficit is the signal there,
97
+ * so constraining it would discard a real over-consumption reading.
98
+ */
99
+ export type QuotaAmount = number;
100
+ /**
101
+ * What the counters count.
102
+ */
103
+ export type QuotaUnit = "ai_credits" | "unspecified";
104
+ export type UsageWindow1 = {
105
+ window_seconds: number;
106
+ window_seconds_source: "reported";
107
+ [k: string]: unknown;
108
+ } | {
109
+ window_seconds: number;
110
+ window_seconds_source: "inferred_from_id";
111
+ [k: string]: unknown;
112
+ } | {
113
+ window_seconds_source: "unknown";
114
+ [k: string]: unknown;
115
+ };
116
+ /**
117
+ * A non-empty list of windows. The non-emptiness is the invariant that keeps
118
+ * "available" from ever meaning "no data" — construct it with [`Windows::new`].
119
+ */
120
+ export type Windows = UsageWindow[];
121
+ /**
122
+ * Why an identity affirmatively has no plan headroom. Distinct from
123
+ * [`UnknownReason`]: these are answers, not absences of one.
124
+ */
125
+ export type UnavailableReason = "api_key_auth" | "not_logged_in" | "no_windows_reported" | "no_plan_quota" | "no_headroom_reader";
126
+ /**
127
+ * Why nothing is known. Reserved **strictly** for unprobed or probe-failed —
128
+ * API-key auth is [`UnavailableReason::ApiKeyAuth`], not this.
129
+ */
130
+ export type UnknownReason = {
131
+ kind: "unprobed";
132
+ [k: string]: unknown;
133
+ } | {
134
+ kind: "probe_failed";
135
+ message: string;
136
+ [k: string]: unknown;
137
+ } | {
138
+ bin: string;
139
+ kind: "binary_missing";
140
+ [k: string]: unknown;
141
+ };
142
+ /**
143
+ * One usage report: every probed identity, stamped with a single observation
144
+ * time supplied by the caller (this module reads no clock).
145
+ *
146
+ * Deserializing is a consumer boundary — `oneharness-core` is published for
147
+ * sibling tools — so the envelope is validated on the way in rather than
148
+ * trusted: see [`UsageReportWire`].
149
+ */
150
+ export interface UsageReport {
151
+ identities: UsageIdentity[];
152
+ /**
153
+ * An RFC 3339 timestamp in UTC (`Z`), in oneharness's canonical spelling.
154
+ */
155
+ observed_at: string;
156
+ /**
157
+ * The shape version, as a type with one value — see [`SchemaVersion`].
158
+ */
159
+ schema_version: "0.1";
160
+ [k: string]: unknown;
161
+ }
162
+ /**
163
+ * One harness identity's headroom.
164
+ *
165
+ * Deserializing is a consumer boundary like the envelope's, so every string an
166
+ * identity carries is flattened through [`without_control_chars`] on the way in
167
+ * — see [`UsageIdentityWire`].
168
+ */
169
+ export interface UsageIdentity {
170
+ auth_mode: AuthMode;
171
+ availability: UsageAvailability;
172
+ /**
173
+ * Canonical harness id, matching a [`crate::domain::harness`] registry id.
174
+ */
175
+ harness: string;
176
+ /**
177
+ * The plan as the harness spells it, **verbatim**: Claude's `max` and
178
+ * codex's `pro` are different vocabularies and are never unified into one
179
+ * enum. Absent when the harness reports no plan (an API-key session).
180
+ */
181
+ plan?: string | null | undefined;
182
+ /**
183
+ * How this identity was selected — never the credential itself.
184
+ */
185
+ selector: {
186
+ env: string;
187
+ kind: "env_path";
188
+ path: string;
189
+ [k: string]: unknown;
190
+ } | {
191
+ env: string;
192
+ kind: "env_secret";
193
+ [k: string]: unknown;
194
+ } | {
195
+ kind: "ambient";
196
+ [k: string]: unknown;
197
+ };
198
+ /**
199
+ * The named variant this identity came from, when it was selected by a
200
+ * composed id (`claude-code:work`). Absent for a bare harness id, matching
201
+ * [`crate::domain::report::RunResult::variant`] — so a consumer joins a
202
+ * usage identity to the runs it describes on the same pair of fields.
203
+ *
204
+ * Two subscriptions of one harness therefore stay distinguishable even when
205
+ * their [`IdentitySelector`]s do not distinguish them (a variant that
206
+ * selects an identity by credential rather than by directory).
207
+ *
208
+ * A [`VariantName`], so the field cannot be *set* to a name no config could
209
+ * have declared — the same enforcement [`UsageReport::observed_at`] gets
210
+ * from [`UtcInstant`]. It serializes transparently, so the wire keeps the
211
+ * plain string [`crate::domain::report::RunResult::variant`] carries.
212
+ */
213
+ variant?: string | null | undefined;
214
+ [k: string]: unknown;
215
+ }
216
+ /**
217
+ * The raw counters behind a metered window.
218
+ */
219
+ export interface QuotaCounters {
220
+ entitlement: QuotaAmount;
221
+ /**
222
+ * Whether any quota remains on this plan.
223
+ */
224
+ has_quota: boolean;
225
+ /**
226
+ * Whether spending past the entitlement is permitted. `has_quota: false`
227
+ * *and* `overage_permitted: false` together are the machine-readable
228
+ * "exhausted and blocked" signal — see [`QuotaCounters::blocked`].
229
+ */
230
+ overage_permitted: boolean;
231
+ /**
232
+ * The server's own remaining figure, taken as authoritative rather than
233
+ * recomputed from `entitlement - used`: Copilot's observed values disagree
234
+ * by about 1 and the server's figure wins. Signed, and the one counter here
235
+ * that is: an account past its ceiling reports a real deficit.
236
+ */
237
+ remaining: number;
238
+ unit: QuotaUnit;
239
+ used: QuotaAmount;
240
+ [k: string]: unknown;
241
+ }
@@ -0,0 +1,2 @@
1
+ /* Generated from oneharness-core. Do not edit. */
2
+ export {};
@@ -1,38 +1,77 @@
1
1
  import { z } from "zod";
2
- import type { ActionEvent, BatchReport, ControlEvent, ControlReason, ControlReport, ControlVerb, ExecutionTelemetry, FailureKind, FallThrough, FallbackReport, OutputFormat, RunReport, RunResult, SessionReport, Status, TimingSource, ToolCallStatus, Usage, UtcInstant } from "./contracts.js";
2
+ import type { ConfigOptions } from "./config-options.js";
3
+ import type { ConfigReport, Field, Field10, Field2, Field3, Field4, Field5, Field6, Field7, Field8, Field9, HarnessReport, HookEntry, VariantReport } from "./config-report.js";
4
+ import type { ActionEvent, BatchReport, ControlEvent, ControlReason, ControlReport, ControlVerb, ExecutionTelemetry, FailureKind, FallThrough, FallbackReport, RunReport, RunResult, SessionReport, Status, TimingSource, ToolCallStatus, Usage, UtcInstant } from "./contracts.js";
5
+ import type { DetectOptions } from "./detect-options.js";
3
6
  import type { DetectInfo, DetectReport } from "./detection.js";
7
+ import type { GateOptions } from "./gate-options.js";
4
8
  import type { HistoryRecord } from "./history.js";
9
+ import type { HistoryClearOptions } from "./history-clear-options.js";
10
+ import type { HistoryClearDryRun, HistoryClearRemoved, HistoryClearReport } from "./history-clear-report.js";
5
11
  import type { HistoryLine } from "./history-line.js";
6
12
  import type { HistoryList, HistorySessionSummary } from "./history-list.js";
7
13
  import type { HistoryListOptions } from "./history-list-options.js";
8
14
  import type { HistoryLookup, HistoryLookupByLast, HistoryLookupBySession } from "./history-lookup.js";
15
+ import type { HistoryMigrateOptions } from "./history-migrate-options.js";
16
+ import type { HistoryMigrateReport, MigrationSummary } from "./history-migrate-report.js";
9
17
  import type { HistoryRecords } from "./history-records.js";
10
18
  import type { HistoryEventLine, HistoryStreamEnvelope } from "./history-stream-envelope.js";
11
19
  import type { HistoryWatchOptions } from "./history-watch-options.js";
12
- import type { HistoryLabels, PermissionMode, RunOptions } from "./options.js";
20
+ import type { InitOptions } from "./init-options.js";
21
+ import type { InterruptOptions } from "./interrupt-options.js";
22
+ import type { InterruptResponse } from "./interrupt-response.js";
23
+ import type { MockOptions } from "./mock-options.js";
24
+ import type { HistoryLabels, OutputFormat, PermissionMode, RunMode, RunOptions } from "./options.js";
13
25
  import type { HarnessInfo, ListReport, ModeInfo, VariantInfo } from "./registry.js";
14
26
  import type { RunStreamEnvelope } from "./run-stream-envelope.js";
27
+ import type { SyncOptions } from "./sync-options.js";
28
+ import type { FileStatus, HookFileResult, SyncReport, SyncResult, SyncStatus } from "./sync-report.js";
29
+ import type { UsageOptions } from "./usage-options.js";
30
+ import type { AuthMode, QuotaAmount, QuotaCounters, QuotaUnit, UnavailableReason, UnknownReason, UsageAvailability, UsageIdentity, UsageReport, UsageWindow, WindowUsage, Windows } from "./usage-report.js";
15
31
  export type AbsolutePath = ControlReport["socket"];
16
32
  export type BatchStrategy = BatchReport["strategy"];
17
33
  export type ControlShape = ControlReport["mechanism"];
34
+ export type IdentitySelector = UsageIdentity["selector"];
18
35
  export type ModeHeadless = ModeInfo["headless"];
19
36
  export type SessionPhase = SessionReport["phase"];
37
+ export type UsedPercent = number;
20
38
  export declare const AbsolutePathSchema: z.ZodType<AbsolutePath>;
21
39
  export declare const ActionEventSchema: z.ZodType<ActionEvent>;
40
+ export declare const AuthModeSchema: z.ZodType<AuthMode>;
22
41
  export declare const BatchReportSchema: z.ZodType<BatchReport>;
23
42
  export declare const BatchStrategySchema: z.ZodType<BatchStrategy>;
43
+ export declare const ConfigOptionsSchema: z.ZodType<ConfigOptions>;
44
+ export declare const ConfigReportSchema: z.ZodType<ConfigReport>;
24
45
  export declare const ControlEventSchema: z.ZodType<ControlEvent>;
25
46
  export declare const ControlReasonSchema: z.ZodType<ControlReason>;
26
47
  export declare const ControlReportSchema: z.ZodType<ControlReport>;
27
48
  export declare const ControlShapeSchema: z.ZodType<ControlShape>;
28
49
  export declare const ControlVerbSchema: z.ZodType<ControlVerb>;
29
50
  export declare const DetectInfoSchema: z.ZodType<DetectInfo>;
51
+ export declare const DetectOptionsSchema: z.ZodType<DetectOptions>;
30
52
  export declare const DetectReportSchema: z.ZodType<DetectReport>;
31
53
  export declare const ExecutionTelemetrySchema: z.ZodType<ExecutionTelemetry>;
32
54
  export declare const FailureKindSchema: z.ZodType<FailureKind>;
33
55
  export declare const FallThroughSchema: z.ZodType<FallThrough>;
34
56
  export declare const FallbackReportSchema: z.ZodType<FallbackReport>;
57
+ export declare const FieldSchema: z.ZodType<Field>;
58
+ export declare const Field10Schema: z.ZodType<Field10>;
59
+ export declare const Field2Schema: z.ZodType<Field2>;
60
+ export declare const Field3Schema: z.ZodType<Field3>;
61
+ export declare const Field4Schema: z.ZodType<Field4>;
62
+ export declare const Field5Schema: z.ZodType<Field5>;
63
+ export declare const Field6Schema: z.ZodType<Field6>;
64
+ export declare const Field7Schema: z.ZodType<Field7>;
65
+ export declare const Field8Schema: z.ZodType<Field8>;
66
+ export declare const Field9Schema: z.ZodType<Field9>;
67
+ export declare const FileStatusSchema: z.ZodType<FileStatus>;
68
+ export declare const GateOptionsSchema: z.ZodType<GateOptions>;
35
69
  export declare const HarnessInfoSchema: z.ZodType<HarnessInfo>;
70
+ export declare const HarnessReportSchema: z.ZodType<HarnessReport>;
71
+ export declare const HistoryClearDryRunSchema: z.ZodType<HistoryClearDryRun>;
72
+ export declare const HistoryClearOptionsSchema: z.ZodType<HistoryClearOptions>;
73
+ export declare const HistoryClearRemovedSchema: z.ZodType<HistoryClearRemoved>;
74
+ export declare const HistoryClearReportSchema: z.ZodType<HistoryClearReport>;
36
75
  export declare const HistoryEventLineSchema: z.ZodType<HistoryEventLine>;
37
76
  export declare const HistoryLabelsSchema: z.ZodType<HistoryLabels>;
38
77
  export declare const HistoryLineSchema: z.ZodType<HistoryLine>;
@@ -41,16 +80,30 @@ export declare const HistoryListOptionsSchema: z.ZodType<HistoryListOptions>;
41
80
  export declare const HistoryLookupSchema: z.ZodType<HistoryLookup>;
42
81
  export declare const HistoryLookupByLastSchema: z.ZodType<HistoryLookupByLast>;
43
82
  export declare const HistoryLookupBySessionSchema: z.ZodType<HistoryLookupBySession>;
83
+ export declare const HistoryMigrateOptionsSchema: z.ZodType<HistoryMigrateOptions>;
84
+ export declare const HistoryMigrateReportSchema: z.ZodType<HistoryMigrateReport>;
44
85
  export declare const HistoryRecordSchema: z.ZodType<HistoryRecord>;
45
86
  export declare const HistoryRecordsSchema: z.ZodType<HistoryRecords>;
46
87
  export declare const HistorySessionSummarySchema: z.ZodType<HistorySessionSummary>;
47
88
  export declare const HistoryStreamEnvelopeSchema: z.ZodType<HistoryStreamEnvelope>;
48
89
  export declare const HistoryWatchOptionsSchema: z.ZodType<HistoryWatchOptions>;
90
+ export declare const HookEntrySchema: z.ZodType<HookEntry>;
91
+ export declare const HookFileResultSchema: z.ZodType<HookFileResult>;
92
+ export declare const IdentitySelectorSchema: z.ZodType<IdentitySelector>;
93
+ export declare const InitOptionsSchema: z.ZodType<InitOptions>;
94
+ export declare const InterruptOptionsSchema: z.ZodType<InterruptOptions>;
95
+ export declare const InterruptResponseSchema: z.ZodType<InterruptResponse>;
49
96
  export declare const ListReportSchema: z.ZodType<ListReport>;
97
+ export declare const MigrationSummarySchema: z.ZodType<MigrationSummary>;
98
+ export declare const MockOptionsSchema: z.ZodType<MockOptions>;
50
99
  export declare const ModeHeadlessSchema: z.ZodType<ModeHeadless>;
51
100
  export declare const ModeInfoSchema: z.ZodType<ModeInfo>;
52
101
  export declare const OutputFormatSchema: z.ZodType<OutputFormat>;
53
102
  export declare const PermissionModeSchema: z.ZodType<PermissionMode>;
103
+ export declare const QuotaAmountSchema: z.ZodType<QuotaAmount>;
104
+ export declare const QuotaCountersSchema: z.ZodType<QuotaCounters>;
105
+ export declare const QuotaUnitSchema: z.ZodType<QuotaUnit>;
106
+ export declare const RunModeSchema: z.ZodType<RunMode>;
54
107
  export declare const RunOptionsSchema: z.ZodType<RunOptions>;
55
108
  export declare const RunReportSchema: z.ZodType<RunReport>;
56
109
  export declare const RunResultSchema: z.ZodType<RunResult>;
@@ -58,8 +111,23 @@ export declare const RunStreamEnvelopeSchema: z.ZodType<RunStreamEnvelope>;
58
111
  export declare const SessionPhaseSchema: z.ZodType<SessionPhase>;
59
112
  export declare const SessionReportSchema: z.ZodType<SessionReport>;
60
113
  export declare const StatusSchema: z.ZodType<Status>;
114
+ export declare const SyncOptionsSchema: z.ZodType<SyncOptions>;
115
+ export declare const SyncReportSchema: z.ZodType<SyncReport>;
116
+ export declare const SyncResultSchema: z.ZodType<SyncResult>;
117
+ export declare const SyncStatusSchema: z.ZodType<SyncStatus>;
61
118
  export declare const TimingSourceSchema: z.ZodType<TimingSource>;
62
119
  export declare const ToolCallStatusSchema: z.ZodType<ToolCallStatus>;
120
+ export declare const UnavailableReasonSchema: z.ZodType<UnavailableReason>;
121
+ export declare const UnknownReasonSchema: z.ZodType<UnknownReason>;
63
122
  export declare const UsageSchema: z.ZodType<Usage>;
123
+ export declare const UsageAvailabilitySchema: z.ZodType<UsageAvailability>;
124
+ export declare const UsageIdentitySchema: z.ZodType<UsageIdentity>;
125
+ export declare const UsageOptionsSchema: z.ZodType<UsageOptions>;
126
+ export declare const UsageReportSchema: z.ZodType<UsageReport>;
127
+ export declare const UsageWindowSchema: z.ZodType<UsageWindow>;
128
+ export declare const UsedPercentSchema: z.ZodType<UsedPercent>;
64
129
  export declare const UtcInstantSchema: z.ZodType<UtcInstant>;
65
130
  export declare const VariantInfoSchema: z.ZodType<VariantInfo>;
131
+ export declare const VariantReportSchema: z.ZodType<VariantReport>;
132
+ export declare const WindowUsageSchema: z.ZodType<WindowUsage>;
133
+ export declare const WindowsSchema: z.ZodType<Windows>;