langwatch 1.5.0 → 1.6.0

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.
Files changed (30) hide show
  1. package/dist/{chunk-XIN5LXHQ.js → chunk-B6GGJBDM.js} +12 -12
  2. package/dist/{chunk-XIN5LXHQ.js.map → chunk-B6GGJBDM.js.map} +1 -1
  3. package/dist/{chunk-Y6XAM26B.mjs → chunk-IBZ4J3HY.mjs} +2 -2
  4. package/dist/chunk-IBZ4J3HY.mjs.map +1 -0
  5. package/dist/{chunk-QZRTEEGV.mjs → chunk-LZS4B33H.mjs} +2 -2
  6. package/dist/{chunk-5ERLGHP2.js → chunk-VBI6IJS4.js} +2 -2
  7. package/dist/chunk-VBI6IJS4.js.map +1 -0
  8. package/dist/cli/bundle.js +415 -210
  9. package/dist/{implementation-Ro3LpjAt.d.mts → implementation-D3kg-y8n.d.mts} +1 -1
  10. package/dist/{implementation-CvPr4t60.d.ts → implementation-D4uH_rQl.d.ts} +1 -1
  11. package/dist/index.d.mts +20 -2
  12. package/dist/index.d.ts +20 -2
  13. package/dist/index.js +33 -33
  14. package/dist/index.js.map +1 -1
  15. package/dist/index.mjs +2 -2
  16. package/dist/index.mjs.map +1 -1
  17. package/dist/observability-sdk/index.d.mts +3 -3
  18. package/dist/observability-sdk/index.d.ts +3 -3
  19. package/dist/observability-sdk/index.js +2 -2
  20. package/dist/observability-sdk/index.mjs +1 -1
  21. package/dist/observability-sdk/instrumentation/langchain/index.d.mts +1 -1
  22. package/dist/observability-sdk/instrumentation/langchain/index.d.ts +1 -1
  23. package/dist/observability-sdk/setup/node/index.js +3 -3
  24. package/dist/observability-sdk/setup/node/index.mjs +2 -2
  25. package/dist/{types-VoDc_AXK.d.mts → types-BS1JaoZZ.d.mts} +100 -4
  26. package/dist/{types-CHIvGRuv.d.ts → types-DBNWsM_D.d.ts} +100 -4
  27. package/package.json +3 -3
  28. package/dist/chunk-5ERLGHP2.js.map +0 -1
  29. package/dist/chunk-Y6XAM26B.mjs.map +0 -1
  30. /package/dist/{chunk-QZRTEEGV.mjs.map → chunk-LZS4B33H.mjs.map} +0 -0
@@ -1,9 +1,9 @@
1
- export { F as FilterableBatchSpanProcessor, L as LangWatchExporter, b as LangWatchExporterOptions, c as LangWatchLogger, L as LangWatchTraceExporter, b as LangWatchTraceExporterOptions, S as SpanProcessingExcludeRule, g as getLangWatchLogger, d as getLangWatchLoggerFromProvider, a as getLangWatchTracer, e as getLangWatchTracerFromProvider } from '../implementation-Ro3LpjAt.mjs';
1
+ export { F as FilterableBatchSpanProcessor, L as LangWatchExporter, b as LangWatchExporterOptions, c as LangWatchLogger, L as LangWatchTraceExporter, b as LangWatchTraceExporterOptions, S as SpanProcessingExcludeRule, g as getLangWatchLogger, d as getLangWatchLoggerFromProvider, a as getLangWatchTracer, e as getLangWatchTracerFromProvider } from '../implementation-D3kg-y8n.mjs';
2
2
  import { OTLPLogExporter } from '@opentelemetry/exporter-logs-otlp-http';
3
3
  import { D as DataCaptureMode } from '../types-DLfhJb38.mjs';
4
4
  export { a as DataCaptureConfig, b as DataCaptureContext, c as DataCaptureOptions, d as DataCapturePredicate } from '../types-DLfhJb38.mjs';
5
- import { L as LangWatchSpan } from '../types-VoDc_AXK.mjs';
6
- export { A as AddEvaluationParams, E as EvaluationStatus, e as EvaluationTimestamps, I as INPUT_OUTPUT_TYPES, f as InputOutputType, J as JsonSerializable, g as LangWatchSpanMetrics, h as LangWatchSpanOptions, i as LangWatchSpanRAGContext, j as LangWatchTracer, S as SimpleChatMessage, k as SpanType, l as emitEvaluationEvent, s as spanTypes } from '../types-VoDc_AXK.mjs';
5
+ import { L as LangWatchSpan } from '../types-BS1JaoZZ.mjs';
6
+ export { A as AddEvaluationParams, E as EvaluationStatus, e as EvaluationTimestamps, I as INPUT_OUTPUT_TYPES, f as InputOutputType, J as JsonSerializable, g as LangWatchSpanMetrics, h as LangWatchSpanOptions, i as LangWatchSpanRAGContext, j as LangWatchTracer, S as SimpleChatMessage, k as SpanType, l as emitEvaluationEvent, s as spanTypes } from '../types-BS1JaoZZ.mjs';
7
7
  import { Span } from '@opentelemetry/api';
