@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":"list-connectors.mjs","names":[],"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.\",\n input: NeedleListConnectorsInput,\n output: NeedleListConnectorsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4DAA4D;AAC3H,MAAM,uCAAuC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uBAAuB;AAKjD,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwC,EAAE,OAAO,EACjD,QAAQ,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC/H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"list-connectors.mjs","names":[],"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,4BAA4B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4DAA4D;AAC3H,MAAM,uCAAuC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uBAAuB;AAKjD,MAAa,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbwC,EAAE,OAAO,EACjD,QAAQ,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC/H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAWhB;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-local-connectors.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-local-connectors.cjs","names":["z","action"],"sources":["../../src/actions/list-local-connectors.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleListLocalConnectorsInput = z.object({}).describe(\"Request model for listing local connectors. No parameters required.\");\nconst NeedleListLocalConnectors_FolderInfoSchema = z.object({\n recursive: z.boolean().describe(\"Whether to recursively monitor the folder\").nullable().optional(),\n folder_path: z.string().describe(\"Path to the folder\").nullable().optional(),\n connector_id: z.string().describe(\"Connector ID this folder belongs to\").nullable().optional(),\n}).passthrough().describe(\"Schema for folder information in a local connector.\");\nconst NeedleListLocalConnectors_LocalConnectorSchema = z.object({\n id: z.string().describe(\"Unique identifier of the local 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 local connector\").nullable(),\n type: z.string().describe(\"Type of connector\").nullable(),\n folders: z.array(z.union([z.string(), NeedleListLocalConnectors_FolderInfoSchema])).describe(\"List of folders monitored by this connector\").nullable().optional(),\n synced_at: z.string().describe(\"Last sync timestamp in ISO 8601 format\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable().optional(),\n device_name: z.string().describe(\"Name of the device\").nullable().optional(),\n device_model: z.string().describe(\"Model of the device\").nullable().optional(),\n serial_number: z.string().describe(\"Serial number of the device\").nullable().optional(),\n collection_ids: z.array(z.string()).describe(\"List of collection IDs associated with this connector\").nullable().optional(),\n}).passthrough().describe(\"Schema for a single local connector object returned by the API.\");\nexport const NeedleListLocalConnectorsOutput = z.object({\n connectors: z.array(NeedleListLocalConnectors_LocalConnectorSchema).describe(\"List of local connector objects\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing local connectors.\");\n\nexport const needleListLocalConnectors = action(\"NEEDLE_LIST_LOCAL_CONNECTORS\", {\n slug: \"needle-list-local-connectors\",\n name: \"List Local Connectors\",\n description: \"Tool to list local connectors. Use to retrieve all local connectors configured in your Needle account.\",\n input: NeedleListLocalConnectorsInput,\n output: NeedleListLocalConnectorsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACzI,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC7E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,S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AAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-local-connectors.cjs","names":["z","action"],"sources":["../../src/actions/list-local-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 NeedleListLocalConnectorsInput = z.object({}).describe(\"Request model for listing local connectors. No parameters required.\");\nconst NeedleListLocalConnectors_FolderInfoSchema = z.object({\n recursive: z.boolean().describe(\"Whether to recursively monitor the folder\").nullable().optional(),\n folder_path: z.string().describe(\"Path to the folder\").nullable().optional(),\n connector_id: z.string().describe(\"Connector ID this folder belongs to\").nullable().optional(),\n}).passthrough().describe(\"Schema for folder information in a local connector.\");\nconst NeedleListLocalConnectors_LocalConnectorSchema = z.object({\n id: z.string().describe(\"Unique identifier of the local 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 local connector\").nullable(),\n type: z.string().describe(\"Type of connector\").nullable(),\n folders: z.array(z.union([z.string(), NeedleListLocalConnectors_FolderInfoSchema])).describe(\"List of folders monitored by this connector\").nullable().optional(),\n synced_at: z.string().describe(\"Last sync timestamp in ISO 8601 format\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable().optional(),\n device_name: z.string().describe(\"Name of the device\").nullable().optional(),\n device_model: z.string().describe(\"Model of the device\").nullable().optional(),\n serial_number: z.string().describe(\"Serial number of the device\").nullable().optional(),\n collection_ids: z.array(z.string()).describe(\"List of collection IDs associated with this connector\").nullable().optional(),\n}).passthrough().describe(\"Schema for a single local connector object returned by the API.\");\nexport const NeedleListLocalConnectorsOutput = z.object({\n connectors: z.array(NeedleListLocalConnectors_LocalConnectorSchema).describe(\"List of local connector objects\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing local connectors.\");\n\nexport const needleListLocalConnectors: AppAction<\n typeof NeedleListLocalConnectorsInput,\n typeof NeedleListLocalConnectorsOutput,\n typeof needle.credential\n> = action(\"NEEDLE_LIST_LOCAL_CONNECTORS\", {\n slug: \"needle-list-local-connectors\",\n name: \"List Local Connectors\",\n description: \"Tool to list local connectors. Use to retrieve all local connectors configured in your Needle account.\",\n input: NeedleListLocalConnectorsInput,\n output: NeedleListLocalConnectorsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACzI,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC7E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,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app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-local-connectors.d.ts
@@ -22,19 +24,7 @@ declare const NeedleListLocalConnectorsOutput: z.ZodObject<{
22
24
  collection_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
23
25
  }, z.core.$loose>>>>;
24
26
  }, z.core.$loose>;
25
- declare const needleListLocalConnectors: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<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>>]>, readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
32
- connectionId: z.ZodString;
33
- entityId: z.ZodString;
34
- instanceId: z.ZodString;
35
- }, z.core.$strip>, z.ZodObject<{
36
- generic_api_key: z.ZodString;
37
- }, z.core.$strip>>]>;
27
+ declare const needleListLocalConnectors: AppAction<typeof NeedleListLocalConnectorsInput, typeof NeedleListLocalConnectorsOutput, typeof needle.credential>;
38
28
  //#endregion
