@distilled.cloud/axiom 0.30.2 → 1.0.0-rc.1

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 (472) hide show
  1. package/package.json +37 -43
  2. package/src/credentials.ts +27 -2
  3. package/src/edge-ingest.ts +6 -1
  4. package/src/edge-query.ts +6 -1
  5. package/src/errors.ts +7 -4
  6. package/src/index.ts +33 -11
  7. package/src/protocol.ts +111 -0
  8. package/src/retry.ts +3 -4
  9. package/src/services/edge_ingest.ts +124 -0
  10. package/src/services/edge_query.ts +197 -0
  11. package/src/services/index.ts +4 -0
  12. package/src/services/v2.ts +6647 -0
  13. package/src/traits.ts +42 -2
  14. package/README.md +0 -70
  15. package/lib/category.d.ts +0 -5
  16. package/lib/category.d.ts.map +0 -1
  17. package/lib/category.js +0 -5
  18. package/lib/category.js.map +0 -1
  19. package/lib/client.d.ts +0 -11
  20. package/lib/client.d.ts.map +0 -1
  21. package/lib/client.js +0 -108
  22. package/lib/client.js.map +0 -1
  23. package/lib/credentials.d.ts +0 -30
  24. package/lib/credentials.d.ts.map +0 -1
  25. package/lib/credentials.js +0 -43
  26. package/lib/credentials.js.map +0 -1
  27. package/lib/edge-ingest.d.ts +0 -2
  28. package/lib/edge-ingest.d.ts.map +0 -1
  29. package/lib/edge-ingest.js +0 -2
  30. package/lib/edge-ingest.js.map +0 -1
  31. package/lib/edge-query.d.ts +0 -2
  32. package/lib/edge-query.d.ts.map +0 -1
  33. package/lib/edge-query.js +0 -2
  34. package/lib/edge-query.js.map +0 -1
  35. package/lib/errors.d.ts +0 -31
  36. package/lib/errors.d.ts.map +0 -1
  37. package/lib/errors.js +0 -23
  38. package/lib/errors.js.map +0 -1
  39. package/lib/index.d.ts +0 -22
  40. package/lib/index.d.ts.map +0 -1
  41. package/lib/index.js +0 -22
  42. package/lib/index.js.map +0 -1
  43. package/lib/operations/index.d.ts +0 -2
  44. package/lib/operations/index.d.ts.map +0 -1
  45. package/lib/operations/index.js +0 -2
  46. package/lib/operations/index.js.map +0 -1
  47. package/lib/operations/v1-edge-ingest/index.d.ts +0 -2
  48. package/lib/operations/v1-edge-ingest/index.d.ts.map +0 -1
  49. package/lib/operations/v1-edge-ingest/index.js +0 -2
  50. package/lib/operations/v1-edge-ingest/index.js.map +0 -1
  51. package/lib/operations/v1-edge-ingest/ingestToDataset.d.ts +0 -31
  52. package/lib/operations/v1-edge-ingest/ingestToDataset.d.ts.map +0 -1
  53. package/lib/operations/v1-edge-ingest/ingestToDataset.js +0 -36
  54. package/lib/operations/v1-edge-ingest/ingestToDataset.js.map +0 -1
  55. package/lib/operations/v1-edge-query/index.d.ts +0 -2
  56. package/lib/operations/v1-edge-query/index.d.ts.map +0 -1
  57. package/lib/operations/v1-edge-query/index.js +0 -2
  58. package/lib/operations/v1-edge-query/index.js.map +0 -1
  59. package/lib/operations/v1-edge-query/queryApl.d.ts +0 -66
  60. package/lib/operations/v1-edge-query/queryApl.d.ts.map +0 -1
  61. package/lib/operations/v1-edge-query/queryApl.js +0 -71
  62. package/lib/operations/v1-edge-query/queryApl.js.map +0 -1
  63. package/lib/operations/v2/createAPIToken.d.ts +0 -84
  64. package/lib/operations/v2/createAPIToken.d.ts.map +0 -1
  65. package/lib/operations/v2/createAPIToken.js +0 -89
  66. package/lib/operations/v2/createAPIToken.js.map +0 -1
  67. package/lib/operations/v2/createAnnotation.d.ts +0 -28
  68. package/lib/operations/v2/createAnnotation.d.ts.map +0 -1
  69. package/lib/operations/v2/createAnnotation.js +0 -33
  70. package/lib/operations/v2/createAnnotation.js.map +0 -1
  71. package/lib/operations/v2/createDashboard.d.ts +0 -332
  72. package/lib/operations/v2/createDashboard.d.ts.map +0 -1
  73. package/lib/operations/v2/createDashboard.js +0 -113
  74. package/lib/operations/v2/createDashboard.js.map +0 -1
  75. package/lib/operations/v2/createDataset.d.ts +0 -36
  76. package/lib/operations/v2/createDataset.d.ts.map +0 -1
  77. package/lib/operations/v2/createDataset.js +0 -51
  78. package/lib/operations/v2/createDataset.js.map +0 -1
  79. package/lib/operations/v2/createGroup.d.ts +0 -26
  80. package/lib/operations/v2/createGroup.d.ts.map +0 -1
  81. package/lib/operations/v2/createGroup.js +0 -31
  82. package/lib/operations/v2/createGroup.js.map +0 -1
  83. package/lib/operations/v2/createMapField.d.ts +0 -13
  84. package/lib/operations/v2/createMapField.d.ts.map +0 -1
  85. package/lib/operations/v2/createMapField.js +0 -18
  86. package/lib/operations/v2/createMapField.js.map +0 -1
  87. package/lib/operations/v2/createMonitor.d.ts +0 -66
  88. package/lib/operations/v2/createMonitor.d.ts.map +0 -1
  89. package/lib/operations/v2/createMonitor.js +0 -83
  90. package/lib/operations/v2/createMonitor.js.map +0 -1
  91. package/lib/operations/v2/createNotifier.d.ts +0 -95
  92. package/lib/operations/v2/createNotifier.d.ts.map +0 -1
  93. package/lib/operations/v2/createNotifier.js +0 -101
  94. package/lib/operations/v2/createNotifier.js.map +0 -1
  95. package/lib/operations/v2/createOrg.d.ts +0 -50
  96. package/lib/operations/v2/createOrg.d.ts.map +0 -1
  97. package/lib/operations/v2/createOrg.js +0 -70
  98. package/lib/operations/v2/createOrg.js.map +0 -1
  99. package/lib/operations/v2/createRole.d.ts +0 -84
  100. package/lib/operations/v2/createRole.d.ts.map +0 -1
  101. package/lib/operations/v2/createRole.js +0 -89
  102. package/lib/operations/v2/createRole.js.map +0 -1
  103. package/lib/operations/v2/createStarred.d.ts +0 -85
  104. package/lib/operations/v2/createStarred.d.ts.map +0 -1
  105. package/lib/operations/v2/createStarred.js +0 -100
  106. package/lib/operations/v2/createStarred.js.map +0 -1
  107. package/lib/operations/v2/createUser.d.ts +0 -23
  108. package/lib/operations/v2/createUser.d.ts.map +0 -1
  109. package/lib/operations/v2/createUser.js +0 -28
  110. package/lib/operations/v2/createUser.js.map +0 -1
  111. package/lib/operations/v2/createView.d.ts +0 -22
  112. package/lib/operations/v2/createView.d.ts.map +0 -1
  113. package/lib/operations/v2/createView.js +0 -27
  114. package/lib/operations/v2/createView.js.map +0 -1
  115. package/lib/operations/v2/createVirtualField.d.ts +0 -23
  116. package/lib/operations/v2/createVirtualField.d.ts.map +0 -1
  117. package/lib/operations/v2/createVirtualField.js +0 -30
  118. package/lib/operations/v2/createVirtualField.js.map +0 -1
  119. package/lib/operations/v2/deleteAPIToken.d.ts +0 -13
  120. package/lib/operations/v2/deleteAPIToken.d.ts.map +0 -1
  121. package/lib/operations/v2/deleteAPIToken.js +0 -19
  122. package/lib/operations/v2/deleteAPIToken.js.map +0 -1
  123. package/lib/operations/v2/deleteAnnotation.d.ts +0 -15
  124. package/lib/operations/v2/deleteAnnotation.d.ts.map +0 -1
  125. package/lib/operations/v2/deleteAnnotation.js +0 -21
  126. package/lib/operations/v2/deleteAnnotation.js.map +0 -1
  127. package/lib/operations/v2/deleteDashboard.d.ts +0 -15
  128. package/lib/operations/v2/deleteDashboard.d.ts.map +0 -1
  129. package/lib/operations/v2/deleteDashboard.js +0 -21
  130. package/lib/operations/v2/deleteDashboard.js.map +0 -1
  131. package/lib/operations/v2/deleteDataset.d.ts +0 -13
  132. package/lib/operations/v2/deleteDataset.d.ts.map +0 -1
  133. package/lib/operations/v2/deleteDataset.js +0 -19
  134. package/lib/operations/v2/deleteDataset.js.map +0 -1
  135. package/lib/operations/v2/deleteGroup.d.ts +0 -17
  136. package/lib/operations/v2/deleteGroup.d.ts.map +0 -1
  137. package/lib/operations/v2/deleteGroup.js +0 -23
  138. package/lib/operations/v2/deleteGroup.js.map +0 -1
  139. package/lib/operations/v2/deleteMapField.d.ts +0 -11
  140. package/lib/operations/v2/deleteMapField.d.ts.map +0 -1
  141. package/lib/operations/v2/deleteMapField.js +0 -20
  142. package/lib/operations/v2/deleteMapField.js.map +0 -1
  143. package/lib/operations/v2/deleteMonitor.d.ts +0 -13
  144. package/lib/operations/v2/deleteMonitor.d.ts.map +0 -1
  145. package/lib/operations/v2/deleteMonitor.js +0 -19
  146. package/lib/operations/v2/deleteMonitor.js.map +0 -1
  147. package/lib/operations/v2/deleteNotifier.d.ts +0 -13
  148. package/lib/operations/v2/deleteNotifier.d.ts.map +0 -1
  149. package/lib/operations/v2/deleteNotifier.js +0 -19
  150. package/lib/operations/v2/deleteNotifier.js.map +0 -1
  151. package/lib/operations/v2/deleteRole.d.ts +0 -17
  152. package/lib/operations/v2/deleteRole.d.ts.map +0 -1
  153. package/lib/operations/v2/deleteRole.js +0 -23
  154. package/lib/operations/v2/deleteRole.js.map +0 -1
  155. package/lib/operations/v2/deleteStarred.d.ts +0 -10
  156. package/lib/operations/v2/deleteStarred.d.ts.map +0 -1
  157. package/lib/operations/v2/deleteStarred.js +0 -16
  158. package/lib/operations/v2/deleteStarred.js.map +0 -1
  159. package/lib/operations/v2/deleteView.d.ts +0 -10
  160. package/lib/operations/v2/deleteView.d.ts.map +0 -1
  161. package/lib/operations/v2/deleteView.js +0 -16
  162. package/lib/operations/v2/deleteView.js.map +0 -1
  163. package/lib/operations/v2/deleteVirtualField.d.ts +0 -10
  164. package/lib/operations/v2/deleteVirtualField.d.ts.map +0 -1
  165. package/lib/operations/v2/deleteVirtualField.js +0 -17
  166. package/lib/operations/v2/deleteVirtualField.js.map +0 -1
  167. package/lib/operations/v2/getAPIToken.d.ts +0 -50
  168. package/lib/operations/v2/getAPIToken.d.ts.map +0 -1
  169. package/lib/operations/v2/getAPIToken.js +0 -55
  170. package/lib/operations/v2/getAPIToken.js.map +0 -1
  171. package/lib/operations/v2/getAPITokens.d.ts +0 -48
  172. package/lib/operations/v2/getAPITokens.d.ts.map +0 -1
  173. package/lib/operations/v2/getAPITokens.js +0 -51
  174. package/lib/operations/v2/getAPITokens.js.map +0 -1
  175. package/lib/operations/v2/getAnnotation.d.ts +0 -24
  176. package/lib/operations/v2/getAnnotation.d.ts.map +0 -1
  177. package/lib/operations/v2/getAnnotation.js +0 -29
  178. package/lib/operations/v2/getAnnotation.js.map +0 -1
  179. package/lib/operations/v2/getAnnotations.d.ts +0 -27
  180. package/lib/operations/v2/getAnnotations.d.ts.map +0 -1
  181. package/lib/operations/v2/getAnnotations.js +0 -31
  182. package/lib/operations/v2/getAnnotations.js.map +0 -1
  183. package/lib/operations/v2/getCurrentUser.d.ts +0 -19
  184. package/lib/operations/v2/getCurrentUser.d.ts.map +0 -1
  185. package/lib/operations/v2/getCurrentUser.js +0 -22
  186. package/lib/operations/v2/getCurrentUser.js.map +0 -1
  187. package/lib/operations/v2/getDashboard.d.ts +0 -174
  188. package/lib/operations/v2/getDashboard.d.ts.map +0 -1
  189. package/lib/operations/v2/getDashboard.js +0 -67
  190. package/lib/operations/v2/getDashboard.js.map +0 -1
  191. package/lib/operations/v2/getDataset.d.ts +0 -28
  192. package/lib/operations/v2/getDataset.d.ts.map +0 -1
  193. package/lib/operations/v2/getDataset.js +0 -38
  194. package/lib/operations/v2/getDataset.js.map +0 -1
  195. package/lib/operations/v2/getDatasets.d.ts +0 -27
  196. package/lib/operations/v2/getDatasets.d.ts.map +0 -1
  197. package/lib/operations/v2/getDatasets.js +0 -36
  198. package/lib/operations/v2/getDatasets.js.map +0 -1
  199. package/lib/operations/v2/getFieldForDataset.d.ts +0 -17
  200. package/lib/operations/v2/getFieldForDataset.d.ts.map +0 -1
  201. package/lib/operations/v2/getFieldForDataset.js +0 -27
  202. package/lib/operations/v2/getFieldForDataset.js.map +0 -1
  203. package/lib/operations/v2/getFieldsForDataset.d.ts +0 -16
  204. package/lib/operations/v2/getFieldsForDataset.d.ts.map +0 -1
  205. package/lib/operations/v2/getFieldsForDataset.js +0 -23
  206. package/lib/operations/v2/getFieldsForDataset.js.map +0 -1
  207. package/lib/operations/v2/getGroupById.d.ts +0 -24
  208. package/lib/operations/v2/getGroupById.d.ts.map +0 -1
  209. package/lib/operations/v2/getGroupById.js +0 -29
  210. package/lib/operations/v2/getGroupById.js.map +0 -1
  211. package/lib/operations/v2/getMapFields.d.ts +0 -10
  212. package/lib/operations/v2/getMapFields.d.ts.map +0 -1
  213. package/lib/operations/v2/getMapFields.js +0 -15
  214. package/lib/operations/v2/getMapFields.js.map +0 -1
  215. package/lib/operations/v2/getMonitor.d.ts +0 -43
  216. package/lib/operations/v2/getMonitor.d.ts.map +0 -1
  217. package/lib/operations/v2/getMonitor.js +0 -54
  218. package/lib/operations/v2/getMonitor.js.map +0 -1
  219. package/lib/operations/v2/getMonitorHistory.d.ts +0 -23
  220. package/lib/operations/v2/getMonitorHistory.d.ts.map +0 -1
  221. package/lib/operations/v2/getMonitorHistory.js +0 -28
  222. package/lib/operations/v2/getMonitorHistory.js.map +0 -1
  223. package/lib/operations/v2/getMonitors.d.ts +0 -39
  224. package/lib/operations/v2/getMonitors.d.ts.map +0 -1
  225. package/lib/operations/v2/getMonitors.js +0 -48
  226. package/lib/operations/v2/getMonitors.js.map +0 -1
  227. package/lib/operations/v2/getNotifier.d.ts +0 -58
  228. package/lib/operations/v2/getNotifier.d.ts.map +0 -1
  229. package/lib/operations/v2/getNotifier.js +0 -64
  230. package/lib/operations/v2/getNotifier.js.map +0 -1
  231. package/lib/operations/v2/getNotifiers.d.ts +0 -54
  232. package/lib/operations/v2/getNotifiers.d.ts.map +0 -1
  233. package/lib/operations/v2/getNotifiers.js +0 -58
  234. package/lib/operations/v2/getNotifiers.js.map +0 -1
  235. package/lib/operations/v2/getOrg.d.ts +0 -50
  236. package/lib/operations/v2/getOrg.d.ts.map +0 -1
  237. package/lib/operations/v2/getOrg.js +0 -71
  238. package/lib/operations/v2/getOrg.js.map +0 -1
  239. package/lib/operations/v2/getOrgs.d.ts +0 -48
  240. package/lib/operations/v2/getOrgs.d.ts.map +0 -1
  241. package/lib/operations/v2/getOrgs.js +0 -67
  242. package/lib/operations/v2/getOrgs.js.map +0 -1
  243. package/lib/operations/v2/getRoleById.d.ts +0 -53
  244. package/lib/operations/v2/getRoleById.d.ts.map +0 -1
  245. package/lib/operations/v2/getRoleById.js +0 -58
  246. package/lib/operations/v2/getRoleById.js.map +0 -1
  247. package/lib/operations/v2/getStarred.d.ts +0 -49
  248. package/lib/operations/v2/getStarred.d.ts.map +0 -1
  249. package/lib/operations/v2/getStarred.js +0 -59
  250. package/lib/operations/v2/getStarred.js.map +0 -1
  251. package/lib/operations/v2/getStarredQueries.d.ts +0 -59
  252. package/lib/operations/v2/getStarredQueries.d.ts.map +0 -1
  253. package/lib/operations/v2/getStarredQueries.js +0 -68
  254. package/lib/operations/v2/getStarredQueries.js.map +0 -1
  255. package/lib/operations/v2/getUser.d.ts +0 -21
  256. package/lib/operations/v2/getUser.d.ts.map +0 -1
  257. package/lib/operations/v2/getUser.js +0 -26
  258. package/lib/operations/v2/getUser.js.map +0 -1
  259. package/lib/operations/v2/getUsers.d.ts +0 -19
  260. package/lib/operations/v2/getUsers.d.ts.map +0 -1
  261. package/lib/operations/v2/getUsers.js +0 -22
  262. package/lib/operations/v2/getUsers.js.map +0 -1
  263. package/lib/operations/v2/getView.d.ts +0 -17
  264. package/lib/operations/v2/getView.d.ts.map +0 -1
  265. package/lib/operations/v2/getView.js +0 -22
  266. package/lib/operations/v2/getView.js.map +0 -1
  267. package/lib/operations/v2/getViews.d.ts +0 -15
  268. package/lib/operations/v2/getViews.d.ts.map +0 -1
  269. package/lib/operations/v2/getViews.js +0 -18
  270. package/lib/operations/v2/getViews.js.map +0 -1
  271. package/lib/operations/v2/getVirtualField.d.ts +0 -18
  272. package/lib/operations/v2/getVirtualField.d.ts.map +0 -1
  273. package/lib/operations/v2/getVirtualField.js +0 -23
  274. package/lib/operations/v2/getVirtualField.js.map +0 -1
  275. package/lib/operations/v2/getVirtualFields.d.ts +0 -17
  276. package/lib/operations/v2/getVirtualFields.d.ts.map +0 -1
  277. package/lib/operations/v2/getVirtualFields.js +0 -21
  278. package/lib/operations/v2/getVirtualFields.js.map +0 -1
  279. package/lib/operations/v2/index.d.ts +0 -78
  280. package/lib/operations/v2/index.d.ts.map +0 -1
  281. package/lib/operations/v2/index.js +0 -78
  282. package/lib/operations/v2/index.js.map +0 -1
  283. package/lib/operations/v2/listDashboards.d.ts +0 -174
  284. package/lib/operations/v2/listDashboards.d.ts.map +0 -1
  285. package/lib/operations/v2/listDashboards.js +0 -66
  286. package/lib/operations/v2/listDashboards.js.map +0 -1
  287. package/lib/operations/v2/listGroups.d.ts +0 -20
  288. package/lib/operations/v2/listGroups.d.ts.map +0 -1
  289. package/lib/operations/v2/listGroups.js +0 -23
  290. package/lib/operations/v2/listGroups.js.map +0 -1
  291. package/lib/operations/v2/listRoles.d.ts +0 -49
  292. package/lib/operations/v2/listRoles.d.ts.map +0 -1
  293. package/lib/operations/v2/listRoles.js +0 -52
  294. package/lib/operations/v2/listRoles.js.map +0 -1
  295. package/lib/operations/v2/patchDashboardChart.d.ts +0 -183
  296. package/lib/operations/v2/patchDashboardChart.d.ts.map +0 -1
  297. package/lib/operations/v2/patchDashboardChart.js +0 -81
  298. package/lib/operations/v2/patchDashboardChart.js.map +0 -1
  299. package/lib/operations/v2/regenerateAPIToken.d.ts +0 -89
  300. package/lib/operations/v2/regenerateAPIToken.d.ts.map +0 -1
  301. package/lib/operations/v2/regenerateAPIToken.js +0 -96
  302. package/lib/operations/v2/regenerateAPIToken.js.map +0 -1
  303. package/lib/operations/v2/removeUserFromOrg.d.ts +0 -13
  304. package/lib/operations/v2/removeUserFromOrg.d.ts.map +0 -1
  305. package/lib/operations/v2/removeUserFromOrg.js +0 -19
  306. package/lib/operations/v2/removeUserFromOrg.js.map +0 -1
  307. package/lib/operations/v2/trimDataset.d.ts +0 -16
  308. package/lib/operations/v2/trimDataset.d.ts.map +0 -1
  309. package/lib/operations/v2/trimDataset.js +0 -22
  310. package/lib/operations/v2/trimDataset.js.map +0 -1
  311. package/lib/operations/v2/updateAnnotation.d.ts +0 -31
  312. package/lib/operations/v2/updateAnnotation.d.ts.map +0 -1
  313. package/lib/operations/v2/updateAnnotation.js +0 -36
  314. package/lib/operations/v2/updateAnnotation.js.map +0 -1
  315. package/lib/operations/v2/updateCurrentUser.d.ts +0 -20
  316. package/lib/operations/v2/updateCurrentUser.d.ts.map +0 -1
  317. package/lib/operations/v2/updateCurrentUser.js +0 -25
  318. package/lib/operations/v2/updateCurrentUser.js.map +0 -1
  319. package/lib/operations/v2/updateDashboard.d.ts +0 -332
  320. package/lib/operations/v2/updateDashboard.d.ts.map +0 -1
  321. package/lib/operations/v2/updateDashboard.js +0 -113
  322. package/lib/operations/v2/updateDashboard.js.map +0 -1
  323. package/lib/operations/v2/updateDataset.d.ts +0 -31
  324. package/lib/operations/v2/updateDataset.d.ts.map +0 -1
  325. package/lib/operations/v2/updateDataset.js +0 -41
  326. package/lib/operations/v2/updateDataset.js.map +0 -1
  327. package/lib/operations/v2/updateFieldForDataset.d.ts +0 -22
  328. package/lib/operations/v2/updateFieldForDataset.d.ts.map +0 -1
  329. package/lib/operations/v2/updateFieldForDataset.js +0 -32
  330. package/lib/operations/v2/updateFieldForDataset.js.map +0 -1
  331. package/lib/operations/v2/updateGroup.d.ts +0 -29
  332. package/lib/operations/v2/updateGroup.d.ts.map +0 -1
  333. package/lib/operations/v2/updateGroup.js +0 -34
  334. package/lib/operations/v2/updateGroup.js.map +0 -1
  335. package/lib/operations/v2/updateMapFields.d.ts +0 -10
  336. package/lib/operations/v2/updateMapFields.d.ts.map +0 -1
  337. package/lib/operations/v2/updateMapFields.js +0 -15
  338. package/lib/operations/v2/updateMapFields.js.map +0 -1
  339. package/lib/operations/v2/updateMonitor.d.ts +0 -67
  340. package/lib/operations/v2/updateMonitor.d.ts.map +0 -1
  341. package/lib/operations/v2/updateMonitor.js +0 -84
  342. package/lib/operations/v2/updateMonitor.js.map +0 -1
  343. package/lib/operations/v2/updateNotifier.d.ts +0 -96
  344. package/lib/operations/v2/updateNotifier.d.ts.map +0 -1
  345. package/lib/operations/v2/updateNotifier.js +0 -102
  346. package/lib/operations/v2/updateNotifier.js.map +0 -1
  347. package/lib/operations/v2/updateOrg.d.ts +0 -51
  348. package/lib/operations/v2/updateOrg.d.ts.map +0 -1
  349. package/lib/operations/v2/updateOrg.js +0 -72
  350. package/lib/operations/v2/updateOrg.js.map +0 -1
  351. package/lib/operations/v2/updateRole.d.ts +0 -87
  352. package/lib/operations/v2/updateRole.d.ts.map +0 -1
  353. package/lib/operations/v2/updateRole.js +0 -92
  354. package/lib/operations/v2/updateRole.js.map +0 -1
  355. package/lib/operations/v2/updateStarred.d.ts +0 -86
  356. package/lib/operations/v2/updateStarred.d.ts.map +0 -1
  357. package/lib/operations/v2/updateStarred.js +0 -101
  358. package/lib/operations/v2/updateStarred.js.map +0 -1
  359. package/lib/operations/v2/updateUserRole.d.ts +0 -22
  360. package/lib/operations/v2/updateUserRole.d.ts.map +0 -1
  361. package/lib/operations/v2/updateUserRole.js +0 -27
  362. package/lib/operations/v2/updateUserRole.js.map +0 -1
  363. package/lib/operations/v2/updateView.d.ts +0 -23
  364. package/lib/operations/v2/updateView.d.ts.map +0 -1
  365. package/lib/operations/v2/updateView.js +0 -28
  366. package/lib/operations/v2/updateView.js.map +0 -1
  367. package/lib/operations/v2/updateVirtualField.d.ts +0 -24
  368. package/lib/operations/v2/updateVirtualField.d.ts.map +0 -1
  369. package/lib/operations/v2/updateVirtualField.js +0 -31
  370. package/lib/operations/v2/updateVirtualField.js.map +0 -1
  371. package/lib/operations/v2/vacuumDataset.d.ts +0 -9
  372. package/lib/operations/v2/vacuumDataset.d.ts.map +0 -1
  373. package/lib/operations/v2/vacuumDataset.js +0 -14
  374. package/lib/operations/v2/vacuumDataset.js.map +0 -1
  375. package/lib/retry.d.ts +0 -33
  376. package/lib/retry.d.ts.map +0 -1
  377. package/lib/retry.js +0 -33
  378. package/lib/retry.js.map +0 -1
  379. package/lib/sensitive.d.ts +0 -5
  380. package/lib/sensitive.d.ts.map +0 -1
  381. package/lib/sensitive.js +0 -5
  382. package/lib/sensitive.js.map +0 -1
  383. package/lib/traits.d.ts +0 -5
  384. package/lib/traits.d.ts.map +0 -1
  385. package/lib/traits.js +0 -5
  386. package/lib/traits.js.map +0 -1
  387. package/src/category.ts +0 -4
  388. package/src/client.ts +0 -122
  389. package/src/operations/index.ts +0 -1
  390. package/src/operations/v1-edge-ingest/index.ts +0 -1
  391. package/src/operations/v1-edge-ingest/ingestToDataset.ts +0 -60
  392. package/src/operations/v1-edge-query/index.ts +0 -1
  393. package/src/operations/v1-edge-query/queryApl.ts +0 -134
  394. package/src/operations/v2/createAPIToken.ts +0 -272
  395. package/src/operations/v2/createAnnotation.ts +0 -58
  396. package/src/operations/v2/createDashboard.ts +0 -472
  397. package/src/operations/v2/createDataset.ts +0 -92
  398. package/src/operations/v2/createGroup.ts +0 -52
  399. package/src/operations/v2/createMapField.ts +0 -31
  400. package/src/operations/v2/createMonitor.ts +0 -160
  401. package/src/operations/v2/createNotifier.ts +0 -194
  402. package/src/operations/v2/createOrg.ts +0 -135
  403. package/src/operations/v2/createRole.ts +0 -276
  404. package/src/operations/v2/createStarred.ts +0 -203
  405. package/src/operations/v2/createUser.ts +0 -47
  406. package/src/operations/v2/createView.ts +0 -49
  407. package/src/operations/v2/createVirtualField.ts +0 -53
  408. package/src/operations/v2/deleteAPIToken.ts +0 -29
  409. package/src/operations/v2/deleteAnnotation.ts +0 -31
  410. package/src/operations/v2/deleteDashboard.ts +0 -31
  411. package/src/operations/v2/deleteDataset.ts +0 -29
  412. package/src/operations/v2/deleteGroup.ts +0 -33
  413. package/src/operations/v2/deleteMapField.ts +0 -31
  414. package/src/operations/v2/deleteMonitor.ts +0 -29
  415. package/src/operations/v2/deleteNotifier.ts +0 -29
  416. package/src/operations/v2/deleteRole.ts +0 -33
  417. package/src/operations/v2/deleteStarred.ts +0 -26
  418. package/src/operations/v2/deleteView.ts +0 -26
  419. package/src/operations/v2/deleteVirtualField.ts +0 -27
  420. package/src/operations/v2/getAPIToken.ts +0 -150
  421. package/src/operations/v2/getAPITokens.ts +0 -148
  422. package/src/operations/v2/getAnnotation.ts +0 -48
  423. package/src/operations/v2/getAnnotations.ts +0 -54
  424. package/src/operations/v2/getCurrentUser.ts +0 -37
  425. package/src/operations/v2/getDashboard.ts +0 -252
  426. package/src/operations/v2/getDataset.ts +0 -67
  427. package/src/operations/v2/getDatasets.ts +0 -65
  428. package/src/operations/v2/getFieldForDataset.ts +0 -44
  429. package/src/operations/v2/getFieldsForDataset.ts +0 -41
  430. package/src/operations/v2/getGroupById.ts +0 -46
  431. package/src/operations/v2/getMapFields.ts +0 -27
  432. package/src/operations/v2/getMonitor.ts +0 -99
  433. package/src/operations/v2/getMonitorHistory.ts +0 -47
  434. package/src/operations/v2/getMonitors.ts +0 -93
  435. package/src/operations/v2/getNotifier.ts +0 -117
  436. package/src/operations/v2/getNotifiers.ts +0 -111
  437. package/src/operations/v2/getOrg.ts +0 -135
  438. package/src/operations/v2/getOrgs.ts +0 -131
  439. package/src/operations/v2/getRoleById.ts +0 -158
  440. package/src/operations/v2/getStarred.ts +0 -117
  441. package/src/operations/v2/getStarredQueries.ts +0 -134
  442. package/src/operations/v2/getUser.ts +0 -43
  443. package/src/operations/v2/getUsers.ts +0 -39
  444. package/src/operations/v2/getView.ts +0 -39
  445. package/src/operations/v2/getViews.ts +0 -35
  446. package/src/operations/v2/getVirtualField.ts +0 -41
  447. package/src/operations/v2/getVirtualFields.ts +0 -41
  448. package/src/operations/v2/index.ts +0 -77
  449. package/src/operations/v2/listDashboards.ts +0 -254
  450. package/src/operations/v2/listGroups.ts +0 -40
  451. package/src/operations/v2/listRoles.ts +0 -156
  452. package/src/operations/v2/patchDashboardChart.ts +0 -275
  453. package/src/operations/v2/regenerateAPIToken.ts +0 -320
  454. package/src/operations/v2/removeUserFromOrg.ts +0 -29
  455. package/src/operations/v2/trimDataset.ts +0 -33
  456. package/src/operations/v2/updateAnnotation.ts +0 -62
  457. package/src/operations/v2/updateCurrentUser.ts +0 -42
  458. package/src/operations/v2/updateDashboard.ts +0 -472
  459. package/src/operations/v2/updateDataset.ts +0 -73
  460. package/src/operations/v2/updateFieldForDataset.ts +0 -54
  461. package/src/operations/v2/updateGroup.ts +0 -56
  462. package/src/operations/v2/updateMapFields.ts +0 -27
  463. package/src/operations/v2/updateMonitor.ts +0 -162
  464. package/src/operations/v2/updateNotifier.ts +0 -196
  465. package/src/operations/v2/updateOrg.ts +0 -137
  466. package/src/operations/v2/updateRole.ts +0 -280
  467. package/src/operations/v2/updateStarred.ts +0 -205
  468. package/src/operations/v2/updateUserRole.ts +0 -45
  469. package/src/operations/v2/updateView.ts +0 -51
  470. package/src/operations/v2/updateVirtualField.ts +0 -55
  471. package/src/operations/v2/vacuumDataset.ts +0 -24
  472. package/src/sensitive.ts +0 -4