8
8
  export { S as SemConvAttributeKey, a as SemConvAttributes, b as SemConvLogRecordAttributes, l as attributes } from '../types-VOZv9LYO.mjs';
9
9
  import '@opentelemetry/sdk-trace-base';
@@ -1,9 +1,9 @@
1
- export { F as FilterableBatchSpanProcessor, L as LangWatchExporter, b as LangWatchExporterOptions, c as LangWatchLogger, L as LangWatchTraceExporter, b as LangWatchTraceExporterOptions, S as SpanProcessingExcludeRule, g as getLangWatchLogger, d as getLangWatchLoggerFromProvider, a as getLangWatchTracer, e as getLangWatchTracerFromProvider } from '../implementation-CvPr4t60.js';
1
+ export { F as FilterableBatchSpanProcessor, L as LangWatchExporter, b as LangWatchExporterOptions, c as LangWatchLogger, L as LangWatchTraceExporter, b as LangWatchTraceExporterOptions, S as SpanProcessingExcludeRule, g as getLangWatchLogger, d as getLangWatchLoggerFromProvider, a as getLangWatchTracer, e as getLangWatchTracerFromProvider } from '../implementation-D4uH_rQl.js';
2
2
  import { OTLPLogExporter } from '@opentelemetry/exporter-logs-otlp-http';
3
3
  import { D as DataCaptureMode } from '../types-DLfhJb38.js';
4
4
  export { a as DataCaptureConfig, b as DataCaptureContext, c as DataCaptureOptions, d as DataCapturePredicate } from '../types-DLfhJb38.js';
5
- import { L as LangWatchSpan } from '../types-CHIvGRuv.js';
6
- export { A as AddEvaluationParams, E as EvaluationStatus, e as EvaluationTimestamps, I as INPUT_OUTPUT_TYPES, f as InputOutputType, J as JsonSerializable, g as LangWatchSpanMetrics, h as LangWatchSpanOptions, i as LangWatchSpanRAGContext, j as LangWatchTracer, S as SimpleChatMessage, k as SpanType, l as emitEvaluationEvent, s as spanTypes } from '../types-CHIvGRuv.js';
5
+ import { L as LangWatchSpan } from '../types-DBNWsM_D.js';
6
+ export { A as AddEvaluationParams, E as EvaluationStatus, e as EvaluationTimestamps, I as INPUT_OUTPUT_TYPES, f as InputOutputType, J as JsonSerializable, g as LangWatchSpanMetrics, h as LangWatchSpanOptions, i as LangWatchSpanRAGContext, j as LangWatchTracer, S as SimpleChatMessage, k as SpanType, l as emitEvaluationEvent, s as spanTypes } from '../types-DBNWsM_D.js';
7
7
  import { Span } from '@opentelemetry/api';
8
8
  export { S as SemConvAttributeKey, a as SemConvAttributes, b as SemConvLogRecordAttributes, l as attributes } from '../types-VOZv9LYO.js';
9
9
  import '@opentelemetry/sdk-trace-base';
@@ -14,7 +14,7 @@ var _chunkK6KPNTQOjs = require('../chunk-K6KPNTQO.js');
14
14
 
15
15
 
16
16
 
17
- var _chunk5ERLGHP2js = require('../chunk-5ERLGHP2.js');
17
+ var _chunkVBI6IJS4js = require('../chunk-VBI6IJS4.js');
18
18
 
19
19
 
20
20
 
@@ -38,5 +38,5 @@ var _chunkCLTKABMOjs = require('../chunk-CLTKABMO.js');
38
38
 
39
39
 
40
40
 
41
- exports.DataCapturePresets = _chunkZTOXEWNXjs.DataCapturePresets; exports.FilterableBatchSpanProcessor = _chunkZTOXEWNXjs.FilterableBatchSpanProcessor; exports.LangWatchExporter = _chunk5ERLGHP2js.LangWatchTraceExporter; exports.LangWatchLogsExporter = _chunk5ERLGHP2js.LangWatchLogsExporter; exports.LangWatchTraceExporter = _chunk5ERLGHP2js.LangWatchTraceExporter; exports.attributes = _chunkCLTKABMOjs.attributes_exports; exports.createLangWatchSpan = _chunkK6KPNTQOjs.createLangWatchSpan; exports.emitEvaluationEvent = _chunkK6KPNTQOjs.emitEvaluationEvent; exports.getDataCaptureMode = _chunkCLTKABMOjs.getDataCaptureMode; exports.getLangWatchLogger = _chunk5ERLGHP2js.getLangWatchLogger; exports.getLangWatchLoggerFromProvider = _chunk5ERLGHP2js.getLangWatchLoggerFromProvider; exports.getLangWatchTracer = _chunkK6KPNTQOjs.getLangWatchTracer; exports.getLangWatchTracerFromProvider = _chunkK6KPNTQOjs.getLangWatchTracerFromProvider; exports.shouldCaptureInput = _chunkCLTKABMOjs.shouldCaptureInput; exports.shouldCaptureOutput = _chunkCLTKABMOjs.shouldCaptureOutput; exports.spanTypes = _chunkK6KPNTQOjs.spanTypes;
41
+ exports.DataCapturePresets = _chunkZTOXEWNXjs.DataCapturePresets; exports.FilterableBatchSpanProcessor = _chunkZTOXEWNXjs.FilterableBatchSpanProcessor; exports.LangWatchExporter = _chunkVBI6IJS4js.LangWatchTraceExporter; exports.LangWatchLogsExporter = _chunkVBI6IJS4js.LangWatchLogsExporter; exports.LangWatchTraceExporter = _chunkVBI6IJS4js.LangWatchTraceExporter; exports.attributes = _chunkCLTKABMOjs.attributes_exports; exports.createLangWatchSpan = _chunkK6KPNTQOjs.createLangWatchSpan; exports.emitEvaluationEvent = _chunkK6KPNTQOjs.emitEvaluationEvent; exports.getDataCaptureMode = _chunkCLTKABMOjs.getDataCaptureMode; exports.getLangWatchLogger = _chunkVBI6IJS4js.getLangWatchLogger; exports.getLangWatchLoggerFromProvider = _chunkVBI6IJS4js.getLangWatchLoggerFromProvider; exports.getLangWatchTracer = _chunkK6KPNTQOjs.getLangWatchTracer; exports.getLangWatchTracerFromProvider = _chunkK6KPNTQOjs.getLangWatchTracerFromProvider; exports.shouldCaptureInput = _chunkCLTKABMOjs.shouldCaptureInput; exports.shouldCaptureOutput = _chunkCLTKABMOjs.shouldCaptureOutput; exports.spanTypes = _chunkK6KPNTQOjs.spanTypes;
42
42
  //# sourceMappingURL=index.js.map
