@keystrokehq/needle 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) 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 +3 -3
  4. package/dist/actions/add-files-to-collection.cjs.map +1 -1
  5. package/dist/actions/add-files-to-collection.d.cts +29 -3
  6. package/dist/actions/add-files-to-collection.d.cts.map +1 -1
  7. package/dist/actions/add-files-to-collection.d.mts +29 -3
  8. package/dist/actions/add-files-to-collection.d.mts.map +1 -1
  9. package/dist/actions/add-files-to-collection.mjs +3 -3
  10. package/dist/actions/add-files-to-collection.mjs.map +1 -1
  11. package/dist/actions/add-files-to-local-connector.cjs +3 -3
  12. package/dist/actions/add-files-to-local-connector.cjs.map +1 -1
  13. package/dist/actions/add-files-to-local-connector.d.cts +31 -3
  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 +31 -3
  16. package/dist/actions/add-files-to-local-connector.d.mts.map +1 -1
  17. package/dist/actions/add-files-to-local-connector.mjs +3 -3
  18. package/dist/actions/add-files-to-local-connector.mjs.map +1 -1
  19. package/dist/actions/create-collection.cjs +3 -3
  20. package/dist/actions/create-collection.cjs.map +1 -1
  21. package/dist/actions/create-collection.d.cts +18 -3
  22. package/dist/actions/create-collection.d.cts.map +1 -1
  23. package/dist/actions/create-collection.d.mts +18 -3
  24. package/dist/actions/create-collection.d.mts.map +1 -1
  25. package/dist/actions/create-collection.mjs +3 -3
  26. package/dist/actions/create-collection.mjs.map +1 -1
  27. package/dist/actions/create-local-connector.cjs +15 -15
  28. package/dist/actions/create-local-connector.cjs.map +1 -1
  29. package/dist/actions/create-local-connector.d.cts +46 -3
  30. package/dist/actions/create-local-connector.d.cts.map +1 -1
  31. package/dist/actions/create-local-connector.d.mts +46 -3
  32. package/dist/actions/create-local-connector.d.mts.map +1 -1
  33. package/dist/actions/create-local-connector.mjs +15 -15
  34. package/dist/actions/create-local-connector.mjs.map +1 -1
  35. package/dist/actions/delete-files-from-collection.cjs +1 -1
  36. package/dist/actions/delete-files-from-collection.cjs.map +1 -1
  37. package/dist/actions/delete-files-from-collection.d.cts +12 -3
  38. package/dist/actions/delete-files-from-collection.d.cts.map +1 -1
  39. package/dist/actions/delete-files-from-collection.d.mts +12 -3
  40. package/dist/actions/delete-files-from-collection.d.mts.map +1 -1
  41. package/dist/actions/delete-files-from-collection.mjs +1 -1
  42. package/dist/actions/delete-files-from-collection.mjs.map +1 -1
  43. package/dist/actions/delete-files-from-local-connector.cjs +5 -5
  44. package/dist/actions/delete-files-from-local-connector.cjs.map +1 -1
  45. package/dist/actions/delete-files-from-local-connector.d.cts +29 -3
  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 +29 -3
  48. package/dist/actions/delete-files-from-local-connector.d.mts.map +1 -1
  49. package/dist/actions/delete-files-from-local-connector.mjs +5 -5
  50. package/dist/actions/delete-files-from-local-connector.mjs.map +1 -1
  51. package/dist/actions/get-collection-stats.cjs +7 -7
  52. package/dist/actions/get-collection-stats.cjs.map +1 -1
  53. package/dist/actions/get-collection-stats.d.cts +16 -3
  54. package/dist/actions/get-collection-stats.d.cts.map +1 -1
  55. package/dist/actions/get-collection-stats.d.mts +16 -3
  56. package/dist/actions/get-collection-stats.d.mts.map +1 -1
  57. package/dist/actions/get-collection-stats.mjs +7 -7
  58. package/dist/actions/get-collection-stats.mjs.map +1 -1
  59. package/dist/actions/get-collection.cjs +5 -5
  60. package/dist/actions/get-collection.cjs.map +1 -1
  61. package/dist/actions/get-collection.d.cts +12 -3
  62. package/dist/actions/get-collection.d.cts.map +1 -1
  63. package/dist/actions/get-collection.d.mts +12 -3
  64. package/dist/actions/get-collection.d.mts.map +1 -1
  65. package/dist/actions/get-collection.mjs +5 -5
  66. package/dist/actions/get-collection.mjs.map +1 -1
  67. package/dist/actions/get-file-download-url.cjs +2 -2
  68. package/dist/actions/get-file-download-url.cjs.map +1 -1
  69. package/dist/actions/get-file-download-url.d.cts +10 -3
  70. package/dist/actions/get-file-download-url.d.cts.map +1 -1
  71. package/dist/actions/get-file-download-url.d.mts +10 -3
  72. package/dist/actions/get-file-download-url.d.mts.map +1 -1
  73. package/dist/actions/get-file-download-url.mjs +2 -2
  74. package/dist/actions/get-file-download-url.mjs.map +1 -1
  75. package/dist/actions/get-file-upload-url.cjs +4 -4
  76. package/dist/actions/get-file-upload-url.cjs.map +1 -1
  77. package/dist/actions/get-file-upload-url.d.cts +12 -3
  78. package/dist/actions/get-file-upload-url.d.cts.map +1 -1
  79. package/dist/actions/get-file-upload-url.d.mts +12 -3
  80. package/dist/actions/get-file-upload-url.d.mts.map +1 -1
  81. package/dist/actions/get-file-upload-url.mjs +4 -4
  82. package/dist/actions/get-file-upload-url.mjs.map +1 -1
  83. package/dist/actions/get-local-connector.cjs +6 -6
  84. package/dist/actions/get-local-connector.cjs.map +1 -1
  85. package/dist/actions/get-local-connector.d.cts +25 -3
  86. package/dist/actions/get-local-connector.d.cts.map +1 -1
  87. package/dist/actions/get-local-connector.d.mts +25 -3
  88. package/dist/actions/get-local-connector.d.mts.map +1 -1
  89. package/dist/actions/get-local-connector.mjs +6 -6
  90. package/dist/actions/get-local-connector.mjs.map +1 -1
  91. package/dist/actions/list-collection-files.cjs +7 -7
  92. package/dist/actions/list-collection-files.cjs.map +1 -1
  93. package/dist/actions/list-collection-files.d.cts +30 -3
  94. package/dist/actions/list-collection-files.d.cts.map +1 -1
  95. package/dist/actions/list-collection-files.d.mts +30 -3
  96. package/dist/actions/list-collection-files.d.mts.map +1 -1
  97. package/dist/actions/list-collection-files.mjs +7 -7
  98. package/dist/actions/list-collection-files.mjs.map +1 -1
  99. package/dist/actions/list-collections.cjs +8 -8
  100. package/dist/actions/list-collections.cjs.map +1 -1
  101. package/dist/actions/list-collections.d.cts +26 -3
  102. package/dist/actions/list-collections.d.cts.map +1 -1
  103. package/dist/actions/list-collections.d.mts +26 -3
  104. package/dist/actions/list-collections.d.mts.map +1 -1
  105. package/dist/actions/list-collections.mjs +8 -8
  106. package/dist/actions/list-collections.mjs.map +1 -1
  107. package/dist/actions/list-connectors.cjs +4 -4
  108. package/dist/actions/list-connectors.cjs.map +1 -1
  109. package/dist/actions/list-connectors.d.cts +14 -3
  110. package/dist/actions/list-connectors.d.cts.map +1 -1
  111. package/dist/actions/list-connectors.d.mts +14 -3
  112. package/dist/actions/list-connectors.d.mts.map +1 -1
  113. package/dist/actions/list-connectors.mjs +4 -4
  114. package/dist/actions/list-connectors.mjs.map +1 -1
  115. package/dist/actions/list-local-connectors.cjs +6 -6
  116. package/dist/actions/list-local-connectors.cjs.map +1 -1
  117. package/dist/actions/list-local-connectors.d.cts +22 -3
  118. package/dist/actions/list-local-connectors.d.cts.map +1 -1
  119. package/dist/actions/list-local-connectors.d.mts +22 -3
  120. package/dist/actions/list-local-connectors.d.mts.map +1 -1
  121. package/dist/actions/list-local-connectors.mjs +6 -6
  122. package/dist/actions/list-local-connectors.mjs.map +1 -1
  123. package/dist/actions/search-collection.cjs +3 -3
  124. package/dist/actions/search-collection.cjs.map +1 -1
  125. package/dist/actions/search-collection.d.cts +26 -3
  126. package/dist/actions/search-collection.d.cts.map +1 -1
  127. package/dist/actions/search-collection.d.mts +26 -3
  128. package/dist/actions/search-collection.d.mts.map +1 -1
  129. package/dist/actions/search-collection.mjs +3 -3
  130. package/dist/actions/search-collection.mjs.map +1 -1
  131. package/dist/catalog.cjs +7 -1
  132. package/dist/catalog.cjs.map +1 -1
  133. package/dist/catalog.d.cts +8 -0
  134. package/dist/catalog.d.mts +8 -0
  135. package/dist/catalog.mjs +7 -1
  136. package/dist/catalog.mjs.map +1 -1
  137. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"list-connectors.d.cts","names":[],"sources":["../../src/actions/list-connectors.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAAgG;AAAA,cAW7H,0BAAA,EAA4B,CAAA,CAAE,UAEW;AAAA,cAEzC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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,4CAAA,UAAA"}
