@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,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-upload-url.d.ts
@@ -10,21 +12,7 @@ declare const NeedleGetFileUploadUrlOutput: z.ZodObject<{
10
12
  upload_url: z.ZodNullable<z.ZodString>;
11
13
  }, z.core.$loose>>>>;
12
14
  }, z.core.$loose>;
13
- declare const needleGetFileUploadUrl: import("@keystrokehq/action").WorkflowActionDefinition<{
14
- content_type: 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 needleGetFileUploadUrl: AppAction<typeof NeedleGetFileUploadUrlInput, typeof NeedleGetFileUploadUrlOutput, typeof needle.credential>;
28
16
  //#endregion
29
17
  export { needleGetFileUploadUrl };
30
18
  //# sourceMappingURL=get-file-upload-url.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-file-upload-url.d.cts","names":[],"sources":["../../src/actions/get-file-upload-url.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAO3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"get-file-upload-url.d.cts","names":[],"sources":["../../src/actions/get-file-upload-url.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAO3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;cAI5B,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/get-file-upload-url.d.ts
@@ -10,21 +12,7 @@ declare const NeedleGetFileUploadUrlOutput: z.ZodObject<{
10
12
  upload_url: z.ZodNullable<z.ZodString>;
11
13
  }, z.core.$loose>>>>;
12
14
  }, z.core.$loose>;
13
- declare const needleGetFileUploadUrl: import("@keystrokehq/action").WorkflowActionDefinition<{
14
- content_type: 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 needleGetFileUploadUrl: AppAction<typeof NeedleGetFileUploadUrlInput, typeof NeedleGetFileUploadUrlOutput, typeof needle.credential>;
28
16
  //#endregion
29
17
  export { needleGetFileUploadUrl };
30
18
  //# sourceMappingURL=get-file-upload-url.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-file-upload-url.d.mts","names":[],"sources":["../../src/actions/get-file-upload-url.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAO3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"get-file-upload-url.d.mts","names":[],"sources":["../../src/actions/get-file-upload-url.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAO3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;cAI5B,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
  //#region src/actions/get-file-upload-url.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-file-upload-url.mjs","names":[],"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,8BAA8B,EAAE,OAAO,EAClD,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kKAAkK,EAC/M,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,6CAA6C,EAAE,OAAO;CAC1D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAClG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;AAC9H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAKtE,MAAa,yBAAyB,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT0C,EAAE,OAAO,EACnD,QAAQ,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-file-upload-url.mjs","names":[],"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,8BAA8B,EAAE,OAAO,EAClD,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kKAAkK,EAC/M,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,6CAA6C,EAAE,OAAO;CAC1D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAClG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;AAC9H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAKtE,MAAa,yBAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb0C,EAAE,OAAO,EACnD,QAAQ,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzJ,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-local-connector.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-local-connector.cjs","names":["z","action"],"sources":["../../src/actions/get-local-connector.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleGetLocalConnectorInput = z.object({\n connector_id: z.string().describe(\"The unique identifier of the local connector.\"),\n}).describe(\"Request parameters for getting a local connector.\");\nconst NeedleGetLocalConnector_FolderSchema = z.object({\n name: z.string().describe(\"Name of the folder\").nullable().optional(),\n path: z.string().describe(\"File system path of the folder\").nullable().optional(),\n}).passthrough().describe(\"A folder associated with the local connector.\");\nconst NeedleGetLocalConnector_LocalConnectorSchema = z.object({\n id: z.string().describe(\"Unique identifier of the connector\").nullable(),\n os: z.string().describe(\"Operating system of the device\").nullable().optional(),\n cpu: z.string().describe(\"CPU information of the device\").nullable().optional(),\n name: z.string().describe(\"Name of the connector\").nullable(),\n type: z.string().describe(\"Type of connector (always 'local' for local connectors)\").nullable(),\n folders: z.array(NeedleGetLocalConnector_FolderSchema).describe(\"List of folders being monitored by the connector\").nullable().optional(),\n synced_at: z.string().describe(\"Timestamp when the connector last synced (ISO 8601 format, may be null)\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the connector was created (ISO 8601 format)\").nullable().optional(),\n device_name: z.string().describe(\"Name of the device running the connector\").nullable().optional(),\n device_model: z.string().describe(\"Model of the device\").nullable().optional(),\n serial_number: z.string().describe(\"Serial number of the device\").nullable().optional(),\n collection_ids: z.array(z.string()).describe(\"List of collection IDs associated with this connector\").nullable().optional(),\n}).passthrough().describe(\"Local connector details.\");\nexport const NeedleGetLocalConnectorOutput = z.object({\n result: NeedleGetLocalConnector_LocalConnectorSchema.nullable(),\n}).passthrough().describe(\"Response schema for getting a local connector.\");\n\nexport const needleGetLocalConnector = action(\"NEEDLE_GET_LOCAL_CONNECTOR\", {\n slug: \"needle-get-local-connector\",\n name: \"Get local connector\",\n description: \"Tool to retrieve details of a local connector by its ID. Use when you need information about a specific local connector's configuration, device details, and associated folders.\",\n input: NeedleGetLocalConnectorInput,\n output: NeedleGetLocalConnectorOutput,\n});\n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,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0BAA0B;AACpD,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,QAAQ,6CAA6C,SAAS,EAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-local-connector.cjs","names":["z","action"],"sources":["../../src/actions/get-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 NeedleGetLocalConnectorInput = z.object({\n connector_id: z.string().describe(\"The unique identifier of the local connector.\"),\n}).describe(\"Request parameters for getting a local connector.\");\nconst NeedleGetLocalConnector_FolderSchema = z.object({\n name: z.string().describe(\"Name of the folder\").nullable().optional(),\n path: z.string().describe(\"File system path of the folder\").nullable().optional(),\n}).passthrough().describe(\"A folder associated with the local connector.\");\nconst NeedleGetLocalConnector_LocalConnectorSchema = z.object({\n id: z.string().describe(\"Unique identifier of the connector\").nullable(),\n os: z.string().describe(\"Operating system of the device\").nullable().optional(),\n cpu: z.string().describe(\"CPU information of the device\").nullable().optional(),\n name: z.string().describe(\"Name of the connector\").nullable(),\n type: z.string().describe(\"Type of connector (always 'local' for local connectors)\").nullable(),\n folders: z.array(NeedleGetLocalConnector_FolderSchema).describe(\"List of folders being monitored by the connector\").nullable().optional(),\n synced_at: z.string().describe(\"Timestamp when the connector last synced (ISO 8601 format, may be null)\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the connector was created (ISO 8601 format)\").nullable().optional(),\n device_name: z.string().describe(\"Name of the device running the connector\").nullable().optional(),\n device_model: z.string().describe(\"Model of the device\").nullable().optional(),\n serial_number: z.string().describe(\"Serial number of the device\").nullable().optional(),\n collection_ids: z.array(z.string()).describe(\"List of collection IDs associated with this connector\").nullable().optional(),\n}).passthrough().describe(\"Local connector details.\");\nexport const NeedleGetLocalConnectorOutput = z.object({\n result: NeedleGetLocalConnector_LocalConnectorSchema.nullable(),\n}).passthrough().describe(\"Response schema for getting a local connector.\");\n\nexport const needleGetLocalConnector: AppAction<\n typeof NeedleGetLocalConnectorInput,\n typeof NeedleGetLocalConnectorOutput,\n typeof needle.credential\n> = action(\"NEEDLE_GET_LOCAL_CONNECTOR\", {\n slug: \"needle-get-local-connector\",\n name: \"Get local connector\",\n description: \"Tool to retrieve details of a local connector by its ID. Use when you need information about a specific local connector's configuration, device details, and associated folders.\",\n input: NeedleGetLocalConnectorInput,\n output: NeedleGetLocalConnectorOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,EACnF,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;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5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0BAA0B;AACpD,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,QAAQ,6CAA6C,SAAS,EAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,0BAITC,eAAAA,OAAO,8BAA8B;CACvC,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-local-connector.d.ts
@@ -23,21 +25,7 @@ declare const NeedleGetLocalConnectorOutput: z.ZodObject<{
23
25
  collection_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
24
26
  }, z.core.$loose>>;
25
27
  }, z.core.$loose>;