@@ -14,7 +14,7 @@ import {
14
14
  LangWatchTraceExporter,
15
15
  getLangWatchLogger,
16
16
  getLangWatchLoggerFromProvider
17
- } from "../chunk-Y6XAM26B.mjs";
17
+ } from "../chunk-IBZ4J3HY.mjs";
18
18
  import {
19
19
  attributes_exports,
20
20
  getDataCaptureMode,
@@ -1,6 +1,6 @@
1
1
  import * as _opentelemetry_api from '@opentelemetry/api';
2
2
  import { Attributes } from '@opentelemetry/api';
3
- import { j as LangWatchTracer, L as LangWatchSpan, m as ChatMessage } from '../../../types-VoDc_AXK.mjs';
3
+ import { j as LangWatchTracer, L as LangWatchSpan, m as ChatMessage } from '../../../types-BS1JaoZZ.mjs';
4
4
  import { AgentAction, AgentFinish } from '@langchain/core/agents';
5
5
  import { BaseCallbackHandler } from '@langchain/core/callbacks/base';
6
6
  import { DocumentInterface } from '@langchain/core/documents';
@@ -1,6 +1,6 @@
1
1
  import * as _opentelemetry_api from '@opentelemetry/api';
2
2
  import { Attributes } from '@opentelemetry/api';
3
- import { j as LangWatchTracer, L as LangWatchSpan, m as ChatMessage } from '../../../types-CHIvGRuv.js';
3
+ import { j as LangWatchTracer, L as LangWatchSpan, m as ChatMessage } from '../../../types-DBNWsM_D.js';
4
4
  import { AgentAction, AgentFinish } from '@langchain/core/agents';
5
5
  import { BaseCallbackHandler } from '@langchain/core/callbacks/base';
6
6
  import { DocumentInterface } from '@langchain/core/documents';
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkXIN5LXHQjs = require('../../../chunk-XIN5LXHQ.js');
5
- require('../../../chunk-5ERLGHP2.js');
4
+ var _chunkB6GGJBDMjs = require('../../../chunk-B6GGJBDM.js');
5
+ require('../../../chunk-VBI6IJS4.js');
6
6
  require('../../../chunk-CLTKABMO.js');
7
7
 
8
8
 
9
9
 
10
- exports.ensureSetup = _chunkXIN5LXHQjs.ensureSetup; exports.setupObservability = _chunkXIN5LXHQjs.setupObservability;
10
+ exports.ensureSetup = _chunkB6GGJBDMjs.ensureSetup; exports.setupObservability = _chunkB6GGJBDMjs.setupObservability;
11
11
  //# sourceMappingURL=index.js.map
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ensureSetup,
3
3
  setupObservability
4
- } from "../../../chunk-QZRTEEGV.mjs";
5
- import "../../../chunk-Y6XAM26B.mjs";
4
+ } from "../../../chunk-LZS4B33H.mjs";
5
+ import "../../../chunk-IBZ4J3HY.mjs";
6
6
  import "../../../chunk-CMZFFKLA.mjs";