@@ -1,9 +1,20 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-connectors.d.ts
4
- declare const NeedleListConnectorsInput: z.ZodTypeAny;
5
- declare const NeedleListConnectorsOutput: z.ZodTypeAny;
6
- declare const needleListConnectors: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NeedleListConnectorsInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const NeedleListConnectorsOutput: z.ZodObject<{
6
+ result: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
7
+ id: z.ZodNullable<z.ZodString>;
8
+ name: z.ZodNullable<z.ZodString>;
9
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ cron_job: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ }, z.core.$loose>>>>;
16
+ }, z.core.$loose>;
17
+ declare const needleListConnectors: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
18
  //#endregion
8
19
  export { needleListConnectors };
9
20
  //# 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,EAA2B,CAAA,CAAE,UAAgG;AAAA,cAW7H,0BAAA,EAA4B,CAAA,CAAE,UAEW;AAAA,cAEzC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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,4CAAA,UAAA"}
@@ -3,21 +3,21 @@ import { z } from "zod";
3
3
  //#region src/actions/list-connectors.ts
4
4
  const NeedleListConnectorsInput = z.object({}).describe("Parameters for listing connectors. No parameters required.");
5
5
  const NeedleListConnectors_ConnectorSchema = z.object({
6
- id: z.string().describe("Connector unique identifier"),
7
- name: z.string().describe("Connector name"),
6
+ id: z.string().describe("Connector unique identifier").nullable(),
7
+ name: z.string().describe("Connector name").nullable(),
8
8
  type: z.string().describe("Connector type").nullable().optional(),
9
9
  error: z.string().describe("Error message if the connector failed").nullable().optional(),
10
10
  status: z.string().describe("Connector status").nullable().optional(),
11
11
  cron_job: z.string().describe("Cron job schedule for the connector").nullable().optional(),
12
12
  timezone: z.string().describe("Timezone for the connector").nullable().optional(),
13
13
  created_at: z.string().describe("Connector creation timestamp").nullable().optional()
14
- }).describe("A connector resource.");
14
+ }).passthrough().describe("A connector resource.");
15
15
  const needleListConnectors = action("NEEDLE_LIST_CONNECTORS", {
16
16
  slug: "needle-list-connectors",
17
17
  name: "List Connectors",
18
18
  description: "Tool to list connectors. Use to retrieve all configured connectors in your account.",
19
19
  input: NeedleListConnectorsInput,
20
- output: z.object({ result: z.array(NeedleListConnectors_ConnectorSchema).describe("List of connectors returned by the API").nullable().optional() }).describe("Response schema for listing connectors.")
20
+ output: z.object({ result: z.array(NeedleListConnectors_ConnectorSchema).describe("List of connectors returned by the API").nullable().optional() }).passthrough().describe("Response schema for listing connectors.")
21
21
  });
