@keystrokehq/needle 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-files-to-collection.cjs +1 -0
  4. package/dist/actions/add-files-to-collection.cjs.map +1 -1
  5. package/dist/actions/add-files-to-collection.d.cts +3 -20
  6. package/dist/actions/add-files-to-collection.d.cts.map +1 -1
  7. package/dist/actions/add-files-to-collection.d.mts +3 -20
  8. package/dist/actions/add-files-to-collection.d.mts.map +1 -1
  9. package/dist/actions/add-files-to-collection.mjs +1 -0
  10. package/dist/actions/add-files-to-collection.mjs.map +1 -1
  11. package/dist/actions/add-files-to-local-connector.cjs +1 -0
  12. package/dist/actions/add-files-to-local-connector.cjs.map +1 -1
  13. package/dist/actions/add-files-to-local-connector.d.cts +3 -21
  14. package/dist/actions/add-files-to-local-connector.d.cts.map +1 -1
  15. package/dist/actions/add-files-to-local-connector.d.mts +3 -21
  16. package/dist/actions/add-files-to-local-connector.d.mts.map +1 -1
  17. package/dist/actions/add-files-to-local-connector.mjs +1 -0
  18. package/dist/actions/add-files-to-local-connector.mjs.map +1 -1
  19. package/dist/actions/create-collection.cjs +1 -0
  20. package/dist/actions/create-collection.cjs.map +1 -1
  21. package/dist/actions/create-collection.d.cts +3 -17
  22. package/dist/actions/create-collection.d.cts.map +1 -1
  23. package/dist/actions/create-collection.d.mts +3 -17
  24. package/dist/actions/create-collection.d.mts.map +1 -1
  25. package/dist/actions/create-collection.mjs +1 -0
  26. package/dist/actions/create-collection.mjs.map +1 -1
  27. package/dist/actions/create-local-connector.cjs +1 -0
  28. package/dist/actions/create-local-connector.cjs.map +1 -1
  29. package/dist/actions/create-local-connector.d.cts +3 -26
  30. package/dist/actions/create-local-connector.d.cts.map +1 -1
  31. package/dist/actions/create-local-connector.d.mts +3 -26
  32. package/dist/actions/create-local-connector.d.mts.map +1 -1
  33. package/dist/actions/create-local-connector.mjs +1 -0
  34. package/dist/actions/create-local-connector.mjs.map +1 -1
  35. package/dist/actions/delete-files-from-collection.cjs +1 -0
  36. package/dist/actions/delete-files-from-collection.cjs.map +1 -1
  37. package/dist/actions/delete-files-from-collection.d.cts +3 -16
  38. package/dist/actions/delete-files-from-collection.d.cts.map +1 -1
  39. package/dist/actions/delete-files-from-collection.d.mts +3 -16
  40. package/dist/actions/delete-files-from-collection.d.mts.map +1 -1
  41. package/dist/actions/delete-files-from-collection.mjs +1 -0
  42. package/dist/actions/delete-files-from-collection.mjs.map +1 -1
  43. package/dist/actions/delete-files-from-local-connector.cjs +1 -0
  44. package/dist/actions/delete-files-from-local-connector.cjs.map +1 -1
  45. package/dist/actions/delete-files-from-local-connector.d.cts +3 -18
  46. package/dist/actions/delete-files-from-local-connector.d.cts.map +1 -1
  47. package/dist/actions/delete-files-from-local-connector.d.mts +3 -18
  48. package/dist/actions/delete-files-from-local-connector.d.mts.map +1 -1
  49. package/dist/actions/delete-files-from-local-connector.mjs +1 -0
  50. package/dist/actions/delete-files-from-local-connector.mjs.map +1 -1
  51. package/dist/actions/get-collection-stats.cjs +1 -0
  52. package/dist/actions/get-collection-stats.cjs.map +1 -1
  53. package/dist/actions/get-collection-stats.d.cts +3 -15
  54. package/dist/actions/get-collection-stats.d.cts.map +1 -1
  55. package/dist/actions/get-collection-stats.d.mts +3 -15
  56. package/dist/actions/get-collection-stats.d.mts.map +1 -1
  57. package/dist/actions/get-collection-stats.mjs +1 -0
  58. package/dist/actions/get-collection-stats.mjs.map +1 -1
  59. package/dist/actions/get-collection.cjs +1 -0
  60. package/dist/actions/get-collection.cjs.map +1 -1
  61. package/dist/actions/get-collection.d.cts +3 -15
  62. package/dist/actions/get-collection.d.cts.map +1 -1
  63. package/dist/actions/get-collection.d.mts +3 -15
  64. package/dist/actions/get-collection.d.mts.map +1 -1
  65. package/dist/actions/get-collection.mjs +1 -0
  66. package/dist/actions/get-collection.mjs.map +1 -1
  67. package/dist/actions/get-file-download-url.cjs +1 -0
  68. package/dist/actions/get-file-download-url.cjs.map +1 -1
  69. package/dist/actions/get-file-download-url.d.cts +3 -15
  70. package/dist/actions/get-file-download-url.d.cts.map +1 -1
  71. package/dist/actions/get-file-download-url.d.mts +3 -15
  72. package/dist/actions/get-file-download-url.d.mts.map +1 -1
  73. package/dist/actions/get-file-download-url.mjs +1 -0
  74. package/dist/actions/get-file-download-url.mjs.map +1 -1
  75. package/dist/actions/get-file-upload-url.cjs +1 -0
  76. package/dist/actions/get-file-upload-url.cjs.map +1 -1
  77. package/dist/actions/get-file-upload-url.d.cts +3 -15
  78. package/dist/actions/get-file-upload-url.d.cts.map +1 -1
  79. package/dist/actions/get-file-upload-url.d.mts +3 -15
  80. package/dist/actions/get-file-upload-url.d.mts.map +1 -1
  81. package/dist/actions/get-file-upload-url.mjs +1 -0
  82. package/dist/actions/get-file-upload-url.mjs.map +1 -1
  83. package/dist/actions/get-local-connector.cjs +1 -0
  84. package/dist/actions/get-local-connector.cjs.map +1 -1
  85. package/dist/actions/get-local-connector.d.cts +3 -15
  86. package/dist/actions/get-local-connector.d.cts.map +1 -1
  87. package/dist/actions/get-local-connector.d.mts +3 -15
  88. package/dist/actions/get-local-connector.d.mts.map +1 -1
  89. package/dist/actions/get-local-connector.mjs +1 -0
  90. package/dist/actions/get-local-connector.mjs.map +1 -1
  91. package/dist/actions/list-collection-files.cjs +1 -0
  92. package/dist/actions/list-collection-files.cjs.map +1 -1
  93. package/dist/actions/list-collection-files.d.cts +3 -17
  94. package/dist/actions/list-collection-files.d.cts.map +1 -1
  95. package/dist/actions/list-collection-files.d.mts +3 -17
  96. package/dist/actions/list-collection-files.d.mts.map +1 -1
  97. package/dist/actions/list-collection-files.mjs +1 -0
  98. package/dist/actions/list-collection-files.mjs.map +1 -1
  99. package/dist/actions/list-collections.cjs +1 -0
  100. package/dist/actions/list-collections.cjs.map +1 -1
  101. package/dist/actions/list-collections.d.cts +3 -16
  102. package/dist/actions/list-collections.d.cts.map +1 -1
  103. package/dist/actions/list-collections.d.mts +3 -16
  104. package/dist/actions/list-collections.d.mts.map +1 -1
  105. package/dist/actions/list-collections.mjs +1 -0
  106. package/dist/actions/list-collections.mjs.map +1 -1
  107. package/dist/actions/list-connectors.cjs +1 -0
  108. package/dist/actions/list-connectors.cjs.map +1 -1
  109. package/dist/actions/list-connectors.d.cts +3 -13
  110. package/dist/actions/list-connectors.d.cts.map +1 -1
  111. package/dist/actions/list-connectors.d.mts +3 -13
  112. package/dist/actions/list-connectors.d.mts.map +1 -1
  113. package/dist/actions/list-connectors.mjs +1 -0
  114. package/dist/actions/list-connectors.mjs.map +1 -1
  115. package/dist/actions/list-local-connectors.cjs +1 -0
  116. package/dist/actions/list-local-connectors.cjs.map +1 -1
  117. package/dist/actions/list-local-connectors.d.cts +3 -13
  118. package/dist/actions/list-local-connectors.d.cts.map +1 -1
  119. package/dist/actions/list-local-connectors.d.mts +3 -13
  120. package/dist/actions/list-local-connectors.d.mts.map +1 -1
  121. package/dist/actions/list-local-connectors.mjs +1 -0
  122. package/dist/actions/list-local-connectors.mjs.map +1 -1
  123. package/dist/actions/search-collection.cjs +1 -0
  124. package/dist/actions/search-collection.cjs.map +1 -1
  125. package/dist/actions/search-collection.d.cts +3 -20
  126. package/dist/actions/search-collection.d.cts.map +1 -1
  127. package/dist/actions/search-collection.d.mts +3 -20
  128. package/dist/actions/search-collection.d.mts.map +1 -1
  129. package/dist/actions/search-collection.mjs +1 -0
  130. package/dist/actions/search-collection.mjs.map +1 -1
  131. package/dist/app.cjs +2 -2
  132. package/dist/app.cjs.map +1 -1
  133. package/dist/app.d.cts +4 -6
  134. package/dist/app.d.cts.map +1 -1
  135. package/dist/app.d.mts +4 -6
  136. package/dist/app.d.mts.map +1 -1
  137. package/dist/app.mjs +0 -1
  138. package/dist/app.mjs.map +1 -1
  139. package/dist/index.d.cts +1 -1
  140. package/dist/index.d.mts +1 -1
  141. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["needle","executeNeedleTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { needle } from \"./app\";\nimport { executeNeedleTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return needle.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeNeedleTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["needle","executeNeedleTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { needle } from \"./app\";\nimport { executeNeedleTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof needle.credential> {\n return needle.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeNeedleTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOsD;CACtD,OAAOA,YAAAA,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { needle } from \"./app\";\nimport { executeNeedleTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return needle.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeNeedleTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { needle } from \"./app\";\nimport { executeNeedleTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof needle.credential> {\n return needle.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeNeedleTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOsD;CACtD,OAAO,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/add-files-to-collection.ts
@@ -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}).passthrough().describe(\"Schema for a single file to add to the collection.\")).describe(\"List of files to add to the collection. Each file must have a name and URL.\"),\n collection_id: z.string().describe(\"The unique identifier of the collection to add files to\"),\n}).describe(\"Request schema for adding files to a collection.\");\nconst NeedleAddFilesToCollection_FileResultSchema = z.object({\n id: z.string().describe(\"Unique file identifier\").nullable().optional(),\n url: z.string().describe(\"URL of the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"Size of the file in bytes\").nullable().optional(),\n type: z.string().describe(\"MIME type of the file\").nullable().optional(),\n error: z.string().describe(\"Error message if file processing failed\").nullable().optional(),\n status: z.string().describe(\"Current status of the file\").nullable().optional(),\n user_id: z.string().describe(\"ID of the user who uploaded the file\").nullable().optional(),\n md5_hash: z.string().describe(\"MD5 hash of the file\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable().optional(),\n}).passthrough().describe(\"Schema for a single file result returned by the API.\");\nexport const NeedleAddFilesToCollectionOutput = z.object({\n result: z.array(NeedleAddFilesToCollection_FileResultSchema).describe(\"List of file results. Each entry contains the file details or error information.\"),\n}).passthrough().describe(\"Response schema after adding files to a collection.\");\n\nexport const needleAddFilesToCollection = action(\"NEEDLE_ADD_FILES_TO_COLLECTION\", {\n slug: \"needle-add-files-to-collection\",\n name: \"Add files to a collection\",\n description: \"Tool to add files to a collection by providing file URLs. Use when you need to add one or more files to an existing collection. URLs can be public or private (generated via the Files API).\",\n input: NeedleAddFilesToCollectionInput,\n output: NeedleAddFilesToCollectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;EAC9G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,CAAC,SAAS,6EAA6E;CACrK,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;AAC9F,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAChF,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,QAAQA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,kFAAkF,EAC1J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAE/E,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"add-files-to-collection.cjs","names":["z","action"],"sources":["../../src/actions/add-files-to-collection.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { needle } from \"../app\";\n\nexport const 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: AppAction<\n typeof NeedleAddFilesToCollectionInput,\n typeof NeedleAddFilesToCollectionOutput,\n typeof needle.credential\n> = 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":";;;;AAMA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,MAAMA,IAA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C,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,6BAITC,eAAAA,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { needle } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/add-files-to-collection.d.ts
@@ -22,26 +24,7 @@ declare const NeedleAddFilesToCollectionOutput: z.ZodObject<{
22
24
  created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
25
  }, z.core.$loose>>;
24
26
  }, z.core.$loose>;
