@to11ai/sdk 3.0.0-rc.14 → 3.0.0-rc.16

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.
@@ -4943,6 +4943,815 @@ export type DashboardingSyncOrganizationPersesResponses = {
4943
4943
  };
4944
4944
  };
4945
4945
  export type DashboardingSyncOrganizationPersesResponse = DashboardingSyncOrganizationPersesResponses[keyof DashboardingSyncOrganizationPersesResponses];
4946
+ export type IntegrationsGetGitHubIntegrationData = {
4947
+ body?: never;
4948
+ path: {
4949
+ orgId: string;
4950
+ };
4951
+ query?: never;
4952
+ url: '/v1/orgs/{orgId}/integrations/github';
4953
+ };
4954
+ export type IntegrationsGetGitHubIntegrationErrors = {
4955
+ /**
4956
+ * BadRequestError
4957
+ */
4958
+ 400: BadRequestError;
4959
+ /**
4960
+ * UnauthorizedError
4961
+ */
4962
+ 401: UnauthorizedError;
4963
+ /**
4964
+ * ForbiddenError
4965
+ */
4966
+ 403: ForbiddenError;
4967
+ /**
4968
+ * NotFoundError
4969
+ */
4970
+ 404: NotFoundError;
4971
+ /**
4972
+ * ConflictError
4973
+ */
4974
+ 409: ConflictError;
4975
+ /**
4976
+ * GoneError
4977
+ */
4978
+ 410: GoneError;
4979
+ /**
4980
+ * ContentTooLargeError
4981
+ */
4982
+ 413: ContentTooLargeError;
4983
+ /**
4984
+ * MisdirectedRequestError
4985
+ */
4986
+ 421: MisdirectedRequestError;
4987
+ /**
4988
+ * UnprocessableEntityError
4989
+ */
4990
+ 422: UnprocessableEntityError;
4991
+ /**
4992
+ * TooManyRequestsError
4993
+ */
4994
+ 429: TooManyRequestsError;
4995
+ /**
4996
+ * InternalServerError
4997
+ */
4998
+ 500: InternalServerError;
4999
+ /**
5000
+ * ServiceUnavailableError
5001
+ */
5002
+ 503: ServiceUnavailableError;
5003
+ };
5004
+ export type IntegrationsGetGitHubIntegrationError = IntegrationsGetGitHubIntegrationErrors[keyof IntegrationsGetGitHubIntegrationErrors];
5005
+ export type IntegrationsGetGitHubIntegrationResponses = {
5006
+ /**
5007
+ * Success
5008
+ */
5009
+ 200: {
5010
+ code: number;
5011
+ data: {
5012
+ appSlug: string | null;
5013
+ configured: boolean;
5014
+ installation: {
5015
+ accountLogin: string;
5016
+ backfillRequestedAt: string | null;
5017
+ createdAt: string;
5018
+ externalId: string;
5019
+ id: string;
5020
+ lastReconciledAt: string | null;
5021
+ repositoryCount: number;
5022
+ suspendedAt: string | null;
5023
+ uninstalledAt: string | null;
5024
+ updatedAt: string;
5025
+ } | null;
5026
+ } | null;
5027
+ error: {
5028
+ code: string;
5029
+ details?: unknown | null;
5030
+ message: string;
5031
+ rowErrors?: Array<{
5032
+ code: string;
5033
+ message: string;
5034
+ path: Array<string | number>;
5035
+ }> | null;
5036
+ } | null;
5037
+ pagination: {
5038
+ limit: number;
5039
+ page: number;
5040
+ total: number;
5041
+ totalPages: number;
5042
+ } | null;
5043
+ sdkBehavior?: {
5044
+ flags: {
5045
+ [key: string]: unknown;
5046
+ };
5047
+ v: number;
5048
+ } | null;
5049
+ success: boolean;
5050
+ };
5051
+ };
5052
+ export type IntegrationsGetGitHubIntegrationResponse = IntegrationsGetGitHubIntegrationResponses[keyof IntegrationsGetGitHubIntegrationResponses];
5053
+ export type IntegrationsCompleteGitHubIntegrationData = {
5054
+ body: {
5055
+ code: string;
5056
+ installationId?: string | null;
5057
+ setupAction?: string | null;
5058
+ state: string;
5059
+ };
5060
+ path: {
5061
+ orgId: string;
5062
+ };
5063
+ query?: never;
5064
+ url: '/v1/orgs/{orgId}/integrations/github/callback';
5065
+ };
5066
+ export type IntegrationsCompleteGitHubIntegrationErrors = {
5067
+ /**
5068
+ * BadRequestError
5069
+ */
5070
+ 400: BadRequestError;
5071
+ /**
5072
+ * UnauthorizedError
5073
+ */
5074
+ 401: UnauthorizedError;
5075
+ /**
5076
+ * ForbiddenError
5077
+ */
5078
+ 403: ForbiddenError;
5079
+ /**
5080
+ * NotFoundError
5081
+ */
5082
+ 404: NotFoundError;
5083
+ /**
5084
+ * ConflictError
5085
+ */
5086
+ 409: ConflictError;
5087
+ /**
5088
+ * GoneError
5089
+ */
5090
+ 410: GoneError;
5091
+ /**
5092
+ * ContentTooLargeError
5093
+ */
5094
+ 413: ContentTooLargeError;
5095
+ /**
5096
+ * MisdirectedRequestError
5097
+ */
5098
+ 421: MisdirectedRequestError;
5099
+ /**
5100
+ * UnprocessableEntityError
5101
+ */
5102
+ 422: UnprocessableEntityError;
5103
+ /**
5104
+ * TooManyRequestsError
5105
+ */
5106
+ 429: TooManyRequestsError;
5107
+ /**
5108
+ * InternalServerError
5109
+ */
5110
+ 500: InternalServerError;
5111
+ /**
5112
+ * ServiceUnavailableError
5113
+ */
5114
+ 503: ServiceUnavailableError;
5115
+ };
5116
+ export type IntegrationsCompleteGitHubIntegrationError = IntegrationsCompleteGitHubIntegrationErrors[keyof IntegrationsCompleteGitHubIntegrationErrors];
5117
+ export type IntegrationsCompleteGitHubIntegrationResponses = {
5118
+ /**
5119
+ * Success
5120
+ */
5121
+ 200: {
5122
+ code: number;
5123
+ data: {
5124
+ installation: {
5125
+ accountLogin: string;
5126
+ backfillRequestedAt: string | null;
5127
+ createdAt: string;
5128
+ externalId: string;
5129
+ id: string;
5130
+ lastReconciledAt: string | null;
5131
+ repositoryCount: number;
5132
+ suspendedAt: string | null;
5133
+ uninstalledAt: string | null;
5134
+ updatedAt: string;
5135
+ };
5136
+ } | null;
5137
+ error: {
5138
+ code: string;
5139
+ details?: unknown | null;
5140
+ message: string;
5141
+ rowErrors?: Array<{
5142
+ code: string;
5143
+ message: string;
5144
+ path: Array<string | number>;
5145
+ }> | null;
5146
+ } | null;
5147
+ pagination: {
5148
+ limit: number;
5149
+ page: number;
5150
+ total: number;
5151
+ totalPages: number;
5152
+ } | null;
5153
+ sdkBehavior?: {
5154
+ flags: {
5155
+ [key: string]: unknown;
5156
+ };
5157
+ v: number;
5158
+ } | null;
5159
+ success: boolean;
5160
+ };
5161
+ };
5162
+ export type IntegrationsCompleteGitHubIntegrationResponse = IntegrationsCompleteGitHubIntegrationResponses[keyof IntegrationsCompleteGitHubIntegrationResponses];
5163
+ export type IntegrationsConnectGitHubIntegrationData = {
5164
+ body: {
5165
+ accountLogin?: string | null;
5166
+ mode: 'install' | 'authorize';
5167
+ };
5168
+ path: {
5169
+ orgId: string;
5170
+ };
5171
+ query?: never;
5172
+ url: '/v1/orgs/{orgId}/integrations/github/connect';
5173
+ };
5174
+ export type IntegrationsConnectGitHubIntegrationErrors = {
5175
+ /**
5176
+ * BadRequestError
5177
+ */
5178
+ 400: BadRequestError;
5179
+ /**
5180
+ * UnauthorizedError
5181
+ */
5182
+ 401: UnauthorizedError;
5183
+ /**
5184
+ * ForbiddenError
5185
+ */
5186
+ 403: ForbiddenError;
5187
+ /**
5188
+ * NotFoundError
5189
+ */
5190
+ 404: NotFoundError;
5191
+ /**
5192
+ * ConflictError
5193
+ */
5194
+ 409: ConflictError;
5195
+ /**
5196
+ * GoneError
5197
+ */
5198
+ 410: GoneError;
5199
+ /**
5200
+ * ContentTooLargeError
5201
+ */
5202
+ 413: ContentTooLargeError;
5203
+ /**
5204
+ * MisdirectedRequestError
5205
+ */
5206
+ 421: MisdirectedRequestError;
5207
+ /**
5208
+ * UnprocessableEntityError
5209
+ */
5210
+ 422: UnprocessableEntityError;
5211
+ /**
5212
+ * TooManyRequestsError
5213
+ */
5214
+ 429: TooManyRequestsError;
5215
+ /**
5216
+ * InternalServerError
5217
+ */
5218
+ 500: InternalServerError;
5219
+ /**
5220
+ * ServiceUnavailableError
5221
+ */
5222
+ 503: ServiceUnavailableError;
5223
+ };
5224
+ export type IntegrationsConnectGitHubIntegrationError = IntegrationsConnectGitHubIntegrationErrors[keyof IntegrationsConnectGitHubIntegrationErrors];
5225
+ export type IntegrationsConnectGitHubIntegrationResponses = {
5226
+ /**
5227
+ * Success
5228
+ */
5229
+ 200: {
5230
+ code: number;
5231
+ data: {
5232
+ state: string;
5233
+ url: string;
5234
+ } | null;
5235
+ error: {
5236
+ code: string;
5237
+ details?: unknown | null;
5238
+ message: string;
5239
+ rowErrors?: Array<{
5240
+ code: string;
5241
+ message: string;
5242
+ path: Array<string | number>;
5243
+ }> | null;
5244
+ } | null;
5245
+ pagination: {
5246
+ limit: number;
5247
+ page: number;
5248
+ total: number;
5249
+ totalPages: number;
5250
+ } | null;
5251
+ sdkBehavior?: {
5252
+ flags: {
5253
+ [key: string]: unknown;
5254
+ };
5255
+ v: number;
5256
+ } | null;
5257
+ success: boolean;
5258
+ };
5259
+ };
5260
+ export type IntegrationsConnectGitHubIntegrationResponse = IntegrationsConnectGitHubIntegrationResponses[keyof IntegrationsConnectGitHubIntegrationResponses];
5261
+ export type IntegrationsRemoveGitHubUserLinkData = {
5262
+ body?: never;
5263
+ path: {
5264
+ orgId: string;
5265
+ };
5266
+ query?: never;
5267
+ url: '/v1/orgs/{orgId}/integrations/github/user-link';
5268
+ };
5269
+ export type IntegrationsRemoveGitHubUserLinkErrors = {
5270
+ /**
5271
+ * BadRequestError
5272
+ */
5273
+ 400: BadRequestError;
5274
+ /**
5275
+ * UnauthorizedError
5276
+ */
5277
+ 401: UnauthorizedError;
5278
+ /**
5279
+ * ForbiddenError
5280
+ */
5281
+ 403: ForbiddenError;
5282
+ /**
5283
+ * NotFoundError
5284
+ */
5285
+ 404: NotFoundError;
5286
+ /**
5287
+ * ConflictError
5288
+ */
5289
+ 409: ConflictError;
5290
+ /**
5291
+ * GoneError
5292
+ */
5293
+ 410: GoneError;
5294
+ /**
5295
+ * ContentTooLargeError
5296
+ */
5297
+ 413: ContentTooLargeError;
5298
+ /**
5299
+ * MisdirectedRequestError
5300
+ */
5301
+ 421: MisdirectedRequestError;
5302
+ /**
5303
+ * UnprocessableEntityError
5304
+ */
5305
+ 422: UnprocessableEntityError;
5306
+ /**
5307
+ * TooManyRequestsError
5308
+ */
5309
+ 429: TooManyRequestsError;
5310
+ /**
5311
+ * InternalServerError
5312
+ */
5313
+ 500: InternalServerError;
5314
+ /**
5315
+ * ServiceUnavailableError
5316
+ */
5317
+ 503: ServiceUnavailableError;
5318
+ };
5319
+ export type IntegrationsRemoveGitHubUserLinkError = IntegrationsRemoveGitHubUserLinkErrors[keyof IntegrationsRemoveGitHubUserLinkErrors];
5320
+ export type IntegrationsRemoveGitHubUserLinkResponses = {
5321
+ /**
5322
+ * Success
5323
+ */
5324
+ 200: {
5325
+ code: number;
5326
+ data: {
5327
+ removed: boolean;
5328
+ } | null;
5329
+ error: {
5330
+ code: string;
5331
+ details?: unknown | null;
5332
+ message: string;
5333
+ rowErrors?: Array<{
5334
+ code: string;
5335
+ message: string;
5336
+ path: Array<string | number>;
5337
+ }> | null;
5338
+ } | null;
5339
+ pagination: {
5340
+ limit: number;
5341
+ page: number;
5342
+ total: number;
5343
+ totalPages: number;
5344
+ } | null;
5345
+ sdkBehavior?: {
5346
+ flags: {
5347
+ [key: string]: unknown;
5348
+ };
5349
+ v: number;
5350
+ } | null;
5351
+ success: boolean;
5352
+ };
5353
+ };
5354
+ export type IntegrationsRemoveGitHubUserLinkResponse = IntegrationsRemoveGitHubUserLinkResponses[keyof IntegrationsRemoveGitHubUserLinkResponses];
5355
+ export type IntegrationsGetGitHubUserLinkData = {
5356
+ body?: never;
5357
+ path: {
5358
+ orgId: string;
5359
+ };
5360
+ query?: never;
5361
+ url: '/v1/orgs/{orgId}/integrations/github/user-link';
5362
+ };
5363
+ export type IntegrationsGetGitHubUserLinkErrors = {
5364
+ /**
5365
+ * BadRequestError
5366
+ */
5367
+ 400: BadRequestError;
5368
+ /**
5369
+ * UnauthorizedError
5370
+ */
5371
+ 401: UnauthorizedError;
5372
+ /**
5373
+ * ForbiddenError
5374
+ */
5375
+ 403: ForbiddenError;
5376
+ /**
5377
+ * NotFoundError
5378
+ */
5379
+ 404: NotFoundError;
5380
+ /**
5381
+ * ConflictError
5382
+ */
5383
+ 409: ConflictError;
5384
+ /**
5385
+ * GoneError
5386
+ */
5387
+ 410: GoneError;
5388
+ /**
5389
+ * ContentTooLargeError
5390
+ */
5391
+ 413: ContentTooLargeError;
5392
+ /**
5393
+ * MisdirectedRequestError
5394
+ */
5395
+ 421: MisdirectedRequestError;
5396
+ /**
5397
+ * UnprocessableEntityError
5398
+ */
5399
+ 422: UnprocessableEntityError;
5400
+ /**
5401
+ * TooManyRequestsError
5402
+ */
5403
+ 429: TooManyRequestsError;
5404
+ /**
5405
+ * InternalServerError
5406
+ */
5407
+ 500: InternalServerError;
5408
+ /**
5409
+ * ServiceUnavailableError
5410
+ */
5411
+ 503: ServiceUnavailableError;
5412
+ };
5413
+ export type IntegrationsGetGitHubUserLinkError = IntegrationsGetGitHubUserLinkErrors[keyof IntegrationsGetGitHubUserLinkErrors];
5414
+ export type IntegrationsGetGitHubUserLinkResponses = {
5415
+ /**
5416
+ * Success
5417
+ */
5418
+ 200: {
5419
+ code: number;
5420
+ data: {
5421
+ configured: boolean;
5422
+ link: {
5423
+ githubLogin: string;
5424
+ githubUserId: string;
5425
+ linkedAt: string;
5426
+ source: 'user_authorization' | 'installation' | 'sign_in';
5427
+ } | null;
5428
+ signInAccount: {
5429
+ githubLogin: string;
5430
+ githubUserId: string;
5431
+ } | null;
5432
+ } | null;
5433
+ error: {
5434
+ code: string;
5435
+ details?: unknown | null;
5436
+ message: string;
5437
+ rowErrors?: Array<{
5438
+ code: string;
5439
+ message: string;
5440
+ path: Array<string | number>;
5441
+ }> | null;
5442
+ } | null;
5443
+ pagination: {
5444
+ limit: number;
5445
+ page: number;
5446
+ total: number;
5447
+ totalPages: number;
5448
+ } | null;
5449
+ sdkBehavior?: {
5450
+ flags: {
5451
+ [key: string]: unknown;
5452
+ };
5453
+ v: number;
5454
+ } | null;
5455
+ success: boolean;
5456
+ };
5457
+ };
5458
+ export type IntegrationsGetGitHubUserLinkResponse = IntegrationsGetGitHubUserLinkResponses[keyof IntegrationsGetGitHubUserLinkResponses];
5459
+ export type IntegrationsCompleteGitHubUserLinkData = {
5460
+ body: {
5461
+ code: string;
5462
+ state: string;
5463
+ };
5464
+ path: {
5465
+ orgId: string;
5466
+ };
5467
+ query?: never;
5468
+ url: '/v1/orgs/{orgId}/integrations/github/user-link/callback';
5469
+ };
5470
+ export type IntegrationsCompleteGitHubUserLinkErrors = {
5471
+ /**
5472
+ * BadRequestError
5473
+ */
5474
+ 400: BadRequestError;
5475
+ /**
5476
+ * UnauthorizedError
5477
+ */
5478
+ 401: UnauthorizedError;
5479
+ /**
5480
+ * ForbiddenError
5481
+ */
5482
+ 403: ForbiddenError;
5483
+ /**
5484
+ * NotFoundError
5485
+ */
5486
+ 404: NotFoundError;
5487
+ /**
5488
+ * ConflictError
5489
+ */
5490
+ 409: ConflictError;
5491
+ /**
5492
+ * GoneError
5493
+ */
5494
+ 410: GoneError;
5495
+ /**
5496
+ * ContentTooLargeError
5497
+ */
5498
+ 413: ContentTooLargeError;
5499
+ /**
5500
+ * MisdirectedRequestError
5501
+ */
5502
+ 421: MisdirectedRequestError;
5503
+ /**
5504
+ * UnprocessableEntityError
5505
+ */
5506
+ 422: UnprocessableEntityError;
5507
+ /**
5508
+ * TooManyRequestsError
5509
+ */
5510
+ 429: TooManyRequestsError;
5511
+ /**
5512
+ * InternalServerError
5513
+ */
5514
+ 500: InternalServerError;
5515
+ /**
5516
+ * ServiceUnavailableError
5517
+ */
5518
+ 503: ServiceUnavailableError;
5519
+ };
5520
+ export type IntegrationsCompleteGitHubUserLinkError = IntegrationsCompleteGitHubUserLinkErrors[keyof IntegrationsCompleteGitHubUserLinkErrors];
5521
+ export type IntegrationsCompleteGitHubUserLinkResponses = {
5522
+ /**
5523
+ * Success
5524
+ */
5525
+ 200: {
5526
+ code: number;
5527
+ data: {
5528
+ link: {
5529
+ githubLogin: string;
5530
+ githubUserId: string;
5531
+ linkedAt: string;
5532
+ source: 'user_authorization' | 'installation' | 'sign_in';
5533
+ };
5534
+ } | null;
5535
+ error: {
5536
+ code: string;
5537
+ details?: unknown | null;
5538
+ message: string;
5539
+ rowErrors?: Array<{
5540
+ code: string;
5541
+ message: string;
5542
+ path: Array<string | number>;
5543
+ }> | null;
5544
+ } | null;
5545
+ pagination: {
5546
+ limit: number;
5547
+ page: number;
5548
+ total: number;
5549
+ totalPages: number;
5550
+ } | null;
5551
+ sdkBehavior?: {
5552
+ flags: {
5553
+ [key: string]: unknown;
5554
+ };
5555
+ v: number;
5556
+ } | null;
5557
+ success: boolean;
5558
+ };
5559
+ };
5560
+ export type IntegrationsCompleteGitHubUserLinkResponse = IntegrationsCompleteGitHubUserLinkResponses[keyof IntegrationsCompleteGitHubUserLinkResponses];
5561
+ export type IntegrationsConnectGitHubUserLinkData = {
5562
+ body?: never;
5563
+ path: {
5564
+ orgId: string;
5565
+ };
5566
+ query?: never;
5567
+ url: '/v1/orgs/{orgId}/integrations/github/user-link/connect';
5568
+ };
5569
+ export type IntegrationsConnectGitHubUserLinkErrors = {
5570
+ /**
5571
+ * BadRequestError
5572
+ */
5573
+ 400: BadRequestError;
5574
+ /**
5575
+ * UnauthorizedError
5576
+ */
5577
+ 401: UnauthorizedError;
5578
+ /**
5579
+ * ForbiddenError
5580
+ */
5581
+ 403: ForbiddenError;
5582
+ /**
5583
+ * NotFoundError
5584
+ */
5585
+ 404: NotFoundError;
5586
+ /**
5587
+ * ConflictError
5588
+ */
5589
+ 409: ConflictError;
5590
+ /**
5591
+ * GoneError
5592
+ */
5593
+ 410: GoneError;
5594
+ /**
5595
+ * ContentTooLargeError
5596
+ */
5597
+ 413: ContentTooLargeError;
5598
+ /**
5599
+ * MisdirectedRequestError
5600
+ */
5601
+ 421: MisdirectedRequestError;
5602
+ /**
5603
+ * UnprocessableEntityError
5604
+ */
5605
+ 422: UnprocessableEntityError;
5606
+ /**
5607
+ * TooManyRequestsError
5608
+ */
5609
+ 429: TooManyRequestsError;
5610
+ /**
5611
+ * InternalServerError
5612
+ */
5613
+ 500: InternalServerError;
5614
+ /**
5615
+ * ServiceUnavailableError
5616
+ */
5617
+ 503: ServiceUnavailableError;
5618
+ };
5619
+ export type IntegrationsConnectGitHubUserLinkError = IntegrationsConnectGitHubUserLinkErrors[keyof IntegrationsConnectGitHubUserLinkErrors];
5620
+ export type IntegrationsConnectGitHubUserLinkResponses = {
5621
+ /**
5622
+ * Success
5623
+ */
5624
+ 200: {
5625
+ code: number;
5626
+ data: {
5627
+ state: string;
5628
+ url: string;
5629
+ } | null;
5630
+ error: {
5631
+ code: string;
5632
+ details?: unknown | null;
5633
+ message: string;
5634
+ rowErrors?: Array<{
5635
+ code: string;
5636
+ message: string;
5637
+ path: Array<string | number>;
5638
+ }> | null;
5639
+ } | null;
5640
+ pagination: {
5641
+ limit: number;
5642
+ page: number;
5643
+ total: number;
5644
+ totalPages: number;
5645
+ } | null;
5646
+ sdkBehavior?: {
5647
+ flags: {
5648
+ [key: string]: unknown;
5649
+ };
5650
+ v: number;
5651
+ } | null;
5652
+ success: boolean;
5653
+ };
5654
+ };
5655
+ export type IntegrationsConnectGitHubUserLinkResponse = IntegrationsConnectGitHubUserLinkResponses[keyof IntegrationsConnectGitHubUserLinkResponses];
5656
+ export type IntegrationsLinkGitHubSignInAccountData = {
5657
+ body?: never;
5658
+ path: {
5659
+ orgId: string;
5660
+ };
5661
+ query?: never;
5662
+ url: '/v1/orgs/{orgId}/integrations/github/user-link/sign-in-account';
5663
+ };
5664
+ export type IntegrationsLinkGitHubSignInAccountErrors = {
5665
+ /**
5666
+ * BadRequestError
5667
+ */
5668
+ 400: BadRequestError;
5669
+ /**
5670
+ * UnauthorizedError
5671
+ */
5672
+ 401: UnauthorizedError;
5673
+ /**
5674
+ * ForbiddenError
5675
+ */
5676
+ 403: ForbiddenError;
5677
+ /**
5678
+ * NotFoundError
5679
+ */
5680
+ 404: NotFoundError;
5681
+ /**
5682
+ * ConflictError
5683
+ */
5684
+ 409: ConflictError;
5685
+ /**
5686
+ * GoneError
5687
+ */
5688
+ 410: GoneError;
5689
+ /**
5690
+ * ContentTooLargeError
5691
+ */
5692
+ 413: ContentTooLargeError;
5693
+ /**
5694
+ * MisdirectedRequestError
5695
+ */
5696
+ 421: MisdirectedRequestError;
5697
+ /**
5698
+ * UnprocessableEntityError
5699
+ */
5700
+ 422: UnprocessableEntityError;
5701
+ /**
5702
+ * TooManyRequestsError
5703
+ */
5704
+ 429: TooManyRequestsError;
5705
+ /**
5706
+ * InternalServerError
5707
+ */
5708
+ 500: InternalServerError;
5709
+ /**
5710
+ * ServiceUnavailableError
5711
+ */
5712
+ 503: ServiceUnavailableError;
5713
+ };
5714
+ export type IntegrationsLinkGitHubSignInAccountError = IntegrationsLinkGitHubSignInAccountErrors[keyof IntegrationsLinkGitHubSignInAccountErrors];
5715
+ export type IntegrationsLinkGitHubSignInAccountResponses = {
5716
+ /**
5717
+ * Success
5718
+ */
5719
+ 200: {
5720
+ code: number;
5721
+ data: {
5722
+ link: {
5723
+ githubLogin: string;
5724
+ githubUserId: string;
5725
+ linkedAt: string;
5726
+ source: 'user_authorization' | 'installation' | 'sign_in';
5727
+ };
5728
+ } | null;
5729
+ error: {
5730
+ code: string;
5731
+ details?: unknown | null;
5732
+ message: string;
5733
+ rowErrors?: Array<{
5734
+ code: string;
5735
+ message: string;
5736
+ path: Array<string | number>;
5737
+ }> | null;
5738
+ } | null;
5739
+ pagination: {
5740
+ limit: number;
5741
+ page: number;
5742
+ total: number;
5743
+ totalPages: number;
5744
+ } | null;
5745
+ sdkBehavior?: {
5746
+ flags: {
5747
+ [key: string]: unknown;
5748
+ };
5749
+ v: number;
5750
+ } | null;
5751
+ success: boolean;
5752
+ };
5753
+ };
5754
+ export type IntegrationsLinkGitHubSignInAccountResponse = IntegrationsLinkGitHubSignInAccountResponses[keyof IntegrationsLinkGitHubSignInAccountResponses];
4946
5755
  export type OrganizationsListOrganizationInvitationsData = {
4947
5756
  body?: never;
4948
5757
  path: {
@@ -12691,7 +13500,20 @@ export type ProjectOverviewGetProjectOverviewResponses = {
12691
13500
  200: {
12692
13501
  code: number;
12693
13502
  data: {
13503
+ apiPriceEquivalentUsd: number | null;
13504
+ billedCostUsd: number | null;
13505
+ byBillingMode: Array<{
13506
+ apiPriceEquivalentUsd: number | null;
13507
+ billedCostUsd: number | null;
13508
+ billingMode: 'subscription' | 'api' | 'unknown';
13509
+ estimatedCostUsd: number | null;
13510
+ spanCount: number;
13511
+ totalTokens: number;
13512
+ traceCount: number;
13513
+ }>;
12694
13514
  cost: {
13515
+ api_price_equivalent_total?: number | null | null;
13516
+ billed_total?: number | null | null;
12695
13517
  by_model?: Array<{
12696
13518
  mode?: string | null;
12697
13519
  model: string;
@@ -12791,7 +13613,11 @@ export type ProjectOverviewGetProjectOverviewResponses = {
12791
13613
  traceId: string;
12792
13614
  }>;
12793
13615
  timeSeries: Array<{
13616
+ apiPriceEquivalentUsd: number | null;
13617
+ billedCostUsd: number | null;
12794
13618
  cost: {
13619
+ api_price_equivalent_total?: number | null | null;
13620
+ billed_total?: number | null | null;
12795
13621
  by_model?: Array<{
12796
13622
  mode?: string | null;
12797
13623
  model: string;
@@ -12877,9 +13703,14 @@ export type ProjectOverviewGetProjectOverviewResponses = {
12877
13703
  estimatedCostUsd: number | null;
12878
13704
  timestamp: string;
12879
13705
  traceCount: number;
13706
+ unclassifiedApiPriceEquivalentUsd: number | null;
12880
13707
  }>;
12881
13708
  topModels: Array<{
13709
+ apiPriceEquivalentUsd: number | null;
13710
+ billedCostUsd: number | null;
12882
13711
  cost: {
13712
+ api_price_equivalent_total?: number | null | null;
13713
+ billed_total?: number | null | null;
12883
13714
  by_model?: Array<{
12884
13715
  mode?: string | null;
12885
13716
  model: string;
@@ -12975,6 +13806,7 @@ export type ProjectOverviewGetProjectOverviewResponses = {
12975
13806
  totalTokens: number;
12976
13807
  totalTraces: number;
12977
13808
  tracesReadable: boolean;
13809
+ unclassifiedApiPriceEquivalentUsd: number | null;
12978
13810
  } | null;
12979
13811
  error: {
12980
13812
  code: string;
@@ -22929,6 +23761,7 @@ export type TracesListTracesData = {
22929
23761
  vcsRepositoryUrl?: string | null;
22930
23762
  vcsHeadName?: string | null;
22931
23763
  vcsHeadRevision?: string | null;
23764
+ billingMode?: 'subscription' | 'api' | 'unknown' | Array<'subscription' | 'api' | 'unknown'> | null;
22932
23765
  minTokens?: string | null;
22933
23766
  maxTokens?: string | null;
22934
23767
  minCost?: string | null;
@@ -22998,7 +23831,12 @@ export type TracesListTracesResponses = {
22998
23831
  200: {
22999
23832
  code: number;
23000
23833
  data: Array<{
23834
+ api_price_equivalent_usd: number | null;
23835
+ billed_cost_usd: number | null;
23836
+ billing_mode: 'subscription' | 'api' | 'unknown' | 'mixed' | null;
23001
23837
  cost: {
23838
+ api_price_equivalent_total?: number | null | null;
23839
+ billed_total?: number | null | null;
23002
23840
  by_model?: Array<{
23003
23841
  mode?: string | null;
23004
23842
  model: string;
@@ -23083,6 +23921,7 @@ export type TracesListTracesResponses = {
23083
23921
  cost_usd: number | null;
23084
23922
  duration_ms: number;
23085
23923
  input_tokens: number;
23924
+ llm_call_count: number;
23086
23925
  model: string;
23087
23926
  output_tokens: number;
23088
23927
  prompt_id: string | null;
@@ -23127,6 +23966,100 @@ export type TracesListTracesResponses = {
23127
23966
  };
23128
23967
  };
23129
23968
  export type TracesListTracesResponse = TracesListTracesResponses[keyof TracesListTracesResponses];
23969
+ export type TracesGetTraceExistenceData = {
23970
+ body?: never;
23971
+ path: {
23972
+ projectId: string;
23973
+ };
23974
+ query?: never;
23975
+ url: '/v1/projects/{projectId}/traces/exists';
23976
+ };
23977
+ export type TracesGetTraceExistenceErrors = {
23978
+ /**
23979
+ * BadRequestError
23980
+ */
23981
+ 400: BadRequestError;
23982
+ /**
23983
+ * UnauthorizedError
23984
+ */
23985
+ 401: UnauthorizedError;
23986
+ /**
23987
+ * ForbiddenError
23988
+ */
23989
+ 403: ForbiddenError;
23990
+ /**
23991
+ * NotFoundError
23992
+ */
23993
+ 404: NotFoundError;
23994
+ /**
23995
+ * ConflictError
23996
+ */
23997
+ 409: ConflictError;
23998
+ /**
23999
+ * GoneError
24000
+ */
24001
+ 410: GoneError;
24002
+ /**
24003
+ * ContentTooLargeError
24004
+ */
24005
+ 413: ContentTooLargeError;
24006
+ /**
24007
+ * MisdirectedRequestError
24008
+ */
24009
+ 421: MisdirectedRequestError;
24010
+ /**
24011
+ * UnprocessableEntityError
24012
+ */
24013
+ 422: UnprocessableEntityError;
24014
+ /**
24015
+ * TooManyRequestsError
24016
+ */
24017
+ 429: TooManyRequestsError;
24018
+ /**
24019
+ * InternalServerError
24020
+ */
24021
+ 500: InternalServerError;
24022
+ /**
24023
+ * ServiceUnavailableError
24024
+ */
24025
+ 503: ServiceUnavailableError;
24026
+ };
24027
+ export type TracesGetTraceExistenceError = TracesGetTraceExistenceErrors[keyof TracesGetTraceExistenceErrors];
24028
+ export type TracesGetTraceExistenceResponses = {
24029
+ /**
24030
+ * Success
24031
+ */
24032
+ 200: {
24033
+ code: number;
24034
+ data: {
24035
+ exists: boolean;
24036
+ } | null;
24037
+ error: {
24038
+ code: string;
24039
+ details?: unknown | null;
24040
+ message: string;
24041
+ rowErrors?: Array<{
24042
+ code: string;
24043
+ message: string;
24044
+ path: Array<string | number>;
24045
+ }> | null;
24046
+ } | null;
24047
+ pagination: {
24048
+ limit: number;
24049
+ page: number;
24050
+ total: number;
24051
+ totalPages: number;
24052
+ } | null;
24053
+ sdkBehavior?: {
24054
+ flags: {
24055
+ [key: string]: unknown;
24056
+ };
24057
+ v: number;
24058
+ } | null;
24059
+ success: boolean;
24060
+ };
24061
+ };
24062
+ export type TracesGetTraceExistenceResponse = TracesGetTraceExistenceResponses[keyof TracesGetTraceExistenceResponses];
23130
24063
  export type TracesListTracePromptFacetsData = {
23131
24064
  body?: never;
23132
24065
  path: {
@@ -23145,6 +24078,7 @@ export type TracesListTracePromptFacetsData = {
23145
24078
  vcsRepositoryUrl?: string | null;
23146
24079
  vcsHeadName?: string | null;
23147
24080
  vcsHeadRevision?: string | null;
24081
+ billingMode?: 'subscription' | 'api' | 'unknown' | Array<'subscription' | 'api' | 'unknown'> | null;
23148
24082
  minTokens?: string | null;
23149
24083
  maxTokens?: string | null;
23150
24084
  minCost?: string | null;
@@ -23311,7 +24245,12 @@ export type TracesGetTraceDetailResponses = {
23311
24245
  200: {
23312
24246
  code: number;
23313
24247
  data: {
24248
+ api_price_equivalent_usd: number | null;
24249
+ billed_cost_usd: number | null;
24250
+ billing_mode: 'subscription' | 'api' | 'unknown' | 'mixed' | null;
23314
24251
  cost: {
24252
+ api_price_equivalent_total?: number | null | null;
24253
+ billed_total?: number | null | null;
23315
24254
  by_model?: Array<{
23316
24255
  mode?: string | null;
23317
24256
  model: string;
@@ -23395,9 +24334,12 @@ export type TracesGetTraceDetailResponses = {
23395
24334
  };
23396
24335
  duration_ms: number;
23397
24336
  spans: Array<{
24337
+ api_price_equivalent_usd: number | null;
23398
24338
  attributes: {
23399
24339
  [key: string]: string | number | boolean | null;
23400
24340
  };
24341
+ billed_cost_usd: number | null;
24342
+ billing_mode: 'subscription' | 'api' | 'unknown' | null;
23401
24343
  consumedBy?: Array<{
23402
24344
  kind: string;
23403
24345
  name: string;
@@ -23405,6 +24347,8 @@ export type TracesGetTraceDetailResponses = {
23405
24347
  traceId: string;
23406
24348
  }> | null;
23407
24349
  cost: {
24350
+ api_price_equivalent_total?: number | null | null;
24351
+ billed_total?: number | null | null;
23408
24352
  currency: 'USD';
23409
24353
  tokens: {
23410
24354
  cache_creation?: {
@@ -23902,6 +24846,101 @@ export type ClerkWebhooksReceiveClerkWebhookResponses = {
23902
24846
  };
23903
24847
  };
23904
24848
  export type ClerkWebhooksReceiveClerkWebhookResponse = ClerkWebhooksReceiveClerkWebhookResponses[keyof ClerkWebhooksReceiveClerkWebhookResponses];
24849
+ export type IntegrationsReceiveIntegrationWebhookData = {
24850
+ body?: never;
24851
+ path: {
24852
+ provider: string;
24853
+ endpointRef: string;
24854
+ };
24855
+ query?: never;
24856
+ url: '/v1/webhooks/{provider}/{endpointRef}';
24857
+ };
24858
+ export type IntegrationsReceiveIntegrationWebhookErrors = {
24859
+ /**
24860
+ * BadRequestError
24861
+ */
24862
+ 400: BadRequestError;
24863
+ /**
24864
+ * UnauthorizedError
24865
+ */
24866
+ 401: UnauthorizedError;
24867
+ /**
24868
+ * ForbiddenError
24869
+ */
24870
+ 403: ForbiddenError;
24871
+ /**
24872
+ * NotFoundError
24873
+ */
24874
+ 404: NotFoundError;
24875
+ /**
24876
+ * ConflictError
24877
+ */
24878
+ 409: ConflictError;
24879
+ /**
24880
+ * GoneError
24881
+ */
24882
+ 410: GoneError;
24883
+ /**
24884
+ * ContentTooLargeError
24885
+ */
24886
+ 413: ContentTooLargeError;
24887
+ /**
24888
+ * MisdirectedRequestError
24889
+ */
24890
+ 421: MisdirectedRequestError;
24891
+ /**
24892
+ * UnprocessableEntityError
24893
+ */
24894
+ 422: UnprocessableEntityError;
24895
+ /**
24896
+ * TooManyRequestsError
24897
+ */
24898
+ 429: TooManyRequestsError;
24899
+ /**
24900
+ * InternalServerError
24901
+ */
24902
+ 500: InternalServerError;
24903
+ /**
24904
+ * ServiceUnavailableError
24905
+ */
24906
+ 503: ServiceUnavailableError;
24907
+ };
24908
+ export type IntegrationsReceiveIntegrationWebhookError = IntegrationsReceiveIntegrationWebhookErrors[keyof IntegrationsReceiveIntegrationWebhookErrors];
24909
+ export type IntegrationsReceiveIntegrationWebhookResponses = {
24910
+ /**
24911
+ * Success
24912
+ */
24913
+ 202: {
24914
+ code: number;
24915
+ data: {
24916
+ received: boolean;
24917
+ } | null;
24918
+ error: {
24919
+ code: string;
24920
+ details?: unknown | null;
24921
+ message: string;
24922
+ rowErrors?: Array<{
24923
+ code: string;
24924
+ message: string;
24925
+ path: Array<string | number>;
24926
+ }> | null;
24927
+ } | null;
24928
+ pagination: {
24929
+ limit: number;
24930
+ page: number;
24931
+ total: number;
24932
+ totalPages: number;
24933
+ } | null;
24934
+ sdkBehavior?: {
24935
+ flags: {
24936
+ [key: string]: unknown;
24937
+ };
24938
+ v: number;
24939
+ } | null;
24940
+ success: boolean;
24941
+ };
24942
+ };
24943
+ export type IntegrationsReceiveIntegrationWebhookResponse = IntegrationsReceiveIntegrationWebhookResponses[keyof IntegrationsReceiveIntegrationWebhookResponses];
23905
24944
  export type ProjectsListProjectsData = {
23906
24945
  body?: never;
23907
24946
  path: {