@indiciaosint/sdk 1.0.1-patch → 1.0.3
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/README.md +6 -6
- package/esm/funcs/intelligence-geolocate-media.d.ts +1 -1
- package/esm/funcs/intelligence-geolocate-media.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/operations/search-address.d.ts +18 -13
- package/esm/models/operations/search-address.d.ts.map +1 -1
- package/esm/models/operations/search-address.js +20 -13
- package/esm/models/operations/search-address.js.map +1 -1
- package/esm/models/operations/search-discord.d.ts +4 -4
- package/esm/models/operations/search-discord.d.ts.map +1 -1
- package/esm/models/operations/search-discord.js +5 -4
- package/esm/models/operations/search-discord.js.map +1 -1
- package/esm/models/operations/search-dns.d.ts +52 -20
- package/esm/models/operations/search-dns.d.ts.map +1 -1
- package/esm/models/operations/search-dns.js +76 -24
- package/esm/models/operations/search-dns.js.map +1 -1
- package/esm/models/operations/search-email.d.ts +17 -10
- package/esm/models/operations/search-email.d.ts.map +1 -1
- package/esm/models/operations/search-email.js +18 -10
- package/esm/models/operations/search-email.js.map +1 -1
- package/esm/models/operations/search-gmail.d.ts +94 -72
- package/esm/models/operations/search-gmail.d.ts.map +1 -1
- package/esm/models/operations/search-gmail.js +94 -69
- package/esm/models/operations/search-gmail.js.map +1 -1
- package/esm/models/operations/search-hudson-rock.d.ts +27 -23
- package/esm/models/operations/search-hudson-rock.d.ts.map +1 -1
- package/esm/models/operations/search-hudson-rock.js +23 -15
- package/esm/models/operations/search-hudson-rock.js.map +1 -1
- package/esm/models/operations/search-ip-info.d.ts +114 -25
- package/esm/models/operations/search-ip-info.d.ts.map +1 -1
- package/esm/models/operations/search-ip-info.js +172 -28
- package/esm/models/operations/search-ip-info.js.map +1 -1
- package/esm/models/operations/search-person.d.ts +18 -13
- package/esm/models/operations/search-person.d.ts.map +1 -1
- package/esm/models/operations/search-person.js +20 -13
- package/esm/models/operations/search-person.js.map +1 -1
- package/esm/models/operations/search-phone.d.ts +22 -28
- package/esm/models/operations/search-phone.d.ts.map +1 -1
- package/esm/models/operations/search-phone.js +25 -39
- package/esm/models/operations/search-phone.js.map +1 -1
- package/esm/models/operations/search-roblox.d.ts +9 -9
- package/esm/models/operations/search-roblox.d.ts.map +1 -1
- package/esm/models/operations/search-roblox.js +10 -10
- package/esm/models/operations/search-roblox.js.map +1 -1
- package/esm/models/operations/search-seon.d.ts +5 -5
- package/esm/models/operations/search-seon.d.ts.map +1 -1
- package/esm/models/operations/search-seon.js +5 -5
- package/esm/models/operations/search-seon.js.map +1 -1
- package/esm/models/operations/search-shodan.d.ts +94 -90
- package/esm/models/operations/search-shodan.d.ts.map +1 -1
- package/esm/models/operations/search-shodan.js +102 -96
- package/esm/models/operations/search-shodan.js.map +1 -1
- package/esm/models/operations/search-tiktok.d.ts +22 -363
- package/esm/models/operations/search-tiktok.d.ts.map +1 -1
- package/esm/models/operations/search-tiktok.js +23 -593
- package/esm/models/operations/search-tiktok.js.map +1 -1
- package/esm/models/operations/search-username.d.ts +9 -9
- package/esm/models/operations/search-username.d.ts.map +1 -1
- package/esm/models/operations/search-username.js +13 -16
- package/esm/models/operations/search-username.js.map +1 -1
- package/esm/models/operations/search-web-databases.d.ts +108 -311
- package/esm/models/operations/search-web-databases.d.ts.map +1 -1
- package/esm/models/operations/search-web-databases.js +115 -432
- package/esm/models/operations/search-web-databases.js.map +1 -1
- package/esm/models/operations/search-whois.d.ts +24 -59
- package/esm/models/operations/search-whois.d.ts.map +1 -1
- package/esm/models/operations/search-whois.js +24 -86
- package/esm/models/operations/search-whois.js.map +1 -1
- package/esm/sdk/intelligence.d.ts +1 -1
- package/esm/sdk/intelligence.js +1 -1
- package/jsr.json +1 -1
- package/package.json +5 -3
- package/src/funcs/intelligence-geolocate-media.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/operations/search-address.ts +47 -26
- package/src/models/operations/search-discord.ts +13 -15
- package/src/models/operations/search-dns.ts +213 -36
- package/src/models/operations/search-email.ts +44 -20
- package/src/models/operations/search-gmail.ts +269 -152
- package/src/models/operations/search-hudson-rock.ts +61 -51
- package/src/models/operations/search-ip-info.ts +359 -52
- package/src/models/operations/search-person.ts +47 -26
- package/src/models/operations/search-phone.ts +56 -76
- package/src/models/operations/search-roblox.ts +27 -27
- package/src/models/operations/search-seon.ts +10 -10
- package/src/models/operations/search-shodan.ts +217 -196
- package/src/models/operations/search-tiktok.ts +45 -1366
- package/src/models/operations/search-username.ts +24 -32
- package/src/models/operations/search-web-databases.ts +308 -1000
- package/src/models/operations/search-whois.ts +49 -192
- package/src/sdk/intelligence.ts +1 -1
|
@@ -2,19 +2,8 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod/v4-mini";
|
|
5
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
5
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import * as openEnums from "../../types/enums.js";
|
|
8
6
|
import * as types from "../../types/primitives.js";
|
|
9
|
-
import { smartUnion } from "../../types/smart-union.js";
|
|
10
|
-
export const IsPrivateAccount = {
|
|
11
|
-
No: "No",
|
|
12
|
-
Yes: "Yes",
|
|
13
|
-
};
|
|
14
|
-
export const SearchType = {
|
|
15
|
-
Basic: "basic",
|
|
16
|
-
Full: "full",
|
|
17
|
-
};
|
|
18
7
|
/** @internal */
|
|
19
8
|
export const SearchTiktokRequest$outboundSchema = z.object({
|
|
20
9
|
query: z.string(),
|
|
@@ -23,591 +12,32 @@ export function searchTiktokRequestToJSON(searchTiktokRequest) {
|
|
|
23
12
|
return JSON.stringify(SearchTiktokRequest$outboundSchema.parse(searchTiktokRequest));
|
|
24
13
|
}
|
|
25
14
|
/** @internal */
|
|
26
|
-
export const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
/** @internal */
|
|
49
|
-
export const PerformanceByHour$inboundSchema = z.object({
|
|
50
|
-
avgViews: types.number(),
|
|
51
|
-
posts: types.number(),
|
|
52
|
-
totalEngagement: types.number(),
|
|
53
|
-
totalViews: types.number(),
|
|
54
|
-
});
|
|
55
|
-
export function performanceByHourFromJSON(jsonString) {
|
|
56
|
-
return safeParse(jsonString, (x) => PerformanceByHour$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PerformanceByHour' from JSON`);
|
|
57
|
-
}
|
|
58
|
-
/** @internal */
|
|
59
|
-
export const PostingFrequency$inboundSchema = z.pipe(z.object({
|
|
60
|
-
average_posts_per_week: types.optional(types.number()),
|
|
61
|
-
posting_consistency_score: types.optional(types.number()),
|
|
62
|
-
}), z.transform((v) => {
|
|
63
|
-
return remap$(v, {
|
|
64
|
-
"average_posts_per_week": "averagePostsPerWeek",
|
|
65
|
-
"posting_consistency_score": "postingConsistencyScore",
|
|
66
|
-
});
|
|
67
|
-
}));
|
|
68
|
-
export function postingFrequencyFromJSON(jsonString) {
|
|
69
|
-
return safeParse(jsonString, (x) => PostingFrequency$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostingFrequency' from JSON`);
|
|
70
|
-
}
|
|
71
|
-
/** @internal */
|
|
72
|
-
export const PostingSchedule$inboundSchema = z.pipe(z.object({
|
|
73
|
-
most_active_day: types.string(),
|
|
74
|
-
most_active_hour_utc: types.string(),
|
|
75
|
-
optimal_posting_day: types.string(),
|
|
76
|
-
optimal_posting_hour_utc: types.string(),
|
|
77
|
-
performance_by_day: z.record(z.string(), z.lazy(() => PerformanceByDay$inboundSchema)),
|
|
78
|
-
performance_by_hour: z.record(z.string(), z.lazy(() => PerformanceByHour$inboundSchema)),
|
|
79
|
-
posting_heatmap_day_vs_hour_utc: z.record(z.string(), z.record(z.string(), types.number())),
|
|
80
|
-
posting_frequency: types.optional(z.lazy(() => PostingFrequency$inboundSchema)),
|
|
81
|
-
}), z.transform((v) => {
|
|
82
|
-
return remap$(v, {
|
|
83
|
-
"most_active_day": "mostActiveDay",
|
|
84
|
-
"most_active_hour_utc": "mostActiveHourUtc",
|
|
85
|
-
"optimal_posting_day": "optimalPostingDay",
|
|
86
|
-
"optimal_posting_hour_utc": "optimalPostingHourUtc",
|
|
87
|
-
"performance_by_day": "performanceByDay",
|
|
88
|
-
"performance_by_hour": "performanceByHour",
|
|
89
|
-
"posting_heatmap_day_vs_hour_utc": "postingHeatmapDayVsHourUtc",
|
|
90
|
-
"posting_frequency": "postingFrequency",
|
|
91
|
-
});
|
|
92
|
-
}));
|
|
93
|
-
export function postingScheduleFromJSON(jsonString) {
|
|
94
|
-
return safeParse(jsonString, (x) => PostingSchedule$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostingSchedule' from JSON`);
|
|
95
|
-
}
|
|
96
|
-
/** @internal */
|
|
97
|
-
export const AudienceAndTimingInsights$inboundSchema = z.pipe(z.object({
|
|
98
|
-
geo_indicators: z.lazy(() => GeoIndicators$inboundSchema),
|
|
99
|
-
posting_schedule: z.lazy(() => PostingSchedule$inboundSchema),
|
|
100
|
-
}), z.transform((v) => {
|
|
101
|
-
return remap$(v, {
|
|
102
|
-
"geo_indicators": "geoIndicators",
|
|
103
|
-
"posting_schedule": "postingSchedule",
|
|
104
|
-
});
|
|
105
|
-
}));
|
|
106
|
-
export function audienceAndTimingInsightsFromJSON(jsonString) {
|
|
107
|
-
return safeParse(jsonString, (x) => AudienceAndTimingInsights$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AudienceAndTimingInsights' from JSON`);
|
|
108
|
-
}
|
|
109
|
-
/** @internal */
|
|
110
|
-
export const TrendingHashtag$inboundSchema = z.pipe(z.object({
|
|
111
|
-
hashtag: types.string(),
|
|
112
|
-
older_usage: types.number(),
|
|
113
|
-
recent_usage: types.number(),
|
|
114
|
-
trend_score: types.number(),
|
|
115
|
-
}), z.transform((v) => {
|
|
116
|
-
return remap$(v, {
|
|
117
|
-
"older_usage": "olderUsage",
|
|
118
|
-
"recent_usage": "recentUsage",
|
|
119
|
-
"trend_score": "trendScore",
|
|
120
|
-
});
|
|
121
|
-
}));
|
|
122
|
-
export function trendingHashtagFromJSON(jsonString) {
|
|
123
|
-
return safeParse(jsonString, (x) => TrendingHashtag$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TrendingHashtag' from JSON`);
|
|
124
|
-
}
|
|
125
|
-
/** @internal */
|
|
126
|
-
export const ContentTrends$inboundSchema = z.pipe(z.object({
|
|
127
|
-
content_consistency_score: types.number(),
|
|
128
|
-
recent_popular_hashtags: z.array(types.string()),
|
|
129
|
-
trending_hashtags: z.array(z.lazy(() => TrendingHashtag$inboundSchema)),
|
|
130
|
-
}), z.transform((v) => {
|
|
131
|
-
return remap$(v, {
|
|
132
|
-
"content_consistency_score": "contentConsistencyScore",
|
|
133
|
-
"recent_popular_hashtags": "recentPopularHashtags",
|
|
134
|
-
"trending_hashtags": "trendingHashtags",
|
|
135
|
-
});
|
|
136
|
-
}));
|
|
137
|
-
export function contentTrendsFromJSON(jsonString) {
|
|
138
|
-
return safeParse(jsonString, (x) => ContentTrends$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ContentTrends' from JSON`);
|
|
139
|
-
}
|
|
140
|
-
/** @internal */
|
|
141
|
-
export const VideoLengthAnalysisSeconds$inboundSchema = z.pipe(z.object({
|
|
142
|
-
average_duration: types.number(),
|
|
143
|
-
longest_duration: types.number(),
|
|
144
|
-
optimal_duration_range: types.string(),
|
|
145
|
-
shortest_duration: types.number(),
|
|
146
|
-
}), z.transform((v) => {
|
|
147
|
-
return remap$(v, {
|
|
148
|
-
"average_duration": "averageDuration",
|
|
149
|
-
"longest_duration": "longestDuration",
|
|
150
|
-
"optimal_duration_range": "optimalDurationRange",
|
|
151
|
-
"shortest_duration": "shortestDuration",
|
|
152
|
-
});
|
|
153
|
-
}));
|
|
154
|
-
export function videoLengthAnalysisSecondsFromJSON(jsonString) {
|
|
155
|
-
return safeParse(jsonString, (x) => VideoLengthAnalysisSeconds$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VideoLengthAnalysisSeconds' from JSON`);
|
|
156
|
-
}
|
|
157
|
-
/** @internal */
|
|
158
|
-
export const ContentStrategyDeepDive$inboundSchema = z.pipe(z.object({
|
|
159
|
-
content_trends: z.lazy(() => ContentTrends$inboundSchema),
|
|
160
|
-
top_10_effects_used: z.array(types.string()),
|
|
161
|
-
top_10_music_titles_used: z.array(types.string()),
|
|
162
|
-
top_15_hashtags_used: z.array(types.string()),
|
|
163
|
-
video_length_analysis_seconds: z.lazy(() => VideoLengthAnalysisSeconds$inboundSchema),
|
|
164
|
-
}), z.transform((v) => {
|
|
165
|
-
return remap$(v, {
|
|
166
|
-
"content_trends": "contentTrends",
|
|
167
|
-
"top_10_effects_used": "top10EffectsUsed",
|
|
168
|
-
"top_10_music_titles_used": "top10MusicTitlesUsed",
|
|
169
|
-
"top_15_hashtags_used": "top15HashtagsUsed",
|
|
170
|
-
"video_length_analysis_seconds": "videoLengthAnalysisSeconds",
|
|
171
|
-
});
|
|
172
|
-
}));
|
|
173
|
-
export function contentStrategyDeepDiveFromJSON(jsonString) {
|
|
174
|
-
return safeParse(jsonString, (x) => ContentStrategyDeepDive$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ContentStrategyDeepDive' from JSON`);
|
|
175
|
-
}
|
|
176
|
-
/** @internal */
|
|
177
|
-
export const AccountStatistics$inboundSchema = z.pipe(z.object({
|
|
178
|
-
followers_count: types.number(),
|
|
179
|
-
following_count: types.number(),
|
|
180
|
-
total_likes_received_on_all_videos: types.number(),
|
|
181
|
-
}), z.transform((v) => {
|
|
182
|
-
return remap$(v, {
|
|
183
|
-
"followers_count": "followersCount",
|
|
184
|
-
"following_count": "followingCount",
|
|
185
|
-
"total_likes_received_on_all_videos": "totalLikesReceivedOnAllVideos",
|
|
186
|
-
});
|
|
187
|
-
}));
|
|
188
|
-
export function accountStatisticsFromJSON(jsonString) {
|
|
189
|
-
return safeParse(jsonString, (x) => AccountStatistics$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AccountStatistics' from JSON`);
|
|
190
|
-
}
|
|
191
|
-
/** @internal */
|
|
192
|
-
export const AveragePerformancePerVideo$inboundSchema = z.pipe(z.object({
|
|
193
|
-
avg_comments: types.number(),
|
|
194
|
-
avg_favorites: types.number(),
|
|
195
|
-
avg_likes: types.number(),
|
|
196
|
-
avg_shares: types.number(),
|
|
197
|
-
avg_views: types.number(),
|
|
198
|
-
}), z.transform((v) => {
|
|
199
|
-
return remap$(v, {
|
|
200
|
-
"avg_comments": "avgComments",
|
|
201
|
-
"avg_favorites": "avgFavorites",
|
|
202
|
-
"avg_likes": "avgLikes",
|
|
203
|
-
"avg_shares": "avgShares",
|
|
204
|
-
"avg_views": "avgViews",
|
|
205
|
-
});
|
|
206
|
-
}));
|
|
207
|
-
export function averagePerformancePerVideoFromJSON(jsonString) {
|
|
208
|
-
return safeParse(jsonString, (x) => AveragePerformancePerVideo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AveragePerformancePerVideo' from JSON`);
|
|
209
|
-
}
|
|
210
|
-
/** @internal */
|
|
211
|
-
export const EngagementRatePerFollower$inboundSchema = z.object({
|
|
212
|
-
explanation: types.string(),
|
|
213
|
-
value: types.string(),
|
|
214
|
-
});
|
|
215
|
-
export function engagementRatePerFollowerFromJSON(jsonString) {
|
|
216
|
-
return safeParse(jsonString, (x) => EngagementRatePerFollower$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EngagementRatePerFollower' from JSON`);
|
|
217
|
-
}
|
|
218
|
-
/** @internal */
|
|
219
|
-
export const EngagementRatePerView$inboundSchema = z.object({
|
|
220
|
-
explanation: types.string(),
|
|
221
|
-
value: types.string(),
|
|
222
|
-
});
|
|
223
|
-
export function engagementRatePerViewFromJSON(jsonString) {
|
|
224
|
-
return safeParse(jsonString, (x) => EngagementRatePerView$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EngagementRatePerView' from JSON`);
|
|
225
|
-
}
|
|
226
|
-
/** @internal */
|
|
227
|
-
export const EngagementRatios$inboundSchema = z.pipe(z.object({
|
|
228
|
-
comment_to_view_ratio: types.string(),
|
|
229
|
-
engagement_rate_per_follower: z.lazy(() => EngagementRatePerFollower$inboundSchema),
|
|
230
|
-
engagement_rate_per_view: z.lazy(() => EngagementRatePerView$inboundSchema),
|
|
231
|
-
favorite_to_view_ratio: types.string(),
|
|
232
|
-
like_to_view_ratio: types.string(),
|
|
233
|
-
share_to_view_ratio: types.string(),
|
|
234
|
-
}), z.transform((v) => {
|
|
235
|
-
return remap$(v, {
|
|
236
|
-
"comment_to_view_ratio": "commentToViewRatio",
|
|
237
|
-
"engagement_rate_per_follower": "engagementRatePerFollower",
|
|
238
|
-
"engagement_rate_per_view": "engagementRatePerView",
|
|
239
|
-
"favorite_to_view_ratio": "favoriteToViewRatio",
|
|
240
|
-
"like_to_view_ratio": "likeToViewRatio",
|
|
241
|
-
"share_to_view_ratio": "shareToViewRatio",
|
|
242
|
-
});
|
|
243
|
-
}));
|
|
244
|
-
export function engagementRatiosFromJSON(jsonString) {
|
|
245
|
-
return safeParse(jsonString, (x) => EngagementRatios$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EngagementRatios' from JSON`);
|
|
246
|
-
}
|
|
247
|
-
/** @internal */
|
|
248
|
-
export const PerformanceSummaryAcrossAnalyzedVideos$inboundSchema = z.pipe(z.object({
|
|
249
|
-
total_comments: types.number(),
|
|
250
|
-
total_favorites: types.number(),
|
|
251
|
-
total_likes: types.number(),
|
|
252
|
-
total_shares: types.number(),
|
|
253
|
-
total_videos_analyzed: types.number(),
|
|
254
|
-
total_views: types.number(),
|
|
255
|
-
}), z.transform((v) => {
|
|
256
|
-
return remap$(v, {
|
|
257
|
-
"total_comments": "totalComments",
|
|
258
|
-
"total_favorites": "totalFavorites",
|
|
259
|
-
"total_likes": "totalLikes",
|
|
260
|
-
"total_shares": "totalShares",
|
|
261
|
-
"total_videos_analyzed": "totalVideosAnalyzed",
|
|
262
|
-
"total_views": "totalViews",
|
|
263
|
-
});
|
|
264
|
-
}));
|
|
265
|
-
export function performanceSummaryAcrossAnalyzedVideosFromJSON(jsonString) {
|
|
266
|
-
return safeParse(jsonString, (x) => PerformanceSummaryAcrossAnalyzedVideos$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PerformanceSummaryAcrossAnalyzedVideos' from JSON`);
|
|
267
|
-
}
|
|
268
|
-
/** @internal */
|
|
269
|
-
export const KeyMetrics$inboundSchema = z
|
|
270
|
-
.pipe(z.object({
|
|
271
|
-
account_statistics: z.lazy(() => AccountStatistics$inboundSchema),
|
|
272
|
-
average_performance_per_video: z.lazy(() => AveragePerformancePerVideo$inboundSchema),
|
|
273
|
-
engagement_ratios: z.lazy(() => EngagementRatios$inboundSchema),
|
|
274
|
-
performance_summary_across_analyzed_videos: z.lazy(() => PerformanceSummaryAcrossAnalyzedVideos$inboundSchema),
|
|
275
|
-
}), z.transform((v) => {
|
|
276
|
-
return remap$(v, {
|
|
277
|
-
"account_statistics": "accountStatistics",
|
|
278
|
-
"average_performance_per_video": "averagePerformancePerVideo",
|
|
279
|
-
"engagement_ratios": "engagementRatios",
|
|
280
|
-
"performance_summary_across_analyzed_videos": "performanceSummaryAcrossAnalyzedVideos",
|
|
281
|
-
});
|
|
282
|
-
}));
|
|
283
|
-
export function keyMetricsFromJSON(jsonString) {
|
|
284
|
-
return safeParse(jsonString, (x) => KeyMetrics$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'KeyMetrics' from JSON`);
|
|
285
|
-
}
|
|
286
|
-
/** @internal */
|
|
287
|
-
export const IsPrivateAccount$inboundSchema = openEnums.inboundSchema(IsPrivateAccount);
|
|
288
|
-
/** @internal */
|
|
289
|
-
export const ProfileSummary$inboundSchema = z.pipe(z.object({
|
|
290
|
-
is_private_account: IsPrivateAccount$inboundSchema,
|
|
291
|
-
nickname: types.string(),
|
|
292
|
-
signature: types.string(),
|
|
293
|
-
username: types.string(),
|
|
294
|
-
}), z.transform((v) => {
|
|
295
|
-
return remap$(v, {
|
|
296
|
-
"is_private_account": "isPrivateAccount",
|
|
297
|
-
});
|
|
298
|
-
}));
|
|
299
|
-
export function profileSummaryFromJSON(jsonString) {
|
|
300
|
-
return safeParse(jsonString, (x) => ProfileSummary$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ProfileSummary' from JSON`);
|
|
301
|
-
}
|
|
302
|
-
/** @internal */
|
|
303
|
-
export const HistoricalPerformance$inboundSchema = z.pipe(z.object({
|
|
304
|
-
avg_comments: types.number(),
|
|
305
|
-
avg_likes: types.number(),
|
|
306
|
-
avg_shares: types.number(),
|
|
307
|
-
avg_views: types.number(),
|
|
308
|
-
engagement_rate: types.string(),
|
|
309
|
-
}), z.transform((v) => {
|
|
310
|
-
return remap$(v, {
|
|
311
|
-
"avg_comments": "avgComments",
|
|
312
|
-
"avg_likes": "avgLikes",
|
|
313
|
-
"avg_shares": "avgShares",
|
|
314
|
-
"avg_views": "avgViews",
|
|
315
|
-
"engagement_rate": "engagementRate",
|
|
316
|
-
});
|
|
317
|
-
}));
|
|
318
|
-
export function historicalPerformanceFromJSON(jsonString) {
|
|
319
|
-
return safeParse(jsonString, (x) => HistoricalPerformance$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HistoricalPerformance' from JSON`);
|
|
320
|
-
}
|
|
321
|
-
/** @internal */
|
|
322
|
-
export const RecentPerformance$inboundSchema = z.pipe(z.object({
|
|
323
|
-
avg_comments: types.number(),
|
|
324
|
-
avg_likes: types.number(),
|
|
325
|
-
avg_shares: types.number(),
|
|
326
|
-
avg_views: types.number(),
|
|
327
|
-
engagement_rate: types.string(),
|
|
328
|
-
}), z.transform((v) => {
|
|
329
|
-
return remap$(v, {
|
|
330
|
-
"avg_comments": "avgComments",
|
|
331
|
-
"avg_likes": "avgLikes",
|
|
332
|
-
"avg_shares": "avgShares",
|
|
333
|
-
"avg_views": "avgViews",
|
|
334
|
-
"engagement_rate": "engagementRate",
|
|
335
|
-
});
|
|
336
|
-
}));
|
|
337
|
-
export function recentPerformanceFromJSON(jsonString) {
|
|
338
|
-
return safeParse(jsonString, (x) => RecentPerformance$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RecentPerformance' from JSON`);
|
|
339
|
-
}
|
|
340
|
-
/** @internal */
|
|
341
|
-
export const DetailedMetrics$inboundSchema = z.pipe(z.object({
|
|
342
|
-
historical_performance: z.lazy(() => HistoricalPerformance$inboundSchema),
|
|
343
|
-
recent_performance: z.lazy(() => RecentPerformance$inboundSchema),
|
|
344
|
-
}), z.transform((v) => {
|
|
345
|
-
return remap$(v, {
|
|
346
|
-
"historical_performance": "historicalPerformance",
|
|
347
|
-
"recent_performance": "recentPerformance",
|
|
348
|
-
});
|
|
349
|
-
}));
|
|
350
|
-
export function detailedMetricsFromJSON(jsonString) {
|
|
351
|
-
return safeParse(jsonString, (x) => DetailedMetrics$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DetailedMetrics' from JSON`);
|
|
352
|
-
}
|
|
353
|
-
/** @internal */
|
|
354
|
-
export const ShadowBanRiskAssessmentResult$inboundSchema = z.pipe(z.object({
|
|
355
|
-
assessment: types.string(),
|
|
356
|
-
confidence_level: types.string(),
|
|
357
|
-
detailed_metrics: z.lazy(() => DetailedMetrics$inboundSchema),
|
|
358
|
-
probability_percentage: types.string(),
|
|
359
|
-
reasoning: types.string(),
|
|
360
|
-
}), z.transform((v) => {
|
|
361
|
-
return remap$(v, {
|
|
362
|
-
"confidence_level": "confidenceLevel",
|
|
363
|
-
"detailed_metrics": "detailedMetrics",
|
|
364
|
-
"probability_percentage": "probabilityPercentage",
|
|
365
|
-
});
|
|
366
|
-
}));
|
|
367
|
-
export function shadowBanRiskAssessmentResultFromJSON(jsonString) {
|
|
368
|
-
return safeParse(jsonString, (x) => ShadowBanRiskAssessmentResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ShadowBanRiskAssessmentResult' from JSON`);
|
|
369
|
-
}
|
|
370
|
-
/** @internal */
|
|
371
|
-
export const ShadowBanRiskAssessment$inboundSchema = z.object({
|
|
372
|
-
explanation: types.string(),
|
|
373
|
-
result: z.lazy(() => ShadowBanRiskAssessmentResult$inboundSchema),
|
|
374
|
-
});
|
|
375
|
-
export function shadowBanRiskAssessmentFromJSON(jsonString) {
|
|
376
|
-
return safeParse(jsonString, (x) => ShadowBanRiskAssessment$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ShadowBanRiskAssessment' from JSON`);
|
|
377
|
-
}
|
|
378
|
-
/** @internal */
|
|
379
|
-
export const ByComment$inboundSchema = z
|
|
380
|
-
.pipe(z.object({
|
|
381
|
-
created_date: types.string(),
|
|
382
|
-
description: types.string(),
|
|
383
|
-
engagement_rate: types.string(),
|
|
384
|
-
value: types.number(),
|
|
385
|
-
video_id: types.string(),
|
|
386
|
-
video_url: types.string(),
|
|
387
|
-
}), z.transform((v) => {
|
|
388
|
-
return remap$(v, {
|
|
389
|
-
"created_date": "createdDate",
|
|
390
|
-
"engagement_rate": "engagementRate",
|
|
391
|
-
"video_id": "videoId",
|
|
392
|
-
"video_url": "videoUrl",
|
|
393
|
-
});
|
|
394
|
-
}));
|
|
395
|
-
export function byCommentFromJSON(jsonString) {
|
|
396
|
-
return safeParse(jsonString, (x) => ByComment$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ByComment' from JSON`);
|
|
397
|
-
}
|
|
398
|
-
/** @internal */
|
|
399
|
-
export const ByLike$inboundSchema = z.pipe(z.object({
|
|
400
|
-
created_date: types.string(),
|
|
401
|
-
description: types.string(),
|
|
402
|
-
engagement_rate: types.string(),
|
|
403
|
-
value: types.number(),
|
|
404
|
-
video_id: types.string(),
|
|
405
|
-
video_url: types.string(),
|
|
406
|
-
}), z.transform((v) => {
|
|
407
|
-
return remap$(v, {
|
|
408
|
-
"created_date": "createdDate",
|
|
409
|
-
"engagement_rate": "engagementRate",
|
|
410
|
-
"video_id": "videoId",
|
|
411
|
-
"video_url": "videoUrl",
|
|
412
|
-
});
|
|
413
|
-
}));
|
|
414
|
-
export function byLikeFromJSON(jsonString) {
|
|
415
|
-
return safeParse(jsonString, (x) => ByLike$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ByLike' from JSON`);
|
|
416
|
-
}
|
|
417
|
-
/** @internal */
|
|
418
|
-
export const ByShare$inboundSchema = z.pipe(z.object({
|
|
419
|
-
created_date: types.string(),
|
|
420
|
-
description: types.string(),
|
|
421
|
-
engagement_rate: types.string(),
|
|
422
|
-
value: types.number(),
|
|
423
|
-
video_id: types.string(),
|
|
424
|
-
video_url: types.string(),
|
|
425
|
-
}), z.transform((v) => {
|
|
426
|
-
return remap$(v, {
|
|
427
|
-
"created_date": "createdDate",
|
|
428
|
-
"engagement_rate": "engagementRate",
|
|
429
|
-
"video_id": "videoId",
|
|
430
|
-
"video_url": "videoUrl",
|
|
431
|
-
});
|
|
432
|
-
}));
|
|
433
|
-
export function byShareFromJSON(jsonString) {
|
|
434
|
-
return safeParse(jsonString, (x) => ByShare$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ByShare' from JSON`);
|
|
435
|
-
}
|
|
436
|
-
/** @internal */
|
|
437
|
-
export const ByView$inboundSchema = z.pipe(z.object({
|
|
438
|
-
created_date: types.string(),
|
|
439
|
-
description: types.string(),
|
|
440
|
-
engagement_rate: types.string(),
|
|
441
|
-
value: types.number(),
|
|
442
|
-
video_id: types.string(),
|
|
443
|
-
video_url: types.string(),
|
|
444
|
-
}), z.transform((v) => {
|
|
445
|
-
return remap$(v, {
|
|
446
|
-
"created_date": "createdDate",
|
|
447
|
-
"engagement_rate": "engagementRate",
|
|
448
|
-
"video_id": "videoId",
|
|
449
|
-
"video_url": "videoUrl",
|
|
450
|
-
});
|
|
451
|
-
}));
|
|
452
|
-
export function byViewFromJSON(jsonString) {
|
|
453
|
-
return safeParse(jsonString, (x) => ByView$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ByView' from JSON`);
|
|
454
|
-
}
|
|
455
|
-
/** @internal */
|
|
456
|
-
export const TopPerformingVideosSnapshot$inboundSchema = z.pipe(z.object({
|
|
457
|
-
by_comments: z.array(z.lazy(() => ByComment$inboundSchema)),
|
|
458
|
-
by_likes: z.array(z.lazy(() => ByLike$inboundSchema)),
|
|
459
|
-
by_shares: z.array(z.lazy(() => ByShare$inboundSchema)),
|
|
460
|
-
by_views: z.array(z.lazy(() => ByView$inboundSchema)),
|
|
461
|
-
}), z.transform((v) => {
|
|
462
|
-
return remap$(v, {
|
|
463
|
-
"by_comments": "byComments",
|
|
464
|
-
"by_likes": "byLikes",
|
|
465
|
-
"by_shares": "byShares",
|
|
466
|
-
"by_views": "byViews",
|
|
467
|
-
});
|
|
468
|
-
}));
|
|
469
|
-
export function topPerformingVideosSnapshotFromJSON(jsonString) {
|
|
470
|
-
return safeParse(jsonString, (x) => TopPerformingVideosSnapshot$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TopPerformingVideosSnapshot' from JSON`);
|
|
471
|
-
}
|
|
472
|
-
/** @internal */
|
|
473
|
-
export const BestPerformingVideo$inboundSchema = z.pipe(z.object({
|
|
474
|
-
likes: types.number(),
|
|
475
|
-
video_id: types.string(),
|
|
476
|
-
views: types.number(),
|
|
477
|
-
}), z.transform((v) => {
|
|
478
|
-
return remap$(v, {
|
|
479
|
-
"video_id": "videoId",
|
|
480
|
-
});
|
|
481
|
-
}));
|
|
482
|
-
export function bestPerformingVideoFromJSON(jsonString) {
|
|
483
|
-
return safeParse(jsonString, (x) => BestPerformingVideo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BestPerformingVideo' from JSON`);
|
|
484
|
-
}
|
|
485
|
-
/** @internal */
|
|
486
|
-
export const ViralPotentialAnalysisResult$inboundSchema = z.pipe(z.object({
|
|
487
|
-
assessment: types.string(),
|
|
488
|
-
best_performing_video: z.lazy(() => BestPerformingVideo$inboundSchema),
|
|
489
|
-
factors: z.array(types.string()),
|
|
490
|
-
score: types.number(),
|
|
491
|
-
viral_videos_count: types.number(),
|
|
492
|
-
}), z.transform((v) => {
|
|
493
|
-
return remap$(v, {
|
|
494
|
-
"best_performing_video": "bestPerformingVideo",
|
|
495
|
-
"viral_videos_count": "viralVideosCount",
|
|
496
|
-
});
|
|
497
|
-
}));
|
|
498
|
-
export function viralPotentialAnalysisResultFromJSON(jsonString) {
|
|
499
|
-
return safeParse(jsonString, (x) => ViralPotentialAnalysisResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ViralPotentialAnalysisResult' from JSON`);
|
|
500
|
-
}
|
|
501
|
-
/** @internal */
|
|
502
|
-
export const ViralPotentialAnalysis$inboundSchema = z.object({
|
|
503
|
-
explanation: types.string(),
|
|
504
|
-
result: z.lazy(() => ViralPotentialAnalysisResult$inboundSchema),
|
|
505
|
-
});
|
|
506
|
-
export function viralPotentialAnalysisFromJSON(jsonString) {
|
|
507
|
-
return safeParse(jsonString, (x) => ViralPotentialAnalysis$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ViralPotentialAnalysis' from JSON`);
|
|
508
|
-
}
|
|
509
|
-
/** @internal */
|
|
510
|
-
export const SearchTiktokData2$inboundSchema = z.pipe(z.object({
|
|
511
|
-
audience_and_timing_insights: z.lazy(() => AudienceAndTimingInsights$inboundSchema),
|
|
512
|
-
content_strategy_deep_dive: z.lazy(() => ContentStrategyDeepDive$inboundSchema),
|
|
513
|
-
key_metrics: z.lazy(() => KeyMetrics$inboundSchema),
|
|
514
|
-
profile_summary: z.lazy(() => ProfileSummary$inboundSchema),
|
|
515
|
-
report_generated_utc: types.string(),
|
|
516
|
-
shadow_ban_risk_assessment: z.lazy(() => ShadowBanRiskAssessment$inboundSchema),
|
|
517
|
-
top_performing_videos_snapshot: z.lazy(() => TopPerformingVideosSnapshot$inboundSchema),
|
|
518
|
-
viral_potential_analysis: z.lazy(() => ViralPotentialAnalysis$inboundSchema),
|
|
519
|
-
}), z.transform((v) => {
|
|
520
|
-
return remap$(v, {
|
|
521
|
-
"audience_and_timing_insights": "audienceAndTimingInsights",
|
|
522
|
-
"content_strategy_deep_dive": "contentStrategyDeepDive",
|
|
523
|
-
"key_metrics": "keyMetrics",
|
|
524
|
-
"profile_summary": "profileSummary",
|
|
525
|
-
"report_generated_utc": "reportGeneratedUtc",
|
|
526
|
-
"shadow_ban_risk_assessment": "shadowBanRiskAssessment",
|
|
527
|
-
"top_performing_videos_snapshot": "topPerformingVideosSnapshot",
|
|
528
|
-
"viral_potential_analysis": "viralPotentialAnalysis",
|
|
529
|
-
});
|
|
530
|
-
}));
|
|
531
|
-
export function searchTiktokData2FromJSON(jsonString) {
|
|
532
|
-
return safeParse(jsonString, (x) => SearchTiktokData2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchTiktokData2' from JSON`);
|
|
533
|
-
}
|
|
534
|
-
/** @internal */
|
|
535
|
-
export const SearchTiktokProfile$inboundSchema = z.pipe(z.object({
|
|
536
|
-
"Account Created": types.string(),
|
|
537
|
-
"Avatar URL": types.string(),
|
|
538
|
-
"Bio Link": types.string(),
|
|
539
|
-
Country: types.string(),
|
|
540
|
-
Language: types.string(),
|
|
541
|
-
"Nickname Last Modified": types.string(),
|
|
542
|
-
Nickname: types.string(),
|
|
543
|
-
SecUID: types.string(),
|
|
544
|
-
"User ID": types.string(),
|
|
545
|
-
"Username Last Modified": types.string(),
|
|
546
|
-
Username: types.string(),
|
|
547
|
-
About: types.optional(types.string()),
|
|
548
|
-
}), z.transform((v) => {
|
|
549
|
-
return remap$(v, {
|
|
550
|
-
"Account Created": "accountCreated",
|
|
551
|
-
"Avatar URL": "avatarURL",
|
|
552
|
-
"Bio Link": "bioLink",
|
|
553
|
-
"Country": "country",
|
|
554
|
-
"Language": "language",
|
|
555
|
-
"Nickname Last Modified": "nicknameLastModified",
|
|
556
|
-
"Nickname": "nickname",
|
|
557
|
-
"SecUID": "secUID",
|
|
558
|
-
"User ID": "userID",
|
|
559
|
-
"Username Last Modified": "usernameLastModified",
|
|
560
|
-
"Username": "username",
|
|
561
|
-
"About": "about",
|
|
562
|
-
});
|
|
563
|
-
}));
|
|
564
|
-
export function searchTiktokProfileFromJSON(jsonString) {
|
|
565
|
-
return safeParse(jsonString, (x) => SearchTiktokProfile$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchTiktokProfile' from JSON`);
|
|
566
|
-
}
|
|
567
|
-
/** @internal */
|
|
568
|
-
export const SearchTiktokStats$inboundSchema = z.object({
|
|
569
|
-
followers: types.string(),
|
|
570
|
-
following: types.string(),
|
|
571
|
-
friends: types.string(),
|
|
572
|
-
hearts: types.string(),
|
|
573
|
-
videos: types.string(),
|
|
574
|
-
});
|
|
575
|
-
export function searchTiktokStatsFromJSON(jsonString) {
|
|
576
|
-
return safeParse(jsonString, (x) => SearchTiktokStats$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchTiktokStats' from JSON`);
|
|
577
|
-
}
|
|
578
|
-
/** @internal */
|
|
579
|
-
export const SearchTiktokData1$inboundSchema = z.object({
|
|
580
|
-
profile: types.optional(z.lazy(() => SearchTiktokProfile$inboundSchema)),
|
|
581
|
-
stats: types.optional(z.lazy(() => SearchTiktokStats$inboundSchema)),
|
|
582
|
-
});
|
|
583
|
-
export function searchTiktokData1FromJSON(jsonString) {
|
|
584
|
-
return safeParse(jsonString, (x) => SearchTiktokData1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchTiktokData1' from JSON`);
|
|
585
|
-
}
|
|
586
|
-
/** @internal */
|
|
587
|
-
export const SearchTiktokDataUnion$inboundSchema = smartUnion([
|
|
588
|
-
z.lazy(() => SearchTiktokData2$inboundSchema),
|
|
589
|
-
z.lazy(() => SearchTiktokData1$inboundSchema),
|
|
590
|
-
]);
|
|
591
|
-
export function searchTiktokDataUnionFromJSON(jsonString) {
|
|
592
|
-
return safeParse(jsonString, (x) => SearchTiktokDataUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchTiktokDataUnion' from JSON`);
|
|
593
|
-
}
|
|
594
|
-
/** @internal */
|
|
595
|
-
export const SearchType$inboundSchema = openEnums.inboundSchema(SearchType);
|
|
596
|
-
/** @internal */
|
|
597
|
-
export const SearchTiktokData3$inboundSchema = z.object({
|
|
598
|
-
data: z.array(smartUnion([
|
|
599
|
-
z.lazy(() => SearchTiktokData2$inboundSchema),
|
|
600
|
-
z.lazy(() => SearchTiktokData1$inboundSchema),
|
|
601
|
-
])),
|
|
602
|
-
searchType: SearchType$inboundSchema,
|
|
603
|
-
success: types.boolean(),
|
|
604
|
-
});
|
|
605
|
-
export function searchTiktokData3FromJSON(jsonString) {
|
|
606
|
-
return safeParse(jsonString, (x) => SearchTiktokData3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchTiktokData3' from JSON`);
|
|
15
|
+
export const SearchTiktokData$inboundSchema = z.object({
|
|
16
|
+
bio: types.optional(types.string()),
|
|
17
|
+
commerce: types.optional(types.boolean()),
|
|
18
|
+
created: types.optional(types.number()),
|
|
19
|
+
display: types.optional(types.string()),
|
|
20
|
+
error: types.optional(types.string()),
|
|
21
|
+
followers: types.optional(types.string()),
|
|
22
|
+
following: types.optional(types.string()),
|
|
23
|
+
friends: types.optional(types.string()),
|
|
24
|
+
id: types.optional(types.string()),
|
|
25
|
+
language: types.optional(types.string()),
|
|
26
|
+
likes: types.optional(types.string()),
|
|
27
|
+
picture: types.optional(types.string()),
|
|
28
|
+
private: types.optional(types.boolean()),
|
|
29
|
+
region: types.optional(types.string()),
|
|
30
|
+
ttseller: types.optional(types.boolean()),
|
|
31
|
+
username: types.optional(types.string()),
|
|
32
|
+
verified: types.optional(types.boolean()),
|
|
33
|
+
videos: types.optional(types.string()),
|
|
34
|
+
});
|
|
35
|
+
export function searchTiktokDataFromJSON(jsonString) {
|
|
36
|
+
return safeParse(jsonString, (x) => SearchTiktokData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchTiktokData' from JSON`);
|
|
607
37
|
}
|
|
608
38
|
/** @internal */
|
|
609
39
|
export const SearchTiktokResponse$inboundSchema = z.object({
|
|
610
|
-
data: z.lazy(() =>
|
|
40
|
+
data: z.lazy(() => SearchTiktokData$inboundSchema),
|
|
611
41
|
success: types.boolean(),
|
|
612
42
|
error: types.optional(types.string()),
|
|
613
43
|
});
|