@memberstack/dom 1.9.25 → 1.9.27

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