@schematichq/schematic-components 0.3.14 → 0.4.0-rc.10

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.
@@ -111,6 +111,103 @@ declare interface BillingPriceResponseData {
111
111
  price: number;
112
112
  }
113
113
 
114
+ /**
115
+ * Schematic API
116
+ * Schematic API
117
+ *
118
+ * The version of the OpenAPI document: 0.1
119
+ *
120
+ *
121
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
122
+ * https://openapi-generator.tech
123
+ * Do not edit the class manually.
124
+ */
125
+ /**
126
+ *
127
+ * @export
128
+ * @interface BillingPriceView
129
+ */
130
+ declare interface BillingPriceView {
131
+ /**
132
+ *
133
+ * @type {Date}
134
+ * @memberof BillingPriceView
135
+ */
136
+ createdAt: Date;
137
+ /**
138
+ *
139
+ * @type {string}
140
+ * @memberof BillingPriceView
141
+ */
142
+ currency: string;
143
+ /**
144
+ *
145
+ * @type {string}
146
+ * @memberof BillingPriceView
147
+ */
148
+ id: string;
149
+ /**
150
+ *
151
+ * @type {string}
152
+ * @memberof BillingPriceView
153
+ */
154
+ interval: string;
155
+ /**
156
+ *
157
+ * @type {string}
158
+ * @memberof BillingPriceView
159
+ */
160
+ meterId?: string | null;
161
+ /**
162
+ *
163
+ * @type {number}
164
+ * @memberof BillingPriceView
165
+ */
166
+ price: number;
167
+ /**
168
+ *
169
+ * @type {string}
170
+ * @memberof BillingPriceView
171
+ */
172
+ priceExternalId: string;
173
+ /**
174
+ *
175
+ * @type {string}
176
+ * @memberof BillingPriceView
177
+ */
178
+ priceId: string;
179
+ /**
180
+ *
181
+ * @type {string}
182
+ * @memberof BillingPriceView
183
+ */
184
+ productExternalId: string;
185
+ /**
186
+ *
187
+ * @type {string}
188
+ * @memberof BillingPriceView
189
+ */
190
+ productId: string;
191
+ /**
192
+ *
193
+ * @type {string}
194
+ * @memberof BillingPriceView
195
+ */
196
+ productName: string;
197
+ /**
198
+ *
199
+ * @type {Date}
200
+ * @memberof BillingPriceView
201
+ */
202
+ updatedAt: Date;
203
+ /**
204
+ *
205
+ * @type {string}
206
+ * @memberof BillingPriceView
207
+ */
208
+ usageType: string;
209
+ }
210
+
114
211
  /**
115
212
  *
116
213
  * @export
@@ -262,6 +359,12 @@ declare interface BillingProductForSubscriptionResponseData {
262
359
  * @memberof BillingProductForSubscriptionResponseData
263
360
  */
264
361
  priceExternalId: string;
362
+ /**
363
+ *
364
+ * @type {string}
365
+ * @memberof BillingProductForSubscriptionResponseData
366
+ */
367
+ priceId: string;
265
368
  /**
266
369
  *
267
370
  * @type {number}
@@ -288,6 +391,109 @@ declare interface BillingProductForSubscriptionResponseData {
288
391
  usageType: string;
289
392
  }
290
393
 
394
+ /**
395
+ * Schematic API
396
+ * Schematic API
397
+ *
398
+ * The version of the OpenAPI document: 0.1
399
+ *
400
+ *
401
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
402
+ * https://openapi-generator.tech
403
+ * Do not edit the class manually.
404
+ */
405
+ /**
406
+ *
407
+ * @export
408
+ * @interface BillingSubscriptionDiscountView
409
+ */
410
+ declare interface BillingSubscriptionDiscountView {
411
+ /**
412
+ *
413
+ * @type {number}
414
+ * @memberof BillingSubscriptionDiscountView
415
+ */
416
+ amountOff?: number | null;
417
+ /**
418
+ *
419
+ * @type {string}
420
+ * @memberof BillingSubscriptionDiscountView
421
+ */
422
+ couponId: string;
423
+ /**
424
+ *
425
+ * @type {string}
426
+ * @memberof BillingSubscriptionDiscountView
427
+ */
428
+ couponName: string;
429
+ /**
430
+ *
431
+ * @type {string}
432
+ * @memberof BillingSubscriptionDiscountView
433
+ */
434
+ currency?: string | null;
435
+ /**
436
+ *
437
+ * @type {string}
438
+ * @memberof BillingSubscriptionDiscountView
439
+ */
440
+ customerFacingCode?: string | null;
441
+ /**
442
+ *
443
+ * @type {string}
444
+ * @memberof BillingSubscriptionDiscountView
445
+ */
446
+ discountExternalId: string;
447
+ /**
448
+ *
449
+ * @type {string}
450
+ * @memberof BillingSubscriptionDiscountView
451
+ */
452
+ duration: string;
453
+ /**
454
+ *
455
+ * @type {number}
456
+ * @memberof BillingSubscriptionDiscountView
457
+ */
458
+ durationInMonths?: number | null;
459
+ /**
460
+ *
461
+ * @type {Date}
462
+ * @memberof BillingSubscriptionDiscountView
463
+ */
464
+ endedAt?: Date | null;
465
+ /**
466
+ *
467
+ * @type {boolean}
468
+ * @memberof BillingSubscriptionDiscountView
469
+ */
470
+ isActive: boolean;
471
+ /**
472
+ *
473
+ * @type {number}
474
+ * @memberof BillingSubscriptionDiscountView
475
+ */
476
+ percentOff?: number | null;
477
+ /**
478
+ *
479
+ * @type {string}
480
+ * @memberof BillingSubscriptionDiscountView
481
+ */
482
+ promoCodeExternalId?: string | null;
483
+ /**
484
+ *
485
+ * @type {Date}
486
+ * @memberof BillingSubscriptionDiscountView
487
+ */
488
+ startedAt: Date;
489
+ /**
490
+ *
491
+ * @type {string}
492
+ * @memberof BillingSubscriptionDiscountView
493
+ */
494
+ subscriptionExternalId: string;
495
+ }
496
+
291
497
  /**
292
498
  * Schematic API
293
499
  * Schematic API
@@ -383,6 +589,12 @@ declare interface BillingSubscriptionResponseData {
383
589
  * @memberof BillingSubscriptionResponseData
384
590
  */
