apinoa-mcp 0.2.20 → 0.2.21
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/catalog.snapshot.js +274 -12
- package/dist/schema.snapshot.js +4 -1
- package/package.json +1 -1
package/dist/catalog.snapshot.js
CHANGED
|
@@ -696,7 +696,12 @@ const snapshot = [
|
|
|
696
696
|
"id": {
|
|
697
697
|
"type": "string",
|
|
698
698
|
"minLength": 1,
|
|
699
|
-
"description": "The
|
|
699
|
+
"description": "The ASIN (or a book's ISBN-10), as a search item's `id` carries it. Pass this or `url`."
|
|
700
|
+
},
|
|
701
|
+
"url": {
|
|
702
|
+
"type": "string",
|
|
703
|
+
"minLength": 1,
|
|
704
|
+
"description": "An Amazon product page link instead of `id`, e.g. https://www.amazon.com/dp/B07JD5GLBN or https://www.amazon.co.jp/<name>/dp/<ASIN>. The link's site sets `region` (amazon.co.jp is JP); a `region` that disagrees with it is refused."
|
|
700
705
|
},
|
|
701
706
|
"include": {
|
|
702
707
|
"type": "string",
|
|
@@ -725,9 +730,6 @@ const snapshot = [
|
|
|
725
730
|
"description": "Which Amazon marketplace to query, by buyer country: US, CA, MX, BR, FR, IT, ES, NL, SE, TR, AE, SA, IN, JP, SG, AU. Defaults to US. Prices come back in that marketplace's own currency (JP in JPY, FR in EUR)."
|
|
726
731
|
}
|
|
727
732
|
},
|
|
728
|
-
"required": [
|
|
729
|
-
"id"
|
|
730
|
-
],
|
|
731
733
|
"additionalProperties": false,
|
|
732
734
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
733
735
|
}
|
|
@@ -1401,6 +1403,10 @@ const snapshot = [
|
|
|
1401
1403
|
"maxItems": 4,
|
|
1402
1404
|
"description": "Up to four photos to ask about: https URLs, or `data:image/…;base64,` URLs."
|
|
1403
1405
|
},
|
|
1406
|
+
"webSearch": {
|
|
1407
|
+
"type": "boolean",
|
|
1408
|
+
"description": "Let the engine search the web for the answer."
|
|
1409
|
+
},
|
|
1404
1410
|
"include": {
|
|
1405
1411
|
"anyOf": [
|
|
1406
1412
|
{
|
|
@@ -1473,7 +1479,33 @@ const snapshot = [
|
|
|
1473
1479
|
"page"
|
|
1474
1480
|
],
|
|
1475
1481
|
"regions": [
|
|
1476
|
-
"US"
|
|
1482
|
+
"US",
|
|
1483
|
+
"AE",
|
|
1484
|
+
"AU",
|
|
1485
|
+
"BR",
|
|
1486
|
+
"CA",
|
|
1487
|
+
"DE",
|
|
1488
|
+
"EE",
|
|
1489
|
+
"ES",
|
|
1490
|
+
"FR",
|
|
1491
|
+
"GB",
|
|
1492
|
+
"HK",
|
|
1493
|
+
"HU",
|
|
1494
|
+
"IE",
|
|
1495
|
+
"IN",
|
|
1496
|
+
"IT",
|
|
1497
|
+
"JP",
|
|
1498
|
+
"MX",
|
|
1499
|
+
"NL",
|
|
1500
|
+
"PL",
|
|
1501
|
+
"PT",
|
|
1502
|
+
"RO",
|
|
1503
|
+
"RS",
|
|
1504
|
+
"SE",
|
|
1505
|
+
"SG",
|
|
1506
|
+
"SK",
|
|
1507
|
+
"TR",
|
|
1508
|
+
"ZA"
|
|
1477
1509
|
],
|
|
1478
1510
|
"cost": {
|
|
1479
1511
|
"answer": {
|
|
@@ -1857,6 +1889,7 @@ const snapshot = [
|
|
|
1857
1889
|
"kind": "sns",
|
|
1858
1890
|
"operations": [
|
|
1859
1891
|
"profile",
|
|
1892
|
+
"profiles",
|
|
1860
1893
|
"ads"
|
|
1861
1894
|
],
|
|
1862
1895
|
"includes": [],
|
|
@@ -1868,6 +1901,10 @@ const snapshot = [
|
|
|
1868
1901
|
"base": 1,
|
|
1869
1902
|
"max": 1
|
|
1870
1903
|
},
|
|
1904
|
+
"profiles": {
|
|
1905
|
+
"base": 1,
|
|
1906
|
+
"max": 1
|
|
1907
|
+
},
|
|
1871
1908
|
"ads": {
|
|
1872
1909
|
"base": 1,
|
|
1873
1910
|
"max": 1
|
|
@@ -1886,6 +1923,33 @@ const snapshot = [
|
|
|
1886
1923
|
"additionalProperties": false,
|
|
1887
1924
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1888
1925
|
},
|
|
1926
|
+
"profiles": {
|
|
1927
|
+
"type": "object",
|
|
1928
|
+
"properties": {
|
|
1929
|
+
"query": {
|
|
1930
|
+
"type": "string",
|
|
1931
|
+
"minLength": 1,
|
|
1932
|
+
"description": "An advertiser's name (or part of it): the Pages the Ad Library's search box suggests for it, each with the `id` that `ads?pageId=` takes."
|
|
1933
|
+
},
|
|
1934
|
+
"country": {
|
|
1935
|
+
"type": "string",
|
|
1936
|
+
"description": "Where the ads ran: an ISO 3166-1 alpha-2 code, or ALL (default)."
|
|
1937
|
+
},
|
|
1938
|
+
"adType": {
|
|
1939
|
+
"type": "string",
|
|
1940
|
+
"enum": [
|
|
1941
|
+
"all",
|
|
1942
|
+
"political",
|
|
1943
|
+
"housing",
|
|
1944
|
+
"employment",
|
|
1945
|
+
"credit"
|
|
1946
|
+
],
|
|
1947
|
+
"description": "all (default), or one special category: political (social issues, elections or politics), housing, employment, credit."
|
|
1948
|
+
}
|
|
1949
|
+
},
|
|
1950
|
+
"additionalProperties": false,
|
|
1951
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1952
|
+
},
|
|
1889
1953
|
"ads": {
|
|
1890
1954
|
"type": "object",
|
|
1891
1955
|
"properties": {
|
|
@@ -1897,7 +1961,7 @@ const snapshot = [
|
|
|
1897
1961
|
"pageId": {
|
|
1898
1962
|
"type": "string",
|
|
1899
1963
|
"pattern": "^\\d+$",
|
|
1900
|
-
"description": "Every ad one advertiser runs: its numeric Page id (`profile` returns it as `id`)."
|
|
1964
|
+
"description": "Every ad one advertiser runs: its numeric Page id (`profile` returns it as `id`; `profiles?query=` finds it by name)."
|
|
1901
1965
|
},
|
|
1902
1966
|
"exact": {
|
|
1903
1967
|
"type": "boolean",
|
|
@@ -2096,7 +2160,7 @@ const snapshot = [
|
|
|
2096
2160
|
"cost": {
|
|
2097
2161
|
"search": {
|
|
2098
2162
|
"base": 1,
|
|
2099
|
-
"max":
|
|
2163
|
+
"max": 10
|
|
2100
2164
|
},
|
|
2101
2165
|
"suggestions": {
|
|
2102
2166
|
"base": 1,
|
|
@@ -2185,12 +2249,29 @@ const snapshot = [
|
|
|
2185
2249
|
],
|
|
2186
2250
|
"description": "Safe search."
|
|
2187
2251
|
},
|
|
2252
|
+
"near": {
|
|
2253
|
+
"type": "string",
|
|
2254
|
+
"minLength": 1,
|
|
2255
|
+
"maxLength": 200,
|
|
2256
|
+
"description": "Search as if from this place: a city, region or US state (\"Austin, Texas\", \"Austin, TX\", \"Texas\"), or Google's canonical location name (\"Austin,Texas,United States\"). A name that matches more than one place is refused with the candidates. Sets `country` to the place's country when `country` is not given."
|
|
2257
|
+
},
|
|
2258
|
+
"uule": {
|
|
2259
|
+
"type": "string",
|
|
2260
|
+
"pattern": "^[wa][+ ][A-Za-z0-9+/_-]+={0,2}$",
|
|
2261
|
+
"description": "Search as if from this place, as Google's own `uule` value (`w+…`). Instead of `near`."
|
|
2262
|
+
},
|
|
2188
2263
|
"limit": {
|
|
2189
2264
|
"type": "integer",
|
|
2190
2265
|
"minimum": 1,
|
|
2191
2266
|
"maximum": 50,
|
|
2192
2267
|
"description": "Results wanted (default 10, at most 50). More than one page is charged per page."
|
|
2193
2268
|
},
|
|
2269
|
+
"pages": {
|
|
2270
|
+
"type": "integer",
|
|
2271
|
+
"minimum": 1,
|
|
2272
|
+
"maximum": 10,
|
|
2273
|
+
"description": "Result pages to read in one call (1-10), returned as one list. Instead of `limit`; each page past the first is charged as one more unit."
|
|
2274
|
+
},
|
|
2194
2275
|
"cursor": {
|
|
2195
2276
|
"type": "string",
|
|
2196
2277
|
"minLength": 1,
|
|
@@ -4579,6 +4660,69 @@ const snapshot = [
|
|
|
4579
4660
|
}
|
|
4580
4661
|
}
|
|
4581
4662
|
},
|
|
4663
|
+
{
|
|
4664
|
+
"id": "reader",
|
|
4665
|
+
"kind": "reader",
|
|
4666
|
+
"operations": [
|
|
4667
|
+
"page"
|
|
4668
|
+
],
|
|
4669
|
+
"includes": [],
|
|
4670
|
+
"regions": [
|
|
4671
|
+
"US"
|
|
4672
|
+
],
|
|
4673
|
+
"cost": {
|
|
4674
|
+
"page": {
|
|
4675
|
+
"base": 1,
|
|
4676
|
+
"max": 1
|
|
4677
|
+
}
|
|
4678
|
+
},
|
|
4679
|
+
"params": {
|
|
4680
|
+
"page": {
|
|
4681
|
+
"type": "object",
|
|
4682
|
+
"properties": {
|
|
4683
|
+
"url": {
|
|
4684
|
+
"type": "string",
|
|
4685
|
+
"maxLength": 2048,
|
|
4686
|
+
"format": "uri",
|
|
4687
|
+
"description": "The page's address, http or https."
|
|
4688
|
+
},
|
|
4689
|
+
"include": {
|
|
4690
|
+
"anyOf": [
|
|
4691
|
+
{
|
|
4692
|
+
"type": "string"
|
|
4693
|
+
},
|
|
4694
|
+
{
|
|
4695
|
+
"type": "array",
|
|
4696
|
+
"items": {
|
|
4697
|
+
"type": "string"
|
|
4698
|
+
}
|
|
4699
|
+
}
|
|
4700
|
+
],
|
|
4701
|
+
"description": "Extra fields, comma-separated: `html` (the page as fetched), `contentHtml` (its main content as HTML)."
|
|
4702
|
+
},
|
|
4703
|
+
"maxChars": {
|
|
4704
|
+
"type": "integer",
|
|
4705
|
+
"minimum": 100,
|
|
4706
|
+
"maximum": 1000000,
|
|
4707
|
+
"description": "Cut `markdown` to at most this many characters, at a paragraph break where one is near; `truncated` is then true."
|
|
4708
|
+
},
|
|
4709
|
+
"country": {
|
|
4710
|
+
"type": "string",
|
|
4711
|
+
"enum": [
|
|
4712
|
+
"US"
|
|
4713
|
+
],
|
|
4714
|
+
"default": "US",
|
|
4715
|
+
"description": "Where the page is read from."
|
|
4716
|
+
}
|
|
4717
|
+
},
|
|
4718
|
+
"required": [
|
|
4719
|
+
"url"
|
|
4720
|
+
],
|
|
4721
|
+
"additionalProperties": false,
|
|
4722
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
4723
|
+
}
|
|
4724
|
+
}
|
|
4725
|
+
},
|
|
4582
4726
|
{
|
|
4583
4727
|
"id": "reddit",
|
|
4584
4728
|
"kind": "sns",
|
|
@@ -6217,6 +6361,90 @@ const snapshot = [
|
|
|
6217
6361
|
}
|
|
6218
6362
|
}
|
|
6219
6363
|
},
|
|
6364
|
+
{
|
|
6365
|
+
"id": "unlocker",
|
|
6366
|
+
"kind": "unlocker",
|
|
6367
|
+
"operations": [
|
|
6368
|
+
"request"
|
|
6369
|
+
],
|
|
6370
|
+
"includes": [],
|
|
6371
|
+
"regions": [
|
|
6372
|
+
"US"
|
|
6373
|
+
],
|
|
6374
|
+
"cost": {
|
|
6375
|
+
"request": {
|
|
6376
|
+
"base": 1,
|
|
6377
|
+
"max": 10
|
|
6378
|
+
}
|
|
6379
|
+
},
|
|
6380
|
+
"params": {
|
|
6381
|
+
"request": {
|
|
6382
|
+
"type": "object",
|
|
6383
|
+
"properties": {
|
|
6384
|
+
"url": {
|
|
6385
|
+
"type": "string",
|
|
6386
|
+
"maxLength": 8192,
|
|
6387
|
+
"description": "The address to request (http or https)."
|
|
6388
|
+
},
|
|
6389
|
+
"method": {
|
|
6390
|
+
"type": "string",
|
|
6391
|
+
"enum": [
|
|
6392
|
+
"GET",
|
|
6393
|
+
"POST",
|
|
6394
|
+
"PUT",
|
|
6395
|
+
"PATCH",
|
|
6396
|
+
"DELETE",
|
|
6397
|
+
"HEAD"
|
|
6398
|
+
],
|
|
6399
|
+
"default": "GET"
|
|
6400
|
+
},
|
|
6401
|
+
"headers": {
|
|
6402
|
+
"type": "object",
|
|
6403
|
+
"additionalProperties": {
|
|
6404
|
+
"type": "string"
|
|
6405
|
+
},
|
|
6406
|
+
"default": {},
|
|
6407
|
+
"description": "Headers to send, as given. A real browser's own headers replace User-Agent, sec-ch-ua*, Accept-Encoding, Host, Connection and Content-Length."
|
|
6408
|
+
},
|
|
6409
|
+
"body": {
|
|
6410
|
+
"type": "string"
|
|
6411
|
+
},
|
|
6412
|
+
"bodyEncoding": {
|
|
6413
|
+
"type": "string",
|
|
6414
|
+
"enum": [
|
|
6415
|
+
"text",
|
|
6416
|
+
"base64"
|
|
6417
|
+
],
|
|
6418
|
+
"default": "text"
|
|
6419
|
+
},
|
|
6420
|
+
"profile": {
|
|
6421
|
+
"type": "string",
|
|
6422
|
+
"enum": [
|
|
6423
|
+
"desktop",
|
|
6424
|
+
"mobile"
|
|
6425
|
+
],
|
|
6426
|
+
"description": "Which kind of browser to present: desktop or mobile. Absent: either."
|
|
6427
|
+
},
|
|
6428
|
+
"country": {
|
|
6429
|
+
"type": "string",
|
|
6430
|
+
"enum": [
|
|
6431
|
+
"US"
|
|
6432
|
+
],
|
|
6433
|
+
"default": "US"
|
|
6434
|
+
},
|
|
6435
|
+
"followRedirects": {
|
|
6436
|
+
"type": "boolean",
|
|
6437
|
+
"default": true
|
|
6438
|
+
}
|
|
6439
|
+
},
|
|
6440
|
+
"required": [
|
|
6441
|
+
"url"
|
|
6442
|
+
],
|
|
6443
|
+
"additionalProperties": false,
|
|
6444
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
6445
|
+
}
|
|
6446
|
+
}
|
|
6447
|
+
},
|
|
6220
6448
|
{
|
|
6221
6449
|
"id": "walmart",
|
|
6222
6450
|
"kind": "marketplace",
|
|
@@ -6483,7 +6711,12 @@ const snapshot = [
|
|
|
6483
6711
|
"id": {
|
|
6484
6712
|
"type": "string",
|
|
6485
6713
|
"minLength": 1,
|
|
6486
|
-
"description": "Walmart's `usItemId`, all digits, as carried by a search item — chain straight in."
|
|
6714
|
+
"description": "Walmart's `usItemId`, all digits, as carried by a search item — chain straight in. Pass this or `url`."
|
|
6715
|
+
},
|
|
6716
|
+
"url": {
|
|
6717
|
+
"type": "string",
|
|
6718
|
+
"minLength": 1,
|
|
6719
|
+
"description": "A Walmart product page link instead of `id`, e.g. https://www.walmart.com/ip/<name>/5402638498. A `selectedSellerId` in the link sets `seller`."
|
|
6487
6720
|
},
|
|
6488
6721
|
"seller": {
|
|
6489
6722
|
"type": "string",
|
|
@@ -6495,9 +6728,6 @@ const snapshot = [
|
|
|
6495
6728
|
"description": "Buyer country as ISO 3166-1 alpha-2; sets availability, shipping and price."
|
|
6496
6729
|
}
|
|
6497
6730
|
},
|
|
6498
|
-
"required": [
|
|
6499
|
-
"id"
|
|
6500
|
-
],
|
|
6501
6731
|
"additionalProperties": false,
|
|
6502
6732
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
6503
6733
|
},
|
|
@@ -7167,7 +7397,7 @@ const snapshot = [
|
|
|
7167
7397
|
},
|
|
7168
7398
|
"post": {
|
|
7169
7399
|
"base": 1,
|
|
7170
|
-
"max":
|
|
7400
|
+
"max": 2
|
|
7171
7401
|
},
|
|
7172
7402
|
"posts": {
|
|
7173
7403
|
"base": 1,
|
|
@@ -7224,6 +7454,38 @@ const snapshot = [
|
|
|
7224
7454
|
"type": "string",
|
|
7225
7455
|
"minLength": 1,
|
|
7226
7456
|
"description": "Video id (11 chars), or the video URL (watch?v=…, youtu.be/…, /shorts/…)."
|
|
7457
|
+
},
|
|
7458
|
+
"include": {
|
|
7459
|
+
"anyOf": [
|
|
7460
|
+
{
|
|
7461
|
+
"type": "string"
|
|
7462
|
+
},
|
|
7463
|
+
{
|
|
7464
|
+
"type": "array",
|
|
7465
|
+
"items": {
|
|
7466
|
+
"type": "string"
|
|
7467
|
+
}
|
|
7468
|
+
}
|
|
7469
|
+
],
|
|
7470
|
+
"description": "Extra reads to attach under `ext`: transcript (the video's captions as timed segments, with every caption track it ships; +1 unit)."
|
|
7471
|
+
},
|
|
7472
|
+
"lang": {
|
|
7473
|
+
"anyOf": [
|
|
7474
|
+
{
|
|
7475
|
+
"type": "string"
|
|
7476
|
+
},
|
|
7477
|
+
{
|
|
7478
|
+
"type": "array",
|
|
7479
|
+
"items": {
|
|
7480
|
+
"type": "string"
|
|
7481
|
+
}
|
|
7482
|
+
}
|
|
7483
|
+
],
|
|
7484
|
+
"description": "include=transcript only: preferred caption languages, in order (comma-separated): en, ko, pt-BR … `en` also matches en-US. Default: the video's own caption language."
|
|
7485
|
+
},
|
|
7486
|
+
"generated": {
|
|
7487
|
+
"type": "boolean",
|
|
7488
|
+
"description": "include=transcript only: true for the auto-generated (speech recognition) track, false for a track the creator supplied. Default: the creator's first."
|
|
7227
7489
|
}
|
|
7228
7490
|
},
|
|
7229
7491
|
"additionalProperties": false,
|
package/dist/schema.snapshot.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// GENERATED by scripts/gen-schema.mjs from the OpenAPI document (tools/public/generate-sdks.sh). Do not edit.
|
|
2
2
|
// The response types code in `execute` is checked against, and the type each operation returns.
|
|
3
|
-
export const SCHEMA_TYPES = "interface Account {\n platform: \"reddit\" | \"linkedin\" | \"tiktok\" | \"youtube\" | \"instagram\" | \"threads\" | \"x\" | \"facebook\";\n id?: string;\n handle: string;\n displayName?: string;\n bio?: string;\n url: string;\n avatarUrl?: string;\n bannerUrl?: string;\n verified?: boolean;\n createdAt?: string;\n counts?: {\n followers?: number;\n following?: number;\n posts?: number;\n };\n links?: Link[];\n private?: boolean;\n category?: string;\n location?: string;\n ext?: Record<string, unknown>;\n}\ninterface AccountPage {\n platform: \"reddit\" | \"linkedin\" | \"tiktok\" | \"youtube\" | \"instagram\" | \"threads\" | \"x\" | \"facebook\";\n items: Account[];\n cursor?: string;\n ext?: Record<string, unknown>;\n}\ninterface AccountRef {\n platform: \"reddit\" | \"linkedin\" | \"tiktok\" | \"youtube\" | \"instagram\" | \"threads\" | \"x\" | \"facebook\";\n id?: string;\n handle?: string;\n displayName?: string;\n url?: string;\n avatarUrl?: string;\n verified?: boolean;\n counts?: {\n followers?: number;\n following?: number;\n posts?: number;\n };\n bio?: string;\n bannerUrl?: string;\n createdAt?: string;\n links?: Link[];\n private?: boolean;\n category?: string;\n location?: string;\n ext?: Record<string, unknown>;\n}\ninterface Address {\n full?: string;\n street?: string;\n city?: string;\n region?: string;\n postalCode?: string;\n country?: string;\n}\ninterface Answer {\n engine: \"google-aio\" | \"google-ai-mode\" | \"chatgpt\" | \"gemini\" | \"perplexity\" | \"copilot\" | \"naver-ai-brief\" | \"naver-ai-tab\" | \"qwen\" | \"yuanbao\" | \"dola\";\n outcome: \"answered\" | \"noAnswer\" | \"refused\" | \"partial\";\n prompt: string;\n askedAt: string;\n country: string;\n language?: string;\n conversation?: Conversation;\n title?: string;\n blocks: Block[];\n text: string;\n markdown: string;\n citations: Citation[];\n sources: Source[];\n mentions: AnswerMention[];\n cards: Card[];\n suggestions: Suggestion[];\n results?: Result[];\n page?: string;\n ext?: Record<string, unknown>;\n}\ninterface AnswerMention {\n name: string;\n kind: \"brand\" | \"product\" | \"place\" | \"other\";\n category?: string;\n at?: number;\n card?: number;\n ext?: Record<string, unknown>;\n}\ninterface App {\n id: string;\n name: string;\n url?: string;\n developer?: Developer;\n icon?: string;\n screenshots?: string[];\n video?: string;\n summary?: string;\n description?: string;\n categories?: string[];\n rating?: Rating;\n starCounts?: Record<string, unknown>;\n editorsChoice?: boolean;\n price?: Money;\n inAppPurchases?: boolean;\n contentRating?: string;\n version?: string;\n requires?: string;\n releasedAt?: string;\n updatedAt?: string;\n whatsNew?: string;\n country?: string;\n lang?: string;\n ext?: Record<string, unknown>;\n related?: {\n id: string;\n name: string;\n url?: string;\n developer?: Developer;\n icon?: string;\n screenshots?: string[];\n video?: string;\n summary?: string;\n description?: string;\n categories?: string[];\n rating?: Rating;\n starCounts?: Record<string, unknown>;\n editorsChoice?: boolean;\n price?: Money;\n inAppPurchases?: boolean;\n contentRating?: string;\n version?: string;\n requires?: string;\n releasedAt?: string;\n updatedAt?: string;\n whatsNew?: string;\n country?: string;\n lang?: string;\n ext?: Record<string, unknown>;\n }[];\n moreByDeveloper?: {\n id: string;\n name: string;\n url?: string;\n developer?: Developer;\n icon?: string;\n screenshots?: string[];\n video?: string;\n summary?: string;\n description?: string;\n categories?: string[];\n rating?: Rating;\n starCounts?: Record<string, unknown>;\n editorsChoice?: boolean;\n price?: Money;\n inAppPurchases?: boolean;\n contentRating?: string;\n version?: string;\n requires?: string;\n releasedAt?: string;\n updatedAt?: string;\n whatsNew?: string;\n country?: string;\n lang?: string;\n ext?: Record<string, unknown>;\n }[];\n privacyPolicyUrl?: string;\n chart?: {\n name: string;\n position: number;\n };\n}\ninterface AppReview {\n id?: string;\n author?: string;\n rating: number;\n title?: string;\n body?: string;\n date?: string;\n helpfulCount?: number;\n images: string[];\n reply?: {\n body: string;\n date?: string;\n author?: string;\n };\n ext?: Ext;\n}\ninterface AppReviewsPage {\n engine: \"google-play\" | \"app-store\";\n appId: string;\n sort?: \"relevant\" | \"newest\" | \"highest\" | \"lowest\";\n country?: string;\n lang?: string;\n page: Page;\n reviews: AppReview[];\n cursor?: string;\n fetchedAt: string;\n ext?: Record<string, unknown>;\n}\ninterface AppsPage {\n engine: \"google-play\" | \"app-store\";\n query: string;\n outcome: \"results\" | \"noResults\";\n country?: string;\n lang?: string;\n apps: {\n id: string;\n name: string;\n url?: string;\n developer?: Developer;\n icon?: string;\n screenshots?: string[];\n video?: string;\n summary?: string;\n description?: string;\n categories?: string[];\n rating?: Rating;\n starCounts?: Record<string, unknown>;\n editorsChoice?: boolean;\n price?: Money;\n inAppPurchases?: boolean;\n contentRating?: string;\n version?: string;\n requires?: string;\n releasedAt?: string;\n updatedAt?: string;\n whatsNew?: string;\n country?: string;\n lang?: string;\n ext?: Record<string, unknown>;\n rank: number;\n }[];\n page: Page;\n cursor?: string;\n fetchedAt: string;\n ext?: Record<string, unknown>;\n}\ninterface Attribute {\n name: string;\n value: string;\n}\ninterface Audio {\n id?: string;\n title?: string;\n artist?: string;\n url?: string;\n coverUrl?: string;\n durationSec?: number;\n original?: boolean;\n album?: string;\n ext?: Record<string, unknown>;\n}\ntype Block = {\n type: \"heading\";\n level: number;\n markdown: string;\n} | {\n type: \"paragraph\";\n markdown: string;\n} | {\n type: \"list\";\n ordered: boolean;\n items: {\n markdown: string;\n depth: number;\n }[];\n} | {\n type: \"table\";\n header: string[];\n rows: string[][];\n} | {\n type: \"code\";\n language?: string;\n text: string;\n} | {\n type: \"quote\";\n markdown: string;\n} | {\n type: \"cards\";\n cards: number[];\n} | {\n type: \"rule\";\n};\ninterface Broadcast {\n status: \"scheduled\" | \"live\" | \"ended\";\n ext?: Record<string, unknown>;\n}\ninterface CaptionTrack {\n url: string;\n lang?: string;\n format?: string;\n ext?: Record<string, unknown>;\n}\ninterface Card {\n type: \"product\" | \"place\" | \"video\" | \"image\" | \"other\";\n title?: string;\n url?: string;\n image?: string;\n thumbnail?: string;\n width?: number;\n height?: number;\n price?: Price;\n originalPrice?: Price;\n rating?: number;\n reviews?: number;\n merchant?: string;\n site?: string;\n badges?: string[];\n address?: string;\n coordinates?: {\n lat: number;\n lng: number;\n };\n sponsored: boolean;\n ext?: Record<string, unknown>;\n}\ninterface Catalog {\n marketplaces: ({\n id: string;\n kind: \"marketplace\" | \"sns\";\n operations: string[];\n regions?: string[];\n cost?: Record<string, unknown>;\n /** Each operation's input, as JSON Schema. */\n params?: Record<string, unknown>;\n })[];\n pricing?: Record<string, unknown>;\n}\ninterface CategoryList {\n marketplace: string;\n path: CategoryStep[];\n categories: CategoryNode[];\n ext?: Ext;\n}\ninterface CategoryNode {\n id: string;\n name: string;\n parentId?: string;\n hasChildren?: boolean;\n browsable?: boolean;\n imageUrl?: string;\n ext?: Ext;\n}\ninterface CategoryStep {\n id?: string;\n name?: string;\n}\ninterface Citation {\n start: number;\n end: number;\n sources: number[];\n}\ninterface Comment {\n platform: \"reddit\" | \"linkedin\" | \"tiktok\" | \"youtube\" | \"instagram\" | \"threads\" | \"x\" | \"facebook\";\n id: string;\n url?: string;\n postId: string;\n parentId?: string;\n author: AccountRef;\n text: string;\n entities?: Entities;\n createdAt?: string;\n editedAt?: string;\n edited?: boolean;\n lang?: string;\n pinned?: boolean;\n byAuthor?: boolean;\n likedByAuthor?: boolean;\n metrics?: {\n likes?: number;\n replies?: number;\n };\n media?: SocialMedia[];\n replies: Comment[];\n moreReplies?: {\n count?: number;\n cursor?: string;\n ext?: Record<string, unknown>;\n };\n ext?: Record<string, unknown>;\n}\ninterface CommentPage {\n platform: \"reddit\" | \"linkedin\" | \"tiktok\" | \"youtube\" | \"instagram\" | \"threads\" | \"x\" | \"facebook\";\n items: Comment[];\n cursor?: string;\n total?: number;\n order?: string;\n ext?: Record<string, unknown>;\n post?: Post;\n}\ninterface CompanyPage {\n url: string;\n finalUrl?: string;\n status?: number;\n title?: string;\n redirects?: Redirect[];\n headers?: Record<string, unknown>;\n cookies?: string[];\n meta?: Record<string, unknown>;\n scripts?: string[];\n lang?: string;\n blocked?: true;\n error?: \"timeout\" | \"unreachable\" | \"too_many_redirects\";\n}\ninterface Conversation {\n id: string;\n turn: number;\n expiresAt?: string;\n}\ninterface DeliveryOption {\n carrier?: string;\n code?: string;\n estimate?: string;\n cost?: Money;\n free?: boolean;\n minDays?: number;\n maxDays?: number;\n handlingDays?: number;\n cutoff?: string;\n condition?: string;\n available?: boolean;\n minimumOrder?: Money;\n shipsFrom?: string;\n ext?: Ext;\n}\ninterface Developer {\n id?: string;\n name: string;\n url?: string;\n website?: string;\n email?: string;\n address?: string;\n}\ninterface Dns {\n a: string[];\n aaaa: string[];\n cname: string[];\n mx: {\n exchange: string;\n priority: number;\n }[];\n ns: string[];\n txt: string[];\n soa?: {\n nsname: string;\n hostmaster: string;\n };\n}\ninterface Entities {\n mentions?: Mention[];\n urls?: Url[];\n hashtags?: string[];\n}\ninterface Evidence {\n source: \"url\" | \"header\" | \"cookie\" | \"meta\" | \"html\" | \"script\" | \"robots\" | \"dns\" | \"implied\";\n field?: string;\n match: string;\n}\ntype Ext = Record<string, unknown>;\ninterface FacebookAd {\n platform: \"facebook\";\n id: string;\n url: string;\n adId?: string;\n active?: boolean;\n startedAt?: string;\n endedAt?: string;\n activeSeconds?: number;\n platforms: string[];\n page: FacebookAdPage;\n format?: string;\n title?: string;\n body?: string;\n caption?: string;\n linkUrl?: string;\n linkDescription?: string;\n ctaText?: string;\n ctaType?: string;\n images: FacebookAdImage[];\n videos: FacebookAdVideo[];\n cards: FacebookAdCard[];\n categories?: string[];\n spend?: FacebookRange;\n impressions?: FacebookRange;\n reach?: FacebookRange;\n currency?: string;\n disclaimer?: FacebookAdDisclaimer;\n countries?: string[];\n collationId?: string;\n collationCount?: number;\n sensitive?: boolean;\n aiGenerated?: boolean;\n ext?: Record<string, unknown>;\n}\ninterface FacebookAdCard {\n title?: string;\n body?: string;\n caption?: string;\n linkUrl?: string;\n linkDescription?: string;\n ctaText?: string;\n ctaType?: string;\n image?: FacebookAdImage;\n video?: FacebookAdVideo;\n ext?: Record<string, unknown>;\n}\ninterface FacebookAdDisclaimer {\n label?: string;\n byline?: string;\n confirmation?: string;\n submittedOn?: string;\n phone?: string;\n email?: string;\n website?: string;\n address?: string;\n ext?: Record<string, unknown>;\n}\ninterface FacebookAdImage {\n url: string;\n resizedUrl?: string;\n watermarkedUrl?: string;\n crops?: unknown[];\n}\ninterface FacebookAdPage {\n id: string;\n name?: string;\n nameInAd?: string;\n url?: string;\n avatarUrl?: string;\n likes?: number;\n categories?: string[];\n deleted?: boolean;\n}\ninterface FacebookAdVideo {\n hdUrl?: string;\n sdUrl?: string;\n previewUrl?: string;\n watermarkedHdUrl?: string;\n watermarkedSdUrl?: string;\n}\ninterface FacebookAdsPage {\n platform: \"facebook\";\n items: FacebookAd[];\n cursor?: string;\n total?: number;\n totalAtLeast?: number;\n ext?: Record<string, unknown>;\n}\ninterface FacebookRange {\n text: string;\n lower?: number;\n upper?: number;\n}\ninterface Facet {\n id: string;\n name: string;\n kind: \"select\" | \"range\";\n values: FacetValue[];\n min?: number;\n max?: number;\n maps_to?: string;\n}\ninterface FacetValue {\n value: string;\n name: string;\n selected?: boolean;\n}\ninterface FeedbackInput {\n /** feature_request: an API or option we do not have. error: a call failed or behaved wrongly. wrong_data: a field holds the wrong value. missing_data: something on */\n type: \"feature_request\" | \"error\" | \"wrong_data\" | \"missing_data\" | \"other\";\n /** What happened, or what you need, in your own words. */\n message: string;\n /** The platform it is about, as in the path: amazon, tiktok, google… */\n platform?: string;\n /** The operation it is about, as in the path: search, product, posts… */\n operation?: string;\n /** The parameters you called it with. At most 8 KB. */\n params?: Record<string, unknown>;\n /** The requestId of the response you are reporting. Sent with your key, it lets us look at that call. */\n requestId?: string;\n /** A page showing the right data, or the item the report is about. */\n url?: string;\n /** What you received: the part of the response that is wrong, as text or as the JSON value itself. At most 16 KB. */\n received?: unknown;\n /** What you expected instead, as text or as a JSON value. At most 4,000 characters. */\n expected?: unknown;\n /** Where to email our reply. Without it, a report sent with a key is answered at the account's email. */\n contact?: string;\n /** What sent it, such as your agent's or app's name. */\n source?: string;\n}\ninterface FeedbackReceipt {\n /** The report's id: keep it to read the status and our reply. */\n id: string;\n status: \"received\" | \"in_progress\" | \"resolved\" | \"declined\";\n createdAt: string;\n}\ninterface FeedbackStatus {\n id: string;\n type: \"feature_request\" | \"error\" | \"wrong_data\" | \"missing_data\" | \"other\";\n /** received, then in_progress while we work on it, then resolved or declined. */\n status: \"received\" | \"in_progress\" | \"resolved\" | \"declined\";\n /** Our answer; null until we reply. */\n reply: string | null;\n repliedAt: string | null;\n createdAt: string;\n updatedAt: string;\n}\ninterface Group {\n platform: \"reddit\" | \"linkedin\" | \"tiktok\" | \"youtube\" | \"instagram\" | \"threads\" | \"x\" | \"facebook\";\n kind: \"community\" | \"channel\" | \"company\" | \"hashtag\" | \"sound\" | \"topic\" | \"location\" | \"list\";\n id: string;\n name: string;\n url: string;\n description?: string;\n avatarUrl?: string;\n bannerUrl?: string;\n createdAt?: string;\n counts?: {\n members?: number;\n posts?: number;\n };\n sensitive?: boolean;\n audio?: Audio;\n ext?: Record<string, unknown>;\n}\ninterface GroupPage {\n platform: \"reddit\" | \"linkedin\" | \"tiktok\" | \"youtube\" | \"instagram\" | \"threads\" | \"x\" | \"facebook\";\n items: Group[];\n cursor?: string;\n order?: string;\n ext?: Record<string, unknown>;\n}\ntype Hours = {\n day: string;\n hours: string;\n}[];\ninterface Identifiers {\n gtin?: string;\n mpn?: string;\n model?: string;\n}\ninterface InReplyTo {\n id: string;\n url?: string;\n author?: AccountRef;\n}\ninterface Job {\n platform: \"linkedin\";\n id: string;\n url: string;\n title: string;\n company: {\n name: string;\n slug?: string;\n url?: string;\n logoUrl?: string;\n };\n location?: string;\n postedText?: string;\n applicants?: number;\n applicantsAtLeast?: number;\n seniority?: string;\n employmentType?: string;\n jobFunction?: string;\n industries?: string;\n description?: string;\n descriptionHtml?: string;\n applyMethod?: \"linkedin\" | \"external\";\n}\ninterface JobPage {\n platform: \"linkedin\";\n items: {\n platform: \"linkedin\";\n id: string;\n url: string;\n title: string;\n company: {\n name: string;\n url?: string;\n };\n location?: string;\n listedAt?: string;\n logoUrl?: string;\n insights?: string[];\n }[];\n cursor?: string;\n}\ninterface Link {\n url: string;\n title?: string;\n}\ninterface LinkPreview {\n url: string;\n title?: string;\n description?: string;\n thumbnailUrl?: string;\n domain?: string;\n ext?: Record<string, unknown>;\n}\ninterface Media {\n images: string[];\n videos: MediaVideo[];\n}\ninterface MediaFile {\n platform: string;\n postId: string;\n /** The file's MIME type, e.g. video/mp4 or image/jpeg. */\n contentType: string;\n /** The decoded file's size in bytes. */\n bytes: number;\n encoding: \"base64\";\n /** The file, base64-encoded. */\n data: string;\n /** Photo posts: which picture this is, 1-based. */\n index?: number;\n /** Photo posts: how many pictures the post has. */\n count?: number;\n}\ninterface MediaTag {\n account: AccountRef;\n ext?: Record<string, unknown>;\n}\ninterface MediaVariant {\n url: string;\n width?: number;\n height?: number;\n bitrate?: number;\n contentType?: string;\n codec?: string;\n sizeBytes?: number;\n fps?: number;\n quality?: string;\n ext?: Record<string, unknown>;\n}\ninterface MediaVideo {\n thumbnailUrl?: string;\n url?: string;\n title?: string;\n duration?: string;\n ext?: Ext;\n}\ninterface Mention {\n handle: string;\n id?: string;\n displayName?: string;\n ext?: Record<string, unknown>;\n}\ninterface Money {\n currency: string;\n amount: number;\n}\ninterface OcrResult {\n regions: TextRegion[];\n regions_found?: number;\n src_w?: number;\n src_h?: number;\n}\ninterface Offer {\n seller?: Seller;\n price: Money;\n listPrice?: Money;\n condition?: string;\n conditionNote?: string;\n fulfilledBy?: string;\n inStock?: boolean;\n status?: string;\n delivery?: DeliveryOption;\n shippingOptions?: DeliveryOption[];\n unitPrice?: {\n price: Money;\n unit?: string;\n };\n promotions?: string[];\n paymentOptions?: string[];\n ext?: Ext;\n}\ninterface Option {\n id: string;\n name: string;\n values: OptionValue[];\n}\ninterface OptionValue {\n id: string;\n name: string;\n imageUrl?: string;\n}\ninterface Page {\n index: number;\n size: number;\n total?: number;\n}\ninterface Place {\n name: string;\n id?: string;\n lat?: number;\n lng?: number;\n address?: string;\n city?: string;\n type?: string;\n country?: string;\n ext?: Record<string, unknown>;\n}\ninterface PlaceReview {\n id?: string;\n author?: string;\n authorAvatarUrl?: string;\n rating?: number;\n title?: string;\n body?: string;\n date?: string;\n helpfulCount?: number;\n language?: string;\n images: string[];\n reply?: {\n body: string;\n date?: string;\n author?: string;\n };\n ext?: Ext;\n authorId?: string;\n authorUrl?: string;\n pinned?: boolean;\n}\ninterface PlaceReviewsPage {\n engine: \"google\" | \"bing\" | \"yahoo\" | \"duckduckgo\" | \"yandex\" | \"baidu\" | \"naver\" | \"yahoo-japan\" | \"seznam\" | \"daum\" | \"sogou\" | \"tripadvisor\";\n placeId: string;\n summary?: Rating;\n starCounts?: Record<string, unknown>;\n sort?: \"relevant\" | \"newest\" | \"highest\" | \"lowest\";\n page: Page;\n reviews: PlaceReview[];\n cursor?: string;\n fetchedAt: string;\n ext?: Record<string, unknown>;\n}\ninterface PlacesPage {\n engine: \"google\" | \"bing\" | \"yahoo\" | \"duckduckgo\" | \"yandex\" | \"baidu\" | \"naver\" | \"yahoo-japan\" | \"seznam\" | \"daum\" | \"sogou\" | \"tripadvisor\";\n query: string;\n outcome: \"results\" | \"noResults\";\n type?: \"maps\" | \"local\";\n location?: string;\n near?: string;\n country?: string;\n lang?: string;\n places: SerpPlace[];\n page: Page;\n cursor?: string;\n fetchedAt: string;\n ext?: Record<string, unknown>;\n}\ninterface Poll {\n options: {\n text: string;\n votes?: number;\n }[];\n totalVotes?: number;\n endsAt?: string;\n ext?: Record<string, unknown>;\n}\ninterface Post {\n platform: \"reddit\" | \"linkedin\" | \"tiktok\" | \"youtube\" | \"instagram\" | \"threads\" | \"x\" | \"facebook\";\n id: string;\n url: string;\n author: AccountRef;\n title?: string;\n text?: string;\n createdAt?: string;\n editedAt?: string;\n edited?: boolean;\n lang?: string;\n media: SocialMedia[];\n metrics?: {\n likes?: number;\n comments?: number;\n shares?: number;\n views?: number;\n reposts?: number;\n quotes?: number;\n saves?: number;\n };\n entities?: Entities;\n linkPreview?: LinkPreview;\n poll?: Poll;\n place?: Place;\n audio?: Audio;\n live?: boolean;\n broadcast?: Broadcast;\n repostOf?: Post;\n quoteOf?: Post;\n inReplyTo?: InReplyTo;\n sponsored?: boolean;\n pinned?: boolean;\n aiGenerated?: boolean;\n sensitive?: boolean;\n ext?: Record<string, unknown>;\n}\ninterface PostPage {\n platform: \"reddit\" | \"linkedin\" | \"tiktok\" | \"youtube\" | \"instagram\" | \"threads\" | \"x\" | \"facebook\";\n items: Post[];\n cursor?: string;\n total?: number;\n order?: string;\n ext?: Record<string, unknown>;\n}\ninterface Price {\n text: string;\n amount?: number;\n currency?: string;\n}\ninterface Product {\n marketplace: string;\n id: string;\n url?: string;\n title: string;\n price?: Money;\n listPrice?: Money;\n subscriptionPrice?: Money;\n description?: string;\n fulfilledBy?: string;\n condition?: string;\n unitPrice?: {\n price: Money;\n unit?: string;\n };\n brand?: string;\n rating?: Rating;\n seller?: Seller;\n salesCount?: number;\n salesLabel?: string;\n inStock?: boolean;\n status?: string;\n delivery?: ShippingOption;\n shippingOptions?: ShippingOption[];\n stock?: number;\n identifiers?: Identifiers;\n listingFormat?: string;\n paymentOptions?: string[];\n returnsPolicy?: string;\n badges: string[];\n promotions: string[];\n groupId?: string;\n attributes: Attribute[];\n offersSummary?: {\n count?: number;\n fromPrice?: Money;\n ext?: Ext;\n };\n priceRange?: {\n min: Money;\n max: Money;\n };\n endsAt?: string;\n deliveryTo?: {\n label?: string;\n country?: string;\n postalCode?: string;\n };\n ext?: Ext;\n conditionNote?: string;\n purchaseLimit?: number;\n listedAt?: string;\n features: string[];\n highlights?: string[];\n media: Media;\n category: CategoryStep[];\n options: Option[];\n variants: Variant[];\n offers: Offer[];\n protectionPlans?: ProtectionPlan[];\n reviewSummary?: string;\n reviewAspects: {\n name: string;\n mentions?: number;\n positive?: number;\n negative?: number;\n }[];\n boxContents: string[];\n brandUrl?: string;\n replacedBy?: string;\n reviews: Review[];\n package?: {\n weightKg?: number;\n ext?: Ext;\n };\n}\ninterface ProtectionPlan {\n id?: string;\n name: string;\n price?: Money;\n provider?: string;\n ext?: Ext;\n}\ninterface Rating {\n average: number;\n count?: number;\n distribution?: Record<string, unknown>;\n starCounts?: Record<string, unknown>;\n grouped?: boolean;\n}\ninterface Redirect {\n url: string;\n status: number;\n}\ninterface Related {\n term: string;\n topics?: {\n top: RelatedItem[];\n rising: RelatedItem[];\n };\n queries?: {\n top: RelatedItem[];\n rising: RelatedItem[];\n };\n}\ninterface RelatedItem {\n title: string;\n kind?: string;\n id?: string;\n value?: number;\n growth?: string;\n growthValue?: number;\n url?: string;\n}\ninterface Result {\n position: number;\n title: string;\n url: string;\n site?: string;\n favicon?: string;\n image?: string;\n snippet?: string;\n publishedAt?: string;\n breadcrumbs?: string[];\n sitelinks?: {\n title: string;\n url: string;\n ext?: Record<string, unknown>;\n }[];\n ext?: Record<string, unknown>;\n}\ninterface ResultsPage {\n engine: \"google\" | \"bing\" | \"yahoo\" | \"duckduckgo\" | \"yandex\" | \"baidu\" | \"naver\" | \"yahoo-japan\" | \"seznam\" | \"daum\" | \"sogou\" | \"tripadvisor\";\n query: string;\n type: \"web\" | \"news\" | \"images\" | \"videos\" | \"image\";\n outcome: \"results\" | \"noResults\";\n country?: string;\n lang?: string;\n device?: \"desktop\" | \"mobile\";\n timeRange?: \"hour\" | \"day\" | \"week\" | \"month\" | \"year\";\n safe?: \"on\" | \"off\";\n image?: string;\n correctedQuery?: string;\n totalResults?: number;\n page: number;\n items: SerpItem[];\n cursor?: string;\n fetchedAt: string;\n ext?: Record<string, unknown>;\n}\ninterface Review {\n id?: string;\n author?: string;\n authorAvatarUrl?: string;\n rating: number;\n title?: string;\n body?: string;\n date?: string;\n country?: string;\n verified?: boolean;\n helpfulCount?: number;\n unhelpfulCount?: number;\n recommended?: boolean;\n badges?: string[];\n syndicatedFrom?: string;\n productId?: string;\n productImageUrl?: string;\n variant?: string;\n variantId?: string;\n language?: string;\n images: string[];\n incentivized?: boolean;\n reply?: {\n body: string;\n date?: string;\n author?: string;\n };\n ext?: Ext;\n}\ninterface ReviewPage {\n marketplace: string;\n productId: string;\n summary?: Rating;\n page: Page;\n reviews: Review[];\n cursor?: string;\n grouped?: boolean;\n reviewSummary?: string;\n reviewAspects?: {\n name: string;\n mentions?: number;\n positive?: number;\n negative?: number;\n }[];\n ext?: Ext;\n}\ninterface Robots {\n status: number;\n sitemaps: string[];\n}\ninterface SearchItem {\n marketplace: string;\n id: string;\n url?: string;\n title: string;\n price?: Money;\n listPrice?: Money;\n subscriptionPrice?: Money;\n description?: string;\n fulfilledBy?: string;\n condition?: string;\n unitPrice?: {\n price: Money;\n unit?: string;\n };\n brand?: string;\n rating?: Rating;\n seller?: Seller;\n salesCount?: number;\n salesLabel?: string;\n inStock?: boolean;\n status?: string;\n delivery?: ShippingOption;\n shippingOptions?: ShippingOption[];\n stock?: number;\n identifiers?: Identifiers;\n listingFormat?: string;\n paymentOptions?: string[];\n returnsPolicy?: string;\n badges: string[];\n promotions: string[];\n groupId?: string;\n attributes: Attribute[];\n offersSummary?: {\n count?: number;\n fromPrice?: Money;\n ext?: Ext;\n };\n priceRange?: {\n min: Money;\n max: Money;\n };\n endsAt?: string;\n deliveryTo?: {\n label?: string;\n country?: string;\n postalCode?: string;\n };\n ext?: Ext;\n imageUrl?: string;\n sponsored?: boolean;\n variantCount?: number;\n category?: CategoryStep[];\n matchScore?: number;\n offers?: Offer[];\n variants?: Variant[];\n}\ninterface SearchResult {\n marketplace: string;\n query?: string;\n page: Page;\n items: SearchItem[];\n cursor?: string;\n facets?: Facet[];\n relatedSearches?: string[];\n ext?: Ext;\n}\ninterface Seller {\n id?: string;\n name?: string;\n url?: string;\n logoUrl?: string;\n rating?: Rating;\n country?: string;\n positivePercent?: number;\n productCount?: number;\n ext?: Ext;\n}\ntype SerpItem = {\n type: \"organic\";\n rank: number;\n ext?: Record<string, unknown>;\n position: number;\n url: string;\n title: string;\n snippet?: string;\n site?: string;\n displayUrl?: string;\n date?: string;\n sitelinks?: SerpLink[];\n thumbnail?: string;\n image?: string;\n imageWidth?: number;\n imageHeight?: number;\n images?: string[];\n durationSec?: number;\n lang?: string;\n favicon?: string;\n badges?: string[];\n facts?: {\n label: string;\n value: string;\n }[];\n rating?: number;\n ratingScale?: number;\n reviewCount?: number;\n} | {\n type: \"ad\";\n rank: number;\n ext?: Record<string, unknown>;\n block?: \"top\" | \"bottom\" | \"side\";\n url: string;\n title: string;\n snippet?: string;\n advertiser?: string;\n displayUrl?: string;\n sitelinks?: SerpLink[];\n thumbnail?: string;\n phone?: string;\n extensions?: {\n text: string;\n url?: string;\n }[];\n favicon?: string;\n badges?: string[];\n rating?: number;\n reviewCount?: number;\n promotion?: {\n text: string;\n url?: string;\n };\n} | {\n type: \"news\";\n rank: number;\n ext?: Record<string, unknown>;\n url: string;\n title: string;\n snippet?: string;\n source?: string;\n sourceUrl?: string;\n sourceLogo?: string;\n date?: string;\n thumbnail?: string;\n favicon?: string;\n} | {\n type: \"image\";\n rank: number;\n ext?: Record<string, unknown>;\n imageUrl: string;\n thumbnail?: string;\n width?: number;\n height?: number;\n title?: string;\n url?: string;\n source?: string;\n date?: string;\n format?: string;\n favicon?: string;\n} | {\n type: \"video\";\n rank: number;\n ext?: Record<string, unknown>;\n url: string;\n title: string;\n snippet?: string;\n source?: string;\n channel?: string;\n channelUrl?: string;\n avatar?: string;\n date?: string;\n durationSec?: number;\n views?: number;\n viewsText?: string;\n thumbnail?: string;\n embedUrl?: string;\n preview?: string;\n favicon?: string;\n} | {\n type: \"topStories\" | \"videoCarousel\" | \"imagePack\" | \"shopping\" | \"twitter\" | \"discussions\";\n rank: number;\n ext?: Record<string, unknown>;\n title?: string;\n items: Record<string, unknown>[];\n sponsored?: boolean;\n moreUrl?: string;\n total?: number;\n} | {\n type: \"peopleAlsoAsk\";\n rank: number;\n ext?: Record<string, unknown>;\n title?: string;\n questions: {\n question: string;\n answer?: string;\n url?: string;\n title?: string;\n }[];\n} | {\n type: \"relatedSearches\";\n rank: number;\n ext?: Record<string, unknown>;\n title?: string;\n queries: string[];\n} | {\n type: \"knowledgePanel\";\n rank: number;\n ext?: Record<string, unknown>;\n title: string;\n subtitle?: string;\n description?: string;\n source?: SerpLink;\n facts?: {\n label: string;\n value: string;\n }[];\n images?: string[];\n website?: string;\n links?: SerpLink[];\n} | {\n type: \"localPack\";\n rank: number;\n ext?: Record<string, unknown>;\n places: SerpPlace[];\n moreUrl?: string;\n total?: number;\n} | {\n type: \"aiOverview\";\n rank: number;\n ext?: Record<string, unknown>;\n answer: Answer;\n} | {\n type: \"other\";\n rank: number;\n ext?: Record<string, unknown>;\n kind: string;\n title?: string;\n text?: string;\n links?: SerpLink[];\n};\ninterface SerpLink {\n url: string;\n title?: string;\n snippet?: string;\n}\ninterface SerpPlace {\n id: string;\n name: string;\n url?: string;\n address?: Address;\n coordinates?: {\n lat: number;\n lng: number;\n };\n categories?: string[];\n rating?: number;\n reviewCount?: number;\n priceLevel?: string;\n phone?: string;\n website?: string;\n hours?: Hours;\n photos?: string[];\n photoCount?: number;\n attributes?: {\n group?: string;\n label: string;\n value?: string;\n }[];\n status?: \"open\" | \"closed\" | \"temporarilyClosed\" | \"permanentlyClosed\";\n statusText?: string;\n description?: string;\n neighborhood?: string;\n lotAddress?: string;\n logo?: string;\n verifiedOwner?: boolean;\n reviewsUrl?: string;\n lang?: string;\n ext?: Record<string, unknown>;\n}\ninterface ShippingOption {\n carrier?: string;\n code?: string;\n estimate?: string;\n cost?: Money;\n free?: boolean;\n minDays?: number;\n maxDays?: number;\n handlingDays?: number;\n cutoff?: string;\n condition?: string;\n available?: boolean;\n minimumOrder?: Money;\n shipsFrom?: string;\n ext?: Ext;\n}\ninterface ShippingQuote {\n marketplace: string;\n productId: string;\n skuId?: string;\n region: string;\n quantity: number;\n available: boolean;\n options: ShippingOption[];\n}\ninterface SocialMedia {\n type: \"image\" | \"gif\" | \"video\" | \"embed\";\n id?: string;\n url: string;\n width?: number;\n height?: number;\n thumbnailUrl?: string;\n durationSec?: number;\n variants?: MediaVariant[];\n altText?: string;\n caption?: string;\n title?: string;\n hasAudio?: boolean;\n tags?: MediaTag[];\n captions?: CaptionTrack[];\n ext?: Record<string, unknown>;\n}\ninterface Source {\n url: string;\n title?: string;\n site?: string;\n favicon?: string;\n image?: string;\n snippet?: string;\n publishedAt?: string;\n cited: boolean;\n ext?: Record<string, unknown>;\n}\ninterface Suggestion {\n text: string;\n prompt?: string;\n}\ninterface Suggestions {\n engine: \"google\" | \"bing\" | \"yahoo\" | \"duckduckgo\" | \"yandex\" | \"baidu\" | \"naver\" | \"yahoo-japan\" | \"seznam\" | \"daum\" | \"sogou\" | \"tripadvisor\";\n query: string;\n country?: string;\n lang?: string;\n suggestions: {\n text: string;\n type?: string;\n ext?: Record<string, unknown>;\n }[];\n ext?: Record<string, unknown>;\n}\ninterface SupportedFonts {\n fontsByLanguage?: Record<string, unknown>;\n defaultByLanguage?: Record<string, unknown>;\n allFonts?: string[];\n allWeights?: string[];\n supportedSourceLanguages?: string[];\n userFonts?: Record<string, unknown>[];\n}\ninterface TechnologiesResult {\n domain: string;\n technologies: Technology[];\n accounts: Technology[];\n page: CompanyPage;\n dns: Dns;\n robots?: Robots;\n}\ninterface Technology {\n name: string;\n categories: string[];\n confidence: number;\n version?: string;\n website?: string;\n evidence: Evidence[];\n}\ninterface TextRegion {\n /** The region's number, starting at 0. */\n index: number;\n /** Four corner points, in the original image's coordinates. */\n polygon: number[][];\n bbox: {\n x: number;\n y: number;\n w: number;\n h: number;\n };\n /** The text that was read. */\n text: string;\n /** Recognition confidence, 0–1. */\n confidence?: number;\n text_color?: {\n r: number;\n g: number;\n b: number;\n };\n bg_color?: {\n r: number;\n g: number;\n b: number;\n };\n /** How uneven the background is behind the text; near 0 is a flat colour. */\n bg_std?: number;\n font_weight?: string;\n /** True for text on a filled label, such as a price tag. */\n is_badge?: boolean;\n}\ninterface TranslatedRegion {\n /** The region's number, starting at 0. */\n index: number;\n /** Four corner points, in the original image's coordinates. */\n polygon: number[][];\n bbox: {\n x: number;\n y: number;\n w: number;\n h: number;\n };\n /** The text that was read. */\n text: string;\n /** Recognition confidence, 0–1. */\n confidence?: number;\n text_color?: {\n r: number;\n g: number;\n b: number;\n };\n bg_color?: {\n r: number;\n g: number;\n b: number;\n };\n /** How uneven the background is behind the text; near 0 is a flat colour. */\n bg_std?: number;\n font_weight?: string;\n /** True for text on a filled label, such as a price tag. */\n is_badge?: boolean;\n /** The translation, in target_language (the field name is historical). */\n text_kr?: string;\n}\ninterface TranslatedRegions {\n /** The image with the source text removed, as a base64 JPEG. */\n inpainted_base64: string;\n regions: TranslatedRegion[];\n regions_count?: number;\n}\ninterface TrendPoint {\n date: string;\n values: number[];\n partial?: boolean;\n noData?: boolean[];\n}\ninterface TrendRegion {\n code?: string;\n name: string;\n values: number[];\n noData?: boolean;\n coordinates?: {\n lat: number;\n lng: number;\n };\n}\ninterface TrendingItem {\n rank: number;\n query: string;\n volume?: string;\n minVolume?: number;\n growth?: string;\n startedAt?: string;\n endedAt?: string;\n active?: boolean;\n categories?: string[];\n related?: string[];\n articles?: {\n title: string;\n url: string;\n source?: string;\n date?: string;\n image?: string;\n }[];\n ext?: Record<string, unknown>;\n}\ninterface TrendingPage {\n engine: \"google-trends\";\n country: string;\n subregion?: string;\n window?: string;\n category?: number;\n lang?: string;\n items: TrendingItem[];\n fetchedAt: string;\n ext?: Record<string, unknown>;\n}\ninterface TrendsExplore {\n engine: \"google-trends\";\n terms: string[];\n country?: string;\n subregion?: string;\n timeRange: string;\n category?: number;\n property?: \"web\" | \"images\" | \"news\" | \"shopping\" | \"youtube\";\n lang?: string;\n interestOverTime?: {\n points: TrendPoint[];\n averages?: number[];\n };\n interestByRegion?: {\n resolution?: \"country\" | \"region\" | \"metro\" | \"city\";\n measure?: \"interest\" | \"share\";\n regions: TrendRegion[];\n };\n related?: Related[];\n fetchedAt: string;\n ext?: Record<string, unknown>;\n}\ninterface Url {\n url: string;\n displayUrl?: string;\n}\ninterface Variant {\n id: string;\n productId?: string;\n name?: string;\n images?: string[];\n price?: Money;\n listPrice?: Money;\n purchaseLimit?: number;\n inStock?: boolean;\n stock?: number;\n selections: VariantSelection[];\n identifiers?: Identifiers;\n weightKg?: number;\n ext?: Ext;\n}\ninterface VariantSelection {\n optionId: string;\n valueId: string;\n optionName: string;\n valueName: string;\n}";
|
|
3
|
+
export const SCHEMA_TYPES = "interface Account {\n platform: \"reddit\" | \"linkedin\" | \"tiktok\" | \"youtube\" | \"instagram\" | \"threads\" | \"x\" | \"facebook\";\n id?: string;\n handle: string;\n displayName?: string;\n bio?: string;\n url: string;\n avatarUrl?: string;\n bannerUrl?: string;\n verified?: boolean;\n createdAt?: string;\n counts?: {\n followers?: number;\n following?: number;\n posts?: number;\n };\n links?: Link[];\n private?: boolean;\n category?: string;\n location?: string;\n ext?: Record<string, unknown>;\n}\ninterface AccountPage {\n platform: \"reddit\" | \"linkedin\" | \"tiktok\" | \"youtube\" | \"instagram\" | \"threads\" | \"x\" | \"facebook\";\n items: Account[];\n cursor?: string;\n ext?: Record<string, unknown>;\n}\ninterface AccountRef {\n platform: \"reddit\" | \"linkedin\" | \"tiktok\" | \"youtube\" | \"instagram\" | \"threads\" | \"x\" | \"facebook\";\n id?: string;\n handle?: string;\n displayName?: string;\n url?: string;\n avatarUrl?: string;\n verified?: boolean;\n counts?: {\n followers?: number;\n following?: number;\n posts?: number;\n };\n bio?: string;\n bannerUrl?: string;\n createdAt?: string;\n links?: Link[];\n private?: boolean;\n category?: string;\n location?: string;\n ext?: Record<string, unknown>;\n}\ninterface Address {\n full?: string;\n street?: string;\n city?: string;\n region?: string;\n postalCode?: string;\n country?: string;\n}\ninterface Answer {\n engine: \"google-aio\" | \"google-ai-mode\" | \"chatgpt\" | \"gemini\" | \"perplexity\" | \"copilot\" | \"naver-ai-brief\" | \"naver-ai-tab\" | \"qwen\" | \"yuanbao\" | \"dola\";\n outcome: \"answered\" | \"noAnswer\" | \"refused\" | \"partial\";\n prompt: string;\n askedAt: string;\n country: string;\n language?: string;\n conversation?: Conversation;\n title?: string;\n blocks: Block[];\n text: string;\n markdown: string;\n citations: Citation[];\n sources: Source[];\n mentions: AnswerMention[];\n cards: Card[];\n suggestions: Suggestion[];\n results?: Result[];\n page?: string;\n ext?: Record<string, unknown>;\n}\ninterface AnswerMention {\n name: string;\n kind: \"brand\" | \"product\" | \"place\" | \"other\";\n category?: string;\n at?: number;\n card?: number;\n ext?: Record<string, unknown>;\n}\ninterface App {\n id: string;\n name: string;\n url?: string;\n developer?: Developer;\n icon?: string;\n screenshots?: string[];\n video?: string;\n summary?: string;\n description?: string;\n categories?: string[];\n rating?: Rating;\n starCounts?: Record<string, unknown>;\n editorsChoice?: boolean;\n price?: Money;\n inAppPurchases?: boolean;\n contentRating?: string;\n version?: string;\n requires?: string;\n releasedAt?: string;\n updatedAt?: string;\n whatsNew?: string;\n country?: string;\n lang?: string;\n ext?: Record<string, unknown>;\n related?: {\n id: string;\n name: string;\n url?: string;\n developer?: Developer;\n icon?: string;\n screenshots?: string[];\n video?: string;\n summary?: string;\n description?: string;\n categories?: string[];\n rating?: Rating;\n starCounts?: Record<string, unknown>;\n editorsChoice?: boolean;\n price?: Money;\n inAppPurchases?: boolean;\n contentRating?: string;\n version?: string;\n requires?: string;\n releasedAt?: string;\n updatedAt?: string;\n whatsNew?: string;\n country?: string;\n lang?: string;\n ext?: Record<string, unknown>;\n }[];\n moreByDeveloper?: {\n id: string;\n name: string;\n url?: string;\n developer?: Developer;\n icon?: string;\n screenshots?: string[];\n video?: string;\n summary?: string;\n description?: string;\n categories?: string[];\n rating?: Rating;\n starCounts?: Record<string, unknown>;\n editorsChoice?: boolean;\n price?: Money;\n inAppPurchases?: boolean;\n contentRating?: string;\n version?: string;\n requires?: string;\n releasedAt?: string;\n updatedAt?: string;\n whatsNew?: string;\n country?: string;\n lang?: string;\n ext?: Record<string, unknown>;\n }[];\n privacyPolicyUrl?: string;\n chart?: {\n name: string;\n position: number;\n };\n}\ninterface AppReview {\n id?: string;\n author?: string;\n rating: number;\n title?: string;\n body?: string;\n date?: string;\n helpfulCount?: number;\n images: string[];\n reply?: {\n body: string;\n date?: string;\n author?: string;\n };\n ext?: Ext;\n}\ninterface AppReviewsPage {\n engine: \"google-play\" | \"app-store\";\n appId: string;\n sort?: \"relevant\" | \"newest\" | \"highest\" | \"lowest\";\n country?: string;\n lang?: string;\n page: Page;\n reviews: AppReview[];\n cursor?: string;\n fetchedAt: string;\n ext?: Record<string, unknown>;\n}\ninterface AppsPage {\n engine: \"google-play\" | \"app-store\";\n query: string;\n outcome: \"results\" | \"noResults\";\n country?: string;\n lang?: string;\n apps: {\n id: string;\n name: string;\n url?: string;\n developer?: Developer;\n icon?: string;\n screenshots?: string[];\n video?: string;\n summary?: string;\n description?: string;\n categories?: string[];\n rating?: Rating;\n starCounts?: Record<string, unknown>;\n editorsChoice?: boolean;\n price?: Money;\n inAppPurchases?: boolean;\n contentRating?: string;\n version?: string;\n requires?: string;\n releasedAt?: string;\n updatedAt?: string;\n whatsNew?: string;\n country?: string;\n lang?: string;\n ext?: Record<string, unknown>;\n rank: number;\n }[];\n page: Page;\n cursor?: string;\n fetchedAt: string;\n ext?: Record<string, unknown>;\n}\ninterface Attribute {\n name: string;\n value: string;\n}\ninterface Audio {\n id?: string;\n title?: string;\n artist?: string;\n url?: string;\n coverUrl?: string;\n durationSec?: number;\n original?: boolean;\n album?: string;\n ext?: Record<string, unknown>;\n}\ntype Block = {\n type: \"heading\";\n level: number;\n markdown: string;\n} | {\n type: \"paragraph\";\n markdown: string;\n} | {\n type: \"list\";\n ordered: boolean;\n items: {\n markdown: string;\n depth: number;\n }[];\n} | {\n type: \"table\";\n header: string[];\n rows: string[][];\n} | {\n type: \"code\";\n language?: string;\n text: string;\n} | {\n type: \"quote\";\n markdown: string;\n} | {\n type: \"cards\";\n cards: number[];\n} | {\n type: \"rule\";\n};\ninterface Broadcast {\n status: \"scheduled\" | \"live\" | \"ended\";\n ext?: Record<string, unknown>;\n}\ninterface CaptionTrack {\n url: string;\n lang?: string;\n format?: string;\n ext?: Record<string, unknown>;\n}\ninterface Card {\n type: \"product\" | \"place\" | \"video\" | \"image\" | \"other\";\n title?: string;\n url?: string;\n image?: string;\n thumbnail?: string;\n width?: number;\n height?: number;\n price?: Price;\n originalPrice?: Price;\n rating?: number;\n reviews?: number;\n merchant?: string;\n site?: string;\n badges?: string[];\n address?: string;\n coordinates?: {\n lat: number;\n lng: number;\n };\n sponsored: boolean;\n ext?: Record<string, unknown>;\n}\ninterface Catalog {\n marketplaces: ({\n id: string;\n kind: \"marketplace\" | \"sns\" | \"serp\" | \"answers\" | \"company\" | \"unlocker\" | \"reader\";\n operations: string[];\n regions?: string[];\n cost?: Record<string, unknown>;\n /** Each operation's input, as JSON Schema. */\n params?: Record<string, unknown>;\n })[];\n pricing?: Record<string, unknown>;\n}\ninterface CategoryList {\n marketplace: string;\n path: CategoryStep[];\n categories: CategoryNode[];\n ext?: Ext;\n}\ninterface CategoryNode {\n id: string;\n name: string;\n parentId?: string;\n hasChildren?: boolean;\n browsable?: boolean;\n imageUrl?: string;\n ext?: Ext;\n}\ninterface CategoryStep {\n id?: string;\n name?: string;\n}\ninterface Citation {\n start: number;\n end: number;\n sources: number[];\n}\ninterface Comment {\n platform: \"reddit\" | \"linkedin\" | \"tiktok\" | \"youtube\" | \"instagram\" | \"threads\" | \"x\" | \"facebook\";\n id: string;\n url?: string;\n postId: string;\n parentId?: string;\n author: AccountRef;\n text: string;\n entities?: Entities;\n createdAt?: string;\n editedAt?: string;\n edited?: boolean;\n lang?: string;\n pinned?: boolean;\n byAuthor?: boolean;\n likedByAuthor?: boolean;\n metrics?: {\n likes?: number;\n replies?: number;\n };\n media?: SocialMedia[];\n replies: Comment[];\n moreReplies?: {\n count?: number;\n cursor?: string;\n ext?: Record<string, unknown>;\n };\n ext?: Record<string, unknown>;\n}\ninterface CommentPage {\n platform: \"reddit\" | \"linkedin\" | \"tiktok\" | \"youtube\" | \"instagram\" | \"threads\" | \"x\" | \"facebook\";\n items: Comment[];\n cursor?: string;\n total?: number;\n order?: string;\n ext?: Record<string, unknown>;\n post?: Post;\n}\ninterface CompanyPage {\n url: string;\n finalUrl?: string;\n status?: number;\n title?: string;\n redirects?: Redirect[];\n headers?: Record<string, unknown>;\n cookies?: string[];\n meta?: Record<string, unknown>;\n scripts?: string[];\n lang?: string;\n blocked?: true;\n error?: \"timeout\" | \"unreachable\" | \"too_many_redirects\";\n}\ninterface Conversation {\n id: string;\n turn: number;\n expiresAt?: string;\n}\ninterface DeliveryOption {\n carrier?: string;\n code?: string;\n estimate?: string;\n cost?: Money;\n free?: boolean;\n minDays?: number;\n maxDays?: number;\n handlingDays?: number;\n cutoff?: string;\n condition?: string;\n available?: boolean;\n minimumOrder?: Money;\n shipsFrom?: string;\n ext?: Ext;\n}\ninterface Developer {\n id?: string;\n name: string;\n url?: string;\n website?: string;\n email?: string;\n address?: string;\n}\ninterface Dns {\n a: string[];\n aaaa: string[];\n cname: string[];\n mx: {\n exchange: string;\n priority: number;\n }[];\n ns: string[];\n txt: string[];\n soa?: {\n nsname: string;\n hostmaster: string;\n };\n}\ninterface Entities {\n mentions?: Mention[];\n urls?: Url[];\n hashtags?: string[];\n}\ninterface Evidence {\n source: \"url\" | \"header\" | \"cookie\" | \"meta\" | \"html\" | \"script\" | \"robots\" | \"dns\" | \"implied\";\n field?: string;\n match: string;\n}\ntype Ext = Record<string, unknown>;\ninterface FacebookAd {\n platform: \"facebook\";\n id: string;\n url: string;\n adId?: string;\n active?: boolean;\n startedAt?: string;\n endedAt?: string;\n activeSeconds?: number;\n platforms: string[];\n page: FacebookAdPage;\n format?: string;\n title?: string;\n body?: string;\n caption?: string;\n linkUrl?: string;\n linkDescription?: string;\n ctaText?: string;\n ctaType?: string;\n images: FacebookAdImage[];\n videos: FacebookAdVideo[];\n cards: FacebookAdCard[];\n categories?: string[];\n spend?: FacebookRange;\n impressions?: FacebookRange;\n reach?: FacebookRange;\n currency?: string;\n disclaimer?: FacebookAdDisclaimer;\n countries?: string[];\n collationId?: string;\n collationCount?: number;\n sensitive?: boolean;\n aiGenerated?: boolean;\n ext?: Record<string, unknown>;\n}\ninterface FacebookAdCard {\n title?: string;\n body?: string;\n caption?: string;\n linkUrl?: string;\n linkDescription?: string;\n ctaText?: string;\n ctaType?: string;\n image?: FacebookAdImage;\n video?: FacebookAdVideo;\n ext?: Record<string, unknown>;\n}\ninterface FacebookAdDisclaimer {\n label?: string;\n byline?: string;\n confirmation?: string;\n submittedOn?: string;\n phone?: string;\n email?: string;\n website?: string;\n address?: string;\n ext?: Record<string, unknown>;\n}\ninterface FacebookAdImage {\n url: string;\n resizedUrl?: string;\n watermarkedUrl?: string;\n crops?: unknown[];\n}\ninterface FacebookAdPage {\n id: string;\n name?: string;\n nameInAd?: string;\n url?: string;\n avatarUrl?: string;\n likes?: number;\n categories?: string[];\n deleted?: boolean;\n}\ninterface FacebookAdVideo {\n hdUrl?: string;\n sdUrl?: string;\n previewUrl?: string;\n watermarkedHdUrl?: string;\n watermarkedSdUrl?: string;\n}\ninterface FacebookAdsPage {\n platform: \"facebook\";\n items: FacebookAd[];\n cursor?: string;\n total?: number;\n totalAtLeast?: number;\n ext?: Record<string, unknown>;\n}\ninterface FacebookRange {\n text: string;\n lower?: number;\n upper?: number;\n}\ninterface Facet {\n id: string;\n name: string;\n kind: \"select\" | \"range\";\n values: FacetValue[];\n min?: number;\n max?: number;\n maps_to?: string;\n}\ninterface FacetValue {\n value: string;\n name: string;\n selected?: boolean;\n}\ninterface FeedbackInput {\n /** feature_request: an API or option we do not have. error: a call failed or behaved wrongly. wrong_data: a field holds the wrong value. missing_data: something on */\n type: \"feature_request\" | \"error\" | \"wrong_data\" | \"missing_data\" | \"other\";\n /** What happened, or what you need, in your own words. */\n message: string;\n /** The platform it is about, as in the path: amazon, tiktok, google… */\n platform?: string;\n /** The operation it is about, as in the path: search, product, posts… */\n operation?: string;\n /** The parameters you called it with. At most 8 KB. */\n params?: Record<string, unknown>;\n /** The requestId of the response you are reporting. Sent with your key, it lets us look at that call. */\n requestId?: string;\n /** A page showing the right data, or the item the report is about. */\n url?: string;\n /** What you received: the part of the response that is wrong, as text or as the JSON value itself. At most 16 KB. */\n received?: unknown;\n /** What you expected instead, as text or as a JSON value. At most 4,000 characters. */\n expected?: unknown;\n /** Where to email our reply. Without it, a report sent with a key is answered at the account's email. */\n contact?: string;\n /** What sent it, such as your agent's or app's name. */\n source?: string;\n}\ninterface FeedbackReceipt {\n /** The report's id: keep it to read the status and our reply. */\n id: string;\n status: \"received\" | \"in_progress\" | \"resolved\" | \"declined\";\n createdAt: string;\n}\ninterface FeedbackStatus {\n id: string;\n type: \"feature_request\" | \"error\" | \"wrong_data\" | \"missing_data\" | \"other\";\n /** received, then in_progress while we work on it, then resolved or declined. */\n status: \"received\" | \"in_progress\" | \"resolved\" | \"declined\";\n /** Our answer; null until we reply. */\n reply: string | null;\n repliedAt: string | null;\n createdAt: string;\n updatedAt: string;\n}\ninterface Group {\n platform: \"reddit\" | \"linkedin\" | \"tiktok\" | \"youtube\" | \"instagram\" | \"threads\" | \"x\" | \"facebook\";\n kind: \"community\" | \"channel\" | \"company\" | \"hashtag\" | \"sound\" | \"topic\" | \"location\" | \"list\";\n id: string;\n name: string;\n url: string;\n description?: string;\n avatarUrl?: string;\n bannerUrl?: string;\n createdAt?: string;\n counts?: {\n members?: number;\n posts?: number;\n };\n sensitive?: boolean;\n audio?: Audio;\n ext?: Record<string, unknown>;\n}\ninterface GroupPage {\n platform: \"reddit\" | \"linkedin\" | \"tiktok\" | \"youtube\" | \"instagram\" | \"threads\" | \"x\" | \"facebook\";\n items: Group[];\n cursor?: string;\n order?: string;\n ext?: Record<string, unknown>;\n}\ntype Hours = {\n day: string;\n hours: string;\n}[];\ninterface Identifiers {\n gtin?: string;\n mpn?: string;\n model?: string;\n}\ninterface InReplyTo {\n id: string;\n url?: string;\n author?: AccountRef;\n}\ninterface Job {\n platform: \"linkedin\";\n id: string;\n url: string;\n title: string;\n company: {\n name: string;\n slug?: string;\n url?: string;\n logoUrl?: string;\n };\n location?: string;\n postedText?: string;\n applicants?: number;\n applicantsAtLeast?: number;\n seniority?: string;\n employmentType?: string;\n jobFunction?: string;\n industries?: string;\n description?: string;\n descriptionHtml?: string;\n applyMethod?: \"linkedin\" | \"external\";\n}\ninterface JobPage {\n platform: \"linkedin\";\n items: {\n platform: \"linkedin\";\n id: string;\n url: string;\n title: string;\n company: {\n name: string;\n url?: string;\n };\n location?: string;\n listedAt?: string;\n logoUrl?: string;\n insights?: string[];\n }[];\n cursor?: string;\n}\ninterface Link {\n url: string;\n title?: string;\n}\ninterface LinkPreview {\n url: string;\n title?: string;\n description?: string;\n thumbnailUrl?: string;\n domain?: string;\n ext?: Record<string, unknown>;\n}\ninterface Media {\n images: string[];\n videos: MediaVideo[];\n}\ninterface MediaFile {\n platform: string;\n postId: string;\n /** The file's MIME type, e.g. video/mp4 or image/jpeg. */\n contentType: string;\n /** The decoded file's size in bytes. */\n bytes: number;\n encoding: \"base64\";\n /** The file, base64-encoded. */\n data: string;\n /** Photo posts: which picture this is, 1-based. */\n index?: number;\n /** Photo posts: how many pictures the post has. */\n count?: number;\n}\ninterface MediaTag {\n account: AccountRef;\n ext?: Record<string, unknown>;\n}\ninterface MediaVariant {\n url: string;\n width?: number;\n height?: number;\n bitrate?: number;\n contentType?: string;\n codec?: string;\n sizeBytes?: number;\n fps?: number;\n quality?: string;\n ext?: Record<string, unknown>;\n}\ninterface MediaVideo {\n thumbnailUrl?: string;\n url?: string;\n title?: string;\n duration?: string;\n ext?: Ext;\n}\ninterface Mention {\n handle: string;\n id?: string;\n displayName?: string;\n ext?: Record<string, unknown>;\n}\ninterface Money {\n currency: string;\n amount: number;\n}\ninterface OcrResult {\n regions: TextRegion[];\n regions_found?: number;\n src_w?: number;\n src_h?: number;\n}\ninterface Offer {\n seller?: Seller;\n price: Money;\n listPrice?: Money;\n condition?: string;\n conditionNote?: string;\n fulfilledBy?: string;\n inStock?: boolean;\n status?: string;\n delivery?: DeliveryOption;\n shippingOptions?: DeliveryOption[];\n unitPrice?: {\n price: Money;\n unit?: string;\n };\n promotions?: string[];\n paymentOptions?: string[];\n ext?: Ext;\n}\ninterface Option {\n id: string;\n name: string;\n values: OptionValue[];\n}\ninterface OptionValue {\n id: string;\n name: string;\n imageUrl?: string;\n}\ninterface Page {\n index: number;\n size: number;\n total?: number;\n}\ninterface Place {\n name: string;\n id?: string;\n lat?: number;\n lng?: number;\n address?: string;\n city?: string;\n type?: string;\n country?: string;\n ext?: Record<string, unknown>;\n}\ninterface PlaceReview {\n id?: string;\n author?: string;\n authorAvatarUrl?: string;\n rating?: number;\n title?: string;\n body?: string;\n date?: string;\n helpfulCount?: number;\n language?: string;\n images: string[];\n reply?: {\n body: string;\n date?: string;\n author?: string;\n };\n ext?: Ext;\n authorId?: string;\n authorUrl?: string;\n pinned?: boolean;\n}\ninterface PlaceReviewsPage {\n engine: \"google\" | \"bing\" | \"yahoo\" | \"duckduckgo\" | \"yandex\" | \"baidu\" | \"naver\" | \"yahoo-japan\" | \"seznam\" | \"daum\" | \"sogou\" | \"tripadvisor\";\n placeId: string;\n summary?: Rating;\n starCounts?: Record<string, unknown>;\n sort?: \"relevant\" | \"newest\" | \"highest\" | \"lowest\";\n page: Page;\n reviews: PlaceReview[];\n cursor?: string;\n fetchedAt: string;\n ext?: Record<string, unknown>;\n}\ninterface PlacesPage {\n engine: \"google\" | \"bing\" | \"yahoo\" | \"duckduckgo\" | \"yandex\" | \"baidu\" | \"naver\" | \"yahoo-japan\" | \"seznam\" | \"daum\" | \"sogou\" | \"tripadvisor\";\n query: string;\n outcome: \"results\" | \"noResults\";\n type?: \"maps\" | \"local\";\n location?: string;\n near?: string;\n country?: string;\n lang?: string;\n places: SerpPlace[];\n page: Page;\n cursor?: string;\n fetchedAt: string;\n ext?: Record<string, unknown>;\n}\ninterface Poll {\n options: {\n text: string;\n votes?: number;\n }[];\n totalVotes?: number;\n endsAt?: string;\n ext?: Record<string, unknown>;\n}\ninterface Post {\n platform: \"reddit\" | \"linkedin\" | \"tiktok\" | \"youtube\" | \"instagram\" | \"threads\" | \"x\" | \"facebook\";\n id: string;\n url: string;\n author: AccountRef;\n title?: string;\n text?: string;\n createdAt?: string;\n editedAt?: string;\n edited?: boolean;\n lang?: string;\n media: SocialMedia[];\n metrics?: {\n likes?: number;\n comments?: number;\n shares?: number;\n views?: number;\n reposts?: number;\n quotes?: number;\n saves?: number;\n };\n entities?: Entities;\n linkPreview?: LinkPreview;\n poll?: Poll;\n place?: Place;\n audio?: Audio;\n live?: boolean;\n broadcast?: Broadcast;\n repostOf?: Post;\n quoteOf?: Post;\n inReplyTo?: InReplyTo;\n sponsored?: boolean;\n pinned?: boolean;\n aiGenerated?: boolean;\n sensitive?: boolean;\n ext?: Record<string, unknown>;\n}\ninterface PostPage {\n platform: \"reddit\" | \"linkedin\" | \"tiktok\" | \"youtube\" | \"instagram\" | \"threads\" | \"x\" | \"facebook\";\n items: Post[];\n cursor?: string;\n total?: number;\n order?: string;\n ext?: Record<string, unknown>;\n}\ninterface Price {\n text: string;\n amount?: number;\n currency?: string;\n}\ninterface Product {\n marketplace: string;\n id: string;\n url?: string;\n title: string;\n price?: Money;\n listPrice?: Money;\n subscriptionPrice?: Money;\n description?: string;\n fulfilledBy?: string;\n condition?: string;\n unitPrice?: {\n price: Money;\n unit?: string;\n };\n brand?: string;\n rating?: Rating;\n seller?: Seller;\n salesCount?: number;\n salesLabel?: string;\n inStock?: boolean;\n status?: string;\n delivery?: ShippingOption;\n shippingOptions?: ShippingOption[];\n stock?: number;\n identifiers?: Identifiers;\n listingFormat?: string;\n paymentOptions?: string[];\n returnsPolicy?: string;\n badges: string[];\n promotions: string[];\n groupId?: string;\n attributes: Attribute[];\n offersSummary?: {\n count?: number;\n fromPrice?: Money;\n ext?: Ext;\n };\n priceRange?: {\n min: Money;\n max: Money;\n };\n endsAt?: string;\n deliveryTo?: {\n label?: string;\n country?: string;\n postalCode?: string;\n };\n ext?: Ext;\n conditionNote?: string;\n purchaseLimit?: number;\n listedAt?: string;\n features: string[];\n highlights?: string[];\n media: Media;\n category: CategoryStep[];\n options: Option[];\n variants: Variant[];\n offers: Offer[];\n protectionPlans?: ProtectionPlan[];\n reviewSummary?: string;\n reviewAspects: {\n name: string;\n mentions?: number;\n positive?: number;\n negative?: number;\n }[];\n boxContents: string[];\n brandUrl?: string;\n replacedBy?: string;\n reviews: Review[];\n package?: {\n weightKg?: number;\n ext?: Ext;\n };\n}\ninterface ProtectionPlan {\n id?: string;\n name: string;\n price?: Money;\n provider?: string;\n ext?: Ext;\n}\ninterface Rating {\n average: number;\n count?: number;\n distribution?: Record<string, unknown>;\n starCounts?: Record<string, unknown>;\n grouped?: boolean;\n}\ninterface ReaderPage {\n /** The address asked for. */\n url: string;\n /** The address that answered, after redirects. */\n finalUrl: string;\n /** The site's HTTP status. A 404 page is still a page. */\n status: number;\n /** The site's Content-Type. */\n contentType: string;\n /** The page's title; empty when it has none. */\n title: string;\n description?: string;\n author?: string;\n /** The publication date, as the page states it. */\n published?: string;\n /** The site's name, as the page states it. */\n site?: string;\n language?: string;\n /** The page's own lead image (og:image and the like), as an absolute address. */\n image?: string;\n favicon?: string;\n /** The page's main content as Markdown; links and images are absolute. */\n markdown: string;\n wordCount: number;\n /** Present when `maxChars` cut the Markdown. */\n truncated?: true;\n /** Every schema.org JSON-LD block on the page, as the page states it. */\n jsonLd: unknown[];\n /** The page as fetched (include=html). */\n html?: string;\n /** The page's main content as HTML (include=contentHtml). */\n contentHtml?: string;\n}\ninterface Redirect {\n url: string;\n status: number;\n}\ninterface Related {\n term: string;\n topics?: {\n top: RelatedItem[];\n rising: RelatedItem[];\n };\n queries?: {\n top: RelatedItem[];\n rising: RelatedItem[];\n };\n}\ninterface RelatedItem {\n title: string;\n kind?: string;\n id?: string;\n value?: number;\n growth?: string;\n growthValue?: number;\n url?: string;\n}\ninterface Result {\n position: number;\n title: string;\n url: string;\n site?: string;\n favicon?: string;\n image?: string;\n snippet?: string;\n publishedAt?: string;\n breadcrumbs?: string[];\n sitelinks?: {\n title: string;\n url: string;\n ext?: Record<string, unknown>;\n }[];\n ext?: Record<string, unknown>;\n}\ninterface ResultsPage {\n engine: \"google\" | \"bing\" | \"yahoo\" | \"duckduckgo\" | \"yandex\" | \"baidu\" | \"naver\" | \"yahoo-japan\" | \"seznam\" | \"daum\" | \"sogou\" | \"tripadvisor\";\n query: string;\n type: \"web\" | \"news\" | \"images\" | \"videos\" | \"image\";\n outcome: \"results\" | \"noResults\";\n country?: string;\n lang?: string;\n device?: \"desktop\" | \"mobile\";\n timeRange?: \"hour\" | \"day\" | \"week\" | \"month\" | \"year\";\n safe?: \"on\" | \"off\";\n image?: string;\n correctedQuery?: string;\n totalResults?: number;\n page: number;\n items: SerpItem[];\n cursor?: string;\n fetchedAt: string;\n ext?: Record<string, unknown>;\n}\ninterface Review {\n id?: string;\n author?: string;\n authorAvatarUrl?: string;\n rating: number;\n title?: string;\n body?: string;\n date?: string;\n country?: string;\n verified?: boolean;\n helpfulCount?: number;\n unhelpfulCount?: number;\n recommended?: boolean;\n badges?: string[];\n syndicatedFrom?: string;\n productId?: string;\n productImageUrl?: string;\n variant?: string;\n variantId?: string;\n language?: string;\n images: string[];\n incentivized?: boolean;\n reply?: {\n body: string;\n date?: string;\n author?: string;\n };\n ext?: Ext;\n}\ninterface ReviewPage {\n marketplace: string;\n productId: string;\n summary?: Rating;\n page: Page;\n reviews: Review[];\n cursor?: string;\n grouped?: boolean;\n reviewSummary?: string;\n reviewAspects?: {\n name: string;\n mentions?: number;\n positive?: number;\n negative?: number;\n }[];\n ext?: Ext;\n}\ninterface Robots {\n status: number;\n sitemaps: string[];\n}\ninterface SearchItem {\n marketplace: string;\n id: string;\n url?: string;\n title: string;\n price?: Money;\n listPrice?: Money;\n subscriptionPrice?: Money;\n description?: string;\n fulfilledBy?: string;\n condition?: string;\n unitPrice?: {\n price: Money;\n unit?: string;\n };\n brand?: string;\n rating?: Rating;\n seller?: Seller;\n salesCount?: number;\n salesLabel?: string;\n inStock?: boolean;\n status?: string;\n delivery?: ShippingOption;\n shippingOptions?: ShippingOption[];\n stock?: number;\n identifiers?: Identifiers;\n listingFormat?: string;\n paymentOptions?: string[];\n returnsPolicy?: string;\n badges: string[];\n promotions: string[];\n groupId?: string;\n attributes: Attribute[];\n offersSummary?: {\n count?: number;\n fromPrice?: Money;\n ext?: Ext;\n };\n priceRange?: {\n min: Money;\n max: Money;\n };\n endsAt?: string;\n deliveryTo?: {\n label?: string;\n country?: string;\n postalCode?: string;\n };\n ext?: Ext;\n imageUrl?: string;\n sponsored?: boolean;\n variantCount?: number;\n category?: CategoryStep[];\n matchScore?: number;\n offers?: Offer[];\n variants?: Variant[];\n}\ninterface SearchResult {\n marketplace: string;\n query?: string;\n page: Page;\n items: SearchItem[];\n cursor?: string;\n facets?: Facet[];\n relatedSearches?: string[];\n ext?: Ext;\n}\ninterface Seller {\n id?: string;\n name?: string;\n url?: string;\n logoUrl?: string;\n rating?: Rating;\n country?: string;\n positivePercent?: number;\n productCount?: number;\n ext?: Ext;\n}\ntype SerpItem = {\n type: \"organic\";\n rank: number;\n ext?: Record<string, unknown>;\n position: number;\n url: string;\n title: string;\n snippet?: string;\n site?: string;\n displayUrl?: string;\n date?: string;\n sitelinks?: SerpLink[];\n thumbnail?: string;\n image?: string;\n imageWidth?: number;\n imageHeight?: number;\n images?: string[];\n durationSec?: number;\n lang?: string;\n favicon?: string;\n badges?: string[];\n facts?: {\n label: string;\n value: string;\n }[];\n rating?: number;\n ratingScale?: number;\n reviewCount?: number;\n} | {\n type: \"ad\";\n rank: number;\n ext?: Record<string, unknown>;\n block?: \"top\" | \"bottom\" | \"side\";\n url: string;\n title: string;\n snippet?: string;\n advertiser?: string;\n displayUrl?: string;\n sitelinks?: SerpLink[];\n thumbnail?: string;\n phone?: string;\n extensions?: {\n text: string;\n url?: string;\n }[];\n favicon?: string;\n badges?: string[];\n rating?: number;\n reviewCount?: number;\n promotion?: {\n text: string;\n url?: string;\n };\n} | {\n type: \"news\";\n rank: number;\n ext?: Record<string, unknown>;\n url: string;\n title: string;\n snippet?: string;\n source?: string;\n sourceUrl?: string;\n sourceLogo?: string;\n date?: string;\n thumbnail?: string;\n favicon?: string;\n} | {\n type: \"image\";\n rank: number;\n ext?: Record<string, unknown>;\n imageUrl: string;\n thumbnail?: string;\n width?: number;\n height?: number;\n title?: string;\n url?: string;\n source?: string;\n date?: string;\n format?: string;\n favicon?: string;\n} | {\n type: \"video\";\n rank: number;\n ext?: Record<string, unknown>;\n url: string;\n title: string;\n snippet?: string;\n source?: string;\n channel?: string;\n channelUrl?: string;\n avatar?: string;\n date?: string;\n durationSec?: number;\n views?: number;\n viewsText?: string;\n thumbnail?: string;\n embedUrl?: string;\n preview?: string;\n favicon?: string;\n} | {\n type: \"topStories\" | \"videoCarousel\" | \"imagePack\" | \"shopping\" | \"twitter\" | \"discussions\";\n rank: number;\n ext?: Record<string, unknown>;\n title?: string;\n items: Record<string, unknown>[];\n sponsored?: boolean;\n moreUrl?: string;\n total?: number;\n} | {\n type: \"peopleAlsoAsk\";\n rank: number;\n ext?: Record<string, unknown>;\n title?: string;\n questions: {\n question: string;\n answer?: string;\n url?: string;\n title?: string;\n }[];\n} | {\n type: \"relatedSearches\";\n rank: number;\n ext?: Record<string, unknown>;\n title?: string;\n queries: string[];\n} | {\n type: \"knowledgePanel\";\n rank: number;\n ext?: Record<string, unknown>;\n title: string;\n subtitle?: string;\n description?: string;\n source?: SerpLink;\n facts?: {\n label: string;\n value: string;\n }[];\n images?: string[];\n website?: string;\n links?: SerpLink[];\n} | {\n type: \"localPack\";\n rank: number;\n ext?: Record<string, unknown>;\n places: SerpPlace[];\n moreUrl?: string;\n total?: number;\n} | {\n type: \"aiOverview\";\n rank: number;\n ext?: Record<string, unknown>;\n answer: Answer;\n} | {\n type: \"other\";\n rank: number;\n ext?: Record<string, unknown>;\n kind: string;\n title?: string;\n text?: string;\n links?: SerpLink[];\n};\ninterface SerpLink {\n url: string;\n title?: string;\n snippet?: string;\n}\ninterface SerpPlace {\n id: string;\n name: string;\n url?: string;\n address?: Address;\n coordinates?: {\n lat: number;\n lng: number;\n };\n categories?: string[];\n rating?: number;\n reviewCount?: number;\n priceLevel?: string;\n phone?: string;\n website?: string;\n hours?: Hours;\n photos?: string[];\n photoCount?: number;\n attributes?: {\n group?: string;\n label: string;\n value?: string;\n }[];\n status?: \"open\" | \"closed\" | \"temporarilyClosed\" | \"permanentlyClosed\";\n statusText?: string;\n description?: string;\n neighborhood?: string;\n lotAddress?: string;\n logo?: string;\n verifiedOwner?: boolean;\n reviewsUrl?: string;\n lang?: string;\n ext?: Record<string, unknown>;\n}\ninterface ShippingOption {\n carrier?: string;\n code?: string;\n estimate?: string;\n cost?: Money;\n free?: boolean;\n minDays?: number;\n maxDays?: number;\n handlingDays?: number;\n cutoff?: string;\n condition?: string;\n available?: boolean;\n minimumOrder?: Money;\n shipsFrom?: string;\n ext?: Ext;\n}\ninterface ShippingQuote {\n marketplace: string;\n productId: string;\n skuId?: string;\n region: string;\n quantity: number;\n available: boolean;\n options: ShippingOption[];\n}\ninterface SocialMedia {\n type: \"image\" | \"gif\" | \"video\" | \"embed\";\n id?: string;\n url: string;\n width?: number;\n height?: number;\n thumbnailUrl?: string;\n durationSec?: number;\n variants?: MediaVariant[];\n altText?: string;\n caption?: string;\n title?: string;\n hasAudio?: boolean;\n tags?: MediaTag[];\n captions?: CaptionTrack[];\n ext?: Record<string, unknown>;\n}\ninterface Source {\n url: string;\n title?: string;\n site?: string;\n favicon?: string;\n image?: string;\n snippet?: string;\n publishedAt?: string;\n cited: boolean;\n ext?: Record<string, unknown>;\n}\ninterface Suggestion {\n text: string;\n prompt?: string;\n}\ninterface Suggestions {\n engine: \"google\" | \"bing\" | \"yahoo\" | \"duckduckgo\" | \"yandex\" | \"baidu\" | \"naver\" | \"yahoo-japan\" | \"seznam\" | \"daum\" | \"sogou\" | \"tripadvisor\";\n query: string;\n country?: string;\n lang?: string;\n suggestions: {\n text: string;\n type?: string;\n ext?: Record<string, unknown>;\n }[];\n ext?: Record<string, unknown>;\n}\ninterface SupportedFonts {\n fontsByLanguage?: Record<string, unknown>;\n defaultByLanguage?: Record<string, unknown>;\n allFonts?: string[];\n allWeights?: string[];\n supportedSourceLanguages?: string[];\n userFonts?: Record<string, unknown>[];\n}\ninterface TechnologiesResult {\n domain: string;\n technologies: Technology[];\n accounts: Technology[];\n page: CompanyPage;\n dns: Dns;\n robots?: Robots;\n}\ninterface Technology {\n name: string;\n categories: string[];\n confidence: number;\n version?: string;\n website?: string;\n evidence: Evidence[];\n}\ninterface TextRegion {\n /** The region's number, starting at 0. */\n index: number;\n /** Four corner points, in the original image's coordinates. */\n polygon: number[][];\n bbox: {\n x: number;\n y: number;\n w: number;\n h: number;\n };\n /** The text that was read. */\n text: string;\n /** Recognition confidence, 0–1. */\n confidence?: number;\n text_color?: {\n r: number;\n g: number;\n b: number;\n };\n bg_color?: {\n r: number;\n g: number;\n b: number;\n };\n /** How uneven the background is behind the text; near 0 is a flat colour. */\n bg_std?: number;\n font_weight?: string;\n /** True for text on a filled label, such as a price tag. */\n is_badge?: boolean;\n}\ninterface TranslatedRegion {\n /** The region's number, starting at 0. */\n index: number;\n /** Four corner points, in the original image's coordinates. */\n polygon: number[][];\n bbox: {\n x: number;\n y: number;\n w: number;\n h: number;\n };\n /** The text that was read. */\n text: string;\n /** Recognition confidence, 0–1. */\n confidence?: number;\n text_color?: {\n r: number;\n g: number;\n b: number;\n };\n bg_color?: {\n r: number;\n g: number;\n b: number;\n };\n /** How uneven the background is behind the text; near 0 is a flat colour. */\n bg_std?: number;\n font_weight?: string;\n /** True for text on a filled label, such as a price tag. */\n is_badge?: boolean;\n /** The translation, in target_language (the field name is historical). */\n text_kr?: string;\n}\ninterface TranslatedRegions {\n /** The image with the source text removed, as a base64 JPEG. */\n inpainted_base64: string;\n regions: TranslatedRegion[];\n regions_count?: number;\n}\ninterface TrendPoint {\n date: string;\n values: number[];\n partial?: boolean;\n noData?: boolean[];\n}\ninterface TrendRegion {\n code?: string;\n name: string;\n values: number[];\n noData?: boolean;\n coordinates?: {\n lat: number;\n lng: number;\n };\n}\ninterface TrendingItem {\n rank: number;\n query: string;\n volume?: string;\n minVolume?: number;\n growth?: string;\n startedAt?: string;\n endedAt?: string;\n active?: boolean;\n categories?: string[];\n related?: string[];\n articles?: {\n title: string;\n url: string;\n source?: string;\n date?: string;\n image?: string;\n }[];\n ext?: Record<string, unknown>;\n}\ninterface TrendingPage {\n engine: \"google-trends\";\n country: string;\n subregion?: string;\n window?: string;\n category?: number;\n lang?: string;\n items: TrendingItem[];\n fetchedAt: string;\n ext?: Record<string, unknown>;\n}\ninterface TrendsExplore {\n engine: \"google-trends\";\n terms: string[];\n country?: string;\n subregion?: string;\n timeRange: string;\n category?: number;\n property?: \"web\" | \"images\" | \"news\" | \"shopping\" | \"youtube\";\n lang?: string;\n interestOverTime?: {\n points: TrendPoint[];\n averages?: number[];\n };\n interestByRegion?: {\n resolution?: \"country\" | \"region\" | \"metro\" | \"city\";\n measure?: \"interest\" | \"share\";\n regions: TrendRegion[];\n };\n related?: Related[];\n fetchedAt: string;\n ext?: Record<string, unknown>;\n}\ninterface UnlockResult {\n /** The site's status, whatever it was: a 404 or a 500 is its answer. */\n status: number;\n /** The address that answered, after any redirects followed. */\n url: string;\n /** The site's response headers (one value a name), less the transfer framing that no longer describes the decoded body. */\n headers: Record<string, unknown>;\n /** Every Set-Cookie the site sent. */\n setCookies?: string[];\n /** The site's body: text, or base64 when `bodyEncoding` says so. */\n body: string;\n /** `text` when the content type is textual and the bytes are UTF-8; otherwise `base64` of the raw bytes. */\n bodyEncoding: \"text\" | \"base64\";\n}\ninterface Url {\n url: string;\n displayUrl?: string;\n}\ninterface Variant {\n id: string;\n productId?: string;\n name?: string;\n images?: string[];\n price?: Money;\n listPrice?: Money;\n purchaseLimit?: number;\n inStock?: boolean;\n stock?: number;\n selections: VariantSelection[];\n identifiers?: Identifiers;\n weightKg?: number;\n ext?: Ext;\n}\ninterface VariantSelection {\n optionId: string;\n valueId: string;\n optionName: string;\n valueName: string;\n}";
|
|
4
4
|
export const RETURNS = {
|
|
5
5
|
"aliexpress/search": "SearchResult",
|
|
6
6
|
"aliexpress/browse": "SearchResult",
|
|
@@ -29,6 +29,7 @@ export const RETURNS = {
|
|
|
29
29
|
"duckduckgo/search": "ResultsPage",
|
|
30
30
|
"duckduckgo/suggestions": "Suggestions",
|
|
31
31
|
"facebook/profile": "Account",
|
|
32
|
+
"facebook/profiles": "AccountPage",
|
|
32
33
|
"facebook/ads": "FacebookAdsPage",
|
|
33
34
|
"gemini/answer": "Answer",
|
|
34
35
|
"google/search": "ResultsPage",
|
|
@@ -66,6 +67,7 @@ export const RETURNS = {
|
|
|
66
67
|
"naver-ai-brief/answer": "Answer",
|
|
67
68
|
"naver-ai-tab/answer": "Answer",
|
|
68
69
|
"qwen/answer": "Answer",
|
|
70
|
+
"reader/page": "ReaderPage",
|
|
69
71
|
"reddit/profile": "Account",
|
|
70
72
|
"reddit/profiles": "AccountPage",
|
|
71
73
|
"reddit/post": "Post",
|
|
@@ -103,6 +105,7 @@ export const RETURNS = {
|
|
|
103
105
|
"tripadvisor/places": "PlacesPage",
|
|
104
106
|
"tripadvisor/place": "SerpPlace",
|
|
105
107
|
"tripadvisor/reviews": "PlaceReviewsPage",
|
|
108
|
+
"unlocker/request": "UnlockResult",
|
|
106
109
|
"walmart/search": "SearchResult",
|
|
107
110
|
"walmart/browse": "SearchResult",
|
|
108
111
|
"walmart/categories": "CategoryList",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apinoa-mcp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.21",
|
|
4
4
|
"mcpName": "io.github.apinoahq/apinoa-mcp",
|
|
5
5
|
"description": "MCP server for apinoa: marketplace products, social posts, search results and AI answers (Amazon, TikTok, Google, ChatGPT and more) for Claude Code, Codex, Cursor and any MCP client. Code mode: the model writes TypeScript against a typed client, run in a sandbox.",
|
|
6
6
|
"license": "MIT",
|