@anchrd/colab-sdk 0.0.0-stage → 0.1.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/README.md +65 -2
- package/dist/actions/actions.d.ts +810 -0
- package/dist/actions/actions.js +177 -0
- package/dist/admin-mode.d.ts +2 -0
- package/dist/admin-mode.js +5 -0
- package/dist/apps/apps.d.ts +108 -0
- package/dist/apps/apps.js +73 -0
- package/dist/archive/archive.d.ts +25 -0
- package/dist/archive/archive.js +27 -0
- package/dist/auth/auth.d.ts +27 -0
- package/dist/auth/auth.js +22 -0
- package/dist/authorization/authorization.d.ts +36 -0
- package/dist/authorization/authorization.js +23 -0
- package/dist/boards/boards.d.ts +612 -0
- package/dist/boards/boards.js +289 -0
- package/dist/columns/columns.d.ts +28 -0
- package/dist/columns/columns.js +28 -0
- package/dist/connections/connections.d.ts +149 -0
- package/dist/connections/connections.js +74 -0
- package/dist/connectors/connectors.d.ts +148 -0
- package/dist/connectors/connectors.js +83 -0
- package/dist/dashboards/dashboards.d.ts +221 -0
- package/dist/dashboards/dashboards.js +520 -0
- package/dist/directory/directory.d.ts +20 -0
- package/dist/directory/directory.js +18 -0
- package/dist/documents/documents.d.ts +61 -0
- package/dist/documents/documents.js +58 -0
- package/dist/error/error.d.ts +34 -0
- package/dist/error/error.js +30 -0
- package/dist/events/events.d.ts +104 -0
- package/dist/events/events.js +69 -0
- package/dist/files/files.d.ts +60 -0
- package/dist/files/files.js +139 -0
- package/dist/functions/functions.d.ts +26 -0
- package/dist/functions/functions.js +28 -0
- package/dist/grammar/grammar.d.ts +62 -0
- package/dist/grammar/grammar.js +197 -0
- package/dist/grants/grants.d.ts +93 -0
- package/dist/grants/grants.js +66 -0
- package/dist/ids/ids.d.ts +5 -0
- package/dist/ids/ids.js +12 -0
- package/dist/instructions/instructions.d.ts +19 -0
- package/dist/instructions/instructions.js +35 -0
- package/dist/interfaces/interfaces.d.ts +41 -0
- package/dist/interfaces/interfaces.js +52 -0
- package/dist/invitations/invitations.d.ts +98 -0
- package/dist/invitations/invitations.js +58 -0
- package/dist/links/links.d.ts +76 -0
- package/dist/links/links.js +73 -0
- package/dist/list-input.d.ts +3 -0
- package/dist/list-input.js +11 -0
- package/dist/machines/machines.d.ts +69 -0
- package/dist/machines/machines.js +39 -0
- package/dist/messages/messages.d.ts +117 -0
- package/dist/messages/messages.js +77 -0
- package/dist/nodes/nodes.d.ts +673 -0
- package/dist/nodes/nodes.js +354 -0
- package/dist/operators/operators.d.ts +898 -0
- package/dist/operators/operators.js +398 -0
- package/dist/pages/pages.d.ts +89 -0
- package/dist/pages/pages.js +62 -0
- package/dist/primitives/primitives.d.ts +5 -0
- package/dist/primitives/primitives.js +19 -0
- package/dist/profile/profile.d.ts +37 -0
- package/dist/profile/profile.js +43 -0
- package/dist/roles/roles.d.ts +135 -0
- package/dist/roles/roles.js +87 -0
- package/dist/runs/runs.d.ts +244 -0
- package/dist/runs/runs.js +137 -0
- package/dist/runtime-config.d.ts +12 -0
- package/dist/runtime-config.js +18 -0
- package/dist/sdk.d.ts +45 -0
- package/dist/sdk.js +48 -0
- package/dist/secrets/secrets.d.ts +65 -0
- package/dist/secrets/secrets.js +57 -0
- package/dist/service-client/service-client.d.ts +35 -0
- package/dist/service-client/service-client.js +90 -0
- package/dist/services/services.d.ts +122 -0
- package/dist/services/services.js +89 -0
- package/dist/sso/sso.d.ts +70 -0
- package/dist/sso/sso.js +54 -0
- package/dist/tables/tables.d.ts +133 -0
- package/dist/tables/tables.js +131 -0
- package/dist/tool.d.ts +31 -0
- package/dist/tool.js +4 -0
- package/dist/user-settings/user-settings.d.ts +44 -0
- package/dist/user-settings/user-settings.js +44 -0
- package/dist/users/users.d.ts +254 -0
- package/dist/users/users.js +125 -0
- package/dist/validation/validation.d.ts +106 -0
- package/dist/validation/validation.js +41 -0
- package/dist/versions/versions.d.ts +100 -0
- package/dist/versions/versions.js +70 -0
- package/package.json +27 -4
|
@@ -0,0 +1,898 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const operatorProviders: readonly [{
|
|
3
|
+
readonly provider: "claude";
|
|
4
|
+
readonly name: "Claude";
|
|
5
|
+
readonly vendor: "Anthropic";
|
|
6
|
+
readonly selectable: true;
|
|
7
|
+
readonly kinds: readonly ["subscription", "apikey", "gateway"];
|
|
8
|
+
readonly beta: false;
|
|
9
|
+
readonly models: readonly ["opus", "sonnet", "haiku"];
|
|
10
|
+
readonly defaultModel: "sonnet";
|
|
11
|
+
readonly gateway: {
|
|
12
|
+
readonly models: readonly ["opus", "sonnet"];
|
|
13
|
+
readonly defaultModel: "sonnet";
|
|
14
|
+
};
|
|
15
|
+
readonly subagents: true;
|
|
16
|
+
readonly costs: true;
|
|
17
|
+
}, {
|
|
18
|
+
readonly provider: "codex";
|
|
19
|
+
readonly name: "Codex";
|
|
20
|
+
readonly vendor: "OpenAI";
|
|
21
|
+
readonly selectable: true;
|
|
22
|
+
readonly kinds: readonly ["apikey", "gateway"];
|
|
23
|
+
readonly beta: true;
|
|
24
|
+
readonly models: readonly ["gpt-6-astra", "gpt-6.1-sol", "gpt-6-luna"];
|
|
25
|
+
readonly defaultModel: "gpt-6.1-sol";
|
|
26
|
+
readonly gateway: {
|
|
27
|
+
readonly models: readonly ["gpt-6.1-sol", "gpt-6-luna"];
|
|
28
|
+
readonly defaultModel: "gpt-6.1-sol";
|
|
29
|
+
};
|
|
30
|
+
readonly subagents: false;
|
|
31
|
+
readonly costs: false;
|
|
32
|
+
}, {
|
|
33
|
+
readonly provider: "gemini";
|
|
34
|
+
readonly name: "Gemini";
|
|
35
|
+
readonly vendor: "Google";
|
|
36
|
+
readonly selectable: true;
|
|
37
|
+
readonly kinds: readonly ["apikey", "gateway"];
|
|
38
|
+
readonly beta: true;
|
|
39
|
+
readonly models: readonly ["pro", "flash", "flash-lite"];
|
|
40
|
+
readonly defaultModel: "flash";
|
|
41
|
+
readonly gateway: {
|
|
42
|
+
readonly models: readonly ["gemini-2.5-pro", "gemini-2.5-flash", "gemini-2.5-flash-lite"];
|
|
43
|
+
readonly defaultModel: "gemini-2.5-flash";
|
|
44
|
+
};
|
|
45
|
+
readonly subagents: false;
|
|
46
|
+
readonly costs: false;
|
|
47
|
+
}];
|
|
48
|
+
export type OperatorProviderEntry = (typeof operatorProviders)[number];
|
|
49
|
+
export declare function modelsOf(entry: OperatorProviderEntry, kind: CredentialKind): {
|
|
50
|
+
models: readonly OperatorModel[];
|
|
51
|
+
defaultModel: OperatorModel;
|
|
52
|
+
};
|
|
53
|
+
export declare const CredentialKind: z.ZodEnum<{
|
|
54
|
+
subscription: "subscription";
|
|
55
|
+
apikey: "apikey";
|
|
56
|
+
gateway: "gateway";
|
|
57
|
+
}>;
|
|
58
|
+
export type CredentialKind = z.infer<typeof CredentialKind>;
|
|
59
|
+
export declare const CredentialState: z.ZodEnum<{
|
|
60
|
+
invalid: "invalid";
|
|
61
|
+
valid: "valid";
|
|
62
|
+
}>;
|
|
63
|
+
export type CredentialState = z.infer<typeof CredentialState>;
|
|
64
|
+
export declare const OperatorModel: z.ZodEnum<{
|
|
65
|
+
opus: "opus";
|
|
66
|
+
sonnet: "sonnet";
|
|
67
|
+
haiku: "haiku";
|
|
68
|
+
"gpt-6-astra": "gpt-6-astra";
|
|
69
|
+
"gpt-6.1-sol": "gpt-6.1-sol";
|
|
70
|
+
"gpt-6-luna": "gpt-6-luna";
|
|
71
|
+
pro: "pro";
|
|
72
|
+
flash: "flash";
|
|
73
|
+
"flash-lite": "flash-lite";
|
|
74
|
+
"gemini-2.5-pro": "gemini-2.5-pro";
|
|
75
|
+
"gemini-2.5-flash": "gemini-2.5-flash";
|
|
76
|
+
"gemini-2.5-flash-lite": "gemini-2.5-flash-lite";
|
|
77
|
+
}>;
|
|
78
|
+
export type OperatorModel = z.infer<typeof OperatorModel>;
|
|
79
|
+
export declare const CredentialId: z.ZodTemplateLiteral<`credential_${string}`>;
|
|
80
|
+
export declare const GatewayTarget: z.ZodObject<{
|
|
81
|
+
accountId: z.ZodString;
|
|
82
|
+
gatewayId: z.ZodString;
|
|
83
|
+
}, z.core.$strict>;
|
|
84
|
+
export type GatewayTarget = z.infer<typeof GatewayTarget>;
|
|
85
|
+
export declare const CredentialListInput: z.ZodObject<{
|
|
86
|
+
cursor: z.ZodOptional<z.ZodTemplateLiteral<`credential_${string}`>>;
|
|
87
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
88
|
+
}, z.core.$strict>;
|
|
89
|
+
export type CredentialListInput = z.infer<typeof CredentialListInput>;
|
|
90
|
+
export declare const CredentialGetInput: z.ZodObject<{
|
|
91
|
+
credentialId: z.ZodTemplateLiteral<`credential_${string}`>;
|
|
92
|
+
}, z.core.$strict>;
|
|
93
|
+
export type CredentialGetInput = z.infer<typeof CredentialGetInput>;
|
|
94
|
+
export declare const CredentialCreateInput: z.ZodObject<{
|
|
95
|
+
provider: z.ZodOptional<z.ZodEnum<{
|
|
96
|
+
claude: "claude";
|
|
97
|
+
codex: "codex";
|
|
98
|
+
gemini: "gemini";
|
|
99
|
+
}>>;
|
|
100
|
+
kind: z.ZodEnum<{
|
|
101
|
+
subscription: "subscription";
|
|
102
|
+
apikey: "apikey";
|
|
103
|
+
gateway: "gateway";
|
|
104
|
+
}>;
|
|
105
|
+
name: z.ZodString;
|
|
106
|
+
value: z.ZodString;
|
|
107
|
+
gateway: z.ZodOptional<z.ZodObject<{
|
|
108
|
+
accountId: z.ZodString;
|
|
109
|
+
gatewayId: z.ZodString;
|
|
110
|
+
}, z.core.$strict>>;
|
|
111
|
+
}, z.core.$strict>;
|
|
112
|
+
export type CredentialCreateInput = z.infer<typeof CredentialCreateInput>;
|
|
113
|
+
export declare const CredentialUpdateInput: z.ZodObject<{
|
|
114
|
+
credentialId: z.ZodTemplateLiteral<`credential_${string}`>;
|
|
115
|
+
name: z.ZodOptional<z.ZodString>;
|
|
116
|
+
value: z.ZodOptional<z.ZodString>;
|
|
117
|
+
gateway: z.ZodOptional<z.ZodObject<{
|
|
118
|
+
accountId: z.ZodString;
|
|
119
|
+
gatewayId: z.ZodString;
|
|
120
|
+
}, z.core.$strict>>;
|
|
121
|
+
}, z.core.$strict>;
|
|
122
|
+
export type CredentialUpdateInput = z.infer<typeof CredentialUpdateInput>;
|
|
123
|
+
export declare const CredentialTestInput: z.ZodObject<{
|
|
124
|
+
credentialId: z.ZodTemplateLiteral<`credential_${string}`>;
|
|
125
|
+
}, z.core.$strict>;
|
|
126
|
+
export type CredentialTestInput = z.infer<typeof CredentialTestInput>;
|
|
127
|
+
export declare const CredentialRevokeInput: z.ZodObject<{
|
|
128
|
+
credentialId: z.ZodTemplateLiteral<`credential_${string}`>;
|
|
129
|
+
}, z.core.$strict>;
|
|
130
|
+
export type CredentialRevokeInput = z.infer<typeof CredentialRevokeInput>;
|
|
131
|
+
export declare const Credential: z.ZodObject<{
|
|
132
|
+
credentialId: z.ZodTemplateLiteral<`credential_${string}`>;
|
|
133
|
+
provider: z.ZodNullable<z.ZodEnum<{
|
|
134
|
+
claude: "claude";
|
|
135
|
+
codex: "codex";
|
|
136
|
+
gemini: "gemini";
|
|
137
|
+
}>>;
|
|
138
|
+
kind: z.ZodEnum<{
|
|
139
|
+
subscription: "subscription";
|
|
140
|
+
apikey: "apikey";
|
|
141
|
+
gateway: "gateway";
|
|
142
|
+
}>;
|
|
143
|
+
name: z.ZodString;
|
|
144
|
+
state: z.ZodEnum<{
|
|
145
|
+
invalid: "invalid";
|
|
146
|
+
valid: "valid";
|
|
147
|
+
}>;
|
|
148
|
+
checkedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
149
|
+
setAt: z.ZodISODateTime;
|
|
150
|
+
machineIds: z.ZodArray<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
151
|
+
createdAt: z.ZodISODateTime;
|
|
152
|
+
createdBy: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
153
|
+
updatedAt: z.ZodISODateTime;
|
|
154
|
+
}, z.core.$strict>;
|
|
155
|
+
export type Credential = z.infer<typeof Credential>;
|
|
156
|
+
export declare const CredentialList: z.ZodObject<{
|
|
157
|
+
items: z.ZodArray<z.ZodObject<{
|
|
158
|
+
credentialId: z.ZodTemplateLiteral<`credential_${string}`>;
|
|
159
|
+
provider: z.ZodNullable<z.ZodEnum<{
|
|
160
|
+
claude: "claude";
|
|
161
|
+
codex: "codex";
|
|
162
|
+
gemini: "gemini";
|
|
163
|
+
}>>;
|
|
164
|
+
kind: z.ZodEnum<{
|
|
165
|
+
subscription: "subscription";
|
|
166
|
+
apikey: "apikey";
|
|
167
|
+
gateway: "gateway";
|
|
168
|
+
}>;
|
|
169
|
+
name: z.ZodString;
|
|
170
|
+
state: z.ZodEnum<{
|
|
171
|
+
invalid: "invalid";
|
|
172
|
+
valid: "valid";
|
|
173
|
+
}>;
|
|
174
|
+
checkedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
175
|
+
setAt: z.ZodISODateTime;
|
|
176
|
+
machineIds: z.ZodArray<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
177
|
+
createdAt: z.ZodISODateTime;
|
|
178
|
+
createdBy: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
179
|
+
updatedAt: z.ZodISODateTime;
|
|
180
|
+
}, z.core.$strict>>;
|
|
181
|
+
nextCursor: z.ZodNullable<z.ZodTemplateLiteral<`credential_${string}`>>;
|
|
182
|
+
}, z.core.$strict>;
|
|
183
|
+
export type CredentialList = z.infer<typeof CredentialList>;
|
|
184
|
+
export declare const CredentialTestResult: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
185
|
+
ok: z.ZodLiteral<true>;
|
|
186
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
187
|
+
ok: z.ZodLiteral<false>;
|
|
188
|
+
error: z.ZodString;
|
|
189
|
+
}, z.core.$strict>], "ok">;
|
|
190
|
+
export type CredentialTestResult = z.infer<typeof CredentialTestResult>;
|
|
191
|
+
export declare const CredentialTested: z.ZodObject<{
|
|
192
|
+
credential: z.ZodObject<{
|
|
193
|
+
credentialId: z.ZodTemplateLiteral<`credential_${string}`>;
|
|
194
|
+
provider: z.ZodNullable<z.ZodEnum<{
|
|
195
|
+
claude: "claude";
|
|
196
|
+
codex: "codex";
|
|
197
|
+
gemini: "gemini";
|
|
198
|
+
}>>;
|
|
199
|
+
kind: z.ZodEnum<{
|
|
200
|
+
subscription: "subscription";
|
|
201
|
+
apikey: "apikey";
|
|
202
|
+
gateway: "gateway";
|
|
203
|
+
}>;
|
|
204
|
+
name: z.ZodString;
|
|
205
|
+
state: z.ZodEnum<{
|
|
206
|
+
invalid: "invalid";
|
|
207
|
+
valid: "valid";
|
|
208
|
+
}>;
|
|
209
|
+
checkedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
210
|
+
setAt: z.ZodISODateTime;
|
|
211
|
+
machineIds: z.ZodArray<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
212
|
+
createdAt: z.ZodISODateTime;
|
|
213
|
+
createdBy: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
214
|
+
updatedAt: z.ZodISODateTime;
|
|
215
|
+
}, z.core.$strict>;
|
|
216
|
+
test: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
217
|
+
ok: z.ZodLiteral<true>;
|
|
218
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
219
|
+
ok: z.ZodLiteral<false>;
|
|
220
|
+
error: z.ZodString;
|
|
221
|
+
}, z.core.$strict>], "ok">;
|
|
222
|
+
}, z.core.$strict>;
|
|
223
|
+
export type CredentialTested = z.infer<typeof CredentialTested>;
|
|
224
|
+
export declare const Subagents: z.ZodObject<{
|
|
225
|
+
allowed: z.ZodBoolean;
|
|
226
|
+
max: z.ZodInt;
|
|
227
|
+
}, z.core.$strict>;
|
|
228
|
+
export type Subagents = z.infer<typeof Subagents>;
|
|
229
|
+
export declare const Trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
230
|
+
on: z.ZodLiteral<"change">;
|
|
231
|
+
quietMinutes: z.ZodInt;
|
|
232
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
233
|
+
on: z.ZodLiteral<"schedule">;
|
|
234
|
+
schedule: z.ZodObject<{
|
|
235
|
+
rhythm: z.ZodEnum<{
|
|
236
|
+
manual: "manual";
|
|
237
|
+
daily: "daily";
|
|
238
|
+
weekly: "weekly";
|
|
239
|
+
monthly: "monthly";
|
|
240
|
+
dates: "dates";
|
|
241
|
+
}>;
|
|
242
|
+
days: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
243
|
+
monday: "monday";
|
|
244
|
+
tuesday: "tuesday";
|
|
245
|
+
wednesday: "wednesday";
|
|
246
|
+
thursday: "thursday";
|
|
247
|
+
friday: "friday";
|
|
248
|
+
saturday: "saturday";
|
|
249
|
+
sunday: "sunday";
|
|
250
|
+
}>>>;
|
|
251
|
+
dayOfMonth: z.ZodOptional<z.ZodArray<z.ZodInt>>;
|
|
252
|
+
times: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
253
|
+
dates: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
254
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
255
|
+
whileOpen: z.ZodOptional<z.ZodEnum<{
|
|
256
|
+
wait: "wait";
|
|
257
|
+
continue: "continue";
|
|
258
|
+
}>>;
|
|
259
|
+
}, z.core.$strict>;
|
|
260
|
+
}, z.core.$strict>], "on">;
|
|
261
|
+
export type Trigger = z.infer<typeof Trigger>;
|
|
262
|
+
export declare const OperatorLimits: z.ZodObject<{
|
|
263
|
+
maxRunMinutes: z.ZodInt;
|
|
264
|
+
maxRunsPerDay: z.ZodInt;
|
|
265
|
+
}, z.core.$strict>;
|
|
266
|
+
export type OperatorLimits = z.infer<typeof OperatorLimits>;
|
|
267
|
+
export declare const operatorDefaults: {
|
|
268
|
+
readonly model: "sonnet";
|
|
269
|
+
readonly subagents: {
|
|
270
|
+
readonly allowed: false;
|
|
271
|
+
readonly max: 3;
|
|
272
|
+
};
|
|
273
|
+
readonly trigger: {
|
|
274
|
+
readonly on: "change";
|
|
275
|
+
readonly quietMinutes: 5;
|
|
276
|
+
};
|
|
277
|
+
readonly limits: {
|
|
278
|
+
readonly maxRunMinutes: 30;
|
|
279
|
+
readonly maxRunsPerDay: 50;
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
export declare const OperatorState: z.ZodEnum<{
|
|
283
|
+
ready: "ready";
|
|
284
|
+
paused: "paused";
|
|
285
|
+
no_role: "no_role";
|
|
286
|
+
}>;
|
|
287
|
+
export type OperatorState = z.infer<typeof OperatorState>;
|
|
288
|
+
export declare const PauseReason: z.ZodEnum<{
|
|
289
|
+
credential: "credential";
|
|
290
|
+
limit: "limit";
|
|
291
|
+
manual: "manual";
|
|
292
|
+
failures: "failures";
|
|
293
|
+
}>;
|
|
294
|
+
export type PauseReason = z.infer<typeof PauseReason>;
|
|
295
|
+
export declare const MachineListInput: z.ZodObject<{
|
|
296
|
+
cursor: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
297
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
298
|
+
}, z.core.$strict>;
|
|
299
|
+
export type MachineListInput = z.infer<typeof MachineListInput>;
|
|
300
|
+
export declare const MachineGetInput: z.ZodObject<{
|
|
301
|
+
machineId: z.ZodTemplateLiteral<`user_${string}`>;
|
|
302
|
+
}, z.core.$strict>;
|
|
303
|
+
export type MachineGetInput = z.infer<typeof MachineGetInput>;
|
|
304
|
+
export declare const OperatorMachineCreateInput: z.ZodObject<{
|
|
305
|
+
name: z.ZodString;
|
|
306
|
+
roleIds: z.ZodOptional<z.ZodArray<z.ZodTemplateLiteral<`role_${string}`>>>;
|
|
307
|
+
provider: z.ZodEnum<{
|
|
308
|
+
claude: "claude";
|
|
309
|
+
codex: "codex";
|
|
310
|
+
gemini: "gemini";
|
|
311
|
+
}>;
|
|
312
|
+
credentialId: z.ZodTemplateLiteral<`credential_${string}`>;
|
|
313
|
+
model: z.ZodOptional<z.ZodEnum<{
|
|
314
|
+
opus: "opus";
|
|
315
|
+
sonnet: "sonnet";
|
|
316
|
+
haiku: "haiku";
|
|
317
|
+
"gpt-6-astra": "gpt-6-astra";
|
|
318
|
+
"gpt-6.1-sol": "gpt-6.1-sol";
|
|
319
|
+
"gpt-6-luna": "gpt-6-luna";
|
|
320
|
+
pro: "pro";
|
|
321
|
+
flash: "flash";
|
|
322
|
+
"flash-lite": "flash-lite";
|
|
323
|
+
"gemini-2.5-pro": "gemini-2.5-pro";
|
|
324
|
+
"gemini-2.5-flash": "gemini-2.5-flash";
|
|
325
|
+
"gemini-2.5-flash-lite": "gemini-2.5-flash-lite";
|
|
326
|
+
}>>;
|
|
327
|
+
subagents: z.ZodOptional<z.ZodObject<{
|
|
328
|
+
allowed: z.ZodBoolean;
|
|
329
|
+
max: z.ZodInt;
|
|
330
|
+
}, z.core.$strict>>;
|
|
331
|
+
trigger: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
332
|
+
on: z.ZodLiteral<"change">;
|
|
333
|
+
quietMinutes: z.ZodInt;
|
|
334
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
335
|
+
on: z.ZodLiteral<"schedule">;
|
|
336
|
+
schedule: z.ZodObject<{
|
|
337
|
+
rhythm: z.ZodEnum<{
|
|
338
|
+
manual: "manual";
|
|
339
|
+
daily: "daily";
|
|
340
|
+
weekly: "weekly";
|
|
341
|
+
monthly: "monthly";
|
|
342
|
+
dates: "dates";
|
|
343
|
+
}>;
|
|
344
|
+
days: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
345
|
+
monday: "monday";
|
|
346
|
+
tuesday: "tuesday";
|
|
347
|
+
wednesday: "wednesday";
|
|
348
|
+
thursday: "thursday";
|
|
349
|
+
friday: "friday";
|
|
350
|
+
saturday: "saturday";
|
|
351
|
+
sunday: "sunday";
|
|
352
|
+
}>>>;
|
|
353
|
+
dayOfMonth: z.ZodOptional<z.ZodArray<z.ZodInt>>;
|
|
354
|
+
times: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
355
|
+
dates: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
356
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
357
|
+
whileOpen: z.ZodOptional<z.ZodEnum<{
|
|
358
|
+
wait: "wait";
|
|
359
|
+
continue: "continue";
|
|
360
|
+
}>>;
|
|
361
|
+
}, z.core.$strict>;
|
|
362
|
+
}, z.core.$strict>], "on">>;
|
|
363
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
364
|
+
maxRunMinutes: z.ZodOptional<z.ZodInt>;
|
|
365
|
+
maxRunsPerDay: z.ZodOptional<z.ZodInt>;
|
|
366
|
+
}, z.core.$strict>>;
|
|
367
|
+
}, z.core.$strict>;
|
|
368
|
+
export type OperatorMachineCreateInput = z.infer<typeof OperatorMachineCreateInput>;
|
|
369
|
+
export declare const OperatorMachineUpdateInput: z.ZodObject<{
|
|
370
|
+
machineId: z.ZodTemplateLiteral<`user_${string}`>;
|
|
371
|
+
credentialId: z.ZodOptional<z.ZodTemplateLiteral<`credential_${string}`>>;
|
|
372
|
+
model: z.ZodOptional<z.ZodEnum<{
|
|
373
|
+
opus: "opus";
|
|
374
|
+
sonnet: "sonnet";
|
|
375
|
+
haiku: "haiku";
|
|
376
|
+
"gpt-6-astra": "gpt-6-astra";
|
|
377
|
+
"gpt-6.1-sol": "gpt-6.1-sol";
|
|
378
|
+
"gpt-6-luna": "gpt-6-luna";
|
|
379
|
+
pro: "pro";
|
|
380
|
+
flash: "flash";
|
|
381
|
+
"flash-lite": "flash-lite";
|
|
382
|
+
"gemini-2.5-pro": "gemini-2.5-pro";
|
|
383
|
+
"gemini-2.5-flash": "gemini-2.5-flash";
|
|
384
|
+
"gemini-2.5-flash-lite": "gemini-2.5-flash-lite";
|
|
385
|
+
}>>;
|
|
386
|
+
subagents: z.ZodOptional<z.ZodObject<{
|
|
387
|
+
allowed: z.ZodBoolean;
|
|
388
|
+
max: z.ZodInt;
|
|
389
|
+
}, z.core.$strict>>;
|
|
390
|
+
trigger: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
391
|
+
on: z.ZodLiteral<"change">;
|
|
392
|
+
quietMinutes: z.ZodInt;
|
|
393
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
394
|
+
on: z.ZodLiteral<"schedule">;
|
|
395
|
+
schedule: z.ZodObject<{
|
|
396
|
+
rhythm: z.ZodEnum<{
|
|
397
|
+
manual: "manual";
|
|
398
|
+
daily: "daily";
|
|
399
|
+
weekly: "weekly";
|
|
400
|
+
monthly: "monthly";
|
|
401
|
+
dates: "dates";
|
|
402
|
+
}>;
|
|
403
|
+
days: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
404
|
+
monday: "monday";
|
|
405
|
+
tuesday: "tuesday";
|
|
406
|
+
wednesday: "wednesday";
|
|
407
|
+
thursday: "thursday";
|
|
408
|
+
friday: "friday";
|
|
409
|
+
saturday: "saturday";
|
|
410
|
+
sunday: "sunday";
|
|
411
|
+
}>>>;
|
|
412
|
+
dayOfMonth: z.ZodOptional<z.ZodArray<z.ZodInt>>;
|
|
413
|
+
times: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
414
|
+
dates: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
415
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
416
|
+
whileOpen: z.ZodOptional<z.ZodEnum<{
|
|
417
|
+
wait: "wait";
|
|
418
|
+
continue: "continue";
|
|
419
|
+
}>>;
|
|
420
|
+
}, z.core.$strict>;
|
|
421
|
+
}, z.core.$strict>], "on">>;
|
|
422
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
423
|
+
maxRunMinutes: z.ZodOptional<z.ZodInt>;
|
|
424
|
+
maxRunsPerDay: z.ZodOptional<z.ZodInt>;
|
|
425
|
+
}, z.core.$strict>>;
|
|
426
|
+
responsibleId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
427
|
+
}, z.core.$strict>;
|
|
428
|
+
export type OperatorMachineUpdateInput = z.infer<typeof OperatorMachineUpdateInput>;
|
|
429
|
+
export declare const MachineDisableInput: z.ZodObject<{
|
|
430
|
+
machineId: z.ZodTemplateLiteral<`user_${string}`>;
|
|
431
|
+
}, z.core.$strict>;
|
|
432
|
+
export type MachineDisableInput = z.infer<typeof MachineDisableInput>;
|
|
433
|
+
export declare const MachineEnableInput: z.ZodObject<{
|
|
434
|
+
machineId: z.ZodTemplateLiteral<`user_${string}`>;
|
|
435
|
+
}, z.core.$strict>;
|
|
436
|
+
export type MachineEnableInput = z.infer<typeof MachineEnableInput>;
|
|
437
|
+
export declare const OperatorMachineArchiveInput: z.ZodObject<{
|
|
438
|
+
machineId: z.ZodTemplateLiteral<`user_${string}`>;
|
|
439
|
+
}, z.core.$strict>;
|
|
440
|
+
export type OperatorMachineArchiveInput = z.infer<typeof OperatorMachineArchiveInput>;
|
|
441
|
+
export declare const Operator: z.ZodObject<{
|
|
442
|
+
machineId: z.ZodTemplateLiteral<`user_${string}`>;
|
|
443
|
+
name: z.ZodString;
|
|
444
|
+
provider: z.ZodEnum<{
|
|
445
|
+
claude: "claude";
|
|
446
|
+
codex: "codex";
|
|
447
|
+
gemini: "gemini";
|
|
448
|
+
}>;
|
|
449
|
+
credentialId: z.ZodNullable<z.ZodTemplateLiteral<`credential_${string}`>>;
|
|
450
|
+
model: z.ZodEnum<{
|
|
451
|
+
opus: "opus";
|
|
452
|
+
sonnet: "sonnet";
|
|
453
|
+
haiku: "haiku";
|
|
454
|
+
"gpt-6-astra": "gpt-6-astra";
|
|
455
|
+
"gpt-6.1-sol": "gpt-6.1-sol";
|
|
456
|
+
"gpt-6-luna": "gpt-6-luna";
|
|
457
|
+
pro: "pro";
|
|
458
|
+
flash: "flash";
|
|
459
|
+
"flash-lite": "flash-lite";
|
|
460
|
+
"gemini-2.5-pro": "gemini-2.5-pro";
|
|
461
|
+
"gemini-2.5-flash": "gemini-2.5-flash";
|
|
462
|
+
"gemini-2.5-flash-lite": "gemini-2.5-flash-lite";
|
|
463
|
+
}>;
|
|
464
|
+
subagents: z.ZodObject<{
|
|
465
|
+
allowed: z.ZodBoolean;
|
|
466
|
+
max: z.ZodInt;
|
|
467
|
+
}, z.core.$strict>;
|
|
468
|
+
trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
469
|
+
on: z.ZodLiteral<"change">;
|
|
470
|
+
quietMinutes: z.ZodInt;
|
|
471
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
472
|
+
on: z.ZodLiteral<"schedule">;
|
|
473
|
+
schedule: z.ZodObject<{
|
|
474
|
+
rhythm: z.ZodEnum<{
|
|
475
|
+
manual: "manual";
|
|
476
|
+
daily: "daily";
|
|
477
|
+
weekly: "weekly";
|
|
478
|
+
monthly: "monthly";
|
|
479
|
+
dates: "dates";
|
|
480
|
+
}>;
|
|
481
|
+
days: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
482
|
+
monday: "monday";
|
|
483
|
+
tuesday: "tuesday";
|
|
484
|
+
wednesday: "wednesday";
|
|
485
|
+
thursday: "thursday";
|
|
486
|
+
friday: "friday";
|
|
487
|
+
saturday: "saturday";
|
|
488
|
+
sunday: "sunday";
|
|
489
|
+
}>>>;
|
|
490
|
+
dayOfMonth: z.ZodOptional<z.ZodArray<z.ZodInt>>;
|
|
491
|
+
times: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
492
|
+
dates: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
493
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
494
|
+
whileOpen: z.ZodOptional<z.ZodEnum<{
|
|
495
|
+
wait: "wait";
|
|
496
|
+
continue: "continue";
|
|
497
|
+
}>>;
|
|
498
|
+
}, z.core.$strict>;
|
|
499
|
+
}, z.core.$strict>], "on">;
|
|
500
|
+
limits: z.ZodObject<{
|
|
501
|
+
maxRunMinutes: z.ZodInt;
|
|
502
|
+
maxRunsPerDay: z.ZodInt;
|
|
503
|
+
}, z.core.$strict>;
|
|
504
|
+
state: z.ZodEnum<{
|
|
505
|
+
ready: "ready";
|
|
506
|
+
paused: "paused";
|
|
507
|
+
no_role: "no_role";
|
|
508
|
+
}>;
|
|
509
|
+
pausedReason: z.ZodNullable<z.ZodEnum<{
|
|
510
|
+
credential: "credential";
|
|
511
|
+
limit: "limit";
|
|
512
|
+
manual: "manual";
|
|
513
|
+
failures: "failures";
|
|
514
|
+
}>>;
|
|
515
|
+
pausedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
516
|
+
running: z.ZodNullable<z.ZodObject<{
|
|
517
|
+
runId: z.ZodTemplateLiteral<`run_${string}`>;
|
|
518
|
+
startedAt: z.ZodISODateTime;
|
|
519
|
+
}, z.core.$strict>>;
|
|
520
|
+
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
521
|
+
createdAt: z.ZodISODateTime;
|
|
522
|
+
createdBy: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
523
|
+
updatedAt: z.ZodISODateTime;
|
|
524
|
+
}, z.core.$strict>;
|
|
525
|
+
export type Operator = z.infer<typeof Operator>;
|
|
526
|
+
export declare const OperatorList: z.ZodObject<{
|
|
527
|
+
items: z.ZodArray<z.ZodObject<{
|
|
528
|
+
machineId: z.ZodTemplateLiteral<`user_${string}`>;
|
|
529
|
+
name: z.ZodString;
|
|
530
|
+
provider: z.ZodEnum<{
|
|
531
|
+
claude: "claude";
|
|
532
|
+
codex: "codex";
|
|
533
|
+
gemini: "gemini";
|
|
534
|
+
}>;
|
|
535
|
+
credentialId: z.ZodNullable<z.ZodTemplateLiteral<`credential_${string}`>>;
|
|
536
|
+
model: z.ZodEnum<{
|
|
537
|
+
opus: "opus";
|
|
538
|
+
sonnet: "sonnet";
|
|
539
|
+
haiku: "haiku";
|
|
540
|
+
"gpt-6-astra": "gpt-6-astra";
|
|
541
|
+
"gpt-6.1-sol": "gpt-6.1-sol";
|
|
542
|
+
"gpt-6-luna": "gpt-6-luna";
|
|
543
|
+
pro: "pro";
|
|
544
|
+
flash: "flash";
|
|
545
|
+
"flash-lite": "flash-lite";
|
|
546
|
+
"gemini-2.5-pro": "gemini-2.5-pro";
|
|
547
|
+
"gemini-2.5-flash": "gemini-2.5-flash";
|
|
548
|
+
"gemini-2.5-flash-lite": "gemini-2.5-flash-lite";
|
|
549
|
+
}>;
|
|
550
|
+
subagents: z.ZodObject<{
|
|
551
|
+
allowed: z.ZodBoolean;
|
|
552
|
+
max: z.ZodInt;
|
|
553
|
+
}, z.core.$strict>;
|
|
554
|
+
trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
555
|
+
on: z.ZodLiteral<"change">;
|
|
556
|
+
quietMinutes: z.ZodInt;
|
|
557
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
558
|
+
on: z.ZodLiteral<"schedule">;
|
|
559
|
+
schedule: z.ZodObject<{
|
|
560
|
+
rhythm: z.ZodEnum<{
|
|
561
|
+
manual: "manual";
|
|
562
|
+
daily: "daily";
|
|
563
|
+
weekly: "weekly";
|
|
564
|
+
monthly: "monthly";
|
|
565
|
+
dates: "dates";
|
|
566
|
+
}>;
|
|
567
|
+
days: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
568
|
+
monday: "monday";
|
|
569
|
+
tuesday: "tuesday";
|
|
570
|
+
wednesday: "wednesday";
|
|
571
|
+
thursday: "thursday";
|
|
572
|
+
friday: "friday";
|
|
573
|
+
saturday: "saturday";
|
|
574
|
+
sunday: "sunday";
|
|
575
|
+
}>>>;
|
|
576
|
+
dayOfMonth: z.ZodOptional<z.ZodArray<z.ZodInt>>;
|
|
577
|
+
times: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
578
|
+
dates: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
579
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
580
|
+
whileOpen: z.ZodOptional<z.ZodEnum<{
|
|
581
|
+
wait: "wait";
|
|
582
|
+
continue: "continue";
|
|
583
|
+
}>>;
|
|
584
|
+
}, z.core.$strict>;
|
|
585
|
+
}, z.core.$strict>], "on">;
|
|
586
|
+
limits: z.ZodObject<{
|
|
587
|
+
maxRunMinutes: z.ZodInt;
|
|
588
|
+
maxRunsPerDay: z.ZodInt;
|
|
589
|
+
}, z.core.$strict>;
|
|
590
|
+
state: z.ZodEnum<{
|
|
591
|
+
ready: "ready";
|
|
592
|
+
paused: "paused";
|
|
593
|
+
no_role: "no_role";
|
|
594
|
+
}>;
|
|
595
|
+
pausedReason: z.ZodNullable<z.ZodEnum<{
|
|
596
|
+
credential: "credential";
|
|
597
|
+
limit: "limit";
|
|
598
|
+
manual: "manual";
|
|
599
|
+
failures: "failures";
|
|
600
|
+
}>>;
|
|
601
|
+
pausedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
602
|
+
running: z.ZodNullable<z.ZodObject<{
|
|
603
|
+
runId: z.ZodTemplateLiteral<`run_${string}`>;
|
|
604
|
+
startedAt: z.ZodISODateTime;
|
|
605
|
+
}, z.core.$strict>>;
|
|
606
|
+
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
607
|
+
createdAt: z.ZodISODateTime;
|
|
608
|
+
createdBy: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
609
|
+
updatedAt: z.ZodISODateTime;
|
|
610
|
+
}, z.core.$strict>>;
|
|
611
|
+
nextCursor: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
612
|
+
}, z.core.$strict>;
|
|
613
|
+
export type OperatorList = z.infer<typeof OperatorList>;
|
|
614
|
+
export declare const OperatorRunId: z.ZodTemplateLiteral<`run_${string}`>;
|
|
615
|
+
export type OperatorRunId = z.infer<typeof OperatorRunId>;
|
|
616
|
+
export declare const OperatorRunStatus: z.ZodEnum<{
|
|
617
|
+
running: "running";
|
|
618
|
+
failed: "failed";
|
|
619
|
+
completed: "completed";
|
|
620
|
+
}>;
|
|
621
|
+
export type OperatorRunStatus = z.infer<typeof OperatorRunStatus>;
|
|
622
|
+
export declare const OperatorRunReason: z.ZodEnum<{
|
|
623
|
+
error: "error";
|
|
624
|
+
credential: "credential";
|
|
625
|
+
provider: "provider";
|
|
626
|
+
container: "container";
|
|
627
|
+
timeout: "timeout";
|
|
628
|
+
crash: "crash";
|
|
629
|
+
noresult: "noresult";
|
|
630
|
+
}>;
|
|
631
|
+
export type OperatorRunReason = z.infer<typeof OperatorRunReason>;
|
|
632
|
+
export declare const OperatorRunTrigger: z.ZodEnum<{
|
|
633
|
+
schedule: "schedule";
|
|
634
|
+
change: "change";
|
|
635
|
+
retry: "retry";
|
|
636
|
+
}>;
|
|
637
|
+
export type OperatorRunTrigger = z.infer<typeof OperatorRunTrigger>;
|
|
638
|
+
export declare const OperatorRunTokens: z.ZodObject<{
|
|
639
|
+
input: z.ZodInt;
|
|
640
|
+
output: z.ZodInt;
|
|
641
|
+
cacheRead: z.ZodInt;
|
|
642
|
+
cacheWrite: z.ZodInt;
|
|
643
|
+
}, z.core.$strict>;
|
|
644
|
+
export type OperatorRunTokens = z.infer<typeof OperatorRunTokens>;
|
|
645
|
+
export declare const OperatorRunTouched: z.ZodObject<{
|
|
646
|
+
processes: z.ZodArray<z.ZodString>;
|
|
647
|
+
connectors: z.ZodArray<z.ZodString>;
|
|
648
|
+
}, z.core.$strict>;
|
|
649
|
+
export type OperatorRunTouched = z.infer<typeof OperatorRunTouched>;
|
|
650
|
+
export declare const OperatorRun: z.ZodObject<{
|
|
651
|
+
trigger: z.ZodEnum<{
|
|
652
|
+
schedule: "schedule";
|
|
653
|
+
change: "change";
|
|
654
|
+
retry: "retry";
|
|
655
|
+
}>;
|
|
656
|
+
status: z.ZodEnum<{
|
|
657
|
+
running: "running";
|
|
658
|
+
failed: "failed";
|
|
659
|
+
completed: "completed";
|
|
660
|
+
}>;
|
|
661
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
662
|
+
error: "error";
|
|
663
|
+
credential: "credential";
|
|
664
|
+
provider: "provider";
|
|
665
|
+
container: "container";
|
|
666
|
+
timeout: "timeout";
|
|
667
|
+
crash: "crash";
|
|
668
|
+
noresult: "noresult";
|
|
669
|
+
}>>;
|
|
670
|
+
detail: z.ZodNullable<z.ZodString>;
|
|
671
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
672
|
+
touched: z.ZodObject<{
|
|
673
|
+
processes: z.ZodArray<z.ZodString>;
|
|
674
|
+
connectors: z.ZodArray<z.ZodString>;
|
|
675
|
+
}, z.core.$strict>;
|
|
676
|
+
credentialKind: z.ZodNullable<z.ZodEnum<{
|
|
677
|
+
subscription: "subscription";
|
|
678
|
+
apikey: "apikey";
|
|
679
|
+
gateway: "gateway";
|
|
680
|
+
}>>;
|
|
681
|
+
costUsd: z.ZodNullable<z.ZodNumber>;
|
|
682
|
+
tokens: z.ZodNullable<z.ZodObject<{
|
|
683
|
+
input: z.ZodInt;
|
|
684
|
+
output: z.ZodInt;
|
|
685
|
+
cacheRead: z.ZodInt;
|
|
686
|
+
cacheWrite: z.ZodInt;
|
|
687
|
+
}, z.core.$strict>>;
|
|
688
|
+
startedAt: z.ZodISODateTime;
|
|
689
|
+
endedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
690
|
+
durationMs: z.ZodNullable<z.ZodInt>;
|
|
691
|
+
machineId: z.ZodTemplateLiteral<`user_${string}`>;
|
|
692
|
+
machineName: z.ZodString;
|
|
693
|
+
machineArchivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
694
|
+
runId: z.ZodTemplateLiteral<`run_${string}`>;
|
|
695
|
+
}, z.core.$strict>;
|
|
696
|
+
export type OperatorRun = z.infer<typeof OperatorRun>;
|
|
697
|
+
export declare const OperatorRunListInput: z.ZodObject<{
|
|
698
|
+
machineId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
699
|
+
provider: z.ZodOptional<z.ZodEnum<{
|
|
700
|
+
claude: "claude";
|
|
701
|
+
codex: "codex";
|
|
702
|
+
gemini: "gemini";
|
|
703
|
+
}>>;
|
|
704
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
705
|
+
running: "running";
|
|
706
|
+
failed: "failed";
|
|
707
|
+
completed: "completed";
|
|
708
|
+
}>>;
|
|
709
|
+
from: z.ZodOptional<z.ZodISODateTime>;
|
|
710
|
+
to: z.ZodOptional<z.ZodISODateTime>;
|
|
711
|
+
search: z.ZodOptional<z.ZodString>;
|
|
712
|
+
cursor: z.ZodOptional<z.ZodTemplateLiteral<`run_${string}`>>;
|
|
713
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
714
|
+
}, z.core.$strict>;
|
|
715
|
+
export type OperatorRunListInput = z.infer<typeof OperatorRunListInput>;
|
|
716
|
+
export declare const OperatorRunGetInput: z.ZodObject<{
|
|
717
|
+
runId: z.ZodTemplateLiteral<`run_${string}`>;
|
|
718
|
+
}, z.core.$strict>;
|
|
719
|
+
export type OperatorRunGetInput = z.infer<typeof OperatorRunGetInput>;
|
|
720
|
+
export declare const OperatorRunUsage: z.ZodObject<{
|
|
721
|
+
byMachine: z.ZodArray<z.ZodObject<{
|
|
722
|
+
runs: z.ZodInt;
|
|
723
|
+
costUsd: z.ZodNumber;
|
|
724
|
+
tokens: z.ZodObject<{
|
|
725
|
+
input: z.ZodInt;
|
|
726
|
+
output: z.ZodInt;
|
|
727
|
+
cacheRead: z.ZodInt;
|
|
728
|
+
cacheWrite: z.ZodInt;
|
|
729
|
+
}, z.core.$strict>;
|
|
730
|
+
machineId: z.ZodTemplateLiteral<`user_${string}`>;
|
|
731
|
+
machineName: z.ZodString;
|
|
732
|
+
machineArchivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
733
|
+
}, z.core.$strict>>;
|
|
734
|
+
byDay: z.ZodArray<z.ZodObject<{
|
|
735
|
+
runs: z.ZodInt;
|
|
736
|
+
costUsd: z.ZodNumber;
|
|
737
|
+
tokens: z.ZodObject<{
|
|
738
|
+
input: z.ZodInt;
|
|
739
|
+
output: z.ZodInt;
|
|
740
|
+
cacheRead: z.ZodInt;
|
|
741
|
+
cacheWrite: z.ZodInt;
|
|
742
|
+
}, z.core.$strict>;
|
|
743
|
+
day: z.ZodISODate;
|
|
744
|
+
}, z.core.$strict>>;
|
|
745
|
+
byKind: z.ZodArray<z.ZodObject<{
|
|
746
|
+
runs: z.ZodInt;
|
|
747
|
+
costUsd: z.ZodNumber;
|
|
748
|
+
tokens: z.ZodObject<{
|
|
749
|
+
input: z.ZodInt;
|
|
750
|
+
output: z.ZodInt;
|
|
751
|
+
cacheRead: z.ZodInt;
|
|
752
|
+
cacheWrite: z.ZodInt;
|
|
753
|
+
}, z.core.$strict>;
|
|
754
|
+
kind: z.ZodEnum<{
|
|
755
|
+
subscription: "subscription";
|
|
756
|
+
apikey: "apikey";
|
|
757
|
+
gateway: "gateway";
|
|
758
|
+
}>;
|
|
759
|
+
}, z.core.$strict>>;
|
|
760
|
+
byProvider: z.ZodArray<z.ZodObject<{
|
|
761
|
+
runs: z.ZodInt;
|
|
762
|
+
costUsd: z.ZodNumber;
|
|
763
|
+
tokens: z.ZodObject<{
|
|
764
|
+
input: z.ZodInt;
|
|
765
|
+
output: z.ZodInt;
|
|
766
|
+
cacheRead: z.ZodInt;
|
|
767
|
+
cacheWrite: z.ZodInt;
|
|
768
|
+
}, z.core.$strict>;
|
|
769
|
+
provider: z.ZodEnum<{
|
|
770
|
+
claude: "claude";
|
|
771
|
+
codex: "codex";
|
|
772
|
+
gemini: "gemini";
|
|
773
|
+
}>;
|
|
774
|
+
}, z.core.$strict>>;
|
|
775
|
+
runs: z.ZodInt;
|
|
776
|
+
costUsd: z.ZodNumber;
|
|
777
|
+
tokens: z.ZodObject<{
|
|
778
|
+
input: z.ZodInt;
|
|
779
|
+
output: z.ZodInt;
|
|
780
|
+
cacheRead: z.ZodInt;
|
|
781
|
+
cacheWrite: z.ZodInt;
|
|
782
|
+
}, z.core.$strict>;
|
|
783
|
+
}, z.core.$strict>;
|
|
784
|
+
export type OperatorRunUsage = z.infer<typeof OperatorRunUsage>;
|
|
785
|
+
export declare const OperatorRunList: z.ZodObject<{
|
|
786
|
+
items: z.ZodArray<z.ZodObject<{
|
|
787
|
+
trigger: z.ZodEnum<{
|
|
788
|
+
schedule: "schedule";
|
|
789
|
+
change: "change";
|
|
790
|
+
retry: "retry";
|
|
791
|
+
}>;
|
|
792
|
+
status: z.ZodEnum<{
|
|
793
|
+
running: "running";
|
|
794
|
+
failed: "failed";
|
|
795
|
+
completed: "completed";
|
|
796
|
+
}>;
|
|
797
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
798
|
+
error: "error";
|
|
799
|
+
credential: "credential";
|
|
800
|
+
provider: "provider";
|
|
801
|
+
container: "container";
|
|
802
|
+
timeout: "timeout";
|
|
803
|
+
crash: "crash";
|
|
804
|
+
noresult: "noresult";
|
|
805
|
+
}>>;
|
|
806
|
+
detail: z.ZodNullable<z.ZodString>;
|
|
807
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
808
|
+
touched: z.ZodObject<{
|
|
809
|
+
processes: z.ZodArray<z.ZodString>;
|
|
810
|
+
connectors: z.ZodArray<z.ZodString>;
|
|
811
|
+
}, z.core.$strict>;
|
|
812
|
+
credentialKind: z.ZodNullable<z.ZodEnum<{
|
|
813
|
+
subscription: "subscription";
|
|
814
|
+
apikey: "apikey";
|
|
815
|
+
gateway: "gateway";
|
|
816
|
+
}>>;
|
|
817
|
+
costUsd: z.ZodNullable<z.ZodNumber>;
|
|
818
|
+
tokens: z.ZodNullable<z.ZodObject<{
|
|
819
|
+
input: z.ZodInt;
|
|
820
|
+
output: z.ZodInt;
|
|
821
|
+
cacheRead: z.ZodInt;
|
|
822
|
+
cacheWrite: z.ZodInt;
|
|
823
|
+
}, z.core.$strict>>;
|
|
824
|
+
startedAt: z.ZodISODateTime;
|
|
825
|
+
endedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
826
|
+
durationMs: z.ZodNullable<z.ZodInt>;
|
|
827
|
+
machineId: z.ZodTemplateLiteral<`user_${string}`>;
|
|
828
|
+
machineName: z.ZodString;
|
|
829
|
+
machineArchivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
830
|
+
runId: z.ZodTemplateLiteral<`run_${string}`>;
|
|
831
|
+
}, z.core.$strict>>;
|
|
832
|
+
nextCursor: z.ZodNullable<z.ZodTemplateLiteral<`run_${string}`>>;
|
|
833
|
+
usage: z.ZodObject<{
|
|
834
|
+
byMachine: z.ZodArray<z.ZodObject<{
|
|
835
|
+
runs: z.ZodInt;
|
|
836
|
+
costUsd: z.ZodNumber;
|
|
837
|
+
tokens: z.ZodObject<{
|
|
838
|
+
input: z.ZodInt;
|
|
839
|
+
output: z.ZodInt;
|
|
840
|
+
cacheRead: z.ZodInt;
|
|
841
|
+
cacheWrite: z.ZodInt;
|
|
842
|
+
}, z.core.$strict>;
|
|
843
|
+
machineId: z.ZodTemplateLiteral<`user_${string}`>;
|
|
844
|
+
machineName: z.ZodString;
|
|
845
|
+
machineArchivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
846
|
+
}, z.core.$strict>>;
|
|
847
|
+
byDay: z.ZodArray<z.ZodObject<{
|
|
848
|
+
runs: z.ZodInt;
|
|
849
|
+
costUsd: z.ZodNumber;
|
|
850
|
+
tokens: z.ZodObject<{
|
|
851
|
+
input: z.ZodInt;
|
|
852
|
+
output: z.ZodInt;
|
|
853
|
+
cacheRead: z.ZodInt;
|
|
854
|
+
cacheWrite: z.ZodInt;
|
|
855
|
+
}, z.core.$strict>;
|
|
856
|
+
day: z.ZodISODate;
|
|
857
|
+
}, z.core.$strict>>;
|
|
858
|
+
byKind: z.ZodArray<z.ZodObject<{
|
|
859
|
+
runs: z.ZodInt;
|
|
860
|
+
costUsd: z.ZodNumber;
|
|
861
|
+
tokens: z.ZodObject<{
|
|
862
|
+
input: z.ZodInt;
|
|
863
|
+
output: z.ZodInt;
|
|
864
|
+
cacheRead: z.ZodInt;
|
|
865
|
+
cacheWrite: z.ZodInt;
|
|
866
|
+
}, z.core.$strict>;
|
|
867
|
+
kind: z.ZodEnum<{
|
|
868
|
+
subscription: "subscription";
|
|
869
|
+
apikey: "apikey";
|
|
870
|
+
gateway: "gateway";
|
|
871
|
+
}>;
|
|
872
|
+
}, z.core.$strict>>;
|
|
873
|
+
byProvider: z.ZodArray<z.ZodObject<{
|
|
874
|
+
runs: z.ZodInt;
|
|
875
|
+
costUsd: z.ZodNumber;
|
|
876
|
+
tokens: z.ZodObject<{
|
|
877
|
+
input: z.ZodInt;
|
|
878
|
+
output: z.ZodInt;
|
|
879
|
+
cacheRead: z.ZodInt;
|
|
880
|
+
cacheWrite: z.ZodInt;
|
|
881
|
+
}, z.core.$strict>;
|
|
882
|
+
provider: z.ZodEnum<{
|
|
883
|
+
claude: "claude";
|
|
884
|
+
codex: "codex";
|
|
885
|
+
gemini: "gemini";
|
|
886
|
+
}>;
|
|
887
|
+
}, z.core.$strict>>;
|
|
888
|
+
runs: z.ZodInt;
|
|
889
|
+
costUsd: z.ZodNumber;
|
|
890
|
+
tokens: z.ZodObject<{
|
|
891
|
+
input: z.ZodInt;
|
|
892
|
+
output: z.ZodInt;
|
|
893
|
+
cacheRead: z.ZodInt;
|
|
894
|
+
cacheWrite: z.ZodInt;
|
|
895
|
+
}, z.core.$strict>;
|
|
896
|
+
}, z.core.$strict>;
|
|
897
|
+
}, z.core.$strict>;
|
|
898
|
+
export type OperatorRunList = z.infer<typeof OperatorRunList>;
|