@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.
@@ -3,7 +3,6 @@ export type ClientOptions = {
3
3
  };
4
4
  export type ArchiveProjectEnvironmentResult = {
5
5
  environment: ProjectEnvironment;
6
- livePointerCounts: LivePointerCounts;
7
6
  };
8
7
  export type BadRequestError = {
9
8
  _tag: 'BadRequestError';
@@ -106,11 +105,6 @@ export type InternalServerError = {
106
105
  };
107
106
  success: false;
108
107
  };
109
- export type LivePointerCounts = {
110
- prompts: number;
111
- providers: number;
112
- rules: number;
113
- };
114
108
  export type MisdirectedRequestError = {
115
109
  _tag: 'MisdirectedRequestError';
116
110
  code: number;
@@ -195,27 +189,6 @@ export type ProjectEnvironment = {
195
189
  updatedAt: string;
196
190
  updatedBy: string;
197
191
  };
198
- export type ProjectPromptLabel = {
199
- archivedAt: string | null;
200
- createdAt: string;
201
- createdByUserId: string;
202
- description: string | null;
203
- displayColor: 'accent' | 'red' | 'orange' | 'amber' | 'green' | 'teal' | 'blue' | 'indigo' | 'purple' | 'pink';
204
- isDefault: boolean;
205
- isSystem: boolean;
206
- label: string;
207
- projectId: string;
208
- updatedAt: string;
209
- };
210
- export type ProjectPromptLabelUsage = {
211
- promptId: string;
212
- promptName: string;
213
- promptSlug: string;
214
- updatedAt: string;
215
- updatedByUserId: string;
216
- version: number;
217
- versionId: string;
218
- };
219
192
  export type Prompt = {
220
193
  createdAt: string;
221
194
  createdByUserId: string;
@@ -229,20 +202,9 @@ export type Prompt = {
229
202
  tags: Array<string>;
230
203
  updatedAt: string;
231
204
  };
232
- export type PromptLabelEvent = {
233
- fromVersionId: string | null;
234
- id: string;
235
- label: string;
236
- movedAt: string;
237
- movedByUserId: string;
238
- promptId: string;
239
- reason: string | null;
240
- toVersionId: string;
241
- };
242
205
  export type PromptLabelPointer = {
243
206
  label: string;
244
207
  promptId: string;
245
- reason: string;
246
208
  updatedAt: string;
247
209
  updatedByDisplayName: string | null;
248
210
  updatedByUserId: string;
@@ -279,9 +241,6 @@ export type RenderedSkill = {
279
241
  format: 'skill';
280
242
  label: string;
281
243
  promptId: string;
282
- releaseId?: string | null;
283
- releasedAt?: string | null;
284
- releasedByDisplayName?: string | null | null;
285
244
  version: number;
286
245
  versionId: string;
287
246
  };
@@ -325,7 +284,6 @@ export type ResolvedPrompt = {
325
284
  label: string;
326
285
  modelConfig?: unknown | null;
327
286
  promptId: string;
328
- releaseId?: string | null;
329
287
  rendered: RenderedPrompt;
330
288
  toolChoice?: 'auto' | 'none' | 'required' | {
331
289
  name: string;
@@ -11675,113 +11633,6 @@ export type ApiKeysRevokeApiKeyProjectResponses = {
11675
11633
  };
11676
11634
  };
11677
11635
  export type ApiKeysRevokeApiKeyProjectResponse = ApiKeysRevokeApiKeyProjectResponses[keyof ApiKeysRevokeApiKeyProjectResponses];
11678
- export type PromptsListPromptLabelEventsByProjectData = {
11679
- body?: never;
11680
- path: {
11681
- projectId: string;
11682
- };
11683
- query?: {
11684
- page?: string | null;
11685
- limit?: string | null;
11686
- label?: string | null;
11687
- promptId?: string | null;
11688
- since?: string | null;
11689
- until?: string | null;
11690
- };
11691
- url: '/v1/projects/{projectId}/label-events';
11692
- };
11693
- export type PromptsListPromptLabelEventsByProjectErrors = {
11694
- /**
11695
- * BadRequestError
11696
- */
11697
- 400: BadRequestError;
11698
- /**
11699
- * UnauthorizedError
11700
- */
11701
- 401: UnauthorizedError;
11702
- /**
11703
- * ForbiddenError
11704
- */
11705
- 403: ForbiddenError;
11706
- /**
11707
- * NotFoundError
11708
- */
11709
- 404: NotFoundError;
11710
- /**
11711
- * ConflictError
11712
- */
11713
- 409: ConflictError;
11714
- /**
11715
- * GoneError
11716
- */
11717
- 410: GoneError;
11718
- /**
11719
- * ContentTooLargeError
11720
- */
11721
- 413: ContentTooLargeError;
11722
- /**
11723
- * MisdirectedRequestError
11724
- */
11725
- 421: MisdirectedRequestError;
11726
- /**
11727
- * UnprocessableEntityError
11728
- */
11729
- 422: UnprocessableEntityError;
11730
- /**
11731
- * TooManyRequestsError
11732
- */
11733
- 429: TooManyRequestsError;
11734
- /**
11735
- * InternalServerError
11736
- */
11737
- 500: InternalServerError;
11738
- /**
11739
- * ServiceUnavailableError
11740
- */
11741
- 503: ServiceUnavailableError;
11742
- };
11743
- export type PromptsListPromptLabelEventsByProjectError = PromptsListPromptLabelEventsByProjectErrors[keyof PromptsListPromptLabelEventsByProjectErrors];
11744
- export type PromptsListPromptLabelEventsByProjectResponses = {
11745
- /**
11746
- * Success
11747
- */
11748
- 200: {
11749
- code: number;
11750
- data: {
11751
- items: Array<PromptLabelEvent>;
11752
- pagination: {
11753
- limit: number;
11754
- page: number;
11755
- total: number;
11756
- totalPages: number;
11757
- };
11758
- } | null;
11759
- error: {
11760
- code: string;
11761
- details?: unknown | null;
11762
- message: string;
11763
- rowErrors?: Array<{
11764
- code: string;
11765
- message: string;
11766
- path: Array<string | number>;
11767
- }> | null;
11768
- } | null;
11769
- pagination: {
11770
- limit: number;
11771
- page: number;
11772
- total: number;
11773
- totalPages: number;
11774
- } | null;
11775
- sdkBehavior?: {
11776
- flags: {
11777
- [key: string]: unknown;
11778
- };
11779
- v: number;
11780
- } | null;
11781
- success: boolean;
11782
- };
11783
- };
11784
- export type PromptsListPromptLabelEventsByProjectResponse = PromptsListPromptLabelEventsByProjectResponses[keyof PromptsListPromptLabelEventsByProjectResponses];
11785
11636
  export type CostRatesListProjectCostRatesData = {
11786
11637
  body?: never;
11787
11638
  path: {
@@ -13028,19 +12879,24 @@ export type ProjectOverviewGetProjectOverviewResponses = {
13028
12879
  };
13029
12880
  };
13030
12881
  export type ProjectOverviewGetProjectOverviewResponse = ProjectOverviewGetProjectOverviewResponses[keyof ProjectOverviewGetProjectOverviewResponses];
13031
- export type PromptsListProjectLabelsData = {
12882
+ export type PromptsListPromptsData = {
13032
12883
  body?: never;
13033
12884
  path: {
13034
12885
  projectId: string;
13035
12886
  };
13036
12887
  query?: {
13037
- includeArchived?: 'true' | 'false' | null;
13038
12888
  page?: number | null;
13039
12889
  limit?: number | null;
12890
+ search?: string | null;
12891
+ sortDir?: 'asc' | 'desc' | null;
12892
+ status?: string | null;
12893
+ kind?: string | null;
12894
+ sortBy?: 'createdAt' | 'updatedAt' | 'name' | 'status' | 'latestVersion' | null;
12895
+ tags?: string | null;
13040
12896
  };
13041
- url: '/v1/projects/{projectId}/prompt-labels';
12897
+ url: '/v1/projects/{projectId}/prompts';
13042
12898
  };
13043
- export type PromptsListProjectLabelsErrors = {
12899
+ export type PromptsListPromptsErrors = {
13044
12900
  /**
13045
12901
  * BadRequestError
13046
12902
  */
@@ -13090,14 +12946,36 @@ export type PromptsListProjectLabelsErrors = {
13090
12946
  */
13091
12947
  503: ServiceUnavailableError;
13092
12948
  };
13093
- export type PromptsListProjectLabelsError = PromptsListProjectLabelsErrors[keyof PromptsListProjectLabelsErrors];
13094
- export type PromptsListProjectLabelsResponses = {
12949
+ export type PromptsListPromptsError = PromptsListPromptsErrors[keyof PromptsListPromptsErrors];
12950
+ export type PromptsListPromptsResponses = {
13095
12951
  /**
13096
12952
  * Success
13097
12953
  */
13098
12954
  200: {
13099
12955
  code: number;
13100
- data: Array<ProjectPromptLabel> | null;
12956
+ data: Array<{
12957
+ createdAt: string;
12958
+ createdByUserId: string;
12959
+ description: string | null;
12960
+ id: string;
12961
+ kind: 'chat' | 'skill';
12962
+ labels: Array<{
12963
+ label: string;
12964
+ version: number | null;
12965
+ }>;
12966
+ lastModifiedAt: string;
12967
+ lastModifiedByDisplayName: string | null;
12968
+ lastModifiedByImage: string | null;
12969
+ lastModifiedByType: 'user' | 'api_key' | 'unknown' | null;
12970
+ lastModifiedByUserId: string | null;
12971
+ latestVersion: number | null;
12972
+ name: string;
12973
+ projectId: string;
12974
+ slug: string;
12975
+ status: 'active' | 'archived';
12976
+ tags: Array<string>;
12977
+ updatedAt: string;
12978
+ }> | null;
13101
12979
  error: {
13102
12980
  code: string;
13103
12981
  details?: unknown | null;
@@ -13123,21 +13001,22 @@ export type PromptsListProjectLabelsResponses = {
13123
13001
  success: boolean;
13124
13002
  };
13125
13003
  };
13126
- export type PromptsListProjectLabelsResponse = PromptsListProjectLabelsResponses[keyof PromptsListProjectLabelsResponses];
13127
- export type PromptsCreateProjectLabelData = {
13004
+ export type PromptsListPromptsResponse = PromptsListPromptsResponses[keyof PromptsListPromptsResponses];
13005
+ export type PromptsCreatePromptData = {
13128
13006
  body: {
13129
13007
  description?: string | null;
13130
- displayColor?: 'accent' | 'red' | 'orange' | 'amber' | 'green' | 'teal' | 'blue' | 'indigo' | 'purple' | 'pink' | null;
13131
- isDefault?: boolean | null;
13132
- label: string;
13008
+ kind?: 'chat' | 'skill' | null;
13009
+ name: string;
13010
+ slug: string;
13011
+ tags?: Array<string> | null;
13133
13012
  };
13134
13013
  path: {
13135
13014
  projectId: string;
13136
13015
  };
13137
13016
  query?: never;
13138
- url: '/v1/projects/{projectId}/prompt-labels';
13017
+ url: '/v1/projects/{projectId}/prompts';
13139
13018
  };
13140
- export type PromptsCreateProjectLabelErrors = {
13019
+ export type PromptsCreatePromptErrors = {
13141
13020
  /**
13142
13021
  * BadRequestError
13143
13022
  */
@@ -13187,14 +13066,14 @@ export type PromptsCreateProjectLabelErrors = {
13187
13066
  */
13188
13067
  503: ServiceUnavailableError;
13189
13068
  };
13190
- export type PromptsCreateProjectLabelError = PromptsCreateProjectLabelErrors[keyof PromptsCreateProjectLabelErrors];
13191
- export type PromptsCreateProjectLabelResponses = {
13069
+ export type PromptsCreatePromptError = PromptsCreatePromptErrors[keyof PromptsCreatePromptErrors];
13070
+ export type PromptsCreatePromptResponses = {
13192
13071
  /**
13193
13072
  * Success
13194
13073
  */
13195
13074
  201: {
13196
13075
  code: number;
13197
- data: ProjectPromptLabel | null;
13076
+ data: Prompt | null;
13198
13077
  error: {
13199
13078
  code: string;
13200
13079
  details?: unknown | null;
@@ -13220,17 +13099,19 @@ export type PromptsCreateProjectLabelResponses = {
13220
13099
  success: boolean;
13221
13100
  };
13222
13101
  };
13223
- export type PromptsCreateProjectLabelResponse = PromptsCreateProjectLabelResponses[keyof PromptsCreateProjectLabelResponses];
13224
- export type PromptsArchiveProjectLabelData = {
13225
- body?: never;
13102
+ export type PromptsCreatePromptResponse = PromptsCreatePromptResponses[keyof PromptsCreatePromptResponses];
13103
+ export type PromptsBulkPromptsData = {
13104
+ body: {
13105
+ action: 'archive' | 'restore';
13106
+ promptIds: Array<string>;
13107
+ };
13226
13108
  path: {
13227
13109
  projectId: string;
13228
- label: string;
13229
13110
  };
13230
13111
  query?: never;
13231
- url: '/v1/projects/{projectId}/prompt-labels/{label}';
13112
+ url: '/v1/projects/{projectId}/prompts/bulk';
13232
13113
  };
13233
- export type PromptsArchiveProjectLabelErrors = {
13114
+ export type PromptsBulkPromptsErrors = {
13234
13115
  /**
13235
13116
  * BadRequestError
13236
13117
  */
@@ -13280,14 +13161,28 @@ export type PromptsArchiveProjectLabelErrors = {
13280
13161
  */
13281
13162
  503: ServiceUnavailableError;
13282
13163
  };
13283
- export type PromptsArchiveProjectLabelError = PromptsArchiveProjectLabelErrors[keyof PromptsArchiveProjectLabelErrors];
13284
- export type PromptsArchiveProjectLabelResponses = {
13164
+ export type PromptsBulkPromptsError = PromptsBulkPromptsErrors[keyof PromptsBulkPromptsErrors];
13165
+ export type PromptsBulkPromptsResponses = {
13285
13166
  /**
13286
13167
  * Success
13287
13168
  */
13288
13169
  200: {
13289
13170
  code: number;
13290
- data: ProjectPromptLabel | null;
13171
+ data: {
13172
+ results: Array<{
13173
+ error?: {
13174
+ code: string;
13175
+ } | null;
13176
+ ok: boolean;
13177
+ prompt?: Prompt | null;
13178
+ promptId: string;
13179
+ }>;
13180
+ summary: {
13181
+ failed: number;
13182
+ succeeded: number;
13183
+ total: number;
13184
+ };
13185
+ } | null;
13291
13186
  error: {
13292
13187
  code: string;
13293
13188
  details?: unknown | null;
@@ -13313,17 +13208,22 @@ export type PromptsArchiveProjectLabelResponses = {
13313
13208
  success: boolean;
13314
13209
  };
13315
13210
  };
13316
- export type PromptsArchiveProjectLabelResponse = PromptsArchiveProjectLabelResponses[keyof PromptsArchiveProjectLabelResponses];
13317
- export type PromptsGetProjectLabelData = {
13318
- body?: never;
13211
+ export type PromptsBulkPromptsResponse = PromptsBulkPromptsResponses[keyof PromptsBulkPromptsResponses];
13212
+ export type PromptsRenderPromptData = {
13213
+ body: {
13214
+ variables?: {
13215
+ [key: string]: unknown;
13216
+ } | null;
13217
+ };
13319
13218
  path: {
13320
13219
  projectId: string;
13220
+ slug: string;
13321
13221
  label: string;
13322
13222
  };
13323
13223
  query?: never;
13324
- url: '/v1/projects/{projectId}/prompt-labels/{label}';
13224
+ url: '/v1/projects/{projectId}/prompts/by-slug/{slug}/labels/{label}/render';
13325
13225
  };
13326
- export type PromptsGetProjectLabelErrors = {
13226
+ export type PromptsRenderPromptErrors = {
13327
13227
  /**
13328
13228
  * BadRequestError
13329
13229
  */
@@ -13373,14 +13273,14 @@ export type PromptsGetProjectLabelErrors = {
13373
13273
  */
13374
13274
  503: ServiceUnavailableError;
13375
13275
  };
13376
- export type PromptsGetProjectLabelError = PromptsGetProjectLabelErrors[keyof PromptsGetProjectLabelErrors];
13377
- export type PromptsGetProjectLabelResponses = {
13276
+ export type PromptsRenderPromptError = PromptsRenderPromptErrors[keyof PromptsRenderPromptErrors];
13277
+ export type PromptsRenderPromptResponses = {
13378
13278
  /**
13379
13279
  * Success
13380
13280
  */
13381
13281
  200: {
13382
13282
  code: number;
13383
- data: ProjectPromptLabel | null;
13283
+ data: ResolvedPrompt | RenderedSkill | null;
13384
13284
  error: {
13385
13285
  code: string;
13386
13286
  details?: unknown | null;
@@ -13406,21 +13306,22 @@ export type PromptsGetProjectLabelResponses = {
13406
13306
  success: boolean;
13407
13307
  };
13408
13308
  };
13409
- export type PromptsGetProjectLabelResponse = PromptsGetProjectLabelResponses[keyof PromptsGetProjectLabelResponses];
13410
- export type PromptsUpdateProjectLabelData = {
13309
+ export type PromptsRenderPromptResponse = PromptsRenderPromptResponses[keyof PromptsRenderPromptResponses];
13310
+ export type PromptsRenderSkillVersionData = {
13411
13311
  body: {
13412
- description?: string | null | null;
13413
- displayColor?: 'accent' | 'red' | 'orange' | 'amber' | 'green' | 'teal' | 'blue' | 'indigo' | 'purple' | 'pink' | null;
13414
- isDefault?: boolean | null;
13312
+ variables?: {
13313
+ [key: string]: unknown;
13314
+ } | null;
13415
13315
  };
13416
13316
  path: {
13417
13317
  projectId: string;
13418
- label: string;
13318
+ slug: string;
13319
+ versionNumber: string;
13419
13320
  };
13420
13321
  query?: never;
13421
- url: '/v1/projects/{projectId}/prompt-labels/{label}';
13322
+ url: '/v1/projects/{projectId}/prompts/by-slug/{slug}/versions/{versionNumber}/render';
13422
13323
  };
13423
- export type PromptsUpdateProjectLabelErrors = {
13324
+ export type PromptsRenderSkillVersionErrors = {
13424
13325
  /**
13425
13326
  * BadRequestError
13426
13327
  */
@@ -13470,14 +13371,14 @@ export type PromptsUpdateProjectLabelErrors = {
13470
13371
  */
13471
13372
  503: ServiceUnavailableError;
13472
13373
  };
13473
- export type PromptsUpdateProjectLabelError = PromptsUpdateProjectLabelErrors[keyof PromptsUpdateProjectLabelErrors];
13474
- export type PromptsUpdateProjectLabelResponses = {
13374
+ export type PromptsRenderSkillVersionError = PromptsRenderSkillVersionErrors[keyof PromptsRenderSkillVersionErrors];
13375
+ export type PromptsRenderSkillVersionResponses = {
13475
13376
  /**
13476
13377
  * Success
13477
13378
  */
13478
13379
  200: {
13479
13380
  code: number;
13480
- data: ProjectPromptLabel | null;
13381
+ data: RenderedSkillVersion | null;
13481
13382
  error: {
13482
13383
  code: string;
13483
13384
  details?: unknown | null;
@@ -13503,20 +13404,18 @@ export type PromptsUpdateProjectLabelResponses = {
13503
13404
  success: boolean;
13504
13405
  };
13505
13406
  };
13506
- export type PromptsUpdateProjectLabelResponse = PromptsUpdateProjectLabelResponses[keyof PromptsUpdateProjectLabelResponses];
13507
- export type PromptsListProjectLabelUsagesData = {
13407
+ export type PromptsRenderSkillVersionResponse = PromptsRenderSkillVersionResponses[keyof PromptsRenderSkillVersionResponses];
13408
+ export type PromptsGetPromptDirectorySummaryData = {
13508
13409
  body?: never;
13509
13410
  path: {
13510
13411
  projectId: string;
13511
- label: string;
13512
13412
  };
13513
13413
  query?: {
13514
- page?: number | null;
13515
- limit?: number | null;
13414
+ kind?: string | null;
13516
13415
  };
13517
- url: '/v1/projects/{projectId}/prompt-labels/{label}/usages';
13416
+ url: '/v1/projects/{projectId}/prompts/summary';
13518
13417
  };
13519
- export type PromptsListProjectLabelUsagesErrors = {
13418
+ export type PromptsGetPromptDirectorySummaryErrors = {
13520
13419
  /**
13521
13420
  * BadRequestError
13522
13421
  */
@@ -13566,14 +13465,24 @@ export type PromptsListProjectLabelUsagesErrors = {
13566
13465
  */
13567
13466
  503: ServiceUnavailableError;
13568
13467
  };
13569
- export type PromptsListProjectLabelUsagesError = PromptsListProjectLabelUsagesErrors[keyof PromptsListProjectLabelUsagesErrors];
13570
- export type PromptsListProjectLabelUsagesResponses = {
13468
+ export type PromptsGetPromptDirectorySummaryError = PromptsGetPromptDirectorySummaryErrors[keyof PromptsGetPromptDirectorySummaryErrors];
13469
+ export type PromptsGetPromptDirectorySummaryResponses = {
13571
13470
  /**
13572
13471
  * Success
13573
13472
  */
13574
13473
  200: {
13575
13474
  code: number;
13576
- data: Array<ProjectPromptLabelUsage> | null;
13475
+ data: {
13476
+ fetches24h: {
13477
+ count: number;
13478
+ deltaPctVsPrev: number;
13479
+ } | null;
13480
+ prompts: {
13481
+ archived: number;
13482
+ published: number;
13483
+ total: number;
13484
+ };
13485
+ } | null;
13577
13486
  error: {
13578
13487
  code: string;
13579
13488
  details?: unknown | null;
@@ -13599,852 +13508,17 @@ export type PromptsListProjectLabelUsagesResponses = {
13599
13508
  success: boolean;
13600
13509
  };
13601
13510
  };
13602
- export type PromptsListProjectLabelUsagesResponse = PromptsListProjectLabelUsagesResponses[keyof PromptsListProjectLabelUsagesResponses];
13603
- export type PromptsListPromptsData = {
13511
+ export type PromptsGetPromptDirectorySummaryResponse = PromptsGetPromptDirectorySummaryResponses[keyof PromptsGetPromptDirectorySummaryResponses];
13512
+ export type PromptsArchivePromptData = {
13604
13513
  body?: never;
13605
13514
  path: {
13606
13515
  projectId: string;
13607
- };
13608
- query?: {
13609
- page?: number | null;
13610
- limit?: number | null;
13611
- search?: string | null;
13612
- sortDir?: 'asc' | 'desc' | null;
13613
- status?: string | null;
13614
- kind?: string | null;
13615
- sortBy?: 'createdAt' | 'updatedAt' | 'name' | 'status' | 'latestVersion' | 'environments' | null;
13616
- tags?: string | null;
13617
- environment?: string | null;
13618
- };
13619
- url: '/v1/projects/{projectId}/prompts';
13620
- };
13621
- export type PromptsListPromptsErrors = {
13622
- /**
13623
- * BadRequestError
13624
- */
13625
- 400: BadRequestError;
13626
- /**
13627
- * UnauthorizedError
13628
- */
13629
- 401: UnauthorizedError;
13630
- /**
13631
- * ForbiddenError
13632
- */
13633
- 403: ForbiddenError;
13634
- /**
13635
- * NotFoundError
13636
- */
13637
- 404: NotFoundError;
13638
- /**
13639
- * ConflictError
13640
- */
13641
- 409: ConflictError;
13642
- /**
13643
- * GoneError
13644
- */
13645
- 410: GoneError;
13646
- /**
13647
- * ContentTooLargeError
13648
- */
13649
- 413: ContentTooLargeError;
13650
- /**
13651
- * MisdirectedRequestError
13652
- */
13653
- 421: MisdirectedRequestError;
13654
- /**
13655
- * UnprocessableEntityError
13656
- */
13657
- 422: UnprocessableEntityError;
13658
- /**
13659
- * TooManyRequestsError
13660
- */
13661
- 429: TooManyRequestsError;
13662
- /**
13663
- * InternalServerError
13664
- */
13665
- 500: InternalServerError;
13666
- /**
13667
- * ServiceUnavailableError
13668
- */
13669
- 503: ServiceUnavailableError;
13670
- };
13671
- export type PromptsListPromptsError = PromptsListPromptsErrors[keyof PromptsListPromptsErrors];
13672
- export type PromptsListPromptsResponses = {
13673
- /**
13674
- * Success
13675
- */
13676
- 200: {
13677
- code: number;
13678
- data: Array<{
13679
- createdAt: string;
13680
- createdByUserId: string;
13681
- description: string | null;
13682
- id: string;
13683
- kind: 'chat' | 'skill';
13684
- labels: Array<{
13685
- label: string;
13686
- version: number | null;
13687
- weighted?: {
13688
- split: string;
13689
- variants: number;
13690
- } | null | null;
13691
- }>;
13692
- lastModifiedAt: string;
13693
- lastModifiedByDisplayName: string | null;
13694
- lastModifiedByImage: string | null;
13695
- lastModifiedByType: 'user' | 'api_key' | 'unknown' | null;
13696
- lastModifiedByUserId: string | null;
13697
- latestVersion: number | null;
13698
- name: string;
13699
- projectId: string;
13700
- slug: string;
13701
- status: 'active' | 'archived';
13702
- tags: Array<string>;
13703
- updatedAt: string;
13704
- }> | null;
13705
- error: {
13706
- code: string;
13707
- details?: unknown | null;
13708
- message: string;
13709
- rowErrors?: Array<{
13710
- code: string;
13711
- message: string;
13712
- path: Array<string | number>;
13713
- }> | null;
13714
- } | null;
13715
- pagination: {
13716
- limit: number;
13717
- page: number;
13718
- total: number;
13719
- totalPages: number;
13720
- } | null;
13721
- sdkBehavior?: {
13722
- flags: {
13723
- [key: string]: unknown;
13724
- };
13725
- v: number;
13726
- } | null;
13727
- success: boolean;
13728
- };
13729
- };
13730
- export type PromptsListPromptsResponse = PromptsListPromptsResponses[keyof PromptsListPromptsResponses];
13731
- export type PromptsCreatePromptData = {
13732
- body: {
13733
- description?: string | null;
13734
- kind?: 'chat' | 'skill' | null;
13735
- name: string;
13736
- slug: string;
13737
- tags?: Array<string> | null;
13738
- };
13739
- path: {
13740
- projectId: string;
13741
- };
13742
- query?: never;
13743
- url: '/v1/projects/{projectId}/prompts';
13744
- };
13745
- export type PromptsCreatePromptErrors = {
13746
- /**
13747
- * BadRequestError
13748
- */
13749
- 400: BadRequestError;
13750
- /**
13751
- * UnauthorizedError
13752
- */
13753
- 401: UnauthorizedError;
13754
- /**
13755
- * ForbiddenError
13756
- */
13757
- 403: ForbiddenError;
13758
- /**
13759
- * NotFoundError
13760
- */
13761
- 404: NotFoundError;
13762
- /**
13763
- * ConflictError
13764
- */
13765
- 409: ConflictError;
13766
- /**
13767
- * GoneError
13768
- */
13769
- 410: GoneError;
13770
- /**
13771
- * ContentTooLargeError
13772
- */
13773
- 413: ContentTooLargeError;
13774
- /**
13775
- * MisdirectedRequestError
13776
- */
13777
- 421: MisdirectedRequestError;
13778
- /**
13779
- * UnprocessableEntityError
13780
- */
13781
- 422: UnprocessableEntityError;
13782
- /**
13783
- * TooManyRequestsError
13784
- */
13785
- 429: TooManyRequestsError;
13786
- /**
13787
- * InternalServerError
13788
- */
13789
- 500: InternalServerError;
13790
- /**
13791
- * ServiceUnavailableError
13792
- */
13793
- 503: ServiceUnavailableError;
13794
- };
13795
- export type PromptsCreatePromptError = PromptsCreatePromptErrors[keyof PromptsCreatePromptErrors];
13796
- export type PromptsCreatePromptResponses = {
13797
- /**
13798
- * Success
13799
- */
13800
- 201: {
13801
- code: number;
13802
- data: Prompt | null;
13803
- error: {
13804
- code: string;
13805
- details?: unknown | null;
13806
- message: string;
13807
- rowErrors?: Array<{
13808
- code: string;
13809
- message: string;
13810
- path: Array<string | number>;
13811
- }> | null;
13812
- } | null;
13813
- pagination: {
13814
- limit: number;
13815
- page: number;
13816
- total: number;
13817
- totalPages: number;
13818
- } | null;
13819
- sdkBehavior?: {
13820
- flags: {
13821
- [key: string]: unknown;
13822
- };
13823
- v: number;
13824
- } | null;
13825
- success: boolean;
13826
- };
13827
- };
13828
- export type PromptsCreatePromptResponse = PromptsCreatePromptResponses[keyof PromptsCreatePromptResponses];
13829
- export type PromptsBulkPromptsData = {
13830
- body: {
13831
- action: 'archive' | 'restore';
13832
- promptIds: Array<string>;
13833
- };
13834
- path: {
13835
- projectId: string;
13836
- };
13837
- query?: never;
13838
- url: '/v1/projects/{projectId}/prompts/bulk';
13839
- };
13840
- export type PromptsBulkPromptsErrors = {
13841
- /**
13842
- * BadRequestError
13843
- */
13844
- 400: BadRequestError;
13845
- /**
13846
- * UnauthorizedError
13847
- */
13848
- 401: UnauthorizedError;
13849
- /**
13850
- * ForbiddenError
13851
- */
13852
- 403: ForbiddenError;
13853
- /**
13854
- * NotFoundError
13855
- */
13856
- 404: NotFoundError;
13857
- /**
13858
- * ConflictError
13859
- */
13860
- 409: ConflictError;
13861
- /**
13862
- * GoneError
13863
- */
13864
- 410: GoneError;
13865
- /**
13866
- * ContentTooLargeError
13867
- */
13868
- 413: ContentTooLargeError;
13869
- /**
13870
- * MisdirectedRequestError
13871
- */
13872
- 421: MisdirectedRequestError;
13873
- /**
13874
- * UnprocessableEntityError
13875
- */
13876
- 422: UnprocessableEntityError;
13877
- /**
13878
- * TooManyRequestsError
13879
- */
13880
- 429: TooManyRequestsError;
13881
- /**
13882
- * InternalServerError
13883
- */
13884
- 500: InternalServerError;
13885
- /**
13886
- * ServiceUnavailableError
13887
- */
13888
- 503: ServiceUnavailableError;
13889
- };
13890
- export type PromptsBulkPromptsError = PromptsBulkPromptsErrors[keyof PromptsBulkPromptsErrors];
13891
- export type PromptsBulkPromptsResponses = {
13892
- /**
13893
- * Success
13894
- */
13895
- 200: {
13896
- code: number;
13897
- data: {
13898
- results: Array<{
13899
- error?: {
13900
- code: string;
13901
- } | null;
13902
- ok: boolean;
13903
- prompt?: Prompt | null;
13904
- promptId: string;
13905
- }>;
13906
- summary: {
13907
- failed: number;
13908
- succeeded: number;
13909
- total: number;
13910
- };
13911
- } | null;
13912
- error: {
13913
- code: string;
13914
- details?: unknown | null;
13915
- message: string;
13916
- rowErrors?: Array<{
13917
- code: string;
13918
- message: string;
13919
- path: Array<string | number>;
13920
- }> | null;
13921
- } | null;
13922
- pagination: {
13923
- limit: number;
13924
- page: number;
13925
- total: number;
13926
- totalPages: number;
13927
- } | null;
13928
- sdkBehavior?: {
13929
- flags: {
13930
- [key: string]: unknown;
13931
- };
13932
- v: number;
13933
- } | null;
13934
- success: boolean;
13935
- };
13936
- };
13937
- export type PromptsBulkPromptsResponse = PromptsBulkPromptsResponses[keyof PromptsBulkPromptsResponses];
13938
- export type PromptsRenderPromptData = {
13939
- body: {
13940
- variables?: {
13941
- [key: string]: unknown;
13942
- } | null;
13943
- };
13944
- path: {
13945
- projectId: string;
13946
- slug: string;
13947
- label: string;
13948
- };
13949
- query?: never;
13950
- url: '/v1/projects/{projectId}/prompts/by-slug/{slug}/labels/{label}/render';
13951
- };
13952
- export type PromptsRenderPromptErrors = {
13953
- /**
13954
- * BadRequestError
13955
- */
13956
- 400: BadRequestError;
13957
- /**
13958
- * UnauthorizedError
13959
- */
13960
- 401: UnauthorizedError;
13961
- /**
13962
- * ForbiddenError
13963
- */
13964
- 403: ForbiddenError;
13965
- /**
13966
- * NotFoundError
13967
- */
13968
- 404: NotFoundError;
13969
- /**
13970
- * ConflictError
13971
- */
13972
- 409: ConflictError;
13973
- /**
13974
- * GoneError
13975
- */
13976
- 410: GoneError;
13977
- /**
13978
- * ContentTooLargeError
13979
- */
13980
- 413: ContentTooLargeError;
13981
- /**
13982
- * MisdirectedRequestError
13983
- */
13984
- 421: MisdirectedRequestError;
13985
- /**
13986
- * UnprocessableEntityError
13987
- */
13988
- 422: UnprocessableEntityError;
13989
- /**
13990
- * TooManyRequestsError
13991
- */
13992
- 429: TooManyRequestsError;
13993
- /**
13994
- * InternalServerError
13995
- */
13996
- 500: InternalServerError;
13997
- /**
13998
- * ServiceUnavailableError
13999
- */
14000
- 503: ServiceUnavailableError;
14001
- };
14002
- export type PromptsRenderPromptError = PromptsRenderPromptErrors[keyof PromptsRenderPromptErrors];
14003
- export type PromptsRenderPromptResponses = {
14004
- /**
14005
- * Success
14006
- */
14007
- 200: {
14008
- code: number;
14009
- data: ResolvedPrompt | RenderedSkill | null;
14010
- error: {
14011
- code: string;
14012
- details?: unknown | null;
14013
- message: string;
14014
- rowErrors?: Array<{
14015
- code: string;
14016
- message: string;
14017
- path: Array<string | number>;
14018
- }> | null;
14019
- } | null;
14020
- pagination: {
14021
- limit: number;
14022
- page: number;
14023
- total: number;
14024
- totalPages: number;
14025
- } | null;
14026
- sdkBehavior?: {
14027
- flags: {
14028
- [key: string]: unknown;
14029
- };
14030
- v: number;
14031
- } | null;
14032
- success: boolean;
14033
- };
14034
- };
14035
- export type PromptsRenderPromptResponse = PromptsRenderPromptResponses[keyof PromptsRenderPromptResponses];
14036
- export type PromptsRenderSkillVersionData = {
14037
- body: {
14038
- variables?: {
14039
- [key: string]: unknown;
14040
- } | null;
14041
- };
14042
- path: {
14043
- projectId: string;
14044
- slug: string;
14045
- versionNumber: string;
14046
- };
14047
- query?: never;
14048
- url: '/v1/projects/{projectId}/prompts/by-slug/{slug}/versions/{versionNumber}/render';
14049
- };
14050
- export type PromptsRenderSkillVersionErrors = {
14051
- /**
14052
- * BadRequestError
14053
- */
14054
- 400: BadRequestError;
14055
- /**
14056
- * UnauthorizedError
14057
- */
14058
- 401: UnauthorizedError;
14059
- /**
14060
- * ForbiddenError
14061
- */
14062
- 403: ForbiddenError;
14063
- /**
14064
- * NotFoundError
14065
- */
14066
- 404: NotFoundError;
14067
- /**
14068
- * ConflictError
14069
- */
14070
- 409: ConflictError;
14071
- /**
14072
- * GoneError
14073
- */
14074
- 410: GoneError;
14075
- /**
14076
- * ContentTooLargeError
14077
- */
14078
- 413: ContentTooLargeError;
14079
- /**
14080
- * MisdirectedRequestError
14081
- */
14082
- 421: MisdirectedRequestError;
14083
- /**
14084
- * UnprocessableEntityError
14085
- */
14086
- 422: UnprocessableEntityError;
14087
- /**
14088
- * TooManyRequestsError
14089
- */
14090
- 429: TooManyRequestsError;
14091
- /**
14092
- * InternalServerError
14093
- */
14094
- 500: InternalServerError;
14095
- /**
14096
- * ServiceUnavailableError
14097
- */
14098
- 503: ServiceUnavailableError;
14099
- };
14100
- export type PromptsRenderSkillVersionError = PromptsRenderSkillVersionErrors[keyof PromptsRenderSkillVersionErrors];
14101
- export type PromptsRenderSkillVersionResponses = {
14102
- /**
14103
- * Success
14104
- */
14105
- 200: {
14106
- code: number;
14107
- data: RenderedSkillVersion | null;
14108
- error: {
14109
- code: string;
14110
- details?: unknown | null;
14111
- message: string;
14112
- rowErrors?: Array<{
14113
- code: string;
14114
- message: string;
14115
- path: Array<string | number>;
14116
- }> | null;
14117
- } | null;
14118
- pagination: {
14119
- limit: number;
14120
- page: number;
14121
- total: number;
14122
- totalPages: number;
14123
- } | null;
14124
- sdkBehavior?: {
14125
- flags: {
14126
- [key: string]: unknown;
14127
- };
14128
- v: number;
14129
- } | null;
14130
- success: boolean;
14131
- };
14132
- };
14133
- export type PromptsRenderSkillVersionResponse = PromptsRenderSkillVersionResponses[keyof PromptsRenderSkillVersionResponses];
14134
- export type PromptsGetPromptDirectorySummaryData = {
14135
- body?: never;
14136
- path: {
14137
- projectId: string;
14138
- };
14139
- query?: {
14140
- kind?: string | null;
14141
- };
14142
- url: '/v1/projects/{projectId}/prompts/summary';
14143
- };
14144
- export type PromptsGetPromptDirectorySummaryErrors = {
14145
- /**
14146
- * BadRequestError
14147
- */
14148
- 400: BadRequestError;
14149
- /**
14150
- * UnauthorizedError
14151
- */
14152
- 401: UnauthorizedError;
14153
- /**
14154
- * ForbiddenError
14155
- */
14156
- 403: ForbiddenError;
14157
- /**
14158
- * NotFoundError
14159
- */
14160
- 404: NotFoundError;
14161
- /**
14162
- * ConflictError
14163
- */
14164
- 409: ConflictError;
14165
- /**
14166
- * GoneError
14167
- */
14168
- 410: GoneError;
14169
- /**
14170
- * ContentTooLargeError
14171
- */
14172
- 413: ContentTooLargeError;
14173
- /**
14174
- * MisdirectedRequestError
14175
- */
14176
- 421: MisdirectedRequestError;
14177
- /**
14178
- * UnprocessableEntityError
14179
- */
14180
- 422: UnprocessableEntityError;
14181
- /**
14182
- * TooManyRequestsError
14183
- */
14184
- 429: TooManyRequestsError;
14185
- /**
14186
- * InternalServerError
14187
- */
14188
- 500: InternalServerError;
14189
- /**
14190
- * ServiceUnavailableError
14191
- */
14192
- 503: ServiceUnavailableError;
14193
- };
14194
- export type PromptsGetPromptDirectorySummaryError = PromptsGetPromptDirectorySummaryErrors[keyof PromptsGetPromptDirectorySummaryErrors];
14195
- export type PromptsGetPromptDirectorySummaryResponses = {
14196
- /**
14197
- * Success
14198
- */
14199
- 200: {
14200
- code: number;
14201
- data: {
14202
- activeReleases: {
14203
- count: number;
14204
- environmentCount: number;
14205
- };
14206
- fetches24h: {
14207
- count: number;
14208
- deltaPctVsPrev: number;
14209
- } | null;
14210
- prompts: {
14211
- archived: number;
14212
- published: number;
14213
- total: number;
14214
- };
14215
- rollbacks30d: {
14216
- count: number;
14217
- promotions: number;
14218
- };
14219
- } | null;
14220
- error: {
14221
- code: string;
14222
- details?: unknown | null;
14223
- message: string;
14224
- rowErrors?: Array<{
14225
- code: string;
14226
- message: string;
14227
- path: Array<string | number>;
14228
- }> | null;
14229
- } | null;
14230
- pagination: {
14231
- limit: number;
14232
- page: number;
14233
- total: number;
14234
- totalPages: number;
14235
- } | null;
14236
- sdkBehavior?: {
14237
- flags: {
14238
- [key: string]: unknown;
14239
- };
14240
- v: number;
14241
- } | null;
14242
- success: boolean;
14243
- };
14244
- };
14245
- export type PromptsGetPromptDirectorySummaryResponse = PromptsGetPromptDirectorySummaryResponses[keyof PromptsGetPromptDirectorySummaryResponses];
14246
- export type PromptsArchivePromptData = {
14247
- body?: never;
14248
- path: {
14249
- projectId: string;
14250
- promptId: string;
14251
- };
14252
- query?: never;
14253
- url: '/v1/projects/{projectId}/prompts/{promptId}';
14254
- };
14255
- export type PromptsArchivePromptErrors = {
14256
- /**
14257
- * BadRequestError
14258
- */
14259
- 400: BadRequestError;
14260
- /**
14261
- * UnauthorizedError
14262
- */
14263
- 401: UnauthorizedError;
14264
- /**
14265
- * ForbiddenError
14266
- */
14267
- 403: ForbiddenError;
14268
- /**
14269
- * NotFoundError
14270
- */
14271
- 404: NotFoundError;
14272
- /**
14273
- * ConflictError
14274
- */
14275
- 409: ConflictError;
14276
- /**
14277
- * GoneError
14278
- */
14279
- 410: GoneError;
14280
- /**
14281
- * ContentTooLargeError
14282
- */
14283
- 413: ContentTooLargeError;
14284
- /**
14285
- * MisdirectedRequestError
14286
- */
14287
- 421: MisdirectedRequestError;
14288
- /**
14289
- * UnprocessableEntityError
14290
- */
14291
- 422: UnprocessableEntityError;
14292
- /**
14293
- * TooManyRequestsError
14294
- */
14295
- 429: TooManyRequestsError;
14296
- /**
14297
- * InternalServerError
14298
- */
14299
- 500: InternalServerError;
14300
- /**
14301
- * ServiceUnavailableError
14302
- */
14303
- 503: ServiceUnavailableError;
14304
- };
14305
- export type PromptsArchivePromptError = PromptsArchivePromptErrors[keyof PromptsArchivePromptErrors];
14306
- export type PromptsArchivePromptResponses = {
14307
- /**
14308
- * Success
14309
- */
14310
- 200: {
14311
- code: number;
14312
- data: Prompt | null;
14313
- error: {
14314
- code: string;
14315
- details?: unknown | null;
14316
- message: string;
14317
- rowErrors?: Array<{
14318
- code: string;
14319
- message: string;
14320
- path: Array<string | number>;
14321
- }> | null;
14322
- } | null;
14323
- pagination: {
14324
- limit: number;
14325
- page: number;
14326
- total: number;
14327
- totalPages: number;
14328
- } | null;
14329
- sdkBehavior?: {
14330
- flags: {
14331
- [key: string]: unknown;
14332
- };
14333
- v: number;
14334
- } | null;
14335
- success: boolean;
14336
- };
14337
- };
14338
- export type PromptsArchivePromptResponse = PromptsArchivePromptResponses[keyof PromptsArchivePromptResponses];
14339
- export type PromptsGetPromptData = {
14340
- body?: never;
14341
- path: {
14342
- projectId: string;
14343
- promptId: string;
14344
- };
14345
- query?: never;
14346
- url: '/v1/projects/{projectId}/prompts/{promptId}';
14347
- };
14348
- export type PromptsGetPromptErrors = {
14349
- /**
14350
- * BadRequestError
14351
- */
14352
- 400: BadRequestError;
14353
- /**
14354
- * UnauthorizedError
14355
- */
14356
- 401: UnauthorizedError;
14357
- /**
14358
- * ForbiddenError
14359
- */
14360
- 403: ForbiddenError;
14361
- /**
14362
- * NotFoundError
14363
- */
14364
- 404: NotFoundError;
14365
- /**
14366
- * ConflictError
14367
- */
14368
- 409: ConflictError;
14369
- /**
14370
- * GoneError
14371
- */
14372
- 410: GoneError;
14373
- /**
14374
- * ContentTooLargeError
14375
- */
14376
- 413: ContentTooLargeError;
14377
- /**
14378
- * MisdirectedRequestError
14379
- */
14380
- 421: MisdirectedRequestError;
14381
- /**
14382
- * UnprocessableEntityError
14383
- */
14384
- 422: UnprocessableEntityError;
14385
- /**
14386
- * TooManyRequestsError
14387
- */
14388
- 429: TooManyRequestsError;
14389
- /**
14390
- * InternalServerError
14391
- */
14392
- 500: InternalServerError;
14393
- /**
14394
- * ServiceUnavailableError
14395
- */
14396
- 503: ServiceUnavailableError;
14397
- };
14398
- export type PromptsGetPromptError = PromptsGetPromptErrors[keyof PromptsGetPromptErrors];
14399
- export type PromptsGetPromptResponses = {
14400
- /**
14401
- * Success
14402
- */
14403
- 200: {
14404
- code: number;
14405
- data: Prompt | null;
14406
- error: {
14407
- code: string;
14408
- details?: unknown | null;
14409
- message: string;
14410
- rowErrors?: Array<{
14411
- code: string;
14412
- message: string;
14413
- path: Array<string | number>;
14414
- }> | null;
14415
- } | null;
14416
- pagination: {
14417
- limit: number;
14418
- page: number;
14419
- total: number;
14420
- totalPages: number;
14421
- } | null;
14422
- sdkBehavior?: {
14423
- flags: {
14424
- [key: string]: unknown;
14425
- };
14426
- v: number;
14427
- } | null;
14428
- success: boolean;
14429
- };
14430
- };
14431
- export type PromptsGetPromptResponse = PromptsGetPromptResponses[keyof PromptsGetPromptResponses];
14432
- export type PromptsUpdatePromptData = {
14433
- body: {
14434
- description?: string | null | null;
14435
- name?: string | null;
14436
- slug?: string | null;
14437
- status?: 'active' | 'archived' | null;
14438
- tags?: Array<string> | null;
14439
- };
14440
- path: {
14441
- projectId: string;
14442
- promptId: string;
13516
+ promptId: string;
14443
13517
  };
14444
13518
  query?: never;
14445
13519
  url: '/v1/projects/{projectId}/prompts/{promptId}';
14446
13520
  };
14447
- export type PromptsUpdatePromptErrors = {
13521
+ export type PromptsArchivePromptErrors = {
14448
13522
  /**
14449
13523
  * BadRequestError
14450
13524
  */
@@ -14494,8 +13568,8 @@ export type PromptsUpdatePromptErrors = {
14494
13568
  */
14495
13569
  503: ServiceUnavailableError;
14496
13570
  };
14497
- export type PromptsUpdatePromptError = PromptsUpdatePromptErrors[keyof PromptsUpdatePromptErrors];
14498
- export type PromptsUpdatePromptResponses = {
13571
+ export type PromptsArchivePromptError = PromptsArchivePromptErrors[keyof PromptsArchivePromptErrors];
13572
+ export type PromptsArchivePromptResponses = {
14499
13573
  /**
14500
13574
  * Success
14501
13575
  */
@@ -14527,117 +13601,17 @@ export type PromptsUpdatePromptResponses = {
14527
13601
  success: boolean;
14528
13602
  };
14529
13603
  };
14530
- export type PromptsUpdatePromptResponse = PromptsUpdatePromptResponses[keyof PromptsUpdatePromptResponses];
14531
- export type PromptsImportPromptVersionData = {
14532
- body: ImportPromptVersionInput;
14533
- path: {
14534
- projectId: string;
14535
- promptId: string;
14536
- };
14537
- query?: never;
14538
- url: '/v1/projects/{projectId}/prompts/{promptId}/imports';
14539
- };
14540
- export type PromptsImportPromptVersionErrors = {
14541
- /**
14542
- * BadRequestError
14543
- */
14544
- 400: BadRequestError;
14545
- /**
14546
- * UnauthorizedError
14547
- */
14548
- 401: UnauthorizedError;
14549
- /**
14550
- * ForbiddenError
14551
- */
14552
- 403: ForbiddenError;
14553
- /**
14554
- * NotFoundError
14555
- */
14556
- 404: NotFoundError;
14557
- /**
14558
- * ConflictError
14559
- */
14560
- 409: ConflictError;
14561
- /**
14562
- * GoneError
14563
- */
14564
- 410: GoneError;
14565
- /**
14566
- * ContentTooLargeError
14567
- */
14568
- 413: ContentTooLargeError;
14569
- /**
14570
- * MisdirectedRequestError
14571
- */
14572
- 421: MisdirectedRequestError;
14573
- /**
14574
- * UnprocessableEntityError
14575
- */
14576
- 422: UnprocessableEntityError;
14577
- /**
14578
- * TooManyRequestsError
14579
- */
14580
- 429: TooManyRequestsError;
14581
- /**
14582
- * InternalServerError
14583
- */
14584
- 500: InternalServerError;
14585
- /**
14586
- * ServiceUnavailableError
14587
- */
14588
- 503: ServiceUnavailableError;
14589
- };
14590
- export type PromptsImportPromptVersionError = PromptsImportPromptVersionErrors[keyof PromptsImportPromptVersionErrors];
14591
- export type PromptsImportPromptVersionResponses = {
14592
- /**
14593
- * Success
14594
- */
14595
- 201: {
14596
- code: number;
14597
- data: PromptVersion | null;
14598
- error: {
14599
- code: string;
14600
- details?: unknown | null;
14601
- message: string;
14602
- rowErrors?: Array<{
14603
- code: string;
14604
- message: string;
14605
- path: Array<string | number>;
14606
- }> | null;
14607
- } | null;
14608
- pagination: {
14609
- limit: number;
14610
- page: number;
14611
- total: number;
14612
- totalPages: number;
14613
- } | null;
14614
- sdkBehavior?: {
14615
- flags: {
14616
- [key: string]: unknown;
14617
- };
14618
- v: number;
14619
- } | null;
14620
- success: boolean;
14621
- };
14622
- };
14623
- export type PromptsImportPromptVersionResponse = PromptsImportPromptVersionResponses[keyof PromptsImportPromptVersionResponses];
14624
- export type PromptsListPromptLabelEventsByPromptData = {
13604
+ export type PromptsArchivePromptResponse = PromptsArchivePromptResponses[keyof PromptsArchivePromptResponses];
13605
+ export type PromptsGetPromptData = {
14625
13606
  body?: never;
14626
13607
  path: {
14627
13608
  projectId: string;
14628
13609
  promptId: string;
14629
13610
  };
14630
- query?: {
14631
- page?: string | null;
14632
- limit?: string | null;
14633
- label?: string | null;
14634
- promptId?: string | null;
14635
- since?: string | null;
14636
- until?: string | null;
14637
- };
14638
- url: '/v1/projects/{projectId}/prompts/{promptId}/label-events';
13611
+ query?: never;
13612
+ url: '/v1/projects/{projectId}/prompts/{promptId}';
14639
13613
  };
14640
- export type PromptsListPromptLabelEventsByPromptErrors = {
13614
+ export type PromptsGetPromptErrors = {
14641
13615
  /**
14642
13616
  * BadRequestError
14643
13617
  */
@@ -14687,22 +13661,14 @@ export type PromptsListPromptLabelEventsByPromptErrors = {
14687
13661
  */
14688
13662
  503: ServiceUnavailableError;
14689
13663
  };
14690
- export type PromptsListPromptLabelEventsByPromptError = PromptsListPromptLabelEventsByPromptErrors[keyof PromptsListPromptLabelEventsByPromptErrors];
14691
- export type PromptsListPromptLabelEventsByPromptResponses = {
13664
+ export type PromptsGetPromptError = PromptsGetPromptErrors[keyof PromptsGetPromptErrors];
13665
+ export type PromptsGetPromptResponses = {
14692
13666
  /**
14693
13667
  * Success
14694
13668
  */
14695
13669
  200: {
14696
13670
  code: number;
14697
- data: {
14698
- items: Array<PromptLabelEvent>;
14699
- pagination: {
14700
- limit: number;
14701
- page: number;
14702
- total: number;
14703
- totalPages: number;
14704
- };
14705
- } | null;
13671
+ data: Prompt | null;
14706
13672
  error: {
14707
13673
  code: string;
14708
13674
  details?: unknown | null;
@@ -14728,21 +13694,23 @@ export type PromptsListPromptLabelEventsByPromptResponses = {
14728
13694
  success: boolean;
14729
13695
  };
14730
13696
  };
14731
- export type PromptsListPromptLabelEventsByPromptResponse = PromptsListPromptLabelEventsByPromptResponses[keyof PromptsListPromptLabelEventsByPromptResponses];
14732
- export type PromptsListPromptLabelsData = {
14733
- body?: never;
13697
+ export type PromptsGetPromptResponse = PromptsGetPromptResponses[keyof PromptsGetPromptResponses];
13698
+ export type PromptsUpdatePromptData = {
13699
+ body: {
13700
+ description?: string | null | null;
13701
+ name?: string | null;
13702
+ slug?: string | null;
13703
+ status?: 'active' | 'archived' | null;
13704
+ tags?: Array<string> | null;
13705
+ };
14734
13706
  path: {
14735
13707
  projectId: string;
14736
13708
  promptId: string;
14737
13709
  };
14738
- query?: {
14739
- asOf?: string | null;
14740
- page?: number | null;
14741
- limit?: number | null;
14742
- };
14743
- url: '/v1/projects/{projectId}/prompts/{promptId}/labels';
13710
+ query?: never;
13711
+ url: '/v1/projects/{projectId}/prompts/{promptId}';
14744
13712
  };
14745
- export type PromptsListPromptLabelsErrors = {
13713
+ export type PromptsUpdatePromptErrors = {
14746
13714
  /**
14747
13715
  * BadRequestError
14748
13716
  */
@@ -14792,14 +13760,14 @@ export type PromptsListPromptLabelsErrors = {
14792
13760
  */
14793
13761
  503: ServiceUnavailableError;
14794
13762
  };
14795
- export type PromptsListPromptLabelsError = PromptsListPromptLabelsErrors[keyof PromptsListPromptLabelsErrors];
14796
- export type PromptsListPromptLabelsResponses = {
13763
+ export type PromptsUpdatePromptError = PromptsUpdatePromptErrors[keyof PromptsUpdatePromptErrors];
13764
+ export type PromptsUpdatePromptResponses = {
14797
13765
  /**
14798
13766
  * Success
14799
13767
  */
14800
13768
  200: {
14801
13769
  code: number;
14802
- data: Array<PromptLabelPointer> | null;
13770
+ data: Prompt | null;
14803
13771
  error: {
14804
13772
  code: string;
14805
13773
  details?: unknown | null;
@@ -14825,21 +13793,17 @@ export type PromptsListPromptLabelsResponses = {
14825
13793
  success: boolean;
14826
13794
  };
14827
13795
  };
14828
- export type PromptsListPromptLabelsResponse = PromptsListPromptLabelsResponses[keyof PromptsListPromptLabelsResponses];
14829
- export type PromptsMovePromptLabelData = {
14830
- body: {
14831
- reason: string;
14832
- versionId: string;
14833
- };
13796
+ export type PromptsUpdatePromptResponse = PromptsUpdatePromptResponses[keyof PromptsUpdatePromptResponses];
13797
+ export type PromptsImportPromptVersionData = {
13798
+ body: ImportPromptVersionInput;
14834
13799
  path: {
14835
13800
  projectId: string;
14836
13801
  promptId: string;
14837
- label: string;
14838
13802
  };
14839
13803
  query?: never;
14840
- url: '/v1/projects/{projectId}/prompts/{promptId}/labels/{label}';
13804
+ url: '/v1/projects/{projectId}/prompts/{promptId}/imports';
14841
13805
  };
14842
- export type PromptsMovePromptLabelErrors = {
13806
+ export type PromptsImportPromptVersionErrors = {
14843
13807
  /**
14844
13808
  * BadRequestError
14845
13809
  */
@@ -14889,14 +13853,14 @@ export type PromptsMovePromptLabelErrors = {
14889
13853
  */
14890
13854
  503: ServiceUnavailableError;
14891
13855
  };
14892
- export type PromptsMovePromptLabelError = PromptsMovePromptLabelErrors[keyof PromptsMovePromptLabelErrors];
14893
- export type PromptsMovePromptLabelResponses = {
13856
+ export type PromptsImportPromptVersionError = PromptsImportPromptVersionErrors[keyof PromptsImportPromptVersionErrors];
13857
+ export type PromptsImportPromptVersionResponses = {
14894
13858
  /**
14895
13859
  * Success
14896
13860
  */
14897
- 200: {
13861
+ 201: {
14898
13862
  code: number;
14899
- data: PromptLabelPointer | null;
13863
+ data: PromptVersion | null;
14900
13864
  error: {
14901
13865
  code: string;
14902
13866
  details?: unknown | null;
@@ -14922,25 +13886,20 @@ export type PromptsMovePromptLabelResponses = {
14922
13886
  success: boolean;
14923
13887
  };
14924
13888
  };
14925
- export type PromptsMovePromptLabelResponse = PromptsMovePromptLabelResponses[keyof PromptsMovePromptLabelResponses];
14926
- export type PromptsListPromptLabelEventsByLabelData = {
13889
+ export type PromptsImportPromptVersionResponse = PromptsImportPromptVersionResponses[keyof PromptsImportPromptVersionResponses];
13890
+ export type PromptsListPromptLabelsData = {
14927
13891
  body?: never;
14928
13892
  path: {
14929
13893
  projectId: string;
14930
13894
  promptId: string;
14931
- label: string;
14932
13895
  };
14933
13896
  query?: {
14934
- page?: string | null;
14935
- limit?: string | null;
14936
- label?: string | null;
14937
- promptId?: string | null;
14938
- since?: string | null;
14939
- until?: string | null;
13897
+ page?: number | null;
13898
+ limit?: number | null;
14940
13899
  };
14941
- url: '/v1/projects/{projectId}/prompts/{promptId}/labels/{label}/events';
13900
+ url: '/v1/projects/{projectId}/prompts/{promptId}/labels';
14942
13901
  };
14943
- export type PromptsListPromptLabelEventsByLabelErrors = {
13902
+ export type PromptsListPromptLabelsErrors = {
14944
13903
  /**
14945
13904
  * BadRequestError
14946
13905
  */
@@ -14990,22 +13949,14 @@ export type PromptsListPromptLabelEventsByLabelErrors = {
14990
13949
  */
14991
13950
  503: ServiceUnavailableError;
14992
13951
  };
14993
- export type PromptsListPromptLabelEventsByLabelError = PromptsListPromptLabelEventsByLabelErrors[keyof PromptsListPromptLabelEventsByLabelErrors];
14994
- export type PromptsListPromptLabelEventsByLabelResponses = {
13952
+ export type PromptsListPromptLabelsError = PromptsListPromptLabelsErrors[keyof PromptsListPromptLabelsErrors];
13953
+ export type PromptsListPromptLabelsResponses = {
14995
13954
  /**
14996
13955
  * Success
14997
13956
  */
14998
13957
  200: {
14999
13958
  code: number;
15000
- data: {
15001
- items: Array<PromptLabelEvent>;
15002
- pagination: {
15003
- limit: number;
15004
- page: number;
15005
- total: number;
15006
- totalPages: number;
15007
- };
15008
- } | null;
13959
+ data: Array<PromptLabelPointer> | null;
15009
13960
  error: {
15010
13961
  code: string;
15011
13962
  details?: unknown | null;
@@ -15031,7 +13982,7 @@ export type PromptsListPromptLabelEventsByLabelResponses = {
15031
13982
  success: boolean;
15032
13983
  };
15033
13984
  };
15034
- export type PromptsListPromptLabelEventsByLabelResponse = PromptsListPromptLabelEventsByLabelResponses[keyof PromptsListPromptLabelEventsByLabelResponses];
13985
+ export type PromptsListPromptLabelsResponse = PromptsListPromptLabelsResponses[keyof PromptsListPromptLabelsResponses];
15035
13986
  export type PromptMetricsGetPromptRequestMetricsData = {
15036
13987
  body?: never;
15037
13988
  path: {
@@ -23770,6 +22721,7 @@ export type TracesListTracesData = {
23770
22721
  provider?: string | Array<string> | string | null;
23771
22722
  model?: string | Array<string> | string | null;
23772
22723
  promptRef?: string | Array<string> | string | null;
22724
+ sessionId?: string | null;
23773
22725
  minTokens?: string | null;
23774
22726
  maxTokens?: string | null;
23775
22727
  minCost?: string | null;
@@ -23982,6 +22934,7 @@ export type TracesListTracePromptFacetsData = {
23982
22934
  provider?: string | Array<string> | string | null;
23983
22935
  model?: string | Array<string> | string | null;
23984
22936
  promptRef?: string | Array<string> | string | null;
22937
+ sessionId?: string | null;
23985
22938
  minTokens?: string | null;
23986
22939
  maxTokens?: string | null;
23987
22940
  minCost?: string | null;