@langfuse/core 4.1.0 → 4.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3342 -1698
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1314 -439
- package/dist/index.d.ts +1314 -439
- package/dist/index.mjs +3333 -1698
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -221,10 +221,11 @@ declare const AnnotationQueueStatus: {
|
|
|
221
221
|
/**
|
|
222
222
|
* This file was auto-generated by Fern from our API Definition.
|
|
223
223
|
*/
|
|
224
|
-
type AnnotationQueueObjectType = "TRACE" | "OBSERVATION";
|
|
224
|
+
type AnnotationQueueObjectType = "TRACE" | "OBSERVATION" | "SESSION";
|
|
225
225
|
declare const AnnotationQueueObjectType: {
|
|
226
226
|
readonly Trace: "TRACE";
|
|
227
227
|
readonly Observation: "OBSERVATION";
|
|
228
|
+
readonly Session: "SESSION";
|
|
228
229
|
};
|
|
229
230
|
|
|
230
231
|
/**
|
|
@@ -272,6 +273,15 @@ interface PaginatedAnnotationQueueItems {
|
|
|
272
273
|
meta: MetaResponse;
|
|
273
274
|
}
|
|
274
275
|
|
|
276
|
+
/**
|
|
277
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
278
|
+
*/
|
|
279
|
+
interface CreateAnnotationQueueRequest {
|
|
280
|
+
name: string;
|
|
281
|
+
description?: string;
|
|
282
|
+
scoreConfigIds: string[];
|
|
283
|
+
}
|
|
284
|
+
|
|
275
285
|
/**
|
|
276
286
|
* This file was auto-generated by Fern from our API Definition.
|
|
277
287
|
*/
|
|
@@ -299,6 +309,29 @@ interface DeleteAnnotationQueueItemResponse {
|
|
|
299
309
|
message: string;
|
|
300
310
|
}
|
|
301
311
|
|
|
312
|
+
/**
|
|
313
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
314
|
+
*/
|
|
315
|
+
interface AnnotationQueueAssignmentRequest {
|
|
316
|
+
userId: string;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
321
|
+
*/
|
|
322
|
+
interface DeleteAnnotationQueueAssignmentResponse {
|
|
323
|
+
success: boolean;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
328
|
+
*/
|
|
329
|
+
interface CreateAnnotationQueueAssignmentResponse {
|
|
330
|
+
userId: string;
|
|
331
|
+
queueId: string;
|
|
332
|
+
projectId: string;
|
|
333
|
+
}
|
|
334
|
+
|
|
302
335
|
/**
|
|
303
336
|
* This file was auto-generated by Fern from our API Definition.
|
|
304
337
|
*/
|
|
@@ -307,13 +340,9 @@ interface DeleteAnnotationQueueItemResponse {
|
|
|
307
340
|
* {}
|
|
308
341
|
*/
|
|
309
342
|
interface GetAnnotationQueuesRequest {
|
|
310
|
-
/**
|
|
311
|
-
* page number, starts at 1
|
|
312
|
-
*/
|
|
343
|
+
/** page number, starts at 1 */
|
|
313
344
|
page?: number;
|
|
314
|
-
/**
|
|
315
|
-
* limit of items per page
|
|
316
|
-
*/
|
|
345
|
+
/** limit of items per page */
|
|
317
346
|
limit?: number;
|
|
318
347
|
}
|
|
319
348
|
|
|
@@ -326,33 +355,154 @@ interface GetAnnotationQueuesRequest {
|
|
|
326
355
|
* {}
|
|
327
356
|
*/
|
|
328
357
|
interface GetAnnotationQueueItemsRequest {
|
|
329
|
-
/**
|
|
330
|
-
* Filter by status
|
|
331
|
-
*/
|
|
358
|
+
/** Filter by status */
|
|
332
359
|
status?: AnnotationQueueStatus;
|
|
333
|
-
/**
|
|
334
|
-
* page number, starts at 1
|
|
335
|
-
*/
|
|
360
|
+
/** page number, starts at 1 */
|
|
336
361
|
page?: number;
|
|
337
|
-
/**
|
|
338
|
-
* limit of items per page
|
|
339
|
-
*/
|
|
362
|
+
/** limit of items per page */
|
|
340
363
|
limit?: number;
|
|
341
364
|
}
|
|
342
365
|
|
|
343
|
-
type index$
|
|
344
|
-
type index$
|
|
345
|
-
|
|
346
|
-
declare const index$
|
|
347
|
-
|
|
348
|
-
type index$
|
|
349
|
-
type index$
|
|
350
|
-
type index$
|
|
351
|
-
type index$
|
|
352
|
-
type index$
|
|
353
|
-
type index$
|
|
354
|
-
|
|
355
|
-
|
|
366
|
+
type index$q_AnnotationQueue = AnnotationQueue;
|
|
367
|
+
type index$q_AnnotationQueueAssignmentRequest = AnnotationQueueAssignmentRequest;
|
|
368
|
+
type index$q_AnnotationQueueItem = AnnotationQueueItem;
|
|
369
|
+
declare const index$q_AnnotationQueueObjectType: typeof AnnotationQueueObjectType;
|
|
370
|
+
declare const index$q_AnnotationQueueStatus: typeof AnnotationQueueStatus;
|
|
371
|
+
type index$q_CreateAnnotationQueueAssignmentResponse = CreateAnnotationQueueAssignmentResponse;
|
|
372
|
+
type index$q_CreateAnnotationQueueItemRequest = CreateAnnotationQueueItemRequest;
|
|
373
|
+
type index$q_CreateAnnotationQueueRequest = CreateAnnotationQueueRequest;
|
|
374
|
+
type index$q_DeleteAnnotationQueueAssignmentResponse = DeleteAnnotationQueueAssignmentResponse;
|
|
375
|
+
type index$q_DeleteAnnotationQueueItemResponse = DeleteAnnotationQueueItemResponse;
|
|
376
|
+
type index$q_GetAnnotationQueueItemsRequest = GetAnnotationQueueItemsRequest;
|
|
377
|
+
type index$q_GetAnnotationQueuesRequest = GetAnnotationQueuesRequest;
|
|
378
|
+
type index$q_PaginatedAnnotationQueueItems = PaginatedAnnotationQueueItems;
|
|
379
|
+
type index$q_PaginatedAnnotationQueues = PaginatedAnnotationQueues;
|
|
380
|
+
type index$q_UpdateAnnotationQueueItemRequest = UpdateAnnotationQueueItemRequest;
|
|
381
|
+
declare namespace index$q {
|
|
382
|
+
export { type index$q_AnnotationQueue as AnnotationQueue, type index$q_AnnotationQueueAssignmentRequest as AnnotationQueueAssignmentRequest, type index$q_AnnotationQueueItem as AnnotationQueueItem, index$q_AnnotationQueueObjectType as AnnotationQueueObjectType, index$q_AnnotationQueueStatus as AnnotationQueueStatus, type index$q_CreateAnnotationQueueAssignmentResponse as CreateAnnotationQueueAssignmentResponse, type index$q_CreateAnnotationQueueItemRequest as CreateAnnotationQueueItemRequest, type index$q_CreateAnnotationQueueRequest as CreateAnnotationQueueRequest, type index$q_DeleteAnnotationQueueAssignmentResponse as DeleteAnnotationQueueAssignmentResponse, type index$q_DeleteAnnotationQueueItemResponse as DeleteAnnotationQueueItemResponse, type index$q_GetAnnotationQueueItemsRequest as GetAnnotationQueueItemsRequest, type index$q_GetAnnotationQueuesRequest as GetAnnotationQueuesRequest, type index$q_PaginatedAnnotationQueueItems as PaginatedAnnotationQueueItems, type index$q_PaginatedAnnotationQueues as PaginatedAnnotationQueues, type index$q_UpdateAnnotationQueueItemRequest as UpdateAnnotationQueueItemRequest };
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
387
|
+
*/
|
|
388
|
+
type BlobStorageIntegrationType = "S3" | "S3_COMPATIBLE" | "AZURE_BLOB_STORAGE";
|
|
389
|
+
declare const BlobStorageIntegrationType: {
|
|
390
|
+
readonly S3: "S3";
|
|
391
|
+
readonly S3Compatible: "S3_COMPATIBLE";
|
|
392
|
+
readonly AzureBlobStorage: "AZURE_BLOB_STORAGE";
|
|
393
|
+
};
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
397
|
+
*/
|
|
398
|
+
type BlobStorageIntegrationFileType = "JSON" | "CSV" | "JSONL";
|
|
399
|
+
declare const BlobStorageIntegrationFileType: {
|
|
400
|
+
readonly Json: "JSON";
|
|
401
|
+
readonly Csv: "CSV";
|
|
402
|
+
readonly Jsonl: "JSONL";
|
|
403
|
+
};
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
407
|
+
*/
|
|
408
|
+
type BlobStorageExportMode = "FULL_HISTORY" | "FROM_TODAY" | "FROM_CUSTOM_DATE";
|
|
409
|
+
declare const BlobStorageExportMode: {
|
|
410
|
+
readonly FullHistory: "FULL_HISTORY";
|
|
411
|
+
readonly FromToday: "FROM_TODAY";
|
|
412
|
+
readonly FromCustomDate: "FROM_CUSTOM_DATE";
|
|
413
|
+
};
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
417
|
+
*/
|
|
418
|
+
type BlobStorageExportFrequency = "hourly" | "daily" | "weekly";
|
|
419
|
+
declare const BlobStorageExportFrequency: {
|
|
420
|
+
readonly Hourly: "hourly";
|
|
421
|
+
readonly Daily: "daily";
|
|
422
|
+
readonly Weekly: "weekly";
|
|
423
|
+
};
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
427
|
+
*/
|
|
428
|
+
|
|
429
|
+
interface CreateBlobStorageIntegrationRequest {
|
|
430
|
+
/** ID of the project in which to configure the blob storage integration */
|
|
431
|
+
projectId: string;
|
|
432
|
+
type: BlobStorageIntegrationType;
|
|
433
|
+
/** Name of the storage bucket */
|
|
434
|
+
bucketName: string;
|
|
435
|
+
/** Custom endpoint URL (required for S3_COMPATIBLE type) */
|
|
436
|
+
endpoint?: string;
|
|
437
|
+
/** Storage region */
|
|
438
|
+
region: string;
|
|
439
|
+
/** Access key ID for authentication */
|
|
440
|
+
accessKeyId?: string;
|
|
441
|
+
/** Secret access key for authentication (will be encrypted when stored) */
|
|
442
|
+
secretAccessKey?: string;
|
|
443
|
+
/** Path prefix for exported files (must end with forward slash if provided) */
|
|
444
|
+
prefix?: string;
|
|
445
|
+
exportFrequency: BlobStorageExportFrequency;
|
|
446
|
+
/** Whether the integration is active */
|
|
447
|
+
enabled: boolean;
|
|
448
|
+
/** Use path-style URLs for S3 requests */
|
|
449
|
+
forcePathStyle: boolean;
|
|
450
|
+
fileType: BlobStorageIntegrationFileType;
|
|
451
|
+
exportMode: BlobStorageExportMode;
|
|
452
|
+
/** Custom start date for exports (required when exportMode is FROM_CUSTOM_DATE) */
|
|
453
|
+
exportStartDate?: string;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
458
|
+
*/
|
|
459
|
+
|
|
460
|
+
interface BlobStorageIntegrationResponse {
|
|
461
|
+
id: string;
|
|
462
|
+
projectId: string;
|
|
463
|
+
type: BlobStorageIntegrationType;
|
|
464
|
+
bucketName: string;
|
|
465
|
+
endpoint?: string;
|
|
466
|
+
region: string;
|
|
467
|
+
accessKeyId?: string;
|
|
468
|
+
prefix: string;
|
|
469
|
+
exportFrequency: BlobStorageExportFrequency;
|
|
470
|
+
enabled: boolean;
|
|
471
|
+
forcePathStyle: boolean;
|
|
472
|
+
fileType: BlobStorageIntegrationFileType;
|
|
473
|
+
exportMode: BlobStorageExportMode;
|
|
474
|
+
exportStartDate?: string;
|
|
475
|
+
nextSyncAt?: string;
|
|
476
|
+
lastSyncAt?: string;
|
|
477
|
+
createdAt: string;
|
|
478
|
+
updatedAt: string;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
483
|
+
*/
|
|
484
|
+
|
|
485
|
+
interface BlobStorageIntegrationsResponse {
|
|
486
|
+
data: BlobStorageIntegrationResponse[];
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
491
|
+
*/
|
|
492
|
+
interface BlobStorageIntegrationDeletionResponse {
|
|
493
|
+
message: string;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
declare const index$p_BlobStorageExportFrequency: typeof BlobStorageExportFrequency;
|
|
497
|
+
declare const index$p_BlobStorageExportMode: typeof BlobStorageExportMode;
|
|
498
|
+
type index$p_BlobStorageIntegrationDeletionResponse = BlobStorageIntegrationDeletionResponse;
|
|
499
|
+
declare const index$p_BlobStorageIntegrationFileType: typeof BlobStorageIntegrationFileType;
|
|
500
|
+
type index$p_BlobStorageIntegrationResponse = BlobStorageIntegrationResponse;
|
|
501
|
+
declare const index$p_BlobStorageIntegrationType: typeof BlobStorageIntegrationType;
|
|
502
|
+
type index$p_BlobStorageIntegrationsResponse = BlobStorageIntegrationsResponse;
|
|
503
|
+
type index$p_CreateBlobStorageIntegrationRequest = CreateBlobStorageIntegrationRequest;
|
|
504
|
+
declare namespace index$p {
|
|
505
|
+
export { index$p_BlobStorageExportFrequency as BlobStorageExportFrequency, index$p_BlobStorageExportMode as BlobStorageExportMode, type index$p_BlobStorageIntegrationDeletionResponse as BlobStorageIntegrationDeletionResponse, index$p_BlobStorageIntegrationFileType as BlobStorageIntegrationFileType, type index$p_BlobStorageIntegrationResponse as BlobStorageIntegrationResponse, index$p_BlobStorageIntegrationType as BlobStorageIntegrationType, type index$p_BlobStorageIntegrationsResponse as BlobStorageIntegrationsResponse, type index$p_CreateBlobStorageIntegrationRequest as CreateBlobStorageIntegrationRequest };
|
|
356
506
|
}
|
|
357
507
|
|
|
358
508
|
/**
|
|
@@ -365,7 +515,7 @@ interface CreateCommentRequest {
|
|
|
365
515
|
objectType: string;
|
|
366
516
|
/** The id of the object to attach the comment to. If this does not reference a valid existing object, an error will be thrown. */
|
|
367
517
|
objectId: string;
|
|
368
|
-
/** The content of the comment. May include markdown. Currently limited to
|
|
518
|
+
/** The content of the comment. May include markdown. Currently limited to 5000 characters. */
|
|
369
519
|
content: string;
|
|
370
520
|
/** The id of the user who created the comment. */
|
|
371
521
|
authorUserId?: string;
|
|
@@ -396,34 +546,24 @@ interface GetCommentsResponse {
|
|
|
396
546
|
* {}
|
|
397
547
|
*/
|
|
398
548
|
interface GetCommentsRequest {
|
|
399
|
-
/**
|
|
400
|
-
* Page number, starts at 1.
|
|
401
|
-
*/
|
|
549
|
+
/** Page number, starts at 1. */
|
|
402
550
|
page?: number;
|
|
403
|
-
/**
|
|
404
|
-
* Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit
|
|
405
|
-
*/
|
|
551
|
+
/** Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit */
|
|
406
552
|
limit?: number;
|
|
407
|
-
/**
|
|
408
|
-
* Filter comments by object type (trace, observation, session, prompt).
|
|
409
|
-
*/
|
|
553
|
+
/** Filter comments by object type (trace, observation, session, prompt). */
|
|
410
554
|
objectType?: string;
|
|
411
|
-
/**
|
|
412
|
-
* Filter comments by object id. If objectType is not provided, an error will be thrown.
|
|
413
|
-
*/
|
|
555
|
+
/** Filter comments by object id. If objectType is not provided, an error will be thrown. */
|
|
414
556
|
objectId?: string;
|
|
415
|
-
/**
|
|
416
|
-
* Filter comments by author user id.
|
|
417
|
-
*/
|
|
557
|
+
/** Filter comments by author user id. */
|
|
418
558
|
authorUserId?: string;
|
|
419
559
|
}
|
|
420
560
|
|
|
421
|
-
type index$
|
|
422
|
-
type index$
|
|
423
|
-
type index$
|
|
424
|
-
type index$
|
|
425
|
-
declare namespace index$
|
|
426
|
-
export type { index$
|
|
561
|
+
type index$o_CreateCommentRequest = CreateCommentRequest;
|
|
562
|
+
type index$o_CreateCommentResponse = CreateCommentResponse;
|
|
563
|
+
type index$o_GetCommentsRequest = GetCommentsRequest;
|
|
564
|
+
type index$o_GetCommentsResponse = GetCommentsResponse;
|
|
565
|
+
declare namespace index$o {
|
|
566
|
+
export type { index$o_CreateCommentRequest as CreateCommentRequest, index$o_CreateCommentResponse as CreateCommentResponse, index$o_GetCommentsRequest as GetCommentsRequest, index$o_GetCommentsResponse as GetCommentsResponse };
|
|
427
567
|
}
|
|
428
568
|
|
|
429
569
|
/**
|
|
@@ -663,7 +803,7 @@ interface BaseScoreV1 {
|
|
|
663
803
|
metadata?: unknown;
|
|
664
804
|
/** Reference a score config on a score. When set, config and score name must be equal and value must comply to optionally defined numerical range */
|
|
665
805
|
configId?: string;
|
|
666
|
-
/**
|
|
806
|
+
/** The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue. */
|
|
667
807
|
queueId?: string;
|
|
668
808
|
/** The environment from which this score originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'. */
|
|
669
809
|
environment?: string;
|
|
@@ -746,7 +886,7 @@ interface BaseScore {
|
|
|
746
886
|
metadata?: unknown;
|
|
747
887
|
/** Reference a score config on a score. When set, config and score name must be equal and value must comply to optionally defined numerical range */
|
|
748
888
|
configId?: string;
|
|
749
|
-
/**
|
|
889
|
+
/** The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue. */
|
|
750
890
|
queueId?: string;
|
|
751
891
|
/** The environment from which this score originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'. */
|
|
752
892
|
environment?: string;
|
|
@@ -1158,50 +1298,50 @@ declare class MethodNotAllowedError extends LangfuseAPIError {
|
|
|
1158
1298
|
constructor(body?: unknown, rawResponse?: RawResponse);
|
|
1159
1299
|
}
|
|
1160
1300
|
|
|
1161
|
-
type index$
|
|
1162
|
-
declare const index$
|
|
1163
|
-
type index$
|
|
1164
|
-
type index$
|
|
1165
|
-
type index$
|
|
1166
|
-
type index$
|
|
1167
|
-
type index$
|
|
1168
|
-
type index$
|
|
1169
|
-
type index$
|
|
1170
|
-
declare const index$
|
|
1171
|
-
type index$
|
|
1172
|
-
type index$
|
|
1173
|
-
type index$
|
|
1174
|
-
type index$
|
|
1175
|
-
type index$
|
|
1176
|
-
type index$
|
|
1177
|
-
type index$
|
|
1178
|
-
declare const index$
|
|
1179
|
-
type index$
|
|
1180
|
-
type index$
|
|
1181
|
-
declare const index$
|
|
1182
|
-
type index$
|
|
1183
|
-
type index$
|
|
1184
|
-
declare const index$
|
|
1185
|
-
type index$
|
|
1186
|
-
declare const index$
|
|
1187
|
-
type index$
|
|
1188
|
-
type index$
|
|
1189
|
-
type index$
|
|
1190
|
-
declare const index$
|
|
1191
|
-
type index$
|
|
1192
|
-
type index$
|
|
1193
|
-
declare const index$
|
|
1194
|
-
declare const index$
|
|
1195
|
-
declare const index$
|
|
1196
|
-
type index$
|
|
1197
|
-
type index$
|
|
1198
|
-
type index$
|
|
1199
|
-
type index$
|
|
1200
|
-
type index$
|
|
1201
|
-
declare const index$
|
|
1202
|
-
type index$
|
|
1203
|
-
declare namespace index$
|
|
1204
|
-
export { index$
|
|
1301
|
+
type index$n_AccessDeniedError = AccessDeniedError;
|
|
1302
|
+
declare const index$n_AccessDeniedError: typeof AccessDeniedError;
|
|
1303
|
+
type index$n_BaseScore = BaseScore;
|
|
1304
|
+
type index$n_BaseScoreV1 = BaseScoreV1;
|
|
1305
|
+
type index$n_BooleanScore = BooleanScore;
|
|
1306
|
+
type index$n_BooleanScoreV1 = BooleanScoreV1;
|
|
1307
|
+
type index$n_CategoricalScore = CategoricalScore;
|
|
1308
|
+
type index$n_CategoricalScoreV1 = CategoricalScoreV1;
|
|
1309
|
+
type index$n_Comment = Comment;
|
|
1310
|
+
declare const index$n_CommentObjectType: typeof CommentObjectType;
|
|
1311
|
+
type index$n_ConfigCategory = ConfigCategory;
|
|
1312
|
+
type index$n_CreateScoreValue = CreateScoreValue;
|
|
1313
|
+
type index$n_Dataset = Dataset;
|
|
1314
|
+
type index$n_DatasetItem = DatasetItem;
|
|
1315
|
+
type index$n_DatasetRun = DatasetRun;
|
|
1316
|
+
type index$n_DatasetRunItem = DatasetRunItem;
|
|
1317
|
+
type index$n_DatasetRunWithItems = DatasetRunWithItems;
|
|
1318
|
+
declare const index$n_DatasetStatus: typeof DatasetStatus;
|
|
1319
|
+
type index$n_MapValue = MapValue;
|
|
1320
|
+
type index$n_MethodNotAllowedError = MethodNotAllowedError;
|
|
1321
|
+
declare const index$n_MethodNotAllowedError: typeof MethodNotAllowedError;
|
|
1322
|
+
type index$n_Model = Model;
|
|
1323
|
+
type index$n_ModelPrice = ModelPrice;
|
|
1324
|
+
declare const index$n_ModelUsageUnit: typeof ModelUsageUnit;
|
|
1325
|
+
type index$n_NotFoundError = NotFoundError;
|
|
1326
|
+
declare const index$n_NotFoundError: typeof NotFoundError;
|
|
1327
|
+
type index$n_NumericScore = NumericScore;
|
|
1328
|
+
type index$n_NumericScoreV1 = NumericScoreV1;
|
|
1329
|
+
type index$n_Observation = Observation;
|
|
1330
|
+
declare const index$n_ObservationLevel: typeof ObservationLevel;
|
|
1331
|
+
type index$n_ObservationsView = ObservationsView;
|
|
1332
|
+
type index$n_ScoreConfig = ScoreConfig;
|
|
1333
|
+
declare const index$n_ScoreDataType: typeof ScoreDataType;
|
|
1334
|
+
declare const index$n_ScoreSource: typeof ScoreSource;
|
|
1335
|
+
declare const index$n_ScoreV1: typeof ScoreV1;
|
|
1336
|
+
type index$n_Session = Session;
|
|
1337
|
+
type index$n_SessionWithTraces = SessionWithTraces;
|
|
1338
|
+
type index$n_TraceWithDetails = TraceWithDetails;
|
|
1339
|
+
type index$n_TraceWithFullDetails = TraceWithFullDetails;
|
|
1340
|
+
type index$n_UnauthorizedError = UnauthorizedError;
|
|
1341
|
+
declare const index$n_UnauthorizedError: typeof UnauthorizedError;
|
|
1342
|
+
type index$n_Usage = Usage;
|
|
1343
|
+
declare namespace index$n {
|
|
1344
|
+
export { index$n_AccessDeniedError as AccessDeniedError, type index$n_BaseScore as BaseScore, type index$n_BaseScoreV1 as BaseScoreV1, type index$n_BooleanScore as BooleanScore, type index$n_BooleanScoreV1 as BooleanScoreV1, type index$n_CategoricalScore as CategoricalScore, type index$n_CategoricalScoreV1 as CategoricalScoreV1, type index$n_Comment as Comment, index$n_CommentObjectType as CommentObjectType, type index$n_ConfigCategory as ConfigCategory, type index$n_CreateScoreValue as CreateScoreValue, type index$n_Dataset as Dataset, type index$n_DatasetItem as DatasetItem, type index$n_DatasetRun as DatasetRun, type index$n_DatasetRunItem as DatasetRunItem, type index$n_DatasetRunWithItems as DatasetRunWithItems, index$n_DatasetStatus as DatasetStatus, Error$1 as Error, type index$n_MapValue as MapValue, index$n_MethodNotAllowedError as MethodNotAllowedError, type index$n_Model as Model, type index$n_ModelPrice as ModelPrice, index$n_ModelUsageUnit as ModelUsageUnit, index$n_NotFoundError as NotFoundError, type index$n_NumericScore as NumericScore, type index$n_NumericScoreV1 as NumericScoreV1, type index$n_Observation as Observation, index$n_ObservationLevel as ObservationLevel, type index$n_ObservationsView as ObservationsView, Score$1 as Score, type index$n_ScoreConfig as ScoreConfig, index$n_ScoreDataType as ScoreDataType, index$n_ScoreSource as ScoreSource, index$n_ScoreV1 as ScoreV1, type index$n_Session as Session, type index$n_SessionWithTraces as SessionWithTraces, type Trace$1 as Trace, type index$n_TraceWithDetails as TraceWithDetails, type index$n_TraceWithFullDetails as TraceWithFullDetails, index$n_UnauthorizedError as UnauthorizedError, type index$n_Usage as Usage };
|
|
1205
1345
|
}
|
|
1206
1346
|
|
|
1207
1347
|
/**
|
|
@@ -1249,22 +1389,18 @@ interface GetDatasetItemsRequest {
|
|
|
1249
1389
|
datasetName?: string;
|
|
1250
1390
|
sourceTraceId?: string;
|
|
1251
1391
|
sourceObservationId?: string;
|
|
1252
|
-
/**
|
|
1253
|
-
* page number, starts at 1
|
|
1254
|
-
*/
|
|
1392
|
+
/** page number, starts at 1 */
|
|
1255
1393
|
page?: number;
|
|
1256
|
-
/**
|
|
1257
|
-
* limit of items per page
|
|
1258
|
-
*/
|
|
1394
|
+
/** limit of items per page */
|
|
1259
1395
|
limit?: number;
|
|
1260
1396
|
}
|
|
1261
1397
|
|
|
1262
|
-
type index$
|
|
1263
|
-
type index$
|
|
1264
|
-
type index$
|
|
1265
|
-
type index$
|
|
1266
|
-
declare namespace index$
|
|
1267
|
-
export type { index$
|
|
1398
|
+
type index$m_CreateDatasetItemRequest = CreateDatasetItemRequest;
|
|
1399
|
+
type index$m_DeleteDatasetItemResponse = DeleteDatasetItemResponse;
|
|
1400
|
+
type index$m_GetDatasetItemsRequest = GetDatasetItemsRequest;
|
|
1401
|
+
type index$m_PaginatedDatasetItems = PaginatedDatasetItems;
|
|
1402
|
+
declare namespace index$m {
|
|
1403
|
+
export type { index$m_CreateDatasetItemRequest as CreateDatasetItemRequest, index$m_DeleteDatasetItemResponse as DeleteDatasetItemResponse, index$m_GetDatasetItemsRequest as GetDatasetItemsRequest, index$m_PaginatedDatasetItems as PaginatedDatasetItems };
|
|
1268
1404
|
}
|
|
1269
1405
|
|
|
1270
1406
|
/**
|
|
@@ -1304,21 +1440,17 @@ interface PaginatedDatasetRunItems {
|
|
|
1304
1440
|
interface ListDatasetRunItemsRequest {
|
|
1305
1441
|
datasetId: string;
|
|
1306
1442
|
runName: string;
|
|
1307
|
-
/**
|
|
1308
|
-
* page number, starts at 1
|
|
1309
|
-
*/
|
|
1443
|
+
/** page number, starts at 1 */
|
|
1310
1444
|
page?: number;
|
|
1311
|
-
/**
|
|
1312
|
-
* limit of items per page
|
|
1313
|
-
*/
|
|
1445
|
+
/** limit of items per page */
|
|
1314
1446
|
limit?: number;
|
|
1315
1447
|
}
|
|
1316
1448
|
|
|
1317
|
-
type index$
|
|
1318
|
-
type index$
|
|
1319
|
-
type index$
|
|
1320
|
-
declare namespace index$
|
|
1321
|
-
export type { index$
|
|
1449
|
+
type index$l_CreateDatasetRunItemRequest = CreateDatasetRunItemRequest;
|
|
1450
|
+
type index$l_ListDatasetRunItemsRequest = ListDatasetRunItemsRequest;
|
|
1451
|
+
type index$l_PaginatedDatasetRunItems = PaginatedDatasetRunItems;
|
|
1452
|
+
declare namespace index$l {
|
|
1453
|
+
export type { index$l_CreateDatasetRunItemRequest as CreateDatasetRunItemRequest, index$l_ListDatasetRunItemsRequest as ListDatasetRunItemsRequest, index$l_PaginatedDatasetRunItems as PaginatedDatasetRunItems };
|
|
1322
1454
|
}
|
|
1323
1455
|
|
|
1324
1456
|
/**
|
|
@@ -1363,13 +1495,9 @@ interface DeleteDatasetRunResponse {
|
|
|
1363
1495
|
* {}
|
|
1364
1496
|
*/
|
|
1365
1497
|
interface GetDatasetsRequest {
|
|
1366
|
-
/**
|
|
1367
|
-
* page number, starts at 1
|
|
1368
|
-
*/
|
|
1498
|
+
/** page number, starts at 1 */
|
|
1369
1499
|
page?: number;
|
|
1370
|
-
/**
|
|
1371
|
-
* limit of items per page
|
|
1372
|
-
*/
|
|
1500
|
+
/** limit of items per page */
|
|
1373
1501
|
limit?: number;
|
|
1374
1502
|
}
|
|
1375
1503
|
|
|
@@ -1381,24 +1509,20 @@ interface GetDatasetsRequest {
|
|
|
1381
1509
|
* {}
|
|
1382
1510
|
*/
|
|
1383
1511
|
interface GetDatasetRunsRequest {
|
|
1384
|
-
/**
|
|
1385
|
-
* page number, starts at 1
|
|
1386
|
-
*/
|
|
1512
|
+
/** page number, starts at 1 */
|
|
1387
1513
|
page?: number;
|
|
1388
|
-
/**
|
|
1389
|
-
* limit of items per page
|
|
1390
|
-
*/
|
|
1514
|
+
/** limit of items per page */
|
|
1391
1515
|
limit?: number;
|
|
1392
1516
|
}
|
|
1393
1517
|
|
|
1394
|
-
type index$
|
|
1395
|
-
type index$
|
|
1396
|
-
type index$
|
|
1397
|
-
type index$
|
|
1398
|
-
type index$
|
|
1399
|
-
type index$
|
|
1400
|
-
declare namespace index$
|
|
1401
|
-
export type { index$
|
|
1518
|
+
type index$k_CreateDatasetRequest = CreateDatasetRequest;
|
|
1519
|
+
type index$k_DeleteDatasetRunResponse = DeleteDatasetRunResponse;
|
|
1520
|
+
type index$k_GetDatasetRunsRequest = GetDatasetRunsRequest;
|
|
1521
|
+
type index$k_GetDatasetsRequest = GetDatasetsRequest;
|
|
1522
|
+
type index$k_PaginatedDatasetRuns = PaginatedDatasetRuns;
|
|
1523
|
+
type index$k_PaginatedDatasets = PaginatedDatasets;
|
|
1524
|
+
declare namespace index$k {
|
|
1525
|
+
export type { index$k_CreateDatasetRequest as CreateDatasetRequest, index$k_DeleteDatasetRunResponse as DeleteDatasetRunResponse, index$k_GetDatasetRunsRequest as GetDatasetRunsRequest, index$k_GetDatasetsRequest as GetDatasetsRequest, index$k_PaginatedDatasetRuns as PaginatedDatasetRuns, index$k_PaginatedDatasets as PaginatedDatasets };
|
|
1402
1526
|
}
|
|
1403
1527
|
|
|
1404
1528
|
/**
|
|
@@ -1425,11 +1549,11 @@ declare class ServiceUnavailableError extends LangfuseAPIError {
|
|
|
1425
1549
|
constructor(rawResponse?: RawResponse);
|
|
1426
1550
|
}
|
|
1427
1551
|
|
|
1428
|
-
type index$
|
|
1429
|
-
type index$
|
|
1430
|
-
declare const index$
|
|
1431
|
-
declare namespace index$
|
|
1432
|
-
export { type index$
|
|
1552
|
+
type index$j_HealthResponse = HealthResponse;
|
|
1553
|
+
type index$j_ServiceUnavailableError = ServiceUnavailableError;
|
|
1554
|
+
declare const index$j_ServiceUnavailableError: typeof ServiceUnavailableError;
|
|
1555
|
+
declare namespace index$j {
|
|
1556
|
+
export { type index$j_HealthResponse as HealthResponse, index$j_ServiceUnavailableError as ServiceUnavailableError };
|
|
1433
1557
|
}
|
|
1434
1558
|
|
|
1435
1559
|
/**
|
|
@@ -1503,11 +1627,18 @@ declare namespace IngestionEvent {
|
|
|
1503
1627
|
/**
|
|
1504
1628
|
* This file was auto-generated by Fern from our API Definition.
|
|
1505
1629
|
*/
|
|
1506
|
-
type ObservationType = "SPAN" | "GENERATION" | "EVENT";
|
|
1630
|
+
type ObservationType = "SPAN" | "GENERATION" | "EVENT" | "AGENT" | "TOOL" | "CHAIN" | "RETRIEVER" | "EVALUATOR" | "EMBEDDING" | "GUARDRAIL";
|
|
1507
1631
|
declare const ObservationType: {
|
|
1508
1632
|
readonly Span: "SPAN";
|
|
1509
1633
|
readonly Generation: "GENERATION";
|
|
1510
1634
|
readonly Event: "EVENT";
|
|
1635
|
+
readonly Agent: "AGENT";
|
|
1636
|
+
readonly Tool: "TOOL";
|
|
1637
|
+
readonly Chain: "CHAIN";
|
|
1638
|
+
readonly Retriever: "RETRIEVER";
|
|
1639
|
+
readonly Evaluator: "EVALUATOR";
|
|
1640
|
+
readonly Embedding: "EMBEDDING";
|
|
1641
|
+
readonly Guardrail: "GUARDRAIL";
|
|
1511
1642
|
};
|
|
1512
1643
|
|
|
1513
1644
|
/**
|
|
@@ -1744,6 +1875,8 @@ interface ScoreBody {
|
|
|
1744
1875
|
datasetRunId?: string;
|
|
1745
1876
|
name: string;
|
|
1746
1877
|
environment?: string;
|
|
1878
|
+
/** The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue. */
|
|
1879
|
+
queueId?: string;
|
|
1747
1880
|
/** The value of the score. Must be passed as string for categorical scores, and numeric for boolean and numeric scores. Boolean score values must equal either 1 or 0 (true or false) */
|
|
1748
1881
|
value: CreateScoreValue;
|
|
1749
1882
|
comment?: string;
|
|
@@ -1974,41 +2107,136 @@ interface IngestionRequest {
|
|
|
1974
2107
|
metadata?: unknown;
|
|
1975
2108
|
}
|
|
1976
2109
|
|
|
1977
|
-
type index$
|
|
1978
|
-
type index$
|
|
1979
|
-
type index$
|
|
1980
|
-
type index$
|
|
1981
|
-
type index$
|
|
1982
|
-
type index$
|
|
1983
|
-
type index$
|
|
1984
|
-
type index$
|
|
1985
|
-
type index$
|
|
1986
|
-
declare const index$
|
|
1987
|
-
type index$
|
|
1988
|
-
type index$
|
|
1989
|
-
type index$
|
|
1990
|
-
type index$
|
|
1991
|
-
type index$
|
|
1992
|
-
declare const index$
|
|
1993
|
-
type index$
|
|
1994
|
-
type index$
|
|
1995
|
-
type index$
|
|
1996
|
-
type index$
|
|
1997
|
-
type index$
|
|
1998
|
-
type index$
|
|
1999
|
-
type index$
|
|
2000
|
-
type index$
|
|
2001
|
-
type index$
|
|
2002
|
-
type index$
|
|
2003
|
-
type index$
|
|
2004
|
-
type index$
|
|
2005
|
-
type index$
|
|
2006
|
-
type index$
|
|
2007
|
-
type index$
|
|
2008
|
-
type index$
|
|
2009
|
-
type index$
|
|
2010
|
-
declare namespace index$
|
|
2011
|
-
export { type index$
|
|
2110
|
+
type index$i_BaseEvent = BaseEvent;
|
|
2111
|
+
type index$i_CreateEventBody = CreateEventBody;
|
|
2112
|
+
type index$i_CreateEventEvent = CreateEventEvent;
|
|
2113
|
+
type index$i_CreateGenerationBody = CreateGenerationBody;
|
|
2114
|
+
type index$i_CreateGenerationEvent = CreateGenerationEvent;
|
|
2115
|
+
type index$i_CreateObservationEvent = CreateObservationEvent;
|
|
2116
|
+
type index$i_CreateSpanBody = CreateSpanBody;
|
|
2117
|
+
type index$i_CreateSpanEvent = CreateSpanEvent;
|
|
2118
|
+
type index$i_IngestionError = IngestionError;
|
|
2119
|
+
declare const index$i_IngestionEvent: typeof IngestionEvent;
|
|
2120
|
+
type index$i_IngestionRequest = IngestionRequest;
|
|
2121
|
+
type index$i_IngestionResponse = IngestionResponse;
|
|
2122
|
+
type index$i_IngestionSuccess = IngestionSuccess;
|
|
2123
|
+
type index$i_IngestionUsage = IngestionUsage;
|
|
2124
|
+
type index$i_ObservationBody = ObservationBody;
|
|
2125
|
+
declare const index$i_ObservationType: typeof ObservationType;
|
|
2126
|
+
type index$i_OpenAiCompletionUsageSchema = OpenAiCompletionUsageSchema;
|
|
2127
|
+
type index$i_OpenAiResponseUsageSchema = OpenAiResponseUsageSchema;
|
|
2128
|
+
type index$i_OpenAiUsage = OpenAiUsage;
|
|
2129
|
+
type index$i_OptionalObservationBody = OptionalObservationBody;
|
|
2130
|
+
type index$i_ScoreBody = ScoreBody;
|
|
2131
|
+
type index$i_ScoreEvent = ScoreEvent;
|
|
2132
|
+
type index$i_SdkLogBody = SdkLogBody;
|
|
2133
|
+
type index$i_SdkLogEvent = SdkLogEvent;
|
|
2134
|
+
type index$i_TraceBody = TraceBody;
|
|
2135
|
+
type index$i_TraceEvent = TraceEvent;
|
|
2136
|
+
type index$i_UpdateEventBody = UpdateEventBody;
|
|
2137
|
+
type index$i_UpdateGenerationBody = UpdateGenerationBody;
|
|
2138
|
+
type index$i_UpdateGenerationEvent = UpdateGenerationEvent;
|
|
2139
|
+
type index$i_UpdateObservationEvent = UpdateObservationEvent;
|
|
2140
|
+
type index$i_UpdateSpanBody = UpdateSpanBody;
|
|
2141
|
+
type index$i_UpdateSpanEvent = UpdateSpanEvent;
|
|
2142
|
+
type index$i_UsageDetails = UsageDetails;
|
|
2143
|
+
declare namespace index$i {
|
|
2144
|
+
export { type index$i_BaseEvent as BaseEvent, type index$i_CreateEventBody as CreateEventBody, type index$i_CreateEventEvent as CreateEventEvent, type index$i_CreateGenerationBody as CreateGenerationBody, type index$i_CreateGenerationEvent as CreateGenerationEvent, type index$i_CreateObservationEvent as CreateObservationEvent, type index$i_CreateSpanBody as CreateSpanBody, type index$i_CreateSpanEvent as CreateSpanEvent, type index$i_IngestionError as IngestionError, index$i_IngestionEvent as IngestionEvent, type index$i_IngestionRequest as IngestionRequest, type index$i_IngestionResponse as IngestionResponse, type index$i_IngestionSuccess as IngestionSuccess, type index$i_IngestionUsage as IngestionUsage, type index$i_ObservationBody as ObservationBody, index$i_ObservationType as ObservationType, type index$i_OpenAiCompletionUsageSchema as OpenAiCompletionUsageSchema, type index$i_OpenAiResponseUsageSchema as OpenAiResponseUsageSchema, type index$i_OpenAiUsage as OpenAiUsage, type index$i_OptionalObservationBody as OptionalObservationBody, type index$i_ScoreBody as ScoreBody, type index$i_ScoreEvent as ScoreEvent, type index$i_SdkLogBody as SdkLogBody, type index$i_SdkLogEvent as SdkLogEvent, type index$i_TraceBody as TraceBody, type index$i_TraceEvent as TraceEvent, type index$i_UpdateEventBody as UpdateEventBody, type index$i_UpdateGenerationBody as UpdateGenerationBody, type index$i_UpdateGenerationEvent as UpdateGenerationEvent, type index$i_UpdateObservationEvent as UpdateObservationEvent, type index$i_UpdateSpanBody as UpdateSpanBody, type index$i_UpdateSpanEvent as UpdateSpanEvent, type index$i_UsageDetails as UsageDetails };
|
|
2145
|
+
}
|
|
2146
|
+
|
|
2147
|
+
/**
|
|
2148
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2149
|
+
*/
|
|
2150
|
+
/**
|
|
2151
|
+
* LLM API connection configuration (secrets excluded)
|
|
2152
|
+
*/
|
|
2153
|
+
interface LlmConnection {
|
|
2154
|
+
id: string;
|
|
2155
|
+
/** Provider name (e.g., 'openai', 'my-gateway'). Must be unique in project, used for upserting. */
|
|
2156
|
+
provider: string;
|
|
2157
|
+
/** The adapter used to interface with the LLM */
|
|
2158
|
+
adapter: string;
|
|
2159
|
+
/** Masked version of the secret key for display purposes */
|
|
2160
|
+
displaySecretKey: string;
|
|
2161
|
+
/** Custom base URL for the LLM API */
|
|
2162
|
+
baseURL?: string;
|
|
2163
|
+
/** List of custom model names available for this connection */
|
|
2164
|
+
customModels: string[];
|
|
2165
|
+
/** Whether to include default models for this adapter */
|
|
2166
|
+
withDefaultModels: boolean;
|
|
2167
|
+
/** Keys of extra headers sent with requests (values excluded for security) */
|
|
2168
|
+
extraHeaderKeys: string[];
|
|
2169
|
+
createdAt: string;
|
|
2170
|
+
updatedAt: string;
|
|
2171
|
+
}
|
|
2172
|
+
|
|
2173
|
+
/**
|
|
2174
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2175
|
+
*/
|
|
2176
|
+
|
|
2177
|
+
interface PaginatedLlmConnections {
|
|
2178
|
+
data: LlmConnection[];
|
|
2179
|
+
meta: MetaResponse;
|
|
2180
|
+
}
|
|
2181
|
+
|
|
2182
|
+
/**
|
|
2183
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2184
|
+
*/
|
|
2185
|
+
|
|
2186
|
+
/**
|
|
2187
|
+
* Request to create or update an LLM connection (upsert)
|
|
2188
|
+
*/
|
|
2189
|
+
interface UpsertLlmConnectionRequest {
|
|
2190
|
+
/** Provider name (e.g., 'openai', 'my-gateway'). Must be unique in project, used for upserting. */
|
|
2191
|
+
provider: string;
|
|
2192
|
+
/** The adapter used to interface with the LLM */
|
|
2193
|
+
adapter: LlmAdapter;
|
|
2194
|
+
/** Secret key for the LLM API. */
|
|
2195
|
+
secretKey: string;
|
|
2196
|
+
/** Custom base URL for the LLM API */
|
|
2197
|
+
baseURL?: string;
|
|
2198
|
+
/** List of custom model names */
|
|
2199
|
+
customModels?: string[];
|
|
2200
|
+
/** Whether to include default models. Default is true. */
|
|
2201
|
+
withDefaultModels?: boolean;
|
|
2202
|
+
/** Extra headers to send with requests */
|
|
2203
|
+
extraHeaders?: Record<string, string>;
|
|
2204
|
+
}
|
|
2205
|
+
|
|
2206
|
+
/**
|
|
2207
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2208
|
+
*/
|
|
2209
|
+
type LlmAdapter = "anthropic" | "openai" | "azure" | "bedrock" | "google-vertex-ai" | "google-ai-studio";
|
|
2210
|
+
declare const LlmAdapter: {
|
|
2211
|
+
readonly Anthropic: "anthropic";
|
|
2212
|
+
readonly OpenAi: "openai";
|
|
2213
|
+
readonly Azure: "azure";
|
|
2214
|
+
readonly Bedrock: "bedrock";
|
|
2215
|
+
readonly GoogleVertexAi: "google-vertex-ai";
|
|
2216
|
+
readonly GoogleAiStudio: "google-ai-studio";
|
|
2217
|
+
};
|
|
2218
|
+
|
|
2219
|
+
/**
|
|
2220
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2221
|
+
*/
|
|
2222
|
+
/**
|
|
2223
|
+
* @example
|
|
2224
|
+
* {}
|
|
2225
|
+
*/
|
|
2226
|
+
interface GetLlmConnectionsRequest {
|
|
2227
|
+
/** page number, starts at 1 */
|
|
2228
|
+
page?: number;
|
|
2229
|
+
/** limit of items per page */
|
|
2230
|
+
limit?: number;
|
|
2231
|
+
}
|
|
2232
|
+
|
|
2233
|
+
type index$h_GetLlmConnectionsRequest = GetLlmConnectionsRequest;
|
|
2234
|
+
declare const index$h_LlmAdapter: typeof LlmAdapter;
|
|
2235
|
+
type index$h_LlmConnection = LlmConnection;
|
|
2236
|
+
type index$h_PaginatedLlmConnections = PaginatedLlmConnections;
|
|
2237
|
+
type index$h_UpsertLlmConnectionRequest = UpsertLlmConnectionRequest;
|
|
2238
|
+
declare namespace index$h {
|
|
2239
|
+
export { type index$h_GetLlmConnectionsRequest as GetLlmConnectionsRequest, index$h_LlmAdapter as LlmAdapter, type index$h_LlmConnection as LlmConnection, type index$h_PaginatedLlmConnections as PaginatedLlmConnections, type index$h_UpsertLlmConnectionRequest as UpsertLlmConnectionRequest };
|
|
2012
2240
|
}
|
|
2013
2241
|
|
|
2014
2242
|
/**
|
|
@@ -2110,13 +2338,13 @@ declare const MediaContentType: {
|
|
|
2110
2338
|
readonly ApplicationOctetStream: "application/octet-stream";
|
|
2111
2339
|
};
|
|
2112
2340
|
|
|
2113
|
-
type index$
|
|
2114
|
-
type index$
|
|
2115
|
-
type index$
|
|
2116
|
-
declare const index$
|
|
2117
|
-
type index$
|
|
2118
|
-
declare namespace index$
|
|
2119
|
-
export { type index$
|
|
2341
|
+
type index$g_GetMediaResponse = GetMediaResponse;
|
|
2342
|
+
type index$g_GetMediaUploadUrlRequest = GetMediaUploadUrlRequest;
|
|
2343
|
+
type index$g_GetMediaUploadUrlResponse = GetMediaUploadUrlResponse;
|
|
2344
|
+
declare const index$g_MediaContentType: typeof MediaContentType;
|
|
2345
|
+
type index$g_PatchMediaBody = PatchMediaBody;
|
|
2346
|
+
declare namespace index$g {
|
|
2347
|
+
export { type index$g_GetMediaResponse as GetMediaResponse, type index$g_GetMediaUploadUrlRequest as GetMediaUploadUrlRequest, type index$g_GetMediaUploadUrlResponse as GetMediaUploadUrlResponse, index$g_MediaContentType as MediaContentType, type index$g_PatchMediaBody as PatchMediaBody };
|
|
2120
2348
|
}
|
|
2121
2349
|
|
|
2122
2350
|
/**
|
|
@@ -2187,10 +2415,10 @@ interface GetMetricsRequest {
|
|
|
2187
2415
|
query: string;
|
|
2188
2416
|
}
|
|
2189
2417
|
|
|
2190
|
-
type index$
|
|
2191
|
-
type index$
|
|
2192
|
-
declare namespace index$
|
|
2193
|
-
export type { index$
|
|
2418
|
+
type index$f_GetMetricsRequest = GetMetricsRequest;
|
|
2419
|
+
type index$f_MetricsResponse = MetricsResponse;
|
|
2420
|
+
declare namespace index$f {
|
|
2421
|
+
export type { index$f_GetMetricsRequest as GetMetricsRequest, index$f_MetricsResponse as MetricsResponse };
|
|
2194
2422
|
}
|
|
2195
2423
|
|
|
2196
2424
|
/**
|
|
@@ -2235,21 +2463,17 @@ interface CreateModelRequest {
|
|
|
2235
2463
|
* {}
|
|
2236
2464
|
*/
|
|
2237
2465
|
interface GetModelsRequest {
|
|
2238
|
-
/**
|
|
2239
|
-
* page number, starts at 1
|
|
2240
|
-
*/
|
|
2466
|
+
/** page number, starts at 1 */
|
|
2241
2467
|
page?: number;
|
|
2242
|
-
/**
|
|
2243
|
-
* limit of items per page
|
|
2244
|
-
*/
|
|
2468
|
+
/** limit of items per page */
|
|
2245
2469
|
limit?: number;
|
|
2246
2470
|
}
|
|
2247
2471
|
|
|
2248
|
-
type index$
|
|
2249
|
-
type index$
|
|
2250
|
-
type index$
|
|
2251
|
-
declare namespace index$
|
|
2252
|
-
export type { index$
|
|
2472
|
+
type index$e_CreateModelRequest = CreateModelRequest;
|
|
2473
|
+
type index$e_GetModelsRequest = GetModelsRequest;
|
|
2474
|
+
type index$e_PaginatedModels = PaginatedModels;
|
|
2475
|
+
declare namespace index$e {
|
|
2476
|
+
export type { index$e_CreateModelRequest as CreateModelRequest, index$e_GetModelsRequest as GetModelsRequest, index$e_PaginatedModels as PaginatedModels };
|
|
2253
2477
|
}
|
|
2254
2478
|
|
|
2255
2479
|
/**
|
|
@@ -2279,113 +2503,329 @@ interface ObservationsViews {
|
|
|
2279
2503
|
* {}
|
|
2280
2504
|
*/
|
|
2281
2505
|
interface GetObservationsRequest {
|
|
2282
|
-
/**
|
|
2283
|
-
* Page number, starts at 1.
|
|
2284
|
-
*/
|
|
2506
|
+
/** Page number, starts at 1. */
|
|
2285
2507
|
page?: number;
|
|
2286
|
-
/**
|
|
2287
|
-
* Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit.
|
|
2288
|
-
*/
|
|
2508
|
+
/** Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit. */
|
|
2289
2509
|
limit?: number;
|
|
2290
2510
|
name?: string;
|
|
2291
2511
|
userId?: string;
|
|
2292
2512
|
type?: string;
|
|
2293
2513
|
traceId?: string;
|
|
2294
|
-
/**
|
|
2295
|
-
* Optional filter for observations with a specific level (e.g. "DEBUG", "DEFAULT", "WARNING", "ERROR").
|
|
2296
|
-
*/
|
|
2514
|
+
/** Optional filter for observations with a specific level (e.g. "DEBUG", "DEFAULT", "WARNING", "ERROR"). */
|
|
2297
2515
|
level?: ObservationLevel;
|
|
2298
2516
|
parentObservationId?: string;
|
|
2299
|
-
/**
|
|
2300
|
-
* Optional filter for observations where the environment is one of the provided values.
|
|
2301
|
-
*/
|
|
2517
|
+
/** Optional filter for observations where the environment is one of the provided values. */
|
|
2302
2518
|
environment?: string | string[];
|
|
2303
|
-
/**
|
|
2304
|
-
* Retrieve only observations with a start_time on or after this datetime (ISO 8601).
|
|
2305
|
-
*/
|
|
2519
|
+
/** Retrieve only observations with a start_time on or after this datetime (ISO 8601). */
|
|
2306
2520
|
fromStartTime?: string;
|
|
2307
|
-
/**
|
|
2308
|
-
* Retrieve only observations with a start_time before this datetime (ISO 8601).
|
|
2309
|
-
*/
|
|
2521
|
+
/** Retrieve only observations with a start_time before this datetime (ISO 8601). */
|
|
2310
2522
|
toStartTime?: string;
|
|
2523
|
+
/** Optional filter to only include observations with a certain version. */
|
|
2524
|
+
version?: string;
|
|
2311
2525
|
/**
|
|
2312
|
-
*
|
|
2526
|
+
* JSON string containing an array of filter conditions. When provided, this takes precedence over legacy filter parameters (userId, name, sessionId, tags, version, release, environment, fromTimestamp, toTimestamp).
|
|
2527
|
+
* Each filter condition has the following structure:
|
|
2528
|
+
* ```json
|
|
2529
|
+
* [
|
|
2530
|
+
* {
|
|
2531
|
+
* "type": string, // Required. One of: "datetime", "string", "number", "stringOptions", "categoryOptions", "arrayOptions", "stringObject", "numberObject", "boolean", "null"
|
|
2532
|
+
* "column": string, // Required. Column to filter on
|
|
2533
|
+
* "operator": string, // Required. Operator based on type:
|
|
2534
|
+
* // - datetime: ">", "<", ">=", "<="
|
|
2535
|
+
* // - string: "=", "contains", "does not contain", "starts with", "ends with"
|
|
2536
|
+
* // - stringOptions: "any of", "none of"
|
|
2537
|
+
* // - categoryOptions: "any of", "none of"
|
|
2538
|
+
* // - arrayOptions: "any of", "none of", "all of"
|
|
2539
|
+
* // - number: "=", ">", "<", ">=", "<="
|
|
2540
|
+
* // - stringObject: "=", "contains", "does not contain", "starts with", "ends with"
|
|
2541
|
+
* // - numberObject: "=", ">", "<", ">=", "<="
|
|
2542
|
+
* // - boolean: "=", "<>"
|
|
2543
|
+
* // - null: "is null", "is not null"
|
|
2544
|
+
* "value": any, // Required (except for null type). Value to compare against. Type depends on filter type
|
|
2545
|
+
* "key": string // Required only for stringObject, numberObject, and categoryOptions types when filtering on nested fields like metadata
|
|
2546
|
+
* }
|
|
2547
|
+
* ]
|
|
2548
|
+
* ```
|
|
2313
2549
|
*/
|
|
2314
|
-
|
|
2550
|
+
filter?: string;
|
|
2315
2551
|
}
|
|
2316
2552
|
|
|
2317
|
-
type index$
|
|
2318
|
-
type index$
|
|
2319
|
-
declare namespace index$
|
|
2320
|
-
export type { index$
|
|
2553
|
+
type index$d_GetObservationsRequest = GetObservationsRequest;
|
|
2554
|
+
type index$d_ObservationsViews = ObservationsViews;
|
|
2555
|
+
declare namespace index$d {
|
|
2556
|
+
export type { index$d_GetObservationsRequest as GetObservationsRequest, Observations$1 as Observations, index$d_ObservationsViews as ObservationsViews };
|
|
2321
2557
|
}
|
|
2322
2558
|
|
|
2323
2559
|
/**
|
|
2324
2560
|
* This file was auto-generated by Fern from our API Definition.
|
|
2325
2561
|
*/
|
|
2326
|
-
type MembershipRole = "OWNER" | "ADMIN" | "MEMBER" | "VIEWER";
|
|
2327
|
-
declare const MembershipRole: {
|
|
2328
|
-
readonly Owner: "OWNER";
|
|
2329
|
-
readonly Admin: "ADMIN";
|
|
2330
|
-
readonly Member: "MEMBER";
|
|
2331
|
-
readonly Viewer: "VIEWER";
|
|
2332
|
-
};
|
|
2333
2562
|
|
|
2334
2563
|
/**
|
|
2335
|
-
*
|
|
2564
|
+
* Represents a collection of spans from a single resource as per OTLP specification
|
|
2336
2565
|
*/
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2566
|
+
interface OtelResourceSpan {
|
|
2567
|
+
/** Resource information */
|
|
2568
|
+
resource?: OtelResource;
|
|
2569
|
+
/** Array of scope spans */
|
|
2570
|
+
scopeSpans?: OtelScopeSpan[];
|
|
2341
2571
|
}
|
|
2342
2572
|
|
|
2343
2573
|
/**
|
|
2344
2574
|
* This file was auto-generated by Fern from our API Definition.
|
|
2345
2575
|
*/
|
|
2346
2576
|
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
name
|
|
2577
|
+
/**
|
|
2578
|
+
* Resource attributes identifying the source of telemetry
|
|
2579
|
+
*/
|
|
2580
|
+
interface OtelResource {
|
|
2581
|
+
/** Resource attributes like service.name, service.version, etc. */
|
|
2582
|
+
attributes?: OtelAttribute[];
|
|
2352
2583
|
}
|
|
2353
2584
|
|
|
2354
2585
|
/**
|
|
2355
2586
|
* This file was auto-generated by Fern from our API Definition.
|
|
2356
2587
|
*/
|
|
2357
2588
|
|
|
2358
|
-
|
|
2359
|
-
|
|
2589
|
+
/**
|
|
2590
|
+
* Collection of spans from a single instrumentation scope
|
|
2591
|
+
*/
|
|
2592
|
+
interface OtelScopeSpan {
|
|
2593
|
+
/** Instrumentation scope information */
|
|
2594
|
+
scope?: OtelScope;
|
|
2595
|
+
/** Array of spans */
|
|
2596
|
+
spans?: OtelSpan[];
|
|
2360
2597
|
}
|
|
2361
2598
|
|
|
2362
2599
|
/**
|
|
2363
2600
|
* This file was auto-generated by Fern from our API Definition.
|
|
2364
2601
|
*/
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2602
|
+
|
|
2603
|
+
/**
|
|
2604
|
+
* Instrumentation scope information
|
|
2605
|
+
*/
|
|
2606
|
+
interface OtelScope {
|
|
2607
|
+
/** Instrumentation scope name */
|
|
2608
|
+
name?: string;
|
|
2609
|
+
/** Instrumentation scope version */
|
|
2610
|
+
version?: string;
|
|
2611
|
+
/** Additional scope attributes */
|
|
2612
|
+
attributes?: OtelAttribute[];
|
|
2371
2613
|
}
|
|
2372
2614
|
|
|
2373
2615
|
/**
|
|
2374
2616
|
* This file was auto-generated by Fern from our API Definition.
|
|
2375
2617
|
*/
|
|
2376
2618
|
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2619
|
+
/**
|
|
2620
|
+
* Individual span representing a unit of work or operation
|
|
2621
|
+
*/
|
|
2622
|
+
interface OtelSpan {
|
|
2623
|
+
/** Trace ID (16 bytes, hex-encoded string in JSON or Buffer in binary) */
|
|
2624
|
+
traceId?: unknown;
|
|
2625
|
+
/** Span ID (8 bytes, hex-encoded string in JSON or Buffer in binary) */
|
|
2626
|
+
spanId?: unknown;
|
|
2627
|
+
/** Parent span ID if this is a child span */
|
|
2628
|
+
parentSpanId?: unknown;
|
|
2629
|
+
/** Span name describing the operation */
|
|
2630
|
+
name?: string;
|
|
2631
|
+
/** Span kind (1=INTERNAL, 2=SERVER, 3=CLIENT, 4=PRODUCER, 5=CONSUMER) */
|
|
2632
|
+
kind?: number;
|
|
2633
|
+
/** Start time in nanoseconds since Unix epoch */
|
|
2634
|
+
startTimeUnixNano?: unknown;
|
|
2635
|
+
/** End time in nanoseconds since Unix epoch */
|
|
2636
|
+
endTimeUnixNano?: unknown;
|
|
2637
|
+
/** Span attributes including Langfuse-specific attributes (langfuse.observation.*) */
|
|
2638
|
+
attributes?: OtelAttribute[];
|
|
2639
|
+
/** Span status object */
|
|
2640
|
+
status?: unknown;
|
|
2641
|
+
}
|
|
2642
|
+
|
|
2643
|
+
/**
|
|
2644
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2645
|
+
*/
|
|
2646
|
+
|
|
2647
|
+
/**
|
|
2648
|
+
* Key-value attribute pair for resources, scopes, or spans
|
|
2649
|
+
*/
|
|
2650
|
+
interface OtelAttribute {
|
|
2651
|
+
/** Attribute key (e.g., "service.name", "langfuse.observation.type") */
|
|
2652
|
+
key?: string;
|
|
2653
|
+
/** Attribute value */
|
|
2654
|
+
value?: OtelAttributeValue;
|
|
2655
|
+
}
|
|
2656
|
+
|
|
2657
|
+
/**
|
|
2658
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2659
|
+
*/
|
|
2660
|
+
/**
|
|
2661
|
+
* Attribute value wrapper supporting different value types
|
|
2662
|
+
*/
|
|
2663
|
+
interface OtelAttributeValue {
|
|
2664
|
+
/** String value */
|
|
2665
|
+
stringValue?: string;
|
|
2666
|
+
/** Integer value */
|
|
2667
|
+
intValue?: number;
|
|
2668
|
+
/** Double value */
|
|
2669
|
+
doubleValue?: number;
|
|
2670
|
+
/** Boolean value */
|
|
2671
|
+
boolValue?: boolean;
|
|
2672
|
+
}
|
|
2673
|
+
|
|
2674
|
+
/**
|
|
2675
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2676
|
+
*/
|
|
2677
|
+
/**
|
|
2678
|
+
* Response from trace export request. Empty object indicates success.
|
|
2679
|
+
*/
|
|
2680
|
+
interface OtelTraceResponse {
|
|
2681
|
+
}
|
|
2682
|
+
|
|
2683
|
+
/**
|
|
2684
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2685
|
+
*/
|
|
2686
|
+
|
|
2687
|
+
/**
|
|
2688
|
+
* @example
|
|
2689
|
+
* {
|
|
2690
|
+
* resourceSpans: [{
|
|
2691
|
+
* resource: {
|
|
2692
|
+
* attributes: [{
|
|
2693
|
+
* key: "service.name",
|
|
2694
|
+
* value: {
|
|
2695
|
+
* stringValue: "my-service"
|
|
2696
|
+
* }
|
|
2697
|
+
* }, {
|
|
2698
|
+
* key: "service.version",
|
|
2699
|
+
* value: {
|
|
2700
|
+
* stringValue: "1.0.0"
|
|
2701
|
+
* }
|
|
2702
|
+
* }]
|
|
2703
|
+
* },
|
|
2704
|
+
* scopeSpans: [{
|
|
2705
|
+
* scope: {
|
|
2706
|
+
* name: "langfuse-sdk",
|
|
2707
|
+
* version: "2.60.3"
|
|
2708
|
+
* },
|
|
2709
|
+
* spans: [{
|
|
2710
|
+
* traceId: "0123456789abcdef0123456789abcdef",
|
|
2711
|
+
* spanId: "0123456789abcdef",
|
|
2712
|
+
* name: "my-operation",
|
|
2713
|
+
* kind: 1,
|
|
2714
|
+
* startTimeUnixNano: "1747872000000000000",
|
|
2715
|
+
* endTimeUnixNano: "1747872001000000000",
|
|
2716
|
+
* attributes: [{
|
|
2717
|
+
* key: "langfuse.observation.type",
|
|
2718
|
+
* value: {
|
|
2719
|
+
* stringValue: "generation"
|
|
2720
|
+
* }
|
|
2721
|
+
* }],
|
|
2722
|
+
* status: {}
|
|
2723
|
+
* }]
|
|
2724
|
+
* }]
|
|
2725
|
+
* }]
|
|
2726
|
+
* }
|
|
2727
|
+
*/
|
|
2728
|
+
interface OtelTraceRequest {
|
|
2729
|
+
/** Array of resource spans containing trace data as defined in the OTLP specification */
|
|
2730
|
+
resourceSpans: OtelResourceSpan[];
|
|
2731
|
+
}
|
|
2732
|
+
|
|
2733
|
+
type index$c_OtelAttribute = OtelAttribute;
|
|
2734
|
+
type index$c_OtelAttributeValue = OtelAttributeValue;
|
|
2735
|
+
type index$c_OtelResource = OtelResource;
|
|
2736
|
+
type index$c_OtelResourceSpan = OtelResourceSpan;
|
|
2737
|
+
type index$c_OtelScope = OtelScope;
|
|
2738
|
+
type index$c_OtelScopeSpan = OtelScopeSpan;
|
|
2739
|
+
type index$c_OtelSpan = OtelSpan;
|
|
2740
|
+
type index$c_OtelTraceRequest = OtelTraceRequest;
|
|
2741
|
+
type index$c_OtelTraceResponse = OtelTraceResponse;
|
|
2742
|
+
declare namespace index$c {
|
|
2743
|
+
export type { index$c_OtelAttribute as OtelAttribute, index$c_OtelAttributeValue as OtelAttributeValue, index$c_OtelResource as OtelResource, index$c_OtelResourceSpan as OtelResourceSpan, index$c_OtelScope as OtelScope, index$c_OtelScopeSpan as OtelScopeSpan, index$c_OtelSpan as OtelSpan, index$c_OtelTraceRequest as OtelTraceRequest, index$c_OtelTraceResponse as OtelTraceResponse };
|
|
2744
|
+
}
|
|
2745
|
+
|
|
2746
|
+
/**
|
|
2747
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2748
|
+
*/
|
|
2749
|
+
type MembershipRole = "OWNER" | "ADMIN" | "MEMBER" | "VIEWER";
|
|
2750
|
+
declare const MembershipRole: {
|
|
2751
|
+
readonly Owner: "OWNER";
|
|
2752
|
+
readonly Admin: "ADMIN";
|
|
2753
|
+
readonly Member: "MEMBER";
|
|
2754
|
+
readonly Viewer: "VIEWER";
|
|
2755
|
+
};
|
|
2756
|
+
|
|
2757
|
+
/**
|
|
2758
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2759
|
+
*/
|
|
2760
|
+
|
|
2761
|
+
interface MembershipRequest {
|
|
2762
|
+
userId: string;
|
|
2763
|
+
role: MembershipRole;
|
|
2764
|
+
}
|
|
2765
|
+
|
|
2766
|
+
/**
|
|
2767
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2768
|
+
*/
|
|
2769
|
+
interface DeleteMembershipRequest {
|
|
2770
|
+
userId: string;
|
|
2771
|
+
}
|
|
2772
|
+
|
|
2773
|
+
/**
|
|
2774
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2775
|
+
*/
|
|
2776
|
+
|
|
2777
|
+
interface MembershipResponse {
|
|
2778
|
+
userId: string;
|
|
2779
|
+
role: MembershipRole;
|
|
2780
|
+
email: string;
|
|
2781
|
+
name: string;
|
|
2782
|
+
}
|
|
2783
|
+
|
|
2784
|
+
/**
|
|
2785
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2786
|
+
*/
|
|
2787
|
+
interface MembershipDeletionResponse {
|
|
2788
|
+
message: string;
|
|
2789
|
+
userId: string;
|
|
2790
|
+
}
|
|
2791
|
+
|
|
2792
|
+
/**
|
|
2793
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2794
|
+
*/
|
|
2795
|
+
|
|
2796
|
+
interface MembershipsResponse {
|
|
2797
|
+
memberships: MembershipResponse[];
|
|
2798
|
+
}
|
|
2799
|
+
|
|
2800
|
+
/**
|
|
2801
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2802
|
+
*/
|
|
2803
|
+
interface OrganizationProject {
|
|
2804
|
+
id: string;
|
|
2805
|
+
name: string;
|
|
2806
|
+
metadata?: Record<string, unknown>;
|
|
2807
|
+
createdAt: string;
|
|
2808
|
+
updatedAt: string;
|
|
2809
|
+
}
|
|
2810
|
+
|
|
2811
|
+
/**
|
|
2812
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2813
|
+
*/
|
|
2814
|
+
|
|
2815
|
+
interface OrganizationProjectsResponse {
|
|
2816
|
+
projects: OrganizationProject[];
|
|
2817
|
+
}
|
|
2818
|
+
|
|
2819
|
+
type index$b_DeleteMembershipRequest = DeleteMembershipRequest;
|
|
2820
|
+
type index$b_MembershipDeletionResponse = MembershipDeletionResponse;
|
|
2821
|
+
type index$b_MembershipRequest = MembershipRequest;
|
|
2822
|
+
type index$b_MembershipResponse = MembershipResponse;
|
|
2823
|
+
declare const index$b_MembershipRole: typeof MembershipRole;
|
|
2824
|
+
type index$b_MembershipsResponse = MembershipsResponse;
|
|
2825
|
+
type index$b_OrganizationProject = OrganizationProject;
|
|
2826
|
+
type index$b_OrganizationProjectsResponse = OrganizationProjectsResponse;
|
|
2827
|
+
declare namespace index$b {
|
|
2828
|
+
export { type index$b_DeleteMembershipRequest as DeleteMembershipRequest, type index$b_MembershipDeletionResponse as MembershipDeletionResponse, type index$b_MembershipRequest as MembershipRequest, type index$b_MembershipResponse as MembershipResponse, index$b_MembershipRole as MembershipRole, type index$b_MembershipsResponse as MembershipsResponse, type index$b_OrganizationProject as OrganizationProject, type index$b_OrganizationProjectsResponse as OrganizationProjectsResponse };
|
|
2389
2829
|
}
|
|
2390
2830
|
|
|
2391
2831
|
/**
|
|
@@ -2512,12 +2952,18 @@ interface UpdateProjectRequest {
|
|
|
2512
2952
|
/**
|
|
2513
2953
|
* @example
|
|
2514
2954
|
* {
|
|
2515
|
-
* note: undefined
|
|
2955
|
+
* note: undefined,
|
|
2956
|
+
* publicKey: undefined,
|
|
2957
|
+
* secretKey: undefined
|
|
2516
2958
|
* }
|
|
2517
2959
|
*/
|
|
2518
2960
|
interface CreateApiKeyRequest {
|
|
2519
2961
|
/** Optional note for the API key */
|
|
2520
2962
|
note?: string;
|
|
2963
|
+
/** Optional predefined public key. Must start with 'pk-lf-'. If provided, secretKey must also be provided. */
|
|
2964
|
+
publicKey?: string;
|
|
2965
|
+
/** Optional predefined secret key. Must start with 'sk-lf-'. If provided, publicKey must also be provided. */
|
|
2966
|
+
secretKey?: string;
|
|
2521
2967
|
}
|
|
2522
2968
|
|
|
2523
2969
|
type index$a_ApiKeyDeletionResponse = ApiKeyDeletionResponse;
|
|
@@ -2545,8 +2991,11 @@ interface PromptMetaListResponse {
|
|
|
2545
2991
|
/**
|
|
2546
2992
|
* This file was auto-generated by Fern from our API Definition.
|
|
2547
2993
|
*/
|
|
2994
|
+
|
|
2548
2995
|
interface PromptMeta {
|
|
2549
2996
|
name: string;
|
|
2997
|
+
/** Indicates whether the prompt is a text or chat prompt. */
|
|
2998
|
+
type: PromptType;
|
|
2550
2999
|
versions: number[];
|
|
2551
3000
|
labels: string[];
|
|
2552
3001
|
tags: string[];
|
|
@@ -2614,6 +3063,15 @@ declare namespace Prompt {
|
|
|
2614
3063
|
}
|
|
2615
3064
|
}
|
|
2616
3065
|
|
|
3066
|
+
/**
|
|
3067
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3068
|
+
*/
|
|
3069
|
+
type PromptType = "chat" | "text";
|
|
3070
|
+
declare const PromptType: {
|
|
3071
|
+
readonly Chat: "chat";
|
|
3072
|
+
readonly Text: "text";
|
|
3073
|
+
};
|
|
3074
|
+
|
|
2617
3075
|
/**
|
|
2618
3076
|
* This file was auto-generated by Fern from our API Definition.
|
|
2619
3077
|
*/
|
|
@@ -2684,13 +3142,9 @@ interface ChatPrompt extends BasePrompt {
|
|
|
2684
3142
|
* {}
|
|
2685
3143
|
*/
|
|
2686
3144
|
interface GetPromptRequest {
|
|
2687
|
-
/**
|
|
2688
|
-
* Version of the prompt to be retrieved.
|
|
2689
|
-
*/
|
|
3145
|
+
/** Version of the prompt to be retrieved. */
|
|
2690
3146
|
version?: number;
|
|
2691
|
-
/**
|
|
2692
|
-
* Label of the prompt to be retrieved. Defaults to "production" if no label or version is set.
|
|
2693
|
-
*/
|
|
3147
|
+
/** Label of the prompt to be retrieved. Defaults to "production" if no label or version is set. */
|
|
2694
3148
|
label?: string;
|
|
2695
3149
|
}
|
|
2696
3150
|
|
|
@@ -2705,21 +3159,13 @@ interface ListPromptsMetaRequest {
|
|
|
2705
3159
|
name?: string;
|
|
2706
3160
|
label?: string;
|
|
2707
3161
|
tag?: string;
|
|
2708
|
-
/**
|
|
2709
|
-
* page number, starts at 1
|
|
2710
|
-
*/
|
|
3162
|
+
/** page number, starts at 1 */
|
|
2711
3163
|
page?: number;
|
|
2712
|
-
/**
|
|
2713
|
-
* limit of items per page
|
|
2714
|
-
*/
|
|
3164
|
+
/** limit of items per page */
|
|
2715
3165
|
limit?: number;
|
|
2716
|
-
/**
|
|
2717
|
-
* Optional filter to only include prompt versions created/updated on or after a certain datetime (ISO 8601)
|
|
2718
|
-
*/
|
|
3166
|
+
/** Optional filter to only include prompt versions created/updated on or after a certain datetime (ISO 8601) */
|
|
2719
3167
|
fromUpdatedAt?: string;
|
|
2720
|
-
/**
|
|
2721
|
-
* Optional filter to only include prompt versions created/updated before a certain datetime (ISO 8601)
|
|
2722
|
-
*/
|
|
3168
|
+
/** Optional filter to only include prompt versions created/updated before a certain datetime (ISO 8601) */
|
|
2723
3169
|
toUpdatedAt?: string;
|
|
2724
3170
|
}
|
|
2725
3171
|
|
|
@@ -2736,9 +3182,10 @@ type index$9_PlaceholderMessage = PlaceholderMessage;
|
|
|
2736
3182
|
declare const index$9_Prompt: typeof Prompt;
|
|
2737
3183
|
type index$9_PromptMeta = PromptMeta;
|
|
2738
3184
|
type index$9_PromptMetaListResponse = PromptMetaListResponse;
|
|
3185
|
+
declare const index$9_PromptType: typeof PromptType;
|
|
2739
3186
|
type index$9_TextPrompt = TextPrompt;
|
|
2740
3187
|
declare namespace index$9 {
|
|
2741
|
-
export { type index$9_BasePrompt as BasePrompt, type index$9_ChatMessage as ChatMessage, index$9_ChatMessageWithPlaceholders as ChatMessageWithPlaceholders, type index$9_ChatPrompt as ChatPrompt, type index$9_CreateChatPromptRequest as CreateChatPromptRequest, index$9_CreatePromptRequest as CreatePromptRequest, type index$9_CreateTextPromptRequest as CreateTextPromptRequest, type index$9_GetPromptRequest as GetPromptRequest, type index$9_ListPromptsMetaRequest as ListPromptsMetaRequest, type index$9_PlaceholderMessage as PlaceholderMessage, index$9_Prompt as Prompt, type index$9_PromptMeta as PromptMeta, type index$9_PromptMetaListResponse as PromptMetaListResponse, type index$9_TextPrompt as TextPrompt };
|
|
3188
|
+
export { type index$9_BasePrompt as BasePrompt, type index$9_ChatMessage as ChatMessage, index$9_ChatMessageWithPlaceholders as ChatMessageWithPlaceholders, type index$9_ChatPrompt as ChatPrompt, type index$9_CreateChatPromptRequest as CreateChatPromptRequest, index$9_CreatePromptRequest as CreatePromptRequest, type index$9_CreateTextPromptRequest as CreateTextPromptRequest, type index$9_GetPromptRequest as GetPromptRequest, type index$9_ListPromptsMetaRequest as ListPromptsMetaRequest, type index$9_PlaceholderMessage as PlaceholderMessage, index$9_Prompt as Prompt, type index$9_PromptMeta as PromptMeta, type index$9_PromptMetaListResponse as PromptMetaListResponse, index$9_PromptType as PromptType, type index$9_TextPrompt as TextPrompt };
|
|
2742
3189
|
}
|
|
2743
3190
|
|
|
2744
3191
|
/**
|
|
@@ -2923,17 +3370,11 @@ interface EmptyResponse {
|
|
|
2923
3370
|
* {}
|
|
2924
3371
|
*/
|
|
2925
3372
|
interface ListUsersRequest {
|
|
2926
|
-
/**
|
|
2927
|
-
* Filter expression (e.g. userName eq "value")
|
|
2928
|
-
*/
|
|
3373
|
+
/** Filter expression (e.g. userName eq "value") */
|
|
2929
3374
|
filter?: string;
|
|
2930
|
-
/**
|
|
2931
|
-
* 1-based index of the first result to return (default 1)
|
|
2932
|
-
*/
|
|
3375
|
+
/** 1-based index of the first result to return (default 1) */
|
|
2933
3376
|
startIndex?: number;
|
|
2934
|
-
/**
|
|
2935
|
-
* Maximum number of results to return (default 100)
|
|
2936
|
-
*/
|
|
3377
|
+
/** Maximum number of results to return (default 100) */
|
|
2937
3378
|
count?: number;
|
|
2938
3379
|
}
|
|
2939
3380
|
|
|
@@ -3015,6 +3456,25 @@ interface CreateScoreConfigRequest {
|
|
|
3015
3456
|
description?: string;
|
|
3016
3457
|
}
|
|
3017
3458
|
|
|
3459
|
+
/**
|
|
3460
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3461
|
+
*/
|
|
3462
|
+
|
|
3463
|
+
interface UpdateScoreConfigRequest {
|
|
3464
|
+
/** The status of the score config showing if it is archived or not */
|
|
3465
|
+
isArchived?: boolean;
|
|
3466
|
+
/** The name of the score config */
|
|
3467
|
+
name?: string;
|
|
3468
|
+
/** Configure custom categories for categorical scores. Pass a list of objects with `label` and `value` properties. Categories are autogenerated for boolean configs and cannot be passed */
|
|
3469
|
+
categories?: ConfigCategory[];
|
|
3470
|
+
/** Configure a minimum value for numerical scores. If not set, the minimum value defaults to -∞ */
|
|
3471
|
+
minValue?: number;
|
|
3472
|
+
/** Configure a maximum value for numerical scores. If not set, the maximum value defaults to +∞ */
|
|
3473
|
+
maxValue?: number;
|
|
3474
|
+
/** Description is shown across the Langfuse UI and can be used to e.g. explain the config categories in detail, why a numeric range was set, or provide additional context on config name or usage */
|
|
3475
|
+
description?: string;
|
|
3476
|
+
}
|
|
3477
|
+
|
|
3018
3478
|
/**
|
|
3019
3479
|
* This file was auto-generated by Fern from our API Definition.
|
|
3020
3480
|
*/
|
|
@@ -3023,20 +3483,17 @@ interface CreateScoreConfigRequest {
|
|
|
3023
3483
|
* {}
|
|
3024
3484
|
*/
|
|
3025
3485
|
interface GetScoreConfigsRequest {
|
|
3026
|
-
/**
|
|
3027
|
-
* Page number, starts at 1.
|
|
3028
|
-
*/
|
|
3486
|
+
/** Page number, starts at 1. */
|
|
3029
3487
|
page?: number;
|
|
3030
|
-
/**
|
|
3031
|
-
* Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit
|
|
3032
|
-
*/
|
|
3488
|
+
/** Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit */
|
|
3033
3489
|
limit?: number;
|
|
3034
3490
|
}
|
|
3035
3491
|
|
|
3036
3492
|
type index$7_CreateScoreConfigRequest = CreateScoreConfigRequest;
|
|
3037
3493
|
type index$7_GetScoreConfigsRequest = GetScoreConfigsRequest;
|
|
3494
|
+
type index$7_UpdateScoreConfigRequest = UpdateScoreConfigRequest;
|
|
3038
3495
|
declare namespace index$7 {
|
|
3039
|
-
export type { index$7_CreateScoreConfigRequest as CreateScoreConfigRequest, index$7_GetScoreConfigsRequest as GetScoreConfigsRequest, ScoreConfigs$1 as ScoreConfigs };
|
|
3496
|
+
export type { index$7_CreateScoreConfigRequest as CreateScoreConfigRequest, index$7_GetScoreConfigsRequest as GetScoreConfigsRequest, ScoreConfigs$1 as ScoreConfigs, index$7_UpdateScoreConfigRequest as UpdateScoreConfigRequest };
|
|
3040
3497
|
}
|
|
3041
3498
|
|
|
3042
3499
|
/**
|
|
@@ -3110,65 +3567,37 @@ interface GetScoresResponse {
|
|
|
3110
3567
|
* {}
|
|
3111
3568
|
*/
|
|
3112
3569
|
interface GetScoresRequest {
|
|
3113
|
-
/**
|
|
3114
|
-
* Page number, starts at 1.
|
|
3115
|
-
*/
|
|
3570
|
+
/** Page number, starts at 1. */
|
|
3116
3571
|
page?: number;
|
|
3117
|
-
/**
|
|
3118
|
-
* Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit.
|
|
3119
|
-
*/
|
|
3572
|
+
/** Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit. */
|
|
3120
3573
|
limit?: number;
|
|
3121
|
-
/**
|
|
3122
|
-
* Retrieve only scores with this userId associated to the trace.
|
|
3123
|
-
*/
|
|
3574
|
+
/** Retrieve only scores with this userId associated to the trace. */
|
|
3124
3575
|
userId?: string;
|
|
3125
|
-
/**
|
|
3126
|
-
* Retrieve only scores with this name.
|
|
3127
|
-
*/
|
|
3576
|
+
/** Retrieve only scores with this name. */
|
|
3128
3577
|
name?: string;
|
|
3129
|
-
/**
|
|
3130
|
-
* Optional filter to only include scores created on or after a certain datetime (ISO 8601)
|
|
3131
|
-
*/
|
|
3578
|
+
/** Optional filter to only include scores created on or after a certain datetime (ISO 8601) */
|
|
3132
3579
|
fromTimestamp?: string;
|
|
3133
|
-
/**
|
|
3134
|
-
* Optional filter to only include scores created before a certain datetime (ISO 8601)
|
|
3135
|
-
*/
|
|
3580
|
+
/** Optional filter to only include scores created before a certain datetime (ISO 8601) */
|
|
3136
3581
|
toTimestamp?: string;
|
|
3137
|
-
/**
|
|
3138
|
-
* Optional filter for scores where the environment is one of the provided values.
|
|
3139
|
-
*/
|
|
3582
|
+
/** Optional filter for scores where the environment is one of the provided values. */
|
|
3140
3583
|
environment?: string | string[];
|
|
3141
|
-
/**
|
|
3142
|
-
* Retrieve only scores from a specific source.
|
|
3143
|
-
*/
|
|
3584
|
+
/** Retrieve only scores from a specific source. */
|
|
3144
3585
|
source?: ScoreSource;
|
|
3145
|
-
/**
|
|
3146
|
-
* Retrieve only scores with <operator> value.
|
|
3147
|
-
*/
|
|
3586
|
+
/** Retrieve only scores with <operator> value. */
|
|
3148
3587
|
operator?: string;
|
|
3149
|
-
/**
|
|
3150
|
-
* Retrieve only scores with <operator> value.
|
|
3151
|
-
*/
|
|
3588
|
+
/** Retrieve only scores with <operator> value. */
|
|
3152
3589
|
value?: number;
|
|
3153
|
-
/**
|
|
3154
|
-
* Comma-separated list of score IDs to limit the results to.
|
|
3155
|
-
*/
|
|
3590
|
+
/** Comma-separated list of score IDs to limit the results to. */
|
|
3156
3591
|
scoreIds?: string;
|
|
3157
|
-
/**
|
|
3158
|
-
* Retrieve only scores with a specific configId.
|
|
3159
|
-
*/
|
|
3592
|
+
/** Retrieve only scores with a specific configId. */
|
|
3160
3593
|
configId?: string;
|
|
3161
|
-
/**
|
|
3162
|
-
|
|
3163
|
-
|
|
3594
|
+
/** Retrieve only scores with a specific sessionId. */
|
|
3595
|
+
sessionId?: string;
|
|
3596
|
+
/** Retrieve only scores with a specific annotation queueId. */
|
|
3164
3597
|
queueId?: string;
|
|
3165
|
-
/**
|
|
3166
|
-
* Retrieve only scores with a specific dataType.
|
|
3167
|
-
*/
|
|
3598
|
+
/** Retrieve only scores with a specific dataType. */
|
|
3168
3599
|
dataType?: ScoreDataType;
|
|
3169
|
-
/**
|
|
3170
|
-
* Only scores linked to traces that include all of these tags will be returned.
|
|
3171
|
-
*/
|
|
3600
|
+
/** Only scores linked to traces that include all of these tags will be returned. */
|
|
3172
3601
|
traceTags?: string | string[];
|
|
3173
3602
|
}
|
|
3174
3603
|
|
|
@@ -3260,6 +3689,8 @@ interface CreateScoreRequest {
|
|
|
3260
3689
|
metadata?: unknown;
|
|
3261
3690
|
/** The environment of the score. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'. */
|
|
3262
3691
|
environment?: string;
|
|
3692
|
+
/** The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue. */
|
|
3693
|
+
queueId?: string;
|
|
3263
3694
|
/** The data type of the score. When passing a configId this field is inferred. Otherwise, this field must be passed or will default to numeric. */
|
|
3264
3695
|
dataType?: ScoreDataType;
|
|
3265
3696
|
/** Reference a score config on a score. The unique langfuse identifier of a score config. When passing this field, the dataType and stringValue fields are automatically populated. */
|
|
@@ -3297,25 +3728,15 @@ interface PaginatedSessions {
|
|
|
3297
3728
|
* {}
|
|
3298
3729
|
*/
|
|
3299
3730
|
interface GetSessionsRequest {
|
|
3300
|
-
/**
|
|
3301
|
-
* Page number, starts at 1
|
|
3302
|
-
*/
|
|
3731
|
+
/** Page number, starts at 1 */
|
|
3303
3732
|
page?: number;
|
|
3304
|
-
/**
|
|
3305
|
-
* Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit.
|
|
3306
|
-
*/
|
|
3733
|
+
/** Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit. */
|
|
3307
3734
|
limit?: number;
|
|
3308
|
-
/**
|
|
3309
|
-
* Optional filter to only include sessions created on or after a certain datetime (ISO 8601)
|
|
3310
|
-
*/
|
|
3735
|
+
/** Optional filter to only include sessions created on or after a certain datetime (ISO 8601) */
|
|
3311
3736
|
fromTimestamp?: string;
|
|
3312
|
-
/**
|
|
3313
|
-
* Optional filter to only include sessions created before a certain datetime (ISO 8601)
|
|
3314
|
-
*/
|
|
3737
|
+
/** Optional filter to only include sessions created before a certain datetime (ISO 8601) */
|
|
3315
3738
|
toTimestamp?: string;
|
|
3316
|
-
/**
|
|
3317
|
-
* Optional filter for sessions where the environment is one of the provided values.
|
|
3318
|
-
*/
|
|
3739
|
+
/** Optional filter for sessions where the environment is one of the provided values. */
|
|
3319
3740
|
environment?: string | string[];
|
|
3320
3741
|
}
|
|
3321
3742
|
|
|
@@ -3356,49 +3777,55 @@ interface Sort {
|
|
|
3356
3777
|
* {}
|
|
3357
3778
|
*/
|
|
3358
3779
|
interface GetTracesRequest {
|
|
3359
|
-
/**
|
|
3360
|
-
* Page number, starts at 1
|
|
3361
|
-
*/
|
|
3780
|
+
/** Page number, starts at 1 */
|
|
3362
3781
|
page?: number;
|
|
3363
|
-
/**
|
|
3364
|
-
* Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit.
|
|
3365
|
-
*/
|
|
3782
|
+
/** Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit. */
|
|
3366
3783
|
limit?: number;
|
|
3367
3784
|
userId?: string;
|
|
3368
3785
|
name?: string;
|
|
3369
3786
|
sessionId?: string;
|
|
3370
|
-
/**
|
|
3371
|
-
* Optional filter to only include traces with a trace.timestamp on or after a certain datetime (ISO 8601)
|
|
3372
|
-
*/
|
|
3787
|
+
/** Optional filter to only include traces with a trace.timestamp on or after a certain datetime (ISO 8601) */
|
|
3373
3788
|
fromTimestamp?: string;
|
|
3374
|
-
/**
|
|
3375
|
-
* Optional filter to only include traces with a trace.timestamp before a certain datetime (ISO 8601)
|
|
3376
|
-
*/
|
|
3789
|
+
/** Optional filter to only include traces with a trace.timestamp before a certain datetime (ISO 8601) */
|
|
3377
3790
|
toTimestamp?: string;
|
|
3378
|
-
/**
|
|
3379
|
-
* Format of the string [field].[asc/desc]. Fields: id, timestamp, name, userId, release, version, public, bookmarked, sessionId. Example: timestamp.asc
|
|
3380
|
-
*/
|
|
3791
|
+
/** Format of the string [field].[asc/desc]. Fields: id, timestamp, name, userId, release, version, public, bookmarked, sessionId. Example: timestamp.asc */
|
|
3381
3792
|
orderBy?: string;
|
|
3382
|
-
/**
|
|
3383
|
-
* Only traces that include all of these tags will be returned.
|
|
3384
|
-
*/
|
|
3793
|
+
/** Only traces that include all of these tags will be returned. */
|
|
3385
3794
|
tags?: string | string[];
|
|
3386
|
-
/**
|
|
3387
|
-
* Optional filter to only include traces with a certain version.
|
|
3388
|
-
*/
|
|
3795
|
+
/** Optional filter to only include traces with a certain version. */
|
|
3389
3796
|
version?: string;
|
|
3390
|
-
/**
|
|
3391
|
-
* Optional filter to only include traces with a certain release.
|
|
3392
|
-
*/
|
|
3797
|
+
/** Optional filter to only include traces with a certain release. */
|
|
3393
3798
|
release?: string;
|
|
3394
|
-
/**
|
|
3395
|
-
* Optional filter for traces where the environment is one of the provided values.
|
|
3396
|
-
*/
|
|
3799
|
+
/** Optional filter for traces where the environment is one of the provided values. */
|
|
3397
3800
|
environment?: string | string[];
|
|
3801
|
+
/** Comma-separated list of fields to include in the response. Available field groups: 'core' (always included), 'io' (input, output, metadata), 'scores', 'observations', 'metrics'. If not specified, all fields are returned. Example: 'core,scores,metrics'. Note: Excluded 'observations' or 'scores' fields return empty arrays; excluded 'metrics' returns -1 for 'totalCost' and 'latency'. */
|
|
3802
|
+
fields?: string;
|
|
3398
3803
|
/**
|
|
3399
|
-
*
|
|
3804
|
+
* JSON string containing an array of filter conditions. When provided, this takes precedence over legacy filter parameters (userId, name, sessionId, tags, version, release, environment, fromTimestamp, toTimestamp).
|
|
3805
|
+
* Each filter condition has the following structure:
|
|
3806
|
+
* ```json
|
|
3807
|
+
* [
|
|
3808
|
+
* {
|
|
3809
|
+
* "type": string, // Required. One of: "datetime", "string", "number", "stringOptions", "categoryOptions", "arrayOptions", "stringObject", "numberObject", "boolean", "null"
|
|
3810
|
+
* "column": string, // Required. Column to filter on
|
|
3811
|
+
* "operator": string, // Required. Operator based on type:
|
|
3812
|
+
* // - datetime: ">", "<", ">=", "<="
|
|
3813
|
+
* // - string: "=", "contains", "does not contain", "starts with", "ends with"
|
|
3814
|
+
* // - stringOptions: "any of", "none of"
|
|
3815
|
+
* // - categoryOptions: "any of", "none of"
|
|
3816
|
+
* // - arrayOptions: "any of", "none of", "all of"
|
|
3817
|
+
* // - number: "=", ">", "<", ">=", "<="
|
|
3818
|
+
* // - stringObject: "=", "contains", "does not contain", "starts with", "ends with"
|
|
3819
|
+
* // - numberObject: "=", ">", "<", ">=", "<="
|
|
3820
|
+
* // - boolean: "=", "<>"
|
|
3821
|
+
* // - null: "is null", "is not null"
|
|
3822
|
+
* "value": any, // Required (except for null type). Value to compare against. Type depends on filter type
|
|
3823
|
+
* "key": string // Required only for stringObject, numberObject, and categoryOptions types when filtering on nested fields like metadata
|
|
3824
|
+
* }
|
|
3825
|
+
* ]
|
|
3826
|
+
* ```
|
|
3400
3827
|
*/
|
|
3401
|
-
|
|
3828
|
+
filter?: string;
|
|
3402
3829
|
}
|
|
3403
3830
|
|
|
3404
3831
|
/**
|
|
@@ -3485,7 +3912,7 @@ declare namespace AnnotationQueues {
|
|
|
3485
3912
|
/** Override the X-Langfuse-Public-Key header */
|
|
3486
3913
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
3487
3914
|
/** Additional headers to include in requests. */
|
|
3488
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
3915
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
3489
3916
|
}
|
|
3490
3917
|
interface RequestOptions {
|
|
3491
3918
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -3503,7 +3930,7 @@ declare namespace AnnotationQueues {
|
|
|
3503
3930
|
/** Additional query string parameters to include in the request. */
|
|
3504
3931
|
queryParams?: Record<string, unknown>;
|
|
3505
3932
|
/** Additional headers to include in the request. */
|
|
3506
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
3933
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
3507
3934
|
}
|
|
3508
3935
|
}
|
|
3509
3936
|
declare class AnnotationQueues {
|
|
@@ -3526,6 +3953,27 @@ declare class AnnotationQueues {
|
|
|
3526
3953
|
*/
|
|
3527
3954
|
listQueues(request?: GetAnnotationQueuesRequest, requestOptions?: AnnotationQueues.RequestOptions): HttpResponsePromise<PaginatedAnnotationQueues>;
|
|
3528
3955
|
private __listQueues;
|
|
3956
|
+
/**
|
|
3957
|
+
* Create an annotation queue
|
|
3958
|
+
*
|
|
3959
|
+
* @param {LangfuseAPI.CreateAnnotationQueueRequest} request
|
|
3960
|
+
* @param {AnnotationQueues.RequestOptions} requestOptions - Request-specific configuration.
|
|
3961
|
+
*
|
|
3962
|
+
* @throws {@link LangfuseAPI.Error}
|
|
3963
|
+
* @throws {@link LangfuseAPI.UnauthorizedError}
|
|
3964
|
+
* @throws {@link LangfuseAPI.AccessDeniedError}
|
|
3965
|
+
* @throws {@link LangfuseAPI.MethodNotAllowedError}
|
|
3966
|
+
* @throws {@link LangfuseAPI.NotFoundError}
|
|
3967
|
+
*
|
|
3968
|
+
* @example
|
|
3969
|
+
* await client.annotationQueues.createQueue({
|
|
3970
|
+
* name: "name",
|
|
3971
|
+
* description: undefined,
|
|
3972
|
+
* scoreConfigIds: ["scoreConfigIds", "scoreConfigIds"]
|
|
3973
|
+
* })
|
|
3974
|
+
*/
|
|
3975
|
+
createQueue(request: CreateAnnotationQueueRequest, requestOptions?: AnnotationQueues.RequestOptions): HttpResponsePromise<AnnotationQueue>;
|
|
3976
|
+
private __createQueue;
|
|
3529
3977
|
/**
|
|
3530
3978
|
* Get an annotation queue by ID
|
|
3531
3979
|
*
|
|
@@ -3640,6 +4088,156 @@ declare class AnnotationQueues {
|
|
|
3640
4088
|
*/
|
|
3641
4089
|
deleteQueueItem(queueId: string, itemId: string, requestOptions?: AnnotationQueues.RequestOptions): HttpResponsePromise<DeleteAnnotationQueueItemResponse>;
|
|
3642
4090
|
private __deleteQueueItem;
|
|
4091
|
+
/**
|
|
4092
|
+
* Create an assignment for a user to an annotation queue
|
|
4093
|
+
*
|
|
4094
|
+
* @param {string} queueId - The unique identifier of the annotation queue
|
|
4095
|
+
* @param {LangfuseAPI.AnnotationQueueAssignmentRequest} request
|
|
4096
|
+
* @param {AnnotationQueues.RequestOptions} requestOptions - Request-specific configuration.
|
|
4097
|
+
*
|
|
4098
|
+
* @throws {@link LangfuseAPI.Error}
|
|
4099
|
+
* @throws {@link LangfuseAPI.UnauthorizedError}
|
|
4100
|
+
* @throws {@link LangfuseAPI.AccessDeniedError}
|
|
4101
|
+
* @throws {@link LangfuseAPI.MethodNotAllowedError}
|
|
4102
|
+
* @throws {@link LangfuseAPI.NotFoundError}
|
|
4103
|
+
*
|
|
4104
|
+
* @example
|
|
4105
|
+
* await client.annotationQueues.createQueueAssignment("queueId", {
|
|
4106
|
+
* userId: "userId"
|
|
4107
|
+
* })
|
|
4108
|
+
*/
|
|
4109
|
+
createQueueAssignment(queueId: string, request: AnnotationQueueAssignmentRequest, requestOptions?: AnnotationQueues.RequestOptions): HttpResponsePromise<CreateAnnotationQueueAssignmentResponse>;
|
|
4110
|
+
private __createQueueAssignment;
|
|
4111
|
+
/**
|
|
4112
|
+
* Delete an assignment for a user to an annotation queue
|
|
4113
|
+
*
|
|
4114
|
+
* @param {string} queueId - The unique identifier of the annotation queue
|
|
4115
|
+
* @param {LangfuseAPI.AnnotationQueueAssignmentRequest} request
|
|
4116
|
+
* @param {AnnotationQueues.RequestOptions} requestOptions - Request-specific configuration.
|
|
4117
|
+
*
|
|
4118
|
+
* @throws {@link LangfuseAPI.Error}
|
|
4119
|
+
* @throws {@link LangfuseAPI.UnauthorizedError}
|
|
4120
|
+
* @throws {@link LangfuseAPI.AccessDeniedError}
|
|
4121
|
+
* @throws {@link LangfuseAPI.MethodNotAllowedError}
|
|
4122
|
+
* @throws {@link LangfuseAPI.NotFoundError}
|
|
4123
|
+
*
|
|
4124
|
+
* @example
|
|
4125
|
+
* await client.annotationQueues.deleteQueueAssignment("queueId", {
|
|
4126
|
+
* userId: "userId"
|
|
4127
|
+
* })
|
|
4128
|
+
*/
|
|
4129
|
+
deleteQueueAssignment(queueId: string, request: AnnotationQueueAssignmentRequest, requestOptions?: AnnotationQueues.RequestOptions): HttpResponsePromise<DeleteAnnotationQueueAssignmentResponse>;
|
|
4130
|
+
private __deleteQueueAssignment;
|
|
4131
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
4132
|
+
}
|
|
4133
|
+
|
|
4134
|
+
/**
|
|
4135
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4136
|
+
*/
|
|
4137
|
+
|
|
4138
|
+
declare namespace BlobStorageIntegrations {
|
|
4139
|
+
interface Options {
|
|
4140
|
+
environment: Supplier<string>;
|
|
4141
|
+
/** Specify a custom URL to connect the client to. */
|
|
4142
|
+
baseUrl?: Supplier<string>;
|
|
4143
|
+
username?: Supplier<string | undefined>;
|
|
4144
|
+
password?: Supplier<string | undefined>;
|
|
4145
|
+
/** Override the X-Langfuse-Sdk-Name header */
|
|
4146
|
+
xLangfuseSdkName?: Supplier<string | undefined>;
|
|
4147
|
+
/** Override the X-Langfuse-Sdk-Version header */
|
|
4148
|
+
xLangfuseSdkVersion?: Supplier<string | undefined>;
|
|
4149
|
+
/** Override the X-Langfuse-Public-Key header */
|
|
4150
|
+
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
4151
|
+
/** Additional headers to include in requests. */
|
|
4152
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4153
|
+
}
|
|
4154
|
+
interface RequestOptions {
|
|
4155
|
+
/** The maximum time to wait for a response in seconds. */
|
|
4156
|
+
timeoutInSeconds?: number;
|
|
4157
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
4158
|
+
maxRetries?: number;
|
|
4159
|
+
/** A hook to abort the request. */
|
|
4160
|
+
abortSignal?: AbortSignal;
|
|
4161
|
+
/** Override the X-Langfuse-Sdk-Name header */
|
|
4162
|
+
xLangfuseSdkName?: string | undefined;
|
|
4163
|
+
/** Override the X-Langfuse-Sdk-Version header */
|
|
4164
|
+
xLangfuseSdkVersion?: string | undefined;
|
|
4165
|
+
/** Override the X-Langfuse-Public-Key header */
|
|
4166
|
+
xLangfusePublicKey?: string | undefined;
|
|
4167
|
+
/** Additional query string parameters to include in the request. */
|
|
4168
|
+
queryParams?: Record<string, unknown>;
|
|
4169
|
+
/** Additional headers to include in the request. */
|
|
4170
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4171
|
+
}
|
|
4172
|
+
}
|
|
4173
|
+
declare class BlobStorageIntegrations {
|
|
4174
|
+
protected readonly _options: BlobStorageIntegrations.Options;
|
|
4175
|
+
constructor(_options: BlobStorageIntegrations.Options);
|
|
4176
|
+
/**
|
|
4177
|
+
* Get all blob storage integrations for the organization (requires organization-scoped API key)
|
|
4178
|
+
*
|
|
4179
|
+
* @param {BlobStorageIntegrations.RequestOptions} requestOptions - Request-specific configuration.
|
|
4180
|
+
*
|
|
4181
|
+
* @throws {@link LangfuseAPI.Error}
|
|
4182
|
+
* @throws {@link LangfuseAPI.UnauthorizedError}
|
|
4183
|
+
* @throws {@link LangfuseAPI.AccessDeniedError}
|
|
4184
|
+
* @throws {@link LangfuseAPI.MethodNotAllowedError}
|
|
4185
|
+
* @throws {@link LangfuseAPI.NotFoundError}
|
|
4186
|
+
*
|
|
4187
|
+
* @example
|
|
4188
|
+
* await client.blobStorageIntegrations.getBlobStorageIntegrations()
|
|
4189
|
+
*/
|
|
4190
|
+
getBlobStorageIntegrations(requestOptions?: BlobStorageIntegrations.RequestOptions): HttpResponsePromise<BlobStorageIntegrationsResponse>;
|
|
4191
|
+
private __getBlobStorageIntegrations;
|
|
4192
|
+
/**
|
|
4193
|
+
* Create or update a blob storage integration for a specific project (requires organization-scoped API key). The configuration is validated by performing a test upload to the bucket.
|
|
4194
|
+
*
|
|
4195
|
+
* @param {LangfuseAPI.CreateBlobStorageIntegrationRequest} request
|
|
4196
|
+
* @param {BlobStorageIntegrations.RequestOptions} requestOptions - Request-specific configuration.
|
|
4197
|
+
*
|
|
4198
|
+
* @throws {@link LangfuseAPI.Error}
|
|
4199
|
+
* @throws {@link LangfuseAPI.UnauthorizedError}
|
|
4200
|
+
* @throws {@link LangfuseAPI.AccessDeniedError}
|
|
4201
|
+
* @throws {@link LangfuseAPI.MethodNotAllowedError}
|
|
4202
|
+
* @throws {@link LangfuseAPI.NotFoundError}
|
|
4203
|
+
*
|
|
4204
|
+
* @example
|
|
4205
|
+
* await client.blobStorageIntegrations.upsertBlobStorageIntegration({
|
|
4206
|
+
* projectId: "projectId",
|
|
4207
|
+
* type: "S3",
|
|
4208
|
+
* bucketName: "bucketName",
|
|
4209
|
+
* endpoint: undefined,
|
|
4210
|
+
* region: "region",
|
|
4211
|
+
* accessKeyId: undefined,
|
|
4212
|
+
* secretAccessKey: undefined,
|
|
4213
|
+
* prefix: undefined,
|
|
4214
|
+
* exportFrequency: "hourly",
|
|
4215
|
+
* enabled: true,
|
|
4216
|
+
* forcePathStyle: true,
|
|
4217
|
+
* fileType: "JSON",
|
|
4218
|
+
* exportMode: "FULL_HISTORY",
|
|
4219
|
+
* exportStartDate: undefined
|
|
4220
|
+
* })
|
|
4221
|
+
*/
|
|
4222
|
+
upsertBlobStorageIntegration(request: CreateBlobStorageIntegrationRequest, requestOptions?: BlobStorageIntegrations.RequestOptions): HttpResponsePromise<BlobStorageIntegrationResponse>;
|
|
4223
|
+
private __upsertBlobStorageIntegration;
|
|
4224
|
+
/**
|
|
4225
|
+
* Delete a blob storage integration by ID (requires organization-scoped API key)
|
|
4226
|
+
*
|
|
4227
|
+
* @param {string} id
|
|
4228
|
+
* @param {BlobStorageIntegrations.RequestOptions} requestOptions - Request-specific configuration.
|
|
4229
|
+
*
|
|
4230
|
+
* @throws {@link LangfuseAPI.Error}
|
|
4231
|
+
* @throws {@link LangfuseAPI.UnauthorizedError}
|
|
4232
|
+
* @throws {@link LangfuseAPI.AccessDeniedError}
|
|
4233
|
+
* @throws {@link LangfuseAPI.MethodNotAllowedError}
|
|
4234
|
+
* @throws {@link LangfuseAPI.NotFoundError}
|
|
4235
|
+
*
|
|
4236
|
+
* @example
|
|
4237
|
+
* await client.blobStorageIntegrations.deleteBlobStorageIntegration("id")
|
|
4238
|
+
*/
|
|
4239
|
+
deleteBlobStorageIntegration(id: string, requestOptions?: BlobStorageIntegrations.RequestOptions): HttpResponsePromise<BlobStorageIntegrationDeletionResponse>;
|
|
4240
|
+
private __deleteBlobStorageIntegration;
|
|
3643
4241
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
3644
4242
|
}
|
|
3645
4243
|
|
|
@@ -3661,7 +4259,7 @@ declare namespace Comments {
|
|
|
3661
4259
|
/** Override the X-Langfuse-Public-Key header */
|
|
3662
4260
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
3663
4261
|
/** Additional headers to include in requests. */
|
|
3664
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
4262
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
3665
4263
|
}
|
|
3666
4264
|
interface RequestOptions {
|
|
3667
4265
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -3679,7 +4277,7 @@ declare namespace Comments {
|
|
|
3679
4277
|
/** Additional query string parameters to include in the request. */
|
|
3680
4278
|
queryParams?: Record<string, unknown>;
|
|
3681
4279
|
/** Additional headers to include in the request. */
|
|
3682
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
4280
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
3683
4281
|
}
|
|
3684
4282
|
}
|
|
3685
4283
|
declare class Comments {
|
|
@@ -3763,7 +4361,7 @@ declare namespace DatasetItems {
|
|
|
3763
4361
|
/** Override the X-Langfuse-Public-Key header */
|
|
3764
4362
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
3765
4363
|
/** Additional headers to include in requests. */
|
|
3766
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
4364
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
3767
4365
|
}
|
|
3768
4366
|
interface RequestOptions {
|
|
3769
4367
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -3781,7 +4379,7 @@ declare namespace DatasetItems {
|
|
|
3781
4379
|
/** Additional query string parameters to include in the request. */
|
|
3782
4380
|
queryParams?: Record<string, unknown>;
|
|
3783
4381
|
/** Additional headers to include in the request. */
|
|
3784
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
4382
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
3785
4383
|
}
|
|
3786
4384
|
}
|
|
3787
4385
|
declare class DatasetItems {
|
|
@@ -3885,7 +4483,7 @@ declare namespace DatasetRunItems {
|
|
|
3885
4483
|
/** Override the X-Langfuse-Public-Key header */
|
|
3886
4484
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
3887
4485
|
/** Additional headers to include in requests. */
|
|
3888
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
4486
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
3889
4487
|
}
|
|
3890
4488
|
interface RequestOptions {
|
|
3891
4489
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -3903,7 +4501,7 @@ declare namespace DatasetRunItems {
|
|
|
3903
4501
|
/** Additional query string parameters to include in the request. */
|
|
3904
4502
|
queryParams?: Record<string, unknown>;
|
|
3905
4503
|
/** Additional headers to include in the request. */
|
|
3906
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
4504
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
3907
4505
|
}
|
|
3908
4506
|
}
|
|
3909
4507
|
declare class DatasetRunItems {
|
|
@@ -3974,7 +4572,7 @@ declare namespace Datasets {
|
|
|
3974
4572
|
/** Override the X-Langfuse-Public-Key header */
|
|
3975
4573
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
3976
4574
|
/** Additional headers to include in requests. */
|
|
3977
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
4575
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
3978
4576
|
}
|
|
3979
4577
|
interface RequestOptions {
|
|
3980
4578
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -3992,7 +4590,7 @@ declare namespace Datasets {
|
|
|
3992
4590
|
/** Additional query string parameters to include in the request. */
|
|
3993
4591
|
queryParams?: Record<string, unknown>;
|
|
3994
4592
|
/** Additional headers to include in the request. */
|
|
3995
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
4593
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
3996
4594
|
}
|
|
3997
4595
|
}
|
|
3998
4596
|
declare class Datasets {
|
|
@@ -4128,7 +4726,7 @@ declare namespace Health {
|
|
|
4128
4726
|
/** Override the X-Langfuse-Public-Key header */
|
|
4129
4727
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
4130
4728
|
/** Additional headers to include in requests. */
|
|
4131
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
4729
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4132
4730
|
}
|
|
4133
4731
|
interface RequestOptions {
|
|
4134
4732
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -4146,7 +4744,7 @@ declare namespace Health {
|
|
|
4146
4744
|
/** Additional query string parameters to include in the request. */
|
|
4147
4745
|
queryParams?: Record<string, unknown>;
|
|
4148
4746
|
/** Additional headers to include in the request. */
|
|
4149
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
4747
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4150
4748
|
}
|
|
4151
4749
|
}
|
|
4152
4750
|
declare class Health {
|
|
@@ -4190,7 +4788,7 @@ declare namespace Ingestion {
|
|
|
4190
4788
|
/** Override the X-Langfuse-Public-Key header */
|
|
4191
4789
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
4192
4790
|
/** Additional headers to include in requests. */
|
|
4193
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
4791
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4194
4792
|
}
|
|
4195
4793
|
interface RequestOptions {
|
|
4196
4794
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -4208,15 +4806,16 @@ declare namespace Ingestion {
|
|
|
4208
4806
|
/** Additional query string parameters to include in the request. */
|
|
4209
4807
|
queryParams?: Record<string, unknown>;
|
|
4210
4808
|
/** Additional headers to include in the request. */
|
|
4211
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
4809
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4212
4810
|
}
|
|
4213
4811
|
}
|
|
4214
4812
|
declare class Ingestion {
|
|
4215
4813
|
protected readonly _options: Ingestion.Options;
|
|
4216
4814
|
constructor(_options: Ingestion.Options);
|
|
4217
4815
|
/**
|
|
4218
|
-
*
|
|
4219
|
-
*
|
|
4816
|
+
* **Legacy endpoint for batch ingestion for Langfuse Observability.**
|
|
4817
|
+
*
|
|
4818
|
+
* -> Please use the OpenTelemetry endpoint (`/api/public/otel/v1/traces`). Learn more: https://langfuse.com/integrations/native/opentelemetry
|
|
4220
4819
|
*
|
|
4221
4820
|
* Within each batch, there can be multiple events.
|
|
4222
4821
|
* Each event has a type, an id, a timestamp, metadata and a body.
|
|
@@ -4226,7 +4825,7 @@ declare class Ingestion {
|
|
|
4226
4825
|
* I.e. if you want to update a trace, you'd use the same body id, but separate event IDs.
|
|
4227
4826
|
*
|
|
4228
4827
|
* Notes:
|
|
4229
|
-
* - Introduction to data model: https://langfuse.com/docs/
|
|
4828
|
+
* - Introduction to data model: https://langfuse.com/docs/observability/data-model
|
|
4230
4829
|
* - Batch sizes are limited to 3.5 MB in total. You need to adjust the number of events per batch accordingly.
|
|
4231
4830
|
* - The API does not return a 4xx status code for input errors. Instead, it responds with a 207 status code, which includes a list of the encountered errors.
|
|
4232
4831
|
*
|
|
@@ -4299,6 +4898,93 @@ declare class Ingestion {
|
|
|
4299
4898
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
4300
4899
|
}
|
|
4301
4900
|
|
|
4901
|
+
/**
|
|
4902
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4903
|
+
*/
|
|
4904
|
+
|
|
4905
|
+
declare namespace LlmConnections {
|
|
4906
|
+
interface Options {
|
|
4907
|
+
environment: Supplier<string>;
|
|
4908
|
+
/** Specify a custom URL to connect the client to. */
|
|
4909
|
+
baseUrl?: Supplier<string>;
|
|
4910
|
+
username?: Supplier<string | undefined>;
|
|
4911
|
+
password?: Supplier<string | undefined>;
|
|
4912
|
+
/** Override the X-Langfuse-Sdk-Name header */
|
|
4913
|
+
xLangfuseSdkName?: Supplier<string | undefined>;
|
|
4914
|
+
/** Override the X-Langfuse-Sdk-Version header */
|
|
4915
|
+
xLangfuseSdkVersion?: Supplier<string | undefined>;
|
|
4916
|
+
/** Override the X-Langfuse-Public-Key header */
|
|
4917
|
+
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
4918
|
+
/** Additional headers to include in requests. */
|
|
4919
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4920
|
+
}
|
|
4921
|
+
interface RequestOptions {
|
|
4922
|
+
/** The maximum time to wait for a response in seconds. */
|
|
4923
|
+
timeoutInSeconds?: number;
|
|
4924
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
4925
|
+
maxRetries?: number;
|
|
4926
|
+
/** A hook to abort the request. */
|
|
4927
|
+
abortSignal?: AbortSignal;
|
|
4928
|
+
/** Override the X-Langfuse-Sdk-Name header */
|
|
4929
|
+
xLangfuseSdkName?: string | undefined;
|
|
4930
|
+
/** Override the X-Langfuse-Sdk-Version header */
|
|
4931
|
+
xLangfuseSdkVersion?: string | undefined;
|
|
4932
|
+
/** Override the X-Langfuse-Public-Key header */
|
|
4933
|
+
xLangfusePublicKey?: string | undefined;
|
|
4934
|
+
/** Additional query string parameters to include in the request. */
|
|
4935
|
+
queryParams?: Record<string, unknown>;
|
|
4936
|
+
/** Additional headers to include in the request. */
|
|
4937
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4938
|
+
}
|
|
4939
|
+
}
|
|
4940
|
+
declare class LlmConnections {
|
|
4941
|
+
protected readonly _options: LlmConnections.Options;
|
|
4942
|
+
constructor(_options: LlmConnections.Options);
|
|
4943
|
+
/**
|
|
4944
|
+
* Get all LLM connections in a project
|
|
4945
|
+
*
|
|
4946
|
+
* @param {LangfuseAPI.GetLlmConnectionsRequest} request
|
|
4947
|
+
* @param {LlmConnections.RequestOptions} requestOptions - Request-specific configuration.
|
|
4948
|
+
*
|
|
4949
|
+
* @throws {@link LangfuseAPI.Error}
|
|
4950
|
+
* @throws {@link LangfuseAPI.UnauthorizedError}
|
|
4951
|
+
* @throws {@link LangfuseAPI.AccessDeniedError}
|
|
4952
|
+
* @throws {@link LangfuseAPI.MethodNotAllowedError}
|
|
4953
|
+
* @throws {@link LangfuseAPI.NotFoundError}
|
|
4954
|
+
*
|
|
4955
|
+
* @example
|
|
4956
|
+
* await client.llmConnections.list()
|
|
4957
|
+
*/
|
|
4958
|
+
list(request?: GetLlmConnectionsRequest, requestOptions?: LlmConnections.RequestOptions): HttpResponsePromise<PaginatedLlmConnections>;
|
|
4959
|
+
private __list;
|
|
4960
|
+
/**
|
|
4961
|
+
* Create or update an LLM connection. The connection is upserted on provider.
|
|
4962
|
+
*
|
|
4963
|
+
* @param {LangfuseAPI.UpsertLlmConnectionRequest} request
|
|
4964
|
+
* @param {LlmConnections.RequestOptions} requestOptions - Request-specific configuration.
|
|
4965
|
+
*
|
|
4966
|
+
* @throws {@link LangfuseAPI.Error}
|
|
4967
|
+
* @throws {@link LangfuseAPI.UnauthorizedError}
|
|
4968
|
+
* @throws {@link LangfuseAPI.AccessDeniedError}
|
|
4969
|
+
* @throws {@link LangfuseAPI.MethodNotAllowedError}
|
|
4970
|
+
* @throws {@link LangfuseAPI.NotFoundError}
|
|
4971
|
+
*
|
|
4972
|
+
* @example
|
|
4973
|
+
* await client.llmConnections.upsert({
|
|
4974
|
+
* provider: "provider",
|
|
4975
|
+
* adapter: "anthropic",
|
|
4976
|
+
* secretKey: "secretKey",
|
|
4977
|
+
* baseURL: undefined,
|
|
4978
|
+
* customModels: undefined,
|
|
4979
|
+
* withDefaultModels: undefined,
|
|
4980
|
+
* extraHeaders: undefined
|
|
4981
|
+
* })
|
|
4982
|
+
*/
|
|
4983
|
+
upsert(request: UpsertLlmConnectionRequest, requestOptions?: LlmConnections.RequestOptions): HttpResponsePromise<LlmConnection>;
|
|
4984
|
+
private __upsert;
|
|
4985
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
4986
|
+
}
|
|
4987
|
+
|
|
4302
4988
|
/**
|
|
4303
4989
|
* This file was auto-generated by Fern from our API Definition.
|
|
4304
4990
|
*/
|
|
@@ -4317,7 +5003,7 @@ declare namespace Media {
|
|
|
4317
5003
|
/** Override the X-Langfuse-Public-Key header */
|
|
4318
5004
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
4319
5005
|
/** Additional headers to include in requests. */
|
|
4320
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
5006
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4321
5007
|
}
|
|
4322
5008
|
interface RequestOptions {
|
|
4323
5009
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -4335,7 +5021,7 @@ declare namespace Media {
|
|
|
4335
5021
|
/** Additional query string parameters to include in the request. */
|
|
4336
5022
|
queryParams?: Record<string, unknown>;
|
|
4337
5023
|
/** Additional headers to include in the request. */
|
|
4338
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
5024
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4339
5025
|
}
|
|
4340
5026
|
}
|
|
4341
5027
|
declare class Media {
|
|
@@ -4426,7 +5112,7 @@ declare namespace Metrics {
|
|
|
4426
5112
|
/** Override the X-Langfuse-Public-Key header */
|
|
4427
5113
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
4428
5114
|
/** Additional headers to include in requests. */
|
|
4429
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
5115
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4430
5116
|
}
|
|
4431
5117
|
interface RequestOptions {
|
|
4432
5118
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -4444,14 +5130,16 @@ declare namespace Metrics {
|
|
|
4444
5130
|
/** Additional query string parameters to include in the request. */
|
|
4445
5131
|
queryParams?: Record<string, unknown>;
|
|
4446
5132
|
/** Additional headers to include in the request. */
|
|
4447
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
5133
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4448
5134
|
}
|
|
4449
5135
|
}
|
|
4450
5136
|
declare class Metrics {
|
|
4451
5137
|
protected readonly _options: Metrics.Options;
|
|
4452
5138
|
constructor(_options: Metrics.Options);
|
|
4453
5139
|
/**
|
|
4454
|
-
* Get metrics from the Langfuse project using a query object
|
|
5140
|
+
* Get metrics from the Langfuse project using a query object.
|
|
5141
|
+
*
|
|
5142
|
+
* For more details, see the [Metrics API documentation](https://langfuse.com/docs/metrics/features/metrics-api).
|
|
4455
5143
|
*
|
|
4456
5144
|
* @param {LangfuseAPI.GetMetricsRequest} request
|
|
4457
5145
|
* @param {Metrics.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -4490,7 +5178,7 @@ declare namespace Models {
|
|
|
4490
5178
|
/** Override the X-Langfuse-Public-Key header */
|
|
4491
5179
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
4492
5180
|
/** Additional headers to include in requests. */
|
|
4493
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
5181
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4494
5182
|
}
|
|
4495
5183
|
interface RequestOptions {
|
|
4496
5184
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -4508,7 +5196,7 @@ declare namespace Models {
|
|
|
4508
5196
|
/** Additional query string parameters to include in the request. */
|
|
4509
5197
|
queryParams?: Record<string, unknown>;
|
|
4510
5198
|
/** Additional headers to include in the request. */
|
|
4511
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
5199
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4512
5200
|
}
|
|
4513
5201
|
}
|
|
4514
5202
|
declare class Models {
|
|
@@ -4613,7 +5301,7 @@ declare namespace Observations {
|
|
|
4613
5301
|
/** Override the X-Langfuse-Public-Key header */
|
|
4614
5302
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
4615
5303
|
/** Additional headers to include in requests. */
|
|
4616
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
5304
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4617
5305
|
}
|
|
4618
5306
|
interface RequestOptions {
|
|
4619
5307
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -4631,7 +5319,7 @@ declare namespace Observations {
|
|
|
4631
5319
|
/** Additional query string parameters to include in the request. */
|
|
4632
5320
|
queryParams?: Record<string, unknown>;
|
|
4633
5321
|
/** Additional headers to include in the request. */
|
|
4634
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
5322
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4635
5323
|
}
|
|
4636
5324
|
}
|
|
4637
5325
|
declare class Observations {
|
|
@@ -4674,6 +5362,120 @@ declare class Observations {
|
|
|
4674
5362
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
4675
5363
|
}
|
|
4676
5364
|
|
|
5365
|
+
/**
|
|
5366
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
5367
|
+
*/
|
|
5368
|
+
|
|
5369
|
+
declare namespace Opentelemetry {
|
|
5370
|
+
interface Options {
|
|
5371
|
+
environment: Supplier<string>;
|
|
5372
|
+
/** Specify a custom URL to connect the client to. */
|
|
5373
|
+
baseUrl?: Supplier<string>;
|
|
5374
|
+
username?: Supplier<string | undefined>;
|
|
5375
|
+
password?: Supplier<string | undefined>;
|
|
5376
|
+
/** Override the X-Langfuse-Sdk-Name header */
|
|
5377
|
+
xLangfuseSdkName?: Supplier<string | undefined>;
|
|
5378
|
+
/** Override the X-Langfuse-Sdk-Version header */
|
|
5379
|
+
xLangfuseSdkVersion?: Supplier<string | undefined>;
|
|
5380
|
+
/** Override the X-Langfuse-Public-Key header */
|
|
5381
|
+
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
5382
|
+
/** Additional headers to include in requests. */
|
|
5383
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5384
|
+
}
|
|
5385
|
+
interface RequestOptions {
|
|
5386
|
+
/** The maximum time to wait for a response in seconds. */
|
|
5387
|
+
timeoutInSeconds?: number;
|
|
5388
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
5389
|
+
maxRetries?: number;
|
|
5390
|
+
/** A hook to abort the request. */
|
|
5391
|
+
abortSignal?: AbortSignal;
|
|
5392
|
+
/** Override the X-Langfuse-Sdk-Name header */
|
|
5393
|
+
xLangfuseSdkName?: string | undefined;
|
|
5394
|
+
/** Override the X-Langfuse-Sdk-Version header */
|
|
5395
|
+
xLangfuseSdkVersion?: string | undefined;
|
|
5396
|
+
/** Override the X-Langfuse-Public-Key header */
|
|
5397
|
+
xLangfusePublicKey?: string | undefined;
|
|
5398
|
+
/** Additional query string parameters to include in the request. */
|
|
5399
|
+
queryParams?: Record<string, unknown>;
|
|
5400
|
+
/** Additional headers to include in the request. */
|
|
5401
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5402
|
+
}
|
|
5403
|
+
}
|
|
5404
|
+
declare class Opentelemetry {
|
|
5405
|
+
protected readonly _options: Opentelemetry.Options;
|
|
5406
|
+
constructor(_options: Opentelemetry.Options);
|
|
5407
|
+
/**
|
|
5408
|
+
* **OpenTelemetry Traces Ingestion Endpoint**
|
|
5409
|
+
*
|
|
5410
|
+
* This endpoint implements the OTLP/HTTP specification for trace ingestion, providing native OpenTelemetry integration for Langfuse Observability.
|
|
5411
|
+
*
|
|
5412
|
+
* **Supported Formats:**
|
|
5413
|
+
* - Binary Protobuf: `Content-Type: application/x-protobuf`
|
|
5414
|
+
* - JSON Protobuf: `Content-Type: application/json`
|
|
5415
|
+
* - Supports gzip compression via `Content-Encoding: gzip` header
|
|
5416
|
+
*
|
|
5417
|
+
* **Specification Compliance:**
|
|
5418
|
+
* - Conforms to [OTLP/HTTP Trace Export](https://opentelemetry.io/docs/specs/otlp/#otlphttp)
|
|
5419
|
+
* - Implements `ExportTraceServiceRequest` message format
|
|
5420
|
+
*
|
|
5421
|
+
* **Documentation:**
|
|
5422
|
+
* - Integration guide: https://langfuse.com/integrations/native/opentelemetry
|
|
5423
|
+
* - Data model: https://langfuse.com/docs/observability/data-model
|
|
5424
|
+
*
|
|
5425
|
+
* @param {LangfuseAPI.OtelTraceRequest} request
|
|
5426
|
+
* @param {Opentelemetry.RequestOptions} requestOptions - Request-specific configuration.
|
|
5427
|
+
*
|
|
5428
|
+
* @throws {@link LangfuseAPI.Error}
|
|
5429
|
+
* @throws {@link LangfuseAPI.UnauthorizedError}
|
|
5430
|
+
* @throws {@link LangfuseAPI.AccessDeniedError}
|
|
5431
|
+
* @throws {@link LangfuseAPI.MethodNotAllowedError}
|
|
5432
|
+
* @throws {@link LangfuseAPI.NotFoundError}
|
|
5433
|
+
*
|
|
5434
|
+
* @example
|
|
5435
|
+
* await client.opentelemetry.exportTraces({
|
|
5436
|
+
* resourceSpans: [{
|
|
5437
|
+
* resource: {
|
|
5438
|
+
* attributes: [{
|
|
5439
|
+
* key: "service.name",
|
|
5440
|
+
* value: {
|
|
5441
|
+
* stringValue: "my-service"
|
|
5442
|
+
* }
|
|
5443
|
+
* }, {
|
|
5444
|
+
* key: "service.version",
|
|
5445
|
+
* value: {
|
|
5446
|
+
* stringValue: "1.0.0"
|
|
5447
|
+
* }
|
|
5448
|
+
* }]
|
|
5449
|
+
* },
|
|
5450
|
+
* scopeSpans: [{
|
|
5451
|
+
* scope: {
|
|
5452
|
+
* name: "langfuse-sdk",
|
|
5453
|
+
* version: "2.60.3"
|
|
5454
|
+
* },
|
|
5455
|
+
* spans: [{
|
|
5456
|
+
* traceId: "0123456789abcdef0123456789abcdef",
|
|
5457
|
+
* spanId: "0123456789abcdef",
|
|
5458
|
+
* name: "my-operation",
|
|
5459
|
+
* kind: 1,
|
|
5460
|
+
* startTimeUnixNano: "1747872000000000000",
|
|
5461
|
+
* endTimeUnixNano: "1747872001000000000",
|
|
5462
|
+
* attributes: [{
|
|
5463
|
+
* key: "langfuse.observation.type",
|
|
5464
|
+
* value: {
|
|
5465
|
+
* stringValue: "generation"
|
|
5466
|
+
* }
|
|
5467
|
+
* }],
|
|
5468
|
+
* status: {}
|
|
5469
|
+
* }]
|
|
5470
|
+
* }]
|
|
5471
|
+
* }]
|
|
5472
|
+
* })
|
|
5473
|
+
*/
|
|
5474
|
+
exportTraces(request: OtelTraceRequest, requestOptions?: Opentelemetry.RequestOptions): HttpResponsePromise<OtelTraceResponse>;
|
|
5475
|
+
private __exportTraces;
|
|
5476
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
5477
|
+
}
|
|
5478
|
+
|
|
4677
5479
|
/**
|
|
4678
5480
|
* This file was auto-generated by Fern from our API Definition.
|
|
4679
5481
|
*/
|
|
@@ -4692,7 +5494,7 @@ declare namespace Organizations {
|
|
|
4692
5494
|
/** Override the X-Langfuse-Public-Key header */
|
|
4693
5495
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
4694
5496
|
/** Additional headers to include in requests. */
|
|
4695
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
5497
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4696
5498
|
}
|
|
4697
5499
|
interface RequestOptions {
|
|
4698
5500
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -4710,7 +5512,7 @@ declare namespace Organizations {
|
|
|
4710
5512
|
/** Additional query string parameters to include in the request. */
|
|
4711
5513
|
queryParams?: Record<string, unknown>;
|
|
4712
5514
|
/** Additional headers to include in the request. */
|
|
4713
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
5515
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4714
5516
|
}
|
|
4715
5517
|
}
|
|
4716
5518
|
declare class Organizations {
|
|
@@ -4752,6 +5554,25 @@ declare class Organizations {
|
|
|
4752
5554
|
*/
|
|
4753
5555
|
updateOrganizationMembership(request: MembershipRequest, requestOptions?: Organizations.RequestOptions): HttpResponsePromise<MembershipResponse>;
|
|
4754
5556
|
private __updateOrganizationMembership;
|
|
5557
|
+
/**
|
|
5558
|
+
* Delete a membership from the organization associated with the API key (requires organization-scoped API key)
|
|
5559
|
+
*
|
|
5560
|
+
* @param {LangfuseAPI.DeleteMembershipRequest} request
|
|
5561
|
+
* @param {Organizations.RequestOptions} requestOptions - Request-specific configuration.
|
|
5562
|
+
*
|
|
5563
|
+
* @throws {@link LangfuseAPI.Error}
|
|
5564
|
+
* @throws {@link LangfuseAPI.UnauthorizedError}
|
|
5565
|
+
* @throws {@link LangfuseAPI.AccessDeniedError}
|
|
5566
|
+
* @throws {@link LangfuseAPI.MethodNotAllowedError}
|
|
5567
|
+
* @throws {@link LangfuseAPI.NotFoundError}
|
|
5568
|
+
*
|
|
5569
|
+
* @example
|
|
5570
|
+
* await client.organizations.deleteOrganizationMembership({
|
|
5571
|
+
* userId: "userId"
|
|
5572
|
+
* })
|
|
5573
|
+
*/
|
|
5574
|
+
deleteOrganizationMembership(request: DeleteMembershipRequest, requestOptions?: Organizations.RequestOptions): HttpResponsePromise<MembershipDeletionResponse>;
|
|
5575
|
+
private __deleteOrganizationMembership;
|
|
4755
5576
|
/**
|
|
4756
5577
|
* Get all memberships for a specific project (requires organization-scoped API key)
|
|
4757
5578
|
*
|
|
@@ -4790,6 +5611,26 @@ declare class Organizations {
|
|
|
4790
5611
|
*/
|
|
4791
5612
|
updateProjectMembership(projectId: string, request: MembershipRequest, requestOptions?: Organizations.RequestOptions): HttpResponsePromise<MembershipResponse>;
|
|
4792
5613
|
private __updateProjectMembership;
|
|
5614
|
+
/**
|
|
5615
|
+
* Delete a membership from a specific project (requires organization-scoped API key). The user must be a member of the organization.
|
|
5616
|
+
*
|
|
5617
|
+
* @param {string} projectId
|
|
5618
|
+
* @param {LangfuseAPI.DeleteMembershipRequest} request
|
|
5619
|
+
* @param {Organizations.RequestOptions} requestOptions - Request-specific configuration.
|
|
5620
|
+
*
|
|
5621
|
+
* @throws {@link LangfuseAPI.Error}
|
|
5622
|
+
* @throws {@link LangfuseAPI.UnauthorizedError}
|
|
5623
|
+
* @throws {@link LangfuseAPI.AccessDeniedError}
|
|
5624
|
+
* @throws {@link LangfuseAPI.MethodNotAllowedError}
|
|
5625
|
+
* @throws {@link LangfuseAPI.NotFoundError}
|
|
5626
|
+
*
|
|
5627
|
+
* @example
|
|
5628
|
+
* await client.organizations.deleteProjectMembership("projectId", {
|
|
5629
|
+
* userId: "userId"
|
|
5630
|
+
* })
|
|
5631
|
+
*/
|
|
5632
|
+
deleteProjectMembership(projectId: string, request: DeleteMembershipRequest, requestOptions?: Organizations.RequestOptions): HttpResponsePromise<MembershipDeletionResponse>;
|
|
5633
|
+
private __deleteProjectMembership;
|
|
4793
5634
|
/**
|
|
4794
5635
|
* Get all projects for the organization associated with the API key (requires organization-scoped API key)
|
|
4795
5636
|
*
|
|
@@ -4827,7 +5668,7 @@ declare namespace Projects {
|
|
|
4827
5668
|
/** Override the X-Langfuse-Public-Key header */
|
|
4828
5669
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
4829
5670
|
/** Additional headers to include in requests. */
|
|
4830
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
5671
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4831
5672
|
}
|
|
4832
5673
|
interface RequestOptions {
|
|
4833
5674
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -4845,7 +5686,7 @@ declare namespace Projects {
|
|
|
4845
5686
|
/** Additional query string parameters to include in the request. */
|
|
4846
5687
|
queryParams?: Record<string, unknown>;
|
|
4847
5688
|
/** Additional headers to include in the request. */
|
|
4848
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
5689
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4849
5690
|
}
|
|
4850
5691
|
}
|
|
4851
5692
|
declare class Projects {
|
|
@@ -4959,7 +5800,9 @@ declare class Projects {
|
|
|
4959
5800
|
*
|
|
4960
5801
|
* @example
|
|
4961
5802
|
* await client.projects.createApiKey("projectId", {
|
|
4962
|
-
* note: undefined
|
|
5803
|
+
* note: undefined,
|
|
5804
|
+
* publicKey: undefined,
|
|
5805
|
+
* secretKey: undefined
|
|
4963
5806
|
* })
|
|
4964
5807
|
*/
|
|
4965
5808
|
createApiKey(projectId: string, request?: CreateApiKeyRequest, requestOptions?: Projects.RequestOptions): HttpResponsePromise<ApiKeyResponse>;
|
|
@@ -5003,7 +5846,7 @@ declare namespace PromptVersion {
|
|
|
5003
5846
|
/** Override the X-Langfuse-Public-Key header */
|
|
5004
5847
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
5005
5848
|
/** Additional headers to include in requests. */
|
|
5006
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
5849
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5007
5850
|
}
|
|
5008
5851
|
interface RequestOptions {
|
|
5009
5852
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -5021,7 +5864,7 @@ declare namespace PromptVersion {
|
|
|
5021
5864
|
/** Additional query string parameters to include in the request. */
|
|
5022
5865
|
queryParams?: Record<string, unknown>;
|
|
5023
5866
|
/** Additional headers to include in the request. */
|
|
5024
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
5867
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5025
5868
|
}
|
|
5026
5869
|
}
|
|
5027
5870
|
declare class PromptVersion {
|
|
@@ -5069,7 +5912,7 @@ declare namespace Prompts {
|
|
|
5069
5912
|
/** Override the X-Langfuse-Public-Key header */
|
|
5070
5913
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
5071
5914
|
/** Additional headers to include in requests. */
|
|
5072
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
5915
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5073
5916
|
}
|
|
5074
5917
|
interface RequestOptions {
|
|
5075
5918
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -5087,7 +5930,7 @@ declare namespace Prompts {
|
|
|
5087
5930
|
/** Additional query string parameters to include in the request. */
|
|
5088
5931
|
queryParams?: Record<string, unknown>;
|
|
5089
5932
|
/** Additional headers to include in the request. */
|
|
5090
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
5933
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5091
5934
|
}
|
|
5092
5935
|
}
|
|
5093
5936
|
declare class Prompts {
|
|
@@ -5182,7 +6025,7 @@ declare namespace Scim {
|
|
|
5182
6025
|
/** Override the X-Langfuse-Public-Key header */
|
|
5183
6026
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
5184
6027
|
/** Additional headers to include in requests. */
|
|
5185
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
6028
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5186
6029
|
}
|
|
5187
6030
|
interface RequestOptions {
|
|
5188
6031
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -5200,7 +6043,7 @@ declare namespace Scim {
|
|
|
5200
6043
|
/** Additional query string parameters to include in the request. */
|
|
5201
6044
|
queryParams?: Record<string, unknown>;
|
|
5202
6045
|
/** Additional headers to include in the request. */
|
|
5203
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
6046
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5204
6047
|
}
|
|
5205
6048
|
}
|
|
5206
6049
|
declare class Scim {
|
|
@@ -5351,7 +6194,7 @@ declare namespace ScoreConfigs {
|
|
|
5351
6194
|
/** Override the X-Langfuse-Public-Key header */
|
|
5352
6195
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
5353
6196
|
/** Additional headers to include in requests. */
|
|
5354
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
6197
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5355
6198
|
}
|
|
5356
6199
|
interface RequestOptions {
|
|
5357
6200
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -5369,7 +6212,7 @@ declare namespace ScoreConfigs {
|
|
|
5369
6212
|
/** Additional query string parameters to include in the request. */
|
|
5370
6213
|
queryParams?: Record<string, unknown>;
|
|
5371
6214
|
/** Additional headers to include in the request. */
|
|
5372
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
6215
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5373
6216
|
}
|
|
5374
6217
|
}
|
|
5375
6218
|
declare class ScoreConfigs {
|
|
@@ -5433,6 +6276,31 @@ declare class ScoreConfigs {
|
|
|
5433
6276
|
*/
|
|
5434
6277
|
getById(configId: string, requestOptions?: ScoreConfigs.RequestOptions): HttpResponsePromise<ScoreConfig>;
|
|
5435
6278
|
private __getById;
|
|
6279
|
+
/**
|
|
6280
|
+
* Update a score config
|
|
6281
|
+
*
|
|
6282
|
+
* @param {string} configId - The unique langfuse identifier of a score config
|
|
6283
|
+
* @param {LangfuseAPI.UpdateScoreConfigRequest} request
|
|
6284
|
+
* @param {ScoreConfigs.RequestOptions} requestOptions - Request-specific configuration.
|
|
6285
|
+
*
|
|
6286
|
+
* @throws {@link LangfuseAPI.Error}
|
|
6287
|
+
* @throws {@link LangfuseAPI.UnauthorizedError}
|
|
6288
|
+
* @throws {@link LangfuseAPI.AccessDeniedError}
|
|
6289
|
+
* @throws {@link LangfuseAPI.MethodNotAllowedError}
|
|
6290
|
+
* @throws {@link LangfuseAPI.NotFoundError}
|
|
6291
|
+
*
|
|
6292
|
+
* @example
|
|
6293
|
+
* await client.scoreConfigs.update("configId", {
|
|
6294
|
+
* isArchived: undefined,
|
|
6295
|
+
* name: undefined,
|
|
6296
|
+
* categories: undefined,
|
|
6297
|
+
* minValue: undefined,
|
|
6298
|
+
* maxValue: undefined,
|
|
6299
|
+
* description: undefined
|
|
6300
|
+
* })
|
|
6301
|
+
*/
|
|
6302
|
+
update(configId: string, request: UpdateScoreConfigRequest, requestOptions?: ScoreConfigs.RequestOptions): HttpResponsePromise<ScoreConfig>;
|
|
6303
|
+
private __update;
|
|
5436
6304
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
5437
6305
|
}
|
|
5438
6306
|
|
|
@@ -5454,7 +6322,7 @@ declare namespace ScoreV2 {
|
|
|
5454
6322
|
/** Override the X-Langfuse-Public-Key header */
|
|
5455
6323
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
5456
6324
|
/** Additional headers to include in requests. */
|
|
5457
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
6325
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5458
6326
|
}
|
|
5459
6327
|
interface RequestOptions {
|
|
5460
6328
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -5472,7 +6340,7 @@ declare namespace ScoreV2 {
|
|
|
5472
6340
|
/** Additional query string parameters to include in the request. */
|
|
5473
6341
|
queryParams?: Record<string, unknown>;
|
|
5474
6342
|
/** Additional headers to include in the request. */
|
|
5475
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
6343
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5476
6344
|
}
|
|
5477
6345
|
}
|
|
5478
6346
|
declare class ScoreV2 {
|
|
@@ -5533,7 +6401,7 @@ declare namespace Score {
|
|
|
5533
6401
|
/** Override the X-Langfuse-Public-Key header */
|
|
5534
6402
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
5535
6403
|
/** Additional headers to include in requests. */
|
|
5536
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
6404
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5537
6405
|
}
|
|
5538
6406
|
interface RequestOptions {
|
|
5539
6407
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -5551,7 +6419,7 @@ declare namespace Score {
|
|
|
5551
6419
|
/** Additional query string parameters to include in the request. */
|
|
5552
6420
|
queryParams?: Record<string, unknown>;
|
|
5553
6421
|
/** Additional headers to include in the request. */
|
|
5554
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
6422
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5555
6423
|
}
|
|
5556
6424
|
}
|
|
5557
6425
|
declare class Score {
|
|
@@ -5581,6 +6449,7 @@ declare class Score {
|
|
|
5581
6449
|
* comment: undefined,
|
|
5582
6450
|
* metadata: undefined,
|
|
5583
6451
|
* environment: undefined,
|
|
6452
|
+
* queueId: undefined,
|
|
5584
6453
|
* dataType: undefined,
|
|
5585
6454
|
* configId: undefined
|
|
5586
6455
|
* })
|
|
@@ -5625,7 +6494,7 @@ declare namespace Sessions {
|
|
|
5625
6494
|
/** Override the X-Langfuse-Public-Key header */
|
|
5626
6495
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
5627
6496
|
/** Additional headers to include in requests. */
|
|
5628
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
6497
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5629
6498
|
}
|
|
5630
6499
|
interface RequestOptions {
|
|
5631
6500
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -5643,7 +6512,7 @@ declare namespace Sessions {
|
|
|
5643
6512
|
/** Additional query string parameters to include in the request. */
|
|
5644
6513
|
queryParams?: Record<string, unknown>;
|
|
5645
6514
|
/** Additional headers to include in the request. */
|
|
5646
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
6515
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5647
6516
|
}
|
|
5648
6517
|
}
|
|
5649
6518
|
declare class Sessions {
|
|
@@ -5704,7 +6573,7 @@ declare namespace Trace {
|
|
|
5704
6573
|
/** Override the X-Langfuse-Public-Key header */
|
|
5705
6574
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
5706
6575
|
/** Additional headers to include in requests. */
|
|
5707
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
6576
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5708
6577
|
}
|
|
5709
6578
|
interface RequestOptions {
|
|
5710
6579
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -5722,7 +6591,7 @@ declare namespace Trace {
|
|
|
5722
6591
|
/** Additional query string parameters to include in the request. */
|
|
5723
6592
|
queryParams?: Record<string, unknown>;
|
|
5724
6593
|
/** Additional headers to include in the request. */
|
|
5725
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
6594
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5726
6595
|
}
|
|
5727
6596
|
}
|
|
5728
6597
|
declare class Trace {
|
|
@@ -5819,7 +6688,7 @@ declare namespace LangfuseAPIClient {
|
|
|
5819
6688
|
/** Override the X-Langfuse-Public-Key header */
|
|
5820
6689
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
5821
6690
|
/** Additional headers to include in requests. */
|
|
5822
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
6691
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5823
6692
|
}
|
|
5824
6693
|
interface RequestOptions {
|
|
5825
6694
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -5837,22 +6706,25 @@ declare namespace LangfuseAPIClient {
|
|
|
5837
6706
|
/** Additional query string parameters to include in the request. */
|
|
5838
6707
|
queryParams?: Record<string, unknown>;
|
|
5839
6708
|
/** Additional headers to include in the request. */
|
|
5840
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
6709
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5841
6710
|
}
|
|
5842
6711
|
}
|
|
5843
6712
|
declare class LangfuseAPIClient {
|
|
5844
6713
|
protected readonly _options: LangfuseAPIClient.Options;
|
|
5845
6714
|
protected _annotationQueues: AnnotationQueues | undefined;
|
|
6715
|
+
protected _blobStorageIntegrations: BlobStorageIntegrations | undefined;
|
|
5846
6716
|
protected _comments: Comments | undefined;
|
|
5847
6717
|
protected _datasetItems: DatasetItems | undefined;
|
|
5848
6718
|
protected _datasetRunItems: DatasetRunItems | undefined;
|
|
5849
6719
|
protected _datasets: Datasets | undefined;
|
|
5850
6720
|
protected _health: Health | undefined;
|
|
5851
6721
|
protected _ingestion: Ingestion | undefined;
|
|
6722
|
+
protected _llmConnections: LlmConnections | undefined;
|
|
5852
6723
|
protected _media: Media | undefined;
|
|
5853
6724
|
protected _metrics: Metrics | undefined;
|
|
5854
6725
|
protected _models: Models | undefined;
|
|
5855
6726
|
protected _observations: Observations | undefined;
|
|
6727
|
+
protected _opentelemetry: Opentelemetry | undefined;
|
|
5856
6728
|
protected _organizations: Organizations | undefined;
|
|
5857
6729
|
protected _projects: Projects | undefined;
|
|
5858
6730
|
protected _promptVersion: PromptVersion | undefined;
|
|
@@ -5865,16 +6737,19 @@ declare class LangfuseAPIClient {
|
|
|
5865
6737
|
protected _trace: Trace | undefined;
|
|
5866
6738
|
constructor(_options: LangfuseAPIClient.Options);
|
|
5867
6739
|
get annotationQueues(): AnnotationQueues;
|
|
6740
|
+
get blobStorageIntegrations(): BlobStorageIntegrations;
|
|
5868
6741
|
get comments(): Comments;
|
|
5869
6742
|
get datasetItems(): DatasetItems;
|
|
5870
6743
|
get datasetRunItems(): DatasetRunItems;
|
|
5871
6744
|
get datasets(): Datasets;
|
|
5872
6745
|
get health(): Health;
|
|
5873
6746
|
get ingestion(): Ingestion;
|
|
6747
|
+
get llmConnections(): LlmConnections;
|
|
5874
6748
|
get media(): Media;
|
|
5875
6749
|
get metrics(): Metrics;
|
|
5876
6750
|
get models(): Models;
|
|
5877
6751
|
get observations(): Observations;
|
|
6752
|
+
get opentelemetry(): Opentelemetry;
|
|
5878
6753
|
get organizations(): Organizations;
|
|
5879
6754
|
get projects(): Projects;
|
|
5880
6755
|
get promptVersion(): PromptVersion;
|
|
@@ -6050,4 +6925,4 @@ declare class LangfuseMedia {
|
|
|
6050
6925
|
toJSON(): string | null;
|
|
6051
6926
|
}
|
|
6052
6927
|
|
|
6053
|
-
export { AccessDeniedError, type AnnotationQueue, type AnnotationQueueItem, AnnotationQueueObjectType, AnnotationQueueStatus, type ApiKeyDeletionResponse, type ApiKeyList, type ApiKeyResponse, type ApiKeySummary, type AuthenticationScheme, type BaseEvent, type BasePrompt, type BaseScore, type BaseScoreV1, type BooleanScore, type BooleanScoreV1, type BulkConfig, type CategoricalScore, type CategoricalScoreV1, type ChatMessage, ChatMessageWithPlaceholders, type ChatPrompt, type Comment, CommentObjectType, type ConfigCategory, type CreateAnnotationQueueItemRequest, type CreateApiKeyRequest, type CreateChatPromptRequest, type CreateCommentRequest, type CreateCommentResponse, type CreateDatasetItemRequest, type CreateDatasetRequest, type CreateDatasetRunItemRequest, type CreateEventBody, type CreateEventEvent, type CreateGenerationBody, type CreateGenerationEvent, type CreateModelRequest, type CreateObservationEvent, type CreateProjectRequest, CreatePromptRequest, type CreateScoreConfigRequest, type CreateScoreRequest, type CreateScoreResponse, type CreateScoreValue, type CreateSpanBody, type CreateSpanEvent, type CreateTextPromptRequest, type CreateUserRequest, type Dataset, type DatasetItem, type DatasetRun, type DatasetRunItem, type DatasetRunWithItems, DatasetStatus, type DeleteAnnotationQueueItemResponse, type DeleteDatasetItemResponse, type DeleteDatasetRunResponse, type DeleteTraceResponse, type DeleteTracesRequest, type EmptyResponse, Error$1 as Error, type FilterConfig, type GetAnnotationQueueItemsRequest, type GetAnnotationQueuesRequest, type GetCommentsRequest, type GetCommentsResponse, type GetDatasetItemsRequest, type GetDatasetRunsRequest, type GetDatasetsRequest, type GetMediaResponse, type GetMediaUploadUrlRequest, type GetMediaUploadUrlResponse, type GetMetricsRequest, type GetModelsRequest, type GetObservationsRequest, type GetPromptRequest, type GetScoreConfigsRequest, type GetScoresRequest, type GetScoresResponse, GetScoresResponseData, type GetScoresResponseDataBoolean, type GetScoresResponseDataCategorical, type GetScoresResponseDataNumeric, type GetScoresResponseTraceData, type GetSessionsRequest, type GetTracesRequest, type HealthResponse, type IngestionError, IngestionEvent, type IngestionRequest, type IngestionResponse, type IngestionSuccess, type IngestionUsage, LANGFUSE_SDK_NAME, LANGFUSE_SDK_VERSION, LANGFUSE_TRACER_NAME, LangfuseAPIClient, LangfuseAPIError, LangfuseAPITimeoutError, LangfuseMedia, type LangfuseMediaParams, LangfuseOtelSpanAttributes, type ListDatasetRunItemsRequest, type ListPromptsMetaRequest, type ListUsersRequest, LogLevel, Logger, type LoggerConfig, type MapValue, MediaContentType, type MembershipRequest, type MembershipResponse, MembershipRole, type MembershipsResponse, MethodNotAllowedError, type MetricsResponse, type Model, type ModelPrice, ModelUsageUnit, NotFoundError, type NumericScore, type NumericScoreV1, type Observation, type ObservationBody, ObservationLevel, ObservationType, type Observations$1 as Observations, type ObservationsView, type ObservationsViews, type OpenAiCompletionUsageSchema, type OpenAiResponseUsageSchema, type OpenAiUsage, type OptionalObservationBody, type OrganizationProject, type OrganizationProjectsResponse, type PaginatedAnnotationQueueItems, type PaginatedAnnotationQueues, type PaginatedDatasetItems, type PaginatedDatasetRunItems, type PaginatedDatasetRuns, type PaginatedDatasets, type PaginatedModels, type PaginatedSessions, type ParsedMediaReference, type PatchMediaBody, type PlaceholderMessage, type Project, type ProjectDeletionResponse, type Projects$1 as Projects, Prompt, type PromptMeta, type PromptMetaListResponse, type ResourceMeta, type ResourceType, type ResourceTypesResponse, type SchemaExtension, type SchemaResource, type SchemasResponse, type ScimEmail, type ScimFeatureSupport, type ScimName, type ScimUser, type ScimUsersListResponse, Score$1 as Score, type ScoreBody, type ScoreConfig, type ScoreConfigs$1 as ScoreConfigs, ScoreDataType, type ScoreEvent, ScoreSource, ScoreV1, type SdkLogBody, type SdkLogEvent, type ServiceProviderConfig, ServiceUnavailableError, type Session, type SessionWithTraces, type Sort, type TextPrompt, type Trace$1 as Trace, type TraceBody, type TraceEvent, type TraceWithDetails, type TraceWithFullDetails, type Traces, UnauthorizedError, type UpdateAnnotationQueueItemRequest, type UpdateEventBody, type UpdateGenerationBody, type UpdateGenerationEvent, type UpdateObservationEvent, type UpdateProjectRequest, type UpdatePromptRequest, type UpdateSpanBody, type UpdateSpanEvent, type Usage, type UsageDetails, type UserMeta, index$
|
|
6928
|
+
export { AccessDeniedError, type AnnotationQueue, type AnnotationQueueAssignmentRequest, type AnnotationQueueItem, AnnotationQueueObjectType, AnnotationQueueStatus, type ApiKeyDeletionResponse, type ApiKeyList, type ApiKeyResponse, type ApiKeySummary, type AuthenticationScheme, type BaseEvent, type BasePrompt, type BaseScore, type BaseScoreV1, BlobStorageExportFrequency, BlobStorageExportMode, type BlobStorageIntegrationDeletionResponse, BlobStorageIntegrationFileType, type BlobStorageIntegrationResponse, BlobStorageIntegrationType, type BlobStorageIntegrationsResponse, type BooleanScore, type BooleanScoreV1, type BulkConfig, type CategoricalScore, type CategoricalScoreV1, type ChatMessage, ChatMessageWithPlaceholders, type ChatPrompt, type Comment, CommentObjectType, type ConfigCategory, type CreateAnnotationQueueAssignmentResponse, type CreateAnnotationQueueItemRequest, type CreateAnnotationQueueRequest, type CreateApiKeyRequest, type CreateBlobStorageIntegrationRequest, type CreateChatPromptRequest, type CreateCommentRequest, type CreateCommentResponse, type CreateDatasetItemRequest, type CreateDatasetRequest, type CreateDatasetRunItemRequest, type CreateEventBody, type CreateEventEvent, type CreateGenerationBody, type CreateGenerationEvent, type CreateModelRequest, type CreateObservationEvent, type CreateProjectRequest, CreatePromptRequest, type CreateScoreConfigRequest, type CreateScoreRequest, type CreateScoreResponse, type CreateScoreValue, type CreateSpanBody, type CreateSpanEvent, type CreateTextPromptRequest, type CreateUserRequest, type Dataset, type DatasetItem, type DatasetRun, type DatasetRunItem, type DatasetRunWithItems, DatasetStatus, type DeleteAnnotationQueueAssignmentResponse, type DeleteAnnotationQueueItemResponse, type DeleteDatasetItemResponse, type DeleteDatasetRunResponse, type DeleteMembershipRequest, type DeleteTraceResponse, type DeleteTracesRequest, type EmptyResponse, Error$1 as Error, type FilterConfig, type GetAnnotationQueueItemsRequest, type GetAnnotationQueuesRequest, type GetCommentsRequest, type GetCommentsResponse, type GetDatasetItemsRequest, type GetDatasetRunsRequest, type GetDatasetsRequest, type GetLlmConnectionsRequest, type GetMediaResponse, type GetMediaUploadUrlRequest, type GetMediaUploadUrlResponse, type GetMetricsRequest, type GetModelsRequest, type GetObservationsRequest, type GetPromptRequest, type GetScoreConfigsRequest, type GetScoresRequest, type GetScoresResponse, GetScoresResponseData, type GetScoresResponseDataBoolean, type GetScoresResponseDataCategorical, type GetScoresResponseDataNumeric, type GetScoresResponseTraceData, type GetSessionsRequest, type GetTracesRequest, type HealthResponse, type IngestionError, IngestionEvent, type IngestionRequest, type IngestionResponse, type IngestionSuccess, type IngestionUsage, LANGFUSE_SDK_NAME, LANGFUSE_SDK_VERSION, LANGFUSE_TRACER_NAME, LangfuseAPIClient, LangfuseAPIError, LangfuseAPITimeoutError, LangfuseMedia, type LangfuseMediaParams, LangfuseOtelSpanAttributes, type ListDatasetRunItemsRequest, type ListPromptsMetaRequest, type ListUsersRequest, LlmAdapter, type LlmConnection, LogLevel, Logger, type LoggerConfig, type MapValue, MediaContentType, type MembershipDeletionResponse, type MembershipRequest, type MembershipResponse, MembershipRole, type MembershipsResponse, MethodNotAllowedError, type MetricsResponse, type Model, type ModelPrice, ModelUsageUnit, NotFoundError, type NumericScore, type NumericScoreV1, type Observation, type ObservationBody, ObservationLevel, ObservationType, type Observations$1 as Observations, type ObservationsView, type ObservationsViews, type OpenAiCompletionUsageSchema, type OpenAiResponseUsageSchema, type OpenAiUsage, type OptionalObservationBody, type OrganizationProject, type OrganizationProjectsResponse, type OtelAttribute, type OtelAttributeValue, type OtelResource, type OtelResourceSpan, type OtelScope, type OtelScopeSpan, type OtelSpan, type OtelTraceRequest, type OtelTraceResponse, type PaginatedAnnotationQueueItems, type PaginatedAnnotationQueues, type PaginatedDatasetItems, type PaginatedDatasetRunItems, type PaginatedDatasetRuns, type PaginatedDatasets, type PaginatedLlmConnections, type PaginatedModels, type PaginatedSessions, type ParsedMediaReference, type PatchMediaBody, type PlaceholderMessage, type Project, type ProjectDeletionResponse, type Projects$1 as Projects, Prompt, type PromptMeta, type PromptMetaListResponse, PromptType, type ResourceMeta, type ResourceType, type ResourceTypesResponse, type SchemaExtension, type SchemaResource, type SchemasResponse, type ScimEmail, type ScimFeatureSupport, type ScimName, type ScimUser, type ScimUsersListResponse, Score$1 as Score, type ScoreBody, type ScoreConfig, type ScoreConfigs$1 as ScoreConfigs, ScoreDataType, type ScoreEvent, ScoreSource, ScoreV1, type SdkLogBody, type SdkLogEvent, type ServiceProviderConfig, ServiceUnavailableError, type Session, type SessionWithTraces, type Sort, type TextPrompt, type Trace$1 as Trace, type TraceBody, type TraceEvent, type TraceWithDetails, type TraceWithFullDetails, type Traces, UnauthorizedError, type UpdateAnnotationQueueItemRequest, type UpdateEventBody, type UpdateGenerationBody, type UpdateGenerationEvent, type UpdateObservationEvent, type UpdateProjectRequest, type UpdatePromptRequest, type UpdateScoreConfigRequest, type UpdateSpanBody, type UpdateSpanEvent, type UpsertLlmConnectionRequest, type Usage, type UsageDetails, type UserMeta, index$q as annotationQueues, base64Decode, base64Encode, base64ToBytes, index$p as blobStorageIntegrations, bytesToBase64, index$o as comments, index$n as commons, configureGlobalLogger, createLogger, index$m as datasetItems, index$l as datasetRunItems, index$k as datasets, generateUUID, getEnv, getGlobalLogger, index$j as health, index$i as ingestion, index$h as llmConnections, LoggerSingleton as logger, index$g as media, index$f as metrics, index$e as models, index$d as observations, index$c as opentelemetry, index$b as organizations, index$a as projects, index as promptVersion, index$9 as prompts, resetGlobalLogger, safeSetTimeout, index$8 as scim, index$5 as score, index$7 as scoreConfigs, index$6 as scoreV2, index$4 as sessions, index$3 as trace, index$1 as utils };
|