@getanyapi/sdk 0.19.0 → 0.20.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
@@ -1336,6 +1336,40 @@ var BookingNamespace = class {
1336
1336
  }
1337
1337
  };
1338
1338
 
1339
+ // src/generated/platforms/chatgpt.ts
1340
+ var ChatgptNamespace = class {
1341
+ constructor(_core) {
1342
+ this._core = _core;
1343
+ }
1344
+ _core;
1345
+ /**
1346
+ * ChatGPT Brand Visibility
1347
+ *
1348
+ * Analyze how ChatGPT mentions and cites a brand relative to its competitors.
1349
+ *
1350
+ * Price: $0.0045 per request.
1351
+ *
1352
+ * @example
1353
+ * const res = await client.chatgpt.brandVisibility({ brand: "OpenAI", prompt: "What is OpenAI and who are its main competitors?", competitors: ["Anthropic", "Google DeepMind", "Meta"], country: "US", domain: "openai.com" });
1354
+ */
1355
+ brandVisibility(input, options) {
1356
+ return this._core.run("chatgpt.brand_visibility", input, options);
1357
+ }
1358
+ /**
1359
+ * ChatGPT Search
1360
+ *
1361
+ * Ask ChatGPT a web-grounded question and receive an answer with source citations.
1362
+ *
1363
+ * Price: $0.0036 per request.
1364
+ *
1365
+ * @example
1366
+ * const res = await client.chatgpt.search({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
1367
+ */
1368
+ search(input, options) {
1369
+ return this._core.run("chatgpt.search", input, options);
1370
+ }
1371
+ };
1372
+
1339
1373
  // src/generated/platforms/coinmarketcap.ts
