obi-sdk 0.1.6 → 0.1.8

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.
@@ -1,4 +1,4 @@
1
- import { S as re, m as oa, z as yn } from "./index-e52b38be.js";
1
+ import { S as re, m as oa, z as yn } from "./index-d9a81606.js";
2
2
  import "lit";
3
3
  function ca(n, e) {
4
4
  return e.forEach(function(t) {
package/index.d.ts CHANGED
@@ -41,16 +41,21 @@ export declare enum SDKState {
41
41
  }
42
42
 
43
43
  /**
44
- * Initialize the Obi Assistant widget with the latest SDK version
44
+ * Initialize the Obi Assistant widget with the latest SDK version from CDN
45
+ * This ensures users always get the latest features and bug fixes
46
+ *
47
+ * @param config The configuration for initializing the Obi widget
45
48
  */
46
49
  export declare function initObi(config: ObiAssistantConfig): Promise<HTMLElement>
47
50
 
48
51
  /**
49
- * Get the latest SDK instance for advanced usage
52
+ * Get the latest SDK instance (not implemented in this version)
53
+ * @throws Error always throws error in this version
50
54
  */
51
- export declare function getLatestSDK(): Promise<ObiSDK>
55
+ export declare function getLatestSDK(): Promise<never>
52
56
 
53
57
  /**
54
- * Create a session using the latest SDK
58
+ * Create a session (not implemented in this version)
59
+ * @throws Error always throws error in this version
55
60
  */
56
- export declare function createLatestSession(options?: any): Promise<any>
61
+ export declare function createLatestSession(options?: any): Promise<never>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "obi-sdk",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "JavaScript SDK for Obi",
5
5
  "type": "module",
6
6
  "main": "dist/obi-sdk.umd.js",
@@ -65,4 +65,4 @@
65
65
  "typescript": "^5.0.2",
66
66
  "vite": "^4.5.0"
67
67
  }
68
- }
68
+ }