26
- declare const needleGetLocalConnector: import("@keystrokehq/action").WorkflowActionDefinition<{
27
- connector_id: string;
28
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
29
- connectionId: z.ZodString;
30
- entityId: z.ZodString;
31
- instanceId: z.ZodString;
32
- }, z.core.$strip>, z.ZodObject<{
33
- generic_api_key: z.ZodString;
34
- }, z.core.$strip>>]>, 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>>]>;
28
+ declare const needleGetLocalConnector: AppAction<typeof NeedleGetLocalConnectorInput, typeof NeedleGetLocalConnectorOutput, typeof needle.credential>;
41
29
  //#endregion
42
30
  export { needleGetLocalConnector };
43
31
  //# sourceMappingURL=get-local-connector.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-local-connector.d.cts","names":[],"sources":["../../src/actions/get-local-connector.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAqB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"get-local-connector.d.cts","names":[],"sources":["../../src/actions/get-local-connector.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAqB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAI7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,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-local-connector.d.ts
@@ -23,21 +25,7 @@ declare const NeedleGetLocalConnectorOutput: z.ZodObject<{
23
25
  collection_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
24
26
  }, z.core.$loose>>;
25
27
  }, z.core.$loose>;
26
- declare const needleGetLocalConnector: import("@keystrokehq/action").WorkflowActionDefinition<{
27
- connector_id: string;
28
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
29
- connectionId: z.ZodString;
30
- entityId: z.ZodString;
31
- instanceId: z.ZodString;
32
- }, z.core.$strip>, z.ZodObject<{
33
- generic_api_key: z.ZodString;
34
- }, z.core.$strip>>]>, 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>>]>;
28
+ declare const needleGetLocalConnector: AppAction<typeof NeedleGetLocalConnectorInput, typeof NeedleGetLocalConnectorOutput, typeof needle.credential>;
41
29
  //#endregion
42
30
  export { needleGetLocalConnector };
