@lmnr-ai/types 0.8.40 → 0.8.41

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 CHANGED
@@ -327,6 +327,45 @@ interface SessionBlock {
327
327
  content: Record<string, unknown>;
328
328
  }
329
329
  //#endregion
330
+ //#region src/sql-schema.d.ts
331
+ /**
332
+ * Shared contract for `GET /v1/sql/schema` (and its `/v1/cli` twin) — the
333
+ * logical tables, columns, and enums the SQL engine exposes.
334
+ *
335
+ * The server serializes this straight from app-server's
336
+ * `query_engine::schema` consts, which also render the MCP `query_laminar_sql`
337
+ * tool description and the Platform Agent prompt. That is the point: the CLI
338
+ * used to carry a hand-maintained copy, and it drifted badly enough to
339
+ * advertise columns that did not exist. Do NOT reintroduce a local copy —
340
+ * `lmnr-cli sql schema` renders whatever the server returns.
341
+ */
342
+ /** One column of a queryable table. `type` is the ClickHouse type as a string. */
343
+ interface SqlSchemaColumn {
344
+ name: string;
345
+ /** ClickHouse type, e.g. `UUID`, `DateTime64(9,'UTC')`, `String (enum status)`. */
346
+ type: string;
347
+ description: string;
348
+ }
349
+ /**
350
+ * One logical table. The caller writes this name; the engine rewrites it to a
351
+ * project-scoped view.
352
+ */
353
+ interface SqlSchemaTable {
354
+ name: string;
355
+ description: string;
356
+ columns: SqlSchemaColumn[];
357
+ }
358
+ /** A constrained column and the literals it accepts. */
359
+ interface SqlSchemaEnum {
360
+ name: string;
361
+ values: string[];
362
+ }
363
+ /** Full response body of the schema endpoint. */
364
+ interface SqlSchema {
365
+ tables: SqlSchemaTable[];
366
+ enums: SqlSchemaEnum[];
367
+ }
368
+ //#endregion
330
369
  //#region src/tracing.d.ts
331
370
  /**
332
371
  * Span types to categorize spans.
@@ -405,5 +444,5 @@ type Event = {
405
444
  value: number | string | null;
406
445
  };
407
446
  //#endregion
408
- 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, StringUUID, TextBlockContent, TraceBlockContent, TraceType, TracingLevel, errorMessage };
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 };
409
448
  //# sourceMappingURL=index.d.cts.map
package/dist/index.d.mts CHANGED
@@ -327,6 +327,45 @@ interface SessionBlock {
327
327
  content: Record<string, unknown>;
328
328
  }
329
329
  //#endregion
330
+ //#region src/sql-schema.d.ts
331
+ /**
332
+ * Shared contract for `GET /v1/sql/schema` (and its `/v1/cli` twin) — the
333
+ * logical tables, columns, and enums the SQL engine exposes.
334
+ *
335
+ * The server serializes this straight from app-server's
336
+ * `query_engine::schema` consts, which also render the MCP `query_laminar_sql`
337
+ * tool description and the Platform Agent prompt. That is the point: the CLI
338
+ * used to carry a hand-maintained copy, and it drifted badly enough to
339
+ * advertise columns that did not exist. Do NOT reintroduce a local copy —
340
+ * `lmnr-cli sql schema` renders whatever the server returns.
341
+ */
342
+ /** One column of a queryable table. `type` is the ClickHouse type as a string. */
343
+ interface SqlSchemaColumn {
344
+ name: string;
345
+ /** ClickHouse type, e.g. `UUID`, `DateTime64(9,'UTC')`, `String (enum status)`. */
346
+ type: string;
347
+ description: string;
348
+ }
349
+ /**
350
+ * One logical table. The caller writes this name; the engine rewrites it to a
351
+ * project-scoped view.
352
+ */
353
+ interface SqlSchemaTable {
354
+ name: string;
355
+ description: string;
356
+ columns: SqlSchemaColumn[];
357
+ }
358
+ /** A constrained column and the literals it accepts. */
359
+ interface SqlSchemaEnum {
360
+ name: string;
361
+ values: string[];
362
+ }
363
+ /** Full response body of the schema endpoint. */
364
+ interface SqlSchema {
365
+ tables: SqlSchemaTable[];
366
+ enums: SqlSchemaEnum[];
367
+ }
368
+ //#endregion
330
369
  //#region src/tracing.d.ts
331
370
  /**
332
371
  * Span types to categorize spans.
@@ -405,5 +444,5 @@ type Event = {
405
444
  value: number | string | null;
406
445
  };
407
446
  //#endregion
408
- 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, StringUUID, TextBlockContent, TraceBlockContent, TraceType, TracingLevel, errorMessage };
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 };
409
448
  //# sourceMappingURL=index.d.mts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lmnr-ai/types",
3
- "version": "0.8.40",
3
+ "version": "0.8.41",
4
4
  "description": "Shared types for Laminar AI SDK",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",