@keystrokehq/scrapfly 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/capture-screenshot-head.cjs +3 -3
- package/dist/actions/capture-screenshot-head.cjs.map +1 -1
- package/dist/actions/capture-screenshot-head.d.cts +50 -3
- package/dist/actions/capture-screenshot-head.d.cts.map +1 -1
- package/dist/actions/capture-screenshot-head.d.mts +50 -3
- package/dist/actions/capture-screenshot-head.d.mts.map +1 -1
- package/dist/actions/capture-screenshot-head.mjs +3 -3
- package/dist/actions/capture-screenshot-head.mjs.map +1 -1
- package/dist/actions/capture-screenshot.cjs +5 -5
- package/dist/actions/capture-screenshot.cjs.map +1 -1
- package/dist/actions/capture-screenshot.d.cts +44 -3
- package/dist/actions/capture-screenshot.d.cts.map +1 -1
- package/dist/actions/capture-screenshot.d.mts +44 -3
- package/dist/actions/capture-screenshot.d.mts.map +1 -1
- package/dist/actions/capture-screenshot.mjs +5 -5
- package/dist/actions/capture-screenshot.mjs.map +1 -1
- package/dist/actions/create-crawler.cjs +1 -1
- package/dist/actions/create-crawler.cjs.map +1 -1
- package/dist/actions/create-crawler.d.cts +31 -3
- package/dist/actions/create-crawler.d.cts.map +1 -1
- package/dist/actions/create-crawler.d.mts +31 -3
- package/dist/actions/create-crawler.d.mts.map +1 -1
- package/dist/actions/create-crawler.mjs +1 -1
- package/dist/actions/create-crawler.mjs.map +1 -1
- package/dist/actions/extract-data.cjs +1 -1
- package/dist/actions/extract-data.cjs.map +1 -1
- package/dist/actions/extract-data.d.cts +53 -3
- package/dist/actions/extract-data.d.cts.map +1 -1
- package/dist/actions/extract-data.d.mts +53 -3
- package/dist/actions/extract-data.d.mts.map +1 -1
- package/dist/actions/extract-data.mjs +1 -1
- package/dist/actions/extract-data.mjs.map +1 -1
- package/dist/actions/get-account-info.cjs +38 -38
- package/dist/actions/get-account-info.cjs.map +1 -1
- package/dist/actions/get-account-info.d.cts +73 -3
- package/dist/actions/get-account-info.d.cts.map +1 -1
- package/dist/actions/get-account-info.d.mts +73 -3
- package/dist/actions/get-account-info.d.mts.map +1 -1
- package/dist/actions/get-account-info.mjs +38 -38
- package/dist/actions/get-account-info.mjs.map +1 -1
- package/dist/actions/get-crawler-artifact.cjs +5 -5
- package/dist/actions/get-crawler-artifact.cjs.map +1 -1
- package/dist/actions/get-crawler-artifact.d.cts +18 -3
- package/dist/actions/get-crawler-artifact.d.cts.map +1 -1
- package/dist/actions/get-crawler-artifact.d.mts +18 -3
- package/dist/actions/get-crawler-artifact.d.mts.map +1 -1
- package/dist/actions/get-crawler-artifact.mjs +5 -5
- package/dist/actions/get-crawler-artifact.mjs.map +1 -1
- package/dist/actions/get-crawler-contents.cjs +3 -3
- package/dist/actions/get-crawler-contents.cjs.map +1 -1
- package/dist/actions/get-crawler-contents.d.cts +24 -3
- package/dist/actions/get-crawler-contents.d.cts.map +1 -1
- package/dist/actions/get-crawler-contents.d.mts +24 -3
- package/dist/actions/get-crawler-contents.d.mts.map +1 -1
- package/dist/actions/get-crawler-contents.mjs +3 -3
- package/dist/actions/get-crawler-contents.mjs.map +1 -1
- package/dist/actions/get-crawler-status.cjs +12 -12
- package/dist/actions/get-crawler-status.cjs.map +1 -1
- package/dist/actions/get-crawler-status.d.cts +22 -3
- package/dist/actions/get-crawler-status.d.cts.map +1 -1
- package/dist/actions/get-crawler-status.d.mts +22 -3
- package/dist/actions/get-crawler-status.d.mts.map +1 -1
- package/dist/actions/get-crawler-status.mjs +12 -12
- package/dist/actions/get-crawler-status.mjs.map +1 -1
- package/dist/actions/get-crawler-urls.cjs +4 -4
- package/dist/actions/get-crawler-urls.cjs.map +1 -1
- package/dist/actions/get-crawler-urls.d.cts +18 -3
- package/dist/actions/get-crawler-urls.d.cts.map +1 -1
- package/dist/actions/get-crawler-urls.d.mts +18 -3
- package/dist/actions/get-crawler-urls.d.mts.map +1 -1
- package/dist/actions/get-crawler-urls.mjs +4 -4
- package/dist/actions/get-crawler-urls.mjs.map +1 -1
- package/dist/actions/scrape-post.cjs +5 -5
- package/dist/actions/scrape-post.cjs.map +1 -1
- package/dist/actions/scrape-post.d.cts +38 -3
- package/dist/actions/scrape-post.d.cts.map +1 -1
- package/dist/actions/scrape-post.d.mts +38 -3
- package/dist/actions/scrape-post.d.mts.map +1 -1
- package/dist/actions/scrape-post.mjs +5 -5
- package/dist/actions/scrape-post.mjs.map +1 -1
- package/dist/actions/scrape-with-put.cjs +5 -5
- package/dist/actions/scrape-with-put.cjs.map +1 -1
- package/dist/actions/scrape-with-put.d.cts +38 -3
- package/dist/actions/scrape-with-put.d.cts.map +1 -1
- package/dist/actions/scrape-with-put.d.mts +38 -3
- package/dist/actions/scrape-with-put.d.mts.map +1 -1
- package/dist/actions/scrape-with-put.mjs +5 -5
- package/dist/actions/scrape-with-put.mjs.map +1 -1
- package/dist/actions/scrape.cjs +5 -5
- package/dist/actions/scrape.cjs.map +1 -1
- package/dist/actions/scrape.d.cts +48 -3
- package/dist/actions/scrape.d.cts.map +1 -1
- package/dist/actions/scrape.d.mts +48 -3
- package/dist/actions/scrape.d.mts.map +1 -1
- package/dist/actions/scrape.mjs +5 -5
- package/dist/actions/scrape.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -43,7 +43,7 @@ const ScrapflyExtractDataInput = zod.z.object({
|
|
|
43
43
|
const ScrapflyExtractDataOutput = zod.z.object({
|
|
44
44
|
data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Extracted structured data. The structure depends on the extraction method used (model, prompt, or template)."),
|
|
45
45
|
content_type: zod.z.string().describe("Content type of the input document").nullable().optional()
|
|
46
|
-
}).describe("Response model for the extraction API.");
|
|
46
|
+
}).passthrough().describe("Response model for the extraction API.");
|
|
47
47
|
const scrapflyExtractData = require_action.action("SCRAPFLY_EXTRACT_DATA", {
|
|
48
48
|
slug: "scrapfly-extract-data",
|
|
49
49
|
name: "Extract Structured Data",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract-data.cjs","names":["z","action"],"sources":["../../src/actions/extract-data.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapflyExtractDataInput
|
|
1
|
+
{"version":3,"file":"extract-data.cjs","names":["z","action"],"sources":["../../src/actions/extract-data.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapflyExtractDataInput = z.object({\n url: z.string().describe(\"Base URL for converting relative URLs to absolute URLs in the extracted data. Useful when extracting links and images.\").optional(),\n charset: z.string().describe(\"Document charset encoding. Use 'auto' for automatic detection or specify a charset like 'utf-8', 'iso-8859-1', etc.\").optional(),\n content: z.string().describe(\"HTML, text, or structured content to extract data from. This will be sent as the request body.\"),\n content_type: z.enum([\"text/html\", \"text/plain\", \"text/markdown\", \"text/csv\", \"application/json\", \"application/ld+json\", \"application/xml\", \"application/xhtml+xml\"]).describe(\"Content type of the document body. Required to properly parse the input content.\"),\n webhook_name: z.string().describe(\"Webhook name for asynchronous processing. If provided, the extraction will be processed asynchronously and results sent to the webhook.\").optional(),\n extraction_model: z.enum([\"article\", \"event\", \"food_recipe\", \"hotel\", \"hotel_listing\", \"job_listing\", \"job_posting\", \"organization\", \"product\", \"product_listing\", \"real_estate_property\", \"real_estate_property_listing\", \"review_list\", \"search_engine_results\", \"social_media_post\", \"software\", \"stock\", \"vehicle_ad\", \"vehicle_ad_listing\"]).describe(\"AI extraction models for structured data extraction.\").optional(),\n extraction_prompt: z.string().describe(\"Custom LLM prompt for extraction. Use this when you need custom extraction logic beyond predefined models. Cannot be used together with extraction_model or extraction_template.\").optional(),\n extraction_template: z.string().describe(\"JSON extraction template defining custom extraction rules. Cannot be used together with extraction_model or extraction_prompt.\").optional(),\n}).describe(\"Request model for extracting structured data from content.\");\nexport const ScrapflyExtractDataOutput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Extracted structured data. The structure depends on the extraction method used (model, prompt, or template).\"),\n content_type: z.string().describe(\"Content type of the input document\").nullable().optional(),\n}).passthrough().describe(\"Response model for the extraction API.\");\n\nexport const scrapflyExtractData = action(\"SCRAPFLY_EXTRACT_DATA\", {\n slug: \"scrapfly-extract-data\",\n name: \"Extract Structured Data\",\n description: \"Tool to extract structured data from HTML or other content using AI models, LLM prompts, or custom templates. Use when you need to parse web pages or documents into structured JSON data. Supports predefined extraction models for common types (articles, products, events) or custom extraction via prompts/templates.\",\n input: ScrapflyExtractDataInput,\n output: ScrapflyExtractDataOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;CAC5J,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS;CAC7J,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;CAC7H,cAAcA,IAAAA,EAAE,KAAK;EAAC;EAAa;EAAc;EAAiB;EAAY;EAAoB;EAAuB;EAAmB;CAAuB,CAAC,CAAC,CAAC,SAAS,kFAAkF;CACjQ,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;CACtL,kBAAkBA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAS;EAAe;EAAS;EAAiB;EAAe;EAAe;EAAgB;EAAW;EAAmB;EAAwB;EAAgC;EAAe;EAAyB;EAAqB;EAAY;EAAS;EAAc;CAAoB,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC5Z,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;CACpO,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;AACtL,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8GAA8G;CAC/J,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,59 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/extract-data.d.ts
|
|
4
|
-
declare const ScrapflyExtractDataInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ScrapflyExtractDataInput: z.ZodObject<{
|
|
5
|
+
url: z.ZodOptional<z.ZodString>;
|
|
6
|
+
charset: z.ZodOptional<z.ZodString>;
|
|
7
|
+
content: z.ZodString;
|
|
8
|
+
content_type: z.ZodEnum<{
|
|
9
|
+
"text/html": "text/html";
|
|
10
|
+
"text/plain": "text/plain";
|
|
11
|
+
"text/markdown": "text/markdown";
|
|
12
|
+
"text/csv": "text/csv";
|
|
13
|
+
"application/json": "application/json";
|
|
14
|
+
"application/ld+json": "application/ld+json";
|
|
15
|
+
"application/xml": "application/xml";
|
|
16
|
+
"application/xhtml+xml": "application/xhtml+xml";
|
|
17
|
+
}>;
|
|
18
|
+
webhook_name: z.ZodOptional<z.ZodString>;
|
|
19
|
+
extraction_model: z.ZodOptional<z.ZodEnum<{
|
|
20
|
+
organization: "organization";
|
|
21
|
+
article: "article";
|
|
22
|
+
event: "event";
|
|
23
|
+
food_recipe: "food_recipe";
|
|
24
|
+
hotel: "hotel";
|
|
25
|
+
hotel_listing: "hotel_listing";
|
|
26
|
+
job_listing: "job_listing";
|
|
27
|
+
job_posting: "job_posting";
|
|
28
|
+
product: "product";
|
|
29
|
+
product_listing: "product_listing";
|
|
30
|
+
real_estate_property: "real_estate_property";
|
|
31
|
+
real_estate_property_listing: "real_estate_property_listing";
|
|
32
|
+
review_list: "review_list";
|
|
33
|
+
search_engine_results: "search_engine_results";
|
|
34
|
+
social_media_post: "social_media_post";
|
|
35
|
+
software: "software";
|
|
36
|
+
stock: "stock";
|
|
37
|
+
vehicle_ad: "vehicle_ad";
|
|
38
|
+
vehicle_ad_listing: "vehicle_ad_listing";
|
|
39
|
+
}>>;
|
|
40
|
+
extraction_prompt: z.ZodOptional<z.ZodString>;
|
|
41
|
+
extraction_template: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
declare const ScrapflyExtractDataOutput: z.ZodObject<{
|
|
44
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
45
|
+
content_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
}, z.core.$loose>;
|
|
47
|
+
declare const scrapflyExtractData: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
48
|
+
content: string;
|
|
49
|
+
content_type: "text/html" | "text/plain" | "text/markdown" | "text/csv" | "application/json" | "application/ld+json" | "application/xml" | "application/xhtml+xml";
|
|
50
|
+
url?: string | undefined;
|
|
51
|
+
charset?: string | undefined;
|
|
52
|
+
webhook_name?: string | undefined;
|
|
53
|
+
extraction_model?: "organization" | "article" | "event" | "food_recipe" | "hotel" | "hotel_listing" | "job_listing" | "job_posting" | "product" | "product_listing" | "real_estate_property" | "real_estate_property_listing" | "review_list" | "search_engine_results" | "social_media_post" | "software" | "stock" | "vehicle_ad" | "vehicle_ad_listing" | undefined;
|
|
54
|
+
extraction_prompt?: string | undefined;
|
|
55
|
+
extraction_template?: string | undefined;
|
|
56
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
57
|
//#endregion
|
|
8
58
|
export { scrapflyExtractData };
|
|
9
59
|
//# sourceMappingURL=extract-data.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract-data.d.cts","names":[],"sources":["../../src/actions/extract-data.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"extract-data.d.cts","names":[],"sources":["../../src/actions/extract-data.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAUxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -1,9 +1,59 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/extract-data.d.ts
|
|
4
|
-
declare const ScrapflyExtractDataInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ScrapflyExtractDataInput: z.ZodObject<{
|
|
5
|
+
url: z.ZodOptional<z.ZodString>;
|
|
6
|
+
charset: z.ZodOptional<z.ZodString>;
|
|
7
|
+
content: z.ZodString;
|
|
8
|
+
content_type: z.ZodEnum<{
|
|
9
|
+
"text/html": "text/html";
|
|
10
|
+
"text/plain": "text/plain";
|
|
11
|
+
"text/markdown": "text/markdown";
|
|
12
|
+
"text/csv": "text/csv";
|
|
13
|
+
"application/json": "application/json";
|
|
14
|
+
"application/ld+json": "application/ld+json";
|
|
15
|
+
"application/xml": "application/xml";
|
|
16
|
+
"application/xhtml+xml": "application/xhtml+xml";
|
|
17
|
+
}>;
|
|
18
|
+
webhook_name: z.ZodOptional<z.ZodString>;
|
|
19
|
+
extraction_model: z.ZodOptional<z.ZodEnum<{
|
|
20
|
+
organization: "organization";
|
|
21
|
+
article: "article";
|
|
22
|
+
event: "event";
|
|
23
|
+
food_recipe: "food_recipe";
|
|
24
|
+
hotel: "hotel";
|
|
25
|
+
hotel_listing: "hotel_listing";
|
|
26
|
+
job_listing: "job_listing";
|
|
27
|
+
job_posting: "job_posting";
|
|
28
|
+
product: "product";
|
|
29
|
+
product_listing: "product_listing";
|
|
30
|
+
real_estate_property: "real_estate_property";
|
|
31
|
+
real_estate_property_listing: "real_estate_property_listing";
|
|
32
|
+
review_list: "review_list";
|
|
33
|
+
search_engine_results: "search_engine_results";
|
|
34
|
+
social_media_post: "social_media_post";
|
|
35
|
+
software: "software";
|
|
36
|
+
stock: "stock";
|
|
37
|
+
vehicle_ad: "vehicle_ad";
|
|
38
|
+
vehicle_ad_listing: "vehicle_ad_listing";
|
|
39
|
+
}>>;
|
|
40
|
+
extraction_prompt: z.ZodOptional<z.ZodString>;
|
|
41
|
+
extraction_template: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
declare const ScrapflyExtractDataOutput: z.ZodObject<{
|
|
44
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
45
|
+
content_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
}, z.core.$loose>;
|
|
47
|
+
declare const scrapflyExtractData: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
48
|
+
content: string;
|
|
49
|
+
content_type: "text/html" | "text/plain" | "text/markdown" | "text/csv" | "application/json" | "application/ld+json" | "application/xml" | "application/xhtml+xml";
|
|
50
|
+
url?: string | undefined;
|
|
51
|
+
charset?: string | undefined;
|
|
52
|
+
webhook_name?: string | undefined;
|
|
53
|
+
extraction_model?: "organization" | "article" | "event" | "food_recipe" | "hotel" | "hotel_listing" | "job_listing" | "job_posting" | "product" | "product_listing" | "real_estate_property" | "real_estate_property_listing" | "review_list" | "search_engine_results" | "social_media_post" | "software" | "stock" | "vehicle_ad" | "vehicle_ad_listing" | undefined;
|
|
54
|
+
extraction_prompt?: string | undefined;
|
|
55
|
+
extraction_template?: string | undefined;
|
|
56
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
57
|
//#endregion
|
|
8
58
|
export { scrapflyExtractData };
|
|
9
59
|
//# sourceMappingURL=extract-data.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract-data.d.mts","names":[],"sources":["../../src/actions/extract-data.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"extract-data.d.mts","names":[],"sources":["../../src/actions/extract-data.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAUxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -46,7 +46,7 @@ const scrapflyExtractData = action("SCRAPFLY_EXTRACT_DATA", {
|
|
|
46
46
|
output: z.object({
|
|
47
47
|
data: z.record(z.string(), z.unknown()).describe("Extracted structured data. The structure depends on the extraction method used (model, prompt, or template)."),
|
|
48
48
|
content_type: z.string().describe("Content type of the input document").nullable().optional()
|
|
49
|
-
}).describe("Response model for the extraction API.")
|
|
49
|
+
}).passthrough().describe("Response model for the extraction API.")
|
|
50
50
|
});
|
|
51
51
|
//#endregion
|
|
52
52
|
export { scrapflyExtractData };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract-data.mjs","names":[],"sources":["../../src/actions/extract-data.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapflyExtractDataInput
|
|
1
|
+
{"version":3,"file":"extract-data.mjs","names":[],"sources":["../../src/actions/extract-data.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapflyExtractDataInput = z.object({\n url: z.string().describe(\"Base URL for converting relative URLs to absolute URLs in the extracted data. Useful when extracting links and images.\").optional(),\n charset: z.string().describe(\"Document charset encoding. Use 'auto' for automatic detection or specify a charset like 'utf-8', 'iso-8859-1', etc.\").optional(),\n content: z.string().describe(\"HTML, text, or structured content to extract data from. This will be sent as the request body.\"),\n content_type: z.enum([\"text/html\", \"text/plain\", \"text/markdown\", \"text/csv\", \"application/json\", \"application/ld+json\", \"application/xml\", \"application/xhtml+xml\"]).describe(\"Content type of the document body. Required to properly parse the input content.\"),\n webhook_name: z.string().describe(\"Webhook name for asynchronous processing. If provided, the extraction will be processed asynchronously and results sent to the webhook.\").optional(),\n extraction_model: z.enum([\"article\", \"event\", \"food_recipe\", \"hotel\", \"hotel_listing\", \"job_listing\", \"job_posting\", \"organization\", \"product\", \"product_listing\", \"real_estate_property\", \"real_estate_property_listing\", \"review_list\", \"search_engine_results\", \"social_media_post\", \"software\", \"stock\", \"vehicle_ad\", \"vehicle_ad_listing\"]).describe(\"AI extraction models for structured data extraction.\").optional(),\n extraction_prompt: z.string().describe(\"Custom LLM prompt for extraction. Use this when you need custom extraction logic beyond predefined models. Cannot be used together with extraction_model or extraction_template.\").optional(),\n extraction_template: z.string().describe(\"JSON extraction template defining custom extraction rules. Cannot be used together with extraction_model or extraction_prompt.\").optional(),\n}).describe(\"Request model for extracting structured data from content.\");\nexport const ScrapflyExtractDataOutput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Extracted structured data. The structure depends on the extraction method used (model, prompt, or template).\"),\n content_type: z.string().describe(\"Content type of the input document\").nullable().optional(),\n}).passthrough().describe(\"Response model for the extraction API.\");\n\nexport const scrapflyExtractData = action(\"SCRAPFLY_EXTRACT_DATA\", {\n slug: \"scrapfly-extract-data\",\n name: \"Extract Structured Data\",\n description: \"Tool to extract structured data from HTML or other content using AI models, LLM prompts, or custom templates. Use when you need to parse web pages or documents into structured JSON data. Supports predefined extraction models for common types (articles, products, events) or custom extraction via prompts/templates.\",\n input: ScrapflyExtractDataInput,\n output: ScrapflyExtractDataOutput,\n});\n"],"mappings":";;AAmBA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnBsC,EAAE,OAAO;EAC/C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;EAC5J,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS;EAC7J,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;EAC7H,cAAc,EAAE,KAAK;GAAC;GAAa;GAAc;GAAiB;GAAY;GAAoB;GAAuB;GAAmB;EAAuB,CAAC,CAAC,CAAC,SAAS,kFAAkF;EACjQ,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;EACtL,kBAAkB,EAAE,KAAK;GAAC;GAAW;GAAS;GAAe;GAAS;GAAiB;GAAe;GAAe;GAAgB;GAAW;GAAmB;GAAwB;GAAgC;GAAe;GAAyB;GAAqB;GAAY;GAAS;GAAc;EAAoB,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EAC5Z,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;EACpO,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CACtL,CAAC,CAAC,CAAC,SAAS,4DAUH;CACP,QAVuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8GAA8G;EAC/J,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAOhB;AACV,CAAC"}
|
|
@@ -3,78 +3,78 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/get-account-info.ts
|
|
4
4
|
const ScrapflyGetAccountInfoInput = zod.z.object({}).describe("Request model for retrieving Scrapfly account information. No parameters required.");
|
|
5
5
|
const ScrapflyGetAccountInfo_AccountDetailsSchema = zod.z.object({
|
|
6
|
-
currency: zod.z.string().describe("Currency used for billing"),
|
|
7
|
-
timezone: zod.z.string().describe("Account timezone"),
|
|
8
|
-
suspended: zod.z.boolean().describe("Whether the account is suspended"),
|
|
9
|
-
account_id: zod.z.string().describe("Unique account identifier"),
|
|
6
|
+
currency: zod.z.string().describe("Currency used for billing").nullable(),
|
|
7
|
+
timezone: zod.z.string().describe("Account timezone").nullable(),
|
|
8
|
+
suspended: zod.z.boolean().describe("Whether the account is suspended").nullable(),
|
|
9
|
+
account_id: zod.z.string().describe("Unique account identifier").nullable(),
|
|
10
10
|
suspension_reason: zod.z.string().default("").describe("Reason for suspension if applicable").nullable().optional()
|
|
11
|
-
}).describe("Details about the Scrapfly account.");
|
|
11
|
+
}).passthrough().describe("Details about the Scrapfly account.");
|
|
12
12
|
const ScrapflyGetAccountInfo_ProjectDetailsSchema = zod.z.object({
|
|
13
|
-
name: zod.z.string().describe("Project name"),
|
|
13
|
+
name: zod.z.string().describe("Project name").nullable(),
|
|
14
14
|
tags: zod.z.array(zod.z.string()).describe("Tags assigned to the project").nullable().optional(),
|
|
15
15
|
budget_limit: zod.z.number().describe("Budget limit if set").nullable().optional(),
|
|
16
16
|
budget_spent: zod.z.number().describe("Budget spent so far").nullable().optional(),
|
|
17
|
-
quota_reached: zod.z.boolean().describe("Whether quota has been reached"),
|
|
17
|
+
quota_reached: zod.z.boolean().describe("Whether quota has been reached").nullable(),
|
|
18
18
|
allowed_networks: zod.z.array(zod.z.string()).describe("Allowed networks for this project").nullable().optional(),
|
|
19
|
-
allow_extra_usage: zod.z.boolean().describe("Whether extra usage is allowed"),
|
|
19
|
+
allow_extra_usage: zod.z.boolean().describe("Whether extra usage is allowed").nullable(),
|
|
20
20
|
concurrency_limit: zod.z.number().int().describe("Concurrency limit if set").nullable().optional(),
|
|
21
21
|
scrape_request_count: zod.z.number().int().default(0).describe("Number of scrape requests made").nullable().optional(),
|
|
22
22
|
scrape_request_limit: zod.z.number().int().describe("Scrape request limit if set").nullable().optional()
|
|
23
|
-
}).describe("Details about the Scrapfly project.");
|
|
23
|
+
}).passthrough().describe("Details about the Scrapfly project.");
|
|
24
24
|
const ScrapflyGetAccountInfo_ScrapeUsageSchema = zod.z.object({
|
|
25
|
-
extra: zod.z.number().int().describe("Extra usage count"),
|
|
26
|
-
limit: zod.z.number().int().describe("Total limit for the period"),
|
|
27
|
-
current: zod.z.number().int().describe("Current usage count"),
|
|
28
|
-
remaining: zod.z.number().int().describe("Remaining requests"),
|
|
29
|
-
concurrent_limit: zod.z.number().int().describe("Concurrent request limit"),
|
|
30
|
-
concurrent_usage: zod.z.number().int().describe("Current concurrent usage"),
|
|
31
|
-
concurrent_remaining: zod.z.number().int().describe("Remaining concurrent requests")
|
|
32
|
-
}).describe("Scrape usage information.");
|
|
25
|
+
extra: zod.z.number().int().describe("Extra usage count").nullable(),
|
|
26
|
+
limit: zod.z.number().int().describe("Total limit for the period").nullable(),
|
|
27
|
+
current: zod.z.number().int().describe("Current usage count").nullable(),
|
|
28
|
+
remaining: zod.z.number().int().describe("Remaining requests").nullable(),
|
|
29
|
+
concurrent_limit: zod.z.number().int().describe("Concurrent request limit").nullable(),
|
|
30
|
+
concurrent_usage: zod.z.number().int().describe("Current concurrent usage").nullable(),
|
|
31
|
+
concurrent_remaining: zod.z.number().int().describe("Remaining concurrent requests").nullable()
|
|
32
|
+
}).passthrough().describe("Scrape usage information.");
|
|
33
33
|
const ScrapflyGetAccountInfo_SpiderUsageSchema = zod.z.object({
|
|
34
|
-
limit: zod.z.number().int().describe("Spider limit"),
|
|
35
|
-
current: zod.z.number().int().describe("Current spider usage")
|
|
36
|
-
}).describe("Spider usage information.");
|
|
34
|
+
limit: zod.z.number().int().describe("Spider limit").nullable(),
|
|
35
|
+
current: zod.z.number().int().describe("Current spider usage").nullable()
|
|
36
|
+
}).passthrough().describe("Spider usage information.");
|
|
37
37
|
const ScrapflyGetAccountInfo_ScheduleUsageSchema = zod.z.object({
|
|
38
|
-
limit: zod.z.number().int().describe("Schedule limit"),
|
|
39
|
-
current: zod.z.number().int().describe("Current schedule usage")
|
|
40
|
-
}).describe("Schedule usage information.");
|
|
38
|
+
limit: zod.z.number().int().describe("Schedule limit").nullable(),
|
|
39
|
+
current: zod.z.number().int().describe("Current schedule usage").nullable()
|
|
40
|
+
}).passthrough().describe("Schedule usage information.");
|
|
41
41
|
const ScrapflyGetAccountInfo_UsageDetailsSchema = zod.z.object({
|
|
42
42
|
scrape: ScrapflyGetAccountInfo_ScrapeUsageSchema.nullable(),
|
|
43
43
|
spider: ScrapflyGetAccountInfo_SpiderUsageSchema.nullable(),
|
|
44
44
|
schedule: ScrapflyGetAccountInfo_ScheduleUsageSchema.nullable()
|
|
45
|
-
}).describe("Usage information across different features.");
|
|
45
|
+
}).passthrough().describe("Usage information across different features.");
|
|
46
46
|
const ScrapflyGetAccountInfo_BillingPeriodSchema = zod.z.object({
|
|
47
|
-
end: zod.z.string().describe("Period end date"),
|
|
48
|
-
start: zod.z.string().describe("Period start date")
|
|
49
|
-
}).describe("Billing period information.");
|
|
47
|
+
end: zod.z.string().describe("Period end date").nullable(),
|
|
48
|
+
start: zod.z.string().describe("Period start date").nullable()
|
|
49
|
+
}).passthrough().describe("Billing period information.");
|
|
50
50
|
const ScrapflyGetAccountInfo_PriceDetailsSchema = zod.z.object({
|
|
51
|
-
amount: zod.z.number().describe("Amount in currency"),
|
|
52
|
-
currency: zod.z.string().describe("Currency code")
|
|
53
|
-
}).describe("Price information.");
|
|
51
|
+
amount: zod.z.number().describe("Amount in currency").nullable(),
|
|
52
|
+
currency: zod.z.string().describe("Currency code").nullable()
|
|
53
|
+
}).passthrough().describe("Price information.");
|
|
54
54
|
const ScrapflyGetAccountInfo_BillingDetailsSchema = zod.z.object({
|
|
55
55
|
plan_price: ScrapflyGetAccountInfo_PriceDetailsSchema.nullable(),
|
|
56
56
|
ongoing_payment: ScrapflyGetAccountInfo_PriceDetailsSchema.nullable(),
|
|
57
57
|
current_extra_scrape_request_price: ScrapflyGetAccountInfo_PriceDetailsSchema.nullable(),
|
|
58
58
|
extra_scrape_request_price_per_10k: ScrapflyGetAccountInfo_PriceDetailsSchema.nullable()
|
|
59
|
-
}).describe("Billing information for the subscription.");
|
|
59
|
+
}).passthrough().describe("Billing information for the subscription.");
|
|
60
60
|
const ScrapflyGetAccountInfo_SubscriptionDetailsSchema = zod.z.object({
|
|
61
61
|
usage: ScrapflyGetAccountInfo_UsageDetailsSchema.nullable(),
|
|
62
62
|
period: ScrapflyGetAccountInfo_BillingPeriodSchema.nullable(),
|
|
63
63
|
billing: ScrapflyGetAccountInfo_BillingDetailsSchema.nullable(),
|
|
64
|
-
plan_name: zod.z.string().describe("Name of the subscription plan"),
|
|
65
|
-
max_concurrency: zod.z.number().int().describe("Maximum concurrent requests"),
|
|
66
|
-
extra_scrape_allowed: zod.z.boolean().describe("Whether extra scraping is allowed")
|
|
67
|
-
}).describe("Subscription information.");
|
|
64
|
+
plan_name: zod.z.string().describe("Name of the subscription plan").nullable(),
|
|
65
|
+
max_concurrency: zod.z.number().int().describe("Maximum concurrent requests").nullable(),
|
|
66
|
+
extra_scrape_allowed: zod.z.boolean().describe("Whether extra scraping is allowed").nullable()
|
|
67
|
+
}).passthrough().describe("Subscription information.");
|
|
68
68
|
const ScrapflyGetAccountInfo_AccountDataSchema = zod.z.object({
|
|
69
69
|
account: ScrapflyGetAccountInfo_AccountDetailsSchema.nullable(),
|
|
70
70
|
project: ScrapflyGetAccountInfo_ProjectDetailsSchema.nullable(),
|
|
71
71
|
subscription: ScrapflyGetAccountInfo_SubscriptionDetailsSchema.nullable()
|
|
72
|
-
}).describe("Main data container for account information.");
|
|
72
|
+
}).passthrough().describe("Main data container for account information.");
|
|
73
73
|
const ScrapflyGetAccountInfoOutput = zod.z.object({
|
|
74
74
|
data: ScrapflyGetAccountInfo_AccountDataSchema.nullable(),
|
|
75
75
|
error: zod.z.string().describe("Error message if any").nullable().optional(),
|
|
76
|
-
successfull: zod.z.boolean().describe("Whether the request was successful")
|
|
77
|
-
}).describe("Response model for Scrapfly account information.");
|
|
76
|
+
successfull: zod.z.boolean().describe("Whether the request was successful").nullable()
|
|
77
|
+
}).passthrough().describe("Response model for Scrapfly account information.");
|
|
78
78
|
const scrapflyGetAccountInfo = require_action.action("SCRAPFLY_GET_ACCOUNT_INFO", {
|
|
79
79
|
slug: "scrapfly-get-account-info",
|
|
80
80
|
name: "Get Scrapfly Account Information",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-account-info.cjs","names":["z","action"],"sources":["../../src/actions/get-account-info.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapflyGetAccountInfoInput: z.ZodTypeAny = z.object({}).describe(\"Request model for retrieving Scrapfly account information. No parameters required.\");\nconst ScrapflyGetAccountInfo_AccountDetailsSchema: z.ZodTypeAny = z.object({\n currency: z.string().describe(\"Currency used for billing\"),\n timezone: z.string().describe(\"Account timezone\"),\n suspended: z.boolean().describe(\"Whether the account is suspended\"),\n account_id: z.string().describe(\"Unique account identifier\"),\n suspension_reason: z.string().default(\"\").describe(\"Reason for suspension if applicable\").nullable().optional(),\n}).describe(\"Details about the Scrapfly account.\");\nconst ScrapflyGetAccountInfo_ProjectDetailsSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Project name\"),\n tags: z.array(z.string()).describe(\"Tags assigned to the project\").nullable().optional(),\n budget_limit: z.number().describe(\"Budget limit if set\").nullable().optional(),\n budget_spent: z.number().describe(\"Budget spent so far\").nullable().optional(),\n quota_reached: z.boolean().describe(\"Whether quota has been reached\"),\n allowed_networks: z.array(z.string()).describe(\"Allowed networks for this project\").nullable().optional(),\n allow_extra_usage: z.boolean().describe(\"Whether extra usage is allowed\"),\n concurrency_limit: z.number().int().describe(\"Concurrency limit if set\").nullable().optional(),\n scrape_request_count: z.number().int().default(0).describe(\"Number of scrape requests made\").nullable().optional(),\n scrape_request_limit: z.number().int().describe(\"Scrape request limit if set\").nullable().optional(),\n}).describe(\"Details about the Scrapfly project.\");\nconst ScrapflyGetAccountInfo_ScrapeUsageSchema: z.ZodTypeAny = z.object({\n extra: z.number().int().describe(\"Extra usage count\"),\n limit: z.number().int().describe(\"Total limit for the period\"),\n current: z.number().int().describe(\"Current usage count\"),\n remaining: z.number().int().describe(\"Remaining requests\"),\n concurrent_limit: z.number().int().describe(\"Concurrent request limit\"),\n concurrent_usage: z.number().int().describe(\"Current concurrent usage\"),\n concurrent_remaining: z.number().int().describe(\"Remaining concurrent requests\"),\n}).describe(\"Scrape usage information.\");\nconst ScrapflyGetAccountInfo_SpiderUsageSchema: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Spider limit\"),\n current: z.number().int().describe(\"Current spider usage\"),\n}).describe(\"Spider usage information.\");\nconst ScrapflyGetAccountInfo_ScheduleUsageSchema: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Schedule limit\"),\n current: z.number().int().describe(\"Current schedule usage\"),\n}).describe(\"Schedule usage information.\");\nconst ScrapflyGetAccountInfo_UsageDetailsSchema: z.ZodTypeAny = z.object({\n scrape: ScrapflyGetAccountInfo_ScrapeUsageSchema.nullable(),\n spider: ScrapflyGetAccountInfo_SpiderUsageSchema.nullable(),\n schedule: ScrapflyGetAccountInfo_ScheduleUsageSchema.nullable(),\n}).describe(\"Usage information across different features.\");\nconst ScrapflyGetAccountInfo_BillingPeriodSchema: z.ZodTypeAny = z.object({\n end: z.string().describe(\"Period end date\"),\n start: z.string().describe(\"Period start date\"),\n}).describe(\"Billing period information.\");\nconst ScrapflyGetAccountInfo_PriceDetailsSchema: z.ZodTypeAny = z.object({\n amount: z.number().describe(\"Amount in currency\"),\n currency: z.string().describe(\"Currency code\"),\n}).describe(\"Price information.\");\nconst ScrapflyGetAccountInfo_BillingDetailsSchema: z.ZodTypeAny = z.object({\n plan_price: ScrapflyGetAccountInfo_PriceDetailsSchema.nullable(),\n ongoing_payment: ScrapflyGetAccountInfo_PriceDetailsSchema.nullable(),\n current_extra_scrape_request_price: ScrapflyGetAccountInfo_PriceDetailsSchema.nullable(),\n extra_scrape_request_price_per_10k: ScrapflyGetAccountInfo_PriceDetailsSchema.nullable(),\n}).describe(\"Billing information for the subscription.\");\nconst ScrapflyGetAccountInfo_SubscriptionDetailsSchema: z.ZodTypeAny = z.object({\n usage: ScrapflyGetAccountInfo_UsageDetailsSchema.nullable(),\n period: ScrapflyGetAccountInfo_BillingPeriodSchema.nullable(),\n billing: ScrapflyGetAccountInfo_BillingDetailsSchema.nullable(),\n plan_name: z.string().describe(\"Name of the subscription plan\"),\n max_concurrency: z.number().int().describe(\"Maximum concurrent requests\"),\n extra_scrape_allowed: z.boolean().describe(\"Whether extra scraping is allowed\"),\n}).describe(\"Subscription information.\");\nconst ScrapflyGetAccountInfo_AccountDataSchema: z.ZodTypeAny = z.object({\n account: ScrapflyGetAccountInfo_AccountDetailsSchema.nullable(),\n project: ScrapflyGetAccountInfo_ProjectDetailsSchema.nullable(),\n subscription: ScrapflyGetAccountInfo_SubscriptionDetailsSchema.nullable(),\n}).describe(\"Main data container for account information.\");\nexport const ScrapflyGetAccountInfoOutput: z.ZodTypeAny = z.object({\n data: ScrapflyGetAccountInfo_AccountDataSchema.nullable(),\n error: z.string().describe(\"Error message if any\").nullable().optional(),\n successfull: z.boolean().describe(\"Whether the request was successful\"),\n}).describe(\"Response model for Scrapfly account information.\");\n\nexport const scrapflyGetAccountInfo = action(\"SCRAPFLY_GET_ACCOUNT_INFO\", {\n slug: \"scrapfly-get-account-info\",\n name: \"Get Scrapfly Account Information\",\n description: \"Tool to retrieve Scrapfly account information. Use after authenticating to get API credit balance and usage stats. Returns comprehensive account data including subscription plan, usage statistics, billing info, and project settings.\",\n input: ScrapflyGetAccountInfoInput,\n output: ScrapflyGetAccountInfoOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oFAAoF;AACnK,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACzD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAChD,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC;CAClE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;CACxC,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC;CACpE,kBAAkBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC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,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC9D,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B;CACxE,sBAAsBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC;AAChF,CAAC,CAAC,CAAC,SAAS,2BAA2B;AACvC,MAAM,2CAAyDA,IAAAA,EAAE,OAAO;CACtE,SAAS,4CAA4C,SAAS;CAC9D,SAAS,4CAA4C,SAAS;CAC9D,cAAc,iDAAiD,SAAS;AAC1E,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,MAAM,yCAAyC,SAAS;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC;AACxE,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAE9D,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"get-account-info.cjs","names":["z","action"],"sources":["../../src/actions/get-account-info.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapflyGetAccountInfoInput = z.object({}).describe(\"Request model for retrieving Scrapfly account information. No parameters required.\");\nconst ScrapflyGetAccountInfo_AccountDetailsSchema = z.object({\n currency: z.string().describe(\"Currency used for billing\").nullable(),\n timezone: z.string().describe(\"Account timezone\").nullable(),\n suspended: z.boolean().describe(\"Whether the account is suspended\").nullable(),\n account_id: z.string().describe(\"Unique account identifier\").nullable(),\n suspension_reason: z.string().default(\"\").describe(\"Reason for suspension if applicable\").nullable().optional(),\n}).passthrough().describe(\"Details about the Scrapfly account.\");\nconst ScrapflyGetAccountInfo_ProjectDetailsSchema = z.object({\n name: z.string().describe(\"Project name\").nullable(),\n tags: z.array(z.string()).describe(\"Tags assigned to the project\").nullable().optional(),\n budget_limit: z.number().describe(\"Budget limit if set\").nullable().optional(),\n budget_spent: z.number().describe(\"Budget spent so far\").nullable().optional(),\n quota_reached: z.boolean().describe(\"Whether quota has been reached\").nullable(),\n allowed_networks: z.array(z.string()).describe(\"Allowed networks for this project\").nullable().optional(),\n allow_extra_usage: z.boolean().describe(\"Whether extra usage is allowed\").nullable(),\n concurrency_limit: z.number().int().describe(\"Concurrency limit if set\").nullable().optional(),\n scrape_request_count: z.number().int().default(0).describe(\"Number of scrape requests made\").nullable().optional(),\n scrape_request_limit: z.number().int().describe(\"Scrape request limit if set\").nullable().optional(),\n}).passthrough().describe(\"Details about the Scrapfly project.\");\nconst ScrapflyGetAccountInfo_ScrapeUsageSchema = z.object({\n extra: z.number().int().describe(\"Extra usage count\").nullable(),\n limit: z.number().int().describe(\"Total limit for the period\").nullable(),\n current: z.number().int().describe(\"Current usage count\").nullable(),\n remaining: z.number().int().describe(\"Remaining requests\").nullable(),\n concurrent_limit: z.number().int().describe(\"Concurrent request limit\").nullable(),\n concurrent_usage: z.number().int().describe(\"Current concurrent usage\").nullable(),\n concurrent_remaining: z.number().int().describe(\"Remaining concurrent requests\").nullable(),\n}).passthrough().describe(\"Scrape usage information.\");\nconst ScrapflyGetAccountInfo_SpiderUsageSchema = z.object({\n limit: z.number().int().describe(\"Spider limit\").nullable(),\n current: z.number().int().describe(\"Current spider usage\").nullable(),\n}).passthrough().describe(\"Spider usage information.\");\nconst ScrapflyGetAccountInfo_ScheduleUsageSchema = z.object({\n limit: z.number().int().describe(\"Schedule limit\").nullable(),\n current: z.number().int().describe(\"Current schedule usage\").nullable(),\n}).passthrough().describe(\"Schedule usage information.\");\nconst ScrapflyGetAccountInfo_UsageDetailsSchema = z.object({\n scrape: ScrapflyGetAccountInfo_ScrapeUsageSchema.nullable(),\n spider: ScrapflyGetAccountInfo_SpiderUsageSchema.nullable(),\n schedule: ScrapflyGetAccountInfo_ScheduleUsageSchema.nullable(),\n}).passthrough().describe(\"Usage information across different features.\");\nconst ScrapflyGetAccountInfo_BillingPeriodSchema = z.object({\n end: z.string().describe(\"Period end date\").nullable(),\n start: z.string().describe(\"Period start date\").nullable(),\n}).passthrough().describe(\"Billing period information.\");\nconst ScrapflyGetAccountInfo_PriceDetailsSchema = z.object({\n amount: z.number().describe(\"Amount in currency\").nullable(),\n currency: z.string().describe(\"Currency code\").nullable(),\n}).passthrough().describe(\"Price information.\");\nconst ScrapflyGetAccountInfo_BillingDetailsSchema = z.object({\n plan_price: ScrapflyGetAccountInfo_PriceDetailsSchema.nullable(),\n ongoing_payment: ScrapflyGetAccountInfo_PriceDetailsSchema.nullable(),\n current_extra_scrape_request_price: ScrapflyGetAccountInfo_PriceDetailsSchema.nullable(),\n extra_scrape_request_price_per_10k: ScrapflyGetAccountInfo_PriceDetailsSchema.nullable(),\n}).passthrough().describe(\"Billing information for the subscription.\");\nconst ScrapflyGetAccountInfo_SubscriptionDetailsSchema = z.object({\n usage: ScrapflyGetAccountInfo_UsageDetailsSchema.nullable(),\n period: ScrapflyGetAccountInfo_BillingPeriodSchema.nullable(),\n billing: ScrapflyGetAccountInfo_BillingDetailsSchema.nullable(),\n plan_name: z.string().describe(\"Name of the subscription plan\").nullable(),\n max_concurrency: z.number().int().describe(\"Maximum concurrent requests\").nullable(),\n extra_scrape_allowed: z.boolean().describe(\"Whether extra scraping is allowed\").nullable(),\n}).passthrough().describe(\"Subscription information.\");\nconst ScrapflyGetAccountInfo_AccountDataSchema = z.object({\n account: ScrapflyGetAccountInfo_AccountDetailsSchema.nullable(),\n project: ScrapflyGetAccountInfo_ProjectDetailsSchema.nullable(),\n subscription: ScrapflyGetAccountInfo_SubscriptionDetailsSchema.nullable(),\n}).passthrough().describe(\"Main data container for account information.\");\nexport const ScrapflyGetAccountInfoOutput = z.object({\n data: ScrapflyGetAccountInfo_AccountDataSchema.nullable(),\n error: z.string().describe(\"Error message if any\").nullable().optional(),\n successfull: z.boolean().describe(\"Whether the request was successful\").nullable(),\n}).passthrough().describe(\"Response model for Scrapfly account information.\");\n\nexport const scrapflyGetAccountInfo = action(\"SCRAPFLY_GET_ACCOUNT_INFO\", {\n slug: \"scrapfly-get-account-info\",\n name: \"Get Scrapfly Account Information\",\n description: \"Tool to retrieve Scrapfly account information. Use after authenticating to get API credit balance and usage stats. Returns comprehensive account data including subscription plan, usage statistics, billing info, and project settings.\",\n input: ScrapflyGetAccountInfoInput,\n output: ScrapflyGetAccountInfoOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oFAAoF;AACrJ,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACpE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CAC3D,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC7E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACtE,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACnD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,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C,SAAS;CAC9D,cAAc,iDAAiD,SAAS;AAC1E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAM,yCAAyC,SAAS;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,79 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-account-info.d.ts
|
|
4
|
-
declare const ScrapflyGetAccountInfoInput: z.
|
|
5
|
-
declare const ScrapflyGetAccountInfoOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const ScrapflyGetAccountInfoInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const ScrapflyGetAccountInfoOutput: z.ZodObject<{
|
|
6
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
7
|
+
account: z.ZodNullable<z.ZodObject<{
|
|
8
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
9
|
+
timezone: z.ZodNullable<z.ZodString>;
|
|
10
|
+
suspended: z.ZodNullable<z.ZodBoolean>;
|
|
11
|
+
account_id: z.ZodNullable<z.ZodString>;
|
|
12
|
+
suspension_reason: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
13
|
+
}, z.core.$loose>>;
|
|
14
|
+
project: z.ZodNullable<z.ZodObject<{
|
|
15
|
+
name: z.ZodNullable<z.ZodString>;
|
|
16
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
17
|
+
budget_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
+
budget_spent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
+
quota_reached: z.ZodNullable<z.ZodBoolean>;
|
|
20
|
+
allowed_networks: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
21
|
+
allow_extra_usage: z.ZodNullable<z.ZodBoolean>;
|
|
22
|
+
concurrency_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
scrape_request_count: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
24
|
+
scrape_request_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
|
+
}, z.core.$loose>>;
|
|
26
|
+
subscription: z.ZodNullable<z.ZodObject<{
|
|
27
|
+
usage: z.ZodNullable<z.ZodObject<{
|
|
28
|
+
scrape: z.ZodNullable<z.ZodObject<{
|
|
29
|
+
extra: z.ZodNullable<z.ZodNumber>;
|
|
30
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
31
|
+
current: z.ZodNullable<z.ZodNumber>;
|
|
32
|
+
remaining: z.ZodNullable<z.ZodNumber>;
|
|
33
|
+
concurrent_limit: z.ZodNullable<z.ZodNumber>;
|
|
34
|
+
concurrent_usage: z.ZodNullable<z.ZodNumber>;
|
|
35
|
+
concurrent_remaining: z.ZodNullable<z.ZodNumber>;
|
|
36
|
+
}, z.core.$loose>>;
|
|
37
|
+
spider: z.ZodNullable<z.ZodObject<{
|
|
38
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
39
|
+
current: z.ZodNullable<z.ZodNumber>;
|
|
40
|
+
}, z.core.$loose>>;
|
|
41
|
+
schedule: z.ZodNullable<z.ZodObject<{
|
|
42
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
43
|
+
current: z.ZodNullable<z.ZodNumber>;
|
|
44
|
+
}, z.core.$loose>>;
|
|
45
|
+
}, z.core.$loose>>;
|
|
46
|
+
period: z.ZodNullable<z.ZodObject<{
|
|
47
|
+
end: z.ZodNullable<z.ZodString>;
|
|
48
|
+
start: z.ZodNullable<z.ZodString>;
|
|
49
|
+
}, z.core.$loose>>;
|
|
50
|
+
billing: z.ZodNullable<z.ZodObject<{
|
|
51
|
+
plan_price: z.ZodNullable<z.ZodObject<{
|
|
52
|
+
amount: z.ZodNullable<z.ZodNumber>;
|
|
53
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
54
|
+
}, z.core.$loose>>;
|
|
55
|
+
ongoing_payment: z.ZodNullable<z.ZodObject<{
|
|
56
|
+
amount: z.ZodNullable<z.ZodNumber>;
|
|
57
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
58
|
+
}, z.core.$loose>>;
|
|
59
|
+
current_extra_scrape_request_price: z.ZodNullable<z.ZodObject<{
|
|
60
|
+
amount: z.ZodNullable<z.ZodNumber>;
|
|
61
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
62
|
+
}, z.core.$loose>>;
|
|
63
|
+
extra_scrape_request_price_per_10k: z.ZodNullable<z.ZodObject<{
|
|
64
|
+
amount: z.ZodNullable<z.ZodNumber>;
|
|
65
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
66
|
+
}, z.core.$loose>>;
|
|
67
|
+
}, z.core.$loose>>;
|
|
68
|
+
plan_name: z.ZodNullable<z.ZodString>;
|
|
69
|
+
max_concurrency: z.ZodNullable<z.ZodNumber>;
|
|
70
|
+
extra_scrape_allowed: z.ZodNullable<z.ZodBoolean>;
|
|
71
|
+
}, z.core.$loose>>;
|
|
72
|
+
}, z.core.$loose>>;
|
|
73
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
74
|
+
successfull: z.ZodNullable<z.ZodBoolean>;
|
|
75
|
+
}, z.core.$loose>;
|
|
76
|
+
declare const scrapflyGetAccountInfo: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
77
|
//#endregion
|
|
8
78
|
export { scrapflyGetAccountInfo };
|
|
9
79
|
//# sourceMappingURL=get-account-info.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-account-info.d.cts","names":[],"sources":["../../src/actions/get-account-info.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"get-account-info.d.cts","names":[],"sources":["../../src/actions/get-account-info.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAqE3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM5B,sBAAA,gCAAsB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,79 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-account-info.d.ts
|
|
4
|
-
declare const ScrapflyGetAccountInfoInput: z.
|
|
5
|
-
declare const ScrapflyGetAccountInfoOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const ScrapflyGetAccountInfoInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const ScrapflyGetAccountInfoOutput: z.ZodObject<{
|
|
6
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
7
|
+
account: z.ZodNullable<z.ZodObject<{
|
|
8
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
9
|
+
timezone: z.ZodNullable<z.ZodString>;
|
|
10
|
+
suspended: z.ZodNullable<z.ZodBoolean>;
|
|
11
|
+
account_id: z.ZodNullable<z.ZodString>;
|
|
12
|
+
suspension_reason: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
13
|
+
}, z.core.$loose>>;
|
|
14
|
+
project: z.ZodNullable<z.ZodObject<{
|
|
15
|
+
name: z.ZodNullable<z.ZodString>;
|
|
16
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
17
|
+
budget_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
+
budget_spent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
+
quota_reached: z.ZodNullable<z.ZodBoolean>;
|
|
20
|
+
allowed_networks: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
21
|
+
allow_extra_usage: z.ZodNullable<z.ZodBoolean>;
|
|
22
|
+
concurrency_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
scrape_request_count: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
24
|
+
scrape_request_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
|
+
}, z.core.$loose>>;
|
|
26
|
+
subscription: z.ZodNullable<z.ZodObject<{
|
|
27
|
+
usage: z.ZodNullable<z.ZodObject<{
|
|
28
|
+
scrape: z.ZodNullable<z.ZodObject<{
|
|
29
|
+
extra: z.ZodNullable<z.ZodNumber>;
|
|
30
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
31
|
+
current: z.ZodNullable<z.ZodNumber>;
|
|
32
|
+
remaining: z.ZodNullable<z.ZodNumber>;
|
|
33
|
+
concurrent_limit: z.ZodNullable<z.ZodNumber>;
|
|
34
|
+
concurrent_usage: z.ZodNullable<z.ZodNumber>;
|
|
35
|
+
concurrent_remaining: z.ZodNullable<z.ZodNumber>;
|
|
36
|
+
}, z.core.$loose>>;
|
|
37
|
+
spider: z.ZodNullable<z.ZodObject<{
|
|
38
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
39
|
+
current: z.ZodNullable<z.ZodNumber>;
|
|
40
|
+
}, z.core.$loose>>;
|
|
41
|
+
schedule: z.ZodNullable<z.ZodObject<{
|
|
42
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
43
|
+
current: z.ZodNullable<z.ZodNumber>;
|
|
44
|
+
}, z.core.$loose>>;
|
|
45
|
+
}, z.core.$loose>>;
|
|
46
|
+
period: z.ZodNullable<z.ZodObject<{
|
|
47
|
+
end: z.ZodNullable<z.ZodString>;
|
|
48
|
+
start: z.ZodNullable<z.ZodString>;
|
|
49
|
+
}, z.core.$loose>>;
|
|
50
|
+
billing: z.ZodNullable<z.ZodObject<{
|
|
51
|
+
plan_price: z.ZodNullable<z.ZodObject<{
|
|
52
|
+
amount: z.ZodNullable<z.ZodNumber>;
|
|
53
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
54
|
+
}, z.core.$loose>>;
|
|
55
|
+
ongoing_payment: z.ZodNullable<z.ZodObject<{
|
|
56
|
+
amount: z.ZodNullable<z.ZodNumber>;
|
|
57
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
58
|
+
}, z.core.$loose>>;
|
|
59
|
+
current_extra_scrape_request_price: z.ZodNullable<z.ZodObject<{
|
|
60
|
+
amount: z.ZodNullable<z.ZodNumber>;
|
|
61
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
62
|
+
}, z.core.$loose>>;
|
|
63
|
+
extra_scrape_request_price_per_10k: z.ZodNullable<z.ZodObject<{
|
|
64
|
+
amount: z.ZodNullable<z.ZodNumber>;
|
|
65
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
66
|
+
}, z.core.$loose>>;
|
|
67
|
+
}, z.core.$loose>>;
|
|
68
|
+
plan_name: z.ZodNullable<z.ZodString>;
|
|
69
|
+
max_concurrency: z.ZodNullable<z.ZodNumber>;
|
|
70
|
+
extra_scrape_allowed: z.ZodNullable<z.ZodBoolean>;
|
|
71
|
+
}, z.core.$loose>>;
|
|
72
|
+
}, z.core.$loose>>;
|
|
73
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
74
|
+
successfull: z.ZodNullable<z.ZodBoolean>;
|
|
75
|
+
}, z.core.$loose>;
|
|
76
|
+
declare const scrapflyGetAccountInfo: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
77
|
//#endregion
|
|
8
78
|
export { scrapflyGetAccountInfo };
|
|
9
79
|
//# sourceMappingURL=get-account-info.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-account-info.d.mts","names":[],"sources":["../../src/actions/get-account-info.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"get-account-info.d.mts","names":[],"sources":["../../src/actions/get-account-info.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAqE3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM5B,sBAAA,gCAAsB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|