@to11ai/sdk 3.0.0-rc.20 → 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.
@@ -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(),
@@ -2496,6 +2501,7 @@ export const zCostRatesListBuiltinCostRatesQuery = z.object({
2496
2501
  'cache_creation',
2497
2502
  'cache_creation_5m',
2498
2503
  'cache_creation_1h',
2504
+ 'cache_creation_12h',
2499
2505
  'cache_read',
2500
2506
  'reasoning'
2501
2507
  ]).nullish(),
@@ -2534,6 +2540,7 @@ export const zCostRatesListBuiltinCostRatesResponse = z.object({
2534
2540
  'cache_creation',
2535
2541
  'cache_creation_5m',
2536
2542
  'cache_creation_1h',
2543
+ 'cache_creation_12h',
2537
2544
  'reasoning'
2538
2545
  ]),
2539
2546
  updatedAt: z.iso.datetime(),
@@ -3985,6 +3992,7 @@ export const zCostRatesListOrgCostRatesQuery = z.object({
3985
3992
  'cache_creation',
3986
3993
  'cache_creation_5m',
3987
3994
  'cache_creation_1h',
3995
+ 'cache_creation_12h',
3988
3996
  'cache_read',
3989
3997
  'reasoning'
3990
3998
  ]).nullish(),
@@ -4023,6 +4031,7 @@ export const zCostRatesListOrgCostRatesResponse = z.object({
4023
4031
  'cache_creation',
4024
4032
  'cache_creation_5m',
4025
4033
  'cache_creation_1h',
4034
+ 'cache_creation_12h',
4026
4035
  'reasoning'
4027
4036
  ]),
4028
4037
  updatedAt: z.iso.datetime(),
@@ -4069,6 +4078,7 @@ export const zCostRatesCreateOrgCostRateBody = z.object({
4069
4078
  'cache_creation',
4070
4079
  'cache_creation_5m',
4071
4080
  'cache_creation_1h',
4081
+ 'cache_creation_12h',
4072
4082
  'reasoning'
4073
4083
  ]),
4074
4084
  validFrom: z.string()
@@ -4106,6 +4116,7 @@ export const zCostRatesCreateOrgCostRateResponse = z.object({
4106
4116
  'cache_creation',
4107
4117
  'cache_creation_5m',
4108
4118
  'cache_creation_1h',
4119
+ 'cache_creation_12h',
4109
4120
  'reasoning'
4110
4121
  ]),
4111
4122
  updatedAt: z.iso.datetime(),
@@ -4209,6 +4220,7 @@ export const zCostRatesUpdateOrgCostRateResponse = z.object({
4209
4220
  'cache_creation',
4210
4221
  'cache_creation_5m',
4211
4222
  'cache_creation_1h',
4223
+ 'cache_creation_12h',
4212
4224
  'reasoning'
4213
4225
  ]),
4214
4226
  updatedAt: z.iso.datetime(),
@@ -5742,6 +5754,7 @@ export const zCostRatesListWorkspaceCostRatesQuery = z.object({
5742
5754
  'cache_creation',
5743
5755
  'cache_creation_5m',
5744
5756
  'cache_creation_1h',
5757
+ 'cache_creation_12h',
5745
5758
  'cache_read',
5746
5759
  'reasoning'
5747
5760
  ]).nullish(),
@@ -5780,6 +5793,7 @@ export const zCostRatesListWorkspaceCostRatesResponse = z.object({
5780
5793
  'cache_creation',
5781
5794
  'cache_creation_5m',
5782
5795
  'cache_creation_1h',
5796
+ 'cache_creation_12h',
5783
5797
  'reasoning'
5784
5798
  ]),
5785
5799
  updatedAt: z.iso.datetime(),
@@ -5826,6 +5840,7 @@ export const zCostRatesCreateWorkspaceCostRateBody = z.object({
5826
5840
  'cache_creation',
5827
5841
  'cache_creation_5m',
5828
5842
  'cache_creation_1h',
5843
+ 'cache_creation_12h',
5829
5844
  'reasoning'
5830
5845
  ]),
