cribl-control-plane 0.5.0-beta.9 → 0.5.0-rc.10

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/README.md +77 -76
  2. package/dist/commonjs/funcs/systemCapturesGet.d.ts +21 -0
  3. package/dist/commonjs/funcs/systemCapturesGet.d.ts.map +1 -0
  4. package/dist/commonjs/funcs/systemCapturesGet.js +137 -0
  5. package/dist/commonjs/funcs/systemCapturesGet.js.map +1 -0
  6. package/dist/commonjs/lib/config.d.ts +4 -4
  7. package/dist/commonjs/lib/config.js +4 -4
  8. package/dist/commonjs/lib/config.js.map +1 -1
  9. package/dist/commonjs/lib/jsonl.d.ts +10 -0
  10. package/dist/commonjs/lib/jsonl.d.ts.map +1 -0
  11. package/dist/commonjs/lib/jsonl.js +104 -0
  12. package/dist/commonjs/lib/jsonl.js.map +1 -0
  13. package/dist/commonjs/models/capturelevel.d.ts +12 -0
  14. package/dist/commonjs/models/capturelevel.d.ts.map +1 -0
  15. package/dist/commonjs/models/capturelevel.js +49 -0
  16. package/dist/commonjs/models/capturelevel.js.map +1 -0
  17. package/dist/commonjs/models/captureparams.d.ts +25 -0
  18. package/dist/commonjs/models/captureparams.d.ts.map +1 -0
  19. package/dist/commonjs/models/captureparams.js +56 -0
  20. package/dist/commonjs/models/captureparams.js.map +1 -0
  21. package/dist/commonjs/models/criblevent.d.ts +1 -3
  22. package/dist/commonjs/models/criblevent.d.ts.map +1 -1
  23. package/dist/commonjs/models/criblevent.js +1 -4
  24. package/dist/commonjs/models/criblevent.js.map +1 -1
  25. package/dist/commonjs/models/functionconfschemaaggregatemetrics.d.ts +8 -8
  26. package/dist/commonjs/models/functionconfschemaaggregatemetrics.d.ts.map +1 -1
  27. package/dist/commonjs/models/functionconfschemaaggregation.d.ts +8 -8
  28. package/dist/commonjs/models/functionconfschemaaggregation.d.ts.map +1 -1
  29. package/dist/commonjs/models/functionconfschemacef.d.ts +1 -1
  30. package/dist/commonjs/models/functionconfschemacef.d.ts.map +1 -1
  31. package/dist/commonjs/models/functionconfschemadistinct.d.ts +3 -3
  32. package/dist/commonjs/models/functionconfschemadistinct.d.ts.map +1 -1
  33. package/dist/commonjs/models/functionconfschemadnslookup.d.ts +1 -3
  34. package/dist/commonjs/models/functionconfschemadnslookup.d.ts.map +1 -1
  35. package/dist/commonjs/models/functionconfschemadnslookup.js +3 -12
  36. package/dist/commonjs/models/functionconfschemadnslookup.js.map +1 -1
  37. package/dist/commonjs/models/functionconfschemadropdimensions.d.ts +2 -2
  38. package/dist/commonjs/models/functionconfschemadropdimensions.d.ts.map +1 -1
  39. package/dist/commonjs/models/functionconfschemadynamicsampling.d.ts +5 -5
  40. package/dist/commonjs/models/functionconfschemadynamicsampling.d.ts.map +1 -1
  41. package/dist/commonjs/models/functionconfschemaeventbreaker.d.ts +2 -2
  42. package/dist/commonjs/models/functionconfschemaeventbreaker.d.ts.map +1 -1
  43. package/dist/commonjs/models/functionconfschemaeventstats.d.ts +2 -2
  44. package/dist/commonjs/models/functionconfschemaeventstats.d.ts.map +1 -1
  45. package/dist/commonjs/models/functionconfschemageoip.d.ts +2 -2
  46. package/dist/commonjs/models/functionconfschemageoip.d.ts.map +1 -1
  47. package/dist/commonjs/models/functionconfschemagrok.d.ts +1 -1
  48. package/dist/commonjs/models/functionconfschemagrok.d.ts.map +1 -1
  49. package/dist/commonjs/models/functionconfschemahandlebars.d.ts +4 -4
  50. package/dist/commonjs/models/functionconfschemahandlebars.d.ts.map +1 -1
  51. package/dist/commonjs/models/functionconfschemalakeexport.d.ts +3 -3
  52. package/dist/commonjs/models/functionconfschemalakeexport.d.ts.map +1 -1
  53. package/dist/commonjs/models/functionconfschemalookup.d.ts +2 -2
  54. package/dist/commonjs/models/functionconfschemalookup.d.ts.map +1 -1
  55. package/dist/commonjs/models/functionconfschemamask.d.ts +3 -3
  56. package/dist/commonjs/models/functionconfschemamask.d.ts.map +1 -1
  57. package/dist/commonjs/models/functionconfschemamvexpand.d.ts +2 -2
  58. package/dist/commonjs/models/functionconfschemamvexpand.d.ts.map +1 -1
  59. package/dist/commonjs/models/functionconfschemamvpull.d.ts +2 -2
  60. package/dist/commonjs/models/functionconfschemamvpull.d.ts.map +1 -1
  61. package/dist/commonjs/models/functionconfschemanotify.d.ts +4 -4
  62. package/dist/commonjs/models/functionconfschemanotify.d.ts.map +1 -1
  63. package/dist/commonjs/models/functionconfschemapack.d.ts +1 -1
  64. package/dist/commonjs/models/functionconfschemapack.d.ts.map +1 -1
  65. package/dist/commonjs/models/functionconfschemaredis.d.ts +3 -3
  66. package/dist/commonjs/models/functionconfschemaredis.d.ts.map +1 -1
  67. package/dist/commonjs/models/functionconfschemaregexextract.d.ts +3 -3
  68. package/dist/commonjs/models/functionconfschemaregexextract.d.ts.map +1 -1
  69. package/dist/commonjs/models/functionconfschemasend.d.ts +4 -4
  70. package/dist/commonjs/models/functionconfschemasend.d.ts.map +1 -1
  71. package/dist/commonjs/models/functionconfschemasensitivedatascanner.d.ts +4 -4
  72. package/dist/commonjs/models/functionconfschemasensitivedatascanner.d.ts.map +1 -1
  73. package/dist/commonjs/models/functionconfschemaserde.d.ts +3 -3
  74. package/dist/commonjs/models/functionconfschemaserde.d.ts.map +1 -1
  75. package/dist/commonjs/models/functionconfschemaserialize.d.ts +2 -2
  76. package/dist/commonjs/models/functionconfschemaserialize.d.ts.map +1 -1
  77. package/dist/commonjs/models/functionconfschemastore.d.ts +7 -7
  78. package/dist/commonjs/models/functionconfschemastore.d.ts.map +1 -1
  79. package/dist/commonjs/models/functionconfschemasuppress.d.ts +6 -6
  80. package/dist/commonjs/models/functionconfschemasuppress.d.ts.map +1 -1
  81. package/dist/commonjs/models/functionconfschematee.d.ts +1 -1
  82. package/dist/commonjs/models/functionconfschematee.d.ts.map +1 -1
  83. package/dist/commonjs/models/functionconfschemaunroll.d.ts +2 -2
  84. package/dist/commonjs/models/functionconfschemaunroll.d.ts.map +1 -1
  85. package/dist/commonjs/models/functionconfschemawindow.d.ts +2 -2
  86. package/dist/commonjs/models/functionconfschemawindow.d.ts.map +1 -1
  87. package/dist/commonjs/models/functionconfschemaxmlunroll.d.ts +2 -2
  88. package/dist/commonjs/models/functionconfschemaxmlunroll.d.ts.map +1 -1
  89. package/dist/commonjs/models/index.d.ts +2 -0
  90. package/dist/commonjs/models/index.d.ts.map +1 -1
  91. package/dist/commonjs/models/index.js +2 -0
  92. package/dist/commonjs/models/index.js.map +1 -1
  93. package/dist/commonjs/models/operations/getfunctionresponsebyid.d.ts +15 -0
  94. package/dist/commonjs/models/operations/getfunctionresponsebyid.d.ts.map +1 -0
  95. package/dist/commonjs/models/operations/getfunctionresponsebyid.js +49 -0
  96. package/dist/commonjs/models/operations/getfunctionresponsebyid.js.map +1 -0
  97. package/dist/commonjs/models/pipeline.d.ts +1 -1
  98. package/dist/commonjs/models/pipeline.d.ts.map +1 -1
  99. package/dist/commonjs/models/pipelinefunctioncef.d.ts +1 -1
  100. package/dist/commonjs/models/pipelinefunctioncef.d.ts.map +1 -1
  101. package/dist/commonjs/models/routes.d.ts +1 -3
  102. package/dist/commonjs/models/routes.d.ts.map +1 -1
  103. package/dist/commonjs/models/routes.js +3 -12
  104. package/dist/commonjs/models/routes.js.map +1 -1
  105. package/dist/commonjs/models/routesroute.d.ts +1 -3
  106. package/dist/commonjs/models/routesroute.d.ts.map +1 -1
  107. package/dist/commonjs/models/routesroute.js +3 -12
  108. package/dist/commonjs/models/routesroute.js.map +1 -1
  109. package/dist/commonjs/models/runnablejobcollection.d.ts +37 -37
  110. package/dist/commonjs/models/runnablejobcollection.d.ts.map +1 -1
  111. package/dist/commonjs/models/runnablejobexecutor.d.ts +21 -21
  112. package/dist/commonjs/models/runnablejobexecutor.d.ts.map +1 -1
  113. package/dist/commonjs/models/runnablejobscheduledsearch.d.ts +16 -16
  114. package/dist/commonjs/models/runnablejobscheduledsearch.d.ts.map +1 -1
  115. package/dist/commonjs/sdk/captures.d.ts +15 -0
  116. package/dist/commonjs/sdk/captures.d.ts.map +1 -0
  117. package/dist/commonjs/sdk/captures.js +22 -0
  118. package/dist/commonjs/sdk/captures.js.map +1 -0
  119. package/dist/commonjs/sdk/sdk.d.ts +2 -2
  120. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  121. package/dist/commonjs/sdk/sdk.js +3 -3
  122. package/dist/commonjs/sdk/sdk.js.map +1 -1
  123. package/dist/commonjs/sdk/system.d.ts +3 -0
  124. package/dist/commonjs/sdk/system.d.ts.map +1 -1
  125. package/dist/commonjs/sdk/system.js +4 -0
  126. package/dist/commonjs/sdk/system.js.map +1 -1
  127. package/dist/esm/funcs/systemCapturesGet.d.ts +21 -0
  128. package/dist/esm/funcs/systemCapturesGet.d.ts.map +1 -0
  129. package/dist/esm/funcs/systemCapturesGet.js +101 -0
  130. package/dist/esm/funcs/systemCapturesGet.js.map +1 -0
  131. package/dist/esm/lib/config.d.ts +4 -4
  132. package/dist/esm/lib/config.js +4 -4
  133. package/dist/esm/lib/config.js.map +1 -1
  134. package/dist/esm/lib/jsonl.d.ts +10 -0
  135. package/dist/esm/lib/jsonl.d.ts.map +1 -0
  136. package/dist/esm/lib/jsonl.js +100 -0
  137. package/dist/esm/lib/jsonl.js.map +1 -0
  138. package/dist/esm/models/capturelevel.d.ts +12 -0
  139. package/dist/esm/models/capturelevel.d.ts.map +1 -0
  140. package/dist/esm/models/capturelevel.js +13 -0
  141. package/dist/esm/models/capturelevel.js.map +1 -0
  142. package/dist/esm/models/captureparams.d.ts +25 -0
  143. package/dist/esm/models/captureparams.d.ts.map +1 -0
  144. package/dist/esm/models/captureparams.js +19 -0
  145. package/dist/esm/models/captureparams.js.map +1 -0
  146. package/dist/esm/models/criblevent.d.ts +1 -3
  147. package/dist/esm/models/criblevent.d.ts.map +1 -1
  148. package/dist/esm/models/criblevent.js +1 -4
  149. package/dist/esm/models/criblevent.js.map +1 -1
  150. package/dist/esm/models/functionconfschemaaggregatemetrics.d.ts +8 -8
  151. package/dist/esm/models/functionconfschemaaggregatemetrics.d.ts.map +1 -1
  152. package/dist/esm/models/functionconfschemaaggregation.d.ts +8 -8
  153. package/dist/esm/models/functionconfschemaaggregation.d.ts.map +1 -1
  154. package/dist/esm/models/functionconfschemacef.d.ts +1 -1
  155. package/dist/esm/models/functionconfschemacef.d.ts.map +1 -1
  156. package/dist/esm/models/functionconfschemadistinct.d.ts +3 -3
  157. package/dist/esm/models/functionconfschemadistinct.d.ts.map +1 -1
  158. package/dist/esm/models/functionconfschemadnslookup.d.ts +1 -3
  159. package/dist/esm/models/functionconfschemadnslookup.d.ts.map +1 -1
  160. package/dist/esm/models/functionconfschemadnslookup.js +4 -13
  161. package/dist/esm/models/functionconfschemadnslookup.js.map +1 -1
  162. package/dist/esm/models/functionconfschemadropdimensions.d.ts +2 -2
  163. package/dist/esm/models/functionconfschemadropdimensions.d.ts.map +1 -1
  164. package/dist/esm/models/functionconfschemadynamicsampling.d.ts +5 -5
  165. package/dist/esm/models/functionconfschemadynamicsampling.d.ts.map +1 -1
  166. package/dist/esm/models/functionconfschemaeventbreaker.d.ts +2 -2
  167. package/dist/esm/models/functionconfschemaeventbreaker.d.ts.map +1 -1
  168. package/dist/esm/models/functionconfschemaeventstats.d.ts +2 -2
  169. package/dist/esm/models/functionconfschemaeventstats.d.ts.map +1 -1
  170. package/dist/esm/models/functionconfschemageoip.d.ts +2 -2
  171. package/dist/esm/models/functionconfschemageoip.d.ts.map +1 -1
  172. package/dist/esm/models/functionconfschemagrok.d.ts +1 -1
  173. package/dist/esm/models/functionconfschemagrok.d.ts.map +1 -1
  174. package/dist/esm/models/functionconfschemahandlebars.d.ts +4 -4
  175. package/dist/esm/models/functionconfschemahandlebars.d.ts.map +1 -1
  176. package/dist/esm/models/functionconfschemalakeexport.d.ts +3 -3
  177. package/dist/esm/models/functionconfschemalakeexport.d.ts.map +1 -1
  178. package/dist/esm/models/functionconfschemalookup.d.ts +2 -2
  179. package/dist/esm/models/functionconfschemalookup.d.ts.map +1 -1
  180. package/dist/esm/models/functionconfschemamask.d.ts +3 -3
  181. package/dist/esm/models/functionconfschemamask.d.ts.map +1 -1
  182. package/dist/esm/models/functionconfschemamvexpand.d.ts +2 -2
  183. package/dist/esm/models/functionconfschemamvexpand.d.ts.map +1 -1
  184. package/dist/esm/models/functionconfschemamvpull.d.ts +2 -2
  185. package/dist/esm/models/functionconfschemamvpull.d.ts.map +1 -1
  186. package/dist/esm/models/functionconfschemanotify.d.ts +4 -4
  187. package/dist/esm/models/functionconfschemanotify.d.ts.map +1 -1
  188. package/dist/esm/models/functionconfschemapack.d.ts +1 -1
  189. package/dist/esm/models/functionconfschemapack.d.ts.map +1 -1
  190. package/dist/esm/models/functionconfschemaredis.d.ts +3 -3
  191. package/dist/esm/models/functionconfschemaredis.d.ts.map +1 -1
  192. package/dist/esm/models/functionconfschemaregexextract.d.ts +3 -3
  193. package/dist/esm/models/functionconfschemaregexextract.d.ts.map +1 -1
  194. package/dist/esm/models/functionconfschemasend.d.ts +4 -4
  195. package/dist/esm/models/functionconfschemasend.d.ts.map +1 -1
  196. package/dist/esm/models/functionconfschemasensitivedatascanner.d.ts +4 -4
  197. package/dist/esm/models/functionconfschemasensitivedatascanner.d.ts.map +1 -1
  198. package/dist/esm/models/functionconfschemaserde.d.ts +3 -3
  199. package/dist/esm/models/functionconfschemaserde.d.ts.map +1 -1
  200. package/dist/esm/models/functionconfschemaserialize.d.ts +2 -2
  201. package/dist/esm/models/functionconfschemaserialize.d.ts.map +1 -1
  202. package/dist/esm/models/functionconfschemastore.d.ts +7 -7
  203. package/dist/esm/models/functionconfschemastore.d.ts.map +1 -1
  204. package/dist/esm/models/functionconfschemasuppress.d.ts +6 -6
  205. package/dist/esm/models/functionconfschemasuppress.d.ts.map +1 -1
  206. package/dist/esm/models/functionconfschematee.d.ts +1 -1
  207. package/dist/esm/models/functionconfschematee.d.ts.map +1 -1
  208. package/dist/esm/models/functionconfschemaunroll.d.ts +2 -2
  209. package/dist/esm/models/functionconfschemaunroll.d.ts.map +1 -1
  210. package/dist/esm/models/functionconfschemawindow.d.ts +2 -2
  211. package/dist/esm/models/functionconfschemawindow.d.ts.map +1 -1
  212. package/dist/esm/models/functionconfschemaxmlunroll.d.ts +2 -2
  213. package/dist/esm/models/functionconfschemaxmlunroll.d.ts.map +1 -1
  214. package/dist/esm/models/index.d.ts +2 -0
  215. package/dist/esm/models/index.d.ts.map +1 -1
  216. package/dist/esm/models/index.js +2 -0
  217. package/dist/esm/models/index.js.map +1 -1
  218. package/dist/esm/models/operations/getfunctionresponsebyid.d.ts +15 -0
  219. package/dist/esm/models/operations/getfunctionresponsebyid.d.ts.map +1 -0
  220. package/dist/esm/models/operations/getfunctionresponsebyid.js +12 -0
  221. package/dist/esm/models/operations/getfunctionresponsebyid.js.map +1 -0
  222. package/dist/esm/models/pipeline.d.ts +1 -1
  223. package/dist/esm/models/pipeline.d.ts.map +1 -1
  224. package/dist/esm/models/pipelinefunctioncef.d.ts +1 -1
  225. package/dist/esm/models/pipelinefunctioncef.d.ts.map +1 -1
  226. package/dist/esm/models/routes.d.ts +1 -3
  227. package/dist/esm/models/routes.d.ts.map +1 -1
  228. package/dist/esm/models/routes.js +4 -13
  229. package/dist/esm/models/routes.js.map +1 -1
  230. package/dist/esm/models/routesroute.d.ts +1 -3
  231. package/dist/esm/models/routesroute.d.ts.map +1 -1
  232. package/dist/esm/models/routesroute.js +4 -13
  233. package/dist/esm/models/routesroute.js.map +1 -1
  234. package/dist/esm/models/runnablejobcollection.d.ts +37 -37
  235. package/dist/esm/models/runnablejobcollection.d.ts.map +1 -1
  236. package/dist/esm/models/runnablejobexecutor.d.ts +21 -21
  237. package/dist/esm/models/runnablejobexecutor.d.ts.map +1 -1
  238. package/dist/esm/models/runnablejobscheduledsearch.d.ts +16 -16
  239. package/dist/esm/models/runnablejobscheduledsearch.d.ts.map +1 -1
  240. package/dist/esm/sdk/captures.d.ts +15 -0
  241. package/dist/esm/sdk/captures.d.ts.map +1 -0
  242. package/dist/esm/sdk/captures.js +18 -0
  243. package/dist/esm/sdk/captures.js.map +1 -0
  244. package/dist/esm/sdk/sdk.d.ts +2 -2
  245. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  246. package/dist/esm/sdk/sdk.js +3 -3
  247. package/dist/esm/sdk/sdk.js.map +1 -1
  248. package/dist/esm/sdk/system.d.ts +3 -0
  249. package/dist/esm/sdk/system.d.ts.map +1 -1
  250. package/dist/esm/sdk/system.js +4 -0
  251. package/dist/esm/sdk/system.js.map +1 -1
  252. package/examples/auth.ts +2 -3
  253. package/examples/example-cloud-auth.ts +13 -13
  254. package/examples/example-cloud-search-packs-lake.ts +2 -2
  255. package/examples/example-cloud-worker-group.ts +6 -6
  256. package/examples/example-edge.ts +5 -6
  257. package/examples/example-onprem-auth.ts +57 -21
  258. package/examples/example-packs.ts +5 -6
  259. package/examples/example-stream.ts +5 -6
  260. package/examples/example-worker-group-replication.ts +2 -1
  261. package/examples/package-lock.json +1 -1
  262. package/jsr.json +1 -1
  263. package/package.json +1 -1
  264. package/src/funcs/systemCapturesGet.ts +192 -0
  265. package/src/lib/config.ts +4 -4
  266. package/src/lib/jsonl.ts +127 -0
  267. package/src/models/capturelevel.ts +22 -0
  268. package/src/models/captureparams.ts +46 -0
  269. package/src/models/criblevent.ts +2 -5
  270. package/src/models/functionconfschemaaggregatemetrics.ts +8 -8
  271. package/src/models/functionconfschemaaggregation.ts +8 -8
  272. package/src/models/functionconfschemacef.ts +1 -1
  273. package/src/models/functionconfschemadistinct.ts +3 -3
  274. package/src/models/functionconfschemadnslookup.ts +16 -32
  275. package/src/models/functionconfschemadropdimensions.ts +2 -2
  276. package/src/models/functionconfschemadynamicsampling.ts +5 -5
  277. package/src/models/functionconfschemaeventbreaker.ts +2 -2
  278. package/src/models/functionconfschemaeventstats.ts +2 -2
  279. package/src/models/functionconfschemageoip.ts +2 -2
  280. package/src/models/functionconfschemagrok.ts +1 -1
  281. package/src/models/functionconfschemahandlebars.ts +4 -4
  282. package/src/models/functionconfschemalakeexport.ts +3 -3
  283. package/src/models/functionconfschemalookup.ts +2 -2
  284. package/src/models/functionconfschemamask.ts +3 -3
  285. package/src/models/functionconfschemamvexpand.ts +2 -2
  286. package/src/models/functionconfschemamvpull.ts +2 -2
  287. package/src/models/functionconfschemanotify.ts +4 -4
  288. package/src/models/functionconfschemapack.ts +1 -1
  289. package/src/models/functionconfschemaredis.ts +3 -3
  290. package/src/models/functionconfschemaregexextract.ts +3 -3
  291. package/src/models/functionconfschemasend.ts +4 -4
  292. package/src/models/functionconfschemasensitivedatascanner.ts +4 -4
  293. package/src/models/functionconfschemaserde.ts +3 -3
  294. package/src/models/functionconfschemaserialize.ts +2 -2
  295. package/src/models/functionconfschemastore.ts +7 -7
  296. package/src/models/functionconfschemasuppress.ts +6 -6
  297. package/src/models/functionconfschematee.ts +1 -1
  298. package/src/models/functionconfschemaunroll.ts +2 -2
  299. package/src/models/functionconfschemawindow.ts +2 -2
  300. package/src/models/functionconfschemaxmlunroll.ts +2 -2
  301. package/src/models/index.ts +2 -0
  302. package/src/models/operations/getfunctionresponsebyid.ts +36 -0
  303. package/src/models/pipeline.ts +1 -1
  304. package/src/models/pipelinefunctioncef.ts +1 -1
  305. package/src/models/routes.ts +6 -22
  306. package/src/models/routesroute.ts +15 -31
  307. package/src/models/runnablejobcollection.ts +37 -37
  308. package/src/models/runnablejobexecutor.ts +21 -21
  309. package/src/models/runnablejobscheduledsearch.ts +16 -16
  310. package/src/sdk/captures.ts +28 -0
  311. package/src/sdk/sdk.ts +5 -5
  312. package/src/sdk/system.ts +6 -0
