summaryrefslogtreecommitdiff
path: root/libpanto/src/public.zig
diff options
context:
space:
mode:
Diffstat (limited to 'libpanto/src/public.zig')
-rw-r--r--libpanto/src/public.zig12
1 files changed, 12 insertions, 0 deletions
diff --git a/libpanto/src/public.zig b/libpanto/src/public.zig
index 2ee44dd..aa2f7e8 100644
--- a/libpanto/src/public.zig
+++ b/libpanto/src/public.zig
@@ -84,8 +84,19 @@ pub const ExchangeConfig = auth_mod.ExchangeConfig;
pub const DeviceDialect = auth_mod.DeviceDialect;
pub const TokenRequestFormat = auth_mod.TokenRequestFormat;
pub const TokenSet = auth_mod.TokenSet;
+pub const ParsedTokenSet = auth_mod.ParsedTokenSet;
pub const ResolvedCredential = auth_mod.ResolvedCredential;
+/// Token persistence under an embedder-chosen auth directory
+/// (`$PANTO_HOME/auth`). Files are written owner-only.
+pub const loadTokenSet = auth_mod.loadTokenSet;
+pub const saveTokenSet = auth_mod.saveTokenSet;
+pub const deleteTokenSet = auth_mod.deleteTokenSet;
+
+/// Non-streaming HTTP helper over the process-global client, plus JSON
+/// path readers — the building blocks of the OAuth flows.
+pub const http = @import("http_helper.zig");
+
// ===========================================================================
// Conversation construction (data, aliased)
// ===========================================================================
@@ -222,6 +233,7 @@ test {
// tests must still run).
std.testing.refAllDecls(config_mod);
std.testing.refAllDecls(auth_mod);
+ std.testing.refAllDecls(@import("http_helper.zig"));
std.testing.refAllDecls(conversation_mod);
std.testing.refAllDecls(agent_mod);
std.testing.refAllDecls(stream_mod);