@distilled.cloud/axiom 0.30.3 → 1.0.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 (493) hide show
  1. package/LICENSE +201 -0
  2. package/lib/credentials.d.ts +7 -1
  3. package/lib/credentials.d.ts.map +1 -1
  4. package/lib/credentials.js +21 -5
  5. package/lib/credentials.js.map +1 -1
  6. package/lib/edge-ingest.d.ts +6 -1
  7. package/lib/edge-ingest.d.ts.map +1 -1
  8. package/lib/edge-ingest.js +6 -1
  9. package/lib/edge-ingest.js.map +1 -1
  10. package/lib/edge-query.d.ts +6 -1
  11. package/lib/edge-query.d.ts.map +1 -1
  12. package/lib/edge-query.js +6 -1
  13. package/lib/edge-query.js.map +1 -1
  14. package/lib/errors.d.ts +7 -2
  15. package/lib/errors.d.ts.map +1 -1
  16. package/lib/errors.js +9 -6
  17. package/lib/errors.js.map +1 -1
  18. package/lib/index.d.ts +18 -11
  19. package/lib/index.d.ts.map +1 -1
  20. package/lib/index.js +22 -11
  21. package/lib/index.js.map +1 -1
  22. package/lib/protocol.d.ts +28 -0
  23. package/lib/protocol.d.ts.map +1 -0
  24. package/lib/protocol.js +86 -0
  25. package/lib/protocol.js.map +1 -0
  26. package/lib/retry.d.ts +3 -4
  27. package/lib/retry.d.ts.map +1 -1
  28. package/lib/retry.js +3 -4
  29. package/lib/retry.js.map +1 -1
  30. package/lib/services/edge_ingest.d.ts +64 -0
  31. package/lib/services/edge_ingest.d.ts.map +1 -0
  32. package/lib/services/edge_ingest.js +60 -0
  33. package/lib/services/edge_ingest.js.map +1 -0
  34. package/lib/services/edge_query.d.ts +93 -0
  35. package/lib/services/edge_query.d.ts.map +1 -0
  36. package/lib/services/edge_query.js +81 -0
  37. package/lib/services/edge_query.js.map +1 -0
  38. package/lib/services/index.d.ts +4 -0
  39. package/lib/services/index.d.ts.map +1 -0
  40. package/lib/services/index.js +5 -0
  41. package/lib/services/index.js.map +1 -0
  42. package/lib/services/v2.d.ts +2813 -0
  43. package/lib/services/v2.d.ts.map +1 -0
  44. package/lib/services/v2.js +2502 -0
  45. package/lib/services/v2.js.map +1 -0
  46. package/lib/traits.d.ts +8 -2
  47. package/lib/traits.d.ts.map +1 -1
  48. package/lib/traits.js +8 -2
  49. package/lib/traits.js.map +1 -1
  50. package/package.json +43 -46
  51. package/src/credentials.ts +31 -6
  52. package/src/edge-ingest.ts +6 -1
  53. package/src/edge-query.ts +6 -1
  54. package/src/errors.ts +9 -6
  55. package/src/index.ts +33 -11
  56. package/src/protocol.ts +111 -0
  57. package/src/retry.ts +3 -4
  58. package/src/services/edge_ingest.ts +122 -0
  59. package/src/services/edge_query.ts +197 -0
  60. package/src/services/index.ts +4 -0
  61. package/src/services/v2.ts +6692 -0
  62. package/src/traits.ts +42 -2
  63. package/README.md +0 -70
  64. package/lib/category.d.ts +0 -5
  65. package/lib/category.d.ts.map +0 -1
  66. package/lib/category.js +0 -5
  67. package/lib/category.js.map +0 -1
  68. package/lib/client.d.ts +0 -11
  69. package/lib/client.d.ts.map +0 -1
  70. package/lib/client.js +0 -108
  71. package/lib/client.js.map +0 -1
  72. package/lib/operations/index.d.ts +0 -2
  73. package/lib/operations/index.d.ts.map +0 -1
  74. package/lib/operations/index.js +0 -2
  75. package/lib/operations/index.js.map +0 -1
  76. package/lib/operations/v1-edge-ingest/index.d.ts +0 -2
  77. package/lib/operations/v1-edge-ingest/index.d.ts.map +0 -1
  78. package/lib/operations/v1-edge-ingest/index.js +0 -2
  79. package/lib/operations/v1-edge-ingest/index.js.map +0 -1
  80. package/lib/operations/v1-edge-ingest/ingestToDataset.d.ts +0 -31
  81. package/lib/operations/v1-edge-ingest/ingestToDataset.d.ts.map +0 -1
  82. package/lib/operations/v1-edge-ingest/ingestToDataset.js +0 -36
  83. package/lib/operations/v1-edge-ingest/ingestToDataset.js.map +0 -1
  84. package/lib/operations/v1-edge-query/index.d.ts +0 -2
  85. package/lib/operations/v1-edge-query/index.d.ts.map +0 -1
  86. package/lib/operations/v1-edge-query/index.js +0 -2
  87. package/lib/operations/v1-edge-query/index.js.map +0 -1
  88. package/lib/operations/v1-edge-query/queryApl.d.ts +0 -66
  89. package/lib/operations/v1-edge-query/queryApl.d.ts.map +0 -1
  90. package/lib/operations/v1-edge-query/queryApl.js +0 -71
  91. package/lib/operations/v1-edge-query/queryApl.js.map +0 -1
  92. package/lib/operations/v2/createAPIToken.d.ts +0 -84
  93. package/lib/operations/v2/createAPIToken.d.ts.map +0 -1
  94. package/lib/operations/v2/createAPIToken.js +0 -89
  95. package/lib/operations/v2/createAPIToken.js.map +0 -1
  96. package/lib/operations/v2/createAnnotation.d.ts +0 -28
  97. package/lib/operations/v2/createAnnotation.d.ts.map +0 -1
  98. package/lib/operations/v2/createAnnotation.js +0 -33
  99. package/lib/operations/v2/createAnnotation.js.map +0 -1
  100. package/lib/operations/v2/createDashboard.d.ts +0 -332
  101. package/lib/operations/v2/createDashboard.d.ts.map +0 -1
  102. package/lib/operations/v2/createDashboard.js +0 -113
  103. package/lib/operations/v2/createDashboard.js.map +0 -1
  104. package/lib/operations/v2/createDataset.d.ts +0 -36
  105. package/lib/operations/v2/createDataset.d.ts.map +0 -1
  106. package/lib/operations/v2/createDataset.js +0 -51
  107. package/lib/operations/v2/createDataset.js.map +0 -1
  108. package/lib/operations/v2/createGroup.d.ts +0 -26
  109. package/lib/operations/v2/createGroup.d.ts.map +0 -1
  110. package/lib/operations/v2/createGroup.js +0 -31
  111. package/lib/operations/v2/createGroup.js.map +0 -1
  112. package/lib/operations/v2/createMapField.d.ts +0 -13
  113. package/lib/operations/v2/createMapField.d.ts.map +0 -1
  114. package/lib/operations/v2/createMapField.js +0 -18
  115. package/lib/operations/v2/createMapField.js.map +0 -1
  116. package/lib/operations/v2/createMonitor.d.ts +0 -66
  117. package/lib/operations/v2/createMonitor.d.ts.map +0 -1
  118. package/lib/operations/v2/createMonitor.js +0 -83
  119. package/lib/operations/v2/createMonitor.js.map +0 -1
  120. package/lib/operations/v2/createNotifier.d.ts +0 -95
  121. package/lib/operations/v2/createNotifier.d.ts.map +0 -1
  122. package/lib/operations/v2/createNotifier.js +0 -101
  123. package/lib/operations/v2/createNotifier.js.map +0 -1
  124. package/lib/operations/v2/createOrg.d.ts +0 -50
  125. package/lib/operations/v2/createOrg.d.ts.map +0 -1
  126. package/lib/operations/v2/createOrg.js +0 -70
  127. package/lib/operations/v2/createOrg.js.map +0 -1
  128. package/lib/operations/v2/createRole.d.ts +0 -84
  129. package/lib/operations/v2/createRole.d.ts.map +0 -1
  130. package/lib/operations/v2/createRole.js +0 -89
  131. package/lib/operations/v2/createRole.js.map +0 -1
  132. package/lib/operations/v2/createStarred.d.ts +0 -85
  133. package/lib/operations/v2/createStarred.d.ts.map +0 -1
  134. package/lib/operations/v2/createStarred.js +0 -100
  135. package/lib/operations/v2/createStarred.js.map +0 -1
  136. package/lib/operations/v2/createUser.d.ts +0 -23
  137. package/lib/operations/v2/createUser.d.ts.map +0 -1
  138. package/lib/operations/v2/createUser.js +0 -28
  139. package/lib/operations/v2/createUser.js.map +0 -1
  140. package/lib/operations/v2/createView.d.ts +0 -22
  141. package/lib/operations/v2/createView.d.ts.map +0 -1
  142. package/lib/operations/v2/createView.js +0 -27
  143. package/lib/operations/v2/createView.js.map +0 -1
  144. package/lib/operations/v2/createVirtualField.d.ts +0 -23
  145. package/lib/operations/v2/createVirtualField.d.ts.map +0 -1
  146. package/lib/operations/v2/createVirtualField.js +0 -30
  147. package/lib/operations/v2/createVirtualField.js.map +0 -1
  148. package/lib/operations/v2/deleteAPIToken.d.ts +0 -13
  149. package/lib/operations/v2/deleteAPIToken.d.ts.map +0 -1
  150. package/lib/operations/v2/deleteAPIToken.js +0 -19
  151. package/lib/operations/v2/deleteAPIToken.js.map +0 -1
  152. package/lib/operations/v2/deleteAnnotation.d.ts +0 -15
  153. package/lib/operations/v2/deleteAnnotation.d.ts.map +0 -1
  154. package/lib/operations/v2/deleteAnnotation.js +0 -21
  155. package/lib/operations/v2/deleteAnnotation.js.map +0 -1
  156. package/lib/operations/v2/deleteDashboard.d.ts +0 -15
  157. package/lib/operations/v2/deleteDashboard.d.ts.map +0 -1
  158. package/lib/operations/v2/deleteDashboard.js +0 -21
  159. package/lib/operations/v2/deleteDashboard.js.map +0 -1
  160. package/lib/operations/v2/deleteDataset.d.ts +0 -13
  161. package/lib/operations/v2/deleteDataset.d.ts.map +0 -1
  162. package/lib/operations/v2/deleteDataset.js +0 -19
  163. package/lib/operations/v2/deleteDataset.js.map +0 -1
  164. package/lib/operations/v2/deleteGroup.d.ts +0 -17
  165. package/lib/operations/v2/deleteGroup.d.ts.map +0 -1
  166. package/lib/operations/v2/deleteGroup.js +0 -23
  167. package/lib/operations/v2/deleteGroup.js.map +0 -1
  168. package/lib/operations/v2/deleteMapField.d.ts +0 -11
  169. package/lib/operations/v2/deleteMapField.d.ts.map +0 -1
  170. package/lib/operations/v2/deleteMapField.js +0 -20
  171. package/lib/operations/v2/deleteMapField.js.map +0 -1
  172. package/lib/operations/v2/deleteMonitor.d.ts +0 -13
  173. package/lib/operations/v2/deleteMonitor.d.ts.map +0 -1
  174. package/lib/operations/v2/deleteMonitor.js +0 -19
  175. package/lib/operations/v2/deleteMonitor.js.map +0 -1
  176. package/lib/operations/v2/deleteNotifier.d.ts +0 -13
  177. package/lib/operations/v2/deleteNotifier.d.ts.map +0 -1
  178. package/lib/operations/v2/deleteNotifier.js +0 -19
  179. package/lib/operations/v2/deleteNotifier.js.map +0 -1
  180. package/lib/operations/v2/deleteRole.d.ts +0 -17
  181. package/lib/operations/v2/deleteRole.d.ts.map +0 -1
  182. package/lib/operations/v2/deleteRole.js +0 -23
  183. package/lib/operations/v2/deleteRole.js.map +0 -1
  184. package/lib/operations/v2/deleteStarred.d.ts +0 -10
  185. package/lib/operations/v2/deleteStarred.d.ts.map +0 -1
  186. package/lib/operations/v2/deleteStarred.js +0 -16
  187. package/lib/operations/v2/deleteStarred.js.map +0 -1
  188. package/lib/operations/v2/deleteView.d.ts +0 -10
  189. package/lib/operations/v2/deleteView.d.ts.map +0 -1
  190. package/lib/operations/v2/deleteView.js +0 -16
  191. package/lib/operations/v2/deleteView.js.map +0 -1
  192. package/lib/operations/v2/deleteVirtualField.d.ts +0 -10
  193. package/lib/operations/v2/deleteVirtualField.d.ts.map +0 -1
  194. package/lib/operations/v2/deleteVirtualField.js +0 -17
  195. package/lib/operations/v2/deleteVirtualField.js.map +0 -1
  196. package/lib/operations/v2/getAPIToken.d.ts +0 -50
  197. package/lib/operations/v2/getAPIToken.d.ts.map +0 -1
  198. package/lib/operations/v2/getAPIToken.js +0 -55
  199. package/lib/operations/v2/getAPIToken.js.map +0 -1
  200. package/lib/operations/v2/getAPITokens.d.ts +0 -48
  201. package/lib/operations/v2/getAPITokens.d.ts.map +0 -1
  202. package/lib/operations/v2/getAPITokens.js +0 -51
  203. package/lib/operations/v2/getAPITokens.js.map +0 -1
  204. package/lib/operations/v2/getAnnotation.d.ts +0 -24
  205. package/lib/operations/v2/getAnnotation.d.ts.map +0 -1
  206. package/lib/operations/v2/getAnnotation.js +0 -29
  207. package/lib/operations/v2/getAnnotation.js.map +0 -1
  208. package/lib/operations/v2/getAnnotations.d.ts +0 -27
  209. package/lib/operations/v2/getAnnotations.d.ts.map +0 -1
  210. package/lib/operations/v2/getAnnotations.js +0 -31
  211. package/lib/operations/v2/getAnnotations.js.map +0 -1
  212. package/lib/operations/v2/getCurrentUser.d.ts +0 -19
  213. package/lib/operations/v2/getCurrentUser.d.ts.map +0 -1
  214. package/lib/operations/v2/getCurrentUser.js +0 -22
  215. package/lib/operations/v2/getCurrentUser.js.map +0 -1
  216. package/lib/operations/v2/getDashboard.d.ts +0 -174
  217. package/lib/operations/v2/getDashboard.d.ts.map +0 -1
  218. package/lib/operations/v2/getDashboard.js +0 -67
  219. package/lib/operations/v2/getDashboard.js.map +0 -1
  220. package/lib/operations/v2/getDataset.d.ts +0 -28
  221. package/lib/operations/v2/getDataset.d.ts.map +0 -1
  222. package/lib/operations/v2/getDataset.js +0 -38
  223. package/lib/operations/v2/getDataset.js.map +0 -1
  224. package/lib/operations/v2/getDatasets.d.ts +0 -27
  225. package/lib/operations/v2/getDatasets.d.ts.map +0 -1
  226. package/lib/operations/v2/getDatasets.js +0 -36
  227. package/lib/operations/v2/getDatasets.js.map +0 -1
  228. package/lib/operations/v2/getFieldForDataset.d.ts +0 -17
  229. package/lib/operations/v2/getFieldForDataset.d.ts.map +0 -1
  230. package/lib/operations/v2/getFieldForDataset.js +0 -27
  231. package/lib/operations/v2/getFieldForDataset.js.map +0 -1
  232. package/lib/operations/v2/getFieldsForDataset.d.ts +0 -16
  233. package/lib/operations/v2/getFieldsForDataset.d.ts.map +0 -1
  234. package/lib/operations/v2/getFieldsForDataset.js +0 -23
  235. package/lib/operations/v2/getFieldsForDataset.js.map +0 -1
  236. package/lib/operations/v2/getGroupById.d.ts +0 -24
  237. package/lib/operations/v2/getGroupById.d.ts.map +0 -1
  238. package/lib/operations/v2/getGroupById.js +0 -29
  239. package/lib/operations/v2/getGroupById.js.map +0 -1
  240. package/lib/operations/v2/getMapFields.d.ts +0 -10
  241. package/lib/operations/v2/getMapFields.d.ts.map +0 -1
  242. package/lib/operations/v2/getMapFields.js +0 -15
  243. package/lib/operations/v2/getMapFields.js.map +0 -1
  244. package/lib/operations/v2/getMonitor.d.ts +0 -43
  245. package/lib/operations/v2/getMonitor.d.ts.map +0 -1
  246. package/lib/operations/v2/getMonitor.js +0 -54
  247. package/lib/operations/v2/getMonitor.js.map +0 -1
  248. package/lib/operations/v2/getMonitorHistory.d.ts +0 -23
  249. package/lib/operations/v2/getMonitorHistory.d.ts.map +0 -1
  250. package/lib/operations/v2/getMonitorHistory.js +0 -28
  251. package/lib/operations/v2/getMonitorHistory.js.map +0 -1
  252. package/lib/operations/v2/getMonitors.d.ts +0 -39
  253. package/lib/operations/v2/getMonitors.d.ts.map +0 -1
  254. package/lib/operations/v2/getMonitors.js +0 -48
  255. package/lib/operations/v2/getMonitors.js.map +0 -1
  256. package/lib/operations/v2/getNotifier.d.ts +0 -58
  257. package/lib/operations/v2/getNotifier.d.ts.map +0 -1
  258. package/lib/operations/v2/getNotifier.js +0 -64
  259. package/lib/operations/v2/getNotifier.js.map +0 -1
  260. package/lib/operations/v2/getNotifiers.d.ts +0 -54
  261. package/lib/operations/v2/getNotifiers.d.ts.map +0 -1
  262. package/lib/operations/v2/getNotifiers.js +0 -58
  263. package/lib/operations/v2/getNotifiers.js.map +0 -1
  264. package/lib/operations/v2/getOrg.d.ts +0 -50
  265. package/lib/operations/v2/getOrg.d.ts.map +0 -1
  266. package/lib/operations/v2/getOrg.js +0 -71
  267. package/lib/operations/v2/getOrg.js.map +0 -1
  268. package/lib/operations/v2/getOrgs.d.ts +0 -48
  269. package/lib/operations/v2/getOrgs.d.ts.map +0 -1
  270. package/lib/operations/v2/getOrgs.js +0 -67
  271. package/lib/operations/v2/getOrgs.js.map +0 -1
  272. package/lib/operations/v2/getRoleById.d.ts +0 -53
  273. package/lib/operations/v2/getRoleById.d.ts.map +0 -1
  274. package/lib/operations/v2/getRoleById.js +0 -58
  275. package/lib/operations/v2/getRoleById.js.map +0 -1
  276. package/lib/operations/v2/getStarred.d.ts +0 -49
  277. package/lib/operations/v2/getStarred.d.ts.map +0 -1
  278. package/lib/operations/v2/getStarred.js +0 -59
  279. package/lib/operations/v2/getStarred.js.map +0 -1
  280. package/lib/operations/v2/getStarredQueries.d.ts +0 -59
  281. package/lib/operations/v2/getStarredQueries.d.ts.map +0 -1
  282. package/lib/operations/v2/getStarredQueries.js +0 -68
  283. package/lib/operations/v2/getStarredQueries.js.map +0 -1
  284. package/lib/operations/v2/getUser.d.ts +0 -21
  285. package/lib/operations/v2/getUser.d.ts.map +0 -1
  286. package/lib/operations/v2/getUser.js +0 -26
  287. package/lib/operations/v2/getUser.js.map +0 -1
  288. package/lib/operations/v2/getUsers.d.ts +0 -19
  289. package/lib/operations/v2/getUsers.d.ts.map +0 -1
  290. package/lib/operations/v2/getUsers.js +0 -22
  291. package/lib/operations/v2/getUsers.js.map +0 -1
  292. package/lib/operations/v2/getView.d.ts +0 -17
  293. package/lib/operations/v2/getView.d.ts.map +0 -1
  294. package/lib/operations/v2/getView.js +0 -22
  295. package/lib/operations/v2/getView.js.map +0 -1
  296. package/lib/operations/v2/getViews.d.ts +0 -15
  297. package/lib/operations/v2/getViews.d.ts.map +0 -1
  298. package/lib/operations/v2/getViews.js +0 -18
  299. package/lib/operations/v2/getViews.js.map +0 -1
  300. package/lib/operations/v2/getVirtualField.d.ts +0 -18
  301. package/lib/operations/v2/getVirtualField.d.ts.map +0 -1
  302. package/lib/operations/v2/getVirtualField.js +0 -23
  303. package/lib/operations/v2/getVirtualField.js.map +0 -1
  304. package/lib/operations/v2/getVirtualFields.d.ts +0 -17
  305. package/lib/operations/v2/getVirtualFields.d.ts.map +0 -1
  306. package/lib/operations/v2/getVirtualFields.js +0 -21
  307. package/lib/operations/v2/getVirtualFields.js.map +0 -1
  308. package/lib/operations/v2/index.d.ts +0 -78
  309. package/lib/operations/v2/index.d.ts.map +0 -1
  310. package/lib/operations/v2/index.js +0 -78
  311. package/lib/operations/v2/index.js.map +0 -1
  312. package/lib/operations/v2/listDashboards.d.ts +0 -174
  313. package/lib/operations/v2/listDashboards.d.ts.map +0 -1
  314. package/lib/operations/v2/listDashboards.js +0 -66
  315. package/lib/operations/v2/listDashboards.js.map +0 -1
  316. package/lib/operations/v2/listGroups.d.ts +0 -20
  317. package/lib/operations/v2/listGroups.d.ts.map +0 -1
  318. package/lib/operations/v2/listGroups.js +0 -23
  319. package/lib/operations/v2/listGroups.js.map +0 -1
  320. package/lib/operations/v2/listRoles.d.ts +0 -49
  321. package/lib/operations/v2/listRoles.d.ts.map +0 -1
  322. package/lib/operations/v2/listRoles.js +0 -52
  323. package/lib/operations/v2/listRoles.js.map +0 -1
  324. package/lib/operations/v2/patchDashboardChart.d.ts +0 -183
  325. package/lib/operations/v2/patchDashboardChart.d.ts.map +0 -1
  326. package/lib/operations/v2/patchDashboardChart.js +0 -81
  327. package/lib/operations/v2/patchDashboardChart.js.map +0 -1
  328. package/lib/operations/v2/regenerateAPIToken.d.ts +0 -89
  329. package/lib/operations/v2/regenerateAPIToken.d.ts.map +0 -1
  330. package/lib/operations/v2/regenerateAPIToken.js +0 -96
  331. package/lib/operations/v2/regenerateAPIToken.js.map +0 -1
  332. package/lib/operations/v2/removeUserFromOrg.d.ts +0 -13
  333. package/lib/operations/v2/removeUserFromOrg.d.ts.map +0 -1
  334. package/lib/operations/v2/removeUserFromOrg.js +0 -19
  335. package/lib/operations/v2/removeUserFromOrg.js.map +0 -1
  336. package/lib/operations/v2/trimDataset.d.ts +0 -16
  337. package/lib/operations/v2/trimDataset.d.ts.map +0 -1
  338. package/lib/operations/v2/trimDataset.js +0 -22
  339. package/lib/operations/v2/trimDataset.js.map +0 -1
  340. package/lib/operations/v2/updateAnnotation.d.ts +0 -31
  341. package/lib/operations/v2/updateAnnotation.d.ts.map +0 -1
  342. package/lib/operations/v2/updateAnnotation.js +0 -36
  343. package/lib/operations/v2/updateAnnotation.js.map +0 -1
  344. package/lib/operations/v2/updateCurrentUser.d.ts +0 -20
  345. package/lib/operations/v2/updateCurrentUser.d.ts.map +0 -1
  346. package/lib/operations/v2/updateCurrentUser.js +0 -25
  347. package/lib/operations/v2/updateCurrentUser.js.map +0 -1
  348. package/lib/operations/v2/updateDashboard.d.ts +0 -332
  349. package/lib/operations/v2/updateDashboard.d.ts.map +0 -1
  350. package/lib/operations/v2/updateDashboard.js +0 -113
  351. package/lib/operations/v2/updateDashboard.js.map +0 -1
  352. package/lib/operations/v2/updateDataset.d.ts +0 -31
  353. package/lib/operations/v2/updateDataset.d.ts.map +0 -1
  354. package/lib/operations/v2/updateDataset.js +0 -41
  355. package/lib/operations/v2/updateDataset.js.map +0 -1
  356. package/lib/operations/v2/updateFieldForDataset.d.ts +0 -22
  357. package/lib/operations/v2/updateFieldForDataset.d.ts.map +0 -1
  358. package/lib/operations/v2/updateFieldForDataset.js +0 -32
  359. package/lib/operations/v2/updateFieldForDataset.js.map +0 -1
  360. package/lib/operations/v2/updateGroup.d.ts +0 -29
  361. package/lib/operations/v2/updateGroup.d.ts.map +0 -1
  362. package/lib/operations/v2/updateGroup.js +0 -34
  363. package/lib/operations/v2/updateGroup.js.map +0 -1
  364. package/lib/operations/v2/updateMapFields.d.ts +0 -10
  365. package/lib/operations/v2/updateMapFields.d.ts.map +0 -1
  366. package/lib/operations/v2/updateMapFields.js +0 -15
  367. package/lib/operations/v2/updateMapFields.js.map +0 -1
  368. package/lib/operations/v2/updateMonitor.d.ts +0 -67
  369. package/lib/operations/v2/updateMonitor.d.ts.map +0 -1
  370. package/lib/operations/v2/updateMonitor.js +0 -84
  371. package/lib/operations/v2/updateMonitor.js.map +0 -1
  372. package/lib/operations/v2/updateNotifier.d.ts +0 -96
  373. package/lib/operations/v2/updateNotifier.d.ts.map +0 -1
  374. package/lib/operations/v2/updateNotifier.js +0 -102
  375. package/lib/operations/v2/updateNotifier.js.map +0 -1
  376. package/lib/operations/v2/updateOrg.d.ts +0 -51
  377. package/lib/operations/v2/updateOrg.d.ts.map +0 -1
  378. package/lib/operations/v2/updateOrg.js +0 -72
  379. package/lib/operations/v2/updateOrg.js.map +0 -1
  380. package/lib/operations/v2/updateRole.d.ts +0 -87
  381. package/lib/operations/v2/updateRole.d.ts.map +0 -1
  382. package/lib/operations/v2/updateRole.js +0 -92
  383. package/lib/operations/v2/updateRole.js.map +0 -1
  384. package/lib/operations/v2/updateStarred.d.ts +0 -86
  385. package/lib/operations/v2/updateStarred.d.ts.map +0 -1
  386. package/lib/operations/v2/updateStarred.js +0 -101
  387. package/lib/operations/v2/updateStarred.js.map +0 -1
  388. package/lib/operations/v2/updateUserRole.d.ts +0 -22
  389. package/lib/operations/v2/updateUserRole.d.ts.map +0 -1
  390. package/lib/operations/v2/updateUserRole.js +0 -27
  391. package/lib/operations/v2/updateUserRole.js.map +0 -1
  392. package/lib/operations/v2/updateView.d.ts +0 -23
  393. package/lib/operations/v2/updateView.d.ts.map +0 -1
  394. package/lib/operations/v2/updateView.js +0 -28
  395. package/lib/operations/v2/updateView.js.map +0 -1
  396. package/lib/operations/v2/updateVirtualField.d.ts +0 -24
  397. package/lib/operations/v2/updateVirtualField.d.ts.map +0 -1
  398. package/lib/operations/v2/updateVirtualField.js +0 -31
  399. package/lib/operations/v2/updateVirtualField.js.map +0 -1
  400. package/lib/operations/v2/vacuumDataset.d.ts +0 -9
  401. package/lib/operations/v2/vacuumDataset.d.ts.map +0 -1
  402. package/lib/operations/v2/vacuumDataset.js +0 -14
  403. package/lib/operations/v2/vacuumDataset.js.map +0 -1
  404. package/lib/sensitive.d.ts +0 -5
  405. package/lib/sensitive.d.ts.map +0 -1
  406. package/lib/sensitive.js +0 -5
  407. package/lib/sensitive.js.map +0 -1
  408. package/src/category.ts +0 -4
  409. package/src/client.ts +0 -122
  410. package/src/operations/index.ts +0 -1
  411. package/src/operations/v1-edge-ingest/index.ts +0 -1
  412. package/src/operations/v1-edge-ingest/ingestToDataset.ts +0 -60
  413. package/src/operations/v1-edge-query/index.ts +0 -1
  414. package/src/operations/v1-edge-query/queryApl.ts +0 -134
  415. package/src/operations/v2/createAPIToken.ts +0 -272
  416. package/src/operations/v2/createAnnotation.ts +0 -58
  417. package/src/operations/v2/createDashboard.ts +0 -472
  418. package/src/operations/v2/createDataset.ts +0 -92
  419. package/src/operations/v2/createGroup.ts +0 -52
  420. package/src/operations/v2/createMapField.ts +0 -31
  421. package/src/operations/v2/createMonitor.ts +0 -160
  422. package/src/operations/v2/createNotifier.ts +0 -194
  423. package/src/operations/v2/createOrg.ts +0 -135
  424. package/src/operations/v2/createRole.ts +0 -276
  425. package/src/operations/v2/createStarred.ts +0 -203
  426. package/src/operations/v2/createUser.ts +0 -47
  427. package/src/operations/v2/createView.ts +0 -49
  428. package/src/operations/v2/createVirtualField.ts +0 -53
  429. package/src/operations/v2/deleteAPIToken.ts +0 -29
  430. package/src/operations/v2/deleteAnnotation.ts +0 -31
  431. package/src/operations/v2/deleteDashboard.ts +0 -31
  432. package/src/operations/v2/deleteDataset.ts +0 -29
  433. package/src/operations/v2/deleteGroup.ts +0 -33
  434. package/src/operations/v2/deleteMapField.ts +0 -31
  435. package/src/operations/v2/deleteMonitor.ts +0 -29
  436. package/src/operations/v2/deleteNotifier.ts +0 -29
  437. package/src/operations/v2/deleteRole.ts +0 -33
  438. package/src/operations/v2/deleteStarred.ts +0 -26
  439. package/src/operations/v2/deleteView.ts +0 -26
  440. package/src/operations/v2/deleteVirtualField.ts +0 -27
  441. package/src/operations/v2/getAPIToken.ts +0 -150
  442. package/src/operations/v2/getAPITokens.ts +0 -148
  443. package/src/operations/v2/getAnnotation.ts +0 -48
  444. package/src/operations/v2/getAnnotations.ts +0 -54
  445. package/src/operations/v2/getCurrentUser.ts +0 -37
  446. package/src/operations/v2/getDashboard.ts +0 -252
  447. package/src/operations/v2/getDataset.ts +0 -67
  448. package/src/operations/v2/getDatasets.ts +0 -65
  449. package/src/operations/v2/getFieldForDataset.ts +0 -44
  450. package/src/operations/v2/getFieldsForDataset.ts +0 -41
  451. package/src/operations/v2/getGroupById.ts +0 -46
  452. package/src/operations/v2/getMapFields.ts +0 -27
  453. package/src/operations/v2/getMonitor.ts +0 -99
  454. package/src/operations/v2/getMonitorHistory.ts +0 -47
  455. package/src/operations/v2/getMonitors.ts +0 -93
  456. package/src/operations/v2/getNotifier.ts +0 -117
  457. package/src/operations/v2/getNotifiers.ts +0 -111
  458. package/src/operations/v2/getOrg.ts +0 -135
  459. package/src/operations/v2/getOrgs.ts +0 -131
  460. package/src/operations/v2/getRoleById.ts +0 -158
  461. package/src/operations/v2/getStarred.ts +0 -117
  462. package/src/operations/v2/getStarredQueries.ts +0 -134
  463. package/src/operations/v2/getUser.ts +0 -43
  464. package/src/operations/v2/getUsers.ts +0 -39
  465. package/src/operations/v2/getView.ts +0 -39
  466. package/src/operations/v2/getViews.ts +0 -35
  467. package/src/operations/v2/getVirtualField.ts +0 -41
  468. package/src/operations/v2/getVirtualFields.ts +0 -41
  469. package/src/operations/v2/index.ts +0 -77
  470. package/src/operations/v2/listDashboards.ts +0 -254
  471. package/src/operations/v2/listGroups.ts +0 -40
  472. package/src/operations/v2/listRoles.ts +0 -156
  473. package/src/operations/v2/patchDashboardChart.ts +0 -275
  474. package/src/operations/v2/regenerateAPIToken.ts +0 -320
  475. package/src/operations/v2/removeUserFromOrg.ts +0 -29
  476. package/src/operations/v2/trimDataset.ts +0 -33
  477. package/src/operations/v2/updateAnnotation.ts +0 -62
  478. package/src/operations/v2/updateCurrentUser.ts +0 -42
  479. package/src/operations/v2/updateDashboard.ts +0 -472
  480. package/src/operations/v2/updateDataset.ts +0 -73
  481. package/src/operations/v2/updateFieldForDataset.ts +0 -54
  482. package/src/operations/v2/updateGroup.ts +0 -56
  483. package/src/operations/v2/updateMapFields.ts +0 -27
  484. package/src/operations/v2/updateMonitor.ts +0 -162
  485. package/src/operations/v2/updateNotifier.ts +0 -196
  486. package/src/operations/v2/updateOrg.ts +0 -137
  487. package/src/operations/v2/updateRole.ts +0 -280
  488. package/src/operations/v2/updateStarred.ts +0 -205
  489. package/src/operations/v2/updateUserRole.ts +0 -45
  490. package/src/operations/v2/updateView.ts +0 -51
  491. package/src/operations/v2/updateVirtualField.ts +0 -55
  492. package/src/operations/v2/vacuumDataset.ts +0 -24
  493. package/src/sensitive.ts +0 -4
