@langfuse/core 4.1.0 → 4.2.0
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 +2734 -1414
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +821 -375
- package/dist/index.d.ts +821 -375
- package/dist/index.mjs +2727 -1414
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -272,6 +272,15 @@ interface PaginatedAnnotationQueueItems {
|
|
|
272
272
|
meta: MetaResponse;
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
+
/**
|
|
276
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
277
|
+
*/
|
|
278
|
+
interface CreateAnnotationQueueRequest {
|
|
279
|
+
name: string;
|
|
280
|
+
description?: string;
|
|
281
|
+
scoreConfigIds: string[];
|
|
282
|
+
}
|
|
283
|
+
|
|
275
284
|
/**
|
|
276
285
|
* This file was auto-generated by Fern from our API Definition.
|
|
277
286
|
*/
|
|
@@ -299,6 +308,29 @@ interface DeleteAnnotationQueueItemResponse {
|
|
|
299
308
|
message: string;
|
|
300
309
|
}
|
|
301
310
|
|
|
311
|
+
/**
|
|
312
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
313
|
+
*/
|
|
314
|
+
interface AnnotationQueueAssignmentRequest {
|
|
315
|
+
userId: string;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
320
|
+
*/
|
|
321
|
+
interface DeleteAnnotationQueueAssignmentResponse {
|
|
322
|
+
success: boolean;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
327
|
+
*/
|
|
328
|
+
interface CreateAnnotationQueueAssignmentResponse {
|
|
329
|
+
userId: string;
|
|
330
|
+
queueId: string;
|
|
331
|
+
projectId: string;
|
|
332
|
+
}
|
|
333
|
+
|
|
302
334
|
/**
|
|
303
335
|
* This file was auto-generated by Fern from our API Definition.
|
|
304
336
|
*/
|
|
@@ -307,13 +339,9 @@ interface DeleteAnnotationQueueItemResponse {
|
|
|
307
339
|
* {}
|
|
308
340
|
*/
|
|
309
341
|
interface GetAnnotationQueuesRequest {
|
|
310
|
-
/**
|
|
311
|
-
* page number, starts at 1
|
|
312
|
-
*/
|
|
342
|
+
/** page number, starts at 1 */
|
|
313
343
|
page?: number;
|
|
314
|
-
/**
|
|
315
|
-
* limit of items per page
|
|
316
|
-
*/
|
|
344
|
+
/** limit of items per page */
|
|
317
345
|
limit?: number;
|
|
318
346
|
}
|
|
319
347
|
|
|
@@ -326,33 +354,154 @@ interface GetAnnotationQueuesRequest {
|
|
|
326
354
|
* {}
|
|
327
355
|
*/
|
|
328
356
|
interface GetAnnotationQueueItemsRequest {
|
|
329
|
-
/**
|
|
330
|
-
* Filter by status
|
|
331
|
-
*/
|
|
357
|
+
/** Filter by status */
|
|
332
358
|
status?: AnnotationQueueStatus;
|
|
333
|
-
/**
|
|
334
|
-
* page number, starts at 1
|
|
335
|
-
*/
|
|
359
|
+
/** page number, starts at 1 */
|
|
336
360
|
page?: number;
|
|
337
|
-
/**
|
|
338
|
-
* limit of items per page
|
|
339
|
-
*/
|
|
361
|
+
/** limit of items per page */
|
|
340
362
|
limit?: number;
|
|
341
363
|
}
|
|
342
364
|
|
|
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
|
-
|
|
365
|
+
type index$p_AnnotationQueue = AnnotationQueue;
|
|
366
|
+
type index$p_AnnotationQueueAssignmentRequest = AnnotationQueueAssignmentRequest;
|
|
367
|
+
type index$p_AnnotationQueueItem = AnnotationQueueItem;
|
|
368
|
+
declare const index$p_AnnotationQueueObjectType: typeof AnnotationQueueObjectType;
|
|
369
|
+
declare const index$p_AnnotationQueueStatus: typeof AnnotationQueueStatus;
|
|
370
|
+
type index$p_CreateAnnotationQueueAssignmentResponse = CreateAnnotationQueueAssignmentResponse;
|
|
371
|
+
type index$p_CreateAnnotationQueueItemRequest = CreateAnnotationQueueItemRequest;
|
|
372
|
+
type index$p_CreateAnnotationQueueRequest = CreateAnnotationQueueRequest;
|
|
373
|
+
type index$p_DeleteAnnotationQueueAssignmentResponse = DeleteAnnotationQueueAssignmentResponse;
|
|
374
|
+
type index$p_DeleteAnnotationQueueItemResponse = DeleteAnnotationQueueItemResponse;
|
|
375
|
+
type index$p_GetAnnotationQueueItemsRequest = GetAnnotationQueueItemsRequest;
|
|
376
|
+
type index$p_GetAnnotationQueuesRequest = GetAnnotationQueuesRequest;
|
|
377
|
+
type index$p_PaginatedAnnotationQueueItems = PaginatedAnnotationQueueItems;
|
|
378
|
+
type index$p_PaginatedAnnotationQueues = PaginatedAnnotationQueues;
|
|
379
|
+
type index$p_UpdateAnnotationQueueItemRequest = UpdateAnnotationQueueItemRequest;
|
|
380
|
+
declare namespace index$p {
|
|
381
|
+
export { type index$p_AnnotationQueue as AnnotationQueue, type index$p_AnnotationQueueAssignmentRequest as AnnotationQueueAssignmentRequest, type index$p_AnnotationQueueItem as AnnotationQueueItem, index$p_AnnotationQueueObjectType as AnnotationQueueObjectType, index$p_AnnotationQueueStatus as AnnotationQueueStatus, type index$p_CreateAnnotationQueueAssignmentResponse as CreateAnnotationQueueAssignmentResponse, type index$p_CreateAnnotationQueueItemRequest as CreateAnnotationQueueItemRequest, type index$p_CreateAnnotationQueueRequest as CreateAnnotationQueueRequest, type index$p_DeleteAnnotationQueueAssignmentResponse as DeleteAnnotationQueueAssignmentResponse, type index$p_DeleteAnnotationQueueItemResponse as DeleteAnnotationQueueItemResponse, type index$p_GetAnnotationQueueItemsRequest as GetAnnotationQueueItemsRequest, type index$p_GetAnnotationQueuesRequest as GetAnnotationQueuesRequest, type index$p_PaginatedAnnotationQueueItems as PaginatedAnnotationQueueItems, type index$p_PaginatedAnnotationQueues as PaginatedAnnotationQueues, type index$p_UpdateAnnotationQueueItemRequest as UpdateAnnotationQueueItemRequest };
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
386
|
+
*/
|
|
387
|
+
type BlobStorageIntegrationType = "S3" | "S3_COMPATIBLE" | "AZURE_BLOB_STORAGE";
|
|
388
|
+
declare const BlobStorageIntegrationType: {
|
|
389
|
+
readonly S3: "S3";
|
|
390
|
+
readonly S3Compatible: "S3_COMPATIBLE";
|
|
391
|
+
readonly AzureBlobStorage: "AZURE_BLOB_STORAGE";
|
|
392
|
+
};
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
396
|
+
*/
|
|
397
|
+
type BlobStorageIntegrationFileType = "JSON" | "CSV" | "JSONL";
|
|
398
|
+
declare const BlobStorageIntegrationFileType: {
|
|
399
|
+
readonly Json: "JSON";
|
|
400
|
+
readonly Csv: "CSV";
|
|
401
|
+
readonly Jsonl: "JSONL";
|
|
402
|
+
};
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
406
|
+
*/
|
|
407
|
+
type BlobStorageExportMode = "FULL_HISTORY" | "FROM_TODAY" | "FROM_CUSTOM_DATE";
|
|
408
|
+
declare const BlobStorageExportMode: {
|
|
409
|
+
readonly FullHistory: "FULL_HISTORY";
|
|
410
|
+
readonly FromToday: "FROM_TODAY";
|
|
411
|
+
readonly FromCustomDate: "FROM_CUSTOM_DATE";
|
|
412
|
+
};
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
416
|
+
*/
|
|
417
|
+
type BlobStorageExportFrequency = "hourly" | "daily" | "weekly";
|
|
418
|
+
declare const BlobStorageExportFrequency: {
|
|
419
|
+
readonly Hourly: "hourly";
|
|
420
|
+
readonly Daily: "daily";
|
|
421
|
+
readonly Weekly: "weekly";
|
|
422
|
+
};
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
426
|
+
*/
|
|
427
|
+
|
|
428
|
+
interface CreateBlobStorageIntegrationRequest {
|
|
429
|
+
/** ID of the project in which to configure the blob storage integration */
|
|
430
|
+
projectId: string;
|
|
431
|
+
type: BlobStorageIntegrationType;
|
|
432
|
+
/** Name of the storage bucket */
|
|
433
|
+
bucketName: string;
|
|
434
|
+
/** Custom endpoint URL (required for S3_COMPATIBLE type) */
|
|
435
|
+
endpoint?: string;
|
|
436
|
+
/** Storage region */
|
|
437
|
+
region: string;
|
|
438
|
+
/** Access key ID for authentication */
|
|
439
|
+
accessKeyId?: string;
|
|
440
|
+
/** Secret access key for authentication (will be encrypted when stored) */
|
|
441
|
+
secretAccessKey?: string;
|
|
442
|
+
/** Path prefix for exported files (must end with forward slash if provided) */
|
|
443
|
+
prefix?: string;
|
|
444
|
+
exportFrequency: BlobStorageExportFrequency;
|
|
445
|
+
/** Whether the integration is active */
|
|
446
|
+
enabled: boolean;
|
|
447
|
+
/** Use path-style URLs for S3 requests */
|
|
448
|
+
forcePathStyle: boolean;
|
|
449
|
+
fileType: BlobStorageIntegrationFileType;
|
|
450
|
+
exportMode: BlobStorageExportMode;
|
|
451
|
+
/** Custom start date for exports (required when exportMode is FROM_CUSTOM_DATE) */
|
|
452
|
+
exportStartDate?: string;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
457
|
+
*/
|
|
458
|
+
|
|
459
|
+
interface BlobStorageIntegrationResponse {
|
|
460
|
+
id: string;
|
|
461
|
+
projectId: string;
|
|
462
|
+
type: BlobStorageIntegrationType;
|
|
463
|
+
bucketName: string;
|
|
464
|
+
endpoint?: string;
|
|
465
|
+
region: string;
|
|
466
|
+
accessKeyId?: string;
|
|
467
|
+
prefix: string;
|
|
468
|
+
exportFrequency: BlobStorageExportFrequency;
|
|
469
|
+
enabled: boolean;
|
|
470
|
+
forcePathStyle: boolean;
|
|
471
|
+
fileType: BlobStorageIntegrationFileType;
|
|
472
|
+
exportMode: BlobStorageExportMode;
|
|
473
|
+
exportStartDate?: string;
|
|
474
|
+
nextSyncAt?: string;
|
|
475
|
+
lastSyncAt?: string;
|
|
476
|
+
createdAt: string;
|
|
477
|
+
updatedAt: string;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
482
|
+
*/
|
|
483
|
+
|
|
484
|
+
interface BlobStorageIntegrationsResponse {
|
|
485
|
+
data: BlobStorageIntegrationResponse[];
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
490
|
+
*/
|
|
491
|
+
interface BlobStorageIntegrationDeletionResponse {
|
|
492
|
+
message: string;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
declare const index$o_BlobStorageExportFrequency: typeof BlobStorageExportFrequency;
|
|
496
|
+
declare const index$o_BlobStorageExportMode: typeof BlobStorageExportMode;
|
|
497
|
+
type index$o_BlobStorageIntegrationDeletionResponse = BlobStorageIntegrationDeletionResponse;
|
|
498
|
+
declare const index$o_BlobStorageIntegrationFileType: typeof BlobStorageIntegrationFileType;
|
|
499
|
+
type index$o_BlobStorageIntegrationResponse = BlobStorageIntegrationResponse;
|
|
500
|
+
declare const index$o_BlobStorageIntegrationType: typeof BlobStorageIntegrationType;
|
|
501
|
+
type index$o_BlobStorageIntegrationsResponse = BlobStorageIntegrationsResponse;
|
|
502
|
+
type index$o_CreateBlobStorageIntegrationRequest = CreateBlobStorageIntegrationRequest;
|
|
503
|
+
declare namespace index$o {
|
|
504
|
+
export { index$o_BlobStorageExportFrequency as BlobStorageExportFrequency, index$o_BlobStorageExportMode as BlobStorageExportMode, type index$o_BlobStorageIntegrationDeletionResponse as BlobStorageIntegrationDeletionResponse, index$o_BlobStorageIntegrationFileType as BlobStorageIntegrationFileType, type index$o_BlobStorageIntegrationResponse as BlobStorageIntegrationResponse, index$o_BlobStorageIntegrationType as BlobStorageIntegrationType, type index$o_BlobStorageIntegrationsResponse as BlobStorageIntegrationsResponse, type index$o_CreateBlobStorageIntegrationRequest as CreateBlobStorageIntegrationRequest };
|
|
356
505
|
}
|
|
357
506
|
|
|
358
507
|
/**
|
|
@@ -396,34 +545,24 @@ interface GetCommentsResponse {
|
|
|
396
545
|
* {}
|
|
397
546
|
*/
|
|
398
547
|
interface GetCommentsRequest {
|
|
399
|
-
/**
|
|
400
|
-
* Page number, starts at 1.
|
|
401
|
-
*/
|
|
548
|
+
/** Page number, starts at 1. */
|
|
402
549
|
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
|
-
*/
|
|
550
|
+
/** Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit */
|
|
406
551
|
limit?: number;
|
|
407
|
-
/**
|
|
408
|
-
* Filter comments by object type (trace, observation, session, prompt).
|
|
409
|
-
*/
|
|
552
|
+
/** Filter comments by object type (trace, observation, session, prompt). */
|
|
410
553
|
objectType?: string;
|
|
411
|
-
/**
|
|
412
|
-
* Filter comments by object id. If objectType is not provided, an error will be thrown.
|
|
413
|
-
*/
|
|
554
|
+
/** Filter comments by object id. If objectType is not provided, an error will be thrown. */
|
|
414
555
|
objectId?: string;
|
|
415
|
-
/**
|
|
416
|
-
* Filter comments by author user id.
|
|
417
|
-
*/
|
|
556
|
+
/** Filter comments by author user id. */
|
|
418
557
|
authorUserId?: string;
|
|
419
558
|
}
|
|
420
559
|
|
|
421
|
-
type index$
|
|
422
|
-
type index$
|
|
423
|
-
type index$
|
|
424
|
-
type index$
|
|
425
|
-
declare namespace index$
|
|
426
|
-
export type { index$
|
|
560
|
+
type index$n_CreateCommentRequest = CreateCommentRequest;
|
|
561
|
+
type index$n_CreateCommentResponse = CreateCommentResponse;
|
|
562
|
+
type index$n_GetCommentsRequest = GetCommentsRequest;
|
|
563
|
+
type index$n_GetCommentsResponse = GetCommentsResponse;
|
|
564
|
+
declare namespace index$n {
|
|
565
|
+
export type { index$n_CreateCommentRequest as CreateCommentRequest, index$n_CreateCommentResponse as CreateCommentResponse, index$n_GetCommentsRequest as GetCommentsRequest, index$n_GetCommentsResponse as GetCommentsResponse };
|
|
427
566
|
}
|
|
428
567
|
|
|
429
568
|
/**
|
|
@@ -1158,50 +1297,50 @@ declare class MethodNotAllowedError extends LangfuseAPIError {
|
|
|
1158
1297
|
constructor(body?: unknown, rawResponse?: RawResponse);
|
|
1159
1298
|
}
|
|
1160
1299
|
|
|
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$
|
|
1300
|
+
type index$m_AccessDeniedError = AccessDeniedError;
|
|
1301
|
+
declare const index$m_AccessDeniedError: typeof AccessDeniedError;
|
|
1302
|
+
type index$m_BaseScore = BaseScore;
|
|
1303
|
+
type index$m_BaseScoreV1 = BaseScoreV1;
|
|
1304
|
+
type index$m_BooleanScore = BooleanScore;
|
|
1305
|
+
type index$m_BooleanScoreV1 = BooleanScoreV1;
|
|
1306
|
+
type index$m_CategoricalScore = CategoricalScore;
|
|
1307
|
+
type index$m_CategoricalScoreV1 = CategoricalScoreV1;
|
|
1308
|
+
type index$m_Comment = Comment;
|
|
1309
|
+
declare const index$m_CommentObjectType: typeof CommentObjectType;
|
|
1310
|
+
type index$m_ConfigCategory = ConfigCategory;
|
|
1311
|
+
type index$m_CreateScoreValue = CreateScoreValue;
|
|
1312
|
+
type index$m_Dataset = Dataset;
|
|
1313
|
+
type index$m_DatasetItem = DatasetItem;
|
|
1314
|
+
type index$m_DatasetRun = DatasetRun;
|
|
1315
|
+
type index$m_DatasetRunItem = DatasetRunItem;
|
|
1316
|
+
type index$m_DatasetRunWithItems = DatasetRunWithItems;
|
|
1317
|
+
declare const index$m_DatasetStatus: typeof DatasetStatus;
|
|
1318
|
+
type index$m_MapValue = MapValue;
|
|
1319
|
+
type index$m_MethodNotAllowedError = MethodNotAllowedError;
|
|
1320
|
+
declare const index$m_MethodNotAllowedError: typeof MethodNotAllowedError;
|
|
1321
|
+
type index$m_Model = Model;
|
|
1322
|
+
type index$m_ModelPrice = ModelPrice;
|
|
1323
|
+
declare const index$m_ModelUsageUnit: typeof ModelUsageUnit;
|
|
1324
|
+
type index$m_NotFoundError = NotFoundError;
|
|
1325
|
+
declare const index$m_NotFoundError: typeof NotFoundError;
|
|
1326
|
+
type index$m_NumericScore = NumericScore;
|
|
1327
|
+
type index$m_NumericScoreV1 = NumericScoreV1;
|
|
1328
|
+
type index$m_Observation = Observation;
|
|
1329
|
+
declare const index$m_ObservationLevel: typeof ObservationLevel;
|
|
1330
|
+
type index$m_ObservationsView = ObservationsView;
|
|
1331
|
+
type index$m_ScoreConfig = ScoreConfig;
|
|
1332
|
+
declare const index$m_ScoreDataType: typeof ScoreDataType;
|
|
1333
|
+
declare const index$m_ScoreSource: typeof ScoreSource;
|
|
1334
|
+
declare const index$m_ScoreV1: typeof ScoreV1;
|
|
1335
|
+
type index$m_Session = Session;
|
|
1336
|
+
type index$m_SessionWithTraces = SessionWithTraces;
|
|
1337
|
+
type index$m_TraceWithDetails = TraceWithDetails;
|
|
1338
|
+
type index$m_TraceWithFullDetails = TraceWithFullDetails;
|
|
1339
|
+
type index$m_UnauthorizedError = UnauthorizedError;
|
|
1340
|
+
declare const index$m_UnauthorizedError: typeof UnauthorizedError;
|
|
1341
|
+
type index$m_Usage = Usage;
|
|
1342
|
+
declare namespace index$m {
|
|
1343
|
+
export { index$m_AccessDeniedError as AccessDeniedError, type index$m_BaseScore as BaseScore, type index$m_BaseScoreV1 as BaseScoreV1, type index$m_BooleanScore as BooleanScore, type index$m_BooleanScoreV1 as BooleanScoreV1, type index$m_CategoricalScore as CategoricalScore, type index$m_CategoricalScoreV1 as CategoricalScoreV1, type index$m_Comment as Comment, index$m_CommentObjectType as CommentObjectType, type index$m_ConfigCategory as ConfigCategory, type index$m_CreateScoreValue as CreateScoreValue, type index$m_Dataset as Dataset, type index$m_DatasetItem as DatasetItem, type index$m_DatasetRun as DatasetRun, type index$m_DatasetRunItem as DatasetRunItem, type index$m_DatasetRunWithItems as DatasetRunWithItems, index$m_DatasetStatus as DatasetStatus, Error$1 as Error, type index$m_MapValue as MapValue, index$m_MethodNotAllowedError as MethodNotAllowedError, type index$m_Model as Model, type index$m_ModelPrice as ModelPrice, index$m_ModelUsageUnit as ModelUsageUnit, index$m_NotFoundError as NotFoundError, type index$m_NumericScore as NumericScore, type index$m_NumericScoreV1 as NumericScoreV1, type index$m_Observation as Observation, index$m_ObservationLevel as ObservationLevel, type index$m_ObservationsView as ObservationsView, Score$1 as Score, type index$m_ScoreConfig as ScoreConfig, index$m_ScoreDataType as ScoreDataType, index$m_ScoreSource as ScoreSource, index$m_ScoreV1 as ScoreV1, type index$m_Session as Session, type index$m_SessionWithTraces as SessionWithTraces, type Trace$1 as Trace, type index$m_TraceWithDetails as TraceWithDetails, type index$m_TraceWithFullDetails as TraceWithFullDetails, index$m_UnauthorizedError as UnauthorizedError, type index$m_Usage as Usage };
|
|
1205
1344
|
}
|
|
1206
1345
|
|
|
1207
1346
|
/**
|
|
@@ -1249,22 +1388,18 @@ interface GetDatasetItemsRequest {
|
|
|
1249
1388
|
datasetName?: string;
|
|
1250
1389
|
sourceTraceId?: string;
|
|
1251
1390
|
sourceObservationId?: string;
|
|
1252
|
-
/**
|
|
1253
|
-
* page number, starts at 1
|
|
1254
|
-
*/
|
|
1391
|
+
/** page number, starts at 1 */
|
|
1255
1392
|
page?: number;
|
|
1256
|
-
/**
|
|
1257
|
-
* limit of items per page
|
|
1258
|
-
*/
|
|
1393
|
+
/** limit of items per page */
|
|
1259
1394
|
limit?: number;
|
|
1260
1395
|
}
|
|
1261
1396
|
|
|
1262
|
-
type index$
|
|
1263
|
-
type index$
|
|
1264
|
-
type index$
|
|
1265
|
-
type index$
|
|
1266
|
-
declare namespace index$
|
|
1267
|
-
export type { index$
|
|
1397
|
+
type index$l_CreateDatasetItemRequest = CreateDatasetItemRequest;
|
|
1398
|
+
type index$l_DeleteDatasetItemResponse = DeleteDatasetItemResponse;
|
|
1399
|
+
type index$l_GetDatasetItemsRequest = GetDatasetItemsRequest;
|
|
1400
|
+
type index$l_PaginatedDatasetItems = PaginatedDatasetItems;
|
|
1401
|
+
declare namespace index$l {
|
|
1402
|
+
export type { index$l_CreateDatasetItemRequest as CreateDatasetItemRequest, index$l_DeleteDatasetItemResponse as DeleteDatasetItemResponse, index$l_GetDatasetItemsRequest as GetDatasetItemsRequest, index$l_PaginatedDatasetItems as PaginatedDatasetItems };
|
|
1268
1403
|
}
|
|
1269
1404
|
|
|
1270
1405
|
/**
|
|
@@ -1304,21 +1439,17 @@ interface PaginatedDatasetRunItems {
|
|
|
1304
1439
|
interface ListDatasetRunItemsRequest {
|
|
1305
1440
|
datasetId: string;
|
|
1306
1441
|
runName: string;
|
|
1307
|
-
/**
|
|
1308
|
-
* page number, starts at 1
|
|
1309
|
-
*/
|
|
1442
|
+
/** page number, starts at 1 */
|
|
1310
1443
|
page?: number;
|
|
1311
|
-
/**
|
|
1312
|
-
* limit of items per page
|
|
1313
|
-
*/
|
|
1444
|
+
/** limit of items per page */
|
|
1314
1445
|
limit?: number;
|
|
1315
1446
|
}
|
|
1316
1447
|
|
|
1317
|
-
type index$
|
|
1318
|
-
type index$
|
|
1319
|
-
type index$
|
|
1320
|
-
declare namespace index$
|
|
1321
|
-
export type { index$
|
|
1448
|
+
type index$k_CreateDatasetRunItemRequest = CreateDatasetRunItemRequest;
|
|
1449
|
+
type index$k_ListDatasetRunItemsRequest = ListDatasetRunItemsRequest;
|
|
1450
|
+
type index$k_PaginatedDatasetRunItems = PaginatedDatasetRunItems;
|
|
1451
|
+
declare namespace index$k {
|
|
1452
|
+
export type { index$k_CreateDatasetRunItemRequest as CreateDatasetRunItemRequest, index$k_ListDatasetRunItemsRequest as ListDatasetRunItemsRequest, index$k_PaginatedDatasetRunItems as PaginatedDatasetRunItems };
|
|
1322
1453
|
}
|
|
1323
1454
|
|
|
1324
1455
|
/**
|
|
@@ -1363,13 +1494,9 @@ interface DeleteDatasetRunResponse {
|
|
|
1363
1494
|
* {}
|
|
1364
1495
|
*/
|
|
1365
1496
|
interface GetDatasetsRequest {
|
|
1366
|
-
/**
|
|
1367
|
-
* page number, starts at 1
|
|
1368
|
-
*/
|
|
1497
|
+
/** page number, starts at 1 */
|
|
1369
1498
|
page?: number;
|
|
1370
|
-
/**
|
|
1371
|
-
* limit of items per page
|
|
1372
|
-
*/
|
|
1499
|
+
/** limit of items per page */
|
|
1373
1500
|
limit?: number;
|
|
1374
1501
|
}
|
|
1375
1502
|
|
|
@@ -1381,24 +1508,20 @@ interface GetDatasetsRequest {
|
|
|
1381
1508
|
* {}
|
|
1382
1509
|
*/
|
|
1383
1510
|
interface GetDatasetRunsRequest {
|
|
1384
|
-
/**
|
|
1385
|
-
* page number, starts at 1
|
|
1386
|
-
*/
|
|
1511
|
+
/** page number, starts at 1 */
|
|
1387
1512
|
page?: number;
|
|
1388
|
-
/**
|
|
1389
|
-
* limit of items per page
|
|
1390
|
-
*/
|
|
1513
|
+
/** limit of items per page */
|
|
1391
1514
|
limit?: number;
|
|
1392
1515
|
}
|
|
1393
1516
|
|
|
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$
|
|
1517
|
+
type index$j_CreateDatasetRequest = CreateDatasetRequest;
|
|
1518
|
+
type index$j_DeleteDatasetRunResponse = DeleteDatasetRunResponse;
|
|
1519
|
+
type index$j_GetDatasetRunsRequest = GetDatasetRunsRequest;
|
|
1520
|
+
type index$j_GetDatasetsRequest = GetDatasetsRequest;
|
|
1521
|
+
type index$j_PaginatedDatasetRuns = PaginatedDatasetRuns;
|
|
1522
|
+
type index$j_PaginatedDatasets = PaginatedDatasets;
|
|
1523
|
+
declare namespace index$j {
|
|
1524
|
+
export type { index$j_CreateDatasetRequest as CreateDatasetRequest, index$j_DeleteDatasetRunResponse as DeleteDatasetRunResponse, index$j_GetDatasetRunsRequest as GetDatasetRunsRequest, index$j_GetDatasetsRequest as GetDatasetsRequest, index$j_PaginatedDatasetRuns as PaginatedDatasetRuns, index$j_PaginatedDatasets as PaginatedDatasets };
|
|
1402
1525
|
}
|
|
1403
1526
|
|
|
1404
1527
|
/**
|
|
@@ -1425,11 +1548,11 @@ declare class ServiceUnavailableError extends LangfuseAPIError {
|
|
|
1425
1548
|
constructor(rawResponse?: RawResponse);
|
|
1426
1549
|
}
|
|
1427
1550
|
|
|
1428
|
-
type index$
|
|
1429
|
-
type index$
|
|
1430
|
-
declare const index$
|
|
1431
|
-
declare namespace index$
|
|
1432
|
-
export { type index$
|
|
1551
|
+
type index$i_HealthResponse = HealthResponse;
|
|
1552
|
+
type index$i_ServiceUnavailableError = ServiceUnavailableError;
|
|
1553
|
+
declare const index$i_ServiceUnavailableError: typeof ServiceUnavailableError;
|
|
1554
|
+
declare namespace index$i {
|
|
1555
|
+
export { type index$i_HealthResponse as HealthResponse, index$i_ServiceUnavailableError as ServiceUnavailableError };
|
|
1433
1556
|
}
|
|
1434
1557
|
|
|
1435
1558
|
/**
|
|
@@ -1503,11 +1626,18 @@ declare namespace IngestionEvent {
|
|
|
1503
1626
|
/**
|
|
1504
1627
|
* This file was auto-generated by Fern from our API Definition.
|
|
1505
1628
|
*/
|
|
1506
|
-
type ObservationType = "SPAN" | "GENERATION" | "EVENT";
|
|
1629
|
+
type ObservationType = "SPAN" | "GENERATION" | "EVENT" | "AGENT" | "TOOL" | "CHAIN" | "RETRIEVER" | "EVALUATOR" | "EMBEDDING" | "GUARDRAIL";
|
|
1507
1630
|
declare const ObservationType: {
|
|
1508
1631
|
readonly Span: "SPAN";
|
|
1509
1632
|
readonly Generation: "GENERATION";
|
|
1510
1633
|
readonly Event: "EVENT";
|
|
1634
|
+
readonly Agent: "AGENT";
|
|
1635
|
+
readonly Tool: "TOOL";
|
|
1636
|
+
readonly Chain: "CHAIN";
|
|
1637
|
+
readonly Retriever: "RETRIEVER";
|
|
1638
|
+
readonly Evaluator: "EVALUATOR";
|
|
1639
|
+
readonly Embedding: "EMBEDDING";
|
|
1640
|
+
readonly Guardrail: "GUARDRAIL";
|
|
1511
1641
|
};
|
|
1512
1642
|
|
|
1513
1643
|
/**
|
|
@@ -1974,41 +2104,136 @@ interface IngestionRequest {
|
|
|
1974
2104
|
metadata?: unknown;
|
|
1975
2105
|
}
|
|
1976
2106
|
|
|
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$
|
|
2107
|
+
type index$h_BaseEvent = BaseEvent;
|
|
2108
|
+
type index$h_CreateEventBody = CreateEventBody;
|
|
2109
|
+
type index$h_CreateEventEvent = CreateEventEvent;
|
|
2110
|
+
type index$h_CreateGenerationBody = CreateGenerationBody;
|
|
2111
|
+
type index$h_CreateGenerationEvent = CreateGenerationEvent;
|
|
2112
|
+
type index$h_CreateObservationEvent = CreateObservationEvent;
|
|
2113
|
+
type index$h_CreateSpanBody = CreateSpanBody;
|
|
2114
|
+
type index$h_CreateSpanEvent = CreateSpanEvent;
|
|
2115
|
+
type index$h_IngestionError = IngestionError;
|
|
2116
|
+
declare const index$h_IngestionEvent: typeof IngestionEvent;
|
|
2117
|
+
type index$h_IngestionRequest = IngestionRequest;
|
|
2118
|
+
type index$h_IngestionResponse = IngestionResponse;
|
|
2119
|
+
type index$h_IngestionSuccess = IngestionSuccess;
|
|
2120
|
+
type index$h_IngestionUsage = IngestionUsage;
|
|
2121
|
+
type index$h_ObservationBody = ObservationBody;
|
|
2122
|
+
declare const index$h_ObservationType: typeof ObservationType;
|
|
2123
|
+
type index$h_OpenAiCompletionUsageSchema = OpenAiCompletionUsageSchema;
|
|
2124
|
+
type index$h_OpenAiResponseUsageSchema = OpenAiResponseUsageSchema;
|
|
2125
|
+
type index$h_OpenAiUsage = OpenAiUsage;
|
|
2126
|
+
type index$h_OptionalObservationBody = OptionalObservationBody;
|
|
2127
|
+
type index$h_ScoreBody = ScoreBody;
|
|
2128
|
+
type index$h_ScoreEvent = ScoreEvent;
|
|
2129
|
+
type index$h_SdkLogBody = SdkLogBody;
|
|
2130
|
+
type index$h_SdkLogEvent = SdkLogEvent;
|
|
2131
|
+
type index$h_TraceBody = TraceBody;
|
|
2132
|
+
type index$h_TraceEvent = TraceEvent;
|
|
2133
|
+
type index$h_UpdateEventBody = UpdateEventBody;
|
|
2134
|
+
type index$h_UpdateGenerationBody = UpdateGenerationBody;
|
|
2135
|
+
type index$h_UpdateGenerationEvent = UpdateGenerationEvent;
|
|
2136
|
+
type index$h_UpdateObservationEvent = UpdateObservationEvent;
|
|
2137
|
+
type index$h_UpdateSpanBody = UpdateSpanBody;
|
|
2138
|
+
type index$h_UpdateSpanEvent = UpdateSpanEvent;
|
|
2139
|
+
type index$h_UsageDetails = UsageDetails;
|
|
2140
|
+
declare namespace index$h {
|
|
2141
|
+
export { type index$h_BaseEvent as BaseEvent, type index$h_CreateEventBody as CreateEventBody, type index$h_CreateEventEvent as CreateEventEvent, type index$h_CreateGenerationBody as CreateGenerationBody, type index$h_CreateGenerationEvent as CreateGenerationEvent, type index$h_CreateObservationEvent as CreateObservationEvent, type index$h_CreateSpanBody as CreateSpanBody, type index$h_CreateSpanEvent as CreateSpanEvent, type index$h_IngestionError as IngestionError, index$h_IngestionEvent as IngestionEvent, type index$h_IngestionRequest as IngestionRequest, type index$h_IngestionResponse as IngestionResponse, type index$h_IngestionSuccess as IngestionSuccess, type index$h_IngestionUsage as IngestionUsage, type index$h_ObservationBody as ObservationBody, index$h_ObservationType as ObservationType, type index$h_OpenAiCompletionUsageSchema as OpenAiCompletionUsageSchema, type index$h_OpenAiResponseUsageSchema as OpenAiResponseUsageSchema, type index$h_OpenAiUsage as OpenAiUsage, type index$h_OptionalObservationBody as OptionalObservationBody, type index$h_ScoreBody as ScoreBody, type index$h_ScoreEvent as ScoreEvent, type index$h_SdkLogBody as SdkLogBody, type index$h_SdkLogEvent as SdkLogEvent, type index$h_TraceBody as TraceBody, type index$h_TraceEvent as TraceEvent, type index$h_UpdateEventBody as UpdateEventBody, type index$h_UpdateGenerationBody as UpdateGenerationBody, type index$h_UpdateGenerationEvent as UpdateGenerationEvent, type index$h_UpdateObservationEvent as UpdateObservationEvent, type index$h_UpdateSpanBody as UpdateSpanBody, type index$h_UpdateSpanEvent as UpdateSpanEvent, type index$h_UsageDetails as UsageDetails };
|
|
2142
|
+
}
|
|
2143
|
+
|
|
2144
|
+
/**
|
|
2145
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2146
|
+
*/
|
|
2147
|
+
/**
|
|
2148
|
+
* LLM API connection configuration (secrets excluded)
|
|
2149
|
+
*/
|
|
2150
|
+
interface LlmConnection {
|
|
2151
|
+
id: string;
|
|
2152
|
+
/** Provider name (e.g., 'openai', 'my-gateway'). Must be unique in project, used for upserting. */
|
|
2153
|
+
provider: string;
|
|
2154
|
+
/** The adapter used to interface with the LLM */
|
|
2155
|
+
adapter: string;
|
|
2156
|
+
/** Masked version of the secret key for display purposes */
|
|
2157
|
+
displaySecretKey: string;
|
|
2158
|
+
/** Custom base URL for the LLM API */
|
|
2159
|
+
baseURL?: string;
|
|
2160
|
+
/** List of custom model names available for this connection */
|
|
2161
|
+
customModels: string[];
|
|
2162
|
+
/** Whether to include default models for this adapter */
|
|
2163
|
+
withDefaultModels: boolean;
|
|
2164
|
+
/** Keys of extra headers sent with requests (values excluded for security) */
|
|
2165
|
+
extraHeaderKeys: string[];
|
|
2166
|
+
createdAt: string;
|
|
2167
|
+
updatedAt: string;
|
|
2168
|
+
}
|
|
2169
|
+
|
|
2170
|
+
/**
|
|
2171
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2172
|
+
*/
|
|
2173
|
+
|
|
2174
|
+
interface PaginatedLlmConnections {
|
|
2175
|
+
data: LlmConnection[];
|
|
2176
|
+
meta: MetaResponse;
|
|
2177
|
+
}
|
|
2178
|
+
|
|
2179
|
+
/**
|
|
2180
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2181
|
+
*/
|
|
2182
|
+
|
|
2183
|
+
/**
|
|
2184
|
+
* Request to create or update an LLM connection (upsert)
|
|
2185
|
+
*/
|
|
2186
|
+
interface UpsertLlmConnectionRequest {
|
|
2187
|
+
/** Provider name (e.g., 'openai', 'my-gateway'). Must be unique in project, used for upserting. */
|
|
2188
|
+
provider: string;
|
|
2189
|
+
/** The adapter used to interface with the LLM */
|
|
2190
|
+
adapter: LlmAdapter;
|
|
2191
|
+
/** Secret key for the LLM API. */
|
|
2192
|
+
secretKey: string;
|
|
2193
|
+
/** Custom base URL for the LLM API */
|
|
2194
|
+
baseURL?: string;
|
|
2195
|
+
/** List of custom model names */
|
|
2196
|
+
customModels?: string[];
|
|
2197
|
+
/** Whether to include default models. Default is true. */
|
|
2198
|
+
withDefaultModels?: boolean;
|
|
2199
|
+
/** Extra headers to send with requests */
|
|
2200
|
+
extraHeaders?: Record<string, string>;
|
|
2201
|
+
}
|
|
2202
|
+
|
|
2203
|
+
/**
|
|
2204
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2205
|
+
*/
|
|
2206
|
+
type LlmAdapter = "anthropic" | "openai" | "azure" | "bedrock" | "google-vertex-ai" | "google-ai-studio";
|
|
2207
|
+
declare const LlmAdapter: {
|
|
2208
|
+
readonly Anthropic: "anthropic";
|
|
2209
|
+
readonly OpenAi: "openai";
|
|
2210
|
+
readonly Azure: "azure";
|
|
2211
|
+
readonly Bedrock: "bedrock";
|
|
2212
|
+
readonly GoogleVertexAi: "google-vertex-ai";
|
|
2213
|
+
readonly GoogleAiStudio: "google-ai-studio";
|
|
2214
|
+
};
|
|
2215
|
+
|
|
2216
|
+
/**
|
|
2217
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2218
|
+
*/
|
|
2219
|
+
/**
|
|
2220
|
+
* @example
|
|
2221
|
+
* {}
|
|
2222
|
+
*/
|
|
2223
|
+
interface GetLlmConnectionsRequest {
|
|
2224
|
+
/** page number, starts at 1 */
|
|
2225
|
+
page?: number;
|
|
2226
|
+
/** limit of items per page */
|
|
2227
|
+
limit?: number;
|
|
2228
|
+
}
|
|
2229
|
+
|
|
2230
|
+
type index$g_GetLlmConnectionsRequest = GetLlmConnectionsRequest;
|
|
2231
|
+
declare const index$g_LlmAdapter: typeof LlmAdapter;
|
|
2232
|
+
type index$g_LlmConnection = LlmConnection;
|
|
2233
|
+
type index$g_PaginatedLlmConnections = PaginatedLlmConnections;
|
|
2234
|
+
type index$g_UpsertLlmConnectionRequest = UpsertLlmConnectionRequest;
|
|
2010
2235
|
declare namespace index$g {
|
|
2011
|
-
export { type index$
|
|
2236
|
+
export { type index$g_GetLlmConnectionsRequest as GetLlmConnectionsRequest, index$g_LlmAdapter as LlmAdapter, type index$g_LlmConnection as LlmConnection, type index$g_PaginatedLlmConnections as PaginatedLlmConnections, type index$g_UpsertLlmConnectionRequest as UpsertLlmConnectionRequest };
|
|
2012
2237
|
}
|
|
2013
2238
|
|
|
2014
2239
|
/**
|
|
@@ -2235,13 +2460,9 @@ interface CreateModelRequest {
|
|
|
2235
2460
|
* {}
|
|
2236
2461
|
*/
|
|
2237
2462
|
interface GetModelsRequest {
|
|
2238
|
-
/**
|
|
2239
|
-
* page number, starts at 1
|
|
2240
|
-
*/
|
|
2463
|
+
/** page number, starts at 1 */
|
|
2241
2464
|
page?: number;
|
|
2242
|
-
/**
|
|
2243
|
-
* limit of items per page
|
|
2244
|
-
*/
|
|
2465
|
+
/** limit of items per page */
|
|
2245
2466
|
limit?: number;
|
|
2246
2467
|
}
|
|
2247
2468
|
|
|
@@ -2279,38 +2500,24 @@ interface ObservationsViews {
|
|
|
2279
2500
|
* {}
|
|
2280
2501
|
*/
|
|
2281
2502
|
interface GetObservationsRequest {
|
|
2282
|
-
/**
|
|
2283
|
-
* Page number, starts at 1.
|
|
2284
|
-
*/
|
|
2503
|
+
/** Page number, starts at 1. */
|
|
2285
2504
|
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
|
-
*/
|
|
2505
|
+
/** Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit. */
|
|
2289
2506
|
limit?: number;
|
|
2290
2507
|
name?: string;
|
|
2291
2508
|
userId?: string;
|
|
2292
2509
|
type?: string;
|
|
2293
2510
|
traceId?: string;
|
|
2294
|
-
/**
|
|
2295
|
-
* Optional filter for observations with a specific level (e.g. "DEBUG", "DEFAULT", "WARNING", "ERROR").
|
|
2296
|
-
*/
|
|
2511
|
+
/** Optional filter for observations with a specific level (e.g. "DEBUG", "DEFAULT", "WARNING", "ERROR"). */
|
|
2297
2512
|
level?: ObservationLevel;
|
|
2298
2513
|
parentObservationId?: string;
|
|
2299
|
-
/**
|
|
2300
|
-
* Optional filter for observations where the environment is one of the provided values.
|
|
2301
|
-
*/
|
|
2514
|
+
/** Optional filter for observations where the environment is one of the provided values. */
|
|
2302
2515
|
environment?: string | string[];
|
|
2303
|
-
/**
|
|
2304
|
-
* Retrieve only observations with a start_time on or after this datetime (ISO 8601).
|
|
2305
|
-
*/
|
|
2516
|
+
/** Retrieve only observations with a start_time on or after this datetime (ISO 8601). */
|
|
2306
2517
|
fromStartTime?: string;
|
|
2307
|
-
/**
|
|
2308
|
-
* Retrieve only observations with a start_time before this datetime (ISO 8601).
|
|
2309
|
-
*/
|
|
2518
|
+
/** Retrieve only observations with a start_time before this datetime (ISO 8601). */
|
|
2310
2519
|
toStartTime?: string;
|
|
2311
|
-
/**
|
|
2312
|
-
* Optional filter to only include observations with a certain version.
|
|
2313
|
-
*/
|
|
2520
|
+
/** Optional filter to only include observations with a certain version. */
|
|
2314
2521
|
version?: string;
|
|
2315
2522
|
}
|
|
2316
2523
|
|
|
@@ -2340,6 +2547,13 @@ interface MembershipRequest {
|
|
|
2340
2547
|
role: MembershipRole;
|
|
2341
2548
|
}
|
|
2342
2549
|
|
|
2550
|
+
/**
|
|
2551
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2552
|
+
*/
|
|
2553
|
+
interface DeleteMembershipRequest {
|
|
2554
|
+
userId: string;
|
|
2555
|
+
}
|
|
2556
|
+
|
|
2343
2557
|
/**
|
|
2344
2558
|
* This file was auto-generated by Fern from our API Definition.
|
|
2345
2559
|
*/
|
|
@@ -2351,6 +2565,14 @@ interface MembershipResponse {
|
|
|
2351
2565
|
name: string;
|
|
2352
2566
|
}
|
|
2353
2567
|
|
|
2568
|
+
/**
|
|
2569
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2570
|
+
*/
|
|
2571
|
+
interface MembershipDeletionResponse {
|
|
2572
|
+
message: string;
|
|
2573
|
+
userId: string;
|
|
2574
|
+
}
|
|
2575
|
+
|
|
2354
2576
|
/**
|
|
2355
2577
|
* This file was auto-generated by Fern from our API Definition.
|
|
2356
2578
|
*/
|
|
@@ -2378,6 +2600,8 @@ interface OrganizationProjectsResponse {
|
|
|
2378
2600
|
projects: OrganizationProject[];
|
|
2379
2601
|
}
|
|
2380
2602
|
|
|
2603
|
+
type index$b_DeleteMembershipRequest = DeleteMembershipRequest;
|
|
2604
|
+
type index$b_MembershipDeletionResponse = MembershipDeletionResponse;
|
|
2381
2605
|
type index$b_MembershipRequest = MembershipRequest;
|
|
2382
2606
|
type index$b_MembershipResponse = MembershipResponse;
|
|
2383
2607
|
declare const index$b_MembershipRole: typeof MembershipRole;
|
|
@@ -2385,7 +2609,7 @@ type index$b_MembershipsResponse = MembershipsResponse;
|
|
|
2385
2609
|
type index$b_OrganizationProject = OrganizationProject;
|
|
2386
2610
|
type index$b_OrganizationProjectsResponse = OrganizationProjectsResponse;
|
|
2387
2611
|
declare namespace index$b {
|
|
2388
|
-
export { 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 };
|
|
2612
|
+
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
2613
|
}
|
|
2390
2614
|
|
|
2391
2615
|
/**
|
|
@@ -2684,13 +2908,9 @@ interface ChatPrompt extends BasePrompt {
|
|
|
2684
2908
|
* {}
|
|
2685
2909
|
*/
|
|
2686
2910
|
interface GetPromptRequest {
|
|
2687
|
-
/**
|
|
2688
|
-
* Version of the prompt to be retrieved.
|
|
2689
|
-
*/
|
|
2911
|
+
/** Version of the prompt to be retrieved. */
|
|
2690
2912
|
version?: number;
|
|
2691
|
-
/**
|
|
2692
|
-
* Label of the prompt to be retrieved. Defaults to "production" if no label or version is set.
|
|
2693
|
-
*/
|
|
2913
|
+
/** Label of the prompt to be retrieved. Defaults to "production" if no label or version is set. */
|
|
2694
2914
|
label?: string;
|
|
2695
2915
|
}
|
|
2696
2916
|
|
|
@@ -2705,21 +2925,13 @@ interface ListPromptsMetaRequest {
|
|
|
2705
2925
|
name?: string;
|
|
2706
2926
|
label?: string;
|
|
2707
2927
|
tag?: string;
|
|
2708
|
-
/**
|
|
2709
|
-
* page number, starts at 1
|
|
2710
|
-
*/
|
|
2928
|
+
/** page number, starts at 1 */
|
|
2711
2929
|
page?: number;
|
|
2712
|
-
/**
|
|
2713
|
-
* limit of items per page
|
|
2714
|
-
*/
|
|
2930
|
+
/** limit of items per page */
|
|
2715
2931
|
limit?: number;
|
|
2716
|
-
/**
|
|
2717
|
-
* Optional filter to only include prompt versions created/updated on or after a certain datetime (ISO 8601)
|
|
2718
|
-
*/
|
|
2932
|
+
/** Optional filter to only include prompt versions created/updated on or after a certain datetime (ISO 8601) */
|
|
2719
2933
|
fromUpdatedAt?: string;
|
|
2720
|
-
/**
|
|
2721
|
-
* Optional filter to only include prompt versions created/updated before a certain datetime (ISO 8601)
|
|
2722
|
-
*/
|
|
2934
|
+
/** Optional filter to only include prompt versions created/updated before a certain datetime (ISO 8601) */
|
|
2723
2935
|
toUpdatedAt?: string;
|
|
2724
2936
|
}
|
|
2725
2937
|
|
|
@@ -2923,17 +3135,11 @@ interface EmptyResponse {
|
|
|
2923
3135
|
* {}
|
|
2924
3136
|
*/
|
|
2925
3137
|
interface ListUsersRequest {
|
|
2926
|
-
/**
|
|
2927
|
-
* Filter expression (e.g. userName eq "value")
|
|
2928
|
-
*/
|
|
3138
|
+
/** Filter expression (e.g. userName eq "value") */
|
|
2929
3139
|
filter?: string;
|
|
2930
|
-
/**
|
|
2931
|
-
* 1-based index of the first result to return (default 1)
|
|
2932
|
-
*/
|
|
3140
|
+
/** 1-based index of the first result to return (default 1) */
|
|
2933
3141
|
startIndex?: number;
|
|
2934
|
-
/**
|
|
2935
|
-
* Maximum number of results to return (default 100)
|
|
2936
|
-
*/
|
|
3142
|
+
/** Maximum number of results to return (default 100) */
|
|
2937
3143
|
count?: number;
|
|
2938
3144
|
}
|
|
2939
3145
|
|
|
@@ -3023,13 +3229,9 @@ interface CreateScoreConfigRequest {
|
|
|
3023
3229
|
* {}
|
|
3024
3230
|
*/
|
|
3025
3231
|
interface GetScoreConfigsRequest {
|
|
3026
|
-
/**
|
|
3027
|
-
* Page number, starts at 1.
|
|
3028
|
-
*/
|
|
3232
|
+
/** Page number, starts at 1. */
|
|
3029
3233
|
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
|
-
*/
|
|
3234
|
+
/** Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit */
|
|
3033
3235
|
limit?: number;
|
|
3034
3236
|
}
|
|
3035
3237
|
|
|
@@ -3110,65 +3312,37 @@ interface GetScoresResponse {
|
|
|
3110
3312
|
* {}
|
|
3111
3313
|
*/
|
|
3112
3314
|
interface GetScoresRequest {
|
|
3113
|
-
/**
|
|
3114
|
-
* Page number, starts at 1.
|
|
3115
|
-
*/
|
|
3315
|
+
/** Page number, starts at 1. */
|
|
3116
3316
|
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
|
-
*/
|
|
3317
|
+
/** Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit. */
|
|
3120
3318
|
limit?: number;
|
|
3121
|
-
/**
|
|
3122
|
-
* Retrieve only scores with this userId associated to the trace.
|
|
3123
|
-
*/
|
|
3319
|
+
/** Retrieve only scores with this userId associated to the trace. */
|
|
3124
3320
|
userId?: string;
|
|
3125
|
-
/**
|
|
3126
|
-
* Retrieve only scores with this name.
|
|
3127
|
-
*/
|
|
3321
|
+
/** Retrieve only scores with this name. */
|
|
3128
3322
|
name?: string;
|
|
3129
|
-
/**
|
|
3130
|
-
* Optional filter to only include scores created on or after a certain datetime (ISO 8601)
|
|
3131
|
-
*/
|
|
3323
|
+
/** Optional filter to only include scores created on or after a certain datetime (ISO 8601) */
|
|
3132
3324
|
fromTimestamp?: string;
|
|
3133
|
-
/**
|
|
3134
|
-
* Optional filter to only include scores created before a certain datetime (ISO 8601)
|
|
3135
|
-
*/
|
|
3325
|
+
/** Optional filter to only include scores created before a certain datetime (ISO 8601) */
|
|
3136
3326
|
toTimestamp?: string;
|
|
3137
|
-
/**
|
|
3138
|
-
* Optional filter for scores where the environment is one of the provided values.
|
|
3139
|
-
*/
|
|
3327
|
+
/** Optional filter for scores where the environment is one of the provided values. */
|
|
3140
3328
|
environment?: string | string[];
|
|
3141
|
-
/**
|
|
3142
|
-
* Retrieve only scores from a specific source.
|
|
3143
|
-
*/
|
|
3329
|
+
/** Retrieve only scores from a specific source. */
|
|
3144
3330
|
source?: ScoreSource;
|
|
3145
|
-
/**
|
|
3146
|
-
* Retrieve only scores with <operator> value.
|
|
3147
|
-
*/
|
|
3331
|
+
/** Retrieve only scores with <operator> value. */
|
|
3148
3332
|
operator?: string;
|
|
3149
|
-
/**
|
|
3150
|
-
* Retrieve only scores with <operator> value.
|
|
3151
|
-
*/
|
|
3333
|
+
/** Retrieve only scores with <operator> value. */
|
|
3152
3334
|
value?: number;
|
|
3153
|
-
/**
|
|
3154
|
-
* Comma-separated list of score IDs to limit the results to.
|
|
3155
|
-
*/
|
|
3335
|
+
/** Comma-separated list of score IDs to limit the results to. */
|
|
3156
3336
|
scoreIds?: string;
|
|
3157
|
-
/**
|
|
3158
|
-
* Retrieve only scores with a specific configId.
|
|
3159
|
-
*/
|
|
3337
|
+
/** Retrieve only scores with a specific configId. */
|
|
3160
3338
|
configId?: string;
|
|
3161
|
-
/**
|
|
3162
|
-
|
|
3163
|
-
|
|
3339
|
+
/** Retrieve only scores with a specific sessionId. */
|
|
3340
|
+
sessionId?: string;
|
|
3341
|
+
/** Retrieve only scores with a specific annotation queueId. */
|
|
3164
3342
|
queueId?: string;
|
|
3165
|
-
/**
|
|
3166
|
-
* Retrieve only scores with a specific dataType.
|
|
3167
|
-
*/
|
|
3343
|
+
/** Retrieve only scores with a specific dataType. */
|
|
3168
3344
|
dataType?: ScoreDataType;
|
|
3169
|
-
/**
|
|
3170
|
-
* Only scores linked to traces that include all of these tags will be returned.
|
|
3171
|
-
*/
|
|
3345
|
+
/** Only scores linked to traces that include all of these tags will be returned. */
|
|
3172
3346
|
traceTags?: string | string[];
|
|
3173
3347
|
}
|
|
3174
3348
|
|
|
@@ -3297,25 +3471,15 @@ interface PaginatedSessions {
|
|
|
3297
3471
|
* {}
|
|
3298
3472
|
*/
|
|
3299
3473
|
interface GetSessionsRequest {
|
|
3300
|
-
/**
|
|
3301
|
-
* Page number, starts at 1
|
|
3302
|
-
*/
|
|
3474
|
+
/** Page number, starts at 1 */
|
|
3303
3475
|
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
|
-
*/
|
|
3476
|
+
/** Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit. */
|
|
3307
3477
|
limit?: number;
|
|
3308
|
-
/**
|
|
3309
|
-
* Optional filter to only include sessions created on or after a certain datetime (ISO 8601)
|
|
3310
|
-
*/
|
|
3478
|
+
/** Optional filter to only include sessions created on or after a certain datetime (ISO 8601) */
|
|
3311
3479
|
fromTimestamp?: string;
|
|
3312
|
-
/**
|
|
3313
|
-
* Optional filter to only include sessions created before a certain datetime (ISO 8601)
|
|
3314
|
-
*/
|
|
3480
|
+
/** Optional filter to only include sessions created before a certain datetime (ISO 8601) */
|
|
3315
3481
|
toTimestamp?: string;
|
|
3316
|
-
/**
|
|
3317
|
-
* Optional filter for sessions where the environment is one of the provided values.
|
|
3318
|
-
*/
|
|
3482
|
+
/** Optional filter for sessions where the environment is one of the provided values. */
|
|
3319
3483
|
environment?: string | string[];
|
|
3320
3484
|
}
|
|
3321
3485
|
|
|
@@ -3356,48 +3520,28 @@ interface Sort {
|
|
|
3356
3520
|
* {}
|
|
3357
3521
|
*/
|
|
3358
3522
|
interface GetTracesRequest {
|
|
3359
|
-
/**
|
|
3360
|
-
* Page number, starts at 1
|
|
3361
|
-
*/
|
|
3523
|
+
/** Page number, starts at 1 */
|
|
3362
3524
|
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
|
-
*/
|
|
3525
|
+
/** Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit. */
|
|
3366
3526
|
limit?: number;
|
|
3367
3527
|
userId?: string;
|
|
3368
3528
|
name?: string;
|
|
3369
3529
|
sessionId?: string;
|
|
3370
|
-
/**
|
|
3371
|
-
* Optional filter to only include traces with a trace.timestamp on or after a certain datetime (ISO 8601)
|
|
3372
|
-
*/
|
|
3530
|
+
/** Optional filter to only include traces with a trace.timestamp on or after a certain datetime (ISO 8601) */
|
|
3373
3531
|
fromTimestamp?: string;
|
|
3374
|
-
/**
|
|
3375
|
-
* Optional filter to only include traces with a trace.timestamp before a certain datetime (ISO 8601)
|
|
3376
|
-
*/
|
|
3532
|
+
/** Optional filter to only include traces with a trace.timestamp before a certain datetime (ISO 8601) */
|
|
3377
3533
|
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
|
-
*/
|
|
3534
|
+
/** Format of the string [field].[asc/desc]. Fields: id, timestamp, name, userId, release, version, public, bookmarked, sessionId. Example: timestamp.asc */
|
|
3381
3535
|
orderBy?: string;
|
|
3382
|
-
/**
|
|
3383
|
-
* Only traces that include all of these tags will be returned.
|
|
3384
|
-
*/
|
|
3536
|
+
/** Only traces that include all of these tags will be returned. */
|
|
3385
3537
|
tags?: string | string[];
|
|
3386
|
-
/**
|
|
3387
|
-
* Optional filter to only include traces with a certain version.
|
|
3388
|
-
*/
|
|
3538
|
+
/** Optional filter to only include traces with a certain version. */
|
|
3389
3539
|
version?: string;
|
|
3390
|
-
/**
|
|
3391
|
-
* Optional filter to only include traces with a certain release.
|
|
3392
|
-
*/
|
|
3540
|
+
/** Optional filter to only include traces with a certain release. */
|
|
3393
3541
|
release?: string;
|
|
3394
|
-
/**
|
|
3395
|
-
* Optional filter for traces where the environment is one of the provided values.
|
|
3396
|
-
*/
|
|
3542
|
+
/** Optional filter for traces where the environment is one of the provided values. */
|
|
3397
3543
|
environment?: string | string[];
|
|
3398
|
-
/**
|
|
3399
|
-
* Comma-separated list of fields to include in the response. Available field groups are 'core' (always included), 'io' (input, output, metadata), 'scores', 'observations', 'metrics'. If not provided, all fields are included. Example: 'core,scores,metrics'
|
|
3400
|
-
*/
|
|
3544
|
+
/** 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'. */
|
|
3401
3545
|
fields?: string;
|
|
3402
3546
|
}
|
|
3403
3547
|
|
|
@@ -3485,7 +3629,7 @@ declare namespace AnnotationQueues {
|
|
|
3485
3629
|
/** Override the X-Langfuse-Public-Key header */
|
|
3486
3630
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
3487
3631
|
/** Additional headers to include in requests. */
|
|
3488
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
3632
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
3489
3633
|
}
|
|
3490
3634
|
interface RequestOptions {
|
|
3491
3635
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -3503,7 +3647,7 @@ declare namespace AnnotationQueues {
|
|
|
3503
3647
|
/** Additional query string parameters to include in the request. */
|
|
3504
3648
|
queryParams?: Record<string, unknown>;
|
|
3505
3649
|
/** Additional headers to include in the request. */
|
|
3506
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
3650
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
3507
3651
|
}
|
|
3508
3652
|
}
|
|
3509
3653
|
declare class AnnotationQueues {
|
|
@@ -3526,6 +3670,27 @@ declare class AnnotationQueues {
|
|
|
3526
3670
|
*/
|
|
3527
3671
|
listQueues(request?: GetAnnotationQueuesRequest, requestOptions?: AnnotationQueues.RequestOptions): HttpResponsePromise<PaginatedAnnotationQueues>;
|
|
3528
3672
|
private __listQueues;
|
|
3673
|
+
/**
|
|
3674
|
+
* Create an annotation queue
|
|
3675
|
+
*
|
|
3676
|
+
* @param {LangfuseAPI.CreateAnnotationQueueRequest} request
|
|
3677
|
+
* @param {AnnotationQueues.RequestOptions} requestOptions - Request-specific configuration.
|
|
3678
|
+
*
|
|
3679
|
+
* @throws {@link LangfuseAPI.Error}
|
|
3680
|
+
* @throws {@link LangfuseAPI.UnauthorizedError}
|
|
3681
|
+
* @throws {@link LangfuseAPI.AccessDeniedError}
|
|
3682
|
+
* @throws {@link LangfuseAPI.MethodNotAllowedError}
|
|
3683
|
+
* @throws {@link LangfuseAPI.NotFoundError}
|
|
3684
|
+
*
|
|
3685
|
+
* @example
|
|
3686
|
+
* await client.annotationQueues.createQueue({
|
|
3687
|
+
* name: "name",
|
|
3688
|
+
* description: undefined,
|
|
3689
|
+
* scoreConfigIds: ["scoreConfigIds", "scoreConfigIds"]
|
|
3690
|
+
* })
|
|
3691
|
+
*/
|
|
3692
|
+
createQueue(request: CreateAnnotationQueueRequest, requestOptions?: AnnotationQueues.RequestOptions): HttpResponsePromise<AnnotationQueue>;
|
|
3693
|
+
private __createQueue;
|
|
3529
3694
|
/**
|
|
3530
3695
|
* Get an annotation queue by ID
|
|
3531
3696
|
*
|
|
@@ -3640,6 +3805,156 @@ declare class AnnotationQueues {
|
|
|
3640
3805
|
*/
|
|
3641
3806
|
deleteQueueItem(queueId: string, itemId: string, requestOptions?: AnnotationQueues.RequestOptions): HttpResponsePromise<DeleteAnnotationQueueItemResponse>;
|
|
3642
3807
|
private __deleteQueueItem;
|
|
3808
|
+
/**
|
|
3809
|
+
* Create an assignment for a user to an annotation queue
|
|
3810
|
+
*
|
|
3811
|
+
* @param {string} queueId - The unique identifier of the annotation queue
|
|
3812
|
+
* @param {LangfuseAPI.AnnotationQueueAssignmentRequest} request
|
|
3813
|
+
* @param {AnnotationQueues.RequestOptions} requestOptions - Request-specific configuration.
|
|
3814
|
+
*
|
|
3815
|
+
* @throws {@link LangfuseAPI.Error}
|
|
3816
|
+
* @throws {@link LangfuseAPI.UnauthorizedError}
|
|
3817
|
+
* @throws {@link LangfuseAPI.AccessDeniedError}
|
|
3818
|
+
* @throws {@link LangfuseAPI.MethodNotAllowedError}
|
|
3819
|
+
* @throws {@link LangfuseAPI.NotFoundError}
|
|
3820
|
+
*
|
|
3821
|
+
* @example
|
|
3822
|
+
* await client.annotationQueues.createQueueAssignment("queueId", {
|
|
3823
|
+
* userId: "userId"
|
|
3824
|
+
* })
|
|
3825
|
+
*/
|
|
3826
|
+
createQueueAssignment(queueId: string, request: AnnotationQueueAssignmentRequest, requestOptions?: AnnotationQueues.RequestOptions): HttpResponsePromise<CreateAnnotationQueueAssignmentResponse>;
|
|
3827
|
+
private __createQueueAssignment;
|
|
3828
|
+
/**
|
|
3829
|
+
* Delete an assignment for a user to an annotation queue
|
|
3830
|
+
*
|
|
3831
|
+
* @param {string} queueId - The unique identifier of the annotation queue
|
|
3832
|
+
* @param {LangfuseAPI.AnnotationQueueAssignmentRequest} request
|
|
3833
|
+
* @param {AnnotationQueues.RequestOptions} requestOptions - Request-specific configuration.
|
|
3834
|
+
*
|
|
3835
|
+
* @throws {@link LangfuseAPI.Error}
|
|
3836
|
+
* @throws {@link LangfuseAPI.UnauthorizedError}
|
|
3837
|
+
* @throws {@link LangfuseAPI.AccessDeniedError}
|
|
3838
|
+
* @throws {@link LangfuseAPI.MethodNotAllowedError}
|
|
3839
|
+
* @throws {@link LangfuseAPI.NotFoundError}
|
|
3840
|
+
*
|
|
3841
|
+
* @example
|
|
3842
|
+
* await client.annotationQueues.deleteQueueAssignment("queueId", {
|
|
3843
|
+
* userId: "userId"
|
|
3844
|
+
* })
|
|
3845
|
+
*/
|
|
3846
|
+
deleteQueueAssignment(queueId: string, request: AnnotationQueueAssignmentRequest, requestOptions?: AnnotationQueues.RequestOptions): HttpResponsePromise<DeleteAnnotationQueueAssignmentResponse>;
|
|
3847
|
+
private __deleteQueueAssignment;
|
|
3848
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
3849
|
+
}
|
|
3850
|
+
|
|
3851
|
+
/**
|
|
3852
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3853
|
+
*/
|
|
3854
|
+
|
|
3855
|
+
declare namespace BlobStorageIntegrations {
|
|
3856
|
+
interface Options {
|
|
3857
|
+
environment: Supplier<string>;
|
|
3858
|
+
/** Specify a custom URL to connect the client to. */
|
|
3859
|
+
baseUrl?: Supplier<string>;
|
|
3860
|
+
username?: Supplier<string | undefined>;
|
|
3861
|
+
password?: Supplier<string | undefined>;
|
|
3862
|
+
/** Override the X-Langfuse-Sdk-Name header */
|
|
3863
|
+
xLangfuseSdkName?: Supplier<string | undefined>;
|
|
3864
|
+
/** Override the X-Langfuse-Sdk-Version header */
|
|
3865
|
+
xLangfuseSdkVersion?: Supplier<string | undefined>;
|
|
3866
|
+
/** Override the X-Langfuse-Public-Key header */
|
|
3867
|
+
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
3868
|
+
/** Additional headers to include in requests. */
|
|
3869
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
3870
|
+
}
|
|
3871
|
+
interface RequestOptions {
|
|
3872
|
+
/** The maximum time to wait for a response in seconds. */
|
|
3873
|
+
timeoutInSeconds?: number;
|
|
3874
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
3875
|
+
maxRetries?: number;
|
|
3876
|
+
/** A hook to abort the request. */
|
|
3877
|
+
abortSignal?: AbortSignal;
|
|
3878
|
+
/** Override the X-Langfuse-Sdk-Name header */
|
|
3879
|
+
xLangfuseSdkName?: string | undefined;
|
|
3880
|
+
/** Override the X-Langfuse-Sdk-Version header */
|
|
3881
|
+
xLangfuseSdkVersion?: string | undefined;
|
|
3882
|
+
/** Override the X-Langfuse-Public-Key header */
|
|
3883
|
+
xLangfusePublicKey?: string | undefined;
|
|
3884
|
+
/** Additional query string parameters to include in the request. */
|
|
3885
|
+
queryParams?: Record<string, unknown>;
|
|
3886
|
+
/** Additional headers to include in the request. */
|
|
3887
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
3888
|
+
}
|
|
3889
|
+
}
|
|
3890
|
+
declare class BlobStorageIntegrations {
|
|
3891
|
+
protected readonly _options: BlobStorageIntegrations.Options;
|
|
3892
|
+
constructor(_options: BlobStorageIntegrations.Options);
|
|
3893
|
+
/**
|
|
3894
|
+
* Get all blob storage integrations for the organization (requires organization-scoped API key)
|
|
3895
|
+
*
|
|
3896
|
+
* @param {BlobStorageIntegrations.RequestOptions} requestOptions - Request-specific configuration.
|
|
3897
|
+
*
|
|
3898
|
+
* @throws {@link LangfuseAPI.Error}
|
|
3899
|
+
* @throws {@link LangfuseAPI.UnauthorizedError}
|
|
3900
|
+
* @throws {@link LangfuseAPI.AccessDeniedError}
|
|
3901
|
+
* @throws {@link LangfuseAPI.MethodNotAllowedError}
|
|
3902
|
+
* @throws {@link LangfuseAPI.NotFoundError}
|
|
3903
|
+
*
|
|
3904
|
+
* @example
|
|
3905
|
+
* await client.blobStorageIntegrations.getBlobStorageIntegrations()
|
|
3906
|
+
*/
|
|
3907
|
+
getBlobStorageIntegrations(requestOptions?: BlobStorageIntegrations.RequestOptions): HttpResponsePromise<BlobStorageIntegrationsResponse>;
|
|
3908
|
+
private __getBlobStorageIntegrations;
|
|
3909
|
+
/**
|
|
3910
|
+
* 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.
|
|
3911
|
+
*
|
|
3912
|
+
* @param {LangfuseAPI.CreateBlobStorageIntegrationRequest} request
|
|
3913
|
+
* @param {BlobStorageIntegrations.RequestOptions} requestOptions - Request-specific configuration.
|
|
3914
|
+
*
|
|
3915
|
+
* @throws {@link LangfuseAPI.Error}
|
|
3916
|
+
* @throws {@link LangfuseAPI.UnauthorizedError}
|
|
3917
|
+
* @throws {@link LangfuseAPI.AccessDeniedError}
|
|
3918
|
+
* @throws {@link LangfuseAPI.MethodNotAllowedError}
|
|
3919
|
+
* @throws {@link LangfuseAPI.NotFoundError}
|
|
3920
|
+
*
|
|
3921
|
+
* @example
|
|
3922
|
+
* await client.blobStorageIntegrations.upsertBlobStorageIntegration({
|
|
3923
|
+
* projectId: "projectId",
|
|
3924
|
+
* type: "S3",
|
|
3925
|
+
* bucketName: "bucketName",
|
|
3926
|
+
* endpoint: undefined,
|
|
3927
|
+
* region: "region",
|
|
3928
|
+
* accessKeyId: undefined,
|
|
3929
|
+
* secretAccessKey: undefined,
|
|
3930
|
+
* prefix: undefined,
|
|
3931
|
+
* exportFrequency: "hourly",
|
|
3932
|
+
* enabled: true,
|
|
3933
|
+
* forcePathStyle: true,
|
|
3934
|
+
* fileType: "JSON",
|
|
3935
|
+
* exportMode: "FULL_HISTORY",
|
|
3936
|
+
* exportStartDate: undefined
|
|
3937
|
+
* })
|
|
3938
|
+
*/
|
|
3939
|
+
upsertBlobStorageIntegration(request: CreateBlobStorageIntegrationRequest, requestOptions?: BlobStorageIntegrations.RequestOptions): HttpResponsePromise<BlobStorageIntegrationResponse>;
|
|
3940
|
+
private __upsertBlobStorageIntegration;
|
|
3941
|
+
/**
|
|
3942
|
+
* Delete a blob storage integration by ID (requires organization-scoped API key)
|
|
3943
|
+
*
|
|
3944
|
+
* @param {string} id
|
|
3945
|
+
* @param {BlobStorageIntegrations.RequestOptions} requestOptions - Request-specific configuration.
|
|
3946
|
+
*
|
|
3947
|
+
* @throws {@link LangfuseAPI.Error}
|
|
3948
|
+
* @throws {@link LangfuseAPI.UnauthorizedError}
|
|
3949
|
+
* @throws {@link LangfuseAPI.AccessDeniedError}
|
|
3950
|
+
* @throws {@link LangfuseAPI.MethodNotAllowedError}
|
|
3951
|
+
* @throws {@link LangfuseAPI.NotFoundError}
|
|
3952
|
+
*
|
|
3953
|
+
* @example
|
|
3954
|
+
* await client.blobStorageIntegrations.deleteBlobStorageIntegration("id")
|
|
3955
|
+
*/
|
|
3956
|
+
deleteBlobStorageIntegration(id: string, requestOptions?: BlobStorageIntegrations.RequestOptions): HttpResponsePromise<BlobStorageIntegrationDeletionResponse>;
|
|
3957
|
+
private __deleteBlobStorageIntegration;
|
|
3643
3958
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
3644
3959
|
}
|
|
3645
3960
|
|
|
@@ -3661,7 +3976,7 @@ declare namespace Comments {
|
|
|
3661
3976
|
/** Override the X-Langfuse-Public-Key header */
|
|
3662
3977
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
3663
3978
|
/** Additional headers to include in requests. */
|
|
3664
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
3979
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
3665
3980
|
}
|
|
3666
3981
|
interface RequestOptions {
|
|
3667
3982
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -3679,7 +3994,7 @@ declare namespace Comments {
|
|
|
3679
3994
|
/** Additional query string parameters to include in the request. */
|
|
3680
3995
|
queryParams?: Record<string, unknown>;
|
|
3681
3996
|
/** Additional headers to include in the request. */
|
|
3682
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
3997
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
3683
3998
|
}
|
|
3684
3999
|
}
|
|
3685
4000
|
declare class Comments {
|
|
@@ -3763,7 +4078,7 @@ declare namespace DatasetItems {
|
|
|
3763
4078
|
/** Override the X-Langfuse-Public-Key header */
|
|
3764
4079
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
3765
4080
|
/** Additional headers to include in requests. */
|
|
3766
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
4081
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
3767
4082
|
}
|
|
3768
4083
|
interface RequestOptions {
|
|
3769
4084
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -3781,7 +4096,7 @@ declare namespace DatasetItems {
|
|
|
3781
4096
|
/** Additional query string parameters to include in the request. */
|
|
3782
4097
|
queryParams?: Record<string, unknown>;
|
|
3783
4098
|
/** Additional headers to include in the request. */
|
|
3784
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
4099
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
3785
4100
|
}
|
|
3786
4101
|
}
|
|
3787
4102
|
declare class DatasetItems {
|
|
@@ -3885,7 +4200,7 @@ declare namespace DatasetRunItems {
|
|
|
3885
4200
|
/** Override the X-Langfuse-Public-Key header */
|
|
3886
4201
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
3887
4202
|
/** Additional headers to include in requests. */
|
|
3888
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
4203
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
3889
4204
|
}
|
|
3890
4205
|
interface RequestOptions {
|
|
3891
4206
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -3903,7 +4218,7 @@ declare namespace DatasetRunItems {
|
|
|
3903
4218
|
/** Additional query string parameters to include in the request. */
|
|
3904
4219
|
queryParams?: Record<string, unknown>;
|
|
3905
4220
|
/** Additional headers to include in the request. */
|
|
3906
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
4221
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
3907
4222
|
}
|
|
3908
4223
|
}
|
|
3909
4224
|
declare class DatasetRunItems {
|
|
@@ -3974,7 +4289,7 @@ declare namespace Datasets {
|
|
|
3974
4289
|
/** Override the X-Langfuse-Public-Key header */
|
|
3975
4290
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
3976
4291
|
/** Additional headers to include in requests. */
|
|
3977
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
4292
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
3978
4293
|
}
|
|
3979
4294
|
interface RequestOptions {
|
|
3980
4295
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -3992,7 +4307,7 @@ declare namespace Datasets {
|
|
|
3992
4307
|
/** Additional query string parameters to include in the request. */
|
|
3993
4308
|
queryParams?: Record<string, unknown>;
|
|
3994
4309
|
/** Additional headers to include in the request. */
|
|
3995
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
4310
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
3996
4311
|
}
|
|
3997
4312
|
}
|
|
3998
4313
|
declare class Datasets {
|
|
@@ -4128,7 +4443,7 @@ declare namespace Health {
|
|
|
4128
4443
|
/** Override the X-Langfuse-Public-Key header */
|
|
4129
4444
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
4130
4445
|
/** Additional headers to include in requests. */
|
|
4131
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
4446
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4132
4447
|
}
|
|
4133
4448
|
interface RequestOptions {
|
|
4134
4449
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -4146,7 +4461,7 @@ declare namespace Health {
|
|
|
4146
4461
|
/** Additional query string parameters to include in the request. */
|
|
4147
4462
|
queryParams?: Record<string, unknown>;
|
|
4148
4463
|
/** Additional headers to include in the request. */
|
|
4149
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
4464
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4150
4465
|
}
|
|
4151
4466
|
}
|
|
4152
4467
|
declare class Health {
|
|
@@ -4190,7 +4505,7 @@ declare namespace Ingestion {
|
|
|
4190
4505
|
/** Override the X-Langfuse-Public-Key header */
|
|
4191
4506
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
4192
4507
|
/** Additional headers to include in requests. */
|
|
4193
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
4508
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4194
4509
|
}
|
|
4195
4510
|
interface RequestOptions {
|
|
4196
4511
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -4208,15 +4523,16 @@ declare namespace Ingestion {
|
|
|
4208
4523
|
/** Additional query string parameters to include in the request. */
|
|
4209
4524
|
queryParams?: Record<string, unknown>;
|
|
4210
4525
|
/** Additional headers to include in the request. */
|
|
4211
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
4526
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4212
4527
|
}
|
|
4213
4528
|
}
|
|
4214
4529
|
declare class Ingestion {
|
|
4215
4530
|
protected readonly _options: Ingestion.Options;
|
|
4216
4531
|
constructor(_options: Ingestion.Options);
|
|
4217
4532
|
/**
|
|
4218
|
-
*
|
|
4219
|
-
*
|
|
4533
|
+
* **Legacy endpoint for batch ingestion for Langfuse Observability.**
|
|
4534
|
+
*
|
|
4535
|
+
* -> Please use the OpenTelemetry endpoint (`/api/public/otel`). Learn more: https://langfuse.com/integrations/native/opentelemetry
|
|
4220
4536
|
*
|
|
4221
4537
|
* Within each batch, there can be multiple events.
|
|
4222
4538
|
* Each event has a type, an id, a timestamp, metadata and a body.
|
|
@@ -4226,7 +4542,7 @@ declare class Ingestion {
|
|
|
4226
4542
|
* I.e. if you want to update a trace, you'd use the same body id, but separate event IDs.
|
|
4227
4543
|
*
|
|
4228
4544
|
* Notes:
|
|
4229
|
-
* - Introduction to data model: https://langfuse.com/docs/
|
|
4545
|
+
* - Introduction to data model: https://langfuse.com/docs/observability/data-model
|
|
4230
4546
|
* - Batch sizes are limited to 3.5 MB in total. You need to adjust the number of events per batch accordingly.
|
|
4231
4547
|
* - 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
4548
|
*
|
|
@@ -4299,6 +4615,93 @@ declare class Ingestion {
|
|
|
4299
4615
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
4300
4616
|
}
|
|
4301
4617
|
|
|
4618
|
+
/**
|
|
4619
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4620
|
+
*/
|
|
4621
|
+
|
|
4622
|
+
declare namespace LlmConnections {
|
|
4623
|
+
interface Options {
|
|
4624
|
+
environment: Supplier<string>;
|
|
4625
|
+
/** Specify a custom URL to connect the client to. */
|
|
4626
|
+
baseUrl?: Supplier<string>;
|
|
4627
|
+
username?: Supplier<string | undefined>;
|
|
4628
|
+
password?: Supplier<string | undefined>;
|
|
4629
|
+
/** Override the X-Langfuse-Sdk-Name header */
|
|
4630
|
+
xLangfuseSdkName?: Supplier<string | undefined>;
|
|
4631
|
+
/** Override the X-Langfuse-Sdk-Version header */
|
|
4632
|
+
xLangfuseSdkVersion?: Supplier<string | undefined>;
|
|
4633
|
+
/** Override the X-Langfuse-Public-Key header */
|
|
4634
|
+
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
4635
|
+
/** Additional headers to include in requests. */
|
|
4636
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4637
|
+
}
|
|
4638
|
+
interface RequestOptions {
|
|
4639
|
+
/** The maximum time to wait for a response in seconds. */
|
|
4640
|
+
timeoutInSeconds?: number;
|
|
4641
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
4642
|
+
maxRetries?: number;
|
|
4643
|
+
/** A hook to abort the request. */
|
|
4644
|
+
abortSignal?: AbortSignal;
|
|
4645
|
+
/** Override the X-Langfuse-Sdk-Name header */
|
|
4646
|
+
xLangfuseSdkName?: string | undefined;
|
|
4647
|
+
/** Override the X-Langfuse-Sdk-Version header */
|
|
4648
|
+
xLangfuseSdkVersion?: string | undefined;
|
|
4649
|
+
/** Override the X-Langfuse-Public-Key header */
|
|
4650
|
+
xLangfusePublicKey?: string | undefined;
|
|
4651
|
+
/** Additional query string parameters to include in the request. */
|
|
4652
|
+
queryParams?: Record<string, unknown>;
|
|
4653
|
+
/** Additional headers to include in the request. */
|
|
4654
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4655
|
+
}
|
|
4656
|
+
}
|
|
4657
|
+
declare class LlmConnections {
|
|
4658
|
+
protected readonly _options: LlmConnections.Options;
|
|
4659
|
+
constructor(_options: LlmConnections.Options);
|
|
4660
|
+
/**
|
|
4661
|
+
* Get all LLM connections in a project
|
|
4662
|
+
*
|
|
4663
|
+
* @param {LangfuseAPI.GetLlmConnectionsRequest} request
|
|
4664
|
+
* @param {LlmConnections.RequestOptions} requestOptions - Request-specific configuration.
|
|
4665
|
+
*
|
|
4666
|
+
* @throws {@link LangfuseAPI.Error}
|
|
4667
|
+
* @throws {@link LangfuseAPI.UnauthorizedError}
|
|
4668
|
+
* @throws {@link LangfuseAPI.AccessDeniedError}
|
|
4669
|
+
* @throws {@link LangfuseAPI.MethodNotAllowedError}
|
|
4670
|
+
* @throws {@link LangfuseAPI.NotFoundError}
|
|
4671
|
+
*
|
|
4672
|
+
* @example
|
|
4673
|
+
* await client.llmConnections.list()
|
|
4674
|
+
*/
|
|
4675
|
+
list(request?: GetLlmConnectionsRequest, requestOptions?: LlmConnections.RequestOptions): HttpResponsePromise<PaginatedLlmConnections>;
|
|
4676
|
+
private __list;
|
|
4677
|
+
/**
|
|
4678
|
+
* Create or update an LLM connection. The connection is upserted on provider.
|
|
4679
|
+
*
|
|
4680
|
+
* @param {LangfuseAPI.UpsertLlmConnectionRequest} request
|
|
4681
|
+
* @param {LlmConnections.RequestOptions} requestOptions - Request-specific configuration.
|
|
4682
|
+
*
|
|
4683
|
+
* @throws {@link LangfuseAPI.Error}
|
|
4684
|
+
* @throws {@link LangfuseAPI.UnauthorizedError}
|
|
4685
|
+
* @throws {@link LangfuseAPI.AccessDeniedError}
|
|
4686
|
+
* @throws {@link LangfuseAPI.MethodNotAllowedError}
|
|
4687
|
+
* @throws {@link LangfuseAPI.NotFoundError}
|
|
4688
|
+
*
|
|
4689
|
+
* @example
|
|
4690
|
+
* await client.llmConnections.upsert({
|
|
4691
|
+
* provider: "provider",
|
|
4692
|
+
* adapter: "anthropic",
|
|
4693
|
+
* secretKey: "secretKey",
|
|
4694
|
+
* baseURL: undefined,
|
|
4695
|
+
* customModels: undefined,
|
|
4696
|
+
* withDefaultModels: undefined,
|
|
4697
|
+
* extraHeaders: undefined
|
|
4698
|
+
* })
|
|
4699
|
+
*/
|
|
4700
|
+
upsert(request: UpsertLlmConnectionRequest, requestOptions?: LlmConnections.RequestOptions): HttpResponsePromise<LlmConnection>;
|
|
4701
|
+
private __upsert;
|
|
4702
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
4703
|
+
}
|
|
4704
|
+
|
|
4302
4705
|
/**
|
|
4303
4706
|
* This file was auto-generated by Fern from our API Definition.
|
|
4304
4707
|
*/
|
|
@@ -4317,7 +4720,7 @@ declare namespace Media {
|
|
|
4317
4720
|
/** Override the X-Langfuse-Public-Key header */
|
|
4318
4721
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
4319
4722
|
/** Additional headers to include in requests. */
|
|
4320
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
4723
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4321
4724
|
}
|
|
4322
4725
|
interface RequestOptions {
|
|
4323
4726
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -4335,7 +4738,7 @@ declare namespace Media {
|
|
|
4335
4738
|
/** Additional query string parameters to include in the request. */
|
|
4336
4739
|
queryParams?: Record<string, unknown>;
|
|
4337
4740
|
/** Additional headers to include in the request. */
|
|
4338
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
4741
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4339
4742
|
}
|
|
4340
4743
|
}
|
|
4341
4744
|
declare class Media {
|
|
@@ -4426,7 +4829,7 @@ declare namespace Metrics {
|
|
|
4426
4829
|
/** Override the X-Langfuse-Public-Key header */
|
|
4427
4830
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
4428
4831
|
/** Additional headers to include in requests. */
|
|
4429
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
4832
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4430
4833
|
}
|
|
4431
4834
|
interface RequestOptions {
|
|
4432
4835
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -4444,7 +4847,7 @@ declare namespace Metrics {
|
|
|
4444
4847
|
/** Additional query string parameters to include in the request. */
|
|
4445
4848
|
queryParams?: Record<string, unknown>;
|
|
4446
4849
|
/** Additional headers to include in the request. */
|
|
4447
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
4850
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4448
4851
|
}
|
|
4449
4852
|
}
|
|
4450
4853
|
declare class Metrics {
|
|
@@ -4490,7 +4893,7 @@ declare namespace Models {
|
|
|
4490
4893
|
/** Override the X-Langfuse-Public-Key header */
|
|
4491
4894
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
4492
4895
|
/** Additional headers to include in requests. */
|
|
4493
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
4896
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4494
4897
|
}
|
|
4495
4898
|
interface RequestOptions {
|
|
4496
4899
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -4508,7 +4911,7 @@ declare namespace Models {
|
|
|
4508
4911
|
/** Additional query string parameters to include in the request. */
|
|
4509
4912
|
queryParams?: Record<string, unknown>;
|
|
4510
4913
|
/** Additional headers to include in the request. */
|
|
4511
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
4914
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4512
4915
|
}
|
|
4513
4916
|
}
|
|
4514
4917
|
declare class Models {
|
|
@@ -4613,7 +5016,7 @@ declare namespace Observations {
|
|
|
4613
5016
|
/** Override the X-Langfuse-Public-Key header */
|
|
4614
5017
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
4615
5018
|
/** Additional headers to include in requests. */
|
|
4616
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
5019
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4617
5020
|
}
|
|
4618
5021
|
interface RequestOptions {
|
|
4619
5022
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -4631,7 +5034,7 @@ declare namespace Observations {
|
|
|
4631
5034
|
/** Additional query string parameters to include in the request. */
|
|
4632
5035
|
queryParams?: Record<string, unknown>;
|
|
4633
5036
|
/** Additional headers to include in the request. */
|
|
4634
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
5037
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4635
5038
|
}
|
|
4636
5039
|
}
|
|
4637
5040
|
declare class Observations {
|
|
@@ -4692,7 +5095,7 @@ declare namespace Organizations {
|
|
|
4692
5095
|
/** Override the X-Langfuse-Public-Key header */
|
|
4693
5096
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
4694
5097
|
/** Additional headers to include in requests. */
|
|
4695
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
5098
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4696
5099
|
}
|
|
4697
5100
|
interface RequestOptions {
|
|
4698
5101
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -4710,7 +5113,7 @@ declare namespace Organizations {
|
|
|
4710
5113
|
/** Additional query string parameters to include in the request. */
|
|
4711
5114
|
queryParams?: Record<string, unknown>;
|
|
4712
5115
|
/** Additional headers to include in the request. */
|
|
4713
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
5116
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4714
5117
|
}
|
|
4715
5118
|
}
|
|
4716
5119
|
declare class Organizations {
|
|
@@ -4752,6 +5155,25 @@ declare class Organizations {
|
|
|
4752
5155
|
*/
|
|
4753
5156
|
updateOrganizationMembership(request: MembershipRequest, requestOptions?: Organizations.RequestOptions): HttpResponsePromise<MembershipResponse>;
|
|
4754
5157
|
private __updateOrganizationMembership;
|
|
5158
|
+
/**
|
|
5159
|
+
* Delete a membership from the organization associated with the API key (requires organization-scoped API key)
|
|
5160
|
+
*
|
|
5161
|
+
* @param {LangfuseAPI.DeleteMembershipRequest} request
|
|
5162
|
+
* @param {Organizations.RequestOptions} requestOptions - Request-specific configuration.
|
|
5163
|
+
*
|
|
5164
|
+
* @throws {@link LangfuseAPI.Error}
|
|
5165
|
+
* @throws {@link LangfuseAPI.UnauthorizedError}
|
|
5166
|
+
* @throws {@link LangfuseAPI.AccessDeniedError}
|
|
5167
|
+
* @throws {@link LangfuseAPI.MethodNotAllowedError}
|
|
5168
|
+
* @throws {@link LangfuseAPI.NotFoundError}
|
|
5169
|
+
*
|
|
5170
|
+
* @example
|
|
5171
|
+
* await client.organizations.deleteOrganizationMembership({
|
|
5172
|
+
* userId: "userId"
|
|
5173
|
+
* })
|
|
5174
|
+
*/
|
|
5175
|
+
deleteOrganizationMembership(request: DeleteMembershipRequest, requestOptions?: Organizations.RequestOptions): HttpResponsePromise<MembershipDeletionResponse>;
|
|
5176
|
+
private __deleteOrganizationMembership;
|
|
4755
5177
|
/**
|
|
4756
5178
|
* Get all memberships for a specific project (requires organization-scoped API key)
|
|
4757
5179
|
*
|
|
@@ -4790,6 +5212,26 @@ declare class Organizations {
|
|
|
4790
5212
|
*/
|
|
4791
5213
|
updateProjectMembership(projectId: string, request: MembershipRequest, requestOptions?: Organizations.RequestOptions): HttpResponsePromise<MembershipResponse>;
|
|
4792
5214
|
private __updateProjectMembership;
|
|
5215
|
+
/**
|
|
5216
|
+
* Delete a membership from a specific project (requires organization-scoped API key). The user must be a member of the organization.
|
|
5217
|
+
*
|
|
5218
|
+
* @param {string} projectId
|
|
5219
|
+
* @param {LangfuseAPI.DeleteMembershipRequest} request
|
|
5220
|
+
* @param {Organizations.RequestOptions} requestOptions - Request-specific configuration.
|
|
5221
|
+
*
|
|
5222
|
+
* @throws {@link LangfuseAPI.Error}
|
|
5223
|
+
* @throws {@link LangfuseAPI.UnauthorizedError}
|
|
5224
|
+
* @throws {@link LangfuseAPI.AccessDeniedError}
|
|
5225
|
+
* @throws {@link LangfuseAPI.MethodNotAllowedError}
|
|
5226
|
+
* @throws {@link LangfuseAPI.NotFoundError}
|
|
5227
|
+
*
|
|
5228
|
+
* @example
|
|
5229
|
+
* await client.organizations.deleteProjectMembership("projectId", {
|
|
5230
|
+
* userId: "userId"
|
|
5231
|
+
* })
|
|
5232
|
+
*/
|
|
5233
|
+
deleteProjectMembership(projectId: string, request: DeleteMembershipRequest, requestOptions?: Organizations.RequestOptions): HttpResponsePromise<MembershipDeletionResponse>;
|
|
5234
|
+
private __deleteProjectMembership;
|
|
4793
5235
|
/**
|
|
4794
5236
|
* Get all projects for the organization associated with the API key (requires organization-scoped API key)
|
|
4795
5237
|
*
|
|
@@ -4827,7 +5269,7 @@ declare namespace Projects {
|
|
|
4827
5269
|
/** Override the X-Langfuse-Public-Key header */
|
|
4828
5270
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
4829
5271
|
/** Additional headers to include in requests. */
|
|
4830
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
5272
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4831
5273
|
}
|
|
4832
5274
|
interface RequestOptions {
|
|
4833
5275
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -4845,7 +5287,7 @@ declare namespace Projects {
|
|
|
4845
5287
|
/** Additional query string parameters to include in the request. */
|
|
4846
5288
|
queryParams?: Record<string, unknown>;
|
|
4847
5289
|
/** Additional headers to include in the request. */
|
|
4848
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
5290
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
4849
5291
|
}
|
|
4850
5292
|
}
|
|
4851
5293
|
declare class Projects {
|
|
@@ -5003,7 +5445,7 @@ declare namespace PromptVersion {
|
|
|
5003
5445
|
/** Override the X-Langfuse-Public-Key header */
|
|
5004
5446
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
5005
5447
|
/** Additional headers to include in requests. */
|
|
5006
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
5448
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5007
5449
|
}
|
|
5008
5450
|
interface RequestOptions {
|
|
5009
5451
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -5021,7 +5463,7 @@ declare namespace PromptVersion {
|
|
|
5021
5463
|
/** Additional query string parameters to include in the request. */
|
|
5022
5464
|
queryParams?: Record<string, unknown>;
|
|
5023
5465
|
/** Additional headers to include in the request. */
|
|
5024
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
5466
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5025
5467
|
}
|
|
5026
5468
|
}
|
|
5027
5469
|
declare class PromptVersion {
|
|
@@ -5069,7 +5511,7 @@ declare namespace Prompts {
|
|
|
5069
5511
|
/** Override the X-Langfuse-Public-Key header */
|
|
5070
5512
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
5071
5513
|
/** Additional headers to include in requests. */
|
|
5072
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
5514
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5073
5515
|
}
|
|
5074
5516
|
interface RequestOptions {
|
|
5075
5517
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -5087,7 +5529,7 @@ declare namespace Prompts {
|
|
|
5087
5529
|
/** Additional query string parameters to include in the request. */
|
|
5088
5530
|
queryParams?: Record<string, unknown>;
|
|
5089
5531
|
/** Additional headers to include in the request. */
|
|
5090
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
5532
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5091
5533
|
}
|
|
5092
5534
|
}
|
|
5093
5535
|
declare class Prompts {
|
|
@@ -5182,7 +5624,7 @@ declare namespace Scim {
|
|
|
5182
5624
|
/** Override the X-Langfuse-Public-Key header */
|
|
5183
5625
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
5184
5626
|
/** Additional headers to include in requests. */
|
|
5185
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
5627
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5186
5628
|
}
|
|
5187
5629
|
interface RequestOptions {
|
|
5188
5630
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -5200,7 +5642,7 @@ declare namespace Scim {
|
|
|
5200
5642
|
/** Additional query string parameters to include in the request. */
|
|
5201
5643
|
queryParams?: Record<string, unknown>;
|
|
5202
5644
|
/** Additional headers to include in the request. */
|
|
5203
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
5645
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5204
5646
|
}
|
|
5205
5647
|
}
|
|
5206
5648
|
declare class Scim {
|
|
@@ -5351,7 +5793,7 @@ declare namespace ScoreConfigs {
|
|
|
5351
5793
|
/** Override the X-Langfuse-Public-Key header */
|
|
5352
5794
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
5353
5795
|
/** Additional headers to include in requests. */
|
|
5354
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
5796
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5355
5797
|
}
|
|
5356
5798
|
interface RequestOptions {
|
|
5357
5799
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -5369,7 +5811,7 @@ declare namespace ScoreConfigs {
|
|
|
5369
5811
|
/** Additional query string parameters to include in the request. */
|
|
5370
5812
|
queryParams?: Record<string, unknown>;
|
|
5371
5813
|
/** Additional headers to include in the request. */
|
|
5372
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
5814
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5373
5815
|
}
|
|
5374
5816
|
}
|
|
5375
5817
|
declare class ScoreConfigs {
|
|
@@ -5454,7 +5896,7 @@ declare namespace ScoreV2 {
|
|
|
5454
5896
|
/** Override the X-Langfuse-Public-Key header */
|
|
5455
5897
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
5456
5898
|
/** Additional headers to include in requests. */
|
|
5457
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
5899
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5458
5900
|
}
|
|
5459
5901
|
interface RequestOptions {
|
|
5460
5902
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -5472,7 +5914,7 @@ declare namespace ScoreV2 {
|
|
|
5472
5914
|
/** Additional query string parameters to include in the request. */
|
|
5473
5915
|
queryParams?: Record<string, unknown>;
|
|
5474
5916
|
/** Additional headers to include in the request. */
|
|
5475
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
5917
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5476
5918
|
}
|
|
5477
5919
|
}
|
|
5478
5920
|
declare class ScoreV2 {
|
|
@@ -5533,7 +5975,7 @@ declare namespace Score {
|
|
|
5533
5975
|
/** Override the X-Langfuse-Public-Key header */
|
|
5534
5976
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
5535
5977
|
/** Additional headers to include in requests. */
|
|
5536
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
5978
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5537
5979
|
}
|
|
5538
5980
|
interface RequestOptions {
|
|
5539
5981
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -5551,7 +5993,7 @@ declare namespace Score {
|
|
|
5551
5993
|
/** Additional query string parameters to include in the request. */
|
|
5552
5994
|
queryParams?: Record<string, unknown>;
|
|
5553
5995
|
/** Additional headers to include in the request. */
|
|
5554
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
5996
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5555
5997
|
}
|
|
5556
5998
|
}
|
|
5557
5999
|
declare class Score {
|
|
@@ -5625,7 +6067,7 @@ declare namespace Sessions {
|
|
|
5625
6067
|
/** Override the X-Langfuse-Public-Key header */
|
|
5626
6068
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
5627
6069
|
/** Additional headers to include in requests. */
|
|
5628
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
6070
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5629
6071
|
}
|
|
5630
6072
|
interface RequestOptions {
|
|
5631
6073
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -5643,7 +6085,7 @@ declare namespace Sessions {
|
|
|
5643
6085
|
/** Additional query string parameters to include in the request. */
|
|
5644
6086
|
queryParams?: Record<string, unknown>;
|
|
5645
6087
|
/** Additional headers to include in the request. */
|
|
5646
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
6088
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5647
6089
|
}
|
|
5648
6090
|
}
|
|
5649
6091
|
declare class Sessions {
|
|
@@ -5704,7 +6146,7 @@ declare namespace Trace {
|
|
|
5704
6146
|
/** Override the X-Langfuse-Public-Key header */
|
|
5705
6147
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
5706
6148
|
/** Additional headers to include in requests. */
|
|
5707
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
6149
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5708
6150
|
}
|
|
5709
6151
|
interface RequestOptions {
|
|
5710
6152
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -5722,7 +6164,7 @@ declare namespace Trace {
|
|
|
5722
6164
|
/** Additional query string parameters to include in the request. */
|
|
5723
6165
|
queryParams?: Record<string, unknown>;
|
|
5724
6166
|
/** Additional headers to include in the request. */
|
|
5725
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
6167
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5726
6168
|
}
|
|
5727
6169
|
}
|
|
5728
6170
|
declare class Trace {
|
|
@@ -5819,7 +6261,7 @@ declare namespace LangfuseAPIClient {
|
|
|
5819
6261
|
/** Override the X-Langfuse-Public-Key header */
|
|
5820
6262
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
5821
6263
|
/** Additional headers to include in requests. */
|
|
5822
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
6264
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5823
6265
|
}
|
|
5824
6266
|
interface RequestOptions {
|
|
5825
6267
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -5837,18 +6279,20 @@ declare namespace LangfuseAPIClient {
|
|
|
5837
6279
|
/** Additional query string parameters to include in the request. */
|
|
5838
6280
|
queryParams?: Record<string, unknown>;
|
|
5839
6281
|
/** Additional headers to include in the request. */
|
|
5840
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
6282
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5841
6283
|
}
|
|
5842
6284
|
}
|
|
5843
6285
|
declare class LangfuseAPIClient {
|
|
5844
6286
|
protected readonly _options: LangfuseAPIClient.Options;
|
|
5845
6287
|
protected _annotationQueues: AnnotationQueues | undefined;
|
|
6288
|
+
protected _blobStorageIntegrations: BlobStorageIntegrations | undefined;
|
|
5846
6289
|
protected _comments: Comments | undefined;
|
|
5847
6290
|
protected _datasetItems: DatasetItems | undefined;
|
|
5848
6291
|
protected _datasetRunItems: DatasetRunItems | undefined;
|
|
5849
6292
|
protected _datasets: Datasets | undefined;
|
|
5850
6293
|
protected _health: Health | undefined;
|
|
5851
6294
|
protected _ingestion: Ingestion | undefined;
|
|
6295
|
+
protected _llmConnections: LlmConnections | undefined;
|
|
5852
6296
|
protected _media: Media | undefined;
|
|
5853
6297
|
protected _metrics: Metrics | undefined;
|
|
5854
6298
|
protected _models: Models | undefined;
|
|
@@ -5865,12 +6309,14 @@ declare class LangfuseAPIClient {
|
|
|
5865
6309
|
protected _trace: Trace | undefined;
|
|
5866
6310
|
constructor(_options: LangfuseAPIClient.Options);
|
|
5867
6311
|
get annotationQueues(): AnnotationQueues;
|
|
6312
|
+
get blobStorageIntegrations(): BlobStorageIntegrations;
|
|
5868
6313
|
get comments(): Comments;
|
|
5869
6314
|
get datasetItems(): DatasetItems;
|
|
5870
6315
|
get datasetRunItems(): DatasetRunItems;
|
|
5871
6316
|
get datasets(): Datasets;
|
|
5872
6317
|
get health(): Health;
|
|
5873
6318
|
get ingestion(): Ingestion;
|
|
6319
|
+
get llmConnections(): LlmConnections;
|
|
5874
6320
|
get media(): Media;
|
|
5875
6321
|
get metrics(): Metrics;
|
|
5876
6322
|
get models(): Models;
|
|
@@ -6050,4 +6496,4 @@ declare class LangfuseMedia {
|
|
|
6050
6496
|
toJSON(): string | null;
|
|
6051
6497
|
}
|
|
6052
6498
|
|
|
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$
|
|
6499
|
+
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 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, 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 UpsertLlmConnectionRequest, type Usage, type UsageDetails, type UserMeta, index$p as annotationQueues, base64Decode, base64Encode, base64ToBytes, index$o as blobStorageIntegrations, bytesToBase64, index$n as comments, index$m as commons, configureGlobalLogger, createLogger, index$l as datasetItems, index$k as datasetRunItems, index$j as datasets, generateUUID, getEnv, getGlobalLogger, index$i as health, index$h as ingestion, index$g as llmConnections, LoggerSingleton as logger, index$f as media, index$e as metrics, index$d as models, index$c as observations, 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 };
|