@distilled.cloud/axiom 0.0.0 → 0.12.7
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.
- package/README.md +61 -6
- package/lib/category.d.ts +5 -0
- package/lib/category.d.ts.map +1 -0
- package/lib/category.js +5 -0
- package/lib/category.js.map +1 -0
- package/lib/client.d.ts +10 -0
- package/lib/client.d.ts.map +1 -0
- package/lib/client.js +102 -0
- package/lib/client.js.map +1 -0
- package/lib/credentials.d.ts +30 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +31 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +31 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +23 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +16 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +16 -0
- package/lib/index.js.map +1 -0
- package/lib/operations/index.d.ts +4 -0
- package/lib/operations/index.d.ts.map +1 -0
- package/lib/operations/index.js +4 -0
- package/lib/operations/index.js.map +1 -0
- package/lib/operations/v1-edge-ingest/index.d.ts +2 -0
- package/lib/operations/v1-edge-ingest/index.d.ts.map +1 -0
- package/lib/operations/v1-edge-ingest/index.js +2 -0
- package/lib/operations/v1-edge-ingest/index.js.map +1 -0
- package/lib/operations/v1-edge-ingest/ingestToDataset.d.ts +46 -0
- package/lib/operations/v1-edge-ingest/ingestToDataset.d.ts.map +1 -0
- package/lib/operations/v1-edge-ingest/ingestToDataset.js +38 -0
- package/lib/operations/v1-edge-ingest/ingestToDataset.js.map +1 -0
- package/lib/operations/v1-edge-query/index.d.ts +2 -0
- package/lib/operations/v1-edge-query/index.d.ts.map +1 -0
- package/lib/operations/v1-edge-query/index.js +2 -0
- package/lib/operations/v1-edge-query/index.js.map +1 -0
- package/lib/operations/v1-edge-query/queryApl.d.ts +124 -0
- package/lib/operations/v1-edge-query/queryApl.d.ts.map +1 -0
- package/lib/operations/v1-edge-query/queryApl.js +74 -0
- package/lib/operations/v1-edge-query/queryApl.js.map +1 -0
- package/lib/operations/v2/createAPIToken.d.ts +165 -0
- package/lib/operations/v2/createAPIToken.d.ts.map +1 -0
- package/lib/operations/v2/createAPIToken.js +91 -0
- package/lib/operations/v2/createAPIToken.js.map +1 -0
- package/lib/operations/v2/createAnnotation.d.ts +45 -0
- package/lib/operations/v2/createAnnotation.d.ts.map +1 -0
- package/lib/operations/v2/createAnnotation.js +35 -0
- package/lib/operations/v2/createAnnotation.js.map +1 -0
- package/lib/operations/v2/createDashboard.d.ts +147 -0
- package/lib/operations/v2/createDashboard.d.ts.map +1 -0
- package/lib/operations/v2/createDashboard.js +115 -0
- package/lib/operations/v2/createDashboard.js.map +1 -0
- package/lib/operations/v2/createDataset.d.ts +55 -0
- package/lib/operations/v2/createDataset.d.ts.map +1 -0
- package/lib/operations/v2/createDataset.js +51 -0
- package/lib/operations/v2/createDataset.js.map +1 -0
- package/lib/operations/v2/createGroup.d.ts +39 -0
- package/lib/operations/v2/createGroup.d.ts.map +1 -0
- package/lib/operations/v2/createGroup.js +33 -0
- package/lib/operations/v2/createGroup.js.map +1 -0
- package/lib/operations/v2/createMapField.d.ts +18 -0
- package/lib/operations/v2/createMapField.d.ts.map +1 -0
- package/lib/operations/v2/createMapField.js +20 -0
- package/lib/operations/v2/createMapField.js.map +1 -0
- package/lib/operations/v2/createMonitor.d.ts +117 -0
- package/lib/operations/v2/createMonitor.d.ts.map +1 -0
- package/lib/operations/v2/createMonitor.js +83 -0
- package/lib/operations/v2/createMonitor.js.map +1 -0
- package/lib/operations/v2/createNotifier.d.ts +181 -0
- package/lib/operations/v2/createNotifier.d.ts.map +1 -0
- package/lib/operations/v2/createNotifier.js +100 -0
- package/lib/operations/v2/createNotifier.js.map +1 -0
- package/lib/operations/v2/createOrg.d.ts +101 -0
- package/lib/operations/v2/createOrg.d.ts.map +1 -0
- package/lib/operations/v2/createOrg.js +77 -0
- package/lib/operations/v2/createOrg.js.map +1 -0
- package/lib/operations/v2/createRole.d.ts +163 -0
- package/lib/operations/v2/createRole.d.ts.map +1 -0
- package/lib/operations/v2/createRole.js +91 -0
- package/lib/operations/v2/createRole.js.map +1 -0
- package/lib/operations/v2/createStarred.d.ts +166 -0
- package/lib/operations/v2/createStarred.d.ts.map +1 -0
- package/lib/operations/v2/createStarred.js +102 -0
- package/lib/operations/v2/createStarred.js.map +1 -0
- package/lib/operations/v2/createUser.d.ts +35 -0
- package/lib/operations/v2/createUser.d.ts.map +1 -0
- package/lib/operations/v2/createUser.js +30 -0
- package/lib/operations/v2/createUser.js.map +1 -0
- package/lib/operations/v2/createView.d.ts +36 -0
- package/lib/operations/v2/createView.d.ts.map +1 -0
- package/lib/operations/v2/createView.js +29 -0
- package/lib/operations/v2/createView.js.map +1 -0
- package/lib/operations/v2/createVirtualField.d.ts +38 -0
- package/lib/operations/v2/createVirtualField.d.ts.map +1 -0
- package/lib/operations/v2/createVirtualField.js +32 -0
- package/lib/operations/v2/createVirtualField.js.map +1 -0
- package/lib/operations/v2/deleteAPIToken.d.ts +15 -0
- package/lib/operations/v2/deleteAPIToken.d.ts.map +1 -0
- package/lib/operations/v2/deleteAPIToken.js +20 -0
- package/lib/operations/v2/deleteAPIToken.js.map +1 -0
- package/lib/operations/v2/deleteAnnotation.d.ts +17 -0
- package/lib/operations/v2/deleteAnnotation.d.ts.map +1 -0
- package/lib/operations/v2/deleteAnnotation.js +22 -0
- package/lib/operations/v2/deleteAnnotation.js.map +1 -0
- package/lib/operations/v2/deleteDashboard.d.ts +17 -0
- package/lib/operations/v2/deleteDashboard.d.ts.map +1 -0
- package/lib/operations/v2/deleteDashboard.js +22 -0
- package/lib/operations/v2/deleteDashboard.js.map +1 -0
- package/lib/operations/v2/deleteDataset.d.ts +15 -0
- package/lib/operations/v2/deleteDataset.d.ts.map +1 -0
- package/lib/operations/v2/deleteDataset.js +20 -0
- package/lib/operations/v2/deleteDataset.js.map +1 -0
- package/lib/operations/v2/deleteGroup.d.ts +19 -0
- package/lib/operations/v2/deleteGroup.d.ts.map +1 -0
- package/lib/operations/v2/deleteGroup.js +24 -0
- package/lib/operations/v2/deleteGroup.js.map +1 -0
- package/lib/operations/v2/deleteMapField.d.ts +14 -0
- package/lib/operations/v2/deleteMapField.d.ts.map +1 -0
- package/lib/operations/v2/deleteMapField.js +21 -0
- package/lib/operations/v2/deleteMapField.js.map +1 -0
- package/lib/operations/v2/deleteMonitor.d.ts +15 -0
- package/lib/operations/v2/deleteMonitor.d.ts.map +1 -0
- package/lib/operations/v2/deleteMonitor.js +20 -0
- package/lib/operations/v2/deleteMonitor.js.map +1 -0
- package/lib/operations/v2/deleteNotifier.d.ts +15 -0
- package/lib/operations/v2/deleteNotifier.d.ts.map +1 -0
- package/lib/operations/v2/deleteNotifier.js +20 -0
- package/lib/operations/v2/deleteNotifier.js.map +1 -0
- package/lib/operations/v2/deleteRole.d.ts +19 -0
- package/lib/operations/v2/deleteRole.d.ts.map +1 -0
- package/lib/operations/v2/deleteRole.js +24 -0
- package/lib/operations/v2/deleteRole.js.map +1 -0
- package/lib/operations/v2/deleteStarred.d.ts +12 -0
- package/lib/operations/v2/deleteStarred.d.ts.map +1 -0
- package/lib/operations/v2/deleteStarred.js +17 -0
- package/lib/operations/v2/deleteStarred.js.map +1 -0
- package/lib/operations/v2/deleteView.d.ts +12 -0
- package/lib/operations/v2/deleteView.d.ts.map +1 -0
- package/lib/operations/v2/deleteView.js +17 -0
- package/lib/operations/v2/deleteView.js.map +1 -0
- package/lib/operations/v2/deleteVirtualField.d.ts +12 -0
- package/lib/operations/v2/deleteVirtualField.d.ts.map +1 -0
- package/lib/operations/v2/deleteVirtualField.js +18 -0
- package/lib/operations/v2/deleteVirtualField.js.map +1 -0
- package/lib/operations/v2/getAPIToken.d.ts +93 -0
- package/lib/operations/v2/getAPIToken.d.ts.map +1 -0
- package/lib/operations/v2/getAPIToken.js +57 -0
- package/lib/operations/v2/getAPIToken.js.map +1 -0
- package/lib/operations/v2/getAPITokens.d.ts +88 -0
- package/lib/operations/v2/getAPITokens.d.ts.map +1 -0
- package/lib/operations/v2/getAPITokens.js +53 -0
- package/lib/operations/v2/getAPITokens.js.map +1 -0
- package/lib/operations/v2/getAnnotation.d.ts +35 -0
- package/lib/operations/v2/getAnnotation.d.ts.map +1 -0
- package/lib/operations/v2/getAnnotation.js +31 -0
- package/lib/operations/v2/getAnnotation.js.map +1 -0
- package/lib/operations/v2/getAnnotations.d.ts +40 -0
- package/lib/operations/v2/getAnnotations.d.ts.map +1 -0
- package/lib/operations/v2/getAnnotations.js +33 -0
- package/lib/operations/v2/getAnnotations.js.map +1 -0
- package/lib/operations/v2/getCurrentUser.d.ts +26 -0
- package/lib/operations/v2/getCurrentUser.d.ts.map +1 -0
- package/lib/operations/v2/getCurrentUser.js +24 -0
- package/lib/operations/v2/getCurrentUser.js.map +1 -0
- package/lib/operations/v2/getDashboard.d.ts +83 -0
- package/lib/operations/v2/getDashboard.d.ts.map +1 -0
- package/lib/operations/v2/getDashboard.js +69 -0
- package/lib/operations/v2/getDashboard.js.map +1 -0
- package/lib/operations/v2/getDataset.d.ts +41 -0
- package/lib/operations/v2/getDataset.d.ts.map +1 -0
- package/lib/operations/v2/getDataset.js +38 -0
- package/lib/operations/v2/getDataset.js.map +1 -0
- package/lib/operations/v2/getDatasets.d.ts +37 -0
- package/lib/operations/v2/getDatasets.d.ts.map +1 -0
- package/lib/operations/v2/getDatasets.js +36 -0
- package/lib/operations/v2/getDatasets.js.map +1 -0
- package/lib/operations/v2/getFieldForDataset.d.ts +26 -0
- package/lib/operations/v2/getFieldForDataset.d.ts.map +1 -0
- package/lib/operations/v2/getFieldForDataset.js +29 -0
- package/lib/operations/v2/getFieldForDataset.js.map +1 -0
- package/lib/operations/v2/getFieldsForDataset.d.ts +24 -0
- package/lib/operations/v2/getFieldsForDataset.d.ts.map +1 -0
- package/lib/operations/v2/getFieldsForDataset.js +25 -0
- package/lib/operations/v2/getFieldsForDataset.js.map +1 -0
- package/lib/operations/v2/getGroupById.d.ts +33 -0
- package/lib/operations/v2/getGroupById.d.ts.map +1 -0
- package/lib/operations/v2/getGroupById.js +31 -0
- package/lib/operations/v2/getGroupById.js.map +1 -0
- package/lib/operations/v2/getMapFields.d.ts +12 -0
- package/lib/operations/v2/getMapFields.d.ts.map +1 -0
- package/lib/operations/v2/getMapFields.js +17 -0
- package/lib/operations/v2/getMapFields.js.map +1 -0
- package/lib/operations/v2/getMonitor.d.ts +71 -0
- package/lib/operations/v2/getMonitor.d.ts.map +1 -0
- package/lib/operations/v2/getMonitor.js +55 -0
- package/lib/operations/v2/getMonitor.js.map +1 -0
- package/lib/operations/v2/getMonitorHistory.d.ts +32 -0
- package/lib/operations/v2/getMonitorHistory.d.ts.map +1 -0
- package/lib/operations/v2/getMonitorHistory.js +30 -0
- package/lib/operations/v2/getMonitorHistory.js.map +1 -0
- package/lib/operations/v2/getMonitors.d.ts +64 -0
- package/lib/operations/v2/getMonitors.d.ts.map +1 -0
- package/lib/operations/v2/getMonitors.js +49 -0
- package/lib/operations/v2/getMonitors.js.map +1 -0
- package/lib/operations/v2/getNotifier.d.ts +103 -0
- package/lib/operations/v2/getNotifier.d.ts.map +1 -0
- package/lib/operations/v2/getNotifier.js +64 -0
- package/lib/operations/v2/getNotifier.js.map +1 -0
- package/lib/operations/v2/getNotifiers.d.ts +96 -0
- package/lib/operations/v2/getNotifiers.d.ts.map +1 -0
- package/lib/operations/v2/getNotifiers.js +58 -0
- package/lib/operations/v2/getNotifiers.js.map +1 -0
- package/lib/operations/v2/getOrg.d.ts +100 -0
- package/lib/operations/v2/getOrg.d.ts.map +1 -0
- package/lib/operations/v2/getOrg.js +78 -0
- package/lib/operations/v2/getOrg.js.map +1 -0
- package/lib/operations/v2/getOrgs.d.ts +95 -0
- package/lib/operations/v2/getOrgs.d.ts.map +1 -0
- package/lib/operations/v2/getOrgs.js +74 -0
- package/lib/operations/v2/getOrgs.js.map +1 -0
- package/lib/operations/v2/getRoleById.d.ts +95 -0
- package/lib/operations/v2/getRoleById.d.ts.map +1 -0
- package/lib/operations/v2/getRoleById.js +60 -0
- package/lib/operations/v2/getRoleById.js.map +1 -0
- package/lib/operations/v2/getStarred.d.ts +92 -0
- package/lib/operations/v2/getStarred.d.ts.map +1 -0
- package/lib/operations/v2/getStarred.js +61 -0
- package/lib/operations/v2/getStarred.js.map +1 -0
- package/lib/operations/v2/getStarredQueries.d.ts +106 -0
- package/lib/operations/v2/getStarredQueries.d.ts.map +1 -0
- package/lib/operations/v2/getStarredQueries.js +70 -0
- package/lib/operations/v2/getStarredQueries.js.map +1 -0
- package/lib/operations/v2/getUser.d.ts +31 -0
- package/lib/operations/v2/getUser.d.ts.map +1 -0
- package/lib/operations/v2/getUser.js +28 -0
- package/lib/operations/v2/getUser.js.map +1 -0
- package/lib/operations/v2/getUsers.d.ts +26 -0
- package/lib/operations/v2/getUsers.d.ts.map +1 -0
- package/lib/operations/v2/getUsers.js +24 -0
- package/lib/operations/v2/getUsers.js.map +1 -0
- package/lib/operations/v2/getView.d.ts +26 -0
- package/lib/operations/v2/getView.d.ts.map +1 -0
- package/lib/operations/v2/getView.js +24 -0
- package/lib/operations/v2/getView.js.map +1 -0
- package/lib/operations/v2/getViews.d.ts +21 -0
- package/lib/operations/v2/getViews.d.ts.map +1 -0
- package/lib/operations/v2/getViews.js +20 -0
- package/lib/operations/v2/getViews.js.map +1 -0
- package/lib/operations/v2/getVirtualField.d.ts +28 -0
- package/lib/operations/v2/getVirtualField.d.ts.map +1 -0
- package/lib/operations/v2/getVirtualField.js +25 -0
- package/lib/operations/v2/getVirtualField.js.map +1 -0
- package/lib/operations/v2/getVirtualFields.d.ts +27 -0
- package/lib/operations/v2/getVirtualFields.d.ts.map +1 -0
- package/lib/operations/v2/getVirtualFields.js +23 -0
- package/lib/operations/v2/getVirtualFields.js.map +1 -0
- package/lib/operations/v2/index.d.ts +77 -0
- package/lib/operations/v2/index.d.ts.map +1 -0
- package/lib/operations/v2/index.js +77 -0
- package/lib/operations/v2/index.js.map +1 -0
- package/lib/operations/v2/listDashboards.d.ts +84 -0
- package/lib/operations/v2/listDashboards.d.ts.map +1 -0
- package/lib/operations/v2/listDashboards.js +68 -0
- package/lib/operations/v2/listDashboards.js.map +1 -0
- package/lib/operations/v2/listGroups.d.ts +26 -0
- package/lib/operations/v2/listGroups.d.ts.map +1 -0
- package/lib/operations/v2/listGroups.js +25 -0
- package/lib/operations/v2/listGroups.js.map +1 -0
- package/lib/operations/v2/listRoles.d.ts +88 -0
- package/lib/operations/v2/listRoles.d.ts.map +1 -0
- package/lib/operations/v2/listRoles.js +54 -0
- package/lib/operations/v2/listRoles.js.map +1 -0
- package/lib/operations/v2/regenerateAPIToken.d.ts +175 -0
- package/lib/operations/v2/regenerateAPIToken.d.ts.map +1 -0
- package/lib/operations/v2/regenerateAPIToken.js +98 -0
- package/lib/operations/v2/regenerateAPIToken.js.map +1 -0
- package/lib/operations/v2/removeUserFromOrg.d.ts +15 -0
- package/lib/operations/v2/removeUserFromOrg.d.ts.map +1 -0
- package/lib/operations/v2/removeUserFromOrg.js +20 -0
- package/lib/operations/v2/removeUserFromOrg.js.map +1 -0
- package/lib/operations/v2/trimDataset.d.ts +19 -0
- package/lib/operations/v2/trimDataset.d.ts.map +1 -0
- package/lib/operations/v2/trimDataset.js +23 -0
- package/lib/operations/v2/trimDataset.js.map +1 -0
- package/lib/operations/v2/updateAnnotation.d.ts +49 -0
- package/lib/operations/v2/updateAnnotation.d.ts.map +1 -0
- package/lib/operations/v2/updateAnnotation.js +38 -0
- package/lib/operations/v2/updateAnnotation.js.map +1 -0
- package/lib/operations/v2/updateCurrentUser.d.ts +30 -0
- package/lib/operations/v2/updateCurrentUser.d.ts.map +1 -0
- package/lib/operations/v2/updateCurrentUser.js +27 -0
- package/lib/operations/v2/updateCurrentUser.js.map +1 -0
- package/lib/operations/v2/updateDashboard.d.ts +147 -0
- package/lib/operations/v2/updateDashboard.d.ts.map +1 -0
- package/lib/operations/v2/updateDashboard.js +115 -0
- package/lib/operations/v2/updateDashboard.js.map +1 -0
- package/lib/operations/v2/updateDataset.d.ts +47 -0
- package/lib/operations/v2/updateDataset.d.ts.map +1 -0
- package/lib/operations/v2/updateDataset.js +41 -0
- package/lib/operations/v2/updateDataset.js.map +1 -0
- package/lib/operations/v2/updateFieldForDataset.d.ts +36 -0
- package/lib/operations/v2/updateFieldForDataset.d.ts.map +1 -0
- package/lib/operations/v2/updateFieldForDataset.js +34 -0
- package/lib/operations/v2/updateFieldForDataset.js.map +1 -0
- package/lib/operations/v2/updateGroup.d.ts +43 -0
- package/lib/operations/v2/updateGroup.d.ts.map +1 -0
- package/lib/operations/v2/updateGroup.js +36 -0
- package/lib/operations/v2/updateGroup.js.map +1 -0
- package/lib/operations/v2/updateMapFields.d.ts +12 -0
- package/lib/operations/v2/updateMapFields.d.ts.map +1 -0
- package/lib/operations/v2/updateMapFields.js +17 -0
- package/lib/operations/v2/updateMapFields.js.map +1 -0
- package/lib/operations/v2/updateMonitor.d.ts +119 -0
- package/lib/operations/v2/updateMonitor.d.ts.map +1 -0
- package/lib/operations/v2/updateMonitor.js +84 -0
- package/lib/operations/v2/updateMonitor.js.map +1 -0
- package/lib/operations/v2/updateNotifier.d.ts +183 -0
- package/lib/operations/v2/updateNotifier.d.ts.map +1 -0
- package/lib/operations/v2/updateNotifier.js +101 -0
- package/lib/operations/v2/updateNotifier.js.map +1 -0
- package/lib/operations/v2/updateOrg.d.ts +102 -0
- package/lib/operations/v2/updateOrg.d.ts.map +1 -0
- package/lib/operations/v2/updateOrg.js +79 -0
- package/lib/operations/v2/updateOrg.js.map +1 -0
- package/lib/operations/v2/updateRole.d.ts +167 -0
- package/lib/operations/v2/updateRole.d.ts.map +1 -0
- package/lib/operations/v2/updateRole.js +94 -0
- package/lib/operations/v2/updateRole.js.map +1 -0
- package/lib/operations/v2/updateStarred.d.ts +168 -0
- package/lib/operations/v2/updateStarred.d.ts.map +1 -0
- package/lib/operations/v2/updateStarred.js +103 -0
- package/lib/operations/v2/updateStarred.js.map +1 -0
- package/lib/operations/v2/updateUserRole.d.ts +33 -0
- package/lib/operations/v2/updateUserRole.d.ts.map +1 -0
- package/lib/operations/v2/updateUserRole.js +29 -0
- package/lib/operations/v2/updateUserRole.js.map +1 -0
- package/lib/operations/v2/updateView.d.ts +38 -0
- package/lib/operations/v2/updateView.d.ts.map +1 -0
- package/lib/operations/v2/updateView.js +30 -0
- package/lib/operations/v2/updateView.js.map +1 -0
- package/lib/operations/v2/updateVirtualField.d.ts +40 -0
- package/lib/operations/v2/updateVirtualField.d.ts.map +1 -0
- package/lib/operations/v2/updateVirtualField.js +33 -0
- package/lib/operations/v2/updateVirtualField.js.map +1 -0
- package/lib/operations/v2/vacuumDataset.d.ts +11 -0
- package/lib/operations/v2/vacuumDataset.d.ts.map +1 -0
- package/lib/operations/v2/vacuumDataset.js +15 -0
- package/lib/operations/v2/vacuumDataset.js.map +1 -0
- package/lib/retry.d.ts +22 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +21 -0
- package/lib/retry.js.map +1 -0
- package/lib/sensitive.d.ts +5 -0
- package/lib/sensitive.d.ts.map +1 -0
- package/lib/sensitive.js +5 -0
- package/lib/sensitive.js.map +1 -0
- package/lib/traits.d.ts +5 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +5 -0
- package/lib/traits.js.map +1 -0
- package/package.json +80 -7
- package/src/category.ts +4 -0
- package/src/client.ts +112 -0
- package/src/credentials.ts +51 -0
- package/src/errors.ts +47 -0
- package/src/index.ts +15 -0
- package/src/operations/index.ts +3 -0
- package/src/operations/v1-edge-ingest/index.ts +1 -0
- package/src/operations/v1-edge-ingest/ingestToDataset.ts +46 -0
- package/src/operations/v1-edge-query/index.ts +1 -0
- package/src/operations/v1-edge-query/queryApl.ts +84 -0
- package/src/operations/v2/createAPIToken.ts +185 -0
- package/src/operations/v2/createAnnotation.ts +41 -0
- package/src/operations/v2/createDashboard.ts +127 -0
- package/src/operations/v2/createDataset.ts +57 -0
- package/src/operations/v2/createGroup.ts +37 -0
- package/src/operations/v2/createMapField.ts +26 -0
- package/src/operations/v2/createMonitor.ts +91 -0
- package/src/operations/v2/createNotifier.ts +144 -0
- package/src/operations/v2/createOrg.ts +81 -0
- package/src/operations/v2/createRole.ts +191 -0
- package/src/operations/v2/createStarred.ts +130 -0
- package/src/operations/v2/createUser.ts +36 -0
- package/src/operations/v2/createView.ts +33 -0
- package/src/operations/v2/createVirtualField.ts +36 -0
- package/src/operations/v2/deleteAPIToken.ts +24 -0
- package/src/operations/v2/deleteAnnotation.ts +26 -0
- package/src/operations/v2/deleteDashboard.ts +26 -0
- package/src/operations/v2/deleteDataset.ts +24 -0
- package/src/operations/v2/deleteGroup.ts +28 -0
- package/src/operations/v2/deleteMapField.ts +27 -0
- package/src/operations/v2/deleteMonitor.ts +24 -0
- package/src/operations/v2/deleteNotifier.ts +24 -0
- package/src/operations/v2/deleteRole.ts +28 -0
- package/src/operations/v2/deleteStarred.ts +21 -0
- package/src/operations/v2/deleteView.ts +21 -0
- package/src/operations/v2/deleteVirtualField.ts +22 -0
- package/src/operations/v2/getAPIToken.ts +103 -0
- package/src/operations/v2/getAPITokens.ts +105 -0
- package/src/operations/v2/getAnnotation.ts +35 -0
- package/src/operations/v2/getAnnotations.ts +39 -0
- package/src/operations/v2/getCurrentUser.ts +32 -0
- package/src/operations/v2/getDashboard.ts +77 -0
- package/src/operations/v2/getDataset.ts +42 -0
- package/src/operations/v2/getDatasets.ts +44 -0
- package/src/operations/v2/getFieldForDataset.ts +35 -0
- package/src/operations/v2/getFieldsForDataset.ts +31 -0
- package/src/operations/v2/getGroupById.ts +35 -0
- package/src/operations/v2/getMapFields.ts +23 -0
- package/src/operations/v2/getMonitor.ts +61 -0
- package/src/operations/v2/getMonitorHistory.ts +38 -0
- package/src/operations/v2/getMonitors.ts +59 -0
- package/src/operations/v2/getNotifier.ts +88 -0
- package/src/operations/v2/getNotifiers.ts +86 -0
- package/src/operations/v2/getOrg.ts +82 -0
- package/src/operations/v2/getOrgs.ts +82 -0
- package/src/operations/v2/getRoleById.ts +112 -0
- package/src/operations/v2/getStarred.ts +77 -0
- package/src/operations/v2/getStarredQueries.ts +92 -0
- package/src/operations/v2/getUser.ts +34 -0
- package/src/operations/v2/getUsers.ts +34 -0
- package/src/operations/v2/getView.ts +28 -0
- package/src/operations/v2/getViews.ts +28 -0
- package/src/operations/v2/getVirtualField.ts +29 -0
- package/src/operations/v2/getVirtualFields.ts +29 -0
- package/src/operations/v2/index.ts +76 -0
- package/src/operations/v2/listDashboards.ts +78 -0
- package/src/operations/v2/listGroups.ts +33 -0
- package/src/operations/v2/listRoles.ts +114 -0
- package/src/operations/v2/regenerateAPIToken.ts +228 -0
- package/src/operations/v2/removeUserFromOrg.ts +26 -0
- package/src/operations/v2/trimDataset.ts +27 -0
- package/src/operations/v2/updateAnnotation.ts +44 -0
- package/src/operations/v2/updateCurrentUser.ts +35 -0
- package/src/operations/v2/updateDashboard.ts +127 -0
- package/src/operations/v2/updateDataset.ts +45 -0
- package/src/operations/v2/updateFieldForDataset.ts +43 -0
- package/src/operations/v2/updateGroup.ts +40 -0
- package/src/operations/v2/updateMapFields.ts +23 -0
- package/src/operations/v2/updateMonitor.ts +92 -0
- package/src/operations/v2/updateNotifier.ts +145 -0
- package/src/operations/v2/updateOrg.ts +83 -0
- package/src/operations/v2/updateRole.ts +194 -0
- package/src/operations/v2/updateStarred.ts +131 -0
- package/src/operations/v2/updateUserRole.ts +35 -0
- package/src/operations/v2/updateView.ts +34 -0
- package/src/operations/v2/updateVirtualField.ts +37 -0
- package/src/operations/v2/vacuumDataset.ts +19 -0
- package/src/retry.ts +35 -0
- package/src/sensitive.ts +4 -0
- package/src/traits.ts +4 -0
- package/bun.lock +0 -26
- package/index.ts +0 -1
- package/tsconfig.json +0 -29
package/README.md
CHANGED
|
@@ -1,15 +1,70 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @distilled.cloud/axiom
|
|
2
2
|
|
|
3
|
-
|
|
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
|
|
4
6
|
|
|
5
7
|
```bash
|
|
6
|
-
|
|
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);
|
|
7
27
|
```
|
|
8
28
|
|
|
9
|
-
|
|
29
|
+
## Configuration
|
|
30
|
+
|
|
31
|
+
Set the following environment variables:
|
|
10
32
|
|
|
11
33
|
```bash
|
|
12
|
-
|
|
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
|
|
13
37
|
```
|
|
14
38
|
|
|
15
|
-
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../src/category.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,gCAAgC,CAAC"}
|
package/lib/category.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category.js","sourceRoot":"","sources":["../src/category.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,gCAAgC,CAAC"}
|
package/lib/client.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export { UnknownAxiomError } from "./errors.ts";
|
|
3
|
+
/**
|
|
4
|
+
* Axiom API client.
|
|
5
|
+
*/
|
|
6
|
+
export declare const API: {
|
|
7
|
+
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]>, any>;
|
|
8
|
+
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]>, any>;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AASxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AA4EhD;;GAEG;AACH,eAAO,MAAM,GAAG;;;CAed,CAAC"}
|
package/lib/client.js
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
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 { HTTP_STATUS_MAP, UnknownAxiomError, AxiomParseError, } from "./errors.js";
|
|
12
|
+
// Re-export for backwards compatibility
|
|
13
|
+
export { UnknownAxiomError } from "./errors.js";
|
|
14
|
+
import { Credentials } from "./credentials.js";
|
|
15
|
+
/**
|
|
16
|
+
* Axiom returns two error envelope shapes:
|
|
17
|
+
* - control-plane / edge-ingest: `{ "code": "...", "message": "..." }`
|
|
18
|
+
* - edge-query: `{ "error": "...", "message": "..." }`
|
|
19
|
+
* Plus some endpoints return plain `{ message: "..." }`.
|
|
20
|
+
* We accept all of them and extract a unified `message`/`code` pair.
|
|
21
|
+
*/
|
|
22
|
+
const ApiErrorResponse = Schema.Struct({
|
|
23
|
+
code: Schema.optional(Schema.Union([Schema.String, Schema.Number])),
|
|
24
|
+
error: Schema.optional(Schema.String),
|
|
25
|
+
message: Schema.optional(Schema.String),
|
|
26
|
+
});
|
|
27
|
+
/**
|
|
28
|
+
* Match an Axiom API error response to the appropriate error class based on
|
|
29
|
+
* HTTP status.
|
|
30
|
+
*
|
|
31
|
+
* Strategy: HTTP status is the authoritative signal. We always try status-based
|
|
32
|
+
* matching first, then enrich with a message parsed from the body if we can.
|
|
33
|
+
* Non-JSON responses (plain text "Forbidden", empty bodies, HTML error pages)
|
|
34
|
+
* still map to the correct typed error via status code.
|
|
35
|
+
*/
|
|
36
|
+
const matchError = (status, errorBody) => {
|
|
37
|
+
const ErrorClass = HTTP_STATUS_MAP[status];
|
|
38
|
+
let message = "";
|
|
39
|
+
let code;
|
|
40
|
+
try {
|
|
41
|
+
const parsed = Schema.decodeUnknownSync(ApiErrorResponse)(errorBody);
|
|
42
|
+
message = parsed.message ?? parsed.error ?? "";
|
|
43
|
+
code = parsed.code ?? parsed.error;
|
|
44
|
+
}
|
|
45
|
+
catch {
|
|
46
|
+
if (typeof errorBody === "string") {
|
|
47
|
+
message = errorBody;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
if (ErrorClass) {
|
|
51
|
+
return Effect.fail(new ErrorClass({ message }));
|
|
52
|
+
}
|
|
53
|
+
return Effect.fail(new UnknownAxiomError({
|
|
54
|
+
code: typeof code === "number" ? String(code) : code,
|
|
55
|
+
message,
|
|
56
|
+
body: errorBody,
|
|
57
|
+
}));
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Axiom's backend (Go) serializes nil slices and omitted optional fields as
|
|
61
|
+
* JSON `null`. The generated output schemas model these as `Schema.optional(…)`
|
|
62
|
+
* which accepts only the value or `undefined`, so `null` trips decoding.
|
|
63
|
+
*
|
|
64
|
+
* Recursively drop explicit `null` properties before decoding so optional
|
|
65
|
+
* fields simply get treated as absent. Keys that are genuinely nullable in
|
|
66
|
+
* the API should be patched to `Schema.NullOr(…)` in the spec — this hook
|
|
67
|
+
* exists for the far more common "Go nil slice" case.
|
|
68
|
+
*/
|
|
69
|
+
const stripNulls = (value) => {
|
|
70
|
+
if (Array.isArray(value))
|
|
71
|
+
return value.map(stripNulls);
|
|
72
|
+
if (value && typeof value === "object") {
|
|
73
|
+
const out = {};
|
|
74
|
+
for (const [k, v] of Object.entries(value)) {
|
|
75
|
+
if (v === null)
|
|
76
|
+
continue;
|
|
77
|
+
out[k] = stripNulls(v);
|
|
78
|
+
}
|
|
79
|
+
return out;
|
|
80
|
+
}
|
|
81
|
+
return value;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Axiom API client.
|
|
85
|
+
*/
|
|
86
|
+
export const API = makeAPI({
|
|
87
|
+
credentials: Credentials,
|
|
88
|
+
getBaseUrl: (creds) => creds.apiBaseUrl,
|
|
89
|
+
getAuthHeaders: (creds) => {
|
|
90
|
+
const headers = {
|
|
91
|
+
Authorization: `Bearer ${Redacted.value(creds.apiKey)}`,
|
|
92
|
+
};
|
|
93
|
+
if (creds.orgId) {
|
|
94
|
+
headers["X-Axiom-Org-ID"] = creds.orgId;
|
|
95
|
+
}
|
|
96
|
+
return headers;
|
|
97
|
+
},
|
|
98
|
+
matchError,
|
|
99
|
+
ParseError: AxiomParseError,
|
|
100
|
+
transformResponse: stripNulls,
|
|
101
|
+
});
|
|
102
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,eAAe,GAChB,MAAM,aAAa,CAAC;AAErB,wCAAwC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;GAMG;AACH,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC;IACrC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;IACnE,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACrC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACxC,CAAC,CAAC;AAEH;;;;;;;;GAQG;AACH,MAAM,UAAU,GAAG,CACjB,MAAc,EACd,SAAkB,EACa,EAAE;IACjC,MAAM,UAAU,GAAI,eAAuB,CAAC,MAAM,CAAC,CAAC;IACpD,IAAI,OAAO,GAAG,EAAE,CAAC;IACjB,IAAI,IAAiC,CAAC;IACtC,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC;QACrE,OAAO,GAAG,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC;QAC/C,IAAI,GAAG,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,KAAK,CAAC;IACrC,CAAC;IAAC,MAAM,CAAC;QACP,IAAI,OAAO,SAAS,KAAK,QAAQ,EAAE,CAAC;YAClC,OAAO,GAAG,SAAS,CAAC;QACtB,CAAC;IACH,CAAC;IACD,IAAI,UAAU,EAAE,CAAC;QACf,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;IAClD,CAAC;IACD,OAAO,MAAM,CAAC,IAAI,CAChB,IAAI,iBAAiB,CAAC;QACpB,IAAI,EAAE,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI;QACpD,OAAO;QACP,IAAI,EAAE,SAAS;KAChB,CAAC,CACH,CAAC;AACJ,CAAC,CAAC;AAEF;;;;;;;;;GASG;AACH,MAAM,UAAU,GAAG,CAAC,KAAc,EAAW,EAAE;IAC7C,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACvD,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QACvC,MAAM,GAAG,GAA4B,EAAE,CAAC;QACxC,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAgC,CAAC,EAAE,CAAC;YACtE,IAAI,CAAC,KAAK,IAAI;gBAAE,SAAS;YACzB,GAAG,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;QACzB,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,OAAO,CAAC;IACzB,WAAW,EAAE,WAAkB;IAC/B,UAAU,EAAE,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU;IAC5C,cAAc,EAAE,CAAC,KAAU,EAAE,EAAE;QAC7B,MAAM,OAAO,GAA2B;YACtC,aAAa,EAAE,UAAU,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;SACxD,CAAC;QACF,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC;YAChB,OAAO,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC;QAC1C,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,UAAU;IACV,UAAU,EAAE,eAAsB;IAClC,iBAAiB,EAAE,UAAU;CAC9B,CAAC,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as Layer from "effect/Layer";
|
|
2
|
+
import * as Redacted from "effect/Redacted";
|
|
3
|
+
import * as Context from "effect/Context";
|
|
4
|
+
import { ConfigError } from "@distilled.cloud/core/errors";
|
|
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", Config>;
|
|
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, ConfigError, never>;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=credentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,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,gBAEhC;CAAG;AAEJ;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,8CAkB9B,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect";
|
|
2
|
+
import * as Layer from "effect/Layer";
|
|
3
|
+
import * as Redacted from "effect/Redacted";
|
|
4
|
+
import * as Context from "effect/Context";
|
|
5
|
+
import { ConfigError } from "@distilled.cloud/core/errors";
|
|
6
|
+
/** Default base URL for Axiom Cloud. Self-hosted users can override via AXIOM_URL. */
|
|
7
|
+
export const DEFAULT_API_BASE_URL = "https://api.axiom.co";
|
|
8
|
+
export class Credentials extends Context.Service()("AxiomCredentials") {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Build {@link Credentials} from environment variables.
|
|
12
|
+
*
|
|
13
|
+
* - `AXIOM_TOKEN` or `AXIOM_API_KEY` (required) — Axiom API token or PAT.
|
|
14
|
+
* - `AXIOM_URL` (optional) — override the API base URL (for self-hosted or
|
|
15
|
+
* regional edge deployments). Defaults to `https://api.axiom.co`.
|
|
16
|
+
* - `AXIOM_ORG_ID` (optional) — organization ID, required for PATs.
|
|
17
|
+
*/
|
|
18
|
+
export const CredentialsFromEnv = Layer.effect(Credentials, Effect.gen(function* () {
|
|
19
|
+
const apiKey = process.env.AXIOM_TOKEN ?? process.env.AXIOM_API_KEY;
|
|
20
|
+
if (!apiKey) {
|
|
21
|
+
return yield* new ConfigError({
|
|
22
|
+
message: "AXIOM_TOKEN (or AXIOM_API_KEY) environment variable is required",
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
apiKey: Redacted.make(apiKey),
|
|
27
|
+
apiBaseUrl: process.env.AXIOM_URL ?? DEFAULT_API_BASE_URL,
|
|
28
|
+
orgId: process.env.AXIOM_ORG_ID,
|
|
29
|
+
};
|
|
30
|
+
}));
|
|
31
|
+
//# sourceMappingURL=credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,sFAAsF;AACtF,MAAM,CAAC,MAAM,oBAAoB,GAAG,sBAAsB,CAAC;AAa3D,MAAM,OAAO,WAAY,SAAQ,OAAO,CAAC,OAAO,EAAuB,CACrE,kBAAkB,CACnB;CAAG;AAEJ;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,CAAC,MAAM,CAC5C,WAAW,EACX,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW,IAAI,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC;IAEpE,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,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,oBAAoB;QACzD,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY;KAChC,CAAC;AACJ,CAAC,CAAC,CACH,CAAC"}
|
package/lib/errors.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
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
|
|
@@ -0,0 +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"}
|
package/lib/errors.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Axiom SDK for Effect
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* \`\`\`ts
|
|
6
|
+
* import * as Axiom from "@distilled.cloud/axiom";
|
|
7
|
+
* \`\`\`
|
|
8
|
+
*/
|
|
9
|
+
export * from "./credentials.ts";
|
|
10
|
+
export * as Category from "./category.ts";
|
|
11
|
+
export * as T from "./traits.ts";
|
|
12
|
+
export * as Retry from "./retry.ts";
|
|
13
|
+
export { API } from "./client.ts";
|
|
14
|
+
export * from "./errors.ts";
|
|
15
|
+
export { SensitiveString, SensitiveNullableString } from "./sensitive.ts";
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;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"}
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Axiom SDK for Effect
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* \`\`\`ts
|
|
6
|
+
* import * as Axiom from "@distilled.cloud/axiom";
|
|
7
|
+
* \`\`\`
|
|
8
|
+
*/
|
|
9
|
+
export * from "./credentials.js";
|
|
10
|
+
export * as Category from "./category.js";
|
|
11
|
+
export * as T from "./traits.js";
|
|
12
|
+
export * as Retry from "./retry.js";
|
|
13
|
+
export { API } from "./client.js";
|
|
14
|
+
export * from "./errors.js";
|
|
15
|
+
export { SensitiveString, SensitiveNullableString } from "./sensitive.js";
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/operations/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/operations/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/v1-edge-ingest/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/v1-edge-ingest/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { BadRequest, NotFound, UnprocessableEntity } from "../../errors";
|
|
3
|
+
export declare const IngestToDatasetInput: Schema.Struct<{
|
|
4
|
+
readonly "dataset-id": Schema.String;
|
|
5
|
+
readonly "timestamp-field": Schema.optional<Schema.String>;
|
|
6
|
+
readonly "timestamp-format": Schema.optional<Schema.String>;
|
|
7
|
+
readonly "csv-delimiter": Schema.optional<Schema.String>;
|
|
8
|
+
}>;
|
|
9
|
+
export type IngestToDatasetInput = typeof IngestToDatasetInput.Type;
|
|
10
|
+
export declare const IngestToDatasetOutput: Schema.Struct<{
|
|
11
|
+
readonly blocksCreated: Schema.Number;
|
|
12
|
+
readonly failed: Schema.Number;
|
|
13
|
+
readonly failures: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
14
|
+
readonly error: Schema.String;
|
|
15
|
+
readonly timestamp: Schema.String;
|
|
16
|
+
}>>>;
|
|
17
|
+
readonly ingested: Schema.Number;
|
|
18
|
+
readonly processedBytes: Schema.Number;
|
|
19
|
+
readonly walLength: Schema.Number;
|
|
20
|
+
}>;
|
|
21
|
+
export type IngestToDatasetOutput = typeof IngestToDatasetOutput.Type;
|
|
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<{
|
|
31
|
+
readonly "csv-delimiter"?: string | undefined;
|
|
32
|
+
readonly "dataset-id": string;
|
|
33
|
+
readonly "timestamp-field"?: string | undefined;
|
|
34
|
+
readonly "timestamp-format"?: string | undefined;
|
|
35
|
+
}, {
|
|
36
|
+
readonly blocksCreated: number;
|
|
37
|
+
readonly failed: number;
|
|
38
|
+
readonly failures?: readonly {
|
|
39
|
+
readonly error: string;
|
|
40
|
+
readonly timestamp: string;
|
|
41
|
+
}[] | undefined;
|
|
42
|
+
readonly ingested: number;
|
|
43
|
+
readonly processedBytes: number;
|
|
44
|
+
readonly walLength: number;
|
|
45
|
+
}, BadRequest | NotFound | UnprocessableEntity, any>;
|
|
46
|
+
//# sourceMappingURL=ingestToDataset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,cAAc,CAAC;AAGzE,eAAO,MAAM,oBAAoB;;;;;EAK4C,CAAC;AAC9E,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,IAAI,CAAC;AAGpE,eAAO,MAAM,qBAAqB;;;;;;;;;;EAchC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,IAAI,CAAC;AAGtE;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;oDAIzB,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../../client";
|
|
3
|
+
import * as T from "../../traits";
|
|
4
|
+
import { BadRequest, NotFound, UnprocessableEntity } from "../../errors";
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const IngestToDatasetInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
"dataset-id": Schema.String.pipe(T.PathParam()),
|
|
8
|
+
"timestamp-field": Schema.optional(Schema.String),
|
|
9
|
+
"timestamp-format": Schema.optional(Schema.String),
|
|
10
|
+
"csv-delimiter": Schema.optional(Schema.String),
|
|
11
|
+
}).pipe(T.Http({ method: "POST", path: "/v1/datasets/{dataset-id}/ingest" }));
|
|
12
|
+
// Output Schema
|
|
13
|
+
export const IngestToDatasetOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
14
|
+
blocksCreated: Schema.Number,
|
|
15
|
+
failed: Schema.Number,
|
|
16
|
+
failures: Schema.optional(Schema.Array(Schema.Struct({
|
|
17
|
+
error: Schema.String,
|
|
18
|
+
timestamp: Schema.String,
|
|
19
|
+
}))),
|
|
20
|
+
ingested: Schema.Number,
|
|
21
|
+
processedBytes: Schema.Number,
|
|
22
|
+
walLength: Schema.Number,
|
|
23
|
+
});
|
|
24
|
+
// The operation
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @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.
|
|
28
|
+
* @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
|
|
29
|
+
* @param csv-delimiter - The delimiter to use when parsing CSV data. If not specified, the default delimiter is `,`.
|
|
30
|
+
* @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.
|
|
31
|
+
* @param X-Axiom-Event-Labels - An optional JSON encoded object with additional labels to add to all events in the request
|
|
32
|
+
*/
|
|
33
|
+
export const ingestToDataset = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
34
|
+
inputSchema: IngestToDatasetInput,
|
|
35
|
+
outputSchema: IngestToDatasetOutput,
|
|
36
|
+
errors: [BadRequest, NotFound, UnprocessableEntity],
|
|
37
|
+
}));
|
|
38
|
+
//# sourceMappingURL=ingestToDataset.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEzE,eAAe;AACf,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC5E,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,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,kCAAkC,EAAE,CAAC,CAAC,CAAC;AAG9E,gBAAgB;AAChB,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC7E,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,CAAC,CAAC;AAGH,gBAAgB;AAChB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACzE,WAAW,EAAE,oBAAoB;IACjC,YAAY,EAAE,qBAAqB;IACnC,MAAM,EAAE,CAAC,UAAU,EAAE,QAAQ,EAAE,mBAAmB,CAAU;CAC7D,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/v1-edge-query/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/v1-edge-query/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|