@ottocode/api 0.1.295 → 0.1.296
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +0 -1
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/schemas.gen.d.ts +278 -1009
- package/dist/generated/schemas.gen.d.ts.map +1 -1
- package/dist/generated/schemas.gen.js +287 -1021
- package/dist/generated/schemas.gen.js.map +1 -1
- package/dist/generated/sdk.gen.d.ts +30 -6
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/sdk.gen.js +78 -3
- package/dist/generated/sdk.gen.js.map +1 -1
- package/dist/generated/types.gen.d.ts +1406 -451
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/generated/types.gen.js +1 -14
- package/dist/generated/types.gen.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,1086 +1,355 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
readonly type: "string";
|
|
3
|
-
readonly description: "Built-in or custom provider identifier";
|
|
4
|
-
};
|
|
5
|
-
export declare const ProviderDetailSchema: {
|
|
1
|
+
export declare const MCPServerSchema: {
|
|
6
2
|
readonly type: "object";
|
|
7
3
|
readonly properties: {
|
|
8
|
-
readonly
|
|
9
|
-
readonly $ref: "#/components/schemas/Provider";
|
|
10
|
-
};
|
|
11
|
-
readonly label: {
|
|
12
|
-
readonly type: "string";
|
|
13
|
-
};
|
|
14
|
-
readonly source: {
|
|
4
|
+
readonly name: {
|
|
15
5
|
readonly type: "string";
|
|
16
|
-
readonly enum: readonly ["built-in", "custom"];
|
|
17
|
-
};
|
|
18
|
-
readonly enabled: {
|
|
19
|
-
readonly type: "boolean";
|
|
20
6
|
};
|
|
21
|
-
readonly
|
|
22
|
-
readonly type: "boolean";
|
|
23
|
-
};
|
|
24
|
-
readonly custom: {
|
|
25
|
-
readonly type: "boolean";
|
|
26
|
-
};
|
|
27
|
-
readonly compatibility: {
|
|
7
|
+
readonly transport: {
|
|
28
8
|
readonly type: "string";
|
|
29
|
-
readonly
|
|
9
|
+
readonly enum: readonly ["stdio", "http", "sse"];
|
|
30
10
|
};
|
|
31
|
-
readonly
|
|
11
|
+
readonly command: {
|
|
32
12
|
readonly type: "string";
|
|
33
|
-
readonly nullable: true;
|
|
34
13
|
};
|
|
35
|
-
readonly
|
|
36
|
-
readonly type: "
|
|
37
|
-
readonly
|
|
14
|
+
readonly args: {
|
|
15
|
+
readonly type: "array";
|
|
16
|
+
readonly items: {
|
|
17
|
+
readonly type: "string";
|
|
18
|
+
};
|
|
38
19
|
};
|
|
39
|
-
readonly
|
|
20
|
+
readonly url: {
|
|
40
21
|
readonly type: "string";
|
|
41
|
-
readonly nullable: true;
|
|
42
22
|
};
|
|
43
|
-
readonly
|
|
23
|
+
readonly disabled: {
|
|
44
24
|
readonly type: "boolean";
|
|
45
25
|
};
|
|
46
|
-
readonly
|
|
26
|
+
readonly connected: {
|
|
47
27
|
readonly type: "boolean";
|
|
48
28
|
};
|
|
49
|
-
readonly
|
|
50
|
-
readonly type: "
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
readonly nullable: true;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
readonly required: readonly ["id", "label", "source", "enabled", "authorized", "custom", "hasApiKey", "allowAnyModel", "modelCount"];
|
|
58
|
-
};
|
|
59
|
-
export declare const AskResponseSchema: {
|
|
60
|
-
readonly type: "object";
|
|
61
|
-
readonly properties: {
|
|
62
|
-
readonly sessionId: {
|
|
63
|
-
readonly type: "string";
|
|
64
|
-
};
|
|
65
|
-
readonly header: {
|
|
66
|
-
readonly $ref: "#/components/schemas/AskResponseHeader";
|
|
67
|
-
};
|
|
68
|
-
readonly provider: {
|
|
69
|
-
readonly $ref: "#/components/schemas/Provider";
|
|
70
|
-
};
|
|
71
|
-
readonly model: {
|
|
72
|
-
readonly type: "string";
|
|
73
|
-
};
|
|
74
|
-
readonly agent: {
|
|
75
|
-
readonly type: "string";
|
|
76
|
-
};
|
|
77
|
-
readonly assistantMessageId: {
|
|
78
|
-
readonly type: "string";
|
|
29
|
+
readonly tools: {
|
|
30
|
+
readonly type: "array";
|
|
31
|
+
readonly items: {
|
|
32
|
+
readonly type: "string";
|
|
33
|
+
};
|
|
79
34
|
};
|
|
80
|
-
readonly
|
|
81
|
-
readonly
|
|
82
|
-
readonly nullable: true;
|
|
83
|
-
readonly description: "Present when the request created a new session or reused the last session for the project.";
|
|
35
|
+
readonly authRequired: {
|
|
36
|
+
readonly type: "boolean";
|
|
84
37
|
};
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
};
|
|
88
|
-
export declare const AskResponseHeaderSchema: {
|
|
89
|
-
readonly type: "object";
|
|
90
|
-
readonly properties: {
|
|
91
|
-
readonly sessionId: {
|
|
92
|
-
readonly type: "string";
|
|
38
|
+
readonly authenticated: {
|
|
39
|
+
readonly type: "boolean";
|
|
93
40
|
};
|
|
94
|
-
readonly
|
|
41
|
+
readonly scope: {
|
|
95
42
|
readonly type: "string";
|
|
96
|
-
readonly
|
|
97
|
-
};
|
|
98
|
-
readonly provider: {
|
|
99
|
-
readonly $ref: "#/components/schemas/Provider";
|
|
100
|
-
readonly nullable: true;
|
|
43
|
+
readonly enum: readonly ["global", "project"];
|
|
101
44
|
};
|
|
102
|
-
readonly
|
|
45
|
+
readonly authType: {
|
|
103
46
|
readonly type: "string";
|
|
104
|
-
readonly nullable: true;
|
|
105
47
|
};
|
|
106
48
|
};
|
|
107
|
-
readonly required: readonly ["
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
readonly type: "object";
|
|
111
|
-
readonly properties: {
|
|
112
|
-
readonly kind: {
|
|
113
|
-
readonly type: "string";
|
|
114
|
-
readonly enum: readonly ["created", "last"];
|
|
115
|
-
};
|
|
116
|
-
readonly sessionId: {
|
|
117
|
-
readonly type: "string";
|
|
118
|
-
};
|
|
49
|
+
readonly required: readonly ["name", "transport", "args", "disabled", "connected", "tools", "authRequired", "authenticated", "scope"];
|
|
50
|
+
readonly additionalProperties: {
|
|
51
|
+
readonly nullable: true;
|
|
119
52
|
};
|
|
120
|
-
readonly required: readonly ["kind", "sessionId"];
|
|
121
53
|
};
|
|
122
|
-
export declare const
|
|
54
|
+
export declare const UsageStatsSchema: {
|
|
123
55
|
readonly type: "object";
|
|
124
56
|
readonly properties: {
|
|
125
|
-
readonly
|
|
126
|
-
readonly type: "string";
|
|
127
|
-
};
|
|
128
|
-
readonly title: {
|
|
129
|
-
readonly type: "string";
|
|
130
|
-
readonly nullable: true;
|
|
131
|
-
};
|
|
132
|
-
readonly agent: {
|
|
133
|
-
readonly type: "string";
|
|
134
|
-
};
|
|
135
|
-
readonly provider: {
|
|
136
|
-
readonly $ref: "#/components/schemas/Provider";
|
|
137
|
-
};
|
|
138
|
-
readonly model: {
|
|
57
|
+
readonly scope: {
|
|
139
58
|
readonly type: "string";
|
|
59
|
+
readonly enum: readonly ["project", "global"];
|
|
140
60
|
};
|
|
141
|
-
readonly
|
|
61
|
+
readonly project: {
|
|
142
62
|
readonly type: "string";
|
|
143
63
|
};
|
|
144
|
-
readonly
|
|
145
|
-
readonly type: "integer";
|
|
146
|
-
readonly format: "int64";
|
|
147
|
-
};
|
|
148
|
-
readonly lastActiveAt: {
|
|
149
|
-
readonly type: "integer";
|
|
150
|
-
readonly format: "int64";
|
|
151
|
-
readonly nullable: true;
|
|
152
|
-
};
|
|
153
|
-
readonly lastViewedAt: {
|
|
154
|
-
readonly type: "integer";
|
|
155
|
-
readonly format: "int64";
|
|
156
|
-
readonly nullable: true;
|
|
157
|
-
};
|
|
158
|
-
readonly totalInputTokens: {
|
|
159
|
-
readonly type: "integer";
|
|
160
|
-
readonly nullable: true;
|
|
161
|
-
};
|
|
162
|
-
readonly totalOutputTokens: {
|
|
163
|
-
readonly type: "integer";
|
|
164
|
-
readonly nullable: true;
|
|
165
|
-
};
|
|
166
|
-
readonly totalCachedTokens: {
|
|
167
|
-
readonly type: "integer";
|
|
168
|
-
readonly nullable: true;
|
|
169
|
-
};
|
|
170
|
-
readonly totalCacheCreationTokens: {
|
|
171
|
-
readonly type: "integer";
|
|
172
|
-
readonly nullable: true;
|
|
173
|
-
};
|
|
174
|
-
readonly currentContextTokens: {
|
|
175
|
-
readonly type: "integer";
|
|
176
|
-
readonly nullable: true;
|
|
177
|
-
};
|
|
178
|
-
readonly totalToolTimeMs: {
|
|
64
|
+
readonly generatedAt: {
|
|
179
65
|
readonly type: "integer";
|
|
180
|
-
readonly nullable: true;
|
|
181
|
-
};
|
|
182
|
-
readonly toolCounts: {
|
|
183
|
-
readonly type: "object";
|
|
184
|
-
readonly additionalProperties: {
|
|
185
|
-
readonly type: "integer";
|
|
186
|
-
};
|
|
187
|
-
readonly nullable: true;
|
|
188
66
|
};
|
|
189
|
-
readonly
|
|
67
|
+
readonly totals: {
|
|
190
68
|
readonly type: "object";
|
|
191
69
|
readonly properties: {
|
|
192
|
-
readonly
|
|
70
|
+
readonly messages: {
|
|
193
71
|
readonly type: "integer";
|
|
194
72
|
};
|
|
195
|
-
readonly
|
|
73
|
+
readonly sessions: {
|
|
196
74
|
readonly type: "integer";
|
|
197
75
|
};
|
|
198
|
-
readonly
|
|
76
|
+
readonly inputTokens: {
|
|
199
77
|
readonly type: "integer";
|
|
200
78
|
};
|
|
201
|
-
readonly
|
|
79
|
+
readonly outputTokens: {
|
|
202
80
|
readonly type: "integer";
|
|
203
81
|
};
|
|
204
|
-
|
|
205
|
-
readonly required: readonly ["changedFiles", "additions", "deletions", "operations"];
|
|
206
|
-
readonly nullable: true;
|
|
207
|
-
};
|
|
208
|
-
readonly isRunning: {
|
|
209
|
-
readonly type: "boolean";
|
|
210
|
-
};
|
|
211
|
-
};
|
|
212
|
-
readonly required: readonly ["id", "agent", "provider", "model", "projectPath", "createdAt"];
|
|
213
|
-
};
|
|
214
|
-
export declare const MessageSchema: {
|
|
215
|
-
readonly type: "object";
|
|
216
|
-
readonly properties: {
|
|
217
|
-
readonly id: {
|
|
218
|
-
readonly type: "string";
|
|
219
|
-
};
|
|
220
|
-
readonly sessionId: {
|
|
221
|
-
readonly type: "string";
|
|
222
|
-
};
|
|
223
|
-
readonly role: {
|
|
224
|
-
readonly type: "string";
|
|
225
|
-
readonly enum: readonly ["system", "user", "assistant", "tool"];
|
|
226
|
-
};
|
|
227
|
-
readonly status: {
|
|
228
|
-
readonly type: "string";
|
|
229
|
-
readonly enum: readonly ["pending", "complete", "error"];
|
|
230
|
-
};
|
|
231
|
-
readonly agent: {
|
|
232
|
-
readonly type: "string";
|
|
233
|
-
};
|
|
234
|
-
readonly provider: {
|
|
235
|
-
readonly $ref: "#/components/schemas/Provider";
|
|
236
|
-
};
|
|
237
|
-
readonly model: {
|
|
238
|
-
readonly type: "string";
|
|
239
|
-
};
|
|
240
|
-
readonly createdAt: {
|
|
241
|
-
readonly type: "integer";
|
|
242
|
-
readonly format: "int64";
|
|
243
|
-
};
|
|
244
|
-
readonly completedAt: {
|
|
245
|
-
readonly type: "integer";
|
|
246
|
-
readonly format: "int64";
|
|
247
|
-
readonly nullable: true;
|
|
248
|
-
};
|
|
249
|
-
readonly latencyMs: {
|
|
250
|
-
readonly type: "integer";
|
|
251
|
-
readonly nullable: true;
|
|
252
|
-
};
|
|
253
|
-
readonly inputTokens: {
|
|
254
|
-
readonly type: "integer";
|
|
255
|
-
readonly nullable: true;
|
|
256
|
-
};
|
|
257
|
-
readonly outputTokens: {
|
|
258
|
-
readonly type: "integer";
|
|
259
|
-
readonly nullable: true;
|
|
260
|
-
};
|
|
261
|
-
readonly totalTokens: {
|
|
262
|
-
readonly type: "integer";
|
|
263
|
-
readonly nullable: true;
|
|
264
|
-
};
|
|
265
|
-
readonly error: {
|
|
266
|
-
readonly type: "string";
|
|
267
|
-
readonly nullable: true;
|
|
268
|
-
};
|
|
269
|
-
};
|
|
270
|
-
readonly required: readonly ["id", "sessionId", "role", "status", "agent", "provider", "model", "createdAt"];
|
|
271
|
-
};
|
|
272
|
-
export declare const MessagePartSchema: {
|
|
273
|
-
readonly type: "object";
|
|
274
|
-
readonly properties: {
|
|
275
|
-
readonly id: {
|
|
276
|
-
readonly type: "string";
|
|
277
|
-
};
|
|
278
|
-
readonly messageId: {
|
|
279
|
-
readonly type: "string";
|
|
280
|
-
};
|
|
281
|
-
readonly index: {
|
|
282
|
-
readonly type: "integer";
|
|
283
|
-
readonly format: "int64";
|
|
284
|
-
};
|
|
285
|
-
readonly type: {
|
|
286
|
-
readonly type: "string";
|
|
287
|
-
readonly enum: readonly ["text", "tool_call", "tool_result", "image", "error"];
|
|
288
|
-
};
|
|
289
|
-
readonly content: {
|
|
290
|
-
readonly type: "string";
|
|
291
|
-
readonly description: "JSON-encoded content. For text: {\"text\": string}. For tool_call: {\"name\": string, \"args\": object}. For tool_result: {\"name\": string, \"result\"?: any, \"artifact\"?: Artifact}.";
|
|
292
|
-
};
|
|
293
|
-
readonly agent: {
|
|
294
|
-
readonly type: "string";
|
|
295
|
-
};
|
|
296
|
-
readonly provider: {
|
|
297
|
-
readonly $ref: "#/components/schemas/Provider";
|
|
298
|
-
};
|
|
299
|
-
readonly model: {
|
|
300
|
-
readonly type: "string";
|
|
301
|
-
};
|
|
302
|
-
readonly startedAt: {
|
|
303
|
-
readonly type: "integer";
|
|
304
|
-
readonly format: "int64";
|
|
305
|
-
readonly nullable: true;
|
|
306
|
-
};
|
|
307
|
-
readonly completedAt: {
|
|
308
|
-
readonly type: "integer";
|
|
309
|
-
readonly format: "int64";
|
|
310
|
-
readonly nullable: true;
|
|
311
|
-
};
|
|
312
|
-
readonly toolName: {
|
|
313
|
-
readonly type: "string";
|
|
314
|
-
readonly nullable: true;
|
|
315
|
-
};
|
|
316
|
-
readonly toolCallId: {
|
|
317
|
-
readonly type: "string";
|
|
318
|
-
readonly nullable: true;
|
|
319
|
-
};
|
|
320
|
-
readonly toolDurationMs: {
|
|
321
|
-
readonly type: "integer";
|
|
322
|
-
readonly nullable: true;
|
|
323
|
-
};
|
|
324
|
-
};
|
|
325
|
-
readonly required: readonly ["id", "messageId", "index", "type", "content", "agent", "provider", "model"];
|
|
326
|
-
};
|
|
327
|
-
export declare const ArtifactSchema: {
|
|
328
|
-
readonly oneOf: readonly [{
|
|
329
|
-
readonly $ref: "#/components/schemas/FileDiffArtifact";
|
|
330
|
-
}, {
|
|
331
|
-
readonly $ref: "#/components/schemas/FileArtifact";
|
|
332
|
-
}];
|
|
333
|
-
};
|
|
334
|
-
export declare const FileDiffArtifactSchema: {
|
|
335
|
-
readonly type: "object";
|
|
336
|
-
readonly properties: {
|
|
337
|
-
readonly kind: {
|
|
338
|
-
readonly type: "string";
|
|
339
|
-
readonly enum: readonly ["file_diff"];
|
|
340
|
-
};
|
|
341
|
-
readonly patchFormat: {
|
|
342
|
-
readonly type: "string";
|
|
343
|
-
readonly enum: readonly ["unified"];
|
|
344
|
-
};
|
|
345
|
-
readonly patch: {
|
|
346
|
-
readonly type: "string";
|
|
347
|
-
};
|
|
348
|
-
readonly summary: {
|
|
349
|
-
readonly type: "object";
|
|
350
|
-
readonly properties: {
|
|
351
|
-
readonly files: {
|
|
82
|
+
readonly cachedInputTokens: {
|
|
352
83
|
readonly type: "integer";
|
|
353
84
|
};
|
|
354
|
-
readonly
|
|
85
|
+
readonly cacheCreationInputTokens: {
|
|
355
86
|
readonly type: "integer";
|
|
356
87
|
};
|
|
357
|
-
readonly
|
|
88
|
+
readonly reasoningTokens: {
|
|
358
89
|
readonly type: "integer";
|
|
359
90
|
};
|
|
91
|
+
readonly costUsd: {
|
|
92
|
+
readonly type: "number";
|
|
93
|
+
};
|
|
94
|
+
readonly notionalCostUsd: {
|
|
95
|
+
readonly type: "number";
|
|
96
|
+
};
|
|
97
|
+
readonly savedUsd: {
|
|
98
|
+
readonly type: "number";
|
|
99
|
+
};
|
|
100
|
+
readonly costByAuth: {
|
|
101
|
+
readonly type: "object";
|
|
102
|
+
readonly properties: {
|
|
103
|
+
readonly oauth: {
|
|
104
|
+
readonly type: "number";
|
|
105
|
+
};
|
|
106
|
+
readonly api: {
|
|
107
|
+
readonly type: "number";
|
|
108
|
+
};
|
|
109
|
+
readonly subscription: {
|
|
110
|
+
readonly type: "number";
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
readonly required: readonly ["oauth", "api", "subscription"];
|
|
114
|
+
};
|
|
115
|
+
readonly messagesByAuth: {
|
|
116
|
+
readonly type: "object";
|
|
117
|
+
readonly properties: {
|
|
118
|
+
readonly oauth: {
|
|
119
|
+
readonly type: "integer";
|
|
120
|
+
};
|
|
121
|
+
readonly api: {
|
|
122
|
+
readonly type: "integer";
|
|
123
|
+
};
|
|
124
|
+
readonly subscription: {
|
|
125
|
+
readonly type: "integer";
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
readonly required: readonly ["oauth", "api", "subscription"];
|
|
129
|
+
};
|
|
360
130
|
};
|
|
361
|
-
readonly
|
|
362
|
-
};
|
|
363
|
-
};
|
|
364
|
-
readonly required: readonly ["kind", "patchFormat", "patch"];
|
|
365
|
-
};
|
|
366
|
-
export declare const FileArtifactSchema: {
|
|
367
|
-
readonly type: "object";
|
|
368
|
-
readonly properties: {
|
|
369
|
-
readonly kind: {
|
|
370
|
-
readonly type: "string";
|
|
371
|
-
readonly enum: readonly ["file"];
|
|
372
|
-
};
|
|
373
|
-
readonly path: {
|
|
374
|
-
readonly type: "string";
|
|
375
|
-
};
|
|
376
|
-
readonly mime: {
|
|
377
|
-
readonly type: "string";
|
|
378
|
-
};
|
|
379
|
-
readonly size: {
|
|
380
|
-
readonly type: "integer";
|
|
381
|
-
};
|
|
382
|
-
readonly sha256: {
|
|
383
|
-
readonly type: "string";
|
|
131
|
+
readonly required: readonly ["messages", "sessions", "inputTokens", "outputTokens", "cachedInputTokens", "cacheCreationInputTokens", "reasoningTokens", "costUsd", "notionalCostUsd", "savedUsd", "costByAuth", "messagesByAuth"];
|
|
384
132
|
};
|
|
385
|
-
|
|
386
|
-
readonly required: readonly ["kind", "path"];
|
|
387
|
-
};
|
|
388
|
-
export declare const ConfigSchema: {
|
|
389
|
-
readonly type: "object";
|
|
390
|
-
readonly properties: {
|
|
391
|
-
readonly agents: {
|
|
133
|
+
readonly providers: {
|
|
392
134
|
readonly type: "array";
|
|
393
135
|
readonly items: {
|
|
394
|
-
readonly type: "
|
|
136
|
+
readonly type: "object";
|
|
137
|
+
readonly properties: {
|
|
138
|
+
readonly provider: {
|
|
139
|
+
readonly type: "string";
|
|
140
|
+
};
|
|
141
|
+
readonly authType: {
|
|
142
|
+
readonly type: "string";
|
|
143
|
+
readonly enum: readonly ["oauth", "api", "wallet", "subscription", "unknown"];
|
|
144
|
+
};
|
|
145
|
+
readonly messages: {
|
|
146
|
+
readonly type: "integer";
|
|
147
|
+
};
|
|
148
|
+
readonly sessions: {
|
|
149
|
+
readonly type: "integer";
|
|
150
|
+
};
|
|
151
|
+
readonly inputTokens: {
|
|
152
|
+
readonly type: "integer";
|
|
153
|
+
};
|
|
154
|
+
readonly outputTokens: {
|
|
155
|
+
readonly type: "integer";
|
|
156
|
+
};
|
|
157
|
+
readonly cachedInputTokens: {
|
|
158
|
+
readonly type: "integer";
|
|
159
|
+
};
|
|
160
|
+
readonly cacheCreationInputTokens: {
|
|
161
|
+
readonly type: "integer";
|
|
162
|
+
};
|
|
163
|
+
readonly reasoningTokens: {
|
|
164
|
+
readonly type: "integer";
|
|
165
|
+
};
|
|
166
|
+
readonly costUsd: {
|
|
167
|
+
readonly type: "number";
|
|
168
|
+
};
|
|
169
|
+
readonly notionalCostUsd: {
|
|
170
|
+
readonly type: "number";
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
readonly required: readonly ["provider", "authType", "messages", "sessions", "inputTokens", "outputTokens", "cachedInputTokens", "cacheCreationInputTokens", "reasoningTokens", "costUsd", "notionalCostUsd"];
|
|
395
174
|
};
|
|
396
175
|
};
|
|
397
|
-
readonly
|
|
176
|
+
readonly models: {
|
|
398
177
|
readonly type: "array";
|
|
399
178
|
readonly items: {
|
|
400
|
-
readonly
|
|
179
|
+
readonly type: "object";
|
|
180
|
+
readonly properties: {
|
|
181
|
+
readonly provider: {
|
|
182
|
+
readonly type: "string";
|
|
183
|
+
};
|
|
184
|
+
readonly model: {
|
|
185
|
+
readonly type: "string";
|
|
186
|
+
};
|
|
187
|
+
readonly authType: {
|
|
188
|
+
readonly type: "string";
|
|
189
|
+
readonly enum: readonly ["oauth", "api", "wallet", "subscription", "unknown"];
|
|
190
|
+
};
|
|
191
|
+
readonly messages: {
|
|
192
|
+
readonly type: "integer";
|
|
193
|
+
};
|
|
194
|
+
readonly inputTokens: {
|
|
195
|
+
readonly type: "integer";
|
|
196
|
+
};
|
|
197
|
+
readonly outputTokens: {
|
|
198
|
+
readonly type: "integer";
|
|
199
|
+
};
|
|
200
|
+
readonly cachedInputTokens: {
|
|
201
|
+
readonly type: "integer";
|
|
202
|
+
};
|
|
203
|
+
readonly cacheCreationInputTokens: {
|
|
204
|
+
readonly type: "integer";
|
|
205
|
+
};
|
|
206
|
+
readonly reasoningTokens: {
|
|
207
|
+
readonly type: "integer";
|
|
208
|
+
};
|
|
209
|
+
readonly costUsd: {
|
|
210
|
+
readonly type: "number";
|
|
211
|
+
};
|
|
212
|
+
readonly notionalCostUsd: {
|
|
213
|
+
readonly type: "number";
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
readonly required: readonly ["provider", "model", "authType", "messages", "inputTokens", "outputTokens", "cachedInputTokens", "cacheCreationInputTokens", "reasoningTokens", "costUsd", "notionalCostUsd"];
|
|
401
217
|
};
|
|
402
218
|
};
|
|
403
|
-
readonly
|
|
219
|
+
readonly daily: {
|
|
404
220
|
readonly type: "array";
|
|
405
221
|
readonly items: {
|
|
406
|
-
readonly
|
|
222
|
+
readonly type: "object";
|
|
223
|
+
readonly properties: {
|
|
224
|
+
readonly date: {
|
|
225
|
+
readonly type: "string";
|
|
226
|
+
};
|
|
227
|
+
readonly messages: {
|
|
228
|
+
readonly type: "integer";
|
|
229
|
+
};
|
|
230
|
+
readonly inputTokens: {
|
|
231
|
+
readonly type: "integer";
|
|
232
|
+
};
|
|
233
|
+
readonly outputTokens: {
|
|
234
|
+
readonly type: "integer";
|
|
235
|
+
};
|
|
236
|
+
readonly costUsd: {
|
|
237
|
+
readonly type: "number";
|
|
238
|
+
};
|
|
239
|
+
readonly notionalCostUsd: {
|
|
240
|
+
readonly type: "number";
|
|
241
|
+
};
|
|
242
|
+
readonly costByAuth: {
|
|
243
|
+
readonly type: "object";
|
|
244
|
+
readonly properties: {
|
|
245
|
+
readonly oauth: {
|
|
246
|
+
readonly type: "number";
|
|
247
|
+
};
|
|
248
|
+
readonly api: {
|
|
249
|
+
readonly type: "number";
|
|
250
|
+
};
|
|
251
|
+
readonly subscription: {
|
|
252
|
+
readonly type: "number";
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
readonly required: readonly ["oauth", "api", "subscription"];
|
|
256
|
+
};
|
|
257
|
+
readonly notionalByAuth: {
|
|
258
|
+
readonly type: "object";
|
|
259
|
+
readonly properties: {
|
|
260
|
+
readonly oauth: {
|
|
261
|
+
readonly type: "number";
|
|
262
|
+
};
|
|
263
|
+
readonly api: {
|
|
264
|
+
readonly type: "number";
|
|
265
|
+
};
|
|
266
|
+
readonly subscription: {
|
|
267
|
+
readonly type: "number";
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
readonly required: readonly ["oauth", "api", "subscription"];
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
readonly required: readonly ["date", "messages", "inputTokens", "outputTokens", "costUsd", "notionalCostUsd", "costByAuth", "notionalByAuth"];
|
|
407
274
|
};
|
|
408
275
|
};
|
|
409
|
-
readonly
|
|
276
|
+
readonly notes: {
|
|
410
277
|
readonly type: "object";
|
|
411
278
|
readonly properties: {
|
|
412
|
-
readonly
|
|
413
|
-
readonly type: "
|
|
279
|
+
readonly oauthProviders: {
|
|
280
|
+
readonly type: "array";
|
|
281
|
+
readonly items: {
|
|
282
|
+
readonly type: "string";
|
|
283
|
+
};
|
|
414
284
|
};
|
|
415
|
-
readonly
|
|
416
|
-
readonly
|
|
285
|
+
readonly subscriptionProviders: {
|
|
286
|
+
readonly type: "array";
|
|
287
|
+
readonly items: {
|
|
288
|
+
readonly type: "string";
|
|
289
|
+
};
|
|
417
290
|
};
|
|
418
|
-
readonly
|
|
419
|
-
readonly type: "
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
readonly enum: readonly ["light", "dark"];
|
|
424
|
-
};
|
|
425
|
-
readonly vimMode: {
|
|
426
|
-
readonly type: "boolean";
|
|
427
|
-
};
|
|
428
|
-
readonly compactThread: {
|
|
429
|
-
readonly type: "boolean";
|
|
430
|
-
};
|
|
431
|
-
readonly fontFamily: {
|
|
432
|
-
readonly type: "string";
|
|
433
|
-
};
|
|
434
|
-
readonly smartEdges: {
|
|
435
|
-
readonly type: "boolean";
|
|
436
|
-
};
|
|
437
|
-
readonly releaseToSend: {
|
|
438
|
-
readonly type: "boolean";
|
|
439
|
-
};
|
|
440
|
-
readonly fullWidthContent: {
|
|
441
|
-
readonly type: "boolean";
|
|
442
|
-
};
|
|
443
|
-
readonly autoCompactThresholdTokens: {
|
|
444
|
-
readonly type: "integer";
|
|
445
|
-
readonly nullable: true;
|
|
446
|
-
};
|
|
447
|
-
readonly reasoningText: {
|
|
448
|
-
readonly type: "boolean";
|
|
449
|
-
};
|
|
450
|
-
readonly reasoningLevel: {
|
|
451
|
-
readonly type: "string";
|
|
452
|
-
readonly enum: readonly ["minimal", "low", "medium", "high", "max", "xhigh"];
|
|
291
|
+
readonly missingPricing: {
|
|
292
|
+
readonly type: "array";
|
|
293
|
+
readonly items: {
|
|
294
|
+
readonly type: "string";
|
|
295
|
+
};
|
|
453
296
|
};
|
|
454
297
|
};
|
|
455
|
-
readonly required: readonly ["
|
|
456
|
-
};
|
|
457
|
-
};
|
|
458
|
-
readonly required: readonly ["agents", "providers", "defaults"];
|
|
459
|
-
};
|
|
460
|
-
export declare const ModelSchema: {
|
|
461
|
-
readonly type: "object";
|
|
462
|
-
readonly properties: {
|
|
463
|
-
readonly id: {
|
|
464
|
-
readonly type: "string";
|
|
465
|
-
};
|
|
466
|
-
readonly label: {
|
|
467
|
-
readonly type: "string";
|
|
468
|
-
};
|
|
469
|
-
readonly toolCall: {
|
|
470
|
-
readonly type: "boolean";
|
|
471
|
-
};
|
|
472
|
-
readonly reasoningText: {
|
|
473
|
-
readonly type: "boolean";
|
|
474
|
-
};
|
|
475
|
-
};
|
|
476
|
-
readonly required: readonly ["id", "label"];
|
|
477
|
-
};
|
|
478
|
-
export declare const GitStatusSchema: {
|
|
479
|
-
readonly type: "object";
|
|
480
|
-
readonly properties: {
|
|
481
|
-
readonly branch: {
|
|
482
|
-
readonly type: "string";
|
|
483
|
-
};
|
|
484
|
-
readonly headSha: {
|
|
485
|
-
readonly type: "string";
|
|
486
|
-
};
|
|
487
|
-
readonly shortHeadSha: {
|
|
488
|
-
readonly type: "string";
|
|
489
|
-
};
|
|
490
|
-
readonly isDetached: {
|
|
491
|
-
readonly type: "boolean";
|
|
492
|
-
};
|
|
493
|
-
readonly operation: {
|
|
494
|
-
readonly $ref: "#/components/schemas/GitOperation";
|
|
495
|
-
readonly nullable: true;
|
|
496
|
-
};
|
|
497
|
-
readonly ahead: {
|
|
498
|
-
readonly type: "integer";
|
|
499
|
-
};
|
|
500
|
-
readonly behind: {
|
|
501
|
-
readonly type: "integer";
|
|
502
|
-
};
|
|
503
|
-
readonly staged: {
|
|
504
|
-
readonly type: "array";
|
|
505
|
-
readonly items: {
|
|
506
|
-
readonly $ref: "#/components/schemas/GitFile";
|
|
507
|
-
};
|
|
508
|
-
};
|
|
509
|
-
readonly unstaged: {
|
|
510
|
-
readonly type: "array";
|
|
511
|
-
readonly items: {
|
|
512
|
-
readonly $ref: "#/components/schemas/GitFile";
|
|
513
|
-
};
|
|
514
|
-
};
|
|
515
|
-
readonly untracked: {
|
|
516
|
-
readonly type: "array";
|
|
517
|
-
readonly items: {
|
|
518
|
-
readonly $ref: "#/components/schemas/GitFile";
|
|
519
|
-
};
|
|
520
|
-
};
|
|
521
|
-
readonly conflicted: {
|
|
522
|
-
readonly type: "array";
|
|
523
|
-
readonly items: {
|
|
524
|
-
readonly $ref: "#/components/schemas/GitFile";
|
|
525
|
-
};
|
|
526
|
-
};
|
|
527
|
-
readonly hasChanges: {
|
|
528
|
-
readonly type: "boolean";
|
|
529
|
-
};
|
|
530
|
-
readonly hasConflicts: {
|
|
531
|
-
readonly type: "boolean";
|
|
532
|
-
};
|
|
533
|
-
readonly hasUpstream: {
|
|
534
|
-
readonly type: "boolean";
|
|
535
|
-
};
|
|
536
|
-
readonly remotes: {
|
|
537
|
-
readonly type: "array";
|
|
538
|
-
readonly items: {
|
|
539
|
-
readonly type: "string";
|
|
540
|
-
};
|
|
541
|
-
};
|
|
542
|
-
};
|
|
543
|
-
readonly required: readonly ["branch", "headSha", "shortHeadSha", "isDetached", "operation", "ahead", "behind", "staged", "unstaged", "untracked", "conflicted", "hasChanges", "hasConflicts", "hasUpstream", "remotes"];
|
|
544
|
-
};
|
|
545
|
-
export declare const GitOperationSchema: {
|
|
546
|
-
readonly type: "object";
|
|
547
|
-
readonly properties: {
|
|
548
|
-
readonly type: {
|
|
549
|
-
readonly type: "string";
|
|
550
|
-
readonly enum: readonly ["rebase", "rebase-interactive", "merge", "cherry-pick", "revert", "bisect"];
|
|
551
|
-
};
|
|
552
|
-
readonly label: {
|
|
553
|
-
readonly type: "string";
|
|
554
|
-
};
|
|
555
|
-
readonly current: {
|
|
556
|
-
readonly type: "integer";
|
|
557
|
-
};
|
|
558
|
-
readonly total: {
|
|
559
|
-
readonly type: "integer";
|
|
560
|
-
};
|
|
561
|
-
readonly headName: {
|
|
562
|
-
readonly type: "string";
|
|
563
|
-
};
|
|
564
|
-
readonly onto: {
|
|
565
|
-
readonly type: "string";
|
|
566
|
-
};
|
|
567
|
-
};
|
|
568
|
-
readonly required: readonly ["type", "label"];
|
|
569
|
-
};
|
|
570
|
-
export declare const GitFileSchema: {
|
|
571
|
-
readonly type: "object";
|
|
572
|
-
readonly properties: {
|
|
573
|
-
readonly path: {
|
|
574
|
-
readonly type: "string";
|
|
575
|
-
};
|
|
576
|
-
readonly status: {
|
|
577
|
-
readonly type: "string";
|
|
578
|
-
readonly enum: readonly ["modified", "added", "deleted", "renamed", "untracked", "conflicted"];
|
|
579
|
-
};
|
|
580
|
-
readonly staged: {
|
|
581
|
-
readonly type: "boolean";
|
|
582
|
-
};
|
|
583
|
-
readonly insertions: {
|
|
584
|
-
readonly type: "integer";
|
|
585
|
-
};
|
|
586
|
-
readonly deletions: {
|
|
587
|
-
readonly type: "integer";
|
|
588
|
-
};
|
|
589
|
-
readonly oldPath: {
|
|
590
|
-
readonly type: "string";
|
|
591
|
-
};
|
|
592
|
-
readonly conflictType: {
|
|
593
|
-
readonly type: "string";
|
|
594
|
-
readonly enum: readonly ["both-modified", "deleted-by-us", "deleted-by-them", "both-added", "both-deleted"];
|
|
595
|
-
};
|
|
596
|
-
};
|
|
597
|
-
readonly required: readonly ["path", "status", "staged"];
|
|
598
|
-
};
|
|
599
|
-
export declare const GitDiffSchema: {
|
|
600
|
-
readonly type: "object";
|
|
601
|
-
readonly properties: {
|
|
602
|
-
readonly file: {
|
|
603
|
-
readonly type: "string";
|
|
604
|
-
};
|
|
605
|
-
readonly diff: {
|
|
606
|
-
readonly type: "string";
|
|
607
|
-
};
|
|
608
|
-
readonly insertions: {
|
|
609
|
-
readonly type: "integer";
|
|
610
|
-
};
|
|
611
|
-
readonly deletions: {
|
|
612
|
-
readonly type: "integer";
|
|
613
|
-
};
|
|
614
|
-
readonly language: {
|
|
615
|
-
readonly type: "string";
|
|
616
|
-
};
|
|
617
|
-
readonly binary: {
|
|
618
|
-
readonly type: "boolean";
|
|
619
|
-
};
|
|
620
|
-
};
|
|
621
|
-
readonly required: readonly ["file", "diff", "insertions", "deletions", "language", "binary"];
|
|
622
|
-
};
|
|
623
|
-
export declare const GitBranchSchema: {
|
|
624
|
-
readonly type: "object";
|
|
625
|
-
readonly properties: {
|
|
626
|
-
readonly current: {
|
|
627
|
-
readonly type: "string";
|
|
628
|
-
};
|
|
629
|
-
readonly upstream: {
|
|
630
|
-
readonly type: "string";
|
|
631
|
-
};
|
|
632
|
-
readonly ahead: {
|
|
633
|
-
readonly type: "integer";
|
|
634
|
-
};
|
|
635
|
-
readonly behind: {
|
|
636
|
-
readonly type: "integer";
|
|
637
|
-
};
|
|
638
|
-
readonly all: {
|
|
639
|
-
readonly type: "array";
|
|
640
|
-
readonly items: {
|
|
641
|
-
readonly type: "string";
|
|
642
|
-
};
|
|
643
|
-
};
|
|
644
|
-
};
|
|
645
|
-
readonly required: readonly ["current", "upstream", "ahead", "behind", "all"];
|
|
646
|
-
};
|
|
647
|
-
export declare const GitCommitSchema: {
|
|
648
|
-
readonly type: "object";
|
|
649
|
-
readonly properties: {
|
|
650
|
-
readonly hash: {
|
|
651
|
-
readonly type: "string";
|
|
652
|
-
};
|
|
653
|
-
readonly message: {
|
|
654
|
-
readonly type: "string";
|
|
655
|
-
};
|
|
656
|
-
readonly filesChanged: {
|
|
657
|
-
readonly type: "integer";
|
|
658
|
-
};
|
|
659
|
-
readonly insertions: {
|
|
660
|
-
readonly type: "integer";
|
|
661
|
-
};
|
|
662
|
-
readonly deletions: {
|
|
663
|
-
readonly type: "integer";
|
|
664
|
-
};
|
|
665
|
-
};
|
|
666
|
-
readonly required: readonly ["hash", "message", "filesChanged", "insertions", "deletions"];
|
|
667
|
-
};
|
|
668
|
-
export declare const TerminalSchema: {
|
|
669
|
-
readonly type: "object";
|
|
670
|
-
readonly properties: {
|
|
671
|
-
readonly id: {
|
|
672
|
-
readonly type: "string";
|
|
673
|
-
};
|
|
674
|
-
readonly pid: {
|
|
675
|
-
readonly type: "integer";
|
|
676
|
-
};
|
|
677
|
-
readonly command: {
|
|
678
|
-
readonly type: "string";
|
|
679
|
-
};
|
|
680
|
-
readonly args: {
|
|
681
|
-
readonly type: "array";
|
|
682
|
-
readonly items: {
|
|
683
|
-
readonly type: "string";
|
|
684
|
-
};
|
|
685
|
-
};
|
|
686
|
-
readonly cwd: {
|
|
687
|
-
readonly type: "string";
|
|
688
|
-
};
|
|
689
|
-
readonly purpose: {
|
|
690
|
-
readonly type: "string";
|
|
691
|
-
};
|
|
692
|
-
readonly createdBy: {
|
|
693
|
-
readonly type: "string";
|
|
694
|
-
readonly enum: readonly ["user", "llm"];
|
|
695
|
-
};
|
|
696
|
-
readonly title: {
|
|
697
|
-
readonly type: "string";
|
|
698
|
-
};
|
|
699
|
-
readonly status: {
|
|
700
|
-
readonly type: "string";
|
|
701
|
-
readonly enum: readonly ["running", "exited"];
|
|
702
|
-
};
|
|
703
|
-
readonly exitCode: {
|
|
704
|
-
readonly type: "integer";
|
|
298
|
+
readonly required: readonly ["oauthProviders", "subscriptionProviders", "missingPricing"];
|
|
705
299
|
};
|
|
706
|
-
readonly
|
|
707
|
-
readonly type: "
|
|
708
|
-
readonly
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
readonly url: {
|
|
735
|
-
readonly type: "string";
|
|
736
|
-
};
|
|
737
|
-
readonly disabled: {
|
|
738
|
-
readonly type: "boolean";
|
|
739
|
-
};
|
|
740
|
-
readonly connected: {
|
|
741
|
-
readonly type: "boolean";
|
|
742
|
-
};
|
|
743
|
-
readonly tools: {
|
|
744
|
-
readonly type: "array";
|
|
745
|
-
readonly items: {
|
|
746
|
-
readonly type: "object";
|
|
747
|
-
readonly properties: {
|
|
748
|
-
readonly name: {
|
|
749
|
-
readonly type: "string";
|
|
300
|
+
readonly projects: {
|
|
301
|
+
readonly type: "object";
|
|
302
|
+
readonly properties: {
|
|
303
|
+
readonly included: {
|
|
304
|
+
readonly type: "array";
|
|
305
|
+
readonly items: {
|
|
306
|
+
readonly type: "object";
|
|
307
|
+
readonly properties: {
|
|
308
|
+
readonly id: {
|
|
309
|
+
readonly type: "string";
|
|
310
|
+
};
|
|
311
|
+
readonly name: {
|
|
312
|
+
readonly type: "string";
|
|
313
|
+
};
|
|
314
|
+
readonly path: {
|
|
315
|
+
readonly type: "string";
|
|
316
|
+
};
|
|
317
|
+
readonly lastSeenAt: {
|
|
318
|
+
readonly type: "integer";
|
|
319
|
+
};
|
|
320
|
+
readonly messages: {
|
|
321
|
+
readonly type: "integer";
|
|
322
|
+
};
|
|
323
|
+
readonly notionalCostUsd: {
|
|
324
|
+
readonly type: "number";
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
readonly required: readonly ["id", "name", "path", "lastSeenAt", "messages", "notionalCostUsd"];
|
|
750
328
|
};
|
|
751
|
-
|
|
752
|
-
|
|
329
|
+
};
|
|
330
|
+
readonly unavailable: {
|
|
331
|
+
readonly type: "array";
|
|
332
|
+
readonly items: {
|
|
333
|
+
readonly type: "object";
|
|
334
|
+
readonly properties: {
|
|
335
|
+
readonly id: {
|
|
336
|
+
readonly type: "string";
|
|
337
|
+
};
|
|
338
|
+
readonly name: {
|
|
339
|
+
readonly type: "string";
|
|
340
|
+
};
|
|
341
|
+
readonly path: {
|
|
342
|
+
readonly type: "string";
|
|
343
|
+
};
|
|
344
|
+
readonly reason: {
|
|
345
|
+
readonly type: "string";
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
readonly required: readonly ["id", "name", "path", "reason"];
|
|
753
349
|
};
|
|
754
350
|
};
|
|
755
351
|
};
|
|
756
|
-
|
|
757
|
-
readonly authRequired: {
|
|
758
|
-
readonly type: "boolean";
|
|
759
|
-
};
|
|
760
|
-
readonly authenticated: {
|
|
761
|
-
readonly type: "boolean";
|
|
762
|
-
};
|
|
763
|
-
readonly scope: {
|
|
764
|
-
readonly type: "string";
|
|
765
|
-
readonly enum: readonly ["global", "project"];
|
|
766
|
-
};
|
|
767
|
-
readonly authType: {
|
|
768
|
-
readonly type: "string";
|
|
769
|
-
};
|
|
770
|
-
};
|
|
771
|
-
readonly required: readonly ["name", "transport", "connected"];
|
|
772
|
-
};
|
|
773
|
-
export declare const UsageAuthBucketSchema: {
|
|
774
|
-
readonly type: "string";
|
|
775
|
-
readonly enum: readonly ["oauth", "api", "subscription"];
|
|
776
|
-
};
|
|
777
|
-
export declare const UsageAuthTypeSchema: {
|
|
778
|
-
readonly type: "string";
|
|
779
|
-
readonly enum: readonly ["oauth", "api", "wallet", "subscription", "unknown"];
|
|
780
|
-
};
|
|
781
|
-
export declare const UsageAuthAmountSchema: {
|
|
782
|
-
readonly type: "object";
|
|
783
|
-
readonly properties: {
|
|
784
|
-
readonly oauth: {
|
|
785
|
-
readonly type: "number";
|
|
786
|
-
};
|
|
787
|
-
readonly api: {
|
|
788
|
-
readonly type: "number";
|
|
789
|
-
};
|
|
790
|
-
readonly subscription: {
|
|
791
|
-
readonly type: "number";
|
|
792
|
-
};
|
|
793
|
-
};
|
|
794
|
-
readonly required: readonly ["oauth", "api", "subscription"];
|
|
795
|
-
};
|
|
796
|
-
export declare const UsageAuthCountSchema: {
|
|
797
|
-
readonly type: "object";
|
|
798
|
-
readonly properties: {
|
|
799
|
-
readonly oauth: {
|
|
800
|
-
readonly type: "integer";
|
|
801
|
-
};
|
|
802
|
-
readonly api: {
|
|
803
|
-
readonly type: "integer";
|
|
804
|
-
};
|
|
805
|
-
readonly subscription: {
|
|
806
|
-
readonly type: "integer";
|
|
807
|
-
};
|
|
808
|
-
};
|
|
809
|
-
readonly required: readonly ["oauth", "api", "subscription"];
|
|
810
|
-
};
|
|
811
|
-
export declare const UsageTotalsSchema: {
|
|
812
|
-
readonly type: "object";
|
|
813
|
-
readonly properties: {
|
|
814
|
-
readonly messages: {
|
|
815
|
-
readonly type: "integer";
|
|
816
|
-
};
|
|
817
|
-
readonly sessions: {
|
|
818
|
-
readonly type: "integer";
|
|
819
|
-
};
|
|
820
|
-
readonly inputTokens: {
|
|
821
|
-
readonly type: "integer";
|
|
822
|
-
};
|
|
823
|
-
readonly outputTokens: {
|
|
824
|
-
readonly type: "integer";
|
|
825
|
-
};
|
|
826
|
-
readonly cachedInputTokens: {
|
|
827
|
-
readonly type: "integer";
|
|
828
|
-
};
|
|
829
|
-
readonly cacheCreationInputTokens: {
|
|
830
|
-
readonly type: "integer";
|
|
831
|
-
};
|
|
832
|
-
readonly reasoningTokens: {
|
|
833
|
-
readonly type: "integer";
|
|
834
|
-
};
|
|
835
|
-
readonly costUsd: {
|
|
836
|
-
readonly type: "number";
|
|
837
|
-
};
|
|
838
|
-
readonly notionalCostUsd: {
|
|
839
|
-
readonly type: "number";
|
|
840
|
-
};
|
|
841
|
-
readonly savedUsd: {
|
|
842
|
-
readonly type: "number";
|
|
843
|
-
};
|
|
844
|
-
readonly costByAuth: {
|
|
845
|
-
readonly $ref: "#/components/schemas/UsageAuthAmount";
|
|
846
|
-
};
|
|
847
|
-
readonly messagesByAuth: {
|
|
848
|
-
readonly $ref: "#/components/schemas/UsageAuthCount";
|
|
849
|
-
};
|
|
850
|
-
};
|
|
851
|
-
readonly required: readonly ["messages", "sessions", "inputTokens", "outputTokens", "cachedInputTokens", "cacheCreationInputTokens", "reasoningTokens", "costUsd", "notionalCostUsd", "savedUsd", "costByAuth", "messagesByAuth"];
|
|
852
|
-
};
|
|
853
|
-
export declare const UsageProviderAggSchema: {
|
|
854
|
-
readonly type: "object";
|
|
855
|
-
readonly properties: {
|
|
856
|
-
readonly provider: {
|
|
857
|
-
readonly type: "string";
|
|
858
|
-
};
|
|
859
|
-
readonly authType: {
|
|
860
|
-
readonly $ref: "#/components/schemas/UsageAuthType";
|
|
861
|
-
};
|
|
862
|
-
readonly messages: {
|
|
863
|
-
readonly type: "integer";
|
|
864
|
-
};
|
|
865
|
-
readonly sessions: {
|
|
866
|
-
readonly type: "integer";
|
|
867
|
-
};
|
|
868
|
-
readonly inputTokens: {
|
|
869
|
-
readonly type: "integer";
|
|
870
|
-
};
|
|
871
|
-
readonly outputTokens: {
|
|
872
|
-
readonly type: "integer";
|
|
873
|
-
};
|
|
874
|
-
readonly cachedInputTokens: {
|
|
875
|
-
readonly type: "integer";
|
|
876
|
-
};
|
|
877
|
-
readonly cacheCreationInputTokens: {
|
|
878
|
-
readonly type: "integer";
|
|
879
|
-
};
|
|
880
|
-
readonly reasoningTokens: {
|
|
881
|
-
readonly type: "integer";
|
|
882
|
-
};
|
|
883
|
-
readonly costUsd: {
|
|
884
|
-
readonly type: "number";
|
|
885
|
-
};
|
|
886
|
-
readonly notionalCostUsd: {
|
|
887
|
-
readonly type: "number";
|
|
888
|
-
};
|
|
889
|
-
};
|
|
890
|
-
readonly required: readonly ["provider", "authType", "messages", "sessions", "inputTokens", "outputTokens", "cachedInputTokens", "cacheCreationInputTokens", "reasoningTokens", "costUsd", "notionalCostUsd"];
|
|
891
|
-
};
|
|
892
|
-
export declare const UsageModelAggSchema: {
|
|
893
|
-
readonly type: "object";
|
|
894
|
-
readonly properties: {
|
|
895
|
-
readonly provider: {
|
|
896
|
-
readonly type: "string";
|
|
897
|
-
};
|
|
898
|
-
readonly model: {
|
|
899
|
-
readonly type: "string";
|
|
900
|
-
};
|
|
901
|
-
readonly authType: {
|
|
902
|
-
readonly $ref: "#/components/schemas/UsageAuthType";
|
|
903
|
-
};
|
|
904
|
-
readonly messages: {
|
|
905
|
-
readonly type: "integer";
|
|
906
|
-
};
|
|
907
|
-
readonly inputTokens: {
|
|
908
|
-
readonly type: "integer";
|
|
909
|
-
};
|
|
910
|
-
readonly outputTokens: {
|
|
911
|
-
readonly type: "integer";
|
|
912
|
-
};
|
|
913
|
-
readonly cachedInputTokens: {
|
|
914
|
-
readonly type: "integer";
|
|
915
|
-
};
|
|
916
|
-
readonly cacheCreationInputTokens: {
|
|
917
|
-
readonly type: "integer";
|
|
918
|
-
};
|
|
919
|
-
readonly reasoningTokens: {
|
|
920
|
-
readonly type: "integer";
|
|
921
|
-
};
|
|
922
|
-
readonly costUsd: {
|
|
923
|
-
readonly type: "number";
|
|
924
|
-
};
|
|
925
|
-
readonly notionalCostUsd: {
|
|
926
|
-
readonly type: "number";
|
|
927
|
-
};
|
|
928
|
-
};
|
|
929
|
-
readonly required: readonly ["provider", "model", "authType", "messages", "inputTokens", "outputTokens", "cachedInputTokens", "cacheCreationInputTokens", "reasoningTokens", "costUsd", "notionalCostUsd"];
|
|
930
|
-
};
|
|
931
|
-
export declare const UsageDailyAggSchema: {
|
|
932
|
-
readonly type: "object";
|
|
933
|
-
readonly properties: {
|
|
934
|
-
readonly date: {
|
|
935
|
-
readonly type: "string";
|
|
936
|
-
};
|
|
937
|
-
readonly messages: {
|
|
938
|
-
readonly type: "integer";
|
|
939
|
-
};
|
|
940
|
-
readonly inputTokens: {
|
|
941
|
-
readonly type: "integer";
|
|
942
|
-
};
|
|
943
|
-
readonly outputTokens: {
|
|
944
|
-
readonly type: "integer";
|
|
945
|
-
};
|
|
946
|
-
readonly costUsd: {
|
|
947
|
-
readonly type: "number";
|
|
948
|
-
};
|
|
949
|
-
readonly notionalCostUsd: {
|
|
950
|
-
readonly type: "number";
|
|
951
|
-
};
|
|
952
|
-
readonly costByAuth: {
|
|
953
|
-
readonly $ref: "#/components/schemas/UsageAuthAmount";
|
|
954
|
-
};
|
|
955
|
-
readonly notionalByAuth: {
|
|
956
|
-
readonly $ref: "#/components/schemas/UsageAuthAmount";
|
|
957
|
-
};
|
|
958
|
-
};
|
|
959
|
-
readonly required: readonly ["date", "messages", "inputTokens", "outputTokens", "costUsd", "notionalCostUsd", "costByAuth", "notionalByAuth"];
|
|
960
|
-
};
|
|
961
|
-
export declare const UsageProjectInfoSchema: {
|
|
962
|
-
readonly type: "object";
|
|
963
|
-
readonly properties: {
|
|
964
|
-
readonly id: {
|
|
965
|
-
readonly type: "string";
|
|
966
|
-
};
|
|
967
|
-
readonly name: {
|
|
968
|
-
readonly type: "string";
|
|
969
|
-
};
|
|
970
|
-
readonly path: {
|
|
971
|
-
readonly type: "string";
|
|
972
|
-
};
|
|
973
|
-
readonly lastSeenAt: {
|
|
974
|
-
readonly type: "integer";
|
|
975
|
-
};
|
|
976
|
-
readonly messages: {
|
|
977
|
-
readonly type: "integer";
|
|
978
|
-
};
|
|
979
|
-
readonly notionalCostUsd: {
|
|
980
|
-
readonly type: "number";
|
|
981
|
-
};
|
|
982
|
-
};
|
|
983
|
-
readonly required: readonly ["id", "name", "path", "lastSeenAt", "messages", "notionalCostUsd"];
|
|
984
|
-
};
|
|
985
|
-
export declare const UsageProjectUnavailableSchema: {
|
|
986
|
-
readonly type: "object";
|
|
987
|
-
readonly properties: {
|
|
988
|
-
readonly id: {
|
|
989
|
-
readonly type: "string";
|
|
990
|
-
};
|
|
991
|
-
readonly name: {
|
|
992
|
-
readonly type: "string";
|
|
993
|
-
};
|
|
994
|
-
readonly path: {
|
|
995
|
-
readonly type: "string";
|
|
996
|
-
};
|
|
997
|
-
readonly reason: {
|
|
998
|
-
readonly type: "string";
|
|
999
|
-
};
|
|
1000
|
-
};
|
|
1001
|
-
readonly required: readonly ["id", "name", "path", "reason"];
|
|
1002
|
-
};
|
|
1003
|
-
export declare const UsageProjectsBreakdownSchema: {
|
|
1004
|
-
readonly type: "object";
|
|
1005
|
-
readonly properties: {
|
|
1006
|
-
readonly included: {
|
|
1007
|
-
readonly type: "array";
|
|
1008
|
-
readonly items: {
|
|
1009
|
-
readonly $ref: "#/components/schemas/UsageProjectInfo";
|
|
1010
|
-
};
|
|
1011
|
-
};
|
|
1012
|
-
readonly unavailable: {
|
|
1013
|
-
readonly type: "array";
|
|
1014
|
-
readonly items: {
|
|
1015
|
-
readonly $ref: "#/components/schemas/UsageProjectUnavailable";
|
|
1016
|
-
};
|
|
1017
|
-
};
|
|
1018
|
-
};
|
|
1019
|
-
readonly required: readonly ["included", "unavailable"];
|
|
1020
|
-
};
|
|
1021
|
-
export declare const UsageStatsNotesSchema: {
|
|
1022
|
-
readonly type: "object";
|
|
1023
|
-
readonly properties: {
|
|
1024
|
-
readonly oauthProviders: {
|
|
1025
|
-
readonly type: "array";
|
|
1026
|
-
readonly items: {
|
|
1027
|
-
readonly type: "string";
|
|
1028
|
-
};
|
|
1029
|
-
};
|
|
1030
|
-
readonly subscriptionProviders: {
|
|
1031
|
-
readonly type: "array";
|
|
1032
|
-
readonly items: {
|
|
1033
|
-
readonly type: "string";
|
|
1034
|
-
};
|
|
1035
|
-
};
|
|
1036
|
-
readonly missingPricing: {
|
|
1037
|
-
readonly type: "array";
|
|
1038
|
-
readonly items: {
|
|
1039
|
-
readonly type: "string";
|
|
1040
|
-
};
|
|
1041
|
-
};
|
|
1042
|
-
};
|
|
1043
|
-
readonly required: readonly ["oauthProviders", "subscriptionProviders", "missingPricing"];
|
|
1044
|
-
};
|
|
1045
|
-
export declare const UsageStatsSchema: {
|
|
1046
|
-
readonly type: "object";
|
|
1047
|
-
readonly properties: {
|
|
1048
|
-
readonly scope: {
|
|
1049
|
-
readonly type: "string";
|
|
1050
|
-
readonly enum: readonly ["project", "global"];
|
|
1051
|
-
};
|
|
1052
|
-
readonly project: {
|
|
1053
|
-
readonly type: "string";
|
|
1054
|
-
};
|
|
1055
|
-
readonly generatedAt: {
|
|
1056
|
-
readonly type: "integer";
|
|
1057
|
-
};
|
|
1058
|
-
readonly totals: {
|
|
1059
|
-
readonly $ref: "#/components/schemas/UsageTotals";
|
|
1060
|
-
};
|
|
1061
|
-
readonly providers: {
|
|
1062
|
-
readonly type: "array";
|
|
1063
|
-
readonly items: {
|
|
1064
|
-
readonly $ref: "#/components/schemas/UsageProviderAgg";
|
|
1065
|
-
};
|
|
1066
|
-
};
|
|
1067
|
-
readonly models: {
|
|
1068
|
-
readonly type: "array";
|
|
1069
|
-
readonly items: {
|
|
1070
|
-
readonly $ref: "#/components/schemas/UsageModelAgg";
|
|
1071
|
-
};
|
|
1072
|
-
};
|
|
1073
|
-
readonly daily: {
|
|
1074
|
-
readonly type: "array";
|
|
1075
|
-
readonly items: {
|
|
1076
|
-
readonly $ref: "#/components/schemas/UsageDailyAgg";
|
|
1077
|
-
};
|
|
1078
|
-
};
|
|
1079
|
-
readonly notes: {
|
|
1080
|
-
readonly $ref: "#/components/schemas/UsageStatsNotes";
|
|
1081
|
-
};
|
|
1082
|
-
readonly projects: {
|
|
1083
|
-
readonly $ref: "#/components/schemas/UsageProjectsBreakdown";
|
|
352
|
+
readonly required: readonly ["included", "unavailable"];
|
|
1084
353
|
};
|
|
1085
354
|
};
|
|
1086
355
|
readonly required: readonly ["scope", "project", "generatedAt", "totals", "providers", "models", "daily", "notes"];
|