@distilled.cloud/axiom 0.28.2 → 0.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/operations/v1-edge-ingest/ingestToDataset.js +3 -3
- package/lib/operations/v1-edge-ingest/ingestToDataset.js.map +1 -1
- package/lib/operations/v1-edge-query/queryApl.d.ts.map +1 -1
- package/lib/operations/v1-edge-query/queryApl.js +3 -3
- package/lib/operations/v1-edge-query/queryApl.js.map +1 -1
- package/lib/operations/v2/createAPIToken.js +3 -3
- package/lib/operations/v2/createAPIToken.js.map +1 -1
- package/lib/operations/v2/createAnnotation.d.ts.map +1 -1
- package/lib/operations/v2/createAnnotation.js +3 -3
- package/lib/operations/v2/createAnnotation.js.map +1 -1
- package/lib/operations/v2/createDashboard.js +3 -3
- package/lib/operations/v2/createDashboard.js.map +1 -1
- package/lib/operations/v2/createDataset.js +3 -3
- package/lib/operations/v2/createDataset.js.map +1 -1
- package/lib/operations/v2/createGroup.js +3 -3
- package/lib/operations/v2/createGroup.js.map +1 -1
- package/lib/operations/v2/createMapField.js +3 -3
- package/lib/operations/v2/createMapField.js.map +1 -1
- package/lib/operations/v2/createMonitor.js +3 -3
- package/lib/operations/v2/createMonitor.js.map +1 -1
- package/lib/operations/v2/createNotifier.js +3 -3
- package/lib/operations/v2/createNotifier.js.map +1 -1
- package/lib/operations/v2/createOrg.js +3 -3
- package/lib/operations/v2/createOrg.js.map +1 -1
- package/lib/operations/v2/createRole.js +3 -3
- package/lib/operations/v2/createRole.js.map +1 -1
- package/lib/operations/v2/createStarred.js +3 -3
- package/lib/operations/v2/createStarred.js.map +1 -1
- package/lib/operations/v2/createUser.js +3 -3
- package/lib/operations/v2/createUser.js.map +1 -1
- package/lib/operations/v2/createView.js +3 -3
- package/lib/operations/v2/createView.js.map +1 -1
- package/lib/operations/v2/createVirtualField.js +3 -3
- package/lib/operations/v2/createVirtualField.js.map +1 -1
- package/lib/operations/v2/deleteAPIToken.d.ts.map +1 -1
- package/lib/operations/v2/deleteAPIToken.js +3 -3
- package/lib/operations/v2/deleteAPIToken.js.map +1 -1
- package/lib/operations/v2/deleteAnnotation.d.ts.map +1 -1
- package/lib/operations/v2/deleteAnnotation.js +3 -3
- package/lib/operations/v2/deleteAnnotation.js.map +1 -1
- package/lib/operations/v2/deleteDashboard.d.ts.map +1 -1
- package/lib/operations/v2/deleteDashboard.js +3 -3
- package/lib/operations/v2/deleteDashboard.js.map +1 -1
- package/lib/operations/v2/deleteDataset.d.ts.map +1 -1
- package/lib/operations/v2/deleteDataset.js +3 -3
- package/lib/operations/v2/deleteDataset.js.map +1 -1
- package/lib/operations/v2/deleteGroup.d.ts.map +1 -1
- package/lib/operations/v2/deleteGroup.js +3 -3
- package/lib/operations/v2/deleteGroup.js.map +1 -1
- package/lib/operations/v2/deleteMapField.d.ts.map +1 -1
- package/lib/operations/v2/deleteMapField.js +3 -3
- package/lib/operations/v2/deleteMapField.js.map +1 -1
- package/lib/operations/v2/deleteMonitor.d.ts.map +1 -1
- package/lib/operations/v2/deleteMonitor.js +3 -3
- package/lib/operations/v2/deleteMonitor.js.map +1 -1
- package/lib/operations/v2/deleteNotifier.d.ts.map +1 -1
- package/lib/operations/v2/deleteNotifier.js +3 -3
- package/lib/operations/v2/deleteNotifier.js.map +1 -1
- package/lib/operations/v2/deleteRole.d.ts.map +1 -1
- package/lib/operations/v2/deleteRole.js +3 -3
- package/lib/operations/v2/deleteRole.js.map +1 -1
- package/lib/operations/v2/deleteStarred.d.ts.map +1 -1
- package/lib/operations/v2/deleteStarred.js +3 -3
- package/lib/operations/v2/deleteStarred.js.map +1 -1
- package/lib/operations/v2/deleteView.d.ts.map +1 -1
- package/lib/operations/v2/deleteView.js +3 -3
- package/lib/operations/v2/deleteView.js.map +1 -1
- package/lib/operations/v2/deleteVirtualField.d.ts.map +1 -1
- package/lib/operations/v2/deleteVirtualField.js +3 -3
- package/lib/operations/v2/deleteVirtualField.js.map +1 -1
- package/lib/operations/v2/getAPIToken.js +3 -3
- package/lib/operations/v2/getAPIToken.js.map +1 -1
- package/lib/operations/v2/getAPITokens.d.ts.map +1 -1
- package/lib/operations/v2/getAPITokens.js +3 -3
- package/lib/operations/v2/getAPITokens.js.map +1 -1
- package/lib/operations/v2/getAnnotation.js +3 -3
- package/lib/operations/v2/getAnnotation.js.map +1 -1
- package/lib/operations/v2/getAnnotations.js +3 -3
- package/lib/operations/v2/getAnnotations.js.map +1 -1
- package/lib/operations/v2/getCurrentUser.d.ts.map +1 -1
- package/lib/operations/v2/getCurrentUser.js +3 -3
- package/lib/operations/v2/getCurrentUser.js.map +1 -1
- package/lib/operations/v2/getDashboard.js +3 -3
- package/lib/operations/v2/getDashboard.js.map +1 -1
- package/lib/operations/v2/getDataset.js +3 -3
- package/lib/operations/v2/getDataset.js.map +1 -1
- package/lib/operations/v2/getDatasets.d.ts.map +1 -1
- package/lib/operations/v2/getDatasets.js +3 -3
- package/lib/operations/v2/getDatasets.js.map +1 -1
- package/lib/operations/v2/getFieldForDataset.js +3 -3
- package/lib/operations/v2/getFieldForDataset.js.map +1 -1
- package/lib/operations/v2/getFieldsForDataset.js +3 -3
- package/lib/operations/v2/getFieldsForDataset.js.map +1 -1
- package/lib/operations/v2/getGroupById.js +3 -3
- package/lib/operations/v2/getGroupById.js.map +1 -1
- package/lib/operations/v2/getMapFields.js +3 -3
- package/lib/operations/v2/getMapFields.js.map +1 -1
- package/lib/operations/v2/getMonitor.js +3 -3
- package/lib/operations/v2/getMonitor.js.map +1 -1
- package/lib/operations/v2/getMonitorHistory.d.ts.map +1 -1
- package/lib/operations/v2/getMonitorHistory.js +3 -3
- package/lib/operations/v2/getMonitorHistory.js.map +1 -1
- package/lib/operations/v2/getMonitors.d.ts.map +1 -1
- package/lib/operations/v2/getMonitors.js +3 -3
- package/lib/operations/v2/getMonitors.js.map +1 -1
- package/lib/operations/v2/getNotifier.js +3 -3
- package/lib/operations/v2/getNotifier.js.map +1 -1
- package/lib/operations/v2/getNotifiers.d.ts.map +1 -1
- package/lib/operations/v2/getNotifiers.js +3 -3
- package/lib/operations/v2/getNotifiers.js.map +1 -1
- package/lib/operations/v2/getOrg.js +3 -3
- package/lib/operations/v2/getOrg.js.map +1 -1
- package/lib/operations/v2/getOrgs.js +3 -3
- package/lib/operations/v2/getOrgs.js.map +1 -1
- package/lib/operations/v2/getRoleById.js +3 -3
- package/lib/operations/v2/getRoleById.js.map +1 -1
- package/lib/operations/v2/getStarred.js +3 -3
- package/lib/operations/v2/getStarred.js.map +1 -1
- package/lib/operations/v2/getStarredQueries.d.ts.map +1 -1
- package/lib/operations/v2/getStarredQueries.js +3 -3
- package/lib/operations/v2/getStarredQueries.js.map +1 -1
- package/lib/operations/v2/getUser.js +3 -3
- package/lib/operations/v2/getUser.js.map +1 -1
- package/lib/operations/v2/getUsers.js +3 -3
- package/lib/operations/v2/getUsers.js.map +1 -1
- package/lib/operations/v2/getView.js +3 -3
- package/lib/operations/v2/getView.js.map +1 -1
- package/lib/operations/v2/getViews.js +3 -3
- package/lib/operations/v2/getViews.js.map +1 -1
- package/lib/operations/v2/getVirtualField.js +3 -3
- package/lib/operations/v2/getVirtualField.js.map +1 -1
- package/lib/operations/v2/getVirtualFields.js +3 -3
- package/lib/operations/v2/getVirtualFields.js.map +1 -1
- package/lib/operations/v2/listDashboards.js +3 -3
- package/lib/operations/v2/listDashboards.js.map +1 -1
- package/lib/operations/v2/listGroups.d.ts.map +1 -1
- package/lib/operations/v2/listGroups.js +3 -3
- package/lib/operations/v2/listGroups.js.map +1 -1
- package/lib/operations/v2/listRoles.d.ts.map +1 -1
- package/lib/operations/v2/listRoles.js +3 -3
- package/lib/operations/v2/listRoles.js.map +1 -1
- package/lib/operations/v2/patchDashboardChart.js +3 -3
- package/lib/operations/v2/patchDashboardChart.js.map +1 -1
- package/lib/operations/v2/regenerateAPIToken.js +3 -3
- package/lib/operations/v2/regenerateAPIToken.js.map +1 -1
- package/lib/operations/v2/removeUserFromOrg.d.ts.map +1 -1
- package/lib/operations/v2/removeUserFromOrg.js +3 -3
- package/lib/operations/v2/removeUserFromOrg.js.map +1 -1
- package/lib/operations/v2/trimDataset.d.ts.map +1 -1
- package/lib/operations/v2/trimDataset.js +3 -3
- package/lib/operations/v2/trimDataset.js.map +1 -1
- package/lib/operations/v2/updateAnnotation.d.ts.map +1 -1
- package/lib/operations/v2/updateAnnotation.js +3 -3
- package/lib/operations/v2/updateAnnotation.js.map +1 -1
- package/lib/operations/v2/updateCurrentUser.d.ts.map +1 -1
- package/lib/operations/v2/updateCurrentUser.js +3 -3
- package/lib/operations/v2/updateCurrentUser.js.map +1 -1
- package/lib/operations/v2/updateDashboard.js +3 -3
- package/lib/operations/v2/updateDashboard.js.map +1 -1
- package/lib/operations/v2/updateDataset.js +3 -3
- package/lib/operations/v2/updateDataset.js.map +1 -1
- package/lib/operations/v2/updateFieldForDataset.d.ts.map +1 -1
- package/lib/operations/v2/updateFieldForDataset.js +3 -3
- package/lib/operations/v2/updateFieldForDataset.js.map +1 -1
- package/lib/operations/v2/updateGroup.js +3 -3
- package/lib/operations/v2/updateGroup.js.map +1 -1
- package/lib/operations/v2/updateMapFields.js +3 -3
- package/lib/operations/v2/updateMapFields.js.map +1 -1
- package/lib/operations/v2/updateMonitor.js +3 -3
- package/lib/operations/v2/updateMonitor.js.map +1 -1
- package/lib/operations/v2/updateNotifier.js +3 -3
- package/lib/operations/v2/updateNotifier.js.map +1 -1
- package/lib/operations/v2/updateOrg.js +3 -3
- package/lib/operations/v2/updateOrg.js.map +1 -1
- package/lib/operations/v2/updateRole.js +3 -3
- package/lib/operations/v2/updateRole.js.map +1 -1
- package/lib/operations/v2/updateStarred.js +3 -3
- package/lib/operations/v2/updateStarred.js.map +1 -1
- package/lib/operations/v2/updateUserRole.js +3 -3
- package/lib/operations/v2/updateUserRole.js.map +1 -1
- package/lib/operations/v2/updateView.js +3 -3
- package/lib/operations/v2/updateView.js.map +1 -1
- package/lib/operations/v2/updateVirtualField.js +3 -3
- package/lib/operations/v2/updateVirtualField.js.map +1 -1
- package/lib/operations/v2/vacuumDataset.d.ts.map +1 -1
- package/lib/operations/v2/vacuumDataset.js +3 -3
- package/lib/operations/v2/vacuumDataset.js.map +1 -1
- package/package.json +7 -6
- package/src/operations/v1-edge-ingest/ingestToDataset.ts +3 -3
- package/src/operations/v1-edge-query/queryApl.ts +3 -3
- package/src/operations/v2/createAPIToken.ts +3 -3
- package/src/operations/v2/createAnnotation.ts +12 -14
- package/src/operations/v2/createDashboard.ts +3 -3
- package/src/operations/v2/createDataset.ts +3 -3
- package/src/operations/v2/createGroup.ts +3 -3
- package/src/operations/v2/createMapField.ts +3 -3
- package/src/operations/v2/createMonitor.ts +3 -3
- package/src/operations/v2/createNotifier.ts +3 -3
- package/src/operations/v2/createOrg.ts +3 -3
- package/src/operations/v2/createRole.ts +3 -3
- package/src/operations/v2/createStarred.ts +3 -3
- package/src/operations/v2/createUser.ts +3 -3
- package/src/operations/v2/createView.ts +3 -3
- package/src/operations/v2/createVirtualField.ts +3 -3
- package/src/operations/v2/deleteAPIToken.ts +3 -3
- package/src/operations/v2/deleteAnnotation.ts +3 -3
- package/src/operations/v2/deleteDashboard.ts +3 -3
- package/src/operations/v2/deleteDataset.ts +3 -3
- package/src/operations/v2/deleteGroup.ts +3 -3
- package/src/operations/v2/deleteMapField.ts +3 -3
- package/src/operations/v2/deleteMonitor.ts +3 -3
- package/src/operations/v2/deleteNotifier.ts +3 -3
- package/src/operations/v2/deleteRole.ts +3 -3
- package/src/operations/v2/deleteStarred.ts +3 -3
- package/src/operations/v2/deleteView.ts +3 -3
- package/src/operations/v2/deleteVirtualField.ts +3 -3
- package/src/operations/v2/getAPIToken.ts +3 -3
- package/src/operations/v2/getAPITokens.ts +3 -5
- package/src/operations/v2/getAnnotation.ts +3 -3
- package/src/operations/v2/getAnnotations.ts +3 -3
- package/src/operations/v2/getCurrentUser.ts +3 -5
- package/src/operations/v2/getDashboard.ts +3 -3
- package/src/operations/v2/getDataset.ts +3 -3
- package/src/operations/v2/getDatasets.ts +3 -5
- package/src/operations/v2/getFieldForDataset.ts +3 -3
- package/src/operations/v2/getFieldsForDataset.ts +3 -3
- package/src/operations/v2/getGroupById.ts +3 -3
- package/src/operations/v2/getMapFields.ts +3 -3
- package/src/operations/v2/getMonitor.ts +3 -3
- package/src/operations/v2/getMonitorHistory.ts +7 -9
- package/src/operations/v2/getMonitors.ts +3 -5
- package/src/operations/v2/getNotifier.ts +3 -3
- package/src/operations/v2/getNotifiers.ts +3 -5
- package/src/operations/v2/getOrg.ts +3 -3
- package/src/operations/v2/getOrgs.ts +3 -3
- package/src/operations/v2/getRoleById.ts +3 -3
- package/src/operations/v2/getStarred.ts +3 -3
- package/src/operations/v2/getStarredQueries.ts +9 -11
- package/src/operations/v2/getUser.ts +3 -3
- package/src/operations/v2/getUsers.ts +3 -3
- package/src/operations/v2/getView.ts +3 -3
- package/src/operations/v2/getViews.ts +3 -3
- package/src/operations/v2/getVirtualField.ts +3 -3
- package/src/operations/v2/getVirtualFields.ts +3 -3
- package/src/operations/v2/listDashboards.ts +3 -3
- package/src/operations/v2/listGroups.ts +3 -5
- package/src/operations/v2/listRoles.ts +3 -5
- package/src/operations/v2/patchDashboardChart.ts +3 -3
- package/src/operations/v2/regenerateAPIToken.ts +3 -3
- package/src/operations/v2/removeUserFromOrg.ts +5 -7
- package/src/operations/v2/trimDataset.ts +3 -3
- package/src/operations/v2/updateAnnotation.ts +12 -14
- package/src/operations/v2/updateCurrentUser.ts +5 -7
- package/src/operations/v2/updateDashboard.ts +3 -3
- package/src/operations/v2/updateDataset.ts +3 -3
- package/src/operations/v2/updateFieldForDataset.ts +7 -9
- package/src/operations/v2/updateGroup.ts +3 -3
- package/src/operations/v2/updateMapFields.ts +3 -3
- package/src/operations/v2/updateMonitor.ts +3 -3
- package/src/operations/v2/updateNotifier.ts +3 -3
- package/src/operations/v2/updateOrg.ts +3 -3
- package/src/operations/v2/updateRole.ts +3 -3
- package/src/operations/v2/updateStarred.ts +3 -3
- package/src/operations/v2/updateUserRole.ts +3 -3
- package/src/operations/v2/updateView.ts +3 -3
- package/src/operations/v2/updateVirtualField.ts +3 -3
- package/src/operations/v2/vacuumDataset.ts +3 -3
|
@@ -7,7 +7,7 @@ import { NotFound } from "../../errors.ts";
|
|
|
7
7
|
export interface GetDashboardInput {
|
|
8
8
|
uid: string;
|
|
9
9
|
}
|
|
10
|
-
export const GetDashboardInput = /*@__PURE__*/
|
|
10
|
+
export const GetDashboardInput = /*@__PURE__*/ Schema.Struct({
|
|
11
11
|
uid: Schema.String.pipe(T.PathParam()),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({ method: "GET", path: "/v2/dashboards/uid/{uid}" }),
|
|
@@ -186,7 +186,7 @@ export interface GetDashboardOutput {
|
|
|
186
186
|
updatedBy: string;
|
|
187
187
|
version: string | number;
|
|
188
188
|
}
|
|
189
|
-
export const GetDashboardOutput = /*@__PURE__*/
|
|
189
|
+
export const GetDashboardOutput = /*@__PURE__*/ Schema.Struct({
|
|
190
190
|
createdAt: Schema.String,
|
|
191
191
|
createdBy: Schema.String,
|
|
192
192
|
dashboard: Schema.Struct({
|
|
@@ -245,7 +245,7 @@ export const GetDashboardOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
245
245
|
*
|
|
246
246
|
* Get a dashboard by UID.
|
|
247
247
|
*/
|
|
248
|
-
export const getDashboard = /*@__PURE__*/
|
|
248
|
+
export const getDashboard = /*@__PURE__*/ API.make(() => ({
|
|
249
249
|
inputSchema: GetDashboardInput,
|
|
250
250
|
outputSchema: GetDashboardOutput,
|
|
251
251
|
errors: [NotFound] as const,
|
|
@@ -7,7 +7,7 @@ import { Forbidden, NotFound } from "../../errors.ts";
|
|
|
7
7
|
export interface GetDatasetInput {
|
|
8
8
|
dataset_id: string;
|
|
9
9
|
}
|
|
10
|
-
export const GetDatasetInput = /*@__PURE__*/
|
|
10
|
+
export const GetDatasetInput = /*@__PURE__*/ Schema.Struct({
|
|
11
11
|
dataset_id: Schema.String.pipe(T.PathParam()),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({ method: "GET", path: "/v2/datasets/{dataset_id}" }),
|
|
@@ -34,7 +34,7 @@ export interface GetDatasetOutput {
|
|
|
34
34
|
useRetentionPeriod?: boolean;
|
|
35
35
|
who: string;
|
|
36
36
|
}
|
|
37
|
-
export const GetDatasetOutput = /*@__PURE__*/
|
|
37
|
+
export const GetDatasetOutput = /*@__PURE__*/ Schema.Struct({
|
|
38
38
|
canWrite: Schema.optional(Schema.Boolean),
|
|
39
39
|
created: Schema.String,
|
|
40
40
|
description: Schema.String,
|
|
@@ -60,7 +60,7 @@ export const GetDatasetOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
60
60
|
/**
|
|
61
61
|
* Get dataset by ID
|
|
62
62
|
*/
|
|
63
|
-
export const getDataset = /*@__PURE__*/
|
|
63
|
+
export const getDataset = /*@__PURE__*/ API.make(() => ({
|
|
64
64
|
inputSchema: GetDatasetInput,
|
|
65
65
|
outputSchema: GetDatasetOutput,
|
|
66
66
|
errors: [Forbidden, NotFound] as const,
|
|
@@ -5,9 +5,7 @@ import { Forbidden } from "../../errors.ts";
|
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
7
|
export interface GetDatasetsInput {}
|
|
8
|
-
export const GetDatasetsInput = /*@__PURE__*/
|
|
9
|
-
{},
|
|
10
|
-
).pipe(
|
|
8
|
+
export const GetDatasetsInput = /*@__PURE__*/ Schema.Struct({}).pipe(
|
|
11
9
|
T.Http({ method: "GET", path: "/v2/datasets" }),
|
|
12
10
|
) as unknown as Schema.Codec<GetDatasetsInput>;
|
|
13
11
|
|
|
@@ -32,7 +30,7 @@ export type GetDatasetsOutput = ReadonlyArray<{
|
|
|
32
30
|
useRetentionPeriod?: boolean;
|
|
33
31
|
who: string;
|
|
34
32
|
}>;
|
|
35
|
-
export const GetDatasetsOutput = /*@__PURE__*/
|
|
33
|
+
export const GetDatasetsOutput = /*@__PURE__*/ Schema.Array(
|
|
36
34
|
Schema.Struct({
|
|
37
35
|
canWrite: Schema.optional(Schema.Boolean),
|
|
38
36
|
created: Schema.String,
|
|
@@ -60,7 +58,7 @@ export const GetDatasetsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
|
60
58
|
/**
|
|
61
59
|
* Get list of datasets
|
|
62
60
|
*/
|
|
63
|
-
export const getDatasets = /*@__PURE__*/
|
|
61
|
+
export const getDatasets = /*@__PURE__*/ API.make(() => ({
|
|
64
62
|
inputSchema: GetDatasetsInput,
|
|
65
63
|
outputSchema: GetDatasetsOutput,
|
|
66
64
|
errors: [Forbidden] as const,
|
|
@@ -9,7 +9,7 @@ export interface GetFieldForDatasetInput {
|
|
|
9
9
|
field_id: string;
|
|
10
10
|
}
|
|
11
11
|
export const GetFieldForDatasetInput =
|
|
12
|
-
/*@__PURE__*/
|
|
12
|
+
/*@__PURE__*/ Schema.Struct({
|
|
13
13
|
dataset_id: Schema.String.pipe(T.PathParam()),
|
|
14
14
|
field_id: Schema.String.pipe(T.PathParam()),
|
|
15
15
|
}).pipe(
|
|
@@ -28,7 +28,7 @@ export interface GetFieldForDatasetOutput {
|
|
|
28
28
|
unit?: string;
|
|
29
29
|
}
|
|
30
30
|
export const GetFieldForDatasetOutput =
|
|
31
|
-
/*@__PURE__*/
|
|
31
|
+
/*@__PURE__*/ Schema.Struct({
|
|
32
32
|
description: Schema.optional(Schema.String),
|
|
33
33
|
hidden: Schema.optional(Schema.Boolean),
|
|
34
34
|
name: Schema.String,
|
|
@@ -37,7 +37,7 @@ export const GetFieldForDatasetOutput =
|
|
|
37
37
|
}) as unknown as Schema.Codec<GetFieldForDatasetOutput>;
|
|
38
38
|
|
|
39
39
|
// The operation
|
|
40
|
-
export const getFieldForDataset = /*@__PURE__*/
|
|
40
|
+
export const getFieldForDataset = /*@__PURE__*/ API.make(() => ({
|
|
41
41
|
inputSchema: GetFieldForDatasetInput,
|
|
42
42
|
outputSchema: GetFieldForDatasetOutput,
|
|
43
43
|
errors: [NotFound] as const,
|
|
@@ -8,7 +8,7 @@ export interface GetFieldsForDatasetInput {
|
|
|
8
8
|
dataset_id: string;
|
|
9
9
|
}
|
|
10
10
|
export const GetFieldsForDatasetInput =
|
|
11
|
-
/*@__PURE__*/
|
|
11
|
+
/*@__PURE__*/ Schema.Struct({
|
|
12
12
|
dataset_id: Schema.String.pipe(T.PathParam()),
|
|
13
13
|
}).pipe(
|
|
14
14
|
T.Http({ method: "GET", path: "/v2/datasets/{dataset_id}/fields" }),
|
|
@@ -23,7 +23,7 @@ export type GetFieldsForDatasetOutput = ReadonlyArray<{
|
|
|
23
23
|
unit?: string;
|
|
24
24
|
}>;
|
|
25
25
|
export const GetFieldsForDatasetOutput =
|
|
26
|
-
/*@__PURE__*/
|
|
26
|
+
/*@__PURE__*/ Schema.Array(
|
|
27
27
|
Schema.Struct({
|
|
28
28
|
description: Schema.optional(Schema.String),
|
|
29
29
|
hidden: Schema.optional(Schema.Boolean),
|
|
@@ -34,7 +34,7 @@ export const GetFieldsForDatasetOutput =
|
|
|
34
34
|
) as unknown as Schema.Codec<GetFieldsForDatasetOutput>;
|
|
35
35
|
|
|
36
36
|
// The operation
|
|
37
|
-
export const getFieldsForDataset = /*@__PURE__*/
|
|
37
|
+
export const getFieldsForDataset = /*@__PURE__*/ API.make(() => ({
|
|
38
38
|
inputSchema: GetFieldsForDatasetInput,
|
|
39
39
|
outputSchema: GetFieldsForDatasetOutput,
|
|
40
40
|
errors: [Forbidden, NotFound] as const,
|
|
@@ -7,7 +7,7 @@ import { NotFound } from "../../errors.ts";
|
|
|
7
7
|
export interface GetGroupByIdInput {
|
|
8
8
|
id: string;
|
|
9
9
|
}
|
|
10
|
-
export const GetGroupByIdInput = /*@__PURE__*/
|
|
10
|
+
export const GetGroupByIdInput = /*@__PURE__*/ Schema.Struct({
|
|
11
11
|
id: Schema.String.pipe(T.PathParam()),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({ method: "GET", path: "/v2/rbac/groups/{id}" }),
|
|
@@ -22,7 +22,7 @@ export interface GetGroupByIdOutput {
|
|
|
22
22
|
roles?: ReadonlyArray<string>;
|
|
23
23
|
id: string;
|
|
24
24
|
}
|
|
25
|
-
export const GetGroupByIdOutput = /*@__PURE__*/
|
|
25
|
+
export const GetGroupByIdOutput = /*@__PURE__*/ Schema.Struct({
|
|
26
26
|
description: Schema.optional(Schema.String),
|
|
27
27
|
isManaged: Schema.optional(Schema.Boolean),
|
|
28
28
|
members: Schema.optional(Schema.Array(Schema.String)),
|
|
@@ -39,7 +39,7 @@ export const GetGroupByIdOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
39
39
|
*
|
|
40
40
|
* @param id - Unique identifier of the group to retrieve
|
|
41
41
|
*/
|
|
42
|
-
export const getGroupById = /*@__PURE__*/
|
|
42
|
+
export const getGroupById = /*@__PURE__*/ API.make(() => ({
|
|
43
43
|
inputSchema: GetGroupByIdInput,
|
|
44
44
|
outputSchema: GetGroupByIdOutput,
|
|
45
45
|
errors: [NotFound] as const,
|
|
@@ -7,7 +7,7 @@ import { NotFound } from "../../errors.ts";
|
|
|
7
7
|
export interface GetMapFieldsInput {
|
|
8
8
|
dataset_id: string;
|
|
9
9
|
}
|
|
10
|
-
export const GetMapFieldsInput = /*@__PURE__*/
|
|
10
|
+
export const GetMapFieldsInput = /*@__PURE__*/ Schema.Struct({
|
|
11
11
|
dataset_id: Schema.String.pipe(T.PathParam()),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({ method: "GET", path: "/v2/datasets/{dataset_id}/mapfields" }),
|
|
@@ -15,12 +15,12 @@ export const GetMapFieldsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
15
15
|
|
|
16
16
|
// Output Schema
|
|
17
17
|
export type GetMapFieldsOutput = ReadonlyArray<string>;
|
|
18
|
-
export const GetMapFieldsOutput = /*@__PURE__*/
|
|
18
|
+
export const GetMapFieldsOutput = /*@__PURE__*/ Schema.Array(
|
|
19
19
|
Schema.String,
|
|
20
20
|
) as unknown as Schema.Codec<GetMapFieldsOutput>;
|
|
21
21
|
|
|
22
22
|
// The operation
|
|
23
|
-
export const getMapFields = /*@__PURE__*/
|
|
23
|
+
export const getMapFields = /*@__PURE__*/ API.make(() => ({
|
|
24
24
|
inputSchema: GetMapFieldsInput,
|
|
25
25
|
outputSchema: GetMapFieldsOutput,
|
|
26
26
|
errors: [NotFound] as const,
|
|
@@ -7,7 +7,7 @@ import { NotFound } from "../../errors.ts";
|
|
|
7
7
|
export interface GetMonitorInput {
|
|
8
8
|
id: string;
|
|
9
9
|
}
|
|
10
|
-
export const GetMonitorInput = /*@__PURE__*/
|
|
10
|
+
export const GetMonitorInput = /*@__PURE__*/ Schema.Struct({
|
|
11
11
|
id: Schema.String.pipe(T.PathParam()),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({ method: "GET", path: "/v2/monitors/{id}" }),
|
|
@@ -48,7 +48,7 @@ export interface GetMonitorOutput {
|
|
|
48
48
|
updatedAt?: string;
|
|
49
49
|
id: string;
|
|
50
50
|
}
|
|
51
|
-
export const GetMonitorOutput = /*@__PURE__*/
|
|
51
|
+
export const GetMonitorOutput = /*@__PURE__*/ Schema.Struct({
|
|
52
52
|
alertOnNoData: Schema.optional(Schema.Boolean),
|
|
53
53
|
aplQuery: Schema.optional(Schema.String),
|
|
54
54
|
columnName: Schema.optional(Schema.String),
|
|
@@ -92,7 +92,7 @@ export const GetMonitorOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
92
92
|
*
|
|
93
93
|
* @param id - Unique identifier of the monitor (format: mon_*)
|
|
94
94
|
*/
|
|
95
|
-
export const getMonitor = /*@__PURE__*/
|
|
95
|
+
export const getMonitor = /*@__PURE__*/ API.make(() => ({
|
|
96
96
|
inputSchema: GetMonitorInput,
|
|
97
97
|
outputSchema: GetMonitorOutput,
|
|
98
98
|
errors: [NotFound] as const,
|
|
@@ -9,13 +9,11 @@ export interface GetMonitorHistoryInput {
|
|
|
9
9
|
startTime: string;
|
|
10
10
|
endTime: string;
|
|
11
11
|
}
|
|
12
|
-
export const GetMonitorHistoryInput = /*@__PURE__*/
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
).pipe(
|
|
12
|
+
export const GetMonitorHistoryInput = /*@__PURE__*/ Schema.Struct({
|
|
13
|
+
id: Schema.String.pipe(T.PathParam()),
|
|
14
|
+
startTime: Schema.String,
|
|
15
|
+
endTime: Schema.String,
|
|
16
|
+
}).pipe(
|
|
19
17
|
T.Http({ method: "GET", path: "/v2/monitors/{id}/history" }),
|
|
20
18
|
) as unknown as Schema.Codec<GetMonitorHistoryInput>;
|
|
21
19
|
|
|
@@ -26,7 +24,7 @@ export type GetMonitorHistoryOutput = ReadonlyArray<{
|
|
|
26
24
|
state: "open" | "closed";
|
|
27
25
|
timestamp: string;
|
|
28
26
|
}>;
|
|
29
|
-
export const GetMonitorHistoryOutput = /*@__PURE__*/
|
|
27
|
+
export const GetMonitorHistoryOutput = /*@__PURE__*/ Schema.Array(
|
|
30
28
|
Schema.Struct({
|
|
31
29
|
checkId: Schema.String,
|
|
32
30
|
name: Schema.String,
|
|
@@ -42,7 +40,7 @@ export const GetMonitorHistoryOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
|
42
40
|
* @param startTime - Start time (ISO 8601 format) for filtering alert history.
|
|
43
41
|
* @param endTime - End time (ISO 8601 format) for filtering alert history.
|
|
44
42
|
*/
|
|
45
|
-
export const getMonitorHistory = /*@__PURE__*/
|
|
43
|
+
export const getMonitorHistory = /*@__PURE__*/ API.make(() => ({
|
|
46
44
|
inputSchema: GetMonitorHistoryInput,
|
|
47
45
|
outputSchema: GetMonitorHistoryOutput,
|
|
48
46
|
errors: [NotFound, UnprocessableEntity] as const,
|
|
@@ -4,9 +4,7 @@ import * as T from "../../traits.ts";
|
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
6
|
export interface GetMonitorsInput {}
|
|
7
|
-
export const GetMonitorsInput = /*@__PURE__*/
|
|
8
|
-
{},
|
|
9
|
-
).pipe(
|
|
7
|
+
export const GetMonitorsInput = /*@__PURE__*/ Schema.Struct({}).pipe(
|
|
10
8
|
T.Http({ method: "GET", path: "/v2/monitors" }),
|
|
11
9
|
) as unknown as Schema.Codec<GetMonitorsInput>;
|
|
12
10
|
|
|
@@ -45,7 +43,7 @@ export type GetMonitorsOutput = ReadonlyArray<{
|
|
|
45
43
|
updatedAt?: string;
|
|
46
44
|
id: string;
|
|
47
45
|
}>;
|
|
48
|
-
export const GetMonitorsOutput = /*@__PURE__*/
|
|
46
|
+
export const GetMonitorsOutput = /*@__PURE__*/ Schema.Array(
|
|
49
47
|
Schema.Struct({
|
|
50
48
|
alertOnNoData: Schema.optional(Schema.Boolean),
|
|
51
49
|
aplQuery: Schema.optional(Schema.String),
|
|
@@ -89,7 +87,7 @@ export const GetMonitorsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
|
89
87
|
/**
|
|
90
88
|
* Lists all configured monitors. Returns an array of monitor configurations including their IDs and current status.
|
|
91
89
|
*/
|
|
92
|
-
export const getMonitors = /*@__PURE__*/
|
|
90
|
+
export const getMonitors = /*@__PURE__*/ API.make(() => ({
|
|
93
91
|
inputSchema: GetMonitorsInput,
|
|
94
92
|
outputSchema: GetMonitorsOutput,
|
|
95
93
|
}));
|
|
@@ -9,7 +9,7 @@ import * as Redacted from "effect/Redacted";
|
|
|
9
9
|
export interface GetNotifierInput {
|
|
10
10
|
id: string;
|
|
11
11
|
}
|
|
12
|
-
export const GetNotifierInput = /*@__PURE__*/
|
|
12
|
+
export const GetNotifierInput = /*@__PURE__*/ Schema.Struct({
|
|
13
13
|
id: Schema.String.pipe(T.PathParam()),
|
|
14
14
|
}).pipe(
|
|
15
15
|
T.Http({ method: "GET", path: "/v2/notifiers/{id}" }),
|
|
@@ -40,7 +40,7 @@ export interface GetNotifierOutput {
|
|
|
40
40
|
updatedAt?: string;
|
|
41
41
|
id?: string;
|
|
42
42
|
}
|
|
43
|
-
export const GetNotifierOutput = /*@__PURE__*/
|
|
43
|
+
export const GetNotifierOutput = /*@__PURE__*/ Schema.Struct({
|
|
44
44
|
createdAt: Schema.optional(Schema.String),
|
|
45
45
|
createdBy: Schema.optional(Schema.String),
|
|
46
46
|
disabledUntil: Schema.optional(Schema.String),
|
|
@@ -110,7 +110,7 @@ export const GetNotifierOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
110
110
|
*
|
|
111
111
|
* @param id - Unique identifier of the notifier (format: notify_*)
|
|
112
112
|
*/
|
|
113
|
-
export const getNotifier = /*@__PURE__*/
|
|
113
|
+
export const getNotifier = /*@__PURE__*/ API.make(() => ({
|
|
114
114
|
inputSchema: GetNotifierInput,
|
|
115
115
|
outputSchema: GetNotifierOutput,
|
|
116
116
|
errors: [NotFound] as const,
|
|
@@ -6,9 +6,7 @@ import * as Redacted from "effect/Redacted";
|
|
|
6
6
|
|
|
7
7
|
// Input Schema
|
|
8
8
|
export interface GetNotifiersInput {}
|
|
9
|
-
export const GetNotifiersInput = /*@__PURE__*/
|
|
10
|
-
{},
|
|
11
|
-
).pipe(
|
|
9
|
+
export const GetNotifiersInput = /*@__PURE__*/ Schema.Struct({}).pipe(
|
|
12
10
|
T.Http({ method: "GET", path: "/v2/notifiers" }),
|
|
13
11
|
) as unknown as Schema.Codec<GetNotifiersInput>;
|
|
14
12
|
|
|
@@ -37,7 +35,7 @@ export type GetNotifiersOutput = ReadonlyArray<{
|
|
|
37
35
|
updatedAt?: string;
|
|
38
36
|
id?: string;
|
|
39
37
|
}>;
|
|
40
|
-
export const GetNotifiersOutput = /*@__PURE__*/
|
|
38
|
+
export const GetNotifiersOutput = /*@__PURE__*/ Schema.Array(
|
|
41
39
|
Schema.Struct({
|
|
42
40
|
createdAt: Schema.optional(Schema.String),
|
|
43
41
|
createdBy: Schema.optional(Schema.String),
|
|
@@ -107,7 +105,7 @@ export const GetNotifiersOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
|
107
105
|
/**
|
|
108
106
|
* Lists all configured notifiers. Returns an array of notification configurations including their IDs and current status.
|
|
109
107
|
*/
|
|
110
|
-
export const getNotifiers = /*@__PURE__*/
|
|
108
|
+
export const getNotifiers = /*@__PURE__*/ API.make(() => ({
|
|
111
109
|
inputSchema: GetNotifiersInput,
|
|
112
110
|
outputSchema: GetNotifiersOutput,
|
|
113
111
|
}));
|
|
@@ -7,7 +7,7 @@ import { NotFound } from "../../errors.ts";
|
|
|
7
7
|
export interface GetOrgInput {
|
|
8
8
|
id: string;
|
|
9
9
|
}
|
|
10
|
-
export const GetOrgInput = /*@__PURE__*/
|
|
10
|
+
export const GetOrgInput = /*@__PURE__*/ Schema.Struct({
|
|
11
11
|
id: Schema.String.pipe(T.PathParam()),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({ method: "GET", path: "/v2/orgs/{id}" }),
|
|
@@ -69,7 +69,7 @@ export interface GetOrgOutput {
|
|
|
69
69
|
primaryEmail: string;
|
|
70
70
|
role?: string;
|
|
71
71
|
}
|
|
72
|
-
export const GetOrgOutput = /*@__PURE__*/
|
|
72
|
+
export const GetOrgOutput = /*@__PURE__*/ Schema.Struct({
|
|
73
73
|
defaultEdgeDeployment: Schema.optional(Schema.String),
|
|
74
74
|
firstFailedPayment: Schema.optional(Schema.String),
|
|
75
75
|
id: Schema.String,
|
|
@@ -128,7 +128,7 @@ export const GetOrgOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
128
128
|
}) as unknown as Schema.Codec<GetOrgOutput>;
|
|
129
129
|
|
|
130
130
|
// The operation
|
|
131
|
-
export const getOrg = /*@__PURE__*/
|
|
131
|
+
export const getOrg = /*@__PURE__*/ API.make(() => ({
|
|
132
132
|
inputSchema: GetOrgInput,
|
|
133
133
|
outputSchema: GetOrgOutput,
|
|
134
134
|
errors: [NotFound] as const,
|
|
@@ -4,7 +4,7 @@ import * as T from "../../traits.ts";
|
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
6
|
export interface GetOrgsInput {}
|
|
7
|
-
export const GetOrgsInput = /*@__PURE__*/
|
|
7
|
+
export const GetOrgsInput = /*@__PURE__*/ Schema.Struct({}).pipe(
|
|
8
8
|
T.Http({ method: "GET", path: "/v2/orgs" }),
|
|
9
9
|
) as unknown as Schema.Codec<GetOrgsInput>;
|
|
10
10
|
|
|
@@ -64,7 +64,7 @@ export type GetOrgsOutput = ReadonlyArray<{
|
|
|
64
64
|
primaryEmail: string;
|
|
65
65
|
role?: string;
|
|
66
66
|
}>;
|
|
67
|
-
export const GetOrgsOutput = /*@__PURE__*/
|
|
67
|
+
export const GetOrgsOutput = /*@__PURE__*/ Schema.Array(
|
|
68
68
|
Schema.Struct({
|
|
69
69
|
defaultEdgeDeployment: Schema.optional(Schema.String),
|
|
70
70
|
firstFailedPayment: Schema.optional(Schema.String),
|
|
@@ -125,7 +125,7 @@ export const GetOrgsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
|
125
125
|
) as unknown as Schema.Codec<GetOrgsOutput>;
|
|
126
126
|
|
|
127
127
|
// The operation
|
|
128
|
-
export const getOrgs = /*@__PURE__*/
|
|
128
|
+
export const getOrgs = /*@__PURE__*/ API.make(() => ({
|
|
129
129
|
inputSchema: GetOrgsInput,
|
|
130
130
|
outputSchema: GetOrgsOutput,
|
|
131
131
|
}));
|
|
@@ -7,7 +7,7 @@ import { NotFound } from "../../errors.ts";
|
|
|
7
7
|
export interface GetRoleByIdInput {
|
|
8
8
|
id: string;
|
|
9
9
|
}
|
|
10
|
-
export const GetRoleByIdInput = /*@__PURE__*/
|
|
10
|
+
export const GetRoleByIdInput = /*@__PURE__*/ Schema.Struct({
|
|
11
11
|
id: Schema.String.pipe(T.PathParam()),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({ method: "GET", path: "/v2/rbac/roles/{id}" }),
|
|
@@ -57,7 +57,7 @@ export interface GetRoleByIdOutput {
|
|
|
57
57
|
>;
|
|
58
58
|
id: string;
|
|
59
59
|
}
|
|
60
|
-
export const GetRoleByIdOutput = /*@__PURE__*/
|
|
60
|
+
export const GetRoleByIdOutput = /*@__PURE__*/ Schema.Struct({
|
|
61
61
|
datasetCapabilities: Schema.optional(
|
|
62
62
|
Schema.Record(
|
|
63
63
|
Schema.String,
|
|
@@ -151,7 +151,7 @@ export const GetRoleByIdOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
151
151
|
*
|
|
152
152
|
* @param id - Unique identifier of the role to retrieve
|
|
153
153
|
*/
|
|
154
|
-
export const getRoleById = /*@__PURE__*/
|
|
154
|
+
export const getRoleById = /*@__PURE__*/ API.make(() => ({
|
|
155
155
|
inputSchema: GetRoleByIdInput,
|
|
156
156
|
outputSchema: GetRoleByIdOutput,
|
|
157
157
|
errors: [NotFound] as const,
|
|
@@ -7,7 +7,7 @@ import { NotFound } from "../../errors.ts";
|
|
|
7
7
|
export interface GetStarredInput {
|
|
8
8
|
id: string;
|
|
9
9
|
}
|
|
10
|
-
export const GetStarredInput = /*@__PURE__*/
|
|
10
|
+
export const GetStarredInput = /*@__PURE__*/ Schema.Struct({
|
|
11
11
|
id: Schema.String.pipe(T.PathParam()),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({ method: "GET", path: "/v2/apl-starred-queries/{id}" }),
|
|
@@ -51,7 +51,7 @@ export interface GetStarredOutput {
|
|
|
51
51
|
who: string;
|
|
52
52
|
id: string;
|
|
53
53
|
}
|
|
54
|
-
export const GetStarredOutput = /*@__PURE__*/
|
|
54
|
+
export const GetStarredOutput = /*@__PURE__*/ Schema.Struct({
|
|
55
55
|
dataset: Schema.optional(Schema.String),
|
|
56
56
|
kind: Schema.Literals(["apl"]),
|
|
57
57
|
metadata: Schema.Record(Schema.String, Schema.String),
|
|
@@ -110,7 +110,7 @@ export const GetStarredOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
110
110
|
}) as unknown as Schema.Codec<GetStarredOutput>;
|
|
111
111
|
|
|
112
112
|
// The operation
|
|
113
|
-
export const getStarred = /*@__PURE__*/
|
|
113
|
+
export const getStarred = /*@__PURE__*/ API.make(() => ({
|
|
114
114
|
inputSchema: GetStarredInput,
|
|
115
115
|
outputSchema: GetStarredOutput,
|
|
116
116
|
errors: [NotFound] as const,
|
|
@@ -10,15 +10,13 @@ export interface GetStarredQueriesInput {
|
|
|
10
10
|
who?: string;
|
|
11
11
|
qs?: string;
|
|
12
12
|
}
|
|
13
|
-
export const GetStarredQueriesInput = /*@__PURE__*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
},
|
|
21
|
-
).pipe(
|
|
13
|
+
export const GetStarredQueriesInput = /*@__PURE__*/ Schema.Struct({
|
|
14
|
+
limit: Schema.optional(Schema.Number),
|
|
15
|
+
offset: Schema.optional(Schema.Number),
|
|
16
|
+
dataset: Schema.optional(Schema.String),
|
|
17
|
+
who: Schema.optional(Schema.String),
|
|
18
|
+
qs: Schema.optional(Schema.String),
|
|
19
|
+
}).pipe(
|
|
22
20
|
T.Http({ method: "GET", path: "/v2/apl-starred-queries" }),
|
|
23
21
|
) as unknown as Schema.Codec<GetStarredQueriesInput>;
|
|
24
22
|
|
|
@@ -60,7 +58,7 @@ export type GetStarredQueriesOutput = ReadonlyArray<{
|
|
|
60
58
|
who: string;
|
|
61
59
|
id: string;
|
|
62
60
|
}>;
|
|
63
|
-
export const GetStarredQueriesOutput = /*@__PURE__*/
|
|
61
|
+
export const GetStarredQueriesOutput = /*@__PURE__*/ Schema.Array(
|
|
64
62
|
Schema.Struct({
|
|
65
63
|
dataset: Schema.optional(Schema.String),
|
|
66
64
|
kind: Schema.Literals(["apl"]),
|
|
@@ -130,7 +128,7 @@ export const GetStarredQueriesOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
|
130
128
|
- If the value of `who` is `team`, the request returns queries starred by the team apart from the authenticated user.For example, `&who=team`.
|
|
131
129
|
- If the value of `who` is `all`, the request returns queries starred by all users in the team, including the authenticated user. For example, `&who=all`.
|
|
132
130
|
*/
|
|
133
|
-
export const getStarredQueries = /*@__PURE__*/
|
|
131
|
+
export const getStarredQueries = /*@__PURE__*/ API.make(() => ({
|
|
134
132
|
inputSchema: GetStarredQueriesInput,
|
|
135
133
|
outputSchema: GetStarredQueriesOutput,
|
|
136
134
|
}));
|
|
@@ -7,7 +7,7 @@ import { NotFound } from "../../errors.ts";
|
|
|
7
7
|
export interface GetUserInput {
|
|
8
8
|
id: string;
|
|
9
9
|
}
|
|
10
|
-
export const GetUserInput = /*@__PURE__*/
|
|
10
|
+
export const GetUserInput = /*@__PURE__*/ Schema.Struct({
|
|
11
11
|
id: Schema.String.pipe(T.PathParam()),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({ method: "GET", path: "/v2/users/{id}" }),
|
|
@@ -20,7 +20,7 @@ export interface GetUserOutput {
|
|
|
20
20
|
name: string;
|
|
21
21
|
role?: { id: string; name: string };
|
|
22
22
|
}
|
|
23
|
-
export const GetUserOutput = /*@__PURE__*/
|
|
23
|
+
export const GetUserOutput = /*@__PURE__*/ Schema.Struct({
|
|
24
24
|
email: Schema.String,
|
|
25
25
|
id: Schema.String,
|
|
26
26
|
name: Schema.String,
|
|
@@ -36,7 +36,7 @@ export const GetUserOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
36
36
|
/**
|
|
37
37
|
* Get user by ID
|
|
38
38
|
*/
|
|
39
|
-
export const getUser = /*@__PURE__*/
|
|
39
|
+
export const getUser = /*@__PURE__*/ API.make(() => ({
|
|
40
40
|
inputSchema: GetUserInput,
|
|
41
41
|
outputSchema: GetUserOutput,
|
|
42
42
|
errors: [NotFound] as const,
|
|
@@ -4,7 +4,7 @@ import * as T from "../../traits.ts";
|
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
6
|
export interface GetUsersInput {}
|
|
7
|
-
export const GetUsersInput = /*@__PURE__*/
|
|
7
|
+
export const GetUsersInput = /*@__PURE__*/ Schema.Struct({}).pipe(
|
|
8
8
|
T.Http({ method: "GET", path: "/v2/users" }),
|
|
9
9
|
) as unknown as Schema.Codec<GetUsersInput>;
|
|
10
10
|
|
|
@@ -15,7 +15,7 @@ export type GetUsersOutput = ReadonlyArray<{
|
|
|
15
15
|
name: string;
|
|
16
16
|
role?: { id: string; name: string };
|
|
17
17
|
}>;
|
|
18
|
-
export const GetUsersOutput = /*@__PURE__*/
|
|
18
|
+
export const GetUsersOutput = /*@__PURE__*/ Schema.Array(
|
|
19
19
|
Schema.Struct({
|
|
20
20
|
email: Schema.String,
|
|
21
21
|
id: Schema.String,
|
|
@@ -33,7 +33,7 @@ export const GetUsersOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
|
33
33
|
/**
|
|
34
34
|
* Get users
|
|
35
35
|
*/
|
|
36
|
-
export const getUsers = /*@__PURE__*/
|
|
36
|
+
export const getUsers = /*@__PURE__*/ API.make(() => ({
|
|
37
37
|
inputSchema: GetUsersInput,
|
|
38
38
|
outputSchema: GetUsersOutput,
|
|
39
39
|
}));
|
|
@@ -7,7 +7,7 @@ import { NotFound } from "../../errors.ts";
|
|
|
7
7
|
export interface GetViewInput {
|
|
8
8
|
id: string;
|
|
9
9
|
}
|
|
10
|
-
export const GetViewInput = /*@__PURE__*/
|
|
10
|
+
export const GetViewInput = /*@__PURE__*/ Schema.Struct({
|
|
11
11
|
id: Schema.String.pipe(T.PathParam()),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({ method: "GET", path: "/v2/views/{id}" }),
|
|
@@ -22,7 +22,7 @@ export interface GetViewOutput {
|
|
|
22
22
|
sharedByOrg?: string;
|
|
23
23
|
sharedByOrgName?: string;
|
|
24
24
|
}
|
|
25
|
-
export const GetViewOutput = /*@__PURE__*/
|
|
25
|
+
export const GetViewOutput = /*@__PURE__*/ Schema.Struct({
|
|
26
26
|
aplQuery: Schema.String,
|
|
27
27
|
datasets: Schema.optional(Schema.Array(Schema.String)),
|
|
28
28
|
description: Schema.optional(Schema.String),
|
|
@@ -32,7 +32,7 @@ export const GetViewOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
32
32
|
}) as unknown as Schema.Codec<GetViewOutput>;
|
|
33
33
|
|
|
34
34
|
// The operation
|
|
35
|
-
export const getView = /*@__PURE__*/
|
|
35
|
+
export const getView = /*@__PURE__*/ API.make(() => ({
|
|
36
36
|
inputSchema: GetViewInput,
|
|
37
37
|
outputSchema: GetViewOutput,
|
|
38
38
|
errors: [NotFound] as const,
|
|
@@ -4,7 +4,7 @@ import * as T from "../../traits.ts";
|
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
6
|
export interface GetViewsInput {}
|
|
7
|
-
export const GetViewsInput = /*@__PURE__*/
|
|
7
|
+
export const GetViewsInput = /*@__PURE__*/ Schema.Struct({}).pipe(
|
|
8
8
|
T.Http({ method: "GET", path: "/v2/views" }),
|
|
9
9
|
) as unknown as Schema.Codec<GetViewsInput>;
|
|
10
10
|
|
|
@@ -17,7 +17,7 @@ export type GetViewsOutput = ReadonlyArray<{
|
|
|
17
17
|
sharedByOrg?: string;
|
|
18
18
|
sharedByOrgName?: string;
|
|
19
19
|
}>;
|
|
20
|
-
export const GetViewsOutput = /*@__PURE__*/
|
|
20
|
+
export const GetViewsOutput = /*@__PURE__*/ Schema.Array(
|
|
21
21
|
Schema.Struct({
|
|
22
22
|
aplQuery: Schema.String,
|
|
23
23
|
datasets: Schema.optional(Schema.Array(Schema.String)),
|
|
@@ -29,7 +29,7 @@ export const GetViewsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
|
29
29
|
) as unknown as Schema.Codec<GetViewsOutput>;
|
|
30
30
|
|
|
31
31
|
// The operation
|
|
32
|
-
export const getViews = /*@__PURE__*/
|
|
32
|
+
export const getViews = /*@__PURE__*/ API.make(() => ({
|
|
33
33
|
inputSchema: GetViewsInput,
|
|
34
34
|
outputSchema: GetViewsOutput,
|
|
35
35
|
}));
|
|
@@ -7,7 +7,7 @@ import { NotFound } from "../../errors.ts";
|
|
|
7
7
|
export interface GetVirtualFieldInput {
|
|
8
8
|
id: string;
|
|
9
9
|
}
|
|
10
|
-
export const GetVirtualFieldInput = /*@__PURE__*/
|
|
10
|
+
export const GetVirtualFieldInput = /*@__PURE__*/ Schema.Struct({
|
|
11
11
|
id: Schema.String.pipe(T.PathParam()),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({ method: "GET", path: "/v2/vfields/{id}" }),
|
|
@@ -23,7 +23,7 @@ export interface GetVirtualFieldOutput {
|
|
|
23
23
|
unit?: string;
|
|
24
24
|
id: string;
|
|
25
25
|
}
|
|
26
|
-
export const GetVirtualFieldOutput = /*@__PURE__*/
|
|
26
|
+
export const GetVirtualFieldOutput = /*@__PURE__*/ Schema.Struct({
|
|
27
27
|
dataset: Schema.String,
|
|
28
28
|
description: Schema.optional(Schema.String),
|
|
29
29
|
expression: Schema.String,
|
|
@@ -34,7 +34,7 @@ export const GetVirtualFieldOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
34
34
|
}) as unknown as Schema.Codec<GetVirtualFieldOutput>;
|
|
35
35
|
|
|
36
36
|
// The operation
|
|
37
|
-
export const getVirtualField = /*@__PURE__*/
|
|
37
|
+
export const getVirtualField = /*@__PURE__*/ API.make(() => ({
|
|
38
38
|
inputSchema: GetVirtualFieldInput,
|
|
39
39
|
outputSchema: GetVirtualFieldOutput,
|
|
40
40
|
errors: [NotFound] as const,
|
|
@@ -6,7 +6,7 @@ import * as T from "../../traits.ts";
|
|
|
6
6
|
export interface GetVirtualFieldsInput {
|
|
7
7
|
dataset: string;
|
|
8
8
|
}
|
|
9
|
-
export const GetVirtualFieldsInput = /*@__PURE__*/
|
|
9
|
+
export const GetVirtualFieldsInput = /*@__PURE__*/ Schema.Struct({
|
|
10
10
|
dataset: Schema.String,
|
|
11
11
|
}).pipe(
|
|
12
12
|
T.Http({ method: "GET", path: "/v2/vfields" }),
|
|
@@ -22,7 +22,7 @@ export type GetVirtualFieldsOutput = ReadonlyArray<{
|
|
|
22
22
|
unit?: string;
|
|
23
23
|
id: string;
|
|
24
24
|
}>;
|
|
25
|
-
export const GetVirtualFieldsOutput = /*@__PURE__*/
|
|
25
|
+
export const GetVirtualFieldsOutput = /*@__PURE__*/ Schema.Array(
|
|
26
26
|
Schema.Struct({
|
|
27
27
|
dataset: Schema.String,
|
|
28
28
|
description: Schema.optional(Schema.String),
|
|
@@ -35,7 +35,7 @@ export const GetVirtualFieldsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
|
35
35
|
) as unknown as Schema.Codec<GetVirtualFieldsOutput>;
|
|
36
36
|
|
|
37
37
|
// The operation
|
|
38
|
-
export const getVirtualFields = /*@__PURE__*/
|
|
38
|
+
export const getVirtualFields = /*@__PURE__*/ API.make(() => ({
|
|
39
39
|
inputSchema: GetVirtualFieldsInput,
|
|
40
40
|
outputSchema: GetVirtualFieldsOutput,
|
|
41
41
|
}));
|