22
22
  //#endregion
23
23
  export { needleListConnectors };
@@ -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.ZodTypeAny = z.object({}).describe(\"Parameters for listing connectors. No parameters required.\");\nconst NeedleListConnectors_ConnectorSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Connector unique identifier\"),\n name: z.string().describe(\"Connector name\"),\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}).describe(\"A connector resource.\");\nexport const NeedleListConnectorsOutput: z.ZodTypeAny = z.object({\n result: z.array(NeedleListConnectors_ConnectorSchema).describe(\"List of connectors returned by the API\").nullable().optional(),\n}).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,4BAA0C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACzI,MAAM,uCAAqD,EAAE,OAAO;CAClE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;CAC1C,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,SAAS,uBAAuB;AAKnC,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsD,EAAE,OAAO,EAC/D,QAAQ,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC/H,CAAC,CAAC,CAAC,SAAS,yCAOF;AACV,CAAC"}
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"}
@@ -6,13 +6,13 @@ const NeedleListLocalConnectors_FolderInfoSchema = zod.z.object({
6
6
  recursive: zod.z.boolean().describe("Whether to recursively monitor the folder").nullable().optional(),
7
7
  folder_path: zod.z.string().describe("Path to the folder").nullable().optional(),
8
8
  connector_id: zod.z.string().describe("Connector ID this folder belongs to").nullable().optional()
9
- }).describe("Schema for folder information in a local connector.");
9
+ }).passthrough().describe("Schema for folder information in a local connector.");
10
10
  const NeedleListLocalConnectors_LocalConnectorSchema = zod.z.object({
11
- id: zod.z.string().describe("Unique identifier of the local connector"),
11
+ id: zod.z.string().describe("Unique identifier of the local connector").nullable(),
12
12
  os: zod.z.string().describe("Operating system of the device").nullable().optional(),
13
13
  cpu: zod.z.string().describe("CPU information of the device").nullable().optional(),
14
- name: zod.z.string().describe("Name of the local connector"),
15
- type: zod.z.string().describe("Type of connector"),
14
+ name: zod.z.string().describe("Name of the local connector").nullable(),
15
+ type: zod.z.string().describe("Type of connector").nullable(),
16
16
  folders: zod.z.array(zod.z.union([zod.z.string(), NeedleListLocalConnectors_FolderInfoSchema])).describe("List of folders monitored by this connector").nullable().optional(),
17
17
  synced_at: zod.z.string().describe("Last sync timestamp in ISO 8601 format").nullable().optional(),
18
18
  created_at: zod.z.string().describe("Creation timestamp in ISO 8601 format").nullable().optional(),
@@ -20,8 +20,8 @@ const NeedleListLocalConnectors_LocalConnectorSchema = zod.z.object({
20
20
  device_model: zod.z.string().describe("Model of the device").nullable().optional(),
21
21
  serial_number: zod.z.string().describe("Serial number of the device").nullable().optional(),
22
22
  collection_ids: zod.z.array(zod.z.string()).describe("List of collection IDs associated with this connector").nullable().optional()
23
- }).describe("Schema for a single local connector object returned by the API.");
24
- const NeedleListLocalConnectorsOutput = zod.z.object({ connectors: zod.z.array(NeedleListLocalConnectors_LocalConnectorSchema).describe("List of local connector objects").nullable().optional() }).describe("Response model for listing local connectors.");
23
+ }).passthrough().describe("Schema for a single local connector object returned by the API.");
24
+ const NeedleListLocalConnectorsOutput = zod.z.object({ connectors: zod.z.array(NeedleListLocalConnectors_LocalConnectorSchema).describe("List of local connector objects").nullable().optional() }).passthrough().describe("Response model for listing local connectors.");
25
25
  const needleListLocalConnectors = require_action.action("NEEDLE_LIST_LOCAL_CONNECTORS", {
26
26
  slug: "needle-list-local-connectors",
27
27
  name: "List Local Connectors",
@@ -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.ZodTypeAny = z.object({}).describe(\"Request model for listing local connectors. No parameters required.\");\nconst NeedleListLocalConnectors_FolderInfoSchema: z.ZodTypeAny = 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}).describe(\"Schema for folder information in a local connector.\");\nconst NeedleListLocalConnectors_LocalConnectorSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the local connector\"),\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\"),\n type: z.string().describe(\"Type of connector\"),\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}).describe(\"Schema for a single local connector object returned by the API.\");\nexport const NeedleListLocalConnectorsOutput: z.ZodTypeAny = z.object({\n connectors: z.array(NeedleListLocalConnectors_LocalConnectorSchema).describe(\"List of local connector objects\").nullable().optional(),\n}).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,iCAA+CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACvJ,MAAM,6CAA2DA,IAAAA,EAAE,OAAO;CACxE,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,SAAS,qDAAqD;AACjE,MAAM,iDAA+DA,IAAAA,EAAE,OAAO;CAC5E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAClE,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;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;CAC7C,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAG,0CAA0C,CAAC,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChK,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,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,SAAS,iEAAiE;AAC7E,MAAa,kCAAgDA,IAAAA,EAAE,OAAO,EACpE,YAAYA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACtI,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,4BAA4BC,eAAAA,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 { 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,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,CAAC,CAAC,SAAS;CACxD,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAG,0CAA0C,CAAC,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChK,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,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,iEAAiE;AAC3F,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,YAAYA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACtI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,28 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-local-connectors.d.ts
4
- declare const NeedleListLocalConnectorsInput: z.ZodTypeAny;
5
- declare const NeedleListLocalConnectorsOutput: z.ZodTypeAny;
6
- declare const needleListLocalConnectors: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NeedleListLocalConnectorsInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const NeedleListLocalConnectorsOutput: z.ZodObject<{
6
+ connectors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
7
+ id: z.ZodNullable<z.ZodString>;
8
+ os: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ cpu: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ name: z.ZodNullable<z.ZodString>;
11
+ type: z.ZodNullable<z.ZodString>;
12
+ folders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
13
+ recursive: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
14
+ folder_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ connector_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ }, z.core.$loose>]>>>>;
17
+ synced_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ device_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ device_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ serial_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ collection_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
23
+ }, z.core.$loose>>>>;
24
+ }, z.core.$loose>;
25
+ declare const needleListLocalConnectors: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
26
  //#endregion
