@keystrokehq/needle 0.1.0 → 0.1.2
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.map +1 -1
- package/dist/actions/add-files-to-collection.d.cts +28 -3
- package/dist/actions/add-files-to-collection.d.cts.map +1 -1
- package/dist/actions/add-files-to-collection.d.mts +28 -3
- package/dist/actions/add-files-to-collection.d.mts.map +1 -1
- package/dist/actions/add-files-to-collection.mjs.map +1 -1
- package/dist/actions/add-files-to-local-connector.cjs.map +1 -1
- package/dist/actions/add-files-to-local-connector.d.cts +30 -3
- package/dist/actions/add-files-to-local-connector.d.cts.map +1 -1
- package/dist/actions/add-files-to-local-connector.d.mts +30 -3
- package/dist/actions/add-files-to-local-connector.d.mts.map +1 -1
- package/dist/actions/add-files-to-local-connector.mjs.map +1 -1
- package/dist/actions/create-collection.cjs +2 -2
- 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 +2 -2
- package/dist/actions/create-collection.mjs.map +1 -1
- package/dist/actions/create-local-connector.cjs +11 -11
- package/dist/actions/create-local-connector.cjs.map +1 -1
- package/dist/actions/create-local-connector.d.cts +45 -3
- package/dist/actions/create-local-connector.d.cts.map +1 -1
- package/dist/actions/create-local-connector.d.mts +45 -3
- package/dist/actions/create-local-connector.d.mts.map +1 -1
- package/dist/actions/create-local-connector.mjs +11 -11
- package/dist/actions/create-local-connector.mjs.map +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.map +1 -1
- package/dist/actions/delete-files-from-local-connector.cjs +3 -3
- 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 +3 -3
- package/dist/actions/delete-files-from-local-connector.mjs.map +1 -1
- package/dist/actions/get-collection-stats.cjs +5 -5
- 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 +5 -5
- package/dist/actions/get-collection-stats.mjs.map +1 -1
- package/dist/actions/get-collection.cjs +4 -4
- 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 +4 -4
- package/dist/actions/get-collection.mjs.map +1 -1
- package/dist/actions/get-file-download-url.cjs +1 -1
- 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 +1 -1
- package/dist/actions/get-file-download-url.mjs.map +1 -1
- package/dist/actions/get-file-upload-url.cjs +2 -2
- 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 +2 -2
- package/dist/actions/get-file-upload-url.mjs.map +1 -1
- package/dist/actions/get-local-connector.cjs +3 -3
- 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 +3 -3
- package/dist/actions/get-local-connector.mjs.map +1 -1
- package/dist/actions/list-collection-files.cjs +5 -5
- 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 +5 -5
- package/dist/actions/list-collection-files.mjs.map +1 -1
- package/dist/actions/list-collections.cjs +4 -4
- 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 +4 -4
- package/dist/actions/list-collections.mjs.map +1 -1
- package/dist/actions/list-connectors.cjs +2 -2
- 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 +2 -2
- package/dist/actions/list-connectors.mjs.map +1 -1
- package/dist/actions/list-local-connectors.cjs +3 -3
- 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 +3 -3
- package/dist/actions/list-local-connectors.mjs.map +1 -1
- package/dist/actions/search-collection.cjs +1 -1
- 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 +1 -1
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-collection.mjs","names":[],"sources":["../../src/actions/get-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleGetCollectionInput
|
|
1
|
+
{"version":3,"file":"get-collection.mjs","names":[],"sources":["../../src/actions/get-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleGetCollectionInput = z.object({\n collection_id: z.string().describe(\"The unique identifier of the collection to retrieve.\"),\n}).describe(\"Request parameters for getting collection details.\");\nexport const NeedleGetCollectionOutput = z.object({\n id: z.string().describe(\"Unique identifier for the collection.\").nullable(),\n name: z.string().describe(\"Name of the collection.\").nullable(),\n created_at: z.string().describe(\"Timestamp when the collection was created, in ISO 8601 format.\").nullable(),\n search_queries: z.number().int().describe(\"Number of search queries performed on this collection.\").nullable(),\n}).describe(\"Response schema containing collection details.\");\n\nexport const needleGetCollection = action(\"NEEDLE_GET_COLLECTION\", {\n slug: \"needle-get-collection\",\n name: \"Get Collection\",\n description: \"Tool to retrieve details for a specific collection by its ID. Use when you need to get collection metadata including name, creation date, and search query count.\",\n input: NeedleGetCollectionInput,\n output: NeedleGetCollectionOutput,\n});\n"],"mappings":";;AAcA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdsC,EAAE,OAAO,EAC/C,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,EAC3F,CAAC,CAAC,CAAC,SAAS,oDAYH;CACP,QAZuC,EAAE,OAAO;EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EAC9D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EAC3G,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
|
|
@@ -4,7 +4,7 @@ let zod = require("zod");
|
|
|
4
4
|
const NeedleGetFileDownloadUrlInput = zod.z.object({ file_id: zod.z.string().describe("The unique identifier of the file to download") }).describe("Request parameters for getting a file download URL.");
|
|
5
5
|
const NeedleGetFileDownloadUrlOutput = zod.z.object({
|
|
6
6
|
expires_at: zod.z.string().describe("ISO-8601 timestamp indicating when the download URL expires").nullable().optional(),
|
|
7
|
-
download_url: zod.z.string().describe("Signed private URL for downloading the file. This URL has a limited validity window and should be used promptly.")
|
|
7
|
+
download_url: zod.z.string().describe("Signed private URL for downloading the file. This URL has a limited validity window and should be used promptly.").nullable()
|
|
8
8
|
}).describe("Response schema containing the signed download URL.");
|
|
9
9
|
const needleGetFileDownloadUrl = require_action.action("NEEDLE_GET_FILE_DOWNLOAD_URL", {
|
|
10
10
|
slug: "needle-get-file-download-url",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-file-download-url.cjs","names":["z","action"],"sources":["../../src/actions/get-file-download-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleGetFileDownloadUrlInput
|
|
1
|
+
{"version":3,"file":"get-file-download-url.cjs","names":["z","action"],"sources":["../../src/actions/get-file-download-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleGetFileDownloadUrlInput = z.object({\n file_id: z.string().describe(\"The unique identifier of the file to download\"),\n}).describe(\"Request parameters for getting a file download URL.\");\nexport const NeedleGetFileDownloadUrlOutput = z.object({\n expires_at: z.string().describe(\"ISO-8601 timestamp indicating when the download URL expires\").nullable().optional(),\n download_url: z.string().describe(\"Signed private URL for downloading the file. This URL has a limited validity window and should be used promptly.\").nullable(),\n}).describe(\"Response schema containing the signed download URL.\");\n\nexport const needleGetFileDownloadUrl = action(\"NEEDLE_GET_FILE_DOWNLOAD_URL\", {\n slug: \"needle-get-file-download-url\",\n name: \"Get File Download URL\",\n description: \"Tool to get a short-lived signed private download URL for a Needle file. Use when you need to retrieve file content but the public storage URL requires authentication. The returned URL should be used immediately as it expires quickly.\",\n input: NeedleGetFileDownloadUrlInput,\n output: NeedleGetFileDownloadUrlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,EAC9E,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;AACjK,CAAC,CAAC,CAAC,SAAS,qDAAqD;AAEjE,MAAa,2BAA2BC,eAAAA,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-file-download-url.d.ts
|
|
4
|
-
declare const NeedleGetFileDownloadUrlInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NeedleGetFileDownloadUrlInput: z.ZodObject<{
|
|
5
|
+
file_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const NeedleGetFileDownloadUrlOutput: z.ZodObject<{
|
|
8
|
+
expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
download_url: z.ZodNullable<z.ZodString>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const needleGetFileDownloadUrl: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
|
+
file_id: string;
|
|
13
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
14
|
//#endregion
|
|
8
15
|
export { needleGetFileDownloadUrl };
|
|
9
16
|
//# sourceMappingURL=get-file-download-url.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-file-download-url.d.cts","names":[],"sources":["../../src/actions/get-file-download-url.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"get-file-download-url.d.cts","names":[],"sources":["../../src/actions/get-file-download-url.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAG7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;cAK9B,wBAAA,gCAAwB,wBAAA"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-file-download-url.d.ts
|
|
4
|
-
declare const NeedleGetFileDownloadUrlInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NeedleGetFileDownloadUrlInput: z.ZodObject<{
|
|
5
|
+
file_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const NeedleGetFileDownloadUrlOutput: z.ZodObject<{
|
|
8
|
+
expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
download_url: z.ZodNullable<z.ZodString>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const needleGetFileDownloadUrl: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
|
+
file_id: string;
|
|
13
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
14
|
//#endregion
|
|
8
15
|
export { needleGetFileDownloadUrl };
|
|
9
16
|
//# sourceMappingURL=get-file-download-url.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-file-download-url.d.mts","names":[],"sources":["../../src/actions/get-file-download-url.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"get-file-download-url.d.mts","names":[],"sources":["../../src/actions/get-file-download-url.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAG7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;cAK9B,wBAAA,gCAAwB,wBAAA"}
|
|
@@ -7,7 +7,7 @@ const needleGetFileDownloadUrl = action("NEEDLE_GET_FILE_DOWNLOAD_URL", {
|
|
|
7
7
|
input: z.object({ file_id: z.string().describe("The unique identifier of the file to download") }).describe("Request parameters for getting a file download URL."),
|
|
8
8
|
output: z.object({
|
|
9
9
|
expires_at: z.string().describe("ISO-8601 timestamp indicating when the download URL expires").nullable().optional(),
|
|
10
|
-
download_url: z.string().describe("Signed private URL for downloading the file. This URL has a limited validity window and should be used promptly.")
|
|
10
|
+
download_url: z.string().describe("Signed private URL for downloading the file. This URL has a limited validity window and should be used promptly.").nullable()
|
|
11
11
|
}).describe("Response schema containing the signed download URL.")
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-file-download-url.mjs","names":[],"sources":["../../src/actions/get-file-download-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleGetFileDownloadUrlInput
|
|
1
|
+
{"version":3,"file":"get-file-download-url.mjs","names":[],"sources":["../../src/actions/get-file-download-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleGetFileDownloadUrlInput = z.object({\n file_id: z.string().describe(\"The unique identifier of the file to download\"),\n}).describe(\"Request parameters for getting a file download URL.\");\nexport const NeedleGetFileDownloadUrlOutput = z.object({\n expires_at: z.string().describe(\"ISO-8601 timestamp indicating when the download URL expires\").nullable().optional(),\n download_url: z.string().describe(\"Signed private URL for downloading the file. This URL has a limited validity window and should be used promptly.\").nullable(),\n}).describe(\"Response schema containing the signed download URL.\");\n\nexport const needleGetFileDownloadUrl = action(\"NEEDLE_GET_FILE_DOWNLOAD_URL\", {\n slug: \"needle-get-file-download-url\",\n name: \"Get File Download URL\",\n description: \"Tool to get a short-lived signed private download URL for a Needle file. Use when you need to retrieve file content but the public storage URL requires authentication. The returned URL should be used immediately as it expires quickly.\",\n input: NeedleGetFileDownloadUrlInput,\n output: NeedleGetFileDownloadUrlOutput,\n});\n"],"mappings":";;AAYA,MAAa,2BAA2B,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ2C,EAAE,OAAO,EACpD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,EAC9E,CAAC,CAAC,CAAC,SAAS,qDAUH;CACP,QAV4C,EAAE,OAAO;EACrD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CACjK,CAAC,CAAC,CAAC,SAAS,qDAOF;AACV,CAAC"}
|
|
@@ -3,8 +3,8 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/get-file-upload-url.ts
|
|
4
4
|
const NeedleGetFileUploadUrlInput = zod.z.object({ content_type: zod.z.array(zod.z.string()).describe("MIME types for files to upload (e.g., application/pdf, text/plain, image/jpeg). Multiple content types can be provided to generate multiple upload URLs at once.") }).describe("Request parameters for getting file upload URLs.");
|
|
5
5
|
const NeedleGetFileUploadUrl_UploadUrlItemSchema = zod.z.object({
|
|
6
|
-
url: zod.z.string().describe("Reference URL for the uploaded file after upload is complete"),
|
|
7
|
-
upload_url: zod.z.string().describe("Signed URL for uploading the file. Valid for a short time - upload immediately.")
|
|
6
|
+
url: zod.z.string().describe("Reference URL for the uploaded file after upload is complete").nullable(),
|
|
7
|
+
upload_url: zod.z.string().describe("Signed URL for uploading the file. Valid for a short time - upload immediately.").nullable()
|
|
8
8
|
}).describe("A single upload URL entry in the response.");
|
|
9
9
|
const NeedleGetFileUploadUrlOutput = zod.z.object({ result: zod.z.array(NeedleGetFileUploadUrl_UploadUrlItemSchema).describe("List of upload URL entries, one per requested content type").nullable().optional() }).describe("Response schema containing signed upload URLs.");
|
|
10
10
|
const needleGetFileUploadUrl = require_action.action("NEEDLE_GET_FILE_UPLOAD_URL", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-file-upload-url.cjs","names":["z","action"],"sources":["../../src/actions/get-file-upload-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleGetFileUploadUrlInput
|
|
1
|
+
{"version":3,"file":"get-file-upload-url.cjs","names":["z","action"],"sources":["../../src/actions/get-file-upload-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleGetFileUploadUrlInput = z.object({\n content_type: z.array(z.string()).describe(\"MIME types for files to upload (e.g., application/pdf, text/plain, image/jpeg). Multiple content types can be provided to generate multiple upload URLs at once.\"),\n}).describe(\"Request parameters for getting file upload URLs.\");\nconst NeedleGetFileUploadUrl_UploadUrlItemSchema = z.object({\n url: z.string().describe(\"Reference URL for the uploaded file after upload is complete\").nullable(),\n upload_url: z.string().describe(\"Signed URL for uploading the file. Valid for a short time - upload immediately.\").nullable(),\n}).describe(\"A single upload URL entry in the response.\");\nexport const NeedleGetFileUploadUrlOutput = z.object({\n result: z.array(NeedleGetFileUploadUrl_UploadUrlItemSchema).describe(\"List of upload URL entries, one per requested content type\").nullable().optional(),\n}).describe(\"Response schema containing signed upload URLs.\");\n\nexport const needleGetFileUploadUrl = action(\"NEEDLE_GET_FILE_UPLOAD_URL\", {\n slug: \"needle-get-file-upload-url\",\n name: \"Get File Upload URL\",\n description: \"Tool to get signed URLs for uploading local files to Needle. Use when you need to upload files to a collection. The upload URLs are valid for a short time, so upload files immediately after receiving the URLs. Multiple content types can be specified to generate multiple upload URLs in a single request.\",\n input: NeedleGetFileUploadUrlInput,\n output: NeedleGetFileUploadUrlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kKAAkK,EAC/M,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAClG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;AAC9H,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,QAAQA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzJ,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,yBAAyBC,eAAAA,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-file-upload-url.d.ts
|
|
4
|
-
declare const NeedleGetFileUploadUrlInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NeedleGetFileUploadUrlInput: z.ZodObject<{
|
|
5
|
+
content_type: z.ZodArray<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const NeedleGetFileUploadUrlOutput: z.ZodObject<{
|
|
8
|
+
result: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
9
|
+
url: z.ZodNullable<z.ZodString>;
|
|
10
|
+
upload_url: z.ZodNullable<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>>>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const needleGetFileUploadUrl: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
|
+
content_type: string[];
|
|
15
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
16
|
//#endregion
|
|
8
17
|
export { needleGetFileUploadUrl };
|
|
9
18
|
//# sourceMappingURL=get-file-upload-url.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-file-upload-url.d.cts","names":[],"sources":["../../src/actions/get-file-upload-url.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"get-file-upload-url.d.cts","names":[],"sources":["../../src/actions/get-file-upload-url.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAO3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-file-upload-url.d.ts
|
|
4
|
-
declare const NeedleGetFileUploadUrlInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NeedleGetFileUploadUrlInput: z.ZodObject<{
|
|
5
|
+
content_type: z.ZodArray<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const NeedleGetFileUploadUrlOutput: z.ZodObject<{
|
|
8
|
+
result: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
9
|
+
url: z.ZodNullable<z.ZodString>;
|
|
10
|
+
upload_url: z.ZodNullable<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>>>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const needleGetFileUploadUrl: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
|
+
content_type: string[];
|
|
15
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
16
|
//#endregion
|
|
8
17
|
export { needleGetFileUploadUrl };
|
|
9
18
|
//# sourceMappingURL=get-file-upload-url.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-file-upload-url.d.mts","names":[],"sources":["../../src/actions/get-file-upload-url.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"get-file-upload-url.d.mts","names":[],"sources":["../../src/actions/get-file-upload-url.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAO3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -3,8 +3,8 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/get-file-upload-url.ts
|
|
4
4
|
const NeedleGetFileUploadUrlInput = z.object({ content_type: z.array(z.string()).describe("MIME types for files to upload (e.g., application/pdf, text/plain, image/jpeg). Multiple content types can be provided to generate multiple upload URLs at once.") }).describe("Request parameters for getting file upload URLs.");
|
|
5
5
|
const NeedleGetFileUploadUrl_UploadUrlItemSchema = z.object({
|
|
6
|
-
url: z.string().describe("Reference URL for the uploaded file after upload is complete"),
|
|
7
|
-
upload_url: z.string().describe("Signed URL for uploading the file. Valid for a short time - upload immediately.")
|
|
6
|
+
url: z.string().describe("Reference URL for the uploaded file after upload is complete").nullable(),
|
|
7
|
+
upload_url: z.string().describe("Signed URL for uploading the file. Valid for a short time - upload immediately.").nullable()
|
|
8
8
|
}).describe("A single upload URL entry in the response.");
|
|
9
9
|
const needleGetFileUploadUrl = action("NEEDLE_GET_FILE_UPLOAD_URL", {
|
|
10
10
|
slug: "needle-get-file-upload-url",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-file-upload-url.mjs","names":[],"sources":["../../src/actions/get-file-upload-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleGetFileUploadUrlInput
|
|
1
|
+
{"version":3,"file":"get-file-upload-url.mjs","names":[],"sources":["../../src/actions/get-file-upload-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleGetFileUploadUrlInput = z.object({\n content_type: z.array(z.string()).describe(\"MIME types for files to upload (e.g., application/pdf, text/plain, image/jpeg). Multiple content types can be provided to generate multiple upload URLs at once.\"),\n}).describe(\"Request parameters for getting file upload URLs.\");\nconst NeedleGetFileUploadUrl_UploadUrlItemSchema = z.object({\n url: z.string().describe(\"Reference URL for the uploaded file after upload is complete\").nullable(),\n upload_url: z.string().describe(\"Signed URL for uploading the file. Valid for a short time - upload immediately.\").nullable(),\n}).describe(\"A single upload URL entry in the response.\");\nexport const NeedleGetFileUploadUrlOutput = z.object({\n result: z.array(NeedleGetFileUploadUrl_UploadUrlItemSchema).describe(\"List of upload URL entries, one per requested content type\").nullable().optional(),\n}).describe(\"Response schema containing signed upload URLs.\");\n\nexport const needleGetFileUploadUrl = action(\"NEEDLE_GET_FILE_UPLOAD_URL\", {\n slug: \"needle-get-file-upload-url\",\n name: \"Get File Upload URL\",\n description: \"Tool to get signed URLs for uploading local files to Needle. Use when you need to upload files to a collection. The upload URLs are valid for a short time, so upload files immediately after receiving the URLs. Multiple content types can be specified to generate multiple upload URLs in a single request.\",\n input: NeedleGetFileUploadUrlInput,\n output: NeedleGetFileUploadUrlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO,EAClD,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kKAAkK,EAC/M,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,6CAA6C,EAAE,OAAO;CAC1D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAClG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;AAC9H,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAKxD,MAAa,yBAAyB,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT0C,EAAE,OAAO,EACnD,QAAQ,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzJ,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
|
|
@@ -7,11 +7,11 @@ const NeedleGetLocalConnector_FolderSchema = zod.z.object({
|
|
|
7
7
|
path: zod.z.string().describe("File system path of the folder").nullable().optional()
|
|
8
8
|
}).describe("A folder associated with the local connector.");
|
|
9
9
|
const NeedleGetLocalConnector_LocalConnectorSchema = zod.z.object({
|
|
10
|
-
id: zod.z.string().describe("Unique identifier of the connector"),
|
|
10
|
+
id: zod.z.string().describe("Unique identifier of the connector").nullable(),
|
|
11
11
|
os: zod.z.string().describe("Operating system of the device").nullable().optional(),
|
|
12
12
|
cpu: zod.z.string().describe("CPU information of the device").nullable().optional(),
|
|
13
|
-
name: zod.z.string().describe("Name of the connector"),
|
|
14
|
-
type: zod.z.string().describe("Type of connector (always 'local' for local connectors)"),
|
|
13
|
+
name: zod.z.string().describe("Name of the connector").nullable(),
|
|
14
|
+
type: zod.z.string().describe("Type of connector (always 'local' for local connectors)").nullable(),
|
|
15
15
|
folders: zod.z.array(NeedleGetLocalConnector_FolderSchema).describe("List of folders being monitored by the connector").nullable().optional(),
|
|
16
16
|
synced_at: zod.z.string().describe("Timestamp when the connector last synced (ISO 8601 format, may be null)").nullable().optional(),
|
|
17
17
|
created_at: zod.z.string().describe("Timestamp when the connector was created (ISO 8601 format)").nullable().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-local-connector.cjs","names":["z","action"],"sources":["../../src/actions/get-local-connector.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleGetLocalConnectorInput
|
|
1
|
+
{"version":3,"file":"get-local-connector.cjs","names":["z","action"],"sources":["../../src/actions/get-local-connector.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleGetLocalConnectorInput = z.object({\n connector_id: z.string().describe(\"The unique identifier of the local connector.\"),\n}).describe(\"Request parameters for getting a local connector.\");\nconst NeedleGetLocalConnector_FolderSchema = z.object({\n name: z.string().describe(\"Name of the folder\").nullable().optional(),\n path: z.string().describe(\"File system path of the folder\").nullable().optional(),\n}).describe(\"A folder associated with the local connector.\");\nconst NeedleGetLocalConnector_LocalConnectorSchema = z.object({\n id: z.string().describe(\"Unique identifier of the connector\").nullable(),\n os: z.string().describe(\"Operating system of the device\").nullable().optional(),\n cpu: z.string().describe(\"CPU information of the device\").nullable().optional(),\n name: z.string().describe(\"Name of the connector\").nullable(),\n type: z.string().describe(\"Type of connector (always 'local' for local connectors)\").nullable(),\n folders: z.array(NeedleGetLocalConnector_FolderSchema).describe(\"List of folders being monitored by the connector\").nullable().optional(),\n synced_at: z.string().describe(\"Timestamp when the connector last synced (ISO 8601 format, may be null)\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the connector was created (ISO 8601 format)\").nullable().optional(),\n device_name: z.string().describe(\"Name of the device running the connector\").nullable().optional(),\n device_model: z.string().describe(\"Model of the device\").nullable().optional(),\n serial_number: z.string().describe(\"Serial number of the device\").nullable().optional(),\n collection_ids: z.array(z.string()).describe(\"List of collection IDs associated with this connector\").nullable().optional(),\n}).describe(\"Local connector details.\");\nexport const NeedleGetLocalConnectorOutput = z.object({\n result: NeedleGetLocalConnector_LocalConnectorSchema.nullable(),\n}).describe(\"Response schema for getting a local connector.\");\n\nexport const needleGetLocalConnector = action(\"NEEDLE_GET_LOCAL_CONNECTOR\", {\n slug: \"needle-get-local-connector\",\n name: \"Get local connector\",\n description: \"Tool to retrieve details of a local connector by its ID. Use when you need information about a specific local connector's configuration, device details, and associated folders.\",\n input: NeedleGetLocalConnectorInput,\n output: NeedleGetLocalConnectorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,EACnF,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9F,SAASA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,SAAS,0BAA0B;AACtC,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,QAAQ,6CAA6C,SAAS,EAChE,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,31 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-local-connector.d.ts
|
|
4
|
-
declare const NeedleGetLocalConnectorInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NeedleGetLocalConnectorInput: z.ZodObject<{
|
|
5
|
+
connector_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const NeedleGetLocalConnectorOutput: z.ZodObject<{
|
|
8
|
+
result: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
id: z.ZodNullable<z.ZodString>;
|
|
10
|
+
os: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
cpu: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
name: z.ZodNullable<z.ZodString>;
|
|
13
|
+
type: z.ZodNullable<z.ZodString>;
|
|
14
|
+
folders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
15
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, z.core.$strip>>>>;
|
|
18
|
+
synced_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
device_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
device_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
serial_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
collection_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
declare const needleGetLocalConnector: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
|
+
connector_id: string;
|
|
28
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
29
|
//#endregion
|
|
8
30
|
export { needleGetLocalConnector };
|
|
9
31
|
//# sourceMappingURL=get-local-connector.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-local-connector.d.cts","names":[],"sources":["../../src/actions/get-local-connector.ts"],"mappings":";;;cAIa,4BAAA,
|
|
1
|
+
{"version":3,"file":"get-local-connector.d.cts","names":[],"sources":["../../src/actions/get-local-connector.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAqB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA"}
|
|
@@ -1,9 +1,31 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-local-connector.d.ts
|
|
4
|
-
declare const NeedleGetLocalConnectorInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NeedleGetLocalConnectorInput: z.ZodObject<{
|
|
5
|
+
connector_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const NeedleGetLocalConnectorOutput: z.ZodObject<{
|
|
8
|
+
result: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
id: z.ZodNullable<z.ZodString>;
|
|
10
|
+
os: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
cpu: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
name: z.ZodNullable<z.ZodString>;
|
|
13
|
+
type: z.ZodNullable<z.ZodString>;
|
|
14
|
+
folders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
15
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, z.core.$strip>>>>;
|
|
18
|
+
synced_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
device_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
device_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
serial_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
collection_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
declare const needleGetLocalConnector: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
|
+
connector_id: string;
|
|
28
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
29
|
//#endregion
|
|
8
30
|
export { needleGetLocalConnector };
|
|
9
31
|
//# sourceMappingURL=get-local-connector.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-local-connector.d.mts","names":[],"sources":["../../src/actions/get-local-connector.ts"],"mappings":";;;cAIa,4BAAA,
|
|
1
|
+
{"version":3,"file":"get-local-connector.d.mts","names":[],"sources":["../../src/actions/get-local-connector.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAqB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA"}
|
|
@@ -7,11 +7,11 @@ const NeedleGetLocalConnector_FolderSchema = z.object({
|
|
|
7
7
|
path: z.string().describe("File system path of the folder").nullable().optional()
|
|
8
8
|
}).describe("A folder associated with the local connector.");
|
|
9
9
|
const NeedleGetLocalConnector_LocalConnectorSchema = z.object({
|
|
10
|
-
id: z.string().describe("Unique identifier of the connector"),
|
|
10
|
+
id: z.string().describe("Unique identifier of the connector").nullable(),
|
|
11
11
|
os: z.string().describe("Operating system of the device").nullable().optional(),
|
|
12
12
|
cpu: z.string().describe("CPU information of the device").nullable().optional(),
|
|
13
|
-
name: z.string().describe("Name of the connector"),
|
|
14
|
-
type: z.string().describe("Type of connector (always 'local' for local connectors)"),
|
|
13
|
+
name: z.string().describe("Name of the connector").nullable(),
|
|
14
|
+
type: z.string().describe("Type of connector (always 'local' for local connectors)").nullable(),
|
|
15
15
|
folders: z.array(NeedleGetLocalConnector_FolderSchema).describe("List of folders being monitored by the connector").nullable().optional(),
|
|
16
16
|
synced_at: z.string().describe("Timestamp when the connector last synced (ISO 8601 format, may be null)").nullable().optional(),
|
|
17
17
|
created_at: z.string().describe("Timestamp when the connector was created (ISO 8601 format)").nullable().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-local-connector.mjs","names":[],"sources":["../../src/actions/get-local-connector.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleGetLocalConnectorInput
|
|
1
|
+
{"version":3,"file":"get-local-connector.mjs","names":[],"sources":["../../src/actions/get-local-connector.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleGetLocalConnectorInput = z.object({\n connector_id: z.string().describe(\"The unique identifier of the local connector.\"),\n}).describe(\"Request parameters for getting a local connector.\");\nconst NeedleGetLocalConnector_FolderSchema = z.object({\n name: z.string().describe(\"Name of the folder\").nullable().optional(),\n path: z.string().describe(\"File system path of the folder\").nullable().optional(),\n}).describe(\"A folder associated with the local connector.\");\nconst NeedleGetLocalConnector_LocalConnectorSchema = z.object({\n id: z.string().describe(\"Unique identifier of the connector\").nullable(),\n os: z.string().describe(\"Operating system of the device\").nullable().optional(),\n cpu: z.string().describe(\"CPU information of the device\").nullable().optional(),\n name: z.string().describe(\"Name of the connector\").nullable(),\n type: z.string().describe(\"Type of connector (always 'local' for local connectors)\").nullable(),\n folders: z.array(NeedleGetLocalConnector_FolderSchema).describe(\"List of folders being monitored by the connector\").nullable().optional(),\n synced_at: z.string().describe(\"Timestamp when the connector last synced (ISO 8601 format, may be null)\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the connector was created (ISO 8601 format)\").nullable().optional(),\n device_name: z.string().describe(\"Name of the device running the connector\").nullable().optional(),\n device_model: z.string().describe(\"Model of the device\").nullable().optional(),\n serial_number: z.string().describe(\"Serial number of the device\").nullable().optional(),\n collection_ids: z.array(z.string()).describe(\"List of collection IDs associated with this connector\").nullable().optional(),\n}).describe(\"Local connector details.\");\nexport const NeedleGetLocalConnectorOutput = z.object({\n result: NeedleGetLocalConnector_LocalConnectorSchema.nullable(),\n}).describe(\"Response schema for getting a local connector.\");\n\nexport const needleGetLocalConnector = action(\"NEEDLE_GET_LOCAL_CONNECTOR\", {\n slug: \"needle-get-local-connector\",\n name: \"Get local connector\",\n description: \"Tool to retrieve details of a local connector by its ID. Use when you need information about a specific local connector's configuration, device details, and associated folders.\",\n input: NeedleGetLocalConnectorInput,\n output: NeedleGetLocalConnectorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO,EACnD,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,EACnF,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,uCAAuC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,+CAA+C,EAAE,OAAO;CAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9F,SAAS,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,SAAS,0BAA0B;AAKtC,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT2C,EAAE,OAAO,EACpD,QAAQ,6CAA6C,SAAS,EAChE,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
|
|
@@ -7,24 +7,24 @@ const NeedleListCollectionFilesInput = zod.z.object({
|
|
|
7
7
|
collection_id: zod.z.string().describe("Unique identifier of the collection Multiple collections can share similar names; verify the correct collection_id before operating on returned files.")
|
|
8
8
|
}).describe("Request model for listing files in a specific collection.");
|
|
9
9
|
const NeedleListCollectionFiles_FileModelSchema = zod.z.object({
|
|
10
|
-
id: zod.z.string().describe("Unique file identifier"),
|
|
10
|
+
id: zod.z.string().describe("Unique file identifier").nullable(),
|
|
11
11
|
url: zod.z.string().describe("URL of the file").nullable().optional(),
|
|
12
|
-
name: zod.z.string().describe("Name of the file"),
|
|
12
|
+
name: zod.z.string().describe("Name of the file").nullable(),
|
|
13
13
|
size: zod.z.number().int().describe("Size of the file in bytes").nullable().optional(),
|
|
14
14
|
type: zod.z.string().describe("MIME type of the file").nullable().optional(),
|
|
15
15
|
error: zod.z.string().describe("Error message if file processing failed").nullable().optional(),
|
|
16
16
|
labels: zod.z.array(zod.z.string()).describe("Labels associated with the file").nullable().optional(),
|
|
17
|
-
status: zod.z.string().describe("Current status of the file"),
|
|
17
|
+
status: zod.z.string().describe("Current status of the file").nullable(),
|
|
18
18
|
user_id: zod.z.string().describe("ID of the user who uploaded the file").nullable().optional(),
|
|
19
19
|
md5_hash: zod.z.string().describe("MD5 hash of the file").nullable().optional(),
|
|
20
20
|
connector: zod.z.unknown().describe("Connector details").nullable().optional(),
|
|
21
|
-
created_at: zod.z.string().describe("Creation timestamp in ISO 8601 format"),
|
|
21
|
+
created_at: zod.z.string().describe("Creation timestamp in ISO 8601 format").nullable(),
|
|
22
22
|
connector_id: zod.z.string().describe("ID of the connector used to upload the file").nullable().optional()
|
|
23
23
|
}).describe("Schema for a single file object returned by the API.");
|
|
24
24
|
const NeedleListCollectionFilesOutput = zod.z.object({
|
|
25
25
|
files: zod.z.array(NeedleListCollectionFiles_FileModelSchema).describe("List of file objects"),
|
|
26
26
|
limit: zod.z.number().int().describe("Page limit used (may not be returned by API)").nullable().optional(),
|
|
27
|
-
total: zod.z.number().int().describe("Total count of files in the collection"),
|
|
27
|
+
total: zod.z.number().int().describe("Total count of files in the collection").nullable(),
|
|
28
28
|
offset: zod.z.number().int().describe("Offset used (may not be returned by API)").nullable().optional()
|
|
29
29
|
}).describe("Response model for listing files in a collection.");
|
|
30
30
|
const needleListCollectionFiles = require_action.action("NEEDLE_LIST_COLLECTION_FILES", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-collection-files.cjs","names":["z","action"],"sources":["../../src/actions/list-collection-files.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleListCollectionFilesInput
|
|
1
|
+
{"version":3,"file":"list-collection-files.cjs","names":["z","action"],"sources":["../../src/actions/list-collection-files.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleListCollectionFilesInput = z.object({\n limit: z.number().int().describe(\"Number of files to return per page, must be >=1\").optional(),\n offset: z.number().int().describe(\"Number of items to skip for pagination, must be >=0\").optional(),\n collection_id: z.string().describe(\"Unique identifier of the collection Multiple collections can share similar names; verify the correct collection_id before operating on returned files.\"),\n}).describe(\"Request model for listing files in a specific collection.\");\nconst NeedleListCollectionFiles_FileModelSchema = z.object({\n id: z.string().describe(\"Unique file identifier\").nullable(),\n url: z.string().describe(\"URL of the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable(),\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 labels: z.array(z.string()).describe(\"Labels associated with the file\").nullable().optional(),\n status: z.string().describe(\"Current status of the file\").nullable(),\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 connector: z.unknown().describe(\"Connector details\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable(),\n connector_id: z.string().describe(\"ID of the connector used to upload the file\").nullable().optional(),\n}).describe(\"Schema for a single file object returned by the API.\");\nexport const NeedleListCollectionFilesOutput = z.object({\n files: z.array(NeedleListCollectionFiles_FileModelSchema).describe(\"List of file objects\"),\n limit: z.number().int().describe(\"Page limit used (may not be returned by API)\").nullable().optional(),\n total: z.number().int().describe(\"Total count of files in the collection\").nullable(),\n offset: z.number().int().describe(\"Offset used (may not be returned by API)\").nullable().optional(),\n}).describe(\"Response model for listing files in a collection.\");\n\nexport const needleListCollectionFiles = action(\"NEEDLE_LIST_COLLECTION_FILES\", {\n slug: \"needle-list-collection-files\",\n name: \"List Collection Files\",\n description: \"Tool to list all files within a specific collection by its ID. Returns file metadata (including file URLs) only — not document text content; fetch file URLs separately to access content. Use when you have a collection ID and need to retrieve its files. Supports pagination.\",\n input: NeedleListCollectionFilesInput,\n output: NeedleListCollectionFilesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC7F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAClG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ;AAC7L,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC3D,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;CACvD,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,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACnE,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,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAClF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,sBAAsB;CACzF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACpF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,36 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-collection-files.d.ts
|
|
4
|
-
declare const NeedleListCollectionFilesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NeedleListCollectionFilesInput: z.ZodObject<{
|
|
5
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
collection_id: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const NeedleListCollectionFilesOutput: z.ZodObject<{
|
|
10
|
+
files: z.ZodArray<z.ZodObject<{
|
|
11
|
+
id: z.ZodNullable<z.ZodString>;
|
|
12
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
name: z.ZodNullable<z.ZodString>;
|
|
14
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
18
|
+
status: z.ZodNullable<z.ZodString>;
|
|
19
|
+
user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
md5_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
connector: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
22
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
23
|
+
connector_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
27
|
+
offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
declare const needleListCollectionFiles: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
30
|
+
collection_id: string;
|
|
31
|
+
limit?: number | undefined;
|
|
32
|
+
offset?: number | undefined;
|
|
33
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
34
|
//#endregion
|
|
8
35
|
export { needleListCollectionFiles };
|
|
9
36
|
//# sourceMappingURL=list-collection-files.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-collection-files.d.cts","names":[],"sources":["../../src/actions/list-collection-files.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"list-collection-files.d.cts","names":[],"sources":["../../src/actions/list-collection-files.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAoB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAO/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -1,9 +1,36 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-collection-files.d.ts
|
|
4
|
-
declare const NeedleListCollectionFilesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NeedleListCollectionFilesInput: z.ZodObject<{
|
|
5
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
collection_id: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const NeedleListCollectionFilesOutput: z.ZodObject<{
|
|
10
|
+
files: z.ZodArray<z.ZodObject<{
|
|
11
|
+
id: z.ZodNullable<z.ZodString>;
|
|
12
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
name: z.ZodNullable<z.ZodString>;
|
|
14
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
18
|
+
status: z.ZodNullable<z.ZodString>;
|
|
19
|
+
user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
md5_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
connector: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
22
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
23
|
+
connector_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
27
|
+
offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
declare const needleListCollectionFiles: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
30
|
+
collection_id: string;
|
|
31
|
+
limit?: number | undefined;
|
|
32
|
+
offset?: number | undefined;
|
|
33
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
34
|
//#endregion
|
|
8
35
|
export { needleListCollectionFiles };
|
|
9
36
|
//# sourceMappingURL=list-collection-files.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-collection-files.d.mts","names":[],"sources":["../../src/actions/list-collection-files.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"list-collection-files.d.mts","names":[],"sources":["../../src/actions/list-collection-files.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAoB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAO/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -7,18 +7,18 @@ const NeedleListCollectionFilesInput = z.object({
|
|
|
7
7
|
collection_id: z.string().describe("Unique identifier of the collection Multiple collections can share similar names; verify the correct collection_id before operating on returned files.")
|
|
8
8
|
}).describe("Request model for listing files in a specific collection.");
|
|
9
9
|
const NeedleListCollectionFiles_FileModelSchema = z.object({
|
|
10
|
-
id: z.string().describe("Unique file identifier"),
|
|
10
|
+
id: z.string().describe("Unique file identifier").nullable(),
|
|
11
11
|
url: z.string().describe("URL of the file").nullable().optional(),
|
|
12
|
-
name: z.string().describe("Name of the file"),
|
|
12
|
+
name: z.string().describe("Name of the file").nullable(),
|
|
13
13
|
size: z.number().int().describe("Size of the file in bytes").nullable().optional(),
|
|
14
14
|
type: z.string().describe("MIME type of the file").nullable().optional(),
|
|
15
15
|
error: z.string().describe("Error message if file processing failed").nullable().optional(),
|
|
16
16
|
labels: z.array(z.string()).describe("Labels associated with the file").nullable().optional(),
|
|
17
|
-
status: z.string().describe("Current status of the file"),
|
|
17
|
+
status: z.string().describe("Current status of the file").nullable(),
|
|
18
18
|
user_id: z.string().describe("ID of the user who uploaded the file").nullable().optional(),
|
|
19
19
|
md5_hash: z.string().describe("MD5 hash of the file").nullable().optional(),
|
|
20
20
|
connector: z.unknown().describe("Connector details").nullable().optional(),
|
|
21
|
-
created_at: z.string().describe("Creation timestamp in ISO 8601 format"),
|
|
21
|
+
created_at: z.string().describe("Creation timestamp in ISO 8601 format").nullable(),
|
|
22
22
|
connector_id: z.string().describe("ID of the connector used to upload the file").nullable().optional()
|
|
23
23
|
}).describe("Schema for a single file object returned by the API.");
|
|
24
24
|
const needleListCollectionFiles = action("NEEDLE_LIST_COLLECTION_FILES", {
|
|
@@ -29,7 +29,7 @@ const needleListCollectionFiles = action("NEEDLE_LIST_COLLECTION_FILES", {
|
|
|
29
29
|
output: z.object({
|
|
30
30
|
files: z.array(NeedleListCollectionFiles_FileModelSchema).describe("List of file objects"),
|
|
31
31
|
limit: z.number().int().describe("Page limit used (may not be returned by API)").nullable().optional(),
|
|
32
|
-
total: z.number().int().describe("Total count of files in the collection"),
|
|
32
|
+
total: z.number().int().describe("Total count of files in the collection").nullable(),
|
|
33
33
|
offset: z.number().int().describe("Offset used (may not be returned by API)").nullable().optional()
|
|
34
34
|
}).describe("Response model for listing files in a collection.")
|
|
35
35
|
});
|