@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":"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"}
1
+ {"version":3,"file":"delete-files-from-collection.cjs","names":["z","action"],"sources":["../../src/actions/delete-files-from-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 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: AppAction<\n typeof NeedleDeleteFilesFromCollectionInput,\n typeof NeedleDeleteFilesFromCollectionOutput,\n typeof needle.credential\n> = 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":";;;;AAMA,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,kCAITC,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/delete-files-from-collection.d.ts
@@ -9,22 +11,7 @@ declare const NeedleDeleteFilesFromCollectionOutput: z.ZodObject<{
9
11
  failed_file_ids: z.ZodArray<z.ZodString>;
10
12
  deleted_file_ids: z.ZodArray<z.ZodString>;
11
13
  }, z.core.$loose>;
12
- declare const needleDeleteFilesFromCollection: import("@keystrokehq/action").WorkflowActionDefinition<{
13
- file_ids: string[];
14
- collection_id: string;
15
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
16
- connectionId: z.ZodString;
17
- entityId: z.ZodString;
18
- instanceId: z.ZodString;
19
- }, z.core.$strip>, z.ZodObject<{
20
- generic_api_key: z.ZodString;
21
- }, z.core.$strip>>]>, 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>>]>;
14
+ declare const needleDeleteFilesFromCollection: AppAction<typeof NeedleDeleteFilesFromCollectionInput, typeof NeedleDeleteFilesFromCollectionOutput, typeof needle.credential>;
28
15
  //#endregion
29
16
  export { needleDeleteFilesFromCollection };
30
17
  //# sourceMappingURL=delete-files-from-collection.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-files-from-collection.d.cts","names":[],"sources":["../../src/actions/delete-files-from-collection.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAIpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;cAKrC,+BAAA,gCAA+B,wBAAA"}
1
+ {"version":3,"file":"delete-files-from-collection.d.cts","names":[],"sources":["../../src/actions/delete-files-from-collection.ts"],"mappings":";;;;;cAMa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAIpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;cAKrC,+BAAA,EAAiC,SAAA,QACrC,oCAAA,SACA,qCAAA,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/delete-files-from-collection.d.ts
@@ -9,22 +11,7 @@ declare const NeedleDeleteFilesFromCollectionOutput: z.ZodObject<{
9
11
  failed_file_ids: z.ZodArray<z.ZodString>;
10
12
  deleted_file_ids: z.ZodArray<z.ZodString>;
11
13
  }, z.core.$loose>;
12
- declare const needleDeleteFilesFromCollection: import("@keystrokehq/action").WorkflowActionDefinition<{
13
- file_ids: string[];
14
- collection_id: string;
15
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
16
- connectionId: z.ZodString;
17
- entityId: z.ZodString;
18
- instanceId: z.ZodString;
19
- }, z.core.$strip>, z.ZodObject<{
20
- generic_api_key: z.ZodString;
21
- }, z.core.$strip>>]>, 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>>]>;
14
+ declare const needleDeleteFilesFromCollection: AppAction<typeof NeedleDeleteFilesFromCollectionInput, typeof NeedleDeleteFilesFromCollectionOutput, typeof needle.credential>;
28
15
  //#endregion
29
16
  export { needleDeleteFilesFromCollection };
30
17
  //# sourceMappingURL=delete-files-from-collection.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-files-from-collection.d.mts","names":[],"sources":["../../src/actions/delete-files-from-collection.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAIpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;cAKrC,+BAAA,gCAA+B,wBAAA"}
