@keystrokehq/needle 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/dist/actions/add-files-to-collection.cjs +3 -3
  2. package/dist/actions/add-files-to-collection.cjs.map +1 -1
  3. package/dist/actions/add-files-to-collection.d.cts +4 -3
  4. package/dist/actions/add-files-to-collection.d.mts +4 -3
  5. package/dist/actions/add-files-to-collection.mjs +3 -3
  6. package/dist/actions/add-files-to-collection.mjs.map +1 -1
  7. package/dist/actions/add-files-to-local-connector.cjs +3 -3
  8. package/dist/actions/add-files-to-local-connector.cjs.map +1 -1
  9. package/dist/actions/add-files-to-local-connector.d.cts +4 -3
  10. package/dist/actions/add-files-to-local-connector.d.mts +4 -3
  11. package/dist/actions/add-files-to-local-connector.mjs +3 -3
  12. package/dist/actions/add-files-to-local-connector.mjs.map +1 -1
  13. package/dist/actions/create-collection.cjs +1 -1
  14. package/dist/actions/create-collection.cjs.map +1 -1
  15. package/dist/actions/create-collection.d.cts +1 -1
  16. package/dist/actions/create-collection.d.mts +1 -1
  17. package/dist/actions/create-collection.mjs +1 -1
  18. package/dist/actions/create-collection.mjs.map +1 -1
  19. package/dist/actions/create-local-connector.cjs +4 -4
  20. package/dist/actions/create-local-connector.cjs.map +1 -1
  21. package/dist/actions/create-local-connector.d.cts +5 -4
  22. package/dist/actions/create-local-connector.d.mts +5 -4
  23. package/dist/actions/create-local-connector.mjs +4 -4
  24. package/dist/actions/create-local-connector.mjs.map +1 -1
  25. package/dist/actions/delete-files-from-collection.cjs +1 -1
  26. package/dist/actions/delete-files-from-collection.cjs.map +1 -1
  27. package/dist/actions/delete-files-from-collection.d.cts +1 -1
  28. package/dist/actions/delete-files-from-collection.d.mts +1 -1
  29. package/dist/actions/delete-files-from-collection.mjs +1 -1
  30. package/dist/actions/delete-files-from-collection.mjs.map +1 -1
  31. package/dist/actions/delete-files-from-local-connector.cjs +2 -2
  32. package/dist/actions/delete-files-from-local-connector.cjs.map +1 -1
  33. package/dist/actions/delete-files-from-local-connector.d.cts +2 -2
  34. package/dist/actions/delete-files-from-local-connector.d.mts +2 -2
  35. package/dist/actions/delete-files-from-local-connector.mjs +2 -2
  36. package/dist/actions/delete-files-from-local-connector.mjs.map +1 -1
  37. package/dist/actions/get-collection-stats.cjs +2 -2
  38. package/dist/actions/get-collection-stats.cjs.map +1 -1
  39. package/dist/actions/get-collection-stats.d.cts +2 -2
  40. package/dist/actions/get-collection-stats.d.mts +2 -2
  41. package/dist/actions/get-collection-stats.mjs +2 -2
  42. package/dist/actions/get-collection-stats.mjs.map +1 -1
  43. package/dist/actions/get-collection.cjs +1 -1
  44. package/dist/actions/get-collection.cjs.map +1 -1
  45. package/dist/actions/get-collection.d.cts +1 -1
  46. package/dist/actions/get-collection.d.mts +1 -1
  47. package/dist/actions/get-collection.mjs +1 -1
  48. package/dist/actions/get-collection.mjs.map +1 -1
  49. package/dist/actions/get-file-download-url.cjs +1 -1
  50. package/dist/actions/get-file-download-url.cjs.map +1 -1
  51. package/dist/actions/get-file-download-url.d.cts +1 -1
  52. package/dist/actions/get-file-download-url.d.mts +1 -1
  53. package/dist/actions/get-file-download-url.mjs +1 -1
  54. package/dist/actions/get-file-download-url.mjs.map +1 -1
  55. package/dist/actions/get-file-upload-url.cjs +2 -2
  56. package/dist/actions/get-file-upload-url.cjs.map +1 -1
  57. package/dist/actions/get-file-upload-url.d.cts +2 -2
  58. package/dist/actions/get-file-upload-url.d.mts +2 -2
  59. package/dist/actions/get-file-upload-url.mjs +2 -2
  60. package/dist/actions/get-file-upload-url.mjs.map +1 -1
  61. package/dist/actions/get-local-connector.cjs +3 -3
  62. package/dist/actions/get-local-connector.cjs.map +1 -1
  63. package/dist/actions/get-local-connector.d.cts +3 -3
  64. package/dist/actions/get-local-connector.d.mts +3 -3
  65. package/dist/actions/get-local-connector.mjs +3 -3
  66. package/dist/actions/get-local-connector.mjs.map +1 -1
  67. package/dist/actions/list-collection-files.cjs +2 -2
  68. package/dist/actions/list-collection-files.cjs.map +1 -1
  69. package/dist/actions/list-collection-files.d.cts +2 -2
  70. package/dist/actions/list-collection-files.d.mts +2 -2
  71. package/dist/actions/list-collection-files.mjs +2 -2
  72. package/dist/actions/list-collection-files.mjs.map +1 -1
  73. package/dist/actions/list-collections.cjs +4 -4
  74. package/dist/actions/list-collections.cjs.map +1 -1
  75. package/dist/actions/list-collections.d.cts +4 -4
  76. package/dist/actions/list-collections.d.mts +4 -4
  77. package/dist/actions/list-collections.mjs +4 -4
  78. package/dist/actions/list-collections.mjs.map +1 -1
  79. package/dist/actions/list-connectors.cjs +2 -2
  80. package/dist/actions/list-connectors.cjs.map +1 -1
  81. package/dist/actions/list-connectors.d.cts +2 -2
  82. package/dist/actions/list-connectors.d.mts +2 -2
  83. package/dist/actions/list-connectors.mjs +2 -2
  84. package/dist/actions/list-connectors.mjs.map +1 -1
  85. package/dist/actions/list-local-connectors.cjs +3 -3
  86. package/dist/actions/list-local-connectors.cjs.map +1 -1
  87. package/dist/actions/list-local-connectors.d.cts +3 -3
  88. package/dist/actions/list-local-connectors.d.mts +3 -3
  89. package/dist/actions/list-local-connectors.mjs +3 -3
  90. package/dist/actions/list-local-connectors.mjs.map +1 -1
  91. package/dist/actions/search-collection.cjs +2 -2
  92. package/dist/actions/search-collection.cjs.map +1 -1
  93. package/dist/actions/search-collection.d.cts +2 -2
  94. package/dist/actions/search-collection.d.mts +2 -2
  95. package/dist/actions/search-collection.mjs +2 -2
  96. package/dist/actions/search-collection.mjs.map +1 -1
  97. package/package.json +1 -1
@@ -5,7 +5,7 @@ const NeedleAddFilesToCollectionInput = zod.z.object({
5
5
  files: zod.z.array(zod.z.object({
6
6
  url: zod.z.string().describe("URL of the file. Can be a public URL or a private URL generated from the Files API."),
7
7
  name: zod.z.string().describe("Name of the file including extension")
8
- }).describe("Schema for a single file to add to the collection.")).describe("List of files to add to the collection. Each file must have a name and URL."),
8
+ }).passthrough().describe("Schema for a single file to add to the collection.")).describe("List of files to add to the collection. Each file must have a name and URL."),
9
9
  collection_id: zod.z.string().describe("The unique identifier of the collection to add files to")
10
10
  }).describe("Request schema for adding files to a collection.");