package/src/traits.ts CHANGED
@@ -1,4 +1,44 @@
1
1
  /**
2
- * Re-export the shared traits system from sdk-core.
2
+ * Axiom SDK trait surface — hand-written.
3
+ *
4
+ * Re-exports the generic protocol traits from core (so generated operations
5
+ * import everything from one place). Axiom has no envelope of its own; the
6
+ * REST-protocol traits (SensitiveValue / RawResponse) come from
7
+ * `core/protocol-rest`.
3
8
  */
4
- export * from "@distilled.cloud/core/traits";
9
+ export {
10
+ Body,
11
+ Header,
12
+ Query,
13
+ Label,
14
+ Http,
15
+ ResponseCode,
16
+ HttpBody,
17
+ FormDataFile,
18
+ KeyDictionary,
19
+ UnionCases,
20
+ applyErrorMatchers,
21
+ getErrorMatchers,
22
+ type HttpTrait,
23
+ type ErrorMatcher,
24
+ bodySymbol,
25
+ headerSymbol,
26
+ querySymbol,
27
+ labelSymbol,
28
+ httpSymbol,
29
+ responseCodeSymbol,
30
+ httpBodySymbol,
31
+ formDataFileSymbol,
32
+ keyDictionarySymbol,
33
+ unionCasesSymbol,
34
+ errorMatchersSymbol,
35
+ } from "@distilled.cloud/core/trait";
36
+
37
+ export {
38
+ SensitiveValue,
39
+ RawResponse,
40
+ RawResponseRoot,
41
+ sensitiveValueSymbol,
42
+ rawResponseSymbol,
43
+ rawResponseRootSymbol,
44
+ } from "@distilled.cloud/core/protocol-rest";
package/README.md DELETED
@@ -1,70 +0,0 @@
1
- # @distilled.cloud/axiom
2
-
3
- Effect-native [Axiom](https://axiom.co) SDK generated from Axiom's [public OpenAPI specification](https://github.com/axiomhq/docs/tree/main/restapi/versions). Covers the control-plane API (`v2`), the edge ingest API (`v1-edge-ingest`), and the edge query API (`v1-edge-query`) with exhaustive error typing.
4
-
5
- ## Installation
6
-
7
- ```bash
8
- npm install @distilled.cloud/axiom effect
9
- ```
10
-
11
- ## Quick Start
12
-
13
- ```typescript
14
- import { Effect, Layer } from "effect";
15
- import * as FetchHttpClient from "effect/unstable/http/FetchHttpClient";
16
- import { getDatasets } from "@distilled.cloud/axiom/Operations";
17
- import { CredentialsFromEnv } from "@distilled.cloud/axiom";
18
-
19
- const program = Effect.gen(function* () {
20
- const datasets = yield* getDatasets({});
21
- return datasets;
22
- });
23
-
24
- const AxiomLive = Layer.mergeAll(FetchHttpClient.layer, CredentialsFromEnv);
25
-
26
- program.pipe(Effect.provide(AxiomLive), Effect.runPromise);
27
- ```
28
-
29
- ## Configuration
30
-
31
- Set the following environment variables:
32
-
33
- ```bash
34
- AXIOM_TOKEN=your-api-token # or AXIOM_API_KEY
35
- AXIOM_ORG_ID=your-org-id # required for Personal Access Tokens
36
- AXIOM_URL=https://api.axiom.co # optional: override for self-hosted / regional edge
37
- ```
38
-
39
- Create an API token in the [Axiom console](https://app.axiom.co/settings/api-tokens) under **Settings > API Tokens**. For a Personal Access Token, set `AXIOM_ORG_ID` to the organization you want to operate on — it's sent on every request as the `X-Axiom-Org-ID` header.
40
-
41
- ## Error Handling
42
-
43
- ```typescript
44
- import { Effect } from "effect";
45
- import { getDataset } from "@distilled.cloud/axiom/Operations";
46
-
47
- getDataset({ id: "missing" }).pipe(
48
- Effect.catchTags({
49
- NotFound: () => Effect.succeed(null),
50
- UnknownAxiomError: (e) => Effect.fail(new Error(`Unknown: ${e.message}`)),
51
- }),
52
- );
53
- ```
54
-
55
- ## Services
56
-
57
- - **Datasets** — list, create, get, update, delete datasets and trim/vacuum them
58
- - **Ingest (edge)** — `ingestToDataset` — stream JSON/NDJSON/CSV events into a dataset
59
- - **Query (edge)** — `queryApl`, `batchQuery`, plus metric/tag discovery endpoints
60
- - **Monitors & Notifiers** — manage alerting rules and delivery channels
61
- - **Dashboards, Views, Starred** — saved dashboards, views, and starred queries
62
- - **Annotations** — create and manage event annotations
63
- - **Users, Groups, Roles** — user lifecycle and access control
64
- - **API Tokens** — create, list, regenerate, and revoke tokens
65
- - **Organizations & Billing** — organization settings and billing endpoints
66
- - **Virtual Fields** — computed fields defined per dataset
67
-
68
- ## License
69
-
70
- MIT
package/lib/category.d.ts DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * Re-export the shared category system from sdk-core.
3
- */
4
- export * from "@distilled.cloud/core/category";
5
- //# sourceMappingURL=category.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../src/category.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,gCAAgC,CAAC"}
package/lib/category.js DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * Re-export the shared category system from sdk-core.
3
- */
4
- export * from "@distilled.cloud/core/category";
5
- //# sourceMappingURL=category.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"category.js","sourceRoot":"","sources":["../src/category.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,gCAAgC,CAAC"}
package/lib/client.d.ts DELETED
@@ -1,11 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- export { UnknownAxiomError } from "./errors.ts";
3
- import { Credentials } from "./credentials.ts";
4
- /**
5
- * Axiom API client.
6
- */
7
- export declare const API: {
8
- make: <I extends Schema.Top, O extends Schema.Top, const E extends readonly import("@distilled.cloud/core/client").ApiErrorClass[] = readonly []>(configFn: () => import("@distilled.cloud/core/client").OperationConfig<I, O, E>) => import("@distilled.cloud/core/client").OperationMethod<Schema.Schema.Type<I>, Schema.Schema.Type<O>, InstanceType<E[number]>, Credentials, never>;
9
- makePaginated: <I extends Schema.Top, O extends Schema.Top, const E extends readonly import("@distilled.cloud/core/client").ApiErrorClass[] = readonly []>(configFn: () => import("@distilled.cloud/core/client").PaginatedOperationConfig<I, O, E>, paginateFn?: import("@distilled.cloud/core/pagination").PaginationStrategy) => import("@distilled.cloud/core/client").PaginatedOperationMethod<Schema.Schema.Type<I>, Schema.Schema.Type<O>, InstanceType<E[number]>, Credentials, never>;
10
- };
11
- //# sourceMappingURL=client.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAWxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAkF/C;;GAEG;AACH,eAAO,MAAM,GAAG;;;CAgBd,CAAC"}
package/lib/client.js DELETED
@@ -1,108 +0,0 @@
1
- /**
2
- * Axiom API Client.
3
- *
4
- * Wraps the shared REST client from sdk-core with Axiom-specific
5
- * error matching and credential handling.
6
- */
7
- import * as Effect from "effect/Effect";
8
- import * as Redacted from "effect/Redacted";
9
- import * as Schema from "effect/Schema";
10
- import { makeAPI } from "@distilled.cloud/core/client";
11
- import { parseRetryAfterForStatus } from "@distilled.cloud/core/retry-after";
12
- import { Retry } from "./retry.js";
13
- import { HTTP_STATUS_MAP, UnknownAxiomError, AxiomParseError, } from "./errors.js";
14
- // Re-export for backwards compatibility
15
- export { UnknownAxiomError } from "./errors.js";
16
- import { Credentials } from "./credentials.js";
17
- /**
18
- * Axiom returns two error envelope shapes:
19
- * - control-plane / edge-ingest: `{ "code": "...", "message": "..." }`
20
- * - edge-query: `{ "error": "...", "message": "..." }`
21
- * Plus some endpoints return plain `{ message: "..." }`.
22
- * We accept all of them and extract a unified `message`/`code` pair.
23
- */
24
- const ApiErrorResponse = Schema.Struct({
25
- code: Schema.optional(Schema.Union([Schema.String, Schema.Number])),
26
- error: Schema.optional(Schema.String),
27
- message: Schema.optional(Schema.String),
28
- });
29
- /**
30
- * Match an Axiom API error response to the appropriate error class based on
31
- * HTTP status.
32
- *
33
- * Strategy: HTTP status is the authoritative signal. We always try status-based
34
- * matching first, then enrich with a message parsed from the body if we can.
35
- * Non-JSON responses (plain text "Forbidden", empty bodies, HTML error pages)
36
- * still map to the correct typed error via status code.
37
- */
38
- const matchError = (status, errorBody, _errors, headers) => {
39
- const ErrorClass = HTTP_STATUS_MAP[status];
40
- let message = "";
41
- let code;
42
- try {
43
- const parsed = Schema.decodeUnknownSync(ApiErrorResponse)(errorBody);
44
- message = parsed.message ?? parsed.error ?? "";
45
- code = parsed.code ?? parsed.error;
46
- }
47
- catch {
48
- if (typeof errorBody === "string") {
49
- message = errorBody;
50
- }
51
- }
52
- if (ErrorClass) {
53
- return Effect.fail(new ErrorClass({
54
- message,
55
- retryAfter: parseRetryAfterForStatus(status, headers),
56
- }));
57
- }
58
- return Effect.fail(new UnknownAxiomError({
59
- code: typeof code === "number" ? String(code) : code,
60
- message,
61
- body: errorBody,
62
- }));
63
- };
64
- /**
65
- * Axiom's backend (Go) serializes nil slices and omitted optional fields as
66
- * JSON `null`. The generated output schemas model these as `Schema.optional(…)`
67
- * which accepts only the value or `undefined`, so `null` trips decoding.
68
- *
69
- * Recursively drop explicit `null` properties before decoding so optional
70
- * fields simply get treated as absent. Keys that are genuinely nullable in
71
- * the API should be patched to `Schema.NullOr(…)` in the spec — this hook
72
- * exists for the far more common "Go nil slice" case.
73
- */
74
- const stripNulls = (value) => {
75
- if (Array.isArray(value))
76
- return value.map(stripNulls);
77
- if (value && typeof value === "object") {
78
- const out = {};
79
- for (const [k, v] of Object.entries(value)) {
80
- if (v === null)
81
- continue;
82
- out[k] = stripNulls(v);
83
- }
84
- return out;
85
- }
86
- return value;
87
- };
88
- /**
89
- * Axiom API client.
90
- */
91
- export const API = makeAPI({
92
- credentials: Credentials,
93
- getBaseUrl: (creds) => creds.apiBaseUrl,
94
- getAuthHeaders: (creds) => {
95
- const headers = {
96
- Authorization: `Bearer ${Redacted.value(creds.apiKey)}`,
97
- };
98
- if (creds.orgId) {
99
- headers["X-Axiom-Org-ID"] = creds.orgId;
100
- }
101
- return headers;
102
- },
103
- matchError,
104
- ParseError: AxiomParseError,
105
- retry: Retry,
106
- transformResponse: stripNulls,
107
- });
108
- //# sourceMappingURL=client.js.map
package/lib/client.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"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"}
@@ -1,30 +0,0 @@
1
- import * as Context from "effect/Context";
2
- import * as Effect from "effect/Effect";
3
- import * as Layer from "effect/Layer";
4
- import * as Redacted from "effect/Redacted";
5
- /** Default base URL for Axiom Cloud. Self-hosted users can override via AXIOM_URL. */
6
- export declare const DEFAULT_API_BASE_URL = "https://api.axiom.co";
7
- export interface Config {
8
- readonly apiKey: Redacted.Redacted<string>;
9
- readonly apiBaseUrl: string;
10
- /**
11
- * Optional organization ID. Required when authenticating with a Personal
12
- * Access Token (PAT); optional for API tokens scoped to a single org.
13
- * Sent on every request as the `X-Axiom-Org-ID` header when set.
14
- */
15
- readonly orgId?: string;
16
- }
17
- declare const Credentials_base: Context.ServiceClass<Credentials, "AxiomCredentials", Effect.Effect<Config, never, never>>;
18
- export declare class Credentials extends Credentials_base {
19
- }
20
- /**
21
- * Build {@link Credentials} from environment variables.
22
- *
23
- * - `AXIOM_TOKEN` or `AXIOM_API_KEY` (required) — Axiom API token or PAT.
24
- * - `AXIOM_URL` (optional) — override the API base URL (for self-hosted or
25
- * regional edge deployments). Defaults to `https://api.axiom.co`.
26
- * - `AXIOM_ORG_ID` (optional) — organization ID, required for PATs.
27
- */
28
- export declare const CredentialsFromEnv: Layer.Layer<Credentials, never, never>;
29
- export {};
30
- //# sourceMappingURL=credentials.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAE5C,sFAAsF;AACtF,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAE3D,MAAM,WAAW,MAAM;IACrB,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC3C,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;;AAED,qBAAa,WAAY,SAAQ,gBAGV;CAAG;AAW1B;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,wCA6B9B,CAAC"}
@@ -1,43 +0,0 @@
1
- import { ConfigError } from "@distilled.cloud/core/errors";
2
- import * as EffectConfig from "effect/Config";
3
- import * as Context from "effect/Context";
4
- import * as Effect from "effect/Effect";
5
- import * as Layer from "effect/Layer";
6
- import * as Option from "effect/Option";
7
- import * as Redacted from "effect/Redacted";
8
- /** Default base URL for Axiom Cloud. Self-hosted users can override via AXIOM_URL. */
9
- export const DEFAULT_API_BASE_URL = "https://api.axiom.co";
10
- export class Credentials extends Context.Service()("AxiomCredentials") {
11
- }
12
- const envConfig = EffectConfig.all({
13
- apiToken: EffectConfig.option(EffectConfig.string("AXIOM_TOKEN")),
14
- apiKey: EffectConfig.option(EffectConfig.string("AXIOM_API_KEY")),
15
- apiBaseUrl: EffectConfig.string("AXIOM_URL").pipe(EffectConfig.withDefault(DEFAULT_API_BASE_URL)),
16
- orgId: EffectConfig.option(EffectConfig.string("AXIOM_ORG_ID")),
17
- });
18
- /**
19
- * Build {@link Credentials} from environment variables.
20
- *
21
- * - `AXIOM_TOKEN` or `AXIOM_API_KEY` (required) — Axiom API token or PAT.
22
- * - `AXIOM_URL` (optional) — override the API base URL (for self-hosted or
23
- * regional edge deployments). Defaults to `https://api.axiom.co`.
24
- * - `AXIOM_ORG_ID` (optional) — organization ID, required for PATs.
25
- */
26
- export const CredentialsFromEnv = Layer.succeed(Credentials, Effect.gen(function* () {
27
- const config = yield* envConfig.pipe(Effect.mapError(() => new ConfigError({
28
- message: "AXIOM_TOKEN (or AXIOM_API_KEY) environment variable is required",
29
- })));
30
- const apiKey = Option.getOrUndefined(config.apiToken) ??
31
- Option.getOrUndefined(config.apiKey);
32
- if (!apiKey) {
33
- return yield* new ConfigError({
34
- message: "AXIOM_TOKEN (or AXIOM_API_KEY) environment variable is required",
35
- });
36
- }
37
- return {
38
- apiKey: Redacted.make(apiKey),
39
- apiBaseUrl: config.apiBaseUrl,
40
- orgId: Option.getOrUndefined(config.orgId),
41
- };
42
- }).pipe(Effect.orDie));
43
- //# sourceMappingURL=credentials.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"credentials.js","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAE5C,sFAAsF;AACtF,MAAM,CAAC,MAAM,oBAAoB,GAAG,sBAAsB,CAAC;AAa3D,MAAM,OAAO,WAAY,SAAQ,OAAO,CAAC,OAAO,EAG7C,CAAC,kBAAkB,CAAC;CAAG;AAE1B,MAAM,SAAS,GAAG,YAAY,CAAC,GAAG,CAAC;IACjC,QAAQ,EAAE,YAAY,CAAC,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;IACjE,UAAU,EAAE,YAAY,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,IAAI,CAC/C,YAAY,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAC/C;IACD,KAAK,EAAE,YAAY,CAAC,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;CAChE,CAAC,CAAC;AAEH;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,CAAC,OAAO,CAC7C,WAAW,EACX,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,SAAS,CAAC,IAAI,CAClC,MAAM,CAAC,QAAQ,CACb,GAAG,EAAE,CACH,IAAI,WAAW,CAAC;QACd,OAAO,EACL,iEAAiE;KACpE,CAAC,CACL,CACF,CAAC;IACF,MAAM,MAAM,GACV,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,QAAQ,CAAC;QACtC,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAEvC,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,KAAK,CAAC,CAAC,IAAI,WAAW,CAAC;YAC5B,OAAO,EACL,iEAAiE;SACpE,CAAC,CAAC;IACL,CAAC;IAED,OAAO;QACL,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;QAC7B,UAAU,EAAE,MAAM,CAAC,UAAU;QAC7B,KAAK,EAAE,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,KAAK,CAAC;KAC3C,CAAC;AACJ,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CACtB,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from "./operations/v1-edge-ingest/index.ts";
2
- //# sourceMappingURL=edge-ingest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"edge-ingest.d.ts","sourceRoot":"","sources":["../src/edge-ingest.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from "./operations/v1-edge-ingest/index.js";
2
- //# sourceMappingURL=edge-ingest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"edge-ingest.js","sourceRoot":"","sources":["../src/edge-ingest.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from "./operations/v1-edge-query/index.ts";
2
- //# sourceMappingURL=edge-query.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"edge-query.d.ts","sourceRoot":"","sources":["../src/edge-query.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC"}
package/lib/edge-query.js DELETED
@@ -1,2 +0,0 @@
1
- export * from "./operations/v1-edge-query/index.js";
2
- //# sourceMappingURL=edge-query.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"edge-query.js","sourceRoot":"","sources":["../src/edge-query.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC"}
package/lib/errors.d.ts DELETED
@@ -1,31 +0,0 @@
1
- /**
2
- * Axiom-specific error types.
3
- *
4
- * Re-exports common HTTP errors from sdk-core and adds Axiom-specific
5
- * error matching and API error types.
6
- */
7
- export { BadGateway, BadRequest, Conflict, ConfigError, Forbidden, GatewayTimeout, InternalServerError, Locked, NotFound, ServiceUnavailable, TooManyRequests, Unauthorized, UnprocessableEntity, HTTP_STATUS_MAP, DEFAULT_ERRORS, API_ERRORS, } from "@distilled.cloud/core/errors";
8
- export type { DefaultErrors } from "@distilled.cloud/core/errors";
9
- import * as Schema from "effect/Schema";
10
- declare const UnknownAxiomError_base: Schema.Class<UnknownAxiomError, Schema.TaggedStruct<"UnknownAxiomError", {
11
- readonly code: Schema.optional<Schema.String>;
12
- readonly message: Schema.optional<Schema.String>;
13
- readonly body: Schema.Unknown;
14
- }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
15
- "@distilled.cloud/error/categories": {
16
- ServerError: true;
17
- };
18
- });
19
- export declare class UnknownAxiomError extends UnknownAxiomError_base {
20
- }
21
- declare const AxiomParseError_base: Schema.Class<AxiomParseError, Schema.TaggedStruct<"AxiomParseError", {
22
- readonly body: Schema.Unknown;
23
- readonly cause: Schema.Unknown;
24
- }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
25
- "@distilled.cloud/error/categories": {
26
- ParseError: true;
27
- };
28
- });
29
- export declare class AxiomParseError extends AxiomParseError_base {
30
- }
31
- //# sourceMappingURL=errors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EACL,UAAU,EACV,UAAU,EACV,QAAQ,EACR,WAAW,EACX,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,MAAM,EACN,QAAQ,EACR,kBAAkB,EAClB,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,UAAU,GACX,MAAM,8BAA8B,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAElE,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;;;;;;;;;;AAIxC,qBAAa,iBAAkB,SAAQ,sBAOP;CAAG;;;;;;;;;AAGnC,qBAAa,eAAgB,SAAQ,oBAMN;CAAG"}
package/lib/errors.js DELETED
@@ -1,23 +0,0 @@
1
- /**
2
- * Axiom-specific error types.
3
- *
4
- * Re-exports common HTTP errors from sdk-core and adds Axiom-specific
5
- * error matching and API error types.
6
- */
7
- export { BadGateway, BadRequest, Conflict, ConfigError, Forbidden, GatewayTimeout, InternalServerError, Locked, NotFound, ServiceUnavailable, TooManyRequests, Unauthorized, UnprocessableEntity, HTTP_STATUS_MAP, DEFAULT_ERRORS, API_ERRORS, } from "@distilled.cloud/core/errors";
8
- import * as Schema from "effect/Schema";
9
- import * as Category from "@distilled.cloud/core/category";
10
- // Unknown Axiom error - returned when an error code is not recognized
11
- export class UnknownAxiomError extends Schema.TaggedErrorClass()("UnknownAxiomError", {
12
- code: Schema.optional(Schema.String),
13
- message: Schema.optional(Schema.String),
14
- body: Schema.Unknown,
15
- }).pipe(Category.withServerError) {
16
- }
17
- // Schema parse error wrapper
18
- export class AxiomParseError extends Schema.TaggedErrorClass()("AxiomParseError", {
19
- body: Schema.Unknown,
20
- cause: Schema.Unknown,
21
- }).pipe(Category.withParseError) {
22
- }
23
- //# sourceMappingURL=errors.js.map
package/lib/errors.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EACL,UAAU,EACV,UAAU,EACV,QAAQ,EACR,WAAW,EACX,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,MAAM,EACN,QAAQ,EACR,kBAAkB,EAClB,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,UAAU,GACX,MAAM,8BAA8B,CAAC;AAGtC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,QAAQ,MAAM,gCAAgC,CAAC;AAE3D,sEAAsE;AACtE,MAAM,OAAO,iBAAkB,SAAQ,MAAM,CAAC,gBAAgB,EAAqB,CACjF,mBAAmB,EACnB;IACE,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,MAAM,CAAC,OAAO;CACrB,CACF,CAAC,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC;CAAG;AAEnC,6BAA6B;AAC7B,MAAM,OAAO,eAAgB,SAAQ,MAAM,CAAC,gBAAgB,EAAmB,CAC7E,iBAAiB,EACjB;IACE,IAAI,EAAE,MAAM,CAAC,OAAO;IACpB,KAAK,EAAE,MAAM,CAAC,OAAO;CACtB,CACF,CAAC,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC;CAAG"}
package/lib/index.d.ts DELETED
@@ -1,22 +0,0 @@
1
- /**
2
- * Axiom SDK for Effect
3
- *
4
- * The package root re-exports the v2 (control-plane) operations. The v1 edge
5
- * APIs are available under their own subpath imports:
6
- *
7
- * @example
8
- * \`\`\`ts
9
- * import * as Operations from "@distilled.cloud/axiom";
10
- * import * as EdgeIngest from "@distilled.cloud/axiom/edge-ingest";
11
- * import * as EdgeQuery from "@distilled.cloud/axiom/edge-query";
12
- * \`\`\`
13
- */
14
- export * from "./credentials.ts";
15
- export * as Category from "./category.ts";
16
- export * as T from "./traits.ts";
17
- 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";
22
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,cAAc,kBAAkB,CAAC;AACjC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAC1E,cAAc,uBAAuB,CAAC"}
package/lib/index.js DELETED
@@ -1,22 +0,0 @@
1
- /**
2
- * Axiom SDK for Effect
3
- *
4
- * The package root re-exports the v2 (control-plane) operations. The v1 edge
5
- * APIs are available under their own subpath imports:
6
- *
7
- * @example
8
- * \`\`\`ts
9
- * import * as Operations from "@distilled.cloud/axiom";
10
- * import * as EdgeIngest from "@distilled.cloud/axiom/edge-ingest";
11
- * import * as EdgeQuery from "@distilled.cloud/axiom/edge-query";
12
- * \`\`\`
13
- */
14
- export * from "./credentials.js";
15
- export * as Category from "./category.js";
16
- export * as T from "./traits.js";
17
- export * as Retry from "./retry.js";
18
- export { API } from "./client.js";
19
- export * from "./errors.js";
20
- export { SensitiveString, SensitiveNullableString } from "./sensitive.js";
21
- export * from "./operations/index.js";
22
- //# sourceMappingURL=index.js.map
package/lib/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,cAAc,kBAAkB,CAAC;AACjC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAC1E,cAAc,uBAAuB,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from "./v2/index.ts";
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/operations/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from "./v2/index.js";
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/operations/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from "./ingestToDataset.ts";
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/v1-edge-ingest/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from "./ingestToDataset.js";
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/v1-edge-ingest/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
@@ -1,31 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- import { BadRequest, NotFound, UnprocessableEntity } from "../../errors.ts";
3
- export interface IngestToDatasetInput {
4
- "dataset-id": string;
5
- "timestamp-field"?: string;
6
- "timestamp-format"?: string;
7
- "csv-delimiter"?: string;
8
- }
9
- export declare const IngestToDatasetInput: Schema.Codec<IngestToDatasetInput>;
10
- export interface IngestToDatasetOutput {
11
- blocksCreated: number;
12
- failed: number;
13
- failures?: ReadonlyArray<{
14
- error: string;
15
- timestamp: string;
16
- }>;
17
- ingested: number;
18
- processedBytes: number;
19
- walLength: number;
20
- }
21
- export declare const IngestToDatasetOutput: Schema.Codec<IngestToDatasetOutput>;
22
- /**
23
- *
24
- * @param timestamp-field - 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.
25
- * @param timestamp-format - 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
26
- * @param csv-delimiter - The delimiter to use when parsing CSV data. If not specified, the default delimiter is `,`.
27
- * @param X-Axiom-CSV-Fields - A list of optional comma separated fields to use for CSV ingestion. If not specified, the first line of the CSV will be used as the field names.
28
- * @param X-Axiom-Event-Labels - An optional JSON encoded object with additional labels to add to all events in the request
29
- */
30
- export declare const ingestToDataset: import("@distilled.cloud/core/client").OperationMethod<IngestToDatasetInput, IngestToDatasetOutput, BadRequest | NotFound | UnprocessableEntity, import("../../credentials.ts").Credentials, never>;
31
- //# sourceMappingURL=ingestToDataset.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ingestToDataset.d.ts","sourceRoot":"","sources":["../../../src/operations/v1-edge-ingest/ingestToDataset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAG5E,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AACD,eAAO,MAAM,oBAAoB,EAOjB,MAAM,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;AAGnD,MAAM,WAAW,qBAAqB;IACpC,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,aAAa,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC/D,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;CACnB;AACD,eAAO,MAAM,qBAAqB,EAcjB,MAAM,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;AAGrD;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,qMAIzB,CAAC"}
@@ -1,36 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- import { API } from "../../client.js";
3
- import * as T from "../../traits.js";
4
- import { BadRequest, NotFound, UnprocessableEntity } from "../../errors.js";
5
- export const IngestToDatasetInput = /*@__PURE__*/ Schema.Struct({
6
- "dataset-id": Schema.String.pipe(T.PathParam()),
7
- "timestamp-field": Schema.optional(Schema.String),
8
- "timestamp-format": Schema.optional(Schema.String),
9
- "csv-delimiter": Schema.optional(Schema.String),
10
- }).pipe(T.Http({ method: "POST", path: "/v1/datasets/{dataset-id}/ingest" }));
11
- export const IngestToDatasetOutput = /*@__PURE__*/ Schema.Struct({
12
- blocksCreated: Schema.Number,
13
- failed: Schema.Number,
14
- failures: Schema.optional(Schema.Array(Schema.Struct({
15
- error: Schema.String,
16
- timestamp: Schema.String,
17
- }))),
18
- ingested: Schema.Number,
19
- processedBytes: Schema.Number,
20
- walLength: Schema.Number,
21
- });
22
- // The operation
23
- /**
24
- *
25
- * @param timestamp-field - 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.
26
- * @param timestamp-format - 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
27
- * @param csv-delimiter - The delimiter to use when parsing CSV data. If not specified, the default delimiter is `,`.
28
- * @param X-Axiom-CSV-Fields - A list of optional comma separated fields to use for CSV ingestion. If not specified, the first line of the CSV will be used as the field names.
29
- * @param X-Axiom-Event-Labels - An optional JSON encoded object with additional labels to add to all events in the request
30
- */
31
- export const ingestToDataset = /*@__PURE__*/ API.make(() => ({
32
- inputSchema: IngestToDatasetInput,
33
- outputSchema: IngestToDatasetOutput,
34
- errors: [BadRequest, NotFound, UnprocessableEntity],
35
- }));
36
- //# sourceMappingURL=ingestToDataset.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ingestToDataset.js","sourceRoot":"","sources":["../../../src/operations/v1-edge-ingest/ingestToDataset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,KAAK,CAAC,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAS5E,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC9D,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC/C,iBAAiB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACjD,kBAAkB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAClD,eAAe,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CAChD,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,kCAAkC,EAAE,CAAC,CACpB,CAAC;AAWnD,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC/D,aAAa,EAAE,MAAM,CAAC,MAAM;IAC5B,MAAM,EAAE,MAAM,CAAC,MAAM;IACrB,QAAQ,EAAE,MAAM,CAAC,QAAQ,CACvB,MAAM,CAAC,KAAK,CACV,MAAM,CAAC,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC,MAAM;QACpB,SAAS,EAAE,MAAM,CAAC,MAAM;KACzB,CAAC,CACH,CACF;IACD,QAAQ,EAAE,MAAM,CAAC,MAAM;IACvB,cAAc,EAAE,MAAM,CAAC,MAAM;IAC7B,SAAS,EAAE,MAAM,CAAC,MAAM;CACzB,CAAmD,CAAC;AAErD,gBAAgB;AAChB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC3D,WAAW,EAAE,oBAAoB;IACjC,YAAY,EAAE,qBAAqB;IACnC,MAAM,EAAE,CAAC,UAAU,EAAE,QAAQ,EAAE,mBAAmB,CAAU;CAC7D,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from "./queryApl.ts";
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/v1-edge-query/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from "./queryApl.js";
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/v1-edge-query/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}