stitchkit 0.130.1 → 0.131.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/CHANGELOG.md +42 -0
- package/dist/agent-executor/acp/v1-connect.d.ts +40 -26
- package/dist/agent-executor/acp/v1-connect.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-driver.d.ts +10 -4
- package/dist/agent-executor/acp/v1-driver.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-handlers.d.ts +6 -2
- package/dist/agent-executor/acp/v1-handlers.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-probe.d.ts +38 -0
- package/dist/agent-executor/acp/v1-probe.d.ts.map +1 -0
- package/dist/agent-executor/acp/v1-protocol.d.ts +15 -0
- package/dist/agent-executor/acp/v1-protocol.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-session.d.ts +9 -7
- package/dist/agent-executor/acp/v1-session.d.ts.map +1 -1
- package/dist/agent-executor/claude/cli-driver.d.ts +7 -7
- package/dist/agent-executor/claude/cli-driver.d.ts.map +1 -1
- package/dist/agent-executor/claude/limits.d.ts +6 -4
- package/dist/agent-executor/claude/limits.d.ts.map +1 -1
- package/dist/agent-executor/claude/session.d.ts +3 -3
- package/dist/agent-executor/claude/session.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/controls.d.ts +1 -0
- package/dist/agent-executor/claude-sdk/controls.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/driver.d.ts +51 -50
- package/dist/agent-executor/claude-sdk/driver.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/probe.d.ts +3 -3
- package/dist/agent-executor/claude-sdk/probe.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/query-loop.d.ts +2 -1
- package/dist/agent-executor/claude-sdk/query-loop.d.ts.map +1 -1
- package/dist/agent-executor/codex/classify.d.ts.map +1 -1
- package/dist/agent-executor/codex/connect.d.ts +7 -7
- package/dist/agent-executor/codex/connect.d.ts.map +1 -1
- package/dist/agent-executor/codex/control-client.d.ts +86 -99
- package/dist/agent-executor/codex/control-client.d.ts.map +1 -1
- package/dist/agent-executor/codex/control-read-methods.d.ts +7 -0
- package/dist/agent-executor/codex/control-read-methods.d.ts.map +1 -0
- package/dist/agent-executor/codex/driver.d.ts +29 -28
- package/dist/agent-executor/codex/driver.d.ts.map +1 -1
- package/dist/agent-executor/codex/event-routing.d.ts +14 -0
- package/dist/agent-executor/codex/event-routing.d.ts.map +1 -0
- package/dist/agent-executor/codex/handlers.d.ts +2 -2
- package/dist/agent-executor/codex/handlers.d.ts.map +1 -1
- package/dist/agent-executor/codex/limits.d.ts +9 -3
- package/dist/agent-executor/codex/limits.d.ts.map +1 -1
- package/dist/agent-executor/codex/notifications.d.ts +183 -0
- package/dist/agent-executor/codex/notifications.d.ts.map +1 -0
- package/dist/agent-executor/codex/pagination.d.ts +54 -0
- package/dist/agent-executor/codex/pagination.d.ts.map +1 -0
- package/dist/agent-executor/codex/protocol.d.ts +586 -148
- package/dist/agent-executor/codex/protocol.d.ts.map +1 -1
- package/dist/agent-executor/codex/request-answers.d.ts +4 -2
- package/dist/agent-executor/codex/request-answers.d.ts.map +1 -1
- package/dist/agent-executor/codex/responses.d.ts +855 -0
- package/dist/agent-executor/codex/responses.d.ts.map +1 -0
- package/dist/agent-executor/codex/session-bind.d.ts +410 -0
- package/dist/agent-executor/codex/session-bind.d.ts.map +1 -0
- package/dist/agent-executor/codex/session-controls.d.ts +19 -190
- package/dist/agent-executor/codex/session-controls.d.ts.map +1 -1
- package/dist/agent-executor/codex/session-types.d.ts +190 -0
- package/dist/agent-executor/codex/session-types.d.ts.map +1 -0
- package/dist/agent-executor/codex/session.d.ts +1 -1
- package/dist/agent-executor/codex/session.d.ts.map +1 -1
- package/dist/agent-executor/codex/shared-server.d.ts +4 -4
- package/dist/agent-executor/codex/shared-server.d.ts.map +1 -1
- package/dist/agent-executor/codex/shared-thread.d.ts +5 -5
- package/dist/agent-executor/codex/shared-thread.d.ts.map +1 -1
- package/dist/agent-executor/codex/thread-controls.d.ts +45 -36
- package/dist/agent-executor/codex/thread-controls.d.ts.map +1 -1
- package/dist/agent-executor/codex/thread-list-query.d.ts +5 -0
- package/dist/agent-executor/codex/thread-list-query.d.ts.map +1 -0
- package/dist/agent-executor/codex/thread-open.d.ts +20 -20
- package/dist/agent-executor/codex/thread-open.d.ts.map +1 -1
- package/dist/agent-executor/codex/turn-input.d.ts +4 -3
- package/dist/agent-executor/codex/turn-input.d.ts.map +1 -1
- package/dist/agent-executor/codex/unix-socket-target.d.ts +12 -3
- package/dist/agent-executor/codex/unix-socket-target.d.ts.map +1 -1
- package/dist/agent-executor/codex/ws-frame.d.ts +4 -1
- package/dist/agent-executor/codex/ws-frame.d.ts.map +1 -1
- package/dist/agent-executor/contract.d.ts +3 -1
- package/dist/agent-executor/contract.d.ts.map +1 -1
- package/dist/agent-executor/engine-process.d.ts +4 -4
- package/dist/agent-executor/engine-process.d.ts.map +1 -1
- package/dist/agent-executor/engine.d.ts +3 -3
- package/dist/agent-executor/engine.d.ts.map +1 -1
- package/dist/agent-executor/handoff.d.ts.map +1 -1
- package/dist/agent-executor/hello.d.ts +7 -0
- package/dist/agent-executor/hello.d.ts.map +1 -1
- package/dist/agent-executor/json-rpc-peer.d.ts +9 -4
- package/dist/agent-executor/json-rpc-peer.d.ts.map +1 -1
- package/dist/agent-executor/leases.d.ts +1 -1
- package/dist/agent-executor/leases.d.ts.map +1 -1
- package/dist/agent-executor/plan-limits.d.ts +12 -1
- package/dist/agent-executor/plan-limits.d.ts.map +1 -1
- package/dist/agent-executor/profile.d.ts +7 -0
- package/dist/agent-executor/profile.d.ts.map +1 -1
- package/dist/agent-executor/session-primitives.d.ts +8 -0
- package/dist/agent-executor/session-primitives.d.ts.map +1 -1
- package/dist/agent-executor/testing/consumer-stubs.d.ts +45 -0
- package/dist/agent-executor/testing/consumer-stubs.d.ts.map +1 -0
- package/dist/agent-executor/testing/fake-claude-sdk-query.d.ts +88 -0
- package/dist/agent-executor/testing/fake-claude-sdk-query.d.ts.map +1 -0
- package/dist/agent-executor/testing/fake-codex-app-server.d.ts +56 -0
- package/dist/agent-executor/testing/fake-codex-app-server.d.ts.map +1 -0
- package/dist/agent-executor/testing/fixtures.d.ts +26 -0
- package/dist/agent-executor/testing/fixtures.d.ts.map +1 -0
- package/dist/agent-executor/testing/replay-driver.d.ts +8 -8
- package/dist/agent-executor/testing/replay-driver.d.ts.map +1 -1
- package/dist/agent-executor/testing/replay-runner.d.ts +3 -2
- package/dist/agent-executor/testing/replay-runner.d.ts.map +1 -1
- package/dist/agent-executor/testing/replay-transcript.d.ts +5 -3
- package/dist/agent-executor/testing/replay-transcript.d.ts.map +1 -1
- package/dist/agent-runtime/branch-observations.d.ts +19 -19
- package/dist/agent-runtime/sql-rows.d.ts +10 -10
- package/dist/agent-runtime/store-conformance-lifecycle.d.ts +20 -20
- package/dist/agent-runtime/store-conformance-support.d.ts +10 -10
- package/dist/agent-runtime/terminal-commit.d.ts +10 -10
- package/dist/entrypoints/agent-executor/acp.d.ts +2 -1
- package/dist/entrypoints/agent-executor/acp.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/acp.js +284 -82
- package/dist/entrypoints/agent-executor/claude-sdk.d.ts +4 -0
- package/dist/entrypoints/agent-executor/claude-sdk.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/claude-sdk.js +58 -32
- package/dist/entrypoints/agent-executor/claude.d.ts +2 -2
- package/dist/entrypoints/agent-executor/claude.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/claude.js +25 -20
- package/dist/entrypoints/agent-executor/codex.d.ts +9 -5
- package/dist/entrypoints/agent-executor/codex.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/codex.js +1724 -1557
- package/dist/entrypoints/agent-executor/testing.d.ts +4 -0
- package/dist/entrypoints/agent-executor/testing.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/testing.js +880 -18
- package/dist/entrypoints/agent-executor.d.ts +3 -3
- package/dist/entrypoints/agent-executor.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor.js +42 -8
- package/dist/entrypoints/process.js +3 -3
- package/dist/{index-jrn3prgm.js → index-32vaajec.js} +29 -4
- package/dist/{index-p1qmpq0p.js → index-64e9p079.js} +92 -56
- package/dist/{index-dbp6xemn.js → index-g2d9kws8.js} +199 -3
- package/dist/index-gm9yz82v.js +56 -0
- package/dist/index-j15dhkda.js +749 -0
- package/dist/{index-1q0n6zek.js → index-kwsr7j5k.js} +84 -44
- package/llms/agent-executor-acp.txt +5 -5
- package/llms/agent-executor-claude-sdk.txt +3 -1
- package/llms/agent-executor-claude.txt +2 -2
- package/llms/agent-executor-codex.txt +11 -8
- package/llms/agent-executor-testing.txt +5 -1
- package/llms/agent-executor.txt +4 -4
- package/llms/stitchkit.txt +75 -74
- package/llms/{upgrading-0.128.0-0.130.0.txt → upgrading-0.128.0-0.131.0.txt} +56 -3
- package/llms/upgrading.txt +1 -1
- package/llms-full.txt +158 -95
- package/llms.txt +8 -8
- package/package.json +3 -3
- package/dist/index-2s8sy57y.js +0 -229
|
@@ -0,0 +1,855 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Loose Zod schema for empty-object Codex RPC responses (`thread/archive`, `thread/name/set`, `thread/inject_items`). */
|
|
3
|
+
export declare const CodexEmptyResponseSchema: z.ZodObject<{}, z.core.$loose>;
|
|
4
|
+
/** Loose Zod schema for Codex `thread/read` response. */
|
|
5
|
+
export declare const CodexReadThreadResponseSchema: z.ZodObject<{
|
|
6
|
+
thread: z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
preview: z.ZodOptional<z.ZodString>;
|
|
10
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
11
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
modelProvider: z.ZodOptional<z.ZodString>;
|
|
13
|
+
reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
15
|
+
type: z.ZodLiteral<"notLoaded">;
|
|
16
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
17
|
+
type: z.ZodLiteral<"idle">;
|
|
18
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
19
|
+
type: z.ZodLiteral<"systemError">;
|
|
20
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
21
|
+
type: z.ZodLiteral<"active">;
|
|
22
|
+
activeFlags: z.ZodArray<z.ZodString>;
|
|
23
|
+
}, z.core.$loose>, z.ZodCustom<{
|
|
24
|
+
readonly type: string;
|
|
25
|
+
} & {
|
|
26
|
+
readonly activeFlags?: never;
|
|
27
|
+
}, {
|
|
28
|
+
readonly type: string;
|
|
29
|
+
} & {
|
|
30
|
+
readonly activeFlags?: never;
|
|
31
|
+
}>]>>;
|
|
32
|
+
canAcceptDirectInput: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
33
|
+
cliVersion: z.ZodOptional<z.ZodString>;
|
|
34
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
35
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
recencyAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
37
|
+
ephemeral: z.ZodOptional<z.ZodBoolean>;
|
|
38
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
source: z.ZodOptional<z.ZodJSONSchema>;
|
|
40
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
41
|
+
projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
forkedFromId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
parentThreadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
attachedToThreadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
originator: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
agentNickname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
agentRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
gitInfo: z.ZodOptional<z.ZodNullable<z.ZodJSONSchema>>;
|
|
49
|
+
turns: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
50
|
+
id: z.ZodString;
|
|
51
|
+
status: z.ZodEnum<{
|
|
52
|
+
completed: "completed";
|
|
53
|
+
failed: "failed";
|
|
54
|
+
inProgress: "inProgress";
|
|
55
|
+
interrupted: "interrupted";
|
|
56
|
+
}>;
|
|
57
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
58
|
+
message: z.ZodString;
|
|
59
|
+
codexErrorInfo: z.ZodOptional<z.ZodNullable<z.ZodJSONSchema>>;
|
|
60
|
+
}, z.core.$loose>>>;
|
|
61
|
+
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
62
|
+
completedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
63
|
+
durationMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
64
|
+
rootTurnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
+
items: z.ZodArray<z.ZodObject<{
|
|
66
|
+
type: z.ZodString;
|
|
67
|
+
clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
68
|
+
}, z.core.$loose>>;
|
|
69
|
+
itemsView: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
70
|
+
full: "full";
|
|
71
|
+
notLoaded: "notLoaded";
|
|
72
|
+
summary: "summary";
|
|
73
|
+
}>, z.ZodCustom<string & Record<never, never>, string & Record<never, never>>]>>;
|
|
74
|
+
}, z.core.$loose>>>;
|
|
75
|
+
}, z.core.$loose>;
|
|
76
|
+
readState: z.ZodOptional<z.ZodNullable<z.ZodJSONSchema>>;
|
|
77
|
+
}, z.core.$loose>;
|
|
78
|
+
/** Response returned by Codex `thread/read`, inferred from {@link CodexReadThreadResponseSchema}. */
|
|
79
|
+
export type CodexReadThreadResponse = z.infer<typeof CodexReadThreadResponseSchema>;
|
|
80
|
+
/** Loose Zod schema for Codex `thread/resume` response. */
|
|
81
|
+
export declare const CodexResumeThreadResponseSchema: z.ZodObject<{
|
|
82
|
+
model: z.ZodOptional<z.ZodString>;
|
|
83
|
+
modelProvider: z.ZodOptional<z.ZodString>;
|
|
84
|
+
reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
|
+
approvalPolicy: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
86
|
+
never: "never";
|
|
87
|
+
"on-failure": "on-failure";
|
|
88
|
+
"on-request": "on-request";
|
|
89
|
+
untrusted: "untrusted";
|
|
90
|
+
}>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>]>>;
|
|
91
|
+
sandbox: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
92
|
+
type: z.ZodLiteral<"dangerFullAccess">;
|
|
93
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
94
|
+
type: z.ZodLiteral<"readOnly">;
|
|
95
|
+
networkAccess: z.ZodOptional<z.ZodBoolean>;
|
|
96
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
97
|
+
type: z.ZodLiteral<"externalSandbox">;
|
|
98
|
+
networkAccess: z.ZodOptional<z.ZodString>;
|
|
99
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
100
|
+
type: z.ZodLiteral<"workspaceWrite">;
|
|
101
|
+
writableRoots: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
102
|
+
networkAccess: z.ZodOptional<z.ZodBoolean>;
|
|
103
|
+
excludeTmpdirEnvVar: z.ZodOptional<z.ZodBoolean>;
|
|
104
|
+
excludeSlashTmp: z.ZodOptional<z.ZodBoolean>;
|
|
105
|
+
}, z.core.$loose>, z.ZodCustom<{
|
|
106
|
+
readonly type: string;
|
|
107
|
+
} & {
|
|
108
|
+
readonly writableRoots?: never;
|
|
109
|
+
readonly networkAccess?: never;
|
|
110
|
+
readonly excludeTmpdirEnvVar?: never;
|
|
111
|
+
readonly excludeSlashTmp?: never;
|
|
112
|
+
}, {
|
|
113
|
+
readonly type: string;
|
|
114
|
+
} & {
|
|
115
|
+
readonly writableRoots?: never;
|
|
116
|
+
readonly networkAccess?: never;
|
|
117
|
+
readonly excludeTmpdirEnvVar?: never;
|
|
118
|
+
readonly excludeSlashTmp?: never;
|
|
119
|
+
}>]>>;
|
|
120
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
121
|
+
runtimeWorkspaceRoots: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
122
|
+
thread: z.ZodObject<{
|
|
123
|
+
id: z.ZodString;
|
|
124
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
125
|
+
preview: z.ZodOptional<z.ZodString>;
|
|
126
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
127
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
128
|
+
modelProvider: z.ZodOptional<z.ZodString>;
|
|
129
|
+
reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
130
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
131
|
+
type: z.ZodLiteral<"notLoaded">;
|
|
132
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
133
|
+
type: z.ZodLiteral<"idle">;
|
|
134
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
135
|
+
type: z.ZodLiteral<"systemError">;
|
|
136
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
137
|
+
type: z.ZodLiteral<"active">;
|
|
138
|
+
activeFlags: z.ZodArray<z.ZodString>;
|
|
139
|
+
}, z.core.$loose>, z.ZodCustom<{
|
|
140
|
+
readonly type: string;
|
|
141
|
+
} & {
|
|
142
|
+
readonly activeFlags?: never;
|
|
143
|
+
}, {
|
|
144
|
+
readonly type: string;
|
|
145
|
+
} & {
|
|
146
|
+
readonly activeFlags?: never;
|
|
147
|
+
}>]>>;
|
|
148
|
+
canAcceptDirectInput: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
149
|
+
cliVersion: z.ZodOptional<z.ZodString>;
|
|
150
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
151
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
152
|
+
recencyAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
153
|
+
ephemeral: z.ZodOptional<z.ZodBoolean>;
|
|
154
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
155
|
+
source: z.ZodOptional<z.ZodJSONSchema>;
|
|
156
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
157
|
+
projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
158
|
+
forkedFromId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
159
|
+
parentThreadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
160
|
+
attachedToThreadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
161
|
+
originator: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
162
|
+
agentNickname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
163
|
+
agentRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
164
|
+
gitInfo: z.ZodOptional<z.ZodNullable<z.ZodJSONSchema>>;
|
|
165
|
+
turns: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
166
|
+
id: z.ZodString;
|
|
167
|
+
status: z.ZodEnum<{
|
|
168
|
+
completed: "completed";
|
|
169
|
+
failed: "failed";
|
|
170
|
+
inProgress: "inProgress";
|
|
171
|
+
interrupted: "interrupted";
|
|
172
|
+
}>;
|
|
173
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
174
|
+
message: z.ZodString;
|
|
175
|
+
codexErrorInfo: z.ZodOptional<z.ZodNullable<z.ZodJSONSchema>>;
|
|
176
|
+
}, z.core.$loose>>>;
|
|
177
|
+
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
178
|
+
completedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
179
|
+
durationMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
180
|
+
rootTurnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
181
|
+
items: z.ZodArray<z.ZodObject<{
|
|
182
|
+
type: z.ZodString;
|
|
183
|
+
clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
184
|
+
}, z.core.$loose>>;
|
|
185
|
+
itemsView: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
186
|
+
full: "full";
|
|
187
|
+
notLoaded: "notLoaded";
|
|
188
|
+
summary: "summary";
|
|
189
|
+
}>, z.ZodCustom<string & Record<never, never>, string & Record<never, never>>]>>;
|
|
190
|
+
}, z.core.$loose>>>;
|
|
191
|
+
}, z.core.$loose>;
|
|
192
|
+
approvalsReviewer: z.ZodOptional<z.ZodString>;
|
|
193
|
+
collaborationMode: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
194
|
+
mode: z.ZodString;
|
|
195
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
196
|
+
model: z.ZodOptional<z.ZodString>;
|
|
197
|
+
reasoning_effort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
198
|
+
developer_instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
199
|
+
}, z.core.$loose>>;
|
|
200
|
+
}, z.core.$loose>>>;
|
|
201
|
+
turnsBackwardsCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
202
|
+
itemsBackwardsCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
203
|
+
serviceTier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
204
|
+
disabledPluginIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
205
|
+
instructionSources: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
206
|
+
}, z.core.$loose>;
|
|
207
|
+
/** Response returned by Codex `thread/resume`, inferred from {@link CodexResumeThreadResponseSchema}. */
|
|
208
|
+
export type CodexResumeThreadResponse = z.infer<typeof CodexResumeThreadResponseSchema>;
|
|
209
|
+
/** Loose Zod schema for one item entry returned by Codex `thread/items/list`. */
|
|
210
|
+
export declare const CodexThreadItemEntrySchema: z.ZodObject<{
|
|
211
|
+
turnId: z.ZodString;
|
|
212
|
+
item: z.ZodObject<{
|
|
213
|
+
type: z.ZodString;
|
|
214
|
+
id: z.ZodString;
|
|
215
|
+
}, z.core.$loose>;
|
|
216
|
+
outputDeferred: z.ZodOptional<z.ZodBoolean>;
|
|
217
|
+
startedAtMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
218
|
+
completedAtMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
219
|
+
}, z.core.$loose>;
|
|
220
|
+
/** Single item entry in {@link CodexItemsPage}, inferred from {@link CodexThreadItemEntrySchema}. */
|
|
221
|
+
export type CodexThreadItemEntry = z.infer<typeof CodexThreadItemEntrySchema>;
|
|
222
|
+
/** Loose Zod schema for Codex `thread/items/list` response. */
|
|
223
|
+
export declare const CodexItemsPageSchema: z.ZodObject<{
|
|
224
|
+
data: z.ZodArray<z.ZodObject<{
|
|
225
|
+
turnId: z.ZodString;
|
|
226
|
+
item: z.ZodObject<{
|
|
227
|
+
type: z.ZodString;
|
|
228
|
+
id: z.ZodString;
|
|
229
|
+
}, z.core.$loose>;
|
|
230
|
+
outputDeferred: z.ZodOptional<z.ZodBoolean>;
|
|
231
|
+
startedAtMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
232
|
+
completedAtMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
233
|
+
}, z.core.$loose>>;
|
|
234
|
+
nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
235
|
+
backwardsCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
236
|
+
}, z.core.$loose>;
|
|
237
|
+
/** Paginated items response returned by Codex `thread/items/list`. */
|
|
238
|
+
export type CodexItemsPage = z.infer<typeof CodexItemsPageSchema>;
|
|
239
|
+
/** Loose Zod schema for Codex `thread/list` response. */
|
|
240
|
+
export declare const CodexThreadsPageSchema: z.ZodObject<{
|
|
241
|
+
data: z.ZodArray<z.ZodObject<{
|
|
242
|
+
id: z.ZodString;
|
|
243
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
244
|
+
preview: z.ZodOptional<z.ZodString>;
|
|
245
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
246
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
247
|
+
modelProvider: z.ZodOptional<z.ZodString>;
|
|
248
|
+
reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
249
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
250
|
+
type: z.ZodLiteral<"notLoaded">;
|
|
251
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
252
|
+
type: z.ZodLiteral<"idle">;
|
|
253
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
254
|
+
type: z.ZodLiteral<"systemError">;
|
|
255
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
256
|
+
type: z.ZodLiteral<"active">;
|
|
257
|
+
activeFlags: z.ZodArray<z.ZodString>;
|
|
258
|
+
}, z.core.$loose>, z.ZodCustom<{
|
|
259
|
+
readonly type: string;
|
|
260
|
+
} & {
|
|
261
|
+
readonly activeFlags?: never;
|
|
262
|
+
}, {
|
|
263
|
+
readonly type: string;
|
|
264
|
+
} & {
|
|
265
|
+
readonly activeFlags?: never;
|
|
266
|
+
}>]>>;
|
|
267
|
+
canAcceptDirectInput: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
268
|
+
cliVersion: z.ZodOptional<z.ZodString>;
|
|
269
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
270
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
271
|
+
recencyAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
272
|
+
ephemeral: z.ZodOptional<z.ZodBoolean>;
|
|
273
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
274
|
+
source: z.ZodOptional<z.ZodJSONSchema>;
|
|
275
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
276
|
+
projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
277
|
+
forkedFromId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
278
|
+
parentThreadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
279
|
+
attachedToThreadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
280
|
+
originator: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
281
|
+
agentNickname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
282
|
+
agentRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
283
|
+
gitInfo: z.ZodOptional<z.ZodNullable<z.ZodJSONSchema>>;
|
|
284
|
+
turns: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
285
|
+
id: z.ZodString;
|
|
286
|
+
status: z.ZodEnum<{
|
|
287
|
+
completed: "completed";
|
|
288
|
+
failed: "failed";
|
|
289
|
+
inProgress: "inProgress";
|
|
290
|
+
interrupted: "interrupted";
|
|
291
|
+
}>;
|
|
292
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
293
|
+
message: z.ZodString;
|
|
294
|
+
codexErrorInfo: z.ZodOptional<z.ZodNullable<z.ZodJSONSchema>>;
|
|
295
|
+
}, z.core.$loose>>>;
|
|
296
|
+
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
297
|
+
completedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
298
|
+
durationMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
299
|
+
rootTurnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
300
|
+
items: z.ZodArray<z.ZodObject<{
|
|
301
|
+
type: z.ZodString;
|
|
302
|
+
clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
303
|
+
}, z.core.$loose>>;
|
|
304
|
+
itemsView: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
305
|
+
full: "full";
|
|
306
|
+
notLoaded: "notLoaded";
|
|
307
|
+
summary: "summary";
|
|
308
|
+
}>, z.ZodCustom<string & Record<never, never>, string & Record<never, never>>]>>;
|
|
309
|
+
}, z.core.$loose>>>;
|
|
310
|
+
}, z.core.$loose>>;
|
|
311
|
+
nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
312
|
+
backwardsCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
313
|
+
readStates: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodJSONSchema>>>>;
|
|
314
|
+
}, z.core.$loose>;
|
|
315
|
+
/** Paginated thread list response returned by Codex `thread/list`. */
|
|
316
|
+
export type CodexThreadsPage = z.infer<typeof CodexThreadsPageSchema>;
|
|
317
|
+
/** Loose Zod schema for Codex `thread/loaded/list` response. */
|
|
318
|
+
export declare const CodexLoadedThreadsPageSchema: z.ZodObject<{
|
|
319
|
+
data: z.ZodArray<z.ZodString>;
|
|
320
|
+
nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
321
|
+
}, z.core.$loose>;
|
|
322
|
+
/** Paginated loaded thread id list returned by Codex `thread/loaded/list`. */
|
|
323
|
+
export type CodexLoadedThreadsPage = z.infer<typeof CodexLoadedThreadsPageSchema>;
|
|
324
|
+
/** Loose Zod schema for a reasoning effort option advertised on a Codex model entry. */
|
|
325
|
+
export declare const CodexReasoningEffortOptionSchema: z.ZodObject<{
|
|
326
|
+
reasoningEffort: z.ZodString;
|
|
327
|
+
description: z.ZodOptional<z.ZodString>;
|
|
328
|
+
}, z.core.$loose>;
|
|
329
|
+
/** Loose Zod schema for one model entry returned by Codex `model/list`. */
|
|
330
|
+
export declare const CodexModelSchema: z.ZodObject<{
|
|
331
|
+
id: z.ZodString;
|
|
332
|
+
model: z.ZodOptional<z.ZodString>;
|
|
333
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
334
|
+
description: z.ZodOptional<z.ZodString>;
|
|
335
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
336
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
337
|
+
defaultReasoningEffort: z.ZodOptional<z.ZodString>;
|
|
338
|
+
supportedReasoningEfforts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
339
|
+
reasoningEffort: z.ZodString;
|
|
340
|
+
description: z.ZodOptional<z.ZodString>;
|
|
341
|
+
}, z.core.$loose>>>;
|
|
342
|
+
inputModalities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
343
|
+
upgrade: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
344
|
+
defaultServiceTier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
345
|
+
modelSpecialty: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
346
|
+
}, z.core.$loose>;
|
|
347
|
+
/** Model catalog entry inferred from {@link CodexModelSchema}. */
|
|
348
|
+
export type CodexModel = z.infer<typeof CodexModelSchema>;
|
|
349
|
+
/** Loose Zod schema for Codex `model/list` response. */
|
|
350
|
+
export declare const CodexModelsPageSchema: z.ZodObject<{
|
|
351
|
+
data: z.ZodArray<z.ZodObject<{
|
|
352
|
+
id: z.ZodString;
|
|
353
|
+
model: z.ZodOptional<z.ZodString>;
|
|
354
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
355
|
+
description: z.ZodOptional<z.ZodString>;
|
|
356
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
357
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
358
|
+
defaultReasoningEffort: z.ZodOptional<z.ZodString>;
|
|
359
|
+
supportedReasoningEfforts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
360
|
+
reasoningEffort: z.ZodString;
|
|
361
|
+
description: z.ZodOptional<z.ZodString>;
|
|
362
|
+
}, z.core.$loose>>>;
|
|
363
|
+
inputModalities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
364
|
+
upgrade: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
365
|
+
defaultServiceTier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
366
|
+
modelSpecialty: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
367
|
+
}, z.core.$loose>>;
|
|
368
|
+
nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
369
|
+
}, z.core.$loose>;
|
|
370
|
+
/** Paginated model catalog returned by Codex `model/list`. */
|
|
371
|
+
export type CodexModelsPage = z.infer<typeof CodexModelsPageSchema>;
|
|
372
|
+
/** Loose Zod schema for one discovered skill in Codex `skills/list`. */
|
|
373
|
+
export declare const CodexSkillMetadataSchema: z.ZodObject<{
|
|
374
|
+
name: z.ZodString;
|
|
375
|
+
description: z.ZodOptional<z.ZodString>;
|
|
376
|
+
path: z.ZodOptional<z.ZodString>;
|
|
377
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
378
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
379
|
+
pluginId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
380
|
+
shortDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
381
|
+
interface: z.ZodOptional<z.ZodNullable<z.ZodJSONSchema>>;
|
|
382
|
+
dependencies: z.ZodOptional<z.ZodNullable<z.ZodJSONSchema>>;
|
|
383
|
+
}, z.core.$loose>;
|
|
384
|
+
/** Loose Zod schema for a skill loading error in Codex `skills/list`. */
|
|
385
|
+
export declare const CodexSkillErrorInfoSchema: z.ZodObject<{
|
|
386
|
+
path: z.ZodString;
|
|
387
|
+
message: z.ZodString;
|
|
388
|
+
}, z.core.$loose>;
|
|
389
|
+
/** Loose Zod schema for one workspace entry in Codex `skills/list`. */
|
|
390
|
+
export declare const CodexSkillsListEntrySchema: z.ZodObject<{
|
|
391
|
+
cwd: z.ZodString;
|
|
392
|
+
skills: z.ZodArray<z.ZodObject<{
|
|
393
|
+
name: z.ZodString;
|
|
394
|
+
description: z.ZodOptional<z.ZodString>;
|
|
395
|
+
path: z.ZodOptional<z.ZodString>;
|
|
396
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
397
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
398
|
+
pluginId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
399
|
+
shortDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
400
|
+
interface: z.ZodOptional<z.ZodNullable<z.ZodJSONSchema>>;
|
|
401
|
+
dependencies: z.ZodOptional<z.ZodNullable<z.ZodJSONSchema>>;
|
|
402
|
+
}, z.core.$loose>>;
|
|
403
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
404
|
+
path: z.ZodString;
|
|
405
|
+
message: z.ZodString;
|
|
406
|
+
}, z.core.$loose>>>;
|
|
407
|
+
}, z.core.$loose>;
|
|
408
|
+
/** Loose Zod schema for Codex `skills/list` response. */
|
|
409
|
+
export declare const CodexSkillsListResponseSchema: z.ZodObject<{
|
|
410
|
+
data: z.ZodArray<z.ZodObject<{
|
|
411
|
+
cwd: z.ZodString;
|
|
412
|
+
skills: z.ZodArray<z.ZodObject<{
|
|
413
|
+
name: z.ZodString;
|
|
414
|
+
description: z.ZodOptional<z.ZodString>;
|
|
415
|
+
path: z.ZodOptional<z.ZodString>;
|
|
416
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
417
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
418
|
+
pluginId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
419
|
+
shortDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
420
|
+
interface: z.ZodOptional<z.ZodNullable<z.ZodJSONSchema>>;
|
|
421
|
+
dependencies: z.ZodOptional<z.ZodNullable<z.ZodJSONSchema>>;
|
|
422
|
+
}, z.core.$loose>>;
|
|
423
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
424
|
+
path: z.ZodString;
|
|
425
|
+
message: z.ZodString;
|
|
426
|
+
}, z.core.$loose>>>;
|
|
427
|
+
}, z.core.$loose>>;
|
|
428
|
+
}, z.core.$loose>;
|
|
429
|
+
/** Skills catalog returned by Codex `skills/list`. */
|
|
430
|
+
export type CodexSkillsListResponse = z.infer<typeof CodexSkillsListResponseSchema>;
|
|
431
|
+
/** Loose Zod schema for one preset returned by Codex `collaborationMode/list`. */
|
|
432
|
+
export declare const CodexCollaborationModePresetSchema: z.ZodObject<{
|
|
433
|
+
name: z.ZodString;
|
|
434
|
+
mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
435
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
436
|
+
reasoning_effort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
437
|
+
}, z.core.$loose>;
|
|
438
|
+
/** Loose Zod schema for Codex `collaborationMode/list` response. */
|
|
439
|
+
export declare const CodexCollaborationModesResponseSchema: z.ZodObject<{
|
|
440
|
+
data: z.ZodArray<z.ZodObject<{
|
|
441
|
+
name: z.ZodString;
|
|
442
|
+
mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
443
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
444
|
+
reasoning_effort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
445
|
+
}, z.core.$loose>>;
|
|
446
|
+
}, z.core.$loose>;
|
|
447
|
+
/** Collaboration mode presets returned by Codex `collaborationMode/list`. */
|
|
448
|
+
export type CodexCollaborationModesResponse = z.infer<typeof CodexCollaborationModesResponseSchema>;
|
|
449
|
+
/** Loose Zod schema for one MCP server status returned by Codex `mcpServerStatus/list`. */
|
|
450
|
+
export declare const CodexMcpServerStatusSchema: z.ZodObject<{
|
|
451
|
+
name: z.ZodString;
|
|
452
|
+
authStatus: z.ZodOptional<z.ZodString>;
|
|
453
|
+
runtimeStatus: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
454
|
+
type: z.ZodString;
|
|
455
|
+
}, z.core.$loose>]>>>;
|
|
456
|
+
tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
457
|
+
resources: z.ZodOptional<z.ZodArray<z.ZodJSONSchema>>;
|
|
458
|
+
resourceTemplates: z.ZodOptional<z.ZodArray<z.ZodJSONSchema>>;
|
|
459
|
+
environmentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
460
|
+
httpOrigin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
461
|
+
pluginId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
462
|
+
serverInfo: z.ZodOptional<z.ZodNullable<z.ZodJSONSchema>>;
|
|
463
|
+
serverCapabilities: z.ZodOptional<z.ZodJSONSchema>;
|
|
464
|
+
toolListMeta: z.ZodOptional<z.ZodJSONSchema>;
|
|
465
|
+
toolsError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
466
|
+
}, z.core.$loose>;
|
|
467
|
+
/** Loose Zod schema for Codex `mcpServerStatus/list` response. */
|
|
468
|
+
export declare const CodexMcpServerStatusPageSchema: z.ZodObject<{
|
|
469
|
+
data: z.ZodArray<z.ZodObject<{
|
|
470
|
+
name: z.ZodString;
|
|
471
|
+
authStatus: z.ZodOptional<z.ZodString>;
|
|
472
|
+
runtimeStatus: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
473
|
+
type: z.ZodString;
|
|
474
|
+
}, z.core.$loose>]>>>;
|
|
475
|
+
tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
476
|
+
resources: z.ZodOptional<z.ZodArray<z.ZodJSONSchema>>;
|
|
477
|
+
resourceTemplates: z.ZodOptional<z.ZodArray<z.ZodJSONSchema>>;
|
|
478
|
+
environmentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
479
|
+
httpOrigin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
480
|
+
pluginId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
481
|
+
serverInfo: z.ZodOptional<z.ZodNullable<z.ZodJSONSchema>>;
|
|
482
|
+
serverCapabilities: z.ZodOptional<z.ZodJSONSchema>;
|
|
483
|
+
toolListMeta: z.ZodOptional<z.ZodJSONSchema>;
|
|
484
|
+
toolsError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
485
|
+
}, z.core.$loose>>;
|
|
486
|
+
nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
487
|
+
}, z.core.$loose>;
|
|
488
|
+
/** Paginated MCP server status list returned by Codex `mcpServerStatus/list`. */
|
|
489
|
+
export type CodexMcpServerStatusPage = z.infer<typeof CodexMcpServerStatusPageSchema>;
|
|
490
|
+
/** Loose Zod schema for the effective `config` object returned by Codex `config/read`. */
|
|
491
|
+
export declare const CodexConfigSchema: z.ZodObject<{
|
|
492
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
493
|
+
model_provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
494
|
+
model_reasoning_effort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
495
|
+
model_reasoning_summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
496
|
+
model_verbosity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
497
|
+
model_context_window: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
498
|
+
approval_policy: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
|
|
499
|
+
never: "never";
|
|
500
|
+
"on-failure": "on-failure";
|
|
501
|
+
"on-request": "on-request";
|
|
502
|
+
untrusted: "untrusted";
|
|
503
|
+
}>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>]>>>;
|
|
504
|
+
approvals_reviewer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
505
|
+
sandbox_mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
506
|
+
service_tier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
507
|
+
review_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
508
|
+
instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
509
|
+
developer_instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
510
|
+
compact_prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
511
|
+
}, z.core.$loose>;
|
|
512
|
+
/** Loose Zod schema for one origin metadata entry in Codex `config/read`. */
|
|
513
|
+
export declare const CodexConfigLayerMetadataSchema: z.ZodObject<{
|
|
514
|
+
name: z.ZodJSONSchema;
|
|
515
|
+
version: z.ZodString;
|
|
516
|
+
}, z.core.$loose>;
|
|
517
|
+
/** Loose Zod schema for Codex `config/read` response. */
|
|
518
|
+
export declare const CodexConfigReadResponseSchema: z.ZodObject<{
|
|
519
|
+
config: z.ZodObject<{
|
|
520
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
521
|
+
model_provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
522
|
+
model_reasoning_effort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
523
|
+
model_reasoning_summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
524
|
+
model_verbosity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
525
|
+
model_context_window: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
526
|
+
approval_policy: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
|
|
527
|
+
never: "never";
|
|
528
|
+
"on-failure": "on-failure";
|
|
529
|
+
"on-request": "on-request";
|
|
530
|
+
untrusted: "untrusted";
|
|
531
|
+
}>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>]>>>;
|
|
532
|
+
approvals_reviewer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
533
|
+
sandbox_mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
534
|
+
service_tier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
535
|
+
review_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
536
|
+
instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
537
|
+
developer_instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
538
|
+
compact_prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
539
|
+
}, z.core.$loose>;
|
|
540
|
+
origins: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
541
|
+
name: z.ZodJSONSchema;
|
|
542
|
+
version: z.ZodString;
|
|
543
|
+
}, z.core.$loose>>>;
|
|
544
|
+
layers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodJSONSchema>>>;
|
|
545
|
+
}, z.core.$loose>;
|
|
546
|
+
/** Effective configuration returned by Codex `config/read`. */
|
|
547
|
+
export type CodexConfigReadResponse = z.infer<typeof CodexConfigReadResponseSchema>;
|
|
548
|
+
/** Open-variant Zod schema for a Codex `Account` returned by `account/read`. */
|
|
549
|
+
export declare const CodexAccountSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
550
|
+
type: z.ZodLiteral<"apiKey">;
|
|
551
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
552
|
+
type: z.ZodLiteral<"chatgpt">;
|
|
553
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
554
|
+
planType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
555
|
+
workspaceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
556
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
557
|
+
type: z.ZodLiteral<"amazonBedrock">;
|
|
558
|
+
usesCodexManagedCredentials: z.ZodOptional<z.ZodBoolean>;
|
|
559
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
560
|
+
type: z.ZodLiteral<"gcp">;
|
|
561
|
+
}, z.core.$loose>, z.ZodCustom<{
|
|
562
|
+
readonly type: string;
|
|
563
|
+
} & {
|
|
564
|
+
readonly email?: never;
|
|
565
|
+
readonly planType?: never;
|
|
566
|
+
readonly workspaceName?: never;
|
|
567
|
+
readonly usesCodexManagedCredentials?: never;
|
|
568
|
+
}, {
|
|
569
|
+
readonly type: string;
|
|
570
|
+
} & {
|
|
571
|
+
readonly email?: never;
|
|
572
|
+
readonly planType?: never;
|
|
573
|
+
readonly workspaceName?: never;
|
|
574
|
+
readonly usesCodexManagedCredentials?: never;
|
|
575
|
+
}>]>;
|
|
576
|
+
/** Account identity inferred from {@link CodexAccountSchema}. */
|
|
577
|
+
export type CodexAccount = z.infer<typeof CodexAccountSchema>;
|
|
578
|
+
/** Loose Zod schema for Codex `account/read` response. */
|
|
579
|
+
export declare const CodexAccountReadResponseSchema: z.ZodObject<{
|
|
580
|
+
account: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
581
|
+
type: z.ZodLiteral<"apiKey">;
|
|
582
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
583
|
+
type: z.ZodLiteral<"chatgpt">;
|
|
584
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
585
|
+
planType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
586
|
+
workspaceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
587
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
588
|
+
type: z.ZodLiteral<"amazonBedrock">;
|
|
589
|
+
usesCodexManagedCredentials: z.ZodOptional<z.ZodBoolean>;
|
|
590
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
591
|
+
type: z.ZodLiteral<"gcp">;
|
|
592
|
+
}, z.core.$loose>, z.ZodCustom<{
|
|
593
|
+
readonly type: string;
|
|
594
|
+
} & {
|
|
595
|
+
readonly email?: never;
|
|
596
|
+
readonly planType?: never;
|
|
597
|
+
readonly workspaceName?: never;
|
|
598
|
+
readonly usesCodexManagedCredentials?: never;
|
|
599
|
+
}, {
|
|
600
|
+
readonly type: string;
|
|
601
|
+
} & {
|
|
602
|
+
readonly email?: never;
|
|
603
|
+
readonly planType?: never;
|
|
604
|
+
readonly workspaceName?: never;
|
|
605
|
+
readonly usesCodexManagedCredentials?: never;
|
|
606
|
+
}>]>>>;
|
|
607
|
+
requiresOpenaiAuth: z.ZodBoolean;
|
|
608
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
609
|
+
workspaceRouting: z.ZodOptional<z.ZodNullable<z.ZodJSONSchema>>;
|
|
610
|
+
}, z.core.$loose>;
|
|
611
|
+
/** Account metadata returned by Codex `account/read`. */
|
|
612
|
+
export type CodexAccountReadResponse = z.infer<typeof CodexAccountReadResponseSchema>;
|
|
613
|
+
/** Loose Zod schema for one rate-limit window inside `account/rateLimits/read`. */
|
|
614
|
+
export declare const CodexRateLimitWindowSchema: z.ZodObject<{
|
|
615
|
+
usedPercent: z.ZodNumber;
|
|
616
|
+
windowDurationMins: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
617
|
+
resetsAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
618
|
+
}, z.core.$loose>;
|
|
619
|
+
/** Loose Zod schema for one `RateLimitSnapshot` inside `account/rateLimits/read`. */
|
|
620
|
+
export declare const CodexRateLimitSnapshotSchema: z.ZodObject<{
|
|
621
|
+
limitId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
622
|
+
limitName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
623
|
+
normalModelSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
624
|
+
planType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
625
|
+
primary: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
626
|
+
usedPercent: z.ZodNumber;
|
|
627
|
+
windowDurationMins: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
628
|
+
resetsAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
629
|
+
}, z.core.$loose>>>;
|
|
630
|
+
secondary: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
631
|
+
usedPercent: z.ZodNumber;
|
|
632
|
+
windowDurationMins: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
633
|
+
resetsAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
634
|
+
}, z.core.$loose>>>;
|
|
635
|
+
credits: z.ZodOptional<z.ZodNullable<z.ZodJSONSchema>>;
|
|
636
|
+
individualLimit: z.ZodOptional<z.ZodNullable<z.ZodJSONSchema>>;
|
|
637
|
+
rateLimitReachedType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
638
|
+
spendControlReached: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
639
|
+
}, z.core.$loose>;
|
|
640
|
+
/** Loose Zod schema for Codex `account/rateLimits/read` response. */
|
|
641
|
+
export declare const CodexRateLimitsResponseSchema: z.ZodObject<{
|
|
642
|
+
rateLimits: z.ZodObject<{
|
|
643
|
+
limitId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
644
|
+
limitName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
645
|
+
normalModelSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
646
|
+
planType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
647
|
+
primary: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
648
|
+
usedPercent: z.ZodNumber;
|
|
649
|
+
windowDurationMins: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
650
|
+
resetsAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
651
|
+
}, z.core.$loose>>>;
|
|
652
|
+
secondary: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
653
|
+
usedPercent: z.ZodNumber;
|
|
654
|
+
windowDurationMins: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
655
|
+
resetsAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
656
|
+
}, z.core.$loose>>>;
|
|
657
|
+
credits: z.ZodOptional<z.ZodNullable<z.ZodJSONSchema>>;
|
|
658
|
+
individualLimit: z.ZodOptional<z.ZodNullable<z.ZodJSONSchema>>;
|
|
659
|
+
rateLimitReachedType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
660
|
+
spendControlReached: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
661
|
+
}, z.core.$loose>;
|
|
662
|
+
rateLimitsByLimitId: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
663
|
+
limitId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
664
|
+
limitName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
665
|
+
normalModelSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
666
|
+
planType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
667
|
+
primary: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
668
|
+
usedPercent: z.ZodNumber;
|
|
669
|
+
windowDurationMins: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
670
|
+
resetsAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
671
|
+
}, z.core.$loose>>>;
|
|
672
|
+
secondary: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
673
|
+
usedPercent: z.ZodNumber;
|
|
674
|
+
windowDurationMins: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
675
|
+
resetsAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
676
|
+
}, z.core.$loose>>>;
|
|
677
|
+
credits: z.ZodOptional<z.ZodNullable<z.ZodJSONSchema>>;
|
|
678
|
+
individualLimit: z.ZodOptional<z.ZodNullable<z.ZodJSONSchema>>;
|
|
679
|
+
rateLimitReachedType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
680
|
+
spendControlReached: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
681
|
+
}, z.core.$loose>>>>;
|
|
682
|
+
accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
683
|
+
ordinaryUsageAllowed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
684
|
+
rateLimitResetCredits: z.ZodOptional<z.ZodNullable<z.ZodJSONSchema>>;
|
|
685
|
+
rateLimitUpsell: z.ZodOptional<z.ZodJSONSchema>;
|
|
686
|
+
}, z.core.$loose>;
|
|
687
|
+
/** Raw rate-limits envelope returned by Codex `account/rateLimits/read`. */
|
|
688
|
+
export type CodexRateLimitsResponse = z.infer<typeof CodexRateLimitsResponseSchema>;
|
|
689
|
+
/** Open-variant Zod schema for `ThreadUnsubscribeStatus`. */
|
|
690
|
+
export declare const CodexThreadUnsubscribeStatusSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
691
|
+
notLoaded: "notLoaded";
|
|
692
|
+
notSubscribed: "notSubscribed";
|
|
693
|
+
unsubscribed: "unsubscribed";
|
|
694
|
+
}>, z.ZodCustom<string & Record<never, never>, string & Record<never, never>>]>;
|
|
695
|
+
/** Loose Zod schema for Codex `thread/unsubscribe` response. */
|
|
696
|
+
export declare const CodexThreadUnsubscribeResponseSchema: z.ZodObject<{
|
|
697
|
+
status: z.ZodUnion<readonly [z.ZodEnum<{
|
|
698
|
+
notLoaded: "notLoaded";
|
|
699
|
+
notSubscribed: "notSubscribed";
|
|
700
|
+
unsubscribed: "unsubscribed";
|
|
701
|
+
}>, z.ZodCustom<string & Record<never, never>, string & Record<never, never>>]>;
|
|
702
|
+
}, z.core.$loose>;
|
|
703
|
+
/** Response returned by Codex `thread/unsubscribe`. */
|
|
704
|
+
export type CodexThreadUnsubscribeResponse = z.infer<typeof CodexThreadUnsubscribeResponseSchema>;
|
|
705
|
+
/** Loose Zod schema for Codex `thread/unarchive` response. */
|
|
706
|
+
export declare const CodexThreadUnarchiveResponseSchema: z.ZodObject<{
|
|
707
|
+
thread: z.ZodObject<{
|
|
708
|
+
id: z.ZodString;
|
|
709
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
710
|
+
preview: z.ZodOptional<z.ZodString>;
|
|
711
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
712
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
713
|
+
modelProvider: z.ZodOptional<z.ZodString>;
|
|
714
|
+
reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
715
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
716
|
+
type: z.ZodLiteral<"notLoaded">;
|
|
717
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
718
|
+
type: z.ZodLiteral<"idle">;
|
|
719
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
720
|
+
type: z.ZodLiteral<"systemError">;
|
|
721
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
722
|
+
type: z.ZodLiteral<"active">;
|
|
723
|
+
activeFlags: z.ZodArray<z.ZodString>;
|
|
724
|
+
}, z.core.$loose>, z.ZodCustom<{
|
|
725
|
+
readonly type: string;
|
|
726
|
+
} & {
|
|
727
|
+
readonly activeFlags?: never;
|
|
728
|
+
}, {
|
|
729
|
+
readonly type: string;
|
|
730
|
+
} & {
|
|
731
|
+
readonly activeFlags?: never;
|
|
732
|
+
}>]>>;
|
|
733
|
+
canAcceptDirectInput: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
734
|
+
cliVersion: z.ZodOptional<z.ZodString>;
|
|
735
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
736
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
737
|
+
recencyAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
738
|
+
ephemeral: z.ZodOptional<z.ZodBoolean>;
|
|
739
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
740
|
+
source: z.ZodOptional<z.ZodJSONSchema>;
|
|
741
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
742
|
+
projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
743
|
+
forkedFromId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
744
|
+
parentThreadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
745
|
+
attachedToThreadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
746
|
+
originator: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
747
|
+
agentNickname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
748
|
+
agentRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
749
|
+
gitInfo: z.ZodOptional<z.ZodNullable<z.ZodJSONSchema>>;
|
|
750
|
+
turns: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
751
|
+
id: z.ZodString;
|
|
752
|
+
status: z.ZodEnum<{
|
|
753
|
+
completed: "completed";
|
|
754
|
+
failed: "failed";
|
|
755
|
+
inProgress: "inProgress";
|
|
756
|
+
interrupted: "interrupted";
|
|
757
|
+
}>;
|
|
758
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
759
|
+
message: z.ZodString;
|
|
760
|
+
codexErrorInfo: z.ZodOptional<z.ZodNullable<z.ZodJSONSchema>>;
|
|
761
|
+
}, z.core.$loose>>>;
|
|
762
|
+
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
763
|
+
completedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
764
|
+
durationMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
765
|
+
rootTurnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
766
|
+
items: z.ZodArray<z.ZodObject<{
|
|
767
|
+
type: z.ZodString;
|
|
768
|
+
clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
769
|
+
}, z.core.$loose>>;
|
|
770
|
+
itemsView: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
771
|
+
full: "full";
|
|
772
|
+
notLoaded: "notLoaded";
|
|
773
|
+
summary: "summary";
|
|
774
|
+
}>, z.ZodCustom<string & Record<never, never>, string & Record<never, never>>]>>;
|
|
775
|
+
}, z.core.$loose>>>;
|
|
776
|
+
}, z.core.$loose>;
|
|
777
|
+
}, z.core.$loose>;
|
|
778
|
+
/** Response returned by Codex `thread/unarchive`. */
|
|
779
|
+
export type CodexThreadUnarchiveResponse = z.infer<typeof CodexThreadUnarchiveResponseSchema>;
|
|
780
|
+
/** Loose Zod schema for Codex `thread/metadata/update` response. */
|
|
781
|
+
export declare const CodexThreadMetadataUpdateResponseSchema: z.ZodObject<{
|
|
782
|
+
thread: z.ZodObject<{
|
|
783
|
+
id: z.ZodString;
|
|
784
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
785
|
+
preview: z.ZodOptional<z.ZodString>;
|
|
786
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
787
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
788
|
+
modelProvider: z.ZodOptional<z.ZodString>;
|
|
789
|
+
reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
790
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
791
|
+
type: z.ZodLiteral<"notLoaded">;
|
|
792
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
793
|
+
type: z.ZodLiteral<"idle">;
|
|
794
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
795
|
+
type: z.ZodLiteral<"systemError">;
|
|
796
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
797
|
+
type: z.ZodLiteral<"active">;
|
|
798
|
+
activeFlags: z.ZodArray<z.ZodString>;
|
|
799
|
+
}, z.core.$loose>, z.ZodCustom<{
|
|
800
|
+
readonly type: string;
|
|
801
|
+
} & {
|
|
802
|
+
readonly activeFlags?: never;
|
|
803
|
+
}, {
|
|
804
|
+
readonly type: string;
|
|
805
|
+
} & {
|
|
806
|
+
readonly activeFlags?: never;
|
|
807
|
+
}>]>>;
|
|
808
|
+
canAcceptDirectInput: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
809
|
+
cliVersion: z.ZodOptional<z.ZodString>;
|
|
810
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
811
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
812
|
+
recencyAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
813
|
+
ephemeral: z.ZodOptional<z.ZodBoolean>;
|
|
814
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
815
|
+
source: z.ZodOptional<z.ZodJSONSchema>;
|
|
816
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
817
|
+
projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
818
|
+
forkedFromId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
819
|
+
parentThreadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
820
|
+
attachedToThreadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
821
|
+
originator: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
822
|
+
agentNickname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
823
|
+
agentRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
824
|
+
gitInfo: z.ZodOptional<z.ZodNullable<z.ZodJSONSchema>>;
|
|
825
|
+
turns: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
826
|
+
id: z.ZodString;
|
|
827
|
+
status: z.ZodEnum<{
|
|
828
|
+
completed: "completed";
|
|
829
|
+
failed: "failed";
|
|
830
|
+
inProgress: "inProgress";
|
|
831
|
+
interrupted: "interrupted";
|
|
832
|
+
}>;
|
|
833
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
834
|
+
message: z.ZodString;
|
|
835
|
+
codexErrorInfo: z.ZodOptional<z.ZodNullable<z.ZodJSONSchema>>;
|
|
836
|
+
}, z.core.$loose>>>;
|
|
837
|
+
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
838
|
+
completedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
839
|
+
durationMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
840
|
+
rootTurnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
841
|
+
items: z.ZodArray<z.ZodObject<{
|
|
842
|
+
type: z.ZodString;
|
|
843
|
+
clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
844
|
+
}, z.core.$loose>>;
|
|
845
|
+
itemsView: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
846
|
+
full: "full";
|
|
847
|
+
notLoaded: "notLoaded";
|
|
848
|
+
summary: "summary";
|
|
849
|
+
}>, z.ZodCustom<string & Record<never, never>, string & Record<never, never>>]>>;
|
|
850
|
+
}, z.core.$loose>>>;
|
|
851
|
+
}, z.core.$loose>;
|
|
852
|
+
}, z.core.$loose>;
|
|
853
|
+
/** Response returned by Codex `thread/metadata/update`. */
|
|
854
|
+
export type CodexThreadMetadataUpdateResponse = z.infer<typeof CodexThreadMetadataUpdateResponseSchema>;
|
|
855
|
+
//# sourceMappingURL=responses.d.ts.map
|