@lmnr-ai/types 0.8.41 → 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 +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; enums are a string field with an `enum` array.
|
|
334
|
+
*/
|
|
335
|
+
interface SignalStructuredOutput {
|
|
336
|
+
type: "object";
|
|
337
|
+
properties: Record<string, {
|
|
338
|
+
type: string;
|
|
339
|
+
description: string;
|
|
340
|
+
enum?: string[];
|
|
341
|
+
}>;
|
|
342
|
+
required: string[];
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
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.
|
|
360
|
+
*/
|
|
361
|
+
interface SignalFilter {
|
|
362
|
+
column: string;
|
|
363
|
+
operator: string;
|
|
364
|
+
value: unknown;
|
|
365
|
+
[key: string]: unknown;
|
|
366
|
+
}
|
|
367
|
+
type SignalMode = "batch" | "realtime";
|
|
368
|
+
interface Signal {
|
|
369
|
+
id: string;
|
|
370
|
+
projectId: string;
|
|
371
|
+
name: string;
|
|
372
|
+
prompt: string;
|
|
373
|
+
structuredOutput: SignalStructuredOutput;
|
|
374
|
+
sampleRate: number | null;
|
|
375
|
+
disabled: boolean;
|
|
376
|
+
createdAt: string;
|
|
377
|
+
trigger: SignalTrigger;
|
|
378
|
+
filters: SignalFilter[];
|
|
379
|
+
mode: SignalMode;
|
|
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, SignalMode, 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; enums are a string field with an `enum` array.
|
|
334
|
+
*/
|
|
335
|
+
interface SignalStructuredOutput {
|
|
336
|
+
type: "object";
|
|
337
|
+
properties: Record<string, {
|
|
338
|
+
type: string;
|
|
339
|
+
description: string;
|
|
340
|
+
enum?: string[];
|
|
341
|
+
}>;
|
|
342
|
+
required: string[];
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
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.
|
|
360
|
+
*/
|
|
361
|
+
interface SignalFilter {
|
|
362
|
+
column: string;
|
|
363
|
+
operator: string;
|
|
364
|
+
value: unknown;
|
|
365
|
+
[key: string]: unknown;
|
|
366
|
+
}
|
|
367
|
+
type SignalMode = "batch" | "realtime";
|
|
368
|
+
interface Signal {
|
|
369
|
+
id: string;
|
|
370
|
+
projectId: string;
|
|
371
|
+
name: string;
|
|
372
|
+
prompt: string;
|
|
373
|
+
structuredOutput: SignalStructuredOutput;
|
|
374
|
+
sampleRate: number | null;
|
|
375
|
+
disabled: boolean;
|
|
376
|
+
createdAt: string;
|
|
377
|
+
trigger: SignalTrigger;
|
|
378
|
+
filters: SignalFilter[];
|
|
379
|
+
mode: SignalMode;
|
|
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, SignalMode, SignalStructuredOutput, SignalTrigger, SpanExporter, SpanProcessor, SpanType, SqlSchema, SqlSchemaColumn, SqlSchemaEnum, SqlSchemaTable, StringUUID, TextBlockContent, TraceBlockContent, TraceType, TracingLevel, errorMessage };
|
|
448
500
|
//# sourceMappingURL=index.d.mts.map
|