package/src/index.ts CHANGED
@@ -1,21 +1,43 @@
1
1
  /**
2
- * Axiom SDK for Effect
2
+ * @distilled.cloud/axiom — Axiom SDK for Effect.
3
3
  *
4
- * The package root re-exports the v2 (control-plane) operations. The v1 edge
5
- * APIs are available under their own subpath imports:
4
+ * `./services` is generated by `scripts/generate.ts` from the Smithy models
5
+ * in `.generated-specs` (written by `scripts/convert.ts` from the three
6
+ * OpenAPI specs in specs/docs/restapi/versions). Everything else in this
7
+ * folder is hand-written.
8
+ *
9
+ * The v2 control-plane API lives under `Services.v2`; the v1 edge APIs are
10
+ * also available under their own subpath imports:
6
11
  *
7
12
  * @example
8
- * \`\`\`ts
9
- * import * as Operations from "@distilled.cloud/axiom";
13
+ * ```ts
14
+ * import * as Axiom from "@distilled.cloud/axiom";
10
15
  * import * as EdgeIngest from "@distilled.cloud/axiom/edge-ingest";
11
16
  * import * as EdgeQuery from "@distilled.cloud/axiom/edge-query";
12
- * \`\`\`
17
+ *
18
+ * const datasets = yield* Axiom.Services.v2.getDatasets({});
19
+ * ```
13
20
  */