5831
5846
  validFrom: z.string()
@@ -5864,6 +5879,7 @@ export const zCostRatesCreateWorkspaceCostRateResponse = z.object({
5864
5879
  'cache_creation',
5865
5880
  'cache_creation_5m',
5866
5881
  'cache_creation_1h',
5882
+ 'cache_creation_12h',
5867
5883
  'reasoning'
5868
5884
  ]),
5869
5885
  updatedAt: z.iso.datetime(),
@@ -5969,6 +5985,7 @@ export const zCostRatesUpdateWorkspaceCostRateResponse = z.object({
5969
5985
  'cache_creation',
5970
5986
  'cache_creation_5m',
5971
5987
  'cache_creation_1h',
5988
+ 'cache_creation_12h',
5972
5989
  'reasoning'
5973
5990
  ]),
5974
5991
  updatedAt: z.iso.datetime(),
@@ -7335,6 +7352,7 @@ export const zCostRatesListProjectCostRatesQuery = z.object({
7335
7352
  'cache_creation',
7336
7353
  'cache_creation_5m',
7337
7354
  'cache_creation_1h',
7355
+ 'cache_creation_12h',
7338
7356
  'cache_read',
7339
7357
  'reasoning'
7340
7358
  ]).nullish(),
@@ -7373,6 +7391,7 @@ export const zCostRatesListProjectCostRatesResponse = z.object({
7373
7391
  'cache_creation',
7374
7392
  'cache_creation_5m',
7375
7393
  'cache_creation_1h',
7394
+ 'cache_creation_12h',
7376
7395
  'reasoning'
7377
7396
  ]),
7378
7397
  updatedAt: z.iso.datetime(),
@@ -7419,6 +7438,7 @@ export const zCostRatesCreateProjectCostRateBody = z.object({
7419
7438
  'cache_creation',
7420
7439
  'cache_creation_5m',
7421
7440
  'cache_creation_1h',
7441
+ 'cache_creation_12h',
7422
7442
  'reasoning'
7423
7443
  ]),
7424
7444
  validFrom: z.string()
@@ -7456,6 +7476,7 @@ export const zCostRatesCreateProjectCostRateResponse = z.object({
7456
7476
  'cache_creation',
7457
7477
  'cache_creation_5m',
7458
7478
  'cache_creation_1h',
7479
+ 'cache_creation_12h',
7459
7480
  'reasoning'
7460
7481
  ]),
7461
7482
  updatedAt: z.iso.datetime(),
@@ -7526,6 +7547,7 @@ export const zCostRatesGetEffectiveCostRatesResponse = z.object({
7526
7547
  'cache_creation',
7527
7548
  'cache_creation_5m',
7528
7549
  'cache_creation_1h',
7550
+ 'cache_creation_12h',
7529
7551
  'reasoning'
7530
7552
  ]),
7531
7553
  validFrom: z.iso.datetime()
@@ -7632,6 +7654,7 @@ export const zCostRatesUpdateProjectCostRateResponse = z.object({
7632
7654
  'cache_creation',
7633
7655
  'cache_creation_5m',
7634
7656
  'cache_creation_1h',
7657
+ 'cache_creation_12h',
7635
7658
  'reasoning'
7636
7659
  ]),
7637
7660
  updatedAt: z.iso.datetime(),
@@ -7854,6 +7877,10 @@ export const zProjectOverviewGetProjectOverviewResponse = z.object({
7854
7877
  cost: z.number().nullable(),
7855
7878
  count: z.number()
7856
7879
  }).nullish(),
