@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/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -17,6 +17,12 @@ export interface Config {
17
17
  declare const Credentials_base: Context.ServiceClass<Credentials, "AxiomCredentials", Effect.Effect<Config, never, never>>;
18
18
  export declare class Credentials extends Credentials_base {
19
19
  }
20
+ /** Layer from a plain API token + optional base URL / org ID. */
21
+ export declare const fromApiKey: (config: {
22
+ readonly apiKey: string | Redacted.Redacted<string>;
23
+ readonly apiBaseUrl?: string;
24
+ readonly orgId?: string;
25
+ }) => Layer.Layer<Credentials>;
20
26
  /**
21
27
  * Build {@link Credentials} from environment variables.
22
28
  *
@@ -25,6 +31,6 @@ export declare class Credentials extends Credentials_base {
25
31
  * regional edge deployments). Defaults to `https://api.axiom.co`.
26
32
  * - `AXIOM_ORG_ID` (optional) — organization ID, required for PATs.
27
33
  */
28
- export declare const CredentialsFromEnv: Layer.Layer<Credentials, never, never>;
34
+ export declare const CredentialsFromEnv: Layer.Layer<Credentials>;
29
35
  export {};
30
36
  //# sourceMappingURL=credentials.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AASA,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;AAG5C,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;AAE1B,iEAAiE;AACjE,eAAO,MAAM,UAAU,WAAY;IACjC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IACpD,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB,KAAG,KAAK,CAAC,KAAK,CAAC,WAAW,CAUxB,CAAC;AAWJ;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,KAAK,CAAC,WAAW,CA6BvD,CAAC"}
@@ -1,19 +1,35 @@
1
- import { ConfigError } from "@distilled.cloud/core/errors";
1
+ /**
2
+ * Axiom credentials — hand-written.
3
+ *
4
+ * API-compatible port of the distilled v0 axiom credentials module: the
5
+ * `Credentials` service holds an *effect* that resolves the current
6
+ * credentials on every request (the protocol layer resolves it per request
7
+ * on the calling fiber).
8
+ */
2
9
  import * as EffectConfig from "effect/Config";
3
10
  import * as Context from "effect/Context";
4
11
  import * as Effect from "effect/Effect";
5
12
  import * as Layer from "effect/Layer";
6
13
  import * as Option from "effect/Option";
7
14
  import * as Redacted from "effect/Redacted";
15
+ import { ConfigError } from "@distilled.cloud/core/errors";
8
16
  /** Default base URL for Axiom Cloud. Self-hosted users can override via AXIOM_URL. */
9
17
  export const DEFAULT_API_BASE_URL = "https://api.axiom.co";
10
18
  export class Credentials extends Context.Service()("AxiomCredentials") {
11
19
  }
20
+ /** Layer from a plain API token + optional base URL / org ID. */
21
+ export const fromApiKey = (config) => Layer.succeed(Credentials, Effect.succeed({
22
+ apiKey: Redacted.isRedacted(config.apiKey)
23
+ ? config.apiKey
24
+ : Redacted.make(config.apiKey),
25
+ apiBaseUrl: config.apiBaseUrl ?? DEFAULT_API_BASE_URL,
26
+ orgId: config.orgId,
27
+ }));
12
28
  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")),
29
+ apiToken: EffectConfig.option(EffectConfig.String("AXIOM_TOKEN")),
30
+ apiKey: EffectConfig.option(EffectConfig.String("AXIOM_API_KEY")),
31
+ apiBaseUrl: EffectConfig.String("AXIOM_URL").pipe(EffectConfig.withDefault(DEFAULT_API_BASE_URL)),
32
+ orgId: EffectConfig.option(EffectConfig.String("AXIOM_ORG_ID")),
17
33
  });
18
34
  /**
19
35
  * Build {@link Credentials} from environment variables.
@@ -1 +1 @@
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,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 * (`ingestToDataset`), served from the same canonical host
4
+ * (https://api.axiom.co) under the `/v1` prefix.
5
+ */
6
+ export * from "./services/edge_ingest.ts";
2
7
  //# sourceMappingURL=edge-ingest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"edge-ingest.d.ts","sourceRoot":"","sources":["../src/edge-ingest.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC"}
