@lmnr-ai/types 0.8.45 → 0.8.46

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
@@ -263,6 +263,66 @@ interface InitializeOptions {
263
263
  spanProcessor?: SpanProcessor;
264
264
  }
265
265
  //#endregion
266
+ //#region src/llm-profiles.d.ts
267
+ /**
268
+ * Workspace LLM profile wire shapes (`/v1/cli/llm-profiles`, mirrored from
269
+ * app-server's `LlmProfileResponse`). Self-hosted only; on Laminar Cloud every
270
+ * route 404s with `{error: "LLM profiles are not available on this deployment"}`.
271
+ */
272
+ type LlmProfileProvider = "openai_completions" | "openai_responses" | "gemini" | "bedrock" | "azure_chat_completions" | "azure_responses" | "azure_anthropic" | "custom";
273
+ /**
274
+ * How the profile authenticates. `api_key` for every provider except Bedrock,
275
+ * which takes AWS keys (secret arrives separately in `secrets`) or a bearer
276
+ * token.
277
+ */
278
+ type LlmProfileAuth = {
279
+ type: "api_key";
280
+ } | {
281
+ type: "aws_keys";
282
+ accessKeyId: string;
283
+ } | {
284
+ type: "bearer_token";
285
+ };
286
+ /**
287
+ * Non-secret provider options. The server normalizes per provider: absent
288
+ * fields are omitted on the wire, never `null`.
289
+ */
290
+ interface LlmProfileConfig {
291
+ auth: LlmProfileAuth;
292
+ /** Bedrock. */
293
+ region?: string;
294
+ /** Azure: exactly one of `resourceId` / `baseUrl`. */
295
+ resourceId?: string;
296
+ /** Azure (alternative to `resourceId`) or `custom` (required). */
297
+ baseUrl?: string;
298
+ /** Azure. */
299
+ apiVersion?: string;
300
+ /** `custom`: header names whose values live in `secrets.headers`. */
301
+ headerNames?: string[];
302
+ }
303
+ /**
304
+ * What reads return instead of secrets: a `first3***last3` mask per stored
305
+ * value (fully starred when short) and custom header names only. Absent slots
306
+ * arrive as explicit `null` (the server does not omit them).
307
+ */
308
+ interface LlmProfileSecretMasks {
309
+ apiKey?: string | null;
310
+ secretAccessKey?: string | null;
311
+ token?: string | null;
312
+ headers: string[];
313
+ }
314
+ interface LlmProfile {
315
+ id: string;
316
+ workspaceId: string;
317
+ name: string;
318
+ provider: LlmProfileProvider;
319
+ config: LlmProfileConfig;
320
+ models: string[];
321
+ secrets: LlmProfileSecretMasks;
322
+ createdAt: string;
323
+ updatedAt: string;
324
+ }
325
+ //#endregion
266
326
  //#region src/session-block.d.ts
267
327
  /**
268
328
  * Shared contract for debugger-session blocks — an ordered list of blocks (see
@@ -377,6 +437,40 @@ interface Signal {
377
437
  trigger: SignalTrigger;
378
438
  filters: SignalFilter[];
379
439
  mode: SignalMode;
440
+ /** Workspace LLM profile id; `null` = runs on the server's env LLM. */
441
+ llmProfileId: string | null;
442
+ /** Display name of `llmProfileId`; `null` alongside it. */
443
+ llmProfileName: string | null;
444
+ /** Model pinned within the profile; `null` alongside `llmProfileId`. */
445
+ model: string | null;
446
+ }
447
+ /**
448
+ * Stored version blob on `GET /signals/{id}/versions`. Schema key is
449
+ * `structuredOutputSchema`, not `structuredOutput` (that name is only on
450
+ * `GET /signals/{id}`). `trigger`/`filters` are stored Filter[] JSON
451
+ * (`signal_triggers.value` / `filters`), not the CLI tagged {@link SignalTrigger}.
452
+ */
453
+ interface SignalDefinition {
454
+ name: string;
455
+ prompt: string;
456
+ structuredOutputSchema: SignalStructuredOutput;
457
+ trigger: SignalFilter[];
458
+ filters: SignalFilter[];
459
+ mode: SignalMode;
460
+ sampleRate: number | null;
461
+ disabled: boolean;
462
+ /** Both `null` = env-var routing. Cloud signals stay `null`. */
463
+ llmProfileId: string | null;
464
+ llmModel: string | null;
465
+ }
466
+ /**
467
+ * One historical judge definition. `GET /signals/{id}`'s `version` field is
468
+ * only the current pointer; this is the version log.
469
+ */
470
+ interface SignalVersion {
471
+ version: number;
472
+ definition: SignalDefinition;
473
+ createdAt: string;
380
474
  }
