@to11ai/sdk 0.3.0 → 0.5.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.
@@ -227,6 +227,7 @@ export type PromptLabelEvent = {
227
227
  export type PromptLabelPointer = {
228
228
  label: string;
229
229
  promptId: string;
230
+ reason: string;
230
231
  updatedAt: string;
231
232
  updatedByDisplayName: string | null;
232
233
  updatedByUserId: string;
@@ -246,7 +247,7 @@ export type PromptRelease = {
246
247
  id: string;
247
248
  priorReleaseId: string | null;
248
249
  promptId: string;
249
- reason: string | null;
250
+ reason: string;
250
251
  strategy: 'single' | 'weighted';
251
252
  versionId: string;
252
253
  };
@@ -1352,200 +1353,6 @@ export type DataCentersGetDataCenterBootstrapStatusResponses = {
1352
1353
 
1353
1354
  export type DataCentersGetDataCenterBootstrapStatusResponse = DataCentersGetDataCenterBootstrapStatusResponses[keyof DataCentersGetDataCenterBootstrapStatusResponses];
1354
1355
 
1355
- export type PlatformSettingsGetMultiDcRoutingToggleData = {
1356
- body?: never;
1357
- path?: never;
1358
- query?: never;
1359
- url: '/v1/admin/multi-dc-routing';
1360
- };
1361
-
1362
- export type PlatformSettingsGetMultiDcRoutingToggleErrors = {
1363
- /**
1364
- * BadRequestError
1365
- */
1366
- 400: BadRequestError;
1367
- /**
1368
- * UnauthorizedError
1369
- */
1370
- 401: UnauthorizedError;
1371
- /**
1372
- * ForbiddenError
1373
- */
1374
- 403: ForbiddenError;
1375
- /**
1376
- * NotFoundError
1377
- */
1378
- 404: NotFoundError;
1379
- /**
1380
- * ConflictError
1381
- */
1382
- 409: ConflictError;
1383
- /**
1384
- * GoneError
1385
- */
1386
- 410: GoneError;
1387
- /**
1388
- * MisdirectedRequestError
1389
- */
1390
- 421: MisdirectedRequestError;
1391
- /**
1392
- * UnprocessableEntityError
1393
- */
1394
- 422: UnprocessableEntityError;
1395
- /**
1396
- * TooManyRequestsError
1397
- */
1398
- 429: TooManyRequestsError;
1399
- /**
1400
- * InternalServerError
1401
- */
1402
- 500: InternalServerError;
1403
- /**
1404
- * ServiceUnavailableError
1405
- */
1406
- 503: ServiceUnavailableError;
1407
- };
1408
-
1409
- export type PlatformSettingsGetMultiDcRoutingToggleError = PlatformSettingsGetMultiDcRoutingToggleErrors[keyof PlatformSettingsGetMultiDcRoutingToggleErrors];
1410
-
1411
- export type PlatformSettingsGetMultiDcRoutingToggleResponses = {
1412
- /**
1413
- * Success
1414
- */
1415
- 200: {
1416
- code: number;
1417
- data: {
1418
- createdAt: string;
1419
- enabled: boolean;
1420
- key: string;
1421
- updatedAt: string;
1422
- } | null;
1423
- error: {
1424
- code: string;
1425
- details?: unknown | null;
1426
- message: string;
1427
- rowErrors?: Array<{
1428
- code: string;
1429
- message: string;
1430
- path: Array<string | number>;
1431
- }> | null;
1432
- } | null;
1433
- pagination: {
1434
- limit: number;
1435
- page: number;
1436
- total: number;
1437
- totalPages: number;
1438
- } | null;
1439
- sdkBehavior?: {
1440
- flags: {
1441
- [key: string]: unknown;
1442
- };
1443
- v: number;
1444
- } | null;
1445
- success: boolean;
1446
- };
1447
- };
1448
-
1449
- export type PlatformSettingsGetMultiDcRoutingToggleResponse = PlatformSettingsGetMultiDcRoutingToggleResponses[keyof PlatformSettingsGetMultiDcRoutingToggleResponses];
1450
-
1451
- export type PlatformSettingsUpdateMultiDcRoutingToggleData = {
1452
- body: {
1453
- enabled: boolean;
1454
- };
1455
- path?: never;
1456
- query?: never;
1457
- url: '/v1/admin/multi-dc-routing';
1458
- };
1459
-
1460
- export type PlatformSettingsUpdateMultiDcRoutingToggleErrors = {
1461
- /**
1462
- * BadRequestError
1463
- */
1464
- 400: BadRequestError;
1465
- /**
1466
- * UnauthorizedError
1467
- */
1468
- 401: UnauthorizedError;
1469
- /**
1470
- * ForbiddenError
1471
- */
1472
- 403: ForbiddenError;
1473
- /**
1474
- * NotFoundError
1475
- */
1476
- 404: NotFoundError;
1477
- /**
1478
- * ConflictError
1479
- */
1480
- 409: ConflictError;
1481
- /**
1482
- * GoneError
1483
- */
1484
- 410: GoneError;
1485
- /**
1486
- * MisdirectedRequestError
1487
- */
1488
- 421: MisdirectedRequestError;
1489
- /**
1490
- * UnprocessableEntityError
1491
- */
1492
- 422: UnprocessableEntityError;
1493
- /**
1494
- * TooManyRequestsError
1495
- */
1496
- 429: TooManyRequestsError;
1497
- /**
1498
- * InternalServerError
1499
- */
1500
- 500: InternalServerError;
1501
- /**
1502
- * ServiceUnavailableError
1503
- */
1504
- 503: ServiceUnavailableError;
1505
- };
1506
-
1507
- export type PlatformSettingsUpdateMultiDcRoutingToggleError = PlatformSettingsUpdateMultiDcRoutingToggleErrors[keyof PlatformSettingsUpdateMultiDcRoutingToggleErrors];
1508
-
1509
- export type PlatformSettingsUpdateMultiDcRoutingToggleResponses = {
1510
- /**
1511
- * Success
1512
- */
1513
- 200: {
1514
- code: number;
1515
- data: {
1516
- createdAt: string;
1517
- enabled: boolean;
1518
- key: string;
1519
- updatedAt: string;
1520
- } | null;
1521
- error: {
1522
- code: string;
1523
- details?: unknown | null;
1524
- message: string;
1525
- rowErrors?: Array<{
1526
- code: string;
1527
- message: string;
1528
- path: Array<string | number>;
1529
- }> | null;
1530
- } | null;
1531
- pagination: {
1532
- limit: number;
1533
- page: number;
1534
- total: number;
1535
- totalPages: number;
1536
- } | null;
1537
- sdkBehavior?: {
1538
- flags: {
1539
- [key: string]: unknown;
1540
- };
1541
- v: number;
1542
- } | null;
1543
- success: boolean;
1544
- };
1545
- };
1546
-
1547
- export type PlatformSettingsUpdateMultiDcRoutingToggleResponse = PlatformSettingsUpdateMultiDcRoutingToggleResponses[keyof PlatformSettingsUpdateMultiDcRoutingToggleResponses];
1548
-
1549
1356
  export type PlatformSettingsGetPlatformSettingData = {
1550
1357
  body?: never;
1551
1358
  path: {
@@ -3541,6 +3348,7 @@ export type IngestTokenExchangeIngestTokenResponses = {
3541
3348
  200: {
3542
3349
  code: number;
3543
3350
  data: {
3351
+ apiKeyId: string;
3544
3352
  expiresAt: string;
3545
3353
  projectId: string;
3546
3354
  scopeClass: 'project' | 'org';
@@ -3671,14 +3479,14 @@ export type OrganizationsAcceptOrganizationInvitationResponses = {
3671
3479
 
3672
3480
  export type OrganizationsAcceptOrganizationInvitationResponse = OrganizationsAcceptOrganizationInvitationResponses[keyof OrganizationsAcceptOrganizationInvitationResponses];
3673
3481
 
3674
- export type ApiKeysListApiKeysSuperData = {
3482
+ export type OrganizationsAcceptPendingOrganizationInvitationsData = {
3675
3483
  body?: never;
3676
3484
  path?: never;
3677
3485
  query?: never;
3678
- url: '/v1/keys';
3486
+ url: '/v1/invitations/accept-pending';
3679
3487
  };
3680
3488
 
3681
- export type ApiKeysListApiKeysSuperErrors = {
3489
+ export type OrganizationsAcceptPendingOrganizationInvitationsErrors = {
3682
3490
  /**
3683
3491
  * BadRequestError
3684
3492
  */
@@ -3725,26 +3533,16 @@ export type ApiKeysListApiKeysSuperErrors = {
3725
3533
  503: ServiceUnavailableError;
3726
3534
  };
3727
3535
 
3728
- export type ApiKeysListApiKeysSuperError = ApiKeysListApiKeysSuperErrors[keyof ApiKeysListApiKeysSuperErrors];
3536
+ export type OrganizationsAcceptPendingOrganizationInvitationsError = OrganizationsAcceptPendingOrganizationInvitationsErrors[keyof OrganizationsAcceptPendingOrganizationInvitationsErrors];
3729
3537
 
3730
- export type ApiKeysListApiKeysSuperResponses = {
3538
+ export type OrganizationsAcceptPendingOrganizationInvitationsResponses = {
3731
3539
  /**
3732
3540
  * Success
3733
3541
  */
3734
3542
  200: {
3735
3543
  code: number;
3736
3544
  data: {
3737
- keys: Array<{
3738
- createdAt: string;
3739
- environment: 'live' | 'test';
3740
- expiresAt: string;
3741
- id: string;
3742
- key: string;
3743
- orgId: string | null;
3744
- projectId: string | null;
3745
- revokedAt: string | null;
3746
- scopes: Array<string>;
3747
- }>;
3545
+ acceptedOrganizationIds: Array<string>;
3748
3546
  } | null;
3749
3547
  error: {
3750
3548
  code: string;
@@ -3772,21 +3570,18 @@ export type ApiKeysListApiKeysSuperResponses = {
3772
3570
  };
3773
3571
  };
3774
3572
 
3775
- export type ApiKeysListApiKeysSuperResponse = ApiKeysListApiKeysSuperResponses[keyof ApiKeysListApiKeysSuperResponses];
3573
+ export type OrganizationsAcceptPendingOrganizationInvitationsResponse = OrganizationsAcceptPendingOrganizationInvitationsResponses[keyof OrganizationsAcceptPendingOrganizationInvitationsResponses];
3776
3574
 
3777
- export type ApiKeysCreateApiKeySuperData = {
3575
+ export type OrganizationsGetOrganizationInvitationDetailsData = {
3778
3576
  body: {
3779
- environment: 'live' | 'test';
3780
- orgId?: string | null;
3781
- projectId?: string | null;
3782
- scopes: Array<string>;
3577
+ token: string;
3783
3578
  };
3784
3579
  path?: never;
3785
3580
  query?: never;
3786
- url: '/v1/keys';
3581
+ url: '/v1/invitations/details';
3787
3582
  };
3788
3583
 
3789
- export type ApiKeysCreateApiKeySuperErrors = {
3584
+ export type OrganizationsGetOrganizationInvitationDetailsErrors = {
3790
3585
  /**
3791
3586
  * BadRequestError
3792
3587
  */
@@ -3833,18 +3628,20 @@ export type ApiKeysCreateApiKeySuperErrors = {
3833
3628
  503: ServiceUnavailableError;
3834
3629
  };
3835
3630
 
3836
- export type ApiKeysCreateApiKeySuperError = ApiKeysCreateApiKeySuperErrors[keyof ApiKeysCreateApiKeySuperErrors];
3631
+ export type OrganizationsGetOrganizationInvitationDetailsError = OrganizationsGetOrganizationInvitationDetailsErrors[keyof OrganizationsGetOrganizationInvitationDetailsErrors];
3837
3632
 
3838
- export type ApiKeysCreateApiKeySuperResponses = {
3633
+ export type OrganizationsGetOrganizationInvitationDetailsResponses = {
3839
3634
  /**
3840
3635
  * Success
3841
3636
  */
3842
- 201: {
3637
+ 200: {
3843
3638
  code: number;
3844
3639
  data: {
3845
- expiresAt: string;
3846
- jwt: string;
3847
- key: string;
3640
+ details: {
3641
+ inviterEmail: string | null;
3642
+ inviterName: string | null;
3643
+ organizationName: string;
3644
+ } | null;
3848
3645
  } | null;
3849
3646
  error: {
3850
3647
  code: string;
@@ -3872,18 +3669,16 @@ export type ApiKeysCreateApiKeySuperResponses = {
3872
3669
  };
3873
3670
  };
3874
3671
 
3875
- export type ApiKeysCreateApiKeySuperResponse = ApiKeysCreateApiKeySuperResponses[keyof ApiKeysCreateApiKeySuperResponses];
3672
+ export type OrganizationsGetOrganizationInvitationDetailsResponse = OrganizationsGetOrganizationInvitationDetailsResponses[keyof OrganizationsGetOrganizationInvitationDetailsResponses];
3876
3673
 
3877
- export type ApiKeysRevokeApiKeySuperData = {
3674
+ export type ApiKeysListApiKeysSuperData = {
3878
3675
  body?: never;
3879
- path: {
3880
- id: string;
3881
- };
3676
+ path?: never;
3882
3677
  query?: never;
3883
- url: '/v1/keys/{id}';
3678
+ url: '/v1/keys';
3884
3679
  };
3885
3680
 
3886
- export type ApiKeysRevokeApiKeySuperErrors = {
3681
+ export type ApiKeysListApiKeysSuperErrors = {
3887
3682
  /**
3888
3683
  * BadRequestError
3889
3684
  */
@@ -3930,16 +3725,26 @@ export type ApiKeysRevokeApiKeySuperErrors = {
3930
3725
  503: ServiceUnavailableError;
3931
3726
  };
3932
3727
 
3933
- export type ApiKeysRevokeApiKeySuperError = ApiKeysRevokeApiKeySuperErrors[keyof ApiKeysRevokeApiKeySuperErrors];
3728
+ export type ApiKeysListApiKeysSuperError = ApiKeysListApiKeysSuperErrors[keyof ApiKeysListApiKeysSuperErrors];
3934
3729
 
3935
- export type ApiKeysRevokeApiKeySuperResponses = {
3730
+ export type ApiKeysListApiKeysSuperResponses = {
3936
3731
  /**
3937
3732
  * Success
3938
3733
  */
3939
3734
  200: {
3940
3735
  code: number;
3941
3736
  data: {
3942
- revoked: boolean;
3737
+ keys: Array<{
3738
+ createdAt: string;
3739
+ environment: 'live' | 'test';
3740
+ expiresAt: string;
3741
+ id: string;
3742
+ key: string;
3743
+ orgId: string | null;
3744
+ projectId: string | null;
3745
+ revokedAt: string | null;
3746
+ scopes: Array<string>;
3747
+ }>;
3943
3748
  } | null;
3944
3749
  error: {
3945
3750
  code: string;
@@ -3967,13 +3772,208 @@ export type ApiKeysRevokeApiKeySuperResponses = {
3967
3772
  };
3968
3773
  };
3969
3774
 
3970
- export type ApiKeysRevokeApiKeySuperResponse = ApiKeysRevokeApiKeySuperResponses[keyof ApiKeysRevokeApiKeySuperResponses];
3775
+ export type ApiKeysListApiKeysSuperResponse = ApiKeysListApiKeysSuperResponses[keyof ApiKeysListApiKeysSuperResponses];
3971
3776
 
3972
- export type CostRatesListBuiltinCostRatesData = {
3973
- body?: never;
3777
+ export type ApiKeysCreateApiKeySuperData = {
3778
+ body: {
3779
+ environment: 'live' | 'test';
3780
+ orgId?: string | null;
3781
+ projectId?: string | null;
3782
+ scopes: Array<string>;
3783
+ };
3974
3784
  path?: never;
3975
- query?: {
3976
- provider?: string | null;
3785
+ query?: never;
3786
+ url: '/v1/keys';
3787
+ };
3788
+
3789
+ export type ApiKeysCreateApiKeySuperErrors = {
3790
+ /**
3791
+ * BadRequestError
3792
+ */
3793
+ 400: BadRequestError;
3794
+ /**
3795
+ * UnauthorizedError
3796
+ */
3797
+ 401: UnauthorizedError;
3798
+ /**
3799
+ * ForbiddenError
3800
+ */
3801
+ 403: ForbiddenError;
3802
+ /**
3803
+ * NotFoundError
3804
+ */
3805
+ 404: NotFoundError;
3806
+ /**
3807
+ * ConflictError
3808
+ */
3809
+ 409: ConflictError;
3810
+ /**
3811
+ * GoneError
3812
+ */
3813
+ 410: GoneError;
3814
+ /**
3815
+ * MisdirectedRequestError
3816
+ */
3817
+ 421: MisdirectedRequestError;
3818
+ /**
3819
+ * UnprocessableEntityError
3820
+ */
3821
+ 422: UnprocessableEntityError;
3822
+ /**
3823
+ * TooManyRequestsError
3824
+ */
3825
+ 429: TooManyRequestsError;
3826
+ /**
3827
+ * InternalServerError
3828
+ */
3829
+ 500: InternalServerError;
3830
+ /**
3831
+ * ServiceUnavailableError
3832
+ */
3833
+ 503: ServiceUnavailableError;
3834
+ };
3835
+
3836
+ export type ApiKeysCreateApiKeySuperError = ApiKeysCreateApiKeySuperErrors[keyof ApiKeysCreateApiKeySuperErrors];
3837
+
3838
+ export type ApiKeysCreateApiKeySuperResponses = {
3839
+ /**
3840
+ * Success
3841
+ */
3842
+ 201: {
3843
+ code: number;
3844
+ data: {
3845
+ expiresAt: string;
3846
+ jwt: string;
3847
+ key: string;
3848
+ } | null;
3849
+ error: {
3850
+ code: string;
3851
+ details?: unknown | null;
3852
+ message: string;
3853
+ rowErrors?: Array<{
3854
+ code: string;
3855
+ message: string;
3856
+ path: Array<string | number>;
3857
+ }> | null;
3858
+ } | null;
3859
+ pagination: {
3860
+ limit: number;
3861
+ page: number;
3862
+ total: number;
3863
+ totalPages: number;
3864
+ } | null;
3865
+ sdkBehavior?: {
3866
+ flags: {
3867
+ [key: string]: unknown;
3868
+ };
3869
+ v: number;
3870
+ } | null;
3871
+ success: boolean;
3872
+ };
3873
+ };
3874
+
3875
+ export type ApiKeysCreateApiKeySuperResponse = ApiKeysCreateApiKeySuperResponses[keyof ApiKeysCreateApiKeySuperResponses];
3876
+
3877
+ export type ApiKeysRevokeApiKeySuperData = {
3878
+ body?: never;
3879
+ path: {
3880
+ id: string;
3881
+ };
3882
+ query?: never;
3883
+ url: '/v1/keys/{id}';
3884
+ };
3885
+
3886
+ export type ApiKeysRevokeApiKeySuperErrors = {
3887
+ /**
3888
+ * BadRequestError
3889
+ */
3890
+ 400: BadRequestError;
3891
+ /**
3892
+ * UnauthorizedError
3893
+ */
3894
+ 401: UnauthorizedError;
3895
+ /**
3896
+ * ForbiddenError
3897
+ */
3898
+ 403: ForbiddenError;
3899
+ /**
3900
+ * NotFoundError
3901
+ */
3902
+ 404: NotFoundError;
3903
+ /**
3904
+ * ConflictError
3905
+ */
3906
+ 409: ConflictError;
3907
+ /**
3908
+ * GoneError
3909
+ */
3910
+ 410: GoneError;
3911
+ /**
3912
+ * MisdirectedRequestError
3913
+ */
3914
+ 421: MisdirectedRequestError;
3915
+ /**
3916
+ * UnprocessableEntityError
3917
+ */
3918
+ 422: UnprocessableEntityError;
3919
+ /**
3920
+ * TooManyRequestsError
3921
+ */
3922
+ 429: TooManyRequestsError;
3923
+ /**
3924
+ * InternalServerError
3925
+ */
3926
+ 500: InternalServerError;
3927
+ /**
3928
+ * ServiceUnavailableError
3929
+ */
3930
+ 503: ServiceUnavailableError;
3931
+ };
3932
+
3933
+ export type ApiKeysRevokeApiKeySuperError = ApiKeysRevokeApiKeySuperErrors[keyof ApiKeysRevokeApiKeySuperErrors];
3934
+
3935
+ export type ApiKeysRevokeApiKeySuperResponses = {
3936
+ /**
3937
+ * Success
3938
+ */
3939
+ 200: {
3940
+ code: number;
3941
+ data: {
3942
+ revoked: boolean;
3943
+ } | null;
3944
+ error: {
3945
+ code: string;
3946
+ details?: unknown | null;
3947
+ message: string;
3948
+ rowErrors?: Array<{
3949
+ code: string;
3950
+ message: string;
3951
+ path: Array<string | number>;
3952
+ }> | null;
3953
+ } | null;
3954
+ pagination: {
3955
+ limit: number;
3956
+ page: number;
3957
+ total: number;
3958
+ totalPages: number;
3959
+ } | null;
3960
+ sdkBehavior?: {
3961
+ flags: {
3962
+ [key: string]: unknown;
3963
+ };
3964
+ v: number;
3965
+ } | null;
3966
+ success: boolean;
3967
+ };
3968
+ };
3969
+
3970
+ export type ApiKeysRevokeApiKeySuperResponse = ApiKeysRevokeApiKeySuperResponses[keyof ApiKeysRevokeApiKeySuperResponses];
3971
+
3972
+ export type CostRatesListBuiltinCostRatesData = {
3973
+ body?: never;
3974
+ path?: never;
3975
+ query?: {
3976
+ provider?: string | null;
3977
3977
  model?: string | null;
3978
3978
  tokenType?: 'input' | 'output' | 'cache_creation' | 'cache_creation_5m' | 'cache_creation_1h' | 'cache_read' | 'reasoning' | null;
3979
3979
  asOf?: string | null;
@@ -8084,27 +8084,14 @@ export type WorkspacesCreateWorkspaceResponses = {
8084
8084
  201: {
8085
8085
  code: number;
8086
8086
  data: {
8087
- defaultProject: {
8088
- createdAt: string;
8089
- dataCenterId: string | null;
8090
- id: string;
8091
- name: string;
8092
- organizationId: string;
8093
- slug: string;
8094
- status: 'active' | 'archived' | 'deleted';
8095
- updatedAt: string;
8096
- workspaceId: string;
8097
- };
8098
- workspace: {
8099
- allowPlatformDiscovery: boolean;
8100
- createdAt: string;
8101
- id: string;
8102
- name: string;
8103
- organizationId: string;
8104
- slug: string;
8105
- status: 'active' | 'archived' | 'deleted';
8106
- updatedAt: string;
8107
- };
8087
+ allowPlatformDiscovery: boolean;
8088
+ createdAt: string;
8089
+ id: string;
8090
+ name: string;
8091
+ organizationId: string;
8092
+ slug: string;
8093
+ status: 'active' | 'archived' | 'deleted';
8094
+ updatedAt: string;
8108
8095
  } | null;
8109
8096
  error: {
8110
8097
  code: string;
@@ -9990,7 +9977,7 @@ export type CredentialsDirectoryListProjectCredentialsDirectoryData = {
9990
9977
  };
9991
9978
  query?: {
9992
9979
  catalog_id?: string | null;
9993
- lifecycle_status?: 'active' | null;
9980
+ lifecycle_status?: 'active' | 'deleted' | null;
9994
9981
  attached_provider_count?: '0' | '1' | '2+' | null;
9995
9982
  limit?: string | null;
9996
9983
  cursor?: string | null;
@@ -10069,7 +10056,7 @@ export type CredentialsDirectoryListProjectCredentialsDirectoryResponses = {
10069
10056
  };
10070
10057
  createdAt: string;
10071
10058
  createdBy: string | null;
10072
- credentialType: string;
10059
+ credentialType: 'api-key' | 'oauth' | 'iam-role' | 'access-key' | 'service-account' | 'none' | 'passthrough';
10073
10060
  currentActivations: Array<{
10074
10061
  activeFrom: string;
10075
10062
  activeTo: string | null;
@@ -10083,7 +10070,7 @@ export type CredentialsDirectoryListProjectCredentialsDirectoryResponses = {
10083
10070
  keyLast4: string;
10084
10071
  label: string | null;
10085
10072
  lastRotationAt: string | null;
10086
- lifecycleStatus: 'active';
10073
+ lifecycleStatus: 'active' | 'deleted';
10087
10074
  projectId: string;
10088
10075
  }>;
10089
10076
  pagination: {
@@ -13839,7 +13826,7 @@ export type PromptsListPromptsData = {
13839
13826
  search?: string | null;
13840
13827
  sortDir?: 'asc' | 'desc' | null;
13841
13828
  status?: string | null;
13842
- sortBy?: 'createdAt' | 'updatedAt' | 'name' | 'status' | 'latestVersion' | null;
13829
+ sortBy?: 'createdAt' | 'updatedAt' | 'name' | 'status' | 'latestVersion' | 'environments' | null;
13843
13830
  tags?: string | null;
13844
13831
  environment?: string | null;
13845
13832
  };
@@ -13917,6 +13904,7 @@ export type PromptsListPromptsResponses = {
13917
13904
  lastModifiedAt: string;
13918
13905
  lastModifiedByDisplayName: string | null;
13919
13906
  lastModifiedByImage: string | null;
13907
+ lastModifiedByType: 'user' | 'api_key' | 'unknown' | null;
13920
13908
  lastModifiedByUserId: string | null;
13921
13909
  latestVersion: number | null;
13922
13910
  name: string;
@@ -14683,7 +14671,9 @@ export type PromptsListPromptLabelsData = {
14683
14671
  projectId: string;
14684
14672
  promptId: string;
14685
14673
  };
14686
- query?: never;
14674
+ query?: {
14675
+ asOf?: string | null;
14676
+ };
14687
14677
  url: '/v1/projects/{projectId}/prompts/{promptId}/labels';
14688
14678
  };
14689
14679
 
@@ -14773,7 +14763,7 @@ export type PromptsListPromptLabelsResponse = PromptsListPromptLabelsResponses[k
14773
14763
 
14774
14764
  export type PromptsMovePromptLabelData = {
14775
14765
  body: {
14776
- reason?: string | null;
14766
+ reason: string;
14777
14767
  versionId: string;
14778
14768
  };
14779
14769
  path: {
@@ -14981,7 +14971,7 @@ export type PromptsListPromptLabelEventsByLabelResponse = PromptsListPromptLabel
14981
14971
 
14982
14972
  export type PromptsSetWeightedReleaseData = {
14983
14973
  body: {
14984
- reason?: string | null;
14974
+ reason: string;
14985
14975
  variants: Array<{
14986
14976
  name: string;
14987
14977
  versionId: string;
@@ -15081,17 +15071,19 @@ export type PromptsSetWeightedReleaseResponses = {
15081
15071
 
15082
15072
  export type PromptsSetWeightedReleaseResponse = PromptsSetWeightedReleaseResponses[keyof PromptsSetWeightedReleaseResponses];
15083
15073
 
15084
- export type PromptsListPromptVersionsData = {
15074
+ export type PromptMetricsGetPromptRequestMetricsData = {
15085
15075
  body?: never;
15086
15076
  path: {
15087
15077
  projectId: string;
15088
15078
  promptId: string;
15089
15079
  };
15090
- query?: never;
15091
- url: '/v1/projects/{projectId}/prompts/{promptId}/versions';
15080
+ query?: {
15081
+ window?: string | null;
15082
+ };
15083
+ url: '/v1/projects/{projectId}/prompts/{promptId}/request-metrics';
15092
15084
  };
15093
15085
 
15094
- export type PromptsListPromptVersionsErrors = {
15086
+ export type PromptMetricsGetPromptRequestMetricsErrors = {
15095
15087
  /**
15096
15088
  * BadRequestError
15097
15089
  */
@@ -15138,15 +15130,26 @@ export type PromptsListPromptVersionsErrors = {
15138
15130
  503: ServiceUnavailableError;
15139
15131
  };
15140
15132
 
15141
- export type PromptsListPromptVersionsError = PromptsListPromptVersionsErrors[keyof PromptsListPromptVersionsErrors];
15133
+ export type PromptMetricsGetPromptRequestMetricsError = PromptMetricsGetPromptRequestMetricsErrors[keyof PromptMetricsGetPromptRequestMetricsErrors];
15142
15134
 
15143
- export type PromptsListPromptVersionsResponses = {
15135
+ export type PromptMetricsGetPromptRequestMetricsResponses = {
15144
15136
  /**
15145
15137
  * Success
15146
15138
  */
15147
15139
  200: {
15148
15140
  code: number;
15149
- data: Array<PromptVersion> | null;
15141
+ data: {
15142
+ bucketMinutes: number;
15143
+ series: Array<{
15144
+ points: Array<{
15145
+ bucketStart: string;
15146
+ requests: number;
15147
+ }>;
15148
+ totalRequests: number;
15149
+ version: string;
15150
+ }>;
15151
+ windowHours: number;
15152
+ } | null;
15150
15153
  error: {
15151
15154
  code: string;
15152
15155
  details?: unknown | null;
@@ -15173,18 +15176,10 @@ export type PromptsListPromptVersionsResponses = {
15173
15176
  };
15174
15177
  };
15175
15178
 
15176
- export type PromptsListPromptVersionsResponse = PromptsListPromptVersionsResponses[keyof PromptsListPromptVersionsResponses];
15179
+ export type PromptMetricsGetPromptRequestMetricsResponse = PromptMetricsGetPromptRequestMetricsResponses[keyof PromptMetricsGetPromptRequestMetricsResponses];
15177
15180
 
15178
- export type PromptsCreatePromptVersionData = {
15179
- body: {
15180
- allowBlockRemovals?: Array<string> | null;
15181
- baseVersionId?: string | null;
15182
- changelog?: string | null;
15183
- format: 'text' | 'chat';
15184
- modelConfig?: unknown | null;
15185
- templateJson: unknown;
15186
- variablesSchema?: unknown | null;
15187
- };
15181
+ export type PromptsListPromptVersionsData = {
15182
+ body?: never;
15188
15183
  path: {
15189
15184
  projectId: string;
15190
15185
  promptId: string;
@@ -15193,7 +15188,7 @@ export type PromptsCreatePromptVersionData = {
15193
15188
  url: '/v1/projects/{projectId}/prompts/{promptId}/versions';
15194
15189
  };
15195
15190
 
15196
- export type PromptsCreatePromptVersionErrors = {
15191
+ export type PromptsListPromptVersionsErrors = {
15197
15192
  /**
15198
15193
  * BadRequestError
15199
15194
  */
@@ -15240,9 +15235,111 @@ export type PromptsCreatePromptVersionErrors = {
15240
15235
  503: ServiceUnavailableError;
15241
15236
  };
15242
15237
 
15243
- export type PromptsCreatePromptVersionError = PromptsCreatePromptVersionErrors[keyof PromptsCreatePromptVersionErrors];
15238
+ export type PromptsListPromptVersionsError = PromptsListPromptVersionsErrors[keyof PromptsListPromptVersionsErrors];
15244
15239
 
15245
- export type PromptsCreatePromptVersionResponses = {
15240
+ export type PromptsListPromptVersionsResponses = {
15241
+ /**
15242
+ * Success
15243
+ */
15244
+ 200: {
15245
+ code: number;
15246
+ data: Array<PromptVersion> | null;
15247
+ error: {
15248
+ code: string;
15249
+ details?: unknown | null;
15250
+ message: string;
15251
+ rowErrors?: Array<{
15252
+ code: string;
15253
+ message: string;
15254
+ path: Array<string | number>;
15255
+ }> | null;
15256
+ } | null;
15257
+ pagination: {
15258
+ limit: number;
15259
+ page: number;
15260
+ total: number;
15261
+ totalPages: number;
15262
+ } | null;
15263
+ sdkBehavior?: {
15264
+ flags: {
15265
+ [key: string]: unknown;
15266
+ };
15267
+ v: number;
15268
+ } | null;
15269
+ success: boolean;
15270
+ };
15271
+ };
15272
+
15273
+ export type PromptsListPromptVersionsResponse = PromptsListPromptVersionsResponses[keyof PromptsListPromptVersionsResponses];
15274
+
15275
+ export type PromptsCreatePromptVersionData = {
15276
+ body: {
15277
+ allowBlockRemovals?: Array<string> | null;
15278
+ baseVersionId?: string | null;
15279
+ changelog?: string | null;
15280
+ format: 'text' | 'chat';
15281
+ modelConfig?: unknown | null;
15282
+ templateJson: unknown;
15283
+ variablesSchema?: unknown | null;
15284
+ };
15285
+ path: {
15286
+ projectId: string;
15287
+ promptId: string;
15288
+ };
15289
+ query?: never;
15290
+ url: '/v1/projects/{projectId}/prompts/{promptId}/versions';
15291
+ };
15292
+
15293
+ export type PromptsCreatePromptVersionErrors = {
15294
+ /**
15295
+ * BadRequestError
15296
+ */
15297
+ 400: BadRequestError;
15298
+ /**
15299
+ * UnauthorizedError
15300
+ */
15301
+ 401: UnauthorizedError;
15302
+ /**
15303
+ * ForbiddenError
15304
+ */
15305
+ 403: ForbiddenError;
15306
+ /**
15307
+ * NotFoundError
15308
+ */
15309
+ 404: NotFoundError;
15310
+ /**
15311
+ * ConflictError
15312
+ */
15313
+ 409: ConflictError;
15314
+ /**
15315
+ * GoneError
15316
+ */
15317
+ 410: GoneError;
15318
+ /**
15319
+ * MisdirectedRequestError
15320
+ */
15321
+ 421: MisdirectedRequestError;
15322
+ /**
15323
+ * UnprocessableEntityError
15324
+ */
15325
+ 422: UnprocessableEntityError;
15326
+ /**
15327
+ * TooManyRequestsError
15328
+ */
15329
+ 429: TooManyRequestsError;
15330
+ /**
15331
+ * InternalServerError
15332
+ */
15333
+ 500: InternalServerError;
15334
+ /**
15335
+ * ServiceUnavailableError
15336
+ */
15337
+ 503: ServiceUnavailableError;
15338
+ };
15339
+
15340
+ export type PromptsCreatePromptVersionError = PromptsCreatePromptVersionErrors[keyof PromptsCreatePromptVersionErrors];
15341
+
15342
+ export type PromptsCreatePromptVersionResponses = {
15246
15343
  /**
15247
15344
  * Success
15248
15345
  */
@@ -15393,6 +15490,11 @@ export type PromptsGetPromptVersionDiffResponses = {
15393
15490
  before: 'system' | 'user' | 'assistant' | 'developer' | 'tool';
15394
15491
  name: string;
15395
15492
  op: 'edit_role';
15493
+ } | {
15494
+ after: boolean;
15495
+ before: boolean;
15496
+ name: string;
15497
+ op: 'edit_required';
15396
15498
  } | {
15397
15499
  after: {
15398
15500
  description?: string | null;
@@ -16045,6 +16147,7 @@ export type CredentialLifecycleRenameCredentialResponses = {
16045
16147
  data: {
16046
16148
  createdAt: string;
16047
16149
  credentialType: 'api-key' | 'oauth' | 'iam-role' | 'access-key' | 'service-account' | 'none' | 'passthrough';
16150
+ deletedAt?: string | null | null;
16048
16151
  id: string;
16049
16152
  keyLast4: string;
16050
16153
  label: string | null;
@@ -16350,6 +16453,7 @@ export type CredentialLifecycleRestoreCredentialResponses = {
16350
16453
  credential: {
16351
16454
  createdAt: string;
16352
16455
  credentialType: 'api-key' | 'oauth' | 'iam-role' | 'access-key' | 'service-account' | 'none' | 'passthrough';
16456
+ deletedAt?: string | null | null;
16353
16457
  id: string;
16354
16458
  keyLast4: string;
16355
16459
  label: string | null;
@@ -17831,6 +17935,7 @@ export type RoutingProvidersListRoutingProvidersResponses = {
17831
17935
  200: {
17832
17936
  code: number;
17833
17937
  data: Array<{
17938
+ affectedEnvCount: number;
17834
17939
  apiVersion: string | null;
17835
17940
  archivedAt: string | null;
17836
17941
  authHeaderName: string | null;
@@ -17841,20 +17946,32 @@ export type RoutingProvidersListRoutingProvidersResponses = {
17841
17946
  createdByDisplay: string | null;
17842
17947
  createdByImage: string | null;
17843
17948
  createdByType?: 'user' | 'api_key' | 'unknown' | null | null;
17949
+ currentConfigVersion?: number | null | null;
17844
17950
  displayName: string;
17951
+ envCount: number;
17845
17952
  environments: Array<{
17846
17953
  activationId: string;
17847
17954
  activeFrom: string;
17848
17955
  configSnapshot: {
17849
17956
  [key: string]: unknown;
17850
17957
  };
17958
+ configVersion?: number | null | null;
17851
17959
  credentialId: string;
17960
+ credentialValidity: 'valid' | 'invalid' | 'untested' | 'na';
17852
17961
  current: true;
17962
+ health: 'healthy' | 'degraded' | 'failing';
17853
17963
  id: string;
17964
+ notRouted: boolean;
17965
+ perVersionHealth?: Array<{
17966
+ activeFrom: string;
17967
+ activeTo?: string | null | null;
17968
+ configVersion: number;
17969
+ current: boolean;
17970
+ health: 'healthy' | 'degraded' | 'failing';
17971
+ }> | null | null;
17854
17972
  slug: string;
17855
- status: 'healthy' | 'degraded' | 'failing' | 'idle';
17856
17973
  }>;
17857
- health: 'healthy' | 'degraded' | 'failing' | 'idle';
17974
+ health: 'healthy' | 'degraded' | 'failing';
17858
17975
  id: string;
17859
17976
  lastTestedAt: string | null;
17860
17977
  lifecycleState: 'active' | 'deactivated' | 'archived';
@@ -17981,6 +18098,7 @@ export type RoutingProvidersCreateRoutingProviderResponses = {
17981
18098
  201: {
17982
18099
  code: number;
17983
18100
  data: {
18101
+ affectedEnvCount: number;
17984
18102
  apiVersion: string | null;
17985
18103
  archivedAt: string | null;
17986
18104
  authHeaderName: string | null;
@@ -17991,20 +18109,32 @@ export type RoutingProvidersCreateRoutingProviderResponses = {
17991
18109
  createdByDisplay: string | null;
17992
18110
  createdByImage: string | null;
17993
18111
  createdByType?: 'user' | 'api_key' | 'unknown' | null | null;
18112
+ currentConfigVersion?: number | null | null;
17994
18113
  displayName: string;
18114
+ envCount: number;
17995
18115
  environments: Array<{
17996
18116
  activationId: string;
17997
18117
  activeFrom: string;
17998
18118
  configSnapshot: {
17999
18119
  [key: string]: unknown;
18000
18120
  };
18121
+ configVersion?: number | null | null;
18001
18122
  credentialId: string;
18123
+ credentialValidity: 'valid' | 'invalid' | 'untested' | 'na';
18002
18124
  current: true;
18125
+ health: 'healthy' | 'degraded' | 'failing';
18003
18126
  id: string;
18127
+ notRouted: boolean;
18128
+ perVersionHealth?: Array<{
18129
+ activeFrom: string;
18130
+ activeTo?: string | null | null;
18131
+ configVersion: number;
18132
+ current: boolean;
18133
+ health: 'healthy' | 'degraded' | 'failing';
18134
+ }> | null | null;
18004
18135
  slug: string;
18005
- status: 'healthy' | 'degraded' | 'failing' | 'idle';
18006
18136
  }>;
18007
- health: 'healthy' | 'degraded' | 'failing' | 'idle';
18137
+ health: 'healthy' | 'degraded' | 'failing';
18008
18138
  id: string;
18009
18139
  lastTestedAt: string | null;
18010
18140
  lifecycleState: 'active' | 'deactivated' | 'archived';
@@ -18187,6 +18317,7 @@ export type RoutingProvidersConnectRoutingProviderResponses = {
18187
18317
  }>;
18188
18318
  credentialId: string;
18189
18319
  provider: {
18320
+ affectedEnvCount: number;
18190
18321
  apiVersion: string | null;
18191
18322
  archivedAt: string | null;
18192
18323
  authHeaderName: string | null;
@@ -18197,20 +18328,32 @@ export type RoutingProvidersConnectRoutingProviderResponses = {
18197
18328
  createdByDisplay: string | null;
18198
18329
  createdByImage: string | null;
18199
18330
  createdByType?: 'user' | 'api_key' | 'unknown' | null | null;
18331
+ currentConfigVersion?: number | null | null;
18200
18332
  displayName: string;
18333
+ envCount: number;
18201
18334
  environments: Array<{
18202
18335
  activationId: string;
18203
18336
  activeFrom: string;
18204
18337
  configSnapshot: {
18205
18338
  [key: string]: unknown;
18206
18339
  };
18340
+ configVersion?: number | null | null;
18207
18341
  credentialId: string;
18342
+ credentialValidity: 'valid' | 'invalid' | 'untested' | 'na';
18208
18343
  current: true;
18344
+ health: 'healthy' | 'degraded' | 'failing';
18209
18345
  id: string;
18346
+ notRouted: boolean;
18347
+ perVersionHealth?: Array<{
18348
+ activeFrom: string;
18349
+ activeTo?: string | null | null;
18350
+ configVersion: number;
18351
+ current: boolean;
18352
+ health: 'healthy' | 'degraded' | 'failing';
18353
+ }> | null | null;
18210
18354
  slug: string;
18211
- status: 'healthy' | 'degraded' | 'failing' | 'idle';
18212
18355
  }>;
18213
- health: 'healthy' | 'degraded' | 'failing' | 'idle';
18356
+ health: 'healthy' | 'degraded' | 'failing';
18214
18357
  id: string;
18215
18358
  lastTestedAt: string | null;
18216
18359
  lifecycleState: 'active' | 'deactivated' | 'archived';
@@ -18758,6 +18901,7 @@ export type RoutingProvidersGetRoutingProviderResponses = {
18758
18901
  200: {
18759
18902
  code: number;
18760
18903
  data: {
18904
+ affectedEnvCount: number;
18761
18905
  apiVersion: string | null;
18762
18906
  archivedAt: string | null;
18763
18907
  authHeaderName: string | null;
@@ -18768,20 +18912,32 @@ export type RoutingProvidersGetRoutingProviderResponses = {
18768
18912
  createdByDisplay: string | null;
18769
18913
  createdByImage: string | null;
18770
18914
  createdByType?: 'user' | 'api_key' | 'unknown' | null | null;
18915
+ currentConfigVersion?: number | null | null;
18771
18916
  displayName: string;
18917
+ envCount: number;
18772
18918
  environments: Array<{
18773
18919
  activationId: string;
18774
18920
  activeFrom: string;
18775
18921
  configSnapshot: {
18776
18922
  [key: string]: unknown;
18777
18923
  };
18924
+ configVersion?: number | null | null;
18778
18925
  credentialId: string;
18926
+ credentialValidity: 'valid' | 'invalid' | 'untested' | 'na';
18779
18927
  current: true;
18928
+ health: 'healthy' | 'degraded' | 'failing';
18780
18929
  id: string;
18930
+ notRouted: boolean;
18931
+ perVersionHealth?: Array<{
18932
+ activeFrom: string;
18933
+ activeTo?: string | null | null;
18934
+ configVersion: number;
18935
+ current: boolean;
18936
+ health: 'healthy' | 'degraded' | 'failing';
18937
+ }> | null | null;
18781
18938
  slug: string;
18782
- status: 'healthy' | 'degraded' | 'failing' | 'idle';
18783
18939
  }>;
18784
- health: 'healthy' | 'degraded' | 'failing' | 'idle';
18940
+ health: 'healthy' | 'degraded' | 'failing';
18785
18941
  id: string;
18786
18942
  lastTestedAt: string | null;
18787
18943
  lifecycleState: 'active' | 'deactivated' | 'archived';
@@ -18906,6 +19062,7 @@ export type RoutingProvidersUpdateRoutingProviderResponses = {
18906
19062
  200: {
18907
19063
  code: number;
18908
19064
  data: {
19065
+ affectedEnvCount: number;
18909
19066
  apiVersion: string | null;
18910
19067
  archivedAt: string | null;
18911
19068
  authHeaderName: string | null;
@@ -18916,20 +19073,32 @@ export type RoutingProvidersUpdateRoutingProviderResponses = {
18916
19073
  createdByDisplay: string | null;
18917
19074
  createdByImage: string | null;
18918
19075
  createdByType?: 'user' | 'api_key' | 'unknown' | null | null;
19076
+ currentConfigVersion?: number | null | null;
18919
19077
  displayName: string;
19078
+ envCount: number;
18920
19079
  environments: Array<{
18921
19080
  activationId: string;
18922
19081
  activeFrom: string;
18923
19082
  configSnapshot: {
18924
19083
  [key: string]: unknown;
18925
19084
  };
19085
+ configVersion?: number | null | null;
18926
19086
  credentialId: string;
19087
+ credentialValidity: 'valid' | 'invalid' | 'untested' | 'na';
18927
19088
  current: true;
19089
+ health: 'healthy' | 'degraded' | 'failing';
18928
19090
  id: string;
19091
+ notRouted: boolean;
19092
+ perVersionHealth?: Array<{
19093
+ activeFrom: string;
19094
+ activeTo?: string | null | null;
19095
+ configVersion: number;
19096
+ current: boolean;
19097
+ health: 'healthy' | 'degraded' | 'failing';
19098
+ }> | null | null;
18929
19099
  slug: string;
18930
- status: 'healthy' | 'degraded' | 'failing' | 'idle';
18931
19100
  }>;
18932
- health: 'healthy' | 'degraded' | 'failing' | 'idle';
19101
+ health: 'healthy' | 'degraded' | 'failing';
18933
19102
  id: string;
18934
19103
  lastTestedAt: string | null;
18935
19104
  lifecycleState: 'active' | 'deactivated' | 'archived';
@@ -19160,6 +19329,7 @@ export type RoutingProviderCatalogResolveRoutingProviderCatalogResponses = {
19160
19329
  deprecatedAt?: string | null;
19161
19330
  displayName?: string | null;
19162
19331
  id: string;
19332
+ source?: 'user' | 'platform' | 'curated' | 'custom' | null;
19163
19333
  }>;
19164
19334
  source: 'user' | 'platform' | 'curated' | 'empty';
19165
19335
  transition: {
@@ -19364,6 +19534,7 @@ export type RoutingProvidersListRoutingCredentialsResponses = {
19364
19534
  data: Array<{
19365
19535
  createdAt: string;
19366
19536
  credentialType: 'api-key' | 'oauth' | 'iam-role' | 'access-key' | 'service-account' | 'none' | 'passthrough';
19537
+ deletedAt?: string | null | null;
19367
19538
  id: string;
19368
19539
  keyLast4: string;
19369
19540
  label: string | null;
@@ -19490,6 +19661,7 @@ export type RoutingProvidersCreateRoutingCredentialResponses = {
19490
19661
  data: {
19491
19662
  createdAt: string;
19492
19663
  credentialType: 'api-key' | 'oauth' | 'iam-role' | 'access-key' | 'service-account' | 'none' | 'passthrough';
19664
+ deletedAt?: string | null | null;
19493
19665
  id: string;
19494
19666
  keyLast4: string;
19495
19667
  label: string | null;
@@ -19741,6 +19913,122 @@ export type RoutingProvidersTestRoutingCredentialResponses = {
19741
19913
 
19742
19914
  export type RoutingProvidersTestRoutingCredentialResponse = RoutingProvidersTestRoutingCredentialResponses[keyof RoutingProvidersTestRoutingCredentialResponses];
19743
19915
 
19916
+ export type ProviderPromoteVersionPromoteProviderEnvVersionData = {
19917
+ body: {
19918
+ reason?: string | null;
19919
+ version: number;
19920
+ };
19921
+ path: {
19922
+ projectId: string;
19923
+ providerId: string;
19924
+ envSlug: string;
19925
+ };
19926
+ query?: never;
19927
+ url: '/v1/projects/{projectId}/routing/providers/{providerId}/environments/{envSlug}/promote';
19928
+ };
19929
+
19930
+ export type ProviderPromoteVersionPromoteProviderEnvVersionErrors = {
19931
+ /**
19932
+ * BadRequestError
19933
+ */
19934
+ 400: BadRequestError;
19935
+ /**
19936
+ * UnauthorizedError
19937
+ */
19938
+ 401: UnauthorizedError;
19939
+ /**
19940
+ * ForbiddenError
19941
+ */
19942
+ 403: ForbiddenError;
19943
+ /**
19944
+ * NotFoundError
19945
+ */
19946
+ 404: NotFoundError;
19947
+ /**
19948
+ * ConflictError
19949
+ */
19950
+ 409: ConflictError;
19951
+ /**
19952
+ * GoneError
19953
+ */
19954
+ 410: GoneError;
19955
+ /**
19956
+ * MisdirectedRequestError
19957
+ */
19958
+ 421: MisdirectedRequestError;
19959
+ /**
19960
+ * UnprocessableEntityError
19961
+ */
19962
+ 422: UnprocessableEntityError;
19963
+ /**
19964
+ * TooManyRequestsError
19965
+ */
19966
+ 429: TooManyRequestsError;
19967
+ /**
19968
+ * InternalServerError
19969
+ */
19970
+ 500: InternalServerError;
19971
+ /**
19972
+ * ServiceUnavailableError
19973
+ */
19974
+ 503: ServiceUnavailableError;
19975
+ };
19976
+
19977
+ export type ProviderPromoteVersionPromoteProviderEnvVersionError = ProviderPromoteVersionPromoteProviderEnvVersionErrors[keyof ProviderPromoteVersionPromoteProviderEnvVersionErrors];
19978
+
19979
+ export type ProviderPromoteVersionPromoteProviderEnvVersionResponses = {
19980
+ /**
19981
+ * Success
19982
+ */
19983
+ 201: {
19984
+ code: number;
19985
+ data: {
19986
+ activeFrom: string;
19987
+ activeTo: string | null;
19988
+ actorId: string;
19989
+ actorType: string;
19990
+ approvalStatus: 'not_required' | 'pending' | 'approved' | 'rejected';
19991
+ changeType: string;
19992
+ configSnapshot: {
19993
+ [key: string]: unknown;
19994
+ };
19995
+ createdAt: string;
19996
+ credentialId: string;
19997
+ envSlug: string;
19998
+ environmentId: string;
19999
+ id: string;
20000
+ providerId: string;
20001
+ reason: string | null;
20002
+ state: 'current' | 'pending';
20003
+ } | null;
20004
+ error: {
20005
+ code: string;
20006
+ details?: unknown | null;
20007
+ message: string;
20008
+ rowErrors?: Array<{
20009
+ code: string;
20010
+ message: string;
20011
+ path: Array<string | number>;
20012
+ }> | null;
20013
+ } | null;
20014
+ pagination: {
20015
+ limit: number;
20016
+ page: number;
20017
+ total: number;
20018
+ totalPages: number;
20019
+ } | null;
20020
+ sdkBehavior?: {
20021
+ flags: {
20022
+ [key: string]: unknown;
20023
+ };
20024
+ v: number;
20025
+ } | null;
20026
+ success: boolean;
20027
+ };
20028
+ };
20029
+
20030
+ export type ProviderPromoteVersionPromoteProviderEnvVersionResponse = ProviderPromoteVersionPromoteProviderEnvVersionResponses[keyof ProviderPromoteVersionPromoteProviderEnvVersionResponses];
20031
+
19744
20032
  export type RoutingProvidersListRoutingModelsData = {
19745
20033
  body?: never;
19746
20034
  path: {
@@ -19807,11 +20095,11 @@ export type RoutingProvidersListRoutingModelsResponses = {
19807
20095
  200: {
19808
20096
  code: number;
19809
20097
  data: Array<{
20098
+ catalogSlug?: string | null | null;
19810
20099
  createdAt: string;
19811
20100
  description: string | null;
19812
20101
  displayName: string | null;
19813
20102
  id: string;
19814
- isActive: boolean;
19815
20103
  modelType: string | null;
19816
20104
  name: string;
19817
20105
  providerId: string;
@@ -19847,9 +20135,9 @@ export type RoutingProvidersListRoutingModelsResponse = RoutingProvidersListRout
19847
20135
 
19848
20136
  export type RoutingProvidersCreateRoutingModelData = {
19849
20137
  body: {
20138
+ catalogSlug?: string | null;
19850
20139
  description?: string | null;
19851
20140
  displayName?: string | null;
19852
- isActive?: boolean | null;
19853
20141
  modelType?: string | null;
19854
20142
  name: string;
19855
20143
  };
@@ -19917,11 +20205,11 @@ export type RoutingProvidersCreateRoutingModelResponses = {
19917
20205
  201: {
19918
20206
  code: number;
19919
20207
  data: {
20208
+ catalogSlug?: string | null | null;
19920
20209
  createdAt: string;
19921
20210
  description: string | null;
19922
20211
  displayName: string | null;
19923
20212
  id: string;
19924
- isActive: boolean;
19925
20213
  modelType: string | null;
19926
20214
  name: string;
19927
20215
  providerId: string;
@@ -20072,7 +20360,6 @@ export type RoutingProvidersUpdateRoutingModelData = {
20072
20360
  body: {
20073
20361
  description?: string | null;
20074
20362
  displayName?: string | null;
20075
- isActive?: boolean | null;
20076
20363
  modelType?: string | null;
20077
20364
  };
20078
20365
  path: {
@@ -20140,11 +20427,11 @@ export type RoutingProvidersUpdateRoutingModelResponses = {
20140
20427
  200: {
20141
20428
  code: number;
20142
20429
  data: {
20430
+ catalogSlug?: string | null | null;
20143
20431
  createdAt: string;
20144
20432
  description: string | null;
20145
20433
  displayName: string | null;
20146
20434
  id: string;
20147
- isActive: boolean;
20148
20435
  modelType: string | null;
20149
20436
  name: string;
20150
20437
  providerId: string;
@@ -20186,6 +20473,119 @@ export type RoutingProvidersUpdateRoutingModelResponses = {
20186
20473
 
20187
20474
  export type RoutingProvidersUpdateRoutingModelResponse = RoutingProvidersUpdateRoutingModelResponses[keyof RoutingProvidersUpdateRoutingModelResponses];
20188
20475
 
20476
+ export type RoutingProvidersRestoreRoutingModelData = {
20477
+ body?: never;
20478
+ path: {
20479
+ projectId: string;
20480
+ providerId: string;
20481
+ modelId: string;
20482
+ };
20483
+ query?: never;
20484
+ url: '/v1/projects/{projectId}/routing/providers/{providerId}/models/{modelId}/restore';
20485
+ };
20486
+
20487
+ export type RoutingProvidersRestoreRoutingModelErrors = {
20488
+ /**
20489
+ * BadRequestError
20490
+ */
20491
+ 400: BadRequestError;
20492
+ /**
20493
+ * UnauthorizedError
20494
+ */
20495
+ 401: UnauthorizedError;
20496
+ /**
20497
+ * ForbiddenError
20498
+ */
20499
+ 403: ForbiddenError;
20500
+ /**
20501
+ * NotFoundError
20502
+ */
20503
+ 404: NotFoundError;
20504
+ /**
20505
+ * ConflictError
20506
+ */
20507
+ 409: ConflictError;
20508
+ /**
20509
+ * GoneError
20510
+ */
20511
+ 410: GoneError;
20512
+ /**
20513
+ * MisdirectedRequestError
20514
+ */
20515
+ 421: MisdirectedRequestError;
20516
+ /**
20517
+ * UnprocessableEntityError
20518
+ */
20519
+ 422: UnprocessableEntityError;
20520
+ /**
20521
+ * TooManyRequestsError
20522
+ */
20523
+ 429: TooManyRequestsError;
20524
+ /**
20525
+ * InternalServerError
20526
+ */
20527
+ 500: InternalServerError;
20528
+ /**
20529
+ * ServiceUnavailableError
20530
+ */
20531
+ 503: ServiceUnavailableError;
20532
+ };
20533
+
20534
+ export type RoutingProvidersRestoreRoutingModelError = RoutingProvidersRestoreRoutingModelErrors[keyof RoutingProvidersRestoreRoutingModelErrors];
20535
+
20536
+ export type RoutingProvidersRestoreRoutingModelResponses = {
20537
+ /**
20538
+ * Success
20539
+ */
20540
+ 200: {
20541
+ code: number;
20542
+ data: {
20543
+ catalogSlug?: string | null | null;
20544
+ createdAt: string;
20545
+ description: string | null;
20546
+ displayName: string | null;
20547
+ id: string;
20548
+ modelType: string | null;
20549
+ name: string;
20550
+ providerId: string;
20551
+ publishWarning?: {
20552
+ errors: Array<{
20553
+ entity: string;
20554
+ message: string;
20555
+ rule?: string | null;
20556
+ }>;
20557
+ kind: 'validation';
20558
+ } | null;
20559
+ updatedAt: string;
20560
+ } | null;
20561
+ error: {
20562
+ code: string;
20563
+ details?: unknown | null;
20564
+ message: string;
20565
+ rowErrors?: Array<{
20566
+ code: string;
20567
+ message: string;
20568
+ path: Array<string | number>;
20569
+ }> | null;
20570
+ } | null;
20571
+ pagination: {
20572
+ limit: number;
20573
+ page: number;
20574
+ total: number;
20575
+ totalPages: number;
20576
+ } | null;
20577
+ sdkBehavior?: {
20578
+ flags: {
20579
+ [key: string]: unknown;
20580
+ };
20581
+ v: number;
20582
+ } | null;
20583
+ success: boolean;
20584
+ };
20585
+ };
20586
+
20587
+ export type RoutingProvidersRestoreRoutingModelResponse = RoutingProvidersRestoreRoutingModelResponses[keyof RoutingProvidersRestoreRoutingModelResponses];
20588
+
20189
20589
  export type RoutingProvidersRestoreRoutingProviderData = {
20190
20590
  body: {
20191
20591
  reason: string;
@@ -20284,6 +20684,111 @@ export type RoutingProvidersRestoreRoutingProviderResponses = {
20284
20684
 
20285
20685
  export type RoutingProvidersRestoreRoutingProviderResponse = RoutingProvidersRestoreRoutingProviderResponses[keyof RoutingProvidersRestoreRoutingProviderResponses];
20286
20686
 
20687
+ export type ProviderConfigVersionsListProviderConfigVersionsData = {
20688
+ body?: never;
20689
+ path: {
20690
+ projectId: string;
20691
+ providerId: string;
20692
+ };
20693
+ query?: never;
20694
+ url: '/v1/projects/{projectId}/routing/providers/{providerId}/versions';
20695
+ };
20696
+
20697
+ export type ProviderConfigVersionsListProviderConfigVersionsErrors = {
20698
+ /**
20699
+ * BadRequestError
20700
+ */
20701
+ 400: BadRequestError;
20702
+ /**
20703
+ * UnauthorizedError
20704
+ */
20705
+ 401: UnauthorizedError;
20706
+ /**
20707
+ * ForbiddenError
20708
+ */
20709
+ 403: ForbiddenError;
20710
+ /**
20711
+ * NotFoundError
20712
+ */
20713
+ 404: NotFoundError;
20714
+ /**
20715
+ * ConflictError
20716
+ */
20717
+ 409: ConflictError;
20718
+ /**
20719
+ * GoneError
20720
+ */
20721
+ 410: GoneError;
20722
+ /**
20723
+ * MisdirectedRequestError
20724
+ */
20725
+ 421: MisdirectedRequestError;
20726
+ /**
20727
+ * UnprocessableEntityError
20728
+ */
20729
+ 422: UnprocessableEntityError;
20730
+ /**
20731
+ * TooManyRequestsError
20732
+ */
20733
+ 429: TooManyRequestsError;
20734
+ /**
20735
+ * InternalServerError
20736
+ */
20737
+ 500: InternalServerError;
20738
+ /**
20739
+ * ServiceUnavailableError
20740
+ */
20741
+ 503: ServiceUnavailableError;
20742
+ };
20743
+
20744
+ export type ProviderConfigVersionsListProviderConfigVersionsError = ProviderConfigVersionsListProviderConfigVersionsErrors[keyof ProviderConfigVersionsListProviderConfigVersionsErrors];
20745
+
20746
+ export type ProviderConfigVersionsListProviderConfigVersionsResponses = {
20747
+ /**
20748
+ * Success
20749
+ */
20750
+ 200: {
20751
+ code: number;
20752
+ data: {
20753
+ versions: Array<{
20754
+ configSnapshot: {
20755
+ [key: string]: unknown;
20756
+ };
20757
+ contentHash: string;
20758
+ createdAt: string;
20759
+ createdBy: string | null;
20760
+ liveInEnvSlugs: Array<string>;
20761
+ version: number;
20762
+ }>;
20763
+ } | null;
20764
+ error: {
20765
+ code: string;
20766
+ details?: unknown | null;
20767
+ message: string;
20768
+ rowErrors?: Array<{
20769
+ code: string;
20770
+ message: string;
20771
+ path: Array<string | number>;
20772
+ }> | null;
20773
+ } | null;
20774
+ pagination: {
20775
+ limit: number;
20776
+ page: number;
20777
+ total: number;
20778
+ totalPages: number;
20779
+ } | null;
20780
+ sdkBehavior?: {
20781
+ flags: {
20782
+ [key: string]: unknown;
20783
+ };
20784
+ v: number;
20785
+ } | null;
20786
+ success: boolean;
20787
+ };
20788
+ };
20789
+
20790
+ export type ProviderConfigVersionsListProviderConfigVersionsResponse = ProviderConfigVersionsListProviderConfigVersionsResponses[keyof ProviderConfigVersionsListProviderConfigVersionsResponses];
20791
+
20287
20792
  export type RoutingRoutesListRoutingRoutesData = {
20288
20793
  body?: never;
20289
20794
  path: {