@sparkvault/sdk-js 13.1.0 → 13.2.1

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.ts CHANGED
@@ -3062,10 +3062,12 @@ interface FolderContents {
3062
3062
  /** Options for search. */
3063
3063
  interface SearchIngotsOptions {
3064
3064
  /**
3065
- * The ingot's whole file name, matched ignoring letter case, accent
3066
- * composition and Unicode compatibility forms (`Straße` matches `STRASSE`):
3067
- * never a prefix, a substring or a fuzzy match. A name no ingot can hold is
3068
- * refused (400).
3065
+ * A part of the ingot's file name, matched ignoring letter case, accents
3066
+ * and Unicode compatibility forms (`resume` matches `Résumé.pdf`, `strasse`
3067
+ * matches `Straße.txt`); a whole name matches too. Results come in creation
3068
+ * order, newest first unless `sortOrder` is `asc`, and a page can hold none
3069
+ * while `nextCursor` is set: follow it. Text no name can hold is refused
3070
+ * (400).
3069
3071
  */
3070
3072
  q?: string;
3071
3073
  /**
@@ -3602,10 +3604,17 @@ declare class IngotsModule {
3602
3604
  */
3603
3605
  list(vault: UnsealedVault, options?: ListIngotsOptions): Promise<IngotPage>;
3604
3606
  /**
3605
- * Search ingots in an unsealed vault.
3607
+ * Search ingots in an unsealed vault, one page at a time. A page can hold
3608
+ * fewer ingots than `limit`, even none, while more remain: follow
3609
+ * `nextCursor` until it is absent, never stop on the count.
3606
3610
  *
3607
3611
  * @example
3608
- * const { ingots } = await sv.ingots.search(unsealed, { q: 'invoice-2026-03.pdf' });
3612
+ * let cursor: string | undefined;
3613
+ * do {
3614
+ * const page = await sv.ingots.search(unsealed, { q: 'invoice', cursor });
3615
+ * page.ingots.forEach((i) => console.log(i.name));
3616
+ * cursor = page.nextCursor;
3617
+ * } while (cursor);
3609
3618
  */
3610
3619
  search(vault: UnsealedVault, options?: SearchIngotsOptions): Promise<IngotPage>;
3611
3620
  /**
package/dist/index.mjs CHANGED
@@ -1001,6 +1001,7 @@ const RESOURCE_ID_PREFIXES = Object.freeze({
1001
1001
  knowledgeBaseCategory: 'hdkbc',
1002
1002
  knowledgeBaseRevision: 'hdkbr',
1003
1003
  knowledgeBaseAsset: 'hdkbm',
1004
+ knowledgeBaseFaq: 'hdkbq',
1004
1005
  ingot: 'ing',
1005
1006
  invite: 'inv',
1006
1007
  notification: 'ntf',
@@ -17358,10 +17359,17 @@ class IngotsModule {
17358
17359
  return mapIngotPage(response.data);
17359
17360
  }
17360
17361
  /**
17361
- * Search ingots in an unsealed vault.
17362
+ * Search ingots in an unsealed vault, one page at a time. A page can hold
17363
+ * fewer ingots than `limit`, even none, while more remain: follow
17364
+ * `nextCursor` until it is absent, never stop on the count.
17362
17365
  *
17363
17366
  * @example
17364
- * const { ingots } = await sv.ingots.search(unsealed, { q: 'invoice-2026-03.pdf' });
17367
+ * let cursor: string | undefined;
17368
+ * do {
17369
+ * const page = await sv.ingots.search(unsealed, { q: 'invoice', cursor });
17370
+ * page.ingots.forEach((i) => console.log(i.name));
17371
+ * cursor = page.nextCursor;
17372
+ * } while (cursor);
17365
17373
  */
17366
17374
  async search(vault, options = {}) {
17367
17375
  const vaultId = requireVaultId(vault);
@@ -18444,7 +18452,7 @@ class SparkVault {
18444
18452
  }
18445
18453
  /** Get the SDK version */
18446
18454
  static get version() {
18447
- return '13.1.0';
18455
+ return '13.2.1';
18448
18456
  }
18449
18457
  }
18450
18458
  if (typeof window !== 'undefined') {