@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,9 +1,31 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-local-connector.d.ts
4
- declare const NeedleGetLocalConnectorInput: z.ZodTypeAny;
5
- declare const NeedleGetLocalConnectorOutput: z.ZodTypeAny;
6
- declare const needleGetLocalConnector: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NeedleGetLocalConnectorInput: z.ZodObject<{
5
+ connector_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const NeedleGetLocalConnectorOutput: z.ZodObject<{
8
+ result: z.ZodNullable<z.ZodObject<{
9
+ id: z.ZodNullable<z.ZodString>;
10
+ os: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ cpu: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ name: z.ZodNullable<z.ZodString>;
13
+ type: z.ZodNullable<z.ZodString>;
14
+ folders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
15
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ }, z.core.$loose>>>>;
18
+ synced_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ device_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ device_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ serial_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ collection_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
24
+ }, z.core.$loose>>;
25
+ }, z.core.$loose>;
26
+ declare const needleGetLocalConnector: import("@keystrokehq/action").WorkflowActionDefinition<{
27
+ connector_id: string;
28
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
29
  //#endregion
8
30
  export { needleGetLocalConnector };
9
31
  //# sourceMappingURL=get-local-connector.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-local-connector.d.mts","names":[],"sources":["../../src/actions/get-local-connector.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAEmB;AAAA,cAmBnD,6BAAA,EAA+B,CAAA,CAAE,UAEe;AAAA,cAEhD,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-local-connector.d.mts","names":[],"sources":["../../src/actions/get-local-connector.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAqB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA"}
@@ -5,13 +5,13 @@ const NeedleGetLocalConnectorInput = z.object({ connector_id: z.string().describ
5
5
  const NeedleGetLocalConnector_FolderSchema = z.object({
6
6
  name: z.string().describe("Name of the folder").nullable().optional(),
7
7
  path: z.string().describe("File system path of the folder").nullable().optional()
8
- }).describe("A folder associated with the local connector.");
8
+ }).passthrough().describe("A folder associated with the local connector.");
9
9
  const NeedleGetLocalConnector_LocalConnectorSchema = z.object({
10
- id: z.string().describe("Unique identifier of the connector"),
10
+ id: z.string().describe("Unique identifier of the connector").nullable(),
11
11
  os: z.string().describe("Operating system of the device").nullable().optional(),
12
12
  cpu: z.string().describe("CPU information of the device").nullable().optional(),
13
- name: z.string().describe("Name of the connector"),
14
- type: z.string().describe("Type of connector (always 'local' for local connectors)"),
13
+ name: z.string().describe("Name of the connector").nullable(),
14
+ type: z.string().describe("Type of connector (always 'local' for local connectors)").nullable(),
15
15
  folders: z.array(NeedleGetLocalConnector_FolderSchema).describe("List of folders being monitored by the connector").nullable().optional(),
16
16
  synced_at: z.string().describe("Timestamp when the connector last synced (ISO 8601 format, may be null)").nullable().optional(),
17
17
  created_at: z.string().describe("Timestamp when the connector was created (ISO 8601 format)").nullable().optional(),
@@ -19,13 +19,13 @@ const NeedleGetLocalConnector_LocalConnectorSchema = z.object({
19
19
  device_model: z.string().describe("Model of the device").nullable().optional(),
20
20
  serial_number: z.string().describe("Serial number of the device").nullable().optional(),
21
21
  collection_ids: z.array(z.string()).describe("List of collection IDs associated with this connector").nullable().optional()
22
- }).describe("Local connector details.");
22
+ }).passthrough().describe("Local connector details.");
23
23
  const needleGetLocalConnector = action("NEEDLE_GET_LOCAL_CONNECTOR", {
24
24
  slug: "needle-get-local-connector",
25
25
  name: "Get local connector",
26
26
  description: "Tool to retrieve details of a local connector by its ID. Use when you need information about a specific local connector's configuration, device details, and associated folders.",
27
27
  input: NeedleGetLocalConnectorInput,
28
- output: z.object({ result: NeedleGetLocalConnector_LocalConnectorSchema.nullable() }).describe("Response schema for getting a local connector.")
28
+ output: z.object({ result: NeedleGetLocalConnector_LocalConnectorSchema.nullable() }).passthrough().describe("Response schema for getting a local connector.")
29
29
  });
30
30
  //#endregion
31
31
  export { needleGetLocalConnector };
@@ -1 +1 @@
1
- {"version":3,"file":"get-local-connector.mjs","names":[],"sources":["../../src/actions/get-local-connector.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleGetLocalConnectorInput: z.ZodTypeAny = z.object({\n connector_id: z.string().describe(\"The unique identifier of the local connector.\"),\n}).describe(\"Request parameters for getting a local connector.\");\nconst NeedleGetLocalConnector_FolderSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the folder\").nullable().optional(),\n path: z.string().describe(\"File system path of the folder\").nullable().optional(),\n}).describe(\"A folder associated with the local connector.\");\nconst NeedleGetLocalConnector_LocalConnectorSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the 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 connector\"),\n type: z.string().describe(\"Type of connector (always 'local' for local connectors)\"),\n folders: z.array(NeedleGetLocalConnector_FolderSchema).describe(\"List of folders being monitored by the connector\").nullable().optional(),\n synced_at: z.string().describe(\"Timestamp when the connector last synced (ISO 8601 format, may be null)\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the connector was created (ISO 8601 format)\").nullable().optional(),\n device_name: z.string().describe(\"Name of the device running the connector\").nullable().optional(),\n device_model: z.string().describe(\"Model of the device\").nullable().optional(),\n serial_number: z.string().describe(\"Serial number of the device\").nullable().optional(),\n collection_ids: z.array(z.string()).describe(\"List of collection IDs associated with this connector\").nullable().optional(),\n}).describe(\"Local connector details.\");\nexport const NeedleGetLocalConnectorOutput: z.ZodTypeAny = z.object({\n result: NeedleGetLocalConnector_LocalConnectorSchema.nullable(),\n}).describe(\"Response schema for getting a local connector.\");\n\nexport const needleGetLocalConnector = action(\"NEEDLE_GET_LOCAL_CONNECTOR\", {\n slug: \"needle-get-local-connector\",\n name: \"Get local connector\",\n description: \"Tool to retrieve details of a local connector by its ID. Use when you need information about a specific local connector's configuration, device details, and associated folders.\",\n input: NeedleGetLocalConnectorInput,\n output: NeedleGetLocalConnectorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO,EACjE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,EACnF,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,uCAAqD,EAAE,OAAO;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,+CAA6D,EAAE,OAAO;CAC1E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACnF,SAAS,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,SAAS,0BAA0B;AAKtC,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyD,EAAE,OAAO,EAClE,QAAQ,6CAA6C,SAAS,EAChE,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-local-connector.mjs","names":[],"sources":["../../src/actions/get-local-connector.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleGetLocalConnectorInput = z.object({\n connector_id: z.string().describe(\"The unique identifier of the local connector.\"),\n}).describe(\"Request parameters for getting a local connector.\");\nconst NeedleGetLocalConnector_FolderSchema = z.object({\n name: z.string().describe(\"Name of the folder\").nullable().optional(),\n path: z.string().describe(\"File system path of the folder\").nullable().optional(),\n}).passthrough().describe(\"A folder associated with the local connector.\");\nconst NeedleGetLocalConnector_LocalConnectorSchema = z.object({\n id: z.string().describe(\"Unique identifier of the connector\").nullable(),\n os: z.string().describe(\"Operating system of the device\").nullable().optional(),\n cpu: z.string().describe(\"CPU information of the device\").nullable().optional(),\n name: z.string().describe(\"Name of the connector\").nullable(),\n type: z.string().describe(\"Type of connector (always 'local' for local connectors)\").nullable(),\n folders: z.array(NeedleGetLocalConnector_FolderSchema).describe(\"List of folders being monitored by the connector\").nullable().optional(),\n synced_at: z.string().describe(\"Timestamp when the connector last synced (ISO 8601 format, may be null)\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the connector was created (ISO 8601 format)\").nullable().optional(),\n device_name: z.string().describe(\"Name of the device running the connector\").nullable().optional(),\n device_model: z.string().describe(\"Model of the device\").nullable().optional(),\n serial_number: z.string().describe(\"Serial number of the device\").nullable().optional(),\n collection_ids: z.array(z.string()).describe(\"List of collection IDs associated with this connector\").nullable().optional(),\n}).passthrough().describe(\"Local connector details.\");\nexport const NeedleGetLocalConnectorOutput = z.object({\n result: NeedleGetLocalConnector_LocalConnectorSchema.nullable(),\n}).passthrough().describe(\"Response schema for getting a local connector.\");\n\nexport const needleGetLocalConnector = action(\"NEEDLE_GET_LOCAL_CONNECTOR\", {\n slug: \"needle-get-local-connector\",\n name: \"Get local connector\",\n description: \"Tool to retrieve details of a local connector by its ID. Use when you need information about a specific local connector's configuration, device details, and associated folders.\",\n input: NeedleGetLocalConnectorInput,\n output: NeedleGetLocalConnectorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO,EACnD,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,EACnF,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,uCAAuC,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C,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0BAA0B;AAKpD,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT2C,EAAE,OAAO,EACpD,QAAQ,6CAA6C,SAAS,EAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
@@ -7,26 +7,26 @@ const NeedleListCollectionFilesInput = zod.z.object({
7
7
  collection_id: zod.z.string().describe("Unique identifier of the collection Multiple collections can share similar names; verify the correct collection_id before operating on returned files.")
8
8
  }).describe("Request model for listing files in a specific collection.");
9
9
  const NeedleListCollectionFiles_FileModelSchema = zod.z.object({
10
- id: zod.z.string().describe("Unique file identifier"),
10
+ id: zod.z.string().describe("Unique file identifier").nullable(),
11
11
  url: zod.z.string().describe("URL of the file").nullable().optional(),
12
- name: zod.z.string().describe("Name of the file"),
12
+ name: zod.z.string().describe("Name of the file").nullable(),
13
13
  size: zod.z.number().int().describe("Size of the file in bytes").nullable().optional(),
14
14
  type: zod.z.string().describe("MIME type of the file").nullable().optional(),
15
15
  error: zod.z.string().describe("Error message if file processing failed").nullable().optional(),
16
16
  labels: zod.z.array(zod.z.string()).describe("Labels associated with the file").nullable().optional(),
17
- status: zod.z.string().describe("Current status of the file"),
17
+ status: zod.z.string().describe("Current status of the file").nullable(),
18
18
  user_id: zod.z.string().describe("ID of the user who uploaded the file").nullable().optional(),
19
19
  md5_hash: zod.z.string().describe("MD5 hash of the file").nullable().optional(),
20
20
  connector: zod.z.unknown().describe("Connector details").nullable().optional(),
21
- created_at: zod.z.string().describe("Creation timestamp in ISO 8601 format"),
21
+ created_at: zod.z.string().describe("Creation timestamp in ISO 8601 format").nullable(),
22
22
  connector_id: zod.z.string().describe("ID of the connector used to upload the file").nullable().optional()
23
- }).describe("Schema for a single file object returned by the API.");
23
+ }).passthrough().describe("Schema for a single file object returned by the API.");
24
24
  const NeedleListCollectionFilesOutput = zod.z.object({
25
25
  files: zod.z.array(NeedleListCollectionFiles_FileModelSchema).describe("List of file objects"),
26
26
  limit: zod.z.number().int().describe("Page limit used (may not be returned by API)").nullable().optional(),
27
- total: zod.z.number().int().describe("Total count of files in the collection"),
27
+ total: zod.z.number().int().describe("Total count of files in the collection").nullable(),
28
28
  offset: zod.z.number().int().describe("Offset used (may not be returned by API)").nullable().optional()
29
- }).describe("Response model for listing files in a collection.");
29
+ }).passthrough().describe("Response model for listing files in a collection.");
30
30
  const needleListCollectionFiles = require_action.action("NEEDLE_LIST_COLLECTION_FILES", {
31
31
  slug: "needle-list-collection-files",
32
32
  name: "List Collection Files",
@@ -1 +1 @@
1
- {"version":3,"file":"list-collection-files.cjs","names":["z","action"],"sources":["../../src/actions/list-collection-files.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleListCollectionFilesInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Number of files to return per page, must be >=1\").optional(),\n offset: z.number().int().describe(\"Number of items to skip for pagination, must be >=0\").optional(),\n collection_id: z.string().describe(\"Unique identifier of the collection Multiple collections can share similar names; verify the correct collection_id before operating on returned files.\"),\n}).describe(\"Request model for listing files in a specific collection.\");\nconst NeedleListCollectionFiles_FileModelSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique file identifier\"),\n url: z.string().describe(\"URL of the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\"),\n size: z.number().int().describe(\"Size of the file in bytes\").nullable().optional(),\n type: z.string().describe(\"MIME type of the file\").nullable().optional(),\n error: z.string().describe(\"Error message if file processing failed\").nullable().optional(),\n labels: z.array(z.string()).describe(\"Labels associated with the file\").nullable().optional(),\n status: z.string().describe(\"Current status of the file\"),\n user_id: z.string().describe(\"ID of the user who uploaded the file\").nullable().optional(),\n md5_hash: z.string().describe(\"MD5 hash of the file\").nullable().optional(),\n connector: z.unknown().describe(\"Connector details\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format\"),\n connector_id: z.string().describe(\"ID of the connector used to upload the file\").nullable().optional(),\n}).describe(\"Schema for a single file object returned by the API.\");\nexport const NeedleListCollectionFilesOutput: z.ZodTypeAny = z.object({\n files: z.array(NeedleListCollectionFiles_FileModelSchema).describe(\"List of file objects\"),\n limit: z.number().int().describe(\"Page limit used (may not be returned by API)\").nullable().optional(),\n total: z.number().int().describe(\"Total count of files in the collection\"),\n offset: z.number().int().describe(\"Offset used (may not be returned by API)\").nullable().optional(),\n}).describe(\"Response model for listing files in a collection.\");\n\nexport const needleListCollectionFiles = action(\"NEEDLE_LIST_COLLECTION_FILES\", {\n slug: \"needle-list-collection-files\",\n name: \"List Collection Files\",\n description: \"Tool to list all files within a specific collection by its ID. Returns file metadata (including file URLs) only — not document text content; fetch file URLs separately to access content. Use when you have a collection ID and need to retrieve its files. Supports pagination.\",\n input: NeedleListCollectionFilesInput,\n output: NeedleListCollectionFilesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC7F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAClG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ;AAC7L,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,4CAA0DA,IAAAA,EAAE,OAAO;CACvE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAChD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,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,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;CACzE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-collection-files.cjs","names":["z","action"],"sources":["../../src/actions/list-collection-files.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleListCollectionFilesInput = z.object({\n limit: z.number().int().describe(\"Number of files to return per page, must be >=1\").optional(),\n offset: z.number().int().describe(\"Number of items to skip for pagination, must be >=0\").optional(),\n collection_id: z.string().describe(\"Unique identifier of the collection Multiple collections can share similar names; verify the correct collection_id before operating on returned files.\"),\n}).describe(\"Request model for listing files in a specific collection.\");\nconst NeedleListCollectionFiles_FileModelSchema = z.object({\n id: z.string().describe(\"Unique file identifier\").nullable(),\n url: z.string().describe(\"URL of the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable(),\n size: z.number().int().describe(\"Size of the file in bytes\").nullable().optional(),\n type: z.string().describe(\"MIME type of the file\").nullable().optional(),\n error: z.string().describe(\"Error message if file processing failed\").nullable().optional(),\n labels: z.array(z.string()).describe(\"Labels associated with the file\").nullable().optional(),\n status: z.string().describe(\"Current status of the file\").nullable(),\n user_id: z.string().describe(\"ID of the user who uploaded the file\").nullable().optional(),\n md5_hash: z.string().describe(\"MD5 hash of the file\").nullable().optional(),\n connector: z.unknown().describe(\"Connector details\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable(),\n connector_id: z.string().describe(\"ID of the connector used to upload the file\").nullable().optional(),\n}).passthrough().describe(\"Schema for a single file object returned by the API.\");\nexport const NeedleListCollectionFilesOutput = z.object({\n files: z.array(NeedleListCollectionFiles_FileModelSchema).describe(\"List of file objects\"),\n limit: z.number().int().describe(\"Page limit used (may not be returned by API)\").nullable().optional(),\n total: z.number().int().describe(\"Total count of files in the collection\").nullable(),\n offset: z.number().int().describe(\"Offset used (may not be returned by API)\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing files in a collection.\");\n\nexport const needleListCollectionFiles = action(\"NEEDLE_LIST_COLLECTION_FILES\", {\n slug: \"needle-list-collection-files\",\n name: \"List Collection Files\",\n description: \"Tool to list all files within a specific collection by its ID. Returns file metadata (including file URLs) only — not document text content; fetch file URLs separately to access content. Use when you have a collection ID and need to retrieve its files. Supports pagination.\",\n input: NeedleListCollectionFilesInput,\n output: NeedleListCollectionFilesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC7F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAClG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ;AAC7L,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC3D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAA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AAC,SAAS;CACpF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,36 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-collection-files.d.ts
4
- declare const NeedleListCollectionFilesInput: z.ZodTypeAny;
5
- declare const NeedleListCollectionFilesOutput: z.ZodTypeAny;
6
- declare const needleListCollectionFiles: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NeedleListCollectionFilesInput: z.ZodObject<{
5
+ limit: z.ZodOptional<z.ZodNumber>;
6
+ offset: z.ZodOptional<z.ZodNumber>;
7
+ collection_id: z.ZodString;
8
+ }, z.core.$strip>;
9
+ declare const NeedleListCollectionFilesOutput: z.ZodObject<{
10
+ files: z.ZodArray<z.ZodObject<{
11
+ id: z.ZodNullable<z.ZodString>;
12
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ name: z.ZodNullable<z.ZodString>;
14
+ size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
18
+ status: z.ZodNullable<z.ZodString>;
19
+ user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ md5_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ connector: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
22
+ created_at: z.ZodNullable<z.ZodString>;
23
+ connector_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ }, z.core.$loose>>;
25
+ limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
+ total: z.ZodNullable<z.ZodNumber>;
27
+ offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
+ }, z.core.$loose>;
29
+ declare const needleListCollectionFiles: import("@keystrokehq/action").WorkflowActionDefinition<{
30
+ collection_id: string;
31
+ limit?: number | undefined;
32
+ offset?: number | undefined;
33
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
34
  //#endregion
8
35
  export { needleListCollectionFiles };
9
36
  //# sourceMappingURL=list-collection-files.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-collection-files.d.cts","names":[],"sources":["../../src/actions/list-collection-files.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAIyB;AAAA,cAgB3D,+BAAA,EAAiC,CAAA,CAAE,UAKgB;AAAA,cAEnD,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-collection-files.d.cts","names":[],"sources":["../../src/actions/list-collection-files.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAoB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAO/B,yBAAA,gCAAyB,wBAAA"}
@@ -1,9 +1,36 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-collection-files.d.ts
4
- declare const NeedleListCollectionFilesInput: z.ZodTypeAny;
5
- declare const NeedleListCollectionFilesOutput: z.ZodTypeAny;
6
- declare const needleListCollectionFiles: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NeedleListCollectionFilesInput: z.ZodObject<{
5
+ limit: z.ZodOptional<z.ZodNumber>;
6
+ offset: z.ZodOptional<z.ZodNumber>;
7
+ collection_id: z.ZodString;
8
+ }, z.core.$strip>;
9
+ declare const NeedleListCollectionFilesOutput: z.ZodObject<{
10
+ files: z.ZodArray<z.ZodObject<{
11
+ id: z.ZodNullable<z.ZodString>;
12
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ name: z.ZodNullable<z.ZodString>;
14
+ size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
18
+ status: z.ZodNullable<z.ZodString>;
19
+ user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ md5_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ connector: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
22
+ created_at: z.ZodNullable<z.ZodString>;
23
+ connector_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ }, z.core.$loose>>;
25
+ limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
+ total: z.ZodNullable<z.ZodNumber>;
27
+ offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
+ }, z.core.$loose>;
29
+ declare const needleListCollectionFiles: import("@keystrokehq/action").WorkflowActionDefinition<{
30
+ collection_id: string;
31
+ limit?: number | undefined;
32
+ offset?: number | undefined;
33
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
34
  //#endregion
8
35
  export { needleListCollectionFiles };
9
36
  //# sourceMappingURL=list-collection-files.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-collection-files.d.mts","names":[],"sources":["../../src/actions/list-collection-files.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAIyB;AAAA,cAgB3D,+BAAA,EAAiC,CAAA,CAAE,UAKgB;AAAA,cAEnD,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-collection-files.d.mts","names":[],"sources":["../../src/actions/list-collection-files.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAoB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAO/B,yBAAA,gCAAyB,wBAAA"}
@@ -7,20 +7,20 @@ const NeedleListCollectionFilesInput = z.object({
7
7
  collection_id: z.string().describe("Unique identifier of the collection Multiple collections can share similar names; verify the correct collection_id before operating on returned files.")
8
8
  }).describe("Request model for listing files in a specific collection.");
9
9
  const NeedleListCollectionFiles_FileModelSchema = z.object({
10
- id: z.string().describe("Unique file identifier"),
10
+ id: z.string().describe("Unique file identifier").nullable(),
11
11
  url: z.string().describe("URL of the file").nullable().optional(),
12
- name: z.string().describe("Name of the file"),
12
+ name: z.string().describe("Name of the file").nullable(),
13
13
  size: z.number().int().describe("Size of the file in bytes").nullable().optional(),
14
14
  type: z.string().describe("MIME type of the file").nullable().optional(),
15
15
  error: z.string().describe("Error message if file processing failed").nullable().optional(),
16
16
  labels: z.array(z.string()).describe("Labels associated with the file").nullable().optional(),
17
- status: z.string().describe("Current status of the file"),
17
+ status: z.string().describe("Current status of the file").nullable(),
18
18
  user_id: z.string().describe("ID of the user who uploaded the file").nullable().optional(),
19
19
  md5_hash: z.string().describe("MD5 hash of the file").nullable().optional(),
20
20
  connector: z.unknown().describe("Connector details").nullable().optional(),
21
- created_at: z.string().describe("Creation timestamp in ISO 8601 format"),
21
+ created_at: z.string().describe("Creation timestamp in ISO 8601 format").nullable(),
22
22
  connector_id: z.string().describe("ID of the connector used to upload the file").nullable().optional()
23
- }).describe("Schema for a single file object returned by the API.");
23
+ }).passthrough().describe("Schema for a single file object returned by the API.");
24
24
  const needleListCollectionFiles = action("NEEDLE_LIST_COLLECTION_FILES", {
25
25
  slug: "needle-list-collection-files",
26
26
  name: "List Collection Files",
@@ -29,9 +29,9 @@ const needleListCollectionFiles = action("NEEDLE_LIST_COLLECTION_FILES", {
29
29
  output: z.object({
30
30
  files: z.array(NeedleListCollectionFiles_FileModelSchema).describe("List of file objects"),
31
31
  limit: z.number().int().describe("Page limit used (may not be returned by API)").nullable().optional(),
32
- total: z.number().int().describe("Total count of files in the collection"),
32
+ total: z.number().int().describe("Total count of files in the collection").nullable(),
33
33
  offset: z.number().int().describe("Offset used (may not be returned by API)").nullable().optional()
34
- }).describe("Response model for listing files in a collection.")
34
+ }).passthrough().describe("Response model for listing files in a collection.")
35
35
  });
36
36
  //#endregion
37
37
  export { needleListCollectionFiles };
@@ -1 +1 @@
1
- {"version":3,"file":"list-collection-files.mjs","names":[],"sources":["../../src/actions/list-collection-files.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleListCollectionFilesInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Number of files to return per page, must be >=1\").optional(),\n offset: z.number().int().describe(\"Number of items to skip for pagination, must be >=0\").optional(),\n collection_id: z.string().describe(\"Unique identifier of the collection Multiple collections can share similar names; verify the correct collection_id before operating on returned files.\"),\n}).describe(\"Request model for listing files in a specific collection.\");\nconst NeedleListCollectionFiles_FileModelSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique file identifier\"),\n url: z.string().describe(\"URL of the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\"),\n size: z.number().int().describe(\"Size of the file in bytes\").nullable().optional(),\n type: z.string().describe(\"MIME type of the file\").nullable().optional(),\n error: z.string().describe(\"Error message if file processing failed\").nullable().optional(),\n labels: z.array(z.string()).describe(\"Labels associated with the file\").nullable().optional(),\n status: z.string().describe(\"Current status of the file\"),\n user_id: z.string().describe(\"ID of the user who uploaded the file\").nullable().optional(),\n md5_hash: z.string().describe(\"MD5 hash of the file\").nullable().optional(),\n connector: z.unknown().describe(\"Connector details\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format\"),\n connector_id: z.string().describe(\"ID of the connector used to upload the file\").nullable().optional(),\n}).describe(\"Schema for a single file object returned by the API.\");\nexport const NeedleListCollectionFilesOutput: z.ZodTypeAny = z.object({\n files: z.array(NeedleListCollectionFiles_FileModelSchema).describe(\"List of file objects\"),\n limit: z.number().int().describe(\"Page limit used (may not be returned by API)\").nullable().optional(),\n total: z.number().int().describe(\"Total count of files in the collection\"),\n offset: z.number().int().describe(\"Offset used (may not be returned by API)\").nullable().optional(),\n}).describe(\"Response model for listing files in a collection.\");\n\nexport const needleListCollectionFiles = action(\"NEEDLE_LIST_COLLECTION_FILES\", {\n slug: \"needle-list-collection-files\",\n name: \"List Collection Files\",\n description: \"Tool to list all files within a specific collection by its ID. Returns file metadata (including file URLs) only — not document text content; fetch file URLs separately to access content. Use when you have a collection ID and need to retrieve its files. Supports pagination.\",\n input: NeedleListCollectionFilesInput,\n output: NeedleListCollectionFilesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+C,EAAE,OAAO;CACnE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC7F,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAClG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ;AAC7L,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,4CAA0D,EAAE,OAAO;CACvE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAChD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,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O,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;EACzE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-collection-files.mjs","names":[],"sources":["../../src/actions/list-collection-files.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleListCollectionFilesInput = z.object({\n limit: z.number().int().describe(\"Number of files to return per page, must be >=1\").optional(),\n offset: z.number().int().describe(\"Number of items to skip for pagination, must be >=0\").optional(),\n collection_id: z.string().describe(\"Unique identifier of the collection Multiple collections can share similar names; verify the correct collection_id before operating on returned files.\"),\n}).describe(\"Request model for listing files in a specific collection.\");\nconst NeedleListCollectionFiles_FileModelSchema = z.object({\n id: z.string().describe(\"Unique file identifier\").nullable(),\n url: z.string().describe(\"URL of the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable(),\n size: z.number().int().describe(\"Size of the file in bytes\").nullable().optional(),\n type: z.string().describe(\"MIME type of the file\").nullable().optional(),\n error: z.string().describe(\"Error message if file processing failed\").nullable().optional(),\n labels: z.array(z.string()).describe(\"Labels associated with the file\").nullable().optional(),\n status: z.string().describe(\"Current status of the file\").nullable(),\n user_id: z.string().describe(\"ID of the user who uploaded the file\").nullable().optional(),\n md5_hash: z.string().describe(\"MD5 hash of the file\").nullable().optional(),\n connector: z.unknown().describe(\"Connector details\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable(),\n connector_id: z.string().describe(\"ID of the connector used to upload the file\").nullable().optional(),\n}).passthrough().describe(\"Schema for a single file object returned by the API.\");\nexport const NeedleListCollectionFilesOutput = z.object({\n files: z.array(NeedleListCollectionFiles_FileModelSchema).describe(\"List of file objects\"),\n limit: z.number().int().describe(\"Page limit used (may not be returned by API)\").nullable().optional(),\n total: z.number().int().describe(\"Total count of files in the collection\").nullable(),\n offset: z.number().int().describe(\"Offset used (may not be returned by API)\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing files in a collection.\");\n\nexport const needleListCollectionFiles = action(\"NEEDLE_LIST_COLLECTION_FILES\", {\n slug: \"needle-list-collection-files\",\n name: \"List Collection Files\",\n description: \"Tool to list all files within a specific collection by its ID. Returns file metadata (including file URLs) only — not document text content; fetch file URLs separately to access content. Use when you have a collection ID and need to retrieve its files. Supports pagination.\",\n input: NeedleListCollectionFilesInput,\n output: NeedleListCollectionFilesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO;CACrD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC7F,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAClG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ;AAC7L,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,4CAA4C,EAAE,OAAO;CACzD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC3D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CA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
  offset: zod.z.number().int().describe("Number of collections to skip before collecting results (if supported by API)").optional()
7
7
  }).describe("Parameters for listing collections. Supports pagination if available.");
8
8
  const NeedleListCollections_CollectionSchema = zod.z.object({
9
- id: zod.z.string().describe("Collection unique identifier"),
10
- name: zod.z.string().describe("Collection name"),
9
+ id: zod.z.string().describe("Collection unique identifier").nullable(),
10
+ name: zod.z.string().describe("Collection name").nullable(),
11
11
  created_at: zod.z.string().describe("Collection creation timestamp in ISO 8601 format (may be absent)").nullable().optional(),
12
12
  updated_at: zod.z.string().describe("Collection last update timestamp in ISO 8601 format (may be absent)").nullable().optional(),
13
13
  description: zod.z.string().describe("Collection description (may be absent)").nullable().optional()
14
- }).describe("A collection resource.");
14
+ }).passthrough().describe("A collection resource.");
15
15
  const NeedleListCollections_APIErrorSchema = zod.z.object({
16
- code: zod.z.string().describe("Error code returned by the API"),
17
- message: zod.z.string().describe("Error message returned by the API")
18
- }).describe("Error details when an API call fails.");
16
+ code: zod.z.string().describe("Error code returned by the API").nullable(),
17
+ message: zod.z.string().describe("Error message returned by the API").nullable()
18
+ }).passthrough().describe("Error details when an API call fails.");
19
19
  const NeedleListCollections_PaginationSchema = zod.z.object({
20
20
  limit: zod.z.number().int().describe("Number of items returned per page").nullable().optional(),
21
21
  total: zod.z.number().int().describe("Total number of items available").nullable().optional(),
22
22
  offset: zod.z.number().int().describe("Number of items skipped before this page").nullable().optional()
23
- }).describe("Pagination details for a list response.");
23
+ }).passthrough().describe("Pagination details for a list response.");
24
24
  const NeedleListCollectionsOutput = zod.z.object({
25
25
  data: zod.z.array(NeedleListCollections_CollectionSchema).describe("List of collections returned by the API").nullable().optional(),
26
26
  error: NeedleListCollections_APIErrorSchema.nullable().optional(),
27
27
  pagination: NeedleListCollections_PaginationSchema.nullable().optional()
28
- }).describe("Response schema for listing collections.");
28
+ }).passthrough().describe("Response schema for listing collections.");
29
29
  const needleListCollections = require_action.action("NEEDLE_LIST_COLLECTIONS", {
30
30
  slug: "needle-list-collections",
31
31
  name: "List Collections",
@@ -1 +1 @@
1
- {"version":3,"file":"list-collections.cjs","names":["z","action"],"sources":["../../src/actions/list-collections.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleListCollectionsInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of collections to return (if supported by API)\").optional(),\n offset: z.number().int().describe(\"Number of collections to skip before collecting results (if supported by API)\").optional(),\n}).describe(\"Parameters for listing collections. Supports pagination if available.\");\nconst NeedleListCollections_CollectionSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Collection unique identifier\"),\n name: z.string().describe(\"Collection name\"),\n created_at: z.string().describe(\"Collection creation timestamp in ISO 8601 format (may be absent)\").nullable().optional(),\n updated_at: z.string().describe(\"Collection last update timestamp in ISO 8601 format (may be absent)\").nullable().optional(),\n description: z.string().describe(\"Collection description (may be absent)\").nullable().optional(),\n}).describe(\"A collection resource.\");\nconst NeedleListCollections_APIErrorSchema: z.ZodTypeAny = z.object({\n code: z.string().describe(\"Error code returned by the API\"),\n message: z.string().describe(\"Error message returned by the API\"),\n}).describe(\"Error details when an API call fails.\");\nconst NeedleListCollections_PaginationSchema: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Number of items returned per page\").nullable().optional(),\n total: z.number().int().describe(\"Total number of items available\").nullable().optional(),\n offset: z.number().int().describe(\"Number of items skipped before this page\").nullable().optional(),\n}).describe(\"Pagination details for a list response.\");\nexport const NeedleListCollectionsOutput: z.ZodTypeAny = z.object({\n data: z.array(NeedleListCollections_CollectionSchema).describe(\"List of collections returned by the API\").nullable().optional(),\n error: NeedleListCollections_APIErrorSchema.nullable().optional(),\n pagination: NeedleListCollections_PaginationSchema.nullable().optional(),\n}).describe(\"Response schema for listing collections.\");\n\nexport const needleListCollections = action(\"NEEDLE_LIST_COLLECTIONS\", {\n slug: \"needle-list-collections\",\n name: \"List Collections\",\n description: \"Tool to list collections. Use after authenticating with your API key to page through collections. Similar collection names can exist; always verify the correct `collection_id` from results before performing subsequent operations.\",\n input: NeedleListCollectionsInput,\n output: NeedleListCollectionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;AAC9H,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,yCAAuDA,IAAAA,EAAE,OAAO;CACpE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB;CAC3C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,wBAAwB;AACpC,MAAM,uCAAqDA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC1D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;AAClE,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,yCAAuDA,IAAAA,EAAE,OAAO;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,OAAO,qCAAqC,SAAS,CAAC,CAAC,SAAS;CAChE,YAAY,uCAAuC,SAAS,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAEtD,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-collections.cjs","names":["z","action"],"sources":["../../src/actions/list-collections.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleListCollectionsInput = z.object({\n limit: z.number().int().describe(\"Maximum number of collections to return (if supported by API)\").optional(),\n offset: z.number().int().describe(\"Number of collections to skip before collecting results (if supported by API)\").optional(),\n}).describe(\"Parameters for listing collections. Supports pagination if available.\");\nconst NeedleListCollections_CollectionSchema = z.object({\n id: z.string().describe(\"Collection unique identifier\").nullable(),\n name: z.string().describe(\"Collection name\").nullable(),\n created_at: z.string().describe(\"Collection creation timestamp in ISO 8601 format (may be absent)\").nullable().optional(),\n updated_at: z.string().describe(\"Collection last update timestamp in ISO 8601 format (may be absent)\").nullable().optional(),\n description: z.string().describe(\"Collection description (may be absent)\").nullable().optional(),\n}).passthrough().describe(\"A collection resource.\");\nconst NeedleListCollections_APIErrorSchema = z.object({\n code: z.string().describe(\"Error code returned by the API\").nullable(),\n message: z.string().describe(\"Error message returned by the API\").nullable(),\n}).passthrough().describe(\"Error details when an API call fails.\");\nconst NeedleListCollections_PaginationSchema = z.object({\n limit: z.number().int().describe(\"Number of items returned per page\").nullable().optional(),\n total: z.number().int().describe(\"Total number of items available\").nullable().optional(),\n offset: z.number().int().describe(\"Number of items skipped before this page\").nullable().optional(),\n}).passthrough().describe(\"Pagination details for a list response.\");\nexport const NeedleListCollectionsOutput = z.object({\n data: z.array(NeedleListCollections_CollectionSchema).describe(\"List of collections returned by the API\").nullable().optional(),\n error: NeedleListCollections_APIErrorSchema.nullable().optional(),\n pagination: NeedleListCollections_PaginationSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for listing collections.\");\n\nexport const needleListCollections = action(\"NEEDLE_LIST_COLLECTIONS\", {\n slug: \"needle-list-collections\",\n name: \"List Collections\",\n description: \"Tool to list collections. Use after authenticating with your API key to page through collections. Similar collection names can exist; always verify the correct `collection_id` from results before performing subsequent operations.\",\n input: NeedleListCollectionsInput,\n output: NeedleListCollectionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;AAC9H,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACtD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH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AAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,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/list-collections.d.ts
4
- declare const NeedleListCollectionsInput: z.ZodTypeAny;
5
- declare const NeedleListCollectionsOutput: z.ZodTypeAny;
6
- declare const needleListCollections: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NeedleListCollectionsInput: z.ZodObject<{
5
+ limit: z.ZodOptional<z.ZodNumber>;
6
+ offset: z.ZodOptional<z.ZodNumber>;
7
+ }, z.core.$strip>;
8
+ declare const NeedleListCollectionsOutput: z.ZodObject<{
9
+ data: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodString>;
11
+ name: z.ZodNullable<z.ZodString>;
12
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ }, z.core.$loose>>>>;
16
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
17
+ code: z.ZodNullable<z.ZodString>;
18
+ message: z.ZodNullable<z.ZodString>;
19
+ }, z.core.$loose>>>;
20
+ pagination: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21
+ limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
+ total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
+ offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
24
+ }, z.core.$loose>>>;
25
+ }, z.core.$loose>;
26
+ declare const needleListCollections: import("@keystrokehq/action").WorkflowActionDefinition<{
27
+ limit?: number | undefined;
28
+ offset?: number | undefined;
29
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
30
  //#endregion
8
31
  export { needleListCollections };
9
32
  //# sourceMappingURL=list-collections.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-collections.d.cts","names":[],"sources":["../../src/actions/list-collections.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAGyC;AAAA,cAiBvE,2BAAA,EAA6B,CAAA,CAAE,UAIW;AAAA,cAE1C,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-collections.d.cts","names":[],"sources":["../../src/actions/list-collections.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAoB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAM3B,qBAAA,gCAAqB,wBAAA"}
@@ -1,9 +1,32 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-collections.d.ts
4
- declare const NeedleListCollectionsInput: z.ZodTypeAny;
5
- declare const NeedleListCollectionsOutput: z.ZodTypeAny;
6
- declare const needleListCollections: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NeedleListCollectionsInput: z.ZodObject<{
5
+ limit: z.ZodOptional<z.ZodNumber>;
6
+ offset: z.ZodOptional<z.ZodNumber>;
7
+ }, z.core.$strip>;
8
+ declare const NeedleListCollectionsOutput: z.ZodObject<{
9
+ data: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodString>;
11
+ name: z.ZodNullable<z.ZodString>;
12
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ }, z.core.$loose>>>>;
16
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
17
+ code: z.ZodNullable<z.ZodString>;
18
+ message: z.ZodNullable<z.ZodString>;
19
+ }, z.core.$loose>>>;
20
+ pagination: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21
+ limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
+ total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
+ offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
24
+ }, z.core.$loose>>>;
25
+ }, z.core.$loose>;
26
+ declare const needleListCollections: import("@keystrokehq/action").WorkflowActionDefinition<{
27
+ limit?: number | undefined;
28
+ offset?: number | undefined;
29
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
30
  //#endregion
8
31
  export { needleListCollections };
9
32
  //# sourceMappingURL=list-collections.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-collections.d.mts","names":[],"sources":["../../src/actions/list-collections.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAGyC;AAAA,cAiBvE,2BAAA,EAA6B,CAAA,CAAE,UAIW;AAAA,cAE1C,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-collections.d.mts","names":[],"sources":["../../src/actions/list-collections.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAoB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAM3B,qBAAA,gCAAqB,wBAAA"}
@@ -6,21 +6,21 @@ const NeedleListCollectionsInput = z.object({
6
6
  offset: z.number().int().describe("Number of collections to skip before collecting results (if supported by API)").optional()
7
7
  }).describe("Parameters for listing collections. Supports pagination if available.");
8
8
  const NeedleListCollections_CollectionSchema = z.object({
9
- id: z.string().describe("Collection unique identifier"),
10
- name: z.string().describe("Collection name"),
9
+ id: z.string().describe("Collection unique identifier").nullable(),
10
+ name: z.string().describe("Collection name").nullable(),
11
11
  created_at: z.string().describe("Collection creation timestamp in ISO 8601 format (may be absent)").nullable().optional(),
12
12
  updated_at: z.string().describe("Collection last update timestamp in ISO 8601 format (may be absent)").nullable().optional(),
13
13
  description: z.string().describe("Collection description (may be absent)").nullable().optional()
14
- }).describe("A collection resource.");
14
+ }).passthrough().describe("A collection resource.");
15
15
  const NeedleListCollections_APIErrorSchema = z.object({
16
- code: z.string().describe("Error code returned by the API"),
17
- message: z.string().describe("Error message returned by the API")
18
- }).describe("Error details when an API call fails.");
16
+ code: z.string().describe("Error code returned by the API").nullable(),
17
+ message: z.string().describe("Error message returned by the API").nullable()
18
+ }).passthrough().describe("Error details when an API call fails.");
19
19
  const NeedleListCollections_PaginationSchema = z.object({
20
20
  limit: z.number().int().describe("Number of items returned per page").nullable().optional(),
21
21
  total: z.number().int().describe("Total number of items available").nullable().optional(),
22
22
  offset: z.number().int().describe("Number of items skipped before this page").nullable().optional()
23
- }).describe("Pagination details for a list response.");
23
+ }).passthrough().describe("Pagination details for a list response.");
24
24
  const needleListCollections = action("NEEDLE_LIST_COLLECTIONS", {
25
25
  slug: "needle-list-collections",
26
26
  name: "List Collections",
@@ -30,7 +30,7 @@ const needleListCollections = action("NEEDLE_LIST_COLLECTIONS", {
30
30
  data: z.array(NeedleListCollections_CollectionSchema).describe("List of collections returned by the API").nullable().optional(),
31
31
  error: NeedleListCollections_APIErrorSchema.nullable().optional(),
32
32
  pagination: NeedleListCollections_PaginationSchema.nullable().optional()
33
- }).describe("Response schema for listing collections.")
33
+ }).passthrough().describe("Response schema for listing collections.")
34
34
  });