7
7
  export {
8
8
  ensureSetup,
@@ -3094,7 +3094,7 @@ interface paths {
3094
3094
  head?: never;
3095
3095
  /**
3096
3096
  * Update a provisioned user
3097
- * @description Applies RFC 7644 section 3.5.2 patch operations. What is implemented: `replace` of `active` (deactivating or reactivating the account), of `userName`, and of `name.givenName` / `name.familyName`, written either as an operation path or as keys inside a value object; and `add`, `replace` or `remove` of the enterprise `costCenter`, which reassigns the member's department. Operations outside that set are accepted and change nothing, so a provider sending its full patch set is never rejected.
3097
+ * @description Applies RFC 7644 section 3.5.2 patch operations. What is implemented: `replace` of `active` (deactivating or reactivating the account), of `userName`, and of `name.givenName` / `name.familyName`, written either as an operation path or as keys inside a value object; and `add`, `replace` or `remove` of the enterprise `costCenter`, which reassigns the member's department. `replace`, `add` and `remove` are the only operation names understood, read without regard to case, so the capitalized `Replace` that Entra ID writes is accepted; any other name, or a missing or non-string one, is rejected with a 400. An understood operation aimed at anything not listed above is accepted and changes nothing.
3098
3098
  */
3099
3099
  patch: operations["scimPatchUser"];
3100
3100
  trace?: never;
@@ -3150,7 +3150,7 @@ interface paths {
3150
3150
  head?: never;
3151
3151
  /**
3152
3152
  * Update a provisioned group
3153
- * @description Applies RFC 7644 section 3.5.2 patch operations. What is implemented: `add` of members, `remove` of members (named by a value filter on the path, as Entra ID writes it, or in the operation value), `replace` of `displayName`, and `replace` of the whole member list. Operations outside that set are accepted and change nothing.
3153
+ * @description Applies RFC 7644 section 3.5.2 patch operations. What is implemented: `add` of members, `remove` of members (named by a value filter on the path, as Entra ID writes it, or in the operation value), `replace` of `displayName`, and `replace` of the whole member list. `replace`, `add` and `remove` are the only operation names understood, read without regard to case, so the capitalized `Add` / `Remove` that Entra ID writes are accepted; any other name, or a missing or non-string one, is rejected with a 400. An `add` or a `remove` aimed at anything other than members is accepted and changes nothing. A `replace` that is not a `displayName` rename is treated as a replacement of the whole member list, so one that carries no members empties the group.
3154
3154
  */
3155
3155
  patch: operations["scimPatchGroup"];
3156
3156
  trace?: never;
@@ -5441,8 +5441,8 @@ interface operations {
5441
5441
  [key: string]: string | number | boolean | null;
5442
5442
  };
5443
5443
  timeWindow?: {
5444
- start: string;
5445
- end: string;
5444
+ start: string | number;
5445
+ end: string | number;
5446
5446
  };
5447
5447
  };
5448
5448
  };
@@ -5541,6 +5541,26 @@ interface operations {
5541
5541
  };
5542
5542
  };
5543
5543
  };
5544
+ /** @description Unprocessable Entity */
5545
+ 422: {
5546
+ headers: {
5547
+ [name: string]: unknown;
5548
+ };
5549
+ content: {
5550
+ "application/json": {
5551
+ error: {
5552
+ type: string;
5553
+ code: string;
5554
+ message: string;
5555
+ meta?: {
5556
+ [key: string]: unknown;
5557
+ };
5558
+ trace_id?: string;
5559
+ span_id?: string;
5560
+ };
5561
+ };
5562
+ };
5563
+ };
5544
5564
  /** @description Internal Server Error */
