mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 04:01:58 +00:00
update sdk
This commit is contained in:
@@ -1,4 +1,21 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { ExposedUI } from "./ExposedUI";
|
||||
|
||||
export interface ExposeUiParams { paths: Array<ExposedUI>, }
|
||||
export type ExposeUiParams =
|
||||
| {
|
||||
type: "object";
|
||||
value: { [k: string]: ExposeUiParams };
|
||||
}
|
||||
| {
|
||||
type: "string";
|
||||
/** The path to the value in the Store. [JsonPath](https://jsonpath.com/) */
|
||||
path: string;
|
||||
/** A human readable description or explanation of the value */
|
||||
description: string | null;
|
||||
/** (string/number only) Whether or not to mask the value, for example, when displaying a password */
|
||||
masked: boolean;
|
||||
/** (string/number only) Whether or not to include a button for copying the value to clipboard */
|
||||
copyable: boolean | null;
|
||||
/** (string/number only) Whether or not to include a button for displaying the value as a QR code */
|
||||
qr: boolean | null;
|
||||
};
|
||||
|
||||
@@ -691,9 +691,19 @@ async fn expose_for_dependents(
|
||||
}
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[serde(tag = "type")]
|
||||
#[ts(export)]
|
||||
struct ExposeUiParams {
|
||||
paths: Vec<ExposedUI>,
|
||||
enum ExposeUiParams {
|
||||
Object {
|
||||
value: Record<String, ExposeUiParams>,
|
||||
},
|
||||
r#String {
|
||||
path: String,
|
||||
description: Option<String>,
|
||||
masked: bool,
|
||||
copyable: Option<bool>,
|
||||
qr: Option<bool>,
|
||||
},
|
||||
}
|
||||
|
||||
async fn expose_ui(
|
||||
|
||||
Reference in New Issue
Block a user