veo-sdk 0.6.3 → 0.6.4

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
@@ -132,6 +132,8 @@ type VeoClientEventListener<E extends VeoClientEventName> = (payload: VeoClientE
132
132
  * Forward declaration del client (implementación viene en core/client.ts).
133
133
  */
134
134
  interface VeoClient {
135
+ /** Versión del SDK cargado (la de package.json en el build). `window.veo.version` en consola. */
136
+ readonly version: string;
135
137
  identify(payload: {
136
138
  visitor: VeoVisitor;
137
139
  organization?: VeoOrganization;
@@ -185,7 +187,8 @@ declare function guidesPlugin(config: GuidesPluginConfig): VeoPlugin;
185
187
  * - veo-backend/src/modules/ingest/dto/*.dto.ts
186
188
  * - CONTRACT.md
187
189
  */
188
- declare const SDK_VERSION = "0.0.1";
190
+ /** Versión del SDK, inyectada en build desde package.json (tsup `define`); fallback en tests/dev. */
191
+ declare const SDK_VERSION: string;
189
192
 
190
193
  /**
191
194
  * Cliente principal del SDK. Expone la API pública (`identify`, `track`,
@@ -194,6 +197,7 @@ declare const SDK_VERSION = "0.0.1";
194
197
  */
195
198
  declare class Client implements VeoClient {
196
199
  private readonly config;
200
+ readonly version: string;
197
201
  private readonly transport;
198
202
  private readonly storage;
199
203
  private readonly session;
package/dist/index.d.ts CHANGED
@@ -132,6 +132,8 @@ type VeoClientEventListener<E extends VeoClientEventName> = (payload: VeoClientE
132
132
  * Forward declaration del client (implementación viene en core/client.ts).
133
133
  */
134
134
  interface VeoClient {
135
+ /** Versión del SDK cargado (la de package.json en el build). `window.veo.version` en consola. */
136
+ readonly version: string;
135
137
  identify(payload: {
136
138
  visitor: VeoVisitor;
137
139
  organization?: VeoOrganization;
@@ -185,7 +187,8 @@ declare function guidesPlugin(config: GuidesPluginConfig): VeoPlugin;
185
187
  * - veo-backend/src/modules/ingest/dto/*.dto.ts
186
188
  * - CONTRACT.md
187
189
  */
188
- declare const SDK_VERSION = "0.0.1";
190
+ /** Versión del SDK, inyectada en build desde package.json (tsup `define`); fallback en tests/dev. */
191
+ declare const SDK_VERSION: string;
189
192
 
190
193
  /**
191
194
  * Cliente principal del SDK. Expone la API pública (`identify`, `track`,
@@ -194,6 +197,7 @@ declare const SDK_VERSION = "0.0.1";
194
197
  */
195
198
  declare class Client implements VeoClient {
196
199
  private readonly config;
200
+ readonly version: string;
197
201
  private readonly transport;
198
202
  private readonly storage;
199
203
  private readonly session;
package/dist/index.mjs CHANGED
@@ -1,11 +1,11 @@
1
- import { definePlugin, guidesPlugin, runPreviewMode } from './chunk-3JEAPZ6A.mjs';
2
- export { definePlugin, guidesPlugin } from './chunk-3JEAPZ6A.mjs';
3
- import { hasWindow, hasDocument, uuidv7, DEFAULT_AUTOCAPTURE_CONFIG, MAX_ANCESTORS, hasLocalStorage, hasNavigatorSendBeacon, isBuilderMode, buildSelectorPath, ALWAYS_BLOCK_SELECTORS, resolveBuilderToken, filterHumanClasses, PRIORITY_ATTRIBUTES, SENSITIVE_ATTRIBUTES, getPreviewToken, previewGuide, closeGuidePreview } from './chunk-SZCIXA5X.mjs';
4
- export { closeGuidePreview, previewGuide } from './chunk-SZCIXA5X.mjs';
1
+ import { definePlugin, guidesPlugin, runPreviewMode } from './chunk-72YH2GXC.mjs';
2
+ export { definePlugin, guidesPlugin } from './chunk-72YH2GXC.mjs';
3
+ import { hasWindow, hasDocument, uuidv7, DEFAULT_AUTOCAPTURE_CONFIG, MAX_ANCESTORS, hasLocalStorage, hasNavigatorSendBeacon, isBuilderMode, buildSelectorPath, ALWAYS_BLOCK_SELECTORS, resolveBuilderToken, filterHumanClasses, PRIORITY_ATTRIBUTES, SENSITIVE_ATTRIBUTES, getPreviewToken, previewGuide, closeGuidePreview } from './chunk-CMPOHTUM.mjs';
4
+ export { closeGuidePreview, previewGuide } from './chunk-CMPOHTUM.mjs';
5
5
  import './chunk-PTG3BTJE.mjs';
6
6
 
7
7
  // src/contract/v1.ts
8
- var SDK_VERSION = "0.0.1";
8
+ var SDK_VERSION = "0.6.4";
9
9
  var DEFAULT_FLUSH_INTERVAL_MS = 5e3;
10
10
  var DEFAULT_FLUSH_BATCH_SIZE = 20;
11
11
  var DEFAULT_API_URL = "https://veo-backend-production-8c78.up.railway.app";
@@ -1004,6 +1004,7 @@ function stableStringify(value) {
1004
1004
  var Client = class {
1005
1005
  constructor(config) {
1006
1006
  this.config = config;
1007
+ this.version = SDK_VERSION;
1007
1008
  this.plugins = [];
1008
1009
  this.currentOrganizationId = null;
1009
1010
  this.listeners = {
@@ -1266,7 +1267,7 @@ function init(config) {
1266
1267
  // Fallback de carga del builder para bundlers: `import()` dinámico → el bundler
1267
1268
  // lo code-splitea (solo se descarga en modo builder). Así el consumidor por
1268
1269
  // bundler NO necesita copiar `veo-builder.js` ni setear `builderUrl`.
1269
- () => import('./builder-PPLIAUCM.mjs').then((m) => m.initBuilderMode()),
1270
+ () => import('./builder-5F2EFT4X.mjs').then((m) => m.initBuilderMode()),
1270
1271
  // Detector de tema: también por `import()` dinámico → chunk aparte que el
1271
1272
  // bundler solo descarga cuando toca detectar (como mucho una vez al día).
1272
1273
  () => import('./detect-theme-X4K3TLUL.mjs')