@keystrokehq/needle 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-files-to-collection.cjs +3 -3
- package/dist/actions/add-files-to-collection.cjs.map +1 -1
- package/dist/actions/add-files-to-collection.d.cts +29 -3
- package/dist/actions/add-files-to-collection.d.cts.map +1 -1
- package/dist/actions/add-files-to-collection.d.mts +29 -3
- package/dist/actions/add-files-to-collection.d.mts.map +1 -1
- package/dist/actions/add-files-to-collection.mjs +3 -3
- package/dist/actions/add-files-to-collection.mjs.map +1 -1
- package/dist/actions/add-files-to-local-connector.cjs +3 -3
- package/dist/actions/add-files-to-local-connector.cjs.map +1 -1
- package/dist/actions/add-files-to-local-connector.d.cts +31 -3
- package/dist/actions/add-files-to-local-connector.d.cts.map +1 -1
- package/dist/actions/add-files-to-local-connector.d.mts +31 -3
- package/dist/actions/add-files-to-local-connector.d.mts.map +1 -1
- package/dist/actions/add-files-to-local-connector.mjs +3 -3
- package/dist/actions/add-files-to-local-connector.mjs.map +1 -1
- package/dist/actions/create-collection.cjs +3 -3
- package/dist/actions/create-collection.cjs.map +1 -1
- package/dist/actions/create-collection.d.cts +18 -3
- package/dist/actions/create-collection.d.cts.map +1 -1
- package/dist/actions/create-collection.d.mts +18 -3
- package/dist/actions/create-collection.d.mts.map +1 -1
- package/dist/actions/create-collection.mjs +3 -3
- package/dist/actions/create-collection.mjs.map +1 -1
- package/dist/actions/create-local-connector.cjs +15 -15
- package/dist/actions/create-local-connector.cjs.map +1 -1
- package/dist/actions/create-local-connector.d.cts +46 -3
- package/dist/actions/create-local-connector.d.cts.map +1 -1
- package/dist/actions/create-local-connector.d.mts +46 -3
- package/dist/actions/create-local-connector.d.mts.map +1 -1
- package/dist/actions/create-local-connector.mjs +15 -15
- package/dist/actions/create-local-connector.mjs.map +1 -1
- package/dist/actions/delete-files-from-collection.cjs +1 -1
- package/dist/actions/delete-files-from-collection.cjs.map +1 -1
- package/dist/actions/delete-files-from-collection.d.cts +12 -3
- package/dist/actions/delete-files-from-collection.d.cts.map +1 -1
- package/dist/actions/delete-files-from-collection.d.mts +12 -3
- package/dist/actions/delete-files-from-collection.d.mts.map +1 -1
- package/dist/actions/delete-files-from-collection.mjs +1 -1
- package/dist/actions/delete-files-from-collection.mjs.map +1 -1
- package/dist/actions/delete-files-from-local-connector.cjs +5 -5
- package/dist/actions/delete-files-from-local-connector.cjs.map +1 -1
- package/dist/actions/delete-files-from-local-connector.d.cts +29 -3
- package/dist/actions/delete-files-from-local-connector.d.cts.map +1 -1
- package/dist/actions/delete-files-from-local-connector.d.mts +29 -3
- package/dist/actions/delete-files-from-local-connector.d.mts.map +1 -1
- package/dist/actions/delete-files-from-local-connector.mjs +5 -5
- package/dist/actions/delete-files-from-local-connector.mjs.map +1 -1
- package/dist/actions/get-collection-stats.cjs +7 -7
- package/dist/actions/get-collection-stats.cjs.map +1 -1
- package/dist/actions/get-collection-stats.d.cts +16 -3
- package/dist/actions/get-collection-stats.d.cts.map +1 -1
- package/dist/actions/get-collection-stats.d.mts +16 -3
- package/dist/actions/get-collection-stats.d.mts.map +1 -1
- package/dist/actions/get-collection-stats.mjs +7 -7
- package/dist/actions/get-collection-stats.mjs.map +1 -1
- package/dist/actions/get-collection.cjs +5 -5
- package/dist/actions/get-collection.cjs.map +1 -1
- package/dist/actions/get-collection.d.cts +12 -3
- package/dist/actions/get-collection.d.cts.map +1 -1
- package/dist/actions/get-collection.d.mts +12 -3
- package/dist/actions/get-collection.d.mts.map +1 -1
- package/dist/actions/get-collection.mjs +5 -5
- package/dist/actions/get-collection.mjs.map +1 -1
- package/dist/actions/get-file-download-url.cjs +2 -2
- package/dist/actions/get-file-download-url.cjs.map +1 -1
- package/dist/actions/get-file-download-url.d.cts +10 -3
- package/dist/actions/get-file-download-url.d.cts.map +1 -1
- package/dist/actions/get-file-download-url.d.mts +10 -3
- package/dist/actions/get-file-download-url.d.mts.map +1 -1
- package/dist/actions/get-file-download-url.mjs +2 -2
- package/dist/actions/get-file-download-url.mjs.map +1 -1
- package/dist/actions/get-file-upload-url.cjs +4 -4
- package/dist/actions/get-file-upload-url.cjs.map +1 -1
- package/dist/actions/get-file-upload-url.d.cts +12 -3
- package/dist/actions/get-file-upload-url.d.cts.map +1 -1
- package/dist/actions/get-file-upload-url.d.mts +12 -3
- package/dist/actions/get-file-upload-url.d.mts.map +1 -1
- package/dist/actions/get-file-upload-url.mjs +4 -4
- package/dist/actions/get-file-upload-url.mjs.map +1 -1
- package/dist/actions/get-local-connector.cjs +6 -6
- package/dist/actions/get-local-connector.cjs.map +1 -1
- package/dist/actions/get-local-connector.d.cts +25 -3
- package/dist/actions/get-local-connector.d.cts.map +1 -1
- package/dist/actions/get-local-connector.d.mts +25 -3
- package/dist/actions/get-local-connector.d.mts.map +1 -1
- package/dist/actions/get-local-connector.mjs +6 -6
- package/dist/actions/get-local-connector.mjs.map +1 -1
- package/dist/actions/list-collection-files.cjs +7 -7
- package/dist/actions/list-collection-files.cjs.map +1 -1
- package/dist/actions/list-collection-files.d.cts +30 -3
- package/dist/actions/list-collection-files.d.cts.map +1 -1
- package/dist/actions/list-collection-files.d.mts +30 -3
- package/dist/actions/list-collection-files.d.mts.map +1 -1
- package/dist/actions/list-collection-files.mjs +7 -7
- package/dist/actions/list-collection-files.mjs.map +1 -1
- package/dist/actions/list-collections.cjs +8 -8
- package/dist/actions/list-collections.cjs.map +1 -1
- package/dist/actions/list-collections.d.cts +26 -3
- package/dist/actions/list-collections.d.cts.map +1 -1
- package/dist/actions/list-collections.d.mts +26 -3
- package/dist/actions/list-collections.d.mts.map +1 -1
- package/dist/actions/list-collections.mjs +8 -8
- package/dist/actions/list-collections.mjs.map +1 -1
- package/dist/actions/list-connectors.cjs +4 -4
- package/dist/actions/list-connectors.cjs.map +1 -1
- package/dist/actions/list-connectors.d.cts +14 -3
- package/dist/actions/list-connectors.d.cts.map +1 -1
- package/dist/actions/list-connectors.d.mts +14 -3
- package/dist/actions/list-connectors.d.mts.map +1 -1
- package/dist/actions/list-connectors.mjs +4 -4
- package/dist/actions/list-connectors.mjs.map +1 -1
- package/dist/actions/list-local-connectors.cjs +6 -6
- package/dist/actions/list-local-connectors.cjs.map +1 -1
- package/dist/actions/list-local-connectors.d.cts +22 -3
- package/dist/actions/list-local-connectors.d.cts.map +1 -1
- package/dist/actions/list-local-connectors.d.mts +22 -3
- package/dist/actions/list-local-connectors.d.mts.map +1 -1
- package/dist/actions/list-local-connectors.mjs +6 -6
- package/dist/actions/list-local-connectors.mjs.map +1 -1
- package/dist/actions/search-collection.cjs +3 -3
- package/dist/actions/search-collection.cjs.map +1 -1
- package/dist/actions/search-collection.d.cts +26 -3
- package/dist/actions/search-collection.d.cts.map +1 -1
- package/dist/actions/search-collection.d.mts +26 -3
- package/dist/actions/search-collection.d.mts.map +1 -1
- package/dist/actions/search-collection.mjs +3 -3
- package/dist/actions/search-collection.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["needle","executeNeedleTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { needle } from \"./app\";\nimport { executeNeedleTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["needle","executeNeedleTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { needle } from \"./app\";\nimport { executeNeedleTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return needle.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeNeedleTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { needle } from \"./app\";\nimport { executeNeedleTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { needle } from \"./app\";\nimport { executeNeedleTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return needle.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeNeedleTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
|
|
@@ -5,7 +5,7 @@ const NeedleAddFilesToCollectionInput = zod.z.object({
|
|
|
5
5
|
files: zod.z.array(zod.z.object({
|
|
6
6
|
url: zod.z.string().describe("URL of the file. Can be a public URL or a private URL generated from the Files API."),
|
|
7
7
|
name: zod.z.string().describe("Name of the file including extension")
|
|
8
|
-
}).describe("Schema for a single file to add to the collection.")).describe("List of files to add to the collection. Each file must have a name and URL."),
|
|
8
|
+
}).passthrough().describe("Schema for a single file to add to the collection.")).describe("List of files to add to the collection. Each file must have a name and URL."),
|
|
9
9
|
collection_id: zod.z.string().describe("The unique identifier of the collection to add files to")
|
|
10
10
|
}).describe("Request schema for adding files to a collection.");
|
|
11
11
|
const NeedleAddFilesToCollection_FileResultSchema = zod.z.object({
|
|
@@ -19,8 +19,8 @@ const NeedleAddFilesToCollection_FileResultSchema = zod.z.object({
|
|
|
19
19
|
user_id: zod.z.string().describe("ID of the user who uploaded the file").nullable().optional(),
|
|
20
20
|
md5_hash: zod.z.string().describe("MD5 hash of the file").nullable().optional(),
|
|
21
21
|
created_at: zod.z.string().describe("Creation timestamp in ISO 8601 format").nullable().optional()
|
|
22
|
-
}).describe("Schema for a single file result returned by the API.");
|
|
23
|
-
const NeedleAddFilesToCollectionOutput = zod.z.object({ result: zod.z.array(NeedleAddFilesToCollection_FileResultSchema).describe("List of file results. Each entry contains the file details or error information.") }).describe("Response schema after adding files to a collection.");
|
|
22
|
+
}).passthrough().describe("Schema for a single file result returned by the API.");
|
|
23
|
+
const NeedleAddFilesToCollectionOutput = zod.z.object({ result: zod.z.array(NeedleAddFilesToCollection_FileResultSchema).describe("List of file results. Each entry contains the file details or error information.") }).passthrough().describe("Response schema after adding files to a collection.");
|
|
24
24
|
const needleAddFilesToCollection = require_action.action("NEEDLE_ADD_FILES_TO_COLLECTION", {
|
|
25
25
|
slug: "needle-add-files-to-collection",
|
|
26
26
|
name: "Add files to a collection",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-files-to-collection.cjs","names":["z","action"],"sources":["../../src/actions/add-files-to-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleAddFilesToCollectionInput
|
|
1
|
+
{"version":3,"file":"add-files-to-collection.cjs","names":["z","action"],"sources":["../../src/actions/add-files-to-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleAddFilesToCollectionInput = z.object({\n files: z.array(z.object({\n url: z.string().describe(\"URL of the file. Can be a public URL or a private URL generated from the Files API.\"),\n name: z.string().describe(\"Name of the file including extension\"),\n}).passthrough().describe(\"Schema for a single file to add to the collection.\")).describe(\"List of files to add to the collection. Each file must have a name and URL.\"),\n collection_id: z.string().describe(\"The unique identifier of the collection to add files to\"),\n}).describe(\"Request schema for adding files to a collection.\");\nconst NeedleAddFilesToCollection_FileResultSchema = z.object({\n id: z.string().describe(\"Unique file identifier\").nullable().optional(),\n url: z.string().describe(\"URL of the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"Size of the file in bytes\").nullable().optional(),\n type: z.string().describe(\"MIME type of the file\").nullable().optional(),\n error: z.string().describe(\"Error message if file processing failed\").nullable().optional(),\n status: z.string().describe(\"Current status of the file\").nullable().optional(),\n user_id: z.string().describe(\"ID of the user who uploaded the file\").nullable().optional(),\n md5_hash: z.string().describe(\"MD5 hash of the file\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable().optional(),\n}).passthrough().describe(\"Schema for a single file result returned by the API.\");\nexport const NeedleAddFilesToCollectionOutput = z.object({\n result: z.array(NeedleAddFilesToCollection_FileResultSchema).describe(\"List of file results. Each entry contains the file details or error information.\"),\n}).passthrough().describe(\"Response schema after adding files to a collection.\");\n\nexport const needleAddFilesToCollection = action(\"NEEDLE_ADD_FILES_TO_COLLECTION\", {\n slug: \"needle-add-files-to-collection\",\n name: \"Add files to a collection\",\n description: \"Tool to add files to a collection by providing file URLs. Use when you need to add one or more files to an existing collection. URLs can be public or private (generated via the Files API).\",\n input: NeedleAddFilesToCollectionInput,\n output: NeedleAddFilesToCollectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;EAC9G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,CAAC,SAAS,6EAA6E;CACrK,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;AAC9F,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAChF,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,QAAQA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,kFAAkF,EAC1J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAE/E,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,35 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/add-files-to-collection.d.ts
|
|
4
|
-
declare const NeedleAddFilesToCollectionInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NeedleAddFilesToCollectionInput: z.ZodObject<{
|
|
5
|
+
files: z.ZodArray<z.ZodObject<{
|
|
6
|
+
url: z.ZodString;
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
}, z.core.$loose>>;
|
|
9
|
+
collection_id: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const NeedleAddFilesToCollectionOutput: z.ZodObject<{
|
|
12
|
+
result: z.ZodArray<z.ZodObject<{
|
|
13
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
md5_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
}, z.core.$loose>>;
|
|
24
|
+
}, z.core.$loose>;
|
|
25
|
+
declare const needleAddFilesToCollection: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
26
|
+
files: {
|
|
27
|
+
[x: string]: unknown;
|
|
28
|
+
url: string;
|
|
29
|
+
name: string;
|
|
30
|
+
}[];
|
|
31
|
+
collection_id: string;
|
|
32
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
33
|
//#endregion
|
|
8
34
|
export { needleAddFilesToCollection };
|
|
9
35
|
//# sourceMappingURL=add-files-to-collection.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-files-to-collection.d.cts","names":[],"sources":["../../src/actions/add-files-to-collection.ts"],"mappings":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"add-files-to-collection.d.cts","names":[],"sources":["../../src/actions/add-files-to-collection.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cAmB/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAIhC,0BAAA,gCAA0B,wBAAA"}
|
|
@@ -1,9 +1,35 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/add-files-to-collection.d.ts
|
|
4
|
-
declare const NeedleAddFilesToCollectionInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NeedleAddFilesToCollectionInput: z.ZodObject<{
|
|
5
|
+
files: z.ZodArray<z.ZodObject<{
|
|
6
|
+
url: z.ZodString;
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
}, z.core.$loose>>;
|
|
9
|
+
collection_id: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const NeedleAddFilesToCollectionOutput: z.ZodObject<{
|
|
12
|
+
result: z.ZodArray<z.ZodObject<{
|
|
13
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
md5_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
}, z.core.$loose>>;
|
|
24
|
+
}, z.core.$loose>;
|
|
25
|
+
declare const needleAddFilesToCollection: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
26
|
+
files: {
|
|
27
|
+
[x: string]: unknown;
|
|
28
|
+
url: string;
|
|
29
|
+
name: string;
|
|
30
|
+
}[];
|
|
31
|
+
collection_id: string;
|
|
32
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
33
|
//#endregion
|
|
8
34
|
export { needleAddFilesToCollection };
|
|
9
35
|
//# sourceMappingURL=add-files-to-collection.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-files-to-collection.d.mts","names":[],"sources":["../../src/actions/add-files-to-collection.ts"],"mappings":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"add-files-to-collection.d.mts","names":[],"sources":["../../src/actions/add-files-to-collection.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cAmB/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAIhC,0BAAA,gCAA0B,wBAAA"}
|
|
@@ -5,7 +5,7 @@ const NeedleAddFilesToCollectionInput = z.object({
|
|
|
5
5
|
files: z.array(z.object({
|
|
6
6
|
url: z.string().describe("URL of the file. Can be a public URL or a private URL generated from the Files API."),
|
|
7
7
|
name: z.string().describe("Name of the file including extension")
|
|
8
|
-
}).describe("Schema for a single file to add to the collection.")).describe("List of files to add to the collection. Each file must have a name and URL."),
|
|
8
|
+
}).passthrough().describe("Schema for a single file to add to the collection.")).describe("List of files to add to the collection. Each file must have a name and URL."),
|
|
9
9
|
collection_id: z.string().describe("The unique identifier of the collection to add files to")
|
|
10
10
|
}).describe("Request schema for adding files to a collection.");
|
|
11
11
|
const NeedleAddFilesToCollection_FileResultSchema = z.object({
|
|
@@ -19,13 +19,13 @@ const NeedleAddFilesToCollection_FileResultSchema = z.object({
|
|
|
19
19
|
user_id: z.string().describe("ID of the user who uploaded the file").nullable().optional(),
|
|
20
20
|
md5_hash: z.string().describe("MD5 hash of the file").nullable().optional(),
|
|
21
21
|
created_at: z.string().describe("Creation timestamp in ISO 8601 format").nullable().optional()
|
|
22
|
-
}).describe("Schema for a single file result returned by the API.");
|
|
22
|
+
}).passthrough().describe("Schema for a single file result returned by the API.");
|
|
23
23
|
const needleAddFilesToCollection = action("NEEDLE_ADD_FILES_TO_COLLECTION", {
|
|
24
24
|
slug: "needle-add-files-to-collection",
|
|
25
25
|
name: "Add files to a collection",
|
|
26
26
|
description: "Tool to add files to a collection by providing file URLs. Use when you need to add one or more files to an existing collection. URLs can be public or private (generated via the Files API).",
|
|
27
27
|
input: NeedleAddFilesToCollectionInput,
|
|
28
|
-
output: z.object({ result: z.array(NeedleAddFilesToCollection_FileResultSchema).describe("List of file results. Each entry contains the file details or error information.") }).describe("Response schema after adding files to a collection.")
|
|
28
|
+
output: z.object({ result: z.array(NeedleAddFilesToCollection_FileResultSchema).describe("List of file results. Each entry contains the file details or error information.") }).passthrough().describe("Response schema after adding files to a collection.")
|
|
29
29
|
});
|
|
30
30
|
//#endregion
|
|
31
31
|
export { needleAddFilesToCollection };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-files-to-collection.mjs","names":[],"sources":["../../src/actions/add-files-to-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleAddFilesToCollectionInput
|
|
1
|
+
{"version":3,"file":"add-files-to-collection.mjs","names":[],"sources":["../../src/actions/add-files-to-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleAddFilesToCollectionInput = z.object({\n files: z.array(z.object({\n url: z.string().describe(\"URL of the file. Can be a public URL or a private URL generated from the Files API.\"),\n name: z.string().describe(\"Name of the file including extension\"),\n}).passthrough().describe(\"Schema for a single file to add to the collection.\")).describe(\"List of files to add to the collection. Each file must have a name and URL.\"),\n collection_id: z.string().describe(\"The unique identifier of the collection to add files to\"),\n}).describe(\"Request schema for adding files to a collection.\");\nconst NeedleAddFilesToCollection_FileResultSchema = z.object({\n id: z.string().describe(\"Unique file identifier\").nullable().optional(),\n url: z.string().describe(\"URL of the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"Size of the file in bytes\").nullable().optional(),\n type: z.string().describe(\"MIME type of the file\").nullable().optional(),\n error: z.string().describe(\"Error message if file processing failed\").nullable().optional(),\n status: z.string().describe(\"Current status of the file\").nullable().optional(),\n user_id: z.string().describe(\"ID of the user who uploaded the file\").nullable().optional(),\n md5_hash: z.string().describe(\"MD5 hash of the file\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable().optional(),\n}).passthrough().describe(\"Schema for a single file result returned by the API.\");\nexport const NeedleAddFilesToCollectionOutput = z.object({\n result: z.array(NeedleAddFilesToCollection_FileResultSchema).describe(\"List of file results. Each entry contains the file details or error information.\"),\n}).passthrough().describe(\"Response schema after adding files to a collection.\");\n\nexport const needleAddFilesToCollection = action(\"NEEDLE_ADD_FILES_TO_COLLECTION\", {\n slug: \"needle-add-files-to-collection\",\n name: \"Add files to a collection\",\n description: \"Tool to add files to a collection by providing file URLs. Use when you need to add one or more files to an existing collection. URLs can be public or private (generated via the Files API).\",\n input: NeedleAddFilesToCollectionInput,\n output: NeedleAddFilesToCollectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,OAAO,EAAE,MAAM,EAAE,OAAO;EACxB,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;EAC9G,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,CAAC,SAAS,6EAA6E;CACrK,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;AAC9F,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,8CAA8C,EAAE,OAAO;CAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAKhF,MAAa,6BAA6B,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT8C,EAAE,OAAO,EACvD,QAAQ,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,kFAAkF,EAC1J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAOhB;AACV,CAAC"}
|
|
@@ -6,7 +6,7 @@ const NeedleAddFilesToLocalConnectorInput = zod.z.object({
|
|
|
6
6
|
url: zod.z.string().describe("URL where the file can be accessed"),
|
|
7
7
|
name: zod.z.string().describe("Name of the file"),
|
|
8
8
|
updated_at: zod.z.string().describe("Timestamp when the file was last updated in ISO 8601 format")
|
|
9
|
-
}).describe("Schema for a file to add to the local connector.")).describe("List of files to add to the local connector"),
|
|
9
|
+
}).passthrough().describe("Schema for a file to add to the local connector.")).describe("List of files to add to the local connector"),
|
|
10
10
|
connector_id: zod.z.string().describe("The unique identifier of the local connector to add files to")
|
|
11
11
|
}).describe("Request schema for adding files to a local connector.");
|
|
12
12
|
const NeedleAddFilesToLocalConnector_FileOutputSchema = zod.z.object({
|
|
@@ -20,8 +20,8 @@ const NeedleAddFilesToLocalConnector_FileOutputSchema = zod.z.object({
|
|
|
20
20
|
created_at: zod.z.string().describe("Timestamp when the file was created in the system").nullable().optional(),
|
|
21
21
|
updated_at: zod.z.string().describe("Timestamp when the file was last updated").nullable().optional(),
|
|
22
22
|
connector_id: zod.z.string().describe("ID of the connector the file was added to").nullable().optional()
|
|
23
|
-
}).describe("Schema for a file object returned by the API after adding to local connector.");
|
|
24
|
-
const NeedleAddFilesToLocalConnectorOutput = zod.z.object({ result: zod.z.array(NeedleAddFilesToLocalConnector_FileOutputSchema).describe("List of file objects that were added to the local connector") }).describe("Response schema after adding files to a local connector.");
|
|
23
|
+
}).passthrough().describe("Schema for a file object returned by the API after adding to local connector.");
|
|
24
|
+
const NeedleAddFilesToLocalConnectorOutput = zod.z.object({ result: zod.z.array(NeedleAddFilesToLocalConnector_FileOutputSchema).describe("List of file objects that were added to the local connector") }).passthrough().describe("Response schema after adding files to a local connector.");
|
|
25
25
|
const needleAddFilesToLocalConnector = require_action.action("NEEDLE_ADD_FILES_TO_LOCAL_CONNECTOR", {
|
|
26
26
|
slug: "needle-add-files-to-local-connector",
|
|
27
27
|
name: "Add Files to Local Connector",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-files-to-local-connector.cjs","names":["z","action"],"sources":["../../src/actions/add-files-to-local-connector.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleAddFilesToLocalConnectorInput
|
|
1
|
+
{"version":3,"file":"add-files-to-local-connector.cjs","names":["z","action"],"sources":["../../src/actions/add-files-to-local-connector.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleAddFilesToLocalConnectorInput = z.object({\n files: z.array(z.object({\n url: z.string().describe(\"URL where the file can be accessed\"),\n name: z.string().describe(\"Name of the file\"),\n updated_at: z.string().describe(\"Timestamp when the file was last updated in ISO 8601 format\"),\n}).passthrough().describe(\"Schema for a file to add to the local connector.\")).describe(\"List of files to add to the local connector\"),\n connector_id: z.string().describe(\"The unique identifier of the local connector to add files to\"),\n}).describe(\"Request schema for adding files to a local connector.\");\nconst NeedleAddFilesToLocalConnector_FileOutputSchema = z.object({\n id: z.string().describe(\"Unique file identifier\").nullable().optional(),\n url: z.string().describe(\"URL of the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"Size of the file in bytes\").nullable().optional(),\n type: z.string().describe(\"MIME type of the file\").nullable().optional(),\n user_id: z.string().describe(\"ID of the user who added the file\").nullable().optional(),\n md5_hash: z.string().describe(\"MD5 hash of the file\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the file was created in the system\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the file was last updated\").nullable().optional(),\n connector_id: z.string().describe(\"ID of the connector the file was added to\").nullable().optional(),\n}).passthrough().describe(\"Schema for a file object returned by the API after adding to local connector.\");\nexport const NeedleAddFilesToLocalConnectorOutput = z.object({\n result: z.array(NeedleAddFilesToLocalConnector_FileOutputSchema).describe(\"List of file objects that were added to the local connector\"),\n}).passthrough().describe(\"Response schema after adding files to a local connector.\");\n\nexport const needleAddFilesToLocalConnector = action(\"NEEDLE_ADD_FILES_TO_LOCAL_CONNECTOR\", {\n slug: \"needle-add-files-to-local-connector\",\n name: \"Add Files to Local Connector\",\n description: \"Tool to add files to a local connector by providing file metadata. Use when you need to add external files to a connector using their URLs.\",\n input: NeedleAddFilesToLocalConnectorInput,\n output: NeedleAddFilesToLocalConnectorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;EAC5C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,CAAC,SAAS,6CAA6C;CACnI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;AAClG,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,kDAAkDA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAA+E;AACzG,MAAa,uCAAuCA,IAAAA,EAAE,OAAO,EAC3D,QAAQA,IAAAA,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,6DAA6D,EACzI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAEpF,MAAa,iCAAiCC,eAAAA,OAAO,uCAAuC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,37 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/add-files-to-local-connector.d.ts
|
|
4
|
-
declare const NeedleAddFilesToLocalConnectorInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NeedleAddFilesToLocalConnectorInput: z.ZodObject<{
|
|
5
|
+
files: z.ZodArray<z.ZodObject<{
|
|
6
|
+
url: z.ZodString;
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
updated_at: z.ZodString;
|
|
9
|
+
}, z.core.$loose>>;
|
|
10
|
+
connector_id: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const NeedleAddFilesToLocalConnectorOutput: z.ZodObject<{
|
|
13
|
+
result: z.ZodArray<z.ZodObject<{
|
|
14
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
md5_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
connector_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
|
+
}, z.core.$loose>;
|
|
26
|
+
declare const needleAddFilesToLocalConnector: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
|
+
files: {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
url: string;
|
|
30
|
+
name: string;
|
|
31
|
+
updated_at: string;
|
|
32
|
+
}[];
|
|
33
|
+
connector_id: string;
|
|
34
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
35
|
//#endregion
|
|
8
36
|
export { needleAddFilesToLocalConnector };
|
|
9
37
|
//# sourceMappingURL=add-files-to-local-connector.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-files-to-local-connector.d.cts","names":[],"sources":["../../src/actions/add-files-to-local-connector.ts"],"mappings":";;;cAIa,mCAAA,
|
|
1
|
+
{"version":3,"file":"add-files-to-local-connector.d.cts","names":[],"sources":["../../src/actions/add-files-to-local-connector.ts"],"mappings":";;;cAIa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;cAoBnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAIpC,8BAAA,gCAA8B,wBAAA"}
|
|
@@ -1,9 +1,37 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/add-files-to-local-connector.d.ts
|
|
4
|
-
declare const NeedleAddFilesToLocalConnectorInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NeedleAddFilesToLocalConnectorInput: z.ZodObject<{
|
|
5
|
+
files: z.ZodArray<z.ZodObject<{
|
|
6
|
+
url: z.ZodString;
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
updated_at: z.ZodString;
|
|
9
|
+
}, z.core.$loose>>;
|
|
10
|
+
connector_id: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const NeedleAddFilesToLocalConnectorOutput: z.ZodObject<{
|
|
13
|
+
result: z.ZodArray<z.ZodObject<{
|
|
14
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
md5_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
connector_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
|
+
}, z.core.$loose>;
|
|
26
|
+
declare const needleAddFilesToLocalConnector: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
|
+
files: {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
url: string;
|
|
30
|
+
name: string;
|
|
31
|
+
updated_at: string;
|
|
32
|
+
}[];
|
|
33
|
+
connector_id: string;
|
|
34
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
35
|
//#endregion
|
|
8
36
|
export { needleAddFilesToLocalConnector };
|
|
9
37
|
//# sourceMappingURL=add-files-to-local-connector.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-files-to-local-connector.d.mts","names":[],"sources":["../../src/actions/add-files-to-local-connector.ts"],"mappings":";;;cAIa,mCAAA,
|
|
1
|
+
{"version":3,"file":"add-files-to-local-connector.d.mts","names":[],"sources":["../../src/actions/add-files-to-local-connector.ts"],"mappings":";;;cAIa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;cAoBnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAIpC,8BAAA,gCAA8B,wBAAA"}
|
|
@@ -6,7 +6,7 @@ const NeedleAddFilesToLocalConnectorInput = z.object({
|
|
|
6
6
|
url: z.string().describe("URL where the file can be accessed"),
|
|
7
7
|
name: z.string().describe("Name of the file"),
|
|
8
8
|
updated_at: z.string().describe("Timestamp when the file was last updated in ISO 8601 format")
|
|
9
|
-
}).describe("Schema for a file to add to the local connector.")).describe("List of files to add to the local connector"),
|
|
9
|
+
}).passthrough().describe("Schema for a file to add to the local connector.")).describe("List of files to add to the local connector"),
|
|
10
10
|
connector_id: z.string().describe("The unique identifier of the local connector to add files to")
|
|
11
11
|
}).describe("Request schema for adding files to a local connector.");
|
|
12
12
|
const NeedleAddFilesToLocalConnector_FileOutputSchema = z.object({
|
|
@@ -20,13 +20,13 @@ const NeedleAddFilesToLocalConnector_FileOutputSchema = z.object({
|
|
|
20
20
|
created_at: z.string().describe("Timestamp when the file was created in the system").nullable().optional(),
|
|
21
21
|
updated_at: z.string().describe("Timestamp when the file was last updated").nullable().optional(),
|
|
22
22
|
connector_id: z.string().describe("ID of the connector the file was added to").nullable().optional()
|
|
23
|
-
}).describe("Schema for a file object returned by the API after adding to local connector.");
|
|
23
|
+
}).passthrough().describe("Schema for a file object returned by the API after adding to local connector.");
|
|
24
24
|
const needleAddFilesToLocalConnector = action("NEEDLE_ADD_FILES_TO_LOCAL_CONNECTOR", {
|
|
25
25
|
slug: "needle-add-files-to-local-connector",
|
|
26
26
|
name: "Add Files to Local Connector",
|
|
27
27
|
description: "Tool to add files to a local connector by providing file metadata. Use when you need to add external files to a connector using their URLs.",
|
|
28
28
|
input: NeedleAddFilesToLocalConnectorInput,
|
|
29
|
-
output: z.object({ result: z.array(NeedleAddFilesToLocalConnector_FileOutputSchema).describe("List of file objects that were added to the local connector") }).describe("Response schema after adding files to a local connector.")
|
|
29
|
+
output: z.object({ result: z.array(NeedleAddFilesToLocalConnector_FileOutputSchema).describe("List of file objects that were added to the local connector") }).passthrough().describe("Response schema after adding files to a local connector.")
|
|
30
30
|
});
|
|
31
31
|
//#endregion
|
|
32
32
|
export { needleAddFilesToLocalConnector };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-files-to-local-connector.mjs","names":[],"sources":["../../src/actions/add-files-to-local-connector.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleAddFilesToLocalConnectorInput
|
|
1
|
+
{"version":3,"file":"add-files-to-local-connector.mjs","names":[],"sources":["../../src/actions/add-files-to-local-connector.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleAddFilesToLocalConnectorInput = z.object({\n files: z.array(z.object({\n url: z.string().describe(\"URL where the file can be accessed\"),\n name: z.string().describe(\"Name of the file\"),\n updated_at: z.string().describe(\"Timestamp when the file was last updated in ISO 8601 format\"),\n}).passthrough().describe(\"Schema for a file to add to the local connector.\")).describe(\"List of files to add to the local connector\"),\n connector_id: z.string().describe(\"The unique identifier of the local connector to add files to\"),\n}).describe(\"Request schema for adding files to a local connector.\");\nconst NeedleAddFilesToLocalConnector_FileOutputSchema = z.object({\n id: z.string().describe(\"Unique file identifier\").nullable().optional(),\n url: z.string().describe(\"URL of the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"Size of the file in bytes\").nullable().optional(),\n type: z.string().describe(\"MIME type of the file\").nullable().optional(),\n user_id: z.string().describe(\"ID of the user who added the file\").nullable().optional(),\n md5_hash: z.string().describe(\"MD5 hash of the file\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the file was created in the system\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the file was last updated\").nullable().optional(),\n connector_id: z.string().describe(\"ID of the connector the file was added to\").nullable().optional(),\n}).passthrough().describe(\"Schema for a file object returned by the API after adding to local connector.\");\nexport const NeedleAddFilesToLocalConnectorOutput = z.object({\n result: z.array(NeedleAddFilesToLocalConnector_FileOutputSchema).describe(\"List of file objects that were added to the local connector\"),\n}).passthrough().describe(\"Response schema after adding files to a local connector.\");\n\nexport const needleAddFilesToLocalConnector = action(\"NEEDLE_ADD_FILES_TO_LOCAL_CONNECTOR\", {\n slug: \"needle-add-files-to-local-connector\",\n name: \"Add Files to Local Connector\",\n description: \"Tool to add files to a local connector by providing file metadata. Use when you need to add external files to a connector using their URLs.\",\n input: NeedleAddFilesToLocalConnectorInput,\n output: NeedleAddFilesToLocalConnectorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsC,EAAE,OAAO;CAC1D,OAAO,EAAE,MAAM,EAAE,OAAO;EACxB,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;EAC5C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,CAAC,SAAS,6CAA6C;CACnI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;AAClG,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,kDAAkD,EAAE,OAAO;CAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAA+E;AAKzG,MAAa,iCAAiC,OAAO,uCAAuC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATkD,EAAE,OAAO,EAC3D,QAAQ,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,6DAA6D,EACzI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAOhB;AACV,CAAC"}
|
|
@@ -7,13 +7,13 @@ const NeedleCreateCollectionInput = zod.z.object({
|
|
|
7
7
|
description: zod.z.string().describe("Optional human-readable description of the collection.").optional()
|
|
8
8
|
}).describe("Input parameters for creating a new collection.");
|
|
9
9
|
const NeedleCreateCollectionOutput = zod.z.object({
|
|
10
|
-
id: zod.z.string().describe("Unique identifier for the collection."),
|
|
11
|
-
name: zod.z.string().describe("Name of the collection."),
|
|
10
|
+
id: zod.z.string().describe("Unique identifier for the collection.").nullable(),
|
|
11
|
+
name: zod.z.string().describe("Name of the collection.").nullable(),
|
|
12
12
|
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Metadata attached to the collection.").nullable().optional(),
|
|
13
13
|
created_at: zod.z.string().describe("Timestamp when the collection was created.").nullable().optional(),
|
|
14
14
|
updated_at: zod.z.string().describe("Timestamp when the collection was last updated.").nullable().optional(),
|
|
15
15
|
description: zod.z.string().describe("Description of the collection.").nullable().optional()
|
|
16
|
-
}).describe("Response schema for the created collection.");
|
|
16
|
+
}).passthrough().describe("Response schema for the created collection.");
|
|
17
17
|
const needleCreateCollection = require_action.action("NEEDLE_CREATE_COLLECTION", {
|
|
18
18
|
slug: "needle-create-collection",
|
|
19
19
|
name: "Create Collection",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-collection.cjs","names":["z","action"],"sources":["../../src/actions/create-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleCreateCollectionInput
|
|
1
|
+
{"version":3,"file":"create-collection.cjs","names":["z","action"],"sources":["../../src/actions/create-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleCreateCollectionInput = z.object({\n name: z.string().describe(\"Name of the collection. Must be unique within your account.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional arbitrary JSON metadata associated with the collection.\").optional(),\n description: z.string().describe(\"Optional human-readable description of the collection.\").optional(),\n}).describe(\"Input parameters for creating a new collection.\");\nexport const NeedleCreateCollectionOutput = z.object({\n id: z.string().describe(\"Unique identifier for the collection.\").nullable(),\n name: z.string().describe(\"Name of the collection.\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata attached to the collection.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the collection was created.\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the collection was last updated.\").nullable().optional(),\n description: z.string().describe(\"Description of the collection.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for the created collection.\");\n\nexport const needleCreateCollection = action(\"NEEDLE_CREATE_COLLECTION\", {\n slug: \"needle-create-collection\",\n name: \"Create Collection\",\n description: \"Tool to create a new collection. Use after confirming the collection name.\",\n input: NeedleCreateCollectionInput,\n output: NeedleCreateCollectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CACvF,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAClI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9D,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-collection.d.ts
|
|
4
|
-
declare const NeedleCreateCollectionInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NeedleCreateCollectionInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const NeedleCreateCollectionOutput: z.ZodObject<{
|
|
10
|
+
id: z.ZodNullable<z.ZodString>;
|
|
11
|
+
name: z.ZodNullable<z.ZodString>;
|
|
12
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
13
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
}, z.core.$loose>;
|
|
17
|
+
declare const needleCreateCollection: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
18
|
+
name: string;
|
|
19
|
+
metadata?: Record<string, unknown> | undefined;
|
|
20
|
+
description?: string | undefined;
|
|
21
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
22
|
//#endregion
|
|
8
23
|
export { needleCreateCollection };
|
|
9
24
|
//# sourceMappingURL=create-collection.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-collection.d.cts","names":[],"sources":["../../src/actions/create-collection.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"create-collection.d.cts","names":[],"sources":["../../src/actions/create-collection.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAK3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;cAS5B,sBAAA,gCAAsB,wBAAA;;aAMjC,MAAA"}
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-collection.d.ts
|
|
4
|
-
declare const NeedleCreateCollectionInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NeedleCreateCollectionInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const NeedleCreateCollectionOutput: z.ZodObject<{
|
|
10
|
+
id: z.ZodNullable<z.ZodString>;
|
|
11
|
+
name: z.ZodNullable<z.ZodString>;
|
|
12
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
13
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
}, z.core.$loose>;
|
|
17
|
+
declare const needleCreateCollection: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
18
|
+
name: string;
|
|
19
|
+
metadata?: Record<string, unknown> | undefined;
|
|
20
|
+
description?: string | undefined;
|
|
21
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
22
|
//#endregion
|
|
8
23
|
export { needleCreateCollection };
|
|
9
24
|
//# sourceMappingURL=create-collection.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-collection.d.mts","names":[],"sources":["../../src/actions/create-collection.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"create-collection.d.mts","names":[],"sources":["../../src/actions/create-collection.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAK3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;cAS5B,sBAAA,gCAAsB,wBAAA;;aAMjC,MAAA"}
|
|
@@ -10,13 +10,13 @@ const needleCreateCollection = action("NEEDLE_CREATE_COLLECTION", {
|
|
|
10
10
|
description: z.string().describe("Optional human-readable description of the collection.").optional()
|
|
11
11
|
}).describe("Input parameters for creating a new collection."),
|
|
12
12
|
output: z.object({
|
|
13
|
-
id: z.string().describe("Unique identifier for the collection."),
|
|
14
|
-
name: z.string().describe("Name of the collection."),
|
|
13
|
+
id: z.string().describe("Unique identifier for the collection.").nullable(),
|
|
14
|
+
name: z.string().describe("Name of the collection.").nullable(),
|
|
15
15
|
metadata: z.record(z.string(), z.unknown()).describe("Metadata attached to the collection.").nullable().optional(),
|
|
16
16
|
created_at: z.string().describe("Timestamp when the collection was created.").nullable().optional(),
|
|
17
17
|
updated_at: z.string().describe("Timestamp when the collection was last updated.").nullable().optional(),
|
|
18
18
|
description: z.string().describe("Description of the collection.").nullable().optional()
|
|
19
|
-
}).describe("Response schema for the created collection.")
|
|
19
|
+
}).passthrough().describe("Response schema for the created collection.")
|
|
20
20
|
});
|
|
21
21
|
//#endregion
|
|
22
22
|
export { needleCreateCollection };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-collection.mjs","names":[],"sources":["../../src/actions/create-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleCreateCollectionInput
|
|
1
|
+
{"version":3,"file":"create-collection.mjs","names":[],"sources":["../../src/actions/create-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleCreateCollectionInput = z.object({\n name: z.string().describe(\"Name of the collection. Must be unique within your account.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional arbitrary JSON metadata associated with the collection.\").optional(),\n description: z.string().describe(\"Optional human-readable description of the collection.\").optional(),\n}).describe(\"Input parameters for creating a new collection.\");\nexport const NeedleCreateCollectionOutput = z.object({\n id: z.string().describe(\"Unique identifier for the collection.\").nullable(),\n name: z.string().describe(\"Name of the collection.\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata attached to the collection.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the collection was created.\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the collection was last updated.\").nullable().optional(),\n description: z.string().describe(\"Description of the collection.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for the created collection.\");\n\nexport const needleCreateCollection = action(\"NEEDLE_CREATE_COLLECTION\", {\n slug: \"needle-create-collection\",\n name: \"Create Collection\",\n description: \"Tool to create a new collection. Use after confirming the collection name.\",\n input: NeedleCreateCollectionInput,\n output: NeedleCreateCollectionOutput,\n});\n"],"mappings":";;AAkBA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlByC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;EACvF,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EAClI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,SAAS,iDAcH;CACP,QAd0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EAC9D,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
|
|
@@ -8,31 +8,31 @@ const NeedleCreateLocalConnectorInput = zod.z.object({
|
|
|
8
8
|
folders: zod.z.array(zod.z.object({
|
|
9
9
|
recursive: zod.z.boolean().describe("Whether to recursively scan subfolders within this folder"),
|
|
10
10
|
folder_path: zod.z.string().describe("Full path to the folder on the local filesystem to monitor")
|
|
11
|
-
}).describe("Configuration for a folder to be monitored by the local connector.")).describe("List of folders to monitor for file indexing"),
|
|
11
|
+
}).passthrough().describe("Configuration for a folder to be monitored by the local connector.")).describe("List of folders to monitor for file indexing"),
|
|
12
12
|
device_name: zod.z.string().describe("Name of the device running the connector"),
|
|
13
13
|
device_model: zod.z.string().describe("Model identifier of the device"),
|
|
14
14
|
serial_number: zod.z.string().describe("Serial number or unique identifier for the device"),
|
|
15
15
|
collection_ids: zod.z.array(zod.z.string()).describe("List of collection IDs to associate with this local connector. Files from the monitored folders will be indexed into these collections.")
|
|
16
16
|
}).describe("Input parameters for creating a new local connector.");
|
|
17
17
|
const NeedleCreateLocalConnector_LocalConnectorFolderResponseSchema = zod.z.object({
|
|
18
|
-
recursive: zod.z.boolean().describe("Whether subfolders are recursively scanned"),
|
|
19
|
-
folder_path: zod.z.string().describe("Full path to the folder being monitored")
|
|
20
|
-
}).describe("Folder configuration in the response.");
|
|
18
|
+
recursive: zod.z.boolean().describe("Whether subfolders are recursively scanned").nullable(),
|
|
19
|
+
folder_path: zod.z.string().describe("Full path to the folder being monitored").nullable()
|
|
20
|
+
}).passthrough().describe("Folder configuration in the response.");
|
|
21
21
|
const NeedleCreateLocalConnector_LocalConnectorResultSchema = zod.z.object({
|
|
22
|
-
id: zod.z.string().describe("Unique identifier for the local connector"),
|
|
23
|
-
os: zod.z.string().describe("Operating system of the device"),
|
|
24
|
-
cpu: zod.z.string().describe("CPU model/architecture of the device"),
|
|
25
|
-
name: zod.z.string().describe("Name of the local connector"),
|
|
26
|
-
type: zod.z.string().describe("Type of connector (always 'local' for local connectors)"),
|
|
22
|
+
id: zod.z.string().describe("Unique identifier for the local connector").nullable(),
|
|
23
|
+
os: zod.z.string().describe("Operating system of the device").nullable(),
|
|
24
|
+
cpu: zod.z.string().describe("CPU model/architecture of the device").nullable(),
|
|
25
|
+
name: zod.z.string().describe("Name of the local connector").nullable(),
|
|
26
|
+
type: zod.z.string().describe("Type of connector (always 'local' for local connectors)").nullable(),
|
|
27
27
|
folders: zod.z.array(NeedleCreateLocalConnector_LocalConnectorFolderResponseSchema).describe("List of folders being monitored"),
|
|
28
28
|
synced_at: zod.z.string().describe("Timestamp when the connector was last synced (ISO 8601 format). Null if not yet synced.").nullable().optional(),
|
|
29
|
-
created_at: zod.z.string().describe("Timestamp when the connector was created (ISO 8601 format)"),
|
|
30
|
-
device_name: zod.z.string().describe("Name of the device"),
|
|
31
|
-
device_model: zod.z.string().describe("Model identifier of the device"),
|
|
32
|
-
serial_number: zod.z.string().describe("Serial number of the device"),
|
|
29
|
+
created_at: zod.z.string().describe("Timestamp when the connector was created (ISO 8601 format)").nullable(),
|
|
30
|
+
device_name: zod.z.string().describe("Name of the device").nullable(),
|
|
31
|
+
device_model: zod.z.string().describe("Model identifier of the device").nullable(),
|
|
32
|
+
serial_number: zod.z.string().describe("Serial number of the device").nullable(),
|
|
33
33
|
collection_ids: zod.z.array(zod.z.string()).describe("Collection IDs associated with this connector")
|
|
34
|
-
}).describe("Details of the created local connector.");
|
|
35
|
-
const NeedleCreateLocalConnectorOutput = zod.z.object({ result: NeedleCreateLocalConnector_LocalConnectorResultSchema.nullable() }).describe("Response schema for the created local connector.");
|
|
34
|
+
}).passthrough().describe("Details of the created local connector.");
|
|
35
|
+
const NeedleCreateLocalConnectorOutput = zod.z.object({ result: NeedleCreateLocalConnector_LocalConnectorResultSchema.nullable() }).passthrough().describe("Response schema for the created local connector.");
|
|
36
36
|
const needleCreateLocalConnector = require_action.action("NEEDLE_CREATE_LOCAL_CONNECTOR", {
|
|
37
37
|
slug: "needle-create-local-connector",
|
|
38
38
|
name: "Create Local Connector",
|