@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":"create-local-connector.cjs","names":["z","action"],"sources":["../../src/actions/create-local-connector.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleCreateLocalConnectorInput: z.ZodTypeAny = z.object({\n os: z.string().describe(\"Operating system of the device (e.g., macOS, Windows, Linux)\"),\n cpu: z.string().describe(\"CPU model/architecture of the device\"),\n name: z.string().describe(\"Name for the local connector. Should be descriptive of the device or purpose.\"),\n folders: z.array(z.object({\n recursive: z.boolean().describe(\"Whether to recursively scan subfolders within this folder\"),\n folder_path: z.string().describe(\"Full path to the folder on the local filesystem to monitor\"),\n}).describe(\"Configuration for a folder to be monitored by the local connector.\")).describe(\"List of folders to monitor for file indexing\"),\n device_name: z.string().describe(\"Name of the device running the connector\"),\n device_model: z.string().describe(\"Model identifier of the device\"),\n serial_number: z.string().describe(\"Serial number or unique identifier for the device\"),\n collection_ids: z.array(z.string()).describe(\"List of collection IDs to associate with this local connector. Files from the monitored folders will be indexed into these collections.\"),\n}).describe(\"Input parameters for creating a new local connector.\");\nconst NeedleCreateLocalConnector_LocalConnectorFolderResponseSchema: z.ZodTypeAny = z.object({\n recursive: z.boolean().describe(\"Whether subfolders are recursively scanned\"),\n folder_path: z.string().describe(\"Full path to the folder being monitored\"),\n}).describe(\"Folder configuration in the response.\");\nconst NeedleCreateLocalConnector_LocalConnectorResultSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the local connector\"),\n os: z.string().describe(\"Operating system of the device\"),\n cpu: z.string().describe(\"CPU model/architecture of the device\"),\n name: z.string().describe(\"Name of the local connector\"),\n type: z.string().describe(\"Type of connector (always 'local' for local connectors)\"),\n folders: z.array(NeedleCreateLocalConnector_LocalConnectorFolderResponseSchema).describe(\"List of folders being monitored\"),\n synced_at: z.string().describe(\"Timestamp when the connector was last synced (ISO 8601 format). Null if not yet synced.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the connector was created (ISO 8601 format)\"),\n device_name: z.string().describe(\"Name of the device\"),\n device_model: z.string().describe(\"Model identifier of the device\"),\n serial_number: z.string().describe(\"Serial number of the device\"),\n collection_ids: z.array(z.string()).describe(\"Collection IDs associated with this connector\"),\n}).describe(\"Details of the created local connector.\");\nexport const NeedleCreateLocalConnectorOutput: z.ZodTypeAny = z.object({\n result: NeedleCreateLocalConnector_LocalConnectorResultSchema.nullable(),\n}).describe(\"Response schema for the created local connector.\");\n\nexport const needleCreateLocalConnector = action(\"NEEDLE_CREATE_LOCAL_CONNECTOR\", {\n slug: \"needle-create-local-connector\",\n name: \"Create Local Connector\",\n description: \"Tool to create a local connector that monitors specified folders on a device. Use when setting up file indexing from a local machine into Needle collections.\",\n input: NeedleCreateLocalConnectorInput,\n output: NeedleCreateLocalConnectorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACtF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CACzG,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC1B,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2DAA2D;EAC3F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CAC/F,CAAC,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,CAAC,SAAS,8CAA8C;CACxI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAC3E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAClE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CACtF,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yIAAyI;AACxL,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,gEAA8EA,IAAAA,EAAE,OAAO;C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;AACV,CAAC"}
1
+ {"version":3,"file":"create-local-connector.cjs","names":["z","action"],"sources":["../../src/actions/create-local-connector.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleCreateLocalConnectorInput = z.object({\n os: z.string().describe(\"Operating system of the device (e.g., macOS, Windows, Linux)\"),\n cpu: z.string().describe(\"CPU model/architecture of the device\"),\n name: z.string().describe(\"Name for the local connector. Should be descriptive of the device or purpose.\"),\n folders: z.array(z.object({\n recursive: z.boolean().describe(\"Whether to recursively scan subfolders within this folder\"),\n folder_path: z.string().describe(\"Full path to the folder on the local filesystem to monitor\"),\n}).passthrough().describe(\"Configuration for a folder to be monitored by the local connector.\")).describe(\"List of folders to monitor for file indexing\"),\n device_name: z.string().describe(\"Name of the device running the connector\"),\n device_model: z.string().describe(\"Model identifier of the device\"),\n serial_number: z.string().describe(\"Serial number or unique identifier for the device\"),\n collection_ids: z.array(z.string()).describe(\"List of collection IDs to associate with this local connector. Files from the monitored folders will be indexed into these collections.\"),\n}).describe(\"Input parameters for creating a new local connector.\");\nconst NeedleCreateLocalConnector_LocalConnectorFolderResponseSchema = z.object({\n recursive: z.boolean().describe(\"Whether subfolders are recursively scanned\").nullable(),\n folder_path: z.string().describe(\"Full path to the folder being monitored\").nullable(),\n}).passthrough().describe(\"Folder configuration in the response.\");\nconst NeedleCreateLocalConnector_LocalConnectorResultSchema = z.object({\n id: z.string().describe(\"Unique identifier for the local connector\").nullable(),\n os: z.string().describe(\"Operating system of the device\").nullable(),\n cpu: z.string().describe(\"CPU model/architecture of the device\").nullable(),\n name: z.string().describe(\"Name of the local connector\").nullable(),\n type: z.string().describe(\"Type of connector (always 'local' for local connectors)\").nullable(),\n folders: z.array(NeedleCreateLocalConnector_LocalConnectorFolderResponseSchema).describe(\"List of folders being monitored\"),\n synced_at: z.string().describe(\"Timestamp when the connector was last synced (ISO 8601 format). Null if not yet synced.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the connector was created (ISO 8601 format)\").nullable(),\n device_name: z.string().describe(\"Name of the device\").nullable(),\n device_model: z.string().describe(\"Model identifier of the device\").nullable(),\n serial_number: z.string().describe(\"Serial number of the device\").nullable(),\n collection_ids: z.array(z.string()).describe(\"Collection IDs associated with this connector\"),\n}).passthrough().describe(\"Details of the created local connector.\");\nexport const NeedleCreateLocalConnectorOutput = z.object({\n result: NeedleCreateLocalConnector_LocalConnectorResultSchema.nullable(),\n}).passthrough().describe(\"Response schema for the created local connector.\");\n\nexport const needleCreateLocalConnector = action(\"NEEDLE_CREATE_LOCAL_CONNECTOR\", {\n slug: \"needle-create-local-connector\",\n name: \"Create Local Connector\",\n description: \"Tool to create a local connector that monitors specified folders on a device. Use when setting up file indexing from a local machine into Needle collections.\",\n input: NeedleCreateLocalConnectorInput,\n output: NeedleCreateLocalConnectorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACtF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CACzG,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC1B,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2DAA2D;EAC3F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,CAAC,SAAS,8CAA8C;CACtJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAC3E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAClE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CACtF,gBAAgBA,IAAAA,EAAE,MAAM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AAC,CAAC,SAAS;CAC3E,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AACnE,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,QAAQ,sDAAsD,SAAS,EACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,52 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-local-connector.d.ts
4
- declare const NeedleCreateLocalConnectorInput: z.ZodTypeAny;
5
- declare const NeedleCreateLocalConnectorOutput: z.ZodTypeAny;
6
- declare const needleCreateLocalConnector: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NeedleCreateLocalConnectorInput: z.ZodObject<{
5
+ os: z.ZodString;
6
+ cpu: z.ZodString;
7
+ name: z.ZodString;
8
+ folders: z.ZodArray<z.ZodObject<{
9
+ recursive: z.ZodBoolean;
10
+ folder_path: z.ZodString;
11
+ }, z.core.$loose>>;
12
+ device_name: z.ZodString;
13
+ device_model: z.ZodString;
14
+ serial_number: z.ZodString;
15
+ collection_ids: z.ZodArray<z.ZodString>;
16
+ }, z.core.$strip>;
17
+ declare const NeedleCreateLocalConnectorOutput: z.ZodObject<{
18
+ result: z.ZodNullable<z.ZodObject<{
19
+ id: z.ZodNullable<z.ZodString>;
20
+ os: z.ZodNullable<z.ZodString>;
21
+ cpu: z.ZodNullable<z.ZodString>;
22
+ name: z.ZodNullable<z.ZodString>;
23
+ type: z.ZodNullable<z.ZodString>;
24
+ folders: z.ZodArray<z.ZodObject<{
25
+ recursive: z.ZodNullable<z.ZodBoolean>;
26
+ folder_path: z.ZodNullable<z.ZodString>;
27
+ }, z.core.$loose>>;
28
+ synced_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ created_at: z.ZodNullable<z.ZodString>;
30
+ device_name: z.ZodNullable<z.ZodString>;
31
+ device_model: z.ZodNullable<z.ZodString>;
32
+ serial_number: z.ZodNullable<z.ZodString>;
33
+ collection_ids: z.ZodArray<z.ZodString>;
34
+ }, z.core.$loose>>;
35
+ }, z.core.$loose>;
36
+ declare const needleCreateLocalConnector: import("@keystrokehq/action").WorkflowActionDefinition<{
37
+ os: string;
38
+ cpu: string;
39
+ name: string;
40
+ folders: {
41
+ [x: string]: unknown;
42
+ recursive: boolean;
43
+ folder_path: string;
44
+ }[];
45
+ device_name: string;
46
+ device_model: string;
47
+ serial_number: string;
48
+ collection_ids: string[];
49
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
50
  //#endregion
8
51
  export { needleCreateLocalConnector };
9
52
  //# sourceMappingURL=create-local-connector.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-local-connector.d.cts","names":[],"sources":["../../src/actions/create-local-connector.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAYmB;AAAA,cAmBtD,gCAAA,EAAkC,CAAA,CAAE,UAEc;AAAA,cAElD,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-local-connector.d.cts","names":[],"sources":["../../src/actions/create-local-connector.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cA+B/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAIhC,0BAAA,gCAA0B,wBAAA"}
@@ -1,9 +1,52 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-local-connector.d.ts
4
- declare const NeedleCreateLocalConnectorInput: z.ZodTypeAny;
5
- declare const NeedleCreateLocalConnectorOutput: z.ZodTypeAny;
6
- declare const needleCreateLocalConnector: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NeedleCreateLocalConnectorInput: z.ZodObject<{
5
+ os: z.ZodString;
6
+ cpu: z.ZodString;
7
+ name: z.ZodString;
8
+ folders: z.ZodArray<z.ZodObject<{
9
+ recursive: z.ZodBoolean;
10
+ folder_path: z.ZodString;
11
+ }, z.core.$loose>>;
12
+ device_name: z.ZodString;
13
+ device_model: z.ZodString;
14
+ serial_number: z.ZodString;
15
+ collection_ids: z.ZodArray<z.ZodString>;
16
+ }, z.core.$strip>;
17
+ declare const NeedleCreateLocalConnectorOutput: z.ZodObject<{
18
+ result: z.ZodNullable<z.ZodObject<{
19
+ id: z.ZodNullable<z.ZodString>;
20
+ os: z.ZodNullable<z.ZodString>;
21
+ cpu: z.ZodNullable<z.ZodString>;
22
+ name: z.ZodNullable<z.ZodString>;
23
+ type: z.ZodNullable<z.ZodString>;
24
+ folders: z.ZodArray<z.ZodObject<{
25
+ recursive: z.ZodNullable<z.ZodBoolean>;
26
+ folder_path: z.ZodNullable<z.ZodString>;
27
+ }, z.core.$loose>>;
28
+ synced_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ created_at: z.ZodNullable<z.ZodString>;
30
+ device_name: z.ZodNullable<z.ZodString>;
31
+ device_model: z.ZodNullable<z.ZodString>;
32
+ serial_number: z.ZodNullable<z.ZodString>;
33
+ collection_ids: z.ZodArray<z.ZodString>;
34
+ }, z.core.$loose>>;
35
+ }, z.core.$loose>;
36
+ declare const needleCreateLocalConnector: import("@keystrokehq/action").WorkflowActionDefinition<{
37
+ os: string;
38
+ cpu: string;
39
+ name: string;
40
+ folders: {
41
+ [x: string]: unknown;
42
+ recursive: boolean;
43
+ folder_path: string;
44
+ }[];
45
+ device_name: string;
46
+ device_model: string;
47
+ serial_number: string;
48
+ collection_ids: string[];
49
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
50
  //#endregion
8
51
  export { needleCreateLocalConnector };
9
52
  //# sourceMappingURL=create-local-connector.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-local-connector.d.mts","names":[],"sources":["../../src/actions/create-local-connector.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAYmB;AAAA,cAmBtD,gCAAA,EAAkC,CAAA,CAAE,UAEc;AAAA,cAElD,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-local-connector.d.mts","names":[],"sources":["../../src/actions/create-local-connector.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cA+B/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAIhC,0BAAA,gCAA0B,wBAAA"}
@@ -8,36 +8,36 @@ const NeedleCreateLocalConnectorInput = z.object({
8
8
  folders: z.array(z.object({
9
9
  recursive: z.boolean().describe("Whether to recursively scan subfolders within this folder"),
10
10
  folder_path: z.string().describe("Full path to the folder on the local filesystem to monitor")
11
- }).describe("Configuration for a folder to be monitored by the local connector.")).describe("List of folders to monitor for file indexing"),
11
+ }).passthrough().describe("Configuration for a folder to be monitored by the local connector.")).describe("List of folders to monitor for file indexing"),
12
12
  device_name: z.string().describe("Name of the device running the connector"),
13
13
  device_model: z.string().describe("Model identifier of the device"),
14
14
  serial_number: z.string().describe("Serial number or unique identifier for the device"),
15
15
  collection_ids: z.array(z.string()).describe("List of collection IDs to associate with this local connector. Files from the monitored folders will be indexed into these collections.")
16
16
  }).describe("Input parameters for creating a new local connector.");
17
17
  const NeedleCreateLocalConnector_LocalConnectorFolderResponseSchema = z.object({
18
- recursive: z.boolean().describe("Whether subfolders are recursively scanned"),
19
- folder_path: z.string().describe("Full path to the folder being monitored")
20
- }).describe("Folder configuration in the response.");
18
+ recursive: z.boolean().describe("Whether subfolders are recursively scanned").nullable(),
19
+ folder_path: z.string().describe("Full path to the folder being monitored").nullable()
20
+ }).passthrough().describe("Folder configuration in the response.");
21
21
  const NeedleCreateLocalConnector_LocalConnectorResultSchema = z.object({
22
- id: z.string().describe("Unique identifier for the local connector"),
23
- os: z.string().describe("Operating system of the device"),
24
- cpu: z.string().describe("CPU model/architecture of the device"),
25
- name: z.string().describe("Name of the local connector"),
26
- type: z.string().describe("Type of connector (always 'local' for local connectors)"),
22
+ id: z.string().describe("Unique identifier for the local connector").nullable(),
23
+ os: z.string().describe("Operating system of the device").nullable(),
24
+ cpu: z.string().describe("CPU model/architecture of the device").nullable(),
25
+ name: z.string().describe("Name of the local connector").nullable(),
26
+ type: z.string().describe("Type of connector (always 'local' for local connectors)").nullable(),
27
27
  folders: z.array(NeedleCreateLocalConnector_LocalConnectorFolderResponseSchema).describe("List of folders being monitored"),
28
28
  synced_at: z.string().describe("Timestamp when the connector was last synced (ISO 8601 format). Null if not yet synced.").nullable().optional(),
29
- created_at: z.string().describe("Timestamp when the connector was created (ISO 8601 format)"),
30
- device_name: z.string().describe("Name of the device"),
31
- device_model: z.string().describe("Model identifier of the device"),
32
- serial_number: z.string().describe("Serial number of the device"),
29
+ created_at: z.string().describe("Timestamp when the connector was created (ISO 8601 format)").nullable(),
30
+ device_name: z.string().describe("Name of the device").nullable(),
31
+ device_model: z.string().describe("Model identifier of the device").nullable(),
32
+ serial_number: z.string().describe("Serial number of the device").nullable(),
33
33
  collection_ids: z.array(z.string()).describe("Collection IDs associated with this connector")
34
- }).describe("Details of the created local connector.");
34
+ }).passthrough().describe("Details of the created local connector.");
35
35
  const needleCreateLocalConnector = action("NEEDLE_CREATE_LOCAL_CONNECTOR", {
36
36
  slug: "needle-create-local-connector",
37
37
  name: "Create Local Connector",
38
38
  description: "Tool to create a local connector that monitors specified folders on a device. Use when setting up file indexing from a local machine into Needle collections.",
39
39
  input: NeedleCreateLocalConnectorInput,
40
- output: z.object({ result: NeedleCreateLocalConnector_LocalConnectorResultSchema.nullable() }).describe("Response schema for the created local connector.")
40
+ output: z.object({ result: NeedleCreateLocalConnector_LocalConnectorResultSchema.nullable() }).passthrough().describe("Response schema for the created local connector.")
41
41
  });