39
29
  export { needleListLocalConnectors };
40
30
  //# sourceMappingURL=list-local-connectors.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-local-connectors.d.cts","names":[],"sources":["../../src/actions/list-local-connectors.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAoB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAI/B,yBAAA,gCAAyB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,WAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"list-local-connectors.d.cts","names":[],"sources":["../../src/actions/list-local-connectors.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAoB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAI/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-local-connectors.d.ts
@@ -22,19 +24,7 @@ declare const NeedleListLocalConnectorsOutput: z.ZodObject<{
22
24
  collection_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
23
25
  }, z.core.$loose>>>>;
24
26
  }, z.core.$loose>;
25
- declare const needleListLocalConnectors: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<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>>]>, readonly [import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
32
- connectionId: z.ZodString;
33
- entityId: z.ZodString;
34
- instanceId: z.ZodString;
35
- }, z.core.$strip>, z.ZodObject<{
36
- generic_api_key: z.ZodString;
37
- }, z.core.$strip>>]>;
27
+ declare const needleListLocalConnectors: AppAction<typeof NeedleListLocalConnectorsInput, typeof NeedleListLocalConnectorsOutput, typeof needle.credential>;
38
28
  //#endregion
39
29
  export { needleListLocalConnectors };
40
30
  //# sourceMappingURL=list-local-connectors.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-local-connectors.d.mts","names":[],"sources":["../../src/actions/list-local-connectors.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAoB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAI/B,yBAAA,gCAAyB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,WAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"list-local-connectors.d.mts","names":[],"sources":["../../src/actions/list-local-connectors.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAoB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAI/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-local-connectors.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-local-connectors.mjs","names":[],"sources":["../../src/actions/list-local-connectors.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleListLocalConnectorsInput = z.object({}).describe(\"Request model for listing local connectors. No parameters required.\");\nconst NeedleListLocalConnectors_FolderInfoSchema = z.object({\n recursive: z.boolean().describe(\"Whether to recursively monitor the folder\").nullable().optional(),\n folder_path: z.string().describe(\"Path to the folder\").nullable().optional(),\n connector_id: z.string().describe(\"Connector ID this folder belongs to\").nullable().optional(),\n}).passthrough().describe(\"Schema for folder information in a local connector.\");\nconst NeedleListLocalConnectors_LocalConnectorSchema = z.object({\n id: z.string().describe(\"Unique identifier of the local 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 local connector\").nullable(),\n type: z.string().describe(\"Type of connector\").nullable(),\n folders: z.array(z.union([z.string(), NeedleListLocalConnectors_FolderInfoSchema])).describe(\"List of folders monitored by this connector\").nullable().optional(),\n synced_at: z.string().describe(\"Last sync timestamp in ISO 8601 format\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable().optional(),\n device_name: z.string().describe(\"Name of the device\").nullable().optional(),\n device_model: z.string().describe(\"Model of the device\").nullable().optional(),\n serial_number: z.string().describe(\"Serial number of the device\").nullable().optional(),\n collection_ids: z.array(z.string()).describe(\"List of collection IDs associated with this connector\").nullable().optional(),\n}).passthrough().describe(\"Schema for a single local connector object returned by the API.\");\nexport const NeedleListLocalConnectorsOutput = z.object({\n connectors: z.array(NeedleListLocalConnectors_LocalConnectorSchema).describe(\"List of local connector objects\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing local connectors.\");\n\nexport const needleListLocalConnectors = action(\"NEEDLE_LIST_LOCAL_CONNECTORS\", {\n slug: \"needle-list-local-connectors\",\n name: \"List Local Connectors\",\n description: \"Tool to list local connectors. Use to retrieve all local connectors configured in your Needle account.\",\n input: NeedleListLocalConnectorsInput,\n output: NeedleListLocalConnectorsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACzI,MAAM,6CAA6C,EAAE,OAAO;CAC1D,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAM,iDAAiD,EAAE,OAAO;CAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;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AAC,SAAS,CAAC,CAAC,SAAS,EACtI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"list-local-connectors.mjs","names":[],"sources":["../../src/actions/list-local-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 NeedleListLocalConnectorsInput = z.object({}).describe(\"Request model for listing local connectors. No parameters required.\");\nconst NeedleListLocalConnectors_FolderInfoSchema = z.object({\n recursive: z.boolean().describe(\"Whether to recursively monitor the folder\").nullable().optional(),\n folder_path: z.string().describe(\"Path to the folder\").nullable().optional(),\n connector_id: z.string().describe(\"Connector ID this folder belongs to\").nullable().optional(),\n}).passthrough().describe(\"Schema for folder information in a local connector.\");\nconst NeedleListLocalConnectors_LocalConnectorSchema = z.object({\n id: z.string().describe(\"Unique identifier of the local 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 local connector\").nullable(),\n type: z.string().describe(\"Type of connector\").nullable(),\n folders: z.array(z.union([z.string(), NeedleListLocalConnectors_FolderInfoSchema])).describe(\"List of folders monitored by this connector\").nullable().optional(),\n synced_at: z.string().describe(\"Last sync timestamp in ISO 8601 format\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable().optional(),\n device_name: z.string().describe(\"Name of the device\").nullable().optional(),\n device_model: z.string().describe(\"Model of the device\").nullable().optional(),\n serial_number: z.string().describe(\"Serial number of the device\").nullable().optional(),\n collection_ids: z.array(z.string()).describe(\"List of collection IDs associated with this connector\").nullable().optional(),\n}).passthrough().describe(\"Schema for a single local connector object returned by the API.\");\nexport const NeedleListLocalConnectorsOutput = z.object({\n connectors: z.array(NeedleListLocalConnectors_LocalConnectorSchema).describe(\"List of local connector objects\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing local connectors.\");\n\nexport const needleListLocalConnectors: AppAction<\n typeof NeedleListLocalConnectorsInput,\n typeof NeedleListLocalConnectorsOutput,\n typeof needle.credential\n> = action(\"NEEDLE_LIST_LOCAL_CONNECTORS\", {\n slug: \"needle-list-local-connectors\",\n name: \"List Local Connectors\",\n description: \"Tool to list local connectors. Use to retrieve all local connectors configured in your Needle account.\",\n input: NeedleListLocalConnectorsInput,\n output: NeedleListLocalConnectorsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACzI,MAAM,6CAA6C,EAAE,OAAO;CAC1D,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAM,iDAAiD,EAAE,OAAO;CAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC7E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACxD,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,0CAA0C,CAAC,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChK,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAAiE;AAK3F,MAAa,4BAIT,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb6C,EAAE,OAAO,EACtD,YAAY,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACtI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAWhB;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/search-collection.ts
