@getanyapi/sdk 0.175.6 → 0.176.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
@@ -37,6 +37,7 @@ __export(index_exports, {
37
37
  BookingNamespace: () => BookingNamespace,
38
38
  BraveNamespace: () => BraveNamespace,
39
39
  CapterraNamespace: () => CapterraNamespace,
40
+ CardsNamespace: () => CardsNamespace,
40
41
  ChatgptNamespace: () => ChatgptNamespace,
41
42
  CoinmarketcapNamespace: () => CoinmarketcapNamespace,
42
43
  CompanyEnrichmentNamespace: () => CompanyEnrichmentNamespace,
@@ -1753,6 +1754,53 @@ var CapterraNamespace = class {
1753
1754
  }
1754
1755
  };
1755
1756
 
1757
+ // src/generated/platforms/cards.ts
1758
+ var CardsNamespace = class {
1759
+ constructor(_core) {
1760
+ this._core = _core;
1761
+ }
1762
+ _core;
1763
+ /**
1764
+ * Graded Card Cert Lookup
1765
+ *
1766
+ * Look up one graded trading card slab by its PSA, BGS, SGC or CGC certificate number and get the card (year, set, number, player or character, variety), its grade with BGS subgrades, the approximate population in that grade, the estimated market value with its low and high range, the last sale of any copy in that grade, and the sales of this exact slab that carry its certificate number (eBay and Fanatics Collect sales only from about the last 90 days, when the seller put the number in the title), in one normalized response. Sports cards, Pokemon and other trading card games.
1767
+ *
1768
+ * Price: $0.00338 per request.
1769
+ *
1770
+ * @example
1771
+ * const res = await client.cards.gradedCert({ certNumber: "0011562845", gradingCompany: "BGS" });
1772
+ */
1773
+ gradedCert(input, options) {
1774
+ return this._core.run("cards.graded_cert", input, options);
1775
+ }
1776
+ /**
1777
+ * Graded Card Population
1778
+ *
1779
+ * Get one graded trading card's population report across PSA, BGS, SGC and CGC by card ID (from Graded Card Population Search): total graded, gem count and gem rate, the count at every grade on a common scale with the share graded higher, and per grader the count at every grade including half grades and qualified grades (OC, MK and the like), with the date the population last changed. Sports cards, Pokemon and other trading card games.
1780
+ *
1781
+ * Price: $0.00338 per request.
1782
+ *
1783
+ * @example
1784
+ * const res = await client.cards.population({ cardId: "ffb8699bb7f435eff4e9761f8e29358e351d777e" });
1785
+ */
1786
+ population(input, options) {
1787
+ return this._core.run("cards.population", input, options);
1788
+ }
1789
+ /**
1790
+ * Graded Card Population Search
1791
+ *
1792
+ * Search graded trading cards across PSA, BGS, SGC and CGC by free text (year, set, player or character, card number, parallel) and get each matching card variant with its card ID, year, set, number, parallel, total graded population, gem count and gem rate. Pass the card ID to Graded Card Population for the count at every grade.
1793
+ *
1794
+ * Price: $0.00225 per request.
1795
+ *
1796
+ * @example
1797
+ * const res = await client.cards.populationSearch({ query: "1999 Pokemon Base Charizard" });
1798
+ */
1799
+ populationSearch(input, options) {
1800
+ return this._core.run("cards.population_search", input, options);
1801
+ }
1802
+ };
1803
+
1756
1804
  // src/generated/platforms/chatgpt.ts
1757
1805
  var ChatgptNamespace = class {
1758
1806
  constructor(_core) {
@@ -9018,7 +9066,7 @@ var TwitterNamespace = class {
9018
9066
  *
9019
9067
  * Search X (Twitter) with full advanced-search syntax (operators like from:, since:, until:, min_faves: work inline in the query) and get structured tweets with text, author, engagement, and cursor pagination. Limit is a per-page maximum; native pages contain approximately 20 tweets unless requireSinglePage selects a bulk lane.
9020
9068
  *
9021
- * Price: $0.00047 per request.
9069
+ * Price: $0.00049 per request.
9022
9070
  *
9023
9071
  * @example
9024
9072
  * const res = await client.twitter.search({ query: "openai" });
@@ -10213,6 +10261,14 @@ var AnyAPI2 = class extends AnyAPI {
10213
10261
  this._core
10214
10262
  );
10215
10263
  }
10264
+ /**
10265
+ * Typed methods for the cards platform.
10266
+ */
10267
+ get cards() {
10268
+ return this._namespaces["cards"] ??= new CardsNamespace(
10269
+ this._core
10270
+ );
10271
+ }
10216
10272
  /**
10217
10273
  * Typed methods for the chatgpt platform.
10218
10274
  */
@@ -10893,6 +10949,7 @@ var AnyAPI2 = class extends AnyAPI {
10893
10949
  BookingNamespace,
10894
10950
  BraveNamespace,
10895
10951
  CapterraNamespace,
10952
+ CardsNamespace,
10896
10953
  ChatgptNamespace,
10897
10954
  CoinmarketcapNamespace,
10898
10955
  CompanyEnrichmentNamespace,