25
- declare const needleAddFilesToCollection: import("@keystrokehq/action").WorkflowActionDefinition<{
26
- files: {
27
- [x: string]: unknown;
28
- url: string;
29
- name: string;
30
- }[];
31
- collection_id: string;
32
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
33
- connectionId: z.ZodString;
34
- entityId: z.ZodString;
35
- instanceId: z.ZodString;
36
- }, z.core.$strip>, z.ZodObject<{
37
- generic_api_key: z.ZodString;
38
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
39
- connectionId: z.ZodString;
40
- entityId: z.ZodString;
41
- instanceId: z.ZodString;
42
- }, z.core.$strip>, z.ZodObject<{
43
- generic_api_key: z.ZodString;
44
- }, z.core.$strip>>]>;
27
+ declare const needleAddFilesToCollection: AppAction<typeof NeedleAddFilesToCollectionInput, typeof NeedleAddFilesToCollectionOutput, typeof needle.credential>;
45
28
  //#endregion
46
29
  export { needleAddFilesToCollection };
47
30
  //# sourceMappingURL=add-files-to-collection.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-files-to-collection.d.cts","names":[],"sources":["../../src/actions/add-files-to-collection.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cAmB/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAIhC,0BAAA,gCAA0B,wBAAA"}
1
+ {"version":3,"file":"add-files-to-collection.d.cts","names":[],"sources":["../../src/actions/add-files-to-collection.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cAmB/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAIhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { needle } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/add-files-to-collection.d.ts
@@ -22,26 +24,7 @@ declare const NeedleAddFilesToCollectionOutput: z.ZodObject<{
22
24
  created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
25
  }, z.core.$loose>>;
24
26
  }, z.core.$loose>;
25
- declare const needleAddFilesToCollection: import("@keystrokehq/action").WorkflowActionDefinition<{
26
- files: {
27
- [x: string]: unknown;
28
- url: string;
29
- name: string;
30
- }[];
31
- collection_id: string;
32
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
33
- connectionId: z.ZodString;
34
- entityId: z.ZodString;
35
- instanceId: z.ZodString;
36
- }, z.core.$strip>, z.ZodObject<{
37
- generic_api_key: z.ZodString;
38
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
39
- connectionId: z.ZodString;
40
- entityId: z.ZodString;
41
- instanceId: z.ZodString;
42
- }, z.core.$strip>, z.ZodObject<{
43
- generic_api_key: z.ZodString;
44
- }, z.core.$strip>>]>;
27
+ declare const needleAddFilesToCollection: AppAction<typeof NeedleAddFilesToCollectionInput, typeof NeedleAddFilesToCollectionOutput, typeof needle.credential>;
45
28
  //#endregion
