@buildbase/sdk 0.0.56 → 0.0.58

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.
Files changed (35) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +7 -9
  3. package/dist/css/styles.css +1 -1
  4. package/dist/index.cjs +1 -1
  5. package/dist/index.d.ts +7 -0
  6. package/dist/index.mjs +1 -1
  7. package/dist/mcp/index.cjs +1 -1
  8. package/dist/mcp/index.mjs +1 -1
  9. package/dist/react/chunks/{SettingsDialog-VaOW2jtS.mjs → SettingsDialog-B_7I4e7D.mjs} +1 -1
  10. package/dist/react/chunks/{SettingsDialog-CvoDs5eM.cjs → SettingsDialog-Y6Y8MzPi.cjs} +1 -1
  11. package/dist/react/chunks/{SubscriptionDialog-8CagFA_V.cjs → SubscriptionDialog-CwDxl0IL.cjs} +1 -1
  12. package/dist/react/chunks/{SubscriptionDialog-C5EgpXE0.mjs → SubscriptionDialog-D2tAmz-0.mjs} +1 -1
  13. package/dist/react/chunks/react-2_QlCyzs.cjs +2 -0
  14. package/dist/react/chunks/react-DS9JF2Lc.mjs +2 -0
  15. package/dist/react/index.cjs +1 -1
  16. package/dist/react/index.d.ts +79 -17
  17. package/dist/react/index.mjs +1 -1
  18. package/docs/MCP-AND-AGENT-READINESS.md +1 -3
  19. package/package.json +1 -1
  20. package/dist/react/chunks/react-BBY-Vuzr.cjs +0 -2
  21. package/dist/react/chunks/react-CvU8uS25.mjs +0 -2
  22. /package/dist/react/chunks/{ar-CGbuXEeR.cjs → ar-D7uaSur2.cjs} +0 -0
  23. /package/dist/react/chunks/{ar-DnShbYvQ.mjs → ar-DHxjPtfZ.mjs} +0 -0
  24. /package/dist/react/chunks/{de-a1mX2rR4.cjs → de-CBzx6NJq.cjs} +0 -0
  25. /package/dist/react/chunks/{de-C3iuiLAz.mjs → de-D_xfGk1N.mjs} +0 -0
  26. /package/dist/react/chunks/{es-u9vKMeaX.mjs → es-D4-Dv2t5.mjs} +0 -0
  27. /package/dist/react/chunks/{es-D4T7YE7x.cjs → es-WVRwuj-e.cjs} +0 -0
  28. /package/dist/react/chunks/{fr-Bnnz2yJZ.cjs → fr-CEpK52jT.cjs} +0 -0
  29. /package/dist/react/chunks/{fr-DjgpP202.mjs → fr-DurP7qkZ.mjs} +0 -0
  30. /package/dist/react/chunks/{hi-Cu_9iCjb.mjs → hi-7roM83DB.mjs} +0 -0
  31. /package/dist/react/chunks/{hi-B8Mjr8rU.cjs → hi-CVqVRSoy.cjs} +0 -0
  32. /package/dist/react/chunks/{ja-B0eCVKdZ.cjs → ja-BrDXec_v.cjs} +0 -0
  33. /package/dist/react/chunks/{ja-DfJ5WUrG.mjs → ja-DT8x4SW1.mjs} +0 -0
  34. /package/dist/react/chunks/{zh-JjoMmHmK.mjs → zh-CH1Z55Je.mjs} +0 -0
  35. /package/dist/react/chunks/{zh-BnPZ0j4w.cjs → zh-CdCzcD53.cjs} +0 -0
@@ -1,6 +1,5 @@
1
1
  import * as React$1 from 'react';
2
2
  import React__default, { ReactNode } from 'react';
3
- import * as react_jsx_runtime from 'react/jsx-runtime';
4
3
 
