@getanyapi/sdk 0.71.0 → 0.73.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.d.cts CHANGED
@@ -1319,13 +1319,13 @@ interface AlibabaSearchItem {
1319
1319
  */
1320
1320
  promotionPrice?: string;
1321
1321
  /**
1322
- * Average buyer review score, 0-5; 0 when the listing has no reviews.
1322
+ * Average buyer review score, 0-5; null when Alibaba shows no review score for the supplier.
1323
1323
  */
1324
- rating?: number;
1324
+ rating?: number | null;
1325
1325
  /**
1326
- * Number of buyer reviews; 0 when none.
1326
+ * Number of buyer reviews; null when Alibaba shows no review count for the supplier.
1327
1327
  */
1328
- reviewCount?: number;
1328
+ reviewCount?: number | null;
1329
1329
  /**
1330
1330
  * Supplier / company name.
1331
1331
  */
@@ -4097,10 +4097,10 @@ interface CapterraReviewsItem {
4097
4097
  */
4098
4098
  id: string;
4099
4099
  /**
4100
- * Whether the reviewer received an incentive for the review. Populated whenever the provider has data for the entity.
4100
+ * Whether the reviewer received an incentive for the review (for example a nominal gift); null when the source does not say. Populated whenever the provider has data for the entity.
4101
4101
  * Present whenever the upstream returns this record.
4102
4102
  */
4103
- incentivized?: boolean;
4103
+ incentivized?: boolean | null;
4104
4104
  /**
4105
4105
  * The vendor's public reply to the review.
4106
4106
  */
@@ -13893,9 +13893,9 @@ interface FacebookAdsSearchInput {
13893
13893
  interface FacebookAdsSearchAd {
13894
13894
  active: boolean;
13895
13895
  /**
13896
- * Number of ads in this campaign (collation count).
13896
+ * Number of ads in this campaign (collation count). Null when the source does not report it.
13897
13897
  */
13898
- adCount: number;
13898
+ adCount: number | null;
13899
13899
  /**
13900
13900
  * Caption line of the ad creative, usually the advertiser's display domain.
13901
13901
  */
@@ -14195,9 +14195,9 @@ interface FacebookCompanyAdsInput {
14195
14195
  interface FacebookCompanyAdsAd {
14196
14196
  active: boolean;
14197
14197
  /**
14198
- * Number of ads in this campaign (collation count).
14198
+ * Number of ads in this campaign (collation count). Null when the source does not report it.
14199
14199
  */
14200
- adCount: number;
14200
+ adCount: number | null;
14201
14201
  /**
14202
14202
  * Caption line of the ad creative, usually the advertiser's display domain.
14203
14203
  */
@@ -14927,9 +14927,9 @@ interface FacebookMarketplaceListing {
14927
14927
  */
14928
14928
  cityPageId?: string;
14929
14929
  /**
14930
- * UTC epoch timestamp in seconds (Unix time) the listing was created. Multiply by 1000 for a JS Date in milliseconds.
14930
+ * UTC epoch timestamp in seconds (Unix time) the listing was created. Multiply by 1000 for a JS Date in milliseconds. Null when the source does not report it.
14931
14931
  */
14932
- createdUtc?: number;
14932
+ createdUtc?: number | null;
14933
14933
  /**
14934
14934
  * Delivery options the seller offers, e.g. "IN_PERSON" or "SHIPPING".
14935
14935
  */
@@ -15434,6 +15434,10 @@ interface FacebookPhotosInput {
15434
15434
  * Range: minimum 1.
15435
15435
  */
15436
15436
  preferLatencyUnderMs?: number;
15437
+ /**
15438
+ * Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `imageWidth`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a photo that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
15439
+ */
15440
+ requireFields?: ("imageHeight" | "imageWidth" | "nextPageId")[];
15437
15441
  /**
15438
15442
  * Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
15439
15443
  */
@@ -15452,12 +15456,18 @@ interface FacebookPhotosPhoto {
15452
15456
  * Populated whenever the provider has data for the entity.
15453
15457
  */
15454
15458
  id: string;
15455
- imageHeight: number;
15459
+ /**
15460
+ * Height of imageUrl in pixels. Null when the serving source does not report it.
15461
+ */
15462
+ imageHeight: number | null;
15456
15463
  /**
15457
15464
  * Populated whenever the provider has data for the entity.
15458
15465
  */
15459
15466
  imageUrl: string;
15460
- imageWidth: number;
15467
+ /**
15468
+ * Width of imageUrl in pixels. Null when the serving source does not report it.
15469
+ */
15470
+ imageWidth: number | null;
15461
15471
  /**
15462
15472
  * Populated whenever the provider has data for the entity.
15463
15473
  */
@@ -15480,7 +15490,10 @@ interface FacebookPhotosData {
15480
15490
  * Opaque cursor for the next page of photos, or null when this lane has no more. Pass it back as cursor to continue.
15481
15491
  */
15482
15492
  nextCursor: string | null;
15483
- nextPageId: string;
15493
+ /**
15494
+ * Facebook's own id for the next page of photos. Null when the serving source does not report it; pass nextCursor back as cursor to continue either way.
15495
+ */
15496
+ nextPageId: string | null;
15484
15497
  /**
15485
15498
  * Populated whenever the provider has data for the entity.
15486
15499
  */
@@ -16399,9 +16412,9 @@ interface FacebookSearchPostsData {
16399
16412
  */
16400
16413
  authorImage?: string;
16401
16414
  /**
16402
- * Number of images attached to the post.
16415
+ * Number of images attached to the post. Null when the source does not report it.
16403
16416
  */
16404
- imagesCount?: number;
16417
+ imagesCount?: number | null;
16405
16418
  /**
16406
16419
  * Matching public Facebook post records for the query. Populated whenever the provider has data for the entity.
16407
16420
  */
@@ -19540,8 +19553,14 @@ interface GoogleAdsAdDetailsData {
19540
19553
  * Populated whenever the provider has data for the entity.
19541
19554
  */
19542
19555
  format: string;
19543
- impressionsMax: number;
19544
- impressionsMin: number;
19556
+ /**
19557
+ * Upper bound of the impressions range. Null when Google does not publish one for this creative.
19558
+ */
19559
+ impressionsMax: number | null;
19560
+ /**
19561
+ * Lower bound of the impressions range. Null when Google does not publish one for this creative.
19562
+ */
19563
+ impressionsMin: number | null;
19545
19564
  /**
19546
19565
  * ISO 8601 date.
19547
19566
  */
@@ -20130,13 +20149,13 @@ interface GoogleShoppingSearchItem {
20130
20149
  */
20131
20150
  productId?: string;
20132
20151
  /**
20133
- * Average product rating, 0-5; 0 when unrated.
20152
+ * Average product rating, 0-5; null when unrated.
20134
20153
  */
20135
- rating?: number;
20154
+ rating?: number | null;
20136
20155
  /**
20137
- * Number of ratings / reviews; 0 when none reported.
20156
+ * Number of ratings / reviews; null when none reported.
20138
20157
  */
20139
- reviewsCount?: number;
20158
+ reviewsCount?: number | null;
20140
20159
  /**
20141
20160
  * Store / seller name offering the product, e.g. "Target".
20142
20161
  */
@@ -20604,8 +20623,8 @@ interface IndeedJobsItem {
20604
20623
  */
20605
20624
  reviewCount?: number;
20606
20625
  salaryCurrency?: string;
20607
- salaryMax?: number;
20608
- salaryMin?: number;
20626
+ salaryMax?: number | null;
20627
+ salaryMin?: number | null;
20609
20628
  /**
20610
20629
  * Salary period, e.g. YEAR or HOUR.
20611
20630
  */
@@ -21955,7 +21974,10 @@ interface InstagramPostCommentsComment {
21955
21974
  * Populated whenever the provider has data for the entity.
21956
21975
  */
21957
21976
  id: string;
21958
- likes: number;
21977
+ /**
21978
+ * Number of likes on the comment. Null when the source does not report it.
21979
+ */
21980
+ likes: number | null;
21959
21981
  /**
21960
21982
  * Populated whenever the provider has data for the entity.
21961
21983
  */
@@ -22074,7 +22096,7 @@ interface InstagramProfileInput {
22074
22096
  /**
22075
22097
  * Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `contactMethod`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a profile that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
22076
22098
  */
22077
- requireFields?: "contactMethod"[];
22099
+ requireFields?: ("contactMethod" | "posts")[];
22078
22100
  /**
22079
22101
  * Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
22080
22102
  */
@@ -22143,9 +22165,9 @@ interface InstagramProfileData {
22143
22165
  */
22144
22166
  isBusiness?: boolean;
22145
22167
  /**
22146
- * Always 0: none of the sources behind this API returns the account's total post count.
22168
+ * Total number of posts on the account. Null when the serving source does not report it.
22147
22169
  */
22148
- posts: number;
22170
+ posts: number | null;
22149
22171
  /**
22150
22172
  * Whether the account is private.
22151
22173
  */
@@ -22967,6 +22989,10 @@ interface InstagramSearchProfilesInput {
22967
22989
  * Bio or caption keyword/phrase to search for.
22968
22990
  */
22969
22991
  query: string;
22992
+ /**
22993
+ * Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `private`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a profile that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
22994
+ */
22995
+ requireFields?: "private"[];
22970
22996
  /**
22971
22997
  * Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
22972
22998
  */
@@ -23000,7 +23026,10 @@ interface InstagramSearchProfilesProfile {
23000
23026
  */
23001
23027
  id: string;
23002
23028
  posts: number;
23003
- private: boolean;
23029
+ /**
23030
+ * Whether the account is private. Null when the serving source does not report it.
23031
+ */
23032
+ private: boolean | null;
23004
23033
  /**
23005
23034
  * Canonical URL of the profile.
23006
23035
  */
@@ -23175,9 +23204,9 @@ interface InstagramSimilarProfilesProfile {
23175
23204
  */
23176
23205
  displayName: string;
23177
23206
  /**
23178
- * Whether the account is private.
23207
+ * Whether the account is private. Null when the source does not report it.
23179
23208
  */
23180
- private: boolean;
23209
+ private: boolean | null;
23181
23210
  /**
23182
23211
  * Instagram's numeric account id, as a string.
23183
23212
  */
@@ -23448,9 +23477,9 @@ interface InstagramTaggedPostsPost {
23448
23477
  */
23449
23478
  id: string;
23450
23479
  /**
23451
- * Number of likes on the post.
23480
+ * Number of likes on the post. Null when the source does not report it, including when the owner hides like counts.
23452
23481
  */
23453
- likes: number;
23482
+ likes: number | null;
23454
23483
  /**
23455
23484
  * Canonical URL of the post, with tracking query params stripped. Populated whenever the provider has data for the entity.
23456
23485
  * Format: uri.
@@ -24155,9 +24184,9 @@ interface InstagramWebReelsSearchReel {
24155
24184
  */
24156
24185
  createdUtc: number;
24157
24186
  /**
24158
- * Reel duration in seconds.
24187
+ * Reel duration in seconds. Null when the source does not report it.
24159
24188
  */
24160
- durationSeconds: number;
24189
+ durationSeconds: number | null;
24161
24190
  /**
24162
24191
  * Number of likes on the reel.
24163
24192
  */
@@ -26042,13 +26071,13 @@ interface LinkedinCompanyData {
26042
26071
  */
26043
26072
  employeeCountRange?: {
26044
26073
  /**
26045
- * Upper bound of the employee-count bucket.
26074
+ * Upper bound of the employee-count bucket; null when the source does not report it.
26046
26075
  */
26047
- end?: number;
26076
+ end?: number | null;
26048
26077
  /**
26049
- * Lower bound of the employee-count bucket.
26078
+ * Lower bound of the employee-count bucket; null when the source does not report it.
26050
26079
  */
26051
- start?: number;
26080
+ start?: number | null;
26052
26081
  };
26053
26082
  /**
26054
26083
  * LinkedIn page follower count. Populated whenever the provider has data for the entity.
@@ -26076,9 +26105,9 @@ interface LinkedinCompanyData {
26076
26105
  */
26077
26106
  lastFundingType?: string;
26078
26107
  /**
26079
- * Total number of funding rounds.
26108
+ * Total number of funding rounds; null when the source does not report it.
26080
26109
  */
26081
- numFundingRounds?: number;
26110
+ numFundingRounds?: number | null;
26082
26111
  } | null;
26083
26112
  /**
26084
26113
  * LinkedIn's numeric company id, as a string.
@@ -27178,13 +27207,13 @@ interface LinkedinJobsItem {
27178
27207
  */
27179
27208
  salary?: {
27180
27209
  /**
27181
- * Maximum salary.
27210
+ * Maximum salary; null when the posting shows none.
27182
27211
  */
27183
- max?: number;
27212
+ max?: number | null;
27184
27213
  /**
27185
- * Minimum salary.
27214
+ * Minimum salary; null when the posting shows none.
27186
27215
  */
27187
- min?: number;
27216
+ min?: number | null;
27188
27217
  /**
27189
27218
  * Salary as displayed (e.g. '300,000 - 330,000 USD').
27190
27219
  */
@@ -30152,9 +30181,9 @@ interface LinkedinSearchProfilesEmailItem {
30152
30181
  */
30153
30182
  firstName?: string;
30154
30183
  /**
30155
- * Number of followers of the profile.
30184
+ * Number of followers of the profile; null when the source does not report it.
30156
30185
  */
30157
- followerCount?: number;
30186
+ followerCount?: number | null;
30158
30187
  /**
30159
30188
  * Public profile identifier (the vanity slug in the URL). Populated whenever the provider has data for the entity.
30160
30189
  * Present whenever the upstream returns this record.
@@ -41040,9 +41069,9 @@ interface RealtorSearchItem {
41040
41069
  */
41041
41070
  taxAmount?: number;
41042
41071
  /**
41043
- * Most recent assessed value from the county tax authority, in US dollars.
41072
+ * Most recent assessed value from the county tax authority, in US dollars, or null when none is published (common on new construction).
41044
41073
  */
41045
- taxAssessedValue?: number;
41074
+ taxAssessedValue?: number | null;
41046
41075
  /**
41047
41076
  * Human-readable street address line used as the listing title.
41048
41077
  */
@@ -41359,9 +41388,9 @@ interface RedditPostCommentsData {
41359
41388
  */
41360
41389
  comments: RedditPostCommentsComment[];
41361
41390
  /**
41362
- * Photo, video, and GIF attachments on the post. Empty when the post has none.
41391
+ * Photo, video, and GIF attachments on the post. Empty when the post has none; null when the serving source does not report attachments.
41363
41392
  */
41364
- media?: RedditPostCommentsMedia[];
41393
+ media?: RedditPostCommentsMedia[] | null;
41365
41394
  /**
41366
41395
  * Opaque cursor for the next page of comments, or null when this lane has no more. Pass it back as cursor to continue.
41367
41396
  */
@@ -41436,6 +41465,10 @@ interface RedditProfileInput {
41436
41465
  * Range: minimum 1.
41437
41466
  */
41438
41467
  preferLatencyUnderMs?: number;
41468
+ /**
41469
+ * Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `verified`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a profile that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
41470
+ */
41471
+ requireFields?: "verified"[];
41439
41472
  /**
41440
41473
  * Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
41441
41474
  */
@@ -41527,9 +41560,9 @@ interface RedditProfileData {
41527
41560
  */
41528
41561
  username: string;
41529
41562
  /**
41530
- * True when the account is verified by Reddit.
41563
+ * True when the account is verified by Reddit. Null when the serving source does not report it.
41531
41564
  */
41532
- verified?: boolean;
41565
+ verified?: boolean | null;
41533
41566
  [extra: string]: unknown;
41534
41567
  }
41535
41568
  /**
@@ -42763,9 +42796,9 @@ interface RedfinSearchItem {
42763
42796
  */
42764
42797
  longitude?: number;
42765
42798
  /**
42766
- * Lot size in square feet.
42799
+ * Lot size in square feet, or null when the listing has no lot size (common on condos).
42767
42800
  */
42768
- lotSize?: number;
42801
+ lotSize?: number | null;
42769
42802
  /**
42770
42803
  * MLS number for the listing.
42771
42804
  */
@@ -50301,9 +50334,9 @@ interface ThreadsPostData {
50301
50334
  */
50302
50335
  profilePicUrl?: string;
50303
50336
  /**
50304
- * Number of quote posts.
50337
+ * Number of quote posts. Null when the source does not report it.
50305
50338
  */
50306
- quoteCount: number;
50339
+ quoteCount: number | null;
50307
50340
  /**
50308
50341
  * Number of replies to the post.
50309
50342
  */
@@ -52682,7 +52715,7 @@ interface TiktokSearchTopInput {
52682
52715
  /**
52683
52716
  * Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `nextCursor`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a record that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
52684
52717
  */
52685
- requireFields?: "nextCursor"[];
52718
+ requireFields?: ("contentType" | "nextCursor")[];
52686
52719
  /**
52687
52720
  * Sort order: relevance, most-liked, date-posted.
52688
52721
  * One of: relevance, most-liked, date-posted.
@@ -52715,7 +52748,10 @@ interface TiktokSearchTopItem {
52715
52748
  */
52716
52749
  caption: string;
52717
52750
  comments: number;
52718
- contentType: string;
52751
+ /**
52752
+ * TikTok's own label for the post format, such as video, or null when the serving source does not report it.
52753
+ */
52754
+ contentType: string | null;
52719
52755
  /**
52720
52756
  * UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Populated whenever the provider has data for the entity.
52721
52757
  * Present whenever the upstream returns this record.
@@ -53410,6 +53446,10 @@ interface TiktokVideoInput {
53410
53446
  * Range: minimum 1.
53411
53447
  */
53412
53448
  preferLatencyUnderMs?: number;
53449
+ /**
53450
+ * Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `views`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a video that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge. A source that returns only a rounded or shortened value for a field does not count as returning it.
53451
+ */
53452
+ requireFields?: ("comments" | "likes" | "shares" | "views")[];
53413
53453
  /**
53414
53454
  * Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
53415
53455
  */
@@ -53443,6 +53483,9 @@ interface TiktokVideoData {
53443
53483
  * Populated whenever the provider has data for the entity.
53444
53484
  */
53445
53485
  caption: string;
53486
+ /**
53487
+ * Number of comments. Some sources round large counts (48.5K instead of 48,536); name `comments` in requireFields to be served only by a source that returns the exact count.
53488
+ */
53446
53489
  comments: number;
53447
53490
  /**
53448
53491
  * UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.
@@ -53460,9 +53503,15 @@ interface TiktokVideoData {
53460
53503
  * URL of the video's cover/thumbnail image. A signed, short-lived TikTok CDN URL (typically expires within about a day; query params are load-bearing and kept intact), often served as HEIC rather than JPEG, so fetch it promptly and transcode if you need broad browser support. Absent when the upstream provides no cover.
53461
53504
  */
53462
53505
  image?: string;
53506
+ /**
53507
+ * Number of likes. Some sources round large counts (2.9M instead of 2,884,604); name `likes` in requireFields to be served only by a source that returns the exact count.
53508
+ */
53463
53509
  likes: number;
53464
53510
  region: string;
53465
53511
  saves: number;
53512
+ /**
53513
+ * Number of shares. Some sources round large counts (35.9K instead of 35,923); name `shares` in requireFields to be served only by a source that returns the exact count.
53514
+ */
53466
53515
  shares: number;
53467
53516
  /**
53468
53517
  * Canonical TikTok URL of the video.
@@ -53472,6 +53521,9 @@ interface TiktokVideoData {
53472
53521
  * Playable video URL. Signed and short-lived, so the query string is load-bearing and kept intact.
53473
53522
  */
53474
53523
  videoUrl?: string;
53524
+ /**
53525
+ * Number of plays. Some sources round large counts (32.7M instead of 32,736,400); name `views` in requireFields to be served only by a source that returns the exact count.
53526
+ */
53475
53527
  views: number;
53476
53528
  [extra: string]: unknown;
53477
53529
  }
@@ -53680,7 +53732,10 @@ interface TiktokVideoTranscriptData {
53680
53732
  * TikTok video id the transcript belongs to.
53681
53733
  */
53682
53734
  id?: string;
53683
- language?: string;
53735
+ /**
53736
+ * Language of the caption track, or null when the serving source does not report it.
53737
+ */
53738
+ language?: string | null;
53684
53739
  /**
53685
53740
  * Populated whenever the provider has data for the entity.
53686
53741
  */
@@ -54544,9 +54599,9 @@ interface TiktokShopCreatorData {
54544
54599
  */
54545
54600
  gmvRange?: string;
54546
54601
  /**
54547
- * Gross merchandise value per thousand views. Zero when upstream does not publish it.
54602
+ * Gross merchandise value per thousand views. Null when upstream does not publish it.
54548
54603
  */
54549
- gpm?: number;
54604
+ gpm?: number | null;
54550
54605
  /**
54551
54606
  * TikTok handle of the creator, without the @. Populated whenever the provider has data for the entity.
54552
54607
  */
@@ -54577,9 +54632,9 @@ interface TiktokShopCreatorData {
54577
54632
  */
54578
54633
  promotedProducts?: number;
54579
54634
  /**
54580
- * Creator rating. Zero when upstream does not publish it.
54635
+ * Creator rating. Null when upstream does not publish it.
54581
54636
  */
54582
- rating?: number;
54637
+ rating?: number | null;
54583
54638
  /**
54584
54639
  * Two-letter country code of the creator's TikTok Shop market.
54585
54640
  */
@@ -54616,6 +54671,10 @@ interface TiktokShopProductInput {
54616
54671
  * Two-letter country code for the proxy location used to access region-specific products (e.g. US, GB, FR). Defaults to US.
54617
54672
  */
54618
54673
  region?: string;
54674
+ /**
54675
+ * Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `sellerLocation`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a product that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
54676
+ */
54677
+ requireFields?: "sellerLocation"[];
54619
54678
  /**
54620
54679
  * Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
54621
54680
  */
@@ -54647,7 +54706,10 @@ interface TiktokShopProductData {
54647
54706
  productId: string;
54648
54707
  rating: number;
54649
54708
  reviewCount: number;
54650
- sellerLocation: string;
54709
+ /**
54710
+ * Where the seller is based, or null when the serving source does not report it.
54711
+ */
54712
+ sellerLocation: string | null;
54651
54713
  /**
54652
54714
  * Populated whenever the provider has data for the entity.
54653
54715
  */
@@ -54748,17 +54810,17 @@ interface TiktokShopProductReviewsData {
54748
54810
  */
54749
54811
  hasMore: boolean;
54750
54812
  /**
54751
- * Overall product score (1-5).
54813
+ * Overall product score (1-5), or null when the serving source does not report it.
54752
54814
  */
54753
- rating: number;
54815
+ rating: number | null;
54754
54816
  /**
54755
54817
  * Product reviews. Populated whenever the provider has data for the entity.
54756
54818
  */
54757
54819
  reviews: TiktokShopProductReviewsReview[];
54758
54820
  /**
54759
- * Total number of reviews for the product.
54821
+ * Total number of reviews for the product, or null when the serving source does not report it.
54760
54822
  */
54761
- totalReviews: number;
54823
+ totalReviews: number | null;
54762
54824
  }
54763
54825
  /**
54764
54826
  * Input for TikTok Shop Search (tiktok_shop.search).
@@ -54940,6 +55002,10 @@ interface TiktokShopShopProductsInput {
54940
55002
  * Two-letter country code of the store's market (e.g. US).
54941
55003
  */
54942
55004
  region?: string;
55005
+ /**
55006
+ * Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `shopRating`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a store that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge. On a paginated walk it applies to the first page only; later pages stay with the source that page chose, at the price it was quoted.
55007
+ */
55008
+ requireFields?: ("productCount" | "shopRating")[];
54943
55009
  /**
54944
55010
  * Product ordering within the store.
54945
55011
  * One of: top, new_releases.
@@ -54961,13 +55027,19 @@ interface TiktokShopShopProductsProduct {
54961
55027
  * Product image URL.
54962
55028
  */
54963
55029
  image?: string;
54964
- originalPrice: number;
55030
+ /**
55031
+ * Pre-discount list price, or null when the product is not on sale.
55032
+ */
55033
+ originalPrice: number | null;
54965
55034
  price: number;
54966
55035
  /**
54967
55036
  * Populated whenever the provider has data for the entity.
54968
55037
  */
54969
55038
  productId: string;
54970
- rating: number;
55039
+ /**
55040
+ * Average review score out of 5, or null when the product has no rating yet.
55041
+ */
55042
+ rating: number | null;
54971
55043
  reviewCount: number;
54972
55044
  soldCount: number;
54973
55045
  /**
@@ -54989,7 +55061,10 @@ interface TiktokShopShopProductsData {
54989
55061
  * Opaque cursor for the next page of products, or null when this lane has no more. Pass it back as cursor to continue.
54990
55062
  */
54991
55063
  nextCursor: string | null;
54992
- productCount: number;
55064
+ /**
55065
+ * Number of products the store has on sale, or null when the serving source does not report it.
55066
+ */
55067
+ productCount: number | null;
54993
55068
  /**
54994
55069
  * Populated whenever the provider has data for the entity.
54995
55070
  */
@@ -54998,8 +55073,14 @@ interface TiktokShopShopProductsData {
54998
55073
  * Populated whenever the provider has data for the entity.
54999
55074
  */
55000
55075
  shopName: string;
55001
- shopRating: number;
55002
- soldCount: number;
55076
+ /**
55077
+ * The store's rating out of 5, or null when the serving source does not report it.
55078
+ */
55079
+ shopRating: number | null;
55080
+ /**
55081
+ * Units the store has sold across all its products, or null when the serving source does not report it.
55082
+ */
55083
+ soldCount: number | null;
55003
55084
  }
55004
55085
  /**
55005
55086
  * Input for TikTok Shop User Showcase (tiktok_shop.user_showcase).
@@ -55042,13 +55123,19 @@ interface TiktokShopUserShowcaseProduct {
55042
55123
  * Populated whenever the provider has data for the entity.
55043
55124
  */
55044
55125
  imageUrl: string;
55045
- originalPrice: string;
55126
+ /**
55127
+ * Pre-discount list price, or null when the product is not on sale.
55128
+ */
55129
+ originalPrice: string | null;
55046
55130
  price: string;
55047
55131
  /**
55048
55132
  * Populated whenever the provider has data for the entity.
55049
55133
  */
55050
55134
  productId: string;
55051
- rating: number;
55135
+ /**
55136
+ * Average review score out of 5, or null when the product has no rating yet.
55137
+ */
55138
+ rating: number | null;
55052
55139
  reviewCount: number;
55053
55140
  /**
55054
55141
  * Identifier of the seller listing the product.
@@ -55442,13 +55529,13 @@ interface TripadvisorSearchItem {
55442
55529
  */
55443
55530
  ranking?: string;
55444
55531
  /**
55445
- * Average traveler rating out of 5. Populated whenever the provider has data for the entity.
55532
+ * Average traveler rating out of 5; null for a place Tripadvisor has not rated (such as a city). Populated whenever the provider has data for the entity.
55446
55533
  */
55447
- rating: number;
55534
+ rating: number | null;
55448
55535
  /**
55449
- * Total number of traveler reviews.
55536
+ * Total number of traveler reviews; null when the source does not report it.
55450
55537
  */
55451
- reviewCount?: number;
55538
+ reviewCount?: number | null;
55452
55539
  /**
55453
55540
  * Place name. Populated whenever the provider has data for the entity.
55454
55541
  */
@@ -56662,9 +56749,9 @@ interface TwitterRepliesItem {
56662
56749
  */
56663
56750
  url: string;
56664
56751
  /**
56665
- * Number of views of this reply.
56752
+ * Number of views of this reply. Null when the source does not report it, as for posts older than X view counts.
56666
56753
  */
56667
- viewCount?: number;
56754
+ viewCount?: number | null;
56668
56755
  [extra: string]: unknown;
56669
56756
  }
56670
56757
  interface TwitterRepliesMedia {
@@ -56801,7 +56888,10 @@ interface TwitterSearchItem {
56801
56888
  * Populated whenever the provider has data for the entity.
56802
56889
  */
56803
56890
  url: string;
56804
- viewCount?: number;
56891
+ /**
56892
+ * Number of views. Null when the source does not report it, as for posts older than X view counts.
56893
+ */
56894
+ viewCount?: number | null;
56805
56895
  [extra: string]: unknown;
56806
56896
  }
56807
56897
  interface TwitterSearchMedia {
@@ -59640,6 +59730,10 @@ interface YoutubeChannelInput {
59640
59730
  * Range: minimum 1.
59641
59731
  */
59642
59732
  preferLatencyUnderMs?: number;
59733
+ /**
59734
+ * Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `views`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a record that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
59735
+ */
59736
+ requireFields?: "views"[];
59643
59737
  /**
59644
59738
  * Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
59645
59739
  */
@@ -59672,7 +59766,10 @@ interface YoutubeChannelData {
59672
59766
  */
59673
59767
  url?: string;
59674
59768
  videos: number;
59675
- views: number;
59769
+ /**
59770
+ * Lifetime view count across the channel's videos, or null when the serving source does not report it.
59771
+ */
59772
+ views: number | null;
59676
59773
  [extra: string]: unknown;
59677
59774
  }
59678
59775
  /**
@@ -59835,6 +59932,10 @@ interface YoutubeChannelLivesInput {
59835
59932
  * Range: minimum 1.
59836
59933
  */
59837
59934
  preferLatencyUnderMs?: number;
59935
+ /**
59936
+ * Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `lengthText`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a live stream that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge. On a paginated walk it applies to the first page only; later pages stay with the source that page chose, at the price it was quoted.
59937
+ */
59938
+ requireFields?: "lengthText"[];
59838
59939
  /**
59839
59940
  * Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
59840
59941
  */
@@ -59849,7 +59950,10 @@ interface YoutubeChannelLivesLive {
59849
59950
  * URL of the live stream thumbnail image, tracking query parameters stripped.
59850
59951
  */
59851
59952
  image?: string;
59852
- lengthText: string;
59953
+ /**
59954
+ * Stream length as YouTube shows it, such as 3:29:31, or LIVE while it is streaming; null when the serving source does not report it.
59955
+ */
59956
+ lengthText: string | null;
59853
59957
  /**
59854
59958
  * Populated whenever the provider has data for the entity.
59855
59959
  */
@@ -59862,6 +59966,9 @@ interface YoutubeChannelLivesLive {
59862
59966
  * Populated whenever the provider has data for the entity.
59863
59967
  */
59864
59968
  url: string;
59969
+ /**
59970
+ * Views of a past stream, or people watching a stream that is live now. Every source reads it from YouTube's rounded label ("60K watching" is 60000), so it is approximate.
59971
+ */
59865
59972
  views: number;
59866
59973
  [extra: string]: unknown;
59867
59974
  }
@@ -60014,10 +60121,10 @@ interface YoutubeChannelShortsShort {
60014
60121
  */
60015
60122
  image?: string;
60016
60123
  /**
60017
- * Public like count when supplied by the upstream response.
60124
+ * Public like count, or null when the serving source does not report it.
60018
60125
  * Range: minimum 0.
60019
60126
  */
60020
- likes: number;
60127
+ likes: number | null;
60021
60128
  /**
60022
60129
  * Public title or caption for the Short. Populated whenever the provider has data for the entity.
60023
60130
  * Present whenever the upstream returns this record.
@@ -60082,6 +60189,10 @@ interface YoutubeChannelVideosInput {
60082
60189
  * Range: minimum 1.
60083
60190
  */
60084
60191
  preferLatencyUnderMs?: number;
60192
+ /**
60193
+ * Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `views`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a video that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge. On a paginated walk it applies to the first page only; later pages stay with the source that page chose, at the price it was quoted. A source that returns only a rounded or shortened value for a field does not count as returning it.
60194
+ */
60195
+ requireFields?: ("lengthText" | "views")[];
60085
60196
  /**
60086
60197
  * Sort order.
60087
60198
  * One of: latest, popular.
@@ -60105,7 +60216,10 @@ interface YoutubeChannelVideosVideo {
60105
60216
  * URL of the video thumbnail image, tracking query parameters stripped.
60106
60217
  */
60107
60218
  image?: string;
60108
- lengthText: string;
60219
+ /**
60220
+ * Video length as YouTube shows it, such as 11:56, or null when the serving source does not report it.
60221
+ */
60222
+ lengthText: string | null;
60109
60223
  /**
60110
60224
  * Populated whenever the provider has data for the entity.
60111
60225
  */
@@ -60118,6 +60232,9 @@ interface YoutubeChannelVideosVideo {
60118
60232
  * Populated whenever the provider has data for the entity.
60119
60233
  */
60120
60234
  url: string;
60235
+ /**
60236
+ * Number of views. Some sources round large counts (6.4M instead of 6,474,059); name `views` in requireFields to be served only by a source that returns the exact count.
60237
+ */
60121
60238
  views: number;
60122
60239
  [extra: string]: unknown;
60123
60240
  }
@@ -60628,7 +60745,7 @@ interface YoutubeSearchShortsShort {
60628
60745
  */
60629
60746
  url: string;
60630
60747
  /**
60631
- * View count, or 0 when the source did not publish one. Read viewsAvailable before trusting a 0.
60748
+ * View count, or 0 when the source did not publish one. Read viewsAvailable before trusting a 0. Rounded as YouTube shows it on Shorts (8.9M, 875K), so counts of 1,000 or more are approximate.
60632
60749
  */
60633
60750
  views: number;
60634
60751
  /**
@@ -60695,7 +60812,7 @@ interface YoutubeTrendingShortsShort {
60695
60812
  */
60696
60813
  channelTitle: string;
60697
60814
  /**
60698
- * Number of comments on the short.
60815
+ * Number of comments on the short. Rounded as YouTube shows it on Shorts (1.2K, 15K), so counts of 1,000 or more are approximate.
60699
60816
  */
60700
60817
  comments?: number;
60701
60818
  /**
@@ -62331,9 +62448,9 @@ interface ZillowPropertyItem {
62331
62448
  */
62332
62449
  propertyTaxRate?: number;
62333
62450
  /**
62334
- * Zillow estimated monthly rent.
62451
+ * Zillow estimated monthly rent, or null when Zillow shows no rent Zestimate for the property.
62335
62452
  */
62336
- rentZestimate?: number;
62453
+ rentZestimate?: number | null;
62337
62454
  /**
62338
62455
  * Interior living area in square feet.
62339
62456
  */
@@ -62351,9 +62468,9 @@ interface ZillowPropertyItem {
62351
62468
  */
62352
62469
  url: string;
62353
62470
  /**
62354
- * Zillow estimated market value.
62471
+ * Zillow estimated market value, or null when Zillow shows no Zestimate for the property.
62355
62472
  */
62356
- zestimate?: number;
62473
+ zestimate?: number | null;
62357
62474
  /**
62358
62475
  * Zillow property id (zpid), the stable identifier for the property. Populated whenever the provider has data for the entity.
62359
62476
  */