46
29
  export { needleAddFilesToCollection };
47
30
  //# sourceMappingURL=add-files-to-collection.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-files-to-collection.d.mts","names":[],"sources":["../../src/actions/add-files-to-collection.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cAmB/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAIhC,0BAAA,gCAA0B,wBAAA"}
1
+ {"version":3,"file":"add-files-to-collection.d.mts","names":[],"sources":["../../src/actions/add-files-to-collection.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cAmB/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAIhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/add-files-to-collection.ts
@@ -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}).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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,CAAC,YAAY,CAAC,CAAC,SAAS,qDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"add-files-to-collection.mjs","names":[],"sources":["../../src/actions/add-files-to-collection.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { needle } from \"../app\";\n\nexport const 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: AppAction<\n typeof NeedleAddFilesToCollectionInput,\n typeof NeedleAddFilesToCollectionOutput,\n typeof needle.credential\n> = 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":";;;;AAMA,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,6BAIT,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb8C,EAAE,OAAO,EACvD,QAAQ,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,kFAAkF,EAC1J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/add-files-to-local-connector.ts
@@ -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}).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,CAA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,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 type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { needle } from \"../app\";\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: AppAction<\n typeof NeedleAddFilesToLocalConnectorInput,\n typeof NeedleAddFilesToLocalConnectorOutput,\n typeof needle.credential\n> = 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":";;;;AAMA,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,iCAITC,eAAAA,OAAO,uCAAuC;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { needle } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/add-files-to-local-connector.d.ts
@@ -23,27 +25,7 @@ declare const NeedleAddFilesToLocalConnectorOutput: z.ZodObject<{
23
25
  connector_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
26
  }, z.core.$loose>>;
