@memberstack/dom 1.9.3 → 1.9.4

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.
@@ -13,37 +13,754 @@ declare const _default: {
13
13
  unsubscribe: () => boolean;
14
14
  };
15
15
  } & {
16
- getApp(): Promise<import("../types").AppPayload>;
17
- getAuthProviders(): Promise<import("../types").AppPayload>;
18
- loginMemberEmailPassword(params: import("../types").LoginMemberEmailPasswordParams): Promise<import("../types").LoginMemberEmailPasswordPayload>;
19
- loginMemberAuthProvider(params: import("../types").LoginMemberAuthProviderParams): Promise<import("../types").LoginMemberAuthProviderPayload>;
20
- getPlan(params: import("../types").GetPlanParams): Promise<import("../types").GetPlanPayload>;
21
- getPlans(params?: import("../types").GetPlansParams): Promise<import("../types").GetPlansPayload>;
22
- getRestrictedUrlGroups(): Promise<import("../types").GetRestrictedUrlGroupsPayload>;
23
- getCurrentMember(options?: import("./requests").GetCurrentMemberParams): Promise<import("../types").GetCurrentMemberPayload>;
24
- getMemberJSON(options?: import("./requests").MemberstackOptions): Promise<import("../types").GetMemberJSONPayload>;
25
- updateMemberJSON(params: import("../types").UpdateMemberJSONParams, options?: import("./requests").MemberstackOptions): Promise<import("../types").GetMemberJSONPayload>;
26
- getMemberCards(options?: import("./requests").MemberstackOptions): Promise<import("../types").GetMemberCardsPayload>;
27
- getMemberInvoices(params?: import("../types").GetMemberInvoicesParams, options?: import("./requests").MemberstackOptions): Promise<import("../types").GetMemberInvoicesPayload>;
28
- getMemberReceipts(params?: import("../types").GetMemberReceiptsParams, options?: import("./requests").MemberstackOptions): Promise<import("../types").GetMemberReceiptsPayload>;
29
- getAuthenticationClientSecret(params: import("../types").GetAuthenticationClientSecretParams, options?: import("./requests").MemberstackOptions): Promise<import("../types").GetAuthenticationClientSecretPayload>;
30
- getTotalCheckoutAmount(params: import("../types").GetTotalCheckoutAmountParams, options?: import("./requests").MemberstackOptions): Promise<import("../types").GetTotalCheckoutAmountPayload>;
31
- purchasePlans(params: import("../types").PurchasePlansParams, options?: import("./requests").MemberstackOptions): Promise<import("../types").PurchasePlansPayload>;
32
- addPlan(params: import("../types").AddPlanParams, options?: import("./requests").MemberstackOptions): Promise<import("../types").AddPlanPayload>;
33
- purchasePlansWithCheckout(params: import("../types").PurchasePlansWithCheckoutParams, options?: import("./requests").MemberstackOptions): Promise<import("../types").PurchasePlansWithCheckoutPayload>;
34
- launchStripeCustomerPortal(params: import("../types").LaunchStripeCustomerPortalParams, options?: import("./requests").MemberstackOptions): Promise<import("../types").LaunchStripeCustomerPortalPayload>;
35
- cancelPlan(params: import("../types").CancelPlanParams, options?: import("./requests").MemberstackOptions): Promise<import("../types").CancelPlanPayload>;
36
- updateMember(params: import("../types").UpdateMemberParams, options?: import("./requests").MemberstackOptions): Promise<import("../types").UpdateMemberPayload>;
37
- updateMemberAuth(params: import("../types").UpdateMemberAuthParams, options?: import("./requests").MemberstackOptions): Promise<import("../types").UpdateMemberAuthPayload>;
38
- addCard(params: import("../types").AddMemberCardParams, options?: import("./requests").MemberstackOptions): Promise<import("../types").AddMemberCardPayload>;
39
- updateDefaultCard(params: import("../types").UpdateDefaultCardParams, options?: import("./requests").MemberstackOptions): Promise<import("../types").UpdateDefaultCardPayload>;
40
- updatePlanPayment(params: import("../types").UpdatePlanPaymentParams, options?: import("./requests").MemberstackOptions): Promise<import("../types").UpdatePlanPaymentPayload>;
41
- signupMemberEmailPassword(params: import("../types").SignupMemberEmailPasswordParams): Promise<import("../types").SignupMemberEmailPasswordPayload>;
42
- signupMemberAuthProvider(params: import("../types").SignupMemberAuthProviderParams): Promise<import("../types").SignupMemberAuthProviderPayload>;
43
- sendMemberResetPasswordEmail(params: import("../types").SendMemberResetPasswordEmailParams): Promise<import("../types").SendMemberResetPasswordEmailPayload>;
44
- resetMemberPassword(params: import("../types").ResetMemberPasswordParams): Promise<import("../types").ResetMemberPasswordPayload>;
45
- logout(options?: import("./requests").MemberstackOptions): Promise<import("../types").LogoutMemberPayload>;
46
- replacePlan(params: import("../types").ReplacePlanParams, options?: import("./requests").MemberstackOptions): Promise<import("../types").ReplacePlanPayload>;
16
+ getApp(): Promise<{
17
+ data: {
18
+ id: string;
19
+ name: string;
20
+ domains?: {
21
+ url: string;
22
+ verified: boolean;
23
+ }[];
24
+ plans: {
25
+ id: string;
26
+ name: string;
27
+ description: string;
28
+ status: string;
29
+ redirects: {
30
+ afterLogin: string;
31
+ afterLogout: string;
32
+ afterSignup: string;
33
+ };
34
+ prices?: [] | {
35
+ id: string;
36
+ amount: string;
37
+ interval: {
38
+ type: string;
39
+ count: number;
40
+ };
41
+ name: string;
42
+ type: string;
43
+ status: string;
44
+ currency: string;
45
+ }[];
46
+ }[];
47
+ customFields: {
48
+ id: string;
49
+ key: string;
50
+ label: string;
51
+ plans: {
52
+ id: string;
53
+ name: string;
54
+ description: string;
55
+ status: string;
56
+ redirects: {
57
+ afterLogin: string;
58
+ afterLogout: string;
59
+ afterSignup: string;
60
+ };
61
+ prices?: [] | {
62
+ id: string;
63
+ amount: string;
64
+ interval: {
65
+ type: string;
66
+ count: number;
67
+ };
68
+ name: string;
69
+ type: string;
70
+ status: string;
71
+ currency: string;
72
+ }[];
73
+ }[];
74
+ }[];
75
+ };
76
+ }>;
77
+ getAuthProviders(): Promise<{
78
+ data: {
79
+ id: string;
80
+ name: string;
81
+ domains?: {
82
+ url: string;
83
+ verified: boolean;
84
+ }[];
85
+ plans: {
86
+ id: string;
87
+ name: string;
88
+ description: string;
89
+ status: string;
90
+ redirects: {
91
+ afterLogin: string;
92
+ afterLogout: string;
93
+ afterSignup: string;
94
+ };
95
+ prices?: [] | {
96
+ id: string;
97
+ amount: string;
98
+ interval: {
99
+ type: string;
100
+ count: number;
101
+ };
102
+ name: string;
103
+ type: string;
104
+ status: string;
105
+ currency: string;
106
+ }[];
107
+ }[];
108
+ customFields: {
109
+ id: string;
110
+ key: string;
111
+ label: string;
112
+ plans: {
113
+ id: string;
114
+ name: string;
115
+ description: string;
116
+ status: string;
117
+ redirects: {
118
+ afterLogin: string;
119
+ afterLogout: string;
120
+ afterSignup: string;
121
+ };
122
+ prices?: [] | {
123
+ id: string;
124
+ amount: string;
125
+ interval: {
126
+ type: string;
127
+ count: number;
128
+ };
129
+ name: string;
130
+ type: string;
131
+ status: string;
132
+ currency: string;
133
+ }[];
134
+ }[];
135
+ }[];
136
+ };
137
+ }>;
138
+ loginMemberEmailPassword(params: import("../types").LoginMemberEmailPasswordParams): Promise<{
139
+ data: {
140
+ tokens: {
141
+ accessToken: string;
142
+ expires: number;
143
+ type: "bearer";
144
+ };
145
+ member: {
146
+ id: string;
147
+ auth: {
148
+ email: string;
149
+ };
150
+ stripeCustomerId: string;
151
+ createdAt: string;
152
+ metaData: object;
153
+ customFields: object;
154
+ permissions: [] | string[];
155
+ planConnections: {
156
+ id: string;
157
+ active: boolean;
158
+ status: string;
159
+ planId: string;
160
+ type: string;
161
+ payment: {
162
+ amount: number;
163
+ currency: string;
164
+ status: string;
165
+ lastBillingDate: number;
166
+ nextBillingDate: number;
167
+ cancelAtDate: number;
168
+ lastInvoice: string;
169
+ lastReceipt: string;
170
+ card: string;
171
+ };
172
+ }[];
173
+ };
174
+ redirect: string;
175
+ loginRedirect: string;
176
+ payment: {
177
+ requirePayment: string[];
178
+ requireAuthentication: string[];
179
+ };
180
+ };
181
+ }>;
182
+ loginMemberAuthProvider(params: import("../types").LoginMemberAuthProviderParams): Promise<{
183
+ data: {
184
+ tokens: {
185
+ accessToken: string;
186
+ expires: number;
187
+ type: "bearer";
188
+ };
189
+ member: {
190
+ id: string;
191
+ auth: {
192
+ email: string;
193
+ };
194
+ stripeCustomerId: string;
195
+ createdAt: string;
196
+ metaData: object;
197
+ customFields: object;
198
+ permissions: [] | string[];
199
+ planConnections: {
200
+ id: string;
201
+ active: boolean;
202
+ status: string;
203
+ planId: string;
204
+ type: string;
205
+ payment: {
206
+ amount: number;
207
+ currency: string;
208
+ status: string;
209
+ lastBillingDate: number;
210
+ nextBillingDate: number;
211
+ cancelAtDate: number;
212
+ lastInvoice: string;
213
+ lastReceipt: string;
214
+ card: string;
215
+ };
216
+ }[];
217
+ };
218
+ redirect: string;
219
+ loginRedirect: string;
220
+ payment: {
221
+ requirePayment: string[];
222
+ requireAuthentication: string[];
223
+ };
224
+ };
225
+ }>;
226
+ getPlan(params: import("../types").GetPlanParams): Promise<{
227
+ data: {
228
+ id: string;
229
+ name: string;
230
+ description: string;
231
+ status: string;
232
+ redirects: {
233
+ afterLogin: string;
234
+ afterLogout: string;
235
+ afterSignup: string;
236
+ };
237
+ prices?: [] | {
238
+ id: string;
239
+ amount: string;
240
+ interval: {
241
+ type: string;
242
+ count: number;
243
+ };
244
+ name: string;
245
+ type: string;
246
+ status: string;
247
+ currency: string;
248
+ }[];
249
+ };
250
+ }>;
251
+ getPlans(params?: import("../types").GetPlansParams): Promise<{
252
+ data: {
253
+ id: string;
254
+ name: string;
255
+ description: string;
256
+ status: string;
257
+ redirects: {
258
+ afterLogin: string;
259
+ afterLogout: string;
260
+ afterSignup: string;
261
+ };
262
+ prices?: [] | {
263
+ id: string;
264
+ amount: string;
265
+ interval: {
266
+ type: string;
267
+ count: number;
268
+ };
269
+ name: string;
270
+ type: string;
271
+ status: string;
272
+ currency: string;
273
+ }[];
274
+ }[];
275
+ }>;
276
+ getRestrictedUrlGroups(): Promise<{
277
+ data: {
278
+ id: string;
279
+ name: string;
280
+ key: string;
281
+ redirect: string;
282
+ urls: {
283
+ url: string;
284
+ filter: string;
285
+ }[];
286
+ plans: {
287
+ id: string;
288
+ }[];
289
+ }[];
290
+ }>;
291
+ getCurrentMember(options?: import("./requests").GetCurrentMemberParams): Promise<{
292
+ data: {
293
+ id: string;
294
+ auth: {
295
+ email: string;
296
+ };
297
+ stripeCustomerId: string;
298
+ createdAt: string;
299
+ metaData: object;
300
+ customFields: object;
301
+ permissions: [] | string[];
302
+ planConnections: {
303
+ id: string;
304
+ active: boolean;
305
+ status: string;
306
+ planId: string;
307
+ type: string;
308
+ payment: {
309
+ amount: number;
310
+ currency: string;
311
+ status: string;
312
+ lastBillingDate: number;
313
+ nextBillingDate: number;
314
+ cancelAtDate: number;
315
+ lastInvoice: string;
316
+ lastReceipt: string;
317
+ card: string;
318
+ };
319
+ }[];
320
+ };
321
+ }>;
322
+ getMemberJSON(options?: import("./requests").MemberstackOptions): Promise<{
323
+ data: {
324
+ json: object;
325
+ };
326
+ }>;
327
+ updateMemberJSON(params: import("../types").UpdateMemberJSONParams, options?: import("./requests").MemberstackOptions): Promise<{
328
+ data: {
329
+ json: object;
330
+ };
331
+ }>;
332
+ getMemberCards(options?: import("./requests").MemberstackOptions): Promise<{
333
+ data: {
334
+ id: string;
335
+ brand: string;
336
+ expMonth: string;
337
+ expYear: string;
338
+ last4: string;
339
+ default: boolean;
340
+ }[];
341
+ }>;
342
+ getMemberInvoices(params?: import("../types").GetMemberInvoicesParams, options?: import("./requests").MemberstackOptions): Promise<{
343
+ hasNext: boolean;
344
+ endCursor: string;
345
+ totalCount: number;
346
+ data: {
347
+ id: string;
348
+ status: string;
349
+ amount: number;
350
+ url: string;
351
+ description: string;
352
+ number: string;
353
+ planConnection: string;
354
+ createdAt: string;
355
+ currency: string;
356
+ }[];
357
+ }>;
358
+ getMemberReceipts(params?: import("../types").GetMemberReceiptsParams, options?: import("./requests").MemberstackOptions): Promise<{
359
+ hasNext: boolean;
360
+ endCursor: string;
361
+ totalCount: number;
362
+ data: {
363
+ id: string;
364
+ amount: number;
365
+ url: string;
366
+ stripe?: {
367
+ url: string;
368
+ };
369
+ number: string;
370
+ purchase: string;
371
+ invoice: string;
372
+ createdAt: string;
373
+ currency: string;
374
+ }[];
375
+ }>;
376
+ getAuthenticationClientSecret(params: import("../types").GetAuthenticationClientSecretParams, options?: import("./requests").MemberstackOptions): Promise<{
377
+ data: string;
378
+ }>;
379
+ getTotalCheckoutAmount(params: import("../types").GetTotalCheckoutAmountParams, options?: import("./requests").MemberstackOptions): Promise<{
380
+ data: {
381
+ total: number;
382
+ subTotal: number;
383
+ currency: string;
384
+ setupFee?: {
385
+ enabled: boolean;
386
+ amount: number;
387
+ name: string;
388
+ };
389
+ freeTrial?: {
390
+ days: number;
391
+ enabled: boolean;
392
+ };
393
+ tax?: {
394
+ name: string;
395
+ percent: number;
396
+ description: string;
397
+ }[];
398
+ };
399
+ }>;
400
+ purchasePlans(params: import("../types").PurchasePlansParams, options?: import("./requests").MemberstackOptions): Promise<{
401
+ data: {
402
+ plan: string;
403
+ payment: {
404
+ requiresPayment: boolean;
405
+ requiresAuthentication: boolean;
406
+ };
407
+ };
408
+ }>;
409
+ addPlan(params: import("../types").AddPlanParams, options?: import("./requests").MemberstackOptions): Promise<{
410
+ data: {
411
+ redirect: string;
412
+ planConnection: {
413
+ id: string;
414
+ active: boolean;
415
+ status: string;
416
+ planId: string;
417
+ type: string;
418
+ payment: {
419
+ amount: number;
420
+ currency: string;
421
+ status: string;
422
+ lastBillingDate: number;
423
+ nextBillingDate: number;
424
+ cancelAtDate: number;
425
+ lastInvoice: string;
426
+ lastReceipt: string;
427
+ card: string;
428
+ };
429
+ };
430
+ };
431
+ }>;
432
+ purchasePlansWithCheckout(params: import("../types").PurchasePlansWithCheckoutParams, options?: import("./requests").MemberstackOptions): Promise<{
433
+ data: {
434
+ url: string;
435
+ };
436
+ }>;
437
+ launchStripeCustomerPortal(params: import("../types").LaunchStripeCustomerPortalParams, options?: import("./requests").MemberstackOptions): Promise<{
438
+ data: {
439
+ url: string;
440
+ };
441
+ }>;
442
+ cancelPlan(params: import("../types").CancelPlanParams, options?: import("./requests").MemberstackOptions): Promise<{
443
+ data: {
444
+ id: string;
445
+ auth: {
446
+ email: string;
447
+ };
448
+ stripeCustomerId: string;
449
+ createdAt: string;
450
+ metaData: object;
451
+ customFields: object;
452
+ permissions: [] | string[];
453
+ planConnections: {
454
+ id: string;
455
+ active: boolean;
456
+ status: string;
457
+ planId: string;
458
+ type: string;
459
+ payment: {
460
+ amount: number;
461
+ currency: string;
462
+ status: string;
463
+ lastBillingDate: number;
464
+ nextBillingDate: number;
465
+ cancelAtDate: number;
466
+ lastInvoice: string;
467
+ lastReceipt: string;
468
+ card: string;
469
+ };
470
+ }[];
471
+ };
472
+ }>;
473
+ updateMember(params: import("../types").UpdateMemberParams, options?: import("./requests").MemberstackOptions): Promise<{
474
+ data: {
475
+ id: string;
476
+ auth: {
477
+ email: string;
478
+ };
479
+ stripeCustomerId: string;
480
+ createdAt: string;
481
+ metaData: object;
482
+ customFields: object;
483
+ permissions: [] | string[];
484
+ planConnections: {
485
+ id: string;
486
+ active: boolean;
487
+ status: string;
488
+ planId: string;
489
+ type: string;
490
+ payment: {
491
+ amount: number;
492
+ currency: string;
493
+ status: string;
494
+ lastBillingDate: number;
495
+ nextBillingDate: number;
496
+ cancelAtDate: number;
497
+ lastInvoice: string;
498
+ lastReceipt: string;
499
+ card: string;
500
+ };
501
+ }[];
502
+ };
503
+ }>;
504
+ updateMemberAuth(params: import("../types").UpdateMemberAuthParams, options?: import("./requests").MemberstackOptions): Promise<{
505
+ data: {
506
+ id: string;
507
+ auth: {
508
+ email: string;
509
+ };
510
+ stripeCustomerId: string;
511
+ createdAt: string;
512
+ metaData: object;
513
+ customFields: object;
514
+ permissions: [] | string[];
515
+ planConnections: {
516
+ id: string;
517
+ active: boolean;
518
+ status: string;
519
+ planId: string;
520
+ type: string;
521
+ payment: {
522
+ amount: number;
523
+ currency: string;
524
+ status: string;
525
+ lastBillingDate: number;
526
+ nextBillingDate: number;
527
+ cancelAtDate: number;
528
+ lastInvoice: string;
529
+ lastReceipt: string;
530
+ card: string;
531
+ };
532
+ }[];
533
+ };
534
+ }>;
535
+ addCard(params: import("../types").AddMemberCardParams, options?: import("./requests").MemberstackOptions): Promise<{
536
+ data: {
537
+ id: string;
538
+ auth: {
539
+ email: string;
540
+ };
541
+ stripeCustomerId: string;
542
+ createdAt: string;
543
+ metaData: object;
544
+ customFields: object;
545
+ permissions: [] | string[];
546
+ planConnections: {
547
+ id: string;
548
+ active: boolean;
549
+ status: string;
550
+ planId: string;
551
+ type: string;
552
+ payment: {
553
+ amount: number;
554
+ currency: string;
555
+ status: string;
556
+ lastBillingDate: number;
557
+ nextBillingDate: number;
558
+ cancelAtDate: number;
559
+ lastInvoice: string;
560
+ lastReceipt: string;
561
+ card: string;
562
+ };
563
+ }[];
564
+ };
565
+ }>;
566
+ updateDefaultCard(params: import("../types").UpdateDefaultCardParams, options?: import("./requests").MemberstackOptions): Promise<{
567
+ data: {
568
+ id: string;
569
+ auth: {
570
+ email: string;
571
+ };
572
+ stripeCustomerId: string;
573
+ createdAt: string;
574
+ metaData: object;
575
+ customFields: object;
576
+ permissions: [] | string[];
577
+ planConnections: {
578
+ id: string;
579
+ active: boolean;
580
+ status: string;
581
+ planId: string;
582
+ type: string;
583
+ payment: {
584
+ amount: number;
585
+ currency: string;
586
+ status: string;
587
+ lastBillingDate: number;
588
+ nextBillingDate: number;
589
+ cancelAtDate: number;
590
+ lastInvoice: string;
591
+ lastReceipt: string;
592
+ card: string;
593
+ };
594
+ }[];
595
+ };
596
+ }>;
597
+ updatePlanPayment(params: import("../types").UpdatePlanPaymentParams, options?: import("./requests").MemberstackOptions): Promise<{
598
+ data: {
599
+ id: string;
600
+ auth: {
601
+ email: string;
602
+ };
603
+ stripeCustomerId: string;
604
+ createdAt: string;
605
+ metaData: object;
606
+ customFields: object;
607
+ permissions: [] | string[];
608
+ planConnections: {
609
+ id: string;
610
+ active: boolean;
611
+ status: string;
612
+ planId: string;
613
+ type: string;
614
+ payment: {
615
+ amount: number;
616
+ currency: string;
617
+ status: string;
618
+ lastBillingDate: number;
619
+ nextBillingDate: number;
620
+ cancelAtDate: number;
621
+ lastInvoice: string;
622
+ lastReceipt: string;
623
+ card: string;
624
+ };
625
+ }[];
626
+ };
627
+ }>;
628
+ signupMemberEmailPassword(params: import("../types").SignupMemberEmailPasswordParams): Promise<{
629
+ data: {
630
+ tokens: {
631
+ accessToken: string;
632
+ expires: number;
633
+ type: "bearer";
634
+ };
635
+ member: {
636
+ id: string;
637
+ auth: {
638
+ email: string;
639
+ };
640
+ stripeCustomerId: string;
641
+ createdAt: string;
642
+ metaData: object;
643
+ customFields: object;
644
+ permissions: [] | string[];
645
+ planConnections: {
646
+ id: string;
647
+ active: boolean;
648
+ status: string;
649
+ planId: string;
650
+ type: string;
651
+ payment: {
652
+ amount: number;
653
+ currency: string;
654
+ status: string;
655
+ lastBillingDate: number;
656
+ nextBillingDate: number;
657
+ cancelAtDate: number;
658
+ lastInvoice: string;
659
+ lastReceipt: string;
660
+ card: string;
661
+ };
662
+ }[];
663
+ };
664
+ redirect: string;
665
+ loginRedirect: string;
666
+ payment: {
667
+ requirePayment: string[];
668
+ requireAuthentication: string[];
669
+ };
670
+ };
671
+ }>;
672
+ signupMemberAuthProvider(params: import("../types").SignupMemberAuthProviderParams): Promise<{
673
+ data: {
674
+ tokens: {
675
+ accessToken: string;
676
+ expires: number;
677
+ type: "bearer";
678
+ };
679
+ member: {
680
+ id: string;
681
+ auth: {
682
+ email: string;
683
+ };
684
+ stripeCustomerId: string;
685
+ createdAt: string;
686
+ metaData: object;
687
+ customFields: object;
688
+ permissions: [] | string[];
689
+ planConnections: {
690
+ id: string;
691
+ active: boolean;
692
+ status: string;
693
+ planId: string;
694
+ type: string;
695
+ payment: {
696
+ amount: number;
697
+ currency: string;
698
+ status: string;
699
+ lastBillingDate: number;
700
+ nextBillingDate: number;
701
+ cancelAtDate: number;
702
+ lastInvoice: string;
703
+ lastReceipt: string;
704
+ card: string;
705
+ };
706
+ }[];
707
+ };
708
+ redirect: string;
709
+ loginRedirect: string;
710
+ payment: {
711
+ requirePayment: string[];
712
+ requireAuthentication: string[];
713
+ };
714
+ };
715
+ }>;
716
+ sendMemberResetPasswordEmail(params: import("../types").SendMemberResetPasswordEmailParams): Promise<{
717
+ data: string;
718
+ }>;
719
+ resetMemberPassword(params: import("../types").ResetMemberPasswordParams): Promise<{
720
+ data: {
721
+ id: string;
722
+ auth: {
723
+ email: string;
724
+ };
725
+ stripeCustomerId: string;
726
+ createdAt: string;
727
+ metaData: object;
728
+ customFields: object;
729
+ permissions: [] | string[];
730
+ planConnections: {
731
+ id: string;
732
+ active: boolean;
733
+ status: string;
734
+ planId: string;
735
+ type: string;
736
+ payment: {
737
+ amount: number;
738
+ currency: string;
739
+ status: string;
740
+ lastBillingDate: number;
741
+ nextBillingDate: number;
742
+ cancelAtDate: number;
743
+ lastInvoice: string;
744
+ lastReceipt: string;
745
+ card: string;
746
+ };
747
+ }[];
748
+ };
749
+ }>;
750
+ logout(options?: import("./requests").MemberstackOptions): Promise<{
751
+ data: {
752
+ redirect?: string;
753
+ };
754
+ }>;
755
+ replacePlan(params: import("../types").ReplacePlanParams, options?: import("./requests").MemberstackOptions): Promise<{
756
+ data: {
757
+ plan: string;
758
+ payment: {
759
+ requiresPayment: boolean;
760
+ requiresAuthentication: boolean;
761
+ };
762
+ };
763
+ }>;
47
764
  decodeToken({ token }: {
48
765
  token: string;
49
766
  }): Promise<Pick<import("jose").JWTPayload, "iat" | "exp"> & {