43
31
  //# sourceMappingURL=get-local-connector.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-local-connector.d.mts","names":[],"sources":["../../src/actions/get-local-connector.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAqB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"get-local-connector.d.mts","names":[],"sources":["../../src/actions/get-local-connector.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAqB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAI7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,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-local-connector.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-local-connector.mjs","names":[],"sources":["../../src/actions/get-local-connector.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleGetLocalConnectorInput = z.object({\n connector_id: z.string().describe(\"The unique identifier of the local connector.\"),\n}).describe(\"Request parameters for getting a local connector.\");\nconst NeedleGetLocalConnector_FolderSchema = z.object({\n name: z.string().describe(\"Name of the folder\").nullable().optional(),\n path: z.string().describe(\"File system path of the folder\").nullable().optional(),\n}).passthrough().describe(\"A folder associated with the local connector.\");\nconst NeedleGetLocalConnector_LocalConnectorSchema = z.object({\n id: z.string().describe(\"Unique identifier of the connector\").nullable(),\n os: z.string().describe(\"Operating system of the device\").nullable().optional(),\n cpu: z.string().describe(\"CPU information of the device\").nullable().optional(),\n name: z.string().describe(\"Name of the connector\").nullable(),\n type: z.string().describe(\"Type of connector (always 'local' for local connectors)\").nullable(),\n folders: z.array(NeedleGetLocalConnector_FolderSchema).describe(\"List of folders being monitored by the connector\").nullable().optional(),\n synced_at: z.string().describe(\"Timestamp when the connector last synced (ISO 8601 format, may be null)\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the connector was created (ISO 8601 format)\").nullable().optional(),\n device_name: z.string().describe(\"Name of the device running the connector\").nullable().optional(),\n device_model: z.string().describe(\"Model of the device\").nullable().optional(),\n serial_number: z.string().describe(\"Serial number of the device\").nullable().optional(),\n collection_ids: z.array(z.string()).describe(\"List of collection IDs associated with this connector\").nullable().optional(),\n}).passthrough().describe(\"Local connector details.\");\nexport const NeedleGetLocalConnectorOutput = z.object({\n result: NeedleGetLocalConnector_LocalConnectorSchema.nullable(),\n}).passthrough().describe(\"Response schema for getting a local connector.\");\n\nexport const needleGetLocalConnector = action(\"NEEDLE_GET_LOCAL_CONNECTOR\", {\n slug: \"needle-get-local-connector\",\n name: \"Get local connector\",\n description: \"Tool to retrieve details of a local connector by its ID. Use when you need information about a specific local connector's configuration, device details, and associated folders.\",\n input: NeedleGetLocalConnectorInput,\n output: NeedleGetLocalConnectorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO,EACnD,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,EACnF,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,uCAAuC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AACzE,MAAM,+CAA+C,EAAE,OAAO;CAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvE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ector.mjs","names":[],"sources":["../../src/actions/get-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 NeedleGetLocalConnectorInput = z.object({\n connector_id: z.string().describe(\"The unique identifier of the local connector.\"),\n}).describe(\"Request parameters for getting a local connector.\");\nconst NeedleGetLocalConnector_FolderSchema = z.object({\n name: z.string().describe(\"Name of the folder\").nullable().optional(),\n path: z.string().describe(\"File system path of the folder\").nullable().optional(),\n}).passthrough().describe(\"A folder associated with the local connector.\");\nconst NeedleGetLocalConnector_LocalConnectorSchema = z.object({\n id: z.string().describe(\"Unique identifier of the connector\").nullable(),\n os: z.string().describe(\"Operating system of the device\").nullable().optional(),\n cpu: z.string().describe(\"CPU information of the device\").nullable().optional(),\n name: z.string().describe(\"Name of the connector\").nullable(),\n type: z.string().describe(\"Type of connector (always 'local' for local connectors)\").nullable(),\n folders: z.array(NeedleGetLocalConnector_FolderSchema).describe(\"List of folders being monitored by the connector\").nullable().optional(),\n synced_at: z.string().describe(\"Timestamp when the connector last synced (ISO 8601 format, may be null)\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the connector was created (ISO 8601 format)\").nullable().optional(),\n device_name: z.string().describe(\"Name of the device running the connector\").nullable().optional(),\n device_model: z.string().describe(\"Model of the device\").nullable().optional(),\n serial_number: z.string().describe(\"Serial number of the device\").nullable().optional(),\n collection_ids: z.array(z.string()).describe(\"List of collection IDs associated with this connector\").nullable().optional(),\n}).passthrough().describe(\"Local connector details.\");\nexport const NeedleGetLocalConnectorOutput = z.object({\n result: NeedleGetLocalConnector_LocalConnectorSchema.nullable(),\n}).passthrough().describe(\"Response schema for getting a local connector.\");\n\nexport const needleGetLocalConnector: AppAction<\n typeof NeedleGetLocalConnectorInput,\n typeof NeedleGetLocalConnectorOutput,\n typeof needle.credential\n> = action(\"NEEDLE_GET_LOCAL_CONNECTOR\", {\n slug: \"needle-get-local-connector\",\n name: \"Get local connector\",\n description: \"Tool to retrieve details of a local connector by its ID. Use when you need information about a specific local connector's configuration, device details, and associated folders.\",\n input: NeedleGetLocalConnectorInput,\n output: NeedleGetLocalConnectorOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+B,EAAE,OAAO,EACnD,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,EACnF,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,uCAAuC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AACzE,MAAM,+CAA+C,EAAE,OAAO;CAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9F,SAAS,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0BAA0B;AAKpD,MAAa,0BAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb2C,EAAE,OAAO,EACpD,QAAQ,6CAA6C,SAAS,EAChE,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/list-collection-files.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-collection-files.cjs","names":["z","action"],"sources":["../../src/actions/list-collection-files.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleListCollectionFilesInput = z.object({\n limit: z.number().int().describe(\"Number of files to return per page, must be >=1\").optional(),\n offset: z.number().int().describe(\"Number of items to skip for pagination, must be >=0\").optional(),\n collection_id: z.string().describe(\"Unique identifier of the collection Multiple collections can share similar names; verify the correct collection_id before operating on returned files.\"),\n}).describe(\"Request model for listing files in a specific collection.\");\nconst NeedleListCollectionFiles_FileModelSchema = z.object({\n id: z.string().describe(\"Unique file identifier\").nullable(),\n url: z.string().describe(\"URL of the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable(),\n size: z.number().int().describe(\"Size of the file in bytes\").nullable().optional(),\n type: z.string().describe(\"MIME type of the file\").nullable().optional(),\n error: z.string().describe(\"Error message if file processing failed\").nullable().optional(),\n labels: z.array(z.string()).describe(\"Labels associated with the file\").nullable().optional(),\n status: z.string().describe(\"Current status of the file\").nullable(),\n user_id: z.string().describe(\"ID of the user who uploaded the file\").nullable().optional(),\n md5_hash: z.string().describe(\"MD5 hash of the file\").nullable().optional(),\n connector: z.unknown().describe(\"Connector details\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable(),\n connector_id: z.string().describe(\"ID of the connector used to upload the file\").nullable().optional(),\n}).passthrough().describe(\"Schema for a single file object returned by the API.\");\nexport const NeedleListCollectionFilesOutput = z.object({\n files: z.array(NeedleListCollectionFiles_FileModelSchema).describe(\"List of file objects\"),\n limit: z.number().int().describe(\"Page limit used (may not be returned by API)\").nullable().optional(),\n total: z.number().int().describe(\"Total count of files in the collection\").nullable(),\n offset: z.number().int().describe(\"Offset used (may not be returned by API)\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing files in a collection.\");\n\nexport const needleListCollectionFiles = action(\"NEEDLE_LIST_COLLECTION_FILES\", {\n slug: \"needle-list-collection-files\",\n name: \"List Collection Files\",\n description: \"Tool to list all files within a specific collection by its ID. Returns file metadata (including file URLs) only — not document text content; fetch file URLs separately to access content. Use when you have a collection ID and need to retrieve its files. Supports pagination.\",\n input: NeedleListCollectionFilesInput,\n output: NeedleListCollectionFilesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC7F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAClG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ;AAC7L,CAAC,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AS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAChF,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,sBAAsB;CACzF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACpF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-collection-files.cjs","names":["z","action"],"sources":["../../src/actions/list-collection-files.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { needle } from \"../app\";\n\nexport const NeedleListCollectionFilesInput = z.object({\n limit: z.number().int().describe(\"Number of files to return per page, must be >=1\").optional(),\n offset: z.number().int().describe(\"Number of items to skip for pagination, must be >=0\").optional(),\n collection_id: z.string().describe(\"Unique identifier of the collection Multiple collections can share similar names; verify the correct collection_id before operating on returned files.\"),\n}).describe(\"Request model for listing files in a specific collection.\");\nconst NeedleListCollectionFiles_FileModelSchema = z.object({\n id: z.string().describe(\"Unique file identifier\").nullable(),\n url: z.string().describe(\"URL of the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable(),\n size: z.number().int().describe(\"Size of the file in bytes\").nullable().optional(),\n type: z.string().describe(\"MIME type of the file\").nullable().optional(),\n error: z.string().describe(\"Error message if file processing failed\").nullable().optional(),\n labels: z.array(z.string()).describe(\"Labels associated with the file\").nullable().optional(),\n status: z.string().describe(\"Current status of the file\").nullable(),\n user_id: z.string().describe(\"ID of the user who uploaded the file\").nullable().optional(),\n md5_hash: z.string().describe(\"MD5 hash of the file\").nullable().optional(),\n connector: z.unknown().describe(\"Connector details\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable(),\n connector_id: z.string().describe(\"ID of the connector used to upload the file\").nullable().optional(),\n}).passthrough().describe(\"Schema for a single file object returned by the API.\");\nexport const NeedleListCollectionFilesOutput = z.object({\n files: z.array(NeedleListCollectionFiles_FileModelSchema).describe(\"List of file objects\"),\n limit: z.number().int().describe(\"Page limit used (may not be returned by API)\").nullable().optional(),\n total: z.number().int().describe(\"Total count of files in the collection\").nullable(),\n offset: z.number().int().describe(\"Offset used (may not be returned by API)\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing files in a collection.\");\n\nexport const needleListCollectionFiles: AppAction<\n typeof NeedleListCollectionFilesInput,\n typeof NeedleListCollectionFilesOutput,\n typeof needle.credential\n> = action(\"NEEDLE_LIST_COLLECTION_FILES\", {\n slug: \"needle-list-collection-files\",\n name: \"List Collection Files\",\n description: \"Tool to list all files within a specific collection by its ID. Returns file metadata (including file URLs) only — not document text content; fetch file URLs separately to access content. Use when you have a collection ID and need to retrieve its files. Supports pagination.\",\n input: NeedleListCollectionFilesInput,\n output: NeedleListCollectionFilesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC7F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,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CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAClF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAChF,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,sBAAsB;CACzF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACpF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,4BAITC,eAAAA,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { needle } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-collection-files.d.ts