25
27
  }, z.core.$loose>;
26
- declare const needleAddFilesToLocalConnector: import("@keystrokehq/action").WorkflowActionDefinition<{
27
- files: {
28
- [x: string]: unknown;
29
- url: string;
30
- name: string;
31
- updated_at: string;
32
- }[];
33
- connector_id: string;
34
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
35
- connectionId: z.ZodString;
36
- entityId: z.ZodString;
37
- instanceId: z.ZodString;
38
- }, z.core.$strip>, z.ZodObject<{
39
- generic_api_key: z.ZodString;
40
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
41
- connectionId: z.ZodString;
42
- entityId: z.ZodString;
43
- instanceId: z.ZodString;
44
- }, z.core.$strip>, z.ZodObject<{
45
- generic_api_key: z.ZodString;
46
- }, z.core.$strip>>]>;
28
+ declare const needleAddFilesToLocalConnector: AppAction<typeof NeedleAddFilesToLocalConnectorInput, typeof NeedleAddFilesToLocalConnectorOutput, typeof needle.credential>;
47
29
  //#endregion
48
30
  export { needleAddFilesToLocalConnector };
49
31
  //# sourceMappingURL=add-files-to-local-connector.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-files-to-local-connector.d.cts","names":[],"sources":["../../src/actions/add-files-to-local-connector.ts"],"mappings":";;;cAIa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;cAoBnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAIpC,8BAAA,gCAA8B,wBAAA"}
