@getanyapi/sdk 0.111.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.js CHANGED
@@ -1370,6 +1370,40 @@ var AppstoreNamespace = class {
1370
1370
  }
1371
1371
  };
1372
1372
 
1373
+ // src/generated/platforms/bing.ts
1374
+ var BingNamespace = class {
1375
+ constructor(_core) {
1376
+ this._core = _core;
1377
+ }
1378
+ _core;
1379
+ /**
1380
+ * Microsoft Copilot Search
1381
+ *
1382
+ * 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.
1383
+ *
1384
+ * Price: $0.00085 per request.
1385
+ *
1386
+ * @example
1387
+ * const res = await client.bing.copilot({ prompt: "what is the capital of australia and why" });
1388
+ */
1389
+ copilot(input, options) {
1390
+ return this._core.run("bing.copilot", input, options);
1391
+ }
1392
+ /**
1393
+ * Bing Search
1394
+ *
1395
+ * 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.
1396
+ *
1397
+ * Price: $0.00085 per request.
1398
+ *
1399
+ * @example
1400
+ * const res = await client.bing.search({ query: "best espresso machines", country: "US", limit: 10 });
1401
+ */
1402
+ search(input, options) {
1403
+ return this._core.run("bing.search", input, options);
1404
+ }
1405
+ };
1406
+
1373
1407
  // src/generated/platforms/bluesky.ts
1374
1408
  var BlueskyNamespace = class {
1375
1409
  constructor(_core) {
@@ -3102,6 +3136,48 @@ var GoogleNamespace = class {
3102
3136
  images(input, options) {
3103
3137
  return this._core.run("google.images", input, options);
3104
3138
  }
3139
+ /**
3140
+ * Google Job
3141
+ *
3142
+ * Fetch one Google Jobs listing by the listingToken that google.jobs returns: title, company, location, the site it was found on, the full description, apply links on every board that carries it, the posting details Google shows (posted, pay, job type, benefits), and the employer's ratings on review sites such as Glassdoor and Indeed when Google shows them.
3143
+ *
3144
+ * Price: $0.00085 per request.
3145
+ *
3146
+ * @example
3147
+ * const res = await client.google.job({ listingToken: "gcb1.eyJ2IjoxLCJvcCI6Imdvb2dsZV9qb2JzX2xpc3RpbmciLCJzY29wZSI6InctN2lTM2lzV09LSUhqZTMwaVR5NkEiLCJxIjoicmVnaXN0ZXJlZCBudXJzZSIsImZjIjoiRXN3QkNvd0JRVXBwVkRSMFRGVnBlamxoVFdaQ2FVZHpiMWh4Y0cxVE1TMDBlV2c1UWxWSFZpMWpjelpYVmtOaFpUSjBXbmRQT0ZCQ01VWXlURFl5TWs0NFgyOVFTM1pEVjFSaU5VRkZhR1JzYTBGTU1IUnRPR0Z2V1ZaemFGUk5XRlJRVTFSU2JETkZSaTFOVUV4eVkwcDJTbGd0YkZWUlZXTktjMHhMYjBWdWFHWjFPRFpZUldoUFFtVnlaRk5tYlhVU0YzbHNYMU5oZEdvM1FYRmhjbWt0WjFBME9UTlJMVkZ6R2lKQlJITnlPV1pVV2pGS05XbENSMnRyUTJkelNqbGhkelpIVnkxT1RscE1NbU5CIiwiZWkiOiJ5bF9TYXRqN0FxYXJpLWdQNDkzUS1RcyIsImlkIjoiMFRHZ0p6WW1XT0drWFZCR0FBQUFBQT09IiwidmVkIjoiMmFoVUtFd2pZaUlQeGlMLVhBeFdtMVFJSEhlTXVOTDhRcDR3Q2VnUUlKUkFCIn0" });
3148
+ */
3149
+ job(input, options) {
3150
+ return this._core.run("google.job", input, options);
3151
+ }
3152
+ /**
3153
+ * Google Jobs
3154
+ *
3155
+ * Search Google Jobs, the job listings Google gathers from LinkedIn, Indeed, ZipRecruiter, company career sites and other boards, and get about 10 listings per call: title, company, location, the site it was found on, the full description, apply links on every board that carries it, and the posting details Google shows (posted, pay, job type, benefits). Each listing carries a listingToken you can pass to google.job for employer ratings. Send nextCursor back as cursor to walk further pages.
3156
+ *
3157
+ * Price: $0.00085 per request.
3158
+ *
3159
+ * @example
3160
+ * const res = await client.google.jobs({ query: "registered nurse", gl: "us", hl: "en", location: "Chicago, IL" });
3161
+ */
3162
+ jobs(input, options) {
3163
+ return this._core.run("google.jobs", input, options);
3164
+ }
3165
+ /**
3166
+ * Iterate every result of Google Jobs across pages.
3167
+ *
3168
+ * Yields items directly; call `.pages()` on the return value to walk whole
3169
+ * result pages instead (each carries its own costUsd).
3170
+ */
3171
+ iterJobs(input, options) {
3172
+ return paginate(
3173
+ this._core,
3174
+ "google.jobs",
3175
+ input,
3176
+ "items",
3177
+ false,
3178
+ options
3179
+ );
3180
+ }
3105
3181
  /**
3106
3182
  * Google Lens
3107
3183
  *
@@ -8716,6 +8792,14 @@ var AnyAPI2 = class extends AnyAPI {
8716
8792
  this._core
8717
8793
  );
8718
8794
  }
8795
+ /**
8796
+ * Typed methods for the bing platform.
8797
+ */
8798
+ get bing() {
8799
+ return this._namespaces["bing"] ??= new BingNamespace(
8800
+ this._core
8801
+ );
8802
+ }
8719
8803
  /**
8720
8804
  * Typed methods for the bluesky platform.
8721
8805
  */
@@ -9316,6 +9400,7 @@ export {
9316
9400
  AppstoreNamespace,
9317
9401
  AuthenticationError,
9318
9402
  BadRequestError,
9403
+ BingNamespace,
9319
9404
  BlueskyNamespace,
9320
9405
  BookingNamespace,
9321
9406
  CapterraNamespace,