@heroui/agent 0.2.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,164 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const agentThemeSchema: z.ZodEnum<{
4
+ dark: "dark";
5
+ light: "light";
6
+ system: "system";
7
+ }>;
8
+ declare const agentSurfaceVariantSchema: z.ZodEnum<{
9
+ surface: "surface";
10
+ outline: "outline";
11
+ plain: "plain";
12
+ "surface-secondary": "surface-secondary";
13
+ }>;
14
+ declare const pageContextSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
15
+ declare const agentIdentityIdSchema: z.ZodString;
16
+ declare const agentAuthIdentitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
17
+ id: z.ZodString;
18
+ type: z.ZodLiteral<"anonymous">;
19
+ }, z.core.$strip>, z.ZodObject<{
20
+ id: z.ZodString;
21
+ type: z.ZodLiteral<"user">;
22
+ }, z.core.$strip>], "type">;
23
+ declare const agentAuthProfileSchema: z.ZodObject<{
24
+ avatarUrl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodURL>>;
25
+ email: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEmail>>;
26
+ name: z.ZodOptional<z.ZodString>;
27
+ }, z.core.$strip>;
28
+ /** Server-to-server request for a short-lived browser credential. */
29
+ declare const createAgentAuthTokenRequestSchema: z.ZodObject<{
30
+ anonymousId: z.ZodOptional<z.ZodString>;
31
+ identity: z.ZodDiscriminatedUnion<[z.ZodObject<{
32
+ id: z.ZodString;
33
+ type: z.ZodLiteral<"anonymous">;
34
+ }, z.core.$strip>, z.ZodObject<{
35
+ id: z.ZodString;
36
+ type: z.ZodLiteral<"user">;
37
+ }, z.core.$strip>], "type">;
38
+ profile: z.ZodOptional<z.ZodObject<{
39
+ avatarUrl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodURL>>;
40
+ email: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEmail>>;
41
+ name: z.ZodOptional<z.ZodString>;
42
+ }, z.core.$strip>>;
43
+ }, z.core.$strip>;
44
+ declare const agentAuthTokenSchema: z.ZodObject<{
45
+ expiresAt: z.ZodNumber;
46
+ token: z.ZodString;
47
+ }, z.core.$strip>;
48
+ declare const agentTokenClaimsSchema: z.ZodObject<{
49
+ agentId: z.ZodString;
50
+ apiKeyId: z.ZodString;
51
+ aud: z.ZodLiteral<"heroui-agent">;
52
+ exp: z.ZodNumber;
53
+ iat: z.ZodNumber;
54
+ iss: z.ZodLiteral<"https://api.heroui.com">;
55
+ jti: z.ZodUUID;
56
+ protocolVersion: z.ZodLiteral<5>;
57
+ sub: z.ZodString;
58
+ }, z.core.$strip>;
59
+ declare const trustedAgentClientDataSchema: z.ZodObject<{
60
+ agentId: z.ZodString;
61
+ billingLicenseId: z.ZodNullable<z.ZodString>;
62
+ billingOwnerUserId: z.ZodString;
63
+ clientTools: z.ZodDefault<z.ZodArray<z.ZodObject<{
64
+ description: z.ZodString;
65
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
66
+ name: z.ZodString;
67
+ needsApproval: z.ZodOptional<z.ZodBoolean>;
68
+ }, z.core.$strip>>>;
69
+ conversationId: z.ZodUUID;
70
+ endUserKey: z.ZodOptional<z.ZodString>;
71
+ imageSearch: z.ZodOptional<z.ZodBoolean>;
72
+ modelId: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodEnum<{
73
+ "moonshotai/Kimi-K3": "moonshotai/Kimi-K3";
74
+ "openai/gpt-5.6-luna": "openai/gpt-5.6-luna";
75
+ "openai/gpt-5.6-terra": "openai/gpt-5.6-terra";
76
+ "openai/gpt-5.6-sol": "openai/gpt-5.6-sol";
77
+ "google/gemini-3.6-flash": "google/gemini-3.6-flash";
78
+ "anthropic/claude-sonnet-5": "anthropic/claude-sonnet-5";
79
+ "anthropic/claude-opus-4.8": "anthropic/claude-opus-4.8";
80
+ }>>>;
81
+ pageContext: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
82
+ preview: z.ZodOptional<z.ZodBoolean>;
83
+ protocolVersion: z.ZodLiteral<5>;
84
+ requestId: z.ZodUUID;
85
+ sdkVersion: z.ZodString;
86
+ signedAt: z.ZodNumber;
87
+ subject: z.ZodString;
88
+ webSearch: z.ZodOptional<z.ZodBoolean>;
89
+ }, z.core.$strip>;
90
+ declare const signedTrustedAgentClientDataSchema: z.ZodObject<{
91
+ agentId: z.ZodString;
92
+ billingLicenseId: z.ZodNullable<z.ZodString>;
93
+ billingOwnerUserId: z.ZodString;
94
+ clientTools: z.ZodDefault<z.ZodArray<z.ZodObject<{
95
+ description: z.ZodString;
96
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
97
+ name: z.ZodString;
98
+ needsApproval: z.ZodOptional<z.ZodBoolean>;
99
+ }, z.core.$strip>>>;
100
+ conversationId: z.ZodUUID;
101
+ endUserKey: z.ZodOptional<z.ZodString>;
102
+ imageSearch: z.ZodOptional<z.ZodBoolean>;
103
+ modelId: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodEnum<{
104
+ "moonshotai/Kimi-K3": "moonshotai/Kimi-K3";
105
+ "openai/gpt-5.6-luna": "openai/gpt-5.6-luna";
106
+ "openai/gpt-5.6-terra": "openai/gpt-5.6-terra";
107
+ "openai/gpt-5.6-sol": "openai/gpt-5.6-sol";
108
+ "google/gemini-3.6-flash": "google/gemini-3.6-flash";
109
+ "anthropic/claude-sonnet-5": "anthropic/claude-sonnet-5";
110
+ "anthropic/claude-opus-4.8": "anthropic/claude-opus-4.8";
111
+ }>>>;
112
+ pageContext: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
113
+ preview: z.ZodOptional<z.ZodBoolean>;
114
+ protocolVersion: z.ZodLiteral<5>;
115
+ requestId: z.ZodUUID;
116
+ sdkVersion: z.ZodString;
117
+ signedAt: z.ZodNumber;
118
+ subject: z.ZodString;
119
+ webSearch: z.ZodOptional<z.ZodBoolean>;
120
+ sig: z.ZodString;
121
+ }, z.core.$strip>;
122
+ /**
123
+ * How a persisted conversation was started. Rows written before this existed
124
+ * carry no source and are treated as `embed`.
125
+ */
126
+ declare const AGENT_CONVERSATION_SOURCE: {
127
+ readonly embed: "embed";
128
+ readonly preview: "preview";
129
+ };
130
+ type AgentConversationSource = (typeof AGENT_CONVERSATION_SOURCE)[keyof typeof AGENT_CONVERSATION_SOURCE];
131
+ declare const agentProjectConfigSchema: z.ZodObject<{
132
+ agentId: z.ZodString;
133
+ minimumProtocolVersion: z.ZodLiteral<5>;
134
+ name: z.ZodString;
135
+ protocolVersion: z.ZodLiteral<5>;
136
+ realtime: z.ZodOptional<z.ZodObject<{
137
+ url: z.ZodURL;
138
+ }, z.core.$strip>>;
139
+ sdkVersion: z.ZodDefault<z.ZodString>;
140
+ suggestedPrompts: z.ZodArray<z.ZodString>;
141
+ surfaceVariant: z.ZodDefault<z.ZodEnum<{
142
+ surface: "surface";
143
+ outline: "outline";
144
+ plain: "plain";
145
+ "surface-secondary": "surface-secondary";
146
+ }>>;
147
+ theme: z.ZodEnum<{
148
+ dark: "dark";
149
+ light: "light";
150
+ system: "system";
151
+ }>;
152
+ }, z.core.$strip>;
153
+ type AgentAuthIdentity = z.infer<typeof agentAuthIdentitySchema>;
154
+ type AgentAuthProfile = z.infer<typeof agentAuthProfileSchema>;
155
+ type AgentAuthToken = z.infer<typeof agentAuthTokenSchema>;
156
+ type CreateAgentAuthTokenRequest = z.infer<typeof createAgentAuthTokenRequestSchema>;
157
+ type AgentTokenClaims = z.infer<typeof agentTokenClaimsSchema>;
158
+ type AgentTheme = z.infer<typeof agentThemeSchema>;
159
+ type AgentSurfaceVariant = z.infer<typeof agentSurfaceVariantSchema>;
160
+ type AgentProjectConfig = z.infer<typeof agentProjectConfigSchema>;
161
+ type SignedTrustedAgentClientData = z.infer<typeof signedTrustedAgentClientDataSchema>;
162
+ type TrustedAgentClientData = z.infer<typeof trustedAgentClientDataSchema>;
163
+
164
+ export { AGENT_CONVERSATION_SOURCE as A, type CreateAgentAuthTokenRequest as C, type SignedTrustedAgentClientData as S, type TrustedAgentClientData as T, type AgentAuthIdentity as a, type AgentAuthProfile as b, type AgentAuthToken as c, type AgentConversationSource as d, type AgentProjectConfig as e, type AgentSurfaceVariant as f, type AgentTheme as g, type AgentTokenClaims as h, agentAuthIdentitySchema as i, agentAuthProfileSchema as j, agentAuthTokenSchema as k, agentIdentityIdSchema as l, agentProjectConfigSchema as m, agentSurfaceVariantSchema as n, agentThemeSchema as o, agentTokenClaimsSchema as p, createAgentAuthTokenRequestSchema as q, pageContextSchema as r, signedTrustedAgentClientDataSchema as s, trustedAgentClientDataSchema as t };