42
42
  //#endregion
43
43
  export { needleCreateLocalConnector };
@@ -1 +1 @@
1
- {"version":3,"file":"create-local-connector.mjs","names":[],"sources":["../../src/actions/create-local-connector.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleCreateLocalConnectorInput: z.ZodTypeAny = z.object({\n os: z.string().describe(\"Operating system of the device (e.g., macOS, Windows, Linux)\"),\n cpu: z.string().describe(\"CPU model/architecture of the device\"),\n name: z.string().describe(\"Name for the local connector. Should be descriptive of the device or purpose.\"),\n folders: z.array(z.object({\n recursive: z.boolean().describe(\"Whether to recursively scan subfolders within this folder\"),\n folder_path: z.string().describe(\"Full path to the folder on the local filesystem to monitor\"),\n}).describe(\"Configuration for a folder to be monitored by the local connector.\")).describe(\"List of folders to monitor for file indexing\"),\n device_name: z.string().describe(\"Name of the device running the connector\"),\n device_model: z.string().describe(\"Model identifier of the device\"),\n serial_number: z.string().describe(\"Serial number or unique identifier for the device\"),\n collection_ids: z.array(z.string()).describe(\"List of collection IDs to associate with this local connector. Files from the monitored folders will be indexed into these collections.\"),\n}).describe(\"Input parameters for creating a new local connector.\");\nconst NeedleCreateLocalConnector_LocalConnectorFolderResponseSchema: z.ZodTypeAny = z.object({\n recursive: z.boolean().describe(\"Whether subfolders are recursively scanned\"),\n folder_path: z.string().describe(\"Full path to the folder being monitored\"),\n}).describe(\"Folder configuration in the response.\");\nconst NeedleCreateLocalConnector_LocalConnectorResultSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the local connector\"),\n os: z.string().describe(\"Operating system of the device\"),\n cpu: z.string().describe(\"CPU model/architecture of the device\"),\n name: z.string().describe(\"Name of the local connector\"),\n type: z.string().describe(\"Type of connector (always 'local' for local connectors)\"),\n folders: z.array(NeedleCreateLocalConnector_LocalConnectorFolderResponseSchema).describe(\"List of folders being monitored\"),\n synced_at: z.string().describe(\"Timestamp when the connector was last synced (ISO 8601 format). Null if not yet synced.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the connector was created (ISO 8601 format)\"),\n device_name: z.string().describe(\"Name of the device\"),\n device_model: z.string().describe(\"Model identifier of the device\"),\n serial_number: z.string().describe(\"Serial number of the device\"),\n collection_ids: z.array(z.string()).describe(\"Collection IDs associated with this connector\"),\n}).describe(\"Details of the created local connector.\");\nexport const NeedleCreateLocalConnectorOutput: z.ZodTypeAny = z.object({\n result: NeedleCreateLocalConnector_LocalConnectorResultSchema.nullable(),\n}).describe(\"Response schema for the created local connector.\");\n\nexport const needleCreateLocalConnector = action(\"NEEDLE_CREATE_LOCAL_CONNECTOR\", {\n slug: \"needle-create-local-connector\",\n name: \"Create Local Connector\",\n description: \"Tool to create a local connector that monitors specified folders on a device. Use when setting up file indexing from a local machine into Needle collections.\",\n input: NeedleCreateLocalConnectorInput,\n output: NeedleCreateLocalConnectorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgD,EAAE,OAAO;CACpE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACtF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CACzG,SAAS,EAAE,MAAM,EAAE,OAAO;EAC1B,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,2DAA2D;EAC3F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CAC/F,CAA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C,SAAS,yCAAyC;AAKrD,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT4D,EAAE,OAAO,EACrE,QAAQ,sDAAsD,SAAS,EACzE,CAAC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-local-connector.mjs","names":[],"sources":["../../src/actions/create-local-connector.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleCreateLocalConnectorInput = z.object({\n os: z.string().describe(\"Operating system of the device (e.g., macOS, Windows, Linux)\"),\n cpu: z.string().describe(\"CPU model/architecture of the device\"),\n name: z.string().describe(\"Name for the local connector. Should be descriptive of the device or purpose.\"),\n folders: z.array(z.object({\n recursive: z.boolean().describe(\"Whether to recursively scan subfolders within this folder\"),\n folder_path: z.string().describe(\"Full path to the folder on the local filesystem to monitor\"),\n}).passthrough().describe(\"Configuration for a folder to be monitored by the local connector.\")).describe(\"List of folders to monitor for file indexing\"),\n device_name: z.string().describe(\"Name of the device running the connector\"),\n device_model: z.string().describe(\"Model identifier of the device\"),\n serial_number: z.string().describe(\"Serial number or unique identifier for the device\"),\n collection_ids: z.array(z.string()).describe(\"List of collection IDs to associate with this local connector. Files from the monitored folders will be indexed into these collections.\"),\n}).describe(\"Input parameters for creating a new local connector.\");\nconst NeedleCreateLocalConnector_LocalConnectorFolderResponseSchema = z.object({\n recursive: z.boolean().describe(\"Whether subfolders are recursively scanned\").nullable(),\n folder_path: z.string().describe(\"Full path to the folder being monitored\").nullable(),\n}).passthrough().describe(\"Folder configuration in the response.\");\nconst NeedleCreateLocalConnector_LocalConnectorResultSchema = z.object({\n id: z.string().describe(\"Unique identifier for the local connector\").nullable(),\n os: z.string().describe(\"Operating system of the device\").nullable(),\n cpu: z.string().describe(\"CPU model/architecture of the device\").nullable(),\n name: z.string().describe(\"Name of the local connector\").nullable(),\n type: z.string().describe(\"Type of connector (always 'local' for local connectors)\").nullable(),\n folders: z.array(NeedleCreateLocalConnector_LocalConnectorFolderResponseSchema).describe(\"List of folders being monitored\"),\n synced_at: z.string().describe(\"Timestamp when the connector was last synced (ISO 8601 format). Null if not yet synced.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the connector was created (ISO 8601 format)\").nullable(),\n device_name: z.string().describe(\"Name of the device\").nullable(),\n device_model: z.string().describe(\"Model identifier of the device\").nullable(),\n serial_number: z.string().describe(\"Serial number of the device\").nullable(),\n collection_ids: z.array(z.string()).describe(\"Collection IDs associated with this connector\"),\n}).passthrough().describe(\"Details of the created local connector.\");\nexport const NeedleCreateLocalConnectorOutput = z.object({\n result: NeedleCreateLocalConnector_LocalConnectorResultSchema.nullable(),\n}).passthrough().describe(\"Response schema for the created local connector.\");\n\nexport const needleCreateLocalConnector = action(\"NEEDLE_CREATE_LOCAL_CONNECTOR\", {\n slug: \"needle-create-local-connector\",\n name: \"Create Local Connector\",\n description: \"Tool to create a local connector that monitors specified folders on a device. Use when setting up file indexing from a local machine into Needle collections.\",\n input: NeedleCreateLocalConnectorInput,\n output: NeedleCreateLocalConnectorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACtF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CACzG,SAAS,EAAE,MAAM,EAAE,OAAO;EAC1B,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,2DAA2D;EAC3F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,CAAC,SAAS,8CAA8C;CACtJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAC3E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gCA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AO,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAKnE,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT8C,EAAE,OAAO,EACvD,QAAQ,sDAAsD,SAAS,EACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAOhB;AACV,CAAC"}
@@ -8,7 +8,7 @@ const NeedleDeleteFilesFromCollectionInput = zod.z.object({
8
8
  const NeedleDeleteFilesFromCollectionOutput = zod.z.object({
9
9
  failed_file_ids: zod.z.array(zod.z.string()).describe("The IDs of files that could not be deleted (if any)"),
10
10
  deleted_file_ids: zod.z.array(zod.z.string()).describe("The IDs of files successfully deleted from the collection")
11
- }).describe("Response schema after deleting files from a collection.");
11
+ }).passthrough().describe("Response schema after deleting files from a collection.");
12
12
  const needleDeleteFilesFromCollection = require_action.action("NEEDLE_DELETE_FILES_FROM_COLLECTION", {
13
13
  slug: "needle-delete-files-from-collection",
14
14
  name: "Delete files from a collection",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-files-from-collection.cjs","names":["z","action"],"sources":["../../src/actions/delete-files-from-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleDeleteFilesFromCollectionInput: z.ZodTypeAny = z.object({\n file_ids: z.array(z.string()).describe(\"List of file IDs to delete from the collection\"),\n collection_id: z.string().describe(\"The unique identifier of the collection from which to delete files\"),\n}).describe(\"Request schema for deleting files from a collection.\");\nexport const NeedleDeleteFilesFromCollectionOutput: z.ZodTypeAny = z.object({\n failed_file_ids: z.array(z.string()).describe(\"The IDs of files that could not be deleted (if any)\"),\n deleted_file_ids: z.array(z.string()).describe(\"The IDs of files successfully deleted from the collection\"),\n}).describe(\"Response schema after deleting files from a collection.\");\n\nexport const needleDeleteFilesFromCollection = action(\"NEEDLE_DELETE_FILES_FROM_COLLECTION\", {\n slug: \"needle-delete-files-from-collection\",\n name: \"Delete files from a collection\",\n description: \"Tool to delete files from a specific collection by providing file IDs. Use after confirming valid file IDs to remove from the collection.\",\n input: NeedleDeleteFilesFromCollectionInput,\n output: NeedleDeleteFilesFromCollectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAqDA,IAAAA,EAAE,OAAO;CACzE,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gDAAgD;CACvF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;AACzG,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,wCAAsDA,IAAAA,EAAE,OAAO;CAC1E,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD;CACnG,kBAAkBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAC5G,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAErE,MAAa,kCAAkCC,eAAAA,OAAO,uCAAuC;CAC3F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-files-from-collection.cjs","names":["z","action"],"sources":["../../src/actions/delete-files-from-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleDeleteFilesFromCollectionInput = z.object({\n file_ids: z.array(z.string()).describe(\"List of file IDs to delete from the collection\"),\n collection_id: z.string().describe(\"The unique identifier of the collection from which to delete files\"),\n}).describe(\"Request schema for deleting files from a collection.\");\nexport const NeedleDeleteFilesFromCollectionOutput = z.object({\n failed_file_ids: z.array(z.string()).describe(\"The IDs of files that could not be deleted (if any)\"),\n deleted_file_ids: z.array(z.string()).describe(\"The IDs of files successfully deleted from the collection\"),\n}).passthrough().describe(\"Response schema after deleting files from a collection.\");\n\nexport const needleDeleteFilesFromCollection = action(\"NEEDLE_DELETE_FILES_FROM_COLLECTION\", {\n slug: \"needle-delete-files-from-collection\",\n name: \"Delete files from a collection\",\n description: \"Tool to delete files from a specific collection by providing file IDs. Use after confirming valid file IDs to remove from the collection.\",\n input: NeedleDeleteFilesFromCollectionInput,\n output: NeedleDeleteFilesFromCollectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gDAAgD;CACvF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;AACzG,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD;CACnG,kBAAkBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAEnF,MAAa,kCAAkCC,eAAAA,OAAO,uCAAuC;CAC3F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,18 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-files-from-collection.d.ts
4
- declare const NeedleDeleteFilesFromCollectionInput: z.ZodTypeAny;
5
- declare const NeedleDeleteFilesFromCollectionOutput: z.ZodTypeAny;
6
- declare const needleDeleteFilesFromCollection: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NeedleDeleteFilesFromCollectionInput: z.ZodObject<{
5
+ file_ids: z.ZodArray<z.ZodString>;
6
+ collection_id: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const NeedleDeleteFilesFromCollectionOutput: z.ZodObject<{
9
+ failed_file_ids: z.ZodArray<z.ZodString>;
10
+ deleted_file_ids: z.ZodArray<z.ZodString>;
11
+ }, z.core.$loose>;
12
+ declare const needleDeleteFilesFromCollection: import("@keystrokehq/action").WorkflowActionDefinition<{
13
+ file_ids: string[];
14
+ collection_id: string;
15
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
16
  //#endregion
8
17
  export { needleDeleteFilesFromCollection };
9
18
  //# sourceMappingURL=delete-files-from-collection.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-files-from-collection.d.cts","names":[],"sources":["../../src/actions/delete-files-from-collection.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAGc;AAAA,cACtD,qCAAA,EAAuC,CAAA,CAAE,UAGgB;AAAA,cAEzD,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-files-from-collection.d.cts","names":[],"sources":["../../src/actions/delete-files-from-collection.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAIpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;cAKrC,+BAAA,gCAA+B,wBAAA"}
@@ -1,9 +1,18 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-files-from-collection.d.ts
4
- declare const NeedleDeleteFilesFromCollectionInput: z.ZodTypeAny;
5
- declare const NeedleDeleteFilesFromCollectionOutput: z.ZodTypeAny;
6
- declare const needleDeleteFilesFromCollection: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NeedleDeleteFilesFromCollectionInput: z.ZodObject<{
5
+ file_ids: z.ZodArray<z.ZodString>;
6
+ collection_id: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const NeedleDeleteFilesFromCollectionOutput: z.ZodObject<{
9
+ failed_file_ids: z.ZodArray<z.ZodString>;
10
+ deleted_file_ids: z.ZodArray<z.ZodString>;
11
+ }, z.core.$loose>;
12
+ declare const needleDeleteFilesFromCollection: import("@keystrokehq/action").WorkflowActionDefinition<{
13
+ file_ids: string[];
14
+ collection_id: string;
15
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
16
  //#endregion
8
17
  export { needleDeleteFilesFromCollection };
9
18
  //# sourceMappingURL=delete-files-from-collection.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-files-from-collection.d.mts","names":[],"sources":["../../src/actions/delete-files-from-collection.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAGc;AAAA,cACtD,qCAAA,EAAuC,CAAA,CAAE,UAGgB;AAAA,cAEzD,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-files-from-collection.d.mts","names":[],"sources":["../../src/actions/delete-files-from-collection.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAIpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;cAKrC,+BAAA,gCAA+B,wBAAA"}
@@ -11,7 +11,7 @@ const needleDeleteFilesFromCollection = action("NEEDLE_DELETE_FILES_FROM_COLLECT
11
11
  output: z.object({
12
12
  failed_file_ids: z.array(z.string()).describe("The IDs of files that could not be deleted (if any)"),
13
13
  deleted_file_ids: z.array(z.string()).describe("The IDs of files successfully deleted from the collection")
14
- }).describe("Response schema after deleting files from a collection.")
14
+ }).passthrough().describe("Response schema after deleting files from a collection.")
15
15
  });
16
16
  //#endregion
17
17
  export { needleDeleteFilesFromCollection };
@@ -1 +1 @@
1
- {"version":3,"file":"delete-files-from-collection.mjs","names":[],"sources":["../../src/actions/delete-files-from-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleDeleteFilesFromCollectionInput: z.ZodTypeAny = z.object({\n file_ids: z.array(z.string()).describe(\"List of file IDs to delete from the collection\"),\n collection_id: z.string().describe(\"The unique identifier of the collection from which to delete files\"),\n}).describe(\"Request schema for deleting files from a collection.\");\nexport const NeedleDeleteFilesFromCollectionOutput: z.ZodTypeAny = z.object({\n failed_file_ids: z.array(z.string()).describe(\"The IDs of files that could not be deleted (if any)\"),\n deleted_file_ids: z.array(z.string()).describe(\"The IDs of files successfully deleted from the collection\"),\n}).describe(\"Response schema after deleting files from a collection.\");\n\nexport const needleDeleteFilesFromCollection = action(\"NEEDLE_DELETE_FILES_FROM_COLLECTION\", {\n slug: \"needle-delete-files-from-collection\",\n name: \"Delete files from a collection\",\n description: \"Tool to delete files from a specific collection by providing file IDs. Use after confirming valid file IDs to remove from the collection.\",\n input: NeedleDeleteFilesFromCollectionInput,\n output: NeedleDeleteFilesFromCollectionOutput,\n});\n"],"mappings":";;AAaA,MAAa,kCAAkC,OAAO,uCAAuC;CAC3F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbgE,EAAE,OAAO;EACzE,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gDAAgD;EACvF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CACzG,CAAC,CAAC,CAAC,SAAS,sDAUH;CACP,QAViE,EAAE,OAAO;EAC1E,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD;EACnG,kBAAkB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2DAA2D;CAC5G,CAAC,CAAC,CAAC,SAAS,yDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"delete-files-from-collection.mjs","names":[],"sources":["../../src/actions/delete-files-from-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleDeleteFilesFromCollectionInput = z.object({\n file_ids: z.array(z.string()).describe(\"List of file IDs to delete from the collection\"),\n collection_id: z.string().describe(\"The unique identifier of the collection from which to delete files\"),\n}).describe(\"Request schema for deleting files from a collection.\");\nexport const NeedleDeleteFilesFromCollectionOutput = z.object({\n failed_file_ids: z.array(z.string()).describe(\"The IDs of files that could not be deleted (if any)\"),\n deleted_file_ids: z.array(z.string()).describe(\"The IDs of files successfully deleted from the collection\"),\n}).passthrough().describe(\"Response schema after deleting files from a collection.\");\n\nexport const needleDeleteFilesFromCollection = action(\"NEEDLE_DELETE_FILES_FROM_COLLECTION\", {\n slug: \"needle-delete-files-from-collection\",\n name: \"Delete files from a collection\",\n description: \"Tool to delete files from a specific collection by providing file IDs. Use after confirming valid file IDs to remove from the collection.\",\n input: NeedleDeleteFilesFromCollectionInput,\n output: NeedleDeleteFilesFromCollectionOutput,\n});\n"],"mappings":";;AAaA,MAAa,kCAAkC,OAAO,uCAAuC;CAC3F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbkD,EAAE,OAAO;EAC3D,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gDAAgD;EACvF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CACzG,CAAC,CAAC,CAAC,SAAS,sDAUH;CACP,QAVmD,EAAE,OAAO;EAC5D,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD;EACnG,kBAAkB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2DAA2D;CAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAOhB;AACV,CAAC"}
@@ -8,18 +8,18 @@ const NeedleDeleteFilesFromLocalConnectorInput = zod.z.object({
8
8
  connector_id: zod.z.string().describe("The unique identifier of the connector from which to delete files")
9
9
  }).describe("Request schema for deleting files from a local connector.");
10
10
  const NeedleDeleteFilesFromLocalConnector_DeletedFileModelSchema = zod.z.object({
11
- id: zod.z.string().describe("Unique file identifier"),
11
+ id: zod.z.string().describe("Unique file identifier").nullable(),
12
12
  url: zod.z.string().describe("URL of the file").nullable().optional(),
13
- name: zod.z.string().describe("Name of the file"),
13
+ name: zod.z.string().describe("Name of the file").nullable(),
14
14
  size: zod.z.number().int().describe("Size of the file in bytes").nullable().optional(),
15
15
  type: zod.z.string().describe("MIME type of the file").nullable().optional(),
16
16
  user_id: zod.z.string().describe("ID of the user who uploaded the file").nullable().optional(),
17
17
  md5_hash: zod.z.string().describe("MD5 hash of the file").nullable().optional(),
18
18
  created_at: zod.z.string().describe("Creation timestamp in ISO 8601 format").nullable().optional(),
19
19
  updated_at: zod.z.string().describe("Last update timestamp in ISO 8601 format").nullable().optional(),
20
- connector_id: zod.z.string().describe("ID of the connector")
21
- }).describe("Schema for a deleted file object returned by the API.");
22
- const NeedleDeleteFilesFromLocalConnectorOutput = zod.z.object({ result: zod.z.array(NeedleDeleteFilesFromLocalConnector_DeletedFileModelSchema).describe("List of files that were deleted").nullable().optional() }).describe("Response schema after deleting files from a local connector.");
20
+ connector_id: zod.z.string().describe("ID of the connector").nullable()
21
+ }).passthrough().describe("Schema for a deleted file object returned by the API.");
22
+ const NeedleDeleteFilesFromLocalConnectorOutput = zod.z.object({ result: zod.z.array(NeedleDeleteFilesFromLocalConnector_DeletedFileModelSchema).describe("List of files that were deleted").nullable().optional() }).passthrough().describe("Response schema after deleting files from a local connector.");
23
23
  const needleDeleteFilesFromLocalConnector = require_action.action("NEEDLE_DELETE_FILES_FROM_LOCAL_CONNECTOR", {
24
24
  slug: "needle-delete-files-from-local-connector",
25
25
  name: "Delete files from local connector",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-files-from-local-connector.cjs","names":["z","action"],"sources":["../../src/actions/delete-files-from-local-connector.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleDeleteFilesFromLocalConnectorInput: z.ZodTypeAny = z.object({\n by: z.enum([\"name\", \"file_ids\"]).describe(\"Method to identify files for deletion: 'name' to delete by filename, 'file_ids' to delete by file IDs\"),\n name: z.string().describe(\"Name of the file to delete. Required when 'by' is 'name'\").optional(),\n file_ids: z.array(z.string()).describe(\"List of file IDs to delete. Required when 'by' is 'file_ids'\").optional(),\n connector_id: z.string().describe(\"The unique identifier of the connector from which to delete files\"),\n}).describe(\"Request schema for deleting files from a local connector.\");\nconst NeedleDeleteFilesFromLocalConnector_DeletedFileModelSchema: z.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 user_id: z.string().describe(\"ID of the user who uploaded the file\").nullable().optional(),\n md5_hash: z.string().describe(\"MD5 hash of the file\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp in ISO 8601 format\").nullable().optional(),\n connector_id: z.string().describe(\"ID of the connector\"),\n}).describe(\"Schema for a deleted file object returned by the API.\");\nexport const NeedleDeleteFilesFromLocalConnectorOutput: z.ZodTypeAny = z.object({\n result: z.array(NeedleDeleteFilesFromLocalConnector_DeletedFileModelSchema).describe(\"List of files that were deleted\").nullable().optional(),\n}).describe(\"Response schema after deleting files from a local connector.\");\n\nexport const needleDeleteFilesFromLocalConnector = action(\"NEEDLE_DELETE_FILES_FROM_LOCAL_CONNECTOR\", {\n slug: \"needle-delete-files-from-local-connector\",\n name: \"Delete files from local connector\",\n description: \"Tool to delete files from a local connector by filename or file IDs. Use when you need to remove files from a connector's local storage.\",\n input: N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;CAC7F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;AACzD,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,4CAA0DA,IAAAA,EAAE,OAAO,EAC9E,QAAQA,IAAAA,EAAE,MAAM,0DAA0D,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC9I,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAE1E,MAAa,sCAAsCC,eAAAA,OAAO,4CAA4C;CACpG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-files-from-local-connector.cjs","names":["z","action"],"sources":["../../src/actions/delete-files-from-local-connector.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleDeleteFilesFromLocalConnectorInput = z.object({\n by: z.enum([\"name\", \"file_ids\"]).describe(\"Method to identify files for deletion: 'name' to delete by filename, 'file_ids' to delete by file IDs\"),\n name: z.string().describe(\"Name of the file to delete. Required when 'by' is 'name'\").optional(),\n file_ids: z.array(z.string()).describe(\"List of file IDs to delete. Required when 'by' is 'file_ids'\").optional(),\n connector_id: z.string().describe(\"The unique identifier of the connector from which to delete files\"),\n}).describe(\"Request schema for deleting files from a local connector.\");\nconst NeedleDeleteFilesFromLocalConnector_DeletedFileModelSchema = z.object({\n id: z.string().describe(\"Unique file identifier\").nullable(),\n url: z.string().describe(\"URL of the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable(),\n size: z.number().int().describe(\"Size of the file in bytes\").nullable().optional(),\n type: z.string().describe(\"MIME type of the file\").nullable().optional(),\n user_id: z.string().describe(\"ID of the user who uploaded the file\").nullable().optional(),\n md5_hash: z.string().describe(\"MD5 hash of the file\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp in ISO 8601 format\").nullable().optional(),\n connector_id: z.string().describe(\"ID of the connector\").nullable(),\n}).passthrough().describe(\"Schema for a deleted file object returned by the API.\");\nexport const NeedleDeleteFilesFromLocalConnectorOutput = z.object({\n result: z.array(NeedleDeleteFilesFromLocalConnector_DeletedFileModelSchema).describe(\"List of files that were deleted\").nullable().optional(),\n}).passthrough().describe(\"Response schema after deleting files from a local connector.\");\n\nexport const needleDeleteFilesFromLocalConnector = action(\"NEEDLE_DELETE_FILES_FROM_LOCAL_CONNECTOR\", {\n slug: \"needle-delete-files-from-local-connector\",\n name: \"Delete files from local connector\",\n description: \"Tool to delete files from a local connector by filename or file IDs. Use when you need to remove files from a connector's local storage.\",\n input: NeedleDeleteFilesFromLocalConnectorInput,\n output: NeedleDeleteFilesFromLocalConnectorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,KAAK,CAAC,QAAQ,UAAU,CAAC,CAAC,CAAC,SAAS,uGAAuG;CACjJ,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC/F,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAChH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;AACvG,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,6DAA6DA,IAAAA,EAAE,OAAO;CAC1E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC3D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,MAAMA,IA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- declare const NeedleDeleteFilesFromLocalConnectorOutput: z.ZodTypeAny;
6
- declare const needleDeleteFilesFromLocalConnector: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NeedleDeleteFilesFromLocalConnectorInput: z.ZodObject<{
5
+ by: z.ZodEnum<{
6
+ name: "name";
7
+ file_ids: "file_ids";
8
+ }>;
9
+ name: z.ZodOptional<z.ZodString>;
10
+ file_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
11
+ connector_id: z.ZodString;
12
+ }, z.core.$strip>;
13
+ declare const NeedleDeleteFilesFromLocalConnectorOutput: z.ZodObject<{
14
+ result: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
15
+ id: z.ZodNullable<z.ZodString>;
16
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ name: z.ZodNullable<z.ZodString>;
18
+ size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ md5_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ connector_id: z.ZodNullable<z.ZodString>;
25
+ }, z.core.$loose>>>>;
26
+ }, z.core.$loose>;
27
+ declare const needleDeleteFilesFromLocalConnector: import("@keystrokehq/action").WorkflowActionDefinition<{
28
+ by: "name" | "file_ids";
29
+ connector_id: string;
30
+ name?: string | undefined;
31
+ file_ids?: string[] | undefined;
32
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
33
  //#endregion
8
34
  export { needleDeleteFilesFromLocalConnector };
9
35
  //# sourceMappingURL=delete-files-from-local-connector.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-files-from-local-connector.d.cts","names":[],"sources":["../../src/actions/delete-files-from-local-connector.ts"],"mappings":";;;cAIa,wCAAA,EAA0C,CAAA,CAAE,UAKe;AAAA,cAa3D,yCAAA,EAA2C,CAAA,CAAE,UAEiB;AAAA,cAE9D,mCAAA,gCAAmC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-files-from-local-connector.d.cts","names":[],"sources":["../../src/actions/delete-files-from-local-connector.ts"],"mappings":";;;cAIa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;cAkBxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAIzC,mCAAA,gCAAmC,wBAAA"}
@@ -1,9 +1,35 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-files-from-local-connector.d.ts
4
- declare const NeedleDeleteFilesFromLocalConnectorInput: z.ZodTypeAny;
5
- declare const NeedleDeleteFilesFromLocalConnectorOutput: z.ZodTypeAny;
6
- declare const needleDeleteFilesFromLocalConnector: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NeedleDeleteFilesFromLocalConnectorInput: z.ZodObject<{
5
+ by: z.ZodEnum<{
6
+ name: "name";
7
+ file_ids: "file_ids";
8
+ }>;
9
+ name: z.ZodOptional<z.ZodString>;
10
+ file_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
11
+ connector_id: z.ZodString;
12
+ }, z.core.$strip>;
13
+ declare const NeedleDeleteFilesFromLocalConnectorOutput: z.ZodObject<{
14
+ result: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
15
+ id: z.ZodNullable<z.ZodString>;
16
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ name: z.ZodNullable<z.ZodString>;
18
+ size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ md5_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ connector_id: z.ZodNullable<z.ZodString>;
25
+ }, z.core.$loose>>>>;
26
+ }, z.core.$loose>;
27
+ declare const needleDeleteFilesFromLocalConnector: import("@keystrokehq/action").WorkflowActionDefinition<{
28
+ by: "name" | "file_ids";
29
+ connector_id: string;
30
+ name?: string | undefined;
31
+ file_ids?: string[] | undefined;
32
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
33
  //#endregion
8
34
  export { needleDeleteFilesFromLocalConnector };
9
35
  //# sourceMappingURL=delete-files-from-local-connector.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-files-from-local-connector.d.mts","names":[],"sources":["../../src/actions/delete-files-from-local-connector.ts"],"mappings":";;;cAIa,wCAAA,EAA0C,CAAA,CAAE,UAKe;AAAA,cAa3D,yCAAA,EAA2C,CAAA,CAAE,UAEiB;AAAA,cAE9D,mCAAA,gCAAmC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-files-from-local-connector.d.mts","names":[],"sources":["../../src/actions/delete-files-from-local-connector.ts"],"mappings":";;;cAIa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;cAkBxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAIzC,mCAAA,gCAAmC,wBAAA"}
@@ -8,23 +8,23 @@ const NeedleDeleteFilesFromLocalConnectorInput = z.object({
8
8
  connector_id: z.string().describe("The unique identifier of the connector from which to delete files")
9
9
  }).describe("Request schema for deleting files from a local connector.");
10
10
  const NeedleDeleteFilesFromLocalConnector_DeletedFileModelSchema = z.object({
11
- id: z.string().describe("Unique file identifier"),
11
+ id: z.string().describe("Unique file identifier").nullable(),
12
12
  url: z.string().describe("URL of the file").nullable().optional(),
13
- name: z.string().describe("Name of the file"),
13
+ name: z.string().describe("Name of the file").nullable(),
14
14
  size: z.number().int().describe("Size of the file in bytes").nullable().optional(),
15
15
  type: z.string().describe("MIME type of the file").nullable().optional(),
16
16
  user_id: z.string().describe("ID of the user who uploaded the file").nullable().optional(),
17
17
  md5_hash: z.string().describe("MD5 hash of the file").nullable().optional(),
18
18
  created_at: z.string().describe("Creation timestamp in ISO 8601 format").nullable().optional(),
19
19
  updated_at: z.string().describe("Last update timestamp in ISO 8601 format").nullable().optional(),
20
- connector_id: z.string().describe("ID of the connector")
21
- }).describe("Schema for a deleted file object returned by the API.");
20
+ connector_id: z.string().describe("ID of the connector").nullable()
21
+ }).passthrough().describe("Schema for a deleted file object returned by the API.");
22
22
  const needleDeleteFilesFromLocalConnector = action("NEEDLE_DELETE_FILES_FROM_LOCAL_CONNECTOR", {
23
23
  slug: "needle-delete-files-from-local-connector",
24
24
  name: "Delete files from local connector",
25
25
  description: "Tool to delete files from a local connector by filename or file IDs. Use when you need to remove files from a connector's local storage.",
26
26
  input: NeedleDeleteFilesFromLocalConnectorInput,
27
- output: z.object({ result: z.array(NeedleDeleteFilesFromLocalConnector_DeletedFileModelSchema).describe("List of files that were deleted").nullable().optional() }).describe("Response schema after deleting files from a local connector.")
27
+ output: z.object({ result: z.array(NeedleDeleteFilesFromLocalConnector_DeletedFileModelSchema).describe("List of files that were deleted").nullable().optional() }).passthrough().describe("Response schema after deleting files from a local connector.")
28
28
  });
29
29
  //#endregion
30
30
  export { needleDeleteFilesFromLocalConnector };
@@ -1 +1 @@
1
- {"version":3,"file":"delete-files-from-local-connector.mjs","names":[],"sources":["../../src/actions/delete-files-from-local-connector.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleDeleteFilesFromLocalConnectorInput: z.ZodTypeAny = z.object({\n by: z.enum([\"name\", \"file_ids\"]).describe(\"Method to identify files for deletion: 'name' to delete by filename, 'file_ids' to delete by file IDs\"),\n name: z.string().describe(\"Name of the file to delete. Required when 'by' is 'name'\").optional(),\n file_ids: z.array(z.string()).describe(\"List of file IDs to delete. Required when 'by' is 'file_ids'\").optional(),\n connector_id: z.string().describe(\"The unique identifier of the connector from which to delete files\"),\n}).describe(\"Request schema for deleting files from a local connector.\");\nconst NeedleDeleteFilesFromLocalConnector_DeletedFileModelSchema: z.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 user_id: z.string().describe(\"ID of the user who uploaded the file\").nullable().optional(),\n md5_hash: z.string().describe(\"MD5 hash of the file\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp in ISO 8601 format\").nullable().optional(),\n connector_id: z.string().describe(\"ID of the connector\"),\n}).describe(\"Schema for a deleted file object returned by the API.\");\nexport const NeedleDeleteFilesFromLocalConnectorOutput: z.ZodTypeAny = z.object({\n result: z.array(NeedleDeleteFilesFromLocalConnector_DeletedFileModelSchema).describe(\"List of files that were deleted\").nullable().optional(),\n}).describe(\"Response schema after deleting files from a local connector.\");\n\nexport const needleDeleteFilesFromLocalConnector = action(\"NEEDLE_DELETE_FILES_FROM_LOCAL_CONNECTOR\", {\n slug: \"needle-delete-files-from-local-connector\",\n name: \"Delete files from local connector\",\n description: \"Tool to delete files from a local connector by filename or file IDs. Use when you need to remove files from a connector's local storage.\",\n input: Needle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S,qBAAqB;AACzD,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAKnE,MAAa,sCAAsC,OAAO,4CAA4C;CACpG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATqE,EAAE,OAAO,EAC9E,QAAQ,EAAE,MAAM,0DAA0D,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC9I,CAAC,CAAC,CAAC,SAAS,8DAOF;AACV,CAAC"}
1
+ {"version":3,"file":"delete-files-from-local-connector.mjs","names":[],"sources":["../../src/actions/delete-files-from-local-connector.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleDeleteFilesFromLocalConnectorInput = z.object({\n by: z.enum([\"name\", \"file_ids\"]).describe(\"Method to identify files for deletion: 'name' to delete by filename, 'file_ids' to delete by file IDs\"),\n name: z.string().describe(\"Name of the file to delete. Required when 'by' is 'name'\").optional(),\n file_ids: z.array(z.string()).describe(\"List of file IDs to delete. Required when 'by' is 'file_ids'\").optional(),\n connector_id: z.string().describe(\"The unique identifier of the connector from which to delete files\"),\n}).describe(\"Request schema for deleting files from a local connector.\");\nconst NeedleDeleteFilesFromLocalConnector_DeletedFileModelSchema = z.object({\n id: z.string().describe(\"Unique file identifier\").nullable(),\n url: z.string().describe(\"URL of the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable(),\n size: z.number().int().describe(\"Size of the file in bytes\").nullable().optional(),\n type: z.string().describe(\"MIME type of the file\").nullable().optional(),\n user_id: z.string().describe(\"ID of the user who uploaded the file\").nullable().optional(),\n md5_hash: z.string().describe(\"MD5 hash of the file\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp in ISO 8601 format\").nullable().optional(),\n connector_id: z.string().describe(\"ID of the connector\").nullable(),\n}).passthrough().describe(\"Schema for a deleted file object returned by the API.\");\nexport const NeedleDeleteFilesFromLocalConnectorOutput = z.object({\n result: z.array(NeedleDeleteFilesFromLocalConnector_DeletedFileModelSchema).describe(\"List of files that were deleted\").nullable().optional(),\n}).passthrough().describe(\"Response schema after deleting files from a local connector.\");\n\nexport const needleDeleteFilesFromLocalConnector = action(\"NEEDLE_DELETE_FILES_FROM_LOCAL_CONNECTOR\", {\n slug: \"needle-delete-files-from-local-connector\",\n name: \"Delete files from local connector\",\n description: \"Tool to delete files from a local connector by filename or file IDs. Use when you need to remove files from a connector's local storage.\",\n input: NeedleDeleteFilesFromLocalConnectorInput,\n output: NeedleDeleteFilesFromLocalConnectorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAA2C,EAAE,OAAO;CAC/D,IAAI,EAAE,KAAK,CAAC,QAAQ,UAAU,CAAC,CAAC,CAAC,SAAS,uGAAuG;CACjJ,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC/F,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAChH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;AACvG,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,6DAA6D,EAAE,OAAO;CAC1E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC3D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAKjF,MAAa,sCAAsC,OAAO,4CAA4C;CACpG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuD,EAAE,OAAO,EAChE,QAAQ,EAAE,MAAM,0DAA0D,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC9I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAOhB;AACV,CAAC"}
@@ -4,15 +4,15 @@ let zod = require("zod");
4
4
  const NeedleGetCollectionStatsInput = zod.z.object({ collection_id: zod.z.string().describe("The unique identifier of the collection. Verify the exact ID when collections have similar names to avoid retrieving stats for the wrong collection.") }).describe("Request parameters for GET_COLLECTION_STATS.");
5
5
  const NeedleGetCollectionStats_DataStatSchema = zod.z.object({
6
6
  bytes: zod.z.number().int().describe("Total bytes for files with this status (may be null for error status)").nullable().optional(),
7
- files: zod.z.number().int().describe("Number of files with this status"),
8
- status: zod.z.string().describe("Status of the files (e.g., 'indexed', 'error')")
9
- }).describe("Data statistics for a specific status category.");
7
+ files: zod.z.number().int().describe("Number of files with this status").nullable(),
8
+ status: zod.z.string().describe("Status of the files (e.g., 'indexed', 'error')").nullable()
9
+ }).passthrough().describe("Data statistics for a specific status category.");
10
10
  const NeedleGetCollectionStatsOutput = zod.z.object({
11
- users: zod.z.number().int().describe("Number of users associated with the collection"),
12
- characters: zod.z.number().int().describe("Total number of characters in the collection"),
11
+ users: zod.z.number().int().describe("Number of users associated with the collection").nullable(),
12
+ characters: zod.z.number().int().describe("Total number of characters in the collection").nullable(),
13
13
  data_stats: zod.z.array(NeedleGetCollectionStats_DataStatSchema).describe("List of data statistics grouped by status").nullable().optional(),
14
- chunks_count: zod.z.number().int().describe("Number of chunks in the collection")
15
- }).describe("Response schema for GET_COLLECTION_STATS.");
14
+ chunks_count: zod.z.number().int().describe("Number of chunks in the collection").nullable()
15
+ }).passthrough().describe("Response schema for GET_COLLECTION_STATS.");
16
16
  const needleGetCollectionStats = require_action.action("NEEDLE_GET_COLLECTION_STATS", {
17
17
  slug: "needle-get-collection-stats",
18
18
  name: "Get collection stats",
@@ -1 +1 @@
1
- {"version":3,"file":"get-collection-stats.cjs","names":["z","action"],"sources":["../../src/actions/get-collection-stats.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleGetCollectionStatsInput: z.ZodTypeAny = z.object({\n collection_id: z.string().describe(\"The unique identifier of the collection. Verify the exact ID when collections have similar names to avoid retrieving stats for the wrong collection.\"),\n}).describe(\"Request parameters for GET_COLLECTION_STATS.\");\nconst NeedleGetCollectionStats_DataStatSchema: z.ZodTypeAny = z.object({\n bytes: z.number().int().describe(\"Total bytes for files with this status (may be null for error status)\").nullable().optional(),\n files: z.number().int().describe(\"Number of files with this status\"),\n status: z.string().describe(\"Status of the files (e.g., 'indexed', 'error')\"),\n}).describe(\"Data statistics for a specific status category.\");\nexport const NeedleGetCollectionStatsOutput: z.ZodTypeAny = z.object({\n users: z.number().int().describe(\"Number of users associated with the collection\"),\n characters: z.number().int().describe(\"Total number of characters in the collection\"),\n data_stats: z.array(NeedleGetCollectionStats_DataStatSchema).describe(\"List of data statistics grouped by status\").nullable().optional(),\n chunks_count: z.number().int().describe(\"Number of chunks in the collection\"),\n}).describe(\"Response schema for GET_COLLECTION_STATS.\");\n\nexport const needleGetCollectionStats = action(\"NEEDLE_GET_COLLECTION_STATS\", {\n slug: \"needle-get-collection-stats\",\n name: \"Get collection stats\",\n description: \"Tool to retrieve statistics for a specific collection by its ID. Use when you need document count, index size, and timestamps after confirming the collection exists. Zero document count is a valid response for empty collections, not an error.\",\n input: NeedleGetCollectionStatsInput,\n output: NeedleGetCollectionStatsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO,EAClE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ,EAC3L,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,0CAAwDA,IAAAA,EAAE,OAAO;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;CACnE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;AAC9E,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD;CACjF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;CACpF,YAAYA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;AAC9E,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-collection-stats.cjs","names":["z","action"],"sources":["../../src/actions/get-collection-stats.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeedleGetCollectionStatsInput = z.object({\n collection_id: z.string().describe(\"The unique identifier of the collection. Verify the exact ID when collections have similar names to avoid retrieving stats for the wrong collection.\"),\n}).describe(\"Request parameters for GET_COLLECTION_STATS.\");\nconst NeedleGetCollectionStats_DataStatSchema = z.object({\n bytes: z.number().int().describe(\"Total bytes for files with this status (may be null for error status)\").nullable().optional(),\n files: z.number().int().describe(\"Number of files with this status\").nullable(),\n status: z.string().describe(\"Status of the files (e.g., 'indexed', 'error')\").nullable(),\n}).passthrough().describe(\"Data statistics for a specific status category.\");\nexport const NeedleGetCollectionStatsOutput = z.object({\n users: z.number().int().describe(\"Number of users associated with the collection\").nullable(),\n characters: z.number().int().describe(\"Total number of characters in the collection\").nullable(),\n data_stats: z.array(NeedleGetCollectionStats_DataStatSchema).describe(\"List of data statistics grouped by status\").nullable().optional(),\n chunks_count: z.number().int().describe(\"Number of chunks in the collection\").nullable(),\n}).passthrough().describe(\"Response schema for GET_COLLECTION_STATS.\");\n\nexport const needleGetCollectionStats = action(\"NEEDLE_GET_COLLECTION_STATS\", {\n slug: \"needle-get-collection-stats\",\n name: \"Get collection stats\",\n description: \"Tool to retrieve statistics for a specific collection by its ID. Use when you need document count, index size, and timestamps after confirming the collection exists. Zero document count is a valid response for empty collections, not an error.\",\n input: NeedleGetCollectionStatsInput,\n output: NeedleGetCollectionStatsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ,EAC3L,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC9E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC/F,YAAYA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}