opik 2.2.18 → 2.2.19

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
@@ -1987,6 +1987,8 @@ interface GetProjectStatsRequest {
1987
1987
  size?: number;
1988
1988
  name?: string;
1989
1989
  filters?: string;
1990
+ fromTime?: Date;
1991
+ toTime?: Date;
1990
1992
  sorting?: string;
1991
1993
  }
1992
1994
 
@@ -7110,12 +7112,7 @@ interface ServiceTogglesConfig {
7110
7112
  projectHomepageEnabled: boolean;
7111
7113
  agenticToolsEnabled: boolean;
7112
7114
  onlineScoringTracingEnabled: boolean;
7113
- v2WorkspaceAllowlistIds: string[];
7114
- v1WorkspaceAllowlistIds: string[];
7115
- forceWorkspaceVersion: string;
7116
7115
  defaultPageSize?: number;
7117
- v2WorkspaceAllowlist?: string;
7118
- v1WorkspaceAllowlist?: string;
7119
7116
  }
7120
7117
 
7121
7118
  interface Span$1 {
@@ -8265,31 +8262,6 @@ interface WorkspaceUserPermissions {
8265
8262
  permissions?: Permission[];
8266
8263
  }
8267
8264
 
8268
- /**
8269
- * Workspace version response.
8270
- * The opik_version field indicates which navigation mode the frontend should render:
8271
- * 'version_1' (legacy workspace-scoped) or 'version_2' (project-first).
8272
- */
8273
- interface WorkspaceVersion {
8274
- /**
8275
- * The determined Opik navigation version for this workspace.
8276
- * 'version_1' = legacy workspace-scoped navigation,
8277
- * 'version_2' = new project-first navigation.
8278
- */
8279
- opikVersion?: WorkspaceVersionOpikVersion;
8280
- }
8281
-
8282
- /**
8283
- * The determined Opik navigation version for this workspace.
8284
- * 'version_1' = legacy workspace-scoped navigation,
8285
- * 'version_2' = new project-first navigation.
8286
- */
8287
- declare const WorkspaceVersionOpikVersion: {
8288
- readonly Version1: "version_1";
8289
- readonly Version2: "version_2";
8290
- };
8291
- type WorkspaceVersionOpikVersion = (typeof WorkspaceVersionOpikVersion)[keyof typeof WorkspaceVersionOpikVersion];
8292
-
8293
8265
  declare const OpikApiEnvironment: {
8294
8266
  readonly Default: "http://localhost:5173/api";
8295
8267
  };
@@ -13335,28 +13307,6 @@ declare class WorkspacesClient {
13335
13307
  */
13336
13308
  getWorkspaceTokenUsageNames(request?: WorkspaceTokenUsageNamesRequest, requestOptions?: WorkspacesClient.RequestOptions): HttpResponsePromise<TokenUsageNames>;
13337
13309
  private __getWorkspaceTokenUsageNames;
13338
- /**
13339
- * Determines whether the workspace should use Opik V1 (legacy workspace-scoped)
13340
- * or Opik V2 (project-first) navigation. The backend is the single authority for this
13341
- * determination, clients must never derive the version themselves.
13342
- *
13343
- * Determination logic (priority order):
13344
- * 1) V2 workspace allowlist (TOGGLE_V2_WORKSPACE_ALLOWLIST)
13345
- * 2) Feature flag override (TOGGLE_FORCE_WORKSPACE_VERSION)
13346
- * 3) Auth one-way V2 gate (authenticated mode only)
13347
- * 4) Version 1 entity check (entities without project_id)
13348
- * 5) Fallback on failure
13349
- *
13350
- * In unauthenticated mode (authentication.enabled=false), auth steps are skipped.
13351
- * Called by the frontend on workspace load.
13352
- *
13353
- * @param {WorkspacesClient.RequestOptions} requestOptions - Request-specific configuration.
13354
- *
13355
- * @example
13356
- * await client.workspaces.getWorkspaceVersion()
13357
- */
13358
- getWorkspaceVersion(requestOptions?: WorkspacesClient.RequestOptions): HttpResponsePromise<WorkspaceVersion>;
13359
- private __getWorkspaceVersion;
13360
13310
  /**
13361
13311
  * Get metrics summary
13362
13312
  *
package/dist/index.d.ts CHANGED
@@ -1987,6 +1987,8 @@ interface GetProjectStatsRequest {
1987
1987
  size?: number;
1988
1988
  name?: string;
1989
1989
  filters?: string;
1990
+ fromTime?: Date;
1991
+ toTime?: Date;
1990
1992
  sorting?: string;
1991
1993
  }
1992
1994
 
@@ -7110,12 +7112,7 @@ interface ServiceTogglesConfig {
7110
7112
  projectHomepageEnabled: boolean;
7111
7113
  agenticToolsEnabled: boolean;
7112
7114
  onlineScoringTracingEnabled: boolean;
7113
- v2WorkspaceAllowlistIds: string[];
7114
- v1WorkspaceAllowlistIds: string[];
7115
- forceWorkspaceVersion: string;
7116
7115
  defaultPageSize?: number;
7117
- v2WorkspaceAllowlist?: string;
7118
- v1WorkspaceAllowlist?: string;
7119
7116
  }
7120
7117
 
7121
7118
  interface Span$1 {
@@ -8265,31 +8262,6 @@ interface WorkspaceUserPermissions {
8265
8262
  permissions?: Permission[];
8266
8263
  }
8267
8264
 
8268
- /**
8269
- * Workspace version response.
8270
- * The opik_version field indicates which navigation mode the frontend should render:
8271
- * 'version_1' (legacy workspace-scoped) or 'version_2' (project-first).
8272
- */
8273
- interface WorkspaceVersion {
8274
- /**
8275
- * The determined Opik navigation version for this workspace.
8276
- * 'version_1' = legacy workspace-scoped navigation,
8277
- * 'version_2' = new project-first navigation.
8278
- */
8279
- opikVersion?: WorkspaceVersionOpikVersion;
8280
- }
8281
-
8282
- /**
8283
- * The determined Opik navigation version for this workspace.
8284
- * 'version_1' = legacy workspace-scoped navigation,
8285
- * 'version_2' = new project-first navigation.
8286
- */
8287
- declare const WorkspaceVersionOpikVersion: {
8288
- readonly Version1: "version_1";
8289
- readonly Version2: "version_2";
8290
- };
8291
- type WorkspaceVersionOpikVersion = (typeof WorkspaceVersionOpikVersion)[keyof typeof WorkspaceVersionOpikVersion];
8292
-
8293
8265
  declare const OpikApiEnvironment: {
8294
8266
  readonly Default: "http://localhost:5173/api";
8295
8267
  };
@@ -13335,28 +13307,6 @@ declare class WorkspacesClient {
13335
13307
  */
13336
13308
  getWorkspaceTokenUsageNames(request?: WorkspaceTokenUsageNamesRequest, requestOptions?: WorkspacesClient.RequestOptions): HttpResponsePromise<TokenUsageNames>;
13337
13309
  private __getWorkspaceTokenUsageNames;
13338
- /**
13339
- * Determines whether the workspace should use Opik V1 (legacy workspace-scoped)
13340
- * or Opik V2 (project-first) navigation. The backend is the single authority for this
13341
- * determination, clients must never derive the version themselves.
13342
- *
13343
- * Determination logic (priority order):
13344
- * 1) V2 workspace allowlist (TOGGLE_V2_WORKSPACE_ALLOWLIST)
13345
- * 2) Feature flag override (TOGGLE_FORCE_WORKSPACE_VERSION)
13346
- * 3) Auth one-way V2 gate (authenticated mode only)
13347
- * 4) Version 1 entity check (entities without project_id)
13348
- * 5) Fallback on failure
13349
- *
13350
- * In unauthenticated mode (authentication.enabled=false), auth steps are skipped.
13351
- * Called by the frontend on workspace load.
13352
- *
13353
- * @param {WorkspacesClient.RequestOptions} requestOptions - Request-specific configuration.
13354
- *
13355
- * @example
13356
- * await client.workspaces.getWorkspaceVersion()
13357
- */
13358
- getWorkspaceVersion(requestOptions?: WorkspacesClient.RequestOptions): HttpResponsePromise<WorkspaceVersion>;
13359
- private __getWorkspaceVersion;
13360
13310
  /**
13361
13311
  * Get metrics summary
13362
13312
  *
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import {Ia}from'./chunk-22ZCUPOM.js';export{va as AgentTaskCompletionJudge,ua as AgentToolCorrectnessJudge,ia as AnswerRelevance,ea as BaseLLMJudgeMetric,F as BaseMetric,G as BaseSuiteEvaluator,s as ChatPrompt,xa as ComplianceRiskJudge,l as ConfigMismatchError,k as ConfigNotFoundError,ba as Contains,B as DEFAULT_EXECUTION_POLICY,m as Dataset,i as DatasetVersion,j as DatasetVersionNotFoundError,pa as DemographicBiasJudge,na as DialogueHelpfulnessJudge,aa as ExactMatch,ja as GEval,ka as GEvalPreset,ra as GenderBiasJudge,ha as Hallucination,da as IsJson,T as LLMJudge,K as ModelConfigurationError,I as ModelError,J as ModelGenerationError,fa as Moderation,Fa as OPIK_PARENT_SPAN_ID_HEADER,Ea as OPIK_TRACE_ID_HEADER,Da as Opik,H as OpikBaseModel,t as OpikQueryLanguage,g as OpikSpanType,qa as PoliticalBiasJudge,r as Prompt,n as PromptType,wa as PromptUncertaintyJudge,oa as QARelevanceJudge,ca as RegexMatch,ta as RegionalBiasJudge,sa as ReligiousBiasJudge,S as ResponseSchema,Q as SYSTEM_PROMPT,ma as SummarizationCoherenceJudge,la as SummarizationConsistencyJudge,E as TASK_ERROR_SCORE_NAME,Ba as TestSuite,C as TestSuiteResult,v as ThreadsAnnotationQueue,u as TracesAnnotationQueue,R as USER_PROMPT_TEMPLATE,ga as Usefulness,M as VercelAIChatModel,y as activateRunner,w as agentConfigContext,D as buildSuiteResult,N as createModel,O as createModelFromInstance,V as deserializeEvaluators,L as detectProvider,c as disableLogger,_ as evaluate,$ as evaluatePrompt,Y as evaluateTestSuite,x as flushAll,h as generateId,Ga as getDistributedTraceHeaders,o as getGlobalClient,z as getTrackContext,e as isTracingActive,a as logger,q as resetGlobalClient,f as resetTracingToConfigDefault,ya as resolveEvaluators,W as resolveExecutionPolicy,X as resolveItemExecutionPolicy,P as resolveModel,Z as runTests,U as serializeEvaluators,p as setGlobalClient,b as setLoggerLevel,d as setTracingActive,A as track,za as validateEvaluators,Aa as validateExecutionPolicy,Ha as z}from'./chunk-22ZCUPOM.js';Ia();
1
+ import {Ia}from'./chunk-LRXO4BJZ.js';export{va as AgentTaskCompletionJudge,ua as AgentToolCorrectnessJudge,ia as AnswerRelevance,ea as BaseLLMJudgeMetric,F as BaseMetric,G as BaseSuiteEvaluator,s as ChatPrompt,xa as ComplianceRiskJudge,l as ConfigMismatchError,k as ConfigNotFoundError,ba as Contains,B as DEFAULT_EXECUTION_POLICY,m as Dataset,i as DatasetVersion,j as DatasetVersionNotFoundError,pa as DemographicBiasJudge,na as DialogueHelpfulnessJudge,aa as ExactMatch,ja as GEval,ka as GEvalPreset,ra as GenderBiasJudge,ha as Hallucination,da as IsJson,T as LLMJudge,K as ModelConfigurationError,I as ModelError,J as ModelGenerationError,fa as Moderation,Fa as OPIK_PARENT_SPAN_ID_HEADER,Ea as OPIK_TRACE_ID_HEADER,Da as Opik,H as OpikBaseModel,t as OpikQueryLanguage,g as OpikSpanType,qa as PoliticalBiasJudge,r as Prompt,n as PromptType,wa as PromptUncertaintyJudge,oa as QARelevanceJudge,ca as RegexMatch,ta as RegionalBiasJudge,sa as ReligiousBiasJudge,S as ResponseSchema,Q as SYSTEM_PROMPT,ma as SummarizationCoherenceJudge,la as SummarizationConsistencyJudge,E as TASK_ERROR_SCORE_NAME,Ba as TestSuite,C as TestSuiteResult,v as ThreadsAnnotationQueue,u as TracesAnnotationQueue,R as USER_PROMPT_TEMPLATE,ga as Usefulness,M as VercelAIChatModel,y as activateRunner,w as agentConfigContext,D as buildSuiteResult,N as createModel,O as createModelFromInstance,V as deserializeEvaluators,L as detectProvider,c as disableLogger,_ as evaluate,$ as evaluatePrompt,Y as evaluateTestSuite,x as flushAll,h as generateId,Ga as getDistributedTraceHeaders,o as getGlobalClient,z as getTrackContext,e as isTracingActive,a as logger,q as resetGlobalClient,f as resetTracingToConfigDefault,ya as resolveEvaluators,W as resolveExecutionPolicy,X as resolveItemExecutionPolicy,P as resolveModel,Z as runTests,U as serializeEvaluators,p as setGlobalClient,b as setLoggerLevel,d as setTracingActive,A as track,za as validateEvaluators,Aa as validateExecutionPolicy,Ha as z}from'./chunk-LRXO4BJZ.js';Ia();
@@ -1 +1 @@
1
- import {Ca}from'./chunk-22ZCUPOM.js';export{B as DEFAULT_EXECUTION_POLICY,Ba as TestSuite,C as TestSuiteResult,D as buildSuiteResult,V as deserializeEvaluators,Y as evaluateTestSuite,W as resolveExecutionPolicy,X as resolveItemExecutionPolicy,Z as runTests,U as serializeEvaluators}from'./chunk-22ZCUPOM.js';Ca();
1
+ import {Ca}from'./chunk-LRXO4BJZ.js';export{B as DEFAULT_EXECUTION_POLICY,Ba as TestSuite,C as TestSuiteResult,D as buildSuiteResult,V as deserializeEvaluators,Y as evaluateTestSuite,W as resolveExecutionPolicy,X as resolveItemExecutionPolicy,Z as runTests,U as serializeEvaluators}from'./chunk-LRXO4BJZ.js';Ca();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "opik",
3
3
  "description": "Opik TypeScript and JavaScript SDK",
4
- "version": "2.2.18",
4
+ "version": "2.2.19",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/comet-ml/opik.git",