@haex-space/vault-sdk 2.5.18 → 2.5.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/svelte.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { H as HaexVaultClient, S as StorageAPI } from './client-ChcEv5iE.mjs';
1
+ import { H as HaexVaultSdk, S as StorageAPI } from './client-BTKbN_IB.mjs';
2
2
  import * as drizzle_orm_sqlite_proxy from 'drizzle-orm/sqlite-proxy';
3
3
  import { Readable } from 'svelte/store';
4
4
  import { H as HaexHubConfig, a as ExtensionInfo, A as ApplicationContext } from './types-C4BTOGe5.mjs';
@@ -10,7 +10,7 @@ import { H as HaexHubConfig, a as ExtensionInfo, A as ApplicationContext } from
10
10
  *
11
11
  * @param config - Optional SDK configuration
12
12
  */
13
- declare function initHaexVaultSdk(config?: HaexHubConfig): HaexVaultClient;
13
+ declare function initHaexVaultSdk(config?: HaexHubConfig): HaexVaultSdk;
14
14
  /**
15
15
  * Svelte store for extension info (readonly)
16
16
  *
@@ -35,7 +35,7 @@ declare const isSetupComplete: Readable<boolean>;
35
35
  * Access db, storage, and other SDK methods
36
36
  */
37
37
  declare const haexVaultSdk: {
38
- readonly client: HaexVaultClient | null;
38
+ readonly client: HaexVaultSdk | null;
39
39
  readonly db: drizzle_orm_sqlite_proxy.SqliteRemoteDatabase<Record<string, unknown>> | null;
40
40
  readonly storage: StorageAPI;
41
41
  getTableName(tableName: string): string;
@@ -44,6 +44,6 @@ declare const haexVaultSdk: {
44
44
  * Get the HaexVault SDK client instance (non-reactive)
45
45
  * Useful for direct API calls without Svelte store overhead
46
46
  */
47
- declare function getHaexVaultSdk(): HaexVaultClient | null;
47
+ declare function getHaexVaultSdk(): HaexVaultSdk | null;
48
48
 
49
49
  export { context, extensionInfo, getHaexVaultSdk, haexVaultSdk, initHaexVaultSdk, isSetupComplete };
package/dist/svelte.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { H as HaexVaultClient, S as StorageAPI } from './client-B2k574Va.js';
1
+ import { H as HaexVaultSdk, S as StorageAPI } from './client-CP2zRPsi.js';
2
2
  import * as drizzle_orm_sqlite_proxy from 'drizzle-orm/sqlite-proxy';
3
3
  import { Readable } from 'svelte/store';
4
4
  import { H as HaexHubConfig, a as ExtensionInfo, A as ApplicationContext } from './types-C4BTOGe5.js';
@@ -10,7 +10,7 @@ import { H as HaexHubConfig, a as ExtensionInfo, A as ApplicationContext } from
10
10
  *
11
11
  * @param config - Optional SDK configuration
12
12
  */
13
- declare function initHaexVaultSdk(config?: HaexHubConfig): HaexVaultClient;
13
+ declare function initHaexVaultSdk(config?: HaexHubConfig): HaexVaultSdk;
14
14
  /**
15
15
  * Svelte store for extension info (readonly)
16
16
  *
@@ -35,7 +35,7 @@ declare const isSetupComplete: Readable<boolean>;
35
35
  * Access db, storage, and other SDK methods
36
36
  */
37
37
  declare const haexVaultSdk: {
38
- readonly client: HaexVaultClient | null;
38
+ readonly client: HaexVaultSdk | null;
39
39
  readonly db: drizzle_orm_sqlite_proxy.SqliteRemoteDatabase<Record<string, unknown>> | null;
40
40
  readonly storage: StorageAPI;
41
41
  getTableName(tableName: string): string;
@@ -44,6 +44,6 @@ declare const haexVaultSdk: {
44
44
  * Get the HaexVault SDK client instance (non-reactive)
45
45
  * Useful for direct API calls without Svelte store overhead
46
46
  */
47
- declare function getHaexVaultSdk(): HaexVaultClient | null;
47
+ declare function getHaexVaultSdk(): HaexVaultSdk | null;
48
48
 
49
49
  export { context, extensionInfo, getHaexVaultSdk, haexVaultSdk, initHaexVaultSdk, isSetupComplete };
package/dist/svelte.js CHANGED
@@ -1741,7 +1741,7 @@ async function respondToExternalRequest(response, request) {
1741
1741
  }
1742
1742
 
1743
1743
  // src/client.ts
1744
- var HaexVaultClient = class {
1744
+ var HaexVaultSdk = class {
1745
1745
  constructor(config = {}) {
1746
1746
  // State
1747
1747
  this.initialized = false;
@@ -2077,8 +2077,8 @@ var HaexVaultClient = class {
2077
2077
  };
2078
2078
 
2079
2079
  // src/index.ts
2080
- function createHaexVaultClient(config = {}) {
2081
- return new HaexVaultClient(config);
2080
+ function createHaexVaultSdk(config = {}) {
2081
+ return new HaexVaultSdk(config);
2082
2082
  }
2083
2083
 
2084
2084
  // src/svelte.ts
@@ -2088,7 +2088,7 @@ var contextStore = store.writable(null);
2088
2088
  var isSetupCompleteStore = store.writable(false);
2089
2089
  function initHaexVaultSdk(config = {}) {
2090
2090
  if (!clientInstance) {
2091
- clientInstance = createHaexVaultClient(config);
2091
+ clientInstance = createHaexVaultSdk(config);
2092
2092
  extensionInfoStore.set(clientInstance.extensionInfo);
2093
2093
  contextStore.set(clientInstance.context);
2094
2094
  isSetupCompleteStore.set(false);