@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,11 +12,11 @@ const ScrapegraphAiGetWebhookLogs_WebhookLogEntrySchema = zod.z.object({
|
|
|
12
12
|
error_message: zod.z.string().describe("Error message if the webhook delivery failed.").nullable().optional(),
|
|
13
13
|
response_code: zod.z.number().int().describe("HTTP status code returned by the webhook endpoint.").nullable().optional(),
|
|
14
14
|
attempt_number: zod.z.number().int().describe("The attempt number for this delivery (for retries).").nullable().optional()
|
|
15
|
-
}).describe("Represents a single webhook delivery log entry.");
|
|
15
|
+
}).passthrough().describe("Represents a single webhook delivery log entry.");
|
|
16
16
|
const ScrapegraphAiGetWebhookLogsOutput = zod.z.object({
|
|
17
17
|
logs: zod.z.array(ScrapegraphAiGetWebhookLogs_WebhookLogEntrySchema).describe("List of webhook delivery log entries for the specified crawler job.").nullable().optional(),
|
|
18
18
|
total_count: zod.z.number().int().describe("Total number of webhook delivery attempts.").nullable().optional()
|
|
19
|
-
}).describe("Response model for retrieving webhook delivery logs.");
|
|
19
|
+
}).passthrough().describe("Response model for retrieving webhook delivery logs.");
|
|
20
20
|
const scrapegraphAiGetWebhookLogs = require_action.action("SCRAPEGRAPH_AI_GET_WEBHOOK_LOGS", {
|
|
21
21
|
slug: "scrapegraph_ai-get-webhook-logs",
|
|
22
22
|
name: "Get Webhook Logs",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-webhook-logs.cjs","names":["z","action"],"sources":["../../src/actions/get-webhook-logs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapegraphAiGetWebhookLogsInput
|
|
1
|
+
{"version":3,"file":"get-webhook-logs.cjs","names":["z","action"],"sources":["../../src/actions/get-webhook-logs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapegraphAiGetWebhookLogsInput = z.object({\n crawler_id: z.string().describe(\"The unique identifier of the crawler job to retrieve webhook logs for. Obtained from starting a crawler job.\"),\n}).describe(\"Request model for retrieving webhook delivery logs for a crawler job.\");\nconst ScrapegraphAiGetWebhookLogs_WebhookLogEntrySchema = z.object({\n url: z.string().describe(\"The webhook URL that was called.\").nullable().optional(),\n status: z.string().describe(\"Status of the webhook delivery (e.g., 'success', 'failed', 'pending').\").nullable().optional(),\n payload: z.record(z.string(), z.unknown()).describe(\"The payload that was sent to the webhook endpoint.\").nullable().optional(),\n timestamp: z.string().describe(\"ISO 8601 timestamp of when the webhook was sent.\").nullable().optional(),\n crawler_id: z.string().describe(\"The crawler job ID associated with this webhook.\").nullable().optional(),\n webhook_id: z.string().describe(\"Unique identifier for this webhook delivery attempt.\").nullable().optional(),\n error_message: z.string().describe(\"Error message if the webhook delivery failed.\").nullable().optional(),\n response_code: z.number().int().describe(\"HTTP status code returned by the webhook endpoint.\").nullable().optional(),\n attempt_number: z.number().int().describe(\"The attempt number for this delivery (for retries).\").nullable().optional(),\n}).passthrough().describe(\"Represents a single webhook delivery log entry.\");\nexport const ScrapegraphAiGetWebhookLogsOutput = z.object({\n logs: z.array(ScrapegraphAiGetWebhookLogs_WebhookLogEntrySchema).describe(\"List of webhook delivery log entries for the specified crawler job.\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of webhook delivery attempts.\").nullable().optional(),\n}).passthrough().describe(\"Response model for retrieving webhook delivery logs.\");\n\nexport const scrapegraphAiGetWebhookLogs = action(\"SCRAPEGRAPH_AI_GET_WEBHOOK_LOGS\", {\n slug: \"scrapegraph_ai-get-webhook-logs\",\n name: \"Get Webhook Logs\",\n description: \"Tool to retrieve webhook delivery logs for a crawler job. Use when you need to check the status and history of webhook notifications sent for a specific crawler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C,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,MAAM,iDAAiD,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrK,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAEhF,MAAa,8BAA8BC,eAAAA,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,26 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-webhook-logs.d.ts
|
|
4
|
-
declare const ScrapegraphAiGetWebhookLogsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ScrapegraphAiGetWebhookLogsInput: z.ZodObject<{
|
|
5
|
+
crawler_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ScrapegraphAiGetWebhookLogsOutput: z.ZodObject<{
|
|
8
|
+
logs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
9
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
payload: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
12
|
+
timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
crawler_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
webhook_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
response_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
|
+
attempt_number: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
+
}, z.core.$loose>>>>;
|
|
19
|
+
total_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
+
}, z.core.$loose>;
|
|
21
|
+
declare const scrapegraphAiGetWebhookLogs: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
|
+
crawler_id: string;
|
|
23
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
24
|
//#endregion
|
|
8
25
|
export { scrapegraphAiGetWebhookLogs };
|
|
9
26
|
//# sourceMappingURL=get-webhook-logs.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-webhook-logs.d.cts","names":[],"sources":["../../src/actions/get-webhook-logs.ts"],"mappings":";;;cAIa,gCAAA,
|
|
1
|
+
{"version":3,"file":"get-webhook-logs.d.cts","names":[],"sources":["../../src/actions/get-webhook-logs.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAchC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAKjC,2BAAA,gCAA2B,wBAAA"}
|
|
@@ -1,9 +1,26 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-webhook-logs.d.ts
|
|
4
|
-
declare const ScrapegraphAiGetWebhookLogsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ScrapegraphAiGetWebhookLogsInput: z.ZodObject<{
|
|
5
|
+
crawler_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ScrapegraphAiGetWebhookLogsOutput: z.ZodObject<{
|
|
8
|
+
logs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
9
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
payload: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
12
|
+
timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
crawler_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
webhook_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
response_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
|
+
attempt_number: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
+
}, z.core.$loose>>>>;
|
|
19
|
+
total_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
+
}, z.core.$loose>;
|
|
21
|
+
declare const scrapegraphAiGetWebhookLogs: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
|
+
crawler_id: string;
|
|
23
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
24
|
//#endregion
|
|
8
25
|
export { scrapegraphAiGetWebhookLogs };
|
|
9
26
|
//# sourceMappingURL=get-webhook-logs.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-webhook-logs.d.mts","names":[],"sources":["../../src/actions/get-webhook-logs.ts"],"mappings":";;;cAIa,gCAAA,
|
|
1
|
+
{"version":3,"file":"get-webhook-logs.d.mts","names":[],"sources":["../../src/actions/get-webhook-logs.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAchC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAKjC,2BAAA,gCAA2B,wBAAA"}
|
|
@@ -12,7 +12,7 @@ const ScrapegraphAiGetWebhookLogs_WebhookLogEntrySchema = z.object({
|
|
|
12
12
|
error_message: z.string().describe("Error message if the webhook delivery failed.").nullable().optional(),
|
|
13
13
|
response_code: z.number().int().describe("HTTP status code returned by the webhook endpoint.").nullable().optional(),
|
|
14
14
|
attempt_number: z.number().int().describe("The attempt number for this delivery (for retries).").nullable().optional()
|
|
15
|
-
}).describe("Represents a single webhook delivery log entry.");
|
|
15
|
+
}).passthrough().describe("Represents a single webhook delivery log entry.");
|
|
16
16
|
const scrapegraphAiGetWebhookLogs = action("SCRAPEGRAPH_AI_GET_WEBHOOK_LOGS", {
|
|
17
17
|
slug: "scrapegraph_ai-get-webhook-logs",
|
|
18
18
|
name: "Get Webhook Logs",
|
|
@@ -21,7 +21,7 @@ const scrapegraphAiGetWebhookLogs = action("SCRAPEGRAPH_AI_GET_WEBHOOK_LOGS", {
|
|
|
21
21
|
output: z.object({
|
|
22
22
|
logs: z.array(ScrapegraphAiGetWebhookLogs_WebhookLogEntrySchema).describe("List of webhook delivery log entries for the specified crawler job.").nullable().optional(),
|
|
23
23
|
total_count: z.number().int().describe("Total number of webhook delivery attempts.").nullable().optional()
|
|
24
|
-
}).describe("Response model for retrieving webhook delivery logs.")
|
|
24
|
+
}).passthrough().describe("Response model for retrieving webhook delivery logs.")
|
|
25
25
|
});
|
|
26
26
|
//#endregion
|
|
27
27
|
export { scrapegraphAiGetWebhookLogs };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-webhook-logs.mjs","names":[],"sources":["../../src/actions/get-webhook-logs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapegraphAiGetWebhookLogsInput
|
|
1
|
+
{"version":3,"file":"get-webhook-logs.mjs","names":[],"sources":["../../src/actions/get-webhook-logs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapegraphAiGetWebhookLogsInput = z.object({\n crawler_id: z.string().describe(\"The unique identifier of the crawler job to retrieve webhook logs for. Obtained from starting a crawler job.\"),\n}).describe(\"Request model for retrieving webhook delivery logs for a crawler job.\");\nconst ScrapegraphAiGetWebhookLogs_WebhookLogEntrySchema = z.object({\n url: z.string().describe(\"The webhook URL that was called.\").nullable().optional(),\n status: z.string().describe(\"Status of the webhook delivery (e.g., 'success', 'failed', 'pending').\").nullable().optional(),\n payload: z.record(z.string(), z.unknown()).describe(\"The payload that was sent to the webhook endpoint.\").nullable().optional(),\n timestamp: z.string().describe(\"ISO 8601 timestamp of when the webhook was sent.\").nullable().optional(),\n crawler_id: z.string().describe(\"The crawler job ID associated with this webhook.\").nullable().optional(),\n webhook_id: z.string().describe(\"Unique identifier for this webhook delivery attempt.\").nullable().optional(),\n error_message: z.string().describe(\"Error message if the webhook delivery failed.\").nullable().optional(),\n response_code: z.number().int().describe(\"HTTP status code returned by the webhook endpoint.\").nullable().optional(),\n attempt_number: z.number().int().describe(\"The attempt number for this delivery (for retries).\").nullable().optional(),\n}).passthrough().describe(\"Represents a single webhook delivery log entry.\");\nexport const ScrapegraphAiGetWebhookLogsOutput = z.object({\n logs: z.array(ScrapegraphAiGetWebhookLogs_WebhookLogEntrySchema).describe(\"List of webhook delivery log entries for the specified crawler job.\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of webhook delivery attempts.\").nullable().optional(),\n}).passthrough().describe(\"Response model for retrieving webhook delivery logs.\");\n\nexport const scrapegraphAiGetWebhookLogs = action(\"SCRAPEGRAPH_AI_GET_WEBHOOK_LOGS\", {\n slug: \"scrapegraph_ai-get-webhook-logs\",\n name: \"Get Webhook Logs\",\n description: \"Tool to retrieve webhook delivery logs for a crawler job. Use when you need to check the status and history of webhook notifications sent for a specific crawler execution.\",\n input: ScrapegraphAiGetWebhookLogsInput,\n output: ScrapegraphAiGetWebhookLogsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO,EACvD,YAAY,EAAE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a,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAOhB;AACV,CAAC"}
|
|
@@ -8,24 +8,24 @@ const ScrapegraphAiListScheduledJobsInput = zod.z.object({
|
|
|
8
8
|
service_type: zod.z.string().describe("Filter jobs by service type (e.g., 'smartscraper', 'markdownify', 'searchscraper'). If not provided, returns jobs of all service types.").optional()
|
|
9
9
|
}).describe("Request model for listing scheduled scraping jobs.");
|
|
10
10
|
const ScrapegraphAiListScheduledJobs_ScheduledJobResponseSchema = zod.z.object({
|
|
11
|
-
id: zod.z.string().describe("Unique identifier (UUID) of the scheduled job"),
|
|
12
|
-
user_id: zod.z.string().describe("User ID who owns this scheduled job"),
|
|
13
|
-
job_name: zod.z.string().describe("Name of the scheduled job"),
|
|
14
|
-
is_active: zod.z.boolean().describe("Whether the job is currently active and will run on schedule"),
|
|
15
|
-
created_at: zod.z.string().describe("ISO 8601 timestamp when the job was created"),
|
|
11
|
+
id: zod.z.string().describe("Unique identifier (UUID) of the scheduled job").nullable(),
|
|
12
|
+
user_id: zod.z.string().describe("User ID who owns this scheduled job").nullable(),
|
|
13
|
+
job_name: zod.z.string().describe("Name of the scheduled job").nullable(),
|
|
14
|
+
is_active: zod.z.boolean().describe("Whether the job is currently active and will run on schedule").nullable(),
|
|
15
|
+
created_at: zod.z.string().describe("ISO 8601 timestamp when the job was created").nullable(),
|
|
16
16
|
job_config: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Configuration object for the job, containing parameters like website_url, user_prompt, etc."),
|
|
17
|
-
updated_at: zod.z.string().describe("ISO 8601 timestamp when the job was last updated"),
|
|
17
|
+
updated_at: zod.z.string().describe("ISO 8601 timestamp when the job was last updated").nullable(),
|
|
18
18
|
last_run_at: zod.z.unknown().describe("Timestamp of the last execution, or null if never run").nullable().optional(),
|
|
19
19
|
next_run_at: zod.z.unknown().describe("Timestamp of the next scheduled execution, or null if not scheduled").nullable().optional(),
|
|
20
|
-
service_type: zod.z.string().describe("Type of service (e.g., 'smartscraper', 'markdownify', 'searchscraper')"),
|
|
21
|
-
cron_expression: zod.z.string().describe("Cron expression defining the schedule (e.g., '0 0 * * *' for daily at midnight)")
|
|
22
|
-
}).describe("Schema for a single scheduled job.");
|
|
20
|
+
service_type: zod.z.string().describe("Type of service (e.g., 'smartscraper', 'markdownify', 'searchscraper')").nullable(),
|
|
21
|
+
cron_expression: zod.z.string().describe("Cron expression defining the schedule (e.g., '0 0 * * *' for daily at midnight)").nullable()
|
|
22
|
+
}).passthrough().describe("Schema for a single scheduled job.");
|
|
23
23
|
const ScrapegraphAiListScheduledJobsOutput = zod.z.object({
|
|
24
24
|
jobs: zod.z.array(ScrapegraphAiListScheduledJobs_ScheduledJobResponseSchema).describe("List of scheduled jobs on the current page"),
|
|
25
|
-
page: zod.z.number().int().describe("Current page number"),
|
|
26
|
-
total: zod.z.number().int().describe("Total number of scheduled jobs matching the filters"),
|
|
27
|
-
page_size: zod.z.number().int().describe("Number of jobs per page")
|
|
28
|
-
}).describe("Response model for listing scheduled scraping jobs with pagination.");
|
|
25
|
+
page: zod.z.number().int().describe("Current page number").nullable(),
|
|
26
|
+
total: zod.z.number().int().describe("Total number of scheduled jobs matching the filters").nullable(),
|
|
27
|
+
page_size: zod.z.number().int().describe("Number of jobs per page").nullable()
|
|
28
|
+
}).passthrough().describe("Response model for listing scheduled scraping jobs with pagination.");
|
|
29
29
|
const scrapegraphAiListScheduledJobs = require_action.action("SCRAPEGRAPH_AI_LIST_SCHEDULED_JOBS", {
|
|
30
30
|
slug: "scrapegraph_ai-list-scheduled-jobs",
|
|
31
31
|
name: "List Scheduled Jobs",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-scheduled-jobs.cjs","names":["z","action"],"sources":["../../src/actions/list-scheduled-jobs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapegraphAiListScheduledJobsInput
|
|
1
|
+
{"version":3,"file":"list-scheduled-jobs.cjs","names":["z","action"],"sources":["../../src/actions/list-scheduled-jobs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapegraphAiListScheduledJobsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination. Must be 1 or greater.\").optional(),\n is_active: z.string().describe(\"Filter jobs by active status. Use 'true' to show only active jobs, 'false' for inactive jobs, or omit to show all jobs.\").optional(),\n page_size: z.number().int().default(20).describe(\"Number of jobs to return per page. Must be between 1 and 100.\").optional(),\n service_type: z.string().describe(\"Filter jobs by service type (e.g., 'smartscraper', 'markdownify', 'searchscraper'). If not provided, returns jobs of all service types.\").optional(),\n}).describe(\"Request model for listing scheduled scraping jobs.\");\nconst ScrapegraphAiListScheduledJobs_ScheduledJobResponseSchema = z.object({\n id: z.string().describe(\"Unique identifier (UUID) of the scheduled job\").nullable(),\n user_id: z.string().describe(\"User ID who owns this scheduled job\").nullable(),\n job_name: z.string().describe(\"Name of the scheduled job\").nullable(),\n is_active: z.boolean().describe(\"Whether the job is currently active and will run on schedule\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the job was created\").nullable(),\n job_config: z.record(z.string(), z.unknown()).describe(\"Configuration object for the job, containing parameters like website_url, user_prompt, etc.\"),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the job was last updated\").nullable(),\n last_run_at: z.unknown().describe(\"Timestamp of the last execution, or null if never run\").nullable().optional(),\n next_run_at: z.unknown().describe(\"Timestamp of the next scheduled execution, or null if not scheduled\").nullable().optional(),\n service_type: z.string().describe(\"Type of service (e.g., 'smartscraper', 'markdownify', 'searchscraper')\").nullable(),\n cron_expression: z.string().describe(\"Cron expression defining the schedule (e.g., '0 0 * * *' for daily at midnight)\").nullable(),\n}).passthrough().describe(\"Schema for a single scheduled job.\");\nexport const ScrapegraphAiListScheduledJobsOutput = z.object({\n jobs: z.array(ScrapegraphAiListScheduledJobs_ScheduledJobResponseSchema).describe(\"List of scheduled jobs on the current page\"),\n page: z.number().int().describe(\"Current page number\").nullable(),\n total: z.number().int().describe(\"Total number of scheduled jobs matching the filters\").nullable(),\n page_size: z.number().int().describe(\"Number of jobs per page\").nullable(),\n}).passthrough().describe(\"Response model for listing scheduled scraping jobs with pagination.\");\n\nexport const scrapegraphAiListScheduledJobs = action(\"SCRAPEGRAPH_AI_LIST_SCHEDULED_JOBS\", {\n slug: \"scrapegraph_ai-list-scheduled-jobs\",\n name: \"List Scheduled Jobs\",\n description: \"Retrieve a paginated list of all scheduled scraping jobs for your account. Use this action to view and manage your scheduled jobs, including their configuration, cron schedules, and active status. Supports filtering by service type and active status.\",\n input: ScrapegraphAiListScheduledJobsInput,\n output: ScrapegraphAiListScheduledJobsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACzG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS;CACnK,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3H,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;AACxL,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,4DAA4DA,IAAAA,EAAE,OAAO;CACzE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAClF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC7E,UAAUA,IAAAA,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C,YAAY,CAAC,CAAC,SAAS,qEAAqE;AAE/F,MAAa,iCAAiCC,eAAAA,OAAO,sCAAsC;CACzF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,36 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-scheduled-jobs.d.ts
|
|
4
|
-
declare const ScrapegraphAiListScheduledJobsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ScrapegraphAiListScheduledJobsInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
|
+
is_active: z.ZodOptional<z.ZodString>;
|
|
7
|
+
page_size: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
8
|
+
service_type: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const ScrapegraphAiListScheduledJobsOutput: z.ZodObject<{
|
|
11
|
+
jobs: z.ZodArray<z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodString>;
|
|
13
|
+
user_id: z.ZodNullable<z.ZodString>;
|
|
14
|
+
job_name: z.ZodNullable<z.ZodString>;
|
|
15
|
+
is_active: z.ZodNullable<z.ZodBoolean>;
|
|
16
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
17
|
+
job_config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
18
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
19
|
+
last_run_at: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
20
|
+
next_run_at: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
21
|
+
service_type: z.ZodNullable<z.ZodString>;
|
|
22
|
+
cron_expression: z.ZodNullable<z.ZodString>;
|
|
23
|
+
}, z.core.$loose>>;
|
|
24
|
+
page: z.ZodNullable<z.ZodNumber>;
|
|
25
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
26
|
+
page_size: z.ZodNullable<z.ZodNumber>;
|
|
27
|
+
}, z.core.$loose>;
|
|
28
|
+
declare const scrapegraphAiListScheduledJobs: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
29
|
+
page?: number | undefined;
|
|
30
|
+
is_active?: string | undefined;
|
|
31
|
+
page_size?: number | undefined;
|
|
32
|
+
service_type?: string | undefined;
|
|
33
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
34
|
//#endregion
|
|
8
35
|
export { scrapegraphAiListScheduledJobs };
|
|
9
36
|
//# sourceMappingURL=list-scheduled-jobs.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-scheduled-jobs.d.cts","names":[],"sources":["../../src/actions/list-scheduled-jobs.ts"],"mappings":";;;cAIa,mCAAA,
|
|
1
|
+
{"version":3,"file":"list-scheduled-jobs.d.cts","names":[],"sources":["../../src/actions/list-scheduled-jobs.ts"],"mappings":";;;cAIa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;cAmBnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAOpC,8BAAA,gCAA8B,wBAAA"}
|
|
@@ -1,9 +1,36 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-scheduled-jobs.d.ts
|
|
4
|
-
declare const ScrapegraphAiListScheduledJobsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ScrapegraphAiListScheduledJobsInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
|
+
is_active: z.ZodOptional<z.ZodString>;
|
|
7
|
+
page_size: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
8
|
+
service_type: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const ScrapegraphAiListScheduledJobsOutput: z.ZodObject<{
|
|
11
|
+
jobs: z.ZodArray<z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodString>;
|
|
13
|
+
user_id: z.ZodNullable<z.ZodString>;
|
|
14
|
+
job_name: z.ZodNullable<z.ZodString>;
|
|
15
|
+
is_active: z.ZodNullable<z.ZodBoolean>;
|
|
16
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
17
|
+
job_config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
18
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
19
|
+
last_run_at: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
20
|
+
next_run_at: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
21
|
+
service_type: z.ZodNullable<z.ZodString>;
|
|
22
|
+
cron_expression: z.ZodNullable<z.ZodString>;
|
|
23
|
+
}, z.core.$loose>>;
|
|
24
|
+
page: z.ZodNullable<z.ZodNumber>;
|
|
25
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
26
|
+
page_size: z.ZodNullable<z.ZodNumber>;
|
|
27
|
+
}, z.core.$loose>;
|
|
28
|
+
declare const scrapegraphAiListScheduledJobs: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
29
|
+
page?: number | undefined;
|
|
30
|
+
is_active?: string | undefined;
|
|
31
|
+
page_size?: number | undefined;
|
|
32
|
+
service_type?: string | undefined;
|
|
33
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
34
|
//#endregion
|
|
8
35
|
export { scrapegraphAiListScheduledJobs };
|
|
9
36
|
//# sourceMappingURL=list-scheduled-jobs.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-scheduled-jobs.d.mts","names":[],"sources":["../../src/actions/list-scheduled-jobs.ts"],"mappings":";;;cAIa,mCAAA,
|
|
1
|
+
{"version":3,"file":"list-scheduled-jobs.d.mts","names":[],"sources":["../../src/actions/list-scheduled-jobs.ts"],"mappings":";;;cAIa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;cAmBnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAOpC,8BAAA,gCAA8B,wBAAA"}
|
|
@@ -8,18 +8,18 @@ const ScrapegraphAiListScheduledJobsInput = z.object({
|
|
|
8
8
|
service_type: z.string().describe("Filter jobs by service type (e.g., 'smartscraper', 'markdownify', 'searchscraper'). If not provided, returns jobs of all service types.").optional()
|
|
9
9
|
}).describe("Request model for listing scheduled scraping jobs.");
|
|
10
10
|
const ScrapegraphAiListScheduledJobs_ScheduledJobResponseSchema = z.object({
|
|
11
|
-
id: z.string().describe("Unique identifier (UUID) of the scheduled job"),
|
|
12
|
-
user_id: z.string().describe("User ID who owns this scheduled job"),
|
|
13
|
-
job_name: z.string().describe("Name of the scheduled job"),
|
|
14
|
-
is_active: z.boolean().describe("Whether the job is currently active and will run on schedule"),
|
|
15
|
-
created_at: z.string().describe("ISO 8601 timestamp when the job was created"),
|
|
11
|
+
id: z.string().describe("Unique identifier (UUID) of the scheduled job").nullable(),
|
|
12
|
+
user_id: z.string().describe("User ID who owns this scheduled job").nullable(),
|
|
13
|
+
job_name: z.string().describe("Name of the scheduled job").nullable(),
|
|
14
|
+
is_active: z.boolean().describe("Whether the job is currently active and will run on schedule").nullable(),
|
|
15
|
+
created_at: z.string().describe("ISO 8601 timestamp when the job was created").nullable(),
|
|
16
16
|
job_config: z.record(z.string(), z.unknown()).describe("Configuration object for the job, containing parameters like website_url, user_prompt, etc."),
|
|
17
|
-
updated_at: z.string().describe("ISO 8601 timestamp when the job was last updated"),
|
|
17
|
+
updated_at: z.string().describe("ISO 8601 timestamp when the job was last updated").nullable(),
|
|
18
18
|
last_run_at: z.unknown().describe("Timestamp of the last execution, or null if never run").nullable().optional(),
|
|
19
19
|
next_run_at: z.unknown().describe("Timestamp of the next scheduled execution, or null if not scheduled").nullable().optional(),
|
|
20
|
-
service_type: z.string().describe("Type of service (e.g., 'smartscraper', 'markdownify', 'searchscraper')"),
|
|
21
|
-
cron_expression: z.string().describe("Cron expression defining the schedule (e.g., '0 0 * * *' for daily at midnight)")
|
|
22
|
-
}).describe("Schema for a single scheduled job.");
|
|
20
|
+
service_type: z.string().describe("Type of service (e.g., 'smartscraper', 'markdownify', 'searchscraper')").nullable(),
|
|
21
|
+
cron_expression: z.string().describe("Cron expression defining the schedule (e.g., '0 0 * * *' for daily at midnight)").nullable()
|
|
22
|
+
}).passthrough().describe("Schema for a single scheduled job.");
|
|
23
23
|
const scrapegraphAiListScheduledJobs = action("SCRAPEGRAPH_AI_LIST_SCHEDULED_JOBS", {
|
|
24
24
|
slug: "scrapegraph_ai-list-scheduled-jobs",
|
|
25
25
|
name: "List Scheduled Jobs",
|
|
@@ -27,10 +27,10 @@ const scrapegraphAiListScheduledJobs = action("SCRAPEGRAPH_AI_LIST_SCHEDULED_JOB
|
|
|
27
27
|
input: ScrapegraphAiListScheduledJobsInput,
|
|
28
28
|
output: z.object({
|
|
29
29
|
jobs: z.array(ScrapegraphAiListScheduledJobs_ScheduledJobResponseSchema).describe("List of scheduled jobs on the current page"),
|
|
30
|
-
page: z.number().int().describe("Current page number"),
|
|
31
|
-
total: z.number().int().describe("Total number of scheduled jobs matching the filters"),
|
|
32
|
-
page_size: z.number().int().describe("Number of jobs per page")
|
|
33
|
-
}).describe("Response model for listing scheduled scraping jobs with pagination.")
|
|
30
|
+
page: z.number().int().describe("Current page number").nullable(),
|
|
31
|
+
total: z.number().int().describe("Total number of scheduled jobs matching the filters").nullable(),
|
|
32
|
+
page_size: z.number().int().describe("Number of jobs per page").nullable()
|
|
33
|
+
}).passthrough().describe("Response model for listing scheduled scraping jobs with pagination.")
|
|
34
34
|
});
|
|
35
35
|
//#endregion
|
|
36
36
|
export { scrapegraphAiListScheduledJobs };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-scheduled-jobs.mjs","names":[],"sources":["../../src/actions/list-scheduled-jobs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapegraphAiListScheduledJobsInput
|
|
1
|
+
{"version":3,"file":"list-scheduled-jobs.mjs","names":[],"sources":["../../src/actions/list-scheduled-jobs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapegraphAiListScheduledJobsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination. Must be 1 or greater.\").optional(),\n is_active: z.string().describe(\"Filter jobs by active status. Use 'true' to show only active jobs, 'false' for inactive jobs, or omit to show all jobs.\").optional(),\n page_size: z.number().int().default(20).describe(\"Number of jobs to return per page. Must be between 1 and 100.\").optional(),\n service_type: z.string().describe(\"Filter jobs by service type (e.g., 'smartscraper', 'markdownify', 'searchscraper'). If not provided, returns jobs of all service types.\").optional(),\n}).describe(\"Request model for listing scheduled scraping jobs.\");\nconst ScrapegraphAiListScheduledJobs_ScheduledJobResponseSchema = z.object({\n id: z.string().describe(\"Unique identifier (UUID) of the scheduled job\").nullable(),\n user_id: z.string().describe(\"User ID who owns this scheduled job\").nullable(),\n job_name: z.string().describe(\"Name of the scheduled job\").nullable(),\n is_active: z.boolean().describe(\"Whether the job is currently active and will run on schedule\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the job was created\").nullable(),\n job_config: z.record(z.string(), z.unknown()).describe(\"Configuration object for the job, containing parameters like website_url, user_prompt, etc.\"),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the job was last updated\").nullable(),\n last_run_at: z.unknown().describe(\"Timestamp of the last execution, or null if never run\").nullable().optional(),\n next_run_at: z.unknown().describe(\"Timestamp of the next scheduled execution, or null if not scheduled\").nullable().optional(),\n service_type: z.string().describe(\"Type of service (e.g., 'smartscraper', 'markdownify', 'searchscraper')\").nullable(),\n cron_expression: z.string().describe(\"Cron expression defining the schedule (e.g., '0 0 * * *' for daily at midnight)\").nullable(),\n}).passthrough().describe(\"Schema for a single scheduled job.\");\nexport const ScrapegraphAiListScheduledJobsOutput = z.object({\n jobs: z.array(ScrapegraphAiListScheduledJobs_ScheduledJobResponseSchema).describe(\"List of scheduled jobs on the current page\"),\n page: z.number().int().describe(\"Current page number\").nullable(),\n total: z.number().int().describe(\"Total number of scheduled jobs matching the filters\").nullable(),\n page_size: z.number().int().describe(\"Number of jobs per page\").nullable(),\n}).passthrough().describe(\"Response model for listing scheduled scraping jobs with pagination.\");\n\nexport const scrapegraphAiListScheduledJobs = action(\"SCRAPEGRAPH_AI_LIST_SCHEDULED_JOBS\", {\n slug: \"scrapegraph_ai-list-scheduled-jobs\",\n name: \"List Scheduled Jobs\",\n description: \"Retrieve a paginated list of all scheduled scraping jobs for your account. Use this action to view and manage your scheduled jobs, including their configuration, cron schedules, and active status. Supports filtering by service type and active status.\",\n input: ScrapegraphAiListScheduledJobsInput,\n output: ScrapegraphAiListScheduledJobsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsC,EAAE,OAAO;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACzG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS;CACnK,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3H,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;AACxL,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,4DAA4D,EAAE,OAAO;CACzE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAClF,SAAS,EAAE,OAAO,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CAAC,YAAY,CAAC,CAAC,SAAS,qEAOhB;AACV,CAAC"}
|
|
@@ -10,10 +10,10 @@ const ScrapegraphAiMarkdownifyStatusOutput = zod.z.object({
|
|
|
10
10
|
"processing",
|
|
11
11
|
"completed",
|
|
12
12
|
"failed"
|
|
13
|
-
]).describe("Current status of the Markdownify job"),
|
|
14
|
-
request_id: zod.z.string().describe("The unique identifier of the Markdownify request"),
|
|
15
|
-
website_url: zod.z.string().describe("URL of the website being processed")
|
|
16
|
-
}).describe("Response model for Markdownify status checks.");
|
|
13
|
+
]).describe("Current status of the Markdownify job").nullable(),
|
|
14
|
+
request_id: zod.z.string().describe("The unique identifier of the Markdownify request").nullable(),
|
|
15
|
+
website_url: zod.z.string().describe("URL of the website being processed").nullable()
|
|
16
|
+
}).passthrough().describe("Response model for Markdownify status checks.");
|
|
17
17
|
const scrapegraphAiMarkdownifyStatus = require_action.action("SCRAPEGRAPH_AI_MARKDOWNIFY_STATUS", {
|
|
18
18
|
slug: "scrapegraph_ai-markdownify-status",
|
|
19
19
|
name: "Markdownify Status",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdownify-status.cjs","names":["z","action"],"sources":["../../src/actions/markdownify-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapegraphAiMarkdownifyStatusInput
|
|
1
|
+
{"version":3,"file":"markdownify-status.cjs","names":["z","action"],"sources":["../../src/actions/markdownify-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapegraphAiMarkdownifyStatusInput = z.object({\n request_id: z.string().describe(\"The unique identifier (UUID) of the Markdownify request returned by the SCRAPEGRAPH_AI_MARKDOWNIFY action\"),\n}).describe(\"Request model for checking the status of a Markdownify job.\");\nexport const ScrapegraphAiMarkdownifyStatusOutput = z.object({\n error: z.string().describe(\"Error message if status is 'failed'; null otherwise\").nullable().optional(),\n result: z.string().describe(\"Markdown content if status is 'completed'; null otherwise\").nullable().optional(),\n status: z.enum([\"queued\", \"processing\", \"completed\", \"failed\"]).describe(\"Current status of the Markdownify job\").nullable(),\n request_id: z.string().describe(\"The unique identifier of the Markdownify request\").nullable(),\n website_url: z.string().describe(\"URL of the website being processed\").nullable(),\n}).passthrough().describe(\"Response model for Markdownify status checks.\");\n\nexport const scrapegraphAiMarkdownifyStatus = action(\"SCRAPEGRAPH_AI_MARKDOWNIFY_STATUS\", {\n slug: \"scrapegraph_ai-markdownify-status\",\n name: \"Markdownify Status\",\n description: \"Check the status and retrieve results of a Markdownify webpage-to-Markdown conversion job. Use this action to poll for the status of an async Markdownify request started via SCRAPEGRAPH_AI_MARKDOWNIFY. Note: The ScrapeGraph AI API typically returns completed results synchronously, so this status endpoint is primarily useful for long-running conversions of large or complex webpages.\",\n input: ScrapegraphAiMarkdownifyStatusInput,\n output: ScrapegraphAiMarkdownifyStatusOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO,EAC1D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,EAC7I,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAc;EAAa;CAAQ,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC3H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC7F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAEzE,MAAa,iCAAiCC,eAAAA,OAAO,qCAAqC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/markdownify-status.d.ts
|
|
4
|
-
declare const ScrapegraphAiMarkdownifyStatusInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ScrapegraphAiMarkdownifyStatusInput: z.ZodObject<{
|
|
5
|
+
request_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ScrapegraphAiMarkdownifyStatusOutput: z.ZodObject<{
|
|
8
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
result: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
11
|
+
queued: "queued";
|
|
12
|
+
processing: "processing";
|
|
13
|
+
completed: "completed";
|
|
14
|
+
failed: "failed";
|
|
15
|
+
}>>;
|
|
16
|
+
request_id: z.ZodNullable<z.ZodString>;
|
|
17
|
+
website_url: z.ZodNullable<z.ZodString>;
|
|
18
|
+
}, z.core.$loose>;
|
|
19
|
+
declare const scrapegraphAiMarkdownifyStatus: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
|
+
request_id: string;
|
|
21
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
22
|
//#endregion
|
|
8
23
|
export { scrapegraphAiMarkdownifyStatus };
|
|
9
24
|
//# sourceMappingURL=markdownify-status.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdownify-status.d.cts","names":[],"sources":["../../src/actions/markdownify-status.ts"],"mappings":";;;cAIa,mCAAA,
|
|
1
|
+
{"version":3,"file":"markdownify-status.d.cts","names":[],"sources":["../../src/actions/markdownify-status.ts"],"mappings":";;;cAIa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;cAGnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAQpC,8BAAA,gCAA8B,wBAAA"}
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/markdownify-status.d.ts
|
|
4
|
-
declare const ScrapegraphAiMarkdownifyStatusInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ScrapegraphAiMarkdownifyStatusInput: z.ZodObject<{
|
|
5
|
+
request_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ScrapegraphAiMarkdownifyStatusOutput: z.ZodObject<{
|
|
8
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
result: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
11
|
+
queued: "queued";
|
|
12
|
+
processing: "processing";
|
|
13
|
+
completed: "completed";
|
|
14
|
+
failed: "failed";
|
|
15
|
+
}>>;
|
|
16
|
+
request_id: z.ZodNullable<z.ZodString>;
|
|
17
|
+
website_url: z.ZodNullable<z.ZodString>;
|
|
18
|
+
}, z.core.$loose>;
|
|
19
|
+
declare const scrapegraphAiMarkdownifyStatus: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
|
+
request_id: string;
|
|
21
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
22
|
//#endregion
|
|
8
23
|
export { scrapegraphAiMarkdownifyStatus };
|
|
9
24
|
//# sourceMappingURL=markdownify-status.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdownify-status.d.mts","names":[],"sources":["../../src/actions/markdownify-status.ts"],"mappings":";;;cAIa,mCAAA,
|
|
1
|
+
{"version":3,"file":"markdownify-status.d.mts","names":[],"sources":["../../src/actions/markdownify-status.ts"],"mappings":";;;cAIa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;cAGnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAQpC,8BAAA,gCAA8B,wBAAA"}
|
|
@@ -13,10 +13,10 @@ const scrapegraphAiMarkdownifyStatus = action("SCRAPEGRAPH_AI_MARKDOWNIFY_STATUS
|
|
|
13
13
|
"processing",
|
|
14
14
|
"completed",
|
|
15
15
|
"failed"
|
|
16
|
-
]).describe("Current status of the Markdownify job"),
|
|
17
|
-
request_id: z.string().describe("The unique identifier of the Markdownify request"),
|
|
18
|
-
website_url: z.string().describe("URL of the website being processed")
|
|
19
|
-
}).describe("Response model for Markdownify status checks.")
|
|
16
|
+
]).describe("Current status of the Markdownify job").nullable(),
|
|
17
|
+
request_id: z.string().describe("The unique identifier of the Markdownify request").nullable(),
|
|
18
|
+
website_url: z.string().describe("URL of the website being processed").nullable()
|
|
19
|
+
}).passthrough().describe("Response model for Markdownify status checks.")
|
|
20
20
|
});
|
|
21
21
|
//#endregion
|
|
22
22
|
export { scrapegraphAiMarkdownifyStatus };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdownify-status.mjs","names":[],"sources":["../../src/actions/markdownify-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapegraphAiMarkdownifyStatusInput
|
|
1
|
+
{"version":3,"file":"markdownify-status.mjs","names":[],"sources":["../../src/actions/markdownify-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapegraphAiMarkdownifyStatusInput = z.object({\n request_id: z.string().describe(\"The unique identifier (UUID) of the Markdownify request returned by the SCRAPEGRAPH_AI_MARKDOWNIFY action\"),\n}).describe(\"Request model for checking the status of a Markdownify job.\");\nexport const ScrapegraphAiMarkdownifyStatusOutput = z.object({\n error: z.string().describe(\"Error message if status is 'failed'; null otherwise\").nullable().optional(),\n result: z.string().describe(\"Markdown content if status is 'completed'; null otherwise\").nullable().optional(),\n status: z.enum([\"queued\", \"processing\", \"completed\", \"failed\"]).describe(\"Current status of the Markdownify job\").nullable(),\n request_id: z.string().describe(\"The unique identifier of the Markdownify request\").nullable(),\n website_url: z.string().describe(\"URL of the website being processed\").nullable(),\n}).passthrough().describe(\"Response model for Markdownify status checks.\");\n\nexport const scrapegraphAiMarkdownifyStatus = action(\"SCRAPEGRAPH_AI_MARKDOWNIFY_STATUS\", {\n slug: \"scrapegraph_ai-markdownify-status\",\n name: \"Markdownify Status\",\n description: \"Check the status and retrieve results of a Markdownify webpage-to-Markdown conversion job. Use this action to poll for the status of an async Markdownify request started via SCRAPEGRAPH_AI_MARKDOWNIFY. Note: The ScrapeGraph AI API typically returns completed results synchronously, so this status endpoint is primarily useful for long-running conversions of large or complex webpages.\",\n input: ScrapegraphAiMarkdownifyStatusInput,\n output: ScrapegraphAiMarkdownifyStatusOutput,\n});\n"],"mappings":";;AAeA,MAAa,iCAAiC,OAAO,qCAAqC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfiD,EAAE,OAAO,EAC1D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,EAC7I,CAAC,CAAC,CAAC,SAAS,6DAaH;CACP,QAbkD,EAAE,OAAO;EAC3D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,QAAQ,EAAE,KAAK;GAAC;GAAU;GAAc;GAAa;EAAQ,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC3H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAC7F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAClF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
|
|
@@ -11,18 +11,18 @@ const ScrapegraphAiSaveEndpointInput = zod.z.object({ suggestions: zod.z.array(z
|
|
|
11
11
|
location: zod.z.string().describe("Where the parameter is passed (query, path, body, header)."),
|
|
12
12
|
required: zod.z.boolean().describe("Whether this parameter is mandatory for the endpoint."),
|
|
13
13
|
description: zod.z.string().describe("Detailed description of what this parameter does.")
|
|
14
|
-
}).describe("Schema for defining a parameter in a custom endpoint.")).describe("List of parameters that the endpoint accepts. Use empty list if no parameters."),
|
|
14
|
+
}).passthrough().describe("Schema for defining a parameter in a custom endpoint.")).describe("List of parameters that the endpoint accepts. Use empty list if no parameters."),
|
|
15
15
|
target_url: zod.z.string().describe("The base URL or URL pattern that this endpoint will scrape."),
|
|
16
16
|
description: zod.z.string().describe("Description of what this endpoint does and when to use it."),
|
|
17
17
|
pydantic_schema: zod.z.record(zod.z.string(), zod.z.unknown()).describe("JSON Schema object defining the structure of extracted data. Must include 'type' and 'properties'."),
|
|
18
18
|
extraction_prompt: zod.z.string().describe("Natural language instructions for what data to extract from the target URL."),
|
|
19
19
|
interaction_steps: zod.z.array(zod.z.string()).describe("Optional list of browser interaction steps to perform before extraction (e.g., click buttons, wait for elements).").optional()
|
|
20
|
-
}).describe("Schema for a custom scraping endpoint configuration.")).describe("List of endpoint configurations to save. Each configuration defines a custom scraping endpoint with its parameters and extraction logic.") }).describe("Request schema for saving one or more custom scraping endpoint configurations.");
|
|
20
|
+
}).passthrough().describe("Schema for a custom scraping endpoint configuration.")).describe("List of endpoint configurations to save. Each configuration defines a custom scraping endpoint with its parameters and extraction logic.") }).describe("Request schema for saving one or more custom scraping endpoint configurations.");
|
|
21
21
|
const ScrapegraphAiSaveEndpointOutput = zod.z.object({
|
|
22
22
|
message: zod.z.string().default("Endpoint configurations saved successfully").describe("Confirmation message from the API.").nullable().optional(),
|
|
23
23
|
success: zod.z.boolean().default(true).describe("Whether the endpoint configurations were saved successfully.").nullable().optional(),
|
|
24
|
-
saved_count: zod.z.number().int().describe("Number of endpoint configurations that were saved.")
|
|
25
|
-
}).describe("Response schema after successfully saving endpoint configurations.");
|
|
24
|
+
saved_count: zod.z.number().int().describe("Number of endpoint configurations that were saved.").nullable()
|
|
25
|
+
}).passthrough().describe("Response schema after successfully saving endpoint configurations.");
|
|
26
26
|
const scrapegraphAiSaveEndpoint = require_action.action("SCRAPEGRAPH_AI_SAVE_ENDPOINT", {
|
|
27
27
|
slug: "scrapegraph_ai-save-endpoint",
|
|
28
28
|
name: "Save Endpoint Configuration",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"save-endpoint.cjs","names":["z","action"],"sources":["../../src/actions/save-endpoint.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapegraphAiSaveEndpointInput
|
|
1
|
+
{"version":3,"file":"save-endpoint.cjs","names":["z","action"],"sources":["../../src/actions/save-endpoint.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapegraphAiSaveEndpointInput = z.object({\n suggestions: z.array(z.object({\n method: z.string().default(\"POST\").describe(\"HTTP method for the endpoint (GET, POST, PUT, etc.).\").optional(),\n endpoint: z.string().describe(\"The endpoint path (e.g., /test-endpoint). Must be a valid URL path.\"),\n parameters: z.array(z.object({\n name: z.string().describe(\"Parameter name (alphanumeric, underscores, dots, and hyphens only).\"),\n type: z.string().describe(\"Parameter data type (e.g., string, integer, boolean).\"),\n is_url: z.boolean().default(false).describe(\"Whether this parameter is a URL that should be scraped.\").optional(),\n location: z.string().describe(\"Where the parameter is passed (query, path, body, header).\"),\n required: z.boolean().describe(\"Whether this parameter is mandatory for the endpoint.\"),\n description: z.string().describe(\"Detailed description of what this parameter does.\"),\n}).passthrough().describe(\"Schema for defining a parameter in a custom endpoint.\")).describe(\"List of parameters that the endpoint accepts. Use empty list if no parameters.\"),\n target_url: z.string().describe(\"The base URL or URL pattern that this endpoint will scrape.\"),\n description: z.string().describe(\"Description of what this endpoint does and when to use it.\"),\n pydantic_schema: z.record(z.string(), z.unknown()).describe(\"JSON Schema object defining the structure of extracted data. Must include 'type' and 'properties'.\"),\n extraction_prompt: z.string().describe(\"Natural language instructions for what data to extract from the target URL.\"),\n interaction_steps: z.array(z.string()).describe(\"Optional list of browser interaction steps to perform before extraction (e.g., click buttons, wait for elements).\").optional(),\n}).passthrough().describe(\"Schema for a custom scraping endpoint configuration.\")).describe(\"List of endpoint configurations to save. Each configuration defines a custom scraping endpoint with its parameters and extraction logic.\"),\n}).describe(\"Request schema for saving one or more custom scraping endpoint configurations.\");\nexport const ScrapegraphAiSaveEndpointOutput = z.object({\n message: z.string().default(\"Endpoint configurations saved successfully\").describe(\"Confirmation message from the API.\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Whether the endpoint configurations were saved successfully.\").nullable().optional(),\n saved_count: z.number().int().describe(\"Number of endpoint configurations that were saved.\").nullable(),\n}).passthrough().describe(\"Response schema after successfully saving endpoint configurations.\");\n\nexport const scrapegraphAiSaveEndpoint = action(\"SCRAPEGRAPH_AI_SAVE_ENDPOINT\", {\n slug: \"scrapegraph_ai-save-endpoint\",\n name: \"Save Endpoint Configuration\",\n description: \"Tool to save custom scraping endpoint configurations to ScrapeGraphAI. Use when you need to create reusable scraping endpoints with specific parameters and extraction logic.\",\n input: ScrapegraphAiSaveEndpointInput,\n output: ScrapegraphAiSaveEndpointOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;CAC9B,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SA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