@getanyapi/sdk 0.112.0 → 0.113.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/dist/index.cjs +44 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +319 -1
- package/dist/index.d.ts +319 -1
- package/dist/index.js +43 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -30,6 +30,7 @@ __export(index_exports, {
|
|
|
30
30
|
AppstoreNamespace: () => AppstoreNamespace,
|
|
31
31
|
AuthenticationError: () => AuthenticationError,
|
|
32
32
|
BadRequestError: () => BadRequestError,
|
|
33
|
+
BingNamespace: () => BingNamespace,
|
|
33
34
|
BlueskyNamespace: () => BlueskyNamespace,
|
|
34
35
|
BookingNamespace: () => BookingNamespace,
|
|
35
36
|
CapterraNamespace: () => CapterraNamespace,
|
|
@@ -1492,6 +1493,40 @@ var AppstoreNamespace = class {
|
|
|
1492
1493
|
}
|
|
1493
1494
|
};
|
|
1494
1495
|
|
|
1496
|
+
// src/generated/platforms/bing.ts
|
|
1497
|
+
var BingNamespace = class {
|
|
1498
|
+
constructor(_core) {
|
|
1499
|
+
this._core = _core;
|
|
1500
|
+
}
|
|
1501
|
+
_core;
|
|
1502
|
+
/**
|
|
1503
|
+
* Microsoft Copilot Search
|
|
1504
|
+
*
|
|
1505
|
+
* Ask Microsoft Copilot (the AI answer in Bing) a question and get its web-grounded answer with the sources it cites as clean JSON - for tracking how Copilot answers and which sites it cites.
|
|
1506
|
+
*
|
|
1507
|
+
* Price: $0.00085 per request.
|
|
1508
|
+
*
|
|
1509
|
+
* @example
|
|
1510
|
+
* const res = await client.bing.copilot({ prompt: "what is the capital of australia and why" });
|
|
1511
|
+
*/
|
|
1512
|
+
copilot(input, options) {
|
|
1513
|
+
return this._core.run("bing.copilot", input, options);
|
|
1514
|
+
}
|
|
1515
|
+
/**
|
|
1516
|
+
* Bing Search
|
|
1517
|
+
*
|
|
1518
|
+
* Run a Bing web search and get the ranked organic results (title, URL, snippet, position, display URL, domain) plus Bing's related searches as clean JSON. Returns up to 10 results per call; pick the country Bing searches from.
|
|
1519
|
+
*
|
|
1520
|
+
* Price: $0.00085 per request.
|
|
1521
|
+
*
|
|
1522
|
+
* @example
|
|
1523
|
+
* const res = await client.bing.search({ query: "best espresso machines", country: "US", limit: 10 });
|
|
1524
|
+
*/
|
|
1525
|
+
search(input, options) {
|
|
1526
|
+
return this._core.run("bing.search", input, options);
|
|
1527
|
+
}
|
|
1528
|
+
};
|
|
1529
|
+
|
|
1495
1530
|
// src/generated/platforms/bluesky.ts
|
|
1496
1531
|
var BlueskyNamespace = class {
|
|
1497
1532
|
constructor(_core) {
|
|
@@ -8880,6 +8915,14 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
8880
8915
|
this._core
|
|
8881
8916
|
);
|
|
8882
8917
|
}
|
|
8918
|
+
/**
|
|
8919
|
+
* Typed methods for the bing platform.
|
|
8920
|
+
*/
|
|
8921
|
+
get bing() {
|
|
8922
|
+
return this._namespaces["bing"] ??= new BingNamespace(
|
|
8923
|
+
this._core
|
|
8924
|
+
);
|
|
8925
|
+
}
|
|
8883
8926
|
/**
|
|
8884
8927
|
* Typed methods for the bluesky platform.
|
|
8885
8928
|
*/
|
|
@@ -9481,6 +9524,7 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
9481
9524
|
AppstoreNamespace,
|
|
9482
9525
|
AuthenticationError,
|
|
9483
9526
|
BadRequestError,
|
|
9527
|
+
BingNamespace,
|
|
9484
9528
|
BlueskyNamespace,
|
|
9485
9529
|
BookingNamespace,
|
|
9486
9530
|
CapterraNamespace,
|