context.dev 0.1.0 → 0.3.0
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/CHANGELOG.md +24 -0
- package/client.d.mts +17 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +17 -2
- package/client.d.ts.map +1 -1
- package/client.js +15 -0
- package/client.js.map +1 -1
- package/client.mjs +15 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai.d.mts +331 -0
- package/resources/ai.d.mts.map +1 -0
- package/resources/ai.d.ts +331 -0
- package/resources/ai.d.ts.map +1 -0
- package/resources/ai.js +33 -0
- package/resources/ai.js.map +1 -0
- package/resources/ai.mjs +29 -0
- package/resources/ai.mjs.map +1 -0
- package/resources/brand.d.mts +12 -1056
- package/resources/brand.d.mts.map +1 -1
- package/resources/brand.d.ts +12 -1056
- package/resources/brand.d.ts.map +1 -1
- package/resources/brand.js +0 -106
- package/resources/brand.js.map +1 -1
- package/resources/brand.mjs +0 -106
- package/resources/brand.mjs.map +1 -1
- package/resources/index.d.mts +6 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +11 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +5 -0
- package/resources/index.mjs.map +1 -1
- package/resources/industry.d.mts +70 -0
- package/resources/industry.d.mts.map +1 -0
- package/resources/industry.d.ts +70 -0
- package/resources/industry.d.ts.map +1 -0
- package/resources/industry.js +15 -0
- package/resources/industry.js.map +1 -0
- package/resources/industry.mjs +11 -0
- package/resources/industry.mjs.map +1 -0
- package/resources/style.d.mts +386 -0
- package/resources/style.d.mts.map +1 -0
- package/resources/style.d.ts +386 -0
- package/resources/style.d.ts.map +1 -0
- package/resources/style.js +25 -0
- package/resources/style.js.map +1 -0
- package/resources/style.mjs +21 -0
- package/resources/style.mjs.map +1 -0
- package/resources/utility.d.mts +79 -0
- package/resources/utility.d.mts.map +1 -0
- package/resources/utility.d.ts +79 -0
- package/resources/utility.d.ts.map +1 -0
- package/resources/utility.js +29 -0
- package/resources/utility.js.map +1 -0
- package/resources/utility.mjs +25 -0
- package/resources/utility.mjs.map +1 -0
- package/resources/web.d.mts +228 -0
- package/resources/web.d.mts.map +1 -0
- package/resources/web.d.ts +228 -0
- package/resources/web.d.ts.map +1 -0
- package/resources/web.js +49 -0
- package/resources/web.js.map +1 -0
- package/resources/web.mjs +45 -0
- package/resources/web.mjs.map +1 -0
- package/src/client.ts +93 -52
- package/src/resources/ai.ts +417 -0
- package/src/resources/brand.ts +318 -1424
- package/src/resources/index.ts +37 -26
- package/src/resources/industry.ts +92 -0
- package/src/resources/style.ts +522 -0
- package/src/resources/utility.ts +105 -0
- package/src/resources/web.ts +302 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/ai.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.AI = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
class AI extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Use AI to extract specific data points from a brand's website. The AI will crawl
|
|
9
|
+
* the website and extract the requested information based on the provided data
|
|
10
|
+
* points.
|
|
11
|
+
*/
|
|
12
|
+
aiQuery(body, options) {
|
|
13
|
+
return this._client.post('/brand/ai/query', { body, ...options });
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Beta feature: Given a single URL, determines if it is a product detail page,
|
|
17
|
+
* classifies the platform/product type, and extracts the product information.
|
|
18
|
+
* Supports Amazon, TikTok Shop, Etsy, and generic ecommerce sites.
|
|
19
|
+
*/
|
|
20
|
+
extractProduct(body, options) {
|
|
21
|
+
return this._client.post('/brand/ai/product', { body, ...options });
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Beta feature: Extract product information from a brand's website. Brand.dev will
|
|
25
|
+
* analyze the website and return a list of products with details such as name,
|
|
26
|
+
* description, image, pricing, features, and more.
|
|
27
|
+
*/
|
|
28
|
+
extractProducts(body, options) {
|
|
29
|
+
return this._client.post('/brand/ai/products', { body, ...options });
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.AI = AI;
|
|
33
|
+
//# sourceMappingURL=ai.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai.js","sourceRoot":"","sources":["../src/resources/ai.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,EAAG,SAAQ,sBAAW;IACjC;;;;OAIG;IACH,OAAO,CAAC,IAAqB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAED;;;;OAIG;IACH,cAAc,CACZ,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;OAIG;IACH,eAAe,CACb,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;AAjCD,gBAiCC"}
|
package/resources/ai.mjs
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
export class AI extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Use AI to extract specific data points from a brand's website. The AI will crawl
|
|
6
|
+
* the website and extract the requested information based on the provided data
|
|
7
|
+
* points.
|
|
8
|
+
*/
|
|
9
|
+
aiQuery(body, options) {
|
|
10
|
+
return this._client.post('/brand/ai/query', { body, ...options });
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Beta feature: Given a single URL, determines if it is a product detail page,
|
|
14
|
+
* classifies the platform/product type, and extracts the product information.
|
|
15
|
+
* Supports Amazon, TikTok Shop, Etsy, and generic ecommerce sites.
|
|
16
|
+
*/
|
|
17
|
+
extractProduct(body, options) {
|
|
18
|
+
return this._client.post('/brand/ai/product', { body, ...options });
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Beta feature: Extract product information from a brand's website. Brand.dev will
|
|
22
|
+
* analyze the website and return a list of products with details such as name,
|
|
23
|
+
* description, image, pricing, features, and more.
|
|
24
|
+
*/
|
|
25
|
+
extractProducts(body, options) {
|
|
26
|
+
return this._client.post('/brand/ai/products', { body, ...options });
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=ai.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai.mjs","sourceRoot":"","sources":["../src/resources/ai.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,EAAG,SAAQ,WAAW;IACjC;;;;OAIG;IACH,OAAO,CAAC,IAAqB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAED;;;;OAIG;IACH,cAAc,CACZ,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;OAIG;IACH,eAAe,CACb,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF"}
|