1
+ {"version":3,"file":"add-files-to-local-connector.d.cts","names":[],"sources":["../../src/actions/add-files-to-local-connector.ts"],"mappings":";;;;;cAMa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;cAoBnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAIpC,8BAAA,EAAgC,SAAA,QACpC,mCAAA,SACA,oCAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { needle } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/add-files-to-local-connector.d.ts
@@ -23,27 +25,7 @@ declare const NeedleAddFilesToLocalConnectorOutput: z.ZodObject<{
23
25
  connector_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
26
  }, z.core.$loose>>;
25
27
  }, z.core.$loose>;
26
- declare const needleAddFilesToLocalConnector: import("@keystrokehq/action").WorkflowActionDefinition<{
27
- files: {
28
- [x: string]: unknown;
29
- url: string;
30
- name: string;
31
- updated_at: string;
32
- }[];
33
- connector_id: string;
34
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
35
- connectionId: z.ZodString;
36
- entityId: z.ZodString;
37
- instanceId: z.ZodString;
38
- }, z.core.$strip>, z.ZodObject<{
39
- generic_api_key: z.ZodString;
40
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
41
- connectionId: z.ZodString;
42
- entityId: z.ZodString;
43
- instanceId: z.ZodString;
44
- }, z.core.$strip>, z.ZodObject<{
45
- generic_api_key: z.ZodString;
46
- }, z.core.$strip>>]>;
28
+ declare const needleAddFilesToLocalConnector: AppAction<typeof NeedleAddFilesToLocalConnectorInput, typeof NeedleAddFilesToLocalConnectorOutput, typeof needle.credential>;
47
29
  //#endregion
48
30
  export { needleAddFilesToLocalConnector };
49
31
  //# sourceMappingURL=add-files-to-local-connector.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-files-to-local-connector.d.mts","names":[],"sources":["../../src/actions/add-files-to-local-connector.ts"],"mappings":";;;cAIa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;cAoBnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAIpC,8BAAA,gCAA8B,wBAAA"}