381
475
  //#endregion
382
476
  //#region src/sql-schema.d.ts
@@ -496,5 +590,5 @@ type Event = {
496
590
  value: number | string | null;
497
591
  };
498
592
  //#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, SignalMode, SignalStructuredOutput, SignalTrigger, SpanExporter, SpanProcessor, SpanType, SqlSchema, SqlSchemaColumn, SqlSchemaEnum, SqlSchemaTable, StringUUID, TextBlockContent, TraceBlockContent, TraceType, TracingLevel, errorMessage };
593
+ export { CachedSpan, CommandBlockContent, DEBUG_SESSION_DIR, DEBUG_SESSION_FILE, Datapoint, Dataset, DebugContext, DebugSessionFile, EvaluationBlockContent, EvaluationDatapoint, EvaluationDatapointDatasetLink, Event, GetDatapointsResponse, InitEvaluationResponse, InitializeOptions, LaminarSpanContext, LlmProfile, LlmProfileAuth, LlmProfileConfig, LlmProfileProvider, LlmProfileSecretMasks, MaskInputOptions, PushDatapointsResponse, SemanticSearchResponse, SemanticSearchResult, SessionBlock, SessionBlockContent, SessionBlockType, SessionRecordingOptions, Signal, SignalDefinition, SignalFilter, SignalMode, SignalStructuredOutput, SignalTrigger, SignalVersion, SpanExporter, SpanProcessor, SpanType, SqlSchema, SqlSchemaColumn, SqlSchemaEnum, SqlSchemaTable, StringUUID, TextBlockContent, TraceBlockContent, TraceType, TracingLevel, errorMessage };
500
594
  //# sourceMappingURL=index.d.cts.map
package/dist/index.d.mts CHANGED
@@ -263,6 +263,66 @@ interface InitializeOptions {
263
263
  spanProcessor?: SpanProcessor;
264
264
  }
265
265
  //#endregion
266
+ //#region src/llm-profiles.d.ts
267
+ /**
268
+ * Workspace LLM profile wire shapes (`/v1/cli/llm-profiles`, mirrored from
269
+ * app-server's `LlmProfileResponse`). Self-hosted only; on Laminar Cloud every
270
+ * route 404s with `{error: "LLM profiles are not available on this deployment"}`.
271
+ */
272
+ type LlmProfileProvider = "openai_completions" | "openai_responses" | "gemini" | "bedrock" | "azure_chat_completions" | "azure_responses" | "azure_anthropic" | "custom";
273
+ /**
274
+ * How the profile authenticates. `api_key` for every provider except Bedrock,
275
+ * which takes AWS keys (secret arrives separately in `secrets`) or a bearer
276
+ * token.
277
+ */
278
+ type LlmProfileAuth = {
279
+ type: "api_key";
280
+ } | {
281
+ type: "aws_keys";
282
+ accessKeyId: string;
283
+ } | {
284
+ type: "bearer_token";
285
+ };
286
+ /**
287
+ * Non-secret provider options. The server normalizes per provider: absent
288
+ * fields are omitted on the wire, never `null`.
289
+ */
290
+ interface LlmProfileConfig {
291
+ auth: LlmProfileAuth;
292
+ /** Bedrock. */
293
+ region?: string;
294
+ /** Azure: exactly one of `resourceId` / `baseUrl`. */
295
+ resourceId?: string;
296
+ /** Azure (alternative to `resourceId`) or `custom` (required). */
297
+ baseUrl?: string;
298
+ /** Azure. */
299
+ apiVersion?: string;
300
+ /** `custom`: header names whose values live in `secrets.headers`. */
301
+ headerNames?: string[];
302
+ }
303
+ /**
304
+ * What reads return instead of secrets: a `first3***last3` mask per stored
305
+ * value (fully starred when short) and custom header names only. Absent slots
306
+ * arrive as explicit `null` (the server does not omit them).
307
+ */
308
+ interface LlmProfileSecretMasks {
309
+ apiKey?: string | null;
310
+ secretAccessKey?: string | null;
311
+ token?: string | null;
312
+ headers: string[];
313
+ }
314
+ interface LlmProfile {
315
+ id: string;
316
+ workspaceId: string;
317
+ name: string;
318
+ provider: LlmProfileProvider;
319
+ config: LlmProfileConfig;
320
+ models: string[];
321
+ secrets: LlmProfileSecretMasks;
322
+ createdAt: string;
323
+ updatedAt: string;
324
+ }
325
+ //#endregion
266
326
  //#region src/session-block.d.ts
