@to11ai/sdk 2.1.0-rc.4 → 3.0.0-rc.5

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.
@@ -6,7 +6,6 @@ export type ClientOptions = {
6
6
 
7
7
  export type ArchiveProjectEnvironmentResult = {
8
8
  environment: ProjectEnvironment;
9
- livePointerCounts: LivePointerCounts;
10
9
  };
11
10
 
12
11
  export type BadRequestError = {
@@ -117,12 +116,6 @@ export type InternalServerError = {
117
116
  success: false;
118
117
  };
119
118
 
120
- export type LivePointerCounts = {
121
- prompts: number;
122
- providers: number;
123
- rules: number;
124
- };
125
-
126
119
  export type MisdirectedRequestError = {
127
120
  _tag: 'MisdirectedRequestError';
128
121
  code: number;
@@ -212,29 +205,6 @@ export type ProjectEnvironment = {
212
205
  updatedBy: string;
213
206
  };
214
207
 
215
- export type ProjectPromptLabel = {
216
- archivedAt: string | null;
217
- createdAt: string;
218
- createdByUserId: string;
219
- description: string | null;
220
- displayColor: 'accent' | 'red' | 'orange' | 'amber' | 'green' | 'teal' | 'blue' | 'indigo' | 'purple' | 'pink';
221
- isDefault: boolean;
222
- isSystem: boolean;
223
- label: string;
224
- projectId: string;
225
- updatedAt: string;
226
- };
227
-
228
- export type ProjectPromptLabelUsage = {
229
- promptId: string;
230
- promptName: string;
231
- promptSlug: string;
232
- updatedAt: string;
233
- updatedByUserId: string;
234
- version: number;
235
- versionId: string;
236
- };
237
-
238
208
  export type Prompt = {
239
209
  createdAt: string;
240
210
  createdByUserId: string;
@@ -249,21 +219,9 @@ export type Prompt = {
249
219
  updatedAt: string;
250
220
  };
251
221
 
252
- export type PromptLabelEvent = {
253
- fromVersionId: string | null;
254
- id: string;
255
- label: string;
256
- movedAt: string;
257
- movedByUserId: string;
258
- promptId: string;
259
- reason: string | null;
260
- toVersionId: string;
261
- };
262
-
263
222
  export type PromptLabelPointer = {
264
223
  label: string;
265
224
  promptId: string;
266
- reason: string;
267
225
  updatedAt: string;
268
226
  updatedByDisplayName: string | null;
269
227
  updatedByUserId: string;
@@ -306,9 +264,6 @@ export type RenderedSkill = {
306
264
  format: 'skill';
307
265
  label: string;
308
266
  promptId: string;
309
- releaseId?: string | null;
310
- releasedAt?: string | null;
311
- releasedByDisplayName?: string | null | null;
312
267
  version: number;
313
268
  versionId: string;
314
269
  };
@@ -359,7 +314,6 @@ export type ResolvedPrompt = {
359
314
  label: string;
360
315
  modelConfig?: unknown | null;
361
316
  promptId: string;
362
- releaseId?: string | null;
363
317
  rendered: RenderedPrompt;
364
318
  toolChoice?: 'auto' | 'none' | 'required' | {
365
319
  name: string;
@@ -12256,118 +12210,6 @@ export type ApiKeysRevokeApiKeyProjectResponses = {
12256
12210
 
12257
12211
  export type ApiKeysRevokeApiKeyProjectResponse = ApiKeysRevokeApiKeyProjectResponses[keyof ApiKeysRevokeApiKeyProjectResponses];
12258
12212
 
12259
- export type PromptsListPromptLabelEventsByProjectData = {
12260
- body?: never;
12261
- path: {
12262
- projectId: string;
12263
- };
12264
- query?: {
12265
- page?: string | null;
12266
- limit?: string | null;
12267
- label?: string | null;
12268
- promptId?: string | null;
12269
- since?: string | null;
12270
- until?: string | null;
12271
- };
12272
- url: '/v1/projects/{projectId}/label-events';
12273
- };
12274
-
12275
- export type PromptsListPromptLabelEventsByProjectErrors = {
12276
- /**
12277
- * BadRequestError
12278
- */
12279
- 400: BadRequestError;
12280
- /**
12281
- * UnauthorizedError
12282
- */
12283
- 401: UnauthorizedError;
12284
- /**
12285
- * ForbiddenError
12286
- */
12287
- 403: ForbiddenError;
12288
- /**
12289
- * NotFoundError
12290
- */
12291
- 404: NotFoundError;
12292
- /**
12293
- * ConflictError
12294
- */
12295
- 409: ConflictError;
12296
- /**
12297
- * GoneError
12298
- */
12299
- 410: GoneError;
12300
- /**
12301
- * ContentTooLargeError
12302
- */
12303
- 413: ContentTooLargeError;
12304
- /**
12305
- * MisdirectedRequestError
12306
- */
12307
- 421: MisdirectedRequestError;
12308
- /**
12309
- * UnprocessableEntityError
12310
- */
12311
- 422: UnprocessableEntityError;
12312
- /**
12313
- * TooManyRequestsError
12314
- */
12315
- 429: TooManyRequestsError;
12316
- /**
12317
- * InternalServerError
12318
- */
12319
- 500: InternalServerError;
12320
- /**
12321
- * ServiceUnavailableError
12322
- */
12323
- 503: ServiceUnavailableError;
12324
- };
12325
-
12326
- export type PromptsListPromptLabelEventsByProjectError = PromptsListPromptLabelEventsByProjectErrors[keyof PromptsListPromptLabelEventsByProjectErrors];
12327
-
12328
- export type PromptsListPromptLabelEventsByProjectResponses = {
12329
- /**
12330
- * Success
12331
- */
12332
- 200: {
12333
- code: number;
12334
- data: {
12335
- items: Array<PromptLabelEvent>;
12336
- pagination: {
12337
- limit: number;
12338
- page: number;
12339
- total: number;
12340
- totalPages: number;
12341
- };
12342
- } | null;
12343
- error: {
12344
- code: string;
12345
- details?: unknown | null;
12346
- message: string;
12347
- rowErrors?: Array<{
12348
- code: string;
12349
- message: string;
12350
- path: Array<string | number>;
12351
- }> | null;
12352
- } | null;
12353
- pagination: {
12354
- limit: number;
12355
- page: number;
12356
- total: number;
12357
- totalPages: number;
12358
- } | null;
12359
- sdkBehavior?: {
12360
- flags: {
12361
- [key: string]: unknown;
12362
- };
12363
- v: number;
12364
- } | null;
12365
- success: boolean;
12366
- };
12367
- };
12368
-
12369
- export type PromptsListPromptLabelEventsByProjectResponse = PromptsListPromptLabelEventsByProjectResponses[keyof PromptsListPromptLabelEventsByProjectResponses];
12370
-
12371
12213
  export type CostRatesListProjectCostRatesData = {
12372
12214
  body?: never;
12373
12215
  path: {
@@ -13659,20 +13501,25 @@ export type ProjectOverviewGetProjectOverviewResponses = {
13659
13501
 
13660
13502
  export type ProjectOverviewGetProjectOverviewResponse = ProjectOverviewGetProjectOverviewResponses[keyof ProjectOverviewGetProjectOverviewResponses];
13661
13503
 
13662
- export type PromptsListProjectLabelsData = {
13504
+ export type PromptsListPromptsData = {
13663
13505
  body?: never;
13664
13506
  path: {
13665
13507
  projectId: string;
13666
13508
  };
13667
13509
  query?: {
13668
- includeArchived?: 'true' | 'false' | null;
13669
13510
  page?: number | null;
13670
13511
  limit?: number | null;
13512
+ search?: string | null;
13513
+ sortDir?: 'asc' | 'desc' | null;
13514
+ status?: string | null;
13515
+ kind?: string | null;
13516
+ sortBy?: 'createdAt' | 'updatedAt' | 'name' | 'status' | 'latestVersion' | null;
13517
+ tags?: string | null;
13671
13518
  };
13672
- url: '/v1/projects/{projectId}/prompt-labels';
13519
+ url: '/v1/projects/{projectId}/prompts';
13673
13520
  };
13674
13521
 
13675
- export type PromptsListProjectLabelsErrors = {
13522
+ export type PromptsListPromptsErrors = {
13676
13523
  /**
13677
13524
  * BadRequestError
13678
13525
  */
@@ -13723,15 +13570,37 @@ export type PromptsListProjectLabelsErrors = {
13723
13570
  503: ServiceUnavailableError;
13724
13571
  };
13725
13572
 
13726
- export type PromptsListProjectLabelsError = PromptsListProjectLabelsErrors[keyof PromptsListProjectLabelsErrors];
13573
+ export type PromptsListPromptsError = PromptsListPromptsErrors[keyof PromptsListPromptsErrors];
13727
13574
 
13728
- export type PromptsListProjectLabelsResponses = {
13575
+ export type PromptsListPromptsResponses = {
13729
13576
  /**
13730
13577
  * Success
13731
13578
  */
13732
13579
  200: {
13733
13580
  code: number;
13734
- data: Array<ProjectPromptLabel> | null;
13581
+ data: Array<{
13582
+ createdAt: string;
13583
+ createdByUserId: string;
13584
+ description: string | null;
13585
+ id: string;
13586
+ kind: 'chat' | 'skill';
13587
+ labels: Array<{
13588
+ label: string;
13589
+ version: number | null;
13590
+ }>;
13591
+ lastModifiedAt: string;
13592
+ lastModifiedByDisplayName: string | null;
13593
+ lastModifiedByImage: string | null;
13594
+ lastModifiedByType: 'user' | 'api_key' | 'unknown' | null;
13595
+ lastModifiedByUserId: string | null;
13596
+ latestVersion: number | null;
13597
+ name: string;
13598
+ projectId: string;
13599
+ slug: string;
13600
+ status: 'active' | 'archived';
13601
+ tags: Array<string>;
13602
+ updatedAt: string;
13603
+ }> | null;
13735
13604
  error: {
13736
13605
  code: string;
13737
13606
  details?: unknown | null;
@@ -13758,23 +13627,24 @@ export type PromptsListProjectLabelsResponses = {
13758
13627
  };
13759
13628
  };
13760
13629
 
13761
- export type PromptsListProjectLabelsResponse = PromptsListProjectLabelsResponses[keyof PromptsListProjectLabelsResponses];
13630
+ export type PromptsListPromptsResponse = PromptsListPromptsResponses[keyof PromptsListPromptsResponses];
13762
13631
 
13763
- export type PromptsCreateProjectLabelData = {
13632
+ export type PromptsCreatePromptData = {
13764
13633
  body: {
13765
13634
  description?: string | null;
13766
- displayColor?: 'accent' | 'red' | 'orange' | 'amber' | 'green' | 'teal' | 'blue' | 'indigo' | 'purple' | 'pink' | null;
13767
- isDefault?: boolean | null;
13768
- label: string;
13635
+ kind?: 'chat' | 'skill' | null;
13636
+ name: string;
13637
+ slug: string;
13638
+ tags?: Array<string> | null;
13769
13639
  };
13770
13640
  path: {
13771
13641
  projectId: string;
13772
13642
  };
13773
13643
  query?: never;
13774
- url: '/v1/projects/{projectId}/prompt-labels';
13644
+ url: '/v1/projects/{projectId}/prompts';
13775
13645
  };
13776
13646
 
13777
- export type PromptsCreateProjectLabelErrors = {
13647
+ export type PromptsCreatePromptErrors = {
13778
13648
  /**
13779
13649
  * BadRequestError
13780
13650
  */
@@ -13825,15 +13695,15 @@ export type PromptsCreateProjectLabelErrors = {
13825
13695
  503: ServiceUnavailableError;
13826
13696
  };
13827
13697
 
13828
- export type PromptsCreateProjectLabelError = PromptsCreateProjectLabelErrors[keyof PromptsCreateProjectLabelErrors];
13698
+ export type PromptsCreatePromptError = PromptsCreatePromptErrors[keyof PromptsCreatePromptErrors];
13829
13699
 
13830
- export type PromptsCreateProjectLabelResponses = {
13700
+ export type PromptsCreatePromptResponses = {
13831
13701
  /**
13832
13702
  * Success
13833
13703
  */
13834
13704
  201: {
13835
13705
  code: number;
13836
- data: ProjectPromptLabel | null;
13706
+ data: Prompt | null;
13837
13707
  error: {
13838
13708
  code: string;
13839
13709
  details?: unknown | null;
@@ -13860,19 +13730,21 @@ export type PromptsCreateProjectLabelResponses = {
13860
13730
  };
13861
13731
  };
13862
13732
 
13863
- export type PromptsCreateProjectLabelResponse = PromptsCreateProjectLabelResponses[keyof PromptsCreateProjectLabelResponses];
13733
+ export type PromptsCreatePromptResponse = PromptsCreatePromptResponses[keyof PromptsCreatePromptResponses];
13864
13734
 
13865
- export type PromptsArchiveProjectLabelData = {
13866
- body?: never;
13735
+ export type PromptsBulkPromptsData = {
13736
+ body: {
13737
+ action: 'archive' | 'restore';
13738
+ promptIds: Array<string>;
13739
+ };
13867
13740
  path: {
13868
13741
  projectId: string;
13869
- label: string;
13870
13742
  };
13871
13743
  query?: never;
13872
- url: '/v1/projects/{projectId}/prompt-labels/{label}';
13744
+ url: '/v1/projects/{projectId}/prompts/bulk';
13873
13745
  };
13874
13746
 
13875
- export type PromptsArchiveProjectLabelErrors = {
13747
+ export type PromptsBulkPromptsErrors = {
13876
13748
  /**
13877
13749
  * BadRequestError
13878
13750
  */
@@ -13923,15 +13795,29 @@ export type PromptsArchiveProjectLabelErrors = {
13923
13795
  503: ServiceUnavailableError;
13924
13796
  };
13925
13797
 
13926
- export type PromptsArchiveProjectLabelError = PromptsArchiveProjectLabelErrors[keyof PromptsArchiveProjectLabelErrors];
13798
+ export type PromptsBulkPromptsError = PromptsBulkPromptsErrors[keyof PromptsBulkPromptsErrors];
13927
13799
 
13928
- export type PromptsArchiveProjectLabelResponses = {
13800
+ export type PromptsBulkPromptsResponses = {
13929
13801
  /**
13930
13802
  * Success
13931
13803
  */
13932
13804
  200: {
13933
13805
  code: number;
13934
- data: ProjectPromptLabel | null;
13806
+ data: {
13807
+ results: Array<{
13808
+ error?: {
13809
+ code: string;
13810
+ } | null;
13811
+ ok: boolean;
13812
+ prompt?: Prompt | null;
13813
+ promptId: string;
13814
+ }>;
13815
+ summary: {
13816
+ failed: number;
13817
+ succeeded: number;
13818
+ total: number;
13819
+ };
13820
+ } | null;
13935
13821
  error: {
13936
13822
  code: string;
13937
13823
  details?: unknown | null;
@@ -13958,19 +13844,24 @@ export type PromptsArchiveProjectLabelResponses = {
13958
13844
  };
13959
13845
  };
13960
13846
 
13961
- export type PromptsArchiveProjectLabelResponse = PromptsArchiveProjectLabelResponses[keyof PromptsArchiveProjectLabelResponses];
13847
+ export type PromptsBulkPromptsResponse = PromptsBulkPromptsResponses[keyof PromptsBulkPromptsResponses];
13962
13848
 
13963
- export type PromptsGetProjectLabelData = {
13964
- body?: never;
13849
+ export type PromptsRenderPromptData = {
13850
+ body: {
13851
+ variables?: {
13852
+ [key: string]: unknown;
13853
+ } | null;
13854
+ };
13965
13855
  path: {
13966
13856
  projectId: string;
13857
+ slug: string;
13967
13858
  label: string;
13968
13859
  };
13969
13860
  query?: never;
13970
- url: '/v1/projects/{projectId}/prompt-labels/{label}';
13861
+ url: '/v1/projects/{projectId}/prompts/by-slug/{slug}/labels/{label}/render';
13971
13862
  };
13972
13863
 
13973
- export type PromptsGetProjectLabelErrors = {
13864
+ export type PromptsRenderPromptErrors = {
13974
13865
  /**
13975
13866
  * BadRequestError
13976
13867
  */
@@ -14021,15 +13912,15 @@ export type PromptsGetProjectLabelErrors = {
14021
13912
  503: ServiceUnavailableError;
14022
13913
  };
14023
13914
 
14024
- export type PromptsGetProjectLabelError = PromptsGetProjectLabelErrors[keyof PromptsGetProjectLabelErrors];
13915
+ export type PromptsRenderPromptError = PromptsRenderPromptErrors[keyof PromptsRenderPromptErrors];
14025
13916
 
14026
- export type PromptsGetProjectLabelResponses = {
13917
+ export type PromptsRenderPromptResponses = {
14027
13918
  /**
14028
13919
  * Success
14029
13920
  */
14030
13921
  200: {
14031
13922
  code: number;
14032
- data: ProjectPromptLabel | null;
13923
+ data: ResolvedPrompt | RenderedSkill | null;
14033
13924
  error: {
14034
13925
  code: string;
14035
13926
  details?: unknown | null;
@@ -14056,23 +13947,24 @@ export type PromptsGetProjectLabelResponses = {
14056
13947
  };
14057
13948
  };
14058
13949
 
14059
- export type PromptsGetProjectLabelResponse = PromptsGetProjectLabelResponses[keyof PromptsGetProjectLabelResponses];
13950
+ export type PromptsRenderPromptResponse = PromptsRenderPromptResponses[keyof PromptsRenderPromptResponses];
14060
13951
 
14061
- export type PromptsUpdateProjectLabelData = {
13952
+ export type PromptsRenderSkillVersionData = {
14062
13953
  body: {
14063
- description?: string | null | null;
14064
- displayColor?: 'accent' | 'red' | 'orange' | 'amber' | 'green' | 'teal' | 'blue' | 'indigo' | 'purple' | 'pink' | null;
14065
- isDefault?: boolean | null;
13954
+ variables?: {
13955
+ [key: string]: unknown;
13956
+ } | null;
14066
13957
  };
14067
13958
  path: {
14068
13959
  projectId: string;
14069
- label: string;
13960
+ slug: string;
13961
+ versionNumber: string;
14070
13962
  };
14071
13963
  query?: never;
14072
- url: '/v1/projects/{projectId}/prompt-labels/{label}';
13964
+ url: '/v1/projects/{projectId}/prompts/by-slug/{slug}/versions/{versionNumber}/render';
14073
13965
  };
14074
13966
 
14075
- export type PromptsUpdateProjectLabelErrors = {
13967
+ export type PromptsRenderSkillVersionErrors = {
14076
13968
  /**
14077
13969
  * BadRequestError
14078
13970
  */
@@ -14123,15 +14015,15 @@ export type PromptsUpdateProjectLabelErrors = {
14123
14015
  503: ServiceUnavailableError;
14124
14016
  };
14125
14017
 
14126
- export type PromptsUpdateProjectLabelError = PromptsUpdateProjectLabelErrors[keyof PromptsUpdateProjectLabelErrors];
14018
+ export type PromptsRenderSkillVersionError = PromptsRenderSkillVersionErrors[keyof PromptsRenderSkillVersionErrors];
14127
14019
 
14128
- export type PromptsUpdateProjectLabelResponses = {
14020
+ export type PromptsRenderSkillVersionResponses = {
14129
14021
  /**
14130
14022
  * Success
14131
14023
  */
14132
14024
  200: {
14133
14025
  code: number;
14134
- data: ProjectPromptLabel | null;
14026
+ data: RenderedSkillVersion | null;
14135
14027
  error: {
14136
14028
  code: string;
14137
14029
  details?: unknown | null;
@@ -14158,22 +14050,20 @@ export type PromptsUpdateProjectLabelResponses = {
14158
14050
  };
14159
14051
  };
14160
14052
 
14161
- export type PromptsUpdateProjectLabelResponse = PromptsUpdateProjectLabelResponses[keyof PromptsUpdateProjectLabelResponses];
14053
+ export type PromptsRenderSkillVersionResponse = PromptsRenderSkillVersionResponses[keyof PromptsRenderSkillVersionResponses];
14162
14054
 
14163
- export type PromptsListProjectLabelUsagesData = {
14055
+ export type PromptsGetPromptDirectorySummaryData = {
14164
14056
  body?: never;
14165
14057
  path: {
14166
14058
  projectId: string;
14167
- label: string;
14168
14059
  };
14169
14060
  query?: {
14170
- page?: number | null;
14171
- limit?: number | null;
14061
+ kind?: string | null;
14172
14062
  };
14173
- url: '/v1/projects/{projectId}/prompt-labels/{label}/usages';
14063
+ url: '/v1/projects/{projectId}/prompts/summary';
14174
14064
  };
14175
14065
 
14176
- export type PromptsListProjectLabelUsagesErrors = {
14066
+ export type PromptsGetPromptDirectorySummaryErrors = {
14177
14067
  /**
14178
14068
  * BadRequestError
14179
14069
  */
@@ -14224,15 +14114,25 @@ export type PromptsListProjectLabelUsagesErrors = {
14224
14114
  503: ServiceUnavailableError;
14225
14115
  };
14226
14116
 
14227
- export type PromptsListProjectLabelUsagesError = PromptsListProjectLabelUsagesErrors[keyof PromptsListProjectLabelUsagesErrors];
14117
+ export type PromptsGetPromptDirectorySummaryError = PromptsGetPromptDirectorySummaryErrors[keyof PromptsGetPromptDirectorySummaryErrors];
14228
14118
 
14229
- export type PromptsListProjectLabelUsagesResponses = {
14119
+ export type PromptsGetPromptDirectorySummaryResponses = {
14230
14120
  /**
14231
14121
  * Success
14232
14122
  */
14233
14123
  200: {
14234
14124
  code: number;
14235
- data: Array<ProjectPromptLabelUsage> | null;
14125
+ data: {
14126
+ fetches24h: {
14127
+ count: number;
14128
+ deltaPctVsPrev: number;
14129
+ } | null;
14130
+ prompts: {
14131
+ archived: number;
14132
+ published: number;
14133
+ total: number;
14134
+ };
14135
+ } | null;
14236
14136
  error: {
14237
14137
  code: string;
14238
14138
  details?: unknown | null;
@@ -14259,894 +14159,19 @@ export type PromptsListProjectLabelUsagesResponses = {
14259
14159
  };
14260
14160
  };
14261
14161
 
14262
- export type PromptsListProjectLabelUsagesResponse = PromptsListProjectLabelUsagesResponses[keyof PromptsListProjectLabelUsagesResponses];
14162
+ export type PromptsGetPromptDirectorySummaryResponse = PromptsGetPromptDirectorySummaryResponses[keyof PromptsGetPromptDirectorySummaryResponses];
14263
14163
 
14264
- export type PromptsListPromptsData = {
14164
+ export type PromptsArchivePromptData = {
14265
14165
  body?: never;
14266
14166
  path: {
14267
14167
  projectId: string;
14268
- };
14269
- query?: {
14270
- page?: number | null;
14271
- limit?: number | null;
14272
- search?: string | null;
14273
- sortDir?: 'asc' | 'desc' | null;
14274
- status?: string | null;
14275
- kind?: string | null;
14276
- sortBy?: 'createdAt' | 'updatedAt' | 'name' | 'status' | 'latestVersion' | 'environments' | null;
14277
- tags?: string | null;
14278
- environment?: string | null;
14279
- };
14280
- url: '/v1/projects/{projectId}/prompts';
14281
- };
14282
-
14283
- export type PromptsListPromptsErrors = {
14284
- /**
14285
- * BadRequestError
14286
- */
14287
- 400: BadRequestError;
14288
- /**
14289
- * UnauthorizedError
14290
- */
14291
- 401: UnauthorizedError;
14292
- /**
14293
- * ForbiddenError
14294
- */
14295
- 403: ForbiddenError;
14296
- /**
14297
- * NotFoundError
14298
- */
14299
- 404: NotFoundError;
14300
- /**
14301
- * ConflictError
14302
- */
14303
- 409: ConflictError;
14304
- /**
14305
- * GoneError
14306
- */
14307
- 410: GoneError;
14308
- /**
14309
- * ContentTooLargeError
14310
- */
14311
- 413: ContentTooLargeError;
14312
- /**
14313
- * MisdirectedRequestError
14314
- */
14315
- 421: MisdirectedRequestError;
14316
- /**
14317
- * UnprocessableEntityError
14318
- */
14319
- 422: UnprocessableEntityError;
14320
- /**
14321
- * TooManyRequestsError
14322
- */
14323
- 429: TooManyRequestsError;
14324
- /**
14325
- * InternalServerError
14326
- */
14327
- 500: InternalServerError;
14328
- /**
14329
- * ServiceUnavailableError
14330
- */
14331
- 503: ServiceUnavailableError;
14332
- };
14333
-
14334
- export type PromptsListPromptsError = PromptsListPromptsErrors[keyof PromptsListPromptsErrors];
14335
-
14336
- export type PromptsListPromptsResponses = {
14337
- /**
14338
- * Success
14339
- */
14340
- 200: {
14341
- code: number;
14342
- data: Array<{
14343
- createdAt: string;
14344
- createdByUserId: string;
14345
- description: string | null;
14346
- id: string;
14347
- kind: 'chat' | 'skill';
14348
- labels: Array<{
14349
- label: string;
14350
- version: number | null;
14351
- weighted?: {
14352
- split: string;
14353
- variants: number;
14354
- } | null | null;
14355
- }>;
14356
- lastModifiedAt: string;
14357
- lastModifiedByDisplayName: string | null;
14358
- lastModifiedByImage: string | null;
14359
- lastModifiedByType: 'user' | 'api_key' | 'unknown' | null;
14360
- lastModifiedByUserId: string | null;
14361
- latestVersion: number | null;
14362
- name: string;
14363
- projectId: string;
14364
- slug: string;
14365
- status: 'active' | 'archived';
14366
- tags: Array<string>;
14367
- updatedAt: string;
14368
- }> | null;
14369
- error: {
14370
- code: string;
14371
- details?: unknown | null;
14372
- message: string;
14373
- rowErrors?: Array<{
14374
- code: string;
14375
- message: string;
14376
- path: Array<string | number>;
14377
- }> | null;
14378
- } | null;
14379
- pagination: {
14380
- limit: number;
14381
- page: number;
14382
- total: number;
14383
- totalPages: number;
14384
- } | null;
14385
- sdkBehavior?: {
14386
- flags: {
14387
- [key: string]: unknown;
14388
- };
14389
- v: number;
14390
- } | null;
14391
- success: boolean;
14392
- };
14393
- };
14394
-
14395
- export type PromptsListPromptsResponse = PromptsListPromptsResponses[keyof PromptsListPromptsResponses];
14396
-
14397
- export type PromptsCreatePromptData = {
14398
- body: {
14399
- description?: string | null;
14400
- kind?: 'chat' | 'skill' | null;
14401
- name: string;
14402
- slug: string;
14403
- tags?: Array<string> | null;
14404
- };
14405
- path: {
14406
- projectId: string;
14407
- };
14408
- query?: never;
14409
- url: '/v1/projects/{projectId}/prompts';
14410
- };
14411
-
14412
- export type PromptsCreatePromptErrors = {
14413
- /**
14414
- * BadRequestError
14415
- */
14416
- 400: BadRequestError;
14417
- /**
14418
- * UnauthorizedError
14419
- */
14420
- 401: UnauthorizedError;
14421
- /**
14422
- * ForbiddenError
14423
- */
14424
- 403: ForbiddenError;
14425
- /**
14426
- * NotFoundError
14427
- */
14428
- 404: NotFoundError;
14429
- /**
14430
- * ConflictError
14431
- */
14432
- 409: ConflictError;
14433
- /**
14434
- * GoneError
14435
- */
14436
- 410: GoneError;
14437
- /**
14438
- * ContentTooLargeError
14439
- */
14440
- 413: ContentTooLargeError;
14441
- /**
14442
- * MisdirectedRequestError
14443
- */
14444
- 421: MisdirectedRequestError;
14445
- /**
14446
- * UnprocessableEntityError
14447
- */
14448
- 422: UnprocessableEntityError;
14449
- /**
14450
- * TooManyRequestsError
14451
- */
14452
- 429: TooManyRequestsError;
14453
- /**
14454
- * InternalServerError
14455
- */
14456
- 500: InternalServerError;
14457
- /**
14458
- * ServiceUnavailableError
14459
- */
14460
- 503: ServiceUnavailableError;
14461
- };
14462
-
14463
- export type PromptsCreatePromptError = PromptsCreatePromptErrors[keyof PromptsCreatePromptErrors];
14464
-
14465
- export type PromptsCreatePromptResponses = {
14466
- /**
14467
- * Success
14468
- */
14469
- 201: {
14470
- code: number;
14471
- data: Prompt | null;
14472
- error: {
14473
- code: string;
14474
- details?: unknown | null;
14475
- message: string;
14476
- rowErrors?: Array<{
14477
- code: string;
14478
- message: string;
14479
- path: Array<string | number>;
14480
- }> | null;
14481
- } | null;
14482
- pagination: {
14483
- limit: number;
14484
- page: number;
14485
- total: number;
14486
- totalPages: number;
14487
- } | null;
14488
- sdkBehavior?: {
14489
- flags: {
14490
- [key: string]: unknown;
14491
- };
14492
- v: number;
14493
- } | null;
14494
- success: boolean;
14495
- };
14496
- };
14497
-
14498
- export type PromptsCreatePromptResponse = PromptsCreatePromptResponses[keyof PromptsCreatePromptResponses];
14499
-
14500
- export type PromptsBulkPromptsData = {
14501
- body: {
14502
- action: 'archive' | 'restore';
14503
- promptIds: Array<string>;
14504
- };
14505
- path: {
14506
- projectId: string;
14507
- };
14508
- query?: never;
14509
- url: '/v1/projects/{projectId}/prompts/bulk';
14510
- };
14511
-
14512
- export type PromptsBulkPromptsErrors = {
14513
- /**
14514
- * BadRequestError
14515
- */
14516
- 400: BadRequestError;
14517
- /**
14518
- * UnauthorizedError
14519
- */
14520
- 401: UnauthorizedError;
14521
- /**
14522
- * ForbiddenError
14523
- */
14524
- 403: ForbiddenError;
14525
- /**
14526
- * NotFoundError
14527
- */
14528
- 404: NotFoundError;
14529
- /**
14530
- * ConflictError
14531
- */
14532
- 409: ConflictError;
14533
- /**
14534
- * GoneError
14535
- */
14536
- 410: GoneError;
14537
- /**
14538
- * ContentTooLargeError
14539
- */
14540
- 413: ContentTooLargeError;
14541
- /**
14542
- * MisdirectedRequestError
14543
- */
14544
- 421: MisdirectedRequestError;
14545
- /**
14546
- * UnprocessableEntityError
14547
- */
14548
- 422: UnprocessableEntityError;
14549
- /**
14550
- * TooManyRequestsError
14551
- */
14552
- 429: TooManyRequestsError;
14553
- /**
14554
- * InternalServerError
14555
- */
14556
- 500: InternalServerError;
14557
- /**
14558
- * ServiceUnavailableError
14559
- */
14560
- 503: ServiceUnavailableError;
14561
- };
14562
-
14563
- export type PromptsBulkPromptsError = PromptsBulkPromptsErrors[keyof PromptsBulkPromptsErrors];
14564
-
14565
- export type PromptsBulkPromptsResponses = {
14566
- /**
14567
- * Success
14568
- */
14569
- 200: {
14570
- code: number;
14571
- data: {
14572
- results: Array<{
14573
- error?: {
14574
- code: string;
14575
- } | null;
14576
- ok: boolean;
14577
- prompt?: Prompt | null;
14578
- promptId: string;
14579
- }>;
14580
- summary: {
14581
- failed: number;
14582
- succeeded: number;
14583
- total: number;
14584
- };
14585
- } | null;
14586
- error: {
14587
- code: string;
14588
- details?: unknown | null;
14589
- message: string;
14590
- rowErrors?: Array<{
14591
- code: string;
14592
- message: string;
14593
- path: Array<string | number>;
14594
- }> | null;
14595
- } | null;
14596
- pagination: {
14597
- limit: number;
14598
- page: number;
14599
- total: number;
14600
- totalPages: number;
14601
- } | null;
14602
- sdkBehavior?: {
14603
- flags: {
14604
- [key: string]: unknown;
14605
- };
14606
- v: number;
14607
- } | null;
14608
- success: boolean;
14609
- };
14610
- };
14611
-
14612
- export type PromptsBulkPromptsResponse = PromptsBulkPromptsResponses[keyof PromptsBulkPromptsResponses];
14613
-
14614
- export type PromptsRenderPromptData = {
14615
- body: {
14616
- variables?: {
14617
- [key: string]: unknown;
14618
- } | null;
14619
- };
14620
- path: {
14621
- projectId: string;
14622
- slug: string;
14623
- label: string;
14624
- };
14625
- query?: never;
14626
- url: '/v1/projects/{projectId}/prompts/by-slug/{slug}/labels/{label}/render';
14627
- };
14628
-
14629
- export type PromptsRenderPromptErrors = {
14630
- /**
14631
- * BadRequestError
14632
- */
14633
- 400: BadRequestError;
14634
- /**
14635
- * UnauthorizedError
14636
- */
14637
- 401: UnauthorizedError;
14638
- /**
14639
- * ForbiddenError
14640
- */
14641
- 403: ForbiddenError;
14642
- /**
14643
- * NotFoundError
14644
- */
14645
- 404: NotFoundError;
14646
- /**
14647
- * ConflictError
14648
- */
14649
- 409: ConflictError;
14650
- /**
14651
- * GoneError
14652
- */
14653
- 410: GoneError;
14654
- /**
14655
- * ContentTooLargeError
14656
- */
14657
- 413: ContentTooLargeError;
14658
- /**
14659
- * MisdirectedRequestError
14660
- */
14661
- 421: MisdirectedRequestError;
14662
- /**
14663
- * UnprocessableEntityError
14664
- */
14665
- 422: UnprocessableEntityError;
14666
- /**
14667
- * TooManyRequestsError
14668
- */
14669
- 429: TooManyRequestsError;
14670
- /**
14671
- * InternalServerError
14672
- */
14673
- 500: InternalServerError;
14674
- /**
14675
- * ServiceUnavailableError
14676
- */
14677
- 503: ServiceUnavailableError;
14678
- };
14679
-
14680
- export type PromptsRenderPromptError = PromptsRenderPromptErrors[keyof PromptsRenderPromptErrors];
14681
-
14682
- export type PromptsRenderPromptResponses = {
14683
- /**
14684
- * Success
14685
- */
14686
- 200: {
14687
- code: number;
14688
- data: ResolvedPrompt | RenderedSkill | null;
14689
- error: {
14690
- code: string;
14691
- details?: unknown | null;
14692
- message: string;
14693
- rowErrors?: Array<{
14694
- code: string;
14695
- message: string;
14696
- path: Array<string | number>;
14697
- }> | null;
14698
- } | null;
14699
- pagination: {
14700
- limit: number;
14701
- page: number;
14702
- total: number;
14703
- totalPages: number;
14704
- } | null;
14705
- sdkBehavior?: {
14706
- flags: {
14707
- [key: string]: unknown;
14708
- };
14709
- v: number;
14710
- } | null;
14711
- success: boolean;
14712
- };
14713
- };
14714
-
14715
- export type PromptsRenderPromptResponse = PromptsRenderPromptResponses[keyof PromptsRenderPromptResponses];
14716
-
14717
- export type PromptsRenderSkillVersionData = {
14718
- body: {
14719
- variables?: {
14720
- [key: string]: unknown;
14721
- } | null;
14722
- };
14723
- path: {
14724
- projectId: string;
14725
- slug: string;
14726
- versionNumber: string;
14727
- };
14728
- query?: never;
14729
- url: '/v1/projects/{projectId}/prompts/by-slug/{slug}/versions/{versionNumber}/render';
14730
- };
14731
-
14732
- export type PromptsRenderSkillVersionErrors = {
14733
- /**
14734
- * BadRequestError
14735
- */
14736
- 400: BadRequestError;
14737
- /**
14738
- * UnauthorizedError
14739
- */
14740
- 401: UnauthorizedError;
14741
- /**
14742
- * ForbiddenError
14743
- */
14744
- 403: ForbiddenError;
14745
- /**
14746
- * NotFoundError
14747
- */
14748
- 404: NotFoundError;
14749
- /**
14750
- * ConflictError
14751
- */
14752
- 409: ConflictError;
14753
- /**
14754
- * GoneError
14755
- */
14756
- 410: GoneError;
14757
- /**
14758
- * ContentTooLargeError
14759
- */
14760
- 413: ContentTooLargeError;
14761
- /**
14762
- * MisdirectedRequestError
14763
- */
14764
- 421: MisdirectedRequestError;
14765
- /**
14766
- * UnprocessableEntityError
14767
- */
14768
- 422: UnprocessableEntityError;
14769
- /**
14770
- * TooManyRequestsError
14771
- */
14772
- 429: TooManyRequestsError;
14773
- /**
14774
- * InternalServerError
14775
- */
14776
- 500: InternalServerError;
14777
- /**
14778
- * ServiceUnavailableError
14779
- */
14780
- 503: ServiceUnavailableError;
14781
- };
14782
-
14783
- export type PromptsRenderSkillVersionError = PromptsRenderSkillVersionErrors[keyof PromptsRenderSkillVersionErrors];
14784
-
14785
- export type PromptsRenderSkillVersionResponses = {
14786
- /**
14787
- * Success
14788
- */
14789
- 200: {
14790
- code: number;
14791
- data: RenderedSkillVersion | null;
14792
- error: {
14793
- code: string;
14794
- details?: unknown | null;
14795
- message: string;
14796
- rowErrors?: Array<{
14797
- code: string;
14798
- message: string;
14799
- path: Array<string | number>;
14800
- }> | null;
14801
- } | null;
14802
- pagination: {
14803
- limit: number;
14804
- page: number;
14805
- total: number;
14806
- totalPages: number;
14807
- } | null;
14808
- sdkBehavior?: {
14809
- flags: {
14810
- [key: string]: unknown;
14811
- };
14812
- v: number;
14813
- } | null;
14814
- success: boolean;
14815
- };
14816
- };
14817
-
14818
- export type PromptsRenderSkillVersionResponse = PromptsRenderSkillVersionResponses[keyof PromptsRenderSkillVersionResponses];
14819
-
14820
- export type PromptsGetPromptDirectorySummaryData = {
14821
- body?: never;
14822
- path: {
14823
- projectId: string;
14824
- };
14825
- query?: {
14826
- kind?: string | null;
14827
- };
14828
- url: '/v1/projects/{projectId}/prompts/summary';
14829
- };
14830
-
14831
- export type PromptsGetPromptDirectorySummaryErrors = {
14832
- /**
14833
- * BadRequestError
14834
- */
14835
- 400: BadRequestError;
14836
- /**
14837
- * UnauthorizedError
14838
- */
14839
- 401: UnauthorizedError;
14840
- /**
14841
- * ForbiddenError
14842
- */
14843
- 403: ForbiddenError;
14844
- /**
14845
- * NotFoundError
14846
- */
14847
- 404: NotFoundError;
14848
- /**
14849
- * ConflictError
14850
- */
14851
- 409: ConflictError;
14852
- /**
14853
- * GoneError
14854
- */
14855
- 410: GoneError;
14856
- /**
14857
- * ContentTooLargeError
14858
- */
14859
- 413: ContentTooLargeError;
14860
- /**
14861
- * MisdirectedRequestError
14862
- */
14863
- 421: MisdirectedRequestError;
14864
- /**
14865
- * UnprocessableEntityError
14866
- */
14867
- 422: UnprocessableEntityError;
14868
- /**
14869
- * TooManyRequestsError
14870
- */
14871
- 429: TooManyRequestsError;
14872
- /**
14873
- * InternalServerError
14874
- */
14875
- 500: InternalServerError;
14876
- /**
14877
- * ServiceUnavailableError
14878
- */
14879
- 503: ServiceUnavailableError;
14880
- };
14881
-
14882
- export type PromptsGetPromptDirectorySummaryError = PromptsGetPromptDirectorySummaryErrors[keyof PromptsGetPromptDirectorySummaryErrors];
14883
-
14884
- export type PromptsGetPromptDirectorySummaryResponses = {
14885
- /**
14886
- * Success
14887
- */
14888
- 200: {
14889
- code: number;
14890
- data: {
14891
- activeReleases: {
14892
- count: number;
14893
- environmentCount: number;
14894
- };
14895
- fetches24h: {
14896
- count: number;
14897
- deltaPctVsPrev: number;
14898
- } | null;
14899
- prompts: {
14900
- archived: number;
14901
- published: number;
14902
- total: number;
14903
- };
14904
- rollbacks30d: {
14905
- count: number;
14906
- promotions: number;
14907
- };
14908
- } | null;
14909
- error: {
14910
- code: string;
14911
- details?: unknown | null;
14912
- message: string;
14913
- rowErrors?: Array<{
14914
- code: string;
14915
- message: string;
14916
- path: Array<string | number>;
14917
- }> | null;
14918
- } | null;
14919
- pagination: {
14920
- limit: number;
14921
- page: number;
14922
- total: number;
14923
- totalPages: number;
14924
- } | null;
14925
- sdkBehavior?: {
14926
- flags: {
14927
- [key: string]: unknown;
14928
- };
14929
- v: number;
14930
- } | null;
14931
- success: boolean;
14932
- };
14933
- };
14934
-
14935
- export type PromptsGetPromptDirectorySummaryResponse = PromptsGetPromptDirectorySummaryResponses[keyof PromptsGetPromptDirectorySummaryResponses];
14936
-
14937
- export type PromptsArchivePromptData = {
14938
- body?: never;
14939
- path: {
14940
- projectId: string;
14941
- promptId: string;
14942
- };
14943
- query?: never;
14944
- url: '/v1/projects/{projectId}/prompts/{promptId}';
14945
- };
14946
-
14947
- export type PromptsArchivePromptErrors = {
14948
- /**
14949
- * BadRequestError
14950
- */
14951
- 400: BadRequestError;
14952
- /**
14953
- * UnauthorizedError
14954
- */
14955
- 401: UnauthorizedError;
14956
- /**
14957
- * ForbiddenError
14958
- */
14959
- 403: ForbiddenError;
14960
- /**
14961
- * NotFoundError
14962
- */
14963
- 404: NotFoundError;
14964
- /**
14965
- * ConflictError
14966
- */
14967
- 409: ConflictError;
14968
- /**
14969
- * GoneError
14970
- */
14971
- 410: GoneError;
14972
- /**
14973
- * ContentTooLargeError
14974
- */
14975
- 413: ContentTooLargeError;
14976
- /**
14977
- * MisdirectedRequestError
14978
- */
14979
- 421: MisdirectedRequestError;
14980
- /**
14981
- * UnprocessableEntityError
14982
- */
14983
- 422: UnprocessableEntityError;
14984
- /**
14985
- * TooManyRequestsError
14986
- */
14987
- 429: TooManyRequestsError;
14988
- /**
14989
- * InternalServerError
14990
- */
14991
- 500: InternalServerError;
14992
- /**
14993
- * ServiceUnavailableError
14994
- */
14995
- 503: ServiceUnavailableError;
14996
- };
14997
-
14998
- export type PromptsArchivePromptError = PromptsArchivePromptErrors[keyof PromptsArchivePromptErrors];
14999
-
15000
- export type PromptsArchivePromptResponses = {
15001
- /**
15002
- * Success
15003
- */
15004
- 200: {
15005
- code: number;
15006
- data: Prompt | null;
15007
- error: {
15008
- code: string;
15009
- details?: unknown | null;
15010
- message: string;
15011
- rowErrors?: Array<{
15012
- code: string;
15013
- message: string;
15014
- path: Array<string | number>;
15015
- }> | null;
15016
- } | null;
15017
- pagination: {
15018
- limit: number;
15019
- page: number;
15020
- total: number;
15021
- totalPages: number;
15022
- } | null;
15023
- sdkBehavior?: {
15024
- flags: {
15025
- [key: string]: unknown;
15026
- };
15027
- v: number;
15028
- } | null;
15029
- success: boolean;
15030
- };
15031
- };
15032
-
15033
- export type PromptsArchivePromptResponse = PromptsArchivePromptResponses[keyof PromptsArchivePromptResponses];
15034
-
15035
- export type PromptsGetPromptData = {
15036
- body?: never;
15037
- path: {
15038
- projectId: string;
15039
- promptId: string;
15040
- };
15041
- query?: never;
15042
- url: '/v1/projects/{projectId}/prompts/{promptId}';
15043
- };
15044
-
15045
- export type PromptsGetPromptErrors = {
15046
- /**
15047
- * BadRequestError
15048
- */
15049
- 400: BadRequestError;
15050
- /**
15051
- * UnauthorizedError
15052
- */
15053
- 401: UnauthorizedError;
15054
- /**
15055
- * ForbiddenError
15056
- */
15057
- 403: ForbiddenError;
15058
- /**
15059
- * NotFoundError
15060
- */
15061
- 404: NotFoundError;
15062
- /**
15063
- * ConflictError
15064
- */
15065
- 409: ConflictError;
15066
- /**
15067
- * GoneError
15068
- */
15069
- 410: GoneError;
15070
- /**
15071
- * ContentTooLargeError
15072
- */
15073
- 413: ContentTooLargeError;
15074
- /**
15075
- * MisdirectedRequestError
15076
- */
15077
- 421: MisdirectedRequestError;
15078
- /**
15079
- * UnprocessableEntityError
15080
- */
15081
- 422: UnprocessableEntityError;
15082
- /**
15083
- * TooManyRequestsError
15084
- */
15085
- 429: TooManyRequestsError;
15086
- /**
15087
- * InternalServerError
15088
- */
15089
- 500: InternalServerError;
15090
- /**
15091
- * ServiceUnavailableError
15092
- */
15093
- 503: ServiceUnavailableError;
15094
- };
15095
-
15096
- export type PromptsGetPromptError = PromptsGetPromptErrors[keyof PromptsGetPromptErrors];
15097
-
15098
- export type PromptsGetPromptResponses = {
15099
- /**
15100
- * Success
15101
- */
15102
- 200: {
15103
- code: number;
15104
- data: Prompt | null;
15105
- error: {
15106
- code: string;
15107
- details?: unknown | null;
15108
- message: string;
15109
- rowErrors?: Array<{
15110
- code: string;
15111
- message: string;
15112
- path: Array<string | number>;
15113
- }> | null;
15114
- } | null;
15115
- pagination: {
15116
- limit: number;
15117
- page: number;
15118
- total: number;
15119
- totalPages: number;
15120
- } | null;
15121
- sdkBehavior?: {
15122
- flags: {
15123
- [key: string]: unknown;
15124
- };
15125
- v: number;
15126
- } | null;
15127
- success: boolean;
15128
- };
15129
- };
15130
-
15131
- export type PromptsGetPromptResponse = PromptsGetPromptResponses[keyof PromptsGetPromptResponses];
15132
-
15133
- export type PromptsUpdatePromptData = {
15134
- body: {
15135
- description?: string | null | null;
15136
- name?: string | null;
15137
- slug?: string | null;
15138
- status?: 'active' | 'archived' | null;
15139
- tags?: Array<string> | null;
15140
- };
15141
- path: {
15142
- projectId: string;
15143
- promptId: string;
14168
+ promptId: string;
15144
14169
  };
15145
14170
  query?: never;
15146
14171
  url: '/v1/projects/{projectId}/prompts/{promptId}';
15147
14172
  };
15148
14173
 
15149
- export type PromptsUpdatePromptErrors = {
14174
+ export type PromptsArchivePromptErrors = {
15150
14175
  /**
15151
14176
  * BadRequestError
15152
14177
  */
@@ -15197,9 +14222,9 @@ export type PromptsUpdatePromptErrors = {
15197
14222
  503: ServiceUnavailableError;
15198
14223
  };
15199
14224
 
15200
- export type PromptsUpdatePromptError = PromptsUpdatePromptErrors[keyof PromptsUpdatePromptErrors];
14225
+ export type PromptsArchivePromptError = PromptsArchivePromptErrors[keyof PromptsArchivePromptErrors];
15201
14226
 
15202
- export type PromptsUpdatePromptResponses = {
14227
+ export type PromptsArchivePromptResponses = {
15203
14228
  /**
15204
14229
  * Success
15205
14230
  */
@@ -15232,124 +14257,19 @@ export type PromptsUpdatePromptResponses = {
15232
14257
  };
15233
14258
  };
15234
14259
 
15235
- export type PromptsUpdatePromptResponse = PromptsUpdatePromptResponses[keyof PromptsUpdatePromptResponses];
15236
-
15237
- export type PromptsImportPromptVersionData = {
15238
- body: ImportPromptVersionInput;
15239
- path: {
15240
- projectId: string;
15241
- promptId: string;
15242
- };
15243
- query?: never;
15244
- url: '/v1/projects/{projectId}/prompts/{promptId}/imports';
15245
- };
15246
-
15247
- export type PromptsImportPromptVersionErrors = {
15248
- /**
15249
- * BadRequestError
15250
- */
15251
- 400: BadRequestError;
15252
- /**
15253
- * UnauthorizedError
15254
- */
15255
- 401: UnauthorizedError;
15256
- /**
15257
- * ForbiddenError
15258
- */
15259
- 403: ForbiddenError;
15260
- /**
15261
- * NotFoundError
15262
- */
15263
- 404: NotFoundError;
15264
- /**
15265
- * ConflictError
15266
- */
15267
- 409: ConflictError;
15268
- /**
15269
- * GoneError
15270
- */
15271
- 410: GoneError;
15272
- /**
15273
- * ContentTooLargeError
15274
- */
15275
- 413: ContentTooLargeError;
15276
- /**
15277
- * MisdirectedRequestError
15278
- */
15279
- 421: MisdirectedRequestError;
15280
- /**
15281
- * UnprocessableEntityError
15282
- */
15283
- 422: UnprocessableEntityError;
15284
- /**
15285
- * TooManyRequestsError
15286
- */
15287
- 429: TooManyRequestsError;
15288
- /**
15289
- * InternalServerError
15290
- */
15291
- 500: InternalServerError;
15292
- /**
15293
- * ServiceUnavailableError
15294
- */
15295
- 503: ServiceUnavailableError;
15296
- };
15297
-
15298
- export type PromptsImportPromptVersionError = PromptsImportPromptVersionErrors[keyof PromptsImportPromptVersionErrors];
15299
-
15300
- export type PromptsImportPromptVersionResponses = {
15301
- /**
15302
- * Success
15303
- */
15304
- 201: {
15305
- code: number;
15306
- data: PromptVersion | null;
15307
- error: {
15308
- code: string;
15309
- details?: unknown | null;
15310
- message: string;
15311
- rowErrors?: Array<{
15312
- code: string;
15313
- message: string;
15314
- path: Array<string | number>;
15315
- }> | null;
15316
- } | null;
15317
- pagination: {
15318
- limit: number;
15319
- page: number;
15320
- total: number;
15321
- totalPages: number;
15322
- } | null;
15323
- sdkBehavior?: {
15324
- flags: {
15325
- [key: string]: unknown;
15326
- };
15327
- v: number;
15328
- } | null;
15329
- success: boolean;
15330
- };
15331
- };
15332
-
15333
- export type PromptsImportPromptVersionResponse = PromptsImportPromptVersionResponses[keyof PromptsImportPromptVersionResponses];
14260
+ export type PromptsArchivePromptResponse = PromptsArchivePromptResponses[keyof PromptsArchivePromptResponses];
15334
14261
 
15335
- export type PromptsListPromptLabelEventsByPromptData = {
14262
+ export type PromptsGetPromptData = {
15336
14263
  body?: never;
15337
14264
  path: {
15338
14265
  projectId: string;
15339
14266
  promptId: string;
15340
14267
  };
15341
- query?: {
15342
- page?: string | null;
15343
- limit?: string | null;
15344
- label?: string | null;
15345
- promptId?: string | null;
15346
- since?: string | null;
15347
- until?: string | null;
15348
- };
15349
- url: '/v1/projects/{projectId}/prompts/{promptId}/label-events';
14268
+ query?: never;
14269
+ url: '/v1/projects/{projectId}/prompts/{promptId}';
15350
14270
  };
15351
14271
 
15352
- export type PromptsListPromptLabelEventsByPromptErrors = {
14272
+ export type PromptsGetPromptErrors = {
15353
14273
  /**
15354
14274
  * BadRequestError
15355
14275
  */
@@ -15400,23 +14320,15 @@ export type PromptsListPromptLabelEventsByPromptErrors = {
15400
14320
  503: ServiceUnavailableError;
15401
14321
  };
15402
14322
 
15403
- export type PromptsListPromptLabelEventsByPromptError = PromptsListPromptLabelEventsByPromptErrors[keyof PromptsListPromptLabelEventsByPromptErrors];
14323
+ export type PromptsGetPromptError = PromptsGetPromptErrors[keyof PromptsGetPromptErrors];
15404
14324
 
15405
- export type PromptsListPromptLabelEventsByPromptResponses = {
14325
+ export type PromptsGetPromptResponses = {
15406
14326
  /**
15407
14327
  * Success
15408
14328
  */
15409
14329
  200: {
15410
14330
  code: number;
15411
- data: {
15412
- items: Array<PromptLabelEvent>;
15413
- pagination: {
15414
- limit: number;
15415
- page: number;
15416
- total: number;
15417
- totalPages: number;
15418
- };
15419
- } | null;
14331
+ data: Prompt | null;
15420
14332
  error: {
15421
14333
  code: string;
15422
14334
  details?: unknown | null;
@@ -15443,23 +14355,25 @@ export type PromptsListPromptLabelEventsByPromptResponses = {
15443
14355
  };
15444
14356
  };
15445
14357
 
15446
- export type PromptsListPromptLabelEventsByPromptResponse = PromptsListPromptLabelEventsByPromptResponses[keyof PromptsListPromptLabelEventsByPromptResponses];
14358
+ export type PromptsGetPromptResponse = PromptsGetPromptResponses[keyof PromptsGetPromptResponses];
15447
14359
 
15448
- export type PromptsListPromptLabelsData = {
15449
- body?: never;
14360
+ export type PromptsUpdatePromptData = {
14361
+ body: {
14362
+ description?: string | null | null;
14363
+ name?: string | null;
14364
+ slug?: string | null;
14365
+ status?: 'active' | 'archived' | null;
14366
+ tags?: Array<string> | null;
14367
+ };
15450
14368
  path: {
15451
14369
  projectId: string;
15452
14370
  promptId: string;
15453
14371
  };
15454
- query?: {
15455
- asOf?: string | null;
15456
- page?: number | null;
15457
- limit?: number | null;
15458
- };
15459
- url: '/v1/projects/{projectId}/prompts/{promptId}/labels';
14372
+ query?: never;
14373
+ url: '/v1/projects/{projectId}/prompts/{promptId}';
15460
14374
  };
15461
14375
 
15462
- export type PromptsListPromptLabelsErrors = {
14376
+ export type PromptsUpdatePromptErrors = {
15463
14377
  /**
15464
14378
  * BadRequestError
15465
14379
  */
@@ -15510,15 +14424,15 @@ export type PromptsListPromptLabelsErrors = {
15510
14424
  503: ServiceUnavailableError;
15511
14425
  };
15512
14426
 
15513
- export type PromptsListPromptLabelsError = PromptsListPromptLabelsErrors[keyof PromptsListPromptLabelsErrors];
14427
+ export type PromptsUpdatePromptError = PromptsUpdatePromptErrors[keyof PromptsUpdatePromptErrors];
15514
14428
 
15515
- export type PromptsListPromptLabelsResponses = {
14429
+ export type PromptsUpdatePromptResponses = {
15516
14430
  /**
15517
14431
  * Success
15518
14432
  */
15519
14433
  200: {
15520
14434
  code: number;
15521
- data: Array<PromptLabelPointer> | null;
14435
+ data: Prompt | null;
15522
14436
  error: {
15523
14437
  code: string;
15524
14438
  details?: unknown | null;
@@ -15545,23 +14459,19 @@ export type PromptsListPromptLabelsResponses = {
15545
14459
  };
15546
14460
  };
15547
14461
 
15548
- export type PromptsListPromptLabelsResponse = PromptsListPromptLabelsResponses[keyof PromptsListPromptLabelsResponses];
14462
+ export type PromptsUpdatePromptResponse = PromptsUpdatePromptResponses[keyof PromptsUpdatePromptResponses];
15549
14463
 
15550
- export type PromptsMovePromptLabelData = {
15551
- body: {
15552
- reason: string;
15553
- versionId: string;
15554
- };
14464
+ export type PromptsImportPromptVersionData = {
14465
+ body: ImportPromptVersionInput;
15555
14466
  path: {
15556
14467
  projectId: string;
15557
14468
  promptId: string;
15558
- label: string;
15559
14469
  };
15560
14470
  query?: never;
15561
- url: '/v1/projects/{projectId}/prompts/{promptId}/labels/{label}';
14471
+ url: '/v1/projects/{projectId}/prompts/{promptId}/imports';
15562
14472
  };
15563
14473
 
15564
- export type PromptsMovePromptLabelErrors = {
14474
+ export type PromptsImportPromptVersionErrors = {
15565
14475
  /**
15566
14476
  * BadRequestError
15567
14477
  */
@@ -15612,15 +14522,15 @@ export type PromptsMovePromptLabelErrors = {
15612
14522
  503: ServiceUnavailableError;
15613
14523
  };
15614
14524
 
15615
- export type PromptsMovePromptLabelError = PromptsMovePromptLabelErrors[keyof PromptsMovePromptLabelErrors];
14525
+ export type PromptsImportPromptVersionError = PromptsImportPromptVersionErrors[keyof PromptsImportPromptVersionErrors];
15616
14526
 
15617
- export type PromptsMovePromptLabelResponses = {
14527
+ export type PromptsImportPromptVersionResponses = {
15618
14528
  /**
15619
14529
  * Success
15620
14530
  */
15621
- 200: {
14531
+ 201: {
15622
14532
  code: number;
15623
- data: PromptLabelPointer | null;
14533
+ data: PromptVersion | null;
15624
14534
  error: {
15625
14535
  code: string;
15626
14536
  details?: unknown | null;
@@ -15647,27 +14557,22 @@ export type PromptsMovePromptLabelResponses = {
15647
14557
  };
15648
14558
  };
15649
14559
 
15650
- export type PromptsMovePromptLabelResponse = PromptsMovePromptLabelResponses[keyof PromptsMovePromptLabelResponses];
14560
+ export type PromptsImportPromptVersionResponse = PromptsImportPromptVersionResponses[keyof PromptsImportPromptVersionResponses];
15651
14561
 
15652
- export type PromptsListPromptLabelEventsByLabelData = {
14562
+ export type PromptsListPromptLabelsData = {
15653
14563
  body?: never;
15654
14564
  path: {
15655
14565
  projectId: string;
15656
14566
  promptId: string;
15657
- label: string;
15658
14567
  };
15659
14568
  query?: {
15660
- page?: string | null;
15661
- limit?: string | null;
15662
- label?: string | null;
15663
- promptId?: string | null;
15664
- since?: string | null;
15665
- until?: string | null;
14569
+ page?: number | null;
14570
+ limit?: number | null;
15666
14571
  };
15667
- url: '/v1/projects/{projectId}/prompts/{promptId}/labels/{label}/events';
14572
+ url: '/v1/projects/{projectId}/prompts/{promptId}/labels';
15668
14573
  };
15669
14574
 
15670
- export type PromptsListPromptLabelEventsByLabelErrors = {
14575
+ export type PromptsListPromptLabelsErrors = {
15671
14576
  /**
15672
14577
  * BadRequestError
15673
14578
  */
@@ -15718,23 +14623,15 @@ export type PromptsListPromptLabelEventsByLabelErrors = {
15718
14623
  503: ServiceUnavailableError;
15719
14624
  };
15720
14625
 
15721
- export type PromptsListPromptLabelEventsByLabelError = PromptsListPromptLabelEventsByLabelErrors[keyof PromptsListPromptLabelEventsByLabelErrors];
14626
+ export type PromptsListPromptLabelsError = PromptsListPromptLabelsErrors[keyof PromptsListPromptLabelsErrors];
15722
14627
 
15723
- export type PromptsListPromptLabelEventsByLabelResponses = {
14628
+ export type PromptsListPromptLabelsResponses = {
15724
14629
  /**
15725
14630
  * Success
15726
14631
  */
15727
14632
  200: {
15728
14633
  code: number;
15729
- data: {
15730
- items: Array<PromptLabelEvent>;
15731
- pagination: {
15732
- limit: number;
15733
- page: number;
15734
- total: number;
15735
- totalPages: number;
15736
- };
15737
- } | null;
14634
+ data: Array<PromptLabelPointer> | null;
15738
14635
  error: {
15739
14636
  code: string;
15740
14637
  details?: unknown | null;
@@ -15761,7 +14658,7 @@ export type PromptsListPromptLabelEventsByLabelResponses = {
15761
14658
  };
15762
14659
  };
15763
14660
 
15764
- export type PromptsListPromptLabelEventsByLabelResponse = PromptsListPromptLabelEventsByLabelResponses[keyof PromptsListPromptLabelEventsByLabelResponses];
14661
+ export type PromptsListPromptLabelsResponse = PromptsListPromptLabelsResponses[keyof PromptsListPromptLabelsResponses];
15765
14662
 
15766
14663
  export type PromptMetricsGetPromptRequestMetricsData = {
15767
14664
  body?: never;
@@ -24891,6 +23788,7 @@ export type TracesListTracesData = {
24891
23788
  provider?: string | Array<string> | string | null;
24892
23789
  model?: string | Array<string> | string | null;
24893
23790
  promptRef?: string | Array<string> | string | null;
23791
+ sessionId?: string | null;
24894
23792
  minTokens?: string | null;
24895
23793
  maxTokens?: string | null;
24896
23794
  minCost?: string | null;
@@ -25108,6 +24006,7 @@ export type TracesListTracePromptFacetsData = {
25108
24006
  provider?: string | Array<string> | string | null;
25109
24007
  model?: string | Array<string> | string | null;
25110
24008
  promptRef?: string | Array<string> | string | null;
24009
+ sessionId?: string | null;
25111
24010
  minTokens?: string | null;
25112
24011
  maxTokens?: string | null;
25113
24012
  minCost?: string | null;