1
+ {"version":3,"file":"edge-ingest.d.ts","sourceRoot":"","sources":["../src/edge-ingest.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,2BAA2B,CAAC"}
@@ -1,2 +1,7 @@
1
- export * from "./operations/v1-edge-ingest/index.js";
1
+ /**
2
+ * `@distilled.cloud/axiom/edge-ingest` — the v1 edge ingest API
3
+ * (`ingestToDataset`), served from the same canonical host
4
+ * (https://api.axiom.co) under the `/v1` prefix.
5
+ */
6
+ export * from "./services/edge_ingest.js";
2
7
  //# sourceMappingURL=edge-ingest.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"edge-ingest.js","sourceRoot":"","sources":["../src/edge-ingest.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC"}
1
+ {"version":3,"file":"edge-ingest.js","sourceRoot":"","sources":["../src/edge-ingest.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,2BAA2B,CAAC"}
@@ -1,2 +1,7 @@
1
- export * from "./operations/v1-edge-query/index.ts";
1
+ /**
2
+ * `@distilled.cloud/axiom/edge-query` — the v1 edge query API (`queryApl`),
3
+ * served from the same canonical host (https://api.axiom.co) under the `/v1`
4
+ * prefix.
5
+ */
6
+ export * from "./services/edge_query.ts";
2
7
  //# sourceMappingURL=edge-query.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"edge-query.d.ts","sourceRoot":"","sources":["../src/edge-query.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC"}
1
+ {"version":3,"file":"edge-query.d.ts","sourceRoot":"","sources":["../src/edge-query.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,0BAA0B,CAAC"}
package/lib/edge-query.js CHANGED
@@ -1,2 +1,7 @@
1
- export * from "./operations/v1-edge-query/index.js";
1
+ /**
2
+ * `@distilled.cloud/axiom/edge-query` — the v1 edge query API (`queryApl`),
3
+ * served from the same canonical host (https://api.axiom.co) under the `/v1`
4
+ * prefix.
5
+ */
6
+ export * from "./services/edge_query.js";
2
7
  //# sourceMappingURL=edge-query.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"edge-query.js","sourceRoot":"","sources":["../src/edge-query.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC"}
1
+ {"version":3,"file":"edge-query.js","sourceRoot":"","sources":["../src/edge-query.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,0BAA0B,CAAC"}
package/lib/errors.d.ts CHANGED
@@ -1,8 +1,11 @@
1
1
  /**
2
2
  * Axiom-specific error types.
3
3
  *
4
- * Re-exports common HTTP errors from sdk-core and adds Axiom-specific
5
- * error matching and API error types.
4
+ * Re-exports the common HTTP errors from core and adds the Axiom fallback
5
+ * errors. Note the generated service modules additionally define their own
6
+ * per-status matcher classes (BadRequest/NotFound/…) for the statuses each
7
+ * operation declares — those share `_tag`s with the core classes here, so
8
+ * `catchTag` works against either.
6
9
  */
7
10
  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
11
  export type { DefaultErrors } from "@distilled.cloud/core/errors";
@@ -16,6 +19,7 @@ declare const UnknownAxiomError_base: Schema.Class<UnknownAxiomError, Schema.Tag
16
19
  ServerError: true;
17
20
  };
18
21
  });
22
+ /** Unknown Axiom error — returned when nothing else matches the failure. */
19
23
  export declare class UnknownAxiomError extends UnknownAxiomError_base {
20
24
  }
21
25
  declare const AxiomParseError_base: Schema.Class<AxiomParseError, Schema.TaggedStruct<"AxiomParseError", {
@@ -26,6 +30,7 @@ declare const AxiomParseError_base: Schema.Class<AxiomParseError, Schema.TaggedS
26
30
  ParseError: true;
27
31
  };
28
32
  });
33
+ /** Schema parse error wrapper (kept for v0 surface parity). */
29
34
  export declare class AxiomParseError extends AxiomParseError_base {
30
35
  }
31
36
  //# sourceMappingURL=errors.d.ts.map
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;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;;;;;;;;;;AAGxC,4EAA4E;AAC5E,qBAAa,iBAAkB,SAAQ,sBAOP;CAAG;;;;;;;;;AAEnC,+DAA+D;AAC/D,qBAAa,eAAgB,SAAQ,oBAMN;CAAG"}
package/lib/errors.js CHANGED
@@ -1,21 +1,24 @@
1
1
  /**
2
2
  * Axiom-specific error types.
3
3
  *
4
- * Re-exports common HTTP errors from sdk-core and adds Axiom-specific
5
- * error matching and API error types.
4
+ * Re-exports the common HTTP errors from core and adds the Axiom fallback
5
+ * errors. Note the generated service modules additionally define their own
6
+ * per-status matcher classes (BadRequest/NotFound/…) for the statuses each
7
+ * operation declares — those share `_tag`s with the core classes here, so
8
+ * `catchTag` works against either.
6
9
  */
7
10
  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
11
  import * as Schema from "effect/Schema";
9
12
  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", {
13
+ /** Unknown Axiom error — returned when nothing else matches the failure. */
14
+ export class UnknownAxiomError extends Schema.TaggedError()("UnknownAxiomError", {
12
15
  code: Schema.optional(Schema.String),
13
16
  message: Schema.optional(Schema.String),
14
17
  body: Schema.Unknown,
15
18
  }).pipe(Category.withServerError) {
16
19
  }
