@lmnr-ai/types 0.8.41 → 0.8.42
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 +53 -1
- package/dist/index.d.mts +53 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -327,6 +327,58 @@ interface SessionBlock {
|
|
|
327
327
|
content: Record<string, unknown>;
|
|
328
328
|
}
|
|
329
329
|
//#endregion
|
|
330
|
+
//#region src/signals.d.ts
|
|
331
|
+
/**
|
|
332
|
+
* A signal's payload schema — the structured output the LLM must return. Every
|
|
333
|
+
* field is required (the UI drawer marks them all required); enums are a string
|
|
334
|
+
* field with an `enum` array.
|
|
335
|
+
*/
|
|
336
|
+
interface SignalStructuredOutput {
|
|
337
|
+
type: "object";
|
|
338
|
+
properties: Record<string, {
|
|
339
|
+
type: string;
|
|
340
|
+
description: string;
|
|
341
|
+
enum?: string[];
|
|
342
|
+
}>;
|
|
343
|
+
required: string[];
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* A signal trigger. The two lists mean different things and are NOT
|
|
347
|
+
* interchangeable:
|
|
348
|
+
*
|
|
349
|
+
* - `conditions` — WHEN the signal is evaluated. Decidable from one span batch
|
|
350
|
+
* (`root_span_finished`, `span_name`). An EMPTY list never fires.
|
|
351
|
+
* - `filters` — WHETHER a fired trigger runs. Properties of the whole trace
|
|
352
|
+
* (`total_token_count`, `status`, `span_names`). An empty list passes.
|
|
353
|
+
*
|
|
354
|
+
* Note `span_name` (condition, this batch only) and `span_names` (filter,
|
|
355
|
+
* anywhere in the trace) are DIFFERENT columns.
|
|
356
|
+
*/
|
|
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
|
+
interface SignalFilter {
|
|
366
|
+
column: string;
|
|
367
|
+
operator: string;
|
|
368
|
+
value: string | number | string[];
|
|
369
|
+
}
|
|
370
|
+
interface Signal {
|
|
371
|
+
id: string;
|
|
372
|
+
projectId: string;
|
|
373
|
+
name: string;
|
|
374
|
+
prompt: string;
|
|
375
|
+
structuredOutput: SignalStructuredOutput;
|
|
376
|
+
sampleRate: number | null;
|
|
377
|
+
disabled: boolean;
|
|
378
|
+
createdAt: string;
|
|
379
|
+
triggers: SignalTrigger[];
|
|
380
|
+
}
|
|
381
|
+
//#endregion
|
|
330
382
|
//#region src/sql-schema.d.ts
|
|
331
383
|
/**
|
|
332
384
|
* Shared contract for `GET /v1/sql/schema` (and its `/v1/cli` twin) — the
|
|
@@ -444,5 +496,5 @@ type Event = {
|
|
|
444
496
|
value: number | string | null;
|
|
445
497
|
};
|
|
446
498
|
//#endregion
|
|
447
|
-
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, 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, SignalStructuredOutput, SignalTrigger, SpanExporter, SpanProcessor, SpanType, SqlSchema, SqlSchemaColumn, SqlSchemaEnum, SqlSchemaTable, StringUUID, TextBlockContent, TraceBlockContent, TraceType, TracingLevel, errorMessage };
|
|
448
500
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.mts
CHANGED
|
@@ -327,6 +327,58 @@ interface SessionBlock {
|
|
|
327
327
|
content: Record<string, unknown>;
|
|
328
328
|
}
|
|
329
329
|
//#endregion
|
|
330
|
+
//#region src/signals.d.ts
|
|
331
|
+
/**
|
|
332
|
+
* A signal's payload schema — the structured output the LLM must return. Every
|
|
333
|
+
* field is required (the UI drawer marks them all required); enums are a string
|
|
334
|
+
* field with an `enum` array.
|
|
335
|
+
*/
|
|
336
|
+
interface SignalStructuredOutput {
|
|
337
|
+
type: "object";
|
|
338
|
+
properties: Record<string, {
|
|
339
|
+
type: string;
|
|
340
|
+
description: string;
|
|
341
|
+
enum?: string[];
|
|
342
|
+
}>;
|
|
343
|
+
required: string[];
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* A signal trigger. The two lists mean different things and are NOT
|
|
347
|
+
* interchangeable:
|
|
348
|
+
*
|
|
349
|
+
* - `conditions` — WHEN the signal is evaluated. Decidable from one span batch
|
|
350
|
+
* (`root_span_finished`, `span_name`). An EMPTY list never fires.
|
|
351
|
+
* - `filters` — WHETHER a fired trigger runs. Properties of the whole trace
|
|
352
|
+
* (`total_token_count`, `status`, `span_names`). An empty list passes.
|
|
353
|
+
*
|
|
354
|
+
* Note `span_name` (condition, this batch only) and `span_names` (filter,
|
|
355
|
+
* anywhere in the trace) are DIFFERENT columns.
|
|
356
|
+
*/
|
|
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
|
+
interface SignalFilter {
|
|
366
|
+
column: string;
|
|
367
|
+
operator: string;
|
|
368
|
+
value: string | number | string[];
|
|
369
|
+
}
|
|
370
|
+
interface Signal {
|
|
371
|
+
id: string;
|
|
372
|
+
projectId: string;
|
|
373
|
+
name: string;
|
|
374
|
+
prompt: string;
|
|
375
|
+
structuredOutput: SignalStructuredOutput;
|
|
376
|
+
sampleRate: number | null;
|
|
377
|
+
disabled: boolean;
|
|
378
|
+
createdAt: string;
|
|
379
|
+
triggers: SignalTrigger[];
|
|
380
|
+
}
|
|
381
|
+
//#endregion
|
|
330
382
|
//#region src/sql-schema.d.ts
|
|
331
383
|
/**
|
|
332
384
|
* Shared contract for `GET /v1/sql/schema` (and its `/v1/cli` twin) — the
|
|
@@ -444,5 +496,5 @@ type Event = {
|
|
|
444
496
|
value: number | string | null;
|
|
445
497
|
};
|
|
446
498
|
//#endregion
|
|
447
|
-
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, 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, SignalStructuredOutput, SignalTrigger, SpanExporter, SpanProcessor, SpanType, SqlSchema, SqlSchemaColumn, SqlSchemaEnum, SqlSchemaTable, StringUUID, TextBlockContent, TraceBlockContent, TraceType, TracingLevel, errorMessage };
|
|
448
500
|
//# sourceMappingURL=index.d.mts.map
|