@astralbeam/sdk 0.23.7 → 0.25.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 +7 -5
- package/dist/{api-SpkUzEv3.js → api-CzXKVU8Z.js} +33 -4
- package/dist/api.d.ts +2 -2
- package/dist/api.js +1 -1
- package/dist/{badge-CN5Cq8Xf.js → badge-Do9jhFNO.js} +1 -1
- package/dist/client.d.ts +6418 -46
- package/dist/client.js +51 -1
- package/dist/combobox-B6w-LeTo.js +42 -0
- package/dist/{core-Bn3w2Q44.js → core-zgz5sorX.js} +347 -194
- package/dist/core.d.ts +1 -1
- package/dist/core.js +1 -1
- package/dist/{index-D8X2hDGe.d.ts → index-CI5Jut1h.d.ts} +32 -8
- package/dist/{index-DGfDkU_f.d.ts → index-Cg2qqahU.d.ts} +38 -22
- package/dist/{item-Dl9F5Xpc.js → item-U0ZPJBqA.js} +1 -1
- package/dist/listings-BMUU5Ssj.js +1 -0
- package/dist/{mcp-servers-BIGSawh_.js → mcp-servers-B4IbhRo_.js} +1 -1
- package/dist/react.d.ts +4 -27
- package/dist/react.js +13 -42
- package/dist/{styles.generated-CW6iaZWa.js → styles.generated-BBScqnSk.js} +11 -11
- package/dist/widget-DxIW_E_U.js +27 -0
- package/package.json +5 -6
- package/dist/listings-UNePN1vA.js +0 -1
- package/dist/threads-CZIvwSRC.js +0 -42
- package/dist/widget-D_AwRq1A.js +0 -27
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ Without npm or a bundler, import the same entry from jsDelivr in a module script
|
|
|
34
34
|
```html
|
|
35
35
|
<div id="sidebar" style="height:100dvh"></div>
|
|
36
36
|
<script type="module">
|
|
37
|
-
import { mountAstralBeamChat } from "https://cdn.jsdelivr.net/npm/@astralbeam/sdk@0.
|
|
37
|
+
import { mountAstralBeamChat } from "https://cdn.jsdelivr.net/npm/@astralbeam/sdk@0.25.0/dist/client.js"
|
|
38
38
|
|
|
39
39
|
mountAstralBeamChat(document.getElementById("sidebar"), {})
|
|
40
40
|
</script>
|
|
@@ -93,15 +93,17 @@ After acquiring a token, components call `POST /api/v1/me` and renew before expi
|
|
|
93
93
|
|
|
94
94
|
Pass options as React props or apply a subset with `handle.update(options)`. Presentation changes preserve chat. Changing `threadId` selects a conversation, and changing `apiUrl` clears the previous deployment's state. See [Configuration](https://astralbeam.ai/docs/sdk/configuration) for all options, defaults, layout, and chrome slots.
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
Most embeds let `<AstralBeamChat {...options} />` manage the session. For external controls, create `chat` with `useAstralBeamChat(options)` and render `<AstralBeamChat chat={chat} />`. Configure authentication and tools on the hook, with widgets and appearance on the view. Call actions directly on `chat` and read state through `chat.getState()`.
|
|
97
|
+
|
|
98
|
+
**Migration:** replace chat refs and mount-handle commands with session actions. Use `chat` instead of `chat.core`, and `chat.getState()` instead of snapshot fields. Directory handles are unchanged. See Configuration for ownership and JavaScript usage.
|
|
97
99
|
|
|
98
100
|
Conversations are saved automatically and start private. The widget searches saved conversation titles. Reopening history does not execute earlier tool calls. Disconnecting can interrupt the current response.
|
|
99
101
|
|
|
100
|
-
The headless session exposes conversation navigation, search, and pagination. With `useAstralBeamChat`, access these through `chat
|
|
102
|
+
The headless session exposes conversation navigation, search, and pagination. With `useAstralBeamChat`, access these through `chat`, for example `chat.openThread(threadId)`. History loads a page at a time. `reset()` starts a new chat and keeps the saved one.
|
|
101
103
|
|
|
102
|
-
Download an attachment with `chat.
|
|
104
|
+
Download an attachment with `chat.getThreadAttachment({ threadId, fileId })`, which returns a `Blob`. Organization and participant tenant scope come from your credentials. Administrative downloads also pass `tenantId`. Use `{ preview: true }` as the second argument for a thumbnail. Only previews of your unsent uploads may omit `threadId`.
|
|
103
105
|
|
|
104
|
-
By default, `threadId: "auto"` restores this tab's selection after reload using session storage, scoped to the current account and
|
|
106
|
+
By default, `threadId: "auto"` restores this tab's selection after reload using session storage, scoped to the current account, API, and `placementKey ?? agentId ?? "default"`. Use distinct placement keys for independent chats with the same agent. A fresh, independently opened tab starts a new chat. Use `threadId: "new"` to bypass restoration, or pass a saved thread UUID. The widget keeps unsent text and uploaded file references in local storage per placement, account, API, and conversation. Reopening restores the draft without sending it automatically. The host owns sidebar visibility and can persist it separately in session storage.
|
|
105
107
|
|
|
106
108
|
## Tools and widgets
|
|
107
109
|
|
|
@@ -52,8 +52,18 @@ async function astralBeamApiFetch(path, options) {
|
|
|
52
52
|
function astralBeamJwtFetch(path, options) {
|
|
53
53
|
return astralBeamApiFetch(path, options);
|
|
54
54
|
}
|
|
55
|
-
function astralBeamResourceFetch(path, options) {
|
|
56
|
-
|
|
55
|
+
async function astralBeamResourceFetch(path, options) {
|
|
56
|
+
const response = await apiResponse(path, options);
|
|
57
|
+
const location = response.status === 204 ? response.headers.get("location") : null;
|
|
58
|
+
if (!location) return response;
|
|
59
|
+
const download = await globalThis.fetch(location, {
|
|
60
|
+
credentials: "omit",
|
|
61
|
+
redirect: "error",
|
|
62
|
+
referrerPolicy: "no-referrer",
|
|
63
|
+
signal: options.signal ?? null
|
|
64
|
+
});
|
|
65
|
+
if (!download.ok) throw new Error("The file could not be downloaded. Please try again.");
|
|
66
|
+
return download;
|
|
57
67
|
}
|
|
58
68
|
function astralBeamChatFetch(path, options) {
|
|
59
69
|
return apiResponse(path, options);
|
|
@@ -143,6 +153,25 @@ const UploadChatFileBodyType = {
|
|
|
143
153
|
document: "document"
|
|
144
154
|
};
|
|
145
155
|
const UploadChatFileBodySourceType = { data: "data" };
|
|
156
|
+
const GetThreadAttachmentDelivery = { direct: "direct" };
|
|
157
|
+
const getSearchDocumentationUrl = (params) => {
|
|
158
|
+
const normalizedParams = new URLSearchParams();
|
|
159
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
160
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
161
|
+
});
|
|
162
|
+
const stringifiedParams = normalizedParams.toString();
|
|
163
|
+
return stringifiedParams.length > 0 ? `/api/v1/docs/search?${stringifiedParams}` : `/api/v1/docs/search`;
|
|
164
|
+
};
|
|
165
|
+
/**
|
|
166
|
+
* Search the published guides and API reference. Returns up to five matching pages with relative URLs and the best matching section. Accepts the same credentials as the resource APIs.
|
|
167
|
+
* @summary Search documentation
|
|
168
|
+
*/
|
|
169
|
+
const searchDocumentation = (params, options) => {
|
|
170
|
+
return astralBeamApiFetch(getSearchDocumentationUrl(params), {
|
|
171
|
+
...options,
|
|
172
|
+
method: "GET"
|
|
173
|
+
});
|
|
174
|
+
};
|
|
146
175
|
const getListTenantsUrl = (params) => {
|
|
147
176
|
const normalizedParams = new URLSearchParams();
|
|
148
177
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -410,7 +439,7 @@ const getGetThreadAttachmentUrl = (params) => {
|
|
|
410
439
|
return stringifiedParams.length > 0 ? `/api/v1/chat/files?${stringifiedParams}` : `/api/v1/chat/files`;
|
|
411
440
|
};
|
|
412
441
|
/**
|
|
413
|
-
* Pass the fileId from a saved message, its threadId, and an optional download filename. Tenant JWTs require current conversation membership. Administrative reads also pass tenantId and require directory-read permission through an Organization API key, Organization-management JWT, or signed Tenant admin JWT. Send X-File-Preview: true for a cached thumbnail, or 204 when unavailable. Only the uploader's unsent previews may omit threadId. Original downloads verify stored bytes.
|
|
442
|
+
* Pass the fileId from a saved message, its threadId, and an optional download filename. Tenant JWTs require current conversation membership. Administrative reads also pass tenantId and require directory-read permission through an Organization API key, Organization-management JWT, or signed Tenant admin JWT. Send X-File-Preview: true for a cached thumbnail, or 204 when unavailable. Only the uploader's unsent previews may omit threadId. Original proxied downloads verify stored bytes. Request delivery=direct to receive 204 with a short-lived S3 URL in Location after authorization. A preview may still return 204 without Location when unavailable. Fetch storage URLs without application credentials and do not cache these capability responses.
|
|
414
443
|
* @summary Download a chat file
|
|
415
444
|
*/
|
|
416
445
|
const getThreadAttachment = (params, options) => {
|
|
@@ -834,4 +863,4 @@ const personalMcpCompleteAuthorization = (id, personalMcpCompleteAuthorizationBo
|
|
|
834
863
|
});
|
|
835
864
|
};
|
|
836
865
|
//#endregion
|
|
837
|
-
export {
|
|
866
|
+
export { getPersonalMcpGetCatalogUrl as $, getDeleteChatThreadUrl as A, personalMcpTestConnection as At, getListChatMessagesUrl as B, uploadChatFile as Bt, getChatConfig as C, personalMcpAuthorizeConnection as Ct, getCreateTenantUrl as D, personalMcpDisconnectConnection as Dt, getCreateChatThreadUrl as E, personalMcpCreateConnection as Et, getGetOrganizationUrl as F, searchDocumentation as Ft, getListThreadsUrl as G, DEFAULT_CHAT_AUTH_TOKEN_URL as Gt, getListChatThreadsUrl as H, isAstralBeamApiError as Ht, getGetTenantUrl as I, setChatParticipant as It, getPersonalMcpAuthorizeConnectionUrl as J, getListUsersForTenantUrl as K, DEFAULT_COLOR_SCHEME as Kt, getGetTenantUserUrl as L, updateChatThread as Lt, getGetChatThreadUrl as M, resolveChatToolResult as Mt, getGetChatUsageUrl as N, runChat as Nt, getCreateTenantUserUrl as O, personalMcpGetCatalog as Ot, getGetCurrentUserUrl as P, searchChatTenantUsers as Pt, getPersonalMcpDisconnectConnectionUrl as Q, getGetTenantUserUsageUrl as R, updateTenant as Rt, deleteChatThread as S, listUsersForTenant as St, getChatUsage as T, personalMcpCompleteAuthorization as Tt, getListTenantsUrl as U, resolveApiUrl as Ut, getListChatParticipantsUrl as V, astralBeamChatFetch as Vt, getListThreadMessagesUrl as W, DEFAULT_API_URL as Wt, getPersonalMcpCompleteAuthorizationUrl as X, getPersonalMcpBindBrowserUrl as Y, getPersonalMcpCreateConnectionUrl as Z, UploadChatFileBodySourceType as _, listChatParticipants as _t, ChatMessageEncodedRole as a, getSearchChatTenantUsersUrl as at, createTenant as b, listThreadMessages as bt, ChatThreadEncodedRole as c, getTenant as ct, GetThreadAttachmentDelivery as d, getThreadAttachment as dt, getPersonalMcpSetHeadersUrl as et, ListUsersForTenantFilterAdmin as f, getUpdateChatThreadUrl as ft, SetChatParticipantInputEncodedRole as g, listChatMessages as gt, ResolveChatToolResultInputEncodedResultsItemOutcome as h, getUploadChatFileUrl as ht, ChatHistoryPageEncodedThreadRole as i, getRunChatUrl as it, getGetChatConfigUrl as j, removeChatParticipant as jt, getCurrentUser as k, personalMcpSetHeaders as kt, ChatUsageUsageLimitsItemMetric as l, getTenantUser as lt, McpServerEncodedAuthKind as m, getUpdateTenantUserUrl as mt, ChatHistoryPageEncodedMessagesItemState as n, getRemoveChatParticipantUrl as nt, ChatMessageEncodedState as o, getSearchDocumentationUrl as ot, McpConnectionEncodedAuthState as p, getUpdateTenantUrl as pt, getOrganization as q, ChatHistoryPageEncodedPendingInteractionsItemExecutionLocation as r, getResolveChatToolResultUrl as rt, ChatParticipantEncodedRole as s, getSetChatParticipantUrl as st, ChatHistoryPageEncodedMessagesItemRole as t, getPersonalMcpTestConnectionUrl as tt, ChatUsageUsageLimitsItemScope as u, getTenantUserUsage as ut, UploadChatFileBodyType as v, listChatThreads as vt, getChatThread as w, personalMcpBindBrowser as wt, createTenantUser as x, listThreads as xt, createChatThread as y, listTenants as yt, getGetThreadAttachmentUrl as z, updateTenantUser as zt };
|
package/dist/api.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { type ApiKeyOptions, type ApiOptions, type ApiRequestOptions, AstralBeamApiError, type AstralBeamApiError$1 as AstralBeamApiErrorBody, AstralBeamApiErrorIssuesItem, AstralBeamApiErrorUsageLimit, ChatConfiguration, ChatConfigurationCapabilities, ChatHistoryPageEncoded, ChatHistoryPageEncodedMessagesItem, ChatHistoryPageEncodedMessagesItemPartsItem, ChatHistoryPageEncodedMessagesItemRole, ChatHistoryPageEncodedMessagesItemState, ChatHistoryPageEncodedPendingInteractionsItem, ChatHistoryPageEncodedPendingInteractionsItemExecutionLocation, ChatHistoryPageEncodedThread, ChatHistoryPageEncodedThreadRole, ChatMessageEncoded, ChatMessageEncodedPartsItem, ChatMessageEncodedRole, ChatMessageEncodedState, ChatParticipantEncoded, ChatParticipantEncodedRole, ChatParticipantPage, ChatRunInput, ChatRunInputForwardedProps, ChatSubmissionReceiptEncoded, ChatTenantUserEncoded, ChatTenantUserPage, ChatThreadEncoded, ChatThreadEncodedRole, ChatThreadPage, ChatToolResultReceiptEncoded, ChatToolResultReceiptEncodedUsageLimit, ChatUsage, ChatUsageUsageLimitsItem, ChatUsageUsageLimitsItemMetric, ChatUsageUsageLimitsItemScope, CreateChatThreadInputEncoded, CreateTenantInput, CreateTenantInputMetadata, CreateTenantUserInput, CreateTenantUserInputMetadata, CurrentUser, DeleteChatThreadParams, DirectoryThreadEncoded, DirectoryThreadEncodedParticipantsItem, DirectoryThreadHistoryPage, DirectoryThreadPage, GetChatConfigParams, GetChatUsageParams, GetTenantUserUsageParams, GetThreadAttachmentParams, type JwtOptions, ListChatMessagesParams, ListChatParticipantsParams, ListChatThreadsParams, ListTenantsParams, ListThreadMessagesParams, ListThreadsParams, ListUsersForTenantFilterAdmin, ListUsersForTenantParams, McpConnectionEncoded, McpConnectionEncodedAuthState, McpServerEncoded, McpServerEncodedAuthKind, Organization, PersonalMcpAuthorizeConnection200, PersonalMcpAuthorizeConnection200Attempt, PersonalMcpBindBrowserBody, PersonalMcpCompleteAuthorizationBody, PersonalMcpCreateConnectionBody, PersonalMcpGetCatalog200, PersonalMcpSetHeadersBody, PersonalMcpSetHeadersBodyHeaders, PersonalMcpTestConnection200, RemoveChatParticipantParams, ResolveChatToolResultInputEncoded, ResolveChatToolResultInputEncodedResultsItem, ResolveChatToolResultInputEncodedResultsItemOutcome, SearchChatTenantUsersParams, SetChatParticipantInputEncoded, SetChatParticipantInputEncodedRole, TenantPage, TenantRecordEncoded, TenantRecordEncodedMetadata, TenantUserPage, TenantUserRecordEncoded, TenantUserRecordEncodedMetadata, TenantUserUsage, TenantUserUsageItemsItem, UpdateChatThreadInputEncoded, UpdateTenantInput, UpdateTenantInputMetadata, UpdateTenantUserInput, UpdateTenantUserInputMetadata, UploadChatFileBody, UploadChatFileBodyMetadata, UploadChatFileBodySource, UploadChatFileBodySourceType, UploadChatFileBodyType, UploadedChatFile, createChatThread, createTenant, createTenantUser, deleteChatThread, getChatConfig, getChatThread, getChatUsage, getCreateChatThreadUrl, getCreateTenantUrl, getCreateTenantUserUrl, getCurrentUser, getDeleteChatThreadUrl, getGetChatConfigUrl, getGetChatThreadUrl, getGetChatUsageUrl, getGetCurrentUserUrl, getGetOrganizationUrl, getGetTenantUrl, getGetTenantUserUrl, getGetTenantUserUsageUrl, getGetThreadAttachmentUrl, getListChatMessagesUrl, getListChatParticipantsUrl, getListChatThreadsUrl, getListTenantsUrl, getListThreadMessagesUrl, getListThreadsUrl, getListUsersForTenantUrl, getOrganization, getPersonalMcpAuthorizeConnectionUrl, getPersonalMcpBindBrowserUrl, getPersonalMcpCompleteAuthorizationUrl, getPersonalMcpCreateConnectionUrl, getPersonalMcpDisconnectConnectionUrl, getPersonalMcpGetCatalogUrl, getPersonalMcpSetHeadersUrl, getPersonalMcpTestConnectionUrl, getRemoveChatParticipantUrl, getResolveChatToolResultUrl, getRunChatUrl, getSearchChatTenantUsersUrl, getSetChatParticipantUrl, getTenant, getTenantUser, getTenantUserUsage, getThreadAttachment, getUpdateChatThreadUrl, getUpdateTenantUrl, getUpdateTenantUserUrl, getUploadChatFileUrl, isAstralBeamApiError, listChatMessages, listChatParticipants, listChatThreads, listTenants, listThreadMessages, listThreads, listUsersForTenant, personalMcpAuthorizeConnection, personalMcpBindBrowser, personalMcpCompleteAuthorization, personalMcpCreateConnection, personalMcpDisconnectConnection, personalMcpGetCatalog, personalMcpSetHeaders, personalMcpTestConnection, removeChatParticipant, resolveChatToolResult, runChat, searchChatTenantUsers, setChatParticipant, updateChatThread, updateTenant, updateTenantUser, uploadChatFile };
|
|
1
|
+
import { $ as GetThreadAttachmentParams, $n as personalMcpAuthorizeConnection, $t as getChatConfig, A as ChatToolResultReceiptEncoded, An as getPersonalMcpSetHeadersUrl, At as TenantPage, B as CreateTenantUserInputMetadata, Bn as getTenantUserUsage, Bt as UpdateTenantInputMetadata, C as ChatRunInputForwardedProps, Cn as getOrganization, Ct as ResolveChatToolResultInputEncoded, D as ChatThreadEncoded, Dn as getPersonalMcpCreateConnectionUrl, Dt as SearchDocumentationParams, E as ChatTenantUserPage, En as getPersonalMcpCompleteAuthorizationUrl, Et as SearchChatTenantUsersParams, F as ChatUsageUsageLimitsItemScope, Fn as getSearchChatTenantUsersUrl, Ft as TenantUserRecordEncodedMetadata, G as DirectoryThreadHistoryPage, Gn as getUploadChatFileUrl, Gt as UploadChatFileBodySource, H as DeleteChatThreadParams, Hn as getUpdateChatThreadUrl, Ht as UpdateTenantUserInputMetadata, I as CreateChatThreadInputEncoded, In as getSearchDocumentationUrl, It as TenantUserUsage, J as DocumentationSearchResultsItem, Jn as listChatThreads, Jt as UploadedChatFile, K as DirectoryThreadPage, Kn as listChatMessages, Kt as UploadChatFileBodySourceType, L as CreateTenantInput, Ln as getSetChatParticipantUrl, Lt as TenantUserUsageItemsItem, M as ChatUsage, Mn as getRemoveChatParticipantUrl, Mt as TenantRecordEncodedMetadata, N as ChatUsageUsageLimitsItem, Nn as getResolveChatToolResultUrl, Nt as TenantUserPage, O as ChatThreadEncodedRole, On as getPersonalMcpDisconnectConnectionUrl, Ot as SetChatParticipantInputEncoded, P as ChatUsageUsageLimitsItemMetric, Pn as getRunChatUrl, Pt as TenantUserRecordEncoded, Q as GetThreadAttachmentDelivery, Qn as listUsersForTenant, Qt as deleteChatThread, R as CreateTenantInputMetadata, Rn as getTenant, Rt as UpdateChatThreadInputEncoded, S as ChatRunInput, Sn as getListUsersForTenantUrl, Sr as isAstralBeamApiError, St as RemoveChatParticipantParams, T as ChatTenantUserEncoded, Tn as getPersonalMcpBindBrowserUrl, Tt as ResolveChatToolResultInputEncodedResultsItemOutcome, U as DirectoryThreadEncoded, Un as getUpdateTenantUrl, Ut as UploadChatFileBody, V as CurrentUser, Vn as getThreadAttachment, Vt as UpdateTenantUserInput, W as DirectoryThreadEncodedParticipantsItem, Wn as getUpdateTenantUserUrl, Wt as UploadChatFileBodyMetadata, X as GetChatUsageParams, Xn as listThreadMessages, Xt as createTenant, Y as GetChatConfigParams, Yn as listTenants, Yt as createChatThread, Z as GetTenantUserUsageParams, Zn as listThreads, Zt as createTenantUser, _ as ChatMessageEncodedRole, _n as getListChatParticipantsUrl, _r as ApiKeyOptions, _t as PersonalMcpCreateConnectionBody, a as ChatConfigurationCapabilities, an as getCurrentUser, ar as personalMcpSetHeaders, at as ListThreadsParams, b as ChatParticipantEncodedRole, bn as getListThreadMessagesUrl, br as AstralBeamApiError, bt as PersonalMcpSetHeadersBodyHeaders, c as ChatHistoryPageEncodedMessagesItemPartsItem, cn as getGetChatThreadUrl, cr as resolveChatToolResult, ct as McpConnectionEncoded, d as ChatHistoryPageEncodedPendingInteractionsItem, dn as getGetOrganizationUrl, dr as searchDocumentation, dt as McpServerEncodedAuthKind, en as getChatThread, er as personalMcpBindBrowser, et as ListChatMessagesParams, f as ChatHistoryPageEncodedPendingInteractionsItemExecutionLocation, fn as getGetTenantUrl, fr as setChatParticipant, ft as Organization, g as ChatMessageEncodedPartsItem, gn as getListChatMessagesUrl, gr as uploadChatFile, gt as PersonalMcpCompleteAuthorizationBody, h as ChatMessageEncoded, hn as getGetThreadAttachmentUrl, hr as updateTenantUser, ht as PersonalMcpBindBrowserBody, i as ChatConfiguration, in as getCreateTenantUserUrl, ir as personalMcpGetCatalog, it as ListThreadMessagesParams, j as ChatToolResultReceiptEncodedUsageLimit, jn as getPersonalMcpTestConnectionUrl, jt as TenantRecordEncoded, k as ChatThreadPage, kn as getPersonalMcpGetCatalogUrl, kt as SetChatParticipantInputEncodedRole, l as ChatHistoryPageEncodedMessagesItemRole, ln as getGetChatUsageUrl, lr as runChat, lt as McpConnectionEncodedAuthState, m as ChatHistoryPageEncodedThreadRole, mn as getGetTenantUserUsageUrl, mr as updateTenant, mt as PersonalMcpAuthorizeConnection200Attempt, n as AstralBeamApiErrorIssuesItem, nn as getCreateChatThreadUrl, nr as personalMcpCreateConnection, nt as ListChatThreadsParams, o as ChatHistoryPageEncoded, on as getDeleteChatThreadUrl, or as personalMcpTestConnection, ot as ListUsersForTenantFilterAdmin, p as ChatHistoryPageEncodedThread, pn as getGetTenantUserUrl, pr as updateChatThread, pt as PersonalMcpAuthorizeConnection200, q as DocumentationSearch, qn as listChatParticipants, qt as UploadChatFileBodyType, r as AstralBeamApiErrorUsageLimit, rn as getCreateTenantUrl, rr as personalMcpDisconnectConnection, rt as ListTenantsParams, s as ChatHistoryPageEncodedMessagesItem, sn as getGetChatConfigUrl, sr as removeChatParticipant, st as ListUsersForTenantParams, t as AstralBeamApiError$1, tn as getChatUsage, tr as personalMcpCompleteAuthorization, tt as ListChatParticipantsParams, u as ChatHistoryPageEncodedMessagesItemState, un as getGetCurrentUserUrl, ur as searchChatTenantUsers, ut as McpServerEncoded, v as ChatMessageEncodedState, vn as getListChatThreadsUrl, vr as ApiOptions, vt as PersonalMcpGetCatalog200, w as ChatSubmissionReceiptEncoded, wn as getPersonalMcpAuthorizeConnectionUrl, wt as ResolveChatToolResultInputEncodedResultsItem, x as ChatParticipantPage, xn as getListThreadsUrl, xr as JwtOptions, xt as PersonalMcpTestConnection200, y as ChatParticipantEncoded, yn as getListTenantsUrl, yr as ApiRequestOptions, yt as PersonalMcpSetHeadersBody, z as CreateTenantUserInput, zn as getTenantUser, zt as UpdateTenantInput } from "./index-CI5Jut1h.js";
|
|
2
|
+
export { type ApiKeyOptions, type ApiOptions, type ApiRequestOptions, AstralBeamApiError, type AstralBeamApiError$1 as AstralBeamApiErrorBody, AstralBeamApiErrorIssuesItem, AstralBeamApiErrorUsageLimit, ChatConfiguration, ChatConfigurationCapabilities, ChatHistoryPageEncoded, ChatHistoryPageEncodedMessagesItem, ChatHistoryPageEncodedMessagesItemPartsItem, ChatHistoryPageEncodedMessagesItemRole, ChatHistoryPageEncodedMessagesItemState, ChatHistoryPageEncodedPendingInteractionsItem, ChatHistoryPageEncodedPendingInteractionsItemExecutionLocation, ChatHistoryPageEncodedThread, ChatHistoryPageEncodedThreadRole, ChatMessageEncoded, ChatMessageEncodedPartsItem, ChatMessageEncodedRole, ChatMessageEncodedState, ChatParticipantEncoded, ChatParticipantEncodedRole, ChatParticipantPage, ChatRunInput, ChatRunInputForwardedProps, ChatSubmissionReceiptEncoded, ChatTenantUserEncoded, ChatTenantUserPage, ChatThreadEncoded, ChatThreadEncodedRole, ChatThreadPage, ChatToolResultReceiptEncoded, ChatToolResultReceiptEncodedUsageLimit, ChatUsage, ChatUsageUsageLimitsItem, ChatUsageUsageLimitsItemMetric, ChatUsageUsageLimitsItemScope, CreateChatThreadInputEncoded, CreateTenantInput, CreateTenantInputMetadata, CreateTenantUserInput, CreateTenantUserInputMetadata, CurrentUser, DeleteChatThreadParams, DirectoryThreadEncoded, DirectoryThreadEncodedParticipantsItem, DirectoryThreadHistoryPage, DirectoryThreadPage, DocumentationSearch, DocumentationSearchResultsItem, GetChatConfigParams, GetChatUsageParams, GetTenantUserUsageParams, GetThreadAttachmentDelivery, GetThreadAttachmentParams, type JwtOptions, ListChatMessagesParams, ListChatParticipantsParams, ListChatThreadsParams, ListTenantsParams, ListThreadMessagesParams, ListThreadsParams, ListUsersForTenantFilterAdmin, ListUsersForTenantParams, McpConnectionEncoded, McpConnectionEncodedAuthState, McpServerEncoded, McpServerEncodedAuthKind, Organization, PersonalMcpAuthorizeConnection200, PersonalMcpAuthorizeConnection200Attempt, PersonalMcpBindBrowserBody, PersonalMcpCompleteAuthorizationBody, PersonalMcpCreateConnectionBody, PersonalMcpGetCatalog200, PersonalMcpSetHeadersBody, PersonalMcpSetHeadersBodyHeaders, PersonalMcpTestConnection200, RemoveChatParticipantParams, ResolveChatToolResultInputEncoded, ResolveChatToolResultInputEncodedResultsItem, ResolveChatToolResultInputEncodedResultsItemOutcome, SearchChatTenantUsersParams, SearchDocumentationParams, SetChatParticipantInputEncoded, SetChatParticipantInputEncodedRole, TenantPage, TenantRecordEncoded, TenantRecordEncodedMetadata, TenantUserPage, TenantUserRecordEncoded, TenantUserRecordEncodedMetadata, TenantUserUsage, TenantUserUsageItemsItem, UpdateChatThreadInputEncoded, UpdateTenantInput, UpdateTenantInputMetadata, UpdateTenantUserInput, UpdateTenantUserInputMetadata, UploadChatFileBody, UploadChatFileBodyMetadata, UploadChatFileBodySource, UploadChatFileBodySourceType, UploadChatFileBodyType, UploadedChatFile, createChatThread, createTenant, createTenantUser, deleteChatThread, getChatConfig, getChatThread, getChatUsage, getCreateChatThreadUrl, getCreateTenantUrl, getCreateTenantUserUrl, getCurrentUser, getDeleteChatThreadUrl, getGetChatConfigUrl, getGetChatThreadUrl, getGetChatUsageUrl, getGetCurrentUserUrl, getGetOrganizationUrl, getGetTenantUrl, getGetTenantUserUrl, getGetTenantUserUsageUrl, getGetThreadAttachmentUrl, getListChatMessagesUrl, getListChatParticipantsUrl, getListChatThreadsUrl, getListTenantsUrl, getListThreadMessagesUrl, getListThreadsUrl, getListUsersForTenantUrl, getOrganization, getPersonalMcpAuthorizeConnectionUrl, getPersonalMcpBindBrowserUrl, getPersonalMcpCompleteAuthorizationUrl, getPersonalMcpCreateConnectionUrl, getPersonalMcpDisconnectConnectionUrl, getPersonalMcpGetCatalogUrl, getPersonalMcpSetHeadersUrl, getPersonalMcpTestConnectionUrl, getRemoveChatParticipantUrl, getResolveChatToolResultUrl, getRunChatUrl, getSearchChatTenantUsersUrl, getSearchDocumentationUrl, getSetChatParticipantUrl, getTenant, getTenantUser, getTenantUserUsage, getThreadAttachment, getUpdateChatThreadUrl, getUpdateTenantUrl, getUpdateTenantUserUrl, getUploadChatFileUrl, isAstralBeamApiError, listChatMessages, listChatParticipants, listChatThreads, listTenants, listThreadMessages, listThreads, listUsersForTenant, personalMcpAuthorizeConnection, personalMcpBindBrowser, personalMcpCompleteAuthorization, personalMcpCreateConnection, personalMcpDisconnectConnection, personalMcpGetCatalog, personalMcpSetHeaders, personalMcpTestConnection, removeChatParticipant, resolveChatToolResult, runChat, searchChatTenantUsers, searchDocumentation, setChatParticipant, updateChatThread, updateTenant, updateTenantUser, uploadChatFile };
|
package/dist/api.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as ChatHistoryPageEncodedMessagesItemRole, n as ChatHistoryPageEncodedMessagesItemState, r as ChatHistoryPageEncodedPendingInteractionsItemExecutionLocation, i as ChatHistoryPageEncodedThreadRole, a as ChatMessageEncodedRole, o as ChatMessageEncodedState, s as ChatParticipantEncodedRole, c as ChatThreadEncodedRole, l as ChatUsageUsageLimitsItemMetric, u as ChatUsageUsageLimitsItemScope, d as
|
|
1
|
+
export { t as ChatHistoryPageEncodedMessagesItemRole, n as ChatHistoryPageEncodedMessagesItemState, r as ChatHistoryPageEncodedPendingInteractionsItemExecutionLocation, i as ChatHistoryPageEncodedThreadRole, a as ChatMessageEncodedRole, o as ChatMessageEncodedState, s as ChatParticipantEncodedRole, c as ChatThreadEncodedRole, l as ChatUsageUsageLimitsItemMetric, u as ChatUsageUsageLimitsItemScope, d as GetThreadAttachmentDelivery, f as ListUsersForTenantFilterAdmin, p as McpConnectionEncodedAuthState, m as McpServerEncodedAuthKind, h as ResolveChatToolResultInputEncodedResultsItemOutcome, g as SetChatParticipantInputEncodedRole, _ as UploadChatFileBodySourceType, v as UploadChatFileBodyType, y as createChatThread, b as createTenant, x as createTenantUser, S as deleteChatThread, C as getChatConfig, w as getChatThread, T as getChatUsage, E as getCreateChatThreadUrl, D as getCreateTenantUrl, O as getCreateTenantUserUrl, k as getCurrentUser, A as getDeleteChatThreadUrl, j as getGetChatConfigUrl, M as getGetChatThreadUrl, N as getGetChatUsageUrl, P as getGetCurrentUserUrl, F as getGetOrganizationUrl, I as getGetTenantUrl, L as getGetTenantUserUrl, R as getGetTenantUserUsageUrl, z as getGetThreadAttachmentUrl, B as getListChatMessagesUrl, V as getListChatParticipantsUrl, H as getListChatThreadsUrl, U as getListTenantsUrl, W as getListThreadMessagesUrl, G as getListThreadsUrl, K as getListUsersForTenantUrl, q as getOrganization, J as getPersonalMcpAuthorizeConnectionUrl, Y as getPersonalMcpBindBrowserUrl, X as getPersonalMcpCompleteAuthorizationUrl, Z as getPersonalMcpCreateConnectionUrl, Q as getPersonalMcpDisconnectConnectionUrl, $ as getPersonalMcpGetCatalogUrl, et as getPersonalMcpSetHeadersUrl, tt as getPersonalMcpTestConnectionUrl, nt as getRemoveChatParticipantUrl, rt as getResolveChatToolResultUrl, it as getRunChatUrl, at as getSearchChatTenantUsersUrl, ot as getSearchDocumentationUrl, st as getSetChatParticipantUrl, ct as getTenant, lt as getTenantUser, ut as getTenantUserUsage, dt as getThreadAttachment, ft as getUpdateChatThreadUrl, pt as getUpdateTenantUrl, mt as getUpdateTenantUserUrl, ht as getUploadChatFileUrl, Ht as isAstralBeamApiError, gt as listChatMessages, _t as listChatParticipants, vt as listChatThreads, yt as listTenants, bt as listThreadMessages, xt as listThreads, St as listUsersForTenant, Ct as personalMcpAuthorizeConnection, wt as personalMcpBindBrowser, Tt as personalMcpCompleteAuthorization, Et as personalMcpCreateConnection, Dt as personalMcpDisconnectConnection, Ot as personalMcpGetCatalog, kt as personalMcpSetHeaders, At as personalMcpTestConnection, jt as removeChatParticipant, Mt as resolveChatToolResult, Nt as runChat, Pt as searchChatTenantUsers, Ft as searchDocumentation, It as setChatParticipant, Lt as updateChatThread, Rt as updateTenant, zt as updateTenantUser, Bt as uploadChatFile } from "./api-CzXKVU8Z.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Jn as e,Or as t,Yn as n,qn as r,tt as i,ur as a,wr as o}from"./styles.generated-
|
|
1
|
+
import{Jn as e,Or as t,Yn as n,qn as r,tt as i,ur as a,wr as o}from"./styles.generated-BBScqnSk.js";t();var s=r();function c({className:t,size:n=`default`,...r}){return/* @__PURE__ */ (0,s.jsxs)(`div`,{className:e(`group/native-select relative w-fit has-[select:disabled]:opacity-50`,t),"data-slot":`native-select-wrapper`,"data-size":n,children:[/* @__PURE__ */ (0,s.jsx)(`select`,{"data-slot":`native-select`,"data-size":n,className:`h-8 w-full min-w-0 appearance-none rounded-lg border border-input bg-transparent py-1 pe-8 ps-2.5 text-sm transition-colors outline-none select-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=sm]:py-0.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,...r}),/* @__PURE__ */ (0,s.jsx)(o,{className:`pointer-events-none absolute top-1/2 end-2.5 size-4 -translate-y-1/2 text-muted-foreground select-none`,"aria-hidden":`true`,"data-slot":`native-select-icon`})]})}function l({className:t,...n}){return/* @__PURE__ */ (0,s.jsx)(`option`,{"data-slot":`native-select-option`,className:e(`bg-[Canvas] text-[CanvasText]`,t),...n})}const u=n(`group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!`,{variants:{variant:{default:`bg-primary text-primary-foreground [a]:hover:bg-primary/80`,secondary:`bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80`,destructive:`bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20`,outline:`border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground`,ghost:`hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50`,link:`text-primary underline-offset-4 hover:underline`}},defaultVariants:{variant:`default`}});function d({className:t,variant:n=`default`,render:r,...o}){return i({defaultTagName:`span`,props:a({className:e(u({variant:n}),t)},o),render:r,state:{slot:`badge`,variant:n}})}export{c as n,l as r,d as t};
|