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
@@ -3,1385 +3,17 @@
3
3
  */
4
4
  import * as z from "zod/v3";
5
5
  import { safeParse } from "../lib/schemas.js";
6
- import * as openEnums from "../types/enums.js";
7
- /**
8
- * Authentication method for Discover and Collect REST calls
9
- */
10
- export const CollectorSplunkAuthentication7 = {
11
- /**
12
- * None
13
- */
14
- None: "none",
15
- /**
16
- * Basic
17
- */
18
- Basic: "basic",
19
- /**
20
- * Basic (credentials secret)
21
- */
22
- BasicSecret: "basicSecret",
23
- /**
24
- * Bearer Token
25
- */
26
- Token: "token",
27
- /**
28
- * Bearer Token (text secret)
29
- */
30
- TokenSecret: "tokenSecret",
31
- };
32
- /**
33
- * Collector type: splunk
34
- */
35
- export const CollectorSplunkType7 = {
36
- Splunk: "splunk",
37
- };
38
- /**
39
- * Format of the returned output
40
- */
41
- export const CollectorSplunkOutputMode7 = {
42
- Csv: "csv",
43
- Json: "json",
44
- };
45
- /**
46
- * Algorithm to use when performing HTTP retries
47
- */
48
- export const CollectorSplunkRetryType7 = {
49
- /**
50
- * Disabled
51
- */
52
- None: "none",
53
- /**
54
- * Backoff
55
- */
56
- Backoff: "backoff",
57
- /**
58
- * Static
59
- */
60
- Static: "static",
61
- };
62
- /**
63
- * Authentication method for Discover and Collect REST calls
64
- */
65
- export const CollectorSplunkAuthentication6 = {
66
- /**
67
- * None
68
- */
69
- None: "none",
70
- /**
71
- * Basic
72
- */
73
- Basic: "basic",
74
- /**
75
- * Basic (credentials secret)
76
- */
77
- BasicSecret: "basicSecret",
78
- /**
79
- * Bearer Token
80
- */
81
- Token: "token",
82
- /**
83
- * Bearer Token (text secret)
84
- */
85
- TokenSecret: "tokenSecret",
86
- };
87
- /**
88
- * Collector type: splunk
89
- */
90
- export const CollectorSplunkType6 = {
91
- Splunk: "splunk",
92
- };
93
- /**
94
- * Format of the returned output
95
- */
96
- export const CollectorSplunkOutputMode6 = {
97
- Csv: "csv",
98
- Json: "json",
99
- };
100
- /**
101
- * Algorithm to use when performing HTTP retries
102
- */
103
- export const CollectorSplunkRetryType6 = {
104
- /**
105
- * Disabled
106
- */
107
- None: "none",
108
- /**
109
- * Backoff
110
- */
111
- Backoff: "backoff",
112
- /**
113
- * Static
114
- */
115
- Static: "static",
116
- };
117
- /**
118
- * Authentication method for Discover and Collect REST calls
119
- */
120
- export const CollectorSplunkAuthentication5 = {
121
- /**
122
- * None
123
- */
124
- None: "none",
125
- /**
126
- * Basic
127
- */
128
- Basic: "basic",
129
- /**
130
- * Basic (credentials secret)
131
- */
132
- BasicSecret: "basicSecret",
133
- /**
134
- * Bearer Token
135
- */
136
- Token: "token",
137
- /**
138
- * Bearer Token (text secret)
139
- */
140
- TokenSecret: "tokenSecret",
141
- };
142
- /**
143
- * Collector type: splunk
144
- */
145
- export const CollectorSplunkType5 = {
146
- Splunk: "splunk",
147
- };
148
- /**
149
- * Format of the returned output
150
- */
151
- export const CollectorSplunkOutputMode5 = {
152
- Csv: "csv",
153
- Json: "json",
154
- };
155
- /**
156
- * Algorithm to use when performing HTTP retries
157
- */
158
- export const CollectorSplunkRetryType5 = {
159
- /**
160
- * Disabled
161
- */
162
- None: "none",
163
- /**
164
- * Backoff
165
- */
166
- Backoff: "backoff",
167
- /**
168
- * Static
169
- */
170
- Static: "static",
171
- };
172
- /**
173
- * Authentication method for Discover and Collect REST calls
174
- */
175
- export const CollectorSplunkAuthentication4 = {
176
- /**
177
- * None
178
- */
179
- None: "none",
180
- /**
181
- * Basic
182
- */
183
- Basic: "basic",
184
- /**
185
- * Basic (credentials secret)
186
- */
187
- BasicSecret: "basicSecret",
188
- /**
189
- * Bearer Token
190
- */
191
- Token: "token",
192
- /**
193
- * Bearer Token (text secret)
194
- */
195
- TokenSecret: "tokenSecret",
196
- };
197
- /**
198
- * Collector type: splunk
199
- */
200
- export const CollectorSplunkType4 = {
201
- Splunk: "splunk",
202
- };
203
- /**
204
- * Format of the returned output
205
- */
206
- export const CollectorSplunkOutputMode4 = {
207
- Csv: "csv",
208
- Json: "json",
209
- };
210
- /**
211
- * Algorithm to use when performing HTTP retries
212
- */
213
- export const CollectorSplunkRetryType4 = {
214
- /**
215
- * Disabled
216
- */
217
- None: "none",
218
- /**
219
- * Backoff
220
- */
221
- Backoff: "backoff",
222
- /**
223
- * Static
224
- */
225
- Static: "static",
226
- };
227
- /**
228
- * Authentication method for Discover and Collect REST calls
229
- */
230
- export const CollectorSplunkAuthentication3 = {
231
- /**
232
- * None
233
- */
234
- None: "none",
235
- /**
236
- * Basic
237
- */
238
- Basic: "basic",
239
- /**
240
- * Basic (credentials secret)
241
- */
242
- BasicSecret: "basicSecret",
243
- /**
244
- * Bearer Token
245
- */
246
- Token: "token",
247
- /**
248
- * Bearer Token (text secret)
249
- */
250
- TokenSecret: "tokenSecret",
251
- };
252
- /**
253
- * Collector type: splunk
254
- */
255
- export const CollectorSplunkType3 = {
256
- Splunk: "splunk",
257
- };
258
- /**
259
- * Format of the returned output
260
- */
261
- export const CollectorSplunkOutputMode3 = {
262
- Csv: "csv",
263
- Json: "json",
264
- };
265
- /**
266
- * Algorithm to use when performing HTTP retries
267
- */
268
- export const CollectorSplunkRetryType3 = {
269
- /**
270
- * Disabled
271
- */
272
- None: "none",
273
- /**
274
- * Backoff
275
- */
276
- Backoff: "backoff",
277
- /**
278
- * Static
279
- */
280
- Static: "static",
281
- };
282
- /**
283
- * Authentication method for Discover and Collect REST calls
284
- */
285
- export const CollectorSplunkAuthentication2 = {
286
- /**
287
- * None
288
- */
289
- None: "none",
290
- /**
291
- * Basic
292
- */
293
- Basic: "basic",
294
- /**
295
- * Basic (credentials secret)
296
- */
297
- BasicSecret: "basicSecret",
298
- /**
299
- * Bearer Token
300
- */
301
- Token: "token",
302
- /**
303
- * Bearer Token (text secret)
304
- */
305
- TokenSecret: "tokenSecret",
306
- };
307
- /**
308
- * Collector type: splunk
309
- */
310
- export const CollectorSplunkType2 = {
311
- Splunk: "splunk",
312
- };
313
- /**
314
- * Format of the returned output
315
- */
316
- export const CollectorSplunkOutputMode2 = {
317
- Csv: "csv",
318
- Json: "json",
319
- };
320
- /**
321
- * Algorithm to use when performing HTTP retries
322
- */
323
- export const CollectorSplunkRetryType2 = {
324
- /**
325
- * Disabled
326
- */
327
- None: "none",
328
- /**
329
- * Backoff
330
- */
331
- Backoff: "backoff",
332
- /**
333
- * Static
334
- */
335
- Static: "static",
336
- };
337
- /**
338
- * Authentication method for Discover and Collect REST calls
339
- */
340
- export const CollectorSplunkAuthentication1 = {
341
- /**
342
- * None
343
- */
344
- None: "none",
345
- /**
346
- * Basic
347
- */
348
- Basic: "basic",
349
- /**
350
- * Basic (credentials secret)
351
- */
352
- BasicSecret: "basicSecret",
353
- /**
354
- * Bearer Token
355
- */
356
- Token: "token",
357
- /**
358
- * Bearer Token (text secret)
359
- */
360
- TokenSecret: "tokenSecret",
361
- };
362
- /**
363
- * Collector type: splunk
364
- */
365
- export const CollectorSplunkType1 = {
366
- Splunk: "splunk",
367
- };
368
- /**
369
- * Format of the returned output
370
- */
371
- export const CollectorSplunkOutputMode1 = {
372
- Csv: "csv",
373
- Json: "json",
374
- };
375
- /**
376
- * Algorithm to use when performing HTTP retries
377
- */
378
- export const CollectorSplunkRetryType1 = {
379
- /**
380
- * Disabled
381
- */
382
- None: "none",
383
- /**
384
- * Backoff
385
- */
386
- Backoff: "backoff",
387
- /**
388
- * Static
389
- */
390
- Static: "static",
391
- };
392
- /** @internal */
393
- export const CollectorSplunkAuthentication7$inboundSchema = openEnums.inboundSchema(CollectorSplunkAuthentication7);
394
- /** @internal */
395
- export const CollectorSplunkAuthentication7$outboundSchema = openEnums.outboundSchema(CollectorSplunkAuthentication7);
396
- /** @internal */
397
- export const CollectorSplunkType7$inboundSchema = z.nativeEnum(CollectorSplunkType7);
398
- /** @internal */
399
- export const CollectorSplunkType7$outboundSchema = CollectorSplunkType7$inboundSchema;
400
- /** @internal */
401
- export const CollectorSplunkOutputMode7$inboundSchema = openEnums.inboundSchema(CollectorSplunkOutputMode7);
402
- /** @internal */
403
- export const CollectorSplunkOutputMode7$outboundSchema = openEnums.outboundSchema(CollectorSplunkOutputMode7);
404
- /** @internal */
405
- export const CollectorSplunkCollectRequestParam7$inboundSchema = z.object({
406
- name: z.string(),
407
- value: z.string(),
408
- });
409
- /** @internal */
410
- export const CollectorSplunkCollectRequestParam7$outboundSchema = z.object({
411
- name: z.string(),
412
- value: z.string(),
413
- });
414
- export function collectorSplunkCollectRequestParam7ToJSON(collectorSplunkCollectRequestParam7) {
415
- return JSON.stringify(CollectorSplunkCollectRequestParam7$outboundSchema.parse(collectorSplunkCollectRequestParam7));
416
- }
417
- export function collectorSplunkCollectRequestParam7FromJSON(jsonString) {
418
- return safeParse(jsonString, (x) => CollectorSplunkCollectRequestParam7$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkCollectRequestParam7' from JSON`);
419
- }
420
- /** @internal */
421
- export const CollectorSplunkCollectRequestHeader7$inboundSchema = z.object({
422
- name: z.string(),
423
- value: z.string(),
424
- });
425
- /** @internal */
426
- export const CollectorSplunkCollectRequestHeader7$outboundSchema = z.object({
427
- name: z.string(),
428
- value: z.string(),
429
- });
430
- export function collectorSplunkCollectRequestHeader7ToJSON(collectorSplunkCollectRequestHeader7) {
431
- return JSON.stringify(CollectorSplunkCollectRequestHeader7$outboundSchema.parse(collectorSplunkCollectRequestHeader7));
432
- }
433
- export function collectorSplunkCollectRequestHeader7FromJSON(jsonString) {
434
- return safeParse(jsonString, (x) => CollectorSplunkCollectRequestHeader7$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkCollectRequestHeader7' from JSON`);
435
- }
436
- /** @internal */
437
- export const CollectorSplunkRetryType7$inboundSchema = openEnums.inboundSchema(CollectorSplunkRetryType7);
438
- /** @internal */
439
- export const CollectorSplunkRetryType7$outboundSchema = openEnums.outboundSchema(CollectorSplunkRetryType7);
440
- /** @internal */
441
- export const CollectorSplunkRetryRules7$inboundSchema = z.object({
442
- type: CollectorSplunkRetryType7$inboundSchema.default("backoff"),
443
- interval: z.any().optional(),
444
- limit: z.any().optional(),
445
- multiplier: z.any().optional(),
446
- codes: z.any().optional(),
447
- enableHeader: z.any().optional(),
448
- retryConnectTimeout: z.any().optional(),
449
- retryConnectReset: z.any().optional(),
450
- });
451
- /** @internal */
452
- export const CollectorSplunkRetryRules7$outboundSchema = z.object({
453
- type: CollectorSplunkRetryType7$outboundSchema.default("backoff"),
454
- interval: z.any().optional(),
455
- limit: z.any().optional(),
456
- multiplier: z.any().optional(),
457
- codes: z.any().optional(),
458
- enableHeader: z.any().optional(),
459
- retryConnectTimeout: z.any().optional(),
460
- retryConnectReset: z.any().optional(),
461
- });
462
- export function collectorSplunkRetryRules7ToJSON(collectorSplunkRetryRules7) {
463
- return JSON.stringify(CollectorSplunkRetryRules7$outboundSchema.parse(collectorSplunkRetryRules7));
464
- }
465
- export function collectorSplunkRetryRules7FromJSON(jsonString) {
466
- return safeParse(jsonString, (x) => CollectorSplunkRetryRules7$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkRetryRules7' from JSON`);
467
- }
468
- /** @internal */
469
- export const CollectorSplunkSplunk7$inboundSchema = z.object({
470
- authentication: CollectorSplunkAuthentication7$inboundSchema.default("basic"),
471
- loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
472
- credentialsSecret: z.string(),
473
- loginBody: z.string().default("`{ \"username\": \"${username}\", \"password\": \"${password}\" }`"),
474
- tokenRespAttribute: z.string().default("token"),
475
- authHeaderExpr: z.string().default("`Bearer ${token}`"),
476
- type: CollectorSplunkType7$inboundSchema,
477
- searchHead: z.string().default("https://localhost:8089"),
478
- search: z.string(),
479
- earliest: z.string().optional(),
480
- latest: z.string().optional(),
481
- endpoint: z.string().default("/services/search/v2/jobs/export"),
482
- outputMode: CollectorSplunkOutputMode7$inboundSchema.default("json"),
483
- collectRequestParams: z.array(z.lazy(() => CollectorSplunkCollectRequestParam7$inboundSchema)).optional(),
484
- collectRequestHeaders: z.array(z.lazy(() => CollectorSplunkCollectRequestHeader7$inboundSchema)).optional(),
485
- timeout: z.number().default(0),
486
- useRoundRobinDns: z.boolean().default(false),
487
- disableTimeFilter: z.boolean().default(true),
488
- rejectUnauthorized: z.boolean().default(false),
489
- handleEscapedChars: z.boolean().default(false),
490
- retryRules: z.lazy(() => CollectorSplunkRetryRules7$inboundSchema).optional(),
491
- username: z.string().optional(),
492
- password: z.string().optional(),
493
- token: z.string().optional(),
494
- tokenSecret: z.string().optional(),
495
- });
496
- /** @internal */
497
- export const CollectorSplunkSplunk7$outboundSchema = z.object({
498
- authentication: CollectorSplunkAuthentication7$outboundSchema.default("basic"),
499
- loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
500
- credentialsSecret: z.string(),
501
- loginBody: z.string().default("`{ \"username\": \"${username}\", \"password\": \"${password}\" }`"),
502
- tokenRespAttribute: z.string().default("token"),
503
- authHeaderExpr: z.string().default("`Bearer ${token}`"),
504
- type: CollectorSplunkType7$outboundSchema,
505
- searchHead: z.string().default("https://localhost:8089"),
506
- search: z.string(),
507
- earliest: z.string().optional(),
508
- latest: z.string().optional(),
509
- endpoint: z.string().default("/services/search/v2/jobs/export"),
510
- outputMode: CollectorSplunkOutputMode7$outboundSchema.default("json"),
511
- collectRequestParams: z.array(z.lazy(() => CollectorSplunkCollectRequestParam7$outboundSchema)).optional(),
512
- collectRequestHeaders: z.array(z.lazy(() => CollectorSplunkCollectRequestHeader7$outboundSchema)).optional(),
513
- timeout: z.number().default(0),
514
- useRoundRobinDns: z.boolean().default(false),
515
- disableTimeFilter: z.boolean().default(true),
516
- rejectUnauthorized: z.boolean().default(false),
517
- handleEscapedChars: z.boolean().default(false),
518
- retryRules: z.lazy(() => CollectorSplunkRetryRules7$outboundSchema)
519
- .optional(),
520
- username: z.string().optional(),
521
- password: z.string().optional(),
522
- token: z.string().optional(),
523
- tokenSecret: z.string().optional(),
524
- });
525
- export function collectorSplunkSplunk7ToJSON(collectorSplunkSplunk7) {
526
- return JSON.stringify(CollectorSplunkSplunk7$outboundSchema.parse(collectorSplunkSplunk7));
527
- }
528
- export function collectorSplunkSplunk7FromJSON(jsonString) {
529
- return safeParse(jsonString, (x) => CollectorSplunkSplunk7$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkSplunk7' from JSON`);
530
- }
531
- /** @internal */
532
- export const CollectorSplunkAuthentication6$inboundSchema = openEnums.inboundSchema(CollectorSplunkAuthentication6);
533
- /** @internal */
534
- export const CollectorSplunkAuthentication6$outboundSchema = openEnums.outboundSchema(CollectorSplunkAuthentication6);
535
- /** @internal */
536
- export const CollectorSplunkType6$inboundSchema = z.nativeEnum(CollectorSplunkType6);
537
- /** @internal */
538
- export const CollectorSplunkType6$outboundSchema = CollectorSplunkType6$inboundSchema;
539
- /** @internal */
540
- export const CollectorSplunkOutputMode6$inboundSchema = openEnums.inboundSchema(CollectorSplunkOutputMode6);
541
- /** @internal */
542
- export const CollectorSplunkOutputMode6$outboundSchema = openEnums.outboundSchema(CollectorSplunkOutputMode6);
543
- /** @internal */
544
- export const CollectorSplunkCollectRequestParam6$inboundSchema = z.object({
545
- name: z.string(),
546
- value: z.string(),
547
- });
548
- /** @internal */
549
- export const CollectorSplunkCollectRequestParam6$outboundSchema = z.object({
550
- name: z.string(),
551
- value: z.string(),
552
- });
553
- export function collectorSplunkCollectRequestParam6ToJSON(collectorSplunkCollectRequestParam6) {
554
- return JSON.stringify(CollectorSplunkCollectRequestParam6$outboundSchema.parse(collectorSplunkCollectRequestParam6));
555
- }
556
- export function collectorSplunkCollectRequestParam6FromJSON(jsonString) {
557
- return safeParse(jsonString, (x) => CollectorSplunkCollectRequestParam6$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkCollectRequestParam6' from JSON`);
558
- }
559
- /** @internal */
560
- export const CollectorSplunkCollectRequestHeader6$inboundSchema = z.object({
561
- name: z.string(),
562
- value: z.string(),
563
- });
564
- /** @internal */
565
- export const CollectorSplunkCollectRequestHeader6$outboundSchema = z.object({
566
- name: z.string(),
567
- value: z.string(),
568
- });
569
- export function collectorSplunkCollectRequestHeader6ToJSON(collectorSplunkCollectRequestHeader6) {
570
- return JSON.stringify(CollectorSplunkCollectRequestHeader6$outboundSchema.parse(collectorSplunkCollectRequestHeader6));
571
- }
572
- export function collectorSplunkCollectRequestHeader6FromJSON(jsonString) {
573
- return safeParse(jsonString, (x) => CollectorSplunkCollectRequestHeader6$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkCollectRequestHeader6' from JSON`);
574
- }
575
- /** @internal */
576
- export const CollectorSplunkRetryType6$inboundSchema = openEnums.inboundSchema(CollectorSplunkRetryType6);
577
- /** @internal */
578
- export const CollectorSplunkRetryType6$outboundSchema = openEnums.outboundSchema(CollectorSplunkRetryType6);
579
- /** @internal */
580
- export const CollectorSplunkRetryRules6$inboundSchema = z.object({
581
- type: CollectorSplunkRetryType6$inboundSchema.default("backoff"),
582
- interval: z.any().optional(),
583
- limit: z.any().optional(),
584
- multiplier: z.any().optional(),
585
- codes: z.any().optional(),
586
- enableHeader: z.any().optional(),
587
- retryConnectTimeout: z.any().optional(),
588
- retryConnectReset: z.any().optional(),
589
- });
590
- /** @internal */
591
- export const CollectorSplunkRetryRules6$outboundSchema = z.object({
592
- type: CollectorSplunkRetryType6$outboundSchema.default("backoff"),
593
- interval: z.any().optional(),
594
- limit: z.any().optional(),
595
- multiplier: z.any().optional(),
596
- codes: z.any().optional(),
597
- enableHeader: z.any().optional(),
598
- retryConnectTimeout: z.any().optional(),
599
- retryConnectReset: z.any().optional(),
600
- });
601
- export function collectorSplunkRetryRules6ToJSON(collectorSplunkRetryRules6) {
602
- return JSON.stringify(CollectorSplunkRetryRules6$outboundSchema.parse(collectorSplunkRetryRules6));
603
- }
604
- export function collectorSplunkRetryRules6FromJSON(jsonString) {
605
- return safeParse(jsonString, (x) => CollectorSplunkRetryRules6$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkRetryRules6' from JSON`);
606
- }
607
- /** @internal */
608
- export const CollectorSplunkSplunk6$inboundSchema = z.object({
609
- authentication: CollectorSplunkAuthentication6$inboundSchema.default("basic"),
610
- loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
611
- username: z.string(),
612
- password: z.string(),
613
- loginBody: z.string().default("`{ \"username\": \"${username}\", \"password\": \"${password}\" }`"),
614
- tokenRespAttribute: z.string().default("token"),
615
- authHeaderExpr: z.string().default("`Bearer ${token}`"),
616
- type: CollectorSplunkType6$inboundSchema,
617
- searchHead: z.string().default("https://localhost:8089"),
618
- search: z.string(),
619
- earliest: z.string().optional(),
620
- latest: z.string().optional(),
621
- endpoint: z.string().default("/services/search/v2/jobs/export"),
622
- outputMode: CollectorSplunkOutputMode6$inboundSchema.default("json"),
623
- collectRequestParams: z.array(z.lazy(() => CollectorSplunkCollectRequestParam6$inboundSchema)).optional(),
624
- collectRequestHeaders: z.array(z.lazy(() => CollectorSplunkCollectRequestHeader6$inboundSchema)).optional(),
625
- timeout: z.number().default(0),
626
- useRoundRobinDns: z.boolean().default(false),
627
- disableTimeFilter: z.boolean().default(true),
628
- rejectUnauthorized: z.boolean().default(false),
629
- handleEscapedChars: z.boolean().default(false),
630
- retryRules: z.lazy(() => CollectorSplunkRetryRules6$inboundSchema).optional(),
631
- credentialsSecret: z.string().optional(),
632
- token: z.string().optional(),
633
- tokenSecret: z.string().optional(),
634
- });
635
- /** @internal */
636
- export const CollectorSplunkSplunk6$outboundSchema = z.object({
637
- authentication: CollectorSplunkAuthentication6$outboundSchema.default("basic"),
638
- loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
639
- username: z.string(),
640
- password: z.string(),
641
- loginBody: z.string().default("`{ \"username\": \"${username}\", \"password\": \"${password}\" }`"),
642
- tokenRespAttribute: z.string().default("token"),
643
- authHeaderExpr: z.string().default("`Bearer ${token}`"),
644
- type: CollectorSplunkType6$outboundSchema,
645
- searchHead: z.string().default("https://localhost:8089"),
646
- search: z.string(),
647
- earliest: z.string().optional(),
648
- latest: z.string().optional(),
649
- endpoint: z.string().default("/services/search/v2/jobs/export"),
650
- outputMode: CollectorSplunkOutputMode6$outboundSchema.default("json"),
651
- collectRequestParams: z.array(z.lazy(() => CollectorSplunkCollectRequestParam6$outboundSchema)).optional(),
652
- collectRequestHeaders: z.array(z.lazy(() => CollectorSplunkCollectRequestHeader6$outboundSchema)).optional(),
653
- timeout: z.number().default(0),
654
- useRoundRobinDns: z.boolean().default(false),
655
- disableTimeFilter: z.boolean().default(true),
656
- rejectUnauthorized: z.boolean().default(false),
657
- handleEscapedChars: z.boolean().default(false),
658
- retryRules: z.lazy(() => CollectorSplunkRetryRules6$outboundSchema)
659
- .optional(),
660
- credentialsSecret: z.string().optional(),
661
- token: z.string().optional(),
662
- tokenSecret: z.string().optional(),
663
- });
664
- export function collectorSplunkSplunk6ToJSON(collectorSplunkSplunk6) {
665
- return JSON.stringify(CollectorSplunkSplunk6$outboundSchema.parse(collectorSplunkSplunk6));
666
- }
667
- export function collectorSplunkSplunk6FromJSON(jsonString) {
668
- return safeParse(jsonString, (x) => CollectorSplunkSplunk6$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkSplunk6' from JSON`);
669
- }
670
- /** @internal */
671
- export const CollectorSplunkAuthentication5$inboundSchema = openEnums.inboundSchema(CollectorSplunkAuthentication5);
672
- /** @internal */
673
- export const CollectorSplunkAuthentication5$outboundSchema = openEnums.outboundSchema(CollectorSplunkAuthentication5);
674
- /** @internal */
675
- export const CollectorSplunkType5$inboundSchema = z.nativeEnum(CollectorSplunkType5);
676
- /** @internal */
677
- export const CollectorSplunkType5$outboundSchema = CollectorSplunkType5$inboundSchema;
678
- /** @internal */
679
- export const CollectorSplunkOutputMode5$inboundSchema = openEnums.inboundSchema(CollectorSplunkOutputMode5);
680
- /** @internal */
681
- export const CollectorSplunkOutputMode5$outboundSchema = openEnums.outboundSchema(CollectorSplunkOutputMode5);
682
- /** @internal */
683
- export const CollectorSplunkCollectRequestParam5$inboundSchema = z.object({
684
- name: z.string(),
685
- value: z.string(),
686
- });
687
- /** @internal */
688
- export const CollectorSplunkCollectRequestParam5$outboundSchema = z.object({
689
- name: z.string(),
690
- value: z.string(),
691
- });
692
- export function collectorSplunkCollectRequestParam5ToJSON(collectorSplunkCollectRequestParam5) {
693
- return JSON.stringify(CollectorSplunkCollectRequestParam5$outboundSchema.parse(collectorSplunkCollectRequestParam5));
694
- }
695
- export function collectorSplunkCollectRequestParam5FromJSON(jsonString) {
696
- return safeParse(jsonString, (x) => CollectorSplunkCollectRequestParam5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkCollectRequestParam5' from JSON`);
697
- }
698
- /** @internal */
699
- export const CollectorSplunkCollectRequestHeader5$inboundSchema = z.object({
700
- name: z.string(),
701
- value: z.string(),
702
- });
703
- /** @internal */
704
- export const CollectorSplunkCollectRequestHeader5$outboundSchema = z.object({
705
- name: z.string(),
706
- value: z.string(),
707
- });
708
- export function collectorSplunkCollectRequestHeader5ToJSON(collectorSplunkCollectRequestHeader5) {
709
- return JSON.stringify(CollectorSplunkCollectRequestHeader5$outboundSchema.parse(collectorSplunkCollectRequestHeader5));
710
- }
711
- export function collectorSplunkCollectRequestHeader5FromJSON(jsonString) {
712
- return safeParse(jsonString, (x) => CollectorSplunkCollectRequestHeader5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkCollectRequestHeader5' from JSON`);
713
- }
714
- /** @internal */
715
- export const CollectorSplunkRetryType5$inboundSchema = openEnums.inboundSchema(CollectorSplunkRetryType5);
716
- /** @internal */
717
- export const CollectorSplunkRetryType5$outboundSchema = openEnums.outboundSchema(CollectorSplunkRetryType5);
718
- /** @internal */
719
- export const CollectorSplunkRetryRules5$inboundSchema = z.object({
720
- type: CollectorSplunkRetryType5$inboundSchema.default("backoff"),
721
- interval: z.any().optional(),
722
- limit: z.any().optional(),
723
- multiplier: z.any().optional(),
724
- codes: z.any().optional(),
725
- enableHeader: z.any().optional(),
726
- retryConnectTimeout: z.any().optional(),
727
- retryConnectReset: z.any().optional(),
728
- });
729
- /** @internal */
730
- export const CollectorSplunkRetryRules5$outboundSchema = z.object({
731
- type: CollectorSplunkRetryType5$outboundSchema.default("backoff"),
732
- interval: z.any().optional(),
733
- limit: z.any().optional(),
734
- multiplier: z.any().optional(),
735
- codes: z.any().optional(),
736
- enableHeader: z.any().optional(),
737
- retryConnectTimeout: z.any().optional(),
738
- retryConnectReset: z.any().optional(),
739
- });
740
- export function collectorSplunkRetryRules5ToJSON(collectorSplunkRetryRules5) {
741
- return JSON.stringify(CollectorSplunkRetryRules5$outboundSchema.parse(collectorSplunkRetryRules5));
742
- }
743
- export function collectorSplunkRetryRules5FromJSON(jsonString) {
744
- return safeParse(jsonString, (x) => CollectorSplunkRetryRules5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkRetryRules5' from JSON`);
745
- }
746
- /** @internal */
747
- export const CollectorSplunkSplunk5$inboundSchema = z.object({
748
- authentication: CollectorSplunkAuthentication5$inboundSchema.default("basic"),
749
- tokenSecret: z.string(),
750
- type: CollectorSplunkType5$inboundSchema,
751
- searchHead: z.string().default("https://localhost:8089"),
752
- search: z.string(),
753
- earliest: z.string().optional(),
754
- latest: z.string().optional(),
755
- endpoint: z.string().default("/services/search/v2/jobs/export"),
756
- outputMode: CollectorSplunkOutputMode5$inboundSchema.default("json"),
757
- collectRequestParams: z.array(z.lazy(() => CollectorSplunkCollectRequestParam5$inboundSchema)).optional(),
758
- collectRequestHeaders: z.array(z.lazy(() => CollectorSplunkCollectRequestHeader5$inboundSchema)).optional(),
759
- timeout: z.number().default(0),
760
- useRoundRobinDns: z.boolean().default(false),
761
- disableTimeFilter: z.boolean().default(true),
762
- rejectUnauthorized: z.boolean().default(false),
763
- handleEscapedChars: z.boolean().default(false),
764
- retryRules: z.lazy(() => CollectorSplunkRetryRules5$inboundSchema).optional(),
765
- username: z.string().optional(),
766
- password: z.string().optional(),
767
- credentialsSecret: z.string().optional(),
768
- token: z.string().optional(),
769
- loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
770
- loginBody: z.string().default("`{ \"username\": \"${username}\", \"password\": \"${password}\" }`"),
771
- tokenRespAttribute: z.string().default("token"),
772
- authHeaderExpr: z.string().default("`Bearer ${token}`"),
773
- });
774
- /** @internal */
775
- export const CollectorSplunkSplunk5$outboundSchema = z.object({
776
- authentication: CollectorSplunkAuthentication5$outboundSchema.default("basic"),
777
- tokenSecret: z.string(),
778
- type: CollectorSplunkType5$outboundSchema,
779
- searchHead: z.string().default("https://localhost:8089"),
780
- search: z.string(),
781
- earliest: z.string().optional(),
782
- latest: z.string().optional(),
783
- endpoint: z.string().default("/services/search/v2/jobs/export"),
784
- outputMode: CollectorSplunkOutputMode5$outboundSchema.default("json"),
785
- collectRequestParams: z.array(z.lazy(() => CollectorSplunkCollectRequestParam5$outboundSchema)).optional(),
786
- collectRequestHeaders: z.array(z.lazy(() => CollectorSplunkCollectRequestHeader5$outboundSchema)).optional(),
787
- timeout: z.number().default(0),
788
- useRoundRobinDns: z.boolean().default(false),
789
- disableTimeFilter: z.boolean().default(true),
790
- rejectUnauthorized: z.boolean().default(false),
791
- handleEscapedChars: z.boolean().default(false),
792
- retryRules: z.lazy(() => CollectorSplunkRetryRules5$outboundSchema)
793
- .optional(),
794
- username: z.string().optional(),
795
- password: z.string().optional(),
796
- credentialsSecret: z.string().optional(),
797
- token: z.string().optional(),
798
- loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
799
- loginBody: z.string().default("`{ \"username\": \"${username}\", \"password\": \"${password}\" }`"),
800
- tokenRespAttribute: z.string().default("token"),
801
- authHeaderExpr: z.string().default("`Bearer ${token}`"),
802
- });
803
- export function collectorSplunkSplunk5ToJSON(collectorSplunkSplunk5) {
804
- return JSON.stringify(CollectorSplunkSplunk5$outboundSchema.parse(collectorSplunkSplunk5));
805
- }
806
- export function collectorSplunkSplunk5FromJSON(jsonString) {
807
- return safeParse(jsonString, (x) => CollectorSplunkSplunk5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkSplunk5' from JSON`);
808
- }
809
- /** @internal */
810
- export const CollectorSplunkAuthentication4$inboundSchema = openEnums.inboundSchema(CollectorSplunkAuthentication4);
6
+ import { SplunkCollectorConf$inboundSchema, SplunkCollectorConf$outboundSchema, } from "./splunkcollectorconf.js";
811
7
  /** @internal */
812
- export const CollectorSplunkAuthentication4$outboundSchema = openEnums.outboundSchema(CollectorSplunkAuthentication4);
813
- /** @internal */
814
- export const CollectorSplunkType4$inboundSchema = z.nativeEnum(CollectorSplunkType4);
815
- /** @internal */
816
- export const CollectorSplunkType4$outboundSchema = CollectorSplunkType4$inboundSchema;
817
- /** @internal */
818
- export const CollectorSplunkOutputMode4$inboundSchema = openEnums.inboundSchema(CollectorSplunkOutputMode4);
819
- /** @internal */
820
- export const CollectorSplunkOutputMode4$outboundSchema = openEnums.outboundSchema(CollectorSplunkOutputMode4);
821
- /** @internal */
822
- export const CollectorSplunkCollectRequestParam4$inboundSchema = z.object({
823
- name: z.string(),
824
- value: z.string(),
825
- });
826
- /** @internal */
827
- export const CollectorSplunkCollectRequestParam4$outboundSchema = z.object({
828
- name: z.string(),
829
- value: z.string(),
830
- });
831
- export function collectorSplunkCollectRequestParam4ToJSON(collectorSplunkCollectRequestParam4) {
832
- return JSON.stringify(CollectorSplunkCollectRequestParam4$outboundSchema.parse(collectorSplunkCollectRequestParam4));
833
- }
834
- export function collectorSplunkCollectRequestParam4FromJSON(jsonString) {
835
- return safeParse(jsonString, (x) => CollectorSplunkCollectRequestParam4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkCollectRequestParam4' from JSON`);
836
- }
837
- /** @internal */
838
- export const CollectorSplunkCollectRequestHeader4$inboundSchema = z.object({
839
- name: z.string(),
840
- value: z.string(),
841
- });
842
- /** @internal */
843
- export const CollectorSplunkCollectRequestHeader4$outboundSchema = z.object({
844
- name: z.string(),
845
- value: z.string(),
846
- });
847
- export function collectorSplunkCollectRequestHeader4ToJSON(collectorSplunkCollectRequestHeader4) {
848
- return JSON.stringify(CollectorSplunkCollectRequestHeader4$outboundSchema.parse(collectorSplunkCollectRequestHeader4));
849
- }
850
- export function collectorSplunkCollectRequestHeader4FromJSON(jsonString) {
851
- return safeParse(jsonString, (x) => CollectorSplunkCollectRequestHeader4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkCollectRequestHeader4' from JSON`);
852
- }
853
- /** @internal */
854
- export const CollectorSplunkRetryType4$inboundSchema = openEnums.inboundSchema(CollectorSplunkRetryType4);
855
- /** @internal */
856
- export const CollectorSplunkRetryType4$outboundSchema = openEnums.outboundSchema(CollectorSplunkRetryType4);
857
- /** @internal */
858
- export const CollectorSplunkRetryRules4$inboundSchema = z.object({
859
- type: CollectorSplunkRetryType4$inboundSchema.default("backoff"),
860
- interval: z.any().optional(),
861
- limit: z.any().optional(),
862
- multiplier: z.any().optional(),
863
- codes: z.any().optional(),
864
- enableHeader: z.any().optional(),
865
- retryConnectTimeout: z.any().optional(),
866
- retryConnectReset: z.any().optional(),
867
- });
868
- /** @internal */
869
- export const CollectorSplunkRetryRules4$outboundSchema = z.object({
870
- type: CollectorSplunkRetryType4$outboundSchema.default("backoff"),
871
- interval: z.any().optional(),
872
- limit: z.any().optional(),
873
- multiplier: z.any().optional(),
874
- codes: z.any().optional(),
875
- enableHeader: z.any().optional(),
876
- retryConnectTimeout: z.any().optional(),
877
- retryConnectReset: z.any().optional(),
878
- });
879
- export function collectorSplunkRetryRules4ToJSON(collectorSplunkRetryRules4) {
880
- return JSON.stringify(CollectorSplunkRetryRules4$outboundSchema.parse(collectorSplunkRetryRules4));
881
- }
882
- export function collectorSplunkRetryRules4FromJSON(jsonString) {
883
- return safeParse(jsonString, (x) => CollectorSplunkRetryRules4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkRetryRules4' from JSON`);
884
- }
885
- /** @internal */
886
- export const CollectorSplunkSplunk4$inboundSchema = z.object({
887
- authentication: CollectorSplunkAuthentication4$inboundSchema.default("basic"),
888
- token: z.string(),
889
- type: CollectorSplunkType4$inboundSchema,
890
- searchHead: z.string().default("https://localhost:8089"),
891
- search: z.string(),
892
- earliest: z.string().optional(),
893
- latest: z.string().optional(),
894
- endpoint: z.string().default("/services/search/v2/jobs/export"),
895
- outputMode: CollectorSplunkOutputMode4$inboundSchema.default("json"),
896
- collectRequestParams: z.array(z.lazy(() => CollectorSplunkCollectRequestParam4$inboundSchema)).optional(),
897
- collectRequestHeaders: z.array(z.lazy(() => CollectorSplunkCollectRequestHeader4$inboundSchema)).optional(),
898
- timeout: z.number().default(0),
899
- useRoundRobinDns: z.boolean().default(false),
900
- disableTimeFilter: z.boolean().default(true),
901
- rejectUnauthorized: z.boolean().default(false),
902
- handleEscapedChars: z.boolean().default(false),
903
- retryRules: z.lazy(() => CollectorSplunkRetryRules4$inboundSchema).optional(),
904
- username: z.string().optional(),
905
- password: z.string().optional(),
906
- credentialsSecret: z.string().optional(),
907
- tokenSecret: z.string().optional(),
908
- loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
909
- loginBody: z.string().default("`{ \"username\": \"${username}\", \"password\": \"${password}\" }`"),
910
- tokenRespAttribute: z.string().default("token"),
911
- authHeaderExpr: z.string().default("`Bearer ${token}`"),
8
+ export const CollectorSplunk$inboundSchema = z.object({
9
+ type: z.literal("splunk"),
10
+ conf: SplunkCollectorConf$inboundSchema,
912
11
  });
913
12
  /** @internal */
914
- export const CollectorSplunkSplunk4$outboundSchema = z.object({
915
- authentication: CollectorSplunkAuthentication4$outboundSchema.default("basic"),
916
- token: z.string(),
917
- type: CollectorSplunkType4$outboundSchema,
918
- searchHead: z.string().default("https://localhost:8089"),
919
- search: z.string(),
920
- earliest: z.string().optional(),
921
- latest: z.string().optional(),
922
- endpoint: z.string().default("/services/search/v2/jobs/export"),
923
- outputMode: CollectorSplunkOutputMode4$outboundSchema.default("json"),
924
- collectRequestParams: z.array(z.lazy(() => CollectorSplunkCollectRequestParam4$outboundSchema)).optional(),
925
- collectRequestHeaders: z.array(z.lazy(() => CollectorSplunkCollectRequestHeader4$outboundSchema)).optional(),
926
- timeout: z.number().default(0),
927
- useRoundRobinDns: z.boolean().default(false),
928
- disableTimeFilter: z.boolean().default(true),
929
- rejectUnauthorized: z.boolean().default(false),
930
- handleEscapedChars: z.boolean().default(false),
931
- retryRules: z.lazy(() => CollectorSplunkRetryRules4$outboundSchema)
932
- .optional(),
933
- username: z.string().optional(),
934
- password: z.string().optional(),
935
- credentialsSecret: z.string().optional(),
936
- tokenSecret: z.string().optional(),
937
- loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
938
- loginBody: z.string().default("`{ \"username\": \"${username}\", \"password\": \"${password}\" }`"),
939
- tokenRespAttribute: z.string().default("token"),
940
- authHeaderExpr: z.string().default("`Bearer ${token}`"),
13
+ export const CollectorSplunk$outboundSchema = z.object({
14
+ type: z.literal("splunk"),
15
+ conf: SplunkCollectorConf$outboundSchema,
941
16
  });
942
- export function collectorSplunkSplunk4ToJSON(collectorSplunkSplunk4) {
943
- return JSON.stringify(CollectorSplunkSplunk4$outboundSchema.parse(collectorSplunkSplunk4));
944
- }
945
- export function collectorSplunkSplunk4FromJSON(jsonString) {
946
- return safeParse(jsonString, (x) => CollectorSplunkSplunk4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkSplunk4' from JSON`);
947
- }
948
- /** @internal */
949
- export const CollectorSplunkAuthentication3$inboundSchema = openEnums.inboundSchema(CollectorSplunkAuthentication3);
950
- /** @internal */
951
- export const CollectorSplunkAuthentication3$outboundSchema = openEnums.outboundSchema(CollectorSplunkAuthentication3);
952
- /** @internal */
953
- export const CollectorSplunkType3$inboundSchema = z.nativeEnum(CollectorSplunkType3);
954
- /** @internal */
955
- export const CollectorSplunkType3$outboundSchema = CollectorSplunkType3$inboundSchema;
956
- /** @internal */
957
- export const CollectorSplunkOutputMode3$inboundSchema = openEnums.inboundSchema(CollectorSplunkOutputMode3);
958
- /** @internal */
959
- export const CollectorSplunkOutputMode3$outboundSchema = openEnums.outboundSchema(CollectorSplunkOutputMode3);
960
- /** @internal */
961
- export const CollectorSplunkCollectRequestParam3$inboundSchema = z.object({
962
- name: z.string(),
963
- value: z.string(),
964
- });
965
- /** @internal */
966
- export const CollectorSplunkCollectRequestParam3$outboundSchema = z.object({
967
- name: z.string(),
968
- value: z.string(),
969
- });
970
- export function collectorSplunkCollectRequestParam3ToJSON(collectorSplunkCollectRequestParam3) {
971
- return JSON.stringify(CollectorSplunkCollectRequestParam3$outboundSchema.parse(collectorSplunkCollectRequestParam3));
972
- }
973
- export function collectorSplunkCollectRequestParam3FromJSON(jsonString) {
974
- return safeParse(jsonString, (x) => CollectorSplunkCollectRequestParam3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkCollectRequestParam3' from JSON`);
975
- }
976
- /** @internal */
977
- export const CollectorSplunkCollectRequestHeader3$inboundSchema = z.object({
978
- name: z.string(),
979
- value: z.string(),
980
- });
981
- /** @internal */
982
- export const CollectorSplunkCollectRequestHeader3$outboundSchema = z.object({
983
- name: z.string(),
984
- value: z.string(),
985
- });
986
- export function collectorSplunkCollectRequestHeader3ToJSON(collectorSplunkCollectRequestHeader3) {
987
- return JSON.stringify(CollectorSplunkCollectRequestHeader3$outboundSchema.parse(collectorSplunkCollectRequestHeader3));
988
- }
989
- export function collectorSplunkCollectRequestHeader3FromJSON(jsonString) {
990
- return safeParse(jsonString, (x) => CollectorSplunkCollectRequestHeader3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkCollectRequestHeader3' from JSON`);
991
- }
992
- /** @internal */
993
- export const CollectorSplunkRetryType3$inboundSchema = openEnums.inboundSchema(CollectorSplunkRetryType3);
994
- /** @internal */
995
- export const CollectorSplunkRetryType3$outboundSchema = openEnums.outboundSchema(CollectorSplunkRetryType3);
996
- /** @internal */
997
- export const CollectorSplunkRetryRules3$inboundSchema = z.object({
998
- type: CollectorSplunkRetryType3$inboundSchema.default("backoff"),
999
- interval: z.any().optional(),
1000
- limit: z.any().optional(),
1001
- multiplier: z.any().optional(),
1002
- codes: z.any().optional(),
1003
- enableHeader: z.any().optional(),
1004
- retryConnectTimeout: z.any().optional(),
1005
- retryConnectReset: z.any().optional(),
1006
- });
1007
- /** @internal */
1008
- export const CollectorSplunkRetryRules3$outboundSchema = z.object({
1009
- type: CollectorSplunkRetryType3$outboundSchema.default("backoff"),
1010
- interval: z.any().optional(),
1011
- limit: z.any().optional(),
1012
- multiplier: z.any().optional(),
1013
- codes: z.any().optional(),
1014
- enableHeader: z.any().optional(),
1015
- retryConnectTimeout: z.any().optional(),
1016
- retryConnectReset: z.any().optional(),
1017
- });
1018
- export function collectorSplunkRetryRules3ToJSON(collectorSplunkRetryRules3) {
1019
- return JSON.stringify(CollectorSplunkRetryRules3$outboundSchema.parse(collectorSplunkRetryRules3));
1020
- }
1021
- export function collectorSplunkRetryRules3FromJSON(jsonString) {
1022
- return safeParse(jsonString, (x) => CollectorSplunkRetryRules3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkRetryRules3' from JSON`);
1023
- }
1024
- /** @internal */
1025
- export const CollectorSplunkSplunk3$inboundSchema = z.object({
1026
- authentication: CollectorSplunkAuthentication3$inboundSchema.default("basic"),
1027
- credentialsSecret: z.string(),
1028
- type: CollectorSplunkType3$inboundSchema,
1029
- searchHead: z.string().default("https://localhost:8089"),
1030
- search: z.string(),
1031
- earliest: z.string().optional(),
1032
- latest: z.string().optional(),
1033
- endpoint: z.string().default("/services/search/v2/jobs/export"),
1034
- outputMode: CollectorSplunkOutputMode3$inboundSchema.default("json"),
1035
- collectRequestParams: z.array(z.lazy(() => CollectorSplunkCollectRequestParam3$inboundSchema)).optional(),
1036
- collectRequestHeaders: z.array(z.lazy(() => CollectorSplunkCollectRequestHeader3$inboundSchema)).optional(),
1037
- timeout: z.number().default(0),
1038
- useRoundRobinDns: z.boolean().default(false),
1039
- disableTimeFilter: z.boolean().default(true),
1040
- rejectUnauthorized: z.boolean().default(false),
1041
- handleEscapedChars: z.boolean().default(false),
1042
- retryRules: z.lazy(() => CollectorSplunkRetryRules3$inboundSchema).optional(),
1043
- username: z.string().optional(),
1044
- password: z.string().optional(),
1045
- token: z.string().optional(),
1046
- tokenSecret: z.string().optional(),
1047
- loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
1048
- loginBody: z.string().default("`{ \"username\": \"${username}\", \"password\": \"${password}\" }`"),
1049
- tokenRespAttribute: z.string().default("token"),
1050
- authHeaderExpr: z.string().default("`Bearer ${token}`"),
1051
- });
1052
- /** @internal */
1053
- export const CollectorSplunkSplunk3$outboundSchema = z.object({
1054
- authentication: CollectorSplunkAuthentication3$outboundSchema.default("basic"),
1055
- credentialsSecret: z.string(),
1056
- type: CollectorSplunkType3$outboundSchema,
1057
- searchHead: z.string().default("https://localhost:8089"),
1058
- search: z.string(),
1059
- earliest: z.string().optional(),
1060
- latest: z.string().optional(),
1061
- endpoint: z.string().default("/services/search/v2/jobs/export"),
1062
- outputMode: CollectorSplunkOutputMode3$outboundSchema.default("json"),
1063
- collectRequestParams: z.array(z.lazy(() => CollectorSplunkCollectRequestParam3$outboundSchema)).optional(),
1064
- collectRequestHeaders: z.array(z.lazy(() => CollectorSplunkCollectRequestHeader3$outboundSchema)).optional(),
1065
- timeout: z.number().default(0),
1066
- useRoundRobinDns: z.boolean().default(false),
1067
- disableTimeFilter: z.boolean().default(true),
1068
- rejectUnauthorized: z.boolean().default(false),
1069
- handleEscapedChars: z.boolean().default(false),
1070
- retryRules: z.lazy(() => CollectorSplunkRetryRules3$outboundSchema)
1071
- .optional(),
1072
- username: z.string().optional(),
1073
- password: z.string().optional(),
1074
- token: z.string().optional(),
1075
- tokenSecret: z.string().optional(),
1076
- loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
1077
- loginBody: z.string().default("`{ \"username\": \"${username}\", \"password\": \"${password}\" }`"),
1078
- tokenRespAttribute: z.string().default("token"),
1079
- authHeaderExpr: z.string().default("`Bearer ${token}`"),
1080
- });
1081
- export function collectorSplunkSplunk3ToJSON(collectorSplunkSplunk3) {
1082
- return JSON.stringify(CollectorSplunkSplunk3$outboundSchema.parse(collectorSplunkSplunk3));
1083
- }
1084
- export function collectorSplunkSplunk3FromJSON(jsonString) {
1085
- return safeParse(jsonString, (x) => CollectorSplunkSplunk3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkSplunk3' from JSON`);
1086
- }
1087
- /** @internal */
1088
- export const CollectorSplunkAuthentication2$inboundSchema = openEnums.inboundSchema(CollectorSplunkAuthentication2);
1089
- /** @internal */
1090
- export const CollectorSplunkAuthentication2$outboundSchema = openEnums.outboundSchema(CollectorSplunkAuthentication2);
1091
- /** @internal */
1092
- export const CollectorSplunkType2$inboundSchema = z.nativeEnum(CollectorSplunkType2);
1093
- /** @internal */
1094
- export const CollectorSplunkType2$outboundSchema = CollectorSplunkType2$inboundSchema;
1095
- /** @internal */
1096
- export const CollectorSplunkOutputMode2$inboundSchema = openEnums.inboundSchema(CollectorSplunkOutputMode2);
1097
- /** @internal */
1098
- export const CollectorSplunkOutputMode2$outboundSchema = openEnums.outboundSchema(CollectorSplunkOutputMode2);
1099
- /** @internal */
1100
- export const CollectorSplunkCollectRequestParam2$inboundSchema = z.object({
1101
- name: z.string(),
1102
- value: z.string(),
1103
- });
1104
- /** @internal */
1105
- export const CollectorSplunkCollectRequestParam2$outboundSchema = z.object({
1106
- name: z.string(),
1107
- value: z.string(),
1108
- });
1109
- export function collectorSplunkCollectRequestParam2ToJSON(collectorSplunkCollectRequestParam2) {
1110
- return JSON.stringify(CollectorSplunkCollectRequestParam2$outboundSchema.parse(collectorSplunkCollectRequestParam2));
1111
- }
1112
- export function collectorSplunkCollectRequestParam2FromJSON(jsonString) {
1113
- return safeParse(jsonString, (x) => CollectorSplunkCollectRequestParam2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkCollectRequestParam2' from JSON`);
1114
- }
1115
- /** @internal */
1116
- export const CollectorSplunkCollectRequestHeader2$inboundSchema = z.object({
1117
- name: z.string(),
1118
- value: z.string(),
1119
- });
1120
- /** @internal */
1121
- export const CollectorSplunkCollectRequestHeader2$outboundSchema = z.object({
1122
- name: z.string(),
1123
- value: z.string(),
1124
- });
1125
- export function collectorSplunkCollectRequestHeader2ToJSON(collectorSplunkCollectRequestHeader2) {
1126
- return JSON.stringify(CollectorSplunkCollectRequestHeader2$outboundSchema.parse(collectorSplunkCollectRequestHeader2));
1127
- }
1128
- export function collectorSplunkCollectRequestHeader2FromJSON(jsonString) {
1129
- return safeParse(jsonString, (x) => CollectorSplunkCollectRequestHeader2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkCollectRequestHeader2' from JSON`);
1130
- }
1131
- /** @internal */
1132
- export const CollectorSplunkRetryType2$inboundSchema = openEnums.inboundSchema(CollectorSplunkRetryType2);
1133
- /** @internal */
1134
- export const CollectorSplunkRetryType2$outboundSchema = openEnums.outboundSchema(CollectorSplunkRetryType2);
1135
- /** @internal */
1136
- export const CollectorSplunkRetryRules2$inboundSchema = z.object({
1137
- type: CollectorSplunkRetryType2$inboundSchema.default("backoff"),
1138
- interval: z.any().optional(),
1139
- limit: z.any().optional(),
1140
- multiplier: z.any().optional(),
1141
- codes: z.any().optional(),
1142
- enableHeader: z.any().optional(),
1143
- retryConnectTimeout: z.any().optional(),
1144
- retryConnectReset: z.any().optional(),
1145
- });
1146
- /** @internal */
1147
- export const CollectorSplunkRetryRules2$outboundSchema = z.object({
1148
- type: CollectorSplunkRetryType2$outboundSchema.default("backoff"),
1149
- interval: z.any().optional(),
1150
- limit: z.any().optional(),
1151
- multiplier: z.any().optional(),
1152
- codes: z.any().optional(),
1153
- enableHeader: z.any().optional(),
1154
- retryConnectTimeout: z.any().optional(),
1155
- retryConnectReset: z.any().optional(),
1156
- });
1157
- export function collectorSplunkRetryRules2ToJSON(collectorSplunkRetryRules2) {
1158
- return JSON.stringify(CollectorSplunkRetryRules2$outboundSchema.parse(collectorSplunkRetryRules2));
1159
- }
1160
- export function collectorSplunkRetryRules2FromJSON(jsonString) {
1161
- return safeParse(jsonString, (x) => CollectorSplunkRetryRules2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkRetryRules2' from JSON`);
1162
- }
1163
- /** @internal */
1164
- export const CollectorSplunkSplunk2$inboundSchema = z.object({
1165
- authentication: CollectorSplunkAuthentication2$inboundSchema.default("basic"),
1166
- username: z.string(),
1167
- password: z.string(),
1168
- type: CollectorSplunkType2$inboundSchema,
1169
- searchHead: z.string().default("https://localhost:8089"),
1170
- search: z.string(),
1171
- earliest: z.string().optional(),
1172
- latest: z.string().optional(),
1173
- endpoint: z.string().default("/services/search/v2/jobs/export"),
1174
- outputMode: CollectorSplunkOutputMode2$inboundSchema.default("json"),
1175
- collectRequestParams: z.array(z.lazy(() => CollectorSplunkCollectRequestParam2$inboundSchema)).optional(),
1176
- collectRequestHeaders: z.array(z.lazy(() => CollectorSplunkCollectRequestHeader2$inboundSchema)).optional(),
1177
- timeout: z.number().default(0),
1178
- useRoundRobinDns: z.boolean().default(false),
1179
- disableTimeFilter: z.boolean().default(true),
1180
- rejectUnauthorized: z.boolean().default(false),
1181
- handleEscapedChars: z.boolean().default(false),
1182
- retryRules: z.lazy(() => CollectorSplunkRetryRules2$inboundSchema).optional(),
1183
- credentialsSecret: z.string().optional(),
1184
- token: z.string().optional(),
1185
- tokenSecret: z.string().optional(),
1186
- loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
1187
- loginBody: z.string().default("`{ \"username\": \"${username}\", \"password\": \"${password}\" }`"),
1188
- tokenRespAttribute: z.string().default("token"),
1189
- authHeaderExpr: z.string().default("`Bearer ${token}`"),
1190
- });
1191
- /** @internal */
1192
- export const CollectorSplunkSplunk2$outboundSchema = z.object({
1193
- authentication: CollectorSplunkAuthentication2$outboundSchema.default("basic"),
1194
- username: z.string(),
1195
- password: z.string(),
1196
- type: CollectorSplunkType2$outboundSchema,
1197
- searchHead: z.string().default("https://localhost:8089"),
1198
- search: z.string(),
1199
- earliest: z.string().optional(),
1200
- latest: z.string().optional(),
1201
- endpoint: z.string().default("/services/search/v2/jobs/export"),
1202
- outputMode: CollectorSplunkOutputMode2$outboundSchema.default("json"),
1203
- collectRequestParams: z.array(z.lazy(() => CollectorSplunkCollectRequestParam2$outboundSchema)).optional(),
1204
- collectRequestHeaders: z.array(z.lazy(() => CollectorSplunkCollectRequestHeader2$outboundSchema)).optional(),
1205
- timeout: z.number().default(0),
1206
- useRoundRobinDns: z.boolean().default(false),
1207
- disableTimeFilter: z.boolean().default(true),
1208
- rejectUnauthorized: z.boolean().default(false),
1209
- handleEscapedChars: z.boolean().default(false),
1210
- retryRules: z.lazy(() => CollectorSplunkRetryRules2$outboundSchema)
1211
- .optional(),
1212
- credentialsSecret: z.string().optional(),
1213
- token: z.string().optional(),
1214
- tokenSecret: z.string().optional(),
1215
- loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
1216
- loginBody: z.string().default("`{ \"username\": \"${username}\", \"password\": \"${password}\" }`"),
1217
- tokenRespAttribute: z.string().default("token"),
1218
- authHeaderExpr: z.string().default("`Bearer ${token}`"),
1219
- });
1220
- export function collectorSplunkSplunk2ToJSON(collectorSplunkSplunk2) {
1221
- return JSON.stringify(CollectorSplunkSplunk2$outboundSchema.parse(collectorSplunkSplunk2));
1222
- }
1223
- export function collectorSplunkSplunk2FromJSON(jsonString) {
1224
- return safeParse(jsonString, (x) => CollectorSplunkSplunk2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkSplunk2' from JSON`);
1225
- }
1226
- /** @internal */
1227
- export const CollectorSplunkAuthentication1$inboundSchema = openEnums.inboundSchema(CollectorSplunkAuthentication1);
1228
- /** @internal */
1229
- export const CollectorSplunkAuthentication1$outboundSchema = openEnums.outboundSchema(CollectorSplunkAuthentication1);
1230
- /** @internal */
1231
- export const CollectorSplunkType1$inboundSchema = z.nativeEnum(CollectorSplunkType1);
1232
- /** @internal */
1233
- export const CollectorSplunkType1$outboundSchema = CollectorSplunkType1$inboundSchema;
1234
- /** @internal */
1235
- export const CollectorSplunkOutputMode1$inboundSchema = openEnums.inboundSchema(CollectorSplunkOutputMode1);
1236
- /** @internal */
1237
- export const CollectorSplunkOutputMode1$outboundSchema = openEnums.outboundSchema(CollectorSplunkOutputMode1);
1238
- /** @internal */
1239
- export const CollectorSplunkCollectRequestParam1$inboundSchema = z.object({
1240
- name: z.string(),
1241
- value: z.string(),
1242
- });
1243
- /** @internal */
1244
- export const CollectorSplunkCollectRequestParam1$outboundSchema = z.object({
1245
- name: z.string(),
1246
- value: z.string(),
1247
- });
1248
- export function collectorSplunkCollectRequestParam1ToJSON(collectorSplunkCollectRequestParam1) {
1249
- return JSON.stringify(CollectorSplunkCollectRequestParam1$outboundSchema.parse(collectorSplunkCollectRequestParam1));
1250
- }
1251
- export function collectorSplunkCollectRequestParam1FromJSON(jsonString) {
1252
- return safeParse(jsonString, (x) => CollectorSplunkCollectRequestParam1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkCollectRequestParam1' from JSON`);
1253
- }
1254
- /** @internal */
1255
- export const CollectorSplunkCollectRequestHeader1$inboundSchema = z.object({
1256
- name: z.string(),
1257
- value: z.string(),
1258
- });
1259
- /** @internal */
1260
- export const CollectorSplunkCollectRequestHeader1$outboundSchema = z.object({
1261
- name: z.string(),
1262
- value: z.string(),
1263
- });
1264
- export function collectorSplunkCollectRequestHeader1ToJSON(collectorSplunkCollectRequestHeader1) {
1265
- return JSON.stringify(CollectorSplunkCollectRequestHeader1$outboundSchema.parse(collectorSplunkCollectRequestHeader1));
1266
- }
1267
- export function collectorSplunkCollectRequestHeader1FromJSON(jsonString) {
1268
- return safeParse(jsonString, (x) => CollectorSplunkCollectRequestHeader1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkCollectRequestHeader1' from JSON`);
1269
- }
1270
- /** @internal */
1271
- export const CollectorSplunkRetryType1$inboundSchema = openEnums.inboundSchema(CollectorSplunkRetryType1);
1272
- /** @internal */
1273
- export const CollectorSplunkRetryType1$outboundSchema = openEnums.outboundSchema(CollectorSplunkRetryType1);
1274
- /** @internal */
1275
- export const CollectorSplunkRetryRules1$inboundSchema = z.object({
1276
- type: CollectorSplunkRetryType1$inboundSchema.default("backoff"),
1277
- interval: z.any().optional(),
1278
- limit: z.any().optional(),
1279
- multiplier: z.any().optional(),
1280
- codes: z.any().optional(),
1281
- enableHeader: z.any().optional(),
1282
- retryConnectTimeout: z.any().optional(),
1283
- retryConnectReset: z.any().optional(),
1284
- });
1285
- /** @internal */
1286
- export const CollectorSplunkRetryRules1$outboundSchema = z.object({
1287
- type: CollectorSplunkRetryType1$outboundSchema.default("backoff"),
1288
- interval: z.any().optional(),
1289
- limit: z.any().optional(),
1290
- multiplier: z.any().optional(),
1291
- codes: z.any().optional(),
1292
- enableHeader: z.any().optional(),
1293
- retryConnectTimeout: z.any().optional(),
1294
- retryConnectReset: z.any().optional(),
1295
- });
1296
- export function collectorSplunkRetryRules1ToJSON(collectorSplunkRetryRules1) {
1297
- return JSON.stringify(CollectorSplunkRetryRules1$outboundSchema.parse(collectorSplunkRetryRules1));
1298
- }
1299
- export function collectorSplunkRetryRules1FromJSON(jsonString) {
1300
- return safeParse(jsonString, (x) => CollectorSplunkRetryRules1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkRetryRules1' from JSON`);
1301
- }
1302
- /** @internal */
1303
- export const CollectorSplunkSplunk1$inboundSchema = z.object({
1304
- authentication: CollectorSplunkAuthentication1$inboundSchema.default("basic"),
1305
- type: CollectorSplunkType1$inboundSchema,
1306
- searchHead: z.string().default("https://localhost:8089"),
1307
- search: z.string(),
1308
- earliest: z.string().optional(),
1309
- latest: z.string().optional(),
1310
- endpoint: z.string().default("/services/search/v2/jobs/export"),
1311
- outputMode: CollectorSplunkOutputMode1$inboundSchema.default("json"),
1312
- collectRequestParams: z.array(z.lazy(() => CollectorSplunkCollectRequestParam1$inboundSchema)).optional(),
1313
- collectRequestHeaders: z.array(z.lazy(() => CollectorSplunkCollectRequestHeader1$inboundSchema)).optional(),
1314
- timeout: z.number().default(0),
1315
- useRoundRobinDns: z.boolean().default(false),
1316
- disableTimeFilter: z.boolean().default(true),
1317
- rejectUnauthorized: z.boolean().default(false),
1318
- handleEscapedChars: z.boolean().default(false),
1319
- retryRules: z.lazy(() => CollectorSplunkRetryRules1$inboundSchema).optional(),
1320
- username: z.string().optional(),
1321
- password: z.string().optional(),
1322
- credentialsSecret: z.string().optional(),
1323
- token: z.string().optional(),
1324
- tokenSecret: z.string().optional(),
1325
- loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
1326
- loginBody: z.string().default("`{ \"username\": \"${username}\", \"password\": \"${password}\" }`"),
1327
- tokenRespAttribute: z.string().default("token"),
1328
- authHeaderExpr: z.string().default("`Bearer ${token}`"),
1329
- });
1330
- /** @internal */
1331
- export const CollectorSplunkSplunk1$outboundSchema = z.object({
1332
- authentication: CollectorSplunkAuthentication1$outboundSchema.default("basic"),
1333
- type: CollectorSplunkType1$outboundSchema,
1334
- searchHead: z.string().default("https://localhost:8089"),
1335
- search: z.string(),
1336
- earliest: z.string().optional(),
1337
- latest: z.string().optional(),
1338
- endpoint: z.string().default("/services/search/v2/jobs/export"),
1339
- outputMode: CollectorSplunkOutputMode1$outboundSchema.default("json"),
1340
- collectRequestParams: z.array(z.lazy(() => CollectorSplunkCollectRequestParam1$outboundSchema)).optional(),
1341
- collectRequestHeaders: z.array(z.lazy(() => CollectorSplunkCollectRequestHeader1$outboundSchema)).optional(),
1342
- timeout: z.number().default(0),
1343
- useRoundRobinDns: z.boolean().default(false),
1344
- disableTimeFilter: z.boolean().default(true),
1345
- rejectUnauthorized: z.boolean().default(false),
1346
- handleEscapedChars: z.boolean().default(false),
1347
- retryRules: z.lazy(() => CollectorSplunkRetryRules1$outboundSchema)
1348
- .optional(),
1349
- username: z.string().optional(),
1350
- password: z.string().optional(),
1351
- credentialsSecret: z.string().optional(),
1352
- token: z.string().optional(),
1353
- tokenSecret: z.string().optional(),
1354
- loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
1355
- loginBody: z.string().default("`{ \"username\": \"${username}\", \"password\": \"${password}\" }`"),
1356
- tokenRespAttribute: z.string().default("token"),
1357
- authHeaderExpr: z.string().default("`Bearer ${token}`"),
1358
- });
1359
- export function collectorSplunkSplunk1ToJSON(collectorSplunkSplunk1) {
1360
- return JSON.stringify(CollectorSplunkSplunk1$outboundSchema.parse(collectorSplunkSplunk1));
1361
- }
1362
- export function collectorSplunkSplunk1FromJSON(jsonString) {
1363
- return safeParse(jsonString, (x) => CollectorSplunkSplunk1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkSplunk1' from JSON`);
1364
- }
1365
- /** @internal */
1366
- export const CollectorSplunk$inboundSchema = z.union([
1367
- z.lazy(() => CollectorSplunkSplunk2$inboundSchema),
1368
- z.lazy(() => CollectorSplunkSplunk6$inboundSchema),
1369
- z.lazy(() => CollectorSplunkSplunk3$inboundSchema),
1370
- z.lazy(() => CollectorSplunkSplunk4$inboundSchema),
1371
- z.lazy(() => CollectorSplunkSplunk5$inboundSchema),
1372
- z.lazy(() => CollectorSplunkSplunk7$inboundSchema),
1373
- z.lazy(() => CollectorSplunkSplunk1$inboundSchema),
1374
- ]);
1375
- /** @internal */
1376
- export const CollectorSplunk$outboundSchema = z.union([
1377
- z.lazy(() => CollectorSplunkSplunk2$outboundSchema),
1378
- z.lazy(() => CollectorSplunkSplunk6$outboundSchema),
1379
- z.lazy(() => CollectorSplunkSplunk3$outboundSchema),
1380
- z.lazy(() => CollectorSplunkSplunk4$outboundSchema),
1381
- z.lazy(() => CollectorSplunkSplunk5$outboundSchema),
1382
- z.lazy(() => CollectorSplunkSplunk7$outboundSchema),
1383
- z.lazy(() => CollectorSplunkSplunk1$outboundSchema),
1384
- ]);
1385
17
  export function collectorSplunkToJSON(collectorSplunk) {
1386
18
  return JSON.stringify(CollectorSplunk$outboundSchema.parse(collectorSplunk));
1387
19
  }