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