@memberstack/dom 1.9.8 → 1.9.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.ts CHANGED
@@ -9,953 +9,34 @@ declare const _default: {
9
9
  onAuthChange: (cb: any) => {
10
10
  unsubscribe: () => boolean;
11
11
  };
12
+ _captchaReady: Promise<unknown>;
12
13
  } & {
13
14
  signupWithProvider(params?: import("./types").SignupWithProviderParams): Promise<unknown>;
14
- loginWithProvider(params?: import("./types").SignupWithProviderParams): Promise<unknown>;
15
- getAppAndMember(): Promise<{
16
- data: {
17
- app: {
18
- id: string;
19
- name: string;
20
- mode: "live" | "sandbox";
21
- plans: {
22
- id: string;
23
- name: string;
24
- description: string;
25
- status: string;
26
- redirects: {
27
- afterLogin: string;
28
- afterLogout: string;
29
- afterSignup: string;
30
- };
31
- prices?: [] | {
32
- id: string;
33
- amount: string;
34
- interval: {
35
- type: string;
36
- count: number;
37
- };
38
- name: string;
39
- type: string;
40
- status: string;
41
- currency: string;
42
- }[];
43
- }[];
44
- contentGroups: {
45
- id: string;
46
- name: string;
47
- key: string;
48
- allowAllMembers: boolean;
49
- activeMemberHasAccess?: boolean;
50
- redirect: string;
51
- urls: {
52
- url: string;
53
- filter: string;
54
- }[];
55
- plans: {
56
- id: string;
57
- }[];
58
- }[];
59
- emailVerificationEnabled: boolean;
60
- requireEmailVerification: boolean;
61
- customField: {
62
- order: number;
63
- key: string;
64
- label: string;
65
- hidden: boolean;
66
- }[];
67
- branding: {
68
- logo: string;
69
- colors: {
70
- lightMode: {
71
- primaryButton: string;
72
- };
73
- };
74
- };
75
- authProviders: {
76
- clientId: string;
77
- provider: string;
78
- providerType: string;
79
- icon: string;
80
- }[];
81
- };
82
- member: {
83
- id: string;
84
- verified: boolean;
85
- auth: {
86
- email: string;
87
- };
88
- loginRedirect: string;
89
- stripeCustomerId: string;
90
- createdAt: string;
91
- metaData: object;
92
- customFields: object;
93
- permissions: [] | string[];
94
- planConnections: {
95
- id: string;
96
- active: boolean;
97
- status: string;
98
- planId: string;
99
- type: string;
100
- payment: {
101
- amount: number;
102
- currency: string;
103
- status: string;
104
- lastBillingDate: number;
105
- nextBillingDate: number;
106
- cancelAtDate: number;
107
- lastInvoice: string;
108
- lastReceipt: string;
109
- card: string;
110
- };
111
- }[];
112
- };
113
- };
114
- }>;
115
- getApp(): Promise<{
116
- data: {
117
- id: string;
118
- name: string;
119
- mode: "live" | "sandbox";
120
- plans: {
121
- id: string;
122
- name: string;
123
- description: string;
124
- status: string;
125
- redirects: {
126
- afterLogin: string;
127
- afterLogout: string;
128
- afterSignup: string;
129
- };
130
- prices?: [] | {
131
- id: string;
132
- amount: string;
133
- interval: {
134
- type: string;
135
- count: number;
136
- };
137
- name: string;
138
- type: string;
139
- status: string;
140
- currency: string;
141
- }[];
142
- }[];
143
- contentGroups: {
144
- id: string;
145
- name: string;
146
- key: string;
147
- allowAllMembers: boolean;
148
- activeMemberHasAccess?: boolean;
149
- redirect: string;
150
- urls: {
151
- url: string;
152
- filter: string;
153
- }[];
154
- plans: {
155
- id: string;
156
- }[];
157
- }[];
158
- emailVerificationEnabled: boolean;
159
- requireEmailVerification: boolean;
160
- customField: {
161
- order: number;
162
- key: string;
163
- label: string;
164
- hidden: boolean;
165
- }[];
166
- branding: {
167
- logo: string;
168
- colors: {
169
- lightMode: {
170
- primaryButton: string;
171
- };
172
- };
173
- };
174
- authProviders: {
175
- clientId: string;
176
- provider: string;
177
- providerType: string;
178
- icon: string;
179
- }[];
180
- };
181
- }>;
182
- getAuthProviders(): Promise<{
183
- data: {
184
- id: string;
185
- name: string;
186
- mode: "live" | "sandbox";
187
- plans: {
188
- id: string;
189
- name: string;
190
- description: string;
191
- status: string;
192
- redirects: {
193
- afterLogin: string;
194
- afterLogout: string;
195
- afterSignup: string;
196
- };
197
- prices?: [] | {
198
- id: string;
199
- amount: string;
200
- interval: {
201
- type: string;
202
- count: number;
203
- };
204
- name: string;
205
- type: string;
206
- status: string;
207
- currency: string;
208
- }[];
209
- }[];
210
- contentGroups: {
211
- id: string;
212
- name: string;
213
- key: string;
214
- allowAllMembers: boolean;
215
- activeMemberHasAccess?: boolean;
216
- redirect: string;
217
- urls: {
218
- url: string;
219
- filter: string;
220
- }[];
221
- plans: {
222
- id: string;
223
- }[];
224
- }[];
225
- emailVerificationEnabled: boolean;
226
- requireEmailVerification: boolean;
227
- customField: {
228
- order: number;
229
- key: string;
230
- label: string;
231
- hidden: boolean;
232
- }[];
233
- branding: {
234
- logo: string;
235
- colors: {
236
- lightMode: {
237
- primaryButton: string;
238
- };
239
- };
240
- };
241
- authProviders: {
242
- clientId: string;
243
- provider: string;
244
- providerType: string;
245
- icon: string;
246
- }[];
247
- };
248
- }>;
249
- loginMemberEmailPassword(params: import("./types").LoginMemberEmailPasswordParams, options?: any): Promise<{
250
- data: {
251
- tokens: {
252
- accessToken: string;
253
- expires: number;
254
- type: "bearer";
255
- };
256
- member: {
257
- id: string;
258
- verified: boolean;
259
- auth: {
260
- email: string;
261
- };
262
- loginRedirect: string;
263
- stripeCustomerId: string;
264
- createdAt: string;
265
- metaData: object;
266
- customFields: object;
267
- permissions: [] | string[];
268
- planConnections: {
269
- id: string;
270
- active: boolean;
271
- status: string;
272
- planId: string;
273
- type: string;
274
- payment: {
275
- amount: number;
276
- currency: string;
277
- status: string;
278
- lastBillingDate: number;
279
- nextBillingDate: number;
280
- cancelAtDate: number;
281
- lastInvoice: string;
282
- lastReceipt: string;
283
- card: string;
284
- };
285
- }[];
286
- };
287
- redirect: string;
288
- payment: {
289
- requirePayment: string[];
290
- requireAuthentication: string[];
291
- };
292
- contentGroups?: {
293
- id: string;
294
- name: string;
295
- key: string;
296
- allowAllMembers: boolean;
297
- activeMemberHasAccess?: boolean;
298
- redirect: string;
299
- urls: {
300
- url: string;
301
- filter: string;
302
- }[];
303
- plans: {
304
- id: string;
305
- }[];
306
- }[];
307
- };
308
- }>;
309
- loginMemberAuthProvider(params: import("./types").LoginMemberAuthProviderParams): Promise<{
310
- data: {
311
- tokens: {
312
- accessToken: string;
313
- expires: number;
314
- type: "bearer";
315
- };
316
- member: {
317
- id: string;
318
- verified: boolean;
319
- auth: {
320
- email: string;
321
- };
322
- loginRedirect: string;
323
- stripeCustomerId: string;
324
- createdAt: string;
325
- metaData: object;
326
- customFields: object;
327
- permissions: [] | string[];
328
- planConnections: {
329
- id: string;
330
- active: boolean;
331
- status: string;
332
- planId: string;
333
- type: string;
334
- payment: {
335
- amount: number;
336
- currency: string;
337
- status: string;
338
- lastBillingDate: number;
339
- nextBillingDate: number;
340
- cancelAtDate: number;
341
- lastInvoice: string;
342
- lastReceipt: string;
343
- card: string;
344
- };
345
- }[];
346
- };
347
- redirect: string;
348
- payment: {
349
- requirePayment: string[];
350
- requireAuthentication: string[];
351
- };
352
- contentGroups?: {
353
- id: string;
354
- name: string;
355
- key: string;
356
- allowAllMembers: boolean;
357
- activeMemberHasAccess?: boolean;
358
- redirect: string;
359
- urls: {
360
- url: string;
361
- filter: string;
362
- }[];
363
- plans: {
364
- id: string;
365
- }[];
366
- }[];
367
- };
368
- }>;
369
- getPlan(params: import("./types").GetPlanParams): Promise<{
370
- data: {
371
- id: string;
372
- name: string;
373
- description: string;
374
- status: string;
375
- redirects: {
376
- afterLogin: string;
377
- afterLogout: string;
378
- afterSignup: string;
379
- };
380
- prices?: [] | {
381
- id: string;
382
- amount: string;
383
- interval: {
384
- type: string;
385
- count: number;
386
- };
387
- name: string;
388
- type: string;
389
- status: string;
390
- currency: string;
391
- }[];
392
- };
393
- }>;
394
- getPlans(): Promise<{
395
- data: {
396
- id: string;
397
- name: string;
398
- description: string;
399
- status: string;
400
- redirects: {
401
- afterLogin: string;
402
- afterLogout: string;
403
- afterSignup: string;
404
- };
405
- prices?: [] | {
406
- id: string;
407
- amount: string;
408
- interval: {
409
- type: string;
410
- count: number;
411
- };
412
- name: string;
413
- type: string;
414
- status: string;
415
- currency: string;
416
- }[];
417
- }[];
418
- }>;
419
- getRestrictedUrlGroups(): Promise<{
420
- data: {
421
- id: string;
422
- name: string;
423
- key: string;
424
- allowAllMembers: boolean;
425
- activeMemberHasAccess?: boolean;
426
- redirect: string;
427
- urls: {
428
- url: string;
429
- filter: string;
430
- }[];
431
- plans: {
432
- id: string;
433
- }[];
434
- }[];
435
- }>;
436
- getCurrentMember(options?: import("./methods/requests").GetCurrentMemberParams): Promise<{
437
- data: {
438
- id: string;
439
- verified: boolean;
440
- auth: {
441
- email: string;
442
- };
443
- loginRedirect: string;
444
- stripeCustomerId: string;
445
- createdAt: string;
446
- metaData: object;
447
- customFields: object;
448
- permissions: [] | string[];
449
- planConnections: {
450
- id: string;
451
- active: boolean;
452
- status: string;
453
- planId: string;
454
- type: string;
455
- payment: {
456
- amount: number;
457
- currency: string;
458
- status: string;
459
- lastBillingDate: number;
460
- nextBillingDate: number;
461
- cancelAtDate: number;
462
- lastInvoice: string;
463
- lastReceipt: string;
464
- card: string;
465
- };
466
- }[];
467
- };
468
- }>;
469
- getMemberJSON(options?: import("./methods/requests").MemberstackOptions): Promise<{
470
- data: {
471
- json: object;
472
- };
473
- }>;
474
- updateMemberJSON(params: import("./types").UpdateMemberJSONParams, options?: import("./methods/requests").MemberstackOptions): Promise<{
475
- data: {
476
- json: object;
477
- };
478
- }>;
479
- getMemberCards(options?: import("./methods/requests").MemberstackOptions): Promise<{
480
- data: {
481
- id: string;
482
- brand: string;
483
- expMonth: string;
484
- expYear: string;
485
- last4: string;
486
- default: boolean;
487
- }[];
488
- }>;
489
- getMemberInvoices(params?: import("./types").GetMemberInvoicesParams, options?: import("./methods/requests").MemberstackOptions): Promise<{
490
- hasNext: boolean;
491
- endCursor: string;
492
- totalCount: number;
493
- data: {
494
- id: string;
495
- status: string;
496
- amount: number;
497
- url: string;
498
- description: string;
499
- number: string;
500
- planConnection: string;
501
- createdAt: string;
502
- currency: string;
503
- }[];
504
- }>;
505
- getMemberReceipts(params?: import("./types").GetMemberReceiptsParams, options?: import("./methods/requests").MemberstackOptions): Promise<{
506
- hasNext: boolean;
507
- endCursor: string;
508
- totalCount: number;
509
- data: {
510
- id: string;
511
- amount: number;
512
- url: string;
513
- stripe?: {
514
- url: string;
515
- };
516
- number: string;
517
- purchase: string;
518
- invoice: string;
519
- createdAt: string;
520
- currency: string;
521
- }[];
522
- }>;
523
- getAuthenticationClientSecret(params: import("./types").GetAuthenticationClientSecretParams, options?: import("./methods/requests").MemberstackOptions): Promise<{
524
- data: string;
525
- }>;
526
- getTotalCheckoutAmount(params: import("./types").GetTotalCheckoutAmountParams, options?: import("./methods/requests").MemberstackOptions): Promise<{
527
- data: {
528
- total: number;
529
- subTotal: number;
530
- currency: string;
531
- setupFee?: {
532
- enabled: boolean;
533
- amount: number;
534
- name: string;
535
- };
536
- freeTrial?: {
537
- days: number;
538
- enabled: boolean;
539
- };
540
- tax?: {
541
- name: string;
542
- percent: number;
543
- description: string;
544
- }[];
545
- };
546
- }>;
547
- purchasePlans(params: import("./types").PurchasePlansParams, options?: import("./methods/requests").MemberstackOptions): Promise<{
548
- data: {
549
- plan: string;
550
- payment: {
551
- requiresPayment: boolean;
552
- requiresAuthentication: boolean;
553
- };
554
- };
555
- }>;
556
- addPlan(params: import("./types").AddPlanParams, options?: import("./methods/requests").MemberstackOptions): Promise<{
557
- data: {
558
- redirect: string;
559
- planConnection: {
560
- id: string;
561
- active: boolean;
562
- status: string;
563
- planId: string;
564
- type: string;
565
- payment: {
566
- amount: number;
567
- currency: string;
568
- status: string;
569
- lastBillingDate: number;
570
- nextBillingDate: number;
571
- cancelAtDate: number;
572
- lastInvoice: string;
573
- lastReceipt: string;
574
- card: string;
575
- };
576
- };
577
- };
578
- }>;
579
- purchasePlansWithCheckout(params: import("./types").PurchasePlansWithCheckoutParams, options?: import("./methods/requests").MemberstackOptions): Promise<{
580
- data: {
581
- url: string;
582
- };
583
- }>;
584
- launchStripeCustomerPortal(params: import("./types").LaunchStripeCustomerPortalParams, options?: import("./methods/requests").MemberstackOptions): Promise<{
585
- data: {
586
- url: string;
587
- };
588
- }>;
589
- removePlan(params: import("./types").RemovePlanParams, options?: import("./methods/requests").MemberstackOptions): Promise<null>;
590
- cancelPlan(params: import("./types").CancelPlanParams, options?: import("./methods/requests").MemberstackOptions): Promise<{
591
- data: {
592
- id: string;
593
- verified: boolean;
594
- auth: {
595
- email: string;
596
- };
597
- loginRedirect: string;
598
- stripeCustomerId: string;
599
- createdAt: string;
600
- metaData: object;
601
- customFields: object;
602
- permissions: [] | string[];
603
- planConnections: {
604
- id: string;
605
- active: boolean;
606
- status: string;
607
- planId: string;
608
- type: string;
609
- payment: {
610
- amount: number;
611
- currency: string;
612
- status: string;
613
- lastBillingDate: number;
614
- nextBillingDate: number;
615
- cancelAtDate: number;
616
- lastInvoice: string;
617
- lastReceipt: string;
618
- card: string;
619
- };
620
- }[];
621
- };
622
- }>;
623
- updateMember(params: import("./types").UpdateMemberParams, options?: import("./methods/requests").MemberstackOptions): Promise<{
624
- data: {
625
- id: string;
626
- verified: boolean;
627
- auth: {
628
- email: string;
629
- };
630
- loginRedirect: string;
631
- stripeCustomerId: string;
632
- createdAt: string;
633
- metaData: object;
634
- customFields: object;
635
- permissions: [] | string[];
636
- planConnections: {
637
- id: string;
638
- active: boolean;
639
- status: string;
640
- planId: string;
641
- type: string;
642
- payment: {
643
- amount: number;
644
- currency: string;
645
- status: string;
646
- lastBillingDate: number;
647
- nextBillingDate: number;
648
- cancelAtDate: number;
649
- lastInvoice: string;
650
- lastReceipt: string;
651
- card: string;
652
- };
653
- }[];
654
- };
655
- }>;
656
- updateMemberAuth(params: import("./types").UpdateMemberAuthParams, options?: import("./methods/requests").MemberstackOptions): Promise<{
657
- data: {
658
- id: string;
659
- verified: boolean;
660
- auth: {
661
- email: string;
662
- };
663
- loginRedirect: string;
664
- stripeCustomerId: string;
665
- createdAt: string;
666
- metaData: object;
667
- customFields: object;
668
- permissions: [] | string[];
669
- planConnections: {
670
- id: string;
671
- active: boolean;
672
- status: string;
673
- planId: string;
674
- type: string;
675
- payment: {
676
- amount: number;
677
- currency: string;
678
- status: string;
679
- lastBillingDate: number;
680
- nextBillingDate: number;
681
- cancelAtDate: number;
682
- lastInvoice: string;
683
- lastReceipt: string;
684
- card: string;
685
- };
686
- }[];
687
- };
688
- }>;
689
- addCard(params: import("./types").AddMemberCardParams, options?: import("./methods/requests").MemberstackOptions): Promise<{
690
- data: {
691
- id: string;
692
- verified: boolean;
693
- auth: {
694
- email: string;
695
- };
696
- loginRedirect: string;
697
- stripeCustomerId: string;
698
- createdAt: string;
699
- metaData: object;
700
- customFields: object;
701
- permissions: [] | string[];
702
- planConnections: {
703
- id: string;
704
- active: boolean;
705
- status: string;
706
- planId: string;
707
- type: string;
708
- payment: {
709
- amount: number;
710
- currency: string;
711
- status: string;
712
- lastBillingDate: number;
713
- nextBillingDate: number;
714
- cancelAtDate: number;
715
- lastInvoice: string;
716
- lastReceipt: string;
717
- card: string;
718
- };
719
- }[];
720
- };
721
- }>;
722
- updateDefaultCard(params: import("./types").UpdateDefaultCardParams, options?: import("./methods/requests").MemberstackOptions): Promise<{
723
- data: {
724
- id: string;
725
- verified: boolean;
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
- updatePlanPayment(params: import("./types").UpdatePlanPaymentParams, options?: import("./methods/requests").MemberstackOptions): Promise<{
756
- data: {
757
- id: string;
758
- verified: boolean;
759
- auth: {
760
- email: string;
761
- };
762
- loginRedirect: string;
763
- stripeCustomerId: string;
764
- createdAt: string;
765
- metaData: object;
766
- customFields: object;
767
- permissions: [] | string[];
768
- planConnections: {
769
- id: string;
770
- active: boolean;
771
- status: string;
772
- planId: string;
773
- type: string;
774
- payment: {
775
- amount: number;
776
- currency: string;
777
- status: string;
778
- lastBillingDate: number;
779
- nextBillingDate: number;
780
- cancelAtDate: number;
781
- lastInvoice: string;
782
- lastReceipt: string;
783
- card: string;
784
- };
785
- }[];
786
- };
787
- }>;
788
- signupMemberEmailPassword(params: import("./types").SignupMemberEmailPasswordParams, options?: any): Promise<{
789
- data: {
790
- tokens: {
791
- accessToken: string;
792
- expires: number;
793
- type: "bearer";
794
- };
795
- member: {
796
- id: string;
797
- verified: boolean;
798
- auth: {
799
- email: string;
800
- };
801
- loginRedirect: string;
802
- stripeCustomerId: string;
803
- createdAt: string;
804
- metaData: object;
805
- customFields: object;
806
- permissions: [] | string[];
807
- planConnections: {
808
- id: string;
809
- active: boolean;
810
- status: string;
811
- planId: string;
812
- type: string;
813
- payment: {
814
- amount: number;
815
- currency: string;
816
- status: string;
817
- lastBillingDate: number;
818
- nextBillingDate: number;
819
- cancelAtDate: number;
820
- lastInvoice: string;
821
- lastReceipt: string;
822
- card: string;
823
- };
824
- }[];
825
- };
826
- redirect: string;
827
- payment: {
828
- requirePayment: string[];
829
- requireAuthentication: string[];
830
- };
831
- contentGroups?: {
832
- id: string;
833
- name: string;
834
- key: string;
835
- allowAllMembers: boolean;
836
- activeMemberHasAccess?: boolean;
837
- redirect: string;
838
- urls: {
839
- url: string;
840
- filter: string;
841
- }[];
842
- plans: {
843
- id: string;
844
- }[];
845
- }[];
846
- };
847
- }>;
848
- signupMemberAuthProvider(params: import("./types").SignupMemberAuthProviderParams): Promise<{
849
- data: {
850
- tokens: {
851
- accessToken: string;
852
- expires: number;
853
- type: "bearer";
854
- };
855
- member: {
856
- id: string;
857
- verified: boolean;
858
- auth: {
859
- email: string;
860
- };
861
- loginRedirect: string;
862
- stripeCustomerId: string;
863
- createdAt: string;
864
- metaData: object;
865
- customFields: object;
866
- permissions: [] | string[];
867
- planConnections: {
868
- id: string;
869
- active: boolean;
870
- status: string;
871
- planId: string;
872
- type: string;
873
- payment: {
874
- amount: number;
875
- currency: string;
876
- status: string;
877
- lastBillingDate: number;
878
- nextBillingDate: number;
879
- cancelAtDate: number;
880
- lastInvoice: string;
881
- lastReceipt: string;
882
- card: string;
883
- };
884
- }[];
885
- };
886
- redirect: string;
887
- payment: {
888
- requirePayment: string[];
889
- requireAuthentication: string[];
890
- };
891
- contentGroups?: {
892
- id: string;
893
- name: string;
894
- key: string;
895
- allowAllMembers: boolean;
896
- activeMemberHasAccess?: boolean;
897
- redirect: string;
898
- urls: {
899
- url: string;
900
- filter: string;
901
- }[];
902
- plans: {
903
- id: string;
904
- }[];
905
- }[];
906
- };
907
- }>;
908
- sendMemberVerificationEmail(): Promise<void>;
909
- sendMemberResetPasswordEmail(params: import("./types").SendMemberResetPasswordEmailParams): Promise<{
910
- data: string;
911
- }>;
912
- resetMemberPassword(params: import("./types").ResetMemberPasswordParams): Promise<{
913
- data: {
914
- id: string;
915
- verified: boolean;
916
- auth: {
917
- email: string;
918
- };
919
- loginRedirect: string;
920
- stripeCustomerId: string;
921
- createdAt: string;
922
- metaData: object;
923
- customFields: object;
924
- permissions: [] | string[];
925
- planConnections: {
926
- id: string;
927
- active: boolean;
928
- status: string;
929
- planId: string;
930
- type: string;
931
- payment: {
932
- amount: number;
933
- currency: string;
934
- status: string;
935
- lastBillingDate: number;
936
- nextBillingDate: number;
937
- cancelAtDate: number;
938
- lastInvoice: string;
939
- lastReceipt: string;
940
- card: string;
941
- };
942
- }[];
943
- };
944
- }>;
945
- logout(options?: import("./methods/requests").MemberstackOptions): Promise<{
946
- data: {
947
- redirect?: string;
948
- };
949
- }>;
950
- replacePlan(params: import("./types").ReplacePlanParams, options?: import("./methods/requests").MemberstackOptions): Promise<{
951
- data: {
952
- plan: string;
953
- payment: {
954
- requiresPayment: boolean;
955
- requiresAuthentication: boolean;
956
- };
957
- };
958
- }>;
15
+ loginWithProvider(params?: import("./types").LoginWithProviderParams): Promise<unknown>;
16
+ connectProvider(params?: import("./types").LoginWithProviderParams): Promise<import("./types").ConnectProviderPayload>;
17
+ disconnectProvider(params: import("./types").LoginWithProviderParams): Promise<import("./types").ConnectProviderPayload>;
18
+ getAppAndMember(params?: any): Promise<import("./types").GetAppAndMemberPayload>;
19
+ getApp(): Promise<import("./types").AppPayload>;
20
+ loginMemberEmailPassword(params: import("./types").LoginMemberEmailPasswordParams, options?: any): Promise<import("./types").LoginMemberEmailPasswordPayload>;
21
+ loginMemberAuthProvider(params: import("./types").LoginMemberAuthProviderParams): Promise<import("./types").LoginMemberAuthProviderPayload>;
22
+ getPlan(params: import("./types").GetPlanParams): Promise<import("./types").GetPlanPayload>;
23
+ getPlans(): Promise<import("./types").GetPlansPayload>;
24
+ getRestrictedUrlGroups(): Promise<import("./types").GetRestrictedUrlGroupsPayload>;
25
+ getCurrentMember(options?: import("./methods/requests").GetCurrentMemberParams): Promise<import("./types").GetCurrentMemberPayload>;
26
+ getMemberJSON(options?: import("./methods/requests").MemberstackOptions): Promise<import("./types").GetMemberJSONPayload>;
27
+ updateMemberJSON(params: import("./types").UpdateMemberJSONParams, options?: import("./methods/requests").MemberstackOptions): Promise<import("./types").GetMemberJSONPayload>;
28
+ addPlan(params: import("./types").AddPlanParams, options?: import("./methods/requests").MemberstackOptions): Promise<import("./types").AddPlanPayload>;
29
+ purchasePlansWithCheckout(params: import("./types").PurchasePlansWithCheckoutParams, options?: import("./methods/requests").MemberstackOptions): Promise<import("./types").PurchasePlansWithCheckoutPayload>;
30
+ launchStripeCustomerPortal(params: import("./types").LaunchStripeCustomerPortalParams, options?: import("./methods/requests").MemberstackOptions): Promise<import("./types").LaunchStripeCustomerPortalPayload>;
31
+ removePlan(params: import("./types").RemovePlanParams, options?: import("./methods/requests").MemberstackOptions): Promise<import("./types").RemovePlanPayload>;
32
+ updateMember(params: import("./types").UpdateMemberParams, options?: import("./methods/requests").MemberstackOptions): Promise<import("./types").UpdateMemberPayload>;
33
+ updateMemberAuth(params: import("./types").UpdateMemberAuthParams, options?: import("./methods/requests").MemberstackOptions): Promise<import("./types").UpdateMemberAuthPayload>;
34
+ setPassword(params: import("./types").SetPasswordParams, options?: import("./methods/requests").MemberstackOptions): Promise<import("./types").SetPasswordPayload>;
35
+ signupMemberEmailPassword(params: import("./types").SignupMemberEmailPasswordParams, options?: any): Promise<import("./types").SignupMemberEmailPasswordPayload>;
36
+ sendMemberVerificationEmail(): Promise<import("./types").SendMemberVerificationEmailPayload>;
37
+ sendMemberResetPasswordEmail(params: import("./types").SendMemberResetPasswordEmailParams): Promise<import("./types").SendMemberResetPasswordEmailPayload>;
38
+ resetMemberPassword(params: import("./types").ResetMemberPasswordParams): Promise<import("./types").ResetMemberPassworPayload>;
39
+ logout(options?: import("./methods/requests").MemberstackOptions): Promise<import("./types").LogoutMemberPayload>;
959
40
  decodeToken({ token }: {
960
41
  token: string;
961
42
  }): Promise<Pick<import("jose").JWTPayload, "iat" | "exp"> & {