cribl-control-plane 0.5.0-rc.6 → 0.5.0-rc.8

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 (312) hide show
  1. package/dist/commonjs/lib/config.d.ts +3 -3
  2. package/dist/commonjs/lib/config.js +3 -3
  3. package/dist/commonjs/models/azureblobcollectorconf.d.ts +109 -0
  4. package/dist/commonjs/models/azureblobcollectorconf.d.ts.map +1 -0
  5. package/dist/commonjs/models/azureblobcollectorconf.js +110 -0
  6. package/dist/commonjs/models/azureblobcollectorconf.js.map +1 -0
  7. package/dist/commonjs/models/collector.d.ts +26 -0
  8. package/dist/commonjs/models/collector.d.ts.map +1 -0
  9. package/dist/commonjs/models/{collectorconf.js → collector.js} +22 -22
  10. package/dist/commonjs/models/collector.js.map +1 -0
  11. package/dist/commonjs/models/collectorazureblob.d.ts +9 -721
  12. package/dist/commonjs/models/collectorazureblob.d.ts.map +1 -1
  13. package/dist/commonjs/models/collectorazureblob.js +8 -478
  14. package/dist/commonjs/models/collectorazureblob.js.map +1 -1
  15. package/dist/commonjs/models/collectorcribllake.d.ts +6 -5
  16. package/dist/commonjs/models/collectorcribllake.d.ts.map +1 -1
  17. package/dist/commonjs/models/collectorcribllake.js +3 -2
  18. package/dist/commonjs/models/collectorcribllake.js.map +1 -1
  19. package/dist/commonjs/models/collectordatabase.d.ts +6 -57
  20. package/dist/commonjs/models/collectordatabase.d.ts.map +1 -1
  21. package/dist/commonjs/models/collectordatabase.js +4 -66
  22. package/dist/commonjs/models/collectordatabase.js.map +1 -1
  23. package/dist/commonjs/models/collectorfilesystem.d.ts +6 -46
  24. package/dist/commonjs/models/collectorfilesystem.d.ts.map +1 -1
  25. package/dist/commonjs/models/collectorfilesystem.js +4 -31
  26. package/dist/commonjs/models/collectorfilesystem.js.map +1 -1
  27. package/dist/commonjs/models/collectorgooglecloudstorage.d.ts +9 -393
  28. package/dist/commonjs/models/collectorgooglecloudstorage.d.ts.map +1 -1
  29. package/dist/commonjs/models/collectorgooglecloudstorage.js +8 -262
  30. package/dist/commonjs/models/collectorgooglecloudstorage.js.map +1 -1
  31. package/dist/commonjs/models/collectorhealthcheck.d.ts +11 -3789
  32. package/dist/commonjs/models/collectorhealthcheck.d.ts.map +1 -1
  33. package/dist/commonjs/models/collectorhealthcheck.js +8 -2890
  34. package/dist/commonjs/models/collectorhealthcheck.js.map +1 -1
  35. package/dist/commonjs/models/collectorrest.d.ts +11 -6523
  36. package/dist/commonjs/models/collectorrest.d.ts.map +1 -1
  37. package/dist/commonjs/models/collectorrest.js +8 -5410
  38. package/dist/commonjs/models/collectorrest.js.map +1 -1
  39. package/dist/commonjs/models/collectors3.d.ts +9 -1157
  40. package/dist/commonjs/models/collectors3.d.ts.map +1 -1
  41. package/dist/commonjs/models/collectors3.js +8 -740
  42. package/dist/commonjs/models/collectors3.js.map +1 -1
  43. package/dist/commonjs/models/collectorscript.d.ts +6 -41
  44. package/dist/commonjs/models/collectorscript.d.ts.map +1 -1
  45. package/dist/commonjs/models/collectorscript.js +4 -28
  46. package/dist/commonjs/models/collectorscript.js.map +1 -1
  47. package/dist/commonjs/models/collectorsplunk.d.ts +9 -1936
  48. package/dist/commonjs/models/collectorsplunk.d.ts.map +1 -1
  49. package/dist/commonjs/models/collectorsplunk.js +8 -1434
  50. package/dist/commonjs/models/collectorsplunk.js.map +1 -1
  51. package/dist/commonjs/models/cribllakecollectorconf.d.ts +20 -0
  52. package/dist/commonjs/models/cribllakecollectorconf.d.ts.map +1 -0
  53. package/dist/commonjs/models/cribllakecollectorconf.js +58 -0
  54. package/dist/commonjs/models/cribllakecollectorconf.js.map +1 -0
  55. package/dist/commonjs/models/databasecollectorconf.d.ts +72 -0
  56. package/dist/commonjs/models/databasecollectorconf.d.ts.map +1 -0
  57. package/dist/commonjs/models/databasecollectorconf.js +121 -0
  58. package/dist/commonjs/models/databasecollectorconf.js.map +1 -0
  59. package/dist/commonjs/models/filesystemcollectorconf.d.ts +61 -0
  60. package/dist/commonjs/models/filesystemcollectorconf.d.ts.map +1 -0
  61. package/dist/commonjs/models/filesystemcollectorconf.js +84 -0
  62. package/dist/commonjs/models/filesystemcollectorconf.js.map +1 -0
  63. package/dist/commonjs/models/functionconfschemahandlebars.d.ts +46 -0
  64. package/dist/commonjs/models/functionconfschemahandlebars.d.ts.map +1 -0
  65. package/dist/commonjs/models/{functionconfschemahandlebar.js → functionconfschemahandlebars.js} +12 -11
  66. package/dist/commonjs/models/functionconfschemahandlebars.js.map +1 -0
  67. package/dist/commonjs/models/functionconfschemanotificationpolicies.d.ts +5 -0
  68. package/dist/commonjs/models/functionconfschemanotificationpolicies.d.ts.map +1 -1
  69. package/dist/commonjs/models/functionconfschemanotificationpolicies.js +2 -0
  70. package/dist/commonjs/models/functionconfschemanotificationpolicies.js.map +1 -1
  71. package/dist/commonjs/models/{functionhandlebar.d.ts → functionhandlebars.d.ts} +7 -7
  72. package/dist/commonjs/models/functionhandlebars.d.ts.map +1 -0
  73. package/dist/commonjs/models/{functionhandlebar.js → functionhandlebars.js} +9 -9
  74. package/dist/commonjs/models/functionhandlebars.js.map +1 -0
  75. package/dist/commonjs/models/functionresponse.d.ts +2 -2
  76. package/dist/commonjs/models/functionresponse.d.ts.map +1 -1
  77. package/dist/commonjs/models/functionresponse.js +2 -2
  78. package/dist/commonjs/models/functionresponse.js.map +1 -1
  79. package/dist/commonjs/models/googlecloudstoragecollectorconf.d.ts +108 -0
  80. package/dist/commonjs/models/googlecloudstoragecollectorconf.d.ts.map +1 -0
  81. package/dist/commonjs/models/googlecloudstoragecollectorconf.js +111 -0
  82. package/dist/commonjs/models/googlecloudstoragecollectorconf.js.map +1 -0
  83. package/dist/commonjs/models/healthcheckcollectorconf.d.ts +236 -0
  84. package/dist/commonjs/models/healthcheckcollectorconf.d.ts.map +1 -0
  85. package/dist/commonjs/models/healthcheckcollectorconf.js +239 -0
  86. package/dist/commonjs/models/healthcheckcollectorconf.js.map +1 -0
  87. package/dist/commonjs/models/index.d.ts +14 -4
  88. package/dist/commonjs/models/index.d.ts.map +1 -1
  89. package/dist/commonjs/models/index.js +14 -4
  90. package/dist/commonjs/models/index.js.map +1 -1
  91. package/dist/commonjs/models/pipelinefunctionconf.d.ts +2 -2
  92. package/dist/commonjs/models/pipelinefunctionconf.d.ts.map +1 -1
  93. package/dist/commonjs/models/pipelinefunctionconf.js +2 -2
  94. package/dist/commonjs/models/pipelinefunctionconf.js.map +1 -1
  95. package/dist/commonjs/models/pipelinefunctionconfinput.d.ts +3 -3
  96. package/dist/commonjs/models/pipelinefunctionconfinput.d.ts.map +1 -1
  97. package/dist/commonjs/models/pipelinefunctionconfinput.js +2 -2
  98. package/dist/commonjs/models/pipelinefunctionconfinput.js.map +1 -1
  99. package/dist/commonjs/models/pipelinefunctionhandlebars.d.ts +109 -0
  100. package/dist/commonjs/models/pipelinefunctionhandlebars.d.ts.map +1 -0
  101. package/dist/commonjs/models/pipelinefunctionhandlebars.js +114 -0
  102. package/dist/commonjs/models/pipelinefunctionhandlebars.js.map +1 -0
  103. package/dist/commonjs/models/restcollectorconf.d.ts +311 -0
  104. package/dist/commonjs/models/restcollectorconf.d.ts.map +1 -0
  105. package/dist/commonjs/models/restcollectorconf.js +329 -0
  106. package/dist/commonjs/models/restcollectorconf.js.map +1 -0
  107. package/dist/commonjs/models/runnablejobcollection.d.ts +5 -23
  108. package/dist/commonjs/models/runnablejobcollection.d.ts.map +1 -1
  109. package/dist/commonjs/models/runnablejobcollection.js +3 -14
  110. package/dist/commonjs/models/runnablejobcollection.js.map +1 -1
  111. package/dist/commonjs/models/s3collectorconf.d.ts +200 -0
  112. package/dist/commonjs/models/s3collectorconf.d.ts.map +1 -0
  113. package/dist/commonjs/models/s3collectorconf.js +170 -0
  114. package/dist/commonjs/models/s3collectorconf.js.map +1 -0
  115. package/dist/commonjs/models/savedjobcollection.d.ts +6 -34
  116. package/dist/commonjs/models/savedjobcollection.d.ts.map +1 -1
  117. package/dist/commonjs/models/savedjobcollection.js +4 -26
  118. package/dist/commonjs/models/savedjobcollection.js.map +1 -1
  119. package/dist/commonjs/models/scriptcollectorconf.d.ts +56 -0
  120. package/dist/commonjs/models/scriptcollectorconf.d.ts.map +1 -0
  121. package/dist/commonjs/models/scriptcollectorconf.js +83 -0
  122. package/dist/commonjs/models/scriptcollectorconf.js.map +1 -0
  123. package/dist/commonjs/models/splunkcollectorconf.d.ts +227 -0
  124. package/dist/commonjs/models/splunkcollectorconf.d.ts.map +1 -0
  125. package/dist/commonjs/models/splunkcollectorconf.js +217 -0
  126. package/dist/commonjs/models/splunkcollectorconf.js.map +1 -0
  127. package/dist/esm/lib/config.d.ts +3 -3
  128. package/dist/esm/lib/config.js +3 -3
  129. package/dist/esm/models/azureblobcollectorconf.d.ts +109 -0
  130. package/dist/esm/models/azureblobcollectorconf.d.ts.map +1 -0
  131. package/dist/esm/models/azureblobcollectorconf.js +70 -0
  132. package/dist/esm/models/azureblobcollectorconf.js.map +1 -0
  133. package/dist/esm/models/collector.d.ts +26 -0
  134. package/dist/esm/models/collector.d.ts.map +1 -0
  135. package/dist/esm/models/{collectorconf.js → collector.js} +19 -19
  136. package/dist/esm/models/collector.js.map +1 -0
  137. package/dist/esm/models/collectorazureblob.d.ts +9 -721
  138. package/dist/esm/models/collectorazureblob.d.ts.map +1 -1
  139. package/dist/esm/models/collectorazureblob.js +7 -453
  140. package/dist/esm/models/collectorazureblob.js.map +1 -1
  141. package/dist/esm/models/collectorcribllake.d.ts +6 -5
  142. package/dist/esm/models/collectorcribllake.d.ts.map +1 -1
  143. package/dist/esm/models/collectorcribllake.js +3 -2
  144. package/dist/esm/models/collectorcribllake.js.map +1 -1
  145. package/dist/esm/models/collectordatabase.d.ts +6 -57
  146. package/dist/esm/models/collectordatabase.d.ts.map +1 -1
  147. package/dist/esm/models/collectordatabase.js +3 -61
  148. package/dist/esm/models/collectordatabase.js.map +1 -1
  149. package/dist/esm/models/collectorfilesystem.d.ts +6 -46
  150. package/dist/esm/models/collectorfilesystem.d.ts.map +1 -1
  151. package/dist/esm/models/collectorfilesystem.js +3 -28
  152. package/dist/esm/models/collectorfilesystem.js.map +1 -1
  153. package/dist/esm/models/collectorgooglecloudstorage.d.ts +9 -393
  154. package/dist/esm/models/collectorgooglecloudstorage.d.ts.map +1 -1
  155. package/dist/esm/models/collectorgooglecloudstorage.js +7 -249
  156. package/dist/esm/models/collectorgooglecloudstorage.js.map +1 -1
  157. package/dist/esm/models/collectorhealthcheck.d.ts +11 -3789
  158. package/dist/esm/models/collectorhealthcheck.d.ts.map +1 -1
  159. package/dist/esm/models/collectorhealthcheck.js +7 -2743
  160. package/dist/esm/models/collectorhealthcheck.js.map +1 -1
  161. package/dist/esm/models/collectorrest.d.ts +11 -6523
  162. package/dist/esm/models/collectorrest.d.ts.map +1 -1
  163. package/dist/esm/models/collectorrest.js +7 -5119
  164. package/dist/esm/models/collectorrest.js.map +1 -1
  165. package/dist/esm/models/collectors3.d.ts +9 -1157
  166. package/dist/esm/models/collectors3.d.ts.map +1 -1
  167. package/dist/esm/models/collectors3.js +7 -718
  168. package/dist/esm/models/collectors3.js.map +1 -1
  169. package/dist/esm/models/collectorscript.d.ts +6 -41
  170. package/dist/esm/models/collectorscript.d.ts.map +1 -1
  171. package/dist/esm/models/collectorscript.js +3 -25
  172. package/dist/esm/models/collectorscript.js.map +1 -1
  173. package/dist/esm/models/collectorsplunk.d.ts +9 -1936
  174. package/dist/esm/models/collectorsplunk.d.ts.map +1 -1
  175. package/dist/esm/models/collectorsplunk.js +7 -1375
  176. package/dist/esm/models/collectorsplunk.js.map +1 -1
  177. package/dist/esm/models/cribllakecollectorconf.d.ts +20 -0
  178. package/dist/esm/models/cribllakecollectorconf.d.ts.map +1 -0
  179. package/dist/esm/models/cribllakecollectorconf.js +20 -0
  180. package/dist/esm/models/cribllakecollectorconf.js.map +1 -0
  181. package/dist/esm/models/databasecollectorconf.d.ts +72 -0
  182. package/dist/esm/models/databasecollectorconf.d.ts.map +1 -0
  183. package/dist/esm/models/databasecollectorconf.js +79 -0
  184. package/dist/esm/models/databasecollectorconf.js.map +1 -0
  185. package/dist/esm/models/filesystemcollectorconf.d.ts +61 -0
  186. package/dist/esm/models/filesystemcollectorconf.d.ts.map +1 -0
  187. package/dist/esm/models/filesystemcollectorconf.js +44 -0
  188. package/dist/esm/models/filesystemcollectorconf.js.map +1 -0
  189. package/dist/esm/models/functionconfschemahandlebars.d.ts +46 -0
  190. package/dist/esm/models/functionconfschemahandlebars.d.ts.map +1 -0
  191. package/dist/esm/models/functionconfschemahandlebars.js +26 -0
  192. package/dist/esm/models/functionconfschemahandlebars.js.map +1 -0
  193. package/dist/esm/models/functionconfschemanotificationpolicies.d.ts +5 -0
  194. package/dist/esm/models/functionconfschemanotificationpolicies.d.ts.map +1 -1
  195. package/dist/esm/models/functionconfschemanotificationpolicies.js +2 -0
  196. package/dist/esm/models/functionconfschemanotificationpolicies.js.map +1 -1
  197. package/dist/esm/models/{functionhandlebar.d.ts → functionhandlebars.d.ts} +7 -7
  198. package/dist/esm/models/functionhandlebars.d.ts.map +1 -0
  199. package/dist/esm/models/{functionhandlebar.js → functionhandlebars.js} +7 -7
  200. package/dist/esm/models/functionhandlebars.js.map +1 -0
  201. package/dist/esm/models/functionresponse.d.ts +2 -2
  202. package/dist/esm/models/functionresponse.d.ts.map +1 -1
  203. package/dist/esm/models/functionresponse.js +2 -2
  204. package/dist/esm/models/functionresponse.js.map +1 -1
  205. package/dist/esm/models/googlecloudstoragecollectorconf.d.ts +108 -0
  206. package/dist/esm/models/googlecloudstoragecollectorconf.d.ts.map +1 -0
  207. package/dist/esm/models/googlecloudstoragecollectorconf.js +71 -0
  208. package/dist/esm/models/googlecloudstoragecollectorconf.js.map +1 -0
  209. package/dist/esm/models/healthcheckcollectorconf.d.ts +236 -0
  210. package/dist/esm/models/healthcheckcollectorconf.d.ts.map +1 -0
  211. package/dist/esm/models/healthcheckcollectorconf.js +195 -0
  212. package/dist/esm/models/healthcheckcollectorconf.js.map +1 -0
  213. package/dist/esm/models/index.d.ts +14 -4
  214. package/dist/esm/models/index.d.ts.map +1 -1
  215. package/dist/esm/models/index.js +14 -4
  216. package/dist/esm/models/index.js.map +1 -1
  217. package/dist/esm/models/pipelinefunctionconf.d.ts +2 -2
  218. package/dist/esm/models/pipelinefunctionconf.d.ts.map +1 -1
  219. package/dist/esm/models/pipelinefunctionconf.js +2 -2
  220. package/dist/esm/models/pipelinefunctionconf.js.map +1 -1
  221. package/dist/esm/models/pipelinefunctionconfinput.d.ts +3 -3
  222. package/dist/esm/models/pipelinefunctionconfinput.d.ts.map +1 -1
  223. package/dist/esm/models/pipelinefunctionconfinput.js +2 -2
  224. package/dist/esm/models/pipelinefunctionconfinput.js.map +1 -1
  225. package/dist/esm/models/pipelinefunctionhandlebars.d.ts +109 -0
  226. package/dist/esm/models/pipelinefunctionhandlebars.d.ts.map +1 -0
  227. package/dist/esm/models/pipelinefunctionhandlebars.js +72 -0
  228. package/dist/esm/models/pipelinefunctionhandlebars.js.map +1 -0
  229. package/dist/esm/models/restcollectorconf.d.ts +311 -0
  230. package/dist/esm/models/restcollectorconf.d.ts.map +1 -0
  231. package/dist/esm/models/restcollectorconf.js +279 -0
  232. package/dist/esm/models/restcollectorconf.js.map +1 -0
  233. package/dist/esm/models/runnablejobcollection.d.ts +5 -23
  234. package/dist/esm/models/runnablejobcollection.d.ts.map +1 -1
  235. package/dist/esm/models/runnablejobcollection.js +2 -12
  236. package/dist/esm/models/runnablejobcollection.js.map +1 -1
  237. package/dist/esm/models/s3collectorconf.d.ts +200 -0
  238. package/dist/esm/models/s3collectorconf.d.ts.map +1 -0
  239. package/dist/esm/models/s3collectorconf.js +130 -0
  240. package/dist/esm/models/s3collectorconf.js.map +1 -0
  241. package/dist/esm/models/savedjobcollection.d.ts +6 -34
  242. package/dist/esm/models/savedjobcollection.d.ts.map +1 -1
  243. package/dist/esm/models/savedjobcollection.js +3 -23
  244. package/dist/esm/models/savedjobcollection.js.map +1 -1
  245. package/dist/esm/models/scriptcollectorconf.d.ts +56 -0
  246. package/dist/esm/models/scriptcollectorconf.d.ts.map +1 -0
  247. package/dist/esm/models/scriptcollectorconf.js +43 -0
  248. package/dist/esm/models/scriptcollectorconf.js.map +1 -0
  249. package/dist/esm/models/splunkcollectorconf.d.ts +227 -0
  250. package/dist/esm/models/splunkcollectorconf.d.ts.map +1 -0
  251. package/dist/esm/models/splunkcollectorconf.js +173 -0
  252. package/dist/esm/models/splunkcollectorconf.js.map +1 -0
  253. package/examples/package-lock.json +1 -1
  254. package/jsr.json +1 -1
  255. package/package.json +1 -1
  256. package/src/lib/config.ts +3 -3
  257. package/src/models/azureblobcollectorconf.ts +214 -0
  258. package/src/models/{collectorconf.ts → collector.ts} +38 -50
  259. package/src/models/collectorazureblob.ts +24 -1406
  260. package/src/models/collectorcribllake.ts +13 -7
  261. package/src/models/collectordatabase.ts +13 -159
  262. package/src/models/collectorfilesystem.ts +13 -92
  263. package/src/models/collectorgooglecloudstorage.ts +21 -811
  264. package/src/models/collectorhealthcheck.ts +24 -8024
  265. package/src/models/collectorrest.ts +24 -13657
  266. package/src/models/collectors3.ts +23 -1933
  267. package/src/models/collectorscript.ts +13 -74
  268. package/src/models/collectorsplunk.ts +23 -3755
  269. package/src/models/cribllakecollectorconf.ts +54 -0
  270. package/src/models/databasecollectorconf.ts +203 -0
  271. package/src/models/filesystemcollectorconf.ts +141 -0
  272. package/src/models/{functionconfschemahandlebar.ts → functionconfschemahandlebars.ts} +23 -20
  273. package/src/models/functionconfschemanotificationpolicies.ts +7 -0
  274. package/src/models/{functionhandlebar.ts → functionhandlebars.ts} +14 -14
  275. package/src/models/functionresponse.ts +5 -5
  276. package/src/models/googlecloudstoragecollectorconf.ts +232 -0
  277. package/src/models/healthcheckcollectorconf.ts +495 -0
  278. package/src/models/index.ts +14 -4
  279. package/src/models/pipelinefunctionconf.ts +5 -5
  280. package/src/models/pipelinefunctionconfinput.ts +7 -7
  281. package/src/models/{pipelinefunctionhandlebar.ts → pipelinefunctionhandlebars.ts} +67 -62
  282. package/src/models/restcollectorconf.ts +666 -0
  283. package/src/models/runnablejobcollection.ts +6 -44
  284. package/src/models/s3collectorconf.ts +345 -0
  285. package/src/models/savedjobcollection.ts +12 -78
  286. package/src/models/scriptcollectorconf.ts +121 -0
  287. package/src/models/splunkcollectorconf.ts +462 -0
  288. package/dist/commonjs/models/collectorconf.d.ts +0 -50
  289. package/dist/commonjs/models/collectorconf.d.ts.map +0 -1
  290. package/dist/commonjs/models/collectorconf.js.map +0 -1
  291. package/dist/commonjs/models/functionconfschemahandlebar.d.ts +0 -44
  292. package/dist/commonjs/models/functionconfschemahandlebar.d.ts.map +0 -1
  293. package/dist/commonjs/models/functionconfschemahandlebar.js.map +0 -1
  294. package/dist/commonjs/models/functionhandlebar.d.ts.map +0 -1
  295. package/dist/commonjs/models/functionhandlebar.js.map +0 -1
  296. package/dist/commonjs/models/pipelinefunctionhandlebar.d.ts +0 -108
  297. package/dist/commonjs/models/pipelinefunctionhandlebar.d.ts.map +0 -1
  298. package/dist/commonjs/models/pipelinefunctionhandlebar.js +0 -112
  299. package/dist/commonjs/models/pipelinefunctionhandlebar.js.map +0 -1
  300. package/dist/esm/models/collectorconf.d.ts +0 -50
  301. package/dist/esm/models/collectorconf.d.ts.map +0 -1
  302. package/dist/esm/models/collectorconf.js.map +0 -1
  303. package/dist/esm/models/functionconfschemahandlebar.d.ts +0 -44
  304. package/dist/esm/models/functionconfschemahandlebar.d.ts.map +0 -1
  305. package/dist/esm/models/functionconfschemahandlebar.js +0 -25
  306. package/dist/esm/models/functionconfschemahandlebar.js.map +0 -1
  307. package/dist/esm/models/functionhandlebar.d.ts.map +0 -1
  308. package/dist/esm/models/functionhandlebar.js.map +0 -1
  309. package/dist/esm/models/pipelinefunctionhandlebar.d.ts +0 -108
  310. package/dist/esm/models/pipelinefunctionhandlebar.d.ts.map +0 -1
  311. package/dist/esm/models/pipelinefunctionhandlebar.js +0 -70
  312. package/dist/esm/models/pipelinefunctionhandlebar.js.map +0 -1
