@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,228 @@
|
|
|
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 RegenerateAPITokenInput =
|
|
8
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
|
+
id: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
existingTokenExpiresAt: Schema.String,
|
|
11
|
+
newToken: Schema.optional(
|
|
12
|
+
Schema.Struct({
|
|
13
|
+
datasetCapabilities: Schema.optional(
|
|
14
|
+
Schema.Record(
|
|
15
|
+
Schema.String,
|
|
16
|
+
Schema.Struct({
|
|
17
|
+
data: Schema.optional(Schema.Array(Schema.Literals(["delete"]))),
|
|
18
|
+
ingest: Schema.optional(
|
|
19
|
+
Schema.Array(Schema.Literals(["create"])),
|
|
20
|
+
),
|
|
21
|
+
query: Schema.optional(Schema.Array(Schema.Literals(["read"]))),
|
|
22
|
+
share: Schema.optional(
|
|
23
|
+
Schema.Array(Schema.Literals(["create", "read", "delete"])),
|
|
24
|
+
),
|
|
25
|
+
starredQueries: Schema.optional(
|
|
26
|
+
Schema.Array(
|
|
27
|
+
Schema.Literals(["create", "read", "update", "delete"]),
|
|
28
|
+
),
|
|
29
|
+
),
|
|
30
|
+
trim: Schema.optional(Schema.Array(Schema.Literals(["update"]))),
|
|
31
|
+
vacuum: Schema.optional(
|
|
32
|
+
Schema.Array(Schema.Literals(["update"])),
|
|
33
|
+
),
|
|
34
|
+
virtualFields: Schema.optional(
|
|
35
|
+
Schema.Array(
|
|
36
|
+
Schema.Literals(["create", "read", "update", "delete"]),
|
|
37
|
+
),
|
|
38
|
+
),
|
|
39
|
+
}),
|
|
40
|
+
),
|
|
41
|
+
),
|
|
42
|
+
description: Schema.optional(Schema.String),
|
|
43
|
+
expiresAt: Schema.optional(Schema.NullOr(Schema.String)),
|
|
44
|
+
name: Schema.String,
|
|
45
|
+
orgCapabilities: Schema.optional(
|
|
46
|
+
Schema.Struct({
|
|
47
|
+
annotations: Schema.optional(
|
|
48
|
+
Schema.Array(
|
|
49
|
+
Schema.Literals(["create", "read", "update", "delete"]),
|
|
50
|
+
),
|
|
51
|
+
),
|
|
52
|
+
apiTokens: Schema.optional(
|
|
53
|
+
Schema.Array(
|
|
54
|
+
Schema.Literals(["create", "read", "update", "delete"]),
|
|
55
|
+
),
|
|
56
|
+
),
|
|
57
|
+
auditLog: Schema.optional(Schema.Array(Schema.Literals(["read"]))),
|
|
58
|
+
billing: Schema.optional(
|
|
59
|
+
Schema.Array(Schema.Literals(["read", "update"])),
|
|
60
|
+
),
|
|
61
|
+
dashboards: Schema.optional(
|
|
62
|
+
Schema.Array(
|
|
63
|
+
Schema.Literals(["create", "read", "update", "delete"]),
|
|
64
|
+
),
|
|
65
|
+
),
|
|
66
|
+
datasets: Schema.optional(
|
|
67
|
+
Schema.Array(
|
|
68
|
+
Schema.Literals(["create", "read", "update", "delete"]),
|
|
69
|
+
),
|
|
70
|
+
),
|
|
71
|
+
endpoints: Schema.optional(
|
|
72
|
+
Schema.Array(
|
|
73
|
+
Schema.Literals(["create", "read", "update", "delete"]),
|
|
74
|
+
),
|
|
75
|
+
),
|
|
76
|
+
flows: Schema.optional(
|
|
77
|
+
Schema.Array(
|
|
78
|
+
Schema.Literals(["create", "read", "update", "delete"]),
|
|
79
|
+
),
|
|
80
|
+
),
|
|
81
|
+
integrations: Schema.optional(
|
|
82
|
+
Schema.Array(
|
|
83
|
+
Schema.Literals(["create", "read", "update", "delete"]),
|
|
84
|
+
),
|
|
85
|
+
),
|
|
86
|
+
monitors: Schema.optional(
|
|
87
|
+
Schema.Array(
|
|
88
|
+
Schema.Literals(["create", "read", "update", "delete"]),
|
|
89
|
+
),
|
|
90
|
+
),
|
|
91
|
+
notifiers: Schema.optional(
|
|
92
|
+
Schema.Array(
|
|
93
|
+
Schema.Literals(["create", "read", "update", "delete"]),
|
|
94
|
+
),
|
|
95
|
+
),
|
|
96
|
+
rbac: Schema.optional(
|
|
97
|
+
Schema.Array(
|
|
98
|
+
Schema.Literals(["create", "read", "update", "delete"]),
|
|
99
|
+
),
|
|
100
|
+
),
|
|
101
|
+
sharedAccessKeys: Schema.optional(
|
|
102
|
+
Schema.Array(Schema.Literals(["read", "update"])),
|
|
103
|
+
),
|
|
104
|
+
users: Schema.optional(
|
|
105
|
+
Schema.Array(
|
|
106
|
+
Schema.Literals(["create", "read", "update", "delete"]),
|
|
107
|
+
),
|
|
108
|
+
),
|
|
109
|
+
views: Schema.optional(
|
|
110
|
+
Schema.Array(
|
|
111
|
+
Schema.Literals(["create", "read", "update", "delete"]),
|
|
112
|
+
),
|
|
113
|
+
),
|
|
114
|
+
}),
|
|
115
|
+
),
|
|
116
|
+
viewCapabilities: Schema.optional(
|
|
117
|
+
Schema.Record(
|
|
118
|
+
Schema.String,
|
|
119
|
+
Schema.Struct({
|
|
120
|
+
query: Schema.optional(Schema.Array(Schema.Literals(["read"]))),
|
|
121
|
+
share: Schema.optional(
|
|
122
|
+
Schema.Array(Schema.Literals(["create", "read", "delete"])),
|
|
123
|
+
),
|
|
124
|
+
}),
|
|
125
|
+
),
|
|
126
|
+
),
|
|
127
|
+
}),
|
|
128
|
+
),
|
|
129
|
+
newTokenExpiresAt: Schema.optional(Schema.NullOr(Schema.String)),
|
|
130
|
+
}).pipe(T.Http({ method: "POST", path: "/v2/tokens/{id}/regenerate" }));
|
|
131
|
+
export type RegenerateAPITokenInput = typeof RegenerateAPITokenInput.Type;
|
|
132
|
+
|
|
133
|
+
// Output Schema
|
|
134
|
+
export const RegenerateAPITokenOutput =
|
|
135
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
136
|
+
datasetCapabilities: Schema.Record(
|
|
137
|
+
Schema.String,
|
|
138
|
+
Schema.Struct({
|
|
139
|
+
data: Schema.optional(Schema.Array(Schema.Literals(["delete"]))),
|
|
140
|
+
ingest: Schema.optional(Schema.Array(Schema.Literals(["create"]))),
|
|
141
|
+
query: Schema.optional(Schema.Array(Schema.Literals(["read"]))),
|
|
142
|
+
share: Schema.optional(
|
|
143
|
+
Schema.Array(Schema.Literals(["create", "read", "delete"])),
|
|
144
|
+
),
|
|
145
|
+
starredQueries: Schema.optional(
|
|
146
|
+
Schema.Array(Schema.Literals(["create", "read", "update", "delete"])),
|
|
147
|
+
),
|
|
148
|
+
trim: Schema.optional(Schema.Array(Schema.Literals(["update"]))),
|
|
149
|
+
vacuum: Schema.optional(Schema.Array(Schema.Literals(["update"]))),
|
|
150
|
+
virtualFields: Schema.optional(
|
|
151
|
+
Schema.Array(Schema.Literals(["create", "read", "update", "delete"])),
|
|
152
|
+
),
|
|
153
|
+
}),
|
|
154
|
+
),
|
|
155
|
+
description: Schema.optional(Schema.String),
|
|
156
|
+
expiresAt: Schema.optional(Schema.NullOr(Schema.String)),
|
|
157
|
+
id: Schema.String,
|
|
158
|
+
name: Schema.String,
|
|
159
|
+
orgCapabilities: Schema.Struct({
|
|
160
|
+
annotations: Schema.optional(
|
|
161
|
+
Schema.Array(Schema.Literals(["create", "read", "update", "delete"])),
|
|
162
|
+
),
|
|
163
|
+
apiTokens: Schema.optional(
|
|
164
|
+
Schema.Array(Schema.Literals(["create", "read", "update", "delete"])),
|
|
165
|
+
),
|
|
166
|
+
auditLog: Schema.optional(Schema.Array(Schema.Literals(["read"]))),
|
|
167
|
+
billing: Schema.optional(
|
|
168
|
+
Schema.Array(Schema.Literals(["read", "update"])),
|
|
169
|
+
),
|
|
170
|
+
dashboards: Schema.optional(
|
|
171
|
+
Schema.Array(Schema.Literals(["create", "read", "update", "delete"])),
|
|
172
|
+
),
|
|
173
|
+
datasets: Schema.optional(
|
|
174
|
+
Schema.Array(Schema.Literals(["create", "read", "update", "delete"])),
|
|
175
|
+
),
|
|
176
|
+
endpoints: Schema.optional(
|
|
177
|
+
Schema.Array(Schema.Literals(["create", "read", "update", "delete"])),
|
|
178
|
+
),
|
|
179
|
+
flows: Schema.optional(
|
|
180
|
+
Schema.Array(Schema.Literals(["create", "read", "update", "delete"])),
|
|
181
|
+
),
|
|
182
|
+
integrations: Schema.optional(
|
|
183
|
+
Schema.Array(Schema.Literals(["create", "read", "update", "delete"])),
|
|
184
|
+
),
|
|
185
|
+
monitors: Schema.optional(
|
|
186
|
+
Schema.Array(Schema.Literals(["create", "read", "update", "delete"])),
|
|
187
|
+
),
|
|
188
|
+
notifiers: Schema.optional(
|
|
189
|
+
Schema.Array(Schema.Literals(["create", "read", "update", "delete"])),
|
|
190
|
+
),
|
|
191
|
+
rbac: Schema.optional(
|
|
192
|
+
Schema.Array(Schema.Literals(["create", "read", "update", "delete"])),
|
|
193
|
+
),
|
|
194
|
+
sharedAccessKeys: Schema.optional(
|
|
195
|
+
Schema.Array(Schema.Literals(["read", "update"])),
|
|
196
|
+
),
|
|
197
|
+
users: Schema.optional(
|
|
198
|
+
Schema.Array(Schema.Literals(["create", "read", "update", "delete"])),
|
|
199
|
+
),
|
|
200
|
+
views: Schema.optional(
|
|
201
|
+
Schema.Array(Schema.Literals(["create", "read", "update", "delete"])),
|
|
202
|
+
),
|
|
203
|
+
}),
|
|
204
|
+
samlAuthenticated: Schema.optional(Schema.Boolean),
|
|
205
|
+
viewCapabilities: Schema.optional(
|
|
206
|
+
Schema.Record(
|
|
207
|
+
Schema.String,
|
|
208
|
+
Schema.Struct({
|
|
209
|
+
query: Schema.optional(Schema.Array(Schema.Literals(["read"]))),
|
|
210
|
+
share: Schema.optional(
|
|
211
|
+
Schema.Array(Schema.Literals(["create", "read", "delete"])),
|
|
212
|
+
),
|
|
213
|
+
}),
|
|
214
|
+
),
|
|
215
|
+
),
|
|
216
|
+
token: Schema.optional(Schema.String),
|
|
217
|
+
});
|
|
218
|
+
export type RegenerateAPITokenOutput = typeof RegenerateAPITokenOutput.Type;
|
|
219
|
+
|
|
220
|
+
// The operation
|
|
221
|
+
/**
|
|
222
|
+
* Regenerate API token
|
|
223
|
+
*/
|
|
224
|
+
export const regenerateAPIToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
225
|
+
inputSchema: RegenerateAPITokenInput,
|
|
226
|
+
outputSchema: RegenerateAPITokenOutput,
|
|
227
|
+
errors: [NotFound, UnprocessableEntity] as const,
|
|
228
|
+
}));
|
|
@@ -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 } from "../../errors";
|
|
5
|
+
|
|
6
|
+
// Input Schema
|
|
7
|
+
export const RemoveUserFromOrgInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
8
|
+
{
|
|
9
|
+
id: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
},
|
|
11
|
+
).pipe(T.Http({ method: "DELETE", path: "/v2/users/{id}" }));
|
|
12
|
+
export type RemoveUserFromOrgInput = typeof RemoveUserFromOrgInput.Type;
|
|
13
|
+
|
|
14
|
+
// Output Schema
|
|
15
|
+
export const RemoveUserFromOrgOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Void;
|
|
16
|
+
export type RemoveUserFromOrgOutput = typeof RemoveUserFromOrgOutput.Type;
|
|
17
|
+
|
|
18
|
+
// The operation
|
|
19
|
+
/**
|
|
20
|
+
* Remove user from org
|
|
21
|
+
*/
|
|
22
|
+
export const removeUserFromOrg = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
23
|
+
inputSchema: RemoveUserFromOrgInput,
|
|
24
|
+
outputSchema: RemoveUserFromOrgOutput,
|
|
25
|
+
errors: [NotFound] as const,
|
|
26
|
+
}));
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../../client";
|
|
3
|
+
import * as T from "../../traits";
|
|
4
|
+
import { Forbidden, NotFound } from "../../errors";
|
|
5
|
+
|
|
6
|
+
// Input Schema
|
|
7
|
+
export const TrimDatasetInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
dataset_id: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
maxDuration: Schema.String,
|
|
10
|
+
}).pipe(T.Http({ method: "POST", path: "/v2/datasets/{dataset_id}/trim" }));
|
|
11
|
+
export type TrimDatasetInput = typeof TrimDatasetInput.Type;
|
|
12
|
+
|
|
13
|
+
// Output Schema
|
|
14
|
+
export const TrimDatasetOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Void;
|
|
15
|
+
export type TrimDatasetOutput = typeof TrimDatasetOutput.Type;
|
|
16
|
+
|
|
17
|
+
// The operation
|
|
18
|
+
/**
|
|
19
|
+
* Trim dataset by duration
|
|
20
|
+
*
|
|
21
|
+
* Trim dataset
|
|
22
|
+
*/
|
|
23
|
+
export const trimDataset = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
24
|
+
inputSchema: TrimDatasetInput,
|
|
25
|
+
outputSchema: TrimDatasetOutput,
|
|
26
|
+
errors: [Forbidden, NotFound] as const,
|
|
27
|
+
}));
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
|
|
6
|
+
// Input Schema
|
|
7
|
+
export const UpdateAnnotationInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
id: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
datasets: Schema.optional(Schema.Array(Schema.String)),
|
|
10
|
+
description: Schema.optional(Schema.String),
|
|
11
|
+
endTime: Schema.optional(Schema.String),
|
|
12
|
+
time: Schema.optional(Schema.String),
|
|
13
|
+
title: Schema.optional(Schema.String),
|
|
14
|
+
type: Schema.optional(Schema.String),
|
|
15
|
+
url: Schema.optional(Schema.String),
|
|
16
|
+
}).pipe(T.Http({ method: "PUT", path: "/v2/annotations/{id}" }));
|
|
17
|
+
export type UpdateAnnotationInput = typeof UpdateAnnotationInput.Type;
|
|
18
|
+
|
|
19
|
+
// Output Schema
|
|
20
|
+
export const UpdateAnnotationOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
21
|
+
{
|
|
22
|
+
datasets: Schema.Array(Schema.String),
|
|
23
|
+
description: Schema.optional(Schema.String),
|
|
24
|
+
endTime: Schema.optional(Schema.NullOr(Schema.String)),
|
|
25
|
+
id: Schema.String,
|
|
26
|
+
time: Schema.String,
|
|
27
|
+
title: Schema.optional(Schema.String),
|
|
28
|
+
type: Schema.String,
|
|
29
|
+
url: Schema.optional(Schema.String),
|
|
30
|
+
},
|
|
31
|
+
);
|
|
32
|
+
export type UpdateAnnotationOutput = typeof UpdateAnnotationOutput.Type;
|
|
33
|
+
|
|
34
|
+
// The operation
|
|
35
|
+
/**
|
|
36
|
+
* Update annotation
|
|
37
|
+
*
|
|
38
|
+
* @param id - Unique ID of the annotation
|
|
39
|
+
*/
|
|
40
|
+
export const updateAnnotation = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
41
|
+
inputSchema: UpdateAnnotationInput,
|
|
42
|
+
outputSchema: UpdateAnnotationOutput,
|
|
43
|
+
errors: [BadRequest, NotFound, UnprocessableEntity] as const,
|
|
44
|
+
}));
|
|
@@ -0,0 +1,35 @@
|
|
|
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 UpdateCurrentUserInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
7
|
+
{
|
|
8
|
+
name: Schema.String,
|
|
9
|
+
},
|
|
10
|
+
).pipe(T.Http({ method: "PUT", path: "/v2/user" }));
|
|
11
|
+
export type UpdateCurrentUserInput = typeof UpdateCurrentUserInput.Type;
|
|
12
|
+
|
|
13
|
+
// Output Schema
|
|
14
|
+
export const UpdateCurrentUserOutput =
|
|
15
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
16
|
+
email: Schema.String,
|
|
17
|
+
id: Schema.String,
|
|
18
|
+
name: Schema.String,
|
|
19
|
+
role: Schema.optional(
|
|
20
|
+
Schema.Struct({
|
|
21
|
+
id: Schema.String,
|
|
22
|
+
name: Schema.String,
|
|
23
|
+
}),
|
|
24
|
+
),
|
|
25
|
+
});
|
|
26
|
+
export type UpdateCurrentUserOutput = typeof UpdateCurrentUserOutput.Type;
|
|
27
|
+
|
|
28
|
+
// The operation
|
|
29
|
+
/**
|
|
30
|
+
* Update current user
|
|
31
|
+
*/
|
|
32
|
+
export const updateCurrentUser = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
33
|
+
inputSchema: UpdateCurrentUserInput,
|
|
34
|
+
outputSchema: UpdateCurrentUserOutput,
|
|
35
|
+
}));
|
|
@@ -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 UpdateDashboardInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
uid: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
dashboard: Schema.Struct({
|
|
10
|
+
name: Schema.String,
|
|
11
|
+
owner: Schema.String,
|
|
12
|
+
description: Schema.optional(Schema.String),
|
|
13
|
+
charts: Schema.Array(Schema.Unknown),
|
|
14
|
+
layout: Schema.Array(
|
|
15
|
+
Schema.Struct({
|
|
16
|
+
i: Schema.String,
|
|
17
|
+
x: Schema.Number,
|
|
18
|
+
y: Schema.NullOr(Schema.Number),
|
|
19
|
+
w: Schema.Number,
|
|
20
|
+
h: Schema.Number,
|
|
21
|
+
minW: Schema.optional(Schema.Number),
|
|
22
|
+
minH: Schema.optional(Schema.Number),
|
|
23
|
+
maxW: Schema.optional(Schema.Number),
|
|
24
|
+
maxH: Schema.optional(Schema.Number),
|
|
25
|
+
static: Schema.optional(Schema.Boolean),
|
|
26
|
+
}),
|
|
27
|
+
),
|
|
28
|
+
refreshTime: Schema.Literals([15, 60, 300]),
|
|
29
|
+
schemaVersion: Schema.Literals([2]),
|
|
30
|
+
against: Schema.optional(
|
|
31
|
+
Schema.Literals([
|
|
32
|
+
"-1h",
|
|
33
|
+
"-3h",
|
|
34
|
+
"-6h",
|
|
35
|
+
"-12h",
|
|
36
|
+
"-1d",
|
|
37
|
+
"-3d",
|
|
38
|
+
"-7d",
|
|
39
|
+
"-1w",
|
|
40
|
+
"-2w",
|
|
41
|
+
"-3w",
|
|
42
|
+
"-30d",
|
|
43
|
+
"-60d",
|
|
44
|
+
"-90d",
|
|
45
|
+
]),
|
|
46
|
+
),
|
|
47
|
+
againstTimestamp: Schema.optional(Schema.String),
|
|
48
|
+
timeWindowStart: Schema.String,
|
|
49
|
+
timeWindowEnd: Schema.String,
|
|
50
|
+
uid: Schema.optional(Schema.String),
|
|
51
|
+
}),
|
|
52
|
+
message: Schema.optional(Schema.String),
|
|
53
|
+
overwrite: Schema.optional(Schema.Boolean),
|
|
54
|
+
version: Schema.optional(Schema.Unknown),
|
|
55
|
+
}).pipe(T.Http({ method: "PUT", path: "/v2/dashboards/uid/{uid}" }));
|
|
56
|
+
export type UpdateDashboardInput = typeof UpdateDashboardInput.Type;
|
|
57
|
+
|
|
58
|
+
// Output Schema
|
|
59
|
+
export const UpdateDashboardOutput = /*@__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 UpdateDashboardOutput = typeof UpdateDashboardOutput.Type;
|
|
116
|
+
|
|
117
|
+
// The operation
|
|
118
|
+
/**
|
|
119
|
+
* Update dashboard
|
|
120
|
+
*
|
|
121
|
+
* Update a dashboard by UID.
|
|
122
|
+
*/
|
|
123
|
+
export const updateDashboard = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
124
|
+
inputSchema: UpdateDashboardInput,
|
|
125
|
+
outputSchema: UpdateDashboardOutput,
|
|
126
|
+
errors: [BadRequest, Conflict] as const,
|
|
127
|
+
}));
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../../client";
|
|
3
|
+
import * as T from "../../traits";
|
|
4
|
+
import { Forbidden, NotFound, UnprocessableEntity } from "../../errors";
|
|
5
|
+
|
|
6
|
+
// Input Schema
|
|
7
|
+
export const UpdateDatasetInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
dataset_id: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
description: Schema.optional(Schema.String),
|
|
10
|
+
retentionDays: Schema.optional(Schema.Number),
|
|
11
|
+
useRetentionPeriod: Schema.optional(Schema.Boolean),
|
|
12
|
+
}).pipe(T.Http({ method: "PUT", path: "/v2/datasets/{dataset_id}" }));
|
|
13
|
+
export type UpdateDatasetInput = typeof UpdateDatasetInput.Type;
|
|
14
|
+
|
|
15
|
+
// Output Schema
|
|
16
|
+
export const UpdateDatasetOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
17
|
+
canWrite: Schema.optional(Schema.Boolean),
|
|
18
|
+
created: Schema.String,
|
|
19
|
+
description: Schema.String,
|
|
20
|
+
edgeDeployment: Schema.optional(Schema.String),
|
|
21
|
+
id: Schema.String,
|
|
22
|
+
kind: Schema.Literals([
|
|
23
|
+
"otel:metrics:v1",
|
|
24
|
+
"otel:traces:v1",
|
|
25
|
+
"otel:logs:v1",
|
|
26
|
+
"axiom:events:v1",
|
|
27
|
+
]),
|
|
28
|
+
mapFields: Schema.optional(Schema.Array(Schema.String)),
|
|
29
|
+
name: Schema.String,
|
|
30
|
+
retentionDays: Schema.optional(Schema.Number),
|
|
31
|
+
sharedByOrg: Schema.optional(Schema.String),
|
|
32
|
+
useRetentionPeriod: Schema.optional(Schema.Boolean),
|
|
33
|
+
who: Schema.String,
|
|
34
|
+
});
|
|
35
|
+
export type UpdateDatasetOutput = typeof UpdateDatasetOutput.Type;
|
|
36
|
+
|
|
37
|
+
// The operation
|
|
38
|
+
/**
|
|
39
|
+
* Update dataset
|
|
40
|
+
*/
|
|
41
|
+
export const updateDataset = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
42
|
+
inputSchema: UpdateDatasetInput,
|
|
43
|
+
outputSchema: UpdateDatasetOutput,
|
|
44
|
+
errors: [Forbidden, NotFound, UnprocessableEntity] as const,
|
|
45
|
+
}));
|
|
@@ -0,0 +1,43 @@
|
|
|
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 UpdateFieldForDatasetInput =
|
|
8
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
|
+
dataset_id: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
field_id: Schema.String.pipe(T.PathParam()),
|
|
11
|
+
description: Schema.optional(Schema.String),
|
|
12
|
+
hidden: Schema.optional(Schema.Boolean),
|
|
13
|
+
name: Schema.String,
|
|
14
|
+
type: Schema.String,
|
|
15
|
+
unit: Schema.optional(Schema.String),
|
|
16
|
+
}).pipe(
|
|
17
|
+
T.Http({
|
|
18
|
+
method: "PUT",
|
|
19
|
+
path: "/v2/datasets/{dataset_id}/fields/{field_id}",
|
|
20
|
+
}),
|
|
21
|
+
);
|
|
22
|
+
export type UpdateFieldForDatasetInput = typeof UpdateFieldForDatasetInput.Type;
|
|
23
|
+
|
|
24
|
+
// Output Schema
|
|
25
|
+
export const UpdateFieldForDatasetOutput =
|
|
26
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
27
|
+
description: Schema.optional(Schema.String),
|
|
28
|
+
hidden: Schema.optional(Schema.Boolean),
|
|
29
|
+
name: Schema.String,
|
|
30
|
+
type: Schema.String,
|
|
31
|
+
unit: Schema.optional(Schema.String),
|
|
32
|
+
});
|
|
33
|
+
export type UpdateFieldForDatasetOutput =
|
|
34
|
+
typeof UpdateFieldForDatasetOutput.Type;
|
|
35
|
+
|
|
36
|
+
// The operation
|
|
37
|
+
export const updateFieldForDataset = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
38
|
+
() => ({
|
|
39
|
+
inputSchema: UpdateFieldForDatasetInput,
|
|
40
|
+
outputSchema: UpdateFieldForDatasetOutput,
|
|
41
|
+
errors: [NotFound, UnprocessableEntity] as const,
|
|
42
|
+
}),
|
|
43
|
+
);
|
|
@@ -0,0 +1,40 @@
|
|
|
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 UpdateGroupInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
id: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
description: Schema.optional(Schema.String),
|
|
10
|
+
isManaged: Schema.optional(Schema.Boolean),
|
|
11
|
+
members: Schema.optional(Schema.Array(Schema.String)),
|
|
12
|
+
name: Schema.String,
|
|
13
|
+
roles: Schema.optional(Schema.Array(Schema.String)),
|
|
14
|
+
}).pipe(T.Http({ method: "PUT", path: "/v2/rbac/groups/{id}" }));
|
|
15
|
+
export type UpdateGroupInput = typeof UpdateGroupInput.Type;
|
|
16
|
+
|
|
17
|
+
// Output Schema
|
|
18
|
+
export const UpdateGroupOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
19
|
+
description: Schema.optional(Schema.String),
|
|
20
|
+
isManaged: Schema.optional(Schema.Boolean),
|
|
21
|
+
members: Schema.optional(Schema.Array(Schema.String)),
|
|
22
|
+
name: Schema.String,
|
|
23
|
+
roles: Schema.optional(Schema.Array(Schema.String)),
|
|
24
|
+
id: Schema.String,
|
|
25
|
+
});
|
|
26
|
+
export type UpdateGroupOutput = typeof UpdateGroupOutput.Type;
|
|
27
|
+
|
|
28
|
+
// The operation
|
|
29
|
+
/**
|
|
30
|
+
* Update group
|
|
31
|
+
*
|
|
32
|
+
* Updates an existing group's configuration.
|
|
33
|
+
*
|
|
34
|
+
* @param id - Unique identifier of the group to update
|
|
35
|
+
*/
|
|
36
|
+
export const updateGroup = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
37
|
+
inputSchema: UpdateGroupInput,
|
|
38
|
+
outputSchema: UpdateGroupOutput,
|
|
39
|
+
errors: [NotFound, UnprocessableEntity] as const,
|
|
40
|
+
}));
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../../client";
|
|
3
|
+
import * as T from "../../traits";
|
|
4
|
+
import { NotFound } from "../../errors";
|
|
5
|
+
|
|
6
|
+
// Input Schema
|
|
7
|
+
export const UpdateMapFieldsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
dataset_id: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
}).pipe(T.Http({ method: "PUT", path: "/v2/datasets/{dataset_id}/mapfields" }));
|
|
10
|
+
export type UpdateMapFieldsInput = typeof UpdateMapFieldsInput.Type;
|
|
11
|
+
|
|
12
|
+
// Output Schema
|
|
13
|
+
export const UpdateMapFieldsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
14
|
+
Schema.String,
|
|
15
|
+
);
|
|
16
|
+
export type UpdateMapFieldsOutput = typeof UpdateMapFieldsOutput.Type;
|
|
17
|
+
|
|
18
|
+
// The operation
|
|
19
|
+
export const updateMapFields = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
20
|
+
inputSchema: UpdateMapFieldsInput,
|
|
21
|
+
outputSchema: UpdateMapFieldsOutput,
|
|
22
|
+
errors: [NotFound] as const,
|
|
23
|
+
}));
|