@@ -26,23 +28,7 @@ declare const NeedleListCollectionFilesOutput: z.ZodObject<{
26
28
  total: z.ZodNullable<z.ZodNumber>;
27
29
  offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
30
  }, z.core.$loose>;
29
- declare const needleListCollectionFiles: import("@keystrokehq/action").WorkflowActionDefinition<{
30
- collection_id: string;
31
- limit?: number | undefined;
32
- offset?: number | undefined;
33
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
34
- connectionId: z.ZodString;
35
- entityId: z.ZodString;
36
- instanceId: z.ZodString;
37
- }, z.core.$strip>, z.ZodObject<{
38
- generic_api_key: z.ZodString;
39
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
40
- connectionId: z.ZodString;
41
- entityId: z.ZodString;
42
- instanceId: z.ZodString;
43
- }, z.core.$strip>, z.ZodObject<{
44
- generic_api_key: z.ZodString;
45
- }, z.core.$strip>>]>;
31
+ declare const needleListCollectionFiles: AppAction<typeof NeedleListCollectionFilesInput, typeof NeedleListCollectionFilesOutput, typeof needle.credential>;
46
32
  //#endregion
47
33
  export { needleListCollectionFiles };
48
34
  //# sourceMappingURL=list-collection-files.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-collection-files.d.cts","names":[],"sources":["../../src/actions/list-collection-files.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAoB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAO/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"list-collection-files.d.cts","names":[],"sources":["../../src/actions/list-collection-files.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAoB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAO/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { needle } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-collection-files.d.ts
@@ -26,23 +28,7 @@ declare const NeedleListCollectionFilesOutput: z.ZodObject<{
26
28
  total: z.ZodNullable<z.ZodNumber>;
27
29
  offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
30
  }, z.core.$loose>;
29
- declare const needleListCollectionFiles: import("@keystrokehq/action").WorkflowActionDefinition<{
30
- collection_id: string;
31
- limit?: number | undefined;
32
- offset?: number | undefined;
33
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
34
- connectionId: z.ZodString;
35
- entityId: z.ZodString;
36
- instanceId: z.ZodString;
37
- }, z.core.$strip>, z.ZodObject<{
38
- generic_api_key: z.ZodString;
39
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
40
- connectionId: z.ZodString;
41
- entityId: z.ZodString;
42
- instanceId: z.ZodString;
43
- }, z.core.$strip>, z.ZodObject<{
44
- generic_api_key: z.ZodString;
45
- }, z.core.$strip>>]>;
31
+ declare const needleListCollectionFiles: AppAction<typeof NeedleListCollectionFilesInput, typeof NeedleListCollectionFilesOutput, typeof needle.credential>;
46
32
  //#endregion
47
33
  export { needleListCollectionFiles };