8
27
  export { needleListLocalConnectors };
9
28
  //# 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,EAAgC,CAAA,CAAE,UAAyG;AAAA,cAoB3I,+BAAA,EAAiC,CAAA,CAAE,UAEW;AAAA,cAE9C,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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,4CAAA,UAAA"}
@@ -1,9 +1,28 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-local-connectors.d.ts
4
- declare const NeedleListLocalConnectorsInput: z.ZodTypeAny;
5
- declare const NeedleListLocalConnectorsOutput: z.ZodTypeAny;
6
- declare const needleListLocalConnectors: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NeedleListLocalConnectorsInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const NeedleListLocalConnectorsOutput: z.ZodObject<{
6
+ connectors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
7
+ id: z.ZodNullable<z.ZodString>;
8
+ os: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ cpu: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ name: z.ZodNullable<z.ZodString>;
11
+ type: z.ZodNullable<z.ZodString>;
12
+ folders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
13
+ recursive: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
14
+ folder_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ connector_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ }, z.core.$loose>]>>>>;
17
+ synced_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ device_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ device_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ serial_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ collection_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
23
+ }, z.core.$loose>>>>;
24
+ }, z.core.$loose>;
25
+ declare const needleListLocalConnectors: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
26
  //#endregion
8
27
  export { needleListLocalConnectors };
