@buildbase/sdk 0.0.71 → 0.0.74

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 (50) hide show
  1. package/CHANGELOG.md +106 -0
  2. package/README.md +43 -10
  3. package/dist/cli.mjs +2 -0
  4. package/dist/css/styles.css +1 -1
  5. package/dist/index.cjs +1 -1
  6. package/dist/index.d.ts +103 -2
  7. package/dist/index.mjs +1 -1
  8. package/dist/mcp/index.cjs +1 -1
  9. package/dist/mcp/index.d.ts +30 -0
  10. package/dist/mcp/index.mjs +1 -1
  11. package/dist/react/chunks/SettingsDialog-C0ocJMBA.cjs +2 -0
  12. package/dist/react/chunks/SettingsDialog-CWrmSyKV.mjs +2 -0
  13. package/dist/react/chunks/{SubscriptionDialog-Bkue_qyM.cjs → SubscriptionDialog-CLh4zW9Y.cjs} +1 -1
  14. package/dist/react/chunks/{SubscriptionDialog-ZjdyTmxn.mjs → SubscriptionDialog-sH0cQdPD.mjs} +1 -1
  15. package/dist/react/chunks/react-BBSVsY3n.cjs +2 -0
  16. package/dist/react/chunks/react-CNHfoa5L.mjs +2 -0
  17. package/dist/react/index.cjs +1 -1
  18. package/dist/react/index.d.ts +130 -8
  19. package/dist/react/index.mjs +1 -1
  20. package/dist/server/browser.cjs +1 -0
  21. package/dist/server/browser.mjs +1 -0
  22. package/dist/server/index.cjs +1 -0
  23. package/dist/server/index.d.ts +556 -0
  24. package/dist/server/index.mjs +1 -0
  25. package/dist/server/next/index.cjs +1 -0
  26. package/dist/server/next/index.d.ts +156 -0
  27. package/dist/server/next/index.mjs +1 -0
  28. package/dist/tracking/index.cjs +1 -1
  29. package/dist/tracking/index.d.ts +205 -8
  30. package/dist/tracking/index.mjs +1 -1
  31. package/docs/SERVER-CONTENT.md +297 -0
  32. package/package.json +65 -5
  33. package/dist/react/chunks/SettingsDialog-D5lLHG9-.cjs +0 -2
  34. package/dist/react/chunks/SettingsDialog-DiTnAWFt.mjs +0 -2
  35. package/dist/react/chunks/react-BIZcTNos.mjs +0 -2
  36. package/dist/react/chunks/react-DM1nGVlR.cjs +0 -2
  37. /package/dist/react/chunks/{ar-D_agqxXa.cjs → ar-CRVhjpVE.cjs} +0 -0
  38. /package/dist/react/chunks/{ar-By_nJtJ6.mjs → ar-DFPDdu2U.mjs} +0 -0
  39. /package/dist/react/chunks/{de-D7j-9T8u.cjs → de-BGhzn711.cjs} +0 -0
  40. /package/dist/react/chunks/{de-CQW2yLLr.mjs → de-Bqi8scew.mjs} +0 -0
  41. /package/dist/react/chunks/{es-CggBj8dc.mjs → es-D_Eqhob3.mjs} +0 -0
  42. /package/dist/react/chunks/{es-DYtfnqFg.cjs → es-DyrMaeUp.cjs} +0 -0
  43. /package/dist/react/chunks/{fr-Bu6_05LA.cjs → fr-C0SkloRr.cjs} +0 -0
  44. /package/dist/react/chunks/{fr-CbvudRKC.mjs → fr-DkZpFQ1Q.mjs} +0 -0
  45. /package/dist/react/chunks/{hi-dKtSIE95.cjs → hi-B9TK87T8.cjs} +0 -0
  46. /package/dist/react/chunks/{hi-DrJIuj_0.mjs → hi-DrTcPkiY.mjs} +0 -0
  47. /package/dist/react/chunks/{ja-BtZsSYAE.mjs → ja-Dgahn--0.mjs} +0 -0
  48. /package/dist/react/chunks/{ja-6AwwCaS_.cjs → ja-LjzlAhAT.cjs} +0 -0
  49. /package/dist/react/chunks/{zh-BZsPG6yc.mjs → zh-BezRHDHs.mjs} +0 -0
  50. /package/dist/react/chunks/{zh-C6onHYpa.cjs → zh-CcodKi4U.cjs} +0 -0