385
591
  totalPrice: number;
592
+ /**
593
+ *
594
+ * @type {number}
595
+ * @memberof BillingSubscriptionResponseData
596
+ */
597
+ trialEnd?: number | null;
386
598
  }
387
599
 
388
600
  /**
@@ -415,6 +627,12 @@ declare interface BillingSubscriptionView {
415
627
  * @memberof BillingSubscriptionView
416
628
  */
417
629
  customerExternalId: string;
630
+ /**
631
+ *
632
+ * @type {Array<BillingSubscriptionDiscountView>}
633
+ * @memberof BillingSubscriptionView
634
+ */
635
+ discounts: Array<BillingSubscriptionDiscountView>;
418
636
  /**
419
637
  *
420
638
  * @type {Date}
@@ -487,6 +705,12 @@ declare interface BillingSubscriptionView {
487
705
  * @memberof BillingSubscriptionView
488
706
  */
489
707
  totalPrice: number;
708
+ /**
709
+ *
710
+ * @type {number}
711
+ * @memberof BillingSubscriptionView
712
+ */
713
+ trialEnd?: number | null;
490
714
  }
491
715
 
492
716
  declare class BlobApiResponse {
@@ -495,11 +719,20 @@ declare class BlobApiResponse {
495
719
  value(): Promise<Blob>;
496
720
  }
497
721
 
498
- export declare const Box: IStyledComponentBase<"web", Substitute<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ComponentProps>> & string;
722
+ export declare const Box: IStyledComponentBase<"web", Substitute<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, BoxProps>> & string;
499
723
 
500
- export declare type BoxProps = ComponentProps;
724
+ export declare type BoxProps = ComponentProps & {
725
+ $viewport?: {
726
+ sm?: TransientCSSProperties;
727
+ md?: TransientCSSProperties;
728
+ lg?: TransientCSSProperties;
729
+ xl?: TransientCSSProperties;
730
+ "2xl"?: TransientCSSProperties;
731
+ [key: string]: TransientCSSProperties | undefined;
732
+ };
733
+ };
501
734
 
502
- export declare const Button: ({ color, size, variant, disabled, isLoading, children, ...props }: ButtonProps) => JSX_2.Element;
735
+ export declare const Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>;
503
736
 
504
737
  export declare interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
505
738
  color?: ButtonStyleTypes;
@@ -549,18 +782,30 @@ declare interface ChangeSubscriptionRequestBody {
549
782
  * @memberof ChangeSubscriptionRequestBody
550
783
  */
551
784
  newPriceId: string;
785
+ /**
786
+ *
787
+ * @type {Array<UpdatePayInAdvanceRequestBody>}
788
+ * @memberof ChangeSubscriptionRequestBody
789
+ */
790
+ payInAdvance: Array<UpdatePayInAdvanceRequestBody>;
552
791
  /**
553
792
  *
554
793
  * @type {string}
555
794
  * @memberof ChangeSubscriptionRequestBody
556
795
  */
557
796
  paymentMethodId?: string | null;
797
+ /**
798
+ *
799
+ * @type {string}
800
+ * @memberof ChangeSubscriptionRequestBody
801
+ */
802
+ promoCode?: string | null;
558
803
  }
559
804
 
560
805
  /**
561
806
  *
562
807
  */
563
- declare class CheckoutApi extends runtime.BaseAPI {
808
+ declare class CheckoutexternalApi extends runtime.BaseAPI {
564
809
  /**
565
810
  * Checkout
566
811
  */
@@ -660,6 +905,12 @@ declare interface CompanyDetailResponseData {
660
905
  * @memberof CompanyDetailResponseData
661
906
  */
662
907
  addOns: Array<CompanyPlanWithBillingSubView>;
908
+ /**
909
+ *
910
+ * @type {BillingSubscriptionView}
911
+ * @memberof CompanyDetailResponseData
912
+ */
913
+ billingSubscription?: BillingSubscriptionView;
663
914
  /**
664
915
  *
665
916
  * @type {Array<BillingSubscriptionView>}
@@ -708,6 +959,12 @@ declare interface CompanyDetailResponseData {
708
959
  * @memberof CompanyDetailResponseData
709
960
  */
710
961
  logoUrl?: string | null;
962
+ /**
963
+ *
964
+ * @type {Array<CompanyEventPeriodMetricsResponseData>}
965
+ * @memberof CompanyDetailResponseData
966
+ */
967
+ metrics: Array<CompanyEventPeriodMetricsResponseData>;
711
968
  /**
712
969
  *
713
970
  * @type {string}
@@ -746,6 +1003,91 @@ declare interface CompanyDetailResponseData {
746
1003
  userCount: number;
747
1004
  }
748
1005
 
1006
+ /**
1007
+ * Schematic API
1008
+ * Schematic API
1009
+ *
1010
+ * The version of the OpenAPI document: 0.1
1011
+ *
1012
+ *
1013
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1014
+ * https://openapi-generator.tech
1015
+ * Do not edit the class manually.
1016
+ */
1017
+ /**
1018
+ *
1019
+ * @export
1020
+ * @interface CompanyEventPeriodMetricsResponseData
1021
+ */
1022
+ declare interface CompanyEventPeriodMetricsResponseData {
1023
+ /**
1024
+ *
1025
+ * @type {string}
1026
+ * @memberof CompanyEventPeriodMetricsResponseData
1027
+ */
1028
+ accountId: string;
1029
+ /**
1030
+ *
1031
+ * @type {Date}
1032
+ * @memberof CompanyEventPeriodMetricsResponseData
1033
+ */
1034
+ capturedAtMax: Date;
1035
+ /**
1036
+ *
1037
+ * @type {Date}
1038
+ * @memberof CompanyEventPeriodMetricsResponseData
1039
+ */
1040
+ capturedAtMin: Date;
1041
+ /**
1042
+ *
1043
+ * @type {string}
1044
+ * @memberof CompanyEventPeriodMetricsResponseData
1045
+ */
1046
+ companyId: string;
1047
+ /**
1048
+ *
1049
+ * @type {Date}
1050
+ * @memberof CompanyEventPeriodMetricsResponseData
1051
+ */
1052
+ createdAt: Date;
1053
+ /**
1054
+ *
1055
+ * @type {string}
1056
+ * @memberof CompanyEventPeriodMetricsResponseData
1057
+ */
1058
+ environmentId: string;
1059
+ /**
1060
+ *
1061
+ * @type {string}
1062
+ * @memberof CompanyEventPeriodMetricsResponseData
1063
+ */
1064
+ eventSubtype: string;
1065
+ /**
1066
+ *
1067
+ * @type {string}
1068
+ * @memberof CompanyEventPeriodMetricsResponseData
1069
+ */
1070
+ monthReset: string;
1071
+ /**
1072
+ *
1073
+ * @type {string}
1074
+ * @memberof CompanyEventPeriodMetricsResponseData
1075
+ */
1076
+ period: string;
1077
+ /**
1078
+ *
1079
+ * @type {Date}
1080
+ * @memberof CompanyEventPeriodMetricsResponseData
1081
+ */
1082
+ validUntil?: Date | null;
1083
+ /**
1084
+ *
1085
+ * @type {number}
1086
+ * @memberof CompanyEventPeriodMetricsResponseData
1087
+ */
1088
+ value: number;
1089
+ }
1090
+
749
1091
  /**
750
1092
  *
751
1093
  * @export
@@ -764,6 +1106,12 @@ declare interface CompanyPlanDetailResponseData {
764
1106
  * @memberof CompanyPlanDetailResponseData
765
1107
  */
766
1108
  billingProduct?: BillingProductDetailResponseData;
1109
+ /**
1110
+ *
1111
+ * @type {boolean}
1112
+ * @memberof CompanyPlanDetailResponseData
1113
+ */
1114
+ companyCanTrial: boolean;
767
1115
  /**
768
1116
  *
769
1117
  * @type {number}
@@ -818,6 +1166,18 @@ declare interface CompanyPlanDetailResponseData {
818
1166
  * @memberof CompanyPlanDetailResponseData
819
1167
  */
820
1168
  isDefault: boolean;
1169
+ /**
1170
+ *
1171
+ * @type {boolean}
1172
+ * @memberof CompanyPlanDetailResponseData
1173
+ */
1174
+ isFree: boolean;
1175
+ /**
1176
+ *
1177
+ * @type {boolean}
1178
+ * @memberof CompanyPlanDetailResponseData
1179
+ */
1180
+ isTrialable: boolean;
821
1181
  /**
822
1182
  *
823
1183
  * @type {BillingPriceResponseData}
@@ -836,6 +1196,12 @@ declare interface CompanyPlanDetailResponseData {
836
1196
  * @memberof CompanyPlanDetailResponseData
837
1197
  */
838
1198
  planType: string;
1199
+ /**
1200
+ *
1201
+ * @type {number}
1202
+ * @memberof CompanyPlanDetailResponseData
1203
+ */
1204
+ trialDays?: number | null;
839
1205
  /**
840
1206
  *
841
1207
  * @type {Date}
@@ -935,6 +1301,12 @@ declare interface CompanySubscriptionResponseData {
935
1301
  * @memberof CompanySubscriptionResponseData
936
1302
  */
937
1303
  customerExternalId: string;
1304
+ /**
1305
+ *
1306
+ * @type {Array<BillingSubscriptionDiscountView>}
1307
+ * @memberof CompanySubscriptionResponseData
1308
+ */
1309
+ discounts: Array<BillingSubscriptionDiscountView>;
938
1310
  /**
939
1311
  *
940
1312
  * @type {Date}
@@ -983,6 +1355,12 @@ declare interface CompanySubscriptionResponseData {
983
1355
  * @memberof CompanySubscriptionResponseData
984
1356
  */
985
1357
  totalPrice: number;
1358
+ /**
1359
+ *
1360
+ * @type {Date}
1361
+ * @memberof CompanySubscriptionResponseData
1362
+ */
1363
+ trialEnd?: Date | null;
986
1364
  }
987
1365
 
988
1366
  /**
@@ -1028,6 +1406,12 @@ declare interface ComponentHydrateResponseData {
1028
1406
  * @memberof ComponentHydrateResponseData
1029
1407
  */
1030
1408
  activePlans: Array<CompanyPlanDetailResponseData>;
1409
+ /**
1410
+ *
1411
+ * @type {Array<UsageBasedEntitlementResponseData>}
1412
+ * @memberof ComponentHydrateResponseData
1413
+ */
1414
+ activeUsageBasedEntitlements: Array<UsageBasedEntitlementResponseData>;
1031
1415
  /**
1032
1416
  *
1033
1417
  * @type {ComponentCapabilities}
@@ -1064,6 +1448,12 @@ declare interface ComponentHydrateResponseData {
1064
1448
  * @memberof ComponentHydrateResponseData
1065
1449
  */
1066
1450
  subscription?: CompanySubscriptionResponseData;
1451
+ /**
1452
+ *
1453
+ * @type {boolean}
1454
+ * @memberof ComponentHydrateResponseData
1455
+ */
1456
+ trialPaymentMethodRequired?: boolean | null;
1067
1457
  /**
1068
1458
  *
1069
1459
  * @type {InvoiceResponseData}
@@ -1196,6 +1586,7 @@ declare const _default: {
1196
1586
  "chevron-up": number;
1197
1587
  chip: number;
1198
1588
  chips: number;
1589
+ clerk: number;
1199
1590
  "close-rounded-filled": number;
1200
1591
  close: number;
1201
1592
  "cloud-up": number;
@@ -1219,6 +1610,7 @@ declare const _default: {
1219
1610
  "exclamation-rounded-filled": number;
1220
1611
  eye: number;
1221
1612
  filter: number;
1613
+ flask: number;
1222
1614
  "folder-minus": number;
1223
1615
  "folder-plus": number;
1224
1616
  folder: number;
@@ -1293,6 +1685,10 @@ declare interface DesignProps {
1293
1685
  isVisible: boolean;
1294
1686
  fontStyle: FontStyle;
1295
1687
  };
1688
+ entitlementExpiration: {
1689
+ isVisible: boolean;
1690
+ fontStyle: FontStyle;
1691
+ };
1296
1692
  usage: {
1297
1693
  isVisible: boolean;
1298
1694
  fontStyle: FontStyle;
@@ -1439,7 +1835,16 @@ declare interface DesignProps_7 {
1439
1835
  };
1440
1836
  }
1441
1837
 
1442
- declare const Element_2: IStyledComponentBase<"web", FastOmit<Omit<FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ComponentProps> & ComponentProps, "ref"> & {
1838
+ declare const Element_2: IStyledComponentBase<"web", FastOmit<Omit<FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ComponentProps | "$viewport"> & ComponentProps & {
1839
+ $viewport?: {
1840
+ sm?: TransientCSSProperties;
1841
+ md?: TransientCSSProperties;
1842
+ lg?: TransientCSSProperties;
1843
+ xl?: TransientCSSProperties;
1844
+ "2xl"?: TransientCSSProperties;
1845
+ [key: string]: TransientCSSProperties | undefined;
1846
+ };
1847
+ }, "ref"> & {
1443
1848
  ref?: ((instance: HTMLDivElement | null) => void | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | RefObject<HTMLDivElement> | null | undefined;
1444
1849
  }, never>> & string;
1445
1850
  export { Element_2 as Element }
@@ -1450,27 +1855,31 @@ declare interface ElementProps {
1450
1855
  style?: React.CSSProperties;
1451
1856
  }
1452
1857
 
1453
- export declare const EmbedButton: IStyledComponentBase<"web", Substitute<ButtonProps, {
1858
+ export declare const EmbedButton: IStyledComponentBase<"web", Substitute<Omit<ButtonProps & RefAttributes<HTMLButtonElement>, "ref"> & {
1859
+ ref?: ((instance: HTMLButtonElement | null) => void | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | RefObject<HTMLButtonElement> | null | undefined;
1860
+ }, {
1454
1861
  $size?: "sm" | "md" | "lg";
1455
- $color?: "primary" | "secondary";
1456
- $variant?: "outline" | "filled" | "text";
1457
- }>> & string & Omit<({ color, size, variant, disabled, isLoading, children, ...props }: ButtonProps) => JSX_2.Element, keyof Component<any, {}, any>>;
1862
+ $color?: "primary" | "secondary" | "danger";
1863
+ $variant?: "filled" | "outline" | "ghost" | "text";
1864
+ }>> & string & Omit<ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>, keyof Component<any, {}, any>>;
1458
1865
 
1459
1866
  export declare const EmbedContext: Context<EmbedContextProps>;
1460
1867
 
1461
1868
  export declare interface EmbedContextProps {
1462
- api: CheckoutApi | null;
1869
+ api: CheckoutexternalApi | null;
1463
1870
  data: ComponentHydrateResponseData;
1464
1871
  nodes: SerializedNodeWithChildren[];
1465
1872
  settings: EmbedSettings;
1466
1873
  layout: EmbedLayout;
1467
1874
  mode: EmbedMode;
1875
+ selected: EmbedSelected;
1468
1876
  error?: Error;
1469
1877
  isPending: boolean;
1470
1878
  hydrate: () => void;
1471
- setData: (data: RecursivePartial<ComponentHydrateResponseData>) => void;
1879
+ setData: (data: ComponentHydrateResponseData) => void;
1472
1880
  updateSettings: (settings: RecursivePartial<EmbedSettings>) => void;
1473
1881
  setLayout: (layout: EmbedLayout) => void;
1882
+ setSelected: (selected: EmbedSelected) => void;
1474
1883
  }
1475
1884
 
1476
1885
  export declare type EmbedLayout = "portal" | "checkout" | "payment" | "success" | "disabled";
@@ -1493,8 +1902,17 @@ export declare interface EmbedProviderProps {
1493
1902
  mode?: EmbedMode;
1494
1903
  }
1495
1904
 
1905
+ export declare type EmbedSelected = {
1906
+ period?: string;
1907
+ planId?: string | null;
1908
+ addOnId?: string | null;
1909
+ };
1910
+
1496
1911
  export declare type EmbedSettings = {
1497
1912
  theme: EmbedThemeSettings;
1913
+ badge?: {
1914
+ alignment: ComponentProps["$justifyContent"];
1915
+ };
1498
1916
  };
1499
1917
 
1500
1918
  export declare interface EmbedThemeSettings {
@@ -1503,6 +1921,7 @@ export declare interface EmbedThemeSettings {
1503
1921
  colorMode: "light" | "dark";
1504
1922
  primary: string;
1505
1923
  secondary: string;
1924
+ danger: string;
1506
1925
  card: {
1507
1926
  background: string;
1508
1927
  borderRadius: number;
@@ -2033,6 +2452,12 @@ declare interface FeatureUsageResponseData {
2033
2452
  * @memberof FeatureUsageResponseData
2034
2453
  */
2035
2454
  allocationType: FeatureUsageResponseDataAllocationTypeEnum;
2455
+ /**
2456
+ *
2457
+ * @type {Date}
2458
+ * @memberof FeatureUsageResponseData
2459
+ */
2460
+ entitlementExpirationDate?: Date | null;
2036
2461
  /**
2037
2462
  *
2038
2463
  * @type {string}
@@ -2051,6 +2476,24 @@ declare interface FeatureUsageResponseData {
2051
2476
  * @memberof FeatureUsageResponseData
2052
2477
  */
2053
2478
  feature?: FeatureDetailResponseData;
2479
+ /**
2480
+ * The time at which the metric will reset.
2481
+ * @type {Date}
2482
+ * @memberof FeatureUsageResponseData
2483
+ */
2484
+ metricResetAt?: Date | null;
2485
+ /**
2486
+ * If the period is current_month, when the month resets.
2487
+ * @type {string}
2488
+ * @memberof FeatureUsageResponseData
2489
+ */
2490
+ monthReset?: string | null;
2491
+ /**
2492
+ *
2493
+ * @type {BillingPriceView}
2494
+ * @memberof FeatureUsageResponseData
2495
+ */
2496
+ monthlyUsageBasedPrice?: BillingPriceView;
2054
2497
  /**
2055
2498
  * The period over which usage is measured.
2056
2499
  * @type {string}
@@ -2063,12 +2506,24 @@ declare interface FeatureUsageResponseData {
2063
2506
  * @memberof FeatureUsageResponseData
2064
2507
  */
2065
2508
  plan?: PlanResponseData;
2509
+ /**
2510
+ *
2511
+ * @type {string}
2512
+ * @memberof FeatureUsageResponseData
2513
+ */
2514
+ priceBehavior?: string | null;
2066
2515
  /**
2067
2516
  * The amount of usage that has been consumed; a null value indicates that usage is not being measured.
2068
2517
  * @type {number}
2069
2518
  * @memberof FeatureUsageResponseData
2070
2519
  */
2071
2520
  usage?: number | null;
2521
+ /**
2522
+ *
2523
+ * @type {BillingPriceView}
2524
+ * @memberof FeatureUsageResponseData
2525
+ */
2526
+ yearlyUsageBasedPrice?: BillingPriceView;
2072
2527
  }
2073
2528
 
2074
2529
  /**
@@ -2182,13 +2637,31 @@ declare interface FlagDetailResponseData {
2182
2637
  updatedAt: Date;
2183
2638
  }
2184
2639
 
2185
- export declare const Flex: IStyledComponentBase<"web", FastOmit<Omit<FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ComponentProps> & ComponentProps, "ref"> & {
2640
+ export declare const Flex: IStyledComponentBase<"web", FastOmit<Omit<FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ComponentProps | "$viewport"> & ComponentProps & {
2641
+ $viewport?: {
2642
+ sm?: TransientCSSProperties;
2643
+ md?: TransientCSSProperties;
2644
+ lg?: TransientCSSProperties;
2645
+ xl?: TransientCSSProperties;
2646
+ "2xl"?: TransientCSSProperties;
2647
+ [key: string]: TransientCSSProperties | undefined;
2648
+ };
2649
+ }, "ref"> & {
2186
2650
  ref?: ((instance: HTMLDivElement | null) => void | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | RefObject<HTMLDivElement> | null | undefined;
2187
2651
  }, never>> & string;
2188
2652
 
2189
2653
  export declare type FontStyle = keyof EmbedThemeSettings["typography"];
2190
2654
 
2191
- export declare const FussyChild: IStyledComponentBase<"web", FastOmit<FastOmit<Omit<FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ComponentProps> & ComponentProps, "ref"> & {
2655
+ export declare const FussyChild: IStyledComponentBase<"web", FastOmit<FastOmit<Omit<FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ComponentProps | "$viewport"> & ComponentProps & {
2656
+ $viewport?: {
2657
+ sm?: TransientCSSProperties;
2658
+ md?: TransientCSSProperties;
2659
+ lg?: TransientCSSProperties;
2660
+ xl?: TransientCSSProperties;
2661
+ "2xl"?: TransientCSSProperties;
2662
+ [key: string]: TransientCSSProperties | undefined;
2663
+ };
2664
+ }, "ref"> & {
2192
2665
  ref?: ((instance: HTMLDivElement | null) => void | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | RefObject<HTMLDivElement> | null | undefined;
2193
2666
  }, never>, never>> & string;
2194
2667
 
@@ -2313,7 +2786,7 @@ export declare interface IconProps extends React.HTMLAttributes<HTMLElement> {
2313
2786
  export declare const IconRound: ({ name, variant, size, colors, ...props }: IconRoundProps) => JSX_2.Element;
2314
2787
 
2315
2788
  export declare interface IconRoundProps extends React.HTMLAttributes<HTMLElement> {
2316
- name: IconNameTypes;
2789
+ name: IconNameTypes | string;
2317
2790
  variant?: "outline" | "filled";
2318
2791
  size?: "tn" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
2319
2792
  colors?: [string, string];
@@ -2540,7 +3013,7 @@ declare interface Middleware {
2540
3013
  onError?(context: ErrorContext): Promise<Response | void>;
2541
3014
  }
2542
3015
 
2543
- export declare const Modal: ({ children, size, onClose }: ModalProps) => JSX_2.Element;
3016
+ export declare const Modal: ForwardRefExoticComponent<ModalProps & RefAttributes<HTMLDivElement>>;
2544
3017
 
2545
3018
  export declare const ModalHeader: ({ children, bordered, onClose, }: ModalHeaderProps) => JSX_2.Element;
2546
3019
 
@@ -2550,9 +3023,11 @@ declare interface ModalHeaderProps {
2550
3023
  onClose?: () => void;
2551
3024
  }
2552
3025
 
2553
- declare interface ModalProps {
3026
+ declare interface ModalProps extends React.HTMLAttributes<HTMLElement> {
2554
3027
  children: React.ReactNode;
3028
+ contentRef?: React.RefObject<HTMLDivElement>;
2555
3029
  size?: "sm" | "md" | "lg" | "auto";
3030
+ top?: number;
2556
3031
  onClose?: () => void;
2557
3032
  }
2558
3033
 
@@ -2560,6 +3035,7 @@ declare type ModelPropertyNaming = "camelCase" | "snake_case" | "PascalCase" | "
2560
3035
 
2561
3036
  export declare const PaymentMethod: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_4> & HTMLAttributes<HTMLDivElement> & {
2562
3037
  portal?: HTMLElement | null;
3038
+ allowEdit?: boolean;
2563
3039
  } & RefAttributes<HTMLDivElement | null>>;
2564
3040
 
2565
3041
  export declare type PaymentMethodProps = DesignProps_4;
@@ -2727,12 +3203,30 @@ declare interface PlanEntitlementResponseData {
2727
3203
  * @memberof PlanEntitlementResponseData
2728
3204
  */
2729
3205
  id: string;
3206
+ /**
3207
+ *
3208
+ * @type {BillingPriceView}
3209
+ * @memberof PlanEntitlementResponseData
3210
+ */
3211
+ meteredMonthlyPrice?: BillingPriceView;
3212
+ /**
3213
+ *
3214
+ * @type {BillingPriceView}
3215
+ * @memberof PlanEntitlementResponseData
3216
+ */
3217
+ meteredYearlyPrice?: BillingPriceView;
2730
3218
  /**
2731
3219
  *
2732
3220
  * @type {string}
2733
3221
  * @memberof PlanEntitlementResponseData
2734
3222
  */
2735
3223
  metricPeriod?: string | null;
3224
+ /**
3225
+ *
3226
+ * @type {string}
3227
+ * @memberof PlanEntitlementResponseData
3228
+ */
3229
+ metricPeriodMonthReset?: string | null;
2736
3230
  /**
2737
3231
  *
2738
3232
  * @type {PlanResponseData}
@@ -2745,6 +3239,12 @@ declare interface PlanEntitlementResponseData {
2745
3239
  * @memberof PlanEntitlementResponseData
2746
3240
  */
2747
3241
  planId: string;
3242
+ /**
3243
+ *
3244
+ * @type {string}
3245
+ * @memberof PlanEntitlementResponseData
3246
+ */
3247
+ priceBehavior?: string | null;
2748
3248
  /**
2749
3249
  *
2750
3250
  * @type {string}
@@ -2862,6 +3362,8 @@ declare interface PlanResponseData {
2862
3362
  updatedAt: Date;
2863
3363
  }
2864
3364
 
3365
+ export declare type Position = "top" | "right" | "bottom" | "left";
3366
+
2865
3367
  declare interface PreviewCheckoutRequest {
2866
3368
  changeSubscriptionRequestBody: ChangeSubscriptionRequestBody;
2867
3369
  }
@@ -2989,6 +3491,12 @@ declare interface PreviewObjectResponseData {
2989
3491
  * @interface PreviewSubscriptionChangeResponseData
2990
3492
  */
2991
3493
  declare interface PreviewSubscriptionChangeResponseData {
3494
+ /**
3495
+ *
3496
+ * @type {number}
3497
+ * @memberof PreviewSubscriptionChangeResponseData
3498
+ */
3499
+ amountOff: number;
2992
3500
  /**
2993
3501
  *
2994
3502
  * @type {number}
@@ -3001,23 +3509,39 @@ declare interface PreviewSubscriptionChangeResponseData {
3001
3509
  * @memberof PreviewSubscriptionChangeResponseData
3002
3510
  */
3003
3511
  newCharges: number;
3512
+ /**
3513
+ *
3514
+ * @type {number}
3515
+ * @memberof PreviewSubscriptionChangeResponseData
3516
+ */
3517
+ percentOff: number;
3004
3518
  /**
3005
3519
  *
3006
3520
  * @type {Date}
3007
3521
  * @memberof PreviewSubscriptionChangeResponseData
3008
3522
  */
3009
3523
  periodStart: Date;
3524
+ /**
3525
+ *
3526
+ * @type {boolean}
3527
+ * @memberof PreviewSubscriptionChangeResponseData
3528
+ */
3529
+ promoCodeApplied: boolean;
3010
3530
  /**
3011
3531
  *
3012
3532
  * @type {number}
3013
3533
  * @memberof PreviewSubscriptionChangeResponseData
3014
3534
  */
3015
3535
  proration: number;
3536
+ /**
3537
+ *
3538
+ * @type {Date}
3539
+ * @memberof PreviewSubscriptionChangeResponseData
3540
+ */
3541
+ trialEnd?: Date | null;
3016
3542
  }
3017
3543
 
3018
- export declare const PricingTable: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_6> & HTMLAttributes<HTMLDivElement> & {
3019
- portal?: HTMLElement | null;
3020
- } & RefAttributes<HTMLDivElement | null>>;
3544
+ export declare const PricingTable: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_6> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
3021
3545
 
3022
3546
  export declare type PricingTableProps = DesignProps_6;
3023
3547
 
@@ -3031,6 +3555,8 @@ export declare interface ProgressBarProps extends React.ComponentPropsWithoutRef
3031
3555
  barWidth?: string | number;
3032
3556
  }
3033
3557
 
3558
+ export declare const progressColorMap: ("blue" | "red" | "yellow")[];
3559
+
3034
3560
  declare function querystring(params: HTTPQuery, prefix?: string): string;
3035
3561
 
3036
3562
  declare type RecursivePartial<T> = {
@@ -3147,6 +3673,12 @@ declare interface RuleConditionDetailResponseData {
3147
3673
  * @memberof RuleConditionDetailResponseData
3148
3674
  */
3149
3675
  metricPeriod?: string | null;
3676
+ /**
3677
+ *
3678
+ * @type {string}
3679
+ * @memberof RuleConditionDetailResponseData
3680
+ */
3681
+ metricPeriodMonthReset?: string | null;
3150
3682
  /**
3151
3683
  *
3152
3684
  * @type {number}
@@ -3482,14 +4014,16 @@ export declare interface TextProps extends ComponentProps {
3482
4014
  $size?: ComponentProps["$fontSize"];
3483
4015
  $weight?: ComponentProps["$fontWeight"];
3484
4016
  $color?: ComponentProps["$color"];
3485
- $lineHeight?: ComponentProps["$lineHeight"];
4017
+ $leading?: ComponentProps["$lineHeight"];
3486
4018
  }
3487
4019
 
3488
- export declare const Tooltip: ({ label, description }: TooltipProps) => JSX_2.Element;
4020
+ export declare const Tooltip: ({ trigger, content, position, zIndex, ...rest }: TooltipProps) => JSX_2.Element;
3489
4021
 
3490
- declare interface TooltipProps {
3491
- label: string;
3492
- description: string;
4022
+ export declare interface TooltipProps extends BoxProps {
4023
+ trigger: React.ReactNode;
4024
+ content: React.ReactNode;
4025
+ position?: Position;
4026
+ zIndex?: number;
3493
4027
  }
3494
4028
 
3495
4029
  declare type TransientCSSProperties = {
@@ -3538,6 +4072,37 @@ declare interface UpdateAddOnRequestBody {
3538
4072
  priceId: string;
3539
4073
  }
3540
4074
 
4075
+ /**
4076
+ * Schematic API
4077
+ * Schematic API
4078
+ *
4079
+ * The version of the OpenAPI document: 0.1
4080
+ *
4081
+ *
4082
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4083
+ * https://openapi-generator.tech
4084
+ * Do not edit the class manually.
4085
+ */
4086
+ /**
4087
+ *
4088
+ * @export
4089
+ * @interface UpdatePayInAdvanceRequestBody
4090
+ */
4091
+ declare interface UpdatePayInAdvanceRequestBody {
4092
+ /**
4093
+ *
4094
+ * @type {string}
4095
+ * @memberof UpdatePayInAdvanceRequestBody
4096
+ */
4097
+ priceId: string;
4098
+ /**
4099
+ *
4100
+ * @type {number}
4101
+ * @memberof UpdatePayInAdvanceRequestBody
4102
+ */
4103
+ quantity: number;
4104
+ }
4105
+
3541
4106
  declare interface UpdatePaymentMethodRequest {
3542
4107
  updatePaymentMethodRequestBody: UpdatePaymentMethodRequestBody;
3543
4108
  }
@@ -3587,11 +4152,68 @@ declare interface UpdatePaymentMethodResponse {
3587
4152
  params: object;
3588
4153
  }
3589
4154
 
4155
+ /**
4156
+ *
4157
+ * @export
4158
+ * @interface UsageBasedEntitlementResponseData
4159
+ */
4160
+ declare interface UsageBasedEntitlementResponseData {
4161
+ /**
4162
+ *
4163
+ * @type {string}
4164
+ * @memberof UsageBasedEntitlementResponseData
4165
+ */
4166
+ featureId: string;
4167
+ /**
4168
+ *
4169
+ * @type {BillingPriceView}
4170
+ * @memberof UsageBasedEntitlementResponseData
4171
+ */
4172
+ meteredPrice?: BillingPriceView;
4173
+ /**
4174
+ *
4175
+ * @type {string}
4176
+ * @memberof UsageBasedEntitlementResponseData
4177
+ */
4178
+ metricPeriod?: string | null;
4179
+ /**
4180
+ *
4181
+ * @type {string}
4182
+ * @memberof UsageBasedEntitlementResponseData
4183
+ */
4184
+ metricPeriodMonthReset?: string | null;
4185
+ /**
4186
+ *
4187
+ * @type {string}
4188
+ * @memberof UsageBasedEntitlementResponseData
4189
+ */
4190
+ priceBehavior?: string | null;
4191
+ /**
4192
+ *
4193
+ * @type {boolean}
4194
+ * @memberof UsageBasedEntitlementResponseData
4195
+ */
4196
+ valueBool?: boolean | null;
4197
+ /**
4198
+ *
4199
+ * @type {number}
4200
+ * @memberof UsageBasedEntitlementResponseData
4201
+ */
4202
+ valueNumeric?: number | null;
4203
+ /**
4204
+ *
4205
+ * @type {string}
4206
+ * @memberof UsageBasedEntitlementResponseData
4207
+ */
4208
+ valueType: string;
4209
+ }
4210
+
3590
4211
  export declare function useAvailablePlans(activePeriod: string): {
3591
4212
  plans: {
3592
4213
  isSelected: boolean;
3593
4214
  audienceType?: string | null;
3594
4215
  billingProduct?: BillingProductDetailResponseData;
4216
+ companyCanTrial: boolean;
3595
4217
  companyCount: number;
3596
4218
  createdAt: Date;
3597
4219
  current: boolean;
@@ -3601,9 +4223,12 @@ export declare function useAvailablePlans(activePeriod: string): {
3601
4223
  icon: string;
3602
4224
  id: string;
3603
4225
  isDefault: boolean;
4226
+ isFree: boolean;
4227
+ isTrialable: boolean;
3604
4228
  monthlyPrice?: BillingPriceResponseData;
3605
4229
  name: string;
3606
4230
  planType: string;
4231
+ trialDays?: number | null;
3607
4232
  updatedAt: Date;
3608
4233
  valid: boolean;
3609
4234
  yearlyPrice?: BillingPriceResponseData;
@@ -3612,6 +4237,7 @@ export declare function useAvailablePlans(activePeriod: string): {
3612
4237
  isSelected: boolean;
3613
4238
  audienceType?: string | null;
3614
4239
  billingProduct?: BillingProductDetailResponseData;
4240
+ companyCanTrial: boolean;
3615
4241
  companyCount: number;
3616
4242
  createdAt: Date;
3617
4243
  current: boolean;
@@ -3621,9 +4247,12 @@ export declare function useAvailablePlans(activePeriod: string): {
3621
4247
  icon: string;
3622
4248
  id: string;
3623
4249
  isDefault: boolean;
4250
+ isFree: boolean;
4251
+ isTrialable: boolean;
3624
4252
  monthlyPrice?: BillingPriceResponseData;
3625
4253
  name: string;
3626
4254
  planType: string;
4255
+ trialDays?: number | null;
3627
4256
  updatedAt: Date;
3628
4257
  valid: boolean;
3629
4258
  yearlyPrice?: BillingPriceResponseData;
@@ -3640,6 +4269,7 @@ export declare function useWrapChildren(elements: HTMLElement[]): boolean;
3640
4269
  export declare const Viewport: ForwardRefExoticComponent<Omit<ViewportProps, "ref"> & RefAttributes<HTMLDivElement | null>>;
3641
4270
 
3642
4271
  export declare interface ViewportProps extends React.HTMLProps<HTMLDivElement> {
4272
+ portal?: HTMLElement | null;
3643
4273
  }
3644
4274
 
3645
4275
  declare class VoidApiResponse {