9
28
  //# 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,EAAgC,CAAA,CAAE,UAAyG;AAAA,cAoB3I,+BAAA,EAAiC,CAAA,CAAE,UAEW;AAAA,cAE9C,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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,4CAAA,UAAA"}
@@ -6,13 +6,13 @@ const NeedleListLocalConnectors_FolderInfoSchema = z.object({
6
6
  recursive: z.boolean().describe("Whether to recursively monitor the folder").nullable().optional(),
7
7
  folder_path: z.string().describe("Path to the folder").nullable().optional(),
8
8
  connector_id: z.string().describe("Connector ID this folder belongs to").nullable().optional()
9
- }).describe("Schema for folder information in a local connector.");
9
+ }).passthrough().describe("Schema for folder information in a local connector.");
10
10
  const NeedleListLocalConnectors_LocalConnectorSchema = z.object({
11
- id: z.string().describe("Unique identifier of the local connector"),
11
+ id: z.string().describe("Unique identifier of the local connector").nullable(),
12
12
  os: z.string().describe("Operating system of the device").nullable().optional(),
13
13
  cpu: z.string().describe("CPU information of the device").nullable().optional(),
14
- name: z.string().describe("Name of the local connector"),
15
- type: z.string().describe("Type of connector"),
14
+ name: z.string().describe("Name of the local connector").nullable(),
15
+ type: z.string().describe("Type of connector").nullable(),
16
16
  folders: z.array(z.union([z.string(), NeedleListLocalConnectors_FolderInfoSchema])).describe("List of folders monitored by this connector").nullable().optional(),
17
17
  synced_at: z.string().describe("Last sync timestamp in ISO 8601 format").nullable().optional(),
18
18
  created_at: z.string().describe("Creation timestamp in ISO 8601 format").nullable().optional(),
@@ -20,13 +20,13 @@ const NeedleListLocalConnectors_LocalConnectorSchema = z.object({
20
20
  device_model: z.string().describe("Model of the device").nullable().optional(),
21
21
  serial_number: z.string().describe("Serial number of the device").nullable().optional(),
22
22
  collection_ids: z.array(z.string()).describe("List of collection IDs associated with this connector").nullable().optional()
23
- }).describe("Schema for a single local connector object returned by the API.");
23
+ }).passthrough().describe("Schema for a single local connector object returned by the API.");
24
24
  const needleListLocalConnectors = action("NEEDLE_LIST_LOCAL_CONNECTORS", {
25
25
  slug: "needle-list-local-connectors",
26
26
  name: "List Local Connectors",
27
27
  description: "Tool to list local connectors. Use to retrieve all local connectors configured in your Needle account.",
28
28
  input: NeedleListLocalConnectorsInput,
29
- output: z.object({ connectors: z.array(NeedleListLocalConnectors_LocalConnectorSchema).describe("List of local connector objects").nullable().optional() }).describe("Response model for listing local connectors.")
29
+ output: z.object({ connectors: z.array(NeedleListLocalConnectors_LocalConnectorSchema).describe("List of local connector objects").nullable().optional() }).passthrough().describe("Response model for listing local connectors.")
30
30
  });