5545
5565
  500: {
5546
5566
  headers: {
@@ -10424,10 +10444,19 @@ interface operations {
10424
10444
  routing_mode: "none" | "fallback_all" | "policy";
10425
10445
  config?: unknown;
10426
10446
  revision: string;
10447
+ /** Format: date-time */
10427
10448
  created_at: string;
10449
+ /** Format: date-time */
10428
10450
  updated_at: string;
10451
+ /** Format: date-time */
10429
10452
  last_used_at: string | null;
10453
+ /** Format: date-time */
10430
10454
  revoked_at: string | null;
10455
+ /**
10456
+ * Format: date-time
10457
+ * @description When the key stops serving, or null for a key that never expires. Requests presented after this moment are refused with `virtual_key_expired`. `status` stays `active` past the date on purpose: the three status values are what clients switch on, and the key stays editable so the date can be extended.
10458
+ */
10459
+ expires_at: string | null;
10431
10460
  }[];
10432
10461
  /** @description Pass back as `cursor` for the next page. Null means the walk is exhausted; a full page does NOT mean there is more. */
10433
10462
  next_cursor: string | null;
@@ -10541,6 +10570,8 @@ interface operations {
10541
10570
  routing_policy_id?: string | null;
10542
10571
  /** @enum {string} */
10543
10572
  routing_mode?: "none" | "fallback_all" | "policy";
10573
+ /** @description When the key stops serving. Omit it and the key never expires. A date that has already passed is refused with `virtual_key_expiry_in_past`, rather than writing a key that is dead on arrival. */
10574
+ expires_at?: string;
10544
10575
  budget?: {
10545
10576
  limit_usd: number | string;
10546
10577
  /** @enum {string} */
@@ -10659,10 +10690,19 @@ interface operations {
10659
10690
  routing_mode: "none" | "fallback_all" | "policy";
10660
10691
  config?: unknown;
10661
10692
  revision: string;
10693
+ /** Format: date-time */
10662
10694
  created_at: string;
10695
+ /** Format: date-time */
10663
10696
  updated_at: string;
10697
+ /** Format: date-time */
10664
10698
  last_used_at: string | null;
10699
+ /** Format: date-time */
10665
10700
  revoked_at: string | null;
10701
+ /**
10702
+ * Format: date-time
10703
+ * @description When the key stops serving, or null for a key that never expires. Requests presented after this moment are refused with `virtual_key_expired`. `status` stays `active` past the date on purpose: the three status values are what clients switch on, and the key stays editable so the date can be extended.
10704
+ */
10705
+ expires_at: string | null;
10666
10706
  };
10667
10707
  secret: string;
10668
10708
  };
@@ -10817,10 +10857,19 @@ interface operations {
10817
10857
  routing_mode: "none" | "fallback_all" | "policy";
10818
10858
  config?: unknown;
10819
10859
  revision: string;
10860
+ /** Format: date-time */
10820
10861
  created_at: string;
10862
+ /** Format: date-time */
10821
10863
  updated_at: string;
10864
+ /** Format: date-time */
10822
10865
  last_used_at: string | null;
10866
+ /** Format: date-time */
10823
10867
  revoked_at: string | null;
10868
+ /**
10869
+ * Format: date-time
10870
+ * @description When the key stops serving, or null for a key that never expires. Requests presented after this moment are refused with `virtual_key_expired`. `status` stays `active` past the date on purpose: the three status values are what clients switch on, and the key stays editable so the date can be extended.
10871
+ */
10872
+ expires_at: string | null;
10824
10873
  };
10825
10874
  };
10826
10875
  };
@@ -10951,6 +11000,8 @@ interface operations {
10951
11000
  routing_policy_id?: string | null;
10952
11001
  /** @enum {string} */
10953
11002
  routing_mode?: "none" | "fallback_all" | "policy";
11003
+ /** @description When the key stops serving. Omit it and the stored date stays where it is; null clears it, so the key never expires; a date moves it. A key whose date has already passed accepts this edit like any other, which is how an expired key is put back in service without minting a new secret. A date in the past is refused with `virtual_key_expiry_in_past`. */
11004
+ expires_at?: string | null;
10954
11005
  budget?: {
10955
11006
  limit_usd: number | string;
10956
11007
  /** @enum {string} */
@@ -11065,10 +11116,19 @@ interface operations {
11065
11116
  routing_mode: "none" | "fallback_all" | "policy";
11066
11117
  config?: unknown;
11067
11118
  revision: string;
11119
+ /** Format: date-time */
11068
11120
  created_at: string;
11121
+ /** Format: date-time */
11069
11122
  updated_at: string;
11123
+ /** Format: date-time */
11070
11124
  last_used_at: string | null;
11125
+ /** Format: date-time */
11071
11126
  revoked_at: string | null;
11127
+ /**
11128
+ * Format: date-time
11129
+ * @description When the key stops serving, or null for a key that never expires. Requests presented after this moment are refused with `virtual_key_expired`. `status` stays `active` past the date on purpose: the three status values are what clients switch on, and the key stays editable so the date can be extended.
11130
+ */
11131
+ expires_at: string | null;
11072
11132
  };
11073
11133
  };
11074
11134
  };
@@ -11356,10 +11416,19 @@ interface operations {
11356
11416
  routing_mode: "none" | "fallback_all" | "policy";
11357
11417
  config?: unknown;
11358
11418
  revision: string;
11419
+ /** Format: date-time */
11359
11420
  created_at: string;
11421
+ /** Format: date-time */
11360
11422
  updated_at: string;
11423
+ /** Format: date-time */
11361
11424
  last_used_at: string | null;
11425
+ /** Format: date-time */
11362
11426
  revoked_at: string | null;
11427
+ /**
11428
+ * Format: date-time
11429
+ * @description When the key stops serving, or null for a key that never expires. Requests presented after this moment are refused with `virtual_key_expired`. `status` stays `active` past the date on purpose: the three status values are what clients switch on, and the key stays editable so the date can be extended.
11430
+ */
11431
+ expires_at: string | null;
11363
11432
  };
11364
11433
  secret: string;
11365
11434
  };
@@ -11501,10 +11570,19 @@ interface operations {
11501
11570
  routing_mode: "none" | "fallback_all" | "policy";
11502
11571
  config?: unknown;
11503
11572
  revision: string;
11573
+ /** Format: date-time */
11504
11574
  created_at: string;
11575
+ /** Format: date-time */
11505
11576
  updated_at: string;
11577
+ /** Format: date-time */
11506
11578
  last_used_at: string | null;
11579
+ /** Format: date-time */
11507
11580
  revoked_at: string | null;
11581
+ /**
11582
+ * Format: date-time
11583
+ * @description When the key stops serving, or null for a key that never expires. Requests presented after this moment are refused with `virtual_key_expired`. `status` stays `active` past the date on purpose: the three status values are what clients switch on, and the key stays editable so the date can be extended.
11584
+ */
11585
+ expires_at: string | null;
11508
11586
  };
11509
11587
  };
11510
11588
  };