@@ -4,1960 +4,50 @@
4
4
 
5
5
  import * as z from "zod/v3";
6
6
  import { safeParse } from "../lib/schemas.js";
7
- import * as openEnums from "../types/enums.js";
8
- import { ClosedEnum, OpenEnum } from "../types/enums.js";
9
7
  import { Result as SafeParseResult } from "../types/fp.js";
10
8
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
9
+ import {
10
+ S3CollectorConf,
11
+ S3CollectorConf$inboundSchema,
12
+ S3CollectorConf$Outbound,
13
+ S3CollectorConf$outboundSchema,
14
+ } from "./s3collectorconf.js";
11
15
 
12
16
  /**
13
- * AWS authentication method. Choose Auto to use IAM roles.
17
+ * S3 collector configuration
14
18
  */
15
- export const CollectorS3AuthenticationMethod5 = {
19
+ export type CollectorS3 = {
16
20
  /**
17
- * Auto
18
- */
19
- Auto: "auto",
20
- /**
21
- * Manual
22
- */
23
- Manual: "manual",
24
- /**
25
- * Secret Key pair
26
- */
27
- Secret: "secret",
28
- } as const;
29
- /**
30
- * AWS authentication method. Choose Auto to use IAM roles.
31
- */
32
- export type CollectorS3AuthenticationMethod5 = OpenEnum<
33
- typeof CollectorS3AuthenticationMethod5
34
- >;
35
-
36
- /**
37
- * Collector type: s3
38
- */
39
- export const CollectorS3Type5 = {
40
- S3: "s3",
41
- } as const;
42
- /**
43
- * Collector type: s3
44
- */
45
- export type CollectorS3Type5 = ClosedEnum<typeof CollectorS3Type5>;
46
-
47
- /**
48
- * Partitioning scheme used for this dataset. Using a known scheme like DDSS enables more efficient data reading and retrieval.
49
- */
50
- export const PartitioningScheme5 = {
51
- /**
52
- * Defined in Path
53
- */
54
- None: "none",
55
- /**
56
- * DDSS
57
- */
58
- Ddss: "ddss",
59
- } as const;
60
- /**
61
- * Partitioning scheme used for this dataset. Using a known scheme like DDSS enables more efficient data reading and retrieval.
62
- */
63
- export type PartitioningScheme5 = OpenEnum<typeof PartitioningScheme5>;
64
-
65
- export type CollectorS3Extractor5 = {
66
- /**
67
- * A token from the template path, such as epoch
68
- */
69
- key: string;
70
- /**
71
- * JavaScript expression that receives token under "value" variable, and evaluates to populate event fields. Example: {date: new Date(+value*1000)}
72
- */
73
- expression: string;
74
- };
75
-
76
- /**
77
- * Signature version to use for signing S3 requests
78
- */
79
- export const CollectorS3SignatureVersion5 = {
80
- V2: "v2",
81
- V4: "v4",
82
- } as const;
83
- /**
84
- * Signature version to use for signing S3 requests
85
- */
86
- export type CollectorS3SignatureVersion5 = OpenEnum<
87
- typeof CollectorS3SignatureVersion5
88
- >;
89
-
90
- export type CollectorS3S35 = {
91
- /**
92
- * AWS authentication method. Choose Auto to use IAM roles.
93
- */
94
- awsAuthenticationMethod?: CollectorS3AuthenticationMethod5 | undefined;
95
- /**
96
- * Select or create a stored secret that references AWS access key and secret key.
97
- */
98
- awsSecret?: string | undefined;
99
- /**
100
- * Collector type: s3
101
- */
102
- type: CollectorS3Type5;
103
- /**
104
- * Name of the predefined Destination that will be used to auto-populate Collector settings
105
- */
106
- outputName?: string | undefined;
107
- /**
108
- * S3 Bucket from which to collect data
109
- */
110
- bucket: string;
111
- /**
112
- * Maximum file size for each Parquet chunk
113
- */
114
- parquetChunkSizeMB?: number | undefined;
115
- /**
116
- * Maximum time allowed for downloading a Parquet chunk. Processing will stop if a chunk cannot be downloaded within the time specified.
117
- */
118
- parquetChunkDownloadTimeout?: number | undefined;
119
- /**
120
- * Region from which to retrieve data
121
- */
122
- region?: string | undefined;
123
- /**
124
- * Directory where data will be collected. Templating (such as 'myDir/${datacenter}/${host}/${app}/') and time-based tokens (such as 'myOtherDir/${_time:%Y}/${_time:%m}/${_time:%d}/') are supported. Can be a constant (enclosed in quotes) or a JavaScript expression.
125
- */
126
- path?: string | undefined;
127
- /**
128
- * Partitioning scheme used for this dataset. Using a known scheme like DDSS enables more efficient data reading and retrieval.
129
- */
130
- partitioningScheme?: PartitioningScheme5 | undefined;
131
- /**
132
- * Allows using template tokens as context for expressions that enrich discovery results. For example, given a template /path/${epoch}, an extractor under key "epoch" with an expression {date: new Date(+value*1000)}, will enrich discovery results with a human readable "date" field.
133
- */
134
- extractors?: Array<CollectorS3Extractor5> | undefined;
135
- /**
136
- * Must point to an S3-compatible endpoint. If empty, defaults to an AWS region-specific endpoint.
137
- */
138
- endpoint?: string | undefined;
139
- /**
140
- * Signature version to use for signing S3 requests
141
- */
142
- signatureVersion?: CollectorS3SignatureVersion5 | undefined;
143
- /**
144
- * Use AssumeRole credentials
145
- */
146
- enableAssumeRole?: boolean | undefined;
147
- /**
148
- * Amazon Resource Name (ARN) of the role to assume
149
- */
150
- assumeRoleArn?: string | undefined;
151
- /**
152
- * External ID to use when assuming role
153
- */
154
- assumeRoleExternalId?: string | undefined;
155
- /**
156
- * Duration of the Assumed Role's session, in seconds. Minimum is 900 (15 minutes), default is 3600 (1 hour), and maximum is 43200 (12 hours).
157
- */
158
- durationSeconds?: number | undefined;
159
- /**
160
- * Maximum number of metadata objects to batch before recording as results
161
- */
162
- maxBatchSize?: number | undefined;
163
- /**
164
- * Traverse and include files from subdirectories. Leave this option enabled to ensure that all nested directories are searched and their contents collected.
165
- */
166
- recurse?: boolean | undefined;
167
- /**
168
- * Reuse connections between requests to improve performance
169
- */
170
- reuseConnections?: boolean | undefined;
171
- /**
172
- * Reject certificates that cannot be verified against a valid CA (such as a self-signed certificate)
173
- */
174
- rejectUnauthorized?: boolean | undefined;
175
- /**
176
- * Disable if you can access files within the bucket but not the bucket itself. Resolves errors of the form "discover task initialization failed...error: Forbidden".
177
- */
178
- verifyPermissions?: boolean | undefined;
179
- /**
180
- * Disable Collector event time filtering when a date range is specified
181
- */
182
- disableTimeFilter?: boolean | undefined;
183
- /**
184
- * Access key. If not present, will fall back to env.AWS_ACCESS_KEY_ID, or to the metadata endpoint for IAM creds. Optional when running on AWS. This value can be a constant or a JavaScript expression.
185
- */
186
- awsApiKey?: string | undefined;
187
- /**
188
- * Secret key. If not present, will fall back to env.AWS_SECRET_ACCESS_KEY, or to the metadata endpoint for IAM creds. Optional when running on AWS. This value can be a constant or a JavaScript expression.
189
- */
190
- awsSecretKey?: string | undefined;
191
- };
192
-
193
- /**
194
- * AWS authentication method. Choose Auto to use IAM roles.
195
- */
196
- export const CollectorS3AuthenticationMethod4 = {
197
- /**
198
- * Auto
199
- */
200
- Auto: "auto",
201
- /**
202
- * Manual
203
- */
204
- Manual: "manual",
205
- /**
206
- * Secret Key pair
207
- */
208
- Secret: "secret",
209
- } as const;
210
- /**
211
- * AWS authentication method. Choose Auto to use IAM roles.
212
- */
213
- export type CollectorS3AuthenticationMethod4 = OpenEnum<
214
- typeof CollectorS3AuthenticationMethod4
215
- >;
216
-
217
- /**
218
- * Collector type: s3
219
- */
220
- export const CollectorS3Type4 = {
221
- S3: "s3",
222
- } as const;
223
- /**
224
- * Collector type: s3
225
- */
226
- export type CollectorS3Type4 = ClosedEnum<typeof CollectorS3Type4>;
227
-
228
- /**
229
- * Partitioning scheme used for this dataset. Using a known scheme like DDSS enables more efficient data reading and retrieval.
230
- */
231
- export const PartitioningScheme4 = {
232
- /**
233
- * Defined in Path
234
- */
235
- None: "none",
236
- /**
237
- * DDSS
238
- */
239
- Ddss: "ddss",
240
- } as const;
241
- /**
242
- * Partitioning scheme used for this dataset. Using a known scheme like DDSS enables more efficient data reading and retrieval.
243
- */
244
- export type PartitioningScheme4 = OpenEnum<typeof PartitioningScheme4>;
245
-
246
- export type CollectorS3Extractor4 = {
247
- /**
248
- * A token from the template path, such as epoch
249
- */
250
- key: string;
251
- /**
252
- * JavaScript expression that receives token under "value" variable, and evaluates to populate event fields. Example: {date: new Date(+value*1000)}
253
- */
254
- expression: string;
255
- };
256
-
257
- /**
258
- * Signature version to use for signing S3 requests
259
- */
260
- export const CollectorS3SignatureVersion4 = {
261
- V2: "v2",
262
- V4: "v4",
263
- } as const;
264
- /**
265
- * Signature version to use for signing S3 requests
266
- */
267
- export type CollectorS3SignatureVersion4 = OpenEnum<
268
- typeof CollectorS3SignatureVersion4
269
- >;
270
-
271
- export type CollectorS3S34 = {
272
- /**
273
- * AWS authentication method. Choose Auto to use IAM roles.
274
- */
275
- awsAuthenticationMethod?: CollectorS3AuthenticationMethod4 | undefined;
276
- /**
277
- * Access key. If not present, will fall back to env.AWS_ACCESS_KEY_ID, or to the metadata endpoint for IAM creds. Optional when running on AWS. This value can be a constant or a JavaScript expression.
278
- */
279
- awsApiKey?: string | undefined;
280
- /**
281
- * Secret key. If not present, will fall back to env.AWS_SECRET_ACCESS_KEY, or to the metadata endpoint for IAM creds. Optional when running on AWS. This value can be a constant or a JavaScript expression.
282
- */
283
- awsSecretKey?: string | undefined;
284
- /**
285
- * Collector type: s3
286
- */
287
- type: CollectorS3Type4;
288
- /**
289
- * Name of the predefined Destination that will be used to auto-populate Collector settings
290
- */
291
- outputName?: string | undefined;
292
- /**
293
- * S3 Bucket from which to collect data
294
- */
295
- bucket: string;
296
- /**
297
- * Maximum file size for each Parquet chunk
298
- */
299
- parquetChunkSizeMB?: number | undefined;
300
- /**
301
- * Maximum time allowed for downloading a Parquet chunk. Processing will stop if a chunk cannot be downloaded within the time specified.
302
- */
303
- parquetChunkDownloadTimeout?: number | undefined;
304
- /**
305
- * Region from which to retrieve data
306
- */
307
- region?: string | undefined;
308
- /**
309
- * Directory where data will be collected. Templating (such as 'myDir/${datacenter}/${host}/${app}/') and time-based tokens (such as 'myOtherDir/${_time:%Y}/${_time:%m}/${_time:%d}/') are supported. Can be a constant (enclosed in quotes) or a JavaScript expression.
310
- */
311
- path?: string | undefined;
312
- /**
313
- * Partitioning scheme used for this dataset. Using a known scheme like DDSS enables more efficient data reading and retrieval.
314
- */
315
- partitioningScheme?: PartitioningScheme4 | undefined;
316
- /**
317
- * Allows using template tokens as context for expressions that enrich discovery results. For example, given a template /path/${epoch}, an extractor under key "epoch" with an expression {date: new Date(+value*1000)}, will enrich discovery results with a human readable "date" field.
318
- */
319
- extractors?: Array<CollectorS3Extractor4> | undefined;
320
- /**
321
- * Must point to an S3-compatible endpoint. If empty, defaults to an AWS region-specific endpoint.
322
- */
323
- endpoint?: string | undefined;
324
- /**
325
- * Signature version to use for signing S3 requests
326
- */
327
- signatureVersion?: CollectorS3SignatureVersion4 | undefined;
328
- /**
329
- * Use AssumeRole credentials
330
- */
331
- enableAssumeRole?: boolean | undefined;
332
- /**
333
- * Amazon Resource Name (ARN) of the role to assume
334
- */
335
- assumeRoleArn?: string | undefined;
336
- /**
337
- * External ID to use when assuming role
338
- */
339
- assumeRoleExternalId?: string | undefined;
340
- /**
341
- * Duration of the Assumed Role's session, in seconds. Minimum is 900 (15 minutes), default is 3600 (1 hour), and maximum is 43200 (12 hours).
342
- */
343
- durationSeconds?: number | undefined;
344
- /**
345
- * Maximum number of metadata objects to batch before recording as results
346
- */
347
- maxBatchSize?: number | undefined;
348
- /**
349
- * Traverse and include files from subdirectories. Leave this option enabled to ensure that all nested directories are searched and their contents collected.
350
- */
351
- recurse?: boolean | undefined;
352
- /**
353
- * Reuse connections between requests to improve performance
354
- */
355
- reuseConnections?: boolean | undefined;
356
- /**
357
- * Reject certificates that cannot be verified against a valid CA (such as a self-signed certificate)
358
- */
359
- rejectUnauthorized?: boolean | undefined;
360
- /**
361
- * Disable if you can access files within the bucket but not the bucket itself. Resolves errors of the form "discover task initialization failed...error: Forbidden".
362
- */
363
- verifyPermissions?: boolean | undefined;
364
- /**
365
- * Disable Collector event time filtering when a date range is specified
366
- */
367
- disableTimeFilter?: boolean | undefined;
368
- /**
369
- * Select or create a stored secret that references AWS access key and secret key.
370
- */
371
- awsSecret?: string | undefined;
372
- };
373
-
374
- /**
375
- * AWS authentication method. Choose Auto to use IAM roles.
376
- */
377
- export const CollectorS3AuthenticationMethod3 = {
378
- /**
379
- * Auto
380
- */
381
- Auto: "auto",
382
- /**
383
- * Manual
384
- */
385
- Manual: "manual",
386
- /**
387
- * Secret Key pair
388
- */
389
- Secret: "secret",
390
- } as const;
391
- /**
392
- * AWS authentication method. Choose Auto to use IAM roles.
393
- */
394
- export type CollectorS3AuthenticationMethod3 = OpenEnum<
395
- typeof CollectorS3AuthenticationMethod3
396
- >;
397
-
398
- /**
399
- * Collector type: s3
400
- */
401
- export const CollectorS3Type3 = {
402
- S3: "s3",
403
- } as const;
404
- /**
405
- * Collector type: s3
406
- */
407
- export type CollectorS3Type3 = ClosedEnum<typeof CollectorS3Type3>;
408
-
409
- /**
410
- * Partitioning scheme used for this dataset. Using a known scheme like DDSS enables more efficient data reading and retrieval.
411
- */
412
- export const PartitioningScheme3 = {
413
- /**
414
- * Defined in Path
415
- */
416
- None: "none",
417
- /**
418
- * DDSS
419
- */
420
- Ddss: "ddss",
421
- } as const;
422
- /**
423
- * Partitioning scheme used for this dataset. Using a known scheme like DDSS enables more efficient data reading and retrieval.
424
- */
425
- export type PartitioningScheme3 = OpenEnum<typeof PartitioningScheme3>;
426
-
427
- export type CollectorS3Extractor3 = {
428
- /**
429
- * A token from the template path, such as epoch
430
- */
431
- key: string;
432
- /**
433
- * JavaScript expression that receives token under "value" variable, and evaluates to populate event fields. Example: {date: new Date(+value*1000)}
434
- */
435
- expression: string;
436
- };
437
-
438
- /**
439
- * Signature version to use for signing S3 requests
440
- */
441
- export const CollectorS3SignatureVersion3 = {
442
- V2: "v2",
443
- V4: "v4",
444
- } as const;
445
- /**
446
- * Signature version to use for signing S3 requests
447
- */
448
- export type CollectorS3SignatureVersion3 = OpenEnum<
449
- typeof CollectorS3SignatureVersion3
450
- >;
451
-
452
- export type CollectorS3S33 = {
453
- /**
454
- * AWS authentication method. Choose Auto to use IAM roles.
455
- */
456
- awsAuthenticationMethod?: CollectorS3AuthenticationMethod3 | undefined;
457
- /**
458
- * Collector type: s3
459
- */
460
- type: CollectorS3Type3;
461
- /**
462
- * Name of the predefined Destination that will be used to auto-populate Collector settings
463
- */
464
- outputName?: string | undefined;
465
- /**
466
- * S3 Bucket from which to collect data
467
- */
468
- bucket: string;
469
- /**
470
- * Maximum file size for each Parquet chunk
471
- */
472
- parquetChunkSizeMB?: number | undefined;
473
- /**
474
- * Maximum time allowed for downloading a Parquet chunk. Processing will stop if a chunk cannot be downloaded within the time specified.
475
- */
476
- parquetChunkDownloadTimeout?: number | undefined;
477
- /**
478
- * Region from which to retrieve data
479
- */
480
- region?: string | undefined;
481
- /**
482
- * Directory where data will be collected. Templating (such as 'myDir/${datacenter}/${host}/${app}/') and time-based tokens (such as 'myOtherDir/${_time:%Y}/${_time:%m}/${_time:%d}/') are supported. Can be a constant (enclosed in quotes) or a JavaScript expression.
483
- */
484
- path?: string | undefined;
485
- /**
486
- * Partitioning scheme used for this dataset. Using a known scheme like DDSS enables more efficient data reading and retrieval.
487
- */
488
- partitioningScheme?: PartitioningScheme3 | undefined;
489
- /**
490
- * Allows using template tokens as context for expressions that enrich discovery results. For example, given a template /path/${epoch}, an extractor under key "epoch" with an expression {date: new Date(+value*1000)}, will enrich discovery results with a human readable "date" field.
491
- */
492
- extractors?: Array<CollectorS3Extractor3> | undefined;
493
- /**
494
- * Must point to an S3-compatible endpoint. If empty, defaults to an AWS region-specific endpoint.
495
- */
496
- endpoint?: string | undefined;
497
- /**
498
- * Signature version to use for signing S3 requests
499
- */
500
- signatureVersion?: CollectorS3SignatureVersion3 | undefined;
501
- /**
502
- * Use AssumeRole credentials
503
- */
504
- enableAssumeRole?: boolean | undefined;
505
- /**
506
- * Amazon Resource Name (ARN) of the role to assume
507
- */
508
- assumeRoleArn?: string | undefined;
509
- /**
510
- * External ID to use when assuming role
511
- */
512
- assumeRoleExternalId?: string | undefined;
513
- /**
514
- * Duration of the Assumed Role's session, in seconds. Minimum is 900 (15 minutes), default is 3600 (1 hour), and maximum is 43200 (12 hours).
515
- */
516
- durationSeconds?: number | undefined;
517
- /**
518
- * Maximum number of metadata objects to batch before recording as results
519
- */
520
- maxBatchSize?: number | undefined;
521
- /**
522
- * Traverse and include files from subdirectories. Leave this option enabled to ensure that all nested directories are searched and their contents collected.
523
- */
524
- recurse?: boolean | undefined;
525
- /**
526
- * Reuse connections between requests to improve performance
527
- */
528
- reuseConnections?: boolean | undefined;
529
- /**
530
- * Reject certificates that cannot be verified against a valid CA (such as a self-signed certificate)
531
- */
532
- rejectUnauthorized?: boolean | undefined;
533
- /**
534
- * Disable if you can access files within the bucket but not the bucket itself. Resolves errors of the form "discover task initialization failed...error: Forbidden".
535
- */
536
- verifyPermissions?: boolean | undefined;
537
- /**
538
- * Disable Collector event time filtering when a date range is specified
539
- */
540
- disableTimeFilter?: boolean | undefined;
541
- /**
542
- * Access key. If not present, will fall back to env.AWS_ACCESS_KEY_ID, or to the metadata endpoint for IAM creds. Optional when running on AWS. This value can be a constant or a JavaScript expression.
543
- */
544
- awsApiKey?: string | undefined;
545
- /**
546
- * Secret key. If not present, will fall back to env.AWS_SECRET_ACCESS_KEY, or to the metadata endpoint for IAM creds. Optional when running on AWS. This value can be a constant or a JavaScript expression.
547
- */
548
- awsSecretKey?: string | undefined;
549
- /**
550
- * Select or create a stored secret that references AWS access key and secret key.
551
- */
552
- awsSecret?: string | undefined;
553
- };
554
-
555
- /**
556
- * Partitioning scheme used for this dataset. Using a known scheme like DDSS enables more efficient data reading and retrieval.
557
- */
558
- export const PartitioningScheme2 = {
559
- /**
560
- * Defined in Path
561
- */
562
- None: "none",
563
- /**
564
- * DDSS
565
- */
566
- Ddss: "ddss",
567
- } as const;
568
- /**
569
- * Partitioning scheme used for this dataset. Using a known scheme like DDSS enables more efficient data reading and retrieval.
570
- */
571
- export type PartitioningScheme2 = OpenEnum<typeof PartitioningScheme2>;
572
-
573
- /**
574
- * Collector type: s3
575
- */
576
- export const CollectorS3Type2 = {
577
- S3: "s3",
578
- } as const;
579
- /**
580
- * Collector type: s3
581
- */
582
- export type CollectorS3Type2 = ClosedEnum<typeof CollectorS3Type2>;
583
-
584
- export type CollectorS3Extractor2 = {
585
- /**
586
- * A token from the template path, such as epoch
587
- */
588
- key: string;
589
- /**
590
- * JavaScript expression that receives token under "value" variable, and evaluates to populate event fields. Example: {date: new Date(+value*1000)}
591
- */
592
- expression: string;
593
- };
594
-
595
- /**
596
- * AWS authentication method. Choose Auto to use IAM roles.
597
- */
598
- export const CollectorS3AuthenticationMethod2 = {
599
- /**
600
- * Auto
601
- */
602
- Auto: "auto",
603
- /**
604
- * Manual
605
- */
606
- Manual: "manual",
607
- /**
608
- * Secret Key pair
609
- */
610
- Secret: "secret",
611
- } as const;
612
- /**
613
- * AWS authentication method. Choose Auto to use IAM roles.
614
- */
615
- export type CollectorS3AuthenticationMethod2 = OpenEnum<
616
- typeof CollectorS3AuthenticationMethod2
617
- >;
618
-
619
- /**
620
- * Signature version to use for signing S3 requests
621
- */
622
- export const CollectorS3SignatureVersion2 = {
623
- V2: "v2",
624
- V4: "v4",
625
- } as const;
626
- /**
627
- * Signature version to use for signing S3 requests
628
- */
629
- export type CollectorS3SignatureVersion2 = OpenEnum<
630
- typeof CollectorS3SignatureVersion2
631
- >;
632
-
633
- export type CollectorS3S32 = {
634
- /**
635
- * Partitioning scheme used for this dataset. Using a known scheme like DDSS enables more efficient data reading and retrieval.
636
- */
637
- partitioningScheme?: PartitioningScheme2 | undefined;
638
- /**
639
- * Traverse and include files from subdirectories. Leave this option enabled to ensure that all nested directories are searched and their contents collected.
640
- */
641
- recurse?: boolean | undefined;
642
- /**
643
- * Collector type: s3
644
- */
645
- type: CollectorS3Type2;
646
- /**
647
- * Name of the predefined Destination that will be used to auto-populate Collector settings
648
- */
649
- outputName?: string | undefined;
650
- /**
651
- * S3 Bucket from which to collect data
652
- */
653
- bucket: string;
654
- /**
655
- * Maximum file size for each Parquet chunk
656
- */
657
- parquetChunkSizeMB?: number | undefined;
658
- /**
659
- * Maximum time allowed for downloading a Parquet chunk. Processing will stop if a chunk cannot be downloaded within the time specified.
660
- */
661
- parquetChunkDownloadTimeout?: number | undefined;
662
- /**
663
- * Region from which to retrieve data
664
- */
665
- region?: string | undefined;
666
- /**
667
- * Directory where data will be collected. Templating (such as 'myDir/${datacenter}/${host}/${app}/') and time-based tokens (such as 'myOtherDir/${_time:%Y}/${_time:%m}/${_time:%d}/') are supported. Can be a constant (enclosed in quotes) or a JavaScript expression.
668
- */
669
- path?: string | undefined;
670
- /**
671
- * Allows using template tokens as context for expressions that enrich discovery results. For example, given a template /path/${epoch}, an extractor under key "epoch" with an expression {date: new Date(+value*1000)}, will enrich discovery results with a human readable "date" field.
672
- */
673
- extractors?: Array<CollectorS3Extractor2> | undefined;
674
- /**
675
- * AWS authentication method. Choose Auto to use IAM roles.
676
- */
677
- awsAuthenticationMethod?: CollectorS3AuthenticationMethod2 | undefined;
678
- /**
679
- * Must point to an S3-compatible endpoint. If empty, defaults to an AWS region-specific endpoint.
680
- */
681
- endpoint?: string | undefined;
682
- /**
683
- * Signature version to use for signing S3 requests
684
- */
685
- signatureVersion?: CollectorS3SignatureVersion2 | undefined;
686
- /**
687
- * Use AssumeRole credentials
688
- */
689
- enableAssumeRole?: boolean | undefined;
690
- /**
691
- * Amazon Resource Name (ARN) of the role to assume
692
- */
693
- assumeRoleArn?: string | undefined;
694
- /**
695
- * External ID to use when assuming role
696
- */
697
- assumeRoleExternalId?: string | undefined;
698
- /**
699
- * Duration of the Assumed Role's session, in seconds. Minimum is 900 (15 minutes), default is 3600 (1 hour), and maximum is 43200 (12 hours).
700
- */
701
- durationSeconds?: number | undefined;
702
- /**
703
- * Maximum number of metadata objects to batch before recording as results
704
- */
705
- maxBatchSize?: number | undefined;
706
- /**
707
- * Reuse connections between requests to improve performance
708
- */
709
- reuseConnections?: boolean | undefined;
710
- /**
711
- * Reject certificates that cannot be verified against a valid CA (such as a self-signed certificate)
712
- */
713
- rejectUnauthorized?: boolean | undefined;
714
- /**
715
- * Disable if you can access files within the bucket but not the bucket itself. Resolves errors of the form "discover task initialization failed...error: Forbidden".
716
- */
717
- verifyPermissions?: boolean | undefined;
718
- /**
719
- * Disable Collector event time filtering when a date range is specified
720
- */
721
- disableTimeFilter?: boolean | undefined;
722
- /**
723
- * Access key. If not present, will fall back to env.AWS_ACCESS_KEY_ID, or to the metadata endpoint for IAM creds. Optional when running on AWS. This value can be a constant or a JavaScript expression.
724
- */
725
- awsApiKey?: string | undefined;
726
- /**
727
- * Secret key. If not present, will fall back to env.AWS_SECRET_ACCESS_KEY, or to the metadata endpoint for IAM creds. Optional when running on AWS. This value can be a constant or a JavaScript expression.
728
- */
729
- awsSecretKey?: string | undefined;
730
- /**
731
- * Select or create a stored secret that references AWS access key and secret key.
732
- */
733
- awsSecret?: string | undefined;
734
- };
735
-
736
- /**
737
- * Partitioning scheme used for this dataset. Using a known scheme like DDSS enables more efficient data reading and retrieval.
738
- */
739
- export const PartitioningScheme1 = {
740
- /**
741
- * Defined in Path
742
- */
743
- None: "none",
744
- /**
745
- * DDSS
746
- */
747
- Ddss: "ddss",
748
- } as const;
749
- /**
750
- * Partitioning scheme used for this dataset. Using a known scheme like DDSS enables more efficient data reading and retrieval.
751
- */
752
- export type PartitioningScheme1 = OpenEnum<typeof PartitioningScheme1>;
753
-
754
- /**
755
- * Collector type: s3
756
- */
757
- export const CollectorS3Type1 = {
758
- S3: "s3",
759
- } as const;
760
- /**
761
- * Collector type: s3
762
- */
763
- export type CollectorS3Type1 = ClosedEnum<typeof CollectorS3Type1>;
764
-
765
- export type CollectorS3Extractor1 = {
766
- /**
767
- * A token from the template path, such as epoch
768
- */
769
- key: string;
770
- /**
771
- * JavaScript expression that receives token under "value" variable, and evaluates to populate event fields. Example: {date: new Date(+value*1000)}
772
- */
773
- expression: string;
774
- };
775
-
776
- /**
777
- * AWS authentication method. Choose Auto to use IAM roles.
778
- */
779
- export const CollectorS3AuthenticationMethod1 = {
780
- /**
781
- * Auto
782
- */
783
- Auto: "auto",
784
- /**
785
- * Manual
786
- */
787
- Manual: "manual",
788
- /**
789
- * Secret Key pair
790
- */
791
- Secret: "secret",
792
- } as const;
793
- /**
794
- * AWS authentication method. Choose Auto to use IAM roles.
795
- */
796
- export type CollectorS3AuthenticationMethod1 = OpenEnum<
797
- typeof CollectorS3AuthenticationMethod1
798
- >;
799
-
800
- /**
801
- * Signature version to use for signing S3 requests
802
- */
803
- export const CollectorS3SignatureVersion1 = {
804
- V2: "v2",
805
- V4: "v4",
806
- } as const;
807
- /**
808
- * Signature version to use for signing S3 requests
809
- */
810
- export type CollectorS3SignatureVersion1 = OpenEnum<
811
- typeof CollectorS3SignatureVersion1
812
- >;
813
-
814
- export type CollectorS3S31 = {
815
- /**
816
- * Partitioning scheme used for this dataset. Using a known scheme like DDSS enables more efficient data reading and retrieval.
817
- */
818
- partitioningScheme?: PartitioningScheme1 | undefined;
819
- /**
820
- * Collector type: s3
821
- */
822
- type: CollectorS3Type1;
823
- /**
824
- * Name of the predefined Destination that will be used to auto-populate Collector settings
825
- */
826
- outputName?: string | undefined;
827
- /**
828
- * S3 Bucket from which to collect data
829
- */
830
- bucket: string;
831
- /**
832
- * Maximum file size for each Parquet chunk
833
- */
834
- parquetChunkSizeMB?: number | undefined;
835
- /**
836
- * Maximum time allowed for downloading a Parquet chunk. Processing will stop if a chunk cannot be downloaded within the time specified.
837
- */
838
- parquetChunkDownloadTimeout?: number | undefined;
839
- /**
840
- * Region from which to retrieve data
841
- */
842
- region?: string | undefined;
843
- /**
844
- * Directory where data will be collected. Templating (such as 'myDir/${datacenter}/${host}/${app}/') and time-based tokens (such as 'myOtherDir/${_time:%Y}/${_time:%m}/${_time:%d}/') are supported. Can be a constant (enclosed in quotes) or a JavaScript expression.
845
- */
846
- path?: string | undefined;
847
- /**
848
- * Allows using template tokens as context for expressions that enrich discovery results. For example, given a template /path/${epoch}, an extractor under key "epoch" with an expression {date: new Date(+value*1000)}, will enrich discovery results with a human readable "date" field.
849
- */
850
- extractors?: Array<CollectorS3Extractor1> | undefined;
851
- /**
852
- * AWS authentication method. Choose Auto to use IAM roles.
853
- */
854
- awsAuthenticationMethod?: CollectorS3AuthenticationMethod1 | undefined;
855
- /**
856
- * Must point to an S3-compatible endpoint. If empty, defaults to an AWS region-specific endpoint.
857
- */
858
- endpoint?: string | undefined;
859
- /**
860
- * Signature version to use for signing S3 requests
861
- */
862
- signatureVersion?: CollectorS3SignatureVersion1 | undefined;
863
- /**
864
- * Use AssumeRole credentials
865
- */
866
- enableAssumeRole?: boolean | undefined;
867
- /**
868
- * Amazon Resource Name (ARN) of the role to assume
869
- */
870
- assumeRoleArn?: string | undefined;
871
- /**
872
- * External ID to use when assuming role
873
- */
874
- assumeRoleExternalId?: string | undefined;
875
- /**
876
- * Duration of the Assumed Role's session, in seconds. Minimum is 900 (15 minutes), default is 3600 (1 hour), and maximum is 43200 (12 hours).
877
- */
878
- durationSeconds?: number | undefined;
879
- /**
880
- * Maximum number of metadata objects to batch before recording as results
881
- */
882
- maxBatchSize?: number | undefined;
883
- /**
884
- * Traverse and include files from subdirectories. Leave this option enabled to ensure that all nested directories are searched and their contents collected.
885
- */
886
- recurse?: boolean | undefined;
887
- /**
888
- * Reuse connections between requests to improve performance
889
- */
890
- reuseConnections?: boolean | undefined;
891
- /**
892
- * Reject certificates that cannot be verified against a valid CA (such as a self-signed certificate)
893
- */
894
- rejectUnauthorized?: boolean | undefined;
895
- /**
896
- * Disable if you can access files within the bucket but not the bucket itself. Resolves errors of the form "discover task initialization failed...error: Forbidden".
897
- */
898
- verifyPermissions?: boolean | undefined;
899
- /**
900
- * Disable Collector event time filtering when a date range is specified
901
- */
902
- disableTimeFilter?: boolean | undefined;
903
- /**
904
- * Access key. If not present, will fall back to env.AWS_ACCESS_KEY_ID, or to the metadata endpoint for IAM creds. Optional when running on AWS. This value can be a constant or a JavaScript expression.
905
- */
906
- awsApiKey?: string | undefined;
907
- /**
908
- * Secret key. If not present, will fall back to env.AWS_SECRET_ACCESS_KEY, or to the metadata endpoint for IAM creds. Optional when running on AWS. This value can be a constant or a JavaScript expression.
909
- */
910
- awsSecretKey?: string | undefined;
911
- /**
912
- * Select or create a stored secret that references AWS access key and secret key.
913
- */
914
- awsSecret?: string | undefined;
915
- };
916
-
917
- export type CollectorS3 =
918
- | CollectorS3S31
919
- | CollectorS3S32
920
- | CollectorS3S33
921
- | CollectorS3S34
922
- | CollectorS3S35;
923
-
924
- /** @internal */
925
- export const CollectorS3AuthenticationMethod5$inboundSchema: z.ZodType<
926
- CollectorS3AuthenticationMethod5,
927
- z.ZodTypeDef,
928
- unknown
929
- > = openEnums.inboundSchema(CollectorS3AuthenticationMethod5);
930
- /** @internal */
931
- export const CollectorS3AuthenticationMethod5$outboundSchema: z.ZodType<
932
- string,
933
- z.ZodTypeDef,
934
- CollectorS3AuthenticationMethod5
935
- > = openEnums.outboundSchema(CollectorS3AuthenticationMethod5);
936
-
937
- /** @internal */
938
- export const CollectorS3Type5$inboundSchema: z.ZodNativeEnum<
939
- typeof CollectorS3Type5
940
- > = z.nativeEnum(CollectorS3Type5);
941
- /** @internal */
942
- export const CollectorS3Type5$outboundSchema: z.ZodNativeEnum<
943
- typeof CollectorS3Type5
944
- > = CollectorS3Type5$inboundSchema;
945
-
946
- /** @internal */
947
- export const PartitioningScheme5$inboundSchema: z.ZodType<
948
- PartitioningScheme5,
949
- z.ZodTypeDef,
950
- unknown
951
- > = openEnums.inboundSchema(PartitioningScheme5);
952
- /** @internal */
953
- export const PartitioningScheme5$outboundSchema: z.ZodType<
954
- string,
955
- z.ZodTypeDef,
956
- PartitioningScheme5
957
- > = openEnums.outboundSchema(PartitioningScheme5);
958
-
959
- /** @internal */
960
- export const CollectorS3Extractor5$inboundSchema: z.ZodType<
961
- CollectorS3Extractor5,
962
- z.ZodTypeDef,
963
- unknown
964
- > = z.object({
965
- key: z.string(),
966
- expression: z.string(),
967
- });
968
- /** @internal */
969
- export type CollectorS3Extractor5$Outbound = {
970
- key: string;
971
- expression: string;
972
- };
973
-
974
- /** @internal */
975
- export const CollectorS3Extractor5$outboundSchema: z.ZodType<
976
- CollectorS3Extractor5$Outbound,
977
- z.ZodTypeDef,
978
- CollectorS3Extractor5
979
- > = z.object({
980
- key: z.string(),
981
- expression: z.string(),
982
- });
983
-
984
- export function collectorS3Extractor5ToJSON(
985
- collectorS3Extractor5: CollectorS3Extractor5,
986
- ): string {
987
- return JSON.stringify(
988
- CollectorS3Extractor5$outboundSchema.parse(collectorS3Extractor5),
989
- );
990
- }
991
- export function collectorS3Extractor5FromJSON(
992
- jsonString: string,
993
- ): SafeParseResult<CollectorS3Extractor5, SDKValidationError> {
994
- return safeParse(
995
- jsonString,
996
- (x) => CollectorS3Extractor5$inboundSchema.parse(JSON.parse(x)),
997
- `Failed to parse 'CollectorS3Extractor5' from JSON`,
998
- );
999
- }
1000
-
1001
- /** @internal */
1002
- export const CollectorS3SignatureVersion5$inboundSchema: z.ZodType<
1003
- CollectorS3SignatureVersion5,
1004
- z.ZodTypeDef,
1005
- unknown
1006
- > = openEnums.inboundSchema(CollectorS3SignatureVersion5);
1007
- /** @internal */
1008
- export const CollectorS3SignatureVersion5$outboundSchema: z.ZodType<
1009
- string,
1010
- z.ZodTypeDef,
1011
- CollectorS3SignatureVersion5
1012
- > = openEnums.outboundSchema(CollectorS3SignatureVersion5);
1013
-
1014
- /** @internal */
1015
- export const CollectorS3S35$inboundSchema: z.ZodType<
1016
- CollectorS3S35,
1017
- z.ZodTypeDef,
1018
- unknown
1019
- > = z.object({
1020
- awsAuthenticationMethod: CollectorS3AuthenticationMethod5$inboundSchema
1021
- .default("auto"),
1022
- awsSecret: z.string().optional(),
1023
- type: CollectorS3Type5$inboundSchema,
1024
- outputName: z.string().optional(),
1025
- bucket: z.string(),
1026
- parquetChunkSizeMB: z.number().default(5),
1027
- parquetChunkDownloadTimeout: z.number().default(600),
1028
- region: z.string().optional(),
1029
- path: z.string().optional(),
1030
- partitioningScheme: PartitioningScheme5$inboundSchema.default("none"),
1031
- extractors: z.array(z.lazy(() => CollectorS3Extractor5$inboundSchema))
1032
- .optional(),
1033
- endpoint: z.string().optional(),
1034
- signatureVersion: CollectorS3SignatureVersion5$inboundSchema.default("v4"),
1035
- enableAssumeRole: z.boolean().default(false),
1036
- assumeRoleArn: z.string().optional(),
1037
- assumeRoleExternalId: z.string().optional(),
1038
- durationSeconds: z.number().default(3600),
1039
- maxBatchSize: z.number().default(10),
1040
- recurse: z.boolean().default(true),
1041
- reuseConnections: z.boolean().default(true),
1042
- rejectUnauthorized: z.boolean().default(true),
1043
- verifyPermissions: z.boolean().default(true),
1044
- disableTimeFilter: z.boolean().default(false),
1045
- awsApiKey: z.string().optional(),
1046
- awsSecretKey: z.string().optional(),
1047
- });
1048
- /** @internal */
1049
- export type CollectorS3S35$Outbound = {
1050
- awsAuthenticationMethod: string;
1051
- awsSecret?: string | undefined;
1052
- type: string;
1053
- outputName?: string | undefined;
1054
- bucket: string;
1055
- parquetChunkSizeMB: number;
1056
- parquetChunkDownloadTimeout: number;
1057
- region?: string | undefined;
1058
- path?: string | undefined;
1059
- partitioningScheme: string;
1060
- extractors?: Array<CollectorS3Extractor5$Outbound> | undefined;
1061
- endpoint?: string | undefined;
1062
- signatureVersion: string;
1063
- enableAssumeRole: boolean;
1064
- assumeRoleArn?: string | undefined;
1065
- assumeRoleExternalId?: string | undefined;
1066
- durationSeconds: number;
1067
- maxBatchSize: number;
1068
- recurse: boolean;
1069
- reuseConnections: boolean;
1070
- rejectUnauthorized: boolean;
1071
- verifyPermissions: boolean;
1072
- disableTimeFilter: boolean;
1073
- awsApiKey?: string | undefined;
1074
- awsSecretKey?: string | undefined;
1075
- };
1076
-
1077
- /** @internal */
1078
- export const CollectorS3S35$outboundSchema: z.ZodType<
1079
- CollectorS3S35$Outbound,
1080
- z.ZodTypeDef,
1081
- CollectorS3S35
1082
- > = z.object({
1083
- awsAuthenticationMethod: CollectorS3AuthenticationMethod5$outboundSchema
1084
- .default("auto"),
1085
- awsSecret: z.string().optional(),
1086
- type: CollectorS3Type5$outboundSchema,
1087
- outputName: z.string().optional(),
1088
- bucket: z.string(),
1089
- parquetChunkSizeMB: z.number().default(5),
1090
- parquetChunkDownloadTimeout: z.number().default(600),
1091
- region: z.string().optional(),
1092
- path: z.string().optional(),
1093
- partitioningScheme: PartitioningScheme5$outboundSchema.default("none"),
1094
- extractors: z.array(z.lazy(() => CollectorS3Extractor5$outboundSchema))
1095
- .optional(),
1096
- endpoint: z.string().optional(),
1097
- signatureVersion: CollectorS3SignatureVersion5$outboundSchema.default("v4"),
1098
- enableAssumeRole: z.boolean().default(false),
1099
- assumeRoleArn: z.string().optional(),
1100
- assumeRoleExternalId: z.string().optional(),
1101
- durationSeconds: z.number().default(3600),
1102
- maxBatchSize: z.number().default(10),
1103
- recurse: z.boolean().default(true),
1104
- reuseConnections: z.boolean().default(true),
1105
- rejectUnauthorized: z.boolean().default(true),
1106
- verifyPermissions: z.boolean().default(true),
1107
- disableTimeFilter: z.boolean().default(false),
1108
- awsApiKey: z.string().optional(),
1109
- awsSecretKey: z.string().optional(),
1110
- });
1111
-
1112
- export function collectorS3S35ToJSON(collectorS3S35: CollectorS3S35): string {
1113
- return JSON.stringify(CollectorS3S35$outboundSchema.parse(collectorS3S35));
1114
- }
1115
- export function collectorS3S35FromJSON(
1116
- jsonString: string,
1117
- ): SafeParseResult<CollectorS3S35, SDKValidationError> {
1118
- return safeParse(
1119
- jsonString,
1120
- (x) => CollectorS3S35$inboundSchema.parse(JSON.parse(x)),
1121
- `Failed to parse 'CollectorS3S35' from JSON`,
1122
- );
1123
- }
1124
-
1125
- /** @internal */
1126
- export const CollectorS3AuthenticationMethod4$inboundSchema: z.ZodType<
1127
- CollectorS3AuthenticationMethod4,
1128
- z.ZodTypeDef,
1129
- unknown
1130
- > = openEnums.inboundSchema(CollectorS3AuthenticationMethod4);
1131
- /** @internal */
1132
- export const CollectorS3AuthenticationMethod4$outboundSchema: z.ZodType<
1133
- string,
1134
- z.ZodTypeDef,
1135
- CollectorS3AuthenticationMethod4
1136
- > = openEnums.outboundSchema(CollectorS3AuthenticationMethod4);
1137
-
1138
- /** @internal */
1139
- export const CollectorS3Type4$inboundSchema: z.ZodNativeEnum<
1140
- typeof CollectorS3Type4
1141
- > = z.nativeEnum(CollectorS3Type4);
1142
- /** @internal */
1143
- export const CollectorS3Type4$outboundSchema: z.ZodNativeEnum<
1144
- typeof CollectorS3Type4
1145
- > = CollectorS3Type4$inboundSchema;
1146
-
1147
- /** @internal */
1148
- export const PartitioningScheme4$inboundSchema: z.ZodType<
1149
- PartitioningScheme4,
1150
- z.ZodTypeDef,
1151
- unknown
1152
- > = openEnums.inboundSchema(PartitioningScheme4);
1153
- /** @internal */
1154
- export const PartitioningScheme4$outboundSchema: z.ZodType<
1155
- string,
1156
- z.ZodTypeDef,
1157
- PartitioningScheme4
1158
- > = openEnums.outboundSchema(PartitioningScheme4);
1159
-
1160
- /** @internal */
1161
- export const CollectorS3Extractor4$inboundSchema: z.ZodType<
1162
- CollectorS3Extractor4,
1163
- z.ZodTypeDef,
1164
- unknown
1165
- > = z.object({
1166
- key: z.string(),
1167
- expression: z.string(),
1168
- });
1169
- /** @internal */
1170
- export type CollectorS3Extractor4$Outbound = {
1171
- key: string;
1172
- expression: string;
1173
- };
1174
-
1175
- /** @internal */
1176
- export const CollectorS3Extractor4$outboundSchema: z.ZodType<
1177
- CollectorS3Extractor4$Outbound,
1178
- z.ZodTypeDef,
1179
- CollectorS3Extractor4
1180
- > = z.object({
1181
- key: z.string(),
1182
- expression: z.string(),
1183
- });
1184
-
1185
- export function collectorS3Extractor4ToJSON(
1186
- collectorS3Extractor4: CollectorS3Extractor4,
1187
- ): string {
1188
- return JSON.stringify(
1189
- CollectorS3Extractor4$outboundSchema.parse(collectorS3Extractor4),
1190
- );
1191
- }
1192
- export function collectorS3Extractor4FromJSON(
1193
- jsonString: string,
1194
- ): SafeParseResult<CollectorS3Extractor4, SDKValidationError> {
1195
- return safeParse(
1196
- jsonString,
1197
- (x) => CollectorS3Extractor4$inboundSchema.parse(JSON.parse(x)),
1198
- `Failed to parse 'CollectorS3Extractor4' from JSON`,
1199
- );
1200
- }
1201
-
1202
- /** @internal */
1203
- export const CollectorS3SignatureVersion4$inboundSchema: z.ZodType<
1204
- CollectorS3SignatureVersion4,
1205
- z.ZodTypeDef,
1206
- unknown
1207
- > = openEnums.inboundSchema(CollectorS3SignatureVersion4);
1208
- /** @internal */
1209
- export const CollectorS3SignatureVersion4$outboundSchema: z.ZodType<
1210
- string,
1211
- z.ZodTypeDef,
1212
- CollectorS3SignatureVersion4
1213
- > = openEnums.outboundSchema(CollectorS3SignatureVersion4);
1214
-
1215
- /** @internal */
1216
- export const CollectorS3S34$inboundSchema: z.ZodType<
1217
- CollectorS3S34,
1218
- z.ZodTypeDef,
1219
- unknown
1220
- > = z.object({
1221
- awsAuthenticationMethod: CollectorS3AuthenticationMethod4$inboundSchema
1222
- .default("auto"),
1223
- awsApiKey: z.string().optional(),
1224
- awsSecretKey: z.string().optional(),
1225
- type: CollectorS3Type4$inboundSchema,
1226
- outputName: z.string().optional(),
1227
- bucket: z.string(),
1228
- parquetChunkSizeMB: z.number().default(5),
1229
- parquetChunkDownloadTimeout: z.number().default(600),
1230
- region: z.string().optional(),
1231
- path: z.string().optional(),
1232
- partitioningScheme: PartitioningScheme4$inboundSchema.default("none"),
1233
- extractors: z.array(z.lazy(() => CollectorS3Extractor4$inboundSchema))
1234
- .optional(),
1235
- endpoint: z.string().optional(),
1236
- signatureVersion: CollectorS3SignatureVersion4$inboundSchema.default("v4"),
1237
- enableAssumeRole: z.boolean().default(false),
1238
- assumeRoleArn: z.string().optional(),
1239
- assumeRoleExternalId: z.string().optional(),
1240
- durationSeconds: z.number().default(3600),
1241
- maxBatchSize: z.number().default(10),
1242
- recurse: z.boolean().default(true),
1243
- reuseConnections: z.boolean().default(true),
1244
- rejectUnauthorized: z.boolean().default(true),
1245
- verifyPermissions: z.boolean().default(true),
1246
- disableTimeFilter: z.boolean().default(false),
1247
- awsSecret: z.string().optional(),
1248
- });
1249
- /** @internal */
1250
- export type CollectorS3S34$Outbound = {
1251
- awsAuthenticationMethod: string;
1252
- awsApiKey?: string | undefined;
1253
- awsSecretKey?: string | undefined;
1254
- type: string;
1255
- outputName?: string | undefined;
1256
- bucket: string;
1257
- parquetChunkSizeMB: number;
1258
- parquetChunkDownloadTimeout: number;
1259
- region?: string | undefined;
1260
- path?: string | undefined;
1261
- partitioningScheme: string;
1262
- extractors?: Array<CollectorS3Extractor4$Outbound> | undefined;
1263
- endpoint?: string | undefined;
1264
- signatureVersion: string;
1265
- enableAssumeRole: boolean;
1266
- assumeRoleArn?: string | undefined;
1267
- assumeRoleExternalId?: string | undefined;
1268
- durationSeconds: number;
1269
- maxBatchSize: number;
1270
- recurse: boolean;
1271
- reuseConnections: boolean;
1272
- rejectUnauthorized: boolean;
1273
- verifyPermissions: boolean;
1274
- disableTimeFilter: boolean;
1275
- awsSecret?: string | undefined;
1276
- };
1277
-
1278
- /** @internal */
1279
- export const CollectorS3S34$outboundSchema: z.ZodType<
1280
- CollectorS3S34$Outbound,
1281
- z.ZodTypeDef,
1282
- CollectorS3S34
1283
- > = z.object({
1284
- awsAuthenticationMethod: CollectorS3AuthenticationMethod4$outboundSchema
1285
- .default("auto"),
1286
- awsApiKey: z.string().optional(),
1287
- awsSecretKey: z.string().optional(),
1288
- type: CollectorS3Type4$outboundSchema,
1289
- outputName: z.string().optional(),
1290
- bucket: z.string(),
1291
- parquetChunkSizeMB: z.number().default(5),
1292
- parquetChunkDownloadTimeout: z.number().default(600),
1293
- region: z.string().optional(),
1294
- path: z.string().optional(),
1295
- partitioningScheme: PartitioningScheme4$outboundSchema.default("none"),
1296
- extractors: z.array(z.lazy(() => CollectorS3Extractor4$outboundSchema))
1297
- .optional(),
1298
- endpoint: z.string().optional(),
1299
- signatureVersion: CollectorS3SignatureVersion4$outboundSchema.default("v4"),
1300
- enableAssumeRole: z.boolean().default(false),
1301
- assumeRoleArn: z.string().optional(),
1302
- assumeRoleExternalId: z.string().optional(),
1303
- durationSeconds: z.number().default(3600),
1304
- maxBatchSize: z.number().default(10),
1305
- recurse: z.boolean().default(true),
1306
- reuseConnections: z.boolean().default(true),
1307
- rejectUnauthorized: z.boolean().default(true),
1308
- verifyPermissions: z.boolean().default(true),
1309
- disableTimeFilter: z.boolean().default(false),
1310
- awsSecret: z.string().optional(),
1311
- });
1312
-
1313
- export function collectorS3S34ToJSON(collectorS3S34: CollectorS3S34): string {
1314
- return JSON.stringify(CollectorS3S34$outboundSchema.parse(collectorS3S34));
1315
- }
1316
- export function collectorS3S34FromJSON(
1317
- jsonString: string,
1318
- ): SafeParseResult<CollectorS3S34, SDKValidationError> {
1319
- return safeParse(
1320
- jsonString,
1321
- (x) => CollectorS3S34$inboundSchema.parse(JSON.parse(x)),
1322
- `Failed to parse 'CollectorS3S34' from JSON`,
1323
- );
1324
- }
1325
-
1326
- /** @internal */
1327
- export const CollectorS3AuthenticationMethod3$inboundSchema: z.ZodType<
1328
- CollectorS3AuthenticationMethod3,
1329
- z.ZodTypeDef,
1330
- unknown
1331
- > = openEnums.inboundSchema(CollectorS3AuthenticationMethod3);
1332
- /** @internal */
1333
- export const CollectorS3AuthenticationMethod3$outboundSchema: z.ZodType<
1334
- string,
1335
- z.ZodTypeDef,
1336
- CollectorS3AuthenticationMethod3
1337
- > = openEnums.outboundSchema(CollectorS3AuthenticationMethod3);
1338
-
1339
- /** @internal */
1340
- export const CollectorS3Type3$inboundSchema: z.ZodNativeEnum<
1341
- typeof CollectorS3Type3
1342
- > = z.nativeEnum(CollectorS3Type3);
1343
- /** @internal */
1344
- export const CollectorS3Type3$outboundSchema: z.ZodNativeEnum<
1345
- typeof CollectorS3Type3
1346
- > = CollectorS3Type3$inboundSchema;
1347
-
1348
- /** @internal */
1349
- export const PartitioningScheme3$inboundSchema: z.ZodType<
1350
- PartitioningScheme3,
1351
- z.ZodTypeDef,
1352
- unknown
1353
- > = openEnums.inboundSchema(PartitioningScheme3);
1354
- /** @internal */
1355
- export const PartitioningScheme3$outboundSchema: z.ZodType<
1356
- string,
1357
- z.ZodTypeDef,
1358
- PartitioningScheme3
1359
- > = openEnums.outboundSchema(PartitioningScheme3);
1360
-
1361
- /** @internal */
1362
- export const CollectorS3Extractor3$inboundSchema: z.ZodType<
1363
- CollectorS3Extractor3,
1364
- z.ZodTypeDef,
1365
- unknown
1366
- > = z.object({
1367
- key: z.string(),
1368
- expression: z.string(),
1369
- });
1370
- /** @internal */
1371
- export type CollectorS3Extractor3$Outbound = {
1372
- key: string;
1373
- expression: string;
1374
- };
1375
-
1376
- /** @internal */
1377
- export const CollectorS3Extractor3$outboundSchema: z.ZodType<
1378
- CollectorS3Extractor3$Outbound,
1379
- z.ZodTypeDef,
1380
- CollectorS3Extractor3
1381
- > = z.object({
1382
- key: z.string(),
1383
- expression: z.string(),
1384
- });
1385
-
1386
- export function collectorS3Extractor3ToJSON(
1387
- collectorS3Extractor3: CollectorS3Extractor3,
1388
- ): string {
1389
- return JSON.stringify(
1390
- CollectorS3Extractor3$outboundSchema.parse(collectorS3Extractor3),
1391
- );
1392
- }
1393
- export function collectorS3Extractor3FromJSON(
1394
- jsonString: string,
1395
- ): SafeParseResult<CollectorS3Extractor3, SDKValidationError> {
1396
- return safeParse(
1397
- jsonString,
1398
- (x) => CollectorS3Extractor3$inboundSchema.parse(JSON.parse(x)),
1399
- `Failed to parse 'CollectorS3Extractor3' from JSON`,
1400
- );
1401
- }
1402
-
1403
- /** @internal */
1404
- export const CollectorS3SignatureVersion3$inboundSchema: z.ZodType<
1405
- CollectorS3SignatureVersion3,
1406
- z.ZodTypeDef,
1407
- unknown
1408
- > = openEnums.inboundSchema(CollectorS3SignatureVersion3);
1409
- /** @internal */
1410
- export const CollectorS3SignatureVersion3$outboundSchema: z.ZodType<
1411
- string,
1412
- z.ZodTypeDef,
1413
- CollectorS3SignatureVersion3
1414
- > = openEnums.outboundSchema(CollectorS3SignatureVersion3);
1415
-
1416
- /** @internal */
1417
- export const CollectorS3S33$inboundSchema: z.ZodType<
1418
- CollectorS3S33,
1419
- z.ZodTypeDef,
1420
- unknown
1421
- > = z.object({
1422
- awsAuthenticationMethod: CollectorS3AuthenticationMethod3$inboundSchema
1423
- .default("auto"),
1424
- type: CollectorS3Type3$inboundSchema,
1425
- outputName: z.string().optional(),
1426
- bucket: z.string(),
1427
- parquetChunkSizeMB: z.number().default(5),
1428
- parquetChunkDownloadTimeout: z.number().default(600),
1429
- region: z.string().optional(),
1430
- path: z.string().optional(),
1431
- partitioningScheme: PartitioningScheme3$inboundSchema.default("none"),
1432
- extractors: z.array(z.lazy(() => CollectorS3Extractor3$inboundSchema))
1433
- .optional(),
1434
- endpoint: z.string().optional(),
1435
- signatureVersion: CollectorS3SignatureVersion3$inboundSchema.default("v4"),
1436
- enableAssumeRole: z.boolean().default(false),
1437
- assumeRoleArn: z.string().optional(),
1438
- assumeRoleExternalId: z.string().optional(),
1439
- durationSeconds: z.number().default(3600),
1440
- maxBatchSize: z.number().default(10),
1441
- recurse: z.boolean().default(true),
1442
- reuseConnections: z.boolean().default(true),
1443
- rejectUnauthorized: z.boolean().default(true),
1444
- verifyPermissions: z.boolean().default(true),
1445
- disableTimeFilter: z.boolean().default(false),
1446
- awsApiKey: z.string().optional(),
1447
- awsSecretKey: z.string().optional(),
1448
- awsSecret: z.string().optional(),
1449
- });
1450
- /** @internal */
1451
- export type CollectorS3S33$Outbound = {
1452
- awsAuthenticationMethod: string;
1453
- type: string;
1454
- outputName?: string | undefined;
1455
- bucket: string;
1456
- parquetChunkSizeMB: number;
1457
- parquetChunkDownloadTimeout: number;
1458
- region?: string | undefined;
1459
- path?: string | undefined;
1460
- partitioningScheme: string;
1461
- extractors?: Array<CollectorS3Extractor3$Outbound> | undefined;
1462
- endpoint?: string | undefined;
1463
- signatureVersion: string;
1464
- enableAssumeRole: boolean;
1465
- assumeRoleArn?: string | undefined;
1466
- assumeRoleExternalId?: string | undefined;
1467
- durationSeconds: number;
1468
- maxBatchSize: number;
1469
- recurse: boolean;
1470
- reuseConnections: boolean;
1471
- rejectUnauthorized: boolean;
1472
- verifyPermissions: boolean;
1473
- disableTimeFilter: boolean;
1474
- awsApiKey?: string | undefined;
1475
- awsSecretKey?: string | undefined;
1476
- awsSecret?: string | undefined;
1477
- };
1478
-
1479
- /** @internal */
1480
- export const CollectorS3S33$outboundSchema: z.ZodType<
1481
- CollectorS3S33$Outbound,
1482
- z.ZodTypeDef,
1483
- CollectorS3S33
1484
- > = z.object({
1485
- awsAuthenticationMethod: CollectorS3AuthenticationMethod3$outboundSchema
1486
- .default("auto"),
1487
- type: CollectorS3Type3$outboundSchema,
1488
- outputName: z.string().optional(),
1489
- bucket: z.string(),
1490
- parquetChunkSizeMB: z.number().default(5),
1491
- parquetChunkDownloadTimeout: z.number().default(600),
1492
- region: z.string().optional(),
1493
- path: z.string().optional(),
1494
- partitioningScheme: PartitioningScheme3$outboundSchema.default("none"),
1495
- extractors: z.array(z.lazy(() => CollectorS3Extractor3$outboundSchema))
1496
- .optional(),
1497
- endpoint: z.string().optional(),
1498
- signatureVersion: CollectorS3SignatureVersion3$outboundSchema.default("v4"),
1499
- enableAssumeRole: z.boolean().default(false),
1500
- assumeRoleArn: z.string().optional(),
1501
- assumeRoleExternalId: z.string().optional(),
1502
- durationSeconds: z.number().default(3600),
1503
- maxBatchSize: z.number().default(10),
1504
- recurse: z.boolean().default(true),
1505
- reuseConnections: z.boolean().default(true),
1506
- rejectUnauthorized: z.boolean().default(true),
1507
- verifyPermissions: z.boolean().default(true),
1508
- disableTimeFilter: z.boolean().default(false),
1509
- awsApiKey: z.string().optional(),
1510
- awsSecretKey: z.string().optional(),
1511
- awsSecret: z.string().optional(),
1512
- });
1513
-
1514
- export function collectorS3S33ToJSON(collectorS3S33: CollectorS3S33): string {
1515
- return JSON.stringify(CollectorS3S33$outboundSchema.parse(collectorS3S33));
1516
- }
1517
- export function collectorS3S33FromJSON(
1518
- jsonString: string,
1519
- ): SafeParseResult<CollectorS3S33, SDKValidationError> {
1520
- return safeParse(
1521
- jsonString,
1522
- (x) => CollectorS3S33$inboundSchema.parse(JSON.parse(x)),
1523
- `Failed to parse 'CollectorS3S33' from JSON`,
1524
- );
1525
- }
1526
-
1527
- /** @internal */
1528
- export const PartitioningScheme2$inboundSchema: z.ZodType<
1529
- PartitioningScheme2,
1530
- z.ZodTypeDef,
1531
- unknown
1532
- > = openEnums.inboundSchema(PartitioningScheme2);
1533
- /** @internal */
1534
- export const PartitioningScheme2$outboundSchema: z.ZodType<
1535
- string,
1536
- z.ZodTypeDef,
1537
- PartitioningScheme2
1538
- > = openEnums.outboundSchema(PartitioningScheme2);
1539
-
1540
- /** @internal */
1541
- export const CollectorS3Type2$inboundSchema: z.ZodNativeEnum<
1542
- typeof CollectorS3Type2
1543
- > = z.nativeEnum(CollectorS3Type2);
1544
- /** @internal */
1545
- export const CollectorS3Type2$outboundSchema: z.ZodNativeEnum<
1546
- typeof CollectorS3Type2
1547
- > = CollectorS3Type2$inboundSchema;
1548
-
1549
- /** @internal */
1550
- export const CollectorS3Extractor2$inboundSchema: z.ZodType<
1551
- CollectorS3Extractor2,
1552
- z.ZodTypeDef,
1553
- unknown
1554
- > = z.object({
1555
- key: z.string(),
1556
- expression: z.string(),
1557
- });
1558
- /** @internal */
1559
- export type CollectorS3Extractor2$Outbound = {
1560
- key: string;
1561
- expression: string;
1562
- };
1563
-
1564
- /** @internal */
1565
- export const CollectorS3Extractor2$outboundSchema: z.ZodType<
1566
- CollectorS3Extractor2$Outbound,
1567
- z.ZodTypeDef,
1568
- CollectorS3Extractor2
1569
- > = z.object({
1570
- key: z.string(),
1571
- expression: z.string(),
1572
- });
1573
-
1574
- export function collectorS3Extractor2ToJSON(
1575
- collectorS3Extractor2: CollectorS3Extractor2,
1576
- ): string {
1577
- return JSON.stringify(
1578
- CollectorS3Extractor2$outboundSchema.parse(collectorS3Extractor2),
1579
- );
1580
- }
1581
- export function collectorS3Extractor2FromJSON(
1582
- jsonString: string,
1583
- ): SafeParseResult<CollectorS3Extractor2, SDKValidationError> {
1584
- return safeParse(
1585
- jsonString,
1586
- (x) => CollectorS3Extractor2$inboundSchema.parse(JSON.parse(x)),
1587
- `Failed to parse 'CollectorS3Extractor2' from JSON`,
1588
- );
1589
- }
1590
-
1591
- /** @internal */
1592
- export const CollectorS3AuthenticationMethod2$inboundSchema: z.ZodType<
1593
- CollectorS3AuthenticationMethod2,
1594
- z.ZodTypeDef,
1595
- unknown
1596
- > = openEnums.inboundSchema(CollectorS3AuthenticationMethod2);
1597
- /** @internal */
1598
- export const CollectorS3AuthenticationMethod2$outboundSchema: z.ZodType<
1599
- string,
1600
- z.ZodTypeDef,
1601
- CollectorS3AuthenticationMethod2
1602
- > = openEnums.outboundSchema(CollectorS3AuthenticationMethod2);
1603
-
1604
- /** @internal */
1605
- export const CollectorS3SignatureVersion2$inboundSchema: z.ZodType<
1606
- CollectorS3SignatureVersion2,
1607
- z.ZodTypeDef,
1608
- unknown
1609
- > = openEnums.inboundSchema(CollectorS3SignatureVersion2);
1610
- /** @internal */
1611
- export const CollectorS3SignatureVersion2$outboundSchema: z.ZodType<
1612
- string,
1613
- z.ZodTypeDef,
1614
- CollectorS3SignatureVersion2
1615
- > = openEnums.outboundSchema(CollectorS3SignatureVersion2);
1616
-
1617
- /** @internal */
1618
- export const CollectorS3S32$inboundSchema: z.ZodType<
1619
- CollectorS3S32,
1620
- z.ZodTypeDef,
1621
- unknown
1622
- > = z.object({
1623
- partitioningScheme: PartitioningScheme2$inboundSchema.default("none"),
1624
- recurse: z.boolean().default(true),
1625
- type: CollectorS3Type2$inboundSchema,
1626
- outputName: z.string().optional(),
1627
- bucket: z.string(),
1628
- parquetChunkSizeMB: z.number().default(5),
1629
- parquetChunkDownloadTimeout: z.number().default(600),
1630
- region: z.string().optional(),
1631
- path: z.string().optional(),
1632
- extractors: z.array(z.lazy(() => CollectorS3Extractor2$inboundSchema))
1633
- .optional(),
1634
- awsAuthenticationMethod: CollectorS3AuthenticationMethod2$inboundSchema
1635
- .default("auto"),
1636
- endpoint: z.string().optional(),
1637
- signatureVersion: CollectorS3SignatureVersion2$inboundSchema.default("v4"),
1638
- enableAssumeRole: z.boolean().default(false),
1639
- assumeRoleArn: z.string().optional(),
1640
- assumeRoleExternalId: z.string().optional(),
1641
- durationSeconds: z.number().default(3600),
1642
- maxBatchSize: z.number().default(10),
1643
- reuseConnections: z.boolean().default(true),
1644
- rejectUnauthorized: z.boolean().default(true),
1645
- verifyPermissions: z.boolean().default(true),
1646
- disableTimeFilter: z.boolean().default(false),
1647
- awsApiKey: z.string().optional(),
1648
- awsSecretKey: z.string().optional(),
1649
- awsSecret: z.string().optional(),
1650
- });
1651
- /** @internal */
1652
- export type CollectorS3S32$Outbound = {
1653
- partitioningScheme: string;
1654
- recurse: boolean;
1655
- type: string;
1656
- outputName?: string | undefined;
1657
- bucket: string;
1658
- parquetChunkSizeMB: number;
1659
- parquetChunkDownloadTimeout: number;
1660
- region?: string | undefined;
1661
- path?: string | undefined;
1662
- extractors?: Array<CollectorS3Extractor2$Outbound> | undefined;
1663
- awsAuthenticationMethod: string;
1664
- endpoint?: string | undefined;
1665
- signatureVersion: string;
1666
- enableAssumeRole: boolean;
1667
- assumeRoleArn?: string | undefined;
1668
- assumeRoleExternalId?: string | undefined;
1669
- durationSeconds: number;
1670
- maxBatchSize: number;
1671
- reuseConnections: boolean;
1672
- rejectUnauthorized: boolean;
1673
- verifyPermissions: boolean;
1674
- disableTimeFilter: boolean;
1675
- awsApiKey?: string | undefined;
1676
- awsSecretKey?: string | undefined;
1677
- awsSecret?: string | undefined;
1678
- };
1679
-
1680
- /** @internal */
1681
- export const CollectorS3S32$outboundSchema: z.ZodType<
1682
- CollectorS3S32$Outbound,
1683
- z.ZodTypeDef,
1684
- CollectorS3S32
1685
- > = z.object({
1686
- partitioningScheme: PartitioningScheme2$outboundSchema.default("none"),
1687
- recurse: z.boolean().default(true),
1688
- type: CollectorS3Type2$outboundSchema,
1689
- outputName: z.string().optional(),
1690
- bucket: z.string(),
1691
- parquetChunkSizeMB: z.number().default(5),
1692
- parquetChunkDownloadTimeout: z.number().default(600),
1693
- region: z.string().optional(),
1694
- path: z.string().optional(),
1695
- extractors: z.array(z.lazy(() => CollectorS3Extractor2$outboundSchema))
1696
- .optional(),
1697
- awsAuthenticationMethod: CollectorS3AuthenticationMethod2$outboundSchema
1698
- .default("auto"),
1699
- endpoint: z.string().optional(),
1700
- signatureVersion: CollectorS3SignatureVersion2$outboundSchema.default("v4"),
1701
- enableAssumeRole: z.boolean().default(false),
1702
- assumeRoleArn: z.string().optional(),
1703
- assumeRoleExternalId: z.string().optional(),
1704
- durationSeconds: z.number().default(3600),
1705
- maxBatchSize: z.number().default(10),
1706
- reuseConnections: z.boolean().default(true),
1707
- rejectUnauthorized: z.boolean().default(true),
1708
- verifyPermissions: z.boolean().default(true),
1709
- disableTimeFilter: z.boolean().default(false),
1710
- awsApiKey: z.string().optional(),
1711
- awsSecretKey: z.string().optional(),
1712
- awsSecret: z.string().optional(),
1713
- });
1714
-
1715
- export function collectorS3S32ToJSON(collectorS3S32: CollectorS3S32): string {
1716
- return JSON.stringify(CollectorS3S32$outboundSchema.parse(collectorS3S32));
1717
- }
1718
- export function collectorS3S32FromJSON(
1719
- jsonString: string,
1720
- ): SafeParseResult<CollectorS3S32, SDKValidationError> {
1721
- return safeParse(
1722
- jsonString,
1723
- (x) => CollectorS3S32$inboundSchema.parse(JSON.parse(x)),
1724
- `Failed to parse 'CollectorS3S32' from JSON`,
1725
- );
1726
- }
1727
-
1728
- /** @internal */
1729
- export const PartitioningScheme1$inboundSchema: z.ZodType<
1730
- PartitioningScheme1,
1731
- z.ZodTypeDef,
1732
- unknown
1733
- > = openEnums.inboundSchema(PartitioningScheme1);
1734
- /** @internal */
1735
- export const PartitioningScheme1$outboundSchema: z.ZodType<
1736
- string,
1737
- z.ZodTypeDef,
1738
- PartitioningScheme1
1739
- > = openEnums.outboundSchema(PartitioningScheme1);
1740
-
1741
- /** @internal */
1742
- export const CollectorS3Type1$inboundSchema: z.ZodNativeEnum<
1743
- typeof CollectorS3Type1
1744
- > = z.nativeEnum(CollectorS3Type1);
1745
- /** @internal */
1746
- export const CollectorS3Type1$outboundSchema: z.ZodNativeEnum<
1747
- typeof CollectorS3Type1
1748
- > = CollectorS3Type1$inboundSchema;
1749
-
1750
- /** @internal */
1751
- export const CollectorS3Extractor1$inboundSchema: z.ZodType<
1752
- CollectorS3Extractor1,
1753
- z.ZodTypeDef,
1754
- unknown
1755
- > = z.object({
1756
- key: z.string(),
1757
- expression: z.string(),
1758
- });
1759
- /** @internal */
1760
- export type CollectorS3Extractor1$Outbound = {
1761
- key: string;
1762
- expression: string;
21
+ * Collector type: s3
22
+ */
23
+ type: "s3";
24
+ conf: S3CollectorConf;
1763
25
  };
1764
26
 
1765
27
  /** @internal */
1766
- export const CollectorS3Extractor1$outboundSchema: z.ZodType<
1767
- CollectorS3Extractor1$Outbound,
1768
- z.ZodTypeDef,
1769
- CollectorS3Extractor1
1770
- > = z.object({
1771
- key: z.string(),
1772
- expression: z.string(),
1773
- });
1774
-
1775
- export function collectorS3Extractor1ToJSON(
1776
- collectorS3Extractor1: CollectorS3Extractor1,
1777
- ): string {
1778
- return JSON.stringify(
1779
- CollectorS3Extractor1$outboundSchema.parse(collectorS3Extractor1),
1780
- );
1781
- }
1782
- export function collectorS3Extractor1FromJSON(
1783
- jsonString: string,
1784
- ): SafeParseResult<CollectorS3Extractor1, SDKValidationError> {
1785
- return safeParse(
1786
- jsonString,
1787
- (x) => CollectorS3Extractor1$inboundSchema.parse(JSON.parse(x)),
1788
- `Failed to parse 'CollectorS3Extractor1' from JSON`,
1789
- );
1790
- }
1791
-
1792
- /** @internal */
1793
- export const CollectorS3AuthenticationMethod1$inboundSchema: z.ZodType<
1794
- CollectorS3AuthenticationMethod1,
1795
- z.ZodTypeDef,
1796
- unknown
1797
- > = openEnums.inboundSchema(CollectorS3AuthenticationMethod1);
1798
- /** @internal */
1799
- export const CollectorS3AuthenticationMethod1$outboundSchema: z.ZodType<
1800
- string,
1801
- z.ZodTypeDef,
1802
- CollectorS3AuthenticationMethod1
1803
- > = openEnums.outboundSchema(CollectorS3AuthenticationMethod1);
1804
-
1805
- /** @internal */
1806
- export const CollectorS3SignatureVersion1$inboundSchema: z.ZodType<
1807
- CollectorS3SignatureVersion1,
1808
- z.ZodTypeDef,
1809
- unknown
1810
- > = openEnums.inboundSchema(CollectorS3SignatureVersion1);
1811
- /** @internal */
1812
- export const CollectorS3SignatureVersion1$outboundSchema: z.ZodType<
1813
- string,
1814
- z.ZodTypeDef,
1815
- CollectorS3SignatureVersion1
1816
- > = openEnums.outboundSchema(CollectorS3SignatureVersion1);
1817
-
1818
- /** @internal */
1819
- export const CollectorS3S31$inboundSchema: z.ZodType<
1820
- CollectorS3S31,
28
+ export const CollectorS3$inboundSchema: z.ZodType<
29
+ CollectorS3,
1821
30
  z.ZodTypeDef,
1822
31
  unknown
1823
32
  > = z.object({
1824
- partitioningScheme: PartitioningScheme1$inboundSchema.default("none"),
1825
- type: CollectorS3Type1$inboundSchema,
1826
- outputName: z.string().optional(),
1827
- bucket: z.string(),
1828
- parquetChunkSizeMB: z.number().default(5),
1829
- parquetChunkDownloadTimeout: z.number().default(600),
1830
- region: z.string().optional(),
1831
- path: z.string().optional(),
1832
- extractors: z.array(z.lazy(() => CollectorS3Extractor1$inboundSchema))
1833
- .optional(),
1834
- awsAuthenticationMethod: CollectorS3AuthenticationMethod1$inboundSchema
1835
- .default("auto"),
1836
- endpoint: z.string().optional(),
1837
- signatureVersion: CollectorS3SignatureVersion1$inboundSchema.default("v4"),
1838
- enableAssumeRole: z.boolean().default(false),
1839
- assumeRoleArn: z.string().optional(),
1840
- assumeRoleExternalId: z.string().optional(),
1841
- durationSeconds: z.number().default(3600),
1842
- maxBatchSize: z.number().default(10),
1843
- recurse: z.boolean().default(true),
1844
- reuseConnections: z.boolean().default(true),
1845
- rejectUnauthorized: z.boolean().default(true),
1846
- verifyPermissions: z.boolean().default(true),
1847
- disableTimeFilter: z.boolean().default(false),
1848
- awsApiKey: z.string().optional(),
1849
- awsSecretKey: z.string().optional(),
1850
- awsSecret: z.string().optional(),
33
+ type: z.literal("s3"),
34
+ conf: S3CollectorConf$inboundSchema,
1851
35
  });
1852
36
  /** @internal */
1853
- export type CollectorS3S31$Outbound = {
1854
- partitioningScheme: string;
1855
- type: string;
1856
- outputName?: string | undefined;
1857
- bucket: string;
1858
- parquetChunkSizeMB: number;
1859
- parquetChunkDownloadTimeout: number;
1860
- region?: string | undefined;
1861
- path?: string | undefined;
1862
- extractors?: Array<CollectorS3Extractor1$Outbound> | undefined;
1863
- awsAuthenticationMethod: string;
1864
- endpoint?: string | undefined;
1865
- signatureVersion: string;
1866
- enableAssumeRole: boolean;
1867
- assumeRoleArn?: string | undefined;
1868
- assumeRoleExternalId?: string | undefined;
1869
- durationSeconds: number;
1870
- maxBatchSize: number;
1871
- recurse: boolean;
1872
- reuseConnections: boolean;
1873
- rejectUnauthorized: boolean;
1874
- verifyPermissions: boolean;
1875
- disableTimeFilter: boolean;
1876
- awsApiKey?: string | undefined;
1877
- awsSecretKey?: string | undefined;
1878
- awsSecret?: string | undefined;
37
+ export type CollectorS3$Outbound = {
38
+ type: "s3";
39
+ conf: S3CollectorConf$Outbound;
1879
40
  };
1880
41
 
1881
- /** @internal */
1882
- export const CollectorS3S31$outboundSchema: z.ZodType<
1883
- CollectorS3S31$Outbound,
1884
- z.ZodTypeDef,
1885
- CollectorS3S31
1886
- > = z.object({
1887
- partitioningScheme: PartitioningScheme1$outboundSchema.default("none"),
1888
- type: CollectorS3Type1$outboundSchema,
1889
- outputName: z.string().optional(),
1890
- bucket: z.string(),
1891
- parquetChunkSizeMB: z.number().default(5),
1892
- parquetChunkDownloadTimeout: z.number().default(600),
1893
- region: z.string().optional(),
1894
- path: z.string().optional(),
1895
- extractors: z.array(z.lazy(() => CollectorS3Extractor1$outboundSchema))
1896
- .optional(),
1897
- awsAuthenticationMethod: CollectorS3AuthenticationMethod1$outboundSchema
1898
- .default("auto"),
1899
- endpoint: z.string().optional(),
1900
- signatureVersion: CollectorS3SignatureVersion1$outboundSchema.default("v4"),
1901
- enableAssumeRole: z.boolean().default(false),
1902
- assumeRoleArn: z.string().optional(),
1903
- assumeRoleExternalId: z.string().optional(),
1904
- durationSeconds: z.number().default(3600),
1905
- maxBatchSize: z.number().default(10),
1906
- recurse: z.boolean().default(true),
1907
- reuseConnections: z.boolean().default(true),
1908
- rejectUnauthorized: z.boolean().default(true),
1909
- verifyPermissions: z.boolean().default(true),
1910
- disableTimeFilter: z.boolean().default(false),
1911
- awsApiKey: z.string().optional(),
1912
- awsSecretKey: z.string().optional(),
1913
- awsSecret: z.string().optional(),
1914
- });
1915
-
1916
- export function collectorS3S31ToJSON(collectorS3S31: CollectorS3S31): string {
1917
- return JSON.stringify(CollectorS3S31$outboundSchema.parse(collectorS3S31));
1918
- }
1919
- export function collectorS3S31FromJSON(
1920
- jsonString: string,
1921
- ): SafeParseResult<CollectorS3S31, SDKValidationError> {
1922
- return safeParse(
1923
- jsonString,
1924
- (x) => CollectorS3S31$inboundSchema.parse(JSON.parse(x)),
1925
- `Failed to parse 'CollectorS3S31' from JSON`,
1926
- );
1927
- }
1928
-
1929
- /** @internal */
1930
- export const CollectorS3$inboundSchema: z.ZodType<
1931
- CollectorS3,
1932
- z.ZodTypeDef,
1933
- unknown
1934
- > = z.union([
1935
- z.lazy(() => CollectorS3S31$inboundSchema),
1936
- z.lazy(() => CollectorS3S32$inboundSchema),
1937
- z.lazy(() => CollectorS3S33$inboundSchema),
1938
- z.lazy(() => CollectorS3S34$inboundSchema),
1939
- z.lazy(() => CollectorS3S35$inboundSchema),
1940
- ]);
1941
- /** @internal */
1942
- export type CollectorS3$Outbound =
1943
- | CollectorS3S31$Outbound
1944
- | CollectorS3S32$Outbound
1945
- | CollectorS3S33$Outbound
1946
- | CollectorS3S34$Outbound
1947
- | CollectorS3S35$Outbound;
1948
-
1949
42
  /** @internal */
1950
43
  export const CollectorS3$outboundSchema: z.ZodType<
1951
44
  CollectorS3$Outbound,
1952
45
  z.ZodTypeDef,
1953
46
  CollectorS3
1954
- > = z.union([
1955
- z.lazy(() => CollectorS3S31$outboundSchema),
1956
- z.lazy(() => CollectorS3S32$outboundSchema),
1957
- z.lazy(() => CollectorS3S33$outboundSchema),
1958
- z.lazy(() => CollectorS3S34$outboundSchema),
1959
- z.lazy(() => CollectorS3S35$outboundSchema),
1960
- ]);
47
+ > = z.object({
48
+ type: z.literal("s3"),
49
+ conf: S3CollectorConf$outboundSchema,
50
+ });
1961
51
 
1962
52
  export function collectorS3ToJSON(collectorS3: CollectorS3): string {
1963
53
  return JSON.stringify(CollectorS3$outboundSchema.parse(collectorS3));