14
21
  export * from "./credentials.ts";
15
- export * as Category from "./category.ts";
22
+ export * from "./errors.ts";
16
23
  export * as T from "./traits.ts";
24
+ export {
25
+ AxiomProtocol,
26
+ stripNulls,
27
+ type AxiomOpError,
28
+ type AxiomOpContext,
29
+ } from "./protocol.ts";
17
30
  export * as Retry from "./retry.ts";
18
- export { API } from "./client.ts";
19
- export * from "./errors.ts";
20
- export { SensitiveString, SensitiveNullableString } from "./sensitive.ts";
21
- export * from "./operations/index.ts";
31
+ export * as Services from "./services/index.ts";
32
+ // v0-parity surface: the v2 control-plane operations live on the package
33
+ // root (edge-ingest / edge-query stay behind their subpath exports).
34
+ // The service-local typed error classes shadow the same-named shared ones
35
+ // from ./errors.ts — the ops actually raise the service-local classes.
36
+ export * from "./services/v2.ts";
37
+ export {
38
+ BadRequest,
39
+ Conflict,
40
+ Forbidden,
41
+ NotFound,
42
+ UnprocessableEntity,
43
+ } from "./services/v2.ts";
@@ -0,0 +1,111 @@
1
+ /**
2
+ * AxiomProtocol — hand-written.
3
+ *
4
+ * Axiom speaks plain bearer-authenticated JSON REST (no response envelope),
5
+ * so the whole protocol is one `makeRestProtocol` call from
6
+ * `core/protocol-rest`:
7
+ *
8
+ * request: credentials → `Authorization: Bearer <apiKey>` (+ optional
9
+ * `X-Axiom-Org-ID` for Personal Access Tokens) + base URL
10
+ * (default https://api.axiom.co), resolved from the calling
11
+ * fiber on every request
12
+ *
13
+ * response: 2xx JSON is the payload, with explicit JSON `null` properties
14
+ * recursively dropped first ({@link stripNulls} — Axiom's Go
15
+ * backend serializes nil slices/omitted optionals as `null`);
16
+ * non-2xx bodies map to the operation's typed error classes by
17
+ * status, then the shared HTTP-status classes, then
18
+ * {@link UnknownAxiomError}. Axiom returns two error envelope
19
+ * shapes — `{ code, message }` (control-plane / edge-ingest) and
20
+ * `{ error, message }` (edge-query) — unified by a lenient
21
+ * extractor; the HTTP status stays the authoritative signal.
22
+ */
23
+ import * as Effect from "effect/Effect";
24
+ import type * as Layer from "effect/Layer";
25
+ import * as Redacted from "effect/Redacted";
26
+ import type * as HttpClient from "effect/unstable/http/HttpClient";
27
+ import type * as HttpClientError from "effect/unstable/http/HttpClientError";
28
+ import type * as API from "@distilled.cloud/core/api";
29
+ import {
30
+ makeRestProtocol,
31
+ type RestErrorEnvelope,
32
+ } from "@distilled.cloud/core/protocol-rest";
33
+ import type { API_ERRORS, ConfigError } from "@distilled.cloud/core/errors";
34
+ import { Credentials, type Config } from "./credentials.ts";
35
+ import { UnknownAxiomError } from "./errors.ts";
36
+
37
+ /**
38
+ * Error channel shared by every generated Axiom operation. Generated service
39
+ * files annotate operations with `API.OperationMethod<I, O, AxiomOpError,
40
+ * AxiomOpContext>` explicitly so the compiler never infers these back out of
41
+ * the schema generics.
42
+ */
43
+ export type AxiomOpError =
44
+ | InstanceType<(typeof API_ERRORS)[number]>
45
+ | UnknownAxiomError
46
+ | ConfigError
47
+ | HttpClientError.HttpClientError;
48
+
49
+ /** Context (requirements) shared by every generated Axiom operation. */
50
+ export type AxiomOpContext = Credentials | HttpClient.HttpClient;
51
+
52
+ /**
53
+ * Axiom's backend (Go) serializes nil slices and omitted optional fields as
54
+ * JSON `null`. The generated output schemas model these as optional members
55
+ * (value or absent), so `null` trips decoding. Recursively drop explicit
56
+ * `null` properties before decoding so optional fields are treated as
57
+ * absent. Keys that are genuinely nullable in the API are patched to
58
+ * nullable in the spec — this hook exists for the far more common "Go nil
59
+ * slice" case.
60
+ */
61
+ export const stripNulls = (value: unknown): unknown => {
62
+ if (Array.isArray(value)) return value.map(stripNulls);
63
+ if (value && typeof value === "object") {
64
+ const out: Record<string, unknown> = {};
65
+ for (const [k, v] of Object.entries(value as Record<string, unknown>)) {
66
+ if (v === null) continue;
67
+ out[k] = stripNulls(v);
68
+ }
69
+ return out;
70
+ }
71
+ return value;
72
+ };
73
+
74
+ /**
75
+ * Unify Axiom's two error envelope shapes (`{ code, message }` and
76
+ * `{ error, message }`, some endpoints plain `{ message }`) into one
77
+ * `{ code?, message? }` pair — v0 semantics: `message ?? error`,
78
+ * `code ?? error`.
79
+ */
80
+ const errorEnvelope = (body: unknown): RestErrorEnvelope | undefined => {
81
+ if (body === null || typeof body !== "object") return undefined;
82
+ const b = body as Record<string, unknown>;
83
+ const error = typeof b.error === "string" ? b.error : undefined;
84
+ const code =
85
+ typeof b.code === "string" || typeof b.code === "number" ? b.code : error;
86
+ const message = typeof b.message === "string" ? b.message : error;
87
+ return { code, message };
88
+ };
89
+
90
+ export const AxiomProtocol: Layer.Layer<API.Protocol> =
91
+ makeRestProtocol<Config>({
92
+ // The Credentials service holds an effect — resolving it here (per
93
+ // request, on the calling fiber) picks up context-provided credentials.
94
+ credentials: Effect.gen(function* () {
95
+ const resolve = yield* Credentials;
96
+ return yield* resolve;
97
+ }),
98
+ baseUrl: (creds) => creds.apiBaseUrl,
99
+ headers: (creds) => ({
100
+ Authorization: `Bearer ${Redacted.value(creds.apiKey)}`,
101
+ ...(creds.orgId ? { "X-Axiom-Org-ID": creds.orgId } : {}),
102
+ }),
103
+ errorEnvelope,
104
+ transformResponse: stripNulls,
105
+ unknownError: ({ code, message, body }) =>
106
+ new UnknownAxiomError({
107
+ code: typeof code === "number" ? String(code) : code,
108
+ message,
109
+ body,
110
+ }),
111
+ });
package/src/retry.ts CHANGED
@@ -1,10 +1,9 @@
1
1
  /**
2
2
  * Axiom retry configuration.
3
3
  *
4
- * Defines the per-SDK `Retry` Context.Service tag that
5
- * `packages/axiom/src/client.ts` wires into `makeAPI`. Callers can
6
- * install a blanket retry policy at the layer level and have every
7
- * Axiom API call below it pick it up:
4
+ * Defines the per-SDK `Retry` Context.Service tag that generated operations
5
+ * wire into `API.make`. Callers can install a blanket retry policy at the
6
+ * layer level and have every Axiom API call below it pick it up:
8
7
  *
9
8
  * @example
10
9
  * ```ts
@@ -0,0 +1,122 @@
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/docs restapi/versions). Do not edit.
2
+ import * as S from "@distilled.cloud/core/schema";
3
+ import * as API from "@distilled.cloud/core/api";
4
+ import * as C from "@distilled.cloud/core/category";
5
+ import * as T from "../traits.ts";
6
+ import {
7
+ AxiomProtocol,
8
+ type AxiomOpError,
9
+ type AxiomOpContext,
10
+ } from "../protocol.ts";
11
+ import { UnknownAxiomError } from "../errors.ts";
12
+ import * as Retry from "../retry.ts";
13
+
14
+ export type { AxiomOpError, AxiomOpContext };
15
+
16
+ export class BadRequest
17
+ extends /*@__PURE__*/ T.applyErrorMatchers(
18
+ /*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
19
+ code: S.Number,
20
+ message: S.String,
21
+ }).pipe(C.withBadRequestError),
22
+ [{ status: 400 }],
23
+ ) {}
24
+
25
+ export class NotFound
26
+ extends /*@__PURE__*/ T.applyErrorMatchers(
27
+ /*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
28
+ code: S.Number,
29
+ message: S.String,
30
+ }).pipe(C.withBadRequestError),
31
+ [{ status: 404 }],
32
+ ) {}
33
+
34
+ export class UnprocessableEntity
35
+ extends /*@__PURE__*/ T.applyErrorMatchers(
36
+ /*@__PURE__*/ S.TaggedError<UnprocessableEntity>()("UnprocessableEntity", {
37
+ code: S.Number,
38
+ message: S.String,
39
+ }).pipe(C.withBadRequestError),
40
+ [{ status: 422 }],
41
+ ) {}
42
+
43
+ export interface IngestToDatasetRequest {
44
+ dataset_id: string;
45
+ /** The name of the field to use as the timestamp. If not specified, the timestamp will be the time the event was received by Axiom. */
46
+ timestamp_field?: string;
47
+ /** The date-time format of the timestamp field. The reference time is `Mon Jan 2 15:04:05 -0700 MST 2006`, as specified in https://pkg.go.dev/time/?tab=doc#Parse */
48
+ timestamp_format?: string;
49
+ /** The delimiter to use when parsing CSV data. If not specified, the default delimiter is `,`. */
50
+ csv_delimiter?: string;
51
+ body: string;
52
+ }
53
+ export const IngestToDatasetRequest = /*@__PURE__*/ S.suspend(() =>
54
+ S.Struct({
55
+ dataset_id: S.String.pipe(T.Label()),
56
+ timestamp_field: S.optional(S.String.pipe(T.Query("timestamp-field"))),
57
+ timestamp_format: S.optional(S.String.pipe(T.Query("timestamp-format"))),
58
+ csv_delimiter: S.optional(S.String.pipe(T.Query("csv-delimiter"))),
59
+ body: S.String.pipe(T.HttpBody()),
60
+ }).pipe(
61
+ T.Http({
62
+ method: "POST",
63
+ uri: "/v1/datasets/{dataset_id}/ingest",
64
+ code: 200,
65
+ }),
66
+ ),
67
+ ).annotate({
68
+ identifier: "IngestToDatasetRequest",
69
+ }) as any as S.Schema<IngestToDatasetRequest>;
70
+
71
+ export interface IngestFailure {
72
+ error: string;
73
+ timestamp: string;
74
+ }
75
+ export const IngestFailure = /*@__PURE__*/ S.suspend(() =>
76
+ S.Struct({
77
+ error: S.String,
78
+ timestamp: S.String,
79
+ }),
80
+ ).annotate({ identifier: "IngestFailure" }) as any as S.Schema<IngestFailure>;
81
+
82
+ export type IngestStatusFailuresList = Array<IngestFailure>;
83
+ export const IngestStatusFailuresList = /*@__PURE__*/ S.Array(
84
+ IngestFailure,
85
+ ) as any as S.Schema<IngestStatusFailuresList>;
86
+
87
+ export interface IngestStatus {
88
+ blocksCreated: number;
89
+ failed: number;
90
+ failures?: IngestStatusFailuresList;
91
+ ingested: number;
92
+ processedBytes: number;
93
+ walLength: number;
94
+ }
95
+ export const IngestStatus = /*@__PURE__*/ S.suspend(() =>
96
+ S.Struct({
97
+ blocksCreated: S.Number,
98
+ failed: S.Number,
99
+ failures: S.optional(IngestStatusFailuresList),
100
+ ingested: S.Number,
101
+ processedBytes: S.Number,
102
+ walLength: S.Number,
103
+ }),
104
+ ).annotate({ identifier: "IngestStatus" }) as any as S.Schema<IngestStatus>;
105
+
106
+ export type IngestToDatasetError =
107
+ | BadRequest
108
+ | NotFound
109
+ | UnprocessableEntity
110
+ | AxiomOpError;
111
+ export const ingestToDataset: API.OperationMethod<
112
+ IngestToDatasetRequest,
113
+ IngestStatus,
114
+ IngestToDatasetError,
115
+ AxiomOpContext
116
+ > = /*@__PURE__*/ API.make(() => ({
117
+ input: IngestToDatasetRequest,
118
+ output: IngestStatus,
119
+ errors: [BadRequest, NotFound, UnprocessableEntity, UnknownAxiomError],
120
+ protocol: AxiomProtocol,
121
+ retry: Retry.Retry,
122
+ }));
@@ -0,0 +1,197 @@
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/docs restapi/versions). Do not edit.
2
+ import * as S from "@distilled.cloud/core/schema";
3
+ import * as API from "@distilled.cloud/core/api";
4
+ import * as T from "../traits.ts";
5
+ import {
6
+ AxiomProtocol,
7
+ type AxiomOpError,
8
+ type AxiomOpContext,
9
+ } from "../protocol.ts";
10
+ import { UnknownAxiomError } from "../errors.ts";
11
+ import * as Retry from "../retry.ts";
12
+
13
+ export type { AxiomOpError, AxiomOpContext };
14
+
15
+ export type QueryAplRequestFormat = "legacy" | "tabular" | "tabular-rows";
16
+ export const QueryAplRequestFormat = S.String;
17
+
18
+ export interface QueryAplRequestDefaultOrderItem {
19
+ desc?: boolean;
20
+ field?: string;
21
+ }
22
+ export const QueryAplRequestDefaultOrderItem = /*@__PURE__*/ S.suspend(() =>
23
+ S.Struct({
24
+ desc: S.optional(S.Boolean),
25
+ field: S.optional(S.String),
26
+ }),
27
+ ).annotate({
28
+ identifier: "QueryAplRequestDefaultOrderItem",
29
+ }) as any as S.Schema<QueryAplRequestDefaultOrderItem>;
30
+
31
+ /** The default order to use when no order is specified in the query. */
32
+ export type QueryAplRequestDefaultOrderList =
33
+ Array<QueryAplRequestDefaultOrderItem>;
34
+ export const QueryAplRequestDefaultOrderList = /*@__PURE__*/ S.Array(
35
+ QueryAplRequestDefaultOrderItem,
36
+ ) as any as S.Schema<QueryAplRequestDefaultOrderList>;
37
+
38
+ export type QueryAplRequestLibrariesList = Array<string>;
39
+ export const QueryAplRequestLibrariesList = /*@__PURE__*/ S.Array(
40
+ S.String,
41
+ ) as any as S.Schema<QueryAplRequestLibrariesList>;
42
+
43
+ export interface QueryOptions {
44
+ against?: string;
45
+ againstStart?: string;
46
+ againstTimestamp?: string;
47
+ aggChartOpts?: string;
48
+ caseSensitive?: string;
49
+ containsTimeFilter?: string;
50
+ datasets?: string;
51
+ displayNull?: string;
52
+ editorContent?: string;
53
+ endColumn?: string;
54
+ endLineNumber?: string;
55
+ endTime?: string;
56
+ integrationsFilter?: string;
57
+ nanosecondPrecision?: string;
58
+ openIntervals?: string;
59
+ overlayCharts?: string;
60
+ queryObject?: string;
61
+ quickRange?: string;
62
+ resolution?: string;
63
+ resultsHistogram?: string;
64
+ selection?: string;
65
+ shownColumns?: string;
66
+ startColumn?: string;
67
+ startLineNumber?: string;
68
+ startTime?: string;
69
+ timeSeriesVariant?: string;
70
+ timeSeriesView?: string;
71
+ }
72
+ export const QueryOptions = /*@__PURE__*/ S.suspend(() =>
73
+ S.Struct({
74
+ against: S.optional(S.String),
75
+ againstStart: S.optional(S.String),
76
+ againstTimestamp: S.optional(S.String),
77
+ aggChartOpts: S.optional(S.String),
78
+ caseSensitive: S.optional(S.String),
79
+ containsTimeFilter: S.optional(S.String),
80
+ datasets: S.optional(S.String),
81
+ displayNull: S.optional(S.String),
82
+ editorContent: S.optional(S.String),
83
+ endColumn: S.optional(S.String),
84
+ endLineNumber: S.optional(S.String),
85
+ endTime: S.optional(S.String),
86
+ integrationsFilter: S.optional(S.String),
87
+ nanosecondPrecision: S.optional(S.String),
88
+ openIntervals: S.optional(S.String),
89
+ overlayCharts: S.optional(S.String),
90
+ queryObject: S.optional(S.String),
91
+ quickRange: S.optional(S.String),
92
+ resolution: S.optional(S.String),
93
+ resultsHistogram: S.optional(S.String),
94
+ selection: S.optional(S.String),
95
+ shownColumns: S.optional(S.String),
96
+ startColumn: S.optional(S.String),
97
+ startLineNumber: S.optional(S.String),
98
+ startTime: S.optional(S.String),
99
+ timeSeriesVariant: S.optional(S.String),
100
+ timeSeriesView: S.optional(S.String),
101
+ }),
102
+ ).annotate({ identifier: "QueryOptions" }) as any as S.Schema<QueryOptions>;
103
+
104
+ /** Variables is an optional set of additional variables that are inserted into the APL */
105
+ export type QueryAplRequestVariablesMap = {
106
+ [key: string]: unknown | undefined;
107
+ };
108
+ export const QueryAplRequestVariablesMap = /*@__PURE__*/ S.Record(
109
+ S.String,
110
+ S.Unknown,
111
+ ) as any as S.Schema<QueryAplRequestVariablesMap>;
112
+
113
+ export interface QueryAplRequest {
114
+ format: QueryAplRequestFormat | (string & {});
115
+ nocache?: boolean;
116
+ saveAsKind?: string;
117
+ /** when saveAsKind is true, this parameter indicates the id of the associated dataset */
118
+ id?: string;
119
+ streaming_duration?: string;
120
+ /** contains the source of the APL query (for example console, dashboard, etc.) */
121
+ apl_source?: string;
122
+ /** contains the id of the source, for example dashboard_id */
123
+ apl_source_id?: string;
124
+ /** Include a totals table (only supported in MetricsDB) */
125
+ totals?: boolean;
126
+ /** APL query string */
127
+ apl: string;
128
+ /** Pagination cursor */
129
+ cursor?: string;
130
+ /** The default limit to use when no limit is specified in the query. */
131
+ defaultLimit?: number;
132
+ /** The default order to use when no order is specified in the query. */
133
+ defaultOrder?: QueryAplRequestDefaultOrderList;
134
+ /** End time for the query range */
135
+ endTime?: string;
136
+ /** Include cursor in response */
137
+ includeCursor?: boolean;
138
+ /** Defines if the _cursor field should be projected in the result */
139
+ includeCursorField?: boolean;
140
+ libraries?: QueryAplRequestLibrariesList;
141
+ /** Maximum number of groups to automatically bin into */
142
+ maxBinAutoGroups?: number;
143
+ queryOptions?: QueryOptions;
144
+ /** start and end time for the query, these must be specified as RFC3339 strings or using relative time expressions (e.g. now-1h, now-1d, now-1w, etc) */
145
+ startTime?: string;
146
+ /** Variables is an optional set of additional variables that are inserted into the APL */
147
+ variables?: QueryAplRequestVariablesMap;
148
+ }
149
+ export const QueryAplRequest = /*@__PURE__*/ S.suspend(() =>
150
+ S.Struct({
151
+ format: QueryAplRequestFormat.pipe(T.Query()),
152
+ nocache: S.optional(S.Boolean.pipe(T.Query())),
153
+ saveAsKind: S.optional(S.String.pipe(T.Query())),
154
+ id: S.optional(S.String.pipe(T.Query())),
155
+ streaming_duration: S.optional(
156
+ S.String.pipe(T.Query("streaming-duration")),
157
+ ),
158
+ apl_source: S.optional(S.String.pipe(T.Query("apl-source"))),
159
+ apl_source_id: S.optional(S.String.pipe(T.Query("apl-source-id"))),
160
+ totals: S.optional(S.Boolean.pipe(T.Query())),
161
+ apl: S.String,
162
+ cursor: S.optional(S.String),
163
+ defaultLimit: S.optional(S.Number),
164
+ defaultOrder: S.optional(QueryAplRequestDefaultOrderList),
165
+ endTime: S.optional(S.String),
166
+ includeCursor: S.optional(S.Boolean),
167
+ includeCursorField: S.optional(S.Boolean),
168
+ libraries: S.optional(QueryAplRequestLibrariesList),
169
+ maxBinAutoGroups: S.optional(S.Number),
170
+ queryOptions: S.optional(QueryOptions),
171
+ startTime: S.optional(S.String),
172
+ variables: S.optional(QueryAplRequestVariablesMap),
173
+ }).pipe(T.Http({ method: "POST", uri: "/v1/datasets/_apl", code: 200 })),
174
+ ).annotate({
175
+ identifier: "QueryAplRequest",
176
+ }) as any as S.Schema<QueryAplRequest>;
177
+
178
+ export type QueryAplResponse = unknown;
179
+ export const QueryAplResponse = /*@__PURE__*/ S.suspend(() =>
180
+ S.Unknown.pipe(T.RawResponseRoot()),
181
+ ).annotate({
182
+ identifier: "QueryAplResponse",
183
+ }) as any as S.Schema<QueryAplResponse>;
184
+
185
+ export type QueryAplError = AxiomOpError;
186
+ export const queryApl: API.OperationMethod<
187
+ QueryAplRequest,
188
+ QueryAplResponse,
189
+ QueryAplError,
190
+ AxiomOpContext
191
+ > = /*@__PURE__*/ API.make(() => ({
192
+ input: QueryAplRequest,
193
+ output: QueryAplResponse,
194
+ errors: [UnknownAxiomError],
195
+ protocol: AxiomProtocol,
196
+ retry: Retry.Retry,
197
+ }));
@@ -0,0 +1,4 @@
1
+ // AUTO-GENERATED by scripts/generate.ts. Do not edit.
2
+ export * as edge_ingest from "./edge_ingest.ts";
3
+ export * as edge_query from "./edge_query.ts";
4
+ export * as v2 from "./v2.ts";