1
+ {"version":3,"file":"add-files-to-local-connector.d.mts","names":[],"sources":["../../src/actions/add-files-to-local-connector.ts"],"mappings":";;;;;cAMa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;cAoBnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAIpC,8BAAA,EAAgC,SAAA,QACpC,mCAAA,SACA,oCAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/add-files-to-local-connector.ts
@@ -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}).passthrough().describe(\"Schema for a file to add to the local connector.\")).describe(\"List of files to add to the local connector\"),\n connector_id: z.string().describe(\"The unique identifier of the local connector to add files to\"),\n}).describe(\"Request schema for adding files to a local connector.\");\nconst NeedleAddFilesToLocalConnector_FileOutputSchema = z.object({\n id: z.string().describe(\"Unique file identifier\").nullable().optional(),\n url: z.string().describe(\"URL of the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"Size of the file in bytes\").nullable().optional(),\n type: z.string().describe(\"MIME type of the file\").nullable().optional(),\n user_id: z.string().describe(\"ID of the user who added the file\").nullable().optional(),\n md5_hash: z.string().describe(\"MD5 hash of the file\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the file was created in the system\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the file was last updated\").nullable().optional(),\n connector_id: z.string().describe(\"ID of the connector the file was added to\").nullable().optional(),\n}).passthrough().describe(\"Schema for a file object returned by the API after adding to local connector.\");\nexport const NeedleAddFilesToLocalConnectorOutput = z.object({\n result: z.array(NeedleAddFilesToLocalConnector_FileOutputSchema).describe(\"List of file objects that were added to the local connector\"),\n}).passthrough().describe(\"Response schema after adding files to a local connector.\");\n\nexport const needleAddFilesToLocalConnector = action(\"NEEDLE_ADD_FILES_TO_LOCAL_CONNECTOR\", {\n slug: \"needle-add-files-to-local-connector\",\n name: \"Add Files to Local Connector\",\n description: \"Tool to add files to a local connector by providing file metadata. Use when you need to add external files to a connector using their URLs.\",\n input: NeedleAddFilesToLocalConnectorInput,\n output: NeedleAddFilesToLocalConnectorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsC,EAAE,OAAO;CAC1D,OAAO,EAAE,MAAM,EAAE,OAAO;EACxB,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;EAC5C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,CAAC,SAAS,6CAA6C;CACnI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;AAClG,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,kDAAkD,EAAE,OAAO;CAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAA+E;AAKzG,MAAa,iCAAiC,OAAO,uCAAuC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATkD,EAAE,OAAO,EAC3D,QAAQ,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,6DAA6D,EACzI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"add-files-to-local-connector.mjs","names":[],"sources":["../../src/actions/add-files-to-local-connector.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { needle } from \"../app\";\n\nexport const 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: AppAction<\n typeof NeedleAddFilesToLocalConnectorInput,\n typeof NeedleAddFilesToLocalConnectorOutput,\n typeof needle.credential\n> = 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":";;;;AAMA,MAAa,sCAAsC,EAAE,OAAO;CAC1D,OAAO,EAAE,MAAM,EAAE,OAAO;EACxB,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;EAC5C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,CAAC,SAAS,6CAA6C;CACnI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;AAClG,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,kDAAkD,EAA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action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-collection.ts
@@ -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}).passthrough().describe(\"Response schema for the created collection.\");\n\nexport const needleCreateCollection = action(\"NEEDLE_CREATE_COLLECTION\", {\n slug: \"needle-create-collection\",\n name: \"Create Collection\",\n description: \"Tool to create a new collection. Use after confirming the collection name.\",\n input: NeedleCreateCollectionInput,\n output: NeedleCreateCollectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CACvF,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAClI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9D,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-collection.cjs","names":["z","action"],"sources":["../../src/actions/create-collection.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { needle } from \"../app\";\n\nexport const 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: AppAction<\n typeof NeedleCreateCollectionInput,\n typeof NeedleCreateCollectionOutput,\n typeof needle.credential\n> = 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":";;;;AAMA,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,yBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { needle } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-collection.d.ts
@@ -14,23 +16,7 @@ declare const NeedleCreateCollectionOutput: z.ZodObject<{
14
16
  updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
17
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
18
  }, z.core.$loose>;
17
- declare const needleCreateCollection: import("@keystrokehq/action").WorkflowActionDefinition<{
18
- name: string;
19
- metadata?: Record<string, unknown> | undefined;
20
- description?: string | undefined;
21
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
22
- connectionId: z.ZodString;
23
- entityId: z.ZodString;
24
- instanceId: z.ZodString;
25
- }, z.core.$strip>, z.ZodObject<{
26
- generic_api_key: z.ZodString;
27
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
28
- connectionId: z.ZodString;
29
- entityId: z.ZodString;
30
- instanceId: z.ZodString;
31
- }, z.core.$strip>, z.ZodObject<{
32
- generic_api_key: z.ZodString;
33
- }, z.core.$strip>>]>;
19
+ declare const needleCreateCollection: AppAction<typeof NeedleCreateCollectionInput, typeof NeedleCreateCollectionOutput, typeof needle.credential>;
34
20
  //#endregion
35
21
  export { needleCreateCollection };
36
22
  //# sourceMappingURL=create-collection.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-collection.d.cts","names":[],"sources":["../../src/actions/create-collection.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAK3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;cAS5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"create-collection.d.cts","names":[],"sources":["../../src/actions/create-collection.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAK3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;cAS5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { needle } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-collection.d.ts
@@ -14,23 +16,7 @@ declare const NeedleCreateCollectionOutput: z.ZodObject<{
14
16
  updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
17
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
18
  }, z.core.$loose>;
17
- declare const needleCreateCollection: import("@keystrokehq/action").WorkflowActionDefinition<{
18
- name: string;
19
- metadata?: Record<string, unknown> | undefined;
20
- description?: string | undefined;
21
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
22
- connectionId: z.ZodString;
23
- entityId: z.ZodString;
24
- instanceId: z.ZodString;
25
- }, z.core.$strip>, z.ZodObject<{
26
- generic_api_key: z.ZodString;
27
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
28
- connectionId: z.ZodString;
29
- entityId: z.ZodString;
30
- instanceId: z.ZodString;
31
- }, z.core.$strip>, z.ZodObject<{
32
- generic_api_key: z.ZodString;
33
- }, z.core.$strip>>]>;
19
+ declare const needleCreateCollection: AppAction<typeof NeedleCreateCollectionInput, typeof NeedleCreateCollectionOutput, typeof needle.credential>;
34
20
  //#endregion
