@schematichq/schematic-components 0.1.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.
@@ -0,0 +1,3053 @@
1
+ import { Context } from 'react';
2
+ import * as Craft from '@craftjs/core';
3
+ import { DetailedHTMLProps } from 'react';
4
+ import { DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES } from 'react';
5
+ import { FastOmit } from 'styled-components';
6
+ import { ForwardRefExoticComponent } from 'react';
7
+ import { HTMLAttributes } from 'react';
8
+ import { IStyledComponentBase } from 'styled-components/dist/types';
9
+ import { JSX as JSX_2 } from 'react/jsx-runtime';
10
+ import { RefAttributes } from 'react';
11
+ import { RefObject } from 'react';
12
+ import { Stripe } from '@stripe/stripe-js';
13
+ import { Substitute } from 'styled-components/dist/types';
14
+
15
+ declare interface ApiResponse<T> {
16
+ raw: Response;
17
+ value(): Promise<T>;
18
+ }
19
+
20
+ /**
21
+ * Schematic API
22
+ * Schematic API
23
+ *
24
+ * The version of the OpenAPI document: 0.1
25
+ *
26
+ *
27
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
28
+ * https://openapi-generator.tech
29
+ * Do not edit the class manually.
30
+ */
31
+ declare const BASE_PATH: string;
32
+
33
+ /**
34
+ * This is the base class for all generated API classes.
35
+ */
36
+ declare class BaseAPI {
37
+ protected configuration: Configuration;
38
+ private static readonly jsonRegex;
39
+ private middleware;
40
+ constructor(configuration?: Configuration);
41
+ withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
42
+ withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware["pre"]>): T;
43
+ withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware["post"]>): T;
44
+ /**
45
+ * Check if the given MIME is a JSON MIME.
46
+ * JSON MIME examples:
47
+ * application/json
48
+ * application/json; charset=UTF8
49
+ * APPLICATION/JSON
50
+ * application/vnd.company+json
51
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
52
+ * @return True if the given MIME is JSON, false otherwise.
53
+ */
54
+ protected isJsonMime(mime: string | null | undefined): boolean;
55
+ protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response>;
56
+ private createFetchParams;
57
+ private fetchApi;
58
+ /**
59
+ * Create a shallow clone of `this` by constructing a new instance
60
+ * and then shallow cloning data members.
61
+ */
62
+ private clone;
63
+ }
64
+
65
+ /**
66
+ * Schematic API
67
+ * Schematic API
68
+ *
69
+ * The version of the OpenAPI document: 0.1
70
+ *
71
+ *
72
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
73
+ * https://openapi-generator.tech
74
+ * Do not edit the class manually.
75
+ */
76
+ /**
77
+ *
78
+ * @export
79
+ * @interface BillingPlan
80
+ */
81
+ declare interface BillingPlan {
82
+ /**
83
+ *
84
+ * @type {string}
85
+ * @memberof BillingPlan
86
+ */
87
+ description?: string | null;
88
+ /**
89
+ *
90
+ * @type {string}
91
+ * @memberof BillingPlan
92
+ */
93
+ id: string;
94
+ /**
95
+ *
96
+ * @type {string}
97
+ * @memberof BillingPlan
98
+ */
99
+ imageUrl?: string | null;
100
+ /**
101
+ *
102
+ * @type {string}
103
+ * @memberof BillingPlan
104
+ */
105
+ name: string;
106
+ /**
107
+ *
108
+ * @type {string}
109
+ * @memberof BillingPlan
110
+ */
111
+ planPeriod?: string | null;
112
+ /**
113
+ *
114
+ * @type {number}
115
+ * @memberof BillingPlan
116
+ */
117
+ planPrice?: number | null;
118
+ }
119
+
120
+ /**
121
+ * Schematic API
122
+ * Schematic API
123
+ *
124
+ * The version of the OpenAPI document: 0.1
125
+ *
126
+ *
127
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
128
+ * https://openapi-generator.tech
129
+ * Do not edit the class manually.
130
+ */
131
+ /**
132
+ *
133
+ * @export
134
+ * @interface BillingPriceResponseData
135
+ */
136
+ declare interface BillingPriceResponseData {
137
+ /**
138
+ *
139
+ * @type {string}
140
+ * @memberof BillingPriceResponseData
141
+ */
142
+ externalPriceId: string;
143
+ /**
144
+ *
145
+ * @type {string}
146
+ * @memberof BillingPriceResponseData
147
+ */
148
+ id: string;
149
+ /**
150
+ *
151
+ * @type {string}
152
+ * @memberof BillingPriceResponseData
153
+ */
154
+ interval: string;
155
+ /**
156
+ *
157
+ * @type {number}
158
+ * @memberof BillingPriceResponseData
159
+ */
160
+ price: number;
161
+ }
162
+
163
+ /**
164
+ *
165
+ * @export
166
+ * @interface BillingProductDetailResponseData
167
+ */
168
+ declare interface BillingProductDetailResponseData {
169
+ /**
170
+ *
171
+ * @type {Array<BillingPriceResponseData>}
172
+ * @memberof BillingProductDetailResponseData
173
+ */
174
+ prices: Array<BillingPriceResponseData>;
175
+ /**
176
+ *
177
+ * @type {string}
178
+ * @memberof BillingProductDetailResponseData
179
+ */
180
+ accountId: string;
181
+ /**
182
+ *
183
+ * @type {Date}
184
+ * @memberof BillingProductDetailResponseData
185
+ */
186
+ createdAt: Date;
187
+ /**
188
+ *
189
+ * @type {string}
190
+ * @memberof BillingProductDetailResponseData
191
+ */
192
+ currency: string;
193
+ /**
194
+ *
195
+ * @type {string}
196
+ * @memberof BillingProductDetailResponseData
197
+ */
198
+ environmentId: string;
199
+ /**
200
+ *
201
+ * @type {string}
202
+ * @memberof BillingProductDetailResponseData
203
+ */
204
+ externalId: string;
205
+ /**
206
+ *
207
+ * @type {string}
208
+ * @memberof BillingProductDetailResponseData
209
+ */
210
+ name: string;
211
+ /**
212
+ *
213
+ * @type {number}
214
+ * @memberof BillingProductDetailResponseData
215
+ */
216
+ price: number;
217
+ /**
218
+ *
219
+ * @type {string}
220
+ * @memberof BillingProductDetailResponseData
221
+ */
222
+ productId: string;
223
+ /**
224
+ *
225
+ * @type {number}
226
+ * @memberof BillingProductDetailResponseData
227
+ */
228
+ quantity: number;
229
+ /**
230
+ *
231
+ * @type {Date}
232
+ * @memberof BillingProductDetailResponseData
233
+ */
234
+ updatedAt: Date;
235
+ }
236
+
237
+ /**
238
+ * Schematic API
239
+ * Schematic API
240
+ *
241
+ * The version of the OpenAPI document: 0.1
242
+ *
243
+ *
244
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
245
+ * https://openapi-generator.tech
246
+ * Do not edit the class manually.
247
+ */
248
+ /**
249
+ *
250
+ * @export
251
+ * @interface BillingProductForSubscriptionResponseData
252
+ */
253
+ declare interface BillingProductForSubscriptionResponseData {
254
+ /**
255
+ *
256
+ * @type {string}
257
+ * @memberof BillingProductForSubscriptionResponseData
258
+ */
259
+ accountId: string;
260
+ /**
261
+ *
262
+ * @type {Date}
263
+ * @memberof BillingProductForSubscriptionResponseData
264
+ */
265
+ createdAt: Date;
266
+ /**
267
+ *
268
+ * @type {string}
269
+ * @memberof BillingProductForSubscriptionResponseData
270
+ */
271
+ currency: string;
272
+ /**
273
+ *
274
+ * @type {string}
275
+ * @memberof BillingProductForSubscriptionResponseData
276
+ */
277
+ environmentId: string;
278
+ /**
279
+ *
280
+ * @type {string}
281
+ * @memberof BillingProductForSubscriptionResponseData
282
+ */
283
+ externalId: string;
284
+ /**
285
+ *
286
+ * @type {string}
287
+ * @memberof BillingProductForSubscriptionResponseData
288
+ */
289
+ id: string;
290
+ /**
291
+ *
292
+ * @type {string}
293
+ * @memberof BillingProductForSubscriptionResponseData
294
+ */
295
+ interval?: string | null;
296
+ /**
297
+ *
298
+ * @type {string}
299
+ * @memberof BillingProductForSubscriptionResponseData
300
+ */
301
+ name: string;
302
+ /**
303
+ *
304
+ * @type {number}
305
+ * @memberof BillingProductForSubscriptionResponseData
306
+ */
307
+ price: number;
308
+ /**
309
+ *
310
+ * @type {string}
311
+ * @memberof BillingProductForSubscriptionResponseData
312
+ */
313
+ priceExternalId?: string | null;
314
+ /**
315
+ *
316
+ * @type {number}
317
+ * @memberof BillingProductForSubscriptionResponseData
318
+ */
319
+ quantity: number;
320
+ /**
321
+ *
322
+ * @type {string}
323
+ * @memberof BillingProductForSubscriptionResponseData
324
+ */
325
+ subscriptionId: string;
326
+ /**
327
+ *
328
+ * @type {Date}
329
+ * @memberof BillingProductForSubscriptionResponseData
330
+ */
331
+ updatedAt: Date;
332
+ }
333
+
334
+ /**
335
+ * Schematic API
336
+ * Schematic API
337
+ *
338
+ * The version of the OpenAPI document: 0.1
339
+ *
340
+ *
341
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
342
+ * https://openapi-generator.tech
343
+ * Do not edit the class manually.
344
+ */
345
+ /**
346
+ * The created resource
347
+ * @export
348
+ * @interface BillingSubscriptionResponseData
349
+ */
350
+ declare interface BillingSubscriptionResponseData {
351
+ /**
352
+ *
353
+ * @type {Date}
354
+ * @memberof BillingSubscriptionResponseData
355
+ */
356
+ expiredAt?: Date | null;
357
+ /**
358
+ *
359
+ * @type {string}
360
+ * @memberof BillingSubscriptionResponseData
361
+ */
362
+ externalId: string;
363
+ /**
364
+ *
365
+ * @type {number}
366
+ * @memberof BillingSubscriptionResponseData
367
+ */
368
+ id: number;
369
+ /**
370
+ *
371
+ * @type {Date}
372
+ * @memberof BillingSubscriptionResponseData
373
+ */
374
+ updatedAt: Date;
375
+ }
376
+
377
+ declare class BlobApiResponse {
378
+ raw: Response;
379
+ constructor(raw: Response);
380
+ value(): Promise<Blob>;
381
+ }
382
+
383
+ export declare const Box: IStyledComponentBase<"web", Substitute<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ComponentProps>> & string;
384
+
385
+ export declare type BoxProps = ComponentProps;
386
+
387
+ export declare const Button: ({ color, size, variant, disabled, children, ...props }: ButtonProps) => JSX_2.Element;
388
+
389
+ export declare interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
390
+ color?: ButtonStyleTypes;
391
+ size?: ButtonSizeTypes;
392
+ variant?: ButtonVariantTypes;
393
+ }
394
+
395
+ export declare type ButtonSizeTypes = "sm" | "md" | "lg";
396
+
397
+ export declare type ButtonStyleTypes = "blue" | "white" | "red" | "black";
398
+
399
+ export declare type ButtonVariantTypes = "solid" | "outline" | "ghost" | "link";
400
+
401
+ declare function canConsumeForm(consumes: Consume[]): boolean;
402
+
403
+ export declare const Card: ForwardRefExoticComponent<CardProps & RefAttributes<HTMLDivElement | null>>;
404
+
405
+ export declare interface CardProps {
406
+ children?: React.ReactNode;
407
+ className?: string;
408
+ }
409
+
410
+ /**
411
+ * Schematic API
412
+ * Schematic API
413
+ *
414
+ * The version of the OpenAPI document: 0.1
415
+ *
416
+ *
417
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
418
+ * https://openapi-generator.tech
419
+ * Do not edit the class manually.
420
+ */
421
+ /**
422
+ *
423
+ * @export
424
+ * @interface ChangeSubscriptionRequestBody
425
+ */
426
+ declare interface ChangeSubscriptionRequestBody {
427
+ /**
428
+ *
429
+ * @type {string}
430
+ * @memberof ChangeSubscriptionRequestBody
431
+ */
432
+ newPlanId: string;
433
+ /**
434
+ *
435
+ * @type {string}
436
+ * @memberof ChangeSubscriptionRequestBody
437
+ */
438
+ newPriceId: string;
439
+ /**
440
+ *
441
+ * @type {string}
442
+ * @memberof ChangeSubscriptionRequestBody
443
+ */
444
+ paymentMethodId?: string | null;
445
+ }
446
+
447
+ /**
448
+ *
449
+ */
450
+ declare class CheckoutApi extends runtime.BaseAPI {
451
+ /**
452
+ * Checkout
453
+ */
454
+ checkoutRaw(requestParameters: CheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CheckoutResponse>>;
455
+ /**
456
+ * Checkout
457
+ */
458
+ checkout(requestParameters: CheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CheckoutResponse>;
459
+ /**
460
+ * Get setup intent
461
+ */
462
+ getSetupIntentRaw(requestParameters: GetSetupIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSetupIntentResponse>>;
463
+ /**
464
+ * Get setup intent
465
+ */
466
+ getSetupIntent(requestParameters: GetSetupIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSetupIntentResponse>;
467
+ /**
468
+ * Hydrate component
469
+ */
470
+ hydrateComponentRaw(requestParameters: HydrateComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<HydrateComponentResponse>>;
471
+ /**
472
+ * Hydrate component
473
+ */
474
+ hydrateComponent(requestParameters: HydrateComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<HydrateComponentResponse>;
475
+ /**
476
+ * Preview checkout
477
+ */
478
+ previewCheckoutRaw(requestParameters: PreviewCheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PreviewCheckoutResponse>>;
479
+ /**
480
+ * Preview checkout
481
+ */
482
+ previewCheckout(requestParameters: PreviewCheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PreviewCheckoutResponse>;
483
+ }
484
+
485
+ declare interface CheckoutRequest {
486
+ changeSubscriptionRequestBody: ChangeSubscriptionRequestBody;
487
+ }
488
+
489
+ /**
490
+ *
491
+ * @export
492
+ * @interface CheckoutResponse
493
+ */
494
+ declare interface CheckoutResponse {
495
+ /**
496
+ *
497
+ * @type {BillingSubscriptionResponseData}
498
+ * @memberof CheckoutResponse
499
+ */
500
+ data: BillingSubscriptionResponseData;
501
+ /**
502
+ * Input parameters
503
+ * @type {object}
504
+ * @memberof CheckoutResponse
505
+ */
506
+ params: object;
507
+ }
508
+
509
+ declare const COLLECTION_FORMATS: {
510
+ csv: string;
511
+ ssv: string;
512
+ tsv: string;
513
+ pipes: string;
514
+ };
515
+
516
+ export declare const Column: ForwardRefExoticComponent<Omit<ColumnProps, "ref"> & RefAttributes<HTMLDivElement | null>>;
517
+
518
+ export declare interface ColumnProps extends React.HTMLProps<HTMLDivElement> {
519
+ basis?: string;
520
+ }
521
+
522
+ /**
523
+ *
524
+ * @export
525
+ * @interface CompanyDetailResponseData
526
+ */
527
+ declare interface CompanyDetailResponseData {
528
+ /**
529
+ *
530
+ * @type {Array<BillingPlan>}
531
+ * @memberof CompanyDetailResponseData
532
+ */
533
+ addOns: Array<BillingPlan>;
534
+ /**
535
+ *
536
+ * @type {Date}
537
+ * @memberof CompanyDetailResponseData
538
+ */
539
+ createdAt: Date;
540
+ /**
541
+ *
542
+ * @type {Array<EntityTraitDetailResponseData>}
543
+ * @memberof CompanyDetailResponseData
544
+ */
545
+ entityTraits: Array<EntityTraitDetailResponseData>;
546
+ /**
547
+ *
548
+ * @type {string}
549
+ * @memberof CompanyDetailResponseData
550
+ */
551
+ environmentId: string;
552
+ /**
553
+ *
554
+ * @type {string}
555
+ * @memberof CompanyDetailResponseData
556
+ */
557
+ id: string;
558
+ /**
559
+ *
560
+ * @type {Array<EntityKeyDetailResponseData>}
561
+ * @memberof CompanyDetailResponseData
562
+ */
563
+ keys: Array<EntityKeyDetailResponseData>;
564
+ /**
565
+ *
566
+ * @type {Date}
567
+ * @memberof CompanyDetailResponseData
568
+ */
569
+ lastSeenAt?: Date | null;
570
+ /**
571
+ *
572
+ * @type {string}
573
+ * @memberof CompanyDetailResponseData
574
+ */
575
+ logoUrl?: string | null;
576
+ /**
577
+ *
578
+ * @type {string}
579
+ * @memberof CompanyDetailResponseData
580
+ */
581
+ name: string;
582
+ /**
583
+ *
584
+ * @type {BillingPlan}
585
+ * @memberof CompanyDetailResponseData
586
+ */
587
+ plan?: BillingPlan;
588
+ /**
589
+ *
590
+ * @type {Array<PreviewObject>}
591
+ * @memberof CompanyDetailResponseData
592
+ */
593
+ plans: Array<PreviewObject>;
594
+ /**
595
+ * A map of trait names to trait values
596
+ * @type {object}
597
+ * @memberof CompanyDetailResponseData
598
+ */
599
+ traits?: object;
600
+ /**
601
+ *
602
+ * @type {Date}
603
+ * @memberof CompanyDetailResponseData
604
+ */
605
+ updatedAt: Date;
606
+ /**
607
+ *
608
+ * @type {number}
609
+ * @memberof CompanyDetailResponseData
610
+ */
611
+ userCount: number;
612
+ }
613
+
614
+ /**
615
+ *
616
+ * @export
617
+ * @interface CompanyPlanDetailResponseData
618
+ */
619
+ declare interface CompanyPlanDetailResponseData {
620
+ /**
621
+ *
622
+ * @type {string}
623
+ * @memberof CompanyPlanDetailResponseData
624
+ */
625
+ audienceType?: string | null;
626
+ /**
627
+ *
628
+ * @type {BillingProductDetailResponseData}
629
+ * @memberof CompanyPlanDetailResponseData
630
+ */
631
+ billingProduct?: BillingProductDetailResponseData;
632
+ /**
633
+ *
634
+ * @type {number}
635
+ * @memberof CompanyPlanDetailResponseData
636
+ */
637
+ companyCount: number;
638
+ /**
639
+ *
640
+ * @type {Date}
641
+ * @memberof CompanyPlanDetailResponseData
642
+ */
643
+ createdAt: Date;
644
+ /**
645
+ *
646
+ * @type {boolean}
647
+ * @memberof CompanyPlanDetailResponseData
648
+ */
649
+ current: boolean;
650
+ /**
651
+ *
652
+ * @type {string}
653
+ * @memberof CompanyPlanDetailResponseData
654
+ */
655
+ description: string;
656
+ /**
657
+ *
658
+ * @type {Array<PlanEntitlementResponseData>}
659
+ * @memberof CompanyPlanDetailResponseData
660
+ */
661
+ entitlements: Array<PlanEntitlementResponseData>;
662
+ /**
663
+ *
664
+ * @type {Array<FeatureDetailResponseData>}
665
+ * @memberof CompanyPlanDetailResponseData
666
+ */
667
+ features: Array<FeatureDetailResponseData>;
668
+ /**
669
+ *
670
+ * @type {string}
671
+ * @memberof CompanyPlanDetailResponseData
672
+ */
673
+ icon: string;
674
+ /**
675
+ *
676
+ * @type {string}
677
+ * @memberof CompanyPlanDetailResponseData
678
+ */
679
+ id: string;
680
+ /**
681
+ *
682
+ * @type {boolean}
683
+ * @memberof CompanyPlanDetailResponseData
684
+ */
685
+ isDefault: boolean;
686
+ /**
687
+ *
688
+ * @type {BillingPriceResponseData}
689
+ * @memberof CompanyPlanDetailResponseData
690
+ */
691
+ monthlyPrice?: BillingPriceResponseData;
692
+ /**
693
+ *
694
+ * @type {string}
695
+ * @memberof CompanyPlanDetailResponseData
696
+ */
697
+ name: string;
698
+ /**
699
+ *
700
+ * @type {string}
701
+ * @memberof CompanyPlanDetailResponseData
702
+ */
703
+ planType: string;
704
+ /**
705
+ *
706
+ * @type {Date}
707
+ * @memberof CompanyPlanDetailResponseData
708
+ */
709
+ updatedAt: Date;
710
+ /**
711
+ *
712
+ * @type {boolean}
713
+ * @memberof CompanyPlanDetailResponseData
714
+ */
715
+ valid: boolean;
716
+ /**
717
+ *
718
+ * @type {BillingPriceResponseData}
719
+ * @memberof CompanyPlanDetailResponseData
720
+ */
721
+ yearlyPrice?: BillingPriceResponseData;
722
+ }
723
+
724
+ /**
725
+ *
726
+ * @export
727
+ * @interface CompanySubscriptionResponseData
728
+ */
729
+ declare interface CompanySubscriptionResponseData {
730
+ /**
731
+ *
732
+ * @type {string}
733
+ * @memberof CompanySubscriptionResponseData
734
+ */
735
+ customerExternalId: string;
736
+ /**
737
+ *
738
+ * @type {Date}
739
+ * @memberof CompanySubscriptionResponseData
740
+ */
741
+ expiredAt?: Date | null;
742
+ /**
743
+ *
744
+ * @type {string}
745
+ * @memberof CompanySubscriptionResponseData
746
+ */
747
+ interval: string;
748
+ /**
749
+ *
750
+ * @type {InvoiceResponseData}
751
+ * @memberof CompanySubscriptionResponseData
752
+ */
753
+ latestInvoice?: InvoiceResponseData;
754
+ /**
755
+ *
756
+ * @type {PaymentMethodResponseData}
757
+ * @memberof CompanySubscriptionResponseData
758
+ */
759
+ paymentMethod?: PaymentMethodResponseData;
760
+ /**
761
+ *
762
+ * @type {Array<BillingProductForSubscriptionResponseData>}
763
+ * @memberof CompanySubscriptionResponseData
764
+ */
765
+ products: Array<BillingProductForSubscriptionResponseData>;
766
+ /**
767
+ *
768
+ * @type {string}
769
+ * @memberof CompanySubscriptionResponseData
770
+ */
771
+ subscriptionExternalId: string;
772
+ /**
773
+ *
774
+ * @type {number}
775
+ * @memberof CompanySubscriptionResponseData
776
+ */
777
+ totalPrice: number;
778
+ }
779
+
780
+ /**
781
+ * The returned resource
782
+ * @export
783
+ * @interface ComponentHydrateResponseData
784
+ */
785
+ declare interface ComponentHydrateResponseData {
786
+ /**
787
+ *
788
+ * @type {Array<CompanyPlanDetailResponseData>}
789
+ * @memberof ComponentHydrateResponseData
790
+ */
791
+ activePlans: Array<CompanyPlanDetailResponseData>;
792
+ /**
793
+ *
794
+ * @type {CompanyDetailResponseData}
795
+ * @memberof ComponentHydrateResponseData
796
+ */
797
+ company?: CompanyDetailResponseData;
798
+ /**
799
+ *
800
+ * @type {ComponentResponseData}
801
+ * @memberof ComponentHydrateResponseData
802
+ */
803
+ component?: ComponentResponseData;
804
+ /**
805
+ *
806
+ * @type {FeatureUsageDetailResponseData}
807
+ * @memberof ComponentHydrateResponseData
808
+ */
809
+ featureUsage?: FeatureUsageDetailResponseData;
810
+ /**
811
+ *
812
+ * @type {StripeEmbedInfo}
813
+ * @memberof ComponentHydrateResponseData
814
+ */
815
+ stripeEmbed?: StripeEmbedInfo;
816
+ /**
817
+ *
818
+ * @type {CompanySubscriptionResponseData}
819
+ * @memberof ComponentHydrateResponseData
820
+ */
821
+ subscription?: CompanySubscriptionResponseData;
822
+ /**
823
+ *
824
+ * @type {InvoiceResponseData}
825
+ * @memberof ComponentHydrateResponseData
826
+ */
827
+ upcomingInvoice?: InvoiceResponseData;
828
+ }
829
+
830
+ declare interface ComponentProps extends TransientCSSProperties {
831
+ children?: React.ReactNode;
832
+ }
833
+
834
+ /**
835
+ * Schematic API
836
+ * Schematic API
837
+ *
838
+ * The version of the OpenAPI document: 0.1
839
+ *
840
+ *
841
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
842
+ * https://openapi-generator.tech
843
+ * Do not edit the class manually.
844
+ */
845
+ /**
846
+ *
847
+ * @export
848
+ * @interface ComponentResponseData
849
+ */
850
+ declare interface ComponentResponseData {
851
+ /**
852
+ *
853
+ * @type {{ [key: string]: number; }}
854
+ * @memberof ComponentResponseData
855
+ */
856
+ ast?: {
857
+ [key: string]: number;
858
+ };
859
+ /**
860
+ *
861
+ * @type {Date}
862
+ * @memberof ComponentResponseData
863
+ */
864
+ createdAt: Date;
865
+ /**
866
+ *
867
+ * @type {string}
868
+ * @memberof ComponentResponseData
869
+ */
870
+ id: string;
871
+ /**
872
+ *
873
+ * @type {string}
874
+ * @memberof ComponentResponseData
875
+ */
876
+ name: string;
877
+ /**
878
+ *
879
+ * @type {string}
880
+ * @memberof ComponentResponseData
881
+ */
882
+ state: string;
883
+ /**
884
+ *
885
+ * @type {string}
886
+ * @memberof ComponentResponseData
887
+ */
888
+ type: string;
889
+ /**
890
+ *
891
+ * @type {Date}
892
+ * @memberof ComponentResponseData
893
+ */
894
+ updatedAt: Date;
895
+ }
896
+
897
+ declare class Configuration {
898
+ private configuration;
899
+ constructor(configuration?: ConfigurationParameters);
900
+ set config(configuration: Configuration);
901
+ get basePath(): string;
902
+ get fetchApi(): FetchAPI | undefined;
903
+ get middleware(): Middleware[];
904
+ get queryParamsStringify(): (params: HTTPQuery) => string;
905
+ get username(): string | undefined;
906
+ get password(): string | undefined;
907
+ get apiKey(): ((name: string) => string | Promise<string>) | undefined;
908
+ get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined;
909
+ get headers(): HTTPHeaders | undefined;
910
+ get credentials(): RequestCredentials | undefined;
911
+ }
912
+
913
+ declare interface ConfigurationParameters {
914
+ basePath?: string;
915
+ fetchApi?: FetchAPI;
916
+ middleware?: Middleware[];
917
+ queryParamsStringify?: (params: HTTPQuery) => string;
918
+ username?: string;
919
+ password?: string;
920
+ apiKey?: string | Promise<string> | ((name: string) => string | Promise<string>);
921
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>);
922
+ headers?: HTTPHeaders;
923
+ credentials?: RequestCredentials;
924
+ }
925
+
926
+ declare interface Consume {
927
+ contentType: string;
928
+ }
929
+
930
+ declare const _default: {
931
+ alarm: number;
932
+ "arrow-curved": number;
933
+ "arrow-down": number;
934
+ "arrow-left": number;
935
+ "arrow-right": number;
936
+ "arrow-up": number;
937
+ "arrow-upward": number;
938
+ backspace: number;
939
+ bell: number;
940
+ board: number;
941
+ bookmark: number;
942
+ "boolean-on": number;
943
+ boolean: number;
944
+ bulb: number;
945
+ burger: number;
946
+ "check-rounded": number;
947
+ check: number;
948
+ "chevron-down": number;
949
+ "chevron-left": number;
950
+ "chevron-right": number;
951
+ "chevron-up": number;
952
+ chip: number;
953
+ chips: number;
954
+ "close-rounded-filled": number;
955
+ close: number;
956
+ "cloud-up": number;
957
+ club: number;
958
+ cmd: number;
959
+ code: number;
960
+ coffee: number;
961
+ cog: number;
962
+ "collapse-empty": number;
963
+ collapse: number;
964
+ compass: number;
965
+ connection: number;
966
+ copy: number;
967
+ cylnder: number;
968
+ diamond: number;
969
+ "dollar-rounded": number;
970
+ "dots-horizontal": number;
971
+ "dots-vertical": number;
972
+ entitlements: number;
973
+ equalizer: number;
974
+ "exclamation-rounded-filled": number;
975
+ eye: number;
976
+ filter: number;
977
+ "folder-minus": number;
978
+ "folder-plus": number;
979
+ folder: number;
980
+ glasses: number;
981
+ globe: number;
982
+ hammer: number;
983
+ hash: number;
984
+ heart: number;
985
+ hubspot: number;
986
+ image: number;
987
+ "info-rounded": number;
988
+ juice: number;
989
+ key: number;
990
+ music: number;
991
+ "node-minus": number;
992
+ "node-plus": number;
993
+ package: number;
994
+ "paper-plane": number;
995
+ pencil: number;
996
+ picker: number;
997
+ plan: number;
998
+ plug: number;
999
+ "plus-minus": number;
1000
+ "plus-rounded-outline": number;
1001
+ present: number;
1002
+ schematic: number;
1003
+ search: number;
1004
+ segment: number;
1005
+ "server-search": number;
1006
+ sidebar: number;
1007
+ signal: number;
1008
+ silence: number;
1009
+ spade: number;
1010
+ speaker: number;
1011
+ stacks: number;
1012
+ stripe: number;
1013
+ text: number;
1014
+ thunder: number;
1015
+ tornado: number;
1016
+ truck: number;
1017
+ tube: number;
1018
+ unprotected: number;
1019
+ verified: number;
1020
+ "video-camera": number;
1021
+ wallet: number;
1022
+ "watch-hand": number;
1023
+ "watch-pocket": number;
1024
+ "water-drop": number;
1025
+ waves: number;
1026
+ webhook: number;
1027
+ wind: number;
1028
+ };
1029
+
1030
+ declare const DefaultConfig: Configuration;
1031
+
1032
+ export declare const defaultSettings: EmbedSettings;
1033
+
1034
+ export declare const defaultTheme: EmbedThemeSettings;
1035
+
1036
+ declare interface DesignProps {
1037
+ header: {
1038
+ isVisible: boolean;
1039
+ title: {
1040
+ fontStyle: FontStyle;
1041
+ };
1042
+ description: {
1043
+ isVisible: boolean;
1044
+ fontStyle: FontStyle;
1045
+ };
1046
+ price: {
1047
+ isVisible: boolean;
1048
+ fontStyle: FontStyle;
1049
+ };
1050
+ };
1051
+ addOns: {
1052
+ isVisible: boolean;
1053
+ fontStyle: FontStyle;
1054
+ showLabel: boolean;
1055
+ };
1056
+ callToAction: {
1057
+ isVisible: boolean;
1058
+ buttonSize: "sm" | "md" | "lg";
1059
+ buttonStyle: "primary" | "secondary" | "tertiary";
1060
+ };
1061
+ }
1062
+
1063
+ declare interface DesignProps_2 {
1064
+ header: {
1065
+ isVisible: boolean;
1066
+ fontStyle: FontStyle;
1067
+ text: string;
1068
+ };
1069
+ icons: {
1070
+ isVisible: boolean;
1071
+ fontStyle: FontStyle;
1072
+ style: "light" | "dark";
1073
+ };
1074
+ entitlement: {
1075
+ isVisible: boolean;
1076
+ fontStyle: FontStyle;
1077
+ };
1078
+ usage: {
1079
+ isVisible: boolean;
1080
+ fontStyle: FontStyle;
1081
+ };
1082
+ }
1083
+
1084
+ declare interface DesignProps_3 {
1085
+ isVisible: boolean;
1086
+ header: {
1087
+ fontStyle: FontStyle;
1088
+ };
1089
+ description: {
1090
+ isVisible: boolean;
1091
+ fontStyle: FontStyle;
1092
+ };
1093
+ icon: {
1094
+ isVisible: boolean;
1095
+ };
1096
+ allocation: {
1097
+ isVisible: boolean;
1098
+ fontStyle: FontStyle;
1099
+ };
1100
+ usage: {
1101
+ isVisible: boolean;
1102
+ fontStyle: FontStyle;
1103
+ };
1104
+ callToAction: {
1105
+ isVisible: boolean;
1106
+ buttonSize: "sm" | "md" | "lg";
1107
+ buttonStyle: "primary" | "secondary" | "tertiary";
1108
+ };
1109
+ }
1110
+
1111
+ declare interface DesignProps_4 {
1112
+ header: {
1113
+ isVisible: boolean;
1114
+ fontStyle: FontStyle;
1115
+ prefix: string;
1116
+ };
1117
+ price: {
1118
+ isVisible: boolean;
1119
+ fontStyle: FontStyle;
1120
+ };
1121
+ contractEndDate: {
1122
+ isVisible: boolean;
1123
+ fontStyle: FontStyle;
1124
+ prefix: string;
1125
+ };
1126
+ }
1127
+
1128
+ declare interface DesignProps_5 {
1129
+ header: {
1130
+ isVisible: boolean;
1131
+ fontStyle: FontStyle;
1132
+ };
1133
+ functions: {
1134
+ allowEdit: boolean;
1135
+ };
1136
+ }
1137
+
1138
+ declare interface DesignProps_6 {
1139
+ header: {
1140
+ isVisible: boolean;
1141
+ fontStyle: FontStyle;
1142
+ };
1143
+ date: {
1144
+ isVisible: boolean;
1145
+ fontStyle: FontStyle;
1146
+ };
1147
+ amount: {
1148
+ isVisible: boolean;
1149
+ fontStyle: FontStyle;
1150
+ };
1151
+ limit: {
1152
+ isVisible: boolean;
1153
+ number: number;
1154
+ };
1155
+ collapse: {
1156
+ isVisible: boolean;
1157
+ fontStyle: FontStyle;
1158
+ };
1159
+ }
1160
+
1161
+ declare interface ElementProps {
1162
+ children?: React.ReactNode;
1163
+ className?: string;
1164
+ style?: React.CSSProperties;
1165
+ }
1166
+
1167
+ export declare const EmbedContext: Context<EmbedContextProps>;
1168
+
1169
+ export declare interface EmbedContextProps {
1170
+ api: CheckoutApi | null;
1171
+ data: ComponentHydrateResponseData;
1172
+ nodes: SerializedNodeWithChildren[];
1173
+ settings: EmbedSettings;
1174
+ stripe: Promise<Stripe | null> | null;
1175
+ layout: EmbedLayout;
1176
+ error?: Error;
1177
+ isPending: boolean;
1178
+ hydrate: () => void;
1179
+ setData: (data: RecursivePartial<ComponentHydrateResponseData>) => void;
1180
+ updateSettings: (settings: RecursivePartial<EmbedSettings>) => void;
1181
+ setStripe: (stripe: Promise<Stripe | null> | null) => void;
1182
+ setLayout: (layout: EmbedLayout) => void;
1183
+ }
1184
+
1185
+ export declare type EmbedLayout = "portal" | "checkout" | "payment" | "success" | "disabled";
1186
+
1187
+ export declare interface EmbedProps {
1188
+ accessToken?: string;
1189
+ id?: string;
1190
+ apiConfig?: ConfigurationParameters;
1191
+ }
1192
+
1193
+ export declare const EmbedProvider: ({ id, accessToken, apiConfig, children, }: EmbedProviderProps) => JSX_2.Element;
1194
+
1195
+ export declare interface EmbedProviderProps {
1196
+ id?: string;
1197
+ accessToken?: string;
1198
+ apiConfig?: ConfigurationParameters;
1199
+ children?: React.ReactNode;
1200
+ }
1201
+
1202
+ export declare type EmbedSettings = {
1203
+ theme: EmbedThemeSettings;
1204
+ };
1205
+
1206
+ export declare interface EmbedThemeSettings {
1207
+ numberOfColumns: 1 | 2 | 3;
1208
+ sectionLayout: "merged" | "separate";
1209
+ colorMode: "light" | "dark";
1210
+ primary: string;
1211
+ secondary: string;
1212
+ card: {
1213
+ background: string;
1214
+ borderRadius: number;
1215
+ hasShadow: boolean;
1216
+ padding: number;
1217
+ };
1218
+ typography: {
1219
+ heading1: TypographySettings;
1220
+ heading2: TypographySettings;
1221
+ heading3: TypographySettings;
1222
+ heading4: TypographySettings;
1223
+ heading5: TypographySettings;
1224
+ heading6: TypographySettings;
1225
+ text: TypographySettings;
1226
+ link: TypographySettings;
1227
+ };
1228
+ }
1229
+
1230
+ /**
1231
+ * Schematic API
1232
+ * Schematic API
1233
+ *
1234
+ * The version of the OpenAPI document: 0.1
1235
+ *
1236
+ *
1237
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1238
+ * https://openapi-generator.tech
1239
+ * Do not edit the class manually.
1240
+ */
1241
+ /**
1242
+ *
1243
+ * @export
1244
+ * @interface EntityKeyDefinitionResponseData
1245
+ */
1246
+ declare interface EntityKeyDefinitionResponseData {
1247
+ /**
1248
+ *
1249
+ * @type {Date}
1250
+ * @memberof EntityKeyDefinitionResponseData
1251
+ */
1252
+ createdAt: Date;
1253
+ /**
1254
+ *
1255
+ * @type {string}
1256
+ * @memberof EntityKeyDefinitionResponseData
1257
+ */
1258
+ entityType: string;
1259
+ /**
1260
+ *
1261
+ * @type {string}
1262
+ * @memberof EntityKeyDefinitionResponseData
1263
+ */
1264
+ id: string;
1265
+ /**
1266
+ *
1267
+ * @type {string}
1268
+ * @memberof EntityKeyDefinitionResponseData
1269
+ */
1270
+ key: string;
1271
+ /**
1272
+ *
1273
+ * @type {Date}
1274
+ * @memberof EntityKeyDefinitionResponseData
1275
+ */
1276
+ updatedAt: Date;
1277
+ }
1278
+
1279
+ /**
1280
+ *
1281
+ * @export
1282
+ * @interface EntityKeyDetailResponseData
1283
+ */
1284
+ declare interface EntityKeyDetailResponseData {
1285
+ /**
1286
+ *
1287
+ * @type {Date}
1288
+ * @memberof EntityKeyDetailResponseData
1289
+ */
1290
+ createdAt: Date;
1291
+ /**
1292
+ *
1293
+ * @type {EntityKeyDefinitionResponseData}
1294
+ * @memberof EntityKeyDetailResponseData
1295
+ */
1296
+ definition?: EntityKeyDefinitionResponseData;
1297
+ /**
1298
+ *
1299
+ * @type {string}
1300
+ * @memberof EntityKeyDetailResponseData
1301
+ */
1302
+ definitionId: string;
1303
+ /**
1304
+ *
1305
+ * @type {string}
1306
+ * @memberof EntityKeyDetailResponseData
1307
+ */
1308
+ entityId: string;
1309
+ /**
1310
+ *
1311
+ * @type {string}
1312
+ * @memberof EntityKeyDetailResponseData
1313
+ */
1314
+ entityType: string;
1315
+ /**
1316
+ *
1317
+ * @type {string}
1318
+ * @memberof EntityKeyDetailResponseData
1319
+ */
1320
+ environmentId: string;
1321
+ /**
1322
+ *
1323
+ * @type {string}
1324
+ * @memberof EntityKeyDetailResponseData
1325
+ */
1326
+ id: string;
1327
+ /**
1328
+ *
1329
+ * @type {string}
1330
+ * @memberof EntityKeyDetailResponseData
1331
+ */
1332
+ key: string;
1333
+ /**
1334
+ *
1335
+ * @type {Date}
1336
+ * @memberof EntityKeyDetailResponseData
1337
+ */
1338
+ updatedAt: Date;
1339
+ /**
1340
+ *
1341
+ * @type {string}
1342
+ * @memberof EntityKeyDetailResponseData
1343
+ */
1344
+ value: string;
1345
+ }
1346
+
1347
+ /**
1348
+ * Schematic API
1349
+ * Schematic API
1350
+ *
1351
+ * The version of the OpenAPI document: 0.1
1352
+ *
1353
+ *
1354
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1355
+ * https://openapi-generator.tech
1356
+ * Do not edit the class manually.
1357
+ */
1358
+ /**
1359
+ *
1360
+ * @export
1361
+ * @interface EntityTraitDefinitionResponseData
1362
+ */
1363
+ declare interface EntityTraitDefinitionResponseData {
1364
+ /**
1365
+ *
1366
+ * @type {Date}
1367
+ * @memberof EntityTraitDefinitionResponseData
1368
+ */
1369
+ createdAt: Date;
1370
+ /**
1371
+ *
1372
+ * @type {string}
1373
+ * @memberof EntityTraitDefinitionResponseData
1374
+ */
1375
+ displayName: string;
1376
+ /**
1377
+ *
1378
+ * @type {string}
1379
+ * @memberof EntityTraitDefinitionResponseData
1380
+ */
1381
+ entityType: string;
1382
+ /**
1383
+ *
1384
+ * @type {Array<string>}
1385
+ * @memberof EntityTraitDefinitionResponseData
1386
+ */
1387
+ hierarchy: Array<string>;
1388
+ /**
1389
+ *
1390
+ * @type {string}
1391
+ * @memberof EntityTraitDefinitionResponseData
1392
+ */
1393
+ id: string;
1394
+ /**
1395
+ *
1396
+ * @type {string}
1397
+ * @memberof EntityTraitDefinitionResponseData
1398
+ */
1399
+ traitType: string;
1400
+ /**
1401
+ *
1402
+ * @type {Date}
1403
+ * @memberof EntityTraitDefinitionResponseData
1404
+ */
1405
+ updatedAt: Date;
1406
+ }
1407
+
1408
+ /**
1409
+ *
1410
+ * @export
1411
+ * @interface EntityTraitDetailResponseData
1412
+ */
1413
+ declare interface EntityTraitDetailResponseData {
1414
+ /**
1415
+ *
1416
+ * @type {Date}
1417
+ * @memberof EntityTraitDetailResponseData
1418
+ */
1419
+ createdAt: Date;
1420
+ /**
1421
+ *
1422
+ * @type {EntityTraitDefinitionResponseData}
1423
+ * @memberof EntityTraitDetailResponseData
1424
+ */
1425
+ definition?: EntityTraitDefinitionResponseData;
1426
+ /**
1427
+ *
1428
+ * @type {string}
1429
+ * @memberof EntityTraitDetailResponseData
1430
+ */
1431
+ definitionId: string;
1432
+ /**
1433
+ *
1434
+ * @type {string}
1435
+ * @memberof EntityTraitDetailResponseData
1436
+ */
1437
+ environmentId: string;
1438
+ /**
1439
+ *
1440
+ * @type {string}
1441
+ * @memberof EntityTraitDetailResponseData
1442
+ */
1443
+ id: string;
1444
+ /**
1445
+ *
1446
+ * @type {Date}
1447
+ * @memberof EntityTraitDetailResponseData
1448
+ */
1449
+ updatedAt: Date;
1450
+ /**
1451
+ *
1452
+ * @type {string}
1453
+ * @memberof EntityTraitDetailResponseData
1454
+ */
1455
+ value: string;
1456
+ }
1457
+
1458
+ declare interface ErrorContext {
1459
+ fetch: FetchAPI;
1460
+ url: string;
1461
+ init: RequestInit;
1462
+ error: unknown;
1463
+ response?: Response;
1464
+ }
1465
+
1466
+ /**
1467
+ * Schematic API
1468
+ * Schematic API
1469
+ *
1470
+ * The version of the OpenAPI document: 0.1
1471
+ *
1472
+ *
1473
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1474
+ * https://openapi-generator.tech
1475
+ * Do not edit the class manually.
1476
+ */
1477
+ /**
1478
+ *
1479
+ * @export
1480
+ * @interface EventSummaryResponseData
1481
+ */
1482
+ declare interface EventSummaryResponseData {
1483
+ /**
1484
+ *
1485
+ * @type {number}
1486
+ * @memberof EventSummaryResponseData
1487
+ */
1488
+ companyCount: number;
1489
+ /**
1490
+ *
1491
+ * @type {string}
1492
+ * @memberof EventSummaryResponseData
1493
+ */
1494
+ environmentId: string;
1495
+ /**
1496
+ *
1497
+ * @type {number}
1498
+ * @memberof EventSummaryResponseData
1499
+ */
1500
+ eventCount: number;
1501
+ /**
1502
+ *
1503
+ * @type {string}
1504
+ * @memberof EventSummaryResponseData
1505
+ */
1506
+ eventSubtype: string;
1507
+ /**
1508
+ *
1509
+ * @type {Date}
1510
+ * @memberof EventSummaryResponseData
1511
+ */
1512
+ lastSeenAt?: Date | null;
1513
+ /**
1514
+ *
1515
+ * @type {number}
1516
+ * @memberof EventSummaryResponseData
1517
+ */
1518
+ userCount: number;
1519
+ }
1520
+
1521
+ /**
1522
+ *
1523
+ * @export
1524
+ * @interface FeatureDetailResponseData
1525
+ */
1526
+ declare interface FeatureDetailResponseData {
1527
+ /**
1528
+ *
1529
+ * @type {Date}
1530
+ * @memberof FeatureDetailResponseData
1531
+ */
1532
+ createdAt: Date;
1533
+ /**
1534
+ *
1535
+ * @type {string}
1536
+ * @memberof FeatureDetailResponseData
1537
+ */
1538
+ description: string;
1539
+ /**
1540
+ *
1541
+ * @type {string}
1542
+ * @memberof FeatureDetailResponseData
1543
+ */
1544
+ eventSubtype?: string | null;
1545
+ /**
1546
+ *
1547
+ * @type {EventSummaryResponseData}
1548
+ * @memberof FeatureDetailResponseData
1549
+ */
1550
+ eventSummary?: EventSummaryResponseData;
1551
+ /**
1552
+ *
1553
+ * @type {string}
1554
+ * @memberof FeatureDetailResponseData
1555
+ */
1556
+ featureType: string;
1557
+ /**
1558
+ *
1559
+ * @type {Array<FlagDetailResponseData>}
1560
+ * @memberof FeatureDetailResponseData
1561
+ */
1562
+ flags: Array<FlagDetailResponseData>;
1563
+ /**
1564
+ *
1565
+ * @type {string}
1566
+ * @memberof FeatureDetailResponseData
1567
+ */
1568
+ icon: string;
1569
+ /**
1570
+ *
1571
+ * @type {string}
1572
+ * @memberof FeatureDetailResponseData
1573
+ */
1574
+ id: string;
1575
+ /**
1576
+ *
1577
+ * @type {string}
1578
+ * @memberof FeatureDetailResponseData
1579
+ */
1580
+ lifecyclePhase?: string | null;
1581
+ /**
1582
+ *
1583
+ * @type {string}
1584
+ * @memberof FeatureDetailResponseData
1585
+ */
1586
+ maintainerId?: string | null;
1587
+ /**
1588
+ *
1589
+ * @type {string}
1590
+ * @memberof FeatureDetailResponseData
1591
+ */
1592
+ name: string;
1593
+ /**
1594
+ *
1595
+ * @type {Array<PreviewObject>}
1596
+ * @memberof FeatureDetailResponseData
1597
+ */
1598
+ plans: Array<PreviewObject>;
1599
+ /**
1600
+ *
1601
+ * @type {EntityTraitDefinitionResponseData}
1602
+ * @memberof FeatureDetailResponseData
1603
+ */
1604
+ trait?: EntityTraitDefinitionResponseData;
1605
+ /**
1606
+ *
1607
+ * @type {string}
1608
+ * @memberof FeatureDetailResponseData
1609
+ */
1610
+ traitId?: string | null;
1611
+ /**
1612
+ *
1613
+ * @type {Date}
1614
+ * @memberof FeatureDetailResponseData
1615
+ */
1616
+ updatedAt: Date;
1617
+ }
1618
+
1619
+ /**
1620
+ * Schematic API
1621
+ * Schematic API
1622
+ *
1623
+ * The version of the OpenAPI document: 0.1
1624
+ *
1625
+ *
1626
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1627
+ * https://openapi-generator.tech
1628
+ * Do not edit the class manually.
1629
+ */
1630
+ /**
1631
+ *
1632
+ * @export
1633
+ * @interface FeatureResponseData
1634
+ */
1635
+ declare interface FeatureResponseData {
1636
+ /**
1637
+ *
1638
+ * @type {Date}
1639
+ * @memberof FeatureResponseData
1640
+ */
1641
+ createdAt: Date;
1642
+ /**
1643
+ *
1644
+ * @type {string}
1645
+ * @memberof FeatureResponseData
1646
+ */
1647
+ description: string;
1648
+ /**
1649
+ *
1650
+ * @type {string}
1651
+ * @memberof FeatureResponseData
1652
+ */
1653
+ eventSubtype?: string | null;
1654
+ /**
1655
+ *
1656
+ * @type {string}
1657
+ * @memberof FeatureResponseData
1658
+ */
1659
+ featureType: string;
1660
+ /**
1661
+ *
1662
+ * @type {string}
1663
+ * @memberof FeatureResponseData
1664
+ */
1665
+ icon: string;
1666
+ /**
1667
+ *
1668
+ * @type {string}
1669
+ * @memberof FeatureResponseData
1670
+ */
1671
+ id: string;
1672
+ /**
1673
+ *
1674
+ * @type {string}
1675
+ * @memberof FeatureResponseData
1676
+ */
1677
+ lifecyclePhase?: string | null;
1678
+ /**
1679
+ *
1680
+ * @type {string}
1681
+ * @memberof FeatureResponseData
1682
+ */
1683
+ maintainerId?: string | null;
1684
+ /**
1685
+ *
1686
+ * @type {string}
1687
+ * @memberof FeatureResponseData
1688
+ */
1689
+ name: string;
1690
+ /**
1691
+ *
1692
+ * @type {string}
1693
+ * @memberof FeatureResponseData
1694
+ */
1695
+ traitId?: string | null;
1696
+ /**
1697
+ *
1698
+ * @type {Date}
1699
+ * @memberof FeatureResponseData
1700
+ */
1701
+ updatedAt: Date;
1702
+ }
1703
+
1704
+ /**
1705
+ *
1706
+ * @export
1707
+ * @interface FeatureUsageDetailResponseData
1708
+ */
1709
+ declare interface FeatureUsageDetailResponseData {
1710
+ /**
1711
+ *
1712
+ * @type {Array<FeatureUsageResponseData>}
1713
+ * @memberof FeatureUsageDetailResponseData
1714
+ */
1715
+ features: Array<FeatureUsageResponseData>;
1716
+ }
1717
+
1718
+ /**
1719
+ *
1720
+ * @export
1721
+ * @interface FeatureUsageResponseData
1722
+ */
1723
+ declare interface FeatureUsageResponseData {
1724
+ /**
1725
+ * Whether further usage is permitted.
1726
+ * @type {boolean}
1727
+ * @memberof FeatureUsageResponseData
1728
+ */
1729
+ access: boolean;
1730
+ /**
1731
+ * The maximum amount of usage that is permitted; a null value indicates that unlimited usage is permitted.
1732
+ * @type {number}
1733
+ * @memberof FeatureUsageResponseData
1734
+ */
1735
+ allocation?: number | null;
1736
+ /**
1737
+ * The type of allocation that is being used.
1738
+ * @type {string}
1739
+ * @memberof FeatureUsageResponseData
1740
+ */
1741
+ allocationType: FeatureUsageResponseDataAllocationTypeEnum;
1742
+ /**
1743
+ *
1744
+ * @type {string}
1745
+ * @memberof FeatureUsageResponseData
1746
+ */
1747
+ entitlementId: string;
1748
+ /**
1749
+ *
1750
+ * @type {string}
1751
+ * @memberof FeatureUsageResponseData
1752
+ */
1753
+ entitlementType: string;
1754
+ /**
1755
+ *
1756
+ * @type {FeatureDetailResponseData}
1757
+ * @memberof FeatureUsageResponseData
1758
+ */
1759
+ feature?: FeatureDetailResponseData;
1760
+ /**
1761
+ * The period over which usage is measured.
1762
+ * @type {string}
1763
+ * @memberof FeatureUsageResponseData
1764
+ */
1765
+ period?: string | null;
1766
+ /**
1767
+ *
1768
+ * @type {PlanResponseData}
1769
+ * @memberof FeatureUsageResponseData
1770
+ */
1771
+ plan?: PlanResponseData;
1772
+ /**
1773
+ * The amount of usage that has been consumed; a null value indicates that usage is not being measured.
1774
+ * @type {number}
1775
+ * @memberof FeatureUsageResponseData
1776
+ */
1777
+ usage?: number | null;
1778
+ }
1779
+
1780
+ /**
1781
+ * @export
1782
+ */
1783
+ declare const FeatureUsageResponseDataAllocationTypeEnum: {
1784
+ readonly Boolean: "boolean";
1785
+ readonly Numeric: "numeric";
1786
+ readonly Trait: "trait";
1787
+ readonly Unlimited: "unlimited";
1788
+ };
1789
+
1790
+ declare type FeatureUsageResponseDataAllocationTypeEnum = (typeof FeatureUsageResponseDataAllocationTypeEnum)[keyof typeof FeatureUsageResponseDataAllocationTypeEnum];
1791
+
1792
+ declare type FetchAPI = WindowOrWorkerGlobalScope["fetch"];
1793
+
1794
+ declare class FetchError extends Error {
1795
+ cause: Error;
1796
+ name: "FetchError";
1797
+ constructor(cause: Error, msg?: string);
1798
+ }
1799
+
1800
+ declare interface FetchParams {
1801
+ url: string;
1802
+ init: RequestInit;
1803
+ }
1804
+
1805
+ /**
1806
+ *
1807
+ * @export
1808
+ * @interface FlagDetailResponseData
1809
+ */
1810
+ declare interface FlagDetailResponseData {
1811
+ /**
1812
+ *
1813
+ * @type {Date}
1814
+ * @memberof FlagDetailResponseData
1815
+ */
1816
+ createdAt: Date;
1817
+ /**
1818
+ *
1819
+ * @type {boolean}
1820
+ * @memberof FlagDetailResponseData
1821
+ */
1822
+ defaultValue: boolean;
1823
+ /**
1824
+ *
1825
+ * @type {string}
1826
+ * @memberof FlagDetailResponseData
1827
+ */
1828
+ description: string;
1829
+ /**
1830
+ *
1831
+ * @type {FeatureResponseData}
1832
+ * @memberof FlagDetailResponseData
1833
+ */
1834
+ feature?: FeatureResponseData;
1835
+ /**
1836
+ *
1837
+ * @type {string}
1838
+ * @memberof FlagDetailResponseData
1839
+ */
1840
+ featureId?: string | null;
1841
+ /**
1842
+ *
1843
+ * @type {string}
1844
+ * @memberof FlagDetailResponseData
1845
+ */
1846
+ flagType: string;
1847
+ /**
1848
+ *
1849
+ * @type {string}
1850
+ * @memberof FlagDetailResponseData
1851
+ */
1852
+ id: string;
1853
+ /**
1854
+ *
1855
+ * @type {string}
1856
+ * @memberof FlagDetailResponseData
1857
+ */
1858
+ key: string;
1859
+ /**
1860
+ *
1861
+ * @type {Date}
1862
+ * @memberof FlagDetailResponseData
1863
+ */
1864
+ lastCheckedAt?: Date | null;
1865
+ /**
1866
+ *
1867
+ * @type {string}
1868
+ * @memberof FlagDetailResponseData
1869
+ */
1870
+ maintainerId?: string | null;
1871
+ /**
1872
+ *
1873
+ * @type {string}
1874
+ * @memberof FlagDetailResponseData
1875
+ */
1876
+ name: string;
1877
+ /**
1878
+ *
1879
+ * @type {Array<RuleDetailResponseData>}
1880
+ * @memberof FlagDetailResponseData
1881
+ */
1882
+ rules: Array<RuleDetailResponseData>;
1883
+ /**
1884
+ *
1885
+ * @type {Date}
1886
+ * @memberof FlagDetailResponseData
1887
+ */
1888
+ updatedAt: Date;
1889
+ }
1890
+
1891
+ export declare const Flex: IStyledComponentBase<"web", FastOmit<Omit<FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ComponentProps> & ComponentProps, "ref"> & {
1892
+ 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;
1893
+ }, never>> & string;
1894
+
1895
+ export declare type FontStyle = keyof EmbedThemeSettings["typography"];
1896
+
1897
+ declare interface GetSetupIntentRequest {
1898
+ componentId: string;
1899
+ }
1900
+
1901
+ /**
1902
+ *
1903
+ * @export
1904
+ * @interface GetSetupIntentResponse
1905
+ */
1906
+ declare interface GetSetupIntentResponse {
1907
+ /**
1908
+ *
1909
+ * @type {SetupIntentResponseData}
1910
+ * @memberof GetSetupIntentResponse
1911
+ */
1912
+ data: SetupIntentResponseData;
1913
+ /**
1914
+ * Input parameters
1915
+ * @type {object}
1916
+ * @memberof GetSetupIntentResponse
1917
+ */
1918
+ params: object;
1919
+ }
1920
+
1921
+ declare type HTTPBody = Json | FormData | URLSearchParams;
1922
+
1923
+ declare type HTTPHeaders = {
1924
+ [key: string]: string;
1925
+ };
1926
+
1927
+ declare type HTTPMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "HEAD";
1928
+
1929
+ declare type HTTPQuery = {
1930
+ [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
1931
+ };
1932
+
1933
+ declare type HTTPRequestInit = {
1934
+ headers?: HTTPHeaders;
1935
+ method: HTTPMethod;
1936
+ credentials?: RequestCredentials;
1937
+ body?: HTTPBody;
1938
+ };
1939
+
1940
+ declare interface HydrateComponentRequest {
1941
+ componentId: string;
1942
+ }
1943
+
1944
+ /**
1945
+ *
1946
+ * @export
1947
+ * @interface HydrateComponentResponse
1948
+ */
1949
+ declare interface HydrateComponentResponse {
1950
+ /**
1951
+ *
1952
+ * @type {ComponentHydrateResponseData}
1953
+ * @memberof HydrateComponentResponse
1954
+ */
1955
+ data: ComponentHydrateResponseData;
1956
+ /**
1957
+ * Input parameters
1958
+ * @type {object}
1959
+ * @memberof HydrateComponentResponse
1960
+ */
1961
+ params: object;
1962
+ }
1963
+
1964
+ export declare const Icon: ({ name, className, ...props }: IconProps) => JSX_2.Element;
1965
+
1966
+ export declare type IconNameTypes = keyof typeof _default;
1967
+
1968
+ export declare interface IconProps extends React.HTMLAttributes<HTMLElement> {
1969
+ name: IconNameTypes;
1970
+ }
1971
+
1972
+ export declare const IconRound: ({ name, variant, size, colors, ...props }: IconRoundProps) => JSX_2.Element;
1973
+
1974
+ export declare interface IconRoundProps extends React.HTMLAttributes<HTMLElement> {
1975
+ name: IconNameTypes;
1976
+ variant?: "outline" | "filled";
1977
+ size?: "tn" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
1978
+ colors?: [string, string];
1979
+ }
1980
+
1981
+ export declare const IncludedFeatures: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_2> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
1982
+
1983
+ export declare type IncludedFeaturesProps = DesignProps_2;
1984
+
1985
+ declare type InitOverrideFunction = (requestContext: {
1986
+ init: HTTPRequestInit;
1987
+ context: RequestOpts;
1988
+ }) => Promise<RequestInit>;
1989
+
1990
+ /**
1991
+ * Schematic API
1992
+ * Schematic API
1993
+ *
1994
+ * The version of the OpenAPI document: 0.1
1995
+ *
1996
+ *
1997
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1998
+ * https://openapi-generator.tech
1999
+ * Do not edit the class manually.
2000
+ */
2001
+ /**
2002
+ *
2003
+ * @export
2004
+ * @interface InvoiceResponseData
2005
+ */
2006
+ declare interface InvoiceResponseData {
2007
+ /**
2008
+ *
2009
+ * @type {number}
2010
+ * @memberof InvoiceResponseData
2011
+ */
2012
+ amountDue: number;
2013
+ /**
2014
+ *
2015
+ * @type {number}
2016
+ * @memberof InvoiceResponseData
2017
+ */
2018
+ amountPaid: number;
2019
+ /**
2020
+ *
2021
+ * @type {number}
2022
+ * @memberof InvoiceResponseData
2023
+ */
2024
+ amountRemaining: number;
2025
+ /**
2026
+ *
2027
+ * @type {string}
2028
+ * @memberof InvoiceResponseData
2029
+ */
2030
+ collectionMethod: string;
2031
+ /**
2032
+ *
2033
+ * @type {string}
2034
+ * @memberof InvoiceResponseData
2035
+ */
2036
+ companyId?: string | null;
2037
+ /**
2038
+ *
2039
+ * @type {Date}
2040
+ * @memberof InvoiceResponseData
2041
+ */
2042
+ createdAt: Date;
2043
+ /**
2044
+ *
2045
+ * @type {string}
2046
+ * @memberof InvoiceResponseData
2047
+ */
2048
+ currency: string;
2049
+ /**
2050
+ *
2051
+ * @type {string}
2052
+ * @memberof InvoiceResponseData
2053
+ */
2054
+ customerExternalId: string;
2055
+ /**
2056
+ *
2057
+ * @type {Date}
2058
+ * @memberof InvoiceResponseData
2059
+ */
2060
+ dueDate?: Date | null;
2061
+ /**
2062
+ *
2063
+ * @type {string}
2064
+ * @memberof InvoiceResponseData
2065
+ */
2066
+ environmentId: string;
2067
+ /**
2068
+ *
2069
+ * @type {string}
2070
+ * @memberof InvoiceResponseData
2071
+ */
2072
+ externalId?: string | null;
2073
+ /**
2074
+ *
2075
+ * @type {string}
2076
+ * @memberof InvoiceResponseData
2077
+ */
2078
+ id: string;
2079
+ /**
2080
+ *
2081
+ * @type {string}
2082
+ * @memberof InvoiceResponseData
2083
+ */
2084
+ paymentMethodExternalId?: string | null;
2085
+ /**
2086
+ *
2087
+ * @type {string}
2088
+ * @memberof InvoiceResponseData
2089
+ */
2090
+ subscriptionExternalId?: string | null;
2091
+ /**
2092
+ *
2093
+ * @type {number}
2094
+ * @memberof InvoiceResponseData
2095
+ */
2096
+ subtotal: number;
2097
+ /**
2098
+ *
2099
+ * @type {Date}
2100
+ * @memberof InvoiceResponseData
2101
+ */
2102
+ updatedAt: Date;
2103
+ }
2104
+
2105
+ export declare const Invoices: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_6> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
2106
+
2107
+ export declare type InvoicesProps = DesignProps_6;
2108
+
2109
+ declare type Json = any;
2110
+
2111
+ declare class JSONApiResponse<T> {
2112
+ raw: Response;
2113
+ private transformer;
2114
+ constructor(raw: Response, transformer?: ResponseTransformer<T>);
2115
+ value(): Promise<T>;
2116
+ }
2117
+
2118
+ export declare const Loader: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2119
+
2120
+ declare function mapValues(data: any, fn: (item: any) => any): {};
2121
+
2122
+ export declare const MeteredFeatures: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_3> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
2123
+
2124
+ export declare type MeteredFeaturesProps = DesignProps_3;
2125
+
2126
+ declare interface Middleware {
2127
+ pre?(context: RequestContext): Promise<FetchParams | void>;
2128
+ post?(context: ResponseContext): Promise<Response | void>;
2129
+ onError?(context: ErrorContext): Promise<Response | void>;
2130
+ }
2131
+
2132
+ export declare const Modal: ({ children, size, onClose }: ModalProps) => JSX_2.Element;
2133
+
2134
+ export declare const ModalHeader: ({ children, bordered, onClose, }: ModalHeaderProps) => JSX_2.Element;
2135
+
2136
+ declare interface ModalHeaderProps {
2137
+ children?: React.ReactNode;
2138
+ bordered?: boolean;
2139
+ onClose?: () => void;
2140
+ }
2141
+
2142
+ declare interface ModalProps {
2143
+ children: React.ReactNode;
2144
+ size?: "sm" | "md" | "lg" | "auto";
2145
+ onClose?: () => void;
2146
+ }
2147
+
2148
+ declare type ModelPropertyNaming = "camelCase" | "snake_case" | "PascalCase" | "original";
2149
+
2150
+ export declare const PaymentMethod: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_5> & HTMLAttributes<HTMLDivElement> & {
2151
+ portal?: HTMLElement | null;
2152
+ } & RefAttributes<HTMLDivElement | null>>;
2153
+
2154
+ export declare type PaymentMethodProps = DesignProps_5;
2155
+
2156
+ /**
2157
+ * Schematic API
2158
+ * Schematic API
2159
+ *
2160
+ * The version of the OpenAPI document: 0.1
2161
+ *
2162
+ *
2163
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2164
+ * https://openapi-generator.tech
2165
+ * Do not edit the class manually.
2166
+ */
2167
+ /**
2168
+ *
2169
+ * @export
2170
+ * @interface PaymentMethodResponseData
2171
+ */
2172
+ declare interface PaymentMethodResponseData {
2173
+ /**
2174
+ *
2175
+ * @type {string}
2176
+ * @memberof PaymentMethodResponseData
2177
+ */
2178
+ cardBrand?: string | null;
2179
+ /**
2180
+ *
2181
+ * @type {number}
2182
+ * @memberof PaymentMethodResponseData
2183
+ */
2184
+ cardExpMonth?: number | null;
2185
+ /**
2186
+ *
2187
+ * @type {number}
2188
+ * @memberof PaymentMethodResponseData
2189
+ */
2190
+ cardExpYear?: number | null;
2191
+ /**
2192
+ *
2193
+ * @type {string}
2194
+ * @memberof PaymentMethodResponseData
2195
+ */
2196
+ cardLast4?: string | null;
2197
+ /**
2198
+ *
2199
+ * @type {string}
2200
+ * @memberof PaymentMethodResponseData
2201
+ */
2202
+ companyId?: string | null;
2203
+ /**
2204
+ *
2205
+ * @type {Date}
2206
+ * @memberof PaymentMethodResponseData
2207
+ */
2208
+ createdAt: Date;
2209
+ /**
2210
+ *
2211
+ * @type {string}
2212
+ * @memberof PaymentMethodResponseData
2213
+ */
2214
+ customerExternalId: string;
2215
+ /**
2216
+ *
2217
+ * @type {string}
2218
+ * @memberof PaymentMethodResponseData
2219
+ */
2220
+ environmentId: string;
2221
+ /**
2222
+ *
2223
+ * @type {string}
2224
+ * @memberof PaymentMethodResponseData
2225
+ */
2226
+ externalId: string;
2227
+ /**
2228
+ *
2229
+ * @type {string}
2230
+ * @memberof PaymentMethodResponseData
2231
+ */
2232
+ id: string;
2233
+ /**
2234
+ *
2235
+ * @type {string}
2236
+ * @memberof PaymentMethodResponseData
2237
+ */
2238
+ paymentMethodType: string;
2239
+ /**
2240
+ *
2241
+ * @type {string}
2242
+ * @memberof PaymentMethodResponseData
2243
+ */
2244
+ subscriptionExternalId?: string | null;
2245
+ /**
2246
+ *
2247
+ * @type {Date}
2248
+ * @memberof PaymentMethodResponseData
2249
+ */
2250
+ updatedAt: Date;
2251
+ }
2252
+
2253
+ /**
2254
+ *
2255
+ * @export
2256
+ * @interface PlanEntitlementResponseData
2257
+ */
2258
+ declare interface PlanEntitlementResponseData {
2259
+ /**
2260
+ *
2261
+ * @type {Date}
2262
+ * @memberof PlanEntitlementResponseData
2263
+ */
2264
+ createdAt: Date;
2265
+ /**
2266
+ *
2267
+ * @type {string}
2268
+ * @memberof PlanEntitlementResponseData
2269
+ */
2270
+ environmentId: string;
2271
+ /**
2272
+ *
2273
+ * @type {FeatureResponseData}
2274
+ * @memberof PlanEntitlementResponseData
2275
+ */
2276
+ feature?: FeatureResponseData;
2277
+ /**
2278
+ *
2279
+ * @type {string}
2280
+ * @memberof PlanEntitlementResponseData
2281
+ */
2282
+ featureId: string;
2283
+ /**
2284
+ *
2285
+ * @type {string}
2286
+ * @memberof PlanEntitlementResponseData
2287
+ */
2288
+ id: string;
2289
+ /**
2290
+ *
2291
+ * @type {string}
2292
+ * @memberof PlanEntitlementResponseData
2293
+ */
2294
+ metricPeriod?: string | null;
2295
+ /**
2296
+ *
2297
+ * @type {PlanResponseData}
2298
+ * @memberof PlanEntitlementResponseData
2299
+ */
2300
+ plan?: PlanResponseData;
2301
+ /**
2302
+ *
2303
+ * @type {string}
2304
+ * @memberof PlanEntitlementResponseData
2305
+ */
2306
+ planId: string;
2307
+ /**
2308
+ *
2309
+ * @type {string}
2310
+ * @memberof PlanEntitlementResponseData
2311
+ */
2312
+ ruleId: string;
2313
+ /**
2314
+ *
2315
+ * @type {Date}
2316
+ * @memberof PlanEntitlementResponseData
2317
+ */
2318
+ updatedAt: Date;
2319
+ /**
2320
+ *
2321
+ * @type {boolean}
2322
+ * @memberof PlanEntitlementResponseData
2323
+ */
2324
+ valueBool?: boolean | null;
2325
+ /**
2326
+ *
2327
+ * @type {number}
2328
+ * @memberof PlanEntitlementResponseData
2329
+ */
2330
+ valueNumeric?: number | null;
2331
+ /**
2332
+ *
2333
+ * @type {EntityTraitDefinitionResponseData}
2334
+ * @memberof PlanEntitlementResponseData
2335
+ */
2336
+ valueTrait?: EntityTraitDefinitionResponseData;
2337
+ /**
2338
+ *
2339
+ * @type {string}
2340
+ * @memberof PlanEntitlementResponseData
2341
+ */
2342
+ valueTraitId?: string | null;
2343
+ /**
2344
+ *
2345
+ * @type {string}
2346
+ * @memberof PlanEntitlementResponseData
2347
+ */
2348
+ valueType: string;
2349
+ }
2350
+
2351
+ export declare const PlanManager: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps> & HTMLAttributes<HTMLDivElement> & {
2352
+ portal?: HTMLElement | null;
2353
+ } & RefAttributes<HTMLDivElement | null>>;
2354
+
2355
+ export declare type PlanManagerProps = DesignProps;
2356
+
2357
+ /**
2358
+ * Schematic API
2359
+ * Schematic API
2360
+ *
2361
+ * The version of the OpenAPI document: 0.1
2362
+ *
2363
+ *
2364
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2365
+ * https://openapi-generator.tech
2366
+ * Do not edit the class manually.
2367
+ */
2368
+ /**
2369
+ *
2370
+ * @export
2371
+ * @interface PlanResponseData
2372
+ */
2373
+ declare interface PlanResponseData {
2374
+ /**
2375
+ *
2376
+ * @type {string}
2377
+ * @memberof PlanResponseData
2378
+ */
2379
+ audienceType?: string | null;
2380
+ /**
2381
+ *
2382
+ * @type {Date}
2383
+ * @memberof PlanResponseData
2384
+ */
2385
+ createdAt: Date;
2386
+ /**
2387
+ *
2388
+ * @type {string}
2389
+ * @memberof PlanResponseData
2390
+ */
2391
+ description: string;
2392
+ /**
2393
+ *
2394
+ * @type {string}
2395
+ * @memberof PlanResponseData
2396
+ */
2397
+ icon: string;
2398
+ /**
2399
+ *
2400
+ * @type {string}
2401
+ * @memberof PlanResponseData
2402
+ */
2403
+ id: string;
2404
+ /**
2405
+ *
2406
+ * @type {string}
2407
+ * @memberof PlanResponseData
2408
+ */
2409
+ name: string;
2410
+ /**
2411
+ *
2412
+ * @type {string}
2413
+ * @memberof PlanResponseData
2414
+ */
2415
+ planType: string;
2416
+ /**
2417
+ *
2418
+ * @type {Date}
2419
+ * @memberof PlanResponseData
2420
+ */
2421
+ updatedAt: Date;
2422
+ }
2423
+
2424
+ declare interface PreviewCheckoutRequest {
2425
+ changeSubscriptionRequestBody: ChangeSubscriptionRequestBody;
2426
+ }
2427
+
2428
+ /**
2429
+ *
2430
+ * @export
2431
+ * @interface PreviewCheckoutResponse
2432
+ */
2433
+ declare interface PreviewCheckoutResponse {
2434
+ /**
2435
+ *
2436
+ * @type {PreviewSubscriptionChangeResponseData}
2437
+ * @memberof PreviewCheckoutResponse
2438
+ */
2439
+ data: PreviewSubscriptionChangeResponseData;
2440
+ /**
2441
+ * Input parameters
2442
+ * @type {object}
2443
+ * @memberof PreviewCheckoutResponse
2444
+ */
2445
+ params: object;
2446
+ }
2447
+
2448
+ /**
2449
+ * Schematic API
2450
+ * Schematic API
2451
+ *
2452
+ * The version of the OpenAPI document: 0.1
2453
+ *
2454
+ *
2455
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2456
+ * https://openapi-generator.tech
2457
+ * Do not edit the class manually.
2458
+ */
2459
+ /**
2460
+ *
2461
+ * @export
2462
+ * @interface PreviewObject
2463
+ */
2464
+ declare interface PreviewObject {
2465
+ /**
2466
+ *
2467
+ * @type {string}
2468
+ * @memberof PreviewObject
2469
+ */
2470
+ description?: string | null;
2471
+ /**
2472
+ *
2473
+ * @type {string}
2474
+ * @memberof PreviewObject
2475
+ */
2476
+ id: string;
2477
+ /**
2478
+ *
2479
+ * @type {string}
2480
+ * @memberof PreviewObject
2481
+ */
2482
+ imageUrl?: string | null;
2483
+ /**
2484
+ *
2485
+ * @type {string}
2486
+ * @memberof PreviewObject
2487
+ */
2488
+ name: string;
2489
+ }
2490
+
2491
+ /**
2492
+ * Schematic API
2493
+ * Schematic API
2494
+ *
2495
+ * The version of the OpenAPI document: 0.1
2496
+ *
2497
+ *
2498
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2499
+ * https://openapi-generator.tech
2500
+ * Do not edit the class manually.
2501
+ */
2502
+ /**
2503
+ * The created resource
2504
+ * @export
2505
+ * @interface PreviewSubscriptionChangeResponseData
2506
+ */
2507
+ declare interface PreviewSubscriptionChangeResponseData {
2508
+ /**
2509
+ *
2510
+ * @type {number}
2511
+ * @memberof PreviewSubscriptionChangeResponseData
2512
+ */
2513
+ dueNow: number;
2514
+ /**
2515
+ *
2516
+ * @type {number}
2517
+ * @memberof PreviewSubscriptionChangeResponseData
2518
+ */
2519
+ newCharges: number;
2520
+ /**
2521
+ *
2522
+ * @type {Date}
2523
+ * @memberof PreviewSubscriptionChangeResponseData
2524
+ */
2525
+ periodStart: Date;
2526
+ /**
2527
+ *
2528
+ * @type {number}
2529
+ * @memberof PreviewSubscriptionChangeResponseData
2530
+ */
2531
+ proration: number;
2532
+ }
2533
+
2534
+ export declare const ProgressBar: ({ progress, value, total, color, barWidth, ...props }: ProgressBarProps) => JSX_2.Element;
2535
+
2536
+ export declare interface ProgressBarProps extends React.ComponentPropsWithoutRef<typeof Flex> {
2537
+ progress: number;
2538
+ value: number;
2539
+ total?: number | string;
2540
+ color?: "gray" | "orange" | "blue" | "red";
2541
+ barWidth?: string | number;
2542
+ }
2543
+
2544
+ declare function querystring(params: HTTPQuery, prefix?: string): string;
2545
+
2546
+ declare type RecursivePartial<T> = {
2547
+ [P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends object | undefined ? RecursivePartial<T[P]> : T[P];
2548
+ };
2549
+
2550
+ declare interface RequestContext {
2551
+ fetch: FetchAPI;
2552
+ url: string;
2553
+ init: RequestInit;
2554
+ }
2555
+
2556
+ declare interface RequestOpts {
2557
+ path: string;
2558
+ method: HTTPMethod;
2559
+ headers: HTTPHeaders;
2560
+ query?: HTTPQuery;
2561
+ body?: HTTPBody;
2562
+ }
2563
+
2564
+ declare class RequiredError extends Error {
2565
+ field: string;
2566
+ name: "RequiredError";
2567
+ constructor(field: string, msg?: string);
2568
+ }
2569
+
2570
+ declare interface ResponseContext {
2571
+ fetch: FetchAPI;
2572
+ url: string;
2573
+ init: RequestInit;
2574
+ response: Response;
2575
+ }
2576
+
2577
+ declare class ResponseError extends Error {
2578
+ response: Response;
2579
+ name: "ResponseError";
2580
+ constructor(response: Response, msg?: string);
2581
+ }
2582
+
2583
+ declare interface ResponseTransformer<T> {
2584
+ (json: any): T;
2585
+ }
2586
+
2587
+ export declare const Root: ForwardRefExoticComponent<Omit<RootProps, "ref"> & RefAttributes<HTMLDivElement | null>>;
2588
+
2589
+ export declare interface RootProps extends Omit<React.HTMLProps<HTMLDivElement>, "data"> {
2590
+ data?: ComponentHydrateResponseData;
2591
+ settings?: EmbedSettings;
2592
+ }
2593
+
2594
+ /**
2595
+ *
2596
+ * @export
2597
+ * @interface RuleConditionDetailResponseData
2598
+ */
2599
+ declare interface RuleConditionDetailResponseData {
2600
+ /**
2601
+ *
2602
+ * @type {EntityTraitDefinitionResponseData}
2603
+ * @memberof RuleConditionDetailResponseData
2604
+ */
2605
+ comparisonTrait?: EntityTraitDefinitionResponseData;
2606
+ /**
2607
+ *
2608
+ * @type {string}
2609
+ * @memberof RuleConditionDetailResponseData
2610
+ */
2611
+ comparisonTraitId?: string | null;
2612
+ /**
2613
+ *
2614
+ * @type {string}
2615
+ * @memberof RuleConditionDetailResponseData
2616
+ */
2617
+ conditionGroupId?: string | null;
2618
+ /**
2619
+ *
2620
+ * @type {string}
2621
+ * @memberof RuleConditionDetailResponseData
2622
+ */
2623
+ conditionType: string;
2624
+ /**
2625
+ *
2626
+ * @type {Date}
2627
+ * @memberof RuleConditionDetailResponseData
2628
+ */
2629
+ createdAt: Date;
2630
+ /**
2631
+ *
2632
+ * @type {string}
2633
+ * @memberof RuleConditionDetailResponseData
2634
+ */
2635
+ environmentId: string;
2636
+ /**
2637
+ *
2638
+ * @type {string}
2639
+ * @memberof RuleConditionDetailResponseData
2640
+ */
2641
+ eventSubtype?: string | null;
2642
+ /**
2643
+ *
2644
+ * @type {string}
2645
+ * @memberof RuleConditionDetailResponseData
2646
+ */
2647
+ flagId?: string | null;
2648
+ /**
2649
+ *
2650
+ * @type {string}
2651
+ * @memberof RuleConditionDetailResponseData
2652
+ */
2653
+ id: string;
2654
+ /**
2655
+ *
2656
+ * @type {string}
2657
+ * @memberof RuleConditionDetailResponseData
2658
+ */
2659
+ metricPeriod?: string | null;
2660
+ /**
2661
+ *
2662
+ * @type {number}
2663
+ * @memberof RuleConditionDetailResponseData
2664
+ */
2665
+ metricValue?: number | null;
2666
+ /**
2667
+ *
2668
+ * @type {string}
2669
+ * @memberof RuleConditionDetailResponseData
2670
+ */
2671
+ operator: string;
2672
+ /**
2673
+ *
2674
+ * @type {string}
2675
+ * @memberof RuleConditionDetailResponseData
2676
+ */
2677
+ planId?: string | null;
2678
+ /**
2679
+ *
2680
+ * @type {Array<string>}
2681
+ * @memberof RuleConditionDetailResponseData
2682
+ */
2683
+ resourceIds: Array<string>;
2684
+ /**
2685
+ *
2686
+ * @type {Array<RuleConditionResourceResponseData>}
2687
+ * @memberof RuleConditionDetailResponseData
2688
+ */
2689
+ resources: Array<RuleConditionResourceResponseData>;
2690
+ /**
2691
+ *
2692
+ * @type {string}
2693
+ * @memberof RuleConditionDetailResponseData
2694
+ */
2695
+ ruleId: string;
2696
+ /**
2697
+ *
2698
+ * @type {EntityTraitDefinitionResponseData}
2699
+ * @memberof RuleConditionDetailResponseData
2700
+ */
2701
+ trait?: EntityTraitDefinitionResponseData;
2702
+ /**
2703
+ *
2704
+ * @type {string}
2705
+ * @memberof RuleConditionDetailResponseData
2706
+ */
2707
+ traitEntityType?: string | null;
2708
+ /**
2709
+ *
2710
+ * @type {string}
2711
+ * @memberof RuleConditionDetailResponseData
2712
+ */
2713
+ traitId?: string | null;
2714
+ /**
2715
+ *
2716
+ * @type {string}
2717
+ * @memberof RuleConditionDetailResponseData
2718
+ */
2719
+ traitValue: string;
2720
+ /**
2721
+ *
2722
+ * @type {Date}
2723
+ * @memberof RuleConditionDetailResponseData
2724
+ */
2725
+ updatedAt: Date;
2726
+ }
2727
+
2728
+ /**
2729
+ *
2730
+ * @export
2731
+ * @interface RuleConditionGroupDetailResponseData
2732
+ */
2733
+ declare interface RuleConditionGroupDetailResponseData {
2734
+ /**
2735
+ *
2736
+ * @type {Array<RuleConditionDetailResponseData>}
2737
+ * @memberof RuleConditionGroupDetailResponseData
2738
+ */
2739
+ conditions: Array<RuleConditionDetailResponseData>;
2740
+ /**
2741
+ *
2742
+ * @type {Date}
2743
+ * @memberof RuleConditionGroupDetailResponseData
2744
+ */
2745
+ createdAt: Date;
2746
+ /**
2747
+ *
2748
+ * @type {string}
2749
+ * @memberof RuleConditionGroupDetailResponseData
2750
+ */
2751
+ environmentId: string;
2752
+ /**
2753
+ *
2754
+ * @type {string}
2755
+ * @memberof RuleConditionGroupDetailResponseData
2756
+ */
2757
+ flagId?: string | null;
2758
+ /**
2759
+ *
2760
+ * @type {string}
2761
+ * @memberof RuleConditionGroupDetailResponseData
2762
+ */
2763
+ id: string;
2764
+ /**
2765
+ *
2766
+ * @type {string}
2767
+ * @memberof RuleConditionGroupDetailResponseData
2768
+ */
2769
+ planId?: string | null;
2770
+ /**
2771
+ *
2772
+ * @type {string}
2773
+ * @memberof RuleConditionGroupDetailResponseData
2774
+ */
2775
+ ruleId: string;
2776
+ /**
2777
+ *
2778
+ * @type {Date}
2779
+ * @memberof RuleConditionGroupDetailResponseData
2780
+ */
2781
+ updatedAt: Date;
2782
+ }
2783
+
2784
+ /**
2785
+ * Schematic API
2786
+ * Schematic API
2787
+ *
2788
+ * The version of the OpenAPI document: 0.1
2789
+ *
2790
+ *
2791
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2792
+ * https://openapi-generator.tech
2793
+ * Do not edit the class manually.
2794
+ */
2795
+ /**
2796
+ *
2797
+ * @export
2798
+ * @interface RuleConditionResourceResponseData
2799
+ */
2800
+ declare interface RuleConditionResourceResponseData {
2801
+ /**
2802
+ *
2803
+ * @type {string}
2804
+ * @memberof RuleConditionResourceResponseData
2805
+ */
2806
+ id: string;
2807
+ /**
2808
+ *
2809
+ * @type {string}
2810
+ * @memberof RuleConditionResourceResponseData
2811
+ */
2812
+ name: string;
2813
+ }
2814
+
2815
+ /**
2816
+ *
2817
+ * @export
2818
+ * @interface RuleDetailResponseData
2819
+ */
2820
+ declare interface RuleDetailResponseData {
2821
+ /**
2822
+ *
2823
+ * @type {Array<RuleConditionGroupDetailResponseData>}
2824
+ * @memberof RuleDetailResponseData
2825
+ */
2826
+ conditionGroups: Array<RuleConditionGroupDetailResponseData>;
2827
+ /**
2828
+ *
2829
+ * @type {Array<RuleConditionDetailResponseData>}
2830
+ * @memberof RuleDetailResponseData
2831
+ */
2832
+ conditions: Array<RuleConditionDetailResponseData>;
2833
+ /**
2834
+ *
2835
+ * @type {Date}
2836
+ * @memberof RuleDetailResponseData
2837
+ */
2838
+ createdAt: Date;
2839
+ /**
2840
+ *
2841
+ * @type {string}
2842
+ * @memberof RuleDetailResponseData
2843
+ */
2844
+ environmentId: string;
2845
+ /**
2846
+ *
2847
+ * @type {string}
2848
+ * @memberof RuleDetailResponseData
2849
+ */
2850
+ flagId?: string | null;
2851
+ /**
2852
+ *
2853
+ * @type {string}
2854
+ * @memberof RuleDetailResponseData
2855
+ */
2856
+ id: string;
2857
+ /**
2858
+ *
2859
+ * @type {string}
2860
+ * @memberof RuleDetailResponseData
2861
+ */
2862
+ name: string;
2863
+ /**
2864
+ *
2865
+ * @type {string}
2866
+ * @memberof RuleDetailResponseData
2867
+ */
2868
+ planId?: string | null;
2869
+ /**
2870
+ *
2871
+ * @type {number}
2872
+ * @memberof RuleDetailResponseData
2873
+ */
2874
+ priority: number;
2875
+ /**
2876
+ *
2877
+ * @type {string}
2878
+ * @memberof RuleDetailResponseData
2879
+ */
2880
+ ruleType: string;
2881
+ /**
2882
+ *
2883
+ * @type {Date}
2884
+ * @memberof RuleDetailResponseData
2885
+ */
2886
+ updatedAt: Date;
2887
+ /**
2888
+ *
2889
+ * @type {boolean}
2890
+ * @memberof RuleDetailResponseData
2891
+ */
2892
+ value: boolean;
2893
+ }
2894
+
2895
+ declare namespace runtime {
2896
+ export {
2897
+ querystring,
2898
+ mapValues,
2899
+ canConsumeForm,
2900
+ BASE_PATH,
2901
+ ConfigurationParameters,
2902
+ Configuration,
2903
+ DefaultConfig,
2904
+ BaseAPI,
2905
+ ResponseError,
2906
+ FetchError,
2907
+ RequiredError,
2908
+ COLLECTION_FORMATS,
2909
+ FetchAPI,
2910
+ Json,
2911
+ HTTPMethod,
2912
+ HTTPHeaders,
2913
+ HTTPQuery,
2914
+ HTTPBody,
2915
+ HTTPRequestInit,
2916
+ ModelPropertyNaming,
2917
+ InitOverrideFunction,
2918
+ FetchParams,
2919
+ RequestOpts,
2920
+ Consume,
2921
+ RequestContext,
2922
+ ResponseContext,
2923
+ ErrorContext,
2924
+ Middleware,
2925
+ ApiResponse,
2926
+ ResponseTransformer,
2927
+ JSONApiResponse,
2928
+ VoidApiResponse,
2929
+ BlobApiResponse,
2930
+ TextApiResponse
2931
+ }
2932
+ }
2933
+
2934
+ export declare const SchematicEmbed: ({ id, accessToken, apiConfig }: EmbedProps) => JSX_2.Element;
2935
+
2936
+ declare type SerializedNode = Omit<Craft.SerializedNode, "parent"> & {
2937
+ id: string;
2938
+ parent?: string | null;
2939
+ };
2940
+
2941
+ declare type SerializedNodeWithChildren = SerializedNode & {
2942
+ children: SerializedNodeWithChildren[];
2943
+ };
2944
+
2945
+ /**
2946
+ * Schematic API
2947
+ * Schematic API
2948
+ *
2949
+ * The version of the OpenAPI document: 0.1
2950
+ *
2951
+ *
2952
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2953
+ * https://openapi-generator.tech
2954
+ * Do not edit the class manually.
2955
+ */
2956
+ /**
2957
+ * The returned resource
2958
+ * @export
2959
+ * @interface SetupIntentResponseData
2960
+ */
2961
+ declare interface SetupIntentResponseData {
2962
+ /**
2963
+ *
2964
+ * @type {string}
2965
+ * @memberof SetupIntentResponseData
2966
+ */
2967
+ publishableKey: string;
2968
+ /**
2969
+ *
2970
+ * @type {string}
2971
+ * @memberof SetupIntentResponseData
2972
+ */
2973
+ setupIntentClientSecret?: string | null;
2974
+ }
2975
+
2976
+ /**
2977
+ * Schematic API
2978
+ * Schematic API
2979
+ *
2980
+ * The version of the OpenAPI document: 0.1
2981
+ *
2982
+ *
2983
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2984
+ * https://openapi-generator.tech
2985
+ * Do not edit the class manually.
2986
+ */
2987
+ /**
2988
+ *
2989
+ * @export
2990
+ * @interface StripeEmbedInfo
2991
+ */
2992
+ declare interface StripeEmbedInfo {
2993
+ /**
2994
+ *
2995
+ * @type {string}
2996
+ * @memberof StripeEmbedInfo
2997
+ */
2998
+ publishableKey: string;
2999
+ /**
3000
+ *
3001
+ * @type {string}
3002
+ * @memberof StripeEmbedInfo
3003
+ */
3004
+ setupIntentClientSecret?: string | null;
3005
+ }
3006
+
3007
+ declare const Text_2: IStyledComponentBase<"web", Substitute<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, TextProps>> & string;
3008
+ export { Text_2 as Text }
3009
+
3010
+ declare class TextApiResponse {
3011
+ raw: Response;
3012
+ constructor(raw: Response);
3013
+ value(): Promise<string>;
3014
+ }
3015
+
3016
+ export declare interface TextProps extends ComponentProps {
3017
+ $align?: ComponentProps["$textAlign"];
3018
+ $font?: ComponentProps["$fontFamily"];
3019
+ $size?: ComponentProps["$fontSize"];
3020
+ $weight?: ComponentProps["$fontWeight"];
3021
+ $color?: ComponentProps["$color"];
3022
+ $lineHeight?: ComponentProps["$lineHeight"];
3023
+ }
3024
+
3025
+ declare type TransientCSSProperties = {
3026
+ [Property in keyof React.CSSProperties as `$${string & Property}`]: React.CSSProperties[Property];
3027
+ };
3028
+
3029
+ export declare interface TypographySettings {
3030
+ fontFamily: string;
3031
+ fontSize: number;
3032
+ fontWeight: number;
3033
+ color: string;
3034
+ }
3035
+
3036
+ export declare const UpcomingBill: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_4> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
3037
+
3038
+ export declare type UpcomingBillProps = DesignProps_4;
3039
+
3040
+ export declare const useEmbed: () => EmbedContextProps;
3041
+
3042
+ export declare const Viewport: ForwardRefExoticComponent<Omit<ViewportProps, "ref"> & RefAttributes<HTMLDivElement | null>>;
3043
+
3044
+ export declare interface ViewportProps extends React.HTMLProps<HTMLDivElement> {
3045
+ }
3046
+
3047
+ declare class VoidApiResponse {
3048
+ raw: Response;
3049
+ constructor(raw: Response);
3050
+ value(): Promise<void>;
3051
+ }
3052
+
3053
+ export { }