1
+ {"version":3,"file":"delete-files-from-collection.d.mts","names":[],"sources":["../../src/actions/delete-files-from-collection.ts"],"mappings":";;;;;cAMa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAIpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;cAKrC,+BAAA,EAAiC,SAAA,QACrC,oCAAA,SACA,qCAAA,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 needleDeleteFilesFromCollection = action("NEEDLE_DELETE_FILES_FROM_COLLECTION", {
@@ -1 +1 @@
1
- {"version":3,"file":"delete-files-from-collection.mjs","names":[],"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":";;AAaA,MAAa,kCAAkC,OAAO,uCAAuC;CAC3F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbkD,EAAE,OAAO;EAC3D,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gDAAgD;EACvF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CACzG,CAAC,CAAC,CAAC,SAAS,sDAUH;CACP,QAVmD,EAAE,OAAO;EAC5D,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD;EACnG,kBAAkB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2DAA2D;CAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"delete-files-from-collection.mjs","names":[],"sources":["../../src/actions/delete-files-from-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 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: AppAction<\n typeof NeedleDeleteFilesFromCollectionInput,\n typeof NeedleDeleteFilesFromCollectionOutput,\n typeof needle.credential\n> = 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":";;;AAeA,MAAa,kCAIT,OAAO,uCAAuC;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBkD,EAAE,OAAO;EAC3D,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gDAAgD;EACvF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CACzG,CAAC,CAAC,CAAC,SAAS,sDAcH;CACP,QAdmD,EAAE,OAAO;EAC5D,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD;EACnG,kBAAkB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2DAA2D;CAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAWhB;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-local-connector.ts
@@ -1 +1 @@
1
- {"version":3,"file":"delete-files-from-local-connector.cjs","names":["z","action"],"sources":["../../src/actions/delete-files-from-local-connector.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleDeleteFilesFromLocalConnectorInput = z.object({\n by: z.enum([\"name\", \"file_ids\"]).describe(\"Method to identify files for deletion: 'name' to delete by filename, 'file_ids' to delete by file IDs\"),\n name: z.string().describe(\"Name of the file to delete. Required when 'by' is 'name'\").optional(),\n file_ids: z.array(z.string()).describe(\"List of file IDs to delete. Required when 'by' is 'file_ids'\").optional(),\n connector_id: z.string().describe(\"The unique identifier of the connector from which to delete files\"),\n}).describe(\"Request schema for deleting files from a local connector.\");\nconst NeedleDeleteFilesFromLocalConnector_DeletedFileModelSchema = z.object({\n id: z.string().describe(\"Unique file identifier\").nullable(),\n url: z.string().describe(\"URL of the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable(),\n size: z.number().int().describe(\"Size of the file in bytes\").nullable().optional(),\n type: z.string().describe(\"MIME type of the file\").nullable().optional(),\n 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 updated_at: z.string().describe(\"Last update timestamp in ISO 8601 format\").nullable().optional(),\n connector_id: z.string().describe(\"ID of the connector\").nullable(),\n}).passthrough().describe(\"Schema for a deleted file object returned by the API.\");\nexport const NeedleDeleteFilesFromLocalConnectorOutput = z.object({\n result: z.array(NeedleDeleteFilesFromLocalConnector_DeletedFileModelSchema).describe(\"List of files that were deleted\").nullable().optional(),\n}).passthrough().describe(\"Response schema after deleting files from a local connector.\");\n\nexport const needleDeleteFilesFromLocalConnector = action(\"NEEDLE_DELETE_FILES_FROM_LOCAL_CONNECTOR\", {\n slug: \"needle-delete-files-from-local-connector\",\n name: \"Delete files from local connector\",\n description: \"Tool to delete files from a local connector by filename or file IDs. Use when you need to remove files from a connector's local storage.\",\n input: NeedleDeleteFilesFromLocalConnectorInput,\n output: NeedleDeleteFilesFromLocalConnectorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,KAAK,CAAC,QAAQ,UAAU,CAAC,CAAC,CAAC,SAAS,uGAAuG;CACjJ,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC/F,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAChH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;AACvG,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,6DAA6DA,IAAAA,EAAE,OAAO;CAC1E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC3D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,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;CAC7F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AACjF,MAAa,4CAA4CA,IAAAA,EAAE,OAAO,EAChE,QAAQA,IAAAA,EAAE,MAAM,0DAA0D,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC9I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAA8D;AAExF,MAAa,sCAAsCC,eAAAA,OAAO,4CAA4C;CACpG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-files-from-local-connector.cjs","names":["z","action"],"sources":["../../src/actions/delete-files-from-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 NeedleDeleteFilesFromLocalConnectorInput = z.object({\n by: z.enum([\"name\", \"file_ids\"]).describe(\"Method to identify files for deletion: 'name' to delete by filename, 'file_ids' to delete by file IDs\"),\n name: z.string().describe(\"Name of the file to delete. Required when 'by' is 'name'\").optional(),\n file_ids: z.array(z.string()).describe(\"List of file IDs to delete. Required when 'by' is 'file_ids'\").optional(),\n connector_id: z.string().describe(\"The unique identifier of the connector from which to delete files\"),\n}).describe(\"Request schema for deleting files from a local connector.\");\nconst NeedleDeleteFilesFromLocalConnector_DeletedFileModelSchema = z.object({\n id: z.string().describe(\"Unique file identifier\").nullable(),\n url: z.string().describe(\"URL of the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable(),\n size: z.number().int().describe(\"Size of the file in bytes\").nullable().optional(),\n type: z.string().describe(\"MIME type of the file\").nullable().optional(),\n 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 updated_at: z.string().describe(\"Last update timestamp in ISO 8601 format\").nullable().optional(),\n connector_id: z.string().describe(\"ID of the connector\").nullable(),\n}).passthrough().describe(\"Schema for a deleted file object returned by the API.\");\nexport const NeedleDeleteFilesFromLocalConnectorOutput = z.object({\n result: z.array(NeedleDeleteFilesFromLocalConnector_DeletedFileModelSchema).describe(\"List of files that were deleted\").nullable().optional(),\n}).passthrough().describe(\"Response schema after deleting files from a local connector.\");\n\nexport const needleDeleteFilesFromLocalConnector: AppAction<\n typeof NeedleDeleteFilesFromLocalConnectorInput,\n typeof NeedleDeleteFilesFromLocalConnectorOutput,\n typeof needle.credential\n> = action(\"NEEDLE_DELETE_FILES_FROM_LOCAL_CONNECTOR\", {\n slug: \"needle-delete-files-from-local-connector\",\n name: \"Delete files from local connector\",\n description: \"Tool to delete files from a local connector by filename or file IDs. Use when you need to remove files from a connector's local storage.\",\n input: NeedleDeleteFilesFromLocalConnectorInput,\n output: NeedleDeleteFilesFromLocalConnectorOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,KAAK,CAAC,QAAQ,UAAU,CAAC,CAAC,CAAC,SAAS,uGAAuG;CACjJ,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC/F,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAChH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;AACvG,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,6DAA6DA,IAAAA,EAAE,OAAO;CAC1E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC3D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,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;CAC7F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AACjF,MAAa,4CAA4CA,IAAAA,EAAE,OAAO,EAChE,QAAQA,IAAAA,EAAE,MAAM,0DAA0D,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC9I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAA8D;AAExF,MAAa,sCAITC,eAAAA,OAAO,4CAA4C;CACrD,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/delete-files-from-local-connector.d.ts
@@ -24,24 +26,7 @@ declare const NeedleDeleteFilesFromLocalConnectorOutput: z.ZodObject<{
24
26
  connector_id: z.ZodNullable<z.ZodString>;
25
27
  }, z.core.$loose>>>>;
26
28
  }, z.core.$loose>;
27
- declare const needleDeleteFilesFromLocalConnector: import("@keystrokehq/action").WorkflowActionDefinition<{
28
- by: "name" | "file_ids";
29
- connector_id: string;
30
- name?: string | undefined;
31
- file_ids?: string[] | undefined;
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>>]>;
29
+ declare const needleDeleteFilesFromLocalConnector: AppAction<typeof NeedleDeleteFilesFromLocalConnectorInput, typeof NeedleDeleteFilesFromLocalConnectorOutput, typeof needle.credential>;
45
30
  //#endregion
46
31
  export { needleDeleteFilesFromLocalConnector };
47
32
  //# sourceMappingURL=delete-files-from-local-connector.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-files-from-local-connector.d.cts","names":[],"sources":["../../src/actions/delete-files-from-local-connector.ts"],"mappings":";;;cAIa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;cAkBxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAIzC,mCAAA,gCAAmC,wBAAA"}
1
+ {"version":3,"file":"delete-files-from-local-connector.d.cts","names":[],"sources":["../../src/actions/delete-files-from-local-connector.ts"],"mappings":";;;;;cAMa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;cAkBxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAIzC,mCAAA,EAAqC,SAAA,QACzC,wCAAA,SACA,yCAAA,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/delete-files-from-local-connector.d.ts
@@ -24,24 +26,7 @@ declare const NeedleDeleteFilesFromLocalConnectorOutput: z.ZodObject<{
24
26
  connector_id: z.ZodNullable<z.ZodString>;
25
27
  }, z.core.$loose>>>>;
26
28
  }, z.core.$loose>;
27
- declare const needleDeleteFilesFromLocalConnector: import("@keystrokehq/action").WorkflowActionDefinition<{
28
- by: "name" | "file_ids";
29
- connector_id: string;
30
- name?: string | undefined;
31
- file_ids?: string[] | undefined;
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>>]>;
29
+ declare const needleDeleteFilesFromLocalConnector: AppAction<typeof NeedleDeleteFilesFromLocalConnectorInput, typeof NeedleDeleteFilesFromLocalConnectorOutput, typeof needle.credential>;
45
30
  //#endregion
46
31
  export { needleDeleteFilesFromLocalConnector };
47
32
  //# sourceMappingURL=delete-files-from-local-connector.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-files-from-local-connector.d.mts","names":[],"sources":["../../src/actions/delete-files-from-local-connector.ts"],"mappings":";;;cAIa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;cAkBxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAIzC,mCAAA,gCAAmC,wBAAA"}
1
+ {"version":3,"file":"delete-files-from-local-connector.d.mts","names":[],"sources":["../../src/actions/delete-files-from-local-connector.ts"],"mappings":";;;;;cAMa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;cAkBxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAIzC,mCAAA,EAAqC,SAAA,QACzC,wCAAA,SACA,yCAAA,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/delete-files-from-local-connector.ts
@@ -1 +1 @@
1
- {"version":3,"file":"delete-files-from-local-connector.mjs","names":[],"sources":["../../src/actions/delete-files-from-local-connector.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleDeleteFilesFromLocalConnectorInput = z.object({\n by: z.enum([\"name\", \"file_ids\"]).describe(\"Method to identify files for deletion: 'name' to delete by filename, 'file_ids' to delete by file IDs\"),\n name: z.string().describe(\"Name of the file to delete. Required when 'by' is 'name'\").optional(),\n file_ids: z.array(z.string()).describe(\"List of file IDs to delete. Required when 'by' is 'file_ids'\").optional(),\n connector_id: z.string().describe(\"The unique identifier of the connector from which to delete files\"),\n}).describe(\"Request schema for deleting files from a local connector.\");\nconst NeedleDeleteFilesFromLocalConnector_DeletedFileModelSchema = z.object({\n id: z.string().describe(\"Unique file identifier\").nullable(),\n url: z.string().describe(\"URL of the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable(),\n size: z.number().int().describe(\"Size of the file in bytes\").nullable().optional(),\n type: z.string().describe(\"MIME type of the file\").nullable().optional(),\n 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 updated_at: z.string().describe(\"Last update timestamp in ISO 8601 format\").nullable().optional(),\n connector_id: z.string().describe(\"ID of the connector\").nullable(),\n}).passthrough().describe(\"Schema for a deleted file object returned by the API.\");\nexport const NeedleDeleteFilesFromLocalConnectorOutput = z.object({\n result: z.array(NeedleDeleteFilesFromLocalConnector_DeletedFileModelSchema).describe(\"List of files that were deleted\").nullable().optional(),\n}).passthrough().describe(\"Response schema after deleting files from a local connector.\");\n\nexport const needleDeleteFilesFromLocalConnector = action(\"NEEDLE_DELETE_FILES_FROM_LOCAL_CONNECTOR\", {\n slug: \"needle-delete-files-from-local-connector\",\n name: \"Delete files from local connector\",\n description: \"Tool to delete files from a local connector by filename or file IDs. Use when you need to remove files from a connector's local storage.\",\n input: NeedleDeleteFilesFromLocalConnectorInput,\n output: NeedleDeleteFilesFromLocalConnectorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAA2C,EAAE,OAAO;CAC/D,IAAI,EAAE,KAAK,CAAC,QAAQ,UAAU,CAAC,CAAC,CAAC,SAAS,uGAAuG;CACjJ,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC/F,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAChH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;AACvG,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,6DAA6D,EAAE,OAAO;CAC1E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC3D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,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;CAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAKjF,MAAa,sCAAsC,OAAO,4CAA4C;CACpG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuD,EAAE,OAAO,EAChE,QAAQ,EAAE,MAAM,0DAA0D,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC9I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"delete-files-from-local-connector.mjs","names":[],"sources":["../../src/actions/delete-files-from-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 NeedleDeleteFilesFromLocalConnectorInput = z.object({\n by: z.enum([\"name\", \"file_ids\"]).describe(\"Method to identify files for deletion: 'name' to delete by filename, 'file_ids' to delete by file IDs\"),\n name: z.string().describe(\"Name of the file to delete. Required when 'by' is 'name'\").optional(),\n file_ids: z.array(z.string()).describe(\"List of file IDs to delete. Required when 'by' is 'file_ids'\").optional(),\n connector_id: z.string().describe(\"The unique identifier of the connector from which to delete files\"),\n}).describe(\"Request schema for deleting files from a local connector.\");\nconst NeedleDeleteFilesFromLocalConnector_DeletedFileModelSchema = z.object({\n id: z.string().describe(\"Unique file identifier\").nullable(),\n url: z.string().describe(\"URL of the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable(),\n size: z.number().int().describe(\"Size of the file in bytes\").nullable().optional(),\n type: z.string().describe(\"MIME type of the file\").nullable().optional(),\n 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 updated_at: z.string().describe(\"Last update timestamp in ISO 8601 format\").nullable().optional(),\n connector_id: z.string().describe(\"ID of the connector\").nullable(),\n}).passthrough().describe(\"Schema for a deleted file object returned by the API.\");\nexport const NeedleDeleteFilesFromLocalConnectorOutput = z.object({\n result: z.array(NeedleDeleteFilesFromLocalConnector_DeletedFileModelSchema).describe(\"List of files that were deleted\").nullable().optional(),\n}).passthrough().describe(\"Response schema after deleting files from a local connector.\");\n\nexport const needleDeleteFilesFromLocalConnector: AppAction<\n typeof NeedleDeleteFilesFromLocalConnectorInput,\n typeof NeedleDeleteFilesFromLocalConnectorOutput,\n typeof needle.credential\n> = action(\"NEEDLE_DELETE_FILES_FROM_LOCAL_CONNECTOR\", {\n slug: \"needle-delete-files-from-local-connector\",\n name: \"Delete files from local connector\",\n description: \"Tool to delete files from a local connector by filename or file IDs. Use when you need to remove files from a connector's local storage.\",\n input: NeedleDeleteFilesFromLocalConnectorInput,\n output: NeedleDeleteFilesFromLocalConnectorOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2CAA2C,EAAE,OAAO;CAC/D,IAAI,EAAE,KAAK,CAAC,QAAQ,UAAU,CAAC,CAAC,CAAC,SAAS,uGAAuG;CACjJ,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC/F,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAChH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;AACvG,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,6DAA6D,EAAE,OAAO;CAC1E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC3D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,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;CAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAKjF,MAAa,sCAIT,OAAO,4CAA4C;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbuD,EAAE,OAAO,EAChE,QAAQ,EAAE,MAAM,0DAA0D,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC9I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAWhB;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/get-collection-stats.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-collection-stats.cjs","names":["z","action"],"sources":["../../src/actions/get-collection-stats.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleGetCollectionStatsInput = z.object({\n collection_id: z.string().describe(\"The unique identifier of the collection. Verify the exact ID when collections have similar names to avoid retrieving stats for the wrong collection.\"),\n}).describe(\"Request parameters for GET_COLLECTION_STATS.\");\nconst NeedleGetCollectionStats_DataStatSchema = z.object({\n bytes: z.number().int().describe(\"Total bytes for files with this status (may be null for error status)\").nullable().optional(),\n files: z.number().int().describe(\"Number of files with this status\").nullable(),\n status: z.string().describe(\"Status of the files (e.g., 'indexed', 'error')\").nullable(),\n}).passthrough().describe(\"Data statistics for a specific status category.\");\nexport const NeedleGetCollectionStatsOutput = z.object({\n users: z.number().int().describe(\"Number of users associated with the collection\").nullable(),\n characters: z.number().int().describe(\"Total number of characters in the collection\").nullable(),\n data_stats: z.array(NeedleGetCollectionStats_DataStatSchema).describe(\"List of data statistics grouped by status\").nullable().optional(),\n chunks_count: z.number().int().describe(\"Number of chunks in the collection\").nullable(),\n}).passthrough().describe(\"Response schema for GET_COLLECTION_STATS.\");\n\nexport const needleGetCollectionStats = action(\"NEEDLE_GET_COLLECTION_STATS\", {\n slug: \"needle-get-collection-stats\",\n name: \"Get collection stats\",\n description: \"Tool to retrieve statistics for a specific collection by its ID. Use when you need document count, index size, and timestamps after confirming the collection exists. Zero document count is a valid response for empty collections, not an error.\",\n input: NeedleGetCollectionStatsInput,\n output: NeedleGetCollectionStatsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ,EAC3L,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC9E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC/F,YAAYA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-collection-stats.cjs","names":["z","action"],"sources":["../../src/actions/get-collection-stats.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 NeedleGetCollectionStatsInput = z.object({\n collection_id: z.string().describe(\"The unique identifier of the collection. Verify the exact ID when collections have similar names to avoid retrieving stats for the wrong collection.\"),\n}).describe(\"Request parameters for GET_COLLECTION_STATS.\");\nconst NeedleGetCollectionStats_DataStatSchema = z.object({\n bytes: z.number().int().describe(\"Total bytes for files with this status (may be null for error status)\").nullable().optional(),\n files: z.number().int().describe(\"Number of files with this status\").nullable(),\n status: z.string().describe(\"Status of the files (e.g., 'indexed', 'error')\").nullable(),\n}).passthrough().describe(\"Data statistics for a specific status category.\");\nexport const NeedleGetCollectionStatsOutput = z.object({\n users: z.number().int().describe(\"Number of users associated with the collection\").nullable(),\n characters: z.number().int().describe(\"Total number of characters in the collection\").nullable(),\n data_stats: z.array(NeedleGetCollectionStats_DataStatSchema).describe(\"List of data statistics grouped by status\").nullable().optional(),\n chunks_count: z.number().int().describe(\"Number of chunks in the collection\").nullable(),\n}).passthrough().describe(\"Response schema for GET_COLLECTION_STATS.\");\n\nexport const needleGetCollectionStats: AppAction<\n typeof NeedleGetCollectionStatsInput,\n typeof NeedleGetCollectionStatsOutput,\n typeof needle.credential\n> = action(\"NEEDLE_GET_COLLECTION_STATS\", {\n slug: \"needle-get-collection-stats\",\n name: \"Get collection stats\",\n description: \"Tool to retrieve statistics for a specific collection by its ID. Use when you need document count, index size, and timestamps after confirming the collection exists. Zero document count is a valid response for empty collections, not an error.\",\n input: NeedleGetCollectionStatsInput,\n output: NeedleGetCollectionStatsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ,EAC3L,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC9E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC/F,YAAYA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,2BAITC,eAAAA,OAAO,+BAA+B;CACxC,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/get-collection-stats.d.ts
@@ -14,21 +16,7 @@ declare const NeedleGetCollectionStatsOutput: z.ZodObject<{
14
16
  }, z.core.$loose>>>>;
15
17
  chunks_count: z.ZodNullable<z.ZodNumber>;
16
18
  }, z.core.$loose>;
17
- declare const needleGetCollectionStats: import("@keystrokehq/action").WorkflowActionDefinition<{
18
- collection_id: string;
19
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
20
- connectionId: z.ZodString;
21
- entityId: z.ZodString;
22
- instanceId: z.ZodString;
23
- }, z.core.$strip>, z.ZodObject<{
24
- generic_api_key: z.ZodString;
25
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
26
- connectionId: z.ZodString;
27
- entityId: z.ZodString;
28
- instanceId: z.ZodString;
29
- }, z.core.$strip>, z.ZodObject<{
30
- generic_api_key: z.ZodString;
31
- }, z.core.$strip>>]>;
19
+ declare const needleGetCollectionStats: AppAction<typeof NeedleGetCollectionStatsInput, typeof NeedleGetCollectionStatsOutput, typeof needle.credential>;
32
20
  //#endregion
33
21
  export { needleGetCollectionStats };
34
22
  //# sourceMappingURL=get-collection-stats.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-collection-stats.d.cts","names":[],"sources":["../../src/actions/get-collection-stats.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAQ7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;cAO9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"get-collection-stats.d.cts","names":[],"sources":["../../src/actions/get-collection-stats.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAQ7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;cAO9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,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/get-collection-stats.d.ts
@@ -14,21 +16,7 @@ declare const NeedleGetCollectionStatsOutput: z.ZodObject<{
14
16
  }, z.core.$loose>>>>;
15
17
  chunks_count: z.ZodNullable<z.ZodNumber>;
16
18
  }, z.core.$loose>;
17
- declare const needleGetCollectionStats: import("@keystrokehq/action").WorkflowActionDefinition<{
18
- collection_id: string;
19
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
20
- connectionId: z.ZodString;
21
- entityId: z.ZodString;
22
- instanceId: z.ZodString;
23
- }, z.core.$strip>, z.ZodObject<{
24
- generic_api_key: z.ZodString;
25
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
26
- connectionId: z.ZodString;
27
- entityId: z.ZodString;
28
- instanceId: z.ZodString;
29
- }, z.core.$strip>, z.ZodObject<{
30
- generic_api_key: z.ZodString;
31
- }, z.core.$strip>>]>;
19
+ declare const needleGetCollectionStats: AppAction<typeof NeedleGetCollectionStatsInput, typeof NeedleGetCollectionStatsOutput, typeof needle.credential>;
32
20
  //#endregion
33
21
  export { needleGetCollectionStats };
34
22
  //# sourceMappingURL=get-collection-stats.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-collection-stats.d.mts","names":[],"sources":["../../src/actions/get-collection-stats.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAQ7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;cAO9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"get-collection-stats.d.mts","names":[],"sources":["../../src/actions/get-collection-stats.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAQ7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;cAO9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,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/get-collection-stats.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-collection-stats.mjs","names":[],"sources":["../../src/actions/get-collection-stats.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleGetCollectionStatsInput = z.object({\n collection_id: z.string().describe(\"The unique identifier of the collection. Verify the exact ID when collections have similar names to avoid retrieving stats for the wrong collection.\"),\n}).describe(\"Request parameters for GET_COLLECTION_STATS.\");\nconst NeedleGetCollectionStats_DataStatSchema = z.object({\n bytes: z.number().int().describe(\"Total bytes for files with this status (may be null for error status)\").nullable().optional(),\n files: z.number().int().describe(\"Number of files with this status\").nullable(),\n status: z.string().describe(\"Status of the files (e.g., 'indexed', 'error')\").nullable(),\n}).passthrough().describe(\"Data statistics for a specific status category.\");\nexport const NeedleGetCollectionStatsOutput = z.object({\n users: z.number().int().describe(\"Number of users associated with the collection\").nullable(),\n characters: z.number().int().describe(\"Total number of characters in the collection\").nullable(),\n data_stats: z.array(NeedleGetCollectionStats_DataStatSchema).describe(\"List of data statistics grouped by status\").nullable().optional(),\n chunks_count: z.number().int().describe(\"Number of chunks in the collection\").nullable(),\n}).passthrough().describe(\"Response schema for GET_COLLECTION_STATS.\");\n\nexport const needleGetCollectionStats = action(\"NEEDLE_GET_COLLECTION_STATS\", {\n slug: \"needle-get-collection-stats\",\n name: \"Get collection stats\",\n description: \"Tool to retrieve statistics for a specific collection by its ID. Use when you need document count, index size, and timestamps after confirming the collection exists. Zero document count is a valid response for empty collections, not an error.\",\n input: NeedleGetCollectionStatsInput,\n output: NeedleGetCollectionStatsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO,EACpD,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ,EAC3L,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,0CAA0C,EAAE,OAAO;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC9E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAQ3E,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ4C,EAAE,OAAO;EACrD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EAC/F,YAAY,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvI,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-collection-stats.mjs","names":[],"sources":["../../src/actions/get-collection-stats.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 NeedleGetCollectionStatsInput = z.object({\n collection_id: z.string().describe(\"The unique identifier of the collection. Verify the exact ID when collections have similar names to avoid retrieving stats for the wrong collection.\"),\n}).describe(\"Request parameters for GET_COLLECTION_STATS.\");\nconst NeedleGetCollectionStats_DataStatSchema = z.object({\n bytes: z.number().int().describe(\"Total bytes for files with this status (may be null for error status)\").nullable().optional(),\n files: z.number().int().describe(\"Number of files with this status\").nullable(),\n status: z.string().describe(\"Status of the files (e.g., 'indexed', 'error')\").nullable(),\n}).passthrough().describe(\"Data statistics for a specific status category.\");\nexport const NeedleGetCollectionStatsOutput = z.object({\n users: z.number().int().describe(\"Number of users associated with the collection\").nullable(),\n characters: z.number().int().describe(\"Total number of characters in the collection\").nullable(),\n data_stats: z.array(NeedleGetCollectionStats_DataStatSchema).describe(\"List of data statistics grouped by status\").nullable().optional(),\n chunks_count: z.number().int().describe(\"Number of chunks in the collection\").nullable(),\n}).passthrough().describe(\"Response schema for GET_COLLECTION_STATS.\");\n\nexport const needleGetCollectionStats: AppAction<\n typeof NeedleGetCollectionStatsInput,\n typeof NeedleGetCollectionStatsOutput,\n typeof needle.credential\n> = action(\"NEEDLE_GET_COLLECTION_STATS\", {\n slug: \"needle-get-collection-stats\",\n name: \"Get collection stats\",\n description: \"Tool to retrieve statistics for a specific collection by its ID. Use when you need document count, index size, and timestamps after confirming the collection exists. Zero document count is a valid response for empty collections, not an error.\",\n input: NeedleGetCollectionStatsInput,\n output: NeedleGetCollectionStatsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgC,EAAE,OAAO,EACpD,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ,EAC3L,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,0CAA0C,EAAE,OAAO;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC9E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAQ3E,MAAa,2BAIT,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhB4C,EAAE,OAAO;EACrD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EAC/F,YAAY,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvI,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAWhB;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/get-collection.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-collection.cjs","names":["z","action"],"sources":["../../src/actions/get-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleGetCollectionInput = z.object({\n collection_id: z.string().describe(\"The unique identifier of the collection to retrieve.\"),\n}).describe(\"Request parameters for getting collection details.\");\nexport const NeedleGetCollectionOutput = z.object({\n id: z.string().describe(\"Unique identifier for the collection.\").nullable(),\n name: z.string().describe(\"Name of the collection.\").nullable(),\n created_at: z.string().describe(\"Timestamp when the collection was created, in ISO 8601 format.\").nullable(),\n search_queries: z.number().int().describe(\"Number of search queries performed on this collection.\").nullable(),\n}).passthrough().describe(\"Response schema containing collection details.\");\n\nexport const needleGetCollection = action(\"NEEDLE_GET_COLLECTION\", {\n slug: \"needle-get-collection\",\n name: \"Get Collection\",\n description: \"Tool to retrieve details for a specific collection by its ID. Use when you need to get collection metadata including name, creation date, and search query count.\",\n input: NeedleGetCollectionInput,\n output: NeedleGetCollectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,EAC3F,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC3G,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-collection.cjs","names":["z","action"],"sources":["../../src/actions/get-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 NeedleGetCollectionInput = z.object({\n collection_id: z.string().describe(\"The unique identifier of the collection to retrieve.\"),\n}).describe(\"Request parameters for getting collection details.\");\nexport const NeedleGetCollectionOutput = z.object({\n id: z.string().describe(\"Unique identifier for the collection.\").nullable(),\n name: z.string().describe(\"Name of the collection.\").nullable(),\n created_at: z.string().describe(\"Timestamp when the collection was created, in ISO 8601 format.\").nullable(),\n search_queries: z.number().int().describe(\"Number of search queries performed on this collection.\").nullable(),\n}).passthrough().describe(\"Response schema containing collection details.\");\n\nexport const needleGetCollection: AppAction<\n typeof NeedleGetCollectionInput,\n typeof NeedleGetCollectionOutput,\n typeof needle.credential\n> = action(\"NEEDLE_GET_COLLECTION\", {\n slug: \"needle-get-collection\",\n name: \"Get Collection\",\n description: \"Tool to retrieve details for a specific collection by its ID. Use when you need to get collection metadata including name, creation date, and search query count.\",\n input: NeedleGetCollectionInput,\n output: NeedleGetCollectionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,EAC3F,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC3G,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,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/get-collection.d.ts
@@ -10,21 +12,7 @@ declare const NeedleGetCollectionOutput: z.ZodObject<{
10
12
  created_at: z.ZodNullable<z.ZodString>;
11
13
  search_queries: z.ZodNullable<z.ZodNumber>;
12
14
  }, z.core.$loose>;
13
- declare const needleGetCollection: import("@keystrokehq/action").WorkflowActionDefinition<{
14
- collection_id: string;
15
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
16
- connectionId: z.ZodString;
17
- entityId: z.ZodString;
18
- instanceId: z.ZodString;
19
- }, z.core.$strip>, z.ZodObject<{
20
- generic_api_key: z.ZodString;
21
- }, z.core.$strip>>]>, 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>>]>;
15
+ declare const needleGetCollection: AppAction<typeof NeedleGetCollectionInput, typeof NeedleGetCollectionOutput, typeof needle.credential>;
28
16
  //#endregion
29
17
  export { needleGetCollection };
30
18
  //# sourceMappingURL=get-collection.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-collection.d.cts","names":[],"sources":["../../src/actions/get-collection.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;cAOzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"get-collection.d.cts","names":[],"sources":["../../src/actions/get-collection.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;cAOzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,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/get-collection.d.ts
@@ -10,21 +12,7 @@ declare const NeedleGetCollectionOutput: z.ZodObject<{
10
12
  created_at: z.ZodNullable<z.ZodString>;
11
13
  search_queries: z.ZodNullable<z.ZodNumber>;
12
14
  }, z.core.$loose>;
13
- declare const needleGetCollection: import("@keystrokehq/action").WorkflowActionDefinition<{
14
- collection_id: string;
15
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
16
- connectionId: z.ZodString;
17
- entityId: z.ZodString;
18
- instanceId: z.ZodString;
19
- }, z.core.$strip>, z.ZodObject<{
20
- generic_api_key: z.ZodString;
21
- }, z.core.$strip>>]>, 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>>]>;
15
+ declare const needleGetCollection: AppAction<typeof NeedleGetCollectionInput, typeof NeedleGetCollectionOutput, typeof needle.credential>;
28
16
  //#endregion
29
17
  export { needleGetCollection };
30
18
  //# sourceMappingURL=get-collection.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-collection.d.mts","names":[],"sources":["../../src/actions/get-collection.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;cAOzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"get-collection.d.mts","names":[],"sources":["../../src/actions/get-collection.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;cAOzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,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 needleGetCollection = action("NEEDLE_GET_COLLECTION", {
@@ -1 +1 @@
1
- {"version":3,"file":"get-collection.mjs","names":[],"sources":["../../src/actions/get-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleGetCollectionInput = z.object({\n collection_id: z.string().describe(\"The unique identifier of the collection to retrieve.\"),\n}).describe(\"Request parameters for getting collection details.\");\nexport const NeedleGetCollectionOutput = z.object({\n id: z.string().describe(\"Unique identifier for the collection.\").nullable(),\n name: z.string().describe(\"Name of the collection.\").nullable(),\n created_at: z.string().describe(\"Timestamp when the collection was created, in ISO 8601 format.\").nullable(),\n search_queries: z.number().int().describe(\"Number of search queries performed on this collection.\").nullable(),\n}).passthrough().describe(\"Response schema containing collection details.\");\n\nexport const needleGetCollection = action(\"NEEDLE_GET_COLLECTION\", {\n slug: \"needle-get-collection\",\n name: \"Get Collection\",\n description: \"Tool to retrieve details for a specific collection by its ID. Use when you need to get collection metadata including name, creation date, and search query count.\",\n input: NeedleGetCollectionInput,\n output: NeedleGetCollectionOutput,\n});\n"],"mappings":";;AAcA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdsC,EAAE,OAAO,EAC/C,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,EAC3F,CAAC,CAAC,CAAC,SAAS,oDAYH;CACP,QAZuC,EAAE,OAAO;EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EAC9D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EAC3G,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-collection.mjs","names":[],"sources":["../../src/actions/get-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 NeedleGetCollectionInput = z.object({\n collection_id: z.string().describe(\"The unique identifier of the collection to retrieve.\"),\n}).describe(\"Request parameters for getting collection details.\");\nexport const NeedleGetCollectionOutput = z.object({\n id: z.string().describe(\"Unique identifier for the collection.\").nullable(),\n name: z.string().describe(\"Name of the collection.\").nullable(),\n created_at: z.string().describe(\"Timestamp when the collection was created, in ISO 8601 format.\").nullable(),\n search_queries: z.number().int().describe(\"Number of search queries performed on this collection.\").nullable(),\n}).passthrough().describe(\"Response schema containing collection details.\");\n\nexport const needleGetCollection: AppAction<\n typeof NeedleGetCollectionInput,\n typeof NeedleGetCollectionOutput,\n typeof needle.credential\n> = action(\"NEEDLE_GET_COLLECTION\", {\n slug: \"needle-get-collection\",\n name: \"Get Collection\",\n description: \"Tool to retrieve details for a specific collection by its ID. Use when you need to get collection metadata including name, creation date, and search query count.\",\n input: NeedleGetCollectionInput,\n output: NeedleGetCollectionOutput,\n});\n"],"mappings":";;;AAgBA,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBsC,EAAE,OAAO,EAC/C,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,EAC3F,CAAC,CAAC,CAAC,SAAS,oDAgBH;CACP,QAhBuC,EAAE,OAAO;EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EAC9D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EAC3G,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAWhB;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/get-file-download-url.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-file-download-url.cjs","names":["z","action"],"sources":["../../src/actions/get-file-download-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleGetFileDownloadUrlInput = z.object({\n file_id: z.string().describe(\"The unique identifier of the file to download\"),\n}).describe(\"Request parameters for getting a file download URL.\");\nexport const NeedleGetFileDownloadUrlOutput = z.object({\n expires_at: z.string().describe(\"ISO-8601 timestamp indicating when the download URL expires\").nullable().optional(),\n download_url: z.string().describe(\"Signed private URL for downloading the file. This URL has a limited validity window and should be used promptly.\").nullable(),\n}).passthrough().describe(\"Response schema containing the signed download URL.\");\n\nexport const needleGetFileDownloadUrl = action(\"NEEDLE_GET_FILE_DOWNLOAD_URL\", {\n slug: \"needle-get-file-download-url\",\n name: \"Get File Download URL\",\n description: \"Tool to get a short-lived signed private download URL for a Needle file. Use when you need to retrieve file content but the public storage URL requires authentication. The returned URL should be used immediately as it expires quickly.\",\n input: NeedleGetFileDownloadUrlInput,\n output: NeedleGetFileDownloadUrlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,EAC9E,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;AACjK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAE/E,MAAa,2BAA2BC,eAAAA,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-file-download-url.cjs","names":["z","action"],"sources":["../../src/actions/get-file-download-url.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 NeedleGetFileDownloadUrlInput = z.object({\n file_id: z.string().describe(\"The unique identifier of the file to download\"),\n}).describe(\"Request parameters for getting a file download URL.\");\nexport const NeedleGetFileDownloadUrlOutput = z.object({\n expires_at: z.string().describe(\"ISO-8601 timestamp indicating when the download URL expires\").nullable().optional(),\n download_url: z.string().describe(\"Signed private URL for downloading the file. This URL has a limited validity window and should be used promptly.\").nullable(),\n}).passthrough().describe(\"Response schema containing the signed download URL.\");\n\nexport const needleGetFileDownloadUrl: AppAction<\n typeof NeedleGetFileDownloadUrlInput,\n typeof NeedleGetFileDownloadUrlOutput,\n typeof needle.credential\n> = action(\"NEEDLE_GET_FILE_DOWNLOAD_URL\", {\n slug: \"needle-get-file-download-url\",\n name: \"Get File Download URL\",\n description: \"Tool to get a short-lived signed private download URL for a Needle file. Use when you need to retrieve file content but the public storage URL requires authentication. The returned URL should be used immediately as it expires quickly.\",\n input: NeedleGetFileDownloadUrlInput,\n output: NeedleGetFileDownloadUrlOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,EAC9E,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;AACjK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAE/E,MAAa,2BAITC,eAAAA,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { needle } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-file-download-url.d.ts
@@ -8,21 +10,7 @@ declare const NeedleGetFileDownloadUrlOutput: z.ZodObject<{
8
10
  expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
11
  download_url: z.ZodNullable<z.ZodString>;
10
12
  }, z.core.$loose>;
11
- declare const needleGetFileDownloadUrl: import("@keystrokehq/action").WorkflowActionDefinition<{
12
- file_id: string;
13
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
14
- connectionId: z.ZodString;
15
- entityId: z.ZodString;
16
- instanceId: z.ZodString;
17
- }, z.core.$strip>, z.ZodObject<{
18
- generic_api_key: z.ZodString;
19
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
20
- connectionId: z.ZodString;
21
- entityId: z.ZodString;
22
- instanceId: z.ZodString;
23
- }, z.core.$strip>, z.ZodObject<{
24
- generic_api_key: z.ZodString;
25
- }, z.core.$strip>>]>;
13
+ declare const needleGetFileDownloadUrl: AppAction<typeof NeedleGetFileDownloadUrlInput, typeof NeedleGetFileDownloadUrlOutput, typeof needle.credential>;
26
14
  //#endregion
27
15
  export { needleGetFileDownloadUrl };
28
16
  //# sourceMappingURL=get-file-download-url.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-file-download-url.d.cts","names":[],"sources":["../../src/actions/get-file-download-url.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAG7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;cAK9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"get-file-download-url.d.cts","names":[],"sources":["../../src/actions/get-file-download-url.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAG7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;cAK9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,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/get-file-download-url.d.ts
@@ -8,21 +10,7 @@ declare const NeedleGetFileDownloadUrlOutput: z.ZodObject<{
8
10
  expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
11
  download_url: z.ZodNullable<z.ZodString>;
10
12
  }, z.core.$loose>;
11
- declare const needleGetFileDownloadUrl: import("@keystrokehq/action").WorkflowActionDefinition<{
12
- file_id: string;
13
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
14
- connectionId: z.ZodString;
15
- entityId: z.ZodString;
16
- instanceId: z.ZodString;
17
- }, z.core.$strip>, z.ZodObject<{
18
- generic_api_key: z.ZodString;
19
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
20
- connectionId: z.ZodString;
21
- entityId: z.ZodString;
22
- instanceId: z.ZodString;
23
- }, z.core.$strip>, z.ZodObject<{
24
- generic_api_key: z.ZodString;
25
- }, z.core.$strip>>]>;
13
+ declare const needleGetFileDownloadUrl: AppAction<typeof NeedleGetFileDownloadUrlInput, typeof NeedleGetFileDownloadUrlOutput, typeof needle.credential>;
26
14
  //#endregion
27
15
  export { needleGetFileDownloadUrl };
28
16
  //# sourceMappingURL=get-file-download-url.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-file-download-url.d.mts","names":[],"sources":["../../src/actions/get-file-download-url.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAG7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;cAK9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"get-file-download-url.d.mts","names":[],"sources":["../../src/actions/get-file-download-url.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAG7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;cAK9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,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 needleGetFileDownloadUrl = action("NEEDLE_GET_FILE_DOWNLOAD_URL", {
@@ -1 +1 @@
1
- {"version":3,"file":"get-file-download-url.mjs","names":[],"sources":["../../src/actions/get-file-download-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleGetFileDownloadUrlInput = z.object({\n file_id: z.string().describe(\"The unique identifier of the file to download\"),\n}).describe(\"Request parameters for getting a file download URL.\");\nexport const NeedleGetFileDownloadUrlOutput = z.object({\n expires_at: z.string().describe(\"ISO-8601 timestamp indicating when the download URL expires\").nullable().optional(),\n download_url: z.string().describe(\"Signed private URL for downloading the file. This URL has a limited validity window and should be used promptly.\").nullable(),\n}).passthrough().describe(\"Response schema containing the signed download URL.\");\n\nexport const needleGetFileDownloadUrl = action(\"NEEDLE_GET_FILE_DOWNLOAD_URL\", {\n slug: \"needle-get-file-download-url\",\n name: \"Get File Download URL\",\n description: \"Tool to get a short-lived signed private download URL for a Needle file. Use when you need to retrieve file content but the public storage URL requires authentication. The returned URL should be used immediately as it expires quickly.\",\n input: NeedleGetFileDownloadUrlInput,\n output: NeedleGetFileDownloadUrlOutput,\n});\n"],"mappings":";;AAYA,MAAa,2BAA2B,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ2C,EAAE,OAAO,EACpD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,EAC9E,CAAC,CAAC,CAAC,SAAS,qDAUH;CACP,QAV4C,EAAE,OAAO;EACrD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CACjK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-file-download-url.mjs","names":[],"sources":["../../src/actions/get-file-download-url.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 NeedleGetFileDownloadUrlInput = z.object({\n file_id: z.string().describe(\"The unique identifier of the file to download\"),\n}).describe(\"Request parameters for getting a file download URL.\");\nexport const NeedleGetFileDownloadUrlOutput = z.object({\n expires_at: z.string().describe(\"ISO-8601 timestamp indicating when the download URL expires\").nullable().optional(),\n download_url: z.string().describe(\"Signed private URL for downloading the file. This URL has a limited validity window and should be used promptly.\").nullable(),\n}).passthrough().describe(\"Response schema containing the signed download URL.\");\n\nexport const needleGetFileDownloadUrl: AppAction<\n typeof NeedleGetFileDownloadUrlInput,\n typeof NeedleGetFileDownloadUrlOutput,\n typeof needle.credential\n> = action(\"NEEDLE_GET_FILE_DOWNLOAD_URL\", {\n slug: \"needle-get-file-download-url\",\n name: \"Get File Download URL\",\n description: \"Tool to get a short-lived signed private download URL for a Needle file. Use when you need to retrieve file content but the public storage URL requires authentication. The returned URL should be used immediately as it expires quickly.\",\n input: NeedleGetFileDownloadUrlInput,\n output: NeedleGetFileDownloadUrlOutput,\n});\n"],"mappings":";;;AAcA,MAAa,2BAIT,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB2C,EAAE,OAAO,EACpD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,EAC9E,CAAC,CAAC,CAAC,SAAS,qDAcH;CACP,QAd4C,EAAE,OAAO;EACrD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CACjK,CAAC,CAAC,CAAC,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/get-file-upload-url.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-file-upload-url.cjs","names":["z","action"],"sources":["../../src/actions/get-file-upload-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleGetFileUploadUrlInput = z.object({\n content_type: z.array(z.string()).describe(\"MIME types for files to upload (e.g., application/pdf, text/plain, image/jpeg). Multiple content types can be provided to generate multiple upload URLs at once.\"),\n}).describe(\"Request parameters for getting file upload URLs.\");\nconst NeedleGetFileUploadUrl_UploadUrlItemSchema = z.object({\n url: z.string().describe(\"Reference URL for the uploaded file after upload is complete\").nullable(),\n upload_url: z.string().describe(\"Signed URL for uploading the file. Valid for a short time - upload immediately.\").nullable(),\n}).passthrough().describe(\"A single upload URL entry in the response.\");\nexport const NeedleGetFileUploadUrlOutput = z.object({\n result: z.array(NeedleGetFileUploadUrl_UploadUrlItemSchema).describe(\"List of upload URL entries, one per requested content type\").nullable().optional(),\n}).passthrough().describe(\"Response schema containing signed upload URLs.\");\n\nexport const needleGetFileUploadUrl = action(\"NEEDLE_GET_FILE_UPLOAD_URL\", {\n slug: \"needle-get-file-upload-url\",\n name: \"Get File Upload URL\",\n description: \"Tool to get signed URLs for uploading local files to Needle. Use when you need to upload files to a collection. The upload URLs are valid for a short time, so upload files immediately after receiving the URLs. Multiple content types can be specified to generate multiple upload URLs in a single request.\",\n input: NeedleGetFileUploadUrlInput,\n output: NeedleGetFileUploadUrlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kKAAkK,EAC/M,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAClG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;AAC9H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,QAAQA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,yBAAyBC,eAAAA,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-file-upload-url.cjs","names":["z","action"],"sources":["../../src/actions/get-file-upload-url.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 NeedleGetFileUploadUrlInput = z.object({\n content_type: z.array(z.string()).describe(\"MIME types for files to upload (e.g., application/pdf, text/plain, image/jpeg). Multiple content types can be provided to generate multiple upload URLs at once.\"),\n}).describe(\"Request parameters for getting file upload URLs.\");\nconst NeedleGetFileUploadUrl_UploadUrlItemSchema = z.object({\n url: z.string().describe(\"Reference URL for the uploaded file after upload is complete\").nullable(),\n upload_url: z.string().describe(\"Signed URL for uploading the file. Valid for a short time - upload immediately.\").nullable(),\n}).passthrough().describe(\"A single upload URL entry in the response.\");\nexport const NeedleGetFileUploadUrlOutput = z.object({\n result: z.array(NeedleGetFileUploadUrl_UploadUrlItemSchema).describe(\"List of upload URL entries, one per requested content type\").nullable().optional(),\n}).passthrough().describe(\"Response schema containing signed upload URLs.\");\n\nexport const needleGetFileUploadUrl: AppAction<\n typeof NeedleGetFileUploadUrlInput,\n typeof NeedleGetFileUploadUrlOutput,\n typeof needle.credential\n> = action(\"NEEDLE_GET_FILE_UPLOAD_URL\", {\n slug: \"needle-get-file-upload-url\",\n name: \"Get File Upload URL\",\n description: \"Tool to get signed URLs for uploading local files to Needle. Use when you need to upload files to a collection. The upload URLs are valid for a short time, so upload files immediately after receiving the URLs. Multiple content types can be specified to generate multiple upload URLs in a single request.\",\n input: NeedleGetFileUploadUrlInput,\n output: NeedleGetFileUploadUrlOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kKAAkK,EAC/M,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAClG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;AAC9H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,QAAQA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,yBAITC,eAAAA,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}