@lmnr-ai/types 0.8.42 → 0.8.43
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.d.cts +23 -23
- package/dist/index.d.mts +23 -23
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -330,8 +330,7 @@ interface SessionBlock {
|
|
|
330
330
|
//#region src/signals.d.ts
|
|
331
331
|
/**
|
|
332
332
|
* A signal's payload schema — the structured output the LLM must return. Every
|
|
333
|
-
* field is required
|
|
334
|
-
* field with an `enum` array.
|
|
333
|
+
* field is required; enums are a string field with an `enum` array.
|
|
335
334
|
*/
|
|
336
335
|
interface SignalStructuredOutput {
|
|
337
336
|
type: "object";
|
|
@@ -343,30 +342,29 @@ interface SignalStructuredOutput {
|
|
|
343
342
|
required: string[];
|
|
344
343
|
}
|
|
345
344
|
/**
|
|
346
|
-
*
|
|
347
|
-
*
|
|
348
|
-
*
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
345
|
+
* WHEN a signal is evaluated, decided from a single span batch. A closed set,
|
|
346
|
+
* not a column list: these are the only two shapes the backend evaluates, so
|
|
347
|
+
* anything else would be stored and then silently never fire.
|
|
348
|
+
*/
|
|
349
|
+
type SignalTrigger = {
|
|
350
|
+
type: "rootSpanFinished";
|
|
351
|
+
} | {
|
|
352
|
+
type: "spanName";
|
|
353
|
+
spanNames: string[];
|
|
354
|
+
};
|
|
355
|
+
/**
|
|
356
|
+
* WHETHER a fired signal runs — a property of the whole trace. Columns:
|
|
357
|
+
* `total_token_count`, `status`, `span_names`. An empty list runs on every
|
|
358
|
+
* firing trace. Extra keys are preserved so the shape can grow server-side
|
|
359
|
+
* without an SDK release.
|
|
356
360
|
*/
|
|
357
|
-
interface SignalTrigger {
|
|
358
|
-
id?: string;
|
|
359
|
-
conditions: SignalFilter[];
|
|
360
|
-
filters: SignalFilter[];
|
|
361
|
-
createdAt?: string;
|
|
362
|
-
/** 0 = batch, 1 = realtime */
|
|
363
|
-
mode?: number;
|
|
364
|
-
}
|
|
365
361
|
interface SignalFilter {
|
|
366
362
|
column: string;
|
|
367
363
|
operator: string;
|
|
368
|
-
value:
|
|
364
|
+
value: unknown;
|
|
365
|
+
[key: string]: unknown;
|
|
369
366
|
}
|
|
367
|
+
type SignalMode = "batch" | "realtime";
|
|
370
368
|
interface Signal {
|
|
371
369
|
id: string;
|
|
372
370
|
projectId: string;
|
|
@@ -376,7 +374,9 @@ interface Signal {
|
|
|
376
374
|
sampleRate: number | null;
|
|
377
375
|
disabled: boolean;
|
|
378
376
|
createdAt: string;
|
|
379
|
-
|
|
377
|
+
trigger: SignalTrigger;
|
|
378
|
+
filters: SignalFilter[];
|
|
379
|
+
mode: SignalMode;
|
|
380
380
|
}
|
|
381
381
|
//#endregion
|
|
382
382
|
//#region src/sql-schema.d.ts
|
|
@@ -496,5 +496,5 @@ type Event = {
|
|
|
496
496
|
value: number | string | null;
|
|
497
497
|
};
|
|
498
498
|
//#endregion
|
|
499
|
-
export { CachedSpan, CommandBlockContent, DEBUG_SESSION_DIR, DEBUG_SESSION_FILE, Datapoint, Dataset, DebugContext, DebugSessionFile, EvaluationBlockContent, EvaluationDatapoint, EvaluationDatapointDatasetLink, Event, GetDatapointsResponse, InitEvaluationResponse, InitializeOptions, LaminarSpanContext, MaskInputOptions, PushDatapointsResponse, SemanticSearchResponse, SemanticSearchResult, SessionBlock, SessionBlockContent, SessionBlockType, SessionRecordingOptions, Signal, SignalFilter, SignalStructuredOutput, SignalTrigger, SpanExporter, SpanProcessor, SpanType, SqlSchema, SqlSchemaColumn, SqlSchemaEnum, SqlSchemaTable, StringUUID, TextBlockContent, TraceBlockContent, TraceType, TracingLevel, errorMessage };
|
|
499
|
+
export { CachedSpan, CommandBlockContent, DEBUG_SESSION_DIR, DEBUG_SESSION_FILE, Datapoint, Dataset, DebugContext, DebugSessionFile, EvaluationBlockContent, EvaluationDatapoint, EvaluationDatapointDatasetLink, Event, GetDatapointsResponse, InitEvaluationResponse, InitializeOptions, LaminarSpanContext, MaskInputOptions, PushDatapointsResponse, SemanticSearchResponse, SemanticSearchResult, SessionBlock, SessionBlockContent, SessionBlockType, SessionRecordingOptions, Signal, SignalFilter, SignalMode, SignalStructuredOutput, SignalTrigger, SpanExporter, SpanProcessor, SpanType, SqlSchema, SqlSchemaColumn, SqlSchemaEnum, SqlSchemaTable, StringUUID, TextBlockContent, TraceBlockContent, TraceType, TracingLevel, errorMessage };
|
|
500
500
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.mts
CHANGED
|
@@ -330,8 +330,7 @@ interface SessionBlock {
|
|
|
330
330
|
//#region src/signals.d.ts
|
|
331
331
|
/**
|
|
332
332
|
* A signal's payload schema — the structured output the LLM must return. Every
|
|
333
|
-
* field is required
|
|
334
|
-
* field with an `enum` array.
|
|
333
|
+
* field is required; enums are a string field with an `enum` array.
|
|
335
334
|
*/
|
|
336
335
|
interface SignalStructuredOutput {
|
|
337
336
|
type: "object";
|
|
@@ -343,30 +342,29 @@ interface SignalStructuredOutput {
|
|
|
343
342
|
required: string[];
|
|
344
343
|
}
|
|
345
344
|
/**
|
|
346
|
-
*
|
|
347
|
-
*
|
|
348
|
-
*
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
345
|
+
* WHEN a signal is evaluated, decided from a single span batch. A closed set,
|
|
346
|
+
* not a column list: these are the only two shapes the backend evaluates, so
|
|
347
|
+
* anything else would be stored and then silently never fire.
|
|
348
|
+
*/
|
|
349
|
+
type SignalTrigger = {
|
|
350
|
+
type: "rootSpanFinished";
|
|
351
|
+
} | {
|
|
352
|
+
type: "spanName";
|
|
353
|
+
spanNames: string[];
|
|
354
|
+
};
|
|
355
|
+
/**
|
|
356
|
+
* WHETHER a fired signal runs — a property of the whole trace. Columns:
|
|
357
|
+
* `total_token_count`, `status`, `span_names`. An empty list runs on every
|
|
358
|
+
* firing trace. Extra keys are preserved so the shape can grow server-side
|
|
359
|
+
* without an SDK release.
|
|
356
360
|
*/
|
|
357
|
-
interface SignalTrigger {
|
|
358
|
-
id?: string;
|
|
359
|
-
conditions: SignalFilter[];
|
|
360
|
-
filters: SignalFilter[];
|
|
361
|
-
createdAt?: string;
|
|
362
|
-
/** 0 = batch, 1 = realtime */
|
|
363
|
-
mode?: number;
|
|
364
|
-
}
|
|
365
361
|
interface SignalFilter {
|
|
366
362
|
column: string;
|
|
367
363
|
operator: string;
|
|
368
|
-
value:
|
|
364
|
+
value: unknown;
|
|
365
|
+
[key: string]: unknown;
|
|
369
366
|
}
|
|
367
|
+
type SignalMode = "batch" | "realtime";
|
|
370
368
|
interface Signal {
|
|
371
369
|
id: string;
|
|
372
370
|
projectId: string;
|
|
@@ -376,7 +374,9 @@ interface Signal {
|
|
|
376
374
|
sampleRate: number | null;
|
|
377
375
|
disabled: boolean;
|
|
378
376
|
createdAt: string;
|
|
379
|
-
|
|
377
|
+
trigger: SignalTrigger;
|
|
378
|
+
filters: SignalFilter[];
|
|
379
|
+
mode: SignalMode;
|
|
380
380
|
}
|
|
381
381
|
//#endregion
|
|
382
382
|
//#region src/sql-schema.d.ts
|
|
@@ -496,5 +496,5 @@ type Event = {
|
|
|
496
496
|
value: number | string | null;
|
|
497
497
|
};
|
|
498
498
|
//#endregion
|
|
499
|
-
export { CachedSpan, CommandBlockContent, DEBUG_SESSION_DIR, DEBUG_SESSION_FILE, Datapoint, Dataset, DebugContext, DebugSessionFile, EvaluationBlockContent, EvaluationDatapoint, EvaluationDatapointDatasetLink, Event, GetDatapointsResponse, InitEvaluationResponse, InitializeOptions, LaminarSpanContext, MaskInputOptions, PushDatapointsResponse, SemanticSearchResponse, SemanticSearchResult, SessionBlock, SessionBlockContent, SessionBlockType, SessionRecordingOptions, Signal, SignalFilter, SignalStructuredOutput, SignalTrigger, SpanExporter, SpanProcessor, SpanType, SqlSchema, SqlSchemaColumn, SqlSchemaEnum, SqlSchemaTable, StringUUID, TextBlockContent, TraceBlockContent, TraceType, TracingLevel, errorMessage };
|
|
499
|
+
export { CachedSpan, CommandBlockContent, DEBUG_SESSION_DIR, DEBUG_SESSION_FILE, Datapoint, Dataset, DebugContext, DebugSessionFile, EvaluationBlockContent, EvaluationDatapoint, EvaluationDatapointDatasetLink, Event, GetDatapointsResponse, InitEvaluationResponse, InitializeOptions, LaminarSpanContext, MaskInputOptions, PushDatapointsResponse, SemanticSearchResponse, SemanticSearchResult, SessionBlock, SessionBlockContent, SessionBlockType, SessionRecordingOptions, Signal, SignalFilter, SignalMode, SignalStructuredOutput, SignalTrigger, SpanExporter, SpanProcessor, SpanType, SqlSchema, SqlSchemaColumn, SqlSchemaEnum, SqlSchemaTable, StringUUID, TextBlockContent, TraceBlockContent, TraceType, TracingLevel, errorMessage };
|
|
500
500
|
//# sourceMappingURL=index.d.mts.map
|