7880
+ cache_creation_12h: z.object({
7881
+ cost: z.number().nullable(),
7882
+ count: z.number()
7883
+ }).nullish(),
7857
7884
  cache_creation_1h: z.object({
7858
7885
  cost: z.number().nullable(),
7859
7886
  count: z.number()
@@ -7877,6 +7904,7 @@ export const zProjectOverviewGetProjectOverviewResponse = z.object({
7877
7904
  'cache_creation',
7878
7905
  'cache_creation_5m',
7879
7906
  'cache_creation_1h',
7907
+ 'cache_creation_12h',
7880
7908
  'reasoning'
7881
7909
  ])).nullish(),
7882
7910
  output: z.object({
@@ -7900,6 +7928,10 @@ export const zProjectOverviewGetProjectOverviewResponse = z.object({
7900
7928
  cost: z.number().nullable(),
7901
7929
  count: z.number()
7902
7930
  }).nullish(),
7931
+ cache_creation_12h: z.object({
7932
+ cost: z.number().nullable(),
7933
+ count: z.number()
7934
+ }).nullish(),
7903
7935
  cache_creation_1h: z.object({
7904
7936
  cost: z.number().nullable(),
7905
7937
  count: z.number()
@@ -7966,6 +7998,10 @@ export const zProjectOverviewGetProjectOverviewResponse = z.object({
7966
7998
  cost: z.number().nullable(),
7967
7999
  count: z.number()
7968
8000
  }).nullish(),
8001
+ cache_creation_12h: z.object({
8002
+ cost: z.number().nullable(),
8003
+ count: z.number()
8004
+ }).nullish(),
7969
8005
  cache_creation_1h: z.object({
7970
8006
  cost: z.number().nullable(),
7971
8007
  count: z.number()
@@ -7989,6 +8025,7 @@ export const zProjectOverviewGetProjectOverviewResponse = z.object({
7989
8025
  'cache_creation',
7990
8026
  'cache_creation_5m',
7991
8027
  'cache_creation_1h',
8028
+ 'cache_creation_12h',
7992
8029
  'reasoning'
7993
8030
  ])).nullish(),
7994
8031
  output: z.object({
@@ -8012,6 +8049,10 @@ export const zProjectOverviewGetProjectOverviewResponse = z.object({
8012
8049
  cost: z.number().nullable(),
8013
8050
  count: z.number()
8014
8051
  }).nullish(),
8052
+ cache_creation_12h: z.object({
8053
+ cost: z.number().nullable(),
8054
+ count: z.number()
8055
+ }).nullish(),
8015
8056
  cache_creation_1h: z.object({
8016
8057
  cost: z.number().nullable(),
8017
8058
  count: z.number()
@@ -8067,6 +8108,10 @@ export const zProjectOverviewGetProjectOverviewResponse = z.object({
8067
8108
  cost: z.number().nullable(),
8068
8109
  count: z.number()
8069
8110
  }).nullish(),
8111
+ cache_creation_12h: z.object({
8112
+ cost: z.number().nullable(),
8113
+ count: z.number()
8114
+ }).nullish(),
8070
8115
  cache_creation_1h: z.object({
8071
8116
  cost: z.number().nullable(),
8072
8117
  count: z.number()
@@ -8090,6 +8135,7 @@ export const zProjectOverviewGetProjectOverviewResponse = z.object({
8090
8135
  'cache_creation',
8091
8136
  'cache_creation_5m',
8092
8137
  'cache_creation_1h',
8138
+ 'cache_creation_12h',
8093
8139
  'reasoning'
8094
8140
  ])).nullish(),
8095
8141
  output: z.object({
@@ -8113,6 +8159,10 @@ export const zProjectOverviewGetProjectOverviewResponse = z.object({
8113
8159
  cost: z.number().nullable(),
8114
8160
  count: z.number()
8115
8161
  }).nullish(),
8162
+ cache_creation_12h: z.object({
8163
+ cost: z.number().nullable(),
8164
+ count: z.number()
8165
+ }).nullish(),
8116
8166
  cache_creation_1h: z.object({
8117
8167
  cost: z.number().nullable(),
8118
8168
  count: z.number()
@@ -11362,6 +11412,7 @@ export const zProviderConfigDraftsGetProviderDraftResponse = z.object({
11362
11412
  export const zProviderConfigDraftsUpdateProviderDraftBody = z.object({
11363
11413
  configSnapshotPatch: z.object({
11364
11414
  baseUrl: z.string().nullish(),
11415
+ billingModeOverride: z.enum(['api']).nullish(),
11365
11416
  blockedModels: z.array(z.string().min(1).max(256)).max(500).nullish(),
11366
11417
  customModelIds: z.array(z.string()).nullish(),
11367
11418
  modelPolicy: z.enum(['allowlist', 'denylist']).nullish(),
@@ -13423,6 +13474,10 @@ export const zSessionsListSessionsResponse = z.object({
13423
13474
  cost: z.number().nullable(),
13424
13475
  count: z.number()
13425
13476
  }).nullish(),
13477
+ cache_creation_12h: z.object({
13478
+ cost: z.number().nullable(),
13479
+ count: z.number()
13480
+ }).nullish(),
13426
13481
  cache_creation_1h: z.object({
13427
13482
  cost: z.number().nullable(),
13428
13483
  count: z.number()
@@ -13446,6 +13501,7 @@ export const zSessionsListSessionsResponse = z.object({
13446
13501
  'cache_creation',
13447
13502
  'cache_creation_5m',
13448
13503
  'cache_creation_1h',
13504
+ 'cache_creation_12h',
13449
13505
  'reasoning'
13450
13506
  ])).nullish(),
13451
13507
  output: z.object({
@@ -13469,6 +13525,10 @@ export const zSessionsListSessionsResponse = z.object({
13469
13525
  cost: z.number().nullable(),
13470
13526
  count: z.number()
13471
13527
  }).nullish(),
13528
+ cache_creation_12h: z.object({
13529
+ cost: z.number().nullable(),
13530
+ count: z.number()
13531
+ }).nullish(),
13472
13532
  cache_creation_1h: z.object({
13473
13533
  cost: z.number().nullable(),
13474
13534
  count: z.number()
@@ -13520,7 +13580,12 @@ export const zSessionsListSessionsResponse = z.object({
13520
13580
  'merged',
13521
13581
  'closed'
13522
13582
  ]),
13523
- 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()
13524
13589
  })),
13525
13590
  requestCount: z.int().gte(-9007199254740991).lte(9007199254740991),
13526
13591
  sessionId: z.string(),
@@ -13601,6 +13666,10 @@ export const zSessionsGetSessionResponse = z.object({
13601
13666
  cost: z.number().nullable(),
13602
13667
  count: z.number()
13603
13668
  }).nullish(),
13669
+ cache_creation_12h: z.object({
13670
+ cost: z.number().nullable(),
13671
+ count: z.number()
13672
+ }).nullish(),
13604
13673
  cache_creation_1h: z.object({
13605
13674
  cost: z.number().nullable(),
13606
13675
  count: z.number()
@@ -13624,6 +13693,7 @@ export const zSessionsGetSessionResponse = z.object({
13624
13693
  'cache_creation',
13625
13694
  'cache_creation_5m',
13626
13695
  'cache_creation_1h',
13696
+ 'cache_creation_12h',
13627
13697
  'reasoning'
13628
13698
  ])).nullish(),
13629
13699
  output: z.object({
@@ -13647,6 +13717,10 @@ export const zSessionsGetSessionResponse = z.object({
13647
13717
  cost: z.number().nullable(),
13648
13718
  count: z.number()
13649
13719
  }).nullish(),
13720
+ cache_creation_12h: z.object({
13721
+ cost: z.number().nullable(),
13722
+ count: z.number()
13723
+ }).nullish(),
13650
13724
  cache_creation_1h: z.object({
13651
13725
  cost: z.number().nullable(),
13652
13726
  count: z.number()
@@ -13698,7 +13772,12 @@ export const zSessionsGetSessionResponse = z.object({
13698
13772
  'merged',
13699
13773
  'closed'
13700
13774
  ]),
13701
- 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()
13702
13781
  })),
13703
13782
  requestCount: z.int().gte(-9007199254740991).lte(9007199254740991),
13704
13783
  sessionId: z.string(),
@@ -13865,6 +13944,10 @@ export const zTracesListTracesResponse = z.object({
13865
13944
  cost: z.number().nullable(),
13866
13945
  count: z.number()
13867
13946
  }).nullish(),
13947
+ cache_creation_12h: z.object({
13948
+ cost: z.number().nullable(),
13949
+ count: z.number()
13950
+ }).nullish(),
13868
13951
  cache_creation_1h: z.object({
13869
13952
  cost: z.number().nullable(),
13870
13953
  count: z.number()
@@ -13888,6 +13971,7 @@ export const zTracesListTracesResponse = z.object({
13888
13971
  'cache_creation',
13889
13972
  'cache_creation_5m',
13890
13973
  'cache_creation_1h',
13974
+ 'cache_creation_12h',
13891
13975
  'reasoning'
13892
13976
  ])).nullish(),
13893
13977
  output: z.object({
@@ -13911,6 +13995,10 @@ export const zTracesListTracesResponse = z.object({
13911
13995
  cost: z.number().nullable(),
13912
13996
  count: z.number()
13913
13997
  }).nullish(),
13998
+ cache_creation_12h: z.object({
13999
+ cost: z.number().nullable(),
14000
+ count: z.number()
14001
+ }).nullish(),
13914
14002
  cache_creation_1h: z.object({
13915
14003
  cost: z.number().nullable(),
13916
14004
  count: z.number()
@@ -14174,6 +14262,10 @@ export const zTracesGetTraceDetailResponse = z.object({
14174
14262
  cost: z.number().nullable(),
14175
14263
  count: z.number()
14176
14264
  }).nullish(),
14265
+ cache_creation_12h: z.object({
14266
+ cost: z.number().nullable(),
14267
+ count: z.number()
14268
+ }).nullish(),
14177
14269
  cache_creation_1h: z.object({
14178
14270
  cost: z.number().nullable(),
14179
14271
  count: z.number()
@@ -14197,6 +14289,7 @@ export const zTracesGetTraceDetailResponse = z.object({
14197
14289
  'cache_creation',
14198
14290
  'cache_creation_5m',
14199
14291
  'cache_creation_1h',
14292
+ 'cache_creation_12h',
14200
14293
  'reasoning'
14201
14294
  ])).nullish(),
14202
14295
  output: z.object({
@@ -14220,6 +14313,10 @@ export const zTracesGetTraceDetailResponse = z.object({
14220
14313
  cost: z.number().nullable(),
14221
14314
  count: z.number()
14222
14315
  }).nullish(),
14316
+ cache_creation_12h: z.object({
14317
+ cost: z.number().nullable(),
14318
+ count: z.number()
14319
+ }).nullish(),
14223
14320
  cache_creation_1h: z.object({
14224
14321
  cost: z.number().nullable(),
14225
14322
  count: z.number()
@@ -14280,6 +14377,10 @@ export const zTracesGetTraceDetailResponse = z.object({
14280
14377
  cost: z.number().nullable(),
14281
14378
  count: z.number()
14282
14379
  }).nullish(),
14380
+ cache_creation_12h: z.object({
14381
+ cost: z.number().nullable(),
14382
+ count: z.number()
14383
+ }).nullish(),
14283
14384
  cache_creation_1h: z.object({
14284
14385
  cost: z.number().nullable(),
14285
14386
  count: z.number()
@@ -14303,6 +14404,7 @@ export const zTracesGetTraceDetailResponse = z.object({
14303
14404
  'cache_creation',
14304
14405
  'cache_creation_5m',
14305
14406
  'cache_creation_1h',
14407
+ 'cache_creation_12h',
14306
14408
  'reasoning'
14307
14409
  ])).nullish(),
14308
14410
  output: z.object({