@nemesis-oss/ollama-sdk 1.8.0 → 1.9.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 +158 -0
- package/README.md +181 -10
- package/dist/{anthropic-B_UXplNF.d.ts → anthropic-5oYIRS6D.d.ts} +4 -2
- package/dist/{anthropic-CVDFy_a0.d.cts → anthropic-BIh45UXj.d.cts} +4 -2
- package/dist/{compose-DLStUfaF.d.ts → compose-DCVYMvOL.d.ts} +1 -1
- package/dist/{compose-DS-UWFx8.d.cts → compose-Dj6FdF2n.d.cts} +1 -1
- package/dist/generated-api.cjs +42 -3
- package/dist/generated-api.cjs.map +1 -1
- package/dist/generated-api.d.cts +96 -6
- package/dist/generated-api.d.ts +96 -6
- package/dist/generated-api.js +41 -4
- package/dist/generated-api.js.map +1 -1
- package/dist/generated-models-schemas.cjs +62 -2
- package/dist/generated-models-schemas.cjs.map +1 -1
- package/dist/generated-models-schemas.d.cts +108 -3
- package/dist/generated-models-schemas.d.ts +108 -3
- package/dist/generated-models-schemas.js +56 -3
- package/dist/generated-models-schemas.js.map +1 -1
- package/dist/generated-runtime.cjs +105 -5
- package/dist/generated-runtime.cjs.map +1 -1
- package/dist/generated-runtime.d.cts +2 -2
- package/dist/generated-runtime.d.ts +2 -2
- package/dist/generated-runtime.js +105 -5
- package/dist/generated-runtime.js.map +1 -1
- package/dist/index.cjs +1384 -51
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1312 -14
- package/dist/index.d.ts +1312 -14
- package/dist/index.js +1352 -52
- package/dist/index.js.map +1 -1
- package/dist/mcp/tools.json +43 -24
- package/dist/mcp-generated.cjs +43 -1
- package/dist/mcp-generated.cjs.map +1 -1
- package/dist/mcp-generated.d.cts +2 -2
- package/dist/mcp-generated.d.ts +2 -2
- package/dist/mcp-generated.js +43 -1
- package/dist/mcp-generated.js.map +1 -1
- package/dist/{runtime-C6UYtBRB.d.ts → runtime-C3rfpkZw.d.ts} +69 -2
- package/dist/{runtime-DTmUeU6K.d.cts → runtime-D2W9TfCJ.d.cts} +69 -2
- package/dist/skills.cjs.map +1 -1
- package/dist/skills.d.cts +3 -3
- package/dist/skills.d.ts +3 -3
- package/dist/skills.js.map +1 -1
- package/dist/{types-5PAjLoCp.d.cts → types-DVcX_zMp.d.cts} +110 -10
- package/dist/{types-5PAjLoCp.d.ts → types-DVcX_zMp.d.ts} +110 -10
- package/package.json +8 -5
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
+
declare const BalanceResponseSchema: z.ZodObject<{
|
|
4
|
+
included: z.ZodUnion<readonly [z.ZodObject<{
|
|
5
|
+
balance_usd: z.ZodNumber;
|
|
6
|
+
allowance_usd: z.ZodNumber;
|
|
7
|
+
period: z.ZodObject<{
|
|
8
|
+
from: z.ZodString;
|
|
9
|
+
until: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12
|
+
session: z.ZodObject<{
|
|
13
|
+
remaining_percent: z.ZodNumber;
|
|
14
|
+
resets_at: z.ZodString;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
weekly: z.ZodObject<{
|
|
17
|
+
remaining_percent: z.ZodNumber;
|
|
18
|
+
resets_at: z.ZodString;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
}, z.core.$strip>]>;
|
|
21
|
+
purchased: z.ZodObject<{
|
|
22
|
+
balance_usd: z.ZodNumber;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
|
|
3
26
|
declare const ChatMessageSchema: z.ZodObject<{
|
|
4
27
|
role: z.ZodEnum<{
|
|
5
28
|
system: "system";
|
|
@@ -161,6 +184,7 @@ declare const CreateRequestSchema: z.ZodObject<{
|
|
|
161
184
|
quantize: z.ZodOptional<z.ZodString>;
|
|
162
185
|
draft_quantize: z.ZodOptional<z.ZodString>;
|
|
163
186
|
requires: z.ZodOptional<z.ZodString>;
|
|
187
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
164
188
|
stream: z.ZodOptional<z.ZodBoolean>;
|
|
165
189
|
}, z.core.$strip>;
|
|
166
190
|
|
|
@@ -265,6 +289,31 @@ declare const GenerateStreamEventSchema: z.ZodObject<{
|
|
|
265
289
|
eval_duration: z.ZodOptional<z.ZodNumber>;
|
|
266
290
|
}, z.core.$strip>;
|
|
267
291
|
|
|
292
|
+
declare const IncludedBalanceSchema: z.ZodObject<{
|
|
293
|
+
balance_usd: z.ZodNumber;
|
|
294
|
+
allowance_usd: z.ZodNumber;
|
|
295
|
+
period: z.ZodObject<{
|
|
296
|
+
from: z.ZodString;
|
|
297
|
+
until: z.ZodString;
|
|
298
|
+
}, z.core.$strip>;
|
|
299
|
+
}, z.core.$strip>;
|
|
300
|
+
|
|
301
|
+
declare const LegacyBalanceLimitSchema: z.ZodObject<{
|
|
302
|
+
remaining_percent: z.ZodNumber;
|
|
303
|
+
resets_at: z.ZodString;
|
|
304
|
+
}, z.core.$strip>;
|
|
305
|
+
|
|
306
|
+
declare const LegacyIncludedBalanceSchema: z.ZodObject<{
|
|
307
|
+
session: z.ZodObject<{
|
|
308
|
+
remaining_percent: z.ZodNumber;
|
|
309
|
+
resets_at: z.ZodString;
|
|
310
|
+
}, z.core.$strip>;
|
|
311
|
+
weekly: z.ZodObject<{
|
|
312
|
+
remaining_percent: z.ZodNumber;
|
|
313
|
+
resets_at: z.ZodString;
|
|
314
|
+
}, z.core.$strip>;
|
|
315
|
+
}, z.core.$strip>;
|
|
316
|
+
|
|
268
317
|
declare const ListResponseSchema: z.ZodObject<{
|
|
269
318
|
models: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
270
319
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -277,7 +326,7 @@ declare const ListResponseSchema: z.ZodObject<{
|
|
|
277
326
|
details: z.ZodOptional<z.ZodObject<{
|
|
278
327
|
format: z.ZodOptional<z.ZodString>;
|
|
279
328
|
family: z.ZodOptional<z.ZodString>;
|
|
280
|
-
families: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
329
|
+
families: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodNull]>>;
|
|
281
330
|
parameter_size: z.ZodOptional<z.ZodString>;
|
|
282
331
|
quantization_level: z.ZodOptional<z.ZodString>;
|
|
283
332
|
}, z.core.$strip>>;
|
|
@@ -320,7 +369,7 @@ declare const ModelSummarySchema: z.ZodObject<{
|
|
|
320
369
|
details: z.ZodOptional<z.ZodObject<{
|
|
321
370
|
format: z.ZodOptional<z.ZodString>;
|
|
322
371
|
family: z.ZodOptional<z.ZodString>;
|
|
323
|
-
families: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
372
|
+
families: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodNull]>>;
|
|
324
373
|
parameter_size: z.ZodOptional<z.ZodString>;
|
|
325
374
|
quantization_level: z.ZodOptional<z.ZodString>;
|
|
326
375
|
}, z.core.$strip>>;
|
|
@@ -547,6 +596,62 @@ declare const ToolDefinitionSchema: z.ZodObject<{
|
|
|
547
596
|
}, z.core.$strip>;
|
|
548
597
|
}, z.core.$strip>;
|
|
549
598
|
|
|
599
|
+
declare const UsageBucketSchema: z.ZodIntersection<z.ZodObject<{
|
|
600
|
+
request_count: z.ZodNumber;
|
|
601
|
+
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
602
|
+
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
603
|
+
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
604
|
+
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
605
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
606
|
+
from: z.ZodString;
|
|
607
|
+
until: z.ZodString;
|
|
608
|
+
partial: z.ZodOptional<z.ZodBoolean>;
|
|
609
|
+
}, z.core.$strip>>;
|
|
610
|
+
|
|
611
|
+
declare const UsageMetricsSchema: z.ZodObject<{
|
|
612
|
+
request_count: z.ZodNumber;
|
|
613
|
+
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
614
|
+
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
615
|
+
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
616
|
+
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
617
|
+
}, z.core.$strip>;
|
|
618
|
+
|
|
619
|
+
declare const UsageResponseSchema: z.ZodObject<{
|
|
620
|
+
range: z.ZodEnum<{
|
|
621
|
+
"24h": "24h";
|
|
622
|
+
"7d": "7d";
|
|
623
|
+
"30d": "30d";
|
|
624
|
+
}>;
|
|
625
|
+
scope: z.ZodEnum<{
|
|
626
|
+
self: "self";
|
|
627
|
+
team: "team";
|
|
628
|
+
}>;
|
|
629
|
+
granularity: z.ZodEnum<{
|
|
630
|
+
hour: "hour";
|
|
631
|
+
day: "day";
|
|
632
|
+
}>;
|
|
633
|
+
from: z.ZodString;
|
|
634
|
+
until: z.ZodString;
|
|
635
|
+
totals: z.ZodObject<{
|
|
636
|
+
request_count: z.ZodNumber;
|
|
637
|
+
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
638
|
+
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
639
|
+
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
640
|
+
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
641
|
+
}, z.core.$strip>;
|
|
642
|
+
buckets: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
643
|
+
request_count: z.ZodNumber;
|
|
644
|
+
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
645
|
+
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
646
|
+
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
647
|
+
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
648
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
649
|
+
from: z.ZodString;
|
|
650
|
+
until: z.ZodString;
|
|
651
|
+
partial: z.ZodOptional<z.ZodBoolean>;
|
|
652
|
+
}, z.core.$strip>>>;
|
|
653
|
+
}, z.core.$strip>;
|
|
654
|
+
|
|
550
655
|
declare const VersionResponseSchema: z.ZodObject<{
|
|
551
656
|
version: z.ZodOptional<z.ZodString>;
|
|
552
657
|
}, z.core.$strip>;
|
|
@@ -580,4 +685,4 @@ declare const WebSearchResultSchema: z.ZodObject<{
|
|
|
580
685
|
content: z.ZodOptional<z.ZodString>;
|
|
581
686
|
}, z.core.$strip>;
|
|
582
687
|
|
|
583
|
-
export { ChatMessageSchema, ChatRequestSchema, ChatResponseSchema, ChatStreamEventSchema, CopyRequestSchema, CreateRequestSchema, DeleteRequestSchema, EmbedRequestSchema, EmbedResponseSchema, ErrorResponseSchema, GenerateRequestSchema, GenerateResponseSchema, GenerateStreamEventSchema, ListResponseSchema, LogprobSchema, ModelOptionsSchema, ModelSummarySchema, PsResponseSchema, PsSchema, PullRequestSchema, PushRequestSchema, ShowRequestSchema, ShowResponseSchema, StatusEventSchema, StatusResponseSchema, SystemOneChoiceAnswerSchema, SystemOneChoiceQuestionSchema, SystemOneConfidenceSchema, SystemOneContentSchema, SystemOneNoulAnswerSchema, SystemOneNoulQuestionSchema, SystemOneProbabilitiesSchema, SystemOneRequestSchema, SystemOneResponseSchema, SystemOneScoreAnswerSchema, SystemOneScoreQuestionSchema, ThinkValueSchema, ThinkingSchema, TokenLogprobSchema, ToolCallSchema, ToolDefinitionSchema, VersionResponseSchema, WebFetchRequestSchema, WebFetchResponseSchema, WebSearchRequestSchema, WebSearchResponseSchema, WebSearchResultSchema };
|
|
688
|
+
export { BalanceResponseSchema, ChatMessageSchema, ChatRequestSchema, ChatResponseSchema, ChatStreamEventSchema, CopyRequestSchema, CreateRequestSchema, DeleteRequestSchema, EmbedRequestSchema, EmbedResponseSchema, ErrorResponseSchema, GenerateRequestSchema, GenerateResponseSchema, GenerateStreamEventSchema, IncludedBalanceSchema, LegacyBalanceLimitSchema, LegacyIncludedBalanceSchema, ListResponseSchema, LogprobSchema, ModelOptionsSchema, ModelSummarySchema, PsResponseSchema, PsSchema, PullRequestSchema, PushRequestSchema, ShowRequestSchema, ShowResponseSchema, StatusEventSchema, StatusResponseSchema, SystemOneChoiceAnswerSchema, SystemOneChoiceQuestionSchema, SystemOneConfidenceSchema, SystemOneContentSchema, SystemOneNoulAnswerSchema, SystemOneNoulQuestionSchema, SystemOneProbabilitiesSchema, SystemOneRequestSchema, SystemOneResponseSchema, SystemOneScoreAnswerSchema, SystemOneScoreQuestionSchema, ThinkValueSchema, ThinkingSchema, TokenLogprobSchema, ToolCallSchema, ToolDefinitionSchema, UsageBucketSchema, UsageMetricsSchema, UsageResponseSchema, VersionResponseSchema, WebFetchRequestSchema, WebFetchResponseSchema, WebSearchRequestSchema, WebSearchResponseSchema, WebSearchResultSchema };
|
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
+
declare const BalanceResponseSchema: z.ZodObject<{
|
|
4
|
+
included: z.ZodUnion<readonly [z.ZodObject<{
|
|
5
|
+
balance_usd: z.ZodNumber;
|
|
6
|
+
allowance_usd: z.ZodNumber;
|
|
7
|
+
period: z.ZodObject<{
|
|
8
|
+
from: z.ZodString;
|
|
9
|
+
until: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12
|
+
session: z.ZodObject<{
|
|
13
|
+
remaining_percent: z.ZodNumber;
|
|
14
|
+
resets_at: z.ZodString;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
weekly: z.ZodObject<{
|
|
17
|
+
remaining_percent: z.ZodNumber;
|
|
18
|
+
resets_at: z.ZodString;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
}, z.core.$strip>]>;
|
|
21
|
+
purchased: z.ZodObject<{
|
|
22
|
+
balance_usd: z.ZodNumber;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
|
|
3
26
|
declare const ChatMessageSchema: z.ZodObject<{
|
|
4
27
|
role: z.ZodEnum<{
|
|
5
28
|
system: "system";
|
|
@@ -161,6 +184,7 @@ declare const CreateRequestSchema: z.ZodObject<{
|
|
|
161
184
|
quantize: z.ZodOptional<z.ZodString>;
|
|
162
185
|
draft_quantize: z.ZodOptional<z.ZodString>;
|
|
163
186
|
requires: z.ZodOptional<z.ZodString>;
|
|
187
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
164
188
|
stream: z.ZodOptional<z.ZodBoolean>;
|
|
165
189
|
}, z.core.$strip>;
|
|
166
190
|
|
|
@@ -265,6 +289,31 @@ declare const GenerateStreamEventSchema: z.ZodObject<{
|
|
|
265
289
|
eval_duration: z.ZodOptional<z.ZodNumber>;
|
|
266
290
|
}, z.core.$strip>;
|
|
267
291
|
|
|
292
|
+
declare const IncludedBalanceSchema: z.ZodObject<{
|
|
293
|
+
balance_usd: z.ZodNumber;
|
|
294
|
+
allowance_usd: z.ZodNumber;
|
|
295
|
+
period: z.ZodObject<{
|
|
296
|
+
from: z.ZodString;
|
|
297
|
+
until: z.ZodString;
|
|
298
|
+
}, z.core.$strip>;
|
|
299
|
+
}, z.core.$strip>;
|
|
300
|
+
|
|
301
|
+
declare const LegacyBalanceLimitSchema: z.ZodObject<{
|
|
302
|
+
remaining_percent: z.ZodNumber;
|
|
303
|
+
resets_at: z.ZodString;
|
|
304
|
+
}, z.core.$strip>;
|
|
305
|
+
|
|
306
|
+
declare const LegacyIncludedBalanceSchema: z.ZodObject<{
|
|
307
|
+
session: z.ZodObject<{
|
|
308
|
+
remaining_percent: z.ZodNumber;
|
|
309
|
+
resets_at: z.ZodString;
|
|
310
|
+
}, z.core.$strip>;
|
|
311
|
+
weekly: z.ZodObject<{
|
|
312
|
+
remaining_percent: z.ZodNumber;
|
|
313
|
+
resets_at: z.ZodString;
|
|
314
|
+
}, z.core.$strip>;
|
|
315
|
+
}, z.core.$strip>;
|
|
316
|
+
|
|
268
317
|
declare const ListResponseSchema: z.ZodObject<{
|
|
269
318
|
models: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
270
319
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -277,7 +326,7 @@ declare const ListResponseSchema: z.ZodObject<{
|
|
|
277
326
|
details: z.ZodOptional<z.ZodObject<{
|
|
278
327
|
format: z.ZodOptional<z.ZodString>;
|
|
279
328
|
family: z.ZodOptional<z.ZodString>;
|
|
280
|
-
families: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
329
|
+
families: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodNull]>>;
|
|
281
330
|
parameter_size: z.ZodOptional<z.ZodString>;
|
|
282
331
|
quantization_level: z.ZodOptional<z.ZodString>;
|
|
283
332
|
}, z.core.$strip>>;
|
|
@@ -320,7 +369,7 @@ declare const ModelSummarySchema: z.ZodObject<{
|
|
|
320
369
|
details: z.ZodOptional<z.ZodObject<{
|
|
321
370
|
format: z.ZodOptional<z.ZodString>;
|
|
322
371
|
family: z.ZodOptional<z.ZodString>;
|
|
323
|
-
families: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
372
|
+
families: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodNull]>>;
|
|
324
373
|
parameter_size: z.ZodOptional<z.ZodString>;
|
|
325
374
|
quantization_level: z.ZodOptional<z.ZodString>;
|
|
326
375
|
}, z.core.$strip>>;
|
|
@@ -547,6 +596,62 @@ declare const ToolDefinitionSchema: z.ZodObject<{
|
|
|
547
596
|
}, z.core.$strip>;
|
|
548
597
|
}, z.core.$strip>;
|
|
549
598
|
|
|
599
|
+
declare const UsageBucketSchema: z.ZodIntersection<z.ZodObject<{
|
|
600
|
+
request_count: z.ZodNumber;
|
|
601
|
+
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
602
|
+
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
603
|
+
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
604
|
+
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
605
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
606
|
+
from: z.ZodString;
|
|
607
|
+
until: z.ZodString;
|
|
608
|
+
partial: z.ZodOptional<z.ZodBoolean>;
|
|
609
|
+
}, z.core.$strip>>;
|
|
610
|
+
|
|
611
|
+
declare const UsageMetricsSchema: z.ZodObject<{
|
|
612
|
+
request_count: z.ZodNumber;
|
|
613
|
+
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
614
|
+
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
615
|
+
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
616
|
+
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
617
|
+
}, z.core.$strip>;
|
|
618
|
+
|
|
619
|
+
declare const UsageResponseSchema: z.ZodObject<{
|
|
620
|
+
range: z.ZodEnum<{
|
|
621
|
+
"24h": "24h";
|
|
622
|
+
"7d": "7d";
|
|
623
|
+
"30d": "30d";
|
|
624
|
+
}>;
|
|
625
|
+
scope: z.ZodEnum<{
|
|
626
|
+
self: "self";
|
|
627
|
+
team: "team";
|
|
628
|
+
}>;
|
|
629
|
+
granularity: z.ZodEnum<{
|
|
630
|
+
hour: "hour";
|
|
631
|
+
day: "day";
|
|
632
|
+
}>;
|
|
633
|
+
from: z.ZodString;
|
|
634
|
+
until: z.ZodString;
|
|
635
|
+
totals: z.ZodObject<{
|
|
636
|
+
request_count: z.ZodNumber;
|
|
637
|
+
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
638
|
+
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
639
|
+
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
640
|
+
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
641
|
+
}, z.core.$strip>;
|
|
642
|
+
buckets: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
643
|
+
request_count: z.ZodNumber;
|
|
644
|
+
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
645
|
+
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
646
|
+
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
647
|
+
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
648
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
649
|
+
from: z.ZodString;
|
|
650
|
+
until: z.ZodString;
|
|
651
|
+
partial: z.ZodOptional<z.ZodBoolean>;
|
|
652
|
+
}, z.core.$strip>>>;
|
|
653
|
+
}, z.core.$strip>;
|
|
654
|
+
|
|
550
655
|
declare const VersionResponseSchema: z.ZodObject<{
|
|
551
656
|
version: z.ZodOptional<z.ZodString>;
|
|
552
657
|
}, z.core.$strip>;
|
|
@@ -580,4 +685,4 @@ declare const WebSearchResultSchema: z.ZodObject<{
|
|
|
580
685
|
content: z.ZodOptional<z.ZodString>;
|
|
581
686
|
}, z.core.$strip>;
|
|
582
687
|
|
|
583
|
-
export { ChatMessageSchema, ChatRequestSchema, ChatResponseSchema, ChatStreamEventSchema, CopyRequestSchema, CreateRequestSchema, DeleteRequestSchema, EmbedRequestSchema, EmbedResponseSchema, ErrorResponseSchema, GenerateRequestSchema, GenerateResponseSchema, GenerateStreamEventSchema, ListResponseSchema, LogprobSchema, ModelOptionsSchema, ModelSummarySchema, PsResponseSchema, PsSchema, PullRequestSchema, PushRequestSchema, ShowRequestSchema, ShowResponseSchema, StatusEventSchema, StatusResponseSchema, SystemOneChoiceAnswerSchema, SystemOneChoiceQuestionSchema, SystemOneConfidenceSchema, SystemOneContentSchema, SystemOneNoulAnswerSchema, SystemOneNoulQuestionSchema, SystemOneProbabilitiesSchema, SystemOneRequestSchema, SystemOneResponseSchema, SystemOneScoreAnswerSchema, SystemOneScoreQuestionSchema, ThinkValueSchema, ThinkingSchema, TokenLogprobSchema, ToolCallSchema, ToolDefinitionSchema, VersionResponseSchema, WebFetchRequestSchema, WebFetchResponseSchema, WebSearchRequestSchema, WebSearchResponseSchema, WebSearchResultSchema };
|
|
688
|
+
export { BalanceResponseSchema, ChatMessageSchema, ChatRequestSchema, ChatResponseSchema, ChatStreamEventSchema, CopyRequestSchema, CreateRequestSchema, DeleteRequestSchema, EmbedRequestSchema, EmbedResponseSchema, ErrorResponseSchema, GenerateRequestSchema, GenerateResponseSchema, GenerateStreamEventSchema, IncludedBalanceSchema, LegacyBalanceLimitSchema, LegacyIncludedBalanceSchema, ListResponseSchema, LogprobSchema, ModelOptionsSchema, ModelSummarySchema, PsResponseSchema, PsSchema, PullRequestSchema, PushRequestSchema, ShowRequestSchema, ShowResponseSchema, StatusEventSchema, StatusResponseSchema, SystemOneChoiceAnswerSchema, SystemOneChoiceQuestionSchema, SystemOneConfidenceSchema, SystemOneContentSchema, SystemOneNoulAnswerSchema, SystemOneNoulQuestionSchema, SystemOneProbabilitiesSchema, SystemOneRequestSchema, SystemOneResponseSchema, SystemOneScoreAnswerSchema, SystemOneScoreQuestionSchema, ThinkValueSchema, ThinkingSchema, TokenLogprobSchema, ToolCallSchema, ToolDefinitionSchema, UsageBucketSchema, UsageMetricsSchema, UsageResponseSchema, VersionResponseSchema, WebFetchRequestSchema, WebFetchResponseSchema, WebSearchRequestSchema, WebSearchResponseSchema, WebSearchResultSchema };
|
|
@@ -1,6 +1,32 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
-
// src/generated/models/
|
|
3
|
+
// src/generated/models/BalanceResponse.schema.ts
|
|
4
|
+
var IncludedBalanceSchema = z.object({
|
|
5
|
+
balance_usd: z.number(),
|
|
6
|
+
allowance_usd: z.number(),
|
|
7
|
+
period: z.object({
|
|
8
|
+
from: z.string(),
|
|
9
|
+
until: z.string()
|
|
10
|
+
})
|
|
11
|
+
});
|
|
12
|
+
var LegacyBalanceLimitSchema = z.object({
|
|
13
|
+
remaining_percent: z.number().min(0).max(100),
|
|
14
|
+
resets_at: z.string()
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
// src/generated/models/LegacyIncludedBalance.schema.ts
|
|
18
|
+
var LegacyIncludedBalanceSchema = z.object({
|
|
19
|
+
session: LegacyBalanceLimitSchema,
|
|
20
|
+
weekly: LegacyBalanceLimitSchema
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
// src/generated/models/BalanceResponse.schema.ts
|
|
24
|
+
var BalanceResponseSchema = z.object({
|
|
25
|
+
included: z.union([IncludedBalanceSchema, LegacyIncludedBalanceSchema]),
|
|
26
|
+
purchased: z.object({
|
|
27
|
+
balance_usd: z.number()
|
|
28
|
+
})
|
|
29
|
+
});
|
|
4
30
|
var ToolCallSchema = z.object({
|
|
5
31
|
function: z.object({
|
|
6
32
|
name: z.string(),
|
|
@@ -116,6 +142,7 @@ var CreateRequestSchema = z.object({
|
|
|
116
142
|
quantize: z.string().optional(),
|
|
117
143
|
draft_quantize: z.string().optional(),
|
|
118
144
|
requires: z.string().optional(),
|
|
145
|
+
capabilities: z.array(z.string()).optional(),
|
|
119
146
|
stream: z.boolean().optional()
|
|
120
147
|
});
|
|
121
148
|
var DeleteRequestSchema = z.object({
|
|
@@ -196,7 +223,7 @@ var ModelSummarySchema = z.object({
|
|
|
196
223
|
details: z.object({
|
|
197
224
|
format: z.string().optional(),
|
|
198
225
|
family: z.string().optional(),
|
|
199
|
-
families: z.array(z.string()).optional(),
|
|
226
|
+
families: z.union([z.array(z.string()), z.null()]).optional(),
|
|
200
227
|
parameter_size: z.string().optional(),
|
|
201
228
|
quantization_level: z.string().optional()
|
|
202
229
|
}).optional()
|
|
@@ -337,6 +364,32 @@ var SystemOneResponseSchema = z.object({
|
|
|
337
364
|
output_tokens: z.number().min(0)
|
|
338
365
|
})
|
|
339
366
|
});
|
|
367
|
+
var UsageMetricsSchema = z.object({
|
|
368
|
+
request_count: z.number().min(0),
|
|
369
|
+
usage_usd: z.number().optional(),
|
|
370
|
+
input_tokens: z.number().optional(),
|
|
371
|
+
cached_input_tokens: z.number().optional(),
|
|
372
|
+
output_tokens: z.number().optional()
|
|
373
|
+
});
|
|
374
|
+
|
|
375
|
+
// src/generated/models/UsageBucket.schema.ts
|
|
376
|
+
var UsageBucketSchema = z.intersection(
|
|
377
|
+
UsageMetricsSchema,
|
|
378
|
+
z.object({
|
|
379
|
+
from: z.string(),
|
|
380
|
+
until: z.string(),
|
|
381
|
+
partial: z.boolean().optional()
|
|
382
|
+
})
|
|
383
|
+
);
|
|
384
|
+
var UsageResponseSchema = z.object({
|
|
385
|
+
range: z.enum(["24h", "7d", "30d"]),
|
|
386
|
+
scope: z.enum(["self", "team"]),
|
|
387
|
+
granularity: z.enum(["hour", "day"]),
|
|
388
|
+
from: z.string(),
|
|
389
|
+
until: z.string(),
|
|
390
|
+
totals: UsageMetricsSchema,
|
|
391
|
+
buckets: z.array(UsageBucketSchema)
|
|
392
|
+
});
|
|
340
393
|
var VersionResponseSchema = z.object({
|
|
341
394
|
version: z.string().optional()
|
|
342
395
|
});
|
|
@@ -363,6 +416,6 @@ var WebSearchResponseSchema = z.object({
|
|
|
363
416
|
results: z.array(WebSearchResultSchema).optional()
|
|
364
417
|
});
|
|
365
418
|
|
|
366
|
-
export { ChatMessageSchema, ChatRequestSchema, ChatResponseSchema, ChatStreamEventSchema, CopyRequestSchema, CreateRequestSchema, DeleteRequestSchema, EmbedRequestSchema, EmbedResponseSchema, ErrorResponseSchema, GenerateRequestSchema, GenerateResponseSchema, GenerateStreamEventSchema, ListResponseSchema, LogprobSchema, ModelOptionsSchema, ModelSummarySchema, PsResponseSchema, PsSchema, PullRequestSchema, PushRequestSchema, ShowRequestSchema, ShowResponseSchema, StatusEventSchema, StatusResponseSchema, SystemOneChoiceAnswerSchema, SystemOneChoiceQuestionSchema, SystemOneConfidenceSchema, SystemOneContentSchema, SystemOneNoulAnswerSchema, SystemOneNoulQuestionSchema, SystemOneProbabilitiesSchema, SystemOneRequestSchema, SystemOneResponseSchema, SystemOneScoreAnswerSchema, SystemOneScoreQuestionSchema, ThinkValueSchema, ThinkingSchema, TokenLogprobSchema, ToolCallSchema, ToolDefinitionSchema, VersionResponseSchema, WebFetchRequestSchema, WebFetchResponseSchema, WebSearchRequestSchema, WebSearchResponseSchema, WebSearchResultSchema };
|
|
419
|
+
export { BalanceResponseSchema, ChatMessageSchema, ChatRequestSchema, ChatResponseSchema, ChatStreamEventSchema, CopyRequestSchema, CreateRequestSchema, DeleteRequestSchema, EmbedRequestSchema, EmbedResponseSchema, ErrorResponseSchema, GenerateRequestSchema, GenerateResponseSchema, GenerateStreamEventSchema, IncludedBalanceSchema, LegacyBalanceLimitSchema, LegacyIncludedBalanceSchema, ListResponseSchema, LogprobSchema, ModelOptionsSchema, ModelSummarySchema, PsResponseSchema, PsSchema, PullRequestSchema, PushRequestSchema, ShowRequestSchema, ShowResponseSchema, StatusEventSchema, StatusResponseSchema, SystemOneChoiceAnswerSchema, SystemOneChoiceQuestionSchema, SystemOneConfidenceSchema, SystemOneContentSchema, SystemOneNoulAnswerSchema, SystemOneNoulQuestionSchema, SystemOneProbabilitiesSchema, SystemOneRequestSchema, SystemOneResponseSchema, SystemOneScoreAnswerSchema, SystemOneScoreQuestionSchema, ThinkValueSchema, ThinkingSchema, TokenLogprobSchema, ToolCallSchema, ToolDefinitionSchema, UsageBucketSchema, UsageMetricsSchema, UsageResponseSchema, VersionResponseSchema, WebFetchRequestSchema, WebFetchResponseSchema, WebSearchRequestSchema, WebSearchResponseSchema, WebSearchResultSchema };
|
|
367
420
|
//# sourceMappingURL=generated-models-schemas.js.map
|
|
368
421
|
//# sourceMappingURL=generated-models-schemas.js.map
|