48
34
  //# sourceMappingURL=list-collection-files.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-collection-files.d.mts","names":[],"sources":["../../src/actions/list-collection-files.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAoB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAO/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"list-collection-files.d.mts","names":[],"sources":["../../src/actions/list-collection-files.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAoB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAO/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,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/list-collection-files.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-collection-files.mjs","names":[],"sources":["../../src/actions/list-collection-files.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleListCollectionFilesInput = z.object({\n limit: z.number().int().describe(\"Number of files to return per page, must be >=1\").optional(),\n offset: z.number().int().describe(\"Number of items to skip for pagination, must be >=0\").optional(),\n collection_id: z.string().describe(\"Unique identifier of the collection Multiple collections can share similar names; verify the correct collection_id before operating on returned files.\"),\n}).describe(\"Request model for listing files in a specific collection.\");\nconst NeedleListCollectionFiles_FileModelSchema = z.object({\n id: z.string().describe(\"Unique file identifier\").nullable(),\n url: z.string().describe(\"URL of the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable(),\n size: z.number().int().describe(\"Size of the file in bytes\").nullable().optional(),\n type: z.string().describe(\"MIME type of the file\").nullable().optional(),\n error: z.string().describe(\"Error message if file processing failed\").nullable().optional(),\n labels: z.array(z.string()).describe(\"Labels associated with the file\").nullable().optional(),\n status: z.string().describe(\"Current status of the file\").nullable(),\n user_id: z.string().describe(\"ID of the user who uploaded the file\").nullable().optional(),\n md5_hash: z.string().describe(\"MD5 hash of the file\").nullable().optional(),\n connector: z.unknown().describe(\"Connector details\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable(),\n connector_id: z.string().describe(\"ID of the connector used to upload the file\").nullable().optional(),\n}).passthrough().describe(\"Schema for a single file object returned by the API.\");\nexport const NeedleListCollectionFilesOutput = z.object({\n files: z.array(NeedleListCollectionFiles_FileModelSchema).describe(\"List of file objects\"),\n limit: z.number().int().describe(\"Page limit used (may not be returned by API)\").nullable().optional(),\n total: z.number().int().describe(\"Total count of files in the collection\").nullable(),\n offset: z.number().int().describe(\"Offset used (may not be returned by API)\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing files in a collection.\");\n\nexport const needleListCollectionFiles = action(\"NEEDLE_LIST_COLLECTION_FILES\", {\n slug: \"needle-list-collection-files\",\n name: \"List Collection Files\",\n description: \"Tool to list all files within a specific collection by its ID. Returns file metadata (including file URLs) only — not document text content; fetch file URLs separately to access content. Use when you have a collection ID and need to retrieve its files. Supports pagination.\",\n input: NeedleListCollectionFilesInput,\n output: NeedleListCollectionFilesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO;CACrD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC7F,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAClG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ;AAC7L,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,4CAA4C,EAAE,OAAO;CACzD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC3D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACnE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAClF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAQhF,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ6C,EAAE,OAAO;EACtD,OAAO,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,sBAAsB;EACzF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACpF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"list-collection-files.mjs","names":[],"sources":["../../src/actions/list-collection-files.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { needle } from \"../app\";\n\nexport const NeedleListCollectionFilesInput = z.object({\n limit: z.number().int().describe(\"Number of files to return per page, must be >=1\").optional(),\n offset: z.number().int().describe(\"Number of items to skip for pagination, must be >=0\").optional(),\n collection_id: z.string().describe(\"Unique identifier of the collection Multiple collections can share similar names; verify the correct collection_id before operating on returned files.\"),\n}).describe(\"Request model for listing files in a specific collection.\");\nconst NeedleListCollectionFiles_FileModelSchema = z.object({\n id: z.string().describe(\"Unique file identifier\").nullable(),\n url: z.string().describe(\"URL of the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable(),\n size: z.number().int().describe(\"Size of the file in bytes\").nullable().optional(),\n type: z.string().describe(\"MIME type of the file\").nullable().optional(),\n error: z.string().describe(\"Error message if file processing failed\").nullable().optional(),\n labels: z.array(z.string()).describe(\"Labels associated with the file\").nullable().optional(),\n status: z.string().describe(\"Current status of the file\").nullable(),\n user_id: z.string().describe(\"ID of the user who uploaded the file\").nullable().optional(),\n md5_hash: z.string().describe(\"MD5 hash of the file\").nullable().optional(),\n connector: z.unknown().describe(\"Connector details\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable(),\n connector_id: z.string().describe(\"ID of the connector used to upload the file\").nullable().optional(),\n}).passthrough().describe(\"Schema for a single file object returned by the API.\");\nexport const NeedleListCollectionFilesOutput = z.object({\n files: z.array(NeedleListCollectionFiles_FileModelSchema).describe(\"List of file objects\"),\n limit: z.number().int().describe(\"Page limit used (may not be returned by API)\").nullable().optional(),\n total: z.number().int().describe(\"Total count of files in the collection\").nullable(),\n offset: z.number().int().describe(\"Offset used (may not be returned by API)\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing files in a collection.\");\n\nexport const needleListCollectionFiles: AppAction<\n typeof NeedleListCollectionFilesInput,\n typeof NeedleListCollectionFilesOutput,\n typeof needle.credential\n> = action(\"NEEDLE_LIST_COLLECTION_FILES\", {\n slug: \"needle-list-collection-files\",\n name: \"List Collection Files\",\n description: \"Tool to list all files within a specific collection by its ID. Returns file metadata (including file URLs) only — not document text content; fetch file URLs separately to access content. Use when you have a collection ID and need to retrieve its files.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CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAClF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAQhF,MAAa,4BAIT,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhB6C,EAAE,OAAO;EACtD,OAAO,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,sBAAsB;EACzF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACpF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAWhB;AACV,CAAC"}
