@keystrokehq/needle 0.1.0
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/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/add-files-to-collection.cjs +34 -0
- package/dist/actions/add-files-to-collection.cjs.map +1 -0
- package/dist/actions/add-files-to-collection.d.cts +9 -0
- package/dist/actions/add-files-to-collection.d.cts.map +1 -0
- package/dist/actions/add-files-to-collection.d.mts +9 -0
- package/dist/actions/add-files-to-collection.d.mts.map +1 -0
- package/dist/actions/add-files-to-collection.mjs +33 -0
- package/dist/actions/add-files-to-collection.mjs.map +1 -0
- package/dist/actions/add-files-to-local-connector.cjs +35 -0
- package/dist/actions/add-files-to-local-connector.cjs.map +1 -0
- package/dist/actions/add-files-to-local-connector.d.cts +9 -0
- package/dist/actions/add-files-to-local-connector.d.cts.map +1 -0
- package/dist/actions/add-files-to-local-connector.d.mts +9 -0
- package/dist/actions/add-files-to-local-connector.d.mts.map +1 -0
- package/dist/actions/add-files-to-local-connector.mjs +34 -0
- package/dist/actions/add-files-to-local-connector.mjs.map +1 -0
- package/dist/actions/create-collection.cjs +27 -0
- package/dist/actions/create-collection.cjs.map +1 -0
- package/dist/actions/create-collection.d.cts +9 -0
- package/dist/actions/create-collection.d.cts.map +1 -0
- package/dist/actions/create-collection.d.mts +9 -0
- package/dist/actions/create-collection.d.mts.map +1 -0
- package/dist/actions/create-collection.mjs +24 -0
- package/dist/actions/create-collection.mjs.map +1 -0
- package/dist/actions/create-local-connector.cjs +46 -0
- package/dist/actions/create-local-connector.cjs.map +1 -0
- package/dist/actions/create-local-connector.d.cts +9 -0
- package/dist/actions/create-local-connector.d.cts.map +1 -0
- package/dist/actions/create-local-connector.d.mts +9 -0
- package/dist/actions/create-local-connector.d.mts.map +1 -0
- package/dist/actions/create-local-connector.mjs +45 -0
- package/dist/actions/create-local-connector.mjs.map +1 -0
- package/dist/actions/delete-files-from-collection.cjs +22 -0
- package/dist/actions/delete-files-from-collection.cjs.map +1 -0
- package/dist/actions/delete-files-from-collection.d.cts +9 -0
- package/dist/actions/delete-files-from-collection.d.cts.map +1 -0
- package/dist/actions/delete-files-from-collection.d.mts +9 -0
- package/dist/actions/delete-files-from-collection.d.mts.map +1 -0
- package/dist/actions/delete-files-from-collection.mjs +19 -0
- package/dist/actions/delete-files-from-collection.mjs.map +1 -0
- package/dist/actions/delete-files-from-local-connector.cjs +33 -0
- package/dist/actions/delete-files-from-local-connector.cjs.map +1 -0
- package/dist/actions/delete-files-from-local-connector.d.cts +9 -0
- package/dist/actions/delete-files-from-local-connector.d.cts.map +1 -0
- package/dist/actions/delete-files-from-local-connector.d.mts +9 -0
- package/dist/actions/delete-files-from-local-connector.d.mts.map +1 -0
- package/dist/actions/delete-files-from-local-connector.mjs +32 -0
- package/dist/actions/delete-files-from-local-connector.mjs.map +1 -0
- package/dist/actions/get-collection-stats.cjs +26 -0
- package/dist/actions/get-collection-stats.cjs.map +1 -0
- package/dist/actions/get-collection-stats.d.cts +9 -0
- package/dist/actions/get-collection-stats.d.cts.map +1 -0
- package/dist/actions/get-collection-stats.d.mts +9 -0
- package/dist/actions/get-collection-stats.d.mts.map +1 -0
- package/dist/actions/get-collection-stats.mjs +25 -0
- package/dist/actions/get-collection-stats.mjs.map +1 -0
- package/dist/actions/get-collection.cjs +21 -0
- package/dist/actions/get-collection.cjs.map +1 -0
- package/dist/actions/get-collection.d.cts +9 -0
- package/dist/actions/get-collection.d.cts.map +1 -0
- package/dist/actions/get-collection.d.mts +9 -0
- package/dist/actions/get-collection.d.mts.map +1 -0
- package/dist/actions/get-collection.mjs +18 -0
- package/dist/actions/get-collection.mjs.map +1 -0
- package/dist/actions/get-file-download-url.cjs +19 -0
- package/dist/actions/get-file-download-url.cjs.map +1 -0
- package/dist/actions/get-file-download-url.d.cts +9 -0
- package/dist/actions/get-file-download-url.d.cts.map +1 -0
- package/dist/actions/get-file-download-url.d.mts +9 -0
- package/dist/actions/get-file-download-url.d.mts.map +1 -0
- package/dist/actions/get-file-download-url.mjs +16 -0
- package/dist/actions/get-file-download-url.mjs.map +1 -0
- package/dist/actions/get-file-upload-url.cjs +20 -0
- package/dist/actions/get-file-upload-url.cjs.map +1 -0
- package/dist/actions/get-file-upload-url.d.cts +9 -0
- package/dist/actions/get-file-upload-url.d.cts.map +1 -0
- package/dist/actions/get-file-upload-url.d.mts +9 -0
- package/dist/actions/get-file-upload-url.d.mts.map +1 -0
- package/dist/actions/get-file-upload-url.mjs +19 -0
- package/dist/actions/get-file-upload-url.mjs.map +1 -0
- package/dist/actions/get-local-connector.cjs +34 -0
- package/dist/actions/get-local-connector.cjs.map +1 -0
- package/dist/actions/get-local-connector.d.cts +9 -0
- package/dist/actions/get-local-connector.d.cts.map +1 -0
- package/dist/actions/get-local-connector.d.mts +9 -0
- package/dist/actions/get-local-connector.d.mts.map +1 -0
- package/dist/actions/get-local-connector.mjs +33 -0
- package/dist/actions/get-local-connector.mjs.map +1 -0
- package/dist/actions/index.cjs +33 -0
- package/dist/actions/index.d.cts +17 -0
- package/dist/actions/index.d.mts +17 -0
- package/dist/actions/index.mjs +17 -0
- package/dist/actions/list-collection-files.cjs +40 -0
- package/dist/actions/list-collection-files.cjs.map +1 -0
- package/dist/actions/list-collection-files.d.cts +9 -0
- package/dist/actions/list-collection-files.d.cts.map +1 -0
- package/dist/actions/list-collection-files.d.mts +9 -0
- package/dist/actions/list-collection-files.d.mts.map +1 -0
- package/dist/actions/list-collection-files.mjs +39 -0
- package/dist/actions/list-collection-files.mjs.map +1 -0
- package/dist/actions/list-collections.cjs +39 -0
- package/dist/actions/list-collections.cjs.map +1 -0
- package/dist/actions/list-collections.d.cts +9 -0
- package/dist/actions/list-collections.d.cts.map +1 -0
- package/dist/actions/list-collections.d.mts +9 -0
- package/dist/actions/list-collections.d.mts.map +1 -0
- package/dist/actions/list-collections.mjs +38 -0
- package/dist/actions/list-collections.mjs.map +1 -0
- package/dist/actions/list-connectors.cjs +26 -0
- package/dist/actions/list-connectors.cjs.map +1 -0
- package/dist/actions/list-connectors.d.cts +9 -0
- package/dist/actions/list-connectors.d.cts.map +1 -0
- package/dist/actions/list-connectors.d.mts +9 -0
- package/dist/actions/list-connectors.d.mts.map +1 -0
- package/dist/actions/list-connectors.mjs +25 -0
- package/dist/actions/list-connectors.mjs.map +1 -0
- package/dist/actions/list-local-connectors.cjs +35 -0
- package/dist/actions/list-local-connectors.cjs.map +1 -0
- package/dist/actions/list-local-connectors.d.cts +9 -0
- package/dist/actions/list-local-connectors.d.cts.map +1 -0
- package/dist/actions/list-local-connectors.d.mts +9 -0
- package/dist/actions/list-local-connectors.d.mts.map +1 -0
- package/dist/actions/list-local-connectors.mjs +34 -0
- package/dist/actions/list-local-connectors.mjs.map +1 -0
- package/dist/actions/search-collection.cjs +33 -0
- package/dist/actions/search-collection.cjs.map +1 -0
- package/dist/actions/search-collection.d.cts +9 -0
- package/dist/actions/search-collection.d.cts.map +1 -0
- package/dist/actions/search-collection.d.mts +9 -0
- package/dist/actions/search-collection.d.mts.map +1 -0
- package/dist/actions/search-collection.mjs +32 -0
- package/dist/actions/search-collection.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +38 -0
- package/dist/index.d.cts +19 -0
- package/dist/index.d.mts +19 -0
- package/dist/index.mjs +20 -0
- package/package.json +49 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-local-connectors.ts
|
|
4
|
+
const NeedleListLocalConnectorsInput = zod.z.object({}).describe("Request model for listing local connectors. No parameters required.");
|
|
5
|
+
const NeedleListLocalConnectors_FolderInfoSchema = zod.z.object({
|
|
6
|
+
recursive: zod.z.boolean().describe("Whether to recursively monitor the folder").nullable().optional(),
|
|
7
|
+
folder_path: zod.z.string().describe("Path to the folder").nullable().optional(),
|
|
8
|
+
connector_id: zod.z.string().describe("Connector ID this folder belongs to").nullable().optional()
|
|
9
|
+
}).describe("Schema for folder information in a local connector.");
|
|
10
|
+
const NeedleListLocalConnectors_LocalConnectorSchema = zod.z.object({
|
|
11
|
+
id: zod.z.string().describe("Unique identifier of the local connector"),
|
|
12
|
+
os: zod.z.string().describe("Operating system of the device").nullable().optional(),
|
|
13
|
+
cpu: zod.z.string().describe("CPU information of the device").nullable().optional(),
|
|
14
|
+
name: zod.z.string().describe("Name of the local connector"),
|
|
15
|
+
type: zod.z.string().describe("Type of connector"),
|
|
16
|
+
folders: zod.z.array(zod.z.union([zod.z.string(), NeedleListLocalConnectors_FolderInfoSchema])).describe("List of folders monitored by this connector").nullable().optional(),
|
|
17
|
+
synced_at: zod.z.string().describe("Last sync timestamp in ISO 8601 format").nullable().optional(),
|
|
18
|
+
created_at: zod.z.string().describe("Creation timestamp in ISO 8601 format").nullable().optional(),
|
|
19
|
+
device_name: zod.z.string().describe("Name of the device").nullable().optional(),
|
|
20
|
+
device_model: zod.z.string().describe("Model of the device").nullable().optional(),
|
|
21
|
+
serial_number: zod.z.string().describe("Serial number of the device").nullable().optional(),
|
|
22
|
+
collection_ids: zod.z.array(zod.z.string()).describe("List of collection IDs associated with this connector").nullable().optional()
|
|
23
|
+
}).describe("Schema for a single local connector object returned by the API.");
|
|
24
|
+
const NeedleListLocalConnectorsOutput = zod.z.object({ connectors: zod.z.array(NeedleListLocalConnectors_LocalConnectorSchema).describe("List of local connector objects").nullable().optional() }).describe("Response model for listing local connectors.");
|
|
25
|
+
const needleListLocalConnectors = require_action.action("NEEDLE_LIST_LOCAL_CONNECTORS", {
|
|
26
|
+
slug: "needle-list-local-connectors",
|
|
27
|
+
name: "List Local Connectors",
|
|
28
|
+
description: "Tool to list local connectors. Use to retrieve all local connectors configured in your Needle account.",
|
|
29
|
+
input: NeedleListLocalConnectorsInput,
|
|
30
|
+
output: NeedleListLocalConnectorsOutput
|
|
31
|
+
});
|
|
32
|
+
//#endregion
|
|
33
|
+
exports.needleListLocalConnectors = needleListLocalConnectors;
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=list-local-connectors.cjs.map
|
|
@@ -0,0 +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.ZodTypeAny = z.object({}).describe(\"Request model for listing local connectors. No parameters required.\");\nconst NeedleListLocalConnectors_FolderInfoSchema: z.ZodTypeAny = 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}).describe(\"Schema for folder information in a local connector.\");\nconst NeedleListLocalConnectors_LocalConnectorSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the local connector\"),\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\"),\n type: z.string().describe(\"Type of connector\"),\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}).describe(\"Schema for a single local connector object returned by the API.\");\nexport const NeedleListLocalConnectorsOutput: z.ZodTypeAny = z.object({\n connectors: z.array(NeedleListLocalConnectors_LocalConnectorSchema).describe(\"List of local connector objects\").nullable().optional(),\n}).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":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACvJ,MAAM,6CAA2DA,IAAAA,EAAE,OAAO;CACxE,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,SAAS,qDAAqD;AACjE,MAAM,iDAA+DA,IAAAA,EAAE,OAAO;CAC5E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAClE,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,6BAA6B;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;CAC7C,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAG,0CAA0C,CAAC,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChK,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,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,iEAAiE;AAC7E,MAAa,kCAAgDA,IAAAA,EAAE,OAAO,EACpE,YAAYA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACtI,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-local-connectors.d.ts
|
|
4
|
+
declare const NeedleListLocalConnectorsInput: z.ZodTypeAny;
|
|
5
|
+
declare const NeedleListLocalConnectorsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const needleListLocalConnectors: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { needleListLocalConnectors };
|
|
9
|
+
//# sourceMappingURL=list-local-connectors.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-local-connectors.d.cts","names":[],"sources":["../../src/actions/list-local-connectors.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAAyG;AAAA,cAoB3I,+BAAA,EAAiC,CAAA,CAAE,UAEW;AAAA,cAE9C,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-local-connectors.d.ts
|
|
4
|
+
declare const NeedleListLocalConnectorsInput: z.ZodTypeAny;
|
|
5
|
+
declare const NeedleListLocalConnectorsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const needleListLocalConnectors: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { needleListLocalConnectors };
|
|
9
|
+
//# sourceMappingURL=list-local-connectors.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-local-connectors.d.mts","names":[],"sources":["../../src/actions/list-local-connectors.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAAyG;AAAA,cAoB3I,+BAAA,EAAiC,CAAA,CAAE,UAEW;AAAA,cAE9C,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-local-connectors.ts
|
|
4
|
+
const NeedleListLocalConnectorsInput = z.object({}).describe("Request model for listing local connectors. No parameters required.");
|
|
5
|
+
const NeedleListLocalConnectors_FolderInfoSchema = z.object({
|
|
6
|
+
recursive: z.boolean().describe("Whether to recursively monitor the folder").nullable().optional(),
|
|
7
|
+
folder_path: z.string().describe("Path to the folder").nullable().optional(),
|
|
8
|
+
connector_id: z.string().describe("Connector ID this folder belongs to").nullable().optional()
|
|
9
|
+
}).describe("Schema for folder information in a local connector.");
|
|
10
|
+
const NeedleListLocalConnectors_LocalConnectorSchema = z.object({
|
|
11
|
+
id: z.string().describe("Unique identifier of the local connector"),
|
|
12
|
+
os: z.string().describe("Operating system of the device").nullable().optional(),
|
|
13
|
+
cpu: z.string().describe("CPU information of the device").nullable().optional(),
|
|
14
|
+
name: z.string().describe("Name of the local connector"),
|
|
15
|
+
type: z.string().describe("Type of connector"),
|
|
16
|
+
folders: z.array(z.union([z.string(), NeedleListLocalConnectors_FolderInfoSchema])).describe("List of folders monitored by this connector").nullable().optional(),
|
|
17
|
+
synced_at: z.string().describe("Last sync timestamp in ISO 8601 format").nullable().optional(),
|
|
18
|
+
created_at: z.string().describe("Creation timestamp in ISO 8601 format").nullable().optional(),
|
|
19
|
+
device_name: z.string().describe("Name of the device").nullable().optional(),
|
|
20
|
+
device_model: z.string().describe("Model of the device").nullable().optional(),
|
|
21
|
+
serial_number: z.string().describe("Serial number of the device").nullable().optional(),
|
|
22
|
+
collection_ids: z.array(z.string()).describe("List of collection IDs associated with this connector").nullable().optional()
|
|
23
|
+
}).describe("Schema for a single local connector object returned by the API.");
|
|
24
|
+
const needleListLocalConnectors = action("NEEDLE_LIST_LOCAL_CONNECTORS", {
|
|
25
|
+
slug: "needle-list-local-connectors",
|
|
26
|
+
name: "List Local Connectors",
|
|
27
|
+
description: "Tool to list local connectors. Use to retrieve all local connectors configured in your Needle account.",
|
|
28
|
+
input: NeedleListLocalConnectorsInput,
|
|
29
|
+
output: z.object({ connectors: z.array(NeedleListLocalConnectors_LocalConnectorSchema).describe("List of local connector objects").nullable().optional() }).describe("Response model for listing local connectors.")
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
export { needleListLocalConnectors };
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=list-local-connectors.mjs.map
|
|
@@ -0,0 +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.ZodTypeAny = z.object({}).describe(\"Request model for listing local connectors. No parameters required.\");\nconst NeedleListLocalConnectors_FolderInfoSchema: z.ZodTypeAny = 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}).describe(\"Schema for folder information in a local connector.\");\nconst NeedleListLocalConnectors_LocalConnectorSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the local connector\"),\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\"),\n type: z.string().describe(\"Type of connector\"),\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}).describe(\"Schema for a single local connector object returned by the API.\");\nexport const NeedleListLocalConnectorsOutput: z.ZodTypeAny = z.object({\n connectors: z.array(NeedleListLocalConnectors_LocalConnectorSchema).describe(\"List of local connector objects\").nullable().optional(),\n}).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":";;;AAIA,MAAa,iCAA+C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACvJ,MAAM,6CAA2D,EAAE,OAAO;CACxE,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,iDAA+D,EAAE,OAAO;CAC5E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAClE,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,6BAA6B;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;CAC7C,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,0CAA0C,CAAC,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChK,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,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,iEAAiE;AAK7E,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT2D,EAAE,OAAO,EACpE,YAAY,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACtI,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/search-collection.ts
|
|
4
|
+
const NeedleSearchCollectionInput = zod.z.object({
|
|
5
|
+
text: zod.z.string().describe("The natural-language search query to find relevant content in the collection."),
|
|
6
|
+
top_k: zod.z.number().int().describe("Maximum number of search results to return. Default is 10 (maximum).").optional(),
|
|
7
|
+
offset: zod.z.number().int().describe("Offset for pagination to skip a number of results.").optional(),
|
|
8
|
+
options: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Optional pass-through object for additional retrieval parameters supported by the API (e.g., filters, future knobs).").optional(),
|
|
9
|
+
max_distance: zod.z.string().describe("Maximum similarity distance threshold for results, between 0 and 1. Lower values mean stricter relevance. Example: '0.65'.").optional(),
|
|
10
|
+
collection_id: zod.z.string().describe("The unique identifier of the collection to search in.")
|
|
11
|
+
}).describe("Request parameters for searching within a Needle collection.");
|
|
12
|
+
const NeedleSearchCollection_SearchResultSchema = zod.z.object({
|
|
13
|
+
score: zod.z.number().describe("Relevance score or similarity distance for this result.").nullable().optional(),
|
|
14
|
+
content: zod.z.string().describe("The text content of the relevant passage extracted from the document."),
|
|
15
|
+
file_id: zod.z.string().describe("Identifier of the source file containing this result.").nullable().optional(),
|
|
16
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional metadata about the result (e.g., page number, chunk index).").nullable().optional(),
|
|
17
|
+
file_name: zod.z.string().describe("Name of the source file.").nullable().optional()
|
|
18
|
+
}).describe("A single search result from the collection.");
|
|
19
|
+
const NeedleSearchCollectionOutput = zod.z.object({
|
|
20
|
+
total: zod.z.number().int().describe("Total number of results available (if provided by API).").nullable().optional(),
|
|
21
|
+
results: zod.z.array(NeedleSearchCollection_SearchResultSchema).describe("Array of search results with content and source references.").nullable().optional()
|
|
22
|
+
}).describe("Response schema for collection search results.");
|
|
23
|
+
const needleSearchCollection = require_action.action("NEEDLE_SEARCH_COLLECTION", {
|
|
24
|
+
slug: "needle-search-collection",
|
|
25
|
+
name: "Search Collection",
|
|
26
|
+
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.",
|
|
27
|
+
input: NeedleSearchCollectionInput,
|
|
28
|
+
output: NeedleSearchCollectionOutput
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
exports.needleSearchCollection = needleSearchCollection;
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=search-collection.cjs.map
|
|
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = 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.\"),\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}).describe(\"A single search result from the collection.\");\nexport const NeedleSearchCollectionOutput: z.ZodTypeAny = 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}).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":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,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,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;AAC5F,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,4CAA0DA,IAAAA,EAAE,OAAO;CACvE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;CACpG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,SAASA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1J,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/search-collection.d.ts
|
|
4
|
+
declare const NeedleSearchCollectionInput: z.ZodTypeAny;
|
|
5
|
+
declare const NeedleSearchCollectionOutput: z.ZodTypeAny;
|
|
6
|
+
declare const needleSearchCollection: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { needleSearchCollection };
|
|
9
|
+
//# sourceMappingURL=search-collection.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-collection.d.cts","names":[],"sources":["../../src/actions/search-collection.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAO+B;AAAA,cAQ9D,4BAAA,EAA8B,CAAA,CAAE,UAGgB;AAAA,cAEhD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/search-collection.d.ts
|
|
4
|
+
declare const NeedleSearchCollectionInput: z.ZodTypeAny;
|
|
5
|
+
declare const NeedleSearchCollectionOutput: z.ZodTypeAny;
|
|
6
|
+
declare const needleSearchCollection: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { needleSearchCollection };
|
|
9
|
+
//# sourceMappingURL=search-collection.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-collection.d.mts","names":[],"sources":["../../src/actions/search-collection.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAO+B;AAAA,cAQ9D,4BAAA,EAA8B,CAAA,CAAE,UAGgB;AAAA,cAEhD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/search-collection.ts
|
|
4
|
+
const NeedleSearchCollectionInput = z.object({
|
|
5
|
+
text: z.string().describe("The natural-language search query to find relevant content in the collection."),
|
|
6
|
+
top_k: z.number().int().describe("Maximum number of search results to return. Default is 10 (maximum).").optional(),
|
|
7
|
+
offset: z.number().int().describe("Offset for pagination to skip a number of results.").optional(),
|
|
8
|
+
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(),
|
|
9
|
+
max_distance: z.string().describe("Maximum similarity distance threshold for results, between 0 and 1. Lower values mean stricter relevance. Example: '0.65'.").optional(),
|
|
10
|
+
collection_id: z.string().describe("The unique identifier of the collection to search in.")
|
|
11
|
+
}).describe("Request parameters for searching within a Needle collection.");
|
|
12
|
+
const NeedleSearchCollection_SearchResultSchema = z.object({
|
|
13
|
+
score: z.number().describe("Relevance score or similarity distance for this result.").nullable().optional(),
|
|
14
|
+
content: z.string().describe("The text content of the relevant passage extracted from the document."),
|
|
15
|
+
file_id: z.string().describe("Identifier of the source file containing this result.").nullable().optional(),
|
|
16
|
+
metadata: z.record(z.string(), z.unknown()).describe("Additional metadata about the result (e.g., page number, chunk index).").nullable().optional(),
|
|
17
|
+
file_name: z.string().describe("Name of the source file.").nullable().optional()
|
|
18
|
+
}).describe("A single search result from the collection.");
|
|
19
|
+
const needleSearchCollection = action("NEEDLE_SEARCH_COLLECTION", {
|
|
20
|
+
slug: "needle-search-collection",
|
|
21
|
+
name: "Search Collection",
|
|
22
|
+
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.",
|
|
23
|
+
input: NeedleSearchCollectionInput,
|
|
24
|
+
output: z.object({
|
|
25
|
+
total: z.number().int().describe("Total number of results available (if provided by API).").nullable().optional(),
|
|
26
|
+
results: z.array(NeedleSearchCollection_SearchResultSchema).describe("Array of search results with content and source references.").nullable().optional()
|
|
27
|
+
}).describe("Response schema for collection search results.")
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
export { needleSearchCollection };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=search-collection.mjs.map
|
|
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = 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.\"),\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}).describe(\"A single search result from the collection.\");\nexport const NeedleSearchCollectionOutput: z.ZodTypeAny = 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}).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":";;;AAIA,MAAa,8BAA4C,EAAE,OAAO;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CACzG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAClH,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACjG,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CACrL,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,4HAA4H,CAAC,CAAC,SAAS;CACzK,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;AAC5F,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,4CAA0D,EAAE,OAAO;CACvE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;CACpG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAMzD,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVwD,EAAE,OAAO;EACjE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,SAAS,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1J,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
|
package/dist/app.cjs
ADDED
package/dist/app.cjs.map
ADDED
|
@@ -0,0 +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,uCAAA,CAAA,CAAA,UAAA,CAAmB;CAC9B,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/app.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,MAAA,6BAAM,GAAA,+BAAA,UAAA"}
|
package/dist/app.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,MAAA,6BAAM,GAAA,+BAAA,UAAA"}
|
package/dist/app.mjs
ADDED
package/dist/app.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.mjs","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,SAAS,UAAU;CAC9B,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/catalog.cjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const needleCatalog = {
|
|
4
|
+
"slug": "needle",
|
|
5
|
+
"name": "Needle",
|
|
6
|
+
"description": "Needle provides retrieval-augmented generation (RAG) tools that enable semantic search across your data, facilitating the development of AI agents and applications.",
|
|
7
|
+
"category": "Artificial Intelligence",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/needle",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.needleCatalog = needleCatalog;
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const needleCatalog = {\n \"slug\": \"needle\",\n \"name\": \"Needle\",\n \"description\": \"Needle provides retrieval-augmented generation (RAG) tools that enable semantic search across your data, facilitating the development of AI agents and applications.\",\n \"category\": \"Artificial Intelligence\",\n \"logo\": \"https://logos.composio.dev/api/needle\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,gBAAgB;CAC3B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const needleCatalog: {
|
|
4
|
+
readonly slug: "needle";
|
|
5
|
+
readonly name: "Needle";
|
|
6
|
+
readonly description: "Needle provides retrieval-augmented generation (RAG) tools that enable semantic search across your data, facilitating the development of AI agents and applications.";
|
|
7
|
+
readonly category: "Artificial Intelligence";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/needle";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { needleCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.cts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,aAAA;EAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const needleCatalog: {
|
|
4
|
+
readonly slug: "needle";
|
|
5
|
+
readonly name: "Needle";
|
|
6
|
+
readonly description: "Needle provides retrieval-augmented generation (RAG) tools that enable semantic search across your data, facilitating the development of AI agents and applications.";
|
|
7
|
+
readonly category: "Artificial Intelligence";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/needle";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { needleCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.mts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,aAAA;EAAA"}
|
package/dist/catalog.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const needleCatalog = {
|
|
4
|
+
"slug": "needle",
|
|
5
|
+
"name": "Needle",
|
|
6
|
+
"description": "Needle provides retrieval-augmented generation (RAG) tools that enable semantic search across your data, facilitating the development of AI agents and applications.",
|
|
7
|
+
"category": "Artificial Intelligence",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/needle",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { needleCatalog };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const needleCatalog = {\n \"slug\": \"needle\",\n \"name\": \"Needle\",\n \"description\": \"Needle provides retrieval-augmented generation (RAG) tools that enable semantic search across your data, facilitating the development of AI agents and applications.\",\n \"category\": \"Artificial Intelligence\",\n \"logo\": \"https://logos.composio.dev/api/needle\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,gBAAgB;CAC3B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
package/dist/execute.cjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_client = require("@keystrokehq/keystroke/client");
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "needle";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeNeedleTool(tool, args) {
|
|
7
|
+
const { result } = await (0, _keystrokehq_keystroke_client.createKeystrokeClient)().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.executeNeedleTool = executeNeedleTool;
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"needle\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeNeedleTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,kBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,OAAA,GAAA,8BAAA,sBAAA,CAA4B,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/execute.mjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createKeystrokeClient } from "@keystrokehq/keystroke/client";
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "needle";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeNeedleTool(tool, args) {
|
|
7
|
+
const { result } = await createKeystrokeClient().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { executeNeedleTool };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.mjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"needle\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeNeedleTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,kBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,MAAM,sBAAsB,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_app = require("./app.cjs");
|
|
3
|
+
const require_catalog = require("./catalog.cjs");
|
|
4
|
+
const require_add_files_to_collection = require("./actions/add-files-to-collection.cjs");
|
|
5
|
+
const require_add_files_to_local_connector = require("./actions/add-files-to-local-connector.cjs");
|
|
6
|
+
const require_create_collection = require("./actions/create-collection.cjs");
|
|
7
|
+
const require_create_local_connector = require("./actions/create-local-connector.cjs");
|
|
8
|
+
const require_delete_files_from_collection = require("./actions/delete-files-from-collection.cjs");
|
|
9
|
+
const require_delete_files_from_local_connector = require("./actions/delete-files-from-local-connector.cjs");
|
|
10
|
+
const require_get_collection = require("./actions/get-collection.cjs");
|
|
11
|
+
const require_get_collection_stats = require("./actions/get-collection-stats.cjs");
|
|
12
|
+
const require_get_file_download_url = require("./actions/get-file-download-url.cjs");
|
|
13
|
+
const require_get_file_upload_url = require("./actions/get-file-upload-url.cjs");
|
|
14
|
+
const require_get_local_connector = require("./actions/get-local-connector.cjs");
|
|
15
|
+
const require_list_collection_files = require("./actions/list-collection-files.cjs");
|
|
16
|
+
const require_list_collections = require("./actions/list-collections.cjs");
|
|
17
|
+
const require_list_connectors = require("./actions/list-connectors.cjs");
|
|
18
|
+
const require_list_local_connectors = require("./actions/list-local-connectors.cjs");
|
|
19
|
+
const require_search_collection = require("./actions/search-collection.cjs");
|
|
20
|
+
require("./actions/index.cjs");
|
|
21
|
+
exports.needle = require_app.needle;
|
|
22
|
+
exports.needleAddFilesToCollection = require_add_files_to_collection.needleAddFilesToCollection;
|
|
23
|
+
exports.needleAddFilesToLocalConnector = require_add_files_to_local_connector.needleAddFilesToLocalConnector;
|
|
24
|
+
exports.needleCatalog = require_catalog.needleCatalog;
|
|
25
|
+
exports.needleCreateCollection = require_create_collection.needleCreateCollection;
|
|
26
|
+
exports.needleCreateLocalConnector = require_create_local_connector.needleCreateLocalConnector;
|
|
27
|
+
exports.needleDeleteFilesFromCollection = require_delete_files_from_collection.needleDeleteFilesFromCollection;
|
|
28
|
+
exports.needleDeleteFilesFromLocalConnector = require_delete_files_from_local_connector.needleDeleteFilesFromLocalConnector;
|
|
29
|
+
exports.needleGetCollection = require_get_collection.needleGetCollection;
|
|
30
|
+
exports.needleGetCollectionStats = require_get_collection_stats.needleGetCollectionStats;
|
|
31
|
+
exports.needleGetFileDownloadUrl = require_get_file_download_url.needleGetFileDownloadUrl;
|
|
32
|
+
exports.needleGetFileUploadUrl = require_get_file_upload_url.needleGetFileUploadUrl;
|
|
33
|
+
exports.needleGetLocalConnector = require_get_local_connector.needleGetLocalConnector;
|
|
34
|
+
exports.needleListCollectionFiles = require_list_collection_files.needleListCollectionFiles;
|
|
35
|
+
exports.needleListCollections = require_list_collections.needleListCollections;
|
|
36
|
+
exports.needleListConnectors = require_list_connectors.needleListConnectors;
|
|
37
|
+
exports.needleListLocalConnectors = require_list_local_connectors.needleListLocalConnectors;
|
|
38
|
+
exports.needleSearchCollection = require_search_collection.needleSearchCollection;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { needleAddFilesToCollection } from "./actions/add-files-to-collection.cjs";
|
|
2
|
+
import { needleAddFilesToLocalConnector } from "./actions/add-files-to-local-connector.cjs";
|
|
3
|
+
import { needleCreateCollection } from "./actions/create-collection.cjs";
|
|
4
|
+
import { needleCreateLocalConnector } from "./actions/create-local-connector.cjs";
|
|
5
|
+
import { needleDeleteFilesFromCollection } from "./actions/delete-files-from-collection.cjs";
|
|
6
|
+
import { needleDeleteFilesFromLocalConnector } from "./actions/delete-files-from-local-connector.cjs";
|
|
7
|
+
import { needleGetCollection } from "./actions/get-collection.cjs";
|
|
8
|
+
import { needleGetCollectionStats } from "./actions/get-collection-stats.cjs";
|
|
9
|
+
import { needleGetFileDownloadUrl } from "./actions/get-file-download-url.cjs";
|
|
10
|
+
import { needleGetFileUploadUrl } from "./actions/get-file-upload-url.cjs";
|
|
11
|
+
import { needleGetLocalConnector } from "./actions/get-local-connector.cjs";
|
|
12
|
+
import { needleListCollectionFiles } from "./actions/list-collection-files.cjs";
|
|
13
|
+
import { needleListCollections } from "./actions/list-collections.cjs";
|
|
14
|
+
import { needleListConnectors } from "./actions/list-connectors.cjs";
|
|
15
|
+
import { needleListLocalConnectors } from "./actions/list-local-connectors.cjs";
|
|
16
|
+
import { needleSearchCollection } from "./actions/search-collection.cjs";
|
|
17
|
+
import { needle } from "./app.cjs";
|
|
18
|
+
import { needleCatalog } from "./catalog.cjs";
|
|
19
|
+
export { needle, needleAddFilesToCollection, needleAddFilesToLocalConnector, needleCatalog, needleCreateCollection, needleCreateLocalConnector, needleDeleteFilesFromCollection, needleDeleteFilesFromLocalConnector, needleGetCollection, needleGetCollectionStats, needleGetFileDownloadUrl, needleGetFileUploadUrl, needleGetLocalConnector, needleListCollectionFiles, needleListCollections, needleListConnectors, needleListLocalConnectors, needleSearchCollection };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { needleAddFilesToCollection } from "./actions/add-files-to-collection.mjs";
|
|
2
|
+
import { needleAddFilesToLocalConnector } from "./actions/add-files-to-local-connector.mjs";
|
|
3
|
+
import { needleCreateCollection } from "./actions/create-collection.mjs";
|
|
4
|
+
import { needleCreateLocalConnector } from "./actions/create-local-connector.mjs";
|
|
5
|
+
import { needleDeleteFilesFromCollection } from "./actions/delete-files-from-collection.mjs";
|
|
6
|
+
import { needleDeleteFilesFromLocalConnector } from "./actions/delete-files-from-local-connector.mjs";
|
|
7
|
+
import { needleGetCollection } from "./actions/get-collection.mjs";
|
|
8
|
+
import { needleGetCollectionStats } from "./actions/get-collection-stats.mjs";
|
|
9
|
+
import { needleGetFileDownloadUrl } from "./actions/get-file-download-url.mjs";
|
|
10
|
+
import { needleGetFileUploadUrl } from "./actions/get-file-upload-url.mjs";
|
|
11
|
+
import { needleGetLocalConnector } from "./actions/get-local-connector.mjs";
|
|
12
|
+
import { needleListCollectionFiles } from "./actions/list-collection-files.mjs";
|
|
13
|
+
import { needleListCollections } from "./actions/list-collections.mjs";
|
|
14
|
+
import { needleListConnectors } from "./actions/list-connectors.mjs";
|
|
15
|
+
import { needleListLocalConnectors } from "./actions/list-local-connectors.mjs";
|
|
16
|
+
import { needleSearchCollection } from "./actions/search-collection.mjs";
|
|
17
|
+
import { needle } from "./app.mjs";
|
|
18
|
+
import { needleCatalog } from "./catalog.mjs";
|
|
19
|
+
export { needle, needleAddFilesToCollection, needleAddFilesToLocalConnector, needleCatalog, needleCreateCollection, needleCreateLocalConnector, needleDeleteFilesFromCollection, needleDeleteFilesFromLocalConnector, needleGetCollection, needleGetCollectionStats, needleGetFileDownloadUrl, needleGetFileUploadUrl, needleGetLocalConnector, needleListCollectionFiles, needleListCollections, needleListConnectors, needleListLocalConnectors, needleSearchCollection };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { needle } from "./app.mjs";
|
|
2
|
+
import { needleCatalog } from "./catalog.mjs";
|
|
3
|
+
import { needleAddFilesToCollection } from "./actions/add-files-to-collection.mjs";
|
|
4
|
+
import { needleAddFilesToLocalConnector } from "./actions/add-files-to-local-connector.mjs";
|
|
5
|
+
import { needleCreateCollection } from "./actions/create-collection.mjs";
|
|
6
|
+
import { needleCreateLocalConnector } from "./actions/create-local-connector.mjs";
|
|
7
|
+
import { needleDeleteFilesFromCollection } from "./actions/delete-files-from-collection.mjs";
|
|
8
|
+
import { needleDeleteFilesFromLocalConnector } from "./actions/delete-files-from-local-connector.mjs";
|
|
9
|
+
import { needleGetCollection } from "./actions/get-collection.mjs";
|
|
10
|
+
import { needleGetCollectionStats } from "./actions/get-collection-stats.mjs";
|
|
11
|
+
import { needleGetFileDownloadUrl } from "./actions/get-file-download-url.mjs";
|
|
12
|
+
import { needleGetFileUploadUrl } from "./actions/get-file-upload-url.mjs";
|
|
13
|
+
import { needleGetLocalConnector } from "./actions/get-local-connector.mjs";
|
|
14
|
+
import { needleListCollectionFiles } from "./actions/list-collection-files.mjs";
|
|
15
|
+
import { needleListCollections } from "./actions/list-collections.mjs";
|
|
16
|
+
import { needleListConnectors } from "./actions/list-connectors.mjs";
|
|
17
|
+
import { needleListLocalConnectors } from "./actions/list-local-connectors.mjs";
|
|
18
|
+
import { needleSearchCollection } from "./actions/search-collection.mjs";
|
|
19
|
+
import "./actions/index.mjs";
|
|
20
|
+
export { needle, needleAddFilesToCollection, needleAddFilesToLocalConnector, needleCatalog, needleCreateCollection, needleCreateLocalConnector, needleDeleteFilesFromCollection, needleDeleteFilesFromLocalConnector, needleGetCollection, needleGetCollectionStats, needleGetFileDownloadUrl, needleGetFileUploadUrl, needleGetLocalConnector, needleListCollectionFiles, needleListCollections, needleListConnectors, needleListLocalConnectors, needleSearchCollection };
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@keystrokehq/needle",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public",
|
|
6
|
+
"registry": "https://registry.npmjs.org"
|
|
7
|
+
},
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/keystrokehq/keystroke.git",
|
|
11
|
+
"directory": "packages/integrations/needle"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"sideEffects": false,
|
|
17
|
+
"type": "module",
|
|
18
|
+
"main": "./dist/index.cjs",
|
|
19
|
+
"module": "./dist/index.mjs",
|
|
20
|
+
"types": "./dist/index.d.mts",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/index.d.mts",
|
|
24
|
+
"import": "./dist/index.mjs",
|
|
25
|
+
"require": "./dist/index.cjs"
|
|
26
|
+
},
|
|
27
|
+
"./actions": {
|
|
28
|
+
"types": "./dist/actions/index.d.mts",
|
|
29
|
+
"import": "./dist/actions/index.mjs",
|
|
30
|
+
"require": "./dist/actions/index.cjs"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"@keystrokehq/keystroke": "^0.1.4",
|
|
35
|
+
"zod": "^4.4.3"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@keystrokehq/keystroke": "link:../../keystroke",
|
|
39
|
+
"@types/node": "^25.9.1",
|
|
40
|
+
"tsdown": "^0.22.0",
|
|
41
|
+
"typescript": "^6.0.3",
|
|
42
|
+
"zod": "^4.4.3"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "tsdown",
|
|
46
|
+
"dev": "tsdown --watch --no-clean",
|
|
47
|
+
"typecheck": "tsc --noEmit"
|
|
48
|
+
}
|
|
49
|
+
}
|