@astralbeam/sdk 0.16.0 → 0.18.0
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.
- package/README.md +11 -4
- package/dist/{api-DzeMhfHU.js → api-B3UxSTtl.js} +200 -10
- package/dist/api.d.ts +2 -2
- package/dist/api.js +1 -2
- package/dist/auth-lifecycle-B0BXyDr7.js +25 -0
- package/dist/badge-B9WuChHI.js +1 -0
- package/dist/client.d.ts +57 -8
- package/dist/client.js +1 -1
- package/dist/constants-C-Yp0Vhg.js +1 -0
- package/dist/{core-D84VNYWJ.js → core-CLWlvgYl.js} +1534 -129
- package/dist/core.d.ts +2 -2
- package/dist/core.js +1 -2
- package/dist/css-BGIxQoYs.js +1 -0
- package/dist/css-DgaLhXQH.js +1 -0
- package/dist/{debug-qLts7gEt.js → debug-DLDY8CZb.js} +1 -1
- package/dist/diff-woXpYk--.js +1 -0
- package/dist/github-dark-C-LZuMrd.js +1 -0
- package/dist/github-light-EUqPIrTm.js +1 -0
- package/dist/highlighter-Bd_oZUcA.js +152 -0
- package/dist/html-B3xvRgDO.js +1 -0
- package/dist/{index-CM3pzsKR.d.ts → index-DDfmeUeU.d.ts} +209 -86
- package/dist/{index-CH3RVjha.d.ts → index-DFxtXIXy.d.ts} +232 -20
- package/dist/item-a9y_9nk7.js +1 -0
- package/dist/javascript-BzbQS41l.js +1 -0
- package/dist/javascript-CpIGwZ_Y.js +1 -0
- package/dist/json-qhed-kSA.js +1 -0
- package/dist/jsx-Bz0zcwM4.js +1 -0
- package/dist/listings-DzxJtGCD.js +1 -0
- package/dist/markdown-BYOwaDjH.js +1 -0
- package/dist/mcp-servers-ESbOt00F.js +1 -0
- package/dist/python-gzcpVVnB.js +1 -0
- package/dist/react.d.ts +23 -16
- package/dist/react.js +46 -8
- package/dist/server.d.ts +19 -25
- package/dist/server.js +196 -349
- package/dist/shellscript-CLZ0U2zV.js +1 -0
- package/dist/sql-CEbI0hMM.js +1 -0
- package/dist/styles.generated-D4k7izMB.js +80 -0
- package/dist/tsx-udAQXfEw.js +1 -0
- package/dist/typescript-bsJCZSQ-.js +1 -0
- package/dist/validate-BOw-BAyv.js +140 -0
- package/dist/widget-DGmCPqzk.js +24 -0
- package/dist/yaml-rwi0_p6S.js +1 -0
- package/package.json +20 -17
- package/dist/constants-enyqxaJi.js +0 -1
- package/dist/listings-dAoOEUGK.js +0 -1
- package/dist/rolldown-runtime-Bh1tDfsg.js +0 -1
- package/dist/styles.generated-Ucyw8D9G.js +0 -98
- package/dist/type_checks-C-WTHaWs.js +0 -117
- package/dist/widget-h5LX5aq8.js +0 -11
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//#region src/api/api.d.ts
|
|
2
2
|
interface ApiRequestOptions extends RequestInit {
|
|
3
3
|
apiUrl?: string | undefined;
|
|
4
|
-
fetchClient?:
|
|
4
|
+
fetchClient?: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
5
5
|
}
|
|
6
6
|
type ApiKeyOptions = ApiRequestOptions & {
|
|
7
7
|
apiKey: string;
|
|
@@ -12,10 +12,6 @@ type JwtOptions = ApiRequestOptions & {
|
|
|
12
12
|
apiKey?: never;
|
|
13
13
|
};
|
|
14
14
|
type ApiOptions = ApiKeyOptions | JwtOptions;
|
|
15
|
-
type FileOptions = ApiRequestOptions & {
|
|
16
|
-
apiKey?: never;
|
|
17
|
-
astralBeamToken?: never;
|
|
18
|
-
};
|
|
19
15
|
interface AstralBeamApiError$1 extends Error {
|
|
20
16
|
name: "AstralBeamApiError";
|
|
21
17
|
status: number;
|
|
@@ -27,22 +23,71 @@ declare function astralBeamApiFetch<T>(path: string, options: ApiOptions): Promi
|
|
|
27
23
|
declare function astralBeamJwtFetch<T>(path: string, options: JwtOptions): Promise<T>;
|
|
28
24
|
declare function astralBeamResourceFetch<_T>(path: string, options: ApiOptions): Promise<Response>;
|
|
29
25
|
declare function astralBeamChatFetch<_T>(path: string, options: JwtOptions): Promise<Response>;
|
|
30
|
-
declare function astralBeamFileFetch<_T>(path: string, options?: FileOptions): Promise<Response>;
|
|
31
26
|
//#endregion
|
|
32
27
|
//#region src/api/generated/api.d.ts
|
|
33
28
|
type AstralBeamApiErrorIssuesItem = {
|
|
34
29
|
path: string;
|
|
35
30
|
message: string;
|
|
36
31
|
};
|
|
32
|
+
/**
|
|
33
|
+
* The usage limit a 429 reached, by its display name, and when it resets.
|
|
34
|
+
*/
|
|
35
|
+
type AstralBeamApiErrorUsageLimit = {
|
|
36
|
+
name: string;
|
|
37
|
+
resets_at: string;
|
|
38
|
+
};
|
|
37
39
|
interface AstralBeamApiError {
|
|
38
40
|
type: string;
|
|
39
41
|
title: string;
|
|
42
|
+
/**
|
|
43
|
+
* @minimum -9007199254740991
|
|
44
|
+
* @maximum 9007199254740991
|
|
45
|
+
*/
|
|
40
46
|
status: number;
|
|
41
47
|
detail: string;
|
|
42
48
|
issues?: AstralBeamApiErrorIssuesItem[];
|
|
49
|
+
/** The usage limit a 429 reached, by its display name, and when it resets. */
|
|
50
|
+
usage_limit?: AstralBeamApiErrorUsageLimit;
|
|
43
51
|
/** Identifies the server log entry of an internal error. Quote it for support. */
|
|
44
52
|
reference?: string;
|
|
45
53
|
}
|
|
54
|
+
type McpConnectionEncodedAuthState = (typeof McpConnectionEncodedAuthState)[keyof typeof McpConnectionEncodedAuthState];
|
|
55
|
+
declare const McpConnectionEncodedAuthState: {
|
|
56
|
+
readonly disconnected: "disconnected";
|
|
57
|
+
readonly connected: "connected";
|
|
58
|
+
readonly reauthorization_required: "reauthorization_required";
|
|
59
|
+
};
|
|
60
|
+
interface McpConnectionEncoded {
|
|
61
|
+
/** @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$ */
|
|
62
|
+
organization_id: string;
|
|
63
|
+
/** @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$ */
|
|
64
|
+
tenant_id: string;
|
|
65
|
+
/** @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$ */
|
|
66
|
+
id: string;
|
|
67
|
+
/** @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$ */
|
|
68
|
+
mcp_server_id: string;
|
|
69
|
+
/**
|
|
70
|
+
* @minimum 0
|
|
71
|
+
* @maximum 9007199254740991
|
|
72
|
+
*/
|
|
73
|
+
lock_version: number;
|
|
74
|
+
auth_state: McpConnectionEncodedAuthState;
|
|
75
|
+
}
|
|
76
|
+
type McpServerEncodedAuthKind = (typeof McpServerEncodedAuthKind)[keyof typeof McpServerEncodedAuthKind] | null;
|
|
77
|
+
declare const McpServerEncodedAuthKind: {
|
|
78
|
+
readonly none: "none";
|
|
79
|
+
readonly static_headers: "static_headers";
|
|
80
|
+
readonly oauth: "oauth";
|
|
81
|
+
};
|
|
82
|
+
interface McpServerEncoded {
|
|
83
|
+
/** @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$ */
|
|
84
|
+
organization_id: string;
|
|
85
|
+
/** @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$ */
|
|
86
|
+
id: string;
|
|
87
|
+
endpoint_url: string;
|
|
88
|
+
auth_kind: McpServerEncodedAuthKind;
|
|
89
|
+
header_names: string[];
|
|
90
|
+
}
|
|
46
91
|
/**
|
|
47
92
|
* Customer-defined JSON object; keys are preserved.
|
|
48
93
|
*/
|
|
@@ -100,11 +145,19 @@ type CurrentUser = {
|
|
|
100
145
|
role: string;
|
|
101
146
|
};
|
|
102
147
|
};
|
|
103
|
-
|
|
148
|
+
type ChatToolResultReceiptEncodedUsageLimit = {
|
|
149
|
+
name: string;
|
|
150
|
+
resets_at: string;
|
|
151
|
+
};
|
|
152
|
+
interface ChatToolResultReceiptEncoded {
|
|
104
153
|
thread_id: string;
|
|
105
154
|
accepted_message_id: string;
|
|
106
|
-
/**
|
|
155
|
+
/**
|
|
156
|
+
* @minimum 0
|
|
157
|
+
* @maximum 9007199254740991
|
|
158
|
+
*/
|
|
107
159
|
thread_version: number;
|
|
160
|
+
usage_limit?: ChatToolResultReceiptEncodedUsageLimit;
|
|
108
161
|
}
|
|
109
162
|
type ResolveChatToolResultInputEncodedResultsItemOutcome = (typeof ResolveChatToolResultInputEncodedResultsItemOutcome)[keyof typeof ResolveChatToolResultInputEncodedResultsItemOutcome];
|
|
110
163
|
declare const ResolveChatToolResultInputEncodedResultsItemOutcome: {
|
|
@@ -114,7 +167,8 @@ declare const ResolveChatToolResultInputEncodedResultsItemOutcome: {
|
|
|
114
167
|
readonly unknown: "unknown";
|
|
115
168
|
};
|
|
116
169
|
type ResolveChatToolResultInputEncodedResultsItem = {
|
|
117
|
-
source_message_id: string;
|
|
170
|
+
source_message_id: string;
|
|
171
|
+
/** @minLength 1 */
|
|
118
172
|
source_part_id: string;
|
|
119
173
|
response_target_id: string;
|
|
120
174
|
outcome: ResolveChatToolResultInputEncodedResultsItemOutcome;
|
|
@@ -159,7 +213,10 @@ declare const SetChatParticipantInputEncodedRole: {
|
|
|
159
213
|
};
|
|
160
214
|
interface SetChatParticipantInputEncoded {
|
|
161
215
|
role: SetChatParticipantInputEncodedRole;
|
|
162
|
-
/**
|
|
216
|
+
/**
|
|
217
|
+
* @minimum 0
|
|
218
|
+
* @maximum 9007199254740991
|
|
219
|
+
*/
|
|
163
220
|
expected_version: number;
|
|
164
221
|
}
|
|
165
222
|
interface ChatTenantUserEncoded {
|
|
@@ -218,7 +275,11 @@ declare const ChatHistoryPageEncodedThreadRole: {
|
|
|
218
275
|
type ChatHistoryPageEncodedThread = {
|
|
219
276
|
id: string;
|
|
220
277
|
title: string | null;
|
|
221
|
-
agent_id: string | null;
|
|
278
|
+
agent_id: string | null;
|
|
279
|
+
/**
|
|
280
|
+
* @minimum 0
|
|
281
|
+
* @maximum 9007199254740991
|
|
282
|
+
*/
|
|
222
283
|
version: number;
|
|
223
284
|
current_leaf_message_id: string | null;
|
|
224
285
|
role: ChatHistoryPageEncodedThreadRole;
|
|
@@ -260,7 +321,10 @@ interface ChatThreadEncoded {
|
|
|
260
321
|
id: string;
|
|
261
322
|
title: string | null;
|
|
262
323
|
agent_id: string | null;
|
|
263
|
-
/**
|
|
324
|
+
/**
|
|
325
|
+
* @minimum 0
|
|
326
|
+
* @maximum 9007199254740991
|
|
327
|
+
*/
|
|
264
328
|
version: number;
|
|
265
329
|
current_leaf_message_id: string | null;
|
|
266
330
|
role: ChatThreadEncodedRole;
|
|
@@ -274,7 +338,10 @@ interface UpdateChatThreadInputEncoded {
|
|
|
274
338
|
* @maxLength 200
|
|
275
339
|
*/
|
|
276
340
|
title: string;
|
|
277
|
-
/**
|
|
341
|
+
/**
|
|
342
|
+
* @minimum 0
|
|
343
|
+
* @maximum 9007199254740991
|
|
344
|
+
*/
|
|
278
345
|
expected_version: number;
|
|
279
346
|
}
|
|
280
347
|
interface ChatThreadPage {
|
|
@@ -292,12 +359,45 @@ interface CreateChatThreadInputEncoded {
|
|
|
292
359
|
title?: string;
|
|
293
360
|
agent_id?: string;
|
|
294
361
|
}
|
|
362
|
+
type ChatUsageUsageLimitsItemScope = (typeof ChatUsageUsageLimitsItemScope)[keyof typeof ChatUsageUsageLimitsItemScope];
|
|
363
|
+
declare const ChatUsageUsageLimitsItemScope: {
|
|
364
|
+
readonly global: "global";
|
|
365
|
+
readonly tenant: "tenant";
|
|
366
|
+
readonly tenant_user: "tenant_user";
|
|
367
|
+
readonly thread: "thread";
|
|
368
|
+
};
|
|
369
|
+
type ChatUsageUsageLimitsItemMetric = (typeof ChatUsageUsageLimitsItemMetric)[keyof typeof ChatUsageUsageLimitsItemMetric];
|
|
370
|
+
declare const ChatUsageUsageLimitsItemMetric: {
|
|
371
|
+
readonly tokens: "tokens";
|
|
372
|
+
readonly spend: "spend";
|
|
373
|
+
};
|
|
374
|
+
type ChatUsageUsageLimitsItem = {
|
|
375
|
+
id: string;
|
|
376
|
+
name: string;
|
|
377
|
+
scope: ChatUsageUsageLimitsItemScope;
|
|
378
|
+
metric: ChatUsageUsageLimitsItemMetric;
|
|
379
|
+
amount: string;
|
|
380
|
+
used: string;
|
|
381
|
+
resetsAt: string | null;
|
|
382
|
+
};
|
|
383
|
+
interface ChatUsage {
|
|
384
|
+
usageLimits: ChatUsageUsageLimitsItem[];
|
|
385
|
+
}
|
|
295
386
|
type ChatConfigurationCapabilities = {
|
|
296
387
|
attachments: boolean;
|
|
297
388
|
};
|
|
298
389
|
interface ChatConfiguration {
|
|
299
390
|
capabilities: ChatConfigurationCapabilities;
|
|
300
391
|
}
|
|
392
|
+
interface ChatSubmissionReceiptEncoded {
|
|
393
|
+
thread_id: string;
|
|
394
|
+
accepted_message_id: string;
|
|
395
|
+
/**
|
|
396
|
+
* @minimum 0
|
|
397
|
+
* @maximum 9007199254740991
|
|
398
|
+
*/
|
|
399
|
+
thread_version: number;
|
|
400
|
+
}
|
|
301
401
|
type ChatRunInputForwardedProps = {
|
|
302
402
|
[key: string]: unknown;
|
|
303
403
|
} & {
|
|
@@ -324,6 +424,15 @@ interface ChatRunInput {
|
|
|
324
424
|
state?: unknown;
|
|
325
425
|
parentRunId?: string;
|
|
326
426
|
}
|
|
427
|
+
interface UploadedChatFile {
|
|
428
|
+
fileId: string;
|
|
429
|
+
mimeType: string;
|
|
430
|
+
/**
|
|
431
|
+
* @minimum -9007199254740991
|
|
432
|
+
* @maximum 9007199254740991
|
|
433
|
+
*/
|
|
434
|
+
byteSize: number;
|
|
435
|
+
}
|
|
327
436
|
type ChatMessageEncodedRole = (typeof ChatMessageEncodedRole)[keyof typeof ChatMessageEncodedRole];
|
|
328
437
|
declare const ChatMessageEncodedRole: {
|
|
329
438
|
readonly user: "user";
|
|
@@ -576,11 +685,39 @@ type ListThreadMessagesParams = {
|
|
|
576
685
|
*/
|
|
577
686
|
page_before?: string;
|
|
578
687
|
};
|
|
579
|
-
type
|
|
688
|
+
type UploadChatFileBodyType = (typeof UploadChatFileBodyType)[keyof typeof UploadChatFileBodyType];
|
|
689
|
+
declare const UploadChatFileBodyType: {
|
|
690
|
+
readonly image: "image";
|
|
691
|
+
readonly document: "document";
|
|
692
|
+
};
|
|
693
|
+
type UploadChatFileBodySourceType = (typeof UploadChatFileBodySourceType)[keyof typeof UploadChatFileBodySourceType];
|
|
694
|
+
declare const UploadChatFileBodySourceType: {
|
|
695
|
+
readonly data: "data";
|
|
696
|
+
};
|
|
697
|
+
type UploadChatFileBodySource = {
|
|
698
|
+
type: UploadChatFileBodySourceType;
|
|
699
|
+
value: string;
|
|
700
|
+
mimeType: string;
|
|
701
|
+
};
|
|
702
|
+
type UploadChatFileBodyMetadata = {
|
|
703
|
+
filename: string;
|
|
704
|
+
};
|
|
705
|
+
type UploadChatFileBody = {
|
|
580
706
|
agentId?: string;
|
|
707
|
+
type: UploadChatFileBodyType;
|
|
708
|
+
source: UploadChatFileBodySource;
|
|
709
|
+
metadata: UploadChatFileBodyMetadata;
|
|
581
710
|
};
|
|
582
711
|
type GetChatFileParams = {
|
|
583
|
-
|
|
712
|
+
threadId: string;
|
|
713
|
+
fileId: string;
|
|
714
|
+
filename?: string;
|
|
715
|
+
};
|
|
716
|
+
type GetChatConfigParams = {
|
|
717
|
+
agentId?: string;
|
|
718
|
+
};
|
|
719
|
+
type GetChatUsageParams = {
|
|
720
|
+
threadId?: string;
|
|
584
721
|
};
|
|
585
722
|
type ListChatThreadsParams = {
|
|
586
723
|
/**
|
|
@@ -668,6 +805,53 @@ type SearchChatTenantUsersParams = {
|
|
|
668
805
|
type RemoveChatParticipantParams = {
|
|
669
806
|
expected_version: string;
|
|
670
807
|
};
|
|
808
|
+
type PersonalMcpGetCatalog200 = {
|
|
809
|
+
servers: McpServerEncoded[];
|
|
810
|
+
connections: McpConnectionEncoded[];
|
|
811
|
+
};
|
|
812
|
+
type PersonalMcpCreateConnectionBody = {
|
|
813
|
+
/** @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$ */
|
|
814
|
+
mcp_server_id: string;
|
|
815
|
+
};
|
|
816
|
+
type PersonalMcpSetHeadersBodyHeaders = {
|
|
817
|
+
[key: string]: string;
|
|
818
|
+
};
|
|
819
|
+
type PersonalMcpSetHeadersBody = {
|
|
820
|
+
/**
|
|
821
|
+
* @minimum 0
|
|
822
|
+
* @maximum 9007199254740991
|
|
823
|
+
*/
|
|
824
|
+
lock_version: number;
|
|
825
|
+
headers: PersonalMcpSetHeadersBodyHeaders;
|
|
826
|
+
};
|
|
827
|
+
type PersonalMcpTestConnection200 = {
|
|
828
|
+
/**
|
|
829
|
+
* @minimum -9007199254740991
|
|
830
|
+
* @maximum 9007199254740991
|
|
831
|
+
*/
|
|
832
|
+
tool_count: number;
|
|
833
|
+
};
|
|
834
|
+
type PersonalMcpAuthorizeConnection200Attempt = {
|
|
835
|
+
/** @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$ */
|
|
836
|
+
organization_id: string;
|
|
837
|
+
/** @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$ */
|
|
838
|
+
tenant_id: string;
|
|
839
|
+
/** @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$ */
|
|
840
|
+
id: string;
|
|
841
|
+
/** @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$ */
|
|
842
|
+
connection_id: string;
|
|
843
|
+
};
|
|
844
|
+
type PersonalMcpAuthorizeConnection200 = {
|
|
845
|
+
attempt: PersonalMcpAuthorizeConnection200Attempt;
|
|
846
|
+
popup_url: string;
|
|
847
|
+
};
|
|
848
|
+
type PersonalMcpBindBrowserBody = {
|
|
849
|
+
attempt_id: string;
|
|
850
|
+
challenge: string;
|
|
851
|
+
};
|
|
852
|
+
type PersonalMcpCompleteAuthorizationBody = {
|
|
853
|
+
attempt_id: string;
|
|
854
|
+
};
|
|
671
855
|
declare const getListTenantsUrl: (params: ListTenantsParams) => string;
|
|
672
856
|
/**
|
|
673
857
|
* List Tenants in internal ID order. q searches name or external ID as a case-insensitive literal substring. filter[external_id] adds an exact match. Organization keys and organization-management JWTs see their organization; admin tenant JWTs see only their signed Tenant. Keep filters unchanged when reusing cursors. Live listing, not a snapshot.
|
|
@@ -738,6 +922,18 @@ declare const getGetThreadAttachmentUrl: (tenantId: string, id: string, messageI
|
|
|
738
922
|
* @summary Download a saved conversation upload for administration
|
|
739
923
|
*/
|
|
740
924
|
declare const getThreadAttachment: (tenantId: string, id: string, messageId: string, partId: string, options: Parameters<typeof astralBeamResourceFetch>[1]) => Promise<Response>;
|
|
925
|
+
declare const getUploadChatFileUrl: () => string;
|
|
926
|
+
/**
|
|
927
|
+
* Upload a file before sending a message using a synchronized tenant user JWT. The returned fileId is private to the uploader until sending attaches it to a message. Send it as source: { type: 'file', value: fileId }. Uploads do not expire. Maximum request size: 32 MiB.
|
|
928
|
+
* @summary Upload a chat file
|
|
929
|
+
*/
|
|
930
|
+
declare const uploadChatFile: (uploadChatFileBody: UploadChatFileBody, options: Parameters<typeof astralBeamJwtFetch>[1]) => Promise<UploadedChatFile>;
|
|
931
|
+
declare const getGetChatFileUrl: (params: GetChatFileParams) => string;
|
|
932
|
+
/**
|
|
933
|
+
* Download a stored file using a tenant JWT and current conversation membership. Pass its fileId, conversation threadId, and optional download filename. Published artifacts survive sandbox shutdown. The server verifies the stored size and hash before returning content-sniffed bytes.
|
|
934
|
+
* @summary Download a chat artifact
|
|
935
|
+
*/
|
|
936
|
+
declare const getChatFile: (params: GetChatFileParams, options: Parameters<typeof astralBeamChatFetch>[1]) => Promise<Response>;
|
|
741
937
|
declare const getRunChatUrl: () => string;
|
|
742
938
|
/**
|
|
743
939
|
* Save one new user message and stream an AG-UI agent run for a conversation participant using a synchronized tenant user JWT. An optional Idempotency-Key retains acceptance for 24 hours. An identical retry returns an application/json admission receipt without generation. Changed input under the same key returns 400 and simultaneous use returns 409. HTTP failures before streaming use AstralBeamApiError. Once streaming starts, failures use RUN_ERROR events. Submit tool results to the conversation's tool-results endpoint. Disconnecting cancels the foreground run and preserves saved history. Limited to 20 new turns per minute per organization, tenant, and user.
|
|
@@ -750,12 +946,12 @@ declare const getGetChatConfigUrl: (params: GetChatConfigParams) => string;
|
|
|
750
946
|
* @summary Get chat capabilities
|
|
751
947
|
*/
|
|
752
948
|
declare const getChatConfig: (params: GetChatConfigParams, options: Parameters<typeof astralBeamJwtFetch>[1]) => Promise<ChatConfiguration>;
|
|
753
|
-
declare const
|
|
949
|
+
declare const getGetChatUsageUrl: (params: GetChatUsageParams) => string;
|
|
754
950
|
/**
|
|
755
|
-
*
|
|
756
|
-
* @summary
|
|
951
|
+
* Read the usage limits that apply to the current tenant user and how much of each is used, using a tenant user JWT. Amounts and usage are decimal strings, in tokens or US dollars. resetsAt is null until usage opens a window. Pass the threadId of a conversation you participate in to include per-conversation limits.
|
|
952
|
+
* @summary Get usage limits
|
|
757
953
|
*/
|
|
758
|
-
declare const
|
|
954
|
+
declare const getChatUsage: (params: GetChatUsageParams, options: Parameters<typeof astralBeamApiFetch>[1]) => Promise<ChatUsage>;
|
|
759
955
|
declare const getCreateChatThreadUrl: () => string;
|
|
760
956
|
/**
|
|
761
957
|
* @summary Create a saved conversation
|
|
@@ -823,5 +1019,21 @@ declare const getGetCurrentUserUrl: () => string;
|
|
|
823
1019
|
* @summary Get the current user
|
|
824
1020
|
*/
|
|
825
1021
|
declare const getCurrentUser: (options: Parameters<typeof astralBeamJwtFetch>[1]) => Promise<CurrentUser>;
|
|
1022
|
+
declare const getPersonalMcpGetCatalogUrl: () => string;
|
|
1023
|
+
declare const personalMcpGetCatalog: (options: Parameters<typeof astralBeamJwtFetch>[1]) => Promise<PersonalMcpGetCatalog200>;
|
|
1024
|
+
declare const getPersonalMcpCreateConnectionUrl: () => string;
|
|
1025
|
+
declare const personalMcpCreateConnection: (personalMcpCreateConnectionBody: PersonalMcpCreateConnectionBody, options: Parameters<typeof astralBeamJwtFetch>[1]) => Promise<McpConnectionEncoded>;
|
|
1026
|
+
declare const getPersonalMcpSetHeadersUrl: (id: string) => string;
|
|
1027
|
+
declare const personalMcpSetHeaders: (id: string, personalMcpSetHeadersBody: PersonalMcpSetHeadersBody, options: Parameters<typeof astralBeamJwtFetch>[1]) => Promise<void>;
|
|
1028
|
+
declare const getPersonalMcpDisconnectConnectionUrl: (id: string) => string;
|
|
1029
|
+
declare const personalMcpDisconnectConnection: (id: string, options: Parameters<typeof astralBeamJwtFetch>[1]) => Promise<void>;
|
|
1030
|
+
declare const getPersonalMcpTestConnectionUrl: (id: string) => string;
|
|
1031
|
+
declare const personalMcpTestConnection: (id: string, options: Parameters<typeof astralBeamJwtFetch>[1]) => Promise<PersonalMcpTestConnection200>;
|
|
1032
|
+
declare const getPersonalMcpAuthorizeConnectionUrl: (id: string) => string;
|
|
1033
|
+
declare const personalMcpAuthorizeConnection: (id: string, options: Parameters<typeof astralBeamJwtFetch>[1]) => Promise<PersonalMcpAuthorizeConnection200>;
|
|
1034
|
+
declare const getPersonalMcpBindBrowserUrl: (id: string) => string;
|
|
1035
|
+
declare const personalMcpBindBrowser: (id: string, personalMcpBindBrowserBody: PersonalMcpBindBrowserBody, options: Parameters<typeof astralBeamJwtFetch>[1]) => Promise<void>;
|
|
1036
|
+
declare const getPersonalMcpCompleteAuthorizationUrl: (id: string) => string;
|
|
1037
|
+
declare const personalMcpCompleteAuthorization: (id: string, personalMcpCompleteAuthorizationBody: PersonalMcpCompleteAuthorizationBody, options: Parameters<typeof astralBeamJwtFetch>[1]) => Promise<boolean>;
|
|
826
1038
|
//#endregion
|
|
827
|
-
export {
|
|
1039
|
+
export { ListChatThreadsParams as $, personalMcpGetCatalog as $n, getCreateTenantUrl as $t, ChatThreadPage as A, getResolveChatToolResultUrl as An, TenantUserRecordEncoded as At, CreateTenantUserInput as B, getUploadChatFileUrl as Bn, UploadChatFileBodySourceType as Bt, ChatRunInputData as C, getPersonalMcpCompleteAuthorizationUrl as Cn, SearchChatTenantUsersParams as Ct, ChatTenantUserPage as D, getPersonalMcpSetHeadersUrl as Dn, TenantRecordEncoded as Dt, ChatTenantUserEncoded as E, getPersonalMcpGetCatalogUrl as En, TenantPage as Et, ChatUsageUsageLimitsItemMetric as F, getTenantUser as Fn, UpdateTenantUserInput as Ft, DirectoryThreadEncodedParticipantsItem as G, listThreadMessages as Gn, createTenantUser as Gt, CurrentUser as H, listChatParticipants as Hn, UploadedChatFile as Ht, ChatUsageUsageLimitsItemScope as I, getThreadAttachment as In, UpdateTenantUserInputMetadata as It, GetChatConfigParams as J, personalMcpAuthorizeConnection as Jn, getChatConfig as Jt, DirectoryThreadHistoryPage as K, listThreads as Kn, deleteChatThread as Kt, CreateChatThreadInputEncoded as L, getUpdateChatThreadUrl as Ln, UploadChatFileBody as Lt, ChatToolResultReceiptEncodedUsageLimit as M, getSearchChatTenantUsersUrl as Mn, UpdateChatThreadInputEncoded as Mt, ChatUsage as N, getSetChatParticipantUrl as Nn, UpdateTenantInput as Nt, ChatThreadEncoded as O, getPersonalMcpTestConnectionUrl as On, TenantRecordEncodedMetadata as Ot, ChatUsageUsageLimitsItem as P, getTenant as Pn, UpdateTenantInputMetadata as Pt, ListChatParticipantsParams as Q, personalMcpDisconnectConnection as Qn, getCreateChatThreadUrl as Qt, CreateTenantInput as R, getUpdateTenantUrl as Rn, UploadChatFileBodyMetadata as Rt, ChatRunInput as S, getPersonalMcpBindBrowserUrl as Sn, ResolveChatToolResultInputEncodedResultsItemOutcome as St, ChatSubmissionReceiptEncoded as T, getPersonalMcpDisconnectConnectionUrl as Tn, SetChatParticipantInputEncodedRole as Tt, DeleteChatThreadParams as U, listChatThreads as Un, createChatThread as Ut, CreateTenantUserInputMetadata as V, listChatMessages as Vn, UploadChatFileBodyType as Vt, DirectoryThreadEncoded as W, listTenants as Wn, createTenant as Wt, GetChatUsageParams as X, personalMcpCompleteAuthorization as Xn, getChatThread as Xt, GetChatFileParams as Y, personalMcpBindBrowser as Yn, getChatFile as Yt, ListChatMessagesParams as Z, personalMcpCreateConnection as Zn, getChatUsage as Zt, ChatMessageEncodedRole as _, getListThreadMessagesUrl as _n, PersonalMcpSetHeadersBodyHeaders as _t, ChatConfigurationCapabilities as a, getGetChatFileUrl as an, searchChatTenantUsers as ar, McpConnectionEncoded as at, ChatParticipantEncodedRole as b, getOrganization as bn, ResolveChatToolResultInputEncoded as bt, ChatHistoryPageEncodedMessagesItemPartsItem as c, getGetCurrentUserUrl as cn, updateTenant as cr, McpServerEncodedAuthKind as ct, ChatHistoryPageEncodedPendingInteractionsItem as d, getGetTenantUserUrl as dn, ApiKeyOptions as dr, PersonalMcpAuthorizeConnection200Attempt as dt, getCreateTenantUserUrl as en, personalMcpSetHeaders as er, ListTenantsParams as et, ChatHistoryPageEncodedPendingInteractionsItemExecutionLocation as f, getGetThreadAttachmentUrl as fn, ApiOptions as fr, PersonalMcpBindBrowserBody as ft, ChatMessageEncodedPartsItem as g, getListTenantsUrl as gn, isAstralBeamApiError as gr, PersonalMcpSetHeadersBody as gt, ChatMessageEncoded as h, getListChatThreadsUrl as hn, JwtOptions as hr, PersonalMcpGetCatalog200 as ht, ChatConfiguration as i, getGetChatConfigUrl as in, runChat as ir, ListUsersForTenantParams as it, ChatToolResultReceiptEncoded as j, getRunChatUrl as jn, TenantUserRecordEncodedMetadata as jt, ChatThreadEncodedRole as k, getRemoveChatParticipantUrl as kn, TenantUserPage as kt, ChatHistoryPageEncodedMessagesItemRole as l, getGetOrganizationUrl as ln, updateTenantUser as lr, Organization as lt, ChatHistoryPageEncodedThreadRole as m, getListChatParticipantsUrl as mn, AstralBeamApiError$1 as mr, PersonalMcpCreateConnectionBody as mt, AstralBeamApiErrorIssuesItem as n, getDeleteChatThreadUrl as nn, removeChatParticipant as nr, ListThreadsParams as nt, ChatHistoryPageEncoded as o, getGetChatThreadUrl as on, setChatParticipant as or, McpConnectionEncodedAuthState as ot, ChatHistoryPageEncodedThread as p, getListChatMessagesUrl as pn, ApiRequestOptions as pr, PersonalMcpCompleteAuthorizationBody as pt, DirectoryThreadPage as q, listUsersForTenant as qn, getChatAttachment as qt, AstralBeamApiErrorUsageLimit as r, getGetChatAttachmentUrl as rn, resolveChatToolResult as rr, ListUsersForTenantFilterAdmin as rt, ChatHistoryPageEncodedMessagesItem as s, getGetChatUsageUrl as sn, updateChatThread as sr, McpServerEncoded as st, AstralBeamApiError as t, getCurrentUser as tn, personalMcpTestConnection as tr, ListThreadMessagesParams as tt, ChatHistoryPageEncodedMessagesItemState as u, getGetTenantUrl as un, uploadChatFile as ur, PersonalMcpAuthorizeConnection200 as ut, ChatMessageEncodedState as v, getListThreadsUrl as vn, PersonalMcpTestConnection200 as vt, ChatRunInputForwardedProps as w, getPersonalMcpCreateConnectionUrl as wn, SetChatParticipantInputEncoded as wt, ChatParticipantPage as x, getPersonalMcpAuthorizeConnectionUrl as xn, ResolveChatToolResultInputEncodedResultsItem as xt, ChatParticipantEncoded as y, getListUsersForTenantUrl as yn, RemoveChatParticipantParams as yt, CreateTenantInputMetadata as z, getUpdateTenantUserUrl as zn, UploadChatFileBodySource as zt };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Jn as e,Or as t,Tr as n,Yn as r,jr as i,qn as a,tt as o,ur as s}from"./styles.generated-D4k7izMB.js";var c=/* @__PURE__ */ i(t(),1);const l=/* @__PURE__ */ new Map([[`bold`,/* @__PURE__ */ c.createElement(c.Fragment,null,/* @__PURE__ */ c.createElement(`path`,{d:`M240.49,63.51a12,12,0,0,0-17,0L192,95,161,64l31.52-31.51a12,12,0,0,0-17-17L144,47,120.49,23.51a12,12,0,1,0-17,17L107,44,56.89,94.14a44,44,0,0,0,0,62.23l12.88,12.88L23.51,215.51a12,12,0,0,0,17,17l46.26-46.26,12.88,12.88a44,44,0,0,0,62.23,0L212,149l3.51,3.52a12,12,0,0,0,17-17L209,112l31.52-31.51A12,12,0,0,0,240.49,63.51Zm-95.6,118.63a20,20,0,0,1-28.29,0L73.86,139.4a20,20,0,0,1,0-28.29L124,61l71,71Z`}))],[`duotone`,/* @__PURE__ */ c.createElement(c.Fragment,null,/* @__PURE__ */ c.createElement(`path`,{d:`M212,132l-58.63,58.63a32,32,0,0,1-45.25,0L65.37,147.88a32,32,0,0,1,0-45.25L124,44Z`,opacity:`0.2`}),/* @__PURE__ */ c.createElement(`path`,{d:`M237.66,66.34a8,8,0,0,0-11.32,0L192,100.69,155.31,64l34.35-34.34a8,8,0,1,0-11.32-11.32L144,52.69,117.66,26.34a8,8,0,0,0-11.32,11.32L112.69,44l-53,53a40,40,0,0,0,0,56.57l15.71,15.71L26.34,218.34a8,8,0,0,0,11.32,11.32l49.09-49.09,15.71,15.71a40,40,0,0,0,56.57,0l53-53,6.34,6.35a8,8,0,0,0,11.32-11.32L203.31,112l34.35-34.34A8,8,0,0,0,237.66,66.34ZM147.72,185a24,24,0,0,1-33.95,0L71,142.23a24,24,0,0,1,0-33.95l53-53L200.69,132Z`}))],[`fill`,/* @__PURE__ */ c.createElement(c.Fragment,null,/* @__PURE__ */ c.createElement(`path`,{d:`M237.66,77.66,203.31,112l26.35,26.34a8,8,0,0,1-11.32,11.32L212,143.31l-53,53a40,40,0,0,1-56.57,0L86.75,180.57,37.66,229.66a8,8,0,0,1-11.32-11.32l49.09-49.09L59.72,153.54a40,40,0,0,1,0-56.57l53-53-6.35-6.34a8,8,0,0,1,11.32-11.32L144,52.69l34.34-34.35a8,8,0,1,1,11.32,11.32L155.31,64,192,100.69l34.34-34.35a8,8,0,0,1,11.32,11.32Z`}))],[`light`,/* @__PURE__ */ c.createElement(c.Fragment,null,/* @__PURE__ */ c.createElement(`path`,{d:`M236.24,67.76a6,6,0,0,0-8.48,0L192,103.51,152.49,64l35.75-35.76a6,6,0,0,0-8.48-8.48L144,55.51,116.24,27.76a6,6,0,1,0-8.48,8.48L115.51,44,61.13,98.38a38,38,0,0,0,0,53.75l17.13,17.12-50.5,50.51a6,6,0,1,0,8.48,8.48l50.51-50.5,17.13,17.13a38,38,0,0,0,53.74,0L212,140.49l7.76,7.75a6,6,0,0,0,8.48-8.48L200.49,112l35.75-35.76A6,6,0,0,0,236.24,67.76ZM149.13,186.38a26,26,0,0,1-36.77,0L69.62,143.64a26,26,0,0,1,0-36.77L124,52.49,203.51,132Z`}))],[`regular`,/* @__PURE__ */ c.createElement(c.Fragment,null,/* @__PURE__ */ c.createElement(`path`,{d:`M237.66,66.34a8,8,0,0,0-11.32,0L192,100.69,155.31,64l34.35-34.34a8,8,0,1,0-11.32-11.32L144,52.69,117.66,26.34a8,8,0,0,0-11.32,11.32L112.69,44l-53,53a40,40,0,0,0,0,56.57l15.71,15.71L26.34,218.34a8,8,0,0,0,11.32,11.32l49.09-49.09,15.71,15.71a40,40,0,0,0,56.57,0l53-53,6.34,6.35a8,8,0,0,0,11.32-11.32L203.31,112l34.35-34.34A8,8,0,0,0,237.66,66.34ZM147.72,185a24,24,0,0,1-33.95,0L71,142.23a24,24,0,0,1,0-33.95l53-53L200.69,132Z`}))],[`thin`,/* @__PURE__ */ c.createElement(c.Fragment,null,/* @__PURE__ */ c.createElement(`path`,{d:`M234.83,69.17a4,4,0,0,0-5.66,0L192,106.34,149.66,64l37.17-37.17a4,4,0,1,0-5.66-5.66L144,58.34,114.83,29.17a4,4,0,0,0-5.66,5.66L118.34,44,62.54,99.8a36.05,36.05,0,0,0,0,50.91l18.55,18.54L29.17,221.17a4,4,0,0,0,5.66,5.66l51.92-51.92,18.54,18.55a36.06,36.06,0,0,0,50.91,0l55.8-55.8,9.17,9.17a4,4,0,0,0,5.66-5.66L197.66,112l37.17-37.17A4,4,0,0,0,234.83,69.17ZM150.54,187.8a28,28,0,0,1-39.59,0L68.2,145.05a28,28,0,0,1,0-39.59L124,49.66,206.34,132Z`}))]]),u=/* @__PURE__ */ new Map([[`bold`,/* @__PURE__ */ c.createElement(c.Fragment,null,/* @__PURE__ */ c.createElement(`path`,{d:`M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z`}))],[`duotone`,/* @__PURE__ */ c.createElement(c.Fragment,null,/* @__PURE__ */ c.createElement(`path`,{d:`M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z`,opacity:`0.2`}),/* @__PURE__ */ c.createElement(`path`,{d:`M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z`}))],[`fill`,/* @__PURE__ */ c.createElement(c.Fragment,null,/* @__PURE__ */ c.createElement(`path`,{d:`M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z`}))],[`light`,/* @__PURE__ */ c.createElement(c.Fragment,null,/* @__PURE__ */ c.createElement(`path`,{d:`M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z`}))],[`regular`,/* @__PURE__ */ c.createElement(c.Fragment,null,/* @__PURE__ */ c.createElement(`path`,{d:`M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z`}))],[`thin`,/* @__PURE__ */ c.createElement(c.Fragment,null,/* @__PURE__ */ c.createElement(`path`,{d:`M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z`}))]]),d=c.forwardRef((e,t)=>/* @__PURE__ */ c.createElement(n,{ref:t,...e,weights:l}));d.displayName=`PlugIcon`;const f=c.forwardRef((e,t)=>/* @__PURE__ */ c.createElement(n,{ref:t,...e,weights:u}));f.displayName=`TrashIcon`;var p=a();function m({className:t,size:n=`default`,...r}){return/* @__PURE__ */ (0,p.jsx)(`div`,{"data-slot":`card`,"data-size":n,className:e(`group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl`,t),...r})}function h({className:t,...n}){return/* @__PURE__ */ (0,p.jsx)(`div`,{"data-slot":`card-header`,className:e(`group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)`,t),...n})}function g({className:t,...n}){return/* @__PURE__ */ (0,p.jsx)(`div`,{"data-slot":`card-title`,className:e(`font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm`,t),...n})}function _({className:t,...n}){return/* @__PURE__ */ (0,p.jsx)(`div`,{"data-slot":`card-content`,className:e(`px-(--card-spacing)`,t),...n})}function v({className:t,...n}){return/* @__PURE__ */ (0,p.jsx)(`div`,{"data-slot":`card-footer`,className:e(`flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)`,t),...n})}function y({className:t,...n}){return/* @__PURE__ */ (0,p.jsx)(`label`,{"data-slot":`label`,className:e(`flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,t),...n})}const b=r(`group/field flex w-full gap-2 data-[invalid=true]:text-destructive`,{variants:{orientation:{vertical:`flex-col *:w-full [&>.sr-only]:w-auto`,horizontal:`flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`,responsive:`flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`}},defaultVariants:{orientation:`vertical`}});function x({className:t,orientation:n=`vertical`,...r}){return/* @__PURE__ */ (0,p.jsx)(`div`,{role:`group`,"data-slot":`field`,"data-orientation":n,className:e(b({orientation:n}),t),...r})}function S({className:t,...n}){return/* @__PURE__ */ (0,p.jsx)(y,{"data-slot":`field-label`,className:e(`group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border has-[>[data-slot=field]]:not-has-[:disabled,[data-disabled]]:hover:bg-muted/50 has-[>[data-slot=field]]:has-[:focus-visible]:border-ring has-[>[data-slot=field]]:has-[:focus-visible]:ring-3 has-[>[data-slot=field]]:has-[:focus-visible]:ring-ring/50 *:data-[slot=field]:p-2.5 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10`,`has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col`,t),...n})}function C({className:t,...n}){return/* @__PURE__ */ (0,p.jsx)(`p`,{"data-slot":`field-description`,className:e(`text-start text-sm leading-normal font-normal text-muted-foreground group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-1.5`,`last:mt-0 nth-last-2:-mt-1`,`[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary`,t),...n})}function w({className:t,children:n,errors:r,...i}){let a=(0,c.useMemo)(()=>{if(n)return n;if(!r?.length)return null;let e=[...new Map(r.map(e=>[e?.message,e])).values()];return e?.length==1?e[0]?.message:/* @__PURE__ */ (0,p.jsx)(`ul`,{className:`ms-4 flex list-disc flex-col gap-1`,children:e.map((e,t)=>e?.message&&/* @__PURE__ */ (0,p.jsx)(`li`,{children:e.message},t))})},[n,r]);return a?/* @__PURE__ */ (0,p.jsx)(`div`,{role:`alert`,"data-slot":`field-error`,className:e(`text-sm font-normal text-destructive`,t),...i,children:a}):null}const T=r(`group/item flex w-full flex-wrap items-center rounded-lg border text-sm transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [a]:transition-colors [a]:hover:bg-muted`,{variants:{variant:{default:`border-transparent`,outline:`border-border`,muted:`border-transparent bg-muted/50`},size:{default:`gap-2.5 px-3 py-2.5`,sm:`gap-2.5 px-3 py-2.5`,xs:`gap-2 px-2.5 py-2 in-data-[slot=dropdown-menu-content]:p-0`}},defaultVariants:{variant:`default`,size:`default`}});function E({className:t,variant:n=`default`,size:r=`default`,render:i,...a}){return o({defaultTagName:`div`,props:s({className:e(T({variant:n,size:r,className:t}))},a),render:i,state:{slot:`item`,variant:n,size:r}})}const D=r(`flex shrink-0 items-center justify-center gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 group-has-data-[slot=item-description]/item:self-start [&_svg]:pointer-events-none`,{variants:{variant:{default:`bg-transparent`,icon:`[&_svg:not([class*='size-'])]:size-4`,image:`size-10 overflow-hidden rounded-sm group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover`}},defaultVariants:{variant:`default`}});function O({className:t,variant:n=`default`,...r}){return/* @__PURE__ */ (0,p.jsx)(`div`,{"data-slot":`item-media`,"data-variant":n,className:e(D({variant:n,className:t})),...r})}function k({className:t,...n}){return/* @__PURE__ */ (0,p.jsx)(`div`,{"data-slot":`item-content`,className:e(`flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none`,t),...n})}function A({className:t,...n}){return/* @__PURE__ */ (0,p.jsx)(`p`,{"data-slot":`item-description`,className:e(`line-clamp-2 text-start text-sm leading-normal font-normal text-muted-foreground group-data-[size=xs]/item:text-xs [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary`,t),...n})}function j({className:t,...n}){return/* @__PURE__ */ (0,p.jsx)(`div`,{"data-slot":`item-actions`,className:e(`flex items-center gap-2`,t),...n})}export{O as a,w as c,_ as d,v as f,d as g,f as h,A as i,S as l,g as m,j as n,x as o,h as p,k as r,C as s,E as t,m as u};
|