@keystrokehq/scrapegraph_ai 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/convert-webpage-to-markdown-v2.cjs +4 -4
- package/dist/actions/convert-webpage-to-markdown-v2.cjs.map +1 -1
- package/dist/actions/convert-webpage-to-markdown-v2.d.cts +38 -3
- package/dist/actions/convert-webpage-to-markdown-v2.d.cts.map +1 -1
- package/dist/actions/convert-webpage-to-markdown-v2.d.mts +38 -3
- package/dist/actions/convert-webpage-to-markdown-v2.d.mts.map +1 -1
- package/dist/actions/convert-webpage-to-markdown-v2.mjs +4 -4
- package/dist/actions/convert-webpage-to-markdown-v2.mjs.map +1 -1
- package/dist/actions/generate-schema.cjs +5 -5
- package/dist/actions/generate-schema.cjs.map +1 -1
- package/dist/actions/generate-schema.d.cts +16 -3
- package/dist/actions/generate-schema.d.cts.map +1 -1
- package/dist/actions/generate-schema.d.mts +16 -3
- package/dist/actions/generate-schema.d.mts.map +1 -1
- package/dist/actions/generate-schema.mjs +5 -5
- package/dist/actions/generate-schema.mjs.map +1 -1
- package/dist/actions/get-agentic-scraper-history.cjs +8 -8
- package/dist/actions/get-agentic-scraper-history.cjs.map +1 -1
- package/dist/actions/get-agentic-scraper-history.d.cts +27 -3
- package/dist/actions/get-agentic-scraper-history.d.cts.map +1 -1
- package/dist/actions/get-agentic-scraper-history.d.mts +27 -3
- package/dist/actions/get-agentic-scraper-history.d.mts.map +1 -1
- package/dist/actions/get-agentic-scraper-history.mjs +8 -8
- package/dist/actions/get-agentic-scraper-history.mjs.map +1 -1
- package/dist/actions/get-crawler-history.cjs +7 -7
- package/dist/actions/get-crawler-history.cjs.map +1 -1
- package/dist/actions/get-crawler-history.d.cts +36 -3
- package/dist/actions/get-crawler-history.d.cts.map +1 -1
- package/dist/actions/get-crawler-history.d.mts +36 -3
- package/dist/actions/get-crawler-history.d.mts.map +1 -1
- package/dist/actions/get-crawler-history.mjs +7 -7
- package/dist/actions/get-crawler-history.mjs.map +1 -1
- package/dist/actions/get-credits.cjs +3 -3
- package/dist/actions/get-credits.cjs.map +1 -1
- package/dist/actions/get-credits.d.cts +7 -3
- package/dist/actions/get-credits.d.cts.map +1 -1
- package/dist/actions/get-credits.d.mts +7 -3
- package/dist/actions/get-credits.d.mts.map +1 -1
- package/dist/actions/get-credits.mjs +3 -3
- package/dist/actions/get-credits.mjs.map +1 -1
- package/dist/actions/get-endpoint-suggestions.cjs +6 -6
- package/dist/actions/get-endpoint-suggestions.cjs.map +1 -1
- package/dist/actions/get-endpoint-suggestions.d.cts +21 -3
- package/dist/actions/get-endpoint-suggestions.d.cts.map +1 -1
- package/dist/actions/get-endpoint-suggestions.d.mts +21 -3
- package/dist/actions/get-endpoint-suggestions.d.mts.map +1 -1
- package/dist/actions/get-endpoint-suggestions.mjs +6 -6
- package/dist/actions/get-endpoint-suggestions.mjs.map +1 -1
- package/dist/actions/get-live-session-url.cjs +3 -3
- package/dist/actions/get-live-session-url.cjs.map +1 -1
- package/dist/actions/get-live-session-url.d.cts +12 -3
- package/dist/actions/get-live-session-url.d.cts.map +1 -1
- package/dist/actions/get-live-session-url.d.mts +12 -3
- package/dist/actions/get-live-session-url.d.mts.map +1 -1
- package/dist/actions/get-live-session-url.mjs +3 -3
- package/dist/actions/get-live-session-url.mjs.map +1 -1
- package/dist/actions/get-markdownify-history.cjs +4 -4
- package/dist/actions/get-markdownify-history.cjs.map +1 -1
- package/dist/actions/get-markdownify-history.d.cts +24 -3
- package/dist/actions/get-markdownify-history.d.cts.map +1 -1
- package/dist/actions/get-markdownify-history.d.mts +24 -3
- package/dist/actions/get-markdownify-history.d.mts.map +1 -1
- package/dist/actions/get-markdownify-history.mjs +4 -4
- package/dist/actions/get-markdownify-history.mjs.map +1 -1
- package/dist/actions/get-scrape-history.cjs +4 -4
- package/dist/actions/get-scrape-history.cjs.map +1 -1
- package/dist/actions/get-scrape-history.d.cts +25 -3
- package/dist/actions/get-scrape-history.d.cts.map +1 -1
- package/dist/actions/get-scrape-history.d.mts +25 -3
- package/dist/actions/get-scrape-history.d.mts.map +1 -1
- package/dist/actions/get-scrape-history.mjs +4 -4
- package/dist/actions/get-scrape-history.mjs.map +1 -1
- package/dist/actions/get-searchscraper-history.cjs +3 -3
- package/dist/actions/get-searchscraper-history.cjs.map +1 -1
- package/dist/actions/get-searchscraper-history.d.cts +26 -3
- package/dist/actions/get-searchscraper-history.d.cts.map +1 -1
- package/dist/actions/get-searchscraper-history.d.mts +26 -3
- package/dist/actions/get-searchscraper-history.d.mts.map +1 -1
- package/dist/actions/get-searchscraper-history.mjs +3 -3
- package/dist/actions/get-searchscraper-history.mjs.map +1 -1
- package/dist/actions/get-sitemap-history.cjs +9 -9
- package/dist/actions/get-sitemap-history.cjs.map +1 -1
- package/dist/actions/get-sitemap-history.d.cts +22 -3
- package/dist/actions/get-sitemap-history.d.cts.map +1 -1
- package/dist/actions/get-sitemap-history.d.mts +22 -3
- package/dist/actions/get-sitemap-history.d.mts.map +1 -1
- package/dist/actions/get-sitemap-history.mjs +9 -9
- package/dist/actions/get-sitemap-history.mjs.map +1 -1
- package/dist/actions/get-smartscraper-history.cjs +5 -5
- package/dist/actions/get-smartscraper-history.cjs.map +1 -1
- package/dist/actions/get-smartscraper-history.d.cts +26 -3
- package/dist/actions/get-smartscraper-history.d.cts.map +1 -1
- package/dist/actions/get-smartscraper-history.d.mts +26 -3
- package/dist/actions/get-smartscraper-history.d.mts.map +1 -1
- package/dist/actions/get-smartscraper-history.mjs +5 -5
- package/dist/actions/get-smartscraper-history.mjs.map +1 -1
- package/dist/actions/get-usage-timeline.cjs +4 -4
- package/dist/actions/get-usage-timeline.cjs.map +1 -1
- package/dist/actions/get-usage-timeline.d.cts +17 -3
- package/dist/actions/get-usage-timeline.d.cts.map +1 -1
- package/dist/actions/get-usage-timeline.d.mts +17 -3
- package/dist/actions/get-usage-timeline.d.mts.map +1 -1
- package/dist/actions/get-usage-timeline.mjs +4 -4
- package/dist/actions/get-usage-timeline.mjs.map +1 -1
- package/dist/actions/get-webhook-logs.cjs +2 -2
- package/dist/actions/get-webhook-logs.cjs.map +1 -1
- package/dist/actions/get-webhook-logs.d.cts +20 -3
- package/dist/actions/get-webhook-logs.d.cts.map +1 -1
- package/dist/actions/get-webhook-logs.d.mts +20 -3
- package/dist/actions/get-webhook-logs.d.mts.map +1 -1
- package/dist/actions/get-webhook-logs.mjs +2 -2
- package/dist/actions/get-webhook-logs.mjs.map +1 -1
- package/dist/actions/list-scheduled-jobs.cjs +13 -13
- package/dist/actions/list-scheduled-jobs.cjs.map +1 -1
- package/dist/actions/list-scheduled-jobs.d.cts +30 -3
- package/dist/actions/list-scheduled-jobs.d.cts.map +1 -1
- package/dist/actions/list-scheduled-jobs.d.mts +30 -3
- package/dist/actions/list-scheduled-jobs.d.mts.map +1 -1
- package/dist/actions/list-scheduled-jobs.mjs +13 -13
- package/dist/actions/list-scheduled-jobs.mjs.map +1 -1
- package/dist/actions/markdownify-status.cjs +4 -4
- package/dist/actions/markdownify-status.cjs.map +1 -1
- package/dist/actions/markdownify-status.d.cts +18 -3
- package/dist/actions/markdownify-status.d.cts.map +1 -1
- package/dist/actions/markdownify-status.d.mts +18 -3
- package/dist/actions/markdownify-status.d.mts.map +1 -1
- package/dist/actions/markdownify-status.mjs +4 -4
- package/dist/actions/markdownify-status.mjs.map +1 -1
- package/dist/actions/save-endpoint.cjs +4 -4
- package/dist/actions/save-endpoint.cjs.map +1 -1
- package/dist/actions/save-endpoint.d.cts +45 -3
- package/dist/actions/save-endpoint.d.cts.map +1 -1
- package/dist/actions/save-endpoint.d.mts +45 -3
- package/dist/actions/save-endpoint.d.mts.map +1 -1
- package/dist/actions/save-endpoint.mjs +4 -4
- package/dist/actions/save-endpoint.mjs.map +1 -1
- package/dist/actions/search-scraper-status.cjs +3 -3
- package/dist/actions/search-scraper-status.cjs.map +1 -1
- package/dist/actions/search-scraper-status.d.cts +16 -3
- package/dist/actions/search-scraper-status.d.cts.map +1 -1
- package/dist/actions/search-scraper-status.d.mts +16 -3
- package/dist/actions/search-scraper-status.d.mts.map +1 -1
- package/dist/actions/search-scraper-status.mjs +3 -3
- package/dist/actions/search-scraper-status.mjs.map +1 -1
- package/dist/actions/search-scraper.cjs +4 -4
- package/dist/actions/search-scraper.cjs.map +1 -1
- package/dist/actions/search-scraper.d.cts +24 -3
- package/dist/actions/search-scraper.d.cts.map +1 -1
- package/dist/actions/search-scraper.d.mts +24 -3
- package/dist/actions/search-scraper.d.mts.map +1 -1
- package/dist/actions/search-scraper.mjs +4 -4
- package/dist/actions/search-scraper.mjs.map +1 -1
- package/dist/actions/smart-crawler-status.cjs +7 -7
- package/dist/actions/smart-crawler-status.cjs.map +1 -1
- package/dist/actions/smart-crawler-status.d.cts +22 -3
- package/dist/actions/smart-crawler-status.d.cts.map +1 -1
- package/dist/actions/smart-crawler-status.d.mts +22 -3
- package/dist/actions/smart-crawler-status.d.mts.map +1 -1
- package/dist/actions/smart-crawler-status.mjs +7 -7
- package/dist/actions/smart-crawler-status.mjs.map +1 -1
- package/dist/actions/smart-scraper-start.cjs +4 -4
- package/dist/actions/smart-scraper-start.cjs.map +1 -1
- package/dist/actions/smart-scraper-start.d.cts +48 -3
- package/dist/actions/smart-scraper-start.d.cts.map +1 -1
- package/dist/actions/smart-scraper-start.d.mts +48 -3
- package/dist/actions/smart-scraper-start.d.mts.map +1 -1
- package/dist/actions/smart-scraper-start.mjs +4 -4
- package/dist/actions/smart-scraper-start.mjs.map +1 -1
- package/dist/actions/smart-scraper-status.cjs +4 -4
- package/dist/actions/smart-scraper-status.cjs.map +1 -1
- package/dist/actions/smart-scraper-status.d.cts +14 -3
- package/dist/actions/smart-scraper-status.d.cts.map +1 -1
- package/dist/actions/smart-scraper-status.d.mts +14 -3
- package/dist/actions/smart-scraper-status.d.mts.map +1 -1
- package/dist/actions/smart-scraper-status.mjs +4 -4
- package/dist/actions/smart-scraper-status.mjs.map +1 -1
- package/dist/actions/start-smart-crawler.cjs +1 -1
- package/dist/actions/start-smart-crawler.cjs.map +1 -1
- package/dist/actions/start-smart-crawler.d.cts +47 -3
- package/dist/actions/start-smart-crawler.d.cts.map +1 -1
- package/dist/actions/start-smart-crawler.d.mts +47 -3
- package/dist/actions/start-smart-crawler.d.mts.map +1 -1
- package/dist/actions/start-smart-crawler.mjs +1 -1
- package/dist/actions/start-smart-crawler.mjs.map +1 -1
- package/dist/actions/submit-feedback.cjs +5 -5
- package/dist/actions/submit-feedback.cjs.map +1 -1
- package/dist/actions/submit-feedback.d.cts +16 -3
- package/dist/actions/submit-feedback.d.cts.map +1 -1
- package/dist/actions/submit-feedback.d.mts +16 -3
- package/dist/actions/submit-feedback.d.mts.map +1 -1
- package/dist/actions/submit-feedback.mjs +5 -5
- package/dist/actions/submit-feedback.mjs.map +1 -1
- package/dist/actions/submit-product-feedback.cjs +1 -1
- package/dist/actions/submit-product-feedback.cjs.map +1 -1
- package/dist/actions/submit-product-feedback.d.cts +41 -3
- package/dist/actions/submit-product-feedback.d.cts.map +1 -1
- package/dist/actions/submit-product-feedback.d.mts +41 -3
- package/dist/actions/submit-product-feedback.d.mts.map +1 -1
- package/dist/actions/submit-product-feedback.mjs +1 -1
- package/dist/actions/submit-product-feedback.mjs.map +1 -1
- package/dist/actions/toonify.cjs +1 -1
- package/dist/actions/toonify.cjs.map +1 -1
- package/dist/actions/toonify.d.cts +9 -3
- package/dist/actions/toonify.d.cts.map +1 -1
- package/dist/actions/toonify.d.mts +9 -3
- package/dist/actions/toonify.d.mts.map +1 -1
- package/dist/actions/toonify.mjs +1 -1
- package/dist/actions/toonify.mjs.map +1 -1
- package/dist/actions/validate-api-key.cjs +2 -2
- package/dist/actions/validate-api-key.cjs.map +1 -1
- package/dist/actions/validate-api-key.d.cts +6 -3
- package/dist/actions/validate-api-key.d.cts.map +1 -1
- package/dist/actions/validate-api-key.d.mts +6 -3
- package/dist/actions/validate-api-key.d.mts.map +1 -1
- package/dist/actions/validate-api-key.mjs +2 -2
- package/dist/actions/validate-api-key.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
|
@@ -12,29 +12,29 @@ const ScrapegraphAiGetCrawlerHistory_CrawlStatusSchema = zod.z.enum([
|
|
|
12
12
|
"failed"
|
|
13
13
|
]).describe("Status values for crawler jobs.");
|
|
14
14
|
const ScrapegraphAiGetCrawlerHistory_CrawlerRequestDBSchema = zod.z.object({
|
|
15
|
-
url: zod.z.string().describe("URL that was crawled."),
|
|
15
|
+
url: zod.z.string().describe("URL that was crawled.").nullable(),
|
|
16
16
|
error: zod.z.string().describe("Error message if the crawl failed.").nullable().optional(),
|
|
17
17
|
prompt: zod.z.string().describe("Extraction prompt if used in the crawl.").nullable().optional(),
|
|
18
18
|
result: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Crawl results and extracted data.").nullable().optional(),
|
|
19
19
|
status: ScrapegraphAiGetCrawlerHistory_CrawlStatusSchema.nullable(),
|
|
20
20
|
task_id: zod.z.string().describe("Associated task identifier if available.").nullable().optional(),
|
|
21
|
-
user_id: zod.z.string().describe("ID of the user who created the request."),
|
|
21
|
+
user_id: zod.z.string().describe("ID of the user who created the request.").nullable(),
|
|
22
22
|
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional metadata associated with the request.").nullable().optional(),
|
|
23
|
-
max_pages: zod.z.number().int().describe("Maximum number of pages configured for this crawl."),
|
|
24
|
-
request_id: zod.z.string().describe("Unique identifier for the crawler request."),
|
|
23
|
+
max_pages: zod.z.number().int().describe("Maximum number of pages configured for this crawl.").nullable(),
|
|
24
|
+
request_id: zod.z.string().describe("Unique identifier for the crawler request.").nullable(),
|
|
25
25
|
result_url: zod.z.string().describe("URL where results can be accessed.").nullable().optional(),
|
|
26
26
|
total_cost: zod.z.number().describe("Total cost of the crawl operation.").nullable().optional(),
|
|
27
27
|
finished_at: zod.z.string().describe("Timestamp when the crawl completed in ISO 8601 date-time format.").nullable().optional(),
|
|
28
28
|
crawled_urls: zod.z.array(zod.z.string()).describe("List of URLs crawled during the job.").nullable().optional(),
|
|
29
29
|
credits_used: zod.z.number().int().describe("Number of credits consumed by this crawl.").nullable().optional(),
|
|
30
|
-
requested_at: zod.z.string().describe("Timestamp when the crawl request was created in ISO 8601 date-time format."),
|
|
30
|
+
requested_at: zod.z.string().describe("Timestamp when the crawl request was created in ISO 8601 date-time format.").nullable(),
|
|
31
31
|
request_params: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Original request parameters for the crawl.").nullable().optional(),
|
|
32
32
|
pages_processed: zod.z.number().int().describe("Number of pages successfully processed.").nullable().optional()
|
|
33
|
-
}).describe("Represents a single crawler request record from DynamoDB.");
|
|
33
|
+
}).passthrough().describe("Represents a single crawler request record from DynamoDB.");
|
|
34
34
|
const ScrapegraphAiGetCrawlerHistoryOutput = zod.z.object({
|
|
35
35
|
next_key: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Pagination token for fetching the next page. Null if on the last page.").nullable().optional(),
|
|
36
36
|
requests: zod.z.array(ScrapegraphAiGetCrawlerHistory_CrawlerRequestDBSchema).describe("List of crawler request records for the requested page.")
|
|
37
|
-
}).describe("Response model for crawler history retrieval.");
|
|
37
|
+
}).passthrough().describe("Response model for crawler history retrieval.");
|
|
38
38
|
const scrapegraphAiGetCrawlerHistory = require_action.action("SCRAPEGRAPH_AI_GET_CRAWLER_HISTORY", {
|
|
39
39
|
slug: "scrapegraph_ai-get-crawler-history",
|
|
40
40
|
name: "Get Crawler History",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-crawler-history.cjs","names":["z","action"],"sources":["../../src/actions/get-crawler-history.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapegraphAiGetCrawlerHistoryInput
|
|
1
|
+
{"version":3,"file":"get-crawler-history.cjs","names":["z","action"],"sources":["../../src/actions/get-crawler-history.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapegraphAiGetCrawlerHistoryInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination. Must be a positive integer.\").optional(),\n page_size: z.number().int().default(10).describe(\"Number of crawler history records to return per page. Must be between 1 and 100.\").optional(),\n}).describe(\"Request model for retrieving crawler job history.\");\nconst ScrapegraphAiGetCrawlerHistory_CrawlStatusSchema = z.enum([\"queued\", \"processing\", \"completed\", \"failed\"]).describe(\"Status values for crawler jobs.\");\nconst ScrapegraphAiGetCrawlerHistory_CrawlerRequestDBSchema = z.object({\n url: z.string().describe(\"URL that was crawled.\").nullable(),\n error: z.string().describe(\"Error message if the crawl failed.\").nullable().optional(),\n prompt: z.string().describe(\"Extraction prompt if used in the crawl.\").nullable().optional(),\n result: z.record(z.string(), z.unknown()).describe(\"Crawl results and extracted data.\").nullable().optional(),\n status: ScrapegraphAiGetCrawlerHistory_CrawlStatusSchema.nullable(),\n task_id: z.string().describe(\"Associated task identifier if available.\").nullable().optional(),\n user_id: z.string().describe(\"ID of the user who created the request.\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata associated with the request.\").nullable().optional(),\n max_pages: z.number().int().describe(\"Maximum number of pages configured for this crawl.\").nullable(),\n request_id: z.string().describe(\"Unique identifier for the crawler request.\").nullable(),\n result_url: z.string().describe(\"URL where results can be accessed.\").nullable().optional(),\n total_cost: z.number().describe(\"Total cost of the crawl operation.\").nullable().optional(),\n finished_at: z.string().describe(\"Timestamp when the crawl completed in ISO 8601 date-time format.\").nullable().optional(),\n crawled_urls: z.array(z.string()).describe(\"List of URLs crawled during the job.\").nullable().optional(),\n credits_used: z.number().int().describe(\"Number of credits consumed by this crawl.\").nullable().optional(),\n requested_at: z.string().describe(\"Timestamp when the crawl request was created in ISO 8601 date-time format.\").nullable(),\n request_params: z.record(z.string(), z.unknown()).describe(\"Original request parameters for the crawl.\").nullable().optional(),\n pages_processed: z.number().int().describe(\"Number of pages successfully processed.\").nullable().optional(),\n}).passthrough().describe(\"Represents a single crawler request record from DynamoDB.\");\nexport const ScrapegraphAiGetCrawlerHistoryOutput = z.object({\n next_key: z.record(z.string(), z.unknown()).describe(\"Pagination token for fetching the next page. Null if on the last page.\").nullable().optional(),\n requests: z.array(ScrapegraphAiGetCrawlerHistory_CrawlerRequestDBSchema).describe(\"List of crawler request records for the requested page.\"),\n}).passthrough().describe(\"Response model for crawler history retrieval.\");\n\nexport const scrapegraphAiGetCrawlerHistory = action(\"SCRAPEGRAPH_AI_GET_CRAWLER_HISTORY\", {\n slug: \"scrapegraph_ai-get-crawler-history\",\n name: \"Get Crawler History\",\n description: \"Retrieve the history of crawler jobs for your account. Returns paginated list of past crawler requests with their status, results, and metadata.\",\n input: ScrapegraphAiGetCrawlerHistoryInput,\n output: ScrapegraphAiGetCrawlerHistoryOutput,\n});\n"],"mappings":"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"}
|
|
@@ -1,9 +1,42 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-crawler-history.d.ts
|
|
4
|
-
declare const ScrapegraphAiGetCrawlerHistoryInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ScrapegraphAiGetCrawlerHistoryInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
|
+
page_size: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const ScrapegraphAiGetCrawlerHistoryOutput: z.ZodObject<{
|
|
9
|
+
next_key: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
10
|
+
requests: z.ZodArray<z.ZodObject<{
|
|
11
|
+
url: z.ZodNullable<z.ZodString>;
|
|
12
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
result: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
15
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
16
|
+
queued: "queued";
|
|
17
|
+
processing: "processing";
|
|
18
|
+
completed: "completed";
|
|
19
|
+
failed: "failed";
|
|
20
|
+
}>>;
|
|
21
|
+
task_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
user_id: z.ZodNullable<z.ZodString>;
|
|
23
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
24
|
+
max_pages: z.ZodNullable<z.ZodNumber>;
|
|
25
|
+
request_id: z.ZodNullable<z.ZodString>;
|
|
26
|
+
result_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
total_cost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
28
|
+
finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
crawled_urls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
30
|
+
credits_used: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
31
|
+
requested_at: z.ZodNullable<z.ZodString>;
|
|
32
|
+
request_params: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
33
|
+
pages_processed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
34
|
+
}, z.core.$loose>>;
|
|
35
|
+
}, z.core.$loose>;
|
|
36
|
+
declare const scrapegraphAiGetCrawlerHistory: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
37
|
+
page?: number | undefined;
|
|
38
|
+
page_size?: number | undefined;
|
|
39
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
40
|
//#endregion
|
|
8
41
|
export { scrapegraphAiGetCrawlerHistory };
|
|
9
42
|
//# sourceMappingURL=get-crawler-history.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-crawler-history.d.cts","names":[],"sources":["../../src/actions/get-crawler-history.ts"],"mappings":";;;cAIa,mCAAA,
|
|
1
|
+
{"version":3,"file":"get-crawler-history.d.cts","names":[],"sources":["../../src/actions/get-crawler-history.ts"],"mappings":";;;cAIa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;cAyBnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKpC,8BAAA,gCAA8B,wBAAA"}
|
|
@@ -1,9 +1,42 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-crawler-history.d.ts
|
|
4
|
-
declare const ScrapegraphAiGetCrawlerHistoryInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ScrapegraphAiGetCrawlerHistoryInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
|
+
page_size: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const ScrapegraphAiGetCrawlerHistoryOutput: z.ZodObject<{
|
|
9
|
+
next_key: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
10
|
+
requests: z.ZodArray<z.ZodObject<{
|
|
11
|
+
url: z.ZodNullable<z.ZodString>;
|
|
12
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
result: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
15
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
16
|
+
queued: "queued";
|
|
17
|
+
processing: "processing";
|
|
18
|
+
completed: "completed";
|
|
19
|
+
failed: "failed";
|
|
20
|
+
}>>;
|
|
21
|
+
task_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
user_id: z.ZodNullable<z.ZodString>;
|
|
23
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
24
|
+
max_pages: z.ZodNullable<z.ZodNumber>;
|
|
25
|
+
request_id: z.ZodNullable<z.ZodString>;
|
|
26
|
+
result_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
total_cost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
28
|
+
finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
crawled_urls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
30
|
+
credits_used: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
31
|
+
requested_at: z.ZodNullable<z.ZodString>;
|
|
32
|
+
request_params: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
33
|
+
pages_processed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
34
|
+
}, z.core.$loose>>;
|
|
35
|
+
}, z.core.$loose>;
|
|
36
|
+
declare const scrapegraphAiGetCrawlerHistory: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
37
|
+
page?: number | undefined;
|
|
38
|
+
page_size?: number | undefined;
|
|
39
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
40
|
//#endregion
|
|
8
41
|
export { scrapegraphAiGetCrawlerHistory };
|
|
9
42
|
//# sourceMappingURL=get-crawler-history.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-crawler-history.d.mts","names":[],"sources":["../../src/actions/get-crawler-history.ts"],"mappings":";;;cAIa,mCAAA,
|
|
1
|
+
{"version":3,"file":"get-crawler-history.d.mts","names":[],"sources":["../../src/actions/get-crawler-history.ts"],"mappings":";;;cAIa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;cAyBnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKpC,8BAAA,gCAA8B,wBAAA"}
|
|
@@ -12,25 +12,25 @@ const ScrapegraphAiGetCrawlerHistory_CrawlStatusSchema = z.enum([
|
|
|
12
12
|
"failed"
|
|
13
13
|
]).describe("Status values for crawler jobs.");
|
|
14
14
|
const ScrapegraphAiGetCrawlerHistory_CrawlerRequestDBSchema = z.object({
|
|
15
|
-
url: z.string().describe("URL that was crawled."),
|
|
15
|
+
url: z.string().describe("URL that was crawled.").nullable(),
|
|
16
16
|
error: z.string().describe("Error message if the crawl failed.").nullable().optional(),
|
|
17
17
|
prompt: z.string().describe("Extraction prompt if used in the crawl.").nullable().optional(),
|
|
18
18
|
result: z.record(z.string(), z.unknown()).describe("Crawl results and extracted data.").nullable().optional(),
|
|
19
19
|
status: ScrapegraphAiGetCrawlerHistory_CrawlStatusSchema.nullable(),
|
|
20
20
|
task_id: z.string().describe("Associated task identifier if available.").nullable().optional(),
|
|
21
|
-
user_id: z.string().describe("ID of the user who created the request."),
|
|
21
|
+
user_id: z.string().describe("ID of the user who created the request.").nullable(),
|
|
22
22
|
metadata: z.record(z.string(), z.unknown()).describe("Additional metadata associated with the request.").nullable().optional(),
|
|
23
|
-
max_pages: z.number().int().describe("Maximum number of pages configured for this crawl."),
|
|
24
|
-
request_id: z.string().describe("Unique identifier for the crawler request."),
|
|
23
|
+
max_pages: z.number().int().describe("Maximum number of pages configured for this crawl.").nullable(),
|
|
24
|
+
request_id: z.string().describe("Unique identifier for the crawler request.").nullable(),
|
|
25
25
|
result_url: z.string().describe("URL where results can be accessed.").nullable().optional(),
|
|
26
26
|
total_cost: z.number().describe("Total cost of the crawl operation.").nullable().optional(),
|
|
27
27
|
finished_at: z.string().describe("Timestamp when the crawl completed in ISO 8601 date-time format.").nullable().optional(),
|
|
28
28
|
crawled_urls: z.array(z.string()).describe("List of URLs crawled during the job.").nullable().optional(),
|
|
29
29
|
credits_used: z.number().int().describe("Number of credits consumed by this crawl.").nullable().optional(),
|
|
30
|
-
requested_at: z.string().describe("Timestamp when the crawl request was created in ISO 8601 date-time format."),
|
|
30
|
+
requested_at: z.string().describe("Timestamp when the crawl request was created in ISO 8601 date-time format.").nullable(),
|
|
31
31
|
request_params: z.record(z.string(), z.unknown()).describe("Original request parameters for the crawl.").nullable().optional(),
|
|
32
32
|
pages_processed: z.number().int().describe("Number of pages successfully processed.").nullable().optional()
|
|
33
|
-
}).describe("Represents a single crawler request record from DynamoDB.");
|
|
33
|
+
}).passthrough().describe("Represents a single crawler request record from DynamoDB.");
|
|
34
34
|
const scrapegraphAiGetCrawlerHistory = action("SCRAPEGRAPH_AI_GET_CRAWLER_HISTORY", {
|
|
35
35
|
slug: "scrapegraph_ai-get-crawler-history",
|
|
36
36
|
name: "Get Crawler History",
|
|
@@ -39,7 +39,7 @@ const scrapegraphAiGetCrawlerHistory = action("SCRAPEGRAPH_AI_GET_CRAWLER_HISTOR
|
|
|
39
39
|
output: z.object({
|
|
40
40
|
next_key: z.record(z.string(), z.unknown()).describe("Pagination token for fetching the next page. Null if on the last page.").nullable().optional(),
|
|
41
41
|
requests: z.array(ScrapegraphAiGetCrawlerHistory_CrawlerRequestDBSchema).describe("List of crawler request records for the requested page.")
|
|
42
|
-
}).describe("Response model for crawler history retrieval.")
|
|
42
|
+
}).passthrough().describe("Response model for crawler history retrieval.")
|
|
43
43
|
});
|
|
44
44
|
//#endregion
|
|
45
45
|
export { scrapegraphAiGetCrawlerHistory };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-crawler-history.mjs","names":[],"sources":["../../src/actions/get-crawler-history.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapegraphAiGetCrawlerHistoryInput
|
|
1
|
+
{"version":3,"file":"get-crawler-history.mjs","names":[],"sources":["../../src/actions/get-crawler-history.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapegraphAiGetCrawlerHistoryInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination. Must be a positive integer.\").optional(),\n page_size: z.number().int().default(10).describe(\"Number of crawler history records to return per page. Must be between 1 and 100.\").optional(),\n}).describe(\"Request model for retrieving crawler job history.\");\nconst ScrapegraphAiGetCrawlerHistory_CrawlStatusSchema = z.enum([\"queued\", \"processing\", \"completed\", \"failed\"]).describe(\"Status values for crawler jobs.\");\nconst ScrapegraphAiGetCrawlerHistory_CrawlerRequestDBSchema = z.object({\n url: z.string().describe(\"URL that was crawled.\").nullable(),\n error: z.string().describe(\"Error message if the crawl failed.\").nullable().optional(),\n prompt: z.string().describe(\"Extraction prompt if used in the crawl.\").nullable().optional(),\n result: z.record(z.string(), z.unknown()).describe(\"Crawl results and extracted data.\").nullable().optional(),\n status: ScrapegraphAiGetCrawlerHistory_CrawlStatusSchema.nullable(),\n task_id: z.string().describe(\"Associated task identifier if available.\").nullable().optional(),\n user_id: z.string().describe(\"ID of the user who created the request.\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata associated with the request.\").nullable().optional(),\n max_pages: z.number().int().describe(\"Maximum number of pages configured for this crawl.\").nullable(),\n request_id: z.string().describe(\"Unique identifier for the crawler request.\").nullable(),\n result_url: z.string().describe(\"URL where results can be accessed.\").nullable().optional(),\n total_cost: z.number().describe(\"Total cost of the crawl operation.\").nullable().optional(),\n finished_at: z.string().describe(\"Timestamp when the crawl completed in ISO 8601 date-time format.\").nullable().optional(),\n crawled_urls: z.array(z.string()).describe(\"List of URLs crawled during the job.\").nullable().optional(),\n credits_used: z.number().int().describe(\"Number of credits consumed by this crawl.\").nullable().optional(),\n requested_at: z.string().describe(\"Timestamp when the crawl request was created in ISO 8601 date-time format.\").nullable(),\n request_params: z.record(z.string(), z.unknown()).describe(\"Original request parameters for the crawl.\").nullable().optional(),\n pages_processed: z.number().int().describe(\"Number of pages successfully processed.\").nullable().optional(),\n}).passthrough().describe(\"Represents a single crawler request record from DynamoDB.\");\nexport const ScrapegraphAiGetCrawlerHistoryOutput = z.object({\n next_key: z.record(z.string(), z.unknown()).describe(\"Pagination token for fetching the next page. Null if on the last page.\").nullable().optional(),\n requests: z.array(ScrapegraphAiGetCrawlerHistory_CrawlerRequestDBSchema).describe(\"List of crawler request records for the requested page.\"),\n}).passthrough().describe(\"Response model for crawler history retrieval.\");\n\nexport const scrapegraphAiGetCrawlerHistory = action(\"SCRAPEGRAPH_AI_GET_CRAWLER_HISTORY\", {\n slug: \"scrapegraph_ai-get-crawler-history\",\n name: \"Get Crawler History\",\n description: \"Retrieve the history of crawler jobs for your account. Returns paginated list of past crawler requests with their status, results, and metadata.\",\n input: ScrapegraphAiGetCrawlerHistoryInput,\n output: ScrapegraphAiGetCrawlerHistoryOutput,\n});\n"],"mappings":"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"}
|
|
@@ -4,9 +4,9 @@ let zod = require("zod");
|
|
|
4
4
|
const ScrapegraphAiGetCreditsInput = zod.z.object({}).describe("Request schema for retrieving your account credit information.");
|
|
5
5
|
const ScrapegraphAiGetCreditsOutput = zod.z.object({
|
|
6
6
|
has_credits: zod.z.boolean().default(true).describe("Whether the account has credits available for API operations.").nullable().optional(),
|
|
7
|
-
remaining_credits: zod.z.number().int().describe("Number of credits available for use in your account."),
|
|
8
|
-
total_credits_used: zod.z.number().int().describe("Total number of credits consumed so far across all API calls.")
|
|
9
|
-
}).describe("Response schema for retrieving credit balances from your ScrapeGraphAI account.");
|
|
7
|
+
remaining_credits: zod.z.number().int().describe("Number of credits available for use in your account.").nullable(),
|
|
8
|
+
total_credits_used: zod.z.number().int().describe("Total number of credits consumed so far across all API calls.").nullable()
|
|
9
|
+
}).passthrough().describe("Response schema for retrieving credit balances from your ScrapeGraphAI account.");
|
|
10
10
|
const scrapegraphAiGetCredits = require_action.action("SCRAPEGRAPH_AI_GET_CREDITS", {
|
|
11
11
|
slug: "scrapegraph_ai-get-credits",
|
|
12
12
|
name: "Get Credits",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-credits.cjs","names":["z","action"],"sources":["../../src/actions/get-credits.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapegraphAiGetCreditsInput
|
|
1
|
+
{"version":3,"file":"get-credits.cjs","names":["z","action"],"sources":["../../src/actions/get-credits.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapegraphAiGetCreditsInput = z.object({}).describe(\"Request schema for retrieving your account credit information.\");\nexport const ScrapegraphAiGetCreditsOutput = z.object({\n has_credits: z.boolean().default(true).describe(\"Whether the account has credits available for API operations.\").nullable().optional(),\n remaining_credits: z.number().int().describe(\"Number of credits available for use in your account.\").nullable(),\n total_credits_used: z.number().int().describe(\"Total number of credits consumed so far across all API calls.\").nullable(),\n}).passthrough().describe(\"Response schema for retrieving credit balances from your ScrapeGraphAI account.\");\n\nexport const scrapegraphAiGetCredits = action(\"SCRAPEGRAPH_AI_GET_CREDITS\", {\n slug: \"scrapegraph_ai-get-credits\",\n name: \"Get Credits\",\n description: \"Retrieve remaining and used credits for your ScrapeGraphAI account. Useful for checking credit availability before bulk scraping operations to avoid mid-run failures.\",\n input: ScrapegraphAiGetCreditsInput,\n output: ScrapegraphAiGetCreditsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAClI,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC9G,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iFAAiF;AAE3G,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-credits.d.ts
|
|
4
|
-
declare const ScrapegraphAiGetCreditsInput: z.
|
|
5
|
-
declare const ScrapegraphAiGetCreditsOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const ScrapegraphAiGetCreditsInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const ScrapegraphAiGetCreditsOutput: z.ZodObject<{
|
|
6
|
+
has_credits: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
7
|
+
remaining_credits: z.ZodNullable<z.ZodNumber>;
|
|
8
|
+
total_credits_used: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
}, z.core.$loose>;
|
|
10
|
+
declare const scrapegraphAiGetCredits: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
11
|
//#endregion
|
|
8
12
|
export { scrapegraphAiGetCredits };
|
|
9
13
|
//# sourceMappingURL=get-credits.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-credits.d.cts","names":[],"sources":["../../src/actions/get-credits.ts"],"mappings":";;;cAIa,4BAAA,
|
|
1
|
+
{"version":3,"file":"get-credits.d.cts","names":[],"sources":["../../src/actions/get-credits.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;cAM7B,uBAAA,gCAAuB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-credits.d.ts
|
|
4
|
-
declare const ScrapegraphAiGetCreditsInput: z.
|
|
5
|
-
declare const ScrapegraphAiGetCreditsOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const ScrapegraphAiGetCreditsInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const ScrapegraphAiGetCreditsOutput: z.ZodObject<{
|
|
6
|
+
has_credits: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
7
|
+
remaining_credits: z.ZodNullable<z.ZodNumber>;
|
|
8
|
+
total_credits_used: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
}, z.core.$loose>;
|
|
10
|
+
declare const scrapegraphAiGetCredits: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
11
|
//#endregion
|
|
8
12
|
export { scrapegraphAiGetCredits };
|
|
9
13
|
//# sourceMappingURL=get-credits.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-credits.d.mts","names":[],"sources":["../../src/actions/get-credits.ts"],"mappings":";;;cAIa,4BAAA,
|
|
1
|
+
{"version":3,"file":"get-credits.d.mts","names":[],"sources":["../../src/actions/get-credits.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;cAM7B,uBAAA,gCAAuB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -7,9 +7,9 @@ const scrapegraphAiGetCredits = action("SCRAPEGRAPH_AI_GET_CREDITS", {
|
|
|
7
7
|
input: z.object({}).describe("Request schema for retrieving your account credit information."),
|
|
8
8
|
output: z.object({
|
|
9
9
|
has_credits: z.boolean().default(true).describe("Whether the account has credits available for API operations.").nullable().optional(),
|
|
10
|
-
remaining_credits: z.number().int().describe("Number of credits available for use in your account."),
|
|
11
|
-
total_credits_used: z.number().int().describe("Total number of credits consumed so far across all API calls.")
|
|
12
|
-
}).describe("Response schema for retrieving credit balances from your ScrapeGraphAI account.")
|
|
10
|
+
remaining_credits: z.number().int().describe("Number of credits available for use in your account.").nullable(),
|
|
11
|
+
total_credits_used: z.number().int().describe("Total number of credits consumed so far across all API calls.").nullable()
|
|
12
|
+
}).passthrough().describe("Response schema for retrieving credit balances from your ScrapeGraphAI account.")
|
|
13
13
|
});
|
|
14
14
|
//#endregion
|
|
15
15
|
export { scrapegraphAiGetCredits };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-credits.mjs","names":[],"sources":["../../src/actions/get-credits.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapegraphAiGetCreditsInput
|
|
1
|
+
{"version":3,"file":"get-credits.mjs","names":[],"sources":["../../src/actions/get-credits.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapegraphAiGetCreditsInput = z.object({}).describe(\"Request schema for retrieving your account credit information.\");\nexport const ScrapegraphAiGetCreditsOutput = z.object({\n has_credits: z.boolean().default(true).describe(\"Whether the account has credits available for API operations.\").nullable().optional(),\n remaining_credits: z.number().int().describe(\"Number of credits available for use in your account.\").nullable(),\n total_credits_used: z.number().int().describe(\"Total number of credits consumed so far across all API calls.\").nullable(),\n}).passthrough().describe(\"Response schema for retrieving credit balances from your ScrapeGraphAI account.\");\n\nexport const scrapegraphAiGetCredits = action(\"SCRAPEGRAPH_AI_GET_CREDITS\", {\n slug: \"scrapegraph_ai-get-credits\",\n name: \"Get Credits\",\n description: \"Retrieve remaining and used credits for your ScrapeGraphAI account. Useful for checking credit availability before bulk scraping operations to avoid mid-run failures.\",\n input: ScrapegraphAiGetCreditsInput,\n output: ScrapegraphAiGetCreditsOutput,\n});\n"],"mappings":";;AAWA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAX0C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gEAWzD;CACP,QAX2C,EAAE,OAAO;EACpD,aAAa,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrI,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EAC9G,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iFAOhB;AACV,CAAC"}
|
|
@@ -7,18 +7,18 @@ const ScrapegraphAiGetEndpointSuggestionsInput = zod.z.object({
|
|
|
7
7
|
}).describe("Request schema for getting AI-powered endpoint suggestions.");
|
|
8
8
|
const ScrapegraphAiGetEndpointSuggestions_EndpointSuggestionSchema = zod.z.object({
|
|
9
9
|
method: zod.z.string().describe("HTTP method recommended for this endpoint (e.g., GET, POST).").nullable().optional(),
|
|
10
|
-
endpoint: zod.z.string().describe("Suggested endpoint name or path for this scraping scenario."),
|
|
10
|
+
endpoint: zod.z.string().describe("Suggested endpoint name or path for this scraping scenario.").nullable(),
|
|
11
11
|
parameters: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of parameters required for this endpoint (name, type, description, etc.)."),
|
|
12
|
-
target_url: zod.z.string().describe("The specific URL or URL pattern to scrape for this endpoint."),
|
|
13
|
-
description: zod.z.string().describe("Human-readable description of what this endpoint extracts."),
|
|
12
|
+
target_url: zod.z.string().describe("The specific URL or URL pattern to scrape for this endpoint.").nullable(),
|
|
13
|
+
description: zod.z.string().describe("Human-readable description of what this endpoint extracts.").nullable(),
|
|
14
14
|
pydantic_schema: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Pydantic-compatible JSON schema defining the structure of extracted data."),
|
|
15
|
-
extraction_prompt: zod.z.string().describe("Recommended prompt for extracting data from this endpoint."),
|
|
15
|
+
extraction_prompt: zod.z.string().describe("Recommended prompt for extracting data from this endpoint.").nullable(),
|
|
16
16
|
interaction_steps: zod.z.union([zod.z.record(zod.z.string(), zod.z.unknown()), zod.z.array(zod.z.unknown())]).nullable().optional()
|
|
17
|
-
}).describe("Schema for a single endpoint suggestion with scraping configuration.");
|
|
17
|
+
}).passthrough().describe("Schema for a single endpoint suggestion with scraping configuration.");
|
|
18
18
|
const ScrapegraphAiGetEndpointSuggestionsOutput = zod.z.object({
|
|
19
19
|
suggestions: zod.z.array(ScrapegraphAiGetEndpointSuggestions_EndpointSuggestionSchema).describe("List of suggested endpoints with full configuration for scraping."),
|
|
20
20
|
html_with_markdowns: zod.z.unknown().describe("HTML content converted to Markdown format for analysis.").nullable().optional()
|
|
21
|
-
}).describe("Response schema containing AI-generated endpoint suggestions.");
|
|
21
|
+
}).passthrough().describe("Response schema containing AI-generated endpoint suggestions.");
|
|
22
22
|
const scrapegraphAiGetEndpointSuggestions = require_action.action("SCRAPEGRAPH_AI_GET_ENDPOINT_SUGGESTIONS", {
|
|
23
23
|
slug: "scrapegraph_ai-get-endpoint-suggestions",
|
|
24
24
|
name: "Get Endpoint Suggestions",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-endpoint-suggestions.cjs","names":["z","action"],"sources":["../../src/actions/get-endpoint-suggestions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapegraphAiGetEndpointSuggestionsInput
|
|
1
|
+
{"version":3,"file":"get-endpoint-suggestions.cjs","names":["z","action"],"sources":["../../src/actions/get-endpoint-suggestions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapegraphAiGetEndpointSuggestionsInput = z.object({\n prompt: z.string().describe(\"Natural language description of what data you want to extract. Be specific about the type of information needed (e.g., 'product listings', 'user profiles', 'news articles').\"),\n website_url: z.string().describe(\"The website URL to analyze for scraping opportunities. Must be a valid URL with https:// or http:// protocol.\"),\n}).describe(\"Request schema for getting AI-powered endpoint suggestions.\");\nconst ScrapegraphAiGetEndpointSuggestions_EndpointSuggestionSchema = z.object({\n method: z.string().describe(\"HTTP method recommended for this endpoint (e.g., GET, POST).\").nullable().optional(),\n endpoint: z.string().describe(\"Suggested endpoint name or path for this scraping scenario.\").nullable(),\n parameters: z.array(z.record(z.string(), z.unknown())).describe(\"List of parameters required for this endpoint (name, type, description, etc.).\"),\n target_url: z.string().describe(\"The specific URL or URL pattern to scrape for this endpoint.\").nullable(),\n description: z.string().describe(\"Human-readable description of what this endpoint extracts.\").nullable(),\n pydantic_schema: z.record(z.string(), z.unknown()).describe(\"Pydantic-compatible JSON schema defining the structure of extracted data.\"),\n extraction_prompt: z.string().describe(\"Recommended prompt for extracting data from this endpoint.\").nullable(),\n interaction_steps: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n}).passthrough().describe(\"Schema for a single endpoint suggestion with scraping configuration.\");\nexport const ScrapegraphAiGetEndpointSuggestionsOutput = z.object({\n suggestions: z.array(ScrapegraphAiGetEndpointSuggestions_EndpointSuggestionSchema).describe(\"List of suggested endpoints with full configuration for scraping.\"),\n html_with_markdowns: z.unknown().describe(\"HTML content converted to Markdown format for analysis.\").nullable().optional(),\n}).passthrough().describe(\"Response schema containing AI-generated endpoint suggestions.\");\n\nexport const scrapegraphAiGetEndpointSuggestions = action(\"SCRAPEGRAPH_AI_GET_ENDPOINT_SUGGESTIONS\", {\n slug: \"scrapegraph_ai-get-endpoint-suggestions\",\n name: \"Get Endpoint Suggestions\",\n description: \"Tool to get AI-powered suggestions for creating scraping endpoints. Use when you need to identify what data can be extracted from a website and how to structure the scraping logic.\",\n input: ScrapegraphAiGetEndpointSuggestionsInput,\n output: ScrapegraphAiGetEndpointSuggestionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+KAA+K;CAC3M,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G;AAClJ,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,+DAA+DA,IAAAA,EAAE,OAAO;CAC5E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACtG,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,gFAAgF;CAChJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACzG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACxG,iBAAiBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2EAA2E;CACvI,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAC9G,mBAAmBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sEAAsE;AAChG,MAAa,4CAA4CA,IAAAA,EAAE,OAAO;CAChE,aAAaA,IAAAA,EAAE,MAAM,4DAA4D,CAAC,CAAC,SAAS,mEAAmE;CAC/J,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAA+D;AAEzF,MAAa,sCAAsCC,eAAAA,OAAO,2CAA2C;CACnG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-endpoint-suggestions.d.ts
|
|
4
|
-
declare const ScrapegraphAiGetEndpointSuggestionsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ScrapegraphAiGetEndpointSuggestionsInput: z.ZodObject<{
|
|
5
|
+
prompt: z.ZodString;
|
|
6
|
+
website_url: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const ScrapegraphAiGetEndpointSuggestionsOutput: z.ZodObject<{
|
|
9
|
+
suggestions: z.ZodArray<z.ZodObject<{
|
|
10
|
+
method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
endpoint: z.ZodNullable<z.ZodString>;
|
|
12
|
+
parameters: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
|
+
target_url: z.ZodNullable<z.ZodString>;
|
|
14
|
+
description: z.ZodNullable<z.ZodString>;
|
|
15
|
+
pydantic_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
16
|
+
extraction_prompt: z.ZodNullable<z.ZodString>;
|
|
17
|
+
interaction_steps: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>>;
|
|
18
|
+
}, z.core.$loose>>;
|
|
19
|
+
html_with_markdowns: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
20
|
+
}, z.core.$loose>;
|
|
21
|
+
declare const scrapegraphAiGetEndpointSuggestions: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
|
+
prompt: string;
|
|
23
|
+
website_url: string;
|
|
24
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
25
|
//#endregion
|
|
8
26
|
export { scrapegraphAiGetEndpointSuggestions };
|
|
9
27
|
//# sourceMappingURL=get-endpoint-suggestions.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-endpoint-suggestions.d.cts","names":[],"sources":["../../src/actions/get-endpoint-suggestions.ts"],"mappings":";;;cAIa,wCAAA,
|
|
1
|
+
{"version":3,"file":"get-endpoint-suggestions.d.cts","names":[],"sources":["../../src/actions/get-endpoint-suggestions.ts"],"mappings":";;;cAIa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;cAcxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAKzC,mCAAA,gCAAmC,wBAAA"}
|
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-endpoint-suggestions.d.ts
|
|
4
|
-
declare const ScrapegraphAiGetEndpointSuggestionsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ScrapegraphAiGetEndpointSuggestionsInput: z.ZodObject<{
|
|
5
|
+
prompt: z.ZodString;
|
|
6
|
+
website_url: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const ScrapegraphAiGetEndpointSuggestionsOutput: z.ZodObject<{
|
|
9
|
+
suggestions: z.ZodArray<z.ZodObject<{
|
|
10
|
+
method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
endpoint: z.ZodNullable<z.ZodString>;
|
|
12
|
+
parameters: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
|
+
target_url: z.ZodNullable<z.ZodString>;
|
|
14
|
+
description: z.ZodNullable<z.ZodString>;
|
|
15
|
+
pydantic_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
16
|
+
extraction_prompt: z.ZodNullable<z.ZodString>;
|
|
17
|
+
interaction_steps: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>>;
|
|
18
|
+
}, z.core.$loose>>;
|
|
19
|
+
html_with_markdowns: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
20
|
+
}, z.core.$loose>;
|
|
21
|
+
declare const scrapegraphAiGetEndpointSuggestions: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
|
+
prompt: string;
|
|
23
|
+
website_url: string;
|
|
24
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
25
|
//#endregion
|
|
8
26
|
export { scrapegraphAiGetEndpointSuggestions };
|
|
9
27
|
//# sourceMappingURL=get-endpoint-suggestions.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-endpoint-suggestions.d.mts","names":[],"sources":["../../src/actions/get-endpoint-suggestions.ts"],"mappings":";;;cAIa,wCAAA,
|
|
1
|
+
{"version":3,"file":"get-endpoint-suggestions.d.mts","names":[],"sources":["../../src/actions/get-endpoint-suggestions.ts"],"mappings":";;;cAIa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;cAcxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAKzC,mCAAA,gCAAmC,wBAAA"}
|
|
@@ -7,14 +7,14 @@ const ScrapegraphAiGetEndpointSuggestionsInput = z.object({
|
|
|
7
7
|
}).describe("Request schema for getting AI-powered endpoint suggestions.");
|
|
8
8
|
const ScrapegraphAiGetEndpointSuggestions_EndpointSuggestionSchema = z.object({
|
|
9
9
|
method: z.string().describe("HTTP method recommended for this endpoint (e.g., GET, POST).").nullable().optional(),
|
|
10
|
-
endpoint: z.string().describe("Suggested endpoint name or path for this scraping scenario."),
|
|
10
|
+
endpoint: z.string().describe("Suggested endpoint name or path for this scraping scenario.").nullable(),
|
|
11
11
|
parameters: z.array(z.record(z.string(), z.unknown())).describe("List of parameters required for this endpoint (name, type, description, etc.)."),
|
|
12
|
-
target_url: z.string().describe("The specific URL or URL pattern to scrape for this endpoint."),
|
|
13
|
-
description: z.string().describe("Human-readable description of what this endpoint extracts."),
|
|
12
|
+
target_url: z.string().describe("The specific URL or URL pattern to scrape for this endpoint.").nullable(),
|
|
13
|
+
description: z.string().describe("Human-readable description of what this endpoint extracts.").nullable(),
|
|
14
14
|
pydantic_schema: z.record(z.string(), z.unknown()).describe("Pydantic-compatible JSON schema defining the structure of extracted data."),
|
|
15
|
-
extraction_prompt: z.string().describe("Recommended prompt for extracting data from this endpoint."),
|
|
15
|
+
extraction_prompt: z.string().describe("Recommended prompt for extracting data from this endpoint.").nullable(),
|
|
16
16
|
interaction_steps: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional()
|
|
17
|
-
}).describe("Schema for a single endpoint suggestion with scraping configuration.");
|
|
17
|
+
}).passthrough().describe("Schema for a single endpoint suggestion with scraping configuration.");
|
|
18
18
|
const scrapegraphAiGetEndpointSuggestions = action("SCRAPEGRAPH_AI_GET_ENDPOINT_SUGGESTIONS", {
|
|
19
19
|
slug: "scrapegraph_ai-get-endpoint-suggestions",
|
|
20
20
|
name: "Get Endpoint Suggestions",
|
|
@@ -23,7 +23,7 @@ const scrapegraphAiGetEndpointSuggestions = action("SCRAPEGRAPH_AI_GET_ENDPOINT_
|
|
|
23
23
|
output: z.object({
|
|
24
24
|
suggestions: z.array(ScrapegraphAiGetEndpointSuggestions_EndpointSuggestionSchema).describe("List of suggested endpoints with full configuration for scraping."),
|
|
25
25
|
html_with_markdowns: z.unknown().describe("HTML content converted to Markdown format for analysis.").nullable().optional()
|
|
26
|
-
}).describe("Response schema containing AI-generated endpoint suggestions.")
|
|
26
|
+
}).passthrough().describe("Response schema containing AI-generated endpoint suggestions.")
|
|
27
27
|
});
|
|
28
28
|
//#endregion
|
|
29
29
|
export { scrapegraphAiGetEndpointSuggestions };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-endpoint-suggestions.mjs","names":[],"sources":["../../src/actions/get-endpoint-suggestions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapegraphAiGetEndpointSuggestionsInput
|
|
1
|
+
{"version":3,"file":"get-endpoint-suggestions.mjs","names":[],"sources":["../../src/actions/get-endpoint-suggestions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapegraphAiGetEndpointSuggestionsInput = z.object({\n prompt: z.string().describe(\"Natural language description of what data you want to extract. Be specific about the type of information needed (e.g., 'product listings', 'user profiles', 'news articles').\"),\n website_url: z.string().describe(\"The website URL to analyze for scraping opportunities. Must be a valid URL with https:// or http:// protocol.\"),\n}).describe(\"Request schema for getting AI-powered endpoint suggestions.\");\nconst ScrapegraphAiGetEndpointSuggestions_EndpointSuggestionSchema = z.object({\n method: z.string().describe(\"HTTP method recommended for this endpoint (e.g., GET, POST).\").nullable().optional(),\n endpoint: z.string().describe(\"Suggested endpoint name or path for this scraping scenario.\").nullable(),\n parameters: z.array(z.record(z.string(), z.unknown())).describe(\"List of parameters required for this endpoint (name, type, description, etc.).\"),\n target_url: z.string().describe(\"The specific URL or URL pattern to scrape for this endpoint.\").nullable(),\n description: z.string().describe(\"Human-readable description of what this endpoint extracts.\").nullable(),\n pydantic_schema: z.record(z.string(), z.unknown()).describe(\"Pydantic-compatible JSON schema defining the structure of extracted data.\"),\n extraction_prompt: z.string().describe(\"Recommended prompt for extracting data from this endpoint.\").nullable(),\n interaction_steps: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n}).passthrough().describe(\"Schema for a single endpoint suggestion with scraping configuration.\");\nexport const ScrapegraphAiGetEndpointSuggestionsOutput = z.object({\n suggestions: z.array(ScrapegraphAiGetEndpointSuggestions_EndpointSuggestionSchema).describe(\"List of suggested endpoints with full configuration for scraping.\"),\n html_with_markdowns: z.unknown().describe(\"HTML content converted to Markdown format for analysis.\").nullable().optional(),\n}).passthrough().describe(\"Response schema containing AI-generated endpoint suggestions.\");\n\nexport const scrapegraphAiGetEndpointSuggestions = action(\"SCRAPEGRAPH_AI_GET_ENDPOINT_SUGGESTIONS\", {\n slug: \"scrapegraph_ai-get-endpoint-suggestions\",\n name: \"Get Endpoint Suggestions\",\n description: \"Tool to get AI-powered suggestions for creating scraping endpoints. Use when you need to identify what data can be extracted from a website and how to structure the scraping logic.\",\n input: ScrapegraphAiGetEndpointSuggestionsInput,\n output: ScrapegraphAiGetEndpointSuggestionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAA2C,EAAE,OAAO;CAC/D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+KAA+K;CAC3M,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G;AAClJ,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,+DAA+D,EAAE,OAAO;CAC5E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACtG,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,gFAAgF;CAChJ,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACzG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACxG,iBAAiB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2EAA2E;CACvI,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAC9G,mBAAmB,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sEAAsE;AAMhG,MAAa,sCAAsC,OAAO,2CAA2C;CACnG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVuD,EAAE,OAAO;EAChE,aAAa,EAAE,MAAM,4DAA4D,CAAC,CAAC,SAAS,mEAAmE;EAC/J,qBAAqB,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAOhB;AACV,CAAC"}
|
|
@@ -6,9 +6,9 @@ const ScrapegraphAiGetLiveSessionUrlInput = zod.z.object({
|
|
|
6
6
|
timeout: zod.z.number().int().default(300).describe("Timeout for the live session in seconds. Default is 300 seconds (5 minutes).").optional()
|
|
7
7
|
}).describe("Request schema for getting a live browser session URL.");
|
|
8
8
|
const ScrapegraphAiGetLiveSessionUrlOutput = zod.z.object({
|
|
9
|
-
session_id: zod.z.string().describe("Unique identifier for this live browser session. Use this ID to reference or track the session."),
|
|
10
|
-
session_url: zod.z.string().describe("The URL to access the live browser session. Open this URL to interact with the browser.")
|
|
11
|
-
}).describe("Response schema containing the live session URL and session identifier.");
|
|
9
|
+
session_id: zod.z.string().describe("Unique identifier for this live browser session. Use this ID to reference or track the session.").nullable(),
|
|
10
|
+
session_url: zod.z.string().describe("The URL to access the live browser session. Open this URL to interact with the browser.").nullable()
|
|
11
|
+
}).passthrough().describe("Response schema containing the live session URL and session identifier.");
|
|
12
12
|
const scrapegraphAiGetLiveSessionUrl = require_action.action("SCRAPEGRAPH_AI_GET_LIVE_SESSION_URL", {
|
|
13
13
|
slug: "scrapegraph_ai-get-live-session-url",
|
|
14
14
|
name: "Get Live Session URL",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-live-session-url.cjs","names":["z","action"],"sources":["../../src/actions/get-live-session-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapegraphAiGetLiveSessionUrlInput
|
|
1
|
+
{"version":3,"file":"get-live-session-url.cjs","names":["z","action"],"sources":["../../src/actions/get-live-session-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapegraphAiGetLiveSessionUrlInput = z.object({\n url: z.string().describe(\"The URL of the webpage to open in the live browser session. Must be a valid HTTP/HTTPS URL.\"),\n timeout: z.number().int().default(300).describe(\"Timeout for the live session in seconds. Default is 300 seconds (5 minutes).\").optional(),\n}).describe(\"Request schema for getting a live browser session URL.\");\nexport const ScrapegraphAiGetLiveSessionUrlOutput = z.object({\n session_id: z.string().describe(\"Unique identifier for this live browser session. Use this ID to reference or track the session.\").nullable(),\n session_url: z.string().describe(\"The URL to access the live browser session. Open this URL to interact with the browser.\").nullable(),\n}).passthrough().describe(\"Response schema containing the live session URL and session identifier.\");\n\nexport const scrapegraphAiGetLiveSessionUrl = action(\"SCRAPEGRAPH_AI_GET_LIVE_SESSION_URL\", {\n slug: \"scrapegraph_ai-get-live-session-url\",\n name: \"Get Live Session URL\",\n description: \"Tool to get a URL for a live browser session. Use when you need to interact with a webpage in real-time through a controlled browser environment.\",\n input: ScrapegraphAiGetLiveSessionUrlInput,\n output: ScrapegraphAiGetLiveSessionUrlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;CACtH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;AAC3I,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CAC5I,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;AACvI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yEAAyE;AAEnG,MAAa,iCAAiCC,eAAAA,OAAO,uCAAuC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-live-session-url.d.ts
|
|
4
|
-
declare const ScrapegraphAiGetLiveSessionUrlInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ScrapegraphAiGetLiveSessionUrlInput: z.ZodObject<{
|
|
5
|
+
url: z.ZodString;
|
|
6
|
+
timeout: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const ScrapegraphAiGetLiveSessionUrlOutput: z.ZodObject<{
|
|
9
|
+
session_id: z.ZodNullable<z.ZodString>;
|
|
10
|
+
session_url: z.ZodNullable<z.ZodString>;
|
|
11
|
+
}, z.core.$loose>;
|
|
12
|
+
declare const scrapegraphAiGetLiveSessionUrl: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
|
+
url: string;
|
|
14
|
+
timeout?: number | undefined;
|
|
15
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
16
|
//#endregion
|
|
8
17
|
export { scrapegraphAiGetLiveSessionUrl };
|
|
9
18
|
//# sourceMappingURL=get-live-session-url.d.cts.map
|