@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.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) {
@@ -3224,6 +3259,48 @@ var GoogleNamespace = class {
3224
3259
  images(input, options) {
3225
3260
  return this._core.run("google.images", input, options);
3226
3261
  }
3262
+ /**
3263
+ * Google Job
3264
+ *
3265
+ * 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.
3266
+ *
3267
+ * Price: $0.00085 per request.
3268
+ *
3269
+ * @example
3270
+ * const res = await client.google.job({ listingToken: "gcb1.eyJ2IjoxLCJvcCI6Imdvb2dsZV9qb2JzX2xpc3RpbmciLCJzY29wZSI6InctN2lTM2lzV09LSUhqZTMwaVR5NkEiLCJxIjoicmVnaXN0ZXJlZCBudXJzZSIsImZjIjoiRXN3QkNvd0JRVXBwVkRSMFRGVnBlamxoVFdaQ2FVZHpiMWh4Y0cxVE1TMDBlV2c1UWxWSFZpMWpjelpYVmtOaFpUSjBXbmRQT0ZCQ01VWXlURFl5TWs0NFgyOVFTM1pEVjFSaU5VRkZhR1JzYTBGTU1IUnRPR0Z2V1ZaemFGUk5XRlJRVTFSU2JETkZSaTFOVUV4eVkwcDJTbGd0YkZWUlZXTktjMHhMYjBWdWFHWjFPRFpZUldoUFFtVnlaRk5tYlhVU0YzbHNYMU5oZEdvM1FYRmhjbWt0WjFBME9UTlJMVkZ6R2lKQlJITnlPV1pVV2pGS05XbENSMnRyUTJkelNqbGhkelpIVnkxT1RscE1NbU5CIiwiZWkiOiJ5bF9TYXRqN0FxYXJpLWdQNDkzUS1RcyIsImlkIjoiMFRHZ0p6WW1XT0drWFZCR0FBQUFBQT09IiwidmVkIjoiMmFoVUtFd2pZaUlQeGlMLVhBeFdtMVFJSEhlTXVOTDhRcDR3Q2VnUUlKUkFCIn0" });
3271
+ */
3272
+ job(input, options) {
3273
+ return this._core.run("google.job", input, options);
3274
+ }
3275
+ /**
3276
+ * Google Jobs
3277
+ *
3278
+ * 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.
3279
+ *
3280
+ * Price: $0.00085 per request.
3281
+ *
3282
+ * @example
3283
+ * const res = await client.google.jobs({ query: "registered nurse", gl: "us", hl: "en", location: "Chicago, IL" });
3284
+ */
3285
+ jobs(input, options) {
3286
+ return this._core.run("google.jobs", input, options);
3287
+ }
3288
+ /**
3289
+ * Iterate every result of Google Jobs across pages.
3290
+ *
3291
+ * Yields items directly; call `.pages()` on the return value to walk whole
3292
+ * result pages instead (each carries its own costUsd).
3293
+ */
3294
+ iterJobs(input, options) {
3295
+ return paginate(
3296
+ this._core,
3297
+ "google.jobs",
3298
+ input,
3299
+ "items",
3300
+ false,
3301
+ options
3302
+ );
3303
+ }
3227
3304
  /**
3228
3305
  * Google Lens
3229
3306
  *
@@ -8838,6 +8915,14 @@ var AnyAPI2 = class extends AnyAPI {
8838
8915
  this._core
8839
8916
  );
8840
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
+ }
8841
8926
  /**
8842
8927
  * Typed methods for the bluesky platform.
8843
8928
  */
@@ -9439,6 +9524,7 @@ var AnyAPI2 = class extends AnyAPI {
9439
9524
  AppstoreNamespace,
9440
9525
  AuthenticationError,
9441
9526
  BadRequestError,
9527
+ BingNamespace,
9442
9528
  BlueskyNamespace,
9443
9529
  BookingNamespace,
9444
9530
  CapterraNamespace,