@keystrokehq/needle 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-files-to-collection.cjs +1 -0
- package/dist/actions/add-files-to-collection.cjs.map +1 -1
- package/dist/actions/add-files-to-collection.d.cts +3 -8
- package/dist/actions/add-files-to-collection.d.cts.map +1 -1
- package/dist/actions/add-files-to-collection.d.mts +3 -8
- package/dist/actions/add-files-to-collection.d.mts.map +1 -1
- package/dist/actions/add-files-to-collection.mjs +1 -0
- package/dist/actions/add-files-to-collection.mjs.map +1 -1
- package/dist/actions/add-files-to-local-connector.cjs +1 -0
- package/dist/actions/add-files-to-local-connector.cjs.map +1 -1
- package/dist/actions/add-files-to-local-connector.d.cts +3 -9
- package/dist/actions/add-files-to-local-connector.d.cts.map +1 -1
- package/dist/actions/add-files-to-local-connector.d.mts +3 -9
- package/dist/actions/add-files-to-local-connector.d.mts.map +1 -1
- package/dist/actions/add-files-to-local-connector.mjs +1 -0
- package/dist/actions/add-files-to-local-connector.mjs.map +1 -1
- package/dist/actions/create-collection.cjs +1 -0
- package/dist/actions/create-collection.cjs.map +1 -1
- package/dist/actions/create-collection.d.cts +3 -5
- package/dist/actions/create-collection.d.cts.map +1 -1
- package/dist/actions/create-collection.d.mts +3 -5
- package/dist/actions/create-collection.d.mts.map +1 -1
- package/dist/actions/create-collection.mjs +1 -0
- package/dist/actions/create-collection.mjs.map +1 -1
- package/dist/actions/create-local-connector.cjs +1 -0
- package/dist/actions/create-local-connector.cjs.map +1 -1
- package/dist/actions/create-local-connector.d.cts +3 -14
- package/dist/actions/create-local-connector.d.cts.map +1 -1
- package/dist/actions/create-local-connector.d.mts +3 -14
- package/dist/actions/create-local-connector.d.mts.map +1 -1
- package/dist/actions/create-local-connector.mjs +1 -0
- package/dist/actions/create-local-connector.mjs.map +1 -1
- package/dist/actions/delete-files-from-collection.cjs +1 -0
- package/dist/actions/delete-files-from-collection.cjs.map +1 -1
- package/dist/actions/delete-files-from-collection.d.cts +3 -4
- package/dist/actions/delete-files-from-collection.d.cts.map +1 -1
- package/dist/actions/delete-files-from-collection.d.mts +3 -4
- package/dist/actions/delete-files-from-collection.d.mts.map +1 -1
- package/dist/actions/delete-files-from-collection.mjs +1 -0
- package/dist/actions/delete-files-from-collection.mjs.map +1 -1
- package/dist/actions/delete-files-from-local-connector.cjs +1 -0
- package/dist/actions/delete-files-from-local-connector.cjs.map +1 -1
- package/dist/actions/delete-files-from-local-connector.d.cts +3 -6
- package/dist/actions/delete-files-from-local-connector.d.cts.map +1 -1
- package/dist/actions/delete-files-from-local-connector.d.mts +3 -6
- package/dist/actions/delete-files-from-local-connector.d.mts.map +1 -1
- package/dist/actions/delete-files-from-local-connector.mjs +1 -0
- package/dist/actions/delete-files-from-local-connector.mjs.map +1 -1
- package/dist/actions/get-collection-stats.cjs +1 -0
- package/dist/actions/get-collection-stats.cjs.map +1 -1
- package/dist/actions/get-collection-stats.d.cts +3 -3
- package/dist/actions/get-collection-stats.d.cts.map +1 -1
- package/dist/actions/get-collection-stats.d.mts +3 -3
- package/dist/actions/get-collection-stats.d.mts.map +1 -1
- package/dist/actions/get-collection-stats.mjs +1 -0
- package/dist/actions/get-collection-stats.mjs.map +1 -1
- package/dist/actions/get-collection.cjs +1 -0
- package/dist/actions/get-collection.cjs.map +1 -1
- package/dist/actions/get-collection.d.cts +3 -3
- package/dist/actions/get-collection.d.cts.map +1 -1
- package/dist/actions/get-collection.d.mts +3 -3
- package/dist/actions/get-collection.d.mts.map +1 -1
- package/dist/actions/get-collection.mjs +1 -0
- package/dist/actions/get-collection.mjs.map +1 -1
- package/dist/actions/get-file-download-url.cjs +1 -0
- package/dist/actions/get-file-download-url.cjs.map +1 -1
- package/dist/actions/get-file-download-url.d.cts +3 -3
- package/dist/actions/get-file-download-url.d.cts.map +1 -1
- package/dist/actions/get-file-download-url.d.mts +3 -3
- package/dist/actions/get-file-download-url.d.mts.map +1 -1
- package/dist/actions/get-file-download-url.mjs +1 -0
- package/dist/actions/get-file-download-url.mjs.map +1 -1
- package/dist/actions/get-file-upload-url.cjs +1 -0
- package/dist/actions/get-file-upload-url.cjs.map +1 -1
- package/dist/actions/get-file-upload-url.d.cts +3 -3
- package/dist/actions/get-file-upload-url.d.cts.map +1 -1
- package/dist/actions/get-file-upload-url.d.mts +3 -3
- package/dist/actions/get-file-upload-url.d.mts.map +1 -1
- package/dist/actions/get-file-upload-url.mjs +1 -0
- package/dist/actions/get-file-upload-url.mjs.map +1 -1
- package/dist/actions/get-local-connector.cjs +1 -0
- package/dist/actions/get-local-connector.cjs.map +1 -1
- package/dist/actions/get-local-connector.d.cts +3 -3
- package/dist/actions/get-local-connector.d.cts.map +1 -1
- package/dist/actions/get-local-connector.d.mts +3 -3
- package/dist/actions/get-local-connector.d.mts.map +1 -1
- package/dist/actions/get-local-connector.mjs +1 -0
- package/dist/actions/get-local-connector.mjs.map +1 -1
- package/dist/actions/list-collection-files.cjs +1 -0
- package/dist/actions/list-collection-files.cjs.map +1 -1
- package/dist/actions/list-collection-files.d.cts +3 -5
- package/dist/actions/list-collection-files.d.cts.map +1 -1
- package/dist/actions/list-collection-files.d.mts +3 -5
- package/dist/actions/list-collection-files.d.mts.map +1 -1
- package/dist/actions/list-collection-files.mjs +1 -0
- package/dist/actions/list-collection-files.mjs.map +1 -1
- package/dist/actions/list-collections.cjs +1 -0
- package/dist/actions/list-collections.cjs.map +1 -1
- package/dist/actions/list-collections.d.cts +3 -4
- package/dist/actions/list-collections.d.cts.map +1 -1
- package/dist/actions/list-collections.d.mts +3 -4
- package/dist/actions/list-collections.d.mts.map +1 -1
- package/dist/actions/list-collections.mjs +1 -0
- package/dist/actions/list-collections.mjs.map +1 -1
- package/dist/actions/list-connectors.cjs +1 -0
- package/dist/actions/list-connectors.cjs.map +1 -1
- package/dist/actions/list-connectors.d.cts +3 -1
- package/dist/actions/list-connectors.d.cts.map +1 -1
- package/dist/actions/list-connectors.d.mts +3 -1
- package/dist/actions/list-connectors.d.mts.map +1 -1
- package/dist/actions/list-connectors.mjs +1 -0
- package/dist/actions/list-connectors.mjs.map +1 -1
- package/dist/actions/list-local-connectors.cjs +1 -0
- package/dist/actions/list-local-connectors.cjs.map +1 -1
- package/dist/actions/list-local-connectors.d.cts +3 -1
- package/dist/actions/list-local-connectors.d.cts.map +1 -1
- package/dist/actions/list-local-connectors.d.mts +3 -1
- package/dist/actions/list-local-connectors.d.mts.map +1 -1
- package/dist/actions/list-local-connectors.mjs +1 -0
- package/dist/actions/list-local-connectors.mjs.map +1 -1
- package/dist/actions/search-collection.cjs +1 -0
- package/dist/actions/search-collection.cjs.map +1 -1
- package/dist/actions/search-collection.d.cts +3 -8
- package/dist/actions/search-collection.d.cts.map +1 -1
- package/dist/actions/search-collection.d.mts +3 -8
- package/dist/actions/search-collection.d.mts.map +1 -1
- package/dist/actions/search-collection.mjs +1 -0
- package/dist/actions/search-collection.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +7 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +7 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -2
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1 +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 = 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}).passthrough().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}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"list-collection-files.cjs","names":["z","action"],"sources":["../../src/actions/list-collection-files.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { needle } from \"../app\";\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}).passthrough().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}).passthrough().describe(\"Response model for listing files in a collection.\");\n\nexport const needleListCollectionFiles: AppAction<\n typeof NeedleListCollectionFilesInput,\n typeof NeedleListCollectionFilesOutput,\n typeof needle.credential\n> = 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":";;;;AAMA,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,QAA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js";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-collection-files.d.ts
|
|
@@ -26,11 +28,7 @@ declare const NeedleListCollectionFilesOutput: z.ZodObject<{
|
|
|
26
28
|
total: z.ZodNullable<z.ZodNumber>;
|
|
27
29
|
offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
28
30
|
}, z.core.$loose>;
|
|
29
|
-
declare const needleListCollectionFiles:
|
|
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]>;
|
|
31
|
+
declare const needleListCollectionFiles: AppAction<typeof NeedleListCollectionFilesInput, typeof NeedleListCollectionFilesOutput, typeof needle.credential>;
|
|
34
32
|
//#endregion
|
|
35
33
|
export { needleListCollectionFiles };
|
|
36
34
|
//# 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":"
|
|
1
|
+
{"version":3,"file":"list-collection-files.d.cts","names":[],"sources":["../../src/actions/list-collection-files.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAoB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAO/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { needle } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-collection-files.d.ts
|
|
@@ -26,11 +28,7 @@ declare const NeedleListCollectionFilesOutput: z.ZodObject<{
|
|
|
26
28
|
total: z.ZodNullable<z.ZodNumber>;
|
|
27
29
|
offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
28
30
|
}, z.core.$loose>;
|
|
29
|
-
declare const needleListCollectionFiles:
|
|
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]>;
|
|
31
|
+
declare const needleListCollectionFiles: AppAction<typeof NeedleListCollectionFilesInput, typeof NeedleListCollectionFilesOutput, typeof needle.credential>;
|
|
34
32
|
//#endregion
|
|
35
33
|
export { needleListCollectionFiles };
|
|
36
34
|
//# 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":"
|
|
1
|
+
{"version":3,"file":"list-collection-files.d.mts","names":[],"sources":["../../src/actions/list-collection-files.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAoB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAO/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-collection-files.mjs","names":[],"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}).passthrough().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}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"list-collection-files.mjs","names":[],"sources":["../../src/actions/list-collection-files.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { needle } from \"../app\";\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}).passthrough().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}).passthrough().describe(\"Response model for listing files in a collection.\");\n\nexport const needleListCollectionFiles: AppAction<\n typeof NeedleListCollectionFilesInput,\n typeof NeedleListCollectionFilesOutput,\n typeof needle.credential\n> = 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":";;;;AAMA,MAAa,iCAAiC,EAAE,OAAO;CACrD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC7F,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAClG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ;AAC7L,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,4CAA4C,EAAE,OAAO;CACzD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC3D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,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,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACnE,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,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAClF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAQhF,MAAa,4BAIT,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhB6C,EAAE,OAAO;EACtD,OAAO,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,sBAAsB;EACzF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACpF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-collections.cjs","names":["z","action"],"sources":["../../src/actions/list-collections.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleListCollectionsInput = z.object({\n limit: z.number().int().describe(\"Maximum number of collections to return (if supported by API)\").optional(),\n offset: z.number().int().describe(\"Number of collections to skip before collecting results (if supported by API)\").optional(),\n}).describe(\"Parameters for listing collections. Supports pagination if available.\");\nconst NeedleListCollections_CollectionSchema = z.object({\n id: z.string().describe(\"Collection unique identifier\").nullable(),\n name: z.string().describe(\"Collection name\").nullable(),\n created_at: z.string().describe(\"Collection creation timestamp in ISO 8601 format (may be absent)\").nullable().optional(),\n updated_at: z.string().describe(\"Collection last update timestamp in ISO 8601 format (may be absent)\").nullable().optional(),\n description: z.string().describe(\"Collection description (may be absent)\").nullable().optional(),\n}).passthrough().describe(\"A collection resource.\");\nconst NeedleListCollections_APIErrorSchema = z.object({\n code: z.string().describe(\"Error code returned by the API\").nullable(),\n message: z.string().describe(\"Error message returned by the API\").nullable(),\n}).passthrough().describe(\"Error details when an API call fails.\");\nconst NeedleListCollections_PaginationSchema = z.object({\n limit: z.number().int().describe(\"Number of items returned per page\").nullable().optional(),\n total: z.number().int().describe(\"Total number of items available\").nullable().optional(),\n offset: z.number().int().describe(\"Number of items skipped before this page\").nullable().optional(),\n}).passthrough().describe(\"Pagination details for a list response.\");\nexport const NeedleListCollectionsOutput = z.object({\n data: z.array(NeedleListCollections_CollectionSchema).describe(\"List of collections returned by the API\").nullable().optional(),\n error: NeedleListCollections_APIErrorSchema.nullable().optional(),\n pagination: NeedleListCollections_PaginationSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for listing collections.\");\n\nexport const needleListCollections = action(\"NEEDLE_LIST_COLLECTIONS\", {\n slug: \"needle-list-collections\",\n name: \"List Collections\",\n description: \"Tool to list collections. Use after authenticating with your API key to page through collections. Similar collection names can exist; always verify the correct `collection_id` from results before performing subsequent operations.\",\n input: NeedleListCollectionsInput,\n output: NeedleListCollectionsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-collections.cjs","names":["z","action"],"sources":["../../src/actions/list-collections.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { needle } from \"../app\";\n\nexport const NeedleListCollectionsInput = z.object({\n limit: z.number().int().describe(\"Maximum number of collections to return (if supported by API)\").optional(),\n offset: z.number().int().describe(\"Number of collections to skip before collecting results (if supported by API)\").optional(),\n}).describe(\"Parameters for listing collections. Supports pagination if available.\");\nconst NeedleListCollections_CollectionSchema = z.object({\n id: z.string().describe(\"Collection unique identifier\").nullable(),\n name: z.string().describe(\"Collection name\").nullable(),\n created_at: z.string().describe(\"Collection creation timestamp in ISO 8601 format (may be absent)\").nullable().optional(),\n updated_at: z.string().describe(\"Collection last update timestamp in ISO 8601 format (may be absent)\").nullable().optional(),\n description: z.string().describe(\"Collection description (may be absent)\").nullable().optional(),\n}).passthrough().describe(\"A collection resource.\");\nconst NeedleListCollections_APIErrorSchema = z.object({\n code: z.string().describe(\"Error code returned by the API\").nullable(),\n message: z.string().describe(\"Error message returned by the API\").nullable(),\n}).passthrough().describe(\"Error details when an API call fails.\");\nconst NeedleListCollections_PaginationSchema = z.object({\n limit: z.number().int().describe(\"Number of items returned per page\").nullable().optional(),\n total: z.number().int().describe(\"Total number of items available\").nullable().optional(),\n offset: z.number().int().describe(\"Number of items skipped before this page\").nullable().optional(),\n}).passthrough().describe(\"Pagination details for a list response.\");\nexport const NeedleListCollectionsOutput = z.object({\n data: z.array(NeedleListCollections_CollectionSchema).describe(\"List of collections returned by the API\").nullable().optional(),\n error: NeedleListCollections_APIErrorSchema.nullable().optional(),\n pagination: NeedleListCollections_PaginationSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for listing collections.\");\n\nexport const needleListCollections: AppAction<\n typeof NeedleListCollectionsInput,\n typeof NeedleListCollectionsOutput,\n typeof needle.credential\n> = action(\"NEEDLE_LIST_COLLECTIONS\", {\n slug: \"needle-list-collections\",\n name: \"List Collections\",\n description: \"Tool to list collections. Use after authenticating with your API key to page through collections. Similar collection names can exist; always verify the correct `collection_id` from results before performing subsequent operations.\",\n input: NeedleListCollectionsInput,\n output: NeedleListCollectionsOutput,\n});\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C1F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AACnE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,OAAO,qCAAqC,SAAS,CAAC,CAAC,SAAS;CAChE,YAAY,uCAAuC,SAAS,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAEpE,MAAa,wBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { needle } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-collections.d.ts
|
|
@@ -23,10 +25,7 @@ declare const NeedleListCollectionsOutput: z.ZodObject<{
|
|
|
23
25
|
offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
26
|
}, z.core.$loose>>>;
|
|
25
27
|
}, z.core.$loose>;
|
|
26
|
-
declare const needleListCollections:
|
|
27
|
-
limit?: number | undefined;
|
|
28
|
-
offset?: number | undefined;
|
|
29
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
28
|
+
declare const needleListCollections: AppAction<typeof NeedleListCollectionsInput, typeof NeedleListCollectionsOutput, typeof needle.credential>;
|
|
30
29
|
//#endregion
|
|
31
30
|
export { needleListCollections };
|
|
32
31
|
//# sourceMappingURL=list-collections.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-collections.d.cts","names":[],"sources":["../../src/actions/list-collections.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-collections.d.cts","names":[],"sources":["../../src/actions/list-collections.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAoB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAM3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { needle } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-collections.d.ts
|
|
@@ -23,10 +25,7 @@ declare const NeedleListCollectionsOutput: z.ZodObject<{
|
|
|
23
25
|
offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
26
|
}, z.core.$loose>>>;
|
|
25
27
|
}, z.core.$loose>;
|
|
26
|
-
declare const needleListCollections:
|
|
27
|
-
limit?: number | undefined;
|
|
28
|
-
offset?: number | undefined;
|
|
29
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
28
|
+
declare const needleListCollections: AppAction<typeof NeedleListCollectionsInput, typeof NeedleListCollectionsOutput, typeof needle.credential>;
|
|
30
29
|
//#endregion
|
|
31
30
|
export { needleListCollections };
|
|
32
31
|
//# sourceMappingURL=list-collections.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-collections.d.mts","names":[],"sources":["../../src/actions/list-collections.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-collections.d.mts","names":[],"sources":["../../src/actions/list-collections.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAoB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAM3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-collections.mjs","names":[],"sources":["../../src/actions/list-collections.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleListCollectionsInput = z.object({\n limit: z.number().int().describe(\"Maximum number of collections to return (if supported by API)\").optional(),\n offset: z.number().int().describe(\"Number of collections to skip before collecting results (if supported by API)\").optional(),\n}).describe(\"Parameters for listing collections. Supports pagination if available.\");\nconst NeedleListCollections_CollectionSchema = z.object({\n id: z.string().describe(\"Collection unique identifier\").nullable(),\n name: z.string().describe(\"Collection name\").nullable(),\n created_at: z.string().describe(\"Collection creation timestamp in ISO 8601 format (may be absent)\").nullable().optional(),\n updated_at: z.string().describe(\"Collection last update timestamp in ISO 8601 format (may be absent)\").nullable().optional(),\n description: z.string().describe(\"Collection description (may be absent)\").nullable().optional(),\n}).passthrough().describe(\"A collection resource.\");\nconst NeedleListCollections_APIErrorSchema = z.object({\n code: z.string().describe(\"Error code returned by the API\").nullable(),\n message: z.string().describe(\"Error message returned by the API\").nullable(),\n}).passthrough().describe(\"Error details when an API call fails.\");\nconst NeedleListCollections_PaginationSchema = z.object({\n limit: z.number().int().describe(\"Number of items returned per page\").nullable().optional(),\n total: z.number().int().describe(\"Total number of items available\").nullable().optional(),\n offset: z.number().int().describe(\"Number of items skipped before this page\").nullable().optional(),\n}).passthrough().describe(\"Pagination details for a list response.\");\nexport const NeedleListCollectionsOutput = z.object({\n data: z.array(NeedleListCollections_CollectionSchema).describe(\"List of collections returned by the API\").nullable().optional(),\n error: NeedleListCollections_APIErrorSchema.nullable().optional(),\n pagination: NeedleListCollections_PaginationSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for listing collections.\");\n\nexport const needleListCollections = action(\"NEEDLE_LIST_COLLECTIONS\", {\n slug: \"needle-list-collections\",\n name: \"List Collections\",\n description: \"Tool to list collections. Use after authenticating with your API key to page through collections. Similar collection names can exist; always verify the correct `collection_id` from results before performing subsequent operations.\",\n input: NeedleListCollectionsInput,\n output: NeedleListCollectionsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-collections.mjs","names":[],"sources":["../../src/actions/list-collections.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { needle } from \"../app\";\n\nexport const NeedleListCollectionsInput = z.object({\n limit: z.number().int().describe(\"Maximum number of collections to return (if supported by API)\").optional(),\n offset: z.number().int().describe(\"Number of collections to skip before collecting results (if supported by API)\").optional(),\n}).describe(\"Parameters for listing collections. Supports pagination if available.\");\nconst NeedleListCollections_CollectionSchema = z.object({\n id: z.string().describe(\"Collection unique identifier\").nullable(),\n name: z.string().describe(\"Collection name\").nullable(),\n created_at: z.string().describe(\"Collection creation timestamp in ISO 8601 format (may be absent)\").nullable().optional(),\n updated_at: z.string().describe(\"Collection last update timestamp in ISO 8601 format (may be absent)\").nullable().optional(),\n description: z.string().describe(\"Collection description (may be absent)\").nullable().optional(),\n}).passthrough().describe(\"A collection resource.\");\nconst NeedleListCollections_APIErrorSchema = z.object({\n code: z.string().describe(\"Error code returned by the API\").nullable(),\n message: z.string().describe(\"Error message returned by the API\").nullable(),\n}).passthrough().describe(\"Error details when an API call fails.\");\nconst NeedleListCollections_PaginationSchema = z.object({\n limit: z.number().int().describe(\"Number of items returned per page\").nullable().optional(),\n total: z.number().int().describe(\"Total number of items available\").nullable().optional(),\n offset: z.number().int().describe(\"Number of items skipped before this page\").nullable().optional(),\n}).passthrough().describe(\"Pagination details for a list response.\");\nexport const NeedleListCollectionsOutput = z.object({\n data: z.array(NeedleListCollections_CollectionSchema).describe(\"List of collections returned by the API\").nullable().optional(),\n error: NeedleListCollections_APIErrorSchema.nullable().optional(),\n pagination: NeedleListCollections_PaginationSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for listing collections.\");\n\nexport const needleListCollections: AppAction<\n typeof NeedleListCollectionsInput,\n typeof NeedleListCollectionsOutput,\n typeof needle.credential\n> = action(\"NEEDLE_LIST_COLLECTIONS\", {\n slug: \"needle-list-collections\",\n name: \"List Collections\",\n description: \"Tool to list collections. Use after authenticating with your API key to page through collections. Similar collection names can exist; always verify the correct `collection_id` from results before performing subsequent operations.\",\n input: NeedleListCollectionsInput,\n output: NeedleListCollectionsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6B,EAAE,OAAO;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3G,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;AAC9H,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,yCAAyC,EAAE,OAAO;CACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACtD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wBAAwB;AAClD,MAAM,uCAAuC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAM,yCAAyC,EAAE,OAAO;CACtD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAOnE,MAAa,wBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAfyC,EAAE,OAAO;EAClD,MAAM,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9H,OAAO,qCAAqC,SAAS,CAAC,CAAC,SAAS;EAChE,YAAY,uCAAuC,SAAS,CAAC,CAAC,SAAS;CACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-connectors.cjs","names":["z","action"],"sources":["../../src/actions/list-connectors.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleListConnectorsInput = z.object({}).describe(\"Parameters for listing connectors. No parameters required.\");\nconst NeedleListConnectors_ConnectorSchema = z.object({\n id: z.string().describe(\"Connector unique identifier\").nullable(),\n name: z.string().describe(\"Connector name\").nullable(),\n type: z.string().describe(\"Connector type\").nullable().optional(),\n error: z.string().describe(\"Error message if the connector failed\").nullable().optional(),\n status: z.string().describe(\"Connector status\").nullable().optional(),\n cron_job: z.string().describe(\"Cron job schedule for the connector\").nullable().optional(),\n timezone: z.string().describe(\"Timezone for the connector\").nullable().optional(),\n created_at: z.string().describe(\"Connector creation timestamp\").nullable().optional(),\n}).passthrough().describe(\"A connector resource.\");\nexport const NeedleListConnectorsOutput = z.object({\n result: z.array(NeedleListConnectors_ConnectorSchema).describe(\"List of connectors returned by the API\").nullable().optional(),\n}).passthrough().describe(\"Response schema for listing connectors.\");\n\nexport const needleListConnectors = action(\"NEEDLE_LIST_CONNECTORS\", {\n slug: \"needle-list-connectors\",\n name: \"List Connectors\",\n description: \"Tool to list connectors. Use to retrieve all configured connectors in your account.\",\n input: NeedleListConnectorsInput,\n output: NeedleListConnectorsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-connectors.cjs","names":["z","action"],"sources":["../../src/actions/list-connectors.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { needle } from \"../app\";\n\nexport const NeedleListConnectorsInput = z.object({}).describe(\"Parameters for listing connectors. No parameters required.\");\nconst NeedleListConnectors_ConnectorSchema = z.object({\n id: z.string().describe(\"Connector unique identifier\").nullable(),\n name: z.string().describe(\"Connector name\").nullable(),\n type: z.string().describe(\"Connector type\").nullable().optional(),\n error: z.string().describe(\"Error message if the connector failed\").nullable().optional(),\n status: z.string().describe(\"Connector status\").nullable().optional(),\n cron_job: z.string().describe(\"Cron job schedule for the connector\").nullable().optional(),\n timezone: z.string().describe(\"Timezone for the connector\").nullable().optional(),\n created_at: z.string().describe(\"Connector creation timestamp\").nullable().optional(),\n}).passthrough().describe(\"A connector resource.\");\nexport const NeedleListConnectorsOutput = z.object({\n result: z.array(NeedleListConnectors_ConnectorSchema).describe(\"List of connectors returned by the API\").nullable().optional(),\n}).passthrough().describe(\"Response schema for listing connectors.\");\n\nexport const needleListConnectors: AppAction<\n typeof NeedleListConnectorsInput,\n typeof NeedleListConnectorsOutput,\n typeof needle.credential\n> = action(\"NEEDLE_LIST_CONNECTORS\", {\n slug: \"needle-list-connectors\",\n name: \"List Connectors\",\n description: \"Tool to list connectors. Use to retrieve all configured connectors in your account.\",\n input: NeedleListConnectorsInput,\n output: NeedleListConnectorsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4DAA4D;AAC3H,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uBAAuB;AACjD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,QAAQA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC/H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { needle } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-connectors.d.ts
|
|
@@ -14,7 +16,7 @@ declare const NeedleListConnectorsOutput: z.ZodObject<{
|
|
|
14
16
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
17
|
}, z.core.$loose>>>>;
|
|
16
18
|
}, z.core.$loose>;
|
|
17
|
-
declare const needleListConnectors:
|
|
19
|
+
declare const needleListConnectors: AppAction<typeof NeedleListConnectorsInput, typeof NeedleListConnectorsOutput, typeof needle.credential>;
|
|
18
20
|
//#endregion
|
|
19
21
|
export { needleListConnectors };
|
|
20
22
|
//# sourceMappingURL=list-connectors.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-connectors.d.cts","names":[],"sources":["../../src/actions/list-connectors.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-connectors.d.cts","names":[],"sources":["../../src/actions/list-connectors.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAWzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { needle } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-connectors.d.ts
|
|
@@ -14,7 +16,7 @@ declare const NeedleListConnectorsOutput: z.ZodObject<{
|
|
|
14
16
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
17
|
}, z.core.$loose>>>>;
|
|
16
18
|
}, z.core.$loose>;
|
|
17
|
-
declare const needleListConnectors:
|
|
19
|
+
declare const needleListConnectors: AppAction<typeof NeedleListConnectorsInput, typeof NeedleListConnectorsOutput, typeof needle.credential>;
|
|
18
20
|
//#endregion
|
|
19
21
|
export { needleListConnectors };
|
|
20
22
|
//# sourceMappingURL=list-connectors.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-connectors.d.mts","names":[],"sources":["../../src/actions/list-connectors.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-connectors.d.mts","names":[],"sources":["../../src/actions/list-connectors.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAWzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-connectors.mjs","names":[],"sources":["../../src/actions/list-connectors.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleListConnectorsInput = z.object({}).describe(\"Parameters for listing connectors. No parameters required.\");\nconst NeedleListConnectors_ConnectorSchema = z.object({\n id: z.string().describe(\"Connector unique identifier\").nullable(),\n name: z.string().describe(\"Connector name\").nullable(),\n type: z.string().describe(\"Connector type\").nullable().optional(),\n error: z.string().describe(\"Error message if the connector failed\").nullable().optional(),\n status: z.string().describe(\"Connector status\").nullable().optional(),\n cron_job: z.string().describe(\"Cron job schedule for the connector\").nullable().optional(),\n timezone: z.string().describe(\"Timezone for the connector\").nullable().optional(),\n created_at: z.string().describe(\"Connector creation timestamp\").nullable().optional(),\n}).passthrough().describe(\"A connector resource.\");\nexport const NeedleListConnectorsOutput = z.object({\n result: z.array(NeedleListConnectors_ConnectorSchema).describe(\"List of connectors returned by the API\").nullable().optional(),\n}).passthrough().describe(\"Response schema for listing connectors.\");\n\nexport const needleListConnectors = action(\"NEEDLE_LIST_CONNECTORS\", {\n slug: \"needle-list-connectors\",\n name: \"List Connectors\",\n description: \"Tool to list connectors. Use to retrieve all configured connectors in your account.\",\n input: NeedleListConnectorsInput,\n output: NeedleListConnectorsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-connectors.mjs","names":[],"sources":["../../src/actions/list-connectors.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { needle } from \"../app\";\n\nexport const NeedleListConnectorsInput = z.object({}).describe(\"Parameters for listing connectors. No parameters required.\");\nconst NeedleListConnectors_ConnectorSchema = z.object({\n id: z.string().describe(\"Connector unique identifier\").nullable(),\n name: z.string().describe(\"Connector name\").nullable(),\n type: z.string().describe(\"Connector type\").nullable().optional(),\n error: z.string().describe(\"Error message if the connector failed\").nullable().optional(),\n status: z.string().describe(\"Connector status\").nullable().optional(),\n cron_job: z.string().describe(\"Cron job schedule for the connector\").nullable().optional(),\n timezone: z.string().describe(\"Timezone for the connector\").nullable().optional(),\n created_at: z.string().describe(\"Connector creation timestamp\").nullable().optional(),\n}).passthrough().describe(\"A connector resource.\");\nexport const NeedleListConnectorsOutput = z.object({\n result: z.array(NeedleListConnectors_ConnectorSchema).describe(\"List of connectors returned by the API\").nullable().optional(),\n}).passthrough().describe(\"Response schema for listing connectors.\");\n\nexport const needleListConnectors: AppAction<\n typeof NeedleListConnectorsInput,\n typeof NeedleListConnectorsOutput,\n typeof needle.credential\n> = action(\"NEEDLE_LIST_CONNECTORS\", {\n slug: \"needle-list-connectors\",\n name: \"List Connectors\",\n description: \"Tool to list connectors. Use to retrieve all configured connectors in your account.\",\n input: NeedleListConnectorsInput,\n output: NeedleListConnectorsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4DAA4D;AAC3H,MAAM,uCAAuC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uBAAuB;AAKjD,MAAa,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbwC,EAAE,OAAO,EACjD,QAAQ,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC/H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-local-connectors.cjs","names":["z","action"],"sources":["../../src/actions/list-local-connectors.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleListLocalConnectorsInput = z.object({}).describe(\"Request model for listing local connectors. No parameters required.\");\nconst NeedleListLocalConnectors_FolderInfoSchema = z.object({\n recursive: z.boolean().describe(\"Whether to recursively monitor the folder\").nullable().optional(),\n folder_path: z.string().describe(\"Path to the folder\").nullable().optional(),\n connector_id: z.string().describe(\"Connector ID this folder belongs to\").nullable().optional(),\n}).passthrough().describe(\"Schema for folder information in a local connector.\");\nconst NeedleListLocalConnectors_LocalConnectorSchema = z.object({\n id: z.string().describe(\"Unique identifier of the local 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 local connector\").nullable(),\n type: z.string().describe(\"Type of connector\").nullable(),\n folders: z.array(z.union([z.string(), NeedleListLocalConnectors_FolderInfoSchema])).describe(\"List of folders monitored by this connector\").nullable().optional(),\n synced_at: z.string().describe(\"Last sync timestamp in ISO 8601 format\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable().optional(),\n device_name: z.string().describe(\"Name of the device\").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}).passthrough().describe(\"Schema for a single local connector object returned by the API.\");\nexport const NeedleListLocalConnectorsOutput = z.object({\n connectors: z.array(NeedleListLocalConnectors_LocalConnectorSchema).describe(\"List of local connector objects\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing local connectors.\");\n\nexport const needleListLocalConnectors = action(\"NEEDLE_LIST_LOCAL_CONNECTORS\", {\n slug: \"needle-list-local-connectors\",\n name: \"List Local Connectors\",\n description: \"Tool to list local connectors. Use to retrieve all local connectors configured in your Needle account.\",\n input: NeedleListLocalConnectorsInput,\n output: NeedleListLocalConnectorsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-local-connectors.cjs","names":["z","action"],"sources":["../../src/actions/list-local-connectors.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { needle } from \"../app\";\n\nexport const NeedleListLocalConnectorsInput = z.object({}).describe(\"Request model for listing local connectors. No parameters required.\");\nconst NeedleListLocalConnectors_FolderInfoSchema = z.object({\n recursive: z.boolean().describe(\"Whether to recursively monitor the folder\").nullable().optional(),\n folder_path: z.string().describe(\"Path to the folder\").nullable().optional(),\n connector_id: z.string().describe(\"Connector ID this folder belongs to\").nullable().optional(),\n}).passthrough().describe(\"Schema for folder information in a local connector.\");\nconst NeedleListLocalConnectors_LocalConnectorSchema = z.object({\n id: z.string().describe(\"Unique identifier of the local 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 local connector\").nullable(),\n type: z.string().describe(\"Type of connector\").nullable(),\n folders: z.array(z.union([z.string(), NeedleListLocalConnectors_FolderInfoSchema])).describe(\"List of folders monitored by this connector\").nullable().optional(),\n synced_at: z.string().describe(\"Last sync timestamp in ISO 8601 format\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable().optional(),\n device_name: z.string().describe(\"Name of the device\").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}).passthrough().describe(\"Schema for a single local connector object returned by the API.\");\nexport const NeedleListLocalConnectorsOutput = z.object({\n connectors: z.array(NeedleListLocalConnectors_LocalConnectorSchema).describe(\"List of local connector objects\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing local connectors.\");\n\nexport const needleListLocalConnectors: AppAction<\n typeof NeedleListLocalConnectorsInput,\n typeof NeedleListLocalConnectorsOutput,\n typeof needle.credential\n> = action(\"NEEDLE_LIST_LOCAL_CONNECTORS\", {\n slug: \"needle-list-local-connectors\",\n name: \"List Local Connectors\",\n description: \"Tool to list local connectors. Use to retrieve all local connectors configured in your Needle account.\",\n input: NeedleListLocalConnectorsInput,\n output: NeedleListLocalConnectorsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACzI,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC7E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,KAAKA,IAAAA,EAAE,OAAO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C,SAAS,8CAA8C;AAExE,MAAa,4BAITC,eAAAA,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { needle } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-local-connectors.d.ts
|
|
@@ -22,7 +24,7 @@ declare const NeedleListLocalConnectorsOutput: z.ZodObject<{
|
|
|
22
24
|
collection_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
23
25
|
}, z.core.$loose>>>>;
|
|
24
26
|
}, z.core.$loose>;
|
|
25
|
-
declare const needleListLocalConnectors:
|
|
27
|
+
declare const needleListLocalConnectors: AppAction<typeof NeedleListLocalConnectorsInput, typeof NeedleListLocalConnectorsOutput, typeof needle.credential>;
|
|
26
28
|
//#endregion
|
|
27
29
|
export { needleListLocalConnectors };
|
|
28
30
|
//# sourceMappingURL=list-local-connectors.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-local-connectors.d.cts","names":[],"sources":["../../src/actions/list-local-connectors.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-local-connectors.d.cts","names":[],"sources":["../../src/actions/list-local-connectors.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAoB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAI/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { needle } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-local-connectors.d.ts
|
|
@@ -22,7 +24,7 @@ declare const NeedleListLocalConnectorsOutput: z.ZodObject<{
|
|
|
22
24
|
collection_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
23
25
|
}, z.core.$loose>>>>;
|
|
24
26
|
}, z.core.$loose>;
|
|
25
|
-
declare const needleListLocalConnectors:
|
|
27
|
+
declare const needleListLocalConnectors: AppAction<typeof NeedleListLocalConnectorsInput, typeof NeedleListLocalConnectorsOutput, typeof needle.credential>;
|
|
26
28
|
//#endregion
|
|
27
29
|
export { needleListLocalConnectors };
|
|
28
30
|
//# sourceMappingURL=list-local-connectors.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-local-connectors.d.mts","names":[],"sources":["../../src/actions/list-local-connectors.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-local-connectors.d.mts","names":[],"sources":["../../src/actions/list-local-connectors.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAoB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAI/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-local-connectors.mjs","names":[],"sources":["../../src/actions/list-local-connectors.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleListLocalConnectorsInput = z.object({}).describe(\"Request model for listing local connectors. No parameters required.\");\nconst NeedleListLocalConnectors_FolderInfoSchema = z.object({\n recursive: z.boolean().describe(\"Whether to recursively monitor the folder\").nullable().optional(),\n folder_path: z.string().describe(\"Path to the folder\").nullable().optional(),\n connector_id: z.string().describe(\"Connector ID this folder belongs to\").nullable().optional(),\n}).passthrough().describe(\"Schema for folder information in a local connector.\");\nconst NeedleListLocalConnectors_LocalConnectorSchema = z.object({\n id: z.string().describe(\"Unique identifier of the local 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 local connector\").nullable(),\n type: z.string().describe(\"Type of connector\").nullable(),\n folders: z.array(z.union([z.string(), NeedleListLocalConnectors_FolderInfoSchema])).describe(\"List of folders monitored by this connector\").nullable().optional(),\n synced_at: z.string().describe(\"Last sync timestamp in ISO 8601 format\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable().optional(),\n device_name: z.string().describe(\"Name of the device\").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}).passthrough().describe(\"Schema for a single local connector object returned by the API.\");\nexport const NeedleListLocalConnectorsOutput = z.object({\n connectors: z.array(NeedleListLocalConnectors_LocalConnectorSchema).describe(\"List of local connector objects\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing local connectors.\");\n\nexport const needleListLocalConnectors = action(\"NEEDLE_LIST_LOCAL_CONNECTORS\", {\n slug: \"needle-list-local-connectors\",\n name: \"List Local Connectors\",\n description: \"Tool to list local connectors. Use to retrieve all local connectors configured in your Needle account.\",\n input: NeedleListLocalConnectorsInput,\n output: NeedleListLocalConnectorsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-local-connectors.mjs","names":[],"sources":["../../src/actions/list-local-connectors.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { needle } from \"../app\";\n\nexport const NeedleListLocalConnectorsInput = z.object({}).describe(\"Request model for listing local connectors. No parameters required.\");\nconst NeedleListLocalConnectors_FolderInfoSchema = z.object({\n recursive: z.boolean().describe(\"Whether to recursively monitor the folder\").nullable().optional(),\n folder_path: z.string().describe(\"Path to the folder\").nullable().optional(),\n connector_id: z.string().describe(\"Connector ID this folder belongs to\").nullable().optional(),\n}).passthrough().describe(\"Schema for folder information in a local connector.\");\nconst NeedleListLocalConnectors_LocalConnectorSchema = z.object({\n id: z.string().describe(\"Unique identifier of the local 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 local connector\").nullable(),\n type: z.string().describe(\"Type of connector\").nullable(),\n folders: z.array(z.union([z.string(), NeedleListLocalConnectors_FolderInfoSchema])).describe(\"List of folders monitored by this connector\").nullable().optional(),\n synced_at: z.string().describe(\"Last sync timestamp in ISO 8601 format\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable().optional(),\n device_name: z.string().describe(\"Name of the device\").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}).passthrough().describe(\"Schema for a single local connector object returned by the API.\");\nexport const NeedleListLocalConnectorsOutput = z.object({\n connectors: z.array(NeedleListLocalConnectors_LocalConnectorSchema).describe(\"List of local connector objects\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing local connectors.\");\n\nexport const needleListLocalConnectors: AppAction<\n typeof NeedleListLocalConnectorsInput,\n typeof NeedleListLocalConnectorsOutput,\n typeof needle.credential\n> = action(\"NEEDLE_LIST_LOCAL_CONNECTORS\", {\n slug: \"needle-list-local-connectors\",\n name: \"List Local Connectors\",\n description: \"Tool to list local connectors. Use to retrieve all local connectors configured in your Needle account.\",\n input: NeedleListLocalConnectorsInput,\n output: NeedleListLocalConnectorsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiC,EA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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,YAAY,CAAC,CAAC,SAAS,iEAAiE;AAK3F,MAAa,4BAIT,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb6C,EAAE,OAAO,EACtD,YAAY,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACtI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-collection.cjs","names":["z","action"],"sources":["../../src/actions/search-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleSearchCollectionInput = z.object({\n text: z.string().describe(\"The natural-language search query to find relevant content in the collection.\"),\n top_k: z.number().int().describe(\"Maximum number of search results to return. Default is 10 (maximum).\").optional(),\n offset: z.number().int().describe(\"Offset for pagination to skip a number of results.\").optional(),\n options: z.record(z.string(), z.unknown()).describe(\"Optional pass-through object for additional retrieval parameters supported by the API (e.g., filters, future knobs).\").optional(),\n max_distance: z.string().describe(\"Maximum similarity distance threshold for results, between 0 and 1. Lower values mean stricter relevance. Example: '0.65'.\").optional(),\n collection_id: z.string().describe(\"The unique identifier of the collection to search in.\"),\n}).describe(\"Request parameters for searching within a Needle collection.\");\nconst NeedleSearchCollection_SearchResultSchema = z.object({\n score: z.number().describe(\"Relevance score or similarity distance for this result.\").nullable().optional(),\n content: z.string().describe(\"The text content of the relevant passage extracted from the document.\").nullable(),\n file_id: z.string().describe(\"Identifier of the source file containing this result.\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata about the result (e.g., page number, chunk index).\").nullable().optional(),\n file_name: z.string().describe(\"Name of the source file.\").nullable().optional(),\n}).passthrough().describe(\"A single search result from the collection.\");\nexport const NeedleSearchCollectionOutput = z.object({\n total: z.number().int().describe(\"Total number of results available (if provided by API).\").nullable().optional(),\n results: z.array(NeedleSearchCollection_SearchResultSchema).describe(\"Array of search results with content and source references.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for collection search results.\");\n\nexport const needleSearchCollection = action(\"NEEDLE_SEARCH_COLLECTION\", {\n slug: \"needle-search-collection\",\n name: \"Search Collection\",\n description: \"Tool to perform semantic search within a specific Needle collection and return ranked results with source references. Use when you need to retrieve relevant content from a known collection using natural language queries.\",\n input: NeedleSearchCollectionInput,\n output: NeedleSearchCollectionOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"search-collection.cjs","names":["z","action"],"sources":["../../src/actions/search-collection.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { needle } from \"../app\";\n\nexport const NeedleSearchCollectionInput = z.object({\n text: z.string().describe(\"The natural-language search query to find relevant content in the collection.\"),\n top_k: z.number().int().describe(\"Maximum number of search results to return. Default is 10 (maximum).\").optional(),\n offset: z.number().int().describe(\"Offset for pagination to skip a number of results.\").optional(),\n options: z.record(z.string(), z.unknown()).describe(\"Optional pass-through object for additional retrieval parameters supported by the API (e.g., filters, future knobs).\").optional(),\n max_distance: z.string().describe(\"Maximum similarity distance threshold for results, between 0 and 1. Lower values mean stricter relevance. Example: '0.65'.\").optional(),\n collection_id: z.string().describe(\"The unique identifier of the collection to search in.\"),\n}).describe(\"Request parameters for searching within a Needle collection.\");\nconst NeedleSearchCollection_SearchResultSchema = z.object({\n score: z.number().describe(\"Relevance score or similarity distance for this result.\").nullable().optional(),\n content: z.string().describe(\"The text content of the relevant passage extracted from the document.\").nullable(),\n file_id: z.string().describe(\"Identifier of the source file containing this result.\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata about the result (e.g., page number, chunk index).\").nullable().optional(),\n file_name: z.string().describe(\"Name of the source file.\").nullable().optional(),\n}).passthrough().describe(\"A single search result from the collection.\");\nexport const NeedleSearchCollectionOutput = z.object({\n total: z.number().int().describe(\"Total number of results available (if provided by API).\").nullable().optional(),\n results: z.array(NeedleSearchCollection_SearchResultSchema).describe(\"Array of search results with content and source references.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for collection search results.\");\n\nexport const needleSearchCollection: AppAction<\n typeof NeedleSearchCollectionInput,\n typeof NeedleSearchCollectionOutput,\n typeof needle.credential\n> = action(\"NEEDLE_SEARCH_COLLECTION\", {\n slug: \"needle-search-collection\",\n name: \"Search Collection\",\n description: \"Tool to perform semantic search within a specific Needle collection and return ranked results with source references. Use when you need to retrieve relevant content from a known collection using natural language queries.\",\n input: NeedleSearchCollectionInput,\n output: NeedleSearchCollectionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CACzG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAClH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACjG,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CACrL,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4HAA4H,CAAC,CAAC,SAAS;CACzK,eAAeA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
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/search-collection.d.ts
|
|
@@ -19,14 +21,7 @@ declare const NeedleSearchCollectionOutput: z.ZodObject<{
|
|
|
19
21
|
file_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
22
|
}, z.core.$loose>>>>;
|
|
21
23
|
}, z.core.$loose>;
|
|
22
|
-
declare const needleSearchCollection:
|
|
23
|
-
text: string;
|
|
24
|
-
collection_id: string;
|
|
25
|
-
top_k?: number | undefined;
|
|
26
|
-
offset?: number | undefined;
|
|
27
|
-
options?: Record<string, unknown> | undefined;
|
|
28
|
-
max_distance?: string | undefined;
|
|
29
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
24
|
+
declare const needleSearchCollection: AppAction<typeof NeedleSearchCollectionInput, typeof NeedleSearchCollectionOutput, typeof needle.credential>;
|
|
30
25
|
//#endregion
|
|
31
26
|
export { needleSearchCollection };
|
|
32
27
|
//# sourceMappingURL=search-collection.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-collection.d.cts","names":[],"sources":["../../src/actions/search-collection.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"search-collection.d.cts","names":[],"sources":["../../src/actions/search-collection.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;cAe3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;cAK5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { needle } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/search-collection.d.ts
|
|
@@ -19,14 +21,7 @@ declare const NeedleSearchCollectionOutput: z.ZodObject<{
|
|
|
19
21
|
file_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
22
|
}, z.core.$loose>>>>;
|
|
21
23
|
}, z.core.$loose>;
|
|
22
|
-
declare const needleSearchCollection:
|
|
23
|
-
text: string;
|
|
24
|
-
collection_id: string;
|
|
25
|
-
top_k?: number | undefined;
|
|
26
|
-
offset?: number | undefined;
|
|
27
|
-
options?: Record<string, unknown> | undefined;
|
|
28
|
-
max_distance?: string | undefined;
|
|
29
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
24
|
+
declare const needleSearchCollection: AppAction<typeof NeedleSearchCollectionInput, typeof NeedleSearchCollectionOutput, typeof needle.credential>;
|
|
30
25
|
//#endregion
|
|
31
26
|
export { needleSearchCollection };
|
|
32
27
|
//# sourceMappingURL=search-collection.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-collection.d.mts","names":[],"sources":["../../src/actions/search-collection.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"search-collection.d.mts","names":[],"sources":["../../src/actions/search-collection.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;cAe3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;cAK5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-collection.mjs","names":[],"sources":["../../src/actions/search-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleSearchCollectionInput = z.object({\n text: z.string().describe(\"The natural-language search query to find relevant content in the collection.\"),\n top_k: z.number().int().describe(\"Maximum number of search results to return. Default is 10 (maximum).\").optional(),\n offset: z.number().int().describe(\"Offset for pagination to skip a number of results.\").optional(),\n options: z.record(z.string(), z.unknown()).describe(\"Optional pass-through object for additional retrieval parameters supported by the API (e.g., filters, future knobs).\").optional(),\n max_distance: z.string().describe(\"Maximum similarity distance threshold for results, between 0 and 1. Lower values mean stricter relevance. Example: '0.65'.\").optional(),\n collection_id: z.string().describe(\"The unique identifier of the collection to search in.\"),\n}).describe(\"Request parameters for searching within a Needle collection.\");\nconst NeedleSearchCollection_SearchResultSchema = z.object({\n score: z.number().describe(\"Relevance score or similarity distance for this result.\").nullable().optional(),\n content: z.string().describe(\"The text content of the relevant passage extracted from the document.\").nullable(),\n file_id: z.string().describe(\"Identifier of the source file containing this result.\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata about the result (e.g., page number, chunk index).\").nullable().optional(),\n file_name: z.string().describe(\"Name of the source file.\").nullable().optional(),\n}).passthrough().describe(\"A single search result from the collection.\");\nexport const NeedleSearchCollectionOutput = z.object({\n total: z.number().int().describe(\"Total number of results available (if provided by API).\").nullable().optional(),\n results: z.array(NeedleSearchCollection_SearchResultSchema).describe(\"Array of search results with content and source references.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for collection search results.\");\n\nexport const needleSearchCollection = action(\"NEEDLE_SEARCH_COLLECTION\", {\n slug: \"needle-search-collection\",\n name: \"Search Collection\",\n description: \"Tool to perform semantic search within a specific Needle collection and return ranked results with source references. Use when you need to retrieve relevant content from a known collection using natural language queries.\",\n input: NeedleSearchCollectionInput,\n output: NeedleSearchCollectionOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"search-collection.mjs","names":[],"sources":["../../src/actions/search-collection.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { needle } from \"../app\";\n\nexport const NeedleSearchCollectionInput = z.object({\n text: z.string().describe(\"The natural-language search query to find relevant content in the collection.\"),\n top_k: z.number().int().describe(\"Maximum number of search results to return. Default is 10 (maximum).\").optional(),\n offset: z.number().int().describe(\"Offset for pagination to skip a number of results.\").optional(),\n options: z.record(z.string(), z.unknown()).describe(\"Optional pass-through object for additional retrieval parameters supported by the API (e.g., filters, future knobs).\").optional(),\n max_distance: z.string().describe(\"Maximum similarity distance threshold for results, between 0 and 1. Lower values mean stricter relevance. Example: '0.65'.\").optional(),\n collection_id: z.string().describe(\"The unique identifier of the collection to search in.\"),\n}).describe(\"Request parameters for searching within a Needle collection.\");\nconst NeedleSearchCollection_SearchResultSchema = z.object({\n score: z.number().describe(\"Relevance score or similarity distance for this result.\").nullable().optional(),\n content: z.string().describe(\"The text content of the relevant passage extracted from the document.\").nullable(),\n file_id: z.string().describe(\"Identifier of the source file containing this result.\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata about the result (e.g., page number, chunk index).\").nullable().optional(),\n file_name: z.string().describe(\"Name of the source file.\").nullable().optional(),\n}).passthrough().describe(\"A single search result from the collection.\");\nexport const NeedleSearchCollectionOutput = z.object({\n total: z.number().int().describe(\"Total number of results available (if provided by API).\").nullable().optional(),\n results: z.array(NeedleSearchCollection_SearchResultSchema).describe(\"Array of search results with content and source references.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for collection search results.\");\n\nexport const needleSearchCollection: AppAction<\n typeof NeedleSearchCollectionInput,\n typeof NeedleSearchCollectionOutput,\n typeof needle.credential\n> = action(\"NEEDLE_SEARCH_COLLECTION\", {\n slug: \"needle-search-collection\",\n name: \"Search Collection\",\n description: \"Tool to perform semantic search within a specific Needle collection and return ranked results with source references. Use when you need to retrieve relevant content from a known collection using natural language queries.\",\n input: NeedleSearchCollectionInput,\n output: NeedleSearchCollectionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8B,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CACzG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;C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,CAAC,CAAC,SAAS,gDAWhB;AACV,CAAC"}
|
package/dist/app.cjs
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
|
|
1
2
|
//#region src/app.ts
|
|
2
|
-
const
|
|
3
|
+
const credential = { generic_api_key: require("zod").z.string() };
|
|
4
|
+
const needle = (0, _keystrokehq_keystroke_app.defineApp)({
|
|
3
5
|
slug: "needle",
|
|
4
|
-
auth: "keystroke"
|
|
6
|
+
auth: "keystroke",
|
|
7
|
+
credential
|
|
5
8
|
});
|
|
6
9
|
//#endregion
|
|
7
10
|
exports.needle = needle;
|
package/dist/app.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const needle = defineApp({\n slug: \"needle\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,UAAA,
|
|
1
|
+
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const needle: KeystrokeApp<\"needle\", typeof credential> = defineApp({\n slug: \"needle\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,8BAAiBA,CAAAA,CAAAA,EAAE,OAAO,EAC5B;AAEA,MAAa,UAAA,GAAA,2BAAA,UAAA,CAA8D;CACzE,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
|
package/dist/app.d.cts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
1
4
|
//#region src/app.d.ts
|
|
2
|
-
declare const
|
|
5
|
+
declare const credential: {
|
|
6
|
+
generic_api_key: z.ZodString;
|
|
7
|
+
};
|
|
8
|
+
declare const needle: KeystrokeApp<"needle", typeof credential>;
|
|
3
9
|
//#endregion
|
|
4
10
|
export { needle };
|
|
5
11
|
//# sourceMappingURL=app.d.cts.map
|
package/dist/app.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,MAAA,EAAQ,YAAY,kBAAkB,UAAA"}
|