@retrivora-ai/rag-engine 2.2.7 → 2.2.9

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/README.md CHANGED
@@ -76,8 +76,8 @@ npm install @retrivora-ai/rag-engine
76
76
  Create a `.env.local` file in your application root to supply your keys and provider selections:
77
77
  ```bash
78
78
  # General Setup
79
- RAG_PROJECT_ID=my-rag-application
80
- RETRIVORA_LICENSE_KEY=ey... # Required for production deployment
79
+ NEXT_PUBLIC_PROJECT_ID=my-rag-application
80
+ NEXT_PUBLIC_RETRIVORA_LICENSE_KEY=ey... # Required for client & server deployment
81
81
 
82
82
  # Vector Database (MongoDB Atlas Example)
83
83
  VECTOR_DB_PROVIDER=mongodb
@@ -51,6 +51,8 @@ interface UseRagChatOptions {
51
51
  onError?: (error: string) => void;
52
52
  /** Optional custom headers to send with the chat request */
53
53
  headers?: Record<string, string>;
54
+ /** Optional Retrivora license key override */
55
+ licenseKey?: string;
54
56
  /** Session ID for history and feedback tracking (default: 'default') */
55
57
  sessionId?: string;
56
58
  }
@@ -51,6 +51,8 @@ interface UseRagChatOptions {
51
51
  onError?: (error: string) => void;
52
52
  /** Optional custom headers to send with the chat request */
53
53
  headers?: Record<string, string>;
54
+ /** Optional Retrivora license key override */
55
+ licenseKey?: string;
54
56
  /** Session ID for history and feedback tracking (default: 'default') */
55
57
  sessionId?: string;
56
58
  }
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties, MouseEvent, ReactNode, ElementType } from 'react';
2
- import { y as Product, m as UIConfig, j as RagMessage, q as VectorMatch, J as UITransformationResponse, i as RagConfig, I as ILLMProvider, f as IngestDocument, C as ChatMessage, c as ChatResponse, z as RetrievalResult, n as UniversalRagConfig } from './ILLMProvider-BWa68XX5.js';
2
+ import { y as Product, m as UIConfig, j as RagMessage, q as VectorMatch, J as UITransformationResponse, i as RagConfig, I as ILLMProvider, f as IngestDocument, C as ChatMessage, c as ChatResponse, z as RetrievalResult, n as UniversalRagConfig } from './ILLMProvider-teTNQ1lh.mjs';
3
3
 
4
4
  interface ArchitectureCardProps {
5
5
  icon: ReactNode;
@@ -53,11 +53,12 @@ interface ChatWindowProps {
53
53
  onAddToCart?: (product: Product) => void;
54
54
  /** Optional custom API URL to send chat messages to */
55
55
  apiUrl?: string;
56
- /**
57
- * Base URL for Retrivora SDK history/feedback/sessions endpoints.
56
+ /** Base URL for Retrivora SDK history/feedback/sessions endpoints.
58
57
  * Defaults to '/api/retrivora'. Set this to match your catch-all route location.
59
58
  */
60
59
  retrivoraApiBase?: string;
60
+ /** Optional Retrivora license key override */
61
+ licenseKey?: string;
61
62
  /** Optional custom headers to send with the chat request */
62
63
  headers?: Record<string, string>;
63
64
  }
@@ -73,6 +74,8 @@ interface ChatWidgetProps {
73
74
  * Defaults to '/api/retrivora'.
74
75
  */
75
76
  retrivoraApiBase?: string;
77
+ /** Optional Retrivora license key override */
78
+ licenseKey?: string;
76
79
  /** Optional custom headers to send with the chat request */
77
80
  headers?: Record<string, string>;
78
81
  }
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties, MouseEvent, ReactNode, ElementType } from 'react';
2
- import { y as Product, m as UIConfig, j as RagMessage, q as VectorMatch, J as UITransformationResponse, i as RagConfig, I as ILLMProvider, f as IngestDocument, C as ChatMessage, c as ChatResponse, z as RetrievalResult, n as UniversalRagConfig } from './ILLMProvider-BWa68XX5.mjs';
2
+ import { y as Product, m as UIConfig, j as RagMessage, q as VectorMatch, J as UITransformationResponse, i as RagConfig, I as ILLMProvider, f as IngestDocument, C as ChatMessage, c as ChatResponse, z as RetrievalResult, n as UniversalRagConfig } from './ILLMProvider-teTNQ1lh.js';
3
3
 
4
4
  interface ArchitectureCardProps {
5
5
  icon: ReactNode;
@@ -53,11 +53,12 @@ interface ChatWindowProps {
53
53
  onAddToCart?: (product: Product) => void;
54
54
  /** Optional custom API URL to send chat messages to */
55
55
  apiUrl?: string;
56
- /**
57
- * Base URL for Retrivora SDK history/feedback/sessions endpoints.
56
+ /** Base URL for Retrivora SDK history/feedback/sessions endpoints.
58
57
  * Defaults to '/api/retrivora'. Set this to match your catch-all route location.
59
58
  */
60
59
  retrivoraApiBase?: string;
60
+ /** Optional Retrivora license key override */
61
+ licenseKey?: string;
61
62
  /** Optional custom headers to send with the chat request */
62
63
  headers?: Record<string, string>;
63
64
  }
@@ -73,6 +74,8 @@ interface ChatWidgetProps {
73
74
  * Defaults to '/api/retrivora'.
74
75
  */
75
76
  retrivoraApiBase?: string;
77
+ /** Optional Retrivora license key override */
78
+ licenseKey?: string;
76
79
  /** Optional custom headers to send with the chat request */
77
80
  headers?: Record<string, string>;
78
81
  }
@@ -1,3 +1,3 @@
1
1
  import 'next/server';
2
- export { o as HandlerOptions, c as createChatHandler, d as createFeedbackHandler, e as createHealthHandler, f as createHistoryHandler, g as createIngestHandler, h as createRagHandler, i as createSessionsHandler, j as createStreamHandler, p as createSuggestionsHandler, k as createUploadHandler, s as sseErrorFrame, l as sseFrame, m as sseMetaFrame, q as sseObservabilityFrame, n as sseTextFrame, r as sseUIFrame } from '../index-DvbtNz7m.mjs';
3
- import '../ILLMProvider-BWa68XX5.mjs';
2
+ export { o as HandlerOptions, c as createChatHandler, d as createFeedbackHandler, e as createHealthHandler, f as createHistoryHandler, g as createIngestHandler, p as createLicenseHandler, h as createRagHandler, i as createSessionsHandler, j as createStreamHandler, q as createSuggestionsHandler, k as createUploadHandler, s as sseErrorFrame, l as sseFrame, m as sseMetaFrame, r as sseObservabilityFrame, n as sseTextFrame, t as sseUIFrame } from '../index-Dmq5lH0j.mjs';
3
+ import '../ILLMProvider-teTNQ1lh.mjs';
@@ -1,3 +1,3 @@
1
1
  import 'next/server';
2
- export { o as HandlerOptions, c as createChatHandler, d as createFeedbackHandler, e as createHealthHandler, f as createHistoryHandler, g as createIngestHandler, h as createRagHandler, i as createSessionsHandler, j as createStreamHandler, p as createSuggestionsHandler, k as createUploadHandler, s as sseErrorFrame, l as sseFrame, m as sseMetaFrame, q as sseObservabilityFrame, n as sseTextFrame, r as sseUIFrame } from '../index-B5TTZWkx.js';
3
- import '../ILLMProvider-BWa68XX5.js';
2
+ export { o as HandlerOptions, c as createChatHandler, d as createFeedbackHandler, e as createHealthHandler, f as createHistoryHandler, g as createIngestHandler, p as createLicenseHandler, h as createRagHandler, i as createSessionsHandler, j as createStreamHandler, q as createSuggestionsHandler, k as createUploadHandler, s as sseErrorFrame, l as sseFrame, m as sseMetaFrame, r as sseObservabilityFrame, n as sseTextFrame, t as sseUIFrame } from '../index-BPJ3KDYI.js';
3
+ import '../ILLMProvider-teTNQ1lh.js';
@@ -2209,6 +2209,7 @@ __export(handlers_exports, {
2209
2209
  createHealthHandler: () => createHealthHandler,
2210
2210
  createHistoryHandler: () => createHistoryHandler,
2211
2211
  createIngestHandler: () => createIngestHandler,
2212
+ createLicenseHandler: () => createLicenseHandler,
2212
2213
  createRagHandler: () => createRagHandler,
2213
2214
  createSessionsHandler: () => createSessionsHandler,
2214
2215
  createStreamHandler: () => createStreamHandler,
@@ -4709,7 +4710,7 @@ var ConfigValidator = class {
4709
4710
  // package.json
4710
4711
  var package_default = {
4711
4712
  name: "@retrivora-ai/rag-engine",
4712
- version: "2.2.7",
4713
+ version: "2.2.9",
4713
4714
  description: "Retrivora AI is a plug-and-play AI engine for RAG chat experiences \u2014 generic vector DB + LLM provider, embeddable or standalone.",
4714
4715
  author: "Abhinav Alkuchi",
4715
4716
  license: "UNLICENSED",
@@ -10585,6 +10586,46 @@ function createHealthHandler(configOrPlugin, options) {
10585
10586
  }
10586
10587
  };
10587
10588
  }
10589
+ function createLicenseHandler(configOrPlugin, options) {
10590
+ const plugin = getOrCreatePlugin(configOrPlugin);
10591
+ const onAuthorize = options == null ? void 0 : options.onAuthorize;
10592
+ return async function POST(req) {
10593
+ var _a2;
10594
+ if (req) {
10595
+ const authResult = await checkAuth(req, onAuthorize);
10596
+ if (authResult) return authResult;
10597
+ }
10598
+ try {
10599
+ const body = await req.json().catch(() => ({}));
10600
+ const config = plugin.getConfig();
10601
+ const licenseKey = req.headers.get("x-license-key") || (body == null ? void 0 : body.licenseKey) || ((_a2 = req.headers.get("authorization")) == null ? void 0 : _a2.replace(/^Bearer\s+/i, "")) || config.licenseKey || process.env.RETRIVORA_LICENSE_KEY || process.env.NEXT_PUBLIC_RETRIVORA_LICENSE_KEY || "";
10602
+ const projectId = (body == null ? void 0 : body.projectId) || config.projectId || "my-rag-app";
10603
+ const payload = LicenseVerifier.verify(licenseKey, projectId);
10604
+ return import_server.NextResponse.json({
10605
+ valid: true,
10606
+ licenseStatus: "ACTIVE",
10607
+ minimumSupportedVersion: "2.1.0",
10608
+ latestVersion: SDK_VERSION,
10609
+ forceUpgrade: false,
10610
+ expiresAt: payload.expiresAt ? new Date(payload.expiresAt * 1e3).toISOString() : null,
10611
+ message: "License key is active and valid."
10612
+ });
10613
+ } catch (err) {
10614
+ return import_server.NextResponse.json(
10615
+ {
10616
+ valid: false,
10617
+ licenseStatus: "REVOKED",
10618
+ minimumSupportedVersion: "2.1.0",
10619
+ latestVersion: SDK_VERSION,
10620
+ forceUpgrade: false,
10621
+ expiresAt: null,
10622
+ message: (err == null ? void 0 : err.message) || "License validation failed."
10623
+ },
10624
+ { status: 400 }
10625
+ );
10626
+ }
10627
+ };
10628
+ }
10588
10629
  function createUploadHandler(configOrPlugin, options) {
10589
10630
  const plugin = getOrCreatePlugin(configOrPlugin);
10590
10631
  const onAuthorize = options == null ? void 0 : options.onAuthorize;
@@ -10836,6 +10877,7 @@ function createRagHandler(configOrPlugin, options) {
10836
10877
  const historyHandler = createHistoryHandler(plugin, { onAuthorize });
10837
10878
  const feedbackHandler = createFeedbackHandler(plugin, { onAuthorize });
10838
10879
  const sessionsHandler = createSessionsHandler(plugin, { onAuthorize });
10880
+ const licenseHandler = createLicenseHandler(plugin, { onAuthorize });
10839
10881
  async function routePostRequest(req, segment) {
10840
10882
  switch (segment) {
10841
10883
  case "chat":
@@ -10853,6 +10895,9 @@ function createRagHandler(configOrPlugin, options) {
10853
10895
  return historyHandler(req);
10854
10896
  case "feedback":
10855
10897
  return feedbackHandler(req);
10898
+ case "license/validate":
10899
+ case "v1/license/validate":
10900
+ return licenseHandler(req);
10856
10901
  default:
10857
10902
  return import_server.NextResponse.json({ error: `Not Found: POST segment "${segment}" not supported.` }, { status: 404 });
10858
10903
  }
@@ -10882,6 +10927,7 @@ function createRagHandler(configOrPlugin, options) {
10882
10927
  try {
10883
10928
  const url = new URL(req.url);
10884
10929
  const pathname = url.pathname;
10930
+ if (pathname.includes("/license/validate")) return "v1/license/validate";
10885
10931
  if (pathname.endsWith("/upload")) return "upload";
10886
10932
  if (pathname.endsWith("/chat") || pathname.endsWith("/chat-sync")) return "chat";
10887
10933
  if (pathname.endsWith("/health")) return "health";
@@ -10923,6 +10969,7 @@ function createRagHandler(configOrPlugin, options) {
10923
10969
  createHealthHandler,
10924
10970
  createHistoryHandler,
10925
10971
  createIngestHandler,
10972
+ createLicenseHandler,
10926
10973
  createRagHandler,
10927
10974
  createSessionsHandler,
10928
10975
  createStreamHandler,
@@ -4674,7 +4674,7 @@ var ConfigValidator = class {
4674
4674
  // package.json
4675
4675
  var package_default = {
4676
4676
  name: "@retrivora-ai/rag-engine",
4677
- version: "2.2.7",
4677
+ version: "2.2.9",
4678
4678
  description: "Retrivora AI is a plug-and-play AI engine for RAG chat experiences \u2014 generic vector DB + LLM provider, embeddable or standalone.",
4679
4679
  author: "Abhinav Alkuchi",
4680
4680
  license: "UNLICENSED",
@@ -10550,6 +10550,46 @@ function createHealthHandler(configOrPlugin, options) {
10550
10550
  }
10551
10551
  };
10552
10552
  }
10553
+ function createLicenseHandler(configOrPlugin, options) {
10554
+ const plugin = getOrCreatePlugin(configOrPlugin);
10555
+ const onAuthorize = options == null ? void 0 : options.onAuthorize;
10556
+ return async function POST(req) {
10557
+ var _a2;
10558
+ if (req) {
10559
+ const authResult = await checkAuth(req, onAuthorize);
10560
+ if (authResult) return authResult;
10561
+ }
10562
+ try {
10563
+ const body = await req.json().catch(() => ({}));
10564
+ const config = plugin.getConfig();
10565
+ const licenseKey = req.headers.get("x-license-key") || (body == null ? void 0 : body.licenseKey) || ((_a2 = req.headers.get("authorization")) == null ? void 0 : _a2.replace(/^Bearer\s+/i, "")) || config.licenseKey || process.env.RETRIVORA_LICENSE_KEY || process.env.NEXT_PUBLIC_RETRIVORA_LICENSE_KEY || "";
10566
+ const projectId = (body == null ? void 0 : body.projectId) || config.projectId || "my-rag-app";
10567
+ const payload = LicenseVerifier.verify(licenseKey, projectId);
10568
+ return NextResponse.json({
10569
+ valid: true,
10570
+ licenseStatus: "ACTIVE",
10571
+ minimumSupportedVersion: "2.1.0",
10572
+ latestVersion: SDK_VERSION,
10573
+ forceUpgrade: false,
10574
+ expiresAt: payload.expiresAt ? new Date(payload.expiresAt * 1e3).toISOString() : null,
10575
+ message: "License key is active and valid."
10576
+ });
10577
+ } catch (err) {
10578
+ return NextResponse.json(
10579
+ {
10580
+ valid: false,
10581
+ licenseStatus: "REVOKED",
10582
+ minimumSupportedVersion: "2.1.0",
10583
+ latestVersion: SDK_VERSION,
10584
+ forceUpgrade: false,
10585
+ expiresAt: null,
10586
+ message: (err == null ? void 0 : err.message) || "License validation failed."
10587
+ },
10588
+ { status: 400 }
10589
+ );
10590
+ }
10591
+ };
10592
+ }
10553
10593
  function createUploadHandler(configOrPlugin, options) {
10554
10594
  const plugin = getOrCreatePlugin(configOrPlugin);
10555
10595
  const onAuthorize = options == null ? void 0 : options.onAuthorize;
@@ -10801,6 +10841,7 @@ function createRagHandler(configOrPlugin, options) {
10801
10841
  const historyHandler = createHistoryHandler(plugin, { onAuthorize });
10802
10842
  const feedbackHandler = createFeedbackHandler(plugin, { onAuthorize });
10803
10843
  const sessionsHandler = createSessionsHandler(plugin, { onAuthorize });
10844
+ const licenseHandler = createLicenseHandler(plugin, { onAuthorize });
10804
10845
  async function routePostRequest(req, segment) {
10805
10846
  switch (segment) {
10806
10847
  case "chat":
@@ -10818,6 +10859,9 @@ function createRagHandler(configOrPlugin, options) {
10818
10859
  return historyHandler(req);
10819
10860
  case "feedback":
10820
10861
  return feedbackHandler(req);
10862
+ case "license/validate":
10863
+ case "v1/license/validate":
10864
+ return licenseHandler(req);
10821
10865
  default:
10822
10866
  return NextResponse.json({ error: `Not Found: POST segment "${segment}" not supported.` }, { status: 404 });
10823
10867
  }
@@ -10847,6 +10891,7 @@ function createRagHandler(configOrPlugin, options) {
10847
10891
  try {
10848
10892
  const url = new URL(req.url);
10849
10893
  const pathname = url.pathname;
10894
+ if (pathname.includes("/license/validate")) return "v1/license/validate";
10850
10895
  if (pathname.endsWith("/upload")) return "upload";
10851
10896
  if (pathname.endsWith("/chat") || pathname.endsWith("/chat-sync")) return "chat";
10852
10897
  if (pathname.endsWith("/health")) return "health";
@@ -10887,6 +10932,7 @@ export {
10887
10932
  createHealthHandler,
10888
10933
  createHistoryHandler,
10889
10934
  createIngestHandler,
10935
+ createLicenseHandler,
10890
10936
  createRagHandler,
10891
10937
  createSessionsHandler,
10892
10938
  createStreamHandler,
@@ -1,5 +1,5 @@
1
1
  import { NextRequest } from 'next/server';
2
- import { i as RagConfig, I as ILLMProvider, C as ChatMessage, c as ChatResponse, f as IngestDocument } from './ILLMProvider-BWa68XX5.js';
2
+ import { i as RagConfig, I as ILLMProvider, C as ChatMessage, c as ChatResponse, f as IngestDocument } from './ILLMProvider-teTNQ1lh.js';
3
3
 
4
4
  interface ValidationError {
5
5
  field: string;
@@ -158,6 +158,10 @@ declare function createIngestHandler(configOrPlugin?: Partial<RagConfig> | Vecto
158
158
  * createHealthHandler — factory for the health-check endpoint.
159
159
  */
160
160
  declare function createHealthHandler(configOrPlugin?: Partial<RagConfig> | VectorPlugin, options?: HandlerOptions): (req?: NextRequest) => Promise<any>;
161
+ /**
162
+ * createLicenseHandler — factory for the license validation endpoint (/v1/license/validate).
163
+ */
164
+ declare function createLicenseHandler(configOrPlugin?: Partial<RagConfig> | VectorPlugin, options?: HandlerOptions): (req: NextRequest) => Promise<any>;
161
165
  /**
162
166
  * createUploadHandler — factory for the file upload ingestion endpoint.
163
167
  */
@@ -188,4 +192,4 @@ declare function createRagHandler(configOrPlugin?: Partial<RagConfig> | VectorPl
188
192
  POST: (req: any, context?: any) => Promise<any>;
189
193
  };
190
194
 
191
- export { ConfigValidator as C, type HealthCheckResult as H, type IProviderValidator as I, type ValidationError as V, type IProviderHealthChecker as a, VectorPlugin as b, createChatHandler as c, createFeedbackHandler as d, createHealthHandler as e, createHistoryHandler as f, createIngestHandler as g, createRagHandler as h, createSessionsHandler as i, createStreamHandler as j, createUploadHandler as k, sseFrame as l, sseMetaFrame as m, sseTextFrame as n, type HandlerOptions as o, createSuggestionsHandler as p, sseObservabilityFrame as q, sseUIFrame as r, sseErrorFrame as s };
195
+ export { ConfigValidator as C, type HealthCheckResult as H, type IProviderValidator as I, type ValidationError as V, type IProviderHealthChecker as a, VectorPlugin as b, createChatHandler as c, createFeedbackHandler as d, createHealthHandler as e, createHistoryHandler as f, createIngestHandler as g, createRagHandler as h, createSessionsHandler as i, createStreamHandler as j, createUploadHandler as k, sseFrame as l, sseMetaFrame as m, sseTextFrame as n, type HandlerOptions as o, createLicenseHandler as p, createSuggestionsHandler as q, sseObservabilityFrame as r, sseErrorFrame as s, sseUIFrame as t };
@@ -1,5 +1,5 @@
1
1
  import { NextRequest } from 'next/server';
2
- import { i as RagConfig, I as ILLMProvider, C as ChatMessage, c as ChatResponse, f as IngestDocument } from './ILLMProvider-BWa68XX5.mjs';
2
+ import { i as RagConfig, I as ILLMProvider, C as ChatMessage, c as ChatResponse, f as IngestDocument } from './ILLMProvider-teTNQ1lh.mjs';
3
3
 
4
4
  interface ValidationError {
5
5
  field: string;
@@ -158,6 +158,10 @@ declare function createIngestHandler(configOrPlugin?: Partial<RagConfig> | Vecto
158
158
  * createHealthHandler — factory for the health-check endpoint.
159
159
  */
160
160
  declare function createHealthHandler(configOrPlugin?: Partial<RagConfig> | VectorPlugin, options?: HandlerOptions): (req?: NextRequest) => Promise<any>;
161
+ /**
162
+ * createLicenseHandler — factory for the license validation endpoint (/v1/license/validate).
163
+ */
164
+ declare function createLicenseHandler(configOrPlugin?: Partial<RagConfig> | VectorPlugin, options?: HandlerOptions): (req: NextRequest) => Promise<any>;
161
165
  /**
162
166
  * createUploadHandler — factory for the file upload ingestion endpoint.
163
167
  */
@@ -188,4 +192,4 @@ declare function createRagHandler(configOrPlugin?: Partial<RagConfig> | VectorPl
188
192
  POST: (req: any, context?: any) => Promise<any>;
189
193
  };
190
194
 
191
- export { ConfigValidator as C, type HealthCheckResult as H, type IProviderValidator as I, type ValidationError as V, type IProviderHealthChecker as a, VectorPlugin as b, createChatHandler as c, createFeedbackHandler as d, createHealthHandler as e, createHistoryHandler as f, createIngestHandler as g, createRagHandler as h, createSessionsHandler as i, createStreamHandler as j, createUploadHandler as k, sseFrame as l, sseMetaFrame as m, sseTextFrame as n, type HandlerOptions as o, createSuggestionsHandler as p, sseObservabilityFrame as q, sseUIFrame as r, sseErrorFrame as s };
195
+ export { ConfigValidator as C, type HealthCheckResult as H, type IProviderValidator as I, type ValidationError as V, type IProviderHealthChecker as a, VectorPlugin as b, createChatHandler as c, createFeedbackHandler as d, createHealthHandler as e, createHistoryHandler as f, createIngestHandler as g, createRagHandler as h, createSessionsHandler as i, createStreamHandler as j, createUploadHandler as k, sseFrame as l, sseMetaFrame as m, sseTextFrame as n, type HandlerOptions as o, createLicenseHandler as p, createSuggestionsHandler as q, sseObservabilityFrame as r, sseErrorFrame as s, sseUIFrame as t };
package/dist/index.d.mts CHANGED
@@ -1,13 +1,13 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { C as ChatWidgetProps, a as ChatWindowProps, D as DocumentUploadProps, M as MessageBubbleProps, S as SourceCardProps, b as ConfigProviderProps, c as ClientConfig, P as ProductCardProps, d as ProductCarouselProps } from './LicenseValidator-B3xpJaVf.mjs';
3
- export { A as AuthenticationException, e as ChartType, f as Chunk, g as ChunkOptions, h as ConfigurationException, i as DecisionContext, E as EmbeddingFailedException, I as IRenderRule, j as IRendererStrategy, k as IntentCategory, l as IntentClassifier, L as LicenseValidationError, m as LicenseValidationRequest, n as LicenseValidationResponse, o as LicenseValidator, p as ProviderNotFoundException, R as RateLimitException, q as RenderDecision, r as RenderType, s as RendererRegistry, t as RetrievalException, u as Retrivora, v as RetrivoraError, w as RetrivoraErrorCode, x as RuleEngine, y as SDKVersionUnsupportedError, z as SDK_VERSION, V as VisualizationDecisionEngine, B as decideVisualization } from './LicenseValidator-B3xpJaVf.mjs';
4
- import { O as ObservabilityTrace, U as UseRagChatOptions, a as UseRagChatReturn } from './ILLMProvider-BWa68XX5.mjs';
5
- export { C as ChatMessage, b as ChatOptions, c as ChatResponse, E as EmbedOptions, d as EmbeddingConfig, e as EmbeddingProvider, I as ILLMProvider, f as IngestDocument, L as LLMConfig, g as LLMProvider, h as LatencyBreakdown, R as RAGConfig, i as RagConfig, j as RagMessage, k as RetrievalConfig, l as RetrievedChunk, T as TokenUsage, m as UIConfig, n as UniversalRagConfig, o as UpsertDocument, V as VectorDBConfig, p as VectorDBProvider, q as VectorMatch, W as WorkflowConfig } from './ILLMProvider-BWa68XX5.mjs';
2
+ import { C as ChatWidgetProps, a as ChatWindowProps, D as DocumentUploadProps, M as MessageBubbleProps, S as SourceCardProps, b as ConfigProviderProps, c as ClientConfig, P as ProductCardProps, d as ProductCarouselProps } from './LicenseValidator-CENvo9o2.mjs';
3
+ export { A as AuthenticationException, e as ChartType, f as Chunk, g as ChunkOptions, h as ConfigurationException, i as DecisionContext, E as EmbeddingFailedException, I as IRenderRule, j as IRendererStrategy, k as IntentCategory, l as IntentClassifier, L as LicenseValidationError, m as LicenseValidationRequest, n as LicenseValidationResponse, o as LicenseValidator, p as ProviderNotFoundException, R as RateLimitException, q as RenderDecision, r as RenderType, s as RendererRegistry, t as RetrievalException, u as Retrivora, v as RetrivoraError, w as RetrivoraErrorCode, x as RuleEngine, y as SDKVersionUnsupportedError, z as SDK_VERSION, V as VisualizationDecisionEngine, B as decideVisualization } from './LicenseValidator-CENvo9o2.mjs';
4
+ import { O as ObservabilityTrace, U as UseRagChatOptions, a as UseRagChatReturn } from './ILLMProvider-teTNQ1lh.mjs';
5
+ export { C as ChatMessage, b as ChatOptions, c as ChatResponse, E as EmbedOptions, d as EmbeddingConfig, e as EmbeddingProvider, I as ILLMProvider, f as IngestDocument, L as LLMConfig, g as LLMProvider, h as LatencyBreakdown, R as RAGConfig, i as RagConfig, j as RagMessage, k as RetrievalConfig, l as RetrievedChunk, T as TokenUsage, m as UIConfig, n as UniversalRagConfig, o as UpsertDocument, V as VectorDBConfig, p as VectorDBProvider, q as VectorMatch, W as WorkflowConfig } from './ILLMProvider-teTNQ1lh.mjs';
6
6
  import 'react';
7
7
 
8
- declare function ChatWidget({ position, onAddToCart, apiUrl, retrivoraApiBase, headers }: ChatWidgetProps): react_jsx_runtime.JSX.Element | null;
8
+ declare function ChatWidget({ position, onAddToCart, apiUrl, retrivoraApiBase, licenseKey: licenseKeyProp, headers }: ChatWidgetProps): react_jsx_runtime.JSX.Element | null;
9
9
 
10
- declare function ChatWindow({ className, style, onClose, showClose, onResizeStart, onResetResize, isResized, onMaximize, isMaximized, onAddToCart, apiUrl, retrivoraApiBase, headers }: ChatWindowProps): react_jsx_runtime.JSX.Element;
10
+ declare function ChatWindow({ className, style, onClose, showClose, onResizeStart, onResetResize, isResized, onMaximize, isMaximized, onAddToCart, apiUrl, retrivoraApiBase, licenseKey: licenseKeyProp, headers }: ChatWindowProps): react_jsx_runtime.JSX.Element;
11
11
 
12
12
  declare function DocumentUpload({ namespace, uploadUrl, retrivoraApiBase, onUploadComplete, className }: DocumentUploadProps): react_jsx_runtime.JSX.Element;
13
13
 
package/dist/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { C as ChatWidgetProps, a as ChatWindowProps, D as DocumentUploadProps, M as MessageBubbleProps, S as SourceCardProps, b as ConfigProviderProps, c as ClientConfig, P as ProductCardProps, d as ProductCarouselProps } from './LicenseValidator-D4I4pbSL.js';
3
- export { A as AuthenticationException, e as ChartType, f as Chunk, g as ChunkOptions, h as ConfigurationException, i as DecisionContext, E as EmbeddingFailedException, I as IRenderRule, j as IRendererStrategy, k as IntentCategory, l as IntentClassifier, L as LicenseValidationError, m as LicenseValidationRequest, n as LicenseValidationResponse, o as LicenseValidator, p as ProviderNotFoundException, R as RateLimitException, q as RenderDecision, r as RenderType, s as RendererRegistry, t as RetrievalException, u as Retrivora, v as RetrivoraError, w as RetrivoraErrorCode, x as RuleEngine, y as SDKVersionUnsupportedError, z as SDK_VERSION, V as VisualizationDecisionEngine, B as decideVisualization } from './LicenseValidator-D4I4pbSL.js';
4
- import { O as ObservabilityTrace, U as UseRagChatOptions, a as UseRagChatReturn } from './ILLMProvider-BWa68XX5.js';
5
- export { C as ChatMessage, b as ChatOptions, c as ChatResponse, E as EmbedOptions, d as EmbeddingConfig, e as EmbeddingProvider, I as ILLMProvider, f as IngestDocument, L as LLMConfig, g as LLMProvider, h as LatencyBreakdown, R as RAGConfig, i as RagConfig, j as RagMessage, k as RetrievalConfig, l as RetrievedChunk, T as TokenUsage, m as UIConfig, n as UniversalRagConfig, o as UpsertDocument, V as VectorDBConfig, p as VectorDBProvider, q as VectorMatch, W as WorkflowConfig } from './ILLMProvider-BWa68XX5.js';
2
+ import { C as ChatWidgetProps, a as ChatWindowProps, D as DocumentUploadProps, M as MessageBubbleProps, S as SourceCardProps, b as ConfigProviderProps, c as ClientConfig, P as ProductCardProps, d as ProductCarouselProps } from './LicenseValidator-CsjJp2PP.js';
3
+ export { A as AuthenticationException, e as ChartType, f as Chunk, g as ChunkOptions, h as ConfigurationException, i as DecisionContext, E as EmbeddingFailedException, I as IRenderRule, j as IRendererStrategy, k as IntentCategory, l as IntentClassifier, L as LicenseValidationError, m as LicenseValidationRequest, n as LicenseValidationResponse, o as LicenseValidator, p as ProviderNotFoundException, R as RateLimitException, q as RenderDecision, r as RenderType, s as RendererRegistry, t as RetrievalException, u as Retrivora, v as RetrivoraError, w as RetrivoraErrorCode, x as RuleEngine, y as SDKVersionUnsupportedError, z as SDK_VERSION, V as VisualizationDecisionEngine, B as decideVisualization } from './LicenseValidator-CsjJp2PP.js';
4
+ import { O as ObservabilityTrace, U as UseRagChatOptions, a as UseRagChatReturn } from './ILLMProvider-teTNQ1lh.js';
5
+ export { C as ChatMessage, b as ChatOptions, c as ChatResponse, E as EmbedOptions, d as EmbeddingConfig, e as EmbeddingProvider, I as ILLMProvider, f as IngestDocument, L as LLMConfig, g as LLMProvider, h as LatencyBreakdown, R as RAGConfig, i as RagConfig, j as RagMessage, k as RetrievalConfig, l as RetrievedChunk, T as TokenUsage, m as UIConfig, n as UniversalRagConfig, o as UpsertDocument, V as VectorDBConfig, p as VectorDBProvider, q as VectorMatch, W as WorkflowConfig } from './ILLMProvider-teTNQ1lh.js';
6
6
  import 'react';
7
7
 
8
- declare function ChatWidget({ position, onAddToCart, apiUrl, retrivoraApiBase, headers }: ChatWidgetProps): react_jsx_runtime.JSX.Element | null;
8
+ declare function ChatWidget({ position, onAddToCart, apiUrl, retrivoraApiBase, licenseKey: licenseKeyProp, headers }: ChatWidgetProps): react_jsx_runtime.JSX.Element | null;
9
9
 
10
- declare function ChatWindow({ className, style, onClose, showClose, onResizeStart, onResetResize, isResized, onMaximize, isMaximized, onAddToCart, apiUrl, retrivoraApiBase, headers }: ChatWindowProps): react_jsx_runtime.JSX.Element;
10
+ declare function ChatWindow({ className, style, onClose, showClose, onResizeStart, onResetResize, isResized, onMaximize, isMaximized, onAddToCart, apiUrl, retrivoraApiBase, licenseKey: licenseKeyProp, headers }: ChatWindowProps): react_jsx_runtime.JSX.Element;
11
11
 
12
12
  declare function DocumentUpload({ namespace, uploadUrl, retrivoraApiBase, onUploadComplete, className }: DocumentUploadProps): react_jsx_runtime.JSX.Element;
13
13