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