35
35
  //#endregion
36
36
  export { needleListCollections };
@@ -1 +1 @@
1
- {"version":3,"file":"list-collections.mjs","names":[],"sources":["../../src/actions/list-collections.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleListCollectionsInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of collections to return (if supported by API)\").optional(),\n offset: z.number().int().describe(\"Number of collections to skip before collecting results (if supported by API)\").optional(),\n}).describe(\"Parameters for listing collections. Supports pagination if available.\");\nconst NeedleListCollections_CollectionSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Collection unique identifier\"),\n name: z.string().describe(\"Collection name\"),\n created_at: z.string().describe(\"Collection creation timestamp in ISO 8601 format (may be absent)\").nullable().optional(),\n updated_at: z.string().describe(\"Collection last update timestamp in ISO 8601 format (may be absent)\").nullable().optional(),\n description: z.string().describe(\"Collection description (may be absent)\").nullable().optional(),\n}).describe(\"A collection resource.\");\nconst NeedleListCollections_APIErrorSchema: z.ZodTypeAny = z.object({\n code: z.string().describe(\"Error code returned by the API\"),\n message: z.string().describe(\"Error message returned by the API\"),\n}).describe(\"Error details when an API call fails.\");\nconst NeedleListCollections_PaginationSchema: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Number of items returned per page\").nullable().optional(),\n total: z.number().int().describe(\"Total number of items available\").nullable().optional(),\n offset: z.number().int().describe(\"Number of items skipped before this page\").nullable().optional(),\n}).describe(\"Pagination details for a list response.\");\nexport const NeedleListCollectionsOutput: z.ZodTypeAny = z.object({\n data: z.array(NeedleListCollections_CollectionSchema).describe(\"List of collections returned by the API\").nullable().optional(),\n error: NeedleListCollections_APIErrorSchema.nullable().optional(),\n pagination: NeedleListCollections_PaginationSchema.nullable().optional(),\n}).describe(\"Response schema for listing collections.\");\n\nexport const needleListCollections = action(\"NEEDLE_LIST_COLLECTIONS\", {\n slug: \"needle-list-collections\",\n name: \"List Collections\",\n description: \"Tool to list collections. Use after authenticating with your API key to page through collections. Similar collection names can exist; always verify the correct `collection_id` from results before performing subsequent operations.\",\n input: NeedleListCollectionsInput,\n output: NeedleListCollectionsOutput,\n});\n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AC,CAAC,SAAS,yCAAyC;AAOrD,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXuD,EAAE,OAAO;EAChE,MAAM,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9H,OAAO,qCAAqC,SAAS,CAAC,CAAC,SAAS;EAChE,YAAY,uCAAuC,SAAS,CAAC,CAAC,SAAS;CACzE,CAAC,CAAC,CAAC,SAAS,0CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-collections.mjs","names":[],"sources":["../../src/actions/list-collections.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleListCollectionsInput = z.object({\n limit: z.number().int().describe(\"Maximum number of collections to return (if supported by API)\").optional(),\n offset: z.number().int().describe(\"Number of collections to skip before collecting results (if supported by API)\").optional(),\n}).describe(\"Parameters for listing collections. Supports pagination if available.\");\nconst NeedleListCollections_CollectionSchema = z.object({\n id: z.string().describe(\"Collection unique identifier\").nullable(),\n name: z.string().describe(\"Collection name\").nullable(),\n created_at: z.string().describe(\"Collection creation timestamp in ISO 8601 format (may be absent)\").nullable().optional(),\n updated_at: z.string().describe(\"Collection last update timestamp in ISO 8601 format (may be absent)\").nullable().optional(),\n description: z.string().describe(\"Collection description (may be absent)\").nullable().optional(),\n}).passthrough().describe(\"A collection resource.\");\nconst NeedleListCollections_APIErrorSchema = z.object({\n code: z.string().describe(\"Error code returned by the API\").nullable(),\n message: z.string().describe(\"Error message returned by the API\").nullable(),\n}).passthrough().describe(\"Error details when an API call fails.\");\nconst NeedleListCollections_PaginationSchema = z.object({\n limit: z.number().int().describe(\"Number of items returned per page\").nullable().optional(),\n total: z.number().int().describe(\"Total number of items available\").nullable().optional(),\n offset: z.number().int().describe(\"Number of items skipped before this page\").nullable().optional(),\n}).passthrough().describe(\"Pagination details for a list response.\");\nexport const NeedleListCollectionsOutput = z.object({\n data: z.array(NeedleListCollections_CollectionSchema).describe(\"List of collections returned by the API\").nullable().optional(),\n error: NeedleListCollections_APIErrorSchema.nullable().optional(),\n pagination: NeedleListCollections_PaginationSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for listing collections.\");\n\nexport const needleListCollections = action(\"NEEDLE_LIST_COLLECTIONS\", {\n slug: \"needle-list-collections\",\n name: \"List Collections\",\n description: \"Tool to list collections. Use after authenticating with your API key to page through collections. Similar collection names can exist; always verify the correct `collection_id` from results before performing subsequent operations.\",\n input: NeedleListCollectionsInput,\n output: NeedleListCollectionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3G,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;AAC9H,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,yCAAyC,EAAE,OAAO;CACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACtD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wBAAwB;AAClD,MAAM,uCAAuC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAM,yCAAyC,EAAE,OAAO;CACtD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAOnE,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXyC,EAAE,OAAO;EAClD,MAAM,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9H,OAAO,qCAAqC,SAAS,CAAC,CAAC,SAAS;EAChE,YAAY,uCAAuC,SAAS,CAAC,CAAC,SAAS;CACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAOhB;AACV,CAAC"}
@@ -3,16 +3,16 @@ let zod = require("zod");
3
3
  //#region src/actions/list-connectors.ts
4
4
  const NeedleListConnectorsInput = zod.z.object({}).describe("Parameters for listing connectors. No parameters required.");
5
5
  const NeedleListConnectors_ConnectorSchema = zod.z.object({
6
- id: zod.z.string().describe("Connector unique identifier"),
7
- name: zod.z.string().describe("Connector name"),
6
+ id: zod.z.string().describe("Connector unique identifier").nullable(),
7
+ name: zod.z.string().describe("Connector name").nullable(),
8
8
  type: zod.z.string().describe("Connector type").nullable().optional(),
9
9
  error: zod.z.string().describe("Error message if the connector failed").nullable().optional(),
10
10
  status: zod.z.string().describe("Connector status").nullable().optional(),
11
11
  cron_job: zod.z.string().describe("Cron job schedule for the connector").nullable().optional(),
12
12
  timezone: zod.z.string().describe("Timezone for the connector").nullable().optional(),
13
13
  created_at: zod.z.string().describe("Connector creation timestamp").nullable().optional()
14
- }).describe("A connector resource.");
15
- const NeedleListConnectorsOutput = zod.z.object({ result: zod.z.array(NeedleListConnectors_ConnectorSchema).describe("List of connectors returned by the API").nullable().optional() }).describe("Response schema for listing connectors.");
14
+ }).passthrough().describe("A connector resource.");
15
+ const NeedleListConnectorsOutput = zod.z.object({ result: zod.z.array(NeedleListConnectors_ConnectorSchema).describe("List of connectors returned by the API").nullable().optional() }).passthrough().describe("Response schema for listing connectors.");
16
16
  const needleListConnectors = require_action.action("NEEDLE_LIST_CONNECTORS", {
17
17
  slug: "needle-list-connectors",
18
18
  name: "List Connectors",
@@ -1 +1 @@
1
- {"version":3,"file":"list-connectors.cjs","names":["z","action"],"sources":["../../src/actions/list-connectors.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleListConnectorsInput: z.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,4BAA0CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACzI,MAAM,uCAAqDA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;CAC1C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,SAAS,uBAAuB;AACnC,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,QAAQA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC/H,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAErD,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-connectors.cjs","names":["z","action"],"sources":["../../src/actions/list-connectors.ts"],"sourcesContent":["import { 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,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4DAA4D;AAC3H,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uBAAuB;AACjD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,QAAQA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC/H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -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.cts.map