17
- // Schema parse error wrapper
18
- export class AxiomParseError extends Schema.TaggedErrorClass()("AxiomParseError", {
20
+ /** Schema parse error wrapper (kept for v0 surface parity). */
21
+ export class AxiomParseError extends Schema.TaggedError()("AxiomParseError", {
19
22
  body: Schema.Unknown,
20
23
  cause: Schema.Unknown,
21
24
  }).pipe(Category.withParseError) {
package/lib/errors.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;GAK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OAAO,KAAK,QAAQ,MAAM,gCAAgC,CAAC;AAE3D,4EAA4E;AAC5E,MAAM,OAAO,iBAAkB,SAAQ,MAAM,CAAC,WAAW,EAAqB,CAC5E,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,+DAA+D;AAC/D,MAAM,OAAO,eAAgB,SAAQ,MAAM,CAAC,WAAW,EAAmB,CACxE,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 CHANGED
@@ -1,22 +1,29 @@
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 { AxiomProtocol, stripNulls, type AxiomOpError, type AxiomOpContext, } from "./protocol.ts";
17
25
  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";
26
+ export * as Services from "./services/index.ts";
27
+ export * from "./services/v2.ts";
28
+ export { BadRequest, Conflict, Forbidden, NotFound, UnprocessableEntity, } from "./services/v2.ts";
22
29
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EACL,aAAa,EACb,UAAU,EACV,KAAK,YAAY,EACjB,KAAK,cAAc,GACpB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAKhD,cAAc,kBAAkB,CAAC;AACjC,OAAO,EACL,UAAU,EACV,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,mBAAmB,GACpB,MAAM,kBAAkB,CAAC"}
package/lib/index.js CHANGED
@@ -1,22 +1,33 @@
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.js";
15
- export * as Category from "./category.js";
22
+ export * from "./errors.js";
16
23
  export * as T from "./traits.js";
24
+ export { AxiomProtocol, stripNulls, } from "./protocol.js";
17
25
  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";
26
+ export * as Services from "./services/index.js";
27
+ // v0-parity surface: the v2 control-plane operations live on the package
28
+ // root (edge-ingest / edge-query stay behind their subpath exports).
29
+ // The service-local typed error classes shadow the same-named shared ones
30
+ // from ./errors.ts — the ops actually raise the service-local classes.
31
+ export * from "./services/v2.js";
32
+ export { BadRequest, Conflict, Forbidden, NotFound, UnprocessableEntity, } from "./services/v2.js";
22
33
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
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
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EACL,aAAa,EACb,UAAU,GAGX,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAChD,yEAAyE;AACzE,qEAAqE;AACrE,0EAA0E;AAC1E,uEAAuE;AACvE,cAAc,kBAAkB,CAAC;AACjC,OAAO,EACL,UAAU,EACV,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,mBAAmB,GACpB,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,28 @@
1
+ import type * as Layer from "effect/Layer";
2
+ import type * as HttpClient from "effect/unstable/http/HttpClient";
3
+ import type * as HttpClientError from "effect/unstable/http/HttpClientError";
4
+ import type * as API from "@distilled.cloud/core/api";
5
+ import type { API_ERRORS, ConfigError } from "@distilled.cloud/core/errors";
6
+ import { Credentials } from "./credentials.ts";
7
+ import { UnknownAxiomError } from "./errors.ts";
8
+ /**
9
+ * Error channel shared by every generated Axiom operation. Generated service
10
+ * files annotate operations with `API.OperationMethod<I, O, AxiomOpError,
11
+ * AxiomOpContext>` explicitly so the compiler never infers these back out of
12
+ * the schema generics.
13
+ */
14
+ export type AxiomOpError = InstanceType<(typeof API_ERRORS)[number]> | UnknownAxiomError | ConfigError | HttpClientError.HttpClientError;
15
+ /** Context (requirements) shared by every generated Axiom operation. */
16
+ export type AxiomOpContext = Credentials | HttpClient.HttpClient;
17
+ /**
18
+ * Axiom's backend (Go) serializes nil slices and omitted optional fields as
19
+ * JSON `null`. The generated output schemas model these as optional members
20
+ * (value or absent), so `null` trips decoding. Recursively drop explicit
21
+ * `null` properties before decoding so optional fields are treated as
22
+ * absent. Keys that are genuinely nullable in the API are patched to
23
+ * nullable in the spec — this hook exists for the far more common "Go nil
24
+ * slice" case.
25
+ */
26
+ export declare const stripNulls: (value: unknown) => unknown;
27
+ export declare const AxiomProtocol: Layer.Layer<API.Protocol>;
28
+ //# sourceMappingURL=protocol.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../src/protocol.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAC;AAE3C,OAAO,KAAK,KAAK,UAAU,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,KAAK,eAAe,MAAM,sCAAsC,CAAC;AAC7E,OAAO,KAAK,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAKtD,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAe,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GACpB,YAAY,CAAC,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,GACzC,iBAAiB,GACjB,WAAW,GACX,eAAe,CAAC,eAAe,CAAC;AAEpC,wEAAwE;AACxE,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,UAAU,CAAC,UAAU,CAAC;AAEjE;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,UAAW,OAAO,KAAG,OAW3C,CAAC;AAkBF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAqBhD,CAAC"}