@@ -1,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/list-collections.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-collections.cjs","names":["z","action"],"sources":["../../src/actions/list-collections.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleListCollectionsInput = z.object({\n limit: z.number().int().describe(\"Maximum number of collections to return (if supported by API)\").optional(),\n offset: z.number().int().describe(\"Number of collections to skip before collecting results (if supported by API)\").optional(),\n}).describe(\"Parameters for listing collections. Supports pagination if available.\");\nconst NeedleListCollections_CollectionSchema = z.object({\n id: z.string().describe(\"Collection unique identifier\").nullable(),\n name: z.string().describe(\"Collection name\").nullable(),\n created_at: z.string().describe(\"Collection creation timestamp in ISO 8601 format (may be absent)\").nullable().optional(),\n updated_at: z.string().describe(\"Collection last update timestamp in ISO 8601 format (may be absent)\").nullable().optional(),\n description: z.string().describe(\"Collection description (may be absent)\").nullable().optional(),\n}).passthrough().describe(\"A collection resource.\");\nconst NeedleListCollections_APIErrorSchema = z.object({\n code: z.string().describe(\"Error code returned by the API\").nullable(),\n message: z.string().describe(\"Error message returned by the API\").nullable(),\n}).passthrough().describe(\"Error details when an API call fails.\");\nconst NeedleListCollections_PaginationSchema = z.object({\n limit: z.number().int().describe(\"Number of items returned per page\").nullable().optional(),\n total: z.number().int().describe(\"Total number of items available\").nullable().optional(),\n offset: z.number().int().describe(\"Number of items skipped before this page\").nullable().optional(),\n}).passthrough().describe(\"Pagination details for a list response.\");\nexport const NeedleListCollectionsOutput = z.object({\n data: z.array(NeedleListCollections_CollectionSchema).describe(\"List of collections returned by the API\").nullable().optional(),\n error: NeedleListCollections_APIErrorSchema.nullable().optional(),\n pagination: NeedleListCollections_PaginationSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for listing collections.\");\n\nexport const needleListCollections = action(\"NEEDLE_LIST_COLLECTIONS\", {\n slug: \"needle-list-collections\",\n name: \"List Collections\",\n description: \"Tool to list collections. Use after authenticating with your API key to page through collections. Similar collection names can exist; always verify the correct `collection_id` from results before performing subsequent operations.\",\n input: NeedleListCollectionsInput,\n output: NeedleListCollectionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+EAA+E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pG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AACnE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,OAAO,qCAAqC,SAAS,CAAC,CAAC,SAAS;CAChE,YAAY,uCAAuC,SAAS,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAEpE,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-collections.cjs","names":["z","action"],"sources":["../../src/actions/list-collections.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { needle } from \"../app\";\n\nexport const NeedleListCollectionsInput = z.object({\n limit: z.number().int().describe(\"Maximum number of collections to return (if supported by API)\").optional(),\n offset: z.number().int().describe(\"Number of collections to skip before collecting results (if supported by API)\").optional(),\n}).describe(\"Parameters for listing collections. Supports pagination if available.\");\nconst NeedleListCollections_CollectionSchema = z.object({\n id: z.string().describe(\"Collection unique identifier\").nullable(),\n name: z.string().describe(\"Collection name\").nullable(),\n created_at: z.string().describe(\"Collection creation timestamp in ISO 8601 format (may be absent)\").nullable().optional(),\n updated_at: z.string().describe(\"Collection last update timestamp in ISO 8601 format (may be absent)\").nullable().optional(),\n description: z.string().describe(\"Collection description (may be absent)\").nullable().optional(),\n}).passthrough().describe(\"A collection resource.\");\nconst NeedleListCollections_APIErrorSchema = z.object({\n code: z.string().describe(\"Error code returned by the API\").nullable(),\n message: z.string().describe(\"Error message returned by the API\").nullable(),\n}).passthrough().describe(\"Error details when an API call fails.\");\nconst NeedleListCollections_PaginationSchema = z.object({\n limit: z.number().int().describe(\"Number of items returned per page\").nullable().optional(),\n total: z.number().int().describe(\"Total number of items available\").nullable().optional(),\n offset: z.number().int().describe(\"Number of items skipped before this page\").nullable().optional(),\n}).passthrough().describe(\"Pagination details for a list response.\");\nexport const NeedleListCollectionsOutput = z.object({\n data: z.array(NeedleListCollections_CollectionSchema).describe(\"List of collections returned by the API\").nullable().optional(),\n error: NeedleListCollections_APIErrorSchema.nullable().optional(),\n pagination: NeedleListCollections_PaginationSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for listing collections.\");\n\nexport const needleListCollections: AppAction<\n typeof NeedleListCollectionsInput,\n typeof NeedleListCollectionsOutput,\n typeof needle.credential\n> = action(\"NEEDLE_LIST_COLLECTIONS\", {\n slug: \"needle-list-collections\",\n name: \"List Collections\",\n description: \"Tool to list collections. Use after authenticating with your API key to page through collections. Similar collection names can exist; always verify the correct `collection_id` from results before performing subsequent operations.\",\n input: NeedleListCollectionsInput,\n output: NeedleListCollectionsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;AAC9H,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACtD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SA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AM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { needle } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-collections.d.ts
@@ -23,22 +25,7 @@ declare const NeedleListCollectionsOutput: z.ZodObject<{
23
25
  offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
24
26
  }, z.core.$loose>>>;
25
27
  }, z.core.$loose>;
26
- declare const needleListCollections: import("@keystrokehq/action").WorkflowActionDefinition<{
27
- limit?: number | undefined;
28
- offset?: number | undefined;
29
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
30
- connectionId: z.ZodString;
31
- entityId: z.ZodString;
32
- instanceId: z.ZodString;
33
- }, z.core.$strip>, z.ZodObject<{
34
- generic_api_key: z.ZodString;
35
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
36
- connectionId: z.ZodString;
37
- entityId: z.ZodString;
38
- instanceId: z.ZodString;
39
- }, z.core.$strip>, z.ZodObject<{
40
- generic_api_key: z.ZodString;
41
- }, z.core.$strip>>]>;
28
+ declare const needleListCollections: AppAction<typeof NeedleListCollectionsInput, typeof NeedleListCollectionsOutput, typeof needle.credential>;
42
29
  //#endregion
43
30
  export { needleListCollections };
44
31
  //# sourceMappingURL=list-collections.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-collections.d.cts","names":[],"sources":["../../src/actions/list-collections.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAoB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAM3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"list-collections.d.cts","names":[],"sources":["../../src/actions/list-collections.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAoB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAM3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { needle } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-collections.d.ts
@@ -23,22 +25,7 @@ declare const NeedleListCollectionsOutput: z.ZodObject<{
23
25
  offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
24
26
  }, z.core.$loose>>>;
25
27
  }, z.core.$loose>;
26
- declare const needleListCollections: import("@keystrokehq/action").WorkflowActionDefinition<{
27
- limit?: number | undefined;
28
- offset?: number | undefined;
29
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
30
- connectionId: z.ZodString;
31
- entityId: z.ZodString;
32
- instanceId: z.ZodString;
33
- }, z.core.$strip>, z.ZodObject<{
34
- generic_api_key: z.ZodString;
35
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
36
- connectionId: z.ZodString;
37
- entityId: z.ZodString;
38
- instanceId: z.ZodString;
39
- }, z.core.$strip>, z.ZodObject<{
40
- generic_api_key: z.ZodString;
41
- }, z.core.$strip>>]>;
28
+ declare const needleListCollections: AppAction<typeof NeedleListCollectionsInput, typeof NeedleListCollectionsOutput, typeof needle.credential>;
42
29
  //#endregion
