@getanyapi/sdk 0.79.0 → 0.80.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
@@ -5044,6 +5044,27 @@ var PersonEnrichmentNamespace = class {
5044
5044
  }
5045
5045
  };
5046
5046
 
5047
+ // src/generated/platforms/pexels.ts
5048
+ var PexelsNamespace = class {
5049
+ constructor(_core) {
5050
+ this._core = _core;
5051
+ }
5052
+ _core;
5053
+ /**
5054
+ * Pexels Photo Search
5055
+ *
5056
+ * Search Pexels for free stock photos by keyword. Returns image URLs in several sizes, dimensions, alt text, the photographer's name and profile, and the photo's Pexels page.
5057
+ *
5058
+ * Price: $0.00055 per request plus $0.0033 per result (maximum $0.0666).
5059
+ *
5060
+ * @example
5061
+ * const res = await client.pexels.searchPhotos({ query: "coffee", limit: 2 });
5062
+ */
5063
+ searchPhotos(input, options) {
5064
+ return this._core.run("pexels.search_photos", input, options);
5065
+ }
5066
+ };
5067
+
5047
5068
  // src/generated/platforms/pinterest.ts
5048
5069
  var PinterestNamespace = class {
5049
5070
  constructor(_core) {
@@ -7602,6 +7623,27 @@ var TwitterNamespace = class {
7602
7623
  }
7603
7624
  };
7604
7625
 
7626
+ // src/generated/platforms/unsplash.ts
7627
+ var UnsplashNamespace = class {
7628
+ constructor(_core) {
7629
+ this._core = _core;
7630
+ }
7631
+ _core;
7632
+ /**
7633
+ * Unsplash Photo Search
7634
+ *
7635
+ * Search Unsplash for free stock photos by keyword. Returns image URLs in several sizes, dimensions, alt text, the photographer's name and profile, and the photo's Unsplash page.
7636
+ *
7637
+ * Price: $0.00055 per request plus $0.00165 per result (maximum $0.0336).
7638
+ *
7639
+ * @example
7640
+ * const res = await client.unsplash.searchPhotos({ query: "coffee", limit: 2 });
7641
+ */
7642
+ searchPhotos(input, options) {
7643
+ return this._core.run("unsplash.search_photos", input, options);
7644
+ }
7645
+ };
7646
+
7605
7647
  // src/generated/platforms/upwork.ts
7606
7648
  var UpworkNamespace = class {
7607
7649
  constructor(_core) {
@@ -8752,6 +8794,14 @@ var AnyAPI2 = class extends AnyAPI {
8752
8794
  get personEnrichment() {
8753
8795
  return this._namespaces["personEnrichment"] ??= new PersonEnrichmentNamespace(this._core);
8754
8796
  }
8797
+ /**
8798
+ * Typed methods for the pexels platform.
8799
+ */
8800
+ get pexels() {
8801
+ return this._namespaces["pexels"] ??= new PexelsNamespace(
8802
+ this._core
8803
+ );
8804
+ }
8755
8805
  /**
8756
8806
  * Typed methods for the pinterest platform.
8757
8807
  */
@@ -8942,6 +8992,14 @@ var AnyAPI2 = class extends AnyAPI {
8942
8992
  this._core
8943
8993
  );
8944
8994
  }
8995
+ /**
8996
+ * Typed methods for the unsplash platform.
8997
+ */
8998
+ get unsplash() {
8999
+ return this._namespaces["unsplash"] ??= new UnsplashNamespace(
9000
+ this._core
9001
+ );
9002
+ }
8945
9003
  /**
8946
9004
  * Typed methods for the upwork platform.
8947
9005
  */
@@ -9069,6 +9127,7 @@ export {
9069
9127
  PerplexityNamespace,
9070
9128
  PersonEnrichmentNamespace,
9071
9129
  PersonNamespace,
9130
+ PexelsNamespace,
9072
9131
  PinterestNamespace,
9073
9132
  PlaystoreNamespace,
9074
9133
  PolymarketNamespace,
@@ -9097,6 +9156,7 @@ export {
9097
9156
  TrustpilotNamespace,
9098
9157
  TruthsocialNamespace,
9099
9158
  TwitterNamespace,
9159
+ UnsplashNamespace,
9100
9160
  UpstreamError,
9101
9161
  UpworkNamespace,
9102
9162
  WalmartNamespace,