31
31
  //#endregion
32
32
  export { needleListLocalConnectors };
@@ -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.ZodTypeAny = z.object({}).describe(\"Request model for listing local connectors. No parameters required.\");\nconst NeedleListLocalConnectors_FolderInfoSchema: z.ZodTypeAny = 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}).describe(\"Schema for folder information in a local connector.\");\nconst NeedleListLocalConnectors_LocalConnectorSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the local connector\"),\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\"),\n type: z.string().describe(\"Type of connector\"),\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}).describe(\"Schema for a single local connector object returned by the API.\");\nexport const NeedleListLocalConnectorsOutput: z.ZodTypeAny = z.object({\n connectors: z.array(NeedleListLocalConnectors_LocalConnectorSchema).describe(\"List of local connector objects\").nullable().optional(),\n}).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,iCAA+C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACvJ,MAAM,6CAA2D,EAAE,OAAO;CACxE,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,SAAS,qDAAqD;AACjE,MAAM,iDAA+D,EAAE,OAAO;CAC5E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAClE,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;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;CAC7C,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,SAAS,iEAAiE;AAK7E,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT2D,EAAE,OAAO,EACpE,YAAY,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACtI,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
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;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,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT6C,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,8CAOhB;AACV,CAAC"}
@@ -11,15 +11,15 @@ const NeedleSearchCollectionInput = zod.z.object({
11
11
  }).describe("Request parameters for searching within a Needle collection.");
12
12
  const NeedleSearchCollection_SearchResultSchema = zod.z.object({
13
13
  score: zod.z.number().describe("Relevance score or similarity distance for this result.").nullable().optional(),
14
- content: zod.z.string().describe("The text content of the relevant passage extracted from the document."),
14
+ content: zod.z.string().describe("The text content of the relevant passage extracted from the document.").nullable(),
15
15
  file_id: zod.z.string().describe("Identifier of the source file containing this result.").nullable().optional(),
16
16
  metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional metadata about the result (e.g., page number, chunk index).").nullable().optional(),
17
17
  file_name: zod.z.string().describe("Name of the source file.").nullable().optional()
18
- }).describe("A single search result from the collection.");
18
+ }).passthrough().describe("A single search result from the collection.");
19
19
  const NeedleSearchCollectionOutput = zod.z.object({
20
20
  total: zod.z.number().int().describe("Total number of results available (if provided by API).").nullable().optional(),
21
21
  results: zod.z.array(NeedleSearchCollection_SearchResultSchema).describe("Array of search results with content and source references.").nullable().optional()
22
- }).describe("Response schema for collection search results.");
22
+ }).passthrough().describe("Response schema for collection search results.");
23
23
  const needleSearchCollection = require_action.action("NEEDLE_SEARCH_COLLECTION", {
24
24
  slug: "needle-search-collection",
25
25
  name: "Search Collection",
@@ -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.ZodTypeAny = 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.ZodTypeAny = 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.\"),\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}).describe(\"A single search result from the collection.\");\nexport const NeedleSearchCollectionOutput: z.ZodTypeAny = 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}).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,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,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,4CAA0DA,IAAAA,EAAE,OAAO;CACvE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;CACpG,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,SAAS,6CAA6C;AACzD,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,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,SAAS,gDAAgD;AAE5D,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 { 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,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,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,32 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/search-collection.d.ts
4
- declare const NeedleSearchCollectionInput: z.ZodTypeAny;
5
- declare const NeedleSearchCollectionOutput: z.ZodTypeAny;
6
- declare const needleSearchCollection: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NeedleSearchCollectionInput: z.ZodObject<{
5
+ text: z.ZodString;
6
+ top_k: z.ZodOptional<z.ZodNumber>;
7
+ offset: z.ZodOptional<z.ZodNumber>;
8
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9
+ max_distance: z.ZodOptional<z.ZodString>;
10
+ collection_id: z.ZodString;
11
+ }, z.core.$strip>;
12
+ declare const NeedleSearchCollectionOutput: z.ZodObject<{
13
+ total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
14
+ results: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
15
+ score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
+ content: z.ZodNullable<z.ZodString>;
17
+ file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
19
+ file_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ }, z.core.$loose>>>>;
21
+ }, 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]>, readonly [import("@keystrokehq/shared").Credential]>;
7
30
  //#endregion