@@ -11638,10 +11716,19 @@ interface operations {
11638
11716
  routing_mode: "none" | "fallback_all" | "policy";
11639
11717
  config?: unknown;
11640
11718
  revision: string;
11719
+ /** Format: date-time */
11641
11720
  created_at: string;
11721
+ /** Format: date-time */
11642
11722
  updated_at: string;
11723
+ /** Format: date-time */
11643
11724
  last_used_at: string | null;
11725
+ /** Format: date-time */
11644
11726
  revoked_at: string | null;
11727
+ /**
11728
+ * Format: date-time
11729
+ * @description When the key stops serving, or null for a key that never expires. Requests presented after this moment are refused with `virtual_key_expired`. `status` stays `active` past the date on purpose: the three status values are what clients switch on, and the key stays editable so the date can be extended.
11730
+ */
11731
+ expires_at: string | null;
11645
11732
  };
11646
11733
  };
11647
11734
  };
@@ -11775,10 +11862,19 @@ interface operations {
11775
11862
  routing_mode: "none" | "fallback_all" | "policy";
11776
11863
  config?: unknown;
11777
11864
  revision: string;
11865
+ /** Format: date-time */
11778
11866
  created_at: string;
11867
+ /** Format: date-time */
11779
11868
  updated_at: string;
11869
+ /** Format: date-time */
11780
11870
  last_used_at: string | null;
11871
+ /** Format: date-time */
11781
11872
  revoked_at: string | null;
11873
+ /**
11874
+ * Format: date-time
11875
+ * @description When the key stops serving, or null for a key that never expires. Requests presented after this moment are refused with `virtual_key_expired`. `status` stays `active` past the date on purpose: the three status values are what clients switch on, and the key stays editable so the date can be extended.
11876
+ */
11877
+ expires_at: string | null;
11782
11878
  };
11783
11879
  };
11784
11880
  };
@@ -3094,7 +3094,7 @@ interface paths {
3094
3094
  head?: never;
3095
3095
  /**
3096
3096
  * Update a provisioned user
3097
- * @description Applies RFC 7644 section 3.5.2 patch operations. What is implemented: `replace` of `active` (deactivating or reactivating the account), of `userName`, and of `name.givenName` / `name.familyName`, written either as an operation path or as keys inside a value object; and `add`, `replace` or `remove` of the enterprise `costCenter`, which reassigns the member's department. Operations outside that set are accepted and change nothing, so a provider sending its full patch set is never rejected.
3097
+ * @description Applies RFC 7644 section 3.5.2 patch operations. What is implemented: `replace` of `active` (deactivating or reactivating the account), of `userName`, and of `name.givenName` / `name.familyName`, written either as an operation path or as keys inside a value object; and `add`, `replace` or `remove` of the enterprise `costCenter`, which reassigns the member's department. `replace`, `add` and `remove` are the only operation names understood, read without regard to case, so the capitalized `Replace` that Entra ID writes is accepted; any other name, or a missing or non-string one, is rejected with a 400. An understood operation aimed at anything not listed above is accepted and changes nothing.
3098
3098
  */
3099
3099
  patch: operations["scimPatchUser"];
3100
3100
  trace?: never;
@@ -3150,7 +3150,7 @@ interface paths {
3150
3150
  head?: never;
3151
3151
  /**
3152
3152
  * Update a provisioned group
3153
- * @description Applies RFC 7644 section 3.5.2 patch operations. What is implemented: `add` of members, `remove` of members (named by a value filter on the path, as Entra ID writes it, or in the operation value), `replace` of `displayName`, and `replace` of the whole member list. Operations outside that set are accepted and change nothing.
3153
+ * @description Applies RFC 7644 section 3.5.2 patch operations. What is implemented: `add` of members, `remove` of members (named by a value filter on the path, as Entra ID writes it, or in the operation value), `replace` of `displayName`, and `replace` of the whole member list. `replace`, `add` and `remove` are the only operation names understood, read without regard to case, so the capitalized `Add` / `Remove` that Entra ID writes are accepted; any other name, or a missing or non-string one, is rejected with a 400. An `add` or a `remove` aimed at anything other than members is accepted and changes nothing. A `replace` that is not a `displayName` rename is treated as a replacement of the whole member list, so one that carries no members empties the group.
3154
3154
  */
3155
3155
  patch: operations["scimPatchGroup"];
3156
3156
  trace?: never;
@@ -5441,8 +5441,8 @@ interface operations {
5441
5441
  [key: string]: string | number | boolean | null;
5442
5442
  };
5443
5443
  timeWindow?: {
5444
- start: string;
5445
- end: string;
5444
+ start: string | number;
5445
+ end: string | number;
5446
5446
  };
5447
5447
  };
5448
5448
  };
@@ -5541,6 +5541,26 @@ interface operations {
5541
5541
  };
5542
5542
  };
5543
5543
  };
5544
+ /** @description Unprocessable Entity */
5545
+ 422: {
5546
+ headers: {
5547
+ [name: string]: unknown;
5548
+ };
5549
+ content: {
5550
+ "application/json": {
5551
+ error: {
5552
+ type: string;
5553
+ code: string;
5554
+ message: string;
5555
+ meta?: {
5556
+ [key: string]: unknown;
5557
+ };
5558
+ trace_id?: string;
5559
+ span_id?: string;
5560
+ };
5561
+ };
5562
+ };
5563
+ };
5544
5564
  /** @description Internal Server Error */
