@nemesis-oss/ollama-sdk 1.19.0 → 1.20.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 +46 -0
- package/README.md +8 -8
- package/dist/{anthropic-CAvwqIjx.d.ts → anthropic-BFOC6eI7.d.ts} +7 -1
- package/dist/{anthropic-DIPnBwlf.d.cts → anthropic-C2-qaxjI.d.cts} +7 -1
- package/dist/{compose-C4QxEZOS.d.cts → compose-BXXgHmrS.d.cts} +1 -1
- package/dist/{compose-75UFDzOO.d.ts → compose-DaG83yId.d.ts} +1 -1
- package/dist/generated-api.cjs +1 -1
- package/dist/generated-api.cjs.map +1 -1
- package/dist/generated-api.d.cts +7 -7
- package/dist/generated-api.d.ts +7 -7
- package/dist/generated-api.js +1 -1
- package/dist/generated-api.js.map +1 -1
- package/dist/generated-models-schemas.cjs +25 -2
- package/dist/generated-models-schemas.cjs.map +1 -1
- package/dist/generated-models-schemas.d.cts +97 -5
- package/dist/generated-models-schemas.d.ts +97 -5
- package/dist/generated-models-schemas.js +24 -3
- package/dist/generated-models-schemas.js.map +1 -1
- package/dist/generated-runtime.cjs +23 -2
- 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 +23 -2
- package/dist/generated-runtime.js.map +1 -1
- package/dist/index.cjs +227 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +169 -46
- package/dist/index.d.ts +169 -46
- package/dist/index.js +222 -29
- package/dist/index.js.map +1 -1
- package/dist/mcp/tools.json +1 -1
- package/dist/mcp-generated.cjs +1 -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 +1 -1
- package/dist/mcp-generated.js.map +1 -1
- package/dist/{runtime-C28YEAHC.d.cts → runtime-CpO3H6yy.d.cts} +55 -2
- package/dist/{runtime-DYCxYGG-.d.ts → runtime-DPSrPwAa.d.ts} +55 -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-Y3u0FtdN.d.cts → types-CnsZ24tm.d.cts} +17 -1
- package/dist/{types-Y3u0FtdN.d.ts → types-CnsZ24tm.d.ts} +17 -1
- package/package.json +1 -1
|
@@ -426,6 +426,9 @@ declare const ShowResponseSchema: z.ZodObject<{
|
|
|
426
426
|
modified_at: z.ZodOptional<z.ZodString>;
|
|
427
427
|
details: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
428
428
|
template: z.ZodOptional<z.ZodString>;
|
|
429
|
+
renderer: z.ZodOptional<z.ZodString>;
|
|
430
|
+
parser: z.ZodOptional<z.ZodString>;
|
|
431
|
+
template_source: z.ZodOptional<z.ZodString>;
|
|
429
432
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
430
433
|
model_info: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
431
434
|
}, z.core.$strip>;
|
|
@@ -596,18 +599,45 @@ declare const ToolDefinitionSchema: z.ZodObject<{
|
|
|
596
599
|
}, z.core.$strip>;
|
|
597
600
|
}, z.core.$strip>;
|
|
598
601
|
|
|
599
|
-
declare const UsageBucketSchema: z.ZodIntersection<z.ZodObject<{
|
|
602
|
+
declare const UsageBucketSchema: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
600
603
|
request_count: z.ZodNumber;
|
|
601
604
|
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
602
605
|
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
603
606
|
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
604
607
|
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
605
608
|
}, z.core.$strip>, z.ZodObject<{
|
|
609
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
610
|
+
request_count: z.ZodNumber;
|
|
611
|
+
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
612
|
+
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
613
|
+
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
614
|
+
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
615
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
616
|
+
model: z.ZodString;
|
|
617
|
+
}, z.core.$strip>>>>;
|
|
618
|
+
remainder: z.ZodOptional<z.ZodObject<{
|
|
619
|
+
request_count: z.ZodNumber;
|
|
620
|
+
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
621
|
+
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
622
|
+
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
623
|
+
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
624
|
+
}, z.core.$strip>>;
|
|
625
|
+
}, z.core.$strip>>, z.ZodObject<{
|
|
606
626
|
from: z.ZodString;
|
|
607
627
|
until: z.ZodString;
|
|
608
628
|
partial: z.ZodOptional<z.ZodBoolean>;
|
|
609
629
|
}, z.core.$strip>>;
|
|
610
630
|
|
|
631
|
+
declare const UsageGroupSchema: z.ZodIntersection<z.ZodObject<{
|
|
632
|
+
request_count: z.ZodNumber;
|
|
633
|
+
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
634
|
+
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
635
|
+
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
636
|
+
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
637
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
638
|
+
model: z.ZodString;
|
|
639
|
+
}, z.core.$strip>>;
|
|
640
|
+
|
|
611
641
|
declare const UsageMetricsSchema: z.ZodObject<{
|
|
612
642
|
request_count: z.ZodNumber;
|
|
613
643
|
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
@@ -630,28 +660,90 @@ declare const UsageResponseSchema: z.ZodObject<{
|
|
|
630
660
|
hour: "hour";
|
|
631
661
|
day: "day";
|
|
632
662
|
}>;
|
|
663
|
+
group_by: z.ZodOptional<z.ZodEnum<{
|
|
664
|
+
model: "model";
|
|
665
|
+
}>>;
|
|
633
666
|
from: z.ZodString;
|
|
634
667
|
until: z.ZodString;
|
|
635
|
-
totals: z.ZodObject<{
|
|
668
|
+
totals: z.ZodIntersection<z.ZodObject<{
|
|
636
669
|
request_count: z.ZodNumber;
|
|
637
670
|
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
638
671
|
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
639
672
|
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
640
673
|
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
641
|
-
}, z.core.$strip
|
|
642
|
-
|
|
674
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
675
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
676
|
+
request_count: z.ZodNumber;
|
|
677
|
+
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
678
|
+
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
679
|
+
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
680
|
+
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
681
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
682
|
+
model: z.ZodString;
|
|
683
|
+
}, z.core.$strip>>>>;
|
|
684
|
+
remainder: z.ZodOptional<z.ZodObject<{
|
|
685
|
+
request_count: z.ZodNumber;
|
|
686
|
+
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
687
|
+
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
688
|
+
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
689
|
+
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
690
|
+
}, z.core.$strip>>;
|
|
691
|
+
}, z.core.$strip>>;
|
|
692
|
+
buckets: z.ZodArray<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
643
693
|
request_count: z.ZodNumber;
|
|
644
694
|
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
645
695
|
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
646
696
|
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
647
697
|
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
648
698
|
}, z.core.$strip>, z.ZodObject<{
|
|
699
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
700
|
+
request_count: z.ZodNumber;
|
|
701
|
+
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
702
|
+
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
703
|
+
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
704
|
+
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
705
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
706
|
+
model: z.ZodString;
|
|
707
|
+
}, z.core.$strip>>>>;
|
|
708
|
+
remainder: z.ZodOptional<z.ZodObject<{
|
|
709
|
+
request_count: z.ZodNumber;
|
|
710
|
+
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
711
|
+
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
712
|
+
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
713
|
+
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
714
|
+
}, z.core.$strip>>;
|
|
715
|
+
}, z.core.$strip>>, z.ZodObject<{
|
|
649
716
|
from: z.ZodString;
|
|
650
717
|
until: z.ZodString;
|
|
651
718
|
partial: z.ZodOptional<z.ZodBoolean>;
|
|
652
719
|
}, z.core.$strip>>>;
|
|
653
720
|
}, z.core.$strip>;
|
|
654
721
|
|
|
722
|
+
declare const UsageSummarySchema: z.ZodIntersection<z.ZodObject<{
|
|
723
|
+
request_count: z.ZodNumber;
|
|
724
|
+
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
725
|
+
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
726
|
+
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
727
|
+
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
728
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
729
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
730
|
+
request_count: z.ZodNumber;
|
|
731
|
+
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
732
|
+
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
733
|
+
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
734
|
+
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
735
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
736
|
+
model: z.ZodString;
|
|
737
|
+
}, z.core.$strip>>>>;
|
|
738
|
+
remainder: z.ZodOptional<z.ZodObject<{
|
|
739
|
+
request_count: z.ZodNumber;
|
|
740
|
+
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
741
|
+
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
742
|
+
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
743
|
+
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
744
|
+
}, z.core.$strip>>;
|
|
745
|
+
}, z.core.$strip>>;
|
|
746
|
+
|
|
655
747
|
declare const VersionResponseSchema: z.ZodObject<{
|
|
656
748
|
version: z.ZodOptional<z.ZodString>;
|
|
657
749
|
}, z.core.$strip>;
|
|
@@ -685,4 +777,4 @@ declare const WebSearchResultSchema: z.ZodObject<{
|
|
|
685
777
|
content: z.ZodOptional<z.ZodString>;
|
|
686
778
|
}, z.core.$strip>;
|
|
687
779
|
|
|
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 };
|
|
780
|
+
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, UsageGroupSchema, UsageMetricsSchema, UsageResponseSchema, UsageSummarySchema, VersionResponseSchema, WebFetchRequestSchema, WebFetchResponseSchema, WebSearchRequestSchema, WebSearchResponseSchema, WebSearchResultSchema };
|
|
@@ -426,6 +426,9 @@ declare const ShowResponseSchema: z.ZodObject<{
|
|
|
426
426
|
modified_at: z.ZodOptional<z.ZodString>;
|
|
427
427
|
details: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
428
428
|
template: z.ZodOptional<z.ZodString>;
|
|
429
|
+
renderer: z.ZodOptional<z.ZodString>;
|
|
430
|
+
parser: z.ZodOptional<z.ZodString>;
|
|
431
|
+
template_source: z.ZodOptional<z.ZodString>;
|
|
429
432
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
430
433
|
model_info: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
431
434
|
}, z.core.$strip>;
|
|
@@ -596,18 +599,45 @@ declare const ToolDefinitionSchema: z.ZodObject<{
|
|
|
596
599
|
}, z.core.$strip>;
|
|
597
600
|
}, z.core.$strip>;
|
|
598
601
|
|
|
599
|
-
declare const UsageBucketSchema: z.ZodIntersection<z.ZodObject<{
|
|
602
|
+
declare const UsageBucketSchema: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
600
603
|
request_count: z.ZodNumber;
|
|
601
604
|
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
602
605
|
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
603
606
|
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
604
607
|
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
605
608
|
}, z.core.$strip>, z.ZodObject<{
|
|
609
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
610
|
+
request_count: z.ZodNumber;
|
|
611
|
+
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
612
|
+
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
613
|
+
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
614
|
+
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
615
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
616
|
+
model: z.ZodString;
|
|
617
|
+
}, z.core.$strip>>>>;
|
|
618
|
+
remainder: z.ZodOptional<z.ZodObject<{
|
|
619
|
+
request_count: z.ZodNumber;
|
|
620
|
+
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
621
|
+
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
622
|
+
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
623
|
+
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
624
|
+
}, z.core.$strip>>;
|
|
625
|
+
}, z.core.$strip>>, z.ZodObject<{
|
|
606
626
|
from: z.ZodString;
|
|
607
627
|
until: z.ZodString;
|
|
608
628
|
partial: z.ZodOptional<z.ZodBoolean>;
|
|
609
629
|
}, z.core.$strip>>;
|
|
610
630
|
|
|
631
|
+
declare const UsageGroupSchema: z.ZodIntersection<z.ZodObject<{
|
|
632
|
+
request_count: z.ZodNumber;
|
|
633
|
+
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
634
|
+
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
635
|
+
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
636
|
+
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
637
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
638
|
+
model: z.ZodString;
|
|
639
|
+
}, z.core.$strip>>;
|
|
640
|
+
|
|
611
641
|
declare const UsageMetricsSchema: z.ZodObject<{
|
|
612
642
|
request_count: z.ZodNumber;
|
|
613
643
|
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
@@ -630,28 +660,90 @@ declare const UsageResponseSchema: z.ZodObject<{
|
|
|
630
660
|
hour: "hour";
|
|
631
661
|
day: "day";
|
|
632
662
|
}>;
|
|
663
|
+
group_by: z.ZodOptional<z.ZodEnum<{
|
|
664
|
+
model: "model";
|
|
665
|
+
}>>;
|
|
633
666
|
from: z.ZodString;
|
|
634
667
|
until: z.ZodString;
|
|
635
|
-
totals: z.ZodObject<{
|
|
668
|
+
totals: z.ZodIntersection<z.ZodObject<{
|
|
636
669
|
request_count: z.ZodNumber;
|
|
637
670
|
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
638
671
|
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
639
672
|
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
640
673
|
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
641
|
-
}, z.core.$strip
|
|
642
|
-
|
|
674
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
675
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
676
|
+
request_count: z.ZodNumber;
|
|
677
|
+
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
678
|
+
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
679
|
+
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
680
|
+
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
681
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
682
|
+
model: z.ZodString;
|
|
683
|
+
}, z.core.$strip>>>>;
|
|
684
|
+
remainder: z.ZodOptional<z.ZodObject<{
|
|
685
|
+
request_count: z.ZodNumber;
|
|
686
|
+
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
687
|
+
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
688
|
+
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
689
|
+
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
690
|
+
}, z.core.$strip>>;
|
|
691
|
+
}, z.core.$strip>>;
|
|
692
|
+
buckets: z.ZodArray<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
643
693
|
request_count: z.ZodNumber;
|
|
644
694
|
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
645
695
|
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
646
696
|
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
647
697
|
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
648
698
|
}, z.core.$strip>, z.ZodObject<{
|
|
699
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
700
|
+
request_count: z.ZodNumber;
|
|
701
|
+
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
702
|
+
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
703
|
+
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
704
|
+
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
705
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
706
|
+
model: z.ZodString;
|
|
707
|
+
}, z.core.$strip>>>>;
|
|
708
|
+
remainder: z.ZodOptional<z.ZodObject<{
|
|
709
|
+
request_count: z.ZodNumber;
|
|
710
|
+
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
711
|
+
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
712
|
+
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
713
|
+
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
714
|
+
}, z.core.$strip>>;
|
|
715
|
+
}, z.core.$strip>>, z.ZodObject<{
|
|
649
716
|
from: z.ZodString;
|
|
650
717
|
until: z.ZodString;
|
|
651
718
|
partial: z.ZodOptional<z.ZodBoolean>;
|
|
652
719
|
}, z.core.$strip>>>;
|
|
653
720
|
}, z.core.$strip>;
|
|
654
721
|
|
|
722
|
+
declare const UsageSummarySchema: z.ZodIntersection<z.ZodObject<{
|
|
723
|
+
request_count: z.ZodNumber;
|
|
724
|
+
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
725
|
+
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
726
|
+
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
727
|
+
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
728
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
729
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
730
|
+
request_count: z.ZodNumber;
|
|
731
|
+
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
732
|
+
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
733
|
+
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
734
|
+
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
735
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
736
|
+
model: z.ZodString;
|
|
737
|
+
}, z.core.$strip>>>>;
|
|
738
|
+
remainder: z.ZodOptional<z.ZodObject<{
|
|
739
|
+
request_count: z.ZodNumber;
|
|
740
|
+
usage_usd: z.ZodOptional<z.ZodNumber>;
|
|
741
|
+
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
742
|
+
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
743
|
+
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
744
|
+
}, z.core.$strip>>;
|
|
745
|
+
}, z.core.$strip>>;
|
|
746
|
+
|
|
655
747
|
declare const VersionResponseSchema: z.ZodObject<{
|
|
656
748
|
version: z.ZodOptional<z.ZodString>;
|
|
657
749
|
}, z.core.$strip>;
|
|
@@ -685,4 +777,4 @@ declare const WebSearchResultSchema: z.ZodObject<{
|
|
|
685
777
|
content: z.ZodOptional<z.ZodString>;
|
|
686
778
|
}, z.core.$strip>;
|
|
687
779
|
|
|
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 };
|
|
780
|
+
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, UsageGroupSchema, UsageMetricsSchema, UsageResponseSchema, UsageSummarySchema, VersionResponseSchema, WebFetchRequestSchema, WebFetchResponseSchema, WebSearchRequestSchema, WebSearchResponseSchema, WebSearchResultSchema };
|
|
@@ -275,6 +275,9 @@ var ShowResponseSchema = z.object({
|
|
|
275
275
|
modified_at: z.string().optional(),
|
|
276
276
|
details: z.object({}).optional(),
|
|
277
277
|
template: z.string().optional(),
|
|
278
|
+
renderer: z.string().optional(),
|
|
279
|
+
parser: z.string().optional(),
|
|
280
|
+
template_source: z.string().optional(),
|
|
278
281
|
capabilities: z.array(z.string()).optional(),
|
|
279
282
|
model_info: z.object({}).optional()
|
|
280
283
|
});
|
|
@@ -372,9 +375,26 @@ var UsageMetricsSchema = z.object({
|
|
|
372
375
|
output_tokens: z.number().optional()
|
|
373
376
|
});
|
|
374
377
|
|
|
378
|
+
// src/generated/models/UsageGroup.schema.ts
|
|
379
|
+
var UsageGroupSchema = z.intersection(
|
|
380
|
+
UsageMetricsSchema,
|
|
381
|
+
z.object({
|
|
382
|
+
model: z.string()
|
|
383
|
+
})
|
|
384
|
+
);
|
|
385
|
+
|
|
386
|
+
// src/generated/models/UsageSummary.schema.ts
|
|
387
|
+
var UsageSummarySchema = z.intersection(
|
|
388
|
+
UsageMetricsSchema,
|
|
389
|
+
z.object({
|
|
390
|
+
groups: z.array(UsageGroupSchema).optional(),
|
|
391
|
+
remainder: UsageMetricsSchema.optional()
|
|
392
|
+
})
|
|
393
|
+
);
|
|
394
|
+
|
|
375
395
|
// src/generated/models/UsageBucket.schema.ts
|
|
376
396
|
var UsageBucketSchema = z.intersection(
|
|
377
|
-
|
|
397
|
+
UsageSummarySchema,
|
|
378
398
|
z.object({
|
|
379
399
|
from: z.string(),
|
|
380
400
|
until: z.string(),
|
|
@@ -385,9 +405,10 @@ var UsageResponseSchema = z.object({
|
|
|
385
405
|
range: z.enum(["24h", "7d", "30d"]),
|
|
386
406
|
scope: z.enum(["self", "team"]),
|
|
387
407
|
granularity: z.enum(["hour", "day"]),
|
|
408
|
+
group_by: z.enum(["model"]).optional(),
|
|
388
409
|
from: z.string(),
|
|
389
410
|
until: z.string(),
|
|
390
|
-
totals:
|
|
411
|
+
totals: UsageSummarySchema,
|
|
391
412
|
buckets: z.array(UsageBucketSchema)
|
|
392
413
|
});
|
|
393
414
|
var VersionResponseSchema = z.object({
|
|
@@ -416,6 +437,6 @@ var WebSearchResponseSchema = z.object({
|
|
|
416
437
|
results: z.array(WebSearchResultSchema).optional()
|
|
417
438
|
});
|
|
418
439
|
|
|
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 };
|
|
440
|
+
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, UsageGroupSchema, UsageMetricsSchema, UsageResponseSchema, UsageSummarySchema, VersionResponseSchema, WebFetchRequestSchema, WebFetchResponseSchema, WebSearchRequestSchema, WebSearchResponseSchema, WebSearchResultSchema };
|
|
420
441
|
//# sourceMappingURL=generated-models-schemas.js.map
|
|
421
442
|
//# sourceMappingURL=generated-models-schemas.js.map
|