mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-16 22:57:59 +00:00
Migrated the store secret calls from Tauri JS to the runtime API
This commit is contained in:
8 files changed
+83
-41
No files matched your search
@@ -1,7 +1,6 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace AIStudio.Tools.Rust;
|
||||
|
||||
public readonly record struct GetSecretRequest(
|
||||
string Destination,
|
||||
[property:JsonPropertyName("user_name")] string UserName);
|
||||
string UserName
|
||||
);
|
||||
@@ -0,0 +1,3 @@
|
||||
namespace AIStudio.Tools.Rust;
|
||||
|
||||
public readonly record struct StoreSecretRequest(string Destination, string UserName, EncryptedText Secret);
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace AIStudio.Tools.Rust;
|
||||
|
||||
/// <summary>
|
||||
/// Data structure for storing a secret response.
|
||||
/// </summary>
|
||||
/// <param name="Success">True, when the secret was successfully stored.</param>
|
||||
/// <param name="Issue">The issue, when the secret could not be stored.</param>
|
||||
public readonly record struct StoreSecretResponse(bool Success, string Issue);
|
||||
Reference in new issue
Block a user