package/dist/index.d.ts CHANGED
@@ -1102,6 +1102,16 @@ interface ISettings {
1102
1102
  canInviteMembers: boolean | 'admin-only';
1103
1103
  /** Custom role→permission mapping. Overrides SDK defaults when provided by backend. */
1104
1104
  permissions?: Record<string, string[]>;
1105
+ /**
1106
+ * The organization's own permissions, defined in the BuildBase console:
1107
+ * `{ key: 'app:reports:export', label: 'Export reports', group: 'Reports' }`.
1108
+ * Absent on a server from before release 23.
1109
+ */
1110
+ customPermissions?: {
1111
+ key: string;
1112
+ label: string;
1113
+ group?: string;
1114
+ }[];
1105
1115
  /** Show workspace switcher in the UI */
1106
1116
  showSwitcher: boolean;
1107
1117
  /** Max workspaces a user can own. 0 = unlimited */
@@ -1304,6 +1314,18 @@ interface AuthRequestParams {
1304
1314
  * Populated automatically from the tracking provider when one is mounted.
1305
1315
  * Omitted means unanswered, which is not the same as refused.
1306
1316
  */
1317
+ /**
1318
+ * Where the visitor came from - the click ids and campaign fields captured
1319
+ * on their landing page, when, and where. Stored on the user the hosted
1320
+ * pages create, so a conversion that happens later with no browser (a trial
1321
+ * converting, a renewal) can still be joined to the ad click. Populated
1322
+ * automatically from the attribution cookie when tracking is mounted.
1323
+ */
1324
+ trackingAttribution?: {
1325
+ params: Record<string, string>;
1326
+ capturedAt?: number;
1327
+ landingUrl?: string;
1328
+ };
1307
1329
  trackingConsent?: {
1308
1330
  analytics: boolean;
1309
1331
  marketing: boolean;
@@ -1682,6 +1704,15 @@ declare class UserApi extends BaseApi {
1682
1704
  getFeatures(signal?: AbortSignal): Promise<Record<string, boolean>>;
1683
1705
  }
1684
1706
 
1707
+ /** What a member may do in a workspace, as the server resolved it. */
1708
+ interface WorkspaceMemberPermissions {
1709
+ /** The member's role, or null when they are not a member. */
1710
+ role: string | null;
1711
+ /** The workspace's owner holds every permission. */
1712
+ isOwner: boolean;
1713
+ /** Platform keys (`workspace:*`) and the organization's own keys. */
1714
+ permissions: string[];
1715
+ }
1685
1716
  /** Data passed to a notification template for merge tag replacement. */
1686
1717
  interface NotificationData {
1687
1718
  /** Push notification title. Falls back to the event name if not provided. */
@@ -1790,6 +1821,12 @@ declare class WorkspaceApi extends BaseApi {
1790
1821
  createWorkspace(data: {
1791
1822
  name: string;
1792
1823
  image?: string;
1824
+ /** Where the creator came from. Stored on the workspace for conversions recorded later. */
1825
+ trackingAttribution?: {
1826
+ params: Record<string, string>;
1827
+ capturedAt?: number;
1828
+ landingUrl?: string;
1829
+ };
1793
1830
  }, signal?: AbortSignal): Promise<IWorkspace>;
1794
1831
  updateWorkspace(id: string, data: Partial<IWorkspace>, signal?: AbortSignal): Promise<IWorkspace>;
1795
1832
  deleteWorkspace(id: string, signal?: AbortSignal): Promise<{
@@ -1873,6 +1910,12 @@ declare class WorkspaceApi extends BaseApi {
1873
1910
  permissions: Record<string, string[]>;
1874
1911
  }, signal?: AbortSignal): Promise<any>;
1875
1912
  updateWorkspacePermissions(workspaceId: string, permissions: Record<string, string[]>, signal?: AbortSignal): Promise<any>;
1913
+ /**
1914
+ * What the signed-in member may do in a workspace, as the server resolves
1915
+ * it: the platform's permissions and the organization's own. A backend asks
1916
+ * this rather than trusting a flag the browser sent.
1917
+ */
1918
+ getMyPermissions(workspaceId: string, signal?: AbortSignal): Promise<WorkspaceMemberPermissions>;
1876
1919
  getFeatures(signal?: AbortSignal): Promise<IWorkspaceFeature[]>;
1877
1920
  updateFeature(workspaceId: string, key: string, value: boolean, signal?: AbortSignal): Promise<IWorkspace>;
1878
1921
  getWorkspace(workspaceId: string, signal?: AbortSignal): Promise<IWorkspace>;
@@ -2730,17 +2773,45 @@ declare const Permission: {
2730
2773
  readonly WORKSPACE_BILLING_VIEW: "workspace:billing:view";
2731
2774
  readonly WORKSPACE_BILLING_MANAGE: "workspace:billing:manage";
2732
2775
  readonly WORKSPACE_USAGE_VIEW: "workspace:usage:view";
2776
+ /** Record usage and spend the workspace's credits. Withheld from viewers. */
2777
+ readonly WORKSPACE_USAGE_RECORD: "workspace:usage:record";
2733
2778
  };
2734
2779
  type PermissionKey = (typeof Permission)[keyof typeof Permission];
2735
2780
  type RolePermissionMap = Record<string, string[]>;
2781
+ /**
2782
+ * Defaults for the three roles every org is seeded with, the same lists the
2783
+ * server enforces. Servers now send each role's effective permissions in the
2784
+ * public settings, so these apply only to a server that does not. There is no
2785
+ * `member` entry: no one can hold that role, and `editor` had none, so an
2786
+ * editor was shown nothing the server let them do.
2787
+ */
2736
2788
  declare const DEFAULT_ROLE_PERMISSIONS: RolePermissionMap;
2789
+ /** The least privileged built-in role, used when no default is usable. */
2790
+ declare const FALLBACK_WORKSPACE_ROLE = "viewer";
2791
+ /**
2792
+ * The role to preselect for someone joining: the org's default role when it
2793
+ * is on the list, but never `admin`, which must be a deliberate choice. Then
2794
+ * viewer, then any role other than admin.
2795
+ */
2796
+ declare function pickDefaultRole(roles: readonly string[], defaultRole?: string | null): string;
2737
2797
  interface WorkspaceLike extends WorkspaceLike$1 {
2738
2798
  permissions?: Record<string, string[]>;
2739
2799
  }
2800
+ /**
2801
+ * A permission the organization defined for its own application, in the
2802
+ * BuildBase console. The server stores and resolves it exactly like a platform
2803
+ * permission; what it means is the application's business.
2804
+ */
2805
+ interface WorkspacePermissionDefinition {
2806
+ key: string;
2807
+ label: string;
2808
+ group?: string;
2809
+ }
2740
2810
  interface SettingsLike {
2741
2811
  workspace?: {
2742
2812
  defaultRole?: string;
2743
2813
  permissions?: Record<string, string[]>;
2814
+ customPermissions?: WorkspacePermissionDefinition[];
2744
2815
  canInviteMembers?: boolean | 'admin-only';
2745
2816
  canCreateWorkspace?: boolean | 'owner-only';
2746
2817
  };
@@ -2770,12 +2841,31 @@ interface PermissionContext {
2770
2841
  * 7. Apply setting restrictions (canInviteMembers)
2771
2842
  */
2772
2843
  declare function resolvePermissions(ctx: PermissionContext): Set<string>;
2844
+ /**
2845
+ * What one role may do in a workspace, by the same tiers the server uses.
2846
+ * `resolvePermissions` answers for a user; this answers for a role, which is
2847
+ * what a screen editing the matrix needs. `applyRestrictions: false` leaves
2848
+ * out the org's live switches (who may invite), so a screen does not write a
2849
+ * switch's current effect into a saved override.
2850
+ */
2851
+ declare function resolveRolePermissions(role: string, ctx: Pick<PermissionContext, 'workspace' | 'settings' | 'appPermissions'>, options?: {
2852
+ applyRestrictions?: boolean;
2853
+ }): Set<string>;
2773
2854
  /**
2774
2855
  * Check if a user has a specific permission (or all of an array).
2775
2856
  * Works with both platform permissions (Permission.WORKSPACE_*) and
2776
2857
  * app permissions (any custom string).
2777
2858
  */
2778
2859
  declare function hasPermission(permission: string | string[], ctx: PermissionContext): boolean;
2860
+ /** Where a permission the app checks was defined. */
2861
+ declare const APP_PERMISSION_FALLBACK_GROUP = "App";
2862
+ /**
2863
+ * Every permission this application defines, for a UI that lists them: the
2864
+ * organization's catalogue from the console, plus any key the app passed
2865
+ * through `defaultPermissions` that the catalogue does not name yet. Keys from
2866
+ * the prop keep working, so adopting the console costs nothing.
2867
+ */
2868
+ declare function appPermissionCatalogue(settings?: SettingsLike | null, appPermissions?: Record<string, string[]> | null): WorkspacePermissionDefinition[];
2779
2869
 
2780
2870
  /**
2781
2871
  * Push notification service worker source code.
@@ -4627,6 +4717,17 @@ interface WorkspaceActions {
4627
4717
  delete(workspaceId: string): Promise<{
4628
4718
  success: boolean;
4629
4719
  }>;
4720
+ /**
4721
+ * What the session's user may do in a workspace, resolved by the server:
4722
+ * `{ role, isOwner, permissions }`. Use it in your backend before acting,
4723
+ * instead of trusting the browser's answer.
4724
+ */
4725
+ permissions(workspaceId: string): Promise<WorkspaceMemberPermissions>;
4726
+ /**
4727
+ * Whether the session's user holds a permission (or every one of a list)
4728
+ * in a workspace, platform or your own: `can(id, 'app:reports:export')`.
4729
+ */
4730
+ can(workspaceId: string, permission: string | string[]): Promise<boolean>;
4630
4731
  }
4631
4732
  interface UserActions {
4632
4733
  list(workspaceId: string): Promise<IWorkspaceUser[]>;
@@ -5076,5 +5177,5 @@ declare function buildbaseAuth(options: BuildBaseAuthOptions): {
5076
5177
  resourceMetadataUrl?: string;
5077
5178
  };
5078
5179
 
5079
- export { AI_BOT_USER_AGENTS, ApiVersion, AppBridgeError, AuthApi, AuthStatus, BBAction, BBScreen, BBStatus, BB_PARAM, BaseApi, BetaForm, BillingIntervals, BuildBase, CURRENCY_DISPLAY, CURRENCY_FLAG, CreditBucketSource, CreditBucketStatus, CreditTransactionType, DEFAULT_ROLE_PERMISSIONS, DunningState, EventEmitter, INVITATION_ERROR_CODE, InvoiceStatuses, NotificationsApi, PLAN_CURRENCY_CODES, PLAN_CURRENCY_OPTIONS, PUSH_SERVICE_WORKER_SCRIPT, Permission, PushApi, SDKEvent, SettingsApi, SubscriptionItemType, SubscriptionStatus, UserApi, WorkspaceApi, actionableInvitations, appTokenFailure, appTokenSuccess, bearerChallenge, buildA2AAgentCard, buildAgentCard, buildAgentSkillsIndex, buildApiCatalog, buildAuthMd, buildDiscoveryLinkHeader, buildDnsAidRecords, buildLlmsFullTxt, buildLlmsTxt, buildMcpDiscoveryManifest, buildMcpServerCard, buildProtectedResourceMetadata, buildRobotsTxt, buildSecurityTxt, buildSitemap, buildSkillMd, buildWebBotAuthDirectory, buildbaseAuth, calculateBillableSeats, calculateSeatOverageCents, calculateTotalSubscriptionCents, cleanBBParams, clearAgentReadinessCache, clearAuthIntent, clearPendingInvite, consumeAuthIntent, createBBUrl, createCheckoutRedirectUrls, createCreditPurchaseRedirectUrls, createSessionRefCrypto, BuildBase as default, eventEmitter, extractBearerToken, fetchAgentReadiness, formatCents, formatMinorAmountIntl, formatOverageRate, formatOverageRateWithLabel, formatQuotaIncludedOverage, formatQuotaWithPrice, getAvailableCurrenciesFromPlans, getBasePriceCents, getBillingIntervalAndCurrencyFromPriceId, getCurrencyDecimals, getCurrencyFlag, getCurrencySymbol, getDisplayCurrency, getPerSeatPriceCents, getPricingVariant, getQuotaDisplayValue, getQuotaDisplayWithVariant, getQuotaOverageCents, getQuotaUnitLabelFromName, getSeatPricing, getStripePriceIdForInterval, handleAppRevokeRequest, handleAppTokenRequest, hasPermission, invalidateCreditBalance, invalidateQuotaUsage, invalidateSubscription, inviterNameOf, isInvitationActionable, isInvitationError, isInvitationLapsed, isZeroDecimalCurrency, minorAmountToDisplay, mintAgentToken, negotiateMarkdown, parkPendingInvite, parseWebhookEvent, provideWebMcpTools, readBBParams, readPendingInvite, resendCooldownSeconds, resolveAgentPath, resolveMaxUsers, resolvePermissions, resolveWellKnown, safeRedirect, saveAuthIntent, sha256Digest, signClientJwt, sortInvitations, validateInvite, validateRedirectUrl, verifyAppRevokeRequest, verifyAppTokenRequest, verifyClientJwt, verifyWebhookSignature, wantsMarkdown, workspaceIdOf, workspaceNameOf };
5080
- export type { A2ACardConfig, A2ACardSkill, AgentReadinessBundle, AgentReadyConfig, AgentSkill, ApiCatalogApi, AppRevokeRequestClaims, AppScope, AppTokenRequestClaims, AppTokenResponseBody, AppTokenResult, BBActionType, BBScreenType, BBStatusType, BetaFormData, BetaFormResponse, BillingInterval, BuildBaseAuthOptions, BuildBaseConfig, BuildBaseResult, BuildBaseSession, CheckoutResult, ContentSignals, CreditActions, CreditBucketSourceType, CreditBucketStatusType, CreditTransactionTypeValue, DiscoveryDocument, DnsAidRecord, DunningStateType, EventData, EventType, FeatureActions, FormatQuotaWithPriceOptions, GetCheckoutStripeParams, HandlerResult, IAllQuotaUsageResponse, IBaseApiConfig, IBasePricing, IBetaConfig, ICheckoutSessionRequest, ICheckoutSessionResponse, ICheckoutStripeOptions, IConsumeCreditsRequest, IConsumeCreditsResponse, ICreditBalance, ICreditBucket, ICreditBucketsQuery, ICreditBucketsResponse, ICreditPackage, ICreditPackagePricingVariant, ICreditPurchaseRequest, ICreditPurchaseResponse, ICreditTransaction, ICreditTransactionsQuery, ICreditTransactionsResponse, IEventCallbacks, IExpiringCreditsResponse, IInvoice, IInvoiceListResponse, IInvoiceResponse, INotificationItem, 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, ISettings, IStripePricesByInterval, ISubscription, ISubscriptionItem, ISubscriptionResponse, ISubscriptionUpdateRequest, ISubscriptionUpdateResponse, IUsageLogEntry, IUsageLogsQuery, IUsageLogsResponse, IUser, IWorkspace, IWorkspaceInvitation, IWorkspaceInvitationPreview, IWorkspaceInvitationStatus, InvitationActions, InvitationError, InvitationErrorCode, InvitationErrorFields, InviteBlockReason, InviteValidation, InvoiceActions, InvoiceStatus, InvoiceStatusType, MaxUsersConfig, McpServerCard, MintAgentTokenOptions, MyNotificationPreferences, NotificationChannelPreference, NotificationCounts, NotificationData, NotificationEvent, NotificationListParams, NotificationPage, NotificationResult, NotificationScope, OnWorkspaceChangeParams, PermissionActions, PermissionContext, PermissionKey, PlanActions, PlanVersionWithPricingVariants, QuotaDisplayValue, QuotaDisplayWithOverage, RedirectValidationOptions, RobotsConfig, RobotsPolicy, RolePermissionMap, ScopedActions, SessionRefCrypto, SettingsActions, SitemapUrl, SubscriptionActions, SubscriptionItemTypeValue, SubscriptionStatusType, TranslationKey, UsageActions, UserActions, UserCreatedEventData, UserUpdatedEventData, WebMcpTool, WorkspaceActions, WorkspaceChangedEventData, WorkspaceCreatedEventData, WorkspaceDeletedEventData, WorkspaceInvitationAcceptedEventData, WorkspaceInvitationDeclinedEventData, WorkspaceInvitationRevokedEventData, WorkspaceInvitationSentEventData, WorkspaceNotificationDefault, WorkspaceUpdatedEventData, WorkspaceUserAddedEventData, WorkspaceUserRemovedEventData, WorkspaceUserRoleChangedEventData };
5180
+ export { AI_BOT_USER_AGENTS, APP_PERMISSION_FALLBACK_GROUP, ApiVersion, AppBridgeError, AuthApi, AuthStatus, BBAction, BBScreen, BBStatus, BB_PARAM, BaseApi, BetaForm, BillingIntervals, BuildBase, CURRENCY_DISPLAY, CURRENCY_FLAG, CreditBucketSource, CreditBucketStatus, CreditTransactionType, DEFAULT_ROLE_PERMISSIONS, DunningState, EventEmitter, FALLBACK_WORKSPACE_ROLE, INVITATION_ERROR_CODE, InvoiceStatuses, NotificationsApi, PLAN_CURRENCY_CODES, PLAN_CURRENCY_OPTIONS, PUSH_SERVICE_WORKER_SCRIPT, Permission, PushApi, SDKEvent, SettingsApi, SubscriptionItemType, SubscriptionStatus, UserApi, WorkspaceApi, actionableInvitations, appPermissionCatalogue, appTokenFailure, appTokenSuccess, bearerChallenge, buildA2AAgentCard, buildAgentCard, buildAgentSkillsIndex, buildApiCatalog, buildAuthMd, buildDiscoveryLinkHeader, buildDnsAidRecords, buildLlmsFullTxt, buildLlmsTxt, buildMcpDiscoveryManifest, buildMcpServerCard, buildProtectedResourceMetadata, buildRobotsTxt, buildSecurityTxt, buildSitemap, buildSkillMd, buildWebBotAuthDirectory, buildbaseAuth, calculateBillableSeats, calculateSeatOverageCents, calculateTotalSubscriptionCents, cleanBBParams, clearAgentReadinessCache, clearAuthIntent, clearPendingInvite, consumeAuthIntent, createBBUrl, createCheckoutRedirectUrls, createCreditPurchaseRedirectUrls, createSessionRefCrypto, BuildBase as default, eventEmitter, extractBearerToken, fetchAgentReadiness, formatCents, formatMinorAmountIntl, formatOverageRate, formatOverageRateWithLabel, formatQuotaIncludedOverage, formatQuotaWithPrice, getAvailableCurrenciesFromPlans, getBasePriceCents, getBillingIntervalAndCurrencyFromPriceId, getCurrencyDecimals, getCurrencyFlag, getCurrencySymbol, getDisplayCurrency, getPerSeatPriceCents, getPricingVariant, getQuotaDisplayValue, getQuotaDisplayWithVariant, getQuotaOverageCents, getQuotaUnitLabelFromName, getSeatPricing, getStripePriceIdForInterval, handleAppRevokeRequest, handleAppTokenRequest, hasPermission, invalidateCreditBalance, invalidateQuotaUsage, invalidateSubscription, inviterNameOf, isInvitationActionable, isInvitationError, isInvitationLapsed, isZeroDecimalCurrency, minorAmountToDisplay, mintAgentToken, negotiateMarkdown, parkPendingInvite, parseWebhookEvent, pickDefaultRole, provideWebMcpTools, readBBParams, readPendingInvite, resendCooldownSeconds, resolveAgentPath, resolveMaxUsers, resolvePermissions, resolveRolePermissions, resolveWellKnown, safeRedirect, saveAuthIntent, sha256Digest, signClientJwt, sortInvitations, validateInvite, validateRedirectUrl, verifyAppRevokeRequest, verifyAppTokenRequest, verifyClientJwt, verifyWebhookSignature, wantsMarkdown, workspaceIdOf, workspaceNameOf };
5181
+ export type { A2ACardConfig, A2ACardSkill, AgentReadinessBundle, AgentReadyConfig, AgentSkill, ApiCatalogApi, AppRevokeRequestClaims, AppScope, AppTokenRequestClaims, AppTokenResponseBody, AppTokenResult, BBActionType, BBScreenType, BBStatusType, BetaFormData, BetaFormResponse, BillingInterval, BuildBaseAuthOptions, BuildBaseConfig, BuildBaseResult, BuildBaseSession, CheckoutResult, ContentSignals, CreditActions, CreditBucketSourceType, CreditBucketStatusType, CreditTransactionTypeValue, DiscoveryDocument, DnsAidRecord, DunningStateType, EventData, EventType, FeatureActions, FormatQuotaWithPriceOptions, GetCheckoutStripeParams, HandlerResult, IAllQuotaUsageResponse, IBaseApiConfig, IBasePricing, IBetaConfig, ICheckoutSessionRequest, ICheckoutSessionResponse, ICheckoutStripeOptions, IConsumeCreditsRequest, IConsumeCreditsResponse, ICreditBalance, ICreditBucket, ICreditBucketsQuery, ICreditBucketsResponse, ICreditPackage, ICreditPackagePricingVariant, ICreditPurchaseRequest, ICreditPurchaseResponse, ICreditTransaction, ICreditTransactionsQuery, ICreditTransactionsResponse, IEventCallbacks, IExpiringCreditsResponse, IInvoice, IInvoiceListResponse, IInvoiceResponse, INotificationItem, 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, ISettings, IStripePricesByInterval, ISubscription, ISubscriptionItem, ISubscriptionResponse, ISubscriptionUpdateRequest, ISubscriptionUpdateResponse, IUsageLogEntry, IUsageLogsQuery, IUsageLogsResponse, IUser, IWorkspace, IWorkspaceInvitation, IWorkspaceInvitationPreview, IWorkspaceInvitationStatus, InvitationActions, InvitationError, InvitationErrorCode, InvitationErrorFields, InviteBlockReason, InviteValidation, InvoiceActions, InvoiceStatus, InvoiceStatusType, MaxUsersConfig, McpServerCard, MintAgentTokenOptions, MyNotificationPreferences, NotificationChannelPreference, NotificationCounts, NotificationData, NotificationEvent, NotificationListParams, NotificationPage, NotificationResult, NotificationScope, OnWorkspaceChangeParams, PermissionActions, PermissionContext, PermissionKey, PlanActions, PlanVersionWithPricingVariants, QuotaDisplayValue, QuotaDisplayWithOverage, RedirectValidationOptions, RobotsConfig, RobotsPolicy, RolePermissionMap, ScopedActions, SessionRefCrypto, SettingsActions, SitemapUrl, SubscriptionActions, SubscriptionItemTypeValue, SubscriptionStatusType, TranslationKey, UsageActions, UserActions, UserCreatedEventData, UserUpdatedEventData, WebMcpTool, WorkspaceActions, WorkspaceChangedEventData, WorkspaceCreatedEventData, WorkspaceDeletedEventData, WorkspaceInvitationAcceptedEventData, WorkspaceInvitationDeclinedEventData, WorkspaceInvitationRevokedEventData, WorkspaceInvitationSentEventData, WorkspaceMemberPermissions, WorkspaceNotificationDefault, WorkspacePermissionDefinition, WorkspaceUpdatedEventData, WorkspaceUserAddedEventData, WorkspaceUserRemovedEventData, WorkspaceUserRoleChangedEventData };