37 lines
1.4 KiB
TypeScript
37 lines
1.4 KiB
TypeScript
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
import type { Input } from "./Input";
|
|
import type { JsonDatapointOutputUpdate } from "./JsonDatapointOutputUpdate";
|
|
import type { JsonValue } from "./serde_json/JsonValue";
|
|
|
|
/**
|
|
* An update request for a JSON datapoint.
|
|
*/
|
|
export type UpdateJsonDatapointRequest = {
|
|
/**
|
|
* The ID of the datapoint to update. Required.
|
|
*/
|
|
id: string;
|
|
/**
|
|
* Datapoint input. If omitted, it will be left unchanged.
|
|
*/
|
|
input?: Input;
|
|
/**
|
|
* JSON datapoint output. If omitted, it will be left unchanged. If `null`, it will be set to `null`. If specified as a value, it will be set to the provided value.
|
|
*/
|
|
output?: JsonDatapointOutputUpdate | null;
|
|
/**
|
|
* The output schema of the JSON datapoint. If omitted, it will be left unchanged. If specified as `null`, it will be set to `null`. If specified as a value, it will be set to the provided value.
|
|
* If not provided, the function's output schema will be used.
|
|
*/
|
|
output_schema?: JsonValue;
|
|
/**
|
|
* Datapoint tags. If omitted, it will be left unchanged. If empty, it will be cleared. Otherwise,
|
|
* it will be overwrite the existing tags.
|
|
*/
|
|
tags?: { [key in string]: string };
|
|
/**
|
|
* Datapoint name. If omitted, it will be left unchanged. If specified as `null`, it will be set to `null`. If specified as a value, it will be set to the provided value.
|
|
*/
|
|
name?: string | null;
|
|
};
|