@@ -1 +1 @@
1
- {"version":3,"file":"search-collection.cjs","names":["z","action"],"sources":["../../src/actions/search-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleSearchCollectionInput = z.object({\n text: z.string().describe(\"The natural-language search query to find relevant content in the collection.\"),\n top_k: z.number().int().describe(\"Maximum number of search results to return. Default is 10 (maximum).\").optional(),\n offset: z.number().int().describe(\"Offset for pagination to skip a number of results.\").optional(),\n options: z.record(z.string(), z.unknown()).describe(\"Optional pass-through object for additional retrieval parameters supported by the API (e.g., filters, future knobs).\").optional(),\n max_distance: z.string().describe(\"Maximum similarity distance threshold for results, between 0 and 1. Lower values mean stricter relevance. Example: '0.65'.\").optional(),\n collection_id: z.string().describe(\"The unique identifier of the collection to search in.\"),\n}).describe(\"Request parameters for searching within a Needle collection.\");\nconst NeedleSearchCollection_SearchResultSchema = z.object({\n score: z.number().describe(\"Relevance score or similarity distance for this result.\").nullable().optional(),\n content: z.string().describe(\"The text content of the relevant passage extracted from the document.\").nullable(),\n file_id: z.string().describe(\"Identifier of the source file containing this result.\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata about the result (e.g., page number, chunk index).\").nullable().optional(),\n file_name: z.string().describe(\"Name of the source file.\").nullable().optional(),\n}).passthrough().describe(\"A single search result from the collection.\");\nexport const NeedleSearchCollectionOutput = z.object({\n total: z.number().int().describe(\"Total number of results available (if provided by API).\").nullable().optional(),\n results: z.array(NeedleSearchCollection_SearchResultSchema).describe(\"Array of search results with content and source references.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for collection search results.\");\n\nexport const needleSearchCollection = action(\"NEEDLE_SEARCH_COLLECTION\", {\n slug: \"needle-search-collection\",\n name: \"Search Collection\",\n description: \"Tool to perform semantic search within a specific Needle collection and return ranked results with source references. Use when you need to retrieve relevant content from a known collection using natural language queries.\",\n input: NeedleSearchCollectionInput,\n output: NeedleSearchCollectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CACzG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SA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A6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"search-collection.cjs","names":["z","action"],"sources":["../../src/actions/search-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 NeedleSearchCollectionInput = z.object({\n text: z.string().describe(\"The natural-language search query to find relevant content in the collection.\"),\n top_k: z.number().int().describe(\"Maximum number of search results to return. Default is 10 (maximum).\").optional(),\n offset: z.number().int().describe(\"Offset for pagination to skip a number of results.\").optional(),\n options: z.record(z.string(), z.unknown()).describe(\"Optional pass-through object for additional retrieval parameters supported by the API (e.g., filters, future knobs).\").optional(),\n max_distance: z.string().describe(\"Maximum similarity distance threshold for results, between 0 and 1. Lower values mean stricter relevance. Example: '0.65'.\").optional(),\n collection_id: z.string().describe(\"The unique identifier of the collection to search in.\"),\n}).describe(\"Request parameters for searching within a Needle collection.\");\nconst NeedleSearchCollection_SearchResultSchema = z.object({\n score: z.number().describe(\"Relevance score or similarity distance for this result.\").nullable().optional(),\n content: z.string().describe(\"The text content of the relevant passage extracted from the document.\").nullable(),\n file_id: z.string().describe(\"Identifier of the source file containing this result.\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata about the result (e.g., page number, chunk index).\").nullable().optional(),\n file_name: z.string().describe(\"Name of the source file.\").nullable().optional(),\n}).passthrough().describe(\"A single search result from the collection.\");\nexport const NeedleSearchCollectionOutput = z.object({\n total: z.number().int().describe(\"Total number of results available (if provided by API).\").nullable().optional(),\n results: z.array(NeedleSearchCollection_SearchResultSchema).describe(\"Array of search results with content and source references.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for collection search results.\");\n\nexport const needleSearchCollection: AppAction<\n typeof NeedleSearchCollectionInput,\n typeof NeedleSearchCollectionOutput,\n typeof needle.credential\n> = action(\"NEEDLE_SEARCH_COLLECTION\", {\n slug: \"needle-search-collection\",\n name: \"Search Collection\",\n description: \"Tool to perform semantic search within a specific Needle collection and return ranked results with source references. Use when you need to retrieve relevant content from a known collection using natural language queries.\",\n input: NeedleSearchCollectionInput,\n output: NeedleSearchCollectionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CACzG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAClH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACjG,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CACrL,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4HAA4H,CAAC,CAAC,SAAS;CACzK,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;AAC5F,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC/G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AACvE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,SAASA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,yBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { needle } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/search-collection.d.ts
@@ -19,26 +21,7 @@ declare const NeedleSearchCollectionOutput: z.ZodObject<{
19
21
  file_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
22
  }, z.core.$loose>>>>;
21
23
  }, z.core.$loose>;
22
- declare const needleSearchCollection: import("@keystrokehq/action").WorkflowActionDefinition<{
23
- text: string;
24
- collection_id: string;
25
- top_k?: number | undefined;
26
- offset?: number | undefined;
27
- options?: Record<string, unknown> | undefined;
28
- max_distance?: string | 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>>]>;
24
+ declare const needleSearchCollection: AppAction<typeof NeedleSearchCollectionInput, typeof NeedleSearchCollectionOutput, typeof needle.credential>;
42
25
  //#endregion
43
26
  export { needleSearchCollection };
44
27
  //# sourceMappingURL=search-collection.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"search-collection.d.cts","names":[],"sources":["../../src/actions/search-collection.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;cAe3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"search-collection.d.cts","names":[],"sources":["../../src/actions/search-collection.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;cAe3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;cAK5B,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/search-collection.d.ts
@@ -19,26 +21,7 @@ declare const NeedleSearchCollectionOutput: z.ZodObject<{
19
21
  file_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
22
  }, z.core.$loose>>>>;
21
23
  }, z.core.$loose>;
22
- declare const needleSearchCollection: import("@keystrokehq/action").WorkflowActionDefinition<{
23
- text: string;
24
- collection_id: string;
25
- top_k?: number | undefined;
26
- offset?: number | undefined;
27
- options?: Record<string, unknown> | undefined;
28
- max_distance?: string | 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>>]>;
24
+ declare const needleSearchCollection: AppAction<typeof NeedleSearchCollectionInput, typeof NeedleSearchCollectionOutput, typeof needle.credential>;
42
25
  //#endregion
43
26
  export { needleSearchCollection };
44
27
  //# sourceMappingURL=search-collection.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"search-collection.d.mts","names":[],"sources":["../../src/actions/search-collection.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;cAe3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"search-collection.d.mts","names":[],"sources":["../../src/actions/search-collection.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;cAe3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;cAK5B,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/search-collection.ts
@@ -1 +1 @@
1
- {"version":3,"file":"search-collection.mjs","names":[],"sources":["../../src/actions/search-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleSearchCollectionInput = z.object({\n text: z.string().describe(\"The natural-language search query to find relevant content in the collection.\"),\n top_k: z.number().int().describe(\"Maximum number of search results to return. Default is 10 (maximum).\").optional(),\n offset: z.number().int().describe(\"Offset for pagination to skip a number of results.\").optional(),\n options: z.record(z.string(), z.unknown()).describe(\"Optional pass-through object for additional retrieval parameters supported by the API (e.g., filters, future knobs).\").optional(),\n max_distance: z.string().describe(\"Maximum similarity distance threshold for results, between 0 and 1. Lower values mean stricter relevance. Example: '0.65'.\").optional(),\n collection_id: z.string().describe(\"The unique identifier of the collection to search in.\"),\n}).describe(\"Request parameters for searching within a Needle collection.\");\nconst NeedleSearchCollection_SearchResultSchema = z.object({\n score: z.number().describe(\"Relevance score or similarity distance for this result.\").nullable().optional(),\n content: z.string().describe(\"The text content of the relevant passage extracted from the document.\").nullable(),\n file_id: z.string().describe(\"Identifier of the source file containing this result.\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata about the result (e.g., page number, chunk index).\").nullable().optional(),\n file_name: z.string().describe(\"Name of the source file.\").nullable().optional(),\n}).passthrough().describe(\"A single search result from the collection.\");\nexport const NeedleSearchCollectionOutput = z.object({\n total: z.number().int().describe(\"Total number of results available (if provided by API).\").nullable().optional(),\n results: z.array(NeedleSearchCollection_SearchResultSchema).describe(\"Array of search results with content and source references.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for collection search results.\");\n\nexport const needleSearchCollection = action(\"NEEDLE_SEARCH_COLLECTION\", {\n slug: \"needle-search-collection\",\n name: \"Search Collection\",\n description: \"Tool to perform semantic search within a specific Needle collection and return ranked results with source references. Use when you need to retrieve relevant content from a known collection using natural language queries.\",\n input: NeedleSearchCollectionInput,\n output: NeedleSearchCollectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,C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,MAAM,yCAAyC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"search-collection.mjs","names":[],"sources":["../../src/actions/search-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 NeedleSearchCollectionInput = z.object({\n text: z.string().describe(\"The natural-language search query to find relevant content in the collection.\"),\n top_k: z.number().int().describe(\"Maximum number of search results to return. Default is 10 (maximum).\").optional(),\n offset: z.number().int().describe(\"Offset for pagination to skip a number of results.\").optional(),\n options: z.record(z.string(), z.unknown()).describe(\"Optional pass-through object for additional retrieval parameters supported by the API (e.g., filters, future knobs).\").optional(),\n max_distance: z.string().describe(\"Maximum similarity distance threshold for results, between 0 and 1. Lower values mean stricter relevance. Example: '0.65'.\").optional(),\n collection_id: z.string().describe(\"The unique identifier of the collection to search in.\"),\n}).describe(\"Request parameters for searching within a Needle collection.\");\nconst NeedleSearchCollection_SearchResultSchema = z.object({\n score: z.number().describe(\"Relevance score or similarity distance for this result.\").nullable().optional(),\n content: z.string().describe(\"The text content of the relevant passage extracted from the document.\").nullable(),\n file_id: z.string().describe(\"Identifier of the source file containing this result.\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata about the result (e.g., page number, chunk index).\").nullable().optional(),\n file_name: z.string().describe(\"Name of the source file.\").nullable().optional(),\n}).passthrough().describe(\"A single search result from the collection.\");\nexport const NeedleSearchCollectionOutput = z.object({\n total: z.number().int().describe(\"Total number of results available (if provided by API).\").nullable().optional(),\n results: z.array(NeedleSearchCollection_SearchResultSchema).describe(\"Array of search results with content and source references.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for collection search results.\");\n\nexport const needleSearchCollection: AppAction<\n typeof NeedleSearchCollectionInput,\n typeof NeedleSearchCollectionOutput,\n typeof needle.credential\n> = action(\"NEEDLE_SEARCH_COLLECTION\", {\n slug: \"needle-search-collection\",\n name: \"Search Collection\",\n description: \"Tool to perform semantic search within a specific Needle collection and return ranked results with source references. Use when you need to retrieve relevant content from a known collection using natural language queries.\",\n input: NeedleSearchCollectionInput,\n output: NeedleSearchCollectionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8B,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CACzG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAClH,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACjG,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CACrL,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,4HAA4H,CAAC,CAAC,SAAS;CACzK,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;AAC5F,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,4CAA4C,EAAE,OAAO;CACzD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC/G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAMvE,MAAa,yBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd0C,EAAE,OAAO;EACnD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,SAAS,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAWhB;AACV,CAAC"}
package/dist/app.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
2
- let zod = require("zod");
3
2
  //#region src/app.ts
3
+ const credential = { generic_api_key: require("zod").z.string() };
4
4
  const needle = (0, _keystrokehq_keystroke_app.defineApp)({
5
5
  slug: "needle",
6
6
  auth: "keystroke",
7
- credential: { generic_api_key: zod.z.string() }
7
+ credential
8
8
  });
9
9
  //#endregion
10
10
  exports.needle = needle;
package/dist/app.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const needle = defineApp({\n slug: \"needle\",\n auth: \"keystroke\",\n credential: {\n generic_api_key: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,UAAA,GAAA,2BAAA,UAAA,CAAmB;CAC9B,MAAM;CACN,MAAM;CACN,YAAY,EACV,iBAAiBA,IAAAA,EAAE,OAAO,EAC5B;AACF,CAAC"}
1
+ {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const needle: KeystrokeApp<\"needle\", typeof credential> = defineApp({\n slug: \"needle\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,8BAAiBA,CAAAA,CAAAA,EAAE,OAAO,EAC5B;AAEA,MAAa,UAAA,GAAA,2BAAA,UAAA,CAA8D;CACzE,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
package/dist/app.d.cts CHANGED
@@ -1,13 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
1
2
  import { z } from "zod";
2
3
 
3
4
  //#region src/app.d.ts
4
- declare const needle: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
5
- connectionId: z.ZodString;
6
- entityId: z.ZodString;
7
- instanceId: z.ZodString;
8
- }, z.core.$strip>, z.ZodObject<{
5
+ declare const credential: {
9
6
  generic_api_key: z.ZodString;
10
- }, z.core.$strip>>>;
7
+ };
8
+ declare const needle: KeystrokeApp<"needle", typeof credential>;
11
9
  //#endregion
12
10
  export { needle };
13
11
  //# sourceMappingURL=app.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,MAAA,6BAAM,GAAA,+BAAA,UAAA,WAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,MAAA,EAAQ,YAAY,kBAAkB,UAAA"}
package/dist/app.d.mts CHANGED
@@ -1,13 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
1
2
  import { z } from "zod";
2
3
 
3
4
  //#region src/app.d.ts
4
- declare const needle: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"needle", z.ZodObject<{
5
- connectionId: z.ZodString;
6
- entityId: z.ZodString;
7
- instanceId: z.ZodString;
8
- }, z.core.$strip>, z.ZodObject<{
5
+ declare const credential: {
9
6
  generic_api_key: z.ZodString;
10
- }, z.core.$strip>>>;
7
+ };
8
+ declare const needle: KeystrokeApp<"needle", typeof credential>;
11
9
  //#endregion
12
10
  export { needle };
13
11
  //# sourceMappingURL=app.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,MAAA,6BAAM,GAAA,+BAAA,UAAA,WAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,MAAA,EAAQ,YAAY,kBAAkB,UAAA"}
package/dist/app.mjs CHANGED
@@ -1,6 +1,5 @@
1
1
  import { defineApp } from "@keystrokehq/keystroke/app";
2
2
  import { z } from "zod";
3
- //#region src/app.ts
4
3
  const needle = defineApp({
5
4
  slug: "needle",
6
5
  auth: "keystroke",
package/dist/app.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const needle = defineApp({\n slug: \"needle\",\n auth: \"keystroke\",\n credential: {\n generic_api_key: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,SAAS,UAAU;CAC9B,MAAM;CACN,MAAM;CACN,YAAY,EACV,iBAAiB,EAAE,OAAO,EAC5B;AACF,CAAC"}
1
+ {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const needle: KeystrokeApp<\"needle\", typeof credential> = defineApp({\n slug: \"needle\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,SAAoD,UAAU;CACzE,MAAM;CACN,MAAM;CACN,cANA,iBAAiB,EAAE,OAAO,EAM1B;AACF,CAAC"}
package/dist/index.d.cts CHANGED
@@ -1,3 +1,4 @@
1
+ import { needle } from "./app.cjs";
1
2
  import { needleAddFilesToCollection } from "./actions/add-files-to-collection.cjs";
2
3
  import { needleAddFilesToLocalConnector } from "./actions/add-files-to-local-connector.cjs";
3
4
  import { needleCreateCollection } from "./actions/create-collection.cjs";
@@ -14,6 +15,5 @@ import { needleListCollections } from "./actions/list-collections.cjs";
14
15
  import { needleListConnectors } from "./actions/list-connectors.cjs";
15
16
  import { needleListLocalConnectors } from "./actions/list-local-connectors.cjs";
16
17
  import { needleSearchCollection } from "./actions/search-collection.cjs";
17
- import { needle } from "./app.cjs";
18
18
  import { needleCatalog } from "./catalog.cjs";
19
19
  export { needle, needleAddFilesToCollection, needleAddFilesToLocalConnector, needleCatalog, needleCreateCollection, needleCreateLocalConnector, needleDeleteFilesFromCollection, needleDeleteFilesFromLocalConnector, needleGetCollection, needleGetCollectionStats, needleGetFileDownloadUrl, needleGetFileUploadUrl, needleGetLocalConnector, needleListCollectionFiles, needleListCollections, needleListConnectors, needleListLocalConnectors, needleSearchCollection };
package/dist/index.d.mts CHANGED
@@ -1,3 +1,4 @@
1
+ import { needle } from "./app.mjs";
1
2
  import { needleAddFilesToCollection } from "./actions/add-files-to-collection.mjs";
2
3
  import { needleAddFilesToLocalConnector } from "./actions/add-files-to-local-connector.mjs";
3
4
  import { needleCreateCollection } from "./actions/create-collection.mjs";
@@ -14,6 +15,5 @@ import { needleListCollections } from "./actions/list-collections.mjs";
14
15
  import { needleListConnectors } from "./actions/list-connectors.mjs";
15
16
  import { needleListLocalConnectors } from "./actions/list-local-connectors.mjs";
16
17
  import { needleSearchCollection } from "./actions/search-collection.mjs";
17
- import { needle } from "./app.mjs";
18
18
  import { needleCatalog } from "./catalog.mjs";
19
19
  export { needle, needleAddFilesToCollection, needleAddFilesToLocalConnector, needleCatalog, needleCreateCollection, needleCreateLocalConnector, needleDeleteFilesFromCollection, needleDeleteFilesFromLocalConnector, needleGetCollection, needleGetCollectionStats, needleGetFileDownloadUrl, needleGetFileUploadUrl, needleGetLocalConnector, needleListCollectionFiles, needleListCollections, needleListConnectors, needleListLocalConnectors, needleSearchCollection };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/needle",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -31,7 +31,7 @@
31
31
  }
32
32
  },
33
33
  "peerDependencies": {
34
- "@keystrokehq/keystroke": ">=0.1.4",
34
+ "@keystrokehq/keystroke": ">=0.1.104",
35
35
  "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {