@expandai/sdk
Advanced tools
+8
-0
| # Changelog | ||
| ## 0.15.0 (2026-02-19) | ||
| Full Changelog: [v0.14.0...v0.15.0](https://github.com/expandai/expandai-node/compare/v0.14.0...v0.15.0) | ||
| ### Features | ||
| * **api:** api update ([caec526](https://github.com/expandai/expandai-node/commit/caec526ac68b6b400126e3f1e38508fd2a5476a6)) | ||
| ## 0.14.0 (2026-02-18) | ||
@@ -4,0 +12,0 @@ |
+1
-1
| { | ||
| "name": "@expandai/sdk", | ||
| "version": "0.14.0", | ||
| "version": "0.15.0", | ||
| "description": "The official TypeScript library for the Expand API", | ||
@@ -5,0 +5,0 @@ "author": "Expand <support@expand.ai>", |
+235
-11
@@ -21,23 +21,43 @@ /** | ||
| response: Data.Response; | ||
| appendix?: unknown; | ||
| /** | ||
| * Extracted links and sidebar content | ||
| */ | ||
| appendix?: string; | ||
| /** | ||
| * Unique identifier for the browser session that performed this fetch | ||
| */ | ||
| browserSessionId?: string; | ||
| html?: unknown; | ||
| /** | ||
| * The HTML content of the fetched page | ||
| */ | ||
| html?: string; | ||
| /** | ||
| * Pruned JSON objects extracted from the page (from HTML and network responses). | ||
| * This is recomputed on every fetch and is not persisted. | ||
| */ | ||
| json?: unknown; | ||
| links?: unknown; | ||
| markdown?: unknown; | ||
| json?: Array<unknown>; | ||
| /** | ||
| * Page metadata extracted from HTML head (title, description, Open Graph, Twitter | ||
| * Card, icons) | ||
| * Links extracted from the page | ||
| */ | ||
| meta?: unknown; | ||
| screenshot?: unknown; | ||
| snippets?: unknown; | ||
| summary?: unknown; | ||
| links?: Array<Data.Link>; | ||
| /** | ||
| * The markdown-formatted content extracted from the page | ||
| */ | ||
| markdown?: string; | ||
| /** | ||
| * Comprehensive metadata extracted from the page HTML head section | ||
| */ | ||
| meta?: Data.Meta; | ||
| /** | ||
| * Base64-encoded data URI of the screenshot image | ||
| */ | ||
| screenshot?: string; | ||
| /** | ||
| * Relevant snippets extracted from the page based on the search query | ||
| */ | ||
| snippets?: Array<Data.UnionMember0 | Data.UnionMember1>; | ||
| /** | ||
| * AI-generated summary of the page content | ||
| */ | ||
| summary?: string; | ||
| } | ||
@@ -65,2 +85,206 @@ namespace Data { | ||
| } | ||
| /** | ||
| * A link extracted from the page | ||
| */ | ||
| interface Link { | ||
| /** | ||
| * The URL of the link | ||
| */ | ||
| url: string; | ||
| /** | ||
| * The anchor text of the link | ||
| */ | ||
| text?: string; | ||
| } | ||
| /** | ||
| * Comprehensive metadata extracted from the page HTML head section | ||
| */ | ||
| interface Meta { | ||
| /** | ||
| * Canonical URL from <link rel="canonical"> | ||
| */ | ||
| canonicalUrl?: string; | ||
| /** | ||
| * Character encoding from <meta charset="..."> | ||
| */ | ||
| charset?: string; | ||
| /** | ||
| * Meta description from <meta name="description"> | ||
| */ | ||
| description?: string; | ||
| /** | ||
| * Primary favicon URL (first icon found) | ||
| */ | ||
| favicon?: string; | ||
| /** | ||
| * All icon links (favicons, apple-touch-icons, etc.) | ||
| */ | ||
| icons?: Array<Meta.Icon>; | ||
| /** | ||
| * Page language from <html lang="..."> | ||
| */ | ||
| language?: string; | ||
| /** | ||
| * Open Graph protocol metadata for rich link previews | ||
| */ | ||
| openGraph?: Meta.OpenGraph; | ||
| /** | ||
| * Page title from <title> tag | ||
| */ | ||
| title?: string; | ||
| /** | ||
| * Twitter Card metadata for social sharing previews | ||
| */ | ||
| twitter?: Meta.Twitter; | ||
| } | ||
| namespace Meta { | ||
| /** | ||
| * Favicon or app icon metadata from <link> tags | ||
| */ | ||
| interface Icon { | ||
| /** | ||
| * Icon URL or path | ||
| */ | ||
| href: string; | ||
| /** | ||
| * Link relationship type | ||
| */ | ||
| rel: string; | ||
| /** | ||
| * Icon dimensions | ||
| */ | ||
| sizes?: string; | ||
| /** | ||
| * MIME type of the icon | ||
| */ | ||
| type?: string; | ||
| } | ||
| /** | ||
| * Open Graph protocol metadata for rich link previews | ||
| */ | ||
| interface OpenGraph { | ||
| /** | ||
| * Open Graph description (og:description) | ||
| */ | ||
| description?: string; | ||
| /** | ||
| * Open Graph images (og:image and related properties) | ||
| */ | ||
| images?: Array<OpenGraph.Image>; | ||
| /** | ||
| * Locale in language_TERRITORY format (og:locale) | ||
| */ | ||
| locale?: string; | ||
| /** | ||
| * Site name (og:site_name) | ||
| */ | ||
| siteName?: string; | ||
| /** | ||
| * Open Graph title (og:title) | ||
| */ | ||
| title?: string; | ||
| /** | ||
| * Open Graph type (og:type) - website, article, product, etc. | ||
| */ | ||
| type?: string; | ||
| /** | ||
| * Canonical URL for the content (og:url) | ||
| */ | ||
| url?: string; | ||
| } | ||
| namespace OpenGraph { | ||
| /** | ||
| * Open Graph image with optional dimensions and alt text | ||
| */ | ||
| interface Image { | ||
| /** | ||
| * Image URL | ||
| */ | ||
| url: string; | ||
| /** | ||
| * Image alt text for accessibility | ||
| */ | ||
| alt?: string; | ||
| /** | ||
| * Image height in pixels | ||
| */ | ||
| height?: number; | ||
| /** | ||
| * Image width in pixels | ||
| */ | ||
| width?: number; | ||
| } | ||
| } | ||
| /** | ||
| * Twitter Card metadata for social sharing previews | ||
| */ | ||
| interface Twitter { | ||
| /** | ||
| * Twitter card type (twitter:card) | ||
| */ | ||
| card?: string; | ||
| /** | ||
| * Twitter @username of content creator (twitter:creator) | ||
| */ | ||
| creator?: string; | ||
| /** | ||
| * Description for Twitter card (twitter:description) | ||
| */ | ||
| description?: string; | ||
| /** | ||
| * Image URL for Twitter card (twitter:image) | ||
| */ | ||
| image?: string; | ||
| /** | ||
| * Twitter @username of the website (twitter:site) | ||
| */ | ||
| site?: string; | ||
| /** | ||
| * Title for Twitter card (twitter:title) | ||
| */ | ||
| title?: string; | ||
| } | ||
| } | ||
| interface UnionMember0 { | ||
| _tag: 'MarkdownSnippet'; | ||
| /** | ||
| * Original chunk index | ||
| */ | ||
| index: number; | ||
| /** | ||
| * Relevance score from the reranker (0-1) | ||
| */ | ||
| score: number; | ||
| /** | ||
| * The text content of the snippet | ||
| */ | ||
| text: string; | ||
| /** | ||
| * Type identifier for TextPart compatibility | ||
| */ | ||
| type?: 'text'; | ||
| } | ||
| interface UnionMember1 { | ||
| _tag: 'JsonSnippet'; | ||
| /** | ||
| * Original chunk index | ||
| */ | ||
| index: number; | ||
| /** | ||
| * The structured JSON subtree value | ||
| */ | ||
| json: unknown; | ||
| /** | ||
| * Relevance score from the reranker (0-1) | ||
| */ | ||
| score: number; | ||
| /** | ||
| * Pretty-printed JSON chunk text | ||
| */ | ||
| text: string; | ||
| /** | ||
| * Type identifier for TextPart compatibility | ||
| */ | ||
| type?: 'text'; | ||
| } | ||
| } | ||
@@ -67,0 +291,0 @@ } |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"top-level.d.mts","sourceRoot":"","sources":["../src/resources/top-level.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,IAAI,EAAE,aAAa,CAAC,IAAI,CAAC;CAC1B;AAED,yBAAiB,aAAa,CAAC;IAC7B;;;OAGG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;QAExB,QAAQ,CAAC,EAAE,OAAO,CAAC;QAEnB;;WAEG;QACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAE1B,IAAI,CAAC,EAAE,OAAO,CAAC;QAEf;;;WAGG;QACH,IAAI,CAAC,EAAE,OAAO,CAAC;QAEf,KAAK,CAAC,EAAE,OAAO,CAAC;QAEhB,QAAQ,CAAC,EAAE,OAAO,CAAC;QAEnB;;;WAGG;QACH,IAAI,CAAC,EAAE,OAAO,CAAC;QAEf,UAAU,CAAC,EAAE,OAAO,CAAC;QAErB,QAAQ,CAAC,EAAE,OAAO,CAAC;QAEnB,OAAO,CAAC,EAAE,OAAO,CAAC;KACnB;IAED,UAAiB,IAAI,CAAC;QACpB;;WAEG;QACH,UAAiB,QAAQ;YACvB;;eAEG;YACH,UAAU,EAAE,MAAM,CAAC;YAEnB;;eAEG;YACH,GAAG,EAAE,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;;WAEG;QACH,UAAiB,QAAQ;YACvB;;eAEG;YACH,cAAc,CAAC,EAAE,OAAO,CAAC;SAC1B;QAED;;WAEG;QACH,UAAiB,sBAAsB;YACrC;;eAEG;YACH,QAAQ,CAAC,EAAE,OAAO,CAAC;SACpB;QAED;;WAEG;QACH,UAAiB,QAAQ;YACvB;;eAEG;YACH,KAAK,EAAE,MAAM,CAAC;YAEd;;eAEG;YACH,WAAW,CAAC,EAAE,MAAM,CAAC;YAErB;;;eAGG;YACH,QAAQ,CAAC,EAAE,MAAM,CAAC;YAElB;;eAEG;YACH,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC;SAC5B;QAED,UAAiB,QAAQ,CAAC;YACxB;;eAEG;YACH,UAAiB,OAAO;gBACtB;;mBAEG;gBACH,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC;gBAEzC;;mBAEG;gBACH,QAAQ,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC;aACzC;YAED,UAAiB,OAAO,CAAC;gBACvB;;mBAEG;gBACH,UAAiB,eAAe;oBAC9B;;uBAEG;oBACH,eAAe,CAAC,EAAE,MAAM,CAAC;iBAC1B;gBAED;;mBAEG;gBACH,UAAiB,UAAU;oBACzB;;uBAEG;oBACH,UAAU,CAAC,EAAE,MAAM,CAAC;iBACrB;aACF;SACF;QAED;;WAEG;QACH,UAAiB,MAAM;YACrB;;eAEG;YACH,MAAM,CAAC,EAAE,MAAM,CAAC;SACjB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,aAAa,IAAI,aAAa,EAAE,KAAK,WAAW,IAAI,WAAW,EAAE,CAAC;CACjF"} |
+235
-11
@@ -21,23 +21,43 @@ /** | ||
| response: Data.Response; | ||
| appendix?: unknown; | ||
| /** | ||
| * Extracted links and sidebar content | ||
| */ | ||
| appendix?: string; | ||
| /** | ||
| * Unique identifier for the browser session that performed this fetch | ||
| */ | ||
| browserSessionId?: string; | ||
| html?: unknown; | ||
| /** | ||
| * The HTML content of the fetched page | ||
| */ | ||
| html?: string; | ||
| /** | ||
| * Pruned JSON objects extracted from the page (from HTML and network responses). | ||
| * This is recomputed on every fetch and is not persisted. | ||
| */ | ||
| json?: unknown; | ||
| links?: unknown; | ||
| markdown?: unknown; | ||
| json?: Array<unknown>; | ||
| /** | ||
| * Page metadata extracted from HTML head (title, description, Open Graph, Twitter | ||
| * Card, icons) | ||
| * Links extracted from the page | ||
| */ | ||
| meta?: unknown; | ||
| screenshot?: unknown; | ||
| snippets?: unknown; | ||
| summary?: unknown; | ||
| links?: Array<Data.Link>; | ||
| /** | ||
| * The markdown-formatted content extracted from the page | ||
| */ | ||
| markdown?: string; | ||
| /** | ||
| * Comprehensive metadata extracted from the page HTML head section | ||
| */ | ||
| meta?: Data.Meta; | ||
| /** | ||
| * Base64-encoded data URI of the screenshot image | ||
| */ | ||
| screenshot?: string; | ||
| /** | ||
| * Relevant snippets extracted from the page based on the search query | ||
| */ | ||
| snippets?: Array<Data.UnionMember0 | Data.UnionMember1>; | ||
| /** | ||
| * AI-generated summary of the page content | ||
| */ | ||
| summary?: string; | ||
| } | ||
@@ -65,2 +85,206 @@ namespace Data { | ||
| } | ||
| /** | ||
| * A link extracted from the page | ||
| */ | ||
| interface Link { | ||
| /** | ||
| * The URL of the link | ||
| */ | ||
| url: string; | ||
| /** | ||
| * The anchor text of the link | ||
| */ | ||
| text?: string; | ||
| } | ||
| /** | ||
| * Comprehensive metadata extracted from the page HTML head section | ||
| */ | ||
| interface Meta { | ||
| /** | ||
| * Canonical URL from <link rel="canonical"> | ||
| */ | ||
| canonicalUrl?: string; | ||
| /** | ||
| * Character encoding from <meta charset="..."> | ||
| */ | ||
| charset?: string; | ||
| /** | ||
| * Meta description from <meta name="description"> | ||
| */ | ||
| description?: string; | ||
| /** | ||
| * Primary favicon URL (first icon found) | ||
| */ | ||
| favicon?: string; | ||
| /** | ||
| * All icon links (favicons, apple-touch-icons, etc.) | ||
| */ | ||
| icons?: Array<Meta.Icon>; | ||
| /** | ||
| * Page language from <html lang="..."> | ||
| */ | ||
| language?: string; | ||
| /** | ||
| * Open Graph protocol metadata for rich link previews | ||
| */ | ||
| openGraph?: Meta.OpenGraph; | ||
| /** | ||
| * Page title from <title> tag | ||
| */ | ||
| title?: string; | ||
| /** | ||
| * Twitter Card metadata for social sharing previews | ||
| */ | ||
| twitter?: Meta.Twitter; | ||
| } | ||
| namespace Meta { | ||
| /** | ||
| * Favicon or app icon metadata from <link> tags | ||
| */ | ||
| interface Icon { | ||
| /** | ||
| * Icon URL or path | ||
| */ | ||
| href: string; | ||
| /** | ||
| * Link relationship type | ||
| */ | ||
| rel: string; | ||
| /** | ||
| * Icon dimensions | ||
| */ | ||
| sizes?: string; | ||
| /** | ||
| * MIME type of the icon | ||
| */ | ||
| type?: string; | ||
| } | ||
| /** | ||
| * Open Graph protocol metadata for rich link previews | ||
| */ | ||
| interface OpenGraph { | ||
| /** | ||
| * Open Graph description (og:description) | ||
| */ | ||
| description?: string; | ||
| /** | ||
| * Open Graph images (og:image and related properties) | ||
| */ | ||
| images?: Array<OpenGraph.Image>; | ||
| /** | ||
| * Locale in language_TERRITORY format (og:locale) | ||
| */ | ||
| locale?: string; | ||
| /** | ||
| * Site name (og:site_name) | ||
| */ | ||
| siteName?: string; | ||
| /** | ||
| * Open Graph title (og:title) | ||
| */ | ||
| title?: string; | ||
| /** | ||
| * Open Graph type (og:type) - website, article, product, etc. | ||
| */ | ||
| type?: string; | ||
| /** | ||
| * Canonical URL for the content (og:url) | ||
| */ | ||
| url?: string; | ||
| } | ||
| namespace OpenGraph { | ||
| /** | ||
| * Open Graph image with optional dimensions and alt text | ||
| */ | ||
| interface Image { | ||
| /** | ||
| * Image URL | ||
| */ | ||
| url: string; | ||
| /** | ||
| * Image alt text for accessibility | ||
| */ | ||
| alt?: string; | ||
| /** | ||
| * Image height in pixels | ||
| */ | ||
| height?: number; | ||
| /** | ||
| * Image width in pixels | ||
| */ | ||
| width?: number; | ||
| } | ||
| } | ||
| /** | ||
| * Twitter Card metadata for social sharing previews | ||
| */ | ||
| interface Twitter { | ||
| /** | ||
| * Twitter card type (twitter:card) | ||
| */ | ||
| card?: string; | ||
| /** | ||
| * Twitter @username of content creator (twitter:creator) | ||
| */ | ||
| creator?: string; | ||
| /** | ||
| * Description for Twitter card (twitter:description) | ||
| */ | ||
| description?: string; | ||
| /** | ||
| * Image URL for Twitter card (twitter:image) | ||
| */ | ||
| image?: string; | ||
| /** | ||
| * Twitter @username of the website (twitter:site) | ||
| */ | ||
| site?: string; | ||
| /** | ||
| * Title for Twitter card (twitter:title) | ||
| */ | ||
| title?: string; | ||
| } | ||
| } | ||
| interface UnionMember0 { | ||
| _tag: 'MarkdownSnippet'; | ||
| /** | ||
| * Original chunk index | ||
| */ | ||
| index: number; | ||
| /** | ||
| * Relevance score from the reranker (0-1) | ||
| */ | ||
| score: number; | ||
| /** | ||
| * The text content of the snippet | ||
| */ | ||
| text: string; | ||
| /** | ||
| * Type identifier for TextPart compatibility | ||
| */ | ||
| type?: 'text'; | ||
| } | ||
| interface UnionMember1 { | ||
| _tag: 'JsonSnippet'; | ||
| /** | ||
| * Original chunk index | ||
| */ | ||
| index: number; | ||
| /** | ||
| * The structured JSON subtree value | ||
| */ | ||
| json: unknown; | ||
| /** | ||
| * Relevance score from the reranker (0-1) | ||
| */ | ||
| score: number; | ||
| /** | ||
| * Pretty-printed JSON chunk text | ||
| */ | ||
| text: string; | ||
| /** | ||
| * Type identifier for TextPart compatibility | ||
| */ | ||
| type?: 'text'; | ||
| } | ||
| } | ||
@@ -67,0 +291,0 @@ } |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"top-level.d.ts","sourceRoot":"","sources":["../src/resources/top-level.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,IAAI,EAAE,aAAa,CAAC,IAAI,CAAC;CAC1B;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AQ,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC;aACzC;YAED,UAAiB,OAAO,CAAC;gBACvB;;mBAEG;gBACH,UAAiB,eAAe;oBAC9B;;uBAEG;oBACH,eAAe,CAAC,EAAE,MAAM,CAAC;iBAC1B;gBAED;;mBAEG;gBACH,UAAiB,UAAU;oBACzB;;uBAEG;oBACH,UAAU,CAAC,EAAE,MAAM,CAAC;iBACrB;aACF;SACF;QAED;;WAEG;QACH,UAAiB,MAAM;YACrB;;eAEG;YACH,MAAM,CAAC,EAAE,MAAM,CAAC;SACjB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,aAAa,IAAI,aAAa,EAAE,KAAK,WAAW,IAAI,WAAW,EAAE,CAAC;CACjF"} |
+278
-11
@@ -25,3 +25,6 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
| appendix?: unknown; | ||
| /** | ||
| * Extracted links and sidebar content | ||
| */ | ||
| appendix?: string; | ||
@@ -33,3 +36,6 @@ /** | ||
| html?: unknown; | ||
| /** | ||
| * The HTML content of the fetched page | ||
| */ | ||
| html?: string; | ||
@@ -40,19 +46,33 @@ /** | ||
| */ | ||
| json?: unknown; | ||
| json?: Array<unknown>; | ||
| links?: unknown; | ||
| /** | ||
| * Links extracted from the page | ||
| */ | ||
| links?: Array<Data.Link>; | ||
| markdown?: unknown; | ||
| /** | ||
| * The markdown-formatted content extracted from the page | ||
| */ | ||
| markdown?: string; | ||
| /** | ||
| * Page metadata extracted from HTML head (title, description, Open Graph, Twitter | ||
| * Card, icons) | ||
| * Comprehensive metadata extracted from the page HTML head section | ||
| */ | ||
| meta?: unknown; | ||
| meta?: Data.Meta; | ||
| screenshot?: unknown; | ||
| /** | ||
| * Base64-encoded data URI of the screenshot image | ||
| */ | ||
| screenshot?: string; | ||
| snippets?: unknown; | ||
| /** | ||
| * Relevant snippets extracted from the page based on the search query | ||
| */ | ||
| snippets?: Array<Data.UnionMember0 | Data.UnionMember1>; | ||
| summary?: unknown; | ||
| /** | ||
| * AI-generated summary of the page content | ||
| */ | ||
| summary?: string; | ||
| } | ||
@@ -81,2 +101,249 @@ | ||
| } | ||
| /** | ||
| * A link extracted from the page | ||
| */ | ||
| export interface Link { | ||
| /** | ||
| * The URL of the link | ||
| */ | ||
| url: string; | ||
| /** | ||
| * The anchor text of the link | ||
| */ | ||
| text?: string; | ||
| } | ||
| /** | ||
| * Comprehensive metadata extracted from the page HTML head section | ||
| */ | ||
| export interface Meta { | ||
| /** | ||
| * Canonical URL from <link rel="canonical"> | ||
| */ | ||
| canonicalUrl?: string; | ||
| /** | ||
| * Character encoding from <meta charset="..."> | ||
| */ | ||
| charset?: string; | ||
| /** | ||
| * Meta description from <meta name="description"> | ||
| */ | ||
| description?: string; | ||
| /** | ||
| * Primary favicon URL (first icon found) | ||
| */ | ||
| favicon?: string; | ||
| /** | ||
| * All icon links (favicons, apple-touch-icons, etc.) | ||
| */ | ||
| icons?: Array<Meta.Icon>; | ||
| /** | ||
| * Page language from <html lang="..."> | ||
| */ | ||
| language?: string; | ||
| /** | ||
| * Open Graph protocol metadata for rich link previews | ||
| */ | ||
| openGraph?: Meta.OpenGraph; | ||
| /** | ||
| * Page title from <title> tag | ||
| */ | ||
| title?: string; | ||
| /** | ||
| * Twitter Card metadata for social sharing previews | ||
| */ | ||
| twitter?: Meta.Twitter; | ||
| } | ||
| export namespace Meta { | ||
| /** | ||
| * Favicon or app icon metadata from <link> tags | ||
| */ | ||
| export interface Icon { | ||
| /** | ||
| * Icon URL or path | ||
| */ | ||
| href: string; | ||
| /** | ||
| * Link relationship type | ||
| */ | ||
| rel: string; | ||
| /** | ||
| * Icon dimensions | ||
| */ | ||
| sizes?: string; | ||
| /** | ||
| * MIME type of the icon | ||
| */ | ||
| type?: string; | ||
| } | ||
| /** | ||
| * Open Graph protocol metadata for rich link previews | ||
| */ | ||
| export interface OpenGraph { | ||
| /** | ||
| * Open Graph description (og:description) | ||
| */ | ||
| description?: string; | ||
| /** | ||
| * Open Graph images (og:image and related properties) | ||
| */ | ||
| images?: Array<OpenGraph.Image>; | ||
| /** | ||
| * Locale in language_TERRITORY format (og:locale) | ||
| */ | ||
| locale?: string; | ||
| /** | ||
| * Site name (og:site_name) | ||
| */ | ||
| siteName?: string; | ||
| /** | ||
| * Open Graph title (og:title) | ||
| */ | ||
| title?: string; | ||
| /** | ||
| * Open Graph type (og:type) - website, article, product, etc. | ||
| */ | ||
| type?: string; | ||
| /** | ||
| * Canonical URL for the content (og:url) | ||
| */ | ||
| url?: string; | ||
| } | ||
| export namespace OpenGraph { | ||
| /** | ||
| * Open Graph image with optional dimensions and alt text | ||
| */ | ||
| export interface Image { | ||
| /** | ||
| * Image URL | ||
| */ | ||
| url: string; | ||
| /** | ||
| * Image alt text for accessibility | ||
| */ | ||
| alt?: string; | ||
| /** | ||
| * Image height in pixels | ||
| */ | ||
| height?: number; | ||
| /** | ||
| * Image width in pixels | ||
| */ | ||
| width?: number; | ||
| } | ||
| } | ||
| /** | ||
| * Twitter Card metadata for social sharing previews | ||
| */ | ||
| export interface Twitter { | ||
| /** | ||
| * Twitter card type (twitter:card) | ||
| */ | ||
| card?: string; | ||
| /** | ||
| * Twitter @username of content creator (twitter:creator) | ||
| */ | ||
| creator?: string; | ||
| /** | ||
| * Description for Twitter card (twitter:description) | ||
| */ | ||
| description?: string; | ||
| /** | ||
| * Image URL for Twitter card (twitter:image) | ||
| */ | ||
| image?: string; | ||
| /** | ||
| * Twitter @username of the website (twitter:site) | ||
| */ | ||
| site?: string; | ||
| /** | ||
| * Title for Twitter card (twitter:title) | ||
| */ | ||
| title?: string; | ||
| } | ||
| } | ||
| export interface UnionMember0 { | ||
| _tag: 'MarkdownSnippet'; | ||
| /** | ||
| * Original chunk index | ||
| */ | ||
| index: number; | ||
| /** | ||
| * Relevance score from the reranker (0-1) | ||
| */ | ||
| score: number; | ||
| /** | ||
| * The text content of the snippet | ||
| */ | ||
| text: string; | ||
| /** | ||
| * Type identifier for TextPart compatibility | ||
| */ | ||
| type?: 'text'; | ||
| } | ||
| export interface UnionMember1 { | ||
| _tag: 'JsonSnippet'; | ||
| /** | ||
| * Original chunk index | ||
| */ | ||
| index: number; | ||
| /** | ||
| * The structured JSON subtree value | ||
| */ | ||
| json: unknown; | ||
| /** | ||
| * Relevance score from the reranker (0-1) | ||
| */ | ||
| score: number; | ||
| /** | ||
| * Pretty-printed JSON chunk text | ||
| */ | ||
| text: string; | ||
| /** | ||
| * Type identifier for TextPart compatibility | ||
| */ | ||
| type?: 'text'; | ||
| } | ||
| } | ||
@@ -83,0 +350,0 @@ } |
+1
-1
@@ -1,1 +0,1 @@ | ||
| export const VERSION = '0.14.0'; // x-release-please-version | ||
| export const VERSION = '0.15.0'; // x-release-please-version |
+1
-1
@@ -1,2 +0,2 @@ | ||
| export declare const VERSION = "0.14.0"; | ||
| export declare const VERSION = "0.15.0"; | ||
| //# sourceMappingURL=version.d.mts.map |
+1
-1
@@ -1,2 +0,2 @@ | ||
| export declare const VERSION = "0.14.0"; | ||
| export declare const VERSION = "0.15.0"; | ||
| //# sourceMappingURL=version.d.ts.map |
+1
-1
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.VERSION = void 0; | ||
| exports.VERSION = '0.14.0'; // x-release-please-version | ||
| exports.VERSION = '0.15.0'; // x-release-please-version | ||
| //# sourceMappingURL=version.js.map |
+1
-1
@@ -1,2 +0,2 @@ | ||
| export const VERSION = '0.14.0'; // x-release-please-version | ||
| export const VERSION = '0.15.0'; // x-release-please-version | ||
| //# sourceMappingURL=version.mjs.map |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
569354
4.29%7489
6.36%1
-50%