5545
5565
  500: {
5546
5566
  headers: {
@@ -10424,10 +10444,19 @@ interface operations {
10424
10444
  routing_mode: "none" | "fallback_all" | "policy";
10425
10445
  config?: unknown;
10426
10446
  revision: string;
10447
+ /** Format: date-time */
10427
10448
  created_at: string;
10449
+ /** Format: date-time */
10428
10450
  updated_at: string;
10451
+ /** Format: date-time */
10429
10452
  last_used_at: string | null;
10453
+ /** Format: date-time */
10430
10454
  revoked_at: string | null;
10455
+ /**
10456
+ * Format: date-time
10457
+ * @description When the key stops serving, or null for a key that never expires. Requests presented after this moment are refused with `virtual_key_expired`. `status` stays `active` past the date on purpose: the three status values are what clients switch on, and the key stays editable so the date can be extended.
10458
+ */
10459
+ expires_at: string | null;
10431
10460
  }[];
10432
10461
  /** @description Pass back as `cursor` for the next page. Null means the walk is exhausted; a full page does NOT mean there is more. */
10433
10462
  next_cursor: string | null;
@@ -10541,6 +10570,8 @@ interface operations {
10541
10570
  routing_policy_id?: string | null;
10542
10571
  /** @enum {string} */
10543
10572
  routing_mode?: "none" | "fallback_all" | "policy";
10573
+ /** @description When the key stops serving. Omit it and the key never expires. A date that has already passed is refused with `virtual_key_expiry_in_past`, rather than writing a key that is dead on arrival. */
10574
+ expires_at?: string;
10544
10575
  budget?: {
10545
10576
  limit_usd: number | string;
10546
10577
  /** @enum {string} */
@@ -10659,10 +10690,19 @@ interface operations {
10659
10690
  routing_mode: "none" | "fallback_all" | "policy";
10660
10691
  config?: unknown;
10661
10692
  revision: string;
10693
+ /** Format: date-time */
10662
10694
  created_at: string;
10695
+ /** Format: date-time */
10663
10696
  updated_at: string;
10697
+ /** Format: date-time */
10664
10698
  last_used_at: string | null;
10699
+ /** Format: date-time */
10665
10700
  revoked_at: string | null;
10701
+ /**
10702
+ * Format: date-time
10703
+ * @description When the key stops serving, or null for a key that never expires. Requests presented after this moment are refused with `virtual_key_expired`. `status` stays `active` past the date on purpose: the three status values are what clients switch on, and the key stays editable so the date can be extended.
10704
+ */
10705
+ expires_at: string | null;
10666
10706
  };
10667
10707
  secret: string;
10668
10708
  };
@@ -10817,10 +10857,19 @@ interface operations {
10817
10857
  routing_mode: "none" | "fallback_all" | "policy";
10818
10858
  config?: unknown;
10819
10859
  revision: string;
10860
+ /** Format: date-time */
10820
10861
  created_at: string;
10862
+ /** Format: date-time */
10821
10863
  updated_at: string;
10864
+ /** Format: date-time */
10822
10865
  last_used_at: string | null;
10866
+ /** Format: date-time */
10823
10867
  revoked_at: string | null;
10868
+ /**
10869
+ * Format: date-time
10870
+ * @description When the key stops serving, or null for a key that never expires. Requests presented after this moment are refused with `virtual_key_expired`. `status` stays `active` past the date on purpose: the three status values are what clients switch on, and the key stays editable so the date can be extended.
10871
+ */
10872
+ expires_at: string | null;
10824
10873
  };
10825
10874
  };
10826
10875
  };
@@ -10951,6 +11000,8 @@ interface operations {
10951
11000
  routing_policy_id?: string | null;
10952
11001
  /** @enum {string} */
10953
11002
  routing_mode?: "none" | "fallback_all" | "policy";
11003
+ /** @description When the key stops serving. Omit it and the stored date stays where it is; null clears it, so the key never expires; a date moves it. A key whose date has already passed accepts this edit like any other, which is how an expired key is put back in service without minting a new secret. A date in the past is refused with `virtual_key_expiry_in_past`. */
11004
+ expires_at?: string | null;
10954
11005
  budget?: {
10955
11006
  limit_usd: number | string;
10956
11007
  /** @enum {string} */
@@ -11065,10 +11116,19 @@ interface operations {
11065
11116
  routing_mode: "none" | "fallback_all" | "policy";
11066
11117
  config?: unknown;
11067
11118
  revision: string;
11119
+ /** Format: date-time */
11068
11120
  created_at: string;
11121
+ /** Format: date-time */
11069
11122
  updated_at: string;
11123
+ /** Format: date-time */
11070
11124
  last_used_at: string | null;
11125
+ /** Format: date-time */
11071
11126
  revoked_at: string | null;
11127
+ /**
11128
+ * Format: date-time
11129
+ * @description When the key stops serving, or null for a key that never expires. Requests presented after this moment are refused with `virtual_key_expired`. `status` stays `active` past the date on purpose: the three status values are what clients switch on, and the key stays editable so the date can be extended.
11130
+ */
11131
+ expires_at: string | null;
11072
11132
  };
11073
11133
  };
11074
11134
  };
@@ -11356,10 +11416,19 @@ interface operations {
11356
11416
  routing_mode: "none" | "fallback_all" | "policy";
11357
11417
  config?: unknown;
11358
11418
  revision: string;
11419
+ /** Format: date-time */
11359
11420
  created_at: string;
11421
+ /** Format: date-time */
11360
11422
  updated_at: string;
11423
+ /** Format: date-time */
11361
11424
  last_used_at: string | null;
11425
+ /** Format: date-time */
11362
11426
  revoked_at: string | null;
11427
+ /**
11428
+ * Format: date-time
11429
+ * @description When the key stops serving, or null for a key that never expires. Requests presented after this moment are refused with `virtual_key_expired`. `status` stays `active` past the date on purpose: the three status values are what clients switch on, and the key stays editable so the date can be extended.
11430
+ */
11431
+ expires_at: string | null;
11363
11432
  };
11364
11433
  secret: string;
11365
11434
  };
