@elasticdash/core 0.0.5 → 0.0.7
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 +339 -339
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +254 -254
- package/dist/index.d.ts +254 -254
- package/dist/index.mjs +339 -339
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -29,7 +29,7 @@ interface LoggerConfig {
|
|
|
29
29
|
*
|
|
30
30
|
* @example
|
|
31
31
|
* ```typescript
|
|
32
|
-
* const logger = new Logger({ level: LogLevel.DEBUG, prefix: '
|
|
32
|
+
* const logger = new Logger({ level: LogLevel.DEBUG, prefix: 'ElasticDash SDK' });
|
|
33
33
|
* logger.info('Application started');
|
|
34
34
|
* logger.error('An error occurred', error);
|
|
35
35
|
* ```
|
|
@@ -160,7 +160,7 @@ declare const getGlobalLogger: () => Logger;
|
|
|
160
160
|
* ```typescript
|
|
161
161
|
* configureGlobalLogger({
|
|
162
162
|
* level: LogLevel.DEBUG,
|
|
163
|
-
* prefix: '
|
|
163
|
+
* prefix: 'ElasticDash SDK',
|
|
164
164
|
* enableTimestamp: true
|
|
165
165
|
* });
|
|
166
166
|
* ```
|
|
@@ -179,47 +179,47 @@ declare const configureGlobalLogger: (config: LoggerConfig) => void;
|
|
|
179
179
|
declare const resetGlobalLogger: () => void;
|
|
180
180
|
|
|
181
181
|
type ElasticDashEnvVar = "ELASTICDASH_PUBLIC_KEY" | "ELASTICDASH_SECRET_KEY" | "ELASTICDASH_BASE_URL" | "ELASTICDASH_BASEURL" | "ELASTICDASH_TIMEOUT" | "ELASTICDASH_FLUSH_AT" | "ELASTICDASH_FLUSH_INTERVAL" | "ELASTICDASH_TRACING_ENVIRONMENT";
|
|
182
|
-
declare const ELASTICDASH_TRACER_NAME = "
|
|
182
|
+
declare const ELASTICDASH_TRACER_NAME = "elasticdash-sdk";
|
|
183
183
|
declare const ELASTICDASH_SDK_VERSION: string;
|
|
184
184
|
declare const ELASTICDASH_SDK_NAME = "javascript";
|
|
185
185
|
declare const ELASTICDASH_SDK_EXPERIMENT_ENVIRONMENT = "sdk-experiment";
|
|
186
186
|
declare enum LangfuseOtelSpanAttributes {
|
|
187
|
-
TRACE_NAME = "
|
|
187
|
+
TRACE_NAME = "elasticdash.trace.name",
|
|
188
188
|
TRACE_USER_ID = "user.id",
|
|
189
189
|
TRACE_SESSION_ID = "session.id",
|
|
190
|
-
TRACE_TAGS = "
|
|
191
|
-
TRACE_PUBLIC = "
|
|
192
|
-
TRACE_METADATA = "
|
|
193
|
-
TRACE_INPUT = "
|
|
194
|
-
TRACE_OUTPUT = "
|
|
195
|
-
OBSERVATION_TYPE = "
|
|
196
|
-
OBSERVATION_METADATA = "
|
|
197
|
-
OBSERVATION_LEVEL = "
|
|
198
|
-
OBSERVATION_STATUS_MESSAGE = "
|
|
199
|
-
OBSERVATION_INPUT = "
|
|
200
|
-
OBSERVATION_OUTPUT = "
|
|
201
|
-
OBSERVATION_COMPLETION_START_TIME = "
|
|
202
|
-
OBSERVATION_MODEL = "
|
|
203
|
-
OBSERVATION_MODEL_PARAMETERS = "
|
|
204
|
-
OBSERVATION_USAGE_DETAILS = "
|
|
205
|
-
OBSERVATION_COST_DETAILS = "
|
|
206
|
-
OBSERVATION_PROMPT_NAME = "
|
|
207
|
-
OBSERVATION_PROMPT_VERSION = "
|
|
208
|
-
ENVIRONMENT = "
|
|
209
|
-
RELEASE = "
|
|
210
|
-
VERSION = "
|
|
211
|
-
AS_ROOT = "
|
|
212
|
-
EXPERIMENT_ID = "
|
|
213
|
-
EXPERIMENT_NAME = "
|
|
214
|
-
EXPERIMENT_DESCRIPTION = "
|
|
215
|
-
EXPERIMENT_METADATA = "
|
|
216
|
-
EXPERIMENT_DATASET_ID = "
|
|
217
|
-
EXPERIMENT_ITEM_ID = "
|
|
218
|
-
EXPERIMENT_ITEM_EXPECTED_OUTPUT = "
|
|
219
|
-
EXPERIMENT_ITEM_METADATA = "
|
|
220
|
-
EXPERIMENT_ITEM_ROOT_OBSERVATION_ID = "
|
|
221
|
-
TRACE_COMPAT_USER_ID = "
|
|
222
|
-
TRACE_COMPAT_SESSION_ID = "
|
|
190
|
+
TRACE_TAGS = "elasticdash.trace.tags",
|
|
191
|
+
TRACE_PUBLIC = "elasticdash.trace.public",
|
|
192
|
+
TRACE_METADATA = "elasticdash.trace.metadata",
|
|
193
|
+
TRACE_INPUT = "elasticdash.trace.input",
|
|
194
|
+
TRACE_OUTPUT = "elasticdash.trace.output",
|
|
195
|
+
OBSERVATION_TYPE = "elasticdash.observation.type",
|
|
196
|
+
OBSERVATION_METADATA = "elasticdash.observation.metadata",
|
|
197
|
+
OBSERVATION_LEVEL = "elasticdash.observation.level",
|
|
198
|
+
OBSERVATION_STATUS_MESSAGE = "elasticdash.observation.status_message",
|
|
199
|
+
OBSERVATION_INPUT = "elasticdash.observation.input",
|
|
200
|
+
OBSERVATION_OUTPUT = "elasticdash.observation.output",
|
|
201
|
+
OBSERVATION_COMPLETION_START_TIME = "elasticdash.observation.completion_start_time",
|
|
202
|
+
OBSERVATION_MODEL = "elasticdash.observation.model.name",
|
|
203
|
+
OBSERVATION_MODEL_PARAMETERS = "elasticdash.observation.model.parameters",
|
|
204
|
+
OBSERVATION_USAGE_DETAILS = "elasticdash.observation.usage_details",
|
|
205
|
+
OBSERVATION_COST_DETAILS = "elasticdash.observation.cost_details",
|
|
206
|
+
OBSERVATION_PROMPT_NAME = "elasticdash.observation.prompt.name",
|
|
207
|
+
OBSERVATION_PROMPT_VERSION = "elasticdash.observation.prompt.version",
|
|
208
|
+
ENVIRONMENT = "elasticdash.environment",
|
|
209
|
+
RELEASE = "elasticdash.release",
|
|
210
|
+
VERSION = "elasticdash.version",
|
|
211
|
+
AS_ROOT = "elasticdash.internal.as_root",
|
|
212
|
+
EXPERIMENT_ID = "elasticdash.experiment.id",
|
|
213
|
+
EXPERIMENT_NAME = "elasticdash.experiment.name",
|
|
214
|
+
EXPERIMENT_DESCRIPTION = "elasticdash.experiment.description",
|
|
215
|
+
EXPERIMENT_METADATA = "elasticdash.experiment.metadata",
|
|
216
|
+
EXPERIMENT_DATASET_ID = "elasticdash.experiment.dataset.id",
|
|
217
|
+
EXPERIMENT_ITEM_ID = "elasticdash.experiment.item.id",
|
|
218
|
+
EXPERIMENT_ITEM_EXPECTED_OUTPUT = "elasticdash.experiment.item.expected_output",
|
|
219
|
+
EXPERIMENT_ITEM_METADATA = "elasticdash.experiment.item.metadata",
|
|
220
|
+
EXPERIMENT_ITEM_ROOT_OBSERVATION_ID = "elasticdash.experiment.item.root_observation_id",
|
|
221
|
+
TRACE_COMPAT_USER_ID = "elasticdash.user.id",
|
|
222
|
+
TRACE_COMPAT_SESSION_ID = "elasticdash.session.id"
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
/**
|
|
@@ -538,7 +538,7 @@ interface CreateCommentRequest {
|
|
|
538
538
|
* This file was auto-generated by Fern from our API Definition.
|
|
539
539
|
*/
|
|
540
540
|
interface CreateCommentResponse {
|
|
541
|
-
/** The id of the created object in
|
|
541
|
+
/** The id of the created object in ElasticDash */
|
|
542
542
|
id: string;
|
|
543
543
|
}
|
|
544
544
|
|
|
@@ -607,7 +607,7 @@ interface Trace$1 {
|
|
|
607
607
|
tags: string[];
|
|
608
608
|
/** Public traces are accessible via url without login */
|
|
609
609
|
public: boolean;
|
|
610
|
-
/** The environment from which this trace originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with '
|
|
610
|
+
/** The environment from which this trace originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'elasticdash'. */
|
|
611
611
|
environment: string;
|
|
612
612
|
}
|
|
613
613
|
|
|
@@ -616,7 +616,7 @@ interface Trace$1 {
|
|
|
616
616
|
*/
|
|
617
617
|
|
|
618
618
|
interface TraceWithDetails extends Trace$1 {
|
|
619
|
-
/** Path of trace in
|
|
619
|
+
/** Path of trace in ElasticDash UI */
|
|
620
620
|
htmlPath: string;
|
|
621
621
|
/** Latency of trace in seconds */
|
|
622
622
|
latency?: number | null;
|
|
@@ -633,7 +633,7 @@ interface TraceWithDetails extends Trace$1 {
|
|
|
633
633
|
*/
|
|
634
634
|
|
|
635
635
|
interface TraceWithFullDetails extends Trace$1 {
|
|
636
|
-
/** Path of trace in
|
|
636
|
+
/** Path of trace in ElasticDash UI */
|
|
637
637
|
htmlPath: string;
|
|
638
638
|
/** Latency of trace in seconds */
|
|
639
639
|
latency?: number | null;
|
|
@@ -709,7 +709,7 @@ interface Observation {
|
|
|
709
709
|
usageDetails: Record<string, number>;
|
|
710
710
|
/** The cost details of the observation. Key is the name of the cost metric, value is the cost in USD. The total key is the sum of all (non-total) cost metrics or the total value ingested. */
|
|
711
711
|
costDetails: Record<string, number>;
|
|
712
|
-
/** The environment from which this observation originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with '
|
|
712
|
+
/** The environment from which this observation originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'elasticdash'. */
|
|
713
713
|
environment: string;
|
|
714
714
|
}
|
|
715
715
|
|
|
@@ -823,7 +823,7 @@ interface BaseScoreV1 {
|
|
|
823
823
|
configId: string | null;
|
|
824
824
|
/** The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue. */
|
|
825
825
|
queueId: string | null;
|
|
826
|
-
/** The environment from which this score originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with '
|
|
826
|
+
/** The environment from which this score originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'elasticdash'. */
|
|
827
827
|
environment: string;
|
|
828
828
|
}
|
|
829
829
|
|
|
@@ -913,7 +913,7 @@ interface BaseScore {
|
|
|
913
913
|
configId: string | null;
|
|
914
914
|
/** The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue. */
|
|
915
915
|
queueId: string | null;
|
|
916
|
-
/** The environment from which this score originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with '
|
|
916
|
+
/** The environment from which this score originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'elasticdash'. */
|
|
917
917
|
environment: string;
|
|
918
918
|
}
|
|
919
919
|
|
|
@@ -1350,7 +1350,7 @@ declare const PricingTierOperator: {
|
|
|
1350
1350
|
* This file was auto-generated by Fern from our API Definition.
|
|
1351
1351
|
*/
|
|
1352
1352
|
/**
|
|
1353
|
-
* Unit of usage in
|
|
1353
|
+
* Unit of usage in ElasticDash
|
|
1354
1354
|
*/
|
|
1355
1355
|
type ModelUsageUnit = "CHARACTERS" | "TOKENS" | "MILLISECONDS" | "SECONDS" | "IMAGES" | "REQUESTS";
|
|
1356
1356
|
declare const ModelUsageUnit: {
|
|
@@ -1816,7 +1816,7 @@ declare namespace index$m {
|
|
|
1816
1816
|
* }
|
|
1817
1817
|
*/
|
|
1818
1818
|
interface HealthResponse {
|
|
1819
|
-
/**
|
|
1819
|
+
/** ElasticDash server version */
|
|
1820
1820
|
version: string;
|
|
1821
1821
|
status: string;
|
|
1822
1822
|
}
|
|
@@ -1863,7 +1863,7 @@ IngestionEvent.TraceCreate
|
|
|
1863
1863
|
* Creates an event. */
|
|
1864
1864
|
| IngestionEvent.EventCreate
|
|
1865
1865
|
/**
|
|
1866
|
-
*
|
|
1866
|
+
* ElasticDash SDKs only, used for debugging purposes. */
|
|
1867
1867
|
| IngestionEvent.SdkLog
|
|
1868
1868
|
/**
|
|
1869
1869
|
* Deprecated event type */
|
|
@@ -2176,7 +2176,7 @@ interface BaseEvent {
|
|
|
2176
2176
|
id: string;
|
|
2177
2177
|
/** Datetime (ISO 8601) of event creation in client. Should be as close to actual event creation in client as possible, this timestamp will be used for ordering of events in future release. Resolution: milliseconds (required), microseconds (optimal). */
|
|
2178
2178
|
timestamp: string;
|
|
2179
|
-
/** Optional. Metadata field used by the
|
|
2179
|
+
/** Optional. Metadata field used by the ElasticDash SDKs for debugging. */
|
|
2180
2180
|
metadata?: unknown;
|
|
2181
2181
|
}
|
|
2182
2182
|
|
|
@@ -2384,7 +2384,7 @@ type UsageDetails = Record<string, number> | OpenAiCompletionUsageSchema | OpenA
|
|
|
2384
2384
|
interface IngestionRequest {
|
|
2385
2385
|
/** Batch of tracing events to be ingested. Discriminated by attribute `type`. */
|
|
2386
2386
|
batch: IngestionEvent[];
|
|
2387
|
-
/** Optional. Metadata field used by the
|
|
2387
|
+
/** Optional. Metadata field used by the ElasticDash SDKs for debugging. */
|
|
2388
2388
|
metadata?: unknown;
|
|
2389
2389
|
}
|
|
2390
2390
|
|
|
@@ -2528,7 +2528,7 @@ declare namespace index$j {
|
|
|
2528
2528
|
* This file was auto-generated by Fern from our API Definition.
|
|
2529
2529
|
*/
|
|
2530
2530
|
interface GetMediaResponse {
|
|
2531
|
-
/** The unique
|
|
2531
|
+
/** The unique elasticdash identifier of a media record */
|
|
2532
2532
|
mediaId: string;
|
|
2533
2533
|
/** The MIME type of the media record */
|
|
2534
2534
|
contentType: string;
|
|
@@ -2580,7 +2580,7 @@ interface GetMediaUploadUrlRequest {
|
|
|
2580
2580
|
interface GetMediaUploadUrlResponse {
|
|
2581
2581
|
/** The presigned upload URL. If the asset is already uploaded, this will be null */
|
|
2582
2582
|
uploadUrl?: string;
|
|
2583
|
-
/** The unique
|
|
2583
|
+
/** The unique elasticdash identifier of a media record */
|
|
2584
2584
|
mediaId: string;
|
|
2585
2585
|
}
|
|
2586
2586
|
|
|
@@ -3296,7 +3296,7 @@ interface OtelSpan {
|
|
|
3296
3296
|
startTimeUnixNano?: unknown;
|
|
3297
3297
|
/** End time in nanoseconds since Unix epoch */
|
|
3298
3298
|
endTimeUnixNano?: unknown;
|
|
3299
|
-
/** Span attributes including
|
|
3299
|
+
/** Span attributes including ElasticDash-specific attributes (elasticdash.observation.*) */
|
|
3300
3300
|
attributes?: OtelAttribute[];
|
|
3301
3301
|
/** Span status object */
|
|
3302
3302
|
status?: unknown;
|
|
@@ -3310,7 +3310,7 @@ interface OtelSpan {
|
|
|
3310
3310
|
* Key-value attribute pair for resources, scopes, or spans
|
|
3311
3311
|
*/
|
|
3312
3312
|
interface OtelAttribute {
|
|
3313
|
-
/** Attribute key (e.g., "service.name", "
|
|
3313
|
+
/** Attribute key (e.g., "service.name", "elasticdash.observation.type") */
|
|
3314
3314
|
key?: string;
|
|
3315
3315
|
/** Attribute value */
|
|
3316
3316
|
value?: OtelAttributeValue;
|
|
@@ -3365,7 +3365,7 @@ interface OtelTraceResponse {
|
|
|
3365
3365
|
* },
|
|
3366
3366
|
* scopeSpans: [{
|
|
3367
3367
|
* scope: {
|
|
3368
|
-
* name: "
|
|
3368
|
+
* name: "elasticdash-sdk",
|
|
3369
3369
|
* version: "2.60.3"
|
|
3370
3370
|
* },
|
|
3371
3371
|
* spans: [{
|
|
@@ -3376,7 +3376,7 @@ interface OtelTraceResponse {
|
|
|
3376
3376
|
* startTimeUnixNano: "1747872000000000000",
|
|
3377
3377
|
* endTimeUnixNano: "1747872001000000000",
|
|
3378
3378
|
* attributes: [{
|
|
3379
|
-
* key: "
|
|
3379
|
+
* key: "elasticdash.observation.type",
|
|
3380
3380
|
* value: {
|
|
3381
3381
|
* stringValue: "generation"
|
|
3382
3382
|
* }
|
|
@@ -4171,7 +4171,7 @@ interface CreateScoreConfigRequest {
|
|
|
4171
4171
|
minValue?: number;
|
|
4172
4172
|
/** Configure a maximum value for numerical scores. If not set, the maximum value defaults to +∞ */
|
|
4173
4173
|
maxValue?: number;
|
|
4174
|
-
/** Description is shown across the
|
|
4174
|
+
/** Description is shown across the ElasticDash UI and can be used to e.g. explain the config categories in detail, why a numeric range was set, or provide additional context on config name or usage */
|
|
4175
4175
|
description?: string;
|
|
4176
4176
|
}
|
|
4177
4177
|
|
|
@@ -4190,7 +4190,7 @@ interface UpdateScoreConfigRequest {
|
|
|
4190
4190
|
minValue?: number;
|
|
4191
4191
|
/** Configure a maximum value for numerical scores. If not set, the maximum value defaults to +∞ */
|
|
4192
4192
|
maxValue?: number;
|
|
4193
|
-
/** Description is shown across the
|
|
4193
|
+
/** Description is shown across the ElasticDash UI and can be used to e.g. explain the config categories in detail, why a numeric range was set, or provide additional context on config name or usage */
|
|
4194
4194
|
description?: string;
|
|
4195
4195
|
}
|
|
4196
4196
|
|
|
@@ -4412,13 +4412,13 @@ interface CreateScoreRequest {
|
|
|
4412
4412
|
value: CreateScoreValue;
|
|
4413
4413
|
comment?: string;
|
|
4414
4414
|
metadata?: Record<string, unknown>;
|
|
4415
|
-
/** The environment of the score. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with '
|
|
4415
|
+
/** The environment of the score. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'elasticdash'. */
|
|
4416
4416
|
environment?: string;
|
|
4417
4417
|
/** The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue. */
|
|
4418
4418
|
queueId?: string;
|
|
4419
4419
|
/** The data type of the score. When passing a configId this field is inferred. Otherwise, this field must be passed or will default to numeric. */
|
|
4420
4420
|
dataType?: ScoreDataType;
|
|
4421
|
-
/** Reference a score config on a score. The unique
|
|
4421
|
+
/** Reference a score config on a score. The unique elasticdash identifier of a score config. When passing this field, the dataType and stringValue fields are automatically populated. */
|
|
4422
4422
|
configId?: string;
|
|
4423
4423
|
}
|
|
4424
4424
|
|
|
@@ -4426,7 +4426,7 @@ interface CreateScoreRequest {
|
|
|
4426
4426
|
* This file was auto-generated by Fern from our API Definition.
|
|
4427
4427
|
*/
|
|
4428
4428
|
interface CreateScoreResponse {
|
|
4429
|
-
/** The id of the created object in
|
|
4429
|
+
/** The id of the created object in ElasticDash */
|
|
4430
4430
|
id: string;
|
|
4431
4431
|
}
|
|
4432
4432
|
|
|
@@ -4692,7 +4692,7 @@ declare namespace index$1 {
|
|
|
4692
4692
|
* }
|
|
4693
4693
|
*/
|
|
4694
4694
|
interface UpdatePromptRequest {
|
|
4695
|
-
/** New labels for the prompt version. Labels are unique across versions. The "latest" label is reserved and managed by
|
|
4695
|
+
/** New labels for the prompt version. Labels are unique across versions. The "latest" label is reserved and managed by ElasticDash. */
|
|
4696
4696
|
newLabels: string[];
|
|
4697
4697
|
}
|
|
4698
4698
|
|
|
@@ -4712,11 +4712,11 @@ declare namespace AnnotationQueues {
|
|
|
4712
4712
|
baseUrl?: Supplier<string>;
|
|
4713
4713
|
username?: Supplier<string | undefined>;
|
|
4714
4714
|
password?: Supplier<string | undefined>;
|
|
4715
|
-
/** Override the X-
|
|
4715
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
4716
4716
|
xLangfuseSdkName?: Supplier<string | undefined>;
|
|
4717
|
-
/** Override the X-
|
|
4717
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
4718
4718
|
xLangfuseSdkVersion?: Supplier<string | undefined>;
|
|
4719
|
-
/** Override the X-
|
|
4719
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
4720
4720
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
4721
4721
|
/** Additional headers to include in requests. */
|
|
4722
4722
|
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
@@ -4728,11 +4728,11 @@ declare namespace AnnotationQueues {
|
|
|
4728
4728
|
maxRetries?: number;
|
|
4729
4729
|
/** A hook to abort the request. */
|
|
4730
4730
|
abortSignal?: AbortSignal;
|
|
4731
|
-
/** Override the X-
|
|
4731
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
4732
4732
|
xLangfuseSdkName?: string | undefined;
|
|
4733
|
-
/** Override the X-
|
|
4733
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
4734
4734
|
xLangfuseSdkVersion?: string | undefined;
|
|
4735
|
-
/** Override the X-
|
|
4735
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
4736
4736
|
xLangfusePublicKey?: string | undefined;
|
|
4737
4737
|
/** Additional query string parameters to include in the request. */
|
|
4738
4738
|
queryParams?: Record<string, unknown>;
|
|
@@ -4949,11 +4949,11 @@ declare namespace BlobStorageIntegrations {
|
|
|
4949
4949
|
baseUrl?: Supplier<string>;
|
|
4950
4950
|
username?: Supplier<string | undefined>;
|
|
4951
4951
|
password?: Supplier<string | undefined>;
|
|
4952
|
-
/** Override the X-
|
|
4952
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
4953
4953
|
xLangfuseSdkName?: Supplier<string | undefined>;
|
|
4954
|
-
/** Override the X-
|
|
4954
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
4955
4955
|
xLangfuseSdkVersion?: Supplier<string | undefined>;
|
|
4956
|
-
/** Override the X-
|
|
4956
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
4957
4957
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
4958
4958
|
/** Additional headers to include in requests. */
|
|
4959
4959
|
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
@@ -4965,11 +4965,11 @@ declare namespace BlobStorageIntegrations {
|
|
|
4965
4965
|
maxRetries?: number;
|
|
4966
4966
|
/** A hook to abort the request. */
|
|
4967
4967
|
abortSignal?: AbortSignal;
|
|
4968
|
-
/** Override the X-
|
|
4968
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
4969
4969
|
xLangfuseSdkName?: string | undefined;
|
|
4970
|
-
/** Override the X-
|
|
4970
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
4971
4971
|
xLangfuseSdkVersion?: string | undefined;
|
|
4972
|
-
/** Override the X-
|
|
4972
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
4973
4973
|
xLangfusePublicKey?: string | undefined;
|
|
4974
4974
|
/** Additional query string parameters to include in the request. */
|
|
4975
4975
|
queryParams?: Record<string, unknown>;
|
|
@@ -5059,11 +5059,11 @@ declare namespace Comments {
|
|
|
5059
5059
|
baseUrl?: Supplier<string>;
|
|
5060
5060
|
username?: Supplier<string | undefined>;
|
|
5061
5061
|
password?: Supplier<string | undefined>;
|
|
5062
|
-
/** Override the X-
|
|
5062
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
5063
5063
|
xLangfuseSdkName?: Supplier<string | undefined>;
|
|
5064
|
-
/** Override the X-
|
|
5064
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
5065
5065
|
xLangfuseSdkVersion?: Supplier<string | undefined>;
|
|
5066
|
-
/** Override the X-
|
|
5066
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
5067
5067
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
5068
5068
|
/** Additional headers to include in requests. */
|
|
5069
5069
|
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
@@ -5075,11 +5075,11 @@ declare namespace Comments {
|
|
|
5075
5075
|
maxRetries?: number;
|
|
5076
5076
|
/** A hook to abort the request. */
|
|
5077
5077
|
abortSignal?: AbortSignal;
|
|
5078
|
-
/** Override the X-
|
|
5078
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
5079
5079
|
xLangfuseSdkName?: string | undefined;
|
|
5080
|
-
/** Override the X-
|
|
5080
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
5081
5081
|
xLangfuseSdkVersion?: string | undefined;
|
|
5082
|
-
/** Override the X-
|
|
5082
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
5083
5083
|
xLangfusePublicKey?: string | undefined;
|
|
5084
5084
|
/** Additional query string parameters to include in the request. */
|
|
5085
5085
|
queryParams?: Record<string, unknown>;
|
|
@@ -5133,7 +5133,7 @@ declare class Comments {
|
|
|
5133
5133
|
/**
|
|
5134
5134
|
* Get a comment by id
|
|
5135
5135
|
*
|
|
5136
|
-
* @param {string} commentId - The unique
|
|
5136
|
+
* @param {string} commentId - The unique elasticdash identifier of a comment
|
|
5137
5137
|
* @param {Comments.RequestOptions} requestOptions - Request-specific configuration.
|
|
5138
5138
|
*
|
|
5139
5139
|
* @throws {@link LangfuseAPI.Error}
|
|
@@ -5161,11 +5161,11 @@ declare namespace DatasetItems {
|
|
|
5161
5161
|
baseUrl?: Supplier<string>;
|
|
5162
5162
|
username?: Supplier<string | undefined>;
|
|
5163
5163
|
password?: Supplier<string | undefined>;
|
|
5164
|
-
/** Override the X-
|
|
5164
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
5165
5165
|
xLangfuseSdkName?: Supplier<string | undefined>;
|
|
5166
|
-
/** Override the X-
|
|
5166
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
5167
5167
|
xLangfuseSdkVersion?: Supplier<string | undefined>;
|
|
5168
|
-
/** Override the X-
|
|
5168
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
5169
5169
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
5170
5170
|
/** Additional headers to include in requests. */
|
|
5171
5171
|
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
@@ -5177,11 +5177,11 @@ declare namespace DatasetItems {
|
|
|
5177
5177
|
maxRetries?: number;
|
|
5178
5178
|
/** A hook to abort the request. */
|
|
5179
5179
|
abortSignal?: AbortSignal;
|
|
5180
|
-
/** Override the X-
|
|
5180
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
5181
5181
|
xLangfuseSdkName?: string | undefined;
|
|
5182
|
-
/** Override the X-
|
|
5182
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
5183
5183
|
xLangfuseSdkVersion?: string | undefined;
|
|
5184
|
-
/** Override the X-
|
|
5184
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
5185
5185
|
xLangfusePublicKey?: string | undefined;
|
|
5186
5186
|
/** Additional query string parameters to include in the request. */
|
|
5187
5187
|
queryParams?: Record<string, unknown>;
|
|
@@ -5283,11 +5283,11 @@ declare namespace DatasetRunItems {
|
|
|
5283
5283
|
baseUrl?: Supplier<string>;
|
|
5284
5284
|
username?: Supplier<string | undefined>;
|
|
5285
5285
|
password?: Supplier<string | undefined>;
|
|
5286
|
-
/** Override the X-
|
|
5286
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
5287
5287
|
xLangfuseSdkName?: Supplier<string | undefined>;
|
|
5288
|
-
/** Override the X-
|
|
5288
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
5289
5289
|
xLangfuseSdkVersion?: Supplier<string | undefined>;
|
|
5290
|
-
/** Override the X-
|
|
5290
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
5291
5291
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
5292
5292
|
/** Additional headers to include in requests. */
|
|
5293
5293
|
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
@@ -5299,11 +5299,11 @@ declare namespace DatasetRunItems {
|
|
|
5299
5299
|
maxRetries?: number;
|
|
5300
5300
|
/** A hook to abort the request. */
|
|
5301
5301
|
abortSignal?: AbortSignal;
|
|
5302
|
-
/** Override the X-
|
|
5302
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
5303
5303
|
xLangfuseSdkName?: string | undefined;
|
|
5304
|
-
/** Override the X-
|
|
5304
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
5305
5305
|
xLangfuseSdkVersion?: string | undefined;
|
|
5306
|
-
/** Override the X-
|
|
5306
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
5307
5307
|
xLangfusePublicKey?: string | undefined;
|
|
5308
5308
|
/** Additional query string parameters to include in the request. */
|
|
5309
5309
|
queryParams?: Record<string, unknown>;
|
|
@@ -5372,11 +5372,11 @@ declare namespace Datasets {
|
|
|
5372
5372
|
baseUrl?: Supplier<string>;
|
|
5373
5373
|
username?: Supplier<string | undefined>;
|
|
5374
5374
|
password?: Supplier<string | undefined>;
|
|
5375
|
-
/** Override the X-
|
|
5375
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
5376
5376
|
xLangfuseSdkName?: Supplier<string | undefined>;
|
|
5377
|
-
/** Override the X-
|
|
5377
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
5378
5378
|
xLangfuseSdkVersion?: Supplier<string | undefined>;
|
|
5379
|
-
/** Override the X-
|
|
5379
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
5380
5380
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
5381
5381
|
/** Additional headers to include in requests. */
|
|
5382
5382
|
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
@@ -5388,11 +5388,11 @@ declare namespace Datasets {
|
|
|
5388
5388
|
maxRetries?: number;
|
|
5389
5389
|
/** A hook to abort the request. */
|
|
5390
5390
|
abortSignal?: AbortSignal;
|
|
5391
|
-
/** Override the X-
|
|
5391
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
5392
5392
|
xLangfuseSdkName?: string | undefined;
|
|
5393
|
-
/** Override the X-
|
|
5393
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
5394
5394
|
xLangfuseSdkVersion?: string | undefined;
|
|
5395
|
-
/** Override the X-
|
|
5395
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
5396
5396
|
xLangfusePublicKey?: string | undefined;
|
|
5397
5397
|
/** Additional query string parameters to include in the request. */
|
|
5398
5398
|
queryParams?: Record<string, unknown>;
|
|
@@ -5528,11 +5528,11 @@ declare namespace Health {
|
|
|
5528
5528
|
baseUrl?: Supplier<string>;
|
|
5529
5529
|
username?: Supplier<string | undefined>;
|
|
5530
5530
|
password?: Supplier<string | undefined>;
|
|
5531
|
-
/** Override the X-
|
|
5531
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
5532
5532
|
xLangfuseSdkName?: Supplier<string | undefined>;
|
|
5533
|
-
/** Override the X-
|
|
5533
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
5534
5534
|
xLangfuseSdkVersion?: Supplier<string | undefined>;
|
|
5535
|
-
/** Override the X-
|
|
5535
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
5536
5536
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
5537
5537
|
/** Additional headers to include in requests. */
|
|
5538
5538
|
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
@@ -5544,11 +5544,11 @@ declare namespace Health {
|
|
|
5544
5544
|
maxRetries?: number;
|
|
5545
5545
|
/** A hook to abort the request. */
|
|
5546
5546
|
abortSignal?: AbortSignal;
|
|
5547
|
-
/** Override the X-
|
|
5547
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
5548
5548
|
xLangfuseSdkName?: string | undefined;
|
|
5549
|
-
/** Override the X-
|
|
5549
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
5550
5550
|
xLangfuseSdkVersion?: string | undefined;
|
|
5551
|
-
/** Override the X-
|
|
5551
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
5552
5552
|
xLangfusePublicKey?: string | undefined;
|
|
5553
5553
|
/** Additional query string parameters to include in the request. */
|
|
5554
5554
|
queryParams?: Record<string, unknown>;
|
|
@@ -5590,11 +5590,11 @@ declare namespace Ingestion {
|
|
|
5590
5590
|
baseUrl?: Supplier<string>;
|
|
5591
5591
|
username?: Supplier<string | undefined>;
|
|
5592
5592
|
password?: Supplier<string | undefined>;
|
|
5593
|
-
/** Override the X-
|
|
5593
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
5594
5594
|
xLangfuseSdkName?: Supplier<string | undefined>;
|
|
5595
|
-
/** Override the X-
|
|
5595
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
5596
5596
|
xLangfuseSdkVersion?: Supplier<string | undefined>;
|
|
5597
|
-
/** Override the X-
|
|
5597
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
5598
5598
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
5599
5599
|
/** Additional headers to include in requests. */
|
|
5600
5600
|
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
@@ -5606,11 +5606,11 @@ declare namespace Ingestion {
|
|
|
5606
5606
|
maxRetries?: number;
|
|
5607
5607
|
/** A hook to abort the request. */
|
|
5608
5608
|
abortSignal?: AbortSignal;
|
|
5609
|
-
/** Override the X-
|
|
5609
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
5610
5610
|
xLangfuseSdkName?: string | undefined;
|
|
5611
|
-
/** Override the X-
|
|
5611
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
5612
5612
|
xLangfuseSdkVersion?: string | undefined;
|
|
5613
|
-
/** Override the X-
|
|
5613
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
5614
5614
|
xLangfusePublicKey?: string | undefined;
|
|
5615
5615
|
/** Additional query string parameters to include in the request. */
|
|
5616
5616
|
queryParams?: Record<string, unknown>;
|
|
@@ -5622,19 +5622,19 @@ declare class Ingestion {
|
|
|
5622
5622
|
protected readonly _options: Ingestion.Options;
|
|
5623
5623
|
constructor(_options: Ingestion.Options);
|
|
5624
5624
|
/**
|
|
5625
|
-
* **Legacy endpoint for batch ingestion for
|
|
5625
|
+
* **Legacy endpoint for batch ingestion for ElasticDash Observability.**
|
|
5626
5626
|
*
|
|
5627
|
-
* -> Please use the OpenTelemetry endpoint (`/api/public/otel/v1/traces`). Learn more: https://
|
|
5627
|
+
* -> Please use the OpenTelemetry endpoint (`/api/public/otel/v1/traces`). Learn more: https://elasticdash.com/integrations/native/opentelemetry
|
|
5628
5628
|
*
|
|
5629
5629
|
* Within each batch, there can be multiple events.
|
|
5630
5630
|
* Each event has a type, an id, a timestamp, metadata and a body.
|
|
5631
5631
|
* Internally, we refer to this as the "event envelope" as it tells us something about the event but not the trace.
|
|
5632
5632
|
* We use the event id within this envelope to deduplicate messages to avoid processing the same event twice, i.e. the event id should be unique per request.
|
|
5633
|
-
* The event.body.id is the ID of the actual trace and will be used for updates and will be visible within the
|
|
5633
|
+
* The event.body.id is the ID of the actual trace and will be used for updates and will be visible within the ElasticDash App.
|
|
5634
5634
|
* I.e. if you want to update a trace, you'd use the same body id, but separate event IDs.
|
|
5635
5635
|
*
|
|
5636
5636
|
* Notes:
|
|
5637
|
-
* - Introduction to data model: https://
|
|
5637
|
+
* - Introduction to data model: https://elasticdash.com/docs/observability/data-model
|
|
5638
5638
|
* - Batch sizes are limited to 3.5 MB in total. You need to adjust the number of events per batch accordingly.
|
|
5639
5639
|
* - 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.
|
|
5640
5640
|
*
|
|
@@ -5718,11 +5718,11 @@ declare namespace LlmConnections {
|
|
|
5718
5718
|
baseUrl?: Supplier<string>;
|
|
5719
5719
|
username?: Supplier<string | undefined>;
|
|
5720
5720
|
password?: Supplier<string | undefined>;
|
|
5721
|
-
/** Override the X-
|
|
5721
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
5722
5722
|
xLangfuseSdkName?: Supplier<string | undefined>;
|
|
5723
|
-
/** Override the X-
|
|
5723
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
5724
5724
|
xLangfuseSdkVersion?: Supplier<string | undefined>;
|
|
5725
|
-
/** Override the X-
|
|
5725
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
5726
5726
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
5727
5727
|
/** Additional headers to include in requests. */
|
|
5728
5728
|
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
@@ -5734,11 +5734,11 @@ declare namespace LlmConnections {
|
|
|
5734
5734
|
maxRetries?: number;
|
|
5735
5735
|
/** A hook to abort the request. */
|
|
5736
5736
|
abortSignal?: AbortSignal;
|
|
5737
|
-
/** Override the X-
|
|
5737
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
5738
5738
|
xLangfuseSdkName?: string | undefined;
|
|
5739
|
-
/** Override the X-
|
|
5739
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
5740
5740
|
xLangfuseSdkVersion?: string | undefined;
|
|
5741
|
-
/** Override the X-
|
|
5741
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
5742
5742
|
xLangfusePublicKey?: string | undefined;
|
|
5743
5743
|
/** Additional query string parameters to include in the request. */
|
|
5744
5744
|
queryParams?: Record<string, unknown>;
|
|
@@ -5806,11 +5806,11 @@ declare namespace Media {
|
|
|
5806
5806
|
baseUrl?: Supplier<string>;
|
|
5807
5807
|
username?: Supplier<string | undefined>;
|
|
5808
5808
|
password?: Supplier<string | undefined>;
|
|
5809
|
-
/** Override the X-
|
|
5809
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
5810
5810
|
xLangfuseSdkName?: Supplier<string | undefined>;
|
|
5811
|
-
/** Override the X-
|
|
5811
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
5812
5812
|
xLangfuseSdkVersion?: Supplier<string | undefined>;
|
|
5813
|
-
/** Override the X-
|
|
5813
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
5814
5814
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
5815
5815
|
/** Additional headers to include in requests. */
|
|
5816
5816
|
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
@@ -5822,11 +5822,11 @@ declare namespace Media {
|
|
|
5822
5822
|
maxRetries?: number;
|
|
5823
5823
|
/** A hook to abort the request. */
|
|
5824
5824
|
abortSignal?: AbortSignal;
|
|
5825
|
-
/** Override the X-
|
|
5825
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
5826
5826
|
xLangfuseSdkName?: string | undefined;
|
|
5827
|
-
/** Override the X-
|
|
5827
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
5828
5828
|
xLangfuseSdkVersion?: string | undefined;
|
|
5829
|
-
/** Override the X-
|
|
5829
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
5830
5830
|
xLangfusePublicKey?: string | undefined;
|
|
5831
5831
|
/** Additional query string parameters to include in the request. */
|
|
5832
5832
|
queryParams?: Record<string, unknown>;
|
|
@@ -5840,7 +5840,7 @@ declare class Media {
|
|
|
5840
5840
|
/**
|
|
5841
5841
|
* Get a media record
|
|
5842
5842
|
*
|
|
5843
|
-
* @param {string} mediaId - The unique
|
|
5843
|
+
* @param {string} mediaId - The unique elasticdash identifier of a media record
|
|
5844
5844
|
* @param {Media.RequestOptions} requestOptions - Request-specific configuration.
|
|
5845
5845
|
*
|
|
5846
5846
|
* @throws {@link LangfuseAPI.Error}
|
|
@@ -5857,7 +5857,7 @@ declare class Media {
|
|
|
5857
5857
|
/**
|
|
5858
5858
|
* Patch a media record
|
|
5859
5859
|
*
|
|
5860
|
-
* @param {string} mediaId - The unique
|
|
5860
|
+
* @param {string} mediaId - The unique elasticdash identifier of a media record
|
|
5861
5861
|
* @param {LangfuseAPI.PatchMediaBody} request
|
|
5862
5862
|
* @param {Media.RequestOptions} requestOptions - Request-specific configuration.
|
|
5863
5863
|
*
|
|
@@ -5915,11 +5915,11 @@ declare namespace MetricsV2 {
|
|
|
5915
5915
|
baseUrl?: Supplier<string>;
|
|
5916
5916
|
username?: Supplier<string | undefined>;
|
|
5917
5917
|
password?: Supplier<string | undefined>;
|
|
5918
|
-
/** Override the X-
|
|
5918
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
5919
5919
|
xLangfuseSdkName?: Supplier<string | undefined>;
|
|
5920
|
-
/** Override the X-
|
|
5920
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
5921
5921
|
xLangfuseSdkVersion?: Supplier<string | undefined>;
|
|
5922
|
-
/** Override the X-
|
|
5922
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
5923
5923
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
5924
5924
|
/** Additional headers to include in requests. */
|
|
5925
5925
|
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
@@ -5931,11 +5931,11 @@ declare namespace MetricsV2 {
|
|
|
5931
5931
|
maxRetries?: number;
|
|
5932
5932
|
/** A hook to abort the request. */
|
|
5933
5933
|
abortSignal?: AbortSignal;
|
|
5934
|
-
/** Override the X-
|
|
5934
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
5935
5935
|
xLangfuseSdkName?: string | undefined;
|
|
5936
|
-
/** Override the X-
|
|
5936
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
5937
5937
|
xLangfuseSdkVersion?: string | undefined;
|
|
5938
|
-
/** Override the X-
|
|
5938
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
5939
5939
|
xLangfusePublicKey?: string | undefined;
|
|
5940
5940
|
/** Additional query string parameters to include in the request. */
|
|
5941
5941
|
queryParams?: Record<string, unknown>;
|
|
@@ -5947,7 +5947,7 @@ declare class MetricsV2 {
|
|
|
5947
5947
|
protected readonly _options: MetricsV2.Options;
|
|
5948
5948
|
constructor(_options: MetricsV2.Options);
|
|
5949
5949
|
/**
|
|
5950
|
-
* Get metrics from the
|
|
5950
|
+
* Get metrics from the ElasticDash project using a query object. V2 endpoint with optimized performance.
|
|
5951
5951
|
*
|
|
5952
5952
|
* ## V2 Differences
|
|
5953
5953
|
* - Supports `observations`, `scores-numeric`, and `scores-categorical` views only (traces view not supported)
|
|
@@ -5955,7 +5955,7 @@ declare class MetricsV2 {
|
|
|
5955
5955
|
* - Backwards-compatible: traceName, traceRelease, traceVersion dimensions are still available on observations view
|
|
5956
5956
|
* - High cardinality dimensions are not supported and will return a 400 error (see below)
|
|
5957
5957
|
*
|
|
5958
|
-
* For more details, see the [Metrics API documentation](https://
|
|
5958
|
+
* For more details, see the [Metrics API documentation](https://elasticdash.com/docs/metrics/features/metrics-api).
|
|
5959
5959
|
*
|
|
5960
5960
|
* ## Available Views
|
|
5961
5961
|
*
|
|
@@ -6079,11 +6079,11 @@ declare namespace Metrics {
|
|
|
6079
6079
|
baseUrl?: Supplier<string>;
|
|
6080
6080
|
username?: Supplier<string | undefined>;
|
|
6081
6081
|
password?: Supplier<string | undefined>;
|
|
6082
|
-
/** Override the X-
|
|
6082
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
6083
6083
|
xLangfuseSdkName?: Supplier<string | undefined>;
|
|
6084
|
-
/** Override the X-
|
|
6084
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
6085
6085
|
xLangfuseSdkVersion?: Supplier<string | undefined>;
|
|
6086
|
-
/** Override the X-
|
|
6086
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
6087
6087
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
6088
6088
|
/** Additional headers to include in requests. */
|
|
6089
6089
|
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
@@ -6095,11 +6095,11 @@ declare namespace Metrics {
|
|
|
6095
6095
|
maxRetries?: number;
|
|
6096
6096
|
/** A hook to abort the request. */
|
|
6097
6097
|
abortSignal?: AbortSignal;
|
|
6098
|
-
/** Override the X-
|
|
6098
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
6099
6099
|
xLangfuseSdkName?: string | undefined;
|
|
6100
|
-
/** Override the X-
|
|
6100
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
6101
6101
|
xLangfuseSdkVersion?: string | undefined;
|
|
6102
|
-
/** Override the X-
|
|
6102
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
6103
6103
|
xLangfusePublicKey?: string | undefined;
|
|
6104
6104
|
/** Additional query string parameters to include in the request. */
|
|
6105
6105
|
queryParams?: Record<string, unknown>;
|
|
@@ -6111,11 +6111,11 @@ declare class Metrics {
|
|
|
6111
6111
|
protected readonly _options: Metrics.Options;
|
|
6112
6112
|
constructor(_options: Metrics.Options);
|
|
6113
6113
|
/**
|
|
6114
|
-
* Get metrics from the
|
|
6114
|
+
* Get metrics from the ElasticDash project using a query object.
|
|
6115
6115
|
*
|
|
6116
6116
|
* Consider using the [v2 metrics endpoint](/api-reference#tag/metricsv2/GET/api/public/v2/metrics) for better performance.
|
|
6117
6117
|
*
|
|
6118
|
-
* For more details, see the [Metrics API documentation](https://
|
|
6118
|
+
* For more details, see the [Metrics API documentation](https://elasticdash.com/docs/metrics/features/metrics-api).
|
|
6119
6119
|
*
|
|
6120
6120
|
* @param {LangfuseAPI.GetMetricsRequest} request
|
|
6121
6121
|
* @param {Metrics.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -6147,11 +6147,11 @@ declare namespace Models {
|
|
|
6147
6147
|
baseUrl?: Supplier<string>;
|
|
6148
6148
|
username?: Supplier<string | undefined>;
|
|
6149
6149
|
password?: Supplier<string | undefined>;
|
|
6150
|
-
/** Override the X-
|
|
6150
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
6151
6151
|
xLangfuseSdkName?: Supplier<string | undefined>;
|
|
6152
|
-
/** Override the X-
|
|
6152
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
6153
6153
|
xLangfuseSdkVersion?: Supplier<string | undefined>;
|
|
6154
|
-
/** Override the X-
|
|
6154
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
6155
6155
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
6156
6156
|
/** Additional headers to include in requests. */
|
|
6157
6157
|
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
@@ -6163,11 +6163,11 @@ declare namespace Models {
|
|
|
6163
6163
|
maxRetries?: number;
|
|
6164
6164
|
/** A hook to abort the request. */
|
|
6165
6165
|
abortSignal?: AbortSignal;
|
|
6166
|
-
/** Override the X-
|
|
6166
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
6167
6167
|
xLangfuseSdkName?: string | undefined;
|
|
6168
|
-
/** Override the X-
|
|
6168
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
6169
6169
|
xLangfuseSdkVersion?: string | undefined;
|
|
6170
|
-
/** Override the X-
|
|
6170
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
6171
6171
|
xLangfusePublicKey?: string | undefined;
|
|
6172
6172
|
/** Additional query string parameters to include in the request. */
|
|
6173
6173
|
queryParams?: Record<string, unknown>;
|
|
@@ -6241,7 +6241,7 @@ declare class Models {
|
|
|
6241
6241
|
get(id: string, requestOptions?: Models.RequestOptions): HttpResponsePromise<Model>;
|
|
6242
6242
|
private __get;
|
|
6243
6243
|
/**
|
|
6244
|
-
* Delete a model. Cannot delete models managed by
|
|
6244
|
+
* Delete a model. Cannot delete models managed by ElasticDash. You can create your own definition with the same modelName to override the definition though.
|
|
6245
6245
|
*
|
|
6246
6246
|
* @param {string} id
|
|
6247
6247
|
* @param {Models.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -6271,11 +6271,11 @@ declare namespace ObservationsV2 {
|
|
|
6271
6271
|
baseUrl?: Supplier<string>;
|
|
6272
6272
|
username?: Supplier<string | undefined>;
|
|
6273
6273
|
password?: Supplier<string | undefined>;
|
|
6274
|
-
/** Override the X-
|
|
6274
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
6275
6275
|
xLangfuseSdkName?: Supplier<string | undefined>;
|
|
6276
|
-
/** Override the X-
|
|
6276
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
6277
6277
|
xLangfuseSdkVersion?: Supplier<string | undefined>;
|
|
6278
|
-
/** Override the X-
|
|
6278
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
6279
6279
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
6280
6280
|
/** Additional headers to include in requests. */
|
|
6281
6281
|
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
@@ -6287,11 +6287,11 @@ declare namespace ObservationsV2 {
|
|
|
6287
6287
|
maxRetries?: number;
|
|
6288
6288
|
/** A hook to abort the request. */
|
|
6289
6289
|
abortSignal?: AbortSignal;
|
|
6290
|
-
/** Override the X-
|
|
6290
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
6291
6291
|
xLangfuseSdkName?: string | undefined;
|
|
6292
|
-
/** Override the X-
|
|
6292
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
6293
6293
|
xLangfuseSdkVersion?: string | undefined;
|
|
6294
|
-
/** Override the X-
|
|
6294
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
6295
6295
|
xLangfusePublicKey?: string | undefined;
|
|
6296
6296
|
/** Additional query string parameters to include in the request. */
|
|
6297
6297
|
queryParams?: Record<string, unknown>;
|
|
@@ -6356,11 +6356,11 @@ declare namespace Observations {
|
|
|
6356
6356
|
baseUrl?: Supplier<string>;
|
|
6357
6357
|
username?: Supplier<string | undefined>;
|
|
6358
6358
|
password?: Supplier<string | undefined>;
|
|
6359
|
-
/** Override the X-
|
|
6359
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
6360
6360
|
xLangfuseSdkName?: Supplier<string | undefined>;
|
|
6361
|
-
/** Override the X-
|
|
6361
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
6362
6362
|
xLangfuseSdkVersion?: Supplier<string | undefined>;
|
|
6363
|
-
/** Override the X-
|
|
6363
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
6364
6364
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
6365
6365
|
/** Additional headers to include in requests. */
|
|
6366
6366
|
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
@@ -6372,11 +6372,11 @@ declare namespace Observations {
|
|
|
6372
6372
|
maxRetries?: number;
|
|
6373
6373
|
/** A hook to abort the request. */
|
|
6374
6374
|
abortSignal?: AbortSignal;
|
|
6375
|
-
/** Override the X-
|
|
6375
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
6376
6376
|
xLangfuseSdkName?: string | undefined;
|
|
6377
|
-
/** Override the X-
|
|
6377
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
6378
6378
|
xLangfuseSdkVersion?: string | undefined;
|
|
6379
|
-
/** Override the X-
|
|
6379
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
6380
6380
|
xLangfusePublicKey?: string | undefined;
|
|
6381
6381
|
/** Additional query string parameters to include in the request. */
|
|
6382
6382
|
queryParams?: Record<string, unknown>;
|
|
@@ -6390,7 +6390,7 @@ declare class Observations {
|
|
|
6390
6390
|
/**
|
|
6391
6391
|
* Get a observation
|
|
6392
6392
|
*
|
|
6393
|
-
* @param {string} observationId - The unique
|
|
6393
|
+
* @param {string} observationId - The unique elasticdash identifier of an observation, can be an event, span or generation
|
|
6394
6394
|
* @param {Observations.RequestOptions} requestOptions - Request-specific configuration.
|
|
6395
6395
|
*
|
|
6396
6396
|
* @throws {@link LangfuseAPI.Error}
|
|
@@ -6437,11 +6437,11 @@ declare namespace Opentelemetry {
|
|
|
6437
6437
|
baseUrl?: Supplier<string>;
|
|
6438
6438
|
username?: Supplier<string | undefined>;
|
|
6439
6439
|
password?: Supplier<string | undefined>;
|
|
6440
|
-
/** Override the X-
|
|
6440
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
6441
6441
|
xLangfuseSdkName?: Supplier<string | undefined>;
|
|
6442
|
-
/** Override the X-
|
|
6442
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
6443
6443
|
xLangfuseSdkVersion?: Supplier<string | undefined>;
|
|
6444
|
-
/** Override the X-
|
|
6444
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
6445
6445
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
6446
6446
|
/** Additional headers to include in requests. */
|
|
6447
6447
|
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
@@ -6453,11 +6453,11 @@ declare namespace Opentelemetry {
|
|
|
6453
6453
|
maxRetries?: number;
|
|
6454
6454
|
/** A hook to abort the request. */
|
|
6455
6455
|
abortSignal?: AbortSignal;
|
|
6456
|
-
/** Override the X-
|
|
6456
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
6457
6457
|
xLangfuseSdkName?: string | undefined;
|
|
6458
|
-
/** Override the X-
|
|
6458
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
6459
6459
|
xLangfuseSdkVersion?: string | undefined;
|
|
6460
|
-
/** Override the X-
|
|
6460
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
6461
6461
|
xLangfusePublicKey?: string | undefined;
|
|
6462
6462
|
/** Additional query string parameters to include in the request. */
|
|
6463
6463
|
queryParams?: Record<string, unknown>;
|
|
@@ -6471,7 +6471,7 @@ declare class Opentelemetry {
|
|
|
6471
6471
|
/**
|
|
6472
6472
|
* **OpenTelemetry Traces Ingestion Endpoint**
|
|
6473
6473
|
*
|
|
6474
|
-
* This endpoint implements the OTLP/HTTP specification for trace ingestion, providing native OpenTelemetry integration for
|
|
6474
|
+
* This endpoint implements the OTLP/HTTP specification for trace ingestion, providing native OpenTelemetry integration for ElasticDash Observability.
|
|
6475
6475
|
*
|
|
6476
6476
|
* **Supported Formats:**
|
|
6477
6477
|
* - Binary Protobuf: `Content-Type: application/x-protobuf`
|
|
@@ -6483,8 +6483,8 @@ declare class Opentelemetry {
|
|
|
6483
6483
|
* - Implements `ExportTraceServiceRequest` message format
|
|
6484
6484
|
*
|
|
6485
6485
|
* **Documentation:**
|
|
6486
|
-
* - Integration guide: https://
|
|
6487
|
-
* - Data model: https://
|
|
6486
|
+
* - Integration guide: https://elasticdash.com/integrations/native/opentelemetry
|
|
6487
|
+
* - Data model: https://elasticdash.com/docs/observability/data-model
|
|
6488
6488
|
*
|
|
6489
6489
|
* @param {LangfuseAPI.OtelTraceRequest} request
|
|
6490
6490
|
* @param {Opentelemetry.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -6513,7 +6513,7 @@ declare class Opentelemetry {
|
|
|
6513
6513
|
* },
|
|
6514
6514
|
* scopeSpans: [{
|
|
6515
6515
|
* scope: {
|
|
6516
|
-
* name: "
|
|
6516
|
+
* name: "elasticdash-sdk",
|
|
6517
6517
|
* version: "2.60.3"
|
|
6518
6518
|
* },
|
|
6519
6519
|
* spans: [{
|
|
@@ -6524,7 +6524,7 @@ declare class Opentelemetry {
|
|
|
6524
6524
|
* startTimeUnixNano: "1747872000000000000",
|
|
6525
6525
|
* endTimeUnixNano: "1747872001000000000",
|
|
6526
6526
|
* attributes: [{
|
|
6527
|
-
* key: "
|
|
6527
|
+
* key: "elasticdash.observation.type",
|
|
6528
6528
|
* value: {
|
|
6529
6529
|
* stringValue: "generation"
|
|
6530
6530
|
* }
|
|
@@ -6551,11 +6551,11 @@ declare namespace Organizations {
|
|
|
6551
6551
|
baseUrl?: Supplier<string>;
|
|
6552
6552
|
username?: Supplier<string | undefined>;
|
|
6553
6553
|
password?: Supplier<string | undefined>;
|
|
6554
|
-
/** Override the X-
|
|
6554
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
6555
6555
|
xLangfuseSdkName?: Supplier<string | undefined>;
|
|
6556
|
-
/** Override the X-
|
|
6556
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
6557
6557
|
xLangfuseSdkVersion?: Supplier<string | undefined>;
|
|
6558
|
-
/** Override the X-
|
|
6558
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
6559
6559
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
6560
6560
|
/** Additional headers to include in requests. */
|
|
6561
6561
|
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
@@ -6567,11 +6567,11 @@ declare namespace Organizations {
|
|
|
6567
6567
|
maxRetries?: number;
|
|
6568
6568
|
/** A hook to abort the request. */
|
|
6569
6569
|
abortSignal?: AbortSignal;
|
|
6570
|
-
/** Override the X-
|
|
6570
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
6571
6571
|
xLangfuseSdkName?: string | undefined;
|
|
6572
|
-
/** Override the X-
|
|
6572
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
6573
6573
|
xLangfuseSdkVersion?: string | undefined;
|
|
6574
|
-
/** Override the X-
|
|
6574
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
6575
6575
|
xLangfusePublicKey?: string | undefined;
|
|
6576
6576
|
/** Additional query string parameters to include in the request. */
|
|
6577
6577
|
queryParams?: Record<string, unknown>;
|
|
@@ -6741,11 +6741,11 @@ declare namespace Projects {
|
|
|
6741
6741
|
baseUrl?: Supplier<string>;
|
|
6742
6742
|
username?: Supplier<string | undefined>;
|
|
6743
6743
|
password?: Supplier<string | undefined>;
|
|
6744
|
-
/** Override the X-
|
|
6744
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
6745
6745
|
xLangfuseSdkName?: Supplier<string | undefined>;
|
|
6746
|
-
/** Override the X-
|
|
6746
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
6747
6747
|
xLangfuseSdkVersion?: Supplier<string | undefined>;
|
|
6748
|
-
/** Override the X-
|
|
6748
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
6749
6749
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
6750
6750
|
/** Additional headers to include in requests. */
|
|
6751
6751
|
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
@@ -6757,11 +6757,11 @@ declare namespace Projects {
|
|
|
6757
6757
|
maxRetries?: number;
|
|
6758
6758
|
/** A hook to abort the request. */
|
|
6759
6759
|
abortSignal?: AbortSignal;
|
|
6760
|
-
/** Override the X-
|
|
6760
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
6761
6761
|
xLangfuseSdkName?: string | undefined;
|
|
6762
|
-
/** Override the X-
|
|
6762
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
6763
6763
|
xLangfuseSdkVersion?: string | undefined;
|
|
6764
|
-
/** Override the X-
|
|
6764
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
6765
6765
|
xLangfusePublicKey?: string | undefined;
|
|
6766
6766
|
/** Additional query string parameters to include in the request. */
|
|
6767
6767
|
queryParams?: Record<string, unknown>;
|
|
@@ -6919,11 +6919,11 @@ declare namespace PromptVersion {
|
|
|
6919
6919
|
baseUrl?: Supplier<string>;
|
|
6920
6920
|
username?: Supplier<string | undefined>;
|
|
6921
6921
|
password?: Supplier<string | undefined>;
|
|
6922
|
-
/** Override the X-
|
|
6922
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
6923
6923
|
xLangfuseSdkName?: Supplier<string | undefined>;
|
|
6924
|
-
/** Override the X-
|
|
6924
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
6925
6925
|
xLangfuseSdkVersion?: Supplier<string | undefined>;
|
|
6926
|
-
/** Override the X-
|
|
6926
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
6927
6927
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
6928
6928
|
/** Additional headers to include in requests. */
|
|
6929
6929
|
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
@@ -6935,11 +6935,11 @@ declare namespace PromptVersion {
|
|
|
6935
6935
|
maxRetries?: number;
|
|
6936
6936
|
/** A hook to abort the request. */
|
|
6937
6937
|
abortSignal?: AbortSignal;
|
|
6938
|
-
/** Override the X-
|
|
6938
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
6939
6939
|
xLangfuseSdkName?: string | undefined;
|
|
6940
|
-
/** Override the X-
|
|
6940
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
6941
6941
|
xLangfuseSdkVersion?: string | undefined;
|
|
6942
|
-
/** Override the X-
|
|
6942
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
6943
6943
|
xLangfusePublicKey?: string | undefined;
|
|
6944
6944
|
/** Additional query string parameters to include in the request. */
|
|
6945
6945
|
queryParams?: Record<string, unknown>;
|
|
@@ -6986,11 +6986,11 @@ declare namespace Prompts {
|
|
|
6986
6986
|
baseUrl?: Supplier<string>;
|
|
6987
6987
|
username?: Supplier<string | undefined>;
|
|
6988
6988
|
password?: Supplier<string | undefined>;
|
|
6989
|
-
/** Override the X-
|
|
6989
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
6990
6990
|
xLangfuseSdkName?: Supplier<string | undefined>;
|
|
6991
|
-
/** Override the X-
|
|
6991
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
6992
6992
|
xLangfuseSdkVersion?: Supplier<string | undefined>;
|
|
6993
|
-
/** Override the X-
|
|
6993
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
6994
6994
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
6995
6995
|
/** Additional headers to include in requests. */
|
|
6996
6996
|
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
@@ -7002,11 +7002,11 @@ declare namespace Prompts {
|
|
|
7002
7002
|
maxRetries?: number;
|
|
7003
7003
|
/** A hook to abort the request. */
|
|
7004
7004
|
abortSignal?: AbortSignal;
|
|
7005
|
-
/** Override the X-
|
|
7005
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
7006
7006
|
xLangfuseSdkName?: string | undefined;
|
|
7007
|
-
/** Override the X-
|
|
7007
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
7008
7008
|
xLangfuseSdkVersion?: string | undefined;
|
|
7009
|
-
/** Override the X-
|
|
7009
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
7010
7010
|
xLangfusePublicKey?: string | undefined;
|
|
7011
7011
|
/** Additional query string parameters to include in the request. */
|
|
7012
7012
|
queryParams?: Record<string, unknown>;
|
|
@@ -7118,11 +7118,11 @@ declare namespace Scim {
|
|
|
7118
7118
|
baseUrl?: Supplier<string>;
|
|
7119
7119
|
username?: Supplier<string | undefined>;
|
|
7120
7120
|
password?: Supplier<string | undefined>;
|
|
7121
|
-
/** Override the X-
|
|
7121
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
7122
7122
|
xLangfuseSdkName?: Supplier<string | undefined>;
|
|
7123
|
-
/** Override the X-
|
|
7123
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
7124
7124
|
xLangfuseSdkVersion?: Supplier<string | undefined>;
|
|
7125
|
-
/** Override the X-
|
|
7125
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
7126
7126
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
7127
7127
|
/** Additional headers to include in requests. */
|
|
7128
7128
|
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
@@ -7134,11 +7134,11 @@ declare namespace Scim {
|
|
|
7134
7134
|
maxRetries?: number;
|
|
7135
7135
|
/** A hook to abort the request. */
|
|
7136
7136
|
abortSignal?: AbortSignal;
|
|
7137
|
-
/** Override the X-
|
|
7137
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
7138
7138
|
xLangfuseSdkName?: string | undefined;
|
|
7139
|
-
/** Override the X-
|
|
7139
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
7140
7140
|
xLangfuseSdkVersion?: string | undefined;
|
|
7141
|
-
/** Override the X-
|
|
7141
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
7142
7142
|
xLangfusePublicKey?: string | undefined;
|
|
7143
7143
|
/** Additional query string parameters to include in the request. */
|
|
7144
7144
|
queryParams?: Record<string, unknown>;
|
|
@@ -7287,11 +7287,11 @@ declare namespace ScoreConfigs {
|
|
|
7287
7287
|
baseUrl?: Supplier<string>;
|
|
7288
7288
|
username?: Supplier<string | undefined>;
|
|
7289
7289
|
password?: Supplier<string | undefined>;
|
|
7290
|
-
/** Override the X-
|
|
7290
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
7291
7291
|
xLangfuseSdkName?: Supplier<string | undefined>;
|
|
7292
|
-
/** Override the X-
|
|
7292
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
7293
7293
|
xLangfuseSdkVersion?: Supplier<string | undefined>;
|
|
7294
|
-
/** Override the X-
|
|
7294
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
7295
7295
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
7296
7296
|
/** Additional headers to include in requests. */
|
|
7297
7297
|
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
@@ -7303,11 +7303,11 @@ declare namespace ScoreConfigs {
|
|
|
7303
7303
|
maxRetries?: number;
|
|
7304
7304
|
/** A hook to abort the request. */
|
|
7305
7305
|
abortSignal?: AbortSignal;
|
|
7306
|
-
/** Override the X-
|
|
7306
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
7307
7307
|
xLangfuseSdkName?: string | undefined;
|
|
7308
|
-
/** Override the X-
|
|
7308
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
7309
7309
|
xLangfuseSdkVersion?: string | undefined;
|
|
7310
|
-
/** Override the X-
|
|
7310
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
7311
7311
|
xLangfusePublicKey?: string | undefined;
|
|
7312
7312
|
/** Additional query string parameters to include in the request. */
|
|
7313
7313
|
queryParams?: Record<string, unknown>;
|
|
@@ -7362,7 +7362,7 @@ declare class ScoreConfigs {
|
|
|
7362
7362
|
/**
|
|
7363
7363
|
* Get a score config
|
|
7364
7364
|
*
|
|
7365
|
-
* @param {string} configId - The unique
|
|
7365
|
+
* @param {string} configId - The unique elasticdash identifier of a score config
|
|
7366
7366
|
* @param {ScoreConfigs.RequestOptions} requestOptions - Request-specific configuration.
|
|
7367
7367
|
*
|
|
7368
7368
|
* @throws {@link LangfuseAPI.Error}
|
|
@@ -7379,7 +7379,7 @@ declare class ScoreConfigs {
|
|
|
7379
7379
|
/**
|
|
7380
7380
|
* Update a score config
|
|
7381
7381
|
*
|
|
7382
|
-
* @param {string} configId - The unique
|
|
7382
|
+
* @param {string} configId - The unique elasticdash identifier of a score config
|
|
7383
7383
|
* @param {LangfuseAPI.UpdateScoreConfigRequest} request
|
|
7384
7384
|
* @param {ScoreConfigs.RequestOptions} requestOptions - Request-specific configuration.
|
|
7385
7385
|
*
|
|
@@ -7415,11 +7415,11 @@ declare namespace ScoreV2 {
|
|
|
7415
7415
|
baseUrl?: Supplier<string>;
|
|
7416
7416
|
username?: Supplier<string | undefined>;
|
|
7417
7417
|
password?: Supplier<string | undefined>;
|
|
7418
|
-
/** Override the X-
|
|
7418
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
7419
7419
|
xLangfuseSdkName?: Supplier<string | undefined>;
|
|
7420
|
-
/** Override the X-
|
|
7420
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
7421
7421
|
xLangfuseSdkVersion?: Supplier<string | undefined>;
|
|
7422
|
-
/** Override the X-
|
|
7422
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
7423
7423
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
7424
7424
|
/** Additional headers to include in requests. */
|
|
7425
7425
|
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
@@ -7431,11 +7431,11 @@ declare namespace ScoreV2 {
|
|
|
7431
7431
|
maxRetries?: number;
|
|
7432
7432
|
/** A hook to abort the request. */
|
|
7433
7433
|
abortSignal?: AbortSignal;
|
|
7434
|
-
/** Override the X-
|
|
7434
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
7435
7435
|
xLangfuseSdkName?: string | undefined;
|
|
7436
|
-
/** Override the X-
|
|
7436
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
7437
7437
|
xLangfuseSdkVersion?: string | undefined;
|
|
7438
|
-
/** Override the X-
|
|
7438
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
7439
7439
|
xLangfusePublicKey?: string | undefined;
|
|
7440
7440
|
/** Additional query string parameters to include in the request. */
|
|
7441
7441
|
queryParams?: Record<string, unknown>;
|
|
@@ -7466,7 +7466,7 @@ declare class ScoreV2 {
|
|
|
7466
7466
|
/**
|
|
7467
7467
|
* Get a score (supports both trace and session scores)
|
|
7468
7468
|
*
|
|
7469
|
-
* @param {string} scoreId - The unique
|
|
7469
|
+
* @param {string} scoreId - The unique elasticdash identifier of a score
|
|
7470
7470
|
* @param {ScoreV2.RequestOptions} requestOptions - Request-specific configuration.
|
|
7471
7471
|
*
|
|
7472
7472
|
* @throws {@link LangfuseAPI.Error}
|
|
@@ -7494,11 +7494,11 @@ declare namespace Score {
|
|
|
7494
7494
|
baseUrl?: Supplier<string>;
|
|
7495
7495
|
username?: Supplier<string | undefined>;
|
|
7496
7496
|
password?: Supplier<string | undefined>;
|
|
7497
|
-
/** Override the X-
|
|
7497
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
7498
7498
|
xLangfuseSdkName?: Supplier<string | undefined>;
|
|
7499
|
-
/** Override the X-
|
|
7499
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
7500
7500
|
xLangfuseSdkVersion?: Supplier<string | undefined>;
|
|
7501
|
-
/** Override the X-
|
|
7501
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
7502
7502
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
7503
7503
|
/** Additional headers to include in requests. */
|
|
7504
7504
|
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
@@ -7510,11 +7510,11 @@ declare namespace Score {
|
|
|
7510
7510
|
maxRetries?: number;
|
|
7511
7511
|
/** A hook to abort the request. */
|
|
7512
7512
|
abortSignal?: AbortSignal;
|
|
7513
|
-
/** Override the X-
|
|
7513
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
7514
7514
|
xLangfuseSdkName?: string | undefined;
|
|
7515
|
-
/** Override the X-
|
|
7515
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
7516
7516
|
xLangfuseSdkVersion?: string | undefined;
|
|
7517
|
-
/** Override the X-
|
|
7517
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
7518
7518
|
xLangfusePublicKey?: string | undefined;
|
|
7519
7519
|
/** Additional query string parameters to include in the request. */
|
|
7520
7520
|
queryParams?: Record<string, unknown>;
|
|
@@ -7559,7 +7559,7 @@ declare class Score {
|
|
|
7559
7559
|
/**
|
|
7560
7560
|
* Delete a score (supports both trace and session scores)
|
|
7561
7561
|
*
|
|
7562
|
-
* @param {string} scoreId - The unique
|
|
7562
|
+
* @param {string} scoreId - The unique elasticdash identifier of a score
|
|
7563
7563
|
* @param {Score.RequestOptions} requestOptions - Request-specific configuration.
|
|
7564
7564
|
*
|
|
7565
7565
|
* @throws {@link LangfuseAPI.Error}
|
|
@@ -7587,11 +7587,11 @@ declare namespace Sessions {
|
|
|
7587
7587
|
baseUrl?: Supplier<string>;
|
|
7588
7588
|
username?: Supplier<string | undefined>;
|
|
7589
7589
|
password?: Supplier<string | undefined>;
|
|
7590
|
-
/** Override the X-
|
|
7590
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
7591
7591
|
xLangfuseSdkName?: Supplier<string | undefined>;
|
|
7592
|
-
/** Override the X-
|
|
7592
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
7593
7593
|
xLangfuseSdkVersion?: Supplier<string | undefined>;
|
|
7594
|
-
/** Override the X-
|
|
7594
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
7595
7595
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
7596
7596
|
/** Additional headers to include in requests. */
|
|
7597
7597
|
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
@@ -7603,11 +7603,11 @@ declare namespace Sessions {
|
|
|
7603
7603
|
maxRetries?: number;
|
|
7604
7604
|
/** A hook to abort the request. */
|
|
7605
7605
|
abortSignal?: AbortSignal;
|
|
7606
|
-
/** Override the X-
|
|
7606
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
7607
7607
|
xLangfuseSdkName?: string | undefined;
|
|
7608
|
-
/** Override the X-
|
|
7608
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
7609
7609
|
xLangfuseSdkVersion?: string | undefined;
|
|
7610
|
-
/** Override the X-
|
|
7610
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
7611
7611
|
xLangfusePublicKey?: string | undefined;
|
|
7612
7612
|
/** Additional query string parameters to include in the request. */
|
|
7613
7613
|
queryParams?: Record<string, unknown>;
|
|
@@ -7666,11 +7666,11 @@ declare namespace Trace {
|
|
|
7666
7666
|
baseUrl?: Supplier<string>;
|
|
7667
7667
|
username?: Supplier<string | undefined>;
|
|
7668
7668
|
password?: Supplier<string | undefined>;
|
|
7669
|
-
/** Override the X-
|
|
7669
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
7670
7670
|
xLangfuseSdkName?: Supplier<string | undefined>;
|
|
7671
|
-
/** Override the X-
|
|
7671
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
7672
7672
|
xLangfuseSdkVersion?: Supplier<string | undefined>;
|
|
7673
|
-
/** Override the X-
|
|
7673
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
7674
7674
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
7675
7675
|
/** Additional headers to include in requests. */
|
|
7676
7676
|
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
@@ -7682,11 +7682,11 @@ declare namespace Trace {
|
|
|
7682
7682
|
maxRetries?: number;
|
|
7683
7683
|
/** A hook to abort the request. */
|
|
7684
7684
|
abortSignal?: AbortSignal;
|
|
7685
|
-
/** Override the X-
|
|
7685
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
7686
7686
|
xLangfuseSdkName?: string | undefined;
|
|
7687
|
-
/** Override the X-
|
|
7687
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
7688
7688
|
xLangfuseSdkVersion?: string | undefined;
|
|
7689
|
-
/** Override the X-
|
|
7689
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
7690
7690
|
xLangfusePublicKey?: string | undefined;
|
|
7691
7691
|
/** Additional query string parameters to include in the request. */
|
|
7692
7692
|
queryParams?: Record<string, unknown>;
|
|
@@ -7700,7 +7700,7 @@ declare class Trace {
|
|
|
7700
7700
|
/**
|
|
7701
7701
|
* Get a specific trace
|
|
7702
7702
|
*
|
|
7703
|
-
* @param {string} traceId - The unique
|
|
7703
|
+
* @param {string} traceId - The unique elasticdash identifier of a trace
|
|
7704
7704
|
* @param {Trace.RequestOptions} requestOptions - Request-specific configuration.
|
|
7705
7705
|
*
|
|
7706
7706
|
* @throws {@link LangfuseAPI.Error}
|
|
@@ -7717,7 +7717,7 @@ declare class Trace {
|
|
|
7717
7717
|
/**
|
|
7718
7718
|
* Delete a specific trace
|
|
7719
7719
|
*
|
|
7720
|
-
* @param {string} traceId - The unique
|
|
7720
|
+
* @param {string} traceId - The unique elasticdash identifier of the trace to delete
|
|
7721
7721
|
* @param {Trace.RequestOptions} requestOptions - Request-specific configuration.
|
|
7722
7722
|
*
|
|
7723
7723
|
* @throws {@link LangfuseAPI.Error}
|
|
@@ -7781,11 +7781,11 @@ declare namespace LangfuseAPIClient {
|
|
|
7781
7781
|
baseUrl?: Supplier<string>;
|
|
7782
7782
|
username?: Supplier<string | undefined>;
|
|
7783
7783
|
password?: Supplier<string | undefined>;
|
|
7784
|
-
/** Override the X-
|
|
7784
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
7785
7785
|
xLangfuseSdkName?: Supplier<string | undefined>;
|
|
7786
|
-
/** Override the X-
|
|
7786
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
7787
7787
|
xLangfuseSdkVersion?: Supplier<string | undefined>;
|
|
7788
|
-
/** Override the X-
|
|
7788
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
7789
7789
|
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
7790
7790
|
/** Additional headers to include in requests. */
|
|
7791
7791
|
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
@@ -7797,11 +7797,11 @@ declare namespace LangfuseAPIClient {
|
|
|
7797
7797
|
maxRetries?: number;
|
|
7798
7798
|
/** A hook to abort the request. */
|
|
7799
7799
|
abortSignal?: AbortSignal;
|
|
7800
|
-
/** Override the X-
|
|
7800
|
+
/** Override the X-ElasticDash-Sdk-Name header */
|
|
7801
7801
|
xLangfuseSdkName?: string | undefined;
|
|
7802
|
-
/** Override the X-
|
|
7802
|
+
/** Override the X-ElasticDash-Sdk-Version header */
|
|
7803
7803
|
xLangfuseSdkVersion?: string | undefined;
|
|
7804
|
-
/** Override the X-
|
|
7804
|
+
/** Override the X-ElasticDash-Public-Key header */
|
|
7805
7805
|
xLangfusePublicKey?: string | undefined;
|
|
7806
7806
|
/** Additional query string parameters to include in the request. */
|
|
7807
7807
|
queryParams?: Record<string, unknown>;
|
|
@@ -7921,9 +7921,9 @@ type LangfuseMediaParams = {
|
|
|
7921
7921
|
contentType: MediaContentType;
|
|
7922
7922
|
};
|
|
7923
7923
|
/**
|
|
7924
|
-
* A class for wrapping media objects for upload to
|
|
7924
|
+
* A class for wrapping media objects for upload to ElasticDash.
|
|
7925
7925
|
*
|
|
7926
|
-
* This class handles the preparation and formatting of media content for
|
|
7926
|
+
* This class handles the preparation and formatting of media content for ElasticDash,
|
|
7927
7927
|
* supporting both base64 data URIs and raw content bytes. It automatically:
|
|
7928
7928
|
* - Parses base64 data URIs to extract content type and bytes
|
|
7929
7929
|
* - Generates SHA-256 hashes for content integrity
|
|
@@ -8013,7 +8013,7 @@ declare class LangfuseMedia {
|
|
|
8013
8013
|
*
|
|
8014
8014
|
* The tag format is: `@@@langfuseMedia:type=<contentType>|id=<mediaId>|source=<source>@@@`
|
|
8015
8015
|
* This tag can be embedded in trace attributes and will be replaced with actual
|
|
8016
|
-
* media content when the trace is viewed in
|
|
8016
|
+
* media content when the trace is viewed in ElasticDash.
|
|
8017
8017
|
*
|
|
8018
8018
|
* @returns The media reference tag, or null if required data is missing
|
|
8019
8019
|
*
|
|
@@ -8047,7 +8047,7 @@ declare class LangfuseMedia {
|
|
|
8047
8047
|
}
|
|
8048
8048
|
|
|
8049
8049
|
/**
|
|
8050
|
-
* Attribute propagation utilities for
|
|
8050
|
+
* Attribute propagation utilities for ElasticDash OpenTelemetry integration.
|
|
8051
8051
|
*
|
|
8052
8052
|
* This module provides the `propagateAttributes` function for setting trace-level
|
|
8053
8053
|
* attributes (userId, sessionId, metadata) that automatically propagate to all child spans
|
|
@@ -8119,9 +8119,9 @@ interface PropagateAttributesParams {
|
|
|
8119
8119
|
*/
|
|
8120
8120
|
asBaggage?: boolean;
|
|
8121
8121
|
/**
|
|
8122
|
-
* **INTERNAL USE ONLY** - For
|
|
8122
|
+
* **INTERNAL USE ONLY** - For ElasticDash experiment framework.
|
|
8123
8123
|
*
|
|
8124
|
-
* This parameter is used internally by the
|
|
8124
|
+
* This parameter is used internally by the ElasticDash experiment system to propagate
|
|
8125
8125
|
* experiment context to child spans. It should NOT be used by external code.
|
|
8126
8126
|
*
|
|
8127
8127
|
* @internal
|
|
@@ -8140,7 +8140,7 @@ interface PropagateAttributesParams {
|
|
|
8140
8140
|
* currently active span and spans created after entering this context will have these
|
|
8141
8141
|
* attributes. Pre-existing spans will NOT be retroactively updated.
|
|
8142
8142
|
*
|
|
8143
|
-
* **Why this matters**:
|
|
8143
|
+
* **Why this matters**: ElasticDash aggregation queries (e.g., total cost by userId,
|
|
8144
8144
|
* filtering by sessionId) only include observations that have the attribute set.
|
|
8145
8145
|
* If you call `propagateAttributes` late in your workflow, earlier spans won't be
|
|
8146
8146
|
* included in aggregations for that attribute.
|