11
11
  const NeedleAddFilesToCollection_FileResultSchema = zod.z.object({
@@ -19,8 +19,8 @@ const NeedleAddFilesToCollection_FileResultSchema = zod.z.object({
19
19
  user_id: zod.z.string().describe("ID of the user who uploaded the file").nullable().optional(),
20
20
  md5_hash: zod.z.string().describe("MD5 hash of the file").nullable().optional(),
21
21
  created_at: zod.z.string().describe("Creation timestamp in ISO 8601 format").nullable().optional()
22
- }).describe("Schema for a single file result returned by the API.");
23
- const NeedleAddFilesToCollectionOutput = zod.z.object({ result: zod.z.array(NeedleAddFilesToCollection_FileResultSchema).describe("List of file results. Each entry contains the file details or error information.") }).describe("Response schema after adding files to a collection.");
22
+ }).passthrough().describe("Schema for a single file result returned by the API.");
23
+ const NeedleAddFilesToCollectionOutput = zod.z.object({ result: zod.z.array(NeedleAddFilesToCollection_FileResultSchema).describe("List of file results. Each entry contains the file details or error information.") }).passthrough().describe("Response schema after adding files to a collection.");
24
24
  const needleAddFilesToCollection = require_action.action("NEEDLE_ADD_FILES_TO_COLLECTION", {
25
25
  slug: "needle-add-files-to-collection",
26
26
  name: "Add files to a collection",
@@ -1 +1 @@
1
- {"version":3,"file":"add-files-to-collection.cjs","names":["z","action"],"sources":["../../src/actions/add-files-to-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleAddFilesToCollectionInput = z.object({\n files: z.array(z.object({\n url: z.string().describe(\"URL of the file. Can be a public URL or a private URL generated from the Files API.\"),\n name: z.string().describe(\"Name of the file including extension\"),\n}).describe(\"Schema for a single file to add to the collection.\")).describe(\"List of files to add to the collection. Each file must have a name and URL.\"),\n collection_id: z.string().describe(\"The unique identifier of the collection to add files to\"),\n}).describe(\"Request schema for adding files to a collection.\");\nconst NeedleAddFilesToCollection_FileResultSchema = z.object({\n id: z.string().describe(\"Unique file identifier\").nullable().optional(),\n url: z.string().describe(\"URL of the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"Size of the file in bytes\").nullable().optional(),\n type: z.string().describe(\"MIME type of the file\").nullable().optional(),\n error: z.string().describe(\"Error message if file processing failed\").nullable().optional(),\n status: z.string().describe(\"Current status of the file\").nullable().optional(),\n user_id: z.string().describe(\"ID of the user who uploaded the file\").nullable().optional(),\n md5_hash: z.string().describe(\"MD5 hash of the file\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable().optional(),\n}).describe(\"Schema for a single file result returned by the API.\");\nexport const NeedleAddFilesToCollectionOutput = z.object({\n result: z.array(NeedleAddFilesToCollection_FileResultSchema).describe(\"List of file results. Each entry contains the file details or error information.\"),\n}).describe(\"Response schema after adding files to a collection.\");\n\nexport const needleAddFilesToCollection = action(\"NEEDLE_ADD_FILES_TO_COLLECTION\", {\n slug: \"needle-add-files-to-collection\",\n name: \"Add files to a collection\",\n description: \"Tool to add files to a collection by providing file URLs. Use when you need to add one or more files to an existing collection. URLs can be public or private (generated via the Files API).\",\n input: NeedleAddFilesToCollectionInput,\n output: NeedleAddFilesToCollectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;EAC9G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAClE,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,CAAC,SAAS,6EAA6E;CACvJ,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;AAC9F,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,IAAIA,IAAA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P,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"add-files-to-collection.cjs","names":["z","action"],"sources":["../../src/actions/add-files-to-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleAddFilesToCollectionInput = z.object({\n files: z.array(z.object({\n url: z.string().describe(\"URL of the file. Can be a public URL or a private URL generated from the Files API.\"),\n name: z.string().describe(\"Name of the file including extension\"),\n}).passthrough().describe(\"Schema for a single file to add to the collection.\")).describe(\"List of files to add to the collection. Each file must have a name and URL.\"),\n collection_id: z.string().describe(\"The unique identifier of the collection to add files to\"),\n}).describe(\"Request schema for adding files to a collection.\");\nconst NeedleAddFilesToCollection_FileResultSchema = z.object({\n id: z.string().describe(\"Unique file identifier\").nullable().optional(),\n url: z.string().describe(\"URL of the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"Size of the file in bytes\").nullable().optional(),\n type: z.string().describe(\"MIME type of the file\").nullable().optional(),\n error: z.string().describe(\"Error message if file processing failed\").nullable().optional(),\n status: z.string().describe(\"Current status of the file\").nullable().optional(),\n user_id: z.string().describe(\"ID of the user who uploaded the file\").nullable().optional(),\n md5_hash: z.string().describe(\"MD5 hash of the file\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable().optional(),\n}).passthrough().describe(\"Schema for a single file result returned by the API.\");\nexport const NeedleAddFilesToCollectionOutput = z.object({\n result: z.array(NeedleAddFilesToCollection_FileResultSchema).describe(\"List of file results. Each entry contains the file details or error information.\"),\n}).passthrough().describe(\"Response schema after adding files to a collection.\");\n\nexport const needleAddFilesToCollection = action(\"NEEDLE_ADD_FILES_TO_COLLECTION\", {\n slug: \"needle-add-files-to-collection\",\n name: \"Add files to a collection\",\n description: \"Tool to add files to a collection by providing file URLs. Use when you need to add one or more files to an existing collection. URLs can be public or private (generated via the Files API).\",\n input: NeedleAddFilesToCollectionInput,\n output: NeedleAddFilesToCollectionOutput,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AC,SAAS;CACzF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAChF,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,QAAQA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,kFAAkF,EAC1J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAE/E,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -5,7 +5,7 @@ declare const NeedleAddFilesToCollectionInput: z.ZodObject<{
5
5
  files: z.ZodArray<z.ZodObject<{
6
6
  url: z.ZodString;
7
7
  name: z.ZodString;
8
- }, z.core.$strip>>;
8
+ }, z.core.$loose>>;
9
9
  collection_id: z.ZodString;
10
10
  }, z.core.$strip>;
11
11
  declare const NeedleAddFilesToCollectionOutput: z.ZodObject<{
@@ -20,10 +20,11 @@ declare const NeedleAddFilesToCollectionOutput: z.ZodObject<{
20
20
  user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
21
  md5_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
22
  created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
- }, z.core.$strip>>;
24
- }, z.core.$strip>;
23
+ }, z.core.$loose>>;
24
+ }, z.core.$loose>;
25
25
  declare const needleAddFilesToCollection: import("@keystrokehq/action").WorkflowActionDefinition<{
26
26
  files: {
27
+ [x: string]: unknown;
27
28
  url: string;
28
29
  name: string;
29
30
  }[];
@@ -5,7 +5,7 @@ declare const NeedleAddFilesToCollectionInput: z.ZodObject<{
5
5
  files: z.ZodArray<z.ZodObject<{
6
6
  url: z.ZodString;
7
7
  name: z.ZodString;
8
- }, z.core.$strip>>;
8
+ }, z.core.$loose>>;
9
9
  collection_id: z.ZodString;
10
10
  }, z.core.$strip>;
11
11
  declare const NeedleAddFilesToCollectionOutput: z.ZodObject<{
@@ -20,10 +20,11 @@ declare const NeedleAddFilesToCollectionOutput: z.ZodObject<{
20
20
  user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
21
  md5_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
22
  created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
- }, z.core.$strip>>;
24
- }, z.core.$strip>;
23
+ }, z.core.$loose>>;
24
+ }, z.core.$loose>;
25
25
  declare const needleAddFilesToCollection: import("@keystrokehq/action").WorkflowActionDefinition<{
26
26
  files: {
27
+ [x: string]: unknown;
27
28
  url: string;
28
29
  name: string;
29
30
  }[];
@@ -5,7 +5,7 @@ const NeedleAddFilesToCollectionInput = z.object({
5
5
  files: z.array(z.object({
6
6
  url: z.string().describe("URL of the file. Can be a public URL or a private URL generated from the Files API."),
7
7
  name: z.string().describe("Name of the file including extension")
8
- }).describe("Schema for a single file to add to the collection.")).describe("List of files to add to the collection. Each file must have a name and URL."),
8
+ }).passthrough().describe("Schema for a single file to add to the collection.")).describe("List of files to add to the collection. Each file must have a name and URL."),
9
9
  collection_id: z.string().describe("The unique identifier of the collection to add files to")
10
10
  }).describe("Request schema for adding files to a collection.");
11
11
  const NeedleAddFilesToCollection_FileResultSchema = z.object({
@@ -19,13 +19,13 @@ const NeedleAddFilesToCollection_FileResultSchema = z.object({
19
19
  user_id: z.string().describe("ID of the user who uploaded the file").nullable().optional(),
20
20
  md5_hash: z.string().describe("MD5 hash of the file").nullable().optional(),
21
21
  created_at: z.string().describe("Creation timestamp in ISO 8601 format").nullable().optional()
22
- }).describe("Schema for a single file result returned by the API.");
22
+ }).passthrough().describe("Schema for a single file result returned by the API.");
23
23
  const needleAddFilesToCollection = action("NEEDLE_ADD_FILES_TO_COLLECTION", {
24
24
  slug: "needle-add-files-to-collection",
25
25
  name: "Add files to a collection",
26
26
  description: "Tool to add files to a collection by providing file URLs. Use when you need to add one or more files to an existing collection. URLs can be public or private (generated via the Files API).",
27
27
  input: NeedleAddFilesToCollectionInput,
28
- output: z.object({ result: z.array(NeedleAddFilesToCollection_FileResultSchema).describe("List of file results. Each entry contains the file details or error information.") }).describe("Response schema after adding files to a collection.")
28
+ output: z.object({ result: z.array(NeedleAddFilesToCollection_FileResultSchema).describe("List of file results. Each entry contains the file details or error information.") }).passthrough().describe("Response schema after adding files to a collection.")
29
29
  });
30
30
  //#endregion
31
31
  export { needleAddFilesToCollection };
@@ -1 +1 @@
1
- {"version":3,"file":"add-files-to-collection.mjs","names":[],"sources":["../../src/actions/add-files-to-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleAddFilesToCollectionInput = z.object({\n files: z.array(z.object({\n url: z.string().describe(\"URL of the file. Can be a public URL or a private URL generated from the Files API.\"),\n name: z.string().describe(\"Name of the file including extension\"),\n}).describe(\"Schema for a single file to add to the collection.\")).describe(\"List of files to add to the collection. Each file must have a name and URL.\"),\n collection_id: z.string().describe(\"The unique identifier of the collection to add files to\"),\n}).describe(\"Request schema for adding files to a collection.\");\nconst NeedleAddFilesToCollection_FileResultSchema = z.object({\n id: z.string().describe(\"Unique file identifier\").nullable().optional(),\n url: z.string().describe(\"URL of the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"Size of the file in bytes\").nullable().optional(),\n type: z.string().describe(\"MIME type of the file\").nullable().optional(),\n error: z.string().describe(\"Error message if file processing failed\").nullable().optional(),\n status: z.string().describe(\"Current status of the file\").nullable().optional(),\n user_id: z.string().describe(\"ID of the user who uploaded the file\").nullable().optional(),\n md5_hash: z.string().describe(\"MD5 hash of the file\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable().optional(),\n}).describe(\"Schema for a single file result returned by the API.\");\nexport const NeedleAddFilesToCollectionOutput = z.object({\n result: z.array(NeedleAddFilesToCollection_FileResultSchema).describe(\"List of file results. Each entry contains the file details or error information.\"),\n}).describe(\"Response schema after adding files to a collection.\");\n\nexport const needleAddFilesToCollection = action(\"NEEDLE_ADD_FILES_TO_COLLECTION\", {\n slug: \"needle-add-files-to-collection\",\n name: \"Add files to a collection\",\n description: \"Tool to add files to a collection by providing file URLs. Use when you need to add one or more files to an existing collection. URLs can be public or private (generated via the Files API).\",\n input: NeedleAddFilesToCollectionInput,\n output: NeedleAddFilesToCollectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,OAAO,EAAE,MAAM,EAAE,OAAO;EACxB,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;EAC9G,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAClE,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,CAAC,SAAS,6EAA6E;CACvJ,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;AAC9F,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,8CAA8C,EAAE,OAAO;CAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAKlE,MAAa,6BAA6B,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT8C,EAAE,OAAO,EACvD,QAAQ,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,kFAAkF,EAC1J,CAAC,CAAC,CAAC,SAAS,qDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"add-files-to-collection.mjs","names":[],"sources":["../../src/actions/add-files-to-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleAddFilesToCollectionInput = z.object({\n files: z.array(z.object({\n url: z.string().describe(\"URL of the file. Can be a public URL or a private URL generated from the Files API.\"),\n name: z.string().describe(\"Name of the file including extension\"),\n}).passthrough().describe(\"Schema for a single file to add to the collection.\")).describe(\"List of files to add to the collection. Each file must have a name and URL.\"),\n collection_id: z.string().describe(\"The unique identifier of the collection to add files to\"),\n}).describe(\"Request schema for adding files to a collection.\");\nconst NeedleAddFilesToCollection_FileResultSchema = z.object({\n id: z.string().describe(\"Unique file identifier\").nullable().optional(),\n url: z.string().describe(\"URL of the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"Size of the file in bytes\").nullable().optional(),\n type: z.string().describe(\"MIME type of the file\").nullable().optional(),\n error: z.string().describe(\"Error message if file processing failed\").nullable().optional(),\n status: z.string().describe(\"Current status of the file\").nullable().optional(),\n user_id: z.string().describe(\"ID of the user who uploaded the file\").nullable().optional(),\n md5_hash: z.string().describe(\"MD5 hash of the file\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable().optional(),\n}).passthrough().describe(\"Schema for a single file result returned by the API.\");\nexport const NeedleAddFilesToCollectionOutput = z.object({\n result: z.array(NeedleAddFilesToCollection_FileResultSchema).describe(\"List of file results. Each entry contains the file details or error information.\"),\n}).passthrough().describe(\"Response schema after adding files to a collection.\");\n\nexport const needleAddFilesToCollection = action(\"NEEDLE_ADD_FILES_TO_COLLECTION\", {\n slug: \"needle-add-files-to-collection\",\n name: \"Add files to a collection\",\n description: \"Tool to add files to a collection by providing file URLs. Use when you need to add one or more files to an existing collection. URLs can be public or private (generated via the Files API).\",\n input: NeedleAddFilesToCollectionInput,\n output: NeedleAddFilesToCollectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,OAAO,EAAE,MAAM,EAAE,OAAO;EACxB,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;EAC9G,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,CAAC,SAAS,6EAA6E;CACrK,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;AAC9F,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,8CAA8C,EAAE,OAAO;CAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAKhF,MAAa,6BAA6B,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT8C,EAAE,OAAO,EACvD,QAAQ,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,kFAAkF,EAC1J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAOhB;AACV,CAAC"}
@@ -6,7 +6,7 @@ const NeedleAddFilesToLocalConnectorInput = zod.z.object({
6
6
  url: zod.z.string().describe("URL where the file can be accessed"),
7
7
  name: zod.z.string().describe("Name of the file"),
8
8
  updated_at: zod.z.string().describe("Timestamp when the file was last updated in ISO 8601 format")
9
- }).describe("Schema for a file to add to the local connector.")).describe("List of files to add to the local connector"),
9
+ }).passthrough().describe("Schema for a file to add to the local connector.")).describe("List of files to add to the local connector"),
10
10
  connector_id: zod.z.string().describe("The unique identifier of the local connector to add files to")
11
11
  }).describe("Request schema for adding files to a local connector.");
12
12
  const NeedleAddFilesToLocalConnector_FileOutputSchema = zod.z.object({
@@ -20,8 +20,8 @@ const NeedleAddFilesToLocalConnector_FileOutputSchema = zod.z.object({
20
20
  created_at: zod.z.string().describe("Timestamp when the file was created in the system").nullable().optional(),
21
21
  updated_at: zod.z.string().describe("Timestamp when the file was last updated").nullable().optional(),
22
22
  connector_id: zod.z.string().describe("ID of the connector the file was added to").nullable().optional()
23
- }).describe("Schema for a file object returned by the API after adding to local connector.");
24
- const NeedleAddFilesToLocalConnectorOutput = zod.z.object({ result: zod.z.array(NeedleAddFilesToLocalConnector_FileOutputSchema).describe("List of file objects that were added to the local connector") }).describe("Response schema after adding files to a local connector.");
23
+ }).passthrough().describe("Schema for a file object returned by the API after adding to local connector.");
24
+ const NeedleAddFilesToLocalConnectorOutput = zod.z.object({ result: zod.z.array(NeedleAddFilesToLocalConnector_FileOutputSchema).describe("List of file objects that were added to the local connector") }).passthrough().describe("Response schema after adding files to a local connector.");
25
25
  const needleAddFilesToLocalConnector = require_action.action("NEEDLE_ADD_FILES_TO_LOCAL_CONNECTOR", {
26
26
  slug: "needle-add-files-to-local-connector",
27
27
  name: "Add Files to Local Connector",
@@ -1 +1 @@
1
- {"version":3,"file":"add-files-to-local-connector.cjs","names":["z","action"],"sources":["../../src/actions/add-files-to-local-connector.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleAddFilesToLocalConnectorInput = z.object({\n files: z.array(z.object({\n url: z.string().describe(\"URL where the file can be accessed\"),\n name: z.string().describe(\"Name of the file\"),\n updated_at: z.string().describe(\"Timestamp when the file was last updated in ISO 8601 format\"),\n}).describe(\"Schema for a file to add to the local connector.\")).describe(\"List of files to add to the local connector\"),\n connector_id: z.string().describe(\"The unique identifier of the local connector to add files to\"),\n}).describe(\"Request schema for adding files to a local connector.\");\nconst NeedleAddFilesToLocalConnector_FileOutputSchema = z.object({\n id: z.string().describe(\"Unique file identifier\").nullable().optional(),\n url: z.string().describe(\"URL of the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"Size of the file in bytes\").nullable().optional(),\n type: z.string().describe(\"MIME type of the file\").nullable().optional(),\n user_id: z.string().describe(\"ID of the user who added the file\").nullable().optional(),\n md5_hash: z.string().describe(\"MD5 hash of the file\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the file was created in the system\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the file was last updated\").nullable().optional(),\n connector_id: z.string().describe(\"ID of the connector the file was added to\").nullable().optional(),\n}).describe(\"Schema for a file object returned by the API after adding to local connector.\");\nexport const NeedleAddFilesToLocalConnectorOutput = z.object({\n result: z.array(NeedleAddFilesToLocalConnector_FileOutputSchema).describe(\"List of file objects that were added to the local connector\"),\n}).describe(\"Response schema after adding files to a local connector.\");\n\nexport const needleAddFilesToLocalConnector = action(\"NEEDLE_ADD_FILES_TO_LOCAL_CONNECTOR\", {\n slug: \"needle-add-files-to-local-connector\",\n name: \"Add Files to Local Connector\",\n description: \"Tool to add files to a local connector by providing file metadata. Use when you need to add external files to a connector using their URLs.\",\n input: NeedleAddFilesToLocalConnectorInput,\n output: NeedleAddFilesToLocalConnectorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;EAC5C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CAC/F,CAAC,CAAC,CAAC,SAAS,k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3D,QAAQA,IAAAA,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,6DAA6D,EACzI,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAEtE,MAAa,iCAAiCC,eAAAA,OAAO,uCAAuC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"add-files-to-local-connector.cjs","names":["z","action"],"sources":["../../src/actions/add-files-to-local-connector.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleAddFilesToLocalConnectorInput = z.object({\n files: z.array(z.object({\n url: z.string().describe(\"URL where the file can be accessed\"),\n name: z.string().describe(\"Name of the file\"),\n updated_at: z.string().describe(\"Timestamp when the file was last updated in ISO 8601 format\"),\n}).passthrough().describe(\"Schema for a file to add to the local connector.\")).describe(\"List of files to add to the local connector\"),\n connector_id: z.string().describe(\"The unique identifier of the local connector to add files to\"),\n}).describe(\"Request schema for adding files to a local connector.\");\nconst NeedleAddFilesToLocalConnector_FileOutputSchema = z.object({\n id: z.string().describe(\"Unique file identifier\").nullable().optional(),\n url: z.string().describe(\"URL of the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"Size of the file in bytes\").nullable().optional(),\n type: z.string().describe(\"MIME type of the file\").nullable().optional(),\n user_id: z.string().describe(\"ID of the user who added the file\").nullable().optional(),\n md5_hash: z.string().describe(\"MD5 hash of the file\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the file was created in the system\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the file was last updated\").nullable().optional(),\n connector_id: z.string().describe(\"ID of the connector the file was added to\").nullable().optional(),\n}).passthrough().describe(\"Schema for a file object returned by the API after adding to local connector.\");\nexport const NeedleAddFilesToLocalConnectorOutput = z.object({\n result: z.array(NeedleAddFilesToLocalConnector_FileOutputSchema).describe(\"List of file objects that were added to the local connector\"),\n}).passthrough().describe(\"Response schema after adding files to a local connector.\");\n\nexport const needleAddFilesToLocalConnector = action(\"NEEDLE_ADD_FILES_TO_LOCAL_CONNECTOR\", {\n slug: \"needle-add-files-to-local-connector\",\n name: \"Add Files to Local Connector\",\n description: \"Tool to add files to a local connector by providing file metadata. Use when you need to add external files to a connector using their URLs.\",\n input: NeedleAddFilesToLocalConnectorInput,\n output: NeedleAddFilesToLocalConnectorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;EAC5C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,CAAC,SAAS,6CAA6C;CACnI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;AAClG,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,kDAAkDA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAA+E;AACzG,MAAa,uCAAuCA,IAAAA,EAAE,OAAO,EAC3D,QAAQA,IAAAA,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,6DAA6D,EACzI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAEpF,MAAa,iCAAiCC,eAAAA,OAAO,uCAAuC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -6,7 +6,7 @@ declare const NeedleAddFilesToLocalConnectorInput: z.ZodObject<{
6
6
  url: z.ZodString;
7
7
  name: z.ZodString;
8
8
  updated_at: z.ZodString;
9
- }, z.core.$strip>>;
9
+ }, z.core.$loose>>;
10
10
  connector_id: z.ZodString;
11
11
  }, z.core.$strip>;
12
12
  declare const NeedleAddFilesToLocalConnectorOutput: z.ZodObject<{
@@ -21,10 +21,11 @@ declare const NeedleAddFilesToLocalConnectorOutput: z.ZodObject<{
21
21
  created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
22
  updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
23
  connector_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
- }, z.core.$strip>>;
25
- }, z.core.$strip>;
24
+ }, z.core.$loose>>;
25
+ }, z.core.$loose>;
26
26
  declare const needleAddFilesToLocalConnector: import("@keystrokehq/action").WorkflowActionDefinition<{
27
27
  files: {
28
+ [x: string]: unknown;
28
29
  url: string;
29
30
  name: string;
30
31
  updated_at: string;
@@ -6,7 +6,7 @@ declare const NeedleAddFilesToLocalConnectorInput: z.ZodObject<{
6
6
  url: z.ZodString;
7
7
  name: z.ZodString;
8
8
  updated_at: z.ZodString;
9
- }, z.core.$strip>>;
9
+ }, z.core.$loose>>;
10
10
  connector_id: z.ZodString;
11
11
  }, z.core.$strip>;
12
12
  declare const NeedleAddFilesToLocalConnectorOutput: z.ZodObject<{
@@ -21,10 +21,11 @@ declare const NeedleAddFilesToLocalConnectorOutput: z.ZodObject<{
21
21
  created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
22
  updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
23
  connector_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
- }, z.core.$strip>>;
25
- }, z.core.$strip>;
24
+ }, z.core.$loose>>;
25
+ }, z.core.$loose>;
26
26
  declare const needleAddFilesToLocalConnector: import("@keystrokehq/action").WorkflowActionDefinition<{
27
27
  files: {
28
+ [x: string]: unknown;
28
29
  url: string;
29
30
  name: string;
30
31
  updated_at: string;
@@ -6,7 +6,7 @@ const NeedleAddFilesToLocalConnectorInput = z.object({
6
6
  url: z.string().describe("URL where the file can be accessed"),
7
7
  name: z.string().describe("Name of the file"),
8
8
  updated_at: z.string().describe("Timestamp when the file was last updated in ISO 8601 format")
9
- }).describe("Schema for a file to add to the local connector.")).describe("List of files to add to the local connector"),
9
+ }).passthrough().describe("Schema for a file to add to the local connector.")).describe("List of files to add to the local connector"),
10
10
  connector_id: z.string().describe("The unique identifier of the local connector to add files to")
11
11
  }).describe("Request schema for adding files to a local connector.");
12
12
  const NeedleAddFilesToLocalConnector_FileOutputSchema = z.object({
@@ -20,13 +20,13 @@ const NeedleAddFilesToLocalConnector_FileOutputSchema = z.object({
20
20
  created_at: z.string().describe("Timestamp when the file was created in the system").nullable().optional(),
21
21
  updated_at: z.string().describe("Timestamp when the file was last updated").nullable().optional(),
22
22
  connector_id: z.string().describe("ID of the connector the file was added to").nullable().optional()
23
- }).describe("Schema for a file object returned by the API after adding to local connector.");
23
+ }).passthrough().describe("Schema for a file object returned by the API after adding to local connector.");
24
24
  const needleAddFilesToLocalConnector = action("NEEDLE_ADD_FILES_TO_LOCAL_CONNECTOR", {
25
25
  slug: "needle-add-files-to-local-connector",
26
26
  name: "Add Files to Local Connector",
27
27
  description: "Tool to add files to a local connector by providing file metadata. Use when you need to add external files to a connector using their URLs.",
28
28
  input: NeedleAddFilesToLocalConnectorInput,
29
- output: z.object({ result: z.array(NeedleAddFilesToLocalConnector_FileOutputSchema).describe("List of file objects that were added to the local connector") }).describe("Response schema after adding files to a local connector.")
29
+ output: z.object({ result: z.array(NeedleAddFilesToLocalConnector_FileOutputSchema).describe("List of file objects that were added to the local connector") }).passthrough().describe("Response schema after adding files to a local connector.")
30
30
  });
31
31
  //#endregion
32
32
  export { needleAddFilesToLocalConnector };
@@ -1 +1 @@
1
- {"version":3,"file":"add-files-to-local-connector.mjs","names":[],"sources":["../../src/actions/add-files-to-local-connector.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleAddFilesToLocalConnectorInput = z.object({\n files: z.array(z.object({\n url: z.string().describe(\"URL where the file can be accessed\"),\n name: z.string().describe(\"Name of the file\"),\n updated_at: z.string().describe(\"Timestamp when the file was last updated in ISO 8601 format\"),\n}).describe(\"Schema for a file to add to the local connector.\")).describe(\"List of files to add to the local connector\"),\n connector_id: z.string().describe(\"The unique identifier of the local connector to add files to\"),\n}).describe(\"Request schema for adding files to a local connector.\");\nconst NeedleAddFilesToLocalConnector_FileOutputSchema = z.object({\n id: z.string().describe(\"Unique file identifier\").nullable().optional(),\n url: z.string().describe(\"URL of the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"Size of the file in bytes\").nullable().optional(),\n type: z.string().describe(\"MIME type of the file\").nullable().optional(),\n user_id: z.string().describe(\"ID of the user who added the file\").nullable().optional(),\n md5_hash: z.string().describe(\"MD5 hash of the file\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the file was created in the system\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the file was last updated\").nullable().optional(),\n connector_id: z.string().describe(\"ID of the connector the file was added to\").nullable().optional(),\n}).describe(\"Schema for a file object returned by the API after adding to local connector.\");\nexport const NeedleAddFilesToLocalConnectorOutput = z.object({\n result: z.array(NeedleAddFilesToLocalConnector_FileOutputSchema).describe(\"List of file objects that were added to the local connector\"),\n}).describe(\"Response schema after adding files to a local connector.\");\n\nexport const needleAddFilesToLocalConnector = action(\"NEEDLE_ADD_FILES_TO_LOCAL_CONNECTOR\", {\n slug: \"needle-add-files-to-local-connector\",\n name: \"Add Files to Local Connector\",\n description: \"Tool to add files to a local connector by providing file metadata. Use when you need to add external files to a connector using their URLs.\",\n input: NeedleAddFilesToLocalConnectorInput,\n output: NeedleAddFilesToLocalConnectorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsC,EAAE,OAAO;CAC1D,OAAO,EAAE,MAAM,EAAE,OAAO;EACxB,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;EAC5C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CAC/F,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,CAAC,SAAS,6CAA6C;CACrH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;AAClG,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,kD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"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleAddFilesToLocalConnectorInput = z.object({\n files: z.array(z.object({\n url: z.string().describe(\"URL where the file can be accessed\"),\n name: z.string().describe(\"Name of the file\"),\n updated_at: z.string().describe(\"Timestamp when the file was last updated in ISO 8601 format\"),\n}).passthrough().describe(\"Schema for a file to add to the local connector.\")).describe(\"List of files to add to the local connector\"),\n connector_id: z.string().describe(\"The unique identifier of the local connector to add files to\"),\n}).describe(\"Request schema for adding files to a local connector.\");\nconst NeedleAddFilesToLocalConnector_FileOutputSchema = z.object({\n id: z.string().describe(\"Unique file identifier\").nullable().optional(),\n url: z.string().describe(\"URL of the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"Size of the file in bytes\").nullable().optional(),\n type: z.string().describe(\"MIME type of the file\").nullable().optional(),\n user_id: z.string().describe(\"ID of the user who added the file\").nullable().optional(),\n md5_hash: z.string().describe(\"MD5 hash of the file\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the file was created in the system\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the file was last updated\").nullable().optional(),\n connector_id: z.string().describe(\"ID of the connector the file was added to\").nullable().optional(),\n}).passthrough().describe(\"Schema for a file object returned by the API after adding to local connector.\");\nexport const NeedleAddFilesToLocalConnectorOutput = z.object({\n result: z.array(NeedleAddFilesToLocalConnector_FileOutputSchema).describe(\"List of file objects that were added to the local connector\"),\n}).passthrough().describe(\"Response schema after adding files to a local connector.\");\n\nexport const needleAddFilesToLocalConnector = action(\"NEEDLE_ADD_FILES_TO_LOCAL_CONNECTOR\", {\n slug: \"needle-add-files-to-local-connector\",\n name: \"Add Files to Local Connector\",\n description: \"Tool to add files to a local connector by providing file metadata. Use when you need to add external files to a connector using their URLs.\",\n input: NeedleAddFilesToLocalConnectorInput,\n output: NeedleAddFilesToLocalConnectorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsC,EAAE,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,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAA+E;AAKzG,MAAa,iCAAiC,OAAO,uCAAuC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATkD,EAAE,OAAO,EAC3D,QAAQ,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,6DAA6D,EACzI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAOhB;AACV,CAAC"}
@@ -13,7 +13,7 @@ const NeedleCreateCollectionOutput = zod.z.object({
13
13
  created_at: zod.z.string().describe("Timestamp when the collection was created.").nullable().optional(),
14
14
  updated_at: zod.z.string().describe("Timestamp when the collection was last updated.").nullable().optional(),
15
15
  description: zod.z.string().describe("Description of the collection.").nullable().optional()
16
- }).describe("Response schema for the created collection.");
16
+ }).passthrough().describe("Response schema for the created collection.");
17
17
  const needleCreateCollection = require_action.action("NEEDLE_CREATE_COLLECTION", {
18
18
  slug: "needle-create-collection",
19
19
  name: "Create Collection",
@@ -1 +1 @@
1
- {"version":3,"file":"create-collection.cjs","names":["z","action"],"sources":["../../src/actions/create-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleCreateCollectionInput = z.object({\n name: z.string().describe(\"Name of the collection. Must be unique within your account.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional arbitrary JSON metadata associated with the collection.\").optional(),\n description: z.string().describe(\"Optional human-readable description of the collection.\").optional(),\n}).describe(\"Input parameters for creating a new collection.\");\nexport const NeedleCreateCollectionOutput = z.object({\n id: z.string().describe(\"Unique identifier for the collection.\").nullable(),\n name: z.string().describe(\"Name of the collection.\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata attached to the collection.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the collection was created.\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the collection was last updated.\").nullable().optional(),\n description: z.string().describe(\"Description of the collection.\").nullable().optional(),\n}).describe(\"Response schema for the created collection.\");\n\nexport const needleCreateCollection = action(\"NEEDLE_CREATE_COLLECTION\", {\n slug: \"needle-create-collection\",\n name: \"Create Collection\",\n description: \"Tool to create a new collection. Use after confirming the collection name.\",\n input: NeedleCreateCollectionInput,\n output: NeedleCreateCollectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CACvF,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAClI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9D,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-collection.cjs","names":["z","action"],"sources":["../../src/actions/create-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleCreateCollectionInput = z.object({\n name: z.string().describe(\"Name of the collection. Must be unique within your account.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional arbitrary JSON metadata associated with the collection.\").optional(),\n description: z.string().describe(\"Optional human-readable description of the collection.\").optional(),\n}).describe(\"Input parameters for creating a new collection.\");\nexport const NeedleCreateCollectionOutput = z.object({\n id: z.string().describe(\"Unique identifier for the collection.\").nullable(),\n name: z.string().describe(\"Name of the collection.\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata attached to the collection.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the collection was created.\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the collection was last updated.\").nullable().optional(),\n description: z.string().describe(\"Description of the collection.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for the created collection.\");\n\nexport const needleCreateCollection = action(\"NEEDLE_CREATE_COLLECTION\", {\n slug: \"needle-create-collection\",\n name: \"Create Collection\",\n description: \"Tool to create a new collection. Use after confirming the collection name.\",\n input: NeedleCreateCollectionInput,\n output: NeedleCreateCollectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CACvF,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAClI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9D,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -13,7 +13,7 @@ declare const NeedleCreateCollectionOutput: z.ZodObject<{
13
13
  created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
14
  updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
15
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
- }, z.core.$strip>;
16
+ }, z.core.$loose>;
17
17
  declare const needleCreateCollection: import("@keystrokehq/action").WorkflowActionDefinition<{
18
18
  name: string;
19
19
  metadata?: Record<string, unknown> | undefined;
@@ -13,7 +13,7 @@ declare const NeedleCreateCollectionOutput: z.ZodObject<{
13
13
  created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
14
  updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
15
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
- }, z.core.$strip>;
16
+ }, z.core.$loose>;
17
17
  declare const needleCreateCollection: import("@keystrokehq/action").WorkflowActionDefinition<{
18
18
  name: string;
19
19
  metadata?: Record<string, unknown> | undefined;
@@ -16,7 +16,7 @@ const needleCreateCollection = action("NEEDLE_CREATE_COLLECTION", {
16
16
  created_at: z.string().describe("Timestamp when the collection was created.").nullable().optional(),
17
17
  updated_at: z.string().describe("Timestamp when the collection was last updated.").nullable().optional(),
18
18
  description: z.string().describe("Description of the collection.").nullable().optional()
19
- }).describe("Response schema for the created collection.")
19
+ }).passthrough().describe("Response schema for the created collection.")
20
20
  });
21
21
  //#endregion
22
22
  export { needleCreateCollection };
@@ -1 +1 @@
1
- {"version":3,"file":"create-collection.mjs","names":[],"sources":["../../src/actions/create-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleCreateCollectionInput = z.object({\n name: z.string().describe(\"Name of the collection. Must be unique within your account.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional arbitrary JSON metadata associated with the collection.\").optional(),\n description: z.string().describe(\"Optional human-readable description of the collection.\").optional(),\n}).describe(\"Input parameters for creating a new collection.\");\nexport const NeedleCreateCollectionOutput = z.object({\n id: z.string().describe(\"Unique identifier for the collection.\").nullable(),\n name: z.string().describe(\"Name of the collection.\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata attached to the collection.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the collection was created.\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the collection was last updated.\").nullable().optional(),\n description: z.string().describe(\"Description of the collection.\").nullable().optional(),\n}).describe(\"Response schema for the created collection.\");\n\nexport const needleCreateCollection = action(\"NEEDLE_CREATE_COLLECTION\", {\n slug: \"needle-create-collection\",\n name: \"Create Collection\",\n description: \"Tool to create a new collection. Use after confirming the collection name.\",\n input: NeedleCreateCollectionInput,\n output: NeedleCreateCollectionOutput,\n});\n"],"mappings":";;AAkBA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlByC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;EACvF,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EAClI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,SAAS,iDAcH;CACP,QAd0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EAC9D,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,CAAC,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-collection.mjs","names":[],"sources":["../../src/actions/create-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleCreateCollectionInput = z.object({\n name: z.string().describe(\"Name of the collection. Must be unique within your account.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional arbitrary JSON metadata associated with the collection.\").optional(),\n description: z.string().describe(\"Optional human-readable description of the collection.\").optional(),\n}).describe(\"Input parameters for creating a new collection.\");\nexport const NeedleCreateCollectionOutput = z.object({\n id: z.string().describe(\"Unique identifier for the collection.\").nullable(),\n name: z.string().describe(\"Name of the collection.\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata attached to the collection.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the collection was created.\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the collection was last updated.\").nullable().optional(),\n description: z.string().describe(\"Description of the collection.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for the created collection.\");\n\nexport const needleCreateCollection = action(\"NEEDLE_CREATE_COLLECTION\", {\n slug: \"needle-create-collection\",\n name: \"Create Collection\",\n description: \"Tool to create a new collection. Use after confirming the collection name.\",\n input: NeedleCreateCollectionInput,\n output: NeedleCreateCollectionOutput,\n});\n"],"mappings":";;AAkBA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlByC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;EACvF,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EAClI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,SAAS,iDAcH;CACP,QAd0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EAC9D,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
@@ -8,7 +8,7 @@ const NeedleCreateLocalConnectorInput = zod.z.object({
8
8
  folders: zod.z.array(zod.z.object({
9
9
  recursive: zod.z.boolean().describe("Whether to recursively scan subfolders within this folder"),
10
10
  folder_path: zod.z.string().describe("Full path to the folder on the local filesystem to monitor")
11
- }).describe("Configuration for a folder to be monitored by the local connector.")).describe("List of folders to monitor for file indexing"),
11
+ }).passthrough().describe("Configuration for a folder to be monitored by the local connector.")).describe("List of folders to monitor for file indexing"),
12
12
  device_name: zod.z.string().describe("Name of the device running the connector"),
13
13
  device_model: zod.z.string().describe("Model identifier of the device"),
14
14
  serial_number: zod.z.string().describe("Serial number or unique identifier for the device"),
@@ -17,7 +17,7 @@ const NeedleCreateLocalConnectorInput = zod.z.object({
17
17
  const NeedleCreateLocalConnector_LocalConnectorFolderResponseSchema = zod.z.object({
18
18
  recursive: zod.z.boolean().describe("Whether subfolders are recursively scanned").nullable(),
19
19
  folder_path: zod.z.string().describe("Full path to the folder being monitored").nullable()
20
- }).describe("Folder configuration in the response.");
20
+ }).passthrough().describe("Folder configuration in the response.");
21
21
  const NeedleCreateLocalConnector_LocalConnectorResultSchema = zod.z.object({
22
22
  id: zod.z.string().describe("Unique identifier for the local connector").nullable(),
23
23
  os: zod.z.string().describe("Operating system of the device").nullable(),
@@ -31,8 +31,8 @@ const NeedleCreateLocalConnector_LocalConnectorResultSchema = zod.z.object({
31
31
  device_model: zod.z.string().describe("Model identifier of the device").nullable(),
32
32
  serial_number: zod.z.string().describe("Serial number of the device").nullable(),
33
33
  collection_ids: zod.z.array(zod.z.string()).describe("Collection IDs associated with this connector")
34
- }).describe("Details of the created local connector.");
35
- const NeedleCreateLocalConnectorOutput = zod.z.object({ result: NeedleCreateLocalConnector_LocalConnectorResultSchema.nullable() }).describe("Response schema for the created local connector.");
34
+ }).passthrough().describe("Details of the created local connector.");
35
+ const NeedleCreateLocalConnectorOutput = zod.z.object({ result: NeedleCreateLocalConnector_LocalConnectorResultSchema.nullable() }).passthrough().describe("Response schema for the created local connector.");
36
36
  const needleCreateLocalConnector = require_action.action("NEEDLE_CREATE_LOCAL_CONNECTOR", {
37
37
  slug: "needle-create-local-connector",
38
38
  name: "Create Local Connector",
@@ -1 +1 @@
1
- {"version":3,"file":"create-local-connector.cjs","names":["z","action"],"sources":["../../src/actions/create-local-connector.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleCreateLocalConnectorInput = z.object({\n os: z.string().describe(\"Operating system of the device (e.g., macOS, Windows, Linux)\"),\n cpu: z.string().describe(\"CPU model/architecture of the device\"),\n name: z.string().describe(\"Name for the local connector. Should be descriptive of the device or purpose.\"),\n folders: z.array(z.object({\n recursive: z.boolean().describe(\"Whether to recursively scan subfolders within this folder\"),\n folder_path: z.string().describe(\"Full path to the folder on the local filesystem to monitor\"),\n}).describe(\"Configuration for a folder to be monitored by the local connector.\")).describe(\"List of folders to monitor for file indexing\"),\n device_name: z.string().describe(\"Name of the device running the connector\"),\n device_model: z.string().describe(\"Model identifier of the device\"),\n serial_number: z.string().describe(\"Serial number or unique identifier for the device\"),\n collection_ids: z.array(z.string()).describe(\"List of collection IDs to associate with this local connector. Files from the monitored folders will be indexed into these collections.\"),\n}).describe(\"Input parameters for creating a new local connector.\");\nconst NeedleCreateLocalConnector_LocalConnectorFolderResponseSchema = z.object({\n recursive: z.boolean().describe(\"Whether subfolders are recursively scanned\").nullable(),\n folder_path: z.string().describe(\"Full path to the folder being monitored\").nullable(),\n}).describe(\"Folder configuration in the response.\");\nconst NeedleCreateLocalConnector_LocalConnectorResultSchema = z.object({\n id: z.string().describe(\"Unique identifier for the local connector\").nullable(),\n os: z.string().describe(\"Operating system of the device\").nullable(),\n cpu: z.string().describe(\"CPU model/architecture of the device\").nullable(),\n name: z.string().describe(\"Name of the local connector\").nullable(),\n type: z.string().describe(\"Type of connector (always 'local' for local connectors)\").nullable(),\n folders: z.array(NeedleCreateLocalConnector_LocalConnectorFolderResponseSchema).describe(\"List of folders being monitored\"),\n synced_at: z.string().describe(\"Timestamp when the connector was last synced (ISO 8601 format). Null if not yet synced.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the connector was created (ISO 8601 format)\").nullable(),\n device_name: z.string().describe(\"Name of the device\").nullable(),\n device_model: z.string().describe(\"Model identifier of the device\").nullable(),\n serial_number: z.string().describe(\"Serial number of the device\").nullable(),\n collection_ids: z.array(z.string()).describe(\"Collection IDs associated with this connector\"),\n}).describe(\"Details of the created local connector.\");\nexport const NeedleCreateLocalConnectorOutput = z.object({\n result: NeedleCreateLocalConnector_LocalConnectorResultSchema.nullable(),\n}).describe(\"Response schema for the created local connector.\");\n\nexport const needleCreateLocalConnector = action(\"NEEDLE_CREATE_LOCAL_CONNECTOR\", {\n slug: \"needle-create-local-connector\",\n name: \"Create Local Connector\",\n description: \"Tool to create a local connector that monitors specified folders on a device. Use when setting up file indexing from a local machine into Needle collections.\",\n input: NeedleCreateLocalConnectorInput,\n output: NeedleCreateLocalConnectorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACtF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC/D,MAAMA,IA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DAAyD,CAAC,CAAC,SAAS;CAC9F,SAASA,IAAAA,EAAE,MAAM,6DAA6D,CAAC,CAAC,SAAS,iCAAiC;CAC1H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACvG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAChE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC7E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAC3E,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC9F,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,QAAQ,sDAAsD,SAAS,EACzE,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAE9D,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-local-connector.cjs","names":["z","action"],"sources":["../../src/actions/create-local-connector.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleCreateLocalConnectorInput = z.object({\n os: z.string().describe(\"Operating system of the device (e.g., macOS, Windows, Linux)\"),\n cpu: z.string().describe(\"CPU model/architecture of the device\"),\n name: z.string().describe(\"Name for the local connector. Should be descriptive of the device or purpose.\"),\n folders: z.array(z.object({\n recursive: z.boolean().describe(\"Whether to recursively scan subfolders within this folder\"),\n folder_path: z.string().describe(\"Full path to the folder on the local filesystem to monitor\"),\n}).passthrough().describe(\"Configuration for a folder to be monitored by the local connector.\")).describe(\"List of folders to monitor for file indexing\"),\n device_name: z.string().describe(\"Name of the device running the connector\"),\n device_model: z.string().describe(\"Model identifier of the device\"),\n serial_number: z.string().describe(\"Serial number or unique identifier for the device\"),\n collection_ids: z.array(z.string()).describe(\"List of collection IDs to associate with this local connector. Files from the monitored folders will be indexed into these collections.\"),\n}).describe(\"Input parameters for creating a new local connector.\");\nconst NeedleCreateLocalConnector_LocalConnectorFolderResponseSchema = z.object({\n recursive: z.boolean().describe(\"Whether subfolders are recursively scanned\").nullable(),\n folder_path: z.string().describe(\"Full path to the folder being monitored\").nullable(),\n}).passthrough().describe(\"Folder configuration in the response.\");\nconst NeedleCreateLocalConnector_LocalConnectorResultSchema = z.object({\n id: z.string().describe(\"Unique identifier for the local connector\").nullable(),\n os: z.string().describe(\"Operating system of the device\").nullable(),\n cpu: z.string().describe(\"CPU model/architecture of the device\").nullable(),\n name: z.string().describe(\"Name of the local connector\").nullable(),\n type: z.string().describe(\"Type of connector (always 'local' for local connectors)\").nullable(),\n folders: z.array(NeedleCreateLocalConnector_LocalConnectorFolderResponseSchema).describe(\"List of folders being monitored\"),\n synced_at: z.string().describe(\"Timestamp when the connector was last synced (ISO 8601 format). Null if not yet synced.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the connector was created (ISO 8601 format)\").nullable(),\n device_name: z.string().describe(\"Name of the device\").nullable(),\n device_model: z.string().describe(\"Model identifier of the device\").nullable(),\n serial_number: z.string().describe(\"Serial number of the device\").nullable(),\n collection_ids: z.array(z.string()).describe(\"Collection IDs associated with this connector\"),\n}).passthrough().describe(\"Details of the created local connector.\");\nexport const NeedleCreateLocalConnectorOutput = z.object({\n result: NeedleCreateLocalConnector_LocalConnectorResultSchema.nullable(),\n}).passthrough().describe(\"Response schema for the created local connector.\");\n\nexport const needleCreateLocalConnector = action(\"NEEDLE_CREATE_LOCAL_CONNECTOR\", {\n slug: \"needle-create-local-connector\",\n name: \"Create Local Connector\",\n description: \"Tool to create a local connector that monitors specified folders on a device. Use when setting up file indexing from a local machine into Needle collections.\",\n input: NeedleCreateLocalConnectorInput,\n output: NeedleCreateLocalConnectorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACtF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CACzG,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC1B,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2DAA2D;EAC3F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,CAAC,SAAS,8CAA8C;CACtJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAC3E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAClE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CACtF,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yIAAyI;AACxL,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,gEAAgEA,IAAAA,EAAE,OAAO;CAC7E,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACvF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAM,wDAAwDA,IAAAA,EAAE,OAAO;CACrE,IAA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AC"}
@@ -8,7 +8,7 @@ declare const NeedleCreateLocalConnectorInput: z.ZodObject<{
8
8
  folders: z.ZodArray<z.ZodObject<{
9
9
  recursive: z.ZodBoolean;
10
10
  folder_path: z.ZodString;
11
- }, z.core.$strip>>;
11
+ }, z.core.$loose>>;
12
12
  device_name: z.ZodString;
13
13
  device_model: z.ZodString;
14
14
  serial_number: z.ZodString;
@@ -24,20 +24,21 @@ declare const NeedleCreateLocalConnectorOutput: z.ZodObject<{
24
24
  folders: z.ZodArray<z.ZodObject<{
25
25
  recursive: z.ZodNullable<z.ZodBoolean>;
26
26
  folder_path: z.ZodNullable<z.ZodString>;
27
- }, z.core.$strip>>;
27
+ }, z.core.$loose>>;
28
28
  synced_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
29
  created_at: z.ZodNullable<z.ZodString>;
30
30
  device_name: z.ZodNullable<z.ZodString>;
31
31
  device_model: z.ZodNullable<z.ZodString>;
32
32
  serial_number: z.ZodNullable<z.ZodString>;
33
33
  collection_ids: z.ZodArray<z.ZodString>;
34
- }, z.core.$strip>>;
35
- }, z.core.$strip>;
34
+ }, z.core.$loose>>;
35
+ }, z.core.$loose>;
36
36
  declare const needleCreateLocalConnector: import("@keystrokehq/action").WorkflowActionDefinition<{
37
37
  os: string;
38
38
  cpu: string;
39
39
  name: string;
40
40
  folders: {
41
+ [x: string]: unknown;
41
42
  recursive: boolean;
42
43
  folder_path: string;
43
44
  }[];
@@ -8,7 +8,7 @@ declare const NeedleCreateLocalConnectorInput: z.ZodObject<{
8
8
  folders: z.ZodArray<z.ZodObject<{
9
9
  recursive: z.ZodBoolean;
10
10
  folder_path: z.ZodString;
11
- }, z.core.$strip>>;
11
+ }, z.core.$loose>>;
12
12
  device_name: z.ZodString;
13
13
  device_model: z.ZodString;
14
14
  serial_number: z.ZodString;
@@ -24,20 +24,21 @@ declare const NeedleCreateLocalConnectorOutput: z.ZodObject<{
24
24
  folders: z.ZodArray<z.ZodObject<{
25
25
  recursive: z.ZodNullable<z.ZodBoolean>;
26
26
  folder_path: z.ZodNullable<z.ZodString>;
27
- }, z.core.$strip>>;
27
+ }, z.core.$loose>>;
28
28
  synced_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
29
  created_at: z.ZodNullable<z.ZodString>;
30
30
  device_name: z.ZodNullable<z.ZodString>;
31
31
  device_model: z.ZodNullable<z.ZodString>;
32
32
  serial_number: z.ZodNullable<z.ZodString>;
33
33
  collection_ids: z.ZodArray<z.ZodString>;
34
- }, z.core.$strip>>;
35
- }, z.core.$strip>;
34
+ }, z.core.$loose>>;
35
+ }, z.core.$loose>;
36
36
  declare const needleCreateLocalConnector: import("@keystrokehq/action").WorkflowActionDefinition<{
37
37
  os: string;
38
38
  cpu: string;
39
39
  name: string;
40
40
  folders: {
41
+ [x: string]: unknown;
41
42
  recursive: boolean;
42
43
  folder_path: string;
43
44
  }[];
@@ -8,7 +8,7 @@ const NeedleCreateLocalConnectorInput = z.object({
8
8
  folders: z.array(z.object({
9
9
  recursive: z.boolean().describe("Whether to recursively scan subfolders within this folder"),
10
10
  folder_path: z.string().describe("Full path to the folder on the local filesystem to monitor")
11
- }).describe("Configuration for a folder to be monitored by the local connector.")).describe("List of folders to monitor for file indexing"),
11
+ }).passthrough().describe("Configuration for a folder to be monitored by the local connector.")).describe("List of folders to monitor for file indexing"),
12
12
  device_name: z.string().describe("Name of the device running the connector"),
13
13
  device_model: z.string().describe("Model identifier of the device"),
14
14
  serial_number: z.string().describe("Serial number or unique identifier for the device"),
@@ -17,7 +17,7 @@ const NeedleCreateLocalConnectorInput = z.object({
17
17
  const NeedleCreateLocalConnector_LocalConnectorFolderResponseSchema = z.object({
18
18
  recursive: z.boolean().describe("Whether subfolders are recursively scanned").nullable(),
19
19
  folder_path: z.string().describe("Full path to the folder being monitored").nullable()
20
- }).describe("Folder configuration in the response.");
20
+ }).passthrough().describe("Folder configuration in the response.");
21
21
  const NeedleCreateLocalConnector_LocalConnectorResultSchema = z.object({
22
22
  id: z.string().describe("Unique identifier for the local connector").nullable(),
23
23
  os: z.string().describe("Operating system of the device").nullable(),
@@ -31,13 +31,13 @@ const NeedleCreateLocalConnector_LocalConnectorResultSchema = z.object({
31
31
  device_model: z.string().describe("Model identifier of the device").nullable(),
32
32
  serial_number: z.string().describe("Serial number of the device").nullable(),
33
33
  collection_ids: z.array(z.string()).describe("Collection IDs associated with this connector")
34
- }).describe("Details of the created local connector.");
34
+ }).passthrough().describe("Details of the created local connector.");
35
35
  const needleCreateLocalConnector = action("NEEDLE_CREATE_LOCAL_CONNECTOR", {
36
36
  slug: "needle-create-local-connector",
37
37
  name: "Create Local Connector",
38
38
  description: "Tool to create a local connector that monitors specified folders on a device. Use when setting up file indexing from a local machine into Needle collections.",
39
39
  input: NeedleCreateLocalConnectorInput,
40
- output: z.object({ result: NeedleCreateLocalConnector_LocalConnectorResultSchema.nullable() }).describe("Response schema for the created local connector.")
40
+ output: z.object({ result: NeedleCreateLocalConnector_LocalConnectorResultSchema.nullable() }).passthrough().describe("Response schema for the created local connector.")
41
41
  });
42
42
  //#endregion
43
43
  export { needleCreateLocalConnector };
@@ -1 +1 @@
1
- {"version":3,"file":"create-local-connector.mjs","names":[],"sources":["../../src/actions/create-local-connector.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleCreateLocalConnectorInput = z.object({\n os: z.string().describe(\"Operating system of the device (e.g., macOS, Windows, Linux)\"),\n cpu: z.string().describe(\"CPU model/architecture of the device\"),\n name: z.string().describe(\"Name for the local connector. Should be descriptive of the device or purpose.\"),\n folders: z.array(z.object({\n recursive: z.boolean().describe(\"Whether to recursively scan subfolders within this folder\"),\n folder_path: z.string().describe(\"Full path to the folder on the local filesystem to monitor\"),\n}).describe(\"Configuration for a folder to be monitored by the local connector.\")).describe(\"List of folders to monitor for file indexing\"),\n device_name: z.string().describe(\"Name of the device running the connector\"),\n device_model: z.string().describe(\"Model identifier of the device\"),\n serial_number: z.string().describe(\"Serial number or unique identifier for the device\"),\n collection_ids: z.array(z.string()).describe(\"List of collection IDs to associate with this local connector. Files from the monitored folders will be indexed into these collections.\"),\n}).describe(\"Input parameters for creating a new local connector.\");\nconst NeedleCreateLocalConnector_LocalConnectorFolderResponseSchema = z.object({\n recursive: z.boolean().describe(\"Whether subfolders are recursively scanned\").nullable(),\n folder_path: z.string().describe(\"Full path to the folder being monitored\").nullable(),\n}).describe(\"Folder configuration in the response.\");\nconst NeedleCreateLocalConnector_LocalConnectorResultSchema = z.object({\n id: z.string().describe(\"Unique identifier for the local connector\").nullable(),\n os: z.string().describe(\"Operating system of the device\").nullable(),\n cpu: z.string().describe(\"CPU model/architecture of the device\").nullable(),\n name: z.string().describe(\"Name of the local connector\").nullable(),\n type: z.string().describe(\"Type of connector (always 'local' for local connectors)\").nullable(),\n folders: z.array(NeedleCreateLocalConnector_LocalConnectorFolderResponseSchema).describe(\"List of folders being monitored\"),\n synced_at: z.string().describe(\"Timestamp when the connector was last synced (ISO 8601 format). Null if not yet synced.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the connector was created (ISO 8601 format)\").nullable(),\n device_name: z.string().describe(\"Name of the device\").nullable(),\n device_model: z.string().describe(\"Model identifier of the device\").nullable(),\n serial_number: z.string().describe(\"Serial number of the device\").nullable(),\n collection_ids: z.array(z.string()).describe(\"Collection IDs associated with this connector\"),\n}).describe(\"Details of the created local connector.\");\nexport const NeedleCreateLocalConnectorOutput = z.object({\n result: NeedleCreateLocalConnector_LocalConnectorResultSchema.nullable(),\n}).describe(\"Response schema for the created local connector.\");\n\nexport const needleCreateLocalConnector = action(\"NEEDLE_CREATE_LOCAL_CONNECTOR\", {\n slug: \"needle-create-local-connector\",\n name: \"Create Local Connector\",\n description: \"Tool to create a local connector that monitors specified folders on a device. Use when setting up file indexing from a local machine into Needle collections.\",\n input: NeedleCreateLocalConnectorInput,\n output: NeedleCreateLocalConnectorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,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AM,6DAA6D,CAAC,CAAC,SAAS,iCAAiC;CAC1H,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACvG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAChE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC7E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAC3E,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC9F,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAKrD,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT8C,EAAE,OAAO,EACvD,QAAQ,sDAAsD,SAAS,EACzE,CAAC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-local-connector.mjs","names":[],"sources":["../../src/actions/create-local-connector.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleCreateLocalConnectorInput = z.object({\n os: z.string().describe(\"Operating system of the device (e.g., macOS, Windows, Linux)\"),\n cpu: z.string().describe(\"CPU model/architecture of the device\"),\n name: z.string().describe(\"Name for the local connector. Should be descriptive of the device or purpose.\"),\n folders: z.array(z.object({\n recursive: z.boolean().describe(\"Whether to recursively scan subfolders within this folder\"),\n folder_path: z.string().describe(\"Full path to the folder on the local filesystem to monitor\"),\n}).passthrough().describe(\"Configuration for a folder to be monitored by the local connector.\")).describe(\"List of folders to monitor for file indexing\"),\n device_name: z.string().describe(\"Name of the device running the connector\"),\n device_model: z.string().describe(\"Model identifier of the device\"),\n serial_number: z.string().describe(\"Serial number or unique identifier for the device\"),\n collection_ids: z.array(z.string()).describe(\"List of collection IDs to associate with this local connector. Files from the monitored folders will be indexed into these collections.\"),\n}).describe(\"Input parameters for creating a new local connector.\");\nconst NeedleCreateLocalConnector_LocalConnectorFolderResponseSchema = z.object({\n recursive: z.boolean().describe(\"Whether subfolders are recursively scanned\").nullable(),\n folder_path: z.string().describe(\"Full path to the folder being monitored\").nullable(),\n}).passthrough().describe(\"Folder configuration in the response.\");\nconst NeedleCreateLocalConnector_LocalConnectorResultSchema = z.object({\n id: z.string().describe(\"Unique identifier for the local connector\").nullable(),\n os: z.string().describe(\"Operating system of the device\").nullable(),\n cpu: z.string().describe(\"CPU model/architecture of the device\").nullable(),\n name: z.string().describe(\"Name of the local connector\").nullable(),\n type: z.string().describe(\"Type of connector (always 'local' for local connectors)\").nullable(),\n folders: z.array(NeedleCreateLocalConnector_LocalConnectorFolderResponseSchema).describe(\"List of folders being monitored\"),\n synced_at: z.string().describe(\"Timestamp when the connector was last synced (ISO 8601 format). Null if not yet synced.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the connector was created (ISO 8601 format)\").nullable(),\n device_name: z.string().describe(\"Name of the device\").nullable(),\n device_model: z.string().describe(\"Model identifier of the device\").nullable(),\n serial_number: z.string().describe(\"Serial number of the device\").nullable(),\n collection_ids: z.array(z.string()).describe(\"Collection IDs associated with this connector\"),\n}).passthrough().describe(\"Details of the created local connector.\");\nexport const NeedleCreateLocalConnectorOutput = z.object({\n result: NeedleCreateLocalConnector_LocalConnectorResultSchema.nullable(),\n}).passthrough().describe(\"Response schema for the created local connector.\");\n\nexport const needleCreateLocalConnector = action(\"NEEDLE_CREATE_LOCAL_CONNECTOR\", {\n slug: \"needle-create-local-connector\",\n name: \"Create Local Connector\",\n description: \"Tool to create a local connector that monitors specified folders on a device. Use when setting up file indexing from a local machine into Needle collections.\",\n input: NeedleCreateLocalConnectorInput,\n output: NeedleCreateLocalConnectorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAA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AAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9F,SAAS,EAAE,MAAM,6DAA6D,CAAC,CAAC,SAAS,iCAAiC;CAC1H,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACvG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAChE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC7E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAC3E,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAKnE,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT8C,EAAE,OAAO,EACvD,QAAQ,sDAAsD,SAAS,EACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAOhB;AACV,CAAC"}
@@ -8,7 +8,7 @@ const NeedleDeleteFilesFromCollectionInput = zod.z.object({
8
8
  const NeedleDeleteFilesFromCollectionOutput = zod.z.object({
9
9
  failed_file_ids: zod.z.array(zod.z.string()).describe("The IDs of files that could not be deleted (if any)"),
10
10
  deleted_file_ids: zod.z.array(zod.z.string()).describe("The IDs of files successfully deleted from the collection")
11
- }).describe("Response schema after deleting files from a collection.");
11
+ }).passthrough().describe("Response schema after deleting files from a collection.");
12
12
  const needleDeleteFilesFromCollection = require_action.action("NEEDLE_DELETE_FILES_FROM_COLLECTION", {
13
13
  slug: "needle-delete-files-from-collection",
14
14
  name: "Delete files from a collection",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-files-from-collection.cjs","names":["z","action"],"sources":["../../src/actions/delete-files-from-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleDeleteFilesFromCollectionInput = z.object({\n file_ids: z.array(z.string()).describe(\"List of file IDs to delete from the collection\"),\n collection_id: z.string().describe(\"The unique identifier of the collection from which to delete files\"),\n}).describe(\"Request schema for deleting files from a collection.\");\nexport const NeedleDeleteFilesFromCollectionOutput = z.object({\n failed_file_ids: z.array(z.string()).describe(\"The IDs of files that could not be deleted (if any)\"),\n deleted_file_ids: z.array(z.string()).describe(\"The IDs of files successfully deleted from the collection\"),\n}).describe(\"Response schema after deleting files from a collection.\");\n\nexport const needleDeleteFilesFromCollection = action(\"NEEDLE_DELETE_FILES_FROM_COLLECTION\", {\n slug: \"needle-delete-files-from-collection\",\n name: \"Delete files from a collection\",\n description: \"Tool to delete files from a specific collection by providing file IDs. Use after confirming valid file IDs to remove from the collection.\",\n input: NeedleDeleteFilesFromCollectionInput,\n output: NeedleDeleteFilesFromCollectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gDAAgD;CACvF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;AACzG,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD;CACnG,kBAAkBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAC5G,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAErE,MAAa,kCAAkCC,eAAAA,OAAO,uCAAuC;CAC3F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-files-from-collection.cjs","names":["z","action"],"sources":["../../src/actions/delete-files-from-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleDeleteFilesFromCollectionInput = z.object({\n file_ids: z.array(z.string()).describe(\"List of file IDs to delete from the collection\"),\n collection_id: z.string().describe(\"The unique identifier of the collection from which to delete files\"),\n}).describe(\"Request schema for deleting files from a collection.\");\nexport const NeedleDeleteFilesFromCollectionOutput = z.object({\n failed_file_ids: z.array(z.string()).describe(\"The IDs of files that could not be deleted (if any)\"),\n deleted_file_ids: z.array(z.string()).describe(\"The IDs of files successfully deleted from the collection\"),\n}).passthrough().describe(\"Response schema after deleting files from a collection.\");\n\nexport const needleDeleteFilesFromCollection = action(\"NEEDLE_DELETE_FILES_FROM_COLLECTION\", {\n slug: \"needle-delete-files-from-collection\",\n name: \"Delete files from a collection\",\n description: \"Tool to delete files from a specific collection by providing file IDs. Use after confirming valid file IDs to remove from the collection.\",\n input: NeedleDeleteFilesFromCollectionInput,\n output: NeedleDeleteFilesFromCollectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gDAAgD;CACvF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;AACzG,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD;CACnG,kBAAkBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAEnF,MAAa,kCAAkCC,eAAAA,OAAO,uCAAuC;CAC3F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -8,7 +8,7 @@ declare const NeedleDeleteFilesFromCollectionInput: z.ZodObject<{
8
8
  declare const NeedleDeleteFilesFromCollectionOutput: z.ZodObject<{
9
9
  failed_file_ids: z.ZodArray<z.ZodString>;
10
10
  deleted_file_ids: z.ZodArray<z.ZodString>;
11
- }, z.core.$strip>;
11
+ }, z.core.$loose>;
12
12
  declare const needleDeleteFilesFromCollection: import("@keystrokehq/action").WorkflowActionDefinition<{
13
13
  file_ids: string[];
14
14
  collection_id: string;
@@ -8,7 +8,7 @@ declare const NeedleDeleteFilesFromCollectionInput: z.ZodObject<{
8
8
  declare const NeedleDeleteFilesFromCollectionOutput: z.ZodObject<{
9
9
  failed_file_ids: z.ZodArray<z.ZodString>;
10
10
  deleted_file_ids: z.ZodArray<z.ZodString>;
11
- }, z.core.$strip>;
11
+ }, z.core.$loose>;
12
12
  declare const needleDeleteFilesFromCollection: import("@keystrokehq/action").WorkflowActionDefinition<{
13
13
  file_ids: string[];
14
14
  collection_id: string;