8
31
  export { needleSearchCollection };
9
32
  //# 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,EAA6B,CAAA,CAAE,UAO+B;AAAA,cAQ9D,4BAAA,EAA8B,CAAA,CAAE,UAGgB;AAAA,cAEhD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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;;;;;YAMjC,MAAA"}
@@ -1,9 +1,32 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/search-collection.d.ts
4
- declare const NeedleSearchCollectionInput: z.ZodTypeAny;
5
- declare const NeedleSearchCollectionOutput: z.ZodTypeAny;
6
- declare const needleSearchCollection: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NeedleSearchCollectionInput: z.ZodObject<{
5
+ text: z.ZodString;
6
+ top_k: z.ZodOptional<z.ZodNumber>;
7
+ offset: z.ZodOptional<z.ZodNumber>;
8
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9
+ max_distance: z.ZodOptional<z.ZodString>;
10
+ collection_id: z.ZodString;
11
+ }, z.core.$strip>;
12
+ declare const NeedleSearchCollectionOutput: z.ZodObject<{
13
+ total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
14
+ results: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
15
+ score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
+ content: z.ZodNullable<z.ZodString>;
17
+ file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
19
+ file_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ }, z.core.$loose>>>>;
21
+ }, 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]>, readonly [import("@keystrokehq/shared").Credential]>;
7
30
  //#endregion
8
31
  export { needleSearchCollection };
9
32
  //# 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,EAA6B,CAAA,CAAE,UAO+B;AAAA,cAQ9D,4BAAA,EAA8B,CAAA,CAAE,UAGgB;AAAA,cAEhD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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;;;;;YAMjC,MAAA"}
@@ -11,11 +11,11 @@ const NeedleSearchCollectionInput = z.object({
11
11
  }).describe("Request parameters for searching within a Needle collection.");
12
12
  const NeedleSearchCollection_SearchResultSchema = z.object({
13
13
  score: z.number().describe("Relevance score or similarity distance for this result.").nullable().optional(),
14
- content: z.string().describe("The text content of the relevant passage extracted from the document."),
14
+ content: z.string().describe("The text content of the relevant passage extracted from the document.").nullable(),
15
15
  file_id: z.string().describe("Identifier of the source file containing this result.").nullable().optional(),
16
16
  metadata: z.record(z.string(), z.unknown()).describe("Additional metadata about the result (e.g., page number, chunk index).").nullable().optional(),
17
17
  file_name: z.string().describe("Name of the source file.").nullable().optional()
18
- }).describe("A single search result from the collection.");
18
+ }).passthrough().describe("A single search result from the collection.");
19
19
  const needleSearchCollection = action("NEEDLE_SEARCH_COLLECTION", {
20
20
  slug: "needle-search-collection",
21
21
  name: "Search Collection",
@@ -24,7 +24,7 @@ const needleSearchCollection = action("NEEDLE_SEARCH_COLLECTION", {
24
24
  output: z.object({
25
25
  total: z.number().int().describe("Total number of results available (if provided by API).").nullable().optional(),
26
26
  results: z.array(NeedleSearchCollection_SearchResultSchema).describe("Array of search results with content and source references.").nullable().optional()
27
- }).describe("Response schema for collection search results.")
27
+ }).passthrough().describe("Response schema for collection search results.")
28
28
  });
29
29
  //#endregion
30
30
  export { needleSearchCollection };
