stophy 1.2.0 → 1.2.2

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.
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/errors.ts","../src/account.ts","../src/bind.ts","../src/generated/surface.gen.ts","../package.json","../src/transport.ts","../src/client.ts"],"names":["isRecord"],"mappings":";;;;;AAKO,IAAM,WAAA,GAAN,cAA0B,KAAA,CAAM;AAAA,EAC7B,IAAA;AAAA,EACA,SAAA;AAAA,EACA,iBAAA;AAAA,EACA,MAAA;AAAA,EACA,SAAA;AAAA,EAET,WAAA,CACC,SACA,OAAA,EAOC;AACD,IAAA,KAAA,CAAM,OAAO,CAAA;AACb,IAAA,IAAA,CAAK,IAAA,GAAO,aAAA;AACZ,IAAA,IAAA,CAAK,SAAS,OAAA,CAAQ,MAAA;AACtB,IAAA,IAAA,CAAK,OAAO,OAAA,CAAQ,IAAA;AACpB,IAAA,IAAA,CAAK,YAAY,OAAA,CAAQ,SAAA;AACzB,IAAA,IAAA,CAAK,oBAAoB,OAAA,CAAQ,iBAAA;AACjC,IAAA,IAAA,CAAK,YAAY,OAAA,CAAQ,SAAA;AAAA,EAC1B;AACD;;;ACQO,SAAS,MAAM,IAAA,EAA8B;AACnD,EAAA,OAAO,IAAA,CAAK,EAAE,MAAA,EAAQ,KAAA,EAAO,MAAM,WAAA,EAAa,CAAA,CAAE,IAAA,CAAK,UAAU,CAAA;AAClE;AAEO,SAAS,IAAA,CAAK,MAAc,KAAA,EAAkC;AACpE,EAAA,MAAM,SAAsD,EAAC;AAC7D,EAAA,IAAI,KAAA,EAAO,QAAA,KAAa,MAAA,EAAW,MAAA,CAAO,WAAW,KAAA,CAAM,QAAA;AAC3D,EAAA,IAAI,KAAA,EAAO,IAAA,KAAS,MAAA,EAAW,MAAA,CAAO,OAAO,KAAA,CAAM,IAAA;AACnD,EAAA,IAAI,KAAA,EAAO,QAAA,KAAa,MAAA,EAAW,MAAA,CAAO,WA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AKO,IAAM,SAAN,MAAa;AAAA,EACV,KAAA;AAAA,EAET,WAAA,CAAY,KAAA,GAA2B,EAAC,EAAG;AAC1C,IAAA,MAAM,UAAU,OAAO,KAAA,KAAU,WAAW,EAAE,MAAA,EAAQ,OAAM,GAAI,KAAA;AAChE,IAAA,MAAM,MAAA,GAAS,QAAQ,MAAA,EAAQ,IAAA,MAAU,GAAA,CAAI,gBAAgB,GAAG,IAAA,EAAK;AACrE,IAAA,IAAA,CAAK,QAAQ,YAAA,CAAa;AAAA,MACzB,GAAG,OAAA;AAAA,MACH,MAAA;AAAA,MACA,OAAA,EAAS,OAAA,CAAQ,OAAA,IAAW,GAAA,CAAI,iBAAiB;AAAA,KACjD,CAAA;AACD,IAAA,MAAA,CAAO,MAAA,CAAO,IAAA,EAAM,WAAA,CAAY,IAAA,CAAK,KAAK,CAAC,CAAA;AAAA,EAC5C;AAAA;AAAA,EAGA,KAAA,GAAwB;AACvB,IAAA,OAAO,KAAA,CAAM,KAAK,KAAK,CAAA;AAAA,EACxB;AAAA;AAAA,EAGA,KAAK,KAAA,EAAkC;AACtC,IAAA,OAAO,IAAA,CAAK,IAAA,CAAK,KAAA,EAAO,KAAK,CAAA;AAAA,EAC9B;AACD","file":"index.cjs","sourcesContent":["import type { _Error } from \"./generated/types.gen\";\n\nexport type StophyErrorCode = _Error[\"error\"][\"code\"];\n\n/** Thrown when the Stophy API responds with a non-success status. */\nexport class StophyError extends Error {\n\treadonly code?: string;\n\treadonly retryable: boolean;\n\treadonly retryAfterSeconds?: number;\n\treadonly status: number;\n\treadonly requestId?: string;\n\n\tconstructor(\n\t\tmessage: string,\n\t\toptions: {\n\t\t\tstatus: number;\n\t\t\tcode?: string;\n\t\t\tretryable: boolean;\n\t\t\tretryAfterSeconds?: number;\n\t\t\trequestId?: string;\n\t\t},\n\t) {\n\t\tsuper(message);\n\t\tthis.name = \"StophyError\";\n\t\tthis.status = options.status;\n\t\tthis.code = options.code;\n\t\tthis.retryable = options.retryable;\n\t\tthis.retryAfterSeconds = options.retryAfterSeconds;\n\t\tthis.requestId = options.requestId;\n\t}\n}\n","import { StophyError } from \"./errors\";\nimport type { Caller } from \"./transport\";\n\nexport interface Usage {\n\tbalanceMicros: number;\n\tcreditsUsed: number;\n\trequestCount: number;\n}\n\nexport interface LogEntry {\n\tapiKeyId: string | null;\n\tapiKeyName: string | null;\n\tcreatedAt: string;\n\tcredits: number;\n\tdurationMs: number | null;\n\tendpoint: string;\n\tid: string;\n\tmethod: string;\n\tresponse: string;\n\tstatus: number;\n}\n\nexport interface Logs {\n\tendpoints: string[];\n\tlogs: LogEntry[];\n\tpage: number;\n\tpageSize: number;\n\ttotal: number;\n\ttotalPages: number;\n}\n\nexport interface LogsQuery {\n\tapiKeyId?: string;\n\tdays?: number;\n\tendpoint?: string;\n\tpage?: number;\n}\n\nexport function usage(call: Caller): Promise<Usage> {\n\treturn call({ method: \"GET\", path: \"/v1/usage\" }).then(parseUsage);\n}\n\nexport function logs(call: Caller, query?: LogsQuery): Promise<Logs> {\n\tconst params: Record<string, string | number | undefined> = {};\n\tif (query?.apiKeyId !== undefined) params.apiKeyId = query.apiKeyId;\n\tif (query?.days !== undefined) params.days = query.days;\n\tif (query?.endpoint !== undefined) params.endpoint = query.endpoint;\n\tif (query?.page !== undefined) params.page = query.page;\n\treturn call({ method: \"GET\", path: \"/v1/logs\", query: params }).then(\n\t\tparseLogs,\n\t);\n}\n\nfunction parseUsage(value: unknown): Usage {\n\tif (!isRecord(value)) return unexpected(\"usage\");\n\tconst balanceMicros = numberField(value, \"balanceMicros\");\n\tconst creditsUsed = numberField(value, \"creditsUsed\");\n\tconst requestCount = numberField(value, \"requestCount\");\n\treturn { balanceMicros, creditsUsed, requestCount };\n}\n\nfunction parseLogs(value: unknown): Logs {\n\tif (\n\t\t!isRecord(value) ||\n\t\t!Array.isArray(value.logs) ||\n\t\t!Array.isArray(value.endpoints)\n\t) {\n\t\treturn unexpected(\"logs\");\n\t}\n\treturn {\n\t\tendpoints: value.endpoints.map((item) => {\n\t\t\tif (typeof item !== \"string\") return unexpected(\"logs.endpoints\");\n\t\t\treturn item;\n\t\t}),\n\t\tlogs: value.logs.map(parseLog),\n\t\tpage: numberField(value, \"page\"),\n\t\tpageSize: numberField(value, \"pageSize\"),\n\t\ttotal: numberField(value, \"total\"),\n\t\ttotalPages: numberField(value, \"totalPages\"),\n\t};\n}\n\nfunction parseLog(value: unknown): LogEntry {\n\tif (!isRecord(value)) return unexpected(\"logs.logs\");\n\treturn {\n\t\tapiKeyId: stringOrNull(value, \"apiKeyId\"),\n\t\tapiKeyName: stringOrNull(value, \"apiKeyName\"),\n\t\tcreatedAt: stringField(value, \"createdAt\"),\n\t\tcredits: numberField(value, \"credits\"),\n\t\tdurationMs: numberOrNull(value, \"durationMs\"),\n\t\tendpoint: stringField(value, \"endpoint\"),\n\t\tid: stringField(value, \"id\"),\n\t\tmethod: stringField(value, \"method\"),\n\t\tresponse: stringField(value, \"response\"),\n\t\tstatus: numberField(value, \"status\"),\n\t};\n}\n\nfunction numberField(record: Record<string, unknown>, field: string): number {\n\tconst value = record[field];\n\tif (typeof value !== \"number\") return unexpected(field);\n\treturn value;\n}\n\nfunction numberOrNull(\n\trecord: Record<string, unknown>,\n\tfield: string,\n): number | null {\n\tconst value = record[field];\n\tif (value === null) return null;\n\tif (typeof value !== \"number\") return unexpected(field);\n\treturn value;\n}\n\nfunction stringField(record: Record<string, unknown>, field: string): string {\n\tconst value = record[field];\n\tif (typeof value !== \"string\") return unexpected(field);\n\treturn value;\n}\n\nfunction stringOrNull(\n\trecord: Record<string, unknown>,\n\tfield: string,\n): string | null {\n\tconst value = record[field];\n\tif (value === null) return null;\n\tif (typeof value !== \"string\") return unexpected(field);\n\treturn value;\n}\n\nfunction unexpected(field: string): never {\n\tthrow new StophyError(`Stophy returned an unexpected ${field}`, {\n\t\tstatus: 200,\n\t\tretryable: false,\n\t});\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n\treturn typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\n","import type { Caller } from \"./transport\";\n\nexport interface RequestOptions {\n\tsignal?: AbortSignal;\n}\n\nexport function post<Body, Response>(path: string, call: Caller) {\n\treturn (body: Body, options?: RequestOptions): Promise<Response> =>\n\t\tcall({ method: \"POST\", path, body, options }) as Promise<Response>;\n}\n\nexport function postOptional<Body, Response>(path: string, call: Caller) {\n\treturn (body?: Body, options?: RequestOptions): Promise<Response> =>\n\t\tcall({\n\t\t\tmethod: \"POST\",\n\t\t\tpath,\n\t\t\tbody: body ?? {},\n\t\t\toptions,\n\t\t}) as Promise<Response>;\n}\n\nexport function get<Response>(path: string, call: Caller) {\n\treturn (options?: RequestOptions): Promise<Response> =>\n\t\tcall({ method: \"GET\", path, options }) as Promise<Response>;\n}\n","// Generated by scripts/gen-surface.ts. Do not edit.\n\nimport { get, post, postOptional } from \"../bind\";\nimport type {\n\tAirbnbListingData,\n\tAirbnbListingResponse,\n\tAirbnbReviewsData,\n\tAirbnbReviewsResponse,\n\tAirbnbSearchData,\n\tAirbnbSearchResponse,\n\tAmazonBestsellersData,\n\tAmazonBestsellersResponse,\n\tAmazonProductData,\n\tAmazonProductResponse,\n\tAmazonReviewsData,\n\tAmazonReviewsResponse,\n\tAmazonSearchData,\n\tAmazonSearchResponse,\n\tAmazonSuggestData,\n\tAmazonSuggestResponse,\n\tAppstoreAppData,\n\tAppstoreAppResponse,\n\tAppstoreReviewsData,\n\tAppstoreReviewsResponse,\n\tAppstoreSearchData,\n\tAppstoreSearchResponse,\n\tAppstoreTopData,\n\tAppstoreTopResponse,\n\tBookingHotelData,\n\tBookingHotelResponse,\n\tBookingHotelReviewsData,\n\tBookingHotelReviewsResponse,\n\tBookingSearchData,\n\tBookingSearchResponse,\n\tCareersJobData,\n\tCareersJobResponse,\n\tCareersJobsData,\n\tCareersJobsResponse,\n\tChatgptSearchData,\n\tChatgptSearchResponse,\n\tCraigslistSearchData,\n\tCraigslistSearchResponse,\n\tEbayItemData,\n\tEbayItemResponse,\n\tEbaySearchData,\n\tEbaySearchResponse,\n\tExpediaHotelsData,\n\tExpediaHotelsResponse,\n\tFacebookMarketplaceSearchData,\n\tFacebookMarketplaceSearchResponse,\n\tFacebookPageData,\n\tFacebookPagePostsData,\n\tFacebookPagePostsResponse,\n\tFacebookPageResponse,\n\tFacebookPostCommentsData,\n\tFacebookPostCommentsResponse,\n\tFacebookPostData,\n\tFacebookPostResponse,\n\tGeminiSearchData,\n\tGeminiSearchResponse,\n\tGlassdoorCompanyData,\n\tGlassdoorCompanyResponse,\n\tGlassdoorCompanyReviewsData,\n\tGlassdoorCompanyReviewsResponse,\n\tGlassdoorCompanySalariesData,\n\tGlassdoorCompanySalariesResponse,\n\tGoogleAdsAdData,\n\tGoogleAdsAdResponse,\n\tGoogleAdsAdvertisersData,\n\tGoogleAdsAdvertisersResponse,\n\tGoogleAdsSearchData,\n\tGoogleAdsSearchResponse,\n\tGoogleFlightsData,\n\tGoogleFlightsResponse,\n\tGoogleHotelsData,\n\tGoogleHotelsResponse,\n\tGoogleImagesData,\n\tGoogleImagesResponse,\n\tGoogleMapsPlaceData,\n\tGoogleMapsPlaceResponse,\n\tGoogleMapsReviewsData,\n\tGoogleMapsReviewsResponse,\n\tGoogleMapsSearchData,\n\tGoogleMapsSearchResponse,\n\tGoogleNewsData,\n\tGoogleNewsResponse,\n\tGooglePatentsData,\n\tGooglePatentsResponse,\n\tGooglePlayAppData,\n\tGooglePlayAppResponse,\n\tGooglePlayReviewsData,\n\tGooglePlayReviewsResponse,\n\tGooglePlaySearchData,\n\tGooglePlaySearchResponse,\n\tGoogleScholarData,\n\tGoogleScholarResponse,\n\tGoogleSearchData,\n\tGoogleSearchResponse,\n\tGoogleSuggestData,\n\tGoogleSuggestResponse,\n\tGoogleTrendsInterestData,\n\tGoogleTrendsInterestResponse,\n\tGoogleTrendsRegionsData,\n\tGoogleTrendsRegionsResponse,\n\tGoogleTrendsRelatedData,\n\tGoogleTrendsRelatedResponse,\n\tGoogleTrendsTrendingData,\n\tGoogleTrendsTrendingResponse,\n\tIndeedJobData,\n\tIndeedJobResponse,\n\tIndeedSearchData,\n\tIndeedSearchResponse,\n\tInstagramCommentsData,\n\tInstagramCommentsResponse,\n\tInstagramPostData,\n\tInstagramPostResponse,\n\tInstagramProfileData,\n\tInstagramProfileReelsData,\n\tInstagramProfileReelsResponse,\n\tInstagramProfileResponse,\n\tInstagramTranscriptData,\n\tInstagramTranscriptResponse,\n\tLinkedinAdsAdData,\n\tLinkedinAdsAdResponse,\n\tLinkedinAdsSearchData,\n\tLinkedinAdsSearchResponse,\n\tLinkedinCompanyData,\n\tLinkedinCompanyResponse,\n\tLinkedinJobsJobData,\n\tLinkedinJobsJobResponse,\n\tLinkedinJobsSearchData,\n\tLinkedinJobsSearchResponse,\n\tLinkedinPostsData,\n\tLinkedinPostsResponse,\n\tLinkedinProfileData,\n\tLinkedinProfileResponse,\n\tListEndpointsResponse,\n\tLumaEventData,\n\tLumaEventResponse,\n\tLumaEventsData,\n\tLumaEventsResponse,\n\tMetaAdsAdData,\n\tMetaAdsAdResponse,\n\tMetaAdsPageData,\n\tMetaAdsPageResponse,\n\tMetaAdsSearchData,\n\tMetaAdsSearchResponse,\n\tPinterestBoardData,\n\tPinterestBoardResponse,\n\tPinterestPinData,\n\tPinterestPinResponse,\n\tPinterestProfileData,\n\tPinterestProfileResponse,\n\tPinterestSearchData,\n\tPinterestSearchResponse,\n\tRealtorPropertyData,\n\tRealtorPropertyResponse,\n\tRealtorSearchData,\n\tRealtorSearchResponse,\n\tRedditDiscussionsData,\n\tRedditDiscussionsResponse,\n\tRedditPostData,\n\tRedditPostResponse,\n\tRedditSearchData,\n\tRedditSearchResponse,\n\tRedditSubredditData,\n\tRedditSubredditResponse,\n\tRedditSubredditsData,\n\tRedditSubredditsResponse,\n\tRedditUserData,\n\tRedditUserResponse,\n\tThreadsPostData,\n\tThreadsPostResponse,\n\tThreadsProfileData,\n\tThreadsProfilePostsData,\n\tThreadsProfilePostsResponse,\n\tThreadsProfileResponse,\n\tTiktokAdsAdData,\n\tTiktokAdsAdResponse,\n\tTiktokAdsSearchData,\n\tTiktokAdsSearchResponse,\n\tTiktokCommentsData,\n\tTiktokCommentsResponse,\n\tTiktokHashtagData,\n\tTiktokHashtagResponse,\n\tTiktokProfileData,\n\tTiktokProfileResponse,\n\tTiktokSearchData,\n\tTiktokSearchResponse,\n\tTiktokShopProductData,\n\tTiktokShopProductResponse,\n\tTiktokShopProductsData,\n\tTiktokShopProductsResponse,\n\tTiktokShopReviewsData,\n\tTiktokShopReviewsResponse,\n\tTiktokShopSearchData,\n\tTiktokShopSearchResponse,\n\tTiktokSoundData,\n\tTiktokSoundResponse,\n\tTiktokTranscriptData,\n\tTiktokTranscriptResponse,\n\tTiktokVideoData,\n\tTiktokVideoResponse,\n\tTripadvisorPlaceData,\n\tTripadvisorPlaceResponse,\n\tTripadvisorReviewsData,\n\tTripadvisorReviewsResponse,\n\tTripadvisorSearchData,\n\tTripadvisorSearchResponse,\n\tTrustpilotCompanyData,\n\tTrustpilotCompanyResponse,\n\tTrustpilotCompanyReviewsData,\n\tTrustpilotCompanyReviewsResponse,\n\tTrustpilotSearchData,\n\tTrustpilotSearchResponse,\n\tUpworkJobData,\n\tUpworkJobResponse,\n\tUpworkSearchData,\n\tUpworkSearchResponse,\n\tWebBatchCancelData,\n\tWebBatchCancelResponse,\n\tWebBatchData,\n\tWebBatchResponse,\n\tWebBatchStatusData,\n\tWebBatchStatusResponse,\n\tWebContactsData,\n\tWebContactsResponse,\n\tWebCrawlCancelData,\n\tWebCrawlCancelResponse,\n\tWebCrawlData,\n\tWebCrawlResponse,\n\tWebCrawlStartData,\n\tWebCrawlStartResponse,\n\tWebCrawlStatusData,\n\tWebCrawlStatusResponse,\n\tWebImagesData,\n\tWebImagesResponse,\n\tWebMapData,\n\tWebMapResponse,\n\tWebNewsData,\n\tWebNewsResponse,\n\tWebParseData,\n\tWebParseResponse,\n\tWebScrapeData,\n\tWebScrapeResponse,\n\tWebSearchData,\n\tWebSearchResponse,\n\tXPostData,\n\tXPostResponse,\n\tXProfileData,\n\tXProfilePostsData,\n\tXProfilePostsResponse,\n\tXProfileResponse,\n\tYelpBusinessData,\n\tYelpBusinessResponse,\n\tYelpBusinessReviewsData,\n\tYelpBusinessReviewsResponse,\n\tYelpSearchData,\n\tYelpSearchResponse,\n\tYoutubeChannelData,\n\tYoutubeChannelResponse,\n\tYoutubeCommentsData,\n\tYoutubeCommentsResponse,\n\tYoutubePlaylistData,\n\tYoutubePlaylistResponse,\n\tYoutubePostData,\n\tYoutubePostResponse,\n\tYoutubeSearchData,\n\tYoutubeSearchResponse,\n\tYoutubeSuggestData,\n\tYoutubeSuggestResponse,\n\tYoutubeTranscriptData,\n\tYoutubeTranscriptResponse,\n\tYoutubeVideoData,\n\tYoutubeVideoResponse,\n\tZillowPropertyData,\n\tZillowPropertyResponse,\n\tZillowSearchData,\n\tZillowSearchResponse,\n} from \"./types.gen\";\nimport type { Caller } from \"../transport\";\n\nexport function bindSurface(call: Caller) {\n\treturn {\n\t\tendpoints: get<ListEndpointsResponse>(\"/v1/endpoints\", call),\n\t\tgoogle: {\n\t\t\tsearch: post<GoogleSearchData[\"body\"], GoogleSearchResponse>(\"/v1/google/search\", call),\n\t\t\tnews: postOptional<GoogleNewsData[\"body\"], GoogleNewsResponse>(\"/v1/google/news\", call),\n\t\t\timages: post<GoogleImagesData[\"body\"], GoogleImagesResponse>(\"/v1/google/images\", call),\n\t\t\tsuggest: post<GoogleSuggestData[\"body\"], GoogleSuggestResponse>(\"/v1/google/suggest\", call),\n\t\t\tads: {\n\t\t\t\tsearch: postOptional<GoogleAdsSearchData[\"body\"], GoogleAdsSearchResponse>(\"/v1/google/ads/search\", call),\n\t\t\t\tad: postOptional<GoogleAdsAdData[\"body\"], GoogleAdsAdResponse>(\"/v1/google/ads/ad\", call),\n\t\t\t\tadvertisers: post<GoogleAdsAdvertisersData[\"body\"], GoogleAdsAdvertisersResponse>(\"/v1/google/ads/advertisers\", call),\n\t\t\t},\n\t\t\tscholar: postOptional<GoogleScholarData[\"body\"], GoogleScholarResponse>(\"/v1/google/scholar\", call),\n\t\t\tpatents: postOptional<GooglePatentsData[\"body\"], GooglePatentsResponse>(\"/v1/google/patents\", call),\n\t\t\tmaps: {\n\t\t\t\tsearch: post<GoogleMapsSearchData[\"body\"], GoogleMapsSearchResponse>(\"/v1/google/maps/search\", call),\n\t\t\t\tplace: postOptional<GoogleMapsPlaceData[\"body\"], GoogleMapsPlaceResponse>(\"/v1/google/maps/place\", call),\n\t\t\t\treviews: postOptional<GoogleMapsReviewsData[\"body\"], GoogleMapsReviewsResponse>(\"/v1/google/maps/reviews\", call),\n\t\t\t},\n\t\t\ttrends: {\n\t\t\t\trelated: post<GoogleTrendsRelatedData[\"body\"], GoogleTrendsRelatedResponse>(\"/v1/google/trends/related\", call),\n\t\t\t\ttrending: postOptional<GoogleTrendsTrendingData[\"body\"], GoogleTrendsTrendingResponse>(\"/v1/google/trends/trending\", call),\n\t\t\t\tinterest: post<GoogleTrendsInterestData[\"body\"], GoogleTrendsInterestResponse>(\"/v1/google/trends/interest\", call),\n\t\t\t\tregions: post<GoogleTrendsRegionsData[\"body\"], GoogleTrendsRegionsResponse>(\"/v1/google/trends/regions\", call),\n\t\t\t},\n\t\t\tflights: post<GoogleFlightsData[\"body\"], GoogleFlightsResponse>(\"/v1/google/flights\", call),\n\t\t\thotels: post<GoogleHotelsData[\"body\"], GoogleHotelsResponse>(\"/v1/google/hotels\", call),\n\t\t\tplay: {\n\t\t\t\tapp: postOptional<GooglePlayAppData[\"body\"], GooglePlayAppResponse>(\"/v1/google/play/app\", call),\n\t\t\t\tsearch: post<GooglePlaySearchData[\"body\"], GooglePlaySearchResponse>(\"/v1/google/play/search\", call),\n\t\t\t\treviews: postOptional<GooglePlayReviewsData[\"body\"], GooglePlayReviewsResponse>(\"/v1/google/play/reviews\", call),\n\t\t\t},\n\t\t},\n\t\tweb: {\n\t\t\tsearch: post<WebSearchData[\"body\"], WebSearchResponse>(\"/v1/web/search\", call),\n\t\t\tnews: post<WebNewsData[\"body\"], WebNewsResponse>(\"/v1/web/news\", call),\n\t\t\timages: post<WebImagesData[\"body\"], WebImagesResponse>(\"/v1/web/images\", call),\n\t\t\tscrape: postOptional<WebScrapeData[\"body\"], WebScrapeResponse>(\"/v1/web/scrape\", call),\n\t\t\tparse: post<WebParseData[\"body\"], WebParseResponse>(\"/v1/web/parse\", call),\n\t\t\tmap: post<WebMapData[\"body\"], WebMapResponse>(\"/v1/web/map\", call),\n\t\t\tcontacts: post<WebContactsData[\"body\"], WebContactsResponse>(\"/v1/web/contacts\", call),\n\t\t\tcrawl: Object.assign(post<WebCrawlData[\"body\"], WebCrawlResponse>(\"/v1/web/crawl\", call), {\n\t\t\t\t\tstart: post<WebCrawlStartData[\"body\"], WebCrawlStartResponse>(\"/v1/web/crawl/start\", call),\n\t\t\t\t\tstatus: post<WebCrawlStatusData[\"body\"], WebCrawlStatusResponse>(\"/v1/web/crawl/status\", call),\n\t\t\t\t\tcancel: post<WebCrawlCancelData[\"body\"], WebCrawlCancelResponse>(\"/v1/web/crawl/cancel\", call),\n\t\t\t\t}),\n\t\t\tbatch: Object.assign(post<WebBatchData[\"body\"], WebBatchResponse>(\"/v1/web/batch\", call), {\n\t\t\t\t\tstatus: post<WebBatchStatusData[\"body\"], WebBatchStatusResponse>(\"/v1/web/batch/status\", call),\n\t\t\t\t\tcancel: post<WebBatchCancelData[\"body\"], WebBatchCancelResponse>(\"/v1/web/batch/cancel\", call),\n\t\t\t\t}),\n\t\t},\n\t\tyoutube: {\n\t\t\tsuggest: post<YoutubeSuggestData[\"body\"], YoutubeSuggestResponse>(\"/v1/youtube/suggest\", call),\n\t\t\tsearch: post<YoutubeSearchData[\"body\"], YoutubeSearchResponse>(\"/v1/youtube/search\", call),\n\t\t\ttranscript: postOptional<YoutubeTranscriptData[\"body\"], YoutubeTranscriptResponse>(\"/v1/youtube/transcript\", call),\n\t\t\tvideo: postOptional<YoutubeVideoData[\"body\"], YoutubeVideoResponse>(\"/v1/youtube/video\", call),\n\t\t\tcomments: postOptional<YoutubeCommentsData[\"body\"], YoutubeCommentsResponse>(\"/v1/youtube/comments\", call),\n\t\t\tchannel: postOptional<YoutubeChannelData[\"body\"], YoutubeChannelResponse>(\"/v1/youtube/channel\", call),\n\t\t\tpost: postOptional<YoutubePostData[\"body\"], YoutubePostResponse>(\"/v1/youtube/post\", call),\n\t\t\tplaylist: postOptional<YoutubePlaylistData[\"body\"], YoutubePlaylistResponse>(\"/v1/youtube/playlist\", call),\n\t\t},\n\t\treddit: {\n\t\t\tsearch: post<RedditSearchData[\"body\"], RedditSearchResponse>(\"/v1/reddit/search\", call),\n\t\t\tpost: postOptional<RedditPostData[\"body\"], RedditPostResponse>(\"/v1/reddit/post\", call),\n\t\t\tsubreddit: post<RedditSubredditData[\"body\"], RedditSubredditResponse>(\"/v1/reddit/subreddit\", call),\n\t\t\tuser: postOptional<RedditUserData[\"body\"], RedditUserResponse>(\"/v1/reddit/user\", call),\n\t\t\tdiscussions: postOptional<RedditDiscussionsData[\"body\"], RedditDiscussionsResponse>(\"/v1/reddit/discussions\", call),\n\t\t\tsubreddits: postOptional<RedditSubredditsData[\"body\"], RedditSubredditsResponse>(\"/v1/reddit/subreddits\", call),\n\t\t},\n\t\tinstagram: {\n\t\t\tcomments: postOptional<InstagramCommentsData[\"body\"], InstagramCommentsResponse>(\"/v1/instagram/comments\", call),\n\t\t\tpost: postOptional<InstagramPostData[\"body\"], InstagramPostResponse>(\"/v1/instagram/post\", call),\n\t\t\tprofile: Object.assign(postOptional<InstagramProfileData[\"body\"], InstagramProfileResponse>(\"/v1/instagram/profile\", call), {\n\t\t\t\t\treels: postOptional<InstagramProfileReelsData[\"body\"], InstagramProfileReelsResponse>(\"/v1/instagram/profile/reels\", call),\n\t\t\t\t}),\n\t\t\ttranscript: postOptional<InstagramTranscriptData[\"body\"], InstagramTranscriptResponse>(\"/v1/instagram/transcript\", call),\n\t\t},\n\t\ttiktok: {\n\t\t\tprofile: postOptional<TiktokProfileData[\"body\"], TiktokProfileResponse>(\"/v1/tiktok/profile\", call),\n\t\t\tvideo: postOptional<TiktokVideoData[\"body\"], TiktokVideoResponse>(\"/v1/tiktok/video\", call),\n\t\t\thashtag: post<TiktokHashtagData[\"body\"], TiktokHashtagResponse>(\"/v1/tiktok/hashtag\", call),\n\t\t\tsound: post<TiktokSoundData[\"body\"], TiktokSoundResponse>(\"/v1/tiktok/sound\", call),\n\t\t\tcomments: postOptional<TiktokCommentsData[\"body\"], TiktokCommentsResponse>(\"/v1/tiktok/comments\", call),\n\t\t\tsearch: post<TiktokSearchData[\"body\"], TiktokSearchResponse>(\"/v1/tiktok/search\", call),\n\t\t\ttranscript: postOptional<TiktokTranscriptData[\"body\"], TiktokTranscriptResponse>(\"/v1/tiktok/transcript\", call),\n\t\t\tads: {\n\t\t\t\tsearch: postOptional<TiktokAdsSearchData[\"body\"], TiktokAdsSearchResponse>(\"/v1/tiktok/ads/search\", call),\n\t\t\t\tad: postOptional<TiktokAdsAdData[\"body\"], TiktokAdsAdResponse>(\"/v1/tiktok/ads/ad\", call),\n\t\t\t},\n\t\t\tshop: {\n\t\t\t\tsearch: post<TiktokShopSearchData[\"body\"], TiktokShopSearchResponse>(\"/v1/tiktok/shop/search\", call),\n\t\t\t\tproducts: postOptional<TiktokShopProductsData[\"body\"], TiktokShopProductsResponse>(\"/v1/tiktok/shop/products\", call),\n\t\t\t\tproduct: postOptional<TiktokShopProductData[\"body\"], TiktokShopProductResponse>(\"/v1/tiktok/shop/product\", call),\n\t\t\t\treviews: postOptional<TiktokShopReviewsData[\"body\"], TiktokShopReviewsResponse>(\"/v1/tiktok/shop/reviews\", call),\n\t\t\t},\n\t\t},\n\t\tmeta: {\n\t\t\tads: {\n\t\t\t\tpage: post<MetaAdsPageData[\"body\"], MetaAdsPageResponse>(\"/v1/meta/ads/page\", call),\n\t\t\t\tsearch: post<MetaAdsSearchData[\"body\"], MetaAdsSearchResponse>(\"/v1/meta/ads/search\", call),\n\t\t\t\tad: postOptional<MetaAdsAdData[\"body\"], MetaAdsAdResponse>(\"/v1/meta/ads/ad\", call),\n\t\t\t},\n\t\t},\n\t\tlinkedin: {\n\t\t\tjobs: {\n\t\t\t\tsearch: postOptional<LinkedinJobsSearchData[\"body\"], LinkedinJobsSearchResponse>(\"/v1/linkedin/jobs/search\", call),\n\t\t\t\tjob: postOptional<LinkedinJobsJobData[\"body\"], LinkedinJobsJobResponse>(\"/v1/linkedin/jobs/job\", call),\n\t\t\t},\n\t\t\tcompany: postOptional<LinkedinCompanyData[\"body\"], LinkedinCompanyResponse>(\"/v1/linkedin/company\", call),\n\t\t\tprofile: postOptional<LinkedinProfileData[\"body\"], LinkedinProfileResponse>(\"/v1/linkedin/profile\", call),\n\t\t\tposts: postOptional<LinkedinPostsData[\"body\"], LinkedinPostsResponse>(\"/v1/linkedin/posts\", call),\n\t\t\tads: {\n\t\t\t\tsearch: postOptional<LinkedinAdsSearchData[\"body\"], LinkedinAdsSearchResponse>(\"/v1/linkedin/ads/search\", call),\n\t\t\t\tad: postOptional<LinkedinAdsAdData[\"body\"], LinkedinAdsAdResponse>(\"/v1/linkedin/ads/ad\", call),\n\t\t\t},\n\t\t},\n\t\tzillow: {\n\t\t\tsearch: post<ZillowSearchData[\"body\"], ZillowSearchResponse>(\"/v1/zillow/search\", call),\n\t\t\tproperty: postOptional<ZillowPropertyData[\"body\"], ZillowPropertyResponse>(\"/v1/zillow/property\", call),\n\t\t},\n\t\trealtor: {\n\t\t\tsearch: post<RealtorSearchData[\"body\"], RealtorSearchResponse>(\"/v1/realtor/search\", call),\n\t\t\tproperty: postOptional<RealtorPropertyData[\"body\"], RealtorPropertyResponse>(\"/v1/realtor/property\", call),\n\t\t},\n\t\tcraigslist: {\n\t\t\tsearch: post<CraigslistSearchData[\"body\"], CraigslistSearchResponse>(\"/v1/craigslist/search\", call),\n\t\t},\n\t\tluma: {\n\t\t\tevents: post<LumaEventsData[\"body\"], LumaEventsResponse>(\"/v1/luma/events\", call),\n\t\t\tevent: post<LumaEventData[\"body\"], LumaEventResponse>(\"/v1/luma/event\", call),\n\t\t},\n\t\tupwork: {\n\t\t\tsearch: postOptional<UpworkSearchData[\"body\"], UpworkSearchResponse>(\"/v1/upwork/search\", call),\n\t\t\tjob: postOptional<UpworkJobData[\"body\"], UpworkJobResponse>(\"/v1/upwork/job\", call),\n\t\t},\n\t\tindeed: {\n\t\t\tsearch: postOptional<IndeedSearchData[\"body\"], IndeedSearchResponse>(\"/v1/indeed/search\", call),\n\t\t\tjob: postOptional<IndeedJobData[\"body\"], IndeedJobResponse>(\"/v1/indeed/job\", call),\n\t\t},\n\t\tcareers: {\n\t\t\tjobs: post<CareersJobsData[\"body\"], CareersJobsResponse>(\"/v1/careers/jobs\", call),\n\t\t\tjob: post<CareersJobData[\"body\"], CareersJobResponse>(\"/v1/careers/job\", call),\n\t\t},\n\t\tglassdoor: {\n\t\t\tcompany: Object.assign(postOptional<GlassdoorCompanyData[\"body\"], GlassdoorCompanyResponse>(\"/v1/glassdoor/company\", call), {\n\t\t\t\t\treviews: postOptional<GlassdoorCompanyReviewsData[\"body\"], GlassdoorCompanyReviewsResponse>(\"/v1/glassdoor/company/reviews\", call),\n\t\t\t\t\tsalaries: postOptional<GlassdoorCompanySalariesData[\"body\"], GlassdoorCompanySalariesResponse>(\"/v1/glassdoor/company/salaries\", call),\n\t\t\t\t}),\n\t\t},\n\t\ttripadvisor: {\n\t\t\tsearch: post<TripadvisorSearchData[\"body\"], TripadvisorSearchResponse>(\"/v1/tripadvisor/search\", call),\n\t\t\tplace: postOptional<TripadvisorPlaceData[\"body\"], TripadvisorPlaceResponse>(\"/v1/tripadvisor/place\", call),\n\t\t\treviews: postOptional<TripadvisorReviewsData[\"body\"], TripadvisorReviewsResponse>(\"/v1/tripadvisor/reviews\", call),\n\t\t},\n\t\tyelp: {\n\t\t\tsearch: post<YelpSearchData[\"body\"], YelpSearchResponse>(\"/v1/yelp/search\", call),\n\t\t\tbusiness: Object.assign(postOptional<YelpBusinessData[\"body\"], YelpBusinessResponse>(\"/v1/yelp/business\", call), {\n\t\t\t\t\treviews: postOptional<YelpBusinessReviewsData[\"body\"], YelpBusinessReviewsResponse>(\"/v1/yelp/business/reviews\", call),\n\t\t\t\t}),\n\t\t},\n\t\tbooking: {\n\t\t\tsearch: post<BookingSearchData[\"body\"], BookingSearchResponse>(\"/v1/booking/search\", call),\n\t\t\thotel: Object.assign(postOptional<BookingHotelData[\"body\"], BookingHotelResponse>(\"/v1/booking/hotel\", call), {\n\t\t\t\t\treviews: postOptional<BookingHotelReviewsData[\"body\"], BookingHotelReviewsResponse>(\"/v1/booking/hotel/reviews\", call),\n\t\t\t\t}),\n\t\t},\n\t\texpedia: {\n\t\t\thotels: post<ExpediaHotelsData[\"body\"], ExpediaHotelsResponse>(\"/v1/expedia/hotels\", call),\n\t\t},\n\t\tamazon: {\n\t\t\tsearch: postOptional<AmazonSearchData[\"body\"], AmazonSearchResponse>(\"/v1/amazon/search\", call),\n\t\t\tproduct: postOptional<AmazonProductData[\"body\"], AmazonProductResponse>(\"/v1/amazon/product\", call),\n\t\t\treviews: postOptional<AmazonReviewsData[\"body\"], AmazonReviewsResponse>(\"/v1/amazon/reviews\", call),\n\t\t\tbestsellers: post<AmazonBestsellersData[\"body\"], AmazonBestsellersResponse>(\"/v1/amazon/bestsellers\", call),\n\t\t\tsuggest: post<AmazonSuggestData[\"body\"], AmazonSuggestResponse>(\"/v1/amazon/suggest\", call),\n\t\t},\n\t\tappstore: {\n\t\t\tapp: postOptional<AppstoreAppData[\"body\"], AppstoreAppResponse>(\"/v1/appstore/app\", call),\n\t\t\tsearch: post<AppstoreSearchData[\"body\"], AppstoreSearchResponse>(\"/v1/appstore/search\", call),\n\t\t\treviews: postOptional<AppstoreReviewsData[\"body\"], AppstoreReviewsResponse>(\"/v1/appstore/reviews\", call),\n\t\t\ttop: postOptional<AppstoreTopData[\"body\"], AppstoreTopResponse>(\"/v1/appstore/top\", call),\n\t\t},\n\t\tpinterest: {\n\t\t\tsearch: post<PinterestSearchData[\"body\"], PinterestSearchResponse>(\"/v1/pinterest/search\", call),\n\t\t\tpin: postOptional<PinterestPinData[\"body\"], PinterestPinResponse>(\"/v1/pinterest/pin\", call),\n\t\t\tboard: post<PinterestBoardData[\"body\"], PinterestBoardResponse>(\"/v1/pinterest/board\", call),\n\t\t\tprofile: postOptional<PinterestProfileData[\"body\"], PinterestProfileResponse>(\"/v1/pinterest/profile\", call),\n\t\t},\n\t\tx: {\n\t\t\tprofile: Object.assign(postOptional<XProfileData[\"body\"], XProfileResponse>(\"/v1/x/profile\", call), {\n\t\t\t\t\tposts: postOptional<XProfilePostsData[\"body\"], XProfilePostsResponse>(\"/v1/x/profile/posts\", call),\n\t\t\t\t}),\n\t\t\tpost: postOptional<XPostData[\"body\"], XPostResponse>(\"/v1/x/post\", call),\n\t\t},\n\t\tthreads: {\n\t\t\tprofile: Object.assign(postOptional<ThreadsProfileData[\"body\"], ThreadsProfileResponse>(\"/v1/threads/profile\", call), {\n\t\t\t\t\tposts: postOptional<ThreadsProfilePostsData[\"body\"], ThreadsProfilePostsResponse>(\"/v1/threads/profile/posts\", call),\n\t\t\t\t}),\n\t\t\tpost: postOptional<ThreadsPostData[\"body\"], ThreadsPostResponse>(\"/v1/threads/post\", call),\n\t\t},\n\t\ttrustpilot: {\n\t\t\tcompany: Object.assign(postOptional<TrustpilotCompanyData[\"body\"], TrustpilotCompanyResponse>(\"/v1/trustpilot/company\", call), {\n\t\t\t\t\treviews: postOptional<TrustpilotCompanyReviewsData[\"body\"], TrustpilotCompanyReviewsResponse>(\"/v1/trustpilot/company/reviews\", call),\n\t\t\t\t}),\n\t\t\tsearch: post<TrustpilotSearchData[\"body\"], TrustpilotSearchResponse>(\"/v1/trustpilot/search\", call),\n\t\t},\n\t\tebay: {\n\t\t\tsearch: post<EbaySearchData[\"body\"], EbaySearchResponse>(\"/v1/ebay/search\", call),\n\t\t\titem: postOptional<EbayItemData[\"body\"], EbayItemResponse>(\"/v1/ebay/item\", call),\n\t\t},\n\t\tairbnb: {\n\t\t\tsearch: post<AirbnbSearchData[\"body\"], AirbnbSearchResponse>(\"/v1/airbnb/search\", call),\n\t\t\tlisting: postOptional<AirbnbListingData[\"body\"], AirbnbListingResponse>(\"/v1/airbnb/listing\", call),\n\t\t\treviews: postOptional<AirbnbReviewsData[\"body\"], AirbnbReviewsResponse>(\"/v1/airbnb/reviews\", call),\n\t\t},\n\t\tfacebook: {\n\t\t\tpage: Object.assign(postOptional<FacebookPageData[\"body\"], FacebookPageResponse>(\"/v1/facebook/page\", call), {\n\t\t\t\t\tposts: postOptional<FacebookPagePostsData[\"body\"], FacebookPagePostsResponse>(\"/v1/facebook/page/posts\", call),\n\t\t\t\t}),\n\t\t\tpost: Object.assign(postOptional<FacebookPostData[\"body\"], FacebookPostResponse>(\"/v1/facebook/post\", call), {\n\t\t\t\t\tcomments: postOptional<FacebookPostCommentsData[\"body\"], FacebookPostCommentsResponse>(\"/v1/facebook/post/comments\", call),\n\t\t\t\t}),\n\t\t\tmarketplace: {\n\t\t\t\tsearch: post<FacebookMarketplaceSearchData[\"body\"], FacebookMarketplaceSearchResponse>(\"/v1/facebook/marketplace/search\", call),\n\t\t\t},\n\t\t},\n\t\tchatgpt: {\n\t\t\tsearch: post<ChatgptSearchData[\"body\"], ChatgptSearchResponse>(\"/v1/chatgpt/search\", call),\n\t\t},\n\t\tgemini: {\n\t\t\tsearch: post<GeminiSearchData[\"body\"], GeminiSearchResponse>(\"/v1/gemini/search\", call),\n\t\t},\n\t};\n}\n\nexport type Surface = ReturnType<typeof bindSurface>;\n","{\n \"name\": \"stophy\",\n \"version\": \"1.2.0\",\n \"description\": \"Web scraping API for AI agents. One API to search the web, read what people say, and look up products, places, jobs and homes. Pay only for answers.\",\n \"type\": \"module\",\n \"license\": \"MIT\",\n \"homepage\": \"https://stophy.dev\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/stophydotdev/sdk.git\",\n \"directory\": \"packages/typescript\"\n },\n \"keywords\": [\n \"stophy\",\n \"sdk\",\n \"web-data\",\n \"web-search\",\n \"scraping\",\n \"ai-agents\",\n \"llm\",\n \"youtube\",\n \"reddit\",\n \"maps\",\n \"google-maps\",\n \"transcripts\",\n \"ads\"\n ],\n \"main\": \"./dist/index.cjs\",\n \"module\": \"./dist/index.js\",\n \"types\": \"./dist/index.d.ts\",\n \"exports\": {\n \".\": {\n \"types\": \"./dist/index.d.ts\",\n \"import\": \"./dist/index.js\",\n \"require\": \"./dist/index.cjs\"\n }\n },\n \"files\": [\n \"dist\"\n ],\n \"scripts\": {\n \"generate\": \"openapi-ts && bun ../../scripts/gen-surface.ts\",\n \"build\": \"tsup\",\n \"test\": \"bun test ../../test/typescript\",\n \"check-types\": \"tsc --noEmit && tsc --noEmit -p tsconfig.tests.json\",\n \"prepublishOnly\": \"bun run generate && bun run build\"\n },\n \"devDependencies\": {\n \"@hey-api/client-fetch\": \"^0.10.2\",\n \"@hey-api/openapi-ts\": \"^0.64.0\",\n \"@types/bun\": \"^1.1.14\",\n \"tsup\": \"^8.3.5\",\n \"typescript\": \"^5.7.0\"\n }\n}\n","import { version } from \"../package.json\";\nimport { StophyError } from \"./errors\";\n\nconst DEFAULT_BASE_URL = \"https://api.stophy.dev\";\nconst DEFAULT_TIMEOUT_MS = 70_000;\nconst MAX_RETRY_WAIT_SECONDS = 60;\nconst RETRYABLE_STATUS = new Set([429, 500, 502, 503, 504]);\nconst USER_AGENT = `stophy-typescript/${version}`;\n\nexport interface CallOptions {\n\tsignal?: AbortSignal;\n}\n\nexport interface RequestSpec {\n\tmethod: \"GET\" | \"POST\";\n\tpath: string;\n\tbody?: unknown;\n\tquery?: Record<string, string | number | undefined>;\n\toptions?: CallOptions;\n}\n\nexport type Caller = (spec: RequestSpec) => Promise<unknown>;\n\nexport type FetchLike = (\n\tinput: RequestInfo | URL,\n\tinit?: RequestInit,\n) => Promise<Response>;\n\nexport interface TransportOptions {\n\tapiKey?: string;\n\tbaseUrl?: string;\n\tfetch?: FetchLike;\n\theaders?: Record<string, string>;\n\tmaxRetries?: number;\n\tretryInitialDelayMs?: number;\n\ttimeoutMs?: number;\n}\n\nexport function createCaller(options: TransportOptions): Caller {\n\tconst baseFetch: FetchLike = options.fetch ?? globalThis.fetch;\n\tconst baseUrl = (options.baseUrl ?? DEFAULT_BASE_URL).replace(/\\/$/, \"\");\n\tconst retry: RetryPolicy = {\n\t\tmaxRetries: options.maxRetries ?? 2,\n\t\tinitialDelayMs: options.retryInitialDelayMs ?? 500,\n\t\ttimeoutMs: options.timeoutMs ?? DEFAULT_TIMEOUT_MS,\n\t};\n\n\treturn async (spec) => {\n\t\tconst headers = new Headers(options.headers);\n\t\tif (typeof document === \"undefined\" && !headers.has(\"user-agent\")) {\n\t\t\theaders.set(\"user-agent\", USER_AGENT);\n\t\t}\n\t\tif (options.apiKey) {\n\t\t\theaders.set(\"authorization\", `Bearer ${options.apiKey}`);\n\t\t}\n\t\theaders.set(\"accept\", \"application/json\");\n\t\tif (spec.body !== undefined)\n\t\t\theaders.set(\"content-type\", \"application/json\");\n\n\t\tconst url = withQuery(`${baseUrl}${spec.path}`, spec.query);\n\t\treturn send(\n\t\t\tbaseFetch,\n\t\t\turl,\n\t\t\t(signal) => ({\n\t\t\t\tmethod: spec.method,\n\t\t\t\theaders,\n\t\t\t\tbody: spec.body === undefined ? undefined : JSON.stringify(spec.body),\n\t\t\t\tsignal,\n\t\t\t}),\n\t\t\tspec.options?.signal,\n\t\t\tretry,\n\t\t);\n\t};\n}\n\ninterface RetryPolicy {\n\tmaxRetries: number;\n\tinitialDelayMs: number;\n\ttimeoutMs: number;\n}\n\nasync function send(\n\tbaseFetch: FetchLike,\n\turl: string,\n\tinit: (signal: AbortSignal) => RequestInit,\n\tsignal: AbortSignal | undefined,\n\tretry: RetryPolicy,\n): Promise<unknown> {\n\tfor (let n = 0; ; n += 1) {\n\t\tconst deadline = withDeadline(signal, retry.timeoutMs);\n\t\tlet waitMs: number;\n\t\ttry {\n\t\t\tconst response = await baseFetch(url, init(deadline.signal)).catch(\n\t\t\t\t(error: unknown) => {\n\t\t\t\t\tif (deadline.signal.aborted || n >= retry.maxRetries) throw error;\n\t\t\t\t\treturn undefined;\n\t\t\t\t},\n\t\t\t);\n\t\t\tif (response === undefined) {\n\t\t\t\twaitMs = backoffMs(n, retry.initialDelayMs);\n\t\t\t} else if (\n\t\t\t\tn < retry.maxRetries &&\n\t\t\t\tRETRYABLE_STATUS.has(response.status)\n\t\t\t) {\n\t\t\t\tconst error = await errorFrom(response);\n\t\t\t\tconst seconds = error.retryAfterSeconds;\n\t\t\t\tif (seconds !== undefined && seconds > MAX_RETRY_WAIT_SECONDS) {\n\t\t\t\t\tthrow error;\n\t\t\t\t}\n\t\t\t\twaitMs =\n\t\t\t\t\tseconds === undefined\n\t\t\t\t\t\t? backoffMs(n, retry.initialDelayMs)\n\t\t\t\t\t\t: seconds * 1000;\n\t\t\t} else {\n\t\t\t\treturn await readBody(response);\n\t\t\t}\n\t\t} finally {\n\t\t\tdeadline.clear();\n\t\t}\n\t\tawait sleep(waitMs);\n\t}\n}\n\nfunction withDeadline(signal: AbortSignal | undefined, timeoutMs: number) {\n\tconst controller = new AbortController();\n\tconst abort = () => controller.abort(signal?.reason);\n\tif (signal?.aborted) abort();\n\telse signal?.addEventListener(\"abort\", abort, { once: true });\n\tconst timer = setTimeout(\n\t\t() =>\n\t\t\tcontroller.abort(\n\t\t\t\tnew DOMException(\n\t\t\t\t\t`Stophy request timed out after ${timeoutMs} ms`,\n\t\t\t\t\t\"TimeoutError\",\n\t\t\t\t),\n\t\t\t),\n\t\ttimeoutMs,\n\t);\n\treturn {\n\t\tsignal: controller.signal,\n\t\tclear: () => {\n\t\t\tclearTimeout(timer);\n\t\t\tsignal?.removeEventListener(\"abort\", abort);\n\t\t},\n\t};\n}\n\nasync function readBody(response: Response): Promise<unknown> {\n\tif (!response.ok) throw await errorFrom(response);\n\tconst text = await response.text();\n\tif (!text) {\n\t\tthrow failed(response, \"Stophy returned an empty response\", {});\n\t}\n\ttry {\n\t\treturn JSON.parse(text);\n\t} catch {\n\t\tthrow failed(response, \"Stophy returned a non-JSON response\", {});\n\t}\n}\n\nasync function errorFrom(response: Response): Promise<StophyError> {\n\tconst text = await response.text();\n\tlet body: unknown;\n\tif (text) {\n\t\ttry {\n\t\t\tbody = JSON.parse(text);\n\t\t} catch {\n\t\t\tbody = undefined;\n\t\t}\n\t}\n\tconst error = readError(body);\n\tconst retryAfterSeconds =\n\t\terror.retryAfterSeconds ?? headerRetryAfter(response);\n\treturn failed(\n\t\tresponse,\n\t\terror.message ?? `Stophy request failed with status ${response.status}`,\n\t\t{\n\t\t\tcode: error.code,\n\t\t\tretryable: error.retryable ?? RETRYABLE_STATUS.has(response.status),\n\t\t\tretryAfterSeconds,\n\t\t\trequestId: error.requestId ?? headerRequestId(response),\n\t\t},\n\t);\n}\n\nfunction failed(\n\tresponse: Response,\n\tmessage: string,\n\toptions: {\n\t\tcode?: string;\n\t\tretryable?: boolean;\n\t\tretryAfterSeconds?: number;\n\t\trequestId?: string;\n\t},\n): StophyError {\n\treturn new StophyError(message, {\n\t\tstatus: response.status,\n\t\tcode: options.code,\n\t\tretryable: options.retryable ?? false,\n\t\tretryAfterSeconds: options.retryAfterSeconds,\n\t\trequestId: options.requestId ?? headerRequestId(response),\n\t});\n}\n\ninterface ErrorFields {\n\tcode?: string;\n\tmessage?: string;\n\tretryable?: boolean;\n\tretryAfterSeconds?: number;\n\trequestId?: string;\n}\n\nfunction readError(body: unknown): ErrorFields {\n\tif (!isRecord(body) || !isRecord(body.error)) return {};\n\tconst error = body.error;\n\treturn {\n\t\tcode: typeof error.code === \"string\" ? error.code : undefined,\n\t\tmessage: typeof error.message === \"string\" ? error.message : undefined,\n\t\tretryable:\n\t\t\ttypeof error.retryable === \"boolean\" ? error.retryable : undefined,\n\t\tretryAfterSeconds:\n\t\t\ttypeof error.retryAfterSeconds === \"number\"\n\t\t\t\t? error.retryAfterSeconds\n\t\t\t\t: undefined,\n\t\trequestId:\n\t\t\ttypeof error.requestId === \"string\" ? error.requestId : undefined,\n\t};\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n\treturn typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\n\nfunction headerRequestId(response: Response): string | undefined {\n\treturn response.headers.get(\"x-request-id\") ?? undefined;\n}\n\nfunction headerRetryAfter(response: Response): number | undefined {\n\tconst header = response.headers.get(\"retry-after\");\n\tif (!header) return undefined;\n\tconst seconds = Number(header);\n\tif (Number.isFinite(seconds)) return seconds;\n\tconst date = Date.parse(header);\n\tif (Number.isNaN(date)) return undefined;\n\treturn Math.max(0, Math.ceil((date - Date.now()) / 1000));\n}\n\nfunction withQuery(\n\turl: string,\n\tquery: Record<string, string | number | undefined> | undefined,\n): string {\n\tif (!query) return url;\n\tconst params = new URLSearchParams();\n\tfor (const [key, value] of Object.entries(query)) {\n\t\tif (value !== undefined) params.set(key, String(value));\n\t}\n\tconst text = params.toString();\n\treturn text ? `${url}?${text}` : url;\n}\n\nfunction backoffMs(attempt: number, base: number): number {\n\tconst window = base * 2 ** attempt;\n\treturn window / 2 + Math.random() * (window / 2);\n}\n\nfunction sleep(ms: number): Promise<void> {\n\treturn new Promise((resolve) => setTimeout(resolve, ms));\n}\n","import { type Logs, type LogsQuery, logs, type Usage, usage } from \"./account\";\nimport { bindSurface, type Surface } from \"./generated/surface.gen\";\nimport {\n\ttype Caller,\n\ttype CallOptions,\n\tcreateCaller,\n\ttype FetchLike,\n} from \"./transport\";\n\nexport interface StophyOptions {\n\t/** Defaults to `STOPHY_API_KEY`. Without a key, only Google search, Google News, YouTube search, videos and transcripts, Reddit search and Google Maps search answer. */\n\tapiKey?: string;\n\t/** Defaults to `STOPHY_BASE_URL` or `https://api.stophy.dev`. */\n\tbaseUrl?: string;\n\tfetch?: FetchLike;\n\theaders?: Record<string, string>;\n\tmaxRetries?: number;\n\tretryInitialDelayMs?: number;\n\t/** Per-attempt timeout. Defaults to 70000. */\n\ttimeoutMs?: number;\n}\n\nexport type { CallOptions, FetchLike };\n\nexport type StophyClientInput = StophyOptions | string;\n\nfunction env(name: string): string | undefined {\n\treturn typeof process === \"undefined\" ? undefined : process.env[name];\n}\n\n/** Typed client for the Stophy web scraping API. Namespaces come from the OpenAPI document. */\n// The generated surface is copied onto this instance in the constructor.\n// biome-ignore lint/suspicious/noUnsafeDeclarationMerging: namespaces are assigned from bindSurface\nexport class Stophy {\n\treadonly #call: Caller;\n\n\tconstructor(input: StophyClientInput = {}) {\n\t\tconst options = typeof input === \"string\" ? { apiKey: input } : input;\n\t\tconst apiKey = options.apiKey?.trim() || env(\"STOPHY_API_KEY\")?.trim();\n\t\tthis.#call = createCaller({\n\t\t\t...options,\n\t\t\tapiKey,\n\t\t\tbaseUrl: options.baseUrl ?? env(\"STOPHY_BASE_URL\"),\n\t\t});\n\t\tObject.assign(this, bindSurface(this.#call));\n\t}\n\n\t/** Current balance and lifetime usage. Requires an API key. */\n\tusage(): Promise<Usage> {\n\t\treturn usage(this.#call);\n\t}\n\n\t/** Recent metered requests. Requires an API key. */\n\tlogs(query?: LogsQuery): Promise<Logs> {\n\t\treturn logs(this.#call, query);\n\t}\n}\n\nexport interface Stophy extends Surface {}\n"]}
1
+ {"version":3,"sources":["../src/errors.ts","../src/json.ts","../src/account.ts","../src/bind.ts","../src/generated/surface.gen.ts","../package.json","../src/transport.ts","../src/client.ts"],"names":[],"mappings":";;;;;AAIO,IAAM,WAAA,GAAN,cAA0B,KAAA,CAAM;AAAA,EAC5B,IAAA;AAAA,EACA,SAAA;AAAA,EACA,iBAAA;AAAA,EACA,MAAA;AAAA,EACA,SAAA;AAAA,EAET,WAAA,CACE,SACA,OAAA,EAOA;AACA,IAAA,KAAA,CAAM,OAAO,CAAA;AACb,IAAA,IAAA,CAAK,IAAA,GAAO,aAAA;AACZ,IAAA,IAAA,CAAK,SAAS,OAAA,CAAQ,MAAA;AAC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,KAAA,GAAwB;AACtB,IAAA,OAAO,KAAA,CAAM,KAAK,KAAK,CAAA;AAAA,EACzB;AAAA,EAEA,KAAK,KAAA,EAAkC;AACrC,IAAA,OAAO,IAAA,CAAK,IAAA,CAAK,KAAA,EAAO,KAAK,CAAA;AAAA,EAC/B;AACF","file":"index.cjs","sourcesContent":["import type { _Error } from \"./generated/types.gen\";\n\nexport type StophyErrorCode = _Error[\"error\"][\"code\"];\n\nexport class StophyError extends Error {\n readonly code?: string;\n readonly retryable: boolean;\n readonly retryAfterSeconds?: number;\n readonly status: number;\n readonly requestId?: string;\n\n constructor(\n message: string,\n options: {\n status: number;\n code?: string;\n retryable: boolean;\n retryAfterSeconds?: number;\n requestId?: string;\n },\n ) {\n super(message);\n this.name = \"StophyError\";\n this.status = options.status;\n this.code = options.code;\n this.retryable = options.retryable;\n this.retryAfterSeconds = options.retryAfterSeconds;\n this.requestId = options.requestId;\n }\n}\n","export type JsonValue = string | number | boolean | null | JsonValue[] | JsonObject;\n\nexport interface JsonObject {\n [key: string]: JsonValue;\n}\n\ntype MaybeJson = JsonValue | undefined;\n\nfunction tagOf(value: MaybeJson): string {\n return Object.prototype.toString.call(value);\n}\n\nexport function isString(value: MaybeJson): value is string {\n return tagOf(value) === \"[object String]\";\n}\n\nexport function isNumber(value: MaybeJson): value is number {\n return tagOf(value) === \"[object Number]\";\n}\n\nexport function isBoolean(value: MaybeJson): value is boolean {\n return value === true || value === false;\n}\n\nexport function isRecord(value: MaybeJson): value is JsonObject {\n return tagOf(value) === \"[object Object]\";\n}\n","import { StophyError } from \"./errors\";\nimport { isNumber, isRecord, isString, type JsonObject, type JsonValue } from \"./json\";\nimport type { Caller } from \"./transport\";\n\nexport interface Usage {\n balanceMicros: number;\n creditsUsed: number;\n requestCount: number;\n}\n\nexport interface LogEntry {\n apiKeyId: string | null;\n apiKeyName: string | null;\n createdAt: string;\n credits: number;\n durationMs: number | null;\n endpoint: string;\n id: string;\n method: string;\n response: string;\n status: number;\n}\n\nexport interface Logs {\n endpoints: string[];\n logs: LogEntry[];\n page: number;\n pageSize: number;\n total: number;\n totalPages: number;\n}\n\nexport interface LogsQuery {\n apiKeyId?: string;\n days?: number;\n endpoint?: string;\n page?: number;\n}\n\nexport function usage(call: Caller): Promise<Usage> {\n return call<JsonValue>({ method: \"GET\", path: \"/v1/usage\" }).then(parseUsage);\n}\n\nexport function logs(call: Caller, query?: LogsQuery): Promise<Logs> {\n const params: Record<string, string | number | undefined> = {};\n if (query?.apiKeyId !== undefined) params.apiKeyId = query.apiKeyId;\n if (query?.days !== undefined) params.days = query.days;\n if (query?.endpoint !== undefined) params.endpoint = query.endpoint;\n if (query?.page !== undefined) params.page = query.page;\n return call<JsonValue>({ method: \"GET\", path: \"/v1/logs\", query: params }).then(parseLogs);\n}\n\nfunction parseUsage(value: JsonValue): Usage {\n if (!isRecord(value)) return unexpected(\"usage\");\n const balanceMicros = numberField(value, \"balanceMicros\");\n const creditsUsed = numberField(value, \"creditsUsed\");\n const requestCount = numberField(value, \"requestCount\");\n return { balanceMicros, creditsUsed, requestCount };\n}\n\nfunction parseLogs(value: JsonValue): Logs {\n if (!isRecord(value) || !Array.isArray(value.logs) || !Array.isArray(value.endpoints)) {\n return unexpected(\"logs\");\n }\n return {\n endpoints: value.endpoints.map((item) => {\n if (!isString(item)) return unexpected(\"logs.endpoints\");\n return item;\n }),\n logs: value.logs.map(parseLog),\n page: numberField(value, \"page\"),\n pageSize: numberField(value, \"pageSize\"),\n total: numberField(value, \"total\"),\n totalPages: numberField(value, \"totalPages\"),\n };\n}\n\nfunction parseLog(value: JsonValue): LogEntry {\n if (!isRecord(value)) return unexpected(\"logs.logs\");\n return {\n apiKeyId: stringOrNull(value, \"apiKeyId\"),\n apiKeyName: stringOrNull(value, \"apiKeyName\"),\n createdAt: stringField(value, \"createdAt\"),\n credits: numberField(value, \"credits\"),\n durationMs: numberOrNull(value, \"durationMs\"),\n endpoint: stringField(value, \"endpoint\"),\n id: stringField(value, \"id\"),\n method: stringField(value, \"method\"),\n response: stringField(value, \"response\"),\n status: numberField(value, \"status\"),\n };\n}\n\nfunction numberField(record: JsonObject, field: string): number {\n const value = record[field];\n if (!isNumber(value)) return unexpected(field);\n return value;\n}\n\nfunction numberOrNull(record: JsonObject, field: string): number | null {\n const value = record[field];\n if (value === null) return null;\n if (!isNumber(value)) return unexpected(field);\n return value;\n}\n\nfunction stringField(record: JsonObject, field: string): string {\n const value = record[field];\n if (!isString(value)) return unexpected(field);\n return value;\n}\n\nfunction stringOrNull(record: JsonObject, field: string): string | null {\n const value = record[field];\n if (value === null) return null;\n if (!isString(value)) return unexpected(field);\n return value;\n}\n\nfunction unexpected(field: string): never {\n throw new StophyError(`Stophy returned an unexpected ${field}`, {\n status: 200,\n retryable: false,\n });\n}\n","import type { Caller } from \"./transport\";\n\nexport interface RequestOptions {\n signal?: AbortSignal;\n}\n\nexport function post<Body, Response>(path: string, call: Caller) {\n return (body: Body, options?: RequestOptions): Promise<Response> =>\n call<Response>({ method: \"POST\", path, body, options });\n}\n\nexport function postOptional<Body, Response>(path: string, call: Caller) {\n return (body?: Body, options?: RequestOptions): Promise<Response> =>\n call<Response>({\n method: \"POST\",\n path,\n body: body ?? {},\n options,\n });\n}\n\nexport function get<Response>(path: string, call: Caller) {\n return (options?: RequestOptions): Promise<Response> =>\n call<Response>({ method: \"GET\", path, options });\n}\n","// Generated by scripts/gen-surface.ts. Do not edit.\n\nimport { get, post, postOptional } from \"../bind\";\nimport type {\n\tAirbnbListingData,\n\tAirbnbListingResponse,\n\tAirbnbReviewsData,\n\tAirbnbReviewsResponse,\n\tAirbnbSearchData,\n\tAirbnbSearchResponse,\n\tAmazonBestsellersData,\n\tAmazonBestsellersResponse,\n\tAmazonProductData,\n\tAmazonProductResponse,\n\tAmazonReviewsData,\n\tAmazonReviewsResponse,\n\tAmazonSearchData,\n\tAmazonSearchResponse,\n\tAmazonSuggestData,\n\tAmazonSuggestResponse,\n\tAppstoreAppData,\n\tAppstoreAppResponse,\n\tAppstoreReviewsData,\n\tAppstoreReviewsResponse,\n\tAppstoreSearchData,\n\tAppstoreSearchResponse,\n\tAppstoreTopData,\n\tAppstoreTopResponse,\n\tBookingHotelData,\n\tBookingHotelResponse,\n\tBookingHotelReviewsData,\n\tBookingHotelReviewsResponse,\n\tBookingSearchData,\n\tBookingSearchResponse,\n\tCareersJobData,\n\tCareersJobResponse,\n\tCareersJobsData,\n\tCareersJobsResponse,\n\tChatgptSearchData,\n\tChatgptSearchResponse,\n\tCraigslistSearchData,\n\tCraigslistSearchResponse,\n\tEbayItemData,\n\tEbayItemResponse,\n\tEbaySearchData,\n\tEbaySearchResponse,\n\tExpediaHotelsData,\n\tExpediaHotelsResponse,\n\tFacebookMarketplaceSearchData,\n\tFacebookMarketplaceSearchResponse,\n\tFacebookPageData,\n\tFacebookPagePostsData,\n\tFacebookPagePostsResponse,\n\tFacebookPageResponse,\n\tFacebookPostCommentsData,\n\tFacebookPostCommentsResponse,\n\tFacebookPostData,\n\tFacebookPostResponse,\n\tGeminiSearchData,\n\tGeminiSearchResponse,\n\tGlassdoorCompanyData,\n\tGlassdoorCompanyResponse,\n\tGlassdoorCompanyReviewsData,\n\tGlassdoorCompanyReviewsResponse,\n\tGlassdoorCompanySalariesData,\n\tGlassdoorCompanySalariesResponse,\n\tGoogleAdsAdData,\n\tGoogleAdsAdResponse,\n\tGoogleAdsAdvertisersData,\n\tGoogleAdsAdvertisersResponse,\n\tGoogleAdsSearchData,\n\tGoogleAdsSearchResponse,\n\tGoogleFlightsData,\n\tGoogleFlightsResponse,\n\tGoogleHotelsData,\n\tGoogleHotelsResponse,\n\tGoogleImagesData,\n\tGoogleImagesResponse,\n\tGoogleMapsPlaceData,\n\tGoogleMapsPlaceResponse,\n\tGoogleMapsReviewsData,\n\tGoogleMapsReviewsResponse,\n\tGoogleMapsSearchData,\n\tGoogleMapsSearchResponse,\n\tGoogleNewsData,\n\tGoogleNewsResponse,\n\tGooglePatentsData,\n\tGooglePatentsResponse,\n\tGooglePlayAppData,\n\tGooglePlayAppResponse,\n\tGooglePlayReviewsData,\n\tGooglePlayReviewsResponse,\n\tGooglePlaySearchData,\n\tGooglePlaySearchResponse,\n\tGoogleScholarData,\n\tGoogleScholarResponse,\n\tGoogleSearchData,\n\tGoogleSearchResponse,\n\tGoogleSuggestData,\n\tGoogleSuggestResponse,\n\tGoogleTrendsInterestData,\n\tGoogleTrendsInterestResponse,\n\tGoogleTrendsRegionsData,\n\tGoogleTrendsRegionsResponse,\n\tGoogleTrendsRelatedData,\n\tGoogleTrendsRelatedResponse,\n\tGoogleTrendsTrendingData,\n\tGoogleTrendsTrendingResponse,\n\tIndeedJobData,\n\tIndeedJobResponse,\n\tIndeedSearchData,\n\tIndeedSearchResponse,\n\tInstagramCommentsData,\n\tInstagramCommentsResponse,\n\tInstagramPostData,\n\tInstagramPostResponse,\n\tInstagramProfileData,\n\tInstagramProfileReelsData,\n\tInstagramProfileReelsResponse,\n\tInstagramProfileResponse,\n\tInstagramTranscriptData,\n\tInstagramTranscriptResponse,\n\tLinkedinAdsAdData,\n\tLinkedinAdsAdResponse,\n\tLinkedinAdsSearchData,\n\tLinkedinAdsSearchResponse,\n\tLinkedinCompanyData,\n\tLinkedinCompanyResponse,\n\tLinkedinJobsJobData,\n\tLinkedinJobsJobResponse,\n\tLinkedinJobsSearchData,\n\tLinkedinJobsSearchResponse,\n\tLinkedinPostsData,\n\tLinkedinPostsResponse,\n\tLinkedinProfileData,\n\tLinkedinProfileResponse,\n\tListEndpointsResponse,\n\tLumaEventData,\n\tLumaEventResponse,\n\tLumaEventsData,\n\tLumaEventsResponse,\n\tMetaAdsAdData,\n\tMetaAdsAdResponse,\n\tMetaAdsPageData,\n\tMetaAdsPageResponse,\n\tMetaAdsSearchData,\n\tMetaAdsSearchResponse,\n\tPinterestBoardData,\n\tPinterestBoardResponse,\n\tPinterestPinData,\n\tPinterestPinResponse,\n\tPinterestProfileData,\n\tPinterestProfileResponse,\n\tPinterestSearchData,\n\tPinterestSearchResponse,\n\tRealtorPropertyData,\n\tRealtorPropertyResponse,\n\tRealtorSearchData,\n\tRealtorSearchResponse,\n\tRedditDiscussionsData,\n\tRedditDiscussionsResponse,\n\tRedditPostData,\n\tRedditPostResponse,\n\tRedditSearchData,\n\tRedditSearchResponse,\n\tRedditSubredditData,\n\tRedditSubredditResponse,\n\tRedditSubredditsData,\n\tRedditSubredditsResponse,\n\tRedditUserData,\n\tRedditUserResponse,\n\tThreadsPostData,\n\tThreadsPostResponse,\n\tThreadsProfileData,\n\tThreadsProfilePostsData,\n\tThreadsProfilePostsResponse,\n\tThreadsProfileResponse,\n\tTiktokAdsAdData,\n\tTiktokAdsAdResponse,\n\tTiktokAdsSearchData,\n\tTiktokAdsSearchResponse,\n\tTiktokCommentsData,\n\tTiktokCommentsResponse,\n\tTiktokHashtagData,\n\tTiktokHashtagResponse,\n\tTiktokProfileData,\n\tTiktokProfileResponse,\n\tTiktokSearchData,\n\tTiktokSearchResponse,\n\tTiktokShopProductData,\n\tTiktokShopProductResponse,\n\tTiktokShopProductsData,\n\tTiktokShopProductsResponse,\n\tTiktokShopReviewsData,\n\tTiktokShopReviewsResponse,\n\tTiktokShopSearchData,\n\tTiktokShopSearchResponse,\n\tTiktokSoundData,\n\tTiktokSoundResponse,\n\tTiktokTranscriptData,\n\tTiktokTranscriptResponse,\n\tTiktokVideoData,\n\tTiktokVideoResponse,\n\tTripadvisorPlaceData,\n\tTripadvisorPlaceResponse,\n\tTripadvisorReviewsData,\n\tTripadvisorReviewsResponse,\n\tTripadvisorSearchData,\n\tTripadvisorSearchResponse,\n\tTrustpilotCompanyData,\n\tTrustpilotCompanyResponse,\n\tTrustpilotCompanyReviewsData,\n\tTrustpilotCompanyReviewsResponse,\n\tTrustpilotSearchData,\n\tTrustpilotSearchResponse,\n\tUpworkJobData,\n\tUpworkJobResponse,\n\tUpworkSearchData,\n\tUpworkSearchResponse,\n\tWebBatchCancelData,\n\tWebBatchCancelResponse,\n\tWebBatchData,\n\tWebBatchResponse,\n\tWebBatchStatusData,\n\tWebBatchStatusResponse,\n\tWebContactsData,\n\tWebContactsResponse,\n\tWebCrawlCancelData,\n\tWebCrawlCancelResponse,\n\tWebCrawlData,\n\tWebCrawlResponse,\n\tWebCrawlStartData,\n\tWebCrawlStartResponse,\n\tWebCrawlStatusData,\n\tWebCrawlStatusResponse,\n\tWebImagesData,\n\tWebImagesResponse,\n\tWebMapData,\n\tWebMapResponse,\n\tWebNewsData,\n\tWebNewsResponse,\n\tWebParseData,\n\tWebParseResponse,\n\tWebScrapeData,\n\tWebScrapeResponse,\n\tWebSearchData,\n\tWebSearchResponse,\n\tXPostData,\n\tXPostResponse,\n\tXProfileData,\n\tXProfilePostsData,\n\tXProfilePostsResponse,\n\tXProfileResponse,\n\tYelpBusinessData,\n\tYelpBusinessResponse,\n\tYelpBusinessReviewsData,\n\tYelpBusinessReviewsResponse,\n\tYelpSearchData,\n\tYelpSearchResponse,\n\tYoutubeChannelData,\n\tYoutubeChannelResponse,\n\tYoutubeCommentsData,\n\tYoutubeCommentsResponse,\n\tYoutubePlaylistData,\n\tYoutubePlaylistResponse,\n\tYoutubePostData,\n\tYoutubePostResponse,\n\tYoutubeSearchData,\n\tYoutubeSearchResponse,\n\tYoutubeSuggestData,\n\tYoutubeSuggestResponse,\n\tYoutubeTranscriptData,\n\tYoutubeTranscriptResponse,\n\tYoutubeVideoData,\n\tYoutubeVideoResponse,\n\tZillowPropertyData,\n\tZillowPropertyResponse,\n\tZillowSearchData,\n\tZillowSearchResponse,\n} from \"./types.gen\";\nimport type { Caller } from \"../transport\";\n\nfunction bindSurface(call: Caller) {\n\treturn {\n\t\tendpoints: get<ListEndpointsResponse>(\"/v1/endpoints\", call),\n\t\tgoogle: {\n\t\t\tsearch: post<GoogleSearchData[\"body\"], GoogleSearchResponse>(\"/v1/google/search\", call),\n\t\t\tnews: postOptional<GoogleNewsData[\"body\"], GoogleNewsResponse>(\"/v1/google/news\", call),\n\t\t\timages: post<GoogleImagesData[\"body\"], GoogleImagesResponse>(\"/v1/google/images\", call),\n\t\t\tsuggest: post<GoogleSuggestData[\"body\"], GoogleSuggestResponse>(\"/v1/google/suggest\", call),\n\t\t\tads: {\n\t\t\t\tsearch: postOptional<GoogleAdsSearchData[\"body\"], GoogleAdsSearchResponse>(\"/v1/google/ads/search\", call),\n\t\t\t\tad: postOptional<GoogleAdsAdData[\"body\"], GoogleAdsAdResponse>(\"/v1/google/ads/ad\", call),\n\t\t\t\tadvertisers: post<GoogleAdsAdvertisersData[\"body\"], GoogleAdsAdvertisersResponse>(\"/v1/google/ads/advertisers\", call),\n\t\t\t},\n\t\t\tscholar: postOptional<GoogleScholarData[\"body\"], GoogleScholarResponse>(\"/v1/google/scholar\", call),\n\t\t\tpatents: postOptional<GooglePatentsData[\"body\"], GooglePatentsResponse>(\"/v1/google/patents\", call),\n\t\t\tmaps: {\n\t\t\t\tsearch: post<GoogleMapsSearchData[\"body\"], GoogleMapsSearchResponse>(\"/v1/google/maps/search\", call),\n\t\t\t\tplace: postOptional<GoogleMapsPlaceData[\"body\"], GoogleMapsPlaceResponse>(\"/v1/google/maps/place\", call),\n\t\t\t\treviews: postOptional<GoogleMapsReviewsData[\"body\"], GoogleMapsReviewsResponse>(\"/v1/google/maps/reviews\", call),\n\t\t\t},\n\t\t\ttrends: {\n\t\t\t\trelated: post<GoogleTrendsRelatedData[\"body\"], GoogleTrendsRelatedResponse>(\"/v1/google/trends/related\", call),\n\t\t\t\ttrending: postOptional<GoogleTrendsTrendingData[\"body\"], GoogleTrendsTrendingResponse>(\"/v1/google/trends/trending\", call),\n\t\t\t\tinterest: post<GoogleTrendsInterestData[\"body\"], GoogleTrendsInterestResponse>(\"/v1/google/trends/interest\", call),\n\t\t\t\tregions: post<GoogleTrendsRegionsData[\"body\"], GoogleTrendsRegionsResponse>(\"/v1/google/trends/regions\", call),\n\t\t\t},\n\t\t\tflights: post<GoogleFlightsData[\"body\"], GoogleFlightsResponse>(\"/v1/google/flights\", call),\n\t\t\thotels: post<GoogleHotelsData[\"body\"], GoogleHotelsResponse>(\"/v1/google/hotels\", call),\n\t\t\tplay: {\n\t\t\t\tapp: postOptional<GooglePlayAppData[\"body\"], GooglePlayAppResponse>(\"/v1/google/play/app\", call),\n\t\t\t\tsearch: post<GooglePlaySearchData[\"body\"], GooglePlaySearchResponse>(\"/v1/google/play/search\", call),\n\t\t\t\treviews: postOptional<GooglePlayReviewsData[\"body\"], GooglePlayReviewsResponse>(\"/v1/google/play/reviews\", call),\n\t\t\t},\n\t\t},\n\t\tweb: {\n\t\t\tsearch: post<WebSearchData[\"body\"], WebSearchResponse>(\"/v1/web/search\", call),\n\t\t\tnews: post<WebNewsData[\"body\"], WebNewsResponse>(\"/v1/web/news\", call),\n\t\t\timages: post<WebImagesData[\"body\"], WebImagesResponse>(\"/v1/web/images\", call),\n\t\t\tscrape: postOptional<WebScrapeData[\"body\"], WebScrapeResponse>(\"/v1/web/scrape\", call),\n\t\t\tparse: post<WebParseData[\"body\"], WebParseResponse>(\"/v1/web/parse\", call),\n\t\t\tmap: post<WebMapData[\"body\"], WebMapResponse>(\"/v1/web/map\", call),\n\t\t\tcontacts: post<WebContactsData[\"body\"], WebContactsResponse>(\"/v1/web/contacts\", call),\n\t\t\tcrawl: Object.assign(post<WebCrawlData[\"body\"], WebCrawlResponse>(\"/v1/web/crawl\", call), {\n\t\t\t\t\tstart: post<WebCrawlStartData[\"body\"], WebCrawlStartResponse>(\"/v1/web/crawl/start\", call),\n\t\t\t\t\tstatus: post<WebCrawlStatusData[\"body\"], WebCrawlStatusResponse>(\"/v1/web/crawl/status\", call),\n\t\t\t\t\tcancel: post<WebCrawlCancelData[\"body\"], WebCrawlCancelResponse>(\"/v1/web/crawl/cancel\", call),\n\t\t\t\t}),\n\t\t\tbatch: Object.assign(post<WebBatchData[\"body\"], WebBatchResponse>(\"/v1/web/batch\", call), {\n\t\t\t\t\tstatus: post<WebBatchStatusData[\"body\"], WebBatchStatusResponse>(\"/v1/web/batch/status\", call),\n\t\t\t\t\tcancel: post<WebBatchCancelData[\"body\"], WebBatchCancelResponse>(\"/v1/web/batch/cancel\", call),\n\t\t\t\t}),\n\t\t},\n\t\tyoutube: {\n\t\t\tsuggest: post<YoutubeSuggestData[\"body\"], YoutubeSuggestResponse>(\"/v1/youtube/suggest\", call),\n\t\t\tsearch: post<YoutubeSearchData[\"body\"], YoutubeSearchResponse>(\"/v1/youtube/search\", call),\n\t\t\ttranscript: postOptional<YoutubeTranscriptData[\"body\"], YoutubeTranscriptResponse>(\"/v1/youtube/transcript\", call),\n\t\t\tvideo: postOptional<YoutubeVideoData[\"body\"], YoutubeVideoResponse>(\"/v1/youtube/video\", call),\n\t\t\tcomments: postOptional<YoutubeCommentsData[\"body\"], YoutubeCommentsResponse>(\"/v1/youtube/comments\", call),\n\t\t\tchannel: postOptional<YoutubeChannelData[\"body\"], YoutubeChannelResponse>(\"/v1/youtube/channel\", call),\n\t\t\tpost: postOptional<YoutubePostData[\"body\"], YoutubePostResponse>(\"/v1/youtube/post\", call),\n\t\t\tplaylist: postOptional<YoutubePlaylistData[\"body\"], YoutubePlaylistResponse>(\"/v1/youtube/playlist\", call),\n\t\t},\n\t\treddit: {\n\t\t\tsearch: post<RedditSearchData[\"body\"], RedditSearchResponse>(\"/v1/reddit/search\", call),\n\t\t\tpost: postOptional<RedditPostData[\"body\"], RedditPostResponse>(\"/v1/reddit/post\", call),\n\t\t\tsubreddit: post<RedditSubredditData[\"body\"], RedditSubredditResponse>(\"/v1/reddit/subreddit\", call),\n\t\t\tuser: postOptional<RedditUserData[\"body\"], RedditUserResponse>(\"/v1/reddit/user\", call),\n\t\t\tdiscussions: postOptional<RedditDiscussionsData[\"body\"], RedditDiscussionsResponse>(\"/v1/reddit/discussions\", call),\n\t\t\tsubreddits: postOptional<RedditSubredditsData[\"body\"], RedditSubredditsResponse>(\"/v1/reddit/subreddits\", call),\n\t\t},\n\t\tinstagram: {\n\t\t\tcomments: postOptional<InstagramCommentsData[\"body\"], InstagramCommentsResponse>(\"/v1/instagram/comments\", call),\n\t\t\tpost: postOptional<InstagramPostData[\"body\"], InstagramPostResponse>(\"/v1/instagram/post\", call),\n\t\t\tprofile: Object.assign(postOptional<InstagramProfileData[\"body\"], InstagramProfileResponse>(\"/v1/instagram/profile\", call), {\n\t\t\t\t\treels: postOptional<InstagramProfileReelsData[\"body\"], InstagramProfileReelsResponse>(\"/v1/instagram/profile/reels\", call),\n\t\t\t\t}),\n\t\t\ttranscript: postOptional<InstagramTranscriptData[\"body\"], InstagramTranscriptResponse>(\"/v1/instagram/transcript\", call),\n\t\t},\n\t\ttiktok: {\n\t\t\tprofile: postOptional<TiktokProfileData[\"body\"], TiktokProfileResponse>(\"/v1/tiktok/profile\", call),\n\t\t\tvideo: postOptional<TiktokVideoData[\"body\"], TiktokVideoResponse>(\"/v1/tiktok/video\", call),\n\t\t\thashtag: post<TiktokHashtagData[\"body\"], TiktokHashtagResponse>(\"/v1/tiktok/hashtag\", call),\n\t\t\tsound: post<TiktokSoundData[\"body\"], TiktokSoundResponse>(\"/v1/tiktok/sound\", call),\n\t\t\tcomments: postOptional<TiktokCommentsData[\"body\"], TiktokCommentsResponse>(\"/v1/tiktok/comments\", call),\n\t\t\tsearch: post<TiktokSearchData[\"body\"], TiktokSearchResponse>(\"/v1/tiktok/search\", call),\n\t\t\ttranscript: postOptional<TiktokTranscriptData[\"body\"], TiktokTranscriptResponse>(\"/v1/tiktok/transcript\", call),\n\t\t\tads: {\n\t\t\t\tsearch: postOptional<TiktokAdsSearchData[\"body\"], TiktokAdsSearchResponse>(\"/v1/tiktok/ads/search\", call),\n\t\t\t\tad: postOptional<TiktokAdsAdData[\"body\"], TiktokAdsAdResponse>(\"/v1/tiktok/ads/ad\", call),\n\t\t\t},\n\t\t\tshop: {\n\t\t\t\tsearch: post<TiktokShopSearchData[\"body\"], TiktokShopSearchResponse>(\"/v1/tiktok/shop/search\", call),\n\t\t\t\tproducts: postOptional<TiktokShopProductsData[\"body\"], TiktokShopProductsResponse>(\"/v1/tiktok/shop/products\", call),\n\t\t\t\tproduct: postOptional<TiktokShopProductData[\"body\"], TiktokShopProductResponse>(\"/v1/tiktok/shop/product\", call),\n\t\t\t\treviews: postOptional<TiktokShopReviewsData[\"body\"], TiktokShopReviewsResponse>(\"/v1/tiktok/shop/reviews\", call),\n\t\t\t},\n\t\t},\n\t\tmeta: {\n\t\t\tads: {\n\t\t\t\tpage: post<MetaAdsPageData[\"body\"], MetaAdsPageResponse>(\"/v1/meta/ads/page\", call),\n\t\t\t\tsearch: post<MetaAdsSearchData[\"body\"], MetaAdsSearchResponse>(\"/v1/meta/ads/search\", call),\n\t\t\t\tad: postOptional<MetaAdsAdData[\"body\"], MetaAdsAdResponse>(\"/v1/meta/ads/ad\", call),\n\t\t\t},\n\t\t},\n\t\tlinkedin: {\n\t\t\tjobs: {\n\t\t\t\tsearch: postOptional<LinkedinJobsSearchData[\"body\"], LinkedinJobsSearchResponse>(\"/v1/linkedin/jobs/search\", call),\n\t\t\t\tjob: postOptional<LinkedinJobsJobData[\"body\"], LinkedinJobsJobResponse>(\"/v1/linkedin/jobs/job\", call),\n\t\t\t},\n\t\t\tcompany: postOptional<LinkedinCompanyData[\"body\"], LinkedinCompanyResponse>(\"/v1/linkedin/company\", call),\n\t\t\tprofile: postOptional<LinkedinProfileData[\"body\"], LinkedinProfileResponse>(\"/v1/linkedin/profile\", call),\n\t\t\tposts: postOptional<LinkedinPostsData[\"body\"], LinkedinPostsResponse>(\"/v1/linkedin/posts\", call),\n\t\t\tads: {\n\t\t\t\tsearch: postOptional<LinkedinAdsSearchData[\"body\"], LinkedinAdsSearchResponse>(\"/v1/linkedin/ads/search\", call),\n\t\t\t\tad: postOptional<LinkedinAdsAdData[\"body\"], LinkedinAdsAdResponse>(\"/v1/linkedin/ads/ad\", call),\n\t\t\t},\n\t\t},\n\t\tzillow: {\n\t\t\tsearch: post<ZillowSearchData[\"body\"], ZillowSearchResponse>(\"/v1/zillow/search\", call),\n\t\t\tproperty: postOptional<ZillowPropertyData[\"body\"], ZillowPropertyResponse>(\"/v1/zillow/property\", call),\n\t\t},\n\t\trealtor: {\n\t\t\tsearch: post<RealtorSearchData[\"body\"], RealtorSearchResponse>(\"/v1/realtor/search\", call),\n\t\t\tproperty: postOptional<RealtorPropertyData[\"body\"], RealtorPropertyResponse>(\"/v1/realtor/property\", call),\n\t\t},\n\t\tcraigslist: {\n\t\t\tsearch: post<CraigslistSearchData[\"body\"], CraigslistSearchResponse>(\"/v1/craigslist/search\", call),\n\t\t},\n\t\tluma: {\n\t\t\tevents: post<LumaEventsData[\"body\"], LumaEventsResponse>(\"/v1/luma/events\", call),\n\t\t\tevent: post<LumaEventData[\"body\"], LumaEventResponse>(\"/v1/luma/event\", call),\n\t\t},\n\t\tupwork: {\n\t\t\tsearch: postOptional<UpworkSearchData[\"body\"], UpworkSearchResponse>(\"/v1/upwork/search\", call),\n\t\t\tjob: postOptional<UpworkJobData[\"body\"], UpworkJobResponse>(\"/v1/upwork/job\", call),\n\t\t},\n\t\tindeed: {\n\t\t\tsearch: postOptional<IndeedSearchData[\"body\"], IndeedSearchResponse>(\"/v1/indeed/search\", call),\n\t\t\tjob: postOptional<IndeedJobData[\"body\"], IndeedJobResponse>(\"/v1/indeed/job\", call),\n\t\t},\n\t\tcareers: {\n\t\t\tjobs: post<CareersJobsData[\"body\"], CareersJobsResponse>(\"/v1/careers/jobs\", call),\n\t\t\tjob: post<CareersJobData[\"body\"], CareersJobResponse>(\"/v1/careers/job\", call),\n\t\t},\n\t\tglassdoor: {\n\t\t\tcompany: Object.assign(postOptional<GlassdoorCompanyData[\"body\"], GlassdoorCompanyResponse>(\"/v1/glassdoor/company\", call), {\n\t\t\t\t\treviews: postOptional<GlassdoorCompanyReviewsData[\"body\"], GlassdoorCompanyReviewsResponse>(\"/v1/glassdoor/company/reviews\", call),\n\t\t\t\t\tsalaries: postOptional<GlassdoorCompanySalariesData[\"body\"], GlassdoorCompanySalariesResponse>(\"/v1/glassdoor/company/salaries\", call),\n\t\t\t\t}),\n\t\t},\n\t\ttripadvisor: {\n\t\t\tsearch: post<TripadvisorSearchData[\"body\"], TripadvisorSearchResponse>(\"/v1/tripadvisor/search\", call),\n\t\t\tplace: postOptional<TripadvisorPlaceData[\"body\"], TripadvisorPlaceResponse>(\"/v1/tripadvisor/place\", call),\n\t\t\treviews: postOptional<TripadvisorReviewsData[\"body\"], TripadvisorReviewsResponse>(\"/v1/tripadvisor/reviews\", call),\n\t\t},\n\t\tyelp: {\n\t\t\tsearch: post<YelpSearchData[\"body\"], YelpSearchResponse>(\"/v1/yelp/search\", call),\n\t\t\tbusiness: Object.assign(postOptional<YelpBusinessData[\"body\"], YelpBusinessResponse>(\"/v1/yelp/business\", call), {\n\t\t\t\t\treviews: postOptional<YelpBusinessReviewsData[\"body\"], YelpBusinessReviewsResponse>(\"/v1/yelp/business/reviews\", call),\n\t\t\t\t}),\n\t\t},\n\t\tbooking: {\n\t\t\tsearch: post<BookingSearchData[\"body\"], BookingSearchResponse>(\"/v1/booking/search\", call),\n\t\t\thotel: Object.assign(postOptional<BookingHotelData[\"body\"], BookingHotelResponse>(\"/v1/booking/hotel\", call), {\n\t\t\t\t\treviews: postOptional<BookingHotelReviewsData[\"body\"], BookingHotelReviewsResponse>(\"/v1/booking/hotel/reviews\", call),\n\t\t\t\t}),\n\t\t},\n\t\texpedia: {\n\t\t\thotels: post<ExpediaHotelsData[\"body\"], ExpediaHotelsResponse>(\"/v1/expedia/hotels\", call),\n\t\t},\n\t\tamazon: {\n\t\t\tsearch: postOptional<AmazonSearchData[\"body\"], AmazonSearchResponse>(\"/v1/amazon/search\", call),\n\t\t\tproduct: postOptional<AmazonProductData[\"body\"], AmazonProductResponse>(\"/v1/amazon/product\", call),\n\t\t\treviews: postOptional<AmazonReviewsData[\"body\"], AmazonReviewsResponse>(\"/v1/amazon/reviews\", call),\n\t\t\tbestsellers: post<AmazonBestsellersData[\"body\"], AmazonBestsellersResponse>(\"/v1/amazon/bestsellers\", call),\n\t\t\tsuggest: post<AmazonSuggestData[\"body\"], AmazonSuggestResponse>(\"/v1/amazon/suggest\", call),\n\t\t},\n\t\tappstore: {\n\t\t\tapp: postOptional<AppstoreAppData[\"body\"], AppstoreAppResponse>(\"/v1/appstore/app\", call),\n\t\t\tsearch: post<AppstoreSearchData[\"body\"], AppstoreSearchResponse>(\"/v1/appstore/search\", call),\n\t\t\treviews: postOptional<AppstoreReviewsData[\"body\"], AppstoreReviewsResponse>(\"/v1/appstore/reviews\", call),\n\t\t\ttop: postOptional<AppstoreTopData[\"body\"], AppstoreTopResponse>(\"/v1/appstore/top\", call),\n\t\t},\n\t\tpinterest: {\n\t\t\tsearch: post<PinterestSearchData[\"body\"], PinterestSearchResponse>(\"/v1/pinterest/search\", call),\n\t\t\tpin: postOptional<PinterestPinData[\"body\"], PinterestPinResponse>(\"/v1/pinterest/pin\", call),\n\t\t\tboard: post<PinterestBoardData[\"body\"], PinterestBoardResponse>(\"/v1/pinterest/board\", call),\n\t\t\tprofile: postOptional<PinterestProfileData[\"body\"], PinterestProfileResponse>(\"/v1/pinterest/profile\", call),\n\t\t},\n\t\tx: {\n\t\t\tprofile: Object.assign(postOptional<XProfileData[\"body\"], XProfileResponse>(\"/v1/x/profile\", call), {\n\t\t\t\t\tposts: postOptional<XProfilePostsData[\"body\"], XProfilePostsResponse>(\"/v1/x/profile/posts\", call),\n\t\t\t\t}),\n\t\t\tpost: postOptional<XPostData[\"body\"], XPostResponse>(\"/v1/x/post\", call),\n\t\t},\n\t\tthreads: {\n\t\t\tprofile: Object.assign(postOptional<ThreadsProfileData[\"body\"], ThreadsProfileResponse>(\"/v1/threads/profile\", call), {\n\t\t\t\t\tposts: postOptional<ThreadsProfilePostsData[\"body\"], ThreadsProfilePostsResponse>(\"/v1/threads/profile/posts\", call),\n\t\t\t\t}),\n\t\t\tpost: postOptional<ThreadsPostData[\"body\"], ThreadsPostResponse>(\"/v1/threads/post\", call),\n\t\t},\n\t\ttrustpilot: {\n\t\t\tcompany: Object.assign(postOptional<TrustpilotCompanyData[\"body\"], TrustpilotCompanyResponse>(\"/v1/trustpilot/company\", call), {\n\t\t\t\t\treviews: postOptional<TrustpilotCompanyReviewsData[\"body\"], TrustpilotCompanyReviewsResponse>(\"/v1/trustpilot/company/reviews\", call),\n\t\t\t\t}),\n\t\t\tsearch: post<TrustpilotSearchData[\"body\"], TrustpilotSearchResponse>(\"/v1/trustpilot/search\", call),\n\t\t},\n\t\tebay: {\n\t\t\tsearch: post<EbaySearchData[\"body\"], EbaySearchResponse>(\"/v1/ebay/search\", call),\n\t\t\titem: postOptional<EbayItemData[\"body\"], EbayItemResponse>(\"/v1/ebay/item\", call),\n\t\t},\n\t\tairbnb: {\n\t\t\tsearch: post<AirbnbSearchData[\"body\"], AirbnbSearchResponse>(\"/v1/airbnb/search\", call),\n\t\t\tlisting: postOptional<AirbnbListingData[\"body\"], AirbnbListingResponse>(\"/v1/airbnb/listing\", call),\n\t\t\treviews: postOptional<AirbnbReviewsData[\"body\"], AirbnbReviewsResponse>(\"/v1/airbnb/reviews\", call),\n\t\t},\n\t\tfacebook: {\n\t\t\tpage: Object.assign(postOptional<FacebookPageData[\"body\"], FacebookPageResponse>(\"/v1/facebook/page\", call), {\n\t\t\t\t\tposts: postOptional<FacebookPagePostsData[\"body\"], FacebookPagePostsResponse>(\"/v1/facebook/page/posts\", call),\n\t\t\t\t}),\n\t\t\tpost: Object.assign(postOptional<FacebookPostData[\"body\"], FacebookPostResponse>(\"/v1/facebook/post\", call), {\n\t\t\t\t\tcomments: postOptional<FacebookPostCommentsData[\"body\"], FacebookPostCommentsResponse>(\"/v1/facebook/post/comments\", call),\n\t\t\t\t}),\n\t\t\tmarketplace: {\n\t\t\t\tsearch: post<FacebookMarketplaceSearchData[\"body\"], FacebookMarketplaceSearchResponse>(\"/v1/facebook/marketplace/search\", call),\n\t\t\t},\n\t\t},\n\t\tchatgpt: {\n\t\t\tsearch: post<ChatgptSearchData[\"body\"], ChatgptSearchResponse>(\"/v1/chatgpt/search\", call),\n\t\t},\n\t\tgemini: {\n\t\t\tsearch: post<GeminiSearchData[\"body\"], GeminiSearchResponse>(\"/v1/gemini/search\", call),\n\t\t},\n\t};\n}\n\ntype BoundSurface = ReturnType<typeof bindSurface>;\n\nexport class Surface {\n\treadonly endpoints: BoundSurface[\"endpoints\"];\n\treadonly google: BoundSurface[\"google\"];\n\treadonly web: BoundSurface[\"web\"];\n\treadonly youtube: BoundSurface[\"youtube\"];\n\treadonly reddit: BoundSurface[\"reddit\"];\n\treadonly instagram: BoundSurface[\"instagram\"];\n\treadonly tiktok: BoundSurface[\"tiktok\"];\n\treadonly meta: BoundSurface[\"meta\"];\n\treadonly linkedin: BoundSurface[\"linkedin\"];\n\treadonly zillow: BoundSurface[\"zillow\"];\n\treadonly realtor: BoundSurface[\"realtor\"];\n\treadonly craigslist: BoundSurface[\"craigslist\"];\n\treadonly luma: BoundSurface[\"luma\"];\n\treadonly upwork: BoundSurface[\"upwork\"];\n\treadonly indeed: BoundSurface[\"indeed\"];\n\treadonly careers: BoundSurface[\"careers\"];\n\treadonly glassdoor: BoundSurface[\"glassdoor\"];\n\treadonly tripadvisor: BoundSurface[\"tripadvisor\"];\n\treadonly yelp: BoundSurface[\"yelp\"];\n\treadonly booking: BoundSurface[\"booking\"];\n\treadonly expedia: BoundSurface[\"expedia\"];\n\treadonly amazon: BoundSurface[\"amazon\"];\n\treadonly appstore: BoundSurface[\"appstore\"];\n\treadonly pinterest: BoundSurface[\"pinterest\"];\n\treadonly x: BoundSurface[\"x\"];\n\treadonly threads: BoundSurface[\"threads\"];\n\treadonly trustpilot: BoundSurface[\"trustpilot\"];\n\treadonly ebay: BoundSurface[\"ebay\"];\n\treadonly airbnb: BoundSurface[\"airbnb\"];\n\treadonly facebook: BoundSurface[\"facebook\"];\n\treadonly chatgpt: BoundSurface[\"chatgpt\"];\n\treadonly gemini: BoundSurface[\"gemini\"];\n\n\tconstructor(call: Caller) {\n\t\tconst bound = bindSurface(call);\n\t\tthis.endpoints = bound.endpoints;\n\t\tthis.google = bound.google;\n\t\tthis.web = bound.web;\n\t\tthis.youtube = bound.youtube;\n\t\tthis.reddit = bound.reddit;\n\t\tthis.instagram = bound.instagram;\n\t\tthis.tiktok = bound.tiktok;\n\t\tthis.meta = bound.meta;\n\t\tthis.linkedin = bound.linkedin;\n\t\tthis.zillow = bound.zillow;\n\t\tthis.realtor = bound.realtor;\n\t\tthis.craigslist = bound.craigslist;\n\t\tthis.luma = bound.luma;\n\t\tthis.upwork = bound.upwork;\n\t\tthis.indeed = bound.indeed;\n\t\tthis.careers = bound.careers;\n\t\tthis.glassdoor = bound.glassdoor;\n\t\tthis.tripadvisor = bound.tripadvisor;\n\t\tthis.yelp = bound.yelp;\n\t\tthis.booking = bound.booking;\n\t\tthis.expedia = bound.expedia;\n\t\tthis.amazon = bound.amazon;\n\t\tthis.appstore = bound.appstore;\n\t\tthis.pinterest = bound.pinterest;\n\t\tthis.x = bound.x;\n\t\tthis.threads = bound.threads;\n\t\tthis.trustpilot = bound.trustpilot;\n\t\tthis.ebay = bound.ebay;\n\t\tthis.airbnb = bound.airbnb;\n\t\tthis.facebook = bound.facebook;\n\t\tthis.chatgpt = bound.chatgpt;\n\t\tthis.gemini = bound.gemini;\n\t}\n}\n","{\n \"name\": \"stophy\",\n \"version\": \"1.2.2\",\n \"description\": \"Give your agents the live web. One API to search the web, read what people say, and look up products, places, jobs and homes.\",\n \"keywords\": [\n \"ads\",\n \"ai-agents\",\n \"google-maps\",\n \"llm\",\n \"maps\",\n \"reddit\",\n \"scraping\",\n \"sdk\",\n \"stophy\",\n \"transcripts\",\n \"web-data\",\n \"web-search\",\n \"youtube\"\n ],\n \"homepage\": \"https://stophy.dev\",\n \"license\": \"MIT\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/stophydotdev/stophy.git\",\n \"directory\": \"sdk/packages/typescript\"\n },\n \"files\": [\n \"dist\"\n ],\n \"type\": \"module\",\n \"main\": \"./dist/index.cjs\",\n \"module\": \"./dist/index.js\",\n \"types\": \"./dist/index.d.ts\",\n \"exports\": {\n \".\": {\n \"types\": \"./dist/index.d.ts\",\n \"import\": \"./dist/index.js\",\n \"require\": \"./dist/index.cjs\"\n }\n },\n \"scripts\": {\n \"generate\": \"openapi-ts && bun ../../scripts/gen-surface.ts\",\n \"build\": \"tsup\",\n \"test\": \"bun test ../../test/typescript\",\n \"check-types\": \"tsc --noEmit && tsc --noEmit -p tsconfig.tests.json\",\n \"prepublishOnly\": \"bun run generate && bun run build\"\n },\n \"devDependencies\": {\n \"@hey-api/client-fetch\": \"^0.10.2\",\n \"@hey-api/openapi-ts\": \"^0.64.0\",\n \"@types/bun\": \"^1.1.14\",\n \"prettier\": \"2.8.8\",\n \"tsup\": \"^8.3.5\",\n \"typescript\": \"^5.7.0\"\n }\n}\n","import { version } from \"../package.json\";\nimport { StophyError } from \"./errors\";\nimport { isBoolean, isNumber, isRecord, isString, type JsonValue } from \"./json\";\n\nconst DEFAULT_BASE_URL = \"https://api.stophy.dev\";\nconst DEFAULT_TIMEOUT_MS = 70_000;\nconst MAX_RETRY_WAIT_SECONDS = 60;\nconst RETRYABLE_STATUS = new Set([429, 500, 502, 503, 504]);\nconst USER_AGENT = `stophy-typescript/${version}`;\n\nexport interface CallOptions {\n signal?: AbortSignal;\n}\n\nexport interface RequestSpec {\n method: \"GET\" | \"POST\";\n path: string;\n body?: unknown;\n query?: Record<string, string | number | undefined>;\n options?: CallOptions;\n}\n\nexport type Caller = <Result>(spec: RequestSpec) => Promise<Result>;\n\nexport type FetchLike = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;\n\nexport interface TransportOptions {\n apiKey?: string;\n baseUrl?: string;\n fetch?: FetchLike;\n headers?: Record<string, string>;\n maxRetries?: number;\n retryInitialDelayMs?: number;\n timeoutMs?: number;\n}\n\nexport function createCaller(options: TransportOptions): Caller {\n const baseFetch: FetchLike = options.fetch ?? globalThis.fetch;\n const baseUrl = (options.baseUrl ?? DEFAULT_BASE_URL).replace(/\\/$/, \"\");\n const retry: RetryPolicy = {\n maxRetries: options.maxRetries ?? 2,\n initialDelayMs: options.retryInitialDelayMs ?? 500,\n timeoutMs: options.timeoutMs ?? DEFAULT_TIMEOUT_MS,\n };\n\n return async <Result>(spec: RequestSpec): Promise<Result> => {\n const headers = new Headers(options.headers);\n if (!(\"document\" in globalThis) && !headers.has(\"user-agent\")) {\n headers.set(\"user-agent\", USER_AGENT);\n }\n if (options.apiKey) {\n headers.set(\"authorization\", `Bearer ${options.apiKey}`);\n }\n headers.set(\"accept\", \"application/json\");\n if (spec.body !== undefined) headers.set(\"content-type\", \"application/json\");\n\n const url = withQuery(`${baseUrl}${spec.path}`, spec.query);\n return send<Result>(\n baseFetch,\n url,\n (signal) => ({\n method: spec.method,\n headers,\n body: spec.body === undefined ? undefined : JSON.stringify(spec.body),\n signal,\n }),\n spec.options?.signal,\n retry,\n );\n };\n}\n\ninterface RetryPolicy {\n maxRetries: number;\n initialDelayMs: number;\n timeoutMs: number;\n}\n\nasync function send<Result>(\n baseFetch: FetchLike,\n url: string,\n init: (signal: AbortSignal) => RequestInit,\n signal: AbortSignal | undefined,\n retry: RetryPolicy,\n): Promise<Result> {\n for (let n = 0; ; n += 1) {\n const deadline = withDeadline(signal, retry.timeoutMs);\n let waitMs: number;\n try {\n const response = await baseFetch(url, init(deadline.signal)).catch((error) => {\n if (deadline.signal.aborted || n >= retry.maxRetries) throw error;\n return undefined;\n });\n if (response === undefined) {\n waitMs = backoffMs(n, retry.initialDelayMs);\n } else if (n < retry.maxRetries && RETRYABLE_STATUS.has(response.status)) {\n const error = await errorFrom(response);\n const seconds = error.retryAfterSeconds;\n if (seconds !== undefined && seconds > MAX_RETRY_WAIT_SECONDS) {\n throw error;\n }\n waitMs = seconds === undefined ? backoffMs(n, retry.initialDelayMs) : seconds * 1000;\n } else {\n return await readBody<Result>(response);\n }\n } finally {\n deadline.clear();\n }\n await sleep(waitMs);\n }\n}\n\nfunction withDeadline(signal: AbortSignal | undefined, timeoutMs: number) {\n const controller = new AbortController();\n const abort = () => controller.abort(signal?.reason);\n if (signal?.aborted) abort();\n else signal?.addEventListener(\"abort\", abort, { once: true });\n const timer = setTimeout(\n () =>\n controller.abort(\n new DOMException(`Stophy request timed out after ${timeoutMs} ms`, \"TimeoutError\"),\n ),\n timeoutMs,\n );\n return {\n signal: controller.signal,\n clear: () => {\n clearTimeout(timer);\n signal?.removeEventListener(\"abort\", abort);\n },\n };\n}\n\nasync function readBody<Result>(response: Response): Promise<Result> {\n if (!response.ok) throw await errorFrom(response);\n const text = await response.text();\n if (!text) {\n throw failed(response, \"Stophy returned an empty response\", {});\n }\n try {\n return JSON.parse(text);\n } catch {\n throw failed(response, \"Stophy returned a non-JSON response\", {});\n }\n}\n\nasync function errorFrom(response: Response): Promise<StophyError> {\n const text = await response.text();\n const error = readError(text ? parseJson(text) : null);\n const retryAfterSeconds = error.retryAfterSeconds ?? headerRetryAfter(response);\n return failed(response, error.message ?? `Stophy request failed with status ${response.status}`, {\n code: error.code,\n retryable: error.retryable ?? RETRYABLE_STATUS.has(response.status),\n retryAfterSeconds,\n requestId: error.requestId ?? headerRequestId(response),\n });\n}\n\nfunction failed(\n response: Response,\n message: string,\n options: {\n code?: string;\n retryable?: boolean;\n retryAfterSeconds?: number;\n requestId?: string;\n },\n): StophyError {\n return new StophyError(message, {\n status: response.status,\n code: options.code,\n retryable: options.retryable ?? false,\n retryAfterSeconds: options.retryAfterSeconds,\n requestId: options.requestId ?? headerRequestId(response),\n });\n}\n\ninterface ErrorFields {\n code?: string;\n message?: string;\n retryable?: boolean;\n retryAfterSeconds?: number;\n requestId?: string;\n}\n\nfunction parseJson(text: string): JsonValue {\n try {\n return JSON.parse(text);\n } catch {\n return null;\n }\n}\n\nfunction readError(body: JsonValue): ErrorFields {\n if (!isRecord(body) || !isRecord(body.error)) return {};\n const error = body.error;\n return {\n code: isString(error.code) ? error.code : undefined,\n message: isString(error.message) ? error.message : undefined,\n retryable: isBoolean(error.retryable) ? error.retryable : undefined,\n retryAfterSeconds: isNumber(error.retryAfterSeconds) ? error.retryAfterSeconds : undefined,\n requestId: isString(error.requestId) ? error.requestId : undefined,\n };\n}\n\nfunction headerRequestId(response: Response): string | undefined {\n return response.headers.get(\"x-request-id\") ?? undefined;\n}\n\nfunction headerRetryAfter(response: Response): number | undefined {\n const header = response.headers.get(\"retry-after\");\n if (!header) return undefined;\n const seconds = Number(header);\n if (Number.isFinite(seconds)) return seconds;\n const date = Date.parse(header);\n if (Number.isNaN(date)) return undefined;\n return Math.max(0, Math.ceil((date - Date.now()) / 1000));\n}\n\nfunction withQuery(\n url: string,\n query: Record<string, string | number | undefined> | undefined,\n): string {\n if (!query) return url;\n const params = new URLSearchParams();\n for (const [key, value] of Object.entries(query)) {\n if (value !== undefined) params.set(key, String(value));\n }\n const text = params.toString();\n return text ? `${url}?${text}` : url;\n}\n\nfunction backoffMs(attempt: number, base: number): number {\n const window = base * 2 ** attempt;\n return window / 2 + Math.random() * (window / 2);\n}\n\nfunction sleep(ms: number): Promise<void> {\n return new Promise((resolve) => setTimeout(resolve, ms));\n}\n","import { type Logs, type LogsQuery, logs, type Usage, usage } from \"./account\";\nimport { Surface } from \"./generated/surface.gen\";\nimport { type Caller, type CallOptions, createCaller, type FetchLike } from \"./transport\";\n\nexport interface StophyOptions {\n apiKey?: string;\n baseUrl?: string;\n fetch?: FetchLike;\n headers?: Record<string, string>;\n maxRetries?: number;\n retryInitialDelayMs?: number;\n timeoutMs?: number;\n}\n\nexport type { CallOptions, FetchLike };\n\nexport type StophyClientInput = StophyOptions | string;\n\nfunction env(name: string): string | undefined {\n return globalThis.process?.env[name];\n}\n\nexport class Stophy extends Surface {\n readonly #call: Caller;\n\n constructor(input: StophyClientInput = {}) {\n const options = input instanceof Object ? input : { apiKey: input };\n const apiKey = options.apiKey?.trim() || env(\"STOPHY_API_KEY\")?.trim();\n const call = createCaller({\n ...options,\n apiKey,\n baseUrl: options.baseUrl ?? env(\"STOPHY_BASE_URL\"),\n });\n super(call);\n this.#call = call;\n }\n\n usage(): Promise<Usage> {\n return usage(this.#call);\n }\n\n logs(query?: LogsQuery): Promise<Logs> {\n return logs(this.#call, query);\n }\n}\n"]}
package/dist/index.d.cts CHANGED
@@ -8,7 +8,7 @@ interface RequestSpec {
8
8
  query?: Record<string, string | number | undefined>;
9
9
  options?: CallOptions;
10
10
  }
11
- type Caller = (spec: RequestSpec) => Promise<unknown>;
11
+ type Caller = <Result>(spec: RequestSpec) => Promise<Result>;
12
12
  type FetchLike = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
13
13
 
14
14
  interface Usage {
@@ -345,6 +345,98 @@ type GoogleSearchResponses = {
345
345
  };
346
346
  };
347
347
  type GoogleSearchResponse = GoogleSearchResponses[keyof GoogleSearchResponses];
348
+ type WebSearchData = {
349
+ body: {
350
+ query: string;
351
+ /**
352
+ * ISO 3166-1 alpha-2 country code, e.g. us. Any case is accepted.
353
+ */
354
+ country?: string;
355
+ /**
356
+ * Only pages written in this language. Two-letter code like en or fr. Any case is accepted.
357
+ */
358
+ language?: string;
359
+ includeDomains?: Array<string>;
360
+ excludeDomains?: Array<string>;
361
+ /**
362
+ * Only pages from the past week, month or year. Leave out for any time. Not with after or before.
363
+ */
364
+ time?: "pastWeek" | "pastMonth" | "pastYear";
365
+ /**
366
+ * Only pages published on or after this day, as YYYY-MM-DD.
367
+ */
368
+ after?: string;
369
+ /**
370
+ * Only pages published on or before this day, as YYYY-MM-DD.
371
+ */
372
+ before?: string;
373
+ /**
374
+ * Hide explicit results.
375
+ */
376
+ safeSearch?: boolean;
377
+ /**
378
+ * Return at most this many results. You pay 1 credit per 10 returned.
379
+ */
380
+ limit?: number;
381
+ /**
382
+ * Also read the top results and add each page's text as markdown. Costs 1 more credit for each result that comes back with its text.
383
+ */
384
+ scrapeResults?: boolean;
385
+ /**
386
+ * How many of the top results to read when scrapeResults is on.
387
+ */
388
+ scrapeLimit?: number;
389
+ };
390
+ path?: never;
391
+ query?: {
392
+ /**
393
+ * Cut every text value in the response to this many characters. A value that was cut ends with …, and a page whose text was cut has isTruncated set to true. A screenshot is never cut. Leave it out to get the full text.
394
+ */
395
+ maxTextLength?: number;
396
+ };
397
+ url: "/v1/web/search";
398
+ };
399
+ type WebSearchErrors = {
400
+ /**
401
+ * The request failed. retryable says whether trying again can help.
402
+ */
403
+ "4XX": _Error;
404
+ /**
405
+ * The request failed. retryable says whether trying again can help.
406
+ */
407
+ "5XX": _Error;
408
+ };
409
+ type WebSearchError = WebSearchErrors[keyof WebSearchErrors];
410
+ type WebSearchResponses = {
411
+ /**
412
+ * The data, and the credits this call used.
413
+ */
414
+ 200: {
415
+ success: true;
416
+ data: {
417
+ results: Array<{
418
+ url: string;
419
+ title: string;
420
+ /**
421
+ * Text shown under the title.
422
+ */
423
+ description?: string;
424
+ position: number;
425
+ /**
426
+ * The page's text, when scrapeResults is on and the page was read.
427
+ */
428
+ markdown?: string;
429
+ /**
430
+ * Why this page has no markdown, when scrapeResults is on.
431
+ */
432
+ scrapeError?: string;
433
+ }>;
434
+ };
435
+ creditsUsed: number;
436
+ requestId: string;
437
+ };
438
+ };
439
+ type WebSearchResponse = WebSearchResponses[keyof WebSearchResponses];
348
440
  type WebNewsData = {
349
441
  body: {
350
442
  query: string;
@@ -16207,36 +16299,62 @@ declare function bindSurface(call: Caller): {
16207
16299
  }>;
16208
16300
  };
16209
16301
  };
16210
- type Surface = ReturnType<typeof bindSurface>;
16302
+ type BoundSurface = ReturnType<typeof bindSurface>;
16303
+ declare class Surface {
16304
+ readonly endpoints: BoundSurface["endpoints"];
16305
+ readonly google: BoundSurface["google"];
16306
+ readonly web: BoundSurface["web"];
16307
+ readonly youtube: BoundSurface["youtube"];
16308
+ readonly reddit: BoundSurface["reddit"];
16309
+ readonly instagram: BoundSurface["instagram"];
16310
+ readonly tiktok: BoundSurface["tiktok"];
16311
+ readonly meta: BoundSurface["meta"];
16312
+ readonly linkedin: BoundSurface["linkedin"];
16313
+ readonly zillow: BoundSurface["zillow"];
16314
+ readonly realtor: BoundSurface["realtor"];
16315
+ readonly craigslist: BoundSurface["craigslist"];
16316
+ readonly luma: BoundSurface["luma"];
16317
+ readonly upwork: BoundSurface["upwork"];
16318
+ readonly indeed: BoundSurface["indeed"];
16319
+ readonly careers: BoundSurface["careers"];
16320
+ readonly glassdoor: BoundSurface["glassdoor"];
16321
+ readonly tripadvisor: BoundSurface["tripadvisor"];
16322
+ readonly yelp: BoundSurface["yelp"];
16323
+ readonly booking: BoundSurface["booking"];
16324
+ readonly expedia: BoundSurface["expedia"];
16325
+ readonly amazon: BoundSurface["amazon"];
16326
+ readonly appstore: BoundSurface["appstore"];
16327
+ readonly pinterest: BoundSurface["pinterest"];
16328
+ readonly x: BoundSurface["x"];
16329
+ readonly threads: BoundSurface["threads"];
16330
+ readonly trustpilot: BoundSurface["trustpilot"];
16331
+ readonly ebay: BoundSurface["ebay"];
16332
+ readonly airbnb: BoundSurface["airbnb"];
16333
+ readonly facebook: BoundSurface["facebook"];
16334
+ readonly chatgpt: BoundSurface["chatgpt"];
16335
+ readonly gemini: BoundSurface["gemini"];
16336
+ constructor(call: Caller);
16337
+ }
16211
16338
 
16212
16339
  interface StophyOptions {
16213
- /** Defaults to `STOPHY_API_KEY`. Without a key, only Google search, Google News, YouTube search, videos and transcripts, Reddit search and Google Maps search answer. */
16214
16340
  apiKey?: string;
16215
- /** Defaults to `STOPHY_BASE_URL` or `https://api.stophy.dev`. */
16216
16341
  baseUrl?: string;
16217
16342
  fetch?: FetchLike;
16218
16343
  headers?: Record<string, string>;
16219
16344
  maxRetries?: number;
16220
16345
  retryInitialDelayMs?: number;
16221
- /** Per-attempt timeout. Defaults to 70000. */
16222
16346
  timeoutMs?: number;
16223
16347
  }
16224
16348
 
16225
16349
  type StophyClientInput = StophyOptions | string;
16226
- /** Typed client for the Stophy web scraping API. Namespaces come from the OpenAPI document. */
16227
- declare class Stophy {
16350
+ declare class Stophy extends Surface {
16228
16351
  #private;
16229
16352
  constructor(input?: StophyClientInput);
16230
- /** Current balance and lifetime usage. Requires an API key. */
16231
16353
  usage(): Promise<Usage>;
16232
- /** Recent metered requests. Requires an API key. */
16233
16354
  logs(query?: LogsQuery): Promise<Logs>;
16234
16355
  }
16235
- interface Stophy extends Surface {
16236
- }
16237
16356
 
16238
16357
  type StophyErrorCode = _Error["error"]["code"];
16239
- /** Thrown when the Stophy API responds with a non-success status. */
16240
16358
  declare class StophyError extends Error {
16241
16359
  readonly code?: string;
16242
16360
  readonly retryable: boolean;
@@ -16252,4 +16370,4 @@ declare class StophyError extends Error {
16252
16370
  });
16253
16371
  }
