@stainless-api/docs-search 0.1.0-beta.10 → 0.1.0-beta.11

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/context.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { f as ResultType, g as SearchSettings, h as SearchParams } from "./types-BpNxuhM2.js";
1
+ import { f as ResultType, g as SearchSettings, h as SearchParams } from "./types-DPHYAARH.js";
2
2
  import * as react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/context.d.ts
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { l as QueryKindsType, u as ResultData } from "./types-BpNxuhM2.js";
1
+ import { l as QueryKindsType, u as ResultData } from "./types-DPHYAARH.js";
2
2
  import * as react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/form.d.ts
package/dist/mcp.d.ts CHANGED
@@ -1,13 +1,11 @@
1
- import { n as IndexEntry, r as IndexMethod } from "./types-BpNxuhM2.js";
1
+ import { b as Spec, n as IndexEntry, r as IndexMethod } from "./types-DPHYAARH.js";
2
2
  import { DocsLanguage } from "@stainless-api/docs-ui/routing";
3
- import * as SDKJSON from "@stainless/sdk-json";
4
3
 
5
4
  //#region src/indexer.d.ts
6
-
7
- declare function generateIndex(spec: SDKJSON.Spec, renderMarkdownFn?: (_: string) => string | null, includeTypes?: boolean): Generator<IndexEntry>;
5
+ declare function generateIndex(spec: Spec, renderMarkdownFn?: (_: string) => string | null, includeTypes?: boolean): Generator<IndexEntry>;
8
6
  //#endregion
9
7
  //#region src/mcp.d.ts
10
8
  type Item = IndexEntry & IndexMethod;
11
- declare function render(spec: SDKJSON.Spec, language: DocsLanguage, items: Item[], includeModelProperties: boolean): any;
9
+ declare function render(spec: Spec, language: DocsLanguage, items: Item[], includeModelProperties: boolean): any;
12
10
  //#endregion
13
11
  export { generateIndex, render };
@@ -1,9 +1,8 @@
1
- import { f as ResultType, g as SearchSettings, h as SearchParams, s as ProseIndexEntry } from "../types-BpNxuhM2.js";
2
- import * as SDKJSON from "@stainless/sdk-json";
1
+ import { b as Spec, f as ResultType, g as SearchSettings, h as SearchParams, s as ProseIndexEntry } from "../types-DPHYAARH.js";
3
2
 
4
3
  //#region src/providers/algolia.d.ts
5
- declare function buildIndex(appId: string, indexName: string, writeKey: string, spec: SDKJSON.Spec, renderMarkdown: (_: string) => string | null): Promise<void>;
6
- declare function buildChatIndex(appId: string, indexName: string, writeKey: string, spec: SDKJSON.Spec): Promise<void>;
4
+ declare function buildIndex(appId: string, indexName: string, writeKey: string, spec: Spec, renderMarkdown: (_: string) => string | null): Promise<void>;
5
+ declare function buildChatIndex(appId: string, indexName: string, writeKey: string, spec: Spec): Promise<void>;
7
6
  declare function buildProseIndex(appId: string, indexName: string, writeKey: string, objects: ProseIndexEntry[]): Promise<void>;
8
7
  declare function search({
9
8
  settings: {
@@ -1,15 +1,14 @@
1
- import { n as IndexEntry } from "../types-BpNxuhM2.js";
1
+ import { b as Spec, n as IndexEntry } from "../types-DPHYAARH.js";
2
2
  import { DocsLanguage } from "@stainless-api/docs-ui/routing";
3
3
  import * as fuse_js0 from "fuse.js";
4
4
  import { FuseIndex } from "fuse.js";
5
- import * as SDKJSON from "@stainless/sdk-json";
6
5
 
7
6
  //#region src/providers/fuse.d.ts
8
7
  type FuseIndexData = {
9
8
  content: IndexEntry[];
10
9
  index: FuseIndex<IndexEntry>;
11
10
  };
12
- declare function buildIndex(spec: SDKJSON.Spec, language?: DocsLanguage): FuseIndexData;
11
+ declare function buildIndex(spec: Spec, language?: DocsLanguage): FuseIndexData;
13
12
  declare function search({
14
13
  content,
15
14
  index
@@ -1,4 +1,4 @@
1
- import { t as GuideResultType } from "../types-BpNxuhM2.js";
1
+ import { t as GuideResultType } from "../types-DPHYAARH.js";
2
2
 
3
3
  //#region src/providers/pagefind.d.ts
4
4
  declare function guideSearch(loadPath: string, query: string, limit?: number): Promise<GuideResultType[]>;
@@ -1,9 +1,8 @@
1
- import { n as IndexEntry } from "../types-BpNxuhM2.js";
1
+ import { b as Spec, n as IndexEntry } from "../types-DPHYAARH.js";
2
2
  import { DocsLanguage } from "@stainless-api/docs-ui/routing";
3
- import * as SDKJSON from "@stainless/sdk-json";
4
3
 
5
4
  //#region src/providers/walker.d.ts
6
- declare function buildIndex(spec: SDKJSON.Spec): Generator<IndexEntry, any, any>;
5
+ declare function buildIndex(spec: Spec): Generator<IndexEntry, any, any>;
7
6
  declare function search(index: Generator<IndexEntry>, language: DocsLanguage, query: string, limit?: number): IndexEntry[];
8
7
  //#endregion
9
8
  export { buildIndex, search };