@@ -11501,10 +11570,19 @@ interface operations {
11501
11570
  routing_mode: "none" | "fallback_all" | "policy";
11502
11571
  config?: unknown;
11503
11572
  revision: string;
11573
+ /** Format: date-time */
11504
11574
  created_at: string;
11575
+ /** Format: date-time */
11505
11576
  updated_at: string;
11577
+ /** Format: date-time */
11506
11578
  last_used_at: string | null;
11579
+ /** Format: date-time */
11507
11580
  revoked_at: string | null;
11581
+ /**
11582
+ * Format: date-time
11583
+ * @description When the key stops serving, or null for a key that never expires. Requests presented after this moment are refused with `virtual_key_expired`. `status` stays `active` past the date on purpose: the three status values are what clients switch on, and the key stays editable so the date can be extended.
11584
+ */
11585
+ expires_at: string | null;
11508
11586
  };
11509
11587
  };
11510
11588
  };
@@ -11638,10 +11716,19 @@ interface operations {
11638
11716
  routing_mode: "none" | "fallback_all" | "policy";
11639
11717
  config?: unknown;
11640
11718
  revision: string;
11719
+ /** Format: date-time */
11641
11720
  created_at: string;
11721
+ /** Format: date-time */
11642
11722
  updated_at: string;
11723
+ /** Format: date-time */
11643
11724
  last_used_at: string | null;
11725
+ /** Format: date-time */
11644
11726
  revoked_at: string | null;
11727
+ /**
11728
+ * Format: date-time
11729
+ * @description When the key stops serving, or null for a key that never expires. Requests presented after this moment are refused with `virtual_key_expired`. `status` stays `active` past the date on purpose: the three status values are what clients switch on, and the key stays editable so the date can be extended.
11730
+ */
11731
+ expires_at: string | null;
11645
11732
  };
11646
11733
  };
11647
11734
  };
@@ -11775,10 +11862,19 @@ interface operations {
11775
11862
  routing_mode: "none" | "fallback_all" | "policy";
11776
11863
  config?: unknown;
11777
11864
  revision: string;
11865
+ /** Format: date-time */
11778
11866
  created_at: string;
11867
+ /** Format: date-time */
11779
11868
  updated_at: string;
11869
+ /** Format: date-time */
11780
11870
  last_used_at: string | null;
11871
+ /** Format: date-time */
11781
11872
  revoked_at: string | null;
11873
+ /**
11874
+ * Format: date-time
11875
+ * @description When the key stops serving, or null for a key that never expires. Requests presented after this moment are refused with `virtual_key_expired`. `status` stays `active` past the date on purpose: the three status values are what clients switch on, and the key stays editable so the date can be extended.
11876
+ */
11877
+ expires_at: string | null;
11782
11878
  };
11783
11879
  };
11784
11880
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "langwatch",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "LangWatch TypeScript/JavaScript SDK. Interact with the full LangWatch API and use the LangWatch OpenTelemetry SDK to instrument your application. For more information, see https://docs.langwatch.ai/integration/typescript/guide",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -62,7 +62,6 @@
62
62
  "@types/js-yaml": "^4.0.9",
63
63
  "@types/node": "^24.1.0",
64
64
  "@types/prompts": "^2.4.9",
65
- "@typescript/native-preview": "7.0.0-dev.20260705.1",
66
65
  "@vercel/otel": "^1.13.0",
67
66
  "@vitest/coverage-v8": "^4.1.0",
68
67
  "dotenv-cli": "^11.0.0",
@@ -76,7 +75,7 @@
76
75
  "openapi-msw": "^1.2.0",
77
76
  "openapi-typescript": "7.13.0",
78
77
  "tsup": "^8.5.0",
79
- "typescript": "^5.9.2",
78
+ "typescript": "^6.0.3",
80
79
  "typescript-eslint": "^8.38.0",
81
80
  "vitest": "^4.1.0",
82
81
  "vitest-mock-extended": "^5.1.1",
@@ -97,6 +96,7 @@
97
96
  "@opentelemetry/sdk-trace-base": "^2.0.1",
98
97
  "@opentelemetry/semantic-conventions": "^1.36.0",
99
98
  "chalk": "^5.6.2",
99
+ "cloudflared": "0.7.1",
100
100
  "commander": "^15.0.0",
101
101
  "dotenv": "^17.3.1",
102
102
  "js-yaml": "^5.2.0",