267
327
  /**
268
328
  * Shared contract for debugger-session blocks — an ordered list of blocks (see
@@ -377,6 +437,40 @@ interface Signal {
377
437
  trigger: SignalTrigger;
378
438
  filters: SignalFilter[];
379
439
  mode: SignalMode;
440
+ /** Workspace LLM profile id; `null` = runs on the server's env LLM. */
441
+ llmProfileId: string | null;
442
+ /** Display name of `llmProfileId`; `null` alongside it. */
443
+ llmProfileName: string | null;
444
+ /** Model pinned within the profile; `null` alongside `llmProfileId`. */
445
+ model: string | null;
446
+ }
447
+ /**
448
+ * Stored version blob on `GET /signals/{id}/versions`. Schema key is
449
+ * `structuredOutputSchema`, not `structuredOutput` (that name is only on
450
+ * `GET /signals/{id}`). `trigger`/`filters` are stored Filter[] JSON
451
+ * (`signal_triggers.value` / `filters`), not the CLI tagged {@link SignalTrigger}.
452
+ */
453
+ interface SignalDefinition {
454
+ name: string;
455
+ prompt: string;
456
+ structuredOutputSchema: SignalStructuredOutput;
457
+ trigger: SignalFilter[];
458
+ filters: SignalFilter[];
459
+ mode: SignalMode;
460
+ sampleRate: number | null;
461
+ disabled: boolean;
462
+ /** Both `null` = env-var routing. Cloud signals stay `null`. */
463
+ llmProfileId: string | null;
464
+ llmModel: string | null;
465
+ }
466
+ /**
467
+ * One historical judge definition. `GET /signals/{id}`'s `version` field is
468
+ * only the current pointer; this is the version log.
469
+ */
470
+ interface SignalVersion {
471
+ version: number;
472
+ definition: SignalDefinition;
473
+ createdAt: string;
380
474
  }
381
475
  //#endregion
382
476
  //#region src/sql-schema.d.ts
@@ -496,5 +590,5 @@ type Event = {
496
590
  value: number | string | null;
497
591
  };
498
592
  //#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, SignalMode, SignalStructuredOutput, SignalTrigger, SpanExporter, SpanProcessor, SpanType, SqlSchema, SqlSchemaColumn, SqlSchemaEnum, SqlSchemaTable, StringUUID, TextBlockContent, TraceBlockContent, TraceType, TracingLevel, errorMessage };
593
+ export { CachedSpan, CommandBlockContent, DEBUG_SESSION_DIR, DEBUG_SESSION_FILE, Datapoint, Dataset, DebugContext, DebugSessionFile, EvaluationBlockContent, EvaluationDatapoint, EvaluationDatapointDatasetLink, Event, GetDatapointsResponse, InitEvaluationResponse, InitializeOptions, LaminarSpanContext, LlmProfile, LlmProfileAuth, LlmProfileConfig, LlmProfileProvider, LlmProfileSecretMasks, MaskInputOptions, PushDatapointsResponse, SemanticSearchResponse, SemanticSearchResult, SessionBlock, SessionBlockContent, SessionBlockType, SessionRecordingOptions, Signal, SignalDefinition, SignalFilter, SignalMode, SignalStructuredOutput, SignalTrigger, SignalVersion, SpanExporter, SpanProcessor, SpanType, SqlSchema, SqlSchemaColumn, SqlSchemaEnum, SqlSchemaTable, StringUUID, TextBlockContent, TraceBlockContent, TraceType, TracingLevel, errorMessage };
500
594
  //# 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.45",
3
+ "version": "0.8.46",
4
4
  "description": "Shared types for Laminar AI SDK",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",