@getanyapi/sdk 0.79.1 → 0.80.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.cjs +62 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +435 -2
- package/dist/index.d.ts +435 -2
- package/dist/index.js +60 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -73,6 +73,7 @@ __export(index_exports, {
|
|
|
73
73
|
PerplexityNamespace: () => PerplexityNamespace,
|
|
74
74
|
PersonEnrichmentNamespace: () => PersonEnrichmentNamespace,
|
|
75
75
|
PersonNamespace: () => PersonNamespace,
|
|
76
|
+
PexelsNamespace: () => PexelsNamespace,
|
|
76
77
|
PinterestNamespace: () => PinterestNamespace,
|
|
77
78
|
PlaystoreNamespace: () => PlaystoreNamespace,
|
|
78
79
|
PolymarketNamespace: () => PolymarketNamespace,
|
|
@@ -101,6 +102,7 @@ __export(index_exports, {
|
|
|
101
102
|
TrustpilotNamespace: () => TrustpilotNamespace,
|
|
102
103
|
TruthsocialNamespace: () => TruthsocialNamespace,
|
|
103
104
|
TwitterNamespace: () => TwitterNamespace,
|
|
105
|
+
UnsplashNamespace: () => UnsplashNamespace,
|
|
104
106
|
UpstreamError: () => UpstreamError,
|
|
105
107
|
UpworkNamespace: () => UpworkNamespace,
|
|
106
108
|
WalmartNamespace: () => WalmartNamespace,
|
|
@@ -5163,6 +5165,27 @@ var PersonEnrichmentNamespace = class {
|
|
|
5163
5165
|
}
|
|
5164
5166
|
};
|
|
5165
5167
|
|
|
5168
|
+
// src/generated/platforms/pexels.ts
|
|
5169
|
+
var PexelsNamespace = class {
|
|
5170
|
+
constructor(_core) {
|
|
5171
|
+
this._core = _core;
|
|
5172
|
+
}
|
|
5173
|
+
_core;
|
|
5174
|
+
/**
|
|
5175
|
+
* Pexels Photo Search
|
|
5176
|
+
*
|
|
5177
|
+
* 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.
|
|
5178
|
+
*
|
|
5179
|
+
* Price: $0.00055 per request plus $0.0033 per result (maximum $0.0666).
|
|
5180
|
+
*
|
|
5181
|
+
* @example
|
|
5182
|
+
* const res = await client.pexels.searchPhotos({ query: "coffee", limit: 2 });
|
|
5183
|
+
*/
|
|
5184
|
+
searchPhotos(input, options) {
|
|
5185
|
+
return this._core.run("pexels.search_photos", input, options);
|
|
5186
|
+
}
|
|
5187
|
+
};
|
|
5188
|
+
|
|
5166
5189
|
// src/generated/platforms/pinterest.ts
|
|
5167
5190
|
var PinterestNamespace = class {
|
|
5168
5191
|
constructor(_core) {
|
|
@@ -7721,6 +7744,27 @@ var TwitterNamespace = class {
|
|
|
7721
7744
|
}
|
|
7722
7745
|
};
|
|
7723
7746
|
|
|
7747
|
+
// src/generated/platforms/unsplash.ts
|
|
7748
|
+
var UnsplashNamespace = class {
|
|
7749
|
+
constructor(_core) {
|
|
7750
|
+
this._core = _core;
|
|
7751
|
+
}
|
|
7752
|
+
_core;
|
|
7753
|
+
/**
|
|
7754
|
+
* Unsplash Photo Search
|
|
7755
|
+
*
|
|
7756
|
+
* 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.
|
|
7757
|
+
*
|
|
7758
|
+
* Price: $0.00055 per request plus $0.00165 per result (maximum $0.0336).
|
|
7759
|
+
*
|
|
7760
|
+
* @example
|
|
7761
|
+
* const res = await client.unsplash.searchPhotos({ query: "coffee", limit: 2 });
|
|
7762
|
+
*/
|
|
7763
|
+
searchPhotos(input, options) {
|
|
7764
|
+
return this._core.run("unsplash.search_photos", input, options);
|
|
7765
|
+
}
|
|
7766
|
+
};
|
|
7767
|
+
|
|
7724
7768
|
// src/generated/platforms/upwork.ts
|
|
7725
7769
|
var UpworkNamespace = class {
|
|
7726
7770
|
constructor(_core) {
|
|
@@ -8871,6 +8915,14 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
8871
8915
|
get personEnrichment() {
|
|
8872
8916
|
return this._namespaces["personEnrichment"] ??= new PersonEnrichmentNamespace(this._core);
|
|
8873
8917
|
}
|
|
8918
|
+
/**
|
|
8919
|
+
* Typed methods for the pexels platform.
|
|
8920
|
+
*/
|
|
8921
|
+
get pexels() {
|
|
8922
|
+
return this._namespaces["pexels"] ??= new PexelsNamespace(
|
|
8923
|
+
this._core
|
|
8924
|
+
);
|
|
8925
|
+
}
|
|
8874
8926
|
/**
|
|
8875
8927
|
* Typed methods for the pinterest platform.
|
|
8876
8928
|
*/
|
|
@@ -9061,6 +9113,14 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
9061
9113
|
this._core
|
|
9062
9114
|
);
|
|
9063
9115
|
}
|
|
9116
|
+
/**
|
|
9117
|
+
* Typed methods for the unsplash platform.
|
|
9118
|
+
*/
|
|
9119
|
+
get unsplash() {
|
|
9120
|
+
return this._namespaces["unsplash"] ??= new UnsplashNamespace(
|
|
9121
|
+
this._core
|
|
9122
|
+
);
|
|
9123
|
+
}
|
|
9064
9124
|
/**
|
|
9065
9125
|
* Typed methods for the upwork platform.
|
|
9066
9126
|
*/
|
|
@@ -9189,6 +9249,7 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
9189
9249
|
PerplexityNamespace,
|
|
9190
9250
|
PersonEnrichmentNamespace,
|
|
9191
9251
|
PersonNamespace,
|
|
9252
|
+
PexelsNamespace,
|
|
9192
9253
|
PinterestNamespace,
|
|
9193
9254
|
PlaystoreNamespace,
|
|
9194
9255
|
PolymarketNamespace,
|
|
@@ -9217,6 +9278,7 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
9217
9278
|
TrustpilotNamespace,
|
|
9218
9279
|
TruthsocialNamespace,
|
|
9219
9280
|
TwitterNamespace,
|
|
9281
|
+
UnsplashNamespace,
|
|
9220
9282
|
UpstreamError,
|
|
9221
9283
|
UpworkNamespace,
|
|
9222
9284
|
WalmartNamespace,
|