16254
16372
 
16255
- export { type AirbnbListingData, type AirbnbListingError, type AirbnbListingErrors, type AirbnbListingResponse, type AirbnbListingResponses, type AirbnbReviewsData, type AirbnbReviewsError, type AirbnbReviewsErrors, type AirbnbReviewsResponse, type AirbnbReviewsResponses, type AirbnbSearchData, type AirbnbSearchError, type AirbnbSearchErrors, type AirbnbSearchResponse, type AirbnbSearchResponses, type AmazonBestsellersData, type AmazonBestsellersError, type AmazonBestsellersErrors, type AmazonBestsellersResponse, type AmazonBestsellersResponses, type AmazonProductData, type AmazonProductError, type AmazonProductErrors, type AmazonProductResponse, type AmazonProductResponses, type AmazonReviewsData, type AmazonReviewsError, type AmazonReviewsErrors, type AmazonReviewsResponse, type AmazonReviewsResponses, type AmazonSearchData, type AmazonSearchError, type AmazonSearchErrors, type AmazonSearchResponse, type AmazonSearchResponses, type AmazonSuggestData, type AmazonSuggestError, type AmazonSuggestErrors, type AmazonSuggestResponse, type AmazonSuggestResponses, type AppstoreAppData, type AppstoreAppError, type AppstoreAppErrors, type AppstoreAppResponse, type AppstoreAppResponses, type AppstoreReviewsData, type AppstoreReviewsError, type AppstoreReviewsErrors, type AppstoreReviewsResponse, type AppstoreReviewsResponses, type AppstoreSearchData, type AppstoreSearchError, type AppstoreSearchErrors, type AppstoreSearchResponse, type AppstoreSearchResponses, type AppstoreTopData, type AppstoreTopError, type AppstoreTopErrors, type AppstoreTopResponse, type AppstoreTopResponses, type BookingHotelData, type BookingHotelError, type BookingHotelErrors, type BookingHotelResponse, type BookingHotelResponses, type BookingHotelReviewsData, type BookingHotelReviewsError, type BookingHotelReviewsErrors, type BookingHotelReviewsResponse, type BookingHotelReviewsResponses, type BookingSearchData, type BookingSearchError, type BookingSearchErrors, type BookingSearchResponse, type BookingSearchResponses, type CallOptions, type CareersJobData, type CareersJobError, type CareersJobErrors, type CareersJobResponse, type CareersJobResponses, type CareersJobsData, type CareersJobsError, type CareersJobsErrors, type CareersJobsResponse, type CareersJobsResponses, type ChatgptSearchData, type ChatgptSearchError, type ChatgptSearchErrors, type ChatgptSearchResponse, type ChatgptSearchResponses, type ClientOptions, type CraigslistSearchData, type CraigslistSearchError, type CraigslistSearchErrors, type CraigslistSearchResponse, type CraigslistSearchResponses, type EbayItemData, type EbayItemError, type EbayItemErrors, type EbayItemResponse, type EbayItemResponses, type EbaySearchData, type EbaySearchError, type EbaySearchErrors, type EbaySearchResponse, type EbaySearchResponses, type EndpointCatalog, type ExpediaHotelsData, type ExpediaHotelsError, type ExpediaHotelsErrors, type ExpediaHotelsResponse, type ExpediaHotelsResponses, type FacebookMarketplaceSearchData, type FacebookMarketplaceSearchError, type FacebookMarketplaceSearchErrors, type FacebookMarketplaceSearchResponse, type FacebookMarketplaceSearchResponses, type FacebookPageData, type FacebookPageError, type FacebookPageErrors, type FacebookPagePostsData, type FacebookPagePostsError, type FacebookPagePostsErrors, type FacebookPagePostsResponse, type FacebookPagePostsResponses, type FacebookPageResponse, type FacebookPageResponses, type FacebookPostCommentsData, type FacebookPostCommentsError, type FacebookPostCommentsErrors, type FacebookPostCommentsResponse, type FacebookPostCommentsResponses, type FacebookPostData, type FacebookPostError, type FacebookPostErrors, type FacebookPostResponse, type FacebookPostResponses, type FetchLike, type GeminiSearchData, type GeminiSearchError, type GeminiSearchErrors, type GeminiSearchResponse, type GeminiSearchResponses, type GlassdoorCompanyData, type GlassdoorCompanyError, type GlassdoorCompanyErrors, type GlassdoorCompanyResponse, type GlassdoorCompanyResponses, type GlassdoorCompanyReviewsData, type GlassdoorCompanyReviewsError, type GlassdoorCompanyReviewsErrors, type GlassdoorCompanyReviewsResponse, type GlassdoorCompanyReviewsResponses, type GlassdoorCompanySalariesData, type GlassdoorCompanySalariesError, type GlassdoorCompanySalariesErrors, type GlassdoorCompanySalariesResponse, type GlassdoorCompanySalariesResponses, type GoogleAdsAdData, type GoogleAdsAdError, type GoogleAdsAdErrors, type GoogleAdsAdResponse, type GoogleAdsAdResponses, type GoogleAdsAdvertisersData, type GoogleAdsAdvertisersError, type GoogleAdsAdvertisersErrors, type GoogleAdsAdvertisersResponse, type GoogleAdsAdvertisersResponses, type GoogleAdsSearchData, type GoogleAdsSearchError, type GoogleAdsSearchErrors, type GoogleAdsSearchResponse, type GoogleAdsSearchResponses, type GoogleFlightsData, type GoogleFlightsError, type GoogleFlightsErrors, type GoogleFlightsResponse, type GoogleFlightsResponses, type GoogleHotelsData, type GoogleHotelsError, type GoogleHotelsErrors, type GoogleHotelsResponse, type GoogleHotelsResponses, type GoogleImagesData, type GoogleImagesError, type GoogleImagesErrors, type GoogleImagesResponse, type GoogleImagesResponses, type GoogleMapsPlaceData, type GoogleMapsPlaceError, type GoogleMapsPlaceErrors, type GoogleMapsPlaceResponse, type GoogleMapsPlaceResponses, type GoogleMapsReviewsData, type GoogleMapsReviewsError, type GoogleMapsReviewsErrors, type GoogleMapsReviewsResponse, type GoogleMapsReviewsResponses, type GoogleMapsSearchData, type GoogleMapsSearchError, type GoogleMapsSearchErrors, type GoogleMapsSearchResponse, type GoogleMapsSearchResponses, type GoogleNewsData, type GoogleNewsError, type GoogleNewsErrors, type GoogleNewsResponse, type GoogleNewsResponses, type GooglePatentsData, type GooglePatentsError, type GooglePatentsErrors, type GooglePatentsResponse, type GooglePatentsResponses, type GooglePlayAppData, type GooglePlayAppError, type GooglePlayAppErrors, type GooglePlayAppResponse, type GooglePlayAppResponses, type GooglePlayReviewsData, type GooglePlayReviewsError, type GooglePlayReviewsErrors, type GooglePlayReviewsResponse, type GooglePlayReviewsResponses, type GooglePlaySearchData, type GooglePlaySearchError, type GooglePlaySearchErrors, type GooglePlaySearchResponse, type GooglePlaySearchResponses, type GoogleScholarData, type GoogleScholarError, type GoogleScholarErrors, type GoogleScholarResponse, type GoogleScholarResponses, type GoogleSearchData, type GoogleSearchError, type GoogleSearchErrors, type GoogleSearchResponse, type GoogleSearchResponses, type GoogleSuggestData, type GoogleSuggestError, type GoogleSuggestErrors, type GoogleSuggestResponse, type GoogleSuggestResponses, type GoogleTrendsInterestData, type GoogleTrendsInterestError, type GoogleTrendsInterestErrors, type GoogleTrendsInterestResponse, type GoogleTrendsInterestResponses, type GoogleTrendsRegionsData, type GoogleTrendsRegionsError, type GoogleTrendsRegionsErrors, type GoogleTrendsRegionsResponse, type GoogleTrendsRegionsResponses, type GoogleTrendsRelatedData, type GoogleTrendsRelatedError, type GoogleTrendsRelatedErrors, type GoogleTrendsRelatedResponse, type GoogleTrendsRelatedResponses, type GoogleTrendsTrendingData, type GoogleTrendsTrendingError, type GoogleTrendsTrendingErrors, type GoogleTrendsTrendingResponse, type GoogleTrendsTrendingResponses, type IndeedJobData, type IndeedJobError, type IndeedJobErrors, type IndeedJobResponse, type IndeedJobResponses, type IndeedSearchData, type IndeedSearchError, type IndeedSearchErrors, type IndeedSearchResponse, type IndeedSearchResponses, type InstagramCommentsData, type InstagramCommentsError, type InstagramCommentsErrors, type InstagramCommentsResponse, type InstagramCommentsResponses, type InstagramPostData, type InstagramPostError, type InstagramPostErrors, type InstagramPostResponse, type InstagramPostResponses, type InstagramProfileData, type InstagramProfileError, type InstagramProfileErrors, type InstagramProfileReelsData, type InstagramProfileReelsError, type InstagramProfileReelsErrors, type InstagramProfileReelsResponse, type InstagramProfileReelsResponses, type InstagramProfileResponse, type InstagramProfileResponses, type InstagramTranscriptData, type InstagramTranscriptError, type InstagramTranscriptErrors, type InstagramTranscriptResponse, type InstagramTranscriptResponses, type LinkedinAdsAdData, type LinkedinAdsAdError, type LinkedinAdsAdErrors, type LinkedinAdsAdResponse, type LinkedinAdsAdResponses, type LinkedinAdsSearchData, type LinkedinAdsSearchError, type LinkedinAdsSearchErrors, type LinkedinAdsSearchResponse, type LinkedinAdsSearchResponses, type LinkedinCompanyData, type LinkedinCompanyError, type LinkedinCompanyErrors, type LinkedinCompanyResponse, type LinkedinCompanyResponses, type LinkedinJobsJobData, type LinkedinJobsJobError, type LinkedinJobsJobErrors, type LinkedinJobsJobResponse, type LinkedinJobsJobResponses, type LinkedinJobsSearchData, type LinkedinJobsSearchError, type LinkedinJobsSearchErrors, type LinkedinJobsSearchResponse, type LinkedinJobsSearchResponses, type LinkedinPostsData, type LinkedinPostsError, type LinkedinPostsErrors, type LinkedinPostsResponse, type LinkedinPostsResponses, type LinkedinProfileData, type LinkedinProfileError, type LinkedinProfileErrors, type LinkedinProfileResponse, type LinkedinProfileResponses, type ListEndpointsData, type ListEndpointsResponse, type ListEndpointsResponses, type LogEntry, type Logs, type LogsQuery, type LumaEventData, type LumaEventError, type LumaEventErrors, type LumaEventResponse, type LumaEventResponses, type LumaEventsData, type LumaEventsError, type LumaEventsErrors, type LumaEventsResponse, type LumaEventsResponses, type MaxTextLength, type MetaAdsAdData, type MetaAdsAdError, type MetaAdsAdErrors, type MetaAdsAdResponse, type MetaAdsAdResponses, type MetaAdsPageData, type MetaAdsPageError, type MetaAdsPageErrors, type MetaAdsPageResponse, type MetaAdsPageResponses, type MetaAdsSearchData, type MetaAdsSearchError, type MetaAdsSearchErrors, type MetaAdsSearchResponse, type MetaAdsSearchResponses, type PinterestBoardData, type PinterestBoardError, type PinterestBoardErrors, type PinterestBoardResponse, type PinterestBoardResponses, type PinterestPinData, type PinterestPinError, type PinterestPinErrors, type PinterestPinResponse, type PinterestPinResponses, type PinterestProfileData, type PinterestProfileError, type PinterestProfileErrors, type PinterestProfileResponse, type PinterestProfileResponses, type PinterestSearchData, type PinterestSearchError, type PinterestSearchErrors, type PinterestSearchResponse, type PinterestSearchResponses, type RealtorPropertyData, type RealtorPropertyError, type RealtorPropertyErrors, type RealtorPropertyResponse, type RealtorPropertyResponses, type RealtorSearchData, type RealtorSearchError, type RealtorSearchErrors, type RealtorSearchResponse, type RealtorSearchResponses, type RedditDiscussionsData, type RedditDiscussionsError, type RedditDiscussionsErrors, type RedditDiscussionsResponse, type RedditDiscussionsResponses, type RedditPostData, type RedditPostError, type RedditPostErrors, type RedditPostResponse, type RedditPostResponses, type RedditSearchData, type RedditSearchError, type RedditSearchErrors, type RedditSearchResponse, type RedditSearchResponses, type RedditSubredditData, type RedditSubredditError, type RedditSubredditErrors, type RedditSubredditResponse, type RedditSubredditResponses, type RedditSubredditsData, type RedditSubredditsError, type RedditSubredditsErrors, type RedditSubredditsResponse, type RedditSubredditsResponses, type RedditUserData, type RedditUserError, type RedditUserErrors, type RedditUserResponse, type RedditUserResponses, Stophy, type StophyClientInput, StophyError, type StophyErrorCode, type StophyOptions, type Surface, type ThreadsPostData, type ThreadsPostError, type ThreadsPostErrors, type ThreadsPostResponse, type ThreadsPostResponses, type ThreadsProfileData, type ThreadsProfileError, type ThreadsProfileErrors, type ThreadsProfilePostsData, type ThreadsProfilePostsError, type ThreadsProfilePostsErrors, type ThreadsProfilePostsResponse, type ThreadsProfilePostsResponses, type ThreadsProfileResponse, type ThreadsProfileResponses, type TiktokAdsAdData, type TiktokAdsAdError, type TiktokAdsAdErrors, type TiktokAdsAdResponse, type TiktokAdsAdResponses, type TiktokAdsSearchData, type TiktokAdsSearchError, type TiktokAdsSearchErrors, type TiktokAdsSearchResponse, type TiktokAdsSearchResponses, type TiktokCommentsData, type TiktokCommentsError, type TiktokCommentsErrors, type TiktokCommentsResponse, type TiktokCommentsResponses, type TiktokHashtagData, type TiktokHashtagError, type TiktokHashtagErrors, type TiktokHashtagResponse, type TiktokHashtagResponses, type TiktokProfileData, type TiktokProfileError, type TiktokProfileErrors, type TiktokProfileResponse, type TiktokProfileResponses, type TiktokSearchData, type TiktokSearchError, type TiktokSearchErrors, type TiktokSearchResponse, type TiktokSearchResponses, type TiktokShopProductData, type TiktokShopProductError, type TiktokShopProductErrors, type TiktokShopProductResponse, type TiktokShopProductResponses, type TiktokShopProductsData, type TiktokShopProductsError, type TiktokShopProductsErrors, type TiktokShopProductsResponse, type TiktokShopProductsResponses, type TiktokShopReviewsData, type TiktokShopReviewsError, type TiktokShopReviewsErrors, type TiktokShopReviewsResponse, type TiktokShopReviewsResponses, type TiktokShopSearchData, type TiktokShopSearchError, type TiktokShopSearchErrors, type TiktokShopSearchResponse, type TiktokShopSearchResponses, type TiktokSoundData, type TiktokSoundError, type TiktokSoundErrors, type TiktokSoundResponse, type TiktokSoundResponses, type TiktokTranscriptData, type TiktokTranscriptError, type TiktokTranscriptErrors, type TiktokTranscriptResponse, type TiktokTranscriptResponses, type TiktokVideoData, type TiktokVideoError, type TiktokVideoErrors, type TiktokVideoResponse, type TiktokVideoResponses, type TripadvisorPlaceData, type TripadvisorPlaceError, type TripadvisorPlaceErrors, type TripadvisorPlaceResponse, type TripadvisorPlaceResponses, type TripadvisorReviewsData, type TripadvisorReviewsError, type TripadvisorReviewsErrors, type TripadvisorReviewsResponse, type TripadvisorReviewsResponses, type TripadvisorSearchData, type TripadvisorSearchError, type TripadvisorSearchErrors, type TripadvisorSearchResponse, type TripadvisorSearchResponses, type TrustpilotCompanyData, type TrustpilotCompanyError, type TrustpilotCompanyErrors, type TrustpilotCompanyResponse, type TrustpilotCompanyResponses, type TrustpilotCompanyReviewsData, type TrustpilotCompanyReviewsError, type TrustpilotCompanyReviewsErrors, type TrustpilotCompanyReviewsResponse, type TrustpilotCompanyReviewsResponses, type TrustpilotSearchData, type TrustpilotSearchError, type TrustpilotSearchErrors, type TrustpilotSearchResponse, type TrustpilotSearchResponses, type UpworkJobData, type UpworkJobError, type UpworkJobErrors, type UpworkJobResponse, type UpworkJobResponses, type UpworkSearchData, type UpworkSearchError, type UpworkSearchErrors, type UpworkSearchResponse, type UpworkSearchResponses, type Usage, type WebBatchCancelData, type WebBatchCancelError, type WebBatchCancelErrors, type WebBatchCancelResponse, type WebBatchCancelResponses, type WebBatchData, type WebBatchError, type WebBatchErrors, type WebBatchResponse, type WebBatchResponses, type WebBatchStatusData, type WebBatchStatusError, type WebBatchStatusErrors, type WebBatchStatusResponse, type WebBatchStatusResponses, type WebContactsData, type WebContactsError, type WebContactsErrors, type WebContactsResponse, type WebContactsResponses, type WebCrawlCancelData, type WebCrawlCancelError, type WebCrawlCancelErrors, type WebCrawlCancelResponse, type WebCrawlCancelResponses, type WebCrawlData, type WebCrawlError, type WebCrawlErrors, type WebCrawlResponse, type WebCrawlResponses, type WebCrawlStartData, type WebCrawlStartError, type WebCrawlStartErrors, type WebCrawlStartResponse, type WebCrawlStartResponses, type WebCrawlStatusData, type WebCrawlStatusError, type WebCrawlStatusErrors, type WebCrawlStatusResponse, type WebCrawlStatusResponses, type WebImagesData, type WebImagesError, type WebImagesErrors, type WebImagesResponse, type WebImagesResponses, type WebMapData, type WebMapError, type WebMapErrors, type WebMapResponse, type WebMapResponses, type WebNewsData, type WebNewsError, type WebNewsErrors, type WebNewsResponse, type WebNewsResponses, type WebParseData, type WebParseError, type WebParseErrors, type WebParseResponse, type WebParseResponses, type WebScrapeData, type WebScrapeError, type WebScrapeErrors, type WebScrapeResponse, type WebScrapeResponses, type GoogleSearchData as WebSearchData, type GoogleSearchError as WebSearchError, type GoogleSearchErrors as WebSearchErrors, type GoogleSearchResponse as WebSearchResponse, type GoogleSearchResponses as WebSearchResponses, type XPostData, type XPostError, type XPostErrors, type XPostResponse, type XPostResponses, type XProfileData, type XProfileError, type XProfileErrors, type XProfilePostsData, type XProfilePostsError, type XProfilePostsErrors, type XProfilePostsResponse, type XProfilePostsResponses, type XProfileResponse, type XProfileResponses, type YelpBusinessData, type YelpBusinessError, type YelpBusinessErrors, type YelpBusinessResponse, type YelpBusinessResponses, type YelpBusinessReviewsData, type YelpBusinessReviewsError, type YelpBusinessReviewsErrors, type YelpBusinessReviewsResponse, type YelpBusinessReviewsResponses, type YelpSearchData, type YelpSearchError, type YelpSearchErrors, type YelpSearchResponse, type YelpSearchResponses, type YoutubeChannelData, type YoutubeChannelError, type YoutubeChannelErrors, type YoutubeChannelResponse, type YoutubeChannelResponses, type YoutubeCommentsData, type YoutubeCommentsError, type YoutubeCommentsErrors, type YoutubeCommentsResponse, type YoutubeCommentsResponses, type YoutubePlaylistData, type YoutubePlaylistError, type YoutubePlaylistErrors, type YoutubePlaylistResponse, type YoutubePlaylistResponses, type YoutubePostData, type YoutubePostError, type YoutubePostErrors, type YoutubePostResponse, type YoutubePostResponses, type YoutubeSearchData, type YoutubeSearchError, type YoutubeSearchErrors, type YoutubeSearchResponse, type YoutubeSearchResponses, type YoutubeSuggestData, type YoutubeSuggestError, type YoutubeSuggestErrors, type YoutubeSuggestResponse, type YoutubeSuggestResponses, type YoutubeTranscriptData, type YoutubeTranscriptError, type YoutubeTranscriptErrors, type YoutubeTranscriptResponse, type YoutubeTranscriptResponses, type YoutubeVideoData, type YoutubeVideoError, type YoutubeVideoErrors, type YoutubeVideoResponse, type YoutubeVideoResponses, type ZillowPropertyData, type ZillowPropertyError, type ZillowPropertyErrors, type ZillowPropertyResponse, type ZillowPropertyResponses, type ZillowSearchData, type ZillowSearchError, type ZillowSearchErrors, type ZillowSearchResponse, type ZillowSearchResponses, type _Error, Stophy as default };
16373
+ export { type AirbnbListingData, type AirbnbListingError, type AirbnbListingErrors, type AirbnbListingResponse, type AirbnbListingResponses, type AirbnbReviewsData, type AirbnbReviewsError, type AirbnbReviewsErrors, type AirbnbReviewsResponse, type AirbnbReviewsResponses, type AirbnbSearchData, type AirbnbSearchError, type AirbnbSearchErrors, type AirbnbSearchResponse, type AirbnbSearchResponses, type AmazonBestsellersData, type AmazonBestsellersError, type AmazonBestsellersErrors, type AmazonBestsellersResponse, type AmazonBestsellersResponses, type AmazonProductData, type AmazonProductError, type AmazonProductErrors, type AmazonProductResponse, type AmazonProductResponses, type AmazonReviewsData, type AmazonReviewsError, type AmazonReviewsErrors, type AmazonReviewsResponse, type AmazonReviewsResponses, type AmazonSearchData, type AmazonSearchError, type AmazonSearchErrors, type AmazonSearchResponse, type AmazonSearchResponses, type AmazonSuggestData, type AmazonSuggestError, type AmazonSuggestErrors, type AmazonSuggestResponse, type AmazonSuggestResponses, type AppstoreAppData, type AppstoreAppError, type AppstoreAppErrors, type AppstoreAppResponse, type AppstoreAppResponses, type AppstoreReviewsData, type AppstoreReviewsError, type AppstoreReviewsErrors, type AppstoreReviewsResponse, type AppstoreReviewsResponses, type AppstoreSearchData, type AppstoreSearchError, type AppstoreSearchErrors, type AppstoreSearchResponse, type AppstoreSearchResponses, type AppstoreTopData, type AppstoreTopError, type AppstoreTopErrors, type AppstoreTopResponse, type AppstoreTopResponses, type BookingHotelData, type BookingHotelError, type BookingHotelErrors, type BookingHotelResponse, type BookingHotelResponses, type BookingHotelReviewsData, type BookingHotelReviewsError, type BookingHotelReviewsErrors, type BookingHotelReviewsResponse, type BookingHotelReviewsResponses, type BookingSearchData, type BookingSearchError, type BookingSearchErrors, type BookingSearchResponse, type BookingSearchResponses, type CallOptions, type CareersJobData, type CareersJobError, type CareersJobErrors, type CareersJobResponse, type CareersJobResponses, type CareersJobsData, type CareersJobsError, type CareersJobsErrors, type CareersJobsResponse, type CareersJobsResponses, type ChatgptSearchData, type ChatgptSearchError, type ChatgptSearchErrors, type ChatgptSearchResponse, type ChatgptSearchResponses, type ClientOptions, type CraigslistSearchData, type CraigslistSearchError, type CraigslistSearchErrors, type CraigslistSearchResponse, type CraigslistSearchResponses, type EbayItemData, type EbayItemError, type EbayItemErrors, type EbayItemResponse, type EbayItemResponses, type EbaySearchData, type EbaySearchError, type EbaySearchErrors, type EbaySearchResponse, type EbaySearchResponses, type EndpointCatalog, type ExpediaHotelsData, type ExpediaHotelsError, type ExpediaHotelsErrors, type ExpediaHotelsResponse, type ExpediaHotelsResponses, type FacebookMarketplaceSearchData, type FacebookMarketplaceSearchError, type FacebookMarketplaceSearchErrors, type FacebookMarketplaceSearchResponse, type FacebookMarketplaceSearchResponses, type FacebookPageData, type FacebookPageError, type FacebookPageErrors, type FacebookPagePostsData, type FacebookPagePostsError, type FacebookPagePostsErrors, type FacebookPagePostsResponse, type FacebookPagePostsResponses, type FacebookPageResponse, type FacebookPageResponses, type FacebookPostCommentsData, type FacebookPostCommentsError, type FacebookPostCommentsErrors, type FacebookPostCommentsResponse, type FacebookPostCommentsResponses, type FacebookPostData, type FacebookPostError, type FacebookPostErrors, type FacebookPostResponse, type FacebookPostResponses, type FetchLike, type GeminiSearchData, type GeminiSearchError, type GeminiSearchErrors, type GeminiSearchResponse, type GeminiSearchResponses, type GlassdoorCompanyData, type GlassdoorCompanyError, type GlassdoorCompanyErrors, type GlassdoorCompanyResponse, type GlassdoorCompanyResponses, type GlassdoorCompanyReviewsData, type GlassdoorCompanyReviewsError, type GlassdoorCompanyReviewsErrors, type GlassdoorCompanyReviewsResponse, type GlassdoorCompanyReviewsResponses, type GlassdoorCompanySalariesData, type GlassdoorCompanySalariesError, type GlassdoorCompanySalariesErrors, type GlassdoorCompanySalariesResponse, type GlassdoorCompanySalariesResponses, type GoogleAdsAdData, type GoogleAdsAdError, type GoogleAdsAdErrors, type GoogleAdsAdResponse, type GoogleAdsAdResponses, type GoogleAdsAdvertisersData, type GoogleAdsAdvertisersError, type GoogleAdsAdvertisersErrors, type GoogleAdsAdvertisersResponse, type GoogleAdsAdvertisersResponses, type GoogleAdsSearchData, type GoogleAdsSearchError, type GoogleAdsSearchErrors, type GoogleAdsSearchResponse, type GoogleAdsSearchResponses, type GoogleFlightsData, type GoogleFlightsError, type GoogleFlightsErrors, type GoogleFlightsResponse, type GoogleFlightsResponses, type GoogleHotelsData, type GoogleHotelsError, type GoogleHotelsErrors, type GoogleHotelsResponse, type GoogleHotelsResponses, type GoogleImagesData, type GoogleImagesError, type GoogleImagesErrors, type GoogleImagesResponse, type GoogleImagesResponses, type GoogleMapsPlaceData, type GoogleMapsPlaceError, type GoogleMapsPlaceErrors, type GoogleMapsPlaceResponse, type GoogleMapsPlaceResponses, type GoogleMapsReviewsData, type GoogleMapsReviewsError, type GoogleMapsReviewsErrors, type GoogleMapsReviewsResponse, type GoogleMapsReviewsResponses, type GoogleMapsSearchData, type GoogleMapsSearchError, type GoogleMapsSearchErrors, type GoogleMapsSearchResponse, type GoogleMapsSearchResponses, type GoogleNewsData, type GoogleNewsError, type GoogleNewsErrors, type GoogleNewsResponse, type GoogleNewsResponses, type GooglePatentsData, type GooglePatentsError, type GooglePatentsErrors, type GooglePatentsResponse, type GooglePatentsResponses, type GooglePlayAppData, type GooglePlayAppError, type GooglePlayAppErrors, type GooglePlayAppResponse, type GooglePlayAppResponses, type GooglePlayReviewsData, type GooglePlayReviewsError, type GooglePlayReviewsErrors, type GooglePlayReviewsResponse, type GooglePlayReviewsResponses, type GooglePlaySearchData, type GooglePlaySearchError, type GooglePlaySearchErrors, type GooglePlaySearchResponse, type GooglePlaySearchResponses, type GoogleScholarData, type GoogleScholarError, type GoogleScholarErrors, type GoogleScholarResponse, type GoogleScholarResponses, type GoogleSearchData, type GoogleSearchError, type GoogleSearchErrors, type GoogleSearchResponse, type GoogleSearchResponses, type GoogleSuggestData, type GoogleSuggestError, type GoogleSuggestErrors, type GoogleSuggestResponse, type GoogleSuggestResponses, type GoogleTrendsInterestData, type GoogleTrendsInterestError, type GoogleTrendsInterestErrors, type GoogleTrendsInterestResponse, type GoogleTrendsInterestResponses, type GoogleTrendsRegionsData, type GoogleTrendsRegionsError, type GoogleTrendsRegionsErrors, type GoogleTrendsRegionsResponse, type GoogleTrendsRegionsResponses, type GoogleTrendsRelatedData, type GoogleTrendsRelatedError, type GoogleTrendsRelatedErrors, type GoogleTrendsRelatedResponse, type GoogleTrendsRelatedResponses, type GoogleTrendsTrendingData, type GoogleTrendsTrendingError, type GoogleTrendsTrendingErrors, type GoogleTrendsTrendingResponse, type GoogleTrendsTrendingResponses, type IndeedJobData, type IndeedJobError, type IndeedJobErrors, type IndeedJobResponse, type IndeedJobResponses, type IndeedSearchData, type IndeedSearchError, type IndeedSearchErrors, type IndeedSearchResponse, type IndeedSearchResponses, type InstagramCommentsData, type InstagramCommentsError, type InstagramCommentsErrors, type InstagramCommentsResponse, type InstagramCommentsResponses, type InstagramPostData, type InstagramPostError, type InstagramPostErrors, type InstagramPostResponse, type InstagramPostResponses, type InstagramProfileData, type InstagramProfileError, type InstagramProfileErrors, type InstagramProfileReelsData, type InstagramProfileReelsError, type InstagramProfileReelsErrors, type InstagramProfileReelsResponse, type InstagramProfileReelsResponses, type InstagramProfileResponse, type InstagramProfileResponses, type InstagramTranscriptData, type InstagramTranscriptError, type InstagramTranscriptErrors, type InstagramTranscriptResponse, type InstagramTranscriptResponses, type LinkedinAdsAdData, type LinkedinAdsAdError, type LinkedinAdsAdErrors, type LinkedinAdsAdResponse, type LinkedinAdsAdResponses, type LinkedinAdsSearchData, type LinkedinAdsSearchError, type LinkedinAdsSearchErrors, type LinkedinAdsSearchResponse, type LinkedinAdsSearchResponses, type LinkedinCompanyData, type LinkedinCompanyError, type LinkedinCompanyErrors, type LinkedinCompanyResponse, type LinkedinCompanyResponses, type LinkedinJobsJobData, type LinkedinJobsJobError, type LinkedinJobsJobErrors, type LinkedinJobsJobResponse, type LinkedinJobsJobResponses, type LinkedinJobsSearchData, type LinkedinJobsSearchError, type LinkedinJobsSearchErrors, type LinkedinJobsSearchResponse, type LinkedinJobsSearchResponses, type LinkedinPostsData, type LinkedinPostsError, type LinkedinPostsErrors, type LinkedinPostsResponse, type LinkedinPostsResponses, type LinkedinProfileData, type LinkedinProfileError, type LinkedinProfileErrors, type LinkedinProfileResponse, type LinkedinProfileResponses, type ListEndpointsData, type ListEndpointsResponse, type ListEndpointsResponses, type LogEntry, type Logs, type LogsQuery, type LumaEventData, type LumaEventError, type LumaEventErrors, type LumaEventResponse, type LumaEventResponses, type LumaEventsData, type LumaEventsError, type LumaEventsErrors, type LumaEventsResponse, type LumaEventsResponses, type MaxTextLength, type MetaAdsAdData, type MetaAdsAdError, type MetaAdsAdErrors, type MetaAdsAdResponse, type MetaAdsAdResponses, type MetaAdsPageData, type MetaAdsPageError, type MetaAdsPageErrors, type MetaAdsPageResponse, type MetaAdsPageResponses, type MetaAdsSearchData, type MetaAdsSearchError, type MetaAdsSearchErrors, type MetaAdsSearchResponse, type MetaAdsSearchResponses, type PinterestBoardData, type PinterestBoardError, type PinterestBoardErrors, type PinterestBoardResponse, type PinterestBoardResponses, type PinterestPinData, type PinterestPinError, type PinterestPinErrors, type PinterestPinResponse, type PinterestPinResponses, type PinterestProfileData, type PinterestProfileError, type PinterestProfileErrors, type PinterestProfileResponse, type PinterestProfileResponses, type PinterestSearchData, type PinterestSearchError, type PinterestSearchErrors, type PinterestSearchResponse, type PinterestSearchResponses, type RealtorPropertyData, type RealtorPropertyError, type RealtorPropertyErrors, type RealtorPropertyResponse, type RealtorPropertyResponses, type RealtorSearchData, type RealtorSearchError, type RealtorSearchErrors, type RealtorSearchResponse, type RealtorSearchResponses, type RedditDiscussionsData, type RedditDiscussionsError, type RedditDiscussionsErrors, type RedditDiscussionsResponse, type RedditDiscussionsResponses, type RedditPostData, type RedditPostError, type RedditPostErrors, type RedditPostResponse, type RedditPostResponses, type RedditSearchData, type RedditSearchError, type RedditSearchErrors, type RedditSearchResponse, type RedditSearchResponses, type RedditSubredditData, type RedditSubredditError, type RedditSubredditErrors, type RedditSubredditResponse, type RedditSubredditResponses, type RedditSubredditsData, type RedditSubredditsError, type RedditSubredditsErrors, type RedditSubredditsResponse, type RedditSubredditsResponses, type RedditUserData, type RedditUserError, type RedditUserErrors, type RedditUserResponse, type RedditUserResponses, Stophy, type StophyClientInput, StophyError, type StophyErrorCode, type StophyOptions, Surface, type ThreadsPostData, type ThreadsPostError, type ThreadsPostErrors, type ThreadsPostResponse, type ThreadsPostResponses, type ThreadsProfileData, type ThreadsProfileError, type ThreadsProfileErrors, type ThreadsProfilePostsData, type ThreadsProfilePostsError, type ThreadsProfilePostsErrors, type ThreadsProfilePostsResponse, type ThreadsProfilePostsResponses, type ThreadsProfileResponse, type ThreadsProfileResponses, type TiktokAdsAdData, type TiktokAdsAdError, type TiktokAdsAdErrors, type TiktokAdsAdResponse, type TiktokAdsAdResponses, type TiktokAdsSearchData, type TiktokAdsSearchError, type TiktokAdsSearchErrors, type TiktokAdsSearchResponse, type TiktokAdsSearchResponses, type TiktokCommentsData, type TiktokCommentsError, type TiktokCommentsErrors, type TiktokCommentsResponse, type TiktokCommentsResponses, type TiktokHashtagData, type TiktokHashtagError, type TiktokHashtagErrors, type TiktokHashtagResponse, type TiktokHashtagResponses, type TiktokProfileData, type TiktokProfileError, type TiktokProfileErrors, type TiktokProfileResponse, type TiktokProfileResponses, type TiktokSearchData, type TiktokSearchError, type TiktokSearchErrors, type TiktokSearchResponse, type TiktokSearchResponses, type TiktokShopProductData, type TiktokShopProductError, type TiktokShopProductErrors, type TiktokShopProductResponse, type TiktokShopProductResponses, type TiktokShopProductsData, type TiktokShopProductsError, type TiktokShopProductsErrors, type TiktokShopProductsResponse, type TiktokShopProductsResponses, type TiktokShopReviewsData, type TiktokShopReviewsError, type TiktokShopReviewsErrors, type TiktokShopReviewsResponse, type TiktokShopReviewsResponses, type TiktokShopSearchData, type TiktokShopSearchError, type TiktokShopSearchErrors, type TiktokShopSearchResponse, type TiktokShopSearchResponses, type TiktokSoundData, type TiktokSoundError, type TiktokSoundErrors, type TiktokSoundResponse, type TiktokSoundResponses, type TiktokTranscriptData, type TiktokTranscriptError, type TiktokTranscriptErrors, type TiktokTranscriptResponse, type TiktokTranscriptResponses, type TiktokVideoData, type TiktokVideoError, type TiktokVideoErrors, type TiktokVideoResponse, type TiktokVideoResponses, type TripadvisorPlaceData, type TripadvisorPlaceError, type TripadvisorPlaceErrors, type TripadvisorPlaceResponse, type TripadvisorPlaceResponses, type TripadvisorReviewsData, type TripadvisorReviewsError, type TripadvisorReviewsErrors, type TripadvisorReviewsResponse, type TripadvisorReviewsResponses, type TripadvisorSearchData, type TripadvisorSearchError, type TripadvisorSearchErrors, type TripadvisorSearchResponse, type TripadvisorSearchResponses, type TrustpilotCompanyData, type TrustpilotCompanyError, type TrustpilotCompanyErrors, type TrustpilotCompanyResponse, type TrustpilotCompanyResponses, type TrustpilotCompanyReviewsData, type TrustpilotCompanyReviewsError, type TrustpilotCompanyReviewsErrors, type TrustpilotCompanyReviewsResponse, type TrustpilotCompanyReviewsResponses, type TrustpilotSearchData, type TrustpilotSearchError, type TrustpilotSearchErrors, type TrustpilotSearchResponse, type TrustpilotSearchResponses, type UpworkJobData, type UpworkJobError, type UpworkJobErrors, type UpworkJobResponse, type UpworkJobResponses, type UpworkSearchData, type UpworkSearchError, type UpworkSearchErrors, type UpworkSearchResponse, type UpworkSearchResponses, type Usage, type WebBatchCancelData, type WebBatchCancelError, type WebBatchCancelErrors, type WebBatchCancelResponse, type WebBatchCancelResponses, type WebBatchData, type WebBatchError, type WebBatchErrors, type WebBatchResponse, type WebBatchResponses, type WebBatchStatusData, type WebBatchStatusError, type WebBatchStatusErrors, type WebBatchStatusResponse, type WebBatchStatusResponses, type WebContactsData, type WebContactsError, type WebContactsErrors, type WebContactsResponse, type WebContactsResponses, type WebCrawlCancelData, type WebCrawlCancelError, type WebCrawlCancelErrors, type WebCrawlCancelResponse, type WebCrawlCancelResponses, type WebCrawlData, type WebCrawlError, type WebCrawlErrors, type WebCrawlResponse, type WebCrawlResponses, type WebCrawlStartData, type WebCrawlStartError, type WebCrawlStartErrors, type WebCrawlStartResponse, type WebCrawlStartResponses, type WebCrawlStatusData, type WebCrawlStatusError, type WebCrawlStatusErrors, type WebCrawlStatusResponse, type WebCrawlStatusResponses, type WebImagesData, type WebImagesError, type WebImagesErrors, type WebImagesResponse, type WebImagesResponses, type WebMapData, type WebMapError, type WebMapErrors, type WebMapResponse, type WebMapResponses, type WebNewsData, type WebNewsError, type WebNewsErrors, type WebNewsResponse, type WebNewsResponses, type WebParseData, type WebParseError, type WebParseErrors, type WebParseResponse, type WebParseResponses, type WebScrapeData, type WebScrapeError, type WebScrapeErrors, type WebScrapeResponse, type WebScrapeResponses, type WebSearchData, type WebSearchError, type WebSearchErrors, type WebSearchResponse, type WebSearchResponses, type XPostData, type XPostError, type XPostErrors, type XPostResponse, type XPostResponses, type XProfileData, type XProfileError, type XProfileErrors, type XProfilePostsData, type XProfilePostsError, type XProfilePostsErrors, type XProfilePostsResponse, type XProfilePostsResponses, type XProfileResponse, type XProfileResponses, type YelpBusinessData, type YelpBusinessError, type YelpBusinessErrors, type YelpBusinessResponse, type YelpBusinessResponses, type YelpBusinessReviewsData, type YelpBusinessReviewsError, type YelpBusinessReviewsErrors, type YelpBusinessReviewsResponse, type YelpBusinessReviewsResponses, type YelpSearchData, type YelpSearchError, type YelpSearchErrors, type YelpSearchResponse, type YelpSearchResponses, type YoutubeChannelData, type YoutubeChannelError, type YoutubeChannelErrors, type YoutubeChannelResponse, type YoutubeChannelResponses, type YoutubeCommentsData, type YoutubeCommentsError, type YoutubeCommentsErrors, type YoutubeCommentsResponse, type YoutubeCommentsResponses, type YoutubePlaylistData, type YoutubePlaylistError, type YoutubePlaylistErrors, type YoutubePlaylistResponse, type YoutubePlaylistResponses, type YoutubePostData, type YoutubePostError, type YoutubePostErrors, type YoutubePostResponse, type YoutubePostResponses, type YoutubeSearchData, type YoutubeSearchError, type YoutubeSearchErrors, type YoutubeSearchResponse, type YoutubeSearchResponses, type YoutubeSuggestData, type YoutubeSuggestError, type YoutubeSuggestErrors, type YoutubeSuggestResponse, type YoutubeSuggestResponses, type YoutubeTranscriptData, type YoutubeTranscriptError, type YoutubeTranscriptErrors, type YoutubeTranscriptResponse, type YoutubeTranscriptResponses, type YoutubeVideoData, type YoutubeVideoError, type YoutubeVideoErrors, type YoutubeVideoResponse, type YoutubeVideoResponses, type ZillowPropertyData, type ZillowPropertyError, type ZillowPropertyErrors, type ZillowPropertyResponse, type ZillowPropertyResponses, type ZillowSearchData, type ZillowSearchError, type ZillowSearchErrors, type ZillowSearchResponse, type ZillowSearchResponses, type _Error, Stophy as default };