5
4
  interface IDocument {
6
5
  _id: string;
@@ -1216,6 +1215,13 @@ declare class AuthApi extends BaseApi {
1216
1215
  requestAuth(params: AuthRequestParams): Promise<AuthRequestResponse>;
1217
1216
  /** Fetch user profile with the given session ID (used after OAuth redirect or from storage). */
1218
1217
  getProfile(sessionId: string, signal?: AbortSignal): Promise<IUser>;
1218
+ /**
1219
+ * Fetch the signed device token bound to this session's device. The SDK calls
1220
+ * this automatically after login/hydration and persists the result, so
1221
+ * `x-device-id` is echoed on every request WITHOUT the app implementor
1222
+ * handling device identity. Returns '' for agent/machine sessions (no device).
1223
+ */
1224
+ getDeviceToken(sessionId: string, signal?: AbortSignal): Promise<string>;
1219
1225
  }
1220
1226
 
1221
1227
  interface IScreenDetail {
@@ -3665,6 +3671,62 @@ declare function useSaaSAuth(): {
3665
3671
  status: AuthStatus;
3666
3672
  };
3667
3673
 
3674
+ type BuildBaseBadgeVariant = 'built-with' | 'powered-by' | 'mark';
3675
+ type BuildBaseBadgeTheme = 'auto' | 'light' | 'neutral' | 'dark';
3676
+ type BuildBaseBadgeSize = 'sm' | 'md' | 'lg';
3677
+
3678
+ /**
3679
+ * "Built with BuildBase" badge.
3680
+ *
3681
+ * A wrapper around the hosted badge image, not a second renderer. The artwork
3682
+ * lives at buildbase.app/badge/v1/ and is drawn once, so the badge in a React
3683
+ * app, the badge in a README, and the badge on a plain HTML footer are the same
3684
+ * bytes. Reimplementing the drawing here would guarantee they eventually drift.
3685
+ *
3686
+ * No provider required. This is a presentational component with no context, no
3687
+ * hooks, and no network calls of its own, so it works in a footer that sits
3688
+ * outside `<BuildBaseProvider>` and in a server component.
3689
+ *
3690
+ * The URLs and the size table live in ./contract.ts, which is pinned by
3691
+ * contract.test.ts. They are a second copy of numbers owned by the badge
3692
+ * service, and a second copy is what drifts.
3693
+ *
3694
+ * @example
3695
+ * ```tsx
3696
+ * import { BuildBaseBadge } from '@buildbase/sdk/react';
3697
+ *
3698
+ * <BuildBaseBadge />
3699
+ * <BuildBaseBadge variant="powered-by" theme="dark" size="sm" />
3700
+ * ```
3701
+ */
3702
+ interface BuildBaseBadgeProps {
3703
+ /** Which badge to show. Defaults to `built-with`. */
3704
+ variant?: BuildBaseBadgeVariant;
3705
+ /**
3706
+ * `auto` carries both palettes and follows the reader's system theme with no
3707
+ * script, which is the right default almost everywhere. Pick a fixed theme
3708
+ * when the surrounding surface does not change with the OS setting.
3709
+ */
3710
+ theme?: BuildBaseBadgeTheme;
3711
+ /** Defaults to `md`. */
3712
+ size?: BuildBaseBadgeSize;
3713
+ /**
3714
+ * Overrides the default alt text. The artwork is an English wordmark, so the
3715
+ * default is not translated; pass your own if your app localises image
3716
+ * descriptions.
3717
+ */
3718
+ alt?: string;
3719
+ /** Applied to the wrapping anchor. */
3720
+ className?: string;
3721
+ /**
3722
+ * Set false to render the image with no link. Only worth doing where the
3723
+ * badge already sits inside another anchor, since nesting anchors is invalid
3724
+ * HTML and browsers recover from it unpredictably.
3725
+ */
3726
+ link?: boolean;
3727
+ }
3728
+ declare const BuildBaseBadge: ({ variant, theme, size, alt, className, link, }: BuildBaseBadgeProps) => React$1.JSX.Element;
3729
+
3668
3730
  interface IProps$1 {
3669
3731
  roles: string[];
3670
3732
  children: React.ReactNode;
@@ -3872,7 +3934,7 @@ interface ConnectedAgentsProps {
3872
3934
  *
3873
3935
  * For a fully custom UI, use the `useConnectedAgents()` hook and `<ConnectMcpGuide />`.
3874
3936
  */
3875
- declare function ConnectedAgents({ className, title, description, disconnectLabel, emptyLabel, showConnectGuide, }: ConnectedAgentsProps): react_jsx_runtime.JSX.Element;
3937
+ declare function ConnectedAgents({ className, title, description, disconnectLabel, emptyLabel, showConnectGuide, }: ConnectedAgentsProps): React$1.JSX.Element;
3876
3938
 
3877
3939
  interface ConnectMcpGuideProps {
3878
3940
  /**
@@ -3894,7 +3956,7 @@ interface ConnectMcpGuideProps {
3894
3956
  *
3895
3957
  * Shown inside `<ConnectedAgents />`; also exported for standalone use.
3896
3958
  */
3897
- declare function ConnectMcpGuide({ config, title, description, className }: ConnectMcpGuideProps): react_jsx_runtime.JSX.Element | null;
3959
+ declare function ConnectMcpGuide({ config, title, description, className }: ConnectMcpGuideProps): React$1.JSX.Element | null;
3898
3960
 
3899
3961
  /** Memoized DevicesApi instance. Recreates only when serverUrl/version change. */
3900
3962
  declare function useDevicesApi(): DevicesApi;
@@ -3955,7 +4017,7 @@ interface DevicesProps {
3955
4017
  *
3956
4018
  * For a fully custom UI, use the `useDevices()` hook.
3957
4019
  */
3958
- declare function Devices({ className, title, description, showRename, showSignOut, showRemove, renameLabel, signOutLabel, removeLabel, emptyLabel, }: DevicesProps): react_jsx_runtime.JSX.Element;
4020
+ declare function Devices({ className, title, description, showRename, showSignOut, showRemove, renameLabel, signOutLabel, removeLabel, emptyLabel, }: DevicesProps): React$1.JSX.Element;
3959
4021
 
3960
4022
  /** Memoized SessionsApi instance. Recreates only when serverUrl/version change. */
3961
4023
  declare function useSessionsApi(): SessionsApi;
@@ -4003,7 +4065,7 @@ interface SessionsProps {
4003
4065
  *
4004
4066
  * For a fully custom UI, use the `useSessions()` hook.
4005
4067
  */
4006
- declare function Sessions({ className, title, description, showSignOut, signOutLabel, emptyLabel, }: SessionsProps): react_jsx_runtime.JSX.Element;
4068
+ declare function Sessions({ className, title, description, showSignOut, signOutLabel, emptyLabel, }: SessionsProps): React$1.JSX.Element;
4007
4069
 
4008
4070
  interface IProps {
4009
4071
  slug: string;
@@ -4632,7 +4694,7 @@ interface CreditStorePageProps {
4632
4694
  * </CreditStorePage>
4633
4695
  * ```
4634
4696
  */
4635
- declare function CreditStorePage({ children, loadingFallback, errorFallback, redirectBaseUrl, }: CreditStorePageProps): react_jsx_runtime.JSX.Element;
4697
+ declare function CreditStorePage({ children, loadingFallback, errorFallback, redirectBaseUrl, }: CreditStorePageProps): React$1.JSX.Element;
4636
4698
 
4637
4699
  interface IWhenCreditsProps {
4638
4700
  /** Content to render when the condition is met. */
@@ -6265,7 +6327,7 @@ interface PricingPageProps {
6265
6327
  * </PricingPage>
6266
6328
  * ```
6267
6329
  */
6268
- declare function PricingPage({ slug, children, loadingFallback, errorFallback, redirectBaseUrl, }: PricingPageProps): react_jsx_runtime.JSX.Element;
6330
+ declare function PricingPage({ slug, children, loadingFallback, errorFallback, redirectBaseUrl, }: PricingPageProps): React$1.JSX.Element;
6269
6331
 
6270
6332
  interface EmptyStateProps {
6271
6333
  /** Icon shown above the text, e.g. `<KeyRound className="h-5 w-5 text-muted-foreground" />` */
@@ -6283,7 +6345,7 @@ interface EmptyStateProps {
6283
6345
  * muted text and an optional action. Use for every "nothing here yet" state
6284
6346
  * so all screens share the same look.
6285
6347
  */
6286
- declare function EmptyState({ icon, title, description, action, className }: EmptyStateProps): react_jsx_runtime.JSX.Element;
6348
+ declare function EmptyState({ icon, title, description, action, className }: EmptyStateProps): React$1.JSX.Element;
6287
6349
 
6288
6350
  interface FullScreenLoaderProps {
6289
6351
  /** Content to display centered on screen. Falls back to a default spinner + message. */
@@ -6312,7 +6374,7 @@ interface FullScreenLoaderProps {
6312
6374
  * ```
6313
6375
  */
6314
6376
  declare const FullScreenLoader: {
6315
- ({ children, message: messageProp, backgroundColor, }: FullScreenLoaderProps): react_jsx_runtime.JSX.Element;
6377
+ ({ children, message: messageProp, backgroundColor, }: FullScreenLoaderProps): React__default.JSX.Element;
6316
6378
  displayName: string;
6317
6379
  };
6318
6380
 
@@ -6326,7 +6388,7 @@ interface LoadingStateProps {
6326
6388
  * Use for in-place refreshes where a skeleton would be too heavy;
6327
6389
  * use `Skeleton`/`SettingSkeleton` for initial screen loads.
6328
6390
  */
6329
- declare function LoadingState({ label, className }: LoadingStateProps): react_jsx_runtime.JSX.Element;
6391
+ declare function LoadingState({ label, className }: LoadingStateProps): React$1.JSX.Element;
6330
6392
 
6331
6393
  interface SectionHeaderProps {
6332
6394
  /** Section title. Pass null to hide (e.g. when a parent already renders it). */
@@ -6344,7 +6406,7 @@ interface SectionHeaderProps {
6344
6406
  * `h3 text-sm font-medium` title + muted `text-sm` description.
6345
6407
  * Renders nothing when both title and description are empty.
6346
6408
  */
6347
- declare function SectionHeader({ title, description, actions, className, titleClassName, }: SectionHeaderProps): react_jsx_runtime.JSX.Element | null;
6409
+ declare function SectionHeader({ title, description, actions, className, titleClassName, }: SectionHeaderProps): React$1.JSX.Element | null;
6348
6410
 
6349
6411
  interface SidebarNavSectionProps {
6350
6412
  /** Uppercase group label shown above the items. */
@@ -6353,7 +6415,7 @@ interface SidebarNavSectionProps {
6353
6415
  className?: string;
6354
6416
  }
6355
6417
  /** Labeled group of sidebar items. */
6356
- declare function SidebarNavSection({ title, children, className }: SidebarNavSectionProps): react_jsx_runtime.JSX.Element;
6418
+ declare function SidebarNavSection({ title, children, className }: SidebarNavSectionProps): React$1.JSX.Element;
6357
6419
  interface SidebarNavItemProps {
6358
6420
  /** Leading icon, e.g. `<UserIcon className="h-3.5 w-3.5" />` */
6359
6421
  icon?: React$1.ReactNode;
@@ -6368,7 +6430,7 @@ interface SidebarNavItemProps {
6368
6430
  * Mobile-friendly by default: comfortable ~44px touch target and a trailing
6369
6431
  * chevron affordance below the `sm` breakpoint; compact rows on desktop.
6370
6432
  */
6371
- declare function SidebarNavItem({ icon, label, active, onClick, className }: SidebarNavItemProps): react_jsx_runtime.JSX.Element;
6433
+ declare function SidebarNavItem({ icon, label, active, onClick, className }: SidebarNavItemProps): React$1.JSX.Element;
6372
6434
 
6373
6435
  type StatusBannerVariant = 'error' | 'success' | 'warning' | 'info';
6374
6436
  interface StatusBannerProps {
@@ -6392,11 +6454,11 @@ interface StatusBannerProps {
6392
6454
  * with an optional Retry/Dismiss action. Use for every inline status box
6393
6455
  * so all screens share the same look.
6394
6456
  */
6395
- declare function StatusBanner({ variant, title, message, description, icon, actionLabel, onAction, actionDisabled, className, }: StatusBannerProps): react_jsx_runtime.JSX.Element;
6457
+ declare function StatusBanner({ variant, title, message, description, icon, actionLabel, onAction, actionDisabled, className, }: StatusBannerProps): React$1.JSX.Element;
6396
6458
 
6397
6459
  declare function WorkspaceSwitcher(props: {
6398
6460
  trigger: (isLoading: boolean, currentWorkspace: IWorkspace | null) => ReactNode;
6399
- }): react_jsx_runtime.JSX.Element;
6461
+ }): React$1.JSX.Element;
6400
6462
 
6401
6463
  interface PushNotificationState {
6402
6464
  /** Browser's Notification.permission: 'default' | 'granted' | 'denied' */
@@ -6501,5 +6563,5 @@ declare class WorkspaceSettingsManager {
6501
6563
  }
6502
6564
  declare const workspaceSettingsManager: WorkspaceSettingsManager;
6503
6565
 
6504
- export { ApiVersion, AuthApi, AuthStatus, BBAction, BBScreen, BBStatus, BB_PARAM, BaseApi, BetaForm, BillingIntervals, SaaSOSProvider as BuildBaseProvider, CURRENCY_DISPLAY, CURRENCY_FLAG, ConnectMcpGuide, ConnectedAgents, ConnectedAgentsApi, CreditActionsProvider, CreditBalance, CreditBalanceContextProvider, CreditBucketSource, CreditBucketStatus, CreditStorePage, CreditTransactionType, DEFAULT_ROLE_PERMISSIONS, Devices, DevicesApi, DunningState, EmptyState, EventEmitter, FullScreenLoader, InvoiceStatuses, LoadingState, PLAN_CURRENCY_CODES, PLAN_CURRENCY_OPTIONS, PUSH_SERVICE_WORKER_SCRIPT, Permission, PricingPage, PushApi, PushNotificationProvider, QuotaUsageContextProvider, SDKEvent, SETTINGS_SCREENS, SUPPORTED_LOCALES, SaaSOSProvider, SectionHeader, Sessions, SessionsApi, SettingsApi, SettingsScreen, SidebarNavItem, SidebarNavSection, StatusBanner, SubscriptionContextProvider, SubscriptionItemType, SubscriptionStatus, UserApi, WhenAuthenticated, WhenCreditsAvailable, WhenCreditsExhausted, WhenCreditsLow, WhenNoSubscription, WhenNotTrialing, WhenPermission, WhenQuotaAvailable, WhenQuotaExhausted, WhenQuotaOverage, WhenQuotaThreshold, WhenRoles, WhenSubscription, WhenSubscriptionToPlans, WhenTrialEnding, WhenTrialing, WhenUnauthenticated, WhenUserFeatureDisabled, WhenUserFeatureEnabled, WhenWorkspaceFeatureDisabled, WhenWorkspaceFeatureEnabled, WhenWorkspaceRoles, WorkspaceApi, WorkspaceSwitcher, calculateBillableSeats, calculateSeatOverageCents, calculateTotalSubscriptionCents, cleanBBParams, clearAuthIntent, consumeAuthIntent, createBBUrl, createCheckoutRedirectUrls, createCreditPurchaseRedirectUrls, eventEmitter, fillMcpTemplate, formatCents, formatMinorAmountIntl, formatOverageRate, formatOverageRateWithLabel, formatQuotaIncludedOverage, formatQuotaWithPrice, getAvailableCurrenciesFromPlans, getBasePriceCents, getBillingIntervalAndCurrencyFromPriceId, getCurrencyDecimals, getCurrencyFlag, getCurrencySymbol, getDisplayCurrency, getPerSeatPriceCents, getPricingVariant, getQuotaDisplayValue, getQuotaDisplayWithVariant, getQuotaOverageCents, getQuotaUnitLabelFromName, getSeatPricing, getStripePriceIdForInterval, hasPermission, invalidateCreditBalance, invalidateQuotaUsage, invalidateSubscription, isZeroDecimalCurrency, mcpServerKey, mergeUIConfig, minorAmountToDisplay, readBBParams, resolveMaxUsers, resolvePermissions, safeRedirect, saveAuthIntent, useAllQuotaUsage, useBillingPortal, useCancelSubscription, useConnectedAgents, useConnectedAgentsApi, useConsumeCredits, useCreateCheckoutSession, useCreditBalance, useCreditBalanceContext, useCreditPackages, useCreditTransactions, useDevices, useDevicesApi, useExpiringCredits, useFullScreenLoader, useInvoice, useInvoices, useMcpConnection, usePermissions, usePlanGroup, usePlanGroupVersions, usePublicCreditPackages, usePublicPlanGroupVersion, usePublicPlans, usePurchaseCredits, usePushNotifications, useQuotaUsageContext, useQuotaUsageStatus, useRecordUsage, useResumeSubscription, useSaaSAuth, useSaaSOs, useSaaSSettings, useSaaSWorkspaces, useSeatStatus, useSessions, useSessionsApi, useSubscription, useSubscriptionContext, useSubscriptionManagement, useTranslation, useTrialStatus, useUIConfig, useUIVisibility, useUpdateSubscription, useUsageLogs, useUserAttributes, useUserFeatures, validateInvite, validateRedirectUrl, workspaceSettingsManager };
6505
- export type { BBActionType, BBScreenType, BBStatusType, BetaFormData, BetaFormResponse, BillingInterval, SaaSOSProviderProps as BuildBaseProviderProps, CheckoutResult, ConnectMcpGuideProps, ConnectedAgentsProps, CreditActionsDetails, CreditBalanceContextValue, CreditBalanceDetails, CreditBucketSourceType, CreditBucketStatusType, CreditStorePageDetails, CreditTransactionTypeValue, DevicesProps, DunningStateType, EmptyStateProps, EventData, EventType, FormatQuotaWithPriceOptions, FullScreenLoaderProps, GetCheckoutStripeParams, IAllQuotaUsageResponse, IBaseApiConfig, IBasePricing, IBetaConfig, ICheckoutSessionRequest, ICheckoutSessionResponse, ICheckoutStripeOptions, IConnectedAgent, IConsumeCreditsRequest, IConsumeCreditsResponse, ICreditBalance, ICreditBucket, ICreditBucketsQuery, ICreditBucketsResponse, ICreditPackage, ICreditPackagePricingVariant, ICreditPurchaseRequest, ICreditPurchaseResponse, ICreditTransaction, ICreditTransactionsQuery, ICreditTransactionsResponse, IDeviceView, IEventCallbacks, IExpiringCreditsResponse, IInvoice, IInvoiceListResponse, IInvoiceResponse, IIpInfoLite, IOsConfig, IOsState, IPlan, IPlanGroup, IPlanGroupInfo, IPlanGroupLatestVersion, IPlanGroupResponse, IPlanGroupVersion, IPlanGroupVersionWithPlans, IPlanGroupVersionsResponse, IPlanVersion, IPlanVersionSummary, IPlanVersionWithPlan, IPricingVariant, IPublicCreditPackage, IPublicCreditPackagesResponse, IPublicPlanItem, IPublicPlanItemCategory, IPublicPlanVersion, IPublicPlansResponse, IQuotaByInterval, IQuotaIntervalValue, IQuotaOveragePriceIdsByInterval, IQuotaOveragesByInterval, IQuotaUsageStatus, IQuotaUsageStatusResponse, IRecordUsageRequest, IRecordUsageResponse, ISessionView, ISettings, IStripePricesByInterval, ISubscription, ISubscriptionItem, ISubscriptionResponse, ISubscriptionUpdateRequest, ISubscriptionUpdateResponse, IUsageLogEntry, IUsageLogsQuery, IUsageLogsResponse, IUser, IWorkspace, InviteBlockReason, InviteValidation, InvoiceStatus, InvoiceStatusType, LoadingProps, LoadingStateProps, MaxUsersConfig, McpClientGuide, McpConnectionConfig, NotificationData, NotificationEvent, NotificationResult, OnWorkspaceChangeParams, PartialSDKMessages, PermissionContext, PermissionKey, PlanVersionWithPricingVariants, PricingPageDetails, PricingPageProps, QuotaDisplayValue, QuotaDisplayWithOverage, QuotaUsageContextValue, RedirectValidationOptions, RolePermissionMap, SDKLocale, SDKMessages, SDKUIConfig, SaaSOSProviderProps, SeatStatus, SectionHeaderProps, SessionsProps, SettingsManagerState, SidebarNavItemProps, SidebarNavSectionProps, StatusBannerProps, StatusBannerVariant, SubscriptionContextValue, SubscriptionItemTypeValue, SubscriptionStatusType, TranslationKey, TrialStatus, UseConnectedAgents, UseDevices, UseSessions, UserCreatedEventData, UserUpdatedEventData, WorkspaceChangedEventData, WorkspaceCreatedEventData, WorkspaceDeletedEventData, WorkspaceSettingsSection, WorkspaceUpdatedEventData, WorkspaceUserAddedEventData, WorkspaceUserRemovedEventData, WorkspaceUserRoleChangedEventData };
6566
+ export { ApiVersion, AuthApi, AuthStatus, BBAction, BBScreen, BBStatus, BB_PARAM, BaseApi, BetaForm, BillingIntervals, BuildBaseBadge, SaaSOSProvider as BuildBaseProvider, CURRENCY_DISPLAY, CURRENCY_FLAG, ConnectMcpGuide, ConnectedAgents, ConnectedAgentsApi, CreditActionsProvider, CreditBalance, CreditBalanceContextProvider, CreditBucketSource, CreditBucketStatus, CreditStorePage, CreditTransactionType, DEFAULT_ROLE_PERMISSIONS, Devices, DevicesApi, DunningState, EmptyState, EventEmitter, FullScreenLoader, InvoiceStatuses, LoadingState, PLAN_CURRENCY_CODES, PLAN_CURRENCY_OPTIONS, PUSH_SERVICE_WORKER_SCRIPT, Permission, PricingPage, PushApi, PushNotificationProvider, QuotaUsageContextProvider, SDKEvent, SETTINGS_SCREENS, SUPPORTED_LOCALES, SaaSOSProvider, SectionHeader, Sessions, SessionsApi, SettingsApi, SettingsScreen, SidebarNavItem, SidebarNavSection, StatusBanner, SubscriptionContextProvider, SubscriptionItemType, SubscriptionStatus, UserApi, WhenAuthenticated, WhenCreditsAvailable, WhenCreditsExhausted, WhenCreditsLow, WhenNoSubscription, WhenNotTrialing, WhenPermission, WhenQuotaAvailable, WhenQuotaExhausted, WhenQuotaOverage, WhenQuotaThreshold, WhenRoles, WhenSubscription, WhenSubscriptionToPlans, WhenTrialEnding, WhenTrialing, WhenUnauthenticated, WhenUserFeatureDisabled, WhenUserFeatureEnabled, WhenWorkspaceFeatureDisabled, WhenWorkspaceFeatureEnabled, WhenWorkspaceRoles, WorkspaceApi, WorkspaceSwitcher, calculateBillableSeats, calculateSeatOverageCents, calculateTotalSubscriptionCents, cleanBBParams, clearAuthIntent, consumeAuthIntent, createBBUrl, createCheckoutRedirectUrls, createCreditPurchaseRedirectUrls, eventEmitter, fillMcpTemplate, formatCents, formatMinorAmountIntl, formatOverageRate, formatOverageRateWithLabel, formatQuotaIncludedOverage, formatQuotaWithPrice, getAvailableCurrenciesFromPlans, getBasePriceCents, getBillingIntervalAndCurrencyFromPriceId, getCurrencyDecimals, getCurrencyFlag, getCurrencySymbol, getDisplayCurrency, getPerSeatPriceCents, getPricingVariant, getQuotaDisplayValue, getQuotaDisplayWithVariant, getQuotaOverageCents, getQuotaUnitLabelFromName, getSeatPricing, getStripePriceIdForInterval, hasPermission, invalidateCreditBalance, invalidateQuotaUsage, invalidateSubscription, isZeroDecimalCurrency, mcpServerKey, mergeUIConfig, minorAmountToDisplay, readBBParams, resolveMaxUsers, resolvePermissions, safeRedirect, saveAuthIntent, useAllQuotaUsage, useBillingPortal, useCancelSubscription, useConnectedAgents, useConnectedAgentsApi, useConsumeCredits, useCreateCheckoutSession, useCreditBalance, useCreditBalanceContext, useCreditPackages, useCreditTransactions, useDevices, useDevicesApi, useExpiringCredits, useFullScreenLoader, useInvoice, useInvoices, useMcpConnection, usePermissions, usePlanGroup, usePlanGroupVersions, usePublicCreditPackages, usePublicPlanGroupVersion, usePublicPlans, usePurchaseCredits, usePushNotifications, useQuotaUsageContext, useQuotaUsageStatus, useRecordUsage, useResumeSubscription, useSaaSAuth, useSaaSOs, useSaaSSettings, useSaaSWorkspaces, useSeatStatus, useSessions, useSessionsApi, useSubscription, useSubscriptionContext, useSubscriptionManagement, useTranslation, useTrialStatus, useUIConfig, useUIVisibility, useUpdateSubscription, useUsageLogs, useUserAttributes, useUserFeatures, validateInvite, validateRedirectUrl, workspaceSettingsManager };
6567
+ export type { BBActionType, BBScreenType, BBStatusType, BetaFormData, BetaFormResponse, BillingInterval, BuildBaseBadgeProps, BuildBaseBadgeSize, BuildBaseBadgeTheme, BuildBaseBadgeVariant, SaaSOSProviderProps as BuildBaseProviderProps, CheckoutResult, ConnectMcpGuideProps, ConnectedAgentsProps, CreditActionsDetails, CreditBalanceContextValue, CreditBalanceDetails, CreditBucketSourceType, CreditBucketStatusType, CreditStorePageDetails, CreditTransactionTypeValue, DevicesProps, DunningStateType, EmptyStateProps, EventData, EventType, FormatQuotaWithPriceOptions, FullScreenLoaderProps, GetCheckoutStripeParams, IAllQuotaUsageResponse, IBaseApiConfig, IBasePricing, IBetaConfig, ICheckoutSessionRequest, ICheckoutSessionResponse, ICheckoutStripeOptions, IConnectedAgent, IConsumeCreditsRequest, IConsumeCreditsResponse, ICreditBalance, ICreditBucket, ICreditBucketsQuery, ICreditBucketsResponse, ICreditPackage, ICreditPackagePricingVariant, ICreditPurchaseRequest, ICreditPurchaseResponse, ICreditTransaction, ICreditTransactionsQuery, ICreditTransactionsResponse, IDeviceView, IEventCallbacks, IExpiringCreditsResponse, IInvoice, IInvoiceListResponse, IInvoiceResponse, IIpInfoLite, IOsConfig, IOsState, IPlan, IPlanGroup, IPlanGroupInfo, IPlanGroupLatestVersion, IPlanGroupResponse, IPlanGroupVersion, IPlanGroupVersionWithPlans, IPlanGroupVersionsResponse, IPlanVersion, IPlanVersionSummary, IPlanVersionWithPlan, IPricingVariant, IPublicCreditPackage, IPublicCreditPackagesResponse, IPublicPlanItem, IPublicPlanItemCategory, IPublicPlanVersion, IPublicPlansResponse, IQuotaByInterval, IQuotaIntervalValue, IQuotaOveragePriceIdsByInterval, IQuotaOveragesByInterval, IQuotaUsageStatus, IQuotaUsageStatusResponse, IRecordUsageRequest, IRecordUsageResponse, ISessionView, ISettings, IStripePricesByInterval, ISubscription, ISubscriptionItem, ISubscriptionResponse, ISubscriptionUpdateRequest, ISubscriptionUpdateResponse, IUsageLogEntry, IUsageLogsQuery, IUsageLogsResponse, IUser, IWorkspace, InviteBlockReason, InviteValidation, InvoiceStatus, InvoiceStatusType, LoadingProps, LoadingStateProps, MaxUsersConfig, McpClientGuide, McpConnectionConfig, NotificationData, NotificationEvent, NotificationResult, OnWorkspaceChangeParams, PartialSDKMessages, PermissionContext, PermissionKey, PlanVersionWithPricingVariants, PricingPageDetails, PricingPageProps, QuotaDisplayValue, QuotaDisplayWithOverage, QuotaUsageContextValue, RedirectValidationOptions, RolePermissionMap, SDKLocale, SDKMessages, SDKUIConfig, SaaSOSProviderProps, SeatStatus, SectionHeaderProps, SessionsProps, SettingsManagerState, SidebarNavItemProps, SidebarNavSectionProps, StatusBannerProps, StatusBannerVariant, SubscriptionContextValue, SubscriptionItemTypeValue, SubscriptionStatusType, TranslationKey, TrialStatus, UseConnectedAgents, UseDevices, UseSessions, UserCreatedEventData, UserUpdatedEventData, WorkspaceChangedEventData, WorkspaceCreatedEventData, WorkspaceDeletedEventData, WorkspaceSettingsSection, WorkspaceUpdatedEventData, WorkspaceUserAddedEventData, WorkspaceUserRemovedEventData, WorkspaceUserRoleChangedEventData };
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{aP as ApiVersion,aQ as AuthApi,aR as AuthStatus,o as BBAction,aS as BBScreen,p as BBStatus,aT as BB_PARAM,aU as BaseApi,aV as BetaForm,ag as BillingIntervals,aW as BuildBaseProvider,aX as CURRENCY_DISPLAY,aY as CURRENCY_FLAG,aZ as ConnectMcpGuide,C as ConnectedAgents,a_ as ConnectedAgentsApi,a$ as CreditActionsProvider,b0 as CreditBalance,b1 as CreditBalanceContextProvider,b2 as CreditBucketSource,b3 as CreditBucketStatus,b4 as CreditStorePage,y as CreditTransactionType,b5 as DEFAULT_ROLE_PERMISSIONS,R as Devices,b6 as DevicesApi,av as DunningState,E as EmptyState,b7 as EventEmitter,b8 as FullScreenLoader,ae as InvoiceStatuses,L as LoadingState,b9 as PLAN_CURRENCY_CODES,ba as PLAN_CURRENCY_OPTIONS,bb as PUSH_SERVICE_WORKER_SCRIPT,P as Permission,bc as PricingPage,bd as PushApi,be as PushNotificationProvider,bf as QuotaUsageContextProvider,bg as SDKEvent,aM as SETTINGS_SCREENS,bh as SUPPORTED_LOCALES,aW as SaaSOSProvider,s as SectionHeader,T as Sessions,bi as SessionsApi,bj as SettingsApi,aF as SettingsScreen,aH as SidebarNavItem,aG as SidebarNavSection,r as StatusBanner,bk as SubscriptionContextProvider,ah as SubscriptionItemType,ak as SubscriptionStatus,bl as UserApi,bm as WhenAuthenticated,bn as WhenCreditsAvailable,bo as WhenCreditsExhausted,bp as WhenCreditsLow,bq as WhenNoSubscription,br as WhenNotTrialing,bs as WhenPermission,bt as WhenQuotaAvailable,bu as WhenQuotaExhausted,bv as WhenQuotaOverage,bw as WhenQuotaThreshold,bx as WhenRoles,by as WhenSubscription,bz as WhenSubscriptionToPlans,bA as WhenTrialEnding,bB as WhenTrialing,bC as WhenUnauthenticated,bD as WhenUserFeatureDisabled,bE as WhenUserFeatureEnabled,bF as WhenWorkspaceFeatureDisabled,bG as WhenWorkspaceFeatureEnabled,bH as WhenWorkspaceRoles,bI as WorkspaceApi,bJ as WorkspaceSwitcher,bK as calculateBillableSeats,bL as calculateSeatOverageCents,bM as calculateTotalSubscriptionCents,bN as cleanBBParams,bO as clearAuthIntent,bP as consumeAuthIntent,bQ as createBBUrl,ax as createCheckoutRedirectUrls,v as createCreditPurchaseRedirectUrls,bR as eventEmitter,bS as fillMcpTemplate,bT as formatCents,f as formatMinorAmountIntl,bU as formatOverageRate,bV as formatOverageRateWithLabel,bW as formatQuotaIncludedOverage,bX as formatQuotaWithPrice,aO as getAvailableCurrenciesFromPlans,as as getBasePriceCents,ar as getBillingIntervalAndCurrencyFromPriceId,e as getCurrencyDecimals,a0 as getCurrencyFlag,g as getCurrencySymbol,bY as getDisplayCurrency,au as getPerSeatPriceCents,aN as getPricingVariant,aj as getQuotaDisplayValue,ai as getQuotaDisplayWithVariant,aB as getQuotaOverageCents,bZ as getQuotaUnitLabelFromName,at as getSeatPricing,aw as getStripePriceIdForInterval,b_ as hasPermission,q as invalidateCreditBalance,b$ as invalidateQuotaUsage,ay as invalidateSubscription,c0 as isZeroDecimalCurrency,c1 as mcpServerKey,aJ as mergeUIConfig,c2 as minorAmountToDisplay,c3 as readBBParams,c4 as resolveMaxUsers,c5 as resolvePermissions,x as safeRedirect,c6 as saveAuthIntent,c7 as useAllQuotaUsage,ap as useBillingPortal,an as useCancelSubscription,c8 as useConnectedAgents,c9 as useConnectedAgentsApi,ca as useConsumeCredits,am as useCreateCheckoutSession,cb as useCreditBalance,j as useCreditBalanceContext,k as useCreditPackages,m as useCreditTransactions,cc as useDevices,cd as useDevicesApi,l as useExpiringCredits,ce as useFullScreenLoader,cf as useInvoice,ac as useInvoices,cg as useMcpConnection,h as usePermissions,ch as usePlanGroup,aq as usePlanGroupVersions,ci as usePublicCreditPackages,cj as usePublicPlanGroupVersion,ck as usePublicPlans,n as usePurchaseCredits,a7 as usePushNotifications,az as useQuotaUsageContext,cl as useQuotaUsageStatus,cm as useRecordUsage,ao as useResumeSubscription,aC as useSaaSAuth,cn as useSaaSOs,A as useSaaSSettings,z as useSaaSWorkspaces,aD as useSeatStatus,co as useSessions,cp as useSessionsApi,cq as useSubscription,aA as useSubscriptionContext,al as useSubscriptionManagement,u as useTranslation,cr as useTrialStatus,aI as useUIConfig,i as useUIVisibility,cs as useUpdateSubscription,ct as useUsageLogs,cu as useUserAttributes,cv as useUserFeatures,cw as validateInvite,cx as validateRedirectUrl,w as workspaceSettingsManager}from"./chunks/react-CvU8uS25.mjs";import"react/jsx-runtime";import"react";import"clsx";import"tailwind-merge";import"intl-messageformat";import"@hookform/resolvers/zod";import"react-hook-form";import"@radix-ui/react-slot";import"class-variance-authority";import"lucide-react";import"@radix-ui/react-label";import"zod";import"@radix-ui/react-avatar";import"@radix-ui/react-dialog";import"@radix-ui/react-icons";import"@radix-ui/react-radio-group";import"@radix-ui/react-scroll-area";import"@radix-ui/react-separator";import"@radix-ui/react-accordion";import"@radix-ui/react-alert-dialog";
2
+ export{aP as ApiVersion,aQ as AuthApi,aR as AuthStatus,o as BBAction,aS as BBScreen,p as BBStatus,aT as BB_PARAM,aU as BaseApi,aV as BetaForm,ag as BillingIntervals,aW as BuildBaseBadge,aX as BuildBaseProvider,aY as CURRENCY_DISPLAY,aZ as CURRENCY_FLAG,a_ as ConnectMcpGuide,C as ConnectedAgents,a$ as ConnectedAgentsApi,b0 as CreditActionsProvider,b1 as CreditBalance,b2 as CreditBalanceContextProvider,b3 as CreditBucketSource,b4 as CreditBucketStatus,b5 as CreditStorePage,y as CreditTransactionType,b6 as DEFAULT_ROLE_PERMISSIONS,R as Devices,b7 as DevicesApi,av as DunningState,E as EmptyState,b8 as EventEmitter,b9 as FullScreenLoader,ae as InvoiceStatuses,L as LoadingState,ba as PLAN_CURRENCY_CODES,bb as PLAN_CURRENCY_OPTIONS,bc as PUSH_SERVICE_WORKER_SCRIPT,P as Permission,bd as PricingPage,be as PushApi,bf as PushNotificationProvider,bg as QuotaUsageContextProvider,bh as SDKEvent,aM as SETTINGS_SCREENS,bi as SUPPORTED_LOCALES,aX as SaaSOSProvider,s as SectionHeader,T as Sessions,bj as SessionsApi,bk as SettingsApi,aF as SettingsScreen,aH as SidebarNavItem,aG as SidebarNavSection,r as StatusBanner,bl as SubscriptionContextProvider,ah as SubscriptionItemType,ak as SubscriptionStatus,bm as UserApi,bn as WhenAuthenticated,bo as WhenCreditsAvailable,bp as WhenCreditsExhausted,bq as WhenCreditsLow,br as WhenNoSubscription,bs as WhenNotTrialing,bt as WhenPermission,bu as WhenQuotaAvailable,bv as WhenQuotaExhausted,bw as WhenQuotaOverage,bx as WhenQuotaThreshold,by as WhenRoles,bz as WhenSubscription,bA as WhenSubscriptionToPlans,bB as WhenTrialEnding,bC as WhenTrialing,bD as WhenUnauthenticated,bE as WhenUserFeatureDisabled,bF as WhenUserFeatureEnabled,bG as WhenWorkspaceFeatureDisabled,bH as WhenWorkspaceFeatureEnabled,bI as WhenWorkspaceRoles,bJ as WorkspaceApi,bK as WorkspaceSwitcher,bL as calculateBillableSeats,bM as calculateSeatOverageCents,bN as calculateTotalSubscriptionCents,bO as cleanBBParams,bP as clearAuthIntent,bQ as consumeAuthIntent,bR as createBBUrl,ax as createCheckoutRedirectUrls,v as createCreditPurchaseRedirectUrls,bS as eventEmitter,bT as fillMcpTemplate,bU as formatCents,f as formatMinorAmountIntl,bV as formatOverageRate,bW as formatOverageRateWithLabel,bX as formatQuotaIncludedOverage,bY as formatQuotaWithPrice,aO as getAvailableCurrenciesFromPlans,as as getBasePriceCents,ar as getBillingIntervalAndCurrencyFromPriceId,e as getCurrencyDecimals,a0 as getCurrencyFlag,g as getCurrencySymbol,bZ as getDisplayCurrency,au as getPerSeatPriceCents,aN as getPricingVariant,aj as getQuotaDisplayValue,ai as getQuotaDisplayWithVariant,aB as getQuotaOverageCents,b_ as getQuotaUnitLabelFromName,at as getSeatPricing,aw as getStripePriceIdForInterval,b$ as hasPermission,q as invalidateCreditBalance,c0 as invalidateQuotaUsage,ay as invalidateSubscription,c1 as isZeroDecimalCurrency,c2 as mcpServerKey,aJ as mergeUIConfig,c3 as minorAmountToDisplay,c4 as readBBParams,c5 as resolveMaxUsers,c6 as resolvePermissions,x as safeRedirect,c7 as saveAuthIntent,c8 as useAllQuotaUsage,ap as useBillingPortal,an as useCancelSubscription,c9 as useConnectedAgents,ca as useConnectedAgentsApi,cb as useConsumeCredits,am as useCreateCheckoutSession,cc as useCreditBalance,j as useCreditBalanceContext,k as useCreditPackages,m as useCreditTransactions,cd as useDevices,ce as useDevicesApi,l as useExpiringCredits,cf as useFullScreenLoader,cg as useInvoice,ac as useInvoices,ch as useMcpConnection,h as usePermissions,ci as usePlanGroup,aq as usePlanGroupVersions,cj as usePublicCreditPackages,ck as usePublicPlanGroupVersion,cl as usePublicPlans,n as usePurchaseCredits,a7 as usePushNotifications,az as useQuotaUsageContext,cm as useQuotaUsageStatus,cn as useRecordUsage,ao as useResumeSubscription,aC as useSaaSAuth,co as useSaaSOs,A as useSaaSSettings,z as useSaaSWorkspaces,aD as useSeatStatus,cp as useSessions,cq as useSessionsApi,cr as useSubscription,aA as useSubscriptionContext,al as useSubscriptionManagement,u as useTranslation,cs as useTrialStatus,aI as useUIConfig,i as useUIVisibility,ct as useUpdateSubscription,cu as useUsageLogs,cv as useUserAttributes,cw as useUserFeatures,cx as validateInvite,cy as validateRedirectUrl,w as workspaceSettingsManager}from"./chunks/react-DS9JF2Lc.mjs";import"react/jsx-runtime";import"react";import"clsx";import"tailwind-merge";import"intl-messageformat";import"@hookform/resolvers/zod";import"react-hook-form";import"@radix-ui/react-slot";import"class-variance-authority";import"lucide-react";import"@radix-ui/react-label";import"zod";import"@radix-ui/react-avatar";import"@radix-ui/react-dialog";import"@radix-ui/react-icons";import"@radix-ui/react-radio-group";import"@radix-ui/react-scroll-area";import"@radix-ui/react-separator";import"@radix-ui/react-accordion";import"@radix-ui/react-alert-dialog";
@@ -789,9 +789,7 @@ const mcp = createMcpHandler({
789
789
  serverInfo: { name: 'my-app', version: '1.0.0' },
790
790
  auth: buildbaseAuth({ secret, resource }), // or your own auth.verify
791
791
  builtinTools: 'readonly',
792
- tools: [
793
- /* … */
794
- ],
792
+ tools: [/* … */],
795
793
  });
796
794
 
797
795
  const agentConfig: AgentReadyConfig = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buildbase/sdk",
3
- "version": "0.0.56",
3
+ "version": "0.0.58",
4
4
  "type": "module",
5
5
  "description": "A SDK for Buildbase",
6
6
  "main": "dist/index.cjs",