@to11ai/sdk 3.0.0-rc.21 → 3.0.0-rc.22
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.
|
@@ -732,6 +732,14 @@ export type UsageSessionsResponse = {
|
|
|
732
732
|
number: number;
|
|
733
733
|
state: 'open' | 'draft' | 'merged' | 'closed';
|
|
734
734
|
url: string;
|
|
735
|
+
/**
|
|
736
|
+
* The session's usage on this pull request: its spans on the pull request's branch inside the pull request's window, as of the pull request's last link rebuild, not limited to the requested window. Spans aging out of the 60-day retention never lower it. Zero when none of its spans is on the pull request. `null` until the pull request's links are next rebuilt.
|
|
737
|
+
*/
|
|
738
|
+
usage?: {
|
|
739
|
+
apiEquivalentUsd: number | null;
|
|
740
|
+
requests: number;
|
|
741
|
+
tokens: number;
|
|
742
|
+
} | null;
|
|
735
743
|
}> | null;
|
|
736
744
|
requests: number;
|
|
737
745
|
sessionId: string;
|
|
@@ -21132,6 +21140,7 @@ export type ProviderConfigDraftsUpdateProviderDraftData = {
|
|
|
21132
21140
|
body: {
|
|
21133
21141
|
configSnapshotPatch: {
|
|
21134
21142
|
baseUrl?: string | null;
|
|
21143
|
+
billingModeOverride?: 'api' | null;
|
|
21135
21144
|
blockedModels?: Array<string> | null;
|
|
21136
21145
|
customModelIds?: Array<string> | null;
|
|
21137
21146
|
modelPolicy?: 'allowlist' | 'denylist' | null;
|
|
@@ -25445,6 +25454,14 @@ export type SessionsListSessionsResponses = {
|
|
|
25445
25454
|
number: number;
|
|
25446
25455
|
state: 'open' | 'draft' | 'merged' | 'closed';
|
|
25447
25456
|
url: string;
|
|
25457
|
+
/**
|
|
25458
|
+
* The session's usage on this pull request: its spans on the pull request's branch inside the pull request's window, as of the pull request's last link rebuild, not limited to the requested window. Spans aging out of the 60-day retention never lower it. Zero when none of its spans is on the pull request. `null` until the pull request's links are next rebuilt.
|
|
25459
|
+
*/
|
|
25460
|
+
usage?: {
|
|
25461
|
+
apiEquivalentUsd: number | null;
|
|
25462
|
+
requests: number;
|
|
25463
|
+
tokens: number;
|
|
25464
|
+
} | null;
|
|
25448
25465
|
}>;
|
|
25449
25466
|
requestCount: number;
|
|
25450
25467
|
sessionId: string;
|
|
@@ -25672,6 +25689,14 @@ export type SessionsGetSessionResponses = {
|
|
|
25672
25689
|
number: number;
|
|
25673
25690
|
state: 'open' | 'draft' | 'merged' | 'closed';
|
|
25674
25691
|
url: string;
|
|
25692
|
+
/**
|
|
25693
|
+
* The session's usage on this pull request: its spans on the pull request's branch inside the pull request's window, as of the pull request's last link rebuild, not limited to the requested window. Spans aging out of the 60-day retention never lower it. Zero when none of its spans is on the pull request. `null` until the pull request's links are next rebuilt.
|
|
25694
|
+
*/
|
|
25695
|
+
usage?: {
|
|
25696
|
+
apiEquivalentUsd: number | null;
|
|
25697
|
+
requests: number;
|
|
25698
|
+
tokens: number;
|
|
25699
|
+
} | null;
|
|
25675
25700
|
}>;
|
|
25676
25701
|
requestCount: number;
|
|
25677
25702
|
sessionId: string;
|
|
@@ -1169,6 +1169,11 @@ export declare const zUsageSessionsResponse: z.ZodObject<{
|
|
|
1169
1169
|
closed: "closed";
|
|
1170
1170
|
}>;
|
|
1171
1171
|
url: z.ZodString;
|
|
1172
|
+
usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1173
|
+
apiEquivalentUsd: z.ZodNullable<z.ZodNumber>;
|
|
1174
|
+
requests: z.ZodInt;
|
|
1175
|
+
tokens: z.ZodInt;
|
|
1176
|
+
}, z.core.$strip>>>;
|
|
1172
1177
|
}, z.core.$strip>>>>;
|
|
1173
1178
|
requests: z.ZodInt;
|
|
1174
1179
|
sessionId: z.ZodString;
|
|
@@ -5930,6 +5935,11 @@ export declare const zUsageListUsageSessionsResponse: z.ZodObject<{
|
|
|
5930
5935
|
closed: "closed";
|
|
5931
5936
|
}>;
|
|
5932
5937
|
url: z.ZodString;
|
|
5938
|
+
usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
5939
|
+
apiEquivalentUsd: z.ZodNullable<z.ZodNumber>;
|
|
5940
|
+
requests: z.ZodInt;
|
|
5941
|
+
tokens: z.ZodInt;
|
|
5942
|
+
}, z.core.$strip>>>;
|
|
5933
5943
|
}, z.core.$strip>>>>;
|
|
5934
5944
|
requests: z.ZodInt;
|
|
5935
5945
|
sessionId: z.ZodString;
|
|
@@ -12406,6 +12416,9 @@ export declare const zProviderConfigDraftsGetProviderDraftResponse: z.ZodObject<
|
|
|
12406
12416
|
export declare const zProviderConfigDraftsUpdateProviderDraftBody: z.ZodObject<{
|
|
12407
12417
|
configSnapshotPatch: z.ZodObject<{
|
|
12408
12418
|
baseUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12419
|
+
billingModeOverride: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
12420
|
+
api: "api";
|
|
12421
|
+
}>>>;
|
|
12409
12422
|
blockedModels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
12410
12423
|
customModelIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
12411
12424
|
modelPolicy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
@@ -14966,6 +14979,11 @@ export declare const zSessionsListSessionsResponse: z.ZodObject<{
|
|
|
14966
14979
|
closed: "closed";
|
|
14967
14980
|
}>;
|
|
14968
14981
|
url: z.ZodString;
|
|
14982
|
+
usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
14983
|
+
apiEquivalentUsd: z.ZodNullable<z.ZodNumber>;
|
|
14984
|
+
requests: z.ZodInt;
|
|
14985
|
+
tokens: z.ZodInt;
|
|
14986
|
+
}, z.core.$strip>>>;
|
|
14969
14987
|
}, z.core.$strip>>;
|
|
14970
14988
|
requestCount: z.ZodInt;
|
|
14971
14989
|
sessionId: z.ZodString;
|
|
@@ -15153,6 +15171,11 @@ export declare const zSessionsGetSessionResponse: z.ZodObject<{
|
|
|
15153
15171
|
closed: "closed";
|
|
15154
15172
|
}>;
|
|
15155
15173
|
url: z.ZodString;
|
|
15174
|
+
usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
15175
|
+
apiEquivalentUsd: z.ZodNullable<z.ZodNumber>;
|
|
15176
|
+
requests: z.ZodInt;
|
|
15177
|
+
tokens: z.ZodInt;
|
|
15178
|
+
}, z.core.$strip>>>;
|
|
15156
15179
|
}, z.core.$strip>>;
|
|
15157
15180
|
requestCount: z.ZodInt;
|
|
15158
15181
|
sessionId: z.ZodString;
|
package/package.json
CHANGED
|
@@ -785,6 +785,14 @@ export type UsageSessionsResponse = {
|
|
|
785
785
|
number: number;
|
|
786
786
|
state: 'open' | 'draft' | 'merged' | 'closed';
|
|
787
787
|
url: string;
|
|
788
|
+
/**
|
|
789
|
+
* The session's usage on this pull request: its spans on the pull request's branch inside the pull request's window, as of the pull request's last link rebuild, not limited to the requested window. Spans aging out of the 60-day retention never lower it. Zero when none of its spans is on the pull request. `null` until the pull request's links are next rebuilt.
|
|
790
|
+
*/
|
|
791
|
+
usage?: {
|
|
792
|
+
apiEquivalentUsd: number | null;
|
|
793
|
+
requests: number;
|
|
794
|
+
tokens: number;
|
|
795
|
+
} | null;
|
|
788
796
|
}> | null;
|
|
789
797
|
requests: number;
|
|
790
798
|
sessionId: string;
|
|
@@ -22116,6 +22124,7 @@ export type ProviderConfigDraftsUpdateProviderDraftData = {
|
|
|
22116
22124
|
body: {
|
|
22117
22125
|
configSnapshotPatch: {
|
|
22118
22126
|
baseUrl?: string | null;
|
|
22127
|
+
billingModeOverride?: 'api' | null;
|
|
22119
22128
|
blockedModels?: Array<string> | null;
|
|
22120
22129
|
customModelIds?: Array<string> | null;
|
|
22121
22130
|
modelPolicy?: 'allowlist' | 'denylist' | null;
|
|
@@ -26622,6 +26631,14 @@ export type SessionsListSessionsResponses = {
|
|
|
26622
26631
|
number: number;
|
|
26623
26632
|
state: 'open' | 'draft' | 'merged' | 'closed';
|
|
26624
26633
|
url: string;
|
|
26634
|
+
/**
|
|
26635
|
+
* The session's usage on this pull request: its spans on the pull request's branch inside the pull request's window, as of the pull request's last link rebuild, not limited to the requested window. Spans aging out of the 60-day retention never lower it. Zero when none of its spans is on the pull request. `null` until the pull request's links are next rebuilt.
|
|
26636
|
+
*/
|
|
26637
|
+
usage?: {
|
|
26638
|
+
apiEquivalentUsd: number | null;
|
|
26639
|
+
requests: number;
|
|
26640
|
+
tokens: number;
|
|
26641
|
+
} | null;
|
|
26625
26642
|
}>;
|
|
26626
26643
|
requestCount: number;
|
|
26627
26644
|
sessionId: string;
|
|
@@ -26854,6 +26871,14 @@ export type SessionsGetSessionResponses = {
|
|
|
26854
26871
|
number: number;
|
|
26855
26872
|
state: 'open' | 'draft' | 'merged' | 'closed';
|
|
26856
26873
|
url: string;
|
|
26874
|
+
/**
|
|
26875
|
+
* The session's usage on this pull request: its spans on the pull request's branch inside the pull request's window, as of the pull request's last link rebuild, not limited to the requested window. Spans aging out of the 60-day retention never lower it. Zero when none of its spans is on the pull request. `null` until the pull request's links are next rebuilt.
|
|
26876
|
+
*/
|
|
26877
|
+
usage?: {
|
|
26878
|
+
apiEquivalentUsd: number | null;
|
|
26879
|
+
requests: number;
|
|
26880
|
+
tokens: number;
|
|
26881
|
+
} | null;
|
|
26857
26882
|
}>;
|
|
26858
26883
|
requestCount: number;
|
|
26859
26884
|
sessionId: string;
|
package/src/generated/zod.gen.ts
CHANGED
|
@@ -824,7 +824,12 @@ export const zUsageSessionsResponse = z.object({
|
|
|
824
824
|
'merged',
|
|
825
825
|
'closed'
|
|
826
826
|
]),
|
|
827
|
-
url: z.string()
|
|
827
|
+
url: z.string(),
|
|
828
|
+
usage: z.object({
|
|
829
|
+
apiEquivalentUsd: z.number().nullable(),
|
|
830
|
+
requests: z.int().gte(-9007199254740991).lte(9007199254740991),
|
|
831
|
+
tokens: z.int().gte(-9007199254740991).lte(9007199254740991)
|
|
832
|
+
}).nullish()
|
|
828
833
|
})).nullish(),
|
|
829
834
|
requests: z.int().gte(-9007199254740991).lte(9007199254740991),
|
|
830
835
|
sessionId: z.string(),
|
|
@@ -11407,6 +11412,7 @@ export const zProviderConfigDraftsGetProviderDraftResponse = z.object({
|
|
|
11407
11412
|
export const zProviderConfigDraftsUpdateProviderDraftBody = z.object({
|
|
11408
11413
|
configSnapshotPatch: z.object({
|
|
11409
11414
|
baseUrl: z.string().nullish(),
|
|
11415
|
+
billingModeOverride: z.enum(['api']).nullish(),
|
|
11410
11416
|
blockedModels: z.array(z.string().min(1).max(256)).max(500).nullish(),
|
|
11411
11417
|
customModelIds: z.array(z.string()).nullish(),
|
|
11412
11418
|
modelPolicy: z.enum(['allowlist', 'denylist']).nullish(),
|
|
@@ -13574,7 +13580,12 @@ export const zSessionsListSessionsResponse = z.object({
|
|
|
13574
13580
|
'merged',
|
|
13575
13581
|
'closed'
|
|
13576
13582
|
]),
|
|
13577
|
-
url: z.string()
|
|
13583
|
+
url: z.string(),
|
|
13584
|
+
usage: z.object({
|
|
13585
|
+
apiEquivalentUsd: z.number().nullable(),
|
|
13586
|
+
requests: z.int().gte(-9007199254740991).lte(9007199254740991),
|
|
13587
|
+
tokens: z.int().gte(-9007199254740991).lte(9007199254740991)
|
|
13588
|
+
}).nullish()
|
|
13578
13589
|
})),
|
|
13579
13590
|
requestCount: z.int().gte(-9007199254740991).lte(9007199254740991),
|
|
13580
13591
|
sessionId: z.string(),
|
|
@@ -13761,7 +13772,12 @@ export const zSessionsGetSessionResponse = z.object({
|
|
|
13761
13772
|
'merged',
|
|
13762
13773
|
'closed'
|
|
13763
13774
|
]),
|
|
13764
|
-
url: z.string()
|
|
13775
|
+
url: z.string(),
|
|
13776
|
+
usage: z.object({
|
|
13777
|
+
apiEquivalentUsd: z.number().nullable(),
|
|
13778
|
+
requests: z.int().gte(-9007199254740991).lte(9007199254740991),
|
|
13779
|
+
tokens: z.int().gte(-9007199254740991).lte(9007199254740991)
|
|
13780
|
+
}).nullish()
|
|
13765
13781
|
})),
|
|
13766
13782
|
requestCount: z.int().gte(-9007199254740991).lte(9007199254740991),
|
|
13767
13783
|
sessionId: z.string(),
|