@to11ai/sdk 2.0.0 → 2.1.0-rc.1

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;
@@ -252,7 +265,7 @@ export type PromptVersion = {
252
265
  createdByDisplayName: string | null;
253
266
  createdByImage: string | null;
254
267
  createdByUserId: string;
255
- format: 'text' | 'chat';
268
+ format: 'text' | 'chat' | 'skill';
256
269
  id: string;
257
270
  modelConfig: unknown;
258
271
  promptId: string;
@@ -271,6 +284,30 @@ export type RenderedChatPrompt = {
271
284
  messages: Array<RenderedChatMessage>;
272
285
  };
273
286
  export type RenderedPrompt = RenderedTextPrompt | RenderedChatPrompt;
287
+ export type RenderedSkill = {
288
+ contentHash: string;
289
+ files: Array<RenderedSkillFile>;
290
+ format: 'skill';
291
+ label: string;
292
+ promptId: string;
293
+ releaseId: string;
294
+ version: number;
295
+ versionId: string;
296
+ };
297
+ export type RenderedSkillFile = {
298
+ content: string;
299
+ contentType: 'text/markdown' | 'text/plain';
300
+ filename: string;
301
+ id: string;
302
+ };
303
+ export type RenderedSkillVersion = {
304
+ contentHash: string;
305
+ files: Array<RenderedSkillFile>;
306
+ format: 'skill';
307
+ promptId: string;
308
+ version: number;
309
+ versionId: string;
310
+ };
274
311
  export type RenderedTextMessage = {
275
312
  content: string;
276
313
  role: 'system' | 'user' | 'developer';
@@ -284,6 +321,11 @@ export type RenderedToolMessage = {
284
321
  role: 'tool';
285
322
  toolCallId: string;
286
323
  };
324
+ export type ResolvedProjectName = {
325
+ organizationId: string;
326
+ projectId: string;
327
+ workspaceId: string;
328
+ };
287
329
  export type ResolvedPrompt = {
288
330
  blockRenderRecord?: {
289
331
  [key: string]: 'rendered' | 'dimmed';
@@ -379,7 +421,8 @@ export type RuleStep = {
379
421
  when?: unknown | null;
380
422
  };
381
423
  export type RuleTarget = {
382
- modelId: string;
424
+ modelId?: string | null;
425
+ modelName?: string | null;
383
426
  params?: {
384
427
  [key: string]: unknown;
385
428
  } | null;
@@ -419,6 +462,19 @@ export type ServiceUnavailableError = {
419
462
  };
420
463
  success: false;
421
464
  };
465
+ export type SkillFileDiffRow = {
466
+ change: 'unchanged' | 'modified' | 'added' | 'removed' | 'renamed';
467
+ filename: string;
468
+ from?: string | null;
469
+ fromFilename?: string | null;
470
+ to?: string | null;
471
+ };
472
+ export type SkillVersionDiff = {
473
+ files: Array<SkillFileDiffRow>;
474
+ format: 'skill';
475
+ from: number;
476
+ to: number;
477
+ };
422
478
  export type TooManyRequestsError = {
423
479
  _tag: 'TooManyRequestsError';
424
480
  code: number;
@@ -791,26 +847,6 @@ export type RoutingSnapshotsGetRoutingSnapshotByEnvResponses = {
791
847
  };
792
848
  };
793
849
  export type RoutingSnapshotsGetRoutingSnapshotByEnvResponse = RoutingSnapshotsGetRoutingSnapshotByEnvResponses[keyof RoutingSnapshotsGetRoutingSnapshotByEnvResponses];
794
- export type MetricsMetricsData = {
795
- body?: never;
796
- path?: never;
797
- query?: never;
798
- url: '/metrics';
799
- };
800
- export type MetricsMetricsErrors = {
801
- /**
802
- * UnauthorizedError
803
- */
804
- 401: UnauthorizedError;
805
- };
806
- export type MetricsMetricsError = MetricsMetricsErrors[keyof MetricsMetricsErrors];
807
- export type MetricsMetricsResponses = {
808
- /**
809
- * Success
810
- */
811
- 200: string;
812
- };
813
- export type MetricsMetricsResponse = MetricsMetricsResponses[keyof MetricsMetricsResponses];
814
850
  export type HealthReadyzData = {
815
851
  body?: never;
816
852
  path?: never;
@@ -3323,8 +3359,9 @@ export type IngestTokenExchangeIngestTokenResponses = {
3323
3359
  200: {
3324
3360
  code: number;
3325
3361
  data: {
3326
- apiKeyId: string;
3362
+ apiKeyId?: string | null;
3327
3363
  expiresAt: string;
3364
+ principalId: string;
3328
3365
  projectId: string;
3329
3366
  scopeClass: 'project' | 'org';
3330
3367
  scopes: Array<string>;
@@ -3641,109 +3678,6 @@ export type OrganizationsGetOrganizationInvitationDetailsResponses = {
3641
3678
  };
3642
3679
  };
3643
3680
  export type OrganizationsGetOrganizationInvitationDetailsResponse = OrganizationsGetOrganizationInvitationDetailsResponses[keyof OrganizationsGetOrganizationInvitationDetailsResponses];
3644
- export type ApiKeysListApiKeysSuperData = {
3645
- body?: never;
3646
- path?: never;
3647
- query?: {
3648
- page?: number | null;
3649
- limit?: number | null;
3650
- };
3651
- url: '/v1/keys';
3652
- };
3653
- export type ApiKeysListApiKeysSuperErrors = {
3654
- /**
3655
- * BadRequestError
3656
- */
3657
- 400: BadRequestError;
3658
- /**
3659
- * UnauthorizedError
3660
- */
3661
- 401: UnauthorizedError;
3662
- /**
3663
- * ForbiddenError
3664
- */
3665
- 403: ForbiddenError;
3666
- /**
3667
- * NotFoundError
3668
- */
3669
- 404: NotFoundError;
3670
- /**
3671
- * ConflictError
3672
- */
3673
- 409: ConflictError;
3674
- /**
3675
- * GoneError
3676
- */
3677
- 410: GoneError;
3678
- /**
3679
- * ContentTooLargeError
3680
- */
3681
- 413: ContentTooLargeError;
3682
- /**
3683
- * MisdirectedRequestError
3684
- */
3685
- 421: MisdirectedRequestError;
3686
- /**
3687
- * UnprocessableEntityError
3688
- */
3689
- 422: UnprocessableEntityError;
3690
- /**
3691
- * TooManyRequestsError
3692
- */
3693
- 429: TooManyRequestsError;
3694
- /**
3695
- * InternalServerError
3696
- */
3697
- 500: InternalServerError;
3698
- /**
3699
- * ServiceUnavailableError
3700
- */
3701
- 503: ServiceUnavailableError;
3702
- };
3703
- export type ApiKeysListApiKeysSuperError = ApiKeysListApiKeysSuperErrors[keyof ApiKeysListApiKeysSuperErrors];
3704
- export type ApiKeysListApiKeysSuperResponses = {
3705
- /**
3706
- * Success
3707
- */
3708
- 200: {
3709
- code: number;
3710
- data: Array<{
3711
- createdAt: string;
3712
- environment: 'live' | 'test';
3713
- expiresAt: string;
3714
- id: string;
3715
- key: string;
3716
- orgId: string | null;
3717
- projectId: string | null;
3718
- revokedAt: string | null;
3719
- scopes: Array<string>;
3720
- }> | null;
3721
- error: {
3722
- code: string;
3723
- details?: unknown | null;
3724
- message: string;
3725
- rowErrors?: Array<{
3726
- code: string;
3727
- message: string;
3728
- path: Array<string | number>;
3729
- }> | null;
3730
- } | null;
3731
- pagination: {
3732
- limit: number;
3733
- page: number;
3734
- total: number;
3735
- totalPages: number;
3736
- } | null;
3737
- sdkBehavior?: {
3738
- flags: {
3739
- [key: string]: unknown;
3740
- };
3741
- v: number;
3742
- } | null;
3743
- success: boolean;
3744
- };
3745
- };
3746
- export type ApiKeysListApiKeysSuperResponse = ApiKeysListApiKeysSuperResponses[keyof ApiKeysListApiKeysSuperResponses];
3747
3681
  export type ApiKeysCreateApiKeySuperData = {
3748
3682
  body: {
3749
3683
  environment: 'live' | 'test';
@@ -5464,111 +5398,6 @@ export type OrganizationsResendOrganizationInvitationResponses = {
5464
5398
  };
5465
5399
  };
5466
5400
  export type OrganizationsResendOrganizationInvitationResponse = OrganizationsResendOrganizationInvitationResponses[keyof OrganizationsResendOrganizationInvitationResponses];
5467
- export type ApiKeysListApiKeysOrgData = {
5468
- body?: never;
5469
- path: {
5470
- orgId: string;
5471
- };
5472
- query?: {
5473
- page?: number | null;
5474
- limit?: number | null;
5475
- };
5476
- url: '/v1/orgs/{orgId}/keys';
5477
- };
5478
- export type ApiKeysListApiKeysOrgErrors = {
5479
- /**
5480
- * BadRequestError
5481
- */
5482
- 400: BadRequestError;
5483
- /**
5484
- * UnauthorizedError
5485
- */
5486
- 401: UnauthorizedError;
5487
- /**
5488
- * ForbiddenError
5489
- */
5490
- 403: ForbiddenError;
5491
- /**
5492
- * NotFoundError
5493
- */
5494
- 404: NotFoundError;
5495
- /**
5496
- * ConflictError
5497
- */
5498
- 409: ConflictError;
5499
- /**
5500
- * GoneError
5501
- */
5502
- 410: GoneError;
5503
- /**
5504
- * ContentTooLargeError
5505
- */
5506
- 413: ContentTooLargeError;
5507
- /**
5508
- * MisdirectedRequestError
5509
- */
5510
- 421: MisdirectedRequestError;
5511
- /**
5512
- * UnprocessableEntityError
5513
- */
5514
- 422: UnprocessableEntityError;
5515
- /**
5516
- * TooManyRequestsError
5517
- */
5518
- 429: TooManyRequestsError;
5519
- /**
5520
- * InternalServerError
5521
- */
5522
- 500: InternalServerError;
5523
- /**
5524
- * ServiceUnavailableError
5525
- */
5526
- 503: ServiceUnavailableError;
5527
- };
5528
- export type ApiKeysListApiKeysOrgError = ApiKeysListApiKeysOrgErrors[keyof ApiKeysListApiKeysOrgErrors];
5529
- export type ApiKeysListApiKeysOrgResponses = {
5530
- /**
5531
- * Success
5532
- */
5533
- 200: {
5534
- code: number;
5535
- data: Array<{
5536
- createdAt: string;
5537
- environment: 'live' | 'test';
5538
- expiresAt: string;
5539
- id: string;
5540
- key: string;
5541
- orgId: string | null;
5542
- projectId: string | null;
5543
- revokedAt: string | null;
5544
- scopes: Array<string>;
5545
- }> | null;
5546
- error: {
5547
- code: string;
5548
- details?: unknown | null;
5549
- message: string;
5550
- rowErrors?: Array<{
5551
- code: string;
5552
- message: string;
5553
- path: Array<string | number>;
5554
- }> | null;
5555
- } | null;
5556
- pagination: {
5557
- limit: number;
5558
- page: number;
5559
- total: number;
5560
- totalPages: number;
5561
- } | null;
5562
- sdkBehavior?: {
5563
- flags: {
5564
- [key: string]: unknown;
5565
- };
5566
- v: number;
5567
- } | null;
5568
- success: boolean;
5569
- };
5570
- };
5571
- export type ApiKeysListApiKeysOrgResponse = ApiKeysListApiKeysOrgResponses[keyof ApiKeysListApiKeysOrgResponses];
5572
5401
  export type ApiKeysCreateApiKeyOrgData = {
5573
5402
  body: {
5574
5403
  environment: 'live' | 'test';
@@ -6858,6 +6687,7 @@ export type ProjectsCreateProjectByOrgResponses = {
6858
6687
  status: 'active' | 'archived' | 'deleted';
6859
6688
  updatedAt: string;
6860
6689
  workspaceId: string;
6690
+ workspaceSlug: string;
6861
6691
  } | null;
6862
6692
  error: {
6863
6693
  code: string;
@@ -9560,6 +9390,100 @@ export type AuthLookupPrincipalsBatchResponses = {
9560
9390
  };
9561
9391
  };
9562
9392
  export type AuthLookupPrincipalsBatchResponse = AuthLookupPrincipalsBatchResponses[keyof AuthLookupPrincipalsBatchResponses];
9393
+ export type ProjectsGetProjectByNameData = {
9394
+ body?: never;
9395
+ path: {
9396
+ organization: string;
9397
+ workspace: string;
9398
+ project: string;
9399
+ };
9400
+ query?: never;
9401
+ url: '/v1/projects/by-name/{organization}/{workspace}/{project}';
9402
+ };
9403
+ export type ProjectsGetProjectByNameErrors = {
9404
+ /**
9405
+ * BadRequestError
9406
+ */
9407
+ 400: BadRequestError;
9408
+ /**
9409
+ * UnauthorizedError
9410
+ */
9411
+ 401: UnauthorizedError;
9412
+ /**
9413
+ * ForbiddenError
9414
+ */
9415
+ 403: ForbiddenError;
9416
+ /**
9417
+ * NotFoundError
9418
+ */
9419
+ 404: NotFoundError;
9420
+ /**
9421
+ * ConflictError
9422
+ */
9423
+ 409: ConflictError;
9424
+ /**
9425
+ * GoneError
9426
+ */
9427
+ 410: GoneError;
9428
+ /**
9429
+ * ContentTooLargeError
9430
+ */
9431
+ 413: ContentTooLargeError;
9432
+ /**
9433
+ * MisdirectedRequestError
9434
+ */
9435
+ 421: MisdirectedRequestError;
9436
+ /**
9437
+ * UnprocessableEntityError
9438
+ */
9439
+ 422: UnprocessableEntityError;
9440
+ /**
9441
+ * TooManyRequestsError
9442
+ */
9443
+ 429: TooManyRequestsError;
9444
+ /**
9445
+ * InternalServerError
9446
+ */
9447
+ 500: InternalServerError;
9448
+ /**
9449
+ * ServiceUnavailableError
9450
+ */
9451
+ 503: ServiceUnavailableError;
9452
+ };
9453
+ export type ProjectsGetProjectByNameError = ProjectsGetProjectByNameErrors[keyof ProjectsGetProjectByNameErrors];
9454
+ export type ProjectsGetProjectByNameResponses = {
9455
+ /**
9456
+ * Success
9457
+ */
9458
+ 200: {
9459
+ code: number;
9460
+ data: ResolvedProjectName | null;
9461
+ error: {
9462
+ code: string;
9463
+ details?: unknown | null;
9464
+ message: string;
9465
+ rowErrors?: Array<{
9466
+ code: string;
9467
+ message: string;
9468
+ path: Array<string | number>;
9469
+ }> | null;
9470
+ } | null;
9471
+ pagination: {
9472
+ limit: number;
9473
+ page: number;
9474
+ total: number;
9475
+ totalPages: number;
9476
+ } | null;
9477
+ sdkBehavior?: {
9478
+ flags: {
9479
+ [key: string]: unknown;
9480
+ };
9481
+ v: number;
9482
+ } | null;
9483
+ success: boolean;
9484
+ };
9485
+ };
9486
+ export type ProjectsGetProjectByNameResponse = ProjectsGetProjectByNameResponses[keyof ProjectsGetProjectByNameResponses];
9563
9487
  export type ProjectsDeleteProjectData = {
9564
9488
  body?: never;
9565
9489
  path: {
@@ -9635,6 +9559,7 @@ export type ProjectsDeleteProjectResponses = {
9635
9559
  status: 'active' | 'archived' | 'deleted';
9636
9560
  updatedAt: string;
9637
9561
  workspaceId: string;
9562
+ workspaceSlug: string;
9638
9563
  } | null;
9639
9564
  error: {
9640
9565
  code: string;
@@ -9737,6 +9662,7 @@ export type ProjectsGetProjectResponses = {
9737
9662
  status: 'active' | 'archived' | 'deleted';
9738
9663
  updatedAt: string;
9739
9664
  workspaceId: string;
9665
+ workspaceSlug: string;
9740
9666
  } | null;
9741
9667
  error: {
9742
9668
  code: string;
@@ -9843,6 +9769,7 @@ export type ProjectsUpdateProjectResponses = {
9843
9769
  status: 'active' | 'archived' | 'deleted';
9844
9770
  updatedAt: string;
9845
9771
  workspaceId: string;
9772
+ workspaceSlug: string;
9846
9773
  } | null;
9847
9774
  error: {
9848
9775
  code: string;
@@ -13941,6 +13868,7 @@ export type PromptsListPromptsData = {
13941
13868
  search?: string | null;
13942
13869
  sortDir?: 'asc' | 'desc' | null;
13943
13870
  status?: string | null;
13871
+ kind?: string | null;
13944
13872
  sortBy?: 'createdAt' | 'updatedAt' | 'name' | 'status' | 'latestVersion' | 'environments' | null;
13945
13873
  tags?: string | null;
13946
13874
  environment?: string | null;
@@ -14009,6 +13937,7 @@ export type PromptsListPromptsResponses = {
14009
13937
  createdByUserId: string;
14010
13938
  description: string | null;
14011
13939
  id: string;
13940
+ kind: 'chat' | 'skill';
14012
13941
  labels: Array<{
14013
13942
  label: string;
14014
13943
  version: number | null;
@@ -14059,6 +13988,7 @@ export type PromptsListPromptsResponse = PromptsListPromptsResponses[keyof Promp
14059
13988
  export type PromptsCreatePromptData = {
14060
13989
  body: {
14061
13990
  description?: string | null;
13991
+ kind?: 'chat' | 'skill' | null;
14062
13992
  name: string;
14063
13993
  slug: string;
14064
13994
  tags?: Array<string> | null;
@@ -14333,7 +14263,7 @@ export type PromptsRenderPromptResponses = {
14333
14263
  */
14334
14264
  200: {
14335
14265
  code: number;
14336
- data: ResolvedPrompt | null;
14266
+ data: ResolvedPrompt | RenderedSkill | null;
14337
14267
  error: {
14338
14268
  code: string;
14339
14269
  details?: unknown | null;
@@ -14360,12 +14290,112 @@ export type PromptsRenderPromptResponses = {
14360
14290
  };
14361
14291
  };
14362
14292
  export type PromptsRenderPromptResponse = PromptsRenderPromptResponses[keyof PromptsRenderPromptResponses];
14293
+ export type PromptsRenderSkillVersionData = {
14294
+ body: {
14295
+ variables?: {
14296
+ [key: string]: unknown;
14297
+ } | null;
14298
+ };
14299
+ path: {
14300
+ projectId: string;
14301
+ slug: string;
14302
+ versionNumber: string;
14303
+ };
14304
+ query?: never;
14305
+ url: '/v1/projects/{projectId}/prompts/by-slug/{slug}/versions/{versionNumber}/render';
14306
+ };
14307
+ export type PromptsRenderSkillVersionErrors = {
14308
+ /**
14309
+ * BadRequestError
14310
+ */
14311
+ 400: BadRequestError;
14312
+ /**
14313
+ * UnauthorizedError
14314
+ */
14315
+ 401: UnauthorizedError;
14316
+ /**
14317
+ * ForbiddenError
14318
+ */
14319
+ 403: ForbiddenError;
14320
+ /**
14321
+ * NotFoundError
14322
+ */
14323
+ 404: NotFoundError;
14324
+ /**
14325
+ * ConflictError
14326
+ */
14327
+ 409: ConflictError;
14328
+ /**
14329
+ * GoneError
14330
+ */
14331
+ 410: GoneError;
14332
+ /**
14333
+ * ContentTooLargeError
14334
+ */
14335
+ 413: ContentTooLargeError;
14336
+ /**
14337
+ * MisdirectedRequestError
14338
+ */
14339
+ 421: MisdirectedRequestError;
14340
+ /**
14341
+ * UnprocessableEntityError
14342
+ */
14343
+ 422: UnprocessableEntityError;
14344
+ /**
14345
+ * TooManyRequestsError
14346
+ */
14347
+ 429: TooManyRequestsError;
14348
+ /**
14349
+ * InternalServerError
14350
+ */
14351
+ 500: InternalServerError;
14352
+ /**
14353
+ * ServiceUnavailableError
14354
+ */
14355
+ 503: ServiceUnavailableError;
14356
+ };
14357
+ export type PromptsRenderSkillVersionError = PromptsRenderSkillVersionErrors[keyof PromptsRenderSkillVersionErrors];
14358
+ export type PromptsRenderSkillVersionResponses = {
14359
+ /**
14360
+ * Success
14361
+ */
14362
+ 200: {
14363
+ code: number;
14364
+ data: RenderedSkillVersion | null;
14365
+ error: {
14366
+ code: string;
14367
+ details?: unknown | null;
14368
+ message: string;
14369
+ rowErrors?: Array<{
14370
+ code: string;
14371
+ message: string;
14372
+ path: Array<string | number>;
14373
+ }> | null;
14374
+ } | null;
14375
+ pagination: {
14376
+ limit: number;
14377
+ page: number;
14378
+ total: number;
14379
+ totalPages: number;
14380
+ } | null;
14381
+ sdkBehavior?: {
14382
+ flags: {
14383
+ [key: string]: unknown;
14384
+ };
14385
+ v: number;
14386
+ } | null;
14387
+ success: boolean;
14388
+ };
14389
+ };
14390
+ export type PromptsRenderSkillVersionResponse = PromptsRenderSkillVersionResponses[keyof PromptsRenderSkillVersionResponses];
14363
14391
  export type PromptsGetPromptDirectorySummaryData = {
14364
14392
  body?: never;
14365
14393
  path: {
14366
14394
  projectId: string;
14367
14395
  };
14368
- query?: never;
14396
+ query?: {
14397
+ kind?: string | null;
14398
+ };
14369
14399
  url: '/v1/projects/{projectId}/prompts/summary';
14370
14400
  };
14371
14401
  export type PromptsGetPromptDirectorySummaryErrors = {
@@ -14660,6 +14690,7 @@ export type PromptsUpdatePromptData = {
14660
14690
  body: {
14661
14691
  description?: string | null | null;
14662
14692
  name?: string | null;
14693
+ slug?: string | null;
14663
14694
  status?: 'active' | 'archived' | null;
14664
14695
  tags?: Array<string> | null;
14665
14696
  };
@@ -14754,6 +14785,99 @@ export type PromptsUpdatePromptResponses = {
14754
14785
  };
14755
14786
  };
14756
14787
  export type PromptsUpdatePromptResponse = PromptsUpdatePromptResponses[keyof PromptsUpdatePromptResponses];
14788
+ export type PromptsImportPromptVersionData = {
14789
+ body: ImportPromptVersionInput;
14790
+ path: {
14791
+ projectId: string;
14792
+ promptId: string;
14793
+ };
14794
+ query?: never;
14795
+ url: '/v1/projects/{projectId}/prompts/{promptId}/imports';
14796
+ };
14797
+ export type PromptsImportPromptVersionErrors = {
14798
+ /**
14799
+ * BadRequestError
14800
+ */
14801
+ 400: BadRequestError;
14802
+ /**
14803
+ * UnauthorizedError
14804
+ */
14805
+ 401: UnauthorizedError;
14806
+ /**
14807
+ * ForbiddenError
14808
+ */
14809
+ 403: ForbiddenError;
14810
+ /**
14811
+ * NotFoundError
14812
+ */
14813
+ 404: NotFoundError;
14814
+ /**
14815
+ * ConflictError
14816
+ */
14817
+ 409: ConflictError;
14818
+ /**
14819
+ * GoneError
14820
+ */
14821
+ 410: GoneError;
14822
+ /**
14823
+ * ContentTooLargeError
14824
+ */
14825
+ 413: ContentTooLargeError;
14826
+ /**
14827
+ * MisdirectedRequestError
14828
+ */
14829
+ 421: MisdirectedRequestError;
14830
+ /**
14831
+ * UnprocessableEntityError
14832
+ */
14833
+ 422: UnprocessableEntityError;
14834
+ /**
14835
+ * TooManyRequestsError
14836
+ */
14837
+ 429: TooManyRequestsError;
14838
+ /**
14839
+ * InternalServerError
14840
+ */
14841
+ 500: InternalServerError;
14842
+ /**
14843
+ * ServiceUnavailableError
14844
+ */
14845
+ 503: ServiceUnavailableError;
14846
+ };
14847
+ export type PromptsImportPromptVersionError = PromptsImportPromptVersionErrors[keyof PromptsImportPromptVersionErrors];
14848
+ export type PromptsImportPromptVersionResponses = {
14849
+ /**
14850
+ * Success
14851
+ */
14852
+ 201: {
14853
+ code: number;
14854
+ data: PromptVersion | null;
14855
+ error: {
14856
+ code: string;
14857
+ details?: unknown | null;
14858
+ message: string;
14859
+ rowErrors?: Array<{
14860
+ code: string;
14861
+ message: string;
14862
+ path: Array<string | number>;
14863
+ }> | null;
14864
+ } | null;
14865
+ pagination: {
14866
+ limit: number;
14867
+ page: number;
14868
+ total: number;
14869
+ totalPages: number;
14870
+ } | null;
14871
+ sdkBehavior?: {
14872
+ flags: {
14873
+ [key: string]: unknown;
14874
+ };
14875
+ v: number;
14876
+ } | null;
14877
+ success: boolean;
14878
+ };
14879
+ };
14880
+ export type PromptsImportPromptVersionResponse = PromptsImportPromptVersionResponses[keyof PromptsImportPromptVersionResponses];
14757
14881
  export type PromptsListPromptLabelEventsByPromptData = {
14758
14882
  body?: never;
14759
14883
  path: {
@@ -15473,7 +15597,7 @@ export type PromptsCreatePromptVersionData = {
15473
15597
  allowBlockRemovals?: Array<string> | null;
15474
15598
  baseVersionId?: string | null;
15475
15599
  changelog?: string | null;
15476
- format: 'text' | 'chat';
15600
+ format: 'text' | 'chat' | 'skill';
15477
15601
  modelConfig?: unknown | null;
15478
15602
  templateJson: unknown;
15479
15603
  variablesSchema?: unknown | null;
@@ -15723,7 +15847,7 @@ export type PromptsGetPromptVersionDiffResponses = {
15723
15847
  op: 'reorder';
15724
15848
  toIndex: number;
15725
15849
  }>;
15726
- } | null;
15850
+ } | SkillVersionDiff | null;
15727
15851
  error: {
15728
15852
  code: string;
15729
15853
  details?: unknown | null;
@@ -18590,6 +18714,7 @@ export type RoutingProvidersCreateRoutingProviderResponses = {
18590
18714
  export type RoutingProvidersCreateRoutingProviderResponse = RoutingProvidersCreateRoutingProviderResponses[keyof RoutingProvidersCreateRoutingProviderResponses];
18591
18715
  export type RoutingProvidersConnectRoutingProviderData = {
18592
18716
  body: {
18717
+ blockedModels?: Array<string> | null;
18593
18718
  credential: {
18594
18719
  apiKey: string;
18595
18720
  label?: string | null;
@@ -18619,6 +18744,7 @@ export type RoutingProvidersConnectRoutingProviderData = {
18619
18744
  credentialId: string;
18620
18745
  type: 'existing';
18621
18746
  };
18747
+ modelPolicy?: 'allowlist' | 'denylist' | null;
18622
18748
  models: Array<string>;
18623
18749
  provider: {
18624
18750
  apiVersion?: string | null;
@@ -20514,7 +20640,9 @@ export type ProviderConfigDraftsUpdateProviderDraftData = {
20514
20640
  body: {
20515
20641
  configSnapshotPatch: {
20516
20642
  baseUrl?: string | null | null;
20643
+ blockedModels?: Array<string> | null | null;
20517
20644
  customModelIds?: Array<string> | null | null;
20645
+ modelPolicy?: 'allowlist' | 'denylist' | null | null;
20518
20646
  models?: Array<string> | null | null;
20519
20647
  passthroughMode?: 'managed_precedence' | 'caller_precedence' | 'disabled' | null | null;
20520
20648
  providerRegion?: string | null | null;
@@ -25661,6 +25789,7 @@ export type ProjectsListProjectsResponses = {
25661
25789
  status: 'active' | 'archived' | 'deleted';
25662
25790
  updatedAt: string;
25663
25791
  workspaceId: string;
25792
+ workspaceSlug: string;
25664
25793
  }> | null;
25665
25794
  error: {
25666
25795
  code: string;
@@ -25767,6 +25896,7 @@ export type ProjectsCreateProjectResponses = {
25767
25896
  status: 'active' | 'archived' | 'deleted';
25768
25897
  updatedAt: string;
25769
25898
  workspaceId: string;
25899
+ workspaceSlug: string;
25770
25900
  } | null;
25771
25901
  error: {
25772
25902
  code: string;