@to11ai/sdk 2.1.0-rc → 2.1.0-rc.2

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.
@@ -80,6 +80,17 @@ export type GoneError = {
80
80
  };
81
81
  success: false;
82
82
  };
83
+ export type ImportPromptVersionInput = {
84
+ changelog?: string | null;
85
+ files: Array<{
86
+ content: string;
87
+ contentType?: 'text/markdown' | 'text/plain' | null;
88
+ filename: string;
89
+ id?: string | null;
90
+ }>;
91
+ format?: 'skill' | null;
92
+ kind?: 'skill' | null;
93
+ };
83
94
  export type InternalServerError = {
84
95
  _tag: 'InternalServerError';
85
96
  code: number;
@@ -146,6 +157,7 @@ export type PrincipalApiKeyContextInvariant = {
146
157
  keyFingerprint: string;
147
158
  keyId: string;
148
159
  orgId: string | null;
160
+ orgSlug?: string | null;
149
161
  projectId: string | null;
150
162
  scopes: Array<string>;
151
163
  workspaceId: string | null;
@@ -203,6 +215,7 @@ export type Prompt = {
203
215
  createdByUserId: string;
204
216
  description: string | null;
205
217
  id: string;
218
+ kind: 'chat' | 'skill';
206
219
  name: string;
207
220
  projectId: string;
208
221
  slug: string;
@@ -229,30 +242,13 @@ export type PromptLabelPointer = {
229
242
  updatedByUserId: string;
230
243
  versionId: string;
231
244
  };
232
- export type PromptRelease = {
233
- activeFrom: string | null;
234
- activeTo: string | null;
235
- actorId: string;
236
- actorType: 'user' | 'api_key' | 'worker';
237
- assignmentSalt: string | null;
238
- changeKind: 'release_initial' | 'release_promoted' | 'release_rolled_back' | 'release_weight_changed';
239
- createdAt: string;
240
- envSlug: string;
241
- environmentId: string;
242
- id: string;
243
- priorReleaseId: string | null;
244
- promptId: string;
245
- reason: string;
246
- strategy: 'single' | 'weighted';
247
- versionId: string;
248
- };
249
245
  export type PromptVersion = {
250
246
  changelog: string | null;
251
247
  createdAt: string;
252
248
  createdByDisplayName: string | null;
253
249
  createdByImage: string | null;
254
250
  createdByUserId: string;
255
- format: 'text' | 'chat';
251
+ format: 'text' | 'chat' | 'skill';
256
252
  id: string;
257
253
  modelConfig: unknown;
258
254
  promptId: string;
@@ -271,6 +267,32 @@ export type RenderedChatPrompt = {
271
267
  messages: Array<RenderedChatMessage>;
272
268
  };
273
269
  export type RenderedPrompt = RenderedTextPrompt | RenderedChatPrompt;
270
+ export type RenderedSkill = {
271
+ contentHash: string;
272
+ files: Array<RenderedSkillFile>;
273
+ format: 'skill';
274
+ label: string;
275
+ promptId: string;
276
+ releaseId: string;
277
+ releasedAt?: string | null;
278
+ releasedByDisplayName?: string | null | null;
279
+ version: number;
280
+ versionId: string;
281
+ };
282
+ export type RenderedSkillFile = {
283
+ content: string;
284
+ contentType: 'text/markdown' | 'text/plain';
285
+ filename: string;
286
+ id: string;
287
+ };
288
+ export type RenderedSkillVersion = {
289
+ contentHash: string;
290
+ files: Array<RenderedSkillFile>;
291
+ format: 'skill';
292
+ promptId: string;
293
+ version: number;
294
+ versionId: string;
295
+ };
274
296
  export type RenderedTextMessage = {
275
297
  content: string;
276
298
  role: 'system' | 'user' | 'developer';
@@ -284,6 +306,11 @@ export type RenderedToolMessage = {
284
306
  role: 'tool';
285
307
  toolCallId: string;
286
308
  };
309
+ export type ResolvedProjectName = {
310
+ organizationId: string;
311
+ projectId: string;
312
+ workspaceId: string;
313
+ };
287
314
  export type ResolvedPrompt = {
288
315
  blockRenderRecord?: {
289
316
  [key: string]: 'rendered' | 'dimmed';
@@ -294,12 +321,10 @@ export type ResolvedPrompt = {
294
321
  promptId: string;
295
322
  releaseId: string;
296
323
  rendered: RenderedPrompt;
297
- subjectHash?: string | null;
298
324
  toolChoice?: 'auto' | 'none' | 'required' | {
299
325
  name: string;
300
326
  } | null;
301
327
  tools?: Array<ResolvedToolDefinition> | null;
302
- variantName?: string | null;
303
328
  version: number;
304
329
  versionId: string;
305
330
  };
@@ -379,7 +404,8 @@ export type RuleStep = {
379
404
  when?: unknown | null;
380
405
  };
381
406
  export type RuleTarget = {
382
- modelId: string;
407
+ modelId?: string | null;
408
+ modelName?: string | null;
383
409
  params?: {
384
410
  [key: string]: unknown;
385
411
  } | null;
@@ -3303,8 +3329,9 @@ export type IngestTokenExchangeIngestTokenResponses = {
3303
3329
  200: {
3304
3330
  code: number;
3305
3331
  data: {
3306
- apiKeyId: string;
3332
+ apiKeyId?: string | null;
3307
3333
  expiresAt: string;
3334
+ principalId: string;
3308
3335
  projectId: string;
3309
3336
  scopeClass: 'project' | 'org';
3310
3337
  scopes: Array<string>;
@@ -3621,109 +3648,6 @@ export type OrganizationsGetOrganizationInvitationDetailsResponses = {
3621
3648
  };
3622
3649
  };
3623
3650
  export type OrganizationsGetOrganizationInvitationDetailsResponse = OrganizationsGetOrganizationInvitationDetailsResponses[keyof OrganizationsGetOrganizationInvitationDetailsResponses];
3624
- export type ApiKeysListApiKeysSuperData = {
3625
- body?: never;
3626
- path?: never;
3627
- query?: {
3628
- page?: number | null;
3629
- limit?: number | null;
3630
- };
3631
- url: '/v1/keys';
3632
- };
3633
- export type ApiKeysListApiKeysSuperErrors = {
3634
- /**
3635
- * BadRequestError
3636
- */
3637
- 400: BadRequestError;
3638
- /**
3639
- * UnauthorizedError
3640
- */
3641
- 401: UnauthorizedError;
3642
- /**
3643
- * ForbiddenError
3644
- */
3645
- 403: ForbiddenError;
3646
- /**
3647
- * NotFoundError
3648
- */
3649
- 404: NotFoundError;
3650
- /**
3651
- * ConflictError
3652
- */
3653
- 409: ConflictError;
3654
- /**
3655
- * GoneError
3656
- */
3657
- 410: GoneError;
3658
- /**
3659
- * ContentTooLargeError
3660
- */
3661
- 413: ContentTooLargeError;
3662
- /**
3663
- * MisdirectedRequestError
3664
- */
3665
- 421: MisdirectedRequestError;
3666
- /**
3667
- * UnprocessableEntityError
3668
- */
3669
- 422: UnprocessableEntityError;
3670
- /**
3671
- * TooManyRequestsError
3672
- */
3673
- 429: TooManyRequestsError;
3674
- /**
3675
- * InternalServerError
3676
- */
3677
- 500: InternalServerError;
3678
- /**
3679
- * ServiceUnavailableError
3680
- */
3681
- 503: ServiceUnavailableError;
3682
- };
3683
- export type ApiKeysListApiKeysSuperError = ApiKeysListApiKeysSuperErrors[keyof ApiKeysListApiKeysSuperErrors];
3684
- export type ApiKeysListApiKeysSuperResponses = {
3685
- /**
3686
- * Success
3687
- */
3688
- 200: {
3689
- code: number;
3690
- data: Array<{
3691
- createdAt: string;
3692
- environment: 'live' | 'test';
3693
- expiresAt: string;
3694
- id: string;
3695
- key: string;
3696
- orgId: string | null;
3697
- projectId: string | null;
3698
- revokedAt: string | null;
3699
- scopes: Array<string>;
3700
- }> | null;
3701
- error: {
3702
- code: string;
3703
- details?: unknown | null;
3704
- message: string;
3705
- rowErrors?: Array<{
3706
- code: string;
3707
- message: string;
3708
- path: Array<string | number>;
3709
- }> | null;
3710
- } | null;
3711
- pagination: {
3712
- limit: number;
3713
- page: number;
3714
- total: number;
3715
- totalPages: number;
3716
- } | null;
3717
- sdkBehavior?: {
3718
- flags: {
3719
- [key: string]: unknown;
3720
- };
3721
- v: number;
3722
- } | null;
3723
- success: boolean;
3724
- };
3725
- };
3726
- export type ApiKeysListApiKeysSuperResponse = ApiKeysListApiKeysSuperResponses[keyof ApiKeysListApiKeysSuperResponses];
3727
3651
  export type ApiKeysCreateApiKeySuperData = {
3728
3652
  body: {
3729
3653
  environment: 'live' | 'test';
@@ -5444,111 +5368,6 @@ export type OrganizationsResendOrganizationInvitationResponses = {
5444
5368
  };
5445
5369
  };
5446
5370
  export type OrganizationsResendOrganizationInvitationResponse = OrganizationsResendOrganizationInvitationResponses[keyof OrganizationsResendOrganizationInvitationResponses];
5447
- export type ApiKeysListApiKeysOrgData = {
5448
- body?: never;
5449
- path: {
5450
- orgId: string;
5451
- };
5452
- query?: {
5453
- page?: number | null;
5454
- limit?: number | null;
5455
- };
5456
- url: '/v1/orgs/{orgId}/keys';
5457
- };
5458
- export type ApiKeysListApiKeysOrgErrors = {
5459
- /**
5460
- * BadRequestError
5461
- */
5462
- 400: BadRequestError;
5463
- /**
5464
- * UnauthorizedError
5465
- */
5466
- 401: UnauthorizedError;
5467
- /**
5468
- * ForbiddenError
5469
- */
5470
- 403: ForbiddenError;
5471
- /**
5472
- * NotFoundError
5473
- */
5474
- 404: NotFoundError;
5475
- /**
5476
- * ConflictError
5477
- */
5478
- 409: ConflictError;
5479
- /**
5480
- * GoneError
5481
- */
5482
- 410: GoneError;
5483
- /**
5484
- * ContentTooLargeError
5485
- */
5486
- 413: ContentTooLargeError;
5487
- /**
5488
- * MisdirectedRequestError
5489
- */
5490
- 421: MisdirectedRequestError;
5491
- /**
5492
- * UnprocessableEntityError
5493
- */
5494
- 422: UnprocessableEntityError;
5495
- /**
5496
- * TooManyRequestsError
5497
- */
5498
- 429: TooManyRequestsError;
5499
- /**
5500
- * InternalServerError
5501
- */
5502
- 500: InternalServerError;
5503
- /**
5504
- * ServiceUnavailableError
5505
- */
5506
- 503: ServiceUnavailableError;
5507
- };
5508
- export type ApiKeysListApiKeysOrgError = ApiKeysListApiKeysOrgErrors[keyof ApiKeysListApiKeysOrgErrors];
5509
- export type ApiKeysListApiKeysOrgResponses = {
5510
- /**
5511
- * Success
5512
- */
5513
- 200: {
5514
- code: number;
5515
- data: Array<{
5516
- createdAt: string;
5517
- environment: 'live' | 'test';
5518
- expiresAt: string;
5519
- id: string;
5520
- key: string;
5521
- orgId: string | null;
5522
- projectId: string | null;
5523
- revokedAt: string | null;
5524
- scopes: Array<string>;
5525
- }> | null;
5526
- error: {
5527
- code: string;
5528
- details?: unknown | null;
5529
- message: string;
5530
- rowErrors?: Array<{
5531
- code: string;
5532
- message: string;
5533
- path: Array<string | number>;
5534
- }> | null;
5535
- } | null;
5536
- pagination: {
5537
- limit: number;
5538
- page: number;
5539
- total: number;
5540
- totalPages: number;
5541
- } | null;
5542
- sdkBehavior?: {
5543
- flags: {
5544
- [key: string]: unknown;
5545
- };
5546
- v: number;
5547
- } | null;
5548
- success: boolean;
5549
- };
5550
- };
5551
- export type ApiKeysListApiKeysOrgResponse = ApiKeysListApiKeysOrgResponses[keyof ApiKeysListApiKeysOrgResponses];
5552
5371
  export type ApiKeysCreateApiKeyOrgData = {
5553
5372
  body: {
5554
5373
  environment: 'live' | 'test';
@@ -6838,6 +6657,7 @@ export type ProjectsCreateProjectByOrgResponses = {
6838
6657
  status: 'active' | 'archived' | 'deleted';
6839
6658
  updatedAt: string;
6840
6659
  workspaceId: string;
6660
+ workspaceSlug: string;
6841
6661
  } | null;
6842
6662
  error: {
6843
6663
  code: string;
@@ -9540,15 +9360,17 @@ export type AuthLookupPrincipalsBatchResponses = {
9540
9360
  };
9541
9361
  };
9542
9362
  export type AuthLookupPrincipalsBatchResponse = AuthLookupPrincipalsBatchResponses[keyof AuthLookupPrincipalsBatchResponses];
9543
- export type ProjectsDeleteProjectData = {
9363
+ export type ProjectsGetProjectByNameData = {
9544
9364
  body?: never;
9545
9365
  path: {
9546
- projectId: string;
9366
+ organization: string;
9367
+ workspace: string;
9368
+ project: string;
9547
9369
  };
9548
9370
  query?: never;
9549
- url: '/v1/projects/{projectId}';
9371
+ url: '/v1/projects/by-name/{organization}/{workspace}/{project}';
9550
9372
  };
9551
- export type ProjectsDeleteProjectErrors = {
9373
+ export type ProjectsGetProjectByNameErrors = {
9552
9374
  /**
9553
9375
  * BadRequestError
9554
9376
  */
@@ -9598,24 +9420,14 @@ export type ProjectsDeleteProjectErrors = {
9598
9420
  */
9599
9421
  503: ServiceUnavailableError;
9600
9422
  };
9601
- export type ProjectsDeleteProjectError = ProjectsDeleteProjectErrors[keyof ProjectsDeleteProjectErrors];
9602
- export type ProjectsDeleteProjectResponses = {
9423
+ export type ProjectsGetProjectByNameError = ProjectsGetProjectByNameErrors[keyof ProjectsGetProjectByNameErrors];
9424
+ export type ProjectsGetProjectByNameResponses = {
9603
9425
  /**
9604
9426
  * Success
9605
9427
  */
9606
9428
  200: {
9607
9429
  code: number;
9608
- data: {
9609
- createdAt: string;
9610
- dataCenterId: string | null;
9611
- id: string;
9612
- name: string;
9613
- organizationId: string;
9614
- slug: string;
9615
- status: 'active' | 'archived' | 'deleted';
9616
- updatedAt: string;
9617
- workspaceId: string;
9618
- } | null;
9430
+ data: ResolvedProjectName | null;
9619
9431
  error: {
9620
9432
  code: string;
9621
9433
  details?: unknown | null;
@@ -9641,8 +9453,8 @@ export type ProjectsDeleteProjectResponses = {
9641
9453
  success: boolean;
9642
9454
  };
9643
9455
  };
9644
- export type ProjectsDeleteProjectResponse = ProjectsDeleteProjectResponses[keyof ProjectsDeleteProjectResponses];
9645
- export type ProjectsGetProjectData = {
9456
+ export type ProjectsGetProjectByNameResponse = ProjectsGetProjectByNameResponses[keyof ProjectsGetProjectByNameResponses];
9457
+ export type ProjectsDeleteProjectData = {
9646
9458
  body?: never;
9647
9459
  path: {
9648
9460
  projectId: string;
@@ -9650,7 +9462,7 @@ export type ProjectsGetProjectData = {
9650
9462
  query?: never;
9651
9463
  url: '/v1/projects/{projectId}';
9652
9464
  };
9653
- export type ProjectsGetProjectErrors = {
9465
+ export type ProjectsDeleteProjectErrors = {
9654
9466
  /**
9655
9467
  * BadRequestError
9656
9468
  */
@@ -9700,7 +9512,110 @@ export type ProjectsGetProjectErrors = {
9700
9512
  */
9701
9513
  503: ServiceUnavailableError;
9702
9514
  };
9703
- export type ProjectsGetProjectError = ProjectsGetProjectErrors[keyof ProjectsGetProjectErrors];
9515
+ export type ProjectsDeleteProjectError = ProjectsDeleteProjectErrors[keyof ProjectsDeleteProjectErrors];
9516
+ export type ProjectsDeleteProjectResponses = {
9517
+ /**
9518
+ * Success
9519
+ */
9520
+ 200: {
9521
+ code: number;
9522
+ data: {
9523
+ createdAt: string;
9524
+ dataCenterId: string | null;
9525
+ id: string;
9526
+ name: string;
9527
+ organizationId: string;
9528
+ slug: string;
9529
+ status: 'active' | 'archived' | 'deleted';
9530
+ updatedAt: string;
9531
+ workspaceId: string;
9532
+ workspaceSlug: string;
9533
+ } | null;
9534
+ error: {
9535
+ code: string;
9536
+ details?: unknown | null;
9537
+ message: string;
9538
+ rowErrors?: Array<{
9539
+ code: string;
9540
+ message: string;
9541
+ path: Array<string | number>;
9542
+ }> | null;
9543
+ } | null;
9544
+ pagination: {
9545
+ limit: number;
9546
+ page: number;
9547
+ total: number;
9548
+ totalPages: number;
9549
+ } | null;
9550
+ sdkBehavior?: {
9551
+ flags: {
9552
+ [key: string]: unknown;
9553
+ };
9554
+ v: number;
9555
+ } | null;
9556
+ success: boolean;
9557
+ };
9558
+ };
9559
+ export type ProjectsDeleteProjectResponse = ProjectsDeleteProjectResponses[keyof ProjectsDeleteProjectResponses];
9560
+ export type ProjectsGetProjectData = {
9561
+ body?: never;
9562
+ path: {
9563
+ projectId: string;
9564
+ };
9565
+ query?: never;
9566
+ url: '/v1/projects/{projectId}';
9567
+ };
9568
+ export type ProjectsGetProjectErrors = {
9569
+ /**
9570
+ * BadRequestError
9571
+ */
9572
+ 400: BadRequestError;
9573
+ /**
9574
+ * UnauthorizedError
9575
+ */
9576
+ 401: UnauthorizedError;
9577
+ /**
9578
+ * ForbiddenError
9579
+ */
9580
+ 403: ForbiddenError;
9581
+ /**
9582
+ * NotFoundError
9583
+ */
9584
+ 404: NotFoundError;
9585
+ /**
9586
+ * ConflictError
9587
+ */
9588
+ 409: ConflictError;
9589
+ /**
9590
+ * GoneError
9591
+ */
9592
+ 410: GoneError;
9593
+ /**
9594
+ * ContentTooLargeError
9595
+ */
9596
+ 413: ContentTooLargeError;
9597
+ /**
9598
+ * MisdirectedRequestError
9599
+ */
9600
+ 421: MisdirectedRequestError;
9601
+ /**
9602
+ * UnprocessableEntityError
9603
+ */
9604
+ 422: UnprocessableEntityError;
9605
+ /**
9606
+ * TooManyRequestsError
9607
+ */
9608
+ 429: TooManyRequestsError;
9609
+ /**
9610
+ * InternalServerError
9611
+ */
9612
+ 500: InternalServerError;
9613
+ /**
9614
+ * ServiceUnavailableError
9615
+ */
9616
+ 503: ServiceUnavailableError;
9617
+ };
9618
+ export type ProjectsGetProjectError = ProjectsGetProjectErrors[keyof ProjectsGetProjectErrors];
9704
9619
  export type ProjectsGetProjectResponses = {
9705
9620
  /**
9706
9621
  * Success
@@ -9717,6 +9632,7 @@ export type ProjectsGetProjectResponses = {
9717
9632
  status: 'active' | 'archived' | 'deleted';
9718
9633
  updatedAt: string;
9719
9634
  workspaceId: string;
9635
+ workspaceSlug: string;
9720
9636
  } | null;
9721
9637
  error: {
9722
9638
  code: string;
@@ -9823,6 +9739,7 @@ export type ProjectsUpdateProjectResponses = {
9823
9739
  status: 'active' | 'archived' | 'deleted';
9824
9740
  updatedAt: string;
9825
9741
  workspaceId: string;
9742
+ workspaceSlug: string;
9826
9743
  } | null;
9827
9744
  error: {
9828
9745
  code: string;
@@ -10946,16 +10863,18 @@ export type ProjectEnvironmentsCreateProjectEnvironmentResponses = {
10946
10863
  };
10947
10864
  };
10948
10865
  export type ProjectEnvironmentsCreateProjectEnvironmentResponse = ProjectEnvironmentsCreateProjectEnvironmentResponses[keyof ProjectEnvironmentsCreateProjectEnvironmentResponses];
10949
- export type PromptsGetPromptEnvPolicyData = {
10866
+ export type SnapshotGetProjectSnapshotAtTimeData = {
10950
10867
  body?: never;
10951
10868
  path: {
10952
10869
  projectId: string;
10953
10870
  environmentId: string;
10954
10871
  };
10955
- query?: never;
10956
- url: '/v1/projects/{projectId}/environments/{environmentId}/prompt-policy';
10872
+ query: {
10873
+ at: string;
10874
+ };
10875
+ url: '/v1/projects/{projectId}/environments/{environmentId}/snapshot';
10957
10876
  };
10958
- export type PromptsGetPromptEnvPolicyErrors = {
10877
+ export type SnapshotGetProjectSnapshotAtTimeErrors = {
10959
10878
  /**
10960
10879
  * BadRequestError
10961
10880
  */
@@ -11005,31 +10924,31 @@ export type PromptsGetPromptEnvPolicyErrors = {
11005
10924
  */
11006
10925
  503: ServiceUnavailableError;
11007
10926
  };
11008
- export type PromptsGetPromptEnvPolicyError = PromptsGetPromptEnvPolicyErrors[keyof PromptsGetPromptEnvPolicyErrors];
11009
- export type PromptsGetPromptEnvPolicyResponses = {
10927
+ export type SnapshotGetProjectSnapshotAtTimeError = SnapshotGetProjectSnapshotAtTimeErrors[keyof SnapshotGetProjectSnapshotAtTimeErrors];
10928
+ export type SnapshotGetProjectSnapshotAtTimeResponses = {
11010
10929
  /**
11011
10930
  * Success
11012
10931
  */
11013
10932
  200: {
11014
10933
  code: number;
11015
10934
  data: {
11016
- policy: {
11017
- createdAt: string;
11018
- createdBy: string;
11019
- envSlug: string;
11020
- environmentId: string;
11021
- id: string;
11022
- minimumDwellTimeHours: number;
11023
- noRollbackInSource: boolean;
11024
- noRollbackLookBackHours: number;
11025
- projectId: string;
11026
- requiredSourceEnvId: string | null;
11027
- requiredSourceEnvSlug: string | null;
11028
- requiresApproval: boolean;
11029
- requiresApprovalSeparationOfDuties: boolean;
11030
- updatedAt: string;
11031
- updatedBy: string;
11032
- } | null;
10935
+ atIso: string;
10936
+ envSlug: string;
10937
+ environmentId: string;
10938
+ projectId: string;
10939
+ providers: Array<{
10940
+ activeFrom: string;
10941
+ activeTo: string | null;
10942
+ configSnapshot: {
10943
+ [key: string]: unknown;
10944
+ };
10945
+ credentialId: string;
10946
+ credentialLabel: string | null;
10947
+ providerDisplayName: string | null;
10948
+ providerId: string;
10949
+ providerSlug: string;
10950
+ timelineId: string;
10951
+ }>;
11033
10952
  } | null;
11034
10953
  error: {
11035
10954
  code: string;
@@ -11056,24 +10975,28 @@ export type PromptsGetPromptEnvPolicyResponses = {
11056
10975
  success: boolean;
11057
10976
  };
11058
10977
  };
11059
- export type PromptsGetPromptEnvPolicyResponse = PromptsGetPromptEnvPolicyResponses[keyof PromptsGetPromptEnvPolicyResponses];
11060
- export type PromptsUpsertPromptEnvPolicyData = {
10978
+ export type SnapshotGetProjectSnapshotAtTimeResponse = SnapshotGetProjectSnapshotAtTimeResponses[keyof SnapshotGetProjectSnapshotAtTimeResponses];
10979
+ export type ProjectEnvironmentsUpdateProjectEnvironmentData = {
11061
10980
  body: {
11062
- minimumDwellTimeHours?: number | null;
11063
- noRollbackInSource?: boolean | null;
11064
- noRollbackLookBackHours?: number | null;
11065
- requiredSourceEnvId?: string | null | null;
10981
+ color?: string | null | null;
10982
+ description?: string | null | null;
10983
+ isDefault?: boolean | null;
10984
+ isGatewayFallback?: boolean | null;
10985
+ isPointer?: boolean | null;
10986
+ isProduction?: boolean | null;
10987
+ name?: string | null;
11066
10988
  requiresApproval?: boolean | null;
11067
- requiresApprovalSeparationOfDuties?: boolean | null;
10989
+ slug?: string | null;
10990
+ sortOrder?: number | null;
11068
10991
  };
11069
10992
  path: {
11070
10993
  projectId: string;
11071
- environmentId: string;
10994
+ param: string;
11072
10995
  };
11073
10996
  query?: never;
11074
- url: '/v1/projects/{projectId}/environments/{environmentId}/prompt-policy';
10997
+ url: '/v1/projects/{projectId}/environments/{param}';
11075
10998
  };
11076
- export type PromptsUpsertPromptEnvPolicyErrors = {
10999
+ export type ProjectEnvironmentsUpdateProjectEnvironmentErrors = {
11077
11000
  /**
11078
11001
  * BadRequestError
11079
11002
  */
@@ -11123,32 +11046,14 @@ export type PromptsUpsertPromptEnvPolicyErrors = {
11123
11046
  */
11124
11047
  503: ServiceUnavailableError;
11125
11048
  };
11126
- export type PromptsUpsertPromptEnvPolicyError = PromptsUpsertPromptEnvPolicyErrors[keyof PromptsUpsertPromptEnvPolicyErrors];
11127
- export type PromptsUpsertPromptEnvPolicyResponses = {
11049
+ export type ProjectEnvironmentsUpdateProjectEnvironmentError = ProjectEnvironmentsUpdateProjectEnvironmentErrors[keyof ProjectEnvironmentsUpdateProjectEnvironmentErrors];
11050
+ export type ProjectEnvironmentsUpdateProjectEnvironmentResponses = {
11128
11051
  /**
11129
11052
  * Success
11130
11053
  */
11131
11054
  200: {
11132
11055
  code: number;
11133
- data: {
11134
- policy: {
11135
- createdAt: string;
11136
- createdBy: string;
11137
- envSlug: string;
11138
- environmentId: string;
11139
- id: string;
11140
- minimumDwellTimeHours: number;
11141
- noRollbackInSource: boolean;
11142
- noRollbackLookBackHours: number;
11143
- projectId: string;
11144
- requiredSourceEnvId: string | null;
11145
- requiredSourceEnvSlug: string | null;
11146
- requiresApproval: boolean;
11147
- requiresApprovalSeparationOfDuties: boolean;
11148
- updatedAt: string;
11149
- updatedBy: string;
11150
- } | null;
11151
- } | null;
11056
+ data: ProjectEnvironment | null;
11152
11057
  error: {
11153
11058
  code: string;
11154
11059
  details?: unknown | null;
@@ -11174,19 +11079,17 @@ export type PromptsUpsertPromptEnvPolicyResponses = {
11174
11079
  success: boolean;
11175
11080
  };
11176
11081
  };
11177
- export type PromptsUpsertPromptEnvPolicyResponse = PromptsUpsertPromptEnvPolicyResponses[keyof PromptsUpsertPromptEnvPolicyResponses];
11178
- export type SnapshotGetProjectSnapshotAtTimeData = {
11082
+ export type ProjectEnvironmentsUpdateProjectEnvironmentResponse = ProjectEnvironmentsUpdateProjectEnvironmentResponses[keyof ProjectEnvironmentsUpdateProjectEnvironmentResponses];
11083
+ export type ProjectEnvironmentsGetProjectEnvironmentData = {
11179
11084
  body?: never;
11180
11085
  path: {
11181
11086
  projectId: string;
11182
- environmentId: string;
11183
- };
11184
- query: {
11185
- at: string;
11087
+ slug: string;
11186
11088
  };
11187
- url: '/v1/projects/{projectId}/environments/{environmentId}/snapshot';
11089
+ query?: never;
11090
+ url: '/v1/projects/{projectId}/environments/{slug}';
11188
11091
  };
11189
- export type SnapshotGetProjectSnapshotAtTimeErrors = {
11092
+ export type ProjectEnvironmentsGetProjectEnvironmentErrors = {
11190
11093
  /**
11191
11094
  * BadRequestError
11192
11095
  */
@@ -11236,32 +11139,14 @@ export type SnapshotGetProjectSnapshotAtTimeErrors = {
11236
11139
  */
11237
11140
  503: ServiceUnavailableError;
11238
11141
  };
11239
- export type SnapshotGetProjectSnapshotAtTimeError = SnapshotGetProjectSnapshotAtTimeErrors[keyof SnapshotGetProjectSnapshotAtTimeErrors];
11240
- export type SnapshotGetProjectSnapshotAtTimeResponses = {
11142
+ export type ProjectEnvironmentsGetProjectEnvironmentError = ProjectEnvironmentsGetProjectEnvironmentErrors[keyof ProjectEnvironmentsGetProjectEnvironmentErrors];
11143
+ export type ProjectEnvironmentsGetProjectEnvironmentResponses = {
11241
11144
  /**
11242
11145
  * Success
11243
11146
  */
11244
11147
  200: {
11245
11148
  code: number;
11246
- data: {
11247
- atIso: string;
11248
- envSlug: string;
11249
- environmentId: string;
11250
- projectId: string;
11251
- providers: Array<{
11252
- activeFrom: string;
11253
- activeTo: string | null;
11254
- configSnapshot: {
11255
- [key: string]: unknown;
11256
- };
11257
- credentialId: string;
11258
- credentialLabel: string | null;
11259
- providerDisplayName: string | null;
11260
- providerId: string;
11261
- providerSlug: string;
11262
- timelineId: string;
11263
- }>;
11264
- } | null;
11149
+ data: ProjectEnvironment | null;
11265
11150
  error: {
11266
11151
  code: string;
11267
11152
  details?: unknown | null;
@@ -11287,28 +11172,17 @@ export type SnapshotGetProjectSnapshotAtTimeResponses = {
11287
11172
  success: boolean;
11288
11173
  };
11289
11174
  };
11290
- export type SnapshotGetProjectSnapshotAtTimeResponse = SnapshotGetProjectSnapshotAtTimeResponses[keyof SnapshotGetProjectSnapshotAtTimeResponses];
11291
- export type ProjectEnvironmentsUpdateProjectEnvironmentData = {
11292
- body: {
11293
- color?: string | null | null;
11294
- description?: string | null | null;
11295
- isDefault?: boolean | null;
11296
- isGatewayFallback?: boolean | null;
11297
- isPointer?: boolean | null;
11298
- isProduction?: boolean | null;
11299
- name?: string | null;
11300
- requiresApproval?: boolean | null;
11301
- slug?: string | null;
11302
- sortOrder?: number | null;
11303
- };
11175
+ export type ProjectEnvironmentsGetProjectEnvironmentResponse = ProjectEnvironmentsGetProjectEnvironmentResponses[keyof ProjectEnvironmentsGetProjectEnvironmentResponses];
11176
+ export type ProjectEnvironmentsArchiveProjectEnvironmentData = {
11177
+ body?: never;
11304
11178
  path: {
11305
11179
  projectId: string;
11306
- param: string;
11180
+ slug: string;
11307
11181
  };
11308
11182
  query?: never;
11309
- url: '/v1/projects/{projectId}/environments/{param}';
11183
+ url: '/v1/projects/{projectId}/environments/{slug}/archive';
11310
11184
  };
11311
- export type ProjectEnvironmentsUpdateProjectEnvironmentErrors = {
11185
+ export type ProjectEnvironmentsArchiveProjectEnvironmentErrors = {
11312
11186
  /**
11313
11187
  * BadRequestError
11314
11188
  */
@@ -11358,14 +11232,14 @@ export type ProjectEnvironmentsUpdateProjectEnvironmentErrors = {
11358
11232
  */
11359
11233
  503: ServiceUnavailableError;
11360
11234
  };
11361
- export type ProjectEnvironmentsUpdateProjectEnvironmentError = ProjectEnvironmentsUpdateProjectEnvironmentErrors[keyof ProjectEnvironmentsUpdateProjectEnvironmentErrors];
11362
- export type ProjectEnvironmentsUpdateProjectEnvironmentResponses = {
11235
+ export type ProjectEnvironmentsArchiveProjectEnvironmentError = ProjectEnvironmentsArchiveProjectEnvironmentErrors[keyof ProjectEnvironmentsArchiveProjectEnvironmentErrors];
11236
+ export type ProjectEnvironmentsArchiveProjectEnvironmentResponses = {
11363
11237
  /**
11364
11238
  * Success
11365
11239
  */
11366
11240
  200: {
11367
11241
  code: number;
11368
- data: ProjectEnvironment | null;
11242
+ data: ArchiveProjectEnvironmentResult | null;
11369
11243
  error: {
11370
11244
  code: string;
11371
11245
  details?: unknown | null;
@@ -11391,17 +11265,17 @@ export type ProjectEnvironmentsUpdateProjectEnvironmentResponses = {
11391
11265
  success: boolean;
11392
11266
  };
11393
11267
  };
11394
- export type ProjectEnvironmentsUpdateProjectEnvironmentResponse = ProjectEnvironmentsUpdateProjectEnvironmentResponses[keyof ProjectEnvironmentsUpdateProjectEnvironmentResponses];
11395
- export type ProjectEnvironmentsGetProjectEnvironmentData = {
11268
+ export type ProjectEnvironmentsArchiveProjectEnvironmentResponse = ProjectEnvironmentsArchiveProjectEnvironmentResponses[keyof ProjectEnvironmentsArchiveProjectEnvironmentResponses];
11269
+ export type ProjectEnvironmentsRestoreProjectEnvironmentData = {
11396
11270
  body?: never;
11397
11271
  path: {
11398
11272
  projectId: string;
11399
11273
  slug: string;
11400
11274
  };
11401
11275
  query?: never;
11402
- url: '/v1/projects/{projectId}/environments/{slug}';
11276
+ url: '/v1/projects/{projectId}/environments/{slug}/restore';
11403
11277
  };
11404
- export type ProjectEnvironmentsGetProjectEnvironmentErrors = {
11278
+ export type ProjectEnvironmentsRestoreProjectEnvironmentErrors = {
11405
11279
  /**
11406
11280
  * BadRequestError
11407
11281
  */
@@ -11451,8 +11325,8 @@ export type ProjectEnvironmentsGetProjectEnvironmentErrors = {
11451
11325
  */
11452
11326
  503: ServiceUnavailableError;
11453
11327
  };
11454
- export type ProjectEnvironmentsGetProjectEnvironmentError = ProjectEnvironmentsGetProjectEnvironmentErrors[keyof ProjectEnvironmentsGetProjectEnvironmentErrors];
11455
- export type ProjectEnvironmentsGetProjectEnvironmentResponses = {
11328
+ export type ProjectEnvironmentsRestoreProjectEnvironmentError = ProjectEnvironmentsRestoreProjectEnvironmentErrors[keyof ProjectEnvironmentsRestoreProjectEnvironmentErrors];
11329
+ export type ProjectEnvironmentsRestoreProjectEnvironmentResponses = {
11456
11330
  /**
11457
11331
  * Success
11458
11332
  */
@@ -11484,194 +11358,8 @@ export type ProjectEnvironmentsGetProjectEnvironmentResponses = {
11484
11358
  success: boolean;
11485
11359
  };
11486
11360
  };
11487
- export type ProjectEnvironmentsGetProjectEnvironmentResponse = ProjectEnvironmentsGetProjectEnvironmentResponses[keyof ProjectEnvironmentsGetProjectEnvironmentResponses];
11488
- export type ProjectEnvironmentsArchiveProjectEnvironmentData = {
11489
- body?: never;
11490
- path: {
11491
- projectId: string;
11492
- slug: string;
11493
- };
11494
- query?: never;
11495
- url: '/v1/projects/{projectId}/environments/{slug}/archive';
11496
- };
11497
- export type ProjectEnvironmentsArchiveProjectEnvironmentErrors = {
11498
- /**
11499
- * BadRequestError
11500
- */
11501
- 400: BadRequestError;
11502
- /**
11503
- * UnauthorizedError
11504
- */
11505
- 401: UnauthorizedError;
11506
- /**
11507
- * ForbiddenError
11508
- */
11509
- 403: ForbiddenError;
11510
- /**
11511
- * NotFoundError
11512
- */
11513
- 404: NotFoundError;
11514
- /**
11515
- * ConflictError
11516
- */
11517
- 409: ConflictError;
11518
- /**
11519
- * GoneError
11520
- */
11521
- 410: GoneError;
11522
- /**
11523
- * ContentTooLargeError
11524
- */
11525
- 413: ContentTooLargeError;
11526
- /**
11527
- * MisdirectedRequestError
11528
- */
11529
- 421: MisdirectedRequestError;
11530
- /**
11531
- * UnprocessableEntityError
11532
- */
11533
- 422: UnprocessableEntityError;
11534
- /**
11535
- * TooManyRequestsError
11536
- */
11537
- 429: TooManyRequestsError;
11538
- /**
11539
- * InternalServerError
11540
- */
11541
- 500: InternalServerError;
11542
- /**
11543
- * ServiceUnavailableError
11544
- */
11545
- 503: ServiceUnavailableError;
11546
- };
11547
- export type ProjectEnvironmentsArchiveProjectEnvironmentError = ProjectEnvironmentsArchiveProjectEnvironmentErrors[keyof ProjectEnvironmentsArchiveProjectEnvironmentErrors];
11548
- export type ProjectEnvironmentsArchiveProjectEnvironmentResponses = {
11549
- /**
11550
- * Success
11551
- */
11552
- 200: {
11553
- code: number;
11554
- data: ArchiveProjectEnvironmentResult | null;
11555
- error: {
11556
- code: string;
11557
- details?: unknown | null;
11558
- message: string;
11559
- rowErrors?: Array<{
11560
- code: string;
11561
- message: string;
11562
- path: Array<string | number>;
11563
- }> | null;
11564
- } | null;
11565
- pagination: {
11566
- limit: number;
11567
- page: number;
11568
- total: number;
11569
- totalPages: number;
11570
- } | null;
11571
- sdkBehavior?: {
11572
- flags: {
11573
- [key: string]: unknown;
11574
- };
11575
- v: number;
11576
- } | null;
11577
- success: boolean;
11578
- };
11579
- };
11580
- export type ProjectEnvironmentsArchiveProjectEnvironmentResponse = ProjectEnvironmentsArchiveProjectEnvironmentResponses[keyof ProjectEnvironmentsArchiveProjectEnvironmentResponses];
11581
- export type ProjectEnvironmentsRestoreProjectEnvironmentData = {
11582
- body?: never;
11583
- path: {
11584
- projectId: string;
11585
- slug: string;
11586
- };
11587
- query?: never;
11588
- url: '/v1/projects/{projectId}/environments/{slug}/restore';
11589
- };
11590
- export type ProjectEnvironmentsRestoreProjectEnvironmentErrors = {
11591
- /**
11592
- * BadRequestError
11593
- */
11594
- 400: BadRequestError;
11595
- /**
11596
- * UnauthorizedError
11597
- */
11598
- 401: UnauthorizedError;
11599
- /**
11600
- * ForbiddenError
11601
- */
11602
- 403: ForbiddenError;
11603
- /**
11604
- * NotFoundError
11605
- */
11606
- 404: NotFoundError;
11607
- /**
11608
- * ConflictError
11609
- */
11610
- 409: ConflictError;
11611
- /**
11612
- * GoneError
11613
- */
11614
- 410: GoneError;
11615
- /**
11616
- * ContentTooLargeError
11617
- */
11618
- 413: ContentTooLargeError;
11619
- /**
11620
- * MisdirectedRequestError
11621
- */
11622
- 421: MisdirectedRequestError;
11623
- /**
11624
- * UnprocessableEntityError
11625
- */
11626
- 422: UnprocessableEntityError;
11627
- /**
11628
- * TooManyRequestsError
11629
- */
11630
- 429: TooManyRequestsError;
11631
- /**
11632
- * InternalServerError
11633
- */
11634
- 500: InternalServerError;
11635
- /**
11636
- * ServiceUnavailableError
11637
- */
11638
- 503: ServiceUnavailableError;
11639
- };
11640
- export type ProjectEnvironmentsRestoreProjectEnvironmentError = ProjectEnvironmentsRestoreProjectEnvironmentErrors[keyof ProjectEnvironmentsRestoreProjectEnvironmentErrors];
11641
- export type ProjectEnvironmentsRestoreProjectEnvironmentResponses = {
11642
- /**
11643
- * Success
11644
- */
11645
- 200: {
11646
- code: number;
11647
- data: ProjectEnvironment | null;
11648
- error: {
11649
- code: string;
11650
- details?: unknown | null;
11651
- message: string;
11652
- rowErrors?: Array<{
11653
- code: string;
11654
- message: string;
11655
- path: Array<string | number>;
11656
- }> | null;
11657
- } | null;
11658
- pagination: {
11659
- limit: number;
11660
- page: number;
11661
- total: number;
11662
- totalPages: number;
11663
- } | null;
11664
- sdkBehavior?: {
11665
- flags: {
11666
- [key: string]: unknown;
11667
- };
11668
- v: number;
11669
- } | null;
11670
- success: boolean;
11671
- };
11672
- };
11673
- export type ProjectEnvironmentsRestoreProjectEnvironmentResponse = ProjectEnvironmentsRestoreProjectEnvironmentResponses[keyof ProjectEnvironmentsRestoreProjectEnvironmentResponses];
11674
- export type ApiKeysListApiKeysProjectData = {
11361
+ export type ProjectEnvironmentsRestoreProjectEnvironmentResponse = ProjectEnvironmentsRestoreProjectEnvironmentResponses[keyof ProjectEnvironmentsRestoreProjectEnvironmentResponses];
11362
+ export type ApiKeysListApiKeysProjectData = {
11675
11363
  body?: never;
11676
11364
  path: {
11677
11365
  projectId: string;
@@ -13921,6 +13609,7 @@ export type PromptsListPromptsData = {
13921
13609
  search?: string | null;
13922
13610
  sortDir?: 'asc' | 'desc' | null;
13923
13611
  status?: string | null;
13612
+ kind?: string | null;
13924
13613
  sortBy?: 'createdAt' | 'updatedAt' | 'name' | 'status' | 'latestVersion' | 'environments' | null;
13925
13614
  tags?: string | null;
13926
13615
  environment?: string | null;
@@ -13989,13 +13678,14 @@ export type PromptsListPromptsResponses = {
13989
13678
  createdByUserId: string;
13990
13679
  description: string | null;
13991
13680
  id: string;
13681
+ kind: 'chat' | 'skill';
13992
13682
  labels: Array<{
13993
13683
  label: string;
13994
13684
  version: number | null;
13995
- weighted: {
13685
+ weighted?: {
13996
13686
  split: string;
13997
13687
  variants: number;
13998
- } | null;
13688
+ } | null | null;
13999
13689
  }>;
14000
13690
  lastModifiedAt: string;
14001
13691
  lastModifiedByDisplayName: string | null;
@@ -14039,6 +13729,7 @@ export type PromptsListPromptsResponse = PromptsListPromptsResponses[keyof Promp
14039
13729
  export type PromptsCreatePromptData = {
14040
13730
  body: {
14041
13731
  description?: string | null;
13732
+ kind?: 'chat' | 'skill' | null;
14042
13733
  name: string;
14043
13734
  slug: string;
14044
13735
  tags?: Array<string> | null;
@@ -14313,7 +14004,7 @@ export type PromptsRenderPromptResponses = {
14313
14004
  */
14314
14005
  200: {
14315
14006
  code: number;
14316
- data: ResolvedPrompt | null;
14007
+ data: ResolvedPrompt | RenderedSkill | null;
14317
14008
  error: {
14318
14009
  code: string;
14319
14010
  details?: unknown | null;
@@ -14340,15 +14031,21 @@ export type PromptsRenderPromptResponses = {
14340
14031
  };
14341
14032
  };
14342
14033
  export type PromptsRenderPromptResponse = PromptsRenderPromptResponses[keyof PromptsRenderPromptResponses];
14343
- export type PromptsGetPromptDirectorySummaryData = {
14344
- body?: never;
14034
+ export type PromptsRenderSkillVersionData = {
14035
+ body: {
14036
+ variables?: {
14037
+ [key: string]: unknown;
14038
+ } | null;
14039
+ };
14345
14040
  path: {
14346
14041
  projectId: string;
14042
+ slug: string;
14043
+ versionNumber: string;
14347
14044
  };
14348
14045
  query?: never;
14349
- url: '/v1/projects/{projectId}/prompts/summary';
14046
+ url: '/v1/projects/{projectId}/prompts/by-slug/{slug}/versions/{versionNumber}/render';
14350
14047
  };
14351
- export type PromptsGetPromptDirectorySummaryErrors = {
14048
+ export type PromptsRenderSkillVersionErrors = {
14352
14049
  /**
14353
14050
  * BadRequestError
14354
14051
  */
@@ -14398,32 +14095,14 @@ export type PromptsGetPromptDirectorySummaryErrors = {
14398
14095
  */
14399
14096
  503: ServiceUnavailableError;
14400
14097
  };
14401
- export type PromptsGetPromptDirectorySummaryError = PromptsGetPromptDirectorySummaryErrors[keyof PromptsGetPromptDirectorySummaryErrors];
14402
- export type PromptsGetPromptDirectorySummaryResponses = {
14098
+ export type PromptsRenderSkillVersionError = PromptsRenderSkillVersionErrors[keyof PromptsRenderSkillVersionErrors];
14099
+ export type PromptsRenderSkillVersionResponses = {
14403
14100
  /**
14404
14101
  * Success
14405
14102
  */
14406
14103
  200: {
14407
14104
  code: number;
14408
- data: {
14409
- activeReleases: {
14410
- count: number;
14411
- environmentCount: number;
14412
- };
14413
- fetches24h: {
14414
- count: number;
14415
- deltaPctVsPrev: number;
14416
- } | null;
14417
- prompts: {
14418
- archived: number;
14419
- published: number;
14420
- total: number;
14421
- };
14422
- rollbacks30d: {
14423
- count: number;
14424
- promotions: number;
14425
- };
14426
- } | null;
14105
+ data: RenderedSkillVersion | null;
14427
14106
  error: {
14428
14107
  code: string;
14429
14108
  details?: unknown | null;
@@ -14449,17 +14128,18 @@ export type PromptsGetPromptDirectorySummaryResponses = {
14449
14128
  success: boolean;
14450
14129
  };
14451
14130
  };
14452
- export type PromptsGetPromptDirectorySummaryResponse = PromptsGetPromptDirectorySummaryResponses[keyof PromptsGetPromptDirectorySummaryResponses];
14453
- export type PromptsArchivePromptData = {
14131
+ export type PromptsRenderSkillVersionResponse = PromptsRenderSkillVersionResponses[keyof PromptsRenderSkillVersionResponses];
14132
+ export type PromptsGetPromptDirectorySummaryData = {
14454
14133
  body?: never;
14455
14134
  path: {
14456
14135
  projectId: string;
14457
- promptId: string;
14458
14136
  };
14459
- query?: never;
14460
- url: '/v1/projects/{projectId}/prompts/{promptId}';
14137
+ query?: {
14138
+ kind?: string | null;
14139
+ };
14140
+ url: '/v1/projects/{projectId}/prompts/summary';
14461
14141
  };
14462
- export type PromptsArchivePromptErrors = {
14142
+ export type PromptsGetPromptDirectorySummaryErrors = {
14463
14143
  /**
14464
14144
  * BadRequestError
14465
14145
  */
@@ -14509,14 +14189,32 @@ export type PromptsArchivePromptErrors = {
14509
14189
  */
14510
14190
  503: ServiceUnavailableError;
14511
14191
  };
14512
- export type PromptsArchivePromptError = PromptsArchivePromptErrors[keyof PromptsArchivePromptErrors];
14513
- export type PromptsArchivePromptResponses = {
14192
+ export type PromptsGetPromptDirectorySummaryError = PromptsGetPromptDirectorySummaryErrors[keyof PromptsGetPromptDirectorySummaryErrors];
14193
+ export type PromptsGetPromptDirectorySummaryResponses = {
14514
14194
  /**
14515
14195
  * Success
14516
14196
  */
14517
14197
  200: {
14518
14198
  code: number;
14519
- data: Prompt | null;
14199
+ data: {
14200
+ activeReleases: {
14201
+ count: number;
14202
+ environmentCount: number;
14203
+ };
14204
+ fetches24h: {
14205
+ count: number;
14206
+ deltaPctVsPrev: number;
14207
+ } | null;
14208
+ prompts: {
14209
+ archived: number;
14210
+ published: number;
14211
+ total: number;
14212
+ };
14213
+ rollbacks30d: {
14214
+ count: number;
14215
+ promotions: number;
14216
+ };
14217
+ } | null;
14520
14218
  error: {
14521
14219
  code: string;
14522
14220
  details?: unknown | null;
@@ -14542,8 +14240,8 @@ export type PromptsArchivePromptResponses = {
14542
14240
  success: boolean;
14543
14241
  };
14544
14242
  };
14545
- export type PromptsArchivePromptResponse = PromptsArchivePromptResponses[keyof PromptsArchivePromptResponses];
14546
- export type PromptsGetPromptData = {
14243
+ export type PromptsGetPromptDirectorySummaryResponse = PromptsGetPromptDirectorySummaryResponses[keyof PromptsGetPromptDirectorySummaryResponses];
14244
+ export type PromptsArchivePromptData = {
14547
14245
  body?: never;
14548
14246
  path: {
14549
14247
  projectId: string;
@@ -14552,7 +14250,7 @@ export type PromptsGetPromptData = {
14552
14250
  query?: never;
14553
14251
  url: '/v1/projects/{projectId}/prompts/{promptId}';
14554
14252
  };
14555
- export type PromptsGetPromptErrors = {
14253
+ export type PromptsArchivePromptErrors = {
14556
14254
  /**
14557
14255
  * BadRequestError
14558
14256
  */
@@ -14602,8 +14300,8 @@ export type PromptsGetPromptErrors = {
14602
14300
  */
14603
14301
  503: ServiceUnavailableError;
14604
14302
  };
14605
- export type PromptsGetPromptError = PromptsGetPromptErrors[keyof PromptsGetPromptErrors];
14606
- export type PromptsGetPromptResponses = {
14303
+ export type PromptsArchivePromptError = PromptsArchivePromptErrors[keyof PromptsArchivePromptErrors];
14304
+ export type PromptsArchivePromptResponses = {
14607
14305
  /**
14608
14306
  * Success
14609
14307
  */
@@ -14635,14 +14333,9 @@ export type PromptsGetPromptResponses = {
14635
14333
  success: boolean;
14636
14334
  };
14637
14335
  };
14638
- export type PromptsGetPromptResponse = PromptsGetPromptResponses[keyof PromptsGetPromptResponses];
14639
- export type PromptsUpdatePromptData = {
14640
- body: {
14641
- description?: string | null | null;
14642
- name?: string | null;
14643
- status?: 'active' | 'archived' | null;
14644
- tags?: Array<string> | null;
14645
- };
14336
+ export type PromptsArchivePromptResponse = PromptsArchivePromptResponses[keyof PromptsArchivePromptResponses];
14337
+ export type PromptsGetPromptData = {
14338
+ body?: never;
14646
14339
  path: {
14647
14340
  projectId: string;
14648
14341
  promptId: string;
@@ -14650,7 +14343,7 @@ export type PromptsUpdatePromptData = {
14650
14343
  query?: never;
14651
14344
  url: '/v1/projects/{projectId}/prompts/{promptId}';
14652
14345
  };
14653
- export type PromptsUpdatePromptErrors = {
14346
+ export type PromptsGetPromptErrors = {
14654
14347
  /**
14655
14348
  * BadRequestError
14656
14349
  */
@@ -14700,8 +14393,8 @@ export type PromptsUpdatePromptErrors = {
14700
14393
  */
14701
14394
  503: ServiceUnavailableError;
14702
14395
  };
14703
- export type PromptsUpdatePromptError = PromptsUpdatePromptErrors[keyof PromptsUpdatePromptErrors];
14704
- export type PromptsUpdatePromptResponses = {
14396
+ export type PromptsGetPromptError = PromptsGetPromptErrors[keyof PromptsGetPromptErrors];
14397
+ export type PromptsGetPromptResponses = {
14705
14398
  /**
14706
14399
  * Success
14707
14400
  */
@@ -14733,327 +14426,23 @@ export type PromptsUpdatePromptResponses = {
14733
14426
  success: boolean;
14734
14427
  };
14735
14428
  };
14736
- export type PromptsUpdatePromptResponse = PromptsUpdatePromptResponses[keyof PromptsUpdatePromptResponses];
14737
- export type PromptsListPromptLabelEventsByPromptData = {
14738
- body?: never;
14739
- path: {
14740
- projectId: string;
14741
- promptId: string;
14742
- };
14743
- query?: {
14744
- page?: string | null;
14745
- limit?: string | null;
14746
- label?: string | null;
14747
- promptId?: string | null;
14748
- since?: string | null;
14749
- until?: string | null;
14750
- };
14751
- url: '/v1/projects/{projectId}/prompts/{promptId}/label-events';
14752
- };
14753
- export type PromptsListPromptLabelEventsByPromptErrors = {
14754
- /**
14755
- * BadRequestError
14756
- */
14757
- 400: BadRequestError;
14758
- /**
14759
- * UnauthorizedError
14760
- */
14761
- 401: UnauthorizedError;
14762
- /**
14763
- * ForbiddenError
14764
- */
14765
- 403: ForbiddenError;
14766
- /**
14767
- * NotFoundError
14768
- */
14769
- 404: NotFoundError;
14770
- /**
14771
- * ConflictError
14772
- */
14773
- 409: ConflictError;
14774
- /**
14775
- * GoneError
14776
- */
14777
- 410: GoneError;
14778
- /**
14779
- * ContentTooLargeError
14780
- */
14781
- 413: ContentTooLargeError;
14782
- /**
14783
- * MisdirectedRequestError
14784
- */
14785
- 421: MisdirectedRequestError;
14786
- /**
14787
- * UnprocessableEntityError
14788
- */
14789
- 422: UnprocessableEntityError;
14790
- /**
14791
- * TooManyRequestsError
14792
- */
14793
- 429: TooManyRequestsError;
14794
- /**
14795
- * InternalServerError
14796
- */
14797
- 500: InternalServerError;
14798
- /**
14799
- * ServiceUnavailableError
14800
- */
14801
- 503: ServiceUnavailableError;
14802
- };
14803
- export type PromptsListPromptLabelEventsByPromptError = PromptsListPromptLabelEventsByPromptErrors[keyof PromptsListPromptLabelEventsByPromptErrors];
14804
- export type PromptsListPromptLabelEventsByPromptResponses = {
14805
- /**
14806
- * Success
14807
- */
14808
- 200: {
14809
- code: number;
14810
- data: {
14811
- items: Array<PromptLabelEvent>;
14812
- pagination: {
14813
- limit: number;
14814
- page: number;
14815
- total: number;
14816
- totalPages: number;
14817
- };
14818
- } | null;
14819
- error: {
14820
- code: string;
14821
- details?: unknown | null;
14822
- message: string;
14823
- rowErrors?: Array<{
14824
- code: string;
14825
- message: string;
14826
- path: Array<string | number>;
14827
- }> | null;
14828
- } | null;
14829
- pagination: {
14830
- limit: number;
14831
- page: number;
14832
- total: number;
14833
- totalPages: number;
14834
- } | null;
14835
- sdkBehavior?: {
14836
- flags: {
14837
- [key: string]: unknown;
14838
- };
14839
- v: number;
14840
- } | null;
14841
- success: boolean;
14842
- };
14843
- };
14844
- export type PromptsListPromptLabelEventsByPromptResponse = PromptsListPromptLabelEventsByPromptResponses[keyof PromptsListPromptLabelEventsByPromptResponses];
14845
- export type PromptsListPromptLabelsData = {
14846
- body?: never;
14847
- path: {
14848
- projectId: string;
14849
- promptId: string;
14850
- };
14851
- query?: {
14852
- asOf?: string | null;
14853
- page?: number | null;
14854
- limit?: number | null;
14855
- };
14856
- url: '/v1/projects/{projectId}/prompts/{promptId}/labels';
14857
- };
14858
- export type PromptsListPromptLabelsErrors = {
14859
- /**
14860
- * BadRequestError
14861
- */
14862
- 400: BadRequestError;
14863
- /**
14864
- * UnauthorizedError
14865
- */
14866
- 401: UnauthorizedError;
14867
- /**
14868
- * ForbiddenError
14869
- */
14870
- 403: ForbiddenError;
14871
- /**
14872
- * NotFoundError
14873
- */
14874
- 404: NotFoundError;
14875
- /**
14876
- * ConflictError
14877
- */
14878
- 409: ConflictError;
14879
- /**
14880
- * GoneError
14881
- */
14882
- 410: GoneError;
14883
- /**
14884
- * ContentTooLargeError
14885
- */
14886
- 413: ContentTooLargeError;
14887
- /**
14888
- * MisdirectedRequestError
14889
- */
14890
- 421: MisdirectedRequestError;
14891
- /**
14892
- * UnprocessableEntityError
14893
- */
14894
- 422: UnprocessableEntityError;
14895
- /**
14896
- * TooManyRequestsError
14897
- */
14898
- 429: TooManyRequestsError;
14899
- /**
14900
- * InternalServerError
14901
- */
14902
- 500: InternalServerError;
14903
- /**
14904
- * ServiceUnavailableError
14905
- */
14906
- 503: ServiceUnavailableError;
14907
- };
14908
- export type PromptsListPromptLabelsError = PromptsListPromptLabelsErrors[keyof PromptsListPromptLabelsErrors];
14909
- export type PromptsListPromptLabelsResponses = {
14910
- /**
14911
- * Success
14912
- */
14913
- 200: {
14914
- code: number;
14915
- data: Array<PromptLabelPointer> | null;
14916
- error: {
14917
- code: string;
14918
- details?: unknown | null;
14919
- message: string;
14920
- rowErrors?: Array<{
14921
- code: string;
14922
- message: string;
14923
- path: Array<string | number>;
14924
- }> | null;
14925
- } | null;
14926
- pagination: {
14927
- limit: number;
14928
- page: number;
14929
- total: number;
14930
- totalPages: number;
14931
- } | null;
14932
- sdkBehavior?: {
14933
- flags: {
14934
- [key: string]: unknown;
14935
- };
14936
- v: number;
14937
- } | null;
14938
- success: boolean;
14939
- };
14940
- };
14941
- export type PromptsListPromptLabelsResponse = PromptsListPromptLabelsResponses[keyof PromptsListPromptLabelsResponses];
14942
- export type PromptsMovePromptLabelData = {
14429
+ export type PromptsGetPromptResponse = PromptsGetPromptResponses[keyof PromptsGetPromptResponses];
14430
+ export type PromptsUpdatePromptData = {
14943
14431
  body: {
14944
- reason: string;
14945
- versionId: string;
14432
+ description?: string | null | null;
14433
+ name?: string | null;
14434
+ slug?: string | null;
14435
+ status?: 'active' | 'archived' | null;
14436
+ tags?: Array<string> | null;
14946
14437
  };
14947
14438
  path: {
14948
14439
  projectId: string;
14949
14440
  promptId: string;
14950
- label: string;
14951
14441
  };
14952
14442
  query?: never;
14953
- url: '/v1/projects/{projectId}/prompts/{promptId}/labels/{label}';
14954
- };
14955
- export type PromptsMovePromptLabelErrors = {
14956
- /**
14957
- * BadRequestError
14958
- */
14959
- 400: BadRequestError;
14960
- /**
14961
- * UnauthorizedError
14962
- */
14963
- 401: UnauthorizedError;
14964
- /**
14965
- * ForbiddenError
14966
- */
14967
- 403: ForbiddenError;
14968
- /**
14969
- * NotFoundError
14970
- */
14971
- 404: NotFoundError;
14972
- /**
14973
- * ConflictError
14974
- */
14975
- 409: ConflictError;
14976
- /**
14977
- * GoneError
14978
- */
14979
- 410: GoneError;
14980
- /**
14981
- * ContentTooLargeError
14982
- */
14983
- 413: ContentTooLargeError;
14984
- /**
14985
- * MisdirectedRequestError
14986
- */
14987
- 421: MisdirectedRequestError;
14988
- /**
14989
- * UnprocessableEntityError
14990
- */
14991
- 422: UnprocessableEntityError;
14992
- /**
14993
- * TooManyRequestsError
14994
- */
14995
- 429: TooManyRequestsError;
14996
- /**
14997
- * InternalServerError
14998
- */
14999
- 500: InternalServerError;
15000
- /**
15001
- * ServiceUnavailableError
15002
- */
15003
- 503: ServiceUnavailableError;
15004
- };
15005
- export type PromptsMovePromptLabelError = PromptsMovePromptLabelErrors[keyof PromptsMovePromptLabelErrors];
15006
- export type PromptsMovePromptLabelResponses = {
15007
- /**
15008
- * Success
15009
- */
15010
- 200: {
15011
- code: number;
15012
- data: PromptLabelPointer | null;
15013
- error: {
15014
- code: string;
15015
- details?: unknown | null;
15016
- message: string;
15017
- rowErrors?: Array<{
15018
- code: string;
15019
- message: string;
15020
- path: Array<string | number>;
15021
- }> | null;
15022
- } | null;
15023
- pagination: {
15024
- limit: number;
15025
- page: number;
15026
- total: number;
15027
- totalPages: number;
15028
- } | null;
15029
- sdkBehavior?: {
15030
- flags: {
15031
- [key: string]: unknown;
15032
- };
15033
- v: number;
15034
- } | null;
15035
- success: boolean;
15036
- };
15037
- };
15038
- export type PromptsMovePromptLabelResponse = PromptsMovePromptLabelResponses[keyof PromptsMovePromptLabelResponses];
15039
- export type PromptsListPromptLabelEventsByLabelData = {
15040
- body?: never;
15041
- path: {
15042
- projectId: string;
15043
- promptId: string;
15044
- label: string;
15045
- };
15046
- query?: {
15047
- page?: string | null;
15048
- limit?: string | null;
15049
- label?: string | null;
15050
- promptId?: string | null;
15051
- since?: string | null;
15052
- until?: string | null;
15053
- };
15054
- url: '/v1/projects/{projectId}/prompts/{promptId}/labels/{label}/events';
14443
+ url: '/v1/projects/{projectId}/prompts/{promptId}';
15055
14444
  };
15056
- export type PromptsListPromptLabelEventsByLabelErrors = {
14445
+ export type PromptsUpdatePromptErrors = {
15057
14446
  /**
15058
14447
  * BadRequestError
15059
14448
  */
@@ -15103,22 +14492,14 @@ export type PromptsListPromptLabelEventsByLabelErrors = {
15103
14492
  */
15104
14493
  503: ServiceUnavailableError;
15105
14494
  };
15106
- export type PromptsListPromptLabelEventsByLabelError = PromptsListPromptLabelEventsByLabelErrors[keyof PromptsListPromptLabelEventsByLabelErrors];
15107
- export type PromptsListPromptLabelEventsByLabelResponses = {
14495
+ export type PromptsUpdatePromptError = PromptsUpdatePromptErrors[keyof PromptsUpdatePromptErrors];
14496
+ export type PromptsUpdatePromptResponses = {
15108
14497
  /**
15109
14498
  * Success
15110
14499
  */
15111
14500
  200: {
15112
14501
  code: number;
15113
- data: {
15114
- items: Array<PromptLabelEvent>;
15115
- pagination: {
15116
- limit: number;
15117
- page: number;
15118
- total: number;
15119
- totalPages: number;
15120
- };
15121
- } | null;
14502
+ data: Prompt | null;
15122
14503
  error: {
15123
14504
  code: string;
15124
14505
  details?: unknown | null;
@@ -15144,25 +14525,17 @@ export type PromptsListPromptLabelEventsByLabelResponses = {
15144
14525
  success: boolean;
15145
14526
  };
15146
14527
  };
15147
- export type PromptsListPromptLabelEventsByLabelResponse = PromptsListPromptLabelEventsByLabelResponses[keyof PromptsListPromptLabelEventsByLabelResponses];
15148
- export type PromptsSetWeightedReleaseData = {
15149
- body: {
15150
- reason: string;
15151
- variants: Array<{
15152
- name: string;
15153
- versionId: string;
15154
- weight: number;
15155
- }>;
15156
- };
14528
+ export type PromptsUpdatePromptResponse = PromptsUpdatePromptResponses[keyof PromptsUpdatePromptResponses];
14529
+ export type PromptsImportPromptVersionData = {
14530
+ body: ImportPromptVersionInput;
15157
14531
  path: {
15158
14532
  projectId: string;
15159
14533
  promptId: string;
15160
- label: string;
15161
14534
  };
15162
14535
  query?: never;
15163
- url: '/v1/projects/{projectId}/prompts/{promptId}/labels/{label}/weighted';
14536
+ url: '/v1/projects/{projectId}/prompts/{promptId}/imports';
15164
14537
  };
15165
- export type PromptsSetWeightedReleaseErrors = {
14538
+ export type PromptsImportPromptVersionErrors = {
15166
14539
  /**
15167
14540
  * BadRequestError
15168
14541
  */
@@ -15210,122 +14583,16 @@ export type PromptsSetWeightedReleaseErrors = {
15210
14583
  /**
15211
14584
  * ServiceUnavailableError
15212
14585
  */
15213
- 503: ServiceUnavailableError;
15214
- };
15215
- export type PromptsSetWeightedReleaseError = PromptsSetWeightedReleaseErrors[keyof PromptsSetWeightedReleaseErrors];
15216
- export type PromptsSetWeightedReleaseResponses = {
15217
- /**
15218
- * Success
15219
- */
15220
- 200: {
15221
- code: number;
15222
- data: PromptRelease | null;
15223
- error: {
15224
- code: string;
15225
- details?: unknown | null;
15226
- message: string;
15227
- rowErrors?: Array<{
15228
- code: string;
15229
- message: string;
15230
- path: Array<string | number>;
15231
- }> | null;
15232
- } | null;
15233
- pagination: {
15234
- limit: number;
15235
- page: number;
15236
- total: number;
15237
- totalPages: number;
15238
- } | null;
15239
- sdkBehavior?: {
15240
- flags: {
15241
- [key: string]: unknown;
15242
- };
15243
- v: number;
15244
- } | null;
15245
- success: boolean;
15246
- };
15247
- };
15248
- export type PromptsSetWeightedReleaseResponse = PromptsSetWeightedReleaseResponses[keyof PromptsSetWeightedReleaseResponses];
15249
- export type PromptMetricsGetPromptRequestMetricsData = {
15250
- body?: never;
15251
- path: {
15252
- projectId: string;
15253
- promptId: string;
15254
- };
15255
- query?: {
15256
- window?: string | null;
15257
- };
15258
- url: '/v1/projects/{projectId}/prompts/{promptId}/request-metrics';
15259
- };
15260
- export type PromptMetricsGetPromptRequestMetricsErrors = {
15261
- /**
15262
- * BadRequestError
15263
- */
15264
- 400: BadRequestError;
15265
- /**
15266
- * UnauthorizedError
15267
- */
15268
- 401: UnauthorizedError;
15269
- /**
15270
- * ForbiddenError
15271
- */
15272
- 403: ForbiddenError;
15273
- /**
15274
- * NotFoundError
15275
- */
15276
- 404: NotFoundError;
15277
- /**
15278
- * ConflictError
15279
- */
15280
- 409: ConflictError;
15281
- /**
15282
- * GoneError
15283
- */
15284
- 410: GoneError;
15285
- /**
15286
- * ContentTooLargeError
15287
- */
15288
- 413: ContentTooLargeError;
15289
- /**
15290
- * MisdirectedRequestError
15291
- */
15292
- 421: MisdirectedRequestError;
15293
- /**
15294
- * UnprocessableEntityError
15295
- */
15296
- 422: UnprocessableEntityError;
15297
- /**
15298
- * TooManyRequestsError
15299
- */
15300
- 429: TooManyRequestsError;
15301
- /**
15302
- * InternalServerError
15303
- */
15304
- 500: InternalServerError;
15305
- /**
15306
- * ServiceUnavailableError
15307
- */
15308
- 503: ServiceUnavailableError;
15309
- };
15310
- export type PromptMetricsGetPromptRequestMetricsError = PromptMetricsGetPromptRequestMetricsErrors[keyof PromptMetricsGetPromptRequestMetricsErrors];
15311
- export type PromptMetricsGetPromptRequestMetricsResponses = {
15312
- /**
15313
- * Success
15314
- */
15315
- 200: {
15316
- code: number;
15317
- data: {
15318
- bucketMinutes: number;
15319
- series: Array<{
15320
- points: Array<{
15321
- bucketStart: string;
15322
- requests: number;
15323
- }>;
15324
- totalRequests: number;
15325
- version: string;
15326
- }>;
15327
- windowHours: number;
15328
- } | null;
14586
+ 503: ServiceUnavailableError;
14587
+ };
14588
+ export type PromptsImportPromptVersionError = PromptsImportPromptVersionErrors[keyof PromptsImportPromptVersionErrors];
14589
+ export type PromptsImportPromptVersionResponses = {
14590
+ /**
14591
+ * Success
14592
+ */
14593
+ 201: {
14594
+ code: number;
14595
+ data: PromptVersion | null;
15329
14596
  error: {
15330
14597
  code: string;
15331
14598
  details?: unknown | null;
@@ -15351,20 +14618,24 @@ export type PromptMetricsGetPromptRequestMetricsResponses = {
15351
14618
  success: boolean;
15352
14619
  };
15353
14620
  };
15354
- export type PromptMetricsGetPromptRequestMetricsResponse = PromptMetricsGetPromptRequestMetricsResponses[keyof PromptMetricsGetPromptRequestMetricsResponses];
15355
- export type PromptsListPromptVersionsData = {
14621
+ export type PromptsImportPromptVersionResponse = PromptsImportPromptVersionResponses[keyof PromptsImportPromptVersionResponses];
14622
+ export type PromptsListPromptLabelEventsByPromptData = {
15356
14623
  body?: never;
15357
14624
  path: {
15358
14625
  projectId: string;
15359
14626
  promptId: string;
15360
14627
  };
15361
14628
  query?: {
15362
- page?: number | null;
15363
- limit?: number | null;
14629
+ page?: string | null;
14630
+ limit?: string | null;
14631
+ label?: string | null;
14632
+ promptId?: string | null;
14633
+ since?: string | null;
14634
+ until?: string | null;
15364
14635
  };
15365
- url: '/v1/projects/{projectId}/prompts/{promptId}/versions';
14636
+ url: '/v1/projects/{projectId}/prompts/{promptId}/label-events';
15366
14637
  };
15367
- export type PromptsListPromptVersionsErrors = {
14638
+ export type PromptsListPromptLabelEventsByPromptErrors = {
15368
14639
  /**
15369
14640
  * BadRequestError
15370
14641
  */
@@ -15414,14 +14685,22 @@ export type PromptsListPromptVersionsErrors = {
15414
14685
  */
15415
14686
  503: ServiceUnavailableError;
15416
14687
  };
15417
- export type PromptsListPromptVersionsError = PromptsListPromptVersionsErrors[keyof PromptsListPromptVersionsErrors];
15418
- export type PromptsListPromptVersionsResponses = {
14688
+ export type PromptsListPromptLabelEventsByPromptError = PromptsListPromptLabelEventsByPromptErrors[keyof PromptsListPromptLabelEventsByPromptErrors];
14689
+ export type PromptsListPromptLabelEventsByPromptResponses = {
15419
14690
  /**
15420
14691
  * Success
15421
14692
  */
15422
14693
  200: {
15423
14694
  code: number;
15424
- data: Array<PromptVersion> | null;
14695
+ data: {
14696
+ items: Array<PromptLabelEvent>;
14697
+ pagination: {
14698
+ limit: number;
14699
+ page: number;
14700
+ total: number;
14701
+ totalPages: number;
14702
+ };
14703
+ } | null;
15425
14704
  error: {
15426
14705
  code: string;
15427
14706
  details?: unknown | null;
@@ -15447,25 +14726,21 @@ export type PromptsListPromptVersionsResponses = {
15447
14726
  success: boolean;
15448
14727
  };
15449
14728
  };
15450
- export type PromptsListPromptVersionsResponse = PromptsListPromptVersionsResponses[keyof PromptsListPromptVersionsResponses];
15451
- export type PromptsCreatePromptVersionData = {
15452
- body: {
15453
- allowBlockRemovals?: Array<string> | null;
15454
- baseVersionId?: string | null;
15455
- changelog?: string | null;
15456
- format: 'text' | 'chat';
15457
- modelConfig?: unknown | null;
15458
- templateJson: unknown;
15459
- variablesSchema?: unknown | null;
15460
- };
14729
+ export type PromptsListPromptLabelEventsByPromptResponse = PromptsListPromptLabelEventsByPromptResponses[keyof PromptsListPromptLabelEventsByPromptResponses];
14730
+ export type PromptsListPromptLabelsData = {
14731
+ body?: never;
15461
14732
  path: {
15462
14733
  projectId: string;
15463
14734
  promptId: string;
15464
14735
  };
15465
- query?: never;
15466
- url: '/v1/projects/{projectId}/prompts/{promptId}/versions';
14736
+ query?: {
14737
+ asOf?: string | null;
14738
+ page?: number | null;
14739
+ limit?: number | null;
14740
+ };
14741
+ url: '/v1/projects/{projectId}/prompts/{promptId}/labels';
15467
14742
  };
15468
- export type PromptsCreatePromptVersionErrors = {
14743
+ export type PromptsListPromptLabelsErrors = {
15469
14744
  /**
15470
14745
  * BadRequestError
15471
14746
  */
@@ -15515,14 +14790,14 @@ export type PromptsCreatePromptVersionErrors = {
15515
14790
  */
15516
14791
  503: ServiceUnavailableError;
15517
14792
  };
15518
- export type PromptsCreatePromptVersionError = PromptsCreatePromptVersionErrors[keyof PromptsCreatePromptVersionErrors];
15519
- export type PromptsCreatePromptVersionResponses = {
14793
+ export type PromptsListPromptLabelsError = PromptsListPromptLabelsErrors[keyof PromptsListPromptLabelsErrors];
14794
+ export type PromptsListPromptLabelsResponses = {
15520
14795
  /**
15521
14796
  * Success
15522
14797
  */
15523
- 201: {
14798
+ 200: {
15524
14799
  code: number;
15525
- data: PromptVersion | null;
14800
+ data: Array<PromptLabelPointer> | null;
15526
14801
  error: {
15527
14802
  code: string;
15528
14803
  details?: unknown | null;
@@ -15548,20 +14823,21 @@ export type PromptsCreatePromptVersionResponses = {
15548
14823
  success: boolean;
15549
14824
  };
15550
14825
  };
15551
- export type PromptsCreatePromptVersionResponse = PromptsCreatePromptVersionResponses[keyof PromptsCreatePromptVersionResponses];
15552
- export type PromptsGetPromptVersionDiffData = {
15553
- body?: never;
14826
+ export type PromptsListPromptLabelsResponse = PromptsListPromptLabelsResponses[keyof PromptsListPromptLabelsResponses];
14827
+ export type PromptsMovePromptLabelData = {
14828
+ body: {
14829
+ reason: string;
14830
+ versionId: string;
14831
+ };
15554
14832
  path: {
15555
14833
  projectId: string;
15556
14834
  promptId: string;
15557
- versionId: string;
15558
- };
15559
- query?: {
15560
- against?: string | null;
14835
+ label: string;
15561
14836
  };
15562
- url: '/v1/projects/{projectId}/prompts/{promptId}/versions/{versionId}/diff';
14837
+ query?: never;
14838
+ url: '/v1/projects/{projectId}/prompts/{promptId}/labels/{label}';
15563
14839
  };
15564
- export type PromptsGetPromptVersionDiffErrors = {
14840
+ export type PromptsMovePromptLabelErrors = {
15565
14841
  /**
15566
14842
  * BadRequestError
15567
14843
  */
@@ -15611,99 +14887,14 @@ export type PromptsGetPromptVersionDiffErrors = {
15611
14887
  */
15612
14888
  503: ServiceUnavailableError;
15613
14889
  };
15614
- export type PromptsGetPromptVersionDiffError = PromptsGetPromptVersionDiffErrors[keyof PromptsGetPromptVersionDiffErrors];
15615
- export type PromptsGetPromptVersionDiffResponses = {
14890
+ export type PromptsMovePromptLabelError = PromptsMovePromptLabelErrors[keyof PromptsMovePromptLabelErrors];
14891
+ export type PromptsMovePromptLabelResponses = {
15616
14892
  /**
15617
14893
  * Success
15618
14894
  */
15619
14895
  200: {
15620
14896
  code: number;
15621
- data: {
15622
- operations: Array<{
15623
- condition: {
15624
- kind: string;
15625
- };
15626
- content?: string | null;
15627
- name: string;
15628
- op: 'add';
15629
- role: 'system' | 'user' | 'assistant' | 'developer' | 'tool';
15630
- toolCallId?: string | null;
15631
- toolCalls?: Array<{
15632
- arguments: {
15633
- [key: string]: unknown;
15634
- };
15635
- id: string;
15636
- name: string;
15637
- }> | null;
15638
- } | {
15639
- condition: {
15640
- kind: string;
15641
- };
15642
- content?: string | null;
15643
- name: string;
15644
- op: 'remove';
15645
- role: 'system' | 'user' | 'assistant' | 'developer' | 'tool';
15646
- toolCallId?: string | null;
15647
- toolCalls?: Array<{
15648
- arguments: {
15649
- [key: string]: unknown;
15650
- };
15651
- id: string;
15652
- name: string;
15653
- }> | null;
15654
- } | {
15655
- after: string;
15656
- before: string;
15657
- name: string;
15658
- op: 'edit_content';
15659
- } | {
15660
- after: {
15661
- kind: string;
15662
- };
15663
- before: {
15664
- kind: string;
15665
- };
15666
- name: string;
15667
- op: 'edit_condition';
15668
- } | {
15669
- after: 'system' | 'user' | 'assistant' | 'developer' | 'tool';
15670
- before: 'system' | 'user' | 'assistant' | 'developer' | 'tool';
15671
- name: string;
15672
- op: 'edit_role';
15673
- } | {
15674
- after: boolean;
15675
- before: boolean;
15676
- name: string;
15677
- op: 'edit_required';
15678
- } | {
15679
- after: string;
15680
- before: string;
15681
- name: string;
15682
- op: 'edit_tool_call_id';
15683
- } | {
15684
- after: Array<{
15685
- arguments: {
15686
- [key: string]: unknown;
15687
- };
15688
- id: string;
15689
- name: string;
15690
- }>;
15691
- before: Array<{
15692
- arguments: {
15693
- [key: string]: unknown;
15694
- };
15695
- id: string;
15696
- name: string;
15697
- }>;
15698
- name: string;
15699
- op: 'edit_tool_calls';
15700
- } | {
15701
- fromIndex: number;
15702
- name: string;
15703
- op: 'reorder';
15704
- toIndex: number;
15705
- }>;
15706
- } | null;
14897
+ data: PromptLabelPointer | null;
15707
14898
  error: {
15708
14899
  code: string;
15709
14900
  details?: unknown | null;
@@ -15729,18 +14920,25 @@ export type PromptsGetPromptVersionDiffResponses = {
15729
14920
  success: boolean;
15730
14921
  };
15731
14922
  };
15732
- export type PromptsGetPromptVersionDiffResponse = PromptsGetPromptVersionDiffResponses[keyof PromptsGetPromptVersionDiffResponses];
15733
- export type PromptsGetPromptVersionData = {
14923
+ export type PromptsMovePromptLabelResponse = PromptsMovePromptLabelResponses[keyof PromptsMovePromptLabelResponses];
14924
+ export type PromptsListPromptLabelEventsByLabelData = {
15734
14925
  body?: never;
15735
14926
  path: {
15736
14927
  projectId: string;
15737
14928
  promptId: string;
15738
- versionNumber: string;
14929
+ label: string;
15739
14930
  };
15740
- query?: never;
15741
- url: '/v1/projects/{projectId}/prompts/{promptId}/versions/{versionNumber}';
14931
+ query?: {
14932
+ page?: string | null;
14933
+ limit?: string | null;
14934
+ label?: string | null;
14935
+ promptId?: string | null;
14936
+ since?: string | null;
14937
+ until?: string | null;
14938
+ };
14939
+ url: '/v1/projects/{projectId}/prompts/{promptId}/labels/{label}/events';
15742
14940
  };
15743
- export type PromptsGetPromptVersionErrors = {
14941
+ export type PromptsListPromptLabelEventsByLabelErrors = {
15744
14942
  /**
15745
14943
  * BadRequestError
15746
14944
  */
@@ -15790,14 +14988,22 @@ export type PromptsGetPromptVersionErrors = {
15790
14988
  */
15791
14989
  503: ServiceUnavailableError;
15792
14990
  };
15793
- export type PromptsGetPromptVersionError = PromptsGetPromptVersionErrors[keyof PromptsGetPromptVersionErrors];
15794
- export type PromptsGetPromptVersionResponses = {
14991
+ export type PromptsListPromptLabelEventsByLabelError = PromptsListPromptLabelEventsByLabelErrors[keyof PromptsListPromptLabelEventsByLabelErrors];
14992
+ export type PromptsListPromptLabelEventsByLabelResponses = {
15795
14993
  /**
15796
14994
  * Success
15797
14995
  */
15798
14996
  200: {
15799
14997
  code: number;
15800
- data: PromptVersion | null;
14998
+ data: {
14999
+ items: Array<PromptLabelEvent>;
15000
+ pagination: {
15001
+ limit: number;
15002
+ page: number;
15003
+ total: number;
15004
+ totalPages: number;
15005
+ };
15006
+ } | null;
15801
15007
  error: {
15802
15008
  code: string;
15803
15009
  details?: unknown | null;
@@ -15823,18 +15029,19 @@ export type PromptsGetPromptVersionResponses = {
15823
15029
  success: boolean;
15824
15030
  };
15825
15031
  };
15826
- export type PromptsGetPromptVersionResponse = PromptsGetPromptVersionResponses[keyof PromptsGetPromptVersionResponses];
15827
- export type PromptsGetPromptReviewStateData = {
15032
+ export type PromptsListPromptLabelEventsByLabelResponse = PromptsListPromptLabelEventsByLabelResponses[keyof PromptsListPromptLabelEventsByLabelResponses];
15033
+ export type PromptMetricsGetPromptRequestMetricsData = {
15828
15034
  body?: never;
15829
15035
  path: {
15830
15036
  projectId: string;
15831
15037
  promptId: string;
15832
- versionNumber: string;
15833
15038
  };
15834
- query?: never;
15835
- url: '/v1/projects/{projectId}/prompts/{promptId}/versions/{versionNumber}/reviews';
15039
+ query?: {
15040
+ window?: string | null;
15041
+ };
15042
+ url: '/v1/projects/{projectId}/prompts/{promptId}/request-metrics';
15836
15043
  };
15837
- export type PromptsGetPromptReviewStateErrors = {
15044
+ export type PromptMetricsGetPromptRequestMetricsErrors = {
15838
15045
  /**
15839
15046
  * BadRequestError
15840
15047
  */
@@ -15884,32 +15091,24 @@ export type PromptsGetPromptReviewStateErrors = {
15884
15091
  */
15885
15092
  503: ServiceUnavailableError;
15886
15093
  };
15887
- export type PromptsGetPromptReviewStateError = PromptsGetPromptReviewStateErrors[keyof PromptsGetPromptReviewStateErrors];
15888
- export type PromptsGetPromptReviewStateResponses = {
15094
+ export type PromptMetricsGetPromptRequestMetricsError = PromptMetricsGetPromptRequestMetricsErrors[keyof PromptMetricsGetPromptRequestMetricsErrors];
15095
+ export type PromptMetricsGetPromptRequestMetricsResponses = {
15889
15096
  /**
15890
15097
  * Success
15891
15098
  */
15892
15099
  200: {
15893
15100
  code: number;
15894
15101
  data: {
15895
- activeDecisions: Array<{
15896
- createdAt: string;
15897
- decision: 'approve' | 'reject' | 'request_changes' | 'withdraw';
15898
- hasActiveRejection: boolean;
15899
- reviewId: string;
15900
- reviewerPrincipalId: string;
15901
- }>;
15902
- approvalCount: number;
15903
- callerHasActiveRejection: boolean;
15904
- hasActiveRejection: boolean;
15905
- reviews: Array<{
15906
- createdAt: string;
15907
- decision: 'approve' | 'reject' | 'request_changes' | 'withdraw';
15908
- id: string;
15909
- note: string | null;
15910
- reviewerDisplayName: string | null;
15911
- reviewerPrincipalId: string;
15102
+ bucketMinutes: number;
15103
+ series: Array<{
15104
+ points: Array<{
15105
+ bucketStart: string;
15106
+ requests: number;
15107
+ }>;
15108
+ totalRequests: number;
15109
+ version: string;
15912
15110
  }>;
15111
+ windowHours: number;
15913
15112
  } | null;
15914
15113
  error: {
15915
15114
  code: string;
@@ -15936,21 +15135,20 @@ export type PromptsGetPromptReviewStateResponses = {
15936
15135
  success: boolean;
15937
15136
  };
15938
15137
  };
15939
- export type PromptsGetPromptReviewStateResponse = PromptsGetPromptReviewStateResponses[keyof PromptsGetPromptReviewStateResponses];
15940
- export type PromptsSubmitPromptReviewData = {
15941
- body: {
15942
- decision: 'approve' | 'reject' | 'request_changes';
15943
- note?: string | null;
15944
- };
15138
+ export type PromptMetricsGetPromptRequestMetricsResponse = PromptMetricsGetPromptRequestMetricsResponses[keyof PromptMetricsGetPromptRequestMetricsResponses];
15139
+ export type PromptsListPromptVersionsData = {
15140
+ body?: never;
15945
15141
  path: {
15946
15142
  projectId: string;
15947
15143
  promptId: string;
15948
- versionNumber: string;
15949
15144
  };
15950
- query?: never;
15951
- url: '/v1/projects/{projectId}/prompts/{promptId}/versions/{versionNumber}/reviews';
15145
+ query?: {
15146
+ page?: number | null;
15147
+ limit?: number | null;
15148
+ };
15149
+ url: '/v1/projects/{projectId}/prompts/{promptId}/versions';
15952
15150
  };
15953
- export type PromptsSubmitPromptReviewErrors = {
15151
+ export type PromptsListPromptVersionsErrors = {
15954
15152
  /**
15955
15153
  * BadRequestError
15956
15154
  */
@@ -16000,26 +15198,14 @@ export type PromptsSubmitPromptReviewErrors = {
16000
15198
  */
16001
15199
  503: ServiceUnavailableError;
16002
15200
  };
16003
- export type PromptsSubmitPromptReviewError = PromptsSubmitPromptReviewErrors[keyof PromptsSubmitPromptReviewErrors];
16004
- export type PromptsSubmitPromptReviewResponses = {
15201
+ export type PromptsListPromptVersionsError = PromptsListPromptVersionsErrors[keyof PromptsListPromptVersionsErrors];
15202
+ export type PromptsListPromptVersionsResponses = {
16005
15203
  /**
16006
15204
  * Success
16007
15205
  */
16008
- 201: {
15206
+ 200: {
16009
15207
  code: number;
16010
- data: {
16011
- approvalState: {
16012
- approvalCount: number;
16013
- hasActiveRejection: boolean;
16014
- };
16015
- review: {
16016
- createdAt: string;
16017
- decision: 'approve' | 'reject' | 'request_changes' | 'withdraw';
16018
- id: string;
16019
- note: string | null;
16020
- reviewerPrincipalId: string;
16021
- };
16022
- } | null;
15208
+ data: Array<PromptVersion> | null;
16023
15209
  error: {
16024
15210
  code: string;
16025
15211
  details?: unknown | null;
@@ -16045,20 +15231,25 @@ export type PromptsSubmitPromptReviewResponses = {
16045
15231
  success: boolean;
16046
15232
  };
16047
15233
  };
16048
- export type PromptsSubmitPromptReviewResponse = PromptsSubmitPromptReviewResponses[keyof PromptsSubmitPromptReviewResponses];
16049
- export type PromptsWithdrawPromptReviewData = {
15234
+ export type PromptsListPromptVersionsResponse = PromptsListPromptVersionsResponses[keyof PromptsListPromptVersionsResponses];
15235
+ export type PromptsCreatePromptVersionData = {
16050
15236
  body: {
16051
- note?: string | null;
15237
+ allowBlockRemovals?: Array<string> | null;
15238
+ baseVersionId?: string | null;
15239
+ changelog?: string | null;
15240
+ format: 'text' | 'chat' | 'skill';
15241
+ modelConfig?: unknown | null;
15242
+ templateJson: unknown;
15243
+ variablesSchema?: unknown | null;
16052
15244
  };
16053
15245
  path: {
16054
15246
  projectId: string;
16055
15247
  promptId: string;
16056
- versionNumber: string;
16057
15248
  };
16058
15249
  query?: never;
16059
- url: '/v1/projects/{projectId}/prompts/{promptId}/versions/{versionNumber}/reviews:withdraw';
15250
+ url: '/v1/projects/{projectId}/prompts/{promptId}/versions';
16060
15251
  };
16061
- export type PromptsWithdrawPromptReviewErrors = {
15252
+ export type PromptsCreatePromptVersionErrors = {
16062
15253
  /**
16063
15254
  * BadRequestError
16064
15255
  */
@@ -16108,26 +15299,14 @@ export type PromptsWithdrawPromptReviewErrors = {
16108
15299
  */
16109
15300
  503: ServiceUnavailableError;
16110
15301
  };
16111
- export type PromptsWithdrawPromptReviewError = PromptsWithdrawPromptReviewErrors[keyof PromptsWithdrawPromptReviewErrors];
16112
- export type PromptsWithdrawPromptReviewResponses = {
15302
+ export type PromptsCreatePromptVersionError = PromptsCreatePromptVersionErrors[keyof PromptsCreatePromptVersionErrors];
15303
+ export type PromptsCreatePromptVersionResponses = {
16113
15304
  /**
16114
15305
  * Success
16115
15306
  */
16116
15307
  201: {
16117
15308
  code: number;
16118
- data: {
16119
- approvalState: {
16120
- approvalCount: number;
16121
- hasActiveRejection: boolean;
16122
- };
16123
- review: {
16124
- createdAt: string;
16125
- decision: 'approve' | 'reject' | 'request_changes' | 'withdraw';
16126
- id: string;
16127
- note: string | null;
16128
- reviewerPrincipalId: string;
16129
- };
16130
- } | null;
15309
+ data: PromptVersion | null;
16131
15310
  error: {
16132
15311
  code: string;
16133
15312
  details?: unknown | null;
@@ -16153,23 +15332,18 @@ export type PromptsWithdrawPromptReviewResponses = {
16153
15332
  success: boolean;
16154
15333
  };
16155
15334
  };
16156
- export type PromptsWithdrawPromptReviewResponse = PromptsWithdrawPromptReviewResponses[keyof PromptsWithdrawPromptReviewResponses];
16157
- export type PromptsResolvePromptData = {
16158
- body: {
16159
- labels: Array<string>;
16160
- slug: string;
16161
- subject?: string | null;
16162
- variables?: {
16163
- [key: string]: unknown;
16164
- } | null;
16165
- };
15335
+ export type PromptsCreatePromptVersionResponse = PromptsCreatePromptVersionResponses[keyof PromptsCreatePromptVersionResponses];
15336
+ export type PromptsGetPromptVersionData = {
15337
+ body?: never;
16166
15338
  path: {
16167
15339
  projectId: string;
15340
+ promptId: string;
15341
+ versionNumber: string;
16168
15342
  };
16169
15343
  query?: never;
16170
- url: '/v1/projects/{projectId}/prompts:resolve';
15344
+ url: '/v1/projects/{projectId}/prompts/{promptId}/versions/{versionNumber}';
16171
15345
  };
16172
- export type PromptsResolvePromptErrors = {
15346
+ export type PromptsGetPromptVersionErrors = {
16173
15347
  /**
16174
15348
  * BadRequestError
16175
15349
  */
@@ -16219,14 +15393,14 @@ export type PromptsResolvePromptErrors = {
16219
15393
  */
16220
15394
  503: ServiceUnavailableError;
16221
15395
  };
16222
- export type PromptsResolvePromptError = PromptsResolvePromptErrors[keyof PromptsResolvePromptErrors];
16223
- export type PromptsResolvePromptResponses = {
15396
+ export type PromptsGetPromptVersionError = PromptsGetPromptVersionErrors[keyof PromptsGetPromptVersionErrors];
15397
+ export type PromptsGetPromptVersionResponses = {
16224
15398
  /**
16225
15399
  * Success
16226
15400
  */
16227
15401
  200: {
16228
15402
  code: number;
16229
- data: ResolvedPrompt | null;
15403
+ data: PromptVersion | null;
16230
15404
  error: {
16231
15405
  code: string;
16232
15406
  details?: unknown | null;
@@ -16252,7 +15426,7 @@ export type PromptsResolvePromptResponses = {
16252
15426
  success: boolean;
16253
15427
  };
16254
15428
  };
16255
- export type PromptsResolvePromptResponse = PromptsResolvePromptResponses[keyof PromptsResolvePromptResponses];
15429
+ export type PromptsGetPromptVersionResponse = PromptsGetPromptVersionResponses[keyof PromptsGetPromptVersionResponses];
16256
15430
  export type CredentialLifecycleRenameCredentialData = {
16257
15431
  body: {
16258
15432
  label: string;
@@ -18570,6 +17744,7 @@ export type RoutingProvidersCreateRoutingProviderResponses = {
18570
17744
  export type RoutingProvidersCreateRoutingProviderResponse = RoutingProvidersCreateRoutingProviderResponses[keyof RoutingProvidersCreateRoutingProviderResponses];
18571
17745
  export type RoutingProvidersConnectRoutingProviderData = {
18572
17746
  body: {
17747
+ blockedModels?: Array<string> | null;
18573
17748
  credential: {
18574
17749
  apiKey: string;
18575
17750
  label?: string | null;
@@ -18599,6 +17774,7 @@ export type RoutingProvidersConnectRoutingProviderData = {
18599
17774
  credentialId: string;
18600
17775
  type: 'existing';
18601
17776
  };
17777
+ modelPolicy?: 'allowlist' | 'denylist' | null;
18602
17778
  models: Array<string>;
18603
17779
  provider: {
18604
17780
  apiVersion?: string | null;
@@ -20494,7 +19670,9 @@ export type ProviderConfigDraftsUpdateProviderDraftData = {
20494
19670
  body: {
20495
19671
  configSnapshotPatch: {
20496
19672
  baseUrl?: string | null | null;
19673
+ blockedModels?: Array<string> | null | null;
20497
19674
  customModelIds?: Array<string> | null | null;
19675
+ modelPolicy?: 'allowlist' | 'denylist' | null | null;
20498
19676
  models?: Array<string> | null | null;
20499
19677
  passthroughMode?: 'managed_precedence' | 'caller_precedence' | 'disabled' | null | null;
20500
19678
  providerRegion?: string | null | null;
@@ -25641,6 +24819,7 @@ export type ProjectsListProjectsResponses = {
25641
24819
  status: 'active' | 'archived' | 'deleted';
25642
24820
  updatedAt: string;
25643
24821
  workspaceId: string;
24822
+ workspaceSlug: string;
25644
24823
  }> | null;
25645
24824
  error: {
25646
24825
  code: string;
@@ -25747,6 +24926,7 @@ export type ProjectsCreateProjectResponses = {
25747
24926
  status: 'active' | 'archived' | 'deleted';
25748
24927
  updatedAt: string;
25749
24928
  workspaceId: string;
24929
+ workspaceSlug: string;
25750
24930
  } | null;
25751
24931
  error: {
25752
24932
  code: string;