1340
1374
  var CoinmarketcapNamespace = class {
1341
1375
  constructor(_core) {
@@ -2201,6 +2235,40 @@ var FiverrNamespace = class {
2201
2235
  }
2202
2236
  };
2203
2237
 
2238
+ // src/generated/platforms/gemini.ts
2239
+ var GeminiNamespace = class {
2240
+ constructor(_core) {
2241
+ this._core = _core;
2242
+ }
2243
+ _core;
2244
+ /**
2245
+ * Gemini Brand Visibility
2246
+ *
2247
+ * Analyze how Gemini mentions and cites a brand relative to its competitors.
2248
+ *
2249
+ * Price: $0.0045 per request.
2250
+ *
2251
+ * @example
2252
+ * const res = await client.gemini.brandVisibility({ brand: "OpenAI", prompt: "What is OpenAI and who are its main competitors?", competitors: ["Anthropic", "Google DeepMind", "Meta"], country: "US", domain: "openai.com" });
2253
+ */
2254
+ brandVisibility(input, options) {
2255
+ return this._core.run("gemini.brand_visibility", input, options);
2256
+ }
2257
+ /**
2258
+ * Gemini Search
2259
+ *
2260
+ * Ask Gemini a web-grounded question and receive an answer with source citations.
2261
+ *
2262
+ * Price: $0.0036 per request.
2263
+ *
2264
+ * @example
2265
+ * const res = await client.gemini.search({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
2266
+ */
2267
+ search(input, options) {
2268
+ return this._core.run("gemini.search", input, options);
2269
+ }
2270
+ };
2271
+
2204
2272
  // src/generated/platforms/github.ts
2205
2273
  var GithubNamespace = class {
2206
2274
  constructor(_core) {
@@ -2446,6 +2514,32 @@ var GoogleNamespace = class {
2446
2514
  this._core = _core;
2447
2515
  }
2448
2516
  _core;
2517
+ /**
2518
+ * Google AI Mode
2519
+ *
2520
+ * Ask Google AI Mode a prompt and receive a cited answer.
2521
+ *
2522
+ * Price: $0.00126 per request.
2523
+ *
2524
+ * @example
2525
+ * const res = await client.google.aiMode({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
2526
+ */
2527
+ aiMode(input, options) {
2528
+ return this._core.run("google.ai_mode", input, options);
2529
+ }
2530
+ /**
2531
+ * Google AI Overview
2532
+ *
2533
+ * Ask Google Search a prompt and receive its AI Overview with citations.
2534
+ *
2535
+ * Price: $0.00126 per request plus $0.00018 per result (maximum $0.00144).
2536
+ *
2537
+ * @example
2538
+ * const res = await client.google.aiOverview({ prompt: "How does photosynthesis work?" });
2539
+ */
2540
+ aiOverview(input, options) {
2541
+ return this._core.run("google.ai_overview", input, options);
2542
+ }
2449
2543
  /**
2450
2544
  * Google Autocomplete
2451
2545
  *
@@ -3704,6 +3798,40 @@ var PeopleSearchNamespace = class {
3704
3798
  }
3705
3799
  };
3706
3800
 
3801
+ // src/generated/platforms/perplexity.ts
3802
+ var PerplexityNamespace = class {
3803
+ constructor(_core) {
3804
+ this._core = _core;
3805
+ }
3806
+ _core;
3807
+ /**
3808
+ * Perplexity Brand Visibility
3809
+ *
3810
+ * Analyze how Perplexity mentions and cites a brand relative to its competitors.
3811
+ *
3812
+ * Price: $0.0045 per request.
3813
+ *
3814
+ * @example
3815
+ * const res = await client.perplexity.brandVisibility({ brand: "OpenAI", prompt: "What is OpenAI and who are its main competitors?", competitors: ["Anthropic", "Google DeepMind", "Meta"], country: "US", domain: "openai.com" });
3816
+ */
3817
+ brandVisibility(input, options) {
3818
+ return this._core.run("perplexity.brand_visibility", input, options);
3819
+ }
3820
+ /**
3821
+ * Perplexity Search
3822
+ *
3823
+ * Ask Perplexity a web-grounded question and receive an answer with source citations.
3824
+ *
3825
+ * Price: $0.0036 per request.
3826
+ *
3827
+ * @example
3828
+ * const res = await client.perplexity.search({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
3829
+ */
3830
+ search(input, options) {
3831
+ return this._core.run("perplexity.search", input, options);
3832
+ }
3833
+ };
3834
+
3707
3835
  // src/generated/platforms/person.ts
3708
3836
  var PersonNamespace = class {
3709
3837
  constructor(_core) {
@@ -6410,6 +6538,14 @@ var AnyAPI2 = class extends AnyAPI {
6410
6538
  this._core
6411
6539
  );
6412
6540
  }
6541
+ /**
6542
+ * Typed methods for the chatgpt platform.
6543
+ */
6544
+ get chatgpt() {
6545
+ return this._namespaces["chatgpt"] ??= new ChatgptNamespace(
6546
+ this._core
6547
+ );
6548
+ }
6413
6549
  /**
6414
6550
  * Typed methods for the coinmarketcap platform.
6415
6551
  */
@@ -6502,6 +6638,14 @@ var AnyAPI2 = class extends AnyAPI {
6502
6638
  this._core
6503
6639
  );
6504
6640
  }
6641
+ /**
6642
+ * Typed methods for the gemini platform.
6643
+ */
6644
+ get gemini() {
6645
+ return this._namespaces["gemini"] ??= new GeminiNamespace(
6646
+ this._core
6647
+ );
6648
+ }
6505
6649
  /**
6506
6650
  * Typed methods for the github platform.
6507
6651
  */
@@ -6614,6 +6758,14 @@ var AnyAPI2 = class extends AnyAPI {
6614
6758
  this._core
6615
6759
  );
6616
6760
  }
6761
+ /**
6762
+ * Typed methods for the perplexity platform.
6763
+ */
6764
+ get perplexity() {
6765
+ return this._namespaces["perplexity"] ??= new PerplexityNamespace(
6766
+ this._core
6767
+ );
6768
+ }
6617
6769
  /**
6618
6770
  * Typed methods for the person platform.
6619
6771
  */
@@ -6882,6 +7034,7 @@ export {
6882
7034
  BadRequestError,
6883
7035
  BlueskyNamespace,
6884
7036
  BookingNamespace,
7037
+ ChatgptNamespace,
6885
7038
  CoinmarketcapNamespace,
6886
7039
  CompanyEnrichmentNamespace,
6887
7040
  CompanySearchNamespace,
@@ -6895,6 +7048,7 @@ export {
6895
7048
  EmailVerificationNamespace,
6896
7049
  FacebookNamespace,
6897
7050
  FiverrNamespace,
7051
+ GeminiNamespace,
6898
7052
  GithubNamespace,
6899
7053
  GlassdoorNamespace,
6900
7054
  GoogleAdsNamespace,
@@ -6911,6 +7065,7 @@ export {
6911
7065
  NotFoundError,
6912
7066
  PandaexpressNamespace,
6913
7067
  PeopleSearchNamespace,
7068
+ PerplexityNamespace,
6914
7069
  PersonEnrichmentNamespace,
6915
7070
  PersonNamespace,
6916
7071
  PinterestNamespace,