@bpinternal/billing-ui 0.15.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -61,6 +61,8 @@ export declare type AddonsSummaryCardProps = {
61
61
  className?: string;
62
62
  };
63
63
 
64
+ export declare const AgentsIcon: ({ size, ...props }: IconProps) => JSX.Element;
65
+
64
66
  export declare const ArrowRightIcon: ({ size, ...props }: IconProps) => JSX.Element;
65
67
 
66
68
  export declare const AutoRechargeDialog: ({ open, onOpenChange, onSuccess, onUpgrade }: AutoRechargeDialogProps) => JSX.Element;
@@ -255,9 +257,9 @@ export declare type BillingProviderProps = {
255
257
  featureLabels?: Record<string, (quantity: number) => string>;
256
258
  /**
257
259
  * Workspace billing version (from the generic client's `getWorkspace().billingVersion`).
258
- * Smaug only serves v4 — any other value makes the dialogs render a
259
- * "manage billing in Dashboard" gate instead of the self-serve flow.
260
- * Omit if the host app gates on the version itself.
260
+ * Pre-Smaug versions (v1-v3) make the dialogs render a "manage billing in
261
+ * Dashboard" gate instead of the self-serve flow; v4 (Smaug) and later render
262
+ * the self-serve flow. Omit if the host app gates on the version itself.
261
263
  */
262
264
  billingVersion?: string;
263
265
  /**
@@ -454,6 +456,8 @@ declare type IconProps = SVGProps<SVGSVGElement> & {
454
456
  size?: number;
455
457
  };
456
458
 
459
+ export declare const InboxIcon: ({ size, ...props }: IconProps) => JSX.Element;
460
+
457
461
  export declare const InfinityIcon: ({ size, ...props }: IconProps) => JSX.Element;
458
462
 
459
463
  /**
@@ -491,6 +495,9 @@ export declare type InvoicesDialogProps = {
491
495
  onOpenChange: (open: boolean) => void;
492
496
  };
493
497
 
498
+ /** v4 (Smaug) and later (e.g. v5) are all self-serve — only v1-v3 are legacy. */
499
+ export declare function isLegacyBillingVersion(version: string): boolean;
500
+
494
501
  export declare const LayersIcon: ({ size, ...props }: IconProps) => JSX.Element;
495
502
 
496
503
  export declare type LimitPreviewRow = {
@@ -615,6 +622,10 @@ export declare const PLAN_FEATURE_KEYS: {
615
622
  label: "planFeatureBotpressStudioAdk";
616
623
  desc: "planFeatureDescBotpressStudioAdk";
617
624
  };
625
+ 'Botpress Viber': {
626
+ label: "planFeatureBotpressViber";
627
+ desc: "planFeatureDescBotpressViber";
628
+ };
618
629
  'Help center': {
619
630
  label: "planFeatureHelpCenter";
620
631
  desc: "planFeatureDescHelpCenter";
@@ -655,10 +666,6 @@ export declare const PLAN_FEATURE_KEYS: {
655
666
  label: "planFeature5gbVectorDb";
656
667
  desc: "planFeatureDesc5gbVectorDb";
657
668
  };
658
- 'Community support': {
659
- label: "planFeatureCommunitySupport";
660
- desc: "planFeatureDescCommunitySupport";
661
- };
662
669
  'Unlimited AI agents': {
663
670
  label: "planFeatureUnlimitedAiAgents";
664
671
  desc: "planFeatureDescUnlimitedAiAgents";