@memberstack/dom 1.9.9 → 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.
@@ -14,643 +14,34 @@ declare const _default: {
14
14
  onAuthChange: (cb: any) => {
15
15
  unsubscribe: () => boolean;
16
16
  };
17
+ _captchaReady: Promise<unknown>;
17
18
  } & {
18
19
  signupWithProvider(params?: import("../types").SignupWithProviderParams): Promise<unknown>;
19
20
  loginWithProvider(params?: import("../types").LoginWithProviderParams): Promise<unknown>;
20
- connectProvider(params?: import("../types").LoginWithProviderParams): Promise<{
21
- data: {
22
- providers: {
23
- provider: string;
24
- }[];
25
- };
26
- }>;
27
- disconnectProvider(params: import("../types").LoginWithProviderParams): Promise<{
28
- data: {
29
- providers: {
30
- provider: string;
31
- }[];
32
- };
33
- }>;
34
- getAppAndMember(params?: any): Promise<{
35
- data: {
36
- app: {
37
- id: string;
38
- name: string;
39
- mode: "live" | "sandbox";
40
- plans: {
41
- id: string;
42
- name: string;
43
- description: string;
44
- status: string;
45
- redirects: {
46
- afterLogin: string;
47
- afterLogout: string;
48
- afterSignup: string;
49
- };
50
- prices?: [] | {
51
- id: string;
52
- amount: string;
53
- interval: {
54
- type: string;
55
- count: number;
56
- };
57
- name: string;
58
- type: string;
59
- status: string;
60
- currency: string;
61
- }[];
62
- }[];
63
- contentGroups: {
64
- id: string;
65
- name: string;
66
- key: string;
67
- allowAllMembers: boolean;
68
- activeMemberHasAccess?: boolean;
69
- redirect: string;
70
- urls: {
71
- url: string;
72
- filter: string;
73
- }[];
74
- plans: {
75
- id: string;
76
- }[];
77
- }[];
78
- emailVerificationEnabled: boolean;
79
- requireEmailVerification: boolean;
80
- customField: {
81
- order: number;
82
- key: string;
83
- label: string;
84
- hidden: boolean;
85
- }[];
86
- branding: {
87
- logo: string;
88
- colors: {
89
- lightMode: {
90
- primaryButton: string;
91
- };
92
- };
93
- };
94
- authProviders: {
95
- clientId: string;
96
- provider: string;
97
- providerType: string;
98
- icon: string;
99
- }[];
100
- };
101
- member: {
102
- id: string;
103
- verified: boolean;
104
- auth: {
105
- email: string;
106
- hasPassword: boolean;
107
- providers: {
108
- provider: string;
109
- }[];
110
- };
111
- loginRedirect: string;
112
- stripeCustomerId: string;
113
- createdAt: string;
114
- metaData: object;
115
- customFields: object;
116
- permissions: [] | string[];
117
- planConnections: {
118
- id: string;
119
- active: boolean;
120
- status: string;
121
- planId: string;
122
- type: string;
123
- payment: {
124
- amount: number;
125
- currency: string;
126
- status: string;
127
- lastBillingDate: number;
128
- nextBillingDate: number;
129
- cancelAtDate: number;
130
- lastInvoice: string;
131
- lastReceipt: string;
132
- card: string;
133
- };
134
- }[];
135
- };
136
- };
137
- }>;
138
- getApp(): Promise<{
139
- data: {
140
- id: string;
141
- name: string;
142
- mode: "live" | "sandbox";
143
- plans: {
144
- id: string;
145
- name: string;
146
- description: string;
147
- status: string;
148
- redirects: {
149
- afterLogin: string;
150
- afterLogout: string;
151
- afterSignup: string;
152
- };
153
- prices?: [] | {
154
- id: string;
155
- amount: string;
156
- interval: {
157
- type: string;
158
- count: number;
159
- };
160
- name: string;
161
- type: string;
162
- status: string;
163
- currency: string;
164
- }[];
165
- }[];
166
- contentGroups: {
167
- id: string;
168
- name: string;
169
- key: string;
170
- allowAllMembers: boolean;
171
- activeMemberHasAccess?: boolean;
172
- redirect: string;
173
- urls: {
174
- url: string;
175
- filter: string;
176
- }[];
177
- plans: {
178
- id: string;
179
- }[];
180
- }[];
181
- emailVerificationEnabled: boolean;
182
- requireEmailVerification: boolean;
183
- customField: {
184
- order: number;
185
- key: string;
186
- label: string;
187
- hidden: boolean;
188
- }[];
189
- branding: {
190
- logo: string;
191
- colors: {
192
- lightMode: {
193
- primaryButton: string;
194
- };
195
- };
196
- };
197
- authProviders: {
198
- clientId: string;
199
- provider: string;
200
- providerType: string;
201
- icon: string;
202
- }[];
203
- };
204
- }>;
205
- loginMemberEmailPassword(params: import("../types").LoginMemberEmailPasswordParams, options?: any): Promise<{
206
- data: {
207
- tokens: {
208
- accessToken: string;
209
- expires: number;
210
- type: "bearer";
211
- };
212
- member: {
213
- id: string;
214
- verified: boolean;
215
- auth: {
216
- email: string;
217
- hasPassword: boolean;
218
- providers: {
219
- provider: string;
220
- }[];
221
- };
222
- loginRedirect: string;
223
- stripeCustomerId: string;
224
- createdAt: string;
225
- metaData: object;
226
- customFields: object;
227
- permissions: [] | string[];
228
- planConnections: {
229
- id: string;
230
- active: boolean;
231
- status: string;
232
- planId: string;
233
- type: string;
234
- payment: {
235
- amount: number;
236
- currency: string;
237
- status: string;
238
- lastBillingDate: number;
239
- nextBillingDate: number;
240
- cancelAtDate: number;
241
- lastInvoice: string;
242
- lastReceipt: string;
243
- card: string;
244
- };
245
- }[];
246
- };
247
- redirect: string;
248
- contentGroups?: {
249
- id: string;
250
- name: string;
251
- key: string;
252
- allowAllMembers: boolean;
253
- activeMemberHasAccess?: boolean;
254
- redirect: string;
255
- urls: {
256
- url: string;
257
- filter: string;
258
- }[];
259
- plans: {
260
- id: string;
261
- }[];
262
- }[];
263
- };
264
- }>;
265
- loginMemberAuthProvider(params: import("../types").LoginMemberAuthProviderParams): Promise<{
266
- data: {
267
- tokens: {
268
- accessToken: string;
269
- expires: number;
270
- type: "bearer";
271
- };
272
- member: {
273
- id: string;
274
- verified: boolean;
275
- auth: {
276
- email: string;
277
- hasPassword: boolean;
278
- providers: {
279
- provider: string;
280
- }[];
281
- };
282
- loginRedirect: string;
283
- stripeCustomerId: string;
284
- createdAt: string;
285
- metaData: object;
286
- customFields: object;
287
- permissions: [] | string[];
288
- planConnections: {
289
- id: string;
290
- active: boolean;
291
- status: string;
292
- planId: string;
293
- type: string;
294
- payment: {
295
- amount: number;
296
- currency: string;
297
- status: string;
298
- lastBillingDate: number;
299
- nextBillingDate: number;
300
- cancelAtDate: number;
301
- lastInvoice: string;
302
- lastReceipt: string;
303
- card: string;
304
- };
305
- }[];
306
- };
307
- redirect: string;
308
- contentGroups?: {
309
- id: string;
310
- name: string;
311
- key: string;
312
- allowAllMembers: boolean;
313
- activeMemberHasAccess?: boolean;
314
- redirect: string;
315
- urls: {
316
- url: string;
317
- filter: string;
318
- }[];
319
- plans: {
320
- id: string;
321
- }[];
322
- }[];
323
- };
324
- }>;
325
- getPlan(params: import("../types").GetPlanParams): Promise<{
326
- data: {
327
- id: string;
328
- name: string;
329
- description: string;
330
- status: string;
331
- redirects: {
332
- afterLogin: string;
333
- afterLogout: string;
334
- afterSignup: string;
335
- };
336
- prices?: [] | {
337
- id: string;
338
- amount: string;
339
- interval: {
340
- type: string;
341
- count: number;
342
- };
343
- name: string;
344
- type: string;
345
- status: string;
346
- currency: string;
347
- }[];
348
- };
349
- }>;
350
- getPlans(): Promise<{
351
- data: {
352
- id: string;
353
- name: string;
354
- description: string;
355
- status: string;
356
- redirects: {
357
- afterLogin: string;
358
- afterLogout: string;
359
- afterSignup: string;
360
- };
361
- prices?: [] | {
362
- id: string;
363
- amount: string;
364
- interval: {
365
- type: string;
366
- count: number;
367
- };
368
- name: string;
369
- type: string;
370
- status: string;
371
- currency: string;
372
- }[];
373
- }[];
374
- }>;
375
- getRestrictedUrlGroups(): Promise<{
376
- data: {
377
- id: string;
378
- name: string;
379
- key: string;
380
- allowAllMembers: boolean;
381
- activeMemberHasAccess?: boolean;
382
- redirect: string;
383
- urls: {
384
- url: string;
385
- filter: string;
386
- }[];
387
- plans: {
388
- id: string;
389
- }[];
390
- }[];
391
- }>;
392
- getCurrentMember(options?: import("./requests").GetCurrentMemberParams): Promise<{
393
- data: {
394
- id: string;
395
- verified: boolean;
396
- auth: {
397
- email: string;
398
- hasPassword: boolean;
399
- providers: {
400
- provider: string;
401
- }[];
402
- };
403
- loginRedirect: string;
404
- stripeCustomerId: string;
405
- createdAt: string;
406
- metaData: object;
407
- customFields: object;
408
- permissions: [] | string[];
409
- planConnections: {
410
- id: string;
411
- active: boolean;
412
- status: string;
413
- planId: string;
414
- type: string;
415
- payment: {
416
- amount: number;
417
- currency: string;
418
- status: string;
419
- lastBillingDate: number;
420
- nextBillingDate: number;
421
- cancelAtDate: number;
422
- lastInvoice: string;
423
- lastReceipt: string;
424
- card: string;
425
- };
426
- }[];
427
- };
428
- }>;
429
- getMemberJSON(options?: import("./requests").MemberstackOptions): Promise<{
430
- data: {
431
- json: object;
432
- };
433
- }>;
434
- updateMemberJSON(params: import("../types").UpdateMemberJSONParams, options?: import("./requests").MemberstackOptions): Promise<{
435
- data: {
436
- json: object;
437
- };
438
- }>;
439
- addPlan(params: import("../types").AddPlanParams, options?: import("./requests").MemberstackOptions): Promise<{
440
- data: {
441
- redirect: string;
442
- planConnection: {
443
- id: string;
444
- active: boolean;
445
- status: string;
446
- planId: string;
447
- type: string;
448
- payment: {
449
- amount: number;
450
- currency: string;
451
- status: string;
452
- lastBillingDate: number;
453
- nextBillingDate: number;
454
- cancelAtDate: number;
455
- lastInvoice: string;
456
- lastReceipt: string;
457
- card: string;
458
- };
459
- };
460
- };
461
- }>;
462
- purchasePlansWithCheckout(params: import("../types").PurchasePlansWithCheckoutParams, options?: import("./requests").MemberstackOptions): Promise<{
463
- data: {
464
- url: string;
465
- };
466
- }>;
467
- launchStripeCustomerPortal(params: import("../types").LaunchStripeCustomerPortalParams, options?: import("./requests").MemberstackOptions): Promise<{
468
- data: {
469
- url: string;
470
- };
471
- }>;
472
- removePlan(params: import("../types").RemovePlanParams, options?: import("./requests").MemberstackOptions): Promise<null>;
473
- updateMember(params: import("../types").UpdateMemberParams, options?: import("./requests").MemberstackOptions): Promise<{
474
- data: {
475
- id: string;
476
- verified: boolean;
477
- auth: {
478
- email: string;
479
- hasPassword: boolean;
480
- providers: {
481
- provider: string;
482
- }[];
483
- };
484
- loginRedirect: string;
485
- stripeCustomerId: string;
486
- createdAt: string;
487
- metaData: object;
488
- customFields: object;
489
- permissions: [] | string[];
490
- planConnections: {
491
- id: string;
492
- active: boolean;
493
- status: string;
494
- planId: string;
495
- type: string;
496
- payment: {
497
- amount: number;
498
- currency: string;
499
- status: string;
500
- lastBillingDate: number;
501
- nextBillingDate: number;
502
- cancelAtDate: number;
503
- lastInvoice: string;
504
- lastReceipt: string;
505
- card: string;
506
- };
507
- }[];
508
- };
509
- }>;
510
- updateMemberAuth(params: import("../types").UpdateMemberAuthParams, options?: import("./requests").MemberstackOptions): Promise<{
511
- data: {
512
- id: string;
513
- verified: boolean;
514
- auth: {
515
- email: string;
516
- hasPassword: boolean;
517
- providers: {
518
- provider: string;
519
- }[];
520
- };
521
- loginRedirect: string;
522
- stripeCustomerId: string;
523
- createdAt: string;
524
- metaData: object;
525
- customFields: object;
526
- permissions: [] | string[];
527
- planConnections: {
528
- id: string;
529
- active: boolean;
530
- status: string;
531
- planId: string;
532
- type: string;
533
- payment: {
534
- amount: number;
535
- currency: string;
536
- status: string;
537
- lastBillingDate: number;
538
- nextBillingDate: number;
539
- cancelAtDate: number;
540
- lastInvoice: string;
541
- lastReceipt: string;
542
- card: string;
543
- };
544
- }[];
545
- };
546
- }>;
547
- setPassword(params: import("../types").SetPasswordParams, options?: import("./requests").MemberstackOptions): Promise<{
548
- data: {
549
- id: string;
550
- verified: boolean;
551
- auth: {
552
- email: string;
553
- hasPassword: boolean;
554
- providers: {
555
- provider: string;
556
- }[];
557
- };
558
- loginRedirect: string;
559
- stripeCustomerId: string;
560
- createdAt: string;
561
- metaData: object;
562
- customFields: object;
563
- permissions: [] | string[];
564
- planConnections: {
565
- id: string;
566
- active: boolean;
567
- status: string;
568
- planId: string;
569
- type: string;
570
- payment: {
571
- amount: number;
572
- currency: string;
573
- status: string;
574
- lastBillingDate: number;
575
- nextBillingDate: number;
576
- cancelAtDate: number;
577
- lastInvoice: string;
578
- lastReceipt: string;
579
- card: string;
580
- };
581
- }[];
582
- };
583
- }>;
584
- signupMemberEmailPassword(params: import("../types").SignupMemberEmailPasswordParams, options?: any): Promise<{
585
- data: {
586
- tokens: {
587
- accessToken: string;
588
- expires: number;
589
- type: "bearer";
590
- };
591
- member: {
592
- id: string;
593
- verified: boolean;
594
- auth: {
595
- email: string;
596
- hasPassword: boolean;
597
- providers: {
598
- provider: string;
599
- }[];
600
- };
601
- loginRedirect: string;
602
- stripeCustomerId: string;
603
- createdAt: string;
604
- metaData: object;
605
- customFields: object;
606
- permissions: [] | string[];
607
- planConnections: {
608
- id: string;
609
- active: boolean;
610
- status: string;
611
- planId: string;
612
- type: string;
613
- payment: {
614
- amount: number;
615
- currency: string;
616
- status: string;
617
- lastBillingDate: number;
618
- nextBillingDate: number;
619
- cancelAtDate: number;
620
- lastInvoice: string;
621
- lastReceipt: string;
622
- card: string;
623
- };
624
- }[];
625
- };
626
- redirect: string;
627
- contentGroups?: {
628
- id: string;
629
- name: string;
630
- key: string;
631
- allowAllMembers: boolean;
632
- activeMemberHasAccess?: boolean;
633
- redirect: string;
634
- urls: {
635
- url: string;
636
- filter: string;
637
- }[];
638
- plans: {
639
- id: string;
640
- }[];
641
- }[];
642
- };
643
- }>;
644
- sendMemberVerificationEmail(): Promise<void>;
645
- sendMemberResetPasswordEmail(params: import("../types").SendMemberResetPasswordEmailParams): Promise<{
646
- data: string;
647
- }>;
648
- resetMemberPassword(params: import("../types").ResetMemberPasswordParams): Promise<void>;
649
- logout(options?: import("./requests").MemberstackOptions): Promise<{
650
- data: {
651
- redirect?: string;
652
- };
653
- }>;
21
+ connectProvider(params?: import("../types").LoginWithProviderParams): Promise<import("../types").ConnectProviderPayload>;
22
+ disconnectProvider(params: import("../types").LoginWithProviderParams): Promise<import("../types").ConnectProviderPayload>;
23
+ getAppAndMember(params?: any): Promise<import("../types").GetAppAndMemberPayload>;
24
+ getApp(): Promise<import("../types").AppPayload>;
25
+ loginMemberEmailPassword(params: import("../types").LoginMemberEmailPasswordParams, options?: any): Promise<import("../types").LoginMemberEmailPasswordPayload>;
26
+ loginMemberAuthProvider(params: import("../types").LoginMemberAuthProviderParams): Promise<import("../types").LoginMemberAuthProviderPayload>;
27
+ getPlan(params: import("../types").GetPlanParams): Promise<import("../types").GetPlanPayload>;
28
+ getPlans(): Promise<import("../types").GetPlansPayload>;
29
+ getRestrictedUrlGroups(): Promise<import("../types").GetRestrictedUrlGroupsPayload>;
30
+ getCurrentMember(options?: import("./requests").GetCurrentMemberParams): Promise<import("../types").GetCurrentMemberPayload>;
31
+ getMemberJSON(options?: import("./requests").MemberstackOptions): Promise<import("../types").GetMemberJSONPayload>;
32
+ updateMemberJSON(params: import("../types").UpdateMemberJSONParams, options?: import("./requests").MemberstackOptions): Promise<import("../types").GetMemberJSONPayload>;
33
+ addPlan(params: import("../types").AddPlanParams, options?: import("./requests").MemberstackOptions): Promise<import("../types").AddPlanPayload>;
34
+ purchasePlansWithCheckout(params: import("../types").PurchasePlansWithCheckoutParams, options?: import("./requests").MemberstackOptions): Promise<import("../types").PurchasePlansWithCheckoutPayload>;
35
+ launchStripeCustomerPortal(params: import("../types").LaunchStripeCustomerPortalParams, options?: import("./requests").MemberstackOptions): Promise<import("../types").LaunchStripeCustomerPortalPayload>;
36
+ removePlan(params: import("../types").RemovePlanParams, options?: import("./requests").MemberstackOptions): Promise<import("../types").RemovePlanPayload>;
37
+ updateMember(params: import("../types").UpdateMemberParams, options?: import("./requests").MemberstackOptions): Promise<import("../types").UpdateMemberPayload>;
38
+ updateMemberAuth(params: import("../types").UpdateMemberAuthParams, options?: import("./requests").MemberstackOptions): Promise<import("../types").UpdateMemberAuthPayload>;
39
+ setPassword(params: import("../types").SetPasswordParams, options?: import("./requests").MemberstackOptions): Promise<import("../types").SetPasswordPayload>;
40
+ signupMemberEmailPassword(params: import("../types").SignupMemberEmailPasswordParams, options?: any): Promise<import("../types").SignupMemberEmailPasswordPayload>;
41
+ sendMemberVerificationEmail(): Promise<import("../types").SendMemberVerificationEmailPayload>;
42
+ sendMemberResetPasswordEmail(params: import("../types").SendMemberResetPasswordEmailParams): Promise<import("../types").SendMemberResetPasswordEmailPayload>;
43
+ resetMemberPassword(params: import("../types").ResetMemberPasswordParams): Promise<import("../types").ResetMemberPassworPayload>;
44
+ logout(options?: import("./requests").MemberstackOptions): Promise<import("../types").LogoutMemberPayload>;
654
45
  decodeToken({ token }: {
655
46
  token: string;
656
47
  }): Promise<Pick<import("jose").JWTPayload, "iat" | "exp"> & {