@getanyapi/sdk 0.16.0 → 0.17.1

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
@@ -40,6 +40,13 @@ var ConnectionError = class extends AnyAPIError {
40
40
  };
41
41
  var TimeoutError = class extends AnyAPIError {
42
42
  };
43
+ var RequestPendingError = class extends TimeoutError {
44
+ durableRequestId;
45
+ constructor(requestId) {
46
+ super(`request is still running; resume with requests.get or requests.wait: ${requestId}`, 0, requestId);
47
+ this.durableRequestId = requestId;
48
+ }
49
+ };
43
50
  var REQUEST_ID_HEADERS = ["x-anyapi-request-id", "x-request-id"];
44
51
  function requestIdOf(headers) {
45
52
  for (const name of REQUEST_ID_HEADERS) {
@@ -597,9 +604,10 @@ var AnyAPI = class {
597
604
  * generated `AnyAPI` subclass adds typed literal-slug overloads on top (SPEC 2.1); this
598
605
  * base signature is the fallback that returns RunResult<unknown> for an unknown slug.
599
606
  */
600
- run(slug, input, options) {
607
+ async run(slug, input, options) {
601
608
  const body = JSON.stringify(input ?? {});
602
- return this.request(
609
+ const startedAt = Date.now();
610
+ const response = await this.request(
603
611
  "POST",
604
612
  buildUrl(this.baseUrl, slug, options),
605
613
  {
@@ -608,8 +616,88 @@ var AnyAPI = class {
608
616
  maxRetries: options?.maxRetries ?? this.maxRetries,
609
617
  maxInProgressWaitMs: options?.maxInProgressWaitMs ?? this.maxInProgressWaitMs,
610
618
  ...options?.idempotencyKey !== void 0 ? { idempotencyKey: options.idempotencyKey } : {},
611
- ...options?.signal ? { signal: options.signal } : {}
619
+ ...options?.signal ? { signal: options.signal } : {},
620
+ accept202: true
621
+ }
622
+ );
623
+ if (!isRequestSnapshot(response)) return response;
624
+ return this.waitRequest(response.requestId, {
625
+ initial: response,
626
+ timeoutMs: Math.max(
627
+ 0,
628
+ (options?.timeoutMs ?? this.timeoutMs) - (Date.now() - startedAt)
629
+ ),
630
+ ...options?.signal ? { signal: options.signal } : {}
631
+ });
632
+ }
633
+ /** Start durable work. A same-key completed replay returns its terminal result immediately. */
634
+ async start(slug, input, options) {
635
+ const body = JSON.stringify(input ?? {});
636
+ const response = await this.request(
637
+ "POST",
638
+ buildUrl(this.baseUrl, slug, options),
639
+ {
640
+ body,
641
+ timeoutMs: options?.timeoutMs ?? this.timeoutMs,
642
+ maxRetries: options?.maxRetries ?? this.maxRetries,
643
+ maxInProgressWaitMs: options?.maxInProgressWaitMs ?? this.maxInProgressWaitMs,
644
+ ...options?.idempotencyKey !== void 0 ? { idempotencyKey: options.idempotencyKey } : {},
645
+ ...options?.signal ? { signal: options.signal } : {},
646
+ headers: { Prefer: "respond-async" },
647
+ accept202: true
648
+ }
649
+ );
650
+ return response;
651
+ }
652
+ requests = {
653
+ get: (requestId) => this.getRequest(requestId),
654
+ wait: (requestId, options) => this.waitRequest(requestId, options)
655
+ };
656
+ getRequest(requestId, options) {
657
+ return this.httpGet(
658
+ `/v1/requests/${encodeURIComponent(requestId)}`,
659
+ options
660
+ );
661
+ }
662
+ async waitRequest(requestId, options) {
663
+ const timeoutMs = options?.timeoutMs ?? this.timeoutMs;
664
+ const deadline = Date.now() + timeoutMs;
665
+ const inspect = async () => {
666
+ const remaining = deadline - Date.now();
667
+ if (remaining <= 0) throw new RequestPendingError(requestId);
668
+ try {
669
+ return await this.getRequest(requestId, {
670
+ timeoutMs: remaining,
671
+ ...options?.signal ? { signal: options.signal } : {}
672
+ });
673
+ } catch (error) {
674
+ if (error instanceof TimeoutError)
675
+ throw new RequestPendingError(requestId);
676
+ throw error;
612
677
  }
678
+ };
679
+ let snapshot = options?.initial ?? await inspect();
680
+ while (snapshot.status === "queued" || snapshot.status === "running") {
681
+ const waitMs = Math.max(1, snapshot.retryAfterSeconds ?? 2) * 1e3;
682
+ if (Date.now() + waitMs > deadline)
683
+ throw new RequestPendingError(requestId);
684
+ await sleep(waitMs, options?.signal);
685
+ snapshot = await inspect();
686
+ }
687
+ if (snapshot.status === "succeeded" && snapshot.result)
688
+ return snapshot.result;
689
+ if (snapshot.resultExpired)
690
+ throw new AnyAPIError(
691
+ "request result expired",
692
+ 410,
693
+ requestId,
694
+ "result_expired"
695
+ );
696
+ throw new AnyAPIError(
697
+ `request ended with ${snapshot.error?.code ?? snapshot.status}`,
698
+ 502,
699
+ requestId,
700
+ snapshot.error?.code
613
701
  );
614
702
  }
615
703
  /** Current wallet balance in USD. GET /v1/balance. See SPEC 2.7. */
@@ -652,10 +740,11 @@ var AnyAPI = class {
652
740
  return mapCatalogDetail(raw);
653
741
  }
654
742
  /** Internal GET against the gateway with the same auth/retry/error machinery. */
655
- httpGet(path) {
743
+ httpGet(path, options) {
656
744
  return this.request("GET", `${this.gatewayBaseUrl}${path}`, {
657
- timeoutMs: this.timeoutMs,
658
- maxRetries: this.maxRetries
745
+ timeoutMs: options?.timeoutMs ?? this.timeoutMs,
746
+ maxRetries: this.maxRetries,
747
+ ...options?.signal ? { signal: options.signal } : {}
659
748
  });
660
749
  }
661
750
  /**
@@ -672,6 +761,7 @@ var AnyAPI = class {
672
761
  if (this.apiKey) {
673
762
  headers["Authorization"] = `Bearer ${this.apiKey}`;
674
763
  }
764
+ Object.assign(headers, opts.headers);
675
765
  const billedPost = method === "POST" && opts.body !== void 0;
676
766
  if (billedPost && this.idempotency === "auto") {
677
767
  const key = opts.idempotencyKey ?? generateIdempotencyKey();
@@ -718,7 +808,7 @@ var AnyAPI = class {
718
808
  throw connErr;
719
809
  }
720
810
  const requestId = requestIdOf(response.headers);
721
- if (response.status === 200) {
811
+ if (response.status === 200 || opts.accept202 && response.status === 202) {
722
812
  const text = await response.text();
723
813
  try {
724
814
  return JSON.parse(text);
@@ -732,7 +822,9 @@ var AnyAPI = class {
732
822
  }
733
823
  const body = await response.text().catch(() => "");
734
824
  const { message, code } = messageFromBody(body, response.status);
735
- const retryAfterMs = parseRetryAfterMs(response.headers.get("retry-after"));
825
+ const retryAfterMs = parseRetryAfterMs(
826
+ response.headers.get("retry-after")
827
+ );
736
828
  if (response.status === 429 && attempt < opts.maxRetries) {
737
829
  const delay = retryAfterMs !== void 0 ? Math.min(retryAfterMs, RETRY_MAX_DELAY_MS) : backoffDelay(attempt);
738
830
  await sleep(delay, opts.signal);
@@ -762,6 +854,9 @@ var AnyAPI = class {
762
854
  return this.timeoutMs;
763
855
  }
764
856
  };
857
+ function isRequestSnapshot(value) {
858
+ return "requestId" in value && "status" in value;
859
+ }
765
860
 
766
861
  // src/core/types.ts
767
862
  var OUTPUT_NOT_RETAINED = "the run output was not retained: this response is an idempotent replay whose stored payload has expired or was too large to store, so only the run metadata came back. Re-run the request without the idempotency key (or with a fresh one) to fetch the data again.";
@@ -991,7 +1086,7 @@ var AmazonNamespace = class {
991
1086
  *
992
1087
  * List the top-ranked products of any Amazon Best Sellers category (rank, title, price, and rating) in one normalized request.
993
1088
  *
994
- * Price: $0 per request plus $0.00431 per result (maximum $0.0861).
1089
+ * Price: $0.0009 per request.
995
1090
  *
996
1091
  * @example
997
1092
  * const res = await client.amazon.bestsellers({ url: "https://www.amazon.com/gp/bestsellers/electronics", limit: 3 });
@@ -1017,7 +1112,7 @@ var AmazonNamespace = class {
1017
1112
  *
1018
1113
  * Pull up to 50 customer reviews for any Amazon product by ASIN or URL: rating, title, text, date, and verified-purchase badge.
1019
1114
  *
1020
- * Price: $0.018 per request.
1115
+ * Price: $0.0018 per request.
1021
1116
  *
1022
1117
  * @example
1023
1118
  * const res = await client.amazon.reviews({ product: "B07PXGQC1Q", limit: 3 });
@@ -1030,7 +1125,7 @@ var AmazonNamespace = class {
1030
1125
  *
1031
1126
  * Search Amazon from any search or category URL and get up to 20 matching products (title, price, rating, and thumbnail) in one normalized response.
1032
1127
  *
1033
- * Price: $0 per request plus $0.00368 per result (maximum $0.0735).
1128
+ * Price: $0.0009 per request.
1034
1129
  *
1035
1130
  * @example
1036
1131
  * const res = await client.amazon.search({ url: "https://www.amazon.com/s?k=laptop", limit: 3 });
@@ -1262,6 +1357,71 @@ var CoinmarketcapNamespace = class {
1262
1357
  }
1263
1358
  };
1264
1359
 
1360
+ // src/generated/platforms/company_enrichment.ts
1361
+ var CompanyEnrichmentNamespace = class {
1362
+ constructor(_core) {
1363
+ this._core = _core;
1364
+ }
1365
+ _core;
1366
+ /**
1367
+ * Company Enrichment - Crustdata v3
1368
+ *
1369
+ * Enrich a company by domain, name, LinkedIn URL, or Crustdata identifier.
1370
+ *
1371
+ * Price: $0.0972 per request.
1372
+ */
1373
+ crustdataV3(input, options) {
1374
+ return this._core.run("company_enrichment.crustdata_v3", input, options);
1375
+ }
1376
+ };
1377
+
1378
+ // src/generated/platforms/company_search.ts
1379
+ var CompanySearchNamespace = class {
1380
+ constructor(_core) {
1381
+ this._core = _core;
1382
+ }
1383
+ _core;
1384
+ /**
1385
+ * Company Search - AI Ark
1386
+ *
1387
+ * Search companies by name, lookalike domains, account filters, and saved-list filters.
1388
+ *
1389
+ * Price: $0 per request plus $0.0024 per result (maximum $0.24).
1390
+ *
1391
+ * @example
1392
+ * const res = await client.companySearch.aiArk({ name: "OpenAI", page: 0, size: 1 });
1393
+ */
1394
+ aiArk(input, options) {
1395
+ return this._core.run("company_search.ai_ark", input, options);
1396
+ }
1397
+ /**
1398
+ * Company Search - Crustdata v3
1399
+ *
1400
+ * Search companies by structured filters with cursor pagination.
1401
+ *
1402
+ * Price: $0 per request plus $0.048 per result (maximum $48).
1403
+ */
1404
+ crustdataV3(input, options) {
1405
+ return this._core.run("company_search.crustdata_v3", input, options);
1406
+ }
1407
+ /**
1408
+ * Iterate every result of Company Search - Crustdata v3 across pages.
1409
+ *
1410
+ * Yields items directly; call `.pages()` on the return value to walk whole
1411
+ * result pages instead (each carries its own costUsd).
1412
+ */
1413
+ iterCrustdataV3(input, options) {
1414
+ return paginate(
1415
+ this._core,
1416
+ "company_search.crustdata_v3",
1417
+ input,
1418
+ "companies",
1419
+ false,
1420
+ options
1421
+ );
1422
+ }
1423
+ };
1424
+
1265
1425
  // src/generated/platforms/congress.ts
1266
1426
  var CongressNamespace = class {
1267
1427
  constructor(_core) {
@@ -1445,6 +1605,78 @@ var EmailNamespace = class {
1445
1605
  }
1446
1606
  };
1447
1607
 
1608
+ // src/generated/platforms/email_finding.ts
1609
+ var EmailFindingNamespace = class {
1610
+ constructor(_core) {
1611
+ this._core = _core;
1612
+ }
1613
+ _core;
1614
+ /**
1615
+ * Email Finding - DropLeads
1616
+ *
1617
+ * Find a professional email from a person's name and company domain or company name.
1618
+ *
1619
+ * Price: $0.0312 per request.
1620
+ *
1621
+ * @example
1622
+ * const res = await client.emailFinding.dropleads({ firstName: "Tim", lastName: "Zheng", companyDomain: "apollo.io" });
1623
+ */
1624
+ dropleads(input, options) {
1625
+ return this._core.run("email_finding.dropleads", input, options);
1626
+ }
1627
+ /**
1628
+ * Email Finding - Icypeas
1629
+ *
1630
+ * Find a professional email from a person and company through the durable Request lifecycle.
1631
+ *
1632
+ * Price: $0.0168 per request.
1633
+ */
1634
+ icypeas(input, options) {
1635
+ return this._core.run("email_finding.icypeas", input, options);
1636
+ }
1637
+ };
1638
+
1639
+ // src/generated/platforms/email_verification.ts
1640
+ var EmailVerificationNamespace = class {
1641
+ constructor(_core) {
1642
+ this._core = _core;
1643
+ }
1644
+ _core;
1645
+ /**
1646
+ * Email Verification - Allegrow
1647
+ *
1648
+ * Validate an email address and return its deliverability verdict and mailbox signals.
1649
+ *
1650
+ * Price: $0.0144 per request.
1651
+ *
1652
+ * @example
1653
+ * const res = await client.emailVerification.allegrow({ email: "tim@apollo.io" });
1654
+ */
1655
+ allegrow(input, options) {
1656
+ return this._core.run("email_verification.allegrow", input, options);
1657
+ }
1658
+ /**
1659
+ * Email Verification - BounceBan
1660
+ *
1661
+ * Verify an email address, including catch-all handling. Completion uses the durable Request lifecycle; a negative verdict is a successful result.
1662
+ *
1663
+ * Price: $0.0072 per request.
1664
+ */
1665
+ bounceban(input, options) {
1666
+ return this._core.run("email_verification.bounceban", input, options);
1667
+ }
1668
+ /**
1669
+ * Email Verification - Icypeas
1670
+ *
1671
+ * Verify an email address. A valid negative verdict is a successful, billable result.
1672
+ *
1673
+ * Price: $0.0024 per request.
1674
+ */
1675
+ icypeas(input, options) {
1676
+ return this._core.run("email_verification.icypeas", input, options);
1677
+ }
1678
+ };
1679
+
1448
1680
  // src/generated/platforms/facebook.ts
1449
1681
  var FacebookNamespace = class {
1450
1682
  constructor(_core) {
@@ -3357,6 +3589,37 @@ var MapsNamespace = class {
3357
3589
  }
3358
3590
  };
3359
3591
 
3592
+ // src/generated/platforms/mobile_phone.ts
3593
+ var MobilePhoneNamespace = class {
3594
+ constructor(_core) {
3595
+ this._core = _core;
3596
+ }
3597
+ _core;
3598
+ /**
3599
+ * Mobile Phone - AI Ark
3600
+ *
3601
+ * Find a person's mobile phone from a LinkedIn URL or from a domain and full name.
3602
+ *
3603
+ * Price: $0.084 per request.
3604
+ *
3605
+ * @example
3606
+ * const res = await client.mobilePhone.aiArk({ linkedinUrl: "https://www.linkedin.com/in/tim-zheng" });
3607
+ */
3608
+ aiArk(input, options) {
3609
+ return this._core.run("mobile_phone.ai_ark", input, options);
3610
+ }
3611
+ /**
3612
+ * Mobile Phone - LeadMagic
3613
+ *
3614
+ * Find a person's mobile phone from a profile URL or email. No-match responses are not billed.
3615
+ *
3616
+ * Price: $0.2016 per request.
3617
+ */
3618
+ leadmagic(input, options) {
3619
+ return this._core.run("mobile_phone.leadmagic", input, options);
3620
+ }
3621
+ };
3622
+
3360
3623
  // src/generated/platforms/pandaexpress.ts
3361
3624
  var PandaexpressNamespace = class {
3362
3625
  constructor(_core) {
@@ -3404,6 +3667,37 @@ var PandaexpressNamespace = class {
3404
3667
  }
3405
3668
  };
3406
3669
 
3670
+ // src/generated/platforms/people_search.ts
3671
+ var PeopleSearchNamespace = class {
3672
+ constructor(_core) {
3673
+ this._core = _core;
3674
+ }
3675
+ _core;
3676
+ /**
3677
+ * People Search - AI Ark
3678
+ *
3679
+ * Search professional profiles with account, contact, and saved-list filters.
3680
+ *
3681
+ * Price: $0 per request plus $0.0084 per result (maximum $0.84).
3682
+ *
3683
+ * @example
3684
+ * const res = await client.peopleSearch.aiArk({ page: 0, size: 1 });
3685
+ */
3686
+ aiArk(input, options) {
3687
+ return this._core.run("people_search.ai_ark", input, options);
3688
+ }
3689
+ /**
3690
+ * People Search - Crustdata v3
3691
+ *
3692
+ * Find up to 100 professional profiles by company domain and title keywords.
3693
+ *
3694
+ * Price: $0.144 per request.
3695
+ */
3696
+ crustdataV3(input, options) {
3697
+ return this._core.run("people_search.crustdata_v3", input, options);
3698
+ }
3699
+ };
3700
+
3407
3701
  // src/generated/platforms/person.ts
3408
3702
  var PersonNamespace = class {
3409
3703
  constructor(_core) {
@@ -3425,6 +3719,24 @@ var PersonNamespace = class {
3425
3719
  }
3426
3720
  };
3427
3721
 
3722
+ // src/generated/platforms/person_enrichment.ts
3723
+ var PersonEnrichmentNamespace = class {
3724
+ constructor(_core) {
3725
+ this._core = _core;
3726
+ }
3727
+ _core;
3728
+ /**
3729
+ * Person Enrichment - Aviato
3730
+ *
3731
+ * Enrich a person from an Aviato or LinkedIn identifier, LinkedIn URL, or email.
3732
+ *
3733
+ * Price: $0.084 per request.
3734
+ */
3735
+ aviato(input, options) {
3736
+ return this._core.run("person_enrichment.aviato", input, options);
3737
+ }
3738
+ };
3739
+
3428
3740
  // src/generated/platforms/pinterest.ts
3429
3741
  var PinterestNamespace = class {
3430
3742
  constructor(_core) {
@@ -5037,7 +5349,7 @@ var TwitterNamespace = class {
5037
5349
  *
5038
5350
  * Fetch a Twitter/X community's public details (name, description, member count, join policy) by URL.
5039
5351
  *
5040
- * Price: $0.002 per request.
5352
+ * Price: $0.00018 per request.
5041
5353
  *
5042
5354
  * @example
5043
5355
  * const res = await client.twitter.community({ url: "https://x.com/i/communities/1926186499399139650" });
@@ -5121,7 +5433,7 @@ var TwitterNamespace = class {
5121
5433
  *
5122
5434
  * Fetch a Twitter/X account's public profile (followers, tweets, bio, verification) by handle.
5123
5435
  *
5124
- * Price: $0.00075 per request.
5436
+ * Price: $0.00018 per request.
5125
5437
  *
5126
5438
  * @example
5127
5439
  * const res = await client.twitter.profile({ handle: "nasa" });
@@ -5134,7 +5446,7 @@ var TwitterNamespace = class {
5134
5446
  *
5135
5447
  * Fetch the replies to any X (Twitter) post URL as structured records: author, text, and engagement.
5136
5448
  *
5137
- * Price: $0.00263 per request plus $0.00027 per result (maximum $0.0132).
5449
+ * Price: $0.00018 per request plus $0.00018 per result (maximum $0.00666).
5138
5450
  *
5139
5451
  * @example
5140
5452
  * const res = await client.twitter.replies({ url: "https://x.com/jack/status/20", limit: 3 });
@@ -5176,7 +5488,7 @@ var TwitterNamespace = class {
5176
5488
  *
5177
5489
  * Get current X (Twitter) trends for worldwide, a country, or a city in X ranking order, including the resolved location.
5178
5490
  *
5179
- * Price: $0.00075 per request.
5491
+ * Price: $0.00018 per request.
5180
5492
  *
5181
5493
  * @example
5182
5494
  * const res = await client.twitter.trends({ limit: 10, location: "US" });
@@ -5189,7 +5501,7 @@ var TwitterNamespace = class {
5189
5501
  *
5190
5502
  * Fetch a single Twitter/X tweet by URL with its full text and engagement counts (likes, retweets, replies, quotes, bookmarks, views).
5191
5503
  *
5192
- * Price: $0.00075 per request.
5504
+ * Price: $0.00018 per request.
5193
5505
  *
5194
5506
  * @example
5195
5507
  * const res = await client.twitter.tweet({ url: "https://x.com/SpaceX/status/1732824684683784516" });
@@ -5242,9 +5554,9 @@ var TwitterNamespace = class {
5242
5554
  /**
5243
5555
  * X / Twitter User Tweets and Replies
5244
5556
  *
5245
- * Get up to the requested limit of tweets and replies authored by an X (Twitter) account in one bulk call, with engagement, views, and language. The current lane returns nextCursor as null; cursor is reserved for future cursor-capable lanes.
5557
+ * Get up to the requested limit of tweets and replies authored by an X (Twitter) account, with engagement, views, language, and cursor pagination where available.
5246
5558
  *
5247
- * Price: $0 per request plus $0.00021 per result (maximum $0.21).
5559
+ * Price: $0.00018 per request plus $0.00018 per result (maximum $0.01818).
5248
5560
  *
5249
5561
  * @example
5250
5562
  * const res = await client.twitter.userTweets({ handle: "levelsio", limit: 20 });
@@ -5957,7 +6269,7 @@ var ZillowNamespace = class {
5957
6269
  *
5958
6270
  * Search Zillow for-sale, rental, or sold listings by region-level location (city, ZIP, county, or neighborhood) with optional price, bedroom, living-area, home-type, recency, and sort filters and get matching properties (price, address, beds, baths, living area, status, Zestimate) as normalized JSON.
5959
6271
  *
5960
- * Price: $0.00053 per request plus $0.00315 per result (maximum $0.0793).
6272
+ * Price: $0.0009 per request.
5961
6273
  *
5962
6274
  * @example
5963
6275
  * const res = await client.zillow.search({ location: "Austin, TX", limit: 3, maxPrice: 900000, minBedrooms: 3, operation: "buy" });
@@ -6045,6 +6357,20 @@ var AnyAPI2 = class extends AnyAPI {
6045
6357
  this._core
6046
6358
  );
6047
6359
  }
6360
+ /**
6361
+ * Typed methods for the company_enrichment platform.
6362
+ */
6363
+ get companyEnrichment() {
6364
+ return this._namespaces["companyEnrichment"] ??= new CompanyEnrichmentNamespace(this._core);
6365
+ }
6366
+ /**
6367
+ * Typed methods for the company_search platform.
6368
+ */
6369
+ get companySearch() {
6370
+ return this._namespaces["companySearch"] ??= new CompanySearchNamespace(
6371
+ this._core
6372
+ );
6373
+ }
6048
6374
  /**
6049
6375
  * Typed methods for the congress platform.
6050
6376
  */
@@ -6085,6 +6411,20 @@ var AnyAPI2 = class extends AnyAPI {
6085
6411
  this._core
6086
6412
  );
6087
6413
  }
6414
+ /**
6415
+ * Typed methods for the email_finding platform.
6416
+ */
6417
+ get emailFinding() {
6418
+ return this._namespaces["emailFinding"] ??= new EmailFindingNamespace(
6419
+ this._core
6420
+ );
6421
+ }
6422
+ /**
6423
+ * Typed methods for the email_verification platform.
6424
+ */
6425
+ get emailVerification() {
6426
+ return this._namespaces["emailVerification"] ??= new EmailVerificationNamespace(this._core);
6427
+ }
6088
6428
  /**
6089
6429
  * Typed methods for the facebook platform.
6090
6430
  */
@@ -6189,6 +6529,14 @@ var AnyAPI2 = class extends AnyAPI {
6189
6529
  this._core
6190
6530
  );
6191
6531
  }
6532
+ /**
6533
+ * Typed methods for the mobile_phone platform.
6534
+ */
6535
+ get mobilePhone() {
6536
+ return this._namespaces["mobilePhone"] ??= new MobilePhoneNamespace(
6537
+ this._core
6538
+ );
6539
+ }
6192
6540
  /**
6193
6541
  * Typed methods for the pandaexpress platform.
6194
6542
  */
@@ -6197,6 +6545,14 @@ var AnyAPI2 = class extends AnyAPI {
6197
6545
  this._core
6198
6546
  );
6199
6547
  }
6548
+ /**
6549
+ * Typed methods for the people_search platform.
6550
+ */
6551
+ get peopleSearch() {
6552
+ return this._namespaces["peopleSearch"] ??= new PeopleSearchNamespace(
6553
+ this._core
6554
+ );
6555
+ }
6200
6556
  /**
6201
6557
  * Typed methods for the person platform.
6202
6558
  */
@@ -6205,6 +6561,12 @@ var AnyAPI2 = class extends AnyAPI {
6205
6561
  this._core
6206
6562
  );
6207
6563
  }
6564
+ /**
6565
+ * Typed methods for the person_enrichment platform.
6566
+ */
6567
+ get personEnrichment() {
6568
+ return this._namespaces["personEnrichment"] ??= new PersonEnrichmentNamespace(this._core);
6569
+ }
6208
6570
  /**
6209
6571
  * Typed methods for the pinterest platform.
6210
6572
  */
@@ -6460,12 +6822,16 @@ export {
6460
6822
  BlueskyNamespace,
6461
6823
  BookingNamespace,
6462
6824
  CoinmarketcapNamespace,
6825
+ CompanyEnrichmentNamespace,
6826
+ CompanySearchNamespace,
6463
6827
  CongressNamespace,
6464
6828
  ConnectionError,
6465
6829
  DexscreenerNamespace,
6466
6830
  DouyinNamespace,
6467
6831
  EbayNamespace,
6832
+ EmailFindingNamespace,
6468
6833
  EmailNamespace,
6834
+ EmailVerificationNamespace,
6469
6835
  FacebookNamespace,
6470
6836
  FiverrNamespace,
6471
6837
  GithubNamespace,
@@ -6480,8 +6846,11 @@ export {
6480
6846
  InsufficientBalanceError,
6481
6847
  LinkedinNamespace,
6482
6848
  MapsNamespace,
6849
+ MobilePhoneNamespace,
6483
6850
  NotFoundError,
6484
6851
  PandaexpressNamespace,
6852
+ PeopleSearchNamespace,
6853
+ PersonEnrichmentNamespace,
6485
6854
  PersonNamespace,
6486
6855
  PinterestNamespace,
6487
6856
  PlaystoreNamespace,
@@ -6491,6 +6860,7 @@ export {
6491
6860
  RedditNamespace,
6492
6861
  RedfinNamespace,
6493
6862
  RednoteNamespace,
6863
+ RequestPendingError,
6494
6864
  ResultNotFoundError,
6495
6865
  SecNamespace,
6496
6866
  SemrushNamespace,