@keystrokehq/redcircle_api 0.1.5 → 0.1.6
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/add-zipcodes.cjs +1 -0
- package/dist/actions/add-zipcodes.cjs.map +1 -1
- package/dist/actions/add-zipcodes.d.cts +3 -19
- package/dist/actions/add-zipcodes.d.cts.map +1 -1
- package/dist/actions/add-zipcodes.d.mts +3 -19
- package/dist/actions/add-zipcodes.d.mts.map +1 -1
- package/dist/actions/add-zipcodes.mjs +1 -0
- package/dist/actions/add-zipcodes.mjs.map +1 -1
- package/dist/actions/clear-collection-requests.cjs +1 -0
- package/dist/actions/clear-collection-requests.cjs.map +1 -1
- package/dist/actions/clear-collection-requests.d.cts +3 -15
- package/dist/actions/clear-collection-requests.d.cts.map +1 -1
- package/dist/actions/clear-collection-requests.d.mts +3 -15
- package/dist/actions/clear-collection-requests.d.mts.map +1 -1
- package/dist/actions/clear-collection-requests.mjs +1 -0
- package/dist/actions/clear-collection-requests.mjs.map +1 -1
- package/dist/actions/create-collection.cjs +1 -0
- package/dist/actions/create-collection.cjs.map +1 -1
- package/dist/actions/create-collection.d.cts +4 -31
- package/dist/actions/create-collection.d.cts.map +1 -1
- package/dist/actions/create-collection.d.mts +4 -31
- package/dist/actions/create-collection.d.mts.map +1 -1
- package/dist/actions/create-collection.mjs +1 -0
- package/dist/actions/create-collection.mjs.map +1 -1
- package/dist/actions/create-destination.cjs +1 -0
- package/dist/actions/create-destination.cjs.map +1 -1
- package/dist/actions/create-destination.d.cts +3 -36
- package/dist/actions/create-destination.d.cts.map +1 -1
- package/dist/actions/create-destination.d.mts +3 -36
- package/dist/actions/create-destination.d.mts.map +1 -1
- package/dist/actions/create-destination.mjs +1 -0
- package/dist/actions/create-destination.mjs.map +1 -1
- package/dist/actions/create-requests.cjs +1 -0
- package/dist/actions/create-requests.cjs.map +1 -1
- package/dist/actions/create-requests.d.cts +3 -21
- package/dist/actions/create-requests.d.cts.map +1 -1
- package/dist/actions/create-requests.d.mts +3 -21
- package/dist/actions/create-requests.d.mts.map +1 -1
- package/dist/actions/create-requests.mjs +1 -0
- package/dist/actions/create-requests.mjs.map +1 -1
- package/dist/actions/delete-collection.cjs +1 -0
- package/dist/actions/delete-collection.cjs.map +1 -1
- package/dist/actions/delete-collection.d.cts +3 -15
- package/dist/actions/delete-collection.d.cts.map +1 -1
- package/dist/actions/delete-collection.d.mts +3 -15
- package/dist/actions/delete-collection.d.mts.map +1 -1
- package/dist/actions/delete-collection.mjs +1 -0
- package/dist/actions/delete-collection.mjs.map +1 -1
- package/dist/actions/delete-destination.cjs +1 -0
- package/dist/actions/delete-destination.cjs.map +1 -1
- package/dist/actions/delete-destination.d.cts +3 -15
- package/dist/actions/delete-destination.d.cts.map +1 -1
- package/dist/actions/delete-destination.d.mts +3 -15
- package/dist/actions/delete-destination.d.mts.map +1 -1
- package/dist/actions/delete-destination.mjs +1 -0
- package/dist/actions/delete-destination.mjs.map +1 -1
- package/dist/actions/delete-request.cjs +1 -0
- package/dist/actions/delete-request.cjs.map +1 -1
- package/dist/actions/delete-request.d.cts +3 -16
- package/dist/actions/delete-request.d.cts.map +1 -1
- package/dist/actions/delete-request.d.mts +3 -16
- package/dist/actions/delete-request.d.mts.map +1 -1
- package/dist/actions/delete-request.mjs +1 -0
- package/dist/actions/delete-request.mjs.map +1 -1
- package/dist/actions/delete-requests-bulk.cjs +1 -0
- package/dist/actions/delete-requests-bulk.cjs.map +1 -1
- package/dist/actions/delete-requests-bulk.d.cts +3 -16
- package/dist/actions/delete-requests-bulk.d.cts.map +1 -1
- package/dist/actions/delete-requests-bulk.d.mts +3 -16
- package/dist/actions/delete-requests-bulk.d.mts.map +1 -1
- package/dist/actions/delete-requests-bulk.mjs +1 -0
- package/dist/actions/delete-requests-bulk.mjs.map +1 -1
- package/dist/actions/delete-zipcodes.cjs +1 -0
- package/dist/actions/delete-zipcodes.cjs.map +1 -1
- package/dist/actions/delete-zipcodes.d.cts +3 -19
- package/dist/actions/delete-zipcodes.d.cts.map +1 -1
- package/dist/actions/delete-zipcodes.d.mts +3 -19
- package/dist/actions/delete-zipcodes.d.mts.map +1 -1
- package/dist/actions/delete-zipcodes.mjs +1 -0
- package/dist/actions/delete-zipcodes.mjs.map +1 -1
- package/dist/actions/get-account.cjs +1 -0
- package/dist/actions/get-account.cjs.map +1 -1
- package/dist/actions/get-account.d.cts +3 -13
- package/dist/actions/get-account.d.cts.map +1 -1
- package/dist/actions/get-account.d.mts +3 -13
- package/dist/actions/get-account.d.mts.map +1 -1
- package/dist/actions/get-account.mjs +1 -0
- package/dist/actions/get-account.mjs.map +1 -1
- package/dist/actions/get-collection.cjs +1 -0
- package/dist/actions/get-collection.cjs.map +1 -1
- package/dist/actions/get-collection.d.cts +3 -15
- package/dist/actions/get-collection.d.cts.map +1 -1
- package/dist/actions/get-collection.d.mts +3 -15
- package/dist/actions/get-collection.d.mts.map +1 -1
- package/dist/actions/get-collection.mjs +1 -0
- package/dist/actions/get-collection.mjs.map +1 -1
- package/dist/actions/get-requests-csv-links.cjs +1 -0
- package/dist/actions/get-requests-csv-links.cjs.map +1 -1
- package/dist/actions/get-requests-csv-links.d.cts +3 -15
- package/dist/actions/get-requests-csv-links.d.cts.map +1 -1
- package/dist/actions/get-requests-csv-links.d.mts +3 -15
- package/dist/actions/get-requests-csv-links.d.mts.map +1 -1
- package/dist/actions/get-requests-csv-links.mjs +1 -0
- package/dist/actions/get-requests-csv-links.mjs.map +1 -1
- package/dist/actions/get-requests-json-links.cjs +1 -0
- package/dist/actions/get-requests-json-links.cjs.map +1 -1
- package/dist/actions/get-requests-json-links.d.cts +3 -15
- package/dist/actions/get-requests-json-links.d.cts.map +1 -1
- package/dist/actions/get-requests-json-links.d.mts +3 -15
- package/dist/actions/get-requests-json-links.d.mts.map +1 -1
- package/dist/actions/get-requests-json-links.mjs +1 -0
- package/dist/actions/get-requests-json-links.mjs.map +1 -1
- package/dist/actions/get-result-set-csv.cjs +1 -0
- package/dist/actions/get-result-set-csv.cjs.map +1 -1
- package/dist/actions/get-result-set-csv.d.cts +3 -17
- package/dist/actions/get-result-set-csv.d.cts.map +1 -1
- package/dist/actions/get-result-set-csv.d.mts +3 -17
- package/dist/actions/get-result-set-csv.d.mts.map +1 -1
- package/dist/actions/get-result-set-csv.mjs +1 -0
- package/dist/actions/get-result-set-csv.mjs.map +1 -1
- package/dist/actions/get-result-set-json.cjs +1 -0
- package/dist/actions/get-result-set-json.cjs.map +1 -1
- package/dist/actions/get-result-set-json.d.cts +3 -16
- package/dist/actions/get-result-set-json.d.cts.map +1 -1
- package/dist/actions/get-result-set-json.d.mts +3 -16
- package/dist/actions/get-result-set-json.d.mts.map +1 -1
- package/dist/actions/get-result-set-json.mjs +1 -0
- package/dist/actions/get-result-set-json.mjs.map +1 -1
- package/dist/actions/get-result-set-jsonlines.cjs +1 -0
- package/dist/actions/get-result-set-jsonlines.cjs.map +1 -1
- package/dist/actions/get-result-set-jsonlines.d.cts +3 -16
- package/dist/actions/get-result-set-jsonlines.d.cts.map +1 -1
- package/dist/actions/get-result-set-jsonlines.d.mts +3 -16
- package/dist/actions/get-result-set-jsonlines.d.mts.map +1 -1
- package/dist/actions/get-result-set-jsonlines.mjs +1 -0
- package/dist/actions/get-result-set-jsonlines.mjs.map +1 -1
- package/dist/actions/get-target-product-data.cjs +1 -0
- package/dist/actions/get-target-product-data.cjs.map +1 -1
- package/dist/actions/get-target-product-data.d.cts +3 -20
- package/dist/actions/get-target-product-data.d.cts.map +1 -1
- package/dist/actions/get-target-product-data.d.mts +3 -20
- package/dist/actions/get-target-product-data.d.mts.map +1 -1
- package/dist/actions/get-target-product-data.mjs +1 -0
- package/dist/actions/get-target-product-data.mjs.map +1 -1
- package/dist/actions/list-categories.cjs +1 -0
- package/dist/actions/list-categories.cjs.map +1 -1
- package/dist/actions/list-categories.d.cts +3 -17
- package/dist/actions/list-categories.d.cts.map +1 -1
- package/dist/actions/list-categories.d.mts +3 -17
- package/dist/actions/list-categories.d.mts.map +1 -1
- package/dist/actions/list-categories.mjs +1 -0
- package/dist/actions/list-categories.mjs.map +1 -1
- package/dist/actions/list-collections.cjs +1 -0
- package/dist/actions/list-collections.cjs.map +1 -1
- package/dist/actions/list-collections.d.cts +4 -29
- package/dist/actions/list-collections.d.cts.map +1 -1
- package/dist/actions/list-collections.d.mts +4 -29
- package/dist/actions/list-collections.d.mts.map +1 -1
- package/dist/actions/list-collections.mjs +1 -0
- package/dist/actions/list-collections.mjs.map +1 -1
- package/dist/actions/list-destinations.cjs +1 -0
- package/dist/actions/list-destinations.cjs.map +1 -1
- package/dist/actions/list-destinations.d.cts +3 -18
- package/dist/actions/list-destinations.d.cts.map +1 -1
- package/dist/actions/list-destinations.d.mts +3 -18
- package/dist/actions/list-destinations.d.mts.map +1 -1
- package/dist/actions/list-destinations.mjs +1 -0
- package/dist/actions/list-destinations.mjs.map +1 -1
- package/dist/actions/list-error-logs.cjs +1 -0
- package/dist/actions/list-error-logs.cjs.map +1 -1
- package/dist/actions/list-error-logs.d.cts +3 -18
- package/dist/actions/list-error-logs.d.cts.map +1 -1
- package/dist/actions/list-error-logs.d.mts +3 -18
- package/dist/actions/list-error-logs.d.mts.map +1 -1
- package/dist/actions/list-error-logs.mjs +1 -0
- package/dist/actions/list-error-logs.mjs.map +1 -1
- package/dist/actions/list-requests-by-page.cjs +1 -0
- package/dist/actions/list-requests-by-page.cjs.map +1 -1
- package/dist/actions/list-requests-by-page.d.cts +3 -16
- package/dist/actions/list-requests-by-page.d.cts.map +1 -1
- package/dist/actions/list-requests-by-page.d.mts +3 -16
- package/dist/actions/list-requests-by-page.d.mts.map +1 -1
- package/dist/actions/list-requests-by-page.mjs +1 -0
- package/dist/actions/list-requests-by-page.mjs.map +1 -1
- package/dist/actions/list-result-sets.cjs +1 -0
- package/dist/actions/list-result-sets.cjs.map +1 -1
- package/dist/actions/list-result-sets.d.cts +3 -15
- package/dist/actions/list-result-sets.d.cts.map +1 -1
- package/dist/actions/list-result-sets.d.mts +3 -15
- package/dist/actions/list-result-sets.d.mts.map +1 -1
- package/dist/actions/list-result-sets.mjs +1 -0
- package/dist/actions/list-result-sets.mjs.map +1 -1
- package/dist/actions/list-zipcodes.cjs +1 -0
- package/dist/actions/list-zipcodes.cjs.map +1 -1
- package/dist/actions/list-zipcodes.d.cts +3 -17
- package/dist/actions/list-zipcodes.d.cts.map +1 -1
- package/dist/actions/list-zipcodes.d.mts +3 -17
- package/dist/actions/list-zipcodes.d.mts.map +1 -1
- package/dist/actions/list-zipcodes.mjs +1 -0
- package/dist/actions/list-zipcodes.mjs.map +1 -1
- package/dist/actions/resend-webhook.cjs +1 -0
- package/dist/actions/resend-webhook.cjs.map +1 -1
- package/dist/actions/resend-webhook.d.cts +3 -16
- package/dist/actions/resend-webhook.d.cts.map +1 -1
- package/dist/actions/resend-webhook.d.mts +3 -16
- package/dist/actions/resend-webhook.d.mts.map +1 -1
- package/dist/actions/resend-webhook.mjs +1 -0
- package/dist/actions/resend-webhook.mjs.map +1 -1
- package/dist/actions/start-collection.cjs +1 -0
- package/dist/actions/start-collection.cjs.map +1 -1
- package/dist/actions/start-collection.d.cts +3 -15
- package/dist/actions/start-collection.d.cts.map +1 -1
- package/dist/actions/start-collection.d.mts +3 -15
- package/dist/actions/start-collection.d.mts.map +1 -1
- package/dist/actions/start-collection.mjs +1 -0
- package/dist/actions/start-collection.mjs.map +1 -1
- package/dist/actions/stop-all-collections.cjs +1 -0
- package/dist/actions/stop-all-collections.cjs.map +1 -1
- package/dist/actions/stop-all-collections.d.cts +3 -13
- package/dist/actions/stop-all-collections.d.cts.map +1 -1
- package/dist/actions/stop-all-collections.d.mts +3 -13
- package/dist/actions/stop-all-collections.d.mts.map +1 -1
- package/dist/actions/stop-all-collections.mjs +1 -0
- package/dist/actions/stop-all-collections.mjs.map +1 -1
- package/dist/actions/stop-collection.cjs +1 -0
- package/dist/actions/stop-collection.cjs.map +1 -1
- package/dist/actions/stop-collection.d.cts +3 -15
- package/dist/actions/stop-collection.d.cts.map +1 -1
- package/dist/actions/stop-collection.d.mts +3 -15
- package/dist/actions/stop-collection.d.mts.map +1 -1
- package/dist/actions/stop-collection.mjs +1 -0
- package/dist/actions/stop-collection.mjs.map +1 -1
- package/dist/actions/update-collection.cjs +1 -0
- package/dist/actions/update-collection.cjs.map +1 -1
- package/dist/actions/update-collection.d.cts +3 -31
- package/dist/actions/update-collection.d.cts.map +1 -1
- package/dist/actions/update-collection.d.mts +3 -31
- package/dist/actions/update-collection.d.mts.map +1 -1
- package/dist/actions/update-collection.mjs +1 -0
- package/dist/actions/update-collection.mjs.map +1 -1
- package/dist/actions/update-destination.cjs +1 -0
- package/dist/actions/update-destination.cjs.map +1 -1
- package/dist/actions/update-destination.d.cts +3 -37
- package/dist/actions/update-destination.d.cts.map +1 -1
- package/dist/actions/update-destination.d.mts +3 -37
- package/dist/actions/update-destination.d.mts.map +1 -1
- package/dist/actions/update-destination.mjs +1 -0
- package/dist/actions/update-destination.mjs.map +1 -1
- package/dist/actions/update-request.cjs +1 -0
- package/dist/actions/update-request.cjs.map +1 -1
- package/dist/actions/update-request.d.cts +3 -19
- package/dist/actions/update-request.d.cts.map +1 -1
- package/dist/actions/update-request.d.mts +3 -19
- package/dist/actions/update-request.d.mts.map +1 -1
- package/dist/actions/update-request.mjs +1 -0
- package/dist/actions/update-request.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { redcircleApi } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-result-set-jsonlines.d.ts
|
|
@@ -53,22 +55,7 @@ declare const RedcircleApiGetResultSetJsonlinesOutput: z.ZodObject<{
|
|
|
53
55
|
}, z.core.$loose>>;
|
|
54
56
|
collection_id: z.ZodNullable<z.ZodString>;
|
|
55
57
|
}, z.core.$loose>;
|
|
56
|
-
declare const redcircleApiGetResultSetJsonlines:
|
|
57
|
-
collection_id: string;
|
|
58
|
-
result_set_id: string;
|
|
59
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"redcircle_api", z.ZodObject<{
|
|
60
|
-
connectionId: z.ZodString;
|
|
61
|
-
entityId: z.ZodString;
|
|
62
|
-
instanceId: z.ZodString;
|
|
63
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
64
|
-
generic_api_key: z.ZodString;
|
|
65
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"redcircle_api", z.ZodObject<{
|
|
66
|
-
connectionId: z.ZodString;
|
|
67
|
-
entityId: z.ZodString;
|
|
68
|
-
instanceId: z.ZodString;
|
|
69
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
70
|
-
generic_api_key: z.ZodString;
|
|
71
|
-
}, z.core.$strip>>]>;
|
|
58
|
+
declare const redcircleApiGetResultSetJsonlines: AppAction<typeof RedcircleApiGetResultSetJsonlinesInput, typeof RedcircleApiGetResultSetJsonlinesOutput, typeof redcircleApi.credential>;
|
|
72
59
|
//#endregion
|
|
73
60
|
export { redcircleApiGetResultSetJsonlines };
|
|
74
61
|
//# sourceMappingURL=get-result-set-jsonlines.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-result-set-jsonlines.d.mts","names":[],"sources":["../../src/actions/get-result-set-jsonlines.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-result-set-jsonlines.d.mts","names":[],"sources":["../../src/actions/get-result-set-jsonlines.ts"],"mappings":";;;;;cAMa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;cAyDtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMvC,iCAAA,EAAmC,SAAA,QACvC,sCAAA,SACA,uCAAA,SACA,YAAA,CAAa,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-result-set-jsonlines.mjs","names":[],"sources":["../../src/actions/get-result-set-jsonlines.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedcircleApiGetResultSetJsonlinesInput = z.object({\n collection_id: z.string().describe(\"The unique identifier of the collection.\"),\n result_set_id: z.string().describe(\"The unique identifier of the result set within the collection.\"),\n}).describe(\"Request model for retrieving a result set in JSON Lines format with download links.\");\nconst RedcircleApiGetResultSetJsonlines_DownloadLinksSchema = z.object({\n pages: z.array(z.string()).describe(\"Array of URLs for individual page files in .jsonl format.\"),\n all_pages: z.string().describe(\"Bulk download link for all pages combined in a compressed archive (.zip) containing jsonlines files.\").nullable(),\n}).passthrough().describe(\"Contains file download URLs for the result set in JSON Lines format.\");\nconst RedcircleApiGetResultSetJsonlines_WebhookLogEntrySchema = z.object({\n text: z.string().describe(\"Log message text.\").nullable().optional(),\n date_time: z.string().describe(\"Timestamp of the log entry.\").nullable().optional(),\n}).passthrough().describe(\"Individual log entry for webhook execution.\");\nconst RedcircleApiGetResultSetJsonlines_WebhookLogCollectionSchema = z.object({\n id: z.string().describe(\"Collection ID.\").nullable().optional(),\n name: z.string().describe(\"Collection name.\").nullable().optional(),\n}).passthrough().describe(\"Collection info embedded in webhook log JSON.\");\nconst RedcircleApiGetResultSetJsonlines_WebhookLogResultSetSchema = z.object({\n id: z.number().int().describe(\"Result set ID.\").nullable().optional(),\n ended_at: z.string().describe(\"End timestamp.\").nullable().optional(),\n started_at: z.string().describe(\"Start timestamp.\").nullable().optional(),\n requests_failed: z.number().int().describe(\"Failed requests count.\").nullable().optional(),\n requests_completed: z.number().int().describe(\"Completed requests count.\").nullable().optional(),\n}).passthrough().describe(\"Result set info embedded in webhook log JSON.\");\nconst RedcircleApiGetResultSetJsonlines_WebhookLogRequestInfoSchema = z.object({\n type: z.string().describe(\"Type of webhook event.\").nullable().optional(),\n success: z.boolean().describe(\"Success status.\").nullable().optional(),\n}).passthrough().describe(\"Request info embedded in webhook log JSON.\");\nconst RedcircleApiGetResultSetJsonlines_WebhookLogJsonSchema = z.object({\n collection: RedcircleApiGetResultSetJsonlines_WebhookLogCollectionSchema.nullable().optional(),\n result_set: RedcircleApiGetResultSetJsonlines_WebhookLogResultSetSchema.nullable().optional(),\n request_info: RedcircleApiGetResultSetJsonlines_WebhookLogRequestInfoSchema.nullable().optional(),\n}).passthrough().describe(\"JSON payload embedded in webhook log entries.\");\nconst RedcircleApiGetResultSetJsonlines_WebhookResendDataSchema = z.object({\n url: z.string().describe(\"Webhook URL.\").nullable().optional(),\n body: RedcircleApiGetResultSetJsonlines_WebhookLogJsonSchema.nullable().optional(),\n}).passthrough().describe(\"Data for resending webhook.\");\nconst RedcircleApiGetResultSetJsonlines_WebhookStatusSchema = z.object({\n log: z.array(RedcircleApiGetResultSetJsonlines_WebhookLogEntrySchema).describe(\"Log entries from webhook execution.\").nullable().optional(),\n status: z.string().describe(\"Current status of webhook execution.\").nullable().optional(),\n resend_data: RedcircleApiGetResultSetJsonlines_WebhookResendDataSchema.nullable().optional(),\n}).passthrough().describe(\"Contains webhook execution details.\");\nconst RedcircleApiGetResultSetJsonlines_ResultSchema = z.object({\n id: z.number().int().describe(\"Result set identifier.\").nullable(),\n ended_at: z.string().describe(\"Timestamp when processing completed (ISO 8601 format).\").nullable().optional(),\n expires_at: z.string().describe(\"Data expiration timestamp (ISO 8601 format).\").nullable(),\n started_at: z.string().describe(\"Timestamp when processing began (ISO 8601 format).\").nullable(),\n download_links: RedcircleApiGetResultSetJsonlines_DownloadLinksSchema.nullable(),\n requests_total: z.number().int().describe(\"Total number of requests processed.\").nullable(),\n webhook_status: RedcircleApiGetResultSetJsonlines_WebhookStatusSchema.nullable().optional(),\n requests_failed: z.number().int().describe(\"Count of failed requests.\").nullable(),\n destination_status: z.record(z.string(), z.unknown()).describe(\"Destination upload results by destination ID.\").nullable().optional(),\n requests_completed: z.number().int().describe(\"Count of successful requests.\").nullable(),\n results_page_count: z.number().int().describe(\"Number of result pages available.\").nullable(),\n}).passthrough().describe(\"Contains detailed result set information.\");\nconst RedcircleApiGetResultSetJsonlines_RequestInfoSchema = z.object({\n success: z.boolean().describe(\"Indicates if the API call was successful.\").nullable(),\n}).passthrough().describe(\"Contains request execution status information.\");\nexport const RedcircleApiGetResultSetJsonlinesOutput = z.object({\n result: RedcircleApiGetResultSetJsonlines_ResultSchema.nullable(),\n request_info: RedcircleApiGetResultSetJsonlines_RequestInfoSchema.nullable(),\n collection_id: z.string().describe(\"The collection identifier that was queried.\").nullable(),\n}).passthrough().describe(\"Response model containing result set data in JSON Lines format with download links.\");\n\nexport const redcircleApiGetResultSetJsonlines = action(\"REDCIRCLE_API_GET_RESULT_SET_JSONLINES\", {\n slug: \"redcircle_api-get-result-set-jsonlines\",\n name: \"Get Result Set JSON Lines\",\n description: \"Tool to retrieve a result set in JSON Lines format with download links. Use when you need to access processed results as newline-delimited JSON files. JSON Lines format provides one valid JSON object per line, ideal for streaming and processing large datasets.\",\n input: RedcircleApiGetResultSetJsonlinesInput,\n output: RedcircleApiGetResultSetJsonlinesOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-result-set-jsonlines.mjs","names":[],"sources":["../../src/actions/get-result-set-jsonlines.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { redcircleApi } from \"../app\";\n\nexport const RedcircleApiGetResultSetJsonlinesInput = z.object({\n collection_id: z.string().describe(\"The unique identifier of the collection.\"),\n result_set_id: z.string().describe(\"The unique identifier of the result set within the collection.\"),\n}).describe(\"Request model for retrieving a result set in JSON Lines format with download links.\");\nconst RedcircleApiGetResultSetJsonlines_DownloadLinksSchema = z.object({\n pages: z.array(z.string()).describe(\"Array of URLs for individual page files in .jsonl format.\"),\n all_pages: z.string().describe(\"Bulk download link for all pages combined in a compressed archive (.zip) containing jsonlines files.\").nullable(),\n}).passthrough().describe(\"Contains file download URLs for the result set in JSON Lines format.\");\nconst RedcircleApiGetResultSetJsonlines_WebhookLogEntrySchema = z.object({\n text: z.string().describe(\"Log message text.\").nullable().optional(),\n date_time: z.string().describe(\"Timestamp of the log entry.\").nullable().optional(),\n}).passthrough().describe(\"Individual log entry for webhook execution.\");\nconst RedcircleApiGetResultSetJsonlines_WebhookLogCollectionSchema = z.object({\n id: z.string().describe(\"Collection ID.\").nullable().optional(),\n name: z.string().describe(\"Collection name.\").nullable().optional(),\n}).passthrough().describe(\"Collection info embedded in webhook log JSON.\");\nconst RedcircleApiGetResultSetJsonlines_WebhookLogResultSetSchema = z.object({\n id: z.number().int().describe(\"Result set ID.\").nullable().optional(),\n ended_at: z.string().describe(\"End timestamp.\").nullable().optional(),\n started_at: z.string().describe(\"Start timestamp.\").nullable().optional(),\n requests_failed: z.number().int().describe(\"Failed requests count.\").nullable().optional(),\n requests_completed: z.number().int().describe(\"Completed requests count.\").nullable().optional(),\n}).passthrough().describe(\"Result set info embedded in webhook log JSON.\");\nconst RedcircleApiGetResultSetJsonlines_WebhookLogRequestInfoSchema = z.object({\n type: z.string().describe(\"Type of webhook event.\").nullable().optional(),\n success: z.boolean().describe(\"Success status.\").nullable().optional(),\n}).passthrough().describe(\"Request info embedded in webhook log JSON.\");\nconst RedcircleApiGetResultSetJsonlines_WebhookLogJsonSchema = z.object({\n collection: RedcircleApiGetResultSetJsonlines_WebhookLogCollectionSchema.nullable().optional(),\n result_set: RedcircleApiGetResultSetJsonlines_WebhookLogResultSetSchema.nullable().optional(),\n request_info: RedcircleApiGetResultSetJsonlines_WebhookLogRequestInfoSchema.nullable().optional(),\n}).passthrough().describe(\"JSON payload embedded in webhook log entries.\");\nconst RedcircleApiGetResultSetJsonlines_WebhookResendDataSchema = z.object({\n url: z.string().describe(\"Webhook URL.\").nullable().optional(),\n body: RedcircleApiGetResultSetJsonlines_WebhookLogJsonSchema.nullable().optional(),\n}).passthrough().describe(\"Data for resending webhook.\");\nconst RedcircleApiGetResultSetJsonlines_WebhookStatusSchema = z.object({\n log: z.array(RedcircleApiGetResultSetJsonlines_WebhookLogEntrySchema).describe(\"Log entries from webhook execution.\").nullable().optional(),\n status: z.string().describe(\"Current status of webhook execution.\").nullable().optional(),\n resend_data: RedcircleApiGetResultSetJsonlines_WebhookResendDataSchema.nullable().optional(),\n}).passthrough().describe(\"Contains webhook execution details.\");\nconst RedcircleApiGetResultSetJsonlines_ResultSchema = z.object({\n id: z.number().int().describe(\"Result set identifier.\").nullable(),\n ended_at: z.string().describe(\"Timestamp when processing completed (ISO 8601 format).\").nullable().optional(),\n expires_at: z.string().describe(\"Data expiration timestamp (ISO 8601 format).\").nullable(),\n started_at: z.string().describe(\"Timestamp when processing began (ISO 8601 format).\").nullable(),\n download_links: RedcircleApiGetResultSetJsonlines_DownloadLinksSchema.nullable(),\n requests_total: z.number().int().describe(\"Total number of requests processed.\").nullable(),\n webhook_status: RedcircleApiGetResultSetJsonlines_WebhookStatusSchema.nullable().optional(),\n requests_failed: z.number().int().describe(\"Count of failed requests.\").nullable(),\n destination_status: z.record(z.string(), z.unknown()).describe(\"Destination upload results by destination ID.\").nullable().optional(),\n requests_completed: z.number().int().describe(\"Count of successful requests.\").nullable(),\n results_page_count: z.number().int().describe(\"Number of result pages available.\").nullable(),\n}).passthrough().describe(\"Contains detailed result set information.\");\nconst RedcircleApiGetResultSetJsonlines_RequestInfoSchema = z.object({\n success: z.boolean().describe(\"Indicates if the API call was successful.\").nullable(),\n}).passthrough().describe(\"Contains request execution status information.\");\nexport const RedcircleApiGetResultSetJsonlinesOutput = z.object({\n result: RedcircleApiGetResultSetJsonlines_ResultSchema.nullable(),\n request_info: RedcircleApiGetResultSetJsonlines_RequestInfoSchema.nullable(),\n collection_id: z.string().describe(\"The collection identifier that was queried.\").nullable(),\n}).passthrough().describe(\"Response model containing result set data in JSON Lines format with download links.\");\n\nexport const redcircleApiGetResultSetJsonlines: AppAction<\n typeof RedcircleApiGetResultSetJsonlinesInput,\n typeof RedcircleApiGetResultSetJsonlinesOutput,\n typeof redcircleApi.credential\n> = action(\"REDCIRCLE_API_GET_RESULT_SET_JSONLINES\", {\n slug: \"redcircle_api-get-result-set-jsonlines\",\n name: \"Get Result Set JSON Lines\",\n description: \"Tool to retrieve a result set in JSON Lines format with download links. Use when you need to access processed results as newline-delimited JSON files. JSON Lines format provides one valid JSON object per line, ideal for streaming and processing large datasets.\",\n input: RedcircleApiGetResultSetJsonlinesInput,\n output: RedcircleApiGetResultSetJsonlinesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yCAAyC,EAAE,OAAO;CAC7D,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAC7E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;AACrG,CAAC,CAAC,CAAC,SAAS,qFAAqF;AACjG,MAAM,wDAAwD,EAAE,OAAO;CACrE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2DAA2D;CAC/F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;AAClJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sEAAsE;AAChG,MAAM,0DAA0D,EAAE,OAAO;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY,C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C,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjF,oBAAoB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpI,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxF,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAM,sDAAsD,EAAE,OAAO,EACnE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,EACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAO1E,MAAa,oCAIT,OAAO,0CAA0C;CACnD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAfqD,EAAE,OAAO;EAC9D,QAAQ,+CAA+C,SAAS;EAChE,cAAc,oDAAoD,SAAS;EAC3E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qFAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-target-product-data.cjs","names":["z","action"],"sources":["../../src/actions/get-target-product-data.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedcircleApiGetTargetProductDataInput = z.object({\n page: z.number().int().describe(\"Page number for pagination control of result sets.\").optional(),\n tcin: z.string().describe(\"Target's unique product identifier (Target.com Item Number) for specific product lookup. Required when type='product'.\").optional(),\n type: z.enum([\"search\", \"product\", \"reviews\", \"category\"]).describe(\"Specifies the data type to retrieve. Valid values: 'search' for product search results, 'product' for specific product details, 'reviews' for product reviews, 'category' for category listings.\"),\n sort_by: z.string().describe(\"Ordering method for search results (e.g., 'best_seller').\").optional(),\n category_id: z.string().describe(\"Target category identifier for category listings. Required when type='category' and 'url' is not specified.\").optional(),\n search_term: z.string().describe(\"Search query for product discovery (e.g., 'highlighter pens', 'laptop'). Required when type='search'.\").optional(),\n}).describe(\"Request model for retrieving Target product data.\");\nconst RedcircleApiGetTargetProductData_FacetValueSchema = z.object({\n id: z.string().describe(\"Unique identifier for the facet value.\").nullable().optional(),\n value: z.string().describe(\"Value identifier.\").nullable().optional(),\n display_name: z.string().describe(\"Display name of the facet value.\").nullable().optional(),\n}).passthrough().describe(\"Facet value information.\");\nconst RedcircleApiGetTargetProductData_FacetSchema = z.object({\n name: z.string().describe(\"Facet name (e.g., 'Price', 'Brand', 'Color').\").nullable().optional(),\n values: z.array(RedcircleApiGetTargetProductData_FacetValueSchema).describe(\"Available facet values.\").nullable().optional(),\n}).passthrough().describe(\"Filterable attribute information.\");\nconst RedcircleApiGetTargetProductData_ImageInfoSchema = z.object({\n link: z.string().describe(\"Image URL.\").nullable().optional(),\n}).passthrough().describe(\"Image information.\");\nconst RedcircleApiGetTargetProductData_VideoInfoSchema = z.object({\n link: z.string().describe(\"Video URL.\").nullable().optional(),\n type: z.string().describe(\"Video type (e.g., 'video/mp4').\").nullable().optional(),\n}).passthrough().describe(\"Video information.\");\nconst RedcircleApiGetTargetProductData_ProductDetailsSchema = z.object({\n dpci: z.string().describe(\"Department-Class-Item number.\").nullable().optional(),\n link: z.string().describe(\"Product URL.\").nullable().optional(),\n tcin: z.string().describe(\"Target.com Item Number.\").nullable().optional(),\n brand: z.string().describe(\"Product brand.\").nullable().optional(),\n title: z.string().describe(\"Product title.\").nullable().optional(),\n images: z.array(z.union([z.string(), RedcircleApiGetTargetProductData_ImageInfoSchema])).describe(\"Product image URLs (can be strings or image info objects).\").nullable().optional(),\n rating: z.number().describe(\"Product rating.\").nullable().optional(),\n videos: z.array(RedcircleApiGetTargetProductData_VideoInfoSchema).describe(\"Product video information.\").nullable().optional(),\n feature_bullets: z.array(z.string()).describe(\"Product feature bullet points.\").nullable().optional(),\n}).passthrough().describe(\"Product details information.\");\nconst RedcircleApiGetTargetProductData_CategorySchema = z.object({\n id: z.string().describe(\"Category identifier.\").nullable().optional(),\n url: z.string().describe(\"Category URL.\").nullable().optional(),\n name: z.string().describe(\"Category name.\").nullable().optional(),\n}).passthrough().describe(\"Category information.\");\nconst RedcircleApiGetTargetProductData_PageInfoSchema = z.object({\n link: z.string().describe(\"Page URL.\").nullable().optional(),\n page: z.number().int().describe(\"Page number.\").nullable().optional(),\n}).passthrough().describe(\"Page navigation information.\");\nconst RedcircleApiGetTargetProductData_PaginationSchema = z.object({\n next: RedcircleApiGetTargetProductData_PageInfoSchema.nullable().optional(),\n current: RedcircleApiGetTargetProductData_PageInfoSchema.nullable().optional(),\n total_pages: z.number().int().describe(\"Total number of pages.\").nullable().optional(),\n total_results: z.number().int().describe(\"Total number of results.\").nullable().optional(),\n}).passthrough().describe(\"Page navigation details.\");\nconst RedcircleApiGetTargetProductData_RequestInfoResponseSchema = z.object({\n success: z.boolean().describe(\"Indicates if the request was successful.\").nullable(),\n credits_used: z.number().int().describe(\"Number of API credits consumed.\").nullable().optional(),\n credits_remaining: z.number().int().describe(\"Remaining available credits.\").nullable().optional(),\n}).passthrough().describe(\"Contains operation status and credit usage information.\");\nconst RedcircleApiGetTargetProductData_PrimaryOfferSchema = z.object({\n price: z.number().describe(\"Product price.\").nullable().optional(),\n currency: z.string().describe(\"Currency code for the price.\").nullable().optional(),\n}).passthrough().describe(\"Primary pricing offer information.\");\nconst RedcircleApiGetTargetProductData_OffersSchema = z.object({\n primary: RedcircleApiGetTargetProductData_PrimaryOfferSchema.nullable().optional(),\n all_offers: z.array(RedcircleApiGetTargetProductData_PrimaryOfferSchema).describe(\"All available offers.\").nullable().optional(),\n}).passthrough().describe(\"Pricing information for products.\");\nconst RedcircleApiGetTargetProductData_FulfillmentSchema = z.object({\n type: z.string().describe(\"Fulfillment type.\").nullable().optional(),\n}).passthrough().describe(\"Fulfillment type information.\");\nconst RedcircleApiGetTargetProductData_SearchResultSchema = z.object({\n offers: RedcircleApiGetTargetProductData_OffersSchema.nullable().optional(),\n product: RedcircleApiGetTargetProductData_ProductDetailsSchema.nullable().optional(),\n position: z.number().int().describe(\"Result position in list.\").nullable().optional(),\n fulfillment: RedcircleApiGetTargetProductData_FulfillmentSchema.nullable().optional(),\n}).passthrough().describe(\"Individual search result item.\");\nconst RedcircleApiGetTargetProductData_RelatedQuerySchema = z.object({\n link: z.string().describe(\"URL for the related query.\").nullable().optional(),\n query: z.string().describe(\"The related search query.\").nullable().optional(),\n}).passthrough().describe(\"Related query information.\");\nconst RedcircleApiGetTargetProductData_RequestMetadataSchema = z.object({\n created_at: z.string().describe(\"Request creation timestamp (ISO 8601 format).\").nullable().optional(),\n target_url: z.string().describe(\"Actual Target.com URL queried.\").nullable().optional(),\n processed_at: z.string().describe(\"Request completion timestamp (ISO 8601 format).\").nullable().optional(),\n total_time_taken: z.number().describe(\"Response latency in seconds.\").nullable().optional(),\n}).passthrough().describe(\"Processing information for the request.\");\nexport const RedcircleApiGetTargetProductDataOutput = z.object({\n facets: z.array(RedcircleApiGetTargetProductData_FacetSchema).describe(\"Filterable attributes (price ranges, brands, colors, item types).\").nullable().optional(),\n product: RedcircleApiGetTargetProductData_ProductDetailsSchema.nullable().optional(),\n categories: z.array(RedcircleApiGetTargetProductData_CategorySchema).describe(\"Available product categories.\").nullable().optional(),\n pagination: RedcircleApiGetTargetProductData_PaginationSchema.nullable().optional(),\n request_info: RedcircleApiGetTargetProductData_RequestInfoResponseSchema.nullable(),\n search_results: z.array(RedcircleApiGetTargetProductData_SearchResultSchema).describe(\"Product listings (returned for type='search').\").nullable().optional(),\n related_queries: z.array(z.union([z.string(), RedcircleApiGetTargetProductData_RelatedQuerySchema])).describe(\"Suggested search refinements.\").nullable().optional(),\n request_metadata: RedcircleApiGetTargetProductData_RequestMetadataSchema.nullable().optional(),\n request_parameters: z.record(z.string(), z.unknown()).describe(\"Echo of submitted parameters.\").nullable().optional(),\n}).passthrough().describe(\"Response model containing Target product data.\");\n\nexport const redcircleApiGetTargetProductData = action(\"REDCIRCLE_API_GET_TARGET_PRODUCT_DATA\", {\n slug: \"redcircle_api-get-target-product-data\",\n name: \"Get Target Product Data\",\n description: \"Tool to retrieve Target data in real-time including search results, product information, reviews, or category listings. Use when you need to access Target.com product data such as searching for products, getting specific product details, retrieving reviews, or listing categories.\",\n input: RedcircleApiGetTargetProductDataInput,\n output: RedcircleApiGetTargetProductDataOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;CAC7J,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAW;EAAW;CAAU,CAAC,CAAC,CAAC,SAAS,kMAAkM;CACtQ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CACzJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;AACrJ,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,oDAAoDA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,cA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,SAAS,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,mCAAmCC,eAAAA,OAAO,yCAAyC;CAC9F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"get-target-product-data.cjs","names":["z","action"],"sources":["../../src/actions/get-target-product-data.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { redcircleApi } from \"../app\";\n\nexport const RedcircleApiGetTargetProductDataInput = z.object({\n page: z.number().int().describe(\"Page number for pagination control of result sets.\").optional(),\n tcin: z.string().describe(\"Target's unique product identifier (Target.com Item Number) for specific product lookup. Required when type='product'.\").optional(),\n type: z.enum([\"search\", \"product\", \"reviews\", \"category\"]).describe(\"Specifies the data type to retrieve. Valid values: 'search' for product search results, 'product' for specific product details, 'reviews' for product reviews, 'category' for category listings.\"),\n sort_by: z.string().describe(\"Ordering method for search results (e.g., 'best_seller').\").optional(),\n category_id: z.string().describe(\"Target category identifier for category listings. Required when type='category' and 'url' is not specified.\").optional(),\n search_term: z.string().describe(\"Search query for product discovery (e.g., 'highlighter pens', 'laptop'). Required when type='search'.\").optional(),\n}).describe(\"Request model for retrieving Target product data.\");\nconst RedcircleApiGetTargetProductData_FacetValueSchema = z.object({\n id: z.string().describe(\"Unique identifier for the facet value.\").nullable().optional(),\n value: z.string().describe(\"Value identifier.\").nullable().optional(),\n display_name: z.string().describe(\"Display name of the facet value.\").nullable().optional(),\n}).passthrough().describe(\"Facet value information.\");\nconst RedcircleApiGetTargetProductData_FacetSchema = z.object({\n name: z.string().describe(\"Facet name (e.g., 'Price', 'Brand', 'Color').\").nullable().optional(),\n values: z.array(RedcircleApiGetTargetProductData_FacetValueSchema).describe(\"Available facet values.\").nullable().optional(),\n}).passthrough().describe(\"Filterable attribute information.\");\nconst RedcircleApiGetTargetProductData_ImageInfoSchema = z.object({\n link: z.string().describe(\"Image URL.\").nullable().optional(),\n}).passthrough().describe(\"Image information.\");\nconst RedcircleApiGetTargetProductData_VideoInfoSchema = z.object({\n link: z.string().describe(\"Video URL.\").nullable().optional(),\n type: z.string().describe(\"Video type (e.g., 'video/mp4').\").nullable().optional(),\n}).passthrough().describe(\"Video information.\");\nconst RedcircleApiGetTargetProductData_ProductDetailsSchema = z.object({\n dpci: z.string().describe(\"Department-Class-Item number.\").nullable().optional(),\n link: z.string().describe(\"Product URL.\").nullable().optional(),\n tcin: z.string().describe(\"Target.com Item Number.\").nullable().optional(),\n brand: z.string().describe(\"Product brand.\").nullable().optional(),\n title: z.string().describe(\"Product title.\").nullable().optional(),\n images: z.array(z.union([z.string(), RedcircleApiGetTargetProductData_ImageInfoSchema])).describe(\"Product image URLs (can be strings or image info objects).\").nullable().optional(),\n rating: z.number().describe(\"Product rating.\").nullable().optional(),\n videos: z.array(RedcircleApiGetTargetProductData_VideoInfoSchema).describe(\"Product video information.\").nullable().optional(),\n feature_bullets: z.array(z.string()).describe(\"Product feature bullet points.\").nullable().optional(),\n}).passthrough().describe(\"Product details information.\");\nconst RedcircleApiGetTargetProductData_CategorySchema = z.object({\n id: z.string().describe(\"Category identifier.\").nullable().optional(),\n url: z.string().describe(\"Category URL.\").nullable().optional(),\n name: z.string().describe(\"Category name.\").nullable().optional(),\n}).passthrough().describe(\"Category information.\");\nconst RedcircleApiGetTargetProductData_PageInfoSchema = z.object({\n link: z.string().describe(\"Page URL.\").nullable().optional(),\n page: z.number().int().describe(\"Page number.\").nullable().optional(),\n}).passthrough().describe(\"Page navigation information.\");\nconst RedcircleApiGetTargetProductData_PaginationSchema = z.object({\n next: RedcircleApiGetTargetProductData_PageInfoSchema.nullable().optional(),\n current: RedcircleApiGetTargetProductData_PageInfoSchema.nullable().optional(),\n total_pages: z.number().int().describe(\"Total number of pages.\").nullable().optional(),\n total_results: z.number().int().describe(\"Total number of results.\").nullable().optional(),\n}).passthrough().describe(\"Page navigation details.\");\nconst RedcircleApiGetTargetProductData_RequestInfoResponseSchema = z.object({\n success: z.boolean().describe(\"Indicates if the request was successful.\").nullable(),\n credits_used: z.number().int().describe(\"Number of API credits consumed.\").nullable().optional(),\n credits_remaining: z.number().int().describe(\"Remaining available credits.\").nullable().optional(),\n}).passthrough().describe(\"Contains operation status and credit usage information.\");\nconst RedcircleApiGetTargetProductData_PrimaryOfferSchema = z.object({\n price: z.number().describe(\"Product price.\").nullable().optional(),\n currency: z.string().describe(\"Currency code for the price.\").nullable().optional(),\n}).passthrough().describe(\"Primary pricing offer information.\");\nconst RedcircleApiGetTargetProductData_OffersSchema = z.object({\n primary: RedcircleApiGetTargetProductData_PrimaryOfferSchema.nullable().optional(),\n all_offers: z.array(RedcircleApiGetTargetProductData_PrimaryOfferSchema).describe(\"All available offers.\").nullable().optional(),\n}).passthrough().describe(\"Pricing information for products.\");\nconst RedcircleApiGetTargetProductData_FulfillmentSchema = z.object({\n type: z.string().describe(\"Fulfillment type.\").nullable().optional(),\n}).passthrough().describe(\"Fulfillment type information.\");\nconst RedcircleApiGetTargetProductData_SearchResultSchema = z.object({\n offers: RedcircleApiGetTargetProductData_OffersSchema.nullable().optional(),\n product: RedcircleApiGetTargetProductData_ProductDetailsSchema.nullable().optional(),\n position: z.number().int().describe(\"Result position in list.\").nullable().optional(),\n fulfillment: RedcircleApiGetTargetProductData_FulfillmentSchema.nullable().optional(),\n}).passthrough().describe(\"Individual search result item.\");\nconst RedcircleApiGetTargetProductData_RelatedQuerySchema = z.object({\n link: z.string().describe(\"URL for the related query.\").nullable().optional(),\n query: z.string().describe(\"The related search query.\").nullable().optional(),\n}).passthrough().describe(\"Related query information.\");\nconst RedcircleApiGetTargetProductData_RequestMetadataSchema = z.object({\n created_at: z.string().describe(\"Request creation timestamp (ISO 8601 format).\").nullable().optional(),\n target_url: z.string().describe(\"Actual Target.com URL queried.\").nullable().optional(),\n processed_at: z.string().describe(\"Request completion timestamp (ISO 8601 format).\").nullable().optional(),\n total_time_taken: z.number().describe(\"Response latency in seconds.\").nullable().optional(),\n}).passthrough().describe(\"Processing information for the request.\");\nexport const RedcircleApiGetTargetProductDataOutput = z.object({\n facets: z.array(RedcircleApiGetTargetProductData_FacetSchema).describe(\"Filterable attributes (price ranges, brands, colors, item types).\").nullable().optional(),\n product: RedcircleApiGetTargetProductData_ProductDetailsSchema.nullable().optional(),\n categories: z.array(RedcircleApiGetTargetProductData_CategorySchema).describe(\"Available product categories.\").nullable().optional(),\n pagination: RedcircleApiGetTargetProductData_PaginationSchema.nullable().optional(),\n request_info: RedcircleApiGetTargetProductData_RequestInfoResponseSchema.nullable(),\n search_results: z.array(RedcircleApiGetTargetProductData_SearchResultSchema).describe(\"Product listings (returned for type='search').\").nullable().optional(),\n related_queries: z.array(z.union([z.string(), RedcircleApiGetTargetProductData_RelatedQuerySchema])).describe(\"Suggested search refinements.\").nullable().optional(),\n request_metadata: RedcircleApiGetTargetProductData_RequestMetadataSchema.nullable().optional(),\n request_parameters: z.record(z.string(), z.unknown()).describe(\"Echo of submitted parameters.\").nullable().optional(),\n}).passthrough().describe(\"Response model containing Target product data.\");\n\nexport const redcircleApiGetTargetProductData: AppAction<\n typeof RedcircleApiGetTargetProductDataInput,\n typeof RedcircleApiGetTargetProductDataOutput,\n typeof redcircleApi.credential\n> = action(\"REDCIRCLE_API_GET_TARGET_PRODUCT_DATA\", {\n slug: \"redcircle_api-get-target-product-data\",\n name: \"Get Target Product Data\",\n description: \"Tool to retrieve Target data in real-time including search results, product information, reviews, or category listings. Use when you need to access Target.com product data such as searching for products, getting specific product details, retrieving reviews, or listing categories.\",\n input: RedcircleApiGetTargetProductDataInput,\n output: RedcircleApiGetTargetProductDataOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,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AAS,CAAC,CAAC,SAAS;CAChK,SAAS,sDAAsD,SAAS,CAAC,CAAC,SAAS;CACnF,YAAYA,IAAAA,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,YAAY,kDAAkD,SAAS,CAAC,CAAC,SAAS;CAClF,cAAc,2DAA2D,SAAS;CAClF,gBAAgBA,IAAAA,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5J,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAG,mDAAmD,CAAC,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnK,kBAAkB,uDAAuD,SAAS,CAAC,CAAC,SAAS;CAC7F,oBAAoBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,mCAITC,eAAAA,OAAO,yCAAyC;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { redcircleApi } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-target-product-data.d.ts
|
|
@@ -105,26 +107,7 @@ declare const RedcircleApiGetTargetProductDataOutput: z.ZodObject<{
|
|
|
105
107
|
}, z.core.$loose>>>;
|
|
106
108
|
request_parameters: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
107
109
|
}, z.core.$loose>;
|
|
108
|
-
declare const redcircleApiGetTargetProductData:
|
|
109
|
-
type: "search" | "product" | "reviews" | "category";
|
|
110
|
-
page?: number | undefined;
|
|
111
|
-
tcin?: string | undefined;
|
|
112
|
-
sort_by?: string | undefined;
|
|
113
|
-
category_id?: string | undefined;
|
|
114
|
-
search_term?: string | undefined;
|
|
115
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"redcircle_api", z.ZodObject<{
|
|
116
|
-
connectionId: z.ZodString;
|
|
117
|
-
entityId: z.ZodString;
|
|
118
|
-
instanceId: z.ZodString;
|
|
119
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
120
|
-
generic_api_key: z.ZodString;
|
|
121
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"redcircle_api", z.ZodObject<{
|
|
122
|
-
connectionId: z.ZodString;
|
|
123
|
-
entityId: z.ZodString;
|
|
124
|
-
instanceId: z.ZodString;
|
|
125
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
126
|
-
generic_api_key: z.ZodString;
|
|
127
|
-
}, z.core.$strip>>]>;
|
|
110
|
+
declare const redcircleApiGetTargetProductData: AppAction<typeof RedcircleApiGetTargetProductDataInput, typeof RedcircleApiGetTargetProductDataOutput, typeof redcircleApi.credential>;
|
|
128
111
|
//#endregion
|
|
129
112
|
export { redcircleApiGetTargetProductData };
|
|
130
113
|
//# sourceMappingURL=get-target-product-data.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-target-product-data.d.cts","names":[],"sources":["../../src/actions/get-target-product-data.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-target-product-data.d.cts","names":[],"sources":["../../src/actions/get-target-product-data.ts"],"mappings":";;;;;cAMa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAkFrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAYtC,gCAAA,EAAkC,SAAA,QACtC,qCAAA,SACA,sCAAA,SACA,YAAA,CAAa,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { redcircleApi } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-target-product-data.d.ts
|
|
@@ -105,26 +107,7 @@ declare const RedcircleApiGetTargetProductDataOutput: z.ZodObject<{
|
|
|
105
107
|
}, z.core.$loose>>>;
|
|
106
108
|
request_parameters: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
107
109
|
}, z.core.$loose>;
|
|
108
|
-
declare const redcircleApiGetTargetProductData:
|
|
109
|
-
type: "search" | "product" | "reviews" | "category";
|
|
110
|
-
page?: number | undefined;
|
|
111
|
-
tcin?: string | undefined;
|
|
112
|
-
sort_by?: string | undefined;
|
|
113
|
-
category_id?: string | undefined;
|
|
114
|
-
search_term?: string | undefined;
|
|
115
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"redcircle_api", z.ZodObject<{
|
|
116
|
-
connectionId: z.ZodString;
|
|
117
|
-
entityId: z.ZodString;
|
|
118
|
-
instanceId: z.ZodString;
|
|
119
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
120
|
-
generic_api_key: z.ZodString;
|
|
121
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"redcircle_api", z.ZodObject<{
|
|
122
|
-
connectionId: z.ZodString;
|
|
123
|
-
entityId: z.ZodString;
|
|
124
|
-
instanceId: z.ZodString;
|
|
125
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
126
|
-
generic_api_key: z.ZodString;
|
|
127
|
-
}, z.core.$strip>>]>;
|
|
110
|
+
declare const redcircleApiGetTargetProductData: AppAction<typeof RedcircleApiGetTargetProductDataInput, typeof RedcircleApiGetTargetProductDataOutput, typeof redcircleApi.credential>;
|
|
128
111
|
//#endregion
|
|
129
112
|
export { redcircleApiGetTargetProductData };
|
|
130
113
|
//# sourceMappingURL=get-target-product-data.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-target-product-data.d.mts","names":[],"sources":["../../src/actions/get-target-product-data.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-target-product-data.d.mts","names":[],"sources":["../../src/actions/get-target-product-data.ts"],"mappings":";;;;;cAMa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAkFrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAYtC,gCAAA,EAAkC,SAAA,QACtC,qCAAA,SACA,sCAAA,SACA,YAAA,CAAa,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-target-product-data.mjs","names":[],"sources":["../../src/actions/get-target-product-data.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedcircleApiGetTargetProductDataInput = z.object({\n page: z.number().int().describe(\"Page number for pagination control of result sets.\").optional(),\n tcin: z.string().describe(\"Target's unique product identifier (Target.com Item Number) for specific product lookup. Required when type='product'.\").optional(),\n type: z.enum([\"search\", \"product\", \"reviews\", \"category\"]).describe(\"Specifies the data type to retrieve. Valid values: 'search' for product search results, 'product' for specific product details, 'reviews' for product reviews, 'category' for category listings.\"),\n sort_by: z.string().describe(\"Ordering method for search results (e.g., 'best_seller').\").optional(),\n category_id: z.string().describe(\"Target category identifier for category listings. Required when type='category' and 'url' is not specified.\").optional(),\n search_term: z.string().describe(\"Search query for product discovery (e.g., 'highlighter pens', 'laptop'). Required when type='search'.\").optional(),\n}).describe(\"Request model for retrieving Target product data.\");\nconst RedcircleApiGetTargetProductData_FacetValueSchema = z.object({\n id: z.string().describe(\"Unique identifier for the facet value.\").nullable().optional(),\n value: z.string().describe(\"Value identifier.\").nullable().optional(),\n display_name: z.string().describe(\"Display name of the facet value.\").nullable().optional(),\n}).passthrough().describe(\"Facet value information.\");\nconst RedcircleApiGetTargetProductData_FacetSchema = z.object({\n name: z.string().describe(\"Facet name (e.g., 'Price', 'Brand', 'Color').\").nullable().optional(),\n values: z.array(RedcircleApiGetTargetProductData_FacetValueSchema).describe(\"Available facet values.\").nullable().optional(),\n}).passthrough().describe(\"Filterable attribute information.\");\nconst RedcircleApiGetTargetProductData_ImageInfoSchema = z.object({\n link: z.string().describe(\"Image URL.\").nullable().optional(),\n}).passthrough().describe(\"Image information.\");\nconst RedcircleApiGetTargetProductData_VideoInfoSchema = z.object({\n link: z.string().describe(\"Video URL.\").nullable().optional(),\n type: z.string().describe(\"Video type (e.g., 'video/mp4').\").nullable().optional(),\n}).passthrough().describe(\"Video information.\");\nconst RedcircleApiGetTargetProductData_ProductDetailsSchema = z.object({\n dpci: z.string().describe(\"Department-Class-Item number.\").nullable().optional(),\n link: z.string().describe(\"Product URL.\").nullable().optional(),\n tcin: z.string().describe(\"Target.com Item Number.\").nullable().optional(),\n brand: z.string().describe(\"Product brand.\").nullable().optional(),\n title: z.string().describe(\"Product title.\").nullable().optional(),\n images: z.array(z.union([z.string(), RedcircleApiGetTargetProductData_ImageInfoSchema])).describe(\"Product image URLs (can be strings or image info objects).\").nullable().optional(),\n rating: z.number().describe(\"Product rating.\").nullable().optional(),\n videos: z.array(RedcircleApiGetTargetProductData_VideoInfoSchema).describe(\"Product video information.\").nullable().optional(),\n feature_bullets: z.array(z.string()).describe(\"Product feature bullet points.\").nullable().optional(),\n}).passthrough().describe(\"Product details information.\");\nconst RedcircleApiGetTargetProductData_CategorySchema = z.object({\n id: z.string().describe(\"Category identifier.\").nullable().optional(),\n url: z.string().describe(\"Category URL.\").nullable().optional(),\n name: z.string().describe(\"Category name.\").nullable().optional(),\n}).passthrough().describe(\"Category information.\");\nconst RedcircleApiGetTargetProductData_PageInfoSchema = z.object({\n link: z.string().describe(\"Page URL.\").nullable().optional(),\n page: z.number().int().describe(\"Page number.\").nullable().optional(),\n}).passthrough().describe(\"Page navigation information.\");\nconst RedcircleApiGetTargetProductData_PaginationSchema = z.object({\n next: RedcircleApiGetTargetProductData_PageInfoSchema.nullable().optional(),\n current: RedcircleApiGetTargetProductData_PageInfoSchema.nullable().optional(),\n total_pages: z.number().int().describe(\"Total number of pages.\").nullable().optional(),\n total_results: z.number().int().describe(\"Total number of results.\").nullable().optional(),\n}).passthrough().describe(\"Page navigation details.\");\nconst RedcircleApiGetTargetProductData_RequestInfoResponseSchema = z.object({\n success: z.boolean().describe(\"Indicates if the request was successful.\").nullable(),\n credits_used: z.number().int().describe(\"Number of API credits consumed.\").nullable().optional(),\n credits_remaining: z.number().int().describe(\"Remaining available credits.\").nullable().optional(),\n}).passthrough().describe(\"Contains operation status and credit usage information.\");\nconst RedcircleApiGetTargetProductData_PrimaryOfferSchema = z.object({\n price: z.number().describe(\"Product price.\").nullable().optional(),\n currency: z.string().describe(\"Currency code for the price.\").nullable().optional(),\n}).passthrough().describe(\"Primary pricing offer information.\");\nconst RedcircleApiGetTargetProductData_OffersSchema = z.object({\n primary: RedcircleApiGetTargetProductData_PrimaryOfferSchema.nullable().optional(),\n all_offers: z.array(RedcircleApiGetTargetProductData_PrimaryOfferSchema).describe(\"All available offers.\").nullable().optional(),\n}).passthrough().describe(\"Pricing information for products.\");\nconst RedcircleApiGetTargetProductData_FulfillmentSchema = z.object({\n type: z.string().describe(\"Fulfillment type.\").nullable().optional(),\n}).passthrough().describe(\"Fulfillment type information.\");\nconst RedcircleApiGetTargetProductData_SearchResultSchema = z.object({\n offers: RedcircleApiGetTargetProductData_OffersSchema.nullable().optional(),\n product: RedcircleApiGetTargetProductData_ProductDetailsSchema.nullable().optional(),\n position: z.number().int().describe(\"Result position in list.\").nullable().optional(),\n fulfillment: RedcircleApiGetTargetProductData_FulfillmentSchema.nullable().optional(),\n}).passthrough().describe(\"Individual search result item.\");\nconst RedcircleApiGetTargetProductData_RelatedQuerySchema = z.object({\n link: z.string().describe(\"URL for the related query.\").nullable().optional(),\n query: z.string().describe(\"The related search query.\").nullable().optional(),\n}).passthrough().describe(\"Related query information.\");\nconst RedcircleApiGetTargetProductData_RequestMetadataSchema = z.object({\n created_at: z.string().describe(\"Request creation timestamp (ISO 8601 format).\").nullable().optional(),\n target_url: z.string().describe(\"Actual Target.com URL queried.\").nullable().optional(),\n processed_at: z.string().describe(\"Request completion timestamp (ISO 8601 format).\").nullable().optional(),\n total_time_taken: z.number().describe(\"Response latency in seconds.\").nullable().optional(),\n}).passthrough().describe(\"Processing information for the request.\");\nexport const RedcircleApiGetTargetProductDataOutput = z.object({\n facets: z.array(RedcircleApiGetTargetProductData_FacetSchema).describe(\"Filterable attributes (price ranges, brands, colors, item types).\").nullable().optional(),\n product: RedcircleApiGetTargetProductData_ProductDetailsSchema.nullable().optional(),\n categories: z.array(RedcircleApiGetTargetProductData_CategorySchema).describe(\"Available product categories.\").nullable().optional(),\n pagination: RedcircleApiGetTargetProductData_PaginationSchema.nullable().optional(),\n request_info: RedcircleApiGetTargetProductData_RequestInfoResponseSchema.nullable(),\n search_results: z.array(RedcircleApiGetTargetProductData_SearchResultSchema).describe(\"Product listings (returned for type='search').\").nullable().optional(),\n related_queries: z.array(z.union([z.string(), RedcircleApiGetTargetProductData_RelatedQuerySchema])).describe(\"Suggested search refinements.\").nullable().optional(),\n request_metadata: RedcircleApiGetTargetProductData_RequestMetadataSchema.nullable().optional(),\n request_parameters: z.record(z.string(), z.unknown()).describe(\"Echo of submitted parameters.\").nullable().optional(),\n}).passthrough().describe(\"Response model containing Target product data.\");\n\nexport const redcircleApiGetTargetProductData = action(\"REDCIRCLE_API_GET_TARGET_PRODUCT_DATA\", {\n slug: \"redcircle_api-get-target-product-data\",\n name: \"Get Target Product Data\",\n description: \"Tool to retrieve Target data in real-time including search results, product information, reviews, or category listings. Use when you need to access Target.com product data such as searching for products, getting specific product details, retrieving reviews, or listing categories.\",\n input: RedcircleApiGetTargetProductDataInput,\n output: RedcircleApiGetTargetProductDataOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwC,EAAE,OAAO;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;CAC7J,MAAM,EAAE,KAAK;EAAC;EAAU;EAAW;EAAW;CAAU,CAAC,CAAC,CAAC,SAAS,kMAAkM;CACtQ,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CACzJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;AACrJ,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,oDAAoD,EAAE,OAAO;CACjE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0BAA0B;AACpD,MAAM,+CAA+C,EAAE,OAAO;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SA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A+C,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnI,YAAY,kDAAkD,SAAS,CAAC,CAAC,SAAS;EAClF,cAAc,2DAA2D,SAAS;EAClF,gBAAgB,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5J,iBAAiB,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,mDAAmD,CAAC,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnK,kBAAkB,uDAAuD,SAAS,CAAC,CAAC,SAAS;EAC7F,oBAAoB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"get-target-product-data.mjs","names":[],"sources":["../../src/actions/get-target-product-data.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { redcircleApi } from \"../app\";\n\nexport const RedcircleApiGetTargetProductDataInput = z.object({\n page: z.number().int().describe(\"Page number for pagination control of result sets.\").optional(),\n tcin: z.string().describe(\"Target's unique product identifier (Target.com Item Number) for specific product lookup. Required when type='product'.\").optional(),\n type: z.enum([\"search\", \"product\", \"reviews\", \"category\"]).describe(\"Specifies the data type to retrieve. Valid values: 'search' for product search results, 'product' for specific product details, 'reviews' for product reviews, 'category' for category listings.\"),\n sort_by: z.string().describe(\"Ordering method for search results (e.g., 'best_seller').\").optional(),\n category_id: z.string().describe(\"Target category identifier for category listings. Required when type='category' and 'url' is not specified.\").optional(),\n search_term: z.string().describe(\"Search query for product discovery (e.g., 'highlighter pens', 'laptop'). Required when type='search'.\").optional(),\n}).describe(\"Request model for retrieving Target product data.\");\nconst RedcircleApiGetTargetProductData_FacetValueSchema = z.object({\n id: z.string().describe(\"Unique identifier for the facet value.\").nullable().optional(),\n value: z.string().describe(\"Value identifier.\").nullable().optional(),\n display_name: z.string().describe(\"Display name of the facet value.\").nullable().optional(),\n}).passthrough().describe(\"Facet value information.\");\nconst RedcircleApiGetTargetProductData_FacetSchema = z.object({\n name: z.string().describe(\"Facet name (e.g., 'Price', 'Brand', 'Color').\").nullable().optional(),\n values: z.array(RedcircleApiGetTargetProductData_FacetValueSchema).describe(\"Available facet values.\").nullable().optional(),\n}).passthrough().describe(\"Filterable attribute information.\");\nconst RedcircleApiGetTargetProductData_ImageInfoSchema = z.object({\n link: z.string().describe(\"Image URL.\").nullable().optional(),\n}).passthrough().describe(\"Image information.\");\nconst RedcircleApiGetTargetProductData_VideoInfoSchema = z.object({\n link: z.string().describe(\"Video URL.\").nullable().optional(),\n type: z.string().describe(\"Video type (e.g., 'video/mp4').\").nullable().optional(),\n}).passthrough().describe(\"Video information.\");\nconst RedcircleApiGetTargetProductData_ProductDetailsSchema = z.object({\n dpci: z.string().describe(\"Department-Class-Item number.\").nullable().optional(),\n link: z.string().describe(\"Product URL.\").nullable().optional(),\n tcin: z.string().describe(\"Target.com Item Number.\").nullable().optional(),\n brand: z.string().describe(\"Product brand.\").nullable().optional(),\n title: z.string().describe(\"Product title.\").nullable().optional(),\n images: z.array(z.union([z.string(), RedcircleApiGetTargetProductData_ImageInfoSchema])).describe(\"Product image URLs (can be strings or image info objects).\").nullable().optional(),\n rating: z.number().describe(\"Product rating.\").nullable().optional(),\n videos: z.array(RedcircleApiGetTargetProductData_VideoInfoSchema).describe(\"Product video information.\").nullable().optional(),\n feature_bullets: z.array(z.string()).describe(\"Product feature bullet points.\").nullable().optional(),\n}).passthrough().describe(\"Product details information.\");\nconst RedcircleApiGetTargetProductData_CategorySchema = z.object({\n id: z.string().describe(\"Category identifier.\").nullable().optional(),\n url: z.string().describe(\"Category URL.\").nullable().optional(),\n name: z.string().describe(\"Category name.\").nullable().optional(),\n}).passthrough().describe(\"Category information.\");\nconst RedcircleApiGetTargetProductData_PageInfoSchema = z.object({\n link: z.string().describe(\"Page URL.\").nullable().optional(),\n page: z.number().int().describe(\"Page number.\").nullable().optional(),\n}).passthrough().describe(\"Page navigation information.\");\nconst RedcircleApiGetTargetProductData_PaginationSchema = z.object({\n next: RedcircleApiGetTargetProductData_PageInfoSchema.nullable().optional(),\n current: RedcircleApiGetTargetProductData_PageInfoSchema.nullable().optional(),\n total_pages: z.number().int().describe(\"Total number of pages.\").nullable().optional(),\n total_results: z.number().int().describe(\"Total number of results.\").nullable().optional(),\n}).passthrough().describe(\"Page navigation details.\");\nconst RedcircleApiGetTargetProductData_RequestInfoResponseSchema = z.object({\n success: z.boolean().describe(\"Indicates if the request was successful.\").nullable(),\n credits_used: z.number().int().describe(\"Number of API credits consumed.\").nullable().optional(),\n credits_remaining: z.number().int().describe(\"Remaining available credits.\").nullable().optional(),\n}).passthrough().describe(\"Contains operation status and credit usage information.\");\nconst RedcircleApiGetTargetProductData_PrimaryOfferSchema = z.object({\n price: z.number().describe(\"Product price.\").nullable().optional(),\n currency: z.string().describe(\"Currency code for the price.\").nullable().optional(),\n}).passthrough().describe(\"Primary pricing offer information.\");\nconst RedcircleApiGetTargetProductData_OffersSchema = z.object({\n primary: RedcircleApiGetTargetProductData_PrimaryOfferSchema.nullable().optional(),\n all_offers: z.array(RedcircleApiGetTargetProductData_PrimaryOfferSchema).describe(\"All available offers.\").nullable().optional(),\n}).passthrough().describe(\"Pricing information for products.\");\nconst RedcircleApiGetTargetProductData_FulfillmentSchema = z.object({\n type: z.string().describe(\"Fulfillment type.\").nullable().optional(),\n}).passthrough().describe(\"Fulfillment type information.\");\nconst RedcircleApiGetTargetProductData_SearchResultSchema = z.object({\n offers: RedcircleApiGetTargetProductData_OffersSchema.nullable().optional(),\n product: RedcircleApiGetTargetProductData_ProductDetailsSchema.nullable().optional(),\n position: z.number().int().describe(\"Result position in list.\").nullable().optional(),\n fulfillment: RedcircleApiGetTargetProductData_FulfillmentSchema.nullable().optional(),\n}).passthrough().describe(\"Individual search result item.\");\nconst RedcircleApiGetTargetProductData_RelatedQuerySchema = z.object({\n link: z.string().describe(\"URL for the related query.\").nullable().optional(),\n query: z.string().describe(\"The related search query.\").nullable().optional(),\n}).passthrough().describe(\"Related query information.\");\nconst RedcircleApiGetTargetProductData_RequestMetadataSchema = z.object({\n created_at: z.string().describe(\"Request creation timestamp (ISO 8601 format).\").nullable().optional(),\n target_url: z.string().describe(\"Actual Target.com URL queried.\").nullable().optional(),\n processed_at: z.string().describe(\"Request completion timestamp (ISO 8601 format).\").nullable().optional(),\n total_time_taken: z.number().describe(\"Response latency in seconds.\").nullable().optional(),\n}).passthrough().describe(\"Processing information for the request.\");\nexport const RedcircleApiGetTargetProductDataOutput = z.object({\n facets: z.array(RedcircleApiGetTargetProductData_FacetSchema).describe(\"Filterable attributes (price ranges, brands, colors, item types).\").nullable().optional(),\n product: RedcircleApiGetTargetProductData_ProductDetailsSchema.nullable().optional(),\n categories: z.array(RedcircleApiGetTargetProductData_CategorySchema).describe(\"Available product categories.\").nullable().optional(),\n pagination: RedcircleApiGetTargetProductData_PaginationSchema.nullable().optional(),\n request_info: RedcircleApiGetTargetProductData_RequestInfoResponseSchema.nullable(),\n search_results: z.array(RedcircleApiGetTargetProductData_SearchResultSchema).describe(\"Product listings (returned for type='search').\").nullable().optional(),\n related_queries: z.array(z.union([z.string(), RedcircleApiGetTargetProductData_RelatedQuerySchema])).describe(\"Suggested search refinements.\").nullable().optional(),\n request_metadata: RedcircleApiGetTargetProductData_RequestMetadataSchema.nullable().optional(),\n request_parameters: z.record(z.string(), z.unknown()).describe(\"Echo of submitted parameters.\").nullable().optional(),\n}).passthrough().describe(\"Response model containing Target product data.\");\n\nexport const redcircleApiGetTargetProductData: AppAction<\n typeof RedcircleApiGetTargetProductDataInput,\n typeof RedcircleApiGetTargetProductDataOutput,\n typeof redcircleApi.credential\n> = action(\"REDCIRCLE_API_GET_TARGET_PRODUCT_DATA\", {\n slug: \"redcircle_api-get-target-product-data\",\n name: \"Get Target Product Data\",\n description: \"Tool to retrieve Target data in real-time including search results, product information, reviews, or category listings. Use when you need to access Target.com product data such as searching for products, getting specific product details, retrieving reviews, or listing categories.\",\n input: RedcircleApiGetTargetProductDataInput,\n output: RedcircleApiGetTargetProductDataOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wCAAwC,EAAE,OAAO;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;CAC7J,MAAM,EAAE,KAAK;EAAC;EAAU;EAAW;EAAW;CAAU,CAAC,CAAC,CAAC,SAAS,kMAAkM;CACtQ,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CACzJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;AACrJ,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,oDAAoD,EAAE,OAAO;CACjE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0BAA0B;AACpD,MAAM,+CAA+C,EAAE,OAAO;CAC5D,MAAM,EAAE,OAAO,CAA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SAAS,CAAC,CAAC,SAAS;EACnF,YAAY,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnI,YAAY,kDAAkD,SAAS,CAAC,CAAC,SAAS;EAClF,cAAc,2DAA2D,SAAS;EAClF,gBAAgB,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5J,iBAAiB,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,mDAAmD,CAAC,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnK,kBAAkB,uDAAuD,SAAS,CAAC,CAAC,SAAS;EAC7F,oBAAoB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-categories.cjs","names":["z","action"],"sources":["../../src/actions/list-categories.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedcircleApiListCategoriesInput = z.object({\n id: z.string().describe(\"Single category identifier to retrieve specific category details. Cannot be used with parent_id or search_term.\").optional(),\n parent_id: z.string().describe(\"Parent category ID to retrieve child categories. Cannot be used with id or search_term.\").optional(),\n search_term: z.string().describe(\"Search phrase to filter across category hierarchy (e.g., 'appliances'). Cannot be used with id or parent_id.\").optional(),\n}).describe(\"Request model for listing and searching categories.\");\nconst RedcircleApiListCategories_CategorySchema = z.object({\n id: z.string().describe(\"Unique category identifier\").nullable().optional(),\n link: z.string().describe(\"Direct URL to category page\").nullable().optional(),\n name: z.string().describe(\"Category display name\").nullable().optional(),\n path: z.string().describe(\"Hierarchical location (e.g., 'Electronics > Cameras')\").nullable().optional(),\n type: z.string().describe(\"Category classification\").nullable().optional(),\n domain: z.string().describe(\"Associated domain\").nullable().optional(),\n is_root: z.boolean().describe(\"Identifies top-level categories\").nullable().optional(),\n parent_id: z.string().describe(\"Parent category ID (non-root categories only)\").nullable().optional(),\n parent_name: z.string().describe(\"Parent category name (non-root categories only)\").nullable().optional(),\n has_children: z.boolean().describe(\"Indicates whether subcategories exist\").nullable().optional(),\n}).passthrough().describe(\"Category object with all possible fields.\");\nconst RedcircleApiListCategories_RequestInfoSchema = z.object({\n success: z.boolean().describe(\"Indicates request completion status\").nullable(),\n}).passthrough();\nexport const RedcircleApiListCategoriesOutput = z.object({\n category: RedcircleApiListCategories_CategorySchema.nullable().optional(),\n categories: z.array(RedcircleApiListCategories_CategorySchema).describe(\"Collection of category objects (when using parent_id or search_term)\").nullable().optional(),\n request_info: RedcircleApiListCategories_RequestInfoSchema.nullable().optional(),\n parent_category: RedcircleApiListCategories_CategorySchema.nullable().optional(),\n current_category: RedcircleApiListCategories_CategorySchema.nullable().optional(),\n}).passthrough().describe(\"Response model for listing categories. Structure varies based on request parameters.\");\n\nexport const redcircleApiListCategories = action(\"REDCIRCLE_API_LIST_CATEGORIES\", {\n slug: \"redcircle_api-list-categories\",\n name: \"List Categories\",\n description: \"Tool to retrieve all top-level (root) categories or filter results using optional parameters. Use when you need to browse the category hierarchy, search for specific categories, or retrieve category details. Parameters id, parent_id, and search_term are mutually exclusive.\",\n input: RedcircleApiListCategoriesInput,\n output: RedcircleApiListCategoriesOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-categories.cjs","names":["z","action"],"sources":["../../src/actions/list-categories.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { redcircleApi } from \"../app\";\n\nexport const RedcircleApiListCategoriesInput = z.object({\n id: z.string().describe(\"Single category identifier to retrieve specific category details. Cannot be used with parent_id or search_term.\").optional(),\n parent_id: z.string().describe(\"Parent category ID to retrieve child categories. Cannot be used with id or search_term.\").optional(),\n search_term: z.string().describe(\"Search phrase to filter across category hierarchy (e.g., 'appliances'). Cannot be used with id or parent_id.\").optional(),\n}).describe(\"Request model for listing and searching categories.\");\nconst RedcircleApiListCategories_CategorySchema = z.object({\n id: z.string().describe(\"Unique category identifier\").nullable().optional(),\n link: z.string().describe(\"Direct URL to category page\").nullable().optional(),\n name: z.string().describe(\"Category display name\").nullable().optional(),\n path: z.string().describe(\"Hierarchical location (e.g., 'Electronics > Cameras')\").nullable().optional(),\n type: z.string().describe(\"Category classification\").nullable().optional(),\n domain: z.string().describe(\"Associated domain\").nullable().optional(),\n is_root: z.boolean().describe(\"Identifies top-level categories\").nullable().optional(),\n parent_id: z.string().describe(\"Parent category ID (non-root categories only)\").nullable().optional(),\n parent_name: z.string().describe(\"Parent category name (non-root categories only)\").nullable().optional(),\n has_children: z.boolean().describe(\"Indicates whether subcategories exist\").nullable().optional(),\n}).passthrough().describe(\"Category object with all possible fields.\");\nconst RedcircleApiListCategories_RequestInfoSchema = z.object({\n success: z.boolean().describe(\"Indicates request completion status\").nullable(),\n}).passthrough();\nexport const RedcircleApiListCategoriesOutput = z.object({\n category: RedcircleApiListCategories_CategorySchema.nullable().optional(),\n categories: z.array(RedcircleApiListCategories_CategorySchema).describe(\"Collection of category objects (when using parent_id or search_term)\").nullable().optional(),\n request_info: RedcircleApiListCategories_RequestInfoSchema.nullable().optional(),\n parent_category: RedcircleApiListCategories_CategorySchema.nullable().optional(),\n current_category: RedcircleApiListCategories_CategorySchema.nullable().optional(),\n}).passthrough().describe(\"Response model for listing categories. Structure varies based on request parameters.\");\n\nexport const redcircleApiListCategories: AppAction<\n typeof RedcircleApiListCategoriesInput,\n typeof RedcircleApiListCategoriesOutput,\n typeof redcircleApi.credential\n> = action(\"REDCIRCLE_API_LIST_CATEGORIES\", {\n slug: \"redcircle_api-list-categories\",\n name: \"List Categories\",\n description: \"Tool to retrieve all top-level (root) categories or filter results using optional parameters. Use when you need to browse the category hierarchy, search for specific categories, or retrieve category details. Parameters id, parent_id, and search_term are mutually exclusive.\",\n input: RedcircleApiListCategoriesInput,\n output: RedcircleApiListCategoriesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CACpJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CACnI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;AAC5J,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAM,+CAA+CA,IAAAA,EAAE,OAAO,EAC5D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,EAChF,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,UAAU,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACxE,YAAYA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpK,cAAc,6CAA6C,SAAS,CAAC,CAAC,SAAS;CAC/E,iBAAiB,0CAA0C,SAAS,CAAC,CAAC,SAAS;CAC/E,kBAAkB,0CAA0C,SAAS,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sFAAsF;AAEhH,MAAa,6BAITC,eAAAA,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { redcircleApi } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-categories.d.ts
|
|
@@ -59,23 +61,7 @@ declare const RedcircleApiListCategoriesOutput: z.ZodObject<{
|
|
|
59
61
|
has_children: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
60
62
|
}, z.core.$loose>>>;
|
|
61
63
|
}, z.core.$loose>;
|
|
62
|
-
declare const redcircleApiListCategories:
|
|
63
|
-
id?: string | undefined;
|
|
64
|
-
parent_id?: string | undefined;
|
|
65
|
-
search_term?: string | undefined;
|
|
66
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"redcircle_api", z.ZodObject<{
|
|
67
|
-
connectionId: z.ZodString;
|
|
68
|
-
entityId: z.ZodString;
|
|
69
|
-
instanceId: z.ZodString;
|
|
70
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
71
|
-
generic_api_key: z.ZodString;
|
|
72
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"redcircle_api", z.ZodObject<{
|
|
73
|
-
connectionId: z.ZodString;
|
|
74
|
-
entityId: z.ZodString;
|
|
75
|
-
instanceId: z.ZodString;
|
|
76
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
77
|
-
generic_api_key: z.ZodString;
|
|
78
|
-
}, z.core.$strip>>]>;
|
|
64
|
+
declare const redcircleApiListCategories: AppAction<typeof RedcircleApiListCategoriesInput, typeof RedcircleApiListCategoriesOutput, typeof redcircleApi.credential>;
|
|
79
65
|
//#endregion
|
|
80
66
|
export { redcircleApiListCategories };
|
|
81
67
|
//# sourceMappingURL=list-categories.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-categories.d.cts","names":[],"sources":["../../src/actions/list-categories.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-categories.d.cts","names":[],"sources":["../../src/actions/list-categories.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAoB/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAQhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,YAAA,CAAa,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { redcircleApi } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-categories.d.ts
|
|
@@ -59,23 +61,7 @@ declare const RedcircleApiListCategoriesOutput: z.ZodObject<{
|
|
|
59
61
|
has_children: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
60
62
|
}, z.core.$loose>>>;
|
|
61
63
|
}, z.core.$loose>;
|
|
62
|
-
declare const redcircleApiListCategories:
|
|
63
|
-
id?: string | undefined;
|
|
64
|
-
parent_id?: string | undefined;
|
|
65
|
-
search_term?: string | undefined;
|
|
66
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"redcircle_api", z.ZodObject<{
|
|
67
|
-
connectionId: z.ZodString;
|
|
68
|
-
entityId: z.ZodString;
|
|
69
|
-
instanceId: z.ZodString;
|
|
70
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
71
|
-
generic_api_key: z.ZodString;
|
|
72
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"redcircle_api", z.ZodObject<{
|
|
73
|
-
connectionId: z.ZodString;
|
|
74
|
-
entityId: z.ZodString;
|
|
75
|
-
instanceId: z.ZodString;
|
|
76
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
77
|
-
generic_api_key: z.ZodString;
|
|
78
|
-
}, z.core.$strip>>]>;
|
|
64
|
+
declare const redcircleApiListCategories: AppAction<typeof RedcircleApiListCategoriesInput, typeof RedcircleApiListCategoriesOutput, typeof redcircleApi.credential>;
|
|
79
65
|
//#endregion
|
|
80
66
|
export { redcircleApiListCategories };
|
|
81
67
|
//# sourceMappingURL=list-categories.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-categories.d.mts","names":[],"sources":["../../src/actions/list-categories.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-categories.d.mts","names":[],"sources":["../../src/actions/list-categories.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAoB/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAQhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,YAAA,CAAa,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-categories.mjs","names":[],"sources":["../../src/actions/list-categories.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedcircleApiListCategoriesInput = z.object({\n id: z.string().describe(\"Single category identifier to retrieve specific category details. Cannot be used with parent_id or search_term.\").optional(),\n parent_id: z.string().describe(\"Parent category ID to retrieve child categories. Cannot be used with id or search_term.\").optional(),\n search_term: z.string().describe(\"Search phrase to filter across category hierarchy (e.g., 'appliances'). Cannot be used with id or parent_id.\").optional(),\n}).describe(\"Request model for listing and searching categories.\");\nconst RedcircleApiListCategories_CategorySchema = z.object({\n id: z.string().describe(\"Unique category identifier\").nullable().optional(),\n link: z.string().describe(\"Direct URL to category page\").nullable().optional(),\n name: z.string().describe(\"Category display name\").nullable().optional(),\n path: z.string().describe(\"Hierarchical location (e.g., 'Electronics > Cameras')\").nullable().optional(),\n type: z.string().describe(\"Category classification\").nullable().optional(),\n domain: z.string().describe(\"Associated domain\").nullable().optional(),\n is_root: z.boolean().describe(\"Identifies top-level categories\").nullable().optional(),\n parent_id: z.string().describe(\"Parent category ID (non-root categories only)\").nullable().optional(),\n parent_name: z.string().describe(\"Parent category name (non-root categories only)\").nullable().optional(),\n has_children: z.boolean().describe(\"Indicates whether subcategories exist\").nullable().optional(),\n}).passthrough().describe(\"Category object with all possible fields.\");\nconst RedcircleApiListCategories_RequestInfoSchema = z.object({\n success: z.boolean().describe(\"Indicates request completion status\").nullable(),\n}).passthrough();\nexport const RedcircleApiListCategoriesOutput = z.object({\n category: RedcircleApiListCategories_CategorySchema.nullable().optional(),\n categories: z.array(RedcircleApiListCategories_CategorySchema).describe(\"Collection of category objects (when using parent_id or search_term)\").nullable().optional(),\n request_info: RedcircleApiListCategories_RequestInfoSchema.nullable().optional(),\n parent_category: RedcircleApiListCategories_CategorySchema.nullable().optional(),\n current_category: RedcircleApiListCategories_CategorySchema.nullable().optional(),\n}).passthrough().describe(\"Response model for listing categories. Structure varies based on request parameters.\");\n\nexport const redcircleApiListCategories = action(\"REDCIRCLE_API_LIST_CATEGORIES\", {\n slug: \"redcircle_api-list-categories\",\n name: \"List Categories\",\n description: \"Tool to retrieve all top-level (root) categories or filter results using optional parameters. Use when you need to browse the category hierarchy, search for specific categories, or retrieve category details. Parameters id, parent_id, and search_term are mutually exclusive.\",\n input: RedcircleApiListCategoriesInput,\n output: RedcircleApiListCategoriesOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-categories.mjs","names":[],"sources":["../../src/actions/list-categories.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { redcircleApi } from \"../app\";\n\nexport const RedcircleApiListCategoriesInput = z.object({\n id: z.string().describe(\"Single category identifier to retrieve specific category details. Cannot be used with parent_id or search_term.\").optional(),\n parent_id: z.string().describe(\"Parent category ID to retrieve child categories. Cannot be used with id or search_term.\").optional(),\n search_term: z.string().describe(\"Search phrase to filter across category hierarchy (e.g., 'appliances'). Cannot be used with id or parent_id.\").optional(),\n}).describe(\"Request model for listing and searching categories.\");\nconst RedcircleApiListCategories_CategorySchema = z.object({\n id: z.string().describe(\"Unique category identifier\").nullable().optional(),\n link: z.string().describe(\"Direct URL to category page\").nullable().optional(),\n name: z.string().describe(\"Category display name\").nullable().optional(),\n path: z.string().describe(\"Hierarchical location (e.g., 'Electronics > Cameras')\").nullable().optional(),\n type: z.string().describe(\"Category classification\").nullable().optional(),\n domain: z.string().describe(\"Associated domain\").nullable().optional(),\n is_root: z.boolean().describe(\"Identifies top-level categories\").nullable().optional(),\n parent_id: z.string().describe(\"Parent category ID (non-root categories only)\").nullable().optional(),\n parent_name: z.string().describe(\"Parent category name (non-root categories only)\").nullable().optional(),\n has_children: z.boolean().describe(\"Indicates whether subcategories exist\").nullable().optional(),\n}).passthrough().describe(\"Category object with all possible fields.\");\nconst RedcircleApiListCategories_RequestInfoSchema = z.object({\n success: z.boolean().describe(\"Indicates request completion status\").nullable(),\n}).passthrough();\nexport const RedcircleApiListCategoriesOutput = z.object({\n category: RedcircleApiListCategories_CategorySchema.nullable().optional(),\n categories: z.array(RedcircleApiListCategories_CategorySchema).describe(\"Collection of category objects (when using parent_id or search_term)\").nullable().optional(),\n request_info: RedcircleApiListCategories_RequestInfoSchema.nullable().optional(),\n parent_category: RedcircleApiListCategories_CategorySchema.nullable().optional(),\n current_category: RedcircleApiListCategories_CategorySchema.nullable().optional(),\n}).passthrough().describe(\"Response model for listing categories. Structure varies based on request parameters.\");\n\nexport const redcircleApiListCategories: AppAction<\n typeof RedcircleApiListCategoriesInput,\n typeof RedcircleApiListCategoriesOutput,\n typeof redcircleApi.credential\n> = action(\"REDCIRCLE_API_LIST_CATEGORIES\", {\n slug: \"redcircle_api-list-categories\",\n name: \"List Categories\",\n description: \"Tool to retrieve all top-level (root) categories or filter results using optional parameters. Use when you need to browse the category hierarchy, search for specific categories, or retrieve category details. Parameters id, parent_id, and search_term are mutually exclusive.\",\n input: RedcircleApiListCategoriesInput,\n output: RedcircleApiListCategoriesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkC,EAAE,OAAO;CACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CACpJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CACnI,aAAa,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AAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAjB8C,EAAE,OAAO;EACvD,UAAU,0CAA0C,SAAS,CAAC,CAAC,SAAS;EACxE,YAAY,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpK,cAAc,6CAA6C,SAAS,CAAC,CAAC,SAAS;EAC/E,iBAAiB,0CAA0C,SAAS,CAAC,CAAC,SAAS;EAC/E,kBAAkB,0CAA0C,SAAS,CAAC,CAAC,SAAS;CAClF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sFAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-collections.cjs","names":["z","action"],"sources":["../../src/actions/list-collections.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedcircleApiListCollectionsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination (defaults to 1)\").optional(),\n status: z.enum([\"all\", \"idle\", \"queued\", \"running\"]).describe(\"Filter by Collection status: 'all', 'idle', 'queued', or 'running' (defaults to all)\").optional(),\n sort_by: z.enum([\"created_at\", \"last_run\", \"name\", \"priority\", \"status\"]).describe(\"Sort collections by: 'created_at', 'last_run', 'name', 'priority', or 'status'\").optional(),\n page_size: z.number().int().describe(\"Results per page; defaults to 25, maximum 1000\").optional(),\n search_term: z.string().describe(\"Limits results to Collections matching the search term in their name\").optional(),\n search_type: z.enum([\"contains\", \"starts_with\", \"ends_with\", \"exact\"]).describe(\"Determines search matching strategy: 'contains' (default), 'starts_with', 'ends_with', or 'exact'\").optional(),\n created_after: z.string().describe(\"Filter Collections created after specified timestamp (ISO 8601 format)\").optional(),\n created_before: z.string().describe(\"Filter Collections created before specified timestamp (ISO 8601 format)\").optional(),\n destination_id: z.string().describe(\"Filter to Collections with specified destination ID\").optional(),\n last_run_after: z.string().describe(\"Filter Collections by last run date after specified timestamp (ISO 8601 format)\").optional(),\n sort_direction: z.enum([\"ascending\", \"descending\"]).describe(\"Sort direction: 'ascending' (default) or 'descending'\").optional(),\n last_run_before: z.string().describe(\"Filter Collections by last run date before specified timestamp (ISO 8601 format)\").optional(),\n only_with_results: z.boolean().describe(\"Filter to return only Collections containing result sets\").optional(),\n only_without_results: z.boolean().describe(\"Filter to return only Collections without result sets\").optional(),\n}).describe(\"Request model for listing collections with filtering and pagination options.\");\nconst RedcircleApiListCollections_CollectionItemSchema = z.object({\n id: z.string().describe(\"Unique Collection identifier\").nullable().optional(),\n name: z.string().describe(\"Collection name\").nullable().optional(),\n status: z.string().describe(\"Current status (idle, queued, running)\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether Collection is active\").nullable().optional(),\n last_run: z.string().describe(\"Last execution timestamp (ISO 8601)\").nullable().optional(),\n priority: z.string().describe(\"Collection priority level\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp (ISO 8601)\").nullable().optional(),\n results_count: z.number().int().describe(\"Number of available result sets\").nullable().optional(),\n schedule_type: z.string().describe(\"Scheduling pattern (daily, weekly)\").nullable().optional(),\n}).passthrough().describe(\"Individual collection object.\");\nconst RedcircleApiListCollections_RequestInfoSchema = z.object({\n success: z.boolean().describe(\"Whether the request was successful\").nullable().optional(),\n}).passthrough().describe(\"Request information object.\");\nexport const RedcircleApiListCollectionsOutput = z.object({\n collections: z.array(RedcircleApiListCollections_CollectionItemSchema).describe(\"Array of Collection objects\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of Collections matching criteria\").nullable().optional(),\n total_pages: z.number().int().describe(\"Number of pages in paginated results\").nullable().optional(),\n current_page: z.number().int().describe(\"Current page number\").nullable().optional(),\n request_info: RedcircleApiListCollections_RequestInfoSchema.nullable().optional(),\n count_this_page: z.number().int().describe(\"Number of Collections returned in this response\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing collections.\");\n\nexport const redcircleApiListCollections = action(\"REDCIRCLE_API_LIST_COLLECTIONS\", {\n slug: \"redcircle_api-list-collections\",\n name: \"List Collections\",\n description: \"Tool to retrieve all collections configured on your RedCircle API account with filtering and pagination. Use when you need to browse collections, filter by status or search term, or manage collection metadata.\",\n input: RedcircleApiListCollectionsInput,\n output: RedcircleApiListCollectionsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-collections.cjs","names":["z","action"],"sources":["../../src/actions/list-collections.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { redcircleApi } from \"../app\";\n\nexport const RedcircleApiListCollectionsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination (defaults to 1)\").optional(),\n status: z.enum([\"all\", \"idle\", \"queued\", \"running\"]).describe(\"Filter by Collection status: 'all', 'idle', 'queued', or 'running' (defaults to all)\").optional(),\n sort_by: z.enum([\"created_at\", \"last_run\", \"name\", \"priority\", \"status\"]).describe(\"Sort collections by: 'created_at', 'last_run', 'name', 'priority', or 'status'\").optional(),\n page_size: z.number().int().describe(\"Results per page; defaults to 25, maximum 1000\").optional(),\n search_term: z.string().describe(\"Limits results to Collections matching the search term in their name\").optional(),\n search_type: z.enum([\"contains\", \"starts_with\", \"ends_with\", \"exact\"]).describe(\"Determines search matching strategy: 'contains' (default), 'starts_with', 'ends_with', or 'exact'\").optional(),\n created_after: z.string().describe(\"Filter Collections created after specified timestamp (ISO 8601 format)\").optional(),\n created_before: z.string().describe(\"Filter Collections created before specified timestamp (ISO 8601 format)\").optional(),\n destination_id: z.string().describe(\"Filter to Collections with specified destination ID\").optional(),\n last_run_after: z.string().describe(\"Filter Collections by last run date after specified timestamp (ISO 8601 format)\").optional(),\n sort_direction: z.enum([\"ascending\", \"descending\"]).describe(\"Sort direction: 'ascending' (default) or 'descending'\").optional(),\n last_run_before: z.string().describe(\"Filter Collections by last run date before specified timestamp (ISO 8601 format)\").optional(),\n only_with_results: z.boolean().describe(\"Filter to return only Collections containing result sets\").optional(),\n only_without_results: z.boolean().describe(\"Filter to return only Collections without result sets\").optional(),\n}).describe(\"Request model for listing collections with filtering and pagination options.\");\nconst RedcircleApiListCollections_CollectionItemSchema = z.object({\n id: z.string().describe(\"Unique Collection identifier\").nullable().optional(),\n name: z.string().describe(\"Collection name\").nullable().optional(),\n status: z.string().describe(\"Current status (idle, queued, running)\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether Collection is active\").nullable().optional(),\n last_run: z.string().describe(\"Last execution timestamp (ISO 8601)\").nullable().optional(),\n priority: z.string().describe(\"Collection priority level\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp (ISO 8601)\").nullable().optional(),\n results_count: z.number().int().describe(\"Number of available result sets\").nullable().optional(),\n schedule_type: z.string().describe(\"Scheduling pattern (daily, weekly)\").nullable().optional(),\n}).passthrough().describe(\"Individual collection object.\");\nconst RedcircleApiListCollections_RequestInfoSchema = z.object({\n success: z.boolean().describe(\"Whether the request was successful\").nullable().optional(),\n}).passthrough().describe(\"Request information object.\");\nexport const RedcircleApiListCollectionsOutput = z.object({\n collections: z.array(RedcircleApiListCollections_CollectionItemSchema).describe(\"Array of Collection objects\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of Collections matching criteria\").nullable().optional(),\n total_pages: z.number().int().describe(\"Number of pages in paginated results\").nullable().optional(),\n current_page: z.number().int().describe(\"Current page number\").nullable().optional(),\n request_info: RedcircleApiListCollections_RequestInfoSchema.nullable().optional(),\n count_this_page: z.number().int().describe(\"Number of Collections returned in this response\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing collections.\");\n\nexport const redcircleApiListCollections: AppAction<\n typeof RedcircleApiListCollectionsInput,\n typeof RedcircleApiListCollectionsOutput,\n typeof redcircleApi.credential\n> = action(\"REDCIRCLE_API_LIST_COLLECTIONS\", {\n slug: \"redcircle_api-list-collections\",\n name: \"List Collections\",\n description: \"Tool to retrieve all collections configured on your RedCircle API account with filtering and pagination. Use when you need to browse collections, filter by status or search term, or manage collection metadata.\",\n input: RedcircleApiListCollections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C,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6BAA6B;AACvD,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,aAAaA,IAAAA,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,cAAc,8CAA8C,SAAS,CAAC,CAAC,SAAS;CAChF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,8BAITC,eAAAA,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { redcircleApi } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-collections.d.ts
|
|
@@ -13,8 +15,8 @@ declare const RedcircleApiListCollectionsInput: z.ZodObject<{
|
|
|
13
15
|
name: "name";
|
|
14
16
|
status: "status";
|
|
15
17
|
created_at: "created_at";
|
|
16
|
-
priority: "priority";
|
|
17
18
|
last_run: "last_run";
|
|
19
|
+
priority: "priority";
|
|
18
20
|
}>>;
|
|
19
21
|
page_size: z.ZodOptional<z.ZodNumber>;
|
|
20
22
|
search_term: z.ZodOptional<z.ZodString>;
|
|
@@ -56,34 +58,7 @@ declare const RedcircleApiListCollectionsOutput: z.ZodObject<{
|
|
|
56
58
|
}, z.core.$loose>>>;
|
|
57
59
|
count_this_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
58
60
|
}, z.core.$loose>;
|
|
59
|
-
declare const redcircleApiListCollections:
|
|
60
|
-
page?: number | undefined;
|
|
61
|
-
status?: "all" | "idle" | "queued" | "running" | undefined;
|
|
62
|
-
sort_by?: "name" | "status" | "created_at" | "priority" | "last_run" | undefined;
|
|
63
|
-
page_size?: number | undefined;
|
|
64
|
-
search_term?: string | undefined;
|
|
65
|
-
search_type?: "exact" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
66
|
-
created_after?: string | undefined;
|
|
67
|
-
created_before?: string | undefined;
|
|
68
|
-
destination_id?: string | undefined;
|
|
69
|
-
last_run_after?: string | undefined;
|
|
70
|
-
sort_direction?: "ascending" | "descending" | undefined;
|
|
71
|
-
last_run_before?: string | undefined;
|
|
72
|
-
only_with_results?: boolean | undefined;
|
|
73
|
-
only_without_results?: boolean | undefined;
|
|
74
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"redcircle_api", z.ZodObject<{
|
|
75
|
-
connectionId: z.ZodString;
|
|
76
|
-
entityId: z.ZodString;
|
|
77
|
-
instanceId: z.ZodString;
|
|
78
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
79
|
-
generic_api_key: z.ZodString;
|
|
80
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"redcircle_api", z.ZodObject<{
|
|
81
|
-
connectionId: z.ZodString;
|
|
82
|
-
entityId: z.ZodString;
|
|
83
|
-
instanceId: z.ZodString;
|
|
84
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
85
|
-
generic_api_key: z.ZodString;
|
|
86
|
-
}, z.core.$strip>>]>;
|
|
61
|
+
declare const redcircleApiListCollections: AppAction<typeof RedcircleApiListCollectionsInput, typeof RedcircleApiListCollectionsOutput, typeof redcircleApi.credential>;
|
|
87
62
|
//#endregion
|
|
88
63
|
export { redcircleApiListCollections };
|
|
89
64
|
//# sourceMappingURL=list-collections.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-collections.d.cts","names":[],"sources":["../../src/actions/list-collections.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-collections.d.cts","names":[],"sources":["../../src/actions/list-collections.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA8BhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cASjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,YAAA,CAAa,UAAA"}
|