@buildbase/sdk 0.0.55 → 0.0.56
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/CHANGELOG.md +2 -0
- package/README.md +91 -2
- package/dist/css/styles.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +171 -0
- package/dist/index.mjs +1 -1
- package/dist/mcp/index.cjs +1 -1
- package/dist/mcp/index.d.ts +106 -0
- package/dist/mcp/index.mjs +1 -1
- package/dist/react/chunks/SettingsDialog-CvoDs5eM.cjs +2 -0
- package/dist/react/chunks/SettingsDialog-VaOW2jtS.mjs +2 -0
- package/dist/react/chunks/{SubscriptionDialog-CfDLoOzW.cjs → SubscriptionDialog-8CagFA_V.cjs} +1 -1
- package/dist/react/chunks/SubscriptionDialog-C5EgpXE0.mjs +2 -0
- package/dist/react/chunks/ar-CGbuXEeR.cjs +2 -0
- package/dist/react/chunks/ar-DnShbYvQ.mjs +2 -0
- package/dist/react/chunks/de-C3iuiLAz.mjs +2 -0
- package/dist/react/chunks/{de-X9mfnMFM.mjs → de-a1mX2rR4.cjs} +1 -1
- package/dist/react/chunks/es-D4T7YE7x.cjs +2 -0
- package/dist/react/chunks/es-u9vKMeaX.mjs +2 -0
- package/dist/react/chunks/fr-Bnnz2yJZ.cjs +2 -0
- package/dist/react/chunks/fr-DjgpP202.mjs +2 -0
- package/dist/react/chunks/hi-B8Mjr8rU.cjs +2 -0
- package/dist/react/chunks/hi-Cu_9iCjb.mjs +2 -0
- package/dist/react/chunks/{ja-4hLI6wMX.cjs → ja-B0eCVKdZ.cjs} +1 -1
- package/dist/react/chunks/{ja-CIGOj3vV.mjs → ja-DfJ5WUrG.mjs} +1 -1
- package/dist/react/chunks/react-BBY-Vuzr.cjs +2 -0
- package/dist/react/chunks/react-CvU8uS25.mjs +2 -0
- package/dist/react/chunks/zh-BnPZ0j4w.cjs +2 -0
- package/dist/react/chunks/zh-JjoMmHmK.mjs +2 -0
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.d.ts +270 -2
- package/dist/react/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/react/chunks/SettingsDialog-B6DhyNae.cjs +0 -2
- package/dist/react/chunks/SettingsDialog-K38BI74F.mjs +0 -2
- package/dist/react/chunks/SubscriptionDialog-BidcQ_vc.mjs +0 -2
- package/dist/react/chunks/ar-CCKONfUU.mjs +0 -2
- package/dist/react/chunks/ar-DrHMtT1E.cjs +0 -2
- package/dist/react/chunks/de-Dhtorn10.cjs +0 -2
- package/dist/react/chunks/es--8iZ7Trv.mjs +0 -2
- package/dist/react/chunks/es-CUR7LB6a.cjs +0 -2
- package/dist/react/chunks/fr-BqMs_F5g.cjs +0 -2
- package/dist/react/chunks/fr-rUp34NG7.mjs +0 -2
- package/dist/react/chunks/hi-B_IiucJZ.mjs +0 -2
- package/dist/react/chunks/hi-C2i1_hdv.cjs +0 -2
- package/dist/react/chunks/react-BXTDLnE8.cjs +0 -2
- package/dist/react/chunks/react-CXCk05WI.mjs +0 -2
- package/dist/react/chunks/zh-BSgd6ai5.cjs +0 -2
- package/dist/react/chunks/zh-DyVvcYFC.mjs +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const e={settings:{titles:{profile:"账户",security:"安全",devices:"设备与会话",general:"工作区设置",users:"工作区成员",subscription:"套餐与账单",usage:"用量",credits:"积分",features:"工作区功能",notifications:"通知",permissions:"权限",danger:"危险区域"},sidebar:{account:"账户",workspace:"工作区",profile:"账户",security:"安全",devices:"设备",general:"设置",users:"成员",subscription:"套餐与账单",usage:"用量",credits:"积分",features:"功能",notifications:"通知",permissions:"权限",danger:"危险区域"},common:{refresh:"刷新",refreshing:"正在刷新...",retry:"重试",retrying:"正在重试...",save:"保存",saving:"正在保存...",cancel:"取消",delete:"删除",dismiss:"关闭",loading:"正在加载...",success:"操作成功!",error:"错误",refreshAction:"{loading, select, true {正在刷新...} other {刷新}}",retryAction:"{loading, select, true {正在重试...} other {重试}}",noPermissionTitle:"访问受限",noPermissionDescription:"您没有权限访问此部分。如需访问权限,请联系工作区管理员。",billingManageOnly:"只有具有账单管理权限的用户才能执行此操作。",openSettings:"打开设置",back:"返回",close:"关闭"}},subscription:{managePlan:"管理您的套餐和账单",changePlan:"更改套餐",viewPricingPlans:"查看价格方案",viewPlans:"查看套餐",upgradePlan:"立即升级",subscribe:"订阅",currentPlan:"当前套餐",noSubscription:"您没有有效的订阅",choosePlan:"选择您的套餐",choosePlanDescription:"比较各套餐,选择最适合您需求的方案",forWorkspace:"适用于 {name}",planUpdateAvailable:"套餐更新可用",updateSuccess:"订阅已成功更新!",updateFailed:"更新失败",cancelTitle:"取消订阅",cancelConfirm:"您确定要取消订阅吗?",cancelKeep:"保留订阅",cancelButton:"是的,取消订阅",cancelTrialTitle:"取消试用",cancelTrialConfirm:"您确定要取消试用吗?",cancelTrialAccess:"您的试用将持续到",cancelTrialNoCharge:"不会向您收费 — 试用期将自动到期",cancelTrialResume:"您可以在试用结束前随时恢复试用",cancelTrialKeep:"保留试用",cancelTrialButton:"是的,取消试用",canceling:"正在取消...",cancelSuccess:"订阅将在当前计费周期结束时取消。",cancelNotCharged:"取消后将不再收费",cancelResumeAnytime:"您可以在订阅结束前随时恢复",resumeTitle:"恢复订阅",resumeTrial:"恢复试用",resumeConfirm:"您确定要恢复订阅吗?",resumeKeep:"保持取消状态",resumeButton:"是的,恢复订阅",resuming:"正在恢复...",resumeSuccess:"订阅已恢复。",managePayment:"管理支付方式",openingPortal:"正在打开...",viewAllPlans:"查看所有套餐",scheduledCancellation:"订阅已安排取消",scheduledTrialCancellation:"试用已安排取消",paymentPastDue:"付款逾期",paymentPastDueDescription:"请更新您的支付方式以避免服务中断。",subscriptionPaused:"订阅已暂停",subscriptionPausedDescription:"您的订阅当前已暂停。恢复订阅以获得完整访问权限。",errorLoading:"加载订阅数据时出错",errorLoadingDescription:"请检查您的网络连接并重试。",errorProcessing:"订阅处理失败",errorCanceling:"取消订阅失败",errorResuming:"恢复订阅失败",invalidWorkspace:"无效的工作区 ID",billingInterval:{monthly:"月付",quarterly:"季付",yearly:"年付",perMonth:"/月",perQuarter:"/季",perYear:"/年"},seats:{title:"席位",members:"成员",included:"包含",billable:"计费",perExtraSeat:"每增加一个席位",limit:"上限",includedSeats:"包含席位数",maxSeats:"最大席位数",freeWithBase:"包含在基础价格中",allIncluded:"全部包含",extra:"额外",unlimited:"不限"},items:{features:"功能",limits:"限制",quotas:"用量配额",credits:"AI 积分",creditsPerMonth:"每月积分",creditsOneTime:"积分(一次性授予)",creditRenewal:"积分续期",creditModeLifetime:"一次性授予",creditsPerPeriod:"每月积分",creditRollover:"积分续期",creditModeReset:"每月重置",creditModeTopup:"每月累加"},checkout:{upgrade:"升级",downgrade:"降级",switchTo:"切换至",select:"选择"},status:{active:"有效",canceling:"取消中",trial:"试用",canceled:"已取消",pastDue:"逾期",paused:"已暂停",deprecated:"已弃用",unknown:"未知"},plan:"套餐",invoicesTab:"账单",tabsLabel:"订阅标签",endsOn:"(结束于 {date})",versionLabel:"版本 {version}",changePlanButton:"更改套餐",noPlanAssigned:"未分配套餐",free:"免费",perSeatDisplay:"+ {price}/席位{interval}",estTotalDisplay:"预估总计:{total}{interval}({count, plural, one {# 个额外席位} other {# 个额外席位}})",nextBillingDisplay:"下次计费日:{date}",membersInWorkspace:"工作区有 {count, plural, one {# 名成员} other {# 名成员}}",billingInCurrency:"以{currency}计费",savingsPercent:"节省 {percent, number}%",switchToInterval:"切换至{interval}",seatPriceDisplay:"+ {price}/席位{interval}({included} {includedLabel})",trialEnded:"您的试用期已结束。",trialEndsIn:"您的试用期将在 {days, plural, one {# 天} other {# 天}}后结束。",onTrial:"您正在试用中。",upgradeToKeepAccess:"升级以保留访问权限。",viewInvoices:"查看账单",cancelTrial:"取消试用",dunningFinal:"最终警告:订阅将被暂停",dunningSuspended:"订阅已暂停",dunningRecovery:"付款恢复中",dunningSuspendedDescription:"由于多次付款失败,您的订阅已被暂停。请更新支付方式以恢复访问权限。",dunningRecoveryDescription:"我们无法处理您的付款。请更新您的支付方式以避免失去访问权限。",cancelEndDescription:"您的订阅将于以下日期结束:",trialEndDescription:"您的试用将于以下日期结束:",cancelEndFallback:"您的订阅将在当前计费周期结束时取消,之后将不再收费。",resumeChargeDate:"将于以下日期再次收费:",resumeChargeFallback:"下一个计费日",resumeContinue:"您的订阅将自动继续,并按照套餐计费",resumeCancelAnytime:"如果您改变主意,可以在下一个计费日之前随时取消",retainAccess:"您将保留此套餐的完整访问权限直到",retainAccessFallback:"当前计费周期结束",noPlansAvailable:"此工作区没有可用的套餐组。如果您认为这是一个错误,请联系客服。",noPlansAvailableHint:"此工作区没有可用的套餐组。",startTrialDescription:"免费试用完整套餐,无需承诺。您可以随时升级或取消。",noSubscriptionDescription:"选择一个套餐来开始使用您的工作区",startFreeTrial:"开始免费试用",startTrialDays:"开始 {days} 天免费试用",trialBadge:"{days} 天试用"},users:{emailPlaceholder:"example@example.com",title:"工作区成员",adminOnly:"只有工作区管理员才能管理用户和角色。",inviteByEmail:"通过电子邮件邀请成员",inviteButton:"邀请",inviting:"正在邀请...",inviteSuccess:"用户邀请成功",emailRequired:"电子邮件为必填项",invalidEmail:"电子邮件地址格式无效",inviteFailed:"邀请成员失败",seatLimitReached:"已达到席位上限",memberLimitReached:"已达到成员上限",role:"角色",you:"您",owner:"拥有者",noMembers:"此工作区未找到成员。",extraSeatCost:"每增加一名成员将增加{price}/{interval, select, yearly {年} quarterly {季} other {月}}的订阅费用",unknownUser:"未知用户",seats:"席位",members:"成员",included:"包含",perExtraSeat:"/额外席位",maxMembers:"最大成员数",available:"可用",noMemberLimit:"无成员限制",seatHeading:"{hasSeatPricing, select, true {席位} other {成员}}",limitReached:"{reason, select, seat_limit_reached {已达到席位上限} other {已达到成员上限}}",memberCount:"{count, plural, one {# 名成员} other {# 名成员}}",subscriptionRequired:"邀请成员需要有效订阅。",seatLimitMessage:"您的套餐最多允许 {maxUsers, number} 名成员。升级以获得更多席位。",settingsLimitMessage:"此工作区最多允许 {maxUsers, number} 名成员。",memberLimitMessage:"已达到成员上限 {maxUsers, number}。",selectRole:"选择角色",inviteAs:"以{role}身份邀请"},invoices:{title:"账单历史",description:"查看和下载您的账单",pay:"支付",view:"查看",viewDetails:"查看详情",download:"PDF",errorLoading:"加载账单时出错",noInvoices:"暂无账单。订阅套餐后将生成账单。",noInvoicesWithSub:"未找到可下载的账单",paidAmount:"已支付:{amount}",na:"不适用",status:{draft:"草稿",open:"待支付",paid:"已支付",uncollectible:"无法收回",void:"已作废"}},usage:{title:"用量",description:"监控您的资源消耗和配额",totalResources:"总资源",overallUsage:"总体用量",inOverage:"超额中",estOverageCost:"预估超额费用",overageDetected:"检测到超额",overageDescription:"额外用量将作为超额部分在下次账单中收取。",overageUnits:"超额单位",rate:"费率",billableBlocks:"计费块",estimatedCharge:"预估费用",noData:"此工作区没有可用的配额使用数据。",noDataHint:"当您的套餐包含计量资源时,配额将在此处显示。",used:"已使用",remaining:"剩余",overLimit:"超出上限",percentUsed:"已使用 {percent, number}%",availableRemaining:"剩余 {count}",overLimitCount:"{count} 超出上限",overageWarning:"{count, plural, one {# 项资源已超出包含的配额。} other {# 项资源已超出包含的配额。}}额外用量将作为超额部分在下次账单中收取。",fullyUsed:"已全部使用",renewingSoon:"即将续期",almostFull:"即将用完",overage:"超额",errorLoading:"加载用量数据失败",perUnit:"/ 单位",perUnits:"/ 单位",rateDisplay:"{rate} {unitSize, plural, =1 {/ 单位} other {/ {unitSize, number} 单位}}",resourcesExceeded:"{count, plural, one {# 项资源已超出包含的配额。} other {# 项资源已超出包含的配额。}}",estOverageCharges:"本期预估超额费用:{amount}",overageRateDisplay:"超额费率:{rate}",resetDateDisplay:"用量将于 {date} 重置",daysRemainingDisplay:"{count, plural, one {剩余 # 天} other {剩余 # 天}}"},profile:{email:"电子邮件",name:"姓名",language:"语言",country:"国家/地区",currency:"货币",timezone:"时区",profileImage:"头像",success:"个人资料保存成功",nameMinLength:"姓名至少需要2个字符。",save:"保存",reset:"重置"},general:{ownerOnly:"只有工作区拥有者才能更改设置。",name:"名称",namePlaceholder:"我的工作区",nameMinLength:"工作区名称至少需要2个字符。",billingCurrency:"计费货币",icon:"图标",iconDescription:"选择一个表情符号或为您的工作区上传自定义图片。",imageUrl:"图片 URL",imageUrlPlaceholder:"https://example.com/image.png",imageUrlDescription:"输入工作区图片的有效 URL。支持 PNG、JPG 和 SVG 格式。",previewLabel:"预览:",previewImageAlt:"工作区预览",success:"工作区设置保存成功",chooseEmoji:"选择表情",customImageUrl:"自定义图片 URL",updateWorkspace:"更新工作区"},features:{title:"工作区功能",ownerOnly:"只有工作区拥有者才能更改功能。",noFeatures:"工作区没有可管理的功能。",enabled:"已启用",disabled:"已禁用",enabling:"正在启用",disabling:"正在禁用",featureSuccess:"成功",updateSuccess:"{feature}已成功{enabled, select, true {启用} other {禁用}}",actionStatus:"{action, select, enabling {正在启用} disabling {正在禁用} other {}}",fallbackName:"功能"},danger:{title:"删除工作区",adminOnly:"只有管理员才能删除工作区。",deleteWorkspace:"删除工作区",deleteConfirm:"您确定吗?",deleteWarning:"此操作不可撤销。这将永久删除工作区及所有相关数据。",deleting:"正在删除...",deleteDescription:"一旦删除工作区,将无法恢复。这将永久删除工作区及其所有数据,包括成员、设置和功能。",deleteConfirmDescription:"此操作不可撤销。这将永久删除工作区及所有相关数据。",failedToDelete:"删除工作区失败"},notifications:{title:"通知偏好设置",permissionDenied:"通知权限被拒绝",notSupported:"此浏览器不支持推送通知。",manageDescription:"管理您从此工作区接收通知的方式。",blocked:"通知已被阻止",blockedDescription:"您之前阻止了此网站的通知。要启用通知,请更新浏览器设置:",pushTitle:"推送通知",pushEnabledDescription:"您将收到重要更新的浏览器通知。",pushDisabledDescription:"接收有关付款问题、试用到期和其他重要更新的通知。",enabling:"正在启用...",disabling:"正在禁用...",enable:"启用",disable:"禁用",toggleAction:"{loading, select, true {{subscribed, select, true {正在禁用...} other {正在启用...}}} other {{subscribed, select, true {禁用} other {启用}}}}",pushDescription:"{subscribed, select, true {您将收到重要更新的浏览器通知。} other {接收有关付款问题、试用到期和其他重要更新的通知。}}",deviceNote:"通知将发送到此设备。请在其他设备上单独启用。",prefsSaved:"通知偏好设置已保存。",loadingPrefs:"正在加载偏好设置...",categories:{workspace:"工作区",billing:"账单与付款"},events:{workspace_invite:"成员受邀",workspace_invite_desc:"当新成员被添加到工作区时",workspace_removed:"成员被移除",workspace_removed_desc:"当成员被从工作区移除时",workspace_role_changed:"角色变更",workspace_role_changed_desc:"当成员的角色被更新时",subscription_created:"订阅已创建",subscription_created_desc:"当新订阅被激活时",subscription_upgraded:"套餐已升级",subscription_upgraded_desc:"当订阅套餐升级时",subscription_canceled:"订阅已取消",subscription_canceled_desc:"当订阅被取消时",subscription_suspended:"访问已暂停",subscription_suspended_desc:"当因付款失败而暂停访问时",trial_ending:"试用即将结束",trial_ending_desc:"试用期到期前几天",trial_expired:"试用已过期",trial_expired_desc:"当试用期结束时",payment_failed:"付款失败",payment_failed_desc:"当付款无法处理时",payment_action_required:"需要付款操作",payment_action_required_desc:"当付款需要额外验证时",payment_succeeded:"已收到付款",payment_succeeded_desc:"当付款成功处理时"},unblock:{firefox:{step1:"点击地址栏中的锁形图标(或盾形图标)",step2:'在权限列表中找到"通知"',step3:'将"阻止"更改为"允许"',step4:"重新加载此页面"},safari:{step1:"打开 Safari → 设置 → 网站 → 通知",step2:"在列表中找到此网站",step3:'将"拒绝"更改为"允许"',step4:"重新加载此页面"},edge:{step1:"点击地址栏中的锁形图标",step2:'点击"此站点的权限"',step3:'将"通知"设置为"允许"',step4:"重新加载此页面"},chrome:{step1:"点击地址栏中的锁形图标(或调节图标)",step2:'点击"网站设置"',step3:'将"通知"设置为"允许"',step4:"重新加载此页面"}}},quota:{includedOnly:"包含 {count, number} 个",includedWithOverage:"包含 {count, number} 个,之后 {price} / {unit}",includedHardLimit:"包含 {count, number} 个(硬性限制)",unitFallback:"单位"},pricing:{title:"选择您的套餐",description:"比较各套餐,选择最适合您需求的方案",currency:"货币",billingIn:"计费货币",noPlansCurrency:"没有适用于您的计费货币的套餐。",noPlansCurrencyHint:"出现错误,请联系客服。",noPlans:"没有可用的套餐",free:"免费",included:"包含",save:"节省",current:"当前",processing:"正在处理...",unavailable:"不可用",selectCurrency:"选择计费货币",billingInterval:"计费周期"},beta:{logoAlt:"标志",nameLabel:"姓名",emailLabel:"电子邮件",submitText:"提交",submittingText:"正在提交...",errorMessage:"发生错误",tryAgain:"重试",privacyConsent:"提交此表单即表示您同意我们的",privacyPolicy:"隐私政策",and:"和",termsOfService:"服务条款"},workspace:{switchTitle:"切换工作区",switchDescription:"选择一个工作区或创建新的工作区。",notLoggedIn:"您似乎尚未登录。请登录后继续。",availableWorkspaces:"可用工作区 ({count, number})",loadingWorkspaces:"正在加载工作区...",searchPlaceholder:"搜索工作区...",noWorkspacesFound:"未找到工作区",noWorkspacesAvailable:"没有可用的工作区",switchTo:"切换至",membersCount:"{count, plural, one {# 名成员} other {# 名成员}}",createNew:"创建新工作区",createTitle:"创建新工作区",createDescription:"创建一个新的工作区来开始使用。",workspaceName:"工作区名称",workspaceNamePlaceholder:"我的工作区",workspaceNameMinLength:"工作区名称至少需要2个字符。",workspaceIcon:"工作区图标",iconDescription:"选择一个表情符号或为您的工作区上传自定义图片。",chooseEmoji:"选择表情",customImageUrl:"自定义图片 URL",imageUrl:"图片 URL",imageUrlPlaceholder:"https://example.com/image.png",imageUrlDescription:"输入工作区图片的有效 URL。支持 PNG、JPG 和 SVG 格式。",invalidUrl:"请输入有效的 URL",creating:"正在创建...",createWorkspace:"创建工作区"},dropdowns:{search:"搜索...",chooseOption:"选择选项",chooseCountry:"选择国家/地区",searchCountry:"选择国家/地区...",chooseLanguage:"选择语言",searchLanguage:"选择语言...",chooseCurrency:"选择货币",searchCurrency:"选择货币...",chooseTimezone:"选择时区",searchTimezone:"选择时区...",noResults:"未找到结果"},push:{failedToSubscribe:"订阅推送通知失败",failedToUnsubscribe:"取消订阅推送通知失败"},permissions:{title:"权限",description:"配置每个角色在此工作区中的操作权限。",ownerOnly:"只有工作区拥有者才能管理权限。",save:"保存权限",saving:"正在保存...",saveSuccess:"权限保存成功"},credits:{title:"积分",description:"积分可用于 AI 生成等高级操作。",balance:"积分余额",available:"可用",totalGranted:"总授予",totalConsumed:"总消耗",totalExpired:"总过期",noCredits:"暂无积分",noCreditsHint:"当您的套餐授予或购买积分时,积分将显示在此处。",buyCredits:"购买积分",buyAmount:"购买 {count} 积分",purchasing:"正在跳转...",packages:"积分套餐包",noPackages:"没有可用的积分套餐包。",creditsAmount:"{count} 积分",validityDays:"有效期 {count} 天",validityUnlimited:"永不过期",transactions:"最近交易",noTransactions:"暂无交易记录。",loadMore:"加载更多",viewAll:"查看全部",expiringSoon:"即将过期",expiringInDays:"{count} 积分将在 {days} 天内过期",noExpiring:"没有即将过期的积分。",type:{plan_grant:"套餐授予",pack_purchased:"已购买",consumed:"已消耗",expired:"已过期",admin_grant:"已授予",admin_revoke:"已撤销",refund:"退款"},dialogTitle:"购买积分套餐包",dialogDescription:"选择要购买的积分套餐包。",dialogDescriptionWorkspace:"为 {workspace} 购买积分。",perCredit:"每积分 {price}",purchaseSuccess:"积分购买成功!您的余额已更新。",purchaseCanceled:"积分购买已取消,未产生任何费用。",purchaseFailed:"积分购买失败。请重试或联系客服。",errorLoading:"加载积分数据失败",insufficientCredits:"积分不足",insufficientDetail:"积分不足。可用:{available},请求:{requested}"},loading:{restoringSession:"正在恢复会话...",redirecting:"正在跳转...",signingIn:"正在登录...",verifyingAccount:"正在验证您的账户...",almostThere:"即将完成..."},errors:{networkError:"网络错误:请检查您的网络连接",unauthorized:"未授权 — 请检查您的会话",notFound:"资源未找到",generic:"发生错误",fetchPlans:"获取套餐失败",fetchPlanGroup:"获取套餐组失败",fetchPlanGroupVersion:"获取套餐组版本失败",fetchPlanGroupVersions:"获取套餐组版本列表失败",fetchSubscription:"获取订阅信息失败",createCheckout:"创建结账会话失败",updateSubscription:"更新订阅失败",fetchInvoices:"获取账单失败",fetchInvoice:"获取账单失败",openBillingPortal:"打开账单门户失败",cancelSubscription:"取消订阅失败",resumeSubscription:"恢复订阅失败",recordUsage:"记录用量失败",fetchQuotaUsage:"获取配额使用状态失败",fetchAllQuotaUsage:"获取所有配额使用情况失败",fetchUsageLogs:"获取使用日志失败",fetchCreditBalance:"获取积分余额失败",consumeCredits:"消耗积分失败",purchaseCredits:"购买积分失败",fetchCreditPackages:"获取积分套餐包失败",fetchCreditTransactions:"获取积分交易记录失败",fetchExpiringCredits:"获取即将过期的积分失败",fetchWorkspaces:"获取工作区失败"},security:{connectedAgentsTitle:"已连接的代理",connectedAgentsDescription:"你已授权访问账户的 AI 代理。断开你不再使用的代理,访问权限会立即撤销。",connectedAgentsDisconnect:"断开连接",connectedAgentsEmpty:"没有已连接的代理。",connectedAgentsAccess:"访问权限",connectedAgentsGranted:"授权时间",connectedAgentsLoadFailed:"加载已连接的代理失败",connectedAgentsRevokeFailed:"断开连接失败",mcpConnectAction:"连接代理",mcpGuideTitle:"连接 AI 代理",mcpGuideDescription:"让 AI 助手安全地在你的账户中操作。在下面选择你的应用并按步骤操作,只需一分钟。",mcpServerUrlLabel:"服务器地址",mcpServerUrlHint:"有些应用只需你粘贴这个地址。",mcpPromptLabel:"或将此粘贴到你的 AI",mcpPromptHint:"适用于可以添加工具的聊天助手——把它粘贴到聊天中并发送。",mcpPromptTemplate:"请使用 {{url}} 上的 MCP 服务器连接到我的 {{name}} 账户,然后使用它的工具来帮助我。",mcpClientsLabel:"热门应用的分步指南",mcpAddToConfigFile:"打开文件 {path} 并添加以下内容:",mcpClientChatgptInstructions:"在 ChatGPT 中,进入“设置 → 连接器”,选择“添加自定义连接器”,然后粘贴上面的服务器地址。",mcpClientClaudeInstructions:"在 Claude 中,进入“设置 → 连接器”,选择“添加自定义连接器”,然后粘贴上面的服务器地址。",mcpClientClineInstructions:"在 Cline 中,打开 MCP 服务器面板,选择“添加远程服务器”,然后粘贴上面的服务器地址。",mcpCopy:"复制",mcpCopied:"已复制",mcpLearnMore:"了解更多",inactive:"已失效",inactiveHint:"注册于之前的登录域名,已无法使用。您可以将其移除。",passkeysTitle:"通行密钥",passkeysDescription:"通行密钥支持使用指纹、面容或设备 PIN 登录。",noPasskeys:"未注册通行密钥",addHint:'要添加通行密钥,请在需要使用的设备上下次登录时选择"添加通行密钥"。',rename:"重命名",remove:"移除",removeTitle:"移除通行密钥",removeDescription:"您将无法再使用此通行密钥登录。",renamePlaceholder:"通行密钥名称",lastUsed:"上次使用",added:"添加时间",devicesTitle:"您的设备",devicesDescription:"您用于登录的手机和电脑。请退出或移除任何您不认识的设备。",devicesEmpty:"您还没有从任何设备登录过。",devicesLoadFailed:"无法加载您的设备。请重试。",deviceCurrent:"当前设备",deviceTrusted:"受信任",deviceActiveSessions:"{count, plural, other {# 个活跃会话}}",devicePushEnabled:"通知已开启",deviceLastActive:"上次使用:{date}",deviceRename:"重命名",deviceRenamePlaceholder:"设备名称",deviceRenameFailed:"无法重命名该设备。请重试。",deviceSave:"保存",deviceCancel:"取消",deviceSignOut:"退出登录",deviceSignOutFailed:"无法退出该设备的登录。请重试。",deviceForget:"移除",deviceForgetFailed:"无法移除该设备。请重试。",deviceForgetConfirmTitle:"移除此设备?",deviceForgetConfirmBody:"这会使该设备退出登录并将其从您的列表中移除。如果您再次从该设备登录,它将重新显示在此处。",sessionsTitle:"您的登录位置",sessionsDescription:"您目前在这些设备上处于登录状态。请退出任何您不认识的设备。",sessionsEmpty:"您没有在其他任何地方登录。",sessionsLoadFailed:"无法加载您的会话。请重试。",sessionCurrent:"此会话",sessionExpires:"退出时间:{date}",sessionLastActive:"上次使用:{date}",sessionSignOut:"退出登录",sessionSignOutFailed:"无法退出该会话。请重试。"}};export{e as zh};
|
package/dist/react/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var e=require("./chunks/react-
|
|
2
|
+
"use strict";var e=require("./chunks/react-BBY-Vuzr.cjs");require("react/jsx-runtime"),require("react"),require("clsx"),require("tailwind-merge"),require("intl-messageformat"),require("@hookform/resolvers/zod"),require("react-hook-form"),require("@radix-ui/react-slot"),require("class-variance-authority"),require("lucide-react"),require("@radix-ui/react-label"),require("zod"),require("@radix-ui/react-avatar"),require("@radix-ui/react-dialog"),require("@radix-ui/react-icons"),require("@radix-ui/react-radio-group"),require("@radix-ui/react-scroll-area"),require("@radix-ui/react-separator"),require("@radix-ui/react-accordion"),require("@radix-ui/react-alert-dialog"),Object.defineProperty(exports,"ApiVersion",{enumerable:!0,get:function(){return e.ApiVersion}}),exports.AuthApi=e.AuthApi,Object.defineProperty(exports,"AuthStatus",{enumerable:!0,get:function(){return e.AuthStatus}}),exports.BBAction=e.BBAction,exports.BBScreen=e.BBScreen,exports.BBStatus=e.BBStatus,exports.BB_PARAM=e.BB_PARAM,exports.BaseApi=e.BaseApi,exports.BetaForm=e.BetaForm,exports.BillingIntervals=e.BillingIntervals,exports.BuildBaseProvider=e.SaaSOSProvider,exports.CURRENCY_DISPLAY=e.CURRENCY_DISPLAY,exports.CURRENCY_FLAG=e.CURRENCY_FLAG,exports.ConnectMcpGuide=e.ConnectMcpGuide,exports.ConnectedAgents=e.ConnectedAgents,exports.ConnectedAgentsApi=e.ConnectedAgentsApi,exports.CreditActionsProvider=e.CreditActionsProvider,exports.CreditBalance=e.CreditBalance,exports.CreditBalanceContextProvider=e.CreditBalanceContextProvider,exports.CreditBucketSource=e.CreditBucketSource,exports.CreditBucketStatus=e.CreditBucketStatus,exports.CreditStorePage=e.CreditStorePage,exports.CreditTransactionType=e.CreditTransactionType,exports.DEFAULT_ROLE_PERMISSIONS=e.DEFAULT_ROLE_PERMISSIONS,exports.Devices=e.Devices,exports.DevicesApi=e.DevicesApi,exports.DunningState=e.DunningState,exports.EmptyState=e.EmptyState,exports.EventEmitter=e.EventEmitter,exports.FullScreenLoader=e.FullScreenLoader,exports.InvoiceStatuses=e.InvoiceStatuses,exports.LoadingState=e.LoadingState,exports.PLAN_CURRENCY_CODES=e.PLAN_CURRENCY_CODES,exports.PLAN_CURRENCY_OPTIONS=e.PLAN_CURRENCY_OPTIONS,exports.PUSH_SERVICE_WORKER_SCRIPT=e.PUSH_SERVICE_WORKER_SCRIPT,exports.Permission=e.Permission,exports.PricingPage=e.PricingPage,exports.PushApi=e.PushApi,exports.PushNotificationProvider=e.PushNotificationProvider,exports.QuotaUsageContextProvider=e.QuotaUsageContextProvider,exports.SDKEvent=e.SDKEvent,exports.SETTINGS_SCREENS=e.SETTINGS_SCREENS,exports.SUPPORTED_LOCALES=e.SUPPORTED_LOCALES,exports.SaaSOSProvider=e.SaaSOSProvider,exports.SectionHeader=e.SectionHeader,exports.Sessions=e.Sessions,exports.SessionsApi=e.SessionsApi,exports.SettingsApi=e.SettingsApi,exports.SettingsScreen=e.SettingsScreen,exports.SidebarNavItem=e.SidebarNavItem,exports.SidebarNavSection=e.SidebarNavSection,exports.StatusBanner=e.StatusBanner,exports.SubscriptionContextProvider=e.SubscriptionContextProvider,exports.SubscriptionItemType=e.SubscriptionItemType,exports.SubscriptionStatus=e.SubscriptionStatus,exports.UserApi=e.UserApi,exports.WhenAuthenticated=e.WhenAuthenticated,exports.WhenCreditsAvailable=e.WhenCreditsAvailable,exports.WhenCreditsExhausted=e.WhenCreditsExhausted,exports.WhenCreditsLow=e.WhenCreditsLow,exports.WhenNoSubscription=e.WhenNoSubscription,exports.WhenNotTrialing=e.WhenNotTrialing,exports.WhenPermission=e.WhenPermission,exports.WhenQuotaAvailable=e.WhenQuotaAvailable,exports.WhenQuotaExhausted=e.WhenQuotaExhausted,exports.WhenQuotaOverage=e.WhenQuotaOverage,exports.WhenQuotaThreshold=e.WhenQuotaThreshold,exports.WhenRoles=e.WhenRoles,exports.WhenSubscription=e.WhenSubscription,exports.WhenSubscriptionToPlans=e.WhenSubscriptionToPlans,exports.WhenTrialEnding=e.WhenTrialEnding,exports.WhenTrialing=e.WhenTrialing,exports.WhenUnauthenticated=e.WhenUnauthenticated,exports.WhenUserFeatureDisabled=e.WhenUserFeatureDisabled,exports.WhenUserFeatureEnabled=e.WhenUserFeatureEnabled,exports.WhenWorkspaceFeatureDisabled=e.WhenWorkspaceFeatureDisabled,exports.WhenWorkspaceFeatureEnabled=e.WhenWorkspaceFeatureEnabled,exports.WhenWorkspaceRoles=e.WhenWorkspaceRoles,exports.WorkspaceApi=e.WorkspaceApi,exports.WorkspaceSwitcher=e.WorkspaceSwitcher,exports.calculateBillableSeats=e.calculateBillableSeats,exports.calculateSeatOverageCents=e.calculateSeatOverageCents,exports.calculateTotalSubscriptionCents=e.calculateTotalSubscriptionCents,exports.cleanBBParams=e.cleanBBParams,exports.clearAuthIntent=e.clearAuthIntent,exports.consumeAuthIntent=e.consumeAuthIntent,exports.createBBUrl=e.createBBUrl,exports.createCheckoutRedirectUrls=e.createCheckoutRedirectUrls,exports.createCreditPurchaseRedirectUrls=e.createCreditPurchaseRedirectUrls,exports.eventEmitter=e.eventEmitter,exports.fillMcpTemplate=e.fillMcpTemplate,exports.formatCents=e.formatCents,exports.formatMinorAmountIntl=e.formatMinorAmountIntl,exports.formatOverageRate=e.formatOverageRate,exports.formatOverageRateWithLabel=e.formatOverageRateWithLabel,exports.formatQuotaIncludedOverage=e.formatQuotaIncludedOverage,exports.formatQuotaWithPrice=e.formatQuotaWithPrice,exports.getAvailableCurrenciesFromPlans=e.getAvailableCurrenciesFromPlans,exports.getBasePriceCents=e.getBasePriceCents,exports.getBillingIntervalAndCurrencyFromPriceId=e.getBillingIntervalAndCurrencyFromPriceId,exports.getCurrencyDecimals=e.getCurrencyDecimals,exports.getCurrencyFlag=e.getCurrencyFlag,exports.getCurrencySymbol=e.getCurrencySymbol,exports.getDisplayCurrency=e.getDisplayCurrency,exports.getPerSeatPriceCents=e.getPerSeatPriceCents,exports.getPricingVariant=e.getPricingVariant,exports.getQuotaDisplayValue=e.getQuotaDisplayValue,exports.getQuotaDisplayWithVariant=e.getQuotaDisplayWithVariant,exports.getQuotaOverageCents=e.getQuotaOverageCents,exports.getQuotaUnitLabelFromName=e.getQuotaUnitLabelFromName,exports.getSeatPricing=e.getSeatPricing,exports.getStripePriceIdForInterval=e.getStripePriceIdForInterval,exports.hasPermission=e.hasPermission,exports.invalidateCreditBalance=e.invalidateCreditBalance,exports.invalidateQuotaUsage=e.invalidateQuotaUsage,exports.invalidateSubscription=e.invalidateSubscription,exports.isZeroDecimalCurrency=e.isZeroDecimalCurrency,exports.mcpServerKey=e.mcpServerKey,exports.mergeUIConfig=e.mergeUIConfig,exports.minorAmountToDisplay=e.minorAmountToDisplay,exports.readBBParams=e.readBBParams,exports.resolveMaxUsers=e.resolveMaxUsers,exports.resolvePermissions=e.resolvePermissions,exports.safeRedirect=e.safeRedirect,exports.saveAuthIntent=e.saveAuthIntent,exports.useAllQuotaUsage=e.useAllQuotaUsage,exports.useBillingPortal=e.useBillingPortal,exports.useCancelSubscription=e.useCancelSubscription,exports.useConnectedAgents=e.useConnectedAgents,exports.useConnectedAgentsApi=e.useConnectedAgentsApi,exports.useConsumeCredits=e.useConsumeCredits,exports.useCreateCheckoutSession=e.useCreateCheckoutSession,exports.useCreditBalance=e.useCreditBalance,exports.useCreditBalanceContext=e.useCreditBalanceContext,exports.useCreditPackages=e.useCreditPackages,exports.useCreditTransactions=e.useCreditTransactions,exports.useDevices=e.useDevices,exports.useDevicesApi=e.useDevicesApi,exports.useExpiringCredits=e.useExpiringCredits,exports.useFullScreenLoader=e.useFullScreenLoader,exports.useInvoice=e.useInvoice,exports.useInvoices=e.useInvoices,exports.useMcpConnection=e.useMcpConnection,exports.usePermissions=e.usePermissions,exports.usePlanGroup=e.usePlanGroup,exports.usePlanGroupVersions=e.usePlanGroupVersions,exports.usePublicCreditPackages=e.usePublicCreditPackages,exports.usePublicPlanGroupVersion=e.usePublicPlanGroupVersion,exports.usePublicPlans=e.usePublicPlans,exports.usePurchaseCredits=e.usePurchaseCredits,exports.usePushNotifications=e.usePushNotifications,exports.useQuotaUsageContext=e.useQuotaUsageContext,exports.useQuotaUsageStatus=e.useQuotaUsageStatus,exports.useRecordUsage=e.useRecordUsage,exports.useResumeSubscription=e.useResumeSubscription,exports.useSaaSAuth=e.useSaaSAuth,exports.useSaaSOs=e.useSaaSOs,exports.useSaaSSettings=e.useSaaSSettings,exports.useSaaSWorkspaces=e.useSaaSWorkspaces,exports.useSeatStatus=e.useSeatStatus,exports.useSessions=e.useSessions,exports.useSessionsApi=e.useSessionsApi,exports.useSubscription=e.useSubscription,exports.useSubscriptionContext=e.useSubscriptionContext,exports.useSubscriptionManagement=e.useSubscriptionManagement,exports.useTranslation=e.useTranslation,exports.useTrialStatus=e.useTrialStatus,exports.useUIConfig=e.useUIConfig,exports.useUIVisibility=e.useUIVisibility,exports.useUpdateSubscription=e.useUpdateSubscription,exports.useUsageLogs=e.useUsageLogs,exports.useUserAttributes=e.useUserAttributes,exports.useUserFeatures=e.useUserFeatures,exports.validateInvite=e.validateInvite,exports.validateRedirectUrl=e.validateRedirectUrl,exports.workspaceSettingsManager=e.workspaceSettingsManager;
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1264,6 +1264,75 @@ declare class ConnectedAgentsApi extends BaseApi {
|
|
|
1264
1264
|
revoke(clientId: string): Promise<void>;
|
|
1265
1265
|
}
|
|
1266
1266
|
|
|
1267
|
+
/**
|
|
1268
|
+
* API client for the signed-in user's devices — the browsers/apps they have
|
|
1269
|
+
* signed in from. Session-authed (x-session-id + x-device-id), scoped to the
|
|
1270
|
+
* current user. Extends BaseApi for shared URL/auth/request handling.
|
|
1271
|
+
*
|
|
1272
|
+
* A device row is login history. Signing a device out revokes its live sessions
|
|
1273
|
+
* but keeps the row (shown as signed-out); "forget" also removes the row.
|
|
1274
|
+
*/
|
|
1275
|
+
|
|
1276
|
+
/** Coarse geo/network info resolved from the request IP (a lightweight subset). */
|
|
1277
|
+
interface IIpInfoLite {
|
|
1278
|
+
ip?: string;
|
|
1279
|
+
hostname?: string;
|
|
1280
|
+
country?: string;
|
|
1281
|
+
city?: string;
|
|
1282
|
+
region?: string;
|
|
1283
|
+
/** "lat,long" string, as provided by the IP lookup. */
|
|
1284
|
+
loc?: string;
|
|
1285
|
+
timezone?: string;
|
|
1286
|
+
}
|
|
1287
|
+
/** A device the current user has signed in from. */
|
|
1288
|
+
interface IDeviceView {
|
|
1289
|
+
/** Stable per-browser/app identifier (the `x-device-id` the client sends). */
|
|
1290
|
+
deviceId: string;
|
|
1291
|
+
/** User-editable label (falls back to a derived name). */
|
|
1292
|
+
name: string;
|
|
1293
|
+
/** IP the device was last seen from. */
|
|
1294
|
+
ip: string;
|
|
1295
|
+
/** Resolved geo/network info for `ip`, when available. */
|
|
1296
|
+
ipInfo: IIpInfoLite | null;
|
|
1297
|
+
userAgent: string;
|
|
1298
|
+
origin: string;
|
|
1299
|
+
/** Whether the user marked this device trusted (longer sessions, fewer prompts). */
|
|
1300
|
+
trusted: boolean;
|
|
1301
|
+
/** ISO string — first time this device was seen. */
|
|
1302
|
+
firstSeenAt?: string;
|
|
1303
|
+
/** ISO string — most recent activity from this device. */
|
|
1304
|
+
lastActiveAt?: string;
|
|
1305
|
+
/** True when this is the device the request came from. */
|
|
1306
|
+
current: boolean;
|
|
1307
|
+
/** Number of live sessions currently on this device. */
|
|
1308
|
+
activeSessions: number;
|
|
1309
|
+
/** Whether this device has an active push-notification subscription. */
|
|
1310
|
+
pushEnabled: boolean;
|
|
1311
|
+
}
|
|
1312
|
+
declare class DevicesApi extends BaseApi {
|
|
1313
|
+
constructor(config: Pick<IOsConfig, 'serverUrl' | 'version'> & {
|
|
1314
|
+
sessionId?: string;
|
|
1315
|
+
});
|
|
1316
|
+
/** List the devices the current user has signed in from. */
|
|
1317
|
+
list(signal?: AbortSignal): Promise<IDeviceView[]>;
|
|
1318
|
+
/** Rename a device (its user-facing label). */
|
|
1319
|
+
rename(deviceId: string, name: string, signal?: AbortSignal): Promise<void>;
|
|
1320
|
+
/**
|
|
1321
|
+
* Sign a device out: revoke every live session born on it. The device stays
|
|
1322
|
+
* in the list as a signed-out device. Returns the number of sessions revoked.
|
|
1323
|
+
*/
|
|
1324
|
+
signOut(deviceId: string, signal?: AbortSignal): Promise<{
|
|
1325
|
+
revokedSessions: number;
|
|
1326
|
+
}>;
|
|
1327
|
+
/**
|
|
1328
|
+
* Forget a device: sign it out AND remove the history row entirely.
|
|
1329
|
+
* Returns the number of sessions revoked in the process.
|
|
1330
|
+
*/
|
|
1331
|
+
forget(deviceId: string, signal?: AbortSignal): Promise<{
|
|
1332
|
+
revokedSessions: number;
|
|
1333
|
+
}>;
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1267
1336
|
declare class PushApi extends BaseApi {
|
|
1268
1337
|
constructor(config: Pick<IBaseApiConfig, 'serverUrl' | 'version' | 'orgId' | 'sessionId'>);
|
|
1269
1338
|
getVapidPublicKey(): Promise<{
|
|
@@ -1279,6 +1348,51 @@ declare class PushApi extends BaseApi {
|
|
|
1279
1348
|
unsubscribe(endpoint: string): Promise<void>;
|
|
1280
1349
|
}
|
|
1281
1350
|
|
|
1351
|
+
/**
|
|
1352
|
+
* API client for the signed-in user's active sessions. Session-authed
|
|
1353
|
+
* (x-session-id), scoped to the current user. Extends BaseApi for shared
|
|
1354
|
+
* URL/auth/request handling.
|
|
1355
|
+
*
|
|
1356
|
+
* The raw session id is never exposed — a session's public handle is its
|
|
1357
|
+
* mirror-row id (`ISessionView.id`), which is what `revoke` takes.
|
|
1358
|
+
* "Sign out everywhere" / "sign out current" stay on the auth logout flow.
|
|
1359
|
+
*/
|
|
1360
|
+
|
|
1361
|
+
/** One live session of the current user, joined to its device's label. */
|
|
1362
|
+
interface ISessionView {
|
|
1363
|
+
/** Public handle (mirror-row id) — NOT the raw session id. Use for `revoke`. */
|
|
1364
|
+
id: string;
|
|
1365
|
+
/** The device this session was born on. */
|
|
1366
|
+
deviceId: string;
|
|
1367
|
+
/** OAuth client id, or 'first-party' for a normal app sign-in. */
|
|
1368
|
+
clientId: string;
|
|
1369
|
+
ip: string;
|
|
1370
|
+
ipInfo: IIpInfoLite | null;
|
|
1371
|
+
userAgent: string;
|
|
1372
|
+
origin: string;
|
|
1373
|
+
/** ISO string. */
|
|
1374
|
+
createdAt?: string;
|
|
1375
|
+
/** ISO string. */
|
|
1376
|
+
lastActiveAt?: string;
|
|
1377
|
+
/** ISO string — when the session expires (reflects the org session policy). */
|
|
1378
|
+
expiresAt?: string;
|
|
1379
|
+
/** True when this is the session making the request. */
|
|
1380
|
+
current: boolean;
|
|
1381
|
+
/** The device's label only; ip/userAgent/etc. live on the session itself. */
|
|
1382
|
+
device: {
|
|
1383
|
+
name: string;
|
|
1384
|
+
} | null;
|
|
1385
|
+
}
|
|
1386
|
+
declare class SessionsApi extends BaseApi {
|
|
1387
|
+
constructor(config: Pick<IOsConfig, 'serverUrl' | 'version'> & {
|
|
1388
|
+
sessionId?: string;
|
|
1389
|
+
});
|
|
1390
|
+
/** List the current user's live sessions (each joined to its device label). */
|
|
1391
|
+
list(signal?: AbortSignal): Promise<ISessionView[]>;
|
|
1392
|
+
/** Sign out one session by its public handle (`ISessionView.id`). */
|
|
1393
|
+
revoke(id: string, signal?: AbortSignal): Promise<void>;
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1282
1396
|
/**
|
|
1283
1397
|
* Centralized API client for organization (OS) settings.
|
|
1284
1398
|
* Extends BaseApi for shared URL/auth/request handling.
|
|
@@ -2366,11 +2480,41 @@ interface SDKMessages {
|
|
|
2366
2480
|
renamePlaceholder: string;
|
|
2367
2481
|
lastUsed: string;
|
|
2368
2482
|
added: string;
|
|
2483
|
+
devicesTitle: string;
|
|
2484
|
+
devicesDescription: string;
|
|
2485
|
+
devicesEmpty: string;
|
|
2486
|
+
devicesLoadFailed: string;
|
|
2487
|
+
deviceCurrent: string;
|
|
2488
|
+
deviceTrusted: string;
|
|
2489
|
+
deviceActiveSessions: string;
|
|
2490
|
+
devicePushEnabled: string;
|
|
2491
|
+
deviceLastActive: string;
|
|
2492
|
+
deviceRename: string;
|
|
2493
|
+
deviceRenamePlaceholder: string;
|
|
2494
|
+
deviceRenameFailed: string;
|
|
2495
|
+
deviceSave: string;
|
|
2496
|
+
deviceCancel: string;
|
|
2497
|
+
deviceSignOut: string;
|
|
2498
|
+
deviceSignOutFailed: string;
|
|
2499
|
+
deviceForget: string;
|
|
2500
|
+
deviceForgetFailed: string;
|
|
2501
|
+
deviceForgetConfirmTitle: string;
|
|
2502
|
+
deviceForgetConfirmBody: string;
|
|
2503
|
+
sessionsTitle: string;
|
|
2504
|
+
sessionsDescription: string;
|
|
2505
|
+
sessionsEmpty: string;
|
|
2506
|
+
sessionsLoadFailed: string;
|
|
2507
|
+
sessionCurrent: string;
|
|
2508
|
+
sessionExpires: string;
|
|
2509
|
+
sessionLastActive: string;
|
|
2510
|
+
sessionSignOut: string;
|
|
2511
|
+
sessionSignOutFailed: string;
|
|
2369
2512
|
};
|
|
2370
2513
|
settings: {
|
|
2371
2514
|
titles: {
|
|
2372
2515
|
profile: string;
|
|
2373
2516
|
security: string;
|
|
2517
|
+
devices: string;
|
|
2374
2518
|
general: string;
|
|
2375
2519
|
users: string;
|
|
2376
2520
|
subscription: string;
|
|
@@ -2386,6 +2530,7 @@ interface SDKMessages {
|
|
|
2386
2530
|
workspace: string;
|
|
2387
2531
|
profile: string;
|
|
2388
2532
|
security: string;
|
|
2533
|
+
devices: string;
|
|
2389
2534
|
general: string;
|
|
2390
2535
|
users: string;
|
|
2391
2536
|
subscription: string;
|
|
@@ -3121,6 +3266,7 @@ declare function useMcpConnection(): McpConnectionConfig | null;
|
|
|
3121
3266
|
declare const SettingsScreen: {
|
|
3122
3267
|
readonly Profile: "profile";
|
|
3123
3268
|
readonly Security: "security";
|
|
3269
|
+
readonly Devices: "devices";
|
|
3124
3270
|
readonly ConnectedAgents: "connected-agents";
|
|
3125
3271
|
readonly General: "general";
|
|
3126
3272
|
readonly Users: "users";
|
|
@@ -3169,6 +3315,19 @@ interface SDKUIConfig {
|
|
|
3169
3315
|
passkeyRename?: boolean;
|
|
3170
3316
|
passkeyDelete?: boolean;
|
|
3171
3317
|
};
|
|
3318
|
+
/** Devices & sessions screen — hide row actions and the sessions block. */
|
|
3319
|
+
devices?: {
|
|
3320
|
+
/** Rename a device. */
|
|
3321
|
+
rename?: boolean;
|
|
3322
|
+
/** Sign a device out (revoke its live sessions). */
|
|
3323
|
+
signOut?: boolean;
|
|
3324
|
+
/** Remove ("forget") a device. */
|
|
3325
|
+
forget?: boolean;
|
|
3326
|
+
/** The active-sessions list shown below the devices. */
|
|
3327
|
+
sessions?: boolean;
|
|
3328
|
+
/** Sign out an individual session (per-row action in the sessions list). */
|
|
3329
|
+
sessionSignOut?: boolean;
|
|
3330
|
+
};
|
|
3172
3331
|
/** General screen — hide workspace editing affordances. */
|
|
3173
3332
|
general?: {
|
|
3174
3333
|
nameEdit?: boolean;
|
|
@@ -3737,6 +3896,115 @@ interface ConnectMcpGuideProps {
|
|
|
3737
3896
|
*/
|
|
3738
3897
|
declare function ConnectMcpGuide({ config, title, description, className }: ConnectMcpGuideProps): react_jsx_runtime.JSX.Element | null;
|
|
3739
3898
|
|
|
3899
|
+
/** Memoized DevicesApi instance. Recreates only when serverUrl/version change. */
|
|
3900
|
+
declare function useDevicesApi(): DevicesApi;
|
|
3901
|
+
|
|
3902
|
+
interface UseDevices {
|
|
3903
|
+
/** The devices the current user has signed in from (most recent first). */
|
|
3904
|
+
devices: IDeviceView[];
|
|
3905
|
+
/** True while the initial list is loading. */
|
|
3906
|
+
loading: boolean;
|
|
3907
|
+
/** Error message from the last list/mutation, if any. */
|
|
3908
|
+
error: string | null;
|
|
3909
|
+
/** The deviceId currently being mutated (rename/sign-out/forget), or null. */
|
|
3910
|
+
busyId: string | null;
|
|
3911
|
+
/** Re-fetch the list. */
|
|
3912
|
+
refresh: () => Promise<void>;
|
|
3913
|
+
/** Rename a device, then update it in place. */
|
|
3914
|
+
rename: (deviceId: string, name: string) => Promise<void>;
|
|
3915
|
+
/** Sign a device out (revoke its sessions); it stays in the list. */
|
|
3916
|
+
signOut: (deviceId: string) => Promise<void>;
|
|
3917
|
+
/** Forget a device: sign it out AND drop it from the list. */
|
|
3918
|
+
forget: (deviceId: string) => Promise<void>;
|
|
3919
|
+
}
|
|
3920
|
+
/**
|
|
3921
|
+
* Headless data + actions for a "Devices" screen. Session-authed and scoped to
|
|
3922
|
+
* the signed-in user. Wrap your UI around it, or use the ready-made
|
|
3923
|
+
* `<Devices />` component.
|
|
3924
|
+
*/
|
|
3925
|
+
declare function useDevices(): UseDevices;
|
|
3926
|
+
|
|
3927
|
+
interface DevicesProps {
|
|
3928
|
+
/** Extra classes for the root element. */
|
|
3929
|
+
className?: string;
|
|
3930
|
+
/** Heading text. Defaults to the translated title; set to null to hide. */
|
|
3931
|
+
title?: string | null;
|
|
3932
|
+
/** Sub-heading under the title. Defaults to the translated description; null to hide. */
|
|
3933
|
+
description?: string | null;
|
|
3934
|
+
/** Show the Rename action. Defaults to the `settings.devices.rename` UI config (visible). */
|
|
3935
|
+
showRename?: boolean;
|
|
3936
|
+
/** Show the Sign out action. Defaults to the `settings.devices.signOut` UI config (visible). */
|
|
3937
|
+
showSignOut?: boolean;
|
|
3938
|
+
/** Show the Remove ("forget") action. Defaults to the `settings.devices.forget` UI config (visible). */
|
|
3939
|
+
showRemove?: boolean;
|
|
3940
|
+
/** Override the Rename button label. */
|
|
3941
|
+
renameLabel?: string;
|
|
3942
|
+
/** Override the Sign out button label. */
|
|
3943
|
+
signOutLabel?: string;
|
|
3944
|
+
/** Override the Remove button label. */
|
|
3945
|
+
removeLabel?: string;
|
|
3946
|
+
/** Text shown when the user has no devices. */
|
|
3947
|
+
emptyLabel?: string;
|
|
3948
|
+
}
|
|
3949
|
+
/**
|
|
3950
|
+
* A ready-made "Devices" screen: lists the devices the signed-in user has
|
|
3951
|
+
* signed in from, with rename, sign-out (revoke a device's sessions) and remove
|
|
3952
|
+
* (also drop the row) actions. The device the request came from is badged
|
|
3953
|
+
* "This device". Session-authed and scoped to the current user — no config
|
|
3954
|
+
* beyond having the app wrapped in <SaaSOSProvider>.
|
|
3955
|
+
*
|
|
3956
|
+
* For a fully custom UI, use the `useDevices()` hook.
|
|
3957
|
+
*/
|
|
3958
|
+
declare function Devices({ className, title, description, showRename, showSignOut, showRemove, renameLabel, signOutLabel, removeLabel, emptyLabel, }: DevicesProps): react_jsx_runtime.JSX.Element;
|
|
3959
|
+
|
|
3960
|
+
/** Memoized SessionsApi instance. Recreates only when serverUrl/version change. */
|
|
3961
|
+
declare function useSessionsApi(): SessionsApi;
|
|
3962
|
+
|
|
3963
|
+
interface UseSessions {
|
|
3964
|
+
/** The current user's live sessions. */
|
|
3965
|
+
sessions: ISessionView[];
|
|
3966
|
+
/** True while the initial list is loading. */
|
|
3967
|
+
loading: boolean;
|
|
3968
|
+
/** Error message from the last list/revoke, if any. */
|
|
3969
|
+
error: string | null;
|
|
3970
|
+
/** The session handle currently being revoked, or null. */
|
|
3971
|
+
revoking: string | null;
|
|
3972
|
+
/** Re-fetch the list. */
|
|
3973
|
+
refresh: () => Promise<void>;
|
|
3974
|
+
/** Sign out one session by its public handle, then drop it from the list. */
|
|
3975
|
+
revoke: (id: string) => Promise<void>;
|
|
3976
|
+
}
|
|
3977
|
+
/**
|
|
3978
|
+
* Headless data + actions for an "Active sessions" screen. Session-authed and
|
|
3979
|
+
* scoped to the signed-in user. Wrap your UI around it, or use the ready-made
|
|
3980
|
+
* `<Sessions />` component.
|
|
3981
|
+
*/
|
|
3982
|
+
declare function useSessions(): UseSessions;
|
|
3983
|
+
|
|
3984
|
+
interface SessionsProps {
|
|
3985
|
+
/** Extra classes for the root element. */
|
|
3986
|
+
className?: string;
|
|
3987
|
+
/** Heading text. Defaults to the translated title; set to null to hide. */
|
|
3988
|
+
title?: string | null;
|
|
3989
|
+
/** Sub-heading under the title. Defaults to the translated description; null to hide. */
|
|
3990
|
+
description?: string | null;
|
|
3991
|
+
/** Show the per-session Sign out action. Defaults to the `settings.devices.sessionSignOut` UI config (visible). */
|
|
3992
|
+
showSignOut?: boolean;
|
|
3993
|
+
/** Override the Sign out button label. */
|
|
3994
|
+
signOutLabel?: string;
|
|
3995
|
+
/** Text shown when there are no active sessions. */
|
|
3996
|
+
emptyLabel?: string;
|
|
3997
|
+
}
|
|
3998
|
+
/**
|
|
3999
|
+
* A ready-made "Active sessions" screen: lists the signed-in user's live
|
|
4000
|
+
* sessions and lets them sign out any that isn't the current one. Session-authed
|
|
4001
|
+
* and scoped to the current user — no config beyond having the app wrapped in
|
|
4002
|
+
* <SaaSOSProvider>.
|
|
4003
|
+
*
|
|
4004
|
+
* For a fully custom UI, use the `useSessions()` hook.
|
|
4005
|
+
*/
|
|
4006
|
+
declare function Sessions({ className, title, description, showSignOut, signOutLabel, emptyLabel, }: SessionsProps): react_jsx_runtime.JSX.Element;
|
|
4007
|
+
|
|
3740
4008
|
interface IProps {
|
|
3741
4009
|
slug: string;
|
|
3742
4010
|
children: React.ReactNode;
|
|
@@ -6233,5 +6501,5 @@ declare class WorkspaceSettingsManager {
|
|
|
6233
6501
|
}
|
|
6234
6502
|
declare const workspaceSettingsManager: WorkspaceSettingsManager;
|
|
6235
6503
|
|
|
6236
|
-
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, 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, 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, useExpiringCredits, useFullScreenLoader, useInvoice, useInvoices, useMcpConnection, usePermissions, usePlanGroup, usePlanGroupVersions, usePublicCreditPackages, usePublicPlanGroupVersion, usePublicPlans, usePurchaseCredits, usePushNotifications, useQuotaUsageContext, useQuotaUsageStatus, useRecordUsage, useResumeSubscription, useSaaSAuth, useSaaSOs, useSaaSSettings, useSaaSWorkspaces, useSeatStatus, useSubscription, useSubscriptionContext, useSubscriptionManagement, useTranslation, useTrialStatus, useUIConfig, useUIVisibility, useUpdateSubscription, useUsageLogs, useUserAttributes, useUserFeatures, validateInvite, validateRedirectUrl, workspaceSettingsManager };
|
|
6237
|
-
export type { BBActionType, BBScreenType, BBStatusType, BetaFormData, BetaFormResponse, BillingInterval, SaaSOSProviderProps as BuildBaseProviderProps, CheckoutResult, ConnectMcpGuideProps, ConnectedAgentsProps, CreditActionsDetails, CreditBalanceContextValue, CreditBalanceDetails, CreditBucketSourceType, CreditBucketStatusType, CreditStorePageDetails, CreditTransactionTypeValue, 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, IEventCallbacks, IExpiringCreditsResponse, IInvoice, IInvoiceListResponse, IInvoiceResponse, 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, 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, SettingsManagerState, SidebarNavItemProps, SidebarNavSectionProps, StatusBannerProps, StatusBannerVariant, SubscriptionContextValue, SubscriptionItemTypeValue, SubscriptionStatusType, TranslationKey, TrialStatus, UseConnectedAgents, UserCreatedEventData, UserUpdatedEventData, WorkspaceChangedEventData, WorkspaceCreatedEventData, WorkspaceDeletedEventData, WorkspaceSettingsSection, WorkspaceUpdatedEventData, WorkspaceUserAddedEventData, WorkspaceUserRemovedEventData, WorkspaceUserRoleChangedEventData };
|
|
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 };
|
package/dist/react/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{
|
|
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";
|