@to11ai/sdk 0.3.0 → 0.4.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
  };
@@ -3671,6 +3672,198 @@ export type OrganizationsAcceptOrganizationInvitationResponses = {
3671
3672
 
3672
3673
  export type OrganizationsAcceptOrganizationInvitationResponse = OrganizationsAcceptOrganizationInvitationResponses[keyof OrganizationsAcceptOrganizationInvitationResponses];
3673
3674
 
3675
+ export type OrganizationsAcceptPendingOrganizationInvitationsData = {
3676
+ body?: never;
3677
+ path?: never;
3678
+ query?: never;
3679
+ url: '/v1/invitations/accept-pending';
3680
+ };
3681
+
3682
+ export type OrganizationsAcceptPendingOrganizationInvitationsErrors = {
3683
+ /**
3684
+ * BadRequestError
3685
+ */
3686
+ 400: BadRequestError;
3687
+ /**
3688
+ * UnauthorizedError
3689
+ */
3690
+ 401: UnauthorizedError;
3691
+ /**
3692
+ * ForbiddenError
3693
+ */
3694
+ 403: ForbiddenError;
3695
+ /**
3696
+ * NotFoundError
3697
+ */
3698
+ 404: NotFoundError;
3699
+ /**
3700
+ * ConflictError
3701
+ */
3702
+ 409: ConflictError;
3703
+ /**
3704
+ * GoneError
3705
+ */
3706
+ 410: GoneError;
3707
+ /**
3708
+ * MisdirectedRequestError
3709
+ */
3710
+ 421: MisdirectedRequestError;
3711
+ /**
3712
+ * UnprocessableEntityError
3713
+ */
3714
+ 422: UnprocessableEntityError;
3715
+ /**
3716
+ * TooManyRequestsError
3717
+ */
3718
+ 429: TooManyRequestsError;
3719
+ /**
3720
+ * InternalServerError
3721
+ */
3722
+ 500: InternalServerError;
3723
+ /**
3724
+ * ServiceUnavailableError
3725
+ */
3726
+ 503: ServiceUnavailableError;
3727
+ };
3728
+
3729
+ export type OrganizationsAcceptPendingOrganizationInvitationsError = OrganizationsAcceptPendingOrganizationInvitationsErrors[keyof OrganizationsAcceptPendingOrganizationInvitationsErrors];
3730
+
3731
+ export type OrganizationsAcceptPendingOrganizationInvitationsResponses = {
3732
+ /**
3733
+ * Success
3734
+ */
3735
+ 200: {
3736
+ code: number;
3737
+ data: {
3738
+ acceptedOrganizationIds: Array<string>;
3739
+ } | null;
3740
+ error: {
3741
+ code: string;
3742
+ details?: unknown | null;
3743
+ message: string;
3744
+ rowErrors?: Array<{
3745
+ code: string;
3746
+ message: string;
3747
+ path: Array<string | number>;
3748
+ }> | null;
3749
+ } | null;
3750
+ pagination: {
3751
+ limit: number;
3752
+ page: number;
3753
+ total: number;
3754
+ totalPages: number;
3755
+ } | null;
3756
+ sdkBehavior?: {
3757
+ flags: {
3758
+ [key: string]: unknown;
3759
+ };
3760
+ v: number;
3761
+ } | null;
3762
+ success: boolean;
3763
+ };
3764
+ };
3765
+
3766
+ export type OrganizationsAcceptPendingOrganizationInvitationsResponse = OrganizationsAcceptPendingOrganizationInvitationsResponses[keyof OrganizationsAcceptPendingOrganizationInvitationsResponses];
3767
+
3768
+ export type OrganizationsGetOrganizationInvitationDetailsData = {
3769
+ body: {
3770
+ token: string;
3771
+ };
3772
+ path?: never;
3773
+ query?: never;
3774
+ url: '/v1/invitations/details';
3775
+ };
3776
+
3777
+ export type OrganizationsGetOrganizationInvitationDetailsErrors = {
3778
+ /**
3779
+ * BadRequestError
3780
+ */
3781
+ 400: BadRequestError;
3782
+ /**
3783
+ * UnauthorizedError
3784
+ */
3785
+ 401: UnauthorizedError;
3786
+ /**
3787
+ * ForbiddenError
3788
+ */
3789
+ 403: ForbiddenError;
3790
+ /**
3791
+ * NotFoundError
3792
+ */
3793
+ 404: NotFoundError;
3794
+ /**
3795
+ * ConflictError
3796
+ */
3797
+ 409: ConflictError;
3798
+ /**
3799
+ * GoneError
3800
+ */
3801
+ 410: GoneError;
3802
+ /**
3803
+ * MisdirectedRequestError
3804
+ */
3805
+ 421: MisdirectedRequestError;
3806
+ /**
3807
+ * UnprocessableEntityError
3808
+ */
3809
+ 422: UnprocessableEntityError;
3810
+ /**
3811
+ * TooManyRequestsError
3812
+ */
3813
+ 429: TooManyRequestsError;
3814
+ /**
3815
+ * InternalServerError
3816
+ */
3817
+ 500: InternalServerError;
3818
+ /**
3819
+ * ServiceUnavailableError
3820
+ */
3821
+ 503: ServiceUnavailableError;
3822
+ };
3823
+
3824
+ export type OrganizationsGetOrganizationInvitationDetailsError = OrganizationsGetOrganizationInvitationDetailsErrors[keyof OrganizationsGetOrganizationInvitationDetailsErrors];
3825
+
3826
+ export type OrganizationsGetOrganizationInvitationDetailsResponses = {
3827
+ /**
3828
+ * Success
3829
+ */
3830
+ 200: {
3831
+ code: number;
3832
+ data: {
3833
+ details: {
3834
+ inviterEmail: string | null;
3835
+ inviterName: string | null;
3836
+ organizationName: string;
3837
+ } | null;
3838
+ } | null;
3839
+ error: {
3840
+ code: string;
3841
+ details?: unknown | null;
3842
+ message: string;
3843
+ rowErrors?: Array<{
3844
+ code: string;
3845
+ message: string;
3846
+ path: Array<string | number>;
3847
+ }> | null;
3848
+ } | null;
3849
+ pagination: {
3850
+ limit: number;
3851
+ page: number;
3852
+ total: number;
3853
+ totalPages: number;
3854
+ } | null;
3855
+ sdkBehavior?: {
3856
+ flags: {
3857
+ [key: string]: unknown;
3858
+ };
3859
+ v: number;
3860
+ } | null;
3861
+ success: boolean;
3862
+ };
3863
+ };
3864
+
3865
+ export type OrganizationsGetOrganizationInvitationDetailsResponse = OrganizationsGetOrganizationInvitationDetailsResponses[keyof OrganizationsGetOrganizationInvitationDetailsResponses];
3866
+
3674
3867
  export type ApiKeysListApiKeysSuperData = {
3675
3868
  body?: never;
3676
3869
  path?: never;
@@ -8084,27 +8277,14 @@ export type WorkspacesCreateWorkspaceResponses = {
8084
8277
  201: {
8085
8278
  code: number;
8086
8279
  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
- };
8280
+ allowPlatformDiscovery: boolean;
8281
+ createdAt: string;
8282
+ id: string;
8283
+ name: string;
8284
+ organizationId: string;
8285
+ slug: string;
8286
+ status: 'active' | 'archived' | 'deleted';
8287
+ updatedAt: string;
8108
8288
  } | null;
8109
8289
  error: {
8110
8290
  code: string;
@@ -9990,7 +10170,7 @@ export type CredentialsDirectoryListProjectCredentialsDirectoryData = {
9990
10170
  };
9991
10171
  query?: {
9992
10172
  catalog_id?: string | null;
9993
- lifecycle_status?: 'active' | null;
10173
+ lifecycle_status?: 'active' | 'deleted' | null;
9994
10174
  attached_provider_count?: '0' | '1' | '2+' | null;
9995
10175
  limit?: string | null;
9996
10176
  cursor?: string | null;
@@ -10069,7 +10249,7 @@ export type CredentialsDirectoryListProjectCredentialsDirectoryResponses = {
10069
10249
  };
10070
10250
  createdAt: string;
10071
10251
  createdBy: string | null;
10072
- credentialType: string;
10252
+ credentialType: 'api-key' | 'oauth' | 'iam-role' | 'access-key' | 'service-account' | 'none' | 'passthrough';
10073
10253
  currentActivations: Array<{
10074
10254
  activeFrom: string;
10075
10255
  activeTo: string | null;
@@ -10083,7 +10263,7 @@ export type CredentialsDirectoryListProjectCredentialsDirectoryResponses = {
10083
10263
  keyLast4: string;
10084
10264
  label: string | null;
10085
10265
  lastRotationAt: string | null;
10086
- lifecycleStatus: 'active';
10266
+ lifecycleStatus: 'active' | 'deleted';
10087
10267
  projectId: string;
10088
10268
  }>;
10089
10269
  pagination: {
@@ -13839,7 +14019,7 @@ export type PromptsListPromptsData = {
13839
14019
  search?: string | null;
13840
14020
  sortDir?: 'asc' | 'desc' | null;
13841
14021
  status?: string | null;
13842
- sortBy?: 'createdAt' | 'updatedAt' | 'name' | 'status' | 'latestVersion' | null;
14022
+ sortBy?: 'createdAt' | 'updatedAt' | 'name' | 'status' | 'latestVersion' | 'environments' | null;
13843
14023
  tags?: string | null;
13844
14024
  environment?: string | null;
13845
14025
  };
@@ -13917,6 +14097,7 @@ export type PromptsListPromptsResponses = {
13917
14097
  lastModifiedAt: string;
13918
14098
  lastModifiedByDisplayName: string | null;
13919
14099
  lastModifiedByImage: string | null;
14100
+ lastModifiedByType: 'user' | 'api_key' | 'unknown' | null;
13920
14101
  lastModifiedByUserId: string | null;
13921
14102
  latestVersion: number | null;
13922
14103
  name: string;
@@ -14683,7 +14864,9 @@ export type PromptsListPromptLabelsData = {
14683
14864
  projectId: string;
14684
14865
  promptId: string;
14685
14866
  };
14686
- query?: never;
14867
+ query?: {
14868
+ asOf?: string | null;
14869
+ };
14687
14870
  url: '/v1/projects/{projectId}/prompts/{promptId}/labels';
14688
14871
  };
14689
14872
 
@@ -14773,7 +14956,7 @@ export type PromptsListPromptLabelsResponse = PromptsListPromptLabelsResponses[k
14773
14956
 
14774
14957
  export type PromptsMovePromptLabelData = {
14775
14958
  body: {
14776
- reason?: string | null;
14959
+ reason: string;
14777
14960
  versionId: string;
14778
14961
  };
14779
14962
  path: {
@@ -14981,7 +15164,7 @@ export type PromptsListPromptLabelEventsByLabelResponse = PromptsListPromptLabel
14981
15164
 
14982
15165
  export type PromptsSetWeightedReleaseData = {
14983
15166
  body: {
14984
- reason?: string | null;
15167
+ reason: string;
14985
15168
  variants: Array<{
14986
15169
  name: string;
14987
15170
  versionId: string;
@@ -15081,17 +15264,19 @@ export type PromptsSetWeightedReleaseResponses = {
15081
15264
 
15082
15265
  export type PromptsSetWeightedReleaseResponse = PromptsSetWeightedReleaseResponses[keyof PromptsSetWeightedReleaseResponses];
15083
15266
 
15084
- export type PromptsListPromptVersionsData = {
15267
+ export type PromptMetricsGetPromptRequestMetricsData = {
15085
15268
  body?: never;
15086
15269
  path: {
15087
15270
  projectId: string;
15088
15271
  promptId: string;
15089
15272
  };
15090
- query?: never;
15091
- url: '/v1/projects/{projectId}/prompts/{promptId}/versions';
15273
+ query?: {
15274
+ window?: string | null;
15275
+ };
15276
+ url: '/v1/projects/{projectId}/prompts/{promptId}/request-metrics';
15092
15277
  };
15093
15278
 
15094
- export type PromptsListPromptVersionsErrors = {
15279
+ export type PromptMetricsGetPromptRequestMetricsErrors = {
15095
15280
  /**
15096
15281
  * BadRequestError
15097
15282
  */
@@ -15138,15 +15323,26 @@ export type PromptsListPromptVersionsErrors = {
15138
15323
  503: ServiceUnavailableError;
15139
15324
  };
15140
15325
 
15141
- export type PromptsListPromptVersionsError = PromptsListPromptVersionsErrors[keyof PromptsListPromptVersionsErrors];
15326
+ export type PromptMetricsGetPromptRequestMetricsError = PromptMetricsGetPromptRequestMetricsErrors[keyof PromptMetricsGetPromptRequestMetricsErrors];
15142
15327
 
15143
- export type PromptsListPromptVersionsResponses = {
15328
+ export type PromptMetricsGetPromptRequestMetricsResponses = {
15144
15329
  /**
15145
15330
  * Success
15146
15331
  */
15147
15332
  200: {
15148
15333
  code: number;
15149
- data: Array<PromptVersion> | null;
15334
+ data: {
15335
+ bucketMinutes: number;
15336
+ series: Array<{
15337
+ points: Array<{
15338
+ bucketStart: string;
15339
+ requests: number;
15340
+ }>;
15341
+ totalRequests: number;
15342
+ version: string;
15343
+ }>;
15344
+ windowHours: number;
15345
+ } | null;
15150
15346
  error: {
15151
15347
  code: string;
15152
15348
  details?: unknown | null;
@@ -15173,18 +15369,10 @@ export type PromptsListPromptVersionsResponses = {
15173
15369
  };
15174
15370
  };
15175
15371
 
15176
- export type PromptsListPromptVersionsResponse = PromptsListPromptVersionsResponses[keyof PromptsListPromptVersionsResponses];
15372
+ export type PromptMetricsGetPromptRequestMetricsResponse = PromptMetricsGetPromptRequestMetricsResponses[keyof PromptMetricsGetPromptRequestMetricsResponses];
15177
15373
 
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
- };
15374
+ export type PromptsListPromptVersionsData = {
15375
+ body?: never;
15188
15376
  path: {
15189
15377
  projectId: string;
15190
15378
  promptId: string;
@@ -15193,7 +15381,7 @@ export type PromptsCreatePromptVersionData = {
15193
15381
  url: '/v1/projects/{projectId}/prompts/{promptId}/versions';
15194
15382
  };
15195
15383
 
15196
- export type PromptsCreatePromptVersionErrors = {
15384
+ export type PromptsListPromptVersionsErrors = {
15197
15385
  /**
15198
15386
  * BadRequestError
15199
15387
  */
@@ -15240,15 +15428,15 @@ export type PromptsCreatePromptVersionErrors = {
15240
15428
  503: ServiceUnavailableError;
15241
15429
  };
15242
15430
 
15243
- export type PromptsCreatePromptVersionError = PromptsCreatePromptVersionErrors[keyof PromptsCreatePromptVersionErrors];
15431
+ export type PromptsListPromptVersionsError = PromptsListPromptVersionsErrors[keyof PromptsListPromptVersionsErrors];
15244
15432
 
15245
- export type PromptsCreatePromptVersionResponses = {
15433
+ export type PromptsListPromptVersionsResponses = {
15246
15434
  /**
15247
15435
  * Success
15248
15436
  */
15249
- 201: {
15437
+ 200: {
15250
15438
  code: number;
15251
- data: PromptVersion | null;
15439
+ data: Array<PromptVersion> | null;
15252
15440
  error: {
15253
15441
  code: string;
15254
15442
  details?: unknown | null;
@@ -15275,17 +15463,119 @@ export type PromptsCreatePromptVersionResponses = {
15275
15463
  };
15276
15464
  };
15277
15465
 
15278
- export type PromptsCreatePromptVersionResponse = PromptsCreatePromptVersionResponses[keyof PromptsCreatePromptVersionResponses];
15466
+ export type PromptsListPromptVersionsResponse = PromptsListPromptVersionsResponses[keyof PromptsListPromptVersionsResponses];
15279
15467
 
15280
- export type PromptsGetPromptVersionDiffData = {
15281
- body?: never;
15282
- path: {
15283
- projectId: string;
15284
- promptId: string;
15285
- versionId: string;
15286
- };
15287
- query?: {
15288
- against?: string | null;
15468
+ export type PromptsCreatePromptVersionData = {
15469
+ body: {
15470
+ allowBlockRemovals?: Array<string> | null;
15471
+ baseVersionId?: string | null;
15472
+ changelog?: string | null;
15473
+ format: 'text' | 'chat';
15474
+ modelConfig?: unknown | null;
15475
+ templateJson: unknown;
15476
+ variablesSchema?: unknown | null;
15477
+ };
15478
+ path: {
15479
+ projectId: string;
15480
+ promptId: string;
15481
+ };
15482
+ query?: never;
15483
+ url: '/v1/projects/{projectId}/prompts/{promptId}/versions';
15484
+ };
15485
+
15486
+ export type PromptsCreatePromptVersionErrors = {
15487
+ /**
15488
+ * BadRequestError
15489
+ */
15490
+ 400: BadRequestError;
15491
+ /**
15492
+ * UnauthorizedError
15493
+ */
15494
+ 401: UnauthorizedError;
15495
+ /**
15496
+ * ForbiddenError
15497
+ */
15498
+ 403: ForbiddenError;
15499
+ /**
15500
+ * NotFoundError
15501
+ */
15502
+ 404: NotFoundError;
15503
+ /**
15504
+ * ConflictError
15505
+ */
15506
+ 409: ConflictError;
15507
+ /**
15508
+ * GoneError
15509
+ */
15510
+ 410: GoneError;
15511
+ /**
15512
+ * MisdirectedRequestError
15513
+ */
15514
+ 421: MisdirectedRequestError;
15515
+ /**
15516
+ * UnprocessableEntityError
15517
+ */
15518
+ 422: UnprocessableEntityError;
15519
+ /**
15520
+ * TooManyRequestsError
15521
+ */
15522
+ 429: TooManyRequestsError;
15523
+ /**
15524
+ * InternalServerError
15525
+ */
15526
+ 500: InternalServerError;
15527
+ /**
15528
+ * ServiceUnavailableError
15529
+ */
15530
+ 503: ServiceUnavailableError;
15531
+ };
15532
+
15533
+ export type PromptsCreatePromptVersionError = PromptsCreatePromptVersionErrors[keyof PromptsCreatePromptVersionErrors];
15534
+
15535
+ export type PromptsCreatePromptVersionResponses = {
15536
+ /**
15537
+ * Success
15538
+ */
15539
+ 201: {
15540
+ code: number;
15541
+ data: PromptVersion | null;
15542
+ error: {
15543
+ code: string;
15544
+ details?: unknown | null;
15545
+ message: string;
15546
+ rowErrors?: Array<{
15547
+ code: string;
15548
+ message: string;
15549
+ path: Array<string | number>;
15550
+ }> | null;
15551
+ } | null;
15552
+ pagination: {
15553
+ limit: number;
15554
+ page: number;
15555
+ total: number;
15556
+ totalPages: number;
15557
+ } | null;
15558
+ sdkBehavior?: {
15559
+ flags: {
15560
+ [key: string]: unknown;
15561
+ };
15562
+ v: number;
15563
+ } | null;
15564
+ success: boolean;
15565
+ };
15566
+ };
15567
+
15568
+ export type PromptsCreatePromptVersionResponse = PromptsCreatePromptVersionResponses[keyof PromptsCreatePromptVersionResponses];
15569
+
15570
+ export type PromptsGetPromptVersionDiffData = {
15571
+ body?: never;
15572
+ path: {
15573
+ projectId: string;
15574
+ promptId: string;
15575
+ versionId: string;
15576
+ };
15577
+ query?: {
15578
+ against?: string | null;
15289
15579
  };
15290
15580
  url: '/v1/projects/{projectId}/prompts/{promptId}/versions/{versionId}/diff';
15291
15581
  };
@@ -16045,6 +16335,7 @@ export type CredentialLifecycleRenameCredentialResponses = {
16045
16335
  data: {
16046
16336
  createdAt: string;
16047
16337
  credentialType: 'api-key' | 'oauth' | 'iam-role' | 'access-key' | 'service-account' | 'none' | 'passthrough';
16338
+ deletedAt?: string | null | null;
16048
16339
  id: string;
16049
16340
  keyLast4: string;
16050
16341
  label: string | null;
@@ -16350,6 +16641,7 @@ export type CredentialLifecycleRestoreCredentialResponses = {
16350
16641
  credential: {
16351
16642
  createdAt: string;
16352
16643
  credentialType: 'api-key' | 'oauth' | 'iam-role' | 'access-key' | 'service-account' | 'none' | 'passthrough';
16644
+ deletedAt?: string | null | null;
16353
16645
  id: string;
16354
16646
  keyLast4: string;
16355
16647
  label: string | null;
@@ -17831,6 +18123,7 @@ export type RoutingProvidersListRoutingProvidersResponses = {
17831
18123
  200: {
17832
18124
  code: number;
17833
18125
  data: Array<{
18126
+ affectedEnvCount: number;
17834
18127
  apiVersion: string | null;
17835
18128
  archivedAt: string | null;
17836
18129
  authHeaderName: string | null;
@@ -17841,20 +18134,32 @@ export type RoutingProvidersListRoutingProvidersResponses = {
17841
18134
  createdByDisplay: string | null;
17842
18135
  createdByImage: string | null;
17843
18136
  createdByType?: 'user' | 'api_key' | 'unknown' | null | null;
18137
+ currentConfigVersion?: number | null | null;
17844
18138
  displayName: string;
18139
+ envCount: number;
17845
18140
  environments: Array<{
17846
18141
  activationId: string;
17847
18142
  activeFrom: string;
17848
18143
  configSnapshot: {
17849
18144
  [key: string]: unknown;
17850
18145
  };
18146
+ configVersion?: number | null | null;
17851
18147
  credentialId: string;
18148
+ credentialValidity: 'valid' | 'invalid' | 'untested' | 'na';
17852
18149
  current: true;
18150
+ health: 'healthy' | 'degraded' | 'failing';
17853
18151
  id: string;
18152
+ notRouted: boolean;
18153
+ perVersionHealth?: Array<{
18154
+ activeFrom: string;
18155
+ activeTo?: string | null | null;
18156
+ configVersion: number;
18157
+ current: boolean;
18158
+ health: 'healthy' | 'degraded' | 'failing';
18159
+ }> | null | null;
17854
18160
  slug: string;
17855
- status: 'healthy' | 'degraded' | 'failing' | 'idle';
17856
18161
  }>;
17857
- health: 'healthy' | 'degraded' | 'failing' | 'idle';
18162
+ health: 'healthy' | 'degraded' | 'failing';
17858
18163
  id: string;
17859
18164
  lastTestedAt: string | null;
17860
18165
  lifecycleState: 'active' | 'deactivated' | 'archived';
@@ -17981,6 +18286,7 @@ export type RoutingProvidersCreateRoutingProviderResponses = {
17981
18286
  201: {
17982
18287
  code: number;
17983
18288
  data: {
18289
+ affectedEnvCount: number;
17984
18290
  apiVersion: string | null;
17985
18291
  archivedAt: string | null;
17986
18292
  authHeaderName: string | null;
@@ -17991,20 +18297,32 @@ export type RoutingProvidersCreateRoutingProviderResponses = {
17991
18297
  createdByDisplay: string | null;
17992
18298
  createdByImage: string | null;
17993
18299
  createdByType?: 'user' | 'api_key' | 'unknown' | null | null;
18300
+ currentConfigVersion?: number | null | null;
17994
18301
  displayName: string;
18302
+ envCount: number;
17995
18303
  environments: Array<{
17996
18304
  activationId: string;
17997
18305
  activeFrom: string;
17998
18306
  configSnapshot: {
17999
18307
  [key: string]: unknown;
18000
18308
  };
18309
+ configVersion?: number | null | null;
18001
18310
  credentialId: string;
18311
+ credentialValidity: 'valid' | 'invalid' | 'untested' | 'na';
18002
18312
  current: true;
18313
+ health: 'healthy' | 'degraded' | 'failing';
18003
18314
  id: string;
18315
+ notRouted: boolean;
18316
+ perVersionHealth?: Array<{
18317
+ activeFrom: string;
18318
+ activeTo?: string | null | null;
18319
+ configVersion: number;
18320
+ current: boolean;
18321
+ health: 'healthy' | 'degraded' | 'failing';
18322
+ }> | null | null;
18004
18323
  slug: string;
18005
- status: 'healthy' | 'degraded' | 'failing' | 'idle';
18006
18324
  }>;
18007
- health: 'healthy' | 'degraded' | 'failing' | 'idle';
18325
+ health: 'healthy' | 'degraded' | 'failing';
18008
18326
  id: string;
18009
18327
  lastTestedAt: string | null;
18010
18328
  lifecycleState: 'active' | 'deactivated' | 'archived';
@@ -18187,6 +18505,7 @@ export type RoutingProvidersConnectRoutingProviderResponses = {
18187
18505
  }>;
18188
18506
  credentialId: string;
18189
18507
  provider: {
18508
+ affectedEnvCount: number;
18190
18509
  apiVersion: string | null;
18191
18510
  archivedAt: string | null;
18192
18511
  authHeaderName: string | null;
@@ -18197,20 +18516,32 @@ export type RoutingProvidersConnectRoutingProviderResponses = {
18197
18516
  createdByDisplay: string | null;
18198
18517
  createdByImage: string | null;
18199
18518
  createdByType?: 'user' | 'api_key' | 'unknown' | null | null;
18519
+ currentConfigVersion?: number | null | null;
18200
18520
  displayName: string;
18521
+ envCount: number;
18201
18522
  environments: Array<{
18202
18523
  activationId: string;
18203
18524
  activeFrom: string;
18204
18525
  configSnapshot: {
18205
18526
  [key: string]: unknown;
18206
18527
  };
18528
+ configVersion?: number | null | null;
18207
18529
  credentialId: string;
18530
+ credentialValidity: 'valid' | 'invalid' | 'untested' | 'na';
18208
18531
  current: true;
18532
+ health: 'healthy' | 'degraded' | 'failing';
18209
18533
  id: string;
18534
+ notRouted: boolean;
18535
+ perVersionHealth?: Array<{
18536
+ activeFrom: string;
18537
+ activeTo?: string | null | null;
18538
+ configVersion: number;
18539
+ current: boolean;
18540
+ health: 'healthy' | 'degraded' | 'failing';
18541
+ }> | null | null;
18210
18542
  slug: string;
18211
- status: 'healthy' | 'degraded' | 'failing' | 'idle';
18212
18543
  }>;
18213
- health: 'healthy' | 'degraded' | 'failing' | 'idle';
18544
+ health: 'healthy' | 'degraded' | 'failing';
18214
18545
  id: string;
18215
18546
  lastTestedAt: string | null;
18216
18547
  lifecycleState: 'active' | 'deactivated' | 'archived';
@@ -18758,6 +19089,7 @@ export type RoutingProvidersGetRoutingProviderResponses = {
18758
19089
  200: {
18759
19090
  code: number;
18760
19091
  data: {
19092
+ affectedEnvCount: number;
18761
19093
  apiVersion: string | null;
18762
19094
  archivedAt: string | null;
18763
19095
  authHeaderName: string | null;
@@ -18768,20 +19100,32 @@ export type RoutingProvidersGetRoutingProviderResponses = {
18768
19100
  createdByDisplay: string | null;
18769
19101
  createdByImage: string | null;
18770
19102
  createdByType?: 'user' | 'api_key' | 'unknown' | null | null;
19103
+ currentConfigVersion?: number | null | null;
18771
19104
  displayName: string;
19105
+ envCount: number;
18772
19106
  environments: Array<{
18773
19107
  activationId: string;
18774
19108
  activeFrom: string;
18775
19109
  configSnapshot: {
18776
19110
  [key: string]: unknown;
18777
19111
  };
19112
+ configVersion?: number | null | null;
18778
19113
  credentialId: string;
19114
+ credentialValidity: 'valid' | 'invalid' | 'untested' | 'na';
18779
19115
  current: true;
19116
+ health: 'healthy' | 'degraded' | 'failing';
18780
19117
  id: string;
19118
+ notRouted: boolean;
19119
+ perVersionHealth?: Array<{
19120
+ activeFrom: string;
19121
+ activeTo?: string | null | null;
19122
+ configVersion: number;
19123
+ current: boolean;
19124
+ health: 'healthy' | 'degraded' | 'failing';
19125
+ }> | null | null;
18781
19126
  slug: string;
18782
- status: 'healthy' | 'degraded' | 'failing' | 'idle';
18783
19127
  }>;
18784
- health: 'healthy' | 'degraded' | 'failing' | 'idle';
19128
+ health: 'healthy' | 'degraded' | 'failing';
18785
19129
  id: string;
18786
19130
  lastTestedAt: string | null;
18787
19131
  lifecycleState: 'active' | 'deactivated' | 'archived';
@@ -18906,6 +19250,7 @@ export type RoutingProvidersUpdateRoutingProviderResponses = {
18906
19250
  200: {
18907
19251
  code: number;
18908
19252
  data: {
19253
+ affectedEnvCount: number;
18909
19254
  apiVersion: string | null;
18910
19255
  archivedAt: string | null;
18911
19256
  authHeaderName: string | null;
@@ -18916,20 +19261,32 @@ export type RoutingProvidersUpdateRoutingProviderResponses = {
18916
19261
  createdByDisplay: string | null;
18917
19262
  createdByImage: string | null;
18918
19263
  createdByType?: 'user' | 'api_key' | 'unknown' | null | null;
19264
+ currentConfigVersion?: number | null | null;
18919
19265
  displayName: string;
19266
+ envCount: number;
18920
19267
  environments: Array<{
18921
19268
  activationId: string;
18922
19269
  activeFrom: string;
18923
19270
  configSnapshot: {
18924
19271
  [key: string]: unknown;
18925
19272
  };
19273
+ configVersion?: number | null | null;
18926
19274
  credentialId: string;
19275
+ credentialValidity: 'valid' | 'invalid' | 'untested' | 'na';
18927
19276
  current: true;
19277
+ health: 'healthy' | 'degraded' | 'failing';
18928
19278
  id: string;
19279
+ notRouted: boolean;
19280
+ perVersionHealth?: Array<{
19281
+ activeFrom: string;
19282
+ activeTo?: string | null | null;
19283
+ configVersion: number;
19284
+ current: boolean;
19285
+ health: 'healthy' | 'degraded' | 'failing';
19286
+ }> | null | null;
18929
19287
  slug: string;
18930
- status: 'healthy' | 'degraded' | 'failing' | 'idle';
18931
19288
  }>;
18932
- health: 'healthy' | 'degraded' | 'failing' | 'idle';
19289
+ health: 'healthy' | 'degraded' | 'failing';
18933
19290
  id: string;
18934
19291
  lastTestedAt: string | null;
18935
19292
  lifecycleState: 'active' | 'deactivated' | 'archived';
@@ -19160,6 +19517,7 @@ export type RoutingProviderCatalogResolveRoutingProviderCatalogResponses = {
19160
19517
  deprecatedAt?: string | null;
19161
19518
  displayName?: string | null;
19162
19519
  id: string;
19520
+ source?: 'user' | 'platform' | 'curated' | 'custom' | null;
19163
19521
  }>;
19164
19522
  source: 'user' | 'platform' | 'curated' | 'empty';
19165
19523
  transition: {
@@ -19364,6 +19722,7 @@ export type RoutingProvidersListRoutingCredentialsResponses = {
19364
19722
  data: Array<{
19365
19723
  createdAt: string;
19366
19724
  credentialType: 'api-key' | 'oauth' | 'iam-role' | 'access-key' | 'service-account' | 'none' | 'passthrough';
19725
+ deletedAt?: string | null | null;
19367
19726
  id: string;
19368
19727
  keyLast4: string;
19369
19728
  label: string | null;
@@ -19490,6 +19849,7 @@ export type RoutingProvidersCreateRoutingCredentialResponses = {
19490
19849
  data: {
19491
19850
  createdAt: string;
19492
19851
  credentialType: 'api-key' | 'oauth' | 'iam-role' | 'access-key' | 'service-account' | 'none' | 'passthrough';
19852
+ deletedAt?: string | null | null;
19493
19853
  id: string;
19494
19854
  keyLast4: string;
19495
19855
  label: string | null;
@@ -19741,6 +20101,122 @@ export type RoutingProvidersTestRoutingCredentialResponses = {
19741
20101
 
19742
20102
  export type RoutingProvidersTestRoutingCredentialResponse = RoutingProvidersTestRoutingCredentialResponses[keyof RoutingProvidersTestRoutingCredentialResponses];
19743
20103
 
20104
+ export type ProviderPromoteVersionPromoteProviderEnvVersionData = {
20105
+ body: {
20106
+ reason?: string | null;
20107
+ version: number;
20108
+ };
20109
+ path: {
20110
+ projectId: string;
20111
+ providerId: string;
20112
+ envSlug: string;
20113
+ };
20114
+ query?: never;
20115
+ url: '/v1/projects/{projectId}/routing/providers/{providerId}/environments/{envSlug}/promote';
20116
+ };
20117
+
20118
+ export type ProviderPromoteVersionPromoteProviderEnvVersionErrors = {
20119
+ /**
20120
+ * BadRequestError
20121
+ */
20122
+ 400: BadRequestError;
20123
+ /**
20124
+ * UnauthorizedError
20125
+ */
20126
+ 401: UnauthorizedError;
20127
+ /**
20128
+ * ForbiddenError
20129
+ */
20130
+ 403: ForbiddenError;
20131
+ /**
20132
+ * NotFoundError
20133
+ */
20134
+ 404: NotFoundError;
20135
+ /**
20136
+ * ConflictError
20137
+ */
20138
+ 409: ConflictError;
20139
+ /**
20140
+ * GoneError
20141
+ */
20142
+ 410: GoneError;
20143
+ /**
20144
+ * MisdirectedRequestError
20145
+ */
20146
+ 421: MisdirectedRequestError;
20147
+ /**
20148
+ * UnprocessableEntityError
20149
+ */
20150
+ 422: UnprocessableEntityError;
20151
+ /**
20152
+ * TooManyRequestsError
20153
+ */
20154
+ 429: TooManyRequestsError;
20155
+ /**
20156
+ * InternalServerError
20157
+ */
20158
+ 500: InternalServerError;
20159
+ /**
20160
+ * ServiceUnavailableError
20161
+ */
20162
+ 503: ServiceUnavailableError;
20163
+ };
20164
+
20165
+ export type ProviderPromoteVersionPromoteProviderEnvVersionError = ProviderPromoteVersionPromoteProviderEnvVersionErrors[keyof ProviderPromoteVersionPromoteProviderEnvVersionErrors];
20166
+
20167
+ export type ProviderPromoteVersionPromoteProviderEnvVersionResponses = {
20168
+ /**
20169
+ * Success
20170
+ */
20171
+ 201: {
20172
+ code: number;
20173
+ data: {
20174
+ activeFrom: string;
20175
+ activeTo: string | null;
20176
+ actorId: string;
20177
+ actorType: string;
20178
+ approvalStatus: 'not_required' | 'pending' | 'approved' | 'rejected';
20179
+ changeType: string;
20180
+ configSnapshot: {
20181
+ [key: string]: unknown;
20182
+ };
20183
+ createdAt: string;
20184
+ credentialId: string;
20185
+ envSlug: string;
20186
+ environmentId: string;
20187
+ id: string;
20188
+ providerId: string;
20189
+ reason: string | null;
20190
+ state: 'current' | 'pending';
20191
+ } | null;
20192
+ error: {
20193
+ code: string;
20194
+ details?: unknown | null;
20195
+ message: string;
20196
+ rowErrors?: Array<{
20197
+ code: string;
20198
+ message: string;
20199
+ path: Array<string | number>;
20200
+ }> | null;
20201
+ } | null;
20202
+ pagination: {
20203
+ limit: number;
20204
+ page: number;
20205
+ total: number;
20206
+ totalPages: number;
20207
+ } | null;
20208
+ sdkBehavior?: {
20209
+ flags: {
20210
+ [key: string]: unknown;
20211
+ };
20212
+ v: number;
20213
+ } | null;
20214
+ success: boolean;
20215
+ };
20216
+ };
20217
+
20218
+ export type ProviderPromoteVersionPromoteProviderEnvVersionResponse = ProviderPromoteVersionPromoteProviderEnvVersionResponses[keyof ProviderPromoteVersionPromoteProviderEnvVersionResponses];
20219
+
19744
20220
  export type RoutingProvidersListRoutingModelsData = {
19745
20221
  body?: never;
19746
20222
  path: {
@@ -19807,11 +20283,11 @@ export type RoutingProvidersListRoutingModelsResponses = {
19807
20283
  200: {
19808
20284
  code: number;
19809
20285
  data: Array<{
20286
+ catalogSlug?: string | null | null;
19810
20287
  createdAt: string;
19811
20288
  description: string | null;
19812
20289
  displayName: string | null;
19813
20290
  id: string;
19814
- isActive: boolean;
19815
20291
  modelType: string | null;
19816
20292
  name: string;
19817
20293
  providerId: string;
@@ -19847,9 +20323,9 @@ export type RoutingProvidersListRoutingModelsResponse = RoutingProvidersListRout
19847
20323
 
19848
20324
  export type RoutingProvidersCreateRoutingModelData = {
19849
20325
  body: {
20326
+ catalogSlug?: string | null;
19850
20327
  description?: string | null;
19851
20328
  displayName?: string | null;
19852
- isActive?: boolean | null;
19853
20329
  modelType?: string | null;
19854
20330
  name: string;
19855
20331
  };
@@ -19917,11 +20393,11 @@ export type RoutingProvidersCreateRoutingModelResponses = {
19917
20393
  201: {
19918
20394
  code: number;
19919
20395
  data: {
20396
+ catalogSlug?: string | null | null;
19920
20397
  createdAt: string;
19921
20398
  description: string | null;
19922
20399
  displayName: string | null;
19923
20400
  id: string;
19924
- isActive: boolean;
19925
20401
  modelType: string | null;
19926
20402
  name: string;
19927
20403
  providerId: string;
@@ -20072,7 +20548,6 @@ export type RoutingProvidersUpdateRoutingModelData = {
20072
20548
  body: {
20073
20549
  description?: string | null;
20074
20550
  displayName?: string | null;
20075
- isActive?: boolean | null;
20076
20551
  modelType?: string | null;
20077
20552
  };
20078
20553
  path: {
@@ -20140,11 +20615,11 @@ export type RoutingProvidersUpdateRoutingModelResponses = {
20140
20615
  200: {
20141
20616
  code: number;
20142
20617
  data: {
20618
+ catalogSlug?: string | null | null;
20143
20619
  createdAt: string;
20144
20620
  description: string | null;
20145
20621
  displayName: string | null;
20146
20622
  id: string;
20147
- isActive: boolean;
20148
20623
  modelType: string | null;
20149
20624
  name: string;
20150
20625
  providerId: string;
@@ -20186,6 +20661,119 @@ export type RoutingProvidersUpdateRoutingModelResponses = {
20186
20661
 
20187
20662
  export type RoutingProvidersUpdateRoutingModelResponse = RoutingProvidersUpdateRoutingModelResponses[keyof RoutingProvidersUpdateRoutingModelResponses];
20188
20663
 
20664
+ export type RoutingProvidersRestoreRoutingModelData = {
20665
+ body?: never;
20666
+ path: {
20667
+ projectId: string;
20668
+ providerId: string;
20669
+ modelId: string;
20670
+ };
20671
+ query?: never;
20672
+ url: '/v1/projects/{projectId}/routing/providers/{providerId}/models/{modelId}/restore';
20673
+ };
20674
+
20675
+ export type RoutingProvidersRestoreRoutingModelErrors = {
20676
+ /**
20677
+ * BadRequestError
20678
+ */
20679
+ 400: BadRequestError;
20680
+ /**
20681
+ * UnauthorizedError
20682
+ */
20683
+ 401: UnauthorizedError;
20684
+ /**
20685
+ * ForbiddenError
20686
+ */
20687
+ 403: ForbiddenError;
20688
+ /**
20689
+ * NotFoundError
20690
+ */
20691
+ 404: NotFoundError;
20692
+ /**
20693
+ * ConflictError
20694
+ */
20695
+ 409: ConflictError;
20696
+ /**
20697
+ * GoneError
20698
+ */
20699
+ 410: GoneError;
20700
+ /**
20701
+ * MisdirectedRequestError
20702
+ */
20703
+ 421: MisdirectedRequestError;
20704
+ /**
20705
+ * UnprocessableEntityError
20706
+ */
20707
+ 422: UnprocessableEntityError;
20708
+ /**
20709
+ * TooManyRequestsError
20710
+ */
20711
+ 429: TooManyRequestsError;
20712
+ /**
20713
+ * InternalServerError
20714
+ */
20715
+ 500: InternalServerError;
20716
+ /**
20717
+ * ServiceUnavailableError
20718
+ */
20719
+ 503: ServiceUnavailableError;
20720
+ };
20721
+
20722
+ export type RoutingProvidersRestoreRoutingModelError = RoutingProvidersRestoreRoutingModelErrors[keyof RoutingProvidersRestoreRoutingModelErrors];
20723
+
20724
+ export type RoutingProvidersRestoreRoutingModelResponses = {
20725
+ /**
20726
+ * Success
20727
+ */
20728
+ 200: {
20729
+ code: number;
20730
+ data: {
20731
+ catalogSlug?: string | null | null;
20732
+ createdAt: string;
20733
+ description: string | null;
20734
+ displayName: string | null;
20735
+ id: string;
20736
+ modelType: string | null;
20737
+ name: string;
20738
+ providerId: string;
20739
+ publishWarning?: {
20740
+ errors: Array<{
20741
+ entity: string;
20742
+ message: string;
20743
+ rule?: string | null;
20744
+ }>;
20745
+ kind: 'validation';
20746
+ } | null;
20747
+ updatedAt: string;
20748
+ } | null;
20749
+ error: {
20750
+ code: string;
20751
+ details?: unknown | null;
20752
+ message: string;
20753
+ rowErrors?: Array<{
20754
+ code: string;
20755
+ message: string;
20756
+ path: Array<string | number>;
20757
+ }> | null;
20758
+ } | null;
20759
+ pagination: {
20760
+ limit: number;
20761
+ page: number;
20762
+ total: number;
20763
+ totalPages: number;
20764
+ } | null;
20765
+ sdkBehavior?: {
20766
+ flags: {
20767
+ [key: string]: unknown;
20768
+ };
20769
+ v: number;
20770
+ } | null;
20771
+ success: boolean;
20772
+ };
20773
+ };
20774
+
20775
+ export type RoutingProvidersRestoreRoutingModelResponse = RoutingProvidersRestoreRoutingModelResponses[keyof RoutingProvidersRestoreRoutingModelResponses];
20776
+
20189
20777
  export type RoutingProvidersRestoreRoutingProviderData = {
20190
20778
  body: {
20191
20779
  reason: string;
@@ -20284,6 +20872,111 @@ export type RoutingProvidersRestoreRoutingProviderResponses = {
20284
20872
 
20285
20873
  export type RoutingProvidersRestoreRoutingProviderResponse = RoutingProvidersRestoreRoutingProviderResponses[keyof RoutingProvidersRestoreRoutingProviderResponses];
20286
20874
 
20875
+ export type ProviderConfigVersionsListProviderConfigVersionsData = {
20876
+ body?: never;
20877
+ path: {
20878
+ projectId: string;
20879
+ providerId: string;
20880
+ };
20881
+ query?: never;
20882
+ url: '/v1/projects/{projectId}/routing/providers/{providerId}/versions';
20883
+ };
20884
+
20885
+ export type ProviderConfigVersionsListProviderConfigVersionsErrors = {
20886
+ /**
20887
+ * BadRequestError
20888
+ */
20889
+ 400: BadRequestError;
20890
+ /**
20891
+ * UnauthorizedError
20892
+ */
20893
+ 401: UnauthorizedError;
20894
+ /**
20895
+ * ForbiddenError
20896
+ */
20897
+ 403: ForbiddenError;
20898
+ /**
20899
+ * NotFoundError
20900
+ */
20901
+ 404: NotFoundError;
20902
+ /**
20903
+ * ConflictError
20904
+ */
20905
+ 409: ConflictError;
20906
+ /**
20907
+ * GoneError
20908
+ */
20909
+ 410: GoneError;
20910
+ /**
20911
+ * MisdirectedRequestError
20912
+ */
20913
+ 421: MisdirectedRequestError;
20914
+ /**
20915
+ * UnprocessableEntityError
20916
+ */
20917
+ 422: UnprocessableEntityError;
20918
+ /**
20919
+ * TooManyRequestsError
20920
+ */
20921
+ 429: TooManyRequestsError;
20922
+ /**
20923
+ * InternalServerError
20924
+ */
20925
+ 500: InternalServerError;
20926
+ /**
20927
+ * ServiceUnavailableError
20928
+ */
20929
+ 503: ServiceUnavailableError;
20930
+ };
20931
+
20932
+ export type ProviderConfigVersionsListProviderConfigVersionsError = ProviderConfigVersionsListProviderConfigVersionsErrors[keyof ProviderConfigVersionsListProviderConfigVersionsErrors];
20933
+
20934
+ export type ProviderConfigVersionsListProviderConfigVersionsResponses = {
20935
+ /**
20936
+ * Success
20937
+ */
20938
+ 200: {
20939
+ code: number;
20940
+ data: {
20941
+ versions: Array<{
20942
+ configSnapshot: {
20943
+ [key: string]: unknown;
20944
+ };
20945
+ contentHash: string;
20946
+ createdAt: string;
20947
+ createdBy: string | null;
20948
+ liveInEnvSlugs: Array<string>;
20949
+ version: number;
20950
+ }>;
20951
+ } | null;
20952
+ error: {
20953
+ code: string;
20954
+ details?: unknown | null;
20955
+ message: string;
20956
+ rowErrors?: Array<{
20957
+ code: string;
20958
+ message: string;
20959
+ path: Array<string | number>;
20960
+ }> | null;
20961
+ } | null;
20962
+ pagination: {
20963
+ limit: number;
20964
+ page: number;
20965
+ total: number;
20966
+ totalPages: number;
20967
+ } | null;
20968
+ sdkBehavior?: {
20969
+ flags: {
20970
+ [key: string]: unknown;
20971
+ };
20972
+ v: number;
20973
+ } | null;
20974
+ success: boolean;
20975
+ };
20976
+ };
20977
+
20978
+ export type ProviderConfigVersionsListProviderConfigVersionsResponse = ProviderConfigVersionsListProviderConfigVersionsResponses[keyof ProviderConfigVersionsListProviderConfigVersionsResponses];
20979
+
20287
20980
  export type RoutingRoutesListRoutingRoutesData = {
20288
20981
  body?: never;
20289
20982
  path: {