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,840 +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
+ GoogleCloudStorageCollectorConf,
11
+ GoogleCloudStorageCollectorConf$inboundSchema,
12
+ GoogleCloudStorageCollectorConf$Outbound,
13
+ GoogleCloudStorageCollectorConf$outboundSchema,
14
+ } from "./googlecloudstoragecollectorconf.js";
11
15
 
12
16
  /**
13
- * Enter account credentials manually, select a secret that references your credentials, or use Google Application Default Credentials
17
+ * GoogleCloudStorage collector configuration
14
18
  */
15
- export const CollectorGoogleCloudStorageAuthenticationMethod3 = {
16
- Auto: "auto",
17
- Manual: "manual",
18
- Secret: "secret",
19
- } as const;
20
- /**
21
- * Enter account credentials manually, select a secret that references your credentials, or use Google Application Default Credentials
22
- */
23
- export type CollectorGoogleCloudStorageAuthenticationMethod3 = OpenEnum<
24
- typeof CollectorGoogleCloudStorageAuthenticationMethod3
25
- >;
26
-
27
- /**
28
- * Collector type: google_cloud_storage
29
- */
30
- export const CollectorGoogleCloudStorageType3 = {
31
- GoogleCloudStorage: "google_cloud_storage",
32
- } as const;
33
- /**
34
- * Collector type: google_cloud_storage
35
- */
36
- export type CollectorGoogleCloudStorageType3 = ClosedEnum<
37
- typeof CollectorGoogleCloudStorageType3
38
- >;
39
-
40
- export type CollectorGoogleCloudStorageExtractor3 = {
41
- /**
42
- * A token from the template path, such as epoch
43
- */
44
- key: string;
45
- /**
46
- * JavaScript expression that receives token under "value" variable, and evaluates to populate event fields, such as {date: new Date(+value*1000)}
47
- */
48
- expression: string;
49
- };
50
-
51
- export type CollectorGoogleCloudStorageGoogleCloudStorage3 = {
52
- /**
53
- * Enter account credentials manually, select a secret that references your credentials, or use Google Application Default Credentials
54
- */
55
- authType?: CollectorGoogleCloudStorageAuthenticationMethod3 | undefined;
56
- /**
57
- * Select or create a stored text secret that references your credentials
58
- */
59
- textSecret: string;
19
+ export type CollectorGoogleCloudStorage = {
60
20
  /**
61
21
  * Collector type: google_cloud_storage
62
22
  */
63
- type: CollectorGoogleCloudStorageType3;
64
- /**
65
- * Name of the predefined Destination that will be used to auto-populate Collector settings
66
- */
67
- outputName?: string | undefined;
68
- /**
69
- * Name of the bucket to collect from. This value can be a constant or a JavaScript expression that can only be evaluated at init time. Example referencing a Global Variable: `myBucket-${C.vars.myVar}`.
70
- */
71
- bucket: string;
72
- /**
73
- * The directory from which to collect data. Templating is supported, such as myDir/${datacenter}/${host}/${app}/. Time-based tokens are also supported, such as myOtherDir/${_time:%Y}/${_time:%m}/${_time:%d}/.
74
- */
75
- path?: string | undefined;
76
- /**
77
- * 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.
78
- */
79
- extractors?: Array<CollectorGoogleCloudStorageExtractor3> | undefined;
80
- /**
81
- * Google Cloud Storage service endpoint. If empty, the endpoint will default to https://storage.googleapis.com.
82
- */
83
- endpoint?: string | undefined;
84
- /**
85
- * Used to disable Collector event time filtering when a date range is specified
86
- */
87
- disableTimeFilter?: boolean | undefined;
88
- /**
89
- * Recurse through subdirectories
90
- */
91
- recurse?: boolean | undefined;
92
- /**
93
- * Maximum number of metadata objects to batch before recording as results
94
- */
95
- maxBatchSize?: number | undefined;
96
- /**
97
- * Maximum file size for each Parquet chunk
98
- */
99
- parquetChunkSizeMB?: number | undefined;
100
- /**
101
- * The maximum time allowed for downloading a Parquet chunk. Processing will abort if a chunk cannot be downloaded within the time specified.
102
- */
103
- parquetChunkDownloadTimeout?: number | undefined;
104
- /**
105
- * Contents of Google Cloud service account credentials (JSON keys) file. To upload a file, click the upload button at this field's upper right.
106
- */
107
- serviceAccountCredentials?: string | undefined;
108
- };
109
-
110
- /**
111
- * Enter account credentials manually, select a secret that references your credentials, or use Google Application Default Credentials
112
- */
113
- export const CollectorGoogleCloudStorageAuthenticationMethod2 = {
114
- Auto: "auto",
115
- Manual: "manual",
116
- Secret: "secret",
117
- } as const;
118
- /**
119
- * Enter account credentials manually, select a secret that references your credentials, or use Google Application Default Credentials
120
- */
121
- export type CollectorGoogleCloudStorageAuthenticationMethod2 = OpenEnum<
122
- typeof CollectorGoogleCloudStorageAuthenticationMethod2
123
- >;
124
-
125
- /**
126
- * Collector type: google_cloud_storage
127
- */
128
- export const CollectorGoogleCloudStorageType2 = {
129
- GoogleCloudStorage: "google_cloud_storage",
130
- } as const;
131
- /**
132
- * Collector type: google_cloud_storage
133
- */
134
- export type CollectorGoogleCloudStorageType2 = ClosedEnum<
135
- typeof CollectorGoogleCloudStorageType2
136
- >;
137
-
138
- export type CollectorGoogleCloudStorageExtractor2 = {
139
- /**
140
- * A token from the template path, such as epoch
141
- */
142
- key: string;
143
- /**
144
- * JavaScript expression that receives token under "value" variable, and evaluates to populate event fields, such as {date: new Date(+value*1000)}
145
- */
146
- expression: string;
147
- };
148
-
149
- export type CollectorGoogleCloudStorageGoogleCloudStorage2 = {
150
- /**
151
- * Enter account credentials manually, select a secret that references your credentials, or use Google Application Default Credentials
152
- */
153
- authType?: CollectorGoogleCloudStorageAuthenticationMethod2 | undefined;
154
- /**
155
- * Contents of Google Cloud service account credentials (JSON keys) file. To upload a file, click the upload button at this field's upper right.
156
- */
157
- serviceAccountCredentials: string;
158
- /**
159
- * Collector type: google_cloud_storage
160
- */
161
- type: CollectorGoogleCloudStorageType2;
162
- /**
163
- * Name of the predefined Destination that will be used to auto-populate Collector settings
164
- */
165
- outputName?: string | undefined;
166
- /**
167
- * Name of the bucket to collect from. This value can be a constant or a JavaScript expression that can only be evaluated at init time. Example referencing a Global Variable: `myBucket-${C.vars.myVar}`.
168
- */
169
- bucket: string;
170
- /**
171
- * The directory from which to collect data. Templating is supported, such as myDir/${datacenter}/${host}/${app}/. Time-based tokens are also supported, such as myOtherDir/${_time:%Y}/${_time:%m}/${_time:%d}/.
172
- */
173
- path?: string | undefined;
174
- /**
175
- * 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.
176
- */
177
- extractors?: Array<CollectorGoogleCloudStorageExtractor2> | undefined;
178
- /**
179
- * Google Cloud Storage service endpoint. If empty, the endpoint will default to https://storage.googleapis.com.
180
- */
181
- endpoint?: string | undefined;
182
- /**
183
- * Used to disable Collector event time filtering when a date range is specified
184
- */
185
- disableTimeFilter?: boolean | undefined;
186
- /**
187
- * Recurse through subdirectories
188
- */
189
- recurse?: boolean | undefined;
190
- /**
191
- * Maximum number of metadata objects to batch before recording as results
192
- */
193
- maxBatchSize?: number | undefined;
194
- /**
195
- * Maximum file size for each Parquet chunk
196
- */
197
- parquetChunkSizeMB?: number | undefined;
198
- /**
199
- * The maximum time allowed for downloading a Parquet chunk. Processing will abort if a chunk cannot be downloaded within the time specified.
200
- */
201
- parquetChunkDownloadTimeout?: number | undefined;
202
- /**
203
- * Select or create a stored text secret that references your credentials
204
- */
205
- textSecret?: string | undefined;
206
- };
207
-
208
- /**
209
- * Enter account credentials manually, select a secret that references your credentials, or use Google Application Default Credentials
210
- */
211
- export const CollectorGoogleCloudStorageAuthenticationMethod1 = {
212
- Auto: "auto",
213
- Manual: "manual",
214
- Secret: "secret",
215
- } as const;
216
- /**
217
- * Enter account credentials manually, select a secret that references your credentials, or use Google Application Default Credentials
218
- */
219
- export type CollectorGoogleCloudStorageAuthenticationMethod1 = OpenEnum<
220
- typeof CollectorGoogleCloudStorageAuthenticationMethod1
221
- >;
222
-
223
- /**
224
- * Collector type: google_cloud_storage
225
- */
226
- export const CollectorGoogleCloudStorageType1 = {
227
- GoogleCloudStorage: "google_cloud_storage",
228
- } as const;
229
- /**
230
- * Collector type: google_cloud_storage
231
- */
232
- export type CollectorGoogleCloudStorageType1 = ClosedEnum<
233
- typeof CollectorGoogleCloudStorageType1
234
- >;
235
-
236
- export type CollectorGoogleCloudStorageExtractor1 = {
237
- /**
238
- * A token from the template path, such as epoch
239
- */
240
- key: string;
241
- /**
242
- * JavaScript expression that receives token under "value" variable, and evaluates to populate event fields, such as {date: new Date(+value*1000)}
243
- */
244
- expression: string;
245
- };
246
-
247
- export type CollectorGoogleCloudStorageGoogleCloudStorage1 = {
248
- /**
249
- * Enter account credentials manually, select a secret that references your credentials, or use Google Application Default Credentials
250
- */
251
- authType?: CollectorGoogleCloudStorageAuthenticationMethod1 | undefined;
252
- /**
253
- * Collector type: google_cloud_storage
254
- */
255
- type: CollectorGoogleCloudStorageType1;
256
- /**
257
- * Name of the predefined Destination that will be used to auto-populate Collector settings
258
- */
259
- outputName?: string | undefined;
260
- /**
261
- * Name of the bucket to collect from. This value can be a constant or a JavaScript expression that can only be evaluated at init time. Example referencing a Global Variable: `myBucket-${C.vars.myVar}`.
262
- */
263
- bucket: string;
264
- /**
265
- * The directory from which to collect data. Templating is supported, such as myDir/${datacenter}/${host}/${app}/. Time-based tokens are also supported, such as myOtherDir/${_time:%Y}/${_time:%m}/${_time:%d}/.
266
- */
267
- path?: string | undefined;
268
- /**
269
- * 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.
270
- */
271
- extractors?: Array<CollectorGoogleCloudStorageExtractor1> | undefined;
272
- /**
273
- * Google Cloud Storage service endpoint. If empty, the endpoint will default to https://storage.googleapis.com.
274
- */
275
- endpoint?: string | undefined;
276
- /**
277
- * Used to disable Collector event time filtering when a date range is specified
278
- */
279
- disableTimeFilter?: boolean | undefined;
280
- /**
281
- * Recurse through subdirectories
282
- */
283
- recurse?: boolean | undefined;
284
- /**
285
- * Maximum number of metadata objects to batch before recording as results
286
- */
287
- maxBatchSize?: number | undefined;
288
- /**
289
- * Maximum file size for each Parquet chunk
290
- */
291
- parquetChunkSizeMB?: number | undefined;
292
- /**
293
- * The maximum time allowed for downloading a Parquet chunk. Processing will abort if a chunk cannot be downloaded within the time specified.
294
- */
295
- parquetChunkDownloadTimeout?: number | undefined;
296
- /**
297
- * Contents of Google Cloud service account credentials (JSON keys) file. To upload a file, click the upload button at this field's upper right.
298
- */
299
- serviceAccountCredentials?: string | undefined;
300
- /**
301
- * Select or create a stored text secret that references your credentials
302
- */
303
- textSecret?: string | undefined;
304
- };
305
-
306
- export type CollectorGoogleCloudStorage =
307
- | CollectorGoogleCloudStorageGoogleCloudStorage2
308
- | CollectorGoogleCloudStorageGoogleCloudStorage3
309
- | CollectorGoogleCloudStorageGoogleCloudStorage1;
310
-
311
- /** @internal */
312
- export const CollectorGoogleCloudStorageAuthenticationMethod3$inboundSchema:
313
- z.ZodType<
314
- CollectorGoogleCloudStorageAuthenticationMethod3,
315
- z.ZodTypeDef,
316
- unknown
317
- > = openEnums.inboundSchema(CollectorGoogleCloudStorageAuthenticationMethod3);
318
- /** @internal */
319
- export const CollectorGoogleCloudStorageAuthenticationMethod3$outboundSchema:
320
- z.ZodType<
321
- string,
322
- z.ZodTypeDef,
323
- CollectorGoogleCloudStorageAuthenticationMethod3
324
- > = openEnums.outboundSchema(
325
- CollectorGoogleCloudStorageAuthenticationMethod3,
326
- );
327
-
328
- /** @internal */
329
- export const CollectorGoogleCloudStorageType3$inboundSchema: z.ZodNativeEnum<
330
- typeof CollectorGoogleCloudStorageType3
331
- > = z.nativeEnum(CollectorGoogleCloudStorageType3);
332
- /** @internal */
333
- export const CollectorGoogleCloudStorageType3$outboundSchema: z.ZodNativeEnum<
334
- typeof CollectorGoogleCloudStorageType3
335
- > = CollectorGoogleCloudStorageType3$inboundSchema;
336
-
337
- /** @internal */
338
- export const CollectorGoogleCloudStorageExtractor3$inboundSchema: z.ZodType<
339
- CollectorGoogleCloudStorageExtractor3,
340
- z.ZodTypeDef,
341
- unknown
342
- > = z.object({
343
- key: z.string(),
344
- expression: z.string(),
345
- });
346
- /** @internal */
347
- export type CollectorGoogleCloudStorageExtractor3$Outbound = {
348
- key: string;
349
- expression: string;
350
- };
351
-
352
- /** @internal */
353
- export const CollectorGoogleCloudStorageExtractor3$outboundSchema: z.ZodType<
354
- CollectorGoogleCloudStorageExtractor3$Outbound,
355
- z.ZodTypeDef,
356
- CollectorGoogleCloudStorageExtractor3
357
- > = z.object({
358
- key: z.string(),
359
- expression: z.string(),
360
- });
361
-
362
- export function collectorGoogleCloudStorageExtractor3ToJSON(
363
- collectorGoogleCloudStorageExtractor3: CollectorGoogleCloudStorageExtractor3,
364
- ): string {
365
- return JSON.stringify(
366
- CollectorGoogleCloudStorageExtractor3$outboundSchema.parse(
367
- collectorGoogleCloudStorageExtractor3,
368
- ),
369
- );
370
- }
371
- export function collectorGoogleCloudStorageExtractor3FromJSON(
372
- jsonString: string,
373
- ): SafeParseResult<CollectorGoogleCloudStorageExtractor3, SDKValidationError> {
374
- return safeParse(
375
- jsonString,
376
- (x) =>
377
- CollectorGoogleCloudStorageExtractor3$inboundSchema.parse(JSON.parse(x)),
378
- `Failed to parse 'CollectorGoogleCloudStorageExtractor3' from JSON`,
379
- );
380
- }
381
-
382
- /** @internal */
383
- export const CollectorGoogleCloudStorageGoogleCloudStorage3$inboundSchema:
384
- z.ZodType<
385
- CollectorGoogleCloudStorageGoogleCloudStorage3,
386
- z.ZodTypeDef,
387
- unknown
388
- > = z.object({
389
- authType: CollectorGoogleCloudStorageAuthenticationMethod3$inboundSchema
390
- .default("manual"),
391
- textSecret: z.string(),
392
- type: CollectorGoogleCloudStorageType3$inboundSchema,
393
- outputName: z.string().optional(),
394
- bucket: z.string(),
395
- path: z.string().optional(),
396
- extractors: z.array(
397
- z.lazy(() => CollectorGoogleCloudStorageExtractor3$inboundSchema),
398
- ).optional(),
399
- endpoint: z.string().optional(),
400
- disableTimeFilter: z.boolean().default(false),
401
- recurse: z.boolean().default(true),
402
- maxBatchSize: z.number().default(10),
403
- parquetChunkSizeMB: z.number().default(5),
404
- parquetChunkDownloadTimeout: z.number().default(600),
405
- serviceAccountCredentials: z.string().optional(),
406
- });
407
- /** @internal */
408
- export type CollectorGoogleCloudStorageGoogleCloudStorage3$Outbound = {
409
- authType: string;
410
- textSecret: string;
411
- type: string;
412
- outputName?: string | undefined;
413
- bucket: string;
414
- path?: string | undefined;
415
- extractors?:
416
- | Array<CollectorGoogleCloudStorageExtractor3$Outbound>
417
- | undefined;
418
- endpoint?: string | undefined;
419
- disableTimeFilter: boolean;
420
- recurse: boolean;
421
- maxBatchSize: number;
422
- parquetChunkSizeMB: number;
423
- parquetChunkDownloadTimeout: number;
424
- serviceAccountCredentials?: string | undefined;
23
+ type: "google_cloud_storage";
24
+ conf: GoogleCloudStorageCollectorConf;
425
25
  };
426
26
 
427
27
  /** @internal */
428
- export const CollectorGoogleCloudStorageGoogleCloudStorage3$outboundSchema:
429
- z.ZodType<
430
- CollectorGoogleCloudStorageGoogleCloudStorage3$Outbound,
431
- z.ZodTypeDef,
432
- CollectorGoogleCloudStorageGoogleCloudStorage3
433
- > = z.object({
434
- authType: CollectorGoogleCloudStorageAuthenticationMethod3$outboundSchema
435
- .default("manual"),
436
- textSecret: z.string(),
437
- type: CollectorGoogleCloudStorageType3$outboundSchema,
438
- outputName: z.string().optional(),
439
- bucket: z.string(),
440
- path: z.string().optional(),
441
- extractors: z.array(
442
- z.lazy(() => CollectorGoogleCloudStorageExtractor3$outboundSchema),
443
- ).optional(),
444
- endpoint: z.string().optional(),
445
- disableTimeFilter: z.boolean().default(false),
446
- recurse: z.boolean().default(true),
447
- maxBatchSize: z.number().default(10),
448
- parquetChunkSizeMB: z.number().default(5),
449
- parquetChunkDownloadTimeout: z.number().default(600),
450
- serviceAccountCredentials: z.string().optional(),
451
- });
452
-
453
- export function collectorGoogleCloudStorageGoogleCloudStorage3ToJSON(
454
- collectorGoogleCloudStorageGoogleCloudStorage3:
455
- CollectorGoogleCloudStorageGoogleCloudStorage3,
456
- ): string {
457
- return JSON.stringify(
458
- CollectorGoogleCloudStorageGoogleCloudStorage3$outboundSchema.parse(
459
- collectorGoogleCloudStorageGoogleCloudStorage3,
460
- ),
461
- );
462
- }
463
- export function collectorGoogleCloudStorageGoogleCloudStorage3FromJSON(
464
- jsonString: string,
465
- ): SafeParseResult<
466
- CollectorGoogleCloudStorageGoogleCloudStorage3,
467
- SDKValidationError
468
- > {
469
- return safeParse(
470
- jsonString,
471
- (x) =>
472
- CollectorGoogleCloudStorageGoogleCloudStorage3$inboundSchema.parse(
473
- JSON.parse(x),
474
- ),
475
- `Failed to parse 'CollectorGoogleCloudStorageGoogleCloudStorage3' from JSON`,
476
- );
477
- }
478
-
479
- /** @internal */
480
- export const CollectorGoogleCloudStorageAuthenticationMethod2$inboundSchema:
481
- z.ZodType<
482
- CollectorGoogleCloudStorageAuthenticationMethod2,
483
- z.ZodTypeDef,
484
- unknown
485
- > = openEnums.inboundSchema(CollectorGoogleCloudStorageAuthenticationMethod2);
486
- /** @internal */
487
- export const CollectorGoogleCloudStorageAuthenticationMethod2$outboundSchema:
488
- z.ZodType<
489
- string,
490
- z.ZodTypeDef,
491
- CollectorGoogleCloudStorageAuthenticationMethod2
492
- > = openEnums.outboundSchema(
493
- CollectorGoogleCloudStorageAuthenticationMethod2,
494
- );
495
-
496
- /** @internal */
497
- export const CollectorGoogleCloudStorageType2$inboundSchema: z.ZodNativeEnum<
498
- typeof CollectorGoogleCloudStorageType2
499
- > = z.nativeEnum(CollectorGoogleCloudStorageType2);
500
- /** @internal */
501
- export const CollectorGoogleCloudStorageType2$outboundSchema: z.ZodNativeEnum<
502
- typeof CollectorGoogleCloudStorageType2
503
- > = CollectorGoogleCloudStorageType2$inboundSchema;
504
-
505
- /** @internal */
506
- export const CollectorGoogleCloudStorageExtractor2$inboundSchema: z.ZodType<
507
- CollectorGoogleCloudStorageExtractor2,
508
- z.ZodTypeDef,
509
- unknown
510
- > = z.object({
511
- key: z.string(),
512
- expression: z.string(),
513
- });
514
- /** @internal */
515
- export type CollectorGoogleCloudStorageExtractor2$Outbound = {
516
- key: string;
517
- expression: string;
518
- };
519
-
520
- /** @internal */
521
- export const CollectorGoogleCloudStorageExtractor2$outboundSchema: z.ZodType<
522
- CollectorGoogleCloudStorageExtractor2$Outbound,
523
- z.ZodTypeDef,
524
- CollectorGoogleCloudStorageExtractor2
525
- > = z.object({
526
- key: z.string(),
527
- expression: z.string(),
528
- });
529
-
530
- export function collectorGoogleCloudStorageExtractor2ToJSON(
531
- collectorGoogleCloudStorageExtractor2: CollectorGoogleCloudStorageExtractor2,
532
- ): string {
533
- return JSON.stringify(
534
- CollectorGoogleCloudStorageExtractor2$outboundSchema.parse(
535
- collectorGoogleCloudStorageExtractor2,
536
- ),
537
- );
538
- }
539
- export function collectorGoogleCloudStorageExtractor2FromJSON(
540
- jsonString: string,
541
- ): SafeParseResult<CollectorGoogleCloudStorageExtractor2, SDKValidationError> {
542
- return safeParse(
543
- jsonString,
544
- (x) =>
545
- CollectorGoogleCloudStorageExtractor2$inboundSchema.parse(JSON.parse(x)),
546
- `Failed to parse 'CollectorGoogleCloudStorageExtractor2' from JSON`,
547
- );
548
- }
549
-
550
- /** @internal */
551
- export const CollectorGoogleCloudStorageGoogleCloudStorage2$inboundSchema:
552
- z.ZodType<
553
- CollectorGoogleCloudStorageGoogleCloudStorage2,
554
- z.ZodTypeDef,
555
- unknown
556
- > = z.object({
557
- authType: CollectorGoogleCloudStorageAuthenticationMethod2$inboundSchema
558
- .default("manual"),
559
- serviceAccountCredentials: z.string(),
560
- type: CollectorGoogleCloudStorageType2$inboundSchema,
561
- outputName: z.string().optional(),
562
- bucket: z.string(),
563
- path: z.string().optional(),
564
- extractors: z.array(
565
- z.lazy(() => CollectorGoogleCloudStorageExtractor2$inboundSchema),
566
- ).optional(),
567
- endpoint: z.string().optional(),
568
- disableTimeFilter: z.boolean().default(false),
569
- recurse: z.boolean().default(true),
570
- maxBatchSize: z.number().default(10),
571
- parquetChunkSizeMB: z.number().default(5),
572
- parquetChunkDownloadTimeout: z.number().default(600),
573
- textSecret: z.string().optional(),
574
- });
575
- /** @internal */
576
- export type CollectorGoogleCloudStorageGoogleCloudStorage2$Outbound = {
577
- authType: string;
578
- serviceAccountCredentials: string;
579
- type: string;
580
- outputName?: string | undefined;
581
- bucket: string;
582
- path?: string | undefined;
583
- extractors?:
584
- | Array<CollectorGoogleCloudStorageExtractor2$Outbound>
585
- | undefined;
586
- endpoint?: string | undefined;
587
- disableTimeFilter: boolean;
588
- recurse: boolean;
589
- maxBatchSize: number;
590
- parquetChunkSizeMB: number;
591
- parquetChunkDownloadTimeout: number;
592
- textSecret?: string | undefined;
593
- };
594
-
595
- /** @internal */
596
- export const CollectorGoogleCloudStorageGoogleCloudStorage2$outboundSchema:
597
- z.ZodType<
598
- CollectorGoogleCloudStorageGoogleCloudStorage2$Outbound,
599
- z.ZodTypeDef,
600
- CollectorGoogleCloudStorageGoogleCloudStorage2
601
- > = z.object({
602
- authType: CollectorGoogleCloudStorageAuthenticationMethod2$outboundSchema
603
- .default("manual"),
604
- serviceAccountCredentials: z.string(),
605
- type: CollectorGoogleCloudStorageType2$outboundSchema,
606
- outputName: z.string().optional(),
607
- bucket: z.string(),
608
- path: z.string().optional(),
609
- extractors: z.array(
610
- z.lazy(() => CollectorGoogleCloudStorageExtractor2$outboundSchema),
611
- ).optional(),
612
- endpoint: z.string().optional(),
613
- disableTimeFilter: z.boolean().default(false),
614
- recurse: z.boolean().default(true),
615
- maxBatchSize: z.number().default(10),
616
- parquetChunkSizeMB: z.number().default(5),
617
- parquetChunkDownloadTimeout: z.number().default(600),
618
- textSecret: z.string().optional(),
619
- });
620
-
621
- export function collectorGoogleCloudStorageGoogleCloudStorage2ToJSON(
622
- collectorGoogleCloudStorageGoogleCloudStorage2:
623
- CollectorGoogleCloudStorageGoogleCloudStorage2,
624
- ): string {
625
- return JSON.stringify(
626
- CollectorGoogleCloudStorageGoogleCloudStorage2$outboundSchema.parse(
627
- collectorGoogleCloudStorageGoogleCloudStorage2,
628
- ),
629
- );
630
- }
631
- export function collectorGoogleCloudStorageGoogleCloudStorage2FromJSON(
632
- jsonString: string,
633
- ): SafeParseResult<
634
- CollectorGoogleCloudStorageGoogleCloudStorage2,
635
- SDKValidationError
636
- > {
637
- return safeParse(
638
- jsonString,
639
- (x) =>
640
- CollectorGoogleCloudStorageGoogleCloudStorage2$inboundSchema.parse(
641
- JSON.parse(x),
642
- ),
643
- `Failed to parse 'CollectorGoogleCloudStorageGoogleCloudStorage2' from JSON`,
644
- );
645
- }
646
-
647
- /** @internal */
648
- export const CollectorGoogleCloudStorageAuthenticationMethod1$inboundSchema:
649
- z.ZodType<
650
- CollectorGoogleCloudStorageAuthenticationMethod1,
651
- z.ZodTypeDef,
652
- unknown
653
- > = openEnums.inboundSchema(CollectorGoogleCloudStorageAuthenticationMethod1);
654
- /** @internal */
655
- export const CollectorGoogleCloudStorageAuthenticationMethod1$outboundSchema:
656
- z.ZodType<
657
- string,
658
- z.ZodTypeDef,
659
- CollectorGoogleCloudStorageAuthenticationMethod1
660
- > = openEnums.outboundSchema(
661
- CollectorGoogleCloudStorageAuthenticationMethod1,
662
- );
663
-
664
- /** @internal */
665
- export const CollectorGoogleCloudStorageType1$inboundSchema: z.ZodNativeEnum<
666
- typeof CollectorGoogleCloudStorageType1
667
- > = z.nativeEnum(CollectorGoogleCloudStorageType1);
668
- /** @internal */
669
- export const CollectorGoogleCloudStorageType1$outboundSchema: z.ZodNativeEnum<
670
- typeof CollectorGoogleCloudStorageType1
671
- > = CollectorGoogleCloudStorageType1$inboundSchema;
672
-
673
- /** @internal */
674
- export const CollectorGoogleCloudStorageExtractor1$inboundSchema: z.ZodType<
675
- CollectorGoogleCloudStorageExtractor1,
28
+ export const CollectorGoogleCloudStorage$inboundSchema: z.ZodType<
29
+ CollectorGoogleCloudStorage,
676
30
  z.ZodTypeDef,
677
31
  unknown
678
32
  > = z.object({
679
- key: z.string(),
680
- expression: z.string(),
681
- });
682
- /** @internal */
683
- export type CollectorGoogleCloudStorageExtractor1$Outbound = {
684
- key: string;
685
- expression: string;
686
- };
687
-
688
- /** @internal */
689
- export const CollectorGoogleCloudStorageExtractor1$outboundSchema: z.ZodType<
690
- CollectorGoogleCloudStorageExtractor1$Outbound,
691
- z.ZodTypeDef,
692
- CollectorGoogleCloudStorageExtractor1
693
- > = z.object({
694
- key: z.string(),
695
- expression: z.string(),
33
+ type: z.literal("google_cloud_storage"),
34
+ conf: GoogleCloudStorageCollectorConf$inboundSchema,
696
35
  });
697
-
698
- export function collectorGoogleCloudStorageExtractor1ToJSON(
699
- collectorGoogleCloudStorageExtractor1: CollectorGoogleCloudStorageExtractor1,
700
- ): string {
701
- return JSON.stringify(
702
- CollectorGoogleCloudStorageExtractor1$outboundSchema.parse(
703
- collectorGoogleCloudStorageExtractor1,
704
- ),
705
- );
706
- }
707
- export function collectorGoogleCloudStorageExtractor1FromJSON(
708
- jsonString: string,
709
- ): SafeParseResult<CollectorGoogleCloudStorageExtractor1, SDKValidationError> {
710
- return safeParse(
711
- jsonString,
712
- (x) =>
713
- CollectorGoogleCloudStorageExtractor1$inboundSchema.parse(JSON.parse(x)),
714
- `Failed to parse 'CollectorGoogleCloudStorageExtractor1' from JSON`,
715
- );
716
- }
717
-
718
36
  /** @internal */
719
- export const CollectorGoogleCloudStorageGoogleCloudStorage1$inboundSchema:
720
- z.ZodType<
721
- CollectorGoogleCloudStorageGoogleCloudStorage1,
722
- z.ZodTypeDef,
723
- unknown
724
- > = z.object({
725
- authType: CollectorGoogleCloudStorageAuthenticationMethod1$inboundSchema
726
- .default("manual"),
727
- type: CollectorGoogleCloudStorageType1$inboundSchema,
728
- outputName: z.string().optional(),
729
- bucket: z.string(),
730
- path: z.string().optional(),
731
- extractors: z.array(
732
- z.lazy(() => CollectorGoogleCloudStorageExtractor1$inboundSchema),
733
- ).optional(),
734
- endpoint: z.string().optional(),
735
- disableTimeFilter: z.boolean().default(false),
736
- recurse: z.boolean().default(true),
737
- maxBatchSize: z.number().default(10),
738
- parquetChunkSizeMB: z.number().default(5),
739
- parquetChunkDownloadTimeout: z.number().default(600),
740
- serviceAccountCredentials: z.string().optional(),
741
- textSecret: z.string().optional(),
742
- });
743
- /** @internal */
744
- export type CollectorGoogleCloudStorageGoogleCloudStorage1$Outbound = {
745
- authType: string;
746
- type: string;
747
- outputName?: string | undefined;
748
- bucket: string;
749
- path?: string | undefined;
750
- extractors?:
751
- | Array<CollectorGoogleCloudStorageExtractor1$Outbound>
752
- | undefined;
753
- endpoint?: string | undefined;
754
- disableTimeFilter: boolean;
755
- recurse: boolean;
756
- maxBatchSize: number;
757
- parquetChunkSizeMB: number;
758
- parquetChunkDownloadTimeout: number;
759
- serviceAccountCredentials?: string | undefined;
760
- textSecret?: string | undefined;
37
+ export type CollectorGoogleCloudStorage$Outbound = {
38
+ type: "google_cloud_storage";
39
+ conf: GoogleCloudStorageCollectorConf$Outbound;
761
40
  };
762
41
 
763
- /** @internal */
764
- export const CollectorGoogleCloudStorageGoogleCloudStorage1$outboundSchema:
765
- z.ZodType<
766
- CollectorGoogleCloudStorageGoogleCloudStorage1$Outbound,
767
- z.ZodTypeDef,
768
- CollectorGoogleCloudStorageGoogleCloudStorage1
769
- > = z.object({
770
- authType: CollectorGoogleCloudStorageAuthenticationMethod1$outboundSchema
771
- .default("manual"),
772
- type: CollectorGoogleCloudStorageType1$outboundSchema,
773
- outputName: z.string().optional(),
774
- bucket: z.string(),
775
- path: z.string().optional(),
776
- extractors: z.array(
777
- z.lazy(() => CollectorGoogleCloudStorageExtractor1$outboundSchema),
778
- ).optional(),
779
- endpoint: z.string().optional(),
780
- disableTimeFilter: z.boolean().default(false),
781
- recurse: z.boolean().default(true),
782
- maxBatchSize: z.number().default(10),
783
- parquetChunkSizeMB: z.number().default(5),
784
- parquetChunkDownloadTimeout: z.number().default(600),
785
- serviceAccountCredentials: z.string().optional(),
786
- textSecret: z.string().optional(),
787
- });
788
-
789
- export function collectorGoogleCloudStorageGoogleCloudStorage1ToJSON(
790
- collectorGoogleCloudStorageGoogleCloudStorage1:
791
- CollectorGoogleCloudStorageGoogleCloudStorage1,
792
- ): string {
793
- return JSON.stringify(
794
- CollectorGoogleCloudStorageGoogleCloudStorage1$outboundSchema.parse(
795
- collectorGoogleCloudStorageGoogleCloudStorage1,
796
- ),
797
- );
798
- }
799
- export function collectorGoogleCloudStorageGoogleCloudStorage1FromJSON(
800
- jsonString: string,
801
- ): SafeParseResult<
802
- CollectorGoogleCloudStorageGoogleCloudStorage1,
803
- SDKValidationError
804
- > {
805
- return safeParse(
806
- jsonString,
807
- (x) =>
808
- CollectorGoogleCloudStorageGoogleCloudStorage1$inboundSchema.parse(
809
- JSON.parse(x),
810
- ),
811
- `Failed to parse 'CollectorGoogleCloudStorageGoogleCloudStorage1' from JSON`,
812
- );
813
- }
814
-
815
- /** @internal */
816
- export const CollectorGoogleCloudStorage$inboundSchema: z.ZodType<
817
- CollectorGoogleCloudStorage,
818
- z.ZodTypeDef,
819
- unknown
820
- > = z.union([
821
- z.lazy(() => CollectorGoogleCloudStorageGoogleCloudStorage2$inboundSchema),
822
- z.lazy(() => CollectorGoogleCloudStorageGoogleCloudStorage3$inboundSchema),
823
- z.lazy(() => CollectorGoogleCloudStorageGoogleCloudStorage1$inboundSchema),
824
- ]);
825
- /** @internal */
826
- export type CollectorGoogleCloudStorage$Outbound =
827
- | CollectorGoogleCloudStorageGoogleCloudStorage2$Outbound
828
- | CollectorGoogleCloudStorageGoogleCloudStorage3$Outbound
829
- | CollectorGoogleCloudStorageGoogleCloudStorage1$Outbound;
830
-
831
42
  /** @internal */
832
43
  export const CollectorGoogleCloudStorage$outboundSchema: z.ZodType<
833
44
  CollectorGoogleCloudStorage$Outbound,
834
45
  z.ZodTypeDef,
835
46
  CollectorGoogleCloudStorage
836
- > = z.union([
837
- z.lazy(() => CollectorGoogleCloudStorageGoogleCloudStorage2$outboundSchema),
838
- z.lazy(() => CollectorGoogleCloudStorageGoogleCloudStorage3$outboundSchema),
839
- z.lazy(() => CollectorGoogleCloudStorageGoogleCloudStorage1$outboundSchema),
840
- ]);
47
+ > = z.object({
48
+ type: z.literal("google_cloud_storage"),
49
+ conf: GoogleCloudStorageCollectorConf$outboundSchema,
50
+ });
841
51
 
842
52
  export function collectorGoogleCloudStorageToJSON(
843
53
  collectorGoogleCloudStorage: CollectorGoogleCloudStorage,