@distilled.cloud/axiom 0.29.0 → 0.30.0
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 +3 -2
- 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 @@ export interface CreateOrgInput {
|
|
|
7
7
|
edgeDeployment?: string;
|
|
8
8
|
name: string;
|
|
9
9
|
}
|
|
10
|
-
export const CreateOrgInput = /*@__PURE__*/
|
|
10
|
+
export const CreateOrgInput = /*@__PURE__*/ Schema.Struct({
|
|
11
11
|
edgeDeployment: Schema.optional(Schema.String),
|
|
12
12
|
name: Schema.String,
|
|
13
13
|
}).pipe(
|
|
@@ -70,7 +70,7 @@ export interface CreateOrgOutput {
|
|
|
70
70
|
primaryEmail: string;
|
|
71
71
|
role?: string;
|
|
72
72
|
}
|
|
73
|
-
export const CreateOrgOutput = /*@__PURE__*/
|
|
73
|
+
export const CreateOrgOutput = /*@__PURE__*/ Schema.Struct({
|
|
74
74
|
defaultEdgeDeployment: Schema.optional(Schema.String),
|
|
75
75
|
firstFailedPayment: Schema.optional(Schema.String),
|
|
76
76
|
id: Schema.String,
|
|
@@ -129,7 +129,7 @@ export const CreateOrgOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
129
129
|
}) as unknown as Schema.Codec<CreateOrgOutput>;
|
|
130
130
|
|
|
131
131
|
// The operation
|
|
132
|
-
export const createOrg = /*@__PURE__*/
|
|
132
|
+
export const createOrg = /*@__PURE__*/ API.make(() => ({
|
|
133
133
|
inputSchema: CreateOrgInput,
|
|
134
134
|
outputSchema: CreateOrgOutput,
|
|
135
135
|
}));
|
|
@@ -46,7 +46,7 @@ export interface CreateRoleInput {
|
|
|
46
46
|
}
|
|
47
47
|
>;
|
|
48
48
|
}
|
|
49
|
-
export const CreateRoleInput = /*@__PURE__*/
|
|
49
|
+
export const CreateRoleInput = /*@__PURE__*/ Schema.Struct({
|
|
50
50
|
datasetCapabilities: Schema.optional(
|
|
51
51
|
Schema.Record(
|
|
52
52
|
Schema.String,
|
|
@@ -177,7 +177,7 @@ export interface CreateRoleOutput {
|
|
|
177
177
|
>;
|
|
178
178
|
id: string;
|
|
179
179
|
}
|
|
180
|
-
export const CreateRoleOutput = /*@__PURE__*/
|
|
180
|
+
export const CreateRoleOutput = /*@__PURE__*/ Schema.Struct({
|
|
181
181
|
datasetCapabilities: Schema.optional(
|
|
182
182
|
Schema.Record(
|
|
183
183
|
Schema.String,
|
|
@@ -269,7 +269,7 @@ export const CreateRoleOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
269
269
|
*
|
|
270
270
|
* Creates a new role in the organization with the specified permissions and member assignments.
|
|
271
271
|
*/
|
|
272
|
-
export const createRole = /*@__PURE__*/
|
|
272
|
+
export const createRole = /*@__PURE__*/ API.make(() => ({
|
|
273
273
|
inputSchema: CreateRoleInput,
|
|
274
274
|
outputSchema: CreateRoleOutput,
|
|
275
275
|
errors: [UnprocessableEntity] as const,
|
|
@@ -40,7 +40,7 @@ export interface CreateStarredInput {
|
|
|
40
40
|
};
|
|
41
41
|
who: string;
|
|
42
42
|
}
|
|
43
|
-
export const CreateStarredInput = /*@__PURE__*/
|
|
43
|
+
export const CreateStarredInput = /*@__PURE__*/ Schema.Struct({
|
|
44
44
|
dataset: Schema.optional(Schema.String),
|
|
45
45
|
kind: Schema.Literals(["apl"]),
|
|
46
46
|
metadata: Schema.Record(Schema.String, Schema.String),
|
|
@@ -137,7 +137,7 @@ export interface CreateStarredOutput {
|
|
|
137
137
|
who: string;
|
|
138
138
|
id: string;
|
|
139
139
|
}
|
|
140
|
-
export const CreateStarredOutput = /*@__PURE__*/
|
|
140
|
+
export const CreateStarredOutput = /*@__PURE__*/ Schema.Struct({
|
|
141
141
|
dataset: Schema.optional(Schema.String),
|
|
142
142
|
kind: Schema.Literals(["apl"]),
|
|
143
143
|
metadata: Schema.Record(Schema.String, Schema.String),
|
|
@@ -196,7 +196,7 @@ export const CreateStarredOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
196
196
|
}) as unknown as Schema.Codec<CreateStarredOutput>;
|
|
197
197
|
|
|
198
198
|
// The operation
|
|
199
|
-
export const createStarred = /*@__PURE__*/
|
|
199
|
+
export const createStarred = /*@__PURE__*/ API.make(() => ({
|
|
200
200
|
inputSchema: CreateStarredInput,
|
|
201
201
|
outputSchema: CreateStarredOutput,
|
|
202
202
|
errors: [UnprocessableEntity] as const,
|
|
@@ -9,7 +9,7 @@ export interface CreateUserInput {
|
|
|
9
9
|
name: string;
|
|
10
10
|
role: string;
|
|
11
11
|
}
|
|
12
|
-
export const CreateUserInput = /*@__PURE__*/
|
|
12
|
+
export const CreateUserInput = /*@__PURE__*/ Schema.Struct({
|
|
13
13
|
email: Schema.String,
|
|
14
14
|
name: Schema.String,
|
|
15
15
|
role: Schema.String,
|
|
@@ -24,7 +24,7 @@ export interface CreateUserOutput {
|
|
|
24
24
|
name: string;
|
|
25
25
|
role?: { id: string; name: string };
|
|
26
26
|
}
|
|
27
|
-
export const CreateUserOutput = /*@__PURE__*/
|
|
27
|
+
export const CreateUserOutput = /*@__PURE__*/ Schema.Struct({
|
|
28
28
|
email: Schema.String,
|
|
29
29
|
id: Schema.String,
|
|
30
30
|
name: Schema.String,
|
|
@@ -40,7 +40,7 @@ export const CreateUserOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
40
40
|
/**
|
|
41
41
|
* Create user
|
|
42
42
|
*/
|
|
43
|
-
export const createUser = /*@__PURE__*/
|
|
43
|
+
export const createUser = /*@__PURE__*/ API.make(() => ({
|
|
44
44
|
inputSchema: CreateUserInput,
|
|
45
45
|
outputSchema: CreateUserOutput,
|
|
46
46
|
errors: [BadRequest, UnprocessableEntity] as const,
|
|
@@ -12,7 +12,7 @@ export interface CreateViewInput {
|
|
|
12
12
|
sharedByOrg?: string;
|
|
13
13
|
sharedByOrgName?: string;
|
|
14
14
|
}
|
|
15
|
-
export const CreateViewInput = /*@__PURE__*/
|
|
15
|
+
export const CreateViewInput = /*@__PURE__*/ Schema.Struct({
|
|
16
16
|
aplQuery: Schema.String,
|
|
17
17
|
datasets: Schema.optional(Schema.Array(Schema.String)),
|
|
18
18
|
description: Schema.optional(Schema.String),
|
|
@@ -32,7 +32,7 @@ export interface CreateViewOutput {
|
|
|
32
32
|
sharedByOrg?: string;
|
|
33
33
|
sharedByOrgName?: string;
|
|
34
34
|
}
|
|
35
|
-
export const CreateViewOutput = /*@__PURE__*/
|
|
35
|
+
export const CreateViewOutput = /*@__PURE__*/ Schema.Struct({
|
|
36
36
|
aplQuery: Schema.String,
|
|
37
37
|
datasets: Schema.optional(Schema.Array(Schema.String)),
|
|
38
38
|
description: Schema.optional(Schema.String),
|
|
@@ -42,7 +42,7 @@ export const CreateViewOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
42
42
|
}) as unknown as Schema.Codec<CreateViewOutput>;
|
|
43
43
|
|
|
44
44
|
// The operation
|
|
45
|
-
export const createView = /*@__PURE__*/
|
|
45
|
+
export const createView = /*@__PURE__*/ API.make(() => ({
|
|
46
46
|
inputSchema: CreateViewInput,
|
|
47
47
|
outputSchema: CreateViewOutput,
|
|
48
48
|
errors: [UnprocessableEntity] as const,
|
|
@@ -13,7 +13,7 @@ export interface CreateVirtualFieldInput {
|
|
|
13
13
|
unit?: string;
|
|
14
14
|
}
|
|
15
15
|
export const CreateVirtualFieldInput =
|
|
16
|
-
/*@__PURE__*/
|
|
16
|
+
/*@__PURE__*/ Schema.Struct({
|
|
17
17
|
dataset: Schema.String,
|
|
18
18
|
description: Schema.optional(Schema.String),
|
|
19
19
|
expression: Schema.String,
|
|
@@ -35,7 +35,7 @@ export interface CreateVirtualFieldOutput {
|
|
|
35
35
|
id: string;
|
|
36
36
|
}
|
|
37
37
|
export const CreateVirtualFieldOutput =
|
|
38
|
-
/*@__PURE__*/
|
|
38
|
+
/*@__PURE__*/ Schema.Struct({
|
|
39
39
|
dataset: Schema.String,
|
|
40
40
|
description: Schema.optional(Schema.String),
|
|
41
41
|
expression: Schema.String,
|
|
@@ -46,7 +46,7 @@ export const CreateVirtualFieldOutput =
|
|
|
46
46
|
}) as unknown as Schema.Codec<CreateVirtualFieldOutput>;
|
|
47
47
|
|
|
48
48
|
// The operation
|
|
49
|
-
export const createVirtualField = /*@__PURE__*/
|
|
49
|
+
export const createVirtualField = /*@__PURE__*/ API.make(() => ({
|
|
50
50
|
inputSchema: CreateVirtualFieldInput,
|
|
51
51
|
outputSchema: CreateVirtualFieldOutput,
|
|
52
52
|
errors: [UnprocessableEntity] as const,
|
|
@@ -7,7 +7,7 @@ import { NotFound } from "../../errors.ts";
|
|
|
7
7
|
export interface DeleteAPITokenInput {
|
|
8
8
|
id: string;
|
|
9
9
|
}
|
|
10
|
-
export const DeleteAPITokenInput = /*@__PURE__*/
|
|
10
|
+
export const DeleteAPITokenInput = /*@__PURE__*/ Schema.Struct({
|
|
11
11
|
id: Schema.String.pipe(T.PathParam()),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({ method: "DELETE", path: "/v2/tokens/{id}" }),
|
|
@@ -16,13 +16,13 @@ export const DeleteAPITokenInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
16
16
|
// Output Schema
|
|
17
17
|
export type DeleteAPITokenOutput = void;
|
|
18
18
|
export const DeleteAPITokenOutput =
|
|
19
|
-
/*@__PURE__*/
|
|
19
|
+
/*@__PURE__*/ Schema.Void as unknown as Schema.Codec<DeleteAPITokenOutput>;
|
|
20
20
|
|
|
21
21
|
// The operation
|
|
22
22
|
/**
|
|
23
23
|
* Delete API token
|
|
24
24
|
*/
|
|
25
|
-
export const deleteAPIToken = /*@__PURE__*/
|
|
25
|
+
export const deleteAPIToken = /*@__PURE__*/ API.make(() => ({
|
|
26
26
|
inputSchema: DeleteAPITokenInput,
|
|
27
27
|
outputSchema: DeleteAPITokenOutput,
|
|
28
28
|
errors: [NotFound] as const,
|
|
@@ -7,7 +7,7 @@ import { BadRequest, NotFound } from "../../errors.ts";
|
|
|
7
7
|
export interface DeleteAnnotationInput {
|
|
8
8
|
id: string;
|
|
9
9
|
}
|
|
10
|
-
export const DeleteAnnotationInput = /*@__PURE__*/
|
|
10
|
+
export const DeleteAnnotationInput = /*@__PURE__*/ Schema.Struct({
|
|
11
11
|
id: Schema.String.pipe(T.PathParam()),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({ method: "DELETE", path: "/v2/annotations/{id}" }),
|
|
@@ -16,7 +16,7 @@ export const DeleteAnnotationInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
16
16
|
// Output Schema
|
|
17
17
|
export type DeleteAnnotationOutput = void;
|
|
18
18
|
export const DeleteAnnotationOutput =
|
|
19
|
-
/*@__PURE__*/
|
|
19
|
+
/*@__PURE__*/ Schema.Void as unknown as Schema.Codec<DeleteAnnotationOutput>;
|
|
20
20
|
|
|
21
21
|
// The operation
|
|
22
22
|
/**
|
|
@@ -24,7 +24,7 @@ export const DeleteAnnotationOutput =
|
|
|
24
24
|
*
|
|
25
25
|
* @param id - Unique ID of the annotation
|
|
26
26
|
*/
|
|
27
|
-
export const deleteAnnotation = /*@__PURE__*/
|
|
27
|
+
export const deleteAnnotation = /*@__PURE__*/ API.make(() => ({
|
|
28
28
|
inputSchema: DeleteAnnotationInput,
|
|
29
29
|
outputSchema: DeleteAnnotationOutput,
|
|
30
30
|
errors: [BadRequest, NotFound] as const,
|
|
@@ -7,7 +7,7 @@ import { NotFound } from "../../errors.ts";
|
|
|
7
7
|
export interface DeleteDashboardInput {
|
|
8
8
|
uid: string;
|
|
9
9
|
}
|
|
10
|
-
export const DeleteDashboardInput = /*@__PURE__*/
|
|
10
|
+
export const DeleteDashboardInput = /*@__PURE__*/ Schema.Struct({
|
|
11
11
|
uid: Schema.String.pipe(T.PathParam()),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({ method: "DELETE", path: "/v2/dashboards/uid/{uid}" }),
|
|
@@ -16,7 +16,7 @@ export const DeleteDashboardInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
16
16
|
// Output Schema
|
|
17
17
|
export type DeleteDashboardOutput = void;
|
|
18
18
|
export const DeleteDashboardOutput =
|
|
19
|
-
/*@__PURE__*/
|
|
19
|
+
/*@__PURE__*/ Schema.Void as unknown as Schema.Codec<DeleteDashboardOutput>;
|
|
20
20
|
|
|
21
21
|
// The operation
|
|
22
22
|
/**
|
|
@@ -24,7 +24,7 @@ export const DeleteDashboardOutput =
|
|
|
24
24
|
*
|
|
25
25
|
* Delete a dashboard by UID.
|
|
26
26
|
*/
|
|
27
|
-
export const deleteDashboard = /*@__PURE__*/
|
|
27
|
+
export const deleteDashboard = /*@__PURE__*/ API.make(() => ({
|
|
28
28
|
inputSchema: DeleteDashboardInput,
|
|
29
29
|
outputSchema: DeleteDashboardOutput,
|
|
30
30
|
errors: [NotFound] as const,
|
|
@@ -7,7 +7,7 @@ import { Forbidden, NotFound } from "../../errors.ts";
|
|
|
7
7
|
export interface DeleteDatasetInput {
|
|
8
8
|
dataset_id: string;
|
|
9
9
|
}
|
|
10
|
-
export const DeleteDatasetInput = /*@__PURE__*/
|
|
10
|
+
export const DeleteDatasetInput = /*@__PURE__*/ Schema.Struct({
|
|
11
11
|
dataset_id: Schema.String.pipe(T.PathParam()),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({ method: "DELETE", path: "/v2/datasets/{dataset_id}" }),
|
|
@@ -16,13 +16,13 @@ export const DeleteDatasetInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
16
16
|
// Output Schema
|
|
17
17
|
export type DeleteDatasetOutput = void;
|
|
18
18
|
export const DeleteDatasetOutput =
|
|
19
|
-
/*@__PURE__*/
|
|
19
|
+
/*@__PURE__*/ Schema.Void as unknown as Schema.Codec<DeleteDatasetOutput>;
|
|
20
20
|
|
|
21
21
|
// The operation
|
|
22
22
|
/**
|
|
23
23
|
* Delete dataset
|
|
24
24
|
*/
|
|
25
|
-
export const deleteDataset = /*@__PURE__*/
|
|
25
|
+
export const deleteDataset = /*@__PURE__*/ API.make(() => ({
|
|
26
26
|
inputSchema: DeleteDatasetInput,
|
|
27
27
|
outputSchema: DeleteDatasetOutput,
|
|
28
28
|
errors: [Forbidden, NotFound] as const,
|
|
@@ -7,7 +7,7 @@ import { NotFound } from "../../errors.ts";
|
|
|
7
7
|
export interface DeleteGroupInput {
|
|
8
8
|
id: string;
|
|
9
9
|
}
|
|
10
|
-
export const DeleteGroupInput = /*@__PURE__*/
|
|
10
|
+
export const DeleteGroupInput = /*@__PURE__*/ Schema.Struct({
|
|
11
11
|
id: Schema.String.pipe(T.PathParam()),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({ method: "DELETE", path: "/v2/rbac/groups/{id}" }),
|
|
@@ -16,7 +16,7 @@ export const DeleteGroupInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
16
16
|
// Output Schema
|
|
17
17
|
export type DeleteGroupOutput = void;
|
|
18
18
|
export const DeleteGroupOutput =
|
|
19
|
-
/*@__PURE__*/
|
|
19
|
+
/*@__PURE__*/ Schema.Void as unknown as Schema.Codec<DeleteGroupOutput>;
|
|
20
20
|
|
|
21
21
|
// The operation
|
|
22
22
|
/**
|
|
@@ -26,7 +26,7 @@ export const DeleteGroupOutput =
|
|
|
26
26
|
*
|
|
27
27
|
* @param id - Unique identifier of the group to delete
|
|
28
28
|
*/
|
|
29
|
-
export const deleteGroup = /*@__PURE__*/
|
|
29
|
+
export const deleteGroup = /*@__PURE__*/ API.make(() => ({
|
|
30
30
|
inputSchema: DeleteGroupInput,
|
|
31
31
|
outputSchema: DeleteGroupOutput,
|
|
32
32
|
errors: [NotFound] as const,
|
|
@@ -8,7 +8,7 @@ export interface DeleteMapFieldInput {
|
|
|
8
8
|
dataset_id: string;
|
|
9
9
|
map_field_name: string;
|
|
10
10
|
}
|
|
11
|
-
export const DeleteMapFieldInput = /*@__PURE__*/
|
|
11
|
+
export const DeleteMapFieldInput = /*@__PURE__*/ Schema.Struct({
|
|
12
12
|
dataset_id: Schema.String.pipe(T.PathParam()),
|
|
13
13
|
map_field_name: Schema.String.pipe(T.PathParam()),
|
|
14
14
|
}).pipe(
|
|
@@ -21,10 +21,10 @@ export const DeleteMapFieldInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
21
21
|
// Output Schema
|
|
22
22
|
export type DeleteMapFieldOutput = void;
|
|
23
23
|
export const DeleteMapFieldOutput =
|
|
24
|
-
/*@__PURE__*/
|
|
24
|
+
/*@__PURE__*/ Schema.Void as unknown as Schema.Codec<DeleteMapFieldOutput>;
|
|
25
25
|
|
|
26
26
|
// The operation
|
|
27
|
-
export const deleteMapField = /*@__PURE__*/
|
|
27
|
+
export const deleteMapField = /*@__PURE__*/ API.make(() => ({
|
|
28
28
|
inputSchema: DeleteMapFieldInput,
|
|
29
29
|
outputSchema: DeleteMapFieldOutput,
|
|
30
30
|
errors: [NotFound] as const,
|
|
@@ -7,7 +7,7 @@ import { NotFound } from "../../errors.ts";
|
|
|
7
7
|
export interface DeleteMonitorInput {
|
|
8
8
|
id: string;
|
|
9
9
|
}
|
|
10
|
-
export const DeleteMonitorInput = /*@__PURE__*/
|
|
10
|
+
export const DeleteMonitorInput = /*@__PURE__*/ Schema.Struct({
|
|
11
11
|
id: Schema.String.pipe(T.PathParam()),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({ method: "DELETE", path: "/v2/monitors/{id}" }),
|
|
@@ -16,13 +16,13 @@ export const DeleteMonitorInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
16
16
|
// Output Schema
|
|
17
17
|
export type DeleteMonitorOutput = void;
|
|
18
18
|
export const DeleteMonitorOutput =
|
|
19
|
-
/*@__PURE__*/
|
|
19
|
+
/*@__PURE__*/ Schema.Void as unknown as Schema.Codec<DeleteMonitorOutput>;
|
|
20
20
|
|
|
21
21
|
// The operation
|
|
22
22
|
/**
|
|
23
23
|
* Delete monitor
|
|
24
24
|
*/
|
|
25
|
-
export const deleteMonitor = /*@__PURE__*/
|
|
25
|
+
export const deleteMonitor = /*@__PURE__*/ API.make(() => ({
|
|
26
26
|
inputSchema: DeleteMonitorInput,
|
|
27
27
|
outputSchema: DeleteMonitorOutput,
|
|
28
28
|
errors: [NotFound] as const,
|
|
@@ -7,7 +7,7 @@ import { NotFound } from "../../errors.ts";
|
|
|
7
7
|
export interface DeleteNotifierInput {
|
|
8
8
|
id: string;
|
|
9
9
|
}
|
|
10
|
-
export const DeleteNotifierInput = /*@__PURE__*/
|
|
10
|
+
export const DeleteNotifierInput = /*@__PURE__*/ Schema.Struct({
|
|
11
11
|
id: Schema.String.pipe(T.PathParam()),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({ method: "DELETE", path: "/v2/notifiers/{id}" }),
|
|
@@ -16,13 +16,13 @@ export const DeleteNotifierInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
16
16
|
// Output Schema
|
|
17
17
|
export type DeleteNotifierOutput = void;
|
|
18
18
|
export const DeleteNotifierOutput =
|
|
19
|
-
/*@__PURE__*/
|
|
19
|
+
/*@__PURE__*/ Schema.Void as unknown as Schema.Codec<DeleteNotifierOutput>;
|
|
20
20
|
|
|
21
21
|
// The operation
|
|
22
22
|
/**
|
|
23
23
|
* Delete notifier
|
|
24
24
|
*/
|
|
25
|
-
export const deleteNotifier = /*@__PURE__*/
|
|
25
|
+
export const deleteNotifier = /*@__PURE__*/ API.make(() => ({
|
|
26
26
|
inputSchema: DeleteNotifierInput,
|
|
27
27
|
outputSchema: DeleteNotifierOutput,
|
|
28
28
|
errors: [NotFound] as const,
|
|
@@ -7,7 +7,7 @@ import { NotFound } from "../../errors.ts";
|
|
|
7
7
|
export interface DeleteRoleInput {
|
|
8
8
|
id: string;
|
|
9
9
|
}
|
|
10
|
-
export const DeleteRoleInput = /*@__PURE__*/
|
|
10
|
+
export const DeleteRoleInput = /*@__PURE__*/ Schema.Struct({
|
|
11
11
|
id: Schema.String.pipe(T.PathParam()),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({ method: "DELETE", path: "/v2/rbac/roles/{id}" }),
|
|
@@ -16,7 +16,7 @@ export const DeleteRoleInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
16
16
|
// Output Schema
|
|
17
17
|
export type DeleteRoleOutput = void;
|
|
18
18
|
export const DeleteRoleOutput =
|
|
19
|
-
/*@__PURE__*/
|
|
19
|
+
/*@__PURE__*/ Schema.Void as unknown as Schema.Codec<DeleteRoleOutput>;
|
|
20
20
|
|
|
21
21
|
// The operation
|
|
22
22
|
/**
|
|
@@ -26,7 +26,7 @@ export const DeleteRoleOutput =
|
|
|
26
26
|
*
|
|
27
27
|
* @param id - Unique identifier of the role to delete
|
|
28
28
|
*/
|
|
29
|
-
export const deleteRole = /*@__PURE__*/
|
|
29
|
+
export const deleteRole = /*@__PURE__*/ API.make(() => ({
|
|
30
30
|
inputSchema: DeleteRoleInput,
|
|
31
31
|
outputSchema: DeleteRoleOutput,
|
|
32
32
|
errors: [NotFound] as const,
|
|
@@ -7,7 +7,7 @@ import { NotFound } from "../../errors.ts";
|
|
|
7
7
|
export interface DeleteStarredInput {
|
|
8
8
|
id: string;
|
|
9
9
|
}
|
|
10
|
-
export const DeleteStarredInput = /*@__PURE__*/
|
|
10
|
+
export const DeleteStarredInput = /*@__PURE__*/ Schema.Struct({
|
|
11
11
|
id: Schema.String.pipe(T.PathParam()),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({ method: "DELETE", path: "/v2/apl-starred-queries/{id}" }),
|
|
@@ -16,10 +16,10 @@ export const DeleteStarredInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
16
16
|
// Output Schema
|
|
17
17
|
export type DeleteStarredOutput = void;
|
|
18
18
|
export const DeleteStarredOutput =
|
|
19
|
-
/*@__PURE__*/
|
|
19
|
+
/*@__PURE__*/ Schema.Void as unknown as Schema.Codec<DeleteStarredOutput>;
|
|
20
20
|
|
|
21
21
|
// The operation
|
|
22
|
-
export const deleteStarred = /*@__PURE__*/
|
|
22
|
+
export const deleteStarred = /*@__PURE__*/ API.make(() => ({
|
|
23
23
|
inputSchema: DeleteStarredInput,
|
|
24
24
|
outputSchema: DeleteStarredOutput,
|
|
25
25
|
errors: [NotFound] as const,
|
|
@@ -7,7 +7,7 @@ import { NotFound } from "../../errors.ts";
|
|
|
7
7
|
export interface DeleteViewInput {
|
|
8
8
|
id: string;
|
|
9
9
|
}
|
|
10
|
-
export const DeleteViewInput = /*@__PURE__*/
|
|
10
|
+
export const DeleteViewInput = /*@__PURE__*/ Schema.Struct({
|
|
11
11
|
id: Schema.String.pipe(T.PathParam()),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({ method: "DELETE", path: "/v2/views/{id}" }),
|
|
@@ -16,10 +16,10 @@ export const DeleteViewInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
16
16
|
// Output Schema
|
|
17
17
|
export type DeleteViewOutput = void;
|
|
18
18
|
export const DeleteViewOutput =
|
|
19
|
-
/*@__PURE__*/
|
|
19
|
+
/*@__PURE__*/ Schema.Void as unknown as Schema.Codec<DeleteViewOutput>;
|
|
20
20
|
|
|
21
21
|
// The operation
|
|
22
|
-
export const deleteView = /*@__PURE__*/
|
|
22
|
+
export const deleteView = /*@__PURE__*/ API.make(() => ({
|
|
23
23
|
inputSchema: DeleteViewInput,
|
|
24
24
|
outputSchema: DeleteViewOutput,
|
|
25
25
|
errors: [NotFound] as const,
|
|
@@ -8,7 +8,7 @@ export interface DeleteVirtualFieldInput {
|
|
|
8
8
|
id: string;
|
|
9
9
|
}
|
|
10
10
|
export const DeleteVirtualFieldInput =
|
|
11
|
-
/*@__PURE__*/
|
|
11
|
+
/*@__PURE__*/ Schema.Struct({
|
|
12
12
|
id: Schema.String.pipe(T.PathParam()),
|
|
13
13
|
}).pipe(
|
|
14
14
|
T.Http({ method: "DELETE", path: "/v2/vfields/{id}" }),
|
|
@@ -17,10 +17,10 @@ export const DeleteVirtualFieldInput =
|
|
|
17
17
|
// Output Schema
|
|
18
18
|
export type DeleteVirtualFieldOutput = void;
|
|
19
19
|
export const DeleteVirtualFieldOutput =
|
|
20
|
-
/*@__PURE__*/
|
|
20
|
+
/*@__PURE__*/ Schema.Void as unknown as Schema.Codec<DeleteVirtualFieldOutput>;
|
|
21
21
|
|
|
22
22
|
// The operation
|
|
23
|
-
export const deleteVirtualField = /*@__PURE__*/
|
|
23
|
+
export const deleteVirtualField = /*@__PURE__*/ API.make(() => ({
|
|
24
24
|
inputSchema: DeleteVirtualFieldInput,
|
|
25
25
|
outputSchema: DeleteVirtualFieldOutput,
|
|
26
26
|
errors: [NotFound] as const,
|
|
@@ -7,7 +7,7 @@ import { NotFound } from "../../errors.ts";
|
|
|
7
7
|
export interface GetAPITokenInput {
|
|
8
8
|
id: string;
|
|
9
9
|
}
|
|
10
|
-
export const GetAPITokenInput = /*@__PURE__*/
|
|
10
|
+
export const GetAPITokenInput = /*@__PURE__*/ Schema.Struct({
|
|
11
11
|
id: Schema.String.pipe(T.PathParam()),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({ method: "GET", path: "/v2/tokens/{id}" }),
|
|
@@ -58,7 +58,7 @@ export interface GetAPITokenOutput {
|
|
|
58
58
|
}
|
|
59
59
|
>;
|
|
60
60
|
}
|
|
61
|
-
export const GetAPITokenOutput = /*@__PURE__*/
|
|
61
|
+
export const GetAPITokenOutput = /*@__PURE__*/ Schema.Struct({
|
|
62
62
|
datasetCapabilities: Schema.Record(
|
|
63
63
|
Schema.String,
|
|
64
64
|
Schema.Struct({
|
|
@@ -143,7 +143,7 @@ export const GetAPITokenOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
143
143
|
/**
|
|
144
144
|
* Get API token by ID
|
|
145
145
|
*/
|
|
146
|
-
export const getAPIToken = /*@__PURE__*/
|
|
146
|
+
export const getAPIToken = /*@__PURE__*/ API.make(() => ({
|
|
147
147
|
inputSchema: GetAPITokenInput,
|
|
148
148
|
outputSchema: GetAPITokenOutput,
|
|
149
149
|
errors: [NotFound] as const,
|
|
@@ -4,9 +4,7 @@ import * as T from "../../traits.ts";
|
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
6
|
export interface GetAPITokensInput {}
|
|
7
|
-
export const GetAPITokensInput = /*@__PURE__*/
|
|
8
|
-
{},
|
|
9
|
-
).pipe(
|
|
7
|
+
export const GetAPITokensInput = /*@__PURE__*/ Schema.Struct({}).pipe(
|
|
10
8
|
T.Http({ method: "GET", path: "/v2/tokens" }),
|
|
11
9
|
) as unknown as Schema.Codec<GetAPITokensInput>;
|
|
12
10
|
|
|
@@ -55,7 +53,7 @@ export type GetAPITokensOutput = ReadonlyArray<{
|
|
|
55
53
|
}
|
|
56
54
|
>;
|
|
57
55
|
}>;
|
|
58
|
-
export const GetAPITokensOutput = /*@__PURE__*/
|
|
56
|
+
export const GetAPITokensOutput = /*@__PURE__*/ Schema.Array(
|
|
59
57
|
Schema.Struct({
|
|
60
58
|
datasetCapabilities: Schema.Record(
|
|
61
59
|
Schema.String,
|
|
@@ -144,7 +142,7 @@ export const GetAPITokensOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
|
144
142
|
/**
|
|
145
143
|
* Get API tokens
|
|
146
144
|
*/
|
|
147
|
-
export const getAPITokens = /*@__PURE__*/
|
|
145
|
+
export const getAPITokens = /*@__PURE__*/ API.make(() => ({
|
|
148
146
|
inputSchema: GetAPITokensInput,
|
|
149
147
|
outputSchema: GetAPITokensOutput,
|
|
150
148
|
}));
|
|
@@ -7,7 +7,7 @@ import { BadRequest, NotFound } from "../../errors.ts";
|
|
|
7
7
|
export interface GetAnnotationInput {
|
|
8
8
|
id: string;
|
|
9
9
|
}
|
|
10
|
-
export const GetAnnotationInput = /*@__PURE__*/
|
|
10
|
+
export const GetAnnotationInput = /*@__PURE__*/ Schema.Struct({
|
|
11
11
|
id: Schema.String.pipe(T.PathParam()),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({ method: "GET", path: "/v2/annotations/{id}" }),
|
|
@@ -24,7 +24,7 @@ export interface GetAnnotationOutput {
|
|
|
24
24
|
type: string;
|
|
25
25
|
url?: string;
|
|
26
26
|
}
|
|
27
|
-
export const GetAnnotationOutput = /*@__PURE__*/
|
|
27
|
+
export const GetAnnotationOutput = /*@__PURE__*/ Schema.Struct({
|
|
28
28
|
datasets: Schema.Array(Schema.String),
|
|
29
29
|
description: Schema.optional(Schema.String),
|
|
30
30
|
endTime: Schema.optional(Schema.NullOr(Schema.String)),
|
|
@@ -41,7 +41,7 @@ export const GetAnnotationOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
41
41
|
*
|
|
42
42
|
* @param id - Unique ID of the annotation
|
|
43
43
|
*/
|
|
44
|
-
export const getAnnotation = /*@__PURE__*/
|
|
44
|
+
export const getAnnotation = /*@__PURE__*/ API.make(() => ({
|
|
45
45
|
inputSchema: GetAnnotationInput,
|
|
46
46
|
outputSchema: GetAnnotationOutput,
|
|
47
47
|
errors: [BadRequest, NotFound] as const,
|
|
@@ -8,7 +8,7 @@ export interface GetAnnotationsInput {
|
|
|
8
8
|
start?: string;
|
|
9
9
|
end?: string;
|
|
10
10
|
}
|
|
11
|
-
export const GetAnnotationsInput = /*@__PURE__*/
|
|
11
|
+
export const GetAnnotationsInput = /*@__PURE__*/ Schema.Struct({
|
|
12
12
|
datasets: Schema.optional(Schema.String),
|
|
13
13
|
start: Schema.optional(Schema.String),
|
|
14
14
|
end: Schema.optional(Schema.String),
|
|
@@ -27,7 +27,7 @@ export type GetAnnotationsOutput = ReadonlyArray<{
|
|
|
27
27
|
type: string;
|
|
28
28
|
url?: string;
|
|
29
29
|
}>;
|
|
30
|
-
export const GetAnnotationsOutput = /*@__PURE__*/
|
|
30
|
+
export const GetAnnotationsOutput = /*@__PURE__*/ Schema.Array(
|
|
31
31
|
Schema.Struct({
|
|
32
32
|
datasets: Schema.Array(Schema.String),
|
|
33
33
|
description: Schema.optional(Schema.String),
|
|
@@ -48,7 +48,7 @@ export const GetAnnotationsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
|
48
48
|
* @param start - Optional: Filter for events after this date. Use RFC3339 time format.
|
|
49
49
|
* @param end - Optional: Filter for events before this date. Use RFC3339 time format.
|
|
50
50
|
*/
|
|
51
|
-
export const getAnnotations = /*@__PURE__*/
|
|
51
|
+
export const getAnnotations = /*@__PURE__*/ API.make(() => ({
|
|
52
52
|
inputSchema: GetAnnotationsInput,
|
|
53
53
|
outputSchema: GetAnnotationsOutput,
|
|
54
54
|
}));
|
|
@@ -4,9 +4,7 @@ import * as T from "../../traits.ts";
|
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
6
|
export interface GetCurrentUserInput {}
|
|
7
|
-
export const GetCurrentUserInput = /*@__PURE__*/
|
|
8
|
-
{},
|
|
9
|
-
).pipe(
|
|
7
|
+
export const GetCurrentUserInput = /*@__PURE__*/ Schema.Struct({}).pipe(
|
|
10
8
|
T.Http({ method: "GET", path: "/v2/user" }),
|
|
11
9
|
) as unknown as Schema.Codec<GetCurrentUserInput>;
|
|
12
10
|
|
|
@@ -17,7 +15,7 @@ export interface GetCurrentUserOutput {
|
|
|
17
15
|
name: string;
|
|
18
16
|
role?: { id: string; name: string };
|
|
19
17
|
}
|
|
20
|
-
export const GetCurrentUserOutput = /*@__PURE__*/
|
|
18
|
+
export const GetCurrentUserOutput = /*@__PURE__*/ Schema.Struct({
|
|
21
19
|
email: Schema.String,
|
|
22
20
|
id: Schema.String,
|
|
23
21
|
name: Schema.String,
|
|
@@ -33,7 +31,7 @@ export const GetCurrentUserOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
33
31
|
/**
|
|
34
32
|
* Get current user
|
|
35
33
|
*/
|
|
36
|
-
export const getCurrentUser = /*@__PURE__*/
|
|
34
|
+
export const getCurrentUser = /*@__PURE__*/ API.make(() => ({
|
|
37
35
|
inputSchema: GetCurrentUserInput,
|
|
38
36
|
outputSchema: GetCurrentUserOutput,
|
|
39
37
|
}));
|
|
@@ -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,
|