@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
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../../client";
|
|
3
|
+
import * as T from "../../traits";
|
|
4
|
+
import { BadRequest, UnprocessableEntity } from "../../errors";
|
|
5
|
+
|
|
6
|
+
// Input Schema
|
|
7
|
+
export const CreateAnnotationInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
datasets: Schema.Array(Schema.String),
|
|
9
|
+
description: Schema.optional(Schema.String),
|
|
10
|
+
endTime: Schema.optional(Schema.String),
|
|
11
|
+
time: Schema.optional(Schema.String),
|
|
12
|
+
title: Schema.optional(Schema.String),
|
|
13
|
+
type: Schema.String,
|
|
14
|
+
url: Schema.optional(Schema.String),
|
|
15
|
+
}).pipe(T.Http({ method: "POST", path: "/v2/annotations" }));
|
|
16
|
+
export type CreateAnnotationInput = typeof CreateAnnotationInput.Type;
|
|
17
|
+
|
|
18
|
+
// Output Schema
|
|
19
|
+
export const CreateAnnotationOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
20
|
+
{
|
|
21
|
+
datasets: Schema.Array(Schema.String),
|
|
22
|
+
description: Schema.optional(Schema.String),
|
|
23
|
+
endTime: Schema.optional(Schema.NullOr(Schema.String)),
|
|
24
|
+
id: Schema.String,
|
|
25
|
+
time: Schema.String,
|
|
26
|
+
title: Schema.optional(Schema.String),
|
|
27
|
+
type: Schema.String,
|
|
28
|
+
url: Schema.optional(Schema.String),
|
|
29
|
+
},
|
|
30
|
+
);
|
|
31
|
+
export type CreateAnnotationOutput = typeof CreateAnnotationOutput.Type;
|
|
32
|
+
|
|
33
|
+
// The operation
|
|
34
|
+
/**
|
|
35
|
+
* Create annotation
|
|
36
|
+
*/
|
|
37
|
+
export const createAnnotation = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
38
|
+
inputSchema: CreateAnnotationInput,
|
|
39
|
+
outputSchema: CreateAnnotationOutput,
|
|
40
|
+
errors: [BadRequest, UnprocessableEntity] as const,
|
|
41
|
+
}));
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../../client";
|
|
3
|
+
import * as T from "../../traits";
|
|
4
|
+
import { BadRequest, Conflict } from "../../errors";
|
|
5
|
+
|
|
6
|
+
// Input Schema
|
|
7
|
+
export const CreateDashboardInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
dashboard: Schema.Struct({
|
|
9
|
+
name: Schema.String,
|
|
10
|
+
owner: Schema.String,
|
|
11
|
+
description: Schema.optional(Schema.String),
|
|
12
|
+
charts: Schema.Array(Schema.Unknown),
|
|
13
|
+
layout: Schema.Array(
|
|
14
|
+
Schema.Struct({
|
|
15
|
+
i: Schema.String,
|
|
16
|
+
x: Schema.Number,
|
|
17
|
+
y: Schema.NullOr(Schema.Number),
|
|
18
|
+
w: Schema.Number,
|
|
19
|
+
h: Schema.Number,
|
|
20
|
+
minW: Schema.optional(Schema.Number),
|
|
21
|
+
minH: Schema.optional(Schema.Number),
|
|
22
|
+
maxW: Schema.optional(Schema.Number),
|
|
23
|
+
maxH: Schema.optional(Schema.Number),
|
|
24
|
+
static: Schema.optional(Schema.Boolean),
|
|
25
|
+
}),
|
|
26
|
+
),
|
|
27
|
+
refreshTime: Schema.Literals([15, 60, 300]),
|
|
28
|
+
schemaVersion: Schema.Literals([2]),
|
|
29
|
+
against: Schema.optional(
|
|
30
|
+
Schema.Literals([
|
|
31
|
+
"-1h",
|
|
32
|
+
"-3h",
|
|
33
|
+
"-6h",
|
|
34
|
+
"-12h",
|
|
35
|
+
"-1d",
|
|
36
|
+
"-3d",
|
|
37
|
+
"-7d",
|
|
38
|
+
"-1w",
|
|
39
|
+
"-2w",
|
|
40
|
+
"-3w",
|
|
41
|
+
"-30d",
|
|
42
|
+
"-60d",
|
|
43
|
+
"-90d",
|
|
44
|
+
]),
|
|
45
|
+
),
|
|
46
|
+
againstTimestamp: Schema.optional(Schema.String),
|
|
47
|
+
timeWindowStart: Schema.String,
|
|
48
|
+
timeWindowEnd: Schema.String,
|
|
49
|
+
uid: Schema.optional(Schema.String),
|
|
50
|
+
}),
|
|
51
|
+
message: Schema.optional(Schema.String),
|
|
52
|
+
overwrite: Schema.optional(Schema.Boolean),
|
|
53
|
+
uid: Schema.optional(Schema.String),
|
|
54
|
+
version: Schema.optional(Schema.Unknown),
|
|
55
|
+
}).pipe(T.Http({ method: "POST", path: "/v2/dashboards" }));
|
|
56
|
+
export type CreateDashboardInput = typeof CreateDashboardInput.Type;
|
|
57
|
+
|
|
58
|
+
// Output Schema
|
|
59
|
+
export const CreateDashboardOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
60
|
+
dashboard: Schema.Struct({
|
|
61
|
+
createdAt: Schema.String,
|
|
62
|
+
createdBy: Schema.String,
|
|
63
|
+
dashboard: Schema.Struct({
|
|
64
|
+
name: Schema.String,
|
|
65
|
+
owner: Schema.String,
|
|
66
|
+
description: Schema.optional(Schema.String),
|
|
67
|
+
charts: Schema.Array(Schema.Unknown),
|
|
68
|
+
layout: Schema.Array(
|
|
69
|
+
Schema.Struct({
|
|
70
|
+
i: Schema.String,
|
|
71
|
+
x: Schema.Number,
|
|
72
|
+
y: Schema.NullOr(Schema.Number),
|
|
73
|
+
w: Schema.Number,
|
|
74
|
+
h: Schema.Number,
|
|
75
|
+
minW: Schema.optional(Schema.Number),
|
|
76
|
+
minH: Schema.optional(Schema.Number),
|
|
77
|
+
maxW: Schema.optional(Schema.Number),
|
|
78
|
+
maxH: Schema.optional(Schema.Number),
|
|
79
|
+
static: Schema.optional(Schema.Boolean),
|
|
80
|
+
}),
|
|
81
|
+
),
|
|
82
|
+
refreshTime: Schema.Literals([15, 60, 300]),
|
|
83
|
+
schemaVersion: Schema.Literals([2]),
|
|
84
|
+
against: Schema.optional(
|
|
85
|
+
Schema.Literals([
|
|
86
|
+
"-1h",
|
|
87
|
+
"-3h",
|
|
88
|
+
"-6h",
|
|
89
|
+
"-12h",
|
|
90
|
+
"-1d",
|
|
91
|
+
"-3d",
|
|
92
|
+
"-7d",
|
|
93
|
+
"-1w",
|
|
94
|
+
"-2w",
|
|
95
|
+
"-3w",
|
|
96
|
+
"-30d",
|
|
97
|
+
"-60d",
|
|
98
|
+
"-90d",
|
|
99
|
+
]),
|
|
100
|
+
),
|
|
101
|
+
againstTimestamp: Schema.optional(Schema.String),
|
|
102
|
+
timeWindowStart: Schema.String,
|
|
103
|
+
timeWindowEnd: Schema.String,
|
|
104
|
+
uid: Schema.optional(Schema.String),
|
|
105
|
+
}),
|
|
106
|
+
id: Schema.String,
|
|
107
|
+
uid: Schema.String,
|
|
108
|
+
updatedAt: Schema.String,
|
|
109
|
+
updatedBy: Schema.String,
|
|
110
|
+
version: Schema.Unknown,
|
|
111
|
+
}),
|
|
112
|
+
overwritten: Schema.optional(Schema.Boolean),
|
|
113
|
+
status: Schema.Literals(["created", "updated"]),
|
|
114
|
+
});
|
|
115
|
+
export type CreateDashboardOutput = typeof CreateDashboardOutput.Type;
|
|
116
|
+
|
|
117
|
+
// The operation
|
|
118
|
+
/**
|
|
119
|
+
* Create dashboard
|
|
120
|
+
*
|
|
121
|
+
* Create a dashboard from a dashboard document payload.
|
|
122
|
+
*/
|
|
123
|
+
export const createDashboard = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
124
|
+
inputSchema: CreateDashboardInput,
|
|
125
|
+
outputSchema: CreateDashboardOutput,
|
|
126
|
+
errors: [BadRequest, Conflict] as const,
|
|
127
|
+
}));
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../../client";
|
|
3
|
+
import * as T from "../../traits";
|
|
4
|
+
import { BadRequest, Forbidden, UnprocessableEntity } from "../../errors";
|
|
5
|
+
|
|
6
|
+
// Input Schema
|
|
7
|
+
export const CreateDatasetInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
referrer: Schema.optional(Schema.String),
|
|
9
|
+
description: Schema.optional(Schema.String),
|
|
10
|
+
edgeDeployment: Schema.optional(Schema.String),
|
|
11
|
+
kind: Schema.optional(
|
|
12
|
+
Schema.Literals([
|
|
13
|
+
"otel:metrics:v1",
|
|
14
|
+
"otel:traces:v1",
|
|
15
|
+
"otel:logs:v1",
|
|
16
|
+
"axiom:events:v1",
|
|
17
|
+
]),
|
|
18
|
+
),
|
|
19
|
+
name: Schema.String,
|
|
20
|
+
retentionDays: Schema.optional(Schema.Number),
|
|
21
|
+
useRetentionPeriod: Schema.optional(Schema.Boolean),
|
|
22
|
+
}).pipe(T.Http({ method: "POST", path: "/v2/datasets" }));
|
|
23
|
+
export type CreateDatasetInput = typeof CreateDatasetInput.Type;
|
|
24
|
+
|
|
25
|
+
// Output Schema
|
|
26
|
+
export const CreateDatasetOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
27
|
+
canWrite: Schema.optional(Schema.Boolean),
|
|
28
|
+
created: Schema.String,
|
|
29
|
+
description: Schema.String,
|
|
30
|
+
edgeDeployment: Schema.optional(Schema.String),
|
|
31
|
+
id: Schema.String,
|
|
32
|
+
kind: Schema.Literals([
|
|
33
|
+
"otel:metrics:v1",
|
|
34
|
+
"otel:traces:v1",
|
|
35
|
+
"otel:logs:v1",
|
|
36
|
+
"axiom:events:v1",
|
|
37
|
+
]),
|
|
38
|
+
mapFields: Schema.optional(Schema.Array(Schema.String)),
|
|
39
|
+
name: Schema.String,
|
|
40
|
+
retentionDays: Schema.optional(Schema.Number),
|
|
41
|
+
sharedByOrg: Schema.optional(Schema.String),
|
|
42
|
+
useRetentionPeriod: Schema.optional(Schema.Boolean),
|
|
43
|
+
who: Schema.String,
|
|
44
|
+
});
|
|
45
|
+
export type CreateDatasetOutput = typeof CreateDatasetOutput.Type;
|
|
46
|
+
|
|
47
|
+
// The operation
|
|
48
|
+
/**
|
|
49
|
+
* Create dataset
|
|
50
|
+
*
|
|
51
|
+
* @param referrer - Referrer slug
|
|
52
|
+
*/
|
|
53
|
+
export const createDataset = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
54
|
+
inputSchema: CreateDatasetInput,
|
|
55
|
+
outputSchema: CreateDatasetOutput,
|
|
56
|
+
errors: [BadRequest, Forbidden, UnprocessableEntity] as const,
|
|
57
|
+
}));
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../../client";
|
|
3
|
+
import * as T from "../../traits";
|
|
4
|
+
import { UnprocessableEntity } from "../../errors";
|
|
5
|
+
|
|
6
|
+
// Input Schema
|
|
7
|
+
export const CreateGroupInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
description: Schema.optional(Schema.String),
|
|
9
|
+
isManaged: Schema.optional(Schema.Boolean),
|
|
10
|
+
members: Schema.optional(Schema.Array(Schema.String)),
|
|
11
|
+
name: Schema.String,
|
|
12
|
+
roles: Schema.optional(Schema.Array(Schema.String)),
|
|
13
|
+
}).pipe(T.Http({ method: "POST", path: "/v2/rbac/groups" }));
|
|
14
|
+
export type CreateGroupInput = typeof CreateGroupInput.Type;
|
|
15
|
+
|
|
16
|
+
// Output Schema
|
|
17
|
+
export const CreateGroupOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
18
|
+
description: Schema.optional(Schema.String),
|
|
19
|
+
isManaged: Schema.optional(Schema.Boolean),
|
|
20
|
+
members: Schema.optional(Schema.Array(Schema.String)),
|
|
21
|
+
name: Schema.String,
|
|
22
|
+
roles: Schema.optional(Schema.Array(Schema.String)),
|
|
23
|
+
id: Schema.String,
|
|
24
|
+
});
|
|
25
|
+
export type CreateGroupOutput = typeof CreateGroupOutput.Type;
|
|
26
|
+
|
|
27
|
+
// The operation
|
|
28
|
+
/**
|
|
29
|
+
* Create group
|
|
30
|
+
*
|
|
31
|
+
* Creates a new group in the organization.
|
|
32
|
+
*/
|
|
33
|
+
export const createGroup = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
34
|
+
inputSchema: CreateGroupInput,
|
|
35
|
+
outputSchema: CreateGroupOutput,
|
|
36
|
+
errors: [UnprocessableEntity] as const,
|
|
37
|
+
}));
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../../client";
|
|
3
|
+
import * as T from "../../traits";
|
|
4
|
+
import { NotFound, UnprocessableEntity } from "../../errors";
|
|
5
|
+
|
|
6
|
+
// Input Schema
|
|
7
|
+
export const CreateMapFieldInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
dataset_id: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
name: Schema.String,
|
|
10
|
+
}).pipe(
|
|
11
|
+
T.Http({ method: "POST", path: "/v2/datasets/{dataset_id}/mapfields" }),
|
|
12
|
+
);
|
|
13
|
+
export type CreateMapFieldInput = typeof CreateMapFieldInput.Type;
|
|
14
|
+
|
|
15
|
+
// Output Schema
|
|
16
|
+
export const CreateMapFieldOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
17
|
+
name: Schema.String,
|
|
18
|
+
});
|
|
19
|
+
export type CreateMapFieldOutput = typeof CreateMapFieldOutput.Type;
|
|
20
|
+
|
|
21
|
+
// The operation
|
|
22
|
+
export const createMapField = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
23
|
+
inputSchema: CreateMapFieldInput,
|
|
24
|
+
outputSchema: CreateMapFieldOutput,
|
|
25
|
+
errors: [NotFound, UnprocessableEntity] as const,
|
|
26
|
+
}));
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../../client";
|
|
3
|
+
import * as T from "../../traits";
|
|
4
|
+
import { UnprocessableEntity } from "../../errors";
|
|
5
|
+
|
|
6
|
+
// Input Schema
|
|
7
|
+
export const CreateMonitorInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
alertOnNoData: Schema.optional(Schema.Boolean),
|
|
9
|
+
aplQuery: Schema.optional(Schema.String),
|
|
10
|
+
columnName: Schema.optional(Schema.String),
|
|
11
|
+
compareDays: Schema.optional(Schema.Number),
|
|
12
|
+
createdAt: Schema.optional(Schema.String),
|
|
13
|
+
createdBy: Schema.optional(Schema.String),
|
|
14
|
+
description: Schema.optional(Schema.String),
|
|
15
|
+
disabled: Schema.optional(Schema.Boolean),
|
|
16
|
+
disabledUntil: Schema.optional(Schema.NullOr(Schema.String)),
|
|
17
|
+
intervalMinutes: Schema.optional(Schema.Number),
|
|
18
|
+
mplQuery: Schema.optional(Schema.String),
|
|
19
|
+
name: Schema.String,
|
|
20
|
+
notifierIds: Schema.optional(Schema.Array(Schema.String)),
|
|
21
|
+
notifyByGroup: Schema.optional(Schema.Boolean),
|
|
22
|
+
notifyEveryRun: Schema.optional(Schema.Boolean),
|
|
23
|
+
operator: Schema.optional(
|
|
24
|
+
Schema.Literals([
|
|
25
|
+
"Below",
|
|
26
|
+
"BelowOrEqual",
|
|
27
|
+
"Above",
|
|
28
|
+
"AboveOrEqual",
|
|
29
|
+
"AboveOrBelow",
|
|
30
|
+
]),
|
|
31
|
+
),
|
|
32
|
+
rangeMinutes: Schema.optional(Schema.Number),
|
|
33
|
+
resolvable: Schema.optional(Schema.Boolean),
|
|
34
|
+
secondDelay: Schema.optional(Schema.Number),
|
|
35
|
+
skipResolved: Schema.optional(Schema.Boolean),
|
|
36
|
+
threshold: Schema.optional(Schema.Number),
|
|
37
|
+
tolerance: Schema.optional(Schema.Number),
|
|
38
|
+
triggerAfterNPositiveResults: Schema.optional(Schema.Number),
|
|
39
|
+
triggerFromNRuns: Schema.optional(Schema.Number),
|
|
40
|
+
type: Schema.Literals(["Threshold", "MatchEvent", "AnomalyDetection"]),
|
|
41
|
+
}).pipe(T.Http({ method: "POST", path: "/v2/monitors" }));
|
|
42
|
+
export type CreateMonitorInput = typeof CreateMonitorInput.Type;
|
|
43
|
+
|
|
44
|
+
// Output Schema
|
|
45
|
+
export const CreateMonitorOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
46
|
+
alertOnNoData: Schema.optional(Schema.Boolean),
|
|
47
|
+
aplQuery: Schema.optional(Schema.String),
|
|
48
|
+
columnName: Schema.optional(Schema.String),
|
|
49
|
+
compareDays: Schema.optional(Schema.Number),
|
|
50
|
+
createdAt: Schema.optional(Schema.String),
|
|
51
|
+
createdBy: Schema.optional(Schema.String),
|
|
52
|
+
description: Schema.optional(Schema.String),
|
|
53
|
+
disabled: Schema.optional(Schema.Boolean),
|
|
54
|
+
disabledUntil: Schema.optional(Schema.NullOr(Schema.String)),
|
|
55
|
+
intervalMinutes: Schema.optional(Schema.Number),
|
|
56
|
+
mplQuery: Schema.optional(Schema.String),
|
|
57
|
+
name: Schema.String,
|
|
58
|
+
notifierIds: Schema.optional(Schema.Array(Schema.String)),
|
|
59
|
+
notifyByGroup: Schema.optional(Schema.Boolean),
|
|
60
|
+
notifyEveryRun: Schema.optional(Schema.Boolean),
|
|
61
|
+
operator: Schema.optional(
|
|
62
|
+
Schema.Literals([
|
|
63
|
+
"Below",
|
|
64
|
+
"BelowOrEqual",
|
|
65
|
+
"Above",
|
|
66
|
+
"AboveOrEqual",
|
|
67
|
+
"AboveOrBelow",
|
|
68
|
+
]),
|
|
69
|
+
),
|
|
70
|
+
rangeMinutes: Schema.optional(Schema.Number),
|
|
71
|
+
resolvable: Schema.optional(Schema.Boolean),
|
|
72
|
+
secondDelay: Schema.optional(Schema.Number),
|
|
73
|
+
skipResolved: Schema.optional(Schema.Boolean),
|
|
74
|
+
threshold: Schema.optional(Schema.Number),
|
|
75
|
+
tolerance: Schema.optional(Schema.Number),
|
|
76
|
+
triggerAfterNPositiveResults: Schema.optional(Schema.Number),
|
|
77
|
+
triggerFromNRuns: Schema.optional(Schema.Number),
|
|
78
|
+
type: Schema.Literals(["Threshold", "MatchEvent", "AnomalyDetection"]),
|
|
79
|
+
id: Schema.String,
|
|
80
|
+
});
|
|
81
|
+
export type CreateMonitorOutput = typeof CreateMonitorOutput.Type;
|
|
82
|
+
|
|
83
|
+
// The operation
|
|
84
|
+
/**
|
|
85
|
+
* Create monitor
|
|
86
|
+
*/
|
|
87
|
+
export const createMonitor = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
88
|
+
inputSchema: CreateMonitorInput,
|
|
89
|
+
outputSchema: CreateMonitorOutput,
|
|
90
|
+
errors: [UnprocessableEntity] as const,
|
|
91
|
+
}));
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../../client";
|
|
3
|
+
import * as T from "../../traits";
|
|
4
|
+
import { UnprocessableEntity } from "../../errors";
|
|
5
|
+
import { SensitiveString } from "../../sensitive";
|
|
6
|
+
|
|
7
|
+
// Input Schema
|
|
8
|
+
export const CreateNotifierInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
|
+
createdAt: Schema.optional(Schema.String),
|
|
10
|
+
createdBy: Schema.optional(Schema.String),
|
|
11
|
+
disabledUntil: Schema.optional(Schema.String),
|
|
12
|
+
name: Schema.String,
|
|
13
|
+
properties: Schema.Struct({
|
|
14
|
+
customWebhook: Schema.optional(
|
|
15
|
+
Schema.Struct({
|
|
16
|
+
body: Schema.String,
|
|
17
|
+
headers: Schema.optional(Schema.Record(Schema.String, Schema.String)),
|
|
18
|
+
secretHeaders: Schema.optional(
|
|
19
|
+
Schema.Record(Schema.String, Schema.String),
|
|
20
|
+
),
|
|
21
|
+
url: Schema.String,
|
|
22
|
+
}),
|
|
23
|
+
),
|
|
24
|
+
discord: Schema.optional(
|
|
25
|
+
Schema.Struct({
|
|
26
|
+
discordChannel: Schema.optional(Schema.String),
|
|
27
|
+
discordToken: Schema.optional(Schema.String),
|
|
28
|
+
}),
|
|
29
|
+
),
|
|
30
|
+
discordWebhook: Schema.optional(
|
|
31
|
+
Schema.Struct({
|
|
32
|
+
discordWebhookUrl: Schema.optional(Schema.String),
|
|
33
|
+
}),
|
|
34
|
+
),
|
|
35
|
+
email: Schema.optional(
|
|
36
|
+
Schema.Struct({
|
|
37
|
+
emails: Schema.optional(Schema.Array(Schema.String)),
|
|
38
|
+
}),
|
|
39
|
+
),
|
|
40
|
+
microsoftTeams: Schema.optional(
|
|
41
|
+
Schema.Struct({
|
|
42
|
+
microsoftTeamsUrl: Schema.optional(Schema.String),
|
|
43
|
+
}),
|
|
44
|
+
),
|
|
45
|
+
opsgenie: Schema.optional(
|
|
46
|
+
Schema.Struct({
|
|
47
|
+
apiKey: Schema.optional(SensitiveString),
|
|
48
|
+
isEU: Schema.optional(Schema.Boolean),
|
|
49
|
+
}),
|
|
50
|
+
),
|
|
51
|
+
pagerduty: Schema.optional(
|
|
52
|
+
Schema.Struct({
|
|
53
|
+
routingKey: Schema.optional(Schema.String),
|
|
54
|
+
token: Schema.optional(Schema.String),
|
|
55
|
+
}),
|
|
56
|
+
),
|
|
57
|
+
slack: Schema.optional(
|
|
58
|
+
Schema.Struct({
|
|
59
|
+
slackUrl: Schema.optional(Schema.String),
|
|
60
|
+
}),
|
|
61
|
+
),
|
|
62
|
+
webhook: Schema.optional(
|
|
63
|
+
Schema.Struct({
|
|
64
|
+
url: Schema.optional(Schema.String),
|
|
65
|
+
}),
|
|
66
|
+
),
|
|
67
|
+
}),
|
|
68
|
+
}).pipe(T.Http({ method: "POST", path: "/v2/notifiers" }));
|
|
69
|
+
export type CreateNotifierInput = typeof CreateNotifierInput.Type;
|
|
70
|
+
|
|
71
|
+
// Output Schema
|
|
72
|
+
export const CreateNotifierOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
73
|
+
createdAt: Schema.optional(Schema.String),
|
|
74
|
+
createdBy: Schema.optional(Schema.String),
|
|
75
|
+
disabledUntil: Schema.optional(Schema.String),
|
|
76
|
+
name: Schema.String,
|
|
77
|
+
properties: Schema.Struct({
|
|
78
|
+
customWebhook: Schema.optional(
|
|
79
|
+
Schema.Struct({
|
|
80
|
+
body: Schema.String,
|
|
81
|
+
headers: Schema.optional(Schema.Record(Schema.String, Schema.String)),
|
|
82
|
+
secretHeaders: Schema.optional(
|
|
83
|
+
Schema.Record(Schema.String, Schema.String),
|
|
84
|
+
),
|
|
85
|
+
url: Schema.String,
|
|
86
|
+
}),
|
|
87
|
+
),
|
|
88
|
+
discord: Schema.optional(
|
|
89
|
+
Schema.Struct({
|
|
90
|
+
discordChannel: Schema.optional(Schema.String),
|
|
91
|
+
discordToken: Schema.optional(Schema.String),
|
|
92
|
+
}),
|
|
93
|
+
),
|
|
94
|
+
discordWebhook: Schema.optional(
|
|
95
|
+
Schema.Struct({
|
|
96
|
+
discordWebhookUrl: Schema.optional(Schema.String),
|
|
97
|
+
}),
|
|
98
|
+
),
|
|
99
|
+
email: Schema.optional(
|
|
100
|
+
Schema.Struct({
|
|
101
|
+
emails: Schema.optional(Schema.Array(Schema.String)),
|
|
102
|
+
}),
|
|
103
|
+
),
|
|
104
|
+
microsoftTeams: Schema.optional(
|
|
105
|
+
Schema.Struct({
|
|
106
|
+
microsoftTeamsUrl: Schema.optional(Schema.String),
|
|
107
|
+
}),
|
|
108
|
+
),
|
|
109
|
+
opsgenie: Schema.optional(
|
|
110
|
+
Schema.Struct({
|
|
111
|
+
apiKey: Schema.optional(SensitiveString),
|
|
112
|
+
isEU: Schema.optional(Schema.Boolean),
|
|
113
|
+
}),
|
|
114
|
+
),
|
|
115
|
+
pagerduty: Schema.optional(
|
|
116
|
+
Schema.Struct({
|
|
117
|
+
routingKey: Schema.optional(Schema.String),
|
|
118
|
+
token: Schema.optional(Schema.String),
|
|
119
|
+
}),
|
|
120
|
+
),
|
|
121
|
+
slack: Schema.optional(
|
|
122
|
+
Schema.Struct({
|
|
123
|
+
slackUrl: Schema.optional(Schema.String),
|
|
124
|
+
}),
|
|
125
|
+
),
|
|
126
|
+
webhook: Schema.optional(
|
|
127
|
+
Schema.Struct({
|
|
128
|
+
url: Schema.optional(Schema.String),
|
|
129
|
+
}),
|
|
130
|
+
),
|
|
131
|
+
}),
|
|
132
|
+
id: Schema.optional(Schema.String),
|
|
133
|
+
});
|
|
134
|
+
export type CreateNotifierOutput = typeof CreateNotifierOutput.Type;
|
|
135
|
+
|
|
136
|
+
// The operation
|
|
137
|
+
/**
|
|
138
|
+
* Creates a new notifier configuration for sending alerts through various channels (Slack, Email, etc)
|
|
139
|
+
*/
|
|
140
|
+
export const createNotifier = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
141
|
+
inputSchema: CreateNotifierInput,
|
|
142
|
+
outputSchema: CreateNotifierOutput,
|
|
143
|
+
errors: [UnprocessableEntity] as const,
|
|
144
|
+
}));
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../../client";
|
|
3
|
+
import * as T from "../../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const CreateOrgInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
edgeDeployment: Schema.optional(Schema.String),
|
|
8
|
+
name: Schema.String,
|
|
9
|
+
}).pipe(T.Http({ method: "POST", path: "/v2/orgs" }));
|
|
10
|
+
export type CreateOrgInput = typeof CreateOrgInput.Type;
|
|
11
|
+
|
|
12
|
+
// Output Schema
|
|
13
|
+
export const CreateOrgOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
14
|
+
defaultEdgeDeployment: Schema.optional(Schema.String),
|
|
15
|
+
defaultRegion: Schema.optional(Schema.String),
|
|
16
|
+
firstFailedPayment: Schema.optional(Schema.String),
|
|
17
|
+
id: Schema.String,
|
|
18
|
+
lastUsageSync: Schema.String,
|
|
19
|
+
license: Schema.Struct({
|
|
20
|
+
apiRateLimitPerSecond: Schema.optional(Schema.Number),
|
|
21
|
+
billingPeriodEnd: Schema.optional(Schema.String),
|
|
22
|
+
billingPeriodStart: Schema.optional(Schema.String),
|
|
23
|
+
defaultEdgeDeployment: Schema.optional(Schema.String),
|
|
24
|
+
defaultRegion: Schema.optional(Schema.String),
|
|
25
|
+
edgeDeployments: Schema.optional(Schema.Array(Schema.String)),
|
|
26
|
+
expiresAt: Schema.optional(Schema.NullOr(Schema.String)),
|
|
27
|
+
features: Schema.optional(Schema.Record(Schema.String, Schema.Boolean)),
|
|
28
|
+
id: Schema.String,
|
|
29
|
+
issuedAt: Schema.optional(Schema.String),
|
|
30
|
+
issuedTo: Schema.optional(Schema.String),
|
|
31
|
+
issuer: Schema.optional(Schema.String),
|
|
32
|
+
maxAuditWindowSeconds: Schema.optional(Schema.Number),
|
|
33
|
+
maxDatasets: Schema.optional(Schema.Number),
|
|
34
|
+
maxEndpoints: Schema.optional(Schema.Number),
|
|
35
|
+
maxFields: Schema.optional(Schema.Number),
|
|
36
|
+
maxMonitors: Schema.optional(Schema.Number),
|
|
37
|
+
maxQueryWindowSeconds: Schema.optional(Schema.Number),
|
|
38
|
+
maxUsers: Schema.optional(Schema.Number),
|
|
39
|
+
monthlyIngestGb: Schema.optional(Schema.Number),
|
|
40
|
+
monthlyQueryGbHours: Schema.optional(Schema.Number),
|
|
41
|
+
regions: Schema.optional(Schema.Array(Schema.String)),
|
|
42
|
+
storageAllowanceGB: Schema.optional(Schema.Number),
|
|
43
|
+
tier: Schema.Literals([
|
|
44
|
+
"personal",
|
|
45
|
+
"basicDirect",
|
|
46
|
+
"teamMonthlyDirect",
|
|
47
|
+
"teamMonthlyAws",
|
|
48
|
+
"axiomCloud",
|
|
49
|
+
"teamPlus",
|
|
50
|
+
"enterprise",
|
|
51
|
+
"comped",
|
|
52
|
+
]),
|
|
53
|
+
validFrom: Schema.optional(Schema.String),
|
|
54
|
+
withAuths: Schema.optional(Schema.Array(Schema.String)),
|
|
55
|
+
}),
|
|
56
|
+
metaCreated: Schema.optional(Schema.String),
|
|
57
|
+
metaModified: Schema.optional(Schema.String),
|
|
58
|
+
metaVersion: Schema.optional(Schema.String),
|
|
59
|
+
name: Schema.String,
|
|
60
|
+
paymentStatus: Schema.Literals(["na", "failed", "success", "blocked"]),
|
|
61
|
+
plan: Schema.Literals([
|
|
62
|
+
"personal",
|
|
63
|
+
"basicDirect",
|
|
64
|
+
"teamMonthlyDirect",
|
|
65
|
+
"teamMonthlyAws",
|
|
66
|
+
"axiomCloud",
|
|
67
|
+
"teamPlus",
|
|
68
|
+
"enterprise",
|
|
69
|
+
"comped",
|
|
70
|
+
]),
|
|
71
|
+
planCreated: Schema.String,
|
|
72
|
+
primaryEmail: Schema.String,
|
|
73
|
+
role: Schema.optional(Schema.String),
|
|
74
|
+
});
|
|
75
|
+
export type CreateOrgOutput = typeof CreateOrgOutput.Type;
|
|
76
|
+
|
|
77
|
+
// The operation
|
|
78
|
+
export const createOrg = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
79
|
+
inputSchema: CreateOrgInput,
|
|
80
|
+
outputSchema: CreateOrgOutput,
|
|
81
|
+
}));
|