35
21
  export { needleCreateCollection };
36
22
  //# sourceMappingURL=create-collection.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-collection.d.mts","names":[],"sources":["../../src/actions/create-collection.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAK3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;cAS5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"create-collection.d.mts","names":[],"sources":["../../src/actions/create-collection.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAK3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;cAS5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const needleCreateCollection = action("NEEDLE_CREATE_COLLECTION", {
@@ -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}).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"}
1
+ {"version":3,"file":"create-collection.mjs","names":[],"sources":["../../src/actions/create-collection.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { needle } from \"../app\";\n\nexport const 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: AppAction<\n typeof NeedleCreateCollectionInput,\n typeof NeedleCreateCollectionOutput,\n typeof needle.credential\n> = 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":";;;AAoBA,MAAa,yBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtByC,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,iDAkBH;CACP,QAlB0C,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,6CAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-local-connector.ts
@@ -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}).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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F,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 type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { needle } from \"../app\";\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: AppAction<\n typeof NeedleCreateLocalConnectorInput,\n typeof NeedleCreateLocalConnectorOutput,\n typeof needle.credential\n> = 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":";;;;AAMA,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,O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,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,YAAY,CAAC,CAAC,SAAS,yCAAyC;AACnE,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,QAAQ,sDAAsD,SAAS,EACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,6BAITC,eAAAA,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { needle } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-local-connector.d.ts
@@ -33,32 +35,7 @@ declare const NeedleCreateLocalConnectorOutput: z.ZodObject<{
33
35
  collection_ids: z.ZodArray<z.ZodString>;
34
36
  }, z.core.$loose>>;
35
37
  }, z.core.$loose>;
36
- declare const needleCreateLocalConnector: import("@keystrokehq/action").WorkflowActionDefinition<{
37
- os: string;
38
- cpu: string;
39
- name: string;
40
- folders: {
41
- [x: string]: unknown;
42
- recursive: boolean;
43
- folder_path: string;
44
- }[];
45
- device_name: string;
46
- device_model: string;
47
- serial_number: string;
48
- collection_ids: string[];
49
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
50
- connectionId: z.ZodString;
51
- entityId: z.ZodString;
52
- instanceId: z.ZodString;
53
- }, z.core.$strip>, z.ZodObject<{
54
- generic_api_key: z.ZodString;
55
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
56
- connectionId: z.ZodString;
57
- entityId: z.ZodString;
58
- instanceId: z.ZodString;
59
- }, z.core.$strip>, z.ZodObject<{
60
- generic_api_key: z.ZodString;
61
- }, z.core.$strip>>]>;
38
+ declare const needleCreateLocalConnector: AppAction<typeof NeedleCreateLocalConnectorInput, typeof NeedleCreateLocalConnectorOutput, typeof needle.credential>;
62
39
  //#endregion