@@ -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.ZodTypeAny = 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.ZodTypeAny = 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.\"),\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}).describe(\"A single search result from the collection.\");\nexport const NeedleSearchCollectionOutput: z.ZodTypeAny = 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}).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,8BAA4C,EAAE,OAAO;CAChE,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,4CAA0D,EAAE,OAAO;CACvE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;CACpG,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,SAAS,6CAA6C;AAMzD,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVwD,EAAE,OAAO;EACjE,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,SAAS,gDAOF;AACV,CAAC"}
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,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,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV0C,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,gDAOhB;AACV,CAAC"}
package/dist/catalog.cjs CHANGED
@@ -7,7 +7,13 @@ const needleCatalog = {
7
7
  "category": "Artificial Intelligence",
8
8
  "logo": "https://logos.composio.dev/api/needle",
9
9
  "authKind": "keystroke",
10
- "oauthScopes": []
10
+ "oauthScopes": [],
11
+ "credentialFields": { "api_key": {
12
+ "label": "Needle API Key",
13
+ "secret": true,
14
+ "description": "Your Needle API key, obtainable from the Needle settings page."
15
+ } },
16
+ "credentialScheme": "API_KEY"
11
17
  };
12
18
  //#endregion
13
19
  exports.needleCatalog = needleCatalog;
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const needleCatalog = {\n \"slug\": \"needle\",\n \"name\": \"Needle\",\n \"description\": \"Needle provides retrieval-augmented generation (RAG) tools that enable semantic search across your data, facilitating the development of AI agents and applications.\",\n \"category\": \"Artificial Intelligence\",\n \"logo\": \"https://logos.composio.dev/api/needle\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,gBAAgB;CAC3B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
1
+ {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const needleCatalog = {\n \"slug\": \"needle\",\n \"name\": \"Needle\",\n \"description\": \"Needle provides retrieval-augmented generation (RAG) tools that enable semantic search across your data, facilitating the development of AI agents and applications.\",\n \"category\": \"Artificial Intelligence\",\n \"logo\": \"https://logos.composio.dev/api/needle\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"Needle API Key\",\n \"secret\": true,\n \"description\": \"Your Needle API key, obtainable from the Needle settings page.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,gBAAgB;CAC3B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
@@ -8,6 +8,14 @@ declare const needleCatalog: {
8
8
  readonly logo: "https://logos.composio.dev/api/needle";
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
+ readonly credentialFields: {
12
+ readonly api_key: {
13
+ readonly label: "Needle API Key";
14
+ readonly secret: true;
15
+ readonly description: "Your Needle API key, obtainable from the Needle settings page.";
16
+ };
17
+ };
18
+ readonly credentialScheme: "API_KEY";
11
19
  };
12
20
  //#endregion
13
21
  export { needleCatalog };
@@ -8,6 +8,14 @@ declare const needleCatalog: {
8
8
  readonly logo: "https://logos.composio.dev/api/needle";
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
+ readonly credentialFields: {
12
+ readonly api_key: {
13
+ readonly label: "Needle API Key";
14
+ readonly secret: true;
15
+ readonly description: "Your Needle API key, obtainable from the Needle settings page.";
16
+ };
17
+ };
18
+ readonly credentialScheme: "API_KEY";
11
19
  };
12
20
  //#endregion
13
21
  export { needleCatalog };
package/dist/catalog.mjs CHANGED
@@ -7,7 +7,13 @@ const needleCatalog = {
7
7
  "category": "Artificial Intelligence",
8
8
  "logo": "https://logos.composio.dev/api/needle",
9
9
  "authKind": "keystroke",
10
- "oauthScopes": []
10
+ "oauthScopes": [],
11
+ "credentialFields": { "api_key": {
12
+ "label": "Needle API Key",
13
+ "secret": true,
14
+ "description": "Your Needle API key, obtainable from the Needle settings page."
15
+ } },
16
+ "credentialScheme": "API_KEY"
11
17
  };
12
18
  //#endregion
13
19
  export { needleCatalog };
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const needleCatalog = {\n \"slug\": \"needle\",\n \"name\": \"Needle\",\n \"description\": \"Needle provides retrieval-augmented generation (RAG) tools that enable semantic search across your data, facilitating the development of AI agents and applications.\",\n \"category\": \"Artificial Intelligence\",\n \"logo\": \"https://logos.composio.dev/api/needle\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,gBAAgB;CAC3B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
1
+ {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const needleCatalog = {\n \"slug\": \"needle\",\n \"name\": \"Needle\",\n \"description\": \"Needle provides retrieval-augmented generation (RAG) tools that enable semantic search across your data, facilitating the development of AI agents and applications.\",\n \"category\": \"Artificial Intelligence\",\n \"logo\": \"https://logos.composio.dev/api/needle\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"Needle API Key\",\n \"secret\": true,\n \"description\": \"Your Needle API key, obtainable from the Needle settings page.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,gBAAgB;CAC3B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/needle",
3
- "version": "0.1.0",
3
+ "version": "0.1.3",
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.4",
35
35
  "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {