@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.
@@ -89,6 +89,18 @@ export type GoneError = {
89
89
  success: false;
90
90
  };
91
91
 
92
+ export type ImportPromptVersionInput = {
93
+ changelog?: string | null;
94
+ files: Array<{
95
+ content: string;
96
+ contentType?: 'text/markdown' | 'text/plain' | null;
97
+ filename: string;
98
+ id?: string | null;
99
+ }>;
100
+ format?: 'skill' | null;
101
+ kind?: 'skill' | null;
102
+ };
103
+
92
104
  export type InternalServerError = {
93
105
  _tag: 'InternalServerError';
94
106
  code: number;
@@ -160,6 +172,7 @@ export type PrincipalApiKeyContextInvariant = {
160
172
  keyFingerprint: string;
161
173
  keyId: string;
162
174
  orgId: string | null;
175
+ orgSlug?: string | null;
163
176
  projectId: string | null;
164
177
  scopes: Array<string>;
165
178
  workspaceId: string | null;
@@ -221,6 +234,7 @@ export type Prompt = {
221
234
  createdByUserId: string;
222
235
  description: string | null;
223
236
  id: string;
237
+ kind: 'chat' | 'skill';
224
238
  name: string;
225
239
  projectId: string;
226
240
  slug: string;
@@ -274,7 +288,7 @@ export type PromptVersion = {
274
288
  createdByDisplayName: string | null;
275
289
  createdByImage: string | null;
276
290
  createdByUserId: string;
277
- format: 'text' | 'chat';
291
+ format: 'text' | 'chat' | 'skill';
278
292
  id: string;
279
293
  modelConfig: unknown;
280
294
  promptId: string;
@@ -298,6 +312,33 @@ export type RenderedChatPrompt = {
298
312
 
299
313
  export type RenderedPrompt = RenderedTextPrompt | RenderedChatPrompt;
300
314
 
315
+ export type RenderedSkill = {
316
+ contentHash: string;
317
+ files: Array<RenderedSkillFile>;
318
+ format: 'skill';
319
+ label: string;
320
+ promptId: string;
321
+ releaseId: string;
322
+ version: number;
323
+ versionId: string;
324
+ };
325
+
326
+ export type RenderedSkillFile = {
327
+ content: string;
328
+ contentType: 'text/markdown' | 'text/plain';
329
+ filename: string;
330
+ id: string;
331
+ };
332
+
333
+ export type RenderedSkillVersion = {
334
+ contentHash: string;
335
+ files: Array<RenderedSkillFile>;
336
+ format: 'skill';
337
+ promptId: string;
338
+ version: number;
339
+ versionId: string;
340
+ };
341
+
301
342
  export type RenderedTextMessage = {
302
343
  content: string;
303
344
  role: 'system' | 'user' | 'developer';
@@ -314,6 +355,12 @@ export type RenderedToolMessage = {
314
355
  toolCallId: string;
315
356
  };
316
357
 
358
+ export type ResolvedProjectName = {
359
+ organizationId: string;
360
+ projectId: string;
361
+ workspaceId: string;
362
+ };
363
+
317
364
  export type ResolvedPrompt = {
318
365
  blockRenderRecord?: {
319
366
  [key: string]: 'rendered' | 'dimmed';
@@ -419,7 +466,8 @@ export type RuleStep = {
419
466
  };
420
467
 
421
468
  export type RuleTarget = {
422
- modelId: string;
469
+ modelId?: string | null;
470
+ modelName?: string | null;
423
471
  params?: {
424
472
  [key: string]: unknown;
425
473
  } | null;
@@ -463,6 +511,21 @@ export type ServiceUnavailableError = {
463
511
  success: false;
464
512
  };
465
513
 
514
+ export type SkillFileDiffRow = {
515
+ change: 'unchanged' | 'modified' | 'added' | 'removed' | 'renamed';
516
+ filename: string;
517
+ from?: string | null;
518
+ fromFilename?: string | null;
519
+ to?: string | null;
520
+ };
521
+
522
+ export type SkillVersionDiff = {
523
+ files: Array<SkillFileDiffRow>;
524
+ format: 'skill';
525
+ from: number;
526
+ to: number;
527
+ };
528
+
466
529
  export type TooManyRequestsError = {
467
530
  _tag: 'TooManyRequestsError';
468
531
  code: number;
@@ -3488,8 +3551,9 @@ export type IngestTokenExchangeIngestTokenResponses = {
3488
3551
  200: {
3489
3552
  code: number;
3490
3553
  data: {
3491
- apiKeyId: string;
3554
+ apiKeyId?: string | null;
3492
3555
  expiresAt: string;
3556
+ principalId: string;
3493
3557
  projectId: string;
3494
3558
  scopeClass: 'project' | 'org';
3495
3559
  scopes: Array<string>;
@@ -3823,114 +3887,6 @@ export type OrganizationsGetOrganizationInvitationDetailsResponses = {
3823
3887
 
3824
3888
  export type OrganizationsGetOrganizationInvitationDetailsResponse = OrganizationsGetOrganizationInvitationDetailsResponses[keyof OrganizationsGetOrganizationInvitationDetailsResponses];
3825
3889
 
3826
- export type ApiKeysListApiKeysSuperData = {
3827
- body?: never;
3828
- path?: never;
3829
- query?: {
3830
- page?: number | null;
3831
- limit?: number | null;
3832
- };
3833
- url: '/v1/keys';
3834
- };
3835
-
3836
- export type ApiKeysListApiKeysSuperErrors = {
3837
- /**
3838
- * BadRequestError
3839
- */
3840
- 400: BadRequestError;
3841
- /**
3842
- * UnauthorizedError
3843
- */
3844
- 401: UnauthorizedError;
3845
- /**
3846
- * ForbiddenError
3847
- */
3848
- 403: ForbiddenError;
3849
- /**
3850
- * NotFoundError
3851
- */
3852
- 404: NotFoundError;
3853
- /**
3854
- * ConflictError
3855
- */
3856
- 409: ConflictError;
3857
- /**
3858
- * GoneError
3859
- */
3860
- 410: GoneError;
3861
- /**
3862
- * ContentTooLargeError
3863
- */
3864
- 413: ContentTooLargeError;
3865
- /**
3866
- * MisdirectedRequestError
3867
- */
3868
- 421: MisdirectedRequestError;
3869
- /**
3870
- * UnprocessableEntityError
3871
- */
3872
- 422: UnprocessableEntityError;
3873
- /**
3874
- * TooManyRequestsError
3875
- */
3876
- 429: TooManyRequestsError;
3877
- /**
3878
- * InternalServerError
3879
- */
3880
- 500: InternalServerError;
3881
- /**
3882
- * ServiceUnavailableError
3883
- */
3884
- 503: ServiceUnavailableError;
3885
- };
3886
-
3887
- export type ApiKeysListApiKeysSuperError = ApiKeysListApiKeysSuperErrors[keyof ApiKeysListApiKeysSuperErrors];
3888
-
3889
- export type ApiKeysListApiKeysSuperResponses = {
3890
- /**
3891
- * Success
3892
- */
3893
- 200: {
3894
- code: number;
3895
- data: Array<{
3896
- createdAt: string;
3897
- environment: 'live' | 'test';
3898
- expiresAt: string;
3899
- id: string;
3900
- key: string;
3901
- orgId: string | null;
3902
- projectId: string | null;
3903
- revokedAt: string | null;
3904
- scopes: Array<string>;
3905
- }> | null;
3906
- error: {
3907
- code: string;
3908
- details?: unknown | null;
3909
- message: string;
3910
- rowErrors?: Array<{
3911
- code: string;
3912
- message: string;
3913
- path: Array<string | number>;
3914
- }> | null;
3915
- } | null;
3916
- pagination: {
3917
- limit: number;
3918
- page: number;
3919
- total: number;
3920
- totalPages: number;
3921
- } | null;
3922
- sdkBehavior?: {
3923
- flags: {
3924
- [key: string]: unknown;
3925
- };
3926
- v: number;
3927
- } | null;
3928
- success: boolean;
3929
- };
3930
- };
3931
-
3932
- export type ApiKeysListApiKeysSuperResponse = ApiKeysListApiKeysSuperResponses[keyof ApiKeysListApiKeysSuperResponses];
3933
-
3934
3890
  export type ApiKeysCreateApiKeySuperData = {
3935
3891
  body: {
3936
3892
  environment: 'live' | 'test';
@@ -5731,116 +5687,6 @@ export type OrganizationsResendOrganizationInvitationResponses = {
5731
5687
 
5732
5688
  export type OrganizationsResendOrganizationInvitationResponse = OrganizationsResendOrganizationInvitationResponses[keyof OrganizationsResendOrganizationInvitationResponses];
5733
5689
 
5734
- export type ApiKeysListApiKeysOrgData = {
5735
- body?: never;
5736
- path: {
5737
- orgId: string;
5738
- };
5739
- query?: {
5740
- page?: number | null;
5741
- limit?: number | null;
5742
- };
5743
- url: '/v1/orgs/{orgId}/keys';
5744
- };
5745
-
5746
- export type ApiKeysListApiKeysOrgErrors = {
5747
- /**
5748
- * BadRequestError
5749
- */
5750
- 400: BadRequestError;
5751
- /**
5752
- * UnauthorizedError
5753
- */
5754
- 401: UnauthorizedError;
5755
- /**
5756
- * ForbiddenError
5757
- */
5758
- 403: ForbiddenError;
5759
- /**
5760
- * NotFoundError
5761
- */
5762
- 404: NotFoundError;
5763
- /**
5764
- * ConflictError
5765
- */
5766
- 409: ConflictError;
5767
- /**
5768
- * GoneError
5769
- */
5770
- 410: GoneError;
5771
- /**
5772
- * ContentTooLargeError
5773
- */
5774
- 413: ContentTooLargeError;
5775
- /**
5776
- * MisdirectedRequestError
5777
- */
5778
- 421: MisdirectedRequestError;
5779
- /**
5780
- * UnprocessableEntityError
5781
- */
5782
- 422: UnprocessableEntityError;
5783
- /**
5784
- * TooManyRequestsError
5785
- */
5786
- 429: TooManyRequestsError;
5787
- /**
5788
- * InternalServerError
5789
- */
5790
- 500: InternalServerError;
5791
- /**
5792
- * ServiceUnavailableError
5793
- */
5794
- 503: ServiceUnavailableError;
5795
- };
5796
-
5797
- export type ApiKeysListApiKeysOrgError = ApiKeysListApiKeysOrgErrors[keyof ApiKeysListApiKeysOrgErrors];
5798
-
5799
- export type ApiKeysListApiKeysOrgResponses = {
5800
- /**
5801
- * Success
5802
- */
5803
- 200: {
5804
- code: number;
5805
- data: Array<{
5806
- createdAt: string;
5807
- environment: 'live' | 'test';
5808
- expiresAt: string;
5809
- id: string;
5810
- key: string;
5811
- orgId: string | null;
5812
- projectId: string | null;
5813
- revokedAt: string | null;
5814
- scopes: Array<string>;
5815
- }> | null;
5816
- error: {
5817
- code: string;
5818
- details?: unknown | null;
5819
- message: string;
5820
- rowErrors?: Array<{
5821
- code: string;
5822
- message: string;
5823
- path: Array<string | number>;
5824
- }> | null;
5825
- } | null;
5826
- pagination: {
5827
- limit: number;
5828
- page: number;
5829
- total: number;
5830
- totalPages: number;
5831
- } | null;
5832
- sdkBehavior?: {
5833
- flags: {
5834
- [key: string]: unknown;
5835
- };
5836
- v: number;
5837
- } | null;
5838
- success: boolean;
5839
- };
5840
- };
5841
-
5842
- export type ApiKeysListApiKeysOrgResponse = ApiKeysListApiKeysOrgResponses[keyof ApiKeysListApiKeysOrgResponses];
5843
-
5844
5690
  export type ApiKeysCreateApiKeyOrgData = {
5845
5691
  body: {
5846
5692
  environment: 'live' | 'test';
@@ -7188,6 +7034,7 @@ export type ProjectsCreateProjectByOrgResponses = {
7188
7034
  status: 'active' | 'archived' | 'deleted';
7189
7035
  updatedAt: string;
7190
7036
  workspaceId: string;
7037
+ workspaceSlug: string;
7191
7038
  } | null;
7192
7039
  error: {
7193
7040
  code: string;
@@ -9809,7 +9656,110 @@ export type WorkspacesUpsertWorkspaceMemberData = {
9809
9656
  url: '/v1/orgs/{orgId}/workspaces/{workspaceId}/members/{userId}';
9810
9657
  };
9811
9658
 
9812
- export type WorkspacesUpsertWorkspaceMemberErrors = {
9659
+ export type WorkspacesUpsertWorkspaceMemberErrors = {
9660
+ /**
9661
+ * BadRequestError
9662
+ */
9663
+ 400: BadRequestError;
9664
+ /**
9665
+ * UnauthorizedError
9666
+ */
9667
+ 401: UnauthorizedError;
9668
+ /**
9669
+ * ForbiddenError
9670
+ */
9671
+ 403: ForbiddenError;
9672
+ /**
9673
+ * NotFoundError
9674
+ */
9675
+ 404: NotFoundError;
9676
+ /**
9677
+ * ConflictError
9678
+ */
9679
+ 409: ConflictError;
9680
+ /**
9681
+ * GoneError
9682
+ */
9683
+ 410: GoneError;
9684
+ /**
9685
+ * ContentTooLargeError
9686
+ */
9687
+ 413: ContentTooLargeError;
9688
+ /**
9689
+ * MisdirectedRequestError
9690
+ */
9691
+ 421: MisdirectedRequestError;
9692
+ /**
9693
+ * UnprocessableEntityError
9694
+ */
9695
+ 422: UnprocessableEntityError;
9696
+ /**
9697
+ * TooManyRequestsError
9698
+ */
9699
+ 429: TooManyRequestsError;
9700
+ /**
9701
+ * InternalServerError
9702
+ */
9703
+ 500: InternalServerError;
9704
+ /**
9705
+ * ServiceUnavailableError
9706
+ */
9707
+ 503: ServiceUnavailableError;
9708
+ };
9709
+
9710
+ export type WorkspacesUpsertWorkspaceMemberError = WorkspacesUpsertWorkspaceMemberErrors[keyof WorkspacesUpsertWorkspaceMemberErrors];
9711
+
9712
+ export type WorkspacesUpsertWorkspaceMemberResponses = {
9713
+ /**
9714
+ * Success
9715
+ */
9716
+ 200: {
9717
+ code: number;
9718
+ data: {
9719
+ createdAt: string;
9720
+ updatedAt: string;
9721
+ userId: string;
9722
+ workspaceId: string;
9723
+ workspaceRoleId: string;
9724
+ } | null;
9725
+ error: {
9726
+ code: string;
9727
+ details?: unknown | null;
9728
+ message: string;
9729
+ rowErrors?: Array<{
9730
+ code: string;
9731
+ message: string;
9732
+ path: Array<string | number>;
9733
+ }> | null;
9734
+ } | null;
9735
+ pagination: {
9736
+ limit: number;
9737
+ page: number;
9738
+ total: number;
9739
+ totalPages: number;
9740
+ } | null;
9741
+ sdkBehavior?: {
9742
+ flags: {
9743
+ [key: string]: unknown;
9744
+ };
9745
+ v: number;
9746
+ } | null;
9747
+ success: boolean;
9748
+ };
9749
+ };
9750
+
9751
+ export type WorkspacesUpsertWorkspaceMemberResponse = WorkspacesUpsertWorkspaceMemberResponses[keyof WorkspacesUpsertWorkspaceMemberResponses];
9752
+
9753
+ export type AuthLookupPrincipalsBatchData = {
9754
+ body: {
9755
+ ids: Array<string>;
9756
+ };
9757
+ path?: never;
9758
+ query?: never;
9759
+ url: '/v1/principals/batch';
9760
+ };
9761
+
9762
+ export type AuthLookupPrincipalsBatchErrors = {
9813
9763
  /**
9814
9764
  * BadRequestError
9815
9765
  */
@@ -9860,20 +9810,31 @@ export type WorkspacesUpsertWorkspaceMemberErrors = {
9860
9810
  503: ServiceUnavailableError;
9861
9811
  };
9862
9812
 
9863
- export type WorkspacesUpsertWorkspaceMemberError = WorkspacesUpsertWorkspaceMemberErrors[keyof WorkspacesUpsertWorkspaceMemberErrors];
9813
+ export type AuthLookupPrincipalsBatchError = AuthLookupPrincipalsBatchErrors[keyof AuthLookupPrincipalsBatchErrors];
9864
9814
 
9865
- export type WorkspacesUpsertWorkspaceMemberResponses = {
9815
+ export type AuthLookupPrincipalsBatchResponses = {
9866
9816
  /**
9867
9817
  * Success
9868
9818
  */
9869
9819
  200: {
9870
9820
  code: number;
9871
9821
  data: {
9872
- createdAt: string;
9873
- updatedAt: string;
9874
- userId: string;
9875
- workspaceId: string;
9876
- workspaceRoleId: string;
9822
+ principals: Array<{
9823
+ email: string | null;
9824
+ firstName: string | null;
9825
+ id: string;
9826
+ image: string | null;
9827
+ kind: 'user';
9828
+ lastName: string | null;
9829
+ } | {
9830
+ id: string;
9831
+ kind: 'api_key';
9832
+ label: string;
9833
+ slug: string;
9834
+ } | {
9835
+ id: string;
9836
+ kind: 'unknown';
9837
+ }>;
9877
9838
  } | null;
9878
9839
  error: {
9879
9840
  code: string;
@@ -9901,18 +9862,20 @@ export type WorkspacesUpsertWorkspaceMemberResponses = {
9901
9862
  };
9902
9863
  };
9903
9864
 
9904
- export type WorkspacesUpsertWorkspaceMemberResponse = WorkspacesUpsertWorkspaceMemberResponses[keyof WorkspacesUpsertWorkspaceMemberResponses];
9865
+ export type AuthLookupPrincipalsBatchResponse = AuthLookupPrincipalsBatchResponses[keyof AuthLookupPrincipalsBatchResponses];
9905
9866
 
9906
- export type AuthLookupPrincipalsBatchData = {
9907
- body: {
9908
- ids: Array<string>;
9867
+ export type ProjectsGetProjectByNameData = {
9868
+ body?: never;
9869
+ path: {
9870
+ organization: string;
9871
+ workspace: string;
9872
+ project: string;
9909
9873
  };
9910
- path?: never;
9911
9874
  query?: never;
9912
- url: '/v1/principals/batch';
9875
+ url: '/v1/projects/by-name/{organization}/{workspace}/{project}';
9913
9876
  };
9914
9877
 
9915
- export type AuthLookupPrincipalsBatchErrors = {
9878
+ export type ProjectsGetProjectByNameErrors = {
9916
9879
  /**
9917
9880
  * BadRequestError
9918
9881
  */
@@ -9963,32 +9926,15 @@ export type AuthLookupPrincipalsBatchErrors = {
9963
9926
  503: ServiceUnavailableError;
9964
9927
  };
9965
9928
 
9966
- export type AuthLookupPrincipalsBatchError = AuthLookupPrincipalsBatchErrors[keyof AuthLookupPrincipalsBatchErrors];
9929
+ export type ProjectsGetProjectByNameError = ProjectsGetProjectByNameErrors[keyof ProjectsGetProjectByNameErrors];
9967
9930
 
9968
- export type AuthLookupPrincipalsBatchResponses = {
9931
+ export type ProjectsGetProjectByNameResponses = {
9969
9932
  /**
9970
9933
  * Success
9971
9934
  */
9972
9935
  200: {
9973
9936
  code: number;
9974
- data: {
9975
- principals: Array<{
9976
- email: string | null;
9977
- firstName: string | null;
9978
- id: string;
9979
- image: string | null;
9980
- kind: 'user';
9981
- lastName: string | null;
9982
- } | {
9983
- id: string;
9984
- kind: 'api_key';
9985
- label: string;
9986
- slug: string;
9987
- } | {
9988
- id: string;
9989
- kind: 'unknown';
9990
- }>;
9991
- } | null;
9937
+ data: ResolvedProjectName | null;
9992
9938
  error: {
9993
9939
  code: string;
9994
9940
  details?: unknown | null;
@@ -10015,7 +9961,7 @@ export type AuthLookupPrincipalsBatchResponses = {
10015
9961
  };
10016
9962
  };
10017
9963
 
10018
- export type AuthLookupPrincipalsBatchResponse = AuthLookupPrincipalsBatchResponses[keyof AuthLookupPrincipalsBatchResponses];
9964
+ export type ProjectsGetProjectByNameResponse = ProjectsGetProjectByNameResponses[keyof ProjectsGetProjectByNameResponses];
10019
9965
 
10020
9966
  export type ProjectsDeleteProjectData = {
10021
9967
  body?: never;
@@ -10095,6 +10041,7 @@ export type ProjectsDeleteProjectResponses = {
10095
10041
  status: 'active' | 'archived' | 'deleted';
10096
10042
  updatedAt: string;
10097
10043
  workspaceId: string;
10044
+ workspaceSlug: string;
10098
10045
  } | null;
10099
10046
  error: {
10100
10047
  code: string;
@@ -10202,6 +10149,7 @@ export type ProjectsGetProjectResponses = {
10202
10149
  status: 'active' | 'archived' | 'deleted';
10203
10150
  updatedAt: string;
10204
10151
  workspaceId: string;
10152
+ workspaceSlug: string;
10205
10153
  } | null;
10206
10154
  error: {
10207
10155
  code: string;
@@ -10313,6 +10261,7 @@ export type ProjectsUpdateProjectResponses = {
10313
10261
  status: 'active' | 'archived' | 'deleted';
10314
10262
  updatedAt: string;
10315
10263
  workspaceId: string;
10264
+ workspaceSlug: string;
10316
10265
  } | null;
10317
10266
  error: {
10318
10267
  code: string;
@@ -14593,6 +14542,7 @@ export type PromptsListPromptsData = {
14593
14542
  search?: string | null;
14594
14543
  sortDir?: 'asc' | 'desc' | null;
14595
14544
  status?: string | null;
14545
+ kind?: string | null;
14596
14546
  sortBy?: 'createdAt' | 'updatedAt' | 'name' | 'status' | 'latestVersion' | 'environments' | null;
14597
14547
  tags?: string | null;
14598
14548
  environment?: string | null;
@@ -14664,6 +14614,7 @@ export type PromptsListPromptsResponses = {
14664
14614
  createdByUserId: string;
14665
14615
  description: string | null;
14666
14616
  id: string;
14617
+ kind: 'chat' | 'skill';
14667
14618
  labels: Array<{
14668
14619
  label: string;
14669
14620
  version: number | null;
@@ -14716,6 +14667,7 @@ export type PromptsListPromptsResponse = PromptsListPromptsResponses[keyof Promp
14716
14667
  export type PromptsCreatePromptData = {
14717
14668
  body: {
14718
14669
  description?: string | null;
14670
+ kind?: 'chat' | 'skill' | null;
14719
14671
  name: string;
14720
14672
  slug: string;
14721
14673
  tags?: Array<string> | null;
@@ -15003,7 +14955,7 @@ export type PromptsRenderPromptResponses = {
15003
14955
  */
15004
14956
  200: {
15005
14957
  code: number;
15006
- data: ResolvedPrompt | null;
14958
+ data: ResolvedPrompt | RenderedSkill | null;
15007
14959
  error: {
15008
14960
  code: string;
15009
14961
  details?: unknown | null;
@@ -15032,12 +14984,117 @@ export type PromptsRenderPromptResponses = {
15032
14984
 
15033
14985
  export type PromptsRenderPromptResponse = PromptsRenderPromptResponses[keyof PromptsRenderPromptResponses];
15034
14986
 
14987
+ export type PromptsRenderSkillVersionData = {
14988
+ body: {
14989
+ variables?: {
14990
+ [key: string]: unknown;
14991
+ } | null;
14992
+ };
14993
+ path: {
14994
+ projectId: string;
14995
+ slug: string;
14996
+ versionNumber: string;
14997
+ };
14998
+ query?: never;
14999
+ url: '/v1/projects/{projectId}/prompts/by-slug/{slug}/versions/{versionNumber}/render';
15000
+ };
15001
+
15002
+ export type PromptsRenderSkillVersionErrors = {
15003
+ /**
15004
+ * BadRequestError
15005
+ */
15006
+ 400: BadRequestError;
15007
+ /**
15008
+ * UnauthorizedError
15009
+ */
15010
+ 401: UnauthorizedError;
15011
+ /**
15012
+ * ForbiddenError
15013
+ */
15014
+ 403: ForbiddenError;
15015
+ /**
15016
+ * NotFoundError
15017
+ */
15018
+ 404: NotFoundError;
15019
+ /**
15020
+ * ConflictError
15021
+ */
15022
+ 409: ConflictError;
15023
+ /**
15024
+ * GoneError
15025
+ */
15026
+ 410: GoneError;
15027
+ /**
15028
+ * ContentTooLargeError
15029
+ */
15030
+ 413: ContentTooLargeError;
15031
+ /**
15032
+ * MisdirectedRequestError
15033
+ */
15034
+ 421: MisdirectedRequestError;
15035
+ /**
15036
+ * UnprocessableEntityError
15037
+ */
15038
+ 422: UnprocessableEntityError;
15039
+ /**
15040
+ * TooManyRequestsError
15041
+ */
15042
+ 429: TooManyRequestsError;
15043
+ /**
15044
+ * InternalServerError
15045
+ */
15046
+ 500: InternalServerError;
15047
+ /**
15048
+ * ServiceUnavailableError
15049
+ */
15050
+ 503: ServiceUnavailableError;
15051
+ };
15052
+
15053
+ export type PromptsRenderSkillVersionError = PromptsRenderSkillVersionErrors[keyof PromptsRenderSkillVersionErrors];
15054
+
15055
+ export type PromptsRenderSkillVersionResponses = {
15056
+ /**
15057
+ * Success
15058
+ */
15059
+ 200: {
15060
+ code: number;
15061
+ data: RenderedSkillVersion | null;
15062
+ error: {
15063
+ code: string;
15064
+ details?: unknown | null;
15065
+ message: string;
15066
+ rowErrors?: Array<{
15067
+ code: string;
15068
+ message: string;
15069
+ path: Array<string | number>;
15070
+ }> | null;
15071
+ } | null;
15072
+ pagination: {
15073
+ limit: number;
15074
+ page: number;
15075
+ total: number;
15076
+ totalPages: number;
15077
+ } | null;
15078
+ sdkBehavior?: {
15079
+ flags: {
15080
+ [key: string]: unknown;
15081
+ };
15082
+ v: number;
15083
+ } | null;
15084
+ success: boolean;
15085
+ };
15086
+ };
15087
+
15088
+ export type PromptsRenderSkillVersionResponse = PromptsRenderSkillVersionResponses[keyof PromptsRenderSkillVersionResponses];
15089
+
15035
15090
  export type PromptsGetPromptDirectorySummaryData = {
15036
15091
  body?: never;
15037
15092
  path: {
15038
15093
  projectId: string;
15039
15094
  };
15040
- query?: never;
15095
+ query?: {
15096
+ kind?: string | null;
15097
+ };
15041
15098
  url: '/v1/projects/{projectId}/prompts/summary';
15042
15099
  };
15043
15100
 
@@ -15347,6 +15404,7 @@ export type PromptsUpdatePromptData = {
15347
15404
  body: {
15348
15405
  description?: string | null | null;
15349
15406
  name?: string | null;
15407
+ slug?: string | null;
15350
15408
  status?: 'active' | 'archived' | null;
15351
15409
  tags?: Array<string> | null;
15352
15410
  };
@@ -15446,6 +15504,104 @@ export type PromptsUpdatePromptResponses = {
15446
15504
 
15447
15505
  export type PromptsUpdatePromptResponse = PromptsUpdatePromptResponses[keyof PromptsUpdatePromptResponses];
15448
15506
 
15507
+ export type PromptsImportPromptVersionData = {
15508
+ body: ImportPromptVersionInput;
15509
+ path: {
15510
+ projectId: string;
15511
+ promptId: string;
15512
+ };
15513
+ query?: never;
15514
+ url: '/v1/projects/{projectId}/prompts/{promptId}/imports';
15515
+ };
15516
+
15517
+ export type PromptsImportPromptVersionErrors = {
15518
+ /**
15519
+ * BadRequestError
15520
+ */
15521
+ 400: BadRequestError;
15522
+ /**
15523
+ * UnauthorizedError
15524
+ */
15525
+ 401: UnauthorizedError;
15526
+ /**
15527
+ * ForbiddenError
15528
+ */
15529
+ 403: ForbiddenError;
15530
+ /**
15531
+ * NotFoundError
15532
+ */
15533
+ 404: NotFoundError;
15534
+ /**
15535
+ * ConflictError
15536
+ */
15537
+ 409: ConflictError;
15538
+ /**
15539
+ * GoneError
15540
+ */
15541
+ 410: GoneError;
15542
+ /**
15543
+ * ContentTooLargeError
15544
+ */
15545
+ 413: ContentTooLargeError;
15546
+ /**
15547
+ * MisdirectedRequestError
15548
+ */
15549
+ 421: MisdirectedRequestError;
15550
+ /**
15551
+ * UnprocessableEntityError
15552
+ */
15553
+ 422: UnprocessableEntityError;
15554
+ /**
15555
+ * TooManyRequestsError
15556
+ */
15557
+ 429: TooManyRequestsError;
15558
+ /**
15559
+ * InternalServerError
15560
+ */
15561
+ 500: InternalServerError;
15562
+ /**
15563
+ * ServiceUnavailableError
15564
+ */
15565
+ 503: ServiceUnavailableError;
15566
+ };
15567
+
15568
+ export type PromptsImportPromptVersionError = PromptsImportPromptVersionErrors[keyof PromptsImportPromptVersionErrors];
15569
+
15570
+ export type PromptsImportPromptVersionResponses = {
15571
+ /**
15572
+ * Success
15573
+ */
15574
+ 201: {
15575
+ code: number;
15576
+ data: PromptVersion | null;
15577
+ error: {
15578
+ code: string;
15579
+ details?: unknown | null;
15580
+ message: string;
15581
+ rowErrors?: Array<{
15582
+ code: string;
15583
+ message: string;
15584
+ path: Array<string | number>;
15585
+ }> | null;
15586
+ } | null;
15587
+ pagination: {
15588
+ limit: number;
15589
+ page: number;
15590
+ total: number;
15591
+ totalPages: number;
15592
+ } | null;
15593
+ sdkBehavior?: {
15594
+ flags: {
15595
+ [key: string]: unknown;
15596
+ };
15597
+ v: number;
15598
+ } | null;
15599
+ success: boolean;
15600
+ };
15601
+ };
15602
+
15603
+ export type PromptsImportPromptVersionResponse = PromptsImportPromptVersionResponses[keyof PromptsImportPromptVersionResponses];
15604
+
15449
15605
  export type PromptsListPromptLabelEventsByPromptData = {
15450
15606
  body?: never;
15451
15607
  path: {
@@ -16200,7 +16356,7 @@ export type PromptsCreatePromptVersionData = {
16200
16356
  allowBlockRemovals?: Array<string> | null;
16201
16357
  baseVersionId?: string | null;
16202
16358
  changelog?: string | null;
16203
- format: 'text' | 'chat';
16359
+ format: 'text' | 'chat' | 'skill';
16204
16360
  modelConfig?: unknown | null;
16205
16361
  templateJson: unknown;
16206
16362
  variablesSchema?: unknown | null;
@@ -16458,7 +16614,7 @@ export type PromptsGetPromptVersionDiffResponses = {
16458
16614
  op: 'reorder';
16459
16615
  toIndex: number;
16460
16616
  }>;
16461
- } | null;
16617
+ } | SkillVersionDiff | null;
16462
16618
  error: {
16463
16619
  code: string;
16464
16620
  details?: unknown | null;
@@ -19452,6 +19608,7 @@ export type RoutingProvidersCreateRoutingProviderResponse = RoutingProvidersCrea
19452
19608
 
19453
19609
  export type RoutingProvidersConnectRoutingProviderData = {
19454
19610
  body: {
19611
+ blockedModels?: Array<string> | null;
19455
19612
  credential: {
19456
19613
  apiKey: string;
19457
19614
  label?: string | null;
@@ -19481,6 +19638,7 @@ export type RoutingProvidersConnectRoutingProviderData = {
19481
19638
  credentialId: string;
19482
19639
  type: 'existing';
19483
19640
  };
19641
+ modelPolicy?: 'allowlist' | 'denylist' | null;
19484
19642
  models: Array<string>;
19485
19643
  provider: {
19486
19644
  apiVersion?: string | null;
@@ -21456,7 +21614,9 @@ export type ProviderConfigDraftsUpdateProviderDraftData = {
21456
21614
  body: {
21457
21615
  configSnapshotPatch: {
21458
21616
  baseUrl?: string | null | null;
21617
+ blockedModels?: Array<string> | null | null;
21459
21618
  customModelIds?: Array<string> | null | null;
21619
+ modelPolicy?: 'allowlist' | 'denylist' | null | null;
21460
21620
  models?: Array<string> | null | null;
21461
21621
  passthroughMode?: 'managed_precedence' | 'caller_precedence' | 'disabled' | null | null;
21462
21622
  providerRegion?: string | null | null;
@@ -26831,6 +26991,7 @@ export type ProjectsListProjectsResponses = {
26831
26991
  status: 'active' | 'archived' | 'deleted';
26832
26992
  updatedAt: string;
26833
26993
  workspaceId: string;
26994
+ workspaceSlug: string;
26834
26995
  }> | null;
26835
26996
  error: {
26836
26997
  code: string;
@@ -26942,6 +27103,7 @@ export type ProjectsCreateProjectResponses = {
26942
27103
  status: 'active' | 'archived' | 'deleted';
26943
27104
  updatedAt: string;
26944
27105
  workspaceId: string;
27106
+ workspaceSlug: string;
26945
27107
  } | null;
26946
27108
  error: {
26947
27109
  code: string;