@memberstack/dom 1.9.3 → 1.9.6

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