@ottocode/api 0.1.277 → 0.1.279
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 +1 -0
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/schemas.gen.d.ts +315 -0
- package/dist/generated/schemas.gen.d.ts.map +1 -1
- package/dist/generated/schemas.gen.js +315 -0
- package/dist/generated/schemas.gen.js.map +1 -1
- package/dist/generated/sdk.gen.d.ts +9 -1
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/sdk.gen.js +20 -0
- package/dist/generated/sdk.gen.js.map +1 -1
- package/dist/generated/types.gen.d.ts +137 -0
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/generated/types.gen.js +14 -1
- package/dist/generated/types.gen.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAEA,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC"}
|
package/dist/generated/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;AAErD,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC"}
|
|
@@ -751,4 +751,319 @@ export declare const MCPServerSchema: {
|
|
|
751
751
|
};
|
|
752
752
|
readonly required: readonly ["name", "transport", "connected"];
|
|
753
753
|
};
|
|
754
|
+
export declare const UsageAuthBucketSchema: {
|
|
755
|
+
readonly type: "string";
|
|
756
|
+
readonly enum: readonly ["oauth", "api", "subscription"];
|
|
757
|
+
};
|
|
758
|
+
export declare const UsageAuthTypeSchema: {
|
|
759
|
+
readonly type: "string";
|
|
760
|
+
readonly enum: readonly ["oauth", "api", "wallet", "subscription", "unknown"];
|
|
761
|
+
};
|
|
762
|
+
export declare const UsageAuthAmountSchema: {
|
|
763
|
+
readonly type: "object";
|
|
764
|
+
readonly properties: {
|
|
765
|
+
readonly oauth: {
|
|
766
|
+
readonly type: "number";
|
|
767
|
+
};
|
|
768
|
+
readonly api: {
|
|
769
|
+
readonly type: "number";
|
|
770
|
+
};
|
|
771
|
+
readonly subscription: {
|
|
772
|
+
readonly type: "number";
|
|
773
|
+
};
|
|
774
|
+
};
|
|
775
|
+
readonly required: readonly ["oauth", "api", "subscription"];
|
|
776
|
+
};
|
|
777
|
+
export declare const UsageAuthCountSchema: {
|
|
778
|
+
readonly type: "object";
|
|
779
|
+
readonly properties: {
|
|
780
|
+
readonly oauth: {
|
|
781
|
+
readonly type: "integer";
|
|
782
|
+
};
|
|
783
|
+
readonly api: {
|
|
784
|
+
readonly type: "integer";
|
|
785
|
+
};
|
|
786
|
+
readonly subscription: {
|
|
787
|
+
readonly type: "integer";
|
|
788
|
+
};
|
|
789
|
+
};
|
|
790
|
+
readonly required: readonly ["oauth", "api", "subscription"];
|
|
791
|
+
};
|
|
792
|
+
export declare const UsageTotalsSchema: {
|
|
793
|
+
readonly type: "object";
|
|
794
|
+
readonly properties: {
|
|
795
|
+
readonly messages: {
|
|
796
|
+
readonly type: "integer";
|
|
797
|
+
};
|
|
798
|
+
readonly sessions: {
|
|
799
|
+
readonly type: "integer";
|
|
800
|
+
};
|
|
801
|
+
readonly inputTokens: {
|
|
802
|
+
readonly type: "integer";
|
|
803
|
+
};
|
|
804
|
+
readonly outputTokens: {
|
|
805
|
+
readonly type: "integer";
|
|
806
|
+
};
|
|
807
|
+
readonly cachedInputTokens: {
|
|
808
|
+
readonly type: "integer";
|
|
809
|
+
};
|
|
810
|
+
readonly cacheCreationInputTokens: {
|
|
811
|
+
readonly type: "integer";
|
|
812
|
+
};
|
|
813
|
+
readonly reasoningTokens: {
|
|
814
|
+
readonly type: "integer";
|
|
815
|
+
};
|
|
816
|
+
readonly costUsd: {
|
|
817
|
+
readonly type: "number";
|
|
818
|
+
};
|
|
819
|
+
readonly notionalCostUsd: {
|
|
820
|
+
readonly type: "number";
|
|
821
|
+
};
|
|
822
|
+
readonly savedUsd: {
|
|
823
|
+
readonly type: "number";
|
|
824
|
+
};
|
|
825
|
+
readonly costByAuth: {
|
|
826
|
+
readonly $ref: "#/components/schemas/UsageAuthAmount";
|
|
827
|
+
};
|
|
828
|
+
readonly messagesByAuth: {
|
|
829
|
+
readonly $ref: "#/components/schemas/UsageAuthCount";
|
|
830
|
+
};
|
|
831
|
+
};
|
|
832
|
+
readonly required: readonly ["messages", "sessions", "inputTokens", "outputTokens", "cachedInputTokens", "cacheCreationInputTokens", "reasoningTokens", "costUsd", "notionalCostUsd", "savedUsd", "costByAuth", "messagesByAuth"];
|
|
833
|
+
};
|
|
834
|
+
export declare const UsageProviderAggSchema: {
|
|
835
|
+
readonly type: "object";
|
|
836
|
+
readonly properties: {
|
|
837
|
+
readonly provider: {
|
|
838
|
+
readonly type: "string";
|
|
839
|
+
};
|
|
840
|
+
readonly authType: {
|
|
841
|
+
readonly $ref: "#/components/schemas/UsageAuthType";
|
|
842
|
+
};
|
|
843
|
+
readonly messages: {
|
|
844
|
+
readonly type: "integer";
|
|
845
|
+
};
|
|
846
|
+
readonly sessions: {
|
|
847
|
+
readonly type: "integer";
|
|
848
|
+
};
|
|
849
|
+
readonly inputTokens: {
|
|
850
|
+
readonly type: "integer";
|
|
851
|
+
};
|
|
852
|
+
readonly outputTokens: {
|
|
853
|
+
readonly type: "integer";
|
|
854
|
+
};
|
|
855
|
+
readonly cachedInputTokens: {
|
|
856
|
+
readonly type: "integer";
|
|
857
|
+
};
|
|
858
|
+
readonly cacheCreationInputTokens: {
|
|
859
|
+
readonly type: "integer";
|
|
860
|
+
};
|
|
861
|
+
readonly reasoningTokens: {
|
|
862
|
+
readonly type: "integer";
|
|
863
|
+
};
|
|
864
|
+
readonly costUsd: {
|
|
865
|
+
readonly type: "number";
|
|
866
|
+
};
|
|
867
|
+
readonly notionalCostUsd: {
|
|
868
|
+
readonly type: "number";
|
|
869
|
+
};
|
|
870
|
+
};
|
|
871
|
+
readonly required: readonly ["provider", "authType", "messages", "sessions", "inputTokens", "outputTokens", "cachedInputTokens", "cacheCreationInputTokens", "reasoningTokens", "costUsd", "notionalCostUsd"];
|
|
872
|
+
};
|
|
873
|
+
export declare const UsageModelAggSchema: {
|
|
874
|
+
readonly type: "object";
|
|
875
|
+
readonly properties: {
|
|
876
|
+
readonly provider: {
|
|
877
|
+
readonly type: "string";
|
|
878
|
+
};
|
|
879
|
+
readonly model: {
|
|
880
|
+
readonly type: "string";
|
|
881
|
+
};
|
|
882
|
+
readonly authType: {
|
|
883
|
+
readonly $ref: "#/components/schemas/UsageAuthType";
|
|
884
|
+
};
|
|
885
|
+
readonly messages: {
|
|
886
|
+
readonly type: "integer";
|
|
887
|
+
};
|
|
888
|
+
readonly inputTokens: {
|
|
889
|
+
readonly type: "integer";
|
|
890
|
+
};
|
|
891
|
+
readonly outputTokens: {
|
|
892
|
+
readonly type: "integer";
|
|
893
|
+
};
|
|
894
|
+
readonly cachedInputTokens: {
|
|
895
|
+
readonly type: "integer";
|
|
896
|
+
};
|
|
897
|
+
readonly cacheCreationInputTokens: {
|
|
898
|
+
readonly type: "integer";
|
|
899
|
+
};
|
|
900
|
+
readonly reasoningTokens: {
|
|
901
|
+
readonly type: "integer";
|
|
902
|
+
};
|
|
903
|
+
readonly costUsd: {
|
|
904
|
+
readonly type: "number";
|
|
905
|
+
};
|
|
906
|
+
readonly notionalCostUsd: {
|
|
907
|
+
readonly type: "number";
|
|
908
|
+
};
|
|
909
|
+
};
|
|
910
|
+
readonly required: readonly ["provider", "model", "authType", "messages", "inputTokens", "outputTokens", "cachedInputTokens", "cacheCreationInputTokens", "reasoningTokens", "costUsd", "notionalCostUsd"];
|
|
911
|
+
};
|
|
912
|
+
export declare const UsageDailyAggSchema: {
|
|
913
|
+
readonly type: "object";
|
|
914
|
+
readonly properties: {
|
|
915
|
+
readonly date: {
|
|
916
|
+
readonly type: "string";
|
|
917
|
+
};
|
|
918
|
+
readonly messages: {
|
|
919
|
+
readonly type: "integer";
|
|
920
|
+
};
|
|
921
|
+
readonly inputTokens: {
|
|
922
|
+
readonly type: "integer";
|
|
923
|
+
};
|
|
924
|
+
readonly outputTokens: {
|
|
925
|
+
readonly type: "integer";
|
|
926
|
+
};
|
|
927
|
+
readonly costUsd: {
|
|
928
|
+
readonly type: "number";
|
|
929
|
+
};
|
|
930
|
+
readonly notionalCostUsd: {
|
|
931
|
+
readonly type: "number";
|
|
932
|
+
};
|
|
933
|
+
readonly costByAuth: {
|
|
934
|
+
readonly $ref: "#/components/schemas/UsageAuthAmount";
|
|
935
|
+
};
|
|
936
|
+
readonly notionalByAuth: {
|
|
937
|
+
readonly $ref: "#/components/schemas/UsageAuthAmount";
|
|
938
|
+
};
|
|
939
|
+
};
|
|
940
|
+
readonly required: readonly ["date", "messages", "inputTokens", "outputTokens", "costUsd", "notionalCostUsd", "costByAuth", "notionalByAuth"];
|
|
941
|
+
};
|
|
942
|
+
export declare const UsageProjectInfoSchema: {
|
|
943
|
+
readonly type: "object";
|
|
944
|
+
readonly properties: {
|
|
945
|
+
readonly id: {
|
|
946
|
+
readonly type: "string";
|
|
947
|
+
};
|
|
948
|
+
readonly name: {
|
|
949
|
+
readonly type: "string";
|
|
950
|
+
};
|
|
951
|
+
readonly path: {
|
|
952
|
+
readonly type: "string";
|
|
953
|
+
};
|
|
954
|
+
readonly lastSeenAt: {
|
|
955
|
+
readonly type: "integer";
|
|
956
|
+
};
|
|
957
|
+
readonly messages: {
|
|
958
|
+
readonly type: "integer";
|
|
959
|
+
};
|
|
960
|
+
readonly notionalCostUsd: {
|
|
961
|
+
readonly type: "number";
|
|
962
|
+
};
|
|
963
|
+
};
|
|
964
|
+
readonly required: readonly ["id", "name", "path", "lastSeenAt", "messages", "notionalCostUsd"];
|
|
965
|
+
};
|
|
966
|
+
export declare const UsageProjectUnavailableSchema: {
|
|
967
|
+
readonly type: "object";
|
|
968
|
+
readonly properties: {
|
|
969
|
+
readonly id: {
|
|
970
|
+
readonly type: "string";
|
|
971
|
+
};
|
|
972
|
+
readonly name: {
|
|
973
|
+
readonly type: "string";
|
|
974
|
+
};
|
|
975
|
+
readonly path: {
|
|
976
|
+
readonly type: "string";
|
|
977
|
+
};
|
|
978
|
+
readonly reason: {
|
|
979
|
+
readonly type: "string";
|
|
980
|
+
};
|
|
981
|
+
};
|
|
982
|
+
readonly required: readonly ["id", "name", "path", "reason"];
|
|
983
|
+
};
|
|
984
|
+
export declare const UsageProjectsBreakdownSchema: {
|
|
985
|
+
readonly type: "object";
|
|
986
|
+
readonly properties: {
|
|
987
|
+
readonly included: {
|
|
988
|
+
readonly type: "array";
|
|
989
|
+
readonly items: {
|
|
990
|
+
readonly $ref: "#/components/schemas/UsageProjectInfo";
|
|
991
|
+
};
|
|
992
|
+
};
|
|
993
|
+
readonly unavailable: {
|
|
994
|
+
readonly type: "array";
|
|
995
|
+
readonly items: {
|
|
996
|
+
readonly $ref: "#/components/schemas/UsageProjectUnavailable";
|
|
997
|
+
};
|
|
998
|
+
};
|
|
999
|
+
};
|
|
1000
|
+
readonly required: readonly ["included", "unavailable"];
|
|
1001
|
+
};
|
|
1002
|
+
export declare const UsageStatsNotesSchema: {
|
|
1003
|
+
readonly type: "object";
|
|
1004
|
+
readonly properties: {
|
|
1005
|
+
readonly oauthProviders: {
|
|
1006
|
+
readonly type: "array";
|
|
1007
|
+
readonly items: {
|
|
1008
|
+
readonly type: "string";
|
|
1009
|
+
};
|
|
1010
|
+
};
|
|
1011
|
+
readonly subscriptionProviders: {
|
|
1012
|
+
readonly type: "array";
|
|
1013
|
+
readonly items: {
|
|
1014
|
+
readonly type: "string";
|
|
1015
|
+
};
|
|
1016
|
+
};
|
|
1017
|
+
readonly missingPricing: {
|
|
1018
|
+
readonly type: "array";
|
|
1019
|
+
readonly items: {
|
|
1020
|
+
readonly type: "string";
|
|
1021
|
+
};
|
|
1022
|
+
};
|
|
1023
|
+
};
|
|
1024
|
+
readonly required: readonly ["oauthProviders", "subscriptionProviders", "missingPricing"];
|
|
1025
|
+
};
|
|
1026
|
+
export declare const UsageStatsSchema: {
|
|
1027
|
+
readonly type: "object";
|
|
1028
|
+
readonly properties: {
|
|
1029
|
+
readonly scope: {
|
|
1030
|
+
readonly type: "string";
|
|
1031
|
+
readonly enum: readonly ["project", "global"];
|
|
1032
|
+
};
|
|
1033
|
+
readonly project: {
|
|
1034
|
+
readonly type: "string";
|
|
1035
|
+
};
|
|
1036
|
+
readonly generatedAt: {
|
|
1037
|
+
readonly type: "integer";
|
|
1038
|
+
};
|
|
1039
|
+
readonly totals: {
|
|
1040
|
+
readonly $ref: "#/components/schemas/UsageTotals";
|
|
1041
|
+
};
|
|
1042
|
+
readonly providers: {
|
|
1043
|
+
readonly type: "array";
|
|
1044
|
+
readonly items: {
|
|
1045
|
+
readonly $ref: "#/components/schemas/UsageProviderAgg";
|
|
1046
|
+
};
|
|
1047
|
+
};
|
|
1048
|
+
readonly models: {
|
|
1049
|
+
readonly type: "array";
|
|
1050
|
+
readonly items: {
|
|
1051
|
+
readonly $ref: "#/components/schemas/UsageModelAgg";
|
|
1052
|
+
};
|
|
1053
|
+
};
|
|
1054
|
+
readonly daily: {
|
|
1055
|
+
readonly type: "array";
|
|
1056
|
+
readonly items: {
|
|
1057
|
+
readonly $ref: "#/components/schemas/UsageDailyAgg";
|
|
1058
|
+
};
|
|
1059
|
+
};
|
|
1060
|
+
readonly notes: {
|
|
1061
|
+
readonly $ref: "#/components/schemas/UsageStatsNotes";
|
|
1062
|
+
};
|
|
1063
|
+
readonly projects: {
|
|
1064
|
+
readonly $ref: "#/components/schemas/UsageProjectsBreakdown";
|
|
1065
|
+
};
|
|
1066
|
+
};
|
|
1067
|
+
readonly required: readonly ["scope", "project", "generatedAt", "totals", "providers", "models", "daily", "notes"];
|
|
1068
|
+
};
|
|
754
1069
|
//# sourceMappingURL=schemas.gen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.gen.d.ts","sourceRoot":"","sources":["../../src/generated/schemas.gen.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc;;;CAGjB,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqDvB,CAAC;AAEX,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BpB,CAAC;AAEX,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;CAoB1B,CAAC;AAEX,eAAO,MAAM,wBAAwB;;;;;;;;;;;;CAY3B,CAAC;AAEX,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2FhB,CAAC;AAEX,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyDhB,CAAC;AAEX,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDpB,CAAC;AAEX,eAAO,MAAM,cAAc;;;;;;CASjB,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BzB,CAAC;AAEX,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;CAqBrB,CAAC;AAEX,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyDlB,CAAC;AAEX,eAAO,MAAM,qBAAqB;;;CAGxB,CAAC;AAEX,eAAO,MAAM,mBAAmB;;;CAGtB,CAAC;AAEX,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;CAcxB,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;CAcvB,CAAC;AAEX,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCpB,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCzB,CAAC;AAEX,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCtB,CAAC;AAEX,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BtB,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;CAuBzB,CAAC;AAEX,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;CAiBhC,CAAC;AAEX,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;CAiB/B,CAAC;AAEX,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;CAuBxB,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0CnB,CAAC"}
|
|
@@ -755,4 +755,319 @@ export const MCPServerSchema = {
|
|
|
755
755
|
},
|
|
756
756
|
required: ['name', 'transport', 'connected']
|
|
757
757
|
};
|
|
758
|
+
export const UsageAuthBucketSchema = {
|
|
759
|
+
type: 'string',
|
|
760
|
+
enum: ['oauth', 'api', 'subscription']
|
|
761
|
+
};
|
|
762
|
+
export const UsageAuthTypeSchema = {
|
|
763
|
+
type: 'string',
|
|
764
|
+
enum: ['oauth', 'api', 'wallet', 'subscription', 'unknown']
|
|
765
|
+
};
|
|
766
|
+
export const UsageAuthAmountSchema = {
|
|
767
|
+
type: 'object',
|
|
768
|
+
properties: {
|
|
769
|
+
oauth: {
|
|
770
|
+
type: 'number'
|
|
771
|
+
},
|
|
772
|
+
api: {
|
|
773
|
+
type: 'number'
|
|
774
|
+
},
|
|
775
|
+
subscription: {
|
|
776
|
+
type: 'number'
|
|
777
|
+
}
|
|
778
|
+
},
|
|
779
|
+
required: ['oauth', 'api', 'subscription']
|
|
780
|
+
};
|
|
781
|
+
export const UsageAuthCountSchema = {
|
|
782
|
+
type: 'object',
|
|
783
|
+
properties: {
|
|
784
|
+
oauth: {
|
|
785
|
+
type: 'integer'
|
|
786
|
+
},
|
|
787
|
+
api: {
|
|
788
|
+
type: 'integer'
|
|
789
|
+
},
|
|
790
|
+
subscription: {
|
|
791
|
+
type: 'integer'
|
|
792
|
+
}
|
|
793
|
+
},
|
|
794
|
+
required: ['oauth', 'api', 'subscription']
|
|
795
|
+
};
|
|
796
|
+
export const UsageTotalsSchema = {
|
|
797
|
+
type: 'object',
|
|
798
|
+
properties: {
|
|
799
|
+
messages: {
|
|
800
|
+
type: 'integer'
|
|
801
|
+
},
|
|
802
|
+
sessions: {
|
|
803
|
+
type: 'integer'
|
|
804
|
+
},
|
|
805
|
+
inputTokens: {
|
|
806
|
+
type: 'integer'
|
|
807
|
+
},
|
|
808
|
+
outputTokens: {
|
|
809
|
+
type: 'integer'
|
|
810
|
+
},
|
|
811
|
+
cachedInputTokens: {
|
|
812
|
+
type: 'integer'
|
|
813
|
+
},
|
|
814
|
+
cacheCreationInputTokens: {
|
|
815
|
+
type: 'integer'
|
|
816
|
+
},
|
|
817
|
+
reasoningTokens: {
|
|
818
|
+
type: 'integer'
|
|
819
|
+
},
|
|
820
|
+
costUsd: {
|
|
821
|
+
type: 'number'
|
|
822
|
+
},
|
|
823
|
+
notionalCostUsd: {
|
|
824
|
+
type: 'number'
|
|
825
|
+
},
|
|
826
|
+
savedUsd: {
|
|
827
|
+
type: 'number'
|
|
828
|
+
},
|
|
829
|
+
costByAuth: {
|
|
830
|
+
'$ref': '#/components/schemas/UsageAuthAmount'
|
|
831
|
+
},
|
|
832
|
+
messagesByAuth: {
|
|
833
|
+
'$ref': '#/components/schemas/UsageAuthCount'
|
|
834
|
+
}
|
|
835
|
+
},
|
|
836
|
+
required: ['messages', 'sessions', 'inputTokens', 'outputTokens', 'cachedInputTokens', 'cacheCreationInputTokens', 'reasoningTokens', 'costUsd', 'notionalCostUsd', 'savedUsd', 'costByAuth', 'messagesByAuth']
|
|
837
|
+
};
|
|
838
|
+
export const UsageProviderAggSchema = {
|
|
839
|
+
type: 'object',
|
|
840
|
+
properties: {
|
|
841
|
+
provider: {
|
|
842
|
+
type: 'string'
|
|
843
|
+
},
|
|
844
|
+
authType: {
|
|
845
|
+
'$ref': '#/components/schemas/UsageAuthType'
|
|
846
|
+
},
|
|
847
|
+
messages: {
|
|
848
|
+
type: 'integer'
|
|
849
|
+
},
|
|
850
|
+
sessions: {
|
|
851
|
+
type: 'integer'
|
|
852
|
+
},
|
|
853
|
+
inputTokens: {
|
|
854
|
+
type: 'integer'
|
|
855
|
+
},
|
|
856
|
+
outputTokens: {
|
|
857
|
+
type: 'integer'
|
|
858
|
+
},
|
|
859
|
+
cachedInputTokens: {
|
|
860
|
+
type: 'integer'
|
|
861
|
+
},
|
|
862
|
+
cacheCreationInputTokens: {
|
|
863
|
+
type: 'integer'
|
|
864
|
+
},
|
|
865
|
+
reasoningTokens: {
|
|
866
|
+
type: 'integer'
|
|
867
|
+
},
|
|
868
|
+
costUsd: {
|
|
869
|
+
type: 'number'
|
|
870
|
+
},
|
|
871
|
+
notionalCostUsd: {
|
|
872
|
+
type: 'number'
|
|
873
|
+
}
|
|
874
|
+
},
|
|
875
|
+
required: ['provider', 'authType', 'messages', 'sessions', 'inputTokens', 'outputTokens', 'cachedInputTokens', 'cacheCreationInputTokens', 'reasoningTokens', 'costUsd', 'notionalCostUsd']
|
|
876
|
+
};
|
|
877
|
+
export const UsageModelAggSchema = {
|
|
878
|
+
type: 'object',
|
|
879
|
+
properties: {
|
|
880
|
+
provider: {
|
|
881
|
+
type: 'string'
|
|
882
|
+
},
|
|
883
|
+
model: {
|
|
884
|
+
type: 'string'
|
|
885
|
+
},
|
|
886
|
+
authType: {
|
|
887
|
+
'$ref': '#/components/schemas/UsageAuthType'
|
|
888
|
+
},
|
|
889
|
+
messages: {
|
|
890
|
+
type: 'integer'
|
|
891
|
+
},
|
|
892
|
+
inputTokens: {
|
|
893
|
+
type: 'integer'
|
|
894
|
+
},
|
|
895
|
+
outputTokens: {
|
|
896
|
+
type: 'integer'
|
|
897
|
+
},
|
|
898
|
+
cachedInputTokens: {
|
|
899
|
+
type: 'integer'
|
|
900
|
+
},
|
|
901
|
+
cacheCreationInputTokens: {
|
|
902
|
+
type: 'integer'
|
|
903
|
+
},
|
|
904
|
+
reasoningTokens: {
|
|
905
|
+
type: 'integer'
|
|
906
|
+
},
|
|
907
|
+
costUsd: {
|
|
908
|
+
type: 'number'
|
|
909
|
+
},
|
|
910
|
+
notionalCostUsd: {
|
|
911
|
+
type: 'number'
|
|
912
|
+
}
|
|
913
|
+
},
|
|
914
|
+
required: ['provider', 'model', 'authType', 'messages', 'inputTokens', 'outputTokens', 'cachedInputTokens', 'cacheCreationInputTokens', 'reasoningTokens', 'costUsd', 'notionalCostUsd']
|
|
915
|
+
};
|
|
916
|
+
export const UsageDailyAggSchema = {
|
|
917
|
+
type: 'object',
|
|
918
|
+
properties: {
|
|
919
|
+
date: {
|
|
920
|
+
type: 'string'
|
|
921
|
+
},
|
|
922
|
+
messages: {
|
|
923
|
+
type: 'integer'
|
|
924
|
+
},
|
|
925
|
+
inputTokens: {
|
|
926
|
+
type: 'integer'
|
|
927
|
+
},
|
|
928
|
+
outputTokens: {
|
|
929
|
+
type: 'integer'
|
|
930
|
+
},
|
|
931
|
+
costUsd: {
|
|
932
|
+
type: 'number'
|
|
933
|
+
},
|
|
934
|
+
notionalCostUsd: {
|
|
935
|
+
type: 'number'
|
|
936
|
+
},
|
|
937
|
+
costByAuth: {
|
|
938
|
+
'$ref': '#/components/schemas/UsageAuthAmount'
|
|
939
|
+
},
|
|
940
|
+
notionalByAuth: {
|
|
941
|
+
'$ref': '#/components/schemas/UsageAuthAmount'
|
|
942
|
+
}
|
|
943
|
+
},
|
|
944
|
+
required: ['date', 'messages', 'inputTokens', 'outputTokens', 'costUsd', 'notionalCostUsd', 'costByAuth', 'notionalByAuth']
|
|
945
|
+
};
|
|
946
|
+
export const UsageProjectInfoSchema = {
|
|
947
|
+
type: 'object',
|
|
948
|
+
properties: {
|
|
949
|
+
id: {
|
|
950
|
+
type: 'string'
|
|
951
|
+
},
|
|
952
|
+
name: {
|
|
953
|
+
type: 'string'
|
|
954
|
+
},
|
|
955
|
+
path: {
|
|
956
|
+
type: 'string'
|
|
957
|
+
},
|
|
958
|
+
lastSeenAt: {
|
|
959
|
+
type: 'integer'
|
|
960
|
+
},
|
|
961
|
+
messages: {
|
|
962
|
+
type: 'integer'
|
|
963
|
+
},
|
|
964
|
+
notionalCostUsd: {
|
|
965
|
+
type: 'number'
|
|
966
|
+
}
|
|
967
|
+
},
|
|
968
|
+
required: ['id', 'name', 'path', 'lastSeenAt', 'messages', 'notionalCostUsd']
|
|
969
|
+
};
|
|
970
|
+
export const UsageProjectUnavailableSchema = {
|
|
971
|
+
type: 'object',
|
|
972
|
+
properties: {
|
|
973
|
+
id: {
|
|
974
|
+
type: 'string'
|
|
975
|
+
},
|
|
976
|
+
name: {
|
|
977
|
+
type: 'string'
|
|
978
|
+
},
|
|
979
|
+
path: {
|
|
980
|
+
type: 'string'
|
|
981
|
+
},
|
|
982
|
+
reason: {
|
|
983
|
+
type: 'string'
|
|
984
|
+
}
|
|
985
|
+
},
|
|
986
|
+
required: ['id', 'name', 'path', 'reason']
|
|
987
|
+
};
|
|
988
|
+
export const UsageProjectsBreakdownSchema = {
|
|
989
|
+
type: 'object',
|
|
990
|
+
properties: {
|
|
991
|
+
included: {
|
|
992
|
+
type: 'array',
|
|
993
|
+
items: {
|
|
994
|
+
'$ref': '#/components/schemas/UsageProjectInfo'
|
|
995
|
+
}
|
|
996
|
+
},
|
|
997
|
+
unavailable: {
|
|
998
|
+
type: 'array',
|
|
999
|
+
items: {
|
|
1000
|
+
'$ref': '#/components/schemas/UsageProjectUnavailable'
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
},
|
|
1004
|
+
required: ['included', 'unavailable']
|
|
1005
|
+
};
|
|
1006
|
+
export const UsageStatsNotesSchema = {
|
|
1007
|
+
type: 'object',
|
|
1008
|
+
properties: {
|
|
1009
|
+
oauthProviders: {
|
|
1010
|
+
type: 'array',
|
|
1011
|
+
items: {
|
|
1012
|
+
type: 'string'
|
|
1013
|
+
}
|
|
1014
|
+
},
|
|
1015
|
+
subscriptionProviders: {
|
|
1016
|
+
type: 'array',
|
|
1017
|
+
items: {
|
|
1018
|
+
type: 'string'
|
|
1019
|
+
}
|
|
1020
|
+
},
|
|
1021
|
+
missingPricing: {
|
|
1022
|
+
type: 'array',
|
|
1023
|
+
items: {
|
|
1024
|
+
type: 'string'
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
},
|
|
1028
|
+
required: ['oauthProviders', 'subscriptionProviders', 'missingPricing']
|
|
1029
|
+
};
|
|
1030
|
+
export const UsageStatsSchema = {
|
|
1031
|
+
type: 'object',
|
|
1032
|
+
properties: {
|
|
1033
|
+
scope: {
|
|
1034
|
+
type: 'string',
|
|
1035
|
+
enum: ['project', 'global']
|
|
1036
|
+
},
|
|
1037
|
+
project: {
|
|
1038
|
+
type: 'string'
|
|
1039
|
+
},
|
|
1040
|
+
generatedAt: {
|
|
1041
|
+
type: 'integer'
|
|
1042
|
+
},
|
|
1043
|
+
totals: {
|
|
1044
|
+
'$ref': '#/components/schemas/UsageTotals'
|
|
1045
|
+
},
|
|
1046
|
+
providers: {
|
|
1047
|
+
type: 'array',
|
|
1048
|
+
items: {
|
|
1049
|
+
'$ref': '#/components/schemas/UsageProviderAgg'
|
|
1050
|
+
}
|
|
1051
|
+
},
|
|
1052
|
+
models: {
|
|
1053
|
+
type: 'array',
|
|
1054
|
+
items: {
|
|
1055
|
+
'$ref': '#/components/schemas/UsageModelAgg'
|
|
1056
|
+
}
|
|
1057
|
+
},
|
|
1058
|
+
daily: {
|
|
1059
|
+
type: 'array',
|
|
1060
|
+
items: {
|
|
1061
|
+
'$ref': '#/components/schemas/UsageDailyAgg'
|
|
1062
|
+
}
|
|
1063
|
+
},
|
|
1064
|
+
notes: {
|
|
1065
|
+
'$ref': '#/components/schemas/UsageStatsNotes'
|
|
1066
|
+
},
|
|
1067
|
+
projects: {
|
|
1068
|
+
'$ref': '#/components/schemas/UsageProjectsBreakdown'
|
|
1069
|
+
}
|
|
1070
|
+
},
|
|
1071
|
+
required: ['scope', 'project', 'generatedAt', 'totals', 'providers', 'models', 'daily', 'notes']
|
|
1072
|
+
};
|
|
758
1073
|
//# sourceMappingURL=schemas.gen.js.map
|