63
40
  export { needleCreateLocalConnector };
64
41
  //# sourceMappingURL=create-local-connector.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-local-connector.d.cts","names":[],"sources":["../../src/actions/create-local-connector.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cA+B/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAIhC,0BAAA,gCAA0B,wBAAA"}
1
+ {"version":3,"file":"create-local-connector.d.cts","names":[],"sources":["../../src/actions/create-local-connector.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cA+B/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAIhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { needle } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-local-connector.d.ts
@@ -33,32 +35,7 @@ declare const NeedleCreateLocalConnectorOutput: z.ZodObject<{
33
35
  collection_ids: z.ZodArray<z.ZodString>;
34
36
  }, z.core.$loose>>;
35
37
  }, z.core.$loose>;
36
- declare const needleCreateLocalConnector: import("@keystrokehq/action").WorkflowActionDefinition<{
37
- os: string;
38
- cpu: string;
39
- name: string;
40
- folders: {
41
- [x: string]: unknown;
42
- recursive: boolean;
43
- folder_path: string;
44
- }[];
45
- device_name: string;
46
- device_model: string;
47
- serial_number: string;
48
- collection_ids: string[];
49
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
50
- connectionId: z.ZodString;
51
- entityId: z.ZodString;
52
- instanceId: z.ZodString;
53
- }, z.core.$strip>, z.ZodObject<{
54
- generic_api_key: z.ZodString;
55
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
56
- connectionId: z.ZodString;
57
- entityId: z.ZodString;
58
- instanceId: z.ZodString;
59
- }, z.core.$strip>, z.ZodObject<{
60
- generic_api_key: z.ZodString;
61
- }, z.core.$strip>>]>;
38
+ declare const needleCreateLocalConnector: AppAction<typeof NeedleCreateLocalConnectorInput, typeof NeedleCreateLocalConnectorOutput, typeof needle.credential>;
62
39
  //#endregion
63
40
  export { needleCreateLocalConnector };
64
41
  //# sourceMappingURL=create-local-connector.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-local-connector.d.mts","names":[],"sources":["../../src/actions/create-local-connector.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cA+B/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAIhC,0BAAA,gCAA0B,wBAAA"}
1
+ {"version":3,"file":"create-local-connector.d.mts","names":[],"sources":["../../src/actions/create-local-connector.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cA+B/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAIhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/create-local-connector.ts
@@ -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}).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,kCAAkC,EAAE,OAAO;CACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACtF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CACzG,SAAS,EAAE,MAAM,EAAE,OAAO;EAC1B,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,2DAA2D;EAC3F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,CAAC,SAAS,8CAA8C;CACtJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAC3E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAClE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CACtF,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yIAAyI;AACxL,CAAC,CAAC,CAAC,SAAS,sDAAsD;AA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,OAAO;CACP,QAT8C,EAAE,OAAO,EACvD,QAAQ,sDAAsD,SAAS,EACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-local-connector.mjs","names":[],"sources":["../../src/actions/create-local-connector.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { needle } from \"../app\";\n\nexport const 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: AppAction<\n typeof NeedleCreateLocalConnectorInput,\n typeof NeedleCreateLocalConnectorOutput,\n typeof needle.credential\n> = 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":";;;;AAMA,MAAa,kCAAkC,EAAE,OAAO;CACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACtF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CACzG,SAAS,EAAE,MAAM,EAAE,OAAO;EAC1B,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,2DAA2D;EAC3F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,CAAC,SAAS,8CAA8C;CACtJ,aAAa,EAAE,OAAO,CAAC,CAAC,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BAA6B,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,6BAIT,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb8C,EAAE,OAAO,EACvD,QAAQ,sDAAsD,SAAS,EACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/delete-files-from-collection.ts