package/README.md CHANGED
@@ -1,9 +1,18 @@
1
1
  # cribl-control-plane-sdk-typescript
2
- <!-- Start Summary [summary] -->
3
- ## Summary
4
2
 
5
- Cribl API Reference: This API Reference lists available REST endpoints, along with their supported operations for accessing, creating, updating, or deleting resources. See our complementary product documentation at [docs.cribl.io](http://docs.cribl.io).
6
- <!-- End Summary [summary] -->
3
+ The Cribl TypeScript SDK for the control plane provides operational control over Cribl resources and helps streamline the process of integrating with Cribl.
4
+
5
+ In addition to the usage examples in this repository, you can adapt the [code examples for common use cases](https://docs.cribl.io/cribl-as-code/code-examples) in the Cribl documentation to use TypeScript instead of Python.
6
+
7
+ Complementary API reference documentation is available at https://docs.cribl.io/cribl-as-code/api-reference. Product documentation is available at https://docs.cribl.io.
8
+
9
+ > [!IMPORTANT]
10
+ > **Preview Feature**
11
+ > The Cribl SDKs are Preview features that are still being developed. We do not recommend using them in a production environment, because the features might not be fully tested or optimized for performance, and related documentation could be incomplete.
12
+ >
13
+ > Please continue to submit feedback through normal Cribl support channels, but assistance might be limited while the features remain in Preview.
14
+
15
+ <!-- No Summary [summary] -->
7
16
 
8
17
  <!-- Start Table of Contents [toc] -->
9
18
  ## Table of Contents
@@ -15,6 +24,7 @@ Cribl API Reference: This API Reference lists available REST endpoints, along wi
15
24
  * [Authentication](#authentication)
16
25
  * [Available Resources and Operations](#available-resources-and-operations)
17
26
  * [Standalone functions](#standalone-functions)
27
+ * [Json Streaming](#json-streaming)
18
28
  * [File uploads](#file-uploads)
19
29
  * [Retries](#retries)
20
30
  * [Error Handling](#error-handling)
@@ -142,9 +152,14 @@ run();
142
152
  ```
143
153
  <!-- End SDK Example Usage [usage] -->
144
154
 
145
- <!-- Start Authentication [security] -->
146
155
  ## Authentication
147
156
 
157
+ Except for the `health.get` and `auth.tokens.get` methods, all Cribl SDK requests require you to authenticate with a Bearer token. You must include a valid Bearer token in the configuration when initializing your SDK client. The Bearer token verifies your identity and ensures secure access to the requested resources. The SDK automatically manages the `Authorization` header for subsequent requests once properly authenticated.
158
+
159
+ For information about Bearer token expiration, see [Token Management](https://docs.cribl.io/cribl-as-code/sdks-auth/#sdks-token-mgmt) in the Cribl as Code documentation.
160
+
161
+ **Authentication happens once during SDK initialization**. After you initialize the SDK client with authentication as shown in the [authentication examples](#authentication-examples), the SDK automatically handles authentication for all subsequent API calls. You do not need to include authentication parameters in individual API requests. The [SDK Example Usage](#sdk-example-usage) section shows how to initialize the SDK and make API calls, but if you've properly initialized your client as shown in the authentication examples, you only need to make the API method calls themselves without re-initializing.
162
+
148
163
  ### Per-Client Security Schemes
149
164
 
150
165
  This SDK supports the following security schemes globally:
@@ -154,81 +169,19 @@ This SDK supports the following security schemes globally:
154
169
  | `bearerAuth` | http | HTTP Bearer | `CRIBLCONTROLPLANE_BEARER_AUTH` |
155
170
  | `clientOauth` | oauth2 | OAuth2 token | `CRIBLCONTROLPLANE_CLIENT_OAUTH` |
156
171
 
157
- You can set the security parameters through the `security` optional parameter when initializing the SDK client instance. The selected scheme will be used by default to authenticate with the API for all operations that support it. For example:
158
- ```typescript
159
- import { CriblControlPlane } from "cribl-control-plane";
172
+ To configure authentication on Cribl.Cloud and in hybrid deployments, use the `clientOauth` security scheme. The SDK uses the OAuth credentials that you provide to obtain a Bearer token and refresh the token within its expiration window using the standard OAuth2 flow.
160
173
 
161
- const criblControlPlane = new CriblControlPlane({
162
- serverURL: "https://api.example.com",
163
- security: {
164
- bearerAuth: process.env["CRIBLCONTROLPLANE_BEARER_AUTH"] ?? "",
165
- },
166
- });
174
+ In on-prem deployments, use the `bearerAuth` security scheme. The SDK uses the username/password credentials that you provide to obtain a Bearer token. Automatically refreshing the Bearer token within its expiration window requires a callback function as shown in the [On-Prem Authentication Example](https://github.com/criblio/cribl-control-plane-sdk-typescript/blob/main/examples/example-onprem-auth.ts).
167
175
 
168
- async function run() {
169
- const result = await criblControlPlane.lakeDatasets.create({
170
- lakeId: "<id>",
171
- criblLakeDataset: {
172
- acceleratedFields: [
173
- "<value 1>",
174
- "<value 2>",
175
- ],
176
- bucketName: "<value>",
177
- cacheConnection: {
178
- acceleratedFields: [
179
- "<value 1>",
180
- "<value 2>",
181
- ],
182
- backfillStatus: "pending",
183
- cacheRef: "<value>",
184
- createdAt: 7795.06,
185
- lakehouseConnectionType: "cache",
186
- migrationQueryId: "<id>",
187
- retentionInDays: 1466.58,
188
- },
189
- deletionStartedAt: 8310.58,
190
- description:
191
- "pleased toothbrush long brush smooth swiftly rightfully phooey chapel",
192
- format: "ddss",
193
- httpDAUsed: true,
194
- id: "<id>",
195
- metrics: {
196
- currentSizeBytes: 6170.04,
197
- metricsDate: "<value>",
198
- },
199
- retentionPeriodInDays: 456.37,
200
- searchConfig: {
201
- datatypes: [
202
- "<value 1>",
203
- ],
204
- metadata: {
205
- earliest: "<value>",
206
- enableAcceleration: true,
207
- fieldList: [
208
- "<value 1>",
209
- "<value 2>",
210
- ],
211
- latestRunInfo: {
212
- earliestScannedTime: 4334.7,
213
- finishedAt: 6811.22,
214
- latestScannedTime: 5303.3,
215
- objectCount: 9489.04,
216
- },
217
- scanMode: "detailed",
218
- },
219
- },
220
- storageLocationId: "<id>",
221
- viewName: "<value>",
222
- },
223
- });
176
+ Set the security scheme through the `security` optional parameter when initializing the SDK client instance. The SDK uses the selected scheme by default to authenticate with the API for all operations that support it.
224
177
 
225
- console.log(result);
226
- }
178
+ ### Authentication Examples
227
179
 
228
- run();
180
+ The [Cribl.Cloud and Hybrid Authentication Example](https://github.com/criblio/cribl-control-plane-sdk-typescript/blob/main/examples/example-cloud-auth.ts) demonstrates how to configure authentication on Cribl.Cloud and in hybrid deployments. To obtain the Client ID and Client Secret you'll need to initialize using the `clientOauth` security schema, follow the [instructions for creating an API Credential](https://docs.cribl.io/cribl-as-code/sdks-auth/#sdks-auth-cloud) in the Cribl as Code documentation.
229
181
 
230
- ```
231
- <!-- End Authentication [security] -->
182
+ The [On-Prem Authentication Example](https://github.com/criblio/cribl-control-plane-sdk-typescript/blob/main/examples/example-onprem-auth.ts) demonstrates how to configure authentication in on-prem deployments using your username and password.
183
+
184
+ <!-- No Authentication [security] -->
232
185
 
233
186
  <!-- Start Available Resources and Operations [operations] -->
234
187
  ## Available Resources and Operations
@@ -350,6 +303,10 @@ run();
350
303
  * [create](docs/sdks/hectokens/README.md#create) - Add an HEC token and optional metadata to a Splunk HEC Source
351
304
  * [update](docs/sdks/hectokens/README.md#update) - Update metadata for an HEC token for a Splunk HEC Source
352
305
 
306
+ ### [System.Captures](docs/sdks/captures/README.md)
307
+
308
+ * [get](docs/sdks/captures/README.md#get) - Capture live incoming data
309
+
353
310
  ### [System.Settings.Cribl](docs/sdks/cribl/README.md)
354
311
 
355
312
  * [list](docs/sdks/cribl/README.md#list) - Get Cribl system settings
@@ -458,6 +415,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
458
415
  - [`sourcesHecTokensUpdate`](docs/sdks/hectokens/README.md#update) - Update metadata for an HEC token for a Splunk HEC Source
459
416
  - [`sourcesList`](docs/sdks/sources/README.md#list) - List all Sources
460
417
  - [`sourcesUpdate`](docs/sdks/sources/README.md#update) - Update a Source
418
+ - [`systemCapturesGet`](docs/sdks/captures/README.md#get) - Capture live incoming data
461
419
  - [`systemSettingsCriblList`](docs/sdks/cribl/README.md#list) - Get Cribl system settings
462
420
  - [`systemSettingsCriblUpdate`](docs/sdks/cribl/README.md#update) - Update Cribl system settings
463
421
  - [`versionsBranchesGet`](docs/sdks/branches/README.md#get) - Get the name of the Git branch that the Cribl configuration is checked out to
@@ -477,6 +435,49 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
477
435
  </details>
478
436
  <!-- End Standalone functions [standalone-funcs] -->
479
437
 
438
+ <!-- Start Json Streaming [jsonl] -->
439
+ ## Json Streaming
440
+
441
+ Json Streaming ([jsonl][jsonl-format] / [x-ndjson][x-ndjson]) content type can be used to stream content from certain operations. These operations expose the stream as an [AsyncGenerator][async-generator] that can be consumed using a `for await...of` loop in TypeScript/JavaScript. The loop will terminate when the server no longer has any events to send and closes the underlying connection.
442
+
443
+ Here's an example of consuming a JSONL stream:
444
+
445
+ ```typescript
446
+ import { CriblControlPlane } from "cribl-control-plane";
447
+
448
+ const criblControlPlane = new CriblControlPlane({
449
+ serverURL: "https://api.example.com",
450
+ security: {
451
+ bearerAuth: process.env["CRIBLCONTROLPLANE_BEARER_AUTH"] ?? "",
452
+ },
453
+ });
454
+
455
+ async function run() {
456
+ const result = await criblControlPlane.system.captures.get({
457
+ duration: 5717.32,
458
+ filter: "<value>",
459
+ level: 2,
460
+ maxEvents: 9941.84,
461
+ stepDuration: 7716.2,
462
+ workerId: "<id>",
463
+ workerThreshold: 8825.63,
464
+ });
465
+
466
+ for await (const event of result) {
467
+ // Handle the event
468
+ console.log(event);
469
+ }
470
+ }
471
+
472
+ run();
473
+
474
+ ```
475
+
476
+ [jsonl-format]: https://jsonlines.org/
477
+ [x-ndjson]: https://github.com/ndjson/ndjson-spec
478
+ [async-generator]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AsyncGenerator
479
+ <!-- End Json Streaming [jsonl] -->
480
+
480
481
  <!-- Start File uploads [file-upload] -->
481
482
  ## File uploads
482
483
 
@@ -816,7 +817,7 @@ run();
816
817
 
817
818
 
818
819
  **Inherit from [`CriblControlPlaneError`](./src/models/errors/criblcontrolplaneerror.ts)**:
819
- * [`HealthServerStatusError`](./src/models/errors/healthserverstatuserror.ts): Healthy status. Status code `420`. Applicable to 1 of 72 methods.*
820
+ * [`HealthServerStatusError`](./src/models/errors/healthserverstatuserror.ts): Healthy status. Status code `420`. Applicable to 1 of 73 methods.*
820
821
  * [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
821
822
 
822
823
  </details>
@@ -0,0 +1,21 @@
1
+ import { CriblControlPlaneCore } from "../core.js";
2
+ import { JsonLStream } from "../lib/jsonl.js";
3
+ import { RequestOptions } from "../lib/sdks.js";
4
+ import { CriblControlPlaneError } from "../models/errors/criblcontrolplaneerror.js";
5
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
6
+ import * as errors from "../models/errors/index.js";
7
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
8
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
9
+ import * as models from "../models/index.js";
10
+ import { APIPromise } from "../types/async.js";
11
+ import { Result } from "../types/fp.js";
12
+ /**
13
+ * Capture live incoming data
14
+ *
15
+ * @remarks
16
+ * Capture live incoming data
17
+ */
18
+ export declare function systemCapturesGet(client: CriblControlPlaneCore, request: models.CaptureParams, options?: RequestOptions): APIPromise<Result<JsonLStream<{
19
+ [k: string]: any;
20
+ }>, errors.ErrorT | CriblControlPlaneError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
21
+ //# sourceMappingURL=systemCapturesGet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"systemCapturesGet.d.ts","sourceRoot":"","sources":["../../../src/funcs/systemCapturesGet.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEnD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAI9C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,qBAAqB,EAC7B,OAAO,EAAE,MAAM,CAAC,aAAa,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,WAAW,CAAC;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAC,EAC/B,MAAM,CAAC,MAAM,GACb,sBAAsB,GACtB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -0,0 +1,137 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.systemCapturesGet = systemCapturesGet;
40
+ const z = __importStar(require("zod/v3"));
41
+ const encodings_js_1 = require("../lib/encodings.js");
42
+ const jsonl_js_1 = require("../lib/jsonl.js");
43
+ const M = __importStar(require("../lib/matchers.js"));
44
+ const primitives_js_1 = require("../lib/primitives.js");
45
+ const schemas_js_1 = require("../lib/schemas.js");
46
+ const security_js_1 = require("../lib/security.js");
47
+ const url_js_1 = require("../lib/url.js");
48
+ const errors = __importStar(require("../models/errors/index.js"));
49
+ const models = __importStar(require("../models/index.js"));
50
+ const async_js_1 = require("../types/async.js");
51
+ /**
52
+ * Capture live incoming data
53
+ *
54
+ * @remarks
55
+ * Capture live incoming data
56
+ */
57
+ function systemCapturesGet(client, request, options) {
58
+ return new async_js_1.APIPromise($do(client, request, options));
59
+ }
60
+ async function $do(client, request, options) {
61
+ const parsed = (0, schemas_js_1.safeParse)(request, (value) => models.CaptureParams$outboundSchema.parse(value), "Input validation failed");
62
+ if (!parsed.ok) {
63
+ return [parsed, { status: "invalid" }];
64
+ }
65
+ const payload = parsed.value;
66
+ const body = (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
67
+ const path = (0, url_js_1.pathToFunc)("/system/capture")();
68
+ const headers = new Headers((0, primitives_js_1.compactMap)({
69
+ "Content-Type": "application/json",
70
+ Accept: "application/x-ndjson",
71
+ }));
72
+ const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
73
+ const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
74
+ const context = {
75
+ options: client._options,
76
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
77
+ operationID: "createSystemCapture",
78
+ oAuth2Scopes: [],
79
+ resolvedSecurity: requestSecurity,
80
+ securitySource: client._options.security,
81
+ retryConfig: options?.retries
82
+ || client._options.retryConfig
83
+ || {
84
+ strategy: "backoff",
85
+ backoff: {
86
+ initialInterval: 500,
87
+ maxInterval: 60000,
88
+ exponent: 1.5,
89
+ maxElapsedTime: 3600000,
90
+ },
91
+ retryConnectionErrors: true,
92
+ }
93
+ || { strategy: "none" },
94
+ retryCodes: options?.retryCodes || ["429"],
95
+ };
96
+ const requestRes = client._createRequest(context, {
97
+ security: requestSecurity,
98
+ method: "POST",
99
+ baseURL: options?.serverURL,
100
+ path: path,
101
+ headers: headers,
102
+ body: body,
103
+ userAgent: client._options.userAgent,
104
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
105
+ }, options);
106
+ if (!requestRes.ok) {
107
+ return [requestRes, { status: "invalid" }];
108
+ }
109
+ const req = requestRes.value;
110
+ const doResult = await client._do(req, {
111
+ context,
112
+ errorCodes: ["401", "4XX", "500", "5XX"],
113
+ retryConfig: context.retryConfig,
114
+ retryCodes: context.retryCodes,
115
+ });
116
+ if (!doResult.ok) {
117
+ return [doResult, { status: "request-error", request: req }];
118
+ }
119
+ const response = doResult.value;
120
+ const responseFields = {
121
+ HttpMeta: { Response: response, Request: req },
122
+ };
123
+ const [result] = await M.match(M.jsonl(200, z.instanceof((ReadableStream)).transform(stream => {
124
+ return new jsonl_js_1.JsonLStream({
125
+ stream,
126
+ decoder(rawEvent) {
127
+ const schema = z.record(z.any());
128
+ return schema.parse(rawEvent);
129
+ },
130
+ });
131
+ }), { ctype: "application/x-ndjson" }), M.jsonErr(500, errors.ErrorT$inboundSchema), M.fail([401, "4XX"]), M.fail("5XX"))(response, req, { extraFields: responseFields });
132
+ if (!result.ok) {
133
+ return [result, { status: "complete", request: req, response }];
134
+ }
135
+ return [result, { status: "complete", request: req, response }];
136
+ }
137
+ //# sourceMappingURL=systemCapturesGet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"systemCapturesGet.js","sourceRoot":"","sources":["../../../src/funcs/systemCapturesGet.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCH,8CAuBC;AAtDD,0CAA4B;AAE5B,sDAAiD;AACjD,8CAA8C;AAC9C,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C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EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
@@ -34,9 +34,9 @@ export type SDKOptions = {
34
34
  export declare function serverURLFromOptions(options: SDKOptions): URL | null;
35
35
  export declare const SDK_METADATA: {
36
36
  readonly language: "typescript";
37
- readonly openapiDocVersion: "4.16.0-alpha.1767654263427-c6413233";
38
- readonly sdkVersion: "0.5.0-beta.9";
39
- readonly genVersion: "2.778.0";
40
- readonly userAgent: "speakeasy-sdk/typescript 0.5.0-beta.9 2.778.0 4.16.0-alpha.1767654263427-c6413233 cribl-control-plane";
37
+ readonly openapiDocVersion: "4.16.0-alpha.1767808351351-326f0624";
38
+ readonly sdkVersion: "0.5.0-rc.10";
39
+ readonly genVersion: "2.791.1";
40
+ readonly userAgent: "speakeasy-sdk/typescript 0.5.0-rc.10 2.791.1 4.16.0-alpha.1767808351351-326f0624 cribl-control-plane";
41
41
  };
42
42
  //# sourceMappingURL=config.d.ts.map
@@ -27,9 +27,9 @@ function serverURLFromOptions(options) {
27
27
  }
28
28
  exports.SDK_METADATA = {
29
29
  language: "typescript",
30
- openapiDocVersion: "4.16.0-alpha.1767654263427-c6413233",
31
- sdkVersion: "0.5.0-beta.9",
32
- genVersion: "2.778.0",
33
- userAgent: "speakeasy-sdk/typescript 0.5.0-beta.9 2.778.0 4.16.0-alpha.1767654263427-c6413233 cribl-control-plane",
30
+ openapiDocVersion: "4.16.0-alpha.1767808351351-326f0624",
31
+ sdkVersion: "0.5.0-rc.10",
32
+ genVersion: "2.791.1",
33
+ userAgent: "speakeasy-sdk/typescript 0.5.0-rc.10 2.791.1 4.16.0-alpha.1767808351351-326f0624 cribl-control-plane",
34
34
  };
35
35
  //# sourceMappingURL=config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AA0CH,oDAeC;AAnDD,qCAA8C;AAE9C;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB,GAAG;CACK,CAAC;AA6BX,SAAgB,oBAAoB,CAAC,OAAmB;IACtD,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,MAAM,GAAW,EAAE,CAAC;IAE1B,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,CAAC,CAAC;QACzC,IAAI,SAAS,GAAG,CAAC,IAAI,SAAS,IAAI,kBAAU,CAAC,MAAM,EAAE,CAAC;YACpD,MAAM,IAAI,KAAK,CAAC,wBAAwB,SAAS,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,SAAS,GAAG,kBAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,GAAG,IAAA,mBAAU,EAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAEY,QAAA,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,qCAAqC;IACxD,UAAU,EAAE,cAAc;IAC1B,UAAU,EAAE,SAAS;IACrB,SAAS,EACP,uGAAuG;CACjG,CAAC"}
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AA0CH,oDAeC;AAnDD,qCAA8C;AAE9C;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB,GAAG;CACK,CAAC;AA6BX,SAAgB,oBAAoB,CAAC,OAAmB;IACtD,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,MAAM,GAAW,EAAE,CAAC;IAE1B,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,CAAC,CAAC;QACzC,IAAI,SAAS,GAAG,CAAC,IAAI,SAAS,IAAI,kBAAU,CAAC,MAAM,EAAE,CAAC;YACpD,MAAM,IAAI,KAAK,CAAC,wBAAwB,SAAS,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,SAAS,GAAG,kBAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,GAAG,IAAA,mBAAU,EAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAEY,QAAA,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,qCAAqC;IACxD,UAAU,EAAE,aAAa;IACzB,UAAU,EAAE,SAAS;IACrB,SAAS,EACP,sGAAsG;CAChG,CAAC"}
@@ -0,0 +1,10 @@
1
+ export declare class JsonLStream<Event> {
2
+ private readonly stream;
3
+ private readonly decoder;
4
+ constructor(init: {
5
+ stream: ReadableStream<Uint8Array>;
6
+ decoder: (rawEvent: string) => Event;
7
+ });
8
+ [Symbol.asyncIterator](): AsyncGenerator<Event, void, unknown>;
9
+ }
10
+ //# sourceMappingURL=jsonl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsonl.d.ts","sourceRoot":"","sources":["../../../src/lib/jsonl.ts"],"names":[],"mappings":"AAYA,qBAAa,WAAW,CAAC,KAAK;IAC5B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6B;IACpD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA8B;gBAE1C,IAAI,EAAE;QAChB,MAAM,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;QACnC,OAAO,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,KAAK,CAAC;KACtC;IAKM,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,cAAc,CAAC,KAAK,EAAE,IAAI,EAAE,OAAO,CAAC;CAqDtE"}
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.JsonLStream = void 0;
7
+ const LF = 0x0a;
8
+ const CR = 0x0d;
9
+ const RIGHT_BRACE = 0x7d;
10
+ const MESSAGE_BOUNDARIES = [
11
+ new Uint8Array([RIGHT_BRACE, CR, LF]),
12
+ new Uint8Array([RIGHT_BRACE, LF]),
13
+ ];
14
+ class JsonLStream {
15
+ constructor(init) {
16
+ this.stream = init.stream;
17
+ this.decoder = init.decoder;
18
+ }
19
+ async *[Symbol.asyncIterator]() {
20
+ const reader = this.stream.getReader();
21
+ let buffer = new Uint8Array([]);
22
+ let position = 0;
23
+ try {
24
+ while (true) {
25
+ const { done, value } = await reader.read();
26
+ if (done) {
27
+ break;
28
+ }
29
+ const newBuffer = new Uint8Array(buffer.length + value.length);
30
+ newBuffer.set(buffer);
31
+ newBuffer.set(value, buffer.length);
32
+ buffer = newBuffer;
33
+ for (let i = position; i < buffer.length; i++) {
34
+ const boundary = findBoundary(buffer, i);
35
+ if (boundary == null) {
36
+ continue;
37
+ }
38
+ const chunk = buffer.slice(position, i + 1);
39
+ position = i + boundary.length;
40
+ const event = parseEvent(chunk, this.decoder);
41
+ if (event != null) {
42
+ yield event;
43
+ }
44
+ }
45
+ if (position > 0) {
46
+ buffer = buffer.slice(position);
47
+ position = 0;
48
+ }
49
+ }
50
+ if (buffer.length > 0) {
51
+ const event = parseEvent(buffer, this.decoder);
52
+ if (event != null) {
53
+ yield event;
54
+ }
55
+ }
56
+ }
57
+ catch (e) {
58
+ if (e instanceof Error && e.name === "AbortError") {
59
+ return;
60
+ }
61
+ throw e;
62
+ }
63
+ finally {
64
+ reader.releaseLock();
65
+ }
66
+ }
67
+ }
68
+ exports.JsonLStream = JsonLStream;
69
+ function findBoundary(buffer, start) {
70
+ for (const s of MESSAGE_BOUNDARIES) {
71
+ const seq = peekSequence(start, buffer, s);
72
+ if (seq != null) {
73
+ return seq;
74
+ }
75
+ }
76
+ return null;
77
+ }
78
+ function peekSequence(position, buffer, sequence) {
79
+ if (sequence.length > buffer.length - position) {
80
+ return null;
81
+ }
82
+ for (let i = 0; i < sequence.length; i++) {
83
+ if (buffer[position + i] !== sequence[i]) {
84
+ return null;
85
+ }
86
+ }
87
+ return sequence;
88
+ }
89
+ function parseEvent(chunk, decoder) {
90
+ if (!chunk.length) {
91
+ return null;
92
+ }
93
+ const td = new TextDecoder();
94
+ const raw = td.decode(chunk);
95
+ try {
96
+ const parsed = JSON.parse(raw);
97
+ return decoder(parsed);
98
+ }
99
+ catch (e) {
100
+ console.error("Error parsing JSON:", e);
101
+ return null;
102
+ }
103
+ }
104
+ //# sourceMappingURL=jsonl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsonl.js","sourceRoot":"","sources":["../../../src/lib/jsonl.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,MAAM,EAAE,GAAG,IAAI,CAAC;AAChB,MAAM,EAAE,GAAG,IAAI,CAAC;AAChB,MAAM,WAAW,GAAG,IAAI,CAAC;AACzB,MAAM,kBAAkB,GAAG;IACzB,IAAI,UAAU,CAAC,CAAC,WAAW,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACrC,IAAI,UAAU,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;CAClC,CAAC;AAEF,MAAa,WAAW;IAItB,YAAY,IAGX;QACC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC1B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;IAC9B,CAAC;IAED,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC;QAC3B,MAAM,MAA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EAAE,CAAC;YACzC,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,SAAS,UAAU,CACjB,KAAiB,EACjB,OAAoC;IAEpC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;QAClB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,EAAE,GAAG,IAAI,WAAW,EAAE,CAAC;IAC7B,MAAM,GAAG,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAE7B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC/B,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC;IACzB,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,OAAO,CAAC,KAAK,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAC;QACxC,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"}
@@ -0,0 +1,12 @@
1
+ import * as z from "zod/v3";
2
+ import { OpenEnum } from "../types/enums.js";
3
+ export declare const CaptureLevel: {
4
+ readonly Zero: 0;
5
+ readonly One: 1;
6
+ readonly Two: 2;
7
+ readonly Three: 3;
8
+ };
9
+ export type CaptureLevel = OpenEnum<typeof CaptureLevel>;
10
+ /** @internal */
11
+ export declare const CaptureLevel$outboundSchema: z.ZodType<number, z.ZodTypeDef, CaptureLevel>;
12
+ //# sourceMappingURL=capturelevel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capturelevel.d.ts","sourceRoot":"","sources":["../../../src/models/capturelevel.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,eAAO,MAAM,YAAY;;;;;CAKf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAEzD,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CACjD,MAAM,EACN,CAAC,CAAC,UAAU,EACZ,YAAY,CAC+B,CAAC"}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.CaptureLevel$outboundSchema = exports.CaptureLevel = void 0;
40
+ const openEnums = __importStar(require("../types/enums.js"));
41
+ exports.CaptureLevel = {
42
+ Zero: 0,
43
+ One: 1,
44
+ Two: 2,
45
+ Three: 3,
46
+ };
47
+ /** @internal */
48
+ exports.CaptureLevel$outboundSchema = openEnums.outboundSchemaInt(exports.CaptureLevel);
49
+ //# sourceMappingURL=capturelevel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capturelevel.js","sourceRoot":"","sources":["../../../src/models/capturelevel.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,6DAA+C;AAGlC,QAAA,YAAY,GAAG;IAC1B,IAAI,EAAE,CAAC;IACP,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACA,CAAC;AAGX,gBAAgB;AACH,QAAA,2BAA2B,GAIpC,SAAS,CAAC,iBAAiB,CAAC,oBAAY,CAAC,CAAC"}
@@ -0,0 +1,25 @@
1
+ import * as z from "zod/v3";
2
+ import { CaptureLevel } from "./capturelevel.js";
3
+ export type CaptureParams = {
4
+ duration: number;
5
+ filter: string;
6
+ level: CaptureLevel;
7
+ maxEvents: number;
8
+ stepDuration?: number | undefined;
9
+ workerId?: string | undefined;
10
+ workerThreshold?: number | undefined;
11
+ };
12
+ /** @internal */
13
+ export type CaptureParams$Outbound = {
14
+ duration: number;
15
+ filter: string;
16
+ level: number;
17
+ maxEvents: number;
18
+ stepDuration?: number | undefined;
19
+ workerId?: string | undefined;
20
+ workerThreshold?: number | undefined;
21
+ };
22
+ /** @internal */
23
+ export declare const CaptureParams$outboundSchema: z.ZodType<CaptureParams$Outbound, z.ZodTypeDef, CaptureParams>;
24
+ export declare function captureParamsToJSON(captureParams: CaptureParams): string;
25
+ //# sourceMappingURL=captureparams.d.ts.map