43
30
  export { needleListCollections };
44
31
  //# sourceMappingURL=list-collections.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-collections.d.mts","names":[],"sources":["../../src/actions/list-collections.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAoB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAM3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"list-collections.d.mts","names":[],"sources":["../../src/actions/list-collections.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAoB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAM3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,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/list-collections.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-collections.mjs","names":[],"sources":["../../src/actions/list-collections.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleListCollectionsInput = z.object({\n limit: z.number().int().describe(\"Maximum number of collections to return (if supported by API)\").optional(),\n offset: z.number().int().describe(\"Number of collections to skip before collecting results (if supported by API)\").optional(),\n}).describe(\"Parameters for listing collections. Supports pagination if available.\");\nconst NeedleListCollections_CollectionSchema = z.object({\n id: z.string().describe(\"Collection unique identifier\").nullable(),\n name: z.string().describe(\"Collection name\").nullable(),\n created_at: z.string().describe(\"Collection creation timestamp in ISO 8601 format (may be absent)\").nullable().optional(),\n updated_at: z.string().describe(\"Collection last update timestamp in ISO 8601 format (may be absent)\").nullable().optional(),\n description: z.string().describe(\"Collection description (may be absent)\").nullable().optional(),\n}).passthrough().describe(\"A collection resource.\");\nconst NeedleListCollections_APIErrorSchema = z.object({\n code: z.string().describe(\"Error code returned by the API\").nullable(),\n message: z.string().describe(\"Error message returned by the API\").nullable(),\n}).passthrough().describe(\"Error details when an API call fails.\");\nconst NeedleListCollections_PaginationSchema = z.object({\n limit: z.number().int().describe(\"Number of items returned per page\").nullable().optional(),\n total: z.number().int().describe(\"Total number of items available\").nullable().optional(),\n offset: z.number().int().describe(\"Number of items skipped before this page\").nullable().optional(),\n}).passthrough().describe(\"Pagination details for a list response.\");\nexport const NeedleListCollectionsOutput = z.object({\n data: z.array(NeedleListCollections_CollectionSchema).describe(\"List of collections returned by the API\").nullable().optional(),\n error: NeedleListCollections_APIErrorSchema.nullable().optional(),\n pagination: NeedleListCollections_PaginationSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for listing collections.\");\n\nexport const needleListCollections = action(\"NEEDLE_LIST_COLLECTIONS\", {\n slug: \"needle-list-collections\",\n name: \"List Collections\",\n description: \"Tool to list collections. Use after authenticating with your API key to page through collections. Similar collection names can exist; always verify the correct `collection_id` from results before performing subsequent operations.\",\n input: NeedleListCollectionsInput,\n output: NeedleListCollectionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3G,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;AAC9H,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,yCAAyC,EAAE,OAAO;CACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACtD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wBAAwB;AAClD,MAAM,uCAAuC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAM,yCAAyC,EAAE,OAAO;CACtD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAOnE,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXyC,EAAE,OAAO;EAClD,MAAM,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9H,OAAO,qCAAqC,SAAS,CAAC,CAAC,SAAS;EAChE,YAAY,uCAAuC,SAAS,CAAC,CAAC,SAAS;CACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"list-collections.mjs","names":[],"sources":["../../src/actions/list-collections.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { needle } from \"../app\";\n\nexport const NeedleListCollectionsInput = z.object({\n limit: z.number().int().describe(\"Maximum number of collections to return (if supported by API)\").optional(),\n offset: z.number().int().describe(\"Number of collections to skip before collecting results (if supported by API)\").optional(),\n}).describe(\"Parameters for listing collections. Supports pagination if available.\");\nconst NeedleListCollections_CollectionSchema = z.object({\n id: z.string().describe(\"Collection unique identifier\").nullable(),\n name: z.string().describe(\"Collection name\").nullable(),\n created_at: z.string().describe(\"Collection creation timestamp in ISO 8601 format (may be absent)\").nullable().optional(),\n updated_at: z.string().describe(\"Collection last update timestamp in ISO 8601 format (may be absent)\").nullable().optional(),\n description: z.string().describe(\"Collection description (may be absent)\").nullable().optional(),\n}).passthrough().describe(\"A collection resource.\");\nconst NeedleListCollections_APIErrorSchema = z.object({\n code: z.string().describe(\"Error code returned by the API\").nullable(),\n message: z.string().describe(\"Error message returned by the API\").nullable(),\n}).passthrough().describe(\"Error details when an API call fails.\");\nconst NeedleListCollections_PaginationSchema = z.object({\n limit: z.number().int().describe(\"Number of items returned per page\").nullable().optional(),\n total: z.number().int().describe(\"Total number of items available\").nullable().optional(),\n offset: z.number().int().describe(\"Number of items skipped before this page\").nullable().optional(),\n}).passthrough().describe(\"Pagination details for a list response.\");\nexport const NeedleListCollectionsOutput = z.object({\n data: z.array(NeedleListCollections_CollectionSchema).describe(\"List of collections returned by the API\").nullable().optional(),\n error: NeedleListCollections_APIErrorSchema.nullable().optional(),\n pagination: NeedleListCollections_PaginationSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for listing collections.\");\n\nexport const needleListCollections: AppAction<\n typeof NeedleListCollectionsInput,\n typeof NeedleListCollectionsOutput,\n typeof needle.credential\n> = action(\"NEEDLE_LIST_COLLECTIONS\", {\n slug: \"needle-list-collections\",\n name: \"List Collections\",\n description: \"Tool to list collections. Use after authenticating with your API key to page through collections. Similar collection names can exist; always verify the correct `collection_id` from results before performing subsequent operations.\",\n input: NeedleListCollectionsInput,\n output: NeedleListCollectionsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6B,EAAE,OAAO;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3G,QAAQ,EAAE,OAA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MAAa,wBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAfyC,EAAE,OAAO;EAClD,MAAM,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9H,OAAO,qCAAqC,SAAS,CAAC,CAAC,SAAS;EAChE,YAAY,uCAAuC,SAAS,CAAC,CAAC,SAAS;CACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAWhB;AACV,CAAC"}
