@getanyapi/sdk 0.121.1 → 0.122.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 +117 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +620 -1
- package/dist/index.d.ts +620 -1
- package/dist/index.js +115 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -68,6 +68,7 @@ __export(index_exports, {
|
|
|
68
68
|
JobSearchNamespace: () => JobSearchNamespace,
|
|
69
69
|
LevelsNamespace: () => LevelsNamespace,
|
|
70
70
|
LinkedinNamespace: () => LinkedinNamespace,
|
|
71
|
+
LinktreeNamespace: () => LinktreeNamespace,
|
|
71
72
|
MapsNamespace: () => MapsNamespace,
|
|
72
73
|
MobilePhoneNamespace: () => MobilePhoneNamespace,
|
|
73
74
|
NOT_FOUND_REASONS: () => NOT_FOUND_REASONS,
|
|
@@ -99,6 +100,7 @@ __export(index_exports, {
|
|
|
99
100
|
SpotifyNamespace: () => SpotifyNamespace,
|
|
100
101
|
SubstackNamespace: () => SubstackNamespace,
|
|
101
102
|
TechnographicsNamespace: () => TechnographicsNamespace,
|
|
103
|
+
TelegramNamespace: () => TelegramNamespace,
|
|
102
104
|
ThreadsNamespace: () => ThreadsNamespace,
|
|
103
105
|
TiktokNamespace: () => TiktokNamespace,
|
|
104
106
|
TiktokShopNamespace: () => TiktokShopNamespace,
|
|
@@ -5102,6 +5104,27 @@ var LinkedinNamespace = class {
|
|
|
5102
5104
|
}
|
|
5103
5105
|
};
|
|
5104
5106
|
|
|
5107
|
+
// src/generated/platforms/linktree.ts
|
|
5108
|
+
var LinktreeNamespace = class {
|
|
5109
|
+
constructor(_core) {
|
|
5110
|
+
this._core = _core;
|
|
5111
|
+
}
|
|
5112
|
+
_core;
|
|
5113
|
+
/**
|
|
5114
|
+
* Linktree Profile
|
|
5115
|
+
*
|
|
5116
|
+
* Get a public Linktree page by URL: title, bio, picture, contact email, linked social accounts, and every link card with its destination.
|
|
5117
|
+
*
|
|
5118
|
+
* Price: $0.0011 per request.
|
|
5119
|
+
*
|
|
5120
|
+
* @example
|
|
5121
|
+
* const res = await client.linktree.profile({ url: "https://linktr.ee/mkbhd" });
|
|
5122
|
+
*/
|
|
5123
|
+
profile(input, options) {
|
|
5124
|
+
return this._core.run("linktree.profile", input, options);
|
|
5125
|
+
}
|
|
5126
|
+
};
|
|
5127
|
+
|
|
5105
5128
|
// src/generated/platforms/maps.ts
|
|
5106
5129
|
var MapsNamespace = class {
|
|
5107
5130
|
constructor(_core) {
|
|
@@ -6844,6 +6867,69 @@ var TechnographicsNamespace = class {
|
|
|
6844
6867
|
}
|
|
6845
6868
|
};
|
|
6846
6869
|
|
|
6870
|
+
// src/generated/platforms/telegram.ts
|
|
6871
|
+
var TelegramNamespace = class {
|
|
6872
|
+
constructor(_core) {
|
|
6873
|
+
this._core = _core;
|
|
6874
|
+
}
|
|
6875
|
+
_core;
|
|
6876
|
+
/**
|
|
6877
|
+
* Telegram Channel
|
|
6878
|
+
*
|
|
6879
|
+
* Get a public Telegram channel by username: name, bio, photo, verified badge, exact subscriber count, and how many photos, videos, files and links it has posted.
|
|
6880
|
+
*
|
|
6881
|
+
* Price: $0.0011 per request.
|
|
6882
|
+
*
|
|
6883
|
+
* @example
|
|
6884
|
+
* const res = await client.telegram.channel({ handle: "telegram" });
|
|
6885
|
+
*/
|
|
6886
|
+
channel(input, options) {
|
|
6887
|
+
return this._core.run("telegram.channel", input, options);
|
|
6888
|
+
}
|
|
6889
|
+
/**
|
|
6890
|
+
* Telegram Channel Posts
|
|
6891
|
+
*
|
|
6892
|
+
* Get a public Telegram channel's posts by username, about 20 per page with a cursor for older pages: text, posting time, views, photo and video links, and reactions.
|
|
6893
|
+
*
|
|
6894
|
+
* Price: $0.0011 per request.
|
|
6895
|
+
*
|
|
6896
|
+
* @example
|
|
6897
|
+
* const res = await client.telegram.channelPosts({ handle: "telegram" });
|
|
6898
|
+
*/
|
|
6899
|
+
channelPosts(input, options) {
|
|
6900
|
+
return this._core.run("telegram.channel_posts", input, options);
|
|
6901
|
+
}
|
|
6902
|
+
/**
|
|
6903
|
+
* Iterate every result of Telegram Channel Posts across pages.
|
|
6904
|
+
*
|
|
6905
|
+
* Yields items directly; call `.pages()` on the return value to walk whole
|
|
6906
|
+
* result pages instead (each carries its own costUsd).
|
|
6907
|
+
*/
|
|
6908
|
+
iterChannelPosts(input, options) {
|
|
6909
|
+
return paginate(
|
|
6910
|
+
this._core,
|
|
6911
|
+
"telegram.channel_posts",
|
|
6912
|
+
input,
|
|
6913
|
+
"posts",
|
|
6914
|
+
false,
|
|
6915
|
+
options
|
|
6916
|
+
);
|
|
6917
|
+
}
|
|
6918
|
+
/**
|
|
6919
|
+
* Telegram Post
|
|
6920
|
+
*
|
|
6921
|
+
* Get one public Telegram channel post by its t.me link: text, posting time, views, photo and video links, and reactions.
|
|
6922
|
+
*
|
|
6923
|
+
* Price: $0.0011 per request.
|
|
6924
|
+
*
|
|
6925
|
+
* @example
|
|
6926
|
+
* const res = await client.telegram.post({ url: "https://t.me/telegram/460" });
|
|
6927
|
+
*/
|
|
6928
|
+
post(input, options) {
|
|
6929
|
+
return this._core.run("telegram.post", input, options);
|
|
6930
|
+
}
|
|
6931
|
+
};
|
|
6932
|
+
|
|
6847
6933
|
// src/generated/platforms/threads.ts
|
|
6848
6934
|
var ThreadsNamespace = class {
|
|
6849
6935
|
constructor(_core) {
|
|
@@ -7543,6 +7629,19 @@ var TiktokNamespace = class {
|
|
|
7543
7629
|
trendingHashtags(input, options) {
|
|
7544
7630
|
return this._core.run("tiktok.trending_hashtags", input, options);
|
|
7545
7631
|
}
|
|
7632
|
+
/**
|
|
7633
|
+
* TikTok User Stories
|
|
7634
|
+
*
|
|
7635
|
+
* Get a TikTok creator's active public stories by username: video or photo links, cover, posting and expiry times, and view, like, share and save counts.
|
|
7636
|
+
*
|
|
7637
|
+
* Price: $0.0011 per request.
|
|
7638
|
+
*
|
|
7639
|
+
* @example
|
|
7640
|
+
* const res = await client.tiktok.userStories({ handle: "jasonderulo" });
|
|
7641
|
+
*/
|
|
7642
|
+
userStories(input, options) {
|
|
7643
|
+
return this._core.run("tiktok.user_stories", input, options);
|
|
7644
|
+
}
|
|
7546
7645
|
/**
|
|
7547
7646
|
* TikTok Video
|
|
7548
7647
|
*
|
|
@@ -9407,6 +9506,14 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
9407
9506
|
this._core
|
|
9408
9507
|
);
|
|
9409
9508
|
}
|
|
9509
|
+
/**
|
|
9510
|
+
* Typed methods for the linktree platform.
|
|
9511
|
+
*/
|
|
9512
|
+
get linktree() {
|
|
9513
|
+
return this._namespaces["linktree"] ??= new LinktreeNamespace(
|
|
9514
|
+
this._core
|
|
9515
|
+
);
|
|
9516
|
+
}
|
|
9410
9517
|
/**
|
|
9411
9518
|
* Typed methods for the maps platform.
|
|
9412
9519
|
*/
|
|
@@ -9611,6 +9718,14 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
9611
9718
|
this._core
|
|
9612
9719
|
);
|
|
9613
9720
|
}
|
|
9721
|
+
/**
|
|
9722
|
+
* Typed methods for the telegram platform.
|
|
9723
|
+
*/
|
|
9724
|
+
get telegram() {
|
|
9725
|
+
return this._namespaces["telegram"] ??= new TelegramNamespace(
|
|
9726
|
+
this._core
|
|
9727
|
+
);
|
|
9728
|
+
}
|
|
9614
9729
|
/**
|
|
9615
9730
|
* Typed methods for the threads platform.
|
|
9616
9731
|
*/
|
|
@@ -9798,6 +9913,7 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
9798
9913
|
JobSearchNamespace,
|
|
9799
9914
|
LevelsNamespace,
|
|
9800
9915
|
LinkedinNamespace,
|
|
9916
|
+
LinktreeNamespace,
|
|
9801
9917
|
MapsNamespace,
|
|
9802
9918
|
MobilePhoneNamespace,
|
|
9803
9919
|
NOT_FOUND_REASONS,
|
|
@@ -9829,6 +9945,7 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
9829
9945
|
SpotifyNamespace,
|
|
9830
9946
|
SubstackNamespace,
|
|
9831
9947
|
TechnographicsNamespace,
|
|
9948
|
+
TelegramNamespace,
|
|
9832
9949
|
ThreadsNamespace,
|
|
9833
9950
|
TiktokNamespace,
|
|
9834
9951
|
TiktokShopNamespace,
|