update sdk

This commit is contained in:
Matt Hill
2024-03-18 12:37:50 -06:00
parent a4cb2708cc
commit a02b531e47
12 changed files with 113 additions and 71 deletions

View File

@@ -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;
};

View File

@@ -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(