@@ -1,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/list-connectors.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-connectors.cjs","names":["z","action"],"sources":["../../src/actions/list-connectors.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleListConnectorsInput = z.object({}).describe(\"Parameters for listing connectors. No parameters required.\");\nconst NeedleListConnectors_ConnectorSchema = z.object({\n id: z.string().describe(\"Connector unique identifier\").nullable(),\n name: z.string().describe(\"Connector name\").nullable(),\n type: z.string().describe(\"Connector type\").nullable().optional(),\n error: z.string().describe(\"Error message if the connector failed\").nullable().optional(),\n status: z.string().describe(\"Connector status\").nullable().optional(),\n cron_job: z.string().describe(\"Cron job schedule for the connector\").nullable().optional(),\n timezone: z.string().describe(\"Timezone for the connector\").nullable().optional(),\n created_at: z.string().describe(\"Connector creation timestamp\").nullable().optional(),\n}).passthrough().describe(\"A connector resource.\");\nexport const NeedleListConnectorsOutput = z.object({\n result: z.array(NeedleListConnectors_ConnectorSchema).describe(\"List of connectors returned by the API\").nullable().optional(),\n}).passthrough().describe(\"Response schema for listing connectors.\");\n\nexport const needleListConnectors = action(\"NEEDLE_LIST_CONNECTORS\", {\n slug: \"needle-list-connectors\",\n name: \"List Connectors\",\n description: \"Tool to list connectors. Use to retrieve all configured connectors in your account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AM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-connectors.cjs","names":["z","action"],"sources":["../../src/actions/list-connectors.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { needle } from \"../app\";\n\nexport const NeedleListConnectorsInput = z.object({}).describe(\"Parameters for listing connectors. No parameters required.\");\nconst NeedleListConnectors_ConnectorSchema = z.object({\n id: z.string().describe(\"Connector unique identifier\").nullable(),\n name: z.string().describe(\"Connector name\").nullable(),\n type: z.string().describe(\"Connector type\").nullable().optional(),\n error: z.string().describe(\"Error message if the connector failed\").nullable().optional(),\n status: z.string().describe(\"Connector status\").nullable().optional(),\n cron_job: z.string().describe(\"Cron job schedule for the connector\").nullable().optional(),\n timezone: z.string().describe(\"Timezone for the connector\").nullable().optional(),\n created_at: z.string().describe(\"Connector creation timestamp\").nullable().optional(),\n}).passthrough().describe(\"A connector resource.\");\nexport const NeedleListConnectorsOutput = z.object({\n result: z.array(NeedleListConnectors_ConnectorSchema).describe(\"List of connectors returned by the API\").nullable().optional(),\n}).passthrough().describe(\"Response schema for listing connectors.\");\n\nexport const needleListConnectors: AppAction<\n typeof NeedleListConnectorsInput,\n typeof NeedleListConnectorsOutput,\n typeof needle.credential\n> = action(\"NEEDLE_LIST_CONNECTORS\", {\n slug: \"needle-list-connectors\",\n name: \"List Connectors\",\n description: \"Tool to list connectors. Use to retrieve all configured connectors in your account.\",\n input: NeedleListConnectorsInput,\n output: NeedleListConnectorsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4DAA4D;AAC3H,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uBAAuB;AACjD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,QAAQA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC/H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { needle } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-connectors.d.ts
@@ -14,19 +16,7 @@ declare const NeedleListConnectorsOutput: z.ZodObject<{
14
16
  created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
17
  }, z.core.$loose>>>>;
16
18
  }, z.core.$loose>;
17
- declare const needleListConnectors: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
18
- connectionId: z.ZodString;
19
- entityId: z.ZodString;
20
- instanceId: z.ZodString;
21
- }, z.core.$strip>, z.ZodObject<{
22
- generic_api_key: z.ZodString;
23
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
24
- connectionId: z.ZodString;
25
- entityId: z.ZodString;
26
- instanceId: z.ZodString;
27
- }, z.core.$strip>, z.ZodObject<{
28
- generic_api_key: z.ZodString;
29
- }, z.core.$strip>>]>;
19
+ declare const needleListConnectors: AppAction<typeof NeedleListConnectorsInput, typeof NeedleListConnectorsOutput, typeof needle.credential>;
30
20
  //#endregion
31
21
  export { needleListConnectors };
32
22
  //# sourceMappingURL=list-connectors.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-connectors.d.cts","names":[],"sources":["../../src/actions/list-connectors.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAWzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,WAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"list-connectors.d.cts","names":[],"sources":["../../src/actions/list-connectors.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAWzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { needle } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-connectors.d.ts
@@ -14,19 +16,7 @@ declare const NeedleListConnectorsOutput: z.ZodObject<{
14
16
  created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
17
  }, z.core.$loose>>>>;
16
18
  }, z.core.$loose>;
17
- declare const needleListConnectors: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
18
- connectionId: z.ZodString;
19
- entityId: z.ZodString;
20
- instanceId: z.ZodString;
21
- }, z.core.$strip>, z.ZodObject<{
22
- generic_api_key: z.ZodString;
23
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
24
- connectionId: z.ZodString;
25
- entityId: z.ZodString;
26
- instanceId: z.ZodString;
27
- }, z.core.$strip>, z.ZodObject<{
28
- generic_api_key: z.ZodString;
29
- }, z.core.$strip>>]>;
19
+ declare const needleListConnectors: AppAction<typeof NeedleListConnectorsInput, typeof NeedleListConnectorsOutput, typeof needle.credential>;
30
20
  //#endregion
31
21
  export { needleListConnectors };
32
22
  //# sourceMappingURL=list-connectors.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-connectors.d.mts","names":[],"sources":["../../src/actions/list-connectors.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAWzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,WAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"list-connectors.d.mts","names":[],"sources":["../../src/actions/list-connectors.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAWzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,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/list-connectors.ts