@to11ai/sdk 2.1.0-rc → 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;
@@ -3303,8 +3359,9 @@ export type IngestTokenExchangeIngestTokenResponses = {
3303
3359
  200: {
3304
3360
  code: number;
3305
3361
  data: {
3306
- apiKeyId: string;
3362
+ apiKeyId?: string | null;
3307
3363
  expiresAt: string;
3364
+ principalId: string;
3308
3365
  projectId: string;
3309
3366
  scopeClass: 'project' | 'org';
3310
3367
  scopes: Array<string>;
@@ -3621,109 +3678,6 @@ export type OrganizationsGetOrganizationInvitationDetailsResponses = {
3621
3678
  };
3622
3679
  };
3623
3680
  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
3681
  export type ApiKeysCreateApiKeySuperData = {
3728
3682
  body: {
3729
3683
  environment: 'live' | 'test';
@@ -5444,111 +5398,6 @@ export type OrganizationsResendOrganizationInvitationResponses = {
5444
5398
  };
5445
5399
  };
5446
5400
  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
5401
  export type ApiKeysCreateApiKeyOrgData = {
5553
5402
  body: {
5554
5403
  environment: 'live' | 'test';
@@ -6838,6 +6687,7 @@ export type ProjectsCreateProjectByOrgResponses = {
6838
6687
  status: 'active' | 'archived' | 'deleted';
6839
6688
  updatedAt: string;
6840
6689
  workspaceId: string;
6690
+ workspaceSlug: string;
6841
6691
  } | null;
6842
6692
  error: {
6843
6693
  code: string;
@@ -9540,6 +9390,100 @@ export type AuthLookupPrincipalsBatchResponses = {
9540
9390
  };
9541
9391
  };
9542
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];
9543
9487
  export type ProjectsDeleteProjectData = {
9544
9488
  body?: never;
9545
9489
  path: {
@@ -9615,6 +9559,7 @@ export type ProjectsDeleteProjectResponses = {
9615
9559
  status: 'active' | 'archived' | 'deleted';
9616
9560
  updatedAt: string;
9617
9561
  workspaceId: string;
9562
+ workspaceSlug: string;
9618
9563
  } | null;
9619
9564
  error: {
9620
9565
  code: string;
@@ -9717,6 +9662,7 @@ export type ProjectsGetProjectResponses = {
9717
9662
  status: 'active' | 'archived' | 'deleted';
9718
9663
  updatedAt: string;
9719
9664
  workspaceId: string;
9665
+ workspaceSlug: string;
9720
9666
  } | null;
9721
9667
  error: {
9722
9668
  code: string;
@@ -9823,6 +9769,7 @@ export type ProjectsUpdateProjectResponses = {
9823
9769
  status: 'active' | 'archived' | 'deleted';
9824
9770
  updatedAt: string;
9825
9771
  workspaceId: string;
9772
+ workspaceSlug: string;
9826
9773
  } | null;
9827
9774
  error: {
9828
9775
  code: string;
@@ -13921,6 +13868,7 @@ export type PromptsListPromptsData = {
13921
13868
  search?: string | null;
13922
13869
  sortDir?: 'asc' | 'desc' | null;
13923
13870
  status?: string | null;
13871
+ kind?: string | null;
13924
13872
  sortBy?: 'createdAt' | 'updatedAt' | 'name' | 'status' | 'latestVersion' | 'environments' | null;
13925
13873
  tags?: string | null;
13926
13874
  environment?: string | null;
@@ -13989,6 +13937,7 @@ export type PromptsListPromptsResponses = {
13989
13937
  createdByUserId: string;
13990
13938
  description: string | null;
13991
13939
  id: string;
13940
+ kind: 'chat' | 'skill';
13992
13941
  labels: Array<{
13993
13942
  label: string;
13994
13943
  version: number | null;
@@ -14039,6 +13988,7 @@ export type PromptsListPromptsResponse = PromptsListPromptsResponses[keyof Promp
14039
13988
  export type PromptsCreatePromptData = {
14040
13989
  body: {
14041
13990
  description?: string | null;
13991
+ kind?: 'chat' | 'skill' | null;
14042
13992
  name: string;
14043
13993
  slug: string;
14044
13994
  tags?: Array<string> | null;
@@ -14313,7 +14263,7 @@ export type PromptsRenderPromptResponses = {
14313
14263
  */
14314
14264
  200: {
14315
14265
  code: number;
14316
- data: ResolvedPrompt | null;
14266
+ data: ResolvedPrompt | RenderedSkill | null;
14317
14267
  error: {
14318
14268
  code: string;
14319
14269
  details?: unknown | null;
@@ -14340,12 +14290,112 @@ export type PromptsRenderPromptResponses = {
14340
14290
  };
14341
14291
  };
14342
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];
14343
14391
  export type PromptsGetPromptDirectorySummaryData = {
14344
14392
  body?: never;
14345
14393
  path: {
14346
14394
  projectId: string;
14347
14395
  };
14348
- query?: never;
14396
+ query?: {
14397
+ kind?: string | null;
14398
+ };
14349
14399
  url: '/v1/projects/{projectId}/prompts/summary';
14350
14400
  };
14351
14401
  export type PromptsGetPromptDirectorySummaryErrors = {
@@ -14640,6 +14690,7 @@ export type PromptsUpdatePromptData = {
14640
14690
  body: {
14641
14691
  description?: string | null | null;
14642
14692
  name?: string | null;
14693
+ slug?: string | null;
14643
14694
  status?: 'active' | 'archived' | null;
14644
14695
  tags?: Array<string> | null;
14645
14696
  };
@@ -14734,6 +14785,99 @@ export type PromptsUpdatePromptResponses = {
14734
14785
  };
14735
14786
  };
14736
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];
14737
14881
  export type PromptsListPromptLabelEventsByPromptData = {
14738
14882
  body?: never;
14739
14883
  path: {
@@ -15453,7 +15597,7 @@ export type PromptsCreatePromptVersionData = {
15453
15597
  allowBlockRemovals?: Array<string> | null;
15454
15598
  baseVersionId?: string | null;
15455
15599
  changelog?: string | null;
15456
- format: 'text' | 'chat';
15600
+ format: 'text' | 'chat' | 'skill';
15457
15601
  modelConfig?: unknown | null;
15458
15602
  templateJson: unknown;
15459
15603
  variablesSchema?: unknown | null;
@@ -15703,7 +15847,7 @@ export type PromptsGetPromptVersionDiffResponses = {
15703
15847
  op: 'reorder';
15704
15848
  toIndex: number;
15705
15849
  }>;
15706
- } | null;
15850
+ } | SkillVersionDiff | null;
15707
15851
  error: {
15708
15852
  code: string;
15709
15853
  details?: unknown | null;
@@ -18570,6 +18714,7 @@ export type RoutingProvidersCreateRoutingProviderResponses = {
18570
18714
  export type RoutingProvidersCreateRoutingProviderResponse = RoutingProvidersCreateRoutingProviderResponses[keyof RoutingProvidersCreateRoutingProviderResponses];
18571
18715
  export type RoutingProvidersConnectRoutingProviderData = {
18572
18716
  body: {
18717
+ blockedModels?: Array<string> | null;
18573
18718
  credential: {
18574
18719
  apiKey: string;
18575
18720
  label?: string | null;
@@ -18599,6 +18744,7 @@ export type RoutingProvidersConnectRoutingProviderData = {
18599
18744
  credentialId: string;
18600
18745
  type: 'existing';
18601
18746
  };
18747
+ modelPolicy?: 'allowlist' | 'denylist' | null;
18602
18748
  models: Array<string>;
18603
18749
  provider: {
18604
18750
  apiVersion?: string | null;
@@ -20494,7 +20640,9 @@ export type ProviderConfigDraftsUpdateProviderDraftData = {
20494
20640
  body: {
20495
20641
  configSnapshotPatch: {
20496
20642
  baseUrl?: string | null | null;
20643
+ blockedModels?: Array<string> | null | null;
20497
20644
  customModelIds?: Array<string> | null | null;
20645
+ modelPolicy?: 'allowlist' | 'denylist' | null | null;
20498
20646
  models?: Array<string> | null | null;
20499
20647
  passthroughMode?: 'managed_precedence' | 'caller_precedence' | 'disabled' | null | null;
20500
20648
  providerRegion?: string | null | null;
@@ -25641,6 +25789,7 @@ export type ProjectsListProjectsResponses = {
25641
25789
  status: 'active' | 'archived' | 'deleted';
25642
25790
  updatedAt: string;
25643
25791
  workspaceId: string;
25792
+ workspaceSlug: string;
25644
25793
  }> | null;
25645
25794
  error: {
25646
25795
  code: string;
@@ -25747,6 +25896,7 @@ export type ProjectsCreateProjectResponses = {
25747
25896
  status: 'active' | 'archived' | 'deleted';
25748
25897
  updatedAt: string;
25749
25898
  workspaceId: string;
25899
+ workspaceSlug: string;